blob: 1bc490819f80e43f003db7d26ba9140145aed32a [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/coercion"),require("@angular/platform-browser"),require("@angular/cdk/bidi")):"function"==typeof define&&define.amd?define("@angular/flex-layout",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/cdk/coercion","@angular/platform-browser","@angular/cdk/bidi"],e):e((t.ng=t.ng||{},t.ng.flexLayout={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.ng.cdk.coercion,t.ng.platformBrowser,t.ng.cdk.bidi)}(this,function(t,e,n,r,i,o,a,s){"use strict";function l(t,e){function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function u(t,e){return function(){if(n.isPlatformBrowser(e)){var r=/\bflex-layout-.+?\b/g;Array.from(t.querySelectorAll("[class*="+et+"]")).forEach(function(t){t.classList.contains(et+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(r,"")})}}}function c(t,e){return t=t?t.clone():new rt,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}function d(t){var e=p(t);return f(e[0],e[1],e[2])}function p(t){t=t?t.toLowerCase():"";var e=t.split(" "),n=e[0],r=e[1],i=e[2];return ct.find(function(t){return t===n})||(n=ct[0]),r===ut&&(r=i!==ut?i:"",i=ut),[n,g(r),!!i]}function g(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function f(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}function y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}function h(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}function m(t){return t.replace(bt,"|").split("|").map(h).join("")}function x(t){return t.forEach(function(t){t.suffix||(t.suffix=m(t.alias),t.overlapping=!!t.overlapping)}),t}function v(t,e){void 0===e&&(e=[]);var n={};return t.forEach(function(t){n[t.alias]=t}),e.forEach(function(t){n[t.alias]?y(n[t.alias],t):n[t.alias]=t}),x(Object.keys(n).map(function(t){return n[t]}))}function b(t,e){var n=t?t.priority||0:0;return(e?e.priority||0:0)-n}function w(t,e){return(t.priority||0)-(e.priority||0)}function A(t,e){var n=t.filter(function(t){return!Et[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var o="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n";i.appendChild(e.createTextNode(o))}e.head.appendChild(i),n.forEach(function(t){return Et[t]=i})}catch(t){console.error(t)}}}function I(t,e){return e&&!!window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}function E(t){return!!t&&t.mediaQuery.startsWith(jt)}function S(t){return Array.isArray(t)?t:[t]}function C(t,e){var n=e.findByAlias(t)||e.findByQuery(t);return n?n.mediaQuery:t}function k(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function j(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}function R(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var r=[e,n,t],i=t.indexOf("calc");if(i>0){r[2]=O(t.substring(i).trim());var o=t.substr(0,i).trim().split(" ");2==o.length&&(r[0]=o[0],r[1]=o[1])}else if(0==i)r[2]=O(t.trim());else{var o=t.split(" ");r=3===o.length?o:[e,n,t]}return r}function O(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function M(t,e,n,r){if(void 0!==r){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}}function D(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function _(t,e){return void 0===e&&(e=";"),String(t).trim().split(e).map(function(t){return t.trim()}).filter(function(t){return""!==t})}function L(t,e){var n=function(t){return e&&(t.value=e(t.value)),t};return t.map(P).filter(function(t){return!!t}).map(n).reduce(B,{})}function F(t,e){var n=[];return"set"===D(t)?t.forEach(function(t){return n.push(t)}):Object.keys(t).forEach(function(e){n.push(e+":"+t[e])}),L(n,e)}function P(t){var e=t.split(":"),n=e[0],r=e.slice(1);return new Zt(n,r.join(":"))}function B(t,e){return e.key&&(t[e.key]=e.value),t}function T(t,e){var n=function(t){return e&&(t.value=e(t.value)),t};return t.map(P).filter(function(t){return!!t}).map(n).reduce(B,{})}function V(t){var e=G(t);return W(e[0],e[1],e[2])}function G(t){t=t?t.toLowerCase():"";var e=t.split(" "),n=e[0],r=e[1],i=e[2];return oe.find(function(t){return t===n})||(n=oe[0]),r===ie&&(r=i!==ie?i:"",i=ie),[n,N(r),!!i]}function Q(t){return G(t)[0].indexOf("row")>-1}function N(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function W(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}function H(t,e){var n="0px",r=t,i="0px";return"rtl"===e?i=t:n=t,{padding:"0px "+n+" "+r+" "+i}}function K(t,e){var n="0px",r="-"+t,i="0px";return"rtl"===e?i="-"+t:n="-"+t,{margin:"0px "+n+" "+r+" "+i}}function U(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function Y(t,e){var n=U(e.directionality,e.layout),r=X({},de);return r[n]=t,r}function z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}function q(t){void 0===t&&(t="");var e={},n=t.split(" "),r=n[0],i=n[1];switch(r){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]=pn}switch(i){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]=gn}return e}function $(t,e){var n={},r=t.split(" "),i=r[0],o=r[1];switch(i){case"center":n["align-content"]="center";break;case"space-around":n["align-content"]="space-around";break;case"space-between":n["align-content"]="space-between";break;case"space-evenly":n["align-content"]="space-evenly";break;case"end":n["align-content"]="end";break;case"start":n["align-content"]="start";break;case"stretch":n["align-content"]="stretch";break;default:n["align-content"]=vn}switch(o){case"start":n["align-items"]="start";break;case"center":n["align-items"]="center";break;case"end":n["align-items"]="end";break;case"stretch":n["align-items"]="stretch";break;default:n["align-items"]=bn}return n.display=e?"inline-grid":"grid",n}function Z(t,e){var n={},r=t.split(" "),i=r[0],o=r[1];switch(i){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":n["justify-content"]=i;break;default:n["justify-content"]=kn}switch(o){case"start":case"center":case"end":case"stretch":n["justify-items"]=o;break;default:n["justify-items"]=jn}return n.display=e?"inline-grid":"grid",n}var J=function(t,e){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},X=function(){return X=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},X.apply(this,arguments)},tt={provide:e.APP_BOOTSTRAP_LISTENER,useFactory:u,deps:[n.DOCUMENT,e.PLATFORM_ID],multi:!0},et="flex-layout-",nt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[tt]}]}],t}(),rt=function(){function t(t,e,n,r,i){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r,this.priority=i,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),it=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),ot={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},at=new e.InjectionToken("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return ot}}),st=new e.InjectionToken("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),lt=new e.InjectionToken("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),ut="inline",ct=["row","column","row-reverse","column-reverse"],dt=function(){function t(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new r.Subject,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach(function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split(".").slice(1).join("."),i=t[n].currentValue;e.setValue(i,r)}})},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(t);i&&r||(i=n.buildStyles(t,e),r&&this.styleCache.set(t,i)),this.mru=X({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach(function(e){t.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),r=n[0];if(!n[1]&&e){var i=d(r),o=[t];this.styler.applyStyleToElements(i,o)}return r.trim()}return"row"},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.addStyles(t)},t}(),pt=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.99px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.99px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.99px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.99px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.99px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.99px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.99px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.99px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.99px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],gt="(orientation: portrait) and (max-width: 599.99px)",ft="(orientation: portrait) and (min-width: 600px) and (max-width: 839.99px)",yt="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.99px)",ht="(orientation: portrait) and (min-width: 840px)",mt="(orientation: landscape) and (min-width: 1280px)",xt={HANDSET:gt+", (orientation: landscape) and (max-width: 959.99px)",TABLET:ft+" , "+yt,WEB:ht+", "+mt+" ",HANDSET_PORTRAIT:""+gt,TABLET_PORTRAIT:ft+" ",WEB_PORTRAIT:""+ht,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.99px)]",TABLET_LANDSCAPE:""+yt,WEB_LANDSCAPE:""+mt},vt=[{alias:"handset",priority:2e3,mediaQuery:xt.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:xt.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:xt.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:xt.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:xt.TABLET},{alias:"tablet.portrait",priority:2100,mediaQuery:xt.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:xt.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:xt.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:xt.WEB_PORTRAIT,overlapping:!0}],bt=/(\.|-|_)/g,wt=new e.InjectionToken("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=e.inject(lt),n=e.inject(at),r=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return v((n.disableDefaultBps?[]:pt).concat(n.addOrientationBps?vt:[]),r)}}),At=function(){function t(t){this.findByMap=new Map,this.items=t.slice().sort(w)}return t.prototype.findByAlias=function(t){return t?this.findWithPredicate(t,function(e){return e.alias==t}):null},t.prototype.findByQuery=function(t){return this.findWithPredicate(t,function(e){return e.mediaQuery==t})},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this.items.filter(function(t){return 1==t.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this.items.map(function(t){return t.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this.items.map(function(t){return t.suffix?t.suffix:""})},enumerable:!0,configurable:!0}),t.prototype.findWithPredicate=function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[wt]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(wt))},token:t,providedIn:"root"}),t}(),It=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new r.BehaviorSubject(new rt(!0)),this.registry=new Map,this._observable$=this.source.asObservable()}return Object.defineProperty(t.prototype,"activations",{get:function(){var t=[];return this.registry.forEach(function(e,n){e.matches&&t.push(n)}),t},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this.registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t,e){var n=this;if(void 0===e&&(e=!1),t&&t.length){var o=this._observable$.pipe(i.filter(function(n){return!e||t.indexOf(n.mediaQuery)>-1})),a=new r.Observable(function(e){var r=n.registerQuery(t);if(r.length){var i=r.pop();r.forEach(function(t){e.next(t)}),n.source.next(i)}e.complete()});return r.merge(a,o)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return A(n,this._document),n.forEach(function(t){var n=function(n){e._zone.run(function(){return e.source.next(new rt(n.matches,t))})},i=e.registry.get(t);i||(i=e.buildMQL(t),i.addListener(n),e.registry.set(t,i)),i.matches&&r.push(new rt(!0,t))}),r},t.prototype.buildMQL=function(t){return I(t,n.isPlatformBrowser(this._platformId))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.NgZone),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(n.DOCUMENT))},token:t,providedIn:"root"}),t}(),Et={},St=function(t){function r(e,n,r,i){var o=t.call(this,e,n,r)||this;return o._breakpoints=i,o.autoRegisterQueries=!0,o.useOverlaps=!1,o}return l(r,t),r.prototype.clearAll=function(){this.registry.forEach(function(t){t.destroy()}),this.registry.clear(),this.useOverlaps=!1},r.prototype.activate=function(t,e){return void 0===e&&(e=!1),e=e||this.useOverlaps,t=this._validateQuery(t),!e&&this.isActive(t)||(this._deactivateAll(),this._registerMediaQuery(t),this._activateWithOverlaps(t,e)),this.hasActivated},r.prototype._validateQuery=function(t){var e=this._breakpoints.findByAlias(t);return e&&e.mediaQuery||t},r.prototype._activateWithOverlaps=function(t,e){if(e){var n=this._breakpoints.findByQuery(t),r=n?n.alias:"unknown";switch(r){case"lg":this._activateByAlias("lt-xl");break;case"md":this._activateByAlias("lt-xl, lt-lg");break;case"sm":this._activateByAlias("lt-xl, lt-lg, lt-md");break;case"xs":this._activateByAlias("lt-xl, lt-lg, lt-md, lt-sm")}switch(r){case"xl":this._activateByAlias("gt-lg, gt-md, gt-sm, gt-xs");break;case"lg":this._activateByAlias("gt-md, gt-sm, gt-xs");break;case"md":this._activateByAlias("gt-sm, gt-xs");break;case"sm":this._activateByAlias("gt-xs")}}return this._activateByQuery(t)},r.prototype._activateByAlias=function(t){var e=this,n=function(t){var n=e._breakpoints.findByAlias(t);e._activateByQuery(n?n.mediaQuery:t)};t.split(",").forEach(function(t){return n(t.trim())})},r.prototype._activateByQuery=function(t){var e=this.registry.get(t);return e&&!this.isActive(t)&&this.registry.set(t,e.activate()),this.hasActivated},r.prototype._deactivateAll=function(){return this.registry.forEach(function(t){t.deactivate()}),this},r.prototype._registerMediaQuery=function(t){!this.registry.has(t)&&this.autoRegisterQueries&&this.registerQuery(t)},r.prototype.buildMQL=function(t){return new Ct(t)},Object.defineProperty(r.prototype,"hasActivated",{get:function(){return this.activations.length>0},enumerable:!0,configurable:!0}),r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:e.NgZone},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:At}]},r}(It),Ct=function(){function t(t){this._mediaQuery=t,this._isActive=!1,this._listeners=[],this.onchange=null}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._isActive},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"media",{get:function(){return this._mediaQuery},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.deactivate(),this._listeners=[]},t.prototype.activate=function(){var t=this;return this._isActive||(this._isActive=!0,this._listeners.forEach(function(e){e.call(null,t)})),this},t.prototype.deactivate=function(){var t=this;return this._isActive&&(this._isActive=!1,this._listeners.forEach(function(e){e.call(null,t)})),this},t.prototype.addListener=function(t){if(-1===this._listeners.indexOf(t)&&this._listeners.push(t),this._isActive){t.call(null,this)}},t.prototype.removeListener=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.removeEventListener=function(t,e,n){},t.prototype.dispatchEvent=function(t){return!1},t}(),kt={provide:It,useClass:St},jt="print",Rt={alias:jt,mediaQuery:jt,priority:1e3},Ot=function(){function t(t,e){this.breakpoints=t,this.layoutConfig=e,this.isPrinting=!1,this.queue=new Mt,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return t.concat([jt])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith(jt)},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map(function(e){return t.breakpoints.findByAlias(e)}).filter(function(t){return null!==t})},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=t.mediaQuery,n=this.breakpoints.findByQuery(e);return(n?this.printBreakPoints.concat([n]):this.printBreakPoints).sort(b)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),c(t,e)},t.prototype.interceptEvents=function(t){var e=this;return function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):!n.matches&&e.isPrinting&&(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting)if(t.matches)this.deactivations=[];else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(b))}},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:void 0,decorators:[{type:e.Inject,args:[at]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(at))},token:t,providedIn:"root"}),t}(),Mt=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(Rt),t.sort(b),t.forEach(function(t){return e.addBreakpoint(t)}),this.printBreakpoints},t.prototype.addBreakpoint=function(t){if(t){void 0===this.printBreakpoints.find(function(e){return e.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=E(t)?[t].concat(this.printBreakpoints):this.printBreakpoints.concat([t]))}},t.prototype.clear=function(){this.printBreakpoints=[]},t}(),Dt=function(){function t(t,e,n){this.breakpoints=t,this.matchMedia=e,this.hook=n,this.filterOverlaps=!1,this.destroyed$=new r.Subject,this._media$=this.watchActivations(),this.media$=this._media$.pipe(i.filter(function(t){return t.length>0}),i.map(function(t){return t[0]}))}return t.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},t.prototype.asObservable=function(){return this._media$},t.prototype.isActive=function(t){var e=this;return k(S(t)).some(function(t){var n=C(t,e.breakpoints);return e.matchMedia.isActive(n)})},t.prototype.watchActivations=function(){var t=this.breakpoints.items.map(function(t){return t.mediaQuery});return this.buildObservable(t)},t.prototype.buildObservable=function(t){var e=this,n=function(t){var e=function(t){return t.mediaQuery.length>0};return t.filter(e).length>0},o=function(t){return e.filterOverlaps?t.filter(function(t){var n=e.breakpoints.findByQuery(t.mediaQuery);return!n||!n.overlapping}):t};return this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(i.filter(function(t){return t.matches}),i.debounceTime(0,r.asapScheduler),i.switchMap(function(t){return r.of(e.findAllActivations())}),i.map(o),i.filter(n),i.takeUntil(this.destroyed$))},t.prototype.findAllActivations=function(){var t=this,e=function(e){return c(e,t.breakpoints.findByQuery(e.mediaQuery))},n=function(e){return t.hook.isPrintEvent(e)?t.hook.updateEvent(e):e};return this.matchMedia.activations.map(function(t){return new rt(!0,t)}).map(n).map(e).sort(b)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:It},{type:Ot}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(It),e.ɵɵinject(Ot))},token:t,providedIn:"root"}),t}(),_t=function(){function t(t,e,n,r,i){this.breakpoints=t,this.matchMedia=e,this.layoutConfig=n,this._platformId=r,this._document=i,this.hasCachedRegistryMatches=!1,this.originalActivations=[],this.originalRegistry=new Map}return t.prototype.activate=function(t){t=t.map(function(t){return t.trim()}),this.saveActivations(),this.deactivateAll(),this.setActivations(t),this.prepareAutoRestore()},t.prototype.restore=function(){if(this.hasCachedRegistryMatches){var t=function(t){return t.mediaQuery},e=this.originalActivations.map(t);try{this.deactivateAll(),this.restoreRegistryMatches(),this.setActivations(e)}finally{this.originalActivations=[],this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}},t.prototype.prepareAutoRestore=function(){if(n.isPlatformBrowser(this._platformId)&&this._document&&this.layoutConfig.mediaTriggerAutoRestore){var t=r.fromEvent(window,"resize").pipe(i.take(1));this.resizeSubscription=t.subscribe(this.restore.bind(this))}},t.prototype.deactivateAll=function(){var t=this.currentActivations;this.forceRegistryMatches(t,!1),this.simulateMediaChanges(t,!1)},t.prototype.saveActivations=function(){var t=this;if(!this.hasCachedRegistryMatches){var e=function(t){return new rt(!0,t)},n=function(e){return c(e,t.breakpoints.findByQuery(e.mediaQuery))};this.originalActivations=this.currentActivations.map(e).map(n).sort(b),this.cacheRegistryMatches()}},t.prototype.setActivations=function(t){this.originalRegistry&&this.forceRegistryMatches(t,!0),this.simulateMediaChanges(t)},t.prototype.simulateMediaChanges=function(t,e){var n=this;void 0===e&&(e=!0);var r=function(t){var e=n.breakpoints,r=e.findByAlias(t)||e.findByQuery(t);return r?r.mediaQuery:t},i=function(t){return n.emitChangeEvent(e,t)};t.map(r).forEach(i)},t.prototype.forceRegistryMatches=function(t,e){var n=new Map;t.forEach(function(t){n.set(t,{matches:e})}),this.matchMedia.registry=n},t.prototype.cacheRegistryMatches=function(){var t=this.originalRegistry;t.clear(),this.matchMedia.registry.forEach(function(e,n){t.set(n,e)}),this.hasCachedRegistryMatches=!0},t.prototype.restoreRegistryMatches=function(){var t=this.matchMedia.registry;t.clear(),this.originalRegistry.forEach(function(e,n){t.set(n,e)}),this.originalRegistry.clear(),this.hasCachedRegistryMatches=!1},t.prototype.emitChangeEvent=function(t,e){this.matchMedia.source.next(new rt(t,e))},Object.defineProperty(t.prototype,"currentActivations",{get:function(){return this.matchMedia.activations},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:At},{type:It},{type:void 0,decorators:[{type:e.Inject,args:[at]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(At),e.ɵɵinject(It),e.ɵɵinject(at),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(n.DOCUMENT))},token:t,providedIn:"root"}),t}(),Lt=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:j(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:j(t);e.forEach(function(t){n._applyMultiValueStyleToElement(r,t)})},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction"),r=this.lookupInlineStyle(t,"flex-direction")||n.isPlatformServer(this._platformId)&&this._serverModuleLoaded?e:"";return[e||"row",r]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return n.isPlatformBrowser(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,r){void 0===r&&(r=!1);var i="";if(t){(i=this.lookupInlineStyle(t,e))||(n.isPlatformBrowser(this._platformId)?r||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))}return i?i.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var r=this;Object.keys(t).sort().forEach(function(i){var o=t[i],a=Array.isArray(o)?o:[o];a.sort();for(var s=0,l=a;s<l.length;s++){var u=l[s];u=u?u+"":"",n.isPlatformBrowser(r._platformId)||!r._serverModuleLoaded?n.isPlatformBrowser(r._platformId)?e.style.setProperty(i,u):r._setServerStyle(e,i,u):r._serverStylesheet.addStyleToElement(e,i,u)}})},t.prototype._setServerStyle=function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var r=this._readStyleAttribute(t);r[e]=n||"",this._writeStyleAttribute(t,r)},t.prototype._getServerStyle=function(t,e){return this._readStyleAttribute(t)[e]||""},t.prototype._readStyleAttribute=function(t){var e={},n=t.getAttribute("style");if(n)for(var r=n.split(/;+/g),i=0;i<r.length;i++){var o=r[i].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);var s=o.substr(0,a).trim();e[s]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e){e[r]&&(n+=r+":"+e[r]+";")}t.setAttribute("style",n)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:it,decorators:[{type:e.Optional}]},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Inject,args:[at]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(it,8),e.ɵɵinject(st,8),e.ɵɵinject(e.PLATFORM_ID),e.ɵɵinject(at))},token:t,providedIn:"root"}),t}(),Ft=function(){
function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}(),Pt=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new r.Subject,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&(t=c(t,e),t.matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(b),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(b),this.updateStyles()))},t.prototype.init=function(t,e,n,r,i){void 0===i&&(i=[]),M(this.updateMap,t,e,n),M(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)},t.prototype.getValue=function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(i.filter(function(n){return n.element===t&&n.key===e}))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach(function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach(function(e,i){t.updateElement(n,i,e),r.delete(i)}),r.forEach(function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)})})},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach(function(t){return t.unsubscribe()}),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach(function(t,e){return n.delete(e)}),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach(function(e,r){return n.updateElement(t,r,e)}))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var i=this;if(n&&n.length){var o=this.watcherMap.get(t);o||(o=new Map,this.watcherMap.set(t,o));if(!o.get(e)){var a=r.merge.apply(void 0,n).subscribe(function(){var n=i.getValue(t,e);i.updateElement(t,e,n)});o.set(e,a)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n<this.activatedBreakpoints.length;n++){var r=this.activatedBreakpoints[n],i=t.get(r.alias);if(i&&(void 0===e||i.has(e)))return i}var o=t.get("");return void 0===e||o&&o.has(e)?o:void 0},t.prototype.observeActivations=function(){var t=this,e=this.breakpoints.items.map(function(t){return t.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(i.tap(this.hook.interceptEvents(t)),i.filter(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:It},{type:At},{type:Ot}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(It),e.ɵɵinject(At),e.ɵɵinject(Ot))},token:t,providedIn:"root"}),t}(),Bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{content:t?"url("+t+")":""}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Tt=function(t){function r(e,r,i,o,a,s){var l=t.call(this,e,r,i,o)||this;return l.elementRef=e,l.styleBuilder=r,l.styler=i,l.marshal=o,l.platformId=a,l.serverModuleLoaded=s,l.DIRECTIVE_KEY="img-src",l.defaultSrc="",l.styleCache=Vt,l.init(),l.setValue(l.nativeElement.getAttribute("src")||"",""),n.isPlatformServer(l.platformId)&&l.serverModuleLoaded&&l.nativeElement.setAttribute("src",""),l}return l(r,t),Object.defineProperty(r.prototype,"src",{set:function(t){this.defaultSrc=t,this.setValue(this.defaultSrc,"")},enumerable:!0,configurable:!0}),r.prototype.updateWithValue=function(t){var e=t||this.defaultSrc;n.isPlatformServer(this.platformId)&&this.serverModuleLoaded?this.addStyles(e):this.nativeElement.setAttribute("src",e)},r.ctorParameters=function(){return[{type:e.ElementRef},{type:Bt},{type:Lt},{type:Pt},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:e.Inject,args:[st]}]}]},r.propDecorators={src:[{type:e.Input,args:["src"]}]},r}(dt),Vt=new Map,Gt=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"],Qt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Gt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n img[src.xs], img[src.sm], img[src.md], img[src.lg], img[src.xl],\n img[src.lt-sm], img[src.lt-md], img[src.lt-lg], img[src.lt-xl],\n img[src.gt-xs], img[src.gt-sm], img[src.gt-md], img[src.gt-lg]\n",inputs:Gt}]}],n}(Tt),Nt=function(t){function r(e,r,i,o,a){var s=t.call(this,e,null,r,i)||this;return s.elementRef=e,s.styler=r,s.marshal=i,s.delegate=o,s.ngClassInstance=a,s.DIRECTIVE_KEY="ngClass",s.ngClassInstance||(s.ngClassInstance=new n.NgClass(s.delegate)),s.init(),s.setValue("",""),s}return l(r,t),Object.defineProperty(r.prototype,"klass",{set:function(t){this.ngClassInstance.klass=t,this.setValue(t,"")},enumerable:!0,configurable:!0}),r.prototype.updateWithValue=function(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()},r.prototype.ngDoCheck=function(){this.ngClassInstance.ngDoCheck()},r.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Pt},{type:nNgClassImpl},{type:n.NgClass,decorators:[{type:e.Optional},{type:e.Self}]}]},r.propDecorators={klass:[{type:e.Input,args:["class"]}]},r}(dt),Wt=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],Ht={provide:nNgClassImpl,useClass:nNgClassR2Impl},Kt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Wt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl],\n [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl],\n [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]\n",inputs:Wt,providers:[Ht]}]}],n}(Nt),Ut=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){return{display:"true"===t?e.display:"none"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Yt=function(t){function r(e,n,r,i,o,a,s){var l=t.call(this,e,n,r,i)||this;return l.elementRef=e,l.styleBuilder=n,l.styler=r,l.marshal=i,l.layoutConfig=o,l.platformId=a,l.serverModuleLoaded=s,l.DIRECTIVE_KEY="show-hide",l.display="",l.hasLayout=!1,l.hasFlexChild=!1,l}return l(r,t),r.prototype.ngAfterViewInit=function(){this.trackExtraTriggers();for(var t=Array.from(this.nativeElement.children),e=0;e<t.length;e++)if(this.marshal.hasValue(t[e],"flex")){this.hasFlexChild=!0;break}zt.has(this.nativeElement)?this.display=zt.get(this.nativeElement):(this.display=this.getDisplayStyle(),zt.set(this.nativeElement,this.display)),this.init();var n=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===n||""===n?this.setValue(!0,""):this.triggerUpdate()},r.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach(function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split("."),i=r.slice(1).join("."),a=t[n].currentValue,s=""===a||0!==a&&o.coerceBooleanProperty(a);"fxHide"===r[0]&&(s=!s),e.setValue(s,i)}})},r.prototype.trackExtraTriggers=function(){var t=this;this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(function(e){t.marshal.trackValue(t.nativeElement,e).pipe(i.takeUntil(t.destroySubject)).subscribe(t.triggerUpdate.bind(t))})},r.prototype.getDisplayStyle=function(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)},r.prototype.updateWithValue=function(t){void 0===t&&(t=!0),""!==t&&(this.addStyles(t?"true":"false",{display:this.display}),n.isPlatformServer(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap"))},r.ctorParameters=function(){return[{type:e.ElementRef},{type:Ut},{type:Lt},{type:Pt},{type:void 0,decorators:[{type:e.Inject,args:[at]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]}]},r}(dt),zt=new WeakMap,qt=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],$t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=qt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxShow], [fxShow.print],\n [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl],\n [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl],\n [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg],\n [fxHide], [fxHide.print],\n [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl],\n [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl],\n [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]\n",inputs:qt}]}],n}(Yt),Zt=function(){function t(t,e,n){void 0===n&&(n=!0),this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}return t}(),Jt=function(t){function r(e,r,i,o,a,s,l,u){var c=t.call(this,e,null,r,i)||this;c.elementRef=e,c.styler=r,c.marshal=i,c.delegate=o,c.sanitizer=a,c.ngStyleInstance=s,c.DIRECTIVE_KEY="ngStyle",c.ngStyleInstance||(c.ngStyleInstance=new n.NgStyle(c.delegate)),c.init();var d=c.nativeElement.getAttribute("style")||"";return c.fallbackStyles=c.buildStyleMap(d),c.isServer=l&&n.isPlatformServer(u),c}return l(r,t),r.prototype.updateWithValue=function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=X({},this.fallbackStyles,e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()},r.prototype.clearStyles=function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()},r.prototype.buildStyleMap=function(t){var n=this,r=function(t){return n.sanitizer.sanitize(e.SecurityContext.STYLE,t)||""};if(t)switch(D(t)){case"string":return T(_(t),r);case"array":return T(t,r);case"set":default:return F(t,r)}return{}},r.prototype.ngDoCheck=function(){this.ngStyleInstance.ngDoCheck()},r.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Pt},{type:nNgStyleImpl},{type:a.DomSanitizer},{type:n.NgStyle,decorators:[{type:e.Optional},{type:e.Self}]},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},r}(dt),Xt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],te={provide:nNgStyleImpl,useClass:nNgStyleR2Impl},ee=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Xt,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [ngStyle],\n [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl],\n [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl],\n [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]\n",inputs:Xt,providers:[te]}]}],n}(Jt),ne=[$t,Kt,ee,Qt],re=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[nt],declarations:ne.slice(),exports:ne.slice()}]}],t}(),ie="inline",oe=["row","column","row-reverse","column-reverse"],ae=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return V(t)},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),se=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],le=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="layout",o.styleCache=ce,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:ae,decorators:[{type:e.Optional}]},{type:Pt}]},n}(dt),ue=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=se,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md],\n [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md],\n [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm],\n [fxLayout.gt-md], [fxLayout.gt-lg]\n",inputs:se}]}],n}(le),ce=new Map,de={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},pe=function(t){function n(e){var n=t.call(this)||this;return n._styler=e,n}return l(n,t),n.prototype.buildStyles=function(t,e){return t.endsWith(be)?(t=t.slice(0,t.indexOf(be)),K(t,e.directionality)):{}},n.prototype.sideEffect=function(t,e,n){var r=n.items;if(t.endsWith(be)){t=t.slice(0,t.indexOf(be));var i=H(t,n.directionality);this._styler.applyStyleToElements(i,n.items)}else{var o=r.pop(),a=Y(t,n);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(de,[o])}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:Lt}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(Lt))},token:n,providedIn:"root"}),n}(Ft),ge=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],fe=function(t){function n(e,n,o,a,s,l){var u=t.call(this,e,s,a,l)||this;u.elRef=e,u.zone=n,u.directionality=o,u.styleUtils=a,u.styleBuilder=s,u.marshal=l,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new r.Subject;var c=[u.directionality.change,u.observerSubject.asObservable()];return u.init(c),u.marshal.trackValue(u.nativeElement,"layout").pipe(i.takeUntil(u.destroySubject)).subscribe(u.onLayoutChange.bind(u)),u}return l(n,t),Object.defineProperty(n.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this.buildChildObservable(),this.triggerUpdate()},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this.observer&&this.observer.disconnect()},n.prototype.onLayoutChange=function(t){var e=this,n=t.value,r=n.split(" ");this.layout=r[0],oe.find(function(t){return t===e.layout})||(this.layout="row"),this.triggerUpdate()},n.prototype.updateWithValue=function(t){var e=this,n=this.childrenNodes.filter(function(t){return 1===t.nodeType&&e.willDisplay(t)}).sort(function(t,n){var r=+e.styler.lookupStyle(t,"order"),i=+e.styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1});if(n.length>0){var r=this.directionality.value,i=this.layout;"row"===i&&"rtl"===r?this.styleCache=he:"row"===i&&"rtl"!==r?this.styleCache=xe:"column"===i&&"rtl"===r?this.styleCache=me:"column"===i&&"rtl"!==r&&(this.styleCache=ve),this.addStyles(t,{directionality:r,items:n,layout:i})}},n.prototype.clearStyles=function(){var e,n=Object.keys(this.mru).length>0,r=n?"padding":U(this.directionality.value,this.layout);n&&t.prototype.clearStyles.call(this),this.styleUtils.applyStyleToElements((e={},e[r]="",e),this.childrenNodes)},n.prototype.willDisplay=function(t){var e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")},n.prototype.buildChildObservable=function(){var t=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver(function(e){var n=function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0};e.some(n)&&t.observerSubject.next()}),t.observer.observe(t.nativeElement,{childList:!0}))})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:s.Directionality},{type:Lt},{type:pe,decorators:[{type:e.Optional}]},{type:Pt}]},n}(dt),ye=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=ge,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md],\n [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md],\n [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm],\n [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]\n",inputs:ge}]}],n}(fe),he=new Map,me=new Map,xe=new Map,ve=new Map,be=" grid",we=function(t){function n(e){var n=t.call(this)||this;return n.layoutConfig=e,n}return l(n,t),n.prototype.buildStyles=function(t,e){var n=t.split(" "),r=n[0],i=n[1],o=n.slice(2),a=o.join(" "),s=e.direction.indexOf("column")>-1?"column":"row",l=Q(s)?"max-width":"max-height",u=Q(s)?"min-width":"min-height",c=String(a).indexOf("calc")>-1,d=c||"auto"===a,p=String(a).indexOf("%")>-1&&!c,g=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,f=c||g;r="0"==r?0:r,i="0"==i?0:i;var y=!r&&!i,h={},m={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":var x=!1!==this.layoutConfig.useColumnBasisZero;a="row"===s?"0%":x?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":i=0,a="auto";break;case"auto":break;case"none":r=0,i=0,a="auto";break;default:f||p||isNaN(a)||(a+="%"),"0%"===a&&(f=!0),"0px"===a&&(a="0%"),h=c?z(m,{"flex-grow":r,"flex-shrink":i,"flex-basis":f?a:"100%"}):z(m,{flex:r+" "+i+" "+(f?a:"100%")})}return h.flex||h["flex-grow"]||(h=c?z(m,{"flex-grow":r,"flex-shrink":i,"flex-basis":a}):z(m,{flex:r+" "+i+" "+a})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(h[u]=y||f&&r?a:null,h[l]=y||!d&&i?a:null),h[u]||h[l]?e.hasWrap&&(h[c?"flex-basis":"flex"]=h[l]?c?h[l]:r+" "+i+" "+h[l]:c?h[u]:r+" "+i+" "+h[u]):h=c?z(m,{"flex-grow":r,"flex-shrink":i,"flex-basis":a}):z(m,{flex:r+" "+i+" "+a}),z(h,{"box-sizing":"border-box"})},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[at]}]}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(at))},token:n,providedIn:"root"}),n}(Ft),Ae=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],Ie=function(t){function n(e,n,r,o,a){var s=t.call(this,e,o,n,a)||this;return s.elRef=e,s.styleUtils=n,s.layoutConfig=r,s.styleBuilder=o,s.marshal=a,s.DIRECTIVE_KEY="flex",s.direction="",s.wrap=!1,s.flexGrow="1",s.flexShrink="1",s.init(),s.parentElement&&(s.marshal.trackValue(s.parentElement,"layout").pipe(i.takeUntil(s.destroySubject)).subscribe(s.onLayoutChange.bind(s)),s.marshal.trackValue(s.nativeElement,"layout-align").pipe(i.takeUntil(s.destroySubject)).subscribe(s.triggerReflow.bind(s))),s}return l(n,t),Object.defineProperty(n.prototype,"shrink",{get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"grow",{get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),n.prototype.onLayoutChange=function(t){var e=t.value,n=e.split(" ");this.direction=n[0],this.wrap=void 0!==n[1]&&"wrap"===n[1],this.triggerUpdate()},n.prototype.updateWithValue=function(t){var e=!1!==this.layoutConfig.addFlexToParent;this.direction||(this.direction=this.getFlexFlowDirection(this.parentElement,e));var n=this.direction,r=n.startsWith("row"),i=this.wrap;r&&i?this.styleCache=ke:r&&!i?this.styleCache=Se:!r&&i?this.styleCache=je:r||i||(this.styleCache=Ce);var o=String(t).replace(";",""),a=R(o,this.flexGrow,this.flexShrink);this.addStyles(a.join(" "),{direction:n,hasWrap:i})},n.prototype.triggerReflow=function(){var t=this.activatedValue;if(void 0!==t){var e=R(t,this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:void 0,decorators:[{type:e.Inject,args:[at]}]},{type:we},{type:Pt}]},n.propDecorators={shrink:[{type:e.Input,args:["fxShrink"]}],grow:[{type:e.Input,args:["fxGrow"]}]},n}(dt),Ee=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Ae,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{inputs:Ae,selector:"\n [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md],\n [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md],\n [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm],\n [fxFlex.gt-md], [fxFlex.gt-lg]\n"}]}],n}(Ie),Se=new Map,Ce=new Map,ke=new Map,je=new Map,Re=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{order:t&&parseInt(t,10)||""}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Oe=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"],Me=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="flex-order",o.styleCache=De,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Re,decorators:[{type:e.Optional}]},{type:Pt}]},n}(dt),De=new Map,_e=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Oe,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxFlexOrder], [fxFlexOrder.xs], [fxFlexOrder.sm], [fxFlexOrder.md],\n [fxFlexOrder.lg], [fxFlexOrder.xl], [fxFlexOrder.lt-sm], [fxFlexOrder.lt-md],\n [fxFlexOrder.lt-lg], [fxFlexOrder.lt-xl], [fxFlexOrder.gt-xs], [fxFlexOrder.gt-sm],\n [fxFlexOrder.gt-md], [fxFlexOrder.gt-lg]\n",inputs:Oe}]}],n}(Me),Le=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){var n;""===t&&(t="0");var r=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||r||isNaN(+t)||(t+="%");var i=e.isRtl?"margin-right":"margin-left";return Q(e.layout)?(n={},n[i]=""+t,n):{"margin-top":""+t}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Fe=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"],Pe=function(t){function n(e,n,r,o,a){var s=t.call(this,e,r,a,o)||this;return s.elRef=e,s.directionality=n,s.styleBuilder=r,s.marshal=o,s.styler=a,s.DIRECTIVE_KEY="flex-offset",s.init([s.directionality.change]),s.parentElement&&s.marshal.trackValue(s.parentElement,"layout-gap").pipe(i.takeUntil(s.destroySubject)).subscribe(s.triggerUpdate.bind(s)),s}return l(n,t),n.prototype.updateWithValue=function(t){void 0===t&&(t="");var e=this.getFlexFlowDirection(this.parentElement,!0),n="rtl"===this.directionality.value;"row"===e&&n?this.styleCache=Te:"row"!==e||n?"column"===e&&n?this.styleCache=Ve:"column"!==e||n||(this.styleCache=Qe):this.styleCache=Ge,this.addStyles(t+"",{layout:e,isRtl:n})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:s.Directionality},{type:Le,decorators:[{type:e.Optional}]},{type:Pt},{type:Lt}]},n}(dt),Be=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Fe,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md],\n [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md],\n [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm],\n [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]\n",inputs:Fe}]}],n}(Pe),Te=new Map,Ve=new Map,Ge=new Map,Qe=new Map,Ne=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){t=t||"stretch";var e={};switch(t){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),We=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],He=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="flex-align",o.styleCache=Ke,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Ne,decorators:[{type:e.Optional}]},{type:Pt}]},n}(dt),Ke=new Map,Ue=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=We,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md],\n [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md],\n [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm],\n [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]\n",inputs:We}]}],n}(He),Ye={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},ze=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return Ye},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),qe=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.styleCache=$e,o.addStyles(""),o}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[fxFill], [fxFlexFill]"}]}],n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:ze},{type:Pt}]},n}(dt),$e=new Map,Ze=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){var n={},r=t.split(" "),i=r[0],o=r[1];switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return z(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===o?Q(e.layout)?null:"100%":null,"max-height":"stretch"===o&&Q(e.layout)?"100%":null})},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Je=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],Xe=function(t){function n(e,n,r,o){var a=t.call(this,e,r,n,o)||this;return a.elRef=e,a.styleUtils=n,a.styleBuilder=r,a.marshal=o,a.DIRECTIVE_KEY="layout-align",a.layout="row",a.inline=!1,a.init(),a.marshal.trackValue(a.nativeElement,"layout").pipe(i.takeUntil(a.destroySubject)).subscribe(a.onLayoutChange.bind(a)),a}return l(n,t),n.prototype.updateWithValue=function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=an:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=ln:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=sn:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=un:"column-reverse"!==e||n||(this.styleCache=on):this.styleCache=nn:this.styleCache=rn:this.styleCache=en,this.addStyles(t,{layout:e,inline:n})},n.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),oe.find(function(t){return t===e.layout})||(this.layout="row"),this.triggerUpdate()},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Ze,decorators:[{type:e.Optional}]},{type:Pt}]},n
}(dt),tn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Je,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md],\n [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md],\n [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm],\n [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]\n",inputs:Je}]}],n}(Xe),en=new Map,nn=new Map,rn=new Map,on=new Map,an=new Map,sn=new Map,ln=new Map,un=new Map,cn=[ue,ye,tn,_e,Be,qe,Ue,Ee],dn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[nt,s.BidiModule],declarations:cn.slice(),exports:cn.slice()}]}],t}(),pn="stretch",gn="stretch",fn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return q(t||pn)},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),yn=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-align",o.styleCache=hn,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:fn,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n}(dt),hn=new Map,mn=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"],xn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=mn,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdGridAlign],\n [gdGridAlign.xs], [gdGridAlign.sm], [gdGridAlign.md], [gdGridAlign.lg],[gdGridAlign.xl],\n [gdGridAlign.lt-sm], [gdGridAlign.lt-md], [gdGridAlign.lt-lg], [gdGridAlign.lt-xl],\n [gdGridAlign.gt-xs], [gdGridAlign.gt-sm], [gdGridAlign.gt-md], [gdGridAlign.gt-lg]\n",inputs:mn}]}],n}(yn),vn="start",bn="stretch",wn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){return $(t||vn+" "+bn,e.inline)},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),An=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-align-columns",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?En:In,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:wn,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),In=new Map,En=new Map,Sn=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"],Cn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Sn,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdAlignColumns],\n [gdAlignColumns.xs], [gdAlignColumns.sm], [gdAlignColumns.md],\n [gdAlignColumns.lg], [gdAlignColumns.xl], [gdAlignColumns.lt-sm],\n [gdAlignColumns.lt-md], [gdAlignColumns.lt-lg], [gdAlignColumns.lt-xl],\n [gdAlignColumns.gt-xs], [gdAlignColumns.gt-sm], [gdAlignColumns.gt-md],\n [gdAlignColumns.gt-lg]\n",inputs:Sn}]}],n}(An),kn="start",jn="stretch",Rn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){return Z(t||kn+" "+jn,e.inline)},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),On=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-align-rows",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?Dn:Mn,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Rn,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),Mn=new Map,Dn=new Map,_n=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"],Ln=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=_n,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdAlignRows],\n [gdAlignRows.xs], [gdAlignRows.sm], [gdAlignRows.md],\n [gdAlignRows.lg], [gdAlignRows.xl], [gdAlignRows.lt-sm],\n [gdAlignRows.lt-md], [gdAlignRows.lt-lg], [gdAlignRows.lt-xl],\n [gdAlignRows.gt-xs], [gdAlignRows.gt-sm], [gdAlignRows.gt-md],\n [gdAlignRows.gt-lg]\n",inputs:_n}]}],n}(On),Fn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{"grid-area":t||"auto"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Pn=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="grid-area",o.styleCache=Bn,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Fn,decorators:[{type:e.Optional}]},{type:Pt}]},n}(dt),Bn=new Map,Tn=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"],Vn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Tn,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdArea],\n [gdArea.xs], [gdArea.sm], [gdArea.md], [gdArea.lg], [gdArea.xl],\n [gdArea.lt-sm], [gdArea.lt-md], [gdArea.lt-lg], [gdArea.lt-xl],\n [gdArea.gt-xs], [gdArea.gt-sm], [gdArea.gt-md], [gdArea.gt-lg]\n",inputs:Tn}]}],n}(Pn),Gn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){var n=(t||"none").split("|").map(function(t){return'"'+t.trim()+'"'});return{display:e.inline?"inline-grid":"grid","grid-template-areas":n.join(" ")}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Qn=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="grid-areas",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?Wn:Nn,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:Gn,decorators:[{type:e.Optional}]},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),Nn=new Map,Wn=new Map,Hn=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"],Kn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Hn,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdAreas],\n [gdAreas.xs], [gdAreas.sm], [gdAreas.md], [gdAreas.lg], [gdAreas.xl],\n [gdAreas.lt-sm], [gdAreas.lt-md], [gdAreas.lt-lg], [gdAreas.lt-xl],\n [gdAreas.gt-xs], [gdAreas.gt-sm], [gdAreas.gt-md], [gdAreas.gt-lg]\n",inputs:Hn}]}],n}(Qn),Un=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){var n=(t||"initial").split(" "),r=n[0],i=n[1];return"column"!==r&&"row"!==r&&"dense"!==r&&(r="row"),i="dense"===i&&"dense"!==r?" dense":"",{display:e.inline?"inline-grid":"grid","grid-auto-flow":r+i}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Yn=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o._inline=!1,o.DIRECTIVE_KEY="grid-auto",o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?qn:zn,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Un,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),zn=new Map,qn=new Map,$n=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"],Zn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=$n,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdAuto],\n [gdAuto.xs], [gdAuto.sm], [gdAuto.md], [gdAuto.lg], [gdAuto.xl],\n [gdAuto.lt-sm], [gdAuto.lt-md], [gdAuto.lt-lg], [gdAuto.lt-xl],\n [gdAuto.gt-xs], [gdAuto.gt-sm], [gdAuto.gt-md], [gdAuto.gt-lg]\n",inputs:$n}]}],n}(Yn),Jn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{"grid-column":t||"auto"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),Xn=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-column",o.styleCache=tr,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:Jn,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n}(dt),tr=new Map,er=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"],nr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=er,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdColumn],\n [gdColumn.xs], [gdColumn.sm], [gdColumn.md], [gdColumn.lg], [gdColumn.xl],\n [gdColumn.lt-sm], [gdColumn.lt-md], [gdColumn.lt-lg], [gdColumn.lt-xl],\n [gdColumn.gt-xs], [gdColumn.gt-sm], [gdColumn.gt-md], [gdColumn.gt-lg]\n",inputs:er}]}],n}(Xn),rr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){t=t||"none";var n=!1;t.endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);var r={display:e.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return r[n?"grid-auto-columns":"grid-template-columns"]=t,r},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),ir=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-columns",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?ar:or,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:rr,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),or=new Map,ar=new Map,sr=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"],lr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=sr,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdColumns],\n [gdColumns.xs], [gdColumns.sm], [gdColumns.md], [gdColumns.lg], [gdColumns.xl],\n [gdColumns.lt-sm], [gdColumns.lt-md], [gdColumns.lt-lg], [gdColumns.lt-xl],\n [gdColumns.gt-xs], [gdColumns.gt-sm], [gdColumns.gt-md], [gdColumns.gt-lg]\n",inputs:sr}]}],n}(ir),ur=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){return{display:e.inline?"inline-grid":"grid","grid-gap":t||"0"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),cr=function(t){function n(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="grid-gap",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?pr:dr,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:Lt},{type:ur,decorators:[{type:e.Optional}]},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),dr=new Map,pr=new Map,gr=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"],fr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=gr,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdGap],\n [gdGap.xs], [gdGap.sm], [gdGap.md], [gdGap.lg], [gdGap.xl],\n [gdGap.lt-sm], [gdGap.lt-md], [gdGap.lt-lg], [gdGap.lt-xl],\n [gdGap.gt-xs], [gdGap.gt-sm], [gdGap.gt-md], [gdGap.gt-lg]\n",inputs:gr}]}],n}(cr),yr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t){return{"grid-row":t||"auto"}},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),hr=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-row",o.styleCache=mr,o.init(),o}return l(n,t),n.ctorParameters=function(){return[{type:e.ElementRef},{type:yr,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n}(dt),mr=new Map,xr=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"],vr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=xr,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdRow],\n [gdRow.xs], [gdRow.sm], [gdRow.md], [gdRow.lg], [gdRow.xl],\n [gdRow.lt-sm], [gdRow.lt-md], [gdRow.lt-lg], [gdRow.lt-xl],\n [gdRow.gt-xs], [gdRow.gt-sm], [gdRow.gt-md], [gdRow.gt-lg]\n",inputs:xr}]}],n}(hr),br=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.buildStyles=function(t,e){t=t||"none";var n=!1;t.endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);var r={display:e.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return r[n?"grid-auto-rows":"grid-template-rows"]=t,r},n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(Ft),wr=function(t){function n(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.elementRef=e,o.styleBuilder=n,o.styler=r,o.marshal=i,o.DIRECTIVE_KEY="grid-rows",o._inline=!1,o.init(),o}return l(n,t),Object.defineProperty(n.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),n.prototype.updateWithValue=function(t){this.styleCache=this.inline?Ir:Ar,this.addStyles(t,{inline:this.inline})},n.ctorParameters=function(){return[{type:e.ElementRef},{type:br,decorators:[{type:e.Optional}]},{type:Lt},{type:Pt}]},n.propDecorators={inline:[{type:e.Input,args:["gdInline"]}]},n}(dt),Ar=new Map,Ir=new Map,Er=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"],Sr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=Er,e}return l(n,t),n.decorators=[{type:e.Directive,args:[{selector:"\n [gdRows],\n [gdRows.xs], [gdRows.sm], [gdRows.md], [gdRows.lg], [gdRows.xl],\n [gdRows.lt-sm], [gdRows.lt-md], [gdRows.lt-lg], [gdRows.lt-xl],\n [gdRows.gt-xs], [gdRows.gt-sm], [gdRows.gt-md], [gdRows.gt-lg]\n",inputs:Er}]}],n}(wr),Cr=[xn,Cn,Ln,Vn,Kn,Zn,nr,lr,fr,vr,Sr],kr=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[nt],declarations:Cr.slice(),exports:Cr.slice()}]}],t}(),jr=new e.Version("8.0.0-beta.26"),Rr=function(){function t(t,e){n.isPlatformServer(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:at,useValue:X({},ot,e)},{provide:lt,useValue:n,multi:!0},{provide:st,useValue:!0}]:[{provide:at,useValue:X({},ot,e)},{provide:lt,useValue:n,multi:!0}]}},t.decorators=[{type:e.NgModule,args:[{imports:[dn,re,kr],exports:[dn,re,kr]}]}],t.ctorParameters=function(){return[{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[st]}]},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t}();t.VERSION=jr,t.FlexLayoutModule=Rr,tMatchMedia=It,tMockMatchMedia=St,tMockMatchMediaProvider=kt,t.CoreModule=nt,t.removeStyles=u,t.BROWSER_PROVIDER=tt,t.CLASS_NAME=et,t.MediaChange=rt,t.StylesheetMap=it,t.DEFAULT_CONFIG=ot,t.LAYOUT_CONFIG=at,t.SERVER_TOKEN=st,t.BREAKPOINT=lt,t.mergeAlias=c,t.BaseDirective2=dt,t.DEFAULT_BREAKPOINTS=pt,t.ScreenTypes=xt,t.ORIENTATION_BREAKPOINTS=vt,t.BreakPointRegistry=At,t.BREAKPOINTS=wt,t.MediaObserver=Dt,t.MediaTrigger=_t,t.sortDescendingPriority=b,t.sortAscendingPriority=w,t.coerceArray=S,t.StyleUtils=Lt,t.StyleBuilder=Ft,t.validateBasis=R,t.MediaMarshaller=Pt,t.BREAKPOINT_PRINT=Rt,t.PrintHook=Ot,t.ExtendedModule=re,t.ClassDirective=Nt,t.LayoutNgClassImplProvider=Ht,t.DefaultClassDirective=Kt,t.ImgSrcStyleBuilder=Bt,t.ImgSrcDirective=Tt,t.DefaultImgSrcDirective=Qt,t.ShowHideStyleBuilder=Ut,t.ShowHideDirective=Yt,t.DefaultShowHideDirective=$t,t.StyleDirective=Jt,t.LayoutNgStyleImplProvider=te,t.DefaultStyleDirective=ee,t.FlexModule=dn,t.FlexStyleBuilder=we,t.FlexDirective=Ie,t.DefaultFlexDirective=Ee,t.FlexAlignStyleBuilder=Ne,t.FlexAlignDirective=He,t.DefaultFlexAlignDirective=Ue,t.FlexFillStyleBuilder=ze,t.FlexFillDirective=qe,t.FlexOffsetStyleBuilder=Le,t.FlexOffsetDirective=Pe,t.DefaultFlexOffsetDirective=Be,t.FlexOrderStyleBuilder=Re,t.FlexOrderDirective=Me,t.DefaultFlexOrderDirective=_e,t.LayoutStyleBuilder=ae,t.LayoutDirective=le,t.DefaultLayoutDirective=ue,t.LayoutAlignStyleBuilder=Ze,t.LayoutAlignDirective=Xe,t.DefaultLayoutAlignDirective=tn,t.LayoutGapStyleBuilder=pe,t.LayoutGapDirective=fe,t.DefaultLayoutGapDirective=ye,tf2=Cn,te2=An,td2=wn,ti2=Ln,th2=On,tg2=Rn,tl2=Vn,tk2=Pn,tj2=Fn,to2=Kn,tn2=Qn,tm2=Gn,tr2=Zn,tq2=Yn,tp2=Un,tu2=nr,tt2=Xn,ts2=Jn,tx2=lr,tw2=ir,tv2=rr,tba2=fr,tz2=cr,ty2=ur,tc2=xn,tb2=yn,ta2=fn,tbd2=vr,tbc2=hr,tbb2=yr,tbg2=Sr,tbf2=wr,tbe2=br,t.GridModule=kr,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=flex-layout.umd.min.js.map