text: webpackJsonp([0],{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},26: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=26},27: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){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 s(t){return"string"==typeof t}function l(t){return"number"==typeof t}function a(t){return"function"==typeof t}function u(t){return void 0!==t}function c(t){return void 0===t}function h(t){return void 0!==t&&null!==t}function p(t){return void 0===t||null===t}function d(t){return"object"==typeof t}function f(t){return Array.isArray(t)}function _(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 v(t,e){var n=t.indexOf(e);return!!~n&&!!t.splice(n,1)}function g(t,e,n){return!e&&n||t&&e}function y(t){if(!0===sn)return t()}function b(t,e){if(!t&&!0===sn){var n="IONIC ASSERT: "+e;throw console.error(n),new Error(n)}}function w(t,e){var n=new ln;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 C(t,e,n){return"function"==typeof e?Promise.resolve(new cn(e,n)):"string"==typeof e?t.getComponentFromName(e).then(function(t){var i=new cn(t,n);return i.id=e,i}):Promise.resolve(null)}function T(t,e,n){return e?k(e)?Promise.resolve(e):C(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?T(t,o.page,o.params):T(t,o,null))}return Promise.all(n)}function S(t){return!!t&&!!t.getSelected}function O(t){return!!t&&h(t._tabId)}function P(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 x(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 B(t){return!!t&&("TEXTAREA"===t.tagName||"true"===t.contentEditable||"INPUT"===t.tagName&&!kn.test(t.type))}function I(t,e,n){var i=new Tn;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 D(t,e){if(t.id===e||t.name===e)return t;for(var n=0,i=t.getAllChildNavs();n<i.length;n++){var o=D(i[n],e);if(o)return o}return null}function A(t){if(!t)return null;if(S(t))return A(t.parent);var e=t.length();return e>1||t._isPortal&&e>0?t:A(t.parent)}function L(t){var e=[],n=t.getActiveChildNavs();return n&&n.length?n.forEach(function(t){var n=L(t);e=e.concat(n)}):e.push(t),e}function R(t){for(t=(t=t.replace(ni,"-")).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 j(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 M(t,e){return new Kn(t,e)}function N(t,e,n){return function(t,e){for(var n=[],i=0;i<e.length;i++)for(var o=function(t,e){if(t.navId){var n=e.getNavByIdOrName(t.navId);return n?[n]:[]}return e.getRootNavs()}(e[i].navGroup,t),r=0,s=e[i].segments;r<s.length;r++){var l=s[r];if(1===o.length)n.push(F(l,o[0])),o=o[0].getActiveChildNavs();else{if(!(o.length>1))break;n.push(F(l,o[o.length-1])),o=o[o.length-1].getActiveChildNavs()}}return n}(t,function(t,e){return function(t,e){for(var n=[],i=new Set,o=0,r=t;o<r.length;o++){for(var s=r[o],l=[],a=s.segmentPieces.concat([]),u=a.length;u>=0;u--){for(var c=!1,h=0;h<u;h++){for(var p=u-h-1,d=u,f=a.slice(p,d),_=0,m=e;_<m.length;_++){var v=m[_];if(!i.has(v.name)){var g=function(t,e){if(e.segmentPartsLen!==t.length)return null;for(var n=0;n<t.length;n++)if(!Jn(t[n],e.segmentParts[n]))return null;return{id:t.join("/"),name:e.name,component:e.component,loadChildren:e.loadChildren,data:Qn(t,e),defaultHistory:e.defaultHistory}}(f,v);if(g){u=p+1,i.add(v.name),c=!0,l.push(g);for(var y=p;y<d;y++)a[y]=null;break}}}if(c)break}!c&&a[u-1]&&l.push({id:null,name:null,secondaryId:a[u-1],component:null,loadChildren:null,data:null,defaultHistory:null})}for(var b=l.reverse(),u=0;u<b.length;u++)b[u].secondaryId&&!b[u].id&&u+1<=b.length-1&&(b[u+1].secondaryId=b[u].secondaryId,b[u]=null);var w=l.filter(function(t){return!!t});s.secondaryId&&l.length&&(w[0].secondaryId=s.secondaryId),n.push({navGroup:s,segments:w})}return n}(function(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(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}(t)),e)}(e,n))}function F(t,e){var n=Object.assign({},t);return n.type=e.getType(),n.navId=e.name||e.id,n.secondaryId=t.secondaryId,n}function V(t,e,n,i,o){var r=new oi(t,e,n,i,o);return r.init(),r}function z(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 q(t,e){return t.top<e.top?-1:t.top>e.top?1:0}function H(t){return t.indexOf("px")>0?parseInt(t,10):0}function W(t){return t>0?t+"px":""}function U(t){return t.$ionIndex}function Y(t,e){for(var n=0;t&&n<4;){if(void 0!==U(t))return e&&t.parentNode!==e?null:t;t=t.parentNode,n++}return null}function X(t,e){return new kr(t,e)}function $(t,e,n,i){return function(){!function(t){"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,500)}(function(){i.runOutsideAngular(function(){!function(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)});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)})}(t,e,n)})})}}function Z(t){var e=t.win();return!!(e.cordova||e.PhoneGap||e.phonegap)}function G(t){return t.testNavigatorPlatform("iphone|ipad|ipod")}function K(t){return t.testUserAgent("Safari")}function J(t){return G(t)&&!function(t){return G(t)&&!!t.win().webkit}(t)&&!K(t)}function Q(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 tt(t){for(var e=t,n=0;n<10&&e;n++){if(function(t){if(Ds.indexOf(t.tagName)>-1)return!0;for(var e=0,n=As.length;e<n;e++)if(t.hasAttribute&&t.hasAttribute(As[e]))return!0;return!1}(e))return e;e=e.parentElement}return null}function et(t,e,n,i,o){return function(){return new Is(t,e,n,i,o)}}function nt(t,e,n){return setTimeout(st(t,n),e)}function it(t,e,n){return!!Array.isArray(t)&&(ot(t,n[e],n),!0)}function ot(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 rt(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 st(t,e){return function(){return t.apply(e,arguments)}}function lt(t,e){return typeof t==Vs?t.apply(e?e[0]||void 0:void 0,e):t}function at(t,e){return void 0===t?e:t}function ut(t,e,n){ot(dt(e),function(e){t.addEventListener(e,n,!1)})}function ct(t,e,n){ot(dt(e),function(e){t.removeEventListener(e,n,!1)})}function ht(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function pt(t,e){return t.indexOf(e)>-1}function dt(t){return t.trim().split(/\s+/g)}function ft(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 _t(t){return Array.prototype.slice.call(t,0)}function mt(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];ft(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 vt(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r<Ns.length;){if(n=Ns[r],(i=n?n+o:e)in t)return i;r++}}function gt(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function yt(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){lt(t.options.enable,[t])&&n.handler(e)},this.init()}function bt(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&Zs&&i-o==0,s=e&(Ks|Js)&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=wt(e));o>1&&!n.firstMultiple?n.firstMultiple=wt(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,l=s?s.center:r.center,a=e.center=kt(i);e.timeStamp=Hs(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=St(l,a),e.distance=Et(l,a),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==Zs&&r.eventType!==Ks||(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)}(n,e),e.offsetDirection=Tt(e.deltaX,e.deltaY);var u=Ct(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=qs(u.x)>qs(u.y)?u.x:u.y,e.scale=s?function(t,e){return Et(e[0],e[1],al)/Et(t[0],t[1],al)}(s.pointers,i):1,e.rotation=s?function(t,e){return St(e[1],e[0],al)+St(t[1],t[0],al)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,o,r,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=Js&&(l>$s||void 0===s.velocity)){var a=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Ct(l,a,u);i=c.x,o=c.y,n=qs(c.x)>qs(c.y)?c.x:c.y,r=Tt(a,u),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}(n,e);var c=t.element;ht(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function wt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:zs(t.pointers[n].clientX),clientY:zs(t.pointers[n].clientY)},n++;return{timeStamp:Hs(),pointers:e,center:kt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function kt(t){var e=t.length;if(1===e)return{x:zs(t[0].clientX),y:zs(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:zs(n/e),y:zs(i/e)}}function Ct(t,e,n){return{x:e/t||0,y:n/t||0}}function Tt(t,e){return t===e?Qs:qs(t)>=qs(e)?t<0?tl:el:e<0?nl:il}function Et(t,e,n){n||(n=ll);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function St(t,e,n){n||(n=ll);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function Ot(t,e){this.evEl=cl,this.evWin=hl,this.allow=!0,this.pressed=!1,yt.apply(this,arguments)}function Pt(){this.evEl=fl,this.evWin=_l,yt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function xt(){this.evTarget=vl,this.evWin=gl,this.started=!1,yt.apply(this,arguments)}function Bt(t,e){this.evTarget=bl,this.targetIds={},yt.apply(this,arguments)}function It(){yt.apply(this,arguments);var t=st(this.handler,this);this.touch=new Bt(this.manager,t),this.mouse=new Ot(this.manager,t)}function Dt(t,e){this.manager=t,this.set(e)}function At(t){this.options=Object.assign({},this.defaults,t||{}),this.id=Ws++,this.manager=null,this.options.enable=at(this.options.enable,!0),this.state=Pl,this.simultaneous={},this.requireFail=[]}function Lt(t){return t&Al?"cancel":t&Il?"end":t&Bl?"move":t&xl?"start":""}function Rt(t){return t==il?"down":t==nl?"up":t==tl?"left":t==el?"right":""}function jt(t,e){var n=e.manager;return n?n.get(t):t}function Mt(){At.apply(this,arguments)}function Nt(){Mt.apply(this,arguments),this.pX=null,this.pY=null}function Ft(){Mt.apply(this,arguments)}function Vt(){At.apply(this,arguments),this._timer=null,this._input=null}function zt(){Mt.apply(this,arguments)}function qt(){Mt.apply(this,arguments)}function Ht(){At.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Wt(t,e){return e=e||{},e.recognizers=at(e.recognizers,Ll.preset),new Ut(t,e)}function Ut(t,e){this.options=Object.assign({},Ll,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(Ys?Pt:Xs?Bt:Us?It:Ot))(t,bt)}(this),this.touchAction=new Dt(this,this.options.touchAction),Yt(this,!0),ot(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 Yt(t,e){var n=t.element;n.style&&ot(t.options.cssProps,function(t,i){n.style[vt(n.style,i)]=e?t:""})}function Xt(t,e){return function(){return function(t,e){var n=new Rl,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 wo(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}(t,e)}}function $t(){return jl}function Zt(t){return function(){t.setModeConfig("ios",Nl),t.setModeConfig("md",Fl),t.setModeConfig("wp",Vl)}}function Gt(t,e,n){return"path"===n.get("locationStrategy")?new ql.p(t,e):new ql.d(t,e)}function Kt(t){return on._22(2,[(t()(),on._2(0,0,null,null,1,"span",[["class","button-inner"]],null,null,null,null,null)),on._15(null,0),(t()(),on._2(2,0,null,null,0,"div",[["class","button-effect"]],null,null,null,null,null))],null,null)}function Jt(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","action-sheet-title"]],[[8,"id",0]],null,null,null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,on._5(1,"",n.hdrId,""));t(e,1,0,n.d.title)})}function Qt(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","action-sheet-sub-title"]],[[8,"id",0]],null,null,null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,on._5(1,"",n.descId,""));t(e,1,0,n.d.subTitle)})}function te(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-icon",[["class","action-sheet-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(1,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null)],function(t,e){t(e,1,0,e.parent.context.$implicit.icon)},function(t,e){t(e,0,0,on._16(e,1)._hidden)})}function ee(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.click(t.context.$implicit)&&i}return i},Kt,Gl)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._0(2,1097728,null,0,co,[[8,"action-sheet-button"],ln,on.k,on.B],null,null),(t()(),on.W(16777216,null,0,1,null,te)),on._0(4,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(5,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 ne(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-icon",[["class","action-sheet-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(1,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null)],function(t,e){t(e,1,0,e.component.cancelButton.icon)},function(t,e){t(e,0,0,on._16(e,1)._hidden)})}function ie(t){return on._22(0,[(t()(),on._2(0,0,null,null,6,"div",[["class","action-sheet-group action-sheet-group-cancel"]],null,null,null,null,null)),(t()(),on._2(1,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;if("click"===e){i=!1!==o.click(o.cancelButton)&&i}return i},Kt,Gl)),on._0(2,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._0(3,1097728,null,0,co,[[8,"action-sheet-button"],ln,on.k,on.B],null,null),(t()(),on.W(16777216,null,0,1,null,ne)),on._0(5,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(6,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 oe(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.bdClick()&&i}return i},null,null)),on._0(1,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._2(2,0,null,null,10,"div",[["class","action-sheet-wrapper"]],null,null,null,null,null)),(t()(),on._2(3,0,null,null,9,"div",[["class","action-sheet-container"]],null,null,null,null,null)),(t()(),on._2(4,0,null,null,6,"div",[["class","action-sheet-group"]],null,null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,Jt)),on._0(6,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on.W(16777216,null,null,1,null,Qt)),on._0(8,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on.W(16777216,null,null,1,null,ee)),on._0(10,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on.W(16777216,null,null,1,null,ie)),on._0(12,16384,null,0,ql.i,[on.K,on.H],{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 re(t){return on._22(0,[(t()(),on._2(0,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,on._5(1,"",n.hdrId,""),n.d.title)})}function se(t){return on._22(0,[(t()(),on._2(0,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,on._5(1,"",n.subHdrId,""),n.d.subTitle)})}function le(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.rbClick(t.context.$implicit)&&i}return i},Kt,Gl)),on._0(1,1097728,null,0,co,[[8,"alert-radio-button"],ln,on.k,on.B],null,null),(t()(),on._2(2,0,null,0,1,"div",[["class","alert-radio-icon"]],null,null,null,null,null)),(t()(),on._2(3,0,null,null,0,"div",[["class","alert-radio-inner"]],null,null,null,null,null)),(t()(),on._2(4,0,null,0,1,"div",[["class","alert-radio-label"]],null,null,null,null,null)),(t()(),on._21(5,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 ae(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"div",[["class","alert-radio-group"],["role","radiogroup"]],[[1,"aria-labelledby",0],[1,"aria-activedescendant",0]],null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,le)),on._0(2,802816,null,0,ql.h,[on.K,on.H,on.r],{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 ue(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.cbClick(t.context.$implicit)&&i}return i},Kt,Gl)),on._0(1,1097728,null,0,co,[[8,"alert-checkbox-button"],ln,on.k,on.B],null,null),(t()(),on._2(2,0,null,0,1,"div",[["class","alert-checkbox-icon"]],null,null,null,null,null)),(t()(),on._2(3,0,null,null,0,"div",[["class","alert-checkbox-inner"]],null,null,null,null,null)),(t()(),on._2(4,0,null,0,1,"div",[["class","alert-checkbox-label"]],null,null,null,null,null)),(t()(),on._21(5,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 ce(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"div",[["class","alert-checkbox-group"]],null,null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,ue)),on._0(2,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.d.inputs)},null)}function he(t){return on._22(0,[(t()(),on._2(0,0,null,null,6,"div",[["class","alert-input-wrapper"]],null,null,null,null,null)),(t()(),on._2(1,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;if("input"===e){i=!1!==on._16(t,2)._handleInput(n.target.value)&&i}if("blur"===e){i=!1!==on._16(t,2).onTouched()&&i}if("compositionstart"===e){i=!1!==on._16(t,2)._compositionStart()&&i}if("compositionend"===e){i=!1!==on._16(t,2)._compositionEnd(n.target.value)&&i}if("ngModelChange"===e){i=!1!==(t.context.$implicit.value=n)&&i}return i},null,null)),on._0(2,16384,null,0,ho.b,[on.C,on.k,[2,ho.a]],null,null),on._18(1024,null,ho.e,function(t){return[t]},[ho.b]),on._0(4,671744,null,0,ho.h,[[8,null],[8,null],[8,null],[2,ho.e]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),on._18(2048,null,ho.f,null,[ho.h]),on._0(6,16384,null,0,ho.g,[ho.f],null,null)],function(t,e){t(e,4,0,e.context.$implicit.disabled,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,on._16(e,6).ngClassUntouched,on._16(e,6).ngClassTouched,on._16(e,6).ngClassPristine,on._16(e,6).ngClassDirty,on._16(e,6).ngClassValid,on._16(e,6).ngClassInvalid,on._16(e,6).ngClassPending])})}function pe(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"div",[["class","alert-input-group"]],null,null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,he)),on._0(2,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.d.inputs)},null)}function de(t){return on._22(0,[(t()(),on._2(0,0,null,null,7,"div",[],null,null,null,null,null)),on._0(1,16384,null,0,ql.m,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),on.W(16777216,null,null,1,null,ae)),on._0(3,278528,null,0,ql.n,[on.K,on.H,ql.m],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),on.W(16777216,null,null,1,null,ce)),on._0(5,278528,null,0,ql.n,[on.K,on.H,ql.m],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),on.W(16777216,null,null,1,null,pe)),on._0(7,16384,null,0,ql.o,[on.K,on.H,ql.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 fe(t){return on._22(0,[(t()(),on._2(0,0,null,null,3,"button",[["ion-button","alert-button"]],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.btnClick(t.context.$implicit)&&i}return i},Kt,Gl)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{ngClass:[0,"ngClass"]},null),on._0(2,1097728,null,0,co,[[8,"alert-button"],ln,on.k,on.B],null,null),(t()(),on._21(3,0,["",""]))],function(t,e){t(e,1,0,e.context.$implicit.cssClass)},function(t,e){t(e,3,0,e.context.$implicit.text)})}function _e(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.bdClick()&&i}return i},null,null)),on._0(1,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._2(2,0,null,null,13,"div",[["class","alert-wrapper"]],null,null,null,null,null)),(t()(),on._2(3,0,null,null,4,"div",[["class","alert-head"]],null,null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,re)),on._0(5,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on.W(16777216,null,null,1,null,se)),on._0(7,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._2(8,0,null,null,0,"div",[["class","alert-message"]],[[8,"id",0],[8,"innerHTML",1]],null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,de)),on._0(10,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._2(11,0,null,null,4,"div",[["class","alert-button-group"]],null,null,null,null,null)),on._0(12,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._17(13,{"alert-button-group-vertical":0}),(t()(),on.W(16777216,null,null,1,null,fe)),on._0(15,802816,null,0,ql.h,[on.K,on.H,on.r],{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,on._5(1,"",n.msgId,""),n.d.message)})}function me(t){return on._22(0,[on._19(402653184,1,{_viewport:0}),on._19(402653184,2,{_modalPortal:0}),on._19(402653184,3,{_overlayPortal:0}),on._19(402653184,4,{_loadingPortal:0}),on._19(402653184,5,{_toastPortal:0}),(t()(),on._2(5,16777216,[[1,3],["viewport",1]],null,0,"div",[["app-viewport",""]],null,null,null,null,null)),(t()(),on._2(6,16777216,[["modalPortal",1]],null,1,"div",[["overlay-portal",""]],null,null,null,null,null)),on._0(7,147456,[[2,4]],0,Ri,[Yn,ln,Tn,on.k,on.w,on.B,on.j,di,Li,[2,oi],on.K,si,on.l],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),on._2(8,16777216,[["overlayPortal",1]],null,1,"div",[["overlay-portal",""]],null,null,null,null,null)),on._0(9,147456,[[3,4]],0,Ri,[Yn,ln,Tn,on.k,on.w,on.B,on.j,di,Li,[2,oi],on.K,si,on.l],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),on._2(10,16777216,[["loadingPortal",1]],null,1,"div",[["class","loading-portal"],["overlay-portal",""]],null,null,null,null,null)),on._0(11,147456,[[4,4]],0,Ri,[Yn,ln,Tn,on.k,on.w,on.B,on.j,di,Li,[2,oi],on.K,si,on.l],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),on._2(12,16777216,[["toastPortal",1]],null,1,"div",[["class","toast-portal"]],null,null,null,null,null)),on._0(13,147456,[[5,4]],0,Ri,[Yn,ln,Tn,on.k,on.w,on.B,on.j,di,Li,[2,oi],on.K,si,on.l],{_overlayPortal:[0,"_overlayPortal"]},null),(t()(),on._2(14,0,null,null,1,"div",[["class","click-block"]],null,null,null,null,null)),on._0(15,16384,null,0,Hl,[Yn,ln,Tn,on.k,on.B],null,null)],function(t,e){t(e,7,0,"");t(e,9,0,"");t(e,11,0,"");t(e,13,0,1e4)},null)}function ve(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,":svg:svg",[["viewBox","0 0 64 64"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.l,[on.s,on.k,on.B],{ngStyle:[0,"ngStyle"]},null),(t()(),on._2(2,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 ge(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,":svg:svg",[["viewBox","0 0 64 64"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.l,[on.s,on.k,on.B],{ngStyle:[0,"ngStyle"]},null),(t()(),on._2(2,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 ye(t){return on._22(2,[(t()(),on.W(16777216,null,null,1,null,ve)),on._0(1,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on.W(16777216,null,null,1,null,ge)),on._0(3,802816,null,0,ql.h,[on.K,on.H,on.r],{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 be(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"div",[["class","loading-spinner"]],null,null,null,null,null)),(t()(),on._2(1,0,null,null,1,"ion-spinner",[],[[2,"spinner-paused",null]],null,null,ye,ia)),on._0(2,114688,null,0,is,[ln,on.k,on.B],{name:[0,"name"]},null)],function(t,e){t(e,2,0,e.component.d.spinner)},function(t,e){t(e,1,0,on._16(e,2)._paused)})}function we(t){return on._22(0,[(t()(),on._2(0,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 ke(t){return on._22(0,[(t()(),on._2(0,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;if("click"===e){i=!1!==t.component.bdClick()&&i}return i},null,null)),on._0(1,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._2(2,0,null,null,4,"div",[["class","loading-wrapper"]],null,null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,be)),on._0(4,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on.W(16777216,null,null,1,null,we)),on._0(6,16384,null,0,ql.i,[on.K,on.H],{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 Ce(t){return on._22(0,[on._19(402653184,1,{_viewport:0}),(t()(),on._2(1,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;if("click"===e){i=!1!==t.component._bdClick()&&i}return i},null,null)),on._0(2,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._2(3,0,null,null,1,"div",[["class","modal-wrapper"]],null,null,null,null,null)),(t()(),on._2(4,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 Te(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","picker-prefix"]],[[4,"width",null]],null,null,null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.col.prefixWidth);t(e,1,0,n.col.prefix)})}function Ee(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"button",[["class","picker-opt"],["disable-activated",""]],[[2,"picker-opt-disabled",null]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.optClick(n,t.context.index)&&i}return i},null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){t(e,0,0,e.context.$implicit.disabled);t(e,1,0,e.context.$implicit.text)})}function Se(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","picker-suffix"]],[[4,"width",null]],null,null,null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.col.suffixWidth);t(e,1,0,n.col.suffix)})}function Oe(t){return on._22(0,[on._19(402653184,1,{colEle:0}),(t()(),on.W(16777216,null,null,1,null,Te)),on._0(2,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._2(3,0,[[1,0],["colEle",1]],null,2,"div",[["class","picker-opts"]],[[4,"max-width",null]],null,null,null,null)),(t()(),on.W(16777216,null,null,1,null,Ee)),on._0(5,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on.W(16777216,null,null,1,null,Se)),on._0(7,16384,null,0,ql.i,[on.K,on.H],{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 Pe(t){return on._22(0,[(t()(),on._2(0,0,null,null,7,"div",[["class","picker-toolbar-button"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),on._21(-1,null,["\n          "])),(t()(),on._2(3,0,null,null,3,"button",[["class","picker-button"],["clear",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.btnClick(t.context.$implicit)&&i}return i},Kt,Gl)),on._0(4,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._0(5,1097728,null,0,co,[[8,""],ln,on.k,on.B],{clear:[0,"clear"]},null),(t()(),on._21(6,0,["\n            ","\n          "])),(t()(),on._21(-1,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 xe(t){return on._22(0,[(t()(),on._2(0,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;if("ionChange"===e){i=!1!==t.component._colChange(n)&&i}return i},Oe,aa)),on._0(1,4374528,[[1,4]],0,Fo,[ln,Tn,on.k,on.w,Mo,Tn,si],{col:[0,"col"]},{ionChange:"ionChange"})],function(t,e){t(e,1,0,e.context.$implicit)},function(t,e){t(e,0,0,on._16(e,1).col.columnWidth,"left"==on._16(e,1).col.align,"right"==on._16(e,1).col.align)})}function Be(t){return on._22(0,[on._19(671088640,1,{_cols:1}),(t()(),on._21(-1,null,["\n    "])),(t()(),on._2(2,0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.bdClick()&&i}return i},null,null)),on._0(3,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._21(-1,null,["\n    "])),(t()(),on._2(5,0,null,null,17,"div",[["class","picker-wrapper"]],null,null,null,null,null)),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(7,0,null,null,4,"div",[["class","picker-toolbar"]],null,null,null,null,null)),(t()(),on._21(-1,null,["\n        "])),(t()(),on.W(16777216,null,null,1,null,Pe)),on._0(10,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on._21(-1,null,["\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(13,0,null,null,8,"div",[["class","picker-columns"]],null,null,null,null,null)),(t()(),on._21(-1,null,["\n        "])),(t()(),on._2(15,0,null,null,0,"div",[["class","picker-above-highlight"]],null,null,null,null,null)),(t()(),on._21(-1,null,["\n        "])),(t()(),on.W(16777216,null,null,1,null,xe)),on._0(18,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on._21(-1,null,["\n        "])),(t()(),on._2(20,0,null,null,0,"div",[["class","picker-below-highlight"]],null,null,null,null,null)),(t()(),on._21(-1,null,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,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 Ie(t){return on._22(0,[on._19(402653184,1,{_viewport:0}),(t()(),on._2(1,0,null,null,1,"ion-backdrop",[["disable-activated",""],["role","presentation"],["tappable",""]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component._bdClick()&&i}return i},null,null)),on._0(2,16384,null,0,uo,[on.k,on.B],null,null),(t()(),on._2(3,0,null,null,4,"div",[["class","popover-wrapper"]],null,null,null,null,null)),(t()(),on._2(4,0,null,null,0,"div",[["class","popover-arrow"]],null,null,null,null,null)),(t()(),on._2(5,0,null,null,2,"div",[["class","popover-content"]],null,null,null,null,null)),(t()(),on._2(6,0,null,null,1,"div",[["class","popover-viewport"]],null,null,null,null,null)),(t()(),on._2(7,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 De(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-icon",[["name","reorder"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(1,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null)],function(t,e){t(e,1,0,"reorder")},function(t,e){t(e,0,0,on._16(e,1)._hidden)})}function Ae(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"ion-label",[],null,null,null,null,null)),on._0(1,16384,[[1,4]],0,vo,[ln,on.k,on.B,[8,null],[8,null],[8,null],[8,null]],null,null),on._15(null,2)],null,null)}function Le(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-reorder",[],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,1).onClick(n)&&i}return i},De,da)),on._0(1,49152,null,0,Ko,[on.k],null,null)],null,null)}function Re(t){return on._22(2,[on._19(671088640,1,{viewLabel:0}),on._15(null,0),(t()(),on._2(2,0,null,null,8,"div",[["class","item-inner"]],null,null,null,null,null)),(t()(),on._2(3,0,null,null,4,"div",[["class","input-wrapper"]],null,null,null,null,null)),on._15(null,1),(t()(),on.W(16777216,null,null,1,null,Ae)),on._0(6,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),on._15(null,3),on._15(null,4),(t()(),on.W(16777216,null,null,1,null,Le)),on._0(10,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._2(11,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 je(t){return on._22(0,[(t()(),on._2(0,0,null,null,3,"div",[["class","radio-icon"]],[[2,"radio-checked",null]],null,null,null,null)),(t()(),on._21(-1,null,[" "])),(t()(),on._2(2,0,null,null,0,"div",[["class","radio-inner"]],null,null,null,null,null)),(t()(),on._21(-1,null,[" "])),(t()(),on._21(-1,null,[" "])),(t()(),on._2(5,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,Kt,Gl)),on._0(6,1097728,null,0,co,[[8,"item-cover"],ln,on.k,on.B],null,null),(t()(),on._21(-1,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 Me(t){return on._22(0,[(t()(),on._2(0,0,null,null,13,"ion-item",[["class","item item-block"]],null,null,null,Re,fa)),on._0(1,1097728,null,3,jo,[po,ln,on.k,on.B,[2,Ro]],null,null),on._19(335544320,2,{contentLabel:0}),on._19(603979776,3,{_buttons:1}),on._19(603979776,4,{_icons:1}),on._0(5,16384,null,0,Xo,[],null,null),(t()(),on._21(-1,2,["\n        "])),(t()(),on._2(7,0,null,1,2,"ion-label",[],null,null,null,null,null)),on._0(8,16384,[[2,4]],0,vo,[ln,on.k,on.B,[8,null],[8,null],[8,null],[8,null]],null,null),(t()(),on._21(9,null,["",""])),(t()(),on._21(-1,2,["\n        "])),(t()(),on._2(11,0,null,4,1,"ion-radio",[],[[2,"radio-disabled",null]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,12)._click(n)&&i}return i},je,_a)),on._0(12,245760,null,0,Jr,[po,ln,on.k,on.B,[2,jo],[2,Gr]],{value:[0,"value"],checked:[1,"checked"],disabled:[2,"disabled"]},null),(t()(),on._21(-1,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,on._16(e,12)._disabled)})}function Ne(t){return on._22(0,[(t()(),on._21(-1,null,["\n    "])),(t()(),on._2(1,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;if("ngModelChange"===e){i=!1!==(t.component.value=n)&&i}return i},null,null)),on._0(2,1064960,null,1,Gr,[on.B,on.k,on.h],null,null),on._19(335544320,1,{_header:0}),on._18(1024,null,ho.e,function(t){return[t]},[Gr]),on._0(5,671744,null,0,ho.h,[[8,null],[8,null],[8,null],[2,ho.e]],{model:[0,"model"]},{update:"ngModelChange"}),on._18(2048,null,ho.f,null,[ho.h]),on._0(7,16384,null,0,ho.g,[ho.f],null,null),on._0(8,16384,null,0,Go,[ln,on.k,on.B,Tn,di,si],null,null),(t()(),on._21(-1,null,["\n      "])),(t()(),on.W(16777216,null,null,1,null,Me)),on._0(11,802816,null,0,ql.h,[on.K,on.H,on.r],{ngForOf:[0,"ngForOf"]},null),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,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,on._16(e,7).ngClassUntouched,on._16(e,7).ngClassTouched,on._16(e,7).ngClassPristine,on._16(e,7).ngClassDirty,on._16(e,7).ngClassValid,on._16(e,7).ngClassInvalid,on._16(e,7).ngClassPending)})}function Fe(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","toast-message"]],[[8,"id",0]],null,null,null,null)),(t()(),on._21(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,on._5(1,"",n.hdrId,""));t(e,1,0,n.d.message)})}function Ve(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"button",[["class","toast-button"],["clear",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.cbClick()&&i}return i},Kt,Gl)),on._0(1,1097728,null,0,co,[[8,""],ln,on.k,on.B],{clear:[0,"clear"]},null),(t()(),on._21(2,0,[" "," "]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,2,0,e.component.d.closeButtonText||"Close")})}function ze(t){return on._22(0,[(t()(),on._2(0,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()(),on._21(-1,null,[" "])),(t()(),on._2(2,0,null,null,7,"div",[["class","toast-container"]],null,null,null,null,null)),(t()(),on._21(-1,null,[" "])),(t()(),on.W(16777216,null,null,1,null,Fe)),on._0(5,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,null,[" "])),(t()(),on.W(16777216,null,null,1,null,Ve)),on._0(8,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,null,[" "])),(t()(),on._21(-1,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 qe(t){return on._22(2,[(t()(),on._2(0,0,null,null,1,"div",[["class","toolbar-background"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._15(null,0),on._15(null,1),on._15(null,2),(t()(),on._2(5,0,null,null,2,"div",[["class","toolbar-content"]],null,null,null,null,null)),on._0(6,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._15(null,3)],function(t,e){var n=e.component;t(e,1,0,"toolbar-background","toolbar-background-"+n._mode);t(e,6,0,"toolbar-content","toolbar-content-"+n._mode)},null)}function He(t){return on._22(0,[on._15(null,0),(t()(),on._2(1,0,null,null,0,"div",[["class","button-effect"]],null,null,null,null,null))],null,null)}function We(t){return on._22(0,[on._19(402653184,1,{_searchbarInput:0}),on._19(402653184,2,{_searchbarIcon:0}),on._19(402653184,3,{_cancelButton:0}),(t()(),on._2(3,0,null,null,8,"div",[["class","searchbar-input-container"]],null,null,null,null,null)),(t()(),on._2(4,0,null,null,3,"button",[["class","searchbar-md-cancel"],["clear",""],["color","dark"],["ion-button",""],["mode","md"],["type","button"]],null,[[null,"click"],[null,"mousedown"]],function(t,e,n){var i=!0,o=t.component;if("click"===e){i=!1!==o.cancelSearchbar(n)&&i}if("mousedown"===e){i=!1!==o.cancelSearchbar(n)&&i}return i},Kt,Gl)),on._0(5,1097728,null,0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"],mode:[1,"mode"],clear:[2,"clear"]},null),(t()(),on._2(6,0,null,0,1,"ion-icon",[["name","md-arrow-back"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(7,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._2(8,0,[[2,0],["searchbarIcon",1]],null,0,"div",[["class","searchbar-search-icon"]],null,null,null,null,null)),(t()(),on._2(9,0,[[1,0],["searchbarInput",1]],null,0,"input",[["class","searchbar-input"],["dir","auto"]],[[1,"placeholder",0],[1,"type",0],[1,"autocomplete",0],[1,"autocorrect",0],[1,"spellcheck",0]],[[null,"input"],[null,"blur"],[null,"focus"]],function(t,e,n){var i=!0,o=t.component;if("input"===e){i=!1!==o.inputChanged(n)&&i}if("blur"===e){i=!1!==o.inputBlurred()&&i}if("focus"===e){i=!1!==o.inputFocused()&&i}return i},null,null)),(t()(),on._2(10,0,null,null,1,"button",[["class","searchbar-clear-icon"],["clear",""],["ion-button",""],["type","button"]],null,[[null,"click"],[null,"mousedown"]],function(t,e,n){var i=!0,o=t.component;if("click"===e){i=!1!==o.clearInput(n)&&i}if("mousedown"===e){i=!1!==o.clearInput(n)&&i}return i},Kt,Gl)),on._0(11,1097728,null,0,co,[[8,""],ln,on.k,on.B],{mode:[0,"mode"],clear:[1,"clear"]},null),(t()(),on._2(12,0,[[3,0]],null,2,"button",[["class","searchbar-ios-cancel"],["clear",""],["ion-button",""],["mode","ios"],["type","button"]],[[8,"tabIndex",0]],[[null,"click"],[null,"mousedown"]],function(t,e,n){var i=!0,o=t.component;if("click"===e){i=!1!==o.cancelSearchbar(n)&&i}if("mousedown"===e){i=!1!==o.cancelSearchbar(n)&&i}return i},Kt,Gl)),on._0(13,1097728,[["cancelButton",4]],0,co,[[8,""],ln,on.k,on.B],{mode:[0,"mode"],clear:[1,"clear"]},null),(t()(),on._21(14,0,["",""]))],function(t,e){var n=e.component;t(e,5,0,"dark","md","");t(e,7,0,"md-arrow-back");t(e,11,0,n._mode,"");t(e,13,0,"ios","")},function(t,e){var n=e.component;t(e,6,0,on._16(e,7)._hidden);t(e,9,0,n.placeholder,n.type,n._autocomplete,n._autocorrect,n._spellcheck);t(e,12,0,n._isActive?1:-1);t(e,14,0,n.cancelButtonText)})}function Ue(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"div",[["class","toolbar-background"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),on._2(2,0,null,null,8,"button",[["class","back-button"],["ion-button","bar-button"]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.backButtonClick(n)&&i}return i},Kt,Gl)),on._0(3,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._0(4,1097728,null,0,co,[[8,"bar-button"],ln,on.k,on.B],null,null),(t()(),on._2(5,0,null,0,2,"ion-icon",[["class","back-button-icon"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(6,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._0(7,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._2(8,0,null,0,2,"span",[["class","back-button-text"]],null,null,null,null,null)),on._0(9,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),on._21(10,null,["",""])),on._15(null,0),on._15(null,1),on._15(null,2),(t()(),on._2(14,0,null,null,2,"div",[["class","toolbar-content"]],null,null,null,null,null)),on._0(15,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._15(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,on._16(e,7)._hidden);t(e,10,0,n._backText)})}function Ye(t){return on._22(2,[(t()(),on._2(0,0,null,null,2,"div",[["class","toolbar-title"]],null,null,null,null,null)),on._0(1,278528,null,0,ql.g,[on.r,on.s,on.k,on.B],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),on._15(null,0)],function(t,e){t(e,1,0,"toolbar-title","toolbar-title-"+e.component._mode)},null)}function Xe(t){return on._22(2,[on._19(402653184,1,{_fixedContent:0}),on._19(402653184,2,{_scrollContent:0}),(t()(),on._2(2,0,[[1,0],["fixedContent",1]],null,1,"div",[["class","fixed-content"]],null,null,null,null,null)),on._15(null,0),(t()(),on._2(4,0,[[2,0],["scrollContent",1]],null,1,"div",[["class","scroll-content"]],null,null,null,null,null)),on._15(null,1),on._15(null,2)],null,null)}function $e(t){return on._22(0,[(t()(),on._2(0,0,null,null,30,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(1,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(3,0,null,2,10,"ion-buttons",[["end",""]],null,null,null,null,null)),on._0(4,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,11,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(7,0,null,null,5,"button",[["icon-only",""],["ion-button",""]],null,[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==t.component.buttonClick(on._16(t,8))&&i}return i},Kt,Gl)),on._0(8,1097728,[[11,4],["button2",4]],0,co,[[8,""],ln,on.k,on.B],null,null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(10,0,null,0,1,"ion-icon",[["name","search"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(11,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(15,0,null,3,14,"ion-segment",[["color","danger"]],[[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],[2,"segment-disabled",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0;if("ngModelChange"===e){i=!1!==(t.component.favorites=n)&&i}return i},null,null)),on._0(16,671744,null,0,ho.h,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),on._18(2048,null,ho.f,null,[ho.h]),on._0(18,16384,null,0,ho.g,[ho.f],null,null),on._0(19,1196032,null,1,es,[ln,on.k,on.B,[2,ho.f]],{color:[0,"color"]},null),on._19(603979776,12,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(22,0,null,null,2,"ion-segment-button",[["class","segment-button"],["role","button"],["tappable",""],["value","featured"]],[[2,"segment-button-disabled",null],[2,"segment-activated",null],[1,"aria-pressed",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,23).onClick()&&i}return i},He,wa)),on._0(23,114688,[[12,4]],0,ts,[],{value:[0,"value"]},null),(t()(),on._21(-1,0,["\n        Featured\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(26,0,null,null,2,"ion-segment-button",[["class","segment-button"],["role","button"],["tappable",""],["value","recent"]],[[2,"segment-button-disabled",null],[2,"segment-activated",null],[1,"aria-pressed",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,27).onClick()&&i}return i},He,wa)),on._0(27,114688,[[12,4]],0,ts,[],{value:[0,"value"]},null),(t()(),on._21(-1,0,["\n        Recent\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n  "]))],function(t,e){var n=e.component;t(e,11,0,"search");t(e,16,0,n.favorites);t(e,19,0,"danger");t(e,23,0,"featured");t(e,27,0,"recent")},function(t,e){t(e,0,0,on._16(e,1)._sbPadding);t(e,10,0,on._16(e,11)._hidden);t(e,15,0,on._16(e,18).ngClassUntouched,on._16(e,18).ngClassTouched,on._16(e,18).ngClassPristine,on._16(e,18).ngClassDirty,on._16(e,18).ngClassValid,on._16(e,18).ngClassInvalid,on._16(e,18).ngClassPending,on._16(e,19)._disabled);t(e,22,0,on._16(e,23)._disabled,on._16(e,23).isActive,on._16(e,23).isActive);t(e,26,0,on._16(e,27)._disabled,on._16(e,27).isActive,on._16(e,27).isActive)})}function Ze(t){return on._22(0,[(t()(),on._2(0,0,null,null,22,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(1,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(3,0,null,3,18,"ion-segment",[],[[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],[2,"segment-disabled",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0;if("ngModelChange"===e){i=!1!==(t.component.apps=n)&&i}return i},null,null)),on._0(4,671744,null,0,ho.h,[[8,null],[8,null],[8,null],[8,null]],{model:[0,"model"]},{update:"ngModelChange"}),on._18(2048,null,ho.f,null,[ho.h]),on._0(6,16384,null,0,ho.g,[ho.f],null,null),on._0(7,1196032,null,1,es,[ln,on.k,on.B,[2,ho.f]],null,null),on._19(603979776,13,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(10,0,null,null,2,"ion-segment-button",[["class","segment-button"],["role","button"],["tappable",""],["value","paid"]],[[2,"segment-button-disabled",null],[2,"segment-activated",null],[1,"aria-pressed",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,11).onClick()&&i}return i},He,wa)),on._0(11,114688,[[13,4]],0,ts,[],{value:[0,"value"]},null),(t()(),on._21(-1,0,["\n        Paid\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(14,0,null,null,2,"ion-segment-button",[["class","segment-button"],["role","button"],["tappable",""],["value","free"]],[[2,"segment-button-disabled",null],[2,"segment-activated",null],[1,"aria-pressed",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,15).onClick()&&i}return i},He,wa)),on._0(15,114688,[[13,4]],0,ts,[],{value:[0,"value"]},null),(t()(),on._21(-1,0,["\n        Free\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(18,0,null,null,2,"ion-segment-button",[["class","segment-button"],["role","button"],["tappable",""],["value","top"]],[[2,"segment-button-disabled",null],[2,"segment-activated",null],[1,"aria-pressed",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,19).onClick()&&i}return i},He,wa)),on._0(19,114688,[[13,4]],0,ts,[],{value:[0,"value"]},null),(t()(),on._21(-1,0,["\n        Top\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n  "]))],function(t,e){t(e,4,0,e.component.apps);t(e,11,0,"paid");t(e,15,0,"free");t(e,19,0,"top")},function(t,e){t(e,0,0,on._16(e,1)._sbPadding);t(e,3,0,on._16(e,6).ngClassUntouched,on._16(e,6).ngClassTouched,on._16(e,6).ngClassPristine,on._16(e,6).ngClassDirty,on._16(e,6).ngClassValid,on._16(e,6).ngClassInvalid,on._16(e,6).ngClassPending,on._16(e,7)._disabled);t(e,10,0,on._16(e,11)._disabled,on._16(e,11).isActive,on._16(e,11).isActive);t(e,14,0,on._16(e,15)._disabled,on._16(e,15).isActive,on._16(e,15).isActive);t(e,18,0,on._16(e,19)._disabled,on._16(e,19).isActive,on._16(e,19).isActive)})}function Ge(t){return on._22(0,[(t()(),on._2(0,0,null,null,5,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(1,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(3,0,null,3,1,"ion-searchbar",[],[[2,"searchbar-animated",null],[2,"searchbar-has-value",null],[2,"searchbar-active",null],[2,"searchbar-show-cancel",null],[2,"searchbar-left-aligned",null],[2,"searchbar-has-focus",null]],null,null,We,ka)),on._0(4,1294336,null,0,Qr,[ln,Tn,on.k,on.B,[2,ho.f]],null,null),(t()(),on._21(-1,3,["\n  "]))],function(t,e){t(e,4,0)},function(t,e){t(e,0,0,on._16(e,1)._sbPadding);t(e,3,0,on._16(e,4)._animated,on._16(e,4)._value,on._16(e,4)._isActive,on._16(e,4)._showCancelButton,on._16(e,4)._shouldAlignLeft,on._16(e,4)._isFocus)})}function Ke(t){return on._22(0,[(t()(),on._2(0,0,null,null,5,"ion-toolbar",[["class","toolbar"],["color","primary"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(1,49152,null,0,Cs,[ln,on.k,on.B],{color:[0,"color"]},null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(3,0,null,3,1,"ion-searchbar",[],[[2,"searchbar-animated",null],[2,"searchbar-has-value",null],[2,"searchbar-active",null],[2,"searchbar-show-cancel",null],[2,"searchbar-left-aligned",null],[2,"searchbar-has-focus",null]],null,null,We,ka)),on._0(4,1294336,null,0,Qr,[ln,Tn,on.k,on.B,[2,ho.f]],null,null),(t()(),on._21(-1,3,["\n  "]))],function(t,e){t(e,1,0,"primary"),t(e,4,0)},function(t,e){t(e,0,0,on._16(e,1)._sbPadding);t(e,3,0,on._16(e,4)._animated,on._16(e,4)._value,on._16(e,4)._isActive,on._16(e,4)._showCancelButton,on._16(e,4)._shouldAlignLeft,on._16(e,4)._isFocus)})}function Je(t){return on._22(0,[(t()(),on._2(0,0,null,null,10,"ion-header",[],null,null,null,null,null)),on._0(1,16384,null,0,ks,[ln,on.k,on.B,[2,cn]],null,null),(t()(),on._21(-1,null,["\n\n  "])),(t()(),on._2(3,0,null,null,6,"ion-navbar",[["class","toolbar"]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Ue,Ca)),on._0(4,49152,null,0,fr,[Yn,[2,cn],[2,mi],ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(6,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(7,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(8,0,["",""])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,null,["\n\n"])),(t()(),on._21(-1,null,["\n\n\n"])),(t()(),on._2(12,0,null,null,200,"ion-content",[],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,Xe,Ea)),on._0(13,4374528,null,0,xo,[ln,Tn,si,on.k,on.B,Yn,go,on.w,[2,cn],[2,mi]],null,null),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(15,0,null,1,6,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(16,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(18,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(19,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Long title that never ends. It just goes on and on my friend."])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(23,0,null,1,37,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(24,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(26,0,null,1,17,"ion-buttons",[["start",""]],null,null,null,null,null)),on._0(27,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,1,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(30,0,null,null,5,"button",[["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(31,1097728,[[1,4]],0,co,[[8,""],ln,on.k,on.B],null,null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(33,0,null,0,1,"ion-icon",[["name","contact"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(34,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(37,0,null,null,5,"button",[["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(38,1097728,[[1,4]],0,co,[[8,""],ln,on.k,on.B],null,null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(40,0,null,0,1,"ion-icon",[["name","search"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(41,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(45,0,null,2,10,"ion-buttons",[["end",""]],null,null,null,null,null)),on._0(46,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,2,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(49,0,null,null,5,"button",[["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(50,1097728,[[2,4]],0,co,[[8,""],ln,on.k,on.B],null,null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(52,0,null,0,1,"ion-icon",[["name","more"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(53,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(57,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(58,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Default Buttons"])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(62,0,null,1,37,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(63,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(65,0,null,1,17,"ion-buttons",[["start",""]],null,null,null,null,null)),on._0(66,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,3,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(69,0,null,null,5,"button",[["color","danger"],["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(70,1097728,[[3,4]],0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"]},null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(72,0,null,0,1,"ion-icon",[["name","contact"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(73,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(76,0,null,null,5,"button",[["color","secondary"],["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(77,1097728,[[3,4]],0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"]},null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(79,0,null,0,1,"ion-icon",[["name","search"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(80,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(84,0,null,2,10,"ion-buttons",[["end",""]],null,null,null,null,null)),on._0(85,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,4,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(88,0,null,null,5,"button",[["color","dark"],["icon-only",""],["ion-button",""]],null,null,null,Kt,Gl)),on._0(89,1097728,[[4,4]],0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"]},null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(91,0,null,0,1,"ion-icon",[["name","more"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(92,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(96,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(97,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Colored Buttons"])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(101,0,null,1,30,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(102,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(104,0,null,1,10,"ion-buttons",[["start",""]],null,null,null,null,null)),on._0(105,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,5,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(108,0,null,null,5,"button",[["icon-only",""],["ion-button",""],["solid",""]],null,null,null,Kt,Gl)),on._0(109,1097728,[[5,4]],0,co,[[8,""],ln,on.k,on.B],{solid:[0,"solid"]},null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(111,0,null,0,1,"ion-icon",[["name","contact"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(112,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(116,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(117,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Solid"])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(120,0,null,2,10,"ion-buttons",[["end",""]],null,null,null,null,null)),on._0(121,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,6,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(124,0,null,null,5,"button",[["color","secondary"],["icon-end",""],["ion-button",""],["solid",""]],null,null,null,Kt,Gl)),on._0(125,1097728,[[6,4]],0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"],solid:[1,"solid"]},null),(t()(),on._21(-1,0,["\n        Help\n        "])),(t()(),on._2(127,0,null,0,1,"ion-icon",[["name","help-circle"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(128,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(133,0,null,1,30,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(134,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(136,0,null,1,10,"ion-buttons",[["start",""]],null,null,null,null,null)),on._0(137,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,7,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(140,0,null,null,5,"button",[["icon-only",""],["ion-button",""],["outline",""]],null,null,null,Kt,Gl)),on._0(141,1097728,[[7,4]],0,co,[[8,""],ln,on.k,on.B],{outline:[0,"outline"]},null),(t()(),on._21(-1,0,["\n        "])),(t()(),on._2(143,0,null,0,1,"ion-icon",[["name","contact"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(144,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(148,0,null,2,10,"ion-buttons",[["end",""]],null,null,null,null,null)),on._0(149,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,8,{_buttons:1}),(t()(),on._21(-1,null,["\n      "])),(t()(),on._2(152,0,null,null,5,"button",[["color","secondary"],["icon-end",""],["ion-button",""],["outline",""]],null,null,null,Kt,Gl)),on._0(153,1097728,[[8,4]],0,co,[[8,""],ln,on.k,on.B],{color:[0,"color"],outline:[1,"outline"]},null),(t()(),on._21(-1,0,["\n        Help\n        "])),(t()(),on._2(155,0,null,0,1,"ion-icon",[["name","help-circle"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(156,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n      "])),(t()(),on._21(-1,null,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(160,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(161,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Outline"])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(165,0,null,1,16,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(166,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(168,0,null,0,8,"button",[["icon-only",""],["ion-button",""],["menuToggle",""]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,170).toggle()&&i}return i},Kt,Gl)),on._0(169,1097728,[[9,4]],0,co,[[8,""],ln,on.k,on.B],null,null),on._0(170,1064960,null,0,_r,[bn,[2,cn],[2,co],[2,fr]],{menuToggle:[0,"menuToggle"]},null),on._0(171,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,9,{_buttons:1}),(t()(),on._21(-1,0,["\n      "])),(t()(),on._2(174,0,null,0,1,"ion-icon",[["name","menu"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(175,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n    "])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(178,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(179,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Left Menu"])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on._2(183,0,null,1,16,"ion-toolbar",[["class","toolbar"],["no-border-top",""]],[[2,"statusbar-padding",null]],null,null,qe,ba)),on._0(184,49152,null,0,Cs,[ln,on.k,on.B],null,null),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(186,0,null,3,2,"ion-title",[],null,null,null,Ye,Ta)),on._0(187,49152,null,0,Es,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),(t()(),on._21(-1,0,["Right Menu"])),(t()(),on._21(-1,3,["\n    "])),(t()(),on._2(190,0,null,0,8,"button",[["ion-button",""],["menuToggle",""],["right",""]],[[8,"hidden",0]],[[null,"click"]],function(t,e,n){var i=!0;if("click"===e){i=!1!==on._16(t,192).toggle()&&i}return i},Kt,Gl)),on._0(191,1097728,[[10,4]],0,co,[[8,""],ln,on.k,on.B],null,null),on._0(192,1064960,null,0,_r,[bn,[2,cn],[2,co],[2,fr]],{menuToggle:[0,"menuToggle"]},null),on._0(193,16384,null,1,Ts,[ln,on.k,on.B,[2,Cs],[2,fr]],null,null),on._19(603979776,10,{_buttons:1}),(t()(),on._21(-1,0,["\n      "])),(t()(),on._2(196,0,null,0,1,"ion-icon",[["name","menu"],["role","img"]],[[2,"hide",null]],null,null,null,null)),on._0(197,147456,null,0,mo,[ln,on.k,on.B],{name:[0,"name"]},null),(t()(),on._21(-1,0,["\n    "])),(t()(),on._21(-1,3,["\n  "])),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on.W(16777216,null,1,1,null,$e)),on._0(202,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on.W(16777216,null,1,1,null,Ze)),on._0(205,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on.W(16777216,null,1,1,null,Ge)),on._0(208,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,1,["\n\n  "])),(t()(),on.W(16777216,null,1,1,null,Ke)),on._0(211,16384,null,0,ql.i,[on.K,on.H],{ngIf:[0,"ngIf"]},null),(t()(),on._21(-1,1,["\n\n"])),(t()(),on._21(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,34,0,"contact");t(e,41,0,"search");t(e,53,0,"more");t(e,70,0,"danger");t(e,73,0,"contact");t(e,77,0,"secondary");t(e,80,0,"search");t(e,89,0,"dark");t(e,92,0,"more");t(e,109,0,"");t(e,112,0,"contact");t(e,125,0,"secondary","");t(e,128,0,"help-circle");t(e,141,0,"");t(e,144,0,"contact");t(e,153,0,"secondary","");t(e,156,0,"help-circle");t(e,170,0,"");t(e,175,0,"menu");t(e,192,0,"");t(e,197,0,"menu");t(e,202,0,"Title"!=n.demo);t(e,205,0,"Title"!=n.demo);t(e,208,0,"Title"!=n.demo);t(e,211,0,"Title"!=n.demo)},function(t,e){var n=e.component;t(e,3,0,on._16(e,4)._hidden,on._16(e,4)._sbPadding);t(e,8,0,n.demo);t(e,12,0,on._16(e,13).statusbarPadding,on._16(e,13)._hasRefresher);t(e,15,0,on._16(e,16)._sbPadding);t(e,23,0,on._16(e,24)._sbPadding);t(e,33,0,on._16(e,34)._hidden);t(e,40,0,on._16(e,41)._hidden);t(e,52,0,on._16(e,53)._hidden);t(e,62,0,on._16(e,63)._sbPadding);t(e,72,0,on._16(e,73)._hidden);t(e,79,0,on._16(e,80)._hidden);t(e,91,0,on._16(e,92)._hidden);t(e,101,0,on._16(e,102)._sbPadding);t(e,111,0,on._16(e,112)._hidden);t(e,127,0,on._16(e,128)._hidden);t(e,133,0,on._16(e,134)._sbPadding);t(e,143,0,on._16(e,144)._hidden);t(e,155,0,on._16(e,156)._hidden);t(e,165,0,on._16(e,166)._sbPadding);t(e,168,0,on._16(e,170).isHidden);t(e,174,0,on._16(e,175)._hidden);t(e,183,0,on._16(e,184)._sbPadding);t(e,190,0,on._16(e,192).isHidden);t(e,196,0,on._16(e,197)._hidden)})}function Qe(t){return on._22(0,[on._19(402653184,1,{_vp:0}),(t()(),on._2(1,16777216,[[1,3],["viewport",1]],null,0,"div",[["nav-viewport",""]],null,null,null,null,null)),(t()(),on._2(2,0,null,null,0,"div",[["class","nav-decor"]],null,null,null,null,null))],null,null)}function tn(t){return on._22(0,[(t()(),on._2(0,0,null,null,2,"ion-nav",[],null,null,null,Qe,Pa)),on._18(6144,null,cr,null,[hr]),on._0(2,4374528,null,0,hr,[[2,cn],[2,mi],Yn,ln,Tn,on.k,on.w,on.B,on.j,di,Li,[2,oi],si,on.l],{root:[0,"root"]},null)],function(t,e){t(e,2,0,e.component.root)},null)}Object.defineProperty(e,"__esModule",{value:!0});var en,nn=n(5),on=n(1),rn=n(0),sn=!0,ln=function(){function t(){this._c={},this._s={},this._modes={},this._trns={}}return t.prototype.init=function(t,e){this._s=t&&d(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,l=void 0,c=void 0,h=null;if(n){var p=n.getQueryParam("ionic"+t);if(u(p))return this._c[t]="true"===p||"false"!==p&&p;for(var d=n.platforms(),f=0,_=d.length;f<_;f++)this._s.platforms&&(h=this._s.platforms[d[f]])&&(u(h[t])&&(i=h[t]),(h=this.getModeConfig(h.mode))&&u(h[t])&&(r=h[t])),(h=n.getPlatformConfig(d[f]))&&h.settings&&(u(h.settings[t])&&(l=h.settings[t]),(h=this.getModeConfig(h.settings.mode))&&u(h[t])&&(c=h[t]))}(h=this.getModeConfig(this._s.mode))&&u(h[t])&&(s=h[t]),this._c[t]=u(i)?i:u(o)?o:u(r)?r:u(s)?s:u(l)?l:u(c)?c:null}var m=this._c[t];return a(m)&&(m=m(n)),null!==m?m: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}(),an=new on.p("USERCONFIG"),un=function(){function t(t){void 0===t&&(t={}),this.data=t}return t.prototype.get=function(t){return this.data[t]},t}(),cn=function(){function t(t,e,n){void 0===n&&(n=hn),this.component=t,this._isHidden=!1,this._state=dn,this.willEnter=new on.m,this.didEnter=new on.m,this.willLeave=new on.m,this.didLeave=new on.m,this.willUnload=new on.m,this.readReady=new on.m,this.writeReady=new on.m,this.isOverlay=!1,this._emitter=new on.m,this.data=e instanceof un?e.data:h(e)?e:{},this._cssClass=n,this._ts=Date.now(),window.addEventListener("orientationchange",this.handleOrientationChange.bind(this))}return t.prototype.handleOrientationChange=function(){this.getContent()&&this.getContent().resize()},t.prototype.init=function(t){b(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 b(this._state===mn,"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 un(this.data)},t.prototype.setLeavingOpts=function(t){this._leavingOpts=t},t.prototype.enableBack=function(){if(!this._nav)return!1;return!!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(){b(this._state===fn,"view state must be INITIALIZED"),this._lifecycle("PreLoad")},t.prototype._willLoad=function(){b(this._state===fn,"view state must be INITIALIZED"),this._lifecycle("WillLoad")},t.prototype._didLoad=function(){b(this._state===_n,"view state must be ATTACHED"),this._lifecycle("DidLoad")},t.prototype._willEnter=function(){this.handleOrientationChange(),b(this._state===_n,"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(){b(this._state===_n,"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(b(this._state!==mn,"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)}window.removeEventListener("orientationchange",this.handleOrientationChange.bind(this)),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=mn},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}(),hn="ion-page",pn=9999,dn=1,fn=2,_n=3,mn=4,vn=100,gn="back",yn="forward",bn=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){b(this._menus.indexOf(t)<0,"menu was already registered"),this._menus.push(t)},t.prototype._unregister=function(t){b(this._menus.indexOf(t)>=0,"menu is not registered"),v(this._menus,t)},t.prototype._setActiveMenu=function(t){b(t.enabled,"menu must be enabled"),b(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){wn[t]=e},t.create=function(t,e,n){return new wn[t](e,n)},t}(),wn={},kn=/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i,Cn=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}(),Tn=function(){function t(){var t=this;this._versions={},this._qp=new Cn,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 on.m,this.pause=new on.m,this.resume=new on.m,this.resize=new on.m,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=function(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}(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(){v(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!!B(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 En(this._registry,this._default)),t){e&&(e.child=t,t.parent=e,t=e);for(var o=t;o;)!function(t,e){var n=e.superset();if(n){var i=new En(t,n);i.parent=e.parent,i.child=e,i.parent&&(i.parent.child=i),e.parent=i}}(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 En(this._registry,t).getRoot(this);if(e){e.depth=0;for(var n=e.child;n;)e.depth++,n=n.child}return e},t}(),En=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}(),Sn=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===On[e];this._fx.push(i={name:e,trans:o,wc:o?this.plt.Css.transform:e})}var r={val:n,num:null,unit:""};if(i[t]=r,"string"==typeof n&&n.indexOf(" ")<0){var s=n.match(Pn),l=parseFloat(s[1]);isNaN(l)||(r.num=l),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)>xn;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){b(!this._unrgTrns,"_unrgTrns must be null"),b(!this._tm,"_tm must be null"),b(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+Bn)},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)>xn)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="",l=this._e;for(o=0;o<n.length;o++){var a=n[o];if(a.from&&a.to){var u=a.from.num,c=a.to.num,h=u!==c;if(b(h||!this._isAsync,"in async animations to != from value"),h&&(this._twn=!0),0===t)e=a.from.val;else if(1===t)e=a.to.val;else if(h){var p=(c-u)*t+u,d=a.to.unit;"px"===d&&(p=Math.round(p)),e=p+d}if(null!==e){var f=a.name;if(a.trans)s+=f+"("+e+") ";else for(r=0;r<i;r++)l[r].style[f]=e}}}if(s.length){(!this._rv&&1!==t||this._rv&&0!==t)&&(s+="translateZ(0px)");var _=this.plt.Css.transform;for(o=0;o<l.length;o++)l[o].style[_]=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,l=s.transition,a=s.transitionDuration,u=s.transitionTimingFn,c=0;c<this._eL;c++)n=i[c].style,t>0?(n[l]="",n[a]=r,o&&(n[u]=o)):n[l]="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,l=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(l)for(e=0;e<l.length;e++)o.remove(l[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}(),On={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},Pn=/(^-?\d*\.?\d*)(.*)/,xn=32,Bn=400,In=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)}}(),Dn=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 In(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}(Sn),An=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)}}(),Ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return An(e,t),e.prototype.init=function(){var t=this;this.enteringView&&(this.enteringPage=new Sn(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}(Dn),Rn=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)}}(),jn="opacity",Mn="translateX",Nn="show-back-button",Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rn(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(h(s.duration)?s.duration:500),this.easing(h(s.easing)?s.easing:"cubic-bezier(0.36,0.66,0.04,1)");var l="back"===s.direction,a=o&&o.hasNavbar(),u=r&&r.hasNavbar();if(o){var c=o.pageRef().nativeElement,p=new Sn(e,o.contentRef());if(p.element(c.querySelectorAll("ion-header > *:not(ion-navbar),ion-footer > *")),this.add(p),l?p.fromTo(Mn,i,"0%",!0).fromTo(jn,.8,1,!0):p.beforeClearStyles([jn]).fromTo(Mn,n,"0%",!0),a){var d=c.querySelector("ion-navbar"),f=new Sn(e,d);this.add(f);var _=new Sn(e,d.querySelector("ion-title")),m=new Sn(e,d.querySelectorAll("ion-buttons,[menuToggle]")),v=new Sn(e,d.querySelector(".toolbar-background")),g=new Sn(e,d.querySelector(".back-button"));if(f.add(_).add(m).add(v).add(g),_.fromTo(jn,.01,1,!0),m.fromTo(jn,.01,1,!0),l)_.fromTo(Mn,i,"0%",!0),o.enableBack()&&g.beforeAddClass(Nn).fromTo(jn,.01,1,!0);else if(_.fromTo(Mn,n,"0%",!0),v.beforeClearStyles([jn]).fromTo(Mn,n,"0%",!0),o.enableBack()){g.beforeAddClass(Nn).fromTo(jn,.01,1,!0);var y=new Sn(e,d.querySelector(".back-button-text"));y.fromTo(Mn,e.isRTL?"-100px":"100px","0px"),f.add(y)}else g.beforeRemoveClass(Nn)}}if(r&&r.pageRef()){var b=r.pageRef().nativeElement,w=new Sn(e,r.contentRef());if(w.element(b.querySelectorAll("ion-header > *:not(ion-navbar),ion-footer > *")),this.add(w),l?w.beforeClearStyles([jn]).fromTo(Mn,"0%",e.isRTL?"-100%":"100%"):w.fromTo(Mn,"0%",i).fromTo(jn,1,.8).afterClearStyles(["transform",jn]),u){var k=b.querySelector("ion-navbar"),C=new Sn(e,k),T=new Sn(e,k.querySelector("ion-title")),E=new Sn(e,k.querySelectorAll("ion-buttons,[menuToggle]")),S=new Sn(e,k.querySelector(".toolbar-background")),O=new Sn(e,k.querySelector(".back-button"));if(C.add(T).add(E).add(O).add(S),this.add(C),O.fromTo(jn,.99,0),T.fromTo(jn,.99,0),E.fromTo(jn,.99,0),l){T.fromTo(Mn,"0%",e.isRTL?"-100%":"100%"),S.beforeClearStyles([jn]).fromTo(Mn,"0%",e.isRTL?"-100%":"100%");var P=new Sn(e,k.querySelector(".back-button-text"));P.fromTo(Mn,"0%",(e.isRTL?-300:300)+"px"),C.add(P)}else T.fromTo(Mn,"0%",i).afterClearStyles(["transform"]),O.afterClearStyles([jn]),T.afterClearStyles([jn]),E.afterClearStyles([jn])}}},e}(Ln),Vn=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)}}(),zn="show-back-button",qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vn(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(h(o.duration)?o.duration:200).easing("cubic-bezier(0.47,0,0.745,0.715)"):(this.duration(h(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"),l=new Sn(e,s);this.add(l);var a=new Sn(e,s.querySelector(".back-button"));this.add(a),n.enableBack()?a.beforeAddClass(zn):a.beforeRemoveClass(zn)}if(i&&r){this.duration(o.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var u=new Sn(e,i.pageRef());this.add(u.fromTo("translateY","0px","40px").fromTo("opacity",1,0))}},e}(Ln),Hn=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)}}(),Wn="show-back-button",Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hn(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(h(o.duration)?o.duration:120).easing("cubic-bezier(0.47,0,0.745,0.715)"),this.enteringPage.beforeClearStyles(["scale"])):(this.duration(h(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"),l=new Sn(e,s);this.add(l);var a=new Sn(e,s.querySelector(".back-button"));this.add(a),n.enableBack()?a.beforeAddClass(Wn):a.beforeRemoveClass(Wn)}if(i&&r){this.duration(o.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var u=new Sn(e,i.pageRef());this.add(u.fromTo("scale",1,.95).fromTo("opacity",.99,0))}},e}(Ln),Yn=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 nn.j(nn.b),this._rootNavs=new Map,this._didScroll=!1,this.viewDidLoad=new on.m,this.viewWillEnter=new on.m,this.viewDidEnter=new on.m,this.viewWillLeave=new on.m,this.viewDidLeave=new on.m,this.viewWillUnload=new on.m,e.registerBackButtonAction(this.goBack.bind(this)),this._disableScrollAssist=t.getBoolean("disableScrollAssist",!1);t.getBoolean("inputBlurring",!1)&&this._enableInputBlurring(),y(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",Fn),t.setTransition("md-transition",qn),t.setTransition("wp-transition",Un)}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,Zn,n):this._clickBlock.activate(!0,e+Zn,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()+$n,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 L(e);if(!this._rootNavs||!this._rootNavs.size)return[];if(1===this._rootNavs.size)return L(this._rootNavs.values().next().value);if(t)return L(this._rootNavs.get(t));var n=[];return this._rootNavs.forEach(function(t){var e=L(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(L(e))}),t},t.prototype.present=function(t,e,n){b(t.isOverlay,"presented view controller needs to be an overlay");var i=this._appRoot._getPortal(n);return t._setNav(i),e.direction=yn,e.animation||(e.animation=t.getTransitionName(yn)),t.setLeavingOpts({keyboardClose:e.keyboardClose,direction:gn,animation:t.getTransitionName(gn),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 A(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!==Xn.indexOf(o.tagName)){var r=i.target;r!==o&&(Xn.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=D(n[e],t);if(i)return i}return null},t=Object(rn.__decorate)([Object(rn.__param)(2,Object(on.x)())],t)}(),Xn=["INPUT","TEXTAREA","ION-INPUT","ION-TEXTAREA"],$n=100,Zn=64,Gn=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}(),Kn=function(){function t(t,e){this._app=t,this.links=e&&f(e.links)?ei(e.links):[]}return t.prototype.parse=function(t){return"/"===t.charAt(0)&&(t=t.substr(1)),t=t.split("?")[0].split("#")[0],N(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){if(!t||!t.length)return"/";return 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=ti(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(h(i)){o=o.slice();var r=Object.keys(i),s=r.length;if(s)for(var l=0;l<o.length;l++)if(":"===o[l].charAt(0))for(var a=0;a<s;a++)if(o[l]===":"+r[a]){o[l]=encodeURIComponent(i[r[a]]);break}}var u=!0;return u=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:u}},t}(),Jn=function(t,e){return!(!h(t)||!h(e))&&(":"===e.charAt(0)||t===e)},Qn=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},ti=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 l=0;if(n)for(var a=Object.keys(n),u=0;u<a.length;u++)h(s.dataKeys[a[u]])&&l++;else if(s.dataLen)continue;l>=o&&(i=s,o=l)}}return i},ei=function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];p(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(j)},ni=/\s+|\?|\!|\$|\,|\.|\+|\"|\'|\*|\^|\||\/|\\|\[|\]|#|%|`|>|<|;|:|@|&|=/g,ii=new on.p("USERLINKS"),oi=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=z(this._location.path());console.debug("DeepLinker, init load: "+e),this._historyPush(e),this._location.subscribe(function(e){t._urlChange(z(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(!h(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=function(t,e){for(;t;){if(t.id===e||t.name===e)return t;t=t.parent}return null}(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=z(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(S(i)||i.isTransitioning())return}for(var o=[],r=0,s=this._app.getRootNavs();r<s.length;r++){var l=this.getSegmentsFromNav(s[r]);o=o.concat(l)}if((o=o.filter(function(t){return!!t})).length){var a=this._serializer.serialize(o);this._updateLocation(a,t)}}},t.prototype.getSegmentsFromNav=function(t){var e=this,n=[];return!function(t){return!!t&&!!t.push&&"nav"===t.getType()}(t)?O(t)&&n.push(this.getSegmentFromTab(t)):n.push(this.getSegmentFromNav(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===gn&&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 l=this._serializer.serialize(r);return i?this._location.prepareExternalUrl(l):l}return""},t.prototype.getSegmentByNavIdOrName=function(t,e){for(var n=z(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 cn(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 h(t.tabUrlPath)?t.tabUrlPath:h(t.tabTitle)?R(t.tabTitle):"tab-"+t.index},t.prototype._loadViewForSegment=function(t,e,n){if(!e)return n(!1,!1);if(S(t)||O(t)&&t.parent){var i=S(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,l=s.length()-1,a=l;a>=0;a--){var u=s.getByIndex(a);if(u&&(u.id===e.id||u.id===e.name))return a===l?n(!1,!1):s.popTo(u,{animate:!1,updateUrl:!1},n)}return s.setRoot(e.component||e.name,e.data,{id:e.id,animate:!1,updateUrl:!1},n)},t}(),ri=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}(),si=function(){function t(t){this.plt=t,this.r=[],this.w=[]}return t.prototype.debouncer=function(){return new ri(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),v(this.r,t)||v(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{!function(t,e,n){for(var i;i=e.shift();)i(t);for(;i=n.shift();)i(t)}(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}(),li="goback-swipe",ai="menu-swipe",ui="item-swipe",ci=-10,hi=20,pi={disable:[ai,li],disableScroll:!0},di=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 fi(t.name,this.newID(),this,t.priority||0,!!t.disableScroll)},t.prototype.createBlocker=function(t){return void 0===t&&(t={}),new _i(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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.o)(Object(on.P)(function(){return Yn})))],t)}(),fi=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):(b(!1,"delegate was destroyed"),!1)},t.prototype.start=function(){return this.controller?this.controller.start(this.name,this.id,this.priority):(b(!1,"delegate was destroyed"),!1)},t.prototype.capture=function(){if(!this.controller)return b(!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)):b(!1,"delegate was destroyed")},t.prototype.destroy=function(){this.release(),this.controller=null},t}(),_i=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):b(!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):b(!1,"delegate was destroyed")},t.prototype.destroy=function(){this.unblock(),this.controller=null},t}(),mi=function(){return function(){}}(),vi=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}(),gi=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,b(e,"element can not be null"),b(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){b(this.ele,"element can not be null"),b(this.pointerDown,"pointerDown can not be null"),this.lastTouchEvent=Date.now()+this.mouseWait,this.lastEventType=bi,this.pointerDown(t,bi)&&(!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){b(this.ele,"element can not be null"),b(this.pointerDown,"pointerDown can not be null"),this.lastTouchEvent>Date.now()?console.debug("mousedown event dropped because of previous touch"):(this.lastEventType=yi,this.pointerDown(t,yi)&&(!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,bi)},t.prototype.handleMouseUp=function(t){this.stopMouse(),this.pointerUp&&this.pointerUp(t,yi)},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}(),yi=1,bi=2,wi=function(){function t(t){this.plt=t,this.evts=[]}return t.prototype.pointerEvents=function(t){if(t.element&&t.pointerDown){var e=new gi(this.plt,t.element,t.pointerDown,t.pointerMove,t.pointerUp,{capture:t.capture,passive:t.passive,zone:t.zone});return this.evts.push(function(){return e.destroy()}),e}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}(),ki=function(){function t(t,e,n){void 0===n&&(n={}),this.plt=t,this.element=e,r(n,{threshold:20,maxAngle:40,direction:"x",zone:!0,capture:!1,passive:!1}),this.events=new wi(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 vi(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=P(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(b(!0===this.started,"started must be true"),this.captured)this.debouncer.write(function(){e.onDragMove(t)});else{b(this.detector,"detector has to be valid");var n=P(t);this.detector.detect(n)&&0!==this.detector.pan()&&(this.tryToCapture(t)||this.abort(t))}},t.prototype.pointerUp=function(t){b(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 b(!0===this.started,"started has be true"),b(!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}(),Ci=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)}}(),Ti=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 Ci(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=P(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.max;this.slide.min=n.min,this.slide.max=i,this.slide.elementStartPos=this.getElementStartPos(this.slide,t),this.onSlideStart(this.slide,t)},e.prototype.onDragMove=function(t){var e=this.slide;b(e.min!==e.max,"slide data must be properly initialized");var n=P(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}(ki),Ei=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)}}(),Si=function(t){function e(e,n,i){void 0===i&&(i={});var o=this;return r(i,{edge:"start",maxEdgeStart:50}),(o=t.call(this,e,n,i)||this).setEdges(i.edge),o.maxEdgeStart=i.maxEdgeStart,o}return Ei(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=P(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}(Ti),Oi=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)}}(),Pi=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:li,priority:hi,disableScroll:!0})})||this;return r._nav=n,r}return Oi(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();this._nav.swipeBackProgress(t.distance/t.max)},e.prototype.onSlideEnd=function(t,e){var n=t.velocity,i=t.distance/t.max,o=!g(n<0,Math.abs(t.velocity)>.4,Math.abs(t.delta)<.5*Math.abs(t.max));this._nav.swipeBackEnd(o,i,n)},e}(Si),xi=function(t){function e(e,n,i,o,r,s,l,a,u,c,h,p,d){var f=t.call(this,i,r,l)||this;return f.parent=e,f._app=n,f.config=i,f.plt=o,f._zone=s,f._cfr=a,f._gestureCtrl=u,f._trnsCtrl=c,f._linker=h,f._domCtrl=p,f._errHandler=d,f._ids=-1,f._init=!1,f._queue=[],f._trnsId=null,f._trnsTm=!1,f._views=[],f._zIndexOffset=0,f.viewDidLoad=new on.m,f.viewWillEnter=new on.m,f.viewDidEnter=new on.m,f.viewWillLeave=new on.m,f.viewDidLeave=new on.m,f.viewWillUnload=new on.m,f._sbEnabled=i.getBoolean("swipeBackEnabled"),f._children=[],f.id="n"+ ++Bi,f._destroyed=!1,f}return Object(rn.__extends)(e,t),Object.defineProperty(e.prototype,"swipeBackEnabled",{get:function(){return this._sbEnabled},set:function(t){this._sbEnabled=_(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 p(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===dn&&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(h(t.removeView)){b(h(t.removeStart),"removeView needs removeStart"),b(h(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 h(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?(b(n.length>0,"length can not be zero"),E(this._linker,n).then(function(i){if(b(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===mn)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(h(i)){var o,r,s=this._views,l=i+t.removeCount;for(o=s.length-1;o>=0;o--)if(r=s[o],(o<i||o>=l)&&r!==e)return r}return null},e.prototype._postViewInit=function(t,e,n){var i=this;b(e||t,"Both leavingView and enteringView are null"),b(n.resolve,"resolve must be valid"),b(n.reject,"reject must be valid");var o,r,s,l=n.opts||{},a=n.insertViews,u=n.removeStart,c=n.removeCount;if(h(u)){for(b(u>=0,"removeStart can not be negative"),b(c>=0,"removeCount can not be negative"),s=[],r=0;r<c;r++)(o=this._views[r+u])&&o!==t&&o!==e&&s.push(o);l.direction=l.direction||gn}var p=this._views.length+(a?a.length:0)-(c||0);if(b(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(a){for(h(l.id)&&(t.id=l.id),r=0;r<a.length;r++)this._insertViewAt(o=a[r],n.insertStart+r);n.enteringRequiresTransition&&(l.direction=l.direction||yn)}if(s&&s.length>0)for(this._zone.run(function(){for(r=0;r<s.length;r++)i._willLeave(o=s[r],!0),i._didLeave(o),i._willUnload(o)}),r=0;r<s.length;r++)this._destroyView(s[r]);n.requiresTransition&&!l.animation&&(l.animation=h(n.removeStart)?(e||t).getTransitionName(l.direction):(t||e).getTransitionName(l.direction)),n.opts=l},e.prototype._viewInit=function(t){b(t,"enteringView must be non null"),b(t._state===dn,"enteringView state must be NEW");var e=on.A.resolve([{provide:mi,useValue:this},{provide:cn,useValue:t},{provide:un,useValue:t.getNavParams()}]),n=this._linker.resolveComponent(t.component),i=on.A.fromResolvedProviders(e,this._viewport.parentInjector);t.init(n.create(i,[])),t._state=fn,this._preLoad(t)},e.prototype._viewAttachToDOM=function(t,e,n){if(b(t._state===fn,"view state must be INITIALIZED"),b(e,"componentRef can not be null"),this._willLoad(t),n.insert(e.hostView,n.length),t._state=_n,t._cssClass){this._renderer.setElementClass(e.location.nativeElement,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=this._trnsCtrl.get(this._trnsId,t,e,{animation:o.animation,direction:o.direction,duration:!1===o.animate?0:o.duration,easing:o.easing,isRTL:this._config.plt.isRTL,ev:o.ev});this._sbTrns&&this._sbTrns.destroy(),this._sbTrns=null,r.isRoot()&&o.progressAnimation&&(this._sbTrns=r);var s=new Promise(function(t){return r.registerStart(t)}).then(function(){return i._transitionStart(r,t,e,o)});return t&&t._state===fn&&this._viewAttachToDOM(t,t._cmp,this._viewport),r.hasChildren||r.start(),s},e.prototype._transitionStart=function(t,e,n,i){var o=this;b(this.isTransitioning(),"isTransitioning() has to be true"),this._trnsId=null,function(t,e,n,i,o){if(e){if(t._isPortal)return i===yn&&e._setZIndex(t._zIndexOffset+pn,o),void pn++;(n=n||t.getPrevious(e))&&h(n._zIndex)?i===gn?e._setZIndex(n._zIndex-1,o):e._setZIndex(n._zIndex+1,o):e._setZIndex(vn+t._zIndexOffset,o)}}(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 l=t.getDuration(),a=new Promise(function(e){t.onFinish(e)});return t.isRoot()&&(l>Ii&&!1!==i.disableApp?this._app.setEnabled(!1,l+Ai,i.minClickBlockDuration):console.debug("transition is running but app has not been disabled"),i.progressAnimation?t.progressStart():t.play()),a.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){n._willLeave(e,!t||e.index>t.index)}t&&n._willEnter(t)})},e.prototype._insertViewAt=function(t,e){var n=this._views.indexOf(t);n>-1?(b(t._nav===this,"view is not part of the nav"),this._views.splice(e,0,this._views.splice(n,1)[0])):(b(!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){b(t._state===_n||t._state===mn,"view state should be loaded or destroyed");var e=this._views,n=e.indexOf(t);b(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+vn+1,this._renderer)}},e.prototype._preLoad=function(t){b(this.isTransitioning(),"nav controller should be transitioning"),t._preLoad()},e.prototype._willLoad=function(t){b(this.isTransitioning(),"nav controller should be transitioning");try{t._willLoad()}catch(t){this._errHandler&&this._errHandler.handleError(t)}},e.prototype._didLoad=function(t){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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){b(this.isTransitioning(),"nav controller should be transitioning"),b(on.w.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)){this._queueTrns({removeStart:-1,removeCount:1,opts:{direction:gn,progressAnimation:!0}},null)}},e.prototype.swipeBackProgress=function(t){this._sbTrns&&this._sbGesture&&(this._app.setEnabled(!1,Di),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 Pi(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}(Gn),Bi=-1,Ii=64,Di=5e3,Ai=2e3,Li=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(h(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}(),Ri=function(t){function e(e,n,i,o,r,s,l,a,u,c,h,p,d){var f=t.call(this,null,e,n,i,o,r,s,l,a,u,c,p,d)||this;return f._isPortal=!0,f._init=!0,f.setViewport(h),e.viewDidLeave.subscribe(function(t){t.isOverlay||f.dismissPageChangeViews()}),f}return Object(rn.__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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.o)(Object(on.P)(function(){return Yn}))),Object(rn.__param)(9,Object(on.x)())],e)}(xi),ji=new on.p("USERROOT"),Mi=function(t){function e(e,n,i,o,r,s,l){var a=t.call(this,r,i,o,"app-root")||this;return a._userCmp=e,a._cfr=n,a._plt=s,l._appRoot=a,a._stopScrollPlugin=window.IonicStopScroll,a}return Object(rn.__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&&(t.setElementClass(n+=o.major,!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:(b(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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.o)(ji))],e)}(Gn),Ni=9,Fi=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._elementRef=n,this.gestureBlocker=i.createBlocker(pi),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=++Vi,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){return this._viewCtrl.dismiss(null,t,{minClickBlockDuration:400})},t.prototype.ngOnDestroy=function(){b(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.d=this.cancelButton=null,this.gestureBlocker.destroy()},t}(),Vi=-1,zi=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)}}(),qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Wi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),$i=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)}}(),Zi=function(t){function e(e,n,i){var o=this;return n.buttons=n.buttons||[],n.enableBackdropDismiss=!h(n.enableBackdropDismiss)||!!n.enableBackdropDismiss,o=t.call(this,Fi,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("action-sheet-slide-in",qi),i.setTransition("action-sheet-slide-out",Hi),i.setTransition("action-sheet-md-slide-in",Wi),i.setTransition("action-sheet-md-slide-out",Ui),i.setTransition("action-sheet-wp-slide-in",Yi),i.setTransition("action-sheet-wp-slide-out",Xi),o}return $i(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("actionSheet"+("back"===t?"Leave":"Enter"))},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}(cn),Gi=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new Zi(this._app,t,this.config)},t}(),Ki=(n(50),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(pi),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=++Ji,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:h(e.name)?e.name:n+"",placeholder:h(e.placeholder)?e.placeholder:"",value:h(e.value)?e.value:"",label:e.label,checked:!!e.checked,disabled:!!e.disabled,id:h(e.id)?e.id:"alert-input-"+t.id+"-"+n,handler:h(e.handler)?e.handler:null,min:h(e.min)?e.min:null,max:h(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!kn.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&&setTimeout(function(){return 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");this.btnClick(this.d.buttons[this.d.buttons.length-1])}}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){return this._viewCtrl.dismiss(this.getValues(),t,{minClickBlockDuration:400})},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(){b(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.gestureBlocker.destroy()},t}()),Ji=-1,Qi=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)}}(),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),no=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),oo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qi(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),so=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)}}(),lo=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=!h(n.enableBackdropDismiss)||!!n.enableBackdropDismiss,o=t.call(this,Ki,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("alert-pop-in",to),i.setTransition("alert-pop-out",eo),i.setTransition("alert-md-pop-in",no),i.setTransition("alert-md-pop-out",io),i.setTransition("alert-wp-pop-in",oo),i.setTransition("alert-wp-pop-out",ro),o}return so(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"alertLeave":"alertEnter")},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}(cn),ao=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new lo(this._app,t,this.config)},t}(),uo=(n(51),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}()),co=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(rn.__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),_(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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.g)("ion-button"))],e)}(Gn),ho=n(3),po=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){v(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}(),fo=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}(),_o=function(t){function e(e,n,i,r,s,l,a,u){var c=t.call(this,e,n,i,r)||this;return c._defaultValue=s,c._form=l,c._item=a,c._ngControl=u,c._isFocus=!1,c._disabled=!1,c._debouncer=new fo(0),c._init=!1,c._initModel=!1,c.ionFocus=new on.m,c.ionChange=new on.m,c.ionBlur=new on.m,l&&l.register(c),c._value=o(c._defaultValue),a&&(b("lbl-"+a.id===a.labelId,"labelId was not calculated correctly"),c.id=r+"-"+a.registerInput(r),c._labelId=a.labelId,c._item.setElementClass("item-"+r,!0)),u&&(u.valueAccessor=c),c}return Object(rn.__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=_(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(b(on.w.isInAngularZone(),"callback should be zoned"),c(t))return!1;var e=null===t?o(this._defaultValue):this._inputNormalize(t);return!(c(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(){b(on.w.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?b(!1,"input was already initilized"):(this._init=!0,h(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){b(this._init,"component was not initialized"),b(on.w.isInAngularZone(),"_fireFocus: should be zoned"),b(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!!h(t)&&(!f(t)&&!s(t)||t.length>0)},e.prototype.focusNext=function(){this._form&&this._form.tabFocus(this)},e.prototype.ngOnDestroy=function(){b(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(){b(this._init,"component should be initialized");var t=this._item;if(t){!function(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))}(t,this._ngControl);var e=this.hasValue();t.setElementClass("input-has-value",e),t.setElementClass("item-input-has-value",e)}},e}(Gn),mo=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(rn.__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=_(t),this.update()},enumerable:!0,configurable:!0}),e.prototype.update=function(){var t;if(!(this._hidden=null===(t=this._ios&&"ios"===this._iconMode?this._ios:this._md&&"md"===this._iconMode?this._md:this._name))){"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}(Gn),vo=function(t){function e(e,n,i,o,r,s,l){var a=t.call(this,e,n,i,"label")||this;return a.type=""===o?"floating":""===r?"stacked":""===s?"fixed":""===l?"inset":null,a}return Object(rn.__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=Object(rn.__decorate)([Object(rn.__param)(3,Object(on.g)("floating")),Object(rn.__param)(4,Object(on.g)("stacked")),Object(rn.__param)(5,Object(on.g)("fixed")),Object(rn.__param)(6,Object(on.g)("inset"))],e)}(Gn),go=function(){function t(t,e,n,i){this._plt=e,this._zone=n,this._dom=i,this.willShow=new on.m,this.willHide=new on.m,this.didShow=new on.m,this.didHide=new on.m,this.eventsAvailable=!1,this.focusOutline(t.get("focusOutline"));var o=e.win();o.Ionic&&o.Ionic.keyboardPlugin?this.listenV2(o):this.listenV1(o)}return t.prototype.listenV2=function(t){var e=this,n=this._plt;n.registerListener(t,"keyboardWillShow",function(t){e._zone.run(function(){e.willShow.emit(t.keyboardHeight)})},{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(t){e._zone.run(function(){e.didShow.emit(t.keyboardHeight)})},{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=yo),void 0===n&&(n=bo),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(){l.doc().body.classList[u?"add":"remove"]("focus-outline")})}function n(){u=!1,i()}function i(){e(),o&&o(),r&&r(),u&&(o=l.registerListener(a,"mousedown",n,c),r=l.registerListener(a,"touchstart",n,c))}var o,r,s=this,l=s._plt,a=l.doc(),u=!1,c={passive:!0,zone:!1};if(!0===t)return u=!0,e();!1!==t&&l.registerListener(l.doc(),"keydown",function(t){u||t.keyCode!==Ni||(u=!0,i())},c)},t.prototype.hasFocusedTextInput=function(){var t=this._plt.getActiveElement();return!!B(t)&&t.parentElement.querySelector(":focus")===t},t.prototype.hideFormAccessoryBar=function(t){var e=this._plt.win();e&&e.Keyboard&&e.Keyboard.hideFormAccessoryBar&&e.Keyboard.hideFormAccessoryBar(t)},t}(),yo=150,bo=100,wo=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){b(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(b(this.onScrollStart,"onScrollStart is not defined"),b(this.onScroll,"onScroll is not defined"),b(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,l=o;l>0&&n[l]>s;l-=3)r=l;if(r!==o){var a=n[r-2]-n[o-2],u=n[r-1]-n[o-1],c=So/(n[o]-n[r]);e.velocityY=a*c,e.velocityX=u*c,e.directionY=a>0?"up":"down",e.directionX=u>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},ko)}},Oo)}},t.prototype.enableJsScroll=function(t,e){function n(){l||(l=r.scrollHeight-r.parentElement.offsetHeight+t+e)}function i(t){a.timeStamp=t,console.debug("scroll-view, decelerate, velocity: "+a.velocityY),a.velocityY&&(a.velocityY*=Eo,n(),o._t=Math.min(Math.max(o._t+a.velocityY,0),l),a.scrollTop=o._t,o.onScroll(a),o._dom.write(function(){o.setTop(o._t),o._t>0&&o._t<l&&Math.abs(a.velocityY)>To?s=o._dom.read(function(t){i(t)}):(o.isScrolling=!1,a.velocityY=a.velocityX=0,o.onScrollEnd(a))}))}var o=this;o._js=!0;var r=o._el;if(r){console.debug("ScrollView, enableJsScroll");var s,l,a=o.ev,u=[],c=o._plt,h=c.registerListener(r,"touchstart",function(t){u.length=0,l=null,o._dom.cancel(s),u.push(P(t).y,t.timeStamp)},Oo),p=c.registerListener(r,"touchmove",function(t){if(u.length){a.timeStamp=t.timeStamp;var e=P(t).y;n(),o._t-=e-u[u.length-2],o._t=Math.min(Math.max(o._t,0),l),u.push(e,a.timeStamp),o.isScrolling||(a.startY=o._t,a.velocityY=a.deltaY=0,o.isScrolling=!0,o.onScrollStart(a)),o._dom.write(function(){o.setTop(o._t)})}},Oo),d=c.registerListener(r,"touchend",function(t){if(o._dom.cancel(s),!u.length&&o.isScrolling)return o.isScrolling=!1,a.velocityY=a.velocityX=0,void o.onScrollEnd(a);var e=P(t).y;u.push(e,t.timeStamp);for(var r=u.length-1,l=r,c=t.timeStamp-100,h=r;h>0&&u[h]>c;h-=2)l=h;l!==r?(a.velocityY=(u[l-1]-u[r-1])/(u[r]-u[l])*So,Math.abs(a.velocityY)>Co&&(n(),s=o._dom.read(function(t){i(t)}))):(o.isScrolling=!1,a.velocityY=0,o.onScrollEnd(a));u.length=0},Oo);r.parentElement.classList.add("js-scroll"),o._lsn&&o._lsn(),o._lsn=function(){h(),p(),d(),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(d++,!s._el||f||d>h)return s.setScrolling(!1,null),l.style[p]="",void i();var _=Math.min(1,(r-a)/n),m=--_*_*_+1;u!==e&&s.setTop(m*(e-u)+u),c!==t&&s.setLeft(Math.floor(m*(t-c)+c)),m<1?s._plt.raf(o):(f=!0,s.setScrolling(!1,null),l.style[p]="",i())}var r;void 0===i&&(r=new Promise(function(t){i=t}));var s=this,l=s._el;if(!l)return i(),r;if(n<32)return s.setTop(e),s.setLeft(t),i(),r;var a,u=l.scrollTop,c=l.scrollLeft,h=n/16+100,p=s._plt.Css.transform,d=0,f=!1;return s.setScrolling(!0,null),s.isScrolling=!0,s._dom.write(function(t){a=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}(),ko=80,Co=4,To=.12,Eo=.97,So=1e3/60,Oo={passive:!0,zone:!1},Po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(rn.__extends)(e,t),e.prototype.subscribe=function(e,n,i){return this.onSubscribe(),t.prototype.subscribe.call(this,e,n,i)},e}(on.m),xo=function(t){function e(e,n,i,o,r,s,l,a,u,c){var h=t.call(this,e,o,r,"content")||this;h._plt=n,h._dom=i,h._app=s,h._keyboard=l,h._zone=a,h._scrollPadding=0,h._inputPolling=!1,h._hasRefresher=!1,h._imgs=[],h._scrollDownOnLoad=!1,h.ionScrollStart=new Po,h.ionScroll=new Po,h.ionScrollEnd=new Po;var p=function(){return h._scroll.enableEvents()};for(h.ionScroll.onSubscribe=p,h.ionScrollStart.onSubscribe=p,h.ionScrollEnd.onSubscribe=p,h.statusbarPadding=e.getBoolean("statusbarPadding",!1),h._imgReqBfr=e.getNumber("imgRequestBuffer",1400),h._imgRndBfr=e.getNumber("imgRenderBuffer",400),h._imgVelMax=e.getNumber("imgVelocityMax",3),h._scroll=new wo(s,n,i);c;){if(S(c)){h._tabs=c;break}c=c.parent}return u?(h._viewCtrl=u,u._setIONContent(h),u._setIONContentRef(o),h._viewCtrlReadSub=u.readReady.subscribe(function(){h._viewCtrlReadSub.unsubscribe(),h._readDimensions()}),h._viewCtrlWriteSub=u.writeReady.subscribe(function(){h._viewCtrlWriteSub.unsubscribe(),h._writeDimensions()})):(i.read(h._readDimensions.bind(h)),i.write(h._writeDimensions.bind(h))),h}return Object(rn.__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;b(this.getFixedElement(),"fixed element was not found"),b(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=_(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollDownOnLoad",{get:function(){return this._scrollDownOnLoad},set:function(t){this._scrollDownOnLoad=_(t)},enumerable:!0,configurable:!0}),e.prototype.addImg=function(t){this._imgs.push(t)},e.prototype.removeImg=function(t){v(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(b("number"==typeof this._scrollPadding,"_scrollPadding must be a number"),0===t&&(this._inputPolling=!1,this._scrollPadding=-1),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.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,l=this._tabsPlacement,a=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 u=this.getNativeElement();if(u){for(var c,h,p=u.parentElement,d=p.children,f=d.length-1;f>=0;f--)"ION-CONTENT"===(h=(u=d[f]).tagName)?(t.contentElement=u,this._fullscreen&&(c=getComputedStyle(u),this._pTop=H(c.paddingTop),this._pBottom=H(c.paddingBottom),this._pRight=H(c.paddingRight),this._pLeft=H(c.paddingLeft))):"ION-HEADER"===h?(t.headerElement=u,this._hdrHeight=u.clientHeight):"ION-FOOTER"===h&&(t.footerElement=u,this._ftrHeight=u.clientHeight,this._footerEle=u);u=p;for(;u&&"ION-MODAL"!==u.tagName&&!u.classList.contains("tab-subpage");)"ION-TABS"===u.tagName&&(this._tabbarHeight=u.firstElementChild.clientHeight,null===this._tabsPlacement&&(this._tabsPlacement=u.getAttribute("tabsplacement"))),u=u.parentElement;this._tabs&&"top"===this._tabsPlacement&&(this._tTop=this._hdrHeight,a=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 _=this.getContentDimensions();t.scrollHeight=_.scrollHeight,t.scrollWidth=_.scrollWidth,t.contentHeight=_.contentHeight,t.contentWidth=_.contentWidth,t.contentTop=_.contentTop,t.contentBottom=_.contentBottom,this._dirty=e!==this._pTop||i!==this._pBottom||o!==this._pLeft||n!==this._pRight||r!==this._hdrHeight||s!==this._ftrHeight||l!==this._tabsPlacement||a!==this._tTop||this._cTop!==this.contentTop||this._cBottom!==this.contentBottom,this._scroll.init(this.getScrollElement(),this._cTop,this._cBottom),this.imgsUpdate()}else b(!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;b(n>=0,"footerPos has to be positive"),this._footerEle.style.bottom=W(n)}var i="marginTop",o="marginBottom",r=this._fTop,s=this._fBottom;this._fullscreen&&(b(this._pTop>=0,"_paddingTop has to be positive"),b(this._pBottom>=0,"_paddingBottom has to be positive"),i="paddingTop",o="paddingBottom"),this._cTop!==this.contentTop&&(b(this._cTop>=0,"contentTop has to be positive"),b(r>=0,"fixedTop has to be positive"),t.style[i]=W(this._cTop),e.style.marginTop=W(r),this.contentTop=this._cTop),this._cBottom!==this.contentBottom&&(b(this._cBottom>=0,"contentBottom has to be positive"),b(s>=0,"fixedBottom has to be positive"),t.style[o]=W(this._cBottom),e.style.marginBottom=W(s),this.contentBottom=this._cBottom),null!==this._tabsPlacement&&this._tabs&&("top"===this._tabsPlacement?this._tabs.setTabbarPosition(this._tTop,-1):(b("bottom"===this._tabsPlacement,"tabsPlacement should be bottom"),this._tabs.setTabbarPosition(-1,0))),this._scrollDownOnLoad&&(this.scrollToBottom(0),this._scrollDownOnLoad=!1)}else b(!1,"this._fixedEle should be valid")}else b(!1,"this.getScrollElement() should be valid")}else console.debug("Skipping writeDimensions")},e.prototype.imgsUpdate=function(){this._scroll.initialized&&this._imgs.length&&this.isImgsUpdatable()&&function(t,e,n,i,o,r){for(var s,l=e+n,a=[],u=[],c=0,h=t.length;c<h;c++){if(s=t[c],"up"===i){if(s.top<l&&s.bottom>e-r){s.canRequest=s.canRender=!0,a.push(s);continue}if(s.bottom<=e&&s.bottom>e-o){s.canRequest=!0,s.canRender=!1,u.push(s);continue}if(s.top>=l&&s.top<l+r){s.canRequest=s.canRender=!1;continue}}else{if(s.bottom>e&&s.top<l+r){s.canRequest=s.canRender=!0,a.push(s);continue}if(s.top>=l&&s.top<l+o){s.canRequest=!0,s.canRender=!1,u.push(s);continue}if(s.bottom<=e&&s.bottom>e-r){s.canRequest=s.canRender=!1;continue}}s.canRequest=s.canRender=!1,s.reset()}a.sort(q).forEach(function(t){return t.update()}),"up"===i?u.sort(q).reverse().forEach(function(t){return t.update()}):u.sort(q).forEach(function(t){return t.update()})}(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=Object(rn.__decorate)([Object(rn.__param)(8,Object(on.x)()),Object(rn.__param)(9,Object(on.x)())],e)}(Gn),Bo=function(){function t(t,e){this.plt=t,this.reorderList=e,this.selectedItemEle=null,this.events=new wi(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=U(i),this.windowHeight=this.plt.height()-Io,this.lastScrollPosition=this.reorderList._scrollContent(0),this.offset=P(t),this.offset.y+=this.lastScrollPosition,i.classList.add(Ao),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=P(t),i=n.y,o=this.scroll(i);if(Math.abs(i-this.lastYcoord)>30){var r=this.itemForCoord(n);if(r){var s=U(r);if(void 0!==s&&(s!==this.lastToIndex||this.emptyZone)){var l=U(e);this.lastToIndex=s,this.lastYcoord=i,this.emptyZone=!1,this.reorderList._reorderMove(l,s,this.selectedItemHeight)}}else this.emptyZone=!0}var a=Math.round(i-this.offset.y+o);e.style[this.plt.Css.transform]="translateY("+a+"px)"}},t.prototype.onDragEnd=function(t){var e=this,n=this.selectedItemEle;if(n){t&&(t.preventDefault(),t.stopPropagation());var i=this.lastToIndex,o=U(n),r=function(){e.selectedItemEle.style.transition="",e.selectedItemEle.classList.remove(Ao),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){return Y(this.plt.getElementFromPoint(this.offset.x+(this.reorderList._isStart===this.plt.isRTL?-100:100),t.y),this.reorderList.getNativeElement())},t.prototype.scroll=function(t){return t<Io?this.lastScrollPosition=this.reorderList._scrollContent(-Do):t>this.windowHeight&&(this.lastScrollPosition=this.reorderList._scrollContent(Do)),this.lastScrollPosition},t.prototype.destroy=function(){this.onDragEnd(null),this.events.destroy(),this.events=null,this.reorderList=null},t}(),Io=60,Do=10,Ao="reorder-active",Lo=function(){function t(t,e){this.from=t,this.to=e}return t.prototype.applyTo=function(t){!function(t,e){var n=t[e.from];t.splice(e.from,1),t.splice(e.to,0,n)}(t,this)},t}(),Ro=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 on.m,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=_(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 Bo(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 Lo(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(rn.__decorate)([Object(rn.__param)(5,Object(on.x)())],t)}(),jo=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(rn.__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){this._setColor(t,e=e||"item")},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=Object(rn.__decorate)([Object(rn.__param)(4,Object(on.x)())],e)}(Gn),Mo=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}(),No="picker-opt-selected",Fo=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 on.m,this.events=new wi(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=P(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=P(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=P(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){this.velocity=i(-60,(this.pos[o-1]-this.pos[n-1])/(this.pos[n]-this.pos[o])*(1e3/60),60)}if(Math.abs(e-this.startY)>3){this.update(this.y+(e-this.startY),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,l,a,u,c,h,p,d,f=this.colEle.nativeElement.children,_=f.length,m=this.col.selectedIndex=Math.min(Math.max(Math.round(-t/this.optHeight),0),_-1),v=0===e?null:e+"ms",g="scale("+this.scaleFactor+")";for(o=0;o<_;o++)r=f[o],s=this.col.options[o],l=o*this.optHeight+t,a=!0,p="",0!==this.rotateFactor?(h=l*this.rotateFactor,Math.abs(h)>90?a=!1:(0,u=0,c=90,p="rotateX("+h+"deg) ")):(0,c=0,u=l,Math.abs(u)>170&&(a=!1)),d=m===o,a?(p+="translate3d(0px,"+u+"px,"+c+"px) ",1===this.scaleFactor||d||(p+=g)):p="translate3d(-9999px,0px,0px)",e!==s._dur&&(s._dur=e,r.style[this._plt.Css.transitionDuration]=v),p!==s._trans&&(s._trans=p,r.style[this._plt.Css.transform]=p),d!==s._selected&&(s._selected=d,d?r.classList.add(No):r.classList.remove(No));if(this.col.prevSelected=m,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 y=this.ionChange;y.observers.length>0&&this._zone.run(y.emit.bind(y,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}(),Vo=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._elementRef=e,this._gestureBlocker=i.createBlocker(pi),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=++zo,this.lastClick=0}return t.prototype.ionViewWillLoad=function(){var t=this.d;t.buttons=t.buttons.map(function(t){return s(t)?{text:t}:(t.role&&(t.cssRole="picker-toolbar-"+t.role),t)}),t.columns=t.columns.map(function(t){return h(t.options)||(t.options=[]),t.selectedIndex=t.selectedIndex||0,t.options=t.options.map(function(t){var e={text:"",value:"",disabled:t.disabled};return h(t)&&(s(t)||l(t)?(e.text=t.toString(),e.value=t):(e.text=h(t.text)?t.text:t.value,e.value=h(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");this.btnClick(this.d.buttons[this.d.buttons.length-1])}}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(){b(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}(),zo=-1,qo=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)}}(),Ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qo(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qo(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),Uo=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=!h(n.enableBackdropDismiss)||Boolean(n.enableBackdropDismiss),o=t.call(this,Vo,n,null)||this,o._app=e,o.isOverlay=!0,o.ionChange=new on.m,i.setTransition("picker-slide-in",Ho),i.setTransition("picker-slide-out",Wo),o}return Object(rn.__extends)(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"pickerLeave":"pickerEnter")},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(){b(this._cmp,"componentRef must be valid"),b(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}(cn),Yo=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new Uo(this._app,t,this.config)},t}(),Xo=(this&&this.__assign||Object,n(8),n(25),function(){return function(){}}()),$o=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)}}(),Zo=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:ui,priority:ci,disableScroll:!0})})||this;return r.list=n,r.preSelectedContainer=null,r.selectedContainer=null,r.openContainer=null,r}return $o(e,t),e.prototype.canStart=function(t){if(this.selectedContainer)return!1;var e=function(t){var e=t.target.closest("ion-item-sliding");return e?e.$ionComponent:null}(t);if(!e)return this.closeOpened(),!1;e!==this.openContainer&&this.closeOpened();var n=P(t);return this.preSelectedContainer=e,this.firstCoordX=n.x,this.firstTimestamp=Date.now(),!0},e.prototype.onDragStart=function(t){t.preventDefault();var e=P(t);this.selectedContainer=this.openContainer=this.preSelectedContainer,this.selectedContainer.startSliding(e.x)},e.prototype.onDragMove=function(t){t.preventDefault(),this.selectedContainer.moveSliding(P(t).x)},e.prototype.onDragEnd=function(t){t.preventDefault();var e=P(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){(function(t){return!!t.target.closest("ion-item-options>button")})(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}(ki),Go=function(t){function e(e,n,i,o,r,s){var l=t.call(this,e,n,i,"list")||this;return l._plt=o,l._gestureCtrl=r,l._domCtrl=s,l._enableSliding=!0,l._containsSlidingItems=!1,l}return Object(rn.__extends)(e,t),Object.defineProperty(e.prototype,"sliding",{get:function(){return this._enableSliding},set:function(t){this._enableSliding=_(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 Zo(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}(Gn);!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"}(en||(en={}));var Ko=function(){function t(t){this.elementRef=t,t.nativeElement.$ionComponent=this}return t.prototype.getReorderNode=function(){return Y(this.elementRef.nativeElement,null)},t.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation()},t}(),Jo=function(){function t(t,e,n,i,o,r){this._viewCtrl=t,this._config=e,b(o.data,"params data must be valid"),this.gestureBlocker=i.createBlocker(pi),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=++Qo}return t.prototype.ngOnInit=function(){c(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(){b(!1===this.gestureBlocker.blocked,"gesture blocker must be already unblocked"),this.gestureBlocker.destroy()},t}(),Qo=-1,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)}}(),er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tr(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Dn),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)}}(),ar=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n.showBackdrop=!h(n.showBackdrop)||!!n.showBackdrop,n.enableBackdropDismiss=!!h(n.enableBackdropDismiss)&&!!n.enableBackdropDismiss,n.dismissOnPageChange=!!h(n.dismissOnPageChange)&&!!n.dismissOnPageChange,o=t.call(this,Jo,n,null)||this,o._app=e,o.isOverlay=!0,i.setTransition("loading-pop-in",er),i.setTransition("loading-pop-out",nr),i.setTransition("loading-md-pop-in",ir),i.setTransition("loading-md-pop-out",or),i.setTransition("loading-wp-pop-in",rr),i.setTransition("loading-wp-pop-out",sr),o}return lr(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"loadingLeave":"loadingEnter")},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}(cn),ur=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new ar(this._app,t,this.config)},t}(),cr=(n(60),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])}}(),function(){return function(){}}()),hr=function(t){function e(e,n,i,o,r,s,l,a,u,c,h,p,d,f){var _=t.call(this,n,i,o,r,s,l,a,u,c,h,p,d,f)||this;return _._hasInit=!1,e&&e._setContent(_),n?n.registerChildNav(_):e&&e.getNav()?(_.parent=e.getNav(),_.parent.registerChildNav(_)):i&&!i.getRootNavById(_.id)&&i.registerRootNav(_),_}return Object(rn.__extends)(e,t),e,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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.x)()),Object(rn.__param)(1,Object(on.x)()),Object(rn.__param)(11,Object(on.x)())],e)}(xi),pr=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=function(t){function e(e,n,i){return t.call(this,e,n,i,"toolbar")||this}return pr(e,t),e.prototype._setTitle=function(t){this._title=t},e.prototype.getTitleText=function(){return this._title&&this._title.getTitleText()||""},e}(Gn),fr=function(t){function e(e,n,i,o,r,s){var l=t.call(this,o,r,s)||this;return l._app=e,l.navCtrl=i,l._hidden=!1,l._hideBb=!1,n&&n._setNavbar(l),l._bbIcon=o.get("backButtonIcon"),l._sbPadding=o.getBoolean("statusbarPadding"),l._backText=o.get("backButtonText","Back"),l}return Object(rn.__extends)(e,t),Object.defineProperty(e.prototype,"hideBackButton",{get:function(){return this._hideBb},set:function(t){this._hideBb=_(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=Object(rn.__decorate)([Object(rn.__param)(1,Object(on.x)()),Object(rn.__param)(2,Object(on.x)())],e)}(dr),_r=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(rn.__decorate)([Object(rn.__param)(1,Object(on.x)()),Object(rn.__param)(2,Object(on.x)()),Object(rn.__param)(3,Object(on.x)())],t)}(),mr=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)}}(),vr=function(){function t(t){this.ani=new Sn(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 l=1-Math.min(Math.abs(n)/4,.7),a=s.getDuration()*l;s.progressEnd(t,e,a)},t.prototype.destroy=function(){this.ani.destroy(),this.ani=null},t}();bn.registerType("reveal",function(t){function e(e,n){var i=t.call(this,n)||this,o=e.width()*(e.isRightSide?-1:1)+"px",r=new Sn(n,e.getContentElement());return r.fromTo("translateX","0px",o),i.ani.add(r),i}return mr(e,t),e}(vr));bn.registerType("push",function(t){function e(e,n){var i,o,r,s=t.call(this,n)||this,l=e.width();e.isRightSide?(i=-l+"px",o=l+"px",r="0px"):(i=l+"px",r="0px",o=-l+"px");var a=new Sn(n,e.getMenuElement());a.fromTo("translateX",o,r),s.ani.add(a);var u=new Sn(n,e.getContentElement());return u.fromTo("translateX","0px",i),s.ani.add(u),s}return mr(e,t),e}(vr));bn.registerType("overlay",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 l=new Sn(n,e.getMenuElement());l.fromTo("translateX",i,o),r.ani.add(l);var a=new Sn(n,e.getBackdropElement());return a.fromTo("opacity",.01,.35),r.ani.add(a),r}return mr(e,t),e}(vr));var gr,yr=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;void 0===t&&(t={});return s(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}(),br=function(){function t(t){this._compiler=t}return t.prototype.load=function(t,e){return this._compiler instanceof on.i?function(t,e){return n(26)(t).then(function(n){var i=n[e];if(!i)throw new Error("Module "+t+" does not export "+e);return i})}(t,e):function(t,e,i){return i||(i="default"),n(26)(e).then(function(n){var o=n[i];if(!o)throw new Error("Module "+e+" does not export "+i);return t.compileModuleAsync(o)})}(this._compiler,t,e)},t}(),wr=new on.p("LZYCMP"),kr=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(Cr),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(wr);return e._cfrMap.set(o,i.componentFactoryResolver),{componentFactoryResolver:i.componentFactoryResolver,component:o}})},t.prototype.getComponentFactoryResolver=function(t){return this._cfrMap.get(t)},t}(),Cr="#",Tr=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 l=i.get("opts");b(l,"modal data must be valid"),this._gestureBlocker=r.createBlocker({disable:[ai,li]}),this._bdDismiss=l.enableBackdropDismiss,l.cssClass&&l.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){return this._viewCtrl.dismiss(null,"backdrop",{minClickBlockDuration:400})}},t.prototype._keyUp=function(t){this._enabled&&this._viewCtrl.isLast()&&27===t.keyCode&&this._bdClick()},t.prototype.ngOnDestroy=function(){b(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}(),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)}}(),Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=e.querySelector("ion-backdrop"),i=new Sn(this.plt,n),o=new Sn(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}(Ln),Or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new Sn(this.plt,e.querySelector("ion-backdrop")),i=e.querySelector(".modal-wrapper"),o=i.getBoundingClientRect(),r=new Sn(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}(Ln),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=new Sn(this.plt,e.querySelector("ion-backdrop")),i=new Sn(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}(Ln),xr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Er(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new Sn(this.plt,e.querySelector("ion-backdrop")),i=new Sn(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}(Ln),Br=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)}}(),Ir=function(t){function e(e,n,i,o,r){void 0===o&&(o={});var s=this;return i=i||{},i.component=n,o.showBackdrop=!h(o.showBackdrop)||!!o.showBackdrop,o.enableBackdropDismiss=!h(o.enableBackdropDismiss)||!!o.enableBackdropDismiss,i.opts=o,s=t.call(this,Tr,i,null)||this,s._app=e,s._enterAnimation=o.enterAnimation,s._leaveAnimation=o.leaveAnimation,s.isOverlay=!0,r.setTransition("modal-slide-in",Sr),r.setTransition("modal-slide-out",Or),r.setTransition("modal-md-slide-in",Pr),r.setTransition("modal-md-slide-out",xr),s}return Br(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}(cn),Dr=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)}}(),Ar=function(t){function e(e,n,i,o,r,s){void 0===o&&(o={});var l=t.call(this,e,n,r,s)||this;return l.data=i,l.opts=o,l.isOverlay=!0,l}return Dr(e,t),e.prototype.getImplementation=function(){return new Ir(this._app,this._component,this.data,this.opts,this._config)},e}(yr),Lr=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 Ar(this._app,t,e,n,this.config,this.deepLinker)},t}(),Rr=(n(61),function(){function t(t,e,n,i,o,r,s,l){this._cfr=t,this._elementRef=e,this._renderer=n,this._config=i,this._navParams=o,this._viewCtrl=r,this.moduleLoader=l,this._gestureBlocker=s.createBlocker(pi),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=++jr}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(){b(!1===this._gestureBlocker.blocked,"gesture blocker must be already unblocked"),this._gestureBlocker.destroy()},t}()),jr=-1,Mr=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)}}(),Nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mr(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(),l=s.width,a=s.height,u=this.plt.width(),c=this.plt.height(),h=e&&e.target&&e.target.getBoundingClientRect(),p=h&&"top"in h?h.top:c/2-a/2,d=h&&h.height||0,f={top:p,left:h&&"left"in h?h.left:u/2-l/2};f.left<Wr?f.left=Wr:l+Wr+f.left>u&&(f.left=u-l-Wr,i="right"),p+d+a>c&&p-a>0?(f.top=p-a,t.className=t.className+" popover-bottom",n="bottom"):p+d+a>c&&(r.style.bottom=Wr+"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(),l=s.width,a=s.height,u=this.plt.width(),c=this.plt.height(),h=e&&e.target&&e.target.getBoundingClientRect(),p=h&&"top"in h?h.top:c/2-a/2,d=h&&"left"in h?h.left:u/2,f=h&&h.width||0,_=h&&h.height||0,m=t.querySelector(".popover-arrow"),v=m.getBoundingClientRect(),g=v.width,y=v.height;h||(m.style.display="none");var b={top:p+_,left:d+f/2-g/2},w={top:p+_+(y-1),left:d+f/2-l/2},k=!1,C=!1;w.left<Hr+25?(k=!0,w.left=Hr):l+Hr+w.left+25>u&&(C=!0,w.left=u-l-Hr,i="right"),p+_+a>c&&p-a>0?(b.top=p-(y+1),w.top=p-a-(y-1),t.className=t.className+" popover-bottom",n="bottom"):p+_+a>c&&(r.style.bottom=Hr+"%"),m.style.top=b.top+"px",m.style.left=b.left+"px",r.style.top=w.top+"px",r.style.left=w.left+"px",k&&(CSS.supports("left","constant(safe-area-inset-left)")?r.style.left="calc("+w.left+"px + constant(safe-area-inset-left)":CSS.supports("left","env(safe-area-inset-left)")&&(r.style.left="calc("+w.left+"px + env(safe-area-inset-left)")),C&&(CSS.supports("right","constant(safe-area-inset-right)")?r.style.left="calc("+w.left+"px - constant(safe-area-inset-right)":CSS.supports("right","env(safe-area-inset-right)")&&(r.style.left="calc("+w.left+"px - env(safe-area-inset-right)")),r.style[this.plt.Css.transformOrigin]=n+" "+i,o.style.opacity="1"},e}(Ln),Fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mr(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Nr),Vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mr(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector("ion-backdrop")),n=new Sn(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}(Nr),zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mr(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector(".popover-content")),n=new Sn(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}(Nr),qr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mr(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new Sn(this.plt,t.querySelector(".popover-wrapper"));e.fromTo("opacity",.99,0),this.easing("ease").duration(500).fromTo("opacity",.01,1).add(e)},e}(Nr),Hr=2,Wr=12,Ur=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)}}(),Yr=function(t){function e(e,n,i,o,r){void 0===i&&(i={}),void 0===o&&(o={});var s=this;return o.showBackdrop=!h(o.showBackdrop)||!!o.showBackdrop,o.enableBackdropDismiss=!h(o.enableBackdropDismiss)||!!o.enableBackdropDismiss,i.component=n,i.opts=o,s=t.call(this,Rr,i,null)||this,s._app=e,s.isOverlay=!0,r.setTransition("popover-pop-in",Fr),r.setTransition("popover-pop-out",Vr),r.setTransition("popover-md-pop-in",zr),r.setTransition("popover-md-pop-out",qr),s}return Ur(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"popoverLeave":"popoverEnter")},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t)},e}(cn),Xr=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)}}(),$r=function(t){function e(e,n,i,o,r,s){void 0===o&&(o={});var l=t.call(this,e,n,r,s)||this;return l.data=i,l.opts=o,l.isOverlay=!0,l}return Xr(e,t),e.prototype.getImplementation=function(){return new Yr(this._app,this._component,this.data,this.opts,this._config)},e}(yr),Zr=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 $r(this._app,t,e,n,this.config,this._deepLinker)},t}(),Gr=(n(62),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 on.m,this.id=++Kr}return t,Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=_(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}()),Kr=-1,Jr=function(t){function e(e,n,i,o,r,s){var l=t.call(this,n,i,o,"radio")||this;return l._form=e,l._item=r,l._group=s,l._checked=!1,l._disabled=!1,l._value=null,l.ionSelect=new on.m,e.register(l),s&&(l.id="rb-"+s.add(l)),r&&(l.id="rb-"+r.registerInput("radio"),l._labelId="lbl-"+r.id,l._item.setElementClass("item-radio",!0)),l}return Object(rn.__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 p(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=_(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=_(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&&h(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=Object(rn.__decorate)([Object(rn.__param)(4,Object(on.x)()),Object(rn.__param)(5,Object(on.x)())],e)}(Gn),Qr=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 fo(0),s.cancelButtonText="Cancel",s.placeholder="Search",s.type="search",s.ionInput=new on.m,s.ionCancel=new on.m,s.ionClear=new on.m,s.debounce=250,s}return Object(rn.__extends)(e,t),Object.defineProperty(e.prototype,"showCancelButton",{get:function(){return this._showCancelButton},set:function(t){this._showCancelButton=_(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=_(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;h(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=Object(rn.__decorate)([Object(rn.__param)(4,Object(on.x)())],e)}(_o),ts=function(){function t(){this.isActive=!1,this._disabled=!1,this.ionSelect=new on.m}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=_(t)},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){console.debug("SegmentButton, select",this.value),this.ionSelect.emit(this)},t.prototype.ngOnInit=function(){h(this.value)||console.warn('<ion-segment-button> requires a "value" attribute')},t}(),es=function(t){function e(e,n,i,o){return t.call(this,e,n,i,"segment",null,null,null,o)||this}return Object(rn.__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 b(!1,"buttons are undefined")},e=Object(rn.__decorate)([Object(rn.__param)(3,Object(on.x)())],e)}(_o),ns=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}(),is=(Date.now(),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(rn.__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=_(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=os[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}(Gn)),os={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}}}}},rs=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=++ss,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}(),ss=-1,ls=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)}}(),as=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new Sn(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===fs)n.fromTo("translateY","-100%","10px");else if(this.enteringView.data&&this.enteringView.data.position===_s){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}(Dn),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new Sn(this.plt,t);this.leavingView.data&&this.leavingView.data.position===fs?e.fromTo("translateY","10px","-100%"):this.leavingView.data&&this.leavingView.data.position===_s?e.fromTo("opacity",.99,0):e.fromTo("translateY","-10px","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(300).add(e)},e}(Dn),cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new Sn(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===fs)n.fromTo("translateY","-100%","0%");else if(this.enteringView.data&&this.enteringView.data.position===_s){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}(Dn),hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new Sn(this.plt,t);this.leavingView.data&&this.leavingView.data.position===fs?e.fromTo("translateY","0%","-100%"):this.leavingView.data&&this.leavingView.data.position===_s?e.fromTo("opacity",.99,0):e.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e)},e}(Dn),ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=t.querySelector(".toast-wrapper"),n=new Sn(this.plt,e);if(this.enteringView.data&&this.enteringView.data.position===fs)n.fromTo("opacity",.01,1),n.fromTo("scale",1.3,1);else if(this.enteringView.data&&this.enteringView.data.position===_s){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}(Dn),ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ls(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement.querySelector(".toast-wrapper"),e=new Sn(this.plt,t);e.fromTo("opacity",.99,0),e.fromTo("scale",1,1.3);this.easing("ease-out").duration(150).add(e)},e}(Dn),fs="top",_s="middle",ms=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)}}(),vs=function(t){function e(e,n,i){void 0===n&&(n={});var o=this;return n.dismissOnPageChange=!!h(n.dismissOnPageChange)&&!!n.dismissOnPageChange,o=t.call(this,rs,n,null)||this,o._app=e,n.position&&o.isValidPosition(n.position)||(n.position=bs),o.isOverlay=!0,i.setTransition("toast-slide-in",as),i.setTransition("toast-slide-out",us),i.setTransition("toast-md-slide-in",cs),i.setTransition("toast-md-slide-out",hs),i.setTransition("toast-wp-slide-out",ds),i.setTransition("toast-wp-slide-in",ps),o}return ms(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("toast"+("back"===t?"Leave":"Enter"))},e.prototype.isValidPosition=function(t){return t===gs||t===ys||t===bs},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}(cn),gs="top",ys="middle",bs="bottom",ws=function(){function t(t,e){this._app=t,this.config=e}return t.prototype.create=function(t){return void 0===t&&(t={}),new vs(this._app,t,this.config)},t}(),ks=(n(63),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])}}(),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(rn.__extends)(e,t),e=Object(rn.__decorate)([Object(rn.__param)(3,Object(on.x)())],e)}(Gn)),Cs=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(rn.__extends)(e,t),e}(dr),Ts=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(rn.__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=Object(rn.__decorate)([Object(rn.__param)(3,Object(on.x)()),Object(rn.__param)(4,Object(on.x)()),Object(rn.__param)(4,Object(on.o)(Object(on.P)(function(){return fr})))],e)}(Gn),Es=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(rn.__extends)(e,t),e.prototype.getTitleText=function(){return this._elementRef.nativeElement.textContent},e=Object(rn.__decorate)([Object(rn.__param)(3,Object(on.x)()),Object(rn.__param)(4,Object(on.x)()),Object(rn.__param)(4,Object(on.o)(Object(on.P)(function(){return fr})))],e)}(Gn);!function(t){t[t.NoChanges=1]="NoChanges",t[t.ChangeDetection=2]="ChangeDetection",t[t.DomWrite=3]="DomWrite"}(gr||(gr={}));var Ss=function(){function t(t,e,n){this.app=t,this.dom=n,this._queue=[],this._active=[],this.activatedDelay=Os,this.clearDelay=Ps,this._css=e.get("activatedClass","activated")}return t.prototype.clickAction=function(t,e,n){if(!Q(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;Q(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++)i._active.push(t=i._queue[e]),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}(),Os=80,Ps=80,xs=function(){function t(t,e,n){this.dom=n,this.highlight=new Ss(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(!Q(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(!x(6,n,P(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),l=Math.min(Math.max(Math.hypot(r,s),64),240);e.hasAttribute("ion-item")&&(l=Math.min(l,140)),i-=l/2,o-=l/2,i=Math.round(i),o=Math.round(o),l=Math.round(l);var a=this.dom.plt.Css;t.style.opacity="",t.style[a.transform]="translate3d("+i+"px, "+o+"px, 0px) scale(0.001)",t.style[a.transition]="";var u=Math.sqrt(t.$width+t.$height),c=Math.max(1600*Math.sqrt(u/Bs)+.5,260),h=Math.round(.7*c),p=Math.round(c-h),d="translate3d("+i+"px, "+o+"px, 0px) scale(1)",f="transform "+(c=Math.round(c))+"ms,opacity "+h+"ms "+p+"ms";this.dom.write(function(){t.style.width=t.style.height=l+"px",t.style.opacity="0",t.style[a.transform]=d,t.style[a.transition]=f},16)}},t}(),Bs=300,Is=function(){function t(t,e,n,i,o){this.plt=e,this.app=i,this.gestureCtrl=o,this.disableClick=0,this.events=new wi(e);var r=t.get("activator");"ripple"===r?this.activator=new xs(i,t,n):"highlight"===r&&(this.activator=new Ss(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=Rs}return t.prototype.pointerStart=function(t){return!this.startCoord&&(!!this.app.isEnabled()&&(this.lastTouchEnd=0,this.dispatchClick=!0,this.plt.doc()===t.target?(this.startCoord=P(t),!0):(this.activatableEle=tt(t.target),this.activatableEle?(this.startCoord=P(t),this.activator&&this.activator.downAction(t,this.activatableEle,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&&(y(function(){return n.lastTouchEnd=Date.now()}),this.startCoord)){if(this.activator&&t.target!==this.plt.doc()){var i=tt(t.target)||this.activatableEle;i&&this.activator.upAction(t,i,this.startCoord)}this.usePolyfill&&e===bi&&this.app.isEnabled()&&this.handleTapPolyfill(t),this.startCoord=null,this.activatableEle=null}},t.prototype.pointerCancel=function(t){console.debug("pointerCancel from "+t.type+" "+Date.now()),this.startCoord=null,this.activatableEle=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()||x(Ls,this.startCoord,P(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=tt(t.target);n&&this.activator.clickAction(t,n,this.startCoord)}y(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){b(this.usePolyfill,"this code should not be used if tapPolyfill is disabled");var e=P(t);if(x(Ls,this.startCoord,e))console.debug("click from touch prevented by pointer moved");else if(this.disableClick=Date.now()+Rs,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}(),Ds=["A","BUTTON"],As=["tappable","ion-button"],Ls=100,Rs=2500,js=window,Ms=document,Ns=["","webkit","Moz","MS","ms","o"],Fs=Ms.createElement("div"),Vs="function",zs=Math.round,qs=Math.abs,Hs=Date.now,Ws=1,Us="ontouchstart"in window,Ys=void 0!==vt(window,"PointerEvent"),Xs=Us&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),$s=25,Zs=1,Gs=2,Ks=4,Js=8,Qs=1,tl=2,el=4,nl=8,il=16,ol=tl|el,rl=nl|il,sl=ol|rl,ll=["x","y"],al=["clientX","clientY"];yt.prototype={handler:function(){},init:function(){this.evEl&&ut(this.element,this.evEl,this.domHandler),this.evTarget&&ut(this.target,this.evTarget,this.domHandler),this.evWin&&ut(gt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&ct(this.element,this.evEl,this.domHandler),this.evTarget&&ct(this.target,this.evTarget,this.domHandler),this.evWin&&ct(gt(this.element),this.evWin,this.domHandler)}};var ul={mousedown:Zs,mousemove:Gs,mouseup:Ks},cl="mousedown",hl="mousemove mouseup";rt(Ot,yt,{handler:function(t){var e=ul[t.type];e&Zs&&0===t.button&&(this.pressed=!0),e&Gs&&1!==t.which&&(e=Ks),this.pressed&&this.allow&&(e&Ks&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var pl={pointerdown:Zs,pointermove:Gs,pointerup:Ks,pointercancel:Js,pointerout:Js},dl={2:"touch",3:"pen",4:"mouse",5:"kinect"},fl="pointerdown",_l="pointermove pointerup pointercancel";js.MSPointerEvent&&!js.PointerEvent&&(fl="MSPointerDown",_l="MSPointerMove MSPointerUp MSPointerCancel"),rt(Pt,yt,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=pl[i],r=dl[t.pointerType]||t.pointerType,s="touch"==r,l=ft(e,t.pointerId,"pointerId");o&Zs&&(0===t.button||s)?l<0&&(e.push(t),l=e.length-1):o&(Ks|Js)&&(n=!0),l<0||(e[l]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(l,1))}});var ml={touchstart:Zs,touchmove:Gs,touchend:Ks,touchcancel:Js},vl="touchstart",gl="touchstart touchmove touchend touchcancel";rt(xt,yt,{handler:function(t){var e=ml[t.type];if(e===Zs&&(this.started=!0),this.started){var n=function(t,e){var n=_t(t.touches),i=_t(t.changedTouches);return e&(Ks|Js)&&(n=mt(n.concat(i),"identifier",!0)),[n,i]}.call(this,t,e);e&(Ks|Js)&&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 yl={touchstart:Zs,touchmove:Gs,touchend:Ks,touchcancel:Js},bl="touchstart touchmove touchend touchcancel";rt(Bt,yt,{handler:function(t){var e=yl[t.type],n=function(t,e){var n=_t(t.touches),i=this.targetIds;if(e&(Zs|Gs)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=_t(t.changedTouches),l=[],a=this.target;if(r=n.filter(function(t){return ht(t.target,a)}),e===Zs)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&l.push(s[o]),e&(Ks|Js)&&delete i[s[o].identifier],o++;return l.length?[mt(r.concat(l),"identifier",!0),l]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),rt(It,yt,{handler:function(t,e,n){var i="mouse"==n.pointerType;if("touch"==n.pointerType)this.mouse.allow=!1;else if(i&&!this.mouse.allow)return;e&(Ks|Js)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var wl=vt(Fs.style,"touchAction"),kl=void 0!==wl,Cl="auto",Tl="manipulation",El="none",Sl="pan-x",Ol="pan-y";Dt.prototype={set:function(t){"compute"==t&&(t=this.compute()),kl&&this.manager.element.style&&(this.manager.element.style[wl]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return ot(this.manager.recognizers,function(e){lt(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(pt(t,El))return El;var e=pt(t,Sl),n=pt(t,Ol);return e&&n?El:e||n?e?Sl:Ol:pt(t,Tl)?Tl:Cl}(t.join(" "))},preventDefaults:function(t){if(!kl){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=pt(i,El),r=pt(i,Ol),s=pt(i,Sl);if(o){if(1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return}if(!s||!r)return o||r&&n&ol||s&&n&rl?this.preventSrc(e):void 0}}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Pl=1,xl=2,Bl=4,Il=8,Dl=Il,Al=16;At.prototype={defaults:{},set:function(t){return Object.assign(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(it(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=jt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return it(t,"dropRecognizeWith",this)?this:(t=jt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(it(t,"requireFailure",this))return this;var e=this.requireFail;return t=jt(t,this),-1===ft(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(it(t,"dropRequireFailure",this))return this;t=jt(t,this);var e=ft(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<Il&&e(n.options.event+Lt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=Il&&e(n.options.event+Lt(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|Pl)))return!1;t++}return!0},recognize:function(t){var e=Object.assign({},t);if(!lt(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(Dl|Al|32)&&(this.state=Pl),this.state=this.process(e),this.state&(xl|Bl|Il|Al)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},rt(Mt,At,{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&(xl|Bl),o=this.attrTest(t);return i&&(n&Js||!o)?e|Al:i||o?n&Ks?e|Il:e&xl?e|Bl:xl:32}}),rt(Nt,Mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:sl},getTouchAction:function(){var t=this.options.direction,e=[];return t&ol&&e.push(Ol),t&rl&&e.push(Sl),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&ol?(o=0===r?Qs:r<0?tl:el,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===s?Qs:s<0?nl:il,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return Mt.prototype.attrTest.call(this,t)&&(this.state&xl||!(this.state&xl)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Rt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),rt(Ft,Mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[El]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&xl)},emit:function(t){if(1!==t.scale){t.additionalEvent=this.options.event+(t.scale<1?"in":"out")}this._super.emit.call(this,t)}}),rt(Vt,At,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Cl]},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&(Ks|Js)&&!o)this.reset();else if(t.eventType&Zs)this.reset(),this._timer=nt(function(){this.state=Dl,this.tryEmit()},e.time,this);else if(t.eventType&Ks)return Dl;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Dl&&(t&&t.eventType&Ks?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Hs(),this.manager.emit(this.options.event,this._input)))}}),rt(zt,Mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[El]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&xl)}}),rt(qt,Mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ol|rl,pointers:1},getTouchAction:function(){return Nt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(ol|rl)?e=t.overallVelocity:n&ol?e=t.overallVelocityX:n&rl&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&qs(e)>this.options.velocity&&t.eventType&Ks},emit:function(t){var e=Rt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),rt(Ht,At,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Tl]},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&Zs&&0===this.count)return this.failTimeout();if(i&&o&&n){if(t.eventType!=Ks)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Et(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=nt(function(){this.state=Dl,this.tryEmit()},e.interval,this),xl):Dl}return 32},failTimeout:function(){return this._timer=nt(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Dl&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});var Ll={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[zt,{enable:!1}],[Ft,{enable:!1},["rotate"]],[qt,{direction:ol}],[Nt,{direction:ol},["swipe"]],[Ht],[Ht,{event:"doubletap",taps:2},["tap"]],[Vt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ut.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&Dl)&&(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&(xl|Bl|Il)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof At)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(it(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(it(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=ft(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){var n=this.handlers;return ot(dt(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return ot(dt(t),function(t){e?n[t]&&n[t].splice(ft(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&function(t,e){var n=Ms.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(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&&Yt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Object.assign(Wt,{INPUT_START:Zs,INPUT_MOVE:Gs,INPUT_END:Ks,INPUT_CANCEL:Js,STATE_POSSIBLE:Pl,STATE_BEGAN:xl,STATE_CHANGED:Bl,STATE_ENDED:Il,STATE_RECOGNIZED:Dl,STATE_CANCELLED:Al,STATE_FAILED:32,DIRECTION_NONE:Qs,DIRECTION_LEFT:tl,DIRECTION_RIGHT:el,DIRECTION_UP:nl,DIRECTION_DOWN:il,DIRECTION_HORIZONTAL:ol,DIRECTION_VERTICAL:rl,DIRECTION_ALL:sl,Manager:Ut,Input:yt,TouchAction:Dt,TouchInput:Bt,MouseInput:Ot,PointerEventInput:Pt,TouchMouseInput:It,SingleTouchInput:xt,Recognizer:At,AttrRecognizer:Mt,Tap:Ht,Pan:Nt,Swipe:qt,Pinch:Ft,Rotate:zt,Press:Vt,on:ut,off:ct,each:ot,inherit:rt,bindFn:st,prefixed:vt}),js.Hammer=Wt;var Rl=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}(),jl=(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])}}(),{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:G,inputCloning:G,keyboardHeight:250,mode:"ios",statusbarPadding:Z,swipeBackEnabled:G,tapPolyfill:J,virtualScrollEventAssist:J,disableScrollAssist:G,scrollAssist:G,keyboardResizes:function(t){var e=t.win();return!(!e.Ionic||!0!==e.Ionic.keyboardResizes)}},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 Z(t)}},electron:{superset:"core",initialize:function(t){t.prepareReady=function(){t.windowLoad(function(){t.triggerReady("electron")})}},isMatch:function(t){return function(t){return t.testUserAgent("Electron")}(t)}}}),Ml=new on.p("PLTCONFIG"),Nl={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"},Fl={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"},Vl={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"},zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(rn.__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}(nn.g),ql=n(2),Hl=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=Object(rn.__decorate)([Object(rn.__param)(0,Object(on.o)(Object(on.P)(function(){return Yn})))],t)}(),Wl=function(){function t(){}return e=t,t.forRoot=function(t,n,i){return void 0===n&&(n=null),void 0===i&&(i=null),{ngModule:e,providers:[{provide:ji,useValue:t},{provide:an,useValue:n},{provide:ii,useValue:i},{provide:ql.a,useValue:"/"},{provide:Ml,useFactory:$t},{provide:Tn,useFactory:I,deps:[nn.b,Ml,on.w]},{provide:ln,useFactory:w,deps:[an,Tn]},{provide:on.c,useFactory:Zt,deps:[ln],multi:!0},{provide:on.c,useFactory:Xt,deps:[Tn,si],multi:!0},{provide:on.c,useFactory:et,deps:[ln,Tn,si,Yn,di],multi:!0},{provide:on.c,useFactory:$,deps:[ln,ii,kr,on.w],multi:!0},{provide:nn.f,useClass:zl},{provide:on.a,useValue:t,multi:!0},Gi,ao,Yn,si,Rl,po,di,Mo,go,ur,ql.e,bn,Lr,br,Yo,Zr,Is,ws,Li,{provide:kr,useFactory:X,deps:[br,on.q]},{provide:ql.f,useFactory:Gt,deps:[ql.q,[new on.o(ql.a),new on.x],ln]},{provide:Kn,useFactory:M,deps:[Yn,ii]},{provide:oi,useFactory:V,deps:[Yn,Kn,ql.e,kr,on.j]}]}},t;var e}(),Ul=function(){function t(){}return e=t,t.forChild=function(t){return{ngModule:e,providers:[{provide:wr,useValue:t},{provide:on.a,useValue:t,multi:!0}]}},t;var e}(),Yl=function(){return function(){this.demo="Title",this.favorites="recent",this.apps="free"}}(),Xl=function(){return function(){this.root=Yl}}(),$l=function(){return function(){}}(),Zl=function(){return function(){}}(),Gl=on.Z({encapsulation:2,styles:[],data:{}}),Kl=on.Z({encapsulation:2,styles:[],data:{}}),Jl=on.X("ion-action-sheet",Fi,function(t){return on._22(0,[(t()(),on._2(0,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!==on._16(t,1).keyUp(n)&&i),i},oe,Kl)),on._0(1,180224,null,0,Fi,[cn,ln,on.k,di,un,on.B],null,null)],null,function(t,e){t(e,0,0,on._16(e,1).hdrId,on._16(e,1).descId)})},{},{},[]),Ql=on.Z({encapsulation:2,styles:[],data:{}}),ta=on.X("ion-alert",Ki,function(t){return on._22(0,[(t()(),on._2(0,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!==on._16(t,1).keyUp(n)&&i),i},_e,Ql)),on._0(1,180224,null,0,Ki,[cn,on.k,ln,di,un,on.B,Tn],null,null)],null,function(t,e){t(e,0,0,on._16(e,1).hdrId,on._16(e,1).descId)})},{},{},[]),ea=on.Z({encapsulation:2,styles:[],data:{}}),na=on.X("ion-app",Mi,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-app",[],null,null,null,me,ea)),on._0(1,114688,null,0,Mi,[ji,on.j,on.k,on.B,ln,Tn,Yn],null,null)],function(t,e){t(e,1,0)},null)},{color:"color",mode:"mode"},{},[]),ia=on.Z({encapsulation:2,styles:[],data:{}}),oa=on.Z({encapsulation:2,styles:[],data:{}}),ra=on.X("ion-loading",Jo,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-loading",[["role","dialog"]],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==on._16(t,1).keyUp(n)&&i),i},ke,oa)),on._0(1,245760,null,0,Jo,[cn,ln,on.k,di,un,on.B],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),sa=on.Z({encapsulation:2,styles:[],data:{}}),la=on.X("ion-modal",Tr,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-modal",[],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==on._16(t,1)._keyUp(n)&&i),i},Ce,sa)),on._0(1,180224,null,0,Tr,[on.j,on.B,on.k,un,cn,di,kr],null,null)],null,null)},{},{},[]),aa=on.Z({encapsulation:2,styles:[],data:{}}),ua=on.Z({encapsulation:2,styles:[],data:{}}),ca=on.X("ion-picker-cmp",Vo,function(t){return on._22(0,[(t()(),on._2(0,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!==on._16(t,1)._keyUp(n)&&i),i},Be,ua)),on._0(1,180224,null,0,Vo,[cn,on.k,ln,di,un,on.B],null,null)],null,null)},{},{},[]),ha=on.Z({encapsulation:2,styles:[],data:{}}),pa=on.X("ion-popover",Rr,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-popover",[],null,[["body","keyup"]],function(t,e,n){var i=!0;return"body:keyup"===e&&(i=!1!==on._16(t,1)._keyUp(n)&&i),i},Ie,ha)),on._0(1,180224,null,0,Rr,[on.j,on.k,on.B,ln,un,cn,di,kr],null,null)],null,null)},{},{},[]),da=on.Z({encapsulation:2,styles:[],data:{}}),fa=on.Z({encapsulation:2,styles:[],data:{}}),_a=on.Z({encapsulation:2,styles:[],data:{}}),ma=on.Z({encapsulation:2,styles:[],data:{}}),va=on.X("ng-component",ns,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ng-component",[],null,null,null,Ne,ma)),on._0(1,114688,null,0,ns,[un,cn],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),ga=on.Z({encapsulation:2,styles:[],data:{}}),ya=on.X("ion-toast",rs,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ion-toast",[["role","dialog"]],[[1,"aria-labelledby",0],[1,"aria-describedby",0]],null,null,ze,ga)),on._0(1,4243456,null,0,rs,[cn,ln,on.k,un,on.B],null,null)],null,function(t,e){t(e,0,0,on._16(e,1).hdrId,on._16(e,1).descId)})},{},{},[]),ba=on.Z({encapsulation:2,styles:[],data:{}}),wa=on.Z({encapsulation:2,styles:[],data:{}}),ka=on.Z({encapsulation:2,styles:[],data:{}}),Ca=on.Z({encapsulation:2,styles:[],data:{}}),Ta=on.Z({encapsulation:2,styles:[],data:{}}),Ea=on.Z({encapsulation:2,styles:[],data:{}}),Sa=on.Z({encapsulation:2,styles:[],data:{}}),Oa=on.X("ng-component",Yl,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ng-component",[],null,null,null,Je,Sa)),on._0(1,49152,null,0,Yl,[],null,null)],null,null)},{},{},[]),Pa=on.Z({encapsulation:2,styles:[],data:{}}),xa=on.Z({encapsulation:2,styles:[],data:{}}),Ba=on.X("ng-component",Xl,function(t){return on._22(0,[(t()(),on._2(0,0,null,null,1,"ng-component",[],null,null,null,tn,xa)),on._0(1,49152,null,0,Xl,[],null,null)],null,null)},{},{},[]),Ia=on.Y(Zl,[Mi],function(t){return on._13([on._14(512,on.j,on.U,[[8,[Jl,ta,na,ra,la,ca,pa,va,ya,Oa,Ba]],[3,on.j],on.u]),on._14(5120,on.t,on._12,[[3,on.t]]),on._14(4608,ql.k,ql.j,[on.t]),on._14(5120,on.b,on._3,[]),on._14(5120,on.r,on._9,[]),on._14(5120,on.s,on._10,[]),on._14(4608,nn.c,nn.t,[ql.c]),on._14(6144,on.F,null,[nn.c]),on._14(4608,nn.f,zl,[]),on._14(5120,nn.d,function(t,e,n,i){return[new nn.l(t),new nn.p(e),new nn.o(n,i)]},[ql.c,ql.c,ql.c,nn.f]),on._14(4608,nn.e,nn.e,[nn.d,on.w]),on._14(135680,nn.n,nn.n,[ql.c]),on._14(4608,nn.m,nn.m,[nn.e,nn.n]),on._14(6144,on.D,null,[nn.m]),on._14(6144,nn.q,null,[nn.n]),on._14(4608,on.I,on.I,[on.w]),on._14(4608,nn.h,nn.h,[ql.c]),on._14(4608,nn.j,nn.j,[ql.c]),on._14(4608,ho.k,ho.k,[]),on._14(4608,ho.c,ho.c,[]),on._14(4608,Gi,Gi,[Yn,ln]),on._14(4608,ao,ao,[Yn,ln]),on._14(4608,Rl,Rl,[]),on._14(4608,po,po,[]),on._14(4608,Mo,Mo,[Tn]),on._14(4608,go,go,[ln,Tn,on.w,si]),on._14(4608,ur,ur,[Yn,ln]),on._14(5120,ql.f,Gt,[ql.q,[2,ql.a],ln]),on._14(4608,ql.e,ql.e,[ql.f]),on._14(5120,Kn,M,[Yn,ii]),on._14(5120,oi,V,[Yn,Kn,ql.e,kr,on.j]),on._14(4608,Lr,Lr,[Yn,ln,oi]),on._14(4608,Yo,Yo,[Yn,ln]),on._14(4608,Zr,Zr,[Yn,ln,oi]),on._14(4608,Is,Is,[ln,Tn,si,Yn,di]),on._14(4608,ws,ws,[Yn,ln]),on._14(4608,Li,Li,[Tn,ln]),on._14(512,ql.b,ql.b,[]),on._14(1024,on.l,nn.r,[]),on._14(256,an,{},[]),on._14(1024,Ml,$t,[]),on._14(1024,Tn,I,[nn.b,Ml,on.w]),on._14(1024,ln,w,[an,Tn]),on._14(512,si,si,[Tn]),on._14(512,bn,bn,[]),on._14(512,Yn,Yn,[ln,Tn,[2,bn]]),on._14(512,di,di,[Yn]),on._14(256,ii,{links:[]},[]),on._14(512,on.i,on.i,[]),on._14(512,br,br,[on.i]),on._14(1024,kr,X,[br,on.q]),on._14(1024,on.c,function(t,e,n,i,o,r,s,l,a,u,c,h,p,d){return[nn.s(t,e),Zt(n),Xt(i,o),et(r,s,l,a,u),$(c,h,p,d)]},[[2,nn.i],[2,on.v],ln,Tn,si,ln,Tn,si,Yn,di,ln,ii,kr,on.w]),on._14(512,on.d,on.d,[[2,on.c]]),on._14(131584,on._1,on._1,[on.w,on.V,on.q,on.l,on.j,on.d]),on._14(2048,on.f,null,[on._1]),on._14(512,on.e,on.e,[on.f]),on._14(512,nn.a,nn.a,[[3,nn.a]]),on._14(512,ho.j,ho.j,[]),on._14(512,ho.d,ho.d,[]),on._14(512,ho.i,ho.i,[]),on._14(512,Wl,Wl,[]),on._14(512,Ul,Ul,[]),on._14(512,$l,$l,[]),on._14(512,Zl,Zl,[]),on._14(256,wr,Yl,[]),on._14(256,ji,Xl,[]),on._14(256,ql.a,"/",[])])});Object(on.O)(),Object(nn.k)().bootstrapModuleFactory(Ia)},50:function(t,e){},51:function(t,e){},60:function(t,e){},61:function(t,e){},62:function(t,e){},63:function(t,e){}},[27]);