(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},T7iU:function(t,e,n){"object"==typeof navigator&&(t.exports=function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){for(var n=0;n(n=100/l.width*(s.clientX-l.left))?n=0:100n?n-=(100-2*n)*c:50e){var n=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(n))}return Math.round(t/e)*e}(n/100*(o-r),a)}},{key:"set",value:function(e){t.enabled&&g(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var n=new Event(e,{bubbles:!0});t.dispatchEvent(n)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var n=1null!=t?t.constructor:null,v=(t,e)=>Boolean(t&&e&&t instanceof e),w=t=>null==t,C=t=>b(t)===Object,E=t=>b(t)===String,S=t=>b(t)===Function,k=t=>Array.isArray(t),x=t=>v(t,NodeList),T=t=>w(t)||(E(t)||k(t)||x(t))&&!t.length||C(t)&&!Object.keys(t).length;var A=w,I=C,P=t=>b(t)===Number&&!Number.isNaN(t),O=E,M=t=>b(t)===Boolean,D=S,F=k,N=x,R=t=>null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument,j=t=>v(t,Event),L=t=>v(t,KeyboardEvent),V=t=>v(t,TextTrack)||!w(t)&&E(t.kind),B=t=>{if(v(t,window.URL))return!0;if(!E(t))return!1;let e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://"+t);try{return!T(new URL(e).hostname)}catch(t){return!1}},H=T;const z=(()=>{const t=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(e).find(e=>void 0!==t.style[e]);return!!O(n)&&e[n]})();function q(t,e){setTimeout(()=>{try{t.hidden=!0,t.hidden=!1}catch(t){}},e)}const $={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function U(t,e){return e.split(".").reduce((t,e)=>t&&t[e],t)}function W(t={},...e){if(!e.length)return t;const n=e.shift();return I(n)?(Object.keys(n).forEach(e=>{I(n[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),W(t[e],n[e])):Object.assign(t,{[e]:n[e]})}),W(t,...e)):t}function K(t,e){Array.from(t.length?t:[t]).reverse().forEach((t,n)=>{const i=n>0?e.cloneNode(!0):e,s=t.parentNode,r=t.nextSibling;i.appendChild(t),r?s.insertBefore(i,r):s.appendChild(i)})}function G(t,e){R(t)&&!H(e)&&Object.entries(e).filter(([,t])=>!A(t)).forEach(([e,n])=>t.setAttribute(e,n))}function Z(t,e,n){const i=document.createElement(t);return I(e)&&G(i,e),O(n)&&(i.innerText=n),i}function Y(t,e,n,i){R(e)&&e.appendChild(Z(t,n,i))}function Q(t){N(t)||F(t)?Array.from(t).forEach(Q):R(t)&&R(t.parentNode)&&t.parentNode.removeChild(t)}function X(t){if(!R(t))return;let{length:e}=t.childNodes;for(;e>0;)t.removeChild(t.lastChild),e-=1}function J(t,e){return R(e)&&R(e.parentNode)&&R(t)?(e.parentNode.replaceChild(t,e),t):null}function tt(t,e){if(!O(t)||H(t))return{};const n={},i=W({},e);return t.split(",").forEach(t=>{const e=t.trim(),s=e.replace(".",""),r=e.replace(/[[\]]/g,"").split("="),[o]=r,a=r.length>1?r[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":n.class=O(i.class)?`${i.class} ${s}`:s;break;case"#":n.id=e.replace("#","");break;case"[":n[o]=a}}),W(i,n)}function et(t,e){if(!R(t))return;let n=e;M(n)||(n=!t.hidden),t.hidden=n}function nt(t,e,n){if(N(t))return Array.from(t).map(t=>nt(t,e,n));if(R(t)){let i="toggle";return void 0!==n&&(i=n?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function it(t,e){return R(t)&&t.classList.contains(e)}function st(t,e){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function rt(t){return this.elements.container.querySelectorAll(t)}function ot(t){return this.elements.container.querySelector(t)}function at(t=null,e=!1){R(t)&&(t.focus({preventScroll:!0}),e&&nt(t,this.config.classNames.tabFocus))}const lt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ct={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(t,e,n){const i=ct[t]||"html5"!==e;return{api:i,ui:i&&ct.rangeInput&&("video"!==t||!$.isIPhone||$.isIPhone&&n&&ct.playsinline)}},pip:!($.isIPhone||!D(Z("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Z("video").disablePictureInPicture)),airplay:D(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(t){if(H(t))return!1;const[e]=t.split("/");let n=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(lt).includes(n)&&(n+=`; codecs="${lt[t]}"`);try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const t=document.createElement("input");return t.type="range","range"===t.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==z,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ht=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,null)});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t})();function ut(t,e,n,i=!1,s=!0,r=!1){if(!t||!("addEventListener"in t)||H(e)||!D(n))return;const o=e.split(" ");let a=r;ht&&(a={passive:s,capture:r}),o.forEach(e=>{this&&this.eventListeners&&i&&this.eventListeners.push({element:t,type:e,callback:n,options:a}),t[i?"addEventListener":"removeEventListener"](e,n,a)})}function dt(t,e="",n,i=!0,s=!1){ut.call(this,t,e,n,!0,i,s)}function pt(t,e="",n,i=!0,s=!1){ut.call(this,t,e,n,!1,i,s)}function mt(t,e="",n,i=!0,s=!1){const r=(...o)=>{pt(t,e,r,i,s),n.apply(this,o)};ut.call(this,t,e,r,!0,i,s)}function ft(t,e="",n=!1,i={}){if(!R(t)||H(e))return;const s=new CustomEvent(e,{bubbles:n,detail:{...i,plyr:this}});t.dispatchEvent(s)}function gt(){this&&this.eventListeners&&(this.eventListeners.forEach(t=>{const{element:e,type:n,callback:i,options:s}=t;e.removeEventListener(n,i,s)}),this.eventListeners=[])}function yt(){return new Promise(t=>this.ready?setTimeout(t,0):dt.call(this,this.elements.container,"ready",t)).then(()=>{})}function _t(t){(t=>v(t,Promise)&&S(t.then))(t)&&t.then(null,()=>{})}function bt(t){return F(t)?t.filter((e,n)=>t.indexOf(e)===n):t}function vt(t,e){return F(t)&&t.length?t.reduce((t,n)=>Math.abs(n-e)({...t,[e/n]:[e,n]}),{});function Ct(t){return!!(F(t)||O(t)&&t.includes(":"))&&(F(t)?t:t.split(":")).map(Number).every(P)}function Et(t){if(!F(t)||!t.every(P))return null;const[e,n]=t,i=(t,e)=>0===e?t:i(e,t%e),s=i(e,n);return[e/s,n/s]}function St(t){const e=t=>Ct(t)?t.split(":").map(Number):null;let n=e(t);if(null===n&&(n=e(this.config.ratio)),null===n&&!H(this.embed)&&F(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:t,videoHeight:e}=this.media;n=Et([t,e])}return n}function kt(t){if(!this.isVideo)return{};const{wrapper:e}=this.elements,n=St.call(this,t);if(!F(n))return{};const[i,s]=n,r=100/i*s;if(window.CSS&&window.CSS.supports(`aspect-ratio: ${i}/${s}`)?e.style.aspectRatio=`${i}/${s}`:e.style.paddingBottom=r+"%",this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const t=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(t-r)/(t/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&e.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:r,ratio:n}}function xt(t,e,n=.05){const i=t/e,s=vt(Object.keys(wt),i);return Math.abs(s-i)<=n?wt[s]:[t,e]}const Tt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(t=>{const e=t.getAttribute("type");return!!H(e)||ct.mime.call(this,e)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Tt.getSources.call(this).map(t=>Number(t.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const t=this;t.options.speed=t.config.speed.options,H(this.config.ratio)||kt.call(t),Object.defineProperty(t.media,"quality",{get(){const e=Tt.getSources.call(t).find(e=>e.getAttribute("src")===t.source);return e&&Number(e.getAttribute("size"))},set(e){if(t.quality!==e){if(t.config.quality.forced&&D(t.config.quality.onChange))t.config.quality.onChange(e);else{const n=Tt.getSources.call(t).find(t=>Number(t.getAttribute("size"))===e);if(!n)return;const{currentTime:i,paused:s,preload:r,readyState:o,playbackRate:a}=t.media;t.media.src=n.getAttribute("src"),("none"!==r||o)&&(t.once("loadedmetadata",()=>{t.speed=a,t.currentTime=i,s||_t(t.play())}),t.media.load())}ft.call(t,t.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(Q(Tt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function At(t,...e){return H(t)?t:t.toString().replace(/{(\d+)}/g,(t,n)=>e[n].toString())}const It=(t="",e="",n="")=>t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),Pt=(t="")=>t.toString().replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase());function Ot(t){const e=document.createElement("div");return e.appendChild(t),e.innerHTML}const Mt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Dt={get(t="",e={}){if(H(t)||H(e))return"";let n=U(e.i18n,t);return H(n)?Object.keys(Mt).includes(t)?Mt[t]:"":(Object.entries({"{seektime}":e.seekTime,"{title}":e.title}).forEach(([t,e])=>{n=It(n,t,e)}),n)}};class Ft{constructor(e){t(this,"get",t=>{if(!Ft.supported||!this.enabled)return null;const e=window.localStorage.getItem(this.key);if(H(e))return null;const n=JSON.parse(e);return O(t)&&t.length?n[t]:n}),t(this,"set",t=>{if(!Ft.supported||!this.enabled)return;if(!I(t))return;let e=this.get();H(e)&&(e={}),W(e,t),window.localStorage.setItem(this.key,JSON.stringify(e))}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}function Nt(t,e="text"){return new Promise((n,i)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",()=>{if("text"===e)try{n(JSON.parse(i.responseText))}catch(t){n(i.responseText)}else n(i.response)}),i.addEventListener("error",()=>{throw new Error(i.status)}),i.open("GET",t,!0),i.responseType=e,i.send()}catch(t){i(t)}})}function Rt(t,e){if(!O(t))return;const n=O(e);let i=!1;const s=()=>null!==document.getElementById(e),r=(t,e)=>{t.innerHTML=e,n&&s()||document.body.insertAdjacentElement("afterbegin",t)};if(!n||!s()){const s=Ft.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),n&&o.setAttribute("id",e),s){const t=window.localStorage.getItem("cache-"+e);if(i=null!==t,i){const e=JSON.parse(t);r(o,e.content)}}Nt(t).then(t=>{H(t)||(s&&window.localStorage.setItem("cache-"+e,JSON.stringify({content:t})),r(o,t))}).catch(()=>{})}}const jt=t=>Math.trunc(t/60/60%60,10);function Lt(t=0,e=!1,n=!1){if(!P(t))return Lt(void 0,e,n);const i=t=>("0"+t).slice(-2);let s=jt(t);const r=Math.trunc(t/60%60,10),o=(t=>Math.trunc(t%60,10))(t);return s=e||s>0?s+":":"",`${n&&t>0?"-":""}${s}${i(r)}:${i(o)}`}const Vt={getIconUrl(){const t=new URL(this.config.iconUrl,window.location).host!==window.location.host||$.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=ot.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:rt.call(this,this.config.selectors.buttons.play),pause:ot.call(this,this.config.selectors.buttons.pause),restart:ot.call(this,this.config.selectors.buttons.restart),rewind:ot.call(this,this.config.selectors.buttons.rewind),fastForward:ot.call(this,this.config.selectors.buttons.fastForward),mute:ot.call(this,this.config.selectors.buttons.mute),pip:ot.call(this,this.config.selectors.buttons.pip),airplay:ot.call(this,this.config.selectors.buttons.airplay),settings:ot.call(this,this.config.selectors.buttons.settings),captions:ot.call(this,this.config.selectors.buttons.captions),fullscreen:ot.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ot.call(this,this.config.selectors.progress),this.elements.inputs={seek:ot.call(this,this.config.selectors.inputs.seek),volume:ot.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ot.call(this,this.config.selectors.display.buffer),currentTime:ot.call(this,this.config.selectors.display.currentTime),duration:ot.call(this,this.config.selectors.display.duration)},R(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector("."+this.config.classNames.tooltip)),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon(t,e){const n="http://www.w3.org/2000/svg",i=Vt.getIconUrl.call(this),s=`${i.cors?"":i.url}#${this.config.iconPrefix}`,r=document.createElementNS(n,"svg");G(r,W(e,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(n,"use"),a=`${s}-${t}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),r.appendChild(o),r},createLabel(t,e={}){const n=Dt.get(t,this.config);return Z("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(t){if(H(t))return null;const e=Z("span",{class:this.config.classNames.menu.value});return e.appendChild(Z("span",{class:this.config.classNames.menu.badge},t)),e},createButton(t,e){const n=W({},e);let i=function(t=""){let e=t.toString();return e=function(t=""){let e=t.toString();return e=It(e,"-"," "),e=It(e,"_"," "),e=Pt(e),It(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}(t);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(t=>{Object.keys(n).includes(t)&&(s[t]=n[t],delete n[t])}),"button"!==s.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some(t=>t===this.config.classNames.control)||W(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,t){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,i="play",s.label="play",s.icon="play";break;default:H(s.label)&&(s.label=i),H(s.icon)&&(s.icon=t)}const r=Z(s.element);return s.toggle?(r.appendChild(Vt.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),r.appendChild(Vt.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),r.appendChild(Vt.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),r.appendChild(Vt.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(r.appendChild(Vt.createIcon.call(this,s.icon)),r.appendChild(Vt.createLabel.call(this,s.label))),W(n,tt(this.config.selectors.buttons[i],n)),G(r,n),"play"===i?(F(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(r)):this.elements.buttons[i]=r,r},createRange(t,e){const n=Z("input",W(tt(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Dt.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=n,Vt.updateRangeFill.call(this,n),_.setup(n),n},createProgress(t,e){const n=Z("progress",W(tt(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){n.appendChild(Z("span",null,"0"));const e={played:"played",buffer:"buffered"}[t],i=e?Dt.get(e,this.config):"";n.innerText="% "+i.toLowerCase()}return this.elements.display[t]=n,n},createTime(t,e){const n=tt(this.config.selectors.display[t],e),i=Z("div",W(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Dt.get(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts(t,e){dt.call(this,t,"keydown keyup",n=>{if(![32,38,39,40].includes(n.which))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const i=st(t,'[role="menuitemradio"]');if(!i&&[32,39].includes(n.which))Vt.showMenuPanel.call(this,e,!0);else{let e;32!==n.which&&(40===n.which||i&&39===n.which?(e=t.nextElementSibling,R(e)||(e=t.parentNode.firstElementChild)):(e=t.previousElementSibling,R(e)||(e=t.parentNode.lastElementChild)),at.call(this,e,!0))}},!1),dt.call(this,t,"keyup",t=>{13===t.which&&Vt.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:t,list:e,type:n,title:i,badge:s=null,checked:r=!1}){const o=tt(this.config.selectors.inputs[n]),a=Z("button",W(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":r,value:t})),l=Z("span");l.innerHTML=i,R(s)&&l.appendChild(s),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>"true"===a.getAttribute("aria-checked"),set(t){t&&Array.from(a.parentNode.children).filter(t=>st(t,'[role="menuitemradio"]')).forEach(t=>t.setAttribute("aria-checked","false")),a.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(a,"click keyup",e=>{if(!L(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(t);break;case"quality":this.quality=t;break;case"speed":this.speed=parseFloat(t)}Vt.showMenuPanel.call(this,"home",L(e))}},n,!1),Vt.bindMenuItemShortcuts.call(this,a,n),e.appendChild(a)},formatTime(t=0,e=!1){return P(t)?Lt(t,jt(this.duration)>0,e):t},updateTimeDisplay(t=null,e=0,n=!1){R(t)&&P(e)&&(t.innerText=Vt.formatTime(e,n))},updateVolume(){this.supported.ui&&(R(this.elements.inputs.volume)&&Vt.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),R(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(t,e=0){R(t)&&(t.value=e,Vt.updateRangeFill.call(this,t))},updateProgress(t){if(!this.supported.ui||!j(t))return;let e=0;const n=(t,e)=>{const n=P(e)?e:0,i=R(t)?t:this.elements.display.buffer;if(R(i)){i.value=n;const t=i.getElementsByTagName("span")[0];R(t)&&(t.childNodes[0].nodeValue=n)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":s=this.duration,e=0===(i=this.currentTime)||0===s||Number.isNaN(i)||Number.isNaN(s)?0:(i/s*100).toFixed(2),"timeupdate"===t.type&&Vt.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var i,s},updateRangeFill(t){const e=j(t)?t.target:t;if(R(e)&&"range"===e.getAttribute("type")){if(st(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=Vt.formatTime(this.currentTime),n=Vt.formatTime(this.duration),i=Dt.get("seekLabel",this.config);e.setAttribute("aria-valuetext",i.replace("{currentTime}",t).replace("{duration}",n))}else if(st(e,this.config.selectors.inputs.volume)){const t=100*e.value;e.setAttribute("aria-valuenow",t),e.setAttribute("aria-valuetext",t.toFixed(1)+"%")}else e.setAttribute("aria-valuenow",e.value);$.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(t){if(!this.config.tooltips.seek||!R(this.elements.inputs.seek)||!R(this.elements.display.seekTooltip)||0===this.duration)return;const e=this.config.classNames.tooltip+"--visible",n=t=>nt(this.elements.display.seekTooltip,e,t);if(this.touch)return void n(!1);let i=0;const s=this.elements.progress.getBoundingClientRect();if(j(t))i=100/s.width*(t.pageX-s.left);else{if(!it(this.elements.display.seekTooltip,e))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),Vt.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left=i+"%",j(t)&&["mouseenter","mouseleave"].includes(t.type)&&n("mouseenter"===t.type)},timeUpdate(t){const e=!R(this.elements.display.duration)&&this.config.invertTime;Vt.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Vt.updateProgress.call(this,t)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return et(this.elements.display.currentTime,!0),void et(this.elements.progress,!0);R(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const t=R(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Vt.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Vt.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Vt.updateSeekTooltip.call(this)},toggleMenuButton(t,e){et(this.elements.settings.buttons[t],!e)},updateSetting(t,e,n){const i=this.elements.settings.panels[t];let s=null,r=e;if("captions"===t)s=this.currentTrack;else{if(s=H(n)?this[t]:n,H(s)&&(s=this.config[t].default),!H(this.options[t])&&!this.options[t].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${t}`);if(!this.config[t].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${t}`)}if(R(r)||(r=i&&i.querySelector('[role="menu"]')),!R(r))return;this.elements.settings.buttons[t].querySelector("."+this.config.classNames.menu.value).innerHTML=Vt.getLabel.call(this,t,s);const o=r&&r.querySelector(`[value="${s}"]`);R(o)&&(o.checked=!0)},getLabel(t,e){switch(t){case"speed":return 1===e?Dt.get("normal",this.config):e+"×";case"quality":if(P(e)){const t=Dt.get("qualityLabel."+e,this.config);return t.length?t:e+"p"}return Pt(e);case"captions":return zt.getLabel.call(this);default:return null}},setQualityMenu(t){if(!R(this.elements.settings.panels.quality))return;const e="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');F(t)&&(this.options.quality=bt(t).filter(t=>this.config.quality.options.includes(t)));const i=!H(this.options.quality)&&this.options.quality.length>1;if(Vt.toggleMenuButton.call(this,e,i),X(n),Vt.checkMenu.call(this),!i)return;const s=t=>{const e=Dt.get("qualityBadge."+t,this.config);return e.length?Vt.createBadge.call(this,e):null};this.options.quality.sort((t,e)=>{const n=this.config.quality.options;return n.indexOf(t)>n.indexOf(e)?1:-1}).forEach(t=>{Vt.createMenuItem.call(this,{value:t,list:n,type:e,title:Vt.getLabel.call(this,"quality",t),badge:s(t)})}),Vt.updateSetting.call(this,e,n)},setCaptionsMenu(){if(!R(this.elements.settings.panels.captions))return;const t="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=zt.getTracks.call(this),i=Boolean(n.length);if(Vt.toggleMenuButton.call(this,t,i),X(e),Vt.checkMenu.call(this),!i)return;const s=n.map((t,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:zt.getLabel.call(this,t),badge:t.language&&Vt.createBadge.call(this,t.language.toUpperCase()),list:e,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Dt.get("disabled",this.config),list:e,type:"language"}),s.forEach(Vt.createMenuItem.bind(this)),Vt.updateSetting.call(this,t,e)},setSpeedMenu(){if(!R(this.elements.settings.panels.speed))return;const t="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(t=>t>=this.minimumSpeed&&t<=this.maximumSpeed);const n=!H(this.options.speed)&&this.options.speed.length>1;Vt.toggleMenuButton.call(this,t,n),X(e),Vt.checkMenu.call(this),n&&(this.options.speed.forEach(n=>{Vt.createMenuItem.call(this,{value:n,list:e,type:t,title:Vt.getLabel.call(this,"speed",n)})}),Vt.updateSetting.call(this,t,e))},checkMenu(){const{buttons:t}=this.elements.settings,e=!H(t)&&Object.values(t).some(t=>!t.hidden);et(this.elements.settings.menu,!e)},focusFirstMenuItem(t,e=!1){if(this.elements.settings.popup.hidden)return;let n=t;R(n)||(n=Object.values(this.elements.settings.panels).find(t=>!t.hidden));const i=n.querySelector('[role^="menuitem"]');at.call(this,i,e)},toggleMenu(t){const{popup:e}=this.elements.settings,n=this.elements.buttons.settings;if(!R(e)||!R(n))return;const{hidden:i}=e;let s=i;if(M(t))s=t;else if(L(t)&&27===t.which)s=!1;else if(j(t)){const i=D(t.composedPath)?t.composedPath()[0]:t.target,r=e.contains(i);if(r||!r&&t.target!==n&&s)return}n.setAttribute("aria-expanded",s),et(e,!s),nt(this.elements.container,this.config.classNames.menu.open,s),s&&L(t)?Vt.focusFirstMenuItem.call(this,null,!0):s||i||at.call(this,n,L(t))},getMenuSize(t){const e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);const n=e.scrollWidth,i=e.scrollHeight;return Q(e),{width:n,height:i}},showMenuPanel(t="",e=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${t}`);if(!R(n))return;const i=n.parentNode,s=Array.from(i.children).find(t=>!t.hidden);if(ct.transitions&&!ct.reducedMotion){i.style.width=s.scrollWidth+"px",i.style.height=s.scrollHeight+"px";const t=Vt.getMenuSize.call(this,n),e=t=>{t.target===i&&["width","height"].includes(t.propertyName)&&(i.style.width="",i.style.height="",pt.call(this,i,z,e))};dt.call(this,i,z,e),i.style.width=t.width+"px",i.style.height=t.height+"px"}et(s,!0),et(n,!1),Vt.focusFirstMenuItem.call(this,n,e)},setDownloadUrl(){const t=this.elements.buttons.download;R(t)&&t.setAttribute("href",this.download)},create(t){const{bindMenuItemShortcuts:e,createButton:n,createProgress:i,createRange:s,createTime:r,setQualityMenu:o,setSpeedMenu:a,showMenuPanel:l}=Vt;this.elements.controls=null,F(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const c=Z("div",tt(this.config.selectors.controls.wrapper));this.elements.controls=c;const h={class:"plyr__controls__item"};return bt(F(this.config.controls)?this.config.controls:[]).forEach(o=>{if("restart"===o&&c.appendChild(n.call(this,"restart",h)),"rewind"===o&&c.appendChild(n.call(this,"rewind",h)),"play"===o&&c.appendChild(n.call(this,"play",h)),"fast-forward"===o&&c.appendChild(n.call(this,"fast-forward",h)),"progress"===o){const e=Z("div",{class:h.class+" plyr__progress__container"}),n=Z("div",tt(this.config.selectors.progress));if(n.appendChild(s.call(this,"seek",{id:"plyr-seek-"+t.id})),n.appendChild(i.call(this,"buffer")),this.config.tooltips.seek){const t=Z("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(t),this.elements.display.seekTooltip=t}this.elements.progress=n,e.appendChild(this.elements.progress),c.appendChild(e)}if("current-time"===o&&c.appendChild(r.call(this,"currentTime",h)),"duration"===o&&c.appendChild(r.call(this,"duration",h)),"mute"===o||"volume"===o){let{volume:e}=this.elements;R(e)&&c.contains(e)||(e=Z("div",W({},h,{class:(h.class+" plyr__volume").trim()})),this.elements.volume=e,c.appendChild(e)),"mute"===o&&e.appendChild(n.call(this,"mute")),"volume"!==o||$.isIos||e.appendChild(s.call(this,"volume",W({max:1,step:.05,value:this.config.volume},{id:"plyr-volume-"+t.id})))}if("captions"===o&&c.appendChild(n.call(this,"captions",h)),"settings"===o&&!H(this.config.settings)){const i=Z("div",W({},h,{class:(h.class+" plyr__menu").trim(),hidden:""}));i.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-"+t.id,"aria-expanded":!1}));const s=Z("div",{class:"plyr__menu__container",id:"plyr-settings-"+t.id,hidden:""}),r=Z("div"),o=Z("div",{id:`plyr-settings-${t.id}-home`}),a=Z("div",{role:"menu"});o.appendChild(a),r.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach(n=>{const i=Z("button",W(tt(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(this,i,n),dt.call(this,i,"click",()=>{l.call(this,n,!1)});const s=Z("span",null,Dt.get(n,this.config)),o=Z("span",{class:this.config.classNames.menu.value});o.innerHTML=t[n],s.appendChild(o),i.appendChild(s),a.appendChild(i);const c=Z("div",{id:`plyr-settings-${t.id}-${n}`,hidden:""}),h=Z("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});h.appendChild(Z("span",{"aria-hidden":!0},Dt.get(n,this.config))),h.appendChild(Z("span",{class:this.config.classNames.hidden},Dt.get("menuBack",this.config))),dt.call(this,c,"keydown",t=>{37===t.which&&(t.preventDefault(),t.stopPropagation(),l.call(this,"home",!0))},!1),dt.call(this,h,"click",()=>{l.call(this,"home",!1)}),c.appendChild(h),c.appendChild(Z("div",{role:"menu"})),r.appendChild(c),this.elements.settings.buttons[n]=i,this.elements.settings.panels[n]=c}),s.appendChild(r),i.appendChild(s),c.appendChild(i),this.elements.settings.popup=s,this.elements.settings.menu=i}if("pip"===o&&ct.pip&&c.appendChild(n.call(this,"pip",h)),"airplay"===o&&ct.airplay&&c.appendChild(n.call(this,"airplay",h)),"download"===o){const t=W({},h,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(t.download="");const{download:e}=this.config.urls;!B(e)&&this.isEmbed&&W(t,{icon:"logo-"+this.provider,label:this.provider}),c.appendChild(n.call(this,"download",t))}"fullscreen"===o&&c.appendChild(n.call(this,"fullscreen",h))}),this.isHTML5&&o.call(this,Tt.getQualityOptions.call(this)),a.call(this),c},inject(){if(this.config.loadSprite){const t=Vt.getIconUrl.call(this);t.cors&&Rt(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let t=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n,i=!0;if(D(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),R(this.config.controls)||O(this.config.controls)?t=this.config.controls:(t=Vt.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:zt.getLabel.call(this)}),i=!1),i&&O(this.config.controls)&&(t=(t=>{let n=t;return Object.entries(e).forEach(([t,e])=>{n=It(n,`{${t}}`,e)}),n})(t)),O(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),R(n)||(n=this.elements.container),n[R(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),R(this.elements.controls)||Vt.findElements.call(this),!H(this.elements.buttons)){const t=t=>{const e=this.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:()=>it(t,e),set(n=!1){nt(t,e,n)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(e=>{F(e)||N(e)?Array.from(e).filter(Boolean).forEach(t):t(e)})}if($.isEdge&&q(n),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,n=rt.call(this,`${e.controls.wrapper} ${e.labels} .${t.hidden}`);Array.from(n).forEach(t=>{nt(t,this.config.classNames.hidden,!1),nt(t,this.config.classNames.tooltip,!0)})}}};function Bt(t,e=!0){let n=t;if(e){const t=document.createElement("a");t.href=n,n=t.href}try{return new URL(n)}catch(t){return null}}function Ht(t){const e=new URLSearchParams;return I(t)&&Object.entries(t).forEach(([t,n])=>{e.set(t,n)}),e}const zt={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ct.textTracks)return void(F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Vt.setCaptionsMenu.call(this));var t,e;if(R(this.elements.captions)||(this.elements.captions=Z("div",tt(this.config.selectors.captions)),e=this.elements.wrapper,R(t=this.elements.captions)&&R(e)&&e.parentNode.insertBefore(t,e.nextSibling)),$.isIE&&window.URL){const t=this.media.querySelectorAll("track");Array.from(t).forEach(t=>{const e=t.getAttribute("src"),n=Bt(e);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Nt(e,"blob").then(e=>{t.setAttribute("src",window.URL.createObjectURL(e))}).catch(()=>{Q(t)})})}const n=bt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(t=>t.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&([i]=n);let s=this.storage.get("captions");M(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:i,languages:n}),this.isHTML5&&dt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",zt.update.bind(this)),setTimeout(zt.update.bind(this),0)},update(){const t=zt.getTracks.call(this,!0),{active:e,language:n,meta:i,currentTrackNode:s}=this.captions,r=Boolean(t.find(t=>t.language===n));this.isHTML5&&this.isVideo&&t.filter(t=>!i.get(t)).forEach(t=>{this.debug.log("Track added",t),i.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),dt.call(this,t,"cuechange",()=>zt.updateCues.call(this))}),(r&&this.language!==n||!t.includes(s))&&(zt.setLanguage.call(this,n),zt.toggle.call(this,e&&r)),nt(this.elements.container,this.config.classNames.captions.enabled,!H(t)),F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Vt.setCaptionsMenu.call(this)},toggle(t,e=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,i=this.config.classNames.captions.active,s=A(t)?!n:t;if(s!==n){if(e||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!e){const t=zt.getTracks.call(this),e=zt.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=e.language,void zt.set.call(this,t.indexOf(e))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),nt(this.elements.container,i,s),this.captions.toggled=s,Vt.updateSetting.call(this,"captions"),ft.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(t,e=!0){const n=zt.getTracks.call(this);if(-1!==t)if(P(t))if(t in n){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;const i=n[t],{language:s}=i||{};this.captions.currentTrackNode=i,Vt.updateSetting.call(this,"captions"),e||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),ft.call(this,this.media,"languagechange")}zt.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&zt.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else zt.toggle.call(this,!1,e)},setLanguage(t,e=!0){if(!O(t))return void this.debug.warn("Invalid language argument",t);const n=t.toLowerCase();this.captions.language=n;const i=zt.getTracks.call(this),s=zt.findTrack.call(this,[n]);zt.set.call(this,i.indexOf(s),e)},getTracks(t=!1){return Array.from((this.media||{}).textTracks||[]).filter(e=>!this.isHTML5||t||this.captions.meta.has(e)).filter(t=>["captions","subtitles"].includes(t.kind))},findTrack(t,e=!1){const n=zt.getTracks.call(this),i=t=>Number((this.captions.meta.get(t)||{}).default),s=Array.from(n).sort((t,e)=>i(e)-i(t));let r;return t.every(t=>(r=s.find(e=>e.language===t),!r)),r||(e?s[0]:void 0)},getCurrentTrack(){return zt.getTracks.call(this)[this.currentTrack]},getLabel(t){let e=t;return!V(e)&&ct.textTracks&&this.captions.toggled&&(e=zt.getCurrentTrack.call(this)),V(e)?H(e.label)?H(e.language)?Dt.get("enabled",this.config):t.language.toUpperCase():e.label:Dt.get("disabled",this.config)},updateCues(t){if(!this.supported.ui)return;if(!R(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!A(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);let e=t;if(!e){const t=zt.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map(t=>t.getCueAsHTML()).map(Ot)}const n=e.map(t=>t.trim()).join("\n");if(n!==this.elements.captions.innerHTML){X(this.elements.captions);const t=Z("span",tt(this.config.selectors.caption));t.innerHTML=n,this.elements.captions.appendChild(t),ft.call(this,this.media,"cuechange")}}},qt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.7/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},$t="picture-in-picture",Ut={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Wt="video",Kt=()=>{};class Gt{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Kt}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Kt}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Kt}}class Zt{constructor(e){t(this,"onChange",()=>{if(!this.enabled)return;const t=this.player.elements.buttons.fullscreen;R(t)&&(t.pressed=this.active),ft.call(this.player,this.target===this.player.media?this.target:this.player.elements.container,this.active?"enterfullscreen":"exitfullscreen",!0)}),t(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",nt(this.target,this.player.config.classNames.fullscreen.fallback,t),$.isIos){let e=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";e||(e=document.createElement("meta"),e.setAttribute("name","viewport"));const i=O(e.content)&&e.content.includes(n);t?(this.cleanupViewport=!i,i||(e.content+=","+n)):this.cleanupViewport&&(e.content=e.content.split(",").filter(t=>t.trim()!==n).join(","))}this.onChange()}),t(this,"trapFocus",t=>{if($.isIos||!this.active||"Tab"!==t.key||9!==t.keyCode)return;const e=document.activeElement,n=rt.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=n,s=n[n.length-1];e!==s||t.shiftKey?e===i&&t.shiftKey&&(s.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}),t(this,"update",()=>{if(this.enabled){let t;t=this.forceFallback?"Fallback (forced)":Zt.native?"Native":"Fallback",this.player.debug.log(t+" fullscreen enabled")}else this.player.debug.log("Fullscreen not supported and fallback disabled");nt(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),t(this,"enter",()=>{this.enabled&&($.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Zt.native||this.forceFallback?this.toggleFallback(!0):this.prefix?H(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),t(this,"exit",()=>{this.enabled&&($.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),_t(this.player.play())):!Zt.native||this.forceFallback?this.toggleFallback(!1):this.prefix?H(this.prefix)||document[`${this.prefix}${"moz"===this.prefix?"Cancel":"Exit"}${this.property}`]():(document.cancelFullScreen||document.exitFullscreen).call(document))}),t(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Zt.prefix,this.property=Zt.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){const{prototype:n}=Element;return(n.closest||function(){let t=this;do{if(st.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),dt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":this.prefix+"fullscreenchange",()=>{this.onChange()}),dt.call(this.player,this.player.elements.container,"dblclick",t=>{R(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),dt.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return Zt.native&&!this.forceFallback}static get prefix(){if(D(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(e=>!(!D(document[e+"ExitFullscreen"])&&!D(document[e+"CancelFullScreen"])||(t=e,0))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(Zt.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!Zt.native||this.forceFallback)return it(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?document[`${this.prefix}${this.property}Element`]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return $.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function Yt(t,e=1){return new Promise((n,i)=>{const s=new Image,r=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=e?n:i)(s)};Object.assign(s,{onload:r,onerror:r,src:t})})}const Qt={addStyleHook(){nt(this.elements.container,this.config.selectors.container.replace(".",""),!0),nt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(t=!1){t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void Qt.toggleNativeControls.call(this,!0);R(this.elements.controls)||(Vt.inject.call(this),this.listeners.controls()),Qt.toggleNativeControls.call(this),this.isHTML5&&zt.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Vt.updateVolume.call(this),Vt.timeUpdate.call(this),Qt.checkPlaying.call(this),nt(this.elements.container,this.config.classNames.pip.supported,ct.pip&&this.isHTML5&&this.isVideo),nt(this.elements.container,this.config.classNames.airplay.supported,ct.airplay&&this.isHTML5),nt(this.elements.container,this.config.classNames.isIos,$.isIos),nt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{ft.call(this,this.media,"ready")},0),Qt.setTitle.call(this),this.poster&&Qt.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Vt.durationUpdate.call(this)},setTitle(){let t=Dt.get("play",this.config);if(O(this.config.title)&&!H(this.config.title)&&(t+=", "+this.config.title),Array.from(this.elements.buttons.play||[]).forEach(e=>{e.setAttribute("aria-label",t)}),this.isEmbed){const t=ot.call(this,"iframe");if(!R(t))return;const e=H(this.config.title)?"video":this.config.title,n=Dt.get("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",e))}},togglePoster(t){nt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster(t,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),yt.call(this).then(()=>Yt(t)).catch(e=>{throw t===this.poster&&Qt.togglePoster.call(this,!1),e}).then(()=>{if(t!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${t}')`,backgroundSize:""}),Qt.togglePoster.call(this,!0),t)))},checkPlaying(t){nt(this.elements.container,this.config.classNames.playing,this.playing),nt(this.elements.container,this.config.classNames.paused,this.paused),nt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",Dt.get(this.playing?"pause":"play",this.config))}),j(t)&&"timeupdate"===t.type||Qt.toggleControls.call(this)},checkLoading(t){this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{nt(this.elements.container,this.config.classNames.loading,this.loading),Qt.toggleControls.call(this)},this.loading?250:0)},toggleControls(t){const{controls:e}=this.elements;if(e&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(t=>!H(t)&&O(t)&&t.startsWith("--plyr")).forEach(t=>{this.elements.container.style.setProperty(t,this.media.style.getPropertyValue(t)),this.media.style.removeProperty(t)}),H(this.media.style)&&this.media.removeAttribute("style")}};class Xt{constructor(e){t(this,"firstTouch",()=>{const{player:t}=this,{elements:e}=t;t.touch=!0,nt(e.container,t.config.classNames.isTouch,!0)}),t(this,"setTabFocus",t=>{const{player:e}=this,{elements:n}=e;clearTimeout(this.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(this.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-this.lastKeyDown<=20)&&((()=>{const t=e.config.classNames.tabFocus;nt(rt.call(e,"."+t),t,!1)})(),"focusout"!==t.type&&(this.focusTimer=setTimeout(()=>{const t=document.activeElement;n.container.contains(t)&&nt(document.activeElement,e.config.classNames.tabFocus,!0)},10))))}),t(this,"global",(t=!0)=>{const{player:e}=this;e.config.keyboard.global&&ut.call(e,window,"keydown keyup",this.handleKey,t,!1),ut.call(e,document.body,"click",this.toggleMenu,t),mt.call(e,document.body,"touchstart",this.firstTouch),ut.call(e,document.body,"keydown focus blur focusout",this.setTabFocus,t,!1,!0)}),t(this,"container",()=>{const{player:t}=this,{config:e,elements:n,timers:i}=t;!e.keyboard.global&&e.keyboard.focused&&dt.call(t,n.container,"keydown keyup",this.handleKey,!1),dt.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",e=>{const{controls:s}=n;s&&"enterfullscreen"===e.type&&(s.pressed=!1,s.hover=!1);let r=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Qt.toggleControls.call(t,!0),r=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>Qt.toggleControls.call(t,!1),r)});const s=e=>{if(!e)return kt.call(t);const i=n.container.getBoundingClientRect(),{width:s,height:r}=i;return kt.call(t,`${s}:${r}`)},r=()=>{clearTimeout(i.resized),i.resized=setTimeout(s,50)};dt.call(t,n.container,"enterfullscreen exitfullscreen",e=>{const{target:i,usingNative:o}=t.fullscreen;if(i!==n.container)return;if(!t.isEmbed&&H(t.config.ratio))return;const a="enterfullscreen"===e.type,{ratio:l}=s(a);((e,n,i)=>{if(!t.isVimeo||t.config.vimeo.premium)return;const s=t.elements.wrapper.firstChild,[,r]=e,[o,a]=St.call(t);s.style.maxWidth=i?r/a*o+"px":null,s.style.margin=i?"0 auto":null})(l,0,a),a&&setTimeout(()=>q(n.container),100),o||(a?dt.call(t,window,"resize",r):pt.call(t,window,"resize",r))})}),t(this,"media",()=>{const{player:t}=this,{elements:e}=t;if(dt.call(t,t.media,"timeupdate seeking seeked",e=>Vt.timeUpdate.call(t,e)),dt.call(t,t.media,"durationchange loadeddata loadedmetadata",e=>Vt.durationUpdate.call(t,e)),dt.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),dt.call(t,t.media,"progress playing seeking seeked",e=>Vt.updateProgress.call(t,e)),dt.call(t,t.media,"volumechange",e=>Vt.updateVolume.call(t,e)),dt.call(t,t.media,"playing play pause ended emptied timeupdate",e=>Qt.checkPlaying.call(t,e)),dt.call(t,t.media,"waiting canplay seeked playing",e=>Qt.checkLoading.call(t,e)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=ot.call(t,"."+t.config.classNames.video);if(!R(n))return;dt.call(t,e.container,"click",i=>{([e.container,n].includes(i.target)||n.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(i,t.restart,"restart"),this.proxy(i,()=>{_t(t.play())},"play")):this.proxy(i,()=>{_t(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&dt.call(t,e.wrapper,"contextmenu",t=>{t.preventDefault()},!1),dt.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),dt.call(t,t.media,"ratechange",()=>{Vt.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),dt.call(t,t.media,"qualitychange",e=>{Vt.updateSetting.call(t,"quality",null,e.detail.quality)}),dt.call(t,t.media,"ready qualitychange",()=>{Vt.setDownloadUrl.call(t)});const n=t.config.events.concat(["keyup","keydown"]).join(" ");dt.call(t,t.media,n,n=>{let{detail:i={}}=n;"error"===n.type&&(i=t.media.error),ft.call(t,e.container,n.type,!0,i)})}),t(this,"proxy",(t,e,n)=>{const{player:i}=this,s=i.config.listeners[n];let r=!0;D(s)&&(r=s.call(i,t)),!1!==r&&D(e)&&e.call(i,t)}),t(this,"bind",(t,e,n,i,s=!0)=>{const{player:r}=this,o=D(r.config.listeners[i]);dt.call(r,t,e,t=>this.proxy(t,n,i),s&&!o)}),t(this,"controls",()=>{const{player:t}=this,{elements:e}=t,n=$.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach(e=>{this.bind(e,"click",()=>{_t(t.togglePlay())},"play")}),this.bind(e.buttons.restart,"click",t.restart,"restart"),this.bind(e.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(e.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(e.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(e.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(e.buttons.download,"click",()=>{ft.call(t,t.media,"download")},"download"),this.bind(e.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(e.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(e.buttons.airplay,"click",t.airplay,"airplay"),this.bind(e.buttons.settings,"click",e=>{e.stopPropagation(),e.preventDefault(),Vt.toggleMenu.call(t,e)},null,!1),this.bind(e.buttons.settings,"keyup",e=>{const n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),Vt.toggleMenu.call(t,e)):Vt.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(e.settings.menu,"keydown",e=>{27===e.which&&Vt.toggleMenu.call(t,e)}),this.bind(e.inputs.seek,"mousedown mousemove",t=>{const n=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/n.width*(t.pageX-n.left))}),this.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",e=>{const n=e.currentTarget,i=e.keyCode?e.keyCode:e.which,s="play-on-seeked";if(L(e)&&39!==i&&37!==i)return;t.lastSeekTime=Date.now();const r=n.hasAttribute(s),o=["mouseup","touchend","keyup"].includes(e.type);r&&o?(n.removeAttribute(s),_t(t.play())):!o&&t.playing&&(n.setAttribute(s,""),t.pause())}),$.isIos){const e=rt.call(t,'input[type="range"]');Array.from(e).forEach(t=>this.bind(t,n,t=>q(t.target)))}this.bind(e.inputs.seek,n,e=>{const n=e.currentTarget;let i=n.getAttribute("seek-value");H(i)&&(i=n.value),n.removeAttribute("seek-value"),t.currentTime=i/n.max*t.duration},"seek"),this.bind(e.progress,"mouseenter mouseleave mousemove",e=>Vt.updateSeekTooltip.call(t,e)),this.bind(e.progress,"mousemove touchmove",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startMove(e)}),this.bind(e.progress,"mouseleave touchend click",()=>{const{previewThumbnails:e}=t;e&&e.loaded&&e.endMove(!1,!0)}),this.bind(e.progress,"mousedown touchstart",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startScrubbing(e)}),this.bind(e.progress,"mouseup touchend",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endScrubbing(e)}),$.isWebkit&&Array.from(rt.call(t,'input[type="range"]')).forEach(e=>{this.bind(e,"input",e=>Vt.updateRangeFill.call(t,e.target))}),t.config.toggleInvert&&!R(e.display.duration)&&this.bind(e.display.currentTime,"click",()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Vt.timeUpdate.call(t))}),this.bind(e.inputs.volume,n,e=>{t.volume=e.target.value},"volume"),this.bind(e.controls,"mouseenter mouseleave",n=>{e.controls.hover=!t.touch&&"mouseenter"===n.type}),e.fullscreen&&Array.from(e.fullscreen.children).filter(t=>!t.contains(e.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",n=>{e.controls.hover=!t.touch&&"mouseenter"===n.type})}),this.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",t=>{e.controls.pressed=["mousedown","touchstart"].includes(t.type)}),this.bind(e.controls,"focusin",()=>{const{config:n,timers:i}=t;nt(e.controls,n.classNames.noTransition,!0),Qt.toggleControls.call(t,!0),setTimeout(()=>{nt(e.controls,n.classNames.noTransition,!1)},0);const s=this.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout(()=>Qt.toggleControls.call(t,!1),s)}),this.bind(e.inputs.volume,"wheel",e=>{const n=e.webkitDirectionInvertedFromDevice,[i,s]=[e.deltaX,-e.deltaY].map(t=>n?-t:t),r=Math.sign(Math.abs(i)>Math.abs(s)?i:s);t.increaseVolume(r/50);const{volume:o}=t.media;(1===r&&o<1||-1===r&&o>0)&&e.preventDefault()},"volume",!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:e}=this,{elements:n}=e,i=t.keyCode?t.keyCode:t.which,s="keydown"===t.type,r=s&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&P(i))if(s){const s=document.activeElement;if(R(s)){const{editable:i}=e.config.selectors,{seek:r}=n.inputs;if(s!==r&&st(s,i))return;if(32===t.which&&st(s,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(e.currentTime=e.duration/10*(i-48));break;case 32:case 75:r||_t(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:r||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:r||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}toggleMenu(t){Vt.toggleMenu.call(this.player,t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Jt=function(t,e){return function(t,e){t.exports=function(){var t=function(){},e={},n={},i={};function s(t,e){if(t){var s=i[t];if(n[t]=e,s)for(;s.length;)s[0](t,e),s.splice(0,1)}}function r(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function o(e,n,i,s){var r,a,l=document,c=i.async,h=(i.numRetries||0)+1,u=i.before||t,d=e.replace(/[\?|#].*$/,""),p=e.replace(/^(css|img)!/,"");s=s||0,/(^css!|\.css$)/.test(d)?((a=l.createElement("link")).rel="stylesheet",a.href=p,(r="hideFocus"in a)&&a.relList&&(r=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(a=l.createElement("img")).src=p:((a=l.createElement("script")).src=e,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(t){var l=t.type[0];if(r)try{a.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((s+=1){Jt(t,{success:e,error:n})})}function ee(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,ft.call(this,this.media,t?"play":"pause"))}const ne={setup(){const t=this;nt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,kt.call(t),I(window.Vimeo)?ne.ready.call(t):te(t.config.urls.vimeo.sdk).then(()=>{ne.ready.call(t)}).catch(e=>{t.debug.warn("Vimeo SDK (player.js) failed to load",e)})},ready(){const t=this,e=t.config.vimeo,{premium:n,referrerPolicy:i,...s}=e;n&&Object.assign(s,{controls:!1,sidedock:!1});const r=Ht({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...s});let o=t.media.getAttribute("src");H(o)&&(o=t.media.getAttribute(t.config.attributes.embed.id));const a=H(l=o)?null:P(Number(l))?l:l.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:l;var l;const c=Z("iframe"),h=At(t.config.urls.vimeo.iframe,a,r);if(c.setAttribute("src",h),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),H(i)||c.setAttribute("referrerPolicy",i),n||!e.customControls)c.setAttribute("data-poster",t.poster),t.media=J(c,t.media);else{const e=Z("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});e.appendChild(c),t.media=J(e,t.media)}e.customControls||Nt(At(t.config.urls.vimeo.api,h)).then(e=>{!H(e)&&e.thumbnail_url&&Qt.setPoster.call(t,e.thumbnail_url).catch(()=>{})}),t.embed=new window.Vimeo.Player(c,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=()=>(ee.call(t,!0),t.embed.play()),t.media.pause=()=>(ee.call(t,!1),t.embed.pause()),t.media.stop=()=>{t.pause(),t.currentTime=0};let{currentTime:u}=t.media;Object.defineProperty(t.media,"currentTime",{get:()=>u,set(e){const{embed:n,media:i,paused:s,volume:r}=t,o=s&&!n.hasPlayed;i.seeking=!0,ft.call(t,i,"seeking"),Promise.resolve(o&&n.setVolume(0)).then(()=>n.setCurrentTime(e)).then(()=>o&&n.pause()).then(()=>o&&n.setVolume(r)).catch(()=>{})}});let d=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:()=>d,set(e){t.embed.setPlaybackRate(e).then(()=>{d=e,ft.call(t,t.media,"ratechange")}).catch(()=>{t.options.speed=[1]})}});let{volume:p}=t.config;Object.defineProperty(t.media,"volume",{get:()=>p,set(e){t.embed.setVolume(e).then(()=>{p=e,ft.call(t,t.media,"volumechange")})}});let{muted:m}=t.config;Object.defineProperty(t.media,"muted",{get:()=>m,set(e){const n=!!M(e)&&e;t.embed.setVolume(n?0:t.config.volume).then(()=>{m=n,ft.call(t,t.media,"volumechange")})}});let f,{loop:g}=t.config;Object.defineProperty(t.media,"loop",{get:()=>g,set(e){const n=M(e)?e:t.config.loop.active;t.embed.setLoop(n).then(()=>{g=n})}}),t.embed.getVideoUrl().then(e=>{f=e,Vt.setDownloadUrl.call(t)}).catch(t=>{this.debug.warn(t)}),Object.defineProperty(t.media,"currentSrc",{get:()=>f}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then(e=>{const[n,i]=e;t.embed.ratio=xt(n,i),kt.call(this)}),t.embed.setAutopause(t.config.autopause).then(e=>{t.config.autopause=e}),t.embed.getVideoTitle().then(e=>{t.config.title=e,Qt.setTitle.call(this)}),t.embed.getCurrentTime().then(e=>{u=e,ft.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(e=>{t.media.duration=e,ft.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(e=>{t.media.textTracks=e,zt.setup.call(t)}),t.embed.on("cuechange",({cues:e=[]})=>{const n=e.map(t=>function(t){const e=document.createDocumentFragment(),n=document.createElement("div");return e.appendChild(n),n.innerHTML=t,e.firstChild.innerText}(t.text));zt.updateCues.call(t,n)}),t.embed.on("loaded",()=>{t.embed.getPaused().then(e=>{ee.call(t,!e),e||ft.call(t,t.media,"playing")}),R(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("bufferstart",()=>{ft.call(t,t.media,"waiting")}),t.embed.on("bufferend",()=>{ft.call(t,t.media,"playing")}),t.embed.on("play",()=>{ee.call(t,!0),ft.call(t,t.media,"playing")}),t.embed.on("pause",()=>{ee.call(t,!1)}),t.embed.on("timeupdate",e=>{t.media.seeking=!1,u=e.seconds,ft.call(t,t.media,"timeupdate")}),t.embed.on("progress",e=>{t.media.buffered=e.percent,ft.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&ft.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(e=>{e!==t.media.duration&&(t.media.duration=e,ft.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",()=>{t.media.seeking=!1,ft.call(t,t.media,"seeked")}),t.embed.on("ended",()=>{t.media.paused=!0,ft.call(t,t.media,"ended")}),t.embed.on("error",e=>{t.media.error=e,ft.call(t,t.media,"error")}),e.customControls&&setTimeout(()=>Qt.build.call(t),0)}};function ie(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,ft.call(this,this.media,t?"play":"pause"))}function se(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const re={setup(){if(nt(this.elements.wrapper,this.config.classNames.embed,!0),I(window.YT)&&D(window.YT.Player))re.ready.call(this);else{const t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{D(t)&&t(),re.ready.call(this)},te(this.config.urls.youtube.sdk).catch(t=>{this.debug.warn("YouTube API failed to load",t)})}},getTitle(t){Nt(At(this.config.urls.youtube.api,t)).then(t=>{if(I(t)){const{title:e,height:n,width:i}=t;this.config.title=e,Qt.setTitle.call(this),this.embed.ratio=xt(i,n)}kt.call(this)}).catch(()=>{kt.call(this)})},ready(){const t=this,e=t.config.youtube,n=t.media&&t.media.getAttribute("id");if(!H(n)&&n.startsWith("youtube-"))return;let i=t.media.getAttribute("src");H(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));const s=H(r=i)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r;var r;const o=Z("div",{id:`${t.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":e.customControls?t.poster:void 0});if(t.media=J(o,t.media),e.customControls){const e=t=>`https://i.ytimg.com/vi/${s}/${t}default.jpg`;Yt(e("maxres"),121).catch(()=>Yt(e("sd"),121)).catch(()=>Yt(e("hq"))).then(e=>Qt.setPoster.call(t,e.src)).then(e=>{e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}t.embed=new window.YT.Player(t.media,{videoId:s,host:se(e),playerVars:W({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError(e){if(!t.media.error){const n=e.data;t.media.error={code:n,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured"},ft.call(t,t.media,"error")}},onPlaybackRateChange(e){t.media.playbackRate=e.target.getPlaybackRate(),ft.call(t,t.media,"ratechange")},onReady(n){if(D(t.media.play))return;const i=n.target;re.getTitle.call(t,s),t.media.play=()=>{ie.call(t,!0),i.playVideo()},t.media.pause=()=>{ie.call(t,!1),i.pauseVideo()},t.media.stop=()=>{i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:()=>Number(i.getCurrentTime()),set(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,ft.call(t,t.media,"seeking"),i.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:()=>i.getPlaybackRate(),set(t){i.setPlaybackRate(t)}});let{volume:r}=t.config;Object.defineProperty(t.media,"volume",{get:()=>r,set(e){r=e,i.setVolume(100*r),ft.call(t,t.media,"volumechange")}});let{muted:o}=t.config;Object.defineProperty(t.media,"muted",{get:()=>o,set(e){const n=M(e)?e:o;o=n,i[n?"mute":"unMute"](),i.setVolume(100*r),ft.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:()=>i.getVideoUrl()}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration});const a=i.getAvailablePlaybackRates();t.options.speed=a.filter(e=>t.config.speed.options.includes(e)),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),ft.call(t,t.media,"timeupdate"),ft.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval(()=>{t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBufferedQt.build.call(t),50)},onStateChange(n){const i=n.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(n.data)&&(t.media.seeking=!1,ft.call(t,t.media,"seeked")),n.data){case-1:ft.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),ft.call(t,t.media,"progress");break;case 0:ie.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):ft.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(ie.call(t,!0),ft.call(t,t.media,"playing"),t.timers.playing=setInterval(()=>{ft.call(t,t.media,"timeupdate")},50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),ft.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),ie.call(t,!1);break;case 3:ft.call(t,t.media,"waiting")}ft.call(t,t.elements.container,"statechange",!1,{code:n.data})}}})}},oe={setup(){this.media?(nt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),nt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&nt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Z("div",{class:this.config.classNames.video}),K(this.media,this.elements.wrapper),this.elements.poster=Z("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Tt.setup.call(this):this.isYouTube?re.setup.call(this):this.isVimeo&&ne.setup.call(this)):this.debug.warn("No media element found!")}};class ae{constructor(e){t(this,"load",()=>{this.enabled&&(I(window.google)&&I(window.google.ima)?this.ready():te(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),t(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),t(this,"setupIMA",()=>{this.elements.container=Z("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),t(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const e=new google.ima.AdsRequest;e.adTagUrl=this.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(e)}catch(t){this.onAdError(t)}}),t(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const t=Lt(Math.max(this.manager.getRemainingTime(),0)),e=`${Dt.get("advertisement",this.player.config)} - ${t}`;this.elements.container.setAttribute("data-badge-text",e)},100)}),t(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,this.manager=t.getAdsManager(this.player,e),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t)),Object.keys(google.ima.AdEvent.Type).forEach(t=>{this.manager.addEventListener(google.ima.AdEvent.Type[t],t=>this.onAdEvent(t))}),this.trigger("loaded")}),t(this,"addCuePoints",()=>{H(this.cuePoints)||this.cuePoints.forEach(t=>{if(0!==t&&-1!==t&&t{const{container:e}=this.player.elements,n=t.getAd(),i=t.getAdData();switch((t=>{ft.call(this.player,this.player.media,"ads"+t.replace(/_/g,"").toLowerCase())})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=e.offsetWidth,n.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn("Non-fatal ad error: "+i.adError.getMessage())}}),t(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),t(this,"listeners",()=>{const{container:t}=this.player.elements;let e;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{e=this.player.currentTime}),this.player.on("seeked",()=>{const t=this.player.currentTime;H(this.cuePoints)||this.cuePoints.forEach((n,i)=>{e{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),t(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(t){this.onAdError(t)}}).catch(()=>{})}),t(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,_t(this.player.media.play())}),t(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),t(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),t(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),t(this,"trigger",(t,...e)=>{const n=this.events[t];F(n)&&n.forEach(t=>{D(t)&&t.apply(this,e)})}),t(this,"on",(t,e)=>(F(this.events[t])||(this.events[t]=[]),this.events[t].push(e),this)),t(this,"startSafetyTimer",(t,e)=>{this.player.debug.log("Safety timer invoked from: "+e),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),t(this,"clearSafetyTimer",t=>{A(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: "+t),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,e)=>{this.on("loaded",t),this.on("error",e)}),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!H(t.publisherId)||B(t.tagUrl))}get tagUrl(){const{config:t}=this;return B(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?"+Ht({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId})}}const le=t=>{const e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(t=>{if(P(n.startTime)){if(!H(t.trim())&&H(n.text)){const e=t.trim().split("#xywh=");[n.text]=e,e[1]&&([n.x,n.y,n.w,n.h]=e[1].split(","))}}else{const e=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);e&&(n.startTime=60*Number(e[1]||0)*60+60*Number(e[2])+Number(e[3])+Number("0."+e[4]),n.endTime=60*Number(e[6]||0)*60+60*Number(e[7])+Number(e[8])+Number("0."+e[9]))}}),n.text&&e.push(n)}),e},ce=(t,e)=>{const n={};return t>e.width/e.height?(n.width=e.width,n.height=1/t*e.width):(n.height=e.height,n.width=t*e.height),n};class he{constructor(e){t(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),t(this,"getThumbnails",()=>new Promise(t=>{const{src:e}=this.player.config.previewThumbnails;if(H(e))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((t,e)=>t.height-e.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(D(e))e(t=>{this.thumbnails=t,n()});else{const t=(O(e)?[e]:e).map(t=>this.getThumbnail(t));Promise.all(t).then(n)}})),t(this,"getThumbnail",t=>new Promise(e=>{Nt(t).then(n=>{const i={frames:le(n),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const s=new Image;s.onload=()=>{i.height=s.naturalHeight,i.width=s.naturalWidth,this.thumbnails.push(i),e()},s.src=i.urlPrefix+i.frames[0].text})})),t(this,"startMove",t=>{if(this.loaded&&j(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const e=this.player.elements.progress.getBoundingClientRect();this.seekTime=this.player.media.duration*(100/e.width*(t.pageX-e.left)/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Lt(this.seekTime)}this.showImageAtCurrentTime()}}),t(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),t(this,"startScrubbing",t=>{(A(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),t(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):mt.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),t(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),t(this,"render",()=>{this.elements.thumb.container=Z("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=Z("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=Z("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=Z("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(t),R(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=Z("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),t(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),t(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(t=>this.seekTime>=t.startTime&&this.seekTime<=t.endTime),e=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach((e,i)=>{this.loadedImages.includes(e.frames[t].text)&&(n=i)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))}),t(this,"loadImage",(t=0)=>{const e=this.showingThumb,n=this.thumbnails[t],{urlPrefix:i}=n,s=n.frames[e],r=n.frames[e].text,o=i+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,s,t,e,r,!1),this.currentImageElement.dataset.index=e,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=o,n.dataset.index=e,n.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log("Loading image: "+o),n.onload=()=>this.showImage(n,s,t,e,r,!0),this.loadingImage=n,this.removeOldImages(n)}}),t(this,"showImage",(t,e,n,i,s,r=!0)=>{this.player.debug.log(`Showing thumb: ${s}. num: ${i}. qual: ${n}. newimg: ${r}`),this.setImageSizeAndOffset(t,e),r&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(s)||this.loadedImages.push(s)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,t,e,s))}),t(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(e=>{if("img"!==e.tagName.toLowerCase())return;const n=this.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;const{currentImageContainer:t}=this;setTimeout(()=>{t.removeChild(e),this.player.debug.log("Removing thumb: "+e.dataset.filename)},n)}})}),t(this,"preloadNearby",(t,e=!0)=>new Promise(n=>{setTimeout(()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let s;s=e?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let r=!1;s.forEach(t=>{const e=t.text;if(e!==i&&!this.loadedImages.includes(e)){r=!0,this.player.debug.log("Preloading thumb filename: "+e);const{urlPrefix:t}=this.thumbnails[0],i=t+e,s=new Image;s.src=i,s.onload=()=>{this.player.debug.log("Preloaded thumb filename: "+e),this.loadedImages.includes(e)||this.loadedImages.push(e),n()}}}),r||n()}},300)})),t(this,"getHigherQuality",(t,e,n,i)=>{if(t{this.showingThumbFilename===i&&(this.player.debug.log("Showing higher quality thumb for: "+i),this.loadImage(t+1))},300)}}),t(this,"toggleThumbContainer",(t=!1,e=!1)=>{this.elements.thumb.container.classList.toggle(this.player.config.classNames.previewThumbnails.thumbContainerShown,t),!t&&e&&(this.showingThumb=null,this.showingThumbFilename=null)}),t(this,"toggleScrubbingContainer",(t=!1)=>{this.elements.scrubbing.container.classList.toggle(this.player.config.classNames.previewThumbnails.scrubbingContainerShown,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),t(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),t(this,"setThumbContainerSizeAndPos",()=>{if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){const t=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width=t+"px"}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){const t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=t+"px"}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=this.thumbContainerHeight+"px",this.elements.thumb.imageContainer.style.width=t+"px"}this.setThumbContainerPos()}),t(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),e=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,i=e.left-t.left+10,s=e.right-t.left-n.clientWidth-10;let r=this.mousePosX-t.left-n.clientWidth/2;rs&&(r=s),n.style.left=r+"px"}),t(this,"setScrubbingContainerSize",()=>{const{width:t,height:e}=ce(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=t+"px",this.elements.scrubbing.container.style.height=e+"px"}),t(this,"setImageSizeAndOffset",(t,e)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*n+"px",t.style.width=t.naturalWidth*n+"px",t.style.left=`-${e.x*n}px`,t.style.top=`-${e.y*n}px`}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=ce(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const ue={insertElements(t,e){O(e)?Y(t,this.media,{src:e}):F(e)&&e.forEach(e=>{Y(t,this.media,e)})},change(t){U(t,"sources.length")?(Tt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],Q(this.media),this.media=null,R(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:n}=t,[{provider:i=Ut.html5,src:s}]=e,r="html5"===i?n:"div",o="html5"===i?{}:{src:s};Object.assign(this,{provider:i,type:n,supported:ct.check(n,i,this.config.playsinline),media:Z(r,o)}),this.elements.container.appendChild(this.media),M(t.autoplay)&&(this.config.autoplay=t.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),H(t.poster)||(this.poster=t.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Qt.addStyleHook.call(this),this.isHTML5&&ue.insertElements.call(this,"source",e),this.config.title=t.title,oe.setup.call(this),this.isHTML5&&Object.keys(t).includes("tracks")&&ue.insertElements.call(this,"track",t.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qt.build.call(this),this.isHTML5&&this.media.load(),H(t.previewThumbnails)||(Object.assign(this.config.previewThumbnails,t.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new he(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class de{constructor(e,n){if(t(this,"play",()=>D(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>_t(this.media.play())),this.media.play()):null),t(this,"pause",()=>this.playing&&D(this.media.pause)?this.media.pause():null),t(this,"togglePlay",t=>(M(t)?t:!this.playing)?this.play():this.pause()),t(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):D(this.media.stop)&&this.media.stop()}),t(this,"restart",()=>{this.currentTime=0}),t(this,"rewind",t=>{this.currentTime-=P(t)?t:this.config.seekTime}),t(this,"forward",t=>{this.currentTime+=P(t)?t:this.config.seekTime}),t(this,"increaseVolume",t=>{this.volume=(this.media.muted?0:this.volume)+(P(t)?t:0)}),t(this,"decreaseVolume",t=>{this.increaseVolume(-t)}),t(this,"airplay",()=>{ct.airplay&&this.media.webkitShowPlaybackTargetPicker()}),t(this,"toggleControls",t=>{if(this.supported.ui&&!this.isAudio){const e=it(this.elements.container,this.config.classNames.hideControls),n=nt(this.elements.container,this.config.classNames.hideControls,void 0===t?void 0:!t);return n&&F(this.config.controls)&&this.config.controls.includes("settings")&&!H(this.config.settings)&&Vt.toggleMenu.call(this,!1),n!==e&&ft.call(this,this.media,n?"controlshidden":"controlsshown"),!n}return!1}),t(this,"on",(t,e)=>{dt.call(this,this.elements.container,t,e)}),t(this,"once",(t,e)=>{mt.call(this,this.elements.container,t,e)}),t(this,"off",(t,e)=>{pt(this.elements.container,t,e)}),t(this,"destroy",(t,e=!1)=>{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,e?(Object.keys(this.elements).length&&(Q(this.elements.buttons.play),Q(this.elements.captions),Q(this.elements.controls),Q(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),D(t)&&t()):(gt.call(this),Tt.cancelRequests.call(this),J(this.elements.original,this.elements.container),ft.call(this,this.elements.original,"destroyed",!0),D(t)&&t.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Qt.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&D(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))}),t(this,"supports",t=>ct.mime.call(this,t)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ct.touch,this.media=e,O(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||N(this.media)||F(this.media))&&(this.media=this.media[0]),this.config=W({},qt,de.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(t){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Gt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ct),A(this.media)||!R(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ct.check().api)return void this.debug.error("Setup failed: no support");const i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;const s=this.media.tagName.toLowerCase();let r=null,o=null;switch(s){case"div":if(r=this.media.querySelector("iframe"),R(r)){if(o=Bt(r.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Ut.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Ut.vimeo:null}(o.toString()),this.elements.container=this.media,this.media=r,this.elements.container.className="",o.search.length){const t=["1","true"];t.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),t.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=t.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(H(this.provider)||!Object.values(Ut).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Wt;break;case"video":case"audio":this.type=s,this.provider=Ut.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ct.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Xt(this),this.storage=new Ft(this),this.media.plyr=this,R(this.elements.container)||(this.elements.container=Z("div",{tabindex:0}),K(this.media,this.elements.container)),Qt.migrateStyles.call(this),Qt.addStyleHook.call(this),oe.setup.call(this),this.config.debug&&dt.call(this,this.elements.container,this.config.events.join(" "),t=>{this.debug.log("event: "+t.type)}),this.fullscreen=new Zt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Qt.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new ae(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>_t(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new he(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Ut.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Ut.youtube}get isVimeo(){return this.provider===Ut.vimeo}get isVideo(){return this.type===Wt}get isAudio(){return"audio"===this.type}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(t){if(!this.duration)return;const e=P(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return P(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const t=parseFloat(this.config.duration),e=(this.media||{}).duration,n=P(e)&&e!==1/0?e:0;return t||n}set volume(t){let e=t;O(e)&&(e=Number(e)),P(e)||(e=this.storage.get("volume")),P(e)||({volume:e}=this.config),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!H(t)&&this.muted&&e>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let e=t;M(e)||(e=this.storage.get("muted")),M(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let e=null;P(t)&&(e=t),P(e)||(e=this.storage.get("speed")),P(e)||(e=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:i}=this;e=function(t=0,e=0,n=255){return Math.min(Math.max(t,e),n)}(e,n,i),this.config.speed.selected=e,setTimeout(()=>{this.media.playbackRate=e},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const e=this.config.quality,n=this.options.quality;if(!n.length)return;let i=[!H(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(P),s=!0;if(!n.includes(i)){const t=vt(n,i);this.debug.warn(`Unsupported quality option: ${i}, using ${t} instead`),i=t,s=!1}e.selected=i,this.media.quality=i,s&&this.storage.set({quality:i})}get quality(){return this.media.quality}set loop(t){const e=M(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}get loop(){return Boolean(this.media.loop)}set source(t){ue.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return B(t)?t:this.source}set download(t){B(t)&&(this.config.urls.download=t,Vt.setDownloadUrl.call(this))}set poster(t){this.isVideo?Qt.setPoster.call(this,t,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=Et(St.call(this));return F(t)?t.join(":"):t}set ratio(t){this.isVideo?O(t)&&Ct(t)?(this.config.ratio=Et(t),kt.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(t){const e=M(t)?t:this.config.autoplay;this.config.autoplay=e}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(t){zt.toggle.call(this,t,!1)}set currentTrack(t){zt.set.call(this,t,!1)}get currentTrack(){const{toggled:t,currentTrack:e}=this.captions;return t?e:-1}set language(t){zt.setLanguage.call(this,t,!1)}get language(){return(zt.getCurrentTrack.call(this)||{}).language}set pip(t){if(!ct.pip)return;const e=M(t)?t:!this.pip;D(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?$t:"inline"),D(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}get pip(){return ct.pip?H(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===$t:null}static supported(t,e,n){return ct.check(t,e,n)}static loadSprite(t,e){return Rt(t,e)}static setup(t,e={}){let n=null;return O(t)?n=Array.from(document.querySelectorAll(t)):N(t)?n=Array.from(t):F(t)&&(n=t.filter(R)),H(n)?null:n.map(t=>new de(t,e))}}return de.defaults=JSON.parse(JSON.stringify(qt)),de}())},kiQV:function(t){t.exports=JSON.parse('{"name":"bory-chatfaq","version":"0.0.4","scripts":{"ng":"ng","start":"ng serve","build":"ng build","test":"ng test","lint":"ng lint","e2e":"ng e2e","postinstall":"ngcc","prebuild":"npm --no-git-tag-version version patch","package":"cd dist/bory-chatfaq && type runtime.js polyfills.js main.js > bundle.js","bundle":"npm run build bory-chatfaq && npm run package"},"private":true,"dependencies":{"@angular/animations":"~11.0.0-rc.1","@angular/cdk":"^11.2.11","@angular/common":"~11.0.0-rc.1","@angular/compiler":"~11.0.0-rc.1","@angular/core":"~11.0.0-rc.1","@angular/elements":"^11.2.12","@angular/forms":"~11.0.0-rc.1","@angular/material":"^11.2.11","@angular/platform-browser":"~11.0.0-rc.1","@angular/platform-browser-dynamic":"~11.0.0-rc.1","@angular/router":"~11.0.0-rc.1","@webcomponents/webcomponentsjs":"^2.5.0","concat-files":"^0.1.1","document-register-element":"^1.14.10","ngx-emoj":"0.0.7","ngx-plyr":"^4.0.0","plyr":"^3.6.7","rxjs":"~6.6.0","tslib":"^2.0.0","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.0-rc.1","@angular/cli":"~11.0.0-rc.1","@angular/compiler-cli":"~11.0.0-rc.1","@types/jasmine":"~3.6.0","@types/node":"^12.11.1","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.2.0","karma-chrome-launcher":"~3.1.0","karma-coverage":"~2.0.3","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","protractor":"~7.0.0","ts-node":"~8.3.0","tslint":"~6.1.0","typescript":"~4.0.2"}}')},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new m(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends m{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof m)return t;if(t[p])return t[p]()}return t||e||n?new m(t,e,n):new m(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof m?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends m{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}function x(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A extends m{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const I=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return I(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function N(t,e){return new _(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function R(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new _(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(D(t))return function(t,e){return new _(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(M(t))return N(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[O](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(F(t))}class j extends m{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends m{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function V(t,e){if(e.closed)return;if(t instanceof _)return t.subscribe(e);let n;try{n=F(t)(e)}catch(i){e.error(i)}return n}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>R(t(n,i)).pipe(x((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return B(y,t)}function $(t,e){return e?N(t,e):new _(I(t))}function U(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:q(e)($(t,n))}function W(){return function(t){return t.lift(new K(t))}}class K{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new G(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class G extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new Q(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return W()(this)}}const Y=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Q extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new E}function J(){return t=>{return W()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Y);return i.source=t,i.subjectFactory=n,i})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function nt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(nt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function it(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return nt(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return ut(t,pt)||ut(t,ft)}function ut(t,e){return t.hasOwnProperty(e)?t[e]:null}function dt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(gt))?t[mt]:null}const pt=tt({"\u0275prov":tt}),mt=tt({"\u0275inj":tt}),ft=tt({ngInjectableDef:tt}),gt=tt({ngInjectorDef:tt});var yt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let _t;function bt(t){const e=_t;return _t=t,e}function vt(t,e,n){const i=ht(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&yt.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${nt(t)}]`)}function wt(t){return{toString:t}.toString()}var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Et=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const St="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,xt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,At=St||Tt||kt||xt,It={},Pt=[],Ot=tt({"\u0275cmp":tt}),Mt=tt({"\u0275dir":tt}),Dt=tt({"\u0275pipe":tt}),Ft=tt({"\u0275mod":tt}),Nt=tt({"\u0275loc":tt}),Rt=tt({"\u0275fac":tt}),jt=tt({__NG_ELEMENT_ID__:tt});let Lt=0;function Vt(t){return wt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Pt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||Pt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Lt++,n.inputs=$t(t.inputs,e),n.outputs=$t(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Bt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(Ht):null,n})}function Bt(t){return Kt(t)||function(t){return t[Mt]||null}(t)}function Ht(t){return function(t){return t[Dt]||null}(t)}const zt={};function qt(t){const e={type:t.type,bootstrap:t.bootstrap||Pt,declarations:t.declarations||Pt,imports:t.imports||Pt,exports:t.exports||Pt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&wt(()=>{zt[t.id]=t.type}),e}function $t(t,e){if(null==t)return It;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const Ut=Vt;function Wt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Kt(t){return t[Ot]||null}function Gt(t,e){const n=t[Ft]||null;if(!n&&!0===e)throw new Error(`Type ${nt(t)} does not have '\u0275mod' property.`);return n}const Zt=20,Yt=10;function Qt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Xt(t){return Array.isArray(t)&&!0===t[1]}function Jt(t){return 0!=(8&t.flags)}function te(t){return 2==(2&t.flags)}function ee(t){return 1==(1&t.flags)}function ne(t){return null!==t.template}function ie(t,e){return t.hasOwnProperty(Rt)?t[Rt]:null}class se extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function re(t){return"string"==typeof t?t:null==t?"":String(t)}function oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():re(t)}function ae(t,e){const n=e?" in "+e:"";throw new se("201",`No provider for ${oe(t)} found${n}`)}class le{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ce(){return he}function he(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),ue}function ue(){const t=pe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===It)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,n,i){const s=pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:It,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new le(l&&l.currentValue,e,o===It),t[i]=e}function pe(t){return t.__ngSimpleChanges__||null}ce.ngInherit=!0;let me=void 0;function fe(){return void 0!==me?me:"undefined"!=typeof document?document:void 0}function ge(t){return!!t.listen}const ye={createRenderer:(t,e)=>fe()};function _e(t){for(;Array.isArray(t);)t=t[0];return t}function be(t,e){return _e(e[t])}function ve(t,e){return _e(e[t.index])}function we(t,e){return t.data[e]}function Ce(t,e){return t[e]}function Ee(t,e){const n=e[t];return Qt(n)?n:n[0]}function Se(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ke(t){return 4==(4&t[2])}function xe(t){return 128==(128&t[2])}function Te(t,e){return null==e?null:t[e]}function Ae(t){t[18]=0}function Ie(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Pe={lFrame:Xe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Oe(){return Pe.bindingsEnabled}function Me(){return Pe.lFrame.lView}function De(){return Pe.lFrame.tView}function Fe(t){Pe.lFrame.contextLView=t}function Ne(){let t=Re();for(;null!==t&&64===t.type;)t=t.parent;return t}function Re(){return Pe.lFrame.currentTNode}function je(t,e){const n=Pe.lFrame;n.currentTNode=t,n.isParent=e}function Le(){return Pe.lFrame.isParent}function Ve(){Pe.lFrame.isParent=!1}function Be(){return Pe.isInCheckNoChangesMode}function He(t){Pe.isInCheckNoChangesMode=t}function ze(){const t=Pe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function qe(){return Pe.lFrame.bindingIndex++}function $e(t,e){const n=Pe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ue(e)}function Ue(t){Pe.lFrame.currentDirectiveIndex=t}function We(){return Pe.lFrame.currentQueryIndex}function Ke(t){Pe.lFrame.currentQueryIndex=t}function Ge(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Ze(t,e,n){if(n&yt.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&yt.Host||(i=Ge(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Pe.lFrame=Qe();return i.currentTNode=e,i.lView=t,!0}function Ye(t){const e=Qe(),n=t[1];Pe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Qe(){const t=Pe.lFrame,e=null===t?null:t.child;return null===e?Xe(t):e}function Xe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Je(){const t=Pe.lFrame;return Pe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const tn=Je;function en(){const t=Je();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function nn(){return Pe.lFrame.selectedIndex}function sn(t){Pe.lFrame.selectedIndex=t}function rn(){const t=Pe.lFrame;return we(t.tView,t.selectedIndex)}function on(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}const dn=-1;class pn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function mn(t,e,n){const i=ge(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let Cn=!0;function En(t){const e=Cn;return Cn=t,e}let Sn=0;function kn(t,e){const n=Tn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,xn(i.data,t),xn(e,null),xn(i.blueprint,null));const s=An(t,e),r=t.injectorIndex;if(bn(s)){const t=vn(s),n=wn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function xn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Tn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function An(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return dn;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return dn}function In(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(i=n[jt]),null==i&&(i=n[jt]=Sn++);const s=255&i,r=1<=0?255&e:Fn:e}(n);if("function"==typeof r){if(!Ze(e,t,i))return i&yt.Host?Pn(s,n,i):On(e,n,i,s);try{const t=r();if(null!=t||i&yt.Optional)return t;ae(n)}finally{tn()}}else if("number"==typeof r){let s=null,o=Tn(t,e),a=dn,l=i&yt.Host?e[16][6]:null;for((-1===o||i&yt.SkipSelf)&&(a=-1===o?An(t,e):e[o+8],a!==dn&&Vn(i,!1)?(s=e[1],o=vn(a),e=wn(a,e)):o=-1);-1!==o;){const t=e[1];if(Ln(r,o,t.data)){const t=Nn(o,e,n,s,i,l);if(t!==Dn)return t}a=e[o+8],a!==dn&&Vn(i,e[1].data[o+8]===l)&&Ln(r,o,e)?(s=t,o=vn(a),e=wn(a,e)):o=-1}}}return On(e,n,i,s)}const Dn={};function Fn(){return new Bn(Ne(),Me())}function Nn(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Rn(a,o,n,null==i?te(a)&&Cn:i!=o&&0!=(3&a.type),s&yt.Host&&r===a);return null!==l?jn(e,o,l,a):Dn}function Rn(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&ne(t)&&t.type===n)return l}return null}function jn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof pn){const o=s;o.resolving&&function(t,e){throw new se("200","Circular dependency in DI detected for "+t)}(oe(r[n]));const a=En(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?bt(o.injectImpl):null;Ze(t,i,yt.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=he(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&bt(l),En(a),o.resolving=!1,tn()}}return s}function Ln(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Hn(ot(e));return t?t():null};let n=ie(e);if(null===n){const t=dt(e);n=t&&t.factory}return n||null}function zn(t){return wt(()=>{const e=t.prototype.constructor,n=e[Rt]||Hn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Rt]||Hn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}const qn="__parameters__";function $n(t,e,n){return wt(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(qn)?t[qn]:Object.defineProperty(t,qn,{value:[]})[qn];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Un{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}function Wn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Kn(t,e):e(t))}function Gn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Zn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Yn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function Xn(t,e){const n=Jn(t,e);if(n>=0)return t[1|n]}function Jn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const ti=$n("Inject",t=>({token:t})),ei=$n("Optional"),ni=$n("Self"),ii=$n("SkipSelf"),si=$n("Host"),ri={},oi=/\n/gm,ai="__source",li=tt({provide:String,useValue:tt});let ci=void 0;function hi(t){const e=ci;return ci=t,e}function ui(t,e=yt.Default){if(void 0===ci)throw new Error("inject() must be called from an injection context");return null===ci?vt(t,void 0,e):ci.get(t,e&yt.Optional?null:void 0,e)}function di(t,e=yt.Default){return(_t||ui)(ot(t),e)}const pi=di;function mi(t){const e=[];for(let n=0;nt,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return fi}())||void 0===e?void 0:e.createHTML(t))||t}class yi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class _i extends yi{getTypeName(){return"HTML"}}class bi extends yi{getTypeName(){return"Style"}}class vi extends yi{getTypeName(){return"Script"}}class wi extends yi{getTypeName(){return"URL"}}class Ci extends yi{getTypeName(){return"ResourceURL"}}function Ei(t){return t instanceof yi?t.changingThisBreaksApplicationSecurity:t}function Si(t,e){const n=ki(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ki(t){return t instanceof yi&&t.getTypeName()||null}class xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(gi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ti{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=gi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=gi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Pi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ui(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ji.hasOwnProperty(e)&&!Di.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Ui(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$i=/([^\#-~ |!])/g;function Ui(t){return t.replace(/&/g,"&").replace(qi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($i,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Wi;function Ki(t,e){let n=null;try{Wi=Wi||function(t){const e=new Ti(t);return function(){try{return!!(new window.DOMParser).parseFromString(gi(""),"text/html")}catch(t){return!1}}()?new xi(e):e}(t);let i=e?String(e):"";n=Wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Wi.getInertBodyElement(i)}while(i!==r);return(new zi).sanitizeChildren(Gi(n)||n)}finally{if(n){const t=Gi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Gi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Zi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Yi(t){const e=Xi();return e?e.sanitize(Zi.HTML,t)||"":Si(t,"HTML")?Ei(t):Ki(fe(),re(t))}function Qi(t){const e=Xi();return e?e.sanitize(Zi.URL,t)||"":Si(t,"URL")?Ei(t):Pi(re(t))}function Xi(){const t=Me();return t&&t[12]}function Ji(t){return t.ngDebugContext}function ts(t){return t.ngOriginalError}function es(t,...e){t.error(...e)}class ns{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||es}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Ji(t)?Ji(t):this._findContext(ts(t)):null}_findOriginalError(t){let e=ts(t);for(;e&&ts(e);)e=ts(e);return e}}function is(t,e){t.__ngContext__=e}const ss=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function rs(t){return t instanceof Function?t():t}var os=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function as(t,e){return(void 0)(t,e)}function ls(t){const e=t[3];return Xt(e)?e[3]:e}function cs(t){return us(t[13])}function hs(t){return us(t[4])}function us(t){for(;null!==t&&!Xt(t);)t=t[4];return t}function ds(t,e,n,i,s){if(null!=i){let r,o=!1;Xt(i)?r=i:Qt(i)&&(o=!0,i=i[0]);const a=_e(i);0===t&&null!==n?null==s?vs(e,n,a):bs(e,n,a,s||null,!0):1===t&&null!==n?bs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Cs(t,e);i&&function(t,e,n,i){ge(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==_e(n)&&ds(e,t,i,r,s);for(let o=Yt;o0&&(t[n-1][4]=i[4]);const o=Zn(t,Yt+e);Is(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function gs(t,e){if(!(256&e[2])){const n=e[11];ge(n)&&n.destroyNode&&Is(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ys(t[1],t);for(;e;){let n=null;if(Qt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Qt(e)&&ys(e[1],e),e=e[3];null===e&&(e=t),Qt(e)&&ys(e[1],e),n=e&&e[4]}e=n}}(e)}}function ys(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Ds(e,c,0)||2&i&&c!==t){if(Vs(i))return!1;o=!0}}}}else{if(!o&&!Vs(i)&&!Vs(l))return!1;if(o&&Vs(l))continue;o=!1,i=l|1&i}}return Vs(i)||o}function Vs(t){return 0==(1&t)}function Bs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||Vs(o)||(e+=qs(r,s),s=""),i=o,r=r||!Vs(i);n++}return""!==s&&(e+=qs(r,s)),e}const Us={};function Ws(t){Ks(De(),Me(),nn()+t,Be())}function Ks(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&an(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ln(e,i,0,n)}sn(n)}function Gs(t,e){return t<<17|e<<2}function Zs(t){return t>>17&32767}function Ys(t){return 2|t}function Qs(t){return(131068&t)>>2}function Xs(t,e){return-131069&t|e<<2}function Js(t){return 1|t}function tr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iZt&&Ks(t,e,Zt,Be()),n(i,s)}finally{sn(r)}}function lr(t,e,n){if(Jt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function _r(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function br(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function vr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Ar(n)}}function Ar(t){for(let n=cs(t);null!==n;n=hs(n))for(let t=Yt;t0&&Ar(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Ar(i)}}function Ir(t,e){const n=Ee(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Rr(t){return t[7]||(t[7]=[])}function jr(t){return t.cleanup||(t.cleanup=[])}function Lr(t,e){const n=t[9],i=n?n.get(ns,null):null;i&&i.handleError(e)}function Vr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),Kn([t],t=>this.processInjectorType(t,[],s)),this.records.set(Hr,Jr(void 0,this));const r=this.records.get(qr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:nt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ri,n=yt.Default){this.assertNotDestroyed();const i=hi(this);try{if(!(n&yt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Un)&&ht(t);e=n&&this.injectableDefInScope(n)?Jr(Qr(t),$r):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&yt.Self?Gr():this.parent).get(t,e=n&yt.Optional&&e===ri?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(nt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[ai]&&s.unshift(e[ai]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=nt(e);if(Array.isArray(e))s=e.map(nt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):nt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(oi,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{hi(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(nt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=ot(t)))return!1;let i=dt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=dt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{Kn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Wr))}}this.injectorDefTypes.add(r),this.records.set(r,Jr(i.factory,$r));const a=i.providers;if(null!=a&&!o){const e=t;Kn(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=eo(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,n){return to(t)?Jr(void 0,t.useValue):Jr(Xr(t),$r)}(t);if(eo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Jr(void 0,$r,!0),e.factory=()=>mi(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===$r&&(e.value=Ur,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Qr(t){const e=ht(t),n=null!==e?e.factory:ie(t);if(null!==n)return n;const i=dt(t);if(null!==i)return i.factory;if(t instanceof Un)throw new Error(`Token ${nt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Yn(e,"?");throw new Error(`Can't resolve all parameters for ${nt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[pt]||t[ft]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Xr(t,e,n){let i=void 0;if(eo(t)){const e=ot(t);return ie(e)||Qr(e)}if(to(t))i=()=>ot(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...mi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>di(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ie(e)||Qr(e);i=()=>new e(...mi(t.deps))}var s;return i}function Jr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function to(t){return null!==t&&"object"==typeof t&&li in t}function eo(t){return"function"==typeof t}const no=function(t,e,n){return function(t,e=null,n=null,i){const s=Zr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let io=(()=>{class t{static create(t,e){return Array.isArray(t)?no(t,e,""):no(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=ri,t.NULL=new zr,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>di(Hr)}),t.__NG_ELEMENT_ID__=-1,t})();function so(t,e){on(Se(t)[1],Ne())}function ro(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(ne(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=oo(t.inputs),e.declaredInputs=oo(t.declaredInputs),e.outputs=oo(t.outputs);const n=s.hostBindings;n&&co(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&ao(t,r),o&&lo(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(t.outputs,s.outputs),ne(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=yn(s.hostAttrs,n=yn(n,s.hostAttrs))}}(i)}function oo(t){return t===It?{}:t===Pt?[]:t}function ao(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function lo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function co(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let ho=null;function uo(){if(!ho){const t=At.Symbol;if(t&&t.iterator)ho=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(_e(t[i.index])).target:i.index;if(ge(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=jo(i,e,r,!1);const t=n.listen(p.name||m,s,r);h.push(r,t),c&&c.push(s,g,f,f+1)}}else r=jo(i,e,r,!0),m.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,f,o)}else r=jo(i,e,r,!1);const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Pe.lFrame.contextLView))[8]}(t)}function Vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}function Ko(t,e){return function(t,e,n,i){const s=Me(),r=De(),o=function(t){const e=Pe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[nn()],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(r)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=Pe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=e.residualClasses;if(null===s)0===e.classBindings&&(n=Zo(n=Go(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Go(s,t,e,n,i),null===r){let n=function(t,e,n){const i=e.classBindings;if(0!==Qs(i))return t[Zs(i)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=Go(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[Zs(e.classBindings)]=i}(t,e,0,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Zs(t[a+1]);t[i+1]=Gs(e,a),0!==e&&(t[e+1]=Xs(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Gs(a,0),0!==a&&(t[a+1]=Xs(t[a+1],i)),a=i;else t[i+1]=Gs(l,0),0===a?a=i:t[l+1]=Xs(t[l+1],i),l=i;h&&(t[i+1]=Ys(t[i+1])),Uo(t,c,i,!0),Uo(t,c,i,!1),function(t,e,n,i,s){const r=t.residualClasses;null!=r&&"string"==typeof e&&Jn(r,e)>=0&&(n[i+1]=Js(n[i+1]))}(e,c,t,i),o=Gs(a,l),e.classBindings=o}(s,r,e,n,o)}}(r,t,o,true),e!==Us&&_o(s,o,e)&&function(t,e,n,i,s,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Qo(1==(1&c)?Yo(l,e,n,s,Qs(c),o):void 0)||(Qo(r)||function(t){return 2==(2&t)}(c)&&(r=Yo(l,null,n,s,a,o)),function(t,e,n,i,s){const r=ge(t);s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i)}(i,0,be(nn(),n),s,r))}(r,r.data[nn()],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=nt(Ei(t))),t}(e),true,o)}(t,e),Ko}function Go(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Us&&(h=c?$o:void 0);let u=c?Xn(h,i):l===i?h:void 0;if(r&&!Qo(u)&&(u=Xn(e,i)),Qo(u)&&(a=u,o))return a;const d=t[s+1];s=o?Zs(d):Qs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=Xn(t,i))}return a}function Qo(t){return void 0!==t}function Xo(t,e=""){const n=Me(),i=De(),s=t+Zt,r=i.firstCreatePass?nr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return ge(t)?t.createText(e):t.createTextNode(e)}(n[11],e);ks(i,n,o,r),je(r,!1)}function Jo(t){return ta("",t,""),Jo}function ta(t,e,n){const i=Me(),s=Co(i,t,e,n);return s!==Us&&function(t,e,n){const i=be(e,t);!function(t,e,n){ge(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,nn(),s),ta}const ea=void 0;var na=["en",[["a","p"],["AM","PM"],ea],[["AM","PM"],ea,ea],[["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"]],ea,[["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"]],ea,[["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}",ea,"{1} 'at' {0}",ea],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ia={};function sa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ra(e);if(n)return n;const i=e.split("-")[0];if(n=ra(i),n)return n;if("en"===i)return na;throw new Error(`Missing locale data for the locale "${t}".`)}function ra(t){return t in ia||(ia[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),ia[t]}var oa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const aa="en-US";let la=aa;function ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(la=t.toLowerCase().replace(/_/g,"-"))}function ha(t,e,n,i,s){if(t=ot(t),Array.isArray(t))for(let r=0;r>20;if(eo(t)||!t.multi){const i=new pn(l,s,ko),p=pa(a,e,s?h:h+d,u);-1===p?(In(kn(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=pa(a,e,h+d,u),m=pa(a,e,h,h+d),f=p>=0&&n[p],g=m>=0&&n[m];if(s&&!g||!s&&!f){In(kn(c,o),r,a);const h=function(t,e,n,i,s){const r=new pn(t,n,ko);return r.multi=[],r.index=e,r.componentProviders=0,da(r,s,i&&!n),r}(s?fa:ma,n.length,s,i,l);!s&&g&&(n[m].providerFactory=h),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else ua(r,t,p>-1?p:m,da(n[s?m:p],l,!s&&i));!s&&i&&g&&n[m].componentProviders++}}}function ua(t,e,n,i){const s=eo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function da(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function pa(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=De();if(i.firstCreatePass){const s=ne(t);ha(n,i.data,i.blueprint,s,!0),ha(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${nt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let va=(()=>{class t{}return t.NULL=new ba,t})();function wa(...t){}function Ca(t,e){return new Sa(ve(t,e))}const Ea=function(){return Ca(Ne(),Me())};let Sa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ea,t})();class ka{}let xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=Me(),e=Ee(Ne().index,t);return function(t){return t[11]}(Qt(e)?e:t)};let Aa=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class Ia{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Pa=new Ia("11.0.9");class Oa{constructor(){}supports(t){return mo(t)}create(t){return new Da(t)}}const Ma=(t,e)=>e;class Da{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ma}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Fa(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ra),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ra),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Fa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Na{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ra{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Na,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ja(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ba(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ba{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ii,new ei]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new t([new Oa])}),t})(),za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ii,new ei]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new t([new La])}),t})();function qa(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(_e(r)),Xt(r))for(let t=Yt;t-1&&(fs(t,n),Zn(e,n))}this._attachedToViewContainer=!1}gs(this._lView[1],this._lView)}onDestroy(t){pr(this._lView[1],this._lView,null,t)}markForCheck(){Or(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){He(!0);try{Mr(t,e,n)}finally{He(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Is(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ua extends $a{constructor(t){super(t),this._view=t}detectChanges(){Dr(this._view)}checkNoChanges(){!function(t){He(!0);try{Dr(t)}finally{He(!1)}}(this._view)}get context(){return null}}const Wa=function(t=!1){return function(t,e,n){if(!n&&te(t)){const n=Ee(t.index,e);return new $a(n,n)}return 47&t.type?new $a(e[16],e):null}(Ne(),Me(),t)};let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t.__ChangeDetectorRef__=!0,t})();const Ga=[new La],Za=new Ha([new Oa]),Ya=new za(Ga),Qa=function(){return el(Ne(),Me())};let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qa,t})();const Ja=Xa,tl=class extends Ja{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=er(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),sr(e,n,t),new $a(n)}};function el(t,e){return 4&t.type?new tl(e,t,Ca(t,e)):null}class nl{}const il=function(){return cl(Ne(),Me())};let sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=il,t})();const rl=sl,ol=class extends rl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new Bn(this._hostTNode,this._hostLView)}get parentInjector(){const t=An(this._hostTNode,this._hostLView);if(bn(t)){const e=wn(t,this._hostLView),n=vn(t);return new Bn(e[1].data[n+8],e)}return new Bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=al(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Yt}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(nl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(Xt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ol(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=Yt+i,r=n.length;i>0&&(n[s-1][4]=e),iss});class ml extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map($s).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,hl,s);return r!==hl||i===hl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ka,ye),o=s.get(Aa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ge(t))return t.selectRootElement(e,n===Et.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):ps(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:ss,clean:Nr,playerHandler:null,flags:0},d=dr(0,null,null,1,0,null,null,null,null,null),p=er(null,d,u,h,null,null,r,a,o,s);let m,f;Ye(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=nr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Br(a,l,!0),null!==t&&(mn(s,t,l),null!==a.classes&&Ms(s,t,a.classes),null!==a.styles&&Os(s,t,a.styles)));const c=i.createRenderer(t,e),h=er(n,ur(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(In(kn(a,n),o,e.type),br(o,a),wr(a,n.length,1)),Pr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)mn(a,c,["ng-version",Pa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ms(a,c,e.join(" "))}if(f=we(d,Zt),void 0!==e){const t=f.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Ne();e.contentQueries(1,o,t.directiveStart)}const a=Ne();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(sn(a.index),yr(n[1],a,0,a.directiveStart,a.directiveEnd,e),_r(e,o)),o}(t,this.componentDef,p,u,[so]),sr(d,p,null)}finally{en()}return new fl(this.componentType,m,Ca(f,p),p,f)}}class fl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ua(i),this.componentType=t}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const gl=new Map;class yl extends nl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const n=Gt(t),i=t[Nt]||null;i&&ca(i),this._bootstrapComponents=rs(n.bootstrap),this._r3Injector=Zr(t,e,[{provide:nl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],nt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=io.THROW_IF_NOT_FOUND,n=yt.Default){return t===io||t===nl||t===Hr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _l extends class{}{constructor(t){super(),this.moduleType=t,null!==Gt(t)&&function(t){const e=new Set;!function t(n){const i=Gt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${nt(e)} vs ${nt(e.name)}`)}(s,gl.get(s),n),gl.set(s,n));const r=rs(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new yl(this.moduleType,t)}}function bl(t,e,n){const i=ze()+t,s=Me();return s[i]===Us?go(s,i,n?e.call(n):e()):yo(s,i)}function vl(t,e,n,i){return Sl(Me(),ze(),t,e,n,i)}function wl(t,e,n,i,s){return kl(Me(),ze(),t,e,n,i,s)}function Cl(t,e,n,i,s,r,o){return function(t,e,n,i,s,r,o,a,l){const c=e+n;return vo(t,c,s,r,o,a)?go(t,c+4,l?i.call(l,s,r,o,a):i(s,r,o,a)):El(t,c+4)}(Me(),ze(),t,e,n,i,s,r,o)}function El(t,e){const n=t[e];return n===Us?void 0:n}function Sl(t,e,n,i,s,r){const o=e+n;return _o(t,o,s)?go(t,o+1,r?i.call(r,s):i(s)):El(t,o+1)}function kl(t,e,n,i,s,r,o){const a=e+n;return bo(t,a,s,r)?go(t,a+2,o?i.call(o,s,r):i(s,r)):El(t,a+2)}function xl(t,e){const n=De();let i;const s=t+Zt;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new se("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=ie(i.type)),o=bt(ko);try{const t=En(!1),e=r();return En(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Me(),s,e),e}finally{bt(o)}}function Tl(t,e,n,i){const s=t+Zt,r=Me(),o=Ce(r,s);return Il(r,Al(r,s)?kl(r,ze(),e,o.transform,n,i,o):o.transform(n,i))}function Al(t,e){return t[1].data[e].pure}function Il(t,e){return po.isWrapped(e)&&(e=po.unwrap(e),t[Pe.lFrame.bindingIndex]=Us),e}const Pl=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function Ol(){return this._results[uo()]()}class Ml{constructor(){this.dirty=!0,this._results=[],this.changes=new Pl,this.length=0;const t=uo(),e=Ml.prototype;e[t]||(e[t]=Ol)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=Wn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=Yt;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(di(Yl,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Xl=new Un("AppId"),Jl={provide:Xl,useFactory:function(){return`${tc()}${tc()}${tc()}`},deps:[]};function tc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ec=new Un("Platform Initializer"),nc=new Un("Platform ID"),ic=new Un("appBootstrapListener");let sc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const rc=new Un("LocaleId"),oc=new Un("DefaultCurrencyCode");class ac{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lc=function(t){return new _l(t)},cc=lc,hc=function(t){return Promise.resolve(lc(t))},uc=function(t){const e=lc(t),n=rs(Gt(t).declarations).reduce((t,e)=>{const n=Kt(e);return n&&t.push(new ml(n)),t},[]);return new ac(e,n)},dc=uc,pc=function(t){return Promise.resolve(uc(t))};let mc=(()=>{class t{constructor(){this.compileModuleSync=cc,this.compileModuleAsync=hc,this.compileModuleAndAllComponentsSync=dc,this.compileModuleAndAllComponentsAsync=pc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const fc=(()=>Promise.resolve(0))();function gc(t){"undefined"==typeof Zone?fc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class yc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pl(!1),this.onMicrotaskEmpty=new Pl(!1),this.onStable=new Pl(!1),this.onError=new Pl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vc(t),bc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return wc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Cc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return wc(t),e.invoke(i,s,r,o,a)}finally{Cc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vc(t),bc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(yc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,_c,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const _c={};function bc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Cc(t){t._nesting--,bc(t)}class Ec{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pl,this.onMicrotaskEmpty=new Pl,this.onStable=new Pl,this.onError=new Pl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Sc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yc.assertNotInAngularZone(),gc(()=>{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())gc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(di(yc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),kc=(()=>{class t{constructor(){this._applications=new Map,Ac.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ac.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Tc,Ac=new xc,Ic=!0,Pc=!1;function Oc(){return Pc=!0,Ic}const Mc=new Un("AllowMultipleToken");function Dc(t,e,n=[]){const i="Platform: "+e,s=new Un(i);return(e=[])=>{let r=Fc();if(!r||r.injector.get(Mc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:qr,useValue:"platform"});!function(t){if(Tc&&!Tc.destroyed&&!Tc.injector.get(Mc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Tc=t.get(Nc);const e=t.get(ec,null);e&&e.forEach(t=>t())}(io.create({providers:t,name:i}))}return function(t){const e=Fc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Fc(){return Tc&&!Tc.destroyed?Tc:null}let Nc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Ec:("zone.js"===t?void 0:t)||new yc({enableLongStackTrace:Oc(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:yc,useValue:n}];return n.run(()=>{const e=io.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ns,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Lc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Fo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Ql);return t.runInitializers(),t.donePromise.then(()=>(ca(s.injector.get(rc,aa)||aa),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Rc({},e);return function(t,e,n){const i=new _l(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(jc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${nt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(di(io))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Rc(t,e){return Array.isArray(e)?e.reduce(Rc,t):Object.assign(Object.assign({},t),e)}let jc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{yc.assertNotInAngularZone(),gc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{yc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=U(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(nl),s=n.create(io.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(Sc,null),a=o&&s.injector.get(kc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Lc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),Oc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ic,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(di(yc),di(sc),di(io),di(ns),di(va),di(Ql))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Lc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Vc=Dc(null,"core",[{provide:nc,useValue:"unknown"},{provide:Nc,deps:[io]},{provide:kc,deps:[]},{provide:sc,deps:[]}]),Bc=[{provide:jc,useClass:jc,deps:[yc,sc,io,ns,va,Ql]},{provide:pl,deps:[yc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ql,useClass:Ql,deps:[[new ei,Yl]]},{provide:mc,useClass:mc,deps:[]},Jl,{provide:Ha,useFactory:function(){return Za},deps:[]},{provide:za,useFactory:function(){return Ya},deps:[]},{provide:rc,useFactory:function(t){return ca(t=t||"undefined"!=typeof $localize&&$localize.locale||aa),t},deps:[[new ti(rc),new ei,new ii]]},{provide:oc,useValue:"USD"}];let Hc=(()=>{class t{constructor(t){}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(di(jc))},providers:Bc}),t})();const zc=(n("kiQV"),"kbh.inc");class qc{constructor(t,e,n,i,s){this.content=t,this.time=e,this.type=n,this.author=i,this.group=s}}let $c=(()=>{class t{constructor(){this.defaultAnswer="I can't understand. Can you please repeat",this.defaultType="text",this.conversation=new E,this.testAnswerData=[{question:"Start Chat",answer:"Hi there! this is a chatbot, try saying 'help'!",userId:"bot",type:"text",time:"20:37 7/4/2021"},{question:"Hi",answer:"Hello",userId:"bot",type:"text",time:"20:37 7/4/2021"},{question:"Video",answer:{src:"bTqVqk7FSmY",provider:"youtube",host:window.location.protocol+"//www.youtube.com"},userId:"bot",type:"video",time:"20:37 7/4/2021"},{question:"Audio",answer:{src:"https://alfaprav.com/wp-content/plugins/bory-chatbot/assets/rickrolled.mp3",type:"audio/mp3"},userId:"bot",type:"audio",time:"20:37 7/4/2021"},{question:"Link",answer:{urlName:"Google",url:"https://google.com"},userId:"bot",type:"link",time:"20:37 7/4/2021"},{question:"Image",answer:"https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/robot-face.png",userId:"bot",type:"image",time:"20:37 7/4/2021"},{question:"\ud83d\ude00",answer:"\ud83d\ude0d",userId:"bot",type:"text",time:"20:37 7/4/2021"},{question:"help",answer:["Hi","Link","Image","Video","Audio"],userId:"bot",type:"quickQuestion",time:""}],this.isActive=!0}playNotification(){let t=new Audio;t.src="https://alfaprav.com/wp-content/plugins/bory-chatbot/assets/notification.mp3",t.load(),t.play()}getAnswers(t,e,n,i){const s=new qc(t,e,n,i);this.conversation.next([s]),this.getBotMessageByServer(t,e)}getBotTime(t){const e=new Date,n=e.getHours()+":"+(e.getMinutes()<10?"0":"")+e.getMinutes()+" "+e.getDate()+"/"+e.getMonth()+"/"+e.getFullYear();for(let i=0;it.json()).then(t=>{let n=[];n.push(new qc(t.res,e,"text","bot")),t.func&&t.func.length>0&&t.func.forEach(t=>{let i=null;switch(t.type){case"text":case"image":n.push(new qc(t.path,e,t.type,"bot"));break;case"audio":i=[{src:t.path,type:"audio/mp3"}],n.push(new qc(i,e,t.type,"bot"));break;case"video":i=[{src:t.path,provider:"youtube"}],n.push(new qc(i,e,t.type,"bot"));break;case"link":i={urlName:t.title,url:t.path},n.push(new qc(i,e,t.type,"bot"))}}),this.conversation.next(n)}).catch(t=>{this.conversation.next([new qc("\uc11c\ubc84 \uc624\ub958\ub85c \ucc57\ubd07\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",e,"text","bot")])})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Uc=null;function Wc(){return Uc}const Kc=new Un("DocumentToken");let Gc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Zc,token:t,providedIn:"platform"}),t})();function Zc(){return di(Yc)}let Yc=(()=>{class t extends Gc{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Wc().getLocation(),this._history=Wc().getHistory()}getBaseHrefFromDOM(){return Wc().getBaseHref(this._doc)}onPopState(t){Wc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Wc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Qc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Qc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({factory:Xc,token:t,providedIn:"platform"}),t})();function Qc(){return!!window.history.pushState}function Xc(){return new Yc(di(Kc))}function Jc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function th(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function eh(t){return t&&"?"!==t[0]?"?"+t:t}let nh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:ih,token:t,providedIn:"root"}),t})();function ih(t){const e=di(Kc).location;return new rh(di(Gc),e&&e.origin||"")}const sh=new Un("appBaseHref");let rh=(()=>{class t extends nh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Jc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+eh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+eh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+eh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(di(Gc),di(sh,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),oh=(()=>{class t{constructor(t,e){this._subject=new Pl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=th(lh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+eh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,lh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+eh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+eh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(di(nh),di(Gc))},t.normalizeQueryParams=eh,t.joinWithSlash=Jc,t.stripTrailingSlash=th,t.\u0275prov=lt({factory:ah,token:t,providedIn:"root"}),t})();function ah(){return new oh(di(nh),di(Gc))}function lh(t){return t.replace(/\/index.html$/,"")}var ch=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),hh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),uh=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),dh=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),ph=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function mh(t,e){return bh(sa(t)[oa.DateFormat],e)}function fh(t,e){return bh(sa(t)[oa.TimeFormat],e)}function gh(t,e){return bh(sa(t)[oa.DateTimeFormat],e)}function yh(t,e){const n=sa(t),i=n[oa.NumberSymbols][e];if(void 0===i){if(e===ph.CurrencyDecimal)return n[oa.NumberSymbols][ph.Decimal];if(e===ph.CurrencyGroup)return n[oa.NumberSymbols][ph.Group]}return i}function _h(t){if(!t[oa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[oa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function bh(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function vh(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const wh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ch={},Eh=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Sh=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),kh=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),xh=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Th(t,e,n,i){let s=function(t){if(Vh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(wh))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Vh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Ah(n,e)||e;let r,o=[];for(;e;){if(r=Eh.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=Lh(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Lh(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(jh[t])return jh[t];let e;switch(t){case"G":case"GG":case"GGG":e=Mh(xh.Eras,uh.Abbreviated);break;case"GGGG":e=Mh(xh.Eras,uh.Wide);break;case"GGGGG":e=Mh(xh.Eras,uh.Narrow);break;case"y":e=Oh(kh.FullYear,1,0,!1,!0);break;case"yy":e=Oh(kh.FullYear,2,0,!0,!0);break;case"yyy":e=Oh(kh.FullYear,3,0,!1,!0);break;case"yyyy":e=Oh(kh.FullYear,4,0,!1,!0);break;case"Y":e=Rh(1);break;case"YY":e=Rh(2,!0);break;case"YYY":e=Rh(3);break;case"YYYY":e=Rh(4);break;case"M":case"L":e=Oh(kh.Month,1,1);break;case"MM":case"LL":e=Oh(kh.Month,2,1);break;case"MMM":e=Mh(xh.Months,uh.Abbreviated);break;case"MMMM":e=Mh(xh.Months,uh.Wide);break;case"MMMMM":e=Mh(xh.Months,uh.Narrow);break;case"LLL":e=Mh(xh.Months,uh.Abbreviated,hh.Standalone);break;case"LLLL":e=Mh(xh.Months,uh.Wide,hh.Standalone);break;case"LLLLL":e=Mh(xh.Months,uh.Narrow,hh.Standalone);break;case"w":e=Nh(1);break;case"ww":e=Nh(2);break;case"W":e=Nh(1,!0);break;case"d":e=Oh(kh.Date,1);break;case"dd":e=Oh(kh.Date,2);break;case"E":case"EE":case"EEE":e=Mh(xh.Days,uh.Abbreviated);break;case"EEEE":e=Mh(xh.Days,uh.Wide);break;case"EEEEE":e=Mh(xh.Days,uh.Narrow);break;case"EEEEEE":e=Mh(xh.Days,uh.Short);break;case"a":case"aa":case"aaa":e=Mh(xh.DayPeriods,uh.Abbreviated);break;case"aaaa":e=Mh(xh.DayPeriods,uh.Wide);break;case"aaaaa":e=Mh(xh.DayPeriods,uh.Narrow);break;case"b":case"bb":case"bbb":e=Mh(xh.DayPeriods,uh.Abbreviated,hh.Standalone,!0);break;case"bbbb":e=Mh(xh.DayPeriods,uh.Wide,hh.Standalone,!0);break;case"bbbbb":e=Mh(xh.DayPeriods,uh.Narrow,hh.Standalone,!0);break;case"B":case"BB":case"BBB":e=Mh(xh.DayPeriods,uh.Abbreviated,hh.Format,!0);break;case"BBBB":e=Mh(xh.DayPeriods,uh.Wide,hh.Format,!0);break;case"BBBBB":e=Mh(xh.DayPeriods,uh.Narrow,hh.Format,!0);break;case"h":e=Oh(kh.Hours,1,-12);break;case"hh":e=Oh(kh.Hours,2,-12);break;case"H":e=Oh(kh.Hours,1);break;case"HH":e=Oh(kh.Hours,2);break;case"m":e=Oh(kh.Minutes,1);break;case"mm":e=Oh(kh.Minutes,2);break;case"s":e=Oh(kh.Seconds,1);break;case"ss":e=Oh(kh.Seconds,2);break;case"S":e=Oh(kh.FractionalSeconds,1);break;case"SS":e=Oh(kh.FractionalSeconds,2);break;case"SSS":e=Oh(kh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Dh(Sh.Short);break;case"ZZZZZ":e=Dh(Sh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Dh(Sh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Dh(Sh.Long);break;default:return null}return jh[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ah(t,e){const n=function(t){return sa(t)[oa.LocaleId]}(t);if(Ch[n]=Ch[n]||{},Ch[n][e])return Ch[n][e];let i="";switch(e){case"shortDate":i=mh(t,dh.Short);break;case"mediumDate":i=mh(t,dh.Medium);break;case"longDate":i=mh(t,dh.Long);break;case"fullDate":i=mh(t,dh.Full);break;case"shortTime":i=fh(t,dh.Short);break;case"mediumTime":i=fh(t,dh.Medium);break;case"longTime":i=fh(t,dh.Long);break;case"fullTime":i=fh(t,dh.Full);break;case"short":const e=Ah(t,"shortTime"),n=Ah(t,"shortDate");i=Ih(gh(t,dh.Short),[e,n]);break;case"medium":const s=Ah(t,"mediumTime"),r=Ah(t,"mediumDate");i=Ih(gh(t,dh.Medium),[s,r]);break;case"long":const o=Ah(t,"longTime"),a=Ah(t,"longDate");i=Ih(gh(t,dh.Long),[o,a]);break;case"full":const l=Ah(t,"fullTime"),c=Ah(t,"fullDate");i=Ih(gh(t,dh.Full),[l,c])}return i&&(Ch[n][e]=i),i}function Ih(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Ph(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===kh.Hours)0===a&&-12===n&&(a=12);else if(t===kh.FractionalSeconds)return l=e,Ph(a,3).substr(0,l);var l;const c=yh(o,ph.MinusSign);return Ph(a,e,c,i,s)}}function Mh(t,e,n=hh.Format,i=!1){return function(s,r){return function(t,e,n,i,s,r){switch(n){case xh.Months:return function(t,e,n){const i=sa(t),s=bh([i[oa.MonthsFormat],i[oa.MonthsStandalone]],e);return bh(s,n)}(e,s,i)[t.getMonth()];case xh.Days:return function(t,e,n){const i=sa(t),s=bh([i[oa.DaysFormat],i[oa.DaysStandalone]],e);return bh(s,n)}(e,s,i)[t.getDay()];case xh.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=sa(t);return _h(e),(e[oa.ExtraData][2]||[]).map(t=>"string"==typeof t?vh(t):[vh(t[0]),vh(t[1])])}(e),n=function(t,e,n){const i=sa(t);_h(i);const s=bh([i[oa.ExtraData][0],i[oa.ExtraData][1]],e)||[];return bh(s,n)||[]}(e,s,i),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Sh.Short:return(s>=0?"+":"")+Ph(o,2,r)+Ph(Math.abs(s%60),2,r);case Sh.ShortGMT:return"GMT"+(s>=0?"+":"")+Ph(o,1,r);case Sh.Long:return"GMT"+(s>=0?"+":"")+Ph(o,2,r)+":"+Ph(Math.abs(s%60),2,r);case Sh.Extended:return 0===i?"Z":(s>=0?"+":"")+Ph(o,2,r)+":"+Ph(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Fh(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Nh(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=Fh(n),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}return Ph(s,t,yh(i,ph.MinusSign))}}function Rh(t,e=!1){return function(n,i){return Ph(Fh(n).getFullYear(),t,yh(i,ph.MinusSign),e)}}const jh={};function Lh(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Vh(t){return t instanceof Date&&!isNaN(t.valueOf())}class Bh{}let Hh=(()=>{class t extends Bh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return sa(t)[oa.PluralCase]}(e||this.locale)(t)){case ch.Zero:return"zero";case ch.One:return"one";case ch.Two:return"two";case ch.Few:return"few";case ch.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(di(rc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function zh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let qh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(mo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+nt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(ko(Ha),ko(za),ko(Sa),ko(xa))},t.\u0275dir=Ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class $h{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Uh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new $h(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Wh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Wh(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(ko(sl),ko(Xa),ko(Ha))},t.\u0275dir=Ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Wh{constructor(t,e){this.record=t,this.view=e}}let Kh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Gh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Zh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Zh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(ko(sl),ko(Xa))},t.\u0275dir=Ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Gh{constructor(){this.$implicit=null,this.ngIf=null}}function Zh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${nt(e)}'.`)}let Yh=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(za),ko(xa))},t.\u0275dir=Ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Qh=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,s){if(null==e||""===e||e!=e)return null;try{return Th(e,n,s||this.locale,i)}catch(r){throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${nt(t)}'`)}(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(ko(rc))},t.\u0275pipe=Wt({name:"date",type:t,pure:!0}),t})(),Xh=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:Bh,useClass:Hh}]}),t})();class Jh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Jh,Uc||(Uc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=eu||(eu=document.querySelector("base"),eu)?eu.getAttribute("href"):null;return null==e?null:(n=e,tu||(tu=document.createElement("a")),tu.setAttribute("href",n),"/"===tu.pathname.charAt(0)?tu.pathname:"/"+tu.pathname);var n}resetBaseElement(){eu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return zh(document.cookie,t)}}let tu,eu=null;const nu=new Un("TRANSITION_ID"),iu=[{provide:Yl,useFactory:function(t,e,n){return()=>{n.get(Ql).donePromise.then(()=>{const n=Wc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[nu,Kc,io],multi:!0}];class su{static init(){var t;t=new su,Ac=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Wc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ru=new Un("EventManagerPlugins");let ou=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),cu=(()=>{class t extends lu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Wc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const hu={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/"},uu=/%COMP%/g;function du(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let mu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new gu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new yu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=du(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(di(ou),di(cu),di(Xl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class fu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(hu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=hu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=hu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(os.DashCase|os.Important)?t.style.setProperty(e,n,i&os.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&os.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,pu(n)):this.eventManager.addEventListener(t,e,pu(n))}}class gu extends fu{constructor(t,e,n,i){super(t),this.component=n;const s=du(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(uu,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(uu,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class yu extends fu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=du(i.id,i.styles,[]);for(let r=0;r{class t extends au{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const bu=["alt","control","meta","shift"],vu={"\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"},wu={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"},Cu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Eu=(()=>{class t extends au{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wc().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(bu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&wu.hasOwnProperty(e)&&(e=wu[e]))}return vu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),bu.forEach(i=>{i!=n&&(0,Cu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Su=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return di(ku)},token:t,providedIn:"root"}),t})(),ku=(()=>{class t extends Su{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Zi.NONE:return e;case Zi.HTML:return Si(e,"HTML")?Ei(e):Ki(this._doc,String(e));case Zi.STYLE:return Si(e,"Style")?Ei(e):e;case Zi.SCRIPT:if(Si(e,"Script"))return Ei(e);throw new Error("unsafe value used in a script context");case Zi.URL:return ki(e),Si(e,"URL")?Ei(e):Pi(String(e));case Zi.RESOURCE_URL:if(Si(e,"ResourceURL"))return Ei(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new _i(t)}bypassSecurityTrustStyle(t){return new bi(t)}bypassSecurityTrustScript(t){return new vi(t)}bypassSecurityTrustUrl(t){return new wi(t)}bypassSecurityTrustResourceUrl(t){return new Ci(t)}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({factory:function(){return t=di(Hr),new ku(t.get(Kc));var t},token:t,providedIn:"root"}),t})();const xu=Dc(Vc,"browser",[{provide:nc,useValue:"browser"},{provide:ec,useValue:function(){Jh.makeCurrent(),su.init()},multi:!0},{provide:Kc,useFactory:function(){return function(t){me=t}(document),document},deps:[]}]),Tu=[[],{provide:qr,useValue:"root"},{provide:ns,useFactory:function(){return new ns},deps:[]},{provide:ru,useClass:_u,multi:!0,deps:[Kc,yc,nc]},{provide:ru,useClass:Eu,multi:!0,deps:[Kc]},[],{provide:mu,useClass:mu,deps:[ou,cu,Xl]},{provide:ka,useExisting:mu},{provide:lu,useExisting:cu},{provide:cu,useClass:cu,deps:[Kc]},{provide:Sc,useClass:Sc,deps:[yc]},{provide:ou,useClass:ou,deps:[ru,yc]},[]];let Au=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Xl,useValue:e.appId},{provide:nu,useExisting:Xl},iu]}}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(di(t,12))},providers:Tu,imports:[Xh,Hc]}),t})();"undefined"!=typeof window&&window;var Iu=n("T7iU");function Pu(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}class Ou extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}function Mu(t,e){return function(n){return n.lift(new Du(t,e))}}class Du{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Fu(t,this.predicate,this.thisArg))}}class Fu extends m{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Nu=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Ru=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),ju=new _(t=>t.complete());function Lu(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):ju}function Vu(t){return e=>0===t?Lu():e.lift(new Bu(t))}class Bu{constructor(t){if(this.total=t,this.total<0)throw new Ru}call(t,e){return e.subscribe(new Hu(t,this.total))}}class Hu extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function zu(t=null){return e=>e.lift(new qu(t))}class qu{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new $u(t,this.defaultValue))}}class $u extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Uu(t=Gu){return e=>e.lift(new Wu(t))}class Wu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Ku(t,this.errorFactory))}}class Ku extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Gu(){return new Nu}function Zu(t,e){return"function"==typeof e?n=>n.pipe(Zu((n,i)=>R(t(n,i)).pipe(x((t,s)=>e(n,t,i,s))))):e=>e.lift(new Yu(t))}class Yu{constructor(t){this.project=t}call(t,e){return e.subscribe(new Qu(t,this.project))}}class Qu extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new j(this),i=this.destination;i.add(n),this.innerSubscription=V(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Xu=["v"];class Ju{create(t){return new Iu(t.videoElement,t.options)}updateSource(t){t.plyr.source=t.source}destroy(t){t.plyr.destroy()}}let td=(()=>{let t=class{constructor(t,e,n){this.elementRef=t,this.ngZone=e,this.renderer=n,this.playerChange=new Ou(null),this.events=new Map,this.plyrType="video",this.plyrInit=this.playerChange.pipe(Mu(t=>!!t)),this.plyrProgress=this.createLazyEvent("progress"),this.plyrPlaying=this.createLazyEvent("playing"),this.plyrPlay=this.createLazyEvent("play"),this.plyrPause=this.createLazyEvent("pause"),this.plyrTimeUpdate=this.createLazyEvent("timeupdate"),this.plyrVolumeChange=this.createLazyEvent("volumechange"),this.plyrSeeking=this.createLazyEvent("seeking"),this.plyrSeeked=this.createLazyEvent("seeked"),this.plyrRateChange=this.createLazyEvent("ratechange"),this.plyrEnded=this.createLazyEvent("ended"),this.plyrEnterFullScreen=this.createLazyEvent("enterfullscreen"),this.plyrExitFullScreen=this.createLazyEvent("exitfullscreen"),this.plyrCaptionsEnabled=this.createLazyEvent("captionsenabled"),this.plyrCaptionsDisabled=this.createLazyEvent("captionsdisabled"),this.plyrLanguageChange=this.createLazyEvent("languagechange"),this.plyrControlsHidden=this.createLazyEvent("controlshidden"),this.plyrControlsShown=this.createLazyEvent("controlsshown"),this.plyrReady=this.createLazyEvent("ready"),this.plyrLoadStart=this.createLazyEvent("loadstart"),this.plyrLoadedData=this.createLazyEvent("loadeddata"),this.plyrLoadedMetadata=this.createLazyEvent("loadedmetadata"),this.plyrQualityChange=this.createLazyEvent("qualitychange"),this.plyrCanPlay=this.createLazyEvent("canplay"),this.plyrCanPlayThrough=this.createLazyEvent("canplaythrough"),this.plyrStalled=this.createLazyEvent("stalled"),this.plyrWaiting=this.createLazyEvent("waiting"),this.plyrEmptied=this.createLazyEvent("emptied"),this.plyrCueChange=this.createLazyEvent("cuechange"),this.plyrError=this.createLazyEvent("error"),this.plyrStateChange=this.createLazyEvent("statechange"),this.subscriptions=[]}get player(){return this.playerChange.getValue()}ngOnChanges(t){this.subscriptions.push(this.plyrInit.pipe(function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Mu((e,n)=>t(e,n,i)):y,Vu(1),n?zu(e):Uu(()=>new Nu))}()).subscribe(e=>{const n=[t.plyrOptions,t.plyrPlaysInline,t.plyrCrossOrigin].filter(t=>!!t);n.length?n.some(t=>!t.firstChange)&&this.initPlyr(!0):this.updatePlyrSource(e)}))}ngOnDestroy(){this.destroyPlayer(),this.subscriptions.forEach(t=>t.unsubscribe())}ngAfterViewInit(){this.initPlyr()}initPlyr(t=!1){!t&&this.player||this.ngZone.runOutsideAngular(()=>{this.destroyPlayer(),this.driver=this.plyrDriver||new Ju,this.ensureVideoElement();const t=this.driver.create({videoElement:this.videoElement,options:this.plyrOptions});this.updatePlyrSource(t),this.playerChange.next(t)})}updatePlyrSource(t){this.driver.updateSource({videoElement:this.videoElement,plyr:t,source:{type:this.plyrType,title:this.plyrTitle,sources:this.plyrSources,poster:this.plyrPoster,tracks:this.plyrTracks}})}createLazyEvent(t){return this.plyrInit.pipe(Zu(()=>new _(e=>this.on(t,t=>this.ngZone.run(()=>e.next(t))))))}destroyPlayer(){this.player&&(Array.from(this.events.keys()).forEach(t=>this.off(t)),this.driver.destroy({plyr:this.player}),this.videoElement=null)}get hostElement(){return this.elementRef.nativeElement}ensureVideoElement(){const t=this.hostElement.querySelector("video");t?this.videoElement=t:(this.videoElement=this.renderer.createElement("video"),this.videoElement.controls=!0,this.plyrCrossOrigin&&this.videoElement.setAttribute("crossorigin",""),this.plyrPlaysInline&&this.videoElement.setAttribute("playsinline",""),this.renderer.appendChild(this.hostElement,this.videoElement))}on(t,e){this.events.set(t,e),this.player.on(t,e)}off(t){this.player.off(t,this.events.get(t)),this.events.delete(t)}};return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(yc),ko(xa))},t.\u0275cmp=Vt({type:t,selectors:[["plyr"],["","plyr",""]],viewQuery:function(t,e){if(1&t&&ql(Xu,!0),2&t){let t;zl(t=Ul())&&(e.vr=t.first)}},inputs:{plyrType:"plyrType",plyrDriver:"plyrDriver",plyrTitle:"plyrTitle",plyrPoster:"plyrPoster",plyrSources:"plyrSources",plyrTracks:"plyrTracks",plyrOptions:"plyrOptions",plyrCrossOrigin:"plyrCrossOrigin",plyrPlaysInline:"plyrPlaysInline"},outputs:{plyrInit:"plyrInit",plyrProgress:"plyrProgress",plyrPlaying:"plyrPlaying",plyrPlay:"plyrPlay",plyrPause:"plyrPause",plyrTimeUpdate:"plyrTimeUpdate",plyrVolumeChange:"plyrVolumeChange",plyrSeeking:"plyrSeeking",plyrSeeked:"plyrSeeked",plyrRateChange:"plyrRateChange",plyrEnded:"plyrEnded",plyrEnterFullScreen:"plyrEnterFullScreen",plyrExitFullScreen:"plyrExitFullScreen",plyrCaptionsEnabled:"plyrCaptionsEnabled",plyrCaptionsDisabled:"plyrCaptionsDisabled",plyrLanguageChange:"plyrLanguageChange",plyrControlsHidden:"plyrControlsHidden",plyrControlsShown:"plyrControlsShown",plyrReady:"plyrReady",plyrLoadStart:"plyrLoadStart",plyrLoadedData:"plyrLoadedData",plyrLoadedMetadata:"plyrLoadedMetadata",plyrQualityChange:"plyrQualityChange",plyrCanPlay:"plyrCanPlay",plyrCanPlayThrough:"plyrCanPlayThrough",plyrStalled:"plyrStalled",plyrWaiting:"plyrWaiting",plyrEmptied:"plyrEmptied",plyrCueChange:"plyrCueChange",plyrError:"plyrError",plyrStateChange:"plyrStateChange"},exportAs:["plyr"],features:[ce],decls:0,vars:0,template:function(t,e){},styles:[""]}),t=function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}([Pu("design:paramtypes",[Sa,yc,xa])],t),t})(),ed=(()=>{let t=class{};return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const nd=n("kiQV").version;function id(...t){let e=t[t.length-1];return k(e)?(t.pop(),N(t,e)):$(t)}function sd(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function rd(){}function od(t,e,n){return function(i){return i.lift(new ad(t,e,n))}}class ad{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ld(t,this.nextOrObserver,this.error,this.complete))}}class ld extends m{constructor(t,e,n,s){super(t),this._tapNext=rd,this._tapError=rd,this._tapComplete=rd,this._tapError=n||rd,this._tapComplete=s||rd,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||rd,this._tapError=e.error||rd,this._tapComplete=e.complete||rd)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class cd extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class hd extends cd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let ud=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class dd extends ud{constructor(t,e=ud.now){super(t,()=>dd.delegate&&dd.delegate!==this?dd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return dd.delegate&&dd.delegate!==this?dd.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const pd=new dd(hd);class md{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new fd(t,this.dueTime,this.scheduler))}}class fd extends m{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(gd,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function gd(t){t.debouncedNext()}function yd(t){return null!=t&&""+t!="false"}function _d(t){return Array.isArray(t)?t:[t]}function bd(t){return null==t?"":"string"==typeof t?t:t+"px"}function vd(t){return t instanceof Sa?t.nativeElement:t}let wd;try{wd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(iw){wd=!1}let Cd,Ed,Sd,kd=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!wd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(di(nc))},t.\u0275prov=lt({factory:function(){return new t(di(nc))},token:t,providedIn:"root"}),t})(),xd=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();function Td(t){return function(){if(null==Cd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Cd=!0}))}finally{Cd=Cd||!1}return Cd}()?t:!!t.capture}function Ad(){if(null==Ed){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ed=!1,Ed;if("scrollBehavior"in document.documentElement.style)Ed=!0;else{const t=Element.prototype.scrollTo;Ed=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Ed}let Id=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Pd=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Id]}),t})();class Od extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,t instanceof Ml&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(od(t=>this._pressedLetters.push(t)),function(t,e=pd){return n=>n.lift(new md(t,e))}(t),Mu(()=>this._pressedLetters.length>0),x(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||sd(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ml?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Md(t){return 0===t.buttons}function Dd(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const Fd=new Un("cdk-focus-monitor-default-options"),Nd=Td({passive:!0,capture:!0});let Rd=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Md(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Dd(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=jd(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=jd(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=vd(t);if(!this._platform.isBrowser||1!==n.nodeType)return id(null);const i=function(t){if(function(){if(null==Sd){const t="undefined"!=typeof document?document.head:null;Sd=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Sd}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new E,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=vd(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=vd(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=jd(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===jd(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nd),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nd)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Nd),t.addEventListener("mousedown",this._documentMousedownListener,Nd),t.addEventListener("touchstart",this._documentTouchstartListener,Nd),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nd),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nd),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Nd),t.removeEventListener("mousedown",this._documentMousedownListener,Nd),t.removeEventListener("touchstart",this._documentTouchstartListener,Nd),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(di(yc),di(kd),di(Kc,8),di(Fd,8))},t.\u0275prov=lt({factory:function(){return new t(di(yc),di(kd),di(Kc,8),di(Fd,8))},token:t,providedIn:"root"}),t})();function jd(t){return t.composedPath?t.composedPath()[0]:t.target}const Ld="cdk-high-contrast-black-on-white",Vd="cdk-high-contrast-white-on-black",Bd="cdk-high-contrast-active";let Hd=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Bd),t.remove(Ld),t.remove(Vd);const e=this.getHighContrastMode();1===e?(t.add(Bd),t.add(Ld)):2===e&&(t.add(Bd),t.add(Vd))}}}return t.\u0275fac=function(e){return new(e||t)(di(kd),di(Kc))},t.\u0275prov=lt({factory:function(){return new t(di(kd),di(Kc))},token:t,providedIn:"root"}),t})();const zd=new Un("cdk-dir-doc",{providedIn:"root",factory:function(){return pi(Kc)}});let qd=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Pl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(di(zd,8))},t.\u0275prov=lt({factory:function(){return new t(di(zd,8))},token:t,providedIn:"root"}),t})(),$d=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const Ud=new Ia("11.2.11");function Wd(...t){return q(1)(id(...t))}function Kd(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>Wd(t,n,e)):e=>Wd(t,e)}class Gd{}const Zd="*";function Yd(t,e){return{type:7,name:t,definitions:e,options:{}}}function Qd(t,e=null){return{type:4,styles:e,timings:t}}function Xd(t,e=null){return{type:2,steps:t,options:e}}function Jd(t){return{type:6,styles:t,offset:null}}function tp(t,e,n){return{type:0,name:t,styles:e,options:n}}function ep(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function np(t){Promise.resolve(null).then(t)}class ip{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){np(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class sp{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?np(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function rp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function op(t){switch(t.length){case 0:return new ip;case 1:return t[0];default:return new sp(t)}}function ap(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case Zd:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function lp(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&cp(n,"start",t)));break;case"done":t.onDone(()=>i(n&&cp(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&cp(n,"destroy",t)))}}function cp(t,e,n){const i=n.totalTime,s=hp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function hp(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function up(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function dp(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let pp=(t,e)=>!1,mp=(t,e)=>!1,fp=(t,e,n)=>[];const gp=rp();(gp||"undefined"!=typeof Element)&&(pp=(t,e)=>t.contains(e),mp=(()=>{if(gp||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):mp}})(),fp=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let Sp=(()=>{class t{validateStyleProperty(t){return bp(t)}matchesElement(t,e){return vp(t,e)}containsElement(t,e){return wp(t,e)}query(t,e,n){return Cp(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new ip(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),kp=(()=>{class t{}return t.NOOP=new Sp,t})();const xp="ng-enter",Tp="ng-leave",Ap="ng-trigger",Ip=".ng-trigger",Pp="ng-animating",Op=".ng-animating";function Mp(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Dp(parseFloat(e[1]),e[2])}function Dp(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Fp(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Dp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Dp(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function Np(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Rp(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Np(t,n);return n}function jp(t,e,n){return n?e+":"+n+";":""}function Lp(t){let e="";for(let n=0;n{const s=Kp(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),rp()&&Lp(t))}function Bp(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Kp(e);t.style[n]=""}),rp()&&Lp(t))}function Hp(t){return Array.isArray(t)?1==t.length?t[0]:Xd(t):t}const zp=new RegExp("{{\\s*(.+?)\\s*}}","g");function qp(t){let e=[];if("string"==typeof t){let n;for(;n=zp.exec(t);)e.push(n[1]);zp.lastIndex=0}return e}function $p(t,e,n){const i=t.toString(),s=i.replace(zp,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Up(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Wp=/-+([a-z0-9])/g;function Kp(t){return t.replace(Wp,(...t)=>t[1].toUpperCase())}function Gp(t,e){return 0===t||0===e}function Zp(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(nm(s,o)),"<"!=r[0]||s==Xp&&o==Xp||e.push(nm(o,s))}(t,n,e)):n.push(t),n}const tm=new Set(["true","1"]),em=new Set(["false","0"]);function nm(t,e){const n=tm.has(t)||em.has(t),i=tm.has(e)||em.has(e);return(s,r)=>{let o=t==Xp||t==s,a=e==Xp||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?tm.has(t):em.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?tm.has(e):em.has(e)),o&&a}}const im=new RegExp("s*:selfs*,?","g");function sm(t,e,n){return new rm(t).build(e,n)}class rm{constructor(t){this._driver=t}build(t,e){const n=new om(e);return this._resetContextStyleTimingState(n),Yp(this,Hp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(am(t)){const e=t;Object.keys(e).forEach(t=>{qp(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Up(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Yp(this,Hp(t.animation),e);return{type:1,matchers:Jp(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:lm(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Yp(this,t,e)),options:lm(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Yp(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:lm(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return cm(Fp(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=cm(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Fp(i,e),cm(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Jd({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Jd(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Zd?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(am(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=qp(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(am(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(am(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*m;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Yp(this,Hp(t.animation),e),options:lm(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:lm(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:lm(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(im,"")),[t=t.replace(/@\*/g,Ip).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Op),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,up(e.collectedStyles,e.currentQuerySelector,{});const o=Yp(this,Hp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:lm(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Fp(t.timings,e.errors,!0);return{type:12,animation:Yp(this,Hp(t.animation),e),timings:n,options:null}}}class om{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function am(t){return!Array.isArray(t)&&"object"==typeof t}function lm(t){var e;return t?(t=Np(t)).params&&(t.params=(e=t.params)?Np(e):null):t={},t}function cm(t,e,n){return{duration:t,delay:e,easing:n}}function hm(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class um{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const dm=new RegExp(":enter","g"),pm=new RegExp(":leave","g");function mm(t,e,n,i,s,r={},o={},a,l,c=[]){return(new fm).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class fm{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new um;const h=new ym(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Yp(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[hm(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?Mp(n.duration):null,r=null!=n.delay?Mp(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Yp(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=gm);const t=Mp(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Yp(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Mp(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Yp(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Fp(e.params?$p(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?Mp(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=gm);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Yp(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Yp(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const gm={};class ym{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=gm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new _m(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=Mp(n.duration)),null!=n.delay&&(i.delay=Mp(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=$p(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new ym(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=gm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new bm(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(dm,"."+this._enterClassName)).replace(pm,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class _m{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new _m(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Zd,this._currentKeyframe[t]=Zd}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Zd})):Rp(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=$p(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Zd),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=Rp(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Zd&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Up(t.values()):[],r=e.size?Up(e.values()):[];if(n){const t=i[0],e=Np(t);t.offset=0,e.offset=1,i=[t,e]}return hm(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class bm extends _m{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=Rp(t[0],!1);a.offset=0,s.push(a);const l=Rp(t[0],!1);l.offset=vm(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Rp(t[i],!1);o.offset=vm((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return hm(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function vm(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class wm{}class Cm extends wm{normalizePropertyName(t,e){return Kp(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Em[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Em=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Sm(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const km={};class xm{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||km,d=this.buildStyles(n,o&&o.params||km,h),p=a&&a.params||km,m=this.buildStyles(i,p,h),f=new Set,g=new Map,y=new Map,_="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:mm(t,e,this.ast.animation,s,r,d,m,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Sm(e,this._triggerName,n,i,_,d,m,[],[],g,y,w,h);v.forEach(t=>{const n=t.element,i=up(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=up(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&f.add(n)});const C=Up(f.values());return Sm(e,this._triggerName,n,i,_,d,m,v,C,g,y,w)}}class Tm{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=Np(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=$p(r,i,e)),n[t]=r})}}),n}}class Am{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Tm(t.style,t.options&&t.options.params||{})}),Im(this.states,"true","1"),Im(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new xm(t,e,this.states))}),this.fallbackTransition=new xm(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Im(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Pm=new um;class Om{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=sm(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=ap(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=mm(this._driver,e,s,xp,Tp,{},{},n,Pm,i),r.forEach(t=>{const e=up(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Zd)})});const a=op(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=hp(e,"","","");return lp(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mm="ng-animate-queued",Dm="ng-animate-disabled",Fm=".ng-animate-disabled",Nm=[],Rm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Lm{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Np(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Vm="void",Bm=new Lm(Vm);class Hm{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Gm(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=up(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=up(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Gm(t,Ap),Gm(t,"ng-trigger-"+e),a[e]=Bm),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new qm(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Gm(t,Ap),Gm(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Lm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Bm),l.value!==Vm&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{Bp(t,n),Vp(t,i)})}return}const c=up(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Gm(t,Mm),r.onStart(()=>{Zm(t,Mm)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,Ip,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Vm,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&op(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Bm,o=new Lm(Vm),a=new qm(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Rm||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Gm(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=hp(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,lp(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zm{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Hm(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Gm(t,Dm)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zm(t,Dm))}removeNode(t,e,n,i){if($m(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return $m(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ip,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Op,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return op(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Rm,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Fm)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Fm,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?op(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new um,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=xp+m++;p.set(e,n),t.forEach(t=>Gm(t,n))});const f=[],g=new Set,y=new Set;for(let P=0;Pg.add(t)):y.add(t))}const _=new Map,b=Km(u,Array.from(g));b.forEach((t,e)=>{const n=Tp+m++;_.set(e,n),t.forEach(t=>Gm(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Zm(t,n))}),b.forEach((t,e)=>{const n=_.get(e);t.forEach(t=>Zm(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=_.get(s),d=p.get(s),m=this._buildInstruction(t,n,d,u,c);if(m.errors&&m.errors.length)w.push(m);else{if(c)return e.onStart(()=>Bp(s,m.fromStyles)),e.onDestroy(()=>Vp(s,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Bp(s,m.fromStyles)),e.onDestroy(()=>Vp(s,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>up(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{up(C,e,[]).push(t),t.destroy()})});const S=f.filter(t=>Xm(t,a,l)),k=new Map;Wm(k,this.driver,y,l,Zd).forEach(t=>{Xm(t,a,l)&&S.push(t)});const x=new Map;d.forEach((t,e)=>{Wm(x,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=x.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],A=[],I={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Vp(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=I;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,x,k);if(r.setRealPlayer(n),t===I)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=op(e)),i.push(r)}}else Bp(e,o.fromStyles),r.onDestroy(()=>Vp(e,o.toStyles)),A.push(r),c.has(e)&&i.push(r)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=op(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P!t.destroyed);i.length?Ym(this,t,i):this.processLeaveNode(t)}return f.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Vm;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=up(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Bp(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new ip(e.duration,e.delay);const p=u!==a,m=function(t){const e=[];return Qm(t,e),e}((n.get(u)||Nm).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),f=s.get(u),g=r.get(u),y=ap(0,this._normalizer,0,e.keyframes,f,g),_=this._buildPlayer(e,y,m);if(e.subTimeline&&i&&h.add(u),p){const e=new qm(t,o,u);e.setRealPlayer(_),l.push(e)}return _});l.forEach(t=>{up(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Gm(t,Pp));const d=op(u);return d.onDestroy(()=>{c.forEach(t=>Zm(t,Pp)),Vp(a,e.toStyles)}),h.forEach(t=>{up(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new ip(t.duration,t.delay)}}class qm{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new ip,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>lp(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){up(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function $m(t){return t&&1===t.nodeType}function Um(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Wm(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Um(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=jm,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Um(t,r[a++])),o}function Km(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Gm(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Zm(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ym(t,e,n){op(n).onDone(()=>t.processLeaveNode(e))}function Qm(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class Jm{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zm(t,e,n),this._timelineEngine=new Om(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=sm(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Am(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=dp(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=dp(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function tf(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=nf(e[0]),e.length>1&&(i=nf(e[e.length-1]))):e&&(n=nf(e)),n||i?new ef(t,n,i):null}let ef=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Vp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vp(this._element,this._initialStyles),this._endStyles&&(Vp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Bp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bp(this._element,this._endStyles),this._endStyles=null),Vp(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function nf(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=pf(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),uf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=pf(t,"").split(","),i=hf(n,e);i>=0&&(n.splice(i,1),df(t,"",n.join(",")))}(this._element,this._name))}}function lf(t,e,n){df(t,"PlayState",n,cf(t,e))}function cf(t,e){const n=pf(t,"");return n.indexOf(",")>0?hf(n.split(","),e):hf([n],e)}function hf(t,e){for(let n=0;n=0)return n;return-1}function uf(t,e,n){n?t.removeEventListener(of,e):t.addEventListener(of,e)}function df(t,e,n,i){const s=rf+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function pf(t,e){return t.style[rf+e]||""}class mf{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new af(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Qp(this.element,n))})}this.currentSnapshot=t}}class ff extends ip{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Ep(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class gf{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return bp(t)}matchesElement(t,e){return vp(t,e)}containsElement(t,e){return wp(t,e)}query(t,e,n){return Cp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Ep(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof mf),l={};Gp(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Zp(t,e,l));if(0==n)return new ff(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=tf(t,e),p=new mf(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class yf{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Qp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _f{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(bf().toString()),this._cssKeyframesDriver=new gf}validateStyleProperty(t){return bp(t)}matchesElement(t,e){return vp(t,e)}containsElement(t,e){return wp(t,e)}query(t,e,n){return Cp(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof yf);Gp(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=tf(t,e=Zp(t,e=e.map(t=>Rp(t,!1)),l));return new yf(t,e,a,h)}}function bf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let vf=(()=>{class t extends Gd{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Et.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Xd(t):t;return Ef(this._renderer,null,e,"register",[n]),new wf(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(di(ka),di(Kc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class wf extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Cf(this._id,t,e||{},this._renderer)}}class Cf{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ef(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ef(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Sf="@",kf="@.disabled";let xf=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Tf("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Af(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(di(ka),di(Jm),di(yc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Tf{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Sf&&e==kf?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Af extends Tf{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Sf?"."==e.charAt(1)&&e==kf?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Sf){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Sf&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let If=(()=>{class t extends Jm{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(di(Kc),di(kp),di(wm))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Pf=new Un("AnimationModuleType"),Of=[{provide:kp,useFactory:function(){return"function"==typeof bf()?new _f:new gf}},{provide:Pf,useValue:"BrowserAnimations"},{provide:Gd,useClass:vf},{provide:wm,useFactory:function(){return new Cm}},{provide:Jm,useClass:If},{provide:ka,useFactory:function(t,e,n){return new xf(t,e,n)},deps:[mu,Jm,yc]}];let Mf=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:Of,imports:[Au]}),t})();const Df=new Ia("11.2.11"),Ff=new Un("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Nf,Rf=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Oc()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Df.full!==Ud.full&&console.warn("The Angular Material version ("+Df.full+") does not match the Angular CDK version ("+Ud.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(di(Hd),di(Ff,8),di(Kc))},imports:[[$d],$d]}),t})();function jf(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=yd(t)}}}function Lf(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function Vf(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=yd(t)}}}try{Nf="undefined"!=typeof Intl}catch(iw){Nf=!1}let Bf=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Hf{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const zf={enterDuration:450,exitDuration:400},qf=Td({passive:!0}),$f=["mousedown","touchstart"],Uf=["mouseup","mouseleave","touchend","touchcancel"];class Wf{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=vd(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},zf),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Hf(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},zf),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=vd(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($f))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Uf),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Md(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,qf)})})}_removeTriggerEvents(){this._triggerElement&&($f.forEach(t=>{this._triggerElement.removeEventListener(t,this,qf)}),this._pointerUpEventsRegistered&&Uf.forEach(t=>{this._triggerElement.removeEventListener(t,this,qf)}))}}const Kf=new Un("mat-ripple-global-options");let Gf=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Wf(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(yc),ko(kd),ko(Kf,8),ko(Pf,8))},t.\u0275dir=Ut({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Ko("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Zf=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Rf,xd],Rf]}),t})();const Yf=["mat-button",""],Qf=["*"],Xf=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Jf{constructor(t){this._elementRef=t}}const tg=Lf(jf(Vf(Jf)));let eg=(()=>{class t extends tg{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Xf)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(Rd),ko(Pf,8))},t.\u0275cmp=Vt({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&ql(Gf,!0),2&t){let t;zl(t=Ul())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(wo("disabled",e.disabled||null),Ko("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ro],attrs:Yf,ngContentSelectors:Qf,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Bo(),Ao(0,"span",0),Ho(1),Io(),Po(2,"span",1),Po(3,"span",2)),2&t&&(Ws(2),Ko("mat-button-ripple-round",e.isRoundButton||e.isIconButton),xo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Gf],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),ng=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Zf,Rf],Rf]}),t})();function ig(t,e){return new _(e?n=>e.schedule(sg,0,{error:t,subscriber:n}):e=>e.error(t))}function sg({error:t,subscriber:e}){e.error(t)}function rg(...t){if(1===t.length){const e=t[0];if(l(e))return og(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return og(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return og(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(x(t=>e(...t)))}return og(t,null)}function og(t,e){return new _(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}class ag{constructor(t){this.selector=t}call(t,e){return e.subscribe(new lg(t,this.selector,this.caught))}}class lg extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new j(this);this.add(i);const s=V(n,i);s!==i&&this.add(s)}}}class cg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hg(t,this.callback))}}class hg extends m{constructor(t,e){super(t),this.add(new u(e))}}class ug{}class dg{}class pg{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof pg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new pg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof pg?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class mg{encodeKey(t){return fg(t)}encodeValue(t){return fg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function fg(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class gg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new mg,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new gg({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function yg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function bg(t){return"undefined"!=typeof FormData&&t instanceof FormData}class vg{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new pg),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new vg(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var wg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Cg{constructor(t,e=200,n="OK"){this.headers=t.headers||new pg,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Eg extends Cg{constructor(t={}){super(t),this.type=wg.ResponseHeader}clone(t={}){return new Eg({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Sg extends Cg{constructor(t={}){super(t),this.type=wg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Sg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class kg extends Cg{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function xg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Tg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof vg)i=t;else{let s=void 0;s=n.headers instanceof pg?n.headers:new pg(n.headers);let r=void 0;n.params&&(r=n.params instanceof gg?n.params:new gg({fromObject:n.params})),i=new vg(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=id(i).pipe(B(t=>this.handler.handle(t),void 0,1));if(t instanceof vg||"events"===n.observe)return s;const r=s.pipe(Mu(t=>t instanceof Sg));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(x(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(x(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(x(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(x(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new gg).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,xg(n,e))}post(t,e,n={}){return this.request("POST",t,xg(n,e))}put(t,e,n={}){return this.request("PUT",t,xg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(di(ug))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Ag{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Ig=new Un("HTTP_INTERCEPTORS");let Pg=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Og=/^\)\]\}',?\n/;class Mg{}let Dg=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Fg=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new pg(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Eg({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Og,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Sg({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new kg({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new kg({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:wg.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:wg.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:wg.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(di(Mg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Ng=new Un("XSRF_COOKIE_NAME"),Rg=new Un("XSRF_HEADER_NAME");class jg{}let Lg=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=zh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(di(Kc),di(nc),di(Ng))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Vg=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(di(jg),di(Rg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Bg=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Ig,[]);this.chain=t.reduceRight((t,e)=>new Ag(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(di(dg),di(io))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Hg=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Vg,useClass:Pg}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Ng,useValue:e.cookieName}:[],e.headerName?{provide:Rg,useValue:e.headerName}:[]]}}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Vg,{provide:Ig,useExisting:Vg,multi:!0},{provide:jg,useClass:Lg},{provide:Ng,useValue:"XSRF-TOKEN"},{provide:Rg,useValue:"X-XSRF-TOKEN"}]}),t})(),zg=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Tg,{provide:ug,useClass:Bg},Fg,{provide:dg,useExisting:Fg},Dg,{provide:Mg,useExisting:Dg}],imports:[[Hg.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const qg=["*"];function $g(t){return Error(`Unable to find icon with the name "${t}"`)}function Ug(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Wg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Kg{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Gg=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new Kg(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(Zi.HTML,n);if(!s)throw Wg(n);return this._addSvgIconConfig(t,e,new Kg("",s,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new Kg(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(Zi.HTML,e);if(!i)throw Wg(e);return this._addSvgIconSetConfig(t,new Kg("",i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Zi.RESOURCE_URL,t);if(!e)throw Ug(t);const n=this._cachedIconsByUrl.get(e);return n?id(Zg(n)):this._loadSvgIconFromConfig(new Kg(t,null)).pipe(od(t=>this._cachedIconsByUrl.set(e,t)),x(t=>Zg(t)))}getNamedSvgIcon(t,e=""){const n=Yg(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):ig($g(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?id(Zg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(x(t=>Zg(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?id(n):rg(e.filter(t=>!t.svgText).map(t=>{return this._loadSvgIconSetFromConfig(t).pipe((e=e=>{const n=this._sanitizer.sanitize(Zi.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),id(null)},function(t){const n=new ag(e),i=t.lift(n);return n.caught=i}));var e})).pipe(x(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw $g(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(od(e=>t.svgText=e),x(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?id(null):this._fetchIcon(t).pipe(od(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(r),t=>t.lift(new cg(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Yg(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;ie?e.pathname+e.search:""}}}),ty=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ey=ty.map(t=>`[${t}]`).join(", "),ny=/^url\(['"]?#(.*?)['"]?\)$/;let iy=(()=>{class t extends Xg{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=yd(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(ey),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(ny):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Vu(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(Gg),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Rf],Rf]}),t})(),ry=1;const oy=(()=>Promise.resolve())(),ay={};function ly(t){return t in ay&&(delete ay[t],!0)}const cy={setImmediate(t){const e=ry++;return ay[e]=!0,oy.then(()=>ly(e)&&t()),e},clearImmediate(t){ly(t)}};class hy extends hd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=cy.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cy.clearImmediate(e),t.scheduled=void 0)}}class uy extends dd{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ie.lift(new my(t))}class my{constructor(t){this.notifier=t}call(t,e){const n=new fy(t),i=V(this.notifier,new j(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class fy extends L{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let gy=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return id(this.value);case"E":return ig(this.error);case"C":return Lu()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function yy(t,e=pd){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new _y(i,e))}class _y{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new by(t,this.delay,this.scheduler))}}class by extends m{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(by.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new vy(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(gy.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(gy.createComplete()),this.unsubscribe()}}class vy{constructor(t,e){this.time=t,this.notification=e}}class wy{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Cy extends wy{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Ey extends wy{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Sy extends wy{constructor(t){super(),this.element=t instanceof Sa?t.nativeElement:t}}class ky extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Cy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ey?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Sy?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let xy=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();function Ty(t,e,n,s){return i(n)&&(s=n,n=void 0),s?Ty(t,e,n).pipe(x(t=>l(t)?s(...t):s(t))):new _(i=>{Ay(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function Ay(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function My(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Dy(t,e=pd){return n=()=>function(t=0,e,n){let i=-1;return Oy(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=pd),new _(e=>{const s=Oy(t)?t:+t-n.now();return n.schedule(My,s,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new Iy(n))};var n}class Fy extends hd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class Ny extends dd{}const Ry=new Ny(Fy);class jy extends m{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(jy.dispatch,this.delay,new Ly(t,this.destination)))}_next(t){this.scheduleMessage(gy.createNext(t))}_error(t){this.scheduleMessage(gy.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(gy.createComplete()),this.unsubscribe()}}class Ly{constructor(t,e){this.notification=t,this.destination=e}}class Vy extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new By(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),i&&t.add(t=new jy(t,i)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class By{constructor(t,e){this.time=t,this.value=e}}let Hy=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Dy(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):id()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Mu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=vd(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ty(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(di(yc),di(kd),di(Kc,8))},t.\u0275prov=lt({factory:function(){return new t(di(yc),di(kd),di(Kc,8))},token:t,providedIn:"root"}),t})(),zy=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Dy(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(di(kd),di(yc),di(Kc,8))},t.\u0275prov=lt({factory:function(){return new t(di(kd),di(yc),di(Kc,8))},token:t,providedIn:"root"}),t})(),qy=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),$y=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[$d,xd,qy],$d,qy]}),t})();const Uy=Ad();class Wy{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=bd(-this._previousScrollPosition.left),t.style.top=bd(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Uy&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Uy&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class Ky{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Gy{enable(){}disable(){}attach(){}}function Zy(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Yy(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Qy{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Zy(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xy=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Gy,this.close=t=>new Ky(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Wy(this._viewportRuler,this._document),this.reposition=t=>new Qy(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(di(Hy),di(zy),di(yc),di(Kc))},t.\u0275prov=lt({factory:function(){return new t(di(Hy),di(zy),di(yc),di(Kc))},token:t,providedIn:"root"}),t})();class Jy{constructor(t){if(this.scrollStrategy=new Gy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class t_{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class e_{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let n_=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({factory:function(){return new t(di(Kc))},token:t,providedIn:"root"}),t})(),i_=(()=>{class t extends n_{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(di(Kc))},t.\u0275prov=lt({factory:function(){return new t(di(Kc))},token:t,providedIn:"root"}),t})(),s_=(()=>{class t extends n_{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(di(Kc),di(kd))},t.\u0275prov=lt({factory:function(){return new t(di(Kc),di(kd))},token:t,providedIn:"root"}),t})();const r_=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let o_=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||r_){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Vu(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=bd(this._config.width),t.height=bd(this._config.height),t.minWidth=bd(this._config.minWidth),t.minHeight=bd(this._config.minHeight),t.maxWidth=bd(this._config.maxWidth),t.maxHeight=bd(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;_d(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(py(U(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const l_="cdk-overlay-connected-position-bounding-box",c_=/([A-Za-z%]+)$/;class h_{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(l_),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&u_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(l_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=p_(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,h=o+s.height-n.height,u=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=d_(this._overlayRef.getConfig().minHeight),o=d_(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=p_(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,h=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=bd(n.height),i.top=bd(n.top),i.bottom=bd(n.bottom),i.width=bd(n.width),i.left=bd(n.left),i.right=bd(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=bd(t)),s&&(i.maxWidth=bd(s))}this._lastBoundingBoxSize=n,u_(this._boundingBox.style,i)}_resetBoundingBoxStyles(){u_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){u_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();u_(n,this._getExactOverlayY(e,t,i)),u_(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=bd(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=bd(r.maxWidth):s&&(n.maxWidth="")),u_(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=bd(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=bd(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Yy(t,n),isOriginOutsideView:Zy(t,n),isOverlayClipped:Yy(e,n),isOverlayOutsideView:Zy(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&_d(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Sa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function u_(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function d_(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(c_);return n&&"px"!==n?null:parseFloat(e)}return t||null}function p_(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class m_{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new h_(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new t_(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const f_="cdk-global-overlay-wrapper";class g_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(f_),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(f_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let y_=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new g_}connectedTo(t,e,n){return new m_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new h_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(di(zy),di(Kc),di(kd),di(o_))},t.\u0275prov=lt({factory:function(){return new t(di(zy),di(Kc),di(kd),di(o_))},token:t,providedIn:"root"}),t})(),__=0,b_=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new Jy(t);return s.direction=s.direction||this._directionality.value,new a_(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+__++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(jc)),new ky(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(di(Xy),di(o_),di(va),di(y_),di(i_),di(io),di(yc),di(Kc),di(qd),di(oh),di(s_))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const v_={provide:new Un("cdk-connected-overlay-scroll-strategy"),deps:[b_],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let w_=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[b_,v_],imports:[[$d,xy,$y],$y]}),t})();const C_=["mat-menu-item",""],E_=["*"];function S_(t,e){if(1&t){const t=Do();Ao(0,"div",0),No("keydown",function(e){return Fe(t),Lo()._handleKeydown(e)})("click",function(){return Fe(t),Lo().closed.emit("click")})("@transformMenu.start",function(e){return Fe(t),Lo()._onAnimationStart(e)})("@transformMenu.done",function(e){return Fe(t),Lo()._onAnimationDone(e)}),Ao(1,"div",1),Ho(2),Io(),Io()}if(2&t){const t=Lo();xo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),wo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const k_={transformMenu:Yd("transformMenu",[tp("void",Jd({opacity:0,transform:"scale(0.8)"})),ep("void => enter",Qd("120ms cubic-bezier(0, 0, 0.2, 1)",Jd({opacity:1,transform:"scale(1)"}))),ep("* => void",Qd("100ms 25ms linear",Jd({opacity:0})))]),fadeInItems:Yd("fadeInItems",[tp("showing",Jd({opacity:1})),ep("void => *",[Jd({opacity:0}),Qd("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},x_=new Un("MatMenuContent"),T_=new Un("MAT_MENU_PANEL");class A_{}const I_=Vf(jf(A_));let P_=(()=>{class t extends I_{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new E,this._focused=new E,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ml,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new E,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Pl,this.close=this.closed,this.panelId="mat-menu-panel-"+M_++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=yd(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=yd(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Od(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Kd(this._directDescendantItems),Zu(t=>U(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Kd(this._directDescendantItems),Zu(t=>U(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:sd(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Vu(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Kd(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(yc),ko(O_))},t.\u0275dir=Ut({type:t,contentQueries:function(t,e,n){if(1&t&&($l(n,x_,!0),$l(n,P_,!0),$l(n,P_,!1)),2&t){let t;zl(t=Ul())&&(e.lazyContent=t.first),zl(t=Ul())&&(e._allItems=t),zl(t=Ul())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&ql(Xa,!0),2&t){let t;zl(t=Ul())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),F_=(()=>{class t extends D_{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(ko(Sa),ko(yc),ko(O_))},t.\u0275cmp=Vt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&wo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[ya([{provide:T_,useExisting:t}]),ro],ngContentSelectors:E_,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Bo(),Eo(0,S_,3,6,"ng-template"))},directives:[qh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[k_.transformMenu,k_.fadeInItems]},changeDetection:0}),t})();const N_=new Un("mat-menu-scroll-strategy"),R_={provide:N_,deps:[b_],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},j_=Td({passive:!0});let L_=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=t=>{Dd(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Pl,this.onMenuOpen=this.menuOpened,this.menuClosed=new Pl,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof D_?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,j_),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,j_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof D_&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof D_?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Mu(t=>"void"===t.toState),Vu(1),py(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Jy({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return U(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:id(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mu(t=>t!==this._menuItemInstance),Mu(()=>this._menuOpen)):id(),e)}_handleMousedown(t){Md(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mu(t=>t===this._menuItemInstance&&!t.disabled),yy(0,dy)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof D_&&this.menu._isAnimating?this.menu._animationDone.pipe(Vu(1),yy(0,dy),py(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ey(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(ko(b_),ko(Sa),ko(sl),ko(N_),ko(T_,8),ko(P_,10),ko(qd,8),ko(Rd))},t.\u0275dir=Ut({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&No("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&wo("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),V_=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[R_],imports:[Rf]}),t})(),B_=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[R_],imports:[[Xh,Rf,Zf,w_,V_],qy,Rf,V_]}),t})();function H_(t,e){if(1&t){const t=Do();Ao(0,"ngx-emoj-header",4),No("oncategorychange",function(e){return Fe(t),Lo().handleCategoryChange(e)}),Io()}if(2&t){const t=Lo();xo("headerBG",t.theme.martHeaderBG||t.DEFAULTS.martHeaderBG)("headerFG",t.theme.martHeaderFG||t.DEFAULTS.martHeaderFG)("headerFontSize",t.theme.martHeaderFontSize||t.DEFAULTS.martHeaderFontSize)("headerPadding",t.theme.martHeaderPadding||t.DEFAULTS.martHeaderPadding)("defaultActiveCategory","People")("activeCategory",t.activeCategory)("martCategoryFontSize",t.theme.martCategoryFontSize||t.DEFAULTS.martCategoryFontSize)("martCategoryColor",t.theme.martCategoryColor||t.DEFAULTS.martCategoryColor)("martCategoryColorActive",t.theme.martCategoryColorActive||t.DEFAULTS.martCategoryColorActive)("activeIndicatorColor",t.theme.martActiveCategoryIndicatorColor||t.DEFAULTS.martActiveCategoryIndicatorColor)("activeIndicatorHeight",t.theme.martActiveCategoryIndicatorHeight||t.DEFAULTS.martActiveCategoryIndicatorHeight)("emojiCategories",t.emojiCategories)}}function z_(t,e){if(1&t){const t=Do();Ao(0,"ngx-emoj-footer",5),No("onchardelete",function(e){return Fe(t),Lo().handleCharDelete(e)})("onemochange",function(e){return Fe(t),Lo().handleEmoChange(e)}),Io()}if(2&t){const t=Lo();xo("footerBG",t.theme.martFooterBG||t.DEFAULTS.martFooterBG)("footerFG",t.theme.martFooterFG||t.DEFAULTS.martFooterFG)("footerFontSize",t.theme.martFooterFontSize||t.DEFAULTS.martFooterFontSize)("footerPadding",t.theme.martFooterPadding||t.DEFAULTS.martFooterPadding)("defaultActiveEmo","Emoji")("martCategoryFontSize",t.theme.martCategoryFontSize||t.DEFAULTS.martCategoryFontSize)("martCategoryColor",t.theme.martCategoryColor||t.DEFAULTS.martCategoryColor)("martCategoryColorActive",t.theme.martCategoryColorActive||t.DEFAULTS.martCategoryColorActive)("activeIndicatorColor",t.theme.martActiveCategoryIndicatorColor||t.DEFAULTS.martActiveCategoryIndicatorColor)("activeIndicatorHeight",t.theme.martActiveCategoryIndicatorHeight||t.DEFAULTS.martActiveCategoryIndicatorHeight)("emos",t.emos)("hideFooter",t.hideFooter)}}const q_=function(t,e,n,i,s){return{"background-color":t,width:e,height:n,"font-family":i,"border-radius":s}};function $_(t,e){if(1&t){const t=Do();Ao(0,"ngx-emoj-category",2),No("onselect",function(e){return Fe(t),Lo().onCategorySelect(e)}),Io()}if(2&t){const t=e.$implicit,n=Lo();xo("categoryIcon",t.icon[0])("categoryIconColor","white")("categoryName",t.name)("martCategoryFontSize",n.martCategoryFontSize)("martCategoryColor",n.martCategoryColor)("martCategoryColorActive",n.martCategoryColorActive)("activeIndicatorColor",n.activeIndicatorColor)("activeIndicatorHeight",n.activeIndicatorHeight)("active",n.activeCategory===t.name)}}const U_=function(t,e,n,i){return{"background-color":t,color:e,"font-size":n,padding:i}};function W_(t,e){if(1&t&&Po(0,"button",5),2&t){const t=e.$implicit,n=Lo();xo("innerHTML",n.sanitizer.bypassSecurityTrustHtml(t.icon[0](t.name==n.activeEmo?n.martCategoryColorActive:n.martCategoryColor,n.martCategoryFontSize,n.martCategoryFontSize)),Yi)}}const K_=function(t){return{color:t}},G_=function(t,e,n){return{color:t,"border-width":e,"border-color":n}},Z_=["emojiContainer"],Y_=function(t,e,n,i){return{color:t,background:e,"border-radius":n,"border-color":i}};function Q_(t,e){if(1&t){const t=Do();Ao(0,"input",5),No("keyup",function(e){return Fe(t),Lo().search(e)}),Io()}if(2&t){const t=Lo();zo("placeholder",t.searchEmojiPlaceholderText),xo("ngStyle",Cl(2,Y_,t.searchBoxStyle.FGcolor,t.searchBoxStyle.BGcolor,t.searchBoxStyle.borderRadius,t.searchBoxStyle.borderColor))}}function X_(t,e){if(1&t&&(Ao(0,"div",6),Xo(1),Io()),2&t){const t=Lo();xo("ngStyle",vl(2,K_,t.martEmojiNotFoundFG)),Ws(1),ta(" ",t.emojiNotFoundText," ")}}const J_=function(t,e){return{height:t,width:e}},tb=function(t){return{"font-size":t}};function eb(t,e){if(1&t){const t=Do();Ao(0,"div",7),Ao(1,"button",8),No("click",function(){Fe(t);const n=e.$implicit;return Lo().pickEmoji(n)}),Xo(2),Io(),Io()}if(2&t){const t=e.$implicit,n=Lo();xo("ngStyle",wl(3,J_,n.emojiBtnPadding.y,n.emojiBtnPadding.x)),Ws(1),xo("ngStyle",vl(6,tb,n.emojiFontSize)),Ws(1),ta(" ",t[0]," ")}}const nb=function(t){return{padding:"5px","border-bottom":t}},ib={martFontFamily:"Segoe UI",martBG:"#333",martShowHeader:!0,martHeaderBG:"#222",martHeaderFontSize:"12px",martHeaderPadding:{x:"10px",y:"3px"},martHeaderFG:"#fff",martActiveCategoryIndicatorColor:"#4220b1",martCategoryFontSize:"18px",martCategoryColor:"#fff",martCategoryColorActive:"#4220b1",martActiveCategoryIndicatoHeight:"4px",martWidth:"100%",martHeight:"30vh",martBorderRadius:"5px",martEmojiFontSize:"120%",martEmojiPadding:{x:"40px",y:"40px"},martFooterFG:"#fff",martFooterBG:"#222",martFooterFontSize:"12px",martFooterPadding:{x:"10px",y:"3px"},martShowFooter:!0,maxRecentEmoji:36,recentEmojiStoreKey:"ngx-emoji-picker-recent-emo-store",emojiNotFoundText:"No results ;)",searchEmojiPlaceholderText:"Search",martEmojiNotFoundFG:"#888",martSearchBoxStyle:{FGcolor:"#333",BGcolor:"transparent",borderColor:"#ccc",placeHolderColor:"#777",borderRadius:"30px"}},sb=[{id:0,name:"Search",icon:[(t,e,n)=>``,"Search"]},{id:1,name:"Recent",icon:[(t,e,n)=>``,"Recent"]},{id:2,emojis:[["\ud83d\ude00","grinning"],["\ud83d\ude03","smiley"],["\ud83d\ude04","smile"],["\ud83d\ude01","grin"],["\ud83d\ude06","laughing"],["\ud83d\ude05","sweat_smile"],["\ud83d\ude02","joy"],["\ud83e\udd23","rofl"],["\ud83d\ude0a","blush"],["\ud83d\ude07","innocent"],["\ud83d\ude42","slightly_smiling_face"],["\ud83d\ude43","upside_down_face"],["\ud83d\ude09","wink"],["\ud83d\ude0c","relieved"],["\ud83d\ude0d","heart_eyes"],["\ud83d\ude18","kissing_heart"],["\ud83d\ude17","kissing"],["\ud83d\ude19","kissing_smiling_eyes"],["\ud83d\ude1a","kissing_closed_eyes"],["\ud83d\ude0b","yum"],["\ud83d\ude1c","stuck_out_tongue_winking_eye"],["\ud83d\ude1d","stuck_out_tongue_closed_eyes"],["\ud83d\ude1b","stuck_out_tongue"],["\ud83e\udd11","money_mouth_face"],["\ud83e\udd17","hugs"],["\ud83e\udd13","nerd_face"],["\ud83d\ude0e","sunglasses"],["\ud83e\udd21","clown_face"],["\ud83e\udd20","cowboy_hat_face"],["\ud83d\ude0f","smirk"],["\ud83d\ude12","unamused"],["\ud83d\ude1e","disappointed"],["\ud83d\ude14","pensive"],["\ud83d\ude1f","worried"],["\ud83d\ude15","confused"],["\ud83d\ude41","slightly_frowning_face"],["\u2639\ufe0f","frowning_face"],["\ud83d\ude23","persevere"],["\ud83d\ude16","confounded"],["\ud83d\ude2b","tired_face"],["\ud83d\ude29","weary"],["\ud83d\ude24","triumph"],["\ud83d\ude20","angry"],["\ud83d\ude21","rage"],["\ud83d\ude36","no_mouth"],["\ud83d\ude10","neutral_face"],["\ud83d\ude11","expressionless"],["\ud83d\ude2f","hushed"],["\ud83d\ude26","frowning"],["\ud83d\ude27","anguished"],["\ud83d\ude2e","open_mouth"],["\ud83d\ude32","astonished"],["\ud83d\ude35","dizzy_face"],["\ud83d\ude33","flushed"],["\ud83d\ude31","scream"],["\ud83d\ude28","fearful"],["\ud83d\ude30","cold_sweat"],["\ud83d\ude22","cry"],["\ud83d\ude25","disappointed_relieved"],["\ud83e\udd24","drooling_face"],["\ud83d\ude2d","sob"],["\ud83d\ude13","sweat"],["\ud83d\ude2a","sleepy"],["\ud83d\ude34","sleeping"],["\ud83d\ude44","roll_eyes"],["\ud83e\udd14","thinking"],["\ud83e\udd25","lying_face"],["\ud83d\ude2c","grimacing"],["\ud83e\udd10","zipper_mouth_face"],["\ud83e\udd22","nauseated_face"],["\ud83e\udd27","sneezing_face"],["\ud83d\ude37","mask"],["\ud83e\udd12","face_with_thermometer"],["\ud83e\udd15","face_with_head_bandage"],["\ud83d\ude08","smiling_imp"],["\ud83d\udc7f","imp"],["\ud83d\udc79","japanese_ogre"],["\ud83d\udc7a","japanese_goblin"],["\ud83d\udca9","hankey"],["\ud83d\udc7b","ghost"],["\ud83d\udc80","skull"],["\u2620\ufe0f","skull_and_crossbones"],["\ud83d\udc7d","alien"],["\ud83d\udc7e","space_invader"],["\ud83e\udd16","robot"],["\ud83c\udf83","jack_o_lantern"],["\ud83d\ude3a","smiley_cat"],["\ud83d\ude38","smile_cat"],["\ud83d\ude39","joy_cat"],["\ud83d\ude3b","heart_eyes_cat"],["\ud83d\ude3c","smirk_cat"],["\ud83d\ude3d","kissing_cat"],["\ud83d\ude40","scream_cat"],["\ud83d\ude3f","crying_cat_face"],["\ud83d\ude3e","pouting_cat"],["\ud83d\udc50","open_hands"],["\ud83d\ude4c","raised_hands"],["\ud83d\udc4f","clap"],["\ud83d\ude4f","pray"],["\ud83e\udd1d","handshake"],["\ud83d\udc4d","+1"],["\ud83d\udc4e","-1"],["\ud83d\udc4a","fist_oncoming"],["\u270a","fist_raised"],["\ud83e\udd1b","fist_left"],["\ud83e\udd1c","fist_right"],["\ud83e\udd1e","crossed_fingers"],["\u270c\ufe0f","v"],["\ud83e\udd18","metal"],["\ud83d\udc4c","ok_hand"],["\ud83d\udc48","point_left"],["\ud83d\udc49","point_right"],["\ud83d\udc46","point_up_2"],["\ud83d\udc47","point_down"],["\u261d\ufe0f","point_up"],["\u270b","hand"],["\ud83e\udd1a","raised_back_of_hand"],["\ud83d\udd90","raised_hand_with_fingers_splayed"],["\ud83d\udd96","vulcan_salute"],["\ud83d\udc4b","wave"],["\ud83e\udd19","call_me_hand"],["\ud83d\udcaa","muscle"],["\ud83d\udd95","middle_finger"],["\u270d\ufe0f","writing_hand"],["\ud83e\udd33","selfie"],["\ud83d\udc85","nail_care"],["\ud83d\udc8d","ring"],["\ud83d\udc84","lipstick"],["\ud83d\udc8b","kiss"],["\ud83d\udc44","lips"],["\ud83d\udc45","tongue"],["\ud83d\udc42","ear"],["\ud83d\udc43","nose"],["\ud83d\udc63","footprints"],["\ud83d\udc41","eye"],["\ud83d\udc40","eyes"],["\ud83d\udde3","speaking_head"],["\ud83d\udc64","bust_in_silhouette"],["\ud83d\udc65","busts_in_silhouette"],["\ud83d\udc76","baby"],["\ud83d\udc66","boy"],["\ud83d\udc67","girl"],["\ud83d\udc68","man"],["\ud83d\udc69","woman"],["\ud83d\udc71\u200d\u2640","blonde_woman"],["\ud83d\udc71","blonde_man"],["\ud83d\udc74","older_man"],["\ud83d\udc75","older_woman"],["\ud83d\udc72","man_with_gua_pi_mao"],["\ud83d\udc73\u200d\u2640","woman_with_turban"],["\ud83d\udc73","man_with_turban"],["\ud83d\udc6e\u200d\u2640","policewoman"],["\ud83d\udc6e","policeman"],["\ud83d\udc77\u200d\u2640","construction_worker_woman"],["\ud83d\udc77","construction_worker_man"],["\ud83d\udc82\u200d\u2640","guardswoman"],["\ud83d\udc82","guardsman"],["\ud83d\udd75\ufe0f\u200d\u2640\ufe0f","female_detective"],["\ud83d\udd75","male_detective"],["\ud83d\udc69\u200d\u2695","woman_health_worker"],["\ud83d\udc68\u200d\u2695","man_health_worker"],["\ud83d\udc69\u200d\ud83c\udf3e","woman_farmer"],["\ud83d\udc68\u200d\ud83c\udf3e","man_farmer"],["\ud83d\udc69\u200d\ud83c\udf73","woman_cook"],["\ud83d\udc68\u200d\ud83c\udf73","man_cook"],["\ud83d\udc69\u200d\ud83c\udf93","woman_student"],["\ud83d\udc68\u200d\ud83c\udf93","man_student"],["\ud83d\udc69\u200d\ud83c\udfa4","woman_singer"],["\ud83d\udc68\u200d\ud83c\udfa4","man_singer"],["\ud83d\udc69\u200d\ud83c\udfeb","woman_teacher"],["\ud83d\udc68\u200d\ud83c\udfeb","man_teacher"],["\ud83d\udc69\u200d\ud83c\udfed","woman_factory_worker"],["\ud83d\udc68\u200d\ud83c\udfed","man_factory_worker"],["\ud83d\udc69\u200d\ud83d\udcbb","woman_technologist"],["\ud83d\udc68\u200d\ud83d\udcbb","man_technologist"],["\ud83d\udc69\u200d\ud83d\udcbc","woman_office_worker"],["\ud83d\udc68\u200d\ud83d\udcbc","man_office_worker"],["\ud83d\udc69\u200d\ud83d\udd27","woman_mechanic"],["\ud83d\udc68\u200d\ud83d\udd27","man_mechanic"],["\ud83d\udc69\u200d\ud83d\udd2c","woman_scientist"],["\ud83d\udc68\u200d\ud83d\udd2c","man_scientist"],["\ud83d\udc69\u200d\ud83c\udfa8","woman_artist"],["\ud83d\udc68\u200d\ud83c\udfa8","man_artist"],["\ud83d\udc69\u200d\ud83d\ude92","woman_firefighter"],["\ud83d\udc68\u200d\ud83d\ude92","man_firefighter"],["\ud83d\udc69\u200d\u2708","woman_pilot"],["\ud83d\udc68\u200d\u2708","man_pilot"],["\ud83d\udc69\u200d\ud83d\ude80","woman_astronaut"],["\ud83d\udc68\u200d\ud83d\ude80","man_astronaut"],["\ud83d\udc69\u200d\u2696","woman_judge"],["\ud83d\udc68\u200d\u2696","man_judge"],["\ud83e\udd36","mrs_claus"],["\ud83c\udf85","santa"],["\ud83d\udc78","princess"],["\ud83e\udd34","prince"],["\ud83d\udc70","bride_with_veil"],["\ud83e\udd35","man_in_tuxedo"],["\ud83d\udc7c","angel"],["\ud83e\udd30","pregnant_woman"],["\ud83d\ude47\u200d\u2640","bowing_woman"],["\ud83d\ude47","bowing_man"],["\ud83d\udc81","tipping_hand_woman"],["\ud83d\udc81\u200d\u2642","tipping_hand_man"],["\ud83d\ude45","no_good_woman"],["\ud83d\ude45\u200d\u2642","no_good_man"],["\ud83d\ude46","ok_woman"],["\ud83d\ude46\u200d\u2642","ok_man"],["\ud83d\ude4b","raising_hand_woman"],["\ud83d\ude4b\u200d\u2642","raising_hand_man"],["\ud83e\udd26\u200d\u2640","woman_facepalming"],["\ud83e\udd26\u200d\u2642","man_facepalming"],["\ud83e\udd37\u200d\u2640","woman_shrugging"],["\ud83e\udd37\u200d\u2642","man_shrugging"],["\ud83d\ude4e","pouting_woman"],["\ud83d\ude4e\u200d\u2642","pouting_man"],["\ud83d\ude4d","frowning_woman"],["\ud83d\ude4d\u200d\u2642","frowning_man"],["\ud83d\udc87","haircut_woman"],["\ud83d\udc87\u200d\u2642","haircut_man"],["\ud83d\udc86","massage_woman"],["\ud83d\udc86\u200d\u2642","massage_man"],["\ud83d\udd74","business_suit_levitating"],["\ud83d\udc83","dancer"],["\ud83d\udd7a","man_dancing"],["\ud83d\udc6f","dancing_women"],["\ud83d\udc6f\u200d\u2642","dancing_men"],["\ud83d\udeb6\u200d\u2640","walking_woman"],["\ud83d\udeb6","walking_man"],["\ud83c\udfc3\u200d\u2640","running_woman"],["\ud83c\udfc3","running_man"],["\ud83d\udc6b","couple"],["\ud83d\udc6d","two_women_holding_hands"],["\ud83d\udc6c","two_men_holding_hands"],["\ud83d\udc91","couple_with_heart_woman_man"],["\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69","couple_with_heart_woman_woman"],["\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68","couple_with_heart_man_man"],["\ud83d\udc8f","couplekiss_man_woman"],["\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69","couplekiss_woman_woman"],["\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68","couplekiss_man_man"],["\ud83d\udc6a","family_man_woman_boy"],["\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67","family_man_woman_girl"],["\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","family_man_woman_girl_boy"],["\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","family_man_woman_boy_boy"],["\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","family_man_woman_girl_girl"],["\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66","family_woman_woman_boy"],["\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67","family_woman_woman_girl"],["\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","family_woman_woman_girl_boy"],["\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","family_woman_woman_boy_boy"],["\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","family_woman_woman_girl_girl"],["\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66","family_man_man_boy"],["\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67","family_man_man_girl"],["\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","family_man_man_girl_boy"],["\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","family_man_man_boy_boy"],["\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","family_man_man_girl_girl"],["\ud83d\udc69\u200d\ud83d\udc66","family_woman_boy"],["\ud83d\udc69\u200d\ud83d\udc67","family_woman_girl"],["\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","family_woman_girl_boy"],["\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","family_woman_boy_boy"],["\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","family_woman_girl_girl"],["\ud83d\udc68\u200d\ud83d\udc66","family_man_boy"],["\ud83d\udc68\u200d\ud83d\udc67","family_man_girl"],["\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","family_man_girl_boy"],["\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","family_man_boy_boy"],["\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","family_man_girl_girl"],["\ud83d\udc5a","womans_clothes"],["\ud83d\udc55","shirt"],["\ud83d\udc56","jeans"],["\ud83d\udc54","necktie"],["\ud83d\udc57","dress"],["\ud83d\udc59","bikini"],["\ud83d\udc58","kimono"],["\ud83d\udc60","high_heel"],["\ud83d\udc61","sandal"],["\ud83d\udc62","boot"],["\ud83d\udc5e","mans_shoe"],["\ud83d\udc5f","athletic_shoe"],["\ud83d\udc52","womans_hat"],["\ud83c\udfa9","tophat"],["\ud83c\udf93","mortar_board"],["\ud83d\udc51","crown"],["\u26d1","rescue_worker_helmet"],["\ud83c\udf92","school_satchel"],["\ud83d\udc5d","pouch"],["\ud83d\udc5b","purse"],["\ud83d\udc5c","handbag"],["\ud83d\udcbc","briefcase"],["\ud83d\udc53","eyeglasses"],["\ud83d\udd76","dark_sunglasses"],["\ud83c\udf02","closed_umbrella"],["\u2602\ufe0f","open_umbrella"]],name:"People",icon:[(t,e,n)=>``,"smile"]},{id:3,emojis:[["\ud83d\udc36","dog"],["\ud83d\udc31","cat"],["\ud83d\udc2d","mouse"],["\ud83d\udc39","hamster"],["\ud83d\udc30","rabbit"],["\ud83e\udd8a","fox_face"],["\ud83d\udc3b","bear"],["\ud83d\udc3c","panda_face"],["\ud83d\udc28","koala"],["\ud83d\udc2f","tiger"],["\ud83e\udd81","lion"],["\ud83d\udc2e","cow"],["\ud83d\udc37","pig"],["\ud83d\udc3d","pig_nose"],["\ud83d\udc38","frog"],["\ud83d\udc35","monkey_face"],["\ud83d\ude48","see_no_evil"],["\ud83d\ude49","hear_no_evil"],["\ud83d\ude4a","speak_no_evil"],["\ud83d\udc12","monkey"],["\ud83d\udc14","chicken"],["\ud83d\udc27","penguin"],["\ud83d\udc26","bird"],["\ud83d\udc24","baby_chick"],["\ud83d\udc23","hatching_chick"],["\ud83d\udc25","hatched_chick"],["\ud83e\udd86","duck"],["\ud83e\udd85","eagle"],["\ud83e\udd89","owl"],["\ud83e\udd87","bat"],["\ud83d\udc3a","wolf"],["\ud83d\udc17","boar"],["\ud83d\udc34","horse"],["\ud83e\udd84","unicorn"],["\ud83d\udc1d","bee"],["\ud83d\udc1b","bug"],["\ud83e\udd8b","butterfly"],["\ud83d\udc0c","snail"],["\ud83d\udc1a","shell"],["\ud83d\udc1e","beetle"],["\ud83d\udc1c","ant"],["\ud83d\udd77","spider"],["\ud83d\udd78","spider_web"],["\ud83d\udc22","turtle"],["\ud83d\udc0d","snake"],["\ud83e\udd8e","lizard"],["\ud83e\udd82","scorpion"],["\ud83e\udd80","crab"],["\ud83e\udd91","squid"],["\ud83d\udc19","octopus"],["\ud83e\udd90","shrimp"],["\ud83d\udc20","tropical_fish"],["\ud83d\udc1f","fish"],["\ud83d\udc21","blowfish"],["\ud83d\udc2c","dolphin"],["\ud83e\udd88","shark"],["\ud83d\udc33","whale"],["\ud83d\udc0b","whale2"],["\ud83d\udc0a","crocodile"],["\ud83d\udc06","leopard"],["\ud83d\udc05","tiger2"],["\ud83d\udc03","water_buffalo"],["\ud83d\udc02","ox"],["\ud83d\udc04","cow2"],["\ud83e\udd8c","deer"],["\ud83d\udc2a","dromedary_camel"],["\ud83d\udc2b","camel"],["\ud83d\udc18","elephant"],["\ud83e\udd8f","rhinoceros"],["\ud83e\udd8d","gorilla"],["\ud83d\udc0e","racehorse"],["\ud83d\udc16","pig2"],["\ud83d\udc10","goat"],["\ud83d\udc0f","ram"],["\ud83d\udc11","sheep"],["\ud83d\udc15","dog2"],["\ud83d\udc29","poodle"],["\ud83d\udc08","cat2"],["\ud83d\udc13","rooster"],["\ud83e\udd83","turkey"],["\ud83d\udd4a","dove"],["\ud83d\udc07","rabbit2"],["\ud83d\udc01","mouse2"],["\ud83d\udc00","rat"],["\ud83d\udc3f","chipmunk"],["\ud83d\udc3e","feet"],["\ud83d\udc09","dragon"],["\ud83d\udc32","dragon_face"],["\ud83c\udf35","cactus"],["\ud83c\udf84","christmas_tree"],["\ud83c\udf32","evergreen_tree"],["\ud83c\udf33","deciduous_tree"],["\ud83c\udf34","palm_tree"],["\ud83c\udf31","seedling"],["\ud83c\udf3f","herb"],["\u2618\ufe0f","shamrock"],["\ud83c\udf40","four_leaf_clover"],["\ud83c\udf8d","bamboo"],["\ud83c\udf8b","tanabata_tree"],["\ud83c\udf43","leaves"],["\ud83c\udf42","fallen_leaf"],["\ud83c\udf41","maple_leaf"],["\ud83c\udf44","mushroom"],["\ud83c\udf3e","ear_of_rice"],["\ud83d\udc90","bouquet"],["\ud83c\udf37","tulip"],["\ud83c\udf39","rose"],["\ud83e\udd40","wilted_flower"],["\ud83c\udf3b","sunflower"],["\ud83c\udf3c","blossom"],["\ud83c\udf38","cherry_blossom"],["\ud83c\udf3a","hibiscus"],["\ud83c\udf0e","earth_americas"],["\ud83c\udf0d","earth_africa"],["\ud83c\udf0f","earth_asia"],["\ud83c\udf15","full_moon"],["\ud83c\udf16","waning_gibbous_moon"],["\ud83c\udf17","last_quarter_moon"],["\ud83c\udf18","waning_crescent_moon"],["\ud83c\udf11","new_moon"],["\ud83c\udf12","waxing_crescent_moon"],["\ud83c\udf13","first_quarter_moon"],["\ud83c\udf14","moon"],["\ud83c\udf1a","new_moon_with_face"],["\ud83c\udf1d","full_moon_with_face"],["\ud83c\udf1e","sun_with_face"],["\ud83c\udf1b","first_quarter_moon_with_face"],["\ud83c\udf1c","last_quarter_moon_with_face"],["\ud83c\udf19","crescent_moon"],["\ud83d\udcab","dizzy"],["\u2b50\ufe0f","star"],["\ud83c\udf1f","star2"],["\u2728","sparkles"],["\u26a1\ufe0f","zap"],["\ud83d\udd25","fire"],["\ud83d\udca5","boom"],["\u2604","comet"],["\u2600\ufe0f","sunny"],["\ud83c\udf24","sun_behind_small_cloud"],["\u26c5\ufe0f","partly_sunny"],["\ud83c\udf25","sun_behind_large_cloud"],["\ud83c\udf26","sun_behind_rain_cloud"],["\ud83c\udf08","rainbow"],["\u2601\ufe0f","cloud"],["\ud83c\udf27","cloud_with_rain"],["\u26c8","cloud_with_lightning_and_rain"],["\ud83c\udf29","cloud_with_lightning"],["\ud83c\udf28","cloud_with_snow"],["\u2603\ufe0f","snowman_with_snow"],["\u26c4\ufe0f","snowman"],["\u2744\ufe0f","snowflake"],["\ud83c\udf2c","wind_face"],["\ud83d\udca8","dash"],["\ud83c\udf2a","tornado"],["\ud83c\udf2b","fog"],["\ud83c\udf0a","ocean"],["\ud83d\udca7","droplet"],["\ud83d\udca6","sweat_drops"],["\u2614\ufe0f","umbrella"]],name:"Nature",icon:[(t,e,n)=>``,"cherry_blossom"]},{id:4,emojis:[["\ud83c\udf4f","green_apple"],["\ud83c\udf4e","apple"],["\ud83c\udf50","pear"],["\ud83c\udf4a","tangerine"],["\ud83c\udf4b","lemon"],["\ud83c\udf4c","banana"],["\ud83c\udf49","watermelon"],["\ud83c\udf47","grapes"],["\ud83c\udf53","strawberry"],["\ud83c\udf48","melon"],["\ud83c\udf52","cherries"],["\ud83c\udf51","peach"],["\ud83c\udf4d","pineapple"],["\ud83e\udd5d","kiwi_fruit"],["\ud83e\udd51","avocado"],["\ud83c\udf45","tomato"],["\ud83c\udf46","eggplant"],["\ud83e\udd52","cucumber"],["\ud83e\udd55","carrot"],["\ud83c\udf3d","corn"],["\ud83c\udf36","hot_pepper"],["\ud83e\udd54","potato"],["\ud83c\udf60","sweet_potato"],["\ud83c\udf30","chestnut"],["\ud83e\udd5c","peanuts"],["\ud83c\udf6f","honey_pot"],["\ud83e\udd50","croissant"],["\ud83c\udf5e","bread"],["\ud83e\udd56","baguette_bread"],["\ud83e\uddc0","cheese"],["\ud83e\udd5a","egg"],["\ud83c\udf73","fried_egg"],["\ud83e\udd53","bacon"],["\ud83e\udd5e","pancakes"],["\ud83c\udf64","fried_shrimp"],["\ud83c\udf57","poultry_leg"],["\ud83c\udf56","meat_on_bone"],["\ud83c\udf55","pizza"],["\ud83c\udf2d","hotdog"],["\ud83c\udf54","hamburger"],["\ud83c\udf5f","fries"],["\ud83e\udd59","stuffed_flatbread"],["\ud83c\udf2e","taco"],["\ud83c\udf2f","burrito"],["\ud83e\udd57","green_salad"],["\ud83e\udd58","shallow_pan_of_food"],["\ud83c\udf5d","spaghetti"],["\ud83c\udf5c","ramen"],["\ud83c\udf72","stew"],["\ud83c\udf65","fish_cake"],["\ud83c\udf63","sushi"],["\ud83c\udf71","bento"],["\ud83c\udf5b","curry"],["\ud83c\udf5a","rice"],["\ud83c\udf59","rice_ball"],["\ud83c\udf58","rice_cracker"],["\ud83c\udf62","oden"],["\ud83c\udf61","dango"],["\ud83c\udf67","shaved_ice"],["\ud83c\udf68","ice_cream"],["\ud83c\udf66","icecream"],["\ud83c\udf70","cake"],["\ud83c\udf82","birthday"],["\ud83c\udf6e","custard"],["\ud83c\udf6d","lollipop"],["\ud83c\udf6c","candy"],["\ud83c\udf6b","chocolate_bar"],["\ud83c\udf7f","popcorn"],["\ud83c\udf69","doughnut"],["\ud83c\udf6a","cookie"],["\ud83e\udd5b","milk_glass"],["\ud83c\udf7c","baby_bottle"],["\u2615\ufe0f","coffee"],["\ud83c\udf75","tea"],["\ud83c\udf76","sake"],["\ud83c\udf7a","beer"],["\ud83c\udf7b","beers"],["\ud83e\udd42","clinking_glasses"],["\ud83c\udf77","wine_glass"],["\ud83e\udd43","tumbler_glass"],["\ud83c\udf78","cocktail"],["\ud83c\udf79","tropical_drink"],["\ud83c\udf7e","champagne"],["\ud83e\udd44","spoon"],["\ud83c\udf74","fork_and_knife"],["\ud83c\udf7d","plate_with_cutlery"]],name:"Foods",icon:[(t,e,n)=>``,"hamburger"]},{id:5,emojis:[["\u26bd\ufe0f","soccer"],["\ud83c\udfc0","basketball"],["\ud83c\udfc8","football"],["\u26be\ufe0f","baseball"],["\ud83c\udfbe","tennis"],["\ud83c\udfd0","volleyball"],["\ud83c\udfc9","rugby_football"],["\ud83c\udfb1","8ball"],["\ud83c\udfd3","ping_pong"],["\ud83c\udff8","badminton"],["\ud83e\udd45","goal_net"],["\ud83c\udfd2","ice_hockey"],["\ud83c\udfd1","field_hockey"],["\ud83c\udfcf","cricket"],["\u26f3\ufe0f","golf"],["\ud83c\udff9","bow_and_arrow"],["\ud83c\udfa3","fishing_pole_and_fish"],["\ud83e\udd4a","boxing_glove"],["\ud83e\udd4b","martial_arts_uniform"],["\u26f8","ice_skate"],["\ud83c\udfbf","ski"],["\u26f7","skier"],["\ud83c\udfc2","snowboarder"],["\ud83c\udfcb\ufe0f\u200d\u2640\ufe0f","weight_lifting_woman"],["\ud83c\udfcb","weight_lifting_man"],["\ud83e\udd3a","person_fencing"],["\ud83e\udd3c\u200d\u2640","women_wrestling"],["\ud83e\udd3c\u200d\u2642","men_wrestling"],["\ud83e\udd38\u200d\u2640","woman_cartwheeling"],["\ud83e\udd38\u200d\u2642","man_cartwheeling"],["\u26f9\ufe0f\u200d\u2640\ufe0f","basketball_woman"],["\u26f9","basketball_man"],["\ud83e\udd3e\u200d\u2640","woman_playing_handball"],["\ud83e\udd3e\u200d\u2642","man_playing_handball"],["\ud83c\udfcc\ufe0f\u200d\u2640\ufe0f","golfing_woman"],["\ud83c\udfcc","golfing_man"],["\ud83c\udfc4\u200d\u2640","surfing_woman"],["\ud83c\udfc4","surfing_man"],["\ud83c\udfca\u200d\u2640","swimming_woman"],["\ud83c\udfca","swimming_man"],["\ud83e\udd3d\u200d\u2640","woman_playing_water_polo"],["\ud83e\udd3d\u200d\u2642","man_playing_water_polo"],["\ud83d\udea3\u200d\u2640","rowing_woman"],["\ud83d\udea3","rowing_man"],["\ud83c\udfc7","horse_racing"],["\ud83d\udeb4\u200d\u2640","biking_woman"],["\ud83d\udeb4","biking_man"],["\ud83d\udeb5\u200d\u2640","mountain_biking_woman"],["\ud83d\udeb5","mountain_biking_man"],["\ud83c\udfbd","running_shirt_with_sash"],["\ud83c\udfc5","medal_sports"],["\ud83c\udf96","medal_military"],["\ud83e\udd47","1st_place_medal"],["\ud83e\udd48","2nd_place_medal"],["\ud83e\udd49","3rd_place_medal"],["\ud83c\udfc6","trophy"],["\ud83c\udff5","rosette"],["\ud83c\udf97","reminder_ribbon"],["\ud83c\udfab","ticket"],["\ud83c\udf9f","tickets"],["\ud83c\udfaa","circus_tent"],["\ud83e\udd39\u200d\u2640","woman_juggling"],["\ud83e\udd39\u200d\u2642","man_juggling"],["\ud83c\udfad","performing_arts"],["\ud83c\udfa8","art"],["\ud83c\udfac","clapper"],["\ud83c\udfa4","microphone"],["\ud83c\udfa7","headphones"],["\ud83c\udfbc","musical_score"],["\ud83c\udfb9","musical_keyboard"],["\ud83e\udd41","drum"],["\ud83c\udfb7","saxophone"],["\ud83c\udfba","trumpet"],["\ud83c\udfb8","guitar"],["\ud83c\udfbb","violin"],["\ud83c\udfb2","game_die"],["\ud83c\udfaf","dart"],["\ud83c\udfb3","bowling"],["\ud83c\udfae","video_game"],["\ud83c\udfb0","slot_machine"]],name:"Activity",icon:[(t,e,n)=>``,"soccer"]},{id:6,emojis:[["\ud83d\ude97","car"],["\ud83d\ude95","taxi"],["\ud83d\ude99","blue_car"],["\ud83d\ude8c","bus"],["\ud83d\ude8e","trolleybus"],["\ud83c\udfce","racing_car"],["\ud83d\ude93","police_car"],["\ud83d\ude91","ambulance"],["\ud83d\ude92","fire_engine"],["\ud83d\ude90","minibus"],["\ud83d\ude9a","truck"],["\ud83d\ude9b","articulated_lorry"],["\ud83d\ude9c","tractor"],["\ud83d\udef4","kick_scooter"],["\ud83d\udeb2","bike"],["\ud83d\udef5","motor_scooter"],["\ud83c\udfcd","motorcycle"],["\ud83d\udea8","rotating_light"],["\ud83d\ude94","oncoming_police_car"],["\ud83d\ude8d","oncoming_bus"],["\ud83d\ude98","oncoming_automobile"],["\ud83d\ude96","oncoming_taxi"],["\ud83d\udea1","aerial_tramway"],["\ud83d\udea0","mountain_cableway"],["\ud83d\ude9f","suspension_railway"],["\ud83d\ude83","railway_car"],["\ud83d\ude8b","train"],["\ud83d\ude9e","mountain_railway"],["\ud83d\ude9d","monorail"],["\ud83d\ude84","bullettrain_side"],["\ud83d\ude85","bullettrain_front"],["\ud83d\ude88","light_rail"],["\ud83d\ude82","steam_locomotive"],["\ud83d\ude86","train2"],["\ud83d\ude87","metro"],["\ud83d\ude8a","tram"],["\ud83d\ude89","station"],["\ud83d\ude81","helicopter"],["\ud83d\udee9","small_airplane"],["\u2708\ufe0f","airplane"],["\ud83d\udeeb","flight_departure"],["\ud83d\udeec","flight_arrival"],["\ud83d\ude80","rocket"],["\ud83d\udef0","artificial_satellite"],["\ud83d\udcba","seat"],["\ud83d\udef6","canoe"],["\u26f5\ufe0f","boat"],["\ud83d\udee5","motor_boat"],["\ud83d\udea4","speedboat"],["\ud83d\udef3","passenger_ship"],["\u26f4","ferry"],["\ud83d\udea2","ship"],["\u2693\ufe0f","anchor"],["\ud83d\udea7","construction"],["\u26fd\ufe0f","fuelpump"],["\ud83d\ude8f","busstop"],["\ud83d\udea6","vertical_traffic_light"],["\ud83d\udea5","traffic_light"],["\ud83d\uddfa","world_map"],["\ud83d\uddff","moyai"],["\ud83d\uddfd","statue_of_liberty"],["\u26f2\ufe0f","fountain"],["\ud83d\uddfc","tokyo_tower"],["\ud83c\udff0","european_castle"],["\ud83c\udfef","japanese_castle"],["\ud83c\udfdf","stadium"],["\ud83c\udfa1","ferris_wheel"],["\ud83c\udfa2","roller_coaster"],["\ud83c\udfa0","carousel_horse"],["\u26f1","parasol_on_ground"],["\ud83c\udfd6","beach_umbrella"],["\ud83c\udfdd","desert_island"],["\u26f0","mountain"],["\ud83c\udfd4","mountain_snow"],["\ud83d\uddfb","mount_fuji"],["\ud83c\udf0b","volcano"],["\ud83c\udfdc","desert"],["\ud83c\udfd5","camping"],["\u26fa\ufe0f","tent"],["\ud83d\udee4","railway_track"],["\ud83d\udee3","motorway"],["\ud83c\udfd7","building_construction"],["\ud83c\udfed","factory"],["\ud83c\udfe0","house"],["\ud83c\udfe1","house_with_garden"],["\ud83c\udfd8","houses"],["\ud83c\udfda","derelict_house"],["\ud83c\udfe2","office"],["\ud83c\udfec","department_store"],["\ud83c\udfe3","post_office"],["\ud83c\udfe4","european_post_office"],["\ud83c\udfe5","hospital"],["\ud83c\udfe6","bank"],["\ud83c\udfe8","hotel"],["\ud83c\udfea","convenience_store"],["\ud83c\udfeb","school"],["\ud83c\udfe9","love_hotel"],["\ud83d\udc92","wedding"],["\ud83c\udfdb","classical_building"],["\u26ea\ufe0f","church"],["\ud83d\udd4c","mosque"],["\ud83d\udd4d","synagogue"],["\ud83d\udd4b","kaaba"],["\u26e9","shinto_shrine"],["\ud83d\uddfe","japan"],["\ud83c\udf91","rice_scene"],["\ud83c\udfde","national_park"],["\ud83c\udf05","sunrise"],["\ud83c\udf04","sunrise_over_mountains"],["\ud83c\udf20","stars"],["\ud83c\udf87","sparkler"],["\ud83c\udf86","fireworks"],["\ud83c\udf07","city_sunrise"],["\ud83c\udf06","city_sunset"],["\ud83c\udfd9","cityscape"],["\ud83c\udf03","night_with_stars"],["\ud83c\udf0c","milky_way"],["\ud83c\udf09","bridge_at_night"],["\ud83c\udf01","foggy"]],name:"Places",icon:[(t,e,n)=>``,"car"]},{id:7,emojis:[["\u231a\ufe0f","watch"],["\ud83d\udcf1","iphone"],["\ud83d\udcf2","calling"],["\ud83d\udcbb","computer"],["\u2328\ufe0f","keyboard"],["\ud83d\udda5","desktop_computer"],["\ud83d\udda8","printer"],["\ud83d\uddb1","computer_mouse"],["\ud83d\uddb2","trackball"],["\ud83d\udd79","joystick"],["\ud83d\udddc","clamp"],["\ud83d\udcbd","minidisc"],["\ud83d\udcbe","floppy_disk"],["\ud83d\udcbf","cd"],["\ud83d\udcc0","dvd"],["\ud83d\udcfc","vhs"],["\ud83d\udcf7","camera"],["\ud83d\udcf8","camera_flash"],["\ud83d\udcf9","video_camera"],["\ud83c\udfa5","movie_camera"],["\ud83d\udcfd","film_projector"],["\ud83c\udf9e","film_strip"],["\ud83d\udcde","telephone_receiver"],["\u260e\ufe0f","phone"],["\ud83d\udcdf","pager"],["\ud83d\udce0","fax"],["\ud83d\udcfa","tv"],["\ud83d\udcfb","radio"],["\ud83c\udf99","studio_microphone"],["\ud83c\udf9a","level_slider"],["\ud83c\udf9b","control_knobs"],["\u23f1","stopwatch"],["\u23f2","timer_clock"],["\u23f0","alarm_clock"],["\ud83d\udd70","mantelpiece_clock"],["\u231b\ufe0f","hourglass"],["\u23f3","hourglass_flowing_sand"],["\ud83d\udce1","satellite"],["\ud83d\udd0b","battery"],["\ud83d\udd0c","electric_plug"],["\ud83d\udca1","bulb"],["\ud83d\udd26","flashlight"],["\ud83d\udd6f","candle"],["\ud83d\uddd1","wastebasket"],["\ud83d\udee2","oil_drum"],["\ud83d\udcb8","money_with_wings"],["\ud83d\udcb5","dollar"],["\ud83d\udcb4","yen"],["\ud83d\udcb6","euro"],["\ud83d\udcb7","pound"],["\ud83d\udcb0","moneybag"],["\ud83d\udcb3","credit_card"],["\ud83d\udc8e","gem"],["\u2696\ufe0f","balance_scale"],["\ud83d\udd27","wrench"],["\ud83d\udd28","hammer"],["\u2692","hammer_and_pick"],["\ud83d\udee0","hammer_and_wrench"],["\u26cf","pick"],["\ud83d\udd29","nut_and_bolt"],["\u2699\ufe0f","gear"],["\u26d3","chains"],["\ud83d\udd2b","gun"],["\ud83d\udca3","bomb"],["\ud83d\udd2a","hocho"],["\ud83d\udde1","dagger"],["\u2694\ufe0f","crossed_swords"],["\ud83d\udee1","shield"],["\ud83d\udeac","smoking"],["\u26b0\ufe0f","coffin"],["\u26b1\ufe0f","funeral_urn"],["\ud83c\udffa","amphora"],["\ud83d\udd2e","crystal_ball"],["\ud83d\udcff","prayer_beads"],["\ud83d\udc88","barber"],["\u2697\ufe0f","alembic"],["\ud83d\udd2d","telescope"],["\ud83d\udd2c","microscope"],["\ud83d\udd73","hole"],["\ud83d\udc8a","pill"],["\ud83d\udc89","syringe"],["\ud83c\udf21","thermometer"],["\ud83d\udebd","toilet"],["\ud83d\udeb0","potable_water"],["\ud83d\udebf","shower"],["\ud83d\udec1","bathtub"],["\ud83d\udec0","bath"],["\ud83d\udece","bellhop_bell"],["\ud83d\udd11","key"],["\ud83d\udddd","old_key"],["\ud83d\udeaa","door"],["\ud83d\udecb","couch_and_lamp"],["\ud83d\udecf","bed"],["\ud83d\udecc","sleeping_bed"],["\ud83d\uddbc","framed_picture"],["\ud83d\udecd","shopping"],["\ud83d\uded2","shopping_cart"],["\ud83c\udf81","gift"],["\ud83c\udf88","balloon"],["\ud83c\udf8f","flags"],["\ud83c\udf80","ribbon"],["\ud83c\udf8a","confetti_ball"],["\ud83c\udf89","tada"],["\ud83c\udf8e","dolls"],["\ud83c\udfee","izakaya_lantern"],["\ud83c\udf90","wind_chime"],["\u2709\ufe0f","email"],["\ud83d\udce9","envelope_with_arrow"],["\ud83d\udce8","incoming_envelope"],["\ud83d\udce7","e-mail"],["\ud83d\udc8c","love_letter"],["\ud83d\udce5","inbox_tray"],["\ud83d\udce4","outbox_tray"],["\ud83d\udce6","package"],["\ud83c\udff7","label"],["\ud83d\udcea","mailbox_closed"],["\ud83d\udceb","mailbox"],["\ud83d\udcec","mailbox_with_mail"],["\ud83d\udced","mailbox_with_no_mail"],["\ud83d\udcee","postbox"],["\ud83d\udcef","postal_horn"],["\ud83d\udcdc","scroll"],["\ud83d\udcc3","page_with_curl"],["\ud83d\udcc4","page_facing_up"],["\ud83d\udcd1","bookmark_tabs"],["\ud83d\udcca","bar_chart"],["\ud83d\udcc8","chart_with_upwards_trend"],["\ud83d\udcc9","chart_with_downwards_trend"],["\ud83d\uddd2","spiral_notepad"],["\ud83d\uddd3","spiral_calendar"],["\ud83d\udcc6","calendar"],["\ud83d\udcc5","date"],["\ud83d\udcc7","card_index"],["\ud83d\uddc3","card_file_box"],["\ud83d\uddf3","ballot_box"],["\ud83d\uddc4","file_cabinet"],["\ud83d\udccb","clipboard"],["\ud83d\udcc1","file_folder"],["\ud83d\udcc2","open_file_folder"],["\ud83d\uddc2","card_index_dividers"],["\ud83d\uddde","newspaper_roll"],["\ud83d\udcf0","newspaper"],["\ud83d\udcd3","notebook"],["\ud83d\udcd4","notebook_with_decorative_cover"],["\ud83d\udcd2","ledger"],["\ud83d\udcd5","closed_book"],["\ud83d\udcd7","green_book"],["\ud83d\udcd8","blue_book"],["\ud83d\udcd9","orange_book"],["\ud83d\udcda","books"],["\ud83d\udcd6","book"],["\ud83d\udd16","bookmark"],["\ud83d\udd17","link"],["\ud83d\udcce","paperclip"],["\ud83d\udd87","paperclips"],["\ud83d\udcd0","triangular_ruler"],["\ud83d\udccf","straight_ruler"],["\ud83d\udccc","pushpin"],["\ud83d\udccd","round_pushpin"],["\u2702\ufe0f","scissors"],["\ud83d\udd8a","pen"],["\ud83d\udd8b","fountain_pen"],["\u2712\ufe0f","black_nib"],["\ud83d\udd8c","paintbrush"],["\ud83d\udd8d","crayon"],["\ud83d\udcdd","memo"],["\u270f\ufe0f","pencil2"],["\ud83d\udd0d","mag"],["\ud83d\udd0e","mag_right"],["\ud83d\udd0f","lock_with_ink_pen"],["\ud83d\udd10","closed_lock_with_key"],["\ud83d\udd12","lock"],["\ud83d\udd13","unlock"]],name:"Objects",icon:[(t,e,n)=>``,"bell"]},{id:8,emojis:[["\u2764\ufe0f","heart"],["\ud83d\udc9b","yellow_heart"],["\ud83d\udc9a","green_heart"],["\ud83d\udc99","blue_heart"],["\ud83d\udc9c","purple_heart"],["\ud83d\udda4","black_heart"],["\ud83d\udc94","broken_heart"],["\u2763\ufe0f","heavy_heart_exclamation"],["\ud83d\udc95","two_hearts"],["\ud83d\udc9e","revolving_hearts"],["\ud83d\udc93","heartbeat"],["\ud83d\udc97","heartpulse"],["\ud83d\udc96","sparkling_heart"],["\ud83d\udc98","cupid"],["\ud83d\udc9d","gift_heart"],["\ud83d\udc9f","heart_decoration"],["\u262e\ufe0f","peace_symbol"],["\u271d\ufe0f","latin_cross"],["\u262a\ufe0f","star_and_crescent"],["\ud83d\udd49","om"],["\u2638\ufe0f","wheel_of_dharma"],["\u2721\ufe0f","star_of_david"],["\ud83d\udd2f","six_pointed_star"],["\ud83d\udd4e","menorah"],["\u262f\ufe0f","yin_yang"],["\u2626\ufe0f","orthodox_cross"],["\ud83d\uded0","place_of_worship"],["\u26ce","ophiuchus"],["\u2648\ufe0f","aries"],["\u2649\ufe0f","taurus"],["\u264a\ufe0f","gemini"],["\u264b\ufe0f","cancer"],["\u264c\ufe0f","leo"],["\u264d\ufe0f","virgo"],["\u264e\ufe0f","libra"],["\u264f\ufe0f","scorpius"],["\u2650\ufe0f","sagittarius"],["\u2651\ufe0f","capricorn"],["\u2652\ufe0f","aquarius"],["\u2653\ufe0f","pisces"],["\ud83c\udd94","id"],["\u269b\ufe0f","atom_symbol"],["\ud83c\ude51","accept"],["\u2622\ufe0f","radioactive"],["\u2623\ufe0f","biohazard"],["\ud83d\udcf4","mobile_phone_off"],["\ud83d\udcf3","vibration_mode"],["\ud83c\ude36","u6709"],["\ud83c\ude1a\ufe0f","u7121"],["\ud83c\ude38","u7533"],["\ud83c\ude3a","u55b6"],["\ud83c\ude37\ufe0f","u6708"],["\u2734\ufe0f","eight_pointed_black_star"],["\ud83c\udd9a","vs"],["\ud83d\udcae","white_flower"],["\ud83c\ude50","ideograph_advantage"],["\u3299\ufe0f","secret"],["\u3297\ufe0f","congratulations"],["\ud83c\ude34","u5408"],["\ud83c\ude35","u6e80"],["\ud83c\ude39","u5272"],["\ud83c\ude32","u7981"],["\ud83c\udd70\ufe0f","a"],["\ud83c\udd71\ufe0f","b"],["\ud83c\udd8e","ab"],["\ud83c\udd91","cl"],["\ud83c\udd7e\ufe0f","o2"],["\ud83c\udd98","sos"],["\u274c","x"],["\u2b55\ufe0f","o"],["\ud83d\uded1","stop_sign"],["\u26d4\ufe0f","no_entry"],["\ud83d\udcdb","name_badge"],["\ud83d\udeab","no_entry_sign"],["\ud83d\udcaf","100"],["\ud83d\udca2","anger"],["\u2668\ufe0f","hotsprings"],["\ud83d\udeb7","no_pedestrians"],["\ud83d\udeaf","do_not_litter"],["\ud83d\udeb3","no_bicycles"],["\ud83d\udeb1","non-potable_water"],["\ud83d\udd1e","underage"],["\ud83d\udcf5","no_mobile_phones"],["\ud83d\udead","no_smoking"],["\u2757\ufe0f","exclamation"],["\u2755","grey_exclamation"],["\u2753","question"],["\u2754","grey_question"],["\u203c\ufe0f","bangbang"],["\u2049\ufe0f","interrobang"],["\ud83d\udd05","low_brightness"],["\ud83d\udd06","high_brightness"],["\u303d\ufe0f","part_alternation_mark"],["\u26a0\ufe0f","warning"],["\ud83d\udeb8","children_crossing"],["\ud83d\udd31","trident"],["\u269c\ufe0f","fleur_de_lis"],["\ud83d\udd30","beginner"],["\u267b\ufe0f","recycle"],["\u2705","white_check_mark"],["\ud83c\ude2f\ufe0f","u6307"],["\ud83d\udcb9","chart"],["\u2747\ufe0f","sparkle"],["\u2733\ufe0f","eight_spoked_asterisk"],["\u274e","negative_squared_cross_mark"],["\ud83c\udf10","globe_with_meridians"],["\ud83d\udca0","diamond_shape_with_a_dot_inside"],["\u24c2\ufe0f","m"],["\ud83c\udf00","cyclone"],["\ud83d\udca4","zzz"],["\ud83c\udfe7","atm"],["\ud83d\udebe","wc"],["\u267f\ufe0f","wheelchair"],["\ud83c\udd7f\ufe0f","parking"],["\ud83c\ude33","u7a7a"],["\ud83c\ude02\ufe0f","sa"],["\ud83d\udec2","passport_control"],["\ud83d\udec3","customs"],["\ud83d\udec4","baggage_claim"],["\ud83d\udec5","left_luggage"],["\ud83d\udeb9","mens"],["\ud83d\udeba","womens"],["\ud83d\udebc","baby_symbol"],["\ud83d\udebb","restroom"],["\ud83d\udeae","put_litter_in_its_place"],["\ud83c\udfa6","cinema"],["\ud83d\udcf6","signal_strength"],["\ud83c\ude01","koko"],["\ud83d\udd23","symbols"],["\u2139\ufe0f","information_source"],["\ud83d\udd24","abc"],["\ud83d\udd21","abcd"],["\ud83d\udd20","capital_abcd"],["\ud83c\udd96","ng"],["\ud83c\udd97","ok"],["\ud83c\udd99","up"],["\ud83c\udd92","cool"],["\ud83c\udd95","new"],["\ud83c\udd93","free"],["0\ufe0f\u20e3","zero"],["1\ufe0f\u20e3","one"],["2\ufe0f\u20e3","two"],["3\ufe0f\u20e3","three"],["4\ufe0f\u20e3","four"],["5\ufe0f\u20e3","five"],["6\ufe0f\u20e3","six"],["7\ufe0f\u20e3","seven"],["8\ufe0f\u20e3","eight"],["9\ufe0f\u20e3","nine"],["\ud83d\udd1f","keycap_ten"],["\ud83d\udd22","1234"],["#\ufe0f\u20e3","hash"],["*\ufe0f\u20e3","asterisk"],["\u25b6\ufe0f","arrow_forward"],["\u23f8","pause_button"],["\u23ef","play_or_pause_button"],["\u23f9","stop_button"],["\u23fa","record_button"],["\u23ed","next_track_button"],["\u23ee","previous_track_button"],["\u23e9","fast_forward"],["\u23ea","rewind"],["\u23eb","arrow_double_up"],["\u23ec","arrow_double_down"],["\u25c0\ufe0f","arrow_backward"],["\ud83d\udd3c","arrow_up_small"],["\ud83d\udd3d","arrow_down_small"],["\u27a1\ufe0f","arrow_right"],["\u2b05\ufe0f","arrow_left"],["\u2b06\ufe0f","arrow_up"],["\u2b07\ufe0f","arrow_down"],["\u2197\ufe0f","arrow_upper_right"],["\u2198\ufe0f","arrow_lower_right"],["\u2199\ufe0f","arrow_lower_left"],["\u2196\ufe0f","arrow_upper_left"],["\u2195\ufe0f","arrow_up_down"],["\u2194\ufe0f","left_right_arrow"],["\u21aa\ufe0f","arrow_right_hook"],["\u21a9\ufe0f","leftwards_arrow_with_hook"],["\u2934\ufe0f","arrow_heading_up"],["\u2935\ufe0f","arrow_heading_down"],["\ud83d\udd00","twisted_rightwards_arrows"],["\ud83d\udd01","repeat"],["\ud83d\udd02","repeat_one"],["\ud83d\udd04","arrows_counterclockwise"],["\ud83d\udd03","arrows_clockwise"],["\ud83c\udfb5","musical_note"],["\ud83c\udfb6","notes"],["\u2795","heavy_plus_sign"],["\u2796","heavy_minus_sign"],["\u2797","heavy_division_sign"],["\u2716\ufe0f","heavy_multiplication_x"],["\ud83d\udcb2","heavy_dollar_sign"],["\ud83d\udcb1","currency_exchange"],["\u2122\ufe0f","tm"],["\xa9\ufe0f","copyright"],["\xae\ufe0f","registered"],["\u3030\ufe0f","wavy_dash"],["\u27b0","curly_loop"],["\u27bf","loop"],["\ud83d\udd1a","end"],["\ud83d\udd19","back"],["\ud83d\udd1b","on"],["\ud83d\udd1d","top"],["\ud83d\udd1c","soon"],["\u2714\ufe0f","heavy_check_mark"],["\u2611\ufe0f","ballot_box_with_check"],["\ud83d\udd18","radio_button"],["\u26aa\ufe0f","white_circle"],["\u26ab\ufe0f","black_circle"],["\ud83d\udd34","red_circle"],["\ud83d\udd35","large_blue_circle"],["\ud83d\udd3a","small_red_triangle"],["\ud83d\udd3b","small_red_triangle_down"],["\ud83d\udd38","small_orange_diamond"],["\ud83d\udd39","small_blue_diamond"],["\ud83d\udd36","large_orange_diamond"],["\ud83d\udd37","large_blue_diamond"],["\ud83d\udd33","white_square_button"],["\ud83d\udd32","black_square_button"],["\u25aa\ufe0f","black_small_square"],["\u25ab\ufe0f","white_small_square"],["\u25fe\ufe0f","black_medium_small_square"],["\u25fd\ufe0f","white_medium_small_square"],["\u25fc\ufe0f","black_medium_square"],["\u25fb\ufe0f","white_medium_square"],["\u2b1b\ufe0f","black_large_square"],["\u2b1c\ufe0f","white_large_square"],["\ud83d\udd08","speaker"],["\ud83d\udd07","mute"],["\ud83d\udd09","sound"],["\ud83d\udd0a","loud_sound"],["\ud83d\udd14","bell"],["\ud83d\udd15","no_bell"],["\ud83d\udce3","mega"],["\ud83d\udce2","loudspeaker"],["\ud83d\udc41\u200d\ud83d\udde8","eye_speech_bubble"],["\ud83d\udcac","speech_balloon"],["\ud83d\udcad","thought_balloon"],["\ud83d\uddef","right_anger_bubble"],["\u2660\ufe0f","spades"],["\u2663\ufe0f","clubs"],["\u2665\ufe0f","hearts"],["\u2666\ufe0f","diamonds"],["\ud83c\udccf","black_joker"],["\ud83c\udfb4","flower_playing_cards"],["\ud83c\udc04\ufe0f","mahjong"],["\ud83d\udd50","clock1"],["\ud83d\udd51","clock2"],["\ud83d\udd52","clock3"],["\ud83d\udd53","clock4"],["\ud83d\udd54","clock5"],["\ud83d\udd55","clock6"],["\ud83d\udd56","clock7"],["\ud83d\udd57","clock8"],["\ud83d\udd58","clock9"],["\ud83d\udd59","clock10"],["\ud83d\udd5a","clock11"],["\ud83d\udd5b","clock12"],["\ud83d\udd5c","clock130"],["\ud83d\udd5d","clock230"],["\ud83d\udd5e","clock330"],["\ud83d\udd5f","clock430"],["\ud83d\udd60","clock530"],["\ud83d\udd61","clock630"],["\ud83d\udd62","clock730"],["\ud83d\udd63","clock830"],["\ud83d\udd64","clock930"],["\ud83d\udd65","clock1030"],["\ud83d\udd66","clock1130"],["\ud83d\udd67","clock1230"]],name:"Symbols",icon:[(t,e,n)=>``,"capital_abcd"]}],rb=[{name:"Emoji",icon:[(t,e,n)=>``,"Emoji"]}];let ob=(()=>{class t{constructor(){this.DEFAULTS=ib,this.onemojipick=new Pl,this.onchardelete=new Pl,this.theme={},this.emojiCategories=[],this.emos=[],this.hideFooter=!1}ngOnInit(){this.emojiDBKey=this.recentEmojiStoreKey||ib.recentEmojiStoreKey,this.emojiDB=window.localStorage.getItem(this.emojiDBKey),this.emojiDB?this.emojiDB=JSON.parse(this.emojiDB):(this.emojiDB=[],window.localStorage.setItem(this.emojiDBKey,JSON.stringify(this.emojiDB))),this.activeCategory="People",this.emojiCategories=sb.map(t=>({name:t.name,icon:t.icon})),this.activeEmojiSet=sb.filter(t=>{if(t.name===this.activeCategory)return t}),this.activeIndex=this.activeEmojiSet[0].id,this.activeEmojiSet=this.activeEmojiSet[0].emojis,this.activeEmo="Emoji",this.emos=rb.map(t=>({name:t.name,icon:t.icon}))}handleCategoryChange(t){this.activeCategory=t.name,"Recent"===t.name?(this.activeIndex=sb[1].id,this.activeEmojiSet=this.emojiDB):"Search"===t.name?(this.activeIndex=sb[0].id,this.activeEmojiSet=this.emojiDB.concat(sb[2].emojis)):(this.activeEmojiSet=sb.filter(t=>{if(t.name===this.activeCategory)return t}),this.activeIndex=this.activeEmojiSet[0].id,this.activeEmojiSet=this.activeEmojiSet[0].emojis)}handleEmoChange(t){this.activeEmo=t.name}checkIfEmojiExistsInEmojiDB(t){let e=!1;for(let n=0;n=0)if(0===t)this.activeIndex=sb[0].id,this.activeCategory=sb[0].name,this.activeEmojiSet=this.emojiDB.concat(sb[2].emojis);else if(1===t)this.activeIndex=sb[1].id,this.activeCategory=sb[1].name,this.activeEmojiSet=this.emojiDB;else{const e=sb.filter(e=>{if(e.id===t)return e});this.activeIndex=t,this.activeCategory=e[0].name,this.activeEmojiSet=e[0].emojis}}else if("right"===n){const t=e+1;if(0===t)this.activeIndex=sb[0].id,this.activeCategory=sb[0].name,this.activeEmojiSet=this.emojiDB.concat(sb[2].emojis);else if(1===t)this.activeIndex=sb[1].id,this.activeEmojiSet=this.emojiDB,this.activeCategory=sb[1].name;else if(t<=sb.length-1){const e=sb.filter(e=>{if(e.id===t)return e});this.activeIndex=t,this.activeCategory=e[0].name,this.activeEmojiSet=e[0].emojis}}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-emoj"]],inputs:{theme:"theme",width:"width",height:"height",maxRecentEmoji:"maxRecentEmoji",recentEmojiStoreKey:"recentEmojiStoreKey",searchEmojiPlaceholderText:"searchEmojiPlaceholderText",emojiNotFoundText:"emojiNotFoundText"},outputs:{onemojipick:"onemojipick",onchardelete:"onchardelete"},decls:4,vars:18,consts:[[1,"ngx-emoji-mart",3,"ngStyle"],[3,"headerBG","headerFG","headerFontSize","headerPadding","defaultActiveCategory","activeCategory","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","emojiCategories","oncategorychange",4,"ngIf"],[3,"categoryName","categoryEmojiSet","activeIndex","martEmojiNotFoundFG","emojiNotFoundText","searchBoxStyle","searchEmojiPlaceholderText","emojiBtnPadding","emojiFontSize","onpickemoji","oncontentSwipe","oncontentscroll"],[3,"footerBG","footerFG","footerFontSize","footerPadding","defaultActiveEmo","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","emos","hideFooter","onchardelete","onemochange",4,"ngIf"],[3,"headerBG","headerFG","headerFontSize","headerPadding","defaultActiveCategory","activeCategory","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","emojiCategories","oncategorychange"],[3,"footerBG","footerFG","footerFontSize","footerPadding","defaultActiveEmo","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","emos","hideFooter","onchardelete","onemochange"]],template:function(t,e){1&t&&(Ao(0,"div",0),Eo(1,H_,1,12,"ngx-emoj-header",1),Ao(2,"ngx-emoj-category-content",2),No("onpickemoji",function(t){return e.handleEmojiPick(t)})("oncontentSwipe",function(t){return e.handleContentSwipe(t)})("oncontentscroll",function(t){return e.handleContentScroll(t)}),Io(),Eo(3,z_,1,12,"ngx-emoj-footer",3),Io()),2&t&&(xo("ngStyle",function(t,e,n,i,s,r,o,a){const l=ze()+12,c=Me(),h=vo(c,l,n,i,s,r);return _o(c,l+4,o)||h?go(c,l+5,e(n,i,s,r,o)):yo(c,l+5)}(0,q_,e.theme.martBG||e.DEFAULTS.martBG,e.width||e.DEFAULTS.martWidth,e.height||e.DEFAULTS.martHeight,e.theme.martFontFamily||e.DEFAULTS.martFontFamily,e.theme.martBorderRadius||e.DEFAULTS.martBorderRadius)),Ws(1),xo("ngIf",e.theme.martShowHeader),Ws(1),xo("categoryName",e.activeCategory)("categoryEmojiSet",e.activeEmojiSet)("activeIndex",e.activeIndex)("martEmojiNotFoundFG",e.theme.martEmojiNotFoundFG||e.DEFAULTS.martEmojiNotFoundFG)("emojiNotFoundText",e.emojiNotFoundText||e.DEFAULTS.emojiNotFoundText)("searchBoxStyle",e.theme.martSearchBoxStyle||e.DEFAULTS.martSearchBoxStyle)("searchEmojiPlaceholderText",e.searchEmojiPlaceholderText||e.DEFAULTS.searchEmojiPlaceholderText)("emojiBtnPadding",e.theme.martEmojiPadding||e.DEFAULTS.martEmojiPadding)("emojiFontSize",e.theme.martEmojiFontSize||e.DEFAULTS.martEmojiFontSize),Ws(1),xo("ngIf",e.theme.martShowFooter))},directives:function(){return[Yh,Kh,hb,ab,lb]},styles:[".ngx-emoji-mart[_ngcontent-%COMP%]\n {\n position: relative;\n margin: 0;\n margin-bottom: 10px;\n padding: 0px;\n box-sizing: border-box;\n overflow: hidden;\n }"]}),t})(),ab=(()=>{class t{constructor(){this.oncategorychange=new Pl}ngOnInit(){this.activeCategory||(this.activeCategory=this.defaultActiveCategory)}onCategorySelect(t){this.activeCategory=t.name,this.oncategorychange.emit({name:t.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-emoj-header"]],inputs:{activeCategory:"activeCategory",headerBG:"headerBG",headerFG:"headerFG",headerFontSize:"headerFontSize",headerPadding:"headerPadding",emojiCategories:"emojiCategories",activeIndicatorColor:"activeIndicatorColor",activeIndicatorHeight:"activeIndicatorHeight",defaultActiveCategory:"defaultActiveCategory",martCategoryFontSize:"martCategoryFontSize",martCategoryColor:"martCategoryColor",martCategoryColorActive:"martCategoryColorActive"},outputs:{oncategorychange:"oncategorychange"},decls:2,vars:7,consts:[[1,"ngx-emoj-header",3,"ngStyle"],[3,"categoryIcon","categoryIconColor","categoryName","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","active","onselect",4,"ngFor","ngForOf"],[3,"categoryIcon","categoryIconColor","categoryName","martCategoryFontSize","martCategoryColor","martCategoryColorActive","activeIndicatorColor","activeIndicatorHeight","active","onselect"]],template:function(t,e){1&t&&(Ao(0,"div",0),Eo(1,$_,1,9,"ngx-emoj-category",1),Io()),2&t&&(xo("ngStyle",Cl(2,U_,e.headerBG,e.headerFG,e.headerFontSize,e.headerPadding.y+" "+e.headerPadding.x)),Ws(1),xo("ngForOf",e.emojiCategories))},directives:function(){return[Yh,Uh,cb]},styles:[".ngx-emoj-header[_ngcontent-%COMP%]\n {\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n }"]}),t})(),lb=(()=>{class t{constructor(t){this.sanitizer=t,this.onemochange=new Pl,this.onchardelete=new Pl}ngOnInit(){this.activeEmo=this.defaultActiveEmo}onEmoSelect(t){this.activeEmo=t.name,this.onemochange.emit({name:t.name})}deleteChar(t){this.onchardelete.emit({deleteChar:!0})}delButton(t,e,n){return``}}return t.\u0275fac=function(e){return new(e||t)(ko(Su))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-emoj-footer"]],inputs:{footerBG:"footerBG",footerFG:"footerFG",footerFontSize:"footerFontSize",footerPadding:"footerPadding",emos:"emos",activeIndicatorColor:"activeIndicatorColor",activeIndicatorHeight:"activeIndicatorHeight",defaultActiveEmo:"defaultActiveEmo",martCategoryFontSize:"martCategoryFontSize",martCategoryColor:"martCategoryColor",martCategoryColorActive:"martCategoryColorActive",hideFooter:"hideFooter"},outputs:{onemochange:"onemochange",onchardelete:"onchardelete"},decls:5,vars:15,consts:[[1,"ngx-emoj-footer",3,"ngStyle"],[1,"l"],["class","emos-btn",3,"innerHTML",4,"ngFor","ngForOf"],[1,"r"],[1,"emos-btn",3,"ngStyle","innerHTML","click"],[1,"emos-btn",3,"innerHTML"]],template:function(t,e){1&t&&(Ao(0,"div",0),Ao(1,"div",1),Eo(2,W_,1,1,"button",2),Io(),Ao(3,"div",3),Ao(4,"button",4),No("click",function(t){return e.deleteChar(t)}),Io(),Io(),Io()),2&t&&(Ko("unveal",e.hideFooter)("reveal",!e.hideFooter),xo("ngStyle",Cl(8,U_,e.footerBG,e.footerFG,e.footerFontSize,e.footerPadding.y+" "+e.footerPadding.x)),Ws(2),xo("ngForOf",e.emos),Ws(2),xo("ngStyle",vl(13,K_,e.martCategoryColor))("innerHTML",e.sanitizer.bypassSecurityTrustHtml(e.delButton(e.martCategoryColor,e.martCategoryFontSize,e.martCategoryFontSize)),Yi))},directives:[Yh,Uh],styles:[".ngx-emoj-footer[_ngcontent-%COMP%]\n {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n position: absolute;\n bottom: 0;\n left: 0;\n\n }\n .ngx-emoj-footer[_ngcontent-%COMP%] .l[_ngcontent-%COMP%]\n {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 85%;\n }\n .ngx-emoj-footer[_ngcontent-%COMP%] .r[_ngcontent-%COMP%]\n {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 15%;\n }\n\n .emos-btn[_ngcontent-%COMP%]\n {\n background: transparent;\n padding: 15px 10% 10px 10%;\n border: none;\n outline: none;\n padding-left: 10%;\n padding-right: 10%;\n border: none;\n }\n\n\n .reveal[_ngcontent-%COMP%]\n {\n animation-name: reveal;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n }\n\n\n .unveal[_ngcontent-%COMP%]\n {\n animation-name: unveal;\n animation-duration: .5s;\n animation-fill-mode: forwards;\n }\n\n @keyframes unveal\n {\n from\n {\n opacity: 1;\n bottom: 0;\n }\n\n to\n {\n opacity: 0;\n bottom: -150px;\n }\n }\n\n @keyframes reveal\n {\n\n from\n {\n opacity: 0;\n bottom: -150px;\n }\n\n to\n {\n opacity: 1;\n bottom: 0;\n }\n }"]}),t})(),cb=(()=>{class t{constructor(t){this.sanitizer=t,this.onselect=new Pl}selectCategory(){this.onselect.emit({name:this.categoryName,icon:this.categoryIcon})}}return t.\u0275fac=function(e){return new(e||t)(ko(Su))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-emoj-category"]],inputs:{categoryIcon:"categoryIcon",categoryName:"categoryName",categoryIconColor:"categoryIconColor",active:"active",activeIndicatorColor:"activeIndicatorColor",activeIndicatorHeight:"activeIndicatorHeight",martCategoryFontSize:"martCategoryFontSize",martCategoryColor:"martCategoryColor",martCategoryColorActive:"martCategoryColorActive"},outputs:{onselect:"onselect"},decls:1,vars:6,consts:[[1,"ngx-emoji-category-btn",3,"ngStyle","innerHTML","click"]],template:function(t,e){var n,i,s,r,o,a;1&t&&(Ao(0,"button",0),No("click",function(){return e.selectCategory()}),Io()),2&t&&xo("ngStyle",(n=2,i=G_,s=e.categoryIconColor,r=e.activeIndicatorHeight,o=e.active?e.activeIndicatorColor:"transparent",function(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=bo(t,e,n,i);return _o(t,e+2,s)||r}(t,l,s,r,o)?go(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):El(t,l+3)}(Me(),ze(),n,i,s,r,o,a)))("innerHTML",e.sanitizer.bypassSecurityTrustHtml(e.categoryIcon(e.active?e.martCategoryColorActive:e.martCategoryColor,e.martCategoryFontSize,e.martCategoryFontSize)),Yi)},directives:[Yh],styles:[".ngx-emoji-category-btn[_ngcontent-%COMP%]\n {\n background: transparent;\n padding: 15px 10% 10px 10%;\n border: none;\n outline: none;\n border-bottom: 2px solid transparent;\n }"]}),t})(),hb=(()=>{class t{constructor(t){this.rd=t,this.onpickemoji=new Pl,this.oncontentscroll=new Pl,this.oncontentSwipe=new Pl,this.searchSet=[],this.recentEmosForSearch=[],this.initialEmoj=!1,this.notFound=!1}search(t){if(!this.initialEmoj){this.recentEmosForSearch=this.categoryEmojiSet;let t=[];for(let e=2;e{if(t[1].toLowerCase().indexOf(e)>-1)return t}):this.recentEmosForSearch,this.notFound=0===this.categoryEmojiSet.length}ngAfterViewInit(){this.rd.listen(this.emojiContainer.nativeElement,"scroll",t=>{this.oncontentscroll.emit({scrollTop:this.emojiContainer.nativeElement.scrollTop,scrollHeight:this.emojiContainer.nativeElement.scrollHeight})}),this.swipedetect(this.emojiContainer.nativeElement,t=>{"left"!==t&&"right"!==t||this.oncontentSwipe.emit({direction:t})})}swipedetect(t,e){const n=t;let i,s,r,o,a,l,c;const h=e;this.rd.listen(n,"touchstart",t=>{const e=t.changedTouches[0];i="none",s=e.pageX,r=e.pageY,c=(new Date).getTime()}),this.rd.listen(n,"touchend",t=>{const e=t.changedTouches[0];o=e.pageX-s,a=e.pageY-r,l=(new Date).getTime()-c,l<=300&&(Math.abs(o)>=150&&Math.abs(a)<=100?i=o<0?"left":"right":Math.abs(a)>=150&&Math.abs(o)<=100&&(i=a<0?"up":"down")),h(i)})}pickEmoji(t){this.onpickemoji.emit({emoji:t})}}return t.\u0275fac=function(e){return new(e||t)(ko(xa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-emoj-category-content"]],viewQuery:function(t,e){if(1&t&&ql(Z_,!0),2&t){let t;zl(t=Ul())&&(e.emojiContainer=t.first)}},inputs:{categoryEmojiSet:"categoryEmojiSet",categoryName:"categoryName",activeIndex:"activeIndex",emojiBtnPadding:"emojiBtnPadding",emojiFontSize:"emojiFontSize",searchEmojiPlaceholderText:"searchEmojiPlaceholderText",searchBoxStyle:"searchBoxStyle",emojiNotFoundText:"emojiNotFoundText",martEmojiNotFoundFG:"martEmojiNotFoundFG"},outputs:{onpickemoji:"onpickemoji",oncontentscroll:"oncontentscroll",oncontentSwipe:"oncontentSwipe"},decls:5,vars:6,consts:[["type","text","class","ngx-emoji-search",3,"placeholder","ngStyle","keyup",4,"ngIf"],["class","ngx-emoji-not-found",3,"ngStyle",4,"ngIf"],[1,"ngx-emoji-category-content",3,"ngStyle"],["emojiContainer",""],["class","emoji-btn-container",3,"ngStyle",4,"ngFor","ngForOf"],["type","text",1,"ngx-emoji-search",3,"placeholder","ngStyle","keyup"],[1,"ngx-emoji-not-found",3,"ngStyle"],[1,"emoji-btn-container",3,"ngStyle"],[1,"ngx-emoji-emoj-btn",3,"ngStyle","click"]],template:function(t,e){1&t&&(Eo(0,Q_,1,7,"input",0),Eo(1,X_,2,4,"div",1),Ao(2,"div",2,3),Eo(4,eb,3,8,"div",4),Io()),2&t&&(xo("ngIf",0===e.activeIndex),Ws(1),xo("ngIf",0===e.activeIndex&&1==e.notFound),Ws(1),xo("ngStyle",vl(4,nb,e.emojiBtnPadding.y+" solid transparent")),Ws(2),xo("ngForOf",e.categoryEmojiSet))},directives:[Kh,Yh,Uh],styles:[".ngx-emoji-not-found[_ngcontent-%COMP%]\n {\n display: table;\n margin: 60px auto;\n font-size: 15px;\n font-family: sans-serif;\n }\n\n .ngx-emoji-search[_ngcontent-%COMP%]\n {\n width: 87%;\n display: table;\n border: 1px solid;\n padding: 5px 10px;\n height: 18px;\n font-family: sans-serif;\n margin: 15px auto 10px auto;\n outline: none;\n }\n\n .ngx-emoji-category-content[_ngcontent-%COMP%]\n {\n overflow-y: scroll;\n height: 80%;\n width: 105% !important;\n display: flex;\n flex-wrap: wrap;\n text-align: left;\n align-content: flex-start;\n justify-content: flex-start;\n }\n\n .emoji-btn-container[_ngcontent-%COMP%]\n {\n display: flex;\n overflow: hidden;\n }\n .ngx-emoji-emoj-btn[_ngcontent-%COMP%]\n {\n background: transparent;\n margin: auto;\n border: none;\n outline: none;\n cursor: pointer;\n }"]}),t})(),ub=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[],imports:[[Xh]]}),t})();const db=new Un("NgValueAccessor"),pb={provide:db,useExisting:rt(()=>mb),multi:!0};let mb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa))},t.\u0275dir=Ut({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[ya([pb])]}),t})();const fb={provide:db,useExisting:rt(()=>yb),multi:!0},gb=new Un("CompositionEventMode");let yb=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Wc()?Wc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa),ko(gb,8))},t.\u0275dir=Ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[ya([fb])]}),t})();function _b(t){return null==t||0===t.length}function bb(t){return null!=t&&"number"==typeof t.length}const vb=new Un("NgValidators"),wb=new Un("NgAsyncValidators"),Cb=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Eb{static min(t){return e=>{if(_b(e.value)||_b(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(_b(e.value)||_b(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return _b(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return _b(t.value)||Cb.test(t.value)?null:{email:!0}}static minLength(t){return e=>_b(e.value)||!bb(e.value)?null:e.value.lengthbb(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Eb.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(_b(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Sb);return 0==e.length?null:function(t){return xb(Tb(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Sb);return 0==e.length?null:function(t){return rg(Tb(t,e).map(kb)).pipe(x(xb))}}}function Sb(t){return null!=t}function kb(t){const e=Fo(t)?R(t):t;return e}function xb(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Tb(t,e){return e.map(e=>e(t))}function Ab(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Ib(t){return null!=t?Eb.compose(Ab(t)):null}function Pb(t){return null!=t?Eb.composeAsync(Ab(t)):null}function Ob(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Mb=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ib(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Pb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ut({type:t}),t})(),Db=(()=>{class t extends Mb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Fb(e||t)},t.\u0275dir=Ut({type:t,features:[ro]}),t})();const Fb=zn(Db);class Nb extends Mb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Rb=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.untouched)&&void 0!==n&&n}get ngClassTouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.touched)&&void 0!==n&&n}get ngClassPristine(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pristine)&&void 0!==n&&n}get ngClassDirty(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.dirty)&&void 0!==n&&n}get ngClassValid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.valid)&&void 0!==n&&n}get ngClassInvalid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.invalid)&&void 0!==n&&n}get ngClassPending(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pending)&&void 0!==n&&n}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(ko(Nb,2))},t.\u0275dir=Ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ko("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[ro]}),t})();const jb={provide:db,useExisting:rt(()=>Lb),multi:!0};let Lb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa))},t.\u0275dir=Ut({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&No("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[ya([jb])]}),t})();const Vb={provide:db,useExisting:rt(()=>Hb),multi:!0};let Bb=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Hb=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Nb),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa),ko(Bb),ko(io))},t.\u0275dir=Ut({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[ya([Vb])]}),t})();const zb={provide:db,useExisting:rt(()=>qb),multi:!0};let qb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa))},t.\u0275dir=Ut({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[ya([zb])]}),t})();const $b={provide:db,useExisting:rt(()=>Ub),multi:!0};let Ub=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(ko(xa),ko(Sa))},t.\u0275dir=Ut({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&No("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[ya([$b])]}),t})();const Wb={provide:db,useExisting:rt(()=>Kb),multi:!0};let Kb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Zb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const Yb=[mb,qb,Lb,Ub,Kb,Hb];function Qb(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Xb="VALID",Jb="INVALID",tv="PENDING",ev="DISABLED";function nv(t){return(ov(t)?t.validators:t)||null}function iv(t){return Array.isArray(t)?Ib(t):t||null}function sv(t,e){return(ov(e)?e.asyncValidators:t)||null}function rv(t){return Array.isArray(t)?Pb(t):t||null}function ov(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class av{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=iv(this._rawValidators),this._composedAsyncValidatorFn=rv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xb}get invalid(){return this.status===Jb}get pending(){return this.status==tv}get disabled(){return this.status===ev}get enabled(){return this.status!==ev}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=iv(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=rv(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=tv,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ev,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Xb,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Xb&&this.status!==tv||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ev:Xb}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=tv,this._hasOwnPendingAsyncValidator=!0;const e=kb(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof cv?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof hv&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Pl,this.statusChanges=new Pl}_calculateStatus(){return this._allControlsDisabled()?ev:this.errors?Jb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tv)?tv:this._anyControlsHaveStatus(Jb)?Jb:Xb}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ov(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class lv extends av{constructor(t=null,e,n){super(nv(e),sv(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Qb(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Qb(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class cv extends av{constructor(t,e,n){super(nv(e),sv(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof lv?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class hv extends av{constructor(t,e,n){super(nv(e),sv(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof lv?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const uv={provide:Nb,useExisting:rt(()=>pv)},dv=(()=>Promise.resolve(null))();let pv=(()=>{class t extends Nb{constructor(t,e,n,i){super(),this.control=new lv,this._registered=!1,this.update=new Pl,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===yb?n=t:(e=t,Yb.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){var t,e;(function(t,e,n){const i=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Ob(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Ob(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]);{const n=()=>t.updateValueAndValidity();Gb(e._rawValidators,n),Gb(e._rawAsyncValidators,n)}})(t=this.control,e=this),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Zb(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Zb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){dv.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;dv.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(ko(Db,9),ko(vb,10),ko(wb,10),ko(db,10))},t.\u0275dir=Ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ya([uv]),ro,ce]}),t})();const mv=new Un("NgModelWithFormControlWarning");let fv=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),gv=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new cv(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new lv(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new hv(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof lv||t instanceof cv||t instanceof hv?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),yv=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Bb],imports:[fv]}),t})(),_v=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mv,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[gv,Bb],imports:[fv]}),t})();const bv=["scrollMe"];function vv(t,e){1&t&&(Oo(0,undefined,undefined),Mo())}function wv(t,e){1&t&&(Ao(0,"p",38),Xo(1,"Today"),Io())}function Cv(t,e){if(1&t&&(Eo(0,wv,2,0,"p",37),xl(1,"date"),xl(2,"date")),2&t){const t=Lo(),e=t.$implicit,n=t.index,i=Lo();xo("ngIf",Tl(1,1,e.time,"dd MMMM yyyy")!==Tl(2,4,null==i.messages[n-1]?null:i.messages[n-1].time,"dd MMMM yyyy"))}}function Ev(t,e){if(1&t&&(Ao(0,"p",38),Xo(1),xl(2,"date"),Io()),2&t){const t=Lo(2).$implicit;Ws(1),Jo(Tl(2,1,t.time,"dd MMMM yyyy"))}}function Sv(t,e){if(1&t&&(Eo(0,Ev,3,4,"p",37),xl(1,"date"),xl(2,"date")),2&t){const t=Lo(),e=t.$implicit,n=t.index,i=Lo();xo("ngIf",Tl(1,1,e.time,"dd MMMM yyyy")!==Tl(2,4,null==i.messages[n-1]?null:i.messages[n-1].time,"dd MMMM yyyy"))}}function kv(t,e){1&t&&Po(0,"img",16)}function xv(t,e){if(1&t&&(Ao(0,"p",17),Xo(1),Io()),2&t){const t=Lo(3);Ws(1),Jo(t._chatbotName)}}const Tv=function(t,e){return{bot:t,user:e}};function Av(t,e){if(1&t&&(Ao(0,"div",39),Eo(1,kv,1,0,"img",40),Eo(2,xv,2,1,"p",41),Ao(3,"time",18),Xo(4),xl(5,"date"),Io(),Io()),2&t){const t=Lo().$implicit;xo("ngClass",wl(7,Tv,"bot"===t.author,"user"===t.author)),Ws(1),xo("ngIf","bot"===t.author),Ws(1),xo("ngIf","bot"==t.author),Ws(2),Jo(Tl(5,4,t.time,"shortTime"))}}function Iv(t,e){if(1&t&&(Ao(0,"p",42),Xo(1),Io()),2&t){const t=Lo().$implicit;Ws(1),ta("",t.content," ")}}function Pv(t,e){if(1&t){const t=Do();Ao(0,"plyr",43),No("plyrInit",function(e){return Fe(t),Lo(2).player=e})("plyrPlay",function(e){return Fe(t),Lo(2).played(e)})("plyrPause",function(e){return Fe(t),Lo(2).paused(e)}),Io()}if(2&t){const t=Lo().$implicit;xo("plyrPlaysInline",!1)("plyrSources",t.content)}}function Ov(t,e){if(1&t){const t=Do();Ao(0,"plyr",44),No("plyrInit",function(e){return Fe(t),Lo(2).player=e})("plyrPlay",function(e){return Fe(t),Lo(2).played(e)})("plyrPause",function(e){return Fe(t),Lo(2).paused(e)}),Io()}if(2&t){const t=Lo().$implicit;xo("plyrPlaysInline",!1)("plyrSources",t.content)}}function Mv(t,e){if(1&t&&(Ao(0,"div"),Ao(1,"a",45),xl(2,"safeUrl"),Xo(3),Io(),Io()),2&t){const t=Lo().$implicit;Ws(1),xo("href",function(t,e,n){const i=Me(),s=Ce(i,22);return Il(i,Al(i,22)?Sl(i,ze(),2,s.transform,n,s):s.transform(n))}(0,0,t.content.url),Qi),Ws(2),Jo(t.content.urlName)}}function Dv(t,e){1&t&&Po(0,"img",46),2&t&&xo("src",Lo().$implicit.content,Qi)}function Fv(t,e){if(1&t){const t=Do();Ao(0,"div",49),No("click",function(){Fe(t);const n=e.$implicit;return Lo(3).menuSend(n)})("mouseenter",function(){Fe(t);const n=e.$implicit;return Lo(3).mouseEnter(n)}),Xo(1),Io()}if(2&t){const t=e.$implicit;Ws(1),Jo(t)}}function Nv(t,e){if(1&t&&(Ao(0,"div",47),Eo(1,Fv,2,1,"div",48),Io()),2&t){const t=Lo().$implicit;Ws(1),xo("ngForOf",t.content)}}const Rv=function(t,e){return{from:t,to:e}};function jv(t,e){if(1&t&&(Oo(0),Eo(1,vv,1,0,"ng-container",26),xl(2,"date"),xl(3,"date"),Eo(4,Cv,3,7,"ng-template",null,27,Zl),Eo(6,Sv,3,7,"ng-template",null,28,Zl),Eo(8,Av,6,10,"div",29),Ao(9,"div",30),Eo(10,Iv,2,1,"p",31),Eo(11,Pv,1,2,"plyr",32),Eo(12,Ov,1,2,"plyr",33),Eo(13,Mv,4,4,"div",34),Eo(14,Dv,1,1,"img",35),Eo(15,Nv,2,1,"div",36),Io(),Mo()),2&t){const t=e.$implicit,n=e.index,i=So(5),s=So(7),r=Lo();Ws(1),xo("ngIf",Tl(2,11,t.time,"dd MMMM yyyy")===Tl(3,14,r.time,"dd MMMM yyyy"))("ngIfThen",i)("ngIfElse",s),Ws(7),xo("ngIf",t.time!==(null==r.messages[n-1]?null:r.messages[n-1].time)||t.author!==(null==r.messages[n-1]?null:r.messages[n-1].author)),Ws(1),xo("ngClass",wl(17,Rv,"bot"===t.author,"user"===t.author)),Ws(1),xo("ngIf","text"==t.type),Ws(1),xo("ngIf","video"==t.type),Ws(1),xo("ngIf","audio"==t.type),Ws(1),xo("ngIf","link"==t.type),Ws(1),xo("ngIf","image"==t.type),Ws(1),xo("ngIf","quickQuestion"==t.type)}}const Lv=function(t,e){return{emojiShow:t,emojiHide:e}},Vv=function(){return{x:"0",y:"5px"}},Bv=function(t){return{martFontFamily:"arial",martShowHeader:!0,martHeaderPadding:t,martHeaderBG:"#432477",martBG:"#ebeff2",martCategoryColor:"#ebeff2",martCategoryColorActive:"white",martActiveCategoryIndicatorColor:"white"}},Hv=function(){return{standalone:!0}};let zv=(()=>{class t{constructor(t){this.domSanitizer=t}transform(t){return this.domSanitizer.bypassSecurityTrustResourceUrl(t)}}return t.\u0275fac=function(e){return new(e||t)(ko(Su))},t.\u0275pipe=Wt({name:"safeUrl",type:t,pure:!0}),t})(),qv=(()=>{class t{constructor(t,e,n,i){this.chatService=t,this.cdr=e,this.sanitizer=n,this.element=i,this.status=!1,this.messages=[],this._chatbotName="\ucc57\ubd07",this.clicked=!0,this.href="",this.toggled=!1,this.message="",this.nd=new Date,this.macOS=!1}get chatbotName(){return this._chatbotName}handleEmoji(t){this.message+=t.char}handleCharDelete(t){this.message.length>0&&(this.message=this.message.substr(0,this.message.length-2))}played(t){}paused(t){}play(){this.player.play()}stop(){this.player.stop()}ngAfterViewChecked(){this.cdr.detectChanges()}getSantizeUrl(t){return this.sanitizer.bypassSecurityTrustUrl(t)}sendWebData(){const t={host:window.location.host,pathname:window.location.pathname,browser:window.clientInformation.appCodeName,OS:window.clientInformation.appVersion,language:window.clientInformation.language};console.log(t)}clearChat(t){localStorage.removeItem("chat_history"),console.log("user from "+window.location.host+t),this.messages=[]}ngOnInit(){"MacIntel"==window.clientInformation.platform&&(this.macOS=!0),console.log("Bory Chatfaq Version "+nd),console.log(JSON.parse(localStorage.getItem("chat_history"))),setTimeout(()=>{this.clicked=!1},300);const t=new Date;this.time=t,console.log(t),this.sendWebData(),null==JSON.parse(localStorage.getItem("chat_history"))||(this.messages=JSON.parse(localStorage.getItem("chat_history"))),this.chatService.conversation.subscribe(t=>{this.shouldScroll=this.scrollMe.scrollTop+this.scrollMe.clientHeight===this.scrollMe.scrollHeight,this.shouldScroll||this.scrollToBottom(),this.messages=this.messages.concat(t),localStorage.setItem("chat_history",JSON.stringify(this.messages))})}getMessage(){this.chatService.conversation.subscribe(t=>{this.messages=this.messages.concat(t),this.shouldScroll=this.scrollMe.scrollTop+this.scrollMe.clientHeight===this.scrollMe.scrollHeight,this.shouldScroll||this.scrollToBottom()})}scrollToBottom(){this.scrollMe.scrollTop=this.scrollMe.scrollHeight}menuSend(t){const e=new Date,n=e.getHours()+":"+(e.getMinutes()<10?"0":"")+e.getMinutes()+" "+e.getUTCMonth()+"/"+e.getUTCDate()+"/"+e.getFullYear();console.log(n),this.chatService.getAnswers(t,e.toString(),"text","user"),this.message=""}mouseEnter(t){console.log("user from "+window.location.host+" hover "+t)}sendMessage(){this.toggled=!1;const t=new Date,e=t.getHours()+":"+(t.getMinutes()<10?"0":"")+t.getMinutes()+" "+t.getUTCMonth()+"/"+t.getUTCDate()+"/"+t.getFullYear();""!==this.message&&(this.chatService.getAnswers(this.message,t.toString(),"text","user"),this.message="",console.log(e))}startChatApp(t){this.clicked=!this.clicked,console.log("user from "+window.location.host+" click "+t),this.status=!this.status}}return t.\u0275fac=function(e){return new(e||t)(ko($c),ko(Ka),ko(Su),ko(Sa))},t.\u0275cmp=Vt({type:t,selectors:[["bory-chatapp"]],viewQuery:function(t,e){if(1&t&&(ql(bv,!0),ql(td,!0)),2&t){let t;zl(t=Ul())&&(e.scrollMe=t.first),zl(t=Ul())&&(e.plyr=t.first)}},inputs:{chatbotName:"chatbotName"},decls:42,vars:25,consts:[["mat-fab","","color","primary",1,"chatButton",3,"ngClass","mouseenter","click"],[1,"chatApp",3,"ngClass"],[1,"chatHeader"],[1,"chatBot"],[1,"chatBotWrapper"],[1,"indicator"],["src","https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/robot-face.png","alt","",1,"chatBotAvatar","rounded-circle"],[1,"chatBotName"],[1,"closeButton",3,"mouseenter"],["mat-icon-button","","color","basic",2,"background-color","transparent !important",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",2,"color","#a70000","background-color","transparent !important",3,"click"],["mat-icon-button","","color","basic",2,"background-color","transparent !important",3,"click"],[1,"chatBody",3,"scrollTop"],["scrollMe",""],[1,"bot"],["src","https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/robot-face.png","alt","",1,"avatar","rounded-circle"],[2,"padding","0 !important","margin","0 5px","font-weight","500","font-size","15px"],[1,"time"],[1,"message","from","greet"],[4,"ngFor","ngForOf"],[1,"emojiDefault",3,"ngClass","width","height","theme","onemojipick","onchardelete"],[1,"chatFooter"],["type","text","placeholder","\uc9c8\ubb38\ud574\uc8fc\uc138\uc694!!",1,"chatInput",2,"height","56px",3,"ngModel","ngClass","ngModelOptions","ngModelChange","keydown.enter"],[2,"font-style","normal","padding-left","5px","cursor","pointer",3,"click"],["mat-icon-button","","type","button",1,"msg_send_btn",2,"background-color","transparent !important",3,"click"],[4,"ngIf","ngIfThen","ngIfElse"],["today",""],["showDate",""],[3,"ngClass",4,"ngIf"],[1,"message",3,"ngClass"],["style","padding: 0 i !important;margin: 0 !important;word-wrap: break-word;",4,"ngIf"],["style","display: block; width: 260px;","plyrType","video","plyrTitle","Video 1",3,"plyrPlaysInline","plyrSources","plyrInit","plyrPlay","plyrPause",4,"ngIf"],["controlsList","nodownload","style","display: block; width: 260px;","plyrType","audio","plyrTitle","Video 1",3,"plyrPlaysInline","plyrSources","plyrInit","plyrPlay","plyrPause",4,"ngIf"],[4,"ngIf"],["style","width: 100%;","alt","",3,"src",4,"ngIf"],["class","chatCardHelper",4,"ngIf"],["class","dividerDate",4,"ngIf"],[1,"dividerDate"],[3,"ngClass"],["class","avatar rounded-circle","src","https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/robot-face.png","alt","",4,"ngIf"],["style","padding: 0 !important;margin: 0 5px;font-weight: 500;font-size: 15px;",4,"ngIf"],[2,"padding","0 i !important","margin","0 !important","word-wrap","break-word"],["plyrType","video","plyrTitle","Video 1",2,"display","block","width","260px",3,"plyrPlaysInline","plyrSources","plyrInit","plyrPlay","plyrPause"],["controlsList","nodownload","plyrType","audio","plyrTitle","Video 1",2,"display","block","width","260px",3,"plyrPlaysInline","plyrSources","plyrInit","plyrPlay","plyrPause"],[2,"padding","0 i !important","margin","0 !important",3,"href"],["alt","",2,"width","100%",3,"src"],[1,"chatCardHelper"],["class","helper",3,"click","mouseenter",4,"ngFor","ngForOf"],[1,"helper",3,"click","mouseenter"]],template:function(t,e){if(1&t&&(Ao(0,"button",0),No("mouseenter",function(){return e.mouseEnter("Chat Button")})("click",function(){return e.startChatApp("Chat Button")}),Ao(1,"mat-icon"),Xo(2,"chat"),Io(),Io(),Ao(3,"div",1),Ao(4,"div",2),Ao(5,"div",3),Ao(6,"div",4),Po(7,"div",5),Po(8,"img",6),Io(),Ao(9,"p",7),Xo(10),Io(),Io(),Ao(11,"div",8),No("mouseenter",function(){return e.mouseEnter("Options Button")}),Ao(12,"button",9),Ao(13,"mat-icon"),Xo(14,"more_vert"),Io(),Io(),Ao(15,"mat-menu",null,10),Ao(17,"button",11),No("click",function(){return e.clearChat("Clear Chat")}),Xo(18," \ub300\ud654 \uae30\ub85d \uc0ad\uc81c "),Io(),Io(),Ao(19,"button",12),No("click",function(){return e.startChatApp("Chat Button")}),Ao(20,"mat-icon"),Xo(21,"close"),Io(),Io(),Io(),Io(),Ao(22,"div",13,14),Ao(24,"div",15),Po(25,"img",16),Ao(26,"p",17),Xo(27),Io(),Ao(28,"time",18),Xo(29),xl(30,"date"),Io(),Io(),Ao(31,"div",19),Xo(32," \uc548\ub155\ud558\uc138\uc694! \uc800\ub294 \ucc57\ubd07\uc785\ub2c8\ub2e4. "),Io(),Eo(33,jv,16,20,"ng-container",20),Ao(34,"ngx-emoj",21),No("onemojipick",function(t){return e.handleEmoji(t)})("onchardelete",function(t){return e.handleCharDelete(t)}),Io(),Io(),Ao(35,"div",22),Ao(36,"textarea",23),No("ngModelChange",function(t){return e.message=t})("keydown.enter",function(){return e.sendMessage(),!1}),Io(),Ao(37,"i",24),No("click",function(){return e.toggled=!e.toggled}),Xo(38,"\ud83d\ude04"),Io(),Ao(39,"button",25),No("click",function(){return e.sendMessage()}),Ao(40,"mat-icon"),Xo(41,"send"),Io(),Io(),Io(),Io()),2&t){const t=So(16),n=So(23);xo("ngClass",e.status?"hideChatApp":"showChatApp"),Ws(3),xo("ngClass",e.status?"showChatApp":"hideChatApp"),Ws(7),Jo(e._chatbotName),Ws(2),xo("matMenuTriggerFor",t),Ws(10),xo("scrollTop",n.scrollHeight),Ws(5),Jo(e._chatbotName),Ws(2),Jo(Tl(30,15,e.time,"shortTime")),Ws(4),xo("ngForOf",e.messages),Ws(1),xo("ngClass",wl(18,Lv,1==e.toggled,0==e.toggled))("width","330px")("height","150px")("theme",vl(22,Bv,bl(21,Vv))),Ws(2),xo("ngModel",e.message)("ngClass",e.macOS?"macInput":"othersInput")("ngModelOptions",bl(24,Hv))}},directives:[eg,qh,iy,L_,F_,P_,Uh,ob,yb,Rb,pv,Kh,td],pipes:[Qh,zv],styles:['.showChatApp[_ngcontent-%COMP%]{opacity:1!important;z-index:2!important;transform:scale(1)!important}.hideChatApp[_ngcontent-%COMP%]{opacity:0!important;z-index:1!important;transform:scale(0)!important}.material-icons.mat-button-wrapper.closeButton[_ngcontent-%COMP%]{font-size:15px!important}.chatButton[_ngcontent-%COMP%]{position:fixed!important;top:30px!important;display:block!important;overflow:initial!important;flex-wrap:nowrap!important;right:30px!important;opacity:1;z-index:1;transition:all .5s cubic-bezier(1,0,0,1);background-color:#673ab7!important}.closeButton[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;top:15px;right:15px;height:40px}.chatTooltip[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:10px 30px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-width:350px;position:fixed;top:100px;right:60px;background:#e5e4e9;border-radius:10px 0 10px 10px;font-size:15px;word-break:break-all}.hideTooltip[_ngcontent-%COMP%]{opacity:0;transform:translateY(20px) rotate(-10deg);transform-origin:100% 100%}.showTooltip[_ngcontent-%COMP%]{opacity:1;transform:translateY(0) rotate(0deg);transform-origin:100% 100%;transition:all .5s ease}.chatApp[_ngcontent-%COMP%]{width:360px!important;min-height:520px!important;max-height:720px!important;height:80%!important;position:fixed!important;bottom:25px!important;right:25px!important;background-color:#fff!important;box-shadow:0 6px 60px 0 rgb(81 99 120/30%)!important;opacity:0;transform:scale(0);border-radius:10px!important;transform-origin:bottom right 60px;transition:all .5s cubic-bezier(1,0,0,1);overflow:hidden!important;animation:jZyQVL .25s ease-out 0s 1 normal none running!important}.chatHeader[_ngcontent-%COMP%]{height:60px;align-items:center;font-size:16px;color:#fff;background:#673ab7;box-shadow:0 4px 6px 0 rgb(0 0 0/10%);overflow:hidden;z-index:1;position:absolute;top:0;right:0;left:0;padding:14px 80px 14px 60px;transform:translateZ(0)}.chatBot[_ngcontent-%COMP%], .chatHeader[_ngcontent-%COMP%]{display:flex}.chatBotAvatar[_ngcontent-%COMP%]{vertical-align:middle;width:40px;height:40px;display:flex;align-items:center;top:15px;left:15px;cursor:pointer}.chatBotAvatar[_ngcontent-%COMP%], .indicator[_ngcontent-%COMP%]{border-radius:50%;position:absolute}.indicator[_ngcontent-%COMP%]{width:15px;height:15px;background-color:#3fec3f;z-index:2;left:40px;top:10px}.chatBotName[_ngcontent-%COMP%]{margin-left:10px}.hide[_ngcontent-%COMP%]{display:none}.show[_ngcontent-%COMP%]{display:block}.chatBody[_ngcontent-%COMP%]{z-index:0;margin-top:68px;height:calc(100% - 125px);display:flex;flex-wrap:nowrap;flex-direction:column;width:800px;max-width:100%;inset:0;overflow:hidden auto;position:relative;background-color:#fff}.emojiDefault[_ngcontent-%COMP%]{transition:all .5s cubic-bezier(1,0,0,1);position:fixed}.emojiDefault[_ngcontent-%COMP%], .emojiHide[_ngcontent-%COMP%]{bottom:-105px;left:15px}.emojiShow[_ngcontent-%COMP%]{bottom:50px;left:15px}.chatCardHelper[_ngcontent-%COMP%]{height:auto;width:100%}.helper[_ngcontent-%COMP%]{padding:10px 20px;border-radius:20px;cursor:pointer;background:#673ab7;color:#fff;font-size:15px;margin:5px auto;transition:all .3s ease}.helper[_ngcontent-%COMP%]:hover{box-shadow:-4px 20px 40px -23px rgba(0,0,0,.67);background:#895fd1}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#eee}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#432477;border-radius:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#432477}.scroll[_ngcontent-%COMP%]{overflow-y:scroll;scroll-behavior:smooth}.user[_ngcontent-%COMP%]{float:right;flex-direction:row-reverse}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{text-transform:capitalize;width:auto;margin:5px 20px;display:flex;align-items:baseline;justify-content:flex-start}.bot[_ngcontent-%COMP%]{float:left}.avatar[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;border:1px solid #673ab7}.message[_ngcontent-%COMP%]{margin:5px 15px;padding:10px 20px;position:relative;font-size:15px;width:auto;min-width:1vw;max-width:75%}.message.to[_ngcontent-%COMP%]{background-color:#673ab7;color:#fff;margin-left:auto;text-align:right;white-space:pre-wrap;border-radius:10px 0 10px 10px;margin-right:30px}.message.from[_ngcontent-%COMP%]{background-color:#e5e4e9;color:#363636;margin-right:auto;border-radius:0 10px 10px 10px;margin-left:30px}.message.from[_ngcontent-%COMP%]:after{border-color:#e5e4e9 #e5e4e9 transparent transparent;right:100%;transform:skewY(20deg);transform-origin:100% 100%}.message.from[_ngcontent-%COMP%]:after, .message.to[_ngcontent-%COMP%]:after{content:"";position:absolute;border-style:solid;border-width:.3em;top:0}.message.to[_ngcontent-%COMP%]:after{border-color:#673ab7 transparent transparent #673ab7;left:100%;transform:skewY(-20deg);transform-origin:0 100%}.message.to[_ngcontent-%COMP%] time[_ngcontent-%COMP%]{font-size:.7rem;color:#fff;font-size:10px!important}.message.to[_ngcontent-%COMP%] time[_ngcontent-%COMP%], .time[_ngcontent-%COMP%]{margin-top:5px;cursor:default;-webkit-touch-callout:none}.time[_ngcontent-%COMP%]{color:#a7a7aa;font-size:11px!important;font-weight:200}.emoji-button[_ngcontent-%COMP%] emoji-button.emoji-buttons.emoji-list[_ngcontent-%COMP%] emoji-content[_ngcontent-%COMP%] emoji-picker[_ngcontent-%COMP%]{font-size:15px!important}.chatTime[_ngcontent-%COMP%]{margin:0 15px 20px;padding:10px 20px;position:relative;font-size:10px;width:50px}.dividerDate[_ngcontent-%COMP%]{font-size:11px;font-weight:400;text-align:center;margin-top:10px}.chatFooter[_ngcontent-%COMP%]{flex:1 1 0px;position:absolute;bottom:0;right:0;left:0;height:56px;z-index:1;transform:translateZ(0);border-bottom-left-radius:10px;border-bottom-right-radius:10px;display:flex;align-items:center;min-height:54px;border-top:1px solid #e4e4e5;background-color:#fff;box-shadow:0 2px 6px 0 rgb(0 0 0/5%)}.macInput[_ngcontent-%COMP%]{letter-spacing:.5em!important}.othersInput[_ngcontent-%COMP%]{letter-spacing:normal!important}.chatInput[_ngcontent-%COMP%]{font-family:Roboto;width:100%;min-height:20px;max-height:200px;line-height:20px;font-size:15px;min-width:0;border:none;resize:none;margin:auto;padding:18px 10px;white-space:pre-wrap;overflow:hidden scroll;background-color:initial}.chatInput[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.chatInput[_ngcontent-%COMP%]:focus{outline:none}@media only screen and (max-width:588px){.chatApp[_ngcontent-%COMP%]{width:100%!important;height:100vh!important;min-height:100vh!important;max-height:100vh!important;position:relative!important;bottom:0!important;right:0!important;background-color:initial!important;box-shadow:0 6px 60px 0 rgb(81 99 120/30%)!important;opacity:0;transform:scale(0);border-radius:0!important;transform-origin:bottom right 60px;transition:all .5s cubic-bezier(1,0,0,1);overflow:hidden!important;animation:jZyQVL .25s ease-out 0s 1 normal none running!important}}']}),t})();const $v={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return $v.schedule(t,0);if(void 0===window.requestAnimationFrame)return $v.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let Uv;function Wv(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){if(!Uv){const t=Element.prototype;Uv=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Uv.call(t,e)}(t,e)||(i=n,0))),i}class Kv{constructor(t,e){this.componentFactory=e.get(va).resolveComponentFactory(t)}create(t){return new Gv(this.componentFactory,t)}}class Gv{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Vy(1),this.events=this.eventEmitters.pipe(Zu(t=>U(...t))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:t})=>t)),this.ngZone=this.injector.get(yc),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=$v.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=io.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(x(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=$v.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t),s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new le(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Zv extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}new Ia("11.2.12");let Yv=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[xd]]}),t})(),Qv=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Xh,Rf,Pd],Rf]}),t})(),Xv=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Bf],imports:[[Yv,Qv,Rf],Yv,Qv]}),t})();const Jv=new Un("mat-chips-default-options"),tw={separatorKeyCodes:[13]};let ew=(()=>{class t{}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Bf,{provide:Jv,useValue:tw}],imports:[[Rf]]}),t})(),nw=(()=>{class t{constructor(t){this.injector=t;const e=function(t,e){const n=function(t,e){return e.get(va).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Kv(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Zv{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector);n.forEach(({propName:e})=>{if(!this.hasOwnProperty(e))return;const n=this[e];delete this[e],t.setInputValue(e,n)})}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(s),n.forEach(({propName:t})=>{Object.defineProperty(r.prototype,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})}),r}(qv,{injector:t});customElements.define("bory-chatapp",e)}ngDoBootstrap(){}}return t.\u0275mod=qt({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(di(io))},providers:[$c],imports:[[Au,ng,sy,Xv,ew,B_,yv,_v,Mf,zg,ub,ed]]}),t})();(function(){if(Pc)throw new Error("Cannot enable prod mode after platform setup.");Ic=!1})(),xu().bootstrapModule(nw).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);