text: webpackJsonp([0],{22:function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=22},24:function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=24},25:function(t,e,n){"use strict";function i(t,e,n){return Math.max(t,Math.min(e,n))}function o(t){return JSON.parse(JSON.stringify(t))}function r(t,e){return t===e||JSON.stringify(t)===JSON.stringify(e)}function s(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=arguments.length-1;i>=1;i--){var o=arguments[i];if(o)for(var r in o)o.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=o[r])}return t}function a(t){return"string"==typeof t}function l(t){return"number"==typeof t}function c(t){return"function"==typeof t}function u(t){return void 0!==t}function p(t){return void 0===t}function d(t){return void 0!==t&&null!==t}function h(t){return void 0===t||null===t}function _(t){return"object"==typeof t}function f(t){return Array.isArray(t)}function b(t){return"string"==typeof t?"true"===(t=t.toLowerCase().trim())||"on"===t||""===t:!!t}function m(t,e){return void 0===t||null===t||""===t?void 0===e||null===e||""===e:!0===t||"true"===t?!0===e||"true"===e:!1===t||"false"===t?!1===e||"false"===e:0===t||"0"===t?0===e||"0"===e:t==e}function g(t,e,n){switch(void 0===n&&(n=!1),t){case"right":return!0;case"left":return!1;case"end":return!e;case"start":return e;default:return n?!e:e}}function v(t,e){var n=t[e.from];return t.splice(e.from,1),t.splice(e.to,0,n),t}function y(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}function O(t,e,n){return!e&&n||t&&e}function j(t){if(!0===tr)return t()}function w(t,e){if(!t&&!0===tr){var n="IONIC ASSERT: "+e;throw console.error(n),new Error(n)}}function S(t){return"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,500)}function C(t,e){var n=new er;n.init(t,e);var i=e.win();return i.Ionic=i.Ionic||{},i.Ionic.config=n,n}function k(t){return!!(t&&t._didLoad&&t._willUnload)}function T(t,e,n){return"function"==typeof e?Promise.resolve(new or(e,n)):"string"==typeof e?t.getComponentFromName(e).then(function(t){var i=new or(t,n);return i.id=e,i}):Promise.resolve(null)}function x(t,e,n){return e?k(e)?Promise.resolve(e):T(t,e,n):Promise.resolve(null)}function E(t,e){var n=[];if(f(e))for(var i=0;i<e.length;i++){var o=e[i];o&&n.push(k(o)?o:o.page?x(t,o.page,o.params):x(t,o,null))}return Promise.all(n)}function P(t,e,n,i,o){if(e){if(t._isPortal)return i===_r&&e._setZIndex(t._zIndexOffset+ar,o),void ar++;(n=n||t.getPrevious(e))&&d(n._zIndex)?i===hr?e._setZIndex(n._zIndex-1,o):e._setZIndex(n._zIndex+1,o):e._setZIndex(dr+t._zIndexOffset,o)}}function I(t){return!!t&&!!t.getSelected}function D(t){return!!t&&d(t._tabId)}function A(t){return!!t&&!!t.push&&"nav"===t.getType()}function N(t){var e,n={},i=["webkitTransform","-webkit-transform","webkit-transform","transform"];for(e=0;e<i.length;e++)if(void 0!==t.style[i[e]]){n.transform=i[e];break}for(i=["webkitTransition","transition"],e=0;e<i.length;e++)if(void 0!==t.style[i[e]]){n.transition=i[e];break}var o=n.transition.indexOf("webkit")>-1;return n.transitionDuration=(o?"-webkit-":"")+"transition-duration",n.transitionTimingFn=(o?"-webkit-":"")+"transition-timing-function",n.transitionDelay=(o?"-webkit-":"")+"transition-delay",n.transitionEnd=(o?"webkitTransitionEnd ":"")+"transitionend",n.transformOrigin=(o?"-webkit-":"")+"transform-origin",n.animationDelay=o?"webkitAnimationDelay":"animationDelay",n}function B(t){if(t){var e=t.changedTouches;if(e&&e.length>0){var n=e[0];return{x:n.clientX,y:n.clientY}}var i=t.pageX;if(void 0!==i)return{x:i,y:t.pageY}}return{x:0,y:0}}function L(t,e,n){if(e&&n){var i=e.x-n.x,o=e.y-n.y;return i*i+o*o>t*t}return!1}function z(t){return!!t&&("TEXTAREA"===t.tagName||"true"===t.contentEditable||"INPUT"===t.tagName&&!mr.test(t.type))}function M(t,e){for(var n=t.attributes,i=0;i<n.length;i++){var o=n[i];-1===gr.indexOf(o.name)&&e.setAttribute(o.name,o.value)}}function R(t,e){var n=e.superset();if(n){var i=new Or(t,n);i.parent=e.parent,i.child=e,i.parent&&(i.parent.child=i),e.parent=i}}function F(t,e,n){var i=new yr;i.setDefault("core"),i.setPlatformConfigs(e),i.setZone(n);var o=t.documentElement;i.setDocument(t);var r=o.dir;i.setDir("rtl"===r?"rtl":"ltr",!r),i.setLang(o.lang,!1),i.setCssProps(o);var s=t.defaultView;return i.setWindow(s),i.setNavigatorPlatform(s.navigator.platform),i.setUserAgent(s.navigator.userAgent),i.setQueryParams(s.location.href),i.init(),s.Ionic=s.Ionic||{},s.Ionic.platform=i,i}function H(t,e){if(t.id===e||t.name===e)return t;for(var n=0,i=t.getAllChildNavs();n<i.length;n++){var o=H(i[n],e);if(o)return o}return null}function V(t){if(!t)return null;if(I(t))return V(t.parent);var e=t.length();return e>1||t._isPortal&&e>0?t:V(t.parent)}function W(t){var e=[],n=t.getActiveChildNavs();return n&&n.length?n.forEach(function(t){var n=W(t);e=e.concat(n)}):e.push(t),e}function q(t){for(t=(t=t.replace(Kr,"-")).charAt(0).toLowerCase()+t.substring(1).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});t.indexOf("--")>-1;)t=t.replace("--","-");return"-"===t.charAt(0)&&(t=t.substring(1)),"-"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),encodeURIComponent(t)}function Y(t,e){return t.segmentPartsLen>e.segmentPartsLen?-1:t.segmentPartsLen<e.segmentPartsLen?1:t.staticLen>e.staticLen?-1:t.staticLen<e.staticLen?1:t.dataLen<e.dataLen?-1:t.dataLen>e.dataLen?1:0}function G(t,e){return new Gr(t,e)}function X(t){return t.map(function(t){var e=t.split("/");return"nav"===e[0]?{type:"nav",navId:e[1],niceId:e[1],secondaryId:null,segmentPieces:e.splice(2)}:"tabs"===e[0]?{type:"tabs",navId:e[1],niceId:e[1],secondaryId:e[2],segmentPieces:e.splice(3)}:{type:null,navId:null,niceId:null,secondaryId:null,segmentPieces:e}})}function U(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++)0===i||"nav"!==e[i]&&"tabs"!==e[i]||n.push(i);n.push(e.length);for(var o=[],r=0,s=[],i=0;i<e.length;i++)i>=n[r]&&(o.push(s.join("/")),s=[],r++),s.push(e[i]);return o.push(s.join("/")),o}function Z(t,e,n){return K(t,$(e,n))}function $(t,e){return J(X(U(t)),e)}function K(t,e){for(var n=[],i=0;i<e.length;i++)for(var o=Q(e[i].navGroup,t),r=0,s=e[i].segments;r<s.length;r++){var a=s[r];if(1===o.length)n.push(et(a,o[0])),o=o[0].getActiveChildNavs();else{if(!(o.length>1))break;for(var l=et(a,o[o.length-1]),c=0,u=o;c<u.length;c++){var p=u[c];if(p===o[o.length-1])break;if(I(p)&&p.getActiveChildNavs().length&&p.getActiveChildNavs()[0].getActive().component===l.component){l=null;break}}l&&(n.push(l),o=o[o.length-1].getActiveChildNavs())}}return n}function Q(t,e){if(t.navId){var n=e.getNavByIdOrName(t.navId);return n?[n]:[]}return e.getRootNavs()}function J(t,e){for(var n=[],i=new Set,o=0,r=t;o<r.length;o++){for(var s=r[o],a=[],l=s.segmentPieces.concat([]),c=l.length;c>=0;c--){for(var u=!1,p=0;p<c;p++){for(var d=c-p-1,h=c,_=l.slice(d,h),f=0,b=e;f<b.length;f++){var m=b[f];if(!i.has(m.name)){var g=tt(_,m);if(g){c=d+1,i.add(m.name),u=!0,a.push(g);for(var v=d;v<h;v++)l[v]=null;break}}}if(u)break}!u&&l[c-1]&&a.push({id:null,name:null,secondaryId:l[c-1],component:null,loadChildren:null,data:null,defaultHistory:null})}for(var y=a.reverse(),c=0;c<y.length;c++)y[c].secondaryId&&!y[c].id&&c+1<=y.length-1&&(y[c+1].secondaryId=y[c].secondaryId,y[c]=null);var O=a.filter(function(t){return!!t});s.secondaryId&&a.length&&(O[0].secondaryId=s.secondaryId),n.push({navGroup:s,segments:O})}return n}function tt(t,e){if(e.segmentPartsLen!==t.length)return null;for(var n=0;n<t.length;n++)if(!Xr(t[n],e.segmentParts[n]))return null;return{id:t.join("/"),name:e.name,component:e.component,loadChildren:e.loadChildren,data:Ur(t,e),defaultHistory:e.defaultHistory}}function et(t,e){var n=Object.assign({},t);return n.type=e.getType(),n.navId=e.name||e.id,n.secondaryId=t.secondaryId,n}function nt(t,e,n,i,o){var r=new Jr(t,e,n,i,o);return r.init(),r}function it(t){return"/"!==(t=t.trim()).charAt(0)&&(t="/"+t),t.length>1&&"/"===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),t}function ot(t,e){for(;t;){if(t.id===e||t.name===e)return t;t=t.parent}return null}function rt(t,e,n){for(var i;i=e.shift();)i(t);for(;i=n.shift();)i(t)}function st(t,e){e&&(t.setElementClass("ng-untouched",e.untouched),t.setElementClass("ng-touched",e.touched),t.setElementClass("ng-pristine",e.pristine),t.setElementClass("ng-dirty",e.dirty),t.setElementClass("ng-valid",e.valid),t.setElementClass("ng-invalid",!e.valid))}function at(t,e,n,i,o,r){for(var s,a=e+n,l=[],c=[],u=0,p=t.length;u<p;u++){if(s=t[u],"up"===i){if(s.top<a&&s.bottom>e-r){s.canRequest=s.canRender=!0,l.push(s);continue}if(s.bottom<=e&&s.bottom>e-o){s.canRequest=!0,s.canRender=!1,c.push(s);continue}if(s.top>=a&&s.top<a+r){s.canRequest=s.canRender=!1;continue}}else{if(s.bottom>e&&s.top<a+r){s.canRequest=s.canRender=!0,l.push(s);continue}if(s.top>=a&&s.top<a+o){s.canRequest=!0,s.canRender=!1,c.push(s);continue}if(s.bottom<=e&&s.bottom>e-r){s.canRequest=s.canRender=!1;continue}}s.canRequest=s.canRender=!1,s.reset()}l.sort(lt).forEach(function(t){return t.update()}),"up"===i?c.sort(lt).reverse().forEach(function(t){return t.update()}):c.sort(lt).forEach(function(t){return t.update()})}function lt(t,e){return t.top<e.top?-1:t.top>e.top?1:0}function ct(t){return t.indexOf("px")>0?parseInt(t,10):0}function ut(t){return t>0?t+"px":""}function pt(t){return t.$ionIndex}function dt(t,e){for(var n=0;t&&n<4;){if(void 0!==pt(t))return e&&t.parentNode!==e?null:t;t=t.parentNode,n++}return null}function ht(t,e,n){if(h(e))return"";var i=[],o=!1;if(Ju.forEach(function(r,s){if(t.indexOf(r.f)>-1){var a="{"+s+"}",l=_t(r.f,e[r.k],e,n);!o&&l&&d(e[r.k])&&(o=!0),i.push(a,l),t=t.replace(r.f,a)}}),!o)return"";for(var r=0;r<i.length;r+=2)t=t.replace(i[r],i[r+1]);return t}function _t(t,e,n,i){if(t===Ru||t===Fu){try{return e=new Date(n.year,n.month-1,n.day).getDay(),t===Ru?(d(i.dayNames)?i.dayNames:tp)[e]:(d(i.dayShortNames)?i.dayShortNames:ep)[e]}catch(t){}return""}if(t===Ku)return n?n.hour<12?"AM":"PM":d(e)?e.toUpperCase():"";if(t===Qu)return n?n.hour<12?"am":"pm":d(e)?e:"";if(h(e))return"";if(t===Nu||t===zu||t===Hu||t===Wu||t===Xu||t===Zu)return Tt(e);if(t===Au)return Et(e);if(t===Bu)return(d(i.monthNames)?i.monthNames:np)[e-1];if(t===Lu)return(d(i.monthShortNames)?i.monthShortNames:ip)[e-1];if(t===Yu||t===Gu){if(0===e)return"12";if(e>12&&(e-=12),t===Yu&&e<10)return"0"+e}return e.toString()}function ft(t,e,n){var i,o=[];if(t===Au||t===Nu)for(i=n.year;i>=e.year;)o.push(i--);else if(t===Bu||t===Lu||t===zu||t===Mu||t===Yu||t===Gu)for(i=1;i<13;i++)o.push(i);else if(t===Ru||t===Fu||t===Hu||t===Vu)for(i=1;i<32;i++)o.push(i);else if(t===Wu||t===qu)for(i=0;i<24;i++)o.push(i);else if(t===Xu||t===Uu)for(i=0;i<60;i++)o.push(i);else if(t===Zu||t===$u)for(i=0;i<60;i++)o.push(i);else t!==Ku&&t!==Qu||o.push("am","pm");return o}function bt(t,e,n,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),parseInt("1"+Et(t)+Tt(e)+Tt(n)+Tt(i)+Tt(o),10)}function mt(t){return t?bt(t.year,t.month,t.day,t.hour,t.minute):-1}function gt(t,e){return 4===t||6===t||9===t||11===t?30:2===t?vt(e)?29:28:31}function vt(t){return t%4==0&&t%100!=0||t%400==0}function yt(t){var e;if(d(t)&&""!==t&&(d(e=Du.exec(t))?(e.unshift(void 0,void 0),e[2]=e[3]=void 0):e=Iu.exec(t)),h(e))return null;for(var n=1;n<8;n++)e[n]=void 0!==e[n]?parseInt(e[n],10):null;var i=0;return d(e[9])&&d(e[10])&&(i=60*parseInt(e[10],10),d(e[11])&&(i+=parseInt(e[11],10)),"-"===e[9]&&(i*=-1)),{year:e[1],month:e[2],day:e[3],hour:e[4],minute:e[5],second:e[6],millisecond:e[7],tzOffset:i}}function Ot(t,e){var n=new Date(t.year,t.month,t.day,t.hour,t.minute,t.second),i=new Date(e.year,e.month,e.day,e.hour,e.minute,e.second);return n.getTime()-i.getTime()}function jt(t,e){if(d(e)&&""!==e){if(a(e)){if(e=yt(e))return Object.assign(t,e),!0}else if(d(e.year)||d(e.hour)||d(e.month)||d(e.day)||d(e.minute)||d(e.second)){d(e.ampm)&&d(e.hour)&&(e.hour.value="pm"===e.ampm.value?12===e.hour.value?12:e.hour.value+12:12===e.hour.value?0:e.hour.value);for(var n in e)t[n]=e[n].value;return!0}console.warn('Error parsing date: "'+e+'". Please provide a valid ISO 8601 datetime format: https://www.w3.org/TR/NOTE-datetime')}else for(var n in t)delete t[n];return!1}function wt(t){var e=[];t=t.replace(/[^\w\s]/gi," "),Ju.forEach(function(e){e.f.length>1&&t.indexOf(e.f)>-1&&t.indexOf(e.f+e.f.charAt(0))<0&&(t=t.replace(e.f," "+e.f+" "))});var n=t.split(" ").filter(function(t){return t.length>0});return n.forEach(function(t,i){Ju.forEach(function(o){if(t===o.f){if((t===Ku||t===Qu)&&(e.indexOf(Gu)<0&&e.indexOf(Yu)<0||-1===op.indexOf(n[i-1])))return;e.push(t)}})}),e}function St(t,e){return e===Ku||e===Qu?t.hour<12?"am":"pm":e===Yu||e===Gu?t.hour>12?t.hour-12:t.hour:t[Ct(e)]}function Ct(t){for(var e in Ju)if(Ju[e].f===t)return Ju[e].k;return null}function kt(t){var e="";return d(t)&&(d(t.year)?(e=Et(t.year),d(t.month)&&(e+="-"+Tt(t.month),d(t.day)&&(e+="-"+Tt(t.day),d(t.hour)&&(e+="T"+Tt(t.hour)+":"+Tt(t.minute)+":"+Tt(t.second),t.millisecond>0&&(e+="."+xt(t.millisecond)),h(t.tzOffset)||0===t.tzOffset?e+="Z":e+=(t.tzOffset>0?"+":"-")+Tt(Math.floor(t.tzOffset/60))+":"+Tt(t.tzOffset%60))))):d(t.hour)&&(e=Tt(t.hour)+":"+Tt(t.minute),d(t.second)&&(e+=":"+Tt(t.second),d(t.millisecond)&&(e+="."+xt(t.millisecond))))),e}function Tt(t){return("0"+(d(t)?Math.abs(t):"0")).slice(-2)}function xt(t){return("00"+(d(t)?Math.abs(t):"0")).slice(-3)}function Et(t){return("000"+(d(t)?Math.abs(t):"0")).slice(-4)}function Pt(t,e){a(t)&&(t=t.replace(/\[|\]|\s/g,"").split(","));var n;return f(t)&&(n=t.map(function(t){return parseInt(t,10)}).filter(isFinite)),n&&n.length||console.warn('Invalid "'+e+'Values". Must be an array of numbers, or a comma separated string of numbers.'),n}function It(t,e){if(d(t)){a(t)&&(t=t.replace(/\[|\]/g,"").split(","));var n;return f(t)&&(n=t.map(function(t){return t.trim()})),n&&n.length||console.warn('Invalid "'+e+'Names". Must be an array of strings, or a comma separated string.'),n}}function Dt(t){if(d(t))if("string"==typeof t){if(t.indexOf("%")>-1||t.indexOf("px")>-1)return t;if(t.length)return t+"px"}else if("number"==typeof t)return t+"px";return""}function At(){return{scrollAmount:0,scrollTo:0,scrollPadding:0,scrollDuration:0,inputSafeY:0}}function Nt(t,e,n,i,o){var r=t+n.contentTop-n.scrollTop,s=r+e,a=n.contentTop,l=(o-i-a)/2,c=a+l,u=r>=a&&r<=c,p=r<a,d=r>c,h=s>=a&&s<=c,_=s>c,f=At();if(u&&h)return f;(d||_||p)&&(f.scrollAmount=l>e?Math.round(c-s):Math.round(a-r),f.inputSafeY=4-(r-a),p&&f.scrollAmount>e&&(f.scrollAmount=e)),f.scrollTo=n.scrollTop-f.scrollAmount,f.scrollPadding=i;var b=Math.abs(f.scrollAmount)/dd;return f.scrollDuration=Math.min(400,Math.max(150,b)),f}function Bt(t,e,n){if(w(null===e.parentElement.querySelector(".cloned-input"),"leaked cloned input"),e){var i=e.offsetTop,o=e.offsetLeft,r=e.offsetWidth,s=e.offsetHeight,a=e.cloneNode(!1),l=a.style;a.classList.add("cloned-input"),a.setAttribute("aria-hidden","true"),l.pointerEvents="none",l.position="absolute",l.top=i+"px",l.left=o+"px",l.width=r+"px",l.height=s+"px";var c=n.cloneNode(!1);c.value=n.value,c.tabIndex=-1,a.appendChild(c),e.parentNode.appendChild(a),e.style.pointerEvents="none"}n.style[t.Css.transform]="scale(0)"}function Lt(t,e,n){if(e&&e.parentElement){for(var i=e.parentElement.querySelectorAll(".cloned-input"),o=0;o<i.length;o++)i[o].parentNode.removeChild(i[o]);e.style.pointerEvents=""}n.style[t.Css.transform]="",n.style.opacity=""}function zt(t){var e=t.target.closest("ion-item-sliding");return e?e.$ionComponent:null}function Mt(t){return!!t.target.closest("ion-item-options>button")}function Rt(t,e,i){return i||(i="default"),n(24)(e).then(function(n){var o=n[i];if(!o)throw new Error("Module "+e+" does not export "+i);return t.compileModuleAsync(o)})}function Ft(t,e){return n(24)(t).then(function(n){var i=n[e];if(!i)throw new Error("Module "+t+" does not export "+e);return i})}function Ht(t,e){return new M_(t,e)}function Vt(t,e,n){if(!e||!e.links||!t.getBoolean("preloadModules"))return Promise.resolve();var i=e.links.filter(function(t){return!!t.loadChildren&&"off"!==t.priority}),o=i.filter(function(t){return"high"===t.priority}).map(function(t){return n.load(t.loadChildren)});return Promise.all(o).then(function(){var t=i.filter(function(t){return"low"===t.priority}).map(function(t){return n.load(t.loadChildren)});return Promise.all(t)}).catch(function(t){console.error(t.message)})}function Wt(t,e,n,i){return function(){S(function(){i.runOutsideAngular(function(){Vt(t,e,n)})})}}function qt(t){return Math.floor(t)}function Yt(t,e){if(t)if(t.length)for(var n=0;n<t.length;n++)Yt(t[n],e);else if(t.nodeType)for(var i=Object.keys(e),o=0;o<i.length;o++)t.style[i[o]]=e[i[o]]}function Gt(t,e){if(t)if(t.length)for(var n=0;n<t.length;n++)Gt(t[n],e);else t.nodeType&&(Array.isArray(e)?e.forEach(function(e){t.classList.add(e)}):t.classList.add(e))}function Xt(t,e){if(t)if(t.length)for(var n=0;n<t.length;n++)Xt(t[n],e);else t.nodeType&&(Array.isArray(e)?e.forEach(function(e){t.classList.remove(e)}):t.classList.remove(e))}function Ut(t){var e=0;if(t)for(;null!==(t=t.previousSibling);)1===t.nodeType&&e++;return e}function Zt(t,e){return t?t.querySelectorAll(e):[]}function $t(t,e,n){if(t)for(var i=t.querySelectorAll(e),o=0;o<i.length;o++)n(i[o])}function Kt(t,e){if(t){var n=t.style;n.webkitTransform=n.MsTransform=n.msTransform=n.transform=e}}function Qt(t,e){if(t){"string"!=typeof e&&(e+="ms");var n=t.style;n.webkitTransitionDuration=n.MsTransitionDuration=n.msTransitionDuration=n.transitionDuration=e}}function Jt(t,e){try{var n=new(t.win().CustomEvent)("transitionend",{bubbles:!0,cancelable:!0});e.dispatchEvent(n)}catch(t){}}function te(t,e){if(t){var n=e.getElementBoundingClientRect(t),i=e.doc().body,o=e.win(),r=t.clientTop||i.clientTop||0,s=t.clientLeft||i.clientLeft||0,a=o.pageYOffset||t.scrollTop,l=o.pageXOffset||t.scrollLeft;return{top:n.top+a-r,left:n.left+l-s}}return null}function ee(t){for(var e=0;e<t._slides.length;e++)t._slides[e].swiperSlideOffset=ne(t)?t._slides[e].offsetLeft:t._slides[e].offsetTop}function ne(t){return"horizontal"===t.direction}function ie(t){return!!t&&$m.indexOf(t.tagName)>-1}function oe(t){return-t._snapGrid[0]}function re(t){return-t._snapGrid[t._snapGrid.length-1]}function se(t,e,n){var i,o,r,s=t._rtl?-1:1;i=e.getAttribute("data-swiper-parallax")||"0",o=e.getAttribute("data-swiper-parallax-x"),r=e.getAttribute("data-swiper-parallax-y"),o||r?(o=o||"0",r=r||"0"):ne(t)?(o=i,r="0"):(r=i,o="0"),Kt(e,"translate3d("+(o=o.indexOf("%")>=0?parseInt(o,10)*n*s+"%":o*n*s+"px")+", "+(r=r.indexOf("%")>=0?parseInt(r,10)*n+"%":r*n+"px")+",0px)")}function ae(t){$t(t.container,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]",function(e){se(t,e,t.progress)});for(var e=0;e<t._slides.length;e++){var n=t._slides[e];$t(n,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]",function(){var e=Math.min(Math.max(n.progress,-1),1);se(t,n,e)})}}function le(t,e){void 0===e&&(e=t.speed),$t(t.container,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]",function(t){var n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),Qt(t,n)})}function ce(t,e){void 0===e&&(e=t._translate||0);var n=re(t)-oe(t),i=t._isBeginning,o=t._isEnd;0===n?(t.progress=0,t._isBeginning=t._isEnd=!0):(t.progress=(e-oe(t))/n,t._isBeginning=t.progress<=0,t._isEnd=t.progress>=1),t._zone.run(function(){t._isBeginning&&!i&&t.ionSlideReachStart.emit(),t._isEnd&&!o&&t.ionSlideReachEnd.emit(),t.watchSlidesProgress&&ue(t,e),t.ionSlideProgress.emit(t.progress)})}function ue(t,e){if(void 0===e&&(e=t._translate||0),0!==t._slides.length){void 0===t._slides[0].swiperSlideOffset&&ee(t);var n=-e;t._rtl&&(n=e),Xt(t._slides,Km.slideVisible);for(var i=0;i<t._slides.length;i++){var o=t._slides[i],r=(n+(t.centeredSlides?oe(t):0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility){var s=-(n-o.swiperSlideOffset),a=s+t._slidesSizesGrid[i];(s>=0&&s<t._renderedSize||a>0&&a<=t._renderedSize||s<=0&&a>=t._renderedSize)&&t._slides[i].classList.add(Km.slideVisible)}o.progress=t._rtl?-r:r}}}function pe(t,e){e?t.setAttribute("aria-disabled","true"):t.hasAttribute("aria-disabled")&&t.removeAttribute("aria-disabled")}function de(t,e){e?t.setAttribute("aria-hidden","true"):t.hasAttribute("aria-hidden")&&t.removeAttribute("aria-hidden")}function he(t){if(t.paginationType&&t._paginationContainer){var e="";if("bullets"===t.paginationType)for(var n=t.loop?Math.ceil((t._slides.length-2*t.loopedSlides)/t.slidesPerGroup):t._snapGrid.length,i=0;i<n;i++)e+=t.paginationBulletRender?t.paginationBulletRender(i,Km.bullet):'<button class="'+Km.bullet+'" aria-label="Go to slide '+(i+1)+'" data-slide-index="'+i+'"></button>';else"fraction"===t.paginationType?e='<span class="'+Km.paginationCurrent+'"></span> / <span class="'+Km.paginationTotal+'"></span>':"progress"===t.paginationType&&(e='<span class="'+Km.paginationProgressbar+'"></span>');t._paginationContainer.innerHTML=e,t._bullets=t._paginationContainer.querySelectorAll("."+Km.bullet)}}function _e(t){var e,n=t.loop?Math.ceil((t._slides.length-2*t.loopedSlides)/t.slidesPerGroup):t._snapGrid.length;if(t.loop?((e=Math.ceil((t._activeIndex-t.loopedSlides)/t.slidesPerGroup))>t._slides.length-1-2*t.loopedSlides&&(e-=t._slides.length-2*t.loopedSlides),e>n-1&&(e-=n),e<0&&"bullets"!==t.paginationType&&(e=n+e)):e=void 0!==t._snapIndex?t._snapIndex:t._activeIndex||0,"bullets"===t.paginationType&&t._bullets)for(var i=e+(e<0?t._bullets.length:0),o=0;o<t._bullets.length;o++)o===i?Gt(t._bullets[o],Km.bulletActive):Xt(t._bullets[o],Km.bulletActive);if("fraction"===t.paginationType&&($t(t._paginationContainer,"."+Km.paginationCurrent,function(t){t.textContent=e+1}),$t(t._paginationContainer,"."+Km.paginationTotal,function(t){t.textContent=n})),"progress"===t.paginationType){var r=(e+1)/n,s=r,a=1;ne(t)||(a=r,s=1),$t(t._paginationContainer,"."+Km.paginationProgressbar,function(e){Kt(e,"translate3d(0,0,0) scaleX("+s+") scaleY("+a+")"),Qt(e,t.speed)})}}function fe(t){Xt(t._slides,[Km.slideActive,Km.slideNext,Km.slidePrev,Km.slideDuplicateActive,Km.slideDuplicateNext,Km.slideDuplicatePrev]);for(var e=0;e<t._slides.length;e++)de(t._slides[e],!0);var n=t._slides[t._activeIndex];if(n){Gt(n,Km.slideActive),de(n,!1),t.loop&&Gt(n.classList.contains(Km.slideDuplicate)?Zt(t._wrapper,"."+Km.slide+":not(."+Km.slideDuplicate+')[data-swiper-slide-index="'+t.realIndex+'"]'):Zt(t._wrapper,"."+Km.slide+"."+Km.slideDuplicate+'[data-swiper-slide-index="'+t.realIndex+'"]'),Km.slideDuplicateActive);var i=n.nextElementSibling;t.loop&&!i&&(i=t._slides[0]),i&&i.classList.add(Km.slideNext);var o=n.previousElementSibling;t.loop&&!o&&(o=t._slides[t._slides.length-1]),o&&o.classList.add(Km.slidePrev),t.loop&&(Gt(i.classList.contains(Km.slideDuplicate)?Zt(t._wrapper,"."+Km.slide+":not(."+Km.slideDuplicate+')[data-swiper-slide-index="'+i.getAttribute("data-swiper-slide-index")+'"]'):Zt(t._wrapper,"."+Km.slide+"."+Km.slideDuplicate+'[data-swiper-slide-index="'+i.getAttribute("data-swiper-slide-index")+'"]'),Km.slideDuplicateNext),Gt(o.classList.contains(Km.slideDuplicate)?Zt(t._wrapper,"."+Km.slide+":not(."+Km.slideDuplicate+')[data-swiper-slide-index="'+o.getAttribute("data-swiper-slide-index")+'"]'):Zt(t._wrapper,"."+Km.slide+"."+Km.slideDuplicate+'[data-swiper-slide-index="'+o.getAttribute("data-swiper-slide-index")+'"]'),Km.slideDuplicatePrev)),t._paginationContainer&&_e(t),t.loop||(t.prevButton&&(t._isBeginning?(t.prevButton.classList.add(Km.buttonDisabled),pe(t.prevButton,!0)):(t.prevButton.classList.remove(Km.buttonDisabled),pe(t.prevButton,!1))),t.nextButton&&(t._isEnd?(t.nextButton.classList.add(Km.buttonDisabled),pe(t.nextButton,!0)):(t.nextButton.classList.remove(Km.buttonDisabled),pe(t.nextButton,!1))))}}function be(t){var e,n,i,o=t._rtl?t._translate:-t._translate;for(n=0;n<t._slidesGrid.length;n++)void 0!==t._slidesGrid[n+1]?o>=t._slidesGrid[n]&&o<t._slidesGrid[n+1]-(t._slidesGrid[n+1]-t._slidesGrid[n])/2?e=n:o>=t._slidesGrid[n]&&o<t._slidesGrid[n+1]&&(e=n+1):o>=t._slidesGrid[n]&&(e=n);(i=Math.floor(e/t.slidesPerGroup))>=t._snapGrid.length&&(i=t._snapGrid.length-1),e!==t._activeIndex&&(t._snapIndex=i,t._previousIndex=t._activeIndex,t._activeIndex=e,fe(t),me(t))}function me(t){var e=t._slides[t._activeIndex];e&&(t.realIndex=parseInt(e.getAttribute("data-swiper-slide-index")||t._activeIndex,10))}function ge(t){var e=t.win();return!!(e.cordova||e.PhoneGap||e.phonegap)}function ve(t){return t.testUserAgent("Electron")}function ye(t){return t.testNavigatorPlatform("iphone|ipad|ipod")}function Oe(t){return t.testUserAgent("Safari")}function je(t){return ye(t)&&!!t.win().webkit}function we(t){return ye(t)&&!je(t)&&!Oe(t)}function Se(t,e,n,i,o){var r=0,s=0;ne(t)?r=t._rtl?-n:n:s=n,t.roundLengths&&(r=qt(r),s=qt(s)),t.virtualTranslate||Kt(t._wrapper,"translate3d("+r+"px, "+s+"px, 0px)"),t._translate=ne(t)?r:s;var a=re(t)-oe(t);(0===a?0:(n-oe(t))/a)!==t.progress&&ce(t,n),i&&be(t),"slide"!==t.effect&&Jm[t.effect]&&Jm[t.effect].setTranslate(t,e),t.parallax&&ae(t),t.control&&Qm.setTranslate(t,e,t._translate,o,Se)}function Ce(t,e,n,i){var o,r,s,a,l=e.win();return void 0===i&&(i="x"),t.virtualTranslate?t._rtl?-t._translate:t._translate:(s=e.getElementComputedStyle(n),l.WebKitCSSMatrix?((r=s.transform||s.webkitTransform).split(",").length>6&&(r=r.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),a=new l.WebKitCSSMatrix("none"===r?"":r)):o=(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(r=l.WebKitCSSMatrix?a.m41:16===o.length?parseFloat(o[12]):parseFloat(o[4])),"y"===i&&(r=l.WebKitCSSMatrix?a.m42:16===o.length?parseFloat(o[13]):parseFloat(o[5])),t._rtl&&r&&(r=-r),r||0)}function ke(t,e,n){return void 0===n&&(n=ne(t)?"x":"y"),Ce(t,e,t._wrapper,n)}function Te(t,e,n,i){Qt(t._wrapper,n),"slide"!==t.effect&&Jm[t.effect]&&Jm[t.effect].setTransition(t,e,n),t.parallax&&le(t,n),t.control&&Qm.setTransition(t,e,n,i,Te)}function xe(t,e){return t._supportGestures="ongesturestart"in e.win(),t._zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:t.zoomMax},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},unRegs:[]},Me(t,e),function(){Re(t)}}function Ee(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,i=t.targetTouches[1].pageX,o=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-e,2)+Math.pow(o-n,2))}function Pe(t,e,n){var i=t._zoom;if(t.originalEvent=n,!t._supportGestures){if("touchstart"!==n.type||"touchstart"===n.type&&n.targetTouches.length<2)return;i.gesture.scaleStart=Ee(n)}if(!i.gesture.slide&&(n.currentTarget&&n.currentTarget.classList.contains(Km.slide)&&(i.gesture.slide=n.currentTarget),i.gesture.slide||(i.gesture.slide=t._slides[t._activeIndex]),i.gesture.image=i.gesture.slide.querySelector("img, svg, canvas, ion-img"),i.gesture.image)){if(i.gesture.imageWrap=i.gesture.image.closest("."+Km.zoomContainer),!i.gesture.imageWrap)return void(i.gesture.image=void 0);i.gesture.zoomMax=parseInt(i.gesture.imageWrap.getAttribute("data-swiper-zoom")||t.zoomMax,10)}Qt(i.gesture.image,0),i.isScaling=!0}function Ie(t,e,n){var i=t._zoom;if(t.originalEvent=n,!t._supportGestures){if("touchmove"!==n.type||"touchmove"===n.type&&n.targetTouches.length<2)return;i.gesture.scaleMove=Ee(n)}i.gesture.image&&(i.scale=t._supportGestures?n.scale*i.currentScale:i.gesture.scaleMove/i.gesture.scaleStart*i.currentScale,i.scale>i.gesture.zoomMax&&(i.scale=i.gesture.zoomMax-1+Math.pow(i.scale-i.gesture.zoomMax+1,.5)),i.scale<t.zoomMin&&(i.scale=t.zoomMin+1-Math.pow(t.zoomMin-i.scale+1,.5)),Kt(i.gesture.image,"translate3d(0,0,0) scale("+i.scale+")"))}function De(t,e,n){var i=t._zoom;t.originalEvent=n,!t._supportGestures&&("touchend"!==n.type||"touchend"===n.type&&n.changedTouches.length<2)||i.gesture.image&&(i.scale=Math.max(Math.min(i.scale,i.gesture.zoomMax),t.zoomMin),Qt(i.gesture.image,t.speed),Kt(i.gesture.image,"translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(i.gesture.slide=void 0))}function Ae(t,e,n){var i=t._zoom;t.originalEvent=n,i.gesture.image&&!i.image.isTouched&&(e.is("android")&&n.preventDefault(),i.image.isTouched=!0,i.image.touchesStart.x="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,i.image.touchesStart.y="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY)}function Ne(t,e,n){var i=t._zoom;if(t.originalEvent=n,i.gesture.image&&(t._allowClick=!1,i.image.isTouched&&i.gesture.slide)){i.image.isMoved||(i.image.width=i.gesture.image.offsetWidth,i.image.height=i.gesture.image.offsetHeight,i.image.startX=Ce(t,e,i.gesture.imageWrap,"x")||0,i.image.startY=Ce(t,e,i.gesture.imageWrap,"y")||0,i.gesture.slideWidth=i.gesture.slide.offsetWidth,i.gesture.slideHeight=i.gesture.slide.offsetHeight,Qt(i.gesture.imageWrap,0),t._rtl&&(i.image.startX=-i.image.startX,i.image.startY=-i.image.startY));var o=i.image.width*i.scale,r=i.image.height*i.scale;if(!(o<i.gesture.slideWidth&&r<i.gesture.slideHeight)){if(i.image.minX=Math.min(i.gesture.slideWidth/2-o/2,0),i.image.maxX=-i.image.minX,i.image.minY=Math.min(i.gesture.slideHeight/2-r/2,0),i.image.maxY=-i.image.minY,i.image.touchesCurrent.x="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,i.image.touchesCurrent.y="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY,!i.image.isMoved&&!i.isScaling){if(ne(t)&&Math.floor(i.image.minX)===Math.floor(i.image.startX)&&i.image.touchesCurrent.x<i.image.touchesStart.x||Math.floor(i.image.maxX)===Math.floor(i.image.startX)&&i.image.touchesCurrent.x>i.image.touchesStart.x)return void(i.image.isTouched=!1);if(!ne(t)&&Math.floor(i.image.minY)===Math.floor(i.image.startY)&&i.image.touchesCurrent.y<i.image.touchesStart.y||Math.floor(i.image.maxY)===Math.floor(i.image.startY)&&i.image.touchesCurrent.y>i.image.touchesStart.y)return void(i.image.isTouched=!1)}n.preventDefault(),n.stopPropagation(),i.image.isMoved=!0,i.image.currentX=i.image.touchesCurrent.x-i.image.touchesStart.x+i.image.startX,i.image.currentY=i.image.touchesCurrent.y-i.image.touchesStart.y+i.image.startY,i.image.currentX<i.image.minX&&(i.image.currentX=i.image.minX+1-Math.pow(i.image.minX-i.image.currentX+1,.8)),i.image.currentX>i.image.maxX&&(i.image.currentX=i.image.maxX-1+Math.pow(i.image.currentX-i.image.maxX+1,.8)),i.image.currentY<i.image.minY&&(i.image.currentY=i.image.minY+1-Math.pow(i.image.minY-i.image.currentY+1,.8)),i.image.currentY>i.image.maxY&&(i.image.currentY=i.image.maxY-1+Math.pow(i.image.currentY-i.image.maxY+1,.8)),i.velocity.prevPositionX||(i.velocity.prevPositionX=i.image.touchesCurrent.x),i.velocity.prevPositionY||(i.velocity.prevPositionY=i.image.touchesCurrent.y),i.velocity.prevTime||(i.velocity.prevTime=Date.now()),i.velocity.x=(i.image.touchesCurrent.x-i.velocity.prevPositionX)/(Date.now()-i.velocity.prevTime)/2,i.velocity.y=(i.image.touchesCurrent.y-i.velocity.prevPositionY)/(Date.now()-i.velocity.prevTime)/2,Math.abs(i.image.touchesCurrent.x-i.velocity.prevPositionX)<2&&(i.velocity.x=0),Math.abs(i.image.touchesCurrent.y-i.velocity.prevPositionY)<2&&(i.velocity.y=0),i.velocity.prevPositionX=i.image.touchesCurrent.x,i.velocity.prevPositionY=i.image.touchesCurrent.y,i.velocity.prevTime=Date.now(),Kt(i.gesture.imageWrap,"translate3d("+i.image.currentX+"px, "+i.image.currentY+"px,0)")}}}function Be(t){var e=t._zoom;if(e.gesture.image){if(!e.image.isTouched||!e.image.isMoved)return e.image.isTouched=!1,void(e.image.isMoved=!1);e.image.isTouched=!1,e.image.isMoved=!1;var n=300,i=300,o=e.velocity.x*n,r=e.image.currentX+o,s=e.velocity.y*i,a=e.image.currentY+s;0!==e.velocity.x&&(n=Math.abs((r-e.image.currentX)/e.velocity.x)),0!==e.velocity.y&&(i=Math.abs((a-e.image.currentY)/e.velocity.y));var l=Math.max(n,i);e.image.currentX=r,e.image.currentY=a;var c=e.image.width*e.scale,u=e.image.height*e.scale;e.image.minX=Math.min(e.gesture.slideWidth/2-c/2,0),e.image.maxX=-e.image.minX,e.image.minY=Math.min(e.gesture.slideHeight/2-u/2,0),e.image.maxY=-e.image.minY,e.image.currentX=Math.max(Math.min(e.image.currentX,e.image.maxX),e.image.minX),e.image.currentY=Math.max(Math.min(e.image.currentY,e.image.maxY),e.image.minY),Qt(e.gesture.imageWrap,l),Kt(e.gesture.imageWrap,"translate3d("+e.image.currentX+"px, "+e.image.currentY+"px,0)")}}function Le(t){var e=t._zoom;e.gesture.slide&&t._previousIndex!==t._activeIndex&&(Kt(e.gesture.image,"translate3d(0,0,0) scale(1)"),Kt(e.gesture.imageWrap,"translate3d(0,0,0)"),e.gesture.slide=e.gesture.image=e.gesture.imageWrap=void 0,e.scale=e.currentScale=1)}function ze(t,e){var n=t._zoom,i=t.originalEvent;if(n.gesture.slide||(n.gesture.slide=t.clickedSlide?t.clickedSlide:t._slides[t._activeIndex],n.gesture.image=n.gesture.slide.querySelector("img, svg, canvas, ion-img"),n.gesture.imageWrap=n.gesture.image&&n.gesture.image.closest("."+Km.zoomContainer)),n.gesture.imageWrap){var o,r,s,a,l,c,u,p,d,h,_,f,b,m,g,v;if(void 0===n.image.touchesStart.x&&i?(o="touchend"===i.type?i.changedTouches[0].pageX:i.pageX,r="touchend"===i.type?i.changedTouches[0].pageY:i.pageY):(o=n.image.touchesStart.x,r=n.image.touchesStart.y),n.scale&&1!==n.scale)n.scale=n.currentScale=1,Qt(n.gesture.imageWrap,300),Kt(n.gesture.imageWrap,"translate3d(0,0,0)"),Qt(n.gesture.image,300),Kt(n.gesture.image,"translate3d(0,0,0) scale(1)"),n.gesture.slide=void 0;else{if(n.scale=n.currentScale=parseInt(n.gesture.imageWrap.getAttribute("data-swiper-zoom")||t.zoomMax,10),i){g=n.gesture.slide.offsetWidth,v=n.gesture.slide.offsetHeight;var y=te(n.gesture.slide,e);s=y.left+g/2-o,a=y.top+v/2-r,u=n.gesture.image.offsetWidth,p=n.gesture.image.offsetHeight,d=u*n.scale,h=p*n.scale,b=-(_=Math.min(g/2-d/2,0)),m=-(f=Math.min(v/2-h/2,0)),l=s*n.scale,c=a*n.scale,l<_&&(l=_),l>b&&(l=b),c<f&&(c=f),c>m&&(c=m)}else l=0,c=0;Qt(n.gesture.imageWrap,300),Kt(n.gesture.imageWrap,"translate3d("+l+"px, "+c+"px,0)"),Qt(n.gesture.image,300),Kt(n.gesture.image,"translate3d(0,0,0) scale("+n.scale+")")}}}function Me(t,e){Re(t);var n,i=t._zoom.unRegs,o={passive:"touchstart"===t._touchEvents.start,zone:!1},r=t._slides;if(t._supportGestures)for(a=0;a<r.length;a++)n=r[a],e.registerListener(n,"gesturestart",function(n){Pe(t,e,n)},o,i),e.registerListener(n,"gesturechange",function(n){Ie(t,e,n)},o,i),e.registerListener(n,"gestureend",function(n){De(t,e,n)},o,i);else if("touchstart"===t._touchEvents.start)for(a=0;a<r.length;a++)n=r[a],e.registerListener(n,t._touchEvents.start,function(n){Pe(t,e,n)},o,i),e.registerListener(n,t._touchEvents.move,function(n){Ie(t,e,n)},o,i),e.registerListener(n,t._touchEvents.end,function(n){De(t,e,n)},o,i);var s=t.ionSlideTouchStart.subscribe(function(n){Ae(t,e,n)});i.push(function(){s.unsubscribe()});for(var a=0;a<r.length;a++)(n=r[a]).querySelector("."+Km.zoomContainer)&&e.registerListener(n,"s.touchEvents.move",function(n){Ne(t,e,n)},o,i);var l=t.ionSlideTouchEnd.subscribe(function(){Be(t)});i.push(function(){l.unsubscribe()});var c=t.ionSlideTouchEnd.subscribe(function(){Le(t)});if(i.push(function(){c.unsubscribe()}),t.zoomToggle){var u=t.ionSlideDoubleTap.subscribe(function(){ze(t,e)});i.push(function(){u.unsubscribe()})}}function Re(t){t._zoom.unRegs.forEach(function(t){t()}),t._zoom.unRegs.length=0}function Fe(t,e){if(t._classNames=[],t.container){t.container.swiper=t;var n=Km.containerModifier;t._classNames.push(n+t.direction),t.freeMode&&t._classNames.push(n+"free-mode"),t.autoHeight&&t._classNames.push(n+"autoheight"),(t.parallax||t.watchSlidesVisibility)&&(t.watchSlidesProgress=!0),t.touchReleaseOnEdges&&(t.resistanceRatio=0);var i=t.effect;["cube","coverflow","flip"].indexOf(i)>=0&&(t.watchSlidesProgress=!0,t._classNames.push(n+"3d")),"slide"!==i&&t._classNames.push(n+i),"cube"===i&&(t.resistanceRatio=0,t.slidesPerView=1,t.slidesPerColumn=1,t.slidesPerGroup=1,t.centeredSlides=!1,t.spaceBetween=0,t.virtualTranslate=!0,t.setWrapperSize=!1),"fade"!==i&&"flip"!==i||(t.slidesPerView=1,t.slidesPerColumn=1,t.slidesPerGroup=1,t.watchSlidesProgress=!0,t.spaceBetween=0,t.setWrapperSize=!1,t.virtualTranslate=!0),t._wrapper=t.container.querySelector("."+Km.wrapper),t.paginationType&&(t._paginationContainer=t.container.querySelector(".swiper-pagination"),"bullets"===t.paginationType&&t._paginationContainer.classList.add(Km.paginationModifier+"clickable"),t._paginationContainer.classList.add(Km.paginationModifier+t.paginationType)),t._rtl=ne(t)&&("rtl"===t.container.dir.toLowerCase()||"rtl"===t.container.style.direction),t._rtl&&t._classNames.push(n+"rtl"),t.slidesPerColumn>1&&t._classNames.push(n+"multirow"),e.is("android")&&t._classNames.push(n+"android"),t._classNames.forEach(function(e){t.container.classList.add(e)}),t._translate=0,t.progress=0,t.velocity=0,t._autoplayTimeoutId=void 0,t._autoplaying=!1,t._autoplayPaused=!1,t._allowClick=!0,t._animating=!1,t._touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},t.loop&&$e(t),Ge(t,e),Xe(t,e),he(t),"slide"!==i&&Jm[i]&&(t.loop||ce(t),Jm[i].setTranslate(t,e)),t.loop?Je(t,e,t.initialSlide+t.loopedSlides,0,t.runCallbacksOnInit):(Je(t,e,t.initialSlide,0,t.runCallbacksOnInit),0===t.initialSlide&&ae(t)),t.autoplay&&Ve(t,e)}}function He(t,e){var n=t.autoplay,i=t._slides[t._activeIndex];i.hasAttribute("data-swiper-autoplay")&&(n=i.getAttribute("data-swiper-autoplay")||t.autoplay),t._autoplayTimeoutId=e.timeout(function(){t._zone.run(function(){t.loop?(Qe(t,e),nn(t,e,!0,void 0,!0),t.ionSlideAutoplay.emit(t)):t._isEnd?t.autoplayStopOnLast?We(t):(Je(t,e,0),t.ionSlideAutoplay.emit(t)):(nn(t,e,!0,void 0,!0),t.ionSlideAutoplay.emit(t))})},n)}function Ve(t,e){return void 0===t._autoplayTimeoutId&&(!(!t.autoplay||t._autoplaying)&&(t._autoplaying=!0,t._zone.run(function(){t.ionSlideAutoplayStart.emit(t)}),void He(t,e)))}function We(t){t._autoplayTimeoutId&&(t._autoplayTimeoutId&&clearTimeout(t._autoplayTimeoutId),t._autoplaying=!1,t._autoplayTimeoutId=void 0,t._zone.run(function(){t.ionSlideAutoplayStop.emit(t)}))}function qe(t,e,n){t._autoplayPaused||(t._autoplayTimeoutId&&clearTimeout(t._autoplayTimeoutId),t._autoplayPaused=!0,0===n?(t._autoplayPaused=!1,He(t,e)):e.transitionEnd(t._wrapper,function(){t&&(t._autoplayPaused=!1,t._autoplaying?He(t,e):We(t))}))}function Ye(t){var e,n=[],i=0;if("auto"!==t.slidesPerView&&t.slidesPerView>1)for(e=0;e<Math.ceil(t.slidesPerView);e++){var o=t._activeIndex+e;if(o>t._slides.length)break;n.push(t._slides[o])}else n.push(t._slides[t._activeIndex]);for(e=0;e<n.length;e++)if(void 0!==n[e]){var r=n[e].offsetHeight;i=r>i?r:i}i&&(t._wrapper.style.height=i+"px")}function Ge(t,e){var n,i,o=t.container;if(n=void 0!==t.width?t.width:o.clientWidth,i=void 0!==t.renderedHeight?t.renderedHeight:o.clientHeight,!(0===n&&ne(t)||0===i&&!ne(t))){var r=e.getElementComputedStyle(o);n=n-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),i=i-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10),t.renderedWidth=n,t.renderedHeight=i,t._renderedSize=ne(t)?n:i}}function Xe(t,e){t._slides=t._wrapper.querySelectorAll("."+Km.slide),t._snapGrid=[],t._slidesGrid=[],t._slidesSizesGrid=[];var n,i=t.spaceBetween,o=-t.slidesOffsetBefore,r=0,s=0;if(void 0!==t._renderedSize){"string"==typeof i&&i.indexOf("%")>=0&&(i=parseFloat(i.replace("%",""))/100*t._renderedSize),t._virtualSize=-i,t._rtl?Yt(t._slides,{marginLeft:"",marginTop:""}):Yt(t._slides,{marginRight:"",marginBottom:""});var a;t.slidesPerColumn>1&&(a=Math.floor(t._slides.length/t.slidesPerColumn)===t._slides.length/t.slidesPerColumn?t._slides.length:Math.ceil(t._slides.length/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(a=Math.max(a,t.slidesPerView*t.slidesPerColumn)));var l,c=t.slidesPerColumn,u=a/c,p=u-(t.slidesPerColumn*u-t._slides.length);for(n=0;n<t._slides.length;n++){l=0;var d=t._slides[n];if(t.slidesPerColumn>1){var h,_,f;"column"===t.slidesPerColumnFill?(f=n-(_=Math.floor(n/c))*c,(_>p||_===p&&f===c-1)&&++f>=c&&(f=0,_++),Yt(d,{"-webkit-box-ordinal-group":h=_+f*a/c,"-moz-box-ordinal-group":h,"-ms-flex-order":h,"-webkit-order":h,order:h})):_=n-(f=Math.floor(n/u))*u;var b=0!==f&&t.spaceBetween&&t.spaceBetween+"px",m={};ne(t)?m.marginTop=b:m.marginLeft=b,Yt(d,m),d.setAttribute("data-swiper-column",_),d.setAttribute("data-swiper-row",f)}if("none"!==d.style.display){if("auto"===t.slidesPerView){var g=e.getElementComputedStyle(d);l=ne(t)?d.offsetWidth+parseFloat(g.marginRight)+parseFloat(g.marginLeft):d.offsetHeight+parseFloat(g.marginTop)+parseFloat(g.marginBottom),t.roundLengths&&(l=qt(l))}else l=(t._renderedSize-(t.slidesPerView-1)*i)/t.slidesPerView,t.roundLengths&&(l=qt(l)),ne(t)?t._slides[n].style.width=l+"px":t._slides[n].style.height=l+"px";t._slides[n].swiperSlideSize=l,t._slidesSizesGrid.push(l),t.centeredSlides?(o=o+l/2+r/2+i,0===n&&(o=o-t._renderedSize/2-i),Math.abs(o)<.001&&(o=0),s%t.slidesPerGroup==0&&t._snapGrid.push(o),t._slidesGrid.push(o)):(s%t.slidesPerGroup==0&&t._snapGrid.push(o),t._slidesGrid.push(o),o=o+l+i),t._virtualSize+=l+i,r=l,s++}}t._virtualSize=Math.max(t._virtualSize,t._renderedSize)+t.slidesOffsetAfter;var v;if(!t._rtl||"slide"!==t.effect&&"coverflow"!==t.effect||Yt(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(ne(t)?Yt(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}):Yt(t._wrapper,{height:t._virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(t._virtualSize=(l+t.spaceBetween)*a,t._virtualSize=Math.ceil(t._virtualSize/t.slidesPerColumn)-t.spaceBetween,ne(t)?Yt(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}):Yt(t._wrapper,{height:t._virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){for(v=[],n=0;n<t._snapGrid.length;n++)t._snapGrid[n]<t._virtualSize+t._snapGrid[0]&&v.push(t._snapGrid[n]);t._snapGrid=v}if(!t.centeredSlides){for(v=[],n=0;n<t._snapGrid.length;n++)t._snapGrid[n]<=t._virtualSize-t._renderedSize&&v.push(t._snapGrid[n]);t._snapGrid=v,Math.floor(t._virtualSize-t._renderedSize)-Math.floor(t._snapGrid[t._snapGrid.length-1])>1&&t._snapGrid.push(t._virtualSize-t._renderedSize)}0===t._snapGrid.length&&(t._snapGrid=[0]),0!==t.spaceBetween&&(ne(t)?t._rtl?Yt(t._slides,{marginLeft:i+"px"}):Yt(t._slides,{marginRight:i+"px"}):Yt(t._slides,{marginBottom:i+"px"})),t.watchSlidesProgress&&ee(t)}}function Ue(t){var e,n,i=1;if(t.centeredSlides){var o,r=t._slides[t._activeIndex].swiperSlideSize;for(e=t._activeIndex+1;e<t._slides.length;e++)t._slides[e]&&!o&&(i++,(r+=t._slides[e].swiperSlideSize)>t._renderedSize&&(o=!0));for(n=t._activeIndex-1;n>=0;n--)t._slides[n]&&!o&&(i++,(r+=t._slides[n].swiperSlideSize)>t._renderedSize&&(o=!0))}else for(e=t._activeIndex+1;e<t._slides.length;e++)t._slidesGrid[e]-t._slidesGrid[t._activeIndex]<t._renderedSize&&i++;return i}function Ze(t,e,n){function i(){o=Math.min(Math.max(t._translate,re(t)),oe(t)),Se(t,e,o),be(t),fe(t)}if(t){Ge(t,e),Xe(t,e),ce(t),he(t),fe(t),t.zoom&&Me(t,e);var o;n?(t._spline&&(t._spline=void 0),t.freeMode?(i(),t.autoHeight&&Ye(t)):(("auto"===t.slidesPerView||t.slidesPerView>1)&&t._isEnd&&!t.centeredSlides?Je(t,e,t._slides.length-1,0,!1,!0):Je(t,e,t._activeIndex,0,!1,!0))||i()):t.autoHeight&&Ye(t)}}function $e(t){$t(t._wrapper,"."+Km.slide+"."+Km.slideDuplicate,function(t){t.parentElement.removeChild(t)});var e=t._wrapper.querySelectorAll("."+Km.slide);"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=e.length),t.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),t.loopedSlides=t.loopedSlides+t.loopAdditionalSlides,t.loopedSlides>e.length&&(t.loopedSlides=e.length);for(var n=[],i=[],o=0;o<e.length;o++){var r=e[o];o<t.loopedSlides&&i.push(r),o<e.length&&o>=e.length-t.loopedSlides&&n.push(r),r.setAttribute("data-swiper-slide-index",o)}for(o=0;o<i.length;o++){var s=i[o].cloneNode(!0);Gt(s,Km.slideDuplicate),t._wrapper.appendChild(s)}for(o=n.length-1;o>=0;o--){var a=n[o].cloneNode(!0);Gt(a,Km.slideDuplicate),t._wrapper.insertBefore(a,t._wrapper.firstElementChild)}}function Ke(t){if($t(t._wrapper,"."+Km.slide+"."+Km.slideDuplicate,function(t){t.parentElement.removeChild(t)}),t._slides)for(var e=0;e<t._slides.length;e++)t._slides[e].removeAttribute("data-swiper-slide-index")}function Qe(t,e){var n;t._activeIndex<t.loopedSlides?(n=t._slides.length-3*t.loopedSlides+t._activeIndex,Je(t,e,n+=t.loopedSlides,0,!1,!0)):("auto"===t.slidesPerView&&t._activeIndex>=2*t.loopedSlides||t._activeIndex>t._slides.length-2*t.slidesPerView)&&(n=-t._slides.length+t._activeIndex+t.loopedSlides,Je(t,e,n+=t.loopedSlides,0,!1,!0))}function Je(t,e,n,i,o,r){void 0===o&&(o=!0),void 0===n&&(n=0),n<0&&(n=0),t._snapIndex=Math.floor(n/t.slidesPerGroup),t._snapIndex>=t._snapGrid.length&&(t._snapIndex=t._snapGrid.length-1);var s=-t._snapGrid[t._snapIndex];return t.autoplay&&t._autoplaying&&(r||!t.autoplayDisableOnInteraction?qe(t,e,i):We(t)),ce(t,s),!(!t._allowSwipeToNext&&s<t._translate&&s<oe(t))&&(!(!t._allowSwipeToPrev&&s>t._translate&&s>re(t)&&(t._activeIndex||0)!==n)&&(void 0===i&&(i=t.speed),t._previousIndex=t._activeIndex||0,t._activeIndex=n,me(t),t._rtl&&-s===t._translate||!t._rtl&&s===t._translate?(t.autoHeight&&Ye(t),fe(t),"slide"!==t.effect&&Se(t,e,s),!1):(fe(t),tn(t,o),0===i?(Se(t,e,s),Te(t,e,0),en(t,e,o)):(Se(t,e,s),Te(t,e,i),t._animating||(t._animating=!0,e.transitionEnd(t._wrapper,function(){t&&en(t,e,o)}))),!0)))}function tn(t,e){void 0===e&&(e=!0),t.autoHeight&&Ye(t),e&&t._zone.run(function(){t.ionSlideTransitionStart.emit(t),t._activeIndex!==t._previousIndex&&(t.ionSlideWillChange.emit(t),t._activeIndex>t._previousIndex?t.ionSlideNextStart.emit(t):t.ionSlidePrevStart.emit(t))})}function en(t,e,n){void 0===n&&(n=!0),t._animating=!1,Te(t,e,0),n&&t._zone.run(function(){t.ionSlideTransitionEnd.emit(t),t._activeIndex!==t._previousIndex&&(t.ionSlideDidChange.emit(t),t._activeIndex>t._previousIndex?t.ionSlideNextEnd.emit(t):t.ionSlidePrevEnd.emit(t))})}function nn(t,e,n,i,o){if(t.loop)return!t._animating&&(Qe(t,e),Je(t,e,t._activeIndex+t.slidesPerGroup,i,n,o));var r=t._activeIndex+t.slidesPerGroup;return r<t._slides.length&&Je(t,e,r,i,n,o)}function on(t,e,n,i,o){return t.loop?!t._animating&&(Qe(t,e),Je(t,e,t._activeIndex-1,i,n,o)):t._activeIndex-1>=0&&Je(t,e,t._activeIndex-1,i,n,o)}function rn(t,e,n,i){return Je(t,e,t._activeIndex,i,n,!0)}function sn(t){if(t.container&&t._wrapper){if(t.container&&(Xt(t.container,t._classNames),t.container.removeAttribute("style")),t._wrapper.removeAttribute("style"),t._slides&&t._slides.length){Xt(t._slides,[Km.slideVisible,Km.slideActive,Km.slideNext,Km.slidePrev]);for(var e=0;e<t._slides.length;e++){var n=t._slides[e];n.removeAttribute("style"),n.removeAttribute("data-swiper-column"),n.removeAttribute("data-swiper-row")}}Xt(t._bullets,Km.bulletActive),Xt(t.prevButton,Km.buttonDisabled),Xt(t.nextButton,Km.buttonDisabled)}}function an(t){We(t),t.loop&&Ke(t),sn(t)}function ln(t,e,n){var i=e.win(),o=n.keyCode||n.charCode;if(!t._allowSwipeToNext&&(ne(t)&&39===o||!ne(t)&&40===o))return!1;if(!t._allowSwipeToPrev&&(ne(t)&&37===o||!ne(t)&&38===o))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)){var r=e.getActiveElement();if(!r||!r.nodeName||"input"!==r.nodeName.toLowerCase()&&"textarea"!==r.nodeName.toLowerCase()){if(37===o||39===o||38===o||40===o){var s=!1;if(t.container.closest("."+Km.slide)&&!t.container.closest("."+Km.slideActive))return;var a={left:i.pageXOffset,top:i.pageYOffset},l=e.width(),c=e.height(),u=te(t.container,e);t._rtl&&(u.left=u.left-t.container.scrollLeft);for(var p=[[u.left,u.top],[u.left+t.renderedWidth,u.top],[u.left,u.top+t.renderedHeight],[u.left+t.renderedWidth,u.top+t.renderedHeight]],d=0;d<p.length;d++){var h=p[d];h[0]>=a.left&&h[0]<=a.left+l&&h[1]>=a.top&&h[1]<=a.top+c&&(s=!0)}if(!s)return}ne(t)?(37!==o&&39!==o||(n.preventDefault?n.preventDefault():n.returnValue=!1),(39===o&&!t._rtl||37===o&&t._rtl)&&nn(t,e),(37===o&&!t._rtl||39===o&&t._rtl)&&on(t,e)):(38!==o&&40!==o||(n.preventDefault?n.preventDefault():n.returnValue=!1),40===o&&nn(t,e),38===o&&on(t,e))}}}function cn(t,e,n){n&&!t._keyboardUnReg?t._keyboardUnReg=e.registerListener(e.doc(),"keydown",function(n){ln(t,e,n)},{zone:!1}):!n&&t._keyboardUnReg&&t._keyboardUnReg()}function un(t,e){var n=e.win(),i=e.doc();t._supportTouch=!!("ontouchstart"in n||n.DocumentTouch&&i instanceof n.DocumentTouch),t._touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},n.navigator.pointerEnabled?t._touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:n.navigator.msPointerEnabled&&(t._touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),t._touchEvents={start:t._supportTouch||!t.simulateTouch?"touchstart":t._touchEventsDesktop.start,move:t._supportTouch||!t.simulateTouch?"touchmove":t._touchEventsDesktop.move,end:t._supportTouch||!t.simulateTouch?"touchend":t._touchEventsDesktop.end},(n.navigator.pointerEnabled||n.navigator.msPointerEnabled)&&("container"===t.touchEventsTarget?t.container:t._wrapper).classList.add("swiper-wp8-"+t.direction);var o=[],r="container"===t.touchEventsTarget?t.container:t._wrapper;t._supportTouch&&(e.registerListener(r,t._touchEvents.start,function(n){mn(t,e,n)},{passive:!0,zone:!1},o),e.registerListener(r,t._touchEvents.move,function(n){gn(t,e,n)},{zone:!1},o),e.registerListener(r,t._touchEvents.end,function(n){vn(t,e,n)},{passive:!0,zone:!1},o)),(t.simulateTouch&&!e.is("ios")&&!e.is("android")||t.simulateTouch&&!t._supportTouch&&e.is("ios")||e.getQueryParam("ionicPlatform"))&&(e.registerListener(r,"mousedown",function(n){mn(t,e,n)},{zone:!1},o),e.registerListener(e.doc(),"mousemove",function(n){gn(t,e,n)},{zone:!1},o),e.registerListener(e.doc(),"mouseup",function(n){vn(t,e,n)},{zone:!1},o));var s=e.resize.subscribe(function(){return yn(t,e,!1)});return t.nextButton&&e.registerListener(t.nextButton,"click",function(n){dn(t,e,n)},{zone:!1},o),t.prevButton&&e.registerListener(t.prevButton,"click",function(n){hn(t,e,n)},{zone:!1},o),t.paginationType&&e.registerListener(t._paginationContainer,"click",function(n){_n(t,e,n)},{zone:!1},o),(t.preventClicks||t.preventClicksPropagation)&&e.registerListener(r,"click",function(e){pn(t,e)},{zone:!1,capture:!0},o),function(){s.unsubscribe(),o.forEach(function(t){t()}),o=null}}function pn(t,e){t._allowClick||(t.preventClicks&&e.preventDefault(),t.preventClicksPropagation&&t._animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function dn(t,e,n){n.preventDefault(),t._isEnd&&!t.loop||nn(t,e)}function hn(t,e,n){n.preventDefault(),t._isBeginning&&!t.loop||on(t,e)}function _n(t,e,n){var i=n.target.getAttribute("data-slide-index");if(i){var o=parseInt(i,10);n.preventDefault(),t.loop&&(o+=t.loopedSlides),Je(t,e,o)}}function fn(t,e){var n=t.target;if(!n.matches(e))if("string"==typeof e)n=n.closest(e);else if(e.nodeType){for(var i=n.parentElement;i;)if(i===e)return e;return}return n}function bn(t,e,n){var i=fn(n,"."+Km.slide),o=-1;if(i)for(var r=0;r<t._slides.length;r++)if(t._slides[r]===i){o=r;break}if(!(i&&o>-1))return t.clickedSlide=void 0,void(t.clickedIndex=void 0);if(t.clickedSlide=i,t.clickedIndex=o,t.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t._activeIndex){var s,a=t.clickedIndex,l="auto"===t.slidesPerView?Ue(t):t.slidesPerView;if(t.loop){if(t._animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<t.loopedSlides-l/2||a>t._slides.length-t.loopedSlides+l/2?(Qe(t,e),a=Ut(t._wrapper.querySelector("."+Km.slide+'[data-swiper-slide-index="'+s+'"]:not(.'+Km.slideDuplicate+")")),e.timeout(function(){Je(t,e,a)})):Je(t,e,a):a>t._slides.length-l?(Qe(t,e),a=Ut(t._wrapper.querySelector("."+Km.slide+'[data-swiper-slide-index="'+s+'"]:not(.'+Km.slideDuplicate+")")),e.timeout(function(){Je(t,e,a)})):Je(t,e,a)}else Je(t,e,a)}}function mn(t,e,n){if(console.debug("ion-slide, onTouchStart: "+n.type),n.originalEvent&&(n=n.originalEvent),t.originalEvent=n,(Xm="touchstart"===n.type)||!("which"in n)||3!==n.which)if(t.noSwiping&&fn(n,"."+Km.noSwiping))t._allowClick=!0;else if(!t.swipeHandler||fn(n,t.swipeHandler)){var i=t._touches.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,o=t._touches.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;if(!(e.is("ios")&&t.iOSEdgeSwipeDetection&&i<=t.iOSEdgeSwipeThreshold)){if(zm=!0,Mm=!1,Rm=!0,Hm=void 0,Um=void 0,t._touches.startX=i,t._touches.startY=o,Fm=Date.now(),t._allowClick=!0,Ge(t,e),t.swipeDirection=void 0,t.threshold>0&&(qm=!1),"touchstart"!==n.type){var r=!0;ie(n.target)&&(r=!1),e.focusOutActiveElement(),r&&n.preventDefault()}t.ionSlideTouchStart.emit(n)}}}function gn(t,e,n){if(console.debug("ion-slide, onTouchMove: "+n.type),n.originalEvent&&(n=n.originalEvent),t.originalEvent=n,!Xm||"mousemove"!==n.type){if(n.preventedByNestedSwiper)return t._touches.startX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,void(t._touches.startY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY);if(t.onlyExternal)return t._allowClick=!1,void(zm&&(t._touches.startX=t._touches.currentX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,t._touches.startY=t._touches.currentY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY,Fm=Date.now()));if(Xm&&t.touchReleaseOnEdges&&!t.loop)if(ne(t)){if(t._touches.currentX<t._touches.startX&&t._translate<=re(t)||t._touches.currentX>t._touches.startX&&t._translate>=oe(t))return}else if(t._touches.currentY<t._touches.startY&&t._translate<=re(t)||t._touches.currentY>t._touches.startY&&t._translate>=oe(t))return;var i=e.getActiveElement();if(Xm&&i&&n.target===i&&ie(n.target))return Mm=!0,void(t._allowClick=!1);if(!(n.targetTouches&&n.targetTouches.length>1)){if(t._touches.currentX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,t._touches.currentY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY,void 0===Hm){var o;ne(t)&&t._touches.currentY===t._touches.startY||!ne(t)&&t._touches.currentX===t._touches.startX?Hm=!1:(o=180*Math.atan2(Math.abs(t._touches.currentY-t._touches.startY),Math.abs(t._touches.currentX-t._touches.startX))/Math.PI,Hm=ne(t)?o>t.touchAngle:90-o>t.touchAngle)}if(zm)if(Hm)zm=!1;else{t._allowClick=!1,t.ionSlideDrag.emit(t),n.preventDefault(),t.touchMoveStopPropagation&&n.stopPropagation(),Mm||(t.loop&&Qe(t,e),Wm=ke(t,e),Te(t,e,0),t._animating&&Jt(e,t._wrapper),t.autoplay&&t._autoplaying&&(t.autoplayDisableOnInteraction?We(t):qe(t,e)),Gm=!1),Mm=!0;var r=t._touches.diff=ne(t)?t._touches.currentX-t._touches.startX:t._touches.currentY-t._touches.startY;r*=t.touchRatio,t._rtl&&(r=-r),t.swipeDirection=r>0?"prev":"next",Vm=r+Wm;var s=!0;if(r>0&&Vm>oe(t)?(s=!1,t.resistance&&(Vm=oe(t)-1+Math.pow(-oe(t)+Wm+r,t.resistanceRatio))):r<0&&Vm<re(t)&&(s=!1,t.resistance&&(Vm=re(t)+1-Math.pow(re(t)-Wm-r,t.resistanceRatio))),s&&(n.preventedByNestedSwiper=!0),!t._allowSwipeToNext&&"next"===t.swipeDirection&&Vm<Wm&&(Vm=Wm),!t._allowSwipeToPrev&&"prev"===t.swipeDirection&&Vm>Wm&&(Vm=Wm),t.threshold>0){if(!(Math.abs(r)>t.threshold||qm))return void(Vm=Wm);if(!qm)return qm=!0,t._touches.startX=t._touches.currentX,t._touches.startY=t._touches.currentY,Vm=Wm,void(t._touches.diff=ne(t)?t._touches.currentX-t._touches.startX:t._touches.currentY-t._touches.startY)}t.followFinger&&((t.freeMode||t.watchSlidesProgress)&&be(t),t.freeMode&&(0===eg.length&&eg.push({position:t._touches[ne(t)?"startX":"startY"],time:Fm}),eg.push({position:t._touches[ne(t)?"currentX":"currentY"],time:(new Date).getTime()})),ce(t,Vm),Se(t,e,Vm))}}}}function vn(t,e,n){if(console.debug("ion-slide, onTouchEnd: "+n.type),n.originalEvent&&(n=n.originalEvent),t.originalEvent=n,Rm&&t.ionSlideTouchEnd.emit(n),Rm=!1,zm){var i=Date.now(),o=i-Fm;if(t._allowClick&&(bn(t,e,n),t._zone.run(function(){t.ionSlideTap.emit(t),o<300&&i-tg>300&&(Ym&&e.cancelTimeout(Ym),Ym=e.timeout(function(){t&&t.paginationHide&&t._paginationContainer&&!n.target.classList.contains(Km.bullet)&&t._paginationContainer.classList.toggle(Km.paginationHidden)},300)),o<300&&i-tg<300&&(Ym&&clearTimeout(Ym),t.ionSlideDoubleTap.emit(t))})),tg=Date.now(),e.timeout(function(){t&&(t._allowClick=!0)}),zm&&Mm&&t.swipeDirection&&0!==t._touches.diff&&Vm!==Wm){zm=Mm=!1;var r;if(r=t.followFinger?t._rtl?t._translate:-t._translate:-Vm,t.freeMode){if(r<-oe(t))return void Je(t,e,t._activeIndex);if(r>-re(t))return void(t._slides.length<t._snapGrid.length?Je(t,e,t._snapGrid.length-1):Je(t,e,t._slides.length-1));if(t.freeModeMomentum){if(eg.length>1){var s=eg.pop(),a=eg.pop(),l=s.position-a.position,c=s.time-a.time;t.velocity=l/c,t.velocity=t.velocity/2,Math.abs(t.velocity)<t.freeModeMinimumVelocity&&(t.velocity=0),(c>150||(new Date).getTime()-s.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity=t.velocity*t.freeModeMomentumVelocityRatio,eg.length=0;var u=1e3*t.freeModeMomentumRatio,p=t.velocity*u,d=t._translate+p;t._rtl&&(d=-d);var h,_=!1,f=20*Math.abs(t.velocity)*t.freeModeMomentumBounceRatio;if(d<re(t))t.freeModeMomentumBounce?(d+re(t)<-f&&(d=re(t)-f),h=re(t),_=!0,Gm=!0):d=re(t);else if(d>oe(t))t.freeModeMomentumBounce?(d-oe(t)>f&&(d=oe(t)+f),h=oe(t),_=!0,Gm=!0):d=oe(t);else if(t.freeModeSticky){var b,m=0;for(m=0;m<t._snapGrid.length;m+=1)if(t._snapGrid[m]>-d){b=m;break}d=Math.abs(t._snapGrid[b]-d)<Math.abs(t._snapGrid[b-1]-d)||"next"===t.swipeDirection?t._snapGrid[b]:t._snapGrid[b-1],t._rtl||(d=-d)}if(0!==t.velocity)u=t._rtl?Math.abs((-d-t._translate)/t.velocity):Math.abs((d-t._translate)/t.velocity);else if(t.freeModeSticky)return void rn(t,e);t.freeModeMomentumBounce&&_?(ce(t,h),Te(t,e,u),Se(t,e,d),tn(t),t._animating=!0,e.transitionEnd(t._wrapper,function(){t&&Gm&&(Te(t,e,t.speed),Se(t,e,h),e.transitionEnd(t._wrapper,function(){t&&en(t,e)}))})):t.velocity?(ce(t,d),Te(t,e,u),Se(t,e,d),tn(t),t._animating||(t._animating=!0,e.transitionEnd(t._wrapper,function(){t&&en(t,e)}))):ce(t,d),be(t)}(!t.freeModeMomentum||o>=t.longSwipesMs)&&(ce(t),be(t))}else{for(var g=0,v=t._slidesSizesGrid[0],y=0;y<t._slidesGrid.length;y+=t.slidesPerGroup)void 0!==t._slidesGrid[y+t.slidesPerGroup]?r>=t._slidesGrid[y]&&r<t._slidesGrid[y+t.slidesPerGroup]&&(g=y,v=t._slidesGrid[y+t.slidesPerGroup]-t._slidesGrid[y]):r>=t._slidesGrid[y]&&(g=y,v=t._slidesGrid[t._slidesGrid.length-1]-t._slidesGrid[t._slidesGrid.length-2]);var O=(r-t._slidesGrid[g])/v;if(o>t.longSwipesMs){if(!t.longSwipes)return void Je(t,e,t._activeIndex);"next"===t.swipeDirection&&(O>=t.longSwipesRatio?Je(t,e,g+t.slidesPerGroup):Je(t,e,g)),"prev"===t.swipeDirection&&(O>1-t.longSwipesRatio?Je(t,e,g+t.slidesPerGroup):Je(t,e,g))}else{if(!t.shortSwipes)return void Je(t,e,t._activeIndex);"next"===t.swipeDirection&&Je(t,e,g+t.slidesPerGroup),"prev"===t.swipeDirection&&Je(t,e,g)}}}else zm=Mm=!1}}function yn(t,e,n){Zm&&(e.cancelTimeout(Zm),Zm=null),Zm=e.timeout(function(){return On(t,e,n)},200)}function On(t,e,n){Zm=null;var i=t._allowSwipeToPrev,o=t._allowSwipeToNext;t._allowSwipeToPrev=t._allowSwipeToNext=!0,Ge(t,e),Xe(t,e),("auto"===t.slidesPerView||t.freeMode||n)&&he(t),t._spline&&(t._spline=void 0);t.freeMode?(Se(t,e,Math.min(Math.max(t._translate,re(t)),oe(t))),be(t),fe(t),t.autoHeight&&Ye(t)):(fe(t),("auto"===t.slidesPerView||t.slidesPerView>1)&&t._isEnd&&!t.centeredSlides?Je(t,e,t._slides.length-1,0,!1,!0):Je(t,e,t._activeIndex,0,!1,!0)),t._allowSwipeToPrev=i,t._allowSwipeToNext=o}function jn(t,e,n,i,o,r){var s,a,l,c,u=e?e.length-1:-1;if(n.length){if((l=n[n.length-1]).top+l.height>t)return;a=l.record+1}else l=Yy,a=0;for(var p=0,d=a;d<=u;d++)if(s=e[d],i&&null!==(c=i(s,d,e))&&(l=wn(l,d,Xy.Header,c,r.hdrWidth,r.hdrHeight,r.viewWidth),n.push(l)),l=wn(l,d,Xy.Item,null,r.itmWidth,r.itmHeight,r.viewWidth),n.push(l),o&&null!==(c=o(s,d,e))&&(l=wn(l,d,Xy.Footer,c,r.ftrWidth,r.ftrHeight,r.viewWidth),n.push(l)),l.record===u&&(l.isLast=!0),p++,l.top+l.height+r.itmHeight>t&&p>3)return}function wn(t,e,n,i,o,r,s){var a={record:e,tmpl:n,width:o,height:r,reads:0};return t.left+t.width+o>s?(a.row=t.row+1,a.top=t.top+t.height,a.left=0):(a.row=t.row,a.top=t.top,a.left=t.left+t.width),i&&(a.data=i),a}function Sn(t,e,n,i,o,r,s,a,l,c){if(!o||0===o.length)return r.length=0,s.clear(),!0;var u,p,d,h=o.length,_=!1,f=null,b=r.length;t=Math.max(t,0),e=Math.min(e,i.length-1);for(var m=[],g=t;g<=e;g++){p=i[g],u=null;var v=r.find(function(t){return t.cell===g&&t.tmpl===p.tmpl});if(v){if(v.view.context.$implicit===o[p.record]){m.push(v);continue}console.debug("virtual-util","data is not the same, will need to update node. Setting as available node"),u=v}else{console.debug("virtual-util","cell was not rendered in current nodes, will now look for an available node");for(var y=0;y<b;y++){var O=r[y];p.tmpl!==O.tmpl||0===y&&0!==g||(O.cell<t||O.cell>e)&&(u?n?O.cell<u.cell&&(u=O,console.debug("virtual-util","scrolling-down found better node to reuse",u)):O.cell>u.cell&&(u=O,console.debug("virtual-util","scrolling-up found better node to reuse",u)):(u=O,console.debug("virtual-util","found node to reuse",u)))}}if(!u){if(null===f){f=-1;for(var j=b-1;j>=0;j--)if(O=r[j]){f=s.indexOf(O.view);break}}if(!(d=p.tmpl===Xy.Header?l:p.tmpl===Xy.Footer?c:a)){console.error("virtual"+(p.tmpl===Xy.Header?"Header":p.tmpl===Xy.Footer?"Footer":"Item")+" template required");continue}u={tmpl:p.tmpl,view:s.createEmbeddedView(d,new Gy(null,null,null),f)},b=r.push(u)}u.cell=g;var w=u.view.context;w.$implicit=p.data||o[p.record],w.index=g,w.count=h,u.hasChanges=!0,u.lastTransform=null,_=!0,m.push(u)}var S=r.filter(function(t){return m.indexOf(t)<0});return S.forEach(function(t){var e=s.indexOf(t.view);s.remove(e);var n=r.findIndex(function(e){return e===t});r.splice(n,1)}),m.length=0,S.length=0,_}function Cn(t,e,n,i){if(e.length&&n.length){var o=Ln(e[0]),r=n[0];r.top=o.clientTop,r.left=o.clientLeft,r.row=0,kn(t,e,n,i,!0)}}function kn(t,e,n,i,o){for(var r,s,a,l=n.length,c=0;c<e.length;c++)(s=n[(r=e[c]).cell])&&s.reads<Zy&&(xn(t,s,Ln(r)),o&&(s.tmpl===Xy.Header?(i.hdrHeight=s.height,0===s.left&&(i.hdrWidth=s.width)):s.tmpl===Xy.Footer?(i.ftrHeight=s.height,0===s.left&&(i.ftrWidth=s.width)):(i.itmHeight=s.height,0===s.left&&(i.itmWidth=s.width))),s.reads++);var u=i.scrollTop+i.viewHeight;if(i.topViewCell=l,i.bottomViewCell=0,l>0){a={row:0,width:0,height:0,top:(s=n[0]).top,left:0,tmpl:-1};for(var p=0;p<l;p++)s=n[p],a.left+a.width+s.width>i.viewWidth?(s.row++,s.top=a.top+a.height,s.left=0):(s.row=a.row,s.top=a.top,s.left=a.left+a.width),s.top+s.height>i.scrollTop&&p<i.topViewCell?i.topViewCell=p:s.top<u&&p>i.bottomViewCell&&(i.bottomViewCell=p),a=s}}function Tn(t,e,n){for(var i,o,r,s=0,a=t.length;s<a;s++)o=e[(i=t[s]).cell],i&&o&&((r=i.view.context.bounds).top=o.top+n.viewTop,r.bottom=r.top+o.height,r.left=o.left+n.viewLeft,r.right=r.left+o.width,r.width=o.width,r.height=o.height)}function xn(t,e,n){var i=t.getElementComputedStyle(n);e.left=n.clientLeft-parseFloat(i.marginLeft),e.width=n.offsetWidth+parseFloat(i.marginLeft)+parseFloat(i.marginRight),e.height=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom)}function En(t,e,n,i){for(var o,r,s,a,l=Math.max(i,n.length),c=0,u=e.length;c<u;c++)a="translate3d("+(s=n[(o=e[c]).cell]).left+"px,"+s.top+"px,0px)",o.lastTransform!==a&&(r=Ln(o))&&(r.style[t.Css.transform]=o.lastTransform=a,r.classList.add("virtual-position"),r.setAttribute("aria-posinset",o.cell+1),r.setAttribute("aria-setsize",l))}function Pn(t,e){var n=e.renderHeight-e.itmHeight,i=t.length,o=e.itmHeight<90?Uy:0;if(e.scrollDiff>0){e.topCell=Math.max(e.topViewCell-o,0),e.bottomCell=e.topCell;for(var r=0,s=e.topCell;s<i&&(r+=t[s].height,s>e.bottomCell&&(e.bottomCell=s),!(r>=n));s++);if(r<n)for(s=e.topCell-1;s>=0&&(r+=t[s].height,e.topCell=s,!(r>=n));s--);}else{e.bottomCell=Math.min(e.bottomViewCell+o,i-1),e.topCell=e.bottomCell;r=0;w(e.bottomCell>0,"bottomCell should be greater than 0");for(s=e.bottomCell;s>=0&&(r+=t[s].height,s<e.topCell&&(e.topCell=s),!(r>=n));s--);if(r<n)for(s=e.bottomCell;s<i&&(r+=t[s].height,e.bottomCell=s,!(r>=n));s++);}}function In(t,e){if(e.record>=t-1)return e.top+e.height;var n=t-e.record-1,i=e.top+e.height;return Math.ceil(i+i/(t-n)*n)}function Dn(t,e,n,i){if(!t||!e)return 0;var o=In(t,e),r=e.record/(t-1);return Math.abs(n-o)>o*i||r>.995?o:n}function An(t,e,n,i,o,r,s,a,l){var c=e.parentElement;t.viewWidth=c.offsetWidth,t.viewHeight=c.offsetHeight,t.viewTop=e.offsetTop,t.viewLeft=e.offsetLeft,t.renderHeight=t.viewHeight*l,t.viewWidth>0&&t.viewHeight>0&&(t.itmWidth=Nn(t.viewWidth,n),t.itmHeight=Bn(t.viewHeight,i),t.hdrWidth=Nn(t.viewWidth,o),t.hdrHeight=Bn(t.viewHeight,r),t.ftrWidth=Nn(t.viewWidth,s),t.ftrHeight=Bn(t.viewHeight,a),t.valid=!0)}function Nn(t,e){if(e.indexOf("%")>0)return t*(parseFloat(e)/100);if(e.indexOf("px")>0)return parseFloat(e);throw new Error('virtual scroll width can only use "%" or "px" units')}function Bn(t,e){if(e.indexOf("px")>0)return parseFloat(e);throw new Error('virtual scroll height must use "px" units')}function Ln(t){for(var e=t.view.rootNodes,n=0;n<e.length;n++)if(1===e[n].nodeType)return e[n];return null}function zn(t,e){if(!e||!e.parentNode)return!0;if(!t)return!1;if(t.defaultPrevented)return!0;for(var n=t.target,i=0;i<4&&n;i++){if(n.hasAttribute("disable-activated"))return!0;n=n.parentElement}return!1}function Mn(t){for(var e=t,n=0;n<10&&e;n++){if(Rn(e))return e;e=e.parentElement}return null}function Rn(t){if(SO.indexOf(t.tagName)>-1)return!0;for(var e=0,n=CO.length;e<n;e++)if(t.hasAttribute&&t.hasAttribute(CO[e]))return!0;return!1}function Fn(t,e,n,i,o){return function(){return new gO(t,e,n,i,o)}}function Hn(t,e,n){return setTimeout(Yn(t,n),e)}function Vn(t,e,n){return!!Array.isArray(t)&&(Wn(t,n[e],n),!0)}function Wn(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function qn(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&Object.assign(i,n)}function Yn(t,e){return function(){return t.apply(e,arguments)}}function Gn(t,e){return typeof t==DO?t.apply(e?e[0]||void 0:void 0,e):t}function Xn(t,e){return void 0===t?e:t}function Un(t,e,n){Wn(Qn(e),function(e){t.addEventListener(e,n,!1)})}function Zn(t,e,n){Wn(Qn(e),function(e){t.removeEventListener(e,n,!1)})}function $n(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function Kn(t,e){return t.indexOf(e)>-1}function Qn(t){return t.trim().split(/\s+/g)}function Jn(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function ti(t){return Array.prototype.slice.call(t,0)}function ei(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];Jn(o,s)<0&&i.push(t[r]),o[r]=s,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]?1:0}):i.sort()),i}function ni(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r<PO.length;){if(n=PO[r],(i=n?n+o:e)in t)return i;r++}}function ii(){return LO++}function oi(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function ri(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Gn(t.options.enable,[t])&&n.handler(e)},this.init()}function si(t){var e=t.options.inputClass;return new(e||(RO?yi:FO?wi:MO?Ci:vi))(t,ai)}function ai(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&VO&&i-o==0,s=e&(qO|YO)&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,li(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function li(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=pi(e)),o>1&&!n.firstMultiple?n.firstMultiple=pi(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=e.center=di(i);e.timeStamp=BO(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=bi(a,l),e.distance=fi(a,l),ci(n,e),e.offsetDirection=_i(e.deltaX,e.deltaY);var c=hi(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=NO(c.x)>NO(c.y)?c.x:c.y,e.scale=s?gi(s.pointers,i):1,e.rotation=s?mi(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ui(n,e);var u=t.element;$n(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function ci(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==VO&&r.eventType!==qO||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function ui(t,e){var n,i,o,r,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=YO&&(a>HO||void 0===s.velocity)){var l=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,u=hi(a,l,c);i=u.x,o=u.y,n=NO(u.x)>NO(u.y)?u.x:u.y,r=_i(l,c),t.lastInterval=e}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=r}function pi(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:AO(t.pointers[n].clientX),clientY:AO(t.pointers[n].clientY)},n++;return{timeStamp:BO(),pointers:e,center:di(e),deltaX:t.deltaX,deltaY:t.deltaY}}function di(t){var e=t.length;if(1===e)return{x:AO(t[0].clientX),y:AO(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:AO(n/e),y:AO(i/e)}}function hi(t,e,n){return{x:e/t||0,y:n/t||0}}function _i(t,e){return t===e?GO:NO(t)>=NO(e)?t<0?XO:UO:e<0?ZO:$O}function fi(t,e,n){n||(n=tj);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function bi(t,e,n){n||(n=tj);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function mi(t,e){return bi(e[1],e[0],ej)+bi(t[1],t[0],ej)}function gi(t,e){return fi(e[0],e[1],ej)/fi(t[0],t[1],ej)}function vi(t,e){this.evEl=ij,this.evWin=oj,this.allow=!0,this.pressed=!1,ri.apply(this,arguments)}function yi(){this.evEl=aj,this.evWin=lj,ri.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Oi(){this.evTarget=uj,this.evWin=pj,this.started=!1,ri.apply(this,arguments)}function ji(t,e){var n=ti(t.touches),i=ti(t.changedTouches);return e&(qO|YO)&&(n=ei(n.concat(i),"identifier",!0)),[n,i]}function wi(t,e){this.evTarget=hj,this.targetIds={},ri.apply(this,arguments)}function Si(t,e){var n=ti(t.touches),i=this.targetIds;if(e&(VO|WO)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=ti(t.changedTouches),a=[],l=this.target;if(r=n.filter(function(t){return $n(t.target,l)}),e===VO)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),e&(qO|YO)&&delete i[s[o].identifier],o++;return a.length?[ei(r.concat(a),"identifier",!0),a]:void 0}function Ci(){ri.apply(this,arguments);var t=Yn(this.handler,this);this.touch=new wi(this.manager,t),this.mouse=new vi(this.manager,t)}function ki(t,e){this.manager=t,this.set(e)}function Ti(t){if(Kn(t,gj))return gj;var e=Kn(t,vj),n=Kn(t,yj);return e&&n?gj:e||n?e?vj:yj:Kn(t,mj)?mj:bj}function xi(t){this.options=Object.assign({},this.defaults,t||{}),this.id=ii(),this.manager=null,this.options.enable=Xn(this.options.enable,!0),this.state=Oj,this.simultaneous={},this.requireFail=[]}function Ei(t){return t&kj?"cancel":t&Sj?"end":t&wj?"move":t&jj?"start":""}function Pi(t){return t==$O?"down":t==ZO?"up":t==XO?"left":t==UO?"right":""}function Ii(t,e){var n=e.manager;return n?n.get(t):t}function Di(){xi.apply(this,arguments)}function Ai(){Di.apply(this,arguments),this.pX=null,this.pY=null}function Ni(){Di.apply(this,arguments)}function Bi(){xi.apply(this,arguments),this._timer=null,this._input=null}function Li(){Di.apply(this,arguments)}function zi(){Di.apply(this,arguments)}function Mi(){xi.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ri(t,e){return e=e||{},e.recognizers=Xn(e.recognizers,Tj.preset),new Fi(t,e)}function Fi(t,e){this.options=Object.assign({},Tj,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=si(this),this.touchAction=new ki(this,this.options.touchAction),Hi(this,!0),Wn(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Hi(t,e){var n=t.element;n.style&&Wn(t.options.cssProps,function(t,i){n.style[ni(n.style,i)]=e?t:""})}function Vi(t,e){var n=EO.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}function Wi(t,e){var n=new xj,i=t.win(),o=t.doc();return t.timeout(function(){i.addEventListener("online",function(t){n.publish("app:online",t)},!1),i.addEventListener("offline",function(t){n.publish("app:offline",t)},!1),i.addEventListener("orientationchange",function(t){n.publish("app:rotated",t)}),i.addEventListener("statusTap",function(){var n=o.elementFromPoint(t.width()/2,t.height()/2);if(n){var i=n.closest(".scroll-content");if(i){var r=i.style,s=new $l(null,t,e);s._el=i,r.WebkitBackfaceVisibility="hidden",r.WebkitTransform="translate3d(0,0,0)",e.write(function(){function e(){r.overflow="",r.WebkitBackfaceVisibility="",r.WebkitTransform=""}r.overflow="hidden";var n=t.timeout(function(){e()},400);s.scrollTo(0,0,300).then(function(){t.cancelTimeout(n),e()})})}}})},2e3),n}function qi(t,e){return function(){return Wi(t,e)}}function Yi(t){var e=t.win();return!(!e.Ionic||!0!==e.Ionic.keyboardResizes)}function Gi(){return Pj}function Xi(t){return function(){t.setModeConfig("ios",Dj),t.setModeConfig("md",Aj),t.setModeConfig("wp",Nj)}}function Ui(t,e,n){return"path"===n.get("locationStrategy")?new Lj.p(t,e):new Lj.d(t,e)}function Zi(t){return Qo._37(2,[(t()(),Qo._17(0,null,null,1,"span",[["class","button-inner"]],null,null,null,null,null)),Qo._30(null,0),(t()(),Qo._17(0,null,null,0,"div",[["class","button-effect"]],null,null,null,null,null))],null,null)}function $i(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","action-sheet-title"]],[[8,"id",0]],null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,Qo._20(1,"",n.hdrId,"")),t(e,1,0,n.d.title)})}function Ki(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","action-sheet-sub-title"]],[[8,"id",0]],null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,Qo._20(1,"",n.descId,"")),t(e,1,0,n.d.subTitle)})}function Qi(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-icon",[["class","action-sheet-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),Qo._15(147456,null,0,Bl,[er,Qo.p,Qo.N],{name:[0,"name"]},null)],function(t,e){t(e,1,0,e.parent.context.$implicit.icon)},function(t,e){t(e,0,0,Qo._31(e,1)._hidden)})}function Ji(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,5,"button",[["class","disable-hover"],["ion-button","action-sheet-button"]],[[1,"icon-start",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.click(t.context.$implicit)&&i),i},Zi,iw)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._15(1097728,null,0,ll,[[8,"action-sheet-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._11(16777216,null,0,1,null,Qi)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._36(0,["",""]))],function(t,e){t(e,1,0,"disable-hover",e.context.$implicit.cssClass),t(e,4,0,e.context.$implicit.icon)},function(t,e){t(e,0,0,e.context.$implicit.icon?"":null),t(e,5,0,e.context.$implicit.text)})}function to(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-icon",[["class","action-sheet-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),Qo._15(147456,null,0,Bl,[er,Qo.p,Qo.N],{name:[0,"name"]},null)],function(t,e){t(e,1,0,e.component.cancelButton.icon)},function(t,e){t(e,0,0,Qo._31(e,1)._hidden)})}function eo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,6,"div",[["class","action-sheet-group action-sheet-group-cancel"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,5,"button",[["class","action-sheet-cancel disable-hover"],["ion-button","action-sheet-button"]],[[1,"icon-start",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.click(o.cancelButton)&&i),i},Zi,iw)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._15(1097728,null,0,ll,[[8,"action-sheet-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._11(16777216,null,0,1,null,to)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._36(0,["",""]))],function(t,e){var n=e.component;t(e,2,0,"action-sheet-cancel disable-hover",n.cancelButton.cssClass),t(e,5,0,n.cancelButton.icon)},function(t,e){var n=e.component;t(e,1,0,n.cancelButton.icon?"":null),t(e,6,0,n.cancelButton.text)})}function no(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[2,"backdrop-no-tappable",null]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,null,10,"div",[["class","action-sheet-wrapper"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,9,"div",[["class","action-sheet-container"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,6,"div",[["class","action-sheet-group"]],null,null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,$i)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._11(16777216,null,null,1,null,Ki)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._11(16777216,null,null,1,null,Ji)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._11(16777216,null,null,1,null,eo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,6,0,n.d.title),t(e,8,0,n.d.subTitle),t(e,10,0,n.d.buttons),t(e,12,0,n.cancelButton)},function(t,e){t(e,0,0,!e.component.d.enableBackdropDismiss)})}function io(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,0,"h2",[["class","alert-title"]],[[8,"id",0],[8,"innerHTML",1]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,Qo._20(1,"",n.hdrId,""),n.d.title)})}function oo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,0,"h3",[["class","alert-sub-title"]],[[8,"id",0],[8,"innerHTML",1]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,Qo._20(1,"",n.subHdrId,""),n.d.subTitle)})}function ro(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,5,"button",[["class","alert-tappable alert-radio"],["ion-button","alert-radio-button"],["role","radio"]],[[1,"aria-checked",0],[8,"disabled",0],[1,"id",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.rbClick(t.context.$implicit)&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,"alert-radio-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,0,1,"div",[["class","alert-radio-icon"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,0,"div",[["class","alert-radio-inner"]],null,null,null,null,null)),(t()(),Qo._17(0,null,0,1,"div",[["class","alert-radio-label"]],null,null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){t(e,0,0,e.context.$implicit.checked,e.context.$implicit.disabled,e.context.$implicit.id),t(e,5,0,e.context.$implicit.label)})}function so(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"div",[["class","alert-radio-group"],["role","radiogroup"]],[[1,"aria-labelledby",0],[1,"aria-activedescendant",0]],null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,ro)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.d.inputs)},function(t,e){var n=e.component;t(e,0,0,n.hdrId,n.activeId)})}function ao(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,5,"button",[["class","alert-tappable alert-checkbox"],["ion-button","alert-checkbox-button"],["role","checkbox"]],[[1,"aria-checked",0],[1,"id",0],[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.cbClick(t.context.$implicit)&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,"alert-checkbox-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,0,1,"div",[["class","alert-checkbox-icon"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,0,"div",[["class","alert-checkbox-inner"]],null,null,null,null,null)),(t()(),Qo._17(0,null,0,1,"div",[["class","alert-checkbox-label"]],null,null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){t(e,0,0,e.context.$implicit.checked,e.context.$implicit.id,e.context.$implicit.disabled),t(e,5,0,e.context.$implicit.label)})}function lo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"div",[["class","alert-checkbox-group"]],null,null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,ao)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.d.inputs)},null)}function co(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,6,"div",[["class","alert-input-wrapper"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,5,"input",[["class","alert-input"],["dir","auto"]],[[8,"placeholder",0],[8,"type",0],[8,"min",0],[8,"max",0],[1,"id",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==Qo._31(t,2)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==Qo._31(t,2).onTouched()&&i),"compositionstart"===e&&(i=!1!==Qo._31(t,2)._compositionStart()&&i),"compositionend"===e&&(i=!1!==Qo._31(t,2)._compositionEnd(n.target.value)&&i),"ngModelChange"===e&&(i=!1!==(t.context.$implicit.value=n)&&i),i},null,null)),Qo._15(16384,null,0,xl.b,[Qo.O,Qo.p,[2,xl.a]],null,null),Qo._33(1024,null,xl.e,function(t){return[t]},[xl.b]),Qo._15(671744,null,0,xl.h,[[8,null],[8,null],[8,null],[2,xl.e]],{model:[0,"model"]},{update:"ngModelChange"}),Qo._33(2048,null,xl.f,null,[xl.h]),Qo._15(16384,null,0,xl.g,[xl.f],null,null)],function(t,e){t(e,4,0,e.context.$implicit.value)},function(t,e){t(e,1,1,[e.context.$implicit.placeholder,e.context.$implicit.type,e.context.$implicit.min,e.context.$implicit.max,e.context.$implicit.id,Qo._31(e,6).ngClassUntouched,Qo._31(e,6).ngClassTouched,Qo._31(e,6).ngClassPristine,Qo._31(e,6).ngClassDirty,Qo._31(e,6).ngClassValid,Qo._31(e,6).ngClassInvalid,Qo._31(e,6).ngClassPending])})}function uo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"div",[["class","alert-input-group"]],null,null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,co)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.d.inputs)},null)}function po(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,7,"div",[],null,null,null,null,null)),Qo._15(16384,null,0,Lj.m,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Qo._11(16777216,null,null,1,null,so)),Qo._15(278528,null,0,Lj.n,[Qo.Z,Qo.T,Lj.m],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Qo._11(16777216,null,null,1,null,lo)),Qo._15(278528,null,0,Lj.n,[Qo.Z,Qo.T,Lj.m],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Qo._11(16777216,null,null,1,null,uo)),Qo._15(16384,null,0,Lj.o,[Qo.Z,Qo.T,Lj.m],null,null)],function(t,e){t(e,1,0,e.component.inputType);t(e,3,0,"radio");t(e,5,0,"checkbox")},null)}function ho(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,3,"button",[["ion-button","alert-button"]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.btnClick(t.context.$implicit)&&i),i},Zi,iw)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{ngClass:[0,"ngClass"]},null),Qo._15(1097728,null,0,ll,[[8,"alert-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._36(0,["",""]))],function(t,e){t(e,1,0,e.context.$implicit.cssClass)},function(t,e){t(e,3,0,e.context.$implicit.text)})}function _o(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[2,"backdrop-no-tappable",null]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,null,13,"div",[["class","alert-wrapper"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,4,"div",[["class","alert-head"]],null,null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,io)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._11(16777216,null,null,1,null,oo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._17(0,null,null,0,"div",[["class","alert-message"]],[[8,"id",0],[8,"innerHTML",1]],null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,po)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._17(0,null,null,4,"div",[["class","alert-button-group"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._32({"alert-button-group-vertical":0}),(t()(),Qo._11(16777216,null,null,1,null,ho)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,5,0,n.d.title),t(e,7,0,n.d.subTitle),t(e,10,0,n.d.inputs.length);t(e,12,0,"alert-button-group",t(e,13,0,n.d.buttons.length>2)),t(e,15,0,n.d.buttons)},function(t,e){var n=e.component;t(e,0,0,!n.d.enableBackdropDismiss),t(e,8,0,Qo._20(1,"",n.msgId,""),n.d.message)})}function fo(t){return Qo._37(0,[Qo._34(402653184,1,{_viewport:0}),Qo._34(402653184,2,{_modalPortal:0}),Qo._34(402653184,3,{_overlayPortal:0}),Qo._34(402653184,4,{_loadingPortal:0}),Qo._34(402653184,5,{_toastPortal:0}),(t()(),Qo._17(16777216,[[1,3],["viewport",1]],null,0,"div",[["app-viewport",""]],null,null,null,null,null)),(t()(),Qo._17(16777216,[["modalPortal",1]],null,1,"div",[["overlay-portal",""]],null,null,null,null,null)),Qo._15(147456,[[2,4]],0,Rs,[Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],Qo.Z,es,Qo.q],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),Qo._17(16777216,[["overlayPortal",1]],null,1,"div",[["overlay-portal",""]],null,null,null,null,null)),Qo._15(147456,[[3,4]],0,Rs,[Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],Qo.Z,es,Qo.q],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),Qo._17(16777216,[["loadingPortal",1]],null,1,"div",[["class","loading-portal"],["overlay-portal",""]],null,null,null,null,null)),Qo._15(147456,[[4,4]],0,Rs,[Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],Qo.Z,es,Qo.q],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),Qo._17(16777216,[["toastPortal",1]],null,1,"div",[["class","toast-portal"]],null,null,null,null,null)),Qo._15(147456,[[5,4]],0,Rs,[Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],Qo.Z,es,Qo.q],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),Qo._17(0,null,null,1,"div",[["class","click-block"]],null,null,null,null,null)),Qo._15(16384,null,0,zj,[Mr,er,yr,Qo.p,Qo.N],null,null)],function(t,e){t(e,7,0,"");t(e,9,0,"");t(e,11,0,"");t(e,13,0,1e4)},null)}function bo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,":svg:svg",[["viewBox","0 0 64 64"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.l,[Qo.B,Qo.p,Qo.N],{ngStyle:[0,"ngStyle"]},null),(t()(),Qo._17(0,null,null,0,":svg:circle",[["transform","translate(32,32)"]],[[1,"r",0]],null,null,null,null))],function(t,e){t(e,1,0,e.context.$implicit.style)},function(t,e){t(e,2,0,e.context.$implicit.r)})}function mo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,":svg:svg",[["viewBox","0 0 64 64"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.l,[Qo.B,Qo.p,Qo.N],{ngStyle:[0,"ngStyle"]},null),(t()(),Qo._17(0,null,null,0,":svg:line",[["transform","translate(32,32)"]],[[1,"y1",0],[1,"y2",0]],null,null,null,null))],function(t,e){t(e,1,0,e.context.$implicit.style)},function(t,e){t(e,2,0,e.context.$implicit.y1,e.context.$implicit.y2)})}function go(t){return Qo._37(2,[(t()(),Qo._11(16777216,null,null,1,null,bo)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._11(16777216,null,null,1,null,mo)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._c),t(e,3,0,n._l)},null)}function vo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"div",[["class","loading-spinner"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,1,"ion-spinner",[],[[2,"spinner-paused",null]],null,null,go,_w)),Qo._15(114688,null,0,Eg,[er,Qo.p,Qo.N],{name:[0,"name"]},null)],function(t,e){t(e,2,0,e.component.d.spinner)},function(t,e){t(e,1,0,Qo._31(e,2)._paused)})}function yo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,0,"div",[["class","loading-content"]],[[8,"innerHTML",1]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.d.content)})}function Oo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[8,"hidden",0],[2,"backdrop-no-tappable",null]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,null,4,"div",[["class","loading-wrapper"]],null,null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,vo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._11(16777216,null,null,1,null,yo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,n.showSpinner),t(e,6,0,n.d.content)},function(t,e){var n=e.component;t(e,0,0,!n.d.showBackdrop,!n.d.enableBackdropDismiss)})}function jo(t){return Qo._37(0,[Qo._34(402653184,1,{_viewport:0}),(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[2,"backdrop-no-tappable",null]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o._bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,null,1,"div",[["class","modal-wrapper"]],null,null,null,null,null)),(t()(),Qo._17(16777216,[[1,3],["viewport",1]],null,0,"div",[["nav-viewport",""]],null,null,null,null,null))],null,function(t,e){t(e,1,0,!e.component._bdDismiss)})}function wo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","picker-prefix"]],[[4,"width",null]],null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.col.prefixWidth),t(e,1,0,n.col.prefix)})}function So(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"button",[["class","picker-opt"],["disable-activated",""]],[[2,"picker-opt-disabled",null]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.optClick(n,t.context.index)&&i),i},null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){t(e,0,0,e.context.$implicit.disabled),t(e,1,0,e.context.$implicit.text)})}function Co(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","picker-suffix"]],[[4,"width",null]],null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.col.suffixWidth),t(e,1,0,n.col.suffix)})}function ko(t){return Qo._37(0,[Qo._34(402653184,1,{colEle:0}),(t()(),Qo._11(16777216,null,null,1,null,wo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._17(0,[[1,0],["colEle",1]],null,2,"div",[["class","picker-opts"]],[[4,"max-width",null]],null,null,null,null)),(t()(),Qo._11(16777216,null,null,1,null,So)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._11(16777216,null,null,1,null,Co)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.col.prefix),t(e,5,0,n.col.options),t(e,7,0,n.col.suffix)},function(t,e){t(e,3,0,e.component.col.optionsWidth)})}function To(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,7,"div",[["class","picker-toolbar-button"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Qo._36(null,["\n          "])),(t()(),Qo._17(0,null,null,3,"button",[["class","picker-button"],["clear",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.btnClick(t.context.$implicit)&&i),i},Zi,iw)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],{clear:[0,"clear"]},null),(t()(),Qo._36(0,["\n            ","\n          "])),(t()(),Qo._36(null,["\n        "]))],function(t,e){t(e,1,0,"picker-toolbar-button",e.context.$implicit.cssRole);t(e,4,0,"picker-button",e.context.$implicit.cssClass);t(e,5,0,"")},function(t,e){t(e,6,0,e.context.$implicit.text)})}function xo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","picker-col"]],[[4,"max-width",null],[2,"picker-opts-left",null],[2,"picker-opts-right",null]],[[null,"ionChange"]],function(t,e,n){var i=!0,o=t.component;return"ionChange"===e&&(i=!1!==o._colChange(n)&&i),i},ko,jw)),Qo._15(4374528,[[1,4]],0,iu,[er,yr,Qo.p,Qo.G,eu,yr,es],{col:[0,"col"]},{ionChange:"ionChange"})],function(t,e){t(e,1,0,e.context.$implicit)},function(t,e){t(e,0,0,Qo._31(e,1).col.columnWidth,"left"==Qo._31(e,1).col.align,"right"==Qo._31(e,1).col.align)})}function Eo(t){return Qo._37(0,[Qo._34(671088640,1,{_cols:1}),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,17,"div",[["class","picker-wrapper"]],null,null,null,null,null)),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._17(0,null,null,4,"div",[["class","picker-toolbar"]],null,null,null,null,null)),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._11(16777216,null,null,1,null,To)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._17(0,null,null,8,"div",[["class","picker-columns"]],null,null,null,null,null)),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,0,"div",[["class","picker-above-highlight"]],null,null,null,null,null)),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._11(16777216,null,null,1,null,xo)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,0,"div",[["class","picker-below-highlight"]],null,null,null,null,null)),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._36(null,["\n  "]))],function(t,e){var n=e.component;t(e,10,0,n.d.buttons),t(e,18,0,n.d.columns)},null)}function Po(t){return Qo._37(0,[Qo._34(402653184,1,{_viewport:0}),(t()(),Qo._17(0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o._bdClick()&&i),i},null,null)),Qo._15(16384,null,0,el,[Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,null,4,"div",[["class","popover-wrapper"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,0,"div",[["class","popover-arrow"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,2,"div",[["class","popover-content"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,1,"div",[["class","popover-viewport"]],null,null,null,null,null)),(t()(),Qo._17(16777216,[[1,3],["viewport",1]],null,0,"div",[["nav-viewport",""]],null,null,null,null,null))],null,function(t,e){t(e,1,0,!e.component.d.showBackdrop)})}function Io(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-icon",[["name","reorder"],["role","img"]],[[2,"hide",null]],null,null,null,null)),Qo._15(147456,null,0,Bl,[er,Qo.p,Qo.N],{name:[0,"name"]},null)],function(t,e){t(e,1,0,"reorder")},function(t,e){t(e,0,0,Qo._31(e,1)._hidden)})}function Do(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"ion-label",[],null,null,null,null,null)),Qo._15(16384,[[1,4]],0,Rl,[er,Qo.p,Qo.N,[8,null],[8,null],[8,null],[8,null]],null,null),Qo._30(null,2)],null,null)}function Ao(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-reorder",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==Qo._31(t,1).onClick(n)&&i),i},Io,Pw)),Qo._15(49152,null,0,qd,[Qo.p],null,null)],null,null)}function No(t){return Qo._37(2,[Qo._34(671088640,1,{viewLabel:0}),Qo._30(null,0),(t()(),Qo._17(0,null,null,8,"div",[["class","item-inner"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,4,"div",[["class","input-wrapper"]],null,null,null,null,null)),Qo._30(null,1),(t()(),Qo._11(16777216,null,null,1,null,Do)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),Qo._30(null,3),Qo._30(null,4),(t()(),Qo._11(16777216,null,null,1,null,Ao)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._17(0,null,null,0,"div",[["class","button-effect"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,6,0,n._viewLabel),t(e,10,0,n._hasReorder)},null)}function Bo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,3,"div",[["class","radio-icon"]],[[2,"radio-checked",null]],null,null,null,null)),(t()(),Qo._36(null,[" "])),(t()(),Qo._17(0,null,null,0,"div",[["class","radio-inner"]],null,null,null,null,null)),(t()(),Qo._36(null,[" "])),(t()(),Qo._36(null,[" "])),(t()(),Qo._17(0,null,null,2,"button",[["class","item-cover"],["ion-button","item-cover"],["role","radio"],["type","button"]],[[8,"id",0],[1,"aria-checked",0],[1,"aria-labelledby",0],[1,"aria-disabled",0]],null,null,Zi,iw)),Qo._15(1097728,null,0,ll,[[8,"item-cover"],er,Qo.p,Qo.N],null,null),(t()(),Qo._36(0,[" "]))],null,function(t,e){var n=e.component;t(e,0,0,n._checked),t(e,5,0,n.id,n._checked,n._labelId,n._disabled)})}function Lo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,13,"ion-item",[["class","item item-block"]],null,null,null,No,Dw)),Qo._15(1097728,null,3,Pc,[El,er,Qo.p,Qo.N,[2,jc]],null,null),Qo._34(335544320,2,{contentLabel:0}),Qo._34(603979776,3,{_buttons:1}),Qo._34(603979776,4,{_icons:1}),Qo._15(16384,null,0,hd,[],null,null),(t()(),Qo._36(2,["\n        "])),(t()(),Qo._17(0,null,1,2,"ion-label",[],null,null,null,null,null)),Qo._15(16384,[[2,4]],0,Rl,[er,Qo.p,Qo.N,[8,null],[8,null],[8,null],[8,null]],null,null),(t()(),Qo._36(null,["",""])),(t()(),Qo._36(2,["\n        "])),(t()(),Qo._17(0,null,4,1,"ion-radio",[],[[2,"radio-disabled",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==Qo._31(t,12)._click(n)&&i),i},Bo,Nw)),Qo._15(245760,null,0,cb,[El,er,Qo.p,Qo.N,[2,Pc],[2,nb]],{value:[0,"value"],checked:[1,"checked"],disabled:[2,"disabled"]},null),(t()(),Qo._36(2,["\n      "]))],function(t,e){t(e,12,0,e.context.$implicit.value,e.context.$implicit.checked,e.context.$implicit.disabled)},function(t,e){t(e,9,0,e.context.$implicit.text),t(e,11,0,Qo._31(e,12)._disabled)})}function zo(t){return Qo._37(0,[(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,11,"ion-list",[["radio-group",""],["role","radiogroup"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0,o=t.component;return"ngModelChange"===e&&(i=!1!==(o.value=n)&&i),i},null,null)),Qo._15(1064960,null,1,nb,[Qo.N,Qo.p,Qo.i],null,null),Qo._34(335544320,1,{_header:0}),Qo._33(1024,null,xl.e,function(t){return[t]},[nb]),Qo._15(671744,null,0,xl.h,[[8,null],[8,null],[8,null],[2,xl.e]],{model:[0,"model"]},{update:"ngModelChange"}),Qo._33(2048,null,xl.f,null,[xl.h]),Qo._15(16384,null,0,xl.g,[xl.f],null,null),Qo._15(16384,null,0,kd,[er,Qo.p,Qo.N,yr,_s,es],null,null),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._11(16777216,null,null,1,null,Lo)),Qo._15(802816,null,0,Lj.h,[Qo.Z,Qo.T,Qo.A],{ngForOf:[0,"ngForOf"]},null),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._36(null,["\n  "]))],function(t,e){var n=e.component;t(e,5,0,n.value),t(e,11,0,n.options)},function(t,e){t(e,1,0,Qo._31(e,7).ngClassUntouched,Qo._31(e,7).ngClassTouched,Qo._31(e,7).ngClassPristine,Qo._31(e,7).ngClassDirty,Qo._31(e,7).ngClassValid,Qo._31(e,7).ngClassInvalid,Qo._31(e,7).ngClassPending)})}function Mo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","toast-message"]],[[8,"id",0]],null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,Qo._20(1,"",n.hdrId,"")),t(e,1,0,n.d.message)})}function Ro(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"button",[["class","toast-button"],["clear",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.cbClick()&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],{clear:[0,"clear"]},null),(t()(),Qo._36(0,[" "," "]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,2,0,e.component.d.closeButtonText||"Close")})}function Fo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,10,"div",[["class","toast-wrapper"]],[[2,"toast-bottom",null],[2,"toast-middle",null],[2,"toast-top",null]],null,null,null,null)),(t()(),Qo._36(null,[" "])),(t()(),Qo._17(0,null,null,7,"div",[["class","toast-container"]],null,null,null,null,null)),(t()(),Qo._36(null,[" "])),(t()(),Qo._11(16777216,null,null,1,null,Mo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._36(null,[" "])),(t()(),Qo._11(16777216,null,null,1,null,Ro)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._36(null,[" "])),(t()(),Qo._36(null,[" "]))],function(t,e){var n=e.component;t(e,5,0,n.d.message),t(e,8,0,n.d.showCloseButton)},function(t,e){var n=e.component;t(e,0,0,"bottom"===n.d.position,"middle"===n.d.position,"top"===n.d.position)})}function Ho(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","toolbar-background"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Qo._17(0,null,null,8,"button",[["class","back-button"],["ion-button","bar-button"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.backButtonClick(n)&&i),i},Zi,iw)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._15(1097728,null,0,ll,[[8,"bar-button"],er,Qo.p,Qo.N],null,null),(t()(),Qo._17(0,null,0,2,"ion-icon",[["class","back-button-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._15(147456,null,0,Bl,[er,Qo.p,Qo.N],{name:[0,"name"]},null),(t()(),Qo._17(0,null,0,2,"span",[["class","back-button-text"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Qo._36(null,["",""])),Qo._30(null,0),Qo._30(null,1),Qo._30(null,2),(t()(),Qo._17(0,null,null,2,"div",[["class","toolbar-content"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._30(null,3)],function(t,e){var n=e.component;t(e,1,0,"toolbar-background","toolbar-background-"+n._mode);t(e,3,0,"back-button","back-button-"+n._mode);t(e,6,0,"back-button-icon","back-button-icon-"+n._mode),t(e,7,0,n._bbIcon);t(e,9,0,"back-button-text","back-button-text-"+n._mode);t(e,15,0,"toolbar-content","toolbar-content-"+n._mode)},function(t,e){var n=e.component;t(e,2,0,n._hideBb),t(e,5,0,Qo._31(e,7)._hidden),t(e,10,0,n._backText)})}function Vo(t){return Qo._37(2,[(t()(),Qo._17(0,null,null,2,"div",[["class","toolbar-title"]],null,null,null,null,null)),Qo._15(278528,null,0,Lj.g,[Qo.A,Qo.B,Qo.p,Qo.N],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Qo._30(null,0)],function(t,e){t(e,1,0,"toolbar-title","toolbar-title-"+e.component._mode)},null)}function Wo(t){return Qo._37(2,[Qo._34(402653184,1,{_fixedContent:0}),Qo._34(402653184,2,{_scrollContent:0}),(t()(),Qo._17(0,[[1,0],["fixedContent",1]],null,1,"div",[["class","fixed-content"]],null,null,null,null,null)),Qo._30(null,0),(t()(),Qo._17(0,[[2,0],["scrollContent",1]],null,1,"div",[["class","scroll-content"]],null,null,null,null,null)),Qo._30(null,1),Qo._30(null,2)],null,null)}function qo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","select-placeholder select-text"]],null,null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){t(e,1,0,e.component.placeholder)})}function Yo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","select-text"]],null,null,null,null,null)),(t()(),Qo._36(null,["",""]))],null,function(t,e){var n=e.component;t(e,1,0,n.selectedText||n._text)})}function Go(t){return Qo._37(0,[(t()(),Qo._11(16777216,null,null,1,null,qo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._11(16777216,null,null,1,null,Yo)),Qo._15(16384,null,0,Lj.i,[Qo.Z,Qo.T],{ngIf:[0,"ngIf"]},null),(t()(),Qo._17(0,null,null,1,"div",[["class","select-icon"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,0,"div",[["class","select-icon-inner"]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,1,"button",[["aria-haspopup","true"],["class","item-cover"],["ion-button","item-cover"],["type","button"]],[[8,"id",0],[1,"aria-labelledby",0],[1,"aria-disabled",0]],null,null,Zi,iw)),Qo._15(1097728,null,0,ll,[[8,"item-cover"],er,Qo.p,Qo.N],null,null)],function(t,e){var n=e.component;t(e,1,0,!n._text),t(e,3,0,n._text)},function(t,e){var n=e.component;t(e,6,0,n.id,n._labelId,n._disabled)})}function Xo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,10,"ion-header",[],null,null,null,null,null)),Qo._15(16384,null,0,dy,[er,Qo.p,Qo.N,[2,or]],null,null),(t()(),Qo._36(null,["\n\n  "])),(t()(),Qo._17(0,null,null,6,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Ho,Vw)),Qo._15(49152,null,0,m_,[Mr,[2,or],[2,gs],er,Qo.p,Qo.N],null,null),(t()(),Qo._36(3,["\n    "])),(t()(),Qo._17(0,null,3,2,"ion-title",[],null,null,null,Vo,qw)),Qo._15(49152,null,0,Ty,[er,Qo.p,Qo.N,[2,my],[2,m_]],null,null),(t()(),Qo._36(0,["Modals"])),(t()(),Qo._36(3,["\n  "])),(t()(),Qo._36(null,["\n\n"])),(t()(),Qo._36(null,["\n\n\n"])),(t()(),Qo._17(0,null,null,73,"ion-content",[],[[2,"statusbar-padding",null],[2,"has-refresher",null]],[["window","resize"]],function(t,e,n){var i=!0;return"window:resize"===e&&(i=!1!==Qo._31(t,13).resize()&&i),i},Wo,Gw)),Qo._15(4374528,null,0,oc,[er,yr,es,Qo.p,Qo.N,Mr,Wl,Qo.G,[2,or],[2,gs]],null,null),(t()(),Qo._36(1,["\n\n  "])),(t()(),Qo._17(0,null,1,5,"div",[["padding",""]],null,null,null,null,null)),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,2,"button",[["block",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.openBasicModal()&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],{block:[0,"block"]},null),(t()(),Qo._36(0,["Open Basic Modal"])),(t()(),Qo._36(null,["\n  "])),(t()(),Qo._36(1,["\n\n  "])),(t()(),Qo._17(0,null,1,55,"ion-list",[["no-margin",""]],null,null,null,null,null)),Qo._15(16384,null,0,kd,[er,Qo.p,Qo.N,yr,_s,es],null,null),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,6,"ion-list-header",[["class","item"]],null,null,null,No,Dw)),Qo._15(1097728,null,3,Pc,[El,er,Qo.p,Qo.N,[2,jc]],null,null),Qo._34(335544320,1,{contentLabel:0}),Qo._34(603979776,2,{_buttons:1}),Qo._34(603979776,3,{_icons:1}),Qo._15(16384,null,0,Gd,[er,Qo.N,Qo.p,[8,null]],null,null),(t()(),Qo._36(2,["\n      Enter Parameters to Pass to the Modal\n    "])),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,43,"ion-item",[["class","item item-block"]],null,null,null,No,Dw)),Qo._15(1097728,null,3,Pc,[El,er,Qo.p,Qo.N,[2,jc]],null,null),Qo._34(335544320,4,{contentLabel:0}),Qo._34(603979776,5,{_buttons:1}),Qo._34(603979776,6,{_icons:1}),Qo._15(16384,null,0,hd,[],null,null),(t()(),Qo._36(2,["\n      "])),(t()(),Qo._17(0,null,1,2,"ion-label",[],null,null,null,null,null)),Qo._15(16384,[[4,4]],0,Rl,[er,Qo.p,Qo.N,[8,null],[8,null],[8,null],[8,null]],null,null),(t()(),Qo._36(null,["Parameters"])),(t()(),Qo._36(2,["\n      "])),(t()(),Qo._17(0,null,3,31,"ion-select",[["multiple","true"]],[[2,"select-disabled",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"click"],[null,"keyup.space"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==Qo._31(t,45)._click(n)&&i),"keyup.space"===e&&(i=!1!==Qo._31(t,45)._keyup()&&i),"ngModelChange"===e&&(i=!1!==(o.myParam=n)&&i),i},Go,Uw)),Qo._15(1228800,null,1,gm,[Mr,El,er,Qo.p,Qo.N,[2,Pc],Jr],{multiple:[0,"multiple"]},null),Qo._34(603979776,7,{options:1}),Qo._33(1024,null,xl.e,function(t){return[t]},[gm]),Qo._15(671744,null,0,xl.h,[[8,null],[8,null],[8,null],[2,xl.e]],{model:[0,"model"]},{update:"ngModelChange"}),Qo._33(2048,null,xl.f,null,[xl.h]),Qo._15(16384,null,0,xl.g,[xl.f],null,null),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","nes"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["NES"])),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","n64"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["Nintendo64"])),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","ps"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["PlayStation"])),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","genesis"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["Sega Genesis"])),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","saturn"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["Sega Saturn"])),(t()(),Qo._36(null,["\n        "])),(t()(),Qo._17(0,null,null,2,"ion-option",[["value","snes"]],null,null,null,null,null)),Qo._15(16384,[[7,4]],0,kf,[Qo.p],{value:[0,"value"]},null),(t()(),Qo._36(null,["SNES"])),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._36(2,["\n    "])),(t()(),Qo._36(null,["\n  "])),(t()(),Qo._36(1,["\n\n  "])),(t()(),Qo._17(0,null,1,5,"div",[["padding",""]],null,null,null,null,null)),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,2,"button",[["block",""],["color","danger"],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.openModalWithParams()&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],{color:[0,"color"],block:[1,"block"]},null),(t()(),Qo._36(0,["Open with Parameters"])),(t()(),Qo._36(null,["\n  "])),(t()(),Qo._36(1,["\n\n"])),(t()(),Qo._36(null,["\n"]))],function(t,e){var n=e.component;t(e,18,0,"");t(e,45,0,"true"),t(e,48,0,n.myParam);t(e,53,0,"nes");t(e,57,0,"n64");t(e,61,0,"ps");t(e,65,0,"genesis");t(e,69,0,"saturn");t(e,73,0,"snes");t(e,82,0,"danger","")},function(t,e){t(e,3,0,Qo._31(e,4)._hidden,Qo._31(e,4)._sbPadding),t(e,12,0,Qo._31(e,13).statusbarPadding,Qo._31(e,13)._hasRefresher),t(e,44,0,Qo._31(e,45)._disabled,Qo._31(e,50).ngClassUntouched,Qo._31(e,50).ngClassTouched,Qo._31(e,50).ngClassPristine,Qo._31(e,50).ngClassDirty,Qo._31(e,50).ngClassValid,Qo._31(e,50).ngClassInvalid,Qo._31(e,50).ngClassPending)})}function Uo(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,19,"ion-header",[],null,null,null,null,null)),Qo._15(16384,null,0,dy,[er,Qo.p,Qo.N,[2,or]],null,null),(t()(),Qo._36(null,["\n\n  "])),(t()(),Qo._17(0,null,null,15,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Ho,Vw)),Qo._15(49152,null,0,m_,[Mr,[2,or],[2,gs],er,Qo.p,Qo.N],null,null),(t()(),Qo._36(3,["\n    "])),(t()(),Qo._17(0,null,1,7,"ion-buttons",[["start",""]],null,null,null,null,null)),Qo._15(16384,null,1,Oy,[er,Qo.p,Qo.N,[2,my],[2,m_]],null,null),Qo._34(603979776,1,{_buttons:1}),(t()(),Qo._36(null,["\n      "])),(t()(),Qo._17(0,null,null,2,"button",[["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.dismiss()&&i),i},Zi,iw)),Qo._15(1097728,[[1,4]],0,ll,[[8,""],er,Qo.p,Qo.N],null,null),(t()(),Qo._36(0,["Close"])),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._36(3,["\n    "])),(t()(),Qo._17(0,null,3,2,"ion-title",[],null,null,null,Vo,qw)),Qo._15(49152,null,0,Ty,[er,Qo.p,Qo.N,[2,my],[2,m_]],null,null),(t()(),Qo._36(0,["Modals"])),(t()(),Qo._36(3,["\n  "])),(t()(),Qo._36(null,["\n\n"])),(t()(),Qo._36(null,["\n\n\n"])),(t()(),Qo._17(0,null,null,21,"ion-content",[["padding",""]],[[2,"statusbar-padding",null],[2,"has-refresher",null]],[["window","resize"]],function(t,e,n){var i=!0;return"window:resize"===e&&(i=!1!==Qo._31(t,22).resize()&&i),i},Wo,Gw)),Qo._15(4374528,null,0,oc,[er,yr,es,Qo.p,Qo.N,Mr,Wl,Qo.G,[2,or],[2,gs]],null,null),(t()(),Qo._36(1,["\n  "])),(t()(),Qo._17(0,null,1,7,"div",[],[[8,"hidden",0]],null,null,null,null)),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Qo._36(null,["Parameters passed:"])),(t()(),Qo._36(null,["\n\n    "])),(t()(),Qo._17(0,null,null,1,"pre",[["style","background-color: #f8f8f8"]],null,null,null,null,null)),(t()(),Qo._36(null,["selections: [\n  ","\n]"])),(t()(),Qo._36(null,["\n\n  "])),(t()(),Qo._36(1,["\n  "])),(t()(),Qo._17(0,null,1,4,"div",[],[[8,"hidden",0]],null,null,null,null)),(t()(),Qo._36(null,["\n    "])),(t()(),Qo._17(0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Qo._36(null,["No parameters passed."])),(t()(),Qo._36(null,["\n  "])),(t()(),Qo._36(1,["\n  "])),(t()(),Qo._17(0,null,1,2,"button",[["color","danger"],["full",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0,o=t.component;return"click"===e&&(i=!1!==o.dismiss()&&i),i},Zi,iw)),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],{color:[0,"color"],full:[1,"full"]},null),(t()(),Qo._36(0,["Close Modal"])),(t()(),Qo._36(1,["\n\n"])),(t()(),Qo._36(null,["\n"]))],function(t,e){t(e,40,0,"danger","")},function(t,e){var n=e.component;t(e,3,0,Qo._31(e,4)._hidden,Qo._31(e,4)._sbPadding),t(e,21,0,Qo._31(e,22).statusbarPadding,Qo._31(e,22)._hasRefresher),t(e,24,0,!n.myParam),t(e,30,0,n.myParam),t(e,33,0,n.myParam)})}function Zo(t){return Qo._37(0,[Qo._34(402653184,1,{_vp:0}),(t()(),Qo._17(16777216,[[1,3],["viewport",1]],null,0,"div",[["nav-viewport",""]],null,null,null,null,null)),(t()(),Qo._17(0,null,null,0,"div",[["class","nav-decor"]],null,null,null,null,null))],null,null)}function $o(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"ion-nav",[],null,null,null,Zo,nS)),Qo._33(6144,null,vh,null,[Ph]),Qo._15(4374528,null,0,Ph,[[2,or],[2,gs],Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],es,Qo.q],{root:[0,"root"]},null)],function(t,e){t(e,2,0,e.component.root)},null)}Object.defineProperty(e,"__esModule",{value:!0});var Ko=n(5),Qo=n(1),Jo=n(0),tr=!0,er=function(){function t(){this._c={},this._s={},this._modes={},this._trns={}}return t.prototype.init=function(t,e){this._s=t&&_(t)&&!f(t)?t:{},this.plt=e},t.prototype.get=function(t,e){void 0===e&&(e=null);var n=this.plt;if(!u(this._c[t])){if(!u(t))throw"config key is not defined";var i=void 0,o=this._s[t],r=void 0,s=void 0,a=void 0,l=void 0,p=null;if(n){var d=n.getQueryParam("ionic"+t);if(u(d))return this._c[t]="true"===d||"false"!==d&&d;for(var h=n.platforms(),_=0,f=h.length;_<f;_++)this._s.platforms&&(p=this._s.platforms[h[_]])&&(u(p[t])&&(i=p[t]),(p=this.getModeConfig(p.mode))&&u(p[t])&&(r=p[t])),(p=n.getPlatformConfig(h[_]))&&p.settings&&(u(p.settings[t])&&(a=p.settings[t]),(p=this.getModeConfig(p.settings.mode))&&u(p[t])&&(l=p[t]))}(p=this.getModeConfig(this._s.mode))&&u(p[t])&&(s=p[t]),this._c[t]=u(i)?i:u(o)?o:u(r)?r:u(s)?s:u(a)?a:u(l)?l:null}var b=this._c[t];return c(b)&&(b=b(n)),null!==b?b:e},t.prototype.getBoolean=function(t,e){void 0===e&&(e=!1);var n=this.get(t);return null===n?e:"string"==typeof n?"true"===n:!!n},t.prototype.getNumber=function(t,e){void 0===e&&(e=NaN);var n=parseFloat(this.get(t));return isNaN(n)?e:n},t.prototype.set=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];switch(t.length){case 2:this._s[n]=i,delete this._c[n];break;case 3:this._s.platforms=this._s.platforms||{},this._s.platforms[n]=this._s.platforms[n]||{},this._s.platforms[n][i]=t[2],delete this._c[i]}return this},t.prototype.settings=function(t,e){switch(arguments.length){case 0:return this._s;case 1:this._s=t,this._c={};break;case 2:this._s.platforms=this._s.platforms||{},this._s.platforms[t]=e,this._c={}}return this},t.prototype.setModeConfig=function(t,e){this._modes[t]=e},t.prototype.getModeConfig=function(t){return this._modes[t]||null},t.prototype.setTransition=function(t,e){this._trns[t]=e},t.prototype.getTransition=function(t){return this._trns[t]||null},t}(),nr=new Qo.x("USERCONFIG"),ir=function(){function t(t){void 0===t&&(t={}),this.data=t}return t.prototype.get=function(t){return this.data[t]},t}(),or=function(){function t(t,e,n){void 0===n&&(n=sr),this.component=t,this._isHidden=!1,this._state=lr,this.willEnter=new Qo.r,this.didEnter=new Qo.r,this.willLeave=new Qo.r,this.didLeave=new Qo.r,this.willUnload=new Qo.r,this.readReady=new Qo.r,this.writeReady=new Qo.r,this.isOverlay=!1,this._emitter=new Qo.r,this.data=e instanceof ir?e.data:d(e)?e:{},this._cssClass=n,this._ts=Date.now()}return t.prototype.init=function(t){w(t,"componentRef can not be null"),this._ts=Date.now(),this._cmp=t,this.instance=this.instance||t.instance,this._detached=!1},t.prototype._setNav=function(t){this._nav=t},t.prototype._setInstance=function(t){this.instance=t},t.prototype.subscribe=function(t){return this._emitter.subscribe(t)},t.prototype.emit=function(t){this._emitter.emit(t)},t.prototype.onDidDismiss=function(t){this._onDidDismiss=t},t.prototype.onWillDismiss=function(t){this._onWillDismiss=t},t.prototype.dismiss=function(t,e,n){if(void 0===n&&(n={}),!this._nav)return w(this._state===pr,"ViewController does not have a valid _nav"),Promise.resolve(!1);this.isOverlay&&!n.minClickBlockDuration&&(n.minClickBlockDuration=400),this._dismissData=t,this._dismissRole=e;var i=Object.assign({},this._leavingOpts,n);return this._nav.removeView(this,i).then(function(){return t})},t.prototype.getNav=function(){return this._nav},t.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("pageTransition")},t.prototype.getNavParams=function(){return new ir(this.data)},t.prototype.setLeavingOpts=function(t){this._leavingOpts=t},t.prototype.enableBack=function(){return!!this._nav&&!!this._nav.getPrevious(this)},Object.defineProperty(t.prototype,"name",{get:function(){return this.component?this.component.name:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this._nav?this._nav.indexOf(this):-1},enumerable:!0,configurable:!0}),t.prototype.isFirst=function(){return!!this._nav&&this._nav.first()===this},t.prototype.isLast=function(){return!!this._nav&&this._nav.last()===this},t.prototype._domShow=function(t,e){if(this._cmp&&t===this._isHidden){this._isHidden=!t;var n=t?null:"";e.setElementAttribute(this.pageRef().nativeElement,"hidden",n)}},t.prototype.getZIndex=function(){return this._zIndex},t.prototype._setZIndex=function(t,e){if(t!==this._zIndex){this._zIndex=t;var n=this.pageRef();n&&e.setElementStyle(n.nativeElement,"z-index",t)}},t.prototype.pageRef=function(){return this._cmp&&this._cmp.location},t.prototype._setContent=function(t){this._cntDir=t},t.prototype.getContent=function(){return this._cntDir},t.prototype._setContentRef=function(t){this._cntRef=t},t.prototype.contentRef=function(){return this._cntRef},t.prototype._setIONContent=function(t){this._setContent(t),this._ionCntDir=t},t.prototype.getIONContent=function(){return this._ionCntDir},t.prototype._setIONContentRef=function(t){this._setContentRef(t),this._ionCntRef=t},t.prototype.getIONContentRef=function(){return this._ionCntRef},t.prototype._setHeader=function(t){this._hdrDir=t},t.prototype.getHeader=function(){return this._hdrDir},t.prototype._setFooter=function(t){this._ftrDir=t},t.prototype.getFooter=function(){return this._ftrDir},t.prototype._setNavbar=function(t){this._nb=t},t.prototype.getNavbar=function(){return this._nb},t.prototype.hasNavbar=function(){return!!this._nb},t.prototype.setBackButtonText=function(t){this._nb&&this._nb.setBackButtonText(t)},t.prototype.showBackButton=function(t){this._nb&&(this._nb.hideBackButton=!t)},t.prototype._preLoad=function(){w(this._state===cr,"view state must be INITIALIZED"),this._lifecycle("PreLoad")},t.prototype._willLoad=function(){w(this._state===cr,"view state must be INITIALIZED"),this._lifecycle("WillLoad")},t.prototype._didLoad=function(){w(this._state===ur,"view state must be ATTACHED"),this._lifecycle("DidLoad")},t.prototype._willEnter=function(){w(this._state===ur,"view state must be ATTACHED"),this._detached&&this._cmp&&(this._cmp.changeDetectorRef.reattach(),this._detached=!1),this.willEnter.emit(null),this._lifecycle("WillEnter")},t.prototype._didEnter=function(){w(this._state===ur,"view state must be ATTACHED"),this._nb&&this._nb.didEnter(),this.didEnter.emit(null),this._lifecycle("DidEnter")},t.prototype._willLeave=function(t){this.willLeave.emit(null),this._lifecycle("WillLeave"),t&&this._onWillDismiss&&(this._onWillDismiss(this._dismissData,this._dismissRole),this._onWillDismiss=null)},t.prototype._didLeave=function(){this.didLeave.emit(null),this._lifecycle("DidLeave"),!this._detached&&this._cmp&&(this._cmp.changeDetectorRef.detach(),this._detached=!0)},t.prototype._willUnload=function(){this.willUnload.emit(null),this._lifecycle("WillUnload"),this._onDidDismiss&&this._onDidDismiss(this._dismissData,this._dismissRole),this._onDidDismiss=null,this._dismissData=null,this._dismissRole=null},t.prototype._destroy=function(t){if(w(this._state!==pr,"view state must be ATTACHED"),this._cmp){if(t){var e=this._cmp.location.nativeElement;t.setElementAttribute(e,"class",null),t.setElementAttribute(e,"style",null)}this._cmp.destroy()}this._nav=this._cmp=this.instance=this._cntDir=this._cntRef=this._leavingOpts=this._hdrDir=this._ftrDir=this._nb=this._onDidDismiss=this._onWillDismiss=null,this._state=pr},t.prototype._lifecycleTest=function(t){var e=this.instance,n="ionViewCan"+t;if(e&&e[n])try{var i=e[n]();return i instanceof Promise?i:Promise.resolve(!1!==i)}catch(t){return Promise.reject(this.name+" "+n+" error: "+t.message)}return Promise.resolve(!0)},t.prototype._lifecycle=function(t){var e=this.instance,n="ionView"+t;e&&e[n]&&e[n]()},t}();Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(rr=void 0!==Qo.r&&Qo.r)&&rr||Object)],or.prototype,"_emitter",void 0);var rr,sr="ion-page",ar=9999,lr=(function(){}(),1),cr=2,ur=3,pr=4,dr=100,hr="back",_r="forward",fr=function(){function t(){this._menus=[]}return t.prototype.open=function(t){var e=this.get(t);if(e&&!this.isAnimating()){var n=this.getOpen();return n&&e!==n&&n.setOpen(!1,!1),e.open()}return Promise.resolve(!1)},t.prototype.close=function(t){var e;return(e=t?this.get(t):this.getOpen())?e.close():Promise.resolve(!1)},t.prototype.toggle=function(t){var e=this.get(t);if(e&&!this.isAnimating()){var n=this.getOpen();return n&&e!==n&&n.setOpen(!1,!1),e.toggle()}return Promise.resolve(!1)},t.prototype.enable=function(t,e){var n=this.get(e);if(n)return n.enable(t)},t.prototype.swipeEnable=function(t,e){var n=this.get(e);if(n)return n.swipeEnable(t)},t.prototype.isOpen=function(t){if(t){var e=this.get(t);return e&&e.isOpen||!1}return!!this.getOpen()},t.prototype.isEnabled=function(t){var e=this.get(t);return e&&e.enabled||!1},t.prototype.get=function(t){return"left"===t||"right"===t?this._menus.find(function(e){return e.side===t&&e.enabled})||this._menus.find(function(e){return e.side===t})||null:t?this._menus.find(function(e){return e.id===t})||null:this._menus.find(function(t){return t.enabled})||(this._menus.length?this._menus[0]:null)},t.prototype.getOpen=function(){return this._menus.find(function(t){return t.isOpen})},t.prototype.getMenus=function(){return this._menus},t.prototype.isAnimating=function(){return this._menus.some(function(t){return t.isAnimating()})},t.prototype._register=function(t){w(this._menus.indexOf(t)<0,"menu was already registered"),this._menus.push(t)},t.prototype._unregister=function(t){w(this._menus.indexOf(t)>=0,"menu is not registered"),y(this._menus,t)},t.prototype._setActiveMenu=function(t){w(t.enabled,"menu must be enabled"),w(this._menus.indexOf(t)>=0,"menu is not registered");var e=t.side;this._menus.filter(function(n){return n.side===e&&n!==t}).map(function(t){return t.enable(!1)})},t.registerType=function(t,e){br[t]=e},t.create=function(t,e,n){return new br[t](e,n)},t}(),br={},mr=/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i,gr=["value","checked","disabled","readonly","placeholder","type","class","style","id","autofocus","autocomplete","autocorrect"],vr=function(){function t(){this.data={}}return t.prototype.parseUrl=function(t){if(t){var e=t.indexOf("?");if(e>-1)for(var n=t.slice(e+1).split("&"),i=0;i<n.length;i++)if(n[i].indexOf("=")>0){var o=n[i].split("=");o.length>1&&(this.data[o[0].toLowerCase()]=o[1].split("#")[0])}}},t.prototype.get=function(t){return this.data[t.toLowerCase()]},t}(),yr=function(){function t(){var t=this;this._versions={},this._qp=new vr,this._bbActions=[],this._pW=0,this._pH=0,this._lW=0,this._lH=0,this._isPortrait=null,this._uiEvtOpts=!1,this._platforms=[],this.backButton=new Qo.r,this.pause=new Qo.r,this.resume=new Qo.r,this.resize=new Qo.r,this._readyPromise=new Promise(function(e){t._readyResolve=e}),this.backButton.subscribe(function(){console.debug("hardware back button"),t.runBackButtonAction()})}return t.prototype.setWindow=function(t){this._win=t},t.prototype.win=function(){return this._win},t.prototype.setDocument=function(t){this._doc=t},t.prototype.doc=function(){return this._doc},t.prototype.setZone=function(t){this.zone=t},t.prototype.setCssProps=function(t){this.Css=N(t)},t.prototype.is=function(t){return this._platforms.indexOf(t)>-1},t.prototype.platforms=function(){return this._platforms},t.prototype.versions=function(){return this._versions},t.prototype.version=function(){for(var t in this._versions)if(this._versions[t])return this._versions[t];return{}},t.prototype.ready=function(){return this._readyPromise},t.prototype.triggerReady=function(t){var e=this;this.zone.run(function(){e._readyResolve(t)})},t.prototype.prepareReady=function(){function t(){e._doc.removeEventListener("DOMContentLoaded",t,!1),e._win.removeEventListener("load",t,!1),e.triggerReady("dom")}var e=this;"complete"===e._doc.readyState||"interactive"===e._doc.readyState?e.triggerReady("dom"):(e._doc.addEventListener("DOMContentLoaded",t,!1),e._win.addEventListener("load",t,!1))},t.prototype.setDir=function(t,e){this._dir=t,this.isRTL="rtl"===t,!1!==e&&this._doc.documentElement.setAttribute("dir",t)},t.prototype.dir=function(){return this._dir},t.prototype.setLang=function(t,e){this._lang=t,!1!==e&&this._doc.documentElement.setAttribute("lang",t)},t.prototype.lang=function(){return this._lang},t.prototype.exitApp=function(){},t.prototype.registerBackButtonAction=function(t,e){var n=this;void 0===e&&(e=0);var i={fn:t,priority:e};return this._bbActions.push(i),function(){y(n._bbActions,i)}},t.prototype.runBackButtonAction=function(){var t=null;this._bbActions.forEach(function(e){(!t||e.priority>=t.priority)&&(t=e)}),t&&t.fn&&t.fn()},t.prototype.setUserAgent=function(t){this._ua=t},t.prototype.setQueryParams=function(t){this._qp.parseUrl(t)},t.prototype.getQueryParam=function(t){return this._qp.get(t)},t.prototype.url=function(){return this._win.location.href},t.prototype.userAgent=function(){return this._ua||""},t.prototype.setNavigatorPlatform=function(t){this._nPlt=t},t.prototype.navigatorPlatform=function(){return this._nPlt||""},t.prototype.width=function(){return this._calcDim(),this._isPortrait?this._pW:this._lW},t.prototype.height=function(){return this._calcDim(),this._isPortrait?this._pH:this._lH},t.prototype.getElementComputedStyle=function(t,e){return this._win.getComputedStyle(t,e)},t.prototype.getElementFromPoint=function(t,e){return this._doc.elementFromPoint(t,e)},t.prototype.getElementBoundingClientRect=function(t){return t.getBoundingClientRect()},t.prototype.isPortrait=function(){return this._calcDim(),this._isPortrait},t.prototype.isLandscape=function(){return!this.isPortrait()},t.prototype._calcDim=function(){if(null===this._isPortrait||!1===this._isPortrait&&this._win.innerWidth<this._win.innerHeight){var t=this._win,e=t.innerWidth,n=t.innerHeight;t.screen.width>0&&t.screen.height>0&&(e<n?(this._pW<=e&&(console.debug("setting _isPortrait to true"),this._isPortrait=!0,this._pW=e),this._pH<=n&&(console.debug("setting _isPortrait to true"),this._isPortrait=!0,this._pH=n)):(this._lW!==e&&(console.debug("setting _isPortrait to false"),this._isPortrait=!1,this._lW=e),this._lH!==n&&(console.debug("setting _isPortrait to false"),this._isPortrait=!1,this._lH=n)))}},t.prototype.raf=function(t){return this._win.__zone_symbol__requestAnimationFrame(t)},t.prototype.cancelRaf=function(t){return this._win.__zone_symbol__cancelAnimationFrame(t)},t.prototype.timeout=function(t,e){return this._win.__zone_symbol__setTimeout(t,e)},t.prototype.cancelTimeout=function(t){this._win.__zone_symbol__clearTimeout(t)},t.prototype.registerListener=function(t,e,n,i,o){var r,s=this._uiEvtOpts?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return!i.zone&&t.__zone_symbol__addEventListener?(t.__zone_symbol__addEventListener(e,n,s),r=function(){t.__zone_symbol__removeEventListener(e,n,s)}):(t.addEventListener(e,n,s),r=function(){t.removeEventListener(e,n,s)}),o&&o.push(r),r},t.prototype.transitionEnd=function(t,e,n){function i(){r.forEach(function(t){t()})}function o(n){t===n.target&&(i(),e(n))}void 0===n&&(n=!0);var r=[];return t&&(this.registerListener(t,"webkitTransitionEnd",o,{zone:n},r),this.registerListener(t,"transitionend",o,{zone:n},r)),i},t.prototype.windowLoad=function(t){var e,n=this._win,i=this._doc;"complete"===i.readyState?t(n,i):e=this.registerListener(n,"load",function(){e&&e(),t(n,i)},{zone:!1})},t.prototype.isActiveElement=function(t){return!(!t||this.getActiveElement()!==t)},t.prototype.getActiveElement=function(){return this._doc.activeElement},t.prototype.hasFocus=function(t){return!(!t||this.getActiveElement()!==t||t.parentElement.querySelector(":focus")!==t)},t.prototype.hasFocusedTextInput=function(){var t=this.getActiveElement();return!!z(t)&&t.parentElement.querySelector(":focus")===t},t.prototype.focusOutActiveElement=function(){var t=this.getActiveElement();t&&t.blur&&t.blur()},t.prototype._initEvents=function(){var t=this;try{var e=Object.defineProperty({},"passive",{get:function(){t._uiEvtOpts=!0}});this._win.addEventListener("optsTest",null,e)}catch(t){}this.timeout(function(){var e;t.registerListener(t._win,"resize",function(){clearTimeout(e),e=setTimeout(function(){!1===t.hasFocusedTextInput()&&(t._isPortrait=null),t.zone.run(function(){return t.resize.emit()})},200)},{passive:!0,zone:!1})},2e3)},t.prototype.setPlatformConfigs=function(t){this._registry=t||{}},t.prototype.getPlatformConfig=function(t){return this._registry[t]||{}},t.prototype.registry=function(){return this._registry},t.prototype.setDefault=function(t){this._default=t},t.prototype.testQuery=function(t,e){return t.toLowerCase().split(";").indexOf(e)>-1},t.prototype.testNavigatorPlatform=function(t){return new RegExp(t,"i").test(this._nPlt)},t.prototype.matchUserAgentVersion=function(t){if(this._ua&&t){var e=this._ua.match(t);if(e)return{major:e[1],minor:e[2]}}},t.prototype.testUserAgent=function(t){return!!this._ua&&this._ua.indexOf(t)>=0},t.prototype.isPlatformMatch=function(t,e,n){void 0===n&&(n=[]);var i=this._qp.get("ionicplatform");if(i)return this.testQuery(i,t);e=e||[t];for(var o=this._ua.toLowerCase(),r=0;r<e.length;r++)if(o.indexOf(e[r])>-1){for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!1;return!0}return!1},t.prototype.init=function(){this._initEvents();var t,e,n;for(var i in this._registry)(n=this.matchPlatform(i))&&(n.isEngine?e=n:(!t||n.depth>t.depth)&&(t=n));if(t||(t=new Or(this._registry,this._default)),t){e&&(e.child=t,t.parent=e,t=e);for(var o=t;o;)R(this._registry,o),o=o.child;for(o=t.parent;o;)t=o,o=o.parent;for(o=t;o;){if(o.initialize(this),"iphone"===o.name&&"iPad"===this.navigatorPlatform())return this._platforms.push("tablet"),void this._platforms.push("ipad");this._platforms.push(o.name),this._versions[o.name]=o.version(this),o=o.child}}this._platforms.indexOf("mobile")>-1&&-1===this._platforms.indexOf("cordova")&&this._platforms.push("mobileweb")},t.prototype.matchPlatform=function(t){var e=new Or(this._registry,t).getRoot(this);if(e){e.depth=0;for(var n=e.child;n;)e.depth++,n=n.child}return e},t}(),Or=function(){function t(t,e){this.registry=t,this.c=t[e],this.name=e,this.isEngine=this.c.isEngine}return t.prototype.settings=function(){return this.c.settings||{}},t.prototype.superset=function(){return this.c.superset},t.prototype.isMatch=function(t){return this.c.isMatch&&this.c.isMatch(t)||!1},t.prototype.initialize=function(t){this.c.initialize&&this.c.initialize(t)},t.prototype.version=function(t){if(this.c.versionParser){var e=this.c.versionParser(t);if(e){var n=e.major+"."+e.minor;return{str:n,num:parseFloat(n),major:parseInt(e.major,10),minor:parseInt(e.minor,10)}}}},t.prototype.getRoot=function(e){if(this.isMatch(e)){var n=this.getSubsetParents(this.name);if(!n.length)return this;for(var i=null,o=null,r=0;r<n.length;r++)if(i=new t(this.registry,n[r]),i.child=this,o=i.getRoot(e))return this.parent=i,o}return null},t.prototype.getSubsetParents=function(t){var e=[],n=null;for(var i in this.registry)(n=this.registry[i]).subsets&&n.subsets.indexOf(t)>-1&&e.push(i);return e},t}(),jr=function(){function t(t,e,n){this._dur=null,this._es=null,this._rvEs=null,this.hasChildren=!1,this.isPlaying=!1,this.hasCompleted=!1,this.plt=t,this.element(e),this.opts=n}return t.prototype.element=function(t){if(t)if("string"==typeof t){t=this.plt.doc().querySelectorAll(t);for(e=0;e<t.length;e++)this._addEle(t[e])}else if(t.length)for(var e=0;e<t.length;e++)this._addEle(t[e]);else this._addEle(t);return this},t.prototype._addEle=function(t){t.nativeElement&&(t=t.nativeElement),1===t.nodeType&&(this._eL=(this._e=this._e||[]).push(t))},t.prototype.add=function(t){return t.parent=this,this.hasChildren=!0,this._cL=(this._c=this._c||[]).push(t),this},t.prototype.getDuration=function(t){return t&&u(t.duration)?t.duration:null!==this._dur?this._dur:this.parent?this.parent.getDuration():0},t.prototype.isRoot=function(){return!this.parent},t.prototype.duration=function(t){return this._dur=t,this},t.prototype.getEasing=function(){return this._rv&&this._rvEs?this._rvEs:null!==this._es?this._es:this.parent&&this.parent.getEasing()||null},t.prototype.easing=function(t){return this._es=t,this},t.prototype.easingReverse=function(t){return this._rvEs=t,this},t.prototype.from=function(t,e){return this._addProp("from",t,e),this},t.prototype.to=function(t,e,n){var i=this._addProp("to",t,e);return n&&this.afterClearStyles([i.trans?this.plt.Css.transform:t]),this},t.prototype.fromTo=function(t,e,n,i){return this.from(t,e).to(t,n,i)},t.prototype._getProp=function(t){return this._fx?this._fx.find(function(e){return e.name===t}):(this._fx=[],null)},t.prototype._addProp=function(t,e,n){var i=this._getProp(e);if(!i){var o=1===wr[e];i={name:e,trans:o,wc:o?this.plt.Css.transform:e},this._fx.push(i)}var r={val:n,num:null,unit:""};if(i[t]=r,"string"==typeof n&&n.indexOf(" ")<0){var s=n.match(Sr),a=parseFloat(s[1]);isNaN(a)||(r.num=a),r.unit=s[0]!==s[2]?s[2]:""}else"number"==typeof n&&(r.num=n);return i},t.prototype.beforeAddClass=function(t){return(this._bfAdd=this._bfAdd||[]).push(t),this},t.prototype.beforeRemoveClass=function(t){return(this._bfRm=this._bfRm||[]).push(t),this},t.prototype.beforeStyles=function(t){return this._bfSty=t,this},t.prototype.beforeClearStyles=function(t){this._bfSty=this._bfSty||{};for(var e=0;e<t.length;e++)this._bfSty[t[e]]="";return this},t.prototype.beforeAddRead=function(t){return(this._rdFn=this._rdFn||[]).push(t),this},t.prototype.beforeAddWrite=function(t){return(this._wrFn=this._wrFn||[]).push(t),this},t.prototype.afterAddClass=function(t){return(this._afAdd=this._afAdd||[]).push(t),this},t.prototype.afterRemoveClass=function(t){return(this._afRm=this._afRm||[]).push(t),this},t.prototype.afterStyles=function(t){return this._afSty=t,this},t.prototype.afterClearStyles=function(t){this._afSty=this._afSty||{};for(var e=0;e<t.length;e++)this._afSty[t[e]]="";return this},t.prototype.play=function(t){var e=this;this.plt&&(this._isAsync=this._hasDuration(t),this._clearAsync(),this._playInit(t),this.plt.raf(function(){e.plt.raf(e._playDomInspect.bind(e,t))}))},t.prototype.syncPlay=function(){if(this.plt){var t={duration:0};this._isAsync=!1,this._clearAsync(),this._playInit(t),this._playDomInspect(t)}},t.prototype._playInit=function(t){this._twn=!1,this.isPlaying=!0,this.hasCompleted=!1,this._hasDur=this.getDuration(t)>Cr;for(var e=this._c,n=0;n<this._cL;n++)e[n]._playInit(t);this._hasDur&&(this._progress(0),this._willChg(!0))},t.prototype._playDomInspect=function(t){this._beforeAnimation();var e=this.getDuration(t);this._isAsync&&this._asyncEnd(e,!0),this._playProgress(t),this._isAsync&&this.plt&&this.plt.raf(this._playToStep.bind(this,1))},t.prototype._playProgress=function(t){for(var e=this._c,n=0;n<this._cL;n++)e[n]._playProgress(t);this._hasDur?this._setTrans(this.getDuration(t),!1):(this._progress(1),this._setAfterStyles(),this._didFinish(!0))},t.prototype._playToStep=function(t){for(var e=this._c,n=0;n<this._cL;n++)e[n]._playToStep(t);this._hasDur&&this._progress(t)},t.prototype._asyncEnd=function(t,e){w(!this._unrgTrns,"_unrgTrns must be null"),w(!this._tm,"_tm must be null"),w(t>0,"duration can not be 0 in async animations");var n=this;n._unrgTrns=this.plt.transitionEnd(n._transEl(),function(){n._clearAsync(),n._playEnd(),n._didFinishAll(e,!0,!1)},!1),n._tm=n.plt.timeout(function(){console.debug("Animation onTransitionFallback, CSS onTransitionEnd did not fire!"),n._tm=void 0,n._clearAsync(),n._playEnd(e?1:0),n._didFinishAll(e,!0,!1)},t+kr)},t.prototype._playEnd=function(t){for(var e=this._c,n=0;n<this._cL;n++)e[n]._playEnd(t);this._hasDur&&(u(t)&&(this._setTrans(0,!0),this._progress(t)),this._setAfterStyles(),this._willChg(!1))},t.prototype._hasDuration=function(t){if(this.getDuration(t)>Cr)return!0;for(var e=this._c,n=0;n<this._cL;n++)if(e[n]._hasDuration(t))return!0;return!1},t.prototype._hasDomReads=function(){if(this._rdFn&&this._rdFn.length)return!0;for(var t=this._c,e=0;e<this._cL;e++)if(t[e]._hasDomReads())return!0;return!1},t.prototype.stop=function(t){void 0===t&&(t=1),this._clearAsync(),this._hasDur=!0,this._playEnd(t)},t.prototype._clearAsync=function(){this._unrgTrns&&this._unrgTrns(),this._tm&&clearTimeout(this._tm),this._tm=this._unrgTrns=void 0},t.prototype._progress=function(t){var e,n=this._fx,i=this._eL;if(n&&i){this._rv&&(t=-1*t+1);var o,r,s="",a=this._e;for(o=0;o<n.length;o++){var l=n[o];if(l.from&&l.to){var c=l.from.num,u=l.to.num,p=c!==u;if(w(p||!this._isAsync,"in async animations to != from value"),p&&(this._twn=!0),0===t)e=l.from.val;else if(1===t)e=l.to.val;else if(p){var d=(u-c)*t+c,h=l.to.unit;"px"===h&&(d=Math.round(d)),e=d+h}if(null!==e){var _=l.name;if(l.trans)s+=_+"("+e+") ";else for(r=0;r<i;r++)a[r].style[_]=e}}}if(s.length){(!this._rv&&1!==t||this._rv&&0!==t)&&(s+="translateZ(0px)");var f=this.plt.Css.transform;for(o=0;o<a.length;o++)a[o].style[f]=s}}},t.prototype._setTrans=function(t,e){if(this._fx)for(var n,i=this._e,o=e?"linear":this.getEasing(),r=t+"ms",s=this.plt.Css,a=s.transition,l=s.transitionDuration,c=s.transitionTimingFn,u=0;u<this._eL;u++)n=i[u].style,t>0?(n[a]="",n[l]=r,o&&(n[c]=o)):n[a]="none"},t.prototype._beforeAnimation=function(){this._fireBeforeReadFunc(),this._fireBeforeWriteFunc(),this._setBeforeStyles()},t.prototype._setBeforeStyles=function(){var t,e,n=this._c;for(t=0;t<this._cL;t++)n[t]._setBeforeStyles();if(!this._rv){var i,o,r,s=this._bfAdd,a=this._bfRm;for(t=0;t<this._eL;t++){if(i=this._e[t],o=i.classList,s)for(e=0;e<s.length;e++)o.add(s[e]);if(a)for(e=0;e<a.length;e++)o.remove(a[e]);if(this._bfSty)for(r in this._bfSty)i.style[r]=this._bfSty[r]}}},t.prototype._fireBeforeReadFunc=function(){for(var t=this._c,e=0;e<this._cL;e++)t[e]._fireBeforeReadFunc();var n=this._rdFn;if(n)for(e=0;e<n.length;e++)n[e]()},t.prototype._fireBeforeWriteFunc=function(){for(var t=this._c,e=0;e<this._cL;e++)t[e]._fireBeforeWriteFunc();var n=this._wrFn;if(this._wrFn)for(e=0;e<n.length;e++)n[e]()},t.prototype._setAfterStyles=function(){var t,e,n,i,o=this._e;for(t=0;t<this._eL;t++)if(n=o[t],i=n.classList,n.style[this.plt.Css.transitionDuration]=n.style[this.plt.Css.transitionTimingFn]="",this._rv){if(this._bfAdd)for(e=0;e<this._bfAdd.length;e++)i.remove(this._bfAdd[e]);if(this._bfRm)for(e=0;e<this._bfRm.length;e++)i.add(this._bfRm[e]);if(this._bfSty)for(var r in this._bfSty)n.style[r]=""}else{if(this._afAdd)for(e=0;e<this._afAdd.length;e++)i.add(this._afAdd[e]);if(this._afRm)for(e=0;e<this._afRm.length;e++)i.remove(this._afRm[e]);if(this._afSty)for(var r in this._afSty)n.style[r]=this._afSty[r]}},t.prototype._willChg=function(t){var e,n,i=this._fx;if(t&&i){e=[];for(r=0;r<i.length;r++){var o=i[r].wc;"webkitTransform"===o?e.push("transform","-webkit-transform"):e.push(o)}n=e.join(",")}else n="";for(var r=0;r<this._eL;r++)this._e[r].style.willChange=n},t.prototype.progressStart=function(){this._clearAsync(),this._beforeAnimation(),this._progressStart()},t.prototype._progressStart=function(){for(var t=this._c,e=0;e<this._cL;e++)t[e]._progressStart();this._setTrans(0,!0),this._willChg(!0)},t.prototype.progressStep=function(t){t=Math.min(1,Math.max(0,t));for(var e=this._c,n=0;n<this._cL;n++)e[n].progressStep(t);this._rv&&(t=-1*t+1),this._progress(t)},t.prototype.progressEnd=function(t,e,n){void 0===n&&(n=-1),console.debug("Animation, progressEnd, shouldComplete",t,"currentStepValue",e),this._rv&&(e=-1*e+1);var i=t?1:0;Math.abs(e-i)<.05?n=0:n<0&&(n=this._dur),this._isAsync=n>30,this._progressEnd(t,i,n,this._isAsync),this._isAsync&&(this._asyncEnd(n,t),this.plt&&this.plt.raf(this._playToStep.bind(this,i)))},t.prototype._progressEnd=function(t,e,n,i){for(var o=this._c,r=0;r<this._cL;r++)o[r]._progressEnd(t,e,n,i);i?(this.isPlaying=!0,this.hasCompleted=!1,this._hasDur=!0,this._willChg(!0),this._setTrans(n,!1)):(this._progress(e),this._willChg(!1),this._setAfterStyles(),this._didFinish(t))},t.prototype.onFinish=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),n&&(this._fFn=this._fOneFn=void 0),e?(this._fOneFn=this._fOneFn||[],this._fOneFn.push(t)):(this._fFn=this._fFn||[],this._fFn.push(t)),this},t.prototype._didFinishAll=function(t,e,n){for(var i=this._c,o=0;o<this._cL;o++)i[o]._didFinishAll(t,e,n);(e&&this._isAsync||n&&!this._isAsync)&&this._didFinish(t)},t.prototype._didFinish=function(t){if(this.isPlaying=!1,this.hasCompleted=t,this._fFn)for(e=0;e<this._fFn.length;e++)this._fFn[e](this);if(this._fOneFn){for(var e=0;e<this._fOneFn.length;e++)this._fOneFn[e](this);this._fOneFn.length=0}},t.prototype.reverse=function(t){void 0===t&&(t=!0);for(var e=this._c,n=0;n<this._cL;n++)e[n].reverse(t);return this._rv=t,this},t.prototype.destroy=function(){for(var t=this._c,e=0;e<this._cL;e++)t[e].destroy();this._clearAsync(),this.parent=this.plt=this._e=this._rdFn=this._wrFn=null,this._c&&(this._c.length=this._cL=0),this._fFn&&(this._fFn.length=0),this._fOneFn&&(this._fOneFn.length=0)},t.prototype._transEl=function(){for(var t,e=0;e<this._cL;e++)if(t=this._c[e]._transEl())return t;return this._twn&&this._hasDur&&this._eL?this._e[0]:null},t}(),wr={translateX:1,translateY:1,translateZ:1,scale:1,scaleX:1,scaleY:1,scaleZ:1,rotate:1,rotateX:1,rotateY:1,rotateZ:1,skewX:1,skewY:1,perspective:1},Sr=/(^-?\d*\.?\d*)(.*)/,Cr=32,kr=400,Tr=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xr=function(t){function e(e,n,i,o){var r=t.call(this,e,null,o)||this;return r.enteringView=n,r.leavingView=i,r}return Tr(e,t),e.prototype.init=function(){},e.prototype.registerStart=function(t){this._trnsStart=t},e.prototype.start=function(){this._trnsStart&&this._trnsStart(),this._trnsStart=null,this.parent&&this.parent.start()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.parent=this.enteringView=this.leavingView=this._trnsStart=null},e}(jr),Er=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.init=function(){var t=this;this.enteringView&&(this.enteringPage=new jr(this.plt,this.enteringView.pageRef()),this.add(this.enteringPage.beforeAddClass("show-page")),this.beforeAddRead(function(){t.enteringView.readReady.emit()}),this.beforeAddWrite(function(){t.enteringView.writeReady.emit()}))},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.enteringPage&&this.enteringPage.destroy(),this.enteringPage=null},e}(xr),Ir=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Dr="opacity",Ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ir(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.plt,n=e.isRTL?"-99.5%":"99.5%",i=e.isRTL?"33%":"-33%",o=this.enteringView,r=this.leavingView,s=this.opts;this.duration(d(s.duration)?s.duration:500),this.easing(d(s.easing)?s.easing:"cubic-bezier(0.36,0.66,0.04,1)");var a="back"===s.direction,l=o&&o.hasNavbar(),c=r&&r.hasNavbar();if(o){var u=o.pageRef().nativeElement,p=new jr(e,o.contentRef());if(p.element(u.querySelectorAll("ion-header > *:not(ion-navbar),ion-footer > *")),this.add(p),a?p.fromTo("translateX",i,"0%",!0).fromTo(Dr,.8,1,!0):p.beforeClearStyles([Dr]).fromTo("translateX",n,"0%",!0),l){var h=u.querySelector("ion-navbar"),_=new jr(e,h);this.add(_);var f=new jr(e,h.querySelector("ion-title")),b=new jr(e,h.querySelectorAll("ion-buttons,[menuToggle]")),m=new jr(e,h.querySelector(".toolbar-background")),g=new jr(e,h.querySelector(".back-button"));if(_.add(f).add(b).add(m).add(g),f.fromTo(Dr,.01,1,!0),b.fromTo(Dr,.01,1,!0),a)f.fromTo("translateX",i,"0%",!0),o.enableBack()&&g.beforeAddClass("show-back-button").fromTo(Dr,.01,1,!0);else if(f.fromTo("translateX",n,"0%",!0),m.beforeClearStyles([Dr]).fromTo("translateX",n,"0%",!0),o.enableBack()){g.beforeAddClass("show-back-button").fromTo(Dr,.01,1,!0);var v=new jr(e,h.querySelector(".back-button-text"));v.fromTo("translateX",e.isRTL?"-100px":"100px","0px"),_.add(v)}else g.beforeRemoveClass("show-back-button")}}if(r&&r.pageRef()){var y=r.pageRef().nativeElement,O=new jr(e,r.contentRef());if(O.element(y.querySelectorAll("ion-header > *:not(ion-navbar),ion-footer > *")),this.add(O),a?O.beforeClearStyles([Dr]).fromTo("translateX","0%",e.isRTL?"-100%":"100%"):O.fromTo("translateX","0%",i).fromTo(Dr,1,.8).afterClearStyles(["transform",Dr]),c){var j=y.querySelector("ion-navbar"),w=new jr(e,j),S=new jr(e,j.querySelector("ion-title")),C=new jr(e,j.querySelectorAll("ion-buttons,[menuToggle]")),k=new jr(e,j.querySelector(".toolbar-background")),T=new jr(e,j.querySelector(".back-button"));if(w.add(S).add(C).add(T).add(k),this.add(w),T.fromTo(Dr,.99,0),S.fromTo(Dr,.99,0),C.fromTo(Dr,.99,0),a){S.fromTo("translateX","0%",e.isRTL?"-100%":"100%"),k.beforeClearStyles([Dr]).fromTo("translateX","0%",e.isRTL?"-100%":"100%");var x=new jr(e,j.querySelector(".back-button-text"));x.fromTo("translateX","0%",(e.isRTL?-300:300)+"px"),w.add(x)}else S.fromTo("translateX","0%",i).afterClearStyles(["transform"]),T.afterClearStyles([Dr]),S.afterClearStyles([Dr]),C.afterClearStyles([Dr])}}},e}(Pr),Nr=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Br=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nr(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.plt,n=this.enteringView,i=this.leavingView,o=this.opts,r="back"===o.direction;if(n&&(r?this.duration(d(o.duration)?o.duration:200).easing("cubic-bezier(0.47,0,0.745,0.715)"):(this.duration(d(o.duration)?o.duration:280).easing("cubic-bezier(0.36,0.66,0.04,1)"),this.enteringPage.fromTo("translateY","40px","0px",!0).fromTo("opacity",.01,1,!0)),n.hasNavbar())){var s=n.pageRef().nativeElement.querySelector("ion-navbar"),a=new jr(e,s);this.add(a);var l=new jr(e,s.querySelector(".back-button"));this.add(l),n.enableBack()?l.beforeAddClass("show-back-button"):l.beforeRemoveClass("show-back-button")}if(i&&r){this.duration(o.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var c=new jr(e,i.pageRef());this.add(c.fromTo("translateY","0px","40px").fromTo("opacity",1,0))}},e}(Pr),Lr=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lr(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.plt,n=this.enteringView,i=this.leavingView,o=this.opts,r="back"===o.direction;if(n&&(r?(this.duration(d(o.duration)?o.duration:120).easing("cubic-bezier(0.47,0,0.745,0.715)"),this.enteringPage.beforeClearStyles(["scale"])):(this.duration(d(o.duration)?o.duration:280).easing("cubic-bezier(0,0,0.05,1)"),this.enteringPage.fromTo("scale",.95,1,!0).fromTo("opacity",.01,1,!0)),n.hasNavbar())){var s=n.pageRef().nativeElement.querySelector("ion-navbar"),a=new jr(e,s);this.add(a);var l=new jr(e,s.querySelector(".back-button"));this.add(l),n.enableBack()?l.beforeAddClass("show-back-button"):l.beforeRemoveClass("show-back-button")}if(i&&r){this.duration(o.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var c=new jr(e,i.pageRef());this.add(c.fromTo("scale",1,.95).fromTo("opacity",.99,0))}},e}(Pr),Mr=function(){function t(t,e,n){var i=this;this._config=t,this._plt=e,this._menuCtrl=n,this._disTime=0,this._scrollTime=0,this._title="",this._titleSrv=new Ko.j(Ko.b),this._rootNavs=new Map,this._didScroll=!1,this.viewDidLoad=new Qo.r,this.viewWillEnter=new Qo.r,this.viewDidEnter=new Qo.r,this.viewWillLeave=new Qo.r,this.viewDidLeave=new Qo.r,this.viewWillUnload=new Qo.r,e.registerBackButtonAction(this.goBack.bind(this)),this._disableScrollAssist=t.getBoolean("disableScrollAssist",!1),t.getBoolean("inputBlurring",!1)&&this._enableInputBlurring(),j(function(){var t=e.win();t.HWBackButton||(t.HWBackButton=function(){var t=i.goBack();return t&&t.catch(function(){return console.debug("hardware go back cancelled")}),t})}),t.setTransition("ios-transition",Ar),t.setTransition("md-transition",Br),t.setTransition("wp-transition",zr)}return t.prototype.setTitle=function(t){t!==this._title&&(this._title=t,this._titleSrv.setTitle(t))},t.prototype.setElementClass=function(t,e){this._appRoot.setElementClass(t,e)},t.prototype.setEnabled=function(t,e,n){void 0===e&&(e=700),void 0===n&&(n=0),this._disTime=t?0:Date.now()+e,this._clickBlock&&(t?this._clickBlock.activate(!1,qr,n):this._clickBlock.activate(!0,e+qr,n))},t.prototype._setDisableScroll=function(t){this._disableScrollAssist&&this._appRoot._disableScroll(t)},t.prototype.isEnabled=function(){var t=this._disTime;return 0===t||t<Date.now()},t.prototype.setScrolling=function(){this._scrollTime=Date.now()+Wr,this._didScroll=!0},t.prototype.isScrolling=function(){var t=this._scrollTime;return 0!==t&&(!(t<Date.now())||(this._scrollTime=0,!1))},t.prototype.getActiveNav=function(){console.warn("(getActiveNav) is deprecated and will be removed in the next major release. Use getActiveNavs instead.");var t=this.getActiveNavs();return t&&t.length?t[0]:null},t.prototype.getActiveNavs=function(t){var e=this._appRoot._getPortal(2);if(e.length()>0)return W(e);if(!this._rootNavs||!this._rootNavs.size)return[];if(1===this._rootNavs.size)return W(this._rootNavs.values().next().value);if(t)return W(this._rootNavs.get(t));var n=[];return this._rootNavs.forEach(function(t){var e=W(t);n=n.concat(e)}),n},t.prototype.getRootNav=function(){console.warn("(getRootNav) is deprecated and will be removed in the next major release. Use getRootNavById instead.");var t=this.getRootNavs();return 0===t.length?null:(t.length>1&&console.warn("(getRootNav) there are multiple root navs, use getRootNavs instead"),t[0])},t.prototype.getRootNavs=function(){var t=[];return this._rootNavs.forEach(function(e){return t.push(e)}),t},t.prototype.getRootNavById=function(t){return this._rootNavs.get(t)},t.prototype.registerRootNav=function(t){this._rootNavs.set(t.id,t)},t.prototype.unregisterRootNav=function(t){this._rootNavs.delete(t.id)},t.prototype.getActiveNavContainers=function(){var t=[];return this._rootNavs.forEach(function(e){t=t.concat(W(e))}),t},t.prototype.present=function(t,e,n){w(t.isOverlay,"presented view controller needs to be an overlay");var i=this._appRoot._getPortal(n);return t._setNav(i),e.direction=_r,e.animation||(e.animation=t.getTransitionName(_r)),t.setLeavingOpts({keyboardClose:e.keyboardClose,direction:hr,animation:t.getTransitionName(hr),ev:e.ev}),i.insertPages(-1,[t],e)},t.prototype.goBack=function(){if(this._menuCtrl&&this._menuCtrl.isOpen())return this._menuCtrl.close();var t=this.navPop();return t||this._config.getBoolean("navExitApp",!0)&&(console.debug("app, goBack exitApp"),this._plt.exitApp()),t},t.prototype.navPop=function(){var t=this;if(!this._rootNavs||0===this._rootNavs.size||!this.isEnabled())return Promise.resolve();if(this._appRoot._getPortal(1).length()>0)return Promise.resolve();var e=null,n=null;return this._rootNavs.forEach(function(i){t.getActiveNavs(i.id).map(function(t){return V(t)}).filter(function(t){return!!t}).forEach(function(t){var i=t.last();(t._isPortal||i&&t.length()>1&&(!n||i._ts>=n._ts))&&(n=i,e=t)})}),e?e.pop():void 0},t.prototype._enableInputBlurring=function(){console.debug("App: _enableInputBlurring");var t=!0,e=this,n=this._plt;n.registerListener(n.doc(),"focusin",function(){t=!0},{capture:!0,zone:!1,passive:!0}),n.registerListener(n.doc(),"touchend",function(i){if(e._didScroll)e._didScroll=!1;else{var o=e._plt.getActiveElement();if(o&&-1!==Vr.indexOf(o.tagName)){var r=i.target;r!==o&&(Vr.indexOf(r.tagName)>=0||r.classList.contains("input-cover")||(t=!1,n.timeout(function(){t||o.blur()},50)))}}},{capture:!1,zone:!1,passive:!0})},t.prototype.getNavByIdOrName=function(t){for(var e=0,n=Array.from(this._rootNavs.values());e<n.length;e++){var i=H(n[e],t);if(i)return i}return null},t}();Mr=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Rr=void 0!==er&&er)&&Rr||Object,"function"==typeof(Fr=void 0!==yr&&yr)&&Fr||Object,"function"==typeof(Hr=void 0!==fr&&fr)&&Hr||Object])],Mr);var Rr,Fr,Hr,Vr=["INPUT","TEXTAREA","ION-INPUT","ION-TEXTAREA"],Wr=100,qr=64,Yr=function(){function t(t,e,n,i){this._config=t,this._elementRef=e,this._renderer=n,this._componentName=i,i&&(this._setComponentName(),this._setMode(t.get("mode")))}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._setColor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._setMode(t)},enumerable:!0,configurable:!0}),t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t.prototype.setElementAttribute=function(t,e){this._renderer.setElementAttribute(this._elementRef.nativeElement,t,e)},t.prototype.setElementStyle=function(t,e){this._renderer.setElementStyle(this._elementRef.nativeElement,t,e)},t.prototype._setColor=function(t,e){e&&(this._componentName=e),this._color&&this.setElementClass(this._componentName+"-"+this._mode+"-"+this._color,!1),t&&(this.setElementClass(this._componentName+"-"+this._mode+"-"+t,!0),this._color=t)},t.prototype._setMode=function(t){this._mode&&this.setElementClass(this._componentName+"-"+this._mode,!1),t&&(this.setElementClass(this._componentName+"-"+t,!0),this._setColor(null),this._mode=t,this._setColor(this._color))},t.prototype._setComponentName=function(){this.setElementClass(this._componentName,!0)},t.prototype.getElementRef=function(){return this._elementRef},t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Yr.prototype,"color",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Yr.prototype,"mode",null);var Gr=function(){function t(t,e){this._app=t,this.links=e&&f(e.links)?$r(e.links):[]}return t.prototype.parse=function(t){return"/"===t.charAt(0)&&(t=t.substr(1)),t=t.split("?")[0].split("#")[0],Z(this._app,t,this.links)},t.prototype.createSegmentFromName=function(t,e){var n=this.getLinkFromName(e);return n?this._createSegment(this._app,t,n,null):null},t.prototype.getLinkFromName=function(t){return this.links.find(function(e){return e.component===t||e.name===t})},t.prototype.serialize=function(t){return t&&t.length?t.map(function(t){return"tabs"===t.type?t.requiresExplicitNavPrefix?"/"+t.type+"/"+t.navId+"/"+t.secondaryId+"/"+t.id:"/"+t.secondaryId+"/"+t.id:t.requiresExplicitNavPrefix?"/"+t.type+"/"+t.navId+"/"+t.id:"/"+t.id}).join(""):"/"},t.prototype.serializeComponent=function(t,e,n){if(e){var i=Zr(this.links,e,n);if(i)return this._createSegment(this._app,t,i,n)}return null},t.prototype._createSegment=function(t,e,n,i){var o=n.segmentParts;if(d(i)){o=o.slice();var r=Object.keys(i),s=r.length;if(s)for(var a=0;a<o.length;a++)if(":"===o[a].charAt(0))for(var l=0;l<s;l++)if(o[a]===":"+r[l]){o[a]=encodeURIComponent(i[r[l]]);break}}var c=!0;return c=e.parent?e.parent&&e.parent.getAllChildNavs().length>1:t.getRootNavById(e.id)&&t.getRootNavs().length>1,{id:o.join("/"),name:n.name,component:n.component,loadChildren:n.loadChildren,data:i,defaultHistory:n.defaultHistory,navId:e.name||e.id,type:e.getType(),secondaryId:e.getSecondaryIdentifier(),requiresExplicitNavPrefix:c}},t}(),Xr=function(t,e){return!(!d(t)||!d(e))&&(":"===e.charAt(0)||t===e)},Ur=function(t,e){for(var n=null,i=0;i<e.segmentPartsLen;i++)":"===e.segmentParts[i].charAt(0)&&((n=n||{})[e.segmentParts[i].substring(1)]=decodeURIComponent(t[i]));return n},Zr=function(t,e,n){for(var i=null,o=-1,r=0;r<t.length;r++){var s=t[r];if(s.component===e){var a=0;if(n)for(var l=Object.keys(n),c=0;c<l.length;c++)d(s.dataKeys[l[c]])&&a++;else if(s.dataLen)continue;a>=o&&(i=s,o=a)}}return i},$r=function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];h(i.segment)&&(i.segment=i.name),i.dataKeys={},i.segmentParts=i.segment.split("/"),i.segmentPartsLen=i.segmentParts.length,i.staticLen=i.dataLen=0;for(var o=!0,r=0;r<i.segmentPartsLen;r++)":"===i.segmentParts[r].charAt(0)?(i.dataLen++,o=!1,i.dataKeys[i.segmentParts[r].substring(1)]=!0):o&&i.staticLen++}return t.sort(Y)},Kr=/\s+|\?|\!|\$|\,|\.|\+|\"|\'|\*|\^|\||\/|\\|\[|\]|#|%|`|>|<|;|:|@|&|=/g,Qr=new Qo.x("USERLINKS"),Jr=function(){function t(t,e,n,i,o){this._app=t,this._serializer=e,this._location=n,this._moduleLoader=i,this._baseCfr=o,this._history=[]}return t.prototype.init=function(){var t=this,e=it(this._location.path());console.debug("DeepLinker, init load: "+e),this._historyPush(e),this._location.subscribe(function(e){t._urlChange(it(e.url))})},t.prototype._urlChange=function(t){var e=this;if(!this._isCurrentUrl(t)){this._isBackUrl(t)?(console.debug("DeepLinker, browser urlChange, back to: "+t),this._historyPop()):(!1,console.debug("DeepLinker, browser urlChange, forward to: "+t),this._historyPush(t));var n=this._app.getActiveNavContainers();if(n&&n.length){if("/"===t){if(!d(this._indexAliasUrl))return void n.forEach(function(t){t.goToRoot({updateUrl:!1,isNavRoot:!0})});t=this._indexAliasUrl}this.getCurrentSegments(t).map(function(t){for(var e=0,i=n;e<i.length;e++){var o=ot(i[e],t.navId);if(o)return{segment:t,navContainer:o}}}).filter(function(t){return!!t}).forEach(function(t){e._loadViewForSegment(t.navContainer,t.segment,function(){})})}}},t.prototype.getCurrentSegments=function(t){return t||(t=it(this._location.path())),this._serializer.parse(t)},t.prototype.navChange=function(t){if(t){for(var e=0,n=this._app.getActiveNavContainers();e<n.length;e++){var i=n[e];if(I(i)||i.isTransitioning())return}for(var o=[],r=0,s=this._app.getRootNavs();r<s.length;r++){var a=s[r],l=this.getSegmentsFromNav(a);o=o.concat(l)}if((o=o.filter(function(t){return!!t})).length){var c=this._serializer.serialize(o);this._updateLocation(c,t)}}},t.prototype.getSegmentsFromNav=function(t){var e=this,n=[];return A(t)?n.push(this.getSegmentFromNav(t)):D(t)&&n.push(this.getSegmentFromTab(t)),t.getActiveChildNavs().forEach(function(t){n=n.concat(e.getSegmentsFromNav(t))}),n},t.prototype.getSegmentFromNav=function(t,e,n){if(!e){var i=t.getActive(!0);i&&(e=i.component,n=i.data)}return this._serializer.serializeComponent(t,e,n)},t.prototype.getSegmentFromTab=function(t,e,n){if(t&&t.parent){var i=t.parent,o=i.getActiveChildNavs();if(o&&o.length){var r=o[0].getActive(!0);return r&&(e=r.component,n=r.data),this._serializer.serializeComponent(i,e,n)}}},t.prototype._updateLocation=function(t,e){this._indexAliasUrl===t&&(t="/"),e===hr&&this._isBackUrl(t)?(console.debug("DeepLinker, location.back(), url: '"+t+"'"),this._historyPop(),this._location.back()):this._isCurrentUrl(t)||(console.debug("DeepLinker, location.go('"+t+"')"),this._historyPush(t),this._location.go(t))},t.prototype.getComponentFromName=function(t){var e=this._serializer.getLinkFromName(t);return e?this.getNavLinkComponent(e):Promise.reject("invalid link: "+t)},t.prototype.getNavLinkComponent=function(t){return t.component?Promise.resolve(t.component):t.loadChildren?this._moduleLoader.load(t.loadChildren).then(function(e){return t.component=e.component,e.component}):Promise.reject("invalid link component: "+t.name)},t.prototype.resolveComponent=function(t){var e=this._moduleLoader.getComponentFactoryResolver(t);return e||(e=this._baseCfr),e.resolveComponentFactory(t)},t.prototype.createUrl=function(t,e,n,i){void 0===i&&(i=!0);var o=this._serializer.createSegmentFromName(t,e),r=this.getCurrentSegments();if(o)for(var s=0;s<r.length;s++)if(r[s].navId===t.name||r[s].navId===t.id){r[s]=o;var a=this._serializer.serialize(r);return i?this._location.prepareExternalUrl(a):a}return""},t.prototype.getSegmentByNavIdOrName=function(t,e){for(var n=it(this._location.path()),i=0,o=this._serializer.parse(n);i<o.length;i++){var r=o[i];if(r.navId===t||r.navId===e)return r}return null},t.prototype.initViews=function(t){var e=this,n=this._serializer.getLinkFromName(t.name);return this.getNavLinkComponent(n).then(function(n){t.component=n;var i=new or(n,t.data);return i.id=t.id,f(t.defaultHistory)?E(e,t.defaultHistory).then(function(t){return t.push(i),t}):[i]})},t.prototype._isBackUrl=function(t){return t===this._history[this._history.length-2]},t.prototype._isCurrentUrl=function(t){return t===this._history[this._history.length-1]},t.prototype._historyPush=function(t){this._isCurrentUrl(t)||(this._history.push(t),this._history.length>30&&this._history.shift())},t.prototype._historyPop=function(){this._history.pop(),this._history.length||this._historyPush(this._location.path())},t.prototype._getTabSelector=function(t){return d(t.tabUrlPath)?t.tabUrlPath:d(t.tabTitle)?q(t.tabTitle):"tab-"+t.index},t.prototype._loadViewForSegment=function(t,e,n){if(!e)return n(!1,!1);if(I(t)||D(t)&&t.parent){var i=I(t)?t:t.parent,o=i._getSelectedTabIndex(e.secondaryId),r=i.getByIndex(o);return r._segment=e,i.select(r,{updateUrl:!1,animate:!1},!0),n(!1,!1)}for(var s=t,a=s.length()-1,l=a;l>=0;l--){var c=s.getByIndex(l);if(c&&(c.id===e.id||c.id===e.name))return l===a?n(!1,!1):s.popTo(c,{animate:!1,updateUrl:!1},n)}return s.setRoot(e.component||e.name,e.data,{id:e.id,animate:!1,updateUrl:!1},n)},t}(),ts=function(){function t(t){this.dom=t,this.writeTask=null,this.readTask=null}return t.prototype.read=function(t){var e=this;if(!this.readTask)return this.readTask=this.dom.read(function(n){e.readTask=null,t(n)})},t.prototype.write=function(t){var e=this;if(!this.writeTask)return this.writeTask=this.dom.write(function(n){e.writeTask=null,t(n)})},t.prototype.cancel=function(){var t=this.writeTask;t&&this.dom.cancel(t);var e=this.readTask;e&&this.dom.cancel(e),this.readTask=this.writeTask=null},t}(),es=function(){function t(t){this.plt=t,this.r=[],this.w=[]}return t.prototype.debouncer=function(){return new ts(this)},t.prototype.read=function(t,e){var n=this;return e?t.timeoutId=this.plt.timeout(function(){n.r.push(t),n._queue()},e):(this.r.push(t),this._queue()),t},t.prototype.write=function(t,e){var n=this;return e?t.timeoutId=this.plt.timeout(function(){n.w.push(t),n._queue()},e):(this.w.push(t),this._queue()),t},t.prototype.cancel=function(t){t&&(t.timeoutId&&this.plt.cancelTimeout(t.timeoutId),y(this.r,t)||y(this.w,t))},t.prototype._queue=function(){var t=this;t.q||(t.q=!0,t.plt.raf(function(e){t._flush(e)}))},t.prototype._flush=function(t){var e;try{rt(t,this.r,this.w)}catch(t){e=t}if(this.q=!1,(this.r.length||this.w.length)&&this._queue(),e)throw e},t}();es=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(ns=void 0!==yr&&yr)&&ns||Object])],es);var ns,is="goback-swipe",os="menu-swipe",rs="item-swipe",ss="refresher",as="toggle",ls=-10,cs=0,us=10,ps=20,ds=30,hs={disable:[os,is],disableScroll:!0},_s=function(){function t(t){this._app=t,this.id=1,this.requestedStart={},this.disabledGestures={},this.disabledScroll=new Set,this.capturedID=null}return t.prototype.createGesture=function(t){if(!t.name)throw new Error("name is undefined");return new bs(t.name,this.newID(),this,t.priority||0,!!t.disableScroll)},t.prototype.createBlocker=function(t){return void 0===t&&(t={}),new ms(this.newID(),this,t.disable,!!t.disableScroll)},t.prototype.newID=function(){var t=this.id;return this.id++,t},t.prototype.start=function(t,e,n){return this.canStart(t)?(this.requestedStart[e]=n,!0):(delete this.requestedStart[e],!1)},t.prototype.capture=function(t,e,n){if(!this.start(t,e,n))return!1;var i=this.requestedStart,o=-1e4;for(var r in i)o=Math.max(o,i[r]);return o===n?(this.capturedID=e,this.requestedStart={},console.debug(t+" captured!"),!0):(delete i[e],console.debug(t+" can not start because it is has lower priority"),!1)},t.prototype.release=function(t){delete this.requestedStart[t],this.capturedID&&t===this.capturedID&&(this.capturedID=null)},t.prototype.disableGesture=function(t,e){var n=this.disabledGestures[t];n||(n=new Set,this.disabledGestures[t]=n),n.add(e)},t.prototype.enableGesture=function(t,e){var n=this.disabledGestures[t];n&&n.delete(e)},t.prototype.disableScroll=function(t){var e=!this.isScrollDisabled();this.disabledScroll.add(t),this._app&&e&&this.isScrollDisabled()&&(console.debug("GestureController: Disabling scrolling"),this._app._setDisableScroll(!0))},t.prototype.enableScroll=function(t){var e=this.isScrollDisabled();this.disabledScroll.delete(t),this._app&&e&&!this.isScrollDisabled()&&(console.debug("GestureController: Enabling scrolling"),this._app._setDisableScroll(!1))},t.prototype.canStart=function(t){return this.capturedID?(console.debug(t+" can not start becuse gesture was already captured"),!1):!this.isDisabled(t)||(console.debug(t+" is disabled"),!1)},t.prototype.isCaptured=function(){return!!this.capturedID},t.prototype.isScrollDisabled=function(){return this.disabledScroll.size>0},t.prototype.isDisabled=function(t){var e=this.disabledGestures[t];return!!(e&&e.size>0)},t}();_s=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__param)(0,Object(Qo.v)(Object(Qo._4)(function(){return Mr}))),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(fs=void 0!==Mr&&Mr)&&fs||Object])],_s);var fs,bs=function(){function t(t,e,n,i,o){this.name=t,this.id=e,this.controller=n,this.priority=i,this.disableScroll=o}return t.prototype.canStart=function(){return this.controller?this.controller.canStart(this.name):(w(!1,"delegate was destroyed"),!1)},t.prototype.start=function(){return this.controller?this.controller.start(this.name,this.id,this.priority):(w(!1,"delegate was destroyed"),!1)},t.prototype.capture=function(){if(!this.controller)return w(!1,"delegate was destroyed"),!1;var t=this.controller.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.controller.disableScroll(this.id),t},t.prototype.release=function(){this.controller?(this.controller.release(this.id),this.disableScroll&&this.controller.enableScroll(this.id)):w(!1,"delegate was destroyed")},t.prototype.destroy=function(){this.release(),this.controller=null},t}(),ms=function(){function t(t,e,n,i){this.id=t,this.controller=e,this.disable=n,this.disableScroll=i,this.blocked=!1}return t.prototype.block=function(){var t=this;this.controller?(this.disable&&this.disable.forEach(function(e){t.controller.disableGesture(e,t.id)}),this.disableScroll&&this.controller.disableScroll(this.id),this.blocked=!0):w(!1,"delegate was destroyed")},t.prototype.unblock=function(){var t=this;this.controller?(this.disable&&this.disable.forEach(function(e){t.controller.enableGesture(e,t.id)}),this.disableScroll&&this.controller.enableScroll(this.id),this.blocked=!1):w(!1,"delegate was destroyed")},t.prototype.destroy=function(){this.unblock(),this.controller=null},t}(),gs=function(){return function(){}}(),vs=function(){function t(t,e,n){this.direction=t,this.dirty=!1,this._angle=0,this._isPan=0;var i=n*(Math.PI/180);this.maxCosine=Math.cos(i),this.threshold=e*e}return t.prototype.start=function(t){this.startCoord=t,this._angle=0,this._isPan=0,this.dirty=!0},t.prototype.detect=function(t){if(!this.dirty)return!1;var e=t.x-this.startCoord.x,n=t.y-this.startCoord.y;if(e*e+n*n>=this.threshold){var i=Math.atan2(n,e),o="y"===this.direction?Math.sin(i):Math.cos(i);return this._angle=i,this._isPan=o>this.maxCosine?1:o<-this.maxCosine?-1:0,this.dirty=!1,!0}return!1},t.prototype.angle=function(){return this._angle},t.prototype.pan=function(){return this._isPan},t}(),ys=function(){function t(t,e,n,i,o,r){this.plt=t,this.ele=e,this.pointerDown=n,this.pointerMove=i,this.pointerUp=o,this.option=r,this.rmTouchStart=null,this.rmTouchMove=null,this.rmTouchEnd=null,this.rmTouchCancel=null,this.rmMouseStart=null,this.rmMouseMove=null,this.rmMouseUp=null,this.lastTouchEvent=0,this.mouseWait=2e3,w(e,"element can not be null"),w(n,"pointerDown can not be null"),this.bindTouchEnd=this.handleTouchEnd.bind(this),this.bindMouseUp=this.handleMouseUp.bind(this),this.rmTouchStart=this.plt.registerListener(e,"touchstart",this.handleTouchStart.bind(this),r),this.rmMouseStart=this.plt.registerListener(e,"mousedown",this.handleMouseDown.bind(this),r)}return t.prototype.handleTouchStart=function(t){w(this.ele,"element can not be null"),w(this.pointerDown,"pointerDown can not be null"),this.lastTouchEvent=Date.now()+this.mouseWait,this.lastEventType=js,this.pointerDown(t,js)&&(!this.rmTouchMove&&this.pointerMove&&(this.rmTouchMove=this.plt.registerListener(this.ele,"touchmove",this.pointerMove,this.option)),this.rmTouchEnd||(this.rmTouchEnd=this.plt.registerListener(this.ele,"touchend",this.bindTouchEnd,this.option)),this.rmTouchCancel||(this.rmTouchCancel=this.plt.registerListener(this.ele,"touchcancel",this.bindTouchEnd,this.option)))},t.prototype.handleMouseDown=function(t){w(this.ele,"element can not be null"),w(this.pointerDown,"pointerDown can not be null"),this.lastTouchEvent>Date.now()?console.debug("mousedown event dropped because of previous touch"):(this.lastEventType=Os,this.pointerDown(t,Os)&&(!this.rmMouseMove&&this.pointerMove&&(this.rmMouseMove=this.plt.registerListener(this.plt.doc(),"mousemove",this.pointerMove,this.option)),this.rmMouseUp||(this.rmMouseUp=this.plt.registerListener(this.plt.doc(),"mouseup",this.bindMouseUp,this.option))))},t.prototype.handleTouchEnd=function(t){this.stopTouch(),this.pointerUp&&this.pointerUp(t,js)},t.prototype.handleMouseUp=function(t){this.stopMouse(),this.pointerUp&&this.pointerUp(t,Os)},t.prototype.stopTouch=function(){this.rmTouchMove&&this.rmTouchMove(),this.rmTouchEnd&&this.rmTouchEnd(),this.rmTouchCancel&&this.rmTouchCancel(),this.rmTouchMove=this.rmTouchEnd=this.rmTouchCancel=null},t.prototype.stopMouse=function(){this.rmMouseMove&&this.rmMouseMove(),this.rmMouseUp&&this.rmMouseUp(),this.rmMouseMove=this.rmMouseUp=null},t.prototype.stop=function(){this.stopTouch(),this.stopMouse()},t.prototype.destroy=function(){this.rmTouchStart&&this.rmTouchStart(),this.rmMouseStart&&this.rmMouseStart(),this.stop(),this.ele=this.pointerUp=this.pointerMove=this.pointerDown=this.rmTouchStart=this.rmMouseStart=null},t}(),Os=1,js=2,ws=function(){function t(t){this.plt=t,this.evts=[]}return t.prototype.pointerEvents=function(t){if(t.element&&t.pointerDown){var e={capture:t.capture,passive:t.passive,zone:t.zone},n=new ys(this.plt,t.element,t.pointerDown,t.pointerMove,t.pointerUp,e);return this.evts.push(function(){return n.destroy()}),n}console.error("PointerEvents config is invalid")},t.prototype.listen=function(t,e,n,i){if(t){var o=this.plt.registerListener(t,e,n,i);return this.evts.push(o),o}},t.prototype.unlistenAll=function(){this.evts.forEach(function(t){t()}),this.evts.length=0},t.prototype.destroy=function(){this.unlistenAll(),this.evts=null},t}(),Ss=function(){function t(t,e,n){void 0===n&&(n={}),this.plt=t,this.element=e,s(n,{threshold:20,maxAngle:40,direction:"x",zone:!0,capture:!1,passive:!1}),this.events=new ws(t),n.domController&&(this.debouncer=n.domController.debouncer()),this.gestute=n.gesture,this.direction=n.direction,this.eventsConfig={element:this.element,pointerDown:this.pointerDown.bind(this),pointerMove:this.pointerMove.bind(this),pointerUp:this.pointerUp.bind(this),zone:n.zone,capture:n.capture,passive:n.passive},n.threshold>0&&(this.detector=new vs(n.direction,n.threshold,n.maxAngle))}return t.prototype.listen=function(){this.isListening||(this.pointerEvents=this.events.pointerEvents(this.eventsConfig),this.isListening=!0)},t.prototype.unlisten=function(){this.isListening&&(this.gestute&&this.gestute.release(),this.events.unlistenAll(),this.isListening=!1)},t.prototype.destroy=function(){this.gestute&&this.gestute.destroy(),this.gestute=null,this.unlisten(),this.events.destroy(),this.events=this.element=this.gestute=null},t.prototype.pointerDown=function(t){if(!this.started){if(!this.canStart(t))return!1;if(this.gestute&&(this.gestute.release(),!this.gestute.start()))return!1;this.started=!0,this.captured=!1;var e=B(t);if(this.detector)this.detector.start(e);else if(!this.tryToCapture(t))return this.started=!1,this.captured=!1,this.gestute.release(),!1;return!0}},t.prototype.pointerMove=function(t){var e=this;if(w(!0===this.started,"started must be true"),this.captured)this.debouncer.write(function(){e.onDragMove(t)});else{w(this.detector,"detector has to be valid");var n=B(t);this.detector.detect(n)&&0!==this.detector.pan()&&(this.tryToCapture(t)||this.abort(t))}},t.prototype.pointerUp=function(t){w(this.started,"started failed"),this.debouncer.cancel(),this.gestute&&this.gestute.release(),this.captured?this.onDragEnd(t):this.notCaptured(t),this.captured=!1,this.started=!1},t.prototype.tryToCapture=function(t){return w(!0===this.started,"started has be true"),w(!1===this.captured,"captured has be false"),!(this.gestute&&!this.gestute.capture())&&(this.onDragStart(t),this.captured=!0,!0)},t.prototype.abort=function(t){this.started=!1,this.captured=!1,this.gestute.release(),this.pointerEvents.stop(),this.notCaptured(t)},t.prototype.getNativeElement=function(){return this.element},t.prototype.canStart=function(t){return!0},t.prototype.onDragStart=function(t){},t.prototype.onDragMove=function(t){},t.prototype.onDragEnd=function(t){},t.prototype.notCaptured=function(t){},t}(),Cs=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ks=function(t){function e(e,n,i){void 0===i&&(i={});var o=t.call(this,e,n,i)||this;return o.slide=null,o}return Cs(e,t),e.prototype.getSlideBoundaries=function(t,e){return{min:0,max:this.getNativeElement().offsetWidth}},e.prototype.getElementStartPos=function(t,e){return 0},e.prototype.onDragStart=function(t){this.onSlideBeforeStart(t);var e=B(t)[this.direction];this.slide={min:0,max:0,pointerStartPos:e,pos:e,timestamp:Date.now(),elementStartPos:0,started:!0,delta:0,distance:0,velocity:0};var n=this.getSlideBoundaries(this.slide,t),i=n.min,o=n.max;this.slide.min=i,this.slide.max=o,this.slide.elementStartPos=this.getElementStartPos(this.slide,t),this.onSlideStart(this.slide,t)},e.prototype.onDragMove=function(t){var e=this.slide;w(e.min!==e.max,"slide data must be properly initialized");var n=B(t)[this.direction],o=Date.now(),r=(this.plt.isRTL?e.pos-n:n-e.pos)/(o-e.timestamp);e.pos=n,e.timestamp=o,e.distance=i(e.min,(this.plt.isRTL?e.pointerStartPos-n:n-e.pointerStartPos)+e.elementStartPos,e.max),e.velocity=r,e.delta=this.plt.isRTL?e.pointerStartPos-n:n-e.pointerStartPos,this.onSlide(e,t)},e.prototype.onDragEnd=function(t){this.onSlideEnd(this.slide,t),this.slide=null},e.prototype.onSlideBeforeStart=function(t){},e.prototype.onSlideStart=function(t,e){},e.prototype.onSlide=function(t,e){},e.prototype.onSlideEnd=function(t,e){},e}(Ss),Ts=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xs=function(t){function e(e,n,i){void 0===i&&(i={});var o=this;return s(i,{edge:"start",maxEdgeStart:50}),(o=t.call(this,e,n,i)||this).setEdges(i.edge),o.maxEdgeStart=i.maxEdgeStart,o}return Ts(e,t),e.prototype.setEdges=function(t){var e=this.plt.isRTL;this.edges=t.split(" ").map(function(t){switch(t){case"start":return e?"right":"left";case"end":return e?"left":"right";default:return t}})},e.prototype.canStart=function(t){var e=this,n=B(t);return this._d=this.getContainerDimensions(),this.edges.every(function(t){return e._checkEdge(t,n)})},e.prototype.getContainerDimensions=function(){var t=this.plt;return{left:0,top:0,width:t.width(),height:t.height()}},e.prototype._checkEdge=function(t,e){var n=this._d,i=this.maxEdgeStart;switch(t){case"left":return e.x<=n.left+i;case"right":return e.x>=n.width-i;case"top":return e.y<=n.top+i;case"bottom":return e.y>=n.height-i}return!1},e}(ks),Es=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ps=function(t){function e(e,n,i,o){var r=t.call(this,e,e.doc().body,{direction:"x",edge:"start",maxEdgeStart:75,threshold:5,zone:!1,domController:o,gesture:i.createGesture({name:is,priority:ps,disableScroll:!0})})||this;return r._nav=n,r}return Es(e,t),e.prototype.canStart=function(e){return this._nav.canSwipeBack()&&t.prototype.canStart.call(this,e)},e.prototype.onSlideBeforeStart=function(t){this._nav.swipeBackStart()},e.prototype.onSlide=function(t,e){e.preventDefault(),e.stopPropagation();var n=t.distance/t.max;this._nav.swipeBackProgress(n)},e.prototype.onSlideEnd=function(t,e){var n=t.velocity,i=t.distance/t.max,o=!O(n<0,Math.abs(t.velocity)>.4,Math.abs(t.delta)<.5*Math.abs(t.max));this._nav.swipeBackEnd(o,i,n)},e}(xs),Is=function(t){function e(e,n,i,o,r,s,a,l,c,u,p,d,h){var _=t.call(this,i,r,a)||this;return _.parent=e,_._app=n,_.config=i,_.plt=o,_._zone=s,_._cfr=l,_._gestureCtrl=c,_._trnsCtrl=u,_._linker=p,_._domCtrl=d,_._errHandler=h,_._ids=-1,_._init=!1,_._queue=[],_._trnsId=null,_._trnsTm=!1,_._views=[],_._zIndexOffset=0,_.viewDidLoad=new Qo.r,_.viewWillEnter=new Qo.r,_.viewDidEnter=new Qo.r,_.viewWillLeave=new Qo.r,_.viewDidLeave=new Qo.r,_.viewWillUnload=new Qo.r,_._sbEnabled=i.getBoolean("swipeBackEnabled"),_._children=[],_.id="n"+ ++Ds,_._destroyed=!1,_}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"swipeBackEnabled",{get:function(){return this._sbEnabled},set:function(t){this._sbEnabled=b(t),this._swipeBackCheck()},enumerable:!0,configurable:!0}),e.prototype.push=function(t,e,n,i){return this._queueTrns({insertStart:-1,insertViews:[{page:t,params:e}],opts:n},i)},e.prototype.insert=function(t,e,n,i,o){return this._queueTrns({insertStart:t,insertViews:[{page:e,params:n}],opts:i},o)},e.prototype.insertPages=function(t,e,n,i){return this._queueTrns({insertStart:t,insertViews:e,opts:n},i)},e.prototype.pop=function(t,e){return this._queueTrns({removeStart:-1,removeCount:1,opts:t},e)},e.prototype.popTo=function(t,e,n){var i={removeStart:-1,removeCount:-1,opts:e};return k(t)?(i.removeView=t,i.removeStart=1):l(t)&&(i.removeStart=t+1),this._queueTrns(i,n)},e.prototype.popToRoot=function(t,e){return this._queueTrns({removeStart:1,removeCount:-1,opts:t},e)},e.prototype.popAll=function(){for(var t=[],e=this._views.length-1;e>=0;e--)t.push(this.pop(null));return Promise.all(t)},e.prototype.remove=function(t,e,n,i){return void 0===e&&(e=1),this._queueTrns({removeStart:t,removeCount:e,opts:n},i)},e.prototype.removeView=function(t,e,n){return this._queueTrns({removeView:t,removeStart:0,removeCount:1,opts:e},n)},e.prototype.setRoot=function(t,e,n,i){return this.setPages([{page:t,params:e}],n,i)},e.prototype.setPages=function(t,e,n){return h(e)&&(e={}),!0!==e.animate&&(e.animate=!1),this._queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:e},n)},e.prototype._queueTrns=function(t,e){var n=new Promise(function(e,n){t.resolve=e,t.reject=n});return t.done=e,t.insertViews&&0===t.insertViews.length&&(t.insertViews=void 0),this._queue.push(t),this._nextTrns(),n},e.prototype._success=function(t,e){null!==this._queue?(this._init=!0,this._trnsId=null,this.setTransitioning(!1),this._swipeBackCheck(),this._nextTrns(),e.done&&e.done(t.hasCompleted,t.requiresTransition,t.enteringName,t.leavingName,t.direction),e.resolve(t.hasCompleted)):this._fireError("nav controller was destroyed",e)},e.prototype._failed=function(t,e){null!==this._queue?(this._trnsId=null,this._queue.length=0,this.setTransitioning(!1),this._swipeBackCheck(),this._nextTrns(),this._fireError(t,e)):this._fireError("nav controller was destroyed",e)},e.prototype._fireError=function(t,e){e.done&&e.done(!1,!1,t),e.reject&&!this._destroyed?e.reject(t):e.resolve(!1)},e.prototype._nextTrns=function(){var t=this;if(this.isTransitioning())return!1;var e=this._queue.shift();if(!e)return!1;var n,i;return this._startTI(e).then(function(){return t._loadLazyLoading(e)}).then(function(){if(i=t.getActive(),n=t._getEnteringView(e,i),!i&&!n)throw"no views in the stack to be removed";n&&n._state===lr&&t._viewInit(n),e.requiresTransition=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&n!==i}).then(function(){return t._viewTest(n,i,e)}).then(function(){return t._postViewInit(n,i,e)}).then(function(){return t._transition(n,i,e)}).then(function(n){return t._success(n,e)}).catch(function(n){return t._failed(n,e)}),!0},e.prototype._startTI=function(t){var e=this._views.length;if(d(t.removeView)){w(d(t.removeStart),"removeView needs removeStart"),w(d(t.removeCount),"removeView needs removeCount");var n=this.indexOf(t.removeView);if(n<0)return Promise.reject("removeView was not found");t.removeStart+=n}return d(t.removeStart)&&(t.removeStart<0&&(t.removeStart=e-1),t.removeCount<0&&(t.removeCount=e-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===e),t.insertViews&&((t.insertStart<0||t.insertStart>e)&&(t.insertStart=e),t.enteringRequiresTransition=t.insertStart===e),this.setTransitioning(!0),Promise.resolve()},e.prototype._loadLazyLoading=function(t){var e=this,n=t.insertViews;return n?(w(n.length>0,"length can not be zero"),E(this._linker,n).then(function(i){if(w(n.length===i.length,"lengths does not match"),0===(i=i.filter(function(t){return null!==t})).length)throw"invalid views to insert";for(var o=0;o<i.length;o++){var r=i[o],s=r._nav;if(s&&s!==e)throw"inserted view was already inserted";if(r._state===pr)throw"inserted view was already destroyed"}t.insertViews=i})):Promise.resolve()},e.prototype._getEnteringView=function(t,e){var n=t.insertViews;if(n)return n[n.length-1];var i=t.removeStart;if(d(i)){var o,r,s=this._views,a=i+t.removeCount;for(o=s.length-1;o>=0;o--)if(r=s[o],(o<i||o>=a)&&r!==e)return r}return null},e.prototype._postViewInit=function(t,e,n){var i=this;w(e||t,"Both leavingView and enteringView are null"),w(n.resolve,"resolve must be valid"),w(n.reject,"reject must be valid");var o,r,s,a=n.opts||{},l=n.insertViews,c=n.removeStart,u=n.removeCount;if(d(c)){for(w(c>=0,"removeStart can not be negative"),w(u>=0,"removeCount can not be negative"),s=[],r=0;r<u;r++)(o=this._views[r+c])&&o!==t&&o!==e&&s.push(o);a.direction=a.direction||hr}var p=this._views.length+(l?l.length:0)-(u||0);if(w(p>=0,"final balance can not be negative"),0===p&&!this._isPortal)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.getNativeElement()),"navigation stack needs at least one root page";if(l){for(d(a.id)&&(t.id=a.id),r=0;r<l.length;r++)o=l[r],this._insertViewAt(o,n.insertStart+r);n.enteringRequiresTransition&&(a.direction=a.direction||_r)}if(s&&s.length>0)for(this._zone.run(function(){for(r=0;r<s.length;r++)o=s[r],i._willLeave(o,!0),i._didLeave(o),i._willUnload(o)}),r=0;r<s.length;r++)this._destroyView(s[r]);n.requiresTransition&&!a.animation&&(a.animation=d(n.removeStart)?(e||t).getTransitionName(a.direction):(t||e).getTransitionName(a.direction)),n.opts=a},e.prototype._viewInit=function(t){w(t,"enteringView must be non null"),w(t._state===lr,"enteringView state must be NEW");var e=Qo.M.resolve([{provide:gs,useValue:this},{provide:or,useValue:t},{provide:ir,useValue:t.getNavParams()}]),n=this._linker.resolveComponent(t.component),i=Qo.M.fromResolvedProviders(e,this._viewport.parentInjector);t.init(n.create(i,[])),t._state=cr,this._preLoad(t)},e.prototype._viewAttachToDOM=function(t,e,n){if(w(t._state===cr,"view state must be INITIALIZED"),w(e,"componentRef can not be null"),this._willLoad(t),n.insert(e.hostView,n.length),t._state=ur,t._cssClass){var i=e.location.nativeElement;this._renderer.setElementClass(i,t._cssClass,!0)}e.changeDetectorRef.detectChanges(),this._zone.run(this._didLoad.bind(this,t))},e.prototype._viewTest=function(t,e,n){if(!n.requiresTransition)return Promise.resolve();var i=[];return e&&i.push(e._lifecycleTest("Leave")),t&&i.push(t._lifecycleTest("Enter")),0===i.length?Promise.resolve():Promise.all(i).then(function(t){if(t.some(function(t){return!1===t}))throw"canEnter/Leave returned false"}).catch(function(t){throw n.reject=null,t})},e.prototype._transition=function(t,e,n){var i=this;if(!n.requiresTransition)return Promise.resolve({hasCompleted:!0,requiresTransition:!1});var o=n.opts;this._trnsId=this._trnsCtrl.getRootTrnsId(this),null===this._trnsId&&(this._trnsId=this._trnsCtrl.nextId());var r={animation:o.animation,direction:o.direction,duration:!1===o.animate?0:o.duration,easing:o.easing,isRTL:this._config.plt.isRTL,ev:o.ev},s=this._trnsCtrl.get(this._trnsId,t,e,r);this._sbTrns&&this._sbTrns.destroy(),this._sbTrns=null,s.isRoot()&&o.progressAnimation&&(this._sbTrns=s);var a=new Promise(function(t){return s.registerStart(t)}).then(function(){return i._transitionStart(s,t,e,o)});return t&&t._state===cr&&this._viewAttachToDOM(t,t._cmp,this._viewport),s.hasChildren||s.start(),a},e.prototype._transitionStart=function(t,e,n,i){var o=this;w(this.isTransitioning(),"isTransitioning() has to be true"),this._trnsId=null,P(this,e,n,i.direction,this._renderer),e&&e._domShow(!0,this._renderer),n&&n._domShow(!0,this._renderer),t.init();var r=!this._init&&1===this._views.length&&!this._isPortal,s=!1===this._config.get("animate");(r||s)&&(i.animate=!1),!1===i.animate&&t.duration(0),t.beforeAddRead(this._viewsWillLifecycles.bind(this,e,n));var a=t.getDuration(),l=new Promise(function(e){t.onFinish(e)});return t.isRoot()&&(a>As&&!1!==i.disableApp?this._app.setEnabled(!1,a+Bs,i.minClickBlockDuration):console.debug("transition is running but app has not been disabled"),i.progressAnimation?t.progressStart():t.play()),l.then(function(){return o._zone.run(function(){return o._transitionFinish(t,i)})})},e.prototype._transitionFinish=function(t,e){var n,i,o=t.hasCompleted,r=t.enteringView,s=t.leavingView;return o?(r&&(n=r.name,this._didEnter(r)),s&&(i=s.name,this._didLeave(s)),this._cleanup(r)):this._cleanup(s),t.isRoot()&&(this._trnsCtrl.destroy(t.trnsId),this._app.setEnabled(!0),this.setTransitioning(!1),this.hasChildren()||!1===e.updateUrl||this._linker.navChange(e.direction),!1!==e.keyboardClose&&this.plt.focusOutActiveElement()),{hasCompleted:o,requiresTransition:!0,enteringName:n,leavingName:i,direction:e.direction}},e.prototype._viewsWillLifecycles=function(t,e){var n=this;(t||e)&&this._zone.run(function(){if(e){var i=!t||e.index>t.index;n._willLeave(e,i)}t&&n._willEnter(t)})},e.prototype._insertViewAt=function(t,e){var n=this._views.indexOf(t);n>-1?(w(t._nav===this,"view is not part of the nav"),this._views.splice(e,0,this._views.splice(n,1)[0])):(w(!t._nav||this._isPortal&&t._nav===this,"nav is used"),t._setNav(this),this._ids++,t.id||(t.id=this.id+"-"+this._ids),this._views.splice(e,0,t))},e.prototype._removeView=function(t){w(t._state===ur||t._state===pr,"view state should be loaded or destroyed");var e=this._views,n=e.indexOf(t);w(n>-1,"view must be part of the stack"),n>=0&&e.splice(n,1)},e.prototype._destroyView=function(t){t._destroy(this._renderer),this._removeView(t)},e.prototype._cleanup=function(t){if(!this._destroyed){var e=this._views.indexOf(t),n=this._views,i=!1,o=void 0,r=void 0;for(r=n.length-1;r>=0;r--)o=n[r],r>e?(this._willUnload(o),this._destroyView(o)):r<e&&!this._isPortal&&o._domShow(!1,this._renderer),o._zIndex<=0&&(i=!0);if(!this._isPortal&&i)for(r=0;r<n.length;r++)(o=n[r])._setZIndex(o._zIndex+dr+1,this._renderer)}},e.prototype._preLoad=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),t._preLoad()},e.prototype._willLoad=function(t){w(this.isTransitioning(),"nav controller should be transitioning");try{t._willLoad()}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._didLoad=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._didLoad(),this.viewDidLoad.emit(t),this._app.viewDidLoad.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._willEnter=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._willEnter(),this.viewWillEnter.emit(t),this._app.viewWillEnter.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._didEnter=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._didEnter(),this.viewDidEnter.emit(t),this._app.viewDidEnter.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._willLeave=function(t,e){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._willLeave(e),this.viewWillLeave.emit(t),this._app.viewWillLeave.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._didLeave=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._didLeave(),this.viewDidLeave.emit(t),this._app.viewDidLeave.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._willUnload=function(t){w(this.isTransitioning(),"nav controller should be transitioning"),w(Qo.G.isInAngularZone(),"callback should be zoned");try{t._willUnload(),this.viewWillUnload.emit(t),this._app.viewWillUnload.emit(t)}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype.hasChildren=function(){return this._children&&this._children.length>0},e.prototype.getActiveChildNavs=function(){return this._children},e.prototype.getAllChildNavs=function(){return this._children},e.prototype.registerChildNav=function(t){this._children.push(t)},e.prototype.unregisterChildNav=function(t){this._children=this._children.filter(function(e){return e!==t})},e.prototype.destroy=function(){for(var t,e=this._views,n=0;n<e.length;n++)(t=e[n])._willUnload(),t._destroy(this._renderer);this._sbGesture&&this._sbGesture.destroy(),this._sbTrns&&this._sbTrns.destroy(),this._queue=this._views=this._sbGesture=this._sbTrns=null,this.parent&&this.parent.unregisterChildNav?this.parent.unregisterChildNav(this):this._app&&this._app.unregisterRootNav(this),this._destroyed=!0},e.prototype.swipeBackStart=function(){if(!(this.isTransitioning()||this._queue.length>0)){var t={direction:hr,progressAnimation:!0};this._queueTrns({removeStart:-1,removeCount:1,opts:t},null)}},e.prototype.swipeBackProgress=function(t){this._sbTrns&&this._sbGesture&&(this._app.setEnabled(!1,Ns),this.setTransitioning(!0),this._sbTrns.progressStep(t))},e.prototype.swipeBackEnd=function(t,e,n){if(this._sbTrns&&this._sbGesture){var i=this._sbTrns.getDuration()/(Math.abs(n)+1);this._sbTrns.progressEnd(t,e,i)}},e.prototype._swipeBackCheck=function(){this.canSwipeBack()?(this._sbGesture||(this._sbGesture=new Ps(this.plt,this,this._gestureCtrl,this._domCtrl)),this._sbGesture.listen()):this._sbGesture&&this._sbGesture.unlisten()},e.prototype.canSwipeBack=function(){return this._sbEnabled&&!this._isPortal&&!this._children.length&&!this.isTransitioning()&&this._app.isEnabled()&&this.canGoBack()},e.prototype.canGoBack=function(){var t=this.getActive();return!(!t||!t.enableBack())},e.prototype.isTransitioning=function(){return this._trnsTm},e.prototype.setTransitioning=function(t){this._trnsTm=t},e.prototype.getActive=function(){return this._views[this._views.length-1]},e.prototype.isActive=function(t){return t===this.getActive()},e.prototype.getByIndex=function(t){return this._views[t]},e.prototype.getPrevious=function(t){t||(t=this.getActive());var e=this._views,n=e.indexOf(t);return n>0?e[n-1]:null},e.prototype.first=function(){return this._views[0]},e.prototype.last=function(){var t=this._views;return t[t.length-1]},e.prototype.indexOf=function(t){return this._views.indexOf(t)},e.prototype.length=function(){return this._views.length},e.prototype.getViews=function(){return this._views},e.prototype.getViewById=function(t){for(var e=0,n=this._views;e<n.length;e++){var i=n[e];if(i&&i.id===t)return i}return null},e.prototype.isSwipeBackEnabled=function(){return this._sbEnabled},e.prototype.dismissPageChangeViews=function(){for(var t=0,e=this._views;t<e.length;t++){var n=e[t];n.data&&n.data.dismissOnPageChange&&n.dismiss().catch(function(){})}},e.prototype.setViewport=function(t){this._viewport=t},e.prototype.resize=function(){var t=this.getActive();if(t){var e=t.getIONContent();e&&e.resize()}},e.prototype.goToRoot=function(t){return Promise.reject(new Error("goToRoot needs to be implemented by child class"))},e.prototype.getType=function(){return"nav"},e.prototype.getSecondaryIdentifier=function(){return null},e.prototype.getActiveChildNav=function(){return console.warn("(getActiveChildNav) is deprecated and will be removed in the next major release. Use getActiveChildNavs instead."),this._children[this._children.length-1]},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Is.prototype,"swipeBackEnabled",null);var Ds=-1,As=64,Ns=5e3,Bs=2e3,Ls=function(){function t(t,e){this.plt=t,this._config=e,this._ids=0,this._trns={}}return t.prototype.getRootTrnsId=function(t){for(t=t.parent;t;){if(d(t._trnsId))return t._trnsId;t=t.parent}return null},t.prototype.nextId=function(){return this._ids++},t.prototype.get=function(t,e,n,i){var o=this._config.getTransition(i.animation);o||(o=this._config.getTransition("ios-transition"));var r=new o(this.plt,e,n,i);return r.trnsId=t,this._trns[t]?this._trns[t].add(r):this._trns[t]=r,r},t.prototype.destroy=function(t){var e=this._trns[t];e&&(e.destroy(),delete this._trns[t])},t}();Ls=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(zs=void 0!==yr&&yr)&&zs||Object,"function"==typeof(Ms=void 0!==er&&er)&&Ms||Object])],Ls);var zs,Ms,Rs=function(t){function e(e,n,i,o,r,s,a,l,c,u,p,d,h){var _=t.call(this,null,e,n,i,o,r,s,a,l,c,u,d,h)||this;return _._isPortal=!0,_._init=!0,_.setViewport(p),e.viewDidLeave.subscribe(function(t){t.isOverlay||_.dismissPageChangeViews()}),_}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"_overlayPortal",{set:function(t){this._zIndexOffset=t||0},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.getType=function(){return"portal"},e.prototype.getSecondaryIdentifier=function(){return null},e}(Is);Object(Jo.__decorate)([Object(Qo.z)("overlay-portal"),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],Rs.prototype,"_overlayPortal",null),Rs=Object(Jo.__decorate)([Object(Qo.o)({selector:"[overlay-portal]"}),Object(Jo.__param)(0,Object(Qo.v)(Object(Qo._4)(function(){return Mr}))),Object(Jo.__param)(9,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Fs=void 0!==Mr&&Mr)&&Fs||Object,"function"==typeof(Hs=void 0!==er&&er)&&Hs||Object,"function"==typeof(Vs=void 0!==yr&&yr)&&Vs||Object,"function"==typeof(Ws=void 0!==Qo.p&&Qo.p)&&Ws||Object,"function"==typeof(qs=void 0!==Qo.G&&Qo.G)&&qs||Object,"function"==typeof(Ys=void 0!==Qo.N&&Qo.N)&&Ys||Object,"function"==typeof(Gs=void 0!==Qo.l&&Qo.l)&&Gs||Object,"function"==typeof(Xs=void 0!==_s&&_s)&&Xs||Object,"function"==typeof(Us=void 0!==Ls&&Ls)&&Us||Object,"function"==typeof(Zs=void 0!==Jr&&Jr)&&Zs||Object,"function"==typeof($s=void 0!==Qo.Z&&Qo.Z)&&$s||Object,"function"==typeof(Ks=void 0!==es&&es)&&Ks||Object,"function"==typeof(Qs=void 0!==Qo.q&&Qo.q)&&Qs||Object])],Rs);var Fs,Hs,Vs,Ws,qs,Ys,Gs,Xs,Us,Zs,$s,Ks,Qs,Js=new Qo.x("USERROOT"),ta=function(t){function e(e,n,i,o,r,s,a){var l=t.call(this,r,i,o,"app-root")||this;return l._userCmp=e,l._cfr=n,l._plt=s,a._appRoot=l,l._stopScrollPlugin=window.IonicStopScroll,l}return Object(Jo.__extends)(e,t),e.prototype.ngOnInit=function(){var t=this,e=this._cfr.resolveComponentFactory(this._userCmp),n=this._viewport.createComponent(e);this._renderer.setElementClass(n.location.nativeElement,"app-root",!0),n.changeDetectorRef.detectChanges(),this.setElementClass(this._config.get("mode"),!0);var i=this._plt.versions();this._plt.platforms().forEach(function(e){var n="platform-"+e;t.setElementClass(n,!0);var o=i[e];o&&(n+=o.major,t.setElementClass(n,!0),t.setElementClass(n+"_"+o.minor,!0))}),this._config.getBoolean("hoverCSS",!0)&&this.setElementClass("enable-hover",!0),this._plt.prepareReady()},e.prototype._getPortal=function(t){return 3===t?this._loadingPortal:4===t?this._toastPortal:2===t?this._modalPortal:this._overlayPortal},e.prototype._getActivePortal=function(){var t=this._overlayPortal,e=this._modalPortal,n=e.length()>0,i=t.length()>0;if(!n&&!i)return null;if(n&&i){var o=t.getActive().getZIndex(),r=e.getActive().getZIndex();return o>r?t:(w(r>o,"modal and default zIndex can not be equal"),e)}return n?e:i?t:void 0},e.prototype._disableScroll=function(t){var e=this;if(t)this.stopScroll().then(function(){e._tmr=e._plt.timeout(function(){console.debug("App Root: adding .disable-scroll"),e.setElementClass("disable-scroll",!0)},32)});else{var n=this._stopScrollPlugin;n&&n.cancel&&n.cancel(),clearTimeout(this._tmr),console.debug("App Root: removing .disable-scroll"),this.setElementClass("disable-scroll",!1)}},e.prototype.stopScroll=function(){var t=this;return this._stopScrollPlugin?new Promise(function(e){t._stopScrollPlugin.stop(function(){return e(!0)})}):Promise.resolve(!1)},e}(Yr);Object(Jo.__decorate)([Object(Qo.X)("viewport",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(ea=void 0!==Qo.Z&&Qo.Z)&&ea||Object)],ta.prototype,"_viewport",void 0),Object(Jo.__decorate)([Object(Qo.X)("modalPortal",{read:Rs}),Object(Jo.__metadata)("design:type","function"==typeof(na=void 0!==Rs&&Rs)&&na||Object)],ta.prototype,"_modalPortal",void 0),Object(Jo.__decorate)([Object(Qo.X)("overlayPortal",{read:Rs}),Object(Jo.__metadata)("design:type","function"==typeof(ia=void 0!==Rs&&Rs)&&ia||Object)],ta.prototype,"_overlayPortal",void 0),Object(Jo.__decorate)([Object(Qo.X)("loadingPortal",{read:Rs}),Object(Jo.__metadata)("design:type","function"==typeof(oa=void 0!==Rs&&Rs)&&oa||Object)],ta.prototype,"_loadingPortal",void 0),Object(Jo.__decorate)([Object(Qo.X)("toastPortal",{read:Rs}),Object(Jo.__metadata)("design:type","function"==typeof(ra=void 0!==Rs&&Rs)&&ra||Object)],ta.prototype,"_toastPortal",void 0),ta=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-app",template:'<div #viewport app-viewport></div><div #modalPortal overlay-portal></div><div #overlayPortal overlay-portal></div><div #loadingPortal class="loading-portal" overlay-portal></div><div #toastPortal class="toast-portal" [overlay-portal]="10000"></div><div class="click-block"></div>'}),Object(Jo.__param)(0,Object(Qo.v)(Js)),Object(Jo.__metadata)("design:paramtypes",[Object,"function"==typeof(sa=void 0!==Qo.l&&Qo.l)&&sa||Object,"function"==typeof(aa=void 0!==Qo.p&&Qo.p)&&aa||Object,"function"==typeof(la=void 0!==Qo.N&&Qo.N)&&la||Object,"function"==typeof(ca=void 0!==er&&er)&&ca||Object,"function"==typeof(ua=void 0!==yr&&yr)&&ua||Object,"function"==typeof(pa=void 0!==Mr&&Mr)&&pa||Object])],ta);var ea,na,ia,oa,ra,sa,aa,la,ca,ua,pa,da=9,ha=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._elementRef=n,this.gestureBlocker=i.createBlocker(hs),this.d=o.data,this.mode=e.get("mode"),r.setElementClass(n.nativeElement,"action-sheet-"+this.mode,!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&r.setElementClass(n.nativeElement,t,!0)}),this.id=++ya,this.d.title&&(this.hdrId="acst-hdr-"+this.id),this.d.subTitle&&(this.descId="acst-subhdr-"+this.id)}return t.prototype.ionViewDidLoad=function(){var t=this;this.d.buttons=this.d.buttons.map(function(e){switch("string"==typeof e&&(e={text:e}),e.cssClass||(e.cssClass=""),e.role){case"cancel":return t.cancelButton=e,null;case"destructive":e.cssClass=(e.cssClass+" "||"")+"action-sheet-destructive";break;case"selected":e.cssClass=(e.cssClass+" "||"")+"action-sheet-selected"}return e}).filter(function(t){return null!==t})},t.prototype.ionViewWillEnter=function(){this.gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this.gestureBlocker.unblock()},t.prototype.ionViewDidEnter=function(){var t=this._elementRef.nativeElement.querySelector("button");t&&t.focus(),this.enabled=!0},t.prototype.keyUp=function(t){this.enabled&&27===t.keyCode&&this._viewCtrl.isLast()&&(console.debug("actionsheet, escape button"),this.bdClick())},t.prototype.click=function(t){if(this.enabled){var e=!0;t.handler&&!1===t.handler()&&(e=!1),e&&this.dismiss(t.role)}},t.prototype.bdClick=function(){this.enabled&&this.d.enableBackdropDismiss&&(this.cancelButton?this.click(this.cancelButton):this.dismiss("backdrop"))},t.prototype.dismiss=function(t){var e={minClickBlockDuration:400};return this._viewCtrl.dismiss(null,t,e)},t.prototype.ngOnDestroy=function(){w(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.d=this.cancelButton=null,this.gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],ha.prototype,"keyUp",null),ha=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-action-sheet",template:'<ion-backdrop (click)="bdClick()" [class.backdrop-no-tappable]="!d.enableBackdropDismiss"></ion-backdrop><div class="action-sheet-wrapper"><div class="action-sheet-container"><div class="action-sheet-group"><div class="action-sheet-title" id="{{hdrId}}" *ngIf="d.title">{{d.title}}</div><div class="action-sheet-sub-title" id="{{descId}}" *ngIf="d.subTitle">{{d.subTitle}}</div><button ion-button="action-sheet-button" (click)="click(b)" *ngFor="let b of d.buttons" class="disable-hover" [attr.icon-start]="b.icon ? \'\' : null" [ngClass]="b.cssClass"><ion-icon [name]="b.icon" *ngIf="b.icon" class="action-sheet-icon"></ion-icon>{{b.text}}</button></div><div class="action-sheet-group action-sheet-group-cancel" *ngIf="cancelButton"><button ion-button="action-sheet-button" (click)="click(cancelButton)" class="action-sheet-cancel disable-hover" [attr.icon-start]="cancelButton.icon ? \'\' : null" [ngClass]="cancelButton.cssClass"><ion-icon [name]="cancelButton.icon" *ngIf="cancelButton.icon" class="action-sheet-icon"></ion-icon>{{cancelButton.text}}</button></div></div></div>',host:{role:"dialog","[attr.aria-labelledby]":"hdrId","[attr.aria-describedby]":"descId"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(_a=void 0!==or&&or)&&_a||Object,"function"==typeof(fa=void 0!==er&&er)&&fa||Object,"function"==typeof(ba=void 0!==Qo.p&&Qo.p)&&ba||Object,"function"==typeof(ma=void 0!==_s&&_s)&&ma||Object,"function"==typeof(ga=void 0!==ir&&ir)&&ga||Object,"function"==typeof(va=void 0!==Qo.N&&Qo.N)&&va||Object])],ha);var _a,fa,ba,ma,ga,va,ya=-1,Oa=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ja=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.01,.4),n.fromTo("translateY","100%","0%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(e).add(n)},e}(xr),wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.4,0),n.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(300).add(e).add(n)},e}(xr),Sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.01,.26),n.fromTo("translateY","100%","0%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(e).add(n)},e}(xr),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.26,0),n.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e).add(n)},e}(xr),ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.01,.16),n.fromTo("translateY","100%","0%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(e).add(n)},e}(xr),Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oa(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".action-sheet-wrapper"));e.fromTo("opacity",.1,0),n.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e).add(n)},e}(xr),xa=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ea=function(t){function e(e,n,i){var o=this;return n.buttons=n.buttons||[],n.enableBackdropDismiss=!d(n.enableBackdropDismiss)||!!n.enableBackdropDismiss,o=t.call(this,ha,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("action-sheet-slide-in",ja),i.setTransition("action-sheet-slide-out",wa),i.setTransition("action-sheet-md-slide-in",Sa),i.setTransition("action-sheet-md-slide-out",Ca),i.setTransition("action-sheet-wp-slide-in",ka),i.setTransition("action-sheet-wp-slide-out",Ta),o}return xa(e,t),e.prototype.getTransitionName=function(t){var e="actionSheet"+("back"===t?"Leave":"Enter");return this._nav&&this._nav.config.get(e)},e.prototype.setTitle=function(t){return this.data.title=t,this},e.prototype.setSubTitle=function(t){return this.data.subTitle=t,this},e.prototype.addButton=function(t){return this.data.buttons.push(t),this},e.prototype.present=function(t){return void 0===t&&(t={}),t.minClickBlockDuration=t.minClickBlockDuration||400,this._app.present(this,t)},e}(or),Pa=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new Ea(this._app,t,this.config)},t}();Pa=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ia=void 0!==Mr&&Mr)&&Ia||Object,"function"==typeof(Da=void 0!==er&&er)&&Da||Object])],Pa);n(43);var Ia,Da,Aa=function(){function t(t,e,n,i,o,r,s){this._viewCtrl=t,this._elementRef=e,this._renderer=r,this._plt=s,this.gestureBlocker=i.createBlocker(hs),this.d=o.data,this.mode=this.d.mode||n.get("mode"),this.keyboardResizes=n.getBoolean("keyboardResizes",!1),r.setElementClass(e.nativeElement,"alert-"+this.mode,!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&r.setElementClass(e.nativeElement,t,!0)}),this.id=++Ha,this.descId="",this.hdrId="alert-hdr-"+this.id,this.subHdrId="alert-subhdr-"+this.id,this.msgId="alert-msg-"+this.id,this.activeId="",this.lastClick=0,this.d.message?this.descId=this.msgId:this.d.subTitle&&(this.descId=this.subHdrId),this.d.message||(this.d.message="")}return t.prototype.ionViewDidLoad=function(){var t=this,e=this.d;e.buttons=e.buttons.map(function(t){return"string"==typeof t?{text:t}:t}),e.inputs=e.inputs.map(function(e,n){return{type:e.type||"text",name:d(e.name)?e.name:n+"",placeholder:d(e.placeholder)?e.placeholder:"",value:d(e.value)?e.value:"",label:e.label,checked:!!e.checked,disabled:!!e.disabled,id:d(e.id)?e.id:"alert-input-"+t.id+"-"+n,handler:d(e.handler)?e.handler:null,min:d(e.min)?e.min:null,max:d(e.max)?e.max:null}});var n=[];e.inputs.forEach(function(t){n.indexOf(t.type)<0&&n.push(t.type)}),n.length>1&&(n.indexOf("checkbox")>-1||n.indexOf("radio")>-1)&&console.warn("Alert cannot mix input types: "+n.join("/")+". Please see alert docs for more info."),this.inputType=n.length?n[0]:null;var i=this.d.inputs.find(function(t){return t.checked});i&&(this.activeId=i.id);var o=this.d.inputs.length&&this.d.inputs.some(function(t){return!mr.test(t.type)});!this.keyboardResizes&&o&&this._plt.is("mobile")&&this._renderer.setElementClass(this._elementRef.nativeElement,"alert-top",!0)},t.prototype.ionViewWillEnter=function(){this.gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this.gestureBlocker.unblock()},t.prototype.ionViewDidEnter=function(){var t=this._elementRef.nativeElement.querySelector("input,button");t&&t.focus(),this.enabled=!0},t.prototype.keyUp=function(t){if(this.enabled&&this._viewCtrl.isLast())if(13===t.keyCode){if(this.lastClick+1e3<Date.now()){console.debug("alert, enter button");var e=this.d.buttons[this.d.buttons.length-1];this.btnClick(e)}}else 27===t.keyCode&&(console.debug("alert, escape button"),this.bdClick())},t.prototype.btnClick=function(t){if(this.enabled){this.lastClick=Date.now();var e=!0;t.handler&&!1===t.handler(this.getValues())&&(e=!1),e&&this.dismiss(t.role)}},t.prototype.rbClick=function(t){this.enabled&&(this.d.inputs.forEach(function(e){e.checked=t===e}),this.activeId=t.id,t.handler&&t.handler(t))},t.prototype.cbClick=function(t){this.enabled&&(t.checked=!t.checked,t.handler&&t.handler(t))},t.prototype.bdClick=function(){if(this.enabled&&this.d.enableBackdropDismiss){var t=this.d.buttons.find(function(t){return"cancel"===t.role});t?this.btnClick(t):this.dismiss("backdrop")}},t.prototype.dismiss=function(t){var e={minClickBlockDuration:400};return this._viewCtrl.dismiss(this.getValues(),t,e)},t.prototype.getValues=function(){if("radio"===this.inputType){var t=this.d.inputs.find(function(t){return t.checked});return t?t.value:void 0}if("checkbox"===this.inputType)return this.d.inputs.filter(function(t){return t.checked}).map(function(t){return t.value});if(0!==this.d.inputs.length){var e={};return this.d.inputs.forEach(function(t){e[t.name]=t.value}),e}},t.prototype.ngOnDestroy=function(){w(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],Aa.prototype,"keyUp",null),Aa=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-alert",template:'<ion-backdrop (click)="bdClick()" [class.backdrop-no-tappable]="!d.enableBackdropDismiss"></ion-backdrop><div class="alert-wrapper"><div class="alert-head"><h2 id="{{hdrId}}" class="alert-title" *ngIf="d.title" [innerHTML]="d.title"></h2><h3 id="{{subHdrId}}" class="alert-sub-title" *ngIf="d.subTitle" [innerHTML]="d.subTitle"></h3></div><div id="{{msgId}}" class="alert-message" [innerHTML]="d.message"></div><div *ngIf="d.inputs.length" [ngSwitch]="inputType"><ng-template ngSwitchCase="radio"><div class="alert-radio-group" role="radiogroup" [attr.aria-labelledby]="hdrId" [attr.aria-activedescendant]="activeId"><button ion-button="alert-radio-button" *ngFor="let i of d.inputs" (click)="rbClick(i)" [attr.aria-checked]="i.checked" [disabled]="i.disabled" [attr.id]="i.id" class="alert-tappable alert-radio" role="radio"><div class="alert-radio-icon"><div class="alert-radio-inner"></div></div><div class="alert-radio-label">{{i.label}}</div></button></div></ng-template><ng-template ngSwitchCase="checkbox"><div class="alert-checkbox-group"><button ion-button="alert-checkbox-button" *ngFor="let i of d.inputs" (click)="cbClick(i)" [attr.aria-checked]="i.checked" [attr.id]="i.id" [disabled]="i.disabled" class="alert-tappable alert-checkbox" role="checkbox"><div class="alert-checkbox-icon"><div class="alert-checkbox-inner"></div></div><div class="alert-checkbox-label">{{i.label}}</div></button></div></ng-template><ng-template ngSwitchDefault><div class="alert-input-group"><div *ngFor="let i of d.inputs" class="alert-input-wrapper"><input [placeholder]="i.placeholder" [(ngModel)]="i.value" [type]="i.type" dir="auto" [min]="i.min" [max]="i.max" [attr.id]="i.id" class="alert-input"></div></div></ng-template></div><div class="alert-button-group" [ngClass]="{\'alert-button-group-vertical\':d.buttons.length>2}"><button ion-button="alert-button" *ngFor="let b of d.buttons" (click)="btnClick(b)" [ngClass]="b.cssClass">{{b.text}}</button></div></div>',host:{role:"dialog","[attr.aria-labelledby]":"hdrId","[attr.aria-describedby]":"descId"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Na=void 0!==or&&or)&&Na||Object,"function"==typeof(Ba=void 0!==Qo.p&&Qo.p)&&Ba||Object,"function"==typeof(La=void 0!==er&&er)&&La||Object,"function"==typeof(za=void 0!==_s&&_s)&&za||Object,"function"==typeof(Ma=void 0!==ir&&ir)&&Ma||Object,"function"==typeof(Ra=void 0!==Qo.N&&Qo.N)&&Ra||Object,"function"==typeof(Fa=void 0!==yr&&yr)&&Fa||Object])],Aa);var Na,Ba,La,za,Ma,Ra,Fa,Ha=-1,Va=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.3),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),qa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.3,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.5),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),Ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.5,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),Xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.3,1),e.fromTo("opacity",.01,.5),this.easing("cubic-bezier(0,0,0.05,1)").duration(200).add(e).add(n)},e}(xr),Ua=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Va(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".alert-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,1.3),e.fromTo("opacity",.5,0),this.easing("ease-out").duration(150).add(e).add(n)},e}(xr),Za=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$a=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n.inputs=n.inputs||[],n.buttons=n.buttons||[],n.enableBackdropDismiss=!d(n.enableBackdropDismiss)||!!n.enableBackdropDismiss,o=t.call(this,Aa,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("alert-pop-in",Wa),i.setTransition("alert-pop-out",qa),i.setTransition("alert-md-pop-in",Ya),i.setTransition("alert-md-pop-out",Ga),i.setTransition("alert-wp-pop-in",Xa),i.setTransition("alert-wp-pop-out",Ua),o}return Za(e,t),e.prototype.getTransitionName=function(t){var e="back"===t?"alertLeave":"alertEnter";return this._nav&&this._nav.config.get(e)},e.prototype.setTitle=function(t){return this.data.title=t,this},e.prototype.setSubTitle=function(t){return this.data.subTitle=t,this},e.prototype.setMessage=function(t){return this.data.message=t,this},e.prototype.addInput=function(t){return this.data.inputs.push(t),this},e.prototype.addButton=function(t){return this.data.buttons.push(t),this},e.prototype.setCssClass=function(t){return this.data.cssClass=t,this},e.prototype.setMode=function(t){this.data.mode=t},e.prototype.present=function(t){return void 0===t&&(t={}),t.minClickBlockDuration=t.minClickBlockDuration||400,this._app.present(this,t)},e}(or),Ka=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new $a(this._app,t,this.config)},t}();Ka=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Qa=void 0!==Mr&&Mr)&&Qa||Object,"function"==typeof(Ja=void 0!==er&&er)&&Ja||Object])],Ka);n(44);var Qa,Ja,tl=function(){return function(){}}();tl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-avatar"}),Object(Jo.__metadata)("design:paramtypes",[])],tl);var el=function(){function t(t,e){this._elementRef=t,this._renderer=e}return t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t}();el=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-backdrop",host:{role:"presentation",tappable:"","disable-activated":""}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(nl=void 0!==Qo.p&&Qo.p)&&nl||Object,"function"==typeof(il=void 0!==Qo.N&&Qo.N)&&il||Object])],el);var nl,il,ol=function(t){function e(e,n,i){return t.call(this,e,n,i,"badge")||this}return Object(Jo.__extends)(e,t),e}(Yr);ol=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-badge"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(rl=void 0!==er&&er)&&rl||Object,"function"==typeof(sl=void 0!==Qo.p&&Qo.p)&&sl||Object,"function"==typeof(al=void 0!==Qo.N&&Qo.N)&&al||Object])],ol);var rl,sl,al,ll=function(t){function e(e,n,i,o){var r=t.call(this,n,i,o)||this;return r._role="button",r._style="default",r._mode=n.get("mode"),!1===n.get("hoverCSS")&&r.setElementClass("disable-hover",!0),e.trim().length>0&&r.setRole(e),r}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"large",{set:function(t){this._attr("_size","large",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"small",{set:function(t){this._attr("_size","small",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"default",{set:function(t){this._attr("_size","default",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outline",{set:function(t){this._attr("_style","outline",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clear",{set:function(t){this._attr("_style","clear",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"solid",{set:function(t){this._attr("_style","solid",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{set:function(t){this._attr("_shape","round",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"block",{set:function(t){this._attr("_display","block",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"full",{set:function(t){this._attr("_display","full",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strong",{set:function(t){this._attr("_decorator","strong",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{set:function(t){this._assignCss(!1),this._mode=t,this._assignCss(!0)},enumerable:!0,configurable:!0}),e.prototype._attr=function(t,e,n){"_style"===t&&this._updateColor(this._color,!1),this._setClass(this[t],!1),b(n)?(this[t]=e,this._setClass(e,!0)):(this[t]="_style"===t?"default":null,this._setClass(this[t],!0)),"_style"===t&&this._updateColor(this._color,!0)},Object.defineProperty(e.prototype,"color",{set:function(t){this._updateColor(this._color,!1),this._updateColor(t,!0),this._color=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._init=!0,this._assignCss(!0)},e.prototype.setRole=function(t){this._assignCss(!1),this._role=t,this._assignCss(!0)},e.prototype._assignCss=function(t){var e=this._role;e&&(this.setElementClass(e,t),this.setElementClass(e+"-"+this._mode,t),this._setClass(this._style,t),this._setClass(this._shape,t),this._setClass(this._display,t),this._setClass(this._size,t),this._setClass(this._decorator,t),this._updateColor(this._color,t))},e.prototype._setClass=function(t,e){t&&this._init&&(t=t.toLocaleLowerCase(),this.setElementClass(this._role+"-"+t,e),this.setElementClass(this._role+"-"+t+"-"+this._mode,e))},e.prototype._updateColor=function(t,e){if(t&&this._init){var n=this._role,i=this._style;n+=null!==(i="bar-button"!==this._role&&"solid"===i?"default":i)&&""!==i&&"default"!==i?"-"+i.toLowerCase():"",null!==t&&""!==t&&this.setElementClass(n+"-"+this._mode+"-"+t,e)}},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"large",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"small",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"default",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"outline",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"clear",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"solid",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"round",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"block",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"full",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ll.prototype,"strong",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],ll.prototype,"mode",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],ll.prototype,"color",null),ll=Object(Jo.__decorate)([Object(Qo.k)({selector:"[ion-button]",template:'<span class="button-inner"><ng-content></ng-content></span><div class="button-effect"></div>',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(0,Object(Qo.g)("ion-button")),Object(Jo.__metadata)("design:paramtypes",[String,"function"==typeof(cl=void 0!==er&&er)&&cl||Object,"function"==typeof(ul=void 0!==Qo.p&&Qo.p)&&ul||Object,"function"==typeof(pl=void 0!==Qo.N&&Qo.N)&&pl||Object])],ll);var cl,ul,pl,dl=function(t){function e(e,n,i){return t.call(this,e,n,i,"card")||this}return Object(Jo.__extends)(e,t),e}(Yr);dl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-card"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(hl=void 0!==er&&er)&&hl||Object,"function"==typeof(_l=void 0!==Qo.p&&Qo.p)&&_l||Object,"function"==typeof(fl=void 0!==Qo.N&&Qo.N)&&fl||Object])],dl);var hl,_l,fl,bl=function(t){function e(e,n,i){return t.call(this,e,n,i,"card-content")||this}return Object(Jo.__extends)(e,t),e}(Yr);bl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-card-content"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(ml=void 0!==er&&er)&&ml||Object,"function"==typeof(gl=void 0!==Qo.p&&Qo.p)&&gl||Object,"function"==typeof(vl=void 0!==Qo.N&&Qo.N)&&vl||Object])],bl);var ml,gl,vl,yl=function(t){function e(e,n,i){return t.call(this,e,n,i,"card-header")||this}return Object(Jo.__extends)(e,t),e}(Yr);yl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-card-header"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ol=void 0!==er&&er)&&Ol||Object,"function"==typeof(jl=void 0!==Qo.p&&Qo.p)&&jl||Object,"function"==typeof(wl=void 0!==Qo.N&&Qo.N)&&wl||Object])],yl);var Ol,jl,wl,Sl=function(t){function e(e,n,i){return t.call(this,e,n,i,"card-title")||this}return Object(Jo.__extends)(e,t),e}(Yr);Sl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-card-title"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Cl=void 0!==er&&er)&&Cl||Object,"function"==typeof(kl=void 0!==Qo.p&&Qo.p)&&kl||Object,"function"==typeof(Tl=void 0!==Qo.N&&Qo.N)&&Tl||Object])],Sl);var Cl,kl,Tl,xl=n(3),El=function(){function t(){this._focused=null,this._ids=-1,this._inputs=[]}return t.prototype.register=function(t){this._inputs.push(t)},t.prototype.deregister=function(t){y(this._inputs,t),this.unsetAsFocused(t)},t.prototype.setAsFocused=function(t){this._focused=t},t.prototype.unsetAsFocused=function(t){t===this._focused&&(this._focused=null)},t.prototype.tabFocus=function(t){var e=this._inputs,n=e.indexOf(t)+1;if(n>0&&n<e.length){var i=e[n];if(i!==this._focused)return console.debug("tabFocus, next"),i.initFocus()}if((n=e.indexOf(this._focused))>0){var o=e[n-1];o&&(console.debug("tabFocus, previous"),o.initFocus())}},t.prototype.nextId=function(){return++this._ids},t}();El=Object(Jo.__decorate)([Object(Qo.w)()],El);var Pl=function(){function t(t){this.wait=t,this.timer=null}return t.prototype.debounce=function(t){this.callback=t,this.schedule()},t.prototype.schedule=function(){this.cancel(),this.wait<=0?this.callback():this.timer=setTimeout(this.callback,this.wait)},t.prototype.cancel=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t}(),Il=function(t){function e(e,n,i,r,s,a,l,c){var u=t.call(this,e,n,i,r)||this;return u._defaultValue=s,u._form=a,u._item=l,u._ngControl=c,u._isFocus=!1,u._disabled=!1,u._debouncer=new Pl(0),u._init=!1,u._initModel=!1,u.ionFocus=new Qo.r,u.ionChange=new Qo.r,u.ionBlur=new Qo.r,a&&a.register(u),u._value=o(u._defaultValue),l&&(w("lbl-"+l.id===l.labelId,"labelId was not calculated correctly"),u.id=r+"-"+l.registerInput(r),u._labelId=l.labelId,u._item.setElementClass("item-"+r,!0)),c&&(c.valueAccessor=u),u}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._writeValue(t)&&(this.onChange(),this._fireIonChange())},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t){this.value=t},e.prototype.setDisabledState=function(t){this._disabled=t=b(t),this._item&&this._item.setElementClass("item-"+this._componentName+"-disabled",t)},e.prototype.writeValue=function(t){this._writeValue(t)&&(this._initModel?this._fireIonChange():this._init&&(this._initModel=!0))},e.prototype._writeValue=function(t){if(w(Qo.G.isInAngularZone(),"callback should be zoned"),p(t))return!1;var e=null===t?o(this._defaultValue):this._inputNormalize(t);return!(p(e)||!this._inputShouldChange(e))&&(console.debug("BaseInput: value changed:",e,this),this._value=e,this._init&&this._inputUpdated(),!0)},e.prototype._fireIonChange=function(){var t=this;this._init&&this._debouncer.debounce(function(){w(Qo.G.isInAngularZone(),"IonChange: should be zoned"),t.ionChange.emit(t._inputChangeEvent()),t._initModel=!0})},e.prototype.registerOnChange=function(t){this._onChanged=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype._initialize=function(){this._init?w(!1,"input was already initilized"):(this._init=!0,d(this._value)&&this._inputUpdated())},e.prototype._fireFocus=function(){this._isFocus||(console.debug("BaseInput: focused:",this),this._form&&this._form.setAsFocused(this),this._setFocus(!0),this.ionFocus.emit(this))},e.prototype._fireBlur=function(){this._isFocus&&(console.debug("BaseInput: blurred:",this),this._form&&this._form.unsetAsFocused(this),this._setFocus(!1),this._fireTouched(),this.ionBlur.emit(this))},e.prototype._fireTouched=function(){this._onTouched&&this._onTouched()},e.prototype._setFocus=function(t){w(this._init,"component was not initialized"),w(Qo.G.isInAngularZone(),"_fireFocus: should be zoned"),w(t!==this._isFocus,"bad internal state"),this._isFocus=t;var e=this._item;e&&(e.setElementClass("input-has-focus",t),e.setElementClass("item-input-has-focus",t)),this._inputUpdated()},e.prototype.onChange=function(){this._onChanged&&this._onChanged(this._inputNgModelEvent())},e.prototype.isFocus=function(){return this._isFocus},e.prototype.hasValue=function(){var t=this._value;return!!d(t)&&(!f(t)&&!a(t)||t.length>0)},e.prototype.focusNext=function(){this._form&&this._form.tabFocus(this)},e.prototype.ngOnDestroy=function(){w(this._init,"input was destroed without being initialized");var t=this._form;t&&t.deregister(this),this._init=!1},e.prototype.ngAfterContentInit=function(){this._initialize()},e.prototype.initFocus=function(){var t=this._elementRef.nativeElement.querySelector("button");t&&t.focus()},e.prototype._inputNormalize=function(t){return t},e.prototype._inputShouldChange=function(t){return this._value!==t},e.prototype._inputChangeEvent=function(){return this},e.prototype._inputNgModelEvent=function(){return this._value},e.prototype._inputUpdated=function(){w(this._init,"component should be initialized");var t=this._item;if(t){st(t,this._ngControl);var e=this.hasValue();t.setElementClass("input-has-value",e),t.setElementClass("item-input-has-value",e)}},e}(Yr);Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Dl=void 0!==Qo.r&&Qo.r)&&Dl||Object)],Il.prototype,"ionFocus",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Al=void 0!==Qo.r&&Qo.r)&&Al||Object)],Il.prototype,"ionChange",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Nl=void 0!==Qo.r&&Qo.r)&&Nl||Object)],Il.prototype,"ionBlur",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Il.prototype,"disabled",null);var Dl,Al,Nl,Bl=function(t){function e(e,n,i){var o=t.call(this,e,n,i,"icon")||this;return o._isActive=!0,o._name="",o._ios="",o._md="",o._css="",o._hidden=!1,o._iconMode=e.get("iconMode"),o}return Object(Jo.__extends)(e,t),e.prototype.ngOnDestroy=function(){this._css&&this.setElementClass(this._css,!1)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=/^md-|^ios-|^logo-/.test(t)?t:this._iconMode+"-"+t,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ios",{get:function(){return this._ios},set:function(t){this._ios=t,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"md",{get:function(){return this._md},set:function(t){this._md=t,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this._isActive=b(t),this.update()},enumerable:!0,configurable:!0}),e.prototype.update=function(){var t;if(t=this._ios&&"ios"===this._iconMode?this._ios:this._md&&"md"===this._iconMode?this._md:this._name,!(this._hidden=null===t)){"ios"===t.split("-",2)[0]&&!this._isActive&&t.indexOf("logo-")<0&&t.indexOf("-outline")<0&&(t+="-outline");var e="ion-"+t;if(this._css!==e){this._css&&this.setElementClass(this._css,!1),this._css=e,this.setElementClass(e,!0);var n=t.replace("ios-","").replace("md-","").replace("-"," ");this.setElementAttribute("aria-label",n)}}},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Bl.prototype,"name",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Bl.prototype,"ios",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Bl.prototype,"md",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Bl.prototype,"isActive",null),Object(Jo.__decorate)([Object(Qo.t)("class.hide"),Object(Jo.__metadata)("design:type",Boolean)],Bl.prototype,"_hidden",void 0),Bl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-icon",host:{role:"img"}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ll=void 0!==er&&er)&&Ll||Object,"function"==typeof(zl=void 0!==Qo.p&&Qo.p)&&zl||Object,"function"==typeof(Ml=void 0!==Qo.N&&Qo.N)&&Ml||Object])],Bl);var Ll,zl,Ml,Rl=function(t){function e(e,n,i,o,r,s,a){var l=t.call(this,e,n,i,"label")||this;return l.type=""===o?"floating":""===r?"stacked":""===s?"fixed":""===a?"inset":null,l}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t,t&&this.setElementAttribute("id",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.getNativeElement().textContent||""},enumerable:!0,configurable:!0}),e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Rl.prototype,"id",null),Rl=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-label"}),Object(Jo.__param)(3,Object(Qo.g)("floating")),Object(Jo.__param)(4,Object(Qo.g)("stacked")),Object(Jo.__param)(5,Object(Qo.g)("fixed")),Object(Jo.__param)(6,Object(Qo.g)("inset")),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Fl=void 0!==er&&er)&&Fl||Object,"function"==typeof(Hl=void 0!==Qo.p&&Qo.p)&&Hl||Object,"function"==typeof(Vl=void 0!==Qo.N&&Qo.N)&&Vl||Object,String,String,String,String])],Rl);var Fl,Hl,Vl,Wl=function(){function t(t,e,n,i){this._plt=e,this._zone=n,this._dom=i,this.willShow=new Qo.r,this.willHide=new Qo.r,this.didShow=new Qo.r,this.didHide=new Qo.r,this.eventsAvailable=!1,this.focusOutline(t.get("focusOutline"));var o=e.win();t.getBoolean("keyboardResizes",!1)?this.listenV2(o):this.listenV1(o)}return t.prototype.listenV2=function(t){var e=this,n=this._plt;n.registerListener(t,"keyboardWillShow",function(){e._zone.run(function(){e.willShow.emit()})},{zone:!1,passive:!0}),n.registerListener(t,"keyboardWillHide",function(){e._zone.run(function(){e.willHide.emit()})},{zone:!1,passive:!0}),n.registerListener(t,"keyboardDidShow",function(){e._zone.run(function(){e.didShow.emit()})},{zone:!1,passive:!0}),n.registerListener(t,"keyboardDidHide",function(){e._zone.run(function(){e.didHide.emit()})},{zone:!1,passive:!0}),this.eventsAvailable=!0},t.prototype.listenV1=function(t){var e=this,n=this._plt;n.registerListener(t,"native.keyboardhide",function(){e.blurActiveInput(!0)},{zone:!1,passive:!0}),n.registerListener(t,"native.keyboardshow",function(){e.blurActiveInput(!1)},{zone:!1,passive:!0})},t.prototype.blurActiveInput=function(t){var e=this,n=this._plt;n.cancelTimeout(this._tmr),t&&(this._tmr=n.timeout(function(){e.isOpen()&&n.focusOutActiveElement()},80))},t.prototype.isOpen=function(){return this.hasFocusedTextInput()},t.prototype.onClose=function(t,e,n){function i(){console.debug("keyboard, isOpen: "+o.isOpen()),!o.isOpen()||r>n?o._plt.timeout(function(){o._zone.run(function(){console.debug("keyboard, closed"),t()})},400):o._plt.timeout(i,e),r++}void 0===e&&(e=Ul),void 0===n&&(n=Zl),console.debug("keyboard, onClose created");var o=this,r=0,s=null;return t||(s=new Promise(function(e){t=e})),o._plt.timeout(i,e),s},t.prototype.close=function(){var t=this;this._dom.read(function(){t.isOpen()&&(console.debug("keyboard, close()"),t._dom.write(function(){t._plt.focusOutActiveElement()}))})},t.prototype.focusOutline=function(t){function e(){s._dom.write(function(){a.doc().body.classList[c?"add":"remove"]("focus-outline")})}function n(){c=!1,i()}function i(){e(),o&&o(),r&&r(),c&&(o=a.registerListener(l,"mousedown",n,u),r=a.registerListener(l,"touchstart",n,u))}var o,r,s=this,a=s._plt,l=a.doc(),c=!1,u={passive:!0,zone:!1};if(!0===t)return c=!0,e();!1!==t&&a.registerListener(a.doc(),"keydown",function(t){c||t.keyCode!==da||(c=!0,i())},u)},t.prototype.hasFocusedTextInput=function(){var t=this._plt.getActiveElement();return!!z(t)&&t.parentElement.querySelector(":focus")===t},t}();Wl=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(ql=void 0!==er&&er)&&ql||Object,"function"==typeof(Yl=void 0!==yr&&yr)&&Yl||Object,"function"==typeof(Gl=void 0!==Qo.G&&Qo.G)&&Gl||Object,"function"==typeof(Xl=void 0!==es&&es)&&Xl||Object])],Wl);var ql,Yl,Gl,Xl,Ul=150,Zl=100,$l=function(){function t(t,e,n){this._app=t,this._plt=e,this._dom=n,this.isScrolling=!1,this.initialized=!1,this._eventsEnabled=!1,this._t=0,this._l=0,this.ev={timeStamp:0,scrollTop:0,scrollLeft:0,scrollHeight:0,scrollWidth:0,contentHeight:0,contentWidth:0,contentTop:0,contentBottom:0,startY:0,startX:0,deltaY:0,deltaX:0,velocityY:0,velocityX:0,directionY:"down",directionX:null,domWrite:n.write.bind(n)}}return t.prototype.init=function(t,e,n){w(t,"scroll-view, element can not be null"),this._el=t,this.initialized||(this.initialized=!0,this._js?this.enableJsScroll(e,n):this.enableNativeScrolling())},t.prototype.enableEvents=function(){this._eventsEnabled=!0},t.prototype.setScrolling=function(t,e){this.isScrolling?t?this.onScroll&&this.onScroll(e):(this.isScrolling=!1,this.onScrollEnd&&this.onScrollEnd(e)):t&&(this.isScrolling=!0,this.onScrollStart&&this.onScrollStart(e))},t.prototype.enableNativeScrolling=function(){if(w(this.onScrollStart,"onScrollStart is not defined"),w(this.onScroll,"onScroll is not defined"),w(this.onScrollEnd,"onScrollEnd is not defined"),this._js=!1,this._el){console.debug("ScrollView, enableNativeScrolling");var t=this,e=t.ev,n=[];t._lsn&&t._lsn(),t._lsn=t._plt.registerListener(t._el,"scroll",function(i){if(t._app.setScrolling(),t._eventsEnabled){if(e.timeStamp=i.timeStamp,e.timeStamp||(e.timeStamp=Date.now()),e.scrollTop=t.getTop(),e.scrollLeft=t.getLeft(),t.isScrolling||(e.startY=e.scrollTop,e.startX=e.scrollLeft,e.velocityY=e.velocityX=0,e.deltaY=e.deltaX=0,n.length=0),n.push(e.scrollTop,e.scrollLeft,e.timeStamp),n.length>3){e.deltaY=e.scrollTop-e.startY,e.deltaX=e.scrollLeft-e.startX;for(var o=n.length-1,r=o,s=e.timeStamp-100,a=o;a>0&&n[a]>s;a-=3)r=a;if(r!==o){var l=n[r-2]-n[o-2],c=n[r-1]-n[o-1],u=ec/(n[o]-n[r]);e.velocityY=l*u,e.velocityX=c*u,e.directionY=l>0?"up":"down",e.directionX=c>0?"left":"right"}}t.setScrolling(!0,e),t._dom.cancel(t._endTmr),t._endTmr=t._dom.read(function(){e.velocityY=e.velocityX=0,t.setScrolling(!1,e),t._endTmr=null},Kl)}},nc)}},t.prototype.enableJsScroll=function(t,e){function n(){a||(a=r.scrollHeight-r.parentElement.offsetHeight+t+e)}function i(t){l.timeStamp=t,console.debug("scroll-view, decelerate, velocity: "+l.velocityY),l.velocityY&&(l.velocityY*=tc,n(),o._t=Math.min(Math.max(o._t+l.velocityY,0),a),l.scrollTop=o._t,o.onScroll(l),o._dom.write(function(){o.setTop(o._t),o._t>0&&o._t<a&&Math.abs(l.velocityY)>Jl?s=o._dom.read(function(t){i(t)}):(o.isScrolling=!1,l.velocityY=l.velocityX=0,o.onScrollEnd(l))}))}var o=this;o._js=!0;var r=o._el;if(r){console.debug("ScrollView, enableJsScroll");var s,a,l=o.ev,c=[],u=o._plt,p=u.registerListener(r,"touchstart",function(t){c.length=0,a=null,o._dom.cancel(s),c.push(B(t).y,t.timeStamp)},nc),d=u.registerListener(r,"touchmove",function(t){if(c.length){l.timeStamp=t.timeStamp;var e=B(t).y;n(),o._t-=e-c[c.length-2],o._t=Math.min(Math.max(o._t,0),a),c.push(e,l.timeStamp),o.isScrolling||(l.startY=o._t,l.velocityY=l.deltaY=0,o.isScrolling=!0,o.onScrollStart(l)),o._dom.write(function(){o.setTop(o._t)})}},nc),h=u.registerListener(r,"touchend",function(t){if(o._dom.cancel(s),!c.length&&o.isScrolling)return o.isScrolling=!1,l.velocityY=l.velocityX=0,void o.onScrollEnd(l);var e=B(t).y;c.push(e,t.timeStamp);for(var r=c.length-1,a=r,u=t.timeStamp-100,p=r;p>0&&c[p]>u;p-=2)a=p;if(a!==r){var d=c[r]-c[a],h=c[a-1]-c[r-1];l.velocityY=h/d*ec,Math.abs(l.velocityY)>Ql&&(n(),s=o._dom.read(function(t){i(t)}))}else o.isScrolling=!1,l.velocityY=0,o.onScrollEnd(l);c.length=0},nc);r.parentElement.classList.add("js-scroll"),o._lsn&&o._lsn(),o._lsn=function(){p(),d(),h(),r.parentElement.classList.remove("js-scroll")}}},t.prototype.getTop=function(){return this._js?this._t:this._t=this._el.scrollTop},t.prototype.getLeft=function(){return this._js?0:this._l=this._el.scrollLeft},t.prototype.setTop=function(t){this._t=t,this._js?this._el.style[this._plt.Css.transform]="translate3d("+-1*this._l+"px,"+-1*t+"px,0px)":this._el.scrollTop=t},t.prototype.setLeft=function(t){this._l=t,this._js?this._el.style[this._plt.Css.transform]="translate3d("+-1*t+"px,"+-1*this._t+"px,0px)":this._el.scrollLeft=t},t.prototype.scrollTo=function(t,e,n,i){function o(r){if(h++,!s._el||_||h>p)return s.setScrolling(!1,null),a.style[d]="",void i();var f=Math.min(1,(r-l)/n),b=--f*f*f+1;c!==e&&s.setTop(b*(e-c)+c),u!==t&&s.setLeft(Math.floor(b*(t-u)+u)),b<1?s._plt.raf(o):(_=!0,s.setScrolling(!1,null),a.style[d]="",i())}var r;void 0===i&&(r=new Promise(function(t){i=t}));var s=this,a=s._el;if(!a)return i(),r;if(n<32)return s.setTop(e),s.setLeft(t),i(),r;var l,c=a.scrollTop,u=a.scrollLeft,p=n/16+100,d=s._plt.Css.transform,h=0,_=!1;return s.setScrolling(!0,null),s.isScrolling=!0,s._dom.write(function(t){l=t,o(t)},16),r},t.prototype.scrollToTop=function(t){return this.scrollTo(0,0,t)},t.prototype.scrollToBottom=function(t){var e=0;return this._el&&(e=this._el.scrollHeight-this._el.clientHeight),this.scrollTo(0,e,t)},t.prototype.stop=function(){this.setScrolling(!1,null)},t.prototype.destroy=function(){this.stop(),this._endTmr&&this._dom.cancel(this._endTmr),this._lsn&&this._lsn();var t=this.ev;t.domWrite=t.contentElement=t.fixedElement=t.scrollElement=t.headerElement=null,this._lsn=this._el=this._dom=this.ev=t=null,this.onScrollStart=this.onScroll=this.onScrollEnd=null},t}(),Kl=80,Ql=4,Jl=.12,tc=.97,ec=1e3/60,nc={passive:!0,zone:!1},ic=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Jo.__extends)(e,t),e.prototype.subscribe=function(e,n,i){return this.onSubscribe(),t.prototype.subscribe.call(this,e,n,i)},e}(Qo.r),oc=function(t){function e(e,n,i,o,r,s,a,l,c,u){var p=t.call(this,e,o,r,"content")||this;p._plt=n,p._dom=i,p._app=s,p._keyboard=a,p._zone=l,p._scrollPadding=0,p._inputPolling=!1,p._hasRefresher=!1,p._imgs=[],p._scrollDownOnLoad=!1,p.ionScrollStart=new ic,p.ionScroll=new ic,p.ionScrollEnd=new ic;var d=function(){return p._scroll.enableEvents()};for(p.ionScroll.onSubscribe=d,p.ionScrollStart.onSubscribe=d,p.ionScrollEnd.onSubscribe=d,p.statusbarPadding=e.getBoolean("statusbarPadding",!1),p._imgReqBfr=e.getNumber("imgRequestBuffer",1400),p._imgRndBfr=e.getNumber("imgRenderBuffer",400),p._imgVelMax=e.getNumber("imgVelocityMax",3),p._scroll=new $l(s,n,i);u;){if(I(u)){p._tabs=u;break}u=u.parent}return c?(c._setIONContent(p),c._setIONContentRef(o),p._viewCtrlReadSub=c.readReady.subscribe(function(){p._viewCtrlReadSub.unsubscribe(),p._readDimensions()}),p._viewCtrlWriteSub=c.writeReady.subscribe(function(){p._viewCtrlWriteSub.unsubscribe(),p._writeDimensions()})):(i.read(p._readDimensions.bind(p)),i.write(p._writeDimensions.bind(p))),p}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this._scroll.ev.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentWidth",{get:function(){return this._scroll.ev.contentWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scroll.ev.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollWidth",{get:function(){return this._scroll.ev.scrollWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this._scroll.ev.scrollTop},set:function(t){this._scroll.setTop(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this._scroll.ev.scrollLeft},set:function(t){this._scroll.setLeft(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isScrolling",{get:function(){return this._scroll.isScrolling},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directionY",{get:function(){return this._scroll.ev.directionY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directionX",{get:function(){return this._scroll.ev.directionX},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this;w(this.getFixedElement(),"fixed element was not found"),w(this.getScrollElement(),"scroll element was not found");var e=this._scroll;e.ev.fixedElement=this.getFixedElement(),e.ev.scrollElement=this.getScrollElement(),e.onScrollStart=function(e){t.ionScrollStart.emit(e)},e.onScroll=function(e){t.ionScroll.emit(e),t.imgsUpdate()},e.onScrollEnd=function(e){t.ionScrollEnd.emit(e),t.imgsUpdate()}},e.prototype.enableJsScroll=function(){this._scroll.enableJsScroll(this._cTop,this._cBottom)},e.prototype.ngOnDestroy=function(){this._scLsn&&this._scLsn(),this._viewCtrlReadSub&&this._viewCtrlReadSub.unsubscribe(),this._viewCtrlWriteSub&&this._viewCtrlWriteSub.unsubscribe(),this._viewCtrlReadSub=this._viewCtrlWriteSub=null,this._scroll&&this._scroll.destroy(),this._footerEle=this._scLsn=this._scroll=null},e.prototype.getScrollElement=function(){return this._scrollContent.nativeElement},e.prototype.getFixedElement=function(){return this._fixedContent.nativeElement},e.prototype.onScrollElementTransitionEnd=function(t){this._plt.transitionEnd(this.getScrollElement(),t)},e.prototype.scrollTo=function(t,e,n,i){return void 0===n&&(n=300),console.debug("content, scrollTo started, y: "+e+", duration: "+n),this._scroll.scrollTo(t,e,n,i)},e.prototype.scrollToTop=function(t){return void 0===t&&(t=300),console.debug("content, scrollToTop, duration: "+t),this._scroll.scrollToTop(t)},e.prototype.scrollToBottom=function(t){return void 0===t&&(t=300),console.debug("content, scrollToBottom, duration: "+t),this._scroll.scrollToBottom(t)},Object.defineProperty(e.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(t){this._fullscreen=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollDownOnLoad",{get:function(){return this._scrollDownOnLoad},set:function(t){this._scrollDownOnLoad=b(t)},enumerable:!0,configurable:!0}),e.prototype.addImg=function(t){this._imgs.push(t)},e.prototype.removeImg=function(t){y(this._imgs,t)},e.prototype.setScrollElementStyle=function(t,e){var n=this.getScrollElement();n&&this._dom.write(function(){n.style[t]=e})},e.prototype.getContentDimensions=function(){var t=this.getScrollElement(),e=t.parentElement;return{contentHeight:e.offsetHeight-this._cTop-this._cBottom,contentTop:this._cTop,contentBottom:this._cBottom,contentWidth:e.offsetWidth,contentLeft:e.offsetLeft,scrollHeight:t.scrollHeight,scrollTop:t.scrollTop,scrollWidth:t.scrollWidth,scrollLeft:t.scrollLeft}},e.prototype.addScrollPadding=function(t){if(w("number"==typeof this._scrollPadding,"_scrollPadding must be a number"),t>this._scrollPadding){console.debug("content, addScrollPadding, newPadding: "+t+", this._scrollPadding: "+this._scrollPadding),this._scrollPadding=t;var e=this.getScrollElement();e&&this._dom.write(function(){e.style.paddingBottom=t>0?t+"px":""})}},e.prototype.clearScrollPaddingFocusOut=function(){var t=this;this._inputPolling||(console.debug("content, clearScrollPaddingFocusOut begin"),this._inputPolling=!0,this._keyboard.onClose(function(){console.debug("content, clearScrollPaddingFocusOut _keyboard.onClose"),t._inputPolling=!1,t._scrollPadding=-1,t.addScrollPadding(0)},200,3e3))},e.prototype.resize=function(){this._dom.read(this._readDimensions.bind(this)),this._dom.write(this._writeDimensions.bind(this))},e.prototype._readDimensions=function(){var t,e=this._pTop,n=this._pRight,i=this._pBottom,o=this._pLeft,r=this._hdrHeight,s=this._ftrHeight,a=this._tabsPlacement,l=0;if(this._pTop=0,this._pRight=0,this._pBottom=0,this._pLeft=0,this._hdrHeight=0,this._ftrHeight=0,this._tabsPlacement=null,this._tTop=0,this._fTop=0,this._fBottom=0,this._scroll){t=this._scroll.ev;var c=this.getNativeElement();if(c){for(var u,p,d=c.parentElement,h=d.children,_=h.length-1;_>=0;_--)"ION-CONTENT"===(p=(c=h[_]).tagName)?(t.contentElement=c,this._fullscreen&&(u=getComputedStyle(c),this._pTop=ct(u.paddingTop),this._pBottom=ct(u.paddingBottom),this._pRight=ct(u.paddingRight),this._pLeft=ct(u.paddingLeft))):"ION-HEADER"===p?(t.headerElement=c,this._hdrHeight=c.clientHeight):"ION-FOOTER"===p&&(t.footerElement=c,this._ftrHeight=c.clientHeight,this._footerEle=c);c=d;for(var f;c&&"ION-MODAL"!==c.tagName&&!c.classList.contains("tab-subpage");)"ION-TABS"===c.tagName&&(f=c.firstElementChild,this._tabbarHeight=f.clientHeight,null===this._tabsPlacement&&(this._tabsPlacement=c.getAttribute("tabsplacement"))),c=c.parentElement;this._tabs&&"top"===this._tabsPlacement&&(this._tTop=this._hdrHeight,l=this._tabs._top),this._cTop=this._hdrHeight,this._cBottom=this._ftrHeight,"top"===this._tabsPlacement?this._cTop+=this._tabbarHeight:"bottom"===this._tabsPlacement&&(this._cBottom+=this._tabbarHeight),this._hasRefresher&&(this._cTop-=1),this._fTop=this._cTop,this._fBottom=this._cBottom,this._fullscreen&&(this._cTop+=this._pTop,this._cBottom+=this._pBottom);var b=this.getContentDimensions();t.scrollHeight=b.scrollHeight,t.scrollWidth=b.scrollWidth,t.contentHeight=b.contentHeight,t.contentWidth=b.contentWidth,t.contentTop=b.contentTop,t.contentBottom=b.contentBottom,this._dirty=e!==this._pTop||i!==this._pBottom||o!==this._pLeft||n!==this._pRight||r!==this._hdrHeight||s!==this._ftrHeight||a!==this._tabsPlacement||l!==this._tTop||this._cTop!==this.contentTop||this._cBottom!==this.contentBottom,this._scroll.init(this.getScrollElement(),this._cTop,this._cBottom),this.imgsUpdate()}else w(!1,"ele should be valid")}},e.prototype._writeDimensions=function(){if(this._dirty){var t=this.getScrollElement();if(t){var e=this.getFixedElement();if(e){if("bottom"===this._tabsPlacement&&this._cBottom>0&&this._footerEle){var n=this._cBottom-this._ftrHeight;w(n>=0,"footerPos has to be positive"),this._footerEle.style.bottom=ut(n)}var i="marginTop",o="marginBottom",r=this._fTop,s=this._fBottom;this._fullscreen&&(w(this._pTop>=0,"_paddingTop has to be positive"),w(this._pBottom>=0,"_paddingBottom has to be positive"),i="paddingTop",o="paddingBottom"),this._cTop!==this.contentTop&&(w(this._cTop>=0,"contentTop has to be positive"),w(r>=0,"fixedTop has to be positive"),t.style[i]=ut(this._cTop),e.style.marginTop=ut(r),this.contentTop=this._cTop),this._cBottom!==this.contentBottom&&(w(this._cBottom>=0,"contentBottom has to be positive"),w(s>=0,"fixedBottom has to be positive"),t.style[o]=ut(this._cBottom),e.style.marginBottom=ut(s),this.contentBottom=this._cBottom),null!==this._tabsPlacement&&this._tabs&&("top"===this._tabsPlacement?this._tabs.setTabbarPosition(this._tTop,-1):(w("bottom"===this._tabsPlacement,"tabsPlacement should be bottom"),this._tabs.setTabbarPosition(-1,0))),this._scrollDownOnLoad&&(this.scrollToBottom(0),this._scrollDownOnLoad=!1)}else w(!1,"this._fixedEle should be valid")}else w(!1,"this.getScrollElement() should be valid")}else console.debug("Skipping writeDimensions")},e.prototype.imgsUpdate=function(){this._scroll.initialized&&this._imgs.length&&this.isImgsUpdatable()&&at(this._imgs,this.scrollTop,this.contentHeight,this.directionY,this._imgReqBfr,this._imgRndBfr)},e.prototype.isImgsUpdatable=function(){return Math.abs(this._scroll.ev.velocityY)<this._imgVelMax},e}(Yr);Object(Jo.__decorate)([Object(Qo.X)("fixedContent",{read:Qo.p}),Object(Jo.__metadata)("design:type","function"==typeof(rc=void 0!==Qo.p&&Qo.p)&&rc||Object)],oc.prototype,"_fixedContent",void 0),Object(Jo.__decorate)([Object(Qo.X)("scrollContent",{read:Qo.p}),Object(Jo.__metadata)("design:type","function"==typeof(sc=void 0!==Qo.p&&Qo.p)&&sc||Object)],oc.prototype,"_scrollContent",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",ic)],oc.prototype,"ionScrollStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",ic)],oc.prototype,"ionScroll",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",ic)],oc.prototype,"ionScrollEnd",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],oc.prototype,"fullscreen",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],oc.prototype,"scrollDownOnLoad",null),Object(Jo.__decorate)([Object(Qo.u)("window:resize"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],oc.prototype,"resize",null),oc=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-content",template:'<div class="fixed-content" #fixedContent><ng-content select="[ion-fixed],ion-fab"></ng-content></div><div class="scroll-content" #scrollContent><ng-content></ng-content></div><ng-content select="ion-refresher"></ng-content>',host:{"[class.statusbar-padding]":"statusbarPadding","[class.has-refresher]":"_hasRefresher"},changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(8,Object(Qo.H)()),Object(Jo.__param)(9,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(ac=void 0!==er&&er)&&ac||Object,"function"==typeof(lc=void 0!==yr&&yr)&&lc||Object,"function"==typeof(cc=void 0!==es&&es)&&cc||Object,"function"==typeof(uc=void 0!==Qo.p&&Qo.p)&&uc||Object,"function"==typeof(pc=void 0!==Qo.N&&Qo.N)&&pc||Object,"function"==typeof(dc=void 0!==Mr&&Mr)&&dc||Object,"function"==typeof(hc=void 0!==Wl&&Wl)&&hc||Object,"function"==typeof(_c=void 0!==Qo.G&&Qo.G)&&_c||Object,"function"==typeof(fc=void 0!==or&&or)&&fc||Object,"function"==typeof(bc=void 0!==gs&&gs)&&bc||Object])],oc);var rc,sc,ac,lc,cc,uc,pc,dc,hc,_c,fc,bc,mc=function(){function t(t,e){this.plt=t,this.reorderList=e,this.selectedItemEle=null,this.events=new ws(t),this.events.pointerEvents({element:this.reorderList.getNativeElement(),pointerDown:this.onDragStart.bind(this),pointerMove:this.onDragMove.bind(this),pointerUp:this.onDragEnd.bind(this),zone:!1})}return t.prototype.onDragStart=function(t){if(this.selectedItemEle)return!1;var e=t.target;if("ION-REORDER"!==e.nodeName)return!1;var n=e.$ionComponent;if(!n)return console.error("ion-reorder does not contain $ionComponent"),!1;this.reorderList._reorderPrepare();var i=n.getReorderNode();return i?(t.preventDefault(),this.selectedItemEle=i,this.selectedItemHeight=i.offsetHeight,this.lastYcoord=-100,this.lastToIndex=pt(i),this.windowHeight=this.plt.height()-gc,this.lastScrollPosition=this.reorderList._scrollContent(0),this.offset=B(t),this.offset.y+=this.lastScrollPosition,i.classList.add(yc),this.reorderList._reorderStart(),!0):(console.error("reorder node not found"),!1)},t.prototype.onDragMove=function(t){var e=this.selectedItemEle;if(e){t.preventDefault();var n=B(t),i=n.y,o=this.scroll(i);if(Math.abs(i-this.lastYcoord)>30){var r=this.itemForCoord(n);if(r){var s=pt(r);if(void 0!==s&&(s!==this.lastToIndex||this.emptyZone)){var a=pt(e);this.lastToIndex=s,this.lastYcoord=i,this.emptyZone=!1,this.reorderList._reorderMove(a,s,this.selectedItemHeight)}}else this.emptyZone=!0}var l=Math.round(i-this.offset.y+o);e.style[this.plt.Css.transform]="translateY("+l+"px)"}},t.prototype.onDragEnd=function(t){var e=this,n=this.selectedItemEle;if(n){t&&(t.preventDefault(),t.stopPropagation());var i=this.lastToIndex,o=pt(n),r=function(){e.selectedItemEle.style.transition="",e.selectedItemEle.classList.remove(yc),e.selectedItemEle=null};i===o?(n.style.transition="transform 200ms ease-in-out",setTimeout(r,200)):r(),this.reorderList._reorderEmit(o,i)}},t.prototype.itemForCoord=function(t){var e=this.reorderList._isStart===this.plt.isRTL?-100:100,n=this.offset.x+e,i=t.y;return dt(this.plt.getElementFromPoint(n,i),this.reorderList.getNativeElement())},t.prototype.scroll=function(t){return t<gc?this.lastScrollPosition=this.reorderList._scrollContent(-vc):t>this.windowHeight&&(this.lastScrollPosition=this.reorderList._scrollContent(vc)),this.lastScrollPosition},t.prototype.destroy=function(){this.onDragEnd(null),this.events.destroy(),this.events=null,this.reorderList=null},t}(),gc=60,vc=10,yc="reorder-active",Oc=function(){function t(t,e){this.from=t,this.to=e}return t.prototype.applyTo=function(t){v(t,this)},t}(),jc=function(){function t(t,e,n,i,o,r){this._plt=t,this._dom=e,this._rendered=i,this._zone=o,this._content=r,this._enableReorder=!1,this._visibleReorder=!1,this._isStart=!1,this._lastToIndex=-1,this.ionItemReorder=new Qo.r,this._element=n.nativeElement}return Object.defineProperty(t.prototype,"side",{set:function(t){this._isStart="start"===t},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._element=null,this._reorderGesture&&this._reorderGesture.destroy()},Object.defineProperty(t.prototype,"reorder",{get:function(){return this._enableReorder},set:function(t){var e=this,n=b(t);!n&&this._reorderGesture?(this._reorderGesture.destroy(),this._reorderGesture=null,this._visibleReorder=!1,setTimeout(function(){return e._enableReorder=!1},400)):n&&!this._reorderGesture&&(console.debug("enableReorderItems"),this._reorderGesture=new mc(this._plt,this),this._enableReorder=!0,this._dom.write(function(){e._zone.run(function(){e._visibleReorder=!0})},16))},enumerable:!0,configurable:!0}),t.prototype._reorderPrepare=function(){for(var t=this._element,e=t.children,n=0,i=e.length;n<i;n++){var o=e[n];o.$ionIndex=n,o.$ionReorderList=t}},t.prototype._reorderStart=function(){this.setElementClass("reorder-list-active",!0)},t.prototype._reorderEmit=function(t,e){var n=this;this._reorderReset(),t!==e&&this._zone.run(function(){var i=new Oc(t,e);n.ionItemReorder.emit(i)})},t.prototype._scrollContent=function(t){var e=this._content.scrollTop+t;return 0!==t&&this._content.scrollTo(0,e,0),e},t.prototype._reorderReset=function(){var t=this._element.children,e=t.length;this.setElementClass("reorder-list-active",!1);for(var n=this._plt.Css.transform,i=0;i<e;i++)t[i].style[n]="";this._lastToIndex=-1},t.prototype._reorderMove=function(t,e,n){-1===this._lastToIndex&&(this._lastToIndex=t);var i=this._lastToIndex;this._lastToIndex=e;var o=this._element.children,r=this._plt.Css.transform;if(e>=i)for(s=i;s<=e;s++)s!==t&&(o[s].style[r]=s>t?"translateY("+-n+"px)":"");if(e<=i)for(var s=e;s<=i;s++)s!==t&&(o[s].style[r]=s<t?"translateY("+n+"px)":"")},t.prototype.setElementClass=function(t,e){this._rendered.setElementClass(this._element,t,e)},t.prototype.getNativeElement=function(){return this._element},t}();Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(wc=void 0!==Qo.r&&Qo.r)&&wc||Object)],jc.prototype,"ionItemReorder",void 0),Object(Jo.__decorate)([Object(Qo.z)("side"),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],jc.prototype,"side",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],jc.prototype,"reorder",null),jc=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-list[reorder],ion-item-group[reorder]",host:{"[class.reorder-enabled]":"_enableReorder","[class.reorder-visible]":"_visibleReorder","[class.reorder-side-start]":"_isStart"}}),Object(Jo.__param)(5,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Sc=void 0!==yr&&yr)&&Sc||Object,"function"==typeof(Cc=void 0!==es&&es)&&Cc||Object,"function"==typeof(kc=void 0!==Qo.p&&Qo.p)&&kc||Object,"function"==typeof(Tc=void 0!==Qo.N&&Qo.N)&&Tc||Object,"function"==typeof(xc=void 0!==Qo.G&&Qo.G)&&xc||Object,"function"==typeof(Ec=void 0!==oc&&oc)&&Ec||Object])],jc);var wc,Sc,Cc,kc,Tc,xc,Ec,Pc=function(t){function e(e,n,i,o,r){var s=t.call(this,n,i,o,"item")||this;return s._ids=-1,s._inputs=[],s._viewLabel=!0,s._name="item",s.labelId=null,s._setName(i),s._hasReorder=!!r,s.id=e.nextId().toString(),s.labelId="lbl-"+s.id,o.orgListen||(o.orgListen=o.listen,o.listen=function(t,e,n){return"click"===e&&t.setAttribute&&t.setAttribute("tappable",""),o.orgListen(t,e,n)}),s}return Object(Jo.__extends)(e,t),e.prototype.registerInput=function(t){return this._inputs.push(t),this.id+"-"+ ++this._ids},e.prototype.ngAfterContentInit=function(){if(this._viewLabel&&this._inputs.length){var t=this.getLabelText().trim();this._viewLabel=t.length>0}this._inputs.length>1&&this.setElementClass("item-multiple-inputs",!0)},e.prototype._updateColor=function(t,e){e=e||"item",this._setColor(t,e)},e.prototype._setName=function(t){var e=t.nativeElement.nodeName.replace("ION-","");"LIST-HEADER"!==e&&"ITEM-DIVIDER"!==e||(this._name=e)},e.prototype.getLabelText=function(){return this._label?this._label.text:""},Object.defineProperty(e.prototype,"contentLabel",{set:function(t){t&&(this._label=t,t.id=this.labelId,t.type&&this.setElementClass("item-label-"+t.type,!0),this._viewLabel=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewLabel",{set:function(t){this._label||(this._label=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_buttons",{set:function(t){t.forEach(function(t){t._size||t.setElementClass("item-button",!0)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_icons",{set:function(t){t.forEach(function(t){t.setElementClass("item-icon",!0)})},enumerable:!0,configurable:!0}),e}(Yr);Object(Jo.__decorate)([Object(Qo.m)(Rl),Object(Jo.__metadata)("design:type","function"==typeof(Ic=void 0!==Rl&&Rl)&&Ic||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Dc=void 0!==Rl&&Rl)&&Dc||Object])],Pc.prototype,"contentLabel",null),Object(Jo.__decorate)([Object(Qo.X)(Rl),Object(Jo.__metadata)("design:type","function"==typeof(Ac=void 0!==Rl&&Rl)&&Ac||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Nc=void 0!==Rl&&Rl)&&Nc||Object])],Pc.prototype,"viewLabel",null),Object(Jo.__decorate)([Object(Qo.n)(ll),Object(Jo.__metadata)("design:type","function"==typeof(Bc=void 0!==Qo.L&&Qo.L)&&Bc||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Lc=void 0!==Qo.L&&Qo.L)&&Lc||Object])],Pc.prototype,"_buttons",null),Object(Jo.__decorate)([Object(Qo.n)(Bl),Object(Jo.__metadata)("design:type","function"==typeof(zc=void 0!==Qo.L&&Qo.L)&&zc||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Mc=void 0!==Qo.L&&Qo.L)&&Mc||Object])],Pc.prototype,"_icons",null),Pc=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-list-header,ion-item,[ion-item],ion-item-divider",template:'<ng-content select="[item-start],[item-left],ion-checkbox:not([item-end]):not([item-right])"></ng-content><div class="item-inner"><div class="input-wrapper"><ng-content select="ion-label"></ng-content><ion-label *ngIf="_viewLabel"><ng-content></ng-content></ion-label><ng-content select="ion-select,ion-input,ion-textarea,ion-datetime,ion-range,[item-content]"></ng-content></div><ng-content select="[item-end],[item-right],ion-radio,ion-toggle"></ng-content><ion-reorder *ngIf="_hasReorder"></ion-reorder></div><div class="button-effect"></div>',host:{class:"item"},changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Rc=void 0!==El&&El)&&Rc||Object,"function"==typeof(Fc=void 0!==er&&er)&&Fc||Object,"function"==typeof(Hc=void 0!==Qo.p&&Qo.p)&&Hc||Object,"function"==typeof(Vc=void 0!==Qo.N&&Qo.N)&&Vc||Object,"function"==typeof(Wc=void 0!==jc&&jc)&&Wc||Object])],Pc);var Ic,Dc,Ac,Nc,Bc,Lc,zc,Mc,Rc,Fc,Hc,Vc,Wc,qc=Yc=function(t){function e(e,n,i,o,r){return t.call(this,e,o,r,"checkbox",!1,n,i,null)||this}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"checked",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),e.prototype._click=function(t){t.preventDefault(),t.stopPropagation(),this.value=!this.value,this._fireTouched()},e.prototype._inputNormalize=function(t){return b(t)},e.prototype._inputUpdated=function(){this._item&&this._item.setElementClass("item-checkbox-checked",this._value)},e}(Il);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],qc.prototype,"checked",null),Object(Jo.__decorate)([Object(Qo.u)("click",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],qc.prototype,"_click",null),qc=Yc=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-checkbox",template:'<div class="checkbox-icon" [class.checkbox-checked]="_value"><div class="checkbox-inner"></div></div><button role="checkbox" type="button" ion-button="item-cover" [id]="id" [attr.aria-checked]="_value" [attr.aria-labelledby]="_labelId" [attr.aria-disabled]="_disabled" class="item-cover"> </button>',host:{"[class.checkbox-disabled]":"_disabled"},providers:[{provide:xl.e,useExisting:Yc,multi:!0}],encapsulation:Qo._0.None}),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Gc=void 0!==er&&er)&&Gc||Object,"function"==typeof(Xc=void 0!==El&&El)&&Xc||Object,"function"==typeof(Uc=void 0!==Pc&&Pc)&&Uc||Object,"function"==typeof(Zc=void 0!==Qo.p&&Qo.p)&&Zc||Object,"function"==typeof($c=void 0!==Qo.N&&Qo.N)&&$c||Object])],qc);var Yc,Gc,Xc,Uc,Zc,$c,Kc=function(t){function e(e,n,i){return t.call(this,e,n,i,"chip")||this}return Object(Jo.__extends)(e,t),e}(Yr);Kc=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-chip"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Qc=void 0!==er&&er)&&Qc||Object,"function"==typeof(Jc=void 0!==Qo.p&&Qo.p)&&Jc||Object,"function"==typeof(tu=void 0!==Qo.N&&Qo.N)&&tu||Object])],Kc);var Qc,Jc,tu,eu=function(){function t(t){var e=this;t&&t.ready().then(function(){e._p=t.win().TapticEngine})}return t.prototype.available=function(){return!!this._p},t.prototype.selection=function(){this._p&&this._p.selection()},t.prototype.gestureSelectionStart=function(){this._p&&this._p.gestureSelectionStart()},t.prototype.gestureSelectionChanged=function(){this._p&&this._p.gestureSelectionChanged()},t.prototype.gestureSelectionEnd=function(){this._p&&this._p.gestureSelectionEnd()},t.prototype.notification=function(t){this._p&&this._p.notification(t)},t.prototype.impact=function(t){this._p&&this._p.impact(t)},t}();eu=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(nu=void 0!==yr&&yr)&&nu||Object])],eu);var nu,iu=function(){function t(t,e,n,i,o,r,s){this._plt=e,this.elementRef=n,this._zone=i,this._haptic=o,this.y=0,this.pos=[],this.startY=null,this.ionChange=new Qo.r,this.events=new ws(r),this.rotateFactor=t.getNumber("pickerRotateFactor",0),this.scaleFactor=t.getNumber("pickerScaleFactor",1),this.decelerateFunc=this.decelerate.bind(this),this.debouncer=s.debouncer()}return t.prototype.ngAfterViewInit=function(){var t=this.colEle.nativeElement;this.colHeight=t.clientHeight,this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0,this.events.pointerEvents({element:this.elementRef.nativeElement,pointerDown:this.pointerStart.bind(this),pointerMove:this.pointerMove.bind(this),pointerUp:this.pointerEnd.bind(this),capture:!0,zone:!1})},t.prototype.ngOnDestroy=function(){this._plt.cancelRaf(this.rafId),this.events.destroy()},t.prototype.pointerStart=function(t){console.debug("picker, pointerStart",t.type,this.startY),this._haptic.gestureSelectionStart(),t.preventDefault(),this._plt.cancelRaf(this.rafId),this.startY=B(t).y,this.velocity=0,this.pos.length=0,this.pos.push(this.startY,Date.now());for(var e=this.col.options,n=e.length-1,i=0,o=0;o<e.length;o++)e[o].disabled||(n=Math.min(n,o),i=Math.max(i,o));return this.minY=n*this.optHeight*-1,this.maxY=i*this.optHeight*-1,!0},t.prototype.pointerMove=function(t){var e=this;t.preventDefault(),t.stopPropagation();var n=B(t).y;this.pos.push(n,Date.now()),this.debouncer.write(function(){if(null!==e.startY){var t=e.y+(n-e.startY);t>e.minY?(t=Math.pow(t,.8),e.bounceFrom=t):t<e.maxY?(t+=Math.pow(e.maxY-t,.9),e.bounceFrom=t):e.bounceFrom=0,e.update(t,0,!1,!1);var i=Math.max(Math.abs(Math.round(t/e.optHeight)),0);i!==e.lastTempIndex&&(e._haptic.gestureSelectionChanged(),e.lastTempIndex=i)}})},t.prototype.pointerEnd=function(t){if(t.preventDefault(),this.debouncer.cancel(),null!==this.startY)if(console.debug("picker, pointerEnd",t.type),this.velocity=0,this.bounceFrom>0)this.update(this.minY,100,!0,!0);else if(this.bounceFrom<0)this.update(this.maxY,100,!0,!0);else{var e=B(t).y;this.pos.push(e,Date.now());for(var n=this.pos.length-1,o=n,r=Date.now()-100,s=n;s>0&&this.pos[s]>r;s-=2)o=s;if(o!==n){var a=this.pos[n]-this.pos[o],l=(this.pos[o-1]-this.pos[n-1])/a*(1e3/60);this.velocity=i(-60,l,60)}if(Math.abs(e-this.startY)>3){var c=this.y+(e-this.startY);this.update(c,0,!0,!0)}this.startY=null,this.decelerate()}},t.prototype.decelerate=function(){var t=0;if(isNaN(this.y)||!this.optHeight)this.update(t,0,!0,!0),this._haptic.gestureSelectionEnd();else if(Math.abs(this.velocity)>0){this.velocity*=.97,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1),(t=Math.round(this.y-this.velocity))>this.minY?(t=this.minY,this.velocity=0):t<this.maxY&&(t=this.maxY,this.velocity=0);var e=t%this.optHeight!=0||Math.abs(this.velocity)>1;this.update(t,0,!0,!e),e&&(this.rafId=this._plt.raf(this.decelerateFunc))}else if(this.y%this.optHeight!=0){var n=Math.abs(this.y%this.optHeight);this.velocity=n>this.optHeight/2?1:-1,this._haptic.gestureSelectionEnd(),this.decelerate()}var i=Math.max(Math.abs(Math.round(t/this.optHeight)),0);i!==this.lastTempIndex&&this._haptic.gestureSelectionChanged(),this.lastTempIndex=i},t.prototype.optClick=function(t,e){this.velocity||(t.preventDefault(),t.stopPropagation(),this.setSelected(e,150))},t.prototype.setSelected=function(t,e){var n=t>-1?t*this.optHeight*-1:0;this._plt.cancelRaf(this.rafId),this.velocity=0,this.update(n,e,!0,!0)},t.prototype.update=function(t,e,n,i){t=Math.round(t);var o,r,s,a,l,c,u,p,d,h,_=this.colEle.nativeElement.children,f=_.length,b=this.col.selectedIndex=Math.min(Math.max(Math.round(-t/this.optHeight),0),f-1),m=0===e?null:e+"ms",g="scale("+this.scaleFactor+")";for(o=0;o<f;o++)r=_[o],s=this.col.options[o],a=o*this.optHeight+t,l=!0,d="",0!==this.rotateFactor?(p=a*this.rotateFactor,Math.abs(p)>90?l=!1:(0,c=0,u=90,d="rotateX("+p+"deg) ")):(0,u=0,c=a,Math.abs(c)>170&&(l=!1)),h=b===o,l?(d+="translate3d(0px,"+c+"px,"+u+"px) ",1===this.scaleFactor||h||(d+=g)):d="translate3d(-9999px,0px,0px)",e!==s._dur&&(s._dur=e,r.style[this._plt.Css.transitionDuration]=m),d!==s._trans&&(s._trans=d,r.style[this._plt.Css.transform]=d),h!==s._selected&&(s._selected=h,h?r.classList.add("picker-opt-selected"):r.classList.remove("picker-opt-selected"));if(this.col.prevSelected=b,n&&(this.y=t),i)if(void 0===this.lastIndex)this.lastIndex=this.col.selectedIndex;else if(this.lastIndex!==this.col.selectedIndex){this.lastIndex=this.col.selectedIndex;var v=this.ionChange;v.observers.length>0&&this._zone.run(v.emit.bind(v,this.col.options[this.col.selectedIndex]))}},t.prototype.refresh=function(){for(var t=this.col.options.length-1,e=0,n=this.col.options,o=0;o<n.length;o++)n[o].disabled||(t=Math.min(t,o),e=Math.max(e,o));var r=i(t,this.col.selectedIndex,e);if(this.col.prevSelected!==r){var s=r*this.optHeight*-1;this._plt.cancelRaf(this.rafId),this.velocity=0,this.update(s,150,!0,!1)}},t}();Object(Jo.__decorate)([Object(Qo.X)("colEle"),Object(Jo.__metadata)("design:type","function"==typeof(ou=void 0!==Qo.p&&Qo.p)&&ou||Object)],iu.prototype,"colEle",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type","function"==typeof(ru=!1)&&ru||Object)],iu.prototype,"col",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(su=void 0!==Qo.r&&Qo.r)&&su||Object)],iu.prototype,"ionChange",void 0),iu=Object(Jo.__decorate)([Object(Qo.k)({selector:".picker-col",template:'<div *ngIf="col.prefix" class="picker-prefix" [style.width]="col.prefixWidth">{{col.prefix}}</div><div class="picker-opts" #colEle [style.max-width]="col.optionsWidth"><button *ngFor="let o of col.options; let i=index"[class.picker-opt-disabled]="o.disabled" class="picker-opt" disable-activated (click)="optClick($event, i)">{{o.text}}</button></div><div *ngIf="col.suffix" class="picker-suffix" [style.width]="col.suffixWidth">{{col.suffix}}</div>',host:{"[style.max-width]":"col.columnWidth","[class.picker-opts-left]":'col.align=="left"',"[class.picker-opts-right]":'col.align=="right"'}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(au=void 0!==er&&er)&&au||Object,"function"==typeof(lu=void 0!==yr&&yr)&&lu||Object,"function"==typeof(cu=void 0!==Qo.p&&Qo.p)&&cu||Object,"function"==typeof(uu=void 0!==Qo.G&&Qo.G)&&uu||Object,"function"==typeof(pu=void 0!==eu&&eu)&&pu||Object,"function"==typeof(du=void 0!==yr&&yr)&&du||Object,"function"==typeof(hu=void 0!==es&&es)&&hu||Object])],iu);var ou,ru,su,au,lu,cu,uu,pu,du,hu,_u=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._elementRef=e,this._gestureBlocker=i.createBlocker(hs),this.d=o.data,this.mode=n.get("mode"),r.setElementClass(e.nativeElement,"picker-"+this.mode,!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){r.setElementClass(e.nativeElement,t,!0)}),this.id=++ju,this.lastClick=0}return t.prototype.ionViewWillLoad=function(){var t=this.d;t.buttons=t.buttons.map(function(t){return a(t)?{text:t}:(t.role&&(t.cssRole="picker-toolbar-"+t.role),t)}),t.columns=t.columns.map(function(t){return d(t.options)||(t.options=[]),t.selectedIndex=t.selectedIndex||0,t.options=t.options.map(function(t){var e={text:"",value:"",disabled:t.disabled};return d(t)&&(a(t)||l(t)?(e.text=t.toString(),e.value=t):(e.text=d(t.text)?t.text:t.value,e.value=d(t.value)?t.value:t.text)),e}),t})},t.prototype.ionViewDidLoad=function(){this.refresh()},t.prototype.ionViewWillEnter=function(){this._gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this._gestureBlocker.unblock()},t.prototype.refresh=function(){this._cols.forEach(function(t){return t.refresh()})},t.prototype._colChange=function(){this._viewCtrl.ionChange.emit(this.getSelected())},t.prototype._keyUp=function(t){if(this.enabled&&this._viewCtrl.isLast())if(13===t.keyCode){if(this.lastClick+1e3<Date.now()){console.debug("picker, enter button");var e=this.d.buttons[this.d.buttons.length-1];this.btnClick(e)}}else 27===t.keyCode&&(console.debug("picker, escape button"),this.bdClick())},t.prototype.ionViewDidEnter=function(){var t=this._elementRef.nativeElement.querySelector("button");t&&t.focus(),this.enabled=!0},t.prototype.btnClick=function(t){if(this.enabled){this.lastClick=Date.now();var e=!0;t.handler&&!1===t.handler(this.getSelected())&&(e=!1),e&&this.dismiss(t.role)}},t.prototype.bdClick=function(){if(this.enabled&&this.d.enableBackdropDismiss){var t=this.d.buttons.find(function(t){return"cancel"===t.role});t?this.btnClick(t):this.dismiss("backdrop")}},t.prototype.dismiss=function(t){return this._viewCtrl.dismiss(this.getSelected(),t)},t.prototype.getSelected=function(){var t={};return this.d.columns.forEach(function(e,n){var i=e.options[e.selectedIndex];t[e.name]={text:i?i.text:null,value:i?i.value:null,columnIndex:n}}),t},t.prototype.ngOnDestroy=function(){w(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.Y)(iu),Object(Jo.__metadata)("design:type","function"==typeof(fu=void 0!==Qo.L&&Qo.L)&&fu||Object)],_u.prototype,"_cols",void 0),Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],_u.prototype,"_keyUp",null),_u=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-picker-cmp",template:'\n    <ion-backdrop (click)="bdClick()"></ion-backdrop>\n    <div class="picker-wrapper">\n      <div class="picker-toolbar">\n        <div *ngFor="let b of d.buttons" class="picker-toolbar-button" [ngClass]="b.cssRole">\n          <button ion-button (click)="btnClick(b)" [ngClass]="b.cssClass" class="picker-button" clear>\n            {{b.text}}\n          </button>\n        </div>\n      </div>\n      <div class="picker-columns">\n        <div class="picker-above-highlight"></div>\n        <div *ngFor="let c of d.columns" [col]="c" class="picker-col" (ionChange)="_colChange($event)"></div>\n        <div class="picker-below-highlight"></div>\n      </div>\n    </div>\n  ',host:{role:"dialog"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(bu=void 0!==or&&or)&&bu||Object,"function"==typeof(mu=void 0!==Qo.p&&Qo.p)&&mu||Object,"function"==typeof(gu=void 0!==er&&er)&&gu||Object,"function"==typeof(vu=void 0!==_s&&_s)&&vu||Object,"function"==typeof(yu=void 0!==ir&&ir)&&yu||Object,"function"==typeof(Ou=void 0!==Qo.N&&Qo.N)&&Ou||Object])],_u);var fu,bu,mu,gu,vu,yu,Ou,ju=-1,wu=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Su=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wu(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".picker-wrapper"));e.fromTo("opacity",.01,.26),n.fromTo("translateY","100%","0%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(e).add(n)},e}(xr),Cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wu(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".picker-wrapper"));e.fromTo("opacity",.26,0),n.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e).add(n)},e}(xr),ku=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n||(n={}),n.columns=n.columns||[],n.buttons=n.buttons||[],n.enableBackdropDismiss=!d(n.enableBackdropDismiss)||Boolean(n.enableBackdropDismiss),o=t.call(this,_u,n,null)||this,o._app=e,o.isOverlay=!0,o.ionChange=new Qo.r,i.setTransition("picker-slide-in",Su),i.setTransition("picker-slide-out",Cu),o}return Object(Jo.__extends)(e,t),e.prototype.getTransitionName=function(t){var e="back"===t?"pickerLeave":"pickerEnter";return this._nav&&this._nav.config.get(e)},e.prototype.addButton=function(t){this.data.buttons.push(t)},e.prototype.addColumn=function(t){this.data.columns.push(t)},e.prototype.getColumns=function(){return this.data.columns},e.prototype.getColumn=function(t){return this.getColumns().find(function(e){return e.name===t})},e.prototype.refresh=function(){w(this._cmp,"componentRef must be valid"),w(this._cmp.instance.refresh,"instance must implement refresh()"),this._cmp&&this._cmp.instance.refresh&&this._cmp.instance.refresh()},e.prototype.setCssClass=function(t){this.data.cssClass=t},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t)},e}(or);Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Tu=void 0!==Qo.r&&Qo.r)&&Tu||Object)],ku.prototype,"ionChange",void 0);var Tu,xu=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new ku(this._app,t,this.config)},t}();xu=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Eu=void 0!==Mr&&Mr)&&Eu||Object,"function"==typeof(Pu=void 0!==er&&er)&&Pu||Object])],xu);var Eu,Pu,Iu=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,Du=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,Au="YYYY",Nu="YY",Bu="MMMM",Lu="MMM",zu="MM",Mu="M",Ru="DDDD",Fu="DDD",Hu="DD",Vu="D",Wu="HH",qu="H",Yu="hh",Gu="h",Xu="mm",Uu="m",Zu="ss",$u="s",Ku="A",Qu="a",Ju=[{f:Au,k:"year"},{f:Bu,k:"month"},{f:Ru,k:"day"},{f:Lu,k:"month"},{f:Fu,k:"day"},{f:Nu,k:"year"},{f:zu,k:"month"},{f:Hu,k:"day"},{f:Wu,k:"hour"},{f:Yu,k:"hour"},{f:Xu,k:"minute"},{f:Zu,k:"second"},{f:Mu,k:"month"},{f:Vu,k:"day"},{f:qu,k:"hour"},{f:Gu,k:"hour"},{f:Uu,k:"minute"},{f:$u,k:"second"},{f:Ku,k:"ampm"},{f:Qu,k:"ampm"}],tp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ep=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],np=["January","February","March","April","May","June","July","August","September","October","November","December"],ip=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],op=[Yu,Gu,Xu,Uu,Zu,$u],rp=sp=function(t){function e(e,n,i,o,r,s){var a=t.call(this,n,i,o,"datetime",{},e,r,null)||this;return a._pickerCtrl=s,a._text="",a._locale={},a.cancelText="Cancel",a.doneText="Done",a.pickerOptions={},a.placeholder="",a.ionCancel=new Qo.r,a}return Object(Jo.__extends)(e,t),e.prototype.ngAfterContentInit=function(){var t=this;["monthNames","monthShortNames","dayNames","dayShortNames"].forEach(function(e){t._locale[e]=It(d(t[e])?t[e]:t._config.get(e),e)}),this._initialize()},e.prototype._inputNormalize=function(t){return jt(this._value,t),this._value},e.prototype._inputUpdated=function(){t.prototype._inputUpdated.call(this),this.updateText()},e.prototype._inputShouldChange=function(){return!0},e.prototype._inputChangeEvent=function(){return this.value},e.prototype._inputNgModelEvent=function(){return kt(this.value)},e.prototype._click=function(t){t.preventDefault(),t.stopPropagation(),this.open()},e.prototype._keyup=function(){this.open()},e.prototype.open=function(){var t=this;if(!this.isFocus()&&!this._disabled){console.debug("datetime, open picker");var e=o(this.pickerOptions),n=this._picker=this._pickerCtrl.create(e);n.addButton({text:this.cancelText,role:"cancel",handler:function(){return t.ionCancel.emit(t)}}),n.addButton({text:this.doneText,handler:function(e){return t.value=e}}),n.ionChange.subscribe(function(){t.validate(),n.refresh()}),this.generate(),this.validate(),this._fireFocus(),n.present(e),n.onDidDismiss(function(){t._fireBlur()})}},e.prototype.generate=function(){var t=this,e=this._picker,n=this.pickerFormat||this.displayFormat||_p;if(d(n)){this.calcMinMax(),-1===(n=n.replace("DDDD","{~}").replace("DDD","{~}")).indexOf("D")&&(n=n.replace("{~}","D")),wt(n=n.replace(/{~}/g,"")).forEach(function(n){var i,o=Ct(n),r={name:o,selectedIndex:0,options:(i=d(t[o+"Values"])?Pt(t[o+"Values"],o):ft(n,t._min,t._max)).map(function(e){return{value:e,text:_t(n,e,null,t._locale)}})},s=St(t.getValueOrDefault(),n),a=r.options.findIndex(function(t){return t.value===s});a>=0&&(r.selectedIndex=a),e.addColumn(r)});var i=this._min,o=this._max,r=this._picker.getColumns();["month","day","hour","minute"].filter(function(t){return!r.find(function(e){return e.name===t})}).forEach(function(t){i[t]=0,o[t]=0}),this.divyColumns()}},e.prototype.validateColumn=function(t,e,n,o,r,s){w(5===r.length,"lowerBounds length must be 5"),w(5===s.length,"upperBounds length must be 5");var a=this._picker.getColumn(t);if(!a)return 0;for(var l=r.slice(),c=s.slice(),u=a.options,p=u.length-1,d=0,h=0;h<u.length;h++){var _=u[h],f=_.value;l[e]=_.value,c[e]=_.value,(_.disabled=f<r[e]||f>s[e]||bt(c[0],c[1],c[2],c[3],c[4])<n||bt(l[0],l[1],l[2],l[3],l[4])>o)||(p=Math.min(p,h),d=Math.max(d,h))}var b=a.selectedIndex=i(p,a.selectedIndex,d);return(_=a.options[b])?_.value:0},e.prototype.validate=function(){var t=new Date,e=mt(this._min),n=mt(this._max),i=this._picker.getColumn("year");w(e<=n,"invalid min/max value");var o=t.getFullYear();if(i){i.options.find(function(e){return e.value===t.getFullYear()})||(o=i.options[0].value);var r=i.options[i.selectedIndex];r&&(o=r.value)}var s=this.validateColumn("month",1,e,n,[o,0,0,0,0],[o,12,31,23,59]),a=gt(s,o),l=this.validateColumn("day",2,e,n,[o,s,0,0,0],[o,s,a,23,59]),c=this.validateColumn("hour",3,e,n,[o,s,l,0,0],[o,s,l,23,59]);this.validateColumn("minute",4,e,n,[o,s,l,c,0],[o,s,l,c,59])},e.prototype.divyColumns=function(){for(var t,e,n=this._picker.getColumns(),i=[],o=0;o<n.length;o++){t=n[o],i.push(0);for(var r=0;r<t.options.length;r++)(e=t.options[r].text.length)>i[o]&&(i[o]=e)}2===i.length?(e=Math.max(i[0],i[1]),n[0].align="right",n[1].align="left",n[0].optionsWidth=n[1].optionsWidth=17*e+"px"):3===i.length&&(e=Math.max(i[0],i[2]),n[0].align="right",n[1].columnWidth=17*i[1]+"px",n[0].optionsWidth=n[2].optionsWidth=17*e+"px",n[2].align="left")},e.prototype.updateText=function(){var t=this.displayFormat||this.pickerFormat||_p;this._text=ht(t,this.getValue(),this._locale)},e.prototype.getValue=function(){return this._value},e.prototype.getValueOrDefault=function(){if(this.hasValue())return this._value;var t={};return jt(t,this.getDefaultValueDateString()),t},e.prototype.getDefaultValueDateString=function(){if(this.initialValue)return this.initialValue;var t=(new Date).toISOString();if(this.max){var e=yt(t),n=yt(this.max);for(var i in n)null===n[i]&&(n[i]=e[i]);if(Ot(e,n)>0)return this.max}return t},e.prototype.hasValue=function(){var t=this._value;return d(t)&&_(t)&&Object.keys(t).length>0},e.prototype.calcMinMax=function(t){var e=(t||new Date).getFullYear();if(d(this.yearValues)){var n=Pt(this.yearValues,"year");h(this.min)&&(this.min=Math.min.apply(Math,n)),h(this.max)&&(this.max=Math.max.apply(Math,n))}else h(this.min)&&(this.min=(e-100).toString()),h(this.max)&&(this.max=e.toString());var i=this._min=yt(this.min),o=this._max=yt(this.max);i.year=i.year||e,o.year=o.year||e,i.month=i.month||1,o.month=o.month||12,i.day=i.day||1,o.day=o.day||31,i.hour=i.hour||0,o.hour=o.hour||23,i.minute=i.minute||0,o.minute=o.minute||59,i.second=i.second||0,o.second=o.second||59,i.year>o.year&&(console.error("min.year > max.year"),i.year=o.year-100),i.year===o.year&&(i.month>o.month?(console.error("min.month > max.month"),i.month=1):i.month===o.month&&i.day>o.day&&(console.error("min.day > max.day"),i.day=1))},e}(Il);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"min",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"max",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"displayFormat",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"initialValue",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"pickerFormat",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"cancelText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"doneText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"yearValues",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"monthValues",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"dayValues",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"hourValues",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"minuteValues",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"monthNames",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"monthShortNames",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"dayNames",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"dayShortNames",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],rp.prototype,"pickerOptions",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],rp.prototype,"placeholder",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ap=void 0!==Qo.r&&Qo.r)&&ap||Object)],rp.prototype,"ionCancel",void 0),Object(Jo.__decorate)([Object(Qo.u)("click",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],rp.prototype,"_click",null),Object(Jo.__decorate)([Object(Qo.u)("keyup.space"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],rp.prototype,"_keyup",null),rp=sp=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-datetime",template:'<div *ngIf="!_text" class="datetime-text datetime-placeholder">{{placeholder}}</div><div *ngIf="_text" class="datetime-text">{{_text}}</div><button aria-haspopup="true" type="button" [id]="id" ion-button="item-cover" [attr.aria-labelledby]="_labelId" [attr.aria-disabled]="_disabled" class="item-cover"></button>',host:{"[class.datetime-disabled]":"_disabled"},providers:[{provide:xl.e,useExisting:sp,multi:!0}],encapsulation:Qo._0.None}),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__param)(5,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(lp=void 0!==El&&El)&&lp||Object,"function"==typeof(cp=void 0!==er&&er)&&cp||Object,"function"==typeof(up=void 0!==Qo.p&&Qo.p)&&up||Object,"function"==typeof(pp=void 0!==Qo.N&&Qo.N)&&pp||Object,"function"==typeof(dp=void 0!==Pc&&Pc)&&dp||Object,"function"==typeof(hp=void 0!==xu&&xu)&&hp||Object])],rp);var sp,ap,lp,cp,up,pp,dp,hp,_p="MMM D, YYYY",fp=function(t){function e(e,n,i){return t.call(this,e,n,i,"fab")||this}return Object(Jo.__extends)(e,t),e.prototype.setActiveClose=function(t){this.setElementClass("fab-close-active",t)},e}(Yr);fp=Object(Jo.__decorate)([Object(Qo.k)({selector:"[ion-fab]",template:'<ion-icon name="close" class="fab-close-icon"></ion-icon><span class="button-inner"><ng-content></ng-content></span><div class="button-effect"></div>',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(bp=void 0!==er&&er)&&bp||Object,"function"==typeof(mp=void 0!==Qo.p&&Qo.p)&&mp||Object,"function"==typeof(gp=void 0!==Qo.N&&Qo.N)&&gp||Object])],fp);var bp,mp,gp,vp=function(){function t(t,e,n,i){this._elementRef=t,this._renderer=e,this._plt=i,this._visible=!1,this._fabs=[],this._mode=n.get("mode")}return Object.defineProperty(t.prototype,"_setbuttons",{set:function(t){for(var e=this._fabs=t.toArray(),n="fab-"+this._mode+"-in-list",i=0,o=e;i<o.length;i++){var r=o[i];r.setElementClass("fab-in-list",!0),r.setElementClass(n,!0)}},enumerable:!0,configurable:!0}),t.prototype.setVisible=function(t){var e=this,n=b(t);if(n!==this._visible){this._visible=n;var i=this._fabs,o=1;i.forEach(n?function(t){e._plt.timeout(function(){return t.setElementClass("show",!0)},30*o),o++}:function(t){return t.setElementClass("show",!1)}),this.setElementClass("fab-list-active",n)}},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t}();Object(Jo.__decorate)([Object(Qo.n)(fp),Object(Jo.__metadata)("design:type","function"==typeof(yp=void 0!==Qo.L&&Qo.L)&&yp||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Op=void 0!==Qo.L&&Qo.L)&&Op||Object])],vp.prototype,"_setbuttons",null),vp=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-fab-list"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(jp=void 0!==Qo.p&&Qo.p)&&jp||Object,"function"==typeof(wp=void 0!==Qo.N&&Qo.N)&&wp||Object,"function"==typeof(Sp=void 0!==er&&er)&&Sp||Object,"function"==typeof(Cp=void 0!==yr&&yr)&&Cp||Object])],vp);var yp,Op,jp,wp,Sp,Cp,kp=function(){function t(t){this._listsActive=!1,this._events=new ws(t)}return t.prototype.ngAfterContentInit=function(){var t=this._mainButton;t&&t.getNativeElement()?this._events.listen(t.getNativeElement(),"click",this.clickHandler.bind(this),{zone:!0}):console.error("FAB container needs a main <button ion-fab>")},t.prototype.clickHandler=function(t){this.canActivateList(t)&&this.toggleList()},t.prototype.canActivateList=function(t){if(this._fabLists.length>0&&this._mainButton&&t.target){var e=t.target.closest("ion-fab>[ion-fab]");return e&&e===this._mainButton.getNativeElement()}return!1},t.prototype.toggleList=function(){this.setActiveLists(!this._listsActive)},t.prototype.setActiveLists=function(t){if(t!==this._listsActive){for(var e=0,n=this._fabLists.toArray();e<n.length;e++)n[e].setVisible(t);this._mainButton.setActiveClose(t),this._listsActive=t}},t.prototype.close=function(){this.setActiveLists(!1)},t.prototype.ngOnDestroy=function(){this._events.destroy()},t}();Object(Jo.__decorate)([Object(Qo.m)(fp),Object(Jo.__metadata)("design:type","function"==typeof(Tp=void 0!==fp&&fp)&&Tp||Object)],kp.prototype,"_mainButton",void 0),Object(Jo.__decorate)([Object(Qo.n)(vp),Object(Jo.__metadata)("design:type","function"==typeof(xp=void 0!==Qo.L&&Qo.L)&&xp||Object)],kp.prototype,"_fabLists",void 0),kp=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-fab",template:"<ng-content></ng-content>"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ep=void 0!==yr&&yr)&&Ep||Object])],kp);var Tp,xp,Ep,Pp=function(){return function(){}}();Pp=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-col, [ion-col]",host:{class:"col"}})],Pp);var Ip=function(){return function(){}}();Ip=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-grid, [ion-grid]",host:{class:"grid"}})],Ip);var Dp=function(){return function(){}}();Dp=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-row, [ion-row]",host:{class:"row"}})],Dp);var Ap=function(){function t(t,e,n,i,o){this._elementRef=t,this._renderer=e,this._plt=n,this._content=i,this._dom=o,this._cache=!0,this._w="",this._h="",this._wQ="",this._hQ="",this.alt="",this._content?this._content.addImg(this):console.warn("ion-img can only be used within an ion-content"),this._isLoaded(!1)}return Object.defineProperty(t.prototype,"src",{get:function(){return this._src},set:function(t){t!==this._src&&(this.reset(),this._src=t,this._hasLoaded=0===t.indexOf("data:"),this.update())},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this._requestingSrc&&(console.debug("abortRequest "+this._requestingSrc+" "+Date.now()),this._srcAttr(""),this._requestingSrc=null),this._renderedSrc&&(console.debug("clearRender "+this._renderedSrc+" "+Date.now()),this._renderedSrc=null,this._isLoaded(!1))},t.prototype.update=function(){var t=this;this._src&&this._content.isImgsUpdatable()&&(this.canRequest&&this._src!==this._renderedSrc&&this._src!==this._requestingSrc&&!this._hasLoaded&&(console.debug("request "+this._src+" "+Date.now()),this._requestingSrc=this._src,this._isLoaded(!1),this._srcAttr(this._src),this._setDims()),this.canRender&&this._hasLoaded&&this._src!==this._renderedSrc&&(this._renderedSrc=this._src,this._setDims(),this._dom.write(function(){t._hasLoaded&&(console.debug("render "+t._src+" "+Date.now()),t._isLoaded(!0),t._srcAttr(t._src))})))},t.prototype._isLoaded=function(t){var e=this._renderer,n=this._elementRef.nativeElement;e.setElementClass(n,"img-loaded",t),e.setElementClass(n,"img-unloaded",!t)},t.prototype._srcAttr=function(t){var e=this._img,n=this._renderer;e&&e.src!==t&&(n.setElementAttribute(this._img,"src",t),n.setElementAttribute(this._img,"alt",this.alt))},Object.defineProperty(t.prototype,"top",{get:function(){var t=this._getBounds();return t&&t.top||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){var t=this._getBounds();return t&&t.bottom||0},enumerable:!0,configurable:!0}),t.prototype._getBounds=function(){return this._bounds?this._bounds:(this._rect||(this._rect=this._elementRef.nativeElement.getBoundingClientRect(),console.debug("img, "+this._src+", read, "+this._rect.top+" - "+this._rect.bottom)),this._rect)},Object.defineProperty(t.prototype,"bounds",{set:function(t){d(t)&&(this._bounds=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cache",{get:function(){return this._cache},set:function(t){this._cache=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{set:function(t){this._wQ=Dt(t),this._setDims()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{set:function(t){this._hQ=Dt(t),this._setDims()},enumerable:!0,configurable:!0}),t.prototype._setDims=function(){var t=this;if(this.canRender&&(this._w!==this._wQ||this._h!==this._hQ)){var e=this._elementRef.nativeElement,n=this._renderer;this._dom.write(function(){t._w!==t._wQ&&(t._w=t._wQ,n.setElementStyle(e,"width",t._w)),t._h!==t._hQ&&(t._h=t._hQ,n.setElementStyle(e,"height",t._h))})}},t.prototype.ngAfterContentInit=function(){var t=this;this._img=this._elementRef.nativeElement.firstChild,this._unreg=this._plt.registerListener(this._img,"load",function(){t._hasLoaded=!0,t.update()},{passive:!0})},t.prototype.ngOnDestroy=function(){this._unreg&&this._unreg(),this._content&&this._content.removeImg(this)},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Ap.prototype,"src",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Ap.prototype,"bounds",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Ap.prototype,"cache",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Ap.prototype,"width",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Ap.prototype,"height",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Ap.prototype,"alt",void 0),Ap=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-img",template:"<img>",changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Np=void 0!==Qo.p&&Qo.p)&&Np||Object,"function"==typeof(Bp=void 0!==Qo.N&&Qo.N)&&Bp||Object,"function"==typeof(Lp=void 0!==yr&&yr)&&Lp||Object,"function"==typeof(zp=void 0!==oc&&oc)&&zp||Object,"function"==typeof(Mp=void 0!==es&&es)&&Mp||Object])],Ap);var Np,Bp,Lp,zp,Mp,Rp=function(){function t(t,e,n,i){this._content=t,this._zone=e,this._elementRef=n,this._dom=i,this._lastCheck=0,this._highestY=0,this._thr="15%",this._thrPx=0,this._thrPc=.15,this._position=Zp,this._init=!1,this.state=Yp,this.ionInfinite=new Qo.r,t.setElementClass("has-infinite-scroll",!0)}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this._thr},set:function(t){this._thr=t,t.indexOf("%")>-1?(this._thrPx=0,this._thrPc=parseFloat(t)/100):(this._thrPx=parseFloat(t),this._thrPc=0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{set:function(t){this.enable(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t===Up||t===Zp?this._position=t:console.error("Invalid value for ion-infinite-scroll's position input. Its value should be '"+Zp+"' or '"+Up+"'.")},enumerable:!0,configurable:!0}),t.prototype._onScroll=function(t){var e=this;if(this.state===Xp||this.state===Gp)return 1;if(this._lastCheck+32>t.timeStamp)return 2;this._lastCheck=t.timeStamp;var n=this._elementRef.nativeElement.scrollHeight;if(!n)return 3;var i,o=this._content.getContentDimensions(),r=o.contentHeight,s=this._thrPc?r*this._thrPc:this._thrPx;return this._position===Zp?i=o.scrollHeight-n-o.scrollTop-r-s:(w(this._position===Up,"_position should be top"),i=o.scrollTop-n-s),i<0?(this._dom.write(function(){e._zone.run(function(){e.state!==Xp&&e.state!==Gp&&(e.state=Xp,e.ionInfinite.emit(e))})}),5):6},t.prototype.complete=function(){var t=this;if(this.state===Xp)if(this._position!==Zp){w(this._position===Up,"position should be top");var e=this._content.getContentDimensions();this._dom.read(function(){var n=t._content.getContentDimensions().scrollHeight-(e.scrollHeight-e.scrollTop);t._dom.write(function(){t._content.scrollTop=n,t.state=Yp})})}else this.state=Yp},t.prototype.waitFor=function(t){var e=this.complete.bind(this);t.then(e,e)},t.prototype.enable=function(t){this.state=t?Yp:Gp,this._setListeners(t)},t.prototype._setListeners=function(t){this._init&&(t?this._scLsn||(this._scLsn=this._content.ionScroll.subscribe(this._onScroll.bind(this))):(this._scLsn&&this._scLsn.unsubscribe(),this._scLsn=null))},t.prototype.ngAfterContentInit=function(){this._init=!0,this._setListeners(this.state!==Gp),this._position===Up&&(this._content.scrollDownOnLoad=!0)},t.prototype.ngOnDestroy=function(){this._setListeners(!1)},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Rp.prototype,"threshold",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Rp.prototype,"enabled",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Rp.prototype,"position",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Fp=void 0!==Qo.r&&Qo.r)&&Fp||Object)],Rp.prototype,"ionInfinite",void 0),Rp=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-infinite-scroll"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Hp=void 0!==oc&&oc)&&Hp||Object,"function"==typeof(Vp=void 0!==Qo.G&&Qo.G)&&Vp||Object,"function"==typeof(Wp=void 0!==Qo.p&&Qo.p)&&Wp||Object,"function"==typeof(qp=void 0!==es&&es)&&qp||Object])],Rp);var Fp,Hp,Vp,Wp,qp,Yp="enabled",Gp="disabled",Xp="loading",Up="top",Zp="bottom",$p=function(){function t(t,e){this.inf=t,this._config=e}return t.prototype.ngOnInit=function(){this.loadingSpinner||(this.loadingSpinner=this._config.get("infiniteLoadingSpinner",this._config.get("spinner","ios")))},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$p.prototype,"loadingSpinner",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$p.prototype,"loadingText",void 0),$p=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-infinite-scroll-content",template:'<div class="infinite-loading"><div class="infinite-loading-spinner" *ngIf="loadingSpinner"><ion-spinner [name]="loadingSpinner"></ion-spinner></div><div class="infinite-loading-text" [innerHTML]="loadingText" *ngIf="loadingText"></div></div>',host:{"[attr.state]":"inf.state"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Kp=void 0!==Rp&&Rp)&&Kp||Object,"function"==typeof(Qp=void 0!==er&&er)&&Qp||Object])],$p);var Kp,Qp,Jp=n(8),td=(n(23),function(t){function e(e,n,i,o,r,s,a,l,c,u){var p=t.call(this,e,r,s,"input","",i,l,c)||this;return p._plt=n,p._app=o,p._content=a,p.ngControl=c,p._dom=u,p._clearInput=!1,p._readonly=!1,p._type="text",p._isTextarea=!1,p._onDestroy=new Jp.Subject,p._useAssist=!1,p._relocated=!1,p.autocomplete="",p.autocorrect="",p.placeholder="",p.min=null,p.max=null,p.step=null,p.input=new Qo.r,p.blur=new Qo.r,p.focus=new Qo.r,p.autocomplete=e.get("autocomplete","off"),p.autocorrect=e.get("autocorrect","off"),p._autoFocusAssist=e.get("autoFocusAssist","delay"),p._keyboardHeight=e.getNumber("keyboardHeight"),p._isTextarea=!("ION-TEXTAREA"!==r.nativeElement.tagName),p._isTextarea&&l&&l.setElementClass("item-textarea",!0),a?(e.getBoolean("hideCaretOnScroll",!1)&&p._enableHideCaretOnScroll(),e.getBoolean("resizeAssist",!1)?(p._keyboardHeight=60,p._enableResizeAssist()):(p._useAssist=e.getBoolean("scrollAssist",!1),e.getBoolean("scrollPadding",p._useAssist)&&p._enableScrollPadding()),p):p}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"clearInput",{get:function(){return this._clearInput},set:function(t){this._clearInput=!this._isTextarea&&b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._isTextarea?"text":this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearOnEdit",{get:function(){return this._clearOnEdit},set:function(t){this._clearOnEdit=b(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){},e.prototype.ngAfterViewInit=function(){w(this._native&&this._native.nativeElement,"input element must be valid"),!1!==this.clearOnEdit&&"password"===this.type&&(this.clearOnEdit=!0);var t=this._elementRef.nativeElement,e=this._native.nativeElement;if(M(t,e),t.hasAttribute("tabIndex")&&t.removeAttribute("tabIndex"),t.hasAttribute("autofocus"))switch(t.removeAttribute("autofocus"),this._autoFocusAssist){case"immediate":e.focus();break;case"delay":this._plt.timeout(function(){return e.focus()},800)}this._initialize(),this.focus.observers.length>0&&console.warn("(focus) is deprecated in ion-input, use (ionFocus) instead"),this.blur.observers.length>0&&console.warn("(blur) is deprecated in ion-input, use (ionBlur) instead")},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._onDestroy.next(),this._onDestroy=null},e.prototype.initFocus=function(){this.setFocus()},e.prototype.setFocus=function(){this.isFocus()||this._native.nativeElement.focus()},e.prototype.setBlur=function(){this.isFocus()&&this._native.nativeElement.blur()},e.prototype.onInput=function(t){this.value=t.target.value,this.input.emit(t)},e.prototype.onBlur=function(t){this._fireBlur(),this.blur.emit(t),this._scrollData=null,this._clearOnEdit&&this.hasValue()&&(this._didBlurAfterEdit=!0)},e.prototype.onFocus=function(t){this._fireFocus(),this.focus.emit(t)},e.prototype.onKeydown=function(t){t&&this._clearOnEdit&&this.checkClearOnEdit(t.target.value)},e.prototype._inputUpdated=function(){t.prototype._inputUpdated.call(this);var e=this._native.nativeElement,n=this._value;e.value!==n&&(e.value=n)},e.prototype.clearTextInput=function(){this.value=""},e.prototype.checkClearOnEdit=function(t){this._clearOnEdit&&(this._didBlurAfterEdit&&this.hasValue()&&this.clearTextInput(),this._didBlurAfterEdit=!1)},e.prototype._getScrollData=function(){if(!this._content)return At();if(this._scrollData)return this._scrollData;var t=this._elementRef.nativeElement;return t=t.closest("ion-item,[ion-item]")||t,this._scrollData=Nt(t.offsetTop,t.offsetHeight,this._content.getContentDimensions(),this._keyboardHeight,this._plt.height())},e.prototype._relocateInput=function(t){if(this._relocated!==t){var e=this._plt,n=this.getNativeElement(),i=this._native.nativeElement;if(console.debug("native-input, hideCaret, shouldHideCaret: "+t+", input value: "+i.value),t){Bt(e,n,i);var o=this._getScrollData().inputSafeY,r=this._plt.isRTL?9999:-9999;i.style[e.Css.transform]="translate3d("+r+"px,"+o+"px,0)",i.style.opacity="0"}else Lt(e,n,i);this._relocated=t}},e.prototype._enableScrollPadding=function(){var t=this;w(this._content,"content is undefined"),console.debug("Input: enableScrollPadding"),this.ionFocus.subscribe(function(){var e=t._content;e.addScrollPadding(t._getScrollData().scrollPadding),e.clearScrollPaddingFocusOut()})},e.prototype._enableHideCaretOnScroll=function(){function t(t){i.isFocus()&&i._dom.write(function(){return i._relocateInput(t)})}var e=this;w(this._content,"content is undefined");var n=this._content;console.debug("Input: enableHideCaretOnScroll"),n.ionScrollStart.takeUntil(this._onDestroy).subscribe(function(){return t(!0)}),n.ionScrollEnd.takeUntil(this._onDestroy).subscribe(function(){return t(!1)}),this.ionBlur.subscribe(function(){return e._relocateInput(!1)});var i=this},e.prototype._enableResizeAssist=function(){var t=this;w(this._content,"content is undefined"),console.debug("Input: enableAutoScroll"),this.ionFocus.subscribe(function(){var e=t._getScrollData();Math.abs(e.scrollAmount)>100&&t._content.scrollTo(0,e.scrollTo,e.scrollDuration)})},e.prototype._pointerStart=function(t){w(this._content,"content is undefined"),"touchstart"===t.type&&(this._isTouch=!0),(this._isTouch||!this._isTouch&&"mousedown"===t.type)&&this._app.isEnabled()&&(this._coord=B(t)),console.debug("input-base, pointerStart, type: "+t.type)},e.prototype._pointerEnd=function(t){if(w(this._content,"content is undefined"),console.debug("input-base, pointerEnd, type: "+t.type),this._isTouch&&"mouseup"===t.type||!this._app.isEnabled())t.preventDefault(),t.stopPropagation();else if(this._coord){var e=B(t);L(8,this._coord,e)||this.isFocus()||(t.preventDefault(),t.stopPropagation(),this._jsSetFocus())}this._coord=null},e.prototype._jsSetFocus=function(){var t=this;w(this._content,"content is undefined");var e=this._content;console.debug("input-base, initFocus(), scrollView: "+!!e),e||this.setFocus();var n=this._getScrollData();Math.abs(n.scrollAmount)<4?this.setFocus():(this._relocateInput(!0),this.setFocus(),e.scrollTo(0,n.scrollTo,n.scrollDuration,function(){t._relocateInput(!1),t.setFocus()}))},e}(Il));Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],td.prototype,"clearInput",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],td.prototype,"type",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],td.prototype,"readonly",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],td.prototype,"clearOnEdit",null),Object(Jo.__decorate)([Object(Qo.X)("textInput",{read:Qo.p}),Object(Jo.__metadata)("design:type","function"==typeof(ed=void 0!==Qo.p&&Qo.p)&&ed||Object)],td.prototype,"_native",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],td.prototype,"autocomplete",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],td.prototype,"autocorrect",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],td.prototype,"placeholder",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"min",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"max",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"step",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"input",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"blur",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",Object)],td.prototype,"focus",void 0),td=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-input,ion-textarea",template:'<input #textInput *ngIf="!_isTextarea" class="text-input" [ngClass]="\'text-input-\' + _mode"(input)="onInput($event)" (blur)="onBlur($event)" (focus)="onFocus($event)" (keydown)="onKeydown($event)" [type]="_type" dir="auto" [attr.aria-labelledby]="_labelId" [attr.min]="min" [attr.max]="max" [attr.step]="step" [attr.autocomplete]="autocomplete" [attr.autocorrect]="autocorrect" [placeholder]="placeholder" [disabled]="_disabled" [readonly]="_readonly"><textarea #textInput *ngIf="_isTextarea" class="text-input" [ngClass]="\'text-input-\' + _mode"(input)="onInput($event)" (blur)="onBlur($event)" (focus)="onFocus($event)" (keydown)="onKeydown($event)" [attr.aria-labelledby]="_labelId" [attr.autocomplete]="autocomplete" [attr.autocorrect]="autocorrect" [placeholder]="placeholder" [disabled]="_disabled" [readonly]="_readonly"></textarea><button ion-button *ngIf="_clearInput" clear class="text-input-clear-icon" type="button" (click)="clearTextInput($event)" (mousedown)="clearTextInput($event)" tabindex="-1"></button><div class="input-cover" *ngIf="_useAssist" (touchstart)="_pointerStart($event)" (touchend)="_pointerEnd($event)" (mousedown)="_pointerStart($event)" (mouseup)="_pointerEnd($event)"></div>',encapsulation:Qo._0.None,changeDetection:Qo.h.OnPush,inputs:["value"]}),Object(Jo.__param)(6,Object(Qo.H)()),Object(Jo.__param)(7,Object(Qo.H)()),Object(Jo.__param)(8,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(nd=void 0!==er&&er)&&nd||Object,"function"==typeof(id=void 0!==yr&&yr)&&id||Object,"function"==typeof(od=void 0!==El&&El)&&od||Object,"function"==typeof(rd=void 0!==Mr&&Mr)&&rd||Object,"function"==typeof(sd=void 0!==Qo.p&&Qo.p)&&sd||Object,"function"==typeof(ad=void 0!==Qo.N&&Qo.N)&&ad||Object,"function"==typeof(ld=void 0!==oc&&oc)&&ld||Object,"function"==typeof(cd=void 0!==Pc&&Pc)&&cd||Object,"function"==typeof(ud=void 0!==xl.f&&xl.f)&&ud||Object,"function"==typeof(pd=void 0!==es&&es)&&pd||Object])],td);var ed,nd,id,od,rd,sd,ad,ld,cd,ud,pd,dd=.3,hd=function(){return function(){}}();hd=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-item,[ion-item]",host:{class:"item-block"}})],hd);var _d=function(t){function e(e,n,i){return t.call(this,e,n,i,"item-divider")||this}return Object(Jo.__extends)(e,t),e}(Yr);_d=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-item-divider",host:{class:"item-divider"}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(fd=void 0!==er&&er)&&fd||Object,"function"==typeof(bd=void 0!==Qo.p&&Qo.p)&&bd||Object,"function"==typeof(md=void 0!==Qo.N&&Qo.N)&&md||Object])],_d);var fd,bd,md,gd=function(){return function(){}}();gd=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-item-group"})],gd);var vd=function(){function t(t,e){this._elementRef=t,this._plt=e,this.ionSwipe=new Qo.r}return t.prototype.isRightSide=function(){return g(this.side,this._plt.isRTL,!0)},t.prototype.width=function(){return this._elementRef.nativeElement.offsetWidth},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type","function"==typeof(yd=!1)&&yd||Object)],vd.prototype,"side",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Od=void 0!==Qo.r&&Qo.r)&&Od||Object)],vd.prototype,"ionSwipe",void 0),vd=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-item-options"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(jd=void 0!==Qo.p&&Qo.p)&&jd||Object,"function"==typeof(wd=void 0!==yr&&yr)&&wd||Object])],vd);var yd,Od,jd,wd,Sd=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cd=function(t){function e(e,n,i,o){var r=t.call(this,e,n.getNativeElement(),{maxAngle:20,threshold:5,zone:!1,domController:o,gesture:i.createGesture({name:rs,priority:ls,disableScroll:!0})})||this;return r.list=n,r.preSelectedContainer=null,r.selectedContainer=null,r.openContainer=null,r}return Sd(e,t),e.prototype.canStart=function(t){if(this.selectedContainer)return!1;var e=zt(t);if(!e)return this.closeOpened(),!1;e!==this.openContainer&&this.closeOpened();var n=B(t);return this.preSelectedContainer=e,this.firstCoordX=n.x,this.firstTimestamp=Date.now(),!0},e.prototype.onDragStart=function(t){t.preventDefault();var e=B(t);this.selectedContainer=this.openContainer=this.preSelectedContainer,this.selectedContainer.startSliding(e.x)},e.prototype.onDragMove=function(t){t.preventDefault(),this.selectedContainer.moveSliding(B(t).x)},e.prototype.onDragEnd=function(t){t.preventDefault();var e=B(t).x-this.firstCoordX,n=Date.now()-this.firstTimestamp;this.selectedContainer.endSliding(e/n),this.selectedContainer=null,this.preSelectedContainer=null},e.prototype.notCaptured=function(t){Mt(t)||this.closeOpened()},e.prototype.closeOpened=function(){return this.selectedContainer=null,!!this.openContainer&&(this.openContainer.close(),this.openContainer=null,!0)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.closeOpened(),this.list=null,this.preSelectedContainer=null,this.selectedContainer=null,this.openContainer=null},e}(Ss),kd=function(t){function e(e,n,i,o,r,s){var a=t.call(this,e,n,i,"list")||this;return a._plt=o,a._gestureCtrl=r,a._domCtrl=s,a._enableSliding=!0,a._containsSlidingItems=!1,a}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"sliding",{get:function(){return this._enableSliding},set:function(t){this._enableSliding=b(t),this._updateSlidingState()},enumerable:!0,configurable:!0}),e.prototype.containsSlidingItem=function(t){this._containsSlidingItems=t,this._updateSlidingState()},e.prototype._updateSlidingState=function(){this._enableSliding&&this._containsSlidingItems?this._slidingGesture||(console.debug("enableSlidingItems"),this._slidingGesture=new Cd(this._plt,this,this._gestureCtrl,this._domCtrl),this._slidingGesture.listen()):(this._slidingGesture&&this._slidingGesture.destroy(),this._slidingGesture=null)},e.prototype.closeSlidingItems=function(){this._slidingGesture&&this._slidingGesture.closeOpened()},e.prototype.destroy=function(){this._slidingGesture&&this._slidingGesture.destroy()},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],kd.prototype,"sliding",null),kd=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-list"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Td=void 0!==er&&er)&&Td||Object,"function"==typeof(xd=void 0!==Qo.p&&Qo.p)&&xd||Object,"function"==typeof(Ed=void 0!==Qo.N&&Qo.N)&&Ed||Object,"function"==typeof(Pd=void 0!==yr&&yr)&&Pd||Object,"function"==typeof(Id=void 0!==_s&&_s)&&Id||Object,"function"==typeof(Dd=void 0!==es&&es)&&Dd||Object])],kd);var Td,xd,Ed,Pd,Id,Dd,Ad;!function(t){t[t.Disabled=2]="Disabled",t[t.Enabled=4]="Enabled",t[t.Right=8]="Right",t[t.Left=16]="Left",t[t.SwipeRight=32]="SwipeRight",t[t.SwipeLeft=64]="SwipeLeft"}(Ad||(Ad={}));var Nd=function(){function t(t,e,n,i,o){this._plt=e,this._renderer=n,this._elementRef=i,this._zone=o,this._openAmount=0,this._startX=0,this._optsWidthRightSide=0,this._optsWidthLeftSide=0,this._tmr=null,this._optsDirty=!0,this._state=Ad.Disabled,this.ionDrag=new Qo.r,t&&t.containsSlidingItem(!0),i.nativeElement.$ionComponent=this,this.setElementClass("item-wrapper",!0)}return Object.defineProperty(t.prototype,"_itemOptions",{set:function(t){var e=0;this._leftOptions=this._rightOptions=null;for(var n=0,i=t.toArray();n<i.length;n++){var o=i[n];o.isRightSide()?(this._rightOptions=o,e|=2):(this._leftOptions=o,e|=1)}this._optsDirty=!0,this._sides=e},enumerable:!0,configurable:!0}),t.prototype.getOpenAmount=function(){return this._openAmount},t.prototype.getSlidingPercent=function(){var t=this._openAmount;return t>0?t/this._optsWidthRightSide:t<0?t/this._optsWidthLeftSide:0},t.prototype.startSliding=function(t){this._tmr&&(this._plt.cancelTimeout(this._tmr),this._tmr=null),0===this._openAmount&&(this._optsDirty=!0,this._setState(Ad.Enabled)),this._startX=t+this._openAmount,this.item.setElementStyle(this._plt.Css.transition,"none")},t.prototype.moveSliding=function(t){if(!this._optsDirty){var e=this._startX-t;switch(this._sides){case 2:e=Math.max(0,e);break;case 1:e=Math.min(0,e);break;case 3:break;case 0:return;default:w(!1,"invalid ItemSideFlags value")}if(e>this._optsWidthRightSide)e=(n=this._optsWidthRightSide)+.55*(e-n);else if(e<-this._optsWidthLeftSide){var n=-this._optsWidthLeftSide;e=n+.55*(e-n)}return this._setOpenAmount(e,!1),e}this.calculateOptsWidth()},t.prototype.endSliding=function(t){var e=this._openAmount>0?this._optsWidthRightSide:-this._optsWidthLeftSide;return O(this._openAmount>0==!(t<0),Math.abs(t)>.3,Math.abs(this._openAmount)<Math.abs(e/2))&&(e=0),this.fireSwipeEvent(),this._setOpenAmount(e,!0),e},t.prototype.fireSwipeEvent=function(){var t=this;this._state&Ad.SwipeRight?this._zone.run(function(){return t._rightOptions.ionSwipe.emit(t)}):this._state&Ad.SwipeLeft&&this._zone.run(function(){return t._leftOptions.ionSwipe.emit(t)})},t.prototype.calculateOptsWidth=function(){this._optsDirty&&(this._optsWidthRightSide=0,this._rightOptions&&(this._optsWidthRightSide=this._rightOptions.width(),w(this._optsWidthRightSide>0,"_optsWidthRightSide should not be zero")),this._optsWidthLeftSide=0,this._leftOptions&&(this._optsWidthLeftSide=this._leftOptions.width(),w(this._optsWidthLeftSide>0,"_optsWidthLeftSide should not be zero")),this._optsDirty=!1)},t.prototype._setOpenAmount=function(t,e){var n=this,i=this._plt;if(this._tmr&&(i.cancelTimeout(this._tmr),this._tmr=null),this._openAmount=t,e&&this.item.setElementStyle(i.Css.transition,""),t>0){var o=t>=this._optsWidthRightSide+30?Ad.Right|Ad.SwipeRight:Ad.Right;this._setState(o)}else{if(!(t<0))return w(0===t,"bad internal state"),this._tmr=i.timeout(function(){n._setState(Ad.Disabled),n._tmr=null},600),void this.item.setElementStyle(i.Css.transform,"");var r=t<=-this._optsWidthLeftSide-30?Ad.Left|Ad.SwipeLeft:Ad.Left;this._setState(r)}this.item.setElementStyle(i.Css.transform,"translate3d("+-t+"px,0,0)");var s=this.ionDrag;s.observers.length>0&&s.emit(this)},t.prototype._setState=function(t){t!==this._state&&(this.setElementClass("active-slide",t!==Ad.Disabled),this.setElementClass("active-options-right",!!(t&Ad.Right)),this.setElementClass("active-options-left",!!(t&Ad.Left)),this.setElementClass("active-swipe-right",!!(t&Ad.SwipeRight)),this.setElementClass("active-swipe-left",!!(t&Ad.SwipeLeft)),this._state=t)},t.prototype.close=function(){this._setOpenAmount(0,!0)},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t}();Object(Jo.__decorate)([Object(Qo.m)(Pc),Object(Jo.__metadata)("design:type","function"==typeof(Bd=void 0!==Pc&&Pc)&&Bd||Object)],Nd.prototype,"item",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Ld=void 0!==Qo.r&&Qo.r)&&Ld||Object)],Nd.prototype,"ionDrag",void 0),Object(Jo.__decorate)([Object(Qo.n)(Object(Qo._4)(function(){return vd})),Object(Jo.__metadata)("design:type","function"==typeof(zd=void 0!==Qo.L&&Qo.L)&&zd||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Md=void 0!==Qo.L&&Qo.L)&&Md||Object])],Nd.prototype,"_itemOptions",null),Nd=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-item-sliding",template:'\n    <ng-content select="ion-item,[ion-item]"></ng-content>\n    <ng-content select="ion-item-options"></ng-content>\n  ',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Rd=void 0!==kd&&kd)&&Rd||Object,"function"==typeof(Fd=void 0!==yr&&yr)&&Fd||Object,"function"==typeof(Hd=void 0!==Qo.N&&Qo.N)&&Hd||Object,"function"==typeof(Vd=void 0!==Qo.p&&Qo.p)&&Vd||Object,"function"==typeof(Wd=void 0!==Qo.G&&Qo.G)&&Wd||Object])],Nd);var Bd,Ld,zd,Md,Rd,Fd,Hd,Vd,Wd,qd=function(){function t(t){this.elementRef=t,t.nativeElement.$ionComponent=this}return t.prototype.getReorderNode=function(){return dt(this.elementRef.nativeElement,null)},t.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation()},t}();Object(Jo.__decorate)([Object(Qo.u)("click",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],qd.prototype,"onClick",null),qd=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-reorder",template:'<ion-icon name="reorder"></ion-icon>'}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Yd=void 0!==Qo.p&&Qo.p)&&Yd||Object])],qd);var Yd,Gd=function(t){function e(e,n,i,o){var r=t.call(this,e,i,n,"list-header")||this;return r._id=o,r}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t,this.setElementAttribute("id",t)},enumerable:!0,configurable:!0}),e}(Yr);Gd=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-list-header"}),Object(Jo.__param)(3,Object(Qo.g)("id")),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Xd=void 0!==er&&er)&&Xd||Object,"function"==typeof(Ud=void 0!==Qo.N&&Qo.N)&&Ud||Object,"function"==typeof(Zd=void 0!==Qo.p&&Qo.p)&&Zd||Object,String])],Gd);var Xd,Ud,Zd,$d=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._config=e,w(o.data,"params data must be valid"),this.gestureBlocker=i.createBlocker(hs),this.d=o.data,r.setElementClass(n.nativeElement,"loading-"+e.get("mode"),!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&r.setElementClass(n.nativeElement,t,!0)}),this.id=++ih}return t.prototype.ngOnInit=function(){p(this.d.spinner)&&(this.d.spinner=this._config.get("loadingSpinner",this._config.get("spinner","ios"))),this.showSpinner=u(this.d.spinner)&&"hide"!==this.d.spinner},t.prototype.ionViewWillEnter=function(){this.gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this.gestureBlocker.unblock()},t.prototype.ionViewDidEnter=function(){var t=this;this.d&&this.d.duration&&(this.durationTimeout=setTimeout(function(){return t.dismiss("backdrop")},this.d.duration))},t.prototype.keyUp=function(t){this._viewCtrl.isLast()&&27===t.keyCode&&this.bdClick()},t.prototype.bdClick=function(){this.d.enableBackdropDismiss&&this.dismiss("backdrop")},t.prototype.dismiss=function(t){return this.durationTimeout&&clearTimeout(this.durationTimeout),this._viewCtrl.dismiss(null,t)},t.prototype.ngOnDestroy=function(){w(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],$d.prototype,"keyUp",null),$d=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-loading",template:'<ion-backdrop [hidden]="!d.showBackdrop" (click)="bdClick()" [class.backdrop-no-tappable]="!d.enableBackdropDismiss"></ion-backdrop><div class="loading-wrapper"><div *ngIf="showSpinner" class="loading-spinner"><ion-spinner [name]="d.spinner"></ion-spinner></div><div *ngIf="d.content" [innerHTML]="d.content" class="loading-content"></div></div>',host:{role:"dialog"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Kd=void 0!==or&&or)&&Kd||Object,"function"==typeof(Qd=void 0!==er&&er)&&Qd||Object,"function"==typeof(Jd=void 0!==Qo.p&&Qo.p)&&Jd||Object,"function"==typeof(th=void 0!==_s&&_s)&&th||Object,"function"==typeof(eh=void 0!==ir&&ir)&&eh||Object,"function"==typeof(nh=void 0!==Qo.N&&Qo.N)&&nh||Object])],$d);var Kd,Qd,Jd,th,eh,nh,ih=-1,oh=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),rh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.3),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),sh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.3,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),ah=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.5),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.5,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(xr),ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.3,1),e.fromTo("opacity",.01,.16),this.easing("cubic-bezier(0,0,0.05,1)").duration(200).add(e).add(n)},e}(xr),uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,1.3),e.fromTo("opacity",.16,0),this.easing("ease-out").duration(150).add(e).add(n)},e}(xr),ph=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dh=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n.showBackdrop=!d(n.showBackdrop)||!!n.showBackdrop,n.enableBackdropDismiss=!!d(n.enableBackdropDismiss)&&!!n.enableBackdropDismiss,n.dismissOnPageChange=!!d(n.dismissOnPageChange)&&!!n.dismissOnPageChange,o=t.call(this,$d,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("loading-pop-in",rh),i.setTransition("loading-pop-out",sh),i.setTransition("loading-md-pop-in",ah),i.setTransition("loading-md-pop-out",lh),i.setTransition("loading-wp-pop-in",ch),i.setTransition("loading-wp-pop-out",uh),o}return ph(e,t),e.prototype.getTransitionName=function(t){var e="back"===t?"loadingLeave":"loadingEnter";return this._nav&&this._nav.config.get(e)},e.prototype.setContent=function(t){return this.data.content=t,this},e.prototype.setSpinner=function(t){return this.data.spinner=t,this},e.prototype.setCssClass=function(t){return this.data.cssClass=t,this},e.prototype.setShowBackdrop=function(t){return this.data.showBackdrop=t,this},e.prototype.setDuration=function(t){return this.data.duration=t,this},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t,3)},e.prototype.dismissAll=function(){this._nav&&this._nav.popAll()},e}(or),hh=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new dh(this._app,t,this.config)},t}();hh=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(_h=void 0!==Mr&&Mr)&&_h||Object,"function"==typeof(fh=void 0!==er&&er)&&fh||Object])],hh);n(51);var _h,fh,bh=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mh=function(t){function e(e,n,i,o){var r=t.call(this,e,e.doc().body,{direction:"x",edge:n.side,threshold:5,maxEdgeStart:n.maxEdgeStart||50,zone:!1,passive:!0,domController:o,gesture:i.createGesture({name:os,priority:us,disableScroll:!0})})||this;return r.menu=n,r}return bh(e,t),e.prototype.canStart=function(e){var n=this.menu;return!!n.canSwipe()&&(!!n.isOpen||!n.getMenuController().getOpen()&&t.prototype.canStart.call(this,e))},e.prototype.onSlideBeforeStart=function(){console.debug("menu gesture, onSlideBeforeStart",this.menu.side),this.menu._swipeBeforeStart()},e.prototype.onSlideStart=function(){console.debug("menu gesture, onSlideStart",this.menu.side),this.menu._swipeStart()},e.prototype.onSlide=function(t){var e=this.menu.isRightSide!==this.plt.isRTL?t.min:t.max,n=t.distance/e;this.menu._swipeProgress(n)},e.prototype.onSlideEnd=function(t){var e=this.menu.isRightSide!==this.plt.isRTL?t.min:t.max,n=t.distance/e,i=t.velocity;e=Math.abs(.5*e);var o=i>=0&&(i>.2||t.delta>e),r=i<=0&&(i<-.2||t.delta<-e);console.debug("menu gesture, onSlideEnd",this.menu.side,"distance",t.distance,"delta",t.delta,"velocity",i,"min",t.min,"max",t.max,"shouldCompleteLeft",r,"shouldCompleteRight",o,"currentStepValue",n),this.menu._swipeEnd(r,o,n,i)},e.prototype.getElementStartPos=function(t){var e=this.menu;return e.isRightSide!==this.plt.isRTL?e.isOpen?t.min:t.max:e.isOpen?t.max:t.min},e.prototype.getSlideBoundaries=function(){var t=this.menu;return t.isRightSide!==this.plt.isRTL?{min:-t.width(),max:0}:{min:0,max:t.width()}},e}(xs),gh={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},vh=function(){return function(){}}(),yh=Oh=function(t){function e(e,n,i,o,r){var s=t.call(this,i,o,r,"split-pane")||this;return s._zone=e,s._plt=n,s._init=!1,s._visible=!1,s._isEnabled=!0,s._mediaQuery=gh.md,s.sideContent=null,s.mainContent=null,s.ionChange=new Qo.r,s}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"_setchildren",{set:function(t){var e=this;(this._children=t.filter(function(t){return t!==e})).forEach(function(t){var n=t.initPane();e._setPaneCSSClass(t.getElementRef(),n)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"when",{get:function(){return this._mediaQuery},set:function(t){if("boolean"==typeof t)this._mediaQuery=t;else{var e=gh[t];this._mediaQuery=e||t}this._update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){this._isEnabled=b(t),this._update()},enumerable:!0,configurable:!0}),e.prototype._register=function(t,e,n){return this.getElementRef().nativeElement===t.getElementRef().nativeElement.parentNode&&(this._setPaneCSSClass(t.getElementRef(),e),n&&this.ionChange.subscribe(n),e&&(this.mainContent&&console.error("split pane: main content was already set"),this.mainContent=t),!0)},e.prototype.ngAfterViewInit=function(){this._init=!0,this._update()},e.prototype._update=function(){var t=this;if(this._init)if(this._rmListener&&this._rmListener(),this._rmListener=null,this._isEnabled){var e=this._mediaQuery;if("boolean"!=typeof e)if(e&&e.length>0){var n=function(e){return t._setVisible(e.matches)},i=this._plt.win().matchMedia(e);i.addListener(n),this._setVisible(i.matches),this._rmListener=function(){i.removeListener(n)}}else this._setVisible(!1);else this._setVisible(e)}else this._setVisible(!1)},e.prototype._updateChildren=function(){this.mainContent=null,this.sideContent=null;var t=this._visible;this._children.forEach(function(e){return e.paneChanged&&e.paneChanged(t)})},e.prototype._setVisible=function(t){var e=this;this._visible!==t&&(this._visible=t,this.setElementClass("split-pane-visible",t),this._updateChildren(),this._zone.run(function(){e.ionChange.emit(e)}))},e.prototype.isVisible=function(){return this._visible},e.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},e.prototype._setPaneCSSClass=function(t,e){var n=t.nativeElement;this._renderer.setElementClass(n,"split-pane-main",e),this._renderer.setElementClass(n,"split-pane-side",!e)},e.prototype.ngOnDestroy=function(){w(this._rmListener,"at this point _rmListerner should be valid"),this._rmListener&&this._rmListener(),this._rmListener=null},e.prototype.initPane=function(){return!0},e}(Yr);Object(Jo.__decorate)([Object(Qo.n)(vh,{descendants:!1}),Object(Jo.__metadata)("design:type","function"==typeof(jh=void 0!==Qo.L&&Qo.L)&&jh||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(wh=void 0!==Qo.L&&Qo.L)&&wh||Object])],yh.prototype,"_setchildren",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],yh.prototype,"when",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],yh.prototype,"enabled",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Sh=void 0!==Qo.r&&Qo.r)&&Sh||Object)],yh.prototype,"ionChange",void 0),yh=Oh=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-split-pane",providers:[{provide:vh,useExisting:Object(Qo._4)(function(){return Oh})}]}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ch=void 0!==Qo.G&&Qo.G)&&Ch||Object,"function"==typeof(kh=void 0!==yr&&yr)&&kh||Object,"function"==typeof(Th=void 0!==er&&er)&&Th||Object,"function"==typeof(xh=void 0!==Qo.p&&Qo.p)&&xh||Object,"function"==typeof(Eh=void 0!==Qo.N&&Qo.N)&&Eh||Object])],yh);var Oh,jh,wh,Sh,Ch,kh,Th,xh,Eh,Ph=Ih=function(t){function e(e,n,i,o,r,s,a,l,c,u,p,d,h,_){var f=t.call(this,n,i,o,r,s,a,l,c,u,p,d,h,_)||this;return f._hasInit=!1,e&&e._setContent(f),n?n.registerChildNav(f):e&&e.getNav()?(f.parent=e.getNav(),f.parent.registerChildNav(f)):i&&!i.getRootNavById(f.id)&&i.registerRootNav(f),f}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"_vp",{set:function(t){this.setViewport(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this;this._hasInit=!0;var e=this._linker.getSegmentByNavIdOrName(this.id,this.name);if(e&&(e.component||e.loadChildren))return this._linker.initViews(e).then(function(e){return t.setPages(e,null,null)});if(this._root){var n=!e;return this.push(this._root,this.rootParams,{isNavRoot:this._app.getRootNavById(this.id)===this,updateUrl:n},null)}},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(t){this._root=t,this._hasInit&&this.setRoot(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.initPane=function(){return this._elementRef.nativeElement.hasAttribute("main")},e.prototype.paneChanged=function(t){t&&this.resize()},e.prototype.goToRoot=function(t){return this.setRoot(this._root,this.rootParams,t,null)},e.prototype.getType=function(){return"nav"},e.prototype.getSecondaryIdentifier=function(){return null},e}(Is);Object(Jo.__decorate)([Object(Qo.X)("viewport",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(Dh=void 0!==Qo.Z&&Qo.Z)&&Dh||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ah=void 0!==Qo.Z&&Qo.Z)&&Ah||Object])],Ph.prototype,"_vp",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Ph.prototype,"root",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],Ph.prototype,"rootParams",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Ph.prototype,"name",void 0),Ph=Ih=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-nav",template:'<div #viewport nav-viewport></div><div class="nav-decor"></div>',encapsulation:Qo._0.None,providers:[{provide:vh,useExisting:Object(Qo._4)(function(){return Ih})}]}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__param)(1,Object(Qo.H)()),Object(Jo.__param)(11,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Nh=void 0!==or&&or)&&Nh||Object,"function"==typeof(Bh=void 0!==gs&&gs)&&Bh||Object,"function"==typeof(Lh=void 0!==Mr&&Mr)&&Lh||Object,"function"==typeof(zh=void 0!==er&&er)&&zh||Object,"function"==typeof(Mh=void 0!==yr&&yr)&&Mh||Object,"function"==typeof(Rh=void 0!==Qo.p&&Qo.p)&&Rh||Object,"function"==typeof(Fh=void 0!==Qo.G&&Qo.G)&&Fh||Object,"function"==typeof(Hh=void 0!==Qo.N&&Qo.N)&&Hh||Object,"function"==typeof(Vh=void 0!==Qo.l&&Qo.l)&&Vh||Object,"function"==typeof(Wh=void 0!==_s&&_s)&&Wh||Object,"function"==typeof(qh=void 0!==Ls&&Ls)&&qh||Object,"function"==typeof(Yh=void 0!==Jr&&Jr)&&Yh||Object,"function"==typeof(Gh=void 0!==es&&es)&&Gh||Object,"function"==typeof(Xh=void 0!==Qo.q&&Qo.q)&&Xh||Object])],Ph);var Ih,Dh,Ah,Nh,Bh,Lh,zh,Mh,Rh,Fh,Hh,Vh,Wh,qh,Yh,Gh,Xh,Uh=Zh=function(){function t(t,e,n,i,o,r,s,a,l){this._menuCtrl=t,this._elementRef=e,this._config=n,this._plt=i,this._renderer=o,this._keyboard=r,this._gestureCtrl=s,this._domCtrl=a,this._app=l,this._isSwipeEnabled=!0,this._isAnimating=!1,this._isPersistent=!1,this._init=!1,this._isPane=!1,this.isOpen=!1,this.isRightSide=!1,this.ionDrag=new Qo.r,this.ionOpen=new Qo.r,this.ionClose=new Qo.r,this._events=new ws(i),this._gestureBlocker=s.createBlocker({disable:[is]}),this.side="start"}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){var e=b(t);this.enable(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"side",{get:function(){return this._side},set:function(t){this.isRightSide=g(t,this._plt.isRTL),this._side=this.isRightSide?"right":"left"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeEnabled",{get:function(){return this._isSwipeEnabled},set:function(t){var e=b(t);this.swipeEnable(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"persistent",{get:function(){return this._isPersistent},set:function(t){this._isPersistent=b(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._init=!0;var e=this.content;if(this._cntEle=e instanceof Node?e:e&&e.getNativeElement&&e.getNativeElement(),!this._cntEle)return console.error('Menu: must have a [content] element to listen for drag events on. Example:\n\n<ion-menu [content]="content"></ion-menu>\n\n<ion-nav #content></ion-nav>');this.setElementAttribute("side",this._side),this.type||(this.type=this._config.get("menuType")),this.setElementAttribute("type",this.type),this._gesture=new mh(this._plt,this,this._gestureCtrl,this._domCtrl),this._cntEle.classList.add("menu-content"),this._cntEle.classList.add("menu-content-"+this.type);var n=this._isEnabled;!0!==n&&void 0!==n||(n=!this._menuCtrl.getMenus().some(function(e){return e.side===t.side&&e.enabled})),this._menuCtrl._register(this),this.enable(n)},t.prototype.onBackdropClick=function(t){t.preventDefault(),t.stopPropagation(),this._menuCtrl.close()},t.prototype._getType=function(){return this._type||(this._type=fr.create(this.type,this,this._plt),!1===this._config.get("animate")&&this._type.ani.duration(0)),this._type},t.prototype.setOpen=function(t,e){var n=this;return void 0===e&&(e=!0),t===this.isOpen||!this._canOpen()||this._isAnimating?Promise.resolve(this.isOpen):new Promise(function(i){n._before(),n._getType().setOpen(t,e,function(){n._after(t),i(n.isOpen)})})},t.prototype._forceClosing=function(){var t=this;w(this.isOpen,"menu cannot be closed"),this._isAnimating=!0,this._getType().setOpen(!1,!1,function(){t._after(!1)})},t.prototype.canSwipe=function(){return this._isSwipeEnabled&&!this._isAnimating&&this._canOpen()&&this._app.isEnabled()},t.prototype.isAnimating=function(){return this._isAnimating},t.prototype._swipeBeforeStart=function(){this.canSwipe()?this._before():w(!1,"canSwipe() has to be true")},t.prototype._swipeStart=function(){this._isAnimating?this._getType().setProgressStart(this.isOpen):w(!1,"_isAnimating has to be true")},t.prototype._swipeProgress=function(t){if(this._isAnimating){this._getType().setProgessStep(t);var e=this.ionDrag;e.observers.length>0&&e.emit(t)}else w(!1,"_isAnimating has to be true")},t.prototype._swipeEnd=function(t,e,n,i){var o=this;if(this._isAnimating){var r=this.isRightSide,s=this._plt.isRTL,a=!this.isOpen?r!==s?t:e:r!==s?e:t;this._getType().setProgressEnd(a,n,i,function(t){console.debug("menu, swipeEnd",o.side),o._after(t)})}else w(!1,"_isAnimating has to be true")},t.prototype._before=function(){w(!this._isAnimating,"_before() should not be called while animating"),this.setElementClass("show-menu",!0),this.backdrop.setElementClass("show-backdrop",!0),this.resize(),this._keyboard.close(),this._isAnimating=!0},t.prototype._after=function(t){if(w(this._isAnimating,"_before() should be called while animating"),this._app.setEnabled(!1,100),this.isOpen=t,this._isAnimating=!1,this._events.unlistenAll(),t){this._gestureBlocker.block(),this._cntEle.classList.add("menu-content-open");var e=this.onBackdropClick.bind(this);this._events.listen(this._cntEle,"click",e,{capture:!0}),this._events.listen(this.backdrop.getNativeElement(),"click",e,{capture:!0}),this.ionOpen.emit(!0)}else this._gestureBlocker.unblock(),this._cntEle.classList.remove("menu-content-open"),this.setElementClass("show-menu",!1),this.backdrop.setElementClass("show-menu",!1),this.ionClose.emit(!0)},t.prototype.open=function(){return this.setOpen(!0)},t.prototype.close=function(){return this.setOpen(!1)},t.prototype.resize=function(){var t=this.menuContent?this.menuContent:this.menuNav;t&&t.resize()},t.prototype.toggle=function(){return this.setOpen(!this.isOpen)},t.prototype._canOpen=function(){return this._isEnabled&&!this._isPane},t.prototype._updateState=function(){var t=this._canOpen();if(!t&&this.isOpen&&(w(this._init,"menu must be initialized"),this._forceClosing()),this._isEnabled&&this._menuCtrl&&this._menuCtrl._setActiveMenu(this),this._init){var e=this._gesture;t&&this._isSwipeEnabled&&!e.isListening?(console.debug("menu, gesture listen",this.side),e.listen()):!e.isListening||t&&this._isSwipeEnabled||(console.debug("menu, gesture unlisten",this.side),e.unlisten()),(this.isOpen||this._isPane&&this._isEnabled)&&this.resize(),w(!this._isAnimating,"can not be animating")}},t.prototype.enable=function(t){return this._isEnabled=t,this.setElementClass("menu-enabled",t),this._updateState(),this},t.prototype.initPane=function(){return!1},t.prototype.paneChanged=function(t){this._isPane=t,this._updateState()},t.prototype.swipeEnable=function(t){return this._isSwipeEnabled=t,this._updateState(),this},t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t.prototype.getMenuElement=function(){return this.getNativeElement().querySelector(".menu-inner")},t.prototype.getContentElement=function(){return this._cntEle},t.prototype.getBackdropElement=function(){return this.backdrop.getNativeElement()},t.prototype.width=function(){return this.getMenuElement().offsetWidth},t.prototype.getMenuController=function(){return this._menuCtrl},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t.prototype.setElementAttribute=function(t,e){this._renderer.setElementAttribute(this._elementRef.nativeElement,t,e)},t.prototype.getElementRef=function(){return this._elementRef},t.prototype.ngOnDestroy=function(){this._menuCtrl._unregister(this),this._events.destroy(),this._gesture&&this._gesture.destroy(),this._type&&this._type.destroy(),this._gesture=null,this._type=null,this._cntEle=null},t}();Object(Jo.__decorate)([Object(Qo.X)(el),Object(Jo.__metadata)("design:type","function"==typeof($h=void 0!==el&&el)&&$h||Object)],Uh.prototype,"backdrop",void 0),Object(Jo.__decorate)([Object(Qo.m)(oc),Object(Jo.__metadata)("design:type","function"==typeof(Kh=void 0!==oc&&oc)&&Kh||Object)],Uh.prototype,"menuContent",void 0),Object(Jo.__decorate)([Object(Qo.m)(Ph),Object(Jo.__metadata)("design:type","function"==typeof(Qh=void 0!==Ph&&Ph)&&Qh||Object)],Uh.prototype,"menuNav",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],Uh.prototype,"content",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Uh.prototype,"id",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Uh.prototype,"type",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Uh.prototype,"enabled",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type","function"==typeof(Jh=!1)&&Jh||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(t_=!1)&&t_||Object])],Uh.prototype,"side",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Uh.prototype,"swipeEnabled",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Uh.prototype,"persistent",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Uh.prototype,"maxEdgeStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(e_=void 0!==Qo.r&&Qo.r)&&e_||Object)],Uh.prototype,"ionDrag",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(n_=void 0!==Qo.r&&Qo.r)&&n_||Object)],Uh.prototype,"ionOpen",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(i_=void 0!==Qo.r&&Qo.r)&&i_||Object)],Uh.prototype,"ionClose",void 0),Uh=Zh=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-menu",template:'<div class="menu-inner"><ng-content></ng-content></div><ion-backdrop></ion-backdrop>',host:{role:"navigation"},changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None,providers:[{provide:vh,useExisting:Object(Qo._4)(function(){return Zh})}]}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(o_=void 0!==fr&&fr)&&o_||Object,"function"==typeof(r_=void 0!==Qo.p&&Qo.p)&&r_||Object,"function"==typeof(s_=void 0!==er&&er)&&s_||Object,"function"==typeof(a_=void 0!==yr&&yr)&&a_||Object,"function"==typeof(l_=void 0!==Qo.N&&Qo.N)&&l_||Object,"function"==typeof(c_=void 0!==Wl&&Wl)&&c_||Object,"function"==typeof(u_=void 0!==_s&&_s)&&u_||Object,"function"==typeof(p_=void 0!==es&&es)&&p_||Object,"function"==typeof(d_=void 0!==Mr&&Mr)&&d_||Object])],Uh);var Zh,$h,Kh,Qh,Jh,t_,e_,n_,i_,o_,r_,s_,a_,l_,c_,u_,p_,d_,h_=function(){function t(t){this._menu=t}return t.prototype.close=function(){var t=this._menu.get(this.menuClose);t&&t.close()},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],h_.prototype,"menuClose",void 0),Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],h_.prototype,"close",null),h_=Object(Jo.__decorate)([Object(Qo.o)({selector:"[menuClose]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(__=void 0!==fr&&fr)&&__||Object])],h_);var __,f_=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b_=function(t){function e(e,n,i){return t.call(this,e,n,i,"toolbar")||this}return f_(e,t),e.prototype._setTitle=function(t){this._title=t},e.prototype.getTitleText=function(){return this._title&&this._title.getTitleText()||""},e}(Yr),m_=function(t){function e(e,n,i,o,r,s){var a=t.call(this,o,r,s)||this;return a._app=e,a.navCtrl=i,a._hidden=!1,a._hideBb=!1,n&&n._setNavbar(a),a._bbIcon=o.get("backButtonIcon"),a._sbPadding=o.getBoolean("statusbarPadding"),a._backText=o.get("backButtonText","Back"),a}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"hideBackButton",{get:function(){return this._hideBb},set:function(t){this._hideBb=b(t)},enumerable:!0,configurable:!0}),e.prototype.backButtonClick=function(t){t.preventDefault(),t.stopPropagation(),this.navCtrl&&this.navCtrl.pop(null,null)},e.prototype.setBackButtonText=function(t){this._backText=t},e.prototype.didEnter=function(){try{this._app.setTitle(this.getTitleText())}catch(t){console.error(t)}},e.prototype.setHidden=function(t){this._hidden=t},e}(b_);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],m_.prototype,"hideBackButton",null),m_=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-navbar",template:'<div class="toolbar-background" [ngClass]="\'toolbar-background-\' + _mode"></div><button (click)="backButtonClick($event)" ion-button="bar-button" class="back-button" [ngClass]="\'back-button-\' + _mode" [hidden]="_hideBb"><ion-icon class="back-button-icon" [ngClass]="\'back-button-icon-\' + _mode" [name]="_bbIcon"></ion-icon><span class="back-button-text" [ngClass]="\'back-button-text-\' + _mode">{{_backText}}</span></button><ng-content select="[menuToggle],ion-buttons[left]"></ng-content><ng-content select="ion-buttons[start]"></ng-content><ng-content select="ion-buttons[end],ion-buttons[right]"></ng-content><div class="toolbar-content" [ngClass]="\'toolbar-content-\' + _mode"><ng-content></ng-content></div>',host:{"[hidden]":"_hidden",class:"toolbar","[class.statusbar-padding]":"_sbPadding"}}),Object(Jo.__param)(1,Object(Qo.H)()),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(g_=void 0!==Mr&&Mr)&&g_||Object,"function"==typeof(v_=void 0!==or&&or)&&v_||Object,"function"==typeof(y_=void 0!==gs&&gs)&&y_||Object,"function"==typeof(O_=void 0!==er&&er)&&O_||Object,"function"==typeof(j_=void 0!==Qo.p&&Qo.p)&&j_||Object,"function"==typeof(w_=void 0!==Qo.N&&Qo.N)&&w_||Object])],m_);var g_,v_,y_,O_,j_,w_,S_=function(){function t(t,e,n,i){this._menu=t,this._viewCtrl=e,this._button=n,this._isButton=!!n,this._inNavbar=!!i}return t.prototype.ngAfterContentInit=function(){this._isButton&&this._button._setClass("menutoggle",!0)},t.prototype.toggle=function(){var t=this._menu.get(this.menuToggle);t&&t.toggle()},Object.defineProperty(t.prototype,"isHidden",{get:function(){var t=this._menu.get(this.menuToggle);if(this._inNavbar&&this._viewCtrl){if(!t||!t._canOpen())return!0;if(this._viewCtrl.isFirst())return!1;if(t)return!t.persistent}return!1},enumerable:!0,configurable:!0}),t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],S_.prototype,"menuToggle",void 0),Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],S_.prototype,"toggle",null),S_=Object(Jo.__decorate)([Object(Qo.o)({selector:"[menuToggle]",host:{"[hidden]":"isHidden"}}),Object(Jo.__param)(1,Object(Qo.H)()),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(C_=void 0!==fr&&fr)&&C_||Object,"function"==typeof(k_=void 0!==or&&or)&&k_||Object,"function"==typeof(T_=void 0!==ll&&ll)&&T_||Object,"function"==typeof(x_=void 0!==m_&&m_)&&x_||Object])],S_);var C_,k_,T_,x_,E_=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P_=function(){function t(t){this.ani=new jr(t),this.ani.easing("cubic-bezier(0.0, 0.0, 0.2, 1)").easingReverse("cubic-bezier(0.4, 0.0, 0.6, 1)").duration(280)}return t.prototype.setOpen=function(t,e,n){var i=this.ani.onFinish(n,!0,!0).reverse(!t);e?i.play():i.syncPlay()},t.prototype.setProgressStart=function(t){this.isOpening=!t,this.ani.reverse(t).progressStart()},t.prototype.setProgessStep=function(t){this.ani.progressStep(t)},t.prototype.setProgressEnd=function(t,e,n,i){var o=this,r=this.isOpening&&t;this.isOpening||t||(r=!0);var s=this.ani;s.onFinish(function(){o.isOpening=!1,i(r)},!0);var a=1-Math.min(Math.abs(n)/4,.7),l=s.getDuration()*a;s.progressEnd(t,e,l)},t.prototype.destroy=function(){this.ani.destroy(),this.ani=null},t}(),I_=function(t){function e(e,n){var i=t.call(this,n)||this,o=e.width()*(e.isRightSide?-1:1)+"px",r=new jr(n,e.getContentElement());return r.fromTo("translateX","0px",o),i.ani.add(r),i}return E_(e,t),e}(P_);fr.registerType("reveal",I_);var D_=function(t){function e(e,n){var i,o,r,s=t.call(this,n)||this,a=e.width();e.isRightSide?(i=-a+"px",o=a+"px",r="0px"):(i=a+"px",r="0px",o=-a+"px");var l=new jr(n,e.getMenuElement());l.fromTo("translateX",o,r),s.ani.add(l);var c=new jr(n,e.getContentElement());return c.fromTo("translateX","0px",i),s.ani.add(c),s}return E_(e,t),e}(P_);fr.registerType("push",D_);var A_=function(t){function e(e,n){var i,o,r=t.call(this,n)||this,s=e.width();e.isRightSide?(i=8+s+"px",o="0px"):(i=-(8+s)+"px",o="0px");var a=new jr(n,e.getMenuElement());a.fromTo("translateX",i,o),r.ani.add(a);var l=new jr(n,e.getBackdropElement());return l.fromTo("opacity",.01,.35),r.ani.add(l),r}return E_(e,t),e}(P_);fr.registerType("overlay",A_);var N_=function(){function t(t,e,n,i){this._app=t,this._component=e,this._config=n,this._deepLinker=i}return t.prototype.getImplementation=function(){throw new Error('Child class must implement "getImplementation" method')},t.prototype.present=function(t){var e=this;return void 0===t&&(t={}),a(this._component)?this._deepLinker.getComponentFromName(this._component).then(function(n){return e._component=n,e.createAndPresentOverlay(t)}):this.createAndPresentOverlay(t)},t.prototype.dismiss=function(t,e,n){if(this.overlay)return this.overlay.dismiss(t,e,n)},t.prototype.onDidDismiss=function(t){this._onDidDismiss=t,this.overlay&&this.overlay.onDidDismiss(this._onDidDismiss)},t.prototype.createAndPresentOverlay=function(t){return this.overlay=this.getImplementation(),this.overlay.onWillDismiss(this._onWillDismiss),this.overlay.onDidDismiss(this._onDidDismiss),this.overlay.present(t)},t.prototype.onWillDismiss=function(t){this._onWillDismiss=t,this.overlay&&this.overlay.onWillDismiss(this._onWillDismiss)},t}(),B_=function(){function t(t){this._compiler=t}return t.prototype.load=function(t,e){return this._compiler instanceof Qo.j?Ft(t,e):Rt(this._compiler,t,e)},t}();B_=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(L_=void 0!==Qo.j&&Qo.j)&&L_||Object])],B_);var L_,z_=new Qo.x("LZYCMP"),M_=function(){function t(t,e){this._ngModuleLoader=t,this._injector=e,this._cfrMap=new Map,this._promiseMap=new Map}return t.prototype.load=function(t){var e=this;console.time("ModuleLoader, load: "+t+"'");var n=t.split(H_),i=this._promiseMap.get(t);return i||(i=this._ngModuleLoader.load(n[0],n[1]),this._promiseMap.set(t,i)),i.then(function(n){console.timeEnd("ModuleLoader, load: "+t+"'");var i=n.create(e._injector),o=i.injector.get(z_);return e._cfrMap.set(o,i.componentFactoryResolver),{componentFactoryResolver:i.componentFactoryResolver,component:o}})},t.prototype.getComponentFactoryResolver=function(t){return this._cfrMap.get(t)},t}();M_=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(R_=void 0!==B_&&B_)&&R_||Object,"function"==typeof(F_=void 0!==Qo.y&&Qo.y)&&F_||Object])],M_);var R_,F_,H_="#",V_=function(){function t(t,e,n,i,o,r,s){this._cfr=t,this._renderer=e,this._elementRef=n,this._navParams=i,this._viewCtrl=o,this.moduleLoader=s;var a=i.get("opts");w(a,"modal data must be valid"),this._gestureBlocker=r.createBlocker({disable:[os,is]}),this._bdDismiss=a.enableBackdropDismiss,a.cssClass&&a.cssClass.split(" ").forEach(function(t){""!==t.trim()&&e.setElementClass(n.nativeElement,t,!0)})}return t.prototype.ionViewPreLoad=function(){var t=this._navParams.data.component;if(t){var e=this.moduleLoader.getComponentFactoryResolver(t);e||(e=this._cfr);var n=e.resolveComponentFactory(t),i=this._viewport.createComponent(n,this._viewport.length,this._viewport.parentInjector,[]);this._setCssClass(i,"ion-page"),this._setCssClass(i,"show-page"),this._viewCtrl._setInstance(i.instance),this._viewCtrl.willEnter.subscribe(this._viewWillEnter.bind(this)),this._viewCtrl.didLeave.subscribe(this._viewDidLeave.bind(this)),this._enabled=!0}else console.warn("modal's page was not defined")},t.prototype._viewWillEnter=function(){this._gestureBlocker.block()},t.prototype._viewDidLeave=function(){this._gestureBlocker.unblock()},t.prototype._setCssClass=function(t,e){this._renderer.setElementClass(t.location.nativeElement,e,!0)},t.prototype._bdClick=function(){if(this._enabled&&this._bdDismiss){var t={minClickBlockDuration:400};return this._viewCtrl.dismiss(null,"backdrop",t)}},t.prototype._keyUp=function(t){this._enabled&&this._viewCtrl.isLast()&&27===t.keyCode&&this._bdClick()},t.prototype.ngOnDestroy=function(){w(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.X)("viewport",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(W_=void 0!==Qo.Z&&Qo.Z)&&W_||Object)],V_.prototype,"_viewport",void 0),Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],V_.prototype,"_keyUp",null),V_=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-modal",template:'<ion-backdrop (click)="_bdClick()" [class.backdrop-no-tappable]="!_bdDismiss"></ion-backdrop><div class="modal-wrapper"><div #viewport nav-viewport></div></div>'}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(q_=void 0!==Qo.l&&Qo.l)&&q_||Object,"function"==typeof(Y_=void 0!==Qo.N&&Qo.N)&&Y_||Object,"function"==typeof(G_=void 0!==Qo.p&&Qo.p)&&G_||Object,"function"==typeof(X_=void 0!==ir&&ir)&&X_||Object,"function"==typeof(U_=void 0!==or&&or)&&U_||Object,"function"==typeof(Z_=void 0!==_s&&_s)&&Z_||Object,"function"==typeof($_=void 0!==M_&&M_)&&$_||Object])],V_);var W_,q_,Y_,G_,X_,U_,Z_,$_,K_=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return K_(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=e.querySelector("ion-backdrop"),i=new jr(this.plt,n),o=new jr(this.plt,e.querySelector(".modal-wrapper"));o.beforeStyles({opacity:1}),o.fromTo("translateY","100%","0%"),i.fromTo("opacity",.01,.4),this.element(this.enteringView.pageRef()).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(400).add(i).add(o)},e}(Pr),J_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return K_(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new jr(this.plt,e.querySelector("ion-backdrop")),i=e.querySelector(".modal-wrapper"),o=i.getBoundingClientRect(),r=new jr(this.plt,i);r.fromTo("translateY","0px",this.plt.height()-o.top+"px"),n.fromTo("opacity",.4,0),this.element(this.leavingView.pageRef()).easing("ease-out").duration(250).add(n).add(r)},e}(Pr),tf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return K_(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=new jr(this.plt,e.querySelector("ion-backdrop")),i=new jr(this.plt,e.querySelector(".modal-wrapper"));n.fromTo("opacity",.01,.4),i.fromTo("translateY","40px","0px"),i.fromTo("opacity",.01,1);this.element(this.enteringView.pageRef()).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).add(n).add(i)},e}(Pr),ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return K_(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new jr(this.plt,e.querySelector("ion-backdrop")),i=new jr(this.plt,e.querySelector(".modal-wrapper"));n.fromTo("opacity",.4,0),i.fromTo("translateY","0px","40px"),i.fromTo("opacity",.99,0),this.element(this.leavingView.pageRef()).duration(200).easing("cubic-bezier(0.47,0,0.745,0.715)").add(i).add(n)},e}(Pr),nf=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),of=function(t){function e(e,n,i,o,r){void 0===o&&(o={});var s=this;return i=i||{},i.component=n,o.showBackdrop=!d(o.showBackdrop)||!!o.showBackdrop,o.enableBackdropDismiss=!d(o.enableBackdropDismiss)||!!o.enableBackdropDismiss,i.opts=o,s=t.call(this,V_,i,null)||this,s._app=e,s._enterAnimation=o.enterAnimation,s._leaveAnimation=o.leaveAnimation,s.isOverlay=!0,r.setTransition("modal-slide-in",Q_),r.setTransition("modal-slide-out",J_),r.setTransition("modal-md-slide-in",tf),r.setTransition("modal-md-slide-out",ef),s}return nf(e,t),e.prototype.getTransitionName=function(t){var e;if("back"===t){if(this._leaveAnimation)return this._leaveAnimation;e="modalLeave"}else{if(this._enterAnimation)return this._enterAnimation;e="modalEnter"}return this._nav&&this._nav.config.get(e)},e.prototype.present=function(t){return void 0===t&&(t={}),t.minClickBlockDuration=t.minClickBlockDuration||400,this._app.present(this,t,2)},e}(or),rf=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),sf=function(t){function e(e,n,i,o,r,s){void 0===o&&(o={});var a=t.call(this,e,n,r,s)||this;return a.data=i,a.opts=o,a.isOverlay=!0,a}return rf(e,t),e.prototype.getImplementation=function(){return new of(this._app,this._component,this.data,this.opts,this._config)},e}(N_),af=function(){function t(t,e,n){this._app=t,this.config=e,this.deepLinker=n}return t.prototype.create=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),new sf(this._app,t,e,n,this.config,this.deepLinker)},t}();af=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(lf=void 0!==Mr&&Mr)&&lf||Object,"function"==typeof(cf=void 0!==er&&er)&&cf||Object,"function"==typeof(uf=void 0!==Jr&&Jr)&&uf||Object])],af);n(52);var lf,cf,uf,pf=function(){function t(t){this._nav=t,t||console.error("navPop must be within a NavController")}return t.prototype.onClick=function(){return!this._nav||(this._nav.pop().catch(function(){console.debug("navPop was rejected")}),!1)},t}();Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",Boolean)],pf.prototype,"onClick",null),pf=Object(Jo.__decorate)([Object(Qo.o)({selector:"[navPop]"}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(df=void 0!==gs&&gs)&&df||Object])],pf);var df,hf=function(){function t(t,e,n){this.host=t,this.linker=e,this.viewCtrl=n}return t.prototype.updateHref=function(){if(this.host&&this.viewCtrl){var t=this.host._nav.getPrevious(this.viewCtrl);this._href=t&&this.linker.createUrl(this.host._nav,this.viewCtrl.component,this.viewCtrl.data)||"#"}else this._href="#"},t.prototype.ngAfterContentInit=function(){this.updateHref()},t}();hf=Object(Jo.__decorate)([Object(Qo.o)({selector:"a[navPop]",host:{"[attr.href]":"_href"}}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(_f=void 0!==pf&&pf)&&_f||Object,"function"==typeof(ff=void 0!==Jr&&Jr)&&ff||Object,"function"==typeof(bf=void 0!==or&&or)&&bf||Object])],hf);var _f,ff,bf,mf=function(){function t(t){this._nav=t,t||console.error("navPush must be within a NavController")}return t.prototype.onClick=function(){return!this._nav||!this.navPush||(this._nav.push(this.navPush,this.navParams),!1)},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],mf.prototype,"navPush",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],mf.prototype,"navParams",void 0),Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",Boolean)],mf.prototype,"onClick",null),mf=Object(Jo.__decorate)([Object(Qo.o)({selector:"[navPush]"}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(gf=void 0!==gs&&gs)&&gf||Object])],mf);var gf,vf=function(){function t(t,e){this.host=t,this.linker=e}return t.prototype.updateHref=function(){this._href=this.host&&this.linker?this.linker.createUrl(this.host._nav,this.host.navPush,this.host.navParams)||"#":"#"},t.prototype.ngAfterContentInit=function(){this.updateHref()},t}();vf=Object(Jo.__decorate)([Object(Qo.o)({selector:"a[navPush]",host:{"[attr.href]":"_href"}}),Object(Jo.__param)(0,Object(Qo.s)()),Object(Jo.__param)(1,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(yf=void 0!==mf&&mf)&&yf||Object,"function"==typeof(Of=void 0!==Jr&&Jr)&&Of||Object])],vf);var yf,Of,jf=function(t){function e(e,n,i){return t.call(this,e,n,i,"note")||this}return Object(Jo.__extends)(e,t),e}(Yr);jf=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-note"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(wf=void 0!==er&&er)&&wf||Object,"function"==typeof(Sf=void 0!==Qo.p&&Qo.p)&&Sf||Object,"function"==typeof(Cf=void 0!==Qo.N&&Qo.N)&&Cf||Object])],jf);var wf,Sf,Cf,kf=function(){function t(t){this._elementRef=t,this._selected=!1,this._disabled=!1,this.ionSelect=new Qo.r}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return d(this._value)?this._value:this.text},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._elementRef.nativeElement.textContent},enumerable:!0,configurable:!0}),t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],kf.prototype,"disabled",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],kf.prototype,"selected",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],kf.prototype,"value",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Tf=void 0!==Qo.r&&Qo.r)&&Tf||Object)],kf.prototype,"ionSelect",void 0),kf=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-option"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(xf=void 0!==Qo.p&&Qo.p)&&xf||Object])],kf);var Tf,xf,Ef=function(){function t(t,e,n,i,o,r,s,a){this._cfr=t,this._elementRef=e,this._renderer=n,this._config=i,this._navParams=o,this._viewCtrl=r,this.moduleLoader=a,this._gestureBlocker=s.createBlocker(hs),this.d=o.data.opts,n.setElementClass(e.nativeElement,"popover-"+i.get("mode"),!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&n.setElementClass(e.nativeElement,t,!0)}),this.id=++Rf}return t.prototype.ionViewPreLoad=function(){this._load(this._navParams.data.component)},t.prototype._load=function(t){if(t){var e=this.moduleLoader.getComponentFactoryResolver(t);e||(e=this._cfr);var n=e.resolveComponentFactory(t),i=this._viewport.createComponent(n,this._viewport.length,this._viewport.parentInjector,[]);this._viewCtrl._setInstance(i.instance),this._enabled=!0,this._viewCtrl.willEnter.subscribe(this._viewWillEnter.bind(this)),this._viewCtrl.didLeave.subscribe(this._viewDidLeave.bind(this))}},t.prototype._viewWillEnter=function(){this._gestureBlocker.block()},t.prototype._viewDidLeave=function(){this._gestureBlocker.unblock()},t.prototype._setCssClass=function(t,e){this._renderer.setElementClass(t.location.nativeElement,e,!0)},t.prototype._bdClick=function(){if(this._enabled&&this.d.enableBackdropDismiss)return this._viewCtrl.dismiss(null,"backdrop")},t.prototype._keyUp=function(t){this._enabled&&27===t.keyCode&&this._viewCtrl.isLast()&&this._bdClick()},t.prototype.ngOnDestroy=function(){w(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}();Object(Jo.__decorate)([Object(Qo.X)("viewport",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(Pf=void 0!==Qo.Z&&Qo.Z)&&Pf||Object)],Ef.prototype,"_viewport",void 0),Object(Jo.__decorate)([Object(Qo.u)("body:keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],Ef.prototype,"_keyUp",null),Ef=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-popover",template:'<ion-backdrop (click)="_bdClick()" [hidden]="!d.showBackdrop"></ion-backdrop><div class="popover-wrapper"><div class="popover-arrow"></div><div class="popover-content"><div class="popover-viewport"><div #viewport nav-viewport></div></div></div></div>'}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(If=void 0!==Qo.l&&Qo.l)&&If||Object,"function"==typeof(Df=void 0!==Qo.p&&Qo.p)&&Df||Object,"function"==typeof(Af=void 0!==Qo.N&&Qo.N)&&Af||Object,"function"==typeof(Nf=void 0!==er&&er)&&Nf||Object,"function"==typeof(Bf=void 0!==ir&&ir)&&Bf||Object,"function"==typeof(Lf=void 0!==or&&or)&&Lf||Object,"function"==typeof(zf=void 0!==_s&&_s)&&zf||Object,"function"==typeof(Mf=void 0!==M_&&M_)&&Mf||Object])],Ef);var Pf,If,Df,Af,Nf,Bf,Lf,zf,Mf,Rf=-1,Ff=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ff(e,t),e.prototype.mdPositionView=function(t,e){var n="top",i="left",o=t.querySelector(".popover-wrapper"),r=t.querySelector(".popover-content"),s=r.getBoundingClientRect(),a=s.width,l=s.height,c=this.plt.width(),u=this.plt.height(),p=e&&e.target&&e.target.getBoundingClientRect(),d=p&&"top"in p?p.top:u/2-l/2,h=p&&"left"in p?p.left:c/2-a/2,_=p&&p.height||0,f={top:d,left:h};f.left<Xf?f.left=Xf:a+Xf+f.left>c&&(f.left=c-a-Xf,i="right"),d+_+l>u&&d-l>0?(f.top=d-l,t.className=t.className+" popover-bottom",n="bottom"):d+_+l>u&&(r.style.bottom=Xf+"px"),r.style.top=f.top+"px",r.style.left=f.left+"px",r.style[this.plt.Css.transformOrigin]=n+" "+i,o.style.opacity="1"},e.prototype.iosPositionView=function(t,e){var n="top",i="left",o=t.querySelector(".popover-wrapper"),r=t.querySelector(".popover-content"),s=r.getBoundingClientRect(),a=s.width,l=s.height,c=this.plt.width(),u=this.plt.height(),p=e&&e.target&&e.target.getBoundingClientRect(),d=p&&"top"in p?p.top:u/2-l/2,h=p&&"left"in p?p.left:c/2,_=p&&p.width||0,f=p&&p.height||0,b=t.querySelector(".popover-arrow"),m=b.getBoundingClientRect(),g=m.width,v=m.height;p||(b.style.display="none");var y={top:d+f,left:h+_/2-g/2},O={top:d+f+(v-1),left:h+_/2-a/2};O.left<Gf?O.left=Gf:a+Gf+O.left>c&&(O.left=CSS.supports("left","constant(safe-area-inset-left)")?"calc("+(c-a-Gf)+"px - constant(safe-area-inset-left)":CSS.supports("left","env(safe-area-inset-left)")?"calc("+(c-a-Gf)+"px - env(safe-area-inset-left)":c-a-Gf+"px",i="right"),d+f+l>u&&d-l>0?(y.top=d-(v+1),O.top=d-l-(v-1),t.className=t.className+" popover-bottom",n="bottom"):d+f+l>u&&(r.style.bottom=Gf+"%"),b.style.top=y.top+"px",b.style.left=y.left+"px",r.style.top=O.top+"px",r.style.left=O.left,r.style[this.plt.Css.transformOrigin]=n+" "+i,o.style.opacity="1"},e}(Pr),Vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ff(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".popover-wrapper"));n.fromTo("opacity",.01,1),e.fromTo("opacity",.01,.08),this.easing("ease").duration(100).add(e).add(n)},e.prototype.play=function(){var e=this;this.plt.raf(function(){e.iosPositionView(e.enteringView.pageRef().nativeElement,e.opts.ev),t.prototype.play.call(e)})},e}(Hf),Wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ff(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector("ion-backdrop")),n=new jr(this.plt,t.querySelector(".popover-wrapper"));n.fromTo("opacity",.99,0),e.fromTo("opacity",.08,0),this.easing("ease").duration(500).add(e).add(n)},e}(Hf),qf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ff(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector(".popover-content")),n=new jr(this.plt,t.querySelector(".popover-viewport"));e.fromTo("scale",.001,1),n.fromTo("opacity",.01,1),this.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).add(e).add(n)},e.prototype.play=function(){var e=this;this.plt.raf(function(){e.mdPositionView(e.enteringView.pageRef().nativeElement,e.opts.ev),t.prototype.play.call(e)})},e}(Hf),Yf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ff(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new jr(this.plt,t.querySelector(".popover-wrapper"));e.fromTo("opacity",.99,0),this.easing("ease").duration(500).fromTo("opacity",.01,1).add(e)},e}(Hf),Gf=2,Xf=12,Uf=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zf=function(t){function e(e,n,i,o,r){void 0===i&&(i={}),void 0===o&&(o={});var s=this;return o.showBackdrop=!d(o.showBackdrop)||!!o.showBackdrop,o.enableBackdropDismiss=!d(o.enableBackdropDismiss)||!!o.enableBackdropDismiss,i.component=n,i.opts=o,s=t.call(this,Ef,i,null)||this,s._app=e,s.isOverlay=!0,r.setTransition("popover-pop-in",Vf),r.setTransition("popover-pop-out",Wf),r.setTransition("popover-md-pop-in",qf),r.setTransition("popover-md-pop-out",Yf),s}return Uf(e,t),e.prototype.getTransitionName=function(t){var e="back"===t?"popoverLeave":"popoverEnter";return this._nav&&this._nav.config.get(e)},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t)},e}(or),$f=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kf=function(t){function e(e,n,i,o,r,s){void 0===o&&(o={});var a=t.call(this,e,n,r,s)||this;return a.data=i,a.opts=o,a.isOverlay=!0,a}return $f(e,t),e.prototype.getImplementation=function(){return new Zf(this._app,this._component,this.data,this.opts,this._config)},e}(N_),Qf=function(){function t(t,e,n){this._app=t,this.config=e,this._deepLinker=n}return t.prototype.create=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),new Kf(this._app,t,e,n,this.config,this._deepLinker)},t}();Qf=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Jf=void 0!==Mr&&Mr)&&Jf||Object,"function"==typeof(tb=void 0!==er&&er)&&tb||Object,"function"==typeof(eb=void 0!==Jr&&Jr)&&eb||Object])],Qf);n(53);var Jf,tb,eb,nb=ib=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._cd=n,this._disabled=!1,this._btns=[],this._ids=-1,this._init=!1,this.ionChange=new Qo.r,this.id=++lb}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=b(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this._btns.find(function(t){return t.checked});t&&this._setActive(t)},t.prototype.writeValue=function(t){console.debug("radio group, writeValue",t),this.value=t,this._init&&(this._update(),this.onTouched(),this.ionChange.emit(t)),this._init=!0},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(n){console.debug("radio group, onChange",n),t(n),e.value=n,e._update(),e.onTouched(),e.ionChange.emit(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._update=function(){var t=this,e=!1;this._btns.forEach(function(n){n.checked=m(t.value,n.value)&&!e,n.checked&&(t._setActive(n),e=!0)})},t.prototype._setActive=function(t){this._renderer.setElementAttribute(this._elementRef.nativeElement,"aria-activedescendant",t.id)},t.prototype.add=function(t){var e=this;return this._btns.push(t),t.ionSelect.subscribe(function(t){e.onChange(t)}),this.id+"-"+ ++this._ids},t.prototype.remove=function(t){var e=this._btns.indexOf(t);e>-1&&(t.value===this.value&&(this.value=null),this._btns.splice(e,1))},Object.defineProperty(t.prototype,"_header",{set:function(t){t&&(t.id||(t.id="rg-hdr-"+this.id),this._renderer.setElementAttribute(this._elementRef.nativeElement,"aria-describedby",t.id))},enumerable:!0,configurable:!0}),t.prototype.onChange=function(t){console.debug("radio group, onChange w/out formControlName",t),this.value=t,this._update(),this.onTouched(),this.ionChange.emit(t),this._cd.detectChanges()},t.prototype.onTouched=function(){},t.prototype.setDisabledState=function(t){this.disabled=t},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],nb.prototype,"disabled",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ob=void 0!==Qo.r&&Qo.r)&&ob||Object)],nb.prototype,"ionChange",void 0),Object(Jo.__decorate)([Object(Qo.m)(Gd),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],nb.prototype,"_header",null),nb=ib=Object(Jo.__decorate)([Object(Qo.o)({selector:"[radio-group]",host:{role:"radiogroup"},providers:[{provide:xl.e,useExisting:ib,multi:!0}]}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(rb=void 0!==Qo.N&&Qo.N)&&rb||Object,"function"==typeof(sb=void 0!==Qo.p&&Qo.p)&&sb||Object,"function"==typeof(ab=void 0!==Qo.i&&Qo.i)&&ab||Object])],nb);var ib,ob,rb,sb,ab,lb=-1,cb=function(t){function e(e,n,i,o,r,s){var a=t.call(this,n,i,o,"radio")||this;return a._form=e,a._item=r,a._group=s,a._checked=!1,a._disabled=!1,a._value=null,a.ionSelect=new Qo.r,e.register(a),s&&(a.id="rb-"+s.add(a)),r&&(a.id="rb-"+r.registerInput("radio"),a._labelId="lbl-"+r.id,a._item.setElementClass("item-radio",!0)),a}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"color",{set:function(t){this._setColor(t),this._item&&this._item._updateColor(t,"item-radio")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return h(this._value)?this.id:this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=b(t),this._item&&this._item.setElementClass("item-radio-checked",this._checked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||null!=this._group&&this._group.disabled},set:function(t){this._disabled=b(t),this._item&&this._item.setElementClass("item-radio-disabled",this._disabled)},enumerable:!0,configurable:!0}),e.prototype.initFocus=function(){this._elementRef.nativeElement.querySelector("button").focus()},e.prototype._click=function(t){console.debug("radio, select",this.id),t.preventDefault(),t.stopPropagation(),this.checked=!0,this.ionSelect.emit(this.value)},e.prototype.ngOnInit=function(){this._group&&d(this._group.value)&&(this.checked=m(this._group.value,this.value)),this._group&&this._group.disabled&&(this.disabled=this._group.disabled)},e.prototype.ngOnDestroy=function(){this._form.deregister(this),this._group&&this._group.remove(this)},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],cb.prototype,"color",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ub=void 0!==Qo.r&&Qo.r)&&ub||Object)],cb.prototype,"ionSelect",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],cb.prototype,"value",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],cb.prototype,"checked",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],cb.prototype,"disabled",null),Object(Jo.__decorate)([Object(Qo.u)("click",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],cb.prototype,"_click",null),cb=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-radio",template:'<div class="radio-icon" [class.radio-checked]="_checked"> <div class="radio-inner"></div> </div> <button role="radio" type="button" ion-button="item-cover" [id]="id" [attr.aria-checked]="_checked" [attr.aria-labelledby]="_labelId" [attr.aria-disabled]="_disabled" class="item-cover"> </button>',host:{"[class.radio-disabled]":"_disabled"},encapsulation:Qo._0.None}),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__param)(5,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(pb=void 0!==El&&El)&&pb||Object,"function"==typeof(db=void 0!==er&&er)&&db||Object,"function"==typeof(hb=void 0!==Qo.p&&Qo.p)&&hb||Object,"function"==typeof(_b=void 0!==Qo.N&&Qo.N)&&_b||Object,"function"==typeof(fb=void 0!==Pc&&Pc)&&fb||Object,"function"==typeof(bb=void 0!==nb&&nb)&&bb||Object])],cb);var ub,pb,db,hb,_b,fb,bb,mb=gb=function(t){function e(e,n,i,o,r,s,a,l,c){var u=t.call(this,o,s,a,"range",0,e,i,null)||this;return u._haptic=n,u._plt=r,u._dom=l,u._cd=c,u._min=0,u._max=100,u._step=1,u._valA=0,u._valB=0,u._ratioA=0,u._ratioB=0,u._events=new ws(r),u}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(t){t=Math.round(t),isNaN(t)||(this._min=t,this._inputUpdated())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(t){t=Math.round(t),isNaN(t)||(this._max=t,this._inputUpdated())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},set:function(t){t=Math.round(t),!isNaN(t)&&t>0&&(this._step=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snaps",{get:function(){return this._snaps},set:function(t){this._snaps=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},set:function(t){this._pin=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debouncer.wait},set:function(t){this._debouncer.wait=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dualKnobs",{get:function(){return this._dual},set:function(t){this._dual=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this._dual?Math.min(this._ratioA,this._ratioB):this._ratioA},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ratioUpper",{get:function(){return this._dual?Math.max(this._ratioA,this._ratioB):null},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._initialize(),this._events.pointerEvents({element:this._slider.nativeElement,pointerDown:this._pointerDown.bind(this),pointerMove:this._pointerMove.bind(this),pointerUp:this._pointerUp.bind(this),zone:!0}),this._createTicks()},e.prototype._pointerDown=function(t){if(this._disabled)return!1;this._fireFocus(),t.preventDefault(),t.stopPropagation();var e=B(t),n=this._rect=this._plt.getElementBoundingClientRect(this._slider.nativeElement),o=i(0,(e.x-n.left)/n.width,1);return this._activeB=this._dual&&Math.abs(o-this._ratioA)>Math.abs(o-this._ratioB),this._update(e,n,!0),this._haptic.gestureSelectionStart(),!0},e.prototype._pointerMove=function(t){this._disabled||(t.preventDefault(),t.stopPropagation(),this._update(B(t),this._rect,!0)&&this._snaps&&this._haptic.gestureSelectionChanged())},e.prototype._pointerUp=function(t){this._disabled||(t.preventDefault(),t.stopPropagation(),this._update(B(t),this._rect,!1),this._haptic.gestureSelectionEnd(),this._fireBlur())},e.prototype._update=function(t,e,n){var o=i(0,(t.x-e.left)/e.width,1),r=this._ratioToValue(o);this._snaps&&(o=this._valueToRatio(r)),this._pressed=n;var s=!1;if(this._activeB?(this._pressedB=n,this._pressedA=!1,this._ratioB=o,s=r===this._valB,this._valB=r):(this._pressedA=n,this._pressedB=!1,this._ratioA=o,s=r===this._valA,this._valA=r),this._updateBar(),s)return!1;var a;return this._dual?(a={lower:Math.min(this._valA,this._valB),upper:Math.max(this._valA,this._valB)},console.debug("range, updateKnob: "+o+", lower: "+this.value.lower+", upper: "+this.value.upper)):(a=this._valA,console.debug("range, updateKnob: "+o+", value: "+this.value)),this.value=a,!0},e.prototype._updateBar=function(){var t=this._ratioA,e=this._ratioB;this._dual?(this._barL=100*Math.min(t,e)+"%",this._barR=100-100*Math.max(t,e)+"%"):(this._barL="",this._barR=100-100*t+"%"),this._updateTicks()},e.prototype._createTicks=function(){var t=this;this._snaps&&this._dom.write(function(){t._ticks=[];for(var e=t._min;e<=t._max;e+=t._step){var n=t._valueToRatio(e);t._ticks.push({ratio:n,left:100*n+"%"})}t._updateTicks()})},e.prototype._updateTicks=function(){var t=this._ticks,e=this.ratio;if(this._snaps&&t)if(this._dual){var n=this.ratioUpper;t.forEach(function(t){t.active=t.ratio>=e&&t.ratio<=n})}else t.forEach(function(t){t.active=t.ratio<=e})},e.prototype._keyChg=function(t,e){var n=this._step;e?(t?this._valB+=n:this._valB-=n,this._valB=i(this._min,this._valB,this._max),this._ratioB=this._valueToRatio(this._valB)):(t?this._valA+=n:this._valA-=n,this._valA=i(this._min,this._valA,this._max),this._ratioA=this._valueToRatio(this._valA)),this._updateBar()},e.prototype._ratioToValue=function(t){return t=Math.round((this._max-this._min)*t),t=Math.round(t/this._step)*this._step+this._min,i(this._min,t,this._max)},e.prototype._valueToRatio=function(t){return t=Math.round((t-this._min)/this._step)*this._step,t/=this._max-this._min,i(0,t,1)},e.prototype._inputNormalize=function(t){return this._dual?t:(t=parseFloat(t),isNaN(t)?void 0:t)},e.prototype._inputUpdated=function(){var t=this.value;this._dual?(this._valA=t.lower,this._valB=t.upper,this._ratioA=this._valueToRatio(t.lower),this._ratioB=this._valueToRatio(t.upper)):(this._valA=t,this._ratioA=this._valueToRatio(t)),this._updateBar(),this._cd.detectChanges()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._events.destroy()},e}(Il);Object(Jo.__decorate)([Object(Qo.X)("slider"),Object(Jo.__metadata)("design:type","function"==typeof(vb=void 0!==Qo.p&&Qo.p)&&vb||Object)],mb.prototype,"_slider",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],mb.prototype,"min",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],mb.prototype,"max",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],mb.prototype,"step",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],mb.prototype,"snaps",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],mb.prototype,"pin",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],mb.prototype,"debounce",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],mb.prototype,"dualKnobs",null),mb=gb=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-range",template:'<ng-content select="[range-left]"></ng-content><div class="range-slider" #slider><div class="range-tick" *ngFor="let t of _ticks" [style.left]="t.left" [class.range-tick-active]="t.active" role="presentation"></div><div class="range-bar" role="presentation"></div><div class="range-bar range-bar-active" [style.left]="_barL" [style.right]="_barR" #bar role="presentation"></div><div class="range-knob-handle" (ionIncrease)="_keyChg(true, false)" (ionDecrease)="_keyChg(false, false)" [ratio]="_ratioA" [val]="_valA" [pin]="_pin" [pressed]="_pressedA" [min]="_min" [max]="_max" [disabled]="_disabled" [labelId]="_labelId"></div><div class="range-knob-handle" (ionIncrease)="_keyChg(true, true)" (ionDecrease)="_keyChg(false, true)" [ratio]="_ratioB" [val]="_valB" [pin]="_pin" [pressed]="_pressedB" [min]="_min" [max]="_max" [disabled]="_disabled" [labelId]="_labelId" *ngIf="_dual"></div></div><ng-content select="[range-right]"></ng-content>',host:{"[class.range-disabled]":"_disabled","[class.range-pressed]":"_pressed","[class.range-has-pin]":"_pin"},providers:[{provide:xl.e,useExisting:gb,multi:!0}],encapsulation:Qo._0.None}),Object(Jo.__param)(2,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(yb=void 0!==El&&El)&&yb||Object,"function"==typeof(Ob=void 0!==eu&&eu)&&Ob||Object,"function"==typeof(jb=void 0!==Pc&&Pc)&&jb||Object,"function"==typeof(wb=void 0!==er&&er)&&wb||Object,"function"==typeof(Sb=void 0!==yr&&yr)&&Sb||Object,"function"==typeof(Cb=void 0!==Qo.p&&Qo.p)&&Cb||Object,"function"==typeof(kb=void 0!==Qo.N&&Qo.N)&&kb||Object,"function"==typeof(Tb=void 0!==es&&es)&&Tb||Object,"function"==typeof(xb=void 0!==Qo.i&&Qo.i)&&xb||Object])],mb);var gb,vb,yb,Ob,jb,wb,Sb,Cb,kb,Tb,xb,Eb=function(){function t(){this.ionIncrease=new Qo.r,this.ionDecrease=new Qo.r}return Object.defineProperty(t.prototype,"ratio",{set:function(t){this._x=100*t+"%"},enumerable:!0,configurable:!0}),t.prototype._keyup=function(t){var e=t.keyCode;37===e||40===e?(console.debug("range-knob, decrease, keyCode: "+e),this.ionDecrease.emit(),t.preventDefault(),t.stopPropagation()):39!==e&&38!==e||(console.debug("range-knob, increase, keyCode: "+e),this.ionIncrease.emit(),t.preventDefault(),t.stopPropagation())},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],Eb.prototype,"ratio",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean)],Eb.prototype,"pressed",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean)],Eb.prototype,"pin",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Eb.prototype,"min",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Eb.prototype,"max",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Eb.prototype,"val",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean)],Eb.prototype,"disabled",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Eb.prototype,"labelId",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",Object)],Eb.prototype,"ionIncrease",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type",Object)],Eb.prototype,"ionDecrease",void 0),Object(Jo.__decorate)([Object(Qo.u)("keydown",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],Eb.prototype,"_keyup",null),Eb=Object(Jo.__decorate)([Object(Qo.k)({selector:".range-knob-handle",template:'<div class="range-pin" *ngIf="pin" role="presentation">{{val}}</div><div class="range-knob" role="presentation"></div>',host:{"[class.range-knob-pressed]":"pressed","[class.range-knob-min]":"val===min||val===undefined","[class.range-knob-max]":"val===max","[style.left]":"_x","[attr.aria-valuenow]":"val","[attr.aria-valuemin]":"min","[attr.aria-valuemax]":"max","[attr.aria-disabled]":"disabled","[attr.aria-labelledby]":"labelId","[tabindex]":"disabled?-1:0",role:"slider"}})],Eb);var Pb=function(){function t(t,e,n,i){this._plt=t,this._content=e,this._zone=n,this._appliedStyles=!1,this._lastCheck=0,this._isEnabled=!0,this._top="",this.state=Mb,this.startY=null,this.currentY=null,this.deltaY=null,this.progress=0,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration=280,this.snapbackDuration=280,this.ionRefresh=new Qo.r,this.ionPull=new Qo.r,this.ionStart=new Qo.r,this._events=new ws(t),e._hasRefresher=!0,this._gesture=i.createGesture({name:ss,priority:cs})}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){this._isEnabled=b(t),this._setListeners(this._isEnabled)},enumerable:!0,configurable:!0}),t.prototype._onStart=function(t){if(t.touches&&t.touches.length>1)return!1;if(this.state!==Mb)return!1;if(this._content.getContentDimensions().scrollTop>0)return!1;if(!this._gesture.canStart())return!1;var e=B(t);if(console.debug("Pull-to-refresh, onStart",t.type,"y:",e.y),this._content.contentTop>0){var n=this._content.contentTop+"px";this._top!==n&&(this._top=n)}return this.startY=this.currentY=e.y,this.progress=0,this.state=Mb,!0},t.prototype._onMove=function(t){var e=this;if(t.touches&&t.touches.length>1)return 1;if(!this._gesture.canStart())return 0;if(null===this.startY||this.state===Hb||this.state===Vb||this.state===Wb)return 2;var n=Date.now();if(this._lastCheck+16>n)return 3;this._lastCheck=n;var i=B(t);if(this.currentY=i.y,this.deltaY=i.y-this.startY,this.deltaY<=0)return this.progress=0,this.state!==Mb&&this._zone.run(function(){e.state=Mb}),this._appliedStyles?(this._setCss(0,"",!1,""),5):6;if(this.state===Mb){if(this._content.getContentDimensions().scrollTop>0)return this.progress=0,this.startY=null,7;this.state=Rb}if(t.preventDefault(),this._setCss(this.deltaY,"0ms",!0,""),!this.deltaY)return this.progress=0,8;this._zone.run(function(){e._onMoveInZone()})},t.prototype._onMoveInZone=function(){return this.progress=this.deltaY/this.pullMin,this._didStart||(this._didStart=!0,this.ionStart.emit(this)),this.ionPull.emit(this),this.deltaY<this.pullMin?(this.state=Rb,2):this.deltaY>this.pullMax?(this._beginRefresh(),3):(this.state=Fb,4)},t.prototype._onEnd=function(){var t=this;this.state===Fb?this._zone.run(function(){t._beginRefresh()}):this.state===Rb&&this._zone.run(function(){t.cancel()}),this.startY=null},t.prototype._beginRefresh=function(){this.state=Hb,this._setCss(this.pullMin,this.snapbackDuration+"ms",!0,""),this.ionRefresh.emit(this)},t.prototype.complete=function(){this._close(Wb,"120ms")},t.prototype.cancel=function(){this._close(Vb,"")},t.prototype._close=function(t,e){function n(t){t&&clearTimeout(i),this.state=Mb,this.progress=0,this._didStart=this.startY=this.currentY=this.deltaY=null,this._setCss(0,"0ms",!1,"")}var i;i=setTimeout(n.bind(this),600),this._content.onScrollElementTransitionEnd(n.bind(this)),this.state=t,this._setCss(0,"",!0,e),this._pointerEvents&&this._pointerEvents.stop()},t.prototype._setCss=function(t,e,n,i){this._appliedStyles=t>0;var o=this._content,r=this._plt.Css;o.setScrollElementStyle(r.transform,t>0?"translateY("+t+"px) translateZ(0px)":"translateZ(0px)"),o.setScrollElementStyle(r.transitionDuration,e),o.setScrollElementStyle(r.transitionDelay,i),o.setScrollElementStyle("overflow",n?"hidden":"")},t.prototype._setListeners=function(t){this._events.unlistenAll(),this._pointerEvents=null,t&&(this._pointerEvents=this._events.pointerEvents({element:this._content.getScrollElement(),pointerDown:this._onStart.bind(this),pointerMove:this._onMove.bind(this),pointerUp:this._onEnd.bind(this),zone:!1}))},t.prototype.ngOnInit=function(){this._setListeners(this._isEnabled)},t.prototype.ngOnDestroy=function(){this._setListeners(!1),this._events.destroy(),this._gesture.destroy()},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Pb.prototype,"pullMin",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Pb.prototype,"pullMax",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Pb.prototype,"closeDuration",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],Pb.prototype,"snapbackDuration",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Pb.prototype,"enabled",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Ib=void 0!==Qo.r&&Qo.r)&&Ib||Object)],Pb.prototype,"ionRefresh",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Db=void 0!==Qo.r&&Qo.r)&&Db||Object)],Pb.prototype,"ionPull",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Ab=void 0!==Qo.r&&Qo.r)&&Ab||Object)],Pb.prototype,"ionStart",void 0),Pb=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-refresher",host:{"[class.refresher-active]":'state !== "inactive"',"[style.top]":"_top"}}),Object(Jo.__param)(1,Object(Qo.s)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Nb=void 0!==yr&&yr)&&Nb||Object,"function"==typeof(Bb=void 0!==oc&&oc)&&Bb||Object,"function"==typeof(Lb=void 0!==Qo.G&&Qo.G)&&Lb||Object,"function"==typeof(zb=void 0!==_s&&_s)&&zb||Object])],Pb);var Ib,Db,Ab,Nb,Bb,Lb,zb,Mb="inactive",Rb="pulling",Fb="ready",Hb="refreshing",Vb="cancelling",Wb="completing",qb=function(){function t(t,e){this.r=t,this._config=e}return t.prototype.ngOnInit=function(){this.pullingIcon||(this.pullingIcon=this._config.get("ionPullIcon","arrow-down")),this.refreshingSpinner||(this.refreshingSpinner=this._config.get("ionRefreshingSpinner",this._config.get("spinner","ios")))},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],qb.prototype,"pullingIcon",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],qb.prototype,"pullingText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],qb.prototype,"refreshingSpinner",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],qb.prototype,"refreshingText",void 0),qb=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-refresher-content",template:'<div class="refresher-pulling"><div class="refresher-pulling-icon" *ngIf="pullingIcon"><ion-icon [name]="pullingIcon"></ion-icon></div><div class="refresher-pulling-text" [innerHTML]="pullingText" *ngIf="pullingText"></div></div><div class="refresher-refreshing"><div class="refresher-refreshing-icon"><ion-spinner [name]="refreshingSpinner"></ion-spinner></div><div class="refresher-refreshing-text" [innerHTML]="refreshingText" *ngIf="refreshingText"></div></div>',host:{"[attr.state]":"r.state"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Yb=void 0!==Pb&&Pb)&&Yb||Object,"function"==typeof(Gb=void 0!==er&&er)&&Gb||Object])],qb);var Yb,Gb,Xb=function(){function t(){this._scrollX=!1,this._scrollY=!1,this._zoom=!1,this._maxZoom=1,this.maxScale=3,this.zoomDuration=250}return Object.defineProperty(t.prototype,"scrollX",{get:function(){return this._scrollX},set:function(t){this._scrollX=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollY",{get:function(){return this._scrollY},set:function(t){this._scrollY=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{get:function(){return this._zoom},set:function(t){this._zoom=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoom",{get:function(){return this._maxZoom},set:function(t){this._maxZoom=t},enumerable:!0,configurable:!0}),t.prototype.addScrollEventListener=function(t){w(this._scrollContent,"scroll element is missing");var e=this._scrollContent.nativeElement;return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Xb.prototype,"scrollX",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Xb.prototype,"scrollY",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Xb.prototype,"zoom",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Xb.prototype,"maxZoom",null),Object(Jo.__decorate)([Object(Qo.X)("scrollContent",{read:Qo.p}),Object(Jo.__metadata)("design:type","function"==typeof(Ub=void 0!==Qo.p&&Qo.p)&&Ub||Object)],Xb.prototype,"_scrollContent",void 0),Xb=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-scroll",template:'<div class="scroll-content" #scrollContent><div class="scroll-zoom-wrapper"><ng-content></ng-content></div></div>',host:{"[class.scroll-x]":"scrollX","[class.scroll-y]":"scrollY"},changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",[])],Xb);var Ub,Zb=function(t){function e(e,n,i,o,r){var s=t.call(this,e,i,o,"searchbar","",null,null,r)||this;return s._plt=n,s._shouldBlur=!0,s._shouldAlignLeft=!0,s._isCancelVisible=!1,s._spellcheck=!1,s._autocomplete="off",s._autocorrect="off",s._isActive=!1,s._showCancelButton=!1,s._animated=!1,s._inputDebouncer=new Pl(0),s.cancelButtonText="Cancel",s.placeholder="Search",s.type="search",s.ionInput=new Qo.r,s.ionCancel=new Qo.r,s.ionClear=new Qo.r,s.debounce=250,s}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"showCancelButton",{get:function(){return this._showCancelButton},set:function(t){this._showCancelButton=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debouncer.wait},set:function(t){this._debouncer.wait=t,this._inputDebouncer.wait=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autocomplete",{set:function(t){this._autocomplete=""===t||"on"===t?"on":this._config.get("autocomplete","off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autocorrect",{set:function(t){this._autocorrect=""===t||"on"===t?"on":this._config.get("autocorrect","off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spellcheck",{set:function(t){this._spellcheck=""===t||"true"===t||!0===t||this._config.getBoolean("spellcheck",!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animated",{get:function(){return this._animated},set:function(t){this._animated=b(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this.showCancelButton;"string"==typeof t&&(this.showCancelButton=""===t||"true"===t)},e.prototype._inputUpdated=function(){var t=this._searchbarInput.nativeElement,e=this._value;t.value!==e&&(t.value=e),this.positionElements()},e.prototype.positionElements=function(){var t=this._animated,e=this._shouldAlignLeft,n=!t||this._value&&""!==this._value.toString().trim()||!0===this._isFocus;this._shouldAlignLeft=n,"ios"===this._mode&&(e!==n&&this.positionPlaceholder(),t&&this.positionCancelButton())},e.prototype.positionPlaceholder=function(){var t=this._searchbarInput.nativeElement,e=this._searchbarIcon.nativeElement;if(this._shouldAlignLeft)t.removeAttribute("style"),e.removeAttribute("style");else{var n=this._plt.doc(),i=n.createElement("span");i.innerHTML=this.placeholder,n.body.appendChild(i);var o=i.offsetWidth;n.body.removeChild(i);var r="calc(50% - "+o/2+"px)";this._plt.isRTL?t.style.paddingRight=r:t.style.paddingLeft=r;var s="calc(50% - "+(o/2+30)+"px)";this._plt.isRTL?e.style.marginRight=s:e.style.marginLeft=s}},e.prototype.positionCancelButton=function(){var t=this._isFocus;if(t!==this._isCancelVisible){var e=this._cancelButton.nativeElement,n=e.style;if(this._isCancelVisible=t,t)this._plt.isRTL?n.marginLeft="0":n.marginRight="0";else{var i=e.offsetWidth;i>0&&(this._plt.isRTL?n.marginLeft=-i+"px":n.marginRight=-i+"px")}}},e.prototype.inputChanged=function(t){var e=this;this.value=t.target.value,this._inputDebouncer.debounce(function(){e.ionInput.emit(t)})},e.prototype.inputFocused=function(){this._isActive=!0,this._fireFocus(),this.positionElements()},e.prototype.inputBlurred=function(){if(!1===this._shouldBlur)return this._searchbarInput.nativeElement.focus(),void(this._shouldBlur=!0);this._fireBlur(),this.positionElements()},e.prototype.clearInput=function(t){var e=this;this.ionClear.emit(t),setTimeout(function(){var n=e._value;d(n)&&""!==n&&(e.value="",e.ionInput.emit(t))},64),this._shouldBlur=!1},e.prototype.cancelSearchbar=function(t){this.ionCancel.emit(t),this.clearInput(t),this._shouldBlur=!0,this._isActive=!1},e.prototype.setFocus=function(){this._renderer.invokeElementMethod(this._searchbarInput.nativeElement,"focus")},e}(Il);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Zb.prototype,"cancelButtonText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Zb.prototype,"showCancelButton",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],Zb.prototype,"debounce",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Zb.prototype,"placeholder",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Zb.prototype,"autocomplete",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Zb.prototype,"autocorrect",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Zb.prototype,"spellcheck",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Zb.prototype,"type",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Zb.prototype,"animated",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof($b=void 0!==Qo.r&&Qo.r)&&$b||Object)],Zb.prototype,"ionInput",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Kb=void 0!==Qo.r&&Qo.r)&&Kb||Object)],Zb.prototype,"ionCancel",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Qb=void 0!==Qo.r&&Qo.r)&&Qb||Object)],Zb.prototype,"ionClear",void 0),Object(Jo.__decorate)([Object(Qo.X)("searchbarInput"),Object(Jo.__metadata)("design:type","function"==typeof(Jb=void 0!==Qo.p&&Qo.p)&&Jb||Object)],Zb.prototype,"_searchbarInput",void 0),Object(Jo.__decorate)([Object(Qo.X)("searchbarIcon"),Object(Jo.__metadata)("design:type","function"==typeof(tm=void 0!==Qo.p&&Qo.p)&&tm||Object)],Zb.prototype,"_searchbarIcon",void 0),Object(Jo.__decorate)([Object(Qo.X)("cancelButton",{read:Qo.p}),Object(Jo.__metadata)("design:type","function"==typeof(em=void 0!==Qo.p&&Qo.p)&&em||Object)],Zb.prototype,"_cancelButton",void 0),Zb=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-searchbar",template:'<div class="searchbar-input-container"><button ion-button mode="md" (click)="cancelSearchbar($event)" (mousedown)="cancelSearchbar($event)" clear color="dark" class="searchbar-md-cancel" type="button"><ion-icon name="md-arrow-back"></ion-icon></button><div #searchbarIcon class="searchbar-search-icon"></div><input #searchbarInput class="searchbar-input" (input)="inputChanged($event)" (blur)="inputBlurred()" (focus)="inputFocused()" dir="auto" [attr.placeholder]="placeholder" [attr.type]="type" [attr.autocomplete]="_autocomplete" [attr.autocorrect]="_autocorrect" [attr.spellcheck]="_spellcheck"><button ion-button clear class="searchbar-clear-icon" [mode]="_mode" (click)="clearInput($event)" (mousedown)="clearInput($event)" type="button"></button></div><button ion-button #cancelButton mode="ios" [tabindex]="_isActive ? 1 : -1" clear (click)="cancelSearchbar($event)" (mousedown)="cancelSearchbar($event)" class="searchbar-ios-cancel" type="button">{{cancelButtonText}}</button>',host:{"[class.searchbar-animated]":"_animated","[class.searchbar-has-value]":"_value","[class.searchbar-active]":"_isActive","[class.searchbar-show-cancel]":"_showCancelButton","[class.searchbar-left-aligned]":"_shouldAlignLeft","[class.searchbar-has-focus]":"_isFocus"},encapsulation:Qo._0.None}),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(nm=void 0!==er&&er)&&nm||Object,"function"==typeof(im=void 0!==yr&&yr)&&im||Object,"function"==typeof(om=void 0!==Qo.p&&Qo.p)&&om||Object,"function"==typeof(rm=void 0!==Qo.N&&Qo.N)&&rm||Object,"function"==typeof(sm=void 0!==xl.f&&xl.f)&&sm||Object])],Zb);var $b,Kb,Qb,Jb,tm,em,nm,im,om,rm,sm,am=function(){function t(){this.isActive=!1,this._disabled=!1,this.ionSelect=new Qo.r}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=b(t)},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){console.debug("SegmentButton, select",this.value),this.ionSelect.emit(this)},t.prototype.ngOnInit=function(){d(this.value)||console.warn('<ion-segment-button> requires a "value" attribute')},t}();Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],am.prototype,"value",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(lm=void 0!==Qo.r&&Qo.r)&&lm||Object)],am.prototype,"ionSelect",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],am.prototype,"disabled",null),Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],am.prototype,"onClick",null),am=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-segment-button",template:'<ng-content></ng-content><div class="button-effect"></div>',host:{tappable:"",class:"segment-button",role:"button","[class.segment-button-disabled]":"_disabled","[class.segment-activated]":"isActive","[attr.aria-pressed]":"isActive"},encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",[])],am);var lm,cm=function(t){function e(e,n,i,o){return t.call(this,e,n,i,"segment",null,null,null,o)||this}return Object(Jo.__extends)(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._initialize(),this._buttons.forEach(function(e){e.ionSelect.subscribe(function(e){t.value=e.value,t._fireTouched()})})},e.prototype._inputUpdated=function(){if(this._buttons)for(var t=this._buttons.toArray(),e=this.value,n=0,i=t;n<i.length;n++){var o=i[n];o.isActive=o.value===e}else w(!1,"buttons are undefined")},e}(Il);Object(Jo.__decorate)([Object(Qo.n)(am),Object(Jo.__metadata)("design:type","function"==typeof(um=void 0!==Qo.L&&Qo.L)&&um||Object)],cm.prototype,"_buttons",void 0),cm=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-segment",host:{"[class.segment-disabled]":"_disabled"}}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(pm=void 0!==er&&er)&&pm||Object,"function"==typeof(dm=void 0!==Qo.p&&Qo.p)&&dm||Object,"function"==typeof(hm=void 0!==Qo.N&&Qo.N)&&hm||Object,"function"==typeof(_m=void 0!==xl.f&&xl.f)&&_m||Object])],cm);var um,pm,dm,hm,_m,fm=function(){function t(t,e){this.navParams=t,this.viewController=e}return Object.defineProperty(t.prototype,"value",{get:function(){var t=this.options.find(function(t){return t.checked});return t?t.value:void 0},set:function(t){var e=this.options.find(function(e){return e.value===t});e&&e.handler&&e.handler(),this.viewController.dismiss(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.options=this.navParams.data.options},t}();fm=Object(Jo.__decorate)([Object(Qo.k)({template:'\n    <ion-list radio-group [(ngModel)]="value">\n      <ion-item *ngFor="let option of options">\n        <ion-label>{{option.text}}</ion-label>\n        <ion-radio [checked]="option.checked" [value]="option.value" [disabled]="option.disabled"></ion-radio>\n      </ion-item>\n    </ion-list>\n  '}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(bm=void 0!==ir&&ir)&&bm||Object,"function"==typeof(mm=void 0!==or&&or)&&mm||Object])],fm);var bm,mm,gm=vm=function(t){function e(e,n,i,o,r,s,a){var l=t.call(this,i,o,r,"select",[],n,s,null)||this;return l._app=e,l.config=i,l.deepLinker=a,l._multi=!1,l._texts=[],l._text="",l._compareWith=m,l.cancelText="Cancel",l.okText="OK",l.selectOptions={},l.interface="",l.selectedText="",l.ionCancel=new Qo.r,l}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),e.prototype._click=function(t){t.preventDefault(),t.stopPropagation(),this.open(t)},e.prototype._keyup=function(){this.open()},e.prototype.getValues=function(){var t=Array.isArray(this._value)?this._value:[this._value];return w(this._multi||t.length<=1,"single only can have one value"),t},e.prototype.open=function(t){var e=this;if(!this.isFocus()&&!this._disabled){console.debug("select, open alert");var n=o(this.selectOptions);n.buttons=[{text:this.cancelText,role:"cancel",handler:function(){e.ionCancel.emit(e)}}],!n.title&&this._item&&(n.title=this._item.getLabelText());var i=this._options.toArray();"action-sheet"!==this.interface&&"popover"!==this.interface||!this._multi||(console.warn('Interface cannot be "'+this.interface+'" with a multi-value select. Using the "alert" interface.'),this.interface="alert"),"popover"!==this.interface||t||(console.warn('Interface cannot be "popover" without UIEvent.'),this.interface="alert");var r;if("action-sheet"===this.interface){n.buttons=n.buttons.concat(i.map(function(t){return{role:t.selected?"selected":"",text:t.text,handler:function(){e.value=t.value,t.ionSelect.emit(t.value)}}}));var s="select-action-sheet";s+=n.cssClass?" "+n.cssClass:"",n.cssClass=s,r=new Ea(this._app,n,this.config)}else if("popover"===this.interface){var a=i.map(function(t){return{text:t.text,checked:t.selected,disabled:t.disabled,value:t.value,handler:function(){e.value=t.value,t.ionSelect.emit(t.value)}}}),l="select-popover";l+=n.cssClass?" "+n.cssClass:"",r=new Kf(this._app,fm,{options:a},{cssClass:l},this.config,this.deepLinker),Object.defineProperty(t,"target",{value:t.currentTarget}),n.ev=t}else{this.interface="alert",n.inputs=this._options.map(function(t){return{type:e._multi?"checkbox":"radio",label:t.text,value:t.value,checked:t.selected,disabled:t.disabled,handler:function(e){e.checked&&t.ionSelect.emit(t.value)}}});var c="select-alert";r=new $a(this._app,n,this.config),c+=this._multi?" multiple-select-alert":" single-select-alert",c+=n.cssClass?" "+n.cssClass:"",r.setCssClass(c),r.addButton({text:this.okText,handler:function(t){return e.value=t}})}r.present(n),this._fireFocus(),r.onDidDismiss(function(){e._fireBlur(),e._overlay=void 0}),this._overlay=r}},e.prototype.close=function(){if(this._overlay&&this.isFocus())return this._overlay.dismiss()},Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multi},set:function(t){this._multi=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._multi?this._texts:this._texts.join()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{set:function(t){this._options=t,0===this.getValues().length?this.writeValue(t.filter(function(t){return t.selected}).map(function(t){return t.value})):this._updateText()},enumerable:!0,configurable:!0}),e.prototype._inputShouldChange=function(t){return!r(this._value,t)},e.prototype._inputChangeEvent=function(){return this.value},e.prototype._updateText=function(){var t=this;this._texts.length=0,this._options&&this._options.forEach(function(e){e.selected=t.getValues().some(function(n){return t._compareWith(n,e.value)}),e.selected&&t._texts.push(e.text)}),this._text=this._texts.join(", ")},e.prototype._inputUpdated=function(){this._updateText(),t.prototype._inputUpdated.call(this)},e}(Il);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],gm.prototype,"cancelText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],gm.prototype,"okText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],gm.prototype,"placeholder",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],gm.prototype,"selectOptions",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],gm.prototype,"interface",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],gm.prototype,"selectedText",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Function])],gm.prototype,"compareWith",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ym=void 0!==Qo.r&&Qo.r)&&ym||Object)],gm.prototype,"ionCancel",void 0),Object(Jo.__decorate)([Object(Qo.u)("click",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],gm.prototype,"_click",null),Object(Jo.__decorate)([Object(Qo.u)("keyup.space"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",void 0)],gm.prototype,"_keyup",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],gm.prototype,"multiple",null),Object(Jo.__decorate)([Object(Qo.n)(kf),Object(Jo.__metadata)("design:type","function"==typeof(Om=void 0!==Qo.L&&Qo.L)&&Om||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(jm=void 0!==Qo.L&&Qo.L)&&jm||Object])],gm.prototype,"options",null),gm=vm=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-select",template:'<div *ngIf="!_text" class="select-placeholder select-text">{{placeholder}}</div><div *ngIf="_text" class="select-text">{{selectedText || _text}}</div><div class="select-icon"><div class="select-icon-inner"></div></div><button aria-haspopup="true" type="button" [id]="id" ion-button="item-cover" [attr.aria-labelledby]="_labelId" [attr.aria-disabled]="_disabled" class="item-cover"></button>',host:{"[class.select-disabled]":"_disabled"},providers:[{provide:xl.e,useExisting:vm,multi:!0}],encapsulation:Qo._0.None}),Object(Jo.__param)(5,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(wm=void 0!==Mr&&Mr)&&wm||Object,"function"==typeof(Sm=void 0!==El&&El)&&Sm||Object,"function"==typeof(Cm=void 0!==er&&er)&&Cm||Object,"function"==typeof(km=void 0!==Qo.p&&Qo.p)&&km||Object,"function"==typeof(Tm=void 0!==Qo.N&&Qo.N)&&Tm||Object,"function"==typeof(xm=void 0!==Pc&&Pc)&&xm||Object,"function"==typeof(Em=void 0!==Jr&&Jr)&&Em||Object])],gm);var vm,ym,Om,jm,wm,Sm,Cm,km,Tm,xm,Em,Pm=function(){function t(t,e,n){if(this._plt=e,this.zone=n,this.isMatch=!1,t){this.conditions=t.replace(/\s/g,"").split(",");for(var i=0;i<this.conditions.length;i++)if(this.conditions[i]&&e.is(this.conditions[i]))return void(this.isMatch=!0);this.orientation()&&(this.resizeObs=e.resize.subscribe(this.orientation.bind(this)))}}return t.prototype.orientation=function(){for(var t=0;t<this.conditions.length;t++){if("portrait"===this.conditions[t])return this.isMatch=this._plt.isPortrait(),!0;if("landscape"===this.conditions[t])return this.isMatch=this._plt.isLandscape(),!0}return!1},t.prototype.ngOnDestroy=function(){this.resizeObs&&this.resizeObs.unsubscribe(),this.resizeObs=null},t}(),Im=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(Jo.__extends)(e,t),e}(Pm);Im=Object(Jo.__decorate)([Object(Qo.o)({selector:"[showWhen]",host:{"[class.hidden-show-when]":"!isMatch"}}),Object(Jo.__param)(0,Object(Qo.g)("showWhen")),Object(Jo.__metadata)("design:paramtypes",[String,"function"==typeof(Dm=void 0!==yr&&yr)&&Dm||Object,"function"==typeof(Am=void 0!==Qo.G&&Qo.G)&&Am||Object])],Im);var Dm,Am,Nm=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return Object(Jo.__extends)(e,t),e}(Pm);Nm=Object(Jo.__decorate)([Object(Qo.o)({selector:"[hideWhen]",host:{"[class.hidden-hide-when]":"isMatch"}}),Object(Jo.__param)(0,Object(Qo.g)("hideWhen")),Object(Jo.__metadata)("design:paramtypes",[String,"function"==typeof(Bm=void 0!==yr&&yr)&&Bm||Object,"function"==typeof(Lm=void 0!==Qo.G&&Qo.G)&&Lm||Object])],Nm);var Bm,Lm,zm,Mm,Rm,Fm,Hm,Vm,Wm,qm,Ym,Gm,Xm,Um,Zm,$m=["INPUT","SELECT","TEXTAREA","BUTTON","VIDEO"],Km={noSwiping:"swiper-no-swiping",containerModifier:"swiper-container-",slide:"swiper-slide",slideActive:"swiper-slide-active",slideDuplicateActive:"swiper-slide-duplicate-active",slideVisible:"swiper-slide-visible",slideDuplicate:"swiper-slide-duplicate",slideNext:"swiper-slide-next",slideDuplicateNext:"swiper-slide-duplicate-next",slidePrev:"swiper-slide-prev",slideDuplicatePrev:"swiper-slide-duplicate-prev",wrapper:"swiper-wrapper",bullet:"swiper-pagination-bullet",bulletActive:"swiper-pagination-bullet-active",buttonDisabled:"swiper-button-disabled",paginationCurrent:"swiper-pagination-current",paginationTotal:"swiper-pagination-total",paginationHidden:"swiper-pagination-hidden",paginationProgressbar:"swiper-pagination-progressbar",paginationClickable:"swiper-pagination-clickable",paginationModifier:"swiper-pagination-",lazyLoading:"swiper-lazy",lazyStatusLoading:"swiper-lazy-loading",lazyStatusLoaded:"swiper-lazy-loaded",lazyPreloader:"swiper-lazy-preloader",notification:"swiper-notification",preloader:"preloader",zoomContainer:"swiper-zoom-container"},Qm={LinearSpline:function(t,e,n,i){this.x=n,this.y=i,this.lastIndex=n.length-1;var o,r;this.interpolate=function(t){return t?(r=s(this.x,t),o=r-1,(t-this.x[o])*(this.y[r]-this.y[o])/(this.x[r]-this.x[o])+this.y[o]):0};var s=function(){var t,e,n;return function(i,o){for(e=-1,t=i.length;t-e>1;)i[n=t+e>>1]<=o?e=n:t=n;return t}}()},getInterpolateFunction:function(t,e,n){t._spline||(t._spline=t.loop?new Qm.LinearSpline(t,e,t._slidesGrid,n._slidesGrid):new Qm.LinearSpline(t,e,t._snapGrid,n._snapGrid))},setTranslate:function(t,e,n,i,o){function r(i){n=i._rtl&&ne(i)?-t._translate:t._translate,"slide"===t.controlBy&&(Qm.getInterpolateFunction(t,e,i),a=-t._spline.interpolate(-n)),a&&"container"!==t.controlBy||(s=(re(i)-oe(i))/(re(t)-oe(t)),a=(n-oe(t))*s+oe(i)),t.controlInverse&&(a=re(i)-a),ce(i,a),o(i,e,a,!1,t),be(i)}var s,a,l=t.control;if(Array.isArray(l))for(var c=0;c<l.length;c++)l[c]!==i&&r(l[c]);else i!==l&&r(l)},setTransition:function(t,e,n,i,o){function r(i){o(i,e,n,t),0!==n&&(tn(i),e.transitionEnd(i._wrapper,function(){a&&(i.loop&&"slide"===t.controlBy&&Qe(i,e),en(i,e))}))}var s,a=t.control;if(Array.isArray(a))for(s=0;s<a.length;s++)a[s]!==i&&r(a[s]);else i!==a&&r(a)}},Jm={fade:{setTranslate:function(t){for(var e=0;e<t._slides.length;e++){var n=t._slides[e],i=-n.swiperSlideOffset;t.virtualTranslate||(i-=t._translate);var o=0;ne(t)||(o=i,i=0);var r=t.fade.crossFade?Math.max(1-Math.abs(n.progress),0):1+Math.min(Math.max(n.progress,-1),0);n.style.opacity=r,Kt(n,"translate3d("+i+"px, "+o+"px, 0px)")}},setTransition:function(t,e,n){for(var i=t._slides,o=0;o<i.length;o++)Qt(i[o],n);if(t.virtualTranslate&&0!==n)for(var r=!1,s=0;s<i.length;s++)e.transitionEnd(i[s],function(){!r&&t&&(r=!0,t._animating=!1,Jt(e,t._wrapper))})}},flip:{setTranslate:function(t,e){for(var n=0;n<t._slides.length;n++){var i=t._slides[n],o=i.progress;t.flip.limitRotation&&(o=Math.max(Math.min(i.progress,1),-1));var r=-180*o,s=0,a=-i.swiperSlideOffset,l=0;if(ne(t)?t._rtl&&(r=-r):(l=a,a=0,s=-r,r=0),i.style.zIndex=-Math.abs(Math.round(o))+t._slides.length,t.flip.slideShadows){var c=i.querySelector(ne(t)?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),u=i.querySelector(ne(t)?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");c||((c=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"left":"top"),i.appendChild(c)),u||((u=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"right":"bottom"),i.appendChild(u)),c&&(c.style.opacity=Math.max(-o,0)),u&&(u.style.opacity=Math.max(o,0))}Kt(i,"translate3d("+a+"px, "+l+"px, 0px) rotateX("+s+"deg) rotateY("+r+"deg)")}},setTransition:function(t,e,n){for(var i=0;i<t._slides.length;i++){var o=t._slides[i];Qt(o,n),$t(o,".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left",function(t){Qt(t,n)})}if(t.virtualTranslate&&0!==n){var r=!1;e.transitionEnd(t._slides[t._activeIndex],function(n){!r&&t&&n.target.classList.contains(Km.slideActive)&&(r=!0,t._animating=!1,Jt(e,t._wrapper))})}}},cube:{setTranslate:function(t,e){var n,i=0;t.cube.shadow&&(ne(t)?((n=t._wrapper.querySelector(".swiper-cube-shadow"))||((n=e.doc().createElement("div")).className="swiper-cube-shadow",t._wrapper.appendChild(n)),n.style.height=t.renderedWidth+"px"):(n=t.container.querySelector(".swiper-cube-shadow"))||((n=e.doc().createElement("div")).className="swiper-cube-shadow",t._wrapper.appendChild(n)));for(var o=0;o<t._slides.length;o++){var r=t._slides[o],s=90*o,a=Math.floor(s/360);t._rtl&&(s=-s,a=Math.floor(-s/360));var l=Math.max(Math.min(r.progress,1),-1),c=0,u=0,p=0;o%4==0?(c=4*-a*t._renderedSize,p=0):(o-1)%4==0?(c=0,p=4*-a*t._renderedSize):(o-2)%4==0?(c=t._renderedSize+4*a*t._renderedSize,p=t._renderedSize):(o-3)%4==0&&(c=-t._renderedSize,p=3*t._renderedSize+4*t._renderedSize*a),t._rtl&&(c=-c),ne(t)||(u=c,c=0);var d="rotateX("+(ne(t)?0:-s)+"deg) rotateY("+(ne(t)?s:0)+"deg) translate3d("+c+"px, "+u+"px, "+p+"px)";if(l<=1&&l>-1&&(i=90*o+90*l,t._rtl&&(i=90*-o-90*l)),Kt(r,d),t.cube.slideShadows){var h=r.querySelector(ne(t)?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),_=r.querySelector(ne(t)?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");h||((h=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"left":"top"),r.appendChild(h)),_||((_=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"right":"bottom"),r.appendChild(_)),h&&(h.style.opacity=Math.max(-l,0)),_&&(_.style.opacity=Math.max(l,0))}}if(t._wrapper.style.transformOrigin=t._wrapper.style.webkitTransformOrigin="50% 50% -"+t._renderedSize/2+"px",t.cube.shadow)if(ne(t))Kt(n,"translate3d(0px, "+(t.renderedWidth/2+t.cube.shadowOffset)+"px, "+-t.renderedWidth/2+"px) rotateX(90deg) rotateZ(0deg) scale("+t.cube.shadowScale+")");else{var f=Math.abs(i)-90*Math.floor(Math.abs(i)/90),b=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),m=t.cube.shadowScale,g=t.cube.shadowScale/b,v=t.cube.shadowOffset;Kt(n,"scale3d("+m+", 1, "+g+") translate3d(0px, "+(t.renderedHeight/2+v)+"px, "+-t.renderedHeight/2/g+"px) rotateX(-90deg)")}var y=Oe(e)||we(e)?-t._renderedSize/2:0;Kt(t._wrapper,"translate3d(0px,0,"+y+"px) rotateX("+(ne(t)?0:i)+"deg) rotateY("+(ne(t)?-i:0)+"deg)")},setTransition:function(t,e,n){for(var i=0;i<t._slides.length;i++){var o=t._slides[i];Qt(o,n),$t(o,".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left",function(t){Qt(t,n)})}t.cube.shadow&&!ne(t)&&$t(t.container,".swiper-cube-shadow",function(t){Qt(t,n)})}},coverflow:{setTranslate:function(t,e){for(var n=t._translate,i=ne(t)?t.renderedWidth/2-n:t.renderedHeight/2-n,o=ne(t)?t.coverflow.rotate:-t.coverflow.rotate,r=t.coverflow.depth,s=0,a=t._slides.length;s<a;s++){var l=t._slides[s],c=t._slidesSizesGrid[s],u=(i-l.swiperSlideOffset-c/2)/c*t.coverflow.modifier,p=ne(t)?o*u:0,d=ne(t)?0:o*u,h=-r*Math.abs(u),_=ne(t)?0:t.coverflow.stretch*u,f=ne(t)?t.coverflow.stretch*u:0;if(Math.abs(f)<.001&&(f=0),Math.abs(_)<.001&&(_=0),Math.abs(h)<.001&&(h=0),Math.abs(p)<.001&&(p=0),Math.abs(d)<.001&&(d=0),Kt(l,"translate3d("+f+"px,"+_+"px,"+h+"px)  rotateX("+d+"deg) rotateY("+p+"deg)"),l.style.zIndex=1-Math.abs(Math.round(u)),t.coverflow.slideShadows){var b=l.querySelector(ne(t)?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),m=l.querySelector(ne(t)?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");b||((b=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"left":"top"),l.appendChild(b)),m||((m=e.doc().createElement("div")).className="swiper-slide-shadow-"+(ne(t)?"right":"bottom"),l.appendChild(m)),b&&(b.style.opacity=u>0?u:0),m&&(m.style.opacity=-u>0?-u:0)}}},setTransition:function(t,e,n){for(var i=0;i<t._slides.length;i++){var o=t._slides[i];Qt(o,n),$t(o,".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left",function(t){Qt(t,n)})}}}},tg=Date.now(),eg=[],ng=ig=function(t){function e(e,n,i,o,r,s){var a=t.call(this,e,r,s,"slides")||this;if(a._plt=n,a._control=null,a._effectName="slide",a._direction="horizontal",a._initialSlide=0,a._isLoop=!1,a._pager=!1,a._paginationType="bullets",a.paginationBulletRender=null,a._isParallax=!1,a._speedMs=300,a._isZoom=!1,a.virtualTranslate=!1,a.roundLengths=!1,a._spaceBetween=0,a._slidesPerView=1,a._centeredSlides=!1,a.slidesPerColumn=1,a.slidesPerColumnFill="column",a.slidesPerGroup=1,a.slidesOffsetBefore=0,a.slidesOffsetAfter=0,a.autoplayDisableOnInteraction=!0,a.autoplayStopOnLast=!1,a.freeMode=!1,a.freeModeMomentum=!0,a.freeModeMomentumRatio=1,a.freeModeMomentumBounce=!0,a.freeModeMomentumBounceRatio=1,a.freeModeMomentumVelocityRatio=1,a.freeModeSticky=!1,a.freeModeMinimumVelocity=.02,a.autoHeight=!1,a.setWrapperSize=!1,a.zoomMax=3,a.zoomMin=1,a.zoomToggle=!0,a.touchRatio=1,a.touchAngle=45,a.simulateTouch=!0,a.shortSwipes=!0,a.longSwipes=!0,a.longSwipesRatio=.5,a.longSwipesMs=300,a.followFinger=!0,a.onlyExternal=!1,a.threshold=0,a.touchMoveStopPropagation=!0,a.touchReleaseOnEdges=!1,a.iOSEdgeSwipeDetection=!1,a.iOSEdgeSwipeThreshold=20,a.paginationClickable=!1,a.paginationHide=!1,a.resistance=!0,a.resistanceRatio=.85,a.watchSlidesProgress=!1,a.watchSlidesVisibility=!1,a.preventClicks=!0,a.preventClicksPropagation=!0,a.slideToClickedSlide=!1,a.loopAdditionalSlides=0,a.loopedSlides=null,a.swipeHandler=null,a.noSwiping=!0,a.runCallbacksOnInit=!0,a.controlBy="slide",a.controlInverse=!1,a.keyboardControl=!0,a.coverflow={rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},a.flip={slideShadows:!0,limitRotation:!0},a.cube={slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},a.fade={crossFade:!1},a.prevSlideMessage="Previous slide",a.nextSlideMessage="Next slide",a.firstSlideMessage="This is the first slide",a.lastSlideMessage="This is the last slide",a.ionSlideWillChange=new Qo.r,a.ionSlideDidChange=new Qo.r,a.ionSlideDrag=new Qo.r,a.ionSlideReachStart=new Qo.r,a.ionSlideReachEnd=new Qo.r,a.ionSlideAutoplay=new Qo.r,a.ionSlideAutoplayStart=new Qo.r,a.ionSlideAutoplayStop=new Qo.r,a.ionSlideNextStart=new Qo.r,a.ionSlidePrevStart=new Qo.r,a.ionSlideNextEnd=new Qo.r,a.ionSlidePrevEnd=new Qo.r,a.ionSlideTap=new Qo.r,a.ionSlideDoubleTap=new Qo.r,a.ionSlideProgress=new Qo.r,a.ionSlideTransitionStart=new Qo.r,a.ionSlideTransitionEnd=new Qo.r,a.ionSlideTouchStart=new Qo.r,a.ionSlideTouchEnd=new Qo.r,a._unregs=[],a._allowSwipeToNext=!0,a._allowSwipeToPrev=!0,a._zone=i,a.id=++Sg,a.slideId="slides-"+a.id,a.setElementClass(a.slideId,!0),o)var l=o.readReady.subscribe(function(){l.unsubscribe(),a._initSlides()});return a}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"autoplay",{get:function(){return this._autoplayMs},set:function(t){this._autoplayMs=parseInt(t,10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},set:function(t){(t instanceof ig||Array.isArray(t))&&(this._control=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effect",{get:function(){return this._effectName},set:function(t){Jm[t]&&(this._effectName=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(t){"horizontal"!==t&&"vertical"!==t||(this._direction=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialSlide",{get:function(){return this._initialSlide},set:function(t){this._initialSlide=parseInt(t,10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._isLoop},set:function(t){this._isLoop=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pager",{get:function(){return this._pager},set:function(t){this._pager=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{set:function(t){this._rtl="rtl"===t.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paginationType",{get:function(){return this._paginationType},set:function(t){"bullets"!==t&&"fraction"!==t&&"progress"!==t||(this._paginationType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parallax",{get:function(){return this._isParallax},set:function(t){this._isParallax=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speedMs},set:function(t){this._speedMs=parseInt(t,10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this._isZoom},set:function(t){this._isZoom=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spaceBetween",{get:function(){return this._spaceBetween},set:function(t){this._spaceBetween=parseInt(t,10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slidesPerView",{get:function(){return this._slidesPerView},set:function(t){this._slidesPerView="auto"===t?"auto":parseFloat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centeredSlides",{get:function(){return this._centeredSlides},set:function(t){this._centeredSlides=b(t)},enumerable:!0,configurable:!0}),e.prototype._initSlides=function(){if(!this._init){console.debug("ion-slides, init");var t=this,e=t._plt;t.container=this.getNativeElement().children[0],Fe(t,e),this._unregs.push(un(t,e)),this.zoom&&this._unregs.push(xe(t,e)),this.keyboardControl&&t.enableKeyboardControl(!0),this._init=!0}},e.prototype.ngAfterContentInit=function(){var t=this;this._plt.timeout(function(){t._initSlides()},300)},e.prototype.update=function(t){var e=this;void 0===t&&(t=300),this._init&&(this._plt.cancelTimeout(this._tmr),this._tmr=this._plt.timeout(function(){Ze(e,e._plt),e.length()>10&&(e.paginationType=void 0)},t))},e.prototype.resize=function(){},e.prototype.slideTo=function(t,e,n){Je(this,this._plt,t,e,n)},e.prototype.slideNext=function(t,e){nn(this,this._plt,e,t,!0)},e.prototype.slidePrev=function(t,e){on(this,this._plt,e,t,!0)},e.prototype.getActiveIndex=function(){return this._activeIndex},e.prototype.getPreviousIndex=function(){return this._previousIndex},e.prototype.length=function(){return this._slides.length},e.prototype.isEnd=function(){return this._isEnd},e.prototype.isBeginning=function(){return this._isBeginning},e.prototype.startAutoplay=function(){Ve(this,this._plt)},e.prototype.stopAutoplay=function(){We(this)},e.prototype.lockSwipeToNext=function(t){this._allowSwipeToNext=!t},e.prototype.lockSwipeToPrev=function(t){this._allowSwipeToPrev=!t},e.prototype.lockSwipes=function(t){this._allowSwipeToNext=this._allowSwipeToPrev=!t},e.prototype.enableKeyboardControl=function(t){cn(this,this._plt,t)},e.prototype.ngOnDestroy=function(){this._init=!1,this._unregs.forEach(function(t){t()}),this._unregs.length=0,an(this),this.enableKeyboardControl(!1)},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"autoplay",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"control",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[String])],ng.prototype,"effect",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[String])],ng.prototype,"direction",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"initialSlide",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ng.prototype,"loop",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ng.prototype,"pager",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],ng.prototype,"dir",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[String])],ng.prototype,"paginationType",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ng.prototype,"parallax",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"speed",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ng.prototype,"zoom",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"spaceBetween",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],ng.prototype,"slidesPerView",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Boolean])],ng.prototype,"centeredSlides",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(og=void 0!==Qo.r&&Qo.r)&&og||Object)],ng.prototype,"ionSlideWillChange",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(rg=void 0!==Qo.r&&Qo.r)&&rg||Object)],ng.prototype,"ionSlideDidChange",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(sg=void 0!==Qo.r&&Qo.r)&&sg||Object)],ng.prototype,"ionSlideDrag",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ag=void 0!==Qo.r&&Qo.r)&&ag||Object)],ng.prototype,"ionSlideReachStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(lg=void 0!==Qo.r&&Qo.r)&&lg||Object)],ng.prototype,"ionSlideReachEnd",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(cg=void 0!==Qo.r&&Qo.r)&&cg||Object)],ng.prototype,"ionSlideAutoplay",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(ug=void 0!==Qo.r&&Qo.r)&&ug||Object)],ng.prototype,"ionSlideAutoplayStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(pg=void 0!==Qo.r&&Qo.r)&&pg||Object)],ng.prototype,"ionSlideAutoplayStop",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(dg=void 0!==Qo.r&&Qo.r)&&dg||Object)],ng.prototype,"ionSlideNextStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(hg=void 0!==Qo.r&&Qo.r)&&hg||Object)],ng.prototype,"ionSlidePrevStart",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(_g=void 0!==Qo.r&&Qo.r)&&_g||Object)],ng.prototype,"ionSlideNextEnd",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(fg=void 0!==Qo.r&&Qo.r)&&fg||Object)],ng.prototype,"ionSlidePrevEnd",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(bg=void 0!==Qo.r&&Qo.r)&&bg||Object)],ng.prototype,"ionSlideTap",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(mg=void 0!==Qo.r&&Qo.r)&&mg||Object)],ng.prototype,"ionSlideDoubleTap",void 0),ng=ig=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-slides",template:'<div class="swiper-container" [attr.dir]="_rtl? \'rtl\' : null"><div class="swiper-wrapper"><ng-content></ng-content></div><div [class.hide]="!pager" class="swiper-pagination"></div></div>',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(gg=void 0!==er&&er)&&gg||Object,"function"==typeof(vg=void 0!==yr&&yr)&&vg||Object,"function"==typeof(yg=void 0!==Qo.G&&Qo.G)&&yg||Object,"function"==typeof(Og=void 0!==or&&or)&&Og||Object,"function"==typeof(jg=void 0!==Qo.p&&Qo.p)&&jg||Object,"function"==typeof(wg=void 0!==Qo.N&&Qo.N)&&wg||Object])],ng);var ig,og,rg,sg,ag,lg,cg,ug,pg,dg,hg,_g,fg,bg,mg,gg,vg,yg,Og,jg,wg,Sg=-1,Cg=function(){function t(t,e,n){this._slides=n,e.setElementClass(t.nativeElement,"swiper-slide",!0),n.update(10)}return t.prototype.ngOnDestroy=function(){this._slides.update(10)},t}();Cg=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-slide",template:'<div class="slide-zoom"><ng-content></ng-content></div>',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(kg=void 0!==Qo.p&&Qo.p)&&kg||Object,"function"==typeof(Tg=void 0!==Qo.N&&Qo.N)&&Tg||Object,"function"==typeof(xg=void 0!==ng&&ng)&&xg||Object])],Cg);var kg,Tg,xg,Eg=function(t){function e(e,n,i){var o=t.call(this,e,n,i,"spinner")||this;return o._dur=null,o._paused=!1,o}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this.load()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._dur},set:function(t){this._dur=t,this.load()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=b(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._init=!0,this.load()},e.prototype.load=function(){if(this._init){this._l=[],this._c=[];var t=this._name||this._config.get("spinner","ios"),e=Ag[t];if(e){if(e.lines)for(var n=0,i=e.lines;n<i;n++)this._l.push(this._loadEle(e,n,i));else if(e.circles)for(var n=0,i=e.circles;n<i;n++)this._c.push(this._loadEle(e,n,i));this.setElementClass("spinner-"+t,!0),this.setElementClass("spinner-"+this._mode+"-"+t,!0)}}},e.prototype._loadEle=function(t,e,n){var i=this._dur||t.dur,o=t.fn(i,e,n);return o.style.animationDuration=i+"ms",o},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String),Object(Jo.__metadata)("design:paramtypes",[String])],Eg.prototype,"name",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number),Object(Jo.__metadata)("design:paramtypes",[Number])],Eg.prototype,"duration",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Eg.prototype,"paused",null),Eg=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-spinner",template:'<svg viewBox="0 0 64 64" *ngFor="let i of _c" [ngStyle]="i.style"><circle [attr.r]="i.r" transform="translate(32,32)"></circle></svg><svg viewBox="0 0 64 64" *ngFor="let i of _l" [ngStyle]="i.style"><line [attr.y1]="i.y1" [attr.y2]="i.y2" transform="translate(32,32)"></line></svg>',host:{"[class.spinner-paused]":"_paused"},changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Pg=void 0!==er&&er)&&Pg||Object,"function"==typeof(Ig=void 0!==Qo.p&&Qo.p)&&Ig||Object,"function"==typeof(Dg=void 0!==Qo.N&&Qo.N)&&Dg||Object])],Eg);var Pg,Ig,Dg,Ag={ios:{dur:1e3,lines:12,fn:function(t,e,n){var i="rotate("+(30*e+(e<6?180:-180))+"deg)",o=-(t-t/n*e)+"ms";return{y1:17,y2:29,style:{transform:i,webkitTransform:i,animationDelay:o,webkitAnimationDelay:o}}}},"ios-small":{dur:1e3,lines:12,fn:function(t,e,n){var i="rotate("+(30*e+(e<6?180:-180))+"deg)",o=-(t-t/n*e)+"ms";return{y1:12,y2:20,style:{transform:i,webkitTransform:i,animationDelay:o,webkitAnimationDelay:o}}}},bubbles:{dur:1e3,circles:9,fn:function(t,e,n){var i=-(t-t/n*e)+"ms";return{r:5,style:{top:9*Math.sin(2*Math.PI*e/n)+"px",left:9*Math.cos(2*Math.PI*e/n)+"px",animationDelay:i,webkitAnimationDelay:i}}}},circles:{dur:1e3,circles:8,fn:function(t,e,n){var i=-(t-t/n*e)+"ms";return{r:5,style:{top:9*Math.sin(2*Math.PI*e/n)+"px",left:9*Math.cos(2*Math.PI*e/n)+"px",animationDelay:i,webkitAnimationDelay:i}}}},crescent:{dur:750,circles:1,fn:function(){return{r:26,style:{}}}},dots:{dur:750,circles:3,fn:function(t,e){var n=-110*e+"ms";return{r:6,style:{left:9-9*e+"px",animationDelay:n,webkitAnimationDelay:n}}}}},Ng=function(){function t(t,e){this._elementRef=t,this._dom=e}return t.prototype.select=function(t){var e=this;if(t){var n=this._dom;n.read(function(){var i=t.btn.getNativeElement(),o="translate3d("+i.offsetLeft+"px,0,0) scaleX("+i.offsetWidth+")";n.write(function(){var t=e._elementRef.nativeElement;t.style[n.plt.Css.transform]=o,e._init||(e._init=!0,n.write(function(){t.classList.add("animate")},80))})},32)}},t}();Ng=Object(Jo.__decorate)([Object(Qo.o)({selector:".tab-highlight"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Bg=void 0!==Qo.p&&Qo.p)&&Bg||Object,"function"==typeof(Lg=void 0!==es&&es)&&Lg||Object])],Ng);var Bg,Lg,zg=Mg=function(t){function e(e,n,i,o,r,s,a,l,c){var u=t.call(this,o,r,a,"tabs")||this;u.viewCtrl=n,u._app=i,u._plt=s,u._linker=l,u._ids=-1,u._tabs=[],u._selectHistory=[],u._onDestroy=new Jp.Subject,u.ionChange=new Qo.r,u.parent=e,u.id="t"+ ++Qg,u._sbPadding=o.getBoolean("statusbarPadding"),u.tabsHighlight=o.getBoolean("tabsHighlight"),u.parent?u.parent.registerChildNav(u):n&&n.getNav()?(u.parent=n.getNav(),u.parent.registerChildNav(u)):u._app&&u._app.registerRootNav(u),n&&(n._setContent(u),n._setContentRef(r));var p=o.getBoolean("keyboardResizes",!1);return c&&p&&(c.willHide.takeUntil(u._onDestroy).subscribe(function(){u._plt.timeout(function(){return u.setTabbarHidden(!1)},50)}),c.willShow.takeUntil(u._onDestroy).subscribe(function(){return u.setTabbarHidden(!0)})),u}return Object(Jo.__extends)(e,t),e.prototype.setTabbarHidden=function(t){this.setElementClass("tabbar-hidden",t),this.resize()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this.parent?this.parent.unregisterChildNav(this):this._app.unregisterRootNav(this)},e.prototype.ngAfterViewInit=function(){var t=this;this._setConfig("tabsPlacement","bottom"),this._setConfig("tabsLayout","icon-top"),this._setConfig("tabsHighlight",this.tabsHighlight),this.tabsHighlight&&this._plt.resize.takeUntil(this._onDestroy).subscribe(function(){return t._highlight.select(t.getSelected())}),this.initTabs()},e.prototype.initTabs=function(){var t=this,e=h(this.selectedIndex)?0:parseInt(this.selectedIndex,10),n=this._linker.getSegmentByNavIdOrName(this.id,this.name);n&&(e=this._getSelectedTabIndex(n.secondaryId,e));var i=this._tabs.find(function(t,n){return n===e&&t.enabled&&t.show});i||(i=this._tabs.find(function(t){return t.enabled&&t.show}));var o=Promise.resolve();return i&&(i._segment=n,o=this.select(i)),o.then(function(){t._tabs.forEach(function(t){t.updateHref(t.root,t.rootParams)})})},e.prototype._setConfig=function(t,e){var n=this[t];h(n)&&(n=this._config.get(t,e)),this.setElementAttribute(t,n)},e.prototype.add=function(t){return this._tabs.push(t),this.id+"-"+ ++this._ids},e.prototype.select=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n=!1);var o="number"==typeof t?this.getByIndex(t):t;if(h(o))return Promise.resolve();var r=this.getSelected();if(o===r&&r.getActive())return this._updateCurrentTab(o,n);if(o.root){var s;r&&(s=r.getActive())&&s._willLeave(!1);var a=o.getActive();return a&&a._willEnter(),e.animate=!1,o.load(e).then(function(){console.log("selectedTab.load resolved"),i._tabSwitchEnd(o,a,s),!1!==e.updateUrl&&i._linker.navChange("switch"),w(i.getSelected()===o,"selected tab does not match"),i._fireChangeEvent(o)})}return this._fireChangeEvent(o),Promise.resolve()},e.prototype._fireChangeEvent=function(t){t.ionSelect.emit(t),this.ionChange.emit(t)},e.prototype._tabSwitchEnd=function(t,e,n){w(t,"selectedTab must be valid"),w(this._tabs.indexOf(t)>=0,"selectedTab must be one of the tabs");for(var i,o=this._tabs,r=0;r<o.length;r++)(i=o[r]).setSelected(i===t);this.tabsHighlight&&this._highlight.select(t),e&&(e._didEnter(),this._app.viewDidEnter.emit(e)),n&&(n&&n._didLeave(),this._app.viewDidLeave.emit(n)),this._selectHistory[this._selectHistory.length-1]!==t.id&&this._selectHistory.push(t.id)},e.prototype.previousTab=function(t){var e=this;void 0===t&&(t=!0),console.debug("run previousTab",this._selectHistory);for(var n=this._selectHistory.length-2;n>=0;n--){var i=this._tabs.find(function(t){return t.id===e._selectHistory[n]});if(i&&i.enabled&&i.show)return t&&this._selectHistory.splice(n+1),i}return null},e.prototype.getByIndex=function(t){return this._tabs[t]},e.prototype.getSelected=function(){for(var t=this._tabs,e=0;e<t.length;e++)if(t[e].isSelected)return t[e];return null},e.prototype.getActiveChildNavs=function(){var t=this.getSelected();return t?[t]:[]},e.prototype.getAllChildNavs=function(){return this._tabs},e.prototype.getIndex=function(t){return this._tabs.indexOf(t)},e.prototype.length=function(){return this._tabs.length},e.prototype._updateCurrentTab=function(t,e){var n=t.getActive();if(n){if(e&&t._segment){var i=t.getViewById(t._segment.name);return i?t.popTo(i,{animate:!1,updateUrl:!1}):0===t._views.length&&t._segment.defaultHistory&&t._segment.defaultHistory.length?this._linker.initViews(t._segment).then(function(e){return t.setPages(e,{animate:!1,updateUrl:!1})}).then(function(){t._segment=null}):t.setRoot(t._segment.name,t._segment.data,{animate:!1,updateUrl:!1}).then(function(){t._segment=null})}return n._cmp&&n._cmp.instance.ionSelected?(n._cmp.instance.ionSelected(),Promise.resolve()):t.length()>1?t.popToRoot():T(this._linker,t.root).then(function(e){if(e.component!==n.component)return t.setRoot(t.root)}).catch(function(){console.debug("Tabs: reset root was cancelled")})}},e.prototype.setTabbarPosition=function(t,e){if(this._top!==t||this._bottom!==e){var n=this._tabbar.nativeElement;n.style.top=t>-1?t+"px":"",n.style.bottom=e>-1?e+"px":"",n.classList.add("show-tabbar"),this._top=t,this._bottom=e}},e.prototype.resize=function(){var t=this.getSelected();t&&t.resize()},e.prototype.initPane=function(){return this._elementRef.nativeElement.hasAttribute("main")},e.prototype.paneChanged=function(t){t&&this.resize()},e.prototype.goToRoot=function(t){if(this._tabs.length)return this.select(this._tabs[0],t)},e.prototype.getType=function(){return"tabs"},e.prototype.getSecondaryIdentifier=function(){var t=this.getActiveChildNavs();return t&&t.length?this._linker._getTabSelector(t[0]):""},e.prototype._getSelectedTabIndex=function(t,e){void 0===t&&(t=""),void 0===e&&(e=0);var n=t.match(/tab-(\d+)/);if(n)return parseInt(n[1],10);var i=this._tabs.find(function(e){return d(e.tabUrlPath)&&e.tabUrlPath===t||d(e.tabTitle)&&q(e.tabTitle)===t});return d(i)?i.index:e},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],zg.prototype,"name",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],zg.prototype,"selectedIndex",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],zg.prototype,"tabsLayout",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],zg.prototype,"tabsPlacement",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean)],zg.prototype,"tabsHighlight",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(Rg=void 0!==Qo.r&&Qo.r)&&Rg||Object)],zg.prototype,"ionChange",void 0),Object(Jo.__decorate)([Object(Qo.X)(Ng),Object(Jo.__metadata)("design:type","function"==typeof(Fg=void 0!==Ng&&Ng)&&Fg||Object)],zg.prototype,"_highlight",void 0),Object(Jo.__decorate)([Object(Qo.X)("tabbar"),Object(Jo.__metadata)("design:type","function"==typeof(Hg=void 0!==Qo.p&&Qo.p)&&Hg||Object)],zg.prototype,"_tabbar",void 0),Object(Jo.__decorate)([Object(Qo.X)("portal",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(Vg=void 0!==Qo.Z&&Qo.Z)&&Vg||Object)],zg.prototype,"portal",void 0),zg=Mg=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-tabs",template:'<div class="tabbar" role="tablist" #tabbar><a *ngFor="let t of _tabs" [tab]="t" class="tab-button" role="tab" href="#" (ionSelect)="select(t)"></a><div class="tab-highlight"></div></div><ng-content></ng-content><div #portal tab-portal></div>',encapsulation:Qo._0.None,providers:[{provide:vh,useExisting:Object(Qo._4)(function(){return Mg})}]}),Object(Jo.__param)(0,Object(Qo.H)()),Object(Jo.__param)(1,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Wg=void 0!==gs&&gs)&&Wg||Object,"function"==typeof(qg=void 0!==or&&or)&&qg||Object,"function"==typeof(Yg=void 0!==Mr&&Mr)&&Yg||Object,"function"==typeof(Gg=void 0!==er&&er)&&Gg||Object,"function"==typeof(Xg=void 0!==Qo.p&&Qo.p)&&Xg||Object,"function"==typeof(Ug=void 0!==yr&&yr)&&Ug||Object,"function"==typeof(Zg=void 0!==Qo.N&&Qo.N)&&Zg||Object,"function"==typeof($g=void 0!==Jr&&Jr)&&$g||Object,"function"==typeof(Kg=void 0!==Wl&&Wl)&&Kg||Object])],zg);var Mg,Rg,Fg,Hg,Vg,Wg,qg,Yg,Gg,Xg,Ug,Zg,$g,Kg,Qg=-1,Jg=function(t){function e(e,n,i,o,r,s,a,l,c,u,p,d,h,_){var f=t.call(this,e,n,i,o,r,s,a,l,u,p,d,h,_)||this;return f._cd=c,f.linker=d,f._dom=h,f._isEnabled=!0,f._isShown=!0,f.ionSelect=new Qo.r,f.id=e.add(f),f._tabsHideOnSubPages=i.getBoolean("tabsHideOnSubPages"),f._tabId="tabpanel-"+f.id,f._btnId="tab-"+f.id,f}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){this._isEnabled=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._isShown},set:function(t){this._isShown=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsHideOnSubPages",{get:function(){return this._tabsHideOnSubPages},set:function(t){this._tabsHideOnSubPages=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_vp",{set:function(t){this.setViewport(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.tabBadgeStyle=this.tabBadgeStyle?this.tabBadgeStyle:"default"},e.prototype.load=function(t){var e=this,n=this._segment;if(n||!this._loaded&&this.root){this.setElementClass("show-tab",!0);for(var i=n&&n.name?n.name:this.root,o=n?n.data:this.rootParams,r=this.length()-1,s=r;s>=0;s--){var a=this.getByIndex(s);if(a&&(a.id===i||a.component===i))return s===r?Promise.resolve():this.popTo(a,{animate:!1,updateUrl:!1})}return(n&&n.defaultHistory&&n.defaultHistory.length&&0===this._views.length?this.linker.initViews(n).then(function(n){return e.setPages(n,t)}):this.push(i,o,t)).then(function(){e._segment=null,e._loaded=!0})}return this._dom.read(function(){e.resize()}),Promise.resolve()},e.prototype.resize=function(){var t=this.getActive();if(t){var e=t.getIONContent();e&&e.resize()}},e.prototype._viewAttachToDOM=function(e,n,i){var o=this._tabsHideOnSubPages&&e.index>0;if(o&&(i=this.parent.portal),t.prototype._viewAttachToDOM.call(this,e,n,i),o){var r=e.pageRef();r&&this._renderer.setElementClass(r.nativeElement,"tab-subpage",!0)}},e.prototype.setSelected=function(t){this.isSelected=t,this.setElementClass("show-tab",t),this.setElementAttribute("aria-hidden",(!t).toString()),t?this._cd.reattach():this._cd.detach()},Object.defineProperty(e.prototype,"index",{get:function(){return this.parent.getIndex(this)},enumerable:!0,configurable:!0}),e.prototype.updateHref=function(t,e){if(this.btn&&this.linker){var n=this.linker.createUrl(this.parent,t,e)||"#";this.btn.updateHref(n)}},e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.getType=function(){return"tab"},e.prototype.goToRoot=function(t){return this.setRoot(this.root,this.rootParams,t,null)},e}(Is);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],Jg.prototype,"root",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object)],Jg.prototype,"rootParams",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Jg.prototype,"tabUrlPath",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Jg.prototype,"tabTitle",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Jg.prototype,"tabIcon",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Jg.prototype,"tabBadge",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],Jg.prototype,"tabBadgeStyle",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Jg.prototype,"enabled",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Jg.prototype,"show",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Jg.prototype,"tabsHideOnSubPages",null),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(tv=void 0!==Qo.r&&Qo.r)&&tv||Object)],Jg.prototype,"ionSelect",void 0),Object(Jo.__decorate)([Object(Qo.X)("viewport",{read:Qo.Z}),Object(Jo.__metadata)("design:type","function"==typeof(ev=void 0!==Qo.Z&&Qo.Z)&&ev||Object),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(nv=void 0!==Qo.Z&&Qo.Z)&&nv||Object])],Jg.prototype,"_vp",null),Jg=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-tab",template:'<div #viewport></div><div class="nav-decor"></div>',host:{"[attr.id]":"_tabId","[attr.aria-labelledby]":"_btnId",role:"tabpanel"},encapsulation:Qo._0.None}),Object(Jo.__param)(11,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(iv=void 0!==zg&&zg)&&iv||Object,"function"==typeof(ov=void 0!==Mr&&Mr)&&ov||Object,"function"==typeof(rv=void 0!==er&&er)&&rv||Object,"function"==typeof(sv=void 0!==yr&&yr)&&sv||Object,"function"==typeof(av=void 0!==Qo.p&&Qo.p)&&av||Object,"function"==typeof(lv=void 0!==Qo.G&&Qo.G)&&lv||Object,"function"==typeof(cv=void 0!==Qo.N&&Qo.N)&&cv||Object,"function"==typeof(uv=void 0!==Qo.l&&Qo.l)&&uv||Object,"function"==typeof(pv=void 0!==Qo.i&&Qo.i)&&pv||Object,"function"==typeof(dv=void 0!==_s&&_s)&&dv||Object,"function"==typeof(hv=void 0!==Ls&&Ls)&&hv||Object,"function"==typeof(_v=void 0!==Jr&&Jr)&&_v||Object,"function"==typeof(fv=void 0!==es&&es)&&fv||Object,"function"==typeof(bv=void 0!==Qo.q&&Qo.q)&&bv||Object])],Jg);var tv,ev,nv,iv,ov,rv,sv,av,lv,cv,uv,pv,dv,hv,_v,fv,bv,mv=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.ionSelect=new Qo.r,o.disHover=!1===e.get("hoverCSS"),o.layout=e.get("tabsLayout"),o}return Object(Jo.__extends)(e,t),e.prototype.ngOnInit=function(){this.tab.btn=this,this.layout=this.tab.parent.tabsLayout||this.layout,this.hasTitle=!!this.tab.tabTitle,this.hasIcon=!!this.tab.tabIcon&&"icon-hide"!==this.layout,this.hasTitleOnly=this.hasTitle&&!this.hasIcon,this.hasIconOnly=this.hasIcon&&!this.hasTitle,this.hasBadge=!!this.tab.tabBadge},e.prototype.onClick=function(){return this.ionSelect.emit(this.tab),!1},e.prototype.updateHref=function(t){this.setElementAttribute("href",t)},e}(Yr);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type","function"==typeof(gv=void 0!==Jg&&Jg)&&gv||Object)],mv.prototype,"tab",void 0),Object(Jo.__decorate)([Object(Qo.I)(),Object(Jo.__metadata)("design:type","function"==typeof(vv=void 0!==Qo.r&&Qo.r)&&vv||Object)],mv.prototype,"ionSelect",void 0),Object(Jo.__decorate)([Object(Qo.u)("click"),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[]),Object(Jo.__metadata)("design:returntype",Boolean)],mv.prototype,"onClick",null),mv=Object(Jo.__decorate)([Object(Qo.k)({selector:".tab-button",template:'<ion-icon *ngIf="tab.tabIcon" [name]="tab.tabIcon" [isActive]="tab.isSelected" class="tab-button-icon"></ion-icon><span *ngIf="tab.tabTitle" class="tab-button-text">{{tab.tabTitle}}</span><ion-badge *ngIf="tab.tabBadge" class="tab-badge" [color]="tab.tabBadgeStyle">{{tab.tabBadge}}</ion-badge><div class="button-effect"></div>',host:{"[attr.id]":"tab._btnId","[attr.aria-controls]":"tab._tabId","[attr.aria-selected]":"tab.isSelected","[class.has-title]":"hasTitle","[class.has-icon]":"hasIcon","[class.has-title-only]":"hasTitleOnly","[class.icon-only]":"hasIconOnly","[class.has-badge]":"hasBadge","[class.disable-hover]":"disHover","[class.tab-disabled]":"!tab.enabled","[class.tab-hidden]":"!tab.show"}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(yv=void 0!==er&&er)&&yv||Object,"function"==typeof(Ov=void 0!==Qo.p&&Qo.p)&&Ov||Object,"function"==typeof(jv=void 0!==Qo.N&&Qo.N)&&jv||Object])],mv);var gv,vv,yv,Ov,jv,wv=function(){function t(t,e,n,i,o){this._viewCtrl=t,this._config=e,this._elementRef=n,this.dismissTimeout=void 0,o.setElementClass(n.nativeElement,"toast-"+e.get("mode"),!0),this.d=i.data,this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&o.setElementClass(n.nativeElement,t,!0)}),this.id=++Ev,this.d.message&&(this.hdrId="toast-hdr-"+this.id)}return t.prototype.ngAfterViewInit=function(){var t=this;this.d.duration&&(this.dismissTimeout=setTimeout(function(){t.dismiss("backdrop")},this.d.duration)),this.enabled=!0},t.prototype.ionViewDidEnter=function(){var t=document.activeElement;t&&t.blur();var e=this._elementRef.nativeElement.querySelector("button");e&&e.focus()},t.prototype.cbClick=function(){this.enabled&&this.dismiss("close")},t.prototype.dismiss=function(t){return clearTimeout(this.dismissTimeout),this.dismissTimeout=void 0,this._viewCtrl.dismiss(null,t,{disableApp:!1})},t}();wv=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-toast",template:'<div class="toast-wrapper" [class.toast-bottom]="d.position === \'bottom\'" [class.toast-middle]="d.position === \'middle\'" [class.toast-top]="d.position === \'top\'"> <div class="toast-container"> <div class="toast-message" id="{{hdrId}}" *ngIf="d.message">{{d.message}}</div> <button ion-button clear class="toast-button" *ngIf="d.showCloseButton" (click)="cbClick()"> {{ d.closeButtonText || \'Close\' }} </button> </div> </div>',host:{role:"dialog","[attr.aria-labelledby]":"hdrId","[attr.aria-describedby]":"descId"}}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Sv=void 0!==or&&or)&&Sv||Object,"function"==typeof(Cv=void 0!==er&&er)&&Cv||Object,"function"==typeof(kv=void 0!==Qo.p&&Qo.p)&&kv||Object,"function"==typeof(Tv=void 0!==ir&&ir)&&Tv||Object,"function"==typeof(xv=void 0!==Qo.N&&Qo.N)&&xv||Object])],wv);var Sv,Cv,kv,Tv,xv,Ev=-1,Pv=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Iv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new jr(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===zv)n.fromTo("translateY","-100%","10px");else if(this.enteringView.data&&this.enteringView.data.position===Mv){var i=Math.floor(t.clientHeight/2-e.clientHeight/2);e.style.top=i+"px",n.fromTo("opacity",.01,1)}else n.fromTo("translateY","100%","-10px");this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(n)},e}(xr),Dv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new jr(this.plt,t);this.leavingView.data&&this.leavingView.data.position===zv?e.fromTo("translateY","10px","-100%"):this.leavingView.data&&this.leavingView.data.position===Mv?e.fromTo("opacity",.99,0):e.fromTo("translateY","-10px","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(300).add(e)},e}(xr),Av=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new jr(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===zv)n.fromTo("translateY","-100%","0%");else if(this.enteringView.data&&this.enteringView.data.position===Mv){var i=Math.floor(t.clientHeight/2-e.clientHeight/2);e.style.top=i+"px",n.fromTo("opacity",.01,1)}else n.fromTo("translateY","100%","0%");this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(n)},e}(xr),Nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new jr(this.plt,t);this.leavingView.data&&this.leavingView.data.position===zv?e.fromTo("translateY","0%","-100%"):this.leavingView.data&&this.leavingView.data.position===Mv?e.fromTo("opacity",.99,0):e.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e)},e}(xr),Bv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new jr(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===zv)n.fromTo("opacity",.01,1),n.fromTo("scale",1.3,1);else if(this.enteringView.data&&this.enteringView.data.position===Mv){var i=Math.floor(t.clientHeight/2-e.clientHeight/2);e.style.top=i+"px",n.fromTo("opacity",.01,1),n.fromTo("scale",1.3,1)}else n.fromTo("opacity",.01,1),n.fromTo("scale",1.3,1);this.easing("cubic-bezier(0,0,0.05,1)").duration(200).add(n)},e}(xr),Lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pv(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new jr(this.plt,t);e.fromTo("opacity",.99,0),e.fromTo("scale",1,1.3);this.easing("ease-out").duration(150).add(e)},e}(xr),zv="top",Mv="middle",Rv=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fv=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n.dismissOnPageChange=!!d(n.dismissOnPageChange)&&!!n.dismissOnPageChange,o=t.call(this,wv,n,null)||this,o._app=e,n.position&&o.isValidPosition(n.position)||(n.position=Wv),o.isOverlay=!0,i.setTransition("toast-slide-in",Iv),i.setTransition("toast-slide-out",Dv),i.setTransition("toast-md-slide-in",Av),i.setTransition("toast-md-slide-out",Nv),i.setTransition("toast-wp-slide-out",Lv),i.setTransition("toast-wp-slide-in",Bv),o}return Rv(e,t),e.prototype.getTransitionName=function(t){var e="toast"+("back"===t?"Leave":"Enter");return this._nav&&this._nav.config.get(e)},e.prototype.isValidPosition=function(t){return t===Hv||t===Vv||t===Wv},e.prototype.setMessage=function(t){return this.data.message=t,this},e.prototype.setDuration=function(t){return this.data.duration=t,this},e.prototype.setPosition=function(t){return this.data.position=t,this},e.prototype.setCssClass=function(t){return this.data.cssClass=t,this},e.prototype.setShowCloseButton=function(t){return this.data.showCloseButton=t,this},e.prototype.present=function(t){return void 0===t&&(t={}),t.disableApp=!1,t.keyboardClose=!1,this._app.present(this,t,4)},e.prototype.dismissAll=function(){this._nav&&this._nav.popAll()},e}(or),Hv="top",Vv="middle",Wv="bottom",qv=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new Fv(this._app,t,this.config)},t}();qv=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Yv=void 0!==Mr&&Mr)&&Yv||Object,"function"==typeof(Gv=void 0!==er&&er)&&Gv||Object])],qv);n(54);var Yv,Gv,Xv=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Uv=function(t){function e(e,n,i,o){var r=t.call(this,e,n.getNativeElement(),{threshold:0,zone:!1,domController:o,gesture:i.createGesture({name:as,priority:ds})})||this;return r.toggle=n,r}return Xv(e,t),e.prototype.canStart=function(){return!0},e.prototype.onDragStart=function(t){t.preventDefault(),this.toggle._onDragStart(B(t).x)},e.prototype.onDragMove=function(t){t.preventDefault(),this.toggle._onDragMove(B(t).x)},e.prototype.onDragEnd=function(t){t.preventDefault(),this.toggle._onDragEnd(B(t).x)},e}(Ss),Zv=$v=function(t){function e(e,n,i,o,r,s,a,l,c,u){var p=t.call(this,n,o,r,"toggle",!1,e,a,null)||this;return p._plt=i,p._haptic=s,p._gestureCtrl=l,p._domCtrl=c,p._zone=u,p._activated=!1,p}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"checked",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._initialize(),this._gesture=new Uv(this._plt,this,this._gestureCtrl,this._domCtrl),this._gesture.listen()},e.prototype._inputUpdated=function(){},e.prototype._inputNormalize=function(t){return b(t)},e.prototype._onDragStart=function(t){var e=this;w(t,"startX must be valid"),console.debug("toggle, _onDragStart",t),this._zone.run(function(){e._startX=t,e._fireFocus(),e._activated=!0})},e.prototype._onDragMove=function(t){var e=this;this._startX?this._shouldToggle(t,-15)&&this._zone.run(function(){e.value=!e.value,e._startX=t,e._haptic.selection()}):w(!1,"_startX must be valid")},e.prototype._onDragEnd=function(t){var e=this;this._startX?(console.debug("toggle, _onDragEnd",t),this._zone.run(function(){e._shouldToggle(t,4)&&(e.value=!e.value,e._haptic.selection()),e._activated=!1,e._fireBlur(),e._startX=null})):w(!1,"_startX must be valid")},e.prototype._shouldToggle=function(t,e){var n=!this._plt.isRTL,i=this._startX;return this._value?n&&i+e>t||!n&&i-e<t:n&&i-e<t||!n&&i+e>t},e.prototype._keyup=function(t){32!==t.keyCode&&13!==t.keyCode||(console.debug("toggle, keyup: "+t.keyCode),t.preventDefault(),t.stopPropagation(),this.value=!this.value)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._gesture&&this._gesture.destroy()},e}(Il);Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Boolean),Object(Jo.__metadata)("design:paramtypes",[Boolean])],Zv.prototype,"checked",null),Object(Jo.__decorate)([Object(Qo.u)("keyup",["$event"]),Object(Jo.__metadata)("design:type",Function),Object(Jo.__metadata)("design:paramtypes",[Object]),Object(Jo.__metadata)("design:returntype",void 0)],Zv.prototype,"_keyup",null),Zv=$v=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-toggle",template:'<div class="toggle-icon"><div class="toggle-inner"></div></div><button role="checkbox" type="button" ion-button="item-cover" [id]="id" [attr.aria-checked]="_value" [attr.aria-labelledby]="_labelId" [attr.aria-disabled]="_disabled" class="item-cover" disable-activated></button>',host:{"[class.toggle-disabled]":"_disabled","[class.toggle-checked]":"_value","[class.toggle-activated]":"_activated"},providers:[{provide:xl.e,useExisting:$v,multi:!0}],encapsulation:Qo._0.None}),Object(Jo.__param)(6,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Kv=void 0!==El&&El)&&Kv||Object,"function"==typeof(Qv=void 0!==er&&er)&&Qv||Object,"function"==typeof(Jv=void 0!==yr&&yr)&&Jv||Object,"function"==typeof(ty=void 0!==Qo.p&&Qo.p)&&ty||Object,"function"==typeof(ey=void 0!==Qo.N&&Qo.N)&&ey||Object,"function"==typeof(ny=void 0!==eu&&eu)&&ny||Object,"function"==typeof(iy=void 0!==Pc&&Pc)&&iy||Object,"function"==typeof(oy=void 0!==_s&&_s)&&oy||Object,"function"==typeof(ry=void 0!==es&&es)&&ry||Object,"function"==typeof(sy=void 0!==Qo.G&&Qo.G)&&sy||Object])],Zv);var $v,Kv,Qv,Jv,ty,ey,ny,iy,oy,ry,sy,ay=function(t){function e(e,n,i,o){var r=t.call(this,e,n,i,"footer")||this;return o&&o._setFooter(r),r}return Object(Jo.__extends)(e,t),e}(Yr);ay=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-footer"}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(ly=void 0!==er&&er)&&ly||Object,"function"==typeof(cy=void 0!==Qo.p&&Qo.p)&&cy||Object,"function"==typeof(uy=void 0!==Qo.N&&Qo.N)&&uy||Object,"function"==typeof(py=void 0!==or&&or)&&py||Object])],ay);var ly,cy,uy,py,dy=function(t){function e(e,n,i,o){var r=t.call(this,e,n,i,"header")||this;return o&&o._setHeader(r),r}return Object(Jo.__extends)(e,t),e}(Yr);dy=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-header"}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(hy=void 0!==er&&er)&&hy||Object,"function"==typeof(_y=void 0!==Qo.p&&Qo.p)&&_y||Object,"function"==typeof(fy=void 0!==Qo.N&&Qo.N)&&fy||Object,"function"==typeof(by=void 0!==or&&or)&&by||Object])],dy);var hy,_y,fy,by,my=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o._sbPadding=e.getBoolean("statusbarPadding"),o}return Object(Jo.__extends)(e,t),e}(b_);my=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-toolbar",template:'<div class="toolbar-background" [ngClass]="\'toolbar-background-\' + _mode"></div><ng-content select="[menuToggle],ion-buttons[left]"></ng-content><ng-content select="ion-buttons[start]"></ng-content><ng-content select="ion-buttons[end],ion-buttons[right]"></ng-content><div class="toolbar-content" [ngClass]="\'toolbar-content-\' + _mode"><ng-content></ng-content></div>',host:{class:"toolbar","[class.statusbar-padding]":"_sbPadding"},changeDetection:Qo.h.OnPush}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(gy=void 0!==er&&er)&&gy||Object,"function"==typeof(vy=void 0!==Qo.p&&Qo.p)&&vy||Object,"function"==typeof(yy=void 0!==Qo.N&&Qo.N)&&yy||Object])],my);var gy,vy,yy,Oy=function(t){function e(e,n,i,o,r){var s=t.call(this,e,n,i,"bar-buttons")||this;return s.inToolbar=!(!o&&!r),s}return Object(Jo.__extends)(e,t),Object.defineProperty(e.prototype,"_buttons",{set:function(t){this.inToolbar&&t.forEach(function(t){t.setRole("bar-button")})},enumerable:!0,configurable:!0}),e}(Yr);Object(Jo.__decorate)([Object(Qo.n)(ll),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],Oy.prototype,"_buttons",null),Oy=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-buttons,[menuToggle]"}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__param)(4,Object(Qo.v)(Object(Qo._4)(function(){return m_}))),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(jy=void 0!==er&&er)&&jy||Object,"function"==typeof(wy=void 0!==Qo.p&&Qo.p)&&wy||Object,"function"==typeof(Sy=void 0!==Qo.N&&Qo.N)&&Sy||Object,"function"==typeof(Cy=void 0!==my&&my)&&Cy||Object,"function"==typeof(ky=void 0!==m_&&m_)&&ky||Object])],Oy);var jy,wy,Sy,Cy,ky,Ty=function(t){function e(e,n,i,o,r){var s=t.call(this,e,n,i,"title")||this;return o&&o._setTitle(s),r&&r._setTitle(s),s}return Object(Jo.__extends)(e,t),e.prototype.getTitleText=function(){return this._elementRef.nativeElement.textContent},e}(Yr);Ty=Object(Jo.__decorate)([Object(Qo.k)({selector:"ion-title",template:'<div class="toolbar-title" [ngClass]="\'toolbar-title-\' + _mode"><ng-content></ng-content></div>',changeDetection:Qo.h.OnPush,encapsulation:Qo._0.None}),Object(Jo.__param)(3,Object(Qo.H)()),Object(Jo.__param)(4,Object(Qo.H)()),Object(Jo.__param)(4,Object(Qo.v)(Object(Qo._4)(function(){return m_}))),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(xy=void 0!==er&&er)&&xy||Object,"function"==typeof(Ey=void 0!==Qo.p&&Qo.p)&&Ey||Object,"function"==typeof(Py=void 0!==Qo.N&&Qo.N)&&Py||Object,"function"==typeof(Iy=void 0!==my&&my)&&Iy||Object,"function"==typeof(Dy=void 0!==m_&&m_)&&Dy||Object])],Ty);var xy,Ey,Py,Iy,Dy,Ay=function(){return function(){}}();Ay=Object(Jo.__decorate)([Object(Qo.o)({selector:"ion-thumbnail"})],Ay);var Ny=function(t){function e(e,n,i){return t.call(this,e,n,i,"text")||this}return Object(Jo.__extends)(e,t),e}(Yr);Ny=Object(Jo.__decorate)([Object(Qo.o)({selector:"[ion-text]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(By=void 0!==er&&er)&&By||Object,"function"==typeof(Ly=void 0!==Qo.p&&Qo.p)&&Ly||Object,"function"==typeof(zy=void 0!==Qo.N&&Qo.N)&&zy||Object])],Ny);var By,Ly,zy,My=function(){return function(t){this.templateRef=t}}();My=Object(Jo.__decorate)([Object(Qo.o)({selector:"[virtualFooter]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Ry=void 0!==Qo.T&&Qo.T)&&Ry||Object])],My);var Ry,Fy=function(){return function(t){this.templateRef=t}}();Fy=Object(Jo.__decorate)([Object(Qo.o)({selector:"[virtualHeader]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Hy=void 0!==Qo.T&&Qo.T)&&Hy||Object])],Fy);var Hy,Vy=function(){return function(t,e){this.templateRef=t,this.viewContainer=e}}();Vy=Object(Jo.__decorate)([Object(Qo.o)({selector:"[virtualItem]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Wy=void 0!==Qo.T&&Qo.T)&&Wy||Object,"function"==typeof(qy=void 0!==Qo.Z&&Qo.Z)&&qy||Object])],Vy);var Wy,qy,Yy={row:0,width:0,height:0,top:0,left:0,tmpl:-1},Gy=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n,this.bounds={}}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Xy=function(){var t={};return t[t.Item=0]="Item",t[t.Header=1]="Header",t[t.Footer=2]="Footer",t}(),Uy=3,Zy=2,$y=function(){function t(t,e,n,i,o,r,s,a,l,c){var u=this;this._iterableDiffers=t,this._elementRef=e,this._renderer=n,this._zone=i,this._cd=o,this._content=r,this._plt=s,this._ctrl=a,this._config=l,this._dom=c,this._init=!1,this._lastEle=!1,this._records=[],this._cells=[],this._nodes=[],this._vHeight=0,this._lastCheck=0,this._recordSize=0,this._data={scrollTop:0},this._queue=Ky.NoChanges,this.bufferRatio=3,this.approxItemWidth="100%",this.approxHeaderWidth="100%",this.approxHeaderHeight="40px",this.approxFooterWidth="100%",this.approxFooterHeight="40px",this.setElementClass("virtual-loading",!0);var p=a.readReady.subscribe(function(){p.unsubscribe(),u.readUpdate(!0)}),d=a.writeReady.subscribe(function(){d.unsubscribe(),u._init=!0,u.writeUpdate(!0),u._listeners()})}return Object.defineProperty(t.prototype,"virtualScroll",{get:function(){return this._records},set:function(t){this._records=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerFn",{set:function(t){c(t)&&(this._hdrFn=t.bind(this._ctrl._cmp||this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"footerFn",{set:function(t){c(t)&&(this._ftrFn=t.bind(this._ctrl._cmp||this))},enumerable:!0,configurable:!0}),t.prototype.firstRecord=function(){var t=this._cells;return t.length>0?t[0].record:0},t.prototype.lastRecord=function(){var t=this._cells;return t.length>0?t[t.length-1].record:0},t.prototype.ngOnChanges=function(t){if("virtualScroll"in t){var e=t.virtualScroll.currentValue;if(!d(this._differ)&&d(e))try{this._differ=this._iterableDiffers.find(e).create(this.virtualTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"'. VirtualScroll only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._init){var t=d(this._differ)?this._differ.diff(this.virtualScroll):null;if(d(t)){var e=!1,n=this._recordSize;t.forEachOperation(function(t,i,o){return null===i&&o<n?(console.debug("virtual-scroll","adding record before current position, slow path"),void(e=!0)):i<n&&null===o?(console.debug("virtual-scroll","removing record before current position, slow path"),void(e=!0)):void 0}),this._recordSize=this._records?this._records.length:0,this.readUpdate(e),this.writeUpdate(e)}}},t.prototype.readUpdate=function(t){t?(console.debug("virtual-scroll","readUpdate: slow path"),this._cells.length=0,this.calcDimensions()):console.debug("virtual-scroll","readUpdate: fast path")},t.prototype.writeUpdate=function(t){console.debug("virtual-scroll","writeUpdate need clean:",t);var e=this._data,n=e.scrollTop+e.renderHeight;e.scrollDiff=Qy+1,jn(n,this._records,this._cells,this._hdrFn,this._ftrFn,this._data),this.renderVirtual(t)},t.prototype.calcDimensions=function(){An(this._data,this._elementRef.nativeElement,this.approxItemWidth,this.approxItemHeight,this.approxHeaderWidth,this.approxHeaderHeight,this.approxFooterWidth,this.approxFooterHeight,this.bufferRatio)},t.prototype.renderVirtual=function(t){var e=this;this._plt.raf(function(){var n=e._nodes,i=e._cells,o=e._data,r=e._records;t&&(kn(e._plt,n,i,o,!0),o.topCell=0,o.bottomCell=i.length-1),Pn(i,o),e._zone.run(function(){Sn(o.topCell,o.bottomCell,!0,i,r,n,e._itmTmp.viewContainer,e._itmTmp.templateRef,e._hdrTmp&&e._hdrTmp.templateRef,e._ftrTmp&&e._ftrTmp.templateRef)}),t&&e._cd.detectChanges(),e._dom.read(function(){return Cn(e._plt,n,i,o)}),e._dom.write(function(){if(Tn(n,i,o),e._stepChangeDetection(),e._stepDOMWrite(),e._content.imgsUpdate(),!e._lastEle){var t=e._elementRef.nativeElement;e._renderer.createElement(t,"div").className="virtual-last",e._lastEle=!0,e.setElementClass("virtual-scroll",!0),e.setElementClass("virtual-loading",!1)}w(e._queue===Ky.NoChanges,"queue value should be NO_CHANGES")})})},t.prototype.resize=function(){this._init&&(console.debug("virtual-scroll","resized window"),this.calcDimensions(),this.writeUpdate(!1))},t.prototype._stepDOMWrite=function(){var t=this._cells,e=this._nodes;En(this._plt,e,t,this._recordSize),this._setHeight(Dn(this._recordSize,t[t.length-1],this._vHeight,.25)),this._queue=Ky.NoChanges},t.prototype._stepChangeDetection=function(){for(var t=this._nodes,e=0;e<t.length;e++)t[e].hasChanges&&t[e].view.detectChanges();this._queue=Ky.DomWrite},t.prototype._stepNoChanges=function(){var t=this._data,e=t.scrollDiff=t.scrollTop-this._lastCheck;if(!(Math.abs(e)<Qy)){var n=this._cells,i=this._nodes,o=this._records;this._lastCheck=t.scrollTop,e>0&&jn(t.scrollTop+t.renderHeight,o,n,this._hdrFn,this._ftrFn,t),kn(this._plt,i,n,t,!1),Pn(n,t),Sn(t.topCell,t.bottomCell,e>0,n,o,i,this._itmTmp.viewContainer,this._itmTmp.templateRef,this._hdrTmp&&this._hdrTmp.templateRef,this._ftrTmp&&this._ftrTmp.templateRef)&&(this._queue=Ky.ChangeDetection,Tn(i,n,t))}},t.prototype.scrollUpdate=function(t){var e=this;this._data.scrollTop=t.scrollTop;var n=this._queue;n===Ky.NoChanges?this._stepNoChanges():n===Ky.ChangeDetection?this._dom.write(function(){return e._stepChangeDetection()}):(w(n===Ky.DomWrite,"queue value unexpected"),this._dom.write(function(){return e._stepDOMWrite()}))},t.prototype.scrollEnd=function(){var t=this;kn(this._plt,this._nodes,this._cells,this._data,!1),Pn(this._cells,this._data),Sn(this._data.topCell,this._data.bottomCell,!0,this._cells,this._records,this._nodes,this._itmTmp.viewContainer,this._itmTmp.templateRef,this._hdrTmp&&this._hdrTmp.templateRef,this._ftrTmp&&this._ftrTmp.templateRef),this._dom.write(function(){Tn(t._nodes,t._cells,t._data),t._stepChangeDetection(),t._stepDOMWrite()})},t.prototype._listeners=function(){w(!this._scrollSub,"_listeners was already called"),this._scrollSub||(this._config.getBoolean("virtualScrollEventAssist")&&this._content.enableJsScroll(),this._resizeSub=this._plt.resize.subscribe(this.resize.bind(this)),this._scrollSub=this._content.ionScroll.subscribe(this.scrollUpdate.bind(this)),this._scrollEndSub=this._content.ionScrollEnd.subscribe(this.scrollEnd.bind(this)))},t.prototype._setHeight=function(t){t!==this._vHeight&&(this._renderer.setElementStyle(this._elementRef.nativeElement,"height",t>0?t+"px":""),this._vHeight=t,console.debug("virtual-scroll","height",t))},t.prototype.ngAfterContentInit=function(){w(this._itmTmp,"virtualItem required within virtualScroll"),this.approxItemHeight||(this.approxItemHeight="40px",console.warn('Virtual Scroll: Please provide an "approxItemHeight" input to ensure proper virtual scroll rendering'))},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t.prototype.ngOnDestroy=function(){this._resizeSub&&this._resizeSub.unsubscribe(),this._scrollSub&&this._scrollSub.unsubscribe(),this._scrollEndSub&&this._scrollEndSub.unsubscribe(),this._resizeSub=this._scrollEndSub=this._scrollSub=null,this._hdrFn=this._ftrFn=this._records=this._cells=this._nodes=this._data=null},t}();Object(Jo.__decorate)([Object(Qo.m)(Vy),Object(Jo.__metadata)("design:type","function"==typeof(Jy=void 0!==Vy&&Vy)&&Jy||Object)],$y.prototype,"_itmTmp",void 0),Object(Jo.__decorate)([Object(Qo.m)(Fy),Object(Jo.__metadata)("design:type","function"==typeof(tO=void 0!==Fy&&Fy)&&tO||Object)],$y.prototype,"_hdrTmp",void 0),Object(Jo.__decorate)([Object(Qo.m)(My),Object(Jo.__metadata)("design:type","function"==typeof(eO=void 0!==My&&My)&&eO||Object)],$y.prototype,"_ftrTmp",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],$y.prototype,"virtualScroll",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Number)],$y.prototype,"bufferRatio",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxItemWidth",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxItemHeight",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxHeaderWidth",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxHeaderHeight",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxFooterWidth",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",String)],$y.prototype,"approxFooterHeight",void 0),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],$y.prototype,"headerFn",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type",Object),Object(Jo.__metadata)("design:paramtypes",[Object])],$y.prototype,"footerFn",null),Object(Jo.__decorate)([Object(Qo.z)(),Object(Jo.__metadata)("design:type","function"==typeof(nO=void 0!==Qo.TrackByFunction&&Qo.TrackByFunction)&&nO||Object)],$y.prototype,"virtualTrackBy",void 0),$y=Object(Jo.__decorate)([Object(Qo.o)({selector:"[virtualScroll]"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(iO=void 0!==Qo.A&&Qo.A)&&iO||Object,"function"==typeof(oO=void 0!==Qo.p&&Qo.p)&&oO||Object,"function"==typeof(rO=void 0!==Qo.N&&Qo.N)&&rO||Object,"function"==typeof(sO=void 0!==Qo.G&&Qo.G)&&sO||Object,"function"==typeof(aO=void 0!==Qo.i&&Qo.i)&&aO||Object,"function"==typeof(lO=void 0!==oc&&oc)&&lO||Object,"function"==typeof(cO=void 0!==yr&&yr)&&cO||Object,"function"==typeof(uO=void 0!==or&&or)&&uO||Object,"function"==typeof(pO=void 0!==er&&er)&&pO||Object,"function"==typeof(dO=void 0!==es&&es)&&dO||Object])],$y);var Ky,Qy=40;!function(t){t[t.NoChanges=1]="NoChanges",t[t.ChangeDetection=2]="ChangeDetection",t[t.DomWrite=3]="DomWrite"}(Ky||(Ky={}));var Jy,tO,eO,nO,iO,oO,rO,sO,aO,lO,cO,uO,pO,dO,hO=function(){function t(t,e,n){this.app=t,this.dom=n,this._queue=[],this._active=[],this.activatedDelay=_O,this.clearDelay=fO,this._css=e.get("activatedClass","activated")}return t.prototype.clickAction=function(t,e,n){if(!zn(t,e)){this._scheduleClear(),this._queue.length=0;for(var i=0;i<this._active.length;i++)this._active[i].classList.remove(this._css);this._active.length=0,e&&e.parentNode&&(this._active.push(e),e.classList.add(this._css))}},t.prototype.downAction=function(t,e,n){var i=this;zn(t,e)||(this.unscheduleClear(),this.deactivate(!0),this._queue.push(e),this._activeDefer=this.dom.write(function(){i._activeDefer=null;for(var t,e=0;e<i._queue.length;e++)t=i._queue[e],i._active.push(t),t.classList.add(i._css);i._queue.length=0},this.activatedDelay))},t.prototype.upAction=function(t,e,n){this._scheduleClear()},t.prototype._scheduleClear=function(){var t=this;this._clearDefer||(this._clearDefer=this.dom.write(function(){t.clearState(!0),t._clearDefer=null},this.clearDelay))},t.prototype.unscheduleClear=function(){this._clearDefer&&(this._clearDefer(),this._clearDefer=null)},t.prototype.clearState=function(t){var e=this;this.app.isEnabled()?this.deactivate(t):this.dom.write(function(){e.clearState(t)},600)},t.prototype.deactivate=function(t){this._clearDeferred(),this._queue.length=0;for(var e,n=0;n<this._active.length;n++)(e=this._active[n]).style[this.dom.plt.Css.transition]=t?"":"none",e.classList.remove(this._css);this._active.length=0},t.prototype._clearDeferred=function(){this._activeDefer&&(this._activeDefer(),this._activeDefer=null)},t}(),_O=80,fO=80,bO=function(){function t(t,e,n){this.dom=n,this.highlight=new hO(t,e,n)}return t.prototype.clickAction=function(t,e,n){this.highlight&&this.highlight.clickAction(t,e,n),this._clickAction(t,e,n)},t.prototype.downAction=function(t,e,n){this.highlight&&this.highlight.downAction(t,e,n),this._downAction(t,e,n)},t.prototype.upAction=function(t,e,n){this.highlight&&this.highlight.upAction(t,e,n),this._upAction(t,e,n)},t.prototype.clearState=function(t){this.highlight&&this.highlight.clearState(t)},t.prototype._downAction=function(t,e,n){if(!zn(t,e))for(var i=e.childElementCount;i--;){var o=e.children[i];if(o.classList.contains("button-effect")){var r=e.getBoundingClientRect();o.$top=r.top,o.$left=r.left,o.$width=r.width,o.$height=r.height;break}}},t.prototype._upAction=function(t,e,n){if(!L(6,n,B(t)))for(var i=e.childElementCount;i--;){var o=e.children[i];if(o.classList.contains("button-effect")){this.startRippleEffect(o,e,n);break}}},t.prototype._clickAction=function(t,e,n){},t.prototype.startRippleEffect=function(t,e,n){if(n){var i=n.x-t.$left,o=n.y-t.$top,r=2*Math.max(Math.abs(t.$width-i),i),s=2*Math.max(Math.abs(t.$height-o),o),a=Math.min(Math.max(Math.hypot(r,s),64),240);e.hasAttribute("ion-item")&&(a=Math.min(a,140)),i-=a/2,o-=a/2,i=Math.round(i),o=Math.round(o),a=Math.round(a);var l=this.dom.plt.Css;t.style.opacity="",t.style[l.transform]="translate3d("+i+"px, "+o+"px, 0px) scale(0.001)",t.style[l.transition]="";var c=Math.sqrt(t.$width+t.$height),u=Math.max(1600*Math.sqrt(c/mO)+.5,260),p=Math.round(.7*u),d=Math.round(u-p),h="translate3d("+i+"px, "+o+"px, 0px) scale(1)",_="transform "+(u=Math.round(u))+"ms,opacity "+p+"ms "+d+"ms";this.dom.write(function(){t.style.width=t.style.height=a+"px",t.style.opacity="0",t.style[l.transform]=h,t.style[l.transition]=_},16)}},t}(),mO=300,gO=function(){function t(t,e,n,i,o){this.plt=e,this.app=i,this.gestureCtrl=o,this.disableClick=0,this.events=new ws(e);var r=t.get("activator");"ripple"===r?this.activator=new bO(i,t,n):"highlight"===r&&(this.activator=new hO(i,t,n)),this.usePolyfill=t.getBoolean("tapPolyfill"),console.debug("Using usePolyfill:",this.usePolyfill);var s=e.doc();this.events.listen(s,"click",this.click.bind(this),{passive:!1,capture:!0}),this.pointerEvents=this.events.pointerEvents({element:s,pointerDown:this.pointerStart.bind(this),pointerMove:this.pointerMove.bind(this),pointerUp:this.pointerEnd.bind(this),passive:!0}),this.pointerEvents.mouseWait=TO}return t.prototype.pointerStart=function(t){if(this.startCoord)return!1;if(!this.app.isEnabled())return!1;if(this.lastTouchEnd=0,this.dispatchClick=!0,this.plt.doc()===t.target)return this.startCoord=B(t),!0;var e=Mn(t.target);return e?(this.startCoord=B(t),this.activator&&this.activator.downAction(t,e,this.startCoord),!0):(this.startCoord=null,!1)},t.prototype.pointerMove=function(t){this.startCoord&&this.shouldCancelEvent(t)&&this.pointerCancel(t)},t.prototype.pointerEnd=function(t,e){var n=this;if(this.dispatchClick&&(j(function(){return n.lastTouchEnd=Date.now()}),this.startCoord)){if(this.activator&&t.target!==this.plt.doc()){var i=Mn(t.target);i&&this.activator.upAction(t,i,this.startCoord)}this.usePolyfill&&e===js&&this.app.isEnabled()&&this.handleTapPolyfill(t),this.startCoord=null}},t.prototype.pointerCancel=function(t){console.debug("pointerCancel from "+t.type+" "+Date.now()),this.startCoord=null,this.dispatchClick=!1,this.activator&&this.activator.clearState(!1),this.pointerEvents.stop()},t.prototype.shouldCancelEvent=function(t){return this.app.isScrolling()||this.gestureCtrl.isCaptured()||L(kO,this.startCoord,B(t))},t.prototype.click=function(t){var e=this;if(this.shouldCancelClick(t))return t.preventDefault(),void t.stopPropagation();if(this.activator&&this.plt.doc()!==t.target){var n=Mn(t.target);n&&this.activator.clickAction(t,n,this.startCoord)}j(function(){return e.profileClickDelay(t)})},t.prototype.shouldCancelClick=function(t){if(this.usePolyfill){if(!t.isIonicTap&&this.isDisabledNativeClick())return console.debug("click prevent: nativeClick"),!0}else if(!this.dispatchClick)return console.debug("click prevent: tap-click"),!0;return this.app.isEnabled()?!!this.gestureCtrl.isCaptured()&&(console.debug("click prevent: tap-click (gesture is captured)"),!0):(console.debug("click prevent: appDisabled"),!0)},t.prototype.profileClickDelay=function(t){if(this.lastTouchEnd){var e=Date.now()-this.lastTouchEnd;e<100?console.debug("FAST click dispatched. Delay(ms):",e):console.warn("SLOW click dispatched. Delay(ms):",e,t),this.lastTouchEnd=null}else console.debug("Click dispatched. Unknown delay")},t.prototype.handleTapPolyfill=function(t){w(this.usePolyfill,"this code should not be used if tapPolyfill is disabled");var e=B(t);if(L(kO,this.startCoord,e))console.debug("click from touch prevented by pointer moved");else if(this.disableClick=Date.now()+TO,this.app.isScrolling())console.debug("click from touch prevented by scrolling "+Date.now());else{console.debug("create click from touch "+Date.now());var n=this.plt.doc().createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,this.plt.win(),1,0,0,e.x,e.y,!1,!1,!1,!1,0,null),n.isIonicTap=!0,t.target.dispatchEvent(n)}},t.prototype.isDisabledNativeClick=function(){return this.disableClick>Date.now()},t}();gO=Object(Jo.__decorate)([Object(Qo.w)(),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(vO=void 0!==er&&er)&&vO||Object,"function"==typeof(yO=void 0!==yr&&yr)&&yO||Object,"function"==typeof(OO=void 0!==es&&es)&&OO||Object,"function"==typeof(jO=void 0!==Mr&&Mr)&&jO||Object,"function"==typeof(wO=void 0!==_s&&_s)&&wO||Object])],gO);var vO,yO,OO,jO,wO,SO=["A","BUTTON"],CO=["tappable","ion-button"],kO=100,TO=2500,xO=window,EO=document,PO=["","webkit","Moz","MS","ms","o"],IO=EO.createElement("div"),DO="function",AO=Math.round,NO=Math.abs,BO=Date.now,LO=1,zO=/mobile|tablet|ip(ad|hone|od)|android/i,MO="ontouchstart"in window,RO=void 0!==ni(window,"PointerEvent"),FO=MO&&zO.test(navigator.userAgent),HO=25,VO=1,WO=2,qO=4,YO=8,GO=1,XO=2,UO=4,ZO=8,$O=16,KO=XO|UO,QO=ZO|$O,JO=KO|QO,tj=["x","y"],ej=["clientX","clientY"];ri.prototype={handler:function(){},init:function(){this.evEl&&Un(this.element,this.evEl,this.domHandler),this.evTarget&&Un(this.target,this.evTarget,this.domHandler),this.evWin&&Un(oi(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Zn(this.element,this.evEl,this.domHandler),this.evTarget&&Zn(this.target,this.evTarget,this.domHandler),this.evWin&&Zn(oi(this.element),this.evWin,this.domHandler)}};var nj={mousedown:VO,mousemove:WO,mouseup:qO},ij="mousedown",oj="mousemove mouseup";qn(vi,ri,{handler:function(t){var e=nj[t.type];e&VO&&0===t.button&&(this.pressed=!0),e&WO&&1!==t.which&&(e=qO),this.pressed&&this.allow&&(e&qO&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var rj={pointerdown:VO,pointermove:WO,pointerup:qO,pointercancel:YO,pointerout:YO},sj={2:"touch",3:"pen",4:"mouse",5:"kinect"},aj="pointerdown",lj="pointermove pointerup pointercancel";xO.MSPointerEvent&&!xO.PointerEvent&&(aj="MSPointerDown",lj="MSPointerMove MSPointerUp MSPointerCancel"),qn(yi,ri,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=rj[i],r=sj[t.pointerType]||t.pointerType,s="touch"==r,a=Jn(e,t.pointerId,"pointerId");o&VO&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):o&(qO|YO)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var cj={touchstart:VO,touchmove:WO,touchend:qO,touchcancel:YO},uj="touchstart",pj="touchstart touchmove touchend touchcancel";qn(Oi,ri,{handler:function(t){var e=cj[t.type];if(e===VO&&(this.started=!0),this.started){var n=ji.call(this,t,e);e&(qO|YO)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var dj={touchstart:VO,touchmove:WO,touchend:qO,touchcancel:YO},hj="touchstart touchmove touchend touchcancel";qn(wi,ri,{handler:function(t){var e=dj[t.type],n=Si.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),qn(Ci,ri,{handler:function(t,e,n){var i="touch"==n.pointerType,o="mouse"==n.pointerType;if(i)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;e&(qO|YO)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _j=ni(IO.style,"touchAction"),fj=void 0!==_j,bj="auto",mj="manipulation",gj="none",vj="pan-x",yj="pan-y";ki.prototype={set:function(t){"compute"==t&&(t=this.compute()),fj&&this.manager.element.style&&(this.manager.element.style[_j]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return Wn(this.manager.recognizers,function(e){Gn(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Ti(t.join(" "))},preventDefaults:function(t){if(!fj){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=Kn(i,gj),r=Kn(i,yj),s=Kn(i,vj);if(o){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}if(!s||!r)return o||r&&n&KO||s&&n&QO?this.preventSrc(e):void 0}}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Oj=1,jj=2,wj=4,Sj=8,Cj=Sj,kj=16;xi.prototype={defaults:{},set:function(t){return Object.assign(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(Vn(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=Ii(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return Vn(t,"dropRecognizeWith",this)?this:(t=Ii(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(Vn(t,"requireFailure",this))return this;var e=this.requireFail;return t=Ii(t,this),-1===Jn(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(Vn(t,"dropRequireFailure",this))return this;t=Ii(t,this);var e=Jn(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<Sj&&e(n.options.event+Ei(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=Sj&&e(n.options.event+Ei(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Oj)))return!1;t++}return!0},recognize:function(t){var e=Object.assign({},t);if(!Gn(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(Cj|kj|32)&&(this.state=Oj),this.state=this.process(e),this.state&(jj|wj|Sj|kj)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},qn(Di,xi,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(jj|wj),o=this.attrTest(t);return i&&(n&YO||!o)?e|kj:i||o?n&qO?e|Sj:e&jj?e|wj:jj:32}}),qn(Ai,Di,{defaults:{event:"pan",threshold:10,pointers:1,direction:JO},getTouchAction:function(){var t=this.options.direction,e=[];return t&KO&&e.push(yj),t&QO&&e.push(vj),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&KO?(o=0===r?GO:r<0?XO:UO,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===s?GO:s<0?ZO:$O,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return Di.prototype.attrTest.call(this,t)&&(this.state&jj||!(this.state&jj)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Pi(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),qn(Ni,Di,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[gj]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&jj)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),qn(Bi,xi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[bj]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(qO|YO)&&!o)this.reset();else if(t.eventType&VO)this.reset(),this._timer=Hn(function(){this.state=Cj,this.tryEmit()},e.time,this);else if(t.eventType&qO)return Cj;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Cj&&(t&&t.eventType&qO?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=BO(),this.manager.emit(this.options.event,this._input)))}}),qn(Li,Di,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[gj]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&jj)}}),qn(zi,Di,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:KO|QO,pointers:1},getTouchAction:function(){return Ai.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(KO|QO)?e=t.overallVelocity:n&KO?e=t.overallVelocityX:n&QO&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&NO(e)>this.options.velocity&&t.eventType&qO},emit:function(t){var e=Pi(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),qn(Mi,xi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[mj]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&VO&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!=qO)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||fi(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=Hn(function(){this.state=Cj,this.tryEmit()},e.interval,this),jj):Cj}return 32},failTimeout:function(){return this._timer=Hn(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Cj&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});var Tj={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Li,{enable:!1}],[Ni,{enable:!1},["rotate"]],[zi,{direction:KO}],[Ai,{direction:KO},["swipe"]],[Mi],[Mi,{event:"doubletap",taps:2},["tap"]],[Bi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Fi.prototype={set:function(t){return Object.assign(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Cj)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(jj|wj|Sj)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof xi)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(Vn(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(Vn(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=Jn(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){var n=this.handlers;return Wn(Qn(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return Wn(Qn(t),function(t){e?n[t]&&n[t].splice(Jn(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&Vi(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Hi(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Object.assign(Ri,{INPUT_START:VO,INPUT_MOVE:WO,INPUT_END:qO,INPUT_CANCEL:YO,STATE_POSSIBLE:Oj,STATE_BEGAN:jj,STATE_CHANGED:wj,STATE_ENDED:Sj,STATE_RECOGNIZED:Cj,STATE_CANCELLED:kj,STATE_FAILED:32,DIRECTION_NONE:GO,DIRECTION_LEFT:XO,DIRECTION_RIGHT:UO,DIRECTION_UP:ZO,DIRECTION_DOWN:$O,DIRECTION_HORIZONTAL:KO,DIRECTION_VERTICAL:QO,DIRECTION_ALL:JO,Manager:Fi,Input:ri,TouchAction:ki,TouchInput:wi,MouseInput:vi,PointerEventInput:yi,TouchMouseInput:Ci,SingleTouchInput:Oi,Recognizer:xi,AttrRecognizer:Di,Tap:Mi,Pan:Ai,Swipe:zi,Pinch:Ni,Rotate:Li,Press:Bi,on:Un,off:Zn,each:Wn,inherit:qn,bindFn:Yn,prefixed:ni}),xO.Hammer=Ri;!function(){function t(t,e){void 0===e&&(e={}),this._callbacks={},this.isListening=!1,s(e,{domEvents:!0}),this.element=t,this.direction=e.direction||"x",e.direction="x"===this.direction?KO:QO,this._options=e}t.prototype.options=function(t){Object.assign(this._options,t)},t.prototype.on=function(t,e){"pinch"!==t&&"rotate"!==t||this._hammer.get(t).set({enable:!0}),this._hammer.on(t,e),(this._callbacks[t]||(this._callbacks[t]=[])).push(e)},t.prototype.off=function(t,e){this._hammer.off(t,this._callbacks[t]?e:null)},t.prototype.listen=function(){this.isListening||(this._hammer=Ri(this.element,this._options)),this.isListening=!0},t.prototype.unlisten=function(){var t,e;if(this._hammer&&this.isListening){for(t in this._callbacks)for(e=0;e<this._callbacks[t].length;e++)this._hammer.off(t,this._callbacks[t]);this._hammer.destroy()}this._callbacks={},this._hammer=null,this.isListening=!1},t.prototype.destroy=function(){this.unlisten(),this.element=this._options=null}}();var xj=function(){function t(){this._channels=[]}return t.prototype.subscribe=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this._channels[t]||(this._channels[t]=[]),n.forEach(function(n){e._channels[t].push(n)})},t.prototype.unsubscribe=function(t,e){void 0===e&&(e=null);var n=this._channels[t];if(!n)return!1;if(!e)return delete this._channels[t],!0;var i=n.indexOf(e);return!(i<0)&&(n.splice(i,1),n.length||delete this._channels[t],!0)},t.prototype.publish=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this._channels[t];if(!i)return null;var o=[];return i.forEach(function(t){o.push(t.apply(void 0,e))}),o},t}(),Ej=this&&this.__extends||function(){var t=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])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pj=(function(t){function e(){return t.call(this,!1)||this}Ej(e,t),e.prototype.handleError=function(e){t.prototype.handleError.call(this,e);try{var n=window,i=void 0;(i=n.IonicDevServer)&&i.handleError&&i.handleError(e),(i=(n.Ionic=n.Ionic||{}).Monitor)&&i.handleError&&i.handleError(e)}catch(t){}}}(Qo.q),{core:{settings:{mode:"md",keyboardHeight:290}},mobile:{},phablet:{isMatch:function(t){var e=Math.min(t.width(),t.height()),n=Math.max(t.width(),t.height());return e>390&&e<520&&n>620&&n<800}},tablet:{isMatch:function(t){var e=Math.min(t.width(),t.height()),n=Math.max(t.width(),t.height());return e>460&&e<820&&n>780&&n<1400}},android:{superset:"mobile",subsets:["phablet","tablet"],settings:{activator:function(t){if(t.testNavigatorPlatform("linux")){var e=t.matchUserAgentVersion(/Chrome\/(\d+).(\d+)?/);if(e)return parseInt(e.major,10)<36||t.version().major<5?"none":"ripple";if(t.version().major<5)return"none"}return"ripple"},autoFocusAssist:"immediate",inputCloning:!0,scrollAssist:!0,hoverCSS:!1,keyboardHeight:300,mode:"md"},isMatch:function(t){return t.isPlatformMatch("android",["android","silk"],["windows phone"])},versionParser:function(t){return t.matchUserAgentVersion(/Android (\d+).(\d+)?/)}},ios:{superset:"mobile",subsets:["ipad","iphone"],settings:{autoFocusAssist:"delay",hideCaretOnScroll:!0,hoverCSS:!1,inputBlurring:ye,inputCloning:ye,keyboardHeight:300,mode:"ios",scrollAssist:ye,statusbarPadding:ge,swipeBackEnabled:ye,tapPolyfill:we,virtualScrollEventAssist:we,disableScrollAssist:ye,keyboardResizes:Yi,resizeAssist:Yi},isMatch:function(t){return t.isPlatformMatch("ios",["iphone","ipad","ipod"],["windows phone"])},versionParser:function(t){return t.matchUserAgentVersion(/OS (\d+)_(\d+)?/)}},ipad:{superset:"tablet",settings:{keyboardHeight:500},isMatch:function(t){return t.isPlatformMatch("ipad")}},iphone:{subsets:["phablet"],isMatch:function(t){return t.isPlatformMatch("iphone")}},windows:{superset:"mobile",subsets:["phablet","tablet"],settings:{mode:"wp",autoFocusAssist:"immediate",hoverCSS:!1},isMatch:function(t){return t.isPlatformMatch("windows",["windows phone"])},versionParser:function(t){return t.matchUserAgentVersion(/Windows Phone (\d+).(\d+)?/)}},cordova:{isEngine:!0,initialize:function(t){t.prepareReady=function(){t.windowLoad(function(e,n){n.addEventListener("deviceready",function(){n.addEventListener("backbutton",function(e){t.zone.run(function(){t.backButton.emit(e)})}),n.addEventListener("pause",function(e){t.zone.run(function(){t.pause.emit(e)})}),n.addEventListener("resume",function(e){t.zone.run(function(){t.resume.emit(e)})}),t.exitApp=function(){e.navigator.app.exitApp()},t.triggerReady("cordova")})})}},isMatch:function(t){return ge(t)}},electron:{superset:"core",initialize:function(t){t.prepareReady=function(){t.windowLoad(function(){t.triggerReady("electron")})}},isMatch:function(t){return ve(t)}}}),Ij=new Qo.x("PLTCONFIG"),Dj={activator:"highlight",actionSheetEnter:"action-sheet-slide-in",actionSheetLeave:"action-sheet-slide-out",alertEnter:"alert-pop-in",alertLeave:"alert-pop-out",backButtonText:"Back",backButtonIcon:"ios-arrow-back",iconMode:"ios",loadingEnter:"loading-pop-in",loadingLeave:"loading-pop-out",menuType:"reveal",modalEnter:"modal-slide-in",modalLeave:"modal-slide-out",pageTransition:"ios-transition",pickerEnter:"picker-slide-in",pickerLeave:"picker-slide-out",pickerRotateFactor:-.46,pickerScaleFactor:1,popoverEnter:"popover-pop-in",popoverLeave:"popover-pop-out",spinner:"ios",tabsHighlight:!1,tabsPlacement:"bottom",tabsHideOnSubPages:!1,toastEnter:"toast-slide-in",toastLeave:"toast-slide-out"},Aj={activator:"ripple",actionSheetEnter:"action-sheet-md-slide-in",actionSheetLeave:"action-sheet-md-slide-out",alertEnter:"alert-md-pop-in",alertLeave:"alert-md-pop-out",backButtonText:"",backButtonIcon:"md-arrow-back",iconMode:"md",loadingEnter:"loading-md-pop-in",loadingLeave:"loading-md-pop-out",menuType:"overlay",modalEnter:"modal-md-slide-in",modalLeave:"modal-md-slide-out",pageTransition:"md-transition",pickerEnter:"picker-slide-in",pickerLeave:"picker-slide-out",pickerRotateFactor:0,pickerScaleFactor:.81,popoverEnter:"popover-md-pop-in",popoverLeave:"popover-md-pop-out",spinner:"crescent",tabsHighlight:!1,tabsPlacement:"bottom",tabsHideOnSubPages:!1,toastEnter:"toast-md-slide-in",toastLeave:"toast-md-slide-out"},Nj={activator:"highlight",actionSheetEnter:"action-sheet-wp-slide-in",actionSheetLeave:"action-sheet-wp-slide-out",alertEnter:"alert-wp-pop-in",alertLeave:"alert-wp-pop-out",backButtonText:"",backButtonIcon:"ios-arrow-back",iconMode:"ios",loadingEnter:"loading-wp-pop-in",loadingLeave:"loading-wp-pop-out",menuType:"overlay",modalEnter:"modal-md-slide-in",modalLeave:"modal-md-slide-out",pageTransition:"wp-transition",pickerEnter:"picker-slide-in",pickerLeave:"picker-slide-out",pickerRotateFactor:0,pickerScaleFactor:.81,popoverEnter:"popover-md-pop-in",popoverLeave:"popover-md-pop-out",spinner:"circles",tabsHighlight:!1,tabsPlacement:"top",tabsHideOnSubPages:!0,toastEnter:"toast-wp-slide-in",toastLeave:"toast-wp-slide-out"},Bj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Jo.__extends)(e,t),e.prototype.buildHammer=function(t){var e=new window.Hammer(t);for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},e}(Ko.g);Bj=Object(Jo.__decorate)([Object(Qo.w)()],Bj);var Lj=n(2),zj=function(){function t(t,e,n,i,o){this.plt=n,this.elementRef=i,this.renderer=o,this._showing=!1,t._clickBlock=this,(this.isEnabled=e.getBoolean("clickBlock",!0))&&this._setElementClass("click-block-enabled",!0)}return t.prototype.activate=function(t,e,n){void 0===e&&(e=100),void 0===n&&(n=0),this.isEnabled&&(this.plt.cancelTimeout(this._tmr),t&&(this._start=Date.now(),this._minEnd=this._start+(n||0),this._activate(!0)),this._tmr=this.plt.timeout(this._activate.bind(this,!1),e))},t.prototype._activate=function(t){if(this._showing!==t){if(!t){var e=Date.now();if(e<this._minEnd)return void(this._tmr=this.plt.timeout(this._activate.bind(this,!1),this._minEnd-e))}this._setElementClass("click-block-active",t),this._showing=t}},t.prototype._setElementClass=function(t,e){this.renderer.setElementClass(this.elementRef.nativeElement,t,e)},t}();zj=Object(Jo.__decorate)([Object(Qo.o)({selector:".click-block"}),Object(Jo.__param)(0,Object(Qo.v)(Object(Qo._4)(function(){return Mr}))),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Mj=void 0!==Mr&&Mr)&&Mj||Object,"function"==typeof(Rj=void 0!==er&&er)&&Rj||Object,"function"==typeof(Fj=void 0!==yr&&yr)&&Fj||Object,"function"==typeof(Hj=void 0!==Qo.p&&Qo.p)&&Hj||Object,"function"==typeof(Vj=void 0!==Qo.N&&Qo.N)&&Vj||Object])],zj);var Mj,Rj,Fj,Hj,Vj,Wj=Yj=function(){function t(){}return t.forRoot=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),{ngModule:Yj,providers:[{provide:Js,useValue:t},{provide:nr,useValue:e},{provide:Qr,useValue:n},{provide:Lj.a,useValue:"/"},{provide:Ij,useFactory:Gi},{provide:yr,useFactory:F,deps:[Ko.b,Ij,Qo.G]},{provide:er,useFactory:C,deps:[nr,yr]},{provide:Qo.c,useFactory:Xi,deps:[er],multi:!0},{provide:Qo.c,useFactory:qi,deps:[yr,es],multi:!0},{provide:Qo.c,useFactory:Fn,deps:[er,yr,es,Mr,_s],multi:!0},{provide:Qo.c,useFactory:Wt,deps:[er,Qr,M_,Qo.G],multi:!0},{provide:Ko.f,useClass:Bj},{provide:Qo.a,useValue:t,multi:!0},Pa,Ka,Mr,es,xj,El,_s,eu,Wl,hh,Lj.e,fr,af,B_,xu,Qf,gO,qv,Ls,{provide:M_,useFactory:Ht,deps:[B_,Qo.y]},{provide:Lj.f,useFactory:Ui,deps:[Lj.q,[new Qo.v(Lj.a),new Qo.H],er]},{provide:Gr,useFactory:G,deps:[Mr,Qr]},{provide:Jr,useFactory:nt,deps:[Mr,Gr,Lj.e,M_,Qo.l]}]}},t}();Wj=Yj=Object(Jo.__decorate)([Object(Qo.D)({declarations:[ha,Aa,zj,ta,Rs,tl,el,ol,ll,dl,bl,yl,Sl,qc,Kc,Pp,oc,rp,fp,kp,vp,Ip,Ap,Bl,Rp,$p,Pc,hd,_d,gd,vd,jc,Nd,Rl,kd,Gd,qd,$d,Uh,h_,S_,V_,Ph,pf,hf,mf,vf,jf,kf,_u,iu,Ef,cb,nb,mb,Eb,Pb,qb,Dp,Xb,Zb,cm,am,gm,fm,Im,Nm,Cg,ng,Eg,yh,Jg,mv,Ng,zg,td,Ay,wv,Zv,ay,dy,my,Oy,Ty,m_,Ny,My,Fy,Vy,$y],imports:[Lj.b,xl.d,xl.i],exports:[Lj.b,xl.d,xl.i,ha,Aa,zj,ta,Rs,tl,el,ol,ll,dl,bl,yl,Sl,qc,Kc,Pp,oc,rp,fp,kp,vp,Ip,Ap,Bl,Rp,$p,Pc,hd,_d,gd,vd,jc,Nd,Rl,kd,Gd,qd,$d,Uh,h_,S_,V_,Ph,pf,hf,mf,vf,jf,kf,_u,iu,Ef,cb,nb,mb,Eb,Pb,qb,Dp,Xb,Zb,cm,am,gm,fm,Im,Nm,Cg,ng,Eg,yh,Jg,mv,Ng,zg,td,Ay,wv,Zv,ay,dy,my,Oy,Ty,m_,Ny,My,Fy,Vy,$y],entryComponents:[ha,Aa,ta,$d,V_,_u,Ef,fm,wv]})],Wj);var qj=Gj=function(){function t(){}return t.forChild=function(t){return{ngModule:Gj,providers:[{provide:z_,useValue:t},{provide:Qo.a,useValue:t,multi:!0}]}},t}();qj=Gj=Object(Jo.__decorate)([Object(Qo.D)({imports:[Wj],exports:[Wj]})],qj);var Yj,Gj,Xj=function(){function t(t,e){this.viewCtrl=t,this.myParam=e.get("myParam")}return t.prototype.dismiss=function(){this.viewCtrl.dismiss()},t}();Xj=Object(Jo.__decorate)([Object(Qo.k)({templateUrl:"modal-page.html"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Uj=void 0!==or&&or)&&Uj||Object,"function"==typeof(Zj=void 0!==ir&&ir)&&Zj||Object])],Xj);var Uj,Zj,$j=function(){function t(t){this.modalCtrl=t,this.myParam=""}return t.prototype.openBasicModal=function(){this.modalCtrl.create(Xj).present()},t.prototype.openModalWithParams=function(){this.modalCtrl.create(Xj,{myParam:this.myParam}).present()},t}();$j=Object(Jo.__decorate)([Object(Qo.k)({templateUrl:"page-one.html"}),Object(Jo.__metadata)("design:paramtypes",["function"==typeof(Kj=void 0!==af&&af)&&Kj||Object])],$j);var Kj,Qj=function(){return function(){this.root=$j}}();Qj=Object(Jo.__decorate)([Object(Qo.k)({template:'<ion-nav [root]="root"></ion-nav>'})],Qj);var Jj=function(){return function(){}}();Jj=Object(Jo.__decorate)([Object(Qo.D)({declarations:[$j],imports:[qj.forChild($j)],entryComponents:[$j]})],Jj);var tw=function(){return function(){}}();tw=Object(Jo.__decorate)([Object(Qo.D)({declarations:[Xj],imports:[qj.forChild(Xj)],entryComponents:[Xj]})],tw);var ew=function(){return function(){}}();ew=Object(Jo.__decorate)([Object(Qo.D)({declarations:[Qj],imports:[Ko.a,Wj.forRoot(Qj,{},{links:[]}),Jj,tw],bootstrap:[ta]})],ew);var nw=[],iw=Qo._14({encapsulation:2,styles:nw,data:{}}),ow=(Qo._12("[ion-button]",ll,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["ion-button",""]],null,null,null,Zi,iw)),Qo._15(1097728,null,0,ll,[[8,""],er,Qo.p,Qo.N],null,null)],null,null)},{color:"color",mode:"mode",large:"large",small:"small",default:"default",outline:"outline",clear:"clear",solid:"solid",round:"round",block:"block",full:"full",strong:"strong"},{},["*"]),[]),rw=Qo._14({encapsulation:2,styles:ow,data:{}}),sw=Qo._12("ion-action-sheet",ha,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-action-sheet",[["role","dialog"]],[[1,"aria-labelledby",0],[1,"aria-describedby",0]],[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1).keyUp(n)&&i),i},no,rw)),Qo._15(180224,null,0,ha,[or,er,Qo.p,_s,ir,Qo.N],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1).hdrId,Qo._31(e,1).descId)})},{},{},[]),aw=[],lw=Qo._14({encapsulation:2,styles:aw,data:{}}),cw=Qo._12("ion-alert",Aa,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-alert",[["role","dialog"]],[[1,"aria-labelledby",0],[1,"aria-describedby",0]],[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1).keyUp(n)&&i),i},_o,lw)),Qo._15(180224,null,0,Aa,[or,Qo.p,er,_s,ir,Qo.N,yr],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1).hdrId,Qo._31(e,1).descId)})},{},{},[]),uw=[],pw=Qo._14({encapsulation:2,styles:uw,data:{}}),dw=Qo._12("ion-app",ta,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-app",[],null,null,null,fo,pw)),Qo._15(114688,null,0,ta,[Js,Qo.l,Qo.p,Qo.N,er,yr,Mr],null,null)],function(t,e){t(e,1,0)},null)},{color:"color",mode:"mode"},{},[]),hw=[],_w=Qo._14({encapsulation:2,styles:hw,data:{}}),fw=(Qo._12("ion-spinner",Eg,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-spinner",[],[[2,"spinner-paused",null]],null,null,go,_w)),Qo._15(114688,null,0,Eg,[er,Qo.p,Qo.N],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,Qo._31(e,1)._paused)})},{color:"color",mode:"mode",name:"name",duration:"duration",paused:"paused"},{},[]),[]),bw=Qo._14({encapsulation:2,styles:fw,data:{}}),mw=Qo._12("ion-loading",$d,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-loading",[["role","dialog"]],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1).keyUp(n)&&i),i},Oo,bw)),Qo._15(245760,null,0,$d,[or,er,Qo.p,_s,ir,Qo.N],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),gw=[],vw=Qo._14({encapsulation:2,styles:gw,data:{}}),yw=Qo._12("ion-modal",V_,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-modal",[],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1)._keyUp(n)&&i),i},jo,vw)),Qo._15(180224,null,0,V_,[Qo.l,Qo.N,Qo.p,ir,or,_s,M_],null,null)],null,null)},{},{},[]),Ow=[],jw=Qo._14({encapsulation:2,styles:Ow,data:{}}),ww=(Qo._12(".picker-col",iu,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"div",[["class","picker-col"]],[[4,"max-width",null],[2,"picker-opts-left",null],[2,"picker-opts-right",null]],null,null,ko,jw)),Qo._15(4374528,null,0,iu,[er,yr,Qo.p,Qo.G,eu,yr,es],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1).col.columnWidth,"left"==Qo._31(e,1).col.align,"right"==Qo._31(e,1).col.align)})},{col:"col"},{ionChange:"ionChange"},[]),[]),Sw=Qo._14({encapsulation:2,styles:ww,data:{}}),Cw=Qo._12("ion-picker-cmp",_u,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-picker-cmp",[["role","dialog"]],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1)._keyUp(n)&&i),i},Eo,Sw)),Qo._15(180224,null,0,_u,[or,Qo.p,er,_s,ir,Qo.N],null,null)],null,null)},{},{},[]),kw=[],Tw=Qo._14({encapsulation:2,styles:kw,data:{}}),xw=Qo._12("ion-popover",Ef,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-popover",[],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==Qo._31(t,1)._keyUp(n)&&i),i},Po,Tw)),Qo._15(180224,null,0,Ef,[Qo.l,Qo.p,Qo.N,er,ir,or,_s,M_],null,null)],null,null)},{},{},[]),Ew=[],Pw=Qo._14({encapsulation:2,styles:Ew,data:{}}),Iw=(Qo._12("ion-reorder",qd,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-reorder",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==Qo._31(t,1).onClick(n)&&i),i},Io,Pw)),Qo._15(49152,null,0,qd,[Qo.p],null,null)],null,null)},{},{},[]),[]),Dw=Qo._14({encapsulation:2,styles:Iw,data:{}}),Aw=(Qo._12("ion-list-header,ion-item,[ion-item],ion-item-divider",Pc,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,4,"ion-list-header",[["class","item"]],null,null,null,No,Dw)),Qo._15(1097728,null,3,Pc,[El,er,Qo.p,Qo.N,[2,jc]],null,null),Qo._34(335544320,1,{contentLabel:0}),Qo._34(603979776,2,{_buttons:1}),Qo._34(603979776,3,{_icons:1})],null,null)},{color:"color",mode:"mode"},{},["[item-start],[item-left],ion-checkbox:not([item-end]):not([item-right])","ion-label","*","ion-select,ion-input,ion-textarea,ion-datetime,ion-range,[item-content]","[item-end],[item-right],ion-radio,ion-toggle"]),[]),Nw=Qo._14({encapsulation:2,styles:Aw,data:{}}),Bw=(Qo._12("ion-radio",cb,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-radio",[],[[2,"radio-disabled",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==Qo._31(t,1)._click(n)&&i),i},Bo,Nw)),Qo._15(245760,null,0,cb,[El,er,Qo.p,Qo.N,[2,Pc],[2,nb]],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,Qo._31(e,1)._disabled)})},{color:"color",mode:"mode",value:"value",checked:"checked",disabled:"disabled"},{ionSelect:"ionSelect"},[]),[]),Lw=Qo._14({encapsulation:2,styles:Bw,data:{}}),zw=Qo._12("ng-component",fm,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ng-component",[],null,null,null,zo,Lw)),Qo._15(114688,null,0,fm,[ir,or],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Mw=[],Rw=Qo._14({encapsulation:2,styles:Mw,data:{}}),Fw=Qo._12("ion-toast",wv,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-toast",[["role","dialog"]],[[1,"aria-labelledby",0],[1,"aria-describedby",0]],null,null,Fo,Rw)),Qo._15(4243456,null,0,wv,[or,er,Qo.p,ir,Qo.N],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1).hdrId,Qo._31(e,1).descId)})},{},{},[]),Hw=[],Vw=Qo._14({encapsulation:2,styles:Hw,data:{}}),Ww=(Qo._12("ion-navbar",m_,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Ho,Vw)),Qo._15(49152,null,0,m_,[Mr,[2,or],[2,gs],er,Qo.p,Qo.N],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1)._hidden,Qo._31(e,1)._sbPadding)})},{color:"color",mode:"mode",hideBackButton:"hideBackButton"},{},["[menuToggle],ion-buttons[left]","ion-buttons[start]","ion-buttons[end],ion-buttons[right]","*"]),[]),qw=Qo._14({encapsulation:2,styles:Ww,data:{}}),Yw=(Qo._12("ion-title",Ty,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-title",[],null,null,null,Vo,qw)),Qo._15(49152,null,0,Ty,[er,Qo.p,Qo.N,[2,my],[2,m_]],null,null)],null,null)},{color:"color",mode:"mode"},{},["*"]),[]),Gw=Qo._14({encapsulation:2,styles:Yw,data:{}}),Xw=(Qo._12("ion-content",oc,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ion-content",[],[[2,"statusbar-padding",null],[2,"has-refresher",null]],[["window","resize"]],function(t,e,n){var i=!0;return"window:resize"===e&&(i=!1!==Qo._31(t,1).resize()&&i),i},Wo,Gw)),Qo._15(4374528,null,0,oc,[er,yr,es,Qo.p,Qo.N,Mr,Wl,Qo.G,[2,or],[2,gs]],null,null)],null,function(t,e){t(e,0,0,Qo._31(e,1).statusbarPadding,Qo._31(e,1)._hasRefresher)})},{color:"color",mode:"mode",fullscreen:"fullscreen",scrollDownOnLoad:"scrollDownOnLoad"},{ionScrollStart:"ionScrollStart",ionScroll:"ionScroll",ionScrollEnd:"ionScrollEnd"},["[ion-fixed],ion-fab","*","ion-refresher"]),[]),Uw=Qo._14({encapsulation:2,styles:Xw,data:{}}),Zw=(Qo._12("ion-select",gm,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,3,"ion-select",[],[[2,"select-disabled",null]],[[null,"click"],[null,"keyup.space"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==Qo._31(t,2)._click(n)&&i),"keyup.space"===e&&(i=!1!==Qo._31(t,2)._keyup()&&i),i},Go,Uw)),Qo._33(5120,null,xl.e,function(t){return[t]},[gm]),Qo._15(1228800,null,1,gm,[Mr,El,er,Qo.p,Qo.N,[2,Pc],Jr],null,null),Qo._34(603979776,1,{options:1})],null,function(t,e){t(e,0,0,Qo._31(e,2)._disabled)})},{color:"color",mode:"mode",disabled:"disabled",cancelText:"cancelText",okText:"okText",placeholder:"placeholder",selectOptions:"selectOptions",interface:"interface",selectedText:"selectedText",compareWith:"compareWith",multiple:"multiple"},{ionFocus:"ionFocus",ionChange:"ionChange",ionBlur:"ionBlur",ionCancel:"ionCancel"},[]),[]),$w=Qo._14({encapsulation:2,styles:Zw,data:{}}),Kw=Qo._12("ng-component",$j,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ng-component",[],null,null,null,Xo,$w)),Qo._15(49152,null,0,$j,[af],null,null)],null,null)},{},{},[]),Qw=[],Jw=Qo._14({encapsulation:2,styles:Qw,data:{}}),tS=Qo._12("ng-component",Xj,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ng-component",[],null,null,null,Uo,Jw)),Qo._15(49152,null,0,Xj,[or,ir],null,null)],null,null)},{},{},[]),eS=[],nS=Qo._14({encapsulation:2,styles:eS,data:{}}),iS=(Qo._12("ion-nav",Ph,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,2,"ion-nav",[],null,null,null,Zo,nS)),Qo._33(6144,null,vh,null,[Ph]),Qo._15(4374528,null,0,Ph,[[2,or],[2,gs],Mr,er,yr,Qo.p,Qo.G,Qo.N,Qo.l,_s,Ls,[2,Jr],es,Qo.q],null,null)],null,null)},{color:"color",mode:"mode",swipeBackEnabled:"swipeBackEnabled",root:"root",rootParams:"rootParams",name:"name"},{},[]),[]),oS=Qo._14({encapsulation:2,styles:iS,data:{}}),rS=Qo._12("ng-component",Qj,function(t){return Qo._37(0,[(t()(),Qo._17(0,null,null,1,"ng-component",[],null,null,null,$o,oS)),Qo._15(49152,null,0,Qj,[],null,null)],null,null)},{},{},[]),sS=Qo._13(ew,[ta],function(t){return Qo._28([Qo._29(512,Qo.l,Qo._9,[[8,[sw,cw,dw,mw,yw,Cw,xw,zw,Fw,Kw,tS,rS]],[3,Qo.l],Qo.E]),Qo._29(5120,Qo.C,Qo._27,[[3,Qo.C]]),Qo._29(4608,Lj.k,Lj.j,[Qo.C]),Qo._29(5120,Qo.b,Qo._18,[]),Qo._29(5120,Qo.A,Qo._24,[]),Qo._29(5120,Qo.B,Qo._25,[]),Qo._29(4608,Ko.c,Ko.t,[Lj.c]),Qo._29(6144,Qo.R,null,[Ko.c]),Qo._29(4608,Ko.f,Bj,[]),Qo._29(5120,Ko.d,function(t,e,n,i){return[new Ko.l(t),new Ko.p(e),new Ko.o(n,i)]},[Lj.c,Lj.c,Lj.c,Ko.f]),Qo._29(4608,Ko.e,Ko.e,[Ko.d,Qo.G]),Qo._29(135680,Ko.n,Ko.n,[Lj.c]),Qo._29(4608,Ko.m,Ko.m,[Ko.e,Ko.n]),Qo._29(6144,Qo.P,null,[Ko.m]),Qo._29(6144,Ko.q,null,[Ko.n]),Qo._29(4608,Qo.U,Qo.U,[Qo.G]),Qo._29(4608,Ko.h,Ko.h,[Lj.c]),Qo._29(4608,Ko.j,Ko.j,[Lj.c]),Qo._29(4608,xl.k,xl.k,[]),Qo._29(4608,xl.c,xl.c,[]),Qo._29(4608,Pa,Pa,[Mr,er]),Qo._29(4608,Ka,Ka,[Mr,er]),Qo._29(4608,xj,xj,[]),Qo._29(4608,El,El,[]),Qo._29(4608,eu,eu,[yr]),Qo._29(4608,Wl,Wl,[er,yr,Qo.G,es]),Qo._29(4608,hh,hh,[Mr,er]),Qo._29(5120,Lj.f,Ui,[Lj.q,[2,Lj.a],er]),Qo._29(4608,Lj.e,Lj.e,[Lj.f]),Qo._29(5120,Gr,G,[Mr,Qr]),Qo._29(5120,Jr,nt,[Mr,Gr,Lj.e,M_,Qo.l]),Qo._29(4608,af,af,[Mr,er,Jr]),Qo._29(4608,xu,xu,[Mr,er]),Qo._29(4608,Qf,Qf,[Mr,er,Jr]),Qo._29(4608,gO,gO,[er,yr,es,Mr,_s]),Qo._29(4608,qv,qv,[Mr,er]),Qo._29(4608,Ls,Ls,[yr,er]),Qo._29(512,Lj.b,Lj.b,[]),Qo._29(1024,Qo.q,Ko.r,[]),Qo._29(256,nr,{},[]),Qo._29(1024,Ij,Gi,[]),Qo._29(1024,yr,F,[Ko.b,Ij,Qo.G]),Qo._29(1024,er,C,[nr,yr]),Qo._29(512,es,es,[yr]),Qo._29(512,fr,fr,[]),Qo._29(512,Mr,Mr,[er,yr,[2,fr]]),Qo._29(512,_s,_s,[Mr]),Qo._29(256,Qr,{links:[]},[]),Qo._29(512,Qo.j,Qo.j,[]),Qo._29(512,B_,B_,[Qo.j]),Qo._29(1024,M_,Ht,[B_,Qo.y]),Qo._29(1024,Qo.c,function(t,e,n,i,o,r,s,a,l,c,u,p,d,h){return[Ko.s(t,e),Xi(n),qi(i,o),Fn(r,s,a,l,c),Wt(u,p,d,h)]},[[2,Ko.i],[2,Qo.F],er,yr,es,er,yr,es,Mr,_s,er,Qr,M_,Qo.G]),Qo._29(512,Qo.d,Qo.d,[[2,Qo.c]]),Qo._29(131584,Qo._16,Qo._16,[Qo.G,Qo._10,Qo.y,Qo.q,Qo.l,Qo.d]),Qo._29(2048,Qo.f,null,[Qo._16]),Qo._29(512,Qo.e,Qo.e,[Qo.f]),Qo._29(512,Ko.a,Ko.a,[[3,Ko.a]]),Qo._29(512,xl.j,xl.j,[]),Qo._29(512,xl.d,xl.d,[]),Qo._29(512,xl.i,xl.i,[]),Qo._29(512,Wj,Wj,[]),Qo._29(512,qj,qj,[]),Qo._29(512,Jj,Jj,[]),Qo._29(512,tw,tw,[]),Qo._29(512,ew,ew,[]),Qo._29(256,z_,Xj,[]),Qo._29(256,Js,Qj,[]),Qo._29(256,Lj.a,"/",[])])});Object(Qo._3)(),Object(Ko.k)().bootstrapModuleFactory(sS)},43:function(t,e){},44:function(t,e){},51:function(t,e){},52:function(t,e){},53:function(t,e){},54:function(t,e){}},[25]);