0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
bonniescraftygifts.com
/
iFzj4
/
configCHM
/
Jump
/
0-aserty
/
appartsoft.com
/
wp-content
/
plugins
/
wordpress-mobile-pack
/
frontend
/
themes
/
app2
/
js
/
[
Home
]
File: app.js
!function(){function e(e,t,n){t!==!1?F.addEventListener(e,Q[e],n):F.removeEventListener(e,Q[e])}function t(e){var t=w(e.target),i=y(t);if(ionic.tap.requiresNativeClick(i)||U)return!1;var r=ionic.tap.pointerCoord(e);n("click",i,r.x,r.y),p(i)}function n(e,t,n,i){var r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,0,0,n,i,!1,!1,!1,!1,0,null),r.isIonicTap=!0,t.dispatchEvent(r)}function i(e){return"submit"==e.target.type&&0===e.detail?null:ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)||!e.isIonicTap&&!ionic.tap.requiresNativeClick(e.target)?(e.stopPropagation(),ionic.tap.isLabelWithTextInput(e.target)||e.preventDefault(),!1):void 0}function r(t){return t.isIonicTap||f(t)?null:G?(t.stopPropagation(),ionic.Platform.isEdge()||ionic.tap.isTextInput(t.target)&&X===t.target||b(t.target.tagName)||ionic.tap.isVideo(t.target)||t.preventDefault(),!1):(U=!1,W=ionic.tap.pointerCoord(t),e("mousemove"),void ionic.activator.start(t))}function o(n){return G?(n.stopPropagation(),n.preventDefault(),!1):!f(n)&&!b(n.target.tagName)&&($(n)||t(n),e("mousemove",!1),ionic.activator.end(),void(U=!1))}function a(t){if($(t))return e("mousemove",!1),ionic.activator.end(),U=!0,!1}function s(t){if(!f(t)&&(U=!1,d(),W=ionic.tap.pointerCoord(t),e(K),ionic.activator.start(t),ionic.Platform.isIOS()&&ionic.tap.isLabelWithTextInput(t.target))){y(w(t.target))!==q&&t.preventDefault()}}function l(e){f(e)||(d(),$(e)||(t(e),b(e.target.tagName)&&e.preventDefault()),X=e.target,u())}function c(t){if($(t))return U=!0,e(K,!1),ionic.activator.end(),!1}function u(){e(K,!1),ionic.activator.end(),U=!1}function d(){G=!0,clearTimeout(j),j=setTimeout(function(){G=!1},600)}function f(e){return!!e.isTapHandled||(e.isTapHandled=!0,!!ionic.tap.isElementTapDisabled(e.target)||(ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)?(e.preventDefault(),!0):void 0))}function p(e){Y=null;var t=!1;"SELECT"==e.tagName?(n("mousedown",e,0,0),e.focus&&e.focus(),t=!0):g()===e?t=!0:/^(input|textarea|ion-label)$/i.test(e.tagName)||e.isContentEditable?(t=!0,e.focus&&e.focus(),e.value=e.value,G&&(Y=e)):h(),t&&(g(e),ionic.trigger("ionic.focusin",{target:e},!0))}function h(){var e=g();e&&(/^(input|textarea|select)$/i.test(e.tagName)||e.isContentEditable)&&e.blur(),g(null)}function m(e){G&&ionic.tap.isTextInput(g())&&ionic.tap.isTextInput(Y)&&Y!==e.target&&(Y.focus(),Y=null),ionic.scroll.isScrolling=!1}function v(){g(null)}function g(e){return arguments.length&&(q=e),q||document.activeElement}function $(e){if(!e||1!==e.target.nodeType||!W||0===W.x&&0===W.y)return!1;var t=ionic.tap.pointerCoord(e),n=!(!e.target.classList||!e.target.classList.contains||"function"!=typeof e.target.classList.contains),i=n&&e.target.classList.contains("button")?J:Z;return Math.abs(W.x-t.x)>i||Math.abs(W.y-t.y)>i}function w(e,t){for(var n=e,i=0;i<6&&n;i++){if("LABEL"===n.tagName)return n;n=n.parentElement}if(t!==!1)return e}function y(e){if(e&&"LABEL"===e.tagName){if(e.control)return e.control;if(e.querySelector){var t=e.querySelector("input,textarea,select");if(t)return t}}return e}function b(e){return/^(select|option)$/i.test(e)}function _(){ionic.keyboard.isInitialized||(B()?(window.addEventListener("native.keyboardshow",fe),window.addEventListener("native.keyboardhide",T)):document.body.addEventListener("focusout",T),document.body.addEventListener("ionic.focusin",de),document.body.addEventListener("focusin",de),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerDown",_):document.removeEventListener("touchstart",_),ionic.keyboard.isInitialized=!0)}function S(e){clearTimeout(re),ionic.keyboard.isOpen&&!ionic.keyboard.isClosing||(ionic.keyboard.isOpening=!0,ionic.keyboard.isClosing=!1),ionic.keyboard.height=e.keyboardHeight,le?A(O,!0):A(D,!0)}function x(e){if(clearTimeout(re),!e.target||e.target.readOnly||!ionic.tap.isKeyboardElement(e.target)||!(ne=ionic.DomUtil.getParentWithClass(e.target,ue)))return ee&&(te=ee),void(ee=null);ee=e.target,ne.classList.contains("overflow-scroll")||(document.body.scrollTop=0,ne.scrollTop=0,ionic.requestAnimationFrame(function(){document.body.scrollTop=0,ne.scrollTop=0}),window.navigator.msPointerEnabled?document.addEventListener("MSPointerMove",k,!1):document.addEventListener("touchmove",k,!1)),ionic.keyboard.isOpen&&!ionic.keyboard.isClosing||(ionic.keyboard.isOpening=!0,ionic.keyboard.isClosing=!1),document.addEventListener("keydown",C,!1),ionic.keyboard.isOpen||B()?ionic.keyboard.isOpen&&D():A(D,!0)}function T(){clearTimeout(re),(ionic.keyboard.isOpen||ionic.keyboard.isOpening)&&(ionic.keyboard.isClosing=!0,ionic.keyboard.isOpening=!1),re=setTimeout(function(){ionic.requestAnimationFrame(function(){le?A(function(){O(),I()},!1):A(I,!1)})},50)}function E(){ionic.keyboard.isLandscape=!ionic.keyboard.isLandscape,ionic.Platform.isIOS()&&O(),ionic.Platform.isAndroid()&&(ionic.keyboard.isOpen&&B()?le=!0:A(O,!1))}function C(e){ionic.scroll.isScrolling&&k(e)}function k(e){"TEXTAREA"!==e.target.tagName&&e.preventDefault()}function A(e,t){clearInterval(ie);var n,i=0,r=V(),o=r;return n=ionic.Platform.isAndroid()&&ionic.Platform.version()<4.4?30:ionic.Platform.isAndroid()?10:1,ie=setInterval(function(){o=V(),++i<n&&(!P(o)&&!L(o)||!ionic.keyboard.height)||(B()||(ionic.keyboard.height=Math.abs(r-window.innerHeight)),ionic.keyboard.isOpen=t,clearInterval(ie),e())},50),n}function I(){clearTimeout(re),ionic.keyboard.isOpen=!1,ionic.keyboard.isClosing=!1,(ee||te)&&ionic.trigger("resetScrollView",{target:ee||te},!0),ionic.requestAnimationFrame(function(){document.body.classList.remove(ce)}),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerMove",k):document.removeEventListener("touchmove",k),document.removeEventListener("keydown",C),ionic.Platform.isAndroid()&&(B()&&cordova.plugins.Keyboard.close(),ee&&ee.blur()),ee=null,te=null}function D(){ionic.keyboard.isOpen=!0,ionic.keyboard.isOpening=!1;var e={keyboardHeight:M(),viewportHeight:oe};if(ee){e.target=ee;var t=ee.getBoundingClientRect();e.elementTop=Math.round(t.top),e.elementBottom=Math.round(t.bottom),e.windowHeight=e.viewportHeight-e.keyboardHeight,e.isElementUnderKeyboard=e.elementBottom>e.windowHeight,ionic.trigger("scrollChildIntoView",e,!0)}return setTimeout(function(){document.body.classList.add(ce)},400),e}function M(){if(ionic.keyboard.height)return ionic.keyboard.height;if(ionic.Platform.isAndroid()){if(ionic.Platform.isFullScreen)return 275;var e=window.innerHeight;return e<oe?oe-e:0}return ionic.Platform.isIOS()?ionic.keyboard.isLandscape?206:ionic.Platform.isWebView()?260:216:275}function P(e){return!!(!ionic.keyboard.isLandscape&&ae&&Math.abs(ae-e)<2)}function L(e){return!!(ionic.keyboard.isLandscape&&se&&Math.abs(se-e)<2)}function O(){le=!1,oe=V(),ionic.keyboard.isLandscape&&!se?se=oe:ionic.keyboard.isLandscape||ae||(ae=oe),ee&&ionic.trigger("resetScrollView",{target:ee},!0),ionic.keyboard.isOpen&&ionic.tap.isTextInput(ee)&&D()}function N(){var e=V();e/window.innerWidth<1&&(ionic.keyboard.isLandscape=!0),oe=e,ionic.keyboard.isLandscape&&!se?se=oe:ionic.keyboard.isLandscape||ae||(ae=oe)}function V(){var e=window.innerHeight;return ionic.Platform.isAndroid()&&ionic.Platform.isFullScreen||!ionic.keyboard.isOpen&&!ionic.keyboard.isOpening||ionic.keyboard.isClosing?e:e+M()}function B(){return!!(window.cordova&&cordova.plugins&&cordova.plugins.Keyboard)}function R(){var e;for(e=0;e<document.head.children.length;e++)if("viewport"==document.head.children[e].name){pe=document.head.children[e];break}if(pe){var t,n=pe.content.toLowerCase().replace(/\s+/g,"").split(",");for(e=0;e<n.length;e++)n[e]&&(t=n[e].split("="),he[t[0]]=t.length>1?t[1]:"_");z()}}function z(){var e=he.width,t=he.height,n=ionic.Platform,i=n.version(),r=ionic.viewport.orientation();delete he.height,he.width="device-width",n.isIPad()?i>7?delete he.width:n.isWebView()?90==r?he.height="0":7==i&&(he.height="device-height"):i<7&&(he.height="0"):n.isIOS()&&(n.isWebView()?i>7?delete he.width:i<7?t&&(he.height="0"):7==i&&(he.height="device-height"):i<7&&t&&(he.height="0")),e===he.width&&t===he.height||H()}function H(){var e,t=[];for(e in he)he[e]&&t.push(e+("_"==he[e]?"":"="+he[e]));pe.content=t.join(", ")}window.ionic=window.ionic||{},window.ionic.views={},window.ionic.version="1.3.1",function(e){e.DelegateService=function(e){function t(){return!0}if(e.indexOf("$getByHandle")>-1)throw new Error("Method '$getByHandle' is implicitly added to each delegate service. Do not list it as a method.");return["$log",function(n){function i(e,t){this._instances=e,this.handle=t}function r(){this._instances=[]}function o(e){return function(){var t,i=this.handle,r=arguments,o=0;return this._instances.forEach(function(n){if((!i||i==n.$$delegateHandle)&&n.$$filterFn(n)){o++;var a=n[e].apply(n,r);1===o&&(t=a)}}),!o&&i?n.warn('Delegate for handle "'+i+'" could not find a corresponding element with delegate-handle="'+i+'"! '+e+"() was not called!\nPossible cause: If you are calling "+e+'() immediately, and your element with delegate-handle="'+i+'" is a child of your controller, then your element may not be compiled yet. Put a $timeout around your call to '+e+"() and try again."):t}}return e.forEach(function(e){i.prototype[e]=o(e)}),r.prototype=i.prototype,r.prototype._registerInstance=function(e,n,i){var r=this._instances;return e.$$delegateHandle=n,e.$$filterFn=i||t,r.push(e),function(){var t=r.indexOf(e);t!==-1&&r.splice(t,1)}},r.prototype.$getByHandle=function(e){return new i(this._instances,e)},new r}]}}(window.ionic),function(e,t,n){function i(){o=!0;for(var e=0;e<r.length;e++)n.requestAnimationFrame(r[e]);r=[],t.removeEventListener("DOMContentLoaded",i)}var r=[],o="complete"===t.readyState||"interactive"===t.readyState;o||t.addEventListener("DOMContentLoaded",i),e._rAF=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(t){e.setTimeout(t,16)}}();var a=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame;n.DomUtil={requestAnimationFrame:function(t){return e._rAF(t)},cancelAnimationFrame:function(e){a(e)},animationFrameThrottle:function(e){var t,i,r;return function(){t=arguments,r=this,i||(i=!0,n.requestAnimationFrame(function(){e.apply(r,t),i=!1}))}},contains:function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}},getPositionInParent:function(e){return{left:e.offsetLeft,top:e.offsetTop}},getOffsetTop:function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop,e=e.offsetParent}while(e);return t}},ready:function(e){o?n.requestAnimationFrame(e):r.push(e)},getTextBounds:function(n){if(t.createRange){var i=t.createRange();if(i.selectNodeContents(n),i.getBoundingClientRect){var r=i.getBoundingClientRect();if(r){var o=e.scrollX,a=e.scrollY;return{top:r.top+a,left:r.left+o,right:r.left+o+r.width,bottom:r.top+a+r.height,width:r.width,height:r.height}}}}return null},getChildIndex:function(e,t){if(t)for(var n,i=e.parentNode.children,r=0,o=0,a=i.length;r<a;r++)if(n=i[r],n.nodeName&&n.nodeName.toLowerCase()==t){if(n==e)return o;o++}return Array.prototype.slice.call(e.parentNode.children).indexOf(e)},swapNodes:function(e,t){t.parentNode.insertBefore(e,t)},elementIsDescendant:function(e,t,n){var i=e;do{if(i===t)return!0;i=i.parentNode}while(i&&i!==n);return!1},getParentWithClass:function(e,t,n){for(n=n||10;e.parentNode&&n--;){if(e.parentNode.classList&&e.parentNode.classList.contains(t))return e.parentNode;e=e.parentNode}return null},getParentOrSelfWithClass:function(e,t,n){for(n=n||10;e&&n--;){if(e.classList&&e.classList.contains(t))return e;e=e.parentNode}return null},rectContains:function(e,t,n,i,r,o){return!(e<n||e>r)&&!(t<i||t>o)},blurAll:function(){return t.activeElement&&t.activeElement!=t.body?(t.activeElement.blur(),t.activeElement):null},cachedAttr:function(e,t,n){if((e=e&&e.length&&e[0]||e)&&e.setAttribute){var i="$attr-"+t;return arguments.length>2?e[i]!==n&&(e.setAttribute(t,n),e[i]=n):void 0===e[i]&&(e[i]=e.getAttribute(t)),e[i]}},cachedStyles:function(e,t){if((e=e&&e.length&&e[0]||e)&&e.style)for(var n in t)e["$style-"+n]!==t[n]&&(e.style[n]=e["$style-"+n]=t[n])}},n.requestAnimationFrame=n.DomUtil.requestAnimationFrame,n.cancelAnimationFrame=n.DomUtil.cancelAnimationFrame,n.animationFrameThrottle=n.DomUtil.animationFrameThrottle}(window,document,ionic),function(e){e.CustomEvent=function(){if("function"==typeof window.CustomEvent)return CustomEvent;var e=function(e,t){var n;t=t||{bubbles:!1,cancelable:!1,detail:void 0};try{n=document.createEvent("CustomEvent"),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail)}catch(r){n=document.createEvent("Event");for(var i in t)n[i]=t[i];n.initEvent(e,t.bubbles,t.cancelable)}return n};return e.prototype=window.Event.prototype,e}(),e.EventController={VIRTUALIZED_EVENTS:["tap","swipe","swiperight","swipeleft","drag","hold","release"],trigger:function(t,n,i,r){var o=new e.CustomEvent(t,{detail:n,bubbles:!!i,cancelable:!!r});n&&n.target&&n.target.dispatchEvent&&n.target.dispatchEvent(o)||window.dispatchEvent(o)},on:function(t,n,i){for(var r=i||window,o=0,a=this.VIRTUALIZED_EVENTS.length;o<a;o++)if(t==this.VIRTUALIZED_EVENTS[o]){var s=new e.Gesture(i);return s.on(t,n),s}r.addEventListener(t,n)},off:function(e,t,n){n.removeEventListener(e,t)},onGesture:function(t,n,i,r){var o=new e.Gesture(i,r);return o.on(t,n),o},offGesture:function(e,t,n){e&&e.off(t,n)},handlePopState:function(){}},e.on=function(){e.EventController.on.apply(e.EventController,arguments)},e.off=function(){e.EventController.off.apply(e.EventController,arguments)},e.trigger=e.EventController.trigger,e.onGesture=function(){return e.EventController.onGesture.apply(e.EventController.onGesture,arguments)},e.offGesture=function(){return e.EventController.offGesture.apply(e.EventController.offGesture,arguments)}}(window.ionic),function(e){function t(){if(!e.Gestures.READY){e.Gestures.event.determineEventTypes();for(var t in e.Gestures.gestures)e.Gestures.gestures.hasOwnProperty(t)&&e.Gestures.detection.register(e.Gestures.gestures[t]);e.Gestures.event.onTouch(e.Gestures.DOCUMENT,e.Gestures.EVENT_MOVE,e.Gestures.detection.detect),e.Gestures.event.onTouch(e.Gestures.DOCUMENT,e.Gestures.EVENT_END,e.Gestures.detection.detect),e.Gestures.READY=!0}}e.Gesture=function(t,n){return new e.Gestures.Instance(t,n||{})},e.Gestures={},e.Gestures.defaults={stop_browser_behavior:"disable-user-behavior"},e.Gestures.HAS_POINTEREVENTS=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,e.Gestures.HAS_TOUCHEVENTS="ontouchstart"in window,e.Gestures.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,e.Gestures.NO_MOUSEEVENTS=e.Gestures.HAS_TOUCHEVENTS&&window.navigator.userAgent.match(e.Gestures.MOBILE_REGEX),e.Gestures.EVENT_TYPES={},e.Gestures.DIRECTION_DOWN="down",e.Gestures.DIRECTION_LEFT="left",e.Gestures.DIRECTION_UP="up",e.Gestures.DIRECTION_RIGHT="right",e.Gestures.POINTER_MOUSE="mouse",e.Gestures.POINTER_TOUCH="touch",e.Gestures.POINTER_PEN="pen",e.Gestures.EVENT_START="start",e.Gestures.EVENT_MOVE="move",e.Gestures.EVENT_END="end",e.Gestures.DOCUMENT=window.document,e.Gestures.plugins={},e.Gestures.READY=!1,e.Gestures.Instance=function(n,i){var r=this;return null===n?this:(t(),this.element=n,this.enabled=!0,this.options=e.Gestures.utils.extend(e.Gestures.utils.extend({},e.Gestures.defaults),i||{}),this.options.stop_browser_behavior&&e.Gestures.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),e.Gestures.event.onTouch(n,e.Gestures.EVENT_START,function(t){r.enabled&&e.Gestures.detection.startDetect(r,t)}),this)},e.Gestures.Instance.prototype={on:function(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)this.element.addEventListener(n[i],t,!1);return this},off:function(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)this.element.removeEventListener(n[i],t,!1);return this},trigger:function(t,n){var i=e.Gestures.DOCUMENT.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n;var r=this.element;return e.Gestures.utils.hasParent(n.target,r)&&(r=n.target),r.dispatchEvent(i),this},enable:function(e){return this.enabled=e,this}};var n=null,i=!1,r=!1;e.Gestures.event={bindDom:function(e,t,n){for(var i=t.split(" "),r=0;r<i.length;r++)e.addEventListener(i[r],n,!1)},onTouch:function(t,o,a){var s=this;this.bindDom(t,e.Gestures.EVENT_TYPES[o],function(l){var c=l.type.toLowerCase();if(!c.match(/mouse/)||!r){c.match(/touch/)||c.match(/pointerdown/)||c.match(/mouse/)&&1===l.which?i=!0:c.match(/mouse/)&&1!==l.which&&(i=!1),c.match(/touch|pointer/)&&(r=!0);var u=0;i&&(e.Gestures.HAS_POINTEREVENTS&&o!=e.Gestures.EVENT_END?u=e.Gestures.PointerEvent.updatePointer(o,l):c.match(/touch/)?u=l.touches.length:r||(u=c.match(/up/)?0:1),u>0&&o==e.Gestures.EVENT_END?o=e.Gestures.EVENT_MOVE:u||(o=e.Gestures.EVENT_END),(u||null===n)&&(n=l),a.call(e.Gestures.detection,s.collectEventData(t,o,s.getTouchList(n,o),l)),e.Gestures.HAS_POINTEREVENTS&&o==e.Gestures.EVENT_END&&(u=e.Gestures.PointerEvent.updatePointer(o,l))),u||(n=null,i=!1,r=!1,e.Gestures.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=e.Gestures.HAS_POINTEREVENTS?e.Gestures.PointerEvent.getEvents():e.Gestures.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_START]=t[0],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_MOVE]=t[1],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_END]=t[2]},getTouchList:function(t){return e.Gestures.HAS_POINTEREVENTS?e.Gestures.PointerEvent.getTouchList():t.touches?t.touches:(t.identifier=1,[t])},collectEventData:function(t,n,i,r){var o=e.Gestures.POINTER_TOUCH;return(r.type.match(/mouse/)||e.Gestures.PointerEvent.matchType(e.Gestures.POINTER_MOUSE,r))&&(o=e.Gestures.POINTER_MOUSE),{center:e.Gestures.utils.getCenter(i),timeStamp:(new Date).getTime(),target:r.target,touches:i,eventType:n,pointerType:o,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return e.Gestures.detection.stopDetect()}}}},e.Gestures.PointerEvent={pointers:{},getTouchList:function(){var e=this,t=[];return Object.keys(e.pointers).sort().forEach(function(n){t.push(e.pointers[n])}),t},updatePointer:function(t,n){return t==e.Gestures.EVENT_END?this.pointers={}:(n.identifier=n.pointerId,this.pointers[n.pointerId]=n),Object.keys(this.pointers).length},matchType:function(t,n){if(!n.pointerType)return!1;var i={};return i[e.Gestures.POINTER_MOUSE]=n.pointerType==n.MSPOINTER_TYPE_MOUSE||n.pointerType==e.Gestures.POINTER_MOUSE,i[e.Gestures.POINTER_TOUCH]=n.pointerType==n.MSPOINTER_TYPE_TOUCH||n.pointerType==e.Gestures.POINTER_TOUCH,i[e.Gestures.POINTER_PEN]=n.pointerType==n.MSPOINTER_TYPE_PEN||n.pointerType==e.Gestures.POINTER_PEN,i[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},e.Gestures.utils={extend:function(e,t,n){for(var i in t)void 0!==e[i]&&n||(e[i]=t[i]);return e},hasParent:function(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1},getCenter:function(e){for(var t=[],n=[],i=0,r=e.length;i<r;i++)t.push(e[i].pageX),n.push(e[i].pageY);return{pageX:(Math.min.apply(Math,t)+Math.max.apply(Math,t))/2,pageY:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2}},getVelocity:function(e,t,n){return{x:Math.abs(t/e)||0,y:Math.abs(n/e)||0}},getAngle:function(e,t){var n=t.pageY-e.pageY,i=t.pageX-e.pageX;return 180*Math.atan2(n,i)/Math.PI},getDirection:function(t,n){return Math.abs(t.pageX-n.pageX)>=Math.abs(t.pageY-n.pageY)?t.pageX-n.pageX>0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT:t.pageY-n.pageY>0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN},getDistance:function(e,t){var n=t.pageX-e.pageX,i=t.pageY-e.pageY;return Math.sqrt(n*n+i*i)},getScale:function(e,t){return e.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(e[0],e[1]):1},getRotation:function(e,t){return e.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(e[1],e[0]):0},isVertical:function(t){return t==e.Gestures.DIRECTION_UP||t==e.Gestures.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(e,t){e&&e.classList&&(e.classList.add(t),e.onselectstart=function(){return!1})}},e.Gestures.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,n){this.current||(this.stopped=!1,this.current={inst:t,startEvent:e.Gestures.utils.extend({},n),lastEvent:!1,name:""},this.detect(n))},detect:function(t){if(!this.current||this.stopped)return null;t=this.extendEventData(t);for(var n=this.current.inst.options,i=0,r=this.gestures.length;i<r;i++){var o=this.gestures[i];if(!this.stopped&&n[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==e.Gestures.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t},stopDetect:function(){this.previous=e.Gestures.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var n=this.current.startEvent;if(n&&(t.touches.length!=n.touches.length||t.touches===n.touches)){n.touches=[];for(var i=0,r=t.touches.length;i<r;i++)n.touches.push(e.Gestures.utils.extend({},t.touches[i]))}var o=t.timeStamp-n.timeStamp,a=t.center.pageX-n.center.pageX,s=t.center.pageY-n.center.pageY,l=e.Gestures.utils.getVelocity(o,a,s);return e.Gestures.utils.extend(t,{deltaTime:o,deltaX:a,deltaY:s,velocityX:l.x,velocityY:l.y,distance:e.Gestures.utils.getDistance(n.center,t.center),angle:e.Gestures.utils.getAngle(n.center,t.center),direction:e.Gestures.utils.getDirection(n.center,t.center),scale:e.Gestures.utils.getScale(n.touches,t.touches),rotation:e.Gestures.utils.getRotation(n.touches,t.touches),startEvent:n}),t},register:function(t){var n=t.defaults||{};return void 0===n[t.name]&&(n[t.name]=!0),e.Gestures.utils.extend(e.Gestures.defaults,n,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(e,t){return e.index<t.index?-1:e.index>t.index?1:0}),this.gestures}},e.Gestures.gestures=e.Gestures.gestures||{},e.Gestures.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:9},timer:null,handler:function(t,n){switch(t.eventType){case e.Gestures.EVENT_START:clearTimeout(this.timer),e.Gestures.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==e.Gestures.detection.current.name&&(e.tap.cancelClick(),n.trigger("hold",t))},n.options.hold_timeout);break;case e.Gestures.EVENT_MOVE:t.distance>n.options.hold_threshold&&clearTimeout(this.timer);break;case e.Gestures.EVENT_END:clearTimeout(this.timer)}}},e.Gestures.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,n){if(t.eventType==e.Gestures.EVENT_END&&"touchcancel"!=t.srcEvent.type){var i=e.Gestures.detection.previous,r=!1;if(t.deltaTime>n.options.tap_max_touchtime||t.distance>n.options.tap_max_distance)return;i&&"tap"==i.name&&t.timeStamp-i.lastEvent.timeStamp<n.options.doubletap_interval&&t.distance<n.options.doubletap_distance&&(n.trigger("doubletap",t),r=!0),r&&!n.options.tap_always||(e.Gestures.detection.current.name="tap",n.trigger("tap",t))}}},e.Gestures.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.4},handler:function(t,n){if(t.eventType==e.Gestures.EVENT_END){if(n.options.swipe_max_touches>0&&t.touches.length>n.options.swipe_max_touches)return;(t.velocityX>n.options.swipe_velocity||t.velocityY>n.options.swipe_velocity)&&(n.trigger(this.name,t),n.trigger(this.name+t.direction,t))}}},e.Gestures.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!0,drag_block_vertical:!0,drag_lock_to_axis:!1,drag_lock_min_distance:25,prevent_default_directions:[]},triggered:!1,handler:function(t,n){if("touchstart"==t.srcEvent.type||"touchend"==t.srcEvent.type?this.preventedFirstMove=!1:this.preventedFirstMove||"touchmove"!=t.srcEvent.type||(n.options.prevent_default_directions.length>0&&n.options.prevent_default_directions.indexOf(t.direction)!=-1&&t.srcEvent.preventDefault(),this.preventedFirstMove=!0),e.Gestures.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),void(this.triggered=!1);if(!(n.options.drag_max_touches>0&&t.touches.length>n.options.drag_max_touches))switch(t.eventType){case e.Gestures.EVENT_START:this.triggered=!1;break;case e.Gestures.EVENT_MOVE:if(t.distance<n.options.drag_min_distance&&e.Gestures.detection.current.name!=this.name)return;if(e.Gestures.detection.current.name!=this.name&&(e.Gestures.detection.current.name=this.name,n.options.correct_for_drag_min_distance)){var i=Math.abs(n.options.drag_min_distance/t.distance);e.Gestures.detection.current.startEvent.center.pageX+=t.deltaX*i,e.Gestures.detection.current.startEvent.center.pageY+=t.deltaY*i,t=e.Gestures.detection.extendEventData(t)}(e.Gestures.detection.current.lastEvent.drag_locked_to_axis||n.options.drag_lock_to_axis&&n.options.drag_lock_min_distance<=t.distance)&&(t.drag_locked_to_axis=!0);var r=e.Gestures.detection.current.lastEvent.direction;t.drag_locked_to_axis&&r!==t.direction&&(e.Gestures.utils.isVertical(r)?t.direction=t.deltaY<0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN:t.direction=t.deltaX<0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT),this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),n.trigger(this.name+t.direction,t),(n.options.drag_block_vertical&&e.Gestures.utils.isVertical(t.direction)||n.options.drag_block_horizontal&&!e.Gestures.utils.isVertical(t.direction))&&t.preventDefault();break;case e.Gestures.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},e.Gestures.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,n){if(e.Gestures.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),void(this.triggered=!1);if(!(t.touches.length<2))switch(n.options.transform_always_block&&t.preventDefault(),t.eventType){case e.Gestures.EVENT_START:this.triggered=!1;break;case e.Gestures.EVENT_MOVE:var i=Math.abs(1-t.scale),r=Math.abs(t.rotation);if(i<n.options.transform_min_scale&&r<n.options.transform_min_rotation)return;e.Gestures.detection.current.name=this.name,this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),r>n.options.transform_min_rotation&&n.trigger("rotate",t),i>n.options.transform_min_scale&&(n.trigger("pinch",t),n.trigger("pinch"+(t.scale<1?"in":"out"),t));break;case e.Gestures.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},e.Gestures.gestures.Touch={name:"touch",index:-(1/0),defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,n){if(n.options.prevent_mouseevents&&t.pointerType==e.Gestures.POINTER_MOUSE)return void t.stopDetect();n.options.prevent_default&&t.preventDefault(),t.eventType==e.Gestures.EVENT_START&&n.trigger(this.name,t)}},e.Gestures.gestures.Release={name:"release",index:1/0,handler:function(t,n){t.eventType==e.Gestures.EVENT_END&&n.trigger(this.name,t)}}}(window.ionic),function(e,t,n){function i(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}function r(){l.isWebView()?t.addEventListener("deviceready",o,!1):o(),a&&e.removeEventListener("load",r,!1)}function o(){l.isReady=!0,l.detect();for(var e=0;e<d.length;e++)d[e]();d=[],n.trigger("platformready",{target:t}),s(function(){t.body.classList.add("platform-ready")})}var a,s=n.requestAnimationFrame,l=n.Platform={navigator:e.navigator,isReady:!1,isFullScreen:!1,platforms:null,grade:null,ua:navigator.userAgent,ready:function(e){l.isReady?e():d.push(e)},detect:function(){l._checkPlatforms(),s(function(){for(var e=0;e<l.platforms.length;e++)t.body.classList.add("platform-"+l.platforms[e])})},setGrade:function(e){var n=l.grade;l.grade=e,s(function(){n&&t.body.classList.remove("grade-"+n),t.body.classList.add("grade-"+e)})},device:function(){return e.device||{}},_checkPlatforms:function(){l.platforms=[];var t="a";l.isWebView()?(l.platforms.push("webview"),e.cordova||e.PhoneGap||e.phonegap?l.platforms.push("cordova"):"object"==typeof e.forge&&l.platforms.push("trigger")):l.platforms.push("browser"),l.isIPad()&&l.platforms.push("ipad");var n=l.platform();if(n){l.platforms.push(n);var i=l.version();if(i){var r=i.toString();r.indexOf(".")>0?r=r.replace(".","_"):r+="_0",l.platforms.push(n+r.split("_")[0]),l.platforms.push(n+r),l.isAndroid()&&i<4.4?t=i<4?"c":"b":l.isWindowsPhone()&&(t="b")}}l.setGrade(t)},isWebView:function(){return!(!e.cordova&&!e.PhoneGap&&!e.phonegap&&"object"!==e.forge)},isIPad:function(){return!!/iPad/i.test(l.navigator.platform)||/iPad/i.test(l.ua)},isIOS:function(){return l.is("ios")},isAndroid:function(){return l.is("android")},isWindowsPhone:function(){return l.is("windowsphone")},isEdge:function(){return l.is("edge")},isCrosswalk:function(){return l.is("crosswalk")},platform:function(){return null===c&&l.setPlatform(l.device().platform),c},setPlatform:function(e){c=void 0!==e&&null!==e&&e.length?e.toLowerCase():i("ionicplatform")?i("ionicplatform"):l.ua.indexOf("Edge")>-1?"edge":l.ua.indexOf("Windows Phone")>-1?"windowsphone":l.ua.indexOf("Android")>0?"android":/iPhone|iPad|iPod/.test(l.ua)?"ios":l.navigator.platform&&navigator.platform.toLowerCase().split(" ")[0]||""},version:function(){return null===u&&l.setVersion(l.device().version),u},setVersion:function(e){if(void 0!==e&&null!==e&&(e=e.split("."),e=parseFloat(e[0]+"."+(e.length>1?e[1]:0)),!isNaN(e)))return void(u=e);u=0;var t=l.platform(),n={android:/Android (\d+).(\d+)?/,ios:/OS (\d+)_(\d+)?/,windowsphone:/Windows Phone (\d+).(\d+)?/};n[t]&&(e=l.ua.match(n[t]))&&e.length>2&&(u=parseFloat(e[1]+"."+e[2]))},is:function(e){if(e=e.toLowerCase(),l.platforms)for(var t=0;t<l.platforms.length;t++)if(l.platforms[t]===e)return!0;var n=l.platform();return n?n===e.toLowerCase():l.ua.toLowerCase().indexOf(e)>=0},exitApp:function(){l.ready(function(){navigator.app&&navigator.app.exitApp&&navigator.app.exitApp()})},showStatusBar:function(n){l._showStatusBar=n,l.ready(function(){s(function(){l._showStatusBar?(e.StatusBar&&e.StatusBar.show(),t.body.classList.remove("status-bar-hide")):(e.StatusBar&&e.StatusBar.hide(),t.body.classList.add("status-bar-hide"))})})},fullScreen:function(e,i){l.isFullScreen=e!==!1,n.DomUtil.ready(function(){s(function(){l.isFullScreen?t.body.classList.add("fullscreen"):t.body.classList.remove("fullscreen")}),l.showStatusBar(i===!0)})}},c=null,u=null,d=[],f=2e3;!function(){setTimeout(function(){!l.isReady&&l.isWebView()},f)}(),"complete"===t.readyState?r():(a=!0,e.addEventListener("load",r,!1))}(window,document,ionic),function(e,t){"use strict";t.CSS={},t.CSS.TRANSITION=[],t.CSS.TRANSFORM=[],t.EVENTS={},function(){var n,i=["webkitTransform","transform","-webkit-transform","webkit-transform","-moz-transform","moz-transform","MozTransform","mozTransform","msTransform"];for(n=0;n<i.length;n++)if(void 0!==e.documentElement.style[i[n]]){t.CSS.TRANSFORM=i[n];break}for(i=["webkitTransition","mozTransition","msTransition","transition"],n=0;n<i.length;n++)if(void 0!==e.documentElement.style[i[n]]){t.CSS.TRANSITION=i[n];break}t.CSS.TRANSITION=t.CSS.TRANSITION||"transition";var r=t.CSS.TRANSITION.indexOf("webkit")>-1;t.CSS.TRANSITION_DURATION=(r?"-webkit-":"")+"transition-duration",t.CSS.TRANSITIONEND=(r?"webkitTransitionEnd ":"")+"transitionend"}(),function(){var e="touchstart",n="touchmove",i="touchend",r="touchcancel";window.navigator.pointerEnabled?(e="pointerdown",n="pointermove",i="pointerup", r="pointercancel"):window.navigator.msPointerEnabled&&(e="MSPointerDown",n="MSPointerMove",i="MSPointerUp",r="MSPointerCancel"),t.EVENTS.touchstart=e,t.EVENTS.touchmove=n,t.EVENTS.touchend=i,t.EVENTS.touchcancel=r}(),"classList"in e.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function e(e){return function(){var n,i=t.className.split(/\s+/);for(n=0;n<arguments.length;n++)e(i,i.indexOf(arguments[n]),arguments[n]);t.className=i.join(" ")}}var t=this;return{add:e(function(e,t,n){~t||e.push(n)}),remove:e(function(e,t){~t&&e.splice(t,1)}),toggle:e(function(e,t,n){~t?e.splice(t,1):e.push(n)}),contains:function(e){return!!~t.className.split(/\s+/).indexOf(e)},item:function(e){return t.className.split(/\s+/)[e]||null}}}})}(document,ionic);var F,q,G,j,U,W,Y,X,K="touchmove",Z=12,J=50,Q={click:i,mousedown:r,mouseup:o,mousemove:a,touchstart:s,touchend:l,touchcancel:u,touchmove:c,pointerdown:s,pointerup:l,pointercancel:u,pointermove:c,MSPointerDown:s,MSPointerUp:l,MSPointerCancel:u,MSPointerMove:c,focusin:m,focusout:v};ionic.tap={register:function(t){return F=t,e("click",!0,!0),e("mouseup"),e("mousedown"),window.navigator.pointerEnabled?(e("pointerdown"),e("pointerup"),e("pointercancel"),K="pointermove"):window.navigator.msPointerEnabled?(e("MSPointerDown"),e("MSPointerUp"),e("MSPointerCancel"),K="MSPointerMove"):(e("touchstart"),e("touchend"),e("touchcancel")),e("focusin"),e("focusout"),function(){for(var t in Q)e(t,!1);F=null,q=null,G=!1,U=!1,W=null}},ignoreScrollStart:function(e){return e.defaultPrevented||/^(file|range)$/i.test(e.target.type)||"true"==(e.target.dataset?e.target.dataset.preventScroll:e.target.getAttribute("data-prevent-scroll"))||!!/^(object|embed)$/i.test(e.target.tagName)||ionic.tap.isElementTapDisabled(e.target)},isTextInput:function(e){return!!e&&("TEXTAREA"==e.tagName||"true"===e.contentEditable||"INPUT"==e.tagName&&!/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i.test(e.type))},isDateInput:function(e){return!!e&&"INPUT"==e.tagName&&/^(date|time|datetime-local|month|week)$/i.test(e.type)},isVideo:function(e){return!!e&&"VIDEO"==e.tagName},isKeyboardElement:function(e){return!ionic.Platform.isIOS()||ionic.Platform.isIPad()?ionic.tap.isTextInput(e)&&!ionic.tap.isDateInput(e):ionic.tap.isTextInput(e)||!!e&&"SELECT"==e.tagName},isLabelWithTextInput:function(e){var t=w(e,!1);return!!t&&ionic.tap.isTextInput(y(t))},containsOrIsTextInput:function(e){return ionic.tap.isTextInput(e)||ionic.tap.isLabelWithTextInput(e)},cloneFocusedInput:function(e){ionic.tap.hasCheckedClone||(ionic.tap.hasCheckedClone=!0,ionic.requestAnimationFrame(function(){var t=e.querySelector(":focus");if(ionic.tap.isTextInput(t)&&!ionic.tap.isDateInput(t)){var n=t.cloneNode(!0);n.value=t.value,n.classList.add("cloned-text-input"),n.readOnly=!0,t.isContentEditable&&(n.contentEditable=t.contentEditable,n.innerHTML=t.innerHTML),t.parentElement.insertBefore(n,t),t.classList.add("previous-input-focus"),n.scrollTop=t.scrollTop}}))},hasCheckedClone:!1,removeClonedInputs:function(e){ionic.tap.hasCheckedClone=!1,ionic.requestAnimationFrame(function(){var t,n=e.querySelectorAll(".cloned-text-input"),i=e.querySelectorAll(".previous-input-focus");for(t=0;t<n.length;t++)n[t].parentElement.removeChild(n[t]);for(t=0;t<i.length;t++)i[t].classList.remove("previous-input-focus"),i[t].style.top="",ionic.keyboard.isOpen&&!ionic.keyboard.isClosing&&i[t].focus()})},requiresNativeClick:function(e){return!(!ionic.Platform.isWindowsPhone()||"A"!=e.tagName&&"BUTTON"!=e.tagName&&!e.hasAttribute("ng-click")&&("INPUT"!=e.tagName||"button"!=e.type&&"submit"!=e.type))||(!!(!e||e.disabled||/^(file|range)$/i.test(e.type)||/^(object|video)$/i.test(e.tagName)||ionic.tap.isLabelContainingFileInput(e))||ionic.tap.isElementTapDisabled(e))},isLabelContainingFileInput:function(e){var t=w(e);if("LABEL"!==t.tagName)return!1;var n=t.querySelector("input[type=file]");return!(!n||n.disabled!==!1)},isElementTapDisabled:function(e){if(e&&1===e.nodeType)for(var t=e;t;){if(t.getAttribute&&"true"==t.getAttribute("data-tap-disabled"))return!0;t=t.parentElement}return!1},setTolerance:function(e,t){Z=e,J=t},cancelClick:function(){U=!0},pointerCoord:function(e){var t={x:0,y:0};if(e){var n=e.touches&&e.touches.length?e.touches:[e],i=e.changedTouches&&e.changedTouches[0]||n[0];i&&(t.x=i.clientX||i.pageX||0,t.y=i.clientY||i.pageY||0)}return t}},ionic.DomUtil.ready(function(){var e="undefined"!=typeof angular?angular:null;(!e||e&&!e.scenario)&&ionic.tap.register(document)}),function(e,t){"use strict";function n(){o={},t.requestAnimationFrame(r)}function i(){for(var e in o)o[e]&&(o[e].classList.add(l),a[e]=o[e]);o={}}function r(){if(t.transition&&t.transition.isActive)return void setTimeout(r,400);for(var e in a)a[e]&&(a[e].classList.remove(l),delete a[e])}var o={},a={},s=0,l="activated";t.activator={start:function(e){var n=t.tap.pointerCoord(e).x;n>0&&n<30||t.requestAnimationFrame(function(){if(!(t.scroll&&t.scroll.isScrolling||t.tap.requiresNativeClick(e.target))){for(var n,r=e.target,a=0;a<6&&(r&&1===r.nodeType);a++){if(n&&r.classList&&r.classList.contains("item")){n=r;break}if("A"==r.tagName||"BUTTON"==r.tagName||r.hasAttribute("ng-click")){n=r;break}if(r.classList&&r.classList.contains("button")){n=r;break}if("ION-CONTENT"==r.tagName||r.classList&&r.classList.contains("pane")||"BODY"==r.tagName)break;r=r.parentElement}n&&(o[s]=n,t.requestAnimationFrame(i),s=s>29?0:s+1)}})},end:function(){setTimeout(n,200)}}}(document,ionic),function(e){var t=0;e.Utils={arrayMove:function(e,t,n){if(n>=e.length)for(var i=n-e.length;1+i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e},proxy:function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,n.concat(Array.prototype.slice.call(arguments)))}},debounce:function(e,t,n){var i,r,o,a,s;return function(){o=this,r=arguments,a=new Date;var l=function(){var c=new Date-a;c<t?i=setTimeout(l,t-c):(i=null,n||(s=e.apply(o,r)))},c=n&&!i;return i||(i=setTimeout(l,t)),c&&(s=e.apply(o,r)),s}},throttle:function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=n.leading===!1?0:Date.now(),a=null,o=e.apply(i,r)};return function(){var c=Date.now();s||n.leading!==!1||(s=c);var u=t-(c-s);return i=this,r=arguments,u<=0?(clearTimeout(a),a=null,s=c,o=e.apply(i,r)):a||n.trailing===!1||(a=setTimeout(l,u)),o}},inherit:function(t,n){var i,r=this;i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return r.apply(this,arguments)},e.extend(i,r,n);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&e.extend(i.prototype,t),i.__super__=r.prototype,i},extend:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++){var i=t[n];if(i)for(var r in i)e[r]=i[r]}return e},nextUid:function(){return"ion"+t++},disconnectScope:function(e){if(e&&e.$root!==e){var t=e.$parent;e.$$disconnected=!0,e.$broadcast("$ionic.disconnectScope",e),t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e.$parent;e.$$disconnected=!1,e.$broadcast("$ionic.reconnectScope",e),e.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=e,t.$$childTail=e):t.$$childHead=t.$$childTail=e}},isScopeDisconnected:function(e){for(var t=e;t;){if(t.$$disconnected)return!0;t=t.$parent}return!1}},e.inherit=e.Utils.inherit,e.extend=e.Utils.extend,e.throttle=e.Utils.throttle,e.proxy=e.Utils.proxy,e.debounce=e.Utils.debounce}(window.ionic);var ee,te,ne,ie,re,oe=0,ae=0,se=0,le=!1,ce="keyboard-open",ue="scroll-content",de=ionic.debounce(x,200,!0),fe=ionic.debounce(S,100,!0);ionic.keyboard={isOpen:!1,isClosing:!1,isOpening:!1,height:0,isLandscape:!1,isInitialized:!1,hide:function(){B()&&cordova.plugins.Keyboard.close(),ee&&ee.blur()},show:function(){B()&&cordova.plugins.Keyboard.show()},disable:function(){B()?(window.removeEventListener("native.keyboardshow",fe),window.removeEventListener("native.keyboardhide",T)):document.body.removeEventListener("focusout",T),document.body.removeEventListener("ionic.focusin",de),document.body.removeEventListener("focusin",de),window.removeEventListener("orientationchange",E),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerDown",_):document.removeEventListener("touchstart",_),ionic.keyboard.isInitialized=!1},enable:function(){_()}},oe=V(),ionic.Platform.ready(function(){N(),window.addEventListener("orientationchange",E),setTimeout(N,999),window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",_,!1):document.addEventListener("touchstart",_,!1)});var pe,he={};ionic.viewport={orientation:function(){return window.innerWidth>window.innerHeight?90:0}},ionic.Platform.ready(function(){R(),window.addEventListener("orientationchange",function(){setTimeout(z,1e3)},!1)}),function(e){"use strict";e.views.View=function(){this.initialize.apply(this,arguments)},e.views.View.inherit=e.inherit,e.extend(e.views.View.prototype,{initialize:function(){}})}(window.ionic);var me={effect:{}};!function(e){var t=Date.now||function(){return+new Date},n={},i=1;me.effect.Animate={requestAnimationFrame:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,n=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())&&(n=!1),n)return function(e,n){t(e,n)};var i={},r=0,o=1,a=null,s=+new Date;return function(e){var t=o++;return i[t]=e,r++,null===a&&(a=setInterval(function(){var e=+new Date,t=i;i={},r=0;for(var n in t)t.hasOwnProperty(n)&&(t[n](e),s=e);e-s>2500&&(clearInterval(a),a=null)},1e3/60)),t}}(),stop:function(e){var t=null!=n[e];return t&&(n[e]=null),t},isRunning:function(e){return null!=n[e]},start:function(e,r,o,a,s,l){var c=t(),u=c,d=0,f=0,p=i++;if(l||(l=document.body),p%20==0){var h={};for(var m in n)h[m]=!0;n=h}var v=function(i){var h=i!==!0,m=t();if(!n[p]||r&&!r(p))return n[p]=null,void(o&&o(60-f/((m-c)/1e3),p,!1));if(h)for(var g=Math.round((m-u)/(1e3/60))-1,$=0;$<Math.min(g,4);$++)v(!0),f++;a&&(d=(m-c)/a)>1&&(d=1),e(s?s(d):d,m,h)!==!1&&1!==d||!h?h&&(u=m,me.effect.Animate.requestAnimationFrame(v,l)):(n[p]=null,o&&o(60-f/((m-c)/1e3),p,1===d||null==a))};return n[p]=!0,me.effect.Animate.requestAnimationFrame(v,l),p}}}(window),function(e){var t=function(){},n=function(e){return Math.pow(e-1,3)+1},i=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};e.views.Scroll=e.views.View.inherit({initialize:function(n){var i=this;i.__container=n.el,i.__content=n.el.firstElementChild,setTimeout(function(){i.__container&&i.__content&&(i.__container.scrollTop=0,i.__content.scrollTop=0)}),i.options={scrollingX:!1,scrollbarX:!0,scrollingY:!0,scrollbarY:!0,startX:0,startY:0,wheelDampen:6,minScrollbarSizeX:5,minScrollbarSizeY:5,scrollbarsFade:!0,scrollbarFadeDelay:300,scrollbarResizeFadeDelay:1e3,animating:!0,animationDuration:250,decelVelocityThreshold:4,decelVelocityThresholdPaging:4,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,deceleration:.97,preventDefault:!1,scrollingComplete:t,penetrationDeceleration:.03,penetrationAcceleration:.08,scrollEventInterval:10,freeze:!1,getContentWidth:function(){return Math.max(i.__content.scrollWidth,i.__content.offsetWidth)},getContentHeight:function(){return Math.max(i.__content.scrollHeight,i.__content.offsetHeight+2*i.__content.offsetTop)}};for(var r in n)i.options[r]=n[r];i.hintResize=e.debounce(function(){i.resize()},1e3,!0),i.onScroll=function(){e.scroll.isScrolling?(clearTimeout(i.scrollTimer),i.scrollTimer=setTimeout(i.setScrollStop,80)):setTimeout(i.setScrollStart,50)},i.freeze=function(e){return arguments.length&&(i.options.freeze=e),i.options.freeze},i.freezeShut=i.freeze,i.setScrollStart=function(){e.scroll.isScrolling=Math.abs(e.scroll.lastTop-i.__scrollTop)>1,clearTimeout(i.scrollTimer),i.scrollTimer=setTimeout(i.setScrollStop,80)},i.setScrollStop=function(){e.scroll.isScrolling=!1,e.scroll.lastTop=i.__scrollTop},i.triggerScrollEvent=e.throttle(function(){i.onScroll(),e.trigger("scroll",{scrollTop:i.__scrollTop,scrollLeft:i.__scrollLeft,target:i.__container})},i.options.scrollEventInterval),i.triggerScrollEndEvent=function(){e.trigger("scrollend",{scrollTop:i.__scrollTop,scrollLeft:i.__scrollLeft,target:i.__container})},i.__scrollLeft=i.options.startX,i.__scrollTop=i.options.startY,i.__callback=i.getRenderFn(),i.__initEventHandlers(),i.__createScrollbars()},run:function(){this.resize(),this.__fadeScrollbars("out",this.options.scrollbarResizeFadeDelay)},__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,__transformProperty:null,__perspectiveProperty:null,__indicatorX:null,__indicatorY:null,__scrollbarFadeTimeout:null,__didWaitForSize:null,__sizerTimeout:null,__initEventHandlers:function(){function t(e){return e.touches&&e.touches.length?e.touches:[{pageX:e.pageX,pageY:e.pageY}]}var n,i=this,r=i.__container;if(i.scrollChildIntoView=function(t){var o=r.getBoundingClientRect().bottom;n=r.offsetHeight;var a=i.isShrunkForKeyboard,s=r.parentNode.classList.contains("modal"),l=s&&window.innerWidth>=680;if(!a){if(e.Platform.isIOS()||e.Platform.isFullScreen||l){var c=t.detail.viewportHeight-o,u=Math.max(0,t.detail.keyboardHeight-c);e.requestAnimationFrame(function(){n-=u,r.style.height=n+"px",r.style.overflow="visible",i.resize()})}i.isShrunkForKeyboard=!0}t.detail.isElementUnderKeyboard&&e.requestAnimationFrame(function(){r.scrollTop=0,i.isShrunkForKeyboard&&!a&&(o=r.getBoundingClientRect().bottom);var s=.5*n,l=(t.detail.elementBottom+t.detail.elementTop)/2,c=l-o,u=c+s;u>0&&(e.Platform.isIOS()&&e.tap.cloneFocusedInput(r,i),i.scrollBy(0,u,!0),i.onScroll())}),t.stopPropagation()},i.resetScrollView=function(){i.isShrunkForKeyboard&&(i.isShrunkForKeyboard=!1,r.style.height="",r.style.overflow=""),i.resize()},r.addEventListener("scrollChildIntoView",i.scrollChildIntoView),document.addEventListener("resetScrollView",i.resetScrollView),i.touchStart=function(n){if(i.startCoordinates=e.tap.pointerCoord(n),!e.tap.ignoreScrollStart(n)){if(i.__isDown=!0,e.tap.containsOrIsTextInput(n.target)||"SELECT"===n.target.tagName)return void(i.__hasStarted=!1);i.__isSelectable=!0,i.__enableScrollY=!0,i.__hasStarted=!0,i.doTouchStart(t(n),n.timeStamp),n.preventDefault()}},i.touchMove=function(n){if(!(i.options.freeze||!i.__isDown||!i.__isDown&&n.defaultPrevented||"TEXTAREA"===n.target.tagName&&n.target.parentElement.querySelector(":focus"))){if(!i.__hasStarted&&(e.tap.containsOrIsTextInput(n.target)||"SELECT"===n.target.tagName))return i.__hasStarted=!0,i.doTouchStart(t(n),n.timeStamp),void n.preventDefault();if(i.startCoordinates){var o=e.tap.pointerCoord(n);i.__isSelectable&&e.tap.isTextInput(n.target)&&Math.abs(i.startCoordinates.x-o.x)>20&&(i.__enableScrollY=!1,i.__isSelectable=!0),i.__enableScrollY&&Math.abs(i.startCoordinates.y-o.y)>10&&(i.__isSelectable=!1,e.tap.cloneFocusedInput(r,i))}i.doTouchMove(t(n),n.timeStamp,n.scale),i.__isDown=!0}},i.touchMoveBubble=function(e){i.__isDown&&i.options.preventDefault&&e.preventDefault()},i.touchEnd=function(t){i.__isDown&&(i.doTouchEnd(t,t.timeStamp),i.__isDown=!1,i.__hasStarted=!1,i.__isSelectable=!0,i.__enableScrollY=!0,i.__isDragging||i.__isDecelerating||i.__isAnimating||e.tap.removeClonedInputs(r,i))},i.mouseWheel=e.animationFrameThrottle(function(t){var n=e.DomUtil.getParentOrSelfWithClass(t.target,"ionic-scroll");i.options.freeze||n!==i.__container||(i.hintResize(),i.scrollBy((t.wheelDeltaX||t.deltaX||0)/i.options.wheelDampen,(-t.wheelDeltaY||t.deltaY||0)/i.options.wheelDampen),i.__fadeScrollbars("in"),clearTimeout(i.__wheelHideBarTimeout),i.__wheelHideBarTimeout=setTimeout(function(){i.__fadeScrollbars("out")},100))}),"ontouchstart"in window)r.addEventListener("touchstart",i.touchStart,!1),i.options.preventDefault&&r.addEventListener("touchmove",i.touchMoveBubble,!1),document.addEventListener("touchmove",i.touchMove,!1),document.addEventListener("touchend",i.touchEnd,!1),document.addEventListener("touchcancel",i.touchEnd,!1),document.addEventListener("wheel",i.mouseWheel,!1);else if(window.navigator.pointerEnabled)r.addEventListener("pointerdown",i.touchStart,!1),i.options.preventDefault&&r.addEventListener("pointermove",i.touchMoveBubble,!1),document.addEventListener("pointermove",i.touchMove,!1),document.addEventListener("pointerup",i.touchEnd,!1),document.addEventListener("pointercancel",i.touchEnd,!1),document.addEventListener("wheel",i.mouseWheel,!1);else if(window.navigator.msPointerEnabled)r.addEventListener("MSPointerDown",i.touchStart,!1),i.options.preventDefault&&r.addEventListener("MSPointerMove",i.touchMoveBubble,!1),document.addEventListener("MSPointerMove",i.touchMove,!1),document.addEventListener("MSPointerUp",i.touchEnd,!1),document.addEventListener("MSPointerCancel",i.touchEnd,!1),document.addEventListener("wheel",i.mouseWheel,!1);else{var o=!1;i.mouseDown=function(n){e.tap.ignoreScrollStart(n)||"SELECT"===n.target.tagName||(i.doTouchStart(t(n),n.timeStamp),e.tap.isTextInput(n.target)||n.preventDefault(),o=!0)},i.mouseMove=function(e){i.options.freeze||!o||!o&&e.defaultPrevented||(i.doTouchMove(t(e),e.timeStamp),o=!0)},i.mouseMoveBubble=function(e){o&&i.options.preventDefault&&e.preventDefault()},i.mouseUp=function(e){o&&(i.doTouchEnd(e,e.timeStamp),o=!1)},r.addEventListener("mousedown",i.mouseDown,!1),i.options.preventDefault&&r.addEventListener("mousemove",i.mouseMoveBubble,!1),document.addEventListener("mousemove",i.mouseMove,!1),document.addEventListener("mouseup",i.mouseUp,!1),document.addEventListener("mousewheel",i.mouseWheel,!1),document.addEventListener("wheel",i.mouseWheel,!1)}},__cleanup:function(){var n=this,i=n.__container;i.removeEventListener("touchstart",n.touchStart),i.removeEventListener("touchmove",n.touchMoveBubble),document.removeEventListener("touchmove",n.touchMove),document.removeEventListener("touchend",n.touchEnd),document.removeEventListener("touchcancel",n.touchEnd),i.removeEventListener("pointerdown",n.touchStart),i.removeEventListener("pointermove",n.touchMoveBubble),document.removeEventListener("pointermove",n.touchMove),document.removeEventListener("pointerup",n.touchEnd),document.removeEventListener("pointercancel",n.touchEnd),i.removeEventListener("MSPointerDown",n.touchStart),i.removeEventListener("MSPointerMove",n.touchMoveBubble),document.removeEventListener("MSPointerMove",n.touchMove),document.removeEventListener("MSPointerUp",n.touchEnd),document.removeEventListener("MSPointerCancel",n.touchEnd),i.removeEventListener("mousedown",n.mouseDown),i.removeEventListener("mousemove",n.mouseMoveBubble),document.removeEventListener("mousemove",n.mouseMove),document.removeEventListener("mouseup",n.mouseUp),document.removeEventListener("mousewheel",n.mouseWheel),document.removeEventListener("wheel",n.mouseWheel),i.removeEventListener("scrollChildIntoView",n.scrollChildIntoView),document.removeEventListener("resetScrollView",n.resetScrollView),e.tap.removeClonedInputs(i,n),delete n.__container,delete n.__content,delete n.__indicatorX,delete n.__indicatorY,delete n.options.el,n.__callback=n.scrollChildIntoView=n.resetScrollView=t,n.mouseMove=n.mouseDown=n.mouseUp=n.mouseWheel=n.touchStart=n.touchMove=n.touchEnd=n.touchCancel=t,n.resize=n.scrollTo=n.zoomTo=n.__scrollingComplete=t,i=null},__createScrollbar:function(e){var t=document.createElement("div"),n=document.createElement("div");return n.className="scroll-bar-indicator scroll-bar-fade-out",t.className="h"==e?"scroll-bar scroll-bar-h":"scroll-bar scroll-bar-v",t.appendChild(n),t},__createScrollbars:function(){var e,t,n=this;n.options.scrollingX&&(e={el:n.__createScrollbar("h"),sizeRatio:1},e.indicator=e.el.children[0],n.options.scrollbarX&&n.__container.appendChild(e.el),n.__indicatorX=e),n.options.scrollingY&&(t={el:n.__createScrollbar("v"),sizeRatio:1},t.indicator=t.el.children[0],n.options.scrollbarY&&n.__container.appendChild(t.el),n.__indicatorY=t)},__resizeScrollbars:function(){var t=this;if(t.__indicatorX){var n=Math.max(Math.round(t.__clientWidth*t.__clientWidth/t.__contentWidth),20);n>t.__contentWidth&&(n=0),n!==t.__indicatorX.size&&e.requestAnimationFrame(function(){t.__indicatorX.indicator.style.width=n+"px"}),t.__indicatorX.size=n,t.__indicatorX.minScale=t.options.minScrollbarSizeX/n,t.__indicatorX.maxPos=t.__clientWidth-n,t.__indicatorX.sizeRatio=t.__maxScrollLeft?t.__indicatorX.maxPos/t.__maxScrollLeft:1}if(t.__indicatorY){var i=Math.max(Math.round(t.__clientHeight*t.__clientHeight/t.__contentHeight),20);i>t.__contentHeight&&(i=0),i!==t.__indicatorY.size&&e.requestAnimationFrame(function(){t.__indicatorY&&(t.__indicatorY.indicator.style.height=i+"px")}),t.__indicatorY.size=i,t.__indicatorY.minScale=t.options.minScrollbarSizeY/i,t.__indicatorY.maxPos=t.__clientHeight-i,t.__indicatorY.sizeRatio=t.__maxScrollTop?t.__indicatorY.maxPos/t.__maxScrollTop:1}},__repositionScrollbars:function(){var e,t,n,i,r,o,a=this,s=0,l=0;if(a.__indicatorX){a.__indicatorY&&(s=10),r=Math.round(a.__indicatorX.sizeRatio*a.__scrollLeft)||0,n=a.__scrollLeft-(a.__maxScrollLeft-s),a.__scrollLeft<0?(t=Math.max(a.__indicatorX.minScale,(a.__indicatorX.size-Math.abs(a.__scrollLeft))/a.__indicatorX.size),r=0,a.__indicatorX.indicator.style[a.__transformOriginProperty]="left center"):n>0?(t=Math.max(a.__indicatorX.minScale,(a.__indicatorX.size-n)/a.__indicatorX.size),r=a.__indicatorX.maxPos-s,a.__indicatorX.indicator.style[a.__transformOriginProperty]="right center"):(r=Math.min(a.__maxScrollLeft,Math.max(0,r)),t=1);var c="translate3d("+r+"px, 0, 0) scaleX("+t+")";a.__indicatorX.transformProp!==c&&(a.__indicatorX.indicator.style[a.__transformProperty]=c,a.__indicatorX.transformProp=c)}if(a.__indicatorY){o=Math.round(a.__indicatorY.sizeRatio*a.__scrollTop)||0,a.__indicatorX&&(l=10),i=a.__scrollTop-(a.__maxScrollTop-l),a.__scrollTop<0?(e=Math.max(a.__indicatorY.minScale,(a.__indicatorY.size-Math.abs(a.__scrollTop))/a.__indicatorY.size),o=0,"center top"!==a.__indicatorY.originProp&&(a.__indicatorY.indicator.style[a.__transformOriginProperty]="center top",a.__indicatorY.originProp="center top")):i>0?(e=Math.max(a.__indicatorY.minScale,(a.__indicatorY.size-i)/a.__indicatorY.size),o=a.__indicatorY.maxPos-l,"center bottom"!==a.__indicatorY.originProp&&(a.__indicatorY.indicator.style[a.__transformOriginProperty]="center bottom",a.__indicatorY.originProp="center bottom")):(o=Math.min(a.__maxScrollTop,Math.max(0,o)),e=1);var u="translate3d(0,"+o+"px, 0) scaleY("+e+")";a.__indicatorY.transformProp!==u&&(a.__indicatorY.indicator.style[a.__transformProperty]=u,a.__indicatorY.transformProp=u)}},__fadeScrollbars:function(e,t){var n=this;if(n.options.scrollbarsFade){var i="scroll-bar-fade-out";n.options.scrollbarsFade===!0&&(clearTimeout(n.__scrollbarFadeTimeout),"in"==e?(n.__indicatorX&&n.__indicatorX.indicator.classList.remove(i),n.__indicatorY&&n.__indicatorY.indicator.classList.remove(i)):n.__scrollbarFadeTimeout=setTimeout(function(){n.__indicatorX&&n.__indicatorX.indicator.classList.add(i),n.__indicatorY&&n.__indicatorY.indicator.classList.add(i)},t||n.options.scrollbarFadeDelay))}},__scrollingComplete:function(){this.options.scrollingComplete(),e.tap.removeClonedInputs(this.__container,this),this.__fadeScrollbars("out")},resize:function(e){var t=this;t.__container&&t.options&&t.setDimensions(t.__container.clientWidth,t.__container.clientHeight,t.options.getContentWidth(),t.options.getContentHeight(),e)},getRenderFn:function(){var e,t=this,n=t.__content,i=document.documentElement.style;"MozAppearance"in i?e="gecko":"WebkitAppearance"in i?e="webkit":"string"==typeof navigator.cpuClass&&(e="trident");var r={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[e],o=document.createElement("div"),a=r+"Perspective",s=r+"Transform",l=r+"TransformOrigin";return t.__perspectiveProperty=s,t.__transformProperty=s,t.__transformOriginProperty=l,void 0!==o.style[a]?function(e,i,r,o){var a="translate3d("+-e+"px,"+-i+"px,0) scale("+r+")";a!==t.contentTransform&&(n.style[s]=a,t.contentTransform=a),t.__repositionScrollbars(),o||t.triggerScrollEvent()}:void 0!==o.style[s]?function(e,i,r,o){n.style[s]="translate("+-e+"px,"+-i+"px) scale("+r+")",t.__repositionScrollbars(),o||t.triggerScrollEvent()}:function(e,i,r,o){n.style.marginLeft=e?-e/r+"px":"",n.style.marginTop=i?-i/r+"px":"",n.style.zoom=r||"",t.__repositionScrollbars(),o||t.triggerScrollEvent()}},setDimensions:function(e,t,n,i,r){var o=this;(e||t||n||i)&&(e===+e&&(o.__clientWidth=e),t===+t&&(o.__clientHeight=t),n===+n&&(o.__contentWidth=n),i===+i&&(o.__contentHeight=i),o.__computeScrollMax(),o.__resizeScrollbars(),r||o.scrollTo(o.__scrollLeft,o.__scrollTop,!0,null,!0))},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},activatePullToRefresh:function(t,n){var i=this;i.__refreshHeight=t,i.__refreshActivate=function(){e.requestAnimationFrame(n.activate)},i.__refreshDeactivate=function(){e.requestAnimationFrame(n.deactivate)},i.__refreshStart=function(){e.requestAnimationFrame(n.start)},i.__refreshShow=function(){e.requestAnimationFrame(n.show)},i.__refreshHide=function(){e.requestAnimationFrame(n.hide)},i.__refreshTail=function(){e.requestAnimationFrame(n.tail)},i.__refreshTailTime=100,i.__minSpinTime=600},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0);var e=new Date;this.refreshStartTime=e.getTime(),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this,t=new Date,n=0;e.refreshStartTime+e.__minSpinTime>t.getTime()&&(n=e.refreshStartTime+e.__minSpinTime-t.getTime()),setTimeout(function(){e.__refreshTail&&e.__refreshTail(),setTimeout(function(){e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.__refreshHide&&e.__refreshHide(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},e.__refreshTailTime)},n)},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,i){var r=this;if(!r.options.zooming)throw new Error("Zooming is not enabled!");r.__isDecelerating&&(me.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1);var o=r.__zoomLevel;null==n&&(n=r.__clientWidth/2),null==i&&(i=r.__clientHeight/2),e=Math.max(Math.min(e,r.options.maxZoom),r.options.minZoom),r.__computeScrollMax(e);var a=(n+r.__scrollLeft)*e/o-n,s=(i+r.__scrollTop)*e/o-i;a>r.__maxScrollLeft?a=r.__maxScrollLeft:a<0&&(a=0),s>r.__maxScrollTop?s=r.__maxScrollTop:s<0&&(s=0),r.__publish(a,s,e,t)},zoomBy:function(e,t,n,i){this.zoomTo(this.__zoomLevel*e,t,n,i)},scrollTo:function(e,t,n,i,r){var o=this;if(o.__isDecelerating&&(me.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1),null!=i&&i!==o.__zoomLevel){if(!o.options.zooming)throw new Error("Zooming is not enabled!");e*=i,t*=i,o.__computeScrollMax(i)}else i=o.__zoomLevel;o.options.scrollingX?o.options.paging?e=Math.round(e/o.__clientWidth)*o.__clientWidth:o.options.snapping&&(e=Math.round(e/o.__snapWidth)*o.__snapWidth):e=o.__scrollLeft,o.options.scrollingY?o.options.paging?t=Math.round(t/o.__clientHeight)*o.__clientHeight:o.options.snapping&&(t=Math.round(t/o.__snapHeight)*o.__snapHeight):t=o.__scrollTop,e=Math.max(Math.min(o.__maxScrollLeft,e),0),t=Math.max(Math.min(o.__maxScrollTop,t),0),e===o.__scrollLeft&&t===o.__scrollTop&&(n=!1),o.__publish(e,t,i,n,r)},scrollBy:function(e,t,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(e||0),o+(t||0),n)},doMouseZoom:function(e,t,n,i){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,i-this.__clientTop)},doTouchStart:function(e,t){var n=this;n.__decStopped=!(!n.__isDecelerating&&!n.__isAnimating),n.hintResize(),t instanceof Date&&(t=t.valueOf()),"number"!=typeof t&&(t=Date.now()),n.__interruptedAnimation=!0,n.__isDecelerating&&(me.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1,n.__interruptedAnimation=!0),n.__isAnimating&&(me.effect.Animate.stop(n.__isAnimating),n.__isAnimating=!1,n.__interruptedAnimation=!0);var i,r,o=1===e.length;o?(i=e[0].pageX,r=e[0].pageY):(i=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2),n.__initialTouchLeft=i,n.__initialTouchTop=r,n.__initialTouches=e,n.__zoomLevelStart=n.__zoomLevel,n.__lastTouchLeft=i,n.__lastTouchTop=r,n.__lastTouchMove=t,n.__lastScale=1,n.__enableScrollX=!o&&n.options.scrollingX,n.__enableScrollY=!o&&n.options.scrollingY,n.__isTracking=!0,n.__didDecelerationComplete=!1,n.__isDragging=!o,n.__isSingleTouch=o,n.__positions=[]},doTouchMove:function(e,t,n){t instanceof Date&&(t=t.valueOf()),"number"!=typeof t&&(t=Date.now());var i=this;if(i.__isTracking){var r,o;2===e.length?(r=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2,!n&&i.options.zooming&&(n=i.__getScale(i.__initialTouches,e))):(r=e[0].pageX,o=e[0].pageY);var a=i.__positions;if(i.__isDragging){i.__decStopped=!1;var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var f=d;if(d=d/i.__lastScale*n,d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom),f!==d){var p=r-i.__clientLeft,h=o-i.__clientTop;c=(p+c)*d/f-p,u=(h+u)*d/f-h,i.__computeScrollMax(d)}}if(i.__enableScrollX){c-=s*i.options.speedMultiplier;var m=i.__maxScrollLeft;(c>m||c<0)&&(i.options.bouncing?c+=s/2*i.options.speedMultiplier:c=c>m?m:0)}if(i.__enableScrollY){u-=l*i.options.speedMultiplier;var v=i.__maxScrollTop;u>v||u<0?i.options.bouncing||i.__refreshHeight&&u<0?(u+=l/2*i.options.speedMultiplier,i.__enableScrollX||null==i.__refreshHeight||(u<0?(i.__refreshHidden=!1,i.__refreshShow()):(i.__refreshHide(),i.__refreshHidden=!0),!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight&&(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()))):u=u>v?v:0:i.__refreshHeight&&!i.__refreshHidden&&(i.__refreshHide(),i.__refreshHidden=!0)}a.length>60&&a.splice(0,30),a.push(c,u,t),i.__publish(c,u,d)}else{var g=i.options.locking?3:0,$=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&$>=g,i.__enableScrollY=i.options.scrollingY&&w>=g,a.push(i.__scrollLeft,i.__scrollTop,t),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&($>=5||w>=5),i.__isDragging&&(i.__interruptedAnimation=!1,i.__fadeScrollbars("in"))}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=t,i.__lastScale=n}},doTouchEnd:function(t,n){n instanceof Date&&(n=n.valueOf()),"number"!=typeof n&&(n=Date.now());var i=this;if(i.__isTracking){if(i.__isTracking=!1,i.__isDragging)if(i.__isDragging=!1,i.__isSingleTouch&&i.options.animating&&n-i.__lastTouchMove<=100){for(var r=i.__positions,o=r.length-1,a=o,s=o;s>0&&r[s]>i.__lastTouchMove-100;s-=3)a=s;if(a!==o){ var l=r[o]-r[a],c=i.__scrollLeft-r[a-2],u=i.__scrollTop-r[a-1];i.__decelerationVelocityX=c/l*(1e3/60),i.__decelerationVelocityY=u/l*(1e3/60);var d=i.options.paging||i.options.snapping?i.options.decelVelocityThresholdPaging:i.options.decelVelocityThreshold;(Math.abs(i.__decelerationVelocityX)>d||Math.abs(i.__decelerationVelocityY)>d)&&(i.__refreshActive||i.__startDeceleration(n))}else i.__scrollingComplete()}else n-i.__lastTouchMove>100&&i.__scrollingComplete();else i.__decStopped&&(t.isTapHandled=!0,i.__decStopped=!1);if(!i.__isDecelerating)if(i.__refreshActive&&i.__refreshStart){i.__publish(i.__scrollLeft,-i.__refreshHeight,i.__zoomLevel,!0);var f=new Date;i.refreshStartTime=f.getTime(),i.__refreshStart&&i.__refreshStart(),e.Platform.isAndroid()||i.__startDeceleration()}else(i.__interruptedAnimation||i.__isDragging)&&i.__scrollingComplete(),i.scrollTo(i.__scrollLeft,i.__scrollTop,!0,i.__zoomLevel),i.__refreshActive&&(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate());i.__positions.length=0}},__publish:function(e,t,r,o,a){var s=this,l=s.__isAnimating;if(l&&(me.effect.Animate.stop(l),s.__isAnimating=!1),o&&s.options.animating){s.__scheduledLeft=e,s.__scheduledTop=t,s.__scheduledZoom=r;var c=s.__scrollLeft,u=s.__scrollTop,d=s.__zoomLevel,f=e-c,p=t-u,h=r-d,m=function(e,t,n){n&&(s.__scrollLeft=c+f*e,s.__scrollTop=u+p*e,s.__zoomLevel=d+h*e,s.__callback&&s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel,a))},v=function(e){return s.__isAnimating===e},g=function(e,t,n){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||n)&&s.__scrollingComplete(),s.options.zooming&&s.__computeScrollMax()};s.__isAnimating=me.effect.Animate.start(m,v,g,s.options.animationDuration,l?n:i)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=t,s.__scheduledZoom=s.__zoomLevel=r,s.__callback&&s.__callback(e,t,r,a),s.options.zooming&&s.__computeScrollMax()},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0),t.__didWaitForSize||t.__maxScrollLeft||t.__maxScrollTop||(t.__didWaitForSize=!0,t.__waitForSize())},__waitForSize:function(){var e=this;clearTimeout(e.__sizerTimeout);var t=function(){e.resize(!0)};t(),e.__sizerTimeout=setTimeout(t,500)},__startDeceleration:function(){var e=this;if(e.options.paging){var t=Math.max(Math.min(e.__scrollLeft,e.__maxScrollLeft),0),n=Math.max(Math.min(e.__scrollTop,e.__maxScrollTop),0),i=e.__clientWidth,r=e.__clientHeight;e.__minDecelerationScrollLeft=Math.floor(t/i)*i,e.__minDecelerationScrollTop=Math.floor(n/r)*r,e.__maxDecelerationScrollLeft=Math.ceil(t/i)*i,e.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else e.__minDecelerationScrollLeft=0,e.__minDecelerationScrollTop=0,e.__maxDecelerationScrollLeft=e.__maxScrollLeft,e.__maxDecelerationScrollTop=e.__maxScrollTop,e.__refreshActive&&(e.__minDecelerationScrollTop=e.__refreshHeight*-1);var o=function(t,n,i){e.__stepThroughDeceleration(i)};e.__minVelocityToKeepDecelerating=e.options.snapping?4:.1;var a=function(){var t=Math.abs(e.__decelerationVelocityX)>=e.__minVelocityToKeepDecelerating||Math.abs(e.__decelerationVelocityY)>=e.__minVelocityToKeepDecelerating;return t||(e.__didDecelerationComplete=!0,e.options.bouncing&&!e.__refreshActive&&e.scrollTo(Math.min(Math.max(e.__scrollLeft,0),e.__maxScrollLeft),Math.min(Math.max(e.__scrollTop,0),e.__maxScrollTop),e.__refreshActive)),t},s=function(){e.__isDecelerating=!1,e.__didDecelerationComplete&&e.__scrollingComplete(),e.options.paging&&e.scrollTo(e.__scrollLeft,e.__scrollTop,e.options.snapping)};e.__isDecelerating=me.effect.Animate.start(o,a,s)},__stepThroughDeceleration:function(e){var t=this,n=t.__scrollLeft+t.__decelerationVelocityX,i=t.__scrollTop+t.__decelerationVelocityY;if(!t.options.bouncing){var r=Math.max(Math.min(t.__maxDecelerationScrollLeft,n),t.__minDecelerationScrollLeft);r!==n&&(n=r,t.__decelerationVelocityX=0);var o=Math.max(Math.min(t.__maxDecelerationScrollTop,i),t.__minDecelerationScrollTop);o!==i&&(i=o,t.__decelerationVelocityY=0)}if(e?t.__publish(n,i,t.__zoomLevel):(t.__scrollLeft=n,t.__scrollTop=i),!t.options.paging){var a=t.options.deceleration;t.__decelerationVelocityX*=a,t.__decelerationVelocityY*=a}if(t.options.bouncing){var s=0,l=0,c=t.options.penetrationDeceleration,u=t.options.penetrationAcceleration;if(n<t.__minDecelerationScrollLeft?s=t.__minDecelerationScrollLeft-n:n>t.__maxDecelerationScrollLeft&&(s=t.__maxDecelerationScrollLeft-n),i<t.__minDecelerationScrollTop?l=t.__minDecelerationScrollTop-i:i>t.__maxDecelerationScrollTop&&(l=t.__maxDecelerationScrollTop-i),0!==s){var d=s*t.__decelerationVelocityX<=t.__minDecelerationScrollLeft;d&&(t.__decelerationVelocityX+=s*c);var f=Math.abs(t.__decelerationVelocityX)<=t.__minVelocityToKeepDecelerating;d&&!f||(t.__decelerationVelocityX=s*u)}if(0!==l){var p=l*t.__decelerationVelocityY<=t.__minDecelerationScrollTop;p&&(t.__decelerationVelocityY+=l*c);var h=Math.abs(t.__decelerationVelocityY)<=t.__minVelocityToKeepDecelerating;p&&!h||(t.__decelerationVelocityY=l*u)}}},__getDistance:function(e,t){var n=t.pageX-e.pageX,i=t.pageY-e.pageY;return Math.sqrt(n*n+i*i)},__getScale:function(e,t){return e.length>=2&&t.length>=2?this.__getDistance(t[0],t[1])/this.__getDistance(e[0],e[1]):1}}),e.scroll={isScrolling:!1,lastTop:0}}(ionic),function(e){var t=function(){};e.views.ScrollNative=e.views.View.inherit({initialize:function(t){var n=this;n.__container=n.el=t.el,n.__content=t.el.firstElementChild,n.__frozen=!1,n.isNative=!0,n.__scrollTop=n.el.scrollTop,n.__scrollLeft=n.el.scrollLeft,n.__clientHeight=n.__content.clientHeight,n.__clientWidth=n.__content.clientWidth,n.__maxScrollTop=Math.max(n.__contentHeight-n.__clientHeight,0),n.__maxScrollLeft=Math.max(n.__contentWidth-n.__clientWidth,0),(t.startY>=0||t.startX>=0)&&e.requestAnimationFrame(function(){n.el.scrollTop=t.startY||0,n.el.scrollLeft=t.startX||0,n.__scrollTop=n.el.scrollTop,n.__scrollLeft=n.el.scrollLeft}),n.options={freeze:!1,getContentWidth:function(){return Math.max(n.__content.scrollWidth,n.__content.offsetWidth)},getContentHeight:function(){return Math.max(n.__content.scrollHeight,n.__content.offsetHeight+2*n.__content.offsetTop)}};for(var i in t)n.options[i]=t[i];n.onScroll=function(){e.scroll.isScrolling||(e.scroll.isScrolling=!0),clearTimeout(n.scrollTimer),n.scrollTimer=setTimeout(function(){e.scroll.isScrolling=!1},80)},n.freeze=function(e){n.__frozen=e},n.freezeShut=function(e){n.__frozenShut=e},n.__initEventHandlers()},__callback:function(){},zoomTo:function(){},zoomBy:function(){},activatePullToRefresh:function(){},resize:function(e){var t=this;t.__container&&t.options&&t.setDimensions(t.__container.clientWidth,t.__container.clientHeight,t.options.getContentWidth(),t.options.getContentHeight(),e)},run:function(){this.resize()},getValues:function(){var e=this;return e.update(),{left:e.__scrollLeft,top:e.__scrollTop,zoom:1}},update:function(){var e=this;e.__scrollLeft=e.el.scrollLeft,e.__scrollTop=e.el.scrollTop},setDimensions:function(e,t,n,i){var r=this;(e||t||n||i)&&(e===+e&&(r.__clientWidth=e),t===+t&&(r.__clientHeight=t),n===+n&&(r.__contentWidth=n),i===+i&&(r.__contentHeight=i),r.__computeScrollMax())},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},scrollBy:function(e,t,n){var i=this;i.update();var r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(e||0),o+(t||0),n)},scrollTo:function(t,n,i){var r=this;if(!i)return r.el.scrollTop=n,r.el.scrollLeft=t,void r.resize();var o=r.el.style.overflowX,a=r.el.style.overflowY;clearTimeout(r.__scrollToCleanupTimeout),r.__scrollToCleanupTimeout=setTimeout(function(){r.el.style.overflowX=o,r.el.style.overflowY=a},500),r.el.style.overflowY="hidden",r.el.style.overflowX="hidden",function(t,n){function i(e){return--e*e*e+1}function s(){var f=Date.now(),p=Math.min(1,(f-l)/c),h=i(p);u!=t&&(r.el.scrollTop=parseInt(h*(t-u)+u,10)),d!=n&&(r.el.scrollLeft=parseInt(h*(n-d)+d,10)),p<1?e.requestAnimationFrame(s):(e.tap.removeClonedInputs(r.__container,r),r.el.style.overflowX=o,r.el.style.overflowY=a,r.resize())}var l=Date.now(),c=250,u=r.el.scrollTop,d=r.el.scrollLeft;if(u===t&&d===n)return r.el.style.overflowX=o,r.el.style.overflowY=a,void r.resize();e.requestAnimationFrame(s)}(n,t)},__waitForSize:function(){var e=this;clearTimeout(e.__sizerTimeout);var t=function(){e.resize(!0)};t(),e.__sizerTimeout=setTimeout(t,500)},__computeScrollMax:function(){var e=this;e.__maxScrollLeft=Math.max(e.__contentWidth-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight-e.__clientHeight,0),e.__didWaitForSize||e.__maxScrollLeft||e.__maxScrollTop||(e.__didWaitForSize=!0,e.__waitForSize())},__initEventHandlers:function(){var t,n,i=this,r=i.__container;i.scrollChildIntoView=function(o){var a=r.getBoundingClientRect();i.__originalContainerHeight||(i.__originalContainerHeight=a.height),t=i.__originalContainerHeight;var s=i.isShrunkForKeyboard,l=r.parentNode.classList.contains("modal"),c=r.parentNode.classList.contains("popover"),u=l&&window.innerWidth>=680,d=n&&n!==o.detail.keyboardHeight;s&&!d||(!c&&(e.Platform.isIOS()||e.Platform.isFullScreen||u)&&e.requestAnimationFrame(function(){t=Math.max(0,Math.min(i.__originalContainerHeight,i.__originalContainerHeight-(o.detail.keyboardHeight-43))),r.style.height=t+"px",r.classList.add("keyboard-up"),i.resize()}),i.isShrunkForKeyboard=!0),n=o.detail.keyboardHeight,o.detail.isElementUnderKeyboard&&e.requestAnimationFrame(function(){var t=e.DomUtil.getOffsetTop(o.detail.target);setTimeout(function(){e.Platform.isIOS()&&e.tap.cloneFocusedInput(r,i),i.scrollTo(0,t-(a.top+100),!0),i.onScroll()},32)}),o.stopPropagation()},i.resetScrollView=function(){i.isShrunkForKeyboard&&(i.isShrunkForKeyboard=!1,r.style.height="",i.__originalContainerHeight=r.getBoundingClientRect().height,e.Platform.isIOS()&&e.requestAnimationFrame(function(){r.classList.remove("keyboard-up")})),i.resize()},i.handleTouchMove=function(e){return i.__frozenShut?(e.preventDefault(),e.stopPropagation(),!1):!i.__frozen||(e.preventDefault(),!1)},r.addEventListener("scroll",i.onScroll),r.addEventListener("scrollChildIntoView",i.scrollChildIntoView),r.addEventListener(e.EVENTS.touchstart,i.handleTouchMove),r.addEventListener(e.EVENTS.touchmove,i.handleTouchMove),document.addEventListener("resetScrollView",i.resetScrollView)},__cleanup:function(){var n=this,i=n.__container;i.removeEventListener("resetScrollView",n.resetScrollView),i.removeEventListener("scroll",n.onScroll),i.removeEventListener("scrollChildIntoView",n.scrollChildIntoView),i.removeEventListener("resetScrollView",n.resetScrollView),i.removeEventListener(e.EVENTS.touchstart,n.handleTouchMove),i.removeEventListener(e.EVENTS.touchmove,n.handleTouchMove),e.tap.removeClonedInputs(i,n),delete n.__container,delete n.__content,delete n.__indicatorX,delete n.__indicatorY,delete n.options.el,n.resize=n.scrollTo=n.onScroll=n.resetScrollView=t,n.scrollChildIntoView=t,i=null}})}(ionic),function(e){"use strict";var t=function(){};t.prototype={start:function(){},drag:function(){},end:function(){},isSameItem:function(){return!1}};var n=function(e){this.dragThresholdX=e.dragThresholdX||10,this.el=e.el,this.item=e.item,this.canSwipe=e.canSwipe};n.prototype=new t,n.prototype.start=function(t){var n,i,r,o;this.canSwipe()&&(n=t.target.classList.contains("item-content")?t.target:t.target.classList.contains("item")?t.target.querySelector(".item-content"):e.DomUtil.getParentWithClass(t.target,"item-content"))&&(n.classList.remove("item-sliding"),r=parseFloat(n.style[e.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])||0,(i=n.parentNode.querySelector(".item-options"))&&(i.classList.remove("invisible"),o=i.offsetWidth,this._currentDrag={buttons:i,buttonsWidth:o,content:n,startOffsetX:r}))},n.prototype.isSameItem=function(e){return!(!e._lastDrag||!this._currentDrag)&&this._currentDrag.content==e._lastDrag.content},n.prototype.clean=function(t){function n(){i.buttons&&i.buttons.classList.add("invisible")}var i=this._lastDrag;i&&i.content&&(i.content.style[e.CSS.TRANSITION]="",i.content.style[e.CSS.TRANSFORM]="",t?(i.content.style[e.CSS.TRANSITION]="none",n(),e.requestAnimationFrame(function(){i.content.style[e.CSS.TRANSITION]=""})):e.requestAnimationFrame(function(){setTimeout(n,250)}))},n.prototype.drag=e.animationFrameThrottle(function(t){var n;if(this._currentDrag&&(!this._isDragging&&(Math.abs(t.gesture.deltaX)>this.dragThresholdX||Math.abs(this._currentDrag.startOffsetX)>0)&&(this._isDragging=!0),this._isDragging)){n=this._currentDrag.buttonsWidth;var i=Math.min(0,this._currentDrag.startOffsetX+t.gesture.deltaX);i<-n&&(i=Math.min(-n,-n+.4*(t.gesture.deltaX+n))),this._currentDrag.content.$$ionicOptionsOpen=0!==i,this._currentDrag.content.style[e.CSS.TRANSFORM]="translate3d("+i+"px, 0, 0)",this._currentDrag.content.style[e.CSS.TRANSITION]="none"}}),n.prototype.end=function(t,n){var i=this;if(!i._currentDrag)return void(n&&n());var r=-i._currentDrag.buttonsWidth;t.gesture.deltaX>-(i._currentDrag.buttonsWidth/2)&&("left"==t.gesture.direction&&Math.abs(t.gesture.velocityX)<.3?r=0:"right"==t.gesture.direction&&(r=0)),e.requestAnimationFrame(function(){if(0===r){i._currentDrag.content.style[e.CSS.TRANSFORM]="";var t=i._currentDrag.buttons;setTimeout(function(){t&&t.classList.add("invisible")},250)}else i._currentDrag.content.style[e.CSS.TRANSFORM]="translate3d("+r+"px,0,0)";i._currentDrag.content.style[e.CSS.TRANSITION]="",i._lastDrag||(i._lastDrag={}),e.extend(i._lastDrag,i._currentDrag),i._currentDrag&&(i._currentDrag.buttons=null,i._currentDrag.content=null),i._currentDrag=null,n&&n()})};var i=function(e){var t=this;if(t.dragThresholdY=e.dragThresholdY||0,t.onReorder=e.onReorder,t.listEl=e.listEl,t.el=t.item=e.el,t.scrollEl=e.scrollEl,t.scrollView=e.scrollView,t.listElTrueTop=0,t.listEl.offsetParent){var n=t.listEl;do{t.listElTrueTop+=n.offsetTop,n=n.offsetParent}while(n)}};i.prototype=new t,i.prototype._moveElement=function(t){var n=t.gesture.center.pageY+this.scrollView.getValues().top-this._currentDrag.elementHeight/2-this.listElTrueTop;this.el.style[e.CSS.TRANSFORM]="translate3d(0, "+n+"px, 0)"},i.prototype.deregister=function(){this.listEl=this.el=this.scrollEl=this.scrollView=null},i.prototype.start=function(t){var n=e.DomUtil.getChildIndex(this.el,this.el.nodeName.toLowerCase()),i=this.el.scrollHeight,r=this.el.cloneNode(!0);r.classList.add("item-placeholder"),this.el.parentNode.insertBefore(r,this.el),this.el.classList.add("item-reordering"),this._currentDrag={elementHeight:i,startIndex:n,placeholder:r,scrollHeight:scroll,list:r.parentNode},this._moveElement(t)},i.prototype.drag=e.animationFrameThrottle(function(t){var n=this;if(this._currentDrag){var i=0,r=t.gesture.center.pageY,o=this.listElTrueTop;if(this.scrollView){var a=this.scrollView.__container;i=this.scrollView.getValues().top;var s=a.offsetTop,l=s-r+this._currentDrag.elementHeight/2,c=r+this._currentDrag.elementHeight/2-s-a.offsetHeight;t.gesture.deltaY<0&&l>0&&i>0&&(this.scrollView.scrollBy(null,-l),e.requestAnimationFrame(function(){n.drag(t)})),t.gesture.deltaY>0&&c>0&&i<this.scrollView.getScrollMax().top&&(this.scrollView.scrollBy(null,c),e.requestAnimationFrame(function(){n.drag(t)}))}!this._isDragging&&Math.abs(t.gesture.deltaY)>this.dragThresholdY&&(this._isDragging=!0),this._isDragging&&(this._moveElement(t),this._currentDrag.currentY=i+r-o)}}),i.prototype._getReorderIndex=function(){for(var e,t=this,n=Array.prototype.slice.call(t._currentDrag.placeholder.parentNode.children).filter(function(e){return e.nodeName===t.el.nodeName&&e!==t.el}),i=t._currentDrag.currentY,r=0,o=n.length;r<o;r++)if(e=n[r],r===o-1){if(i>e.offsetTop)return r}else if(0===r){if(i<e.offsetTop+e.offsetHeight)return r}else if(i>e.offsetTop-e.offsetHeight/2&&i<e.offsetTop+e.offsetHeight)return r;return t._currentDrag.startIndex},i.prototype.end=function(t,n){if(!this._currentDrag)return void(n&&n());var i=this._currentDrag.placeholder,r=this._getReorderIndex();this.el.classList.remove("item-reordering"),this.el.style[e.CSS.TRANSFORM]="",i.parentNode.insertBefore(this.el,i),i.parentNode.removeChild(i),this.onReorder&&this.onReorder(this.el,this._currentDrag.startIndex,r),this._currentDrag={placeholder:null,content:null},this._currentDrag=null,n&&n()},e.views.ListView=e.views.View.inherit({initialize:function(t){var n=this;t=e.extend({onReorder:function(){},virtualRemoveThreshold:-200,virtualAddThreshold:200,canSwipe:function(){return!0}},t),e.extend(n,t),!n.itemHeight&&n.listEl&&(n.itemHeight=n.listEl.children[0]&&parseInt(n.listEl.children[0].style.height,10)),n.onRefresh=t.onRefresh||function(){},n.onRefreshOpening=t.onRefreshOpening||function(){},n.onRefreshHolding=t.onRefreshHolding||function(){};var i={};e.DomUtil.getParentOrSelfWithClass(n.el,"overflow-scroll")&&(i.prevent_default_directions=["left","right"]),window.ionic.onGesture("release",function(e){n._handleEndDrag(e)},n.el,i),window.ionic.onGesture("drag",function(e){n._handleDrag(e)},n.el,i),n._initDrag()},deregister:function(){this.el=this.listEl=this.scrollEl=this.scrollView=null,this.isScrollFreeze&&self.scrollView.freeze(!1)},stopRefreshing:function(){this.el.querySelector(".list-refresher").style.height="0"},didScroll:function(e){var t=this;if(t.isVirtual){var n=t.itemHeight,i=e.target.scrollHeight,r=t.el.parentNode.offsetHeight,o=Math.max(0,e.scrollTop+t.virtualRemoveThreshold),a=Math.min(i,Math.abs(e.scrollTop)+r+t.virtualAddThreshold),s=parseInt(Math.abs(o/n),10),l=parseInt(Math.abs(a/n),10);t._virtualItemsToRemove=Array.prototype.slice.call(t.listEl.children,0,s),t.renderViewport&&t.renderViewport(o,a,s,l)}},didStopScrolling:function(){if(this.isVirtual)for(var e=0;e<this._virtualItemsToRemove.length;e++)this.didHideItem&&this.didHideItem(e)},clearDragEffects:function(e){this._lastDragOp&&(this._lastDragOp.clean&&this._lastDragOp.clean(e),this._lastDragOp.deregister&&this._lastDragOp.deregister(),this._lastDragOp=null)},_initDrag:function(){this._lastDragOp&&this._lastDragOp.deregister&&this._lastDragOp.deregister(),this._lastDragOp=this._dragOp,this._dragOp=null},_getItem:function(e){for(;e;){if(e.classList&&e.classList.contains("item"))return e;e=e.parentNode}return null},_startDrag:function(t){var r=this;r._isDragging=!1;var o,a=r._lastDragOp;r._didDragUpOrDown&&a instanceof n&&a.clean&&a.clean(),!e.DomUtil.getParentOrSelfWithClass(t.target,"item-reorder")||"up"!=t.gesture.direction&&"down"!=t.gesture.direction?!r._didDragUpOrDown&&("left"==t.gesture.direction||"right"==t.gesture.direction)&&Math.abs(t.gesture.deltaX)>5&&(o=r._getItem(t.target))&&o.querySelector(".item-options")&&(r._dragOp=new n({el:r.el,item:o,canSwipe:r.canSwipe}),r._dragOp.start(t),t.preventDefault(),r.isScrollFreeze=r.scrollView.freeze(!0)):(o=r._getItem(t.target))&&(r._dragOp=new i({listEl:r.el,el:o,scrollEl:r.scrollEl,scrollView:r.scrollView,onReorder:function(e,t,n){r.onReorder&&r.onReorder(e,t,n)}}),r._dragOp.start(t),t.preventDefault()),a&&r._dragOp&&!r._dragOp.isSameItem(a)&&t.defaultPrevented&&a.clean&&a.clean()},_handleEndDrag:function(e){var t=this;t.scrollView&&(t.isScrollFreeze=t.scrollView.freeze(!1)),t._didDragUpOrDown=!1,t._dragOp&&t._dragOp.end(e,function(){t._initDrag()})},_handleDrag:function(e){var t=this;Math.abs(e.gesture.deltaY)>5&&(t._didDragUpOrDown=!0),t.isDragging||t._dragOp||t._startDrag(e),t._dragOp&&(e.gesture.srcEvent.preventDefault(),t._dragOp.drag(e))}})}(ionic),function(e){"use strict";e.views.Modal=e.views.View.inherit({initialize:function(t){t=e.extend({focusFirstInput:!1,unfocusOnHide:!0,focusFirstDelay:600,backdropClickToClose:!0,hardwareBackButtonClose:!0},t),e.extend(this,t),this.el=t.el},show:function(){var e=this;e.focusFirstInput&&window.setTimeout(function(){var t=e.el.querySelector("input, textarea");t&&t.focus&&t.focus()},e.focusFirstDelay)},hide:function(){if(this.unfocusOnHide){var e=this.el.querySelectorAll("input, textarea");window.setTimeout(function(){for(var t=0;t<e.length;t++)e[t].blur&&e[t].blur()})}}})}(ionic),function(e){"use strict";e.views.SideMenu=e.views.View.inherit({initialize:function(e){this.el=e.el,this.isEnabled=void 0===e.isEnabled||e.isEnabled,this.setWidth(e.width)},getFullWidth:function(){return this.width},setWidth:function(e){this.width=e,this.el.style.width=e+"px"},setIsEnabled:function(e){this.isEnabled=e},bringUp:function(){"0"!==this.el.style.zIndex&&(this.el.style.zIndex="0")},pushDown:function(){"-1"!==this.el.style.zIndex&&(this.el.style.zIndex="-1")}}),e.views.SideMenuContent=e.views.View.inherit({initialize:function(t){e.extend(this,{animationClass:"menu-animated",onDrag:function(){},onEndDrag:function(){}},t),e.onGesture("drag",e.proxy(this._onDrag,this),this.el),e.onGesture("release",e.proxy(this._onEndDrag,this),this.el)},_onDrag:function(e){this.onDrag&&this.onDrag(e)},_onEndDrag:function(e){this.onEndDrag&&this.onEndDrag(e)},disableAnimation:function(){this.el.classList.remove(this.animationClass)},enableAnimation:function(){this.el.classList.add(this.animationClass)},getTranslateX:function(){return parseFloat(this.el.style[e.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])},setTranslateX:e.animationFrameThrottle(function(t){this.el.style[e.CSS.TRANSFORM]="translate3d("+t+"px, 0, 0)"})})}(ionic),function(e){"use strict";e.views.Slider=e.views.View.inherit({initialize:function(e){function t(){if($.offsetWidth){w=S.children,_=w.length,w.length<2&&(e.continuous=!1),g.transitions&&e.continuous&&w.length<3&&(S.appendChild(w[0].cloneNode(!0)),S.appendChild(S.children[1].cloneNode(!0)),w=S.children),y=new Array(w.length),b=$.offsetWidth||$.getBoundingClientRect().width,S.style.width=w.length*b+"px";for(var t=w.length;t--;){var n=w[t];n.style.width=b+"px",n.setAttribute("data-index",t),g.transitions&&(n.style.left=t*-b+"px",a(t,x>t?-b:x<t?b:0,0))}e.continuous&&g.transitions&&(a(r(x-1),-b,0),a(r(x+1),b,0)),g.transitions||(S.style.left=x*-b+"px"),$.style.visibility="visible",e.slidesChanged&&e.slidesChanged()}}function n(t){e.continuous?o(x-1,t):x&&o(x-1,t)}function i(t){e.continuous?o(x+1,t):x<w.length-1&&o(x+1,t)}function r(e){return(w.length+e%w.length)%w.length}function o(t,n){if(x!=t){if(!w)return void(x=t);if(g.transitions){var i=Math.abs(x-t)/(x-t);if(e.continuous){var o=i;i=-y[r(t)]/b,i!==o&&(t=-i*w.length+t)}for(var s=Math.abs(x-t)-1;s--;)a(r((t>x?t:x)-s-1),b*i,0);t=r(t),a(x,b*i,n||T),a(t,0,n||T),e.continuous&&a(r(t-i),-(b*i),0)}else t=r(t),l(x*-b,t*-b,n||T);x=t,v(e.callback&&e.callback(x,w[x]))}}function a(e,t,n){s(e,t,n),y[e]=t}function s(e,t,n){var i=w[e],r=i&&i.style;r&&(r.webkitTransitionDuration=r.MozTransitionDuration=r.msTransitionDuration=r.OTransitionDuration=r.transitionDuration=n+"ms",r.webkitTransform="translate("+t+"px,0)translateZ(0)",r.msTransform=r.MozTransform=r.OTransform="translateX("+t+"px)")}function l(t,n,i){if(!i)return void(S.style.left=n+"px");var r=+new Date,o=setInterval(function(){var a=+new Date-r;if(a>i)return S.style.left=n+"px",k&&c(),e.transitionEnd&&e.transitionEnd.call(event,x,w[x]),void clearInterval(o);S.style.left=(n-t)*(Math.floor(a/i*100)/100)+t+"px"},4)}function c(){E=setTimeout(i,k)}function u(){k=e.auto||0,clearTimeout(E)}var d,f,p,h=this;window.navigator.pointerEnabled?(d="pointerdown",f="pointermove",p="pointerup"):window.navigator.msPointerEnabled?(d="MSPointerDown",f="MSPointerMove",p="MSPointerUp"):(d="touchstart",f="touchmove",p="touchend");var m=function(){},v=function(e){setTimeout(e||m,0)},g={addEventListener:!!window.addEventListener,transitions:function(e){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var n in t)if(void 0!==e.style[t[n]])return!0;return!1}(document.createElement("swipe"))},$=e.el;if($){var w,y,b,_,S=$.children[0];e=e||{};var x=parseInt(e.startSlide,10)||0,T=e.speed||300;e.continuous=void 0===e.continuous||e.continuous;var E,C,k=e.auto||0,A={},I={},D={handleEvent:function(n){switch(!n.touches&&n.pageX&&n.pageY&&(n.touches=[{pageX:n.pageX,pageY:n.pageY}]),n.type){case d:this.start(n);break;case"mousedown":this.start(n);break;case f:this.touchmove(n);break;case"mousemove":this.touchmove(n);break;case p:v(this.end(n));break;case"mouseup":v(this.end(n));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":v(this.transitionEnd(n));break;case"resize":v(t)}e.stopPropagation&&n.stopPropagation()},start:function(e){if(e.touches){var t=e.touches[0];A={x:t.pageX,y:t.pageY,time:+new Date},C=void 0,I={},S.addEventListener(f,this,!1),S.addEventListener("mousemove",this,!1),S.addEventListener(p,this,!1),S.addEventListener("mouseup",this,!1),document.addEventListener(p,this,!1),document.addEventListener("mouseup",this,!1)}},touchmove:function(t){if(!(!t.touches||t.touches.length>1||t.scale&&1!==t.scale||h.slideIsDisabled)){e.disableScroll&&t.preventDefault();var n=t.touches[0];I={x:n.pageX-A.x,y:n.pageY-A.y},void 0===C&&(C=!!(C||Math.abs(I.x)<Math.abs(I.y))),C||(t.preventDefault(),u(),e.continuous?(s(r(x-1),I.x+y[r(x-1)],0),s(x,I.x+y[x],0),s(r(x+1),I.x+y[r(x+1)],0)):(e.bouncing?I.x=I.x/(!x&&I.x>0||x==w.length-1&&I.x<0?Math.abs(I.x)/b+1:1):(b*x-I.x<0&&(I.x=Math.min(I.x,b*x)),Math.abs(I.x)>b*(w.length-x-1)&&(I.x=Math.max(-b*(w.length-x-1),I.x))),s(x-1,I.x+y[x-1],0),s(x,I.x+y[x],0),s(x+1,I.x+y[x+1],0)),e.onDrag&&e.onDrag())}},end:function(){var t=+new Date-A.time,n=Number(t)<250&&Math.abs(I.x)>20||Math.abs(I.x)>b/2,i=!x&&I.x>0||x==w.length-1&&I.x<0;e.continuous&&(i=!1);var o=I.x<0;C||(n&&!i?(o?(e.continuous?(a(r(x-1),-b,0),a(r(x+2),b,0)):a(x-1,-b,0),a(x,y[x]-b,T),a(r(x+1),y[r(x+1)]-b,T),x=r(x+1)):(e.continuous?(a(r(x+1),b,0),a(r(x-2),-b,0)):a(x+1,b,0),a(x,y[x]+b,T),a(r(x-1),y[r(x-1)]+b,T),x=r(x-1)),e.callback&&e.callback(x,w[x])):e.continuous?(a(r(x-1),-b,T),a(x,0,T),a(r(x+1),b,T)):(a(x-1,-b,T),a(x,0,T),a(x+1,b,T))),S.removeEventListener(f,D,!1),S.removeEventListener("mousemove",D,!1),S.removeEventListener(p,D,!1),S.removeEventListener("mouseup",D,!1),document.removeEventListener(p,D,!1),document.removeEventListener("mouseup",D,!1),e.onDragEnd&&e.onDragEnd()},transitionEnd:function(t){parseInt(t.target.getAttribute("data-index"),10)==x&&(k&&c(),e.transitionEnd&&e.transitionEnd.call(t,x,w[x]))}};this.update=function(){setTimeout(t)},this.setup=function(){t()},this.loop=function(t){return arguments.length&&(e.continuous=!!t),e.continuous},this.enableSlide=function(e){return arguments.length&&(this.slideIsDisabled=!e),!this.slideIsDisabled},this.slide=this.select=function(e,t){u(),o(e,t)},this.prev=this.previous=function(){u(),n()},this.next=function(){u(),i()},this.stop=function(){u()},this.start=function(){c()},this.autoPlay=function(e){!k||k<0?u():(k=e,c())},this.currentIndex=this.selected=function(){return x},this.slidesCount=this.count=function(){return _},this.kill=function(){u(),S.style.width="",S.style.left="",w&&(w=[]),g.addEventListener?(S.removeEventListener(d,D,!1),S.removeEventListener("mousedown",D,!1),S.removeEventListener("webkitTransitionEnd",D,!1),S.removeEventListener("msTransitionEnd",D,!1),S.removeEventListener("oTransitionEnd",D,!1),S.removeEventListener("otransitionend",D,!1),S.removeEventListener("transitionend",D,!1),window.removeEventListener("resize",D,!1)):window.onresize=null},this.load=function(){t(),k&&c(),g.addEventListener?(S.addEventListener(d,D,!1),S.addEventListener("mousedown",D,!1),g.transitions&&(S.addEventListener("webkitTransitionEnd",D,!1),S.addEventListener("msTransitionEnd",D,!1),S.addEventListener("oTransitionEnd",D,!1),S.addEventListener("otransitionend",D,!1),S.addEventListener("transitionend",D,!1)),window.addEventListener("resize",D,!1)):window.onresize=function(){t()}}}}})}(ionic),function(){"use strict";var e,t=function(i,r,o,a){function s(){return"horizontal"===S.params.direction}function l(e){return Math.floor(e)}function c(){S.autoplayTimeoutId=setTimeout(function(){S.params.loop?(S.fixLoop(),S._slideNext()):S.isEnd?r.autoplayStopOnLast?S.stopAutoplay():S._slideTo(0):S._slideNext()},S.params.autoplay)}function u(t,n){var i=e(t.target);if(!i.is(n))if("string"==typeof n)i=i.parents(n);else if(n.nodeType){var r;return i.parents().each(function(e,t){t===n&&(r=n)}),r?n:void 0}if(0!==i.length)return i[0]}function d(e,t){t=t||{};var n=window.MutationObserver||window.WebkitMutationObserver,i=new n(function(e){e.forEach(function(e){S.onResize(!0),S.emit("onObserverUpdate",S,e)})});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),S.observers.push(i)}function f(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!S.params.allowSwipeToNext&&(s()&&39===t||!s()&&40===t))return!1;if(!S.params.allowSwipeToPrev&&(s()&&37===t||!s()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){var n=!1;if(S.container.parents(".swiper-slide").length>0&&0===S.container.parents(".swiper-slide-active").length)return;var i={left:window.pageXOffset,top:window.pageYOffset},r=window.innerWidth,o=window.innerHeight,a=S.container.offset();S.rtl&&(a.left=a.left-S.container[0].scrollLeft);for(var l=[[a.left,a.top],[a.left+S.width,a.top],[a.left,a.top+S.height],[a.left+S.width,a.top+S.height]],c=0;c<l.length;c++){var u=l[c];u[0]>=i.left&&u[0]<=i.left+r&&u[1]>=i.top&&u[1]<=i.top+o&&(n=!0)}if(!n)return}s()?(37!==t&&39!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!S.rtl||37===t&&S.rtl)&&S.slideNext(),(37===t&&!S.rtl||39===t&&S.rtl)&&S.slidePrev()):(38!==t&&40!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&S.slideNext(),38===t&&S.slidePrev())}}function p(e){e.originalEvent&&(e=e.originalEvent);var t=S.mousewheel.event,n=0,i=S.rtl?-1:1;if(e.detail)n=-e.detail;else if("mousewheel"===t)if(S.params.mousewheelForceToAxis)if(s()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;n=e.wheelDeltaX*i}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;n=e.wheelDeltaY}else n=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*i:-e.wheelDeltaY;else if("DOMMouseScroll"===t)n=-e.detail;else if("wheel"===t)if(S.params.mousewheelForceToAxis)if(s()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;n=-e.deltaX*i}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;n=-e.deltaY}else n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*i:-e.deltaY;if(0!==n){if(S.params.mousewheelInvert&&(n=-n),S.params.freeMode){var r=S.getWrapperTranslate()+n*S.params.mousewheelSensitivity,o=S.isBeginning,a=S.isEnd;if(r>=S.minTranslate()&&(r=S.minTranslate()),r<=S.maxTranslate()&&(r=S.maxTranslate()),S.setWrapperTransition(0),S.setWrapperTranslate(r),S.updateProgress(),S.updateActiveIndex(),(!o&&S.isBeginning||!a&&S.isEnd)&&S.updateClasses(),S.params.freeModeSticky&&(clearTimeout(S.mousewheel.timeout),S.mousewheel.timeout=setTimeout(function(){S.slideReset()},300)),0===r||r===S.maxTranslate())return}else{if((new window.Date).getTime()-S.mousewheel.lastScrollTime>60)if(n<0)if(S.isEnd&&!S.params.loop||S.animating){if(S.params.mousewheelReleaseOnEdges)return!0}else S.slideNext();else if(S.isBeginning&&!S.params.loop||S.animating){if(S.params.mousewheelReleaseOnEdges)return!0}else S.slidePrev();S.mousewheel.lastScrollTime=(new window.Date).getTime()}return S.params.autoplay&&S.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function h(t,n){t=e(t);var i,r,o,a=S.rtl?-1:1;i=t.attr("data-swiper-parallax")||"0",r=t.attr("data-swiper-parallax-x"),o=t.attr("data-swiper-parallax-y"),r||o?(r=r||"0",o=o||"0"):s()?(r=i,o="0"):(o=i,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*n*a+"%":r*n*a+"px", o=o.indexOf("%")>=0?parseInt(o,10)*n+"%":o*n+"px",t.transform("translate3d("+r+", "+o+",0px)")}function m(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(i,r);var v={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},g=r&&r.virtualTranslate;r=r||{};var $={};for(var w in r)if("object"!=typeof r[w]||(r[w].nodeType||r[w]===window||r[w]===document||void 0!==n&&r[w]instanceof n||"undefined"!=typeof jQuery&&r[w]instanceof jQuery))$[w]=r[w];else{$[w]={};for(var y in r[w])$[w][y]=r[w][y]}for(var b in v)if(void 0===r[b])r[b]=v[b];else if("object"==typeof r[b])for(var _ in v[b])void 0===r[b][_]&&(r[b][_]=v[b][_]);var S=this;if(S.params=r,S.originalParams=$,S.classNames=[],void 0!==e&&void 0!==n&&(e=n),(void 0!==e||(e=void 0===n?window.Dom7||window.Zepto||window.jQuery:n))&&(S.$=e,S.currentBreakpoint=void 0,S.getActiveBreakpoint=function(){if(!S.params.breakpoints)return!1;var e,t=!1,n=[];for(e in S.params.breakpoints)S.params.breakpoints.hasOwnProperty(e)&&n.push(e);n.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var i=0;i<n.length;i++)(e=n[i])>=window.innerWidth&&!t&&(t=e);return t||"max"},S.setBreakpoint=function(){var e=S.getActiveBreakpoint();if(e&&S.currentBreakpoint!==e){var t=e in S.params.breakpoints?S.params.breakpoints[e]:S.originalParams;for(var n in t)S.params[n]=t[n];S.currentBreakpoint=e}},S.params.breakpoints&&S.setBreakpoint(),S.container=e(i),0!==S.container.length)){if(S.container.length>1)return void S.container.each(function(){new t(this,r)});S.container[0].swiper=S,S.container.data("swiper",S),S.classNames.push("swiper-container-"+S.params.direction),S.params.freeMode&&S.classNames.push("swiper-container-free-mode"),S.support.flexbox||(S.classNames.push("swiper-container-no-flexbox"),S.params.slidesPerColumn=1),S.params.autoHeight&&S.classNames.push("swiper-container-autoheight"),(S.params.parallax||S.params.watchSlidesVisibility)&&(S.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(S.params.effect)>=0&&(S.support.transforms3d?(S.params.watchSlidesProgress=!0,S.classNames.push("swiper-container-3d")):S.params.effect="slide"),"slide"!==S.params.effect&&S.classNames.push("swiper-container-"+S.params.effect),"cube"===S.params.effect&&(S.params.resistanceRatio=0,S.params.slidesPerView=1,S.params.slidesPerColumn=1,S.params.slidesPerGroup=1,S.params.centeredSlides=!1,S.params.spaceBetween=0,S.params.virtualTranslate=!0,S.params.setWrapperSize=!1),"fade"===S.params.effect&&(S.params.slidesPerView=1,S.params.slidesPerColumn=1,S.params.slidesPerGroup=1,S.params.watchSlidesProgress=!0,S.params.spaceBetween=0,void 0===g&&(S.params.virtualTranslate=!0)),S.params.grabCursor&&S.support.touch&&(S.params.grabCursor=!1),S.wrapper=S.container.children("."+S.params.wrapperClass),S.params.pagination&&(S.paginationContainer=e(S.params.pagination),S.params.paginationClickable&&S.paginationContainer.addClass("swiper-pagination-clickable")),S.rtl=s()&&("rtl"===S.container[0].dir.toLowerCase()||"rtl"===S.container.css("direction")),S.rtl&&S.classNames.push("swiper-container-rtl"),S.rtl&&(S.wrongRTL="-webkit-box"===S.wrapper.css("display")),S.params.slidesPerColumn>1&&S.classNames.push("swiper-container-multirow"),S.device.android&&S.classNames.push("swiper-container-android"),S.container.addClass(S.classNames.join(" ")),S.translate=0,S.progress=0,S.velocity=0,S.lockSwipeToNext=function(){S.params.allowSwipeToNext=!1},S.lockSwipeToPrev=function(){S.params.allowSwipeToPrev=!1},S.lockSwipes=function(){S.params.allowSwipeToNext=S.params.allowSwipeToPrev=!1},S.unlockSwipeToNext=function(){S.params.allowSwipeToNext=!0},S.unlockSwipeToPrev=function(){S.params.allowSwipeToPrev=!0},S.unlockSwipes=function(){S.params.allowSwipeToNext=S.params.allowSwipeToPrev=!0},S.params.grabCursor&&(S.container[0].style.cursor="move",S.container[0].style.cursor="-webkit-grab",S.container[0].style.cursor="-moz-grab",S.container[0].style.cursor="grab"),S.imagesToLoad=[],S.imagesLoaded=0,S.loadImage=function(e,t,n,i,r){function o(){r&&r()}var a;e.complete&&i?o():t?(a=new window.Image,a.onload=o,a.onerror=o,n&&(a.srcset=n),t&&(a.src=t)):o()},S.preloadImages=function(){function e(){void 0!==S&&null!==S&&(void 0!==S.imagesLoaded&&S.imagesLoaded++,S.imagesLoaded===S.imagesToLoad.length&&(S.params.updateOnImagesReady&&S.update(),S.emit("onImagesReady",S)))}S.imagesToLoad=S.container.find("img");for(var t=0;t<S.imagesToLoad.length;t++)S.loadImage(S.imagesToLoad[t],S.imagesToLoad[t].currentSrc||S.imagesToLoad[t].getAttribute("src"),S.imagesToLoad[t].srcset||S.imagesToLoad[t].getAttribute("srcset"),!0,e)},S.autoplayTimeoutId=void 0,S.autoplaying=!1,S.autoplayPaused=!1,S.startAutoplay=function(){return void 0===S.autoplayTimeoutId&&(!!S.params.autoplay&&(!S.autoplaying&&(S.autoplaying=!0,S.emit("onAutoplayStart",S),void c())))},S.stopAutoplay=function(e){S.autoplayTimeoutId&&(S.autoplayTimeoutId&&clearTimeout(S.autoplayTimeoutId),S.autoplaying=!1,S.autoplayTimeoutId=void 0,S.emit("onAutoplayStop",S))},S.pauseAutoplay=function(e){S.autoplayPaused||(S.autoplayTimeoutId&&clearTimeout(S.autoplayTimeoutId),S.autoplayPaused=!0,0===e?(S.autoplayPaused=!1,c()):S.wrapper.transitionEnd(function(){S&&(S.autoplayPaused=!1,S.autoplaying?c():S.stopAutoplay())}))},S.minTranslate=function(){return-S.snapGrid[0]},S.maxTranslate=function(){return-S.snapGrid[S.snapGrid.length-1]},S.updateAutoHeight=function(){S.slides.eq(S.activeIndex)[0].offsetHeight&&S.wrapper.css("height",S.slides.eq(S.activeIndex)[0].offsetHeight+"px")},S.updateContainerSize=function(){var e,t;e=void 0!==S.params.width?S.params.width:S.container[0].clientWidth,t=void 0!==S.params.height?S.params.height:S.container[0].clientHeight,0===e&&s()||0===t&&!s()||(e=e-parseInt(S.container.css("padding-left"),10)-parseInt(S.container.css("padding-right"),10),t=t-parseInt(S.container.css("padding-top"),10)-parseInt(S.container.css("padding-bottom"),10),S.width=e,S.height=t,S.size=s()?S.width:S.height)},S.updateSlidesSize=function(){S.slides=S.wrapper.children("."+S.params.slideClass),S.snapGrid=[],S.slidesGrid=[],S.slidesSizesGrid=[];var e,t=S.params.spaceBetween,n=-S.params.slidesOffsetBefore,i=0,r=0;"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*S.size),S.virtualSize=-t,S.rtl?S.slides.css({marginLeft:"",marginTop:""}):S.slides.css({marginRight:"",marginBottom:""});var o;S.params.slidesPerColumn>1&&(o=Math.floor(S.slides.length/S.params.slidesPerColumn)===S.slides.length/S.params.slidesPerColumn?S.slides.length:Math.ceil(S.slides.length/S.params.slidesPerColumn)*S.params.slidesPerColumn,"auto"!==S.params.slidesPerView&&"row"===S.params.slidesPerColumnFill&&(o=Math.max(o,S.params.slidesPerView*S.params.slidesPerColumn)));var a,c=S.params.slidesPerColumn,u=o/c,d=u-(S.params.slidesPerColumn*u-S.slides.length);for(e=0;e<S.slides.length;e++){a=0;var f=S.slides.eq(e);if(S.params.slidesPerColumn>1){var p,h,m;"column"===S.params.slidesPerColumnFill?(h=Math.floor(e/c),m=e-h*c,(h>d||h===d&&m===c-1)&&++m>=c&&(m=0,h++),p=h+m*o/c,f.css({"-webkit-box-ordinal-group":p,"-moz-box-ordinal-group":p,"-ms-flex-order":p,"-webkit-order":p,order:p})):(m=Math.floor(e/u),h=e-m*u),f.css({"margin-top":0!==m&&S.params.spaceBetween&&S.params.spaceBetween+"px"}).attr("data-swiper-column",h).attr("data-swiper-row",m)}"none"!==f.css("display")&&("auto"===S.params.slidesPerView?(a=s()?f.outerWidth(!0):f.outerHeight(!0),S.params.roundLengths&&(a=l(a))):(a=(S.size-(S.params.slidesPerView-1)*t)/S.params.slidesPerView,S.params.roundLengths&&(a=l(a)),s()?S.slides[e].style.width=a+"px":S.slides[e].style.height=a+"px"),S.slides[e].swiperSlideSize=a,S.slidesSizesGrid.push(a),S.params.centeredSlides?(n=n+a/2+i/2+t,0===e&&(n=n-S.size/2-t),Math.abs(n)<.001&&(n=0),r%S.params.slidesPerGroup==0&&S.snapGrid.push(n),S.slidesGrid.push(n)):(r%S.params.slidesPerGroup==0&&S.snapGrid.push(n),S.slidesGrid.push(n),n=n+a+t),S.virtualSize+=a+t,i=a,r++)}S.virtualSize=Math.max(S.virtualSize,S.size)+S.params.slidesOffsetAfter;var v;if(S.rtl&&S.wrongRTL&&("slide"===S.params.effect||"coverflow"===S.params.effect)&&S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}),S.support.flexbox&&!S.params.setWrapperSize||(s()?S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}):S.wrapper.css({height:S.virtualSize+S.params.spaceBetween+"px"})),S.params.slidesPerColumn>1&&(S.virtualSize=(a+S.params.spaceBetween)*o,S.virtualSize=Math.ceil(S.virtualSize/S.params.slidesPerColumn)-S.params.spaceBetween,S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}),S.params.centeredSlides)){for(v=[],e=0;e<S.snapGrid.length;e++)S.snapGrid[e]<S.virtualSize+S.snapGrid[0]&&v.push(S.snapGrid[e]);S.snapGrid=v}if(!S.params.centeredSlides){for(v=[],e=0;e<S.snapGrid.length;e++)S.snapGrid[e]<=S.virtualSize-S.size&&v.push(S.snapGrid[e]);S.snapGrid=v,Math.floor(S.virtualSize-S.size)>Math.floor(S.snapGrid[S.snapGrid.length-1])&&S.snapGrid.push(S.virtualSize-S.size)}0===S.snapGrid.length&&(S.snapGrid=[0]),0!==S.params.spaceBetween&&(s()?S.rtl?S.slides.css({marginLeft:t+"px"}):S.slides.css({marginRight:t+"px"}):S.slides.css({marginBottom:t+"px"})),S.params.watchSlidesProgress&&S.updateSlidesOffset()},S.updateSlidesOffset=function(){for(var e=0;e<S.slides.length;e++)S.slides[e].swiperSlideOffset=s()?S.slides[e].offsetLeft:S.slides[e].offsetTop},S.updateSlidesProgress=function(e){if(void 0===e&&(e=S.translate||0),0!==S.slides.length){void 0===S.slides[0].swiperSlideOffset&&S.updateSlidesOffset();var t=-e;S.rtl&&(t=e),S.slides.removeClass(S.params.slideVisibleClass);for(var n=0;n<S.slides.length;n++){var i=S.slides[n],r=(t-i.swiperSlideOffset)/(i.swiperSlideSize+S.params.spaceBetween);if(S.params.watchSlidesVisibility){var o=-(t-i.swiperSlideOffset),a=o+S.slidesSizesGrid[n];(o>=0&&o<S.size||a>0&&a<=S.size||o<=0&&a>=S.size)&&S.slides.eq(n).addClass(S.params.slideVisibleClass)}i.progress=S.rtl?-r:r}}},S.updateProgress=function(e){void 0===e&&(e=S.translate||0);var t=S.maxTranslate()-S.minTranslate(),n=S.isBeginning,i=S.isEnd;0===t?(S.progress=0,S.isBeginning=S.isEnd=!0):(S.progress=(e-S.minTranslate())/t,S.isBeginning=S.progress<=0,S.isEnd=S.progress>=1),S.isBeginning&&!n&&S.emit("onReachBeginning",S),S.isEnd&&!i&&S.emit("onReachEnd",S),S.params.watchSlidesProgress&&S.updateSlidesProgress(e),S.emit("onProgress",S,S.progress)},S.updateActiveIndex=function(){var e,t,n,i=S.rtl?S.translate:-S.translate;for(t=0;t<S.slidesGrid.length;t++)void 0!==S.slidesGrid[t+1]?i>=S.slidesGrid[t]&&i<S.slidesGrid[t+1]-(S.slidesGrid[t+1]-S.slidesGrid[t])/2?e=t:i>=S.slidesGrid[t]&&i<S.slidesGrid[t+1]&&(e=t+1):i>=S.slidesGrid[t]&&(e=t);(e<0||void 0===e)&&(e=0),n=Math.floor(e/S.params.slidesPerGroup),n>=S.snapGrid.length&&(n=S.snapGrid.length-1),e!==S.activeIndex&&(S.snapIndex=n,S.previousIndex=S.activeIndex,S.activeIndex=e,S.updateClasses())},S.updateClasses=function(){S.slides.removeClass(S.params.slideActiveClass+" "+S.params.slideNextClass+" "+S.params.slidePrevClass);var t=S.slides.eq(S.activeIndex);if(t.addClass(S.params.slideActiveClass),t.next("."+S.params.slideClass).addClass(S.params.slideNextClass),t.prev("."+S.params.slideClass).addClass(S.params.slidePrevClass),S.bullets&&S.bullets.length>0){S.bullets.removeClass(S.params.bulletActiveClass);var n;S.params.loop?(n=Math.ceil(S.activeIndex-S.loopedSlides)/S.params.slidesPerGroup,n>S.slides.length-1-2*S.loopedSlides&&(n-=S.slides.length-2*S.loopedSlides),n>S.bullets.length-1&&(n-=S.bullets.length)):n=void 0!==S.snapIndex?S.snapIndex:S.activeIndex||0,S.paginationContainer.length>1?S.bullets.each(function(){e(this).index()===n&&e(this).addClass(S.params.bulletActiveClass)}):S.bullets.eq(n).addClass(S.params.bulletActiveClass)}S.params.loop||(S.params.prevButton&&(S.isBeginning?(e(S.params.prevButton).addClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.disable(e(S.params.prevButton))):(e(S.params.prevButton).removeClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.enable(e(S.params.prevButton)))),S.params.nextButton&&(S.isEnd?(e(S.params.nextButton).addClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.disable(e(S.params.nextButton))):(e(S.params.nextButton).removeClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.enable(e(S.params.nextButton)))))},S.updatePagination=function(){if(S.params.pagination&&S.paginationContainer&&S.paginationContainer.length>0){for(var e="",t=S.params.loop?Math.ceil((S.slides.length-2*S.loopedSlides)/S.params.slidesPerGroup):S.snapGrid.length,n=0;n<t;n++)e+=S.params.paginationBulletRender?S.params.paginationBulletRender(n,S.params.bulletClass):"<"+S.params.paginationElement+' class="'+S.params.bulletClass+'"></'+S.params.paginationElement+">";S.paginationContainer.html(e),S.bullets=S.paginationContainer.find("."+S.params.bulletClass),S.params.paginationClickable&&S.params.a11y&&S.a11y&&S.a11y.initPagination()}},S.update=function(e){function t(){n=Math.min(Math.max(S.translate,S.maxTranslate()),S.minTranslate()),S.setWrapperTranslate(n),S.updateActiveIndex(),S.updateClasses()}if(S.updateContainerSize(),S.updateSlidesSize(),S.updateProgress(),S.updatePagination(),S.updateClasses(),S.params.scrollbar&&S.scrollbar&&S.scrollbar.set(),e){var n;S.controller&&S.controller.spline&&(S.controller.spline=void 0),S.params.freeMode?(t(),S.params.autoHeight&&S.updateAutoHeight()):(("auto"===S.params.slidesPerView||S.params.slidesPerView>1)&&S.isEnd&&!S.params.centeredSlides?S.slideTo(S.slides.length-1,0,!1,!0):S.slideTo(S.activeIndex,0,!1,!0))||t()}else S.params.autoHeight&&S.updateAutoHeight()},S.onResize=function(e){S.params.breakpoints&&S.setBreakpoint();var t=S.params.allowSwipeToPrev,n=S.params.allowSwipeToNext;if(S.params.allowSwipeToPrev=S.params.allowSwipeToNext=!0,S.updateContainerSize(),S.updateSlidesSize(),("auto"===S.params.slidesPerView||S.params.freeMode||e)&&S.updatePagination(),S.params.scrollbar&&S.scrollbar&&S.scrollbar.set(),S.controller&&S.controller.spline&&(S.controller.spline=void 0),S.params.freeMode){var i=Math.min(Math.max(S.translate,S.maxTranslate()),S.minTranslate());S.setWrapperTranslate(i),S.updateActiveIndex(),S.updateClasses(),S.params.autoHeight&&S.updateAutoHeight()}else S.updateClasses(),("auto"===S.params.slidesPerView||S.params.slidesPerView>1)&&S.isEnd&&!S.params.centeredSlides?S.slideTo(S.slides.length-1,0,!1,!0):S.slideTo(S.activeIndex,0,!1,!0);S.params.allowSwipeToPrev=t,S.params.allowSwipeToNext=n};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(x=["MSPointerDown","MSPointerMove","MSPointerUp"]),S.touchEvents={start:S.support.touch||!S.params.simulateTouch?"touchstart":x[0],move:S.support.touch||!S.params.simulateTouch?"touchmove":x[1],end:S.support.touch||!S.params.simulateTouch?"touchend":x[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===S.params.touchEventsTarget?S.container:S.wrapper).addClass("swiper-wp8-"+S.params.direction),S.initEvents=function(t){var n=t?"off":"on",i=t?"removeEventListener":"addEventListener",o="container"===S.params.touchEventsTarget?S.container[0]:S.wrapper[0],a=S.support.touch?o:document,s=!!S.params.nested;S.browser.ie?(o[i](S.touchEvents.start,S.onTouchStart,!1),a[i](S.touchEvents.move,S.onTouchMove,s),a[i](S.touchEvents.end,S.onTouchEnd,!1)):(S.support.touch&&(o[i](S.touchEvents.start,S.onTouchStart,!1),o[i](S.touchEvents.move,S.onTouchMove,s),o[i](S.touchEvents.end,S.onTouchEnd,!1)),!r.simulateTouch||S.device.ios||S.device.android||(o[i]("mousedown",S.onTouchStart,!1),document[i]("mousemove",S.onTouchMove,s),document[i]("mouseup",S.onTouchEnd,!1))),window[i]("resize",S.onResize),S.params.nextButton&&(e(S.params.nextButton)[n]("click",S.onClickNext),S.params.a11y&&S.a11y&&e(S.params.nextButton)[n]("keydown",S.a11y.onEnterKey)),S.params.prevButton&&(e(S.params.prevButton)[n]("click",S.onClickPrev),S.params.a11y&&S.a11y&&e(S.params.prevButton)[n]("keydown",S.a11y.onEnterKey)),S.params.pagination&&S.params.paginationClickable&&(e(S.paginationContainer)[n]("click","."+S.params.bulletClass,S.onClickIndex),S.params.a11y&&S.a11y&&e(S.paginationContainer)[n]("keydown","."+S.params.bulletClass,S.a11y.onEnterKey)),(S.params.preventClicks||S.params.preventClicksPropagation)&&o[i]("click",S.preventClicks,!0)},S.attachEvents=function(e){S.initEvents()},S.detachEvents=function(){S.initEvents(!0)},S.allowClick=!0,S.preventClicks=function(e){S.allowClick||(S.params.preventClicks&&e.preventDefault(),S.params.preventClicksPropagation&&S.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},S.onClickNext=function(e){e.preventDefault(),S.isEnd&&!S.params.loop||S.slideNext()},S.onClickPrev=function(e){e.preventDefault(),S.isBeginning&&!S.params.loop||S.slidePrev()},S.onClickIndex=function(t){t.preventDefault();var n=e(this).index()*S.params.slidesPerGroup;S.params.loop&&(n+=S.loopedSlides),S.slideTo(n)},S.updateClickedSlide=function(t){var n=u(t,"."+S.params.slideClass),i=!1;if(n)for(var r=0;r<S.slides.length;r++)S.slides[r]===n&&(i=!0);if(!n||!i)return S.clickedSlide=void 0,void(S.clickedIndex=void 0);if(S.clickedSlide=n,S.clickedIndex=e(n).index(),S.params.slideToClickedSlide&&void 0!==S.clickedIndex&&S.clickedIndex!==S.activeIndex){var o,a=S.clickedIndex;if(S.params.loop){if(S.animating)return;o=e(S.clickedSlide).attr("data-swiper-slide-index"),S.params.centeredSlides?a<S.loopedSlides-S.params.slidesPerView/2||a>S.slides.length-S.loopedSlides+S.params.slidesPerView/2?(S.fixLoop(),a=S.wrapper.children("."+S.params.slideClass+'[data-swiper-slide-index="'+o+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){S.slideTo(a)},0)):S.slideTo(a):a>S.slides.length-S.params.slidesPerView?(S.fixLoop(),a=S.wrapper.children("."+S.params.slideClass+'[data-swiper-slide-index="'+o+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){S.slideTo(a)},0)):S.slideTo(a)}else S.slideTo(a)}};var T,E,C,k,A,I,D,M,P,L,O="input, select, textarea, button",N=Date.now(),V=[];S.animating=!1,S.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var B,R;if(S.onTouchStart=function(t){if(t.originalEvent&&(t=t.originalEvent),(B="touchstart"===t.type)||!("which"in t)||3!==t.which){if(S.params.noSwiping&&u(t,"."+S.params.noSwipingClass))return void(S.allowClick=!0);if(!S.params.swipeHandler||u(t,S.params.swipeHandler)){var n=S.touches.currentX="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i=S.touches.currentY="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY;if(!(S.device.ios&&S.params.iOSEdgeSwipeDetection&&n<=S.params.iOSEdgeSwipeThreshold)){if(T=!0,E=!1,C=!0,A=void 0,R=void 0,S.touches.startX=n,S.touches.startY=i,k=Date.now(),S.allowClick=!0,S.updateContainerSize(),S.swipeDirection=void 0,S.params.threshold>0&&(M=!1),"touchstart"!==t.type){var r=!0;e(t.target).is(O)&&(r=!1),document.activeElement&&e(document.activeElement).is(O)&&document.activeElement.blur(),r&&t.preventDefault()}S.emit("onTouchStart",S,t)}}}},S.onTouchMove=function(t){if(t.originalEvent&&(t=t.originalEvent),!(B&&"mousemove"===t.type||t.preventedByNestedSwiper)){if(S.params.onlyExternal)return S.allowClick=!1,void(T&&(S.touches.startX=S.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,S.touches.startY=S.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,k=Date.now()));if(B&&document.activeElement&&t.target===document.activeElement&&e(t.target).is(O))return E=!0,void(S.allowClick=!1);if(C&&S.emit("onTouchMove",S,t),!(t.targetTouches&&t.targetTouches.length>1)){if(S.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,S.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,void 0===A){var n=180*Math.atan2(Math.abs(S.touches.currentY-S.touches.startY),Math.abs(S.touches.currentX-S.touches.startX))/Math.PI;A=s()?n>S.params.touchAngle:90-n>S.params.touchAngle}if(A&&S.emit("onTouchMoveOpposite",S,t),void 0===R&&S.browser.ieTouch&&(S.touches.currentX===S.touches.startX&&S.touches.currentY===S.touches.startY||(R=!0)),T){if(A)return void(T=!1);if(R||!S.browser.ieTouch){S.allowClick=!1,S.emit("onSliderMove",S,t),t.preventDefault(),S.params.touchMoveStopPropagation&&!S.params.nested&&t.stopPropagation(),E||(r.loop&&S.fixLoop(),D=S.getWrapperTranslate(),S.setWrapperTransition(0),S.animating&&S.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),S.params.autoplay&&S.autoplaying&&(S.params.autoplayDisableOnInteraction?S.stopAutoplay():S.pauseAutoplay()),L=!1,S.params.grabCursor&&(S.container[0].style.cursor="move",S.container[0].style.cursor="-webkit-grabbing",S.container[0].style.cursor="-moz-grabbin",S.container[0].style.cursor="grabbing")),E=!0;var i=S.touches.diff=s()?S.touches.currentX-S.touches.startX:S.touches.currentY-S.touches.startY;i*=S.params.touchRatio,S.rtl&&(i=-i),S.swipeDirection=i>0?"prev":"next",I=i+D;var o=!0;if(i>0&&I>S.minTranslate()?(o=!1,S.params.resistance&&(I=S.minTranslate()-1+Math.pow(-S.minTranslate()+D+i,S.params.resistanceRatio))):i<0&&I<S.maxTranslate()&&(o=!1,S.params.resistance&&(I=S.maxTranslate()+1-Math.pow(S.maxTranslate()-D-i,S.params.resistanceRatio))),o&&(t.preventedByNestedSwiper=!0),!S.params.allowSwipeToNext&&"next"===S.swipeDirection&&I<D&&(I=D),!S.params.allowSwipeToPrev&&"prev"===S.swipeDirection&&I>D&&(I=D),S.params.followFinger){if(S.params.threshold>0){if(!(Math.abs(i)>S.params.threshold||M))return void(I=D);if(!M)return M=!0,S.touches.startX=S.touches.currentX,S.touches.startY=S.touches.currentY,I=D,void(S.touches.diff=s()?S.touches.currentX-S.touches.startX:S.touches.currentY-S.touches.startY)}(S.params.freeMode||S.params.watchSlidesProgress)&&S.updateActiveIndex(),S.params.freeMode&&(0===V.length&&V.push({position:S.touches[s()?"startX":"startY"],time:k}),V.push({position:S.touches[s()?"currentX":"currentY"],time:(new window.Date).getTime()})),S.updateProgress(I),S.setWrapperTranslate(I)}}}}}},S.onTouchEnd=function(t){if(t.originalEvent&&(t=t.originalEvent),C&&S.emit("onTouchEnd",S,t),C=!1,T){S.params.grabCursor&&E&&T&&(S.container[0].style.cursor="move",S.container[0].style.cursor="-webkit-grab",S.container[0].style.cursor="-moz-grab",S.container[0].style.cursor="grab");var n=Date.now(),i=n-k;if(S.allowClick&&(S.updateClickedSlide(t),S.emit("onTap",S,t),i<300&&n-N>300&&(P&&clearTimeout(P),P=setTimeout(function(){S&&(S.params.paginationHide&&S.paginationContainer.length>0&&!e(t.target).hasClass(S.params.bulletClass)&&S.paginationContainer.toggleClass(S.params.paginationHiddenClass),S.emit("onClick",S,t))},300)),i<300&&n-N<300&&(P&&clearTimeout(P),S.emit("onDoubleTap",S,t))),N=Date.now(),setTimeout(function(){S&&(S.allowClick=!0)},0),!T||!E||!S.swipeDirection||0===S.touches.diff||I===D)return void(T=E=!1);T=E=!1;var r;if(r=S.params.followFinger?S.rtl?S.translate:-S.translate:-I,S.params.freeMode){if(r<-S.minTranslate())return void S.slideTo(S.activeIndex);if(r>-S.maxTranslate())return void(S.slides.length<S.snapGrid.length?S.slideTo(S.snapGrid.length-1):S.slideTo(S.slides.length-1));if(S.params.freeModeMomentum){if(V.length>1){var o=V.pop(),a=V.pop(),s=o.position-a.position,l=o.time-a.time;S.velocity=s/l,S.velocity=S.velocity/2,Math.abs(S.velocity)<S.params.freeModeMinimumVelocity&&(S.velocity=0),(l>150||(new window.Date).getTime()-o.time>300)&&(S.velocity=0)}else S.velocity=0;V.length=0;var c=1e3*S.params.freeModeMomentumRatio,u=S.velocity*c,d=S.translate+u;S.rtl&&(d=-d);var f,p=!1,h=20*Math.abs(S.velocity)*S.params.freeModeMomentumBounceRatio;if(d<S.maxTranslate())S.params.freeModeMomentumBounce?(d+S.maxTranslate()<-h&&(d=S.maxTranslate()-h),f=S.maxTranslate(),p=!0,L=!0):d=S.maxTranslate();else if(d>S.minTranslate())S.params.freeModeMomentumBounce?(d-S.minTranslate()>h&&(d=S.minTranslate()+h),f=S.minTranslate(),p=!0,L=!0):d=S.minTranslate();else if(S.params.freeModeSticky){var m,v=0;for(v=0;v<S.snapGrid.length;v+=1)if(S.snapGrid[v]>-d){m=v;break}d=Math.abs(S.snapGrid[m]-d)<Math.abs(S.snapGrid[m-1]-d)||"next"===S.swipeDirection?S.snapGrid[m]:S.snapGrid[m-1],S.rtl||(d=-d)}if(0!==S.velocity)c=S.rtl?Math.abs((-d-S.translate)/S.velocity):Math.abs((d-S.translate)/S.velocity);else if(S.params.freeModeSticky)return void S.slideReset();S.params.freeModeMomentumBounce&&p?(S.updateProgress(f),S.setWrapperTransition(c),S.setWrapperTranslate(d),S.onTransitionStart(),S.animating=!0,S.wrapper.transitionEnd(function(){S&&L&&(S.emit("onMomentumBounce",S),S.setWrapperTransition(S.params.speed),S.setWrapperTranslate(f),S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd()}))})):S.velocity?(S.updateProgress(d),S.setWrapperTransition(c),S.setWrapperTranslate(d),S.onTransitionStart(),S.animating||(S.animating=!0,S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd()}))):S.updateProgress(d),S.updateActiveIndex()}return void((!S.params.freeModeMomentum||i>=S.params.longSwipesMs)&&(S.updateProgress(),S.updateActiveIndex()))}var g,$=0,w=S.slidesSizesGrid[0];for(g=0;g<S.slidesGrid.length;g+=S.params.slidesPerGroup)void 0!==S.slidesGrid[g+S.params.slidesPerGroup]?r>=S.slidesGrid[g]&&r<S.slidesGrid[g+S.params.slidesPerGroup]&&($=g,w=S.slidesGrid[g+S.params.slidesPerGroup]-S.slidesGrid[g]):r>=S.slidesGrid[g]&&($=g,w=S.slidesGrid[S.slidesGrid.length-1]-S.slidesGrid[S.slidesGrid.length-2]);var y=(r-S.slidesGrid[$])/w;if(i>S.params.longSwipesMs){if(!S.params.longSwipes)return void S.slideTo(S.activeIndex);"next"===S.swipeDirection&&(y>=S.params.longSwipesRatio?S.slideTo($+S.params.slidesPerGroup):S.slideTo($)),"prev"===S.swipeDirection&&(y>1-S.params.longSwipesRatio?S.slideTo($+S.params.slidesPerGroup):S.slideTo($))}else{if(!S.params.shortSwipes)return void S.slideTo(S.activeIndex);"next"===S.swipeDirection&&S.slideTo($+S.params.slidesPerGroup),"prev"===S.swipeDirection&&S.slideTo($)}}},S._slideTo=function(e,t){return S.slideTo(e,t,!0,!0)},S.slideTo=function(e,t,n,i){void 0===n&&(n=!0),void 0===e&&(e=0),e<0&&(e=0),S.snapIndex=Math.floor(e/S.params.slidesPerGroup),S.snapIndex>=S.snapGrid.length&&(S.snapIndex=S.snapGrid.length-1);var r=-S.snapGrid[S.snapIndex];S.params.autoplay&&S.autoplaying&&(i||!S.params.autoplayDisableOnInteraction?S.pauseAutoplay(t):S.stopAutoplay()),S.updateProgress(r);for(var o=0;o<S.slidesGrid.length;o++)-Math.floor(100*r)>=Math.floor(100*S.slidesGrid[o])&&(e=o);return!(!S.params.allowSwipeToNext&&r<S.translate&&r<S.minTranslate())&&(!(!S.params.allowSwipeToPrev&&r>S.translate&&r>S.maxTranslate()&&(S.activeIndex||0)!==e)&&(void 0===t&&(t=S.params.speed),S.previousIndex=S.activeIndex||0,S.activeIndex=e,S.rtl&&-r===S.translate||!S.rtl&&r===S.translate?(S.params.autoHeight&&S.updateAutoHeight(),S.updateClasses(),"slide"!==S.params.effect&&S.setWrapperTranslate(r),!1):(S.updateClasses(),S.onTransitionStart(n),0===t?(S.setWrapperTranslate(r),S.setWrapperTransition(0),S.onTransitionEnd(n)):(S.setWrapperTranslate(r),S.setWrapperTransition(t),S.animating||(S.animating=!0,S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd(n)}))),!0)))},S.onTransitionStart=function(e){void 0===e&&(e=!0),S.params.autoHeight&&S.updateAutoHeight(),S.lazy&&S.lazy.onTransitionStart(),e&&(S.emit("onTransitionStart",S),S.activeIndex!==S.previousIndex&&(S.emit("onSlideChangeStart",S),o.$emit("$ionicSlides.slideChangeStart",{slider:S,activeIndex:S.getSlideDataIndex(S.activeIndex),previousIndex:S.getSlideDataIndex(S.previousIndex)}),S.activeIndex>S.previousIndex?S.emit("onSlideNextStart",S):S.emit("onSlidePrevStart",S)))},S.onTransitionEnd=function(e){S.animating=!1,S.setWrapperTransition(0),void 0===e&&(e=!0),S.lazy&&S.lazy.onTransitionEnd(),e&&(S.emit("onTransitionEnd",S),S.activeIndex!==S.previousIndex&&(S.emit("onSlideChangeEnd",S),o.$emit("$ionicSlides.slideChangeEnd",{slider:S,activeIndex:S.getSlideDataIndex(S.activeIndex),previousIndex:S.getSlideDataIndex(S.previousIndex)}),S.activeIndex>S.previousIndex?S.emit("onSlideNextEnd",S):S.emit("onSlidePrevEnd",S))),S.params.hashnav&&S.hashnav&&S.hashnav.setHash()},S.slideNext=function(e,t,n){if(S.params.loop){if(S.animating)return!1;S.fixLoop();S.container[0].clientLeft;return S.slideTo(S.activeIndex+S.params.slidesPerGroup,t,e,n)}return S.slideTo(S.activeIndex+S.params.slidesPerGroup,t,e,n)},S._slideNext=function(e){return S.slideNext(!0,e,!0)},S.slidePrev=function(e,t,n){if(S.params.loop){if(S.animating)return!1;S.fixLoop();S.container[0].clientLeft;return S.slideTo(S.activeIndex-1,t,e,n)}return S.slideTo(S.activeIndex-1,t,e,n)},S._slidePrev=function(e){return S.slidePrev(!0,e,!0)},S.slideReset=function(e,t,n){return S.slideTo(S.activeIndex,t,e)},S.setWrapperTransition=function(e,t){S.wrapper.transition(e),"slide"!==S.params.effect&&S.effects[S.params.effect]&&S.effects[S.params.effect].setTransition(e),S.params.parallax&&S.parallax&&S.parallax.setTransition(e),S.params.scrollbar&&S.scrollbar&&S.scrollbar.setTransition(e),S.params.control&&S.controller&&S.controller.setTransition(e,t),S.emit("onSetTransition",S,e)},S.setWrapperTranslate=function(e,t,n){var i=0,r=0;s()?i=S.rtl?-e:e:r=e,S.params.roundLengths&&(i=l(i),r=l(r)),S.params.virtualTranslate||(S.support.transforms3d?S.wrapper.transform("translate3d("+i+"px, "+r+"px, 0px)"):S.wrapper.transform("translate("+i+"px, "+r+"px)")),S.translate=s()?i:r;var o,a=S.maxTranslate()-S.minTranslate();o=0===a?0:(e-S.minTranslate())/a,o!==S.progress&&S.updateProgress(e),t&&S.updateActiveIndex(),"slide"!==S.params.effect&&S.effects[S.params.effect]&&S.effects[S.params.effect].setTranslate(S.translate), S.params.parallax&&S.parallax&&S.parallax.setTranslate(S.translate),S.params.scrollbar&&S.scrollbar&&S.scrollbar.setTranslate(S.translate),S.params.control&&S.controller&&S.controller.setTranslate(S.translate,n),S.emit("onSetTranslate",S,S.translate)},S.getTranslate=function(e,t){var n,i,r,o;return void 0===t&&(t="x"),S.params.virtualTranslate?S.rtl?-S.translate:S.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),o=new window.WebKitCSSMatrix("none"===i?"":i)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(i=window.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=window.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),S.rtl&&i&&(i=-i),i||0)},S.getWrapperTranslate=function(e){return void 0===e&&(e=s()?"x":"y"),S.getTranslate(S.wrapper[0],e)},S.observers=[],S.initObservers=function(){if(S.params.observeParents)for(var e=S.container.parents(),t=0;t<e.length;t++)d(e[t]);d(S.container[0],{childList:!1}),d(S.wrapper[0],{attributes:!1})},S.disconnectObservers=function(){for(var e=0;e<S.observers.length;e++)S.observers[e].disconnect();S.observers=[]},S.updateLoop=function(){var e=S.slides.eq(S.activeIndex);if(angular.element(e).hasClass(S.params.slideDuplicateClass)){for(var t=angular.element(e).attr("data-swiper-slide-index"),n=S.wrapper.children("."+S.params.slideClass),i=0;i<n.length;i++)if(!angular.element(n[i]).hasClass(S.params.slideDuplicateClass)&&angular.element(n[i]).attr("data-swiper-slide-index")===t){S.slideTo(i,0,!1,!0);break}setTimeout(function(){S.createLoop()},50)}},S.getSlideDataIndex=function(e){var t=S.slides.eq(e),n=angular.element(t).attr("data-swiper-slide-index");return parseInt(n)},S.createLoop=function(){S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass).remove();var t=S.wrapper.children("."+S.params.slideClass);"auto"!==S.params.slidesPerView||S.params.loopedSlides||(S.params.loopedSlides=t.length),S.loopedSlides=parseInt(S.params.loopedSlides||S.params.slidesPerView,10),S.loopedSlides=S.loopedSlides+S.params.loopAdditionalSlides,S.loopedSlides>t.length&&(S.loopedSlides=t.length);var n,i,r,o=[],s=[];for(t.each(function(n,i){var r=e(this);n<S.loopedSlides&&s.push(i),n<t.length&&n>=t.length-S.loopedSlides&&o.push(i),r.attr("data-swiper-slide-index",n)}),n=0;n<s.length;n++)r=angular.element(s[n]).clone().addClass(S.params.slideDuplicateClass),r.removeAttr("ng-transclude"),r.removeAttr("ng-repeat"),i=angular.element(s[n]).scope(),r=a(r)(i),angular.element(S.wrapper).append(r);for(n=o.length-1;n>=0;n--)r=angular.element(o[n]).clone().addClass(S.params.slideDuplicateClass),r.removeAttr("ng-transclude"),r.removeAttr("ng-repeat"),i=angular.element(o[n]).scope(),r=a(r)(i),angular.element(S.wrapper).prepend(r)},S.destroyLoop=function(){S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass).remove(),S.slides.removeAttr("data-swiper-slide-index")},S.fixLoop=function(){var e;S.activeIndex<S.loopedSlides?(e=S.slides.length-3*S.loopedSlides+S.activeIndex,e+=S.loopedSlides,S.slideTo(e,0,!1,!0)):("auto"===S.params.slidesPerView&&S.activeIndex>=2*S.loopedSlides||S.activeIndex>S.slides.length-2*S.params.slidesPerView)&&(e=-S.slides.length+S.activeIndex+S.loopedSlides,e+=S.loopedSlides,S.slideTo(e,0,!1,!0))},S.appendSlide=function(e){if(S.params.loop&&S.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&S.wrapper.append(e[t]);else S.wrapper.append(e);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0)},S.prependSlide=function(e){S.params.loop&&S.destroyLoop();var t=S.activeIndex+1;if("object"==typeof e&&e.length){for(var n=0;n<e.length;n++)e[n]&&S.wrapper.prepend(e[n]);t=S.activeIndex+e.length}else S.wrapper.prepend(e);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0),S.slideTo(t,0,!1)},S.removeSlide=function(e){S.params.loop&&(S.destroyLoop(),S.slides=S.wrapper.children("."+S.params.slideClass));var t,n=S.activeIndex;if("object"==typeof e&&e.length){for(var i=0;i<e.length;i++)t=e[i],S.slides[t]&&S.slides.eq(t).remove(),t<n&&n--;n=Math.max(n,0)}else t=e,S.slides[t]&&S.slides.eq(t).remove(),t<n&&n--,n=Math.max(n,0);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0),S.params.loop?S.slideTo(n+S.loopedSlides,0,!1):S.slideTo(n,0,!1)},S.removeAllSlides=function(){for(var e=[],t=0;t<S.slides.length;t++)e.push(t);S.removeSlide(e)},S.effects={fade:{setTranslate:function(){for(var e=0;e<S.slides.length;e++){var t=S.slides.eq(e),n=t[0].swiperSlideOffset,i=-n;S.params.virtualTranslate||(i-=S.translate);var r=0;s()||(r=i,i=0);var o=S.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:o}).transform("translate3d("+i+"px, "+r+"px, 0px)")}},setTransition:function(e){if(S.slides.transition(e),S.params.virtualTranslate&&0!==e){var t=!1;S.slides.transitionEnd(function(){if(!t&&S){t=!0,S.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<e.length;n++)S.wrapper.trigger(e[n])}})}}},cube:{setTranslate:function(){var t,n=0;S.params.cube.shadow&&(s()?(t=S.wrapper.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),S.wrapper.append(t)),t.css({height:S.width+"px"})):(t=S.container.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),S.container.append(t))));for(var i=0;i<S.slides.length;i++){var r=S.slides.eq(i),o=90*i,a=Math.floor(o/360);S.rtl&&(o=-o,a=Math.floor(-o/360));var l=Math.max(Math.min(r[0].progress,1),-1),c=0,u=0,d=0;i%4==0?(c=4*-a*S.size,d=0):(i-1)%4==0?(c=0,d=4*-a*S.size):(i-2)%4==0?(c=S.size+4*a*S.size,d=S.size):(i-3)%4==0&&(c=-S.size,d=3*S.size+4*S.size*a),S.rtl&&(c=-c),s()||(u=c,c=0);var f="rotateX("+(s()?0:-o)+"deg) rotateY("+(s()?o:0)+"deg) translate3d("+c+"px, "+u+"px, "+d+"px)";if(l<=1&&l>-1&&(n=90*i+90*l,S.rtl&&(n=90*-i-90*l)),r.transform(f),S.params.cube.slideShadows){var p=s()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=s()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===p.length&&(p=e('<div class="swiper-slide-shadow-'+(s()?"left":"top")+'"></div>'),r.append(p)),0===h.length&&(h=e('<div class="swiper-slide-shadow-'+(s()?"right":"bottom")+'"></div>'),r.append(h));r[0].progress;p.length&&(p[0].style.opacity=-r[0].progress),h.length&&(h[0].style.opacity=r[0].progress)}}if(S.wrapper.css({"-webkit-transform-origin":"50% 50% -"+S.size/2+"px","-moz-transform-origin":"50% 50% -"+S.size/2+"px","-ms-transform-origin":"50% 50% -"+S.size/2+"px","transform-origin":"50% 50% -"+S.size/2+"px"}),S.params.cube.shadow)if(s())t.transform("translate3d(0px, "+(S.width/2+S.params.cube.shadowOffset)+"px, "+-S.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+S.params.cube.shadowScale+")");else{var m=Math.abs(n)-90*Math.floor(Math.abs(n)/90),v=1.5-(Math.sin(2*m*Math.PI/360)/2+Math.cos(2*m*Math.PI/360)/2),g=S.params.cube.shadowScale,$=S.params.cube.shadowScale/v,w=S.params.cube.shadowOffset;t.transform("scale3d("+g+", 1, "+$+") translate3d(0px, "+(S.height/2+w)+"px, "+-S.height/2/$+"px) rotateX(-90deg)")}var y=S.isSafari||S.isUiWebView?-S.size/2:0;S.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(s()?0:n)+"deg) rotateY("+(s()?-n:0)+"deg)")},setTransition:function(e){S.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),S.params.cube.shadow&&!s()&&S.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var t=S.translate,n=s()?-t+S.width/2:-t+S.height/2,i=s()?S.params.coverflow.rotate:-S.params.coverflow.rotate,r=S.params.coverflow.depth,o=0,a=S.slides.length;o<a;o++){var l=S.slides.eq(o),c=S.slidesSizesGrid[o],u=l[0].swiperSlideOffset,d=(n-u-c/2)/c*S.params.coverflow.modifier,f=s()?i*d:0,p=s()?0:i*d,h=-r*Math.abs(d),m=s()?0:S.params.coverflow.stretch*d,v=s()?S.params.coverflow.stretch*d:0;Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(p)<.001&&(p=0);var g="translate3d("+v+"px,"+m+"px,"+h+"px) rotateX("+p+"deg) rotateY("+f+"deg)";if(l.transform(g),l[0].style.zIndex=1-Math.abs(Math.round(d)),S.params.coverflow.slideShadows){var $=s()?l.find(".swiper-slide-shadow-left"):l.find(".swiper-slide-shadow-top"),w=s()?l.find(".swiper-slide-shadow-right"):l.find(".swiper-slide-shadow-bottom");0===$.length&&($=e('<div class="swiper-slide-shadow-'+(s()?"left":"top")+'"></div>'),l.append($)),0===w.length&&(w=e('<div class="swiper-slide-shadow-'+(s()?"right":"bottom")+'"></div>'),l.append(w)),$.length&&($[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(S.browser.ie){S.wrapper[0].style.perspectiveOrigin=n+"px 50%"}},setTransition:function(e){S.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},S.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,n){if(void 0!==t&&(void 0===n&&(n=!0),0!==S.slides.length)){var i=S.slides.eq(t),r=i.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!i.hasClass("swiper-lazy")||i.hasClass("swiper-lazy-loaded")||i.hasClass("swiper-lazy-loading")||(r=r.add(i[0])),0!==r.length&&r.each(function(){var t=e(this);t.addClass("swiper-lazy-loading");var r=t.attr("data-background"),o=t.attr("data-src"),a=t.attr("data-srcset");S.loadImage(t[0],o||r,a,!1,function(){if(r?(t.css("background-image","url("+r+")"),t.removeAttr("data-background")):(a&&(t.attr("srcset",a),t.removeAttr("data-srcset")),o&&(t.attr("src",o),t.removeAttr("data-src"))),t.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),i.find(".swiper-lazy-preloader, .preloader").remove(),S.params.loop&&n){var e=i.attr("data-swiper-slide-index");if(i.hasClass(S.params.slideDuplicateClass)){var s=S.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+S.params.slideDuplicateClass+")");S.lazy.loadImageInSlide(s.index(),!1)}else{var l=S.wrapper.children("."+S.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');S.lazy.loadImageInSlide(l.index(),!1)}}S.emit("onLazyImageReady",S,i[0],t[0])}),S.emit("onLazyImageLoad",S,i[0],t[0])})}},load:function(){var t;if(S.params.watchSlidesVisibility)S.wrapper.children("."+S.params.slideVisibleClass).each(function(){S.lazy.loadImageInSlide(e(this).index())});else if(S.params.slidesPerView>1)for(t=S.activeIndex;t<S.activeIndex+S.params.slidesPerView;t++)S.slides[t]&&S.lazy.loadImageInSlide(t);else S.lazy.loadImageInSlide(S.activeIndex);if(S.params.lazyLoadingInPrevNext)if(S.params.slidesPerView>1){for(t=S.activeIndex+S.params.slidesPerView;t<S.activeIndex+S.params.slidesPerView+S.params.slidesPerView;t++)S.slides[t]&&S.lazy.loadImageInSlide(t);for(t=S.activeIndex-S.params.slidesPerView;t<S.activeIndex;t++)S.slides[t]&&S.lazy.loadImageInSlide(t)}else{var n=S.wrapper.children("."+S.params.slideNextClass);n.length>0&&S.lazy.loadImageInSlide(n.index());var i=S.wrapper.children("."+S.params.slidePrevClass);i.length>0&&S.lazy.loadImageInSlide(i.index())}},onTransitionStart:function(){S.params.lazyLoading&&(S.params.lazyLoadingOnTransitionStart||!S.params.lazyLoadingOnTransitionStart&&!S.lazy.initialImageLoaded)&&S.lazy.load()},onTransitionEnd:function(){S.params.lazyLoading&&!S.params.lazyLoadingOnTransitionStart&&S.lazy.load()}},S.scrollbar={isTouched:!1,setDragPosition:function(e){var t=S.scrollbar,n=s()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,i=n-t.track.offset()[s()?"left":"top"]-t.dragSize/2,r=-S.minTranslate()*t.moveDivider,o=-S.maxTranslate()*t.moveDivider;i<r?i=r:i>o&&(i=o),i=-i/t.moveDivider,S.updateProgress(i),S.setWrapperTranslate(i,!0)},dragStart:function(e){var t=S.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),S.params.scrollbarHide&&t.track.css("opacity",1),S.wrapper.transition(100),t.drag.transition(100),S.emit("onScrollbarDragStart",S)},dragMove:function(e){var t=S.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),S.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),S.emit("onScrollbarDragMove",S))},dragEnd:function(e){var t=S.scrollbar;t.isTouched&&(t.isTouched=!1,S.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),S.emit("onScrollbarDragEnd",S),S.params.scrollbarSnapOnRelease&&S.slideReset())},enableDraggable:function(){var t=S.scrollbar,n=S.support.touch?t.track:document;e(t.track).on(S.touchEvents.start,t.dragStart),e(n).on(S.touchEvents.move,t.dragMove),e(n).on(S.touchEvents.end,t.dragEnd)},disableDraggable:function(){var t=S.scrollbar,n=S.support.touch?t.track:document;e(t.track).off(S.touchEvents.start,t.dragStart),e(n).off(S.touchEvents.move,t.dragMove),e(n).off(S.touchEvents.end,t.dragEnd)},set:function(){if(S.params.scrollbar){var t=S.scrollbar;t.track=e(S.params.scrollbar),t.drag=t.track.find(".swiper-scrollbar-drag"),0===t.drag.length&&(t.drag=e('<div class="swiper-scrollbar-drag"></div>'),t.track.append(t.drag)),t.drag[0].style.width="",t.drag[0].style.height="",t.trackSize=s()?t.track[0].offsetWidth:t.track[0].offsetHeight,t.divider=S.size/S.virtualSize,t.moveDivider=t.divider*(t.trackSize/S.size),t.dragSize=t.trackSize*t.divider,s()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px",t.divider>=1?t.track[0].style.display="none":t.track[0].style.display="",S.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(S.params.scrollbar){var e,t=S.scrollbar,n=(S.translate,t.dragSize);e=(t.trackSize-t.dragSize)*S.progress,S.rtl&&s()?(e=-e,e>0?(n=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(n=t.trackSize+e)):e<0?(n=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(n=t.trackSize-e),s()?(S.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=n+"px"):(S.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=n+"px"),S.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){S.params.scrollbar&&S.scrollbar.drag.transition(e)}},S.controller={LinearSpline:function(e,t){this.x=e,this.y=t,this.lastIndex=e.length-1;var n,i;this.x.length;this.interpolate=function(e){return e?(i=r(this.x,e),n=i-1,(e-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0};var r=function(){var e,t,n;return function(i,r){for(t=-1,e=i.length;e-t>1;)i[n=e+t>>1]<=r?t=n:e=n;return e}}()},getInterpolateFunction:function(e){S.controller.spline||(S.controller.spline=S.params.loop?new S.controller.LinearSpline(S.slidesGrid,e.slidesGrid):new S.controller.LinearSpline(S.snapGrid,e.snapGrid))},setTranslate:function(e,n){function i(t){e=t.rtl&&"horizontal"===t.params.direction?-S.translate:S.translate,"slide"===S.params.controlBy&&(S.controller.getInterpolateFunction(t),o=-S.controller.spline.interpolate(-e)),o&&"container"!==S.params.controlBy||(r=(t.maxTranslate()-t.minTranslate())/(S.maxTranslate()-S.minTranslate()),o=(e-S.minTranslate())*r+t.minTranslate()),S.params.controlInverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setWrapperTranslate(o,!1,S),t.updateActiveIndex()}var r,o,a=S.params.control;if(S.isArray(a))for(var s=0;s<a.length;s++)a[s]!==n&&a[s]instanceof t&&i(a[s]);else a instanceof t&&n!==a&&i(a)},setTransition:function(e,n){function i(t){t.setWrapperTransition(e,S),0!==e&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){o&&(t.params.loop&&"slide"===S.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var r,o=S.params.control;if(S.isArray(o))for(r=0;r<o.length;r++)o[r]!==n&&o[r]instanceof t&&i(o[r]);else o instanceof t&&n!==o&&i(o)}},S.hashnav={init:function(){if(S.params.hashnav){S.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var t=0,n=S.slides.length;t<n;t++){var i=S.slides.eq(t),r=i.attr("data-hash");if(r===e&&!i.hasClass(S.params.slideDuplicateClass)){var o=i.index();S.slideTo(o,0,S.params.runCallbacksOnInit,!0)}}}},setHash:function(){S.hashnav.initialized&&S.params.hashnav&&(document.location.hash=S.slides.eq(S.activeIndex).attr("data-hash")||"")}},S.disableKeyboardControl=function(){S.params.keyboardControl=!1,e(document).off("keydown",f)},S.enableKeyboardControl=function(){S.params.keyboardControl=!0,e(document).on("keydown",f)},S.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},S.params.mousewheelControl){try{new window.WheelEvent("wheel"),S.mousewheel.event="wheel"}catch(e){}S.mousewheel.event||void 0===document.onmousewheel||(S.mousewheel.event="mousewheel"),S.mousewheel.event||(S.mousewheel.event="DOMMouseScroll")}S.disableMousewheelControl=function(){return!!S.mousewheel.event&&(S.container.off(S.mousewheel.event,p),!0)},S.enableMousewheelControl=function(){return!!S.mousewheel.event&&(S.container.on(S.mousewheel.event,p),!0)},S.parallax={setTranslate:function(){S.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,S.progress)}),S.slides.each(function(){var t=e(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,Math.min(Math.max(t[0].progress,-1),1))})})},setTransition:function(t){void 0===t&&(t=S.params.speed),S.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=e(this),i=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),n.transition(i)})}},S._plugins=[];for(var z in S.plugins){var H=S.plugins[z](S,S.params[z]);H&&S._plugins.push(H)}return S.callPlugins=function(e){for(var t=0;t<S._plugins.length;t++)e in S._plugins[t]&&S._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},S.emitterEventListeners={},S.emit=function(e){S.params[e]&&S.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(S.emitterEventListeners[e])for(t=0;t<S.emitterEventListeners[e].length;t++)S.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);S.callPlugins&&S.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},S.on=function(e,t){return e=m(e),S.emitterEventListeners[e]||(S.emitterEventListeners[e]=[]),S.emitterEventListeners[e].push(t),S},S.off=function(e,t){var n;if(e=m(e),void 0===t)return S.emitterEventListeners[e]=[],S;if(S.emitterEventListeners[e]&&0!==S.emitterEventListeners[e].length){for(n=0;n<S.emitterEventListeners[e].length;n++)S.emitterEventListeners[e][n]===t&&S.emitterEventListeners[e].splice(n,1);return S}},S.once=function(e,t){e=m(e);var n=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),S.off(e,n)};return S.on(e,n),S},S.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(t){13===t.keyCode&&(e(t.target).is(S.params.nextButton)?(S.onClickNext(t),S.isEnd?S.a11y.notify(S.params.lastSlideMessage):S.a11y.notify(S.params.nextSlideMessage)):e(t.target).is(S.params.prevButton)&&(S.onClickPrev(t),S.isBeginning?S.a11y.notify(S.params.firstSlideMessage):S.a11y.notify(S.params.prevSlideMessage)),e(t.target).is("."+S.params.bulletClass)&&e(t.target)[0].click())},liveRegion:e('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=S.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){if(S.params.nextButton){var t=e(S.params.nextButton);S.a11y.makeFocusable(t),S.a11y.addRole(t,"button"),S.a11y.addLabel(t,S.params.nextSlideMessage)}if(S.params.prevButton){var n=e(S.params.prevButton);S.a11y.makeFocusable(n),S.a11y.addRole(n,"button"),S.a11y.addLabel(n,S.params.prevSlideMessage)}e(S.container).append(S.a11y.liveRegion)},initPagination:function(){S.params.pagination&&S.params.paginationClickable&&S.bullets&&S.bullets.length&&S.bullets.each(function(){var t=e(this);S.a11y.makeFocusable(t),S.a11y.addRole(t,"button"),S.a11y.addLabel(t,S.params.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})},destroy:function(){S.a11y.liveRegion&&S.a11y.liveRegion.length>0&&S.a11y.liveRegion.remove()}},S.init=function(){S.params.loop&&S.createLoop(),S.updateContainerSize(),S.updateSlidesSize(),S.updatePagination(),S.params.scrollbar&&S.scrollbar&&(S.scrollbar.set(),S.params.scrollbarDraggable&&S.scrollbar.enableDraggable()),"slide"!==S.params.effect&&S.effects[S.params.effect]&&(S.params.loop||S.updateProgress(),S.effects[S.params.effect].setTranslate()),S.params.loop?S.slideTo(S.params.initialSlide+S.loopedSlides,0,S.params.runCallbacksOnInit):(S.slideTo(S.params.initialSlide,0,S.params.runCallbacksOnInit),0===S.params.initialSlide&&(S.parallax&&S.params.parallax&&S.parallax.setTranslate(),S.lazy&&S.params.lazyLoading&&(S.lazy.load(),S.lazy.initialImageLoaded=!0))),S.attachEvents(),S.params.observer&&S.support.observer&&S.initObservers(),S.params.preloadImages&&!S.params.lazyLoading&&S.preloadImages(),S.params.autoplay&&S.startAutoplay(),S.params.keyboardControl&&S.enableKeyboardControl&&S.enableKeyboardControl(),S.params.mousewheelControl&&S.enableMousewheelControl&&S.enableMousewheelControl(),S.params.hashnav&&S.hashnav&&S.hashnav.init(),S.params.a11y&&S.a11y&&S.a11y.init(),S.emit("onInit",S)},S.cleanupStyles=function(){S.container.removeClass(S.classNames.join(" ")).removeAttr("style"),S.wrapper.removeAttr("style"),S.slides&&S.slides.length&&S.slides.removeClass([S.params.slideVisibleClass,S.params.slideActiveClass,S.params.slideNextClass,S.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),S.paginationContainer&&S.paginationContainer.length&&S.paginationContainer.removeClass(S.params.paginationHiddenClass),S.bullets&&S.bullets.length&&S.bullets.removeClass(S.params.bulletActiveClass),S.params.prevButton&&e(S.params.prevButton).removeClass(S.params.buttonDisabledClass),S.params.nextButton&&e(S.params.nextButton).removeClass(S.params.buttonDisabledClass),S.params.scrollbar&&S.scrollbar&&(S.scrollbar.track&&S.scrollbar.track.length&&S.scrollbar.track.removeAttr("style"),S.scrollbar.drag&&S.scrollbar.drag.length&&S.scrollbar.drag.removeAttr("style"))},S.destroy=function(e,t){S.detachEvents(),S.stopAutoplay(),S.params.scrollbar&&S.scrollbar&&S.params.scrollbarDraggable&&S.scrollbar.disableDraggable(),S.params.loop&&S.destroyLoop(),t&&S.cleanupStyles(),S.disconnectObservers(),S.params.keyboardControl&&S.disableKeyboardControl&&S.disableKeyboardControl(),S.params.mousewheelControl&&S.disableMousewheelControl&&S.disableMousewheelControl(),S.params.a11y&&S.a11y&&S.a11y.destroy(),S.emit("onDestroy"),e!==!1&&(S=null)},S.init(),S}};t.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),i=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!n&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:n||r||i,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n++)if(t[n]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var n=(function(){var e=function(e){var t=this,n=0;for(n=0;n<e.length;n++)t[n]=e[n];return t.length=e.length,this},t=function(t,n){var i=[],r=0;if(t&&!n&&t instanceof e)return t;if(t)if("string"==typeof t){var o,a,s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var l="div";for(0===s.indexOf("<li")&&(l="ul"),0===s.indexOf("<tr")&&(l="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(l="tr"),0===s.indexOf("<tbody")&&(l="table"),0===s.indexOf("<option")&&(l="select"),a=document.createElement(l),a.innerHTML=t,r=0;r<a.childNodes.length;r++)i.push(a.childNodes[r])}else for(o=n||"#"!==t[0]||t.match(/[ .<>:~]/)?(n||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],r=0;r<o.length;r++)o[r]&&i.push(o[r])}else if(t.nodeType||t===window||t===document)i.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r++)i.push(t[r]);return new e(i)};return e.prototype={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n++)for(var i=0;i<this.length;i++)this[i].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)for(var i=0;i<this.length;i++)this[i].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)for(var i=0;i<this.length;i++)this[i].classList.toggle(t[n]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n++)if(2===arguments.length)this[n].setAttribute(e,t);else for(var i in e)this[n][i]=e[i],this[n].setAttribute(i,e[i]);return this},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e);return this},data:function(e,t){if(void 0!==t){for(var n=0;n<this.length;n++){var i=this[n];i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t}return this}if(this[0]){var r=this[0].getAttribute("data-"+e);return r?r:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransform=n.MsTransform=n.msTransform=n.MozTransform=n.OTransform=n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransitionDuration=n.MsTransitionDuration=n.msTransitionDuration=n.MozTransitionDuration=n.OTransitionDuration=n.transitionDuration=e}return this},on:function(e,n,i,r){function o(e){var r=e.target;if(t(r).is(n))i.call(r,e);else for(var o=t(r).parents(),a=0;a<o.length;a++)t(o[a]).is(n)&&i.call(o[a],e)}var a,s,l=e.split(" ");for(a=0;a<this.length;a++)if("function"==typeof n||n===!1)for("function"==typeof n&&(i=arguments[1],r=arguments[2]||!1),s=0;s<l.length;s++)this[a].addEventListener(l[s],i,r);else for(s=0;s<l.length;s++)this[a].dom7LiveListeners||(this[a].dom7LiveListeners=[]),this[a].dom7LiveListeners.push({listener:i,liveListener:o}),this[a].addEventListener(l[s],o,r);return this},off:function(e,t,n,i){for(var r=e.split(" "),o=0;o<r.length;o++)for(var a=0;a<this.length;a++)if("function"==typeof t||t===!1)"function"==typeof t&&(n=arguments[1],i=arguments[2]||!1),this[a].removeEventListener(r[o],n,i);else if(this[a].dom7LiveListeners)for(var s=0;s<this[a].dom7LiveListeners.length;s++)this[a].dom7LiveListeners[s].listener===n&&this[a].removeEventListener(r[o],this[a].dom7LiveListeners[s].liveListener,i);return this},once:function(e,t,n,i){function r(a){n(a),o.off(e,t,r,i)}var o=this;"function"==typeof t&&(t=!1,n=arguments[1],i=arguments[2]),o.on(e,t,r,i)},trigger:function(e,t){for(var n=0;n<this.length;n++){var i;try{i=new window.CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(n){i=document.createEvent("Event"),i.initEvent(e,!0,!0),i.detail=t}this[n].dispatchEvent(i)}return this},transitionEnd:function(e){function t(o){if(o.target===this)for(e.call(this,o),n=0;n<i.length;n++)r.off(i[n],t)}var n,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(n=0;n<i.length;n++)r.on(i[n],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=document.body,i=e.clientTop||n.clientTop||0,r=e.clientLeft||n.clientLeft||0,o=window.pageYOffset||e.scrollTop,a=window.pageXOffset||e.scrollLeft;return{top:t.top+o-i,left:t.left+a-r}}return null},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n++)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n++)this[n].style[e]=t;return this}return this},each:function(e){for(var t=0;t<this.length;t++)e.call(this[t],t,this[t]);return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t++)this[t].innerHTML=e;return this},is:function(n){if(!this[0])return!1;var i,r;if("string"==typeof n){var o=this[0];if(o===document)return n===document;if(o===window)return n===window;if(o.matches)return o.matches(n);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(n);if(o.mozMatchesSelector)return o.mozMatchesSelector(n);if(o.msMatchesSelector)return o.msMatchesSelector(n);for(i=t(n),r=0;r<i.length;r++)if(i[r]===this[0])return!0;return!1}if(n===document)return this[0]===document;if(n===window)return this[0]===window;if(n.nodeType||n instanceof e){for(i=n.nodeType?[n]:n,r=0;r<i.length;r++)if(i[r]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],t=0;null!==(e=e.previousSibling);)1===e.nodeType&&t++;return t}},eq:function(t){if(void 0===t)return this;var n,i=this.length;return t>i-1?new e([]):t<0?(n=i+t,new e(n<0?[]:[this[n]])):new e([this[t]])},append:function(t){var n,i;for(n=0;n<this.length;n++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t;r.firstChild;)this[n].appendChild(r.firstChild)}else if(t instanceof e)for(i=0;i<t.length;i++)this[n].appendChild(t[i]);else this[n].appendChild(t);return this},prepend:function(t){var n,i ;for(n=0;n<this.length;n++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t,i=r.childNodes.length-1;i>=0;i--)this[n].insertBefore(r.childNodes[i],this[n].childNodes[0])}else if(t instanceof e)for(i=0;i<t.length;i++)this[n].insertBefore(t[i],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this},insertBefore:function(e){for(var n=t(e),i=0;i<this.length;i++)if(1===n.length)n[0].parentNode.insertBefore(this[i],n[0]);else if(n.length>1)for(var r=0;r<n.length;r++)n[r].parentNode.insertBefore(this[i].cloneNode(!0),n[r])},insertAfter:function(e){for(var n=t(e),i=0;i<this.length;i++)if(1===n.length)n[0].parentNode.insertBefore(this[i],n[0].nextSibling);else if(n.length>1)for(var r=0;r<n.length;r++)n[r].parentNode.insertBefore(this[i].cloneNode(!0),n[r].nextSibling)},next:function(n){return new e(this.length>0?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(n){var i=[],r=this[0];if(!r)return new e([]);for(;r.nextElementSibling;){var o=r.nextElementSibling;n?t(o).is(n)&&i.push(o):i.push(o),r=o}return new e(i)},prev:function(n){return new e(this.length>0?n?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(n)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(n){var i=[],r=this[0];if(!r)return new e([]);for(;r.previousElementSibling;){var o=r.previousElementSibling;n?t(o).is(n)&&i.push(o):i.push(o),r=o}return new e(i)},parent:function(e){for(var n=[],i=0;i<this.length;i++)e?t(this[i].parentNode).is(e)&&n.push(this[i].parentNode):n.push(this[i].parentNode);return t(t.unique(n))},parents:function(e){for(var n=[],i=0;i<this.length;i++)for(var r=this[i].parentNode;r;)e?t(r).is(e)&&n.push(r):n.push(r),r=r.parentNode;return t(t.unique(n))},find:function(t){for(var n=[],i=0;i<this.length;i++)for(var r=this[i].querySelectorAll(t),o=0;o<r.length;o++)n.push(r[o]);return new e(n)},children:function(n){for(var i=[],r=0;r<this.length;r++)for(var o=this[r].childNodes,a=0;a<o.length;a++)n?1===o[a].nodeType&&t(o[a]).is(n)&&i.push(o[a]):1===o[a].nodeType&&i.push(o[a]);return new e(t.unique(i))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,n,i=this;for(e=0;e<arguments.length;e++){var r=t(arguments[e]);for(n=0;n<r.length;n++)i[i.length]=r[n],i.length++}return i}},t.fn=e.prototype,t.unique=function(e){for(var t=[],n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t},t}()),i=["jQuery","Zepto","Dom7"],r=0;r<i.length;r++)window[i[r]]&&function(e){e.fn.swiper=function(n){var i;return e(this).each(function(){var e=new t(this,n);i||(i=e)}),i}}(window[i[r]]);var o;o=void 0===n?window.Dom7||window.Zepto||window.jQuery:n,o&&("transitionEnd"in o.fn||(o.fn.transitionEnd=function(e){function t(o){if(o.target===this)for(e.call(this,o),n=0;n<i.length;n++)r.off(i[n],t)}var n,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(n=0;n<i.length;n++)r.on(i[n],t);return this}),"transform"in o.fn||(o.fn.transform=function(e){for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransform=n.MsTransform=n.msTransform=n.MozTransform=n.OTransform=n.transform=e}return this}),"transition"in o.fn||(o.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var n=this[t].style;n.webkitTransitionDuration=n.MsTransitionDuration=n.msTransitionDuration=n.MozTransitionDuration=n.OTransitionDuration=n.transitionDuration=e}return this})),ionic.views.Swiper=t}(),function(e){"use strict";e.views.Toggle=e.views.View.inherit({initialize:function(t){var n=this;this.el=t.el,this.checkbox=t.checkbox,this.track=t.track,this.handle=t.handle,this.openPercent=-1,this.onChange=t.onChange||function(){},this.triggerThreshold=t.triggerThreshold||20,this.dragStartHandler=function(e){n.dragStart(e)},this.dragHandler=function(e){n.drag(e)},this.holdHandler=function(e){n.hold(e)},this.releaseHandler=function(e){n.release(e)},this.dragStartGesture=e.onGesture("dragstart",this.dragStartHandler,this.el),this.dragGesture=e.onGesture("drag",this.dragHandler,this.el),this.dragHoldGesture=e.onGesture("hold",this.holdHandler,this.el),this.dragReleaseGesture=e.onGesture("release",this.releaseHandler,this.el)},destroy:function(){e.offGesture(this.dragStartGesture,"dragstart",this.dragStartGesture),e.offGesture(this.dragGesture,"drag",this.dragGesture),e.offGesture(this.dragHoldGesture,"hold",this.holdHandler),e.offGesture(this.dragReleaseGesture,"release",this.releaseHandler)},tap:function(){"disabled"!==this.el.getAttribute("disabled")&&this.val(!this.checkbox.checked)},dragStart:function(e){this.checkbox.disabled||(this._dragInfo={width:this.el.offsetWidth,left:this.el.offsetLeft,right:this.el.offsetLeft+this.el.offsetWidth,triggerX:this.el.offsetWidth/2,initialState:this.checkbox.checked},e.gesture.srcEvent.preventDefault(),this.hold(e))},drag:function(t){var n=this;this._dragInfo&&(t.gesture.srcEvent.preventDefault(),e.requestAnimationFrame(function(){if(n._dragInfo){var e=t.gesture.touches[0].pageX-n._dragInfo.left,i=n._dragInfo.width-n.triggerThreshold;n._dragInfo.initialState?e<n.triggerThreshold?n.setOpenPercent(0):e>n._dragInfo.triggerX&&n.setOpenPercent(100):e<n._dragInfo.triggerX?n.setOpenPercent(0):e>i&&n.setOpenPercent(100)}}))},endDrag:function(){this._dragInfo=null},hold:function(){this.el.classList.add("dragging")},release:function(e){this.el.classList.remove("dragging"),this.endDrag(e)},setOpenPercent:function(t){if(this.openPercent<0||t<this.openPercent-3||t>this.openPercent+3)if(this.openPercent=t,0===t)this.val(!1);else if(100===t)this.val(!0);else{var n=Math.round(t/100*this.track.offsetWidth-this.handle.offsetWidth);n=n<1?0:n,this.handle.style[e.CSS.TRANSFORM]="translate3d("+n+"px,0,0)"}},val:function(t){return t!==!0&&t!==!1||(""!==this.handle.style[e.CSS.TRANSFORM]&&(this.handle.style[e.CSS.TRANSFORM]=""),this.checkbox.checked=t,this.openPercent=t?100:0,this.onChange&&this.onChange()),this.checkbox.checked}})}(ionic)}(),function(e,t,n){"use strict";function i(e,t){return t=t||Error,function(){var n,i,r=arguments,o=r[0],a="["+(e?e+":":"")+o+"] ",s=r[1];for(a+=s.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+2;return n<r.length?we(r[n]):e}),a+="\nhttp://errors.angularjs.org/1.5.3/"+(e?e+"/":"")+o,i=2,n="?";i<r.length;i++,n="&")a+=n+"p"+(i-2)+"="+encodeURIComponent(we(r[i]));return new t(a)}}function r(e){if(null==e||k(e))return!1;if(qi(e)||S(e)||Mi&&e instanceof Mi)return!0;var t="length"in Object(e)&&e.length;return x(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var i,a;if(e)if(E(e))for(i in e)"prototype"==i||"length"==i||"name"==i||e.hasOwnProperty&&!e.hasOwnProperty(i)||t.call(n,e[i],i,e);else if(qi(e)||r(e)){var s="object"!=typeof e;for(i=0,a=e.length;i<a;i++)(s||i in e)&&t.call(n,e[i],i,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(_(e))for(i in e)t.call(n,e[i],i,e);else if("function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e);else for(i in e)Ei.call(e,i)&&t.call(n,e[i],i,e);return e}function a(e,t,n){for(var i=Object.keys(e).sort(),r=0;r<i.length;r++)t.call(n,e[i[r]],i[r]);return i}function s(e){return function(t,n){e(n,t)}}function l(){return++Fi}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function u(e,t,n){for(var i=e.$$hashKey,r=0,o=t.length;r<o;++r){var a=t[r];if(b(a)||E(a))for(var s=Object.keys(a),l=0,d=s.length;l<d;l++){var f=s[l],p=a[f];n&&b(p)?T(p)?e[f]=new Date(p.valueOf()):C(p)?e[f]=new RegExp(p):p.nodeName?e[f]=p.cloneNode(!0):V(p)?e[f]=p.clone():(b(e[f])||(e[f]=qi(p)?[]:{}),u(e[f],[p],!0)):e[f]=p}}return c(e,i),e}function d(e){return u(e,Oi.call(arguments,1),!1)}function f(e){return u(e,Oi.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function h(e,t){return d(Object.create(e),t)}function m(){}function v(e){return e}function g(e){return function(){return e}}function $(e){return E(e.toString)&&e.toString!==Bi}function w(e){return void 0===e}function y(e){return void 0!==e}function b(e){return null!==e&&"object"==typeof e}function _(e){return null!==e&&"object"==typeof e&&!Ri(e)}function S(e){return"string"==typeof e}function x(e){return"number"==typeof e}function T(e){return"[object Date]"===Bi.call(e)}function E(e){return"function"==typeof e}function C(e){return"[object RegExp]"===Bi.call(e)}function k(e){return e&&e.window===e}function A(e){return e&&e.$evalAsync&&e.$watch}function I(e){return"[object File]"===Bi.call(e)}function D(e){return"[object FormData]"===Bi.call(e)}function M(e){return"[object Blob]"===Bi.call(e)}function P(e){return"boolean"==typeof e}function L(e){return e&&E(e.then)}function O(e){return e&&x(e.length)&&Gi.test(Bi.call(e))}function N(e){return"[object ArrayBuffer]"===Bi.call(e)}function V(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function B(e){var t,n={},i=e.split(",");for(t=0;t<i.length;t++)n[i[t]]=!0;return n}function R(e){return Ci(e.nodeName||e[0]&&e[0].nodeName)}function z(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function H(e,t){function i(e,t){var n,i=t.$$hashKey;if(qi(e))for(var o=0,a=e.length;o<a;o++)t.push(r(e[o]));else if(_(e))for(n in e)t[n]=r(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]));else for(n in e)Ei.call(e,n)&&(t[n]=r(e[n]));return c(t,i),t}function r(e){if(!b(e))return e;var t=s.indexOf(e);if(t!==-1)return l[t];if(k(e)||A(e))throw zi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=a(e);return o===n&&(o=qi(e)?[]:Object.create(Ri(e)),r=!0),s.push(e),l.push(o),r?i(e,o):o}function a(e){switch(Bi.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(r(e.buffer));case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(E(e.cloneNode))return e.cloneNode(!0)}var s=[],l=[];if(t){if(O(t)||N(t))throw zi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw zi("cpi","Can't copy! Source and destination are identical.");return qi(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),s.push(e),l.push(t),i(e,t)}return r(e)}function F(e,t){if(qi(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var r in e)"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,i,r,o=typeof e,a=typeof t;if(o==a&&"object"==o){if(!qi(e)){if(T(e))return!!T(t)&&q(e.getTime(),t.getTime());if(C(e))return!!C(t)&&e.toString()==t.toString();if(A(e)||A(t)||k(e)||k(t)||qi(t)||T(t)||C(t))return!1;r=ve();for(i in e)if("$"!==i.charAt(0)&&!E(e[i])){if(!q(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&"$"!==i.charAt(0)&&y(t[i])&&!E(t[i]))return!1;return!0}if(!qi(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!q(e[i],t[i]))return!1;return!0}}return!1}function G(e,t,n){return e.concat(Oi.call(t,n))}function j(e,t){return Oi.call(e,t||0)}function U(e,t){var n=arguments.length>2?j(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,G(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function W(e,i){var r=i;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=n:k(i)?r="$WINDOW":i&&t===i?r="$DOCUMENT":A(i)&&(r="$SCOPE"),r}function Y(e,t){return w(e)?n:(x(t)||(t=t?2:null),JSON.stringify(e,W,t))}function X(e){return S(e)?JSON.parse(e):e}function K(e,t){e=e.replace(Xi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Z(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function J(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return Z(e,n*(K(t,i)-i))}function Q(e){e=Mi(e).clone();try{e.empty()}catch(e){}var t=Mi("<div>").append(e).html();try{return e[0].nodeType===er?Ci(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Ci(t)})}catch(e){return Ci(t)}}function ee(e){try{return decodeURIComponent(e)}catch(e){}}function te(e){var t={};return o((e||"").split("&"),function(e){var n,i,r;e&&(i=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(i=e.substring(0,n),r=e.substring(n+1)),i=ee(i),y(i)&&(r=!y(r)||ee(r),Ei.call(t,i)?qi(t[i])?t[i].push(r):t[i]=[t[i],r]:t[i]=r))}),t}function ne(e){var t=[];return o(e,function(e,n){qi(e)?o(e,function(e){t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}):t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}),t.length?t.join("&"):""}function ie(e){return re(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function re(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function oe(e,t){var n,i,r=Ki.length;for(i=0;i<r;++i)if(n=Ki[i]+t,S(n=e.getAttribute(n)))return n;return null}function ae(e,t){var n,i,r={};o(Ki,function(t){var r=t+"app";!n&&e.hasAttribute&&e.hasAttribute(r)&&(n=e,i=e.getAttribute(r))}),o(Ki,function(t){var r,o=t+"app";!n&&(r=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(r.strictDi=null!==oe(n,"strict-di"),t(n,i?[i]:[],r))}function se(n,i,r){b(r)||(r={}),r=d({strictDi:!1},r);var a=function(){if(n=Mi(n),n.injector()){throw zi("btstrpd","App Already Bootstrapped with this Element '{0}'",(n[0]===t?"document":Q(n)).replace(/</,"<").replace(/>/,">"))}i=i||[],i.unshift(["$provide",function(e){e.value("$rootElement",n)}]),r.debugInfoEnabled&&i.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),i.unshift("ng");var e=nt(i,r.strictDi);return e.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply(function(){t.data("$injector",i),n(t)(e)})}]),e},s=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(e&&s.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(s,"")),e&&!l.test(e.name))return a();e.name=e.name.replace(l,""),Hi.resumeBootstrap=function(e){return o(e,function(e){i.push(e)}),a()},E(Hi.resumeDeferredBootstrap)&&Hi.resumeDeferredBootstrap()}function le(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ce(e){var t=Hi.element(e).injector();if(!t)throw zi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function ue(e,t){return t=t||"_",e.replace(Zi,function(e,n){return(n?t:"")+e.toLowerCase()})}function de(e,t,n){if(!e)throw zi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function fe(e,t,n){return n&&qi(e)&&(e=e[e.length-1]),de(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function pe(e,t){if("hasOwnProperty"===e)throw zi("badname","hasOwnProperty is not a valid {0} name",t)}function he(e,t,n){if(!t)return e;for(var i,r=t.split("."),o=e,a=r.length,s=0;s<a;s++)i=r[s],e&&(e=(o=e)[i]);return!n&&E(e)?U(o,e):e}function me(e){for(var t,n=e[0],i=e[e.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(t||e[r]!==n)&&(t||(t=Mi(Oi.call(e,0,r))),t.push(n));return t||e}function ve(){return Object.create(null)}function ge(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=i("$injector"),r=i("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||i,t(o,"module",function(){var e={};return function(i,o,a){return function(e,t){if("hasOwnProperty"===e)throw r("badname","hasOwnProperty is not a valid {0} name",t)}(i,"module"),o&&e.hasOwnProperty(i)&&(e[i]=null),t(e,i,function(){function e(e,t,n,i){return i||(i=r),function(){return i[n||"push"]([e,t,arguments]),u}}function t(e,t){return function(n,o){return o&&E(o)&&(o.$$moduleName=i),r.push([e,t,arguments]),u}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var r=[],s=[],l=[],c=e("$injector","invoke","push",s),u={_invokeQueue:r,_configBlocks:s,_runBlocks:l,requires:o,name:i,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:c,run:function(e){return l.push(e),this}};return a&&c(a),u})}})}function $e(e){var t=[];return JSON.stringify(e,function(e,n){if(n=W(e,n),b(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function we(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):w(e)?"undefined":"string"!=typeof e?$e(e):e}function ye(){return++ar}function be(e){return e.replace(cr,function(e,t,n,i){return i?n.toUpperCase():n}).replace(ur,"Moz$1")}function _e(e){return!hr.test(e)}function Se(e){var t=e.nodeType;return t===Qi||!t||t===nr}function xe(e){for(var t in or[e.ng339])return!0;return!1}function Te(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])}function Ee(e,t){var n,i,r,a,s=t.createDocumentFragment(),l=[];if(_e(e))l.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),i=(mr.exec(e)||["",""])[1].toLowerCase(),r=gr[i]||gr._default,n.innerHTML=r[1]+e.replace(vr,"<$1></$2>")+r[2],a=r[0];a--;)n=n.lastChild;l=G(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(l,function(e){s.appendChild(e)}),s}function Ce(e,n){n=n||t;var i;return(i=pr.exec(e))?[n.createElement(i[1])]:(i=Ee(e,n))?i.childNodes:[]}function ke(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Ae(e){if(e instanceof Ae)return e;var t;if(S(e)&&(e=ji(e),t=!0),!(this instanceof Ae)){if(t&&"<"!=e.charAt(0))throw fr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ae(e)}t?Re(this,Ce(e)):Re(this,e)}function Ie(e){return e.cloneNode(!0)}function De(e,t){if(t||Pe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),i=0,r=n.length;i<r;i++)Pe(n[i])}function Me(e,t,n,i){if(y(i))throw fr("offargs","jqLite#off() does not support the `selector` argument");var r=Le(e),a=r&&r.events,s=r&&r.handle;if(s)if(t){var l=function(t){var i=a[t];y(n)&&z(i||[],n),y(n)&&i&&i.length>0||(lr(e,t,s),delete a[t])};o(t.split(" "),function(e){l(e),dr[e]&&l(dr[e])})}else for(t in a)"$destroy"!==t&&lr(e,t,s),delete a[t]}function Pe(e,t){var i=e.ng339,r=i&&or[i];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Me(e)),delete or[i],e.ng339=n}}function Le(e,t){var i=e.ng339,r=i&&or[i];return t&&!r&&(e.ng339=i=ye(),r=or[i]={events:{},data:{},handle:n}),r}function Oe(e,t,n){if(Se(e)){var i=y(n),r=!i&&t&&!b(t),o=!t,a=Le(e,!r),s=a&&a.data;if(i)s[t]=n;else{if(o)return s;if(r)return s&&s[t];d(s,t)}}}function Ne(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Ve(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",ji((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ji(t)+" "," ")))})}function Be(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=ji(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",ji(n))}}function Re(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function ze(e,t){return He(e,"$"+(t||"ngController")+"Controller")}function He(e,t,n){e.nodeType==nr&&(e=e.documentElement);for(var i=qi(t)?t:[t];e;){for(var r=0,o=i.length;r<o;r++)if(y(n=Mi.data(e,i[r])))return n;e=e.parentNode||e.nodeType===ir&&e.host}}function Fe(e){for(De(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function qe(e,t){t||De(e);var n=e.parentNode;n&&n.removeChild(e)}function Ge(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Mi(n).on("load",t)}function je(e,t){var n=yr[t.toLowerCase()];return n&&br[R(e)]&&n}function Ue(e){return _r[e]}function We(e,t){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=t[i||n.type],o=r?r.length:0;if(o){if(w(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=r.specialHandlerWrapper||Ye;o>1&&(r=F(r));for(var l=0;l<o;l++)n.isImmediatePropagationStopped()||s(e,n,r[l])}};return n.elem=e,n}function Ye(e,t,n){n.call(e,t)}function Xe(e,t,n){var i=t.relatedTarget;i&&(i===e||$r.call(e,i))||n.call(e,t)}function Ke(){this.$get=function(){return d(Ae,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ne(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Be(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ve(e,t)}})}}function Ze(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var i=typeof e;return n="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(t||l)():i+":"+e}function Je(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Qe(e){var t=e.toString().replace(kr,"");return t.match(xr)||t.match(Tr)}function et(e){var t=Qe(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function tt(e,t,n){var i,r,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw S(n)&&n||(n=e.name||et(e)),Ar("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);r=Qe(e),o(r[1].split(Er),function(e){e.replace(Cr,function(e,t,n){i.push(n)})})}e.$inject=i}}else qi(e)?(a=e.length-1,fe(e[a],"fn"),i=e.slice(0,a)):fe(e,"fn",!0);return i}function nt(e,t){function i(e){return function(t,n){if(!b(t))return e(t,n);o(t,s(e))}}function r(e,t){if(pe(e,"service"),(E(t)||qi(t))&&(t=x.instantiate(t)),!t.$get)throw Ar("pget","Provider '{0}' must define $get factory method.",e);return _[e+v]=t}function a(e,t){return function(){var n=k.invoke(t,this);if(w(n))throw Ar("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function l(e,t,n){return r(e,{$get:n!==!1?a(e,t):t})}function c(e,t){return l(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return l(e,g(t),!1)}function d(e,t){pe(e,"constant"),_[e]=t,T[e]=t}function f(e,t){var n=x.get(e+v),i=n.$get;n.$get=function(){var e=k.invoke(i,n);return k.invoke(t,null,{$delegate:e})}}function p(e){de(w(e)||qi(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var i=e[t],r=x.get(i[0]);r[i[1]].apply(r,i[2])}}if(!y.get(e)){y.put(e,!0);try{S(e)?(t=Li(e),n=n.concat(p(t.requires)).concat(t._runBlocks),i(t._invokeQueue),i(t._configBlocks)):E(e)?n.push(x.invoke(e)):qi(e)?n.push(x.invoke(e)):fe(e,"module")}catch(t){throw qi(e)&&(e=e[e.length-1]),t.message&&t.stack&&t.stack.indexOf(t.message)==-1&&(t=t.message+"\n"+t.stack),Ar("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function h(e,n){function i(t,i){if(e.hasOwnProperty(t)){if(e[t]===m)throw Ar("cdep","Circular dependency found: {0}",t+" <- "+$.join(" <- "));return e[t]}try{return $.unshift(t),e[t]=m,e[t]=n(t,i)}catch(n){throw e[t]===m&&delete e[t],n}finally{$.shift()}}function r(e,n,r){for(var o=[],a=nt.$$annotate(e,t,r),s=0,l=a.length;s<l;s++){var c=a[s];if("string"!=typeof c)throw Ar("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:i(c,r))}return o}function o(e){return!(Di<=11)&&("function"==typeof e&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(e)))}function a(e,t,n,i){"string"==typeof n&&(i=n,n=null);var a=r(e,n,i);return qi(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var i=qi(e)?e[e.length-1]:e,o=r(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(i,o))}return{invoke:a,instantiate:s,get:i,annotate:nt.$$annotate,has:function(t){return _.hasOwnProperty(t+v)||e.hasOwnProperty(t)}}}t=t===!0;var m={},v="Provider",$=[],y=new Je([],!0),_={$provide:{provider:i(r),factory:i(l),service:i(c),value:i(u),constant:i(d),decorator:f}},x=_.$injector=h(_,function(e,t){throw Hi.isString(t)&&$.push(t),Ar("unpr","Unknown provider: {0}",$.join(" <- "))}),T={},C=h(T,function(e,t){var i=x.get(e+v,t);return k.invoke(i.$get,i,n,e)}),k=C;_["$injector"+v]={$get:g(C)};var A=p(e);return k=C.get("$injector"),k.strictDi=t,o(A,function(e){e&&k.invoke(e)}),k}function it(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,i){function r(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===R(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(E(e))e=e();else if(V(e)){var n=e[0],i=t.getComputedStyle(n);e="fixed"!==i.position?0:n.getBoundingClientRect().bottom}else x(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var i=e.getBoundingClientRect().top;t.scrollBy(0,i-n)}}else t.scrollTo(0,0)}function s(e){e=S(e)?e:n.hash();var t;e?(t=l.getElementById(e))?a(t):(t=r(l.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var l=t.document;return e&&i.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ge(function(){i.$evalAsync(s)})}),s}]}function rt(e,t){return e||t?e?t?(qi(e)&&(e=e.join(" ")),qi(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ot(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Dr)return n}}function at(e){S(e)&&(e=e.split(" "));var t=ve();return o(e,function(e){e.length&&(t[e]=!0)}),t}function st(e){return b(e)?e:{}}function lt(e,t,n,i){function r(e){try{e.apply(null,j(arguments,1))}finally{if(0===--g)for(;$.length;)try{$.pop()()}catch(e){n.error(e)}}}function a(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function s(){x=null,l(),c()}function l(){y=T(),y=w(y)?null:y,q(y,k)&&(y=k),k=y}function c(){_===u.url()&&b===y||(_=u.url(),b=y,o(E,function(e){e(u.url(),y)}))}var u=this,d=e.location,f=e.history,p=e.setTimeout,h=e.clearTimeout,v={};u.isMock=!1;var g=0,$=[];u.$$completeOutstandingRequest=r,u.$$incOutstandingRequestCount=function(){g++},u.notifyWhenNoOutstandingRequests=function(e){0===g?e():$.push(e)};var y,b,_=d.href,S=t.find("base"),x=null,T=i.history?function(){try{return f.state}catch(e){}}:m;l(),b=y,u.url=function(t,n,r){if(w(r)&&(r=null),d!==e.location&&(d=e.location),f!==e.history&&(f=e.history),t){var o=b===r;if(_===t&&(!i.history||o))return u;var s=_&&Rt(_)===Rt(t);return _=t,b=r,!i.history||s&&o?(s&&!x||(x=t),n?d.replace(t):s?d.hash=a(t):d.href=t,d.href!==t&&(x=t)):(f[n?"replaceState":"pushState"](r,"",t),l(),b=y),u}return x||d.href.replace(/%27/g,"'")},u.state=function(){return y};var E=[],C=!1,k=null;u.onUrlChange=function(t){return C||(i.history&&Mi(e).on("popstate",s),Mi(e).on("hashchange",s),C=!0),E.push(t),t},u.$$applicationDestroyed=function(){Mi(e).off("hashchange popstate",s)},u.$$checkUrlChange=c,u.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},u.defer=function(e,t){var n;return g++,n=p(function(){delete v[n],r(e)},t||0),v[n]=!0,n},u.defer.cancel=function(e){return!!v[e]&&(delete v[e],h(e),r(m),!0)}}function ct(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,i){return new lt(e,i,t,n)}]}function ut(){this.$get=function(){function e(e,n){function r(e){e!=f&&(p?p==e&&(p=e.n):p=e,o(e.n,e.p),o(e,f),f=e,f.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=d({},n,{id:e}),l=ve(),c=n&&n.capacity||Number.MAX_VALUE,u=ve(),f=null,p=null;return t[e]={put:function(e,t){if(!w(t)){if(c<Number.MAX_VALUE){r(u[e]||(u[e]={key:e}))}return e in l||a++,l[e]=t,a>c&&this.remove(p.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=u[e];if(!t)return;r(t)}return l[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=u[e];if(!t)return;t==f&&(f=t.p),t==p&&(p=t.n),o(t.n,t.p),delete u[e]}e in l&&(delete l[e],a--)},removeAll:function(){l=ve(),a=0,u=ve(),f=p=null},destroy:function(){l=null,s=null,u=null,delete t[e]},info:function(){return d({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function dt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ft(e,i){function r(e,t,n){var i={};return o(e,function(e,r){if(e in T)return void(i[r]=T[e]);var o=e.match(/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/);if(!o)throw Br("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");i[r]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||r},o[4]&&(T[e]=i[r])}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),b(n.bindToController)){var i=e.controller,o=e.controllerAs;if(!i)throw Br("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!vt(i,o))throw Br("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function l(e){var t=e.charAt(0);if(!t||t!==Ci(t))throw Br("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Br("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var c={},u="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,$=B("ngSrc,ngSrcset,src,srcset"),_=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/,T=ve();this.directive=function t(n,i){return pe(n,"directive"),S(n)?(l(n),de(i,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],e.factory(n+u,["$injector","$exceptionHandler",function(e,t){var i=[];return o(c[n],function(r,o){try{var a=e.invoke(r);E(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(e){t(e)}}),i}])),c[n].push(i)):o(n,s(t)),this},this.component=function(e,t){function n(e){function n(t){return E(t)||qi(t)?function(n,i){return e.invoke(t,this,{$element:n,$attrs:i})}:t}var r=t.template||t.templateUrl?t.template:"";return{controller:i,controllerAs:vt(t.controller)||t.controllerAs||"$ctrl",template:n(r),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require}}var i=t.controller||m;return o(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,i[t]=e)}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return y(e)?(i.aHrefSanitizationWhitelist(e),this):i.aHrefSanitizationWhitelist()}, this.imgSrcSanitizationWhitelist=function(e){return y(e)?(i.imgSrcSanitizationWhitelist(e),this):i.imgSrcSanitizationWhitelist()};var C=!0;this.debugInfoEnabled=function(e){return y(e)?(C=e,this):C};var k=10;this.onChangesTtl=function(e){return arguments.length?(k=e,this):k},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,i,r,s,l,g,y,T,I,D){function M(){try{if(!--ye)throw ge=n,Br("infchng","{0} $onChanges() iterations reached. Aborting!\n",k);y.$apply(function(){for(var e=0,t=ge.length;e<t;++e)ge[e]();ge=n})}finally{ye++}}function L(e,t){if(t){var n,i,r,o=Object.keys(t);for(n=0,i=o.length;n<i;n++)r=o[n],this[r]=t[r]}else this.$attr={};this.$$element=e}function O(e,t,n){we.innerHTML="<span "+t+">";var i=we.firstChild.attributes,r=i[0];i.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}function N(e,t){try{e.addClass(t)}catch(e){}}function V(e,n,i,r,o){e instanceof Mi||(e=Mi(e));for(var a=0,s=e.length;a<s;a++){var l=e[a];l.nodeType===er&&l.nodeValue.match(/\S+/)&&ke(l,e[a]=t.createElement("span"))}var c=H(e,n,e,i,r,o);V.$$addScopeClass(e);var u=null;return function(t,n,i){de(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),i=i||{};var r=i.parentBoundTranscludeFn,a=i.transcludeControllers,s=i.futureParentElement;r&&r.$$boundTransclude&&(r=r.$$boundTransclude),u||(u=B(s));var l;if(l="html"!==u?Mi(se(u,Mi("<div>").append(e).html())):n?wr.clone.call(e):e,a)for(var d in a)l.data("$"+d+"Controller",a[d].instance);return V.$$addScopeInfo(l,t),n&&n(l,t),c&&c(t,l,l,r),l}}function B(e){var t=e&&e[0];return t&&"foreignobject"!==R(t)&&Bi.call(t).match(/SVG/)?"svg":"html"}function H(e,t,i,r,o,a){function s(e,i,r,o){var a,s,l,c,u,d,f,p,v;if(h){var g=i.length;for(v=new Array(g),u=0;u<m.length;u+=3)f=m[u],v[f]=i[f]}else v=i;for(u=0,d=m.length;u<d;)l=v[m[u++]],a=m[u++],s=m[u++],a?(a.scope?(c=e.$new(),V.$$addScopeInfo(Mi(l),c)):c=e,p=a.transcludeOnThisElement?F(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?F(e,t):null,a(s,c,l,r,p)):s&&s(e,l.childNodes,n,o)}for(var l,c,u,d,f,p,h,m=[],v=0;v<e.length;v++)l=new L,c=G(e[v],[],l,0===v?r:n,o),u=c.length?X(c,e[v],l,t,i,null,[],[],a):null,u&&u.scope&&V.$$addScopeClass(l.$$element),f=u&&u.terminal||!(d=e[v].childNodes)||!d.length?null:H(d,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||f)&&(m.push(v,u,f),p=!0,h=h||u),a=null;return p?s:null}function F(e,t,n){function i(i,r,o,a,s){return i||(i=e.$new(!1,s),i.$$transcluded=!0),t(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var r=i.$$slots=ve();for(var o in t.$$slots)t.$$slots[o]?r[o]=F(e,t.$$slots[o],n):r[o]=null;return i}function G(e,t,n,i,r){var o,a,s=e.nodeType,l=n.$attr;switch(s){case Qi:ee(t,pt(R(e)),"E",i,r);for(var c,u,d,h,m,v,g=e.attributes,$=0,w=g&&g.length;$<w;$++){var y=!1,_=!1;c=g[$],u=c.name,m=ji(c.value),h=pt(u),(v=Te.test(h))&&(u=u.replace(Rr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var x=h.match(Ee);x&&te(x[1])&&(y=u,_=u.substr(0,u.length-5)+"end",u=u.substr(0,u.length-6)),d=pt(u.toLowerCase()),l[d]=u,!v&&n.hasOwnProperty(d)||(n[d]=m,je(e,d)&&(n[d]=!0)),ce(e,t,m,d,v),ee(t,d,"A",i,r,y,_)}if(a=e.className,b(a)&&(a=a.animVal),S(a)&&""!==a)for(;o=p.exec(a);)d=pt(o[2]),ee(t,d,"C",i,r)&&(n[d]=ji(o[3])),a=a.substr(o.index+o[0].length);break;case er:if(11===Di)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===er;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);ae(t,e.nodeValue);break;case tr:try{o=f.exec(e.nodeValue),o&&(d=pt(o[1]),ee(t,d,"M",i,r)&&(n[d]=ji(o[2])))}catch(e){}}return t.sort(re),t}function U(e,t,n){var i=[],r=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Br("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==Qi&&(e.hasAttribute(t)&&r++,e.hasAttribute(n)&&r--),i.push(e),e=e.nextSibling}while(r>0);else i.push(e);return Mi(i)}function W(e,t,n){return function(i,r,o,a,s){return r=U(r[0],t,n),e(i,r,o,a,s)}}function Y(e,t,n,i,r,o){var a;return e?V(t,n,i,r,o):function(){return a||(a=V(t,n,i,r,o),t=n=o=null),a.apply(this,arguments)}}function X(e,t,i,a,s,l,c,u,f){function p(e,t,n,i){e&&(n&&(e=W(e,n,i)),e.require=m.require,e.directiveName=v,(T===m||m.$$isolateScope)&&(e=pe(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=W(t,n,i)),t.require=m.require,t.directiveName=v,(T===m||m.$$isolateScope)&&(t=pe(t,{isolateScope:!0})),u.push(t))}function h(e,r,a,s,l){function f(e,t,i,r){var o;if(A(e)||(r=i,i=t,t=e,e=n),M&&(o=$),i||(i=M?_.parent():_),!r)return l(e,t,o,i,z);var a=l.$$slots[r];if(a)return a(e,t,o,i,z);if(w(a))throw Br("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Q(_))}var p,h,m,v,g,$,y,_,k,I,D;t===a?(k=i,_=i.$$element):(_=Mi(a),k=new L(_,i)),g=r,T?v=r.$new(!0):S&&(g=r.$parent),l&&(y=f,y.$$boundTransclude=l,y.isSlotFilled=function(e){return!!l.$$slots[e]}),x&&($=Z(_,k,y,x,v,r,T)),T&&(V.$$addScopeInfo(_,v,!0,!(C&&(C===T||C===T.$$originalDirective))),V.$$addScopeClass(_,!0),v.$$isolateBindings=T.$$isolateBindings,(I=me(r,k,v,v.$$isolateBindings,T))&&v.$on("$destroy",I));for(var P in $){var O=x[P],N=$[P],B=O.$$bindings.bindToController;N.identifier&&B&&(D=me(g,k,N.instance,B,O));var R=N();R!==N.instance&&(N.instance=R,_.data("$"+O.name+"Controller",R),D&&D(),D=me(g,k,N.instance,B,O))}for(o(x,function(e,t){var n=e.require;e.bindToController&&!qi(n)&&b(n)&&d($[t].instance,K(t,n,_,$))}),o($,function(e){var t=e.instance;E(t.$onInit)&&t.$onInit(),E(t.$onDestroy)&&g.$on("$destroy",function(){t.$onDestroy()})}),p=0,h=c.length;p<h;p++)m=c[p],he(m,m.isolateScope?v:r,_,k,m.require&&K(m.directiveName,m.require,_,$),y);var z=r;for(T&&(T.template||null===T.templateUrl)&&(z=v),e&&e(z,a.childNodes,n,l),p=u.length-1;p>=0;p--)m=u[p],he(m,m.isolateScope?v:r,_,k,m.require&&K(m.directiveName,m.require,_,$),y);o($,function(e){var t=e.instance;E(t.$postLink)&&t.$postLink()})}f=f||{};for(var m,v,g,$,y,_=-Number.MAX_VALUE,S=f.newScopeDirective,x=f.controllerDirectives,T=f.newIsolateScopeDirective,C=f.templateDirective,k=f.nonTlbTranscludeDirective,I=!1,D=!1,M=f.hasElementTranscludeDirective,P=i.$$element=Mi(t),O=l,N=a,B=!1,z=!1,H=0,F=e.length;H<F;H++){m=e[H];var q=m.$$start,X=m.$$end;if(q&&(P=U(t,q,X)),g=n,_>m.priority)break;if((y=m.scope)&&(m.templateUrl||(b(y)?(oe("new/isolated scope",T||S,m,P),T=m):oe("new/isolated scope",T,m,P)),S=S||m),v=m.name,!B&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(var ee,te=H+1;ee=e[te++];)if(ee.transclude&&!ee.$$tlb||ee.replace&&(ee.templateUrl||ee.template)){z=!0;break}B=!0}if(!m.templateUrl&&m.controller&&(y=m.controller,x=x||ve(),oe("'"+v+"' controller",x[v],m,P),x[v]=m),y=m.transclude)if(I=!0,m.$$tlb||(oe("transclusion",k,m,P),k=m),"element"==y)M=!0,_=m.priority,g=P,P=i.$$element=Mi(V.$$createComment(v,i[v])),t=P[0],fe(s,j(g),t),g[0].$$parentNode=g[0].parentNode,N=Y(z,g,a,_,O&&O.name,{nonTlbTranscludeDirective:k});else{var re=ve();if(g=Mi(Ie(t)).contents(),b(y)){g=[];var ae=ve(),le=ve();o(y,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,ae[e]=t,re[t]=null,le[t]=n}),o(P.contents(),function(e){var t=ae[pt(R(e))];t?(le[t]=!0,re[t]=re[t]||[],re[t].push(e)):g.push(e)}),o(le,function(e,t){if(!e)throw Br("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ce in re)re[ce]&&(re[ce]=Y(z,re[ce],a))}P.empty(),N=Y(z,g,a,n,n,{needsNewScope:m.$$isolateScope||m.$$newScope}),N.$$slots=re}if(m.template)if(D=!0,oe("template",C,m,P),C=m,y=E(m.template)?m.template(P,i):m.template,y=xe(y),m.replace){if(O=m,g=_e(y)?[]:mt(se(m.templateNamespace,ji(y))),t=g[0],1!=g.length||t.nodeType!==Qi)throw Br("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v,"");fe(s,P,t);var ue={$attr:{}},de=G(t,[],ue),ge=e.splice(H+1,e.length-(H+1));(T||S)&&J(de,T,S),e=e.concat(de).concat(ge),ne(i,ue),F=e.length}else P.html(y);if(m.templateUrl)D=!0,oe("template",C,m,P),C=m,m.replace&&(O=m),h=ie(e.splice(H,e.length-H),P,i,s,I&&N,c,u,{controllerDirectives:x,newScopeDirective:S!==m&&S,newIsolateScopeDirective:T,templateDirective:C,nonTlbTranscludeDirective:k}),F=e.length;else if(m.compile)try{$=m.compile(P,i,N),E($)?p(null,$,q,X):$&&p($.pre,$.post,q,X)}catch(e){r(e,Q(P))}m.terminal&&(h.terminal=!0,_=Math.max(_,m.priority))}return h.scope=S&&S.scope===!0,h.transcludeOnThisElement=I,h.templateOnThisElement=D,h.transclude=N,f.hasElementTranscludeDirective=M,h}function K(e,t,n,i){var r;if(S(t)){var a=t.match(_),s=t.substring(a[0].length),l=a[1]||a[3],c="?"===a[2];if("^^"===l?n=n.parent():(r=i&&i[s],r=r&&r.instance),!r){var u="$"+s+"Controller";r=l?n.inheritedData(u):n.data(u)}if(!r&&!c)throw Br("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(qi(t)){r=[];for(var d=0,f=t.length;d<f;d++)r[d]=K(e,t[d],n,i)}else b(t)&&(r={},o(t,function(t,o){r[o]=K(e,t,n,i)}));return r||null}function Z(e,t,n,i,r,o,a){var s=ve();for(var l in i){var c=i[l],u={$scope:c===a||c.$$isolateScope?r:o,$element:e,$attrs:t,$transclude:n},d=c.controller;"@"==d&&(d=t[c.name]);var f=g(d,u,!0,c.controllerAs);s[c.name]=f,e.data("$"+c.name+"Controller",f.instance)}return s}function J(e,t,n){for(var i=0,r=e.length;i<r;i++)e[i]=h(e[i],{$$isolateScope:t,$$newScope:n})}function ee(t,n,i,o,s,l,d){if(n===s)return null;var f=null;if(c.hasOwnProperty(n))for(var p,m=e.get(n+u),v=0,g=m.length;v<g;v++)try{if(p=m[v],(w(o)||o>p.priority)&&p.restrict.indexOf(i)!=-1){if(l&&(p=h(p,{$$start:l,$$end:d})),!p.$$bindings){var $=p.$$bindings=a(p,p.name);b($.isolateScope)&&(p.$$isolateBindings=$.isolateScope)}t.push(p),f=p}}catch(e){r(e)}return f}function te(t){if(c.hasOwnProperty(t))for(var n,i=e.get(t+u),r=0,o=i.length;r<o;r++)if(n=i[r],n.multiElement)return!0;return!1}function ne(e,t){var n=t.$attr,i=e.$attr,r=e.$$element;o(e,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),e.$set(r,i,!0,n[r]))}),o(t,function(t,o){"class"==o?(N(r,t),e.class=(e.class?e.class+" ":"")+t):"style"==o?(r.attr("style",r.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,i[o]=n[o])})}function ie(e,t,n,i,r,a,l,c){var u,d,f=[],p=t[0],m=e.shift(),v=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=E(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,$=m.templateNamespace;return t.empty(),s(g).then(function(s){var h,w,y,_;if(s=xe(s),m.replace){if(y=_e(s)?[]:mt(se($,ji(s))),h=y[0],1!=y.length||h.nodeType!==Qi)throw Br("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);w={$attr:{}},fe(i,t,h);var S=G(h,[],w);b(m.scope)&&J(S,!0),e=S.concat(e),ne(n,w)}else h=p,t.html(s);for(e.unshift(v),u=X(e,h,n,r,t,m,a,l,c),o(i,function(e,n){e==h&&(i[n]=t[0])}),d=H(t[0].childNodes,r);f.length;){var x=f.shift(),T=f.shift(),E=f.shift(),C=f.shift(),k=t[0];if(!x.$$destroyed){if(T!==p){var A=T.className;c.hasElementTranscludeDirective&&m.replace||(k=Ie(h)),fe(E,Mi(T),k),N(Mi(k),A)}_=u.transcludeOnThisElement?F(x,u.transclude,C):C,u(d,x,k,i,_)}}f=null}),function(e,t,n,i,r){var o=r;t.$$destroyed||(f?f.push(t,n,i,o):(u.transcludeOnThisElement&&(o=F(t,u.transclude,r)),u(d,t,n,i,o)))}}function re(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function oe(e,t,n,i){function r(e){return e?" (module: "+e+")":""}if(t)throw Br("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,r(t.$$moduleName),n.name,r(n.$$moduleName),e,Q(i))}function ae(e,t){var n=i(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),i=!!t.length;return i&&V.$$addBindingClass(t),function(e,t){var r=t.parent();i||V.$$addBindingClass(r),V.$$addBindingInfo(r,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function se(e,n){switch(e=Ci(e||"html")){case"svg":case"math":var i=t.createElement("div");return i.innerHTML="<"+e+">"+n+"</"+e+">",i.childNodes[0].childNodes;default:return n}}function le(e,t){if("srcdoc"==t)return T.HTML;var n=R(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?T.RESOURCE_URL:void 0}function ce(e,t,n,r,o){var a=le(e,r);o=$[r]||o;var s=i(n,!0,a,o);if(s){if("multiple"===r&&"select"===R(e))throw Br("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Q(e));t.push({priority:100,compile:function(){return{pre:function(e,t,l){var c=l.$$observers||(l.$$observers=ve());if(x.test(r))throw Br("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var u=l[r];u!==n&&(s=u&&i(u,!0,a,o),n=u),s&&(l[r]=s(e),(c[r]||(c[r]=[])).$$inter=!0,(l.$$observers&&l.$$observers[r].$$scope||e).$watch(s,function(e,t){"class"===r&&e!=t?l.$updateClass(e,t):l.$set(r,e)}))}}}})}}function fe(e,n,i){var r,o,a=n[0],s=n.length,l=a.parentNode;if(e)for(r=0,o=e.length;r<o;r++)if(e[r]==a){e[r++]=i;for(var c=r,u=c+s-1,d=e.length;c<d;c++,u++)u<d?e[c]=e[u]:delete e[c];e.length-=s-1,e.context===a&&(e.context=i);break}l&&l.replaceChild(i,a);var f=t.createDocumentFragment();for(r=0;r<s;r++)f.appendChild(n[r]);for(Mi.hasData(a)&&(Mi.data(i,Mi.data(a)),Mi(a).off("$destroy")),Mi.cleanData(f.querySelectorAll("*")),r=1;r<s;r++)delete n[r];n[0]=i,n.length=1}function pe(e,t){return d(function(){return e.apply(null,arguments)},e,t)}function he(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,Q(n))}}function me(e,t,r,a,s){function c(t,n,i){E(r.$onChanges)&&n!==i&&(ge||(e.$$postDigest(M),ge=[]),d||(d={},ge.push(u)),d[t]&&(i=d[t].previousValue),d[t]={previousValue:i,currentValue:n})}function u(){r.$onChanges(d),d=n}var d,f=[];return o(a,function(n,o){var a,u,d,p,h,v=n.attrName,g=n.optional,$=n.mode;switch($){case"@":g||Ei.call(t,v)||(r[o]=t[v]=void 0),t.$observe(v,function(e){if(S(e)){c(o,e,r[o]),r[o]=e}}),t.$$observers[v].$$scope=e,a=t[v],S(a)?r[o]=i(a)(e):P(a)&&(r[o]=a);break;case"=":if(!Ei.call(t,v)){if(g)break;t[v]=void 0}if(g&&!t[v])break;u=l(t[v]),p=u.literal?q:function(e,t){return e===t||e!==e&&t!==t},d=u.assign||function(){throw a=r[o]=u(e),Br("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,s.name)},a=r[o]=u(e);var w=function(t){return p(t,r[o])||(p(t,a)?d(e,t=r[o]):r[o]=t),a=t};w.$stateful=!0,h=n.collection?e.$watchCollection(t[v],w):e.$watch(l(t[v],w),null,u.literal),f.push(h);break;case"<":if(!Ei.call(t,v)){if(g)break;t[v]=void 0}if(g&&!t[v])break;u=l(t[v]),r[o]=u(e),h=e.$watch(u,function(e){c(o,e,r[o]),r[o]=e},u.literal),f.push(h);break;case"&":if((u=t.hasOwnProperty(v)?l(t[v]):m)===m&&g)break;r[o]=function(t){return u(e,t)}}}),f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}var ge,$e=/^\w/,we=t.createElement("div"),ye=k;L.prototype={$normalize:pt,$addClass:function(e){e&&e.length>0&&I.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&I.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=ht(e,t);n&&n.length&&I.addClass(this.$$element,n);var i=ht(t,e);i&&i.length&&I.removeClass(this.$$element,i)},$set:function(e,t,n,i){var a,s=this.$$element[0],l=je(s,e),c=Ue(e),u=e;if(l?(this.$$element.prop(e,t),i=l):c&&(this[c]=t,u=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=ue(e,"-")),"a"===(a=R(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=D(t,"src"===e);else if("img"===a&&"srcset"===e){for(var d="",f=ji(t),p=/\s/.test(f)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,h=f.split(p),m=Math.floor(h.length/2),v=0;v<m;v++){var g=2*v;d+=D(ji(h[g]),!0),d+=" "+ji(h[g+1])}var $=ji(h[2*v]).split(/\s/);d+=D(ji($[0]),!0),2===$.length&&(d+=" "+ji($[1])),this[e]=t=d}n!==!1&&(null===t||w(t)?this.$$element.removeAttr(i):$e.test(i)?this.$$element.attr(i,t):O(this.$$element[0],i,t));var y=this.$$observers;y&&o(y[u],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,i=n.$$observers||(n.$$observers=ve()),r=i[e]||(i[e]=[]);return r.push(t),y.$evalAsync(function(){r.$$inter||!n.hasOwnProperty(e)||w(n[e])||t(n[e])}),function(){z(r,t)}}};var be=i.startSymbol(),Se=i.endSymbol(),xe="{{"==be&&"}}"==Se?v:function(e){return e.replace(/\{\{/g,be).replace(/}}/g,Se)},Te=/^ngAttr[A-Z]/,Ee=/^(.+)Start$/;return V.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[];qi(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:m,V.$$addBindingClass=C?function(e){N(e,"ng-binding")}:m,V.$$addScopeInfo=C?function(e,t,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(r,t)}:m,V.$$addScopeClass=C?function(e,t){N(e,t?"ng-isolate-scope":"ng-scope")}:m,V.$$createComment=function(e,n){var i="";return C&&(i=" "+(e||"")+": "+(n||"")+" "),t.createComment(i)},V}]}function pt(e){return be(e.replace(Rr,""))}function ht(e,t){var n="",i=e.split(/\s+/),r=t.split(/\s+/);e:for(var o=0;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a==r[s])continue e;n+=(n.length>0?" ":"")+a}return n}function mt(e){e=Mi(e);var t=e.length;if(t<=1)return e;for(;t--;){e[t].nodeType===tr&&Ni.call(e,t,1)}return e}function vt(e,t){if(t&&S(t))return t;if(S(e)){var n=Hr.exec(e);if(n)return n[3]}}function gt(){var e={},t=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){pe(t,"controller"),b(t)?d(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(r,o){function a(e,t,n,r){if(!e||!b(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}return function(i,s,l,c){var u,f,p,h;if(l=l===!0,c&&S(c)&&(h=c),S(i)){if(!(f=i.match(Hr)))throw zr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",i);p=f[1],h=h||f[3],i=e.hasOwnProperty(p)?e[p]:he(s.$scope,p,!0)||(t?he(o,p,!0):n),fe(i,p,!0)}if(l){var m=(qi(i)?i[i.length-1]:i).prototype;u=Object.create(m||null),h&&a(s,h,u,p||i.name);return d(function(){var e=r.invoke(i,u,s,p);return e!==u&&(b(e)||E(e))&&(u=e,h&&a(s,h,u,p||i.name)),u},{instance:u,identifier:h})}return u=r.instantiate(i,s,p),h&&a(s,h,u,p||i.name),u}}]}function $t(){this.$get=["$window",function(e){return Mi(e.document)}]}function wt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function yt(e){return b(e)?T(e)?e.toISOString():Y(e):e}function bt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||w(e)||(qi(e)?o(e,function(e){t.push(re(n)+"="+re(yt(e)))}):t.push(re(n)+"="+re(yt(e))))}),t.join("&")}}}function _t(){this.$get=function(){return function(e){function t(e,i,r){null===e||w(e)||(qi(e)?o(e,function(e,n){t(e,i+"["+(b(e)?n:"")+"]")}):b(e)&&!T(e)?a(e,function(e,n){t(e,i+(r?"":"[")+n+(r?"":"]"))}):n.push(re(i)+"="+re(yt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function St(e,t){if(S(e)){var n=e.replace(Wr,"").trim();if(n){var i=t("Content-Type");(i&&0===i.indexOf(qr)||xt(n))&&(e=X(n))}}return e}function xt(e){var t=e.match(jr);return t&&Ur[t[0]].test(e)}function Tt(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=ve();return S(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Ci(ji(e.substr(0,n))),ji(e.substr(n+1)))}):b(e)&&o(e,function(e,n){t(Ci(n),ji(e))}),i}function Et(e){var t;return function(n){if(t||(t=Tt(e)),n){var i=t[Ci(n)];return void 0===i&&(i=null),i}return t}}function Ct(e,t,n,i){return E(i)?i(e,t,n):(o(i,function(i){e=i(e,t,n)}),e)}function kt(e){return 200<=e&&e<300}function At(){var e=this.defaults={transformResponse:[St],transformRequest:[function(e){return!b(e)||I(e)||M(e)||D(e)?e:Y(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:F(Gr),put:F(Gr),patch:F(Gr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return y(e)?(t=!!e,this):t};var r=!0;this.useLegacyPromiseExtensions=function(e){return y(e)?(r=!!e,this):r};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,l,c,u,f,p){function h(t){function a(e){var t=d({},e);return t.data=Ct(e.data,e.headers,e.status,l.transformResponse),kt(e.status)?t:f.reject(t)}function s(e,t){var n,i={};return o(e,function(e,r){E(e)?null!=(n=e(t))&&(i[r]=n):i[r]=e}),i}if(!b(t))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",t);if(!S(t.url))throw i("$http")("badreq","Http request configuration url must be a string. Received: {0}",t.url);var l=d({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);l.headers=function(t){var n,i,r,o=e.headers,a=d({},t.headers);o=d({},o.common,o[Ci(t.method)]);e:for(n in o){i=Ci(n);for(r in a)if(Ci(r)===i)continue e;a[n]=o[n]}return s(a,F(t))}(t),l.method=ki(l.method),l.paramSerializer=S(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var c=function(t){var i=t.headers,r=Ct(t.data,Et(i),n,t.transformRequest);return w(r)&&o(i,function(e,t){"content-type"===Ci(t)&&delete i[t]}),w(t.withCredentials)&&!w(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,r).then(a,a)},u=[c,n],h=f.when(l);for(o($,function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&u.push(e.response,e.responseError)});u.length;){var v=u.shift(),g=u.shift();h=h.then(v,g)}return r?(h.success=function(e){return fe(e,"fn"),h.then(function(t){e(t.data,t.status,t.headers,l)}),h},h.error=function(e){return fe(e,"fn"),h.then(null,function(t){e(t.data,t.status,t.headers,l)}),h}):(h.success=Xr("success"),h.error=Xr("error")),h}function m(i,r){function o(e,n,i,r){function o(){a(n,e,i,r)}p&&(kt(e)?p.put(x,[e,n,Tt(i),r]):p.remove(x)),t?u.$applyAsync(o):(o(),u.$$phase||u.$apply())}function a(e,t,n,r){t=t>=-1?t:0,(kt(t)?$.resolve:$.reject)({data:e,status:t,headers:Et(n),config:i,statusText:r})}function c(e){a(e.data,e.status,F(e.headers()),e.statusText)}function d(){var e=h.pendingRequests.indexOf(i);e!==-1&&h.pendingRequests.splice(e,1)}var p,m,$=f.defer(),_=$.promise,S=i.headers,x=v(i.url,i.paramSerializer(i.params));if(h.pendingRequests.push(i),_.then(d,d),!i.cache&&!e.cache||i.cache===!1||"GET"!==i.method&&"JSONP"!==i.method||(p=b(i.cache)?i.cache:b(e.cache)?e.cache:g),p&&(m=p.get(x),y(m)?L(m)?m.then(c,c):qi(m)?a(m[1],m[0],F(m[2]),m[3]):a(m,200,{},"OK"):p.put(x,_)),w(m)){var T=Dn(i.url)?l()[i.xsrfCookieName||e.xsrfCookieName]:n;T&&(S[i.xsrfHeaderName||e.xsrfHeaderName]=T),s(i.method,x,r,o,S,i.timeout,i.withCredentials,i.responseType)}return _}function v(e,t){return t.length>0&&(e+=(e.indexOf("?")==-1?"?":"&")+t),e}var g=c("$http");e.paramSerializer=S(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var $=[];return o(a,function(e){$.unshift(S(e)?p.get(e):p.invoke(e))}),h.pendingRequests=[],function(e){o(arguments,function(e){h[e]=function(t,n){return h(d({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){h[e]=function(t,n,i){return h(d({},i||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function It(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Dt(){this.$get=["$browser","$window","$document","$xhrFactory",function(e,t,n,i){return Mt(e,i,e.defer,t.angular.callbacks,n[0])}]}function Mt(e,t,n,i,r){function a(e,t,n){var o=r.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){lr(o,"load",a),lr(o,"error",a),r.body.removeChild(o),o=null;var s=-1,l="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},sr(o,"load",a),sr(o,"error",a),r.body.appendChild(o),a}return function(r,s,l,c,u,d,f,p){function h(){$&&$(),b&&b.abort()}function v(t,i,r,o,a){y(S)&&n.cancel(S),$=b=null,t(i,r,o,a),e.$$completeOutstandingRequest(m)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"==Ci(r)){var g="_"+(i.counter++).toString(36);i[g]=function(e){i[g].data=e,i[g].called=!0};var $=a(s.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(e,t){v(c,e,i[g].data,"",t),i[g]=m})}else{var b=t(r,s);b.open(r,s,!0),o(u,function(e,t){y(e)&&b.setRequestHeader(t,e)}),b.onload=function(){var e=b.statusText||"",t="response"in b?b.response:b.responseText,n=1223===b.status?204:b.status;0===n&&(n=t?200:"file"==In(s).protocol?404:0),v(c,n,t,b.getAllResponseHeaders(),e)};var _=function(){v(c,-1,null,null,"")};if(b.onerror=_,b.onabort=_,f&&(b.withCredentials=!0),p)try{b.responseType=p}catch(e){if("json"!==p)throw e}b.send(w(l)?null:l)}if(d>0)var S=n(h,d);else L(d)&&d.then(h)}}function Pt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=Y(e)}return e}function l(e,t,n,i){var r;return r=e.$watch(function(e){return r(),i(e)},t,n)}function c(o,c,p,h){function m(e){try{return e=D(e),h&&!y(e)?e:s(e)}catch(e){i(Kr.interr(o,e))}}if(!o.length||o.indexOf(e)===-1){var v;if(!c){v=g(a(o)),v.exp=o,v.expressions=[],v.$$watchDelegate=l}return v}h=!!h;for(var $,b,_,S=0,x=[],T=[],C=o.length,k=[],A=[];S<C;){if(($=o.indexOf(e,S))==-1||(b=o.indexOf(t,$+u))==-1){S!==C&&k.push(a(o.substring(S)));break}S!==$&&k.push(a(o.substring(S,$))),_=o.substring($+u,b),x.push(_),T.push(n(_,m)),S=b+f,A.push(k.length),k.push("")}if(p&&k.length>1&&Kr.throwNoconcat(o),!c||x.length){var I=function(e){for(var t=0,n=x.length;t<n;t++){if(h&&w(e[t]))return;k[A[t]]=e[t]}return k.join("")},D=function(e){return p?r.getTrusted(p,e):r.valueOf(e)};return d(function(e){var t=0,n=x.length,r=new Array(n);try{for(;t<n;t++)r[t]=T[t](e);return I(r)}catch(e){i(Kr.interr(o,e))}},{exp:o,expressions:x,$$watchDelegate:function(e,t){var n;return e.$watchGroup(T,function(i,r){var o=I(i);E(t)&&t.call(this,o,i!==r?n:o,e),n=o})}})}}var u=e.length,f=t.length,p=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function Lt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,i,r){function o(o,s,l,c){function u(){d?o.apply(null,f):o(m)}var d=arguments.length>4,f=d?j(arguments,4):[],p=t.setInterval,h=t.clearInterval,m=0,v=y(c)&&!c,g=(v?i:n).defer(),$=g.promise;return l=y(l)?l:0,$.$$intervalId=p(function(){v?r.defer(u):e.$evalAsync(u),g.notify(m++),l>0&&m>=l&&(g.resolve(m),h($.$$intervalId),delete a[$.$$intervalId]),v||e.$apply()},s),a[$.$$intervalId]=g,$}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Ot(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ie(t[n]);return t.join("/")}function Nt(e,t){var n=In(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||Jr[n.protocol]||null}function Vt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var i=In(e);t.$$path=decodeURIComponent(n&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=te(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Bt(e,t){if(0===t.indexOf(e))return t.substr(e.length)}function Rt(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function zt(e){return e.replace(/(#.+)|#$/,"$1")}function Ht(e){return e.substr(0,Rt(e).lastIndexOf("/")+1)}function Ft(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function qt(e,t,n){this.$$html5=!0,n=n||"",Nt(e,this),this.$$parse=function(e){var n=Bt(t,e);if(!S(n))throw Qr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Vt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ne(this.$$search),n=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ot(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var o,a,s;return y(o=Bt(e,i))?(a=o,s=y(o=Bt(n,o))?t+(Bt("/",o)||o):e+a):y(o=Bt(t,i))?s=t+o:t==i+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Gt(e,t,n){Nt(e,this),this.$$parse=function(i){var r,o=Bt(e,i)||Bt(t,i);w(o)||"#"!==o.charAt(0)?this.$$html5?r=o:(r="",w(o)&&(e=i,this.replace())):(r=Bt(n,o),w(r)&&(r=o)),Vt(r,this),this.$$path=function(e,t,n){var i,r=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),r.exec(t)?e:(i=r.exec(e),i?i[1]:e)}(this.$$path,r,e),this.$$compose()},this.$$compose=function(){var t=ne(this.$$search),i=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ot(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Rt(e)==Rt(t)&&(this.$$parse(t),!0)}}function jt(e,t,n){this.$$html5=!0,Gt.apply(this,arguments),this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var o,a;return e==Rt(i)?o=i:(a=Bt(t,i))?o=e+n+a:t===i+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ne(this.$$search),i=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=Ot(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+n+this.$$url}}function Ut(e){return function(){return this[e]}}function Wt(e,t){return function(n){return w(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Yt(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(e){return P(e)?(t.enabled=e,this):b(e)?(P(e.enabled)&&(t.enabled=e.enabled),P(e.requireBase)&&(t.requireBase=e.requireBase),P(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,o,a){function s(e,t,n){var r=c.url(),o=c.$$state;try{i.url(e,t,n),c.$$state=i.state()}catch(e){throw c.url(r),c.$$state=o,e}}function l(e,t){n.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}var c,u,d,f=i.baseHref(),p=i.url();if(t.enabled){if(!f&&t.requireBase)throw Qr("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=Ft(p)+(f||"/"),u=r.history?qt:jt}else d=Rt(p),u=Gt;var h=Ht(d);c=new u(d,h,"#"+e),c.$$parseLinkUrl(p,p),c.$$state=i.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var r=Mi(e.target);"a"!==R(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;var s=r.prop("href"),l=r.attr("href")||r.attr("xlink:href");b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=In(s.animVal).href),m.test(s)||!s||r.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(s,l)&&(e.preventDefault(),c.absUrl()!=i.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),zt(c.absUrl())!=zt(p)&&i.url(c.absUrl(),!0);var v=!0;return i.onUrlChange(function(e,t){if(w(Bt(h,e)))return void(a.location.href=e);n.$evalAsync(function(){var i,r=c.absUrl(),o=c.$$state;e=zt(e),c.$$parse(e),c.$$state=t,i=n.$broadcast("$locationChangeStart",e,r,t,o).defaultPrevented,c.absUrl()===e&&(i?(c.$$parse(r),c.$$state=o,s(r,!1,o)):(v=!1,l(r,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var e=zt(i.url()),t=zt(c.absUrl()),o=i.state(),a=c.$$replace,u=e!==t||c.$$html5&&r.history&&o!==c.$$state;(v||u)&&(v=!1,n.$evalAsync(function(){var t=c.absUrl(),i=n.$broadcast("$locationChangeStart",t,e,c.$$state,o).defaultPrevented;c.absUrl()===t&&(i?(c.$$parse(e),c.$$state=o):(u&&s(t,a,o===c.$$state?null:c.$$state),l(e,o)))})),c.$$replace=!1}),c}]}function Xt(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function r(e){ var t=n.console||{},r=t[e]||t.log||m,a=!1;try{a=!!r.apply}catch(e){}return a?function(){var e=[];return o(arguments,function(t){e.push(i(t))}),r.apply(t,e)}:function(e,t){r(e,null==t?"":t)}}return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Kt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw to("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Zt(e){return e+""}function Jt(e,t){if(e){if(e.constructor===e)throw to("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw to("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw to("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw to("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Qt(e,t){if(e){if(e.constructor===e)throw to("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===no||e===io||e===ro)throw to("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function en(e,t){if(e&&(e===(0).constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw to("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t)}function tn(e,t){return void 0!==e?e:t}function nn(e,t){return void 0===e?t:void 0===t?e:e+t}function rn(e,t){return!e(t).$stateful}function on(e,t){var n,i;switch(e.type){case lo.Program:n=!0,o(e.body,function(e){on(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case lo.Literal:e.constant=!0,e.toWatch=[];break;case lo.UnaryExpression:on(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case lo.BinaryExpression:on(e.left,t),on(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case lo.LogicalExpression:on(e.left,t),on(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case lo.ConditionalExpression:on(e.test,t),on(e.alternate,t),on(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case lo.Identifier:e.constant=!1,e.toWatch=[e];break;case lo.MemberExpression:on(e.object,t),e.computed&&on(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case lo.CallExpression:n=!!e.filter&&rn(t,e.callee.name),i=[],o(e.arguments,function(e){on(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&rn(t,e.callee.name)?i:[e];break;case lo.AssignmentExpression:on(e.left,t),on(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case lo.ArrayExpression:n=!0,i=[],o(e.elements,function(e){on(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case lo.ObjectExpression:n=!0,i=[],o(e.properties,function(e){on(e.value,t),n=n&&e.value.constant,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case lo.ThisExpression:e.constant=!1,e.toWatch=[];break;case lo.LocalsExpression:e.constant=!1,e.toWatch=[]}}function an(e){if(1==e.length){var t=e[0].expression,i=t.toWatch;return 1!==i.length?i:i[0]!==t?i:n}}function sn(e){return e.type===lo.Identifier||e.type===lo.MemberExpression}function ln(e){if(1===e.body.length&&sn(e.body[0].expression))return{type:lo.AssignmentExpression,left:e.body[0].expression,right:{type:lo.NGValueParameter},operator:"="}}function cn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===lo.Literal||e.body[0].expression.type===lo.ArrayExpression||e.body[0].expression.type===lo.ObjectExpression)}function un(e){return e.constant}function dn(e,t){this.astBuilder=e,this.$filter=t}function fn(e,t){this.astBuilder=e,this.$filter=t}function pn(e){return"constructor"==e}function hn(e){return E(e.valueOf)?e.valueOf():uo.call(e)}function mn(){var e=ve(),t=ve(),i={true:!0,false:!1,null:null,undefined:n};this.addLiteral=function(e,t){i[e]=t},this.$get=["$filter",function(r){function a(n,i,o){var a,l,h;switch(o=o||$,typeof n){case"string":n=n.trim(),h=n;var w=o?t:e;if(!(a=w[h])){":"===n.charAt(0)&&":"===n.charAt(1)&&(l=!0,n=n.substring(2));var y=o?g:v;a=new co(new so(y),r,y).parse(n),a.constant?a.$$watchDelegate=f:l?a.$$watchDelegate=a.literal?d:u:a.inputs&&(a.$$watchDelegate=c),o&&(a=s(a)),w[h]=a}return p(a,i);case"function":return p(n,i);default:return p(m,i)}}function s(e){function t(t,n,i,r){var o=$;$=!0;try{return e(t,n,i,r)}finally{$=o}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=s(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=s(e.inputs[n]);return t.inputs=e.inputs,t}function l(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=hn(e)))&&(e===t||e!==e&&t!==t)}function c(e,t,i,r,o){var a,s=r.inputs;if(1===s.length){var c=l;return s=s[0],e.$watch(function(e){var t=s(e);return l(t,c)||(a=r(e,n,n,[t]),c=t&&hn(t)),a},t,i,o)}for(var u=[],d=[],f=0,p=s.length;f<p;f++)u[f]=l,d[f]=null;return e.$watch(function(e){for(var t=!1,i=0,o=s.length;i<o;i++){var c=s[i](e);(t||(t=!l(c,u[i])))&&(d[i]=c,u[i]=c&&hn(c))}return t&&(a=r(e,n,n,d)),a},t,i,o)}function u(e,t,n,i){var r,o;return r=e.$watch(function(e){return i(e)},function(e,n,i){o=e,E(t)&&t.apply(this,arguments),y(e)&&i.$$postDigest(function(){y(o)&&r()})},n)}function d(e,t,n,i){function r(e){var t=!0;return o(e,function(e){y(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return i(e)},function(e,n,i){s=e,E(t)&&t.call(this,e,n,i),r(e)&&i.$$postDigest(function(){r(s)&&a()})},n)}function f(e,t,n,i){var r;return r=e.$watch(function(e){return r(),i(e)},t,n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,i=!1,r=n!==d&&n!==u,o=r?function(n,r,o,a){return t(i&&a?a[0]:e(n,r,o,a),n,r)}:function(n,i,r,o){var a=e(n,i,r,o),s=t(a,n,i);return y(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==c?o.$$watchDelegate=e.$$watchDelegate:t.$stateful||(o.$$watchDelegate=c,i=!e.inputs,o.inputs=e.inputs?e.inputs:[e]),o}var h=Wi().noUnsafeEval,v={csp:h,expensiveChecks:!1,literals:H(i)},g={csp:h,expensiveChecks:!0,literals:H(i)},$=!1;return a.$$runningExpensiveChecks=function(){return $},a}]}function vn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return $n(function(t){e.$evalAsync(t)},t)}]}function gn(){this.$get=["$browser","$exceptionHandler",function(e,t){return $n(function(t){e.defer(t)},t)}]}function $n(e,t){function r(){this.$$state={status:0}}function a(e,t){return function(n){t.call(e,n)}}function s(e){var i,r,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;a<s;++a){r=o[a][0],i=o[a][e.status];try{E(i)?r.resolve(i(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(e){r.reject(e),t(e)}}}function l(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){s(t)}))}function c(){this.promise=new r}function u(e){var t=new c,n=0,i=qi(e)?[]:{};return o(e,function(e,r){n++,g(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise}var f=i("$q",TypeError),p=function(){var e=new c;return e.resolve=a(e,e.resolve),e.reject=a(e,e.reject),e.notify=a(e,e.notify),e};d(r.prototype,{then:function(e,t,n){if(w(e)&&w(t)&&w(n))return this;var i=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,e,t,n]),this.$$state.status>0&&l(this.$$state),i.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return v(t,!0,e)},function(t){return v(t,!1,e)},t)}}),d(c.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function n(e){s||(s=!0,o.$$resolve(e))}function i(e){s||(s=!0,o.$$reject(e))}var r,o=this,s=!1;try{(b(e)||E(e))&&(r=e&&e.then),E(r)?(this.promise.$$state.status=-1,r.call(e,n,i,a(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,l(this.promise.$$state))}catch(e){i(e),t(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var i=this.promise.$$state.pending;this.promise.$$state.status<=0&&i&&i.length&&e(function(){for(var e,r,o=0,a=i.length;o<a;o++){r=i[o][0],e=i[o][3];try{r.notify(E(e)?e(n):n)}catch(e){t(e)}}})}});var h=function(e){var t=new c;return t.reject(e),t.promise},m=function(e,t){var n=new c;return t?n.resolve(e):n.reject(e),n.promise},v=function(e,t,n){var i=null;try{E(n)&&(i=n())}catch(e){return m(e,!1)}return L(i)?i.then(function(){return m(e,t)},function(e){return m(e,!1)}):m(e,t)},g=function(e,t,n,i){var r=new c;return r.resolve(e),r.promise.then(t,n,i)},$=g,y=function(e){function t(e){i.resolve(e)}function n(e){i.reject(e)}if(!E(e))throw f("norslvr","Expected resolverFn, got '{0}'",e);var i=new c;return e(t,n),i.promise};return y.prototype=r.prototype,y.defer=p,y.reject=h,y.when=g,y.resolve=$,y.all=u,y}function wn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,r=!!n,o=r?function(e){var t=n(e);return function(){i(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=r,o}]}function yn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=l(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=i("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,c,u){function d(e){e.currentScope.$$destroyed=!0}function f(e){9===Di&&(e.$$childHead&&f(e.$$childHead),e.$$nextSibling&&f(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(x.$$phase)throw n("inprog","{0} already in progress",x.$$phase);x.$$phase=e}function v(){x.$$phase=null}function g(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function $(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function y(){}function _(){for(;k.length;)try{k.shift()()}catch(e){i(e)}s=null}function S(){null===s&&(s=u.defer(function(){x.$apply(_)}))}p.prototype={constructor:p,$new:function(t,n){var i;return n=n||this,t?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),i=new this.$$ChildScope),i.$parent=n,i.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=i,n.$$childTail=i):n.$$childHead=n.$$childTail=i,(t||n!=this)&&i.$on("$destroy",d),i},$watch:function(e,t,n,i){var r=c(e);if(r.$$watchDelegate)return r.$$watchDelegate(this,t,n,r,e);var o=this,s=o.$$watchers,l={fn:t,last:y,get:r,exp:i||e,eq:!!n};return a=null,E(t)||(l.fn=m),s||(s=o.$$watchers=[]),s.unshift(l),g(this,1),function(){z(s,l)>=0&&g(o,-1),a=null}},$watchGroup:function(e,t){function n(){l=!1,c?(c=!1,t(r,r,s)):t(r,i,s)}var i=new Array(e.length),r=new Array(e.length),a=[],s=this,l=!1,c=!0;if(!e.length){var u=!0;return s.$evalAsync(function(){u&&t(r,r,s)}),function(){u=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){r[0]=e,i[0]=n,t(r,e===n?r:i,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){r[t]=e,i[t]=o,l||(l=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,i,s;if(!w(o)){if(b(o))if(r(o)){a!==p&&(a=p,v=a.length=0,d++),t=o.length,v!==t&&(d++,a.length=v=t);for(var l=0;l<t;l++)s=a[l],i=o[l],s!==s&&i!==i||s===i||(d++,a[l]=i)}else{a!==h&&(a=h={},v=0,d++),t=0;for(n in o)Ei.call(o,n)&&(t++,i=o[n],s=a[n],n in a?s!==s&&i!==i||s===i||(d++,a[n]=i):(v++,a[n]=i,d++));if(v>t){d++;for(n in a)Ei.call(o,n)||(v--,delete a[n])}}else a!==o&&(a=o,d++);return d}}function i(){if(m?(m=!1,t(o,o,l)):t(o,s,l),u)if(b(o))if(r(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)Ei.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,l=this,u=t.length>1,d=0,f=c(e,n),p=[],h={},m=!0,v=0;return this.$watch(f,i)},$digest:function(){var e,r,o,l,c,d,f,p,m,g,$,w,b=t,S=this,k=[];h("$digest"),u.$$checkUrlChange(),this===x&&null!==s&&(u.defer.cancel(s),_()),a=null;do{for(p=!1,g=S;T.length;){try{w=T.shift(),w.scope.$eval(w.expression,w.locals)}catch(e){i(e)}a=null}e:do{if(d=g.$$watchers)for(f=d.length;f--;)try{if(e=d[f])if(c=e.get,(r=c(g))===(o=e.last)||(e.eq?q(r,o):"number"==typeof r&&"number"==typeof o&&isNaN(r)&&isNaN(o))){if(e===a){p=!1;break e}}else p=!0,a=e,e.last=e.eq?H(r,null):r,l=e.fn,l(r,o===y?r:o,g),b<5&&($=4-b,k[$]||(k[$]=[]),k[$].push({msg:E(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:o}))}catch(e){i(e)}if(!(m=g.$$watchersCount&&g.$$childHead||g!==S&&g.$$nextSibling))for(;g!==S&&!(m=g.$$nextSibling);)g=g.$parent}while(g=m);if((p||T.length)&&!b--)throw v(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(p||T.length);for(v();C.length;)try{C.shift()()}catch(e){i(e)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===x&&u.$$applicationDestroyed(),g(this,-this.$$watchersCount);for(var t in this.$$listenerCount)$(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,f(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){x.$$phase||T.length||u.defer(function(){T.length&&x.$digest()}),T.push({scope:this,expression:c(e),locals:t})},$$postDigest:function(e){C.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{v()}}catch(e){i(e)}finally{try{x.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&k.push(t),e=c(e),S()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var i=this;do{i.$$listenerCount[e]||(i.$$listenerCount[e]=0),i.$$listenerCount[e]++}while(i=i.$parent);var r=this;return function(){var i=n.indexOf(t);i!==-1&&(n[i]=null,$(r,1,e))}},$emit:function(e,t){var n,r,o,a=[],s=this,l=!1,c={name:e,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=G([c],arguments,1);do{for(n=s.$$listeners[e]||a,c.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,u)}catch(e){i(e)}else n.splice(r,1),r--,o--;if(l)return c.currentScope=null,c;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,r=n,o=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,l,c,u=G([a],arguments,1);r=o;){for(a.currentScope=r,s=r.$$listeners[e]||[],l=0,c=s.length;l<c;l++)if(s[l])try{s[l].apply(null,u)}catch(e){i(e)}else s.splice(l,1),l--,c--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var x=new p,T=x.$$asyncQueue=[],C=x.$$postDigestQueue=[],k=x.$$applyAsyncQueue=[];return x}]}function bn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,i){var r,o=i?t:e;return r=In(n).href,""===r||r.match(o)?n:"unsafe:"+r}}}function _n(e){if("self"===e)return e;if(S(e)){if(e.indexOf("***")>-1)throw fo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Ui(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(C(e))return new RegExp("^"+e.source+"$");throw fo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Sn(e){var t=[];return y(e)&&o(e,function(e){t.push(_n(e))}),t}function xn(){this.SCE_CONTEXTS=po;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Sn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Sn(e)),t},this.$get=["$injector",function(n){function i(e,t){return"self"===e?Dn(t):!!e.exec(t.href)}function r(n){var r,o,a=In(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=d.hasOwnProperty(e)?d[e]:null;if(!n)throw fo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||w(t)||""===t)return t;if("string"!=typeof t)throw fo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof u?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||w(t)||""===t)return t;var n=d.hasOwnProperty(e)?d[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===po.RESOURCE_URL){if(r(t))return t;throw fo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===po.HTML)return c(t);throw fo("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(e){throw fo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var u=o(),d={};return d[po.HTML]=o(u),d[po.CSS]=o(u),d[po.URL]=o(u),d[po.JS]=o(u),d[po.RESOURCE_URL]=o(d[po.URL]),{trustAs:a,getTrusted:l,valueOf:s}}]}function Tn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Di<8)throw fo("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=F(po);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=v),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var r=i.parseAs,a=i.getTrusted,s=i.trustAs;return o(po,function(e,t){var n=Ci(t);i[be("parse_as_"+n)]=function(t){return r(e,t)},i[be("get_trusted_"+n)]=function(t){return a(e,t)},i[be("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function En(){this.$get=["$window","$document",function(e,t){var n,i,r={},o=e.chrome&&e.chrome.app&&e.chrome.app.runtime,a=!o&&e.history&&e.history.pushState,s=p((/android (\d+)/.exec(Ci((e.navigator||{}).userAgent))||[])[1]),l=/Boxee/i.test((e.navigator||{}).userAgent),c=t[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,d=c.body&&c.body.style,f=!1,h=!1;if(d){for(var m in d)if(i=u.exec(m)){n=i[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in d&&"webkit"),f=!!("transition"in d||n+"Transition"in d),h=!!("animation"in d||n+"Animation"in d),!s||f&&h||(f=S(d.webkitTransition),h=S(d.webkitAnimation))}return{history:!(!a||s<4||l),hasEvent:function(e){if("input"===e&&Di<=11)return!1;if(w(r[e])){var t=c.createElement("div");r[e]="on"+e in t}return r[e]},csp:Wi(),vendorPrefix:n,transitions:f,animations:h,android:s}}]}function Cn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,i,r){function o(a,s){function l(e){if(!s)throw ho("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,e.status,e.statusText);return i.reject(e)}o.totalPendingRequests++,S(a)&&t.get(a)||(a=r.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return qi(c)?c=c.filter(function(e){return e!==St}):c===St&&(c=null),n.get(a,d({cache:t,transformResponse:c},e)).finally(function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},l)}return o.totalPendingRequests=0,o}]}function kn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),r=[];return o(i,function(e){var i=Hi.element(e).data("$binding");i&&o(i,function(i){if(n){new RegExp("(^|\\s)"+Ui(t)+"(\\s|\\||$)").test(i)&&r.push(e)}else i.indexOf(t)!=-1&&r.push(e)})}),r},i.findModels=function(e,t,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=n?"=":"*=",a="["+i[r]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},i.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},i}]}function An(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,i,r){function o(o,s,l){E(o)||(l=s,s=o,o=m);var c,u=j(arguments,3),d=y(l)&&!l,f=(d?i:n).defer(),p=f.promise;return c=t.defer(function(){try{f.resolve(o.apply(null,u))}catch(e){f.reject(e),r(e)}finally{delete a[p.$$timeoutId]}d||e.$apply()},s),p.$$timeoutId=c,a[c]=f,p}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function In(e){var t=e;return Di&&(mo.setAttribute("href",t),t=mo.href),mo.setAttribute("href",t),{href:mo.href,protocol:mo.protocol?mo.protocol.replace(/:$/,""):"",host:mo.host,search:mo.search?mo.search.replace(/^\?/,""):"",hash:mo.hash?mo.hash.replace(/^#/,""):"",hostname:mo.hostname,port:mo.port,pathname:"/"===mo.pathname.charAt(0)?mo.pathname:"/"+mo.pathname}}function Dn(e){var t=S(e)?In(e):e;return t.protocol===vo.protocol&&t.host===vo.host}function Mn(){this.$get=g(e)}function Pn(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},i={},r="";return function(){var e,o,a,s,l,c=n.cookie||"";if(c!==r)for(r=c,e=r.split("; "),i={},a=0;a<e.length;a++)o=e[a],(s=o.indexOf("="))>0&&(l=t(o.substring(0,s)),w(i[l])&&(i[l]=t(o.substring(s+1))));return i}}function Ln(){this.$get=Pn}function On(e){function t(i,r){if(b(i)){var a={};return o(i,function(e,n){a[n]=t(n,e)}),a}return e.factory(i+n,r)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",zn),t("date",ti),t("filter",Nn),t("json",ni),t("limitTo",ii),t("lowercase",So),t("number",Hn),t("orderBy",ri),t("uppercase",xo)}function Nn(){return function(e,t,n){if(!r(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Rn(t);switch(s){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Vn(t,n,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function Vn(e,t,n){var i=b(e)&&"$"in e;return t===!0?t=q:E(t)||(t=function(e,t){return!w(e)&&(null===e||null===t?e===t:!(b(t)||b(e)&&!$(e))&&(e=Ci(""+e),t=Ci(""+t),e.indexOf(t)!==-1))}),function(r){return i&&!b(r)?Bn(r,e.$,t,!1):Bn(r,e,t,n)}}function Bn(e,t,n,i,r){var o=Rn(e),a=Rn(t);if("string"===a&&"!"===t.charAt(0))return!Bn(e,t.substring(1),n,i);if(qi(e))return e.some(function(e){return Bn(e,t,n,i)});switch(o){case"object":var s;if(i){for(s in e)if("$"!==s.charAt(0)&&Bn(e[s],t,n,!0))return!0;return!r&&Bn(e,t,n,!1)}if("object"===a){for(s in t){var l=t[s];if(!E(l)&&!w(l)){var c="$"===s;if(!Bn(c?e:e[s],l,n,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Rn(e){return null===e?"null":typeof e}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n,i){return w(n)&&(n=t.CURRENCY_SYM),w(i)&&(i=t.PATTERNS[1].maxFrac),null==e?e:Gn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,i).replace(/\u00A4/g,n)}}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Gn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Fn(e){var t,n,i,r,o,a=0;for((n=e.indexOf($o))>-1&&(e=e.replace($o,"")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;e.charAt(i)==wo;i++);if(i==(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)==wo;)o--;for(n-=i,t=[],r=0;i<=o;i++,r++)t[r]=+e.charAt(i)}return n>go&&(t=t.splice(0,go-1),a=n-1,n=1),{d:t,e:a,i:n}}function qn(e,t,n,i){var r=e.d,o=r.length-e.i;t=w(t)?Math.min(Math.max(n,o),i):+t;var a=t+e.i,s=r[a];if(a>0){r.splice(Math.max(e.i,a));for(var l=a;l<r.length;l++)r[l]=0}else{o=Math.max(0,o),e.i=1,r.length=Math.max(1,a=t+1),r[0]=0;for(var c=1;c<a;c++)r[c]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)r.unshift(0),e.i++;r.unshift(1),e.i++}else r[a-1]++;for(;o<Math.max(0,t);o++)r.push(0);var d=r.reduceRight(function(e,t,n,i){return t+=e,i[n]=t%10,Math.floor(t/10)},0);d&&(r.unshift(d),e.i++)}function Gn(e,t,n,i,r){if(!S(e)&&!x(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,l=Math.abs(e)+"",c="";if(a)c="∞";else{o=Fn(l),qn(o,r,t.minFrac,t.maxFrac);var u=o.d,d=o.i,f=o.e,p=[];for(s=u.reduce(function(e,t){return e&&!t},!0);d<0;)u.unshift(0),d++;d>0?p=u.splice(d):(p=u,u=[0]);var h=[];for(u.length>=t.lgSize&&h.unshift(u.splice(-t.lgSize).join(""));u.length>t.gSize;)h.unshift(u.splice(-t.gSize).join(""));u.length&&h.unshift(u.join("")),c=h.join(n),p.length&&(c+=i+p.join("")),f&&(c+="e+"+f)}return e<0&&!s?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function jn(e,t,n,i){var r="";for((e<0||i&&e<=0)&&(i?e=1-e:(e=-e,r="-")),e=""+e;e.length<t;)e=wo+e;return n&&(e=e.substr(e.length-t)),r+e}function Un(e,t,n,i,r){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&n==-12&&(a=12),jn(a,t,i,r)}}function Wn(e,t,n){return function(i,r){var o=i["get"+e]();return r[ki((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Yn(e,t,n){var i=-1*n,r=i>=0?"+":"";return r+=jn(Math[i>0?"floor":"ceil"](i/60),2)+jn(Math.abs(i%60),2)}function Xn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Kn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Zn(e){return function(t){var n=Xn(t.getFullYear()),i=Kn(t),r=+i-+n;return jn(1+Math.round(r/6048e5),e)}}function Jn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Qn(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ei(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function ti(e){function t(e){var t;if(t=e.match(n)){var i=new Date(0),r=0,o=0,a=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(r=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(i,p(t[1]),p(t[2])-1,p(t[3]));var l=p(t[4]||0)-r,c=p(t[5]||0)-o,u=p(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,l,c,u,d),i}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var a,s,l="",c=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,S(n)&&(n=_o.test(n)?p(n):t(n)),x(n)&&(n=new Date(n)),!T(n)||!isFinite(n.getTime()))return n;for(;i;)s=bo.exec(i),s?(c=G(c,s,1),i=c.pop()):(c.push(i),i=null);var u=n.getTimezoneOffset();return r&&(u=K(r,u),n=J(n,r,!0)),o(c,function(t){a=yo[t],l+=a?a(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function ni(){return function(e,t){return w(t)&&(t=2),Y(e,t)}}function ii(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),isNaN(t)?e:(x(e)&&(e=e.toString()),qi(e)||S(e)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,e.length+n):n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function ri(e){function t(t,n){return n=n?-1:1,t.map(function(t){var i=1,r=v;if(E(t))r=t;else if(S(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(i="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var o=r();r=function(e){return e[o]}}return{get:r,descending:i*n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),n(e))?e:$(e)&&(e=e.toString(),n(e))?e:t}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=o(e,t)),{value:e,type:n}}function s(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,n,o){function l(e,t){return{value:e,predicateValues:u.map(function(n){return a(n.get(e),t)})}}function c(e,t){for(var n=0,i=0,r=u.length;i<r&&!(n=s(e.predicateValues[i],t.predicateValues[i])*u[i].descending);++i);return n}if(null==e)return e;if(!r(e))throw i("orderBy")("notarray","Expected array but received: {0}",e);qi(n)||(n=[n]),0===n.length&&(n=["+"]);var u=t(n,o);u.push({get:function(){return{}},descending:o?-1:1});var d=Array.prototype.map.call(e,l);return d.sort(c),e=d.map(function(e){return e.value})}}function oi(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function ai(e,t){e.$name=t}function si(e,t,i,r,a){var s=this,l=[];s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(i),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=Co,s.$rollbackViewValue=function(){o(l,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(l,function(e){e.$commitViewValue()})},s.$addControl=function(e){pe(e.$name,"input"),l.push(e),e.$name&&(s[e.$name]=e),e.$$parentForm=s},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),o(s.$$success,function(t,n){s.$setValidity(n,null,e)}),z(l,e),e.$$parentForm=Co},_i({ctrl:this,$element:e,set:function(e,t,n){var i=e[t];if(i){i.indexOf(n)===-1&&i.push(n)}else e[t]=[n]},unset:function(e,t,n){var i=e[t];i&&(z(i,n),0===i.length&&delete e[t])},$animate:r}),s.$setDirty=function(){r.removeClass(e,ca),r.addClass(e,ua),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){r.setClass(e,ca,ua+" "+ko),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(l,function(e){e.$setPristine()})},s.$setUntouched=function(){o(l,function(e){e.$setUntouched()})},s.$setSubmitted=function(){r.addClass(e,ko),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function li(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function ci(e,t,n,i,r,o){ui(e,t,n,i,r,o),li(i)}function ui(e,t,n,i,r,o){var a=Ci(t[0].type);if(!r.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,c()})}var l,c=function(e){ if(l&&(o.defer.cancel(l),l=null),!s){var r=t.val(),c=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(r=ji(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,c)}};if(r.hasEvent("input"))t.on("input",c);else{var u=function(e,t,n){l||(l=o.defer(function(){l=null,t&&t.value===n||c(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||u(e,this,this.value)}),r.hasEvent("paste")&&t.on("paste cut",u)}t.on("change",c),zo[a]&&i.$$hasNativeValidators&&a===n.type&&t.on(Ro,function(e){if(!l){var t=this[Ti],n=t.badInput,i=t.typeMismatch;l=o.defer(function(){l=null,t.badInput===n&&t.typeMismatch===i||c(e)})}}),i.$render=function(){var e=i.$isEmpty(i.$viewValue)?"":i.$viewValue;t.val()!==e&&t.val(e)}}function di(e,t){if(T(e))return e;if(S(e)){Vo.lastIndex=0;var n=Vo.exec(e);if(n){var i=+n[1],r=+n[2],o=0,a=0,s=0,l=0,c=Xn(i),u=7*(r-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds()),new Date(i,0,c.getDate()+u,o,a,s,l)}}return NaN}function fi(e,t){return function(n,i){var r,a;if(T(n))return n;if(S(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Mo.test(n))return new Date(n);if(e.lastIndex=0,r=e.exec(n))return r.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(r,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function pi(e,t,i,r){return function(o,a,s,l,c,u,d){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function p(e){return y(e)&&!T(e)?i(e)||n:e}hi(o,a,s,l),ui(o,a,s,l,c,u);var h,m=l&&l.$options&&l.$options.timezone;if(l.$$parserName=e,l.$parsers.push(function(e){if(l.$isEmpty(e))return null;if(t.test(e)){var r=i(e,h);return m&&(r=J(r,m)),r}return n}),l.$formatters.push(function(e){if(e&&!T(e))throw fa("datefmt","Expected `{0}` to be a date",e);return f(e)?(h=e,h&&m&&(h=J(h,m,!0)),d("date")(e,r,m)):(h=null,"")}),y(s.min)||s.ngMin){var v;l.$validators.min=function(e){return!f(e)||w(v)||i(e)>=v},s.$observe("min",function(e){v=p(e),l.$validate()})}if(y(s.max)||s.ngMax){var g;l.$validators.max=function(e){return!f(e)||w(g)||i(e)<=g},s.$observe("max",function(e){g=p(e),l.$validate()})}}}function hi(e,t,i,r){var o=t[0];(r.$$hasNativeValidators=b(o.validity))&&r.$parsers.push(function(e){var i=t.prop(Ti)||{};return i.badInput||i.typeMismatch?n:e})}function mi(e,t,i,r,o,a){if(hi(e,t,i,r),ui(e,t,i,r,o,a),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:Oo.test(e)?parseFloat(e):n}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!x(e))throw fa("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),y(i.min)||i.ngMin){var s;r.$validators.min=function(e){return r.$isEmpty(e)||w(s)||e>=s},i.$observe("min",function(e){y(e)&&!x(e)&&(e=parseFloat(e,10)),s=x(e)&&!isNaN(e)?e:n,r.$validate()})}if(y(i.max)||i.ngMax){var l;r.$validators.max=function(e){return r.$isEmpty(e)||w(l)||e<=l},i.$observe("max",function(e){y(e)&&!x(e)&&(e=parseFloat(e,10)),l=x(e)&&!isNaN(e)?e:n,r.$validate()})}}function vi(e,t,n,i,r,o){ui(e,t,n,i,r,o),li(i),i.$$parserName="url",i.$validators.url=function(e,t){var n=e||t;return i.$isEmpty(n)||Po.test(n)}}function gi(e,t,n,i,r,o){ui(e,t,n,i,r,o),li(i),i.$$parserName="email",i.$validators.email=function(e,t){var n=e||t;return i.$isEmpty(n)||Lo.test(n)}}function $i(e,t,n,i){w(n.name)&&t.attr("name",l());var r=function(e){t[0].checked&&i.$setViewValue(n.value,e&&e.type)};t.on("click",r),i.$render=function(){var e=n.value;t[0].checked=e==i.$viewValue},n.$observe("value",i.$render)}function wi(e,t,n,i,r){var o;if(y(i)){if(o=e(i),!o.constant)throw fa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return o(t)}return r}function yi(e,t,n,i,r,o,a,s){var l=wi(s,e,"ngTrueValue",n.ngTrueValue,!0),c=wi(s,e,"ngFalseValue",n.ngFalseValue,!1),u=function(e){i.$setViewValue(t[0].checked,e&&e.type)};t.on("click",u),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return e===!1},i.$formatters.push(function(e){return q(e,l)}),i.$parsers.push(function(e){return e?l:c})}function bi(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[];e:for(var i=0;i<e.length;i++){for(var r=e[i],o=0;o<t.length;o++)if(r==t[o])continue e;n.push(r)}return n}function r(e){var t=[];return qi(e)?(o(e,function(e){t=t.concat(r(e))}),t):S(e)?e.split(" "):b(e)?(o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,l){function c(e){var t=d(e,1);l.$addClass(t)}function u(e){var t=d(e,-1);l.$removeClass(t)}function d(e,t){var n=s.data("$classCounts")||ve(),i=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function f(e,t){var r=i(t,e),o=i(e,t);r=d(r,1),o=d(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function p(e){if(t===!0||a.$index%2===t){var n=r(e||[]);if(h){if(!q(e,h)){var i=r(h);f(i,n)}}else c(n)}h=F(e)}var h;a.$watch(l[e],p,!0),l.$observe("class",function(t){p(a.$eval(l[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,i){var o=1&n;if(o!==(1&i)){var s=r(a.$eval(l[e]));o===t?c(s):u(s)}})}}}]}function _i(e){function t(e,t,l){w(t)?i("$pending",e,l):r("$pending",e,l),P(t)?t?(d(s.$error,e,l),u(s.$$success,e,l)):(u(s.$error,e,l),d(s.$$success,e,l)):(d(s.$error,e,l),d(s.$$success,e,l)),s.$pending?(o(da,!0),s.$valid=s.$invalid=n,a("",null)):(o(da,!1),s.$valid=Si(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var c;c=s.$pending&&s.$pending[e]?n:!s.$error[e]&&(!!s.$$success[e]||null),a(e,c),s.$$parentForm.$setValidity(e,c,s)}function i(e,t,n){s[e]||(s[e]={}),u(s[e],t,n)}function r(e,t,i){s[e]&&d(s[e],t,i),Si(s[e])&&(s[e]=n)}function o(e,t){t&&!c[e]?(f.addClass(l,e),c[e]=!0):!t&&c[e]&&(f.removeClass(l,e),c[e]=!1)}function a(e,t){e=e?"-"+ue(e,"-"):"",o(sa+e,t===!0),o(la+e,t===!1)}var s=e.ctrl,l=e.$element,c={},u=e.set,d=e.unset,f=e.$animate;c[la]=!(c[sa]=l.hasClass(sa)),s.$setValidity=t}function Si(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function xi(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Ti="validity",Ei=Object.prototype.hasOwnProperty,Ci=function(e){return S(e)?e.toLowerCase():e},ki=function(e){return S(e)?e.toUpperCase():e},Ai=function(e){return S(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Ii=function(e){return S(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(Ci=Ai,ki=Ii);var Di,Mi,Pi,Li,Oi=[].slice,Ni=[].splice,Vi=[].push,Bi=Object.prototype.toString,Ri=Object.getPrototypeOf,zi=i("ng"),Hi=e.angular||(e.angular={}),Fi=0;Di=t.documentMode,m.$inject=[],v.$inject=[];var qi=Array.isArray,Gi=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,ji=function(e){return S(e)?e.trim():e},Ui=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Wi=function(){if(!y(Wi.rules)){var e=t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");Wi.rules={noUnsafeEval:!n||n.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!n||n.indexOf("no-inline-style")!==-1}}else Wi.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return Wi.rules},Yi=function(){if(y(Yi.name_))return Yi.name_;var e,n,i,r,o=Ki.length;for(n=0;n<o;++n)if(i=Ki[n],e=t.querySelector("["+i.replace(":","\\:")+"jq]")){r=e.getAttribute(i+"jq");break}return Yi.name_=r},Xi=/:/g,Ki=["ng-","data-ng-","ng:","x-ng-"],Zi=/[A-Z]/g,Ji=!1,Qi=1,er=3,tr=8,nr=9,ir=11,rr={full:"1.5.3",major:1,minor:5,dot:3,codeName:"diplohaplontic-meiosis"};Ae.expando="ng339";var or=Ae.cache={},ar=1,sr=function(e,t,n){e.addEventListener(t,n,!1)},lr=function(e,t,n){e.removeEventListener(t,n,!1)};Ae._data=function(e){return this.cache[e[this.expando]]||{}};var cr=/([\:\-\_]+(.))/g,ur=/^moz([A-Z])/,dr={mouseleave:"mouseout",mouseenter:"mouseover"},fr=i("jqLite"),pr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,hr=/<|&#?\w+;/,mr=/<([\w:-]+)/,vr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,gr={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};gr.optgroup=gr.option,gr.tbody=gr.tfoot=gr.colgroup=gr.caption=gr.thead,gr.th=gr.td;var $r=Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},wr=Ae.prototype={ready:function(n){function i(){r||(r=!0,n())}var r=!1;"complete"===t.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),Ae(e).on("load",i))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Mi(e>=0?this[e]:this[this.length+e])},length:0,push:Vi,sort:[].sort,splice:[].splice},yr={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){yr[Ci(e)]=e});var br={};o("input,select,option,textarea,button,form,details".split(","),function(e){br[e]=!0});var _r={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Oe,removeData:Pe,hasData:xe,cleanData:Te},function(e,t){Ae[t]=e}),o({data:Oe,inheritedData:He,scope:function(e){return Mi.data(e,"$scope")||He(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Mi.data(e,"$isolateScope")||Mi.data(e,"$isolateScopeNoTemplate")},controller:ze,injector:function(e){return He(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ne,css:function(e,t,n){if(t=be(t),!y(n))return e.style[t];e.style[t]=n},attr:function(e,t,i){var r=e.nodeType;if(r!==er&&2!==r&&r!==tr){var o=Ci(t);if(yr[o]){if(!y(i))return e[t]||(e.attributes.getNamedItem(t)||m).specified?o:n;i?(e[t]=!0,e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(y(i))e.setAttribute(t,i);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?n:a}}},prop:function(e,t,n){if(!y(n))return e[t];e[t]=n},text:function(){function e(e,t){if(w(t)){var n=e.nodeType;return n===Qi||n===er?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(w(t)){if(e.multiple&&"select"===R(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(w(t))return e.innerHTML;De(e,!0),e.innerHTML=t},empty:Fe},function(e,t){Ae.prototype[t]=function(t,n){var i,r,o=this.length;if(e!==Fe&&w(2==e.length&&e!==Ne&&e!==ze?t:n)){if(b(t)){for(i=0;i<o;i++)if(e===Oe)e(this[i],t);else for(r in t)e(this[i],r,t[r]);return this}for(var a=e.$dv,s=w(a)?Math.min(o,1):o,l=0;l<s;l++){var c=e(this[l],t,n);a=a?a+c:c}return a}for(i=0;i<o;i++)e(this[i],t,n);return this}}),o({removeData:Pe,on:function(e,t,i,r){if(y(r))throw fr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Se(e)){var o=Le(e,!0),a=o.events,s=o.handle;s||(s=o.handle=We(e,a));for(var l=t.indexOf(" ")>=0?t.split(" "):[t],c=l.length,u=function(t,n,r){var o=a[t];o||(o=a[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||r||sr(e,t,s)),o.push(i)};c--;)t=l[c],dr[t]?(u(dr[t],Xe),u(t,n,!0)):u(t)}},off:Me,one:function(e,t,n){e=Mi(e),e.on(t,function i(){e.off(t,n),e.off(t,i)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;De(e),o(new Ae(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===Qi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Qi||n===ir){t=new Ae(t);for(var i=0,r=t.length;i<r;i++){var o=t[i];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===Qi){var n=e.firstChild;o(new Ae(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){ke(e,Mi(t).eq(0).clone()[0])},remove:qe,detach:function(e){qe(e,!0)},after:function(e,t){var n=e,i=e.parentNode;t=new Ae(t);for(var r=0,o=t.length;r<o;r++){var a=t[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:Be,removeClass:Ve,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var i=n;w(i)&&(i=!Ne(e,t)),(i?Be:Ve)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==ir?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ie,triggerHandler:function(e,t,n){var i,r,a,s=t.type||t,l=Le(e),c=l&&l.events,u=c&&c[s];u&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:m,type:s,target:e},t.type&&(i=d(i,t)),r=F(u),a=n?[i].concat(n):[i],o(r,function(t){i.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Ae.prototype[t]=function(t,n,i){for(var r,o=0,a=this.length;o<a;o++)w(r)?(r=e(this[o],t,n,i),y(r)&&(r=Mi(r))):Re(r,e(this[o],t,n,i));return y(r)?r:this},Ae.prototype.bind=Ae.prototype.on,Ae.prototype.unbind=Ae.prototype.off}),Je.prototype={put:function(e,t){this[Ze(e,this.nextUid)]=t},get:function(e){return this[Ze(e,this.nextUid)]},remove:function(e){var t=this[e=Ze(e,this.nextUid)];return delete this[e],t}};var Sr=[function(){this.$get=[function(){return Je}]}],xr=/^([^\(]+?)=>/,Tr=/^[^\(]*\(\s*([^\)]*)\)/m,Er=/,/,Cr=/^\s*(_?)(\S+?)\1\s*$/,kr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ar=i("$injector");nt.$$annotate=tt;var Ir=i("$animate"),Dr=1,Mr=function(){this.$get=m},Pr=function(){var e=new Je,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function r(e,t,n){var i=!1;return t&&(t=S(t)?t.split(" "):qi(t)?t:[],o(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){o(t,function(t){var n=e.get(t);if(n){var i=at(t.attr("class")),r="",a="";o(n,function(e,t){e!==!!i[t]&&(e?r+=(r.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){r&&Be(e,r),a&&Ve(e,a)}),e.remove(t)}}),t.length=0}function s(n,o,s){var l=e.get(n)||{},c=r(l,o,!0),u=r(l,s,!1);(c||u)&&(e.put(n,l),t.push(n),1===t.length&&i.$$postDigest(a))}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,i,r){r&&r(),i=i||{},i.from&&e.css(i.from),i.to&&e.css(i.to),(i.addClass||i.removeClass)&&s(e,i.addClass,i.removeClass);var o=new n;return o.complete(),o}}}]},Lr=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw Ir("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var r=n+"-animation";t.$$registeredAnimations[n.substr(1)]=r,e.factory(r,i)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){if(new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)").test(this.$$classNameFilter.toString()))throw Ir("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var i=ot(n);!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,i,r,o){return i=i&&Mi(i),r=r&&Mi(r),i=i||r.parent(),t(n,i,r),e.push(n,"enter",st(o))},move:function(n,i,r,o){return i=i&&Mi(i),r=r&&Mi(r),i=i||r.parent(),t(n,i,r),e.push(n,"move",st(o))},leave:function(t,n){return e.push(t,"leave",st(n),function(){t.remove()})},addClass:function(t,n,i){return i=st(i),i.addClass=rt(i.addclass,n),e.push(t,"addClass",i)},removeClass:function(t,n,i){return i=st(i),i.removeClass=rt(i.removeClass,n),e.push(t,"removeClass",i)},setClass:function(t,n,i,r){return r=st(r),r.addClass=rt(r.addClass,n),r.removeClass=rt(r.removeClass,i),e.push(t,"setClass",r)},animate:function(t,n,i,r,o){return o=st(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,i):i,r=r||"ng-inline-animate",o.tempClasses=rt(o.tempClasses,r),e.push(t,"animate",o)}}}]}],Or=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Nr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,r){function a(e){this.setHost(e);var t=n(),o=function(e){r(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=i[0];n&&n.hidden?o(e):t(e)},this._state=0}return a.chain=function(e,t){function n(){if(i===e.length)return void t(!0);e[i](function(e){if(e===!1)return void t(!1);i++,n()})}var i=0;n()},a.all=function(e,t){function n(n){r=r&&n,++i===e.length&&t(r)}var i=0,r=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:m,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},Vr=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,i){function r(){return e(function(){o(),s||l.complete(),s=!0}),l}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=i||{};a.$$prepared||(a=H(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,l=new n;return{start:r,end:r}}}]},Br=i("$compile");ft.$inject=["$provide","$$sanitizeUriProvider"];var Rr=/^((?:x|data)[\:\-_])/i,zr=i("$controller"),Hr=/^(\S+)(\s+as\s+([\w$]+))?$/,Fr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Mi&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},qr="application/json",Gr={"Content-Type":qr+";charset=utf-8"},jr=/^\[|^\{(?!\{)/,Ur={"[":/]$/,"{":/}$/},Wr=/^\)\]\}',?\n/,Yr=i("$http"),Xr=function(e){return function(){throw Yr("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},Kr=Hi.$interpolateMinErr=i("$interpolate");Kr.throwNoconcat=function(e){throw Kr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},Kr.interr=function(e,t){return Kr("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Zr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Jr={http:80,https:443,ftp:21},Qr=i("$location"),eo={$$html5:!1,$$replace:!1,absUrl:Ut("$$absUrl"),url:function(e){if(w(e))return this.$$url;var t=Zr.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Ut("$$protocol"),host:Ut("$$host"),port:Ut("$$port"),path:Wt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(S(e)||x(e))e=e.toString(),this.$$search=te(e);else{if(!b(e))throw Qr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=H(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:w(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Wt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([jt,Gt,qt],function(e){e.prototype=Object.create(eo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==qt||!this.$$html5)throw Qr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=w(t)?null:t,this}});var to=i("$parse"),no=Function.prototype.call,io=Function.prototype.apply,ro=Function.prototype.bind,oo=ve();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){oo[e]=!0});var ao={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},so=function(e){this.options=e};so.prototype={constructor:so,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),i=n+this.peek(2),r=oo[t],o=oo[n],a=oo[i];if(r||o||a){var s=a?i:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdent:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,to("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Ci(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))e+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",i=e,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(i+=o,r){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=ao[o]||o}r=!1}else if("\\"===o)r=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var lo=function(e,t){this.lexer=e,this.options=t};lo.Program="Program",lo.ExpressionStatement="ExpressionStatement",lo.AssignmentExpression="AssignmentExpression",lo.ConditionalExpression="ConditionalExpression",lo.LogicalExpression="LogicalExpression",lo.BinaryExpression="BinaryExpression",lo.UnaryExpression="UnaryExpression",lo.CallExpression="CallExpression",lo.MemberExpression="MemberExpression",lo.Identifier="Identifier",lo.Literal="Literal",lo.ArrayExpression="ArrayExpression",lo.Property="Property",lo.ObjectExpression="ObjectExpression",lo.ThisExpression="ThisExpression",lo.LocalsExpression="LocalsExpression",lo.NGValueParameter="NGValueParameter",lo.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:lo.Program,body:e}},expressionStatement:function(){return{type:lo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:lo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:lo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:lo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:lo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:lo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:lo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:lo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:lo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:lo.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=H(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:lo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:lo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:lo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:lo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:lo.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.expression())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:lo.Identifier,name:e.text}},constant:function(){return{type:lo.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:lo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:lo.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:lo.ObjectExpression,properties:t}},throwError:function(e,t){throw to("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw to("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw to("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,i){return this.peekAhead(0,e,t,n,i)},peekAhead:function(e,t,n,i,r){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===i||a===r||!t&&!n&&!i&&!r)return o}return!1},expect:function(e,t,n,i){var r=this.peek(e,t,n,i);return!!r&&(this.tokens.shift(),r)},selfReferential:{this:{type:lo.ThisExpression},$locals:{type:lo.LocalsExpression}}},dn.prototype={compile:function(e,t){var i=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},on(r,i.$filter);var a,s="";if(this.stage="assign",a=ln(r)){this.state.computing="assign";var l=this.nextId();this.recurse(a,l),this.return_(l),s="fn.assign="+this.generateFunction("assign","s,v,l")}var c=an(r.body);i.stage="inputs",o(c,function(e,t){var n="fn"+t;i.state[n]={vars:[],body:[],own:{}},i.state.computing=n;var r=i.nextId();i.recurse(e,r),i.return_(r),i.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(r);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",d=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",u)(this.$filter,Kt,Jt,Qt,Zt,en,tn,nn,e);return this.state=this.stage=n,d.literal=cn(r),d.constant=un(r),d},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,i){e.push(n+"=$filter("+t.escape(i)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,i,r,a,s){var l,c,u,d,f=this;if(r=r||m,!s&&y(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,i,r,a,!0));switch(e.type){case lo.Program:o(e.body,function(t,i){f.recurse(t.expression,n,n,function(e){c=e}),i!==e.body.length-1?f.current().body.push(c,";"):f.return_(c)});break;case lo.Literal:d=this.escape(e.value),this.assign(t,d),r(d);break;case lo.UnaryExpression:this.recurse(e.argument,n,n,function(e){c=e}),d=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,d),r(d);break;case lo.BinaryExpression:this.recurse(e.left,n,n,function(e){l=e}),this.recurse(e.right,n,n,function(e){c=e}),d="+"===e.operator?this.plus(l,c):"-"===e.operator?this.ifDefined(l,0)+e.operator+this.ifDefined(c,0):"("+l+")"+e.operator+"("+c+")",this.assign(t,d),r(d);break;case lo.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),r(t);break;case lo.ConditionalExpression: t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),r(t);break;case lo.Identifier:t=t||this.nextId(),i&&(i.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),i.computed=!1,i.name=e.name),Kt(e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),function(){f.if_("inputs"===f.stage||"s",function(){a&&1!==a&&f.if_(f.not(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))})},t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),(f.state.expensiveChecks||pn(e.name))&&f.addEnsureSafeObject(t),r(t);break;case lo.MemberExpression:l=i&&(i.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,l,n,function(){f.if_(f.notNull(l),function(){a&&1!==a&&f.addEnsureSafeAssignContext(l),e.computed?(c=f.nextId(),f.recurse(e.property,c),f.getStringValue(c),f.addEnsureSafeMemberName(c),a&&1!==a&&f.if_(f.not(f.computedMember(l,c)),f.lazyAssign(f.computedMember(l,c),"{}")),d=f.ensureSafeObject(f.computedMember(l,c)),f.assign(t,d),i&&(i.computed=!0,i.name=c)):(Kt(e.property.name),a&&1!==a&&f.if_(f.not(f.nonComputedMember(l,e.property.name)),f.lazyAssign(f.nonComputedMember(l,e.property.name),"{}")),d=f.nonComputedMember(l,e.property.name),(f.state.expensiveChecks||pn(e.property.name))&&(d=f.ensureSafeObject(d)),f.assign(t,d),i&&(i.computed=!1,i.name=e.property.name))},function(){f.assign(t,"undefined")}),r(t)},!!a);break;case lo.CallExpression:t=t||this.nextId(),e.filter?(c=f.filter(e.callee.name),u=[],o(e.arguments,function(e){var t=f.nextId();f.recurse(e,t),u.push(t)}),d=c+"("+u.join(",")+")",f.assign(t,d),r(t)):(c=f.nextId(),l={},u=[],f.recurse(e.callee,c,l,function(){f.if_(f.notNull(c),function(){f.addEnsureSafeFunction(c),o(e.arguments,function(e){f.recurse(e,f.nextId(),n,function(e){u.push(f.ensureSafeObject(e))})}),l.name?(f.state.expensiveChecks||f.addEnsureSafeObject(l.context),d=f.member(l.context,l.name,l.computed)+"("+u.join(",")+")"):d=c+"("+u.join(",")+")",d=f.ensureSafeObject(d),f.assign(t,d)},function(){f.assign(t,"undefined")}),r(t)}));break;case lo.AssignmentExpression:if(c=this.nextId(),l={},!sn(e.left))throw to("lval","Trying to assign a value to a non l-value");this.recurse(e.left,n,l,function(){f.if_(f.notNull(l.context),function(){f.recurse(e.right,c),f.addEnsureSafeObject(f.member(l.context,l.name,l.computed)),f.addEnsureSafeAssignContext(l.context),d=f.member(l.context,l.name,l.computed)+e.operator+c,f.assign(t,d),r(t||d)})},1);break;case lo.ArrayExpression:u=[],o(e.elements,function(e){f.recurse(e,f.nextId(),n,function(e){u.push(e)})}),d="["+u.join(",")+"]",this.assign(t,d),r(d);break;case lo.ObjectExpression:u=[],o(e.properties,function(e){f.recurse(e.value,f.nextId(),n,function(t){u.push(f.escape(e.key.type===lo.Identifier?e.key.name:""+e.key.value)+":"+t)})}),d="{"+u.join(",")+"}",this.assign(t,d),r(d);break;case lo.ThisExpression:this.assign(t,"s"),r("s");break;case lo.LocalsExpression:this.assign(t,"l"),r("l");break;case lo.NGValueParameter:this.assign(t,"v"),r("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var i=this.current().body;i.push("if(",e,"){"),t(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,i,r,o){var a=this;return function(){a.recurse(e,t,n,i,r,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(S(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw to("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},fn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,on(i,n.$filter);var r,a;(r=ln(i))&&(a=this.recurse(r));var s,l=an(i.body);l&&(s=[],o(l,function(e,t){var i=n.recurse(e);e.input=i,s.push(i),e.watchId=t}));var c=[];o(i.body,function(e){c.push(n.recurse(e.expression))});var u=0===i.body.length?m:1===i.body.length?c[0]:function(e,t){var n;return o(c,function(i){n=i(e,t)}),n};return a&&(u.assign=function(e,t,n){return a(e,n,t)}),s&&(u.inputs=s),u.literal=cn(i),u.constant=un(i),u},recurse:function(e,t,i){var r,a,s,l=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case lo.Literal:return this.value(e.value,t);case lo.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case lo.BinaryExpression:return r=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](r,a,t);case lo.LogicalExpression:return r=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](r,a,t);case lo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case lo.Identifier:return Kt(e.name,l.expression),l.identifier(e.name,l.expensiveChecks||pn(e.name),t,i,l.expression);case lo.MemberExpression:return r=this.recurse(e.object,!1,!!i),e.computed||(Kt(e.property.name,l.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(r,a,t,i,l.expression):this.nonComputedMember(r,a,l.expensiveChecks,t,i,l.expression);case lo.CallExpression:return s=[],o(e.arguments,function(e){s.push(l.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,i,r,o){for(var l=[],c=0;c<s.length;++c)l.push(s[c](e,i,r,o));var u=a.apply(n,l,o);return t?{context:n,name:n,value:u}:u}:function(e,n,i,r){var o,c=a(e,n,i,r);if(null!=c.value){Jt(c.context,l.expression),Qt(c.value,l.expression);for(var u=[],d=0;d<s.length;++d)u.push(Jt(s[d](e,n,i,r),l.expression));o=Jt(c.value.apply(c.context,u),l.expression)}return t?{value:o}:o};case lo.AssignmentExpression:return r=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,i,o){var s=r(e,n,i,o),c=a(e,n,i,o);return Jt(s.value,l.expression),en(s.context),s.context[s.name]=c,t?{value:c}:c};case lo.ArrayExpression:return s=[],o(e.elements,function(e){s.push(l.recurse(e))}),function(e,n,i,r){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,i,r));return t?{value:o}:o};case lo.ObjectExpression:return s=[],o(e.properties,function(e){s.push({key:e.key.type===lo.Identifier?e.key.name:""+e.key.value,value:l.recurse(e.value)})}),function(e,n,i,r){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(e,n,i,r);return t?{value:o}:o};case lo.ThisExpression:return function(e){return t?{value:e}:e};case lo.LocalsExpression:return function(e,n){return t?{value:n}:n};case lo.NGValueParameter:return function(e,n,i){return t?{value:i}:i}}},"unary+":function(e,t){return function(n,i,r,o){var a=e(n,i,r,o);return a=y(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,i,r,o){var a=e(n,i,r,o);return a=y(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,i,r,o){var a=!e(n,i,r,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a),l=t(i,r,o,a),c=nn(s,l);return n?{value:c}:c}},"binary-":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a),l=t(i,r,o,a),c=(y(s)?s:0)-(y(l)?l:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)*t(i,r,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)/t(i,r,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)%t(i,r,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)===t(i,r,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)!==t(i,r,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)==t(i,r,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)!=t(i,r,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)<t(i,r,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)>t(i,r,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)<=t(i,r,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)>=t(i,r,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)&&t(i,r,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(i,r,o,a){var s=e(i,r,o,a)||t(i,r,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,i){return function(r,o,a,s){var l=e(r,o,a,s)?t(r,o,a,s):n(r,o,a,s);return i?{value:l}:l}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,i,r,o){return function(a,s,l,c){var u=s&&e in s?s:a;r&&1!==r&&u&&!u[e]&&(u[e]={});var d=u?u[e]:n;return t&&Jt(d,o),i?{context:u,name:e,value:d}:d}},computedMember:function(e,t,n,i,r){return function(o,a,s,l){var c,u,d=e(o,a,s,l);return null!=d&&(c=t(o,a,s,l),c=Zt(c),Kt(c,r),i&&1!==i&&(en(d),d&&!d[c]&&(d[c]={})),u=d[c],Jt(u,r)),n?{context:d,name:c,value:u}:u}},nonComputedMember:function(e,t,i,r,o,a){return function(s,l,c,u){var d=e(s,l,c,u);o&&1!==o&&(en(d),d&&!d[t]&&(d[t]={}));var f=null!=d?d[t]:n;return(i||pn(t))&&Jt(f,a),r?{context:d,name:t,value:f}:f}},inputs:function(e,t){return function(n,i,r,o){return o?o[t]:e(n,i,r)}}};var co=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new lo(e,n),this.astCompiler=n.csp?new fn(this.ast,t):new dn(this.ast,t)};co.prototype={constructor:co,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var uo=Object.prototype.valueOf,fo=i("$sce"),po={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ho=i("$compile"),mo=t.createElement("a"),vo=In(e.location.href);Pn.$inject=["$document"],On.$inject=["$provide"];var go=22,$o=".",wo="0";zn.$inject=["$locale"],Hn.$inject=["$locale"];var yo={yyyy:Un("FullYear",4,0,!1,!0),yy:Un("FullYear",2,0,!0,!0),y:Un("FullYear",1,0,!1,!0),MMMM:Wn("Month"),MMM:Wn("Month",!0),MM:Un("Month",2,1),M:Un("Month",1,1),LLLL:Wn("Month",!1,!0),dd:Un("Date",2),d:Un("Date",1),HH:Un("Hours",2),H:Un("Hours",1),hh:Un("Hours",2,-12),h:Un("Hours",1,-12),mm:Un("Minutes",2),m:Un("Minutes",1),ss:Un("Seconds",2),s:Un("Seconds",1),sss:Un("Milliseconds",3),EEEE:Wn("Day"),EEE:Wn("Day",!0),a:Jn,Z:Yn,ww:Zn(2),w:Zn(1),G:Qn,GG:Qn,GGG:Qn,GGGG:ei},bo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,_o=/^\-?\d+$/;ti.$inject=["$locale"];var So=g(Ci),xo=g(ki);ri.$inject=["$parse"];var To=g({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Bi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Eo={};o(yr,function(e,t){function n(e,n,r){e.$watch(r[i],function(e){r.$set(t,!!e)})}if("multiple"!=e){var i=pt("ng-"+t),r=n;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[i]&&n(e,t,r)}),Eo[i]=function(){return{restrict:"A",priority:100,link:r}}}}),o(_r,function(e,t){Eo[t]=function(){return{priority:100,link:function(e,n,i){if("ngPattern"===t&&"/"==i.ngPattern.charAt(0)){var r=i.ngPattern.match(/^\/(.+)\/([a-z]*)$/);if(r)return void i.$set("ngPattern",new RegExp(r[1],r[2]))}e.$watch(i[t],function(e){i.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=pt("ng-"+e);Eo[t]=function(){return{priority:99,link:function(n,i,r){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Bi.call(i.prop("href"))&&(a="xlinkHref",r.$attr[a]="xlink:href",o=null),r.$observe(t,function(t){if(!t)return void("href"===e&&r.$set(a,null));r.$set(a,t),Di&&o&&i.prop(o,r[a])})}}}});var Co={$addControl:m,$$renameControl:ai,$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m},ko="ng-submitted";si.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Ao=function(e){return["$timeout","$parse",function(t,i){function r(e){return""===e?i('this[""]').assign:i(e).assign||m}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:si,compile:function(i,o){i.addClass(ca).addClass(sa);var a=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(e,i,o,s){var l=s[0];if(!("action"in o)){var c=function(t){e.$apply(function(){l.$commitViewValue(),l.$setSubmitted()}),t.preventDefault()};sr(i[0],"submit",c),i.on("$destroy",function(){t(function(){lr(i[0],"submit",c)},0,!1)})}(s[1]||l.$$parentForm).$addControl(l);var u=a?r(l.$name):m;a&&(u(e,l),o.$observe(a,function(t){l.$name!==t&&(u(e,n),l.$$parentForm.$$renameControl(l,t),(u=r(l.$name))(e,l))})),i.on("$destroy",function(){l.$$parentForm.$removeControl(l),u(e,n),d(l,Co)})}}}}}]},Io=Ao(),Do=Ao(!0),Mo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Po=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Lo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Oo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,No=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Vo=/^(\d{4,})-W(\d\d)$/,Bo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ro="keydown wheel mousedown",zo=ve();o("date,datetime-local,month,time,week".split(","),function(e){zo[e]=!0});var Ho={text:ci,date:pi("date",/^(\d{4,})-(\d{2})-(\d{2})$/,fi(/^(\d{4,})-(\d{2})-(\d{2})$/,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":pi("datetimelocal",No,fi(No,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:pi("time",Bo,fi(Bo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:pi("week",Vo,di,"yyyy-Www"),month:pi("month",/^(\d{4,})-(\d\d)$/,fi(/^(\d{4,})-(\d\d)$/,["yyyy","MM"]),"yyyy-MM"),number:mi,url:vi,email:gi,radio:$i,checkbox:yi,hidden:m,button:m,submit:m,reset:m,file:m},Fo=["$browser","$sniffer","$filter","$parse",function(e,t,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,a,s){s[0]&&(Ho[Ci(a.type)]||Ho.text)(r,o,a,s[0],t,e,n,i)}}}}],qo=/^(true|false|\d+)$/,Go=function(){return{restrict:"A",priority:100,compile:function(e,t){return qo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},jo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,i){e.$$addBindingInfo(n,i.ngBind),n=n[0],t.$watch(i.ngBind,function(e){n.textContent=w(e)?"":e})}}}}],Uo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,i,r){var o=e(i.attr(r.$attr.ngBindTemplate));t.$$addBindingInfo(i,o.expressions),i=i[0],r.$observe("ngBindTemplate",function(e){i.textContent=w(e)?"":e})}}}}],Wo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(i,r){var o=t(r.ngBindHtml),a=t(r.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(i),function(t,i,r){n.$$addBindingInfo(i,r.ngBindHtml),t.$watch(a,function(){i.html(e.getTrustedHtml(o(t))||"")})}}}}],Yo=g({restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Xo=bi("",!0),Ko=bi("Odd",0),Zo=bi("Even",1),Jo=oi({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),Qo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ea={},ta={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=pt("ng-"+e);ea[t]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var r=function(){a(t,{$event:n})};ta[e]&&i.$$phase?t.$evalAsync(r):t.$apply(r)})}}}}]});var na=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,l,c;n.$watch(r.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=t.$$createComment("end ngIf",r.ngIf),s={clone:n},e.enter(n,i.parent(),i)}):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),s&&(c=me(s.clone),e.leave(c).then(function(){c=null}),s=null))})}}}],ia=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Hi.noop,compile:function(i,r){var o=r.ngInclude||r.src,a=r.onload||"",s=r.autoscroll;return function(i,r,l,c,u){var d,f,p,h=0,m=function(){f&&(f.remove(),f=null),d&&(d.$destroy(),d=null),p&&(n.leave(p).then(function(){f=null}),f=p,p=null)};i.$watch(o,function(o){var l=function(){!y(s)||s&&!i.$eval(s)||t()},f=++h;o?(e(o,!0).then(function(e){if(!i.$$destroyed&&f===h){var t=i.$new();c.template=e;var s=u(t,function(e){m(),n.enter(e,null,r).then(l)});d=t,p=s,d.$emit("$includeContentLoaded",o),i.$eval(a)}},function(){i.$$destroyed||f===h&&(m(),i.$emit("$includeContentError",o))}),i.$emit("$includeContentRequested",o)):(m(),c.template=null)})}}}}],ra=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,o){if(Bi.call(i[0]).match(/SVG/))return i.empty(),void e(Ee(o.template,t).childNodes)(n,function(e){i.append(e)},{futureParentElement:i});i.html(o.template),e(i.contents())(n)}}}],oa=oi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),aa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,i,r){var a=t.attr(i.$attr.ngList)||", ",s="false"!==i.ngTrim,l=s?ji(a):a,c=function(e){if(!w(e)){var t=[];return e&&o(e.split(l),function(e){e&&t.push(s?ji(e):e)}),t}};r.$parsers.push(c),r.$formatters.push(function(e){return qi(e)?e.join(a):n}),r.$isEmpty=function(e){return!e||!e.length}}}},sa="ng-valid",la="ng-invalid",ca="ng-pristine",ua="ng-dirty",da="ng-pending",fa=i("ngModel"),pa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,i,r,a,s,l,c,u,d){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=d(i.name||"",!1)(e),this.$$parentForm=Co;var f,p=a(i.ngModel),h=p.assign,v=p,g=h,$=null,b=this;this.$$setOptions=function(e){if(b.$options=e,e&&e.getterSetter){var t=a(i.ngModel+"()"),n=a(i.ngModel+"($$$p)");v=function(e){var n=p(e);return E(n)&&(n=t(e)),n},g=function(e,t){E(p(e))?n(e,{$$$p:t}):h(e,t)}}else if(!p.assign)throw fa("nonassign","Expression '{0}' is non-assignable. Element: {1}",i.ngModel,Q(r))},this.$render=m,this.$isEmpty=function(e){return w(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){b.$isEmpty(e)?(s.removeClass(r,"ng-not-empty"),s.addClass(r,"ng-empty")):(s.removeClass(r,"ng-empty"),s.addClass(r,"ng-not-empty"))};var _=0;_i({ctrl:this,$element:r,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:s}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,s.removeClass(r,ua),s.addClass(r,ca)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,s.removeClass(r,ca),s.addClass(r,ua),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,s.setClass(r,"ng-untouched","ng-touched")},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,s.setClass(r,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){l.cancel($),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var e=b.$$lastCommittedViewValue,t=b.$$rawModelValue,i=b.$valid,r=b.$modelValue,o=b.$options&&b.$options.allowInvalid;b.$$runValidators(t,e,function(e){o||i===e||(b.$modelValue=e?t:n,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(e,t,i){function r(e,t){s===_&&b.$setValidity(e,t)}function a(e){s===_&&i(e)}_++;var s=_;return function(){var e=b.$$parserName||"parse";return w(f)?(r(e,null),!0):(f||(o(b.$validators,function(e,t){r(t,null)}),o(b.$asyncValidators,function(e,t){r(t,null)})),r(e,f),f)}()&&function(){var n=!0;return o(b.$validators,function(i,o){var a=i(e,t);n=n&&a,r(o,a)}),!!n||(o(b.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var i=[],s=!0;o(b.$asyncValidators,function(o,a){var l=o(e,t);if(!L(l))throw fa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",l);r(a,n),i.push(l.then(function(){r(a,!0)},function(){s=!1,r(a,!1)}))}),i.length?u.all(i).then(function(){a(s)},m):a(!0)}():void a(!1)},this.$commitViewValue=function(){var e=b.$viewValue;l.cancel($),(b.$$lastCommittedViewValue!==e||""===e&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(e),b.$$lastCommittedViewValue=e,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){b.$modelValue!==a&&b.$$writeModelToScope()}var i=b.$$lastCommittedViewValue,r=i;if(f=!w(r)||n)for(var o=0;o<b.$parsers.length;o++)if(r=b.$parsers[o](r),w(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=v(e));var a=b.$modelValue,s=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,s&&(b.$modelValue=r,t()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(e){s||(b.$modelValue=e?r:n,t())})},this.$$writeModelToScope=function(){g(e,b.$modelValue),o(b.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})},this.$setViewValue=function(e,t){b.$viewValue=e,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,i=0,r=b.$options;r&&y(r.debounce)&&(n=r.debounce,x(n)?i=n:x(n[t])?i=n[t]:x(n.default)&&(i=n.default)),l.cancel($),i?$=l(function(){b.$commitViewValue()},i):c.$$phase?b.$commitViewValue():e.$apply(function(){b.$commitViewValue()})},e.$watch(function(){var t=v(e);if(t!==b.$modelValue&&(b.$modelValue===b.$modelValue||t===t)){b.$modelValue=b.$$rawModelValue=t,f=n;for(var i=b.$formatters,r=i.length,o=t;r--;)o=i[r](o);b.$viewValue!==o&&(b.$$updateEmptyClasses(o),b.$viewValue=b.$$lastCommittedViewValue=o,b.$render(),b.$$runValidators(t,o,m))}return t})}],ha=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:pa,priority:1,compile:function(t){return t.addClass(ca).addClass("ng-untouched").addClass(sa),{pre:function(e,t,n,i){var r=i[0],o=i[1]||r.$$parentForm;r.$$setOptions(i[2]&&i[2].$options),o.$addControl(r),n.$observe("name",function(e){r.$name!==e&&r.$$parentForm.$$renameControl(r,e)}),e.$on("$destroy",function(){r.$$parentForm.$removeControl(r)})},post:function(t,n,i,r){var o=r[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],ma=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=H(e.$eval(t.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=ji(this.$options.updateOn.replace(/(\s+|^)default(\s+|$)/,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},va=oi({terminal:!0,priority:1e3}),ga=i("ngOptions"),$a=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,wa=["$compile","$parse",function(e,n){function i(e,t,i){function o(e,t,n,i,r){this.selectValue=e,this.viewValue=t,this.label=n,this.group=i,this.disabled=r}function a(e){var t;if(!c&&r(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match($a);if(!s)throw ga("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Q(t));var l=s[5]||s[7],c=s[6],u=/ as /.test(s[0])&&s[1],d=s[9],f=n(s[2]?s[1]:l),p=u&&n(u),h=p||f,m=d&&n(d),v=d?function(e,t){return m(i,t)}:function(e){return Ze(e)},g=function(e,t){return v(e,S(e,t))},$=n(s[2]||s[1]),w=n(s[3]||""),y=n(s[4]||""),b=n(s[8]),_={},S=c?function(e,t){return _[c]=t,_[l]=e,_}:function(e){return _[l]=e,_};return{trackBy:d,getTrackByValue:g,getWatchables:n(b,function(e){var t=[];e=e||[];for(var n=a(e),r=n.length,o=0;o<r;o++){var l=e===n?o:n[o],c=e[l],u=S(c,l),d=v(c,u);if(t.push(d),s[2]||s[1]){var f=$(i,u);t.push(f)}if(s[4]){var p=y(i,u);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},n=b(i)||[],r=a(n),s=r.length,l=0;l<s;l++){var c=n===r?l:r[l],u=n[c],f=S(u,c),p=h(i,f),m=v(p,f),_=$(i,f),x=w(i,f),T=y(i,f),E=new o(m,p,_,x,T);e.push(E),t[m]=E}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[g(e)]},getViewValueFromOption:function(e){return d?Hi.copy(e.viewValue):e.viewValue}}}}}function a(t,n,r,a){function c(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function u(e,t,n,i){var r;return t&&Ci(t.nodeName)===n?r=t:(r=i.cloneNode(!1),t?e.insertBefore(r,t):e.appendChild(r)),r}function d(e){for(var t;e;)t=e.nextSibling,qe(e),e=t}function f(e){var t=h&&h[0],n=S&&S[0];if(t||n)for(;e&&(e===t||e===n||e.nodeType===tr||"option"===R(e)&&""===e.value);)e=e.nextSibling;return e}function p(){var e=x&&m.readValue();x=T.getOptions();var t={},i=n[0].firstChild;if(_&&n.prepend(h),i=f(i),x.items.forEach(function(e){var r,o,a;y(e.group)?(r=t[e.group],r||(o=u(n[0],i,"optgroup",l),i=o.nextSibling,o.label=e.group,r=t[e.group]={groupElement:o,currentOptionElement:o.firstChild}),a=u(r.groupElement,r.currentOptionElement,"option",s),c(e,a),r.currentOptionElement=a.nextSibling):(a=u(n[0],i,"option",s),c(e,a),i=a.nextSibling)}),Object.keys(t).forEach(function(e){d(t[e].currentOptionElement)}),d(i),v.$render(),!v.$isEmpty(e)){var r=m.readValue();(T.trackBy||g?q(e,r):e===r)||(v.$setViewValue(r),v.$render())}}for(var h,m=a[0],v=a[1],g=r.multiple,$=0,w=n.children(),b=w.length;$<b;$++)if(""===w[$].value){h=w.eq($);break}var _=!!h,S=Mi(s.cloneNode(!1));S.val("?");var x,T=i(r.ngOptions,n,t),E=function(){_||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)},C=function(){_||h.remove()},k=function(){n.prepend(S),n.val("?"),S.prop("selected",!0),S.attr("selected",!0)},A=function(){S.remove()};g?(v.$isEmpty=function(e){return!e||0===e.length},m.writeValue=function(e){x.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=x.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},m.readValue=function(){var e=n.val()||[],t=[];return o(e,function(e){var n=x.selectValueMap[e];n&&!n.disabled&&t.push(x.getViewValueFromOption(n))}),t},T.trackBy&&t.$watchCollection(function(){if(qi(v.$viewValue))return v.$viewValue.map(function(e){return T.getTrackByValue(e)})},function(){v.$render()})):(m.writeValue=function(e){var t=x.getOptionFromViewValue(e);t&&!t.disabled?(n[0].value!==t.selectValue&&(A(),C(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||_?(A(),E()):(C(),k())},m.readValue=function(){var e=x.selectValueMap[n.val()];return e&&!e.disabled?(C(),A(),x.getViewValueFromOption(e)):null},T.trackBy&&t.$watch(function(){return T.getTrackByValue(v.$viewValue)},function(){v.$render()})),_?(h.remove(),e(h)(t),h.removeClass("ng-scope")):h=Mi(s.cloneNode(!1)),p(),t.$watchCollection(T.getWatchables,p)}var s=t.createElement("option"),l=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,i){i[0].registerOption=m},post:a}}}],ya=["$locale","$interpolate","$log",function(e,t,n){var i=/^when(Minus)?(.+)$/;return{link:function(r,a,s){function l(e){a.text(e||"")}var c,u=s.count,d=s.$attr.when&&a.attr(s.$attr.when),f=s.offset||0,p=r.$eval(d)||{},h={},v=t.startSymbol(),g=t.endSymbol(),$=v+u+"-"+f+g,y=Hi.noop;o(s,function(e,t){var n=i.exec(t);if(n){p[(n[1]?"-":"")+Ci(n[2])]=a.attr(s.$attr[t])}}),o(p,function(e,n){h[n]=t(e.replace(/{}/g,$))}),r.$watch(u,function(t){var i=parseFloat(t),o=isNaN(i);if(o||i in p||(i=e.pluralCat(i-f)),i!==c&&!(o&&x(c)&&isNaN(c))){y();var a=h[i];w(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+d),y=m,l()):y=r.$watch(a,l),c=i}})}}}],ba=["$parse","$animate","$compile",function(e,t,a){var s=i("ngRepeat"),l=function(e,t,n,i,r,o,a){e[n]=i,r&&(e[r]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},c=function(e){return e.clone[0]},u=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,d){var f=d.ngRepeat,p=a.$$createComment("end ngRepeat",f),h=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var m=h[1],v=h[2],g=h[3],$=h[4];if(!(h=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var w=h[3]||h[1],y=h[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var b,_,S,x,T={$id:Ze};return $?b=e($):(S=function(e,t){return Ze(t)},x=function(e){return e}),function(e,i,a,d,h){b&&(_=function(t,n,i){return y&&(T[y]=t),T[w]=n,T.$index=i,b(e,T)});var m=ve();e.$watchCollection(v,function(a){var d,v,$,b,T,E,C,k,A,I,D,M,P=i[0],L=ve();if(g&&(e[g]=a),r(a))A=a,k=_||S;else{k=_||x,A=[] ;for(var O in a)Ei.call(a,O)&&"$"!==O.charAt(0)&&A.push(O)}for(b=A.length,D=new Array(b),d=0;d<b;d++)if(T=a===A?d:A[d],E=a[T],C=k(T,E,d),m[C])I=m[C],delete m[C],L[C]=I,D[d]=I;else{if(L[C])throw o(D,function(e){e&&e.scope&&(m[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,C,E);D[d]={id:C,scope:n,clone:n},L[C]=!0}for(var N in m){if(I=m[N],M=me(I.clone),t.leave(M),M[0].parentNode)for(d=0,v=M.length;d<v;d++)M[d].$$NG_REMOVED=!0;I.scope.$destroy()}for(d=0;d<b;d++)if(T=a===A?d:A[d],E=a[T],I=D[d],I.scope){$=P;do{$=$.nextSibling}while($&&$.$$NG_REMOVED);c(I)!=$&&t.move(me(I.clone),null,P),P=u(I),l(I.scope,d,w,E,y,T,b)}else h(function(e,n){I.scope=n;var i=p.cloneNode(!1);e[e.length++]=i,t.enter(e,null,P),P=i,I.clone=e,L[I.id]=I,l(I.scope,d,w,E,y,T,b)});m=L})}}}}],_a=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Sa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],xa=oi(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ta=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,a){var s=r.ngSwitch||r.on,l=[],c=[],u=[],d=[],f=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var i,r;for(i=0,r=u.length;i<r;++i)e.cancel(u[i]);for(u.length=0,i=0,r=d.length;i<r;++i){var s=me(c[i].clone);d[i].$destroy();(u[i]=e.leave(s)).then(f(u,i))}c.length=0,d.length=0,(l=a.cases["!"+n]||a.cases["?"])&&o(l,function(n){n.transclude(function(i,r){d.push(r);var o=n.element;i[i.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:i};c.push(a),e.enter(i,o.parent(),o)})})})}}}],Ea=oi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:t})}}),Ca=oi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:t})}}),ka=i("ngTransclude"),Aa=oi({restrict:"EAC",link:function(e,t,n,i,r){function o(e){e.length&&(t.empty(),t.append(e))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!r)throw ka("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(t));r(o,null,n.ngTransclude||n.ngTranscludeSlot)}}),Ia=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var i=n.id,r=t[0].text;e.put(i,r)}}}}],Da={$setViewValue:m,$render:m},Ma=["$element","$scope",function(e,i){var r=this,o=new Je;r.ngModelCtrl=Da,r.unknownOption=Mi(t.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Ze(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},i.$on("$destroy",function(){r.renderUnknownOption=m}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(e,t){if(t[0].nodeType!==tr){pe(e,'"option value"'),""===e&&(r.emptyOption=t);var n=o.get(e)||0;o.put(e,n+1),r.ngModelCtrl.$render(),xi(t)}},r.removeOption=function(e){var t=o.get(e);t&&(1===t?(o.remove(e),""===e&&(r.emptyOption=n)):o.put(e,t-1))},r.hasOption=function(e){return!!o.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a;n.$observe("value",function(e){y(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Pa=function(){function e(e,t,n,i){var r=i[1];if(r){var a=i[0];if(a.ngModelCtrl=r,t.on("change",function(){e.$apply(function(){r.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Je(e);o(t.find("option"),function(e){e.selected=y(n.get(e.value))})};var s,l=NaN;e.$watch(function(){l!==r.$viewValue||q(s,r.$viewValue)||(s=F(r.$viewValue),r.$render()),l=r.$viewValue}),r.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,i){var r=i[1];if(r){var o=i[0];r.$render=function(){o.writeValue(r.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ma,priority:1,link:{pre:e,post:t}}},La=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(y(n.value))var i=e(n.value,!0);else{var r=e(t.text(),!0);r||n.$set("value",t.text())}return function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,i,r)}}}}],Oa=g({restrict:"E",terminal:!1}),Na=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){i&&(n.required=!0,i.$validators.required=function(e,t){return!n.required||!i.$isEmpty(t)},n.$observe("required",function(){i.$validate()}))}}},Va=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,r,o){if(o){var a,s=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(S(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,Q(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||w(a)||a.test(t)}}}}},Ba=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=-1;n.$observe("maxlength",function(e){var t=p(e);r=isNaN(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(e,t){return r<0||i.$isEmpty(t)||t.length<=r}}}}},Ra=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){if(i){var r=0;n.$observe("minlength",function(e){r=p(e)||0,i.$validate()}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=r}}}}};if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var t;if(!Ji){var i=Yi();Pi=w(i)?e.jQuery:i?e[i]:n,Pi&&Pi.fn.on?(Mi=Pi,d(Pi.fn,{scope:wr.scope,isolateScope:wr.isolateScope,controller:wr.controller,injector:wr.injector,inheritedData:wr.inheritedData}),t=Pi.cleanData,Pi.cleanData=function(e){for(var n,i,r=0;null!=(i=e[r]);r++)(n=Pi._data(i,"events"))&&n.$destroy&&Pi(i).triggerHandler("$destroy");t(e)}):Mi=Ae,Hi.element=Mi,Ji=!0}}(),function(t){d(t,{bootstrap:se,copy:H,extend:d,merge:f,equals:q,element:Mi,forEach:o,injector:nt,noop:m,bind:U,toJson:Y,fromJson:X,identity:v,isUndefined:w,isDefined:y,isString:S,isFunction:E,isObject:b,isNumber:x,isElement:V,isArray:qi,version:rr,isDate:T,lowercase:Ci,uppercase:ki,callbacks:{counter:0},getTestability:ce,$$minErr:i,$$csp:Wi,reloadWithDebugInfo:le}),(Li=ge(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:bn}),e.provider("$compile",ft).directive({a:To,input:Fo,textarea:Fo,form:Io,script:Ia,select:Pa,style:Oa,option:La,ngBind:jo,ngBindHtml:Wo,ngBindTemplate:Uo,ngClass:Xo,ngClassEven:Zo,ngClassOdd:Ko,ngCloak:Jo,ngController:Qo,ngForm:Do,ngHide:Sa,ngIf:na,ngInclude:ia,ngInit:oa,ngNonBindable:va,ngPluralize:ya,ngRepeat:ba,ngShow:_a,ngStyle:xa,ngSwitch:Ta,ngSwitchWhen:Ea,ngSwitchDefault:Ca,ngOptions:wa,ngTransclude:Aa,ngModel:ha,ngList:aa,ngChange:Yo,pattern:Va,ngPattern:Va,required:Na,ngRequired:Na,minlength:Ra,ngMinlength:Ra,maxlength:Ba,ngMaxlength:Ba,ngValue:Go,ngModelOptions:ma}).directive({ngInclude:ra}).directive(Eo).directive(ea),e.provider({$anchorScroll:it,$animate:Lr,$animateCss:Vr,$$animateJs:Mr,$$animateQueue:Pr,$$AnimateRunner:Nr,$$animateAsyncRun:Or,$browser:ct,$cacheFactory:ut,$controller:gt,$document:$t,$exceptionHandler:wt,$filter:On,$$forceReflow:Fr,$interpolate:Pt,$interval:Lt,$http:At,$httpParamSerializer:bt,$httpParamSerializerJQLike:_t,$httpBackend:Dt,$xhrFactory:It,$location:Yt,$log:Xt,$parse:mn,$rootScope:yn,$q:vn,$$q:gn,$sce:Tn,$sceDelegate:xn,$sniffer:En,$templateCache:dt,$templateRequest:Cn,$$testability:kn,$timeout:An,$window:Mn,$$rAF:wn,$$jqLite:Ke,$$HashMap:Sr,$$cookieReader:Ln})}])}(Hi),Hi.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function i(e,i){var r=i;n===r&&(r=Math.min(t(e),3));var o=Math.pow(10,r);return{v:r,f:(e*o|0)%o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,o=i(e,t);return 1==n&&0==o.v?r.ONE:r.OTHER}})}]),Mi(t).ready(function(){ae(t,se)})}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t,n){"use strict";function i(e,t,n){if(!e)throw ce("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(q(e)&&(e=e.join(" ")),q(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function o(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function a(e,t,n){var i="";return e=q(e)?e:e&&G(e)&&e.length?e.split(/\s+/):[],F(e,function(e,r){e&&e.length>0&&(i+=r>0?" ":"",i+=n?t+e:e+t)}),i}function s(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function l(e){if(e instanceof H)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===K)return e;break;default:return H(c(e))}if(e.nodeType===K)return H(e)}function c(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==K)return n}}function u(e,t,n){F(t,function(t){e.addClass(t,n)})}function d(e,t,n){F(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(u(e,t,n.addClass),n.addClass=null),n.removeClass&&(d(e,t,n.removeClass),n.removeClass=null)}}function p(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||B;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=B},e.$$prepared=!0}return e}function h(e,t){m(e,t),v(e,t)}function m(e,t){t.from&&(e.css(t.from),t.from=null)}function v(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var i=t.options||{},r=n.options||{},o=(i.addClass||"")+" "+(r.addClass||""),a=(i.removeClass||"")+" "+(r.removeClass||""),s=$(e.attr("class"),o,a);r.preparationClasses&&(i.preparationClasses=T(r.preparationClasses,i.preparationClasses),delete r.preparationClasses);var l=i.domOperation!==B?i.domOperation:null;return z(i,r),l&&(i.domOperation=l),s.addClass?i.addClass=s.addClass:i.addClass=null,s.removeClass?i.removeClass=s.removeClass:i.removeClass=null,t.addClass=i.addClass,t.removeClass=i.removeClass,i}function $(e,t,n){function i(e){G(e)&&(e=e.split(" "));var t={};return F(e,function(e){e.length&&(t[e]=!0)}),t}var r={};e=i(e),t=i(t),F(t,function(e,t){r[t]=1}),n=i(n),F(n,function(e,t){r[t]=1===r[t]?null:-1});var o={addClass:"",removeClass:""};return F(r,function(t,n){var i,r;1===t?(i="addClass",r=!e[n]):t===-1&&(i="removeClass",r=e[n]),r&&(o[i].length&&(o[i]+=" "),o[i]+=n)}),o}function w(e){return e instanceof t.element?e[0]:e}function y(e,t,n){var i="";t&&(i=a(t,Q,!0)),n.addClass&&(i=T(i,a(n.addClass,Z))),n.removeClass&&(i=T(i,a(n.removeClass,J))),i.length&&(n.preparationClasses=i,e.addClass(i))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function _(e,t){var n=t?"-"+t+"s":"";return x(e,[se,n]),[se,n]}function S(e,t){var n=t?"paused":"",i=N+re;return x(e,[i,n]),[i,n]}function x(e,t){var n=t[0],i=t[1];e.style[n]=i}function T(e,t){return e?t?e+" "+t:e:t}function E(e){return[ae,e+"s"]}function C(e,t){return[t?oe:se,e+"s"]}function k(e,t,n){var i=Object.create(null),r=e.getComputedStyle(t)||{};return F(n,function(e,t){var n=r[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=A(n)),0===n&&(n=null),i[t]=n}}),i}function A(e){var t=0;return F(e.split(/\s*,\s*/),function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function I(e){return 0===e||null!=e}function D(e,t){var n=L,i=e+"s";return t?n+=ne:i+=" linear all",[n,i]}function M(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function P(e,t,n){F(n,function(n){e[n]=W(e[n])?e[n]:t.style.getPropertyValue(n)})}var L,O,N,V,B=t.noop,R=t.copy,z=t.extend,H=t.element,F=t.forEach,q=t.isArray,G=t.isString,j=t.isObject,U=t.isUndefined,W=t.isDefined,Y=t.isFunction,X=t.isElement,K=1,Z="-add",J="-remove",Q="ng-",ee="ng-animate",te="$$ngAnimateChildren";U(e.ontransitionend)&&W(e.onwebkittransitionend)?("-webkit-",L="WebkitTransition",O="webkitTransitionEnd transitionend"):(L="transition",O="transitionend"),U(e.onanimationend)&&W(e.onwebkitanimationend)?("-webkit-",N="WebkitAnimation",V="webkitAnimationEnd animationend"):(N="animation",V="animationend");var ne="Duration",ie="TimingFunction",re="PlayState",oe=N+"Delay",ae=N+ne,se=L+"Delay",le=L+ne,ce=t.$$minErr("ng"),ue=["$$rAF",function(e){function t(e){i=i.concat(e),n()}function n(){if(i.length){for(var t=i.shift(),o=0;o<t.length;o++)t[o]();r||e(function(){r||n()})}}var i,r;return i=t.queue=[],t.waitUntilQuiet=function(t){r&&r(),r=e(function(){r=null,t(),n()})},t}],de=["$interpolate",function(e){return{link:function(n,i,r){function o(e){e="on"===e||"true"===e,i.data(te,e)}var a=r.ngAnimateChildren;t.isString(a)&&0===a.length?i.data(te,!0):(o(e(a)(n)),r.$observe("ngAnimateChildren",o))}}}],fe="$$animateCss",pe=1e3,he=3,me=1.5,ve={transitionDuration:le,transitionDelay:se,transitionProperty:L+"Property",animationDuration:ae,animationDelay:oe,animationIterationCount:N+"IterationCount"},ge={transitionDuration:le,transitionDelay:se,animationDuration:ae,animationDelay:oe},$e=["$animateProvider",function(e){var t=M(),n=M();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,i,r,l,c,u,d,g){function $(e,t){var n="$$ngAnimateParentKey",i=e.parentNode;return(i[n]||(i[n]=++z))+"-"+e.getAttribute("class")+"-"+t}function y(n,i,r,o){var a=t.get(r);return a||(a=k(e,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(r,a),a}function b(r,o,s,l){var c;if(t.count(s)>0&&!(c=n.get(s))){var u=a(o,"-stagger");i.addClass(r,u),c=k(e,r,l),c.animationDuration=Math.max(c.animationDuration,0),c.transitionDuration=Math.max(c.transitionDuration,0),i.removeClass(r,u),n.put(s,c)}return c||{}}function T(e){H.push(e),d.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=c(),i=0;i<H.length;i++)H[i](e);H.length=0})}function A(e,t,n){var i=y(e,t,n,ve),r=i.animationDelay,o=i.transitionDelay;return i.maxDelay=r&&o?Math.max(r,o):r||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}var M=f(i),z=0,H=[];return function(e,n){function c(){f()}function d(){f(!0)}function f(t){if(!(W||X&&Y)){W=!0,Y=!1,G.$$skipPreparationClasses||i.removeClass(e,ye),i.removeClass(e,_e),S(U,!1),_(U,!1),F(se,function(e){U.style[e[0]]=""}),M(e,G),h(e,G),Object.keys(j).length&&F(j,function(e,t){e?U.style.setProperty(t,e):U.style.removeProperty(t)}),G.onDone&&G.onDone(),ue&&ue.length&&e.off(ue.join(" "),z);var n=e.data(fe);n&&(l.cancel(n[0].timer),e.removeData(fe)),K&&K.complete(!t)}}function y(e){Oe.blockTransition&&_(U,e),Oe.blockKeyframeAnimation&&S(U,!!e)}function k(){return K=new r({end:c,cancel:d}),T(B),f(),{$$willAnimate:!1,start:function(){return K},end:c}}function z(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),i=parseFloat(t.elapsedTime.toFixed(he));Math.max(n-ae,0)>=ne&&i>=re&&(X=!0,f())}function H(){function t(){if(!W){if(y(!1),F(se,function(e){var t=e[0],n=e[1];U.style[t]=n}),M(e,G),i.addClass(e,_e),Oe.recalculateTimingStyles){if(be=U.className+" "+ye,xe=$(U,be),Pe=A(U,be,xe),Le=Pe.maxDelay,te=Math.max(Le,0),0===(re=Pe.maxDuration))return void f();Oe.hasTransitions=Pe.transitionDuration>0,Oe.hasAnimations=Pe.animationDuration>0}if(Oe.applyAnimationDelay&&(Le="boolean"!=typeof G.delay&&I(G.delay)?parseFloat(G.delay):Le,te=Math.max(Le,0),Pe.animationDelay=Le,Ne=C(Le,!0),se.push(Ne),U.style[Ne[0]]=Ne[1]),ne=te*pe,oe=re*pe,G.easing){var t,r=G.easing;Oe.hasTransitions&&(t=L+ie,se.push([t,r]),U.style[t]=r),Oe.hasAnimations&&(t=N+ie,se.push([t,r]),U.style[t]=r)}Pe.transitionDuration&&ue.push(O),Pe.animationDuration&&ue.push(V),ae=Date.now();var o=ne+me*oe,a=ae+o,s=e.data(fe)||[],c=!0;if(s.length){var u=s[0];c=a>u.expectedEndTime,c?l.cancel(u.timer):s.push(f)}if(c){var d=l(n,o,!1);s[0]={timer:d,expectedEndTime:a},s.push(f),e.data(fe,s)}ue.length&&e.on(ue.join(" "),z),G.to&&(G.cleanupStyles&&P(j,U,Object.keys(G.to)),v(e,G))}}function n(){var t=e.data(fe);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(fe)}}if(!W){if(!U.parentNode)return void f();var r=function(e){if(X)Y&&e&&(Y=!1,f());else if(Y=!e,Pe.animationDuration){var t=S(U,Y);Y?se.push(t):s(se,t)}},o=De>0&&(Pe.transitionDuration&&0===Te.transitionDuration||Pe.animationDuration&&0===Te.animationDuration)&&Math.max(Te.animationDelay,Te.transitionDelay);o?l(t,Math.floor(o*De*pe),!1):t(),ee.resume=function(){r(!0)},ee.pause=function(){r(!1)}}}var G=n||{};G.$$prepared||(G=p(R(G)));var j={},U=w(e);if(!U||!U.parentNode||!g.enabled())return k();var W,Y,X,K,ee,te,ne,re,oe,ae,se=[],le=e.attr("class"),ce=o(G),ue=[];if(0===G.duration||!u.animations&&!u.transitions)return k();var de=G.event&&q(G.event)?G.event.join(" "):G.event,ve=de&&G.structural,$e="",we="";ve?$e=a(de,Q,!0):de&&($e=de),G.addClass&&(we+=a(G.addClass,Z)),G.removeClass&&(we.length&&(we+=" "),we+=a(G.removeClass,J)),G.applyClassesEarly&&we.length&&M(e,G);var ye=[$e,we].join(" ").trim(),be=le+" "+ye,_e=a(ye,"-active"),Se=ce.to&&Object.keys(ce.to).length>0;if(!((G.keyframeStyle||"").length>0||Se||ye))return k();var xe,Te;if(G.stagger>0){var Ee=parseFloat(G.stagger);Te={transitionDelay:Ee,animationDelay:Ee,transitionDuration:0,animationDuration:0}}else xe=$(U,be),Te=b(U,ye,xe,ge);G.$$skipPreparationClasses||i.addClass(e,ye);var Ce;if(G.transitionStyle){var ke=[L,G.transitionStyle];x(U,ke),se.push(ke)}if(G.duration>=0){Ce=U.style[L].length>0;var Ae=D(G.duration,Ce);x(U,Ae),se.push(Ae)}if(G.keyframeStyle){var Ie=[N,G.keyframeStyle];x(U,Ie),se.push(Ie)}var De=Te?G.staggerIndex>=0?G.staggerIndex:t.count(xe):0,Me=0===De;Me&&!G.skipBlocking&&_(U,9999);var Pe=A(U,be,xe),Le=Pe.maxDelay;te=Math.max(Le,0),re=Pe.maxDuration;var Oe={};if(Oe.hasTransitions=Pe.transitionDuration>0,Oe.hasAnimations=Pe.animationDuration>0,Oe.hasTransitionAll=Oe.hasTransitions&&"all"==Pe.transitionProperty,Oe.applyTransitionDuration=Se&&(Oe.hasTransitions&&!Oe.hasTransitionAll||Oe.hasAnimations&&!Oe.hasTransitions),Oe.applyAnimationDuration=G.duration&&Oe.hasAnimations,Oe.applyTransitionDelay=I(G.delay)&&(Oe.applyTransitionDuration||Oe.hasTransitions),Oe.applyAnimationDelay=I(G.delay)&&Oe.hasAnimations,Oe.recalculateTimingStyles=we.length>0,(Oe.applyTransitionDuration||Oe.applyAnimationDuration)&&(re=G.duration?parseFloat(G.duration):re,Oe.applyTransitionDuration&&(Oe.hasTransitions=!0,Pe.transitionDuration=re,Ce=U.style[L+"Property"].length>0,se.push(D(re,Ce))),Oe.applyAnimationDuration&&(Oe.hasAnimations=!0,Pe.animationDuration=re,se.push(E(re)))),0===re&&!Oe.recalculateTimingStyles)return k();if(null!=G.delay){var Ne;"boolean"!=typeof G.delay&&(Ne=parseFloat(G.delay),te=Math.max(Ne,0)),Oe.applyTransitionDelay&&se.push(C(Ne)),Oe.applyAnimationDelay&&se.push(C(Ne,!0))}return null==G.duration&&Pe.transitionDuration>0&&(Oe.recalculateTimingStyles=Oe.recalculateTimingStyles||Me),ne=te*pe,oe=re*pe,G.skipBlocking||(Oe.blockTransition=Pe.transitionDuration>0,Oe.blockKeyframeAnimation=Pe.animationDuration>0&&Te.animationDelay>0&&0===Te.animationDuration),G.from&&(G.cleanupStyles&&P(j,U,Object.keys(G.from)),m(e,G)),Oe.blockTransition||Oe.blockKeyframeAnimation?y(re):G.skipBlocking||_(U,!1),{$$willAnimate:!0,end:c,start:function(){if(!W)return ee={end:c,cancel:d,resume:null,pause:null},K=new r(ee),T(H),K}}}}]}],we=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",i="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,r,o,a,s,l,c){function u(e){return e.replace(/\bng-\S+\b/g,"")}function d(e,t){return G(e)&&(e=e.split(" ")),G(t)&&(t=t.split(" ")),e.filter(function(e){return t.indexOf(e)===-1}).join(" ")}function p(t,r,a){function s(e){var t={},n=w(e).getBoundingClientRect();return F(["width","height","top","left"],function(e){var i=n[e];switch(e){case"top":i+=v.scrollTop;break;case"left":i+=v.scrollLeft}t[e]=Math.floor(i)+"px"}),t}function l(e){return e.attr("class")||""}function c(){var t=u(l(a)),n=d(t,h),r=d(h,t),o=e(p,{to:s(a),addClass:"ng-anchor-in "+n,removeClass:i+" "+r,delay:!0});return o.$$willAnimate?o:null}function f(){p.remove(),r.removeClass(n),a.removeClass(n)}var p=H(w(r).cloneNode(!0)),h=u(l(p));r.addClass(n),a.addClass(n),p.addClass("ng-anchor"),$.append(p);var m,g=function(){var t=e(p,{addClass:i,delay:!0,from:s(r)});return t.$$willAnimate?t:null}();if(!g&&!(m=c()))return f();var y=g||m;return{start:function(){function e(){n&&n.end()}var t,n=y.start();return n.done(function(){if(n=null,!m&&(m=c()))return n=m.start(),n.done(function(){n=null,f(),t.complete()}),n;f(),t.complete()}),t=new o({end:e,cancel:e})}}}function h(e,t,n,i){var r=m(e),a=m(t),s=[];if(F(i,function(e){var t=e.out,i=e.in,r=p(n,t,i);r&&s.push(r)}),r||a||0!==s.length)return{start:function(){function e(){F(t,function(e){e.end()})}var t=[];r&&t.push(r.start()),a&&t.push(a.start()),F(s,function(e){t.push(e.start())});var n=new o({end:e,cancel:e});return o.all(t,function(e){n.complete(e)}),n}}}function m(t){var n=t.element,i=t.options||{};t.structural&&(i.event=t.event,i.structural=!0,i.applyClassesEarly=!0,"leave"===t.event&&(i.onDone=i.domOperation)),i.preparationClasses&&(i.event=T(i.event,i.preparationClasses));var r=e(n,i);return r.$$willAnimate?r:null}if(!s.animations&&!s.transitions)return B;var v=c[0].body,g=w(a),$=H(t(g)||v.contains(g)?g:v);return f(l),function(e){return e.from&&e.to?h(e.from,e.to,e.classes,e.anchors):m(e)}}]}],ye=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,i){function r(n){n=q(n)?n:n.split(" ");for(var i=[],r={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!r[a]&&(i.push(t.get(s)),r[a]=!0)}return i}var o=f(i);return function(e,t,i,a){function s(){a.domOperation(),o(e,a)}function l(){f=!0,s(),h(e,a)}function c(e,t,i,r,o){var a;switch(i){case"animate":a=[t,r.from,r.to,o];break;case"setClass":a=[t,g,$,o];break;case"addClass":a=[t,g,o];break;case"removeClass":a=[t,$,o];break;default:a=[t,o]}a.push(r);var s=e.apply(e,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return B}function u(e,t,i,r,o){var a=[];return F(r,function(r){var s=r[o];s&&a.push(function(){var r,o,a=!1,l=function(e){a||(a=!0,(o||B)(e),r.complete(!e))};return r=new n({end:function(){l()},cancel:function(){l(!0)}}),o=c(s,e,t,i,function(e){l(e===!1)}),r})}),a}function d(e,t,i,r,o){var a=u(e,t,i,r,o);if(0===a.length){var s,l;"beforeSetClass"===o?(s=u(e,"removeClass",i,r,"beforeRemoveClass"),l=u(e,"addClass",i,r,"beforeAddClass")):"setClass"===o&&(s=u(e,"removeClass",i,r,"removeClass"),l=u(e,"addClass",i,r,"addClass")),s&&(a=a.concat(s)),l&&(a=a.concat(l))}if(0!==a.length)return function(e){var t=[];return a.length&&F(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){F(t,function(t){e?t.cancel():t.end()})}}}var f=!1;3===arguments.length&&j(i)&&(a=i,i=null),a=p(a),i||(i=e.attr("class")||"",a.addClass&&(i+=" "+a.addClass),a.removeClass&&(i+=" "+a.removeClass));var m,v,g=a.addClass,$=a.removeClass,w=r(i);if(w.length){var y,b;"leave"==t?(b="leave",y="afterLeave"):(b="before"+t.charAt(0).toUpperCase()+t.substr(1),y=t),"enter"!==t&&"move"!==t&&(m=d(e,t,a,w,b)),v=d(e,t,a,w,y)}if(m||v){var _;return{$$willAnimate:!0,end:function(){return _?_.end():(l(),_=new n,_.complete(!0)),_},start:function(){function e(e){l(e),_.complete(e)}function t(t){f||((i||B)(t),e(t))}if(_)return _;_=new n;var i,r=[];return m&&r.push(function(e){i=m(e)}),r.length?r.push(function(e){s(),e(!0)}):s(),v&&r.push(function(e){i=v(e)}),_.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(r,e),_}}}}}]}],be=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,i=t.event,r=t.options;return e(n,i,t.classes,r)}return function(e){if(e.from&&e.to){var i=n(e.from),r=n(e.to);if(!i&&!r)return;return{start:function(){function e(){return function(){F(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];i&&o.push(i.start()),r&&o.push(r.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],_e="data-ng-animate",Se="$ngAnimatePin",xe=["$animateProvider",function(e){function t(e){if(!e)return null;var t=e.split(u),n=Object.create(null);return F(t,function(e){n[e]=!0}),n}function n(e,n){if(e&&n){var i=t(n);return e.split(u).some(function(e){return i[e]})}}function r(e,t,n,i){return d[e].some(function(e){return e(t,n,i)})}function o(e,t){var n=(e.addClass||"").length>0,i=(e.removeClass||"").length>0;return t?n&&i:n||i}var a=1,s=2,u=" ",d=this.rules={skip:[],cancel:[],join:[]};d.join.push(function(e,t,n){return!t.structural&&o(t)}),d.skip.push(function(e,t,n){return!t.structural&&!o(t)}),d.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),d.skip.push(function(e,t,n){return n.structural&&n.state===s&&!t.structural}),d.cancel.push(function(e,t,n){return n.structural&&t.structural}),d.cancel.push(function(e,t,n){return n.state===s&&t.structural}),d.cancel.push(function(e,t,i){if(i.structural)return!1;var r=t.addClass,o=t.removeClass,a=i.addClass,s=i.removeClass;return!(U(r)&&U(o)||U(a)&&U(s))&&(n(r,s)||n(o,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(t,n,u,d,m,v,$,_,S,x){function T(){var e=!1;return function(t){e?t():n.$$postDigest(function(){e=!0,t()})}}function E(e,t){return g(e,t,{})}function C(e,t,n){var i=w(t),r=w(e),o=[],a=B[n];return a&&F(a,function(e){Q.call(e.node,i)?o.push(e.callback):"leave"===n&&Q.call(e.node,r)&&o.push(e.callback)}),o}function k(e,i,c){function u(n,i,r,o){k(function(){var n=C(_,e,i);n.length&&t(function(){F(n,function(t){t(e,r,o)})})}),n.progress(i,r,o)}function f(t){b(e,S),J(e,S),h(e,S),S.domOperation(),x.complete(!t)}var m,_,S=R(c);e=l(e),e&&(m=w(e),_=e.parent()),S=p(S);var x=new $,k=T();if(q(S.addClass)&&(S.addClass=S.addClass.join(" ")),S.addClass&&!G(S.addClass)&&(S.addClass=null),q(S.removeClass)&&(S.removeClass=S.removeClass.join(" ")),S.removeClass&&!G(S.removeClass)&&(S.removeClass=null),S.from&&!j(S.from)&&(S.from=null),S.to&&!j(S.to)&&(S.to=null),!m)return f(),x;if(!Z([m.className,S.addClass,S.removeClass].join(" ")))return f(),x;var D=["enter","move","leave"].indexOf(i)>=0,V=!N||d[0].hidden||O.get(m),B=!V&&L.get(m)||{},z=!!B.state;if(V||z&&B.state==a||(V=!M(e,_,i)),V)return f(),x;D&&A(e);var H={structural:D,element:e,event:i,addClass:S.addClass,removeClass:S.removeClass,close:f,options:S,runner:x};if(z){if(r("skip",e,H,B))return B.state===s?(f(),x):(g(e,B,H),B.runner);if(r("cancel",e,H,B))if(B.state===s)B.runner.end();else{if(!B.structural)return g(e,B,H),B.runner;B.close()}else{if(r("join",e,H,B)){if(B.state!==s)return y(e,D?i:null,S),i=H.event=B.event,S=g(e,B,H),B.runner;E(e,H)}}}else E(e,H);var U=H.structural;if(U||(U="animate"===H.event&&Object.keys(H.options.to||{}).length>0||o(H)),!U)return f(),I(e),x;var W=(B.counter||0)+1;return H.counter=W,P(e,a,H),n.$$postDigest(function(){var t=L.get(m),n=!t;t=t||{};var r=e.parent()||[],a=r.length>0&&("animate"===t.event||t.structural||o(t));if(n||t.counter!==W||!a)return n&&(J(e,S),h(e,S)),(n||D&&t.event!==i)&&(S.domOperation(),x.end()),void(a||I(e));i=!t.structural&&o(t,!0)?"setClass":t.event,P(e,s);var l=v(e,i,t.options);l.done(function(t){f(!t);var n=L.get(m);n&&n.counter===W&&I(w(e)),u(x,i,"close",{})}),x.setHost(l),u(x,i,"start",{})}),x}function A(e){F(w(e).querySelectorAll("["+_e+"]"),function(e){var t=parseInt(e.getAttribute(_e)),n=L.get(e);if(n)switch(t){case s:n.runner.end();case a:L.remove(e)}})}function I(e){var t=w(e);t.removeAttribute(_e),L.remove(t)}function D(e,t){return w(e)===w(t)}function M(e,t,n){var i,r=H(d[0].body),o=D(e,r)||"HTML"===e[0].nodeName,a=D(e,u),s=!1,l=O.get(w(e)),c=H.data(e[0],Se);for(c&&(t=c),t=w(t);t&&(a||(a=D(t,u)),t.nodeType===K);){var f=L.get(t)||{};if(!s){var p=O.get(t);if(p===!0&&l!==!1){l=!0;break}p===!1&&(l=!1),s=f.structural}if(U(i)||i===!0){var h=H.data(t,te);W(h)&&(i=h)}if(s&&i===!1)break;if(o||(o=D(t,r)),o&&a)break;t=a||!(c=H.data(t,Se))?t.parentNode:w(c)}return(!s||i)&&l!==!0&&a&&o}function P(e,t,n){n=n||{},n.state=t;var i=w(e);i.setAttribute(_e,t);var r=L.get(i),o=r?z(r,n):n;L.put(i,o)}var L=new m,O=new m,N=null,V=n.$watch(function(){return 0===_.totalPendingRequests},function(e){e&&(V(),n.$$postDigest(function(){n.$$postDigest(function(){null===N&&(N=!0)})}))}),B={},Y=e.classNameFilter(),Z=Y?function(e){return Y.test(e)}:function(){return!0},J=f(S),Q=Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ee={on:function(e,t,n){var i=c(t);B[e]=B[e]||[],B[e].push({node:i,callback:n}),H(t).on("$destroy",function(){ee.off(e,t,n)})},off:function(e,t,n){var i=B[e];i&&(B[e]=1===arguments.length?null:function(e,t,n){var i=c(t);return e.filter(function(e){return!(e.node===i&&(!n||e.callback===n))})}(i,t,n))},pin:function(e,t){i(X(e),"element","not an element"),i(X(t),"parentElement","not an element"),e.data(Se,t)},push:function(e,t,n,i){return n=n||{},n.domOperation=i,k(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!N;else{if(X(e)){var i=w(e),r=O.get(i);1===n?t=!r:O.put(i,!t)}else t=N=!!e}return t}};return ee}]}],Te=["$animateProvider",function(e){function t(e,t){e.data(s,t)} function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,l,c,u,d){function m(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,o=n.parentNode;r.put(n,e);for(var a;o;){if(a=r.get(o)){a.processed||(a=t(a));break}o=o.parentNode}return(a||i).children.push(e),e}var n,i={children:[]},r=new u;for(n=0;n<e.length;n++){var o=e[n];r.put(o.domNode,e[n]={domNode:o.domNode,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],i=[];for(t=0;t<e.children.length;t++)i.push(e.children[t]);var r=i.length,o=0,a=[];for(t=0;t<i.length;t++){var s=i[t];r<=0&&(r=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(e){o++,i.push(e)}),r--}return a.length&&n.push(a),n}(i)}var v=[],g=f(e);return function(u,f,$){function y(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),i=[];return F(n,function(e){var t=e.getAttribute(o);t&&t.length&&i.push(e)}),i}function b(e){var t=[],n={};F(e,function(e,i){var r=e.element,a=w(r),s=e.event,l=["enter","move"].indexOf(s)>=0,c=e.structural?y(a):[];if(c.length){var u=l?"to":"from";F(c,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][u]={animationID:i,element:H(e)}})}else t.push(e)});var i={},r={};return F(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var l=a?a.animationID:s.animationID,c=l.toString();return void(i[c]||(i[c]=!0,t.push(e[l])))}var u=e[a.animationID],d=e[s.animationID],f=a.animationID.toString();if(!r[f]){var p=r[f]={structural:!0,beforeStart:function(){u.beforeStart(),d.beforeStart()},close:function(){u.close(),d.close()},classes:_(u.classes,d.classes),from:u,to:d,anchors:[]};p.classes.length?t.push(p):(t.push(u),t.push(d))}r[f].anchors.push({out:a.element,in:s.element})}),t}function _(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],i=0;i<e.length;i++){var r=e[i];if("ng-"!==r.substring(0,3))for(var o=0;o<t.length;o++)if(r===t[o]){n.push(r);break}}return n.join(" ")}function S(e){for(var t=a.length-1;t>=0;t--){var n=a[t];if(l.has(n)){var i=l.get(n),r=i(e);if(r)return r}}}function x(){u.addClass(ee),D&&e.addClass(u,D),M&&(e.removeClass(u,M),M=null)}function T(e,t){function n(e){i(e).setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function E(){var e=i(u);!e||"leave"===f&&$.$$domOperationFired||e.end()}function C(t){u.off("$destroy",E),n(u),g(u,$),h(u,$),$.domOperation(),D&&e.removeClass(u,D),u.removeClass(ee),A.complete(!t)}$=p($);var k=["enter","move","leave"].indexOf(f)>=0,A=new c({end:function(){C()},cancel:function(){C(!0)}});if(!a.length)return C(),A;t(u,A);var I=r(u.attr("class"),r($.addClass,$.removeClass)),D=$.tempClasses;D&&(I+=" "+D,$.tempClasses=null);var M;return k&&(M="ng-"+f+"-prepare",e.addClass(u,M)),v.push({element:u,classes:I,event:f,structural:k,options:$,beforeStart:x,close:C}),u.on("$destroy",E),v.length>1?A:(s.$$postDigest(function(){var e=[];F(v,function(t){i(t.element)?e.push(t):t.close()}),v.length=0;var t=b(e),n=[];F(t,function(e){n.push({domNode:w(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var r=S(e);r&&(t=r.start)}if(t){var o=t();o.done(function(e){n(!e)}),T(e,o)}else n()}})}),d(m(n))}),A)}}]}],Ee=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,i,r,o){var a,s;t.$watchCollection(i.ngAnimateSwap||i.for,function(i){a&&e.leave(a),s&&(s.$destroy(),s=null),(i||0===i)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[]).directive("ngAnimateSwap",Ee).directive("ngAnimateChildren",de).factory("$$rAFScheduler",ue).provider("$$animateQueue",xe).provider("$$animation",Te).provider("$animateCss",$e).provider("$$animateCssDriver",we).provider("$$animateJs",ye).provider("$$animateJsDriver",be)}(window,window.angular),function(e,t,n){"use strict";function i(){var e=!1;this.$get=["$$sanitizeUri",function(n){return e&&t.extend(S,b),function(e){var t=[];return a(e,c(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(n){return t.isDefined(n)?(e=n,this):e}}function r(e){var n=[];return c(n,t.noop).chars(e),n.join("")}function o(e,n){var i,r={},o=e.split(",");for(i=0;i<o.length;i++)r[n?t.lowercase(o[i]):o[i]]=!0;return r}function a(e,t){null===e||e===n?e="":"string"!=typeof e&&(e=""+e),d.innerHTML=e;var i=5;do{if(0===i)throw f("uinput","Failed to sanitize html because the input is unstable");i--,document.documentMode<=11&&u(d),e=d.innerHTML,d.innerHTML=e}while(e!==d.innerHTML);for(var r=d.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),s(r.attributes));break;case 3:t.chars(r.textContent)}var o;if(!((o=r.firstChild)||(1==r.nodeType&&t.end(r.nodeName.toLowerCase()),o=r.nextSibling)))for(;null==o&&(r=r.parentNode)!==d;)o=r.nextSibling,1==r.nodeType&&t.end(r.nodeName.toLowerCase());r=o}for(;r=d.firstChild;)d.removeChild(r)}function s(e){for(var t={},n=0,i=e.length;n<i;n++){var r=e[n];t[r.name]=r.value}return t}function l(e){return e.replace(/&/g,"&").replace(p,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(h,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function c(e,n){var i=!1,r=t.bind(e,e.push);return{start:function(e,o){e=t.lowercase(e),!i&&_[e]&&(i=e),i||S[e]!==!0||(r("<"),r(e),t.forEach(o,function(i,o){var a=t.lowercase(o),s="img"===e&&"src"===a||"background"===a;C[a]!==!0||x[a]===!0&&!n(i,s)||(r(" "),r(o),r('="'),r(l(i)),r('"'))}),r(">"))},end:function(e){e=t.lowercase(e),i||S[e]!==!0||m[e]===!0||(r("</"),r(e),r(">")),e==i&&(i=!1)},chars:function(e){i||r(l(e))}}}function u(e){if(e.nodeType===Node.ELEMENT_NODE)for(var t=e.attributes,n=0,i=t.length;n<i;n++){var r=t[n],o=r.name.toLowerCase();"xmlns:ns1"!==o&&0!==o.indexOf("ns1:")||(e.removeAttributeNode(r),n--,i--)}var a=e.firstChild;a&&u(a),(a=e.nextSibling)&&u(a)}var d,f=t.$$minErr("$sanitize"),p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/([^\#-~ |!])/g,m=o("area,br,col,hr,img,wbr"),v=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),g=o("rp,rt"),$=t.extend({},g,v),w=t.extend({},v,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),y=t.extend({},g,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),b=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),_=o("script,style"),S=t.extend({},m,w,y,$),x=o("background,cite,href,longdesc,src,xlink:href"),T=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),E=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),C=t.extend({},x,E,T);!function(e){var t;if(!e.document||!e.document.implementation)throw f("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),i=n.getElementsByTagName("body");if(1===i.length)d=i[0];else{var r=t.createElement("html");d=t.createElement("body"),r.appendChild(d),t.appendChild(r)}}(e),t.module("ngSanitize",[]).provider("$sanitize",i),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=t.$$minErr("linky"),i=t.isString;return function(o,a,s){function l(e){e&&p.push(r(e))}if(null==o||""===o)return o;if(!i(o))throw n("notstring","Expected string but received: {0}",o);for(var c,u,d,f=o,p=[];c=f.match(/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i);)u=c[0],c[2]||c[4]||(u=(c[3]?"http://":"mailto:")+u),d=c.index,l(f.substr(0,d)),function(e,n){var i;if(p.push("<a "),t.isFunction(s)&&(s=s(e)),t.isObject(s))for(i in s)p.push(i+'="'+s[i]+'" ');else s={};!t.isDefined(a)||"target"in s||p.push('target="',a,'" '),p.push('href="',e.replace(/"/g,"""),'">'),l(n),p.push("</a>")}(u,c[0].replace(/^mailto:/i,"")),f=f.substring(d+c[0].length);return l(f),e(p.join(""))}}])}(window,window.angular),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(e,t,n){"use strict";function i(e,t){return B(new(B(function(){},{prototype:e})),t)}function r(e){return V(arguments,function(t){t!==e&&V(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function o(e,t){var n=[];for(var i in e.path){if(e.path[i]!==t.path[i])break;n.push(e.path[i])}return n}function a(e){if(Object.keys)return Object.keys(e);var n=[];return t.forEach(e,function(e,t){n.push(t)}),n}function s(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=n);i<n;i++)if(i in e&&e[i]===t)return i;return-1}function l(e,t,n,i){var r,l=o(n,i),c={},u=[];for(var d in l)if(l[d].params&&(r=a(l[d].params),r.length))for(var f in r)s(u,r[f])>=0||(u.push(r[f]),c[r[f]]=e[r[f]]);return B({},c,t)}function c(e,t,n){if(!n){n=[];for(var i in e)n.push(i)}for(var r=0;r<n.length;r++){var o=n[r];if(e[o]!=t[o])return!1}return!0}function u(e,t){var n={};return V(e,function(e){n[e]=t[e]}),n}function d(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var i in e)s(n,i)==-1&&(t[i]=e[i]);return t}function f(e,t){var n=N(e),i=n?[]:{};return V(e,function(e,r){t(e,r)&&(i[n?i.length:r]=e)}),i}function p(e,t){var n=N(e)?[]:{};return V(e,function(e,i){n[i]=t(e,i)}),n}function h(e,t){var i=1,o=2,l={},c=[],u=l,f=B(e.when(l),{$$promises:l,$$values:l});this.study=function(l){function p(e,n){if($[n]!==o){if(g.push(n),$[n]===i)throw g.splice(0,s(g,n)),new Error("Cyclic dependency: "+g.join(" -> "));if($[n]=i,L(e))v.push(n,[function(){return t.get(e)}],c);else{var r=t.annotate(e);V(r,function(e){e!==n&&l.hasOwnProperty(e)&&p(l[e],e)}),v.push(n,e,r)}g.pop(),$[n]=o}}function h(e){return O(e)&&e.then&&e.$$promises}if(!O(l))throw new Error("'invocables' must be an object");var m=a(l||{}),v=[],g=[],$={};return V(l,p),l=g=$=null,function(i,o,a){function s(){--w||(y||r($,o.$$values),p.$$values=$,p.$$promises=p.$$promises||!0,delete p.$$inheritedValues,c.resolve($))}function l(e){p.$$failure=e,c.reject(e)}if(h(i)&&a===n&&(a=o,o=i,i=null),i){if(!O(i))throw new Error("'locals' must be an object")}else i=u;if(o){if(!h(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=f;var c=e.defer(),p=c.promise,g=p.$$promises={},$=B({},i),w=1+v.length/3,y=!1;if(M(o.$$failure))return l(o.$$failure),p;o.$$inheritedValues&&r($,d(o.$$inheritedValues,m)),B(g,o.$$promises),o.$$values?(y=r($,d(o.$$values,m)),p.$$inheritedValues=d(o.$$values,m),s()):(o.$$inheritedValues&&(p.$$inheritedValues=d(o.$$inheritedValues,m)),o.then(s,l));for(var b=0,_=v.length;b<_;b+=3)i.hasOwnProperty(v[b])?s():function(n,r,o){function c(e){d.reject(e),l(e)}function u(){if(!M(p.$$failure))try{d.resolve(t.invoke(r,a,$)),d.promise.then(function(e){$[n]=e,s()},c)}catch(e){c(e)}}var d=e.defer(),f=0;V(o,function(e){g.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(f++,g[e].then(function(t){$[e]=t,--f||u()},c))}),f||u(),g[n]=d.promise}(v[b],v[b+1],v[b+2]);return p}},this.resolve=function(e,t,n,i){return this.study(e)(t,n,i)}}function m(e,t,n){this.fromConfig=function(e,t,n){return M(e.template)?this.fromString(e.template,t):M(e.templateUrl)?this.fromUrl(e.templateUrl,t):M(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return P(e)?e(t):e},this.fromUrl=function(n,i){return P(n)&&(n=n(i)),null==n?null:e.get(n,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data})},this.fromProvider=function(e,t,i){return n.invoke(e,null,i||{params:t})}}function v(e,t,r){function o(t,n,i,r){if(v.push(t),h[t])return h[t];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(m[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");return m[t]=new z.Param(t,n,i,r),m[t]}function a(e,t,n){var i=["",""],r=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return r;switch(n){case!1:i=["(",")"];break;case!0:i=["?(",")?"];break;default:i=["("+n+"|",")?"]}return r+i[0]+t+i[1]}function s(n,r){var o,a,s,l,c;return o=n[2]||n[3],c=t.params[o],s=e.substring(f,n.index),a=r?n[4]:n[4]||("*"==n[1]?".*":null),l=z.type(a||"string")||i(z.type("string"),{pattern:new RegExp(a)}),{id:o,regexp:a,segment:s,type:l,cfg:c}}t=B({params:{}},O(t)?t:{});var l,c=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d="^",f=0,p=this.segments=[],h=r?r.params:{},m=this.params=r?r.params.$$new():new z.ParamSet,v=[];this.source=e;for(var g,$,w;(l=c.exec(e))&&(g=s(l,!1),!(g.segment.indexOf("?")>=0));)$=o(g.id,g.type,g.cfg,"path"),d+=a(g.segment,$.type.pattern.source,$.squash),p.push(g.segment),f=c.lastIndex;w=e.substring(f);var y=w.indexOf("?");if(y>=0){var b=this.sourceSearch=w.substring(y);if(w=w.substring(0,y),this.sourcePath=e.substring(0,f+y),b.length>0)for(f=0;l=u.exec(b);)g=s(l,!0),$=o(g.id,g.type,g.cfg,"search"),f=c.lastIndex}else this.sourcePath=e,this.sourceSearch="";d+=a(w)+(t.strict===!1?"/?":"")+"$",p.push(w),this.regexp=new RegExp(d,t.caseInsensitive?"i":n),this.prefix=p[0],this.$$paramNames=v}function g(e){B(this,e)}function $(){function e(e){return null!=e?e.toString().replace(/\//g,"%2F"):e}function r(e){return null!=e?e.toString().replace(/%2F/g,"/"):e}function o(e){return this.pattern.test(e)}function l(){return{strict:w,caseInsensitive:m}}function c(e){return P(e)||N(e)&&P(e[e.length-1])}function u(){for(;S.length;){var e=S.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(b[e.name],h.invoke(e.def))}}function d(e){B(this,e||{})}z=this;var h,m=!1,w=!0,y=!1,b={},_=!0,S=[],x={string:{encode:e,decode:r,is:o,pattern:/[^\/]*/},int:{encode:e,decode:function(e){return parseInt(e,10)},is:function(e){return M(e)&&this.decode(e.toString())===e},pattern:/\d+/},bool:{encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:function(e){return e===!0||e===!1},pattern:/0|1/},date:{encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):n},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):n},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return this.is(e)&&this.is(t)&&e.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,is:t.identity,equals:t.equals,pattern:/.*/}};$.$$getDefaultValue=function(e){if(!c(e.value))return e.value;if(!h)throw new Error("Injectable functions cannot be called at configuration time");return h.invoke(e.value)},this.caseInsensitive=function(e){return M(e)&&(m=e),m},this.strictMode=function(e){return M(e)&&(w=e),w},this.defaultSquashPolicy=function(e){if(!M(e))return y;if(e!==!0&&e!==!1&&!L(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return y=e,e},this.compile=function(e,t){return new v(e,B(l(),t))},this.isMatcher=function(e){if(!O(e))return!1;var t=!0;return V(v.prototype,function(n,i){P(n)&&(t=t&&M(e[i])&&P(e[i]))}),t},this.type=function(e,t,n){if(!M(t))return b[e];if(b.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return b[e]=new g(B({name:e},t)),n&&(S.push({name:e,def:n}),_||u()),this},V(x,function(e,t){b[t]=new g(B({name:t},e))}),b=i(b,{}),this.$get=["$injector",function(e){return h=e,_=!1,u(),V(x,function(e,t){b[t]||(b[t]=new g(e))}),this}],this.Param=function(e,t,i,r){function o(){if(!h)throw new Error("Injectable functions cannot be called at configuration time");return h.invoke(i.$$fn)}function l(e){function t(e){return function(t){return t.from===e}}return e=function(e){var n=p(f(d.replace,t(e)),function(e){return e.to});return n.length?n[0]:e}(e),M(e)?d.type.decode(e):o()}function u(){return"{Param:"+e+" "+t+" squash: '"+$+"' optional: "+v+"}"}var d=this;i=function(e){var t=O(e)?a(e):[];return s(t,"value")===-1&&s(t,"type")===-1&&s(t,"squash")===-1&&s(t,"array")===-1&&(e={value:e}),e.$$fn=c(e.value)?e.value:function(){return e.value},e}(i),t=function(t,n,i){if(t.type&&n)throw new Error("Param '"+e+"' has two type configurations.");return n?n:t.type?t.type instanceof g?t.type:new g(t.type):"config"===i?b.any:b.string}(i,t,r);var m=function(){return B({array:"search"===r&&"auto"},e.match(/\[\]$/)?{array:!0}:{},i).array}();t=m?t.$asArray(m,"search"===r):t,"string"!==t.name||m||"path"!==r||i.value!==n||(i.value="");var v=i.value!==n,$=function(e,t){var n=e.squash;if(!t||n===!1)return!1;if(!M(n)||null==n)return y;if(n===!0||L(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(i,v);B(this,{id:e,type:t,location:r,array:m,squash:$,replace:function(e,t,i,r){var o,a,l=[{from:"",to:i||t?n:""},{from:null,to:i||t?n:""}];return o=N(e.replace)?e.replace:[],L(r)&&o.push({from:r,to:n}),a=p(o,function(e){return e.from}),f(l,function(e){return s(a,e.from)===-1}).concat(o)}(i,m,v,$),isOptional:v,value:l,dynamic:n,config:i,toString:u})},d.prototype={$$new:function(){return i(this,B(new d,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,i=a(d.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),V(t,function(t){V(a(t),function(t){s(e,t)===-1&&s(i,t)===-1&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return V(n.$$keys(),function(i){t[i]=n[i].value(e&&e[i])}),t},$$equals:function(e,t){var n=!0,i=this;return V(i.$$keys(),function(r){var o=e&&e[r],a=t&&t[r];i[r].type.equals(o,a)||(n=!1)}),n},$$validates:function(e){var t,n,i,r=!0,o=this;return V(this.$$keys(),function(a){i=o[a],n=e[a],t=!n&&i.isOptional,r=r&&(t||!!i.type.is(n))}),r},$$parent:n},this.ParamSet=d}function w(e,i){function r(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function o(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}function a(e,t,n){if(!n)return!1;var i=e.invoke(t,t,{$match:n});return!M(i)||i}function s(i,r,o,a){function s(e,t,n){return"/"===m?e:t?m.slice(0,-1)+e:n?m.slice(1)+e:e}function f(e){function t(e){var t=e(o,i);return!!t&&(L(t)&&i.replace().url(t),!0)}if(!e||!e.defaultPrevented){var r=h&&i.url()===h;if(h=n,r)return!0;var a,s=c.length;for(a=0;a<s;a++)if(t(c[a]))return;u&&t(u)}}function p(){return l=l||r.$on("$locationChangeSuccess",f)}var h,m=a.baseHref(),v=i.url();return d||p(),{sync:function(){f()},listen:function(){return p()},update:function(e){if(e)return void(v=i.url());i.url()!==v&&(i.url(v),i.replace())},push:function(e,t,r){i.url(e.format(t||{})),h=r&&r.$$avoidResync?i.url():n,r&&r.replace&&i.replace()},href:function(n,r,o){if(!n.validates(r))return null;var a=e.html5Mode();t.isObject(a)&&(a=a.enabled);var l=n.format(r);if(o=o||{},a||null===l||(l="#"+e.hashPrefix()+l),l=s(l,a,o.absolute),!o.absolute||!l)return l;var c=!a&&l?"/":"",u=i.port();return u=80===u||443===u?"":":"+u,[i.protocol(),"://",i.host(),u,c,l].join("")}}}var l,c=[],u=null,d=!1;this.rule=function(e){if(!P(e))throw new Error("'rule' must be a function");return c.push(e),this},this.otherwise=function(e){if(L(e)){var t=e;e=function(){return t}}else if(!P(e))throw new Error("'rule' must be a function");return u=e,this},this.when=function(e,t){var n,s=L(t);if(L(e)&&(e=i.compile(e)),!s&&!P(t)&&!N(t))throw new Error("invalid 'handler' in when()");var l={matcher:function(e,t){return s&&(n=i.compile(t),t=["$match",function(e){return n.format(e)}]),B(function(n,i){return a(n,t,e.exec(i.path(),i.search()))},{prefix:L(e.prefix)?e.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=t,t=["$match",function(e){return o(n,e)}]),B(function(n,i){return a(n,t,e.exec(i.path()))},{prefix:r(e)})}},c={matcher:i.isMatcher(e),regex:e instanceof RegExp};for(var u in c)if(c[u])return this.rule(l[u](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),d=e},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser"]}function y(e,r){function o(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function d(e,t){if(!e)return n;var i=L(e),r=i?e:e.name;if(o(r)){if(!t)throw new Error("No reference point given for path '"+r+"'");t=d(t);for(var a=r.split("."),s=0,l=a.length,c=t;s<l;s++)if(""!==a[s]||0!==s){if("^"!==a[s])break;if(!c.parent)throw new Error("Path '"+r+"' not valid for state '"+t.name+"'");c=c.parent}else c=t;a=a.slice(s).join("."),r=c.name+(c.name&&a?".":"")+a}var u=x[r];return!u||!i&&(i||u!==e&&u.self!==e)?n:u}function f(e,t){T[e]||(T[e]=[]),T[e].push(t)}function h(e){for(var t=T[e]||[];t.length;)m(t.shift())}function m(t){t=i(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!L(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(x.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var r=n.indexOf(".")!==-1?n.substring(0,n.lastIndexOf(".")):L(t.parent)?t.parent:O(t.parent)&&L(t.parent.name)?t.parent.name:"";if(r&&!x[r])return f(r,t.self);for(var o in C)P(C[o])&&(t[o]=C[o](t,C.$delegates[o]));return x[n]=t,!t[E]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){S.$current.navigable==t&&c(e,n)||S.transitionTo(t,e,{inherit:!0,location:!1})}]),h(n),t}function v(e){return e.indexOf("*")>-1}function g(e){var t=e.split("."),n=S.$current.name.split(".");if("**"===t[0]&&(n=n.slice(s(n,t[1])),n.unshift("**")),"**"===t[t.length-1]&&(n.splice(s(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length!=n.length)return!1;for(var i=0,r=t.length;i<r;i++)"*"===t[i]&&(n[i]="*");return n.join("")===t.join("")}function $(e,t){return L(e)&&!M(t)?C[e]:P(t)&&L(e)?(C[e]&&!C.$delegates[e]&&(C.$delegates[e]=C[e]),C[e]=t,this):this}function w(e,t){return O(e)?t=e:t.name=e,m(t),this}function y(e,r,o,s,f,h,m,$,w){function y(t,n,i,o){var a=e.$broadcast("$stateNotFound",t,n,i);if(a.defaultPrevented)return m.update(),A;if(!a.retry)return null;if(o.$retry)return m.update(),I;var s=S.transition=r.when(a.retry);return s.then(function(){return s!==S.transition?C:(t.options.$retry=!0,S.transitionTo(t.to,t.toParams,t.options))},function(){return A}),m.update(),s}function T(e,n,i,a,l,c){var d=i?n:u(e.params.$$keys(),n),p={$stateParams:d};l.resolve=f.resolve(e.resolve,p,l.resolve,e);var h=[l.resolve.then(function(e){l.globals=e})];return a&&h.push(a),V(e.views,function(n,i){var r=n.resolve&&n.resolve!==e.resolve?n.resolve:{};r.$template=[function(){return o.load(i,{view:n,locals:p,params:d,notify:c.notify})||""}],h.push(f.resolve(r,p,l.resolve,e).then(function(o){if(P(n.controllerProvider)||N(n.controllerProvider)){var a=t.extend({},r,p);o.$$controller=s.invoke(n.controllerProvider,null,a)}else o.$$controller=n.controller;o.$$state=e,o.$$controllerAs=n.controllerAs,l[i]=o}))}),r.all(h).then(function(e){return l})}var C=r.reject(new Error("transition superseded")),k=r.reject(new Error("transition prevented")),A=r.reject(new Error("transition aborted")),I=r.reject(new Error("transition failed"));return _.locals={resolve:null,globals:{$stateParams:{}}},S={params:{},current:_.self,$current:_,transition:null},S.reload=function(){return S.transitionTo(S.current,h,{reload:!0,inherit:!1,notify:!0})},S.go=function(e,t,n){return S.transitionTo(e,t,B({inherit:!0,relative:S.$current},n))},S.transitionTo=function(t,n,o){n=n||{},o=B({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,c=S.$current,f=S.params,p=c.path,v=d(t,o.relative);if(!M(v)){var g={to:t,toParams:n,options:o},$=y(g,c.self,f,o);if($)return $;if(t=g.to,n=g.toParams,o=g.options,v=d(t,o.relative),!M(v)){if(!o.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+o.relative+"'")}}if(v[E])throw new Error("Cannot transition to abstract state '"+t+"'");if(o.inherit&&(n=l(h,n||{},S.$current,v)),!v.params.$$validates(n))return I;n=v.params.$$values(n),t=v;var w=t.path,x=0,A=w[x],D=_.locals,P=[];if(!o.reload)for(;A&&A===p[x]&&A.ownParams.$$equals(n,f);)D=P[x]=A.locals,x++,A=w[x];if(b(t,c,D,o))return t.self.reloadOnSearch!==!1&&m.update(),S.transition=null,r.when(S.current);if(n=u(t.params.$$keys(),n||{}),o.notify&&e.$broadcast("$stateChangeStart",t.self,n,c.self,f).defaultPrevented)return m.update(),k;for(var L=r.when(D),O=x;O<w.length;O++,A=w[O])D=P[O]=i(D),L=T(A,n,A===t,L,D,o);var N=S.transition=L.then(function(){var i,r,a;if(S.transition!==N)return C;for(i=p.length-1;i>=x;i--)a=p[i],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(i=x;i<w.length;i++)r=w[i],r.locals=P[i],r.self.onEnter&&s.invoke(r.self.onEnter,r.self,r.locals.globals);return S.transition!==N?C:(S.$current=t,S.current=t.self,S.params=n,R(S.params,h),S.transition=null,o.location&&t.navigable&&m.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,c.self,f),m.update(!0),S.current)},function(i){return S.transition!==N?C:(S.transition=null,a=e.$broadcast("$stateChangeError",t.self,n,c.self,f,i),a.defaultPrevented||m.update(),r.reject(i))});return N},S.is=function(e,t,i){i=B({relative:S.$current},i||{});var r=d(e,i.relative);return M(r)?S.$current===r&&(!t||c(r.params.$$values(t),h)):n},S.includes=function(e,t,i){if(i=B({relative:S.$current},i||{}),L(e)&&v(e)){if(!g(e))return!1;e=S.$current.name}var r=d(e,i.relative);return M(r)?!!M(S.$current.includes[r.name])&&(!t||c(r.params.$$values(t),h,a(t))):n},S.href=function(e,t,i){i=B({lossy:!0,inherit:!0,absolute:!1,relative:S.$current},i||{});var r=d(e,i.relative);if(!M(r))return null;i.inherit&&(t=l(h,t||{},S.$current,r));var o=r&&i.lossy?r.navigable:r;return o&&o.url!==n&&null!==o.url?m.href(o.url,u(r.params.$$keys(),t||{}),{absolute:i.absolute}):null},S.get=function(e,t){if(0===arguments.length)return p(a(x),function(e){return x[e].self});var n=d(e,t||S.$current);return n&&n.self?n.self:null},S}function b(e,t,n,i){if(e===t&&(n===t.locals&&!i.reload||e.self.reloadOnSearch===!1))return!0}var _,S,x={},T={},E="abstract",C={parent:function(e){if(M(e.parent)&&e.parent)return d(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?d(t[1]):_},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=B({},e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(L(t))return"^"==t.charAt(0)?r.compile(t.substring(1),n):(e.parent.navigable||_).url.concat(t,n);if(!t||r.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},ownParams:function(e){var t=e.url&&e.url.params||new z.ParamSet;return V(e.params||{},function(e,n){t[n]||(t[n]=new z.Param(n,null,e,"config"))}),t},params:function(e){return e.parent&&e.parent.params?B(e.parent.params.$$new(),e.ownParams):new z.ParamSet},views:function(e){var t={};return V(M(e.views)?e.views:{"":e},function(n,i){i.indexOf("@")<0&&(i+="@"+e.parent.name),t[i]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?B({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};_=m({name:"",url:"^",views:null,abstract:!0}),_.navigable=null,this.decorator=$,this.state=w,this.$get=y,y.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function b(){function e(e,t){return{load:function(n,i){var r;return i=B({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},i),i.view&&(r=t.fromConfig(i.view,i.params,i.locals)),r&&i.notify&&e.$broadcast("$viewContentLoading",i),r}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function _(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){n(function(){e[0].scrollIntoView()},0,!1)}}]}function S(e,n,i,r){function o(e,t){if(l)return{enter:function(e,t,n){var i=l.enter(e,null,t,n);i&&i.then&&i.then(n)},leave:function(e,t){var n=l.leave(e,t);n&&n.then&&n.then(t)}};if(s){var n=s&&s(t,e);return{enter:function(e,t,i){n.enter(e,null,t),i()},leave:function(e,t){n.leave(e),t()}}}return function(){return{enter:function(e,t,n){t.after(e),n()},leave:function(e,t){e.remove(),t()}}}()}var a=function(){return n.has?function(e){return n.has(e)?n.get(e):null}:function(e){try{return n.get(e)}catch(e){return null}}}(),s=a("$animator"),l=a("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,a,s){return function(n,a,l){function c(){d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),f&&(g.leave(f,function(){d=null}),d=f,f=null)}function u(o){var u,d=T(n,l,a,r),$=d&&e.$current&&e.$current.locals[d];if(o||$!==h){u=n.$new(),h=e.$current.locals[d];f=s(u,function(e){g.enter(e,a,function(){p&&p.$emit("$viewContentAnimationEnded"),(t.isDefined(v)&&!v||n.$eval(v))&&i(e)}),c()}),p=u,p.$emit("$viewContentLoaded"),p.$eval(m)}}var d,f,p,h,m=l.onload||"",v=l.autoscroll,g=o(l,n);n.$on("$stateChangeSuccess",function(){u(!1)}),n.$on("$viewContentLoading",function(){u(!1)}),u(!0)}}}}function x(e,t,n,i){return{restrict:"ECA",priority:-400,compile:function(r){var o=r.html();return function(r,a,s){var l=n.$current,c=T(r,s,a,i),u=l&&l.locals[c];if(u){a.data("$uiView",{name:c,state:u.$$state}),a.html(u.$template?u.$template:o);var d=e(a.contents());if(u.$$controller){u.$scope=r;var f=t(u.$$controller,u);u.$$controllerAs&&(r[u.$$controllerAs]=f),a.data("$ngControllerController",f),a.children().data("$ngControllerController",f)}d(r)}}}}}function T(e,t,n,i){var r=i(t.uiView||t.name||"")(e),o=n.inheritedData("$uiView");return r.indexOf("@")>=0?r:r+"@"+(o?o.state.name:"")}function E(e,t){ var n,i=e.match(/^\s*({[^}]*})\s*$/);if(i&&(e=t+"("+i[1]+")"),!(n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function C(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function k(e,n){var i=["location","inherit","reload"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,o,a,s){var l=E(a.uiSref,e.current.name),c=null,u=C(o)||e.$current,d=null,f="A"===o.prop("tagName"),p="FORM"===o[0].nodeName,h=p?"action":"href",m=!0,v={relative:u,inherit:!0},g=r.$eval(a.uiSrefOpts)||{};t.forEach(i,function(e){e in g&&(v[e]=g[e])});var $=function(n){if(n&&(c=t.copy(n)),m){d=e.href(l.state,c,v);var i=s[1]||s[0];if(i&&i.$$setStateInfo(l.state,c),null===d)return m=!1,!1;a.$set(h,d)}};l.paramExpr&&(r.$watch(l.paramExpr,function(e,t){e!==c&&$(e)},!0),c=t.copy(r.$eval(l.paramExpr))),$(),p||o.bind("click",function(t){if(!((t.which||t.button)>1||t.ctrlKey||t.metaKey||t.shiftKey||o.attr("target"))){var i=n(function(){e.go(l.state,c,v)});t.preventDefault();var r=f&&!d?1:0;t.preventDefault=function(){r--<=0&&n.cancel(i)}}})}}}function A(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,i,r){function o(){a()?i.addClass(c):i.removeClass(c)}function a(){return void 0!==r.uiSrefActiveEq?s&&e.is(s.name,l):s&&e.includes(s.name,l)}var s,l,c;c=n(r.uiSrefActiveEq||r.uiSrefActive||"",!1)(t),this.$$setStateInfo=function(t,n){s=e.get(t,C(i)),l=n,o()},t.$on("$stateChangeSuccess",o)}]}}function I(e){var t=function(t){return e.is(t)};return t.$stateful=!0,t}function D(e){var t=function(t){return e.includes(t)};return t.$stateful=!0,t}var M=t.isDefined,P=t.isFunction,L=t.isString,O=t.isObject,N=t.isArray,V=t.forEach,B=t.extend,R=t.copy;t.module("ui.router.util",["ng"]),t.module("ui.router.router",["ui.router.util"]),t.module("ui.router.state",["ui.router.router","ui.router.util"]),t.module("ui.router",["ui.router.state"]),t.module("ui.router.compat",["ui.router"]),h.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",h),m.$inject=["$http","$templateCache","$injector"],t.module("ui.router.util").service("$templateFactory",m);var z;v.prototype.concat=function(e,t){var n={caseInsensitive:z.caseInsensitive(),strict:z.strictMode(),squash:z.defaultSquashPolicy()};return new v(this.sourcePath+e+this.sourceSearch,B(n,t),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(e,t){var n=this.regexp.exec(e);if(!n)return null;t=t||{};var i,r,o,a=this.parameters(),s=a.length,l=this.segments.length-1,c={};if(l!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(i=0;i<l;i++){o=a[i];var u=this.params[o],d=n[i+1];for(r=0;r<u.replace;r++)u.replace[r].from===d&&(d=u.replace[r].to);d&&u.array===!0&&(d=function(e){function t(e){return e.split("").reverse().join("")}function n(e){return e.replace(/\\-/,"-")}return p(p(t(e).split(/-(?!\\)/),t),n).reverse()}(d)),c[o]=u.value(d)}for(;i<s;i++)o=a[i],c[o]=this.params[o].value(t[o]);return c},v.prototype.parameters=function(e){return M(e)?this.params[e]||null:this.$$paramNames},v.prototype.validates=function(e){return this.params.$$validates(e)},v.prototype.format=function(e){function t(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})}e=e||{};var n=this.segments,i=this.parameters(),r=this.params;if(!this.validates(e))return null;var o,a=!1,s=n.length-1,l=i.length,c=n[0];for(o=0;o<l;o++){var u=o<s,d=i[o],f=r[d],h=f.value(e[d]),m=f.isOptional&&f.type.equals(f.value(),h),v=!!m&&f.squash,g=f.type.encode(h);if(u){var $=n[o+1];if(v===!1)null!=g&&(c+=N(g)?p(g,t).join("-"):encodeURIComponent(g)),c+=$;else if(v===!0){var w=c.match(/\/$/)?/\/?(.*)/:/(.*)/;c+=$.match(w)[1]}else L(v)&&(c+=v+$)}else{if(null==g||m&&v!==!1)continue;N(g)||(g=[g]),g=p(g,encodeURIComponent).join("&"+d+"="),c+=(a?"&":"?")+d+"="+g,a=!0}}return c},g.prototype.is=function(e,t){return!0},g.prototype.encode=function(e,t){return e},g.prototype.decode=function(e,t){return e},g.prototype.equals=function(e,t){return e==t},g.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},g.prototype.pattern=/.*/,g.prototype.toString=function(){return"{Type:"+this.name+"}"},g.prototype.$asArray=function(e,t){function i(e,t){function i(e,t){return function(){return e[t].apply(e,arguments)}}function r(e){return N(e)?e:M(e)?[e]:[]}function o(e){switch(e.length){case 0:return n;case 1:return"auto"===t?e[0]:e;default:return e}}function a(e){return!e}function s(e,t){return function(n){n=r(n);var i=p(n,e);return t===!0?0===f(i,a).length:o(i)}}this.encode=s(i(e,"encode")),this.decode=s(i(e,"decode")),this.is=s(i(e,"is"),!0),this.equals=function(e){return function(t,n){var i=r(t),o=r(n);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!e(i[a],o[a]))return!1;return!0}}(i(e,"equals")),this.pattern=e.pattern,this.$arrayMode=t}if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new i(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",$),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),w.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",w),y.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").value("$stateParams",{}).provider("$state",y),b.$inject=[],t.module("ui.router.state").provider("$view",b),t.module("ui.router.state").provider("$uiViewScroll",_),S.$inject=["$state","$injector","$uiViewScroll","$interpolate"],x.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",S),t.module("ui.router.state").directive("uiView",x),k.$inject=["$state","$timeout"],A.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",k).directive("uiSrefActive",A).directive("uiSrefActiveEq",A),I.$inject=["$state"],D.$inject=["$state"],t.module("ui.router.state").filter("isState",I).filter("includedByState",D)}(window,window.angular),function(){function e(e,t,n,i,r,o){function a(i,a,s,l,u){function d(){O.resizeRequiresRefresh(g.__clientWidth,g.__clientHeight)&&p()}function f(){return _||(_=new e({afterItemsNode:L[0],containerNode:w,heightData:E,widthData:C,forceRefreshImages:!(!c(s.forceRefreshImages)||"false"===s.forceRefreshImages),keyExpression:S,renderBuffer:D,scope:i,scrollView:l.scrollView,transclude:u}))}function p(){var e=A.length>0;if(e&&(E.computed||C.computed)&&m(),e&&E.computed){if(E.value=k.height,!E.value)throw new Error('collection-repeat tried to compute the height of repeated elements "'+y+'", but was unable to. Please provide the "item-height" attribute. http://ionicframework.com/docs/api/directive/collectionRepeat/')}else!E.dynamic&&E.getValue&&(E.value=E.getValue());if(e&&C.computed){if(C.value=k.width,!C.value)throw new Error('collection-repeat tried to compute the width of repeated elements "'+y+'", but was unable to. Please provide the "item-width" attribute. http://ionicframework.com/docs/api/directive/collectionRepeat/')}else!C.dynamic&&C.getValue&&(C.value=C.getValue());f().refreshLayout()}function h(e,n){if(e){var i;try{i=t(e)}catch(n){e.trim().match(/\d+(px|%)$/)&&(e='"'+e+'"'),i=t(e)}var r=e.replace(/(\'|\"|px|%)/g,"").trim(),o=r.length&&!/([a-zA-Z]|\$|:|\?)/.test(r);if(n.attrValue=e,o)if(e.indexOf("%")>-1){var a=parseFloat(i())/100;n.getValue=n===E?function(){return Math.floor(a*g.__clientHeight)}:function(){return Math.floor(a*g.__clientWidth)}}else n.value=parseInt(i());else n.dynamic=!0,n.getValue=n===E?function(e,t){var n=i(e,t);return n.charAt&&"%"===n.charAt(n.length-1)?Math.floor(parseFloat(n)/100*g.__clientHeight):parseInt(n)}:function(e,t){var n=i(e,t);return n.charAt&&"%"===n.charAt(n.length-1)?Math.floor(parseFloat(n)/100*g.__clientWidth):parseInt(n)}}}function m(){V||u(B=i.$new(),function(e){e[0].removeAttribute("collection-repeat"),V=e[0]}),B[S]=(T(i)||[])[0],r.$$phase||B.$digest(),w.appendChild(V);var e=n.getComputedStyle(V);k.width=parseInt(e.width),k.height=parseInt(e.height),w.removeChild(V)}var g=l.scrollView,$=a[0],w=angular.element('<div class="collection-repeat-container">')[0];if($.parentNode.replaceChild(w,$),g.options.scrollingX&&g.options.scrollingY)throw new Error("collection-repeat expected a parent x or y scrollView, not an xy scrollView.");var y=s.collectionRepeat,b=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!b)throw new Error("collection-repeat expected expression in form of '_item_ in _collection_[ track by _id_]' but got '"+s.collectionRepeat+"'.");var _,S=b[1],x=b[2],T=t(x),E={},C={},k={},A=[],I=s.itemRenderBuffer||s.collectionBufferSize,D=angular.isDefined(I)?parseInt(I):v,M=s.itemHeight||s.collectionItemHeight,P=s.itemWidth||s.collectionItemWidth,L=function(){var e=angular.element(g.__content.querySelector(".collection-repeat-after-container"));if(!e.length){var t=!1,n=[].filter.call(g.__content.childNodes,function(e){return ionic.DomUtil.contains(e,w)?(t=!0,!1):t});e=angular.element('<span class="collection-repeat-after-container">'),g.options.scrollingX&&e.addClass("horizontal"),e.append(n),g.__content.appendChild(e[0])}return e}(),O=function(){var e;return e={dataLength:0,width:0,height:0,resizeRequiresRefresh:function(t,n){var i=e.dataLength&&t&&n&&(t!==e.width||n!==e.height);return e.width=t,e.height=n,!!i},dataChangeRequiresRefresh:function(t){var n=t.length>0||t.length<e.dataLength;return e.dataLength=t.length,!!n}}}();!function(){M?h(M,E):E.computed=!0,P?h(P,C):C.computed=!0}(),l.$element.on("scroll-resize",p),angular.element(n).on("resize",d);var N=r.$on("$ionicExposeAside",ionic.animationFrameThrottle(function(){l.scrollView.resize(),d()}));o(p,0,!1),i.$watchCollection(T,function(e){if(A=e||(e=[]),!angular.isArray(e))throw new Error("collection-repeat expected an array for '"+x+"', but got a "+typeof value);i.$$postDigest(function(){f().setData(A),O.dataChangeRequiresRefresh(A)&&p()})}),i.$on("$destroy",function(){angular.element(n).off("resize",d),N(),l.$element&&l.$element.off("scroll-resize",p),V&&V.parentNode&&V.parentNode.removeChild(V),B&&B.$destroy(),B=V=null,_&&_.destroy(),_=null});var V,B}return{restrict:"A",priority:1e3,transclude:"element",$$tlb:!0,require:"^^$ionicScroll",link:a}}function t(e,t,n){var i={primaryPos:0,secondaryPos:0,primarySize:0,secondarySize:0,rowPrimarySize:0};return function(r){function o(){return a(!0)}function a(t){if(!a.destroyed){var n,r,o,c,u,d=ee.getScrollValue(),f=d+ee.scrollPrimarySize;ee.updateRenderRange(d,f),G=Math.max(0,G-T),j=Math.min(A.length-1,j+T);for(n in Z)(n<G||n>j)&&(o=Z[n],delete Z[n],X.push(o),o.isShown=!1);for(n=G;n<=j;n++)n>=A.length||Z[n]&&!t||(o=Z[n]||(Z[n]=X.length?X.pop():Y.length?Y.shift():new l),K.push(o),o.isShown=!0,u=o.scope,u.$index=n,u[x]=A[n],u.$first=0===n,u.$last=n===A.length-1,u.$middle=!(u.$first||u.$last),u.$odd=!(u.$even=0==(1&n)),u.$$disconnected&&ionic.Utils.reconnectScope(o.scope),c=ee.getDimensions(n),o.secondaryPos===c.secondaryPos&&o.primaryPos===c.primaryPos||(o.node.style[ionic.CSS.TRANSFORM]=z.replace(B,o.primaryPos=c.primaryPos).replace(R,o.secondaryPos=c.secondaryPos)),o.secondarySize===c.secondarySize&&o.primarySize===c.primarySize||(o.node.style.cssText=o.node.style.cssText.replace(m,H.replace(B,(o.primarySize=c.primarySize)+1).replace(R,o.secondarySize=c.secondarySize))));for(j===A.length-1&&(c=ee.getDimensions(A.length-1)||i,w.style[ionic.CSS.TRANSFORM]=z.replace(B,c.primaryPos+c.primarySize).replace(R,0));X.length;)o=X.pop(),o.scope.$broadcast("$collectionRepeatLeave"),ionic.Utils.disconnectScope(o.scope),Y.push(o),o.node.style[ionic.CSS.TRANSFORM]="translate3d(-9999px,-9999px,0)",o.primaryPos=o.secondaryPos=null;if(b)for(n=0,r=K.length;n<r&&(o=K[n]);n++)if(o.images)for(var p,v=0,g=o.images.length;v<g&&(p=o.images[v]);v++){var $=p.src;p.src=h,p.src=$}if(t)for(var y=e.$$phase;K.length;)o=K.pop(),y||o.scope.$digest();else s()}}function s(){var t;s.running||(s.running=!0,n(function(){for(var n=e.$$phase;K.length;)t=K.pop(),t.isShown&&(n||t.scope.$digest());s.running=!1}))}function l(){var e=this;this.scope=E.$new(),this.id="item"+J++,k(this.scope,function(t){e.element=t,e.element.data("$$collectionRepeatItem",e),e.node=t[0],e.node.style[ionic.CSS.TRANSFORM]="translate3d(-9999px,-9999px,0)",e.node.style.cssText+=" height: 0px; width: 0px;",ionic.Utils.disconnectScope(e.scope),y.appendChild(e.node),e.images=t[0].getElementsByTagName("img")})}function c(){this.getItemPrimarySize=M,this.getItemSecondarySize=L,this.getScrollValue=function(){return Math.max(0,Math.min(C.__scrollTop-F,C.__maxScrollTop-F-q))},this.refreshDirection=function(){this.scrollPrimarySize=C.__clientHeight,this.scrollSecondarySize=C.__clientWidth,this.estimatedPrimarySize=g,this.estimatedSecondarySize=$,this.estimatedItemsAcross=N&&Math.floor(C.__clientWidth/$)||1}}function u(){this.getItemPrimarySize=L,this.getItemSecondarySize=M,this.getScrollValue=function(){return Math.max(0,Math.min(C.__scrollLeft-F,C.__maxScrollLeft-F-q))},this.refreshDirection=function(){this.scrollPrimarySize=C.__clientWidth,this.scrollSecondarySize=C.__clientHeight,this.estimatedPrimarySize=$,this.estimatedSecondarySize=g,this.estimatedItemsAcross=N&&Math.floor(C.__clientHeight/g)||1}}function d(){this.getEstimatedSecondaryPos=function(e){return e%this.estimatedItemsAcross*this.estimatedSecondarySize},this.getEstimatedPrimaryPos=function(e){return Math.floor(e/this.estimatedItemsAcross)*this.estimatedPrimarySize},this.getEstimatedIndex=function(e){return Math.floor(e/this.estimatedPrimarySize)*this.estimatedItemsAcross}}function f(){this.getEstimatedSecondaryPos=function(){return 0},this.getEstimatedPrimaryPos=function(e){return e*this.estimatedPrimarySize},this.getEstimatedIndex=function(e){return Math.floor(e/this.estimatedPrimarySize)}}function p(){this.getContentSize=function(){return this.getEstimatedPrimaryPos(A.length-1)+this.estimatedPrimarySize+F+q};var e={};this.getDimensions=function(t){return e.primaryPos=this.getEstimatedPrimaryPos(t),e.secondaryPos=this.getEstimatedSecondaryPos(t),e.primarySize=this.estimatedPrimarySize,e.secondarySize=this.estimatedSecondarySize,e},this.updateRenderRange=function(e,t){G=Math.max(0,this.getEstimatedIndex(e)),j=Math.min(A.length-1,this.getEstimatedIndex(t)+this.estimatedItemsAcross-1),W=Math.max(0,this.getEstimatedPrimaryPos(G)),U=this.getEstimatedPrimaryPos(j)+this.estimatedPrimarySize}}function v(){function e(e){var t,o,a;for(t=Math.max(0,n);t<=e&&(a=s[t]);t++)o=s[t-1]||i,a.primarySize=r.getItemPrimarySize(t,A[t]),a.secondarySize=r.scrollSecondarySize,a.primaryPos=o.primaryPos+o.primarySize,a.secondaryPos=0}function t(e){var t,o,a;for(t=Math.max(n,0);t<=e&&(a=s[t]);t++)o=s[t-1]||i,a.secondarySize=Math.min(r.getItemSecondarySize(t,A[t]),r.scrollSecondarySize),a.secondaryPos=o.secondaryPos+o.secondarySize,0===t||a.secondaryPos+a.secondarySize>r.scrollSecondarySize?(a.secondaryPos=0,a.primarySize=r.getItemPrimarySize(t,A[t]),a.primaryPos=o.primaryPos+o.rowPrimarySize,a.rowStartIndex=t,a.rowPrimarySize=a.primarySize):(a.primarySize=r.getItemPrimarySize(t,A[t]),a.primaryPos=o.primaryPos,a.rowStartIndex=o.rowStartIndex,s[a.rowStartIndex].rowPrimarySize=a.rowPrimarySize=Math.max(s[a.rowStartIndex].rowPrimarySize,a.primarySize),a.rowPrimarySize=Math.max(a.primarySize,a.rowPrimarySize))}var n,r=this,o=ionic.debounce(Q,25,!0),a=N?t:e,s=[];this.getContentSize=function(){var e=s[n]||i;return(e.primaryPos+e.primarySize||0)+this.getEstimatedPrimaryPos(A.length-n-1)+F+q},this.onDestroy=function(){s.length=0},this.onRefreshData=function(){var e,t;for(e=s.length,t=A.length;e<t;e++)s.push({});n=-1},this.onRefreshLayout=function(){n=-1},this.getDimensions=function(e){return e=Math.min(e,A.length-1),n<e&&(e>.9*A.length?(a(A.length-1),n=A.length-1,Q()):(a(e),n=e,o())),s[e]};var l=-1,c=-1;this.updateRenderRange=function(e,t){var n,i,r;if(this.getDimensions(2*this.getEstimatedIndex(t)),l===-1||0===e)n=0;else if(e>=c)for(n=l,i=A.length;n<i&&!((r=this.getDimensions(n))&&r.primaryPos+r.rowPrimarySize>=e);n++);else for(n=l;n>=0;n--)if((r=this.getDimensions(n))&&r.primaryPos<=e){n=N?r.rowStartIndex:n;break}G=Math.min(Math.max(0,n),A.length-1),W=G!==-1?this.getDimensions(G).primaryPos:-1;var o;for(n=G+1,i=A.length;n<i;n++)if((r=this.getDimensions(n))&&r.primaryPos+r.rowPrimarySize>t){if(N)for(o=r;n<i-1&&(r=this.getDimensions(n+1)).primaryPos===o.primaryPos;)n++;break}j=Math.min(n,A.length-1),U=j!==-1?(r=this.getDimensions(j)).primaryPos+(r.rowPrimarySize||r.primarySize):-1,c=e,l=G}}var g,$,w=r.afterItemsNode,y=r.containerNode,b=r.forceRefreshImages,_=r.heightData,S=r.widthData,x=r.keyExpression,T=r.renderBuffer,E=r.scope,C=r.scrollView,k=r.transclude,A=[],I={},D=_.getValue||function(){return _.value},M=function(e,t){return I[x]=t,I.$index=e,D(E,I)},P=S.getValue||function(){return S.value},L=function(e,t){return I[x]=t,I.$index=e,P(E,I)},O=!!C.options.scrollingY,N=O?S.dynamic||S.value!==C.__clientWidth:_.dynamic||_.value!==C.__clientHeight,V=!_.dynamic&&!S.dynamic,B="PRIMARY",R="SECONDARY",z=O?"translate3d(SECONDARYpx,PRIMARYpx,0)":"translate3d(PRIMARYpx,SECONDARYpx,0)",H=O?"height: PRIMARYpx; width: SECONDARYpx;":"height: SECONDARYpx; width: PRIMARYpx;",F=0,q=0,G=-1,j=-1,U=-1,W=-1,Y=[],X=[],K=[],Z={},J=0,Q=O?function(){C.setDimensions(null,null,null,ee.getContentSize(),!0)}:function(){C.setDimensions(null,null,ee.getContentSize(),null,!0)},ee=O?new c:new u;(N?d:f).call(ee),(V?p:v).call(ee);var te=O?"getContentHeight":"getContentWidth",ne=C.options[te];C.options[te]=angular.bind(ee,ee.getContentSize),C.__$callback=C.__callback,C.__callback=function(e,t,n,i){var r=ee.getScrollValue();(G===-1||r+ee.scrollPrimarySize>U||r<W)&&a(),C.__$callback(e,t,n,i)};var ie=!1,re=!1;this.refreshLayout=function(){A.length?(g=M(0,A[0]),$=L(0,A[0])):(g=100,$=100);var e=getComputedStyle(w)||{},n=w.firstElementChild&&getComputedStyle(w.firstElementChild)||{},i=w.lastElementChild&&getComputedStyle(w.lastElementChild)||{};q=(parseInt(e[O?"height":"width"])||0)+(n&&parseInt(n[O?"marginTop":"marginLeft"])||0)+(i&&parseInt(i[O?"marginBottom":"marginRight"])||0),F=0;var r=y;do{F+=r[O?"offsetTop":"offsetLeft"]}while(ionic.DomUtil.contains(C.__content,r=r.offsetParent));var a=y.previousElementSibling,s=a?t.getComputedStyle(a):{},c=parseInt(s[O?"marginBottom":"marginRight"]||0);if(y.style[ionic.CSS.TRANSFORM]=z.replace(B,-c).replace(R,0),F-=c,C.__clientHeight&&C.__clientWidth||(C.__clientWidth=C.__container.clientWidth,C.__clientHeight=C.__container.clientHeight),(ee.onRefreshLayout||angular.noop)(),ee.refreshDirection(),Q(),!ie)for(var u=Math.max(20,3*T),d=0;d<u;d++)Y.push(new l);(ie=!0)&&re&&((C.__scrollLeft>C.__maxScrollLeft||C.__scrollTop>C.__maxScrollTop)&&C.resize(),o())},this.setData=function(e){A=e,(ee.onRefreshData||angular.noop)(),re=!0},this.destroy=function(){a.destroyed=!0,Y.forEach(function(e){e.scope.$destroy(),e.scope=e.element=e.node=e.images=null}),Y.length=K.length=X.length=0,Z={},C.options[te]=ne,C.__callback=C.__$callback,C.resize(),(ee.onDestroy||angular.noop)()}}}function n(e){return["$ionicGesture","$parse",function(t,n){var i=e.substr(2).toLowerCase();return function(r,o,a){var s=n(a[e]),l=function(e){r.$apply(function(){s(r,{$event:e})})},c=t.on(i,l,o);r.$on("$destroy",function(){t.off(c,i,l)})}}]}function i(e){return["$document","$timeout",function(t,n){return{restrict:"E",controller:"$ionicHeaderBar",compile:function(i){function r(t,n,i,r){e?(t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("ng-hide")===-1,i=e.indexOf("bar-subheader")!==-1;t.$hasHeader=n&&!i,t.$hasSubheader=n&&i,t.$emit("$ionicSubheader",t.$hasSubheader)}),t.$on("$destroy",function(){delete t.$hasHeader,delete t.$hasSubheader}),r.align(),t.$on("$ionicHeader.align",function(){ionic.requestAnimationFrame(function(){r.align()})})):(t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("ng-hide")===-1,i=e.indexOf("bar-subfooter")!==-1;t.$hasFooter=n&&!i,t.$hasSubfooter=n&&i}),t.$on("$destroy",function(){delete t.$hasFooter,delete t.$hasSubfooter}),t.$watch("$hasTabs",function(e){n.toggleClass("has-tabs",!!e)}),r.align(),t.$on("$ionicFooter.align",function(){ionic.requestAnimationFrame(function(){r.align()})}))}return i.addClass(e?"bar bar-header":"bar bar-footer"),n(function(){e&&t[0].getElementsByClassName("tabs-top").length&&i.addClass("has-tabs-top")}),{pre:r}}}}]}function r(e){return e.clientHeight}function o(e){e.stopPropagation()}var a=angular.module("ionic",["ngAnimate","ngSanitize","ui.router","ngIOS9UIWebViewPatch"]),s=angular.extend,l=angular.forEach,c=angular.isDefined,u=angular.isNumber,d=angular.isString,f=angular.element,p=angular.noop;a.factory("$ionicActionSheet",["$rootScope","$compile","$animate","$timeout","$ionicTemplateLoader","$ionicPlatform","$ionicBody","IONIC_BACK_PRIORITY",function(e,t,n,i,r,o,a,l){function c(r){function c(e){e&&/icon/.test(e)&&(u.$actionSheetHasIcon=!0)}var u=e.$new(!0);s(u,{cancel:p,destructiveButtonClicked:p,buttonClicked:p,$deregisterBackButton:p,buttons:[],cancelOnStateChange:!0},r||{});for(var d=0;d<u.buttons.length;d++)c(u.buttons[d].text);c(u.cancelText),c(u.destructiveText);var h=u.element=t('<ion-action-sheet ng-class="cssClass" buttons="buttons"></ion-action-sheet>')(u),m=f(h[0].querySelector(".action-sheet-wrapper")),v=u.cancelOnStateChange?e.$on("$stateChangeSuccess",function(){u.cancel()}):p;return u.removeSheet=function(e){u.removed||(u.removed=!0,m.removeClass("action-sheet-up"),i(function(){a.removeClass("action-sheet-open")},400),u.$deregisterBackButton(),v(),n.removeClass(h,"active").then(function(){u.$destroy(),h.remove(),u.cancel.$scope=m=null,(e||p)(r.buttons)}))},u.showSheet=function(e){u.removed||(a.append(h).addClass("action-sheet-open"),n.addClass(h,"active").then(function(){u.removed||(e||p)()}),i(function(){u.removed||m.addClass("action-sheet-up")},20,!1))},u.$deregisterBackButton=o.registerBackButtonAction(function(){i(u.cancel)},l.actionSheet),u.cancel=function(){u.removeSheet(r.cancel)},u.buttonClicked=function(e){r.buttonClicked(e,r.buttons[e])===!0&&u.removeSheet()},u.destructiveButtonClicked=function(){r.destructiveButtonClicked()===!0&&u.removeSheet()},u.showSheet(),u.cancel.$scope=u,u.cancel}return{show:c}}]),f.prototype.addClass=function(e){var t,n,i,r,o,a;if(e&&"ng-scope"!=e&&"ng-isolate-scope"!=e)for(t=0;t<this.length;t++)if(r=this[t],r.setAttribute)if(e.indexOf(" ")<0&&r.classList.add)r.classList.add(e);else{for(a=(" "+(r.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),o=e.split(" "),n=0;n<o.length;n++)i=o[n].trim(),a.indexOf(" "+i+" ")===-1&&(a+=i+" ");r.setAttribute("class",a.trim())}return this},f.prototype.removeClass=function(e){var t,n,i,r,o;if(e)for(t=0;t<this.length;t++)if(o=this[t],o.getAttribute)if(e.indexOf(" ")<0&&o.classList.remove)o.classList.remove(e);else for(i=e.split(" "),n=0;n<i.length;n++)r=i[n],o.setAttribute("class",(" "+(o.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+r.trim()+" "," ").trim());return this},a.factory("$ionicBackdrop",["$document","$timeout","$$rAF","$rootScope",function(e,t,n,i){function r(){1===++l&&(s.addClass("visible"),i.$broadcast("backdrop.shown"),n(function(){l>=1&&s.addClass("active")}))}function o(){1===l&&(s.removeClass("active"),i.$broadcast("backdrop.hidden"),t(function(){0===l&&s.removeClass("visible")},400,!1)),l=Math.max(0,l-1)}function a(){return s}var s=f('<div class="backdrop">'),l=0;return e[0].body.appendChild(s[0]),{retain:r,release:o,getElement:a,_element:s}}]),a.factory("$ionicBind",["$parse","$interpolate",function(e,t){return function(n,i,r){l(r||{},function(r,o){var a,s,l=r.match(/^\s*([@=&])(\??)\s*(\w*)\s*$/)||[],c=l[3]||o,u=l[1];switch(u){case"@":if(!i[c])return;i.$observe(c,function(e){n[o]=e}),i[c]&&(n[o]=t(i[c])(n));break;case"=":if(!i[c])return;s=n.$watch(i[c],function(e){n[o]=e}),n.$on("$destroy",s);break;case"&":if(i[c]&&i[c].match(RegExp(o+"(.*?)")))throw new Error('& expression binding "'+o+'" looks like it will recursively call "'+i[c]+'" and cause a stack overflow! Please choose a different scopeName.');a=e(i[c]),n[o]=function(e){return a(n,e)}}})}}]),a.factory("$ionicBody",["$document",function(e){return{addClass:function(){for(var t=0;t<arguments.length;t++)e[0].body.classList.add(arguments[t]);return this},removeClass:function(){for(var t=0;t<arguments.length;t++)e[0].body.classList.remove(arguments[t]);return this},enableClass:function(e){var t=Array.prototype.slice.call(arguments).slice(1);return e?this.addClass.apply(this,t):this.removeClass.apply(this,t),this},append:function(t){return e[0].body.appendChild(t.length?t[0]:t),this},get:function(){return e[0].body}}}]),a.factory("$ionicClickBlock",["$document","$ionicBody","$timeout",function(e,t,n){function i(e){e.preventDefault(),e.stopPropagation()}function r(){l&&(a?a.classList.remove(c):(a=e[0].createElement("div"),a.className="click-block",t.append(a),a.addEventListener("touchstart",i),a.addEventListener("mousedown",i)),l=!1)}function o(){a&&a.classList.add(c)}var a,s,l,c="click-block-hide";return{show:function(e){l=!0,n.cancel(s),s=n(this.hide,e||310,!1),r()},hide:function(){l=!1,n.cancel(s),o()}}}]),a.factory("$ionicGesture",[function(){return{on:function(e,t,n,i){return window.ionic.onGesture(e,t,n[0],i)},off:function(e,t,n){return window.ionic.offGesture(e,t,n)}}}]),a.factory("$ionicHistory",["$rootScope","$state","$location","$window","$timeout","$ionicViewSwitcher","$ionicNavViewDelegate",function(e,t,n,i,r,o,a){function l(e){return e?E.views[e]:null}function u(e){return e?l(e.backViewId):null}function d(e){return e?l(e.forwardViewId):null}function f(e){return e?E.histories[e]:null}function p(e){var t=h(e);return E.histories[t.historyId]||(E.histories[t.historyId]={historyId:t.historyId,parentHistoryId:h(t.scope.$parent).historyId,stack:[],cursor:-1}),f(t.historyId)}function h(t){for(var n=t;n;){if(n.hasOwnProperty("$historyId"))return{historyId:n.$historyId,scope:n};n=n.$parent}return{historyId:"root",scope:e}}function m(e){E.currentView=l(e),E.backView=u(E.currentView),E.forwardView=d(E.currentView)}function v(){var e;if(t&&t.current&&t.current.name){if(e=t.current.name,t.params)for(var n in t.params)t.params.hasOwnProperty(n)&&t.params[n]&&(e+="_"+n+"="+t.params[n]);return e}return ionic.Utils.nextUid()}function g(){var e;if(t&&t.params)for(var n in t.params)t.params.hasOwnProperty(n)&&(e=e||{},e[n]=t.params[n]);return e}function $(e){return e&&e.length&&/ion-side-menus|ion-tabs/i.test(e[0].tagName)}function w(e,t){if(t&&t.$$state&&t.$$state.self.canSwipeBack===!1)return!1;if(e&&"false"===e.attr("can-swipe-back"))return!1;var n=e.find("ion-view");return!n||"false"!==n.attr("can-swipe-back")}var y,b,_,S,x,T=0,E={histories:{root:{historyId:"root",parentHistoryId:null,stack:[],cursor:-1}},views:{},backView:null,forwardView:null,currentView:null},C=function(){};return C.prototype.initialize=function(e){if(e){for(var t in e)this[t]=e[t];return this}return null},C.prototype.go=function(){if(this.stateName)return t.go(this.stateName,this.stateParams);if(this.url&&this.url!==n.url()){if(E.backView===this)return i.history.go(-1);if(E.forwardView===this)return i.history.go(1);n.url(this.url)}return null},C.prototype.destroy=function(){this.scope&&(this.scope.$destroy&&this.scope.$destroy(),this.scope=null)},{register:function(e,t){var i,a,s,c=v(),d=p(e),$=E.currentView,C=E.backView,k=E.forwardView,A=null,I=null,D="none",M=d.historyId,P=n.url();if(y!==c&&(y=c,T++),x)A=x.viewId,I=x.action,D=x.direction,x=null;else if(C&&C.stateId===c)A=C.viewId,M=C.historyId,I="moveBack",C.historyId===$.historyId?D="back":$&&(D="exit",i=f(C.historyId),i&&i.parentHistoryId===$.historyId?D="enter":(i=f($.historyId))&&i.parentHistoryId===d.parentHistoryId&&(D="swap"));else if(k&&k.stateId===c)A=k.viewId,M=k.historyId,I="moveForward",k.historyId===$.historyId?D="forward":$&&(D="exit",$.historyId===d.parentHistoryId?D="enter":(i=f($.historyId))&&i.parentHistoryId===d.parentHistoryId&&(D="swap")),i=h(e),k.historyId&&i.scope&&(i.scope.$historyId=k.historyId,M=k.historyId);else if($&&$.historyId!==M&&d.cursor>-1&&d.stack.length>0&&d.cursor<d.stack.length&&d.stack[d.cursor].stateId===c){var L=d.stack[d.cursor];if(A=L.viewId,M=L.historyId,I="moveBack",D="swap",i=f($.historyId),i&&i.parentHistoryId===M?D="exit":(i=f(M))&&i.parentHistoryId===$.historyId&&(D="enter"),(i=l(L.backViewId))&&L.historyId!==i.historyId){var O=Object.keys(E.views);O.forEach(function(e){var t=E.views[e];t.backViewId===L.viewId&&(t.backViewId=null)}),d.stack[d.cursor].backViewId=$.viewId}}else{if(s=o.createViewEle(t),this.isAbstractEle(s,t))return{action:"abstractView",direction:"none",ele:s};if(A=ionic.Utils.nextUid(),$){if($.forwardViewId=A,I="newView",k&&$.stateId!==k.stateId&&$.historyId===k.historyId&&(i=f(k.historyId))){for(a=i.stack.length-1;a>=k.index;a--){var N=i.stack[a];N&&N.destroy&&N.destroy(),i.stack.splice(a)}M=k.historyId}d.historyId===$.historyId?D="forward":$.historyId!==d.historyId&&(D="enter",i=f($.historyId),i&&i.parentHistoryId===d.parentHistoryId?D="swap":(i=f(i.parentHistoryId))&&i.historyId===d.historyId&&(D="exit"))}else I="initialView";T<2&&(D="none"),E.views[A]=this.createView({viewId:A,index:d.stack.length,historyId:d.historyId,backViewId:$&&$.viewId?$.viewId:null,forwardViewId:null,stateId:c,stateName:this.currentStateName(),stateParams:g(),url:P,canSwipeBack:w(s,t)}),d.stack.push(E.views[A])}if(_&&_(),r.cancel(S),b){if(b.disableAnimate&&(D="none"),b.disableBack&&(E.views[A].backViewId=null),b.historyRoot){for(a=0;a<d.stack.length;a++)d.stack[a].viewId===A?(d.stack[a].index=0,d.stack[a].backViewId=d.stack[a].forwardViewId=null):delete E.views[d.stack[a].viewId];d.stack=[E.views[A]]}b=null}if(m(A),E.backView&&M==E.backView.historyId&&c==E.backView.stateId&&P==E.backView.url)for(a=0;a<d.stack.length;a++)if(d.stack[a].viewId==A){I="dupNav",D="none",a>0&&(d.stack[a-1].forwardViewId=null),E.forwardView=null,E.currentView.index=E.backView.index,E.currentView.backViewId=E.backView.backViewId,E.backView=u(E.backView),d.stack.splice(a,1);break}return d.cursor=E.currentView.index,{viewId:A,action:I,direction:D,historyId:M,enableBack:this.enabledBack(E.currentView),isHistoryRoot:0===E.currentView.index,ele:s}},registerHistory:function(e){e.$historyId=ionic.Utils.nextUid()},createView:function(e){return(new C).initialize(e)},getViewById:l,viewHistory:function(){return E},currentView:function(e){return arguments.length&&(E.currentView=e),E.currentView},currentHistoryId:function(){return E.currentView?E.currentView.historyId:null},currentTitle:function(e){if(E.currentView)return arguments.length&&(E.currentView.title=e),E.currentView.title},backView:function(e){return arguments.length&&(E.backView=e),E.backView},backTitle:function(e){var t=e&&l(e.backViewId)||E.backView;return t&&t.title},forwardView:function(e){return arguments.length&&(E.forwardView=e),E.forwardView},currentStateName:function(){return t&&t.current?t.current.name:null},isCurrentStateNavView:function(e){return!!(t&&t.current&&t.current.views&&t.current.views[e])},goToHistoryRoot:function(e){if(e){var t=f(e);if(t&&t.stack.length){if(E.currentView&&E.currentView.viewId===t.stack[0].viewId)return;x={viewId:t.stack[0].viewId,action:"moveBack",direction:"back"},t.stack[0].go()}}},goBack:function(e){if(c(e)&&e!==-1){if(e>-1)return;var t=E.histories[this.currentHistoryId()],n=t.cursor+e+1;n<1&&(n=1),t.cursor=n,m(t.stack[n].viewId);for(var i=n-1,o=[],a=l(t.stack[i].forwardViewId);a&&(o.push(a.stateId||a.viewId),!(++i>=t.stack.length));)a=l(t.stack[i].forwardViewId);var s=this;o.length&&r(function(){s.clearCache(o)},300)}E.backView&&E.backView.go()},removeBackView:function(){var e=this,t=E.histories[this.currentHistoryId()],n=t.cursor,i=t.stack[n],r=t.stack[n-1],o=t.stack[n-2] ;r&&o&&(t.stack.splice(n-1,1),e.clearCache([r.viewId]),i.backViewId=o.viewId,i.index=i.index-1,o.forwardViewId=i.viewId,E.backView=o,t.currentCursor+=-1)},enabledBack:function(e){var t=u(e);return!(!t||t.historyId!==e.historyId)},clearHistory:function(){var e=E.histories,t=E.currentView;if(e)for(var n in e)e[n].stack&&(e[n].stack=[],e[n].cursor=-1),t&&t.historyId===n?(t.backViewId=t.forwardViewId=null,e[n].stack.push(t)):e[n].destroy&&e[n].destroy();for(var i in E.views)i!==t.viewId&&delete E.views[i];t&&m(t.viewId)},clearCache:function(e){return r(function(){a._instances.forEach(function(t){t.clearCache(e)})})},nextViewOptions:function(t){return _&&_(),arguments.length&&(r.cancel(S),null===t?b=t:(b=b||{},s(b,t),b.expire&&(_=e.$on("$stateChangeSuccess",function(){S=r(function(){b=null},b.expire)})))),b},isAbstractEle:function(e,t){return!!(t&&t.$$state&&t.$$state.self.abstract)||!(!e||!$(e)&&!$(e.children()))},isActiveScope:function(e){if(!e)return!1;for(var t,n=e,i=this.currentHistoryId();n;){if(n.$$disconnected)return!1;if(!t&&n.hasOwnProperty("$historyId")&&(t=!0),i){if(n.hasOwnProperty("$historyId")&&i==n.$historyId)return!0;if(n.hasOwnProperty("$activeHistoryId")&&i==n.$activeHistoryId){if(n.hasOwnProperty("$historyId"))return!0;if(!t)return!0}}t&&n.hasOwnProperty("$activeHistoryId")&&(t=!1),n=n.$parent}return!i||"root"==i}}}]).run(["$rootScope","$state","$location","$document","$ionicPlatform","$ionicHistory","IONIC_BACK_PRIORITY",function(e,t,n,i,r,o,a){function s(e){var t=o.backView();return t?t.go():ionic.Platform.exitApp(),e.preventDefault(),!1}e.$on("$ionicView.beforeEnter",function(){ionic.keyboard&&ionic.keyboard.hide&&ionic.keyboard.hide()}),e.$on("$ionicHistory.change",function(e,i){if(!i)return null;var r=o.viewHistory(),a=i.historyId?r.histories[i.historyId]:null;if(a&&a.cursor>-1&&a.cursor<a.stack.length){return a.stack[a.cursor].go(i)}!i.url&&i.uiSref&&(i.url=t.href(i.uiSref)),i.url&&(0===i.url.indexOf("#")&&(i.url=i.url.replace("#","")),i.url!==n.url()&&n.url(i.url))}),e.$ionicGoBack=function(e){o.goBack(e)},e.$on("$ionicView.afterEnter",function(e,t){t&&t.title&&(i[0].title=t.title)}),r.registerBackButtonAction(s,a.view)}]),a.provider("$ionicConfig",function(){function e(e,i){a.platform[e]=i,r.platform[e]={},t(a,a.platform[e]),n(a.platform[e],r.platform[e],"")}function t(e,n){for(var i in e)i!=o&&e.hasOwnProperty(i)&&(angular.isObject(e[i])?(c(n[i])||(n[i]={}),t(e[i],n[i])):c(n[i])||(n[i]=null))}function n(e,t,r){l(e,function(s,l){angular.isObject(e[l])?(t[l]={},n(e[l],t[l],r+"."+l)):t[l]=function(n){if(arguments.length)return e[l]=n,t;if(e[l]==o){var s=i(a.platform,ionic.Platform.platform()+r+"."+l);return s||s===!1?s:i(a.platform,"default"+r+"."+l)}return e[l]}})}function i(e,t){t=t.split(".");for(var n=0;n<t.length;n++){if(!e||!c(e[t[n]]))return null;e=e[t[n]]}return e}var r=this;r.platform={};var o="platform",a={views:{maxCache:o,forwardCache:o,transition:o,swipeBackEnabled:o,swipeBackHitWidth:o},navBar:{alignTitle:o,positionPrimaryButtons:o,positionSecondaryButtons:o,transition:o},backButton:{icon:o,text:o,previousTitleText:o},form:{checkbox:o,toggle:o},scrolling:{jsScrolling:o},spinner:{icon:o},tabs:{style:o,position:o},templates:{maxPrefetch:o},platform:{}};n(a,r,""),e("default",{views:{maxCache:10,forwardCache:!1,transition:"ios",swipeBackEnabled:!0,swipeBackHitWidth:45},navBar:{alignTitle:"center",positionPrimaryButtons:"left",positionSecondaryButtons:"right",transition:"view"},backButton:{icon:"ion-ios-arrow-back",text:"Back",previousTitleText:!0},form:{checkbox:"circle",toggle:"large"},scrolling:{jsScrolling:!0},spinner:{icon:"ios"},tabs:{style:"standard",position:"bottom"},templates:{maxPrefetch:30}}),e("ios",{}),e("android",{views:{transition:"android",swipeBackEnabled:!1},navBar:{alignTitle:"left",positionPrimaryButtons:"right",positionSecondaryButtons:"right"},backButton:{icon:"ion-android-arrow-back",text:!1,previousTitleText:!1},form:{checkbox:"square",toggle:"small"},spinner:{icon:"android"},tabs:{style:"striped",position:"top"},scrolling:{jsScrolling:!1}}),e("windowsphone",{spinner:{icon:"android"}}),r.transitions={views:{},navBar:{}},r.transitions.views.ios=function(e,t,n,i){function r(e,t,n,i){var r={};r[ionic.CSS.TRANSITION_DURATION]=o.shouldAnimate?"":0,r.opacity=t,i>-1&&(r.boxShadow="0 0 10px rgba(0,0,0,"+(o.shouldAnimate?.45*i:.3)+")"),r[ionic.CSS.TRANSFORM]="translate3d("+n+"%,0,0)",ionic.DomUtil.cachedStyles(e,r)}var o={run:function(i){"forward"==n?(r(e,1,99*(1-i),1-i),r(t,1-.1*i,i*-33,-1)):"back"==n?(r(e,1-.1*(1-i),(1-i)*-33,-1),r(t,1,100*i,1-i)):(r(e,1,0,-1),r(t,0,0,-1))},shouldAnimate:i&&("forward"==n||"back"==n)};return o},r.transitions.navBar.ios=function(e,t,n,i){function r(e,t,n,i){var r={};r[ionic.CSS.TRANSITION_DURATION]=s.shouldAnimate?"":"0ms",r.opacity=1===t?"":t,e.setCss("buttons-left",r),e.setCss("buttons-right",r),e.setCss("back-button",r),r[ionic.CSS.TRANSFORM]="translate3d("+i+"px,0,0)",e.setCss("back-text",r),r[ionic.CSS.TRANSFORM]="translate3d("+n+"px,0,0)",e.setCss("title",r)}function o(e,t,n){if(e&&t){r(e,n,(e.titleTextX()+e.titleWidth())*(1-n),t&&(t.titleTextX()-e.backButtonTextLeft())*(1-n)||0)}}function a(e,t,n){if(e&&t){r(e,1-n,(-(e.titleTextX()-t.backButtonTextLeft())-e.titleLeftRight())*n,0)}}var s={run:function(n){var i=e.controller(),r=t&&t.controller();"back"==s.direction?(a(i,r,1-n),o(r,i,1-n)):(o(i,r,n),a(r,i,n))},direction:n,shouldAnimate:i&&("forward"==n||"back"==n)};return s},r.transitions.views.android=function(e,t,n,i){function r(e,t,n){var i={};i[ionic.CSS.TRANSITION_DURATION]=o.shouldAnimate?"":0,i[ionic.CSS.TRANSFORM]="translate3d("+t+"%,0,0)",i.opacity=n,ionic.DomUtil.cachedStyles(e,i)}i=i&&("forward"==n||"back"==n);var o={run:function(i){"forward"==n?(r(e,99*(1-i),1),r(t,i*-100,1)):"back"==n?(r(e,(1-i)*-100,1),r(t,100*i,1)):(r(e,0,1),r(t,0,0))},shouldAnimate:i};return o},r.transitions.navBar.android=function(e,t,n,i){function r(e,t){if(e){var n={};n.opacity=1===t?"":t,e.setCss("buttons-left",n),e.setCss("buttons-right",n),e.setCss("back-button",n),e.setCss("back-text",n),e.setCss("title",n)}}return{run:function(n){r(e.controller(),n),r(t&&t.controller(),1-n)},shouldAnimate:i&&("forward"==n||"back"==n)}},r.transitions.views.none=function(e,t){return{run:function(n){r.transitions.views.android(e,t,!1,!1).run(n)},shouldAnimate:!1}},r.transitions.navBar.none=function(e,t){return{run:function(n){r.transitions.navBar.ios(e,t,!1,!1).run(n),r.transitions.navBar.android(e,t,!1,!1).run(n)},shouldAnimate:!1}},r.setPlatformConfig=e,r.$get=function(){return r}}).config(["$compileProvider",function(e){e.aHrefSanitizationWhitelist(/^\s*(https?|sms|tel|geo|ftp|mailto|file|ghttps?|ms-appx-web|ms-appx|x-wmapp0):/),e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|ms-appx-web|x-wmapp0):|data:image\//)}]),a.constant("$ionicLoadingConfig",{template:"<ion-spinner></ion-spinner>"}).factory("$ionicLoading",["$ionicLoadingConfig","$ionicBody","$ionicTemplateLoader","$ionicBackdrop","$timeout","$q","$log","$compile","$ionicPlatform","$rootScope","IONIC_BACK_PRIORITY",function(e,t,n,i,r,o,a,l,c,u,d){function f(){return v||(v=n.compile({template:'<div class="loading-container"><div class="loading"></div></div>',appendTo:t.get()}).then(function(e){return e.show=function(a){var s=a.templateUrl?n.load(a.templateUrl):o.when(a.template||a.content||"");e.scope=a.scope||e.scope,e.isShown||(e.hasBackdrop=!a.noBackdrop&&a.showBackdrop!==!1,e.hasBackdrop&&(i.retain(),i.getElement().addClass("backdrop-loading"))),a.duration&&(r.cancel(e.durationTimeout),e.durationTimeout=r(angular.bind(e,e.hide),+a.duration)),g(),g=c.registerBackButtonAction(p,d.loading),s.then(function(n){if(n){var i=e.element.children();i.html(n),l(i.contents())(e.scope)}e.isShown&&(e.element.addClass("visible"),ionic.requestAnimationFrame(function(){e.isShown&&(e.element.addClass("active"),t.addClass("loading-active"))}))}),e.isShown=!0},e.hide=function(){g(),e.isShown&&(e.hasBackdrop&&(i.release(),i.getElement().removeClass("backdrop-loading")),e.element.removeClass("active"),t.removeClass("loading-active"),e.element.removeClass("visible"),ionic.requestAnimationFrame(function(){!e.isShown&&e.element.removeClass("visible")})),r.cancel(e.durationTimeout),e.isShown=!1,e.element.children().html("")},e})),v}function h(t){t=s({},e||{},t||{});var n=t.delay||t.showDelay||0;return $(),w(),t.hideOnStateChange&&($=u.$on("$stateChangeSuccess",m),w=u.$on("$stateChangeError",m)),r.cancel(y),y=r(p,n),y.then(f).then(function(e){return e.show(t)})}function m(){return $(),w(),r.cancel(y),f().then(function(e){return e.hide()})}var v,g=p,$=p,w=p,y=o.when();return{show:h,hide:m,_getLoader:f}}]),a.factory("$ionicModal",["$rootScope","$ionicBody","$compile","$timeout","$ionicPlatform","$ionicTemplateLoader","$$q","$log","$ionicClickBlock","$window","IONIC_BACK_PRIORITY",function(e,t,n,i,r,o,a,l,c,u,d){var h=ionic.views.Modal.inherit({initialize:function(e){ionic.views.Modal.prototype.initialize.call(this,e),this.animation=e.animation||"slide-in-up"},show:function(e){var n=this;if(n.scope.$$destroyed)return l.error("Cannot call "+n.viewType+".show() after remove(). Please create a new "+n.viewType+" instance."),a.when();c.show(600),g.add(n);var o=f(n.modalEl);n.el.classList.remove("hide"),i(function(){n._isShown&&t.addClass(n.viewType+"-open")},400,!1),n.el.parentElement||(o.addClass(n.animation),t.append(n.el));var s=o.data("$$ionicScrollController");return s&&s.resize(),e&&n.positionView&&(n.positionView(e,o),n._onWindowResize=function(){n._isShown&&n.positionView(e,o)},ionic.on("resize",n._onWindowResize,window)),o.addClass("ng-enter active").removeClass("ng-leave ng-leave-active"),n._isShown=!0,n._deregisterBackButton=r.registerBackButtonAction(n.hardwareBackButtonClose?angular.bind(n,n.hide):p,d.modal),ionic.views.Modal.prototype.show.call(n),i(function(){n._isShown&&(o.addClass("ng-enter-active"),ionic.trigger("resize"),n.scope.$parent&&n.scope.$parent.$broadcast(n.viewType+".shown",n),n.el.classList.add("active"),n.scope.$broadcast("$ionicHeader.align"),n.scope.$broadcast("$ionicFooter.align"),n.scope.$broadcast("$ionic.modalPresented"))},20),i(function(){n._isShown&&(n.$el.on("touchmove",function(e){ionic.DomUtil.getParentOrSelfWithClass(e.target,"scroll")||e.preventDefault()}),n.$el.on("click",function(e){n.backdropClickToClose&&e.target===n.el&&g.isHighest(n)&&n.hide()}))},400)},hide:function(){var e=this,n=f(e.modalEl);return c.show(600),g.remove(e),e.el.classList.remove("active"),n.addClass("ng-leave"),i(function(){e._isShown||(n.addClass("ng-leave-active").removeClass("ng-enter ng-enter-active active"),e.scope.$broadcast("$ionic.modalRemoved"))},20,!1),e.$el.off("click"),e._isShown=!1,e.scope.$parent&&e.scope.$parent.$broadcast(e.viewType+".hidden",e),e._deregisterBackButton&&e._deregisterBackButton(),ionic.views.Modal.prototype.hide.call(e),e.positionView&&ionic.off("resize",e._onWindowResize,window),i(function(){t.removeClass(e.viewType+"-open"),e.el.classList.add("hide")},e.hideDelay||320)},remove:function(){var e,t,n=this;return n.scope.$parent&&n.scope.$parent.$broadcast(n.viewType+".removed",n),n._isShown?t=n.hide():(e=a.defer(),e.resolve(),t=e.promise),t.then(function(){n.scope.$destroy(),n.$el.remove()})},isShown:function(){return!!this._isShown}}),m=function(t,i){var r=i.scope&&i.scope.$new()||e.$new(!0);i.viewType=i.viewType||"modal",s(r,{$hasHeader:!1,$hasSubheader:!1,$hasFooter:!1,$hasSubfooter:!1,$hasTabs:!1,$hasTabsTop:!1});var o=n("<ion-"+i.viewType+">"+t+"</ion-"+i.viewType+">")(r);i.$el=o,i.el=o[0],i.modalEl=i.el.querySelector("."+i.viewType);var a=new h(i);return a.scope=r,i.scope||(r[i.viewType]=a),a},v=[],g={add:function(e){v.push(e)},remove:function(e){var t=v.indexOf(e);t>-1&&t<v.length&&v.splice(t,1)},isHighest:function(e){var t=v.indexOf(e);return t>-1&&t===v.length-1}};return{fromTemplate:function(e,t){return m(e,t||{})},fromTemplateUrl:function(e,t,n){var i;return angular.isFunction(t)&&(i=t,t=n),o.load(e).then(function(e){var n=m(e,t||{});return i&&i(n),n})},stack:g}}]),a.service("$ionicNavBarDelegate",ionic.DelegateService(["align","showBackButton","showBar","title","changeTitle","setTitle","getTitle","back","getPreviousTitle"])),a.service("$ionicNavViewDelegate",ionic.DelegateService(["clearCache"])),a.constant("IONIC_BACK_PRIORITY",{view:100,sideMenu:150,modal:200,actionSheet:300,popup:400,loading:500}).provider("$ionicPlatform",function(){return{$get:["$q","$ionicScrollDelegate",function(e,t){var n={onHardwareBackButton:function(e){ionic.Platform.ready(function(){document.addEventListener("backbutton",e,!1)})},offHardwareBackButton:function(e){ionic.Platform.ready(function(){document.removeEventListener("backbutton",e)})},$backButtonActions:{},registerBackButtonAction:function(e,t,i){n._hasBackButtonHandler||(n.$backButtonActions={},n.onHardwareBackButton(n.hardwareBackButtonClick),n._hasBackButtonHandler=!0);var r={id:i?i:ionic.Utils.nextUid(),priority:t?t:0,fn:e};return n.$backButtonActions[r.id]=r,function(){delete n.$backButtonActions[r.id]}},hardwareBackButtonClick:function(e){var t,i;for(i in n.$backButtonActions)(!t||n.$backButtonActions[i].priority>=t.priority)&&(t=n.$backButtonActions[i]);if(t)return t.fn(e),t},is:function(e){return ionic.Platform.is(e)},on:function(e,t){return ionic.Platform.ready(function(){document.addEventListener(e,t,!1)}),function(){ionic.Platform.ready(function(){document.removeEventListener(e,t)})}},ready:function(n){var i=e.defer();return ionic.Platform.ready(function(){window.addEventListener("statusTap",function(){t.scrollTop(!0)}),i.resolve(),n&&n()}),i.promise}};return n}]}}),a.factory("$ionicPopover",["$ionicModal","$ionicPosition","$document","$window",function(e,t,n,i){function r(e,n){var r=f(e.target||e),a=t.offset(r),s=n.prop("offsetWidth"),l=n.prop("offsetHeight"),c=i.innerWidth,u=i.innerHeight,d={left:a.left+a.width/2-s/2},p=f(n[0].querySelector(".popover-arrow"));d.left<o?d.left=o:d.left+s+o>c&&(d.left=c-s-o),a.top+a.height+l>u&&a.top-l>0?(d.top=a.top-l,n.addClass("popover-bottom")):(d.top=a.top+a.height,n.removeClass("popover-bottom")),p.css({left:a.left+a.width/2-p.prop("offsetWidth")/2-d.left+"px"}),n.css({top:d.top+"px",left:d.left+"px",marginLeft:"0",opacity:"1"})}var o=6,a={viewType:"popover",hideDelay:1,animation:"none",positionView:r};return{fromTemplate:function(t,n){return e.fromTemplate(t,ionic.Utils.extend({},a,n))},fromTemplateUrl:function(t,n){return e.fromTemplateUrl(t,ionic.Utils.extend({},a,n))}}}]),a.factory("$ionicPopup",["$ionicTemplateLoader","$ionicBackdrop","$q","$timeout","$rootScope","$ionicBody","$compile","$ionicPlatform","$ionicModal","IONIC_BACK_PRIORITY",function(e,t,n,i,r,o,a,l,c,u){function d(t){t=s({scope:null,title:"",buttons:[]},t||{});var l={};return l.scope=(t.scope||r).$new(),l.element=f('<div class="popup-container" ng-class="cssClass"><div class="popup"><div class="popup-head"><h3 class="popup-title" ng-bind-html="title"></h3><h5 class="popup-sub-title" ng-bind-html="subTitle" ng-if="subTitle"></h5></div><div class="popup-body"></div><div class="popup-buttons" ng-show="buttons.length"><button ng-repeat="button in buttons" ng-click="$buttonTapped(button, $event)" class="button" ng-class="button.type || \'button-default\'" ng-bind-html="button.text"></button></div></div></div>'),l.responseDeferred=n.defer(),o.get().appendChild(l.element[0]),a(l.element)(l.scope),s(l.scope,{title:t.title,buttons:t.buttons,subTitle:t.subTitle,cssClass:t.cssClass,$buttonTapped:function(e,t){var n=(e.onTap||p).apply(l,[t]);t=t.originalEvent||t,t.defaultPrevented||l.responseDeferred.resolve(n)}}),n.when(t.templateUrl?e.load(t.templateUrl):t.template||t.content||"").then(function(e){var t=f(l.element[0].querySelector(".popup-body"));e?(t.html(e),a(t.contents())(l.scope)):t.remove()}),l.show=function(){l.isShown||l.removed||(c.stack.add(l),l.isShown=!0,ionic.requestAnimationFrame(function(){l.isShown&&(l.element.removeClass("popup-hidden"),l.element.addClass("popup-showing active"),v(l.element))}))},l.hide=function(e){if(e=e||p,!l.isShown)return e();c.stack.remove(l),l.isShown=!1,l.element.removeClass("active"),l.element.addClass("popup-hidden"),i(e,250,!1)},l.remove=function(){l.removed||(l.hide(function(){l.element.remove(),l.scope.$destroy()}),l.removed=!0)},l}function h(){var e=b[b.length-1];e&&e.responseDeferred.resolve()}function m(e){var n=_._createPopup(e),r=0;return b.length>0?(r=y.stackPushDelay,i(b[b.length-1].hide,r,!1)):(o.addClass("popup-open"),t.retain(),_._backButtonActionDone=l.registerBackButtonAction(h,u.popup)),n.responseDeferred.promise.close=function(e){n.removed||n.responseDeferred.resolve(e)},n.responseDeferred.notify({close:n.responseDeferred.close}),function(){b.push(n),i(n.show,r,!1),n.responseDeferred.promise.then(function(e){var r=b.indexOf(n);return r!==-1&&b.splice(r,1),n.remove(),b.length>0?b[b.length-1].show():(t.release(),i(function(){b.length||o.removeClass("popup-open")},400,!1),(_._backButtonActionDone||p)()),e})}(),n.responseDeferred.promise}function v(e){var t=e[0].querySelector("[autofocus]");t&&t.focus()}function g(e){return m(s({buttons:[{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return!0}}]},e||{}))}function $(e){return m(s({buttons:[{text:e.cancelText||"Cancel",type:e.cancelType||"button-default",onTap:function(){return!1}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return!0}}]},e||{}))}function w(e){var t=r.$new(!0);t.data={},t.data.fieldtype=e.inputType?e.inputType:"text",t.data.response=e.defaultText?e.defaultText:"",t.data.placeholder=e.inputPlaceholder?e.inputPlaceholder:"",t.data.maxlength=e.maxLength?parseInt(e.maxLength):"";var n="";return e.template&&/<[a-z][\s\S]*>/i.test(e.template)===!1&&(n="<span>"+e.template+"</span>",delete e.template),m(s({template:n+'<input ng-model="data.response" type="{{ data.fieldtype }}"maxlength="{{ data.maxlength }}"placeholder="{{ data.placeholder }}">',scope:t,buttons:[{text:e.cancelText||"Cancel",type:e.cancelType||"button-default",onTap:function(){}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return t.data.response||""}}]},e||{}))}var y={stackPushDelay:75},b=[],_={show:m,alert:g,confirm:$,prompt:w,_createPopup:d,_popupStack:b};return _}]),a.factory("$ionicPosition",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function i(e){return"static"===(n(e,"position")||"static")}var r=function(t){for(var n=e[0],r=t.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(t){var n=this.offset(t),i={top:0,left:0},o=r(t[0]);o!=e[0]&&(i=this.offset(f(o)),i.top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=t[0].getBoundingClientRect();return{width:a.width||t.prop("offsetWidth"),height:a.height||t.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:i.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}}]),a.service("$ionicScrollDelegate",ionic.DelegateService(["resize","scrollTop","scrollBottom","scrollTo","scrollBy","zoomTo","zoomBy","getScrollPosition","anchorScroll","freezeScroll","freezeAllScrolls","getScrollView"])),a.service("$ionicSideMenuDelegate",ionic.DelegateService(["toggleLeft","toggleRight","getOpenRatio","isOpen","isOpenLeft","isOpenRight","canDragContent","edgeDragThreshold"])),a.service("$ionicSlideBoxDelegate",ionic.DelegateService(["update","slide","select","enableSlide","previous","next","stop","autoPlay","start","currentIndex","selected","slidesCount","count","loop"])),a.service("$ionicTabsDelegate",ionic.DelegateService(["select","selectedIndex","showBar"])),function(){var e=[];a.factory("$ionicTemplateCache",["$http","$templateCache","$timeout",function(t,n,i){function r(e){if(void 0===e)return o();d(e)&&(e=[e]),l(e,function(e){s.push(e)}),a&&o()}function o(){var e;if(r._runCount++,a=!0,0!==s.length){for(var l=0;l<4&&(e=s.pop());)d(e)&&t.get(e,{cache:n}),l++;s.length&&i(o,1e3)}}var a,s=e;return r._runCount=0,r}]).config(["$stateProvider","$ionicConfigProvider",function(t,n){var i=t.state;t.state=function(r,o){if("object"==typeof o){var a=o.prefetchTemplate!==!1&&e.length<n.templates.maxPrefetch();if(a&&d(o.templateUrl)&&e.push(o.templateUrl),angular.isObject(o.views))for(var s in o.views)(a=o.views[s].prefetchTemplate!==!1&&e.length<n.templates.maxPrefetch())&&d(o.views[s].templateUrl)&&e.push(o.views[s].templateUrl)}return i.call(t,r,o)}}]).run(["$ionicTemplateCache",function(e){e()}])}(),a.factory("$ionicTemplateLoader",["$compile","$controller","$http","$q","$rootScope","$templateCache",function(e,t,n,i,r,o){function a(e){return n.get(e,{cache:o}).then(function(e){return e.data&&e.data.trim()})}function l(n){return n=s({template:"",templateUrl:"",scope:null,controller:null,locals:{},appendTo:null},n||{}),(n.templateUrl?this.load(n.templateUrl):i.when(n.template)).then(function(i){var o,a=n.scope||r.$new(),l=f("<div>").html(i).contents();return n.controller&&(o=t(n.controller,s(n.locals,{$scope:a})),l.children().data("$ngControllerController",o)),n.appendTo&&f(n.appendTo).append(l),e(l)(a),{element:l,scope:a}})}return{load:a,compile:l}}]),a.factory("$ionicViewService",["$ionicHistory","$log",function(e,t){function n(e,n){t.warn("$ionicViewService"+e+" is deprecated, please use $ionicHistory"+n+" instead: http://ionicframework.com/docs/nightly/api/service/$ionicHistory/")}n("","");var i={getCurrentView:"currentView",getBackView:"backView",getForwardView:"forwardView",getCurrentStateName:"currentStateName",nextViewOptions:"nextViewOptions",clearHistory:"clearHistory"};return l(i,function(t,r){i[r]=function(){return n("."+r,"."+t),e[t].apply(this,arguments)}}),i}]),a.factory("$ionicViewSwitcher",["$timeout","$document","$q","$ionicClickBlock","$ionicConfig","$ionicNavBarDelegate",function(e,t,n,i,r,o){function a(e,t){return u(e).abstract?u(e).name:t?t.stateId||t.viewId:ionic.Utils.nextUid()}function u(e){return e&&e.$$state&&e.$$state.self||{}}function d(e,t,n,i){var o=u(e),a=w||A(t,"view-transition")||o.viewTransition||r.views.transition()||"ios",l=r.navBar.transition();return n=y||A(t,"view-direction")||o.viewDirection||n||"none",s(p(i),{transition:a,navBarTransition:"view"===l?a:l,direction:n,shouldAnimate:"none"!==a&&"none"!==n})}function p(e){return e=e||{},{viewId:e.viewId,historyId:e.historyId,stateId:e.stateId,stateName:e.stateName,stateParams:e.stateParams}}function h(e,t){if(!(arguments.length>1))return A(e,x);A(e,x,t)}function m(e){if(e&&e.length){var t=e.scope();t&&(t.$emit("$ionicView.unloaded",e.data(S)),t.$destroy()),e.remove()}}function v(e,t){var n=e.lastIndexOf("."),i=t.lastIndexOf(".");return!(n<0||i<0)&&e.substring(0,n)===t.substring(0,i)}function g(e,t){if(!e)return null;var n=angular.element(e).attr("abstract"),i=angular.element(e).attr("state");if("true"!==n)return i===t.stateName?angular.element(e).scope():null;for(var r=$(e),o=0;o<r.length;o++)if(angular.element(r[o]).attr("state")===t.stateName)return t.abstractView=!0,angular.element(r[o]).scope();return null}function $(e){for(var t=[],n=angular.element(e).find("ion-nav-view"),i=0;i<n.length;i++){for(var r=angular.element(n[i]).children(),o=[],a=0;a<r.length;a++)o=o.concat(r[a]);t=t.concat(o)}return t}var w,y,b="webkitTransitionEnd transitionend",_="$fallbackTimer",S="$viewData",x="nav-view",T="active",E="cached",C=0;ionic.transition=ionic.transition||{},ionic.transition.isActive=!1;var k,A=ionic.DomUtil.cachedAttr,I=[],D={create:function(t,l,f,$,x,k){var M,P,L,O=++C,N={init:function(e,t){D.isTransitioning(!0),N.loadViewElements(e),N.render(e,function(){t&&t()})},loadViewElements:function(e){var n,i,r,o=t.getViewElements(),s=a(l,f),u=t.activeEleId();for(n=0,i=o.length;n<i&&(r=o.eq(n),r.data("$eleId")===s?r.data("$noCache")?(r.data("$eleId",s+ionic.Utils.nextUid()),r.data("$destroyEle",!0)):M=r:c(u)&&r.data("$eleId")===u&&(P=r),!M||!P);n++);L=!!M,L||(M=e.ele||D.createViewEle(l),M.data("$eleId",s)),k&&t.activeEleId(s),e.ele=null},render:function(e,n){if(L)ionic.Utils.reconnectScope(M.scope());else{h(M,"stage");var i=d(l,M,e.direction,f);(r.transitions.views[i.transition]||r.transitions.views.none)(M,null,i.direction,!0).run(0),M.data(S,{viewId:i.viewId,historyId:i.historyId,stateName:i.stateName,stateParams:i.stateParams}),u(l).cache!==!1&&"false"!==u(l).cache&&"false"!=M.attr("cache-view")&&0!==r.views.maxCache()||M.data("$noCache",!0);var o=t.appendViewElement(M,l);delete i.direction,delete i.transition,o.$emit("$ionicView.loaded",i)}M.data("$accessed",Date.now()),n&&n()},transition:function(a,c,u){function m(){h(M,F.shouldAnimate?"entering":T),h(P,F.shouldAnimate?"leaving":E),F.run(1),o._instances.forEach(function(e){e.triggerTransitionStart(O)}),F.shouldAnimate||g()}function v(e){e.target===this&&g()}function g(){g.x||(g.x=!0,M.off(b,v),e.cancel(M.data(_)),P&&e.cancel(P.data(_)),B&&B.resolve(t),O===C&&(n.all(I).then(D.transitionEnd),N.emit("after",R,z),N.cleanup(R)),o._instances.forEach(function(e){e.triggerTransitionEnd()}),w=y=f=$=M=P=null)}function S(e){e.target===this&&V()}function V(){h(M,E),h(P,T),M.off(b,S),e.cancel(M.data(_)),D.transitionEnd([t])}var B,R=d(l,M,a,f),z=s(s({},R),p($));R.transitionId=z.transitionId=O,R.fromCache=!!L,R.enableBack=!!c,R.renderStart=x,R.renderEnd=k,A(M.parent(),"nav-view-transition",R.transition),A(M.parent(),"nav-view-direction",R.direction),e.cancel(M.data(_));var H=r.transitions.views[R.transition]||r.transitions.views.none,F=H(M,P,R.direction,R.shouldAnimate&&u&&k);if(F.shouldAnimate&&(M.on(b,v),M.data(_,e(g,1100)),i.show(1100)),x&&(N.emit("before",R,z),h(M,"stage"),F.run(0)),k&&(B=n.defer(),I.push(B.promise)),x&&k)e(function(){ionic.requestAnimationFrame(m)});else{if(!k)return h(M,"entering"),h(P,"leaving"),{run:F.run,cancel:function(t){t?(M.on(b,S),M.data(_,e(V,1100)),i.show(1100)):V(),F.shouldAnimate=t,F.run(0),F=null}};k&&m()}},emit:function(e,t,n){var i=g(M,t),r=g(P,n);!t.viewId||t.abstractView?r&&(r.$emit("$ionicView.beforeLeave",n),r.$emit("$ionicView.leave",n),r.$emit("$ionicView.afterLeave",n),r.$broadcast("$ionicParentView.beforeLeave",n),r.$broadcast("$ionicParentView.leave",n),r.$broadcast("$ionicParentView.afterLeave",n)):("after"==e&&(i&&(i.$emit("$ionicView.enter",t),i.$broadcast("$ionicParentView.enter",t)),r?(r.$emit("$ionicView.leave",n),r.$broadcast("$ionicParentView.leave",n)):i&&n&&n.viewId&&t.stateName!==n.stateName&&v(t.stateName,n.stateName)&&i.$emit("$ionicNavView.leave",n)),i&&(i.$emit("$ionicView."+e+"Enter",t),i.$broadcast("$ionicParentView."+e+"Enter",t)),r?(r.$emit("$ionicView."+e+"Leave",n),r.$broadcast("$ionicParentView."+e+"Leave",n)):i&&n&&n.viewId&&t.stateName!==n.stateName&&v(t.stateName,n.stateName)&&i.$emit("$ionicNavView."+e+"Leave",n))},cleanup:function(e){P&&"back"==e.direction&&!r.views.forwardCache()&&m(P);var n,i,o,a=t.getViewElements(),s=a.length,l=s-1>r.views.maxCache(),c=Date.now();for(n=0;n<s;n++)i=a.eq(n),l&&i.data("$accessed")<c?(c=i.data("$accessed"),o=a.eq(n)):i.data("$destroyEle")&&h(i)!=T&&m(i);m(o),M.data("$noCache")&&M.data("$destroyEle",!0)},enteringEle:function(){return M},leavingEle:function(){return P}};return N},transitionEnd:function(e){l(e,function(e){e.transitionEnd()}),D.isTransitioning(!1),i.hide(),I=[]},nextTransition:function(e){w=e},nextDirection:function(e){y=e},isTransitioning:function(t){return arguments.length&&(ionic.transition.isActive=!!t,e.cancel(k),t&&(k=e(function(){D.isTransitioning(!1)},999))),ionic.transition.isActive},createViewEle:function(e){var n=t[0].createElement("div");return e&&e.$template&&(n.innerHTML=e.$template,1===n.children.length)?(n.children[0].classList.add("pane"),e.$$state&&e.$$state.self&&e.$$state.self.abstract?angular.element(n.children[0]).attr("abstract","true"):e.$$state&&e.$$state.self&&angular.element(n.children[0]).attr("state",e.$$state.self.name),f(n.children[0])):(n.className="pane",f(n))},viewEleIsActive:function(e,t){h(e,t?T:E)},getTransitionData:d,navViewAttr:h,destroyViewEle:m};return D}]),angular.module("ngIOS9UIWebViewPatch",["ng"]).config(["$provide",function(e){"use strict";e.decorator("$browser",["$delegate","$window",function(e,t){return function(e){return/(iPhone|iPad|iPod).* OS 9_\d/.test(e)&&!/Version\/9\./.test(e)}(t.navigator.userAgent)?function(e){function t(){n=null}var n=null,i=e.url;return e.url=function(){return arguments.length?(n=arguments[0],i.apply(e,arguments)):n||i.apply(e,arguments)},window.addEventListener("popstate",t,!1),window.addEventListener("hashchange",t,!1),e}(e):e}])}]),a.config(["$provide",function(e){e.decorator("$compile",["$delegate",function(e){return e.$$addScopeInfo=function(e,t,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(r,t)},e}])}]),a.config(["$provide",function(e){function t(e,t){return e.__hash=e.hash,e.hash=function(n){return c(n)&&n.length>0&&t(function(){var e=document.querySelector(".scroll-content");e&&(e.scrollTop=0)},0,!1),e.__hash(n)},e}e.decorator("$location",["$delegate","$timeout",t])}]),a.controller("$ionicHeaderBar",["$scope","$element","$attrs","$q","$ionicConfig","$ionicHistory",function(e,t,n,i,r,o){function a(e){return $[e]||($[e]=t[0].querySelector("."+e)),$[e]}var s=this,l="",c="",u=0,d=0,f="",p=!1,h=!0,m=!0,v=!1,g=0;s.beforeEnter=function(t){e.$broadcast("$ionicView.beforeEnter",t)},s.title=function(e){return arguments.length&&e!==l&&(a("title").innerHTML=e,l=e,g=0),l},s.enableBack=function(e,t){return arguments.length&&(p=e,t||s.updateBackButton()),p},s.showBack=function(e,t){return arguments.length&&(h=e,t||s.updateBackButton()),h},s.showNavBack=function(e){m=e,s.updateBackButton()},s.updateBackButton=function(){var e;(h&&m&&p)!==v&&(v=h&&m&&p,(e=a("back-button"))&&e.classList[v?"remove":"add"]("hide")),p&&(e=e||a("back-button"))&&(s.backButtonIcon!==r.backButton.icon()&&(e=a("back-button .icon"))&&(s.backButtonIcon=r.backButton.icon(),e.className="icon "+s.backButtonIcon),s.backButtonText!==r.backButton.text()&&(e=a("back-button .back-text"))&&(e.textContent=s.backButtonText=r.backButton.text()))},s.titleTextWidth=function(){var e=a("title");if(e)for(var t=angular.element(e).children(),n=0;n<t.length;n++)if(angular.element(t[n]).hasClass("nav-bar-title")){e=t[n];break}var i=ionic.DomUtil.getTextBounds(e);return g=Math.min(i&&i.width||30)},s.titleWidth=function(){var e=s.titleTextWidth(),t=a("title").offsetWidth;return t<e&&(e=t+(u-d-5)),e},s.titleTextX=function(){return t[0].offsetWidth/2-s.titleWidth()/2},s.titleLeftRight=function(){return u-d},s.backButtonTextLeft=function(){for(var e=0,t=a("back-text");t;)e+=t.offsetLeft,t=t.parentElement;return e},s.resetBackButton=function(e){if(r.backButton.previousTitleText()){var t=a("previous-title");if(t){t.classList.remove("hide");var n=e&&o.getViewById(e.viewId),i=o.backTitle(n);i!==c&&(c=t.innerHTML=i)}var s=a("default-title");s&&s.classList.remove("hide")}},s.align=function(e){var i=a("title");e=e||n.alignTitle||r.navBar.alignTitle();var o=s.calcWidths(e,!1);if(h&&c&&r.backButton.previousTitleText()){var l=s.calcWidths(e,!0),u=t[0].offsetWidth-l.titleLeft-l.titleRight;s.titleTextWidth()<=u&&(o=l)}return s.updatePositions(i,o.titleLeft,o.titleRight,o.buttonsLeft,o.buttonsRight,o.css,o.showPrevTitle)},s.calcWidths=function(e,n){var i,r,o,s,l,c,u,d,f,p=a("title"),m=a("back-button"),v=t[0].childNodes,g=0,$=0,w=0,y=0,b="",_=0;for(i=0;i<v.length;i++){if(l=v[i],u=0,1==l.nodeType){if(l===p){f=!0;continue}if(l.classList.contains("hide"))continue;if(h&&l===m){for(r=0;r<l.childNodes.length;r++)if(s=l.childNodes[r],1==s.nodeType)if(s.classList.contains("back-text"))for(o=0;o<s.children.length;o++)if(c=s.children[o],n){if(c.classList.contains("default-title"))continue;_+=c.offsetWidth}else{if(c.classList.contains("previous-title"))continue;_+=c.offsetWidth }else _+=s.offsetWidth;else 3==s.nodeType&&s.nodeValue.trim()&&(d=ionic.DomUtil.getTextBounds(s),_+=d&&d.width||0);u=_||l.offsetWidth}else u=l.offsetWidth}else 3==l.nodeType&&l.nodeValue.trim()&&(d=ionic.DomUtil.getTextBounds(l),u=d&&d.width||0);f?$+=u:g+=u}if("left"==e)b="title-left",g&&(w=g+15),$&&(y=$+15);else if("right"==e)b="title-right",g&&(w=g+15),$&&(y=$+15);else{var S=Math.max(g,$)+10;S>10&&(w=y=S)}return{backButtonWidth:_,buttonsLeft:g,buttonsRight:$,titleLeft:w,titleRight:y,showPrevTitle:n,css:b}},s.updatePositions=function(e,n,o,l,c,p,h){var m=i.defer();if(e&&(n!==u&&(e.style.left=n?n+"px":"",u=n),o!==d&&(e.style.right=o?o+"px":"",d=o),p!==f&&(p&&e.classList.add(p),f&&e.classList.remove(f),f=p)),r.backButton.previousTitleText()){var v=a("previous-title"),g=a("default-title");v&&v.classList[h?"remove":"add"]("hide"),g&&g.classList[h?"add":"remove"]("hide")}return ionic.requestAnimationFrame(function(){if(e&&e.offsetWidth+10<e.scrollWidth){var n=c+5,i=t[0].offsetWidth-u-s.titleTextWidth()-20;(o=i<n?n:i)!==d&&(e.style.right=o+"px",d=o)}m.resolve()}),m.promise},s.setCss=function(e,t){ionic.DomUtil.cachedStyles(a(e),t)};var $={};e.$on("$destroy",function(){for(var e in $)$[e]=null})}]),a.controller("$ionInfiniteScroll",["$scope","$attrs","$element","$timeout",function(e,t,n,i){function r(){ionic.requestAnimationFrame(function(){n[0].classList.add("active")}),l.isLoading=!0,e.$parent&&e.$parent.$apply(t.onInfinite||"")}function o(){ionic.requestAnimationFrame(function(){n[0].classList.remove("active")}),i(function(){l.jsScrolling&&l.scrollView.resize(),(l.jsScrolling&&l.scrollView.__container&&l.scrollView.__container.offsetHeight>0||!l.jsScrolling)&&l.checkBounds()},30,!1),l.isLoading=!1}function a(){if(!l.isLoading){var e={};if(l.jsScrolling){e=l.getJSMaxScroll();var t=l.scrollView.getValues();(e.left!==-1&&t.left>=e.left||e.top!==-1&&t.top>=e.top)&&r()}else e=l.getNativeMaxScroll(),(e.left!==-1&&l.scrollEl.scrollLeft>=e.left-l.scrollEl.clientWidth||e.top!==-1&&l.scrollEl.scrollTop>=e.top-l.scrollEl.clientHeight)&&r()}}function s(e){var n=(t.distance||"2.5%").trim();return n.indexOf("%")!==-1?e*(1-parseFloat(n)/100):e-parseFloat(n)}var l=this;l.isLoading=!1,e.icon=function(){return c(t.icon)?t.icon:"ion-load-d"},e.spinner=function(){return c(t.spinner)?t.spinner:""},e.$on("scroll.infiniteScrollComplete",function(){o()}),e.$on("$destroy",function(){l.scrollCtrl&&l.scrollCtrl.$element&&l.scrollCtrl.$element.off("scroll",l.checkBounds),l.scrollEl&&l.scrollEl.removeEventListener&&l.scrollEl.removeEventListener("scroll",l.checkBounds)}),l.checkBounds=ionic.Utils.throttle(a,300),l.getJSMaxScroll=function(){var e=l.scrollView.getScrollMax();return{left:l.scrollView.options.scrollingX?s(e.left):-1,top:l.scrollView.options.scrollingY?s(e.top):-1}},l.getNativeMaxScroll=function(){var e={left:l.scrollEl.scrollWidth,top:l.scrollEl.scrollHeight},t=window.getComputedStyle(l.scrollEl)||{};return{left:!e.left||"scroll"!==t.overflowX&&"auto"!==t.overflowX&&"scroll"!==l.scrollEl.style["overflow-x"]?-1:s(e.left),top:!e.top||"scroll"!==t.overflowY&&"auto"!==t.overflowY&&"scroll"!==l.scrollEl.style["overflow-y"]?-1:s(e.top)}},l.__finishInfiniteScroll=o}]),a.service("$ionicListDelegate",ionic.DelegateService(["showReorder","showDelete","canSwipeItems","closeOptionButtons"])).controller("$ionicList",["$scope","$attrs","$ionicListDelegate","$ionicHistory",function(e,t,n,i){var r=this,o=!0,a=!1,s=!1,l=n._registerInstance(r,t.delegateHandle,function(){return i.isActiveScope(e)});e.$on("$destroy",l),r.showReorder=function(e){return arguments.length&&(a=!!e),a},r.showDelete=function(e){return arguments.length&&(s=!!e),s},r.canSwipeItems=function(e){return arguments.length&&(o=!!e),o},r.closeOptionButtons=function(){r.listView&&r.listView.clearDragEffects()}}]),a.controller("$ionicNavBar",["$scope","$element","$attrs","$compile","$timeout","$ionicNavBarDelegate","$ionicConfig","$ionicHistory",function(e,t,n,i,r,o,a,s){function u(e,t){var n=console.warn||console.log;n&&n.call(console,"navBarController."+e+" is deprecated, please use "+t+" instead")}function d(e){if(E[e])return f(E[e])}function p(){for(var e=0;e<T.length;e++)if(T[e].isActive)return T[e]}function h(){for(var e=0;e<T.length;e++)if(!T[e].isActive)return T[e]}function m(e,t){e&&ionic.DomUtil.cachedAttr(e.containerEle(),"nav-bar",t)}function v(e){ionic.DomUtil.cachedAttr(t,"nav-swipe",e)}var g,$,w,y="primaryButtons",b="secondaryButtons",_="backButton",S="primaryButtons secondaryButtons leftButtons rightButtons title".split(" "),x=this,T=[],E={},C=!0;t.parent().data("$ionNavBarController",x);var k=n.delegateHandle||"navBar"+ionic.Utils.nextUid(),A=o._registerInstance(x,k);x.init=function(){t.addClass("nav-bar-container"),ionic.DomUtil.cachedAttr(t,"nav-bar-transition",a.views.transition()),x.createHeaderBar(!1),x.createHeaderBar(!0),e.$emit("ionNavBar.init",k)},x.createHeaderBar=function(r){function o(e,t){e&&("title"===t?v.append(e):"rightButtons"==t||t==b&&"left"!=a.navBar.positionSecondaryButtons()||t==y&&"right"==a.navBar.positionPrimaryButtons()?(m||(m=f('<div class="buttons buttons-right">'),p.append(m)),t==b?m.append(e):m.prepend(e)):(h||(h=f('<div class="buttons buttons-left">'),g[_]?g[_].after(h):p.prepend(h)),t==b?h.append(e):h.prepend(e)))}var s=f('<div class="nav-bar-block">');ionic.DomUtil.cachedAttr(s,"nav-bar",r?"active":"cached");var u=n.alignTitle||a.navBar.alignTitle(),p=f("<ion-header-bar>").addClass(n.class).attr("align-title",u);c(n.noTapScroll)&&p.attr("no-tap-scroll",n.noTapScroll);var h,m,v=f('<div class="title title-'+u+'">'),g={},$={};g[_]=d(_),g[_]&&p.append(g[_]),p.append(v),l(S,function(e){g[e]=d(e),o(g[e],e)});for(var w=0;w<p[0].children.length;w++)p[0].children[w].classList.add("header-item");s.append(p),t.append(i(s)(e.$new()));var x=p.data("$ionHeaderBarController");x.backButtonIcon=a.backButton.icon(),x.backButtonText=a.backButton.text();var E={isActive:r,title:function(e){x.title(e)},setItem:function(e,t){E.removeItem(t),e?("title"===t&&E.title(""),o(e,t),g[t]&&g[t].addClass("hide"),$[t]=e):g[t]&&g[t].removeClass("hide")},removeItem:function(e){$[e]&&($[e].scope().$destroy(),$[e].remove(),$[e]=null)},containerEle:function(){return s},headerBarEle:function(){return p},afterLeave:function(){l(S,function(e){E.removeItem(e)}),x.resetBackButton()},controller:function(){return x},destroy:function(){l(S,function(e){E.removeItem(e)}),s.scope().$destroy();for(var e in g)g[e]&&(g[e].removeData(),g[e]=null);h&&h.removeData(),m&&m.removeData(),v.removeData(),p.removeData(),s.remove(),s=p=v=h=m=null}};return T.push(E),E},x.navElement=function(e,t){return c(t)&&(E[e]=t),E[e]},x.update=function(e){var t=!e.hasHeaderBar&&e.showNavBar;e.transition=a.views.transition(),t||(e.direction="none"),x.enable(t);var n=x.isInitialized?h():p(),i=x.isInitialized?p():null,r=n.controller();r.enableBack(e.enableBack,!0),r.showBack(e.showBack,!0),r.updateBackButton(),x.title(e.title,n),x.showBar(t),e.navBarItems&&l(S,function(t){n.setItem(e.navBarItems[t],t)}),x.transition(n,i,e),x.isInitialized=!0,v("")},x.transition=function(e,n,i){function o(){for(var t=0;t<T.length;t++)T[t].isActive=!1;e.isActive=!0,m(e,"active"),m(n,"cached"),x.activeTransition=u=$=null}var s=e.controller(),l=a.transitions.navBar[i.navBarTransition]||a.transitions.navBar.none,c=i.transitionId;s.beforeEnter(i);var u=l(e,n,i.direction,i.shouldAnimate&&x.isInitialized);ionic.DomUtil.cachedAttr(t,"nav-bar-transition",i.navBarTransition),ionic.DomUtil.cachedAttr(t,"nav-bar-direction",i.direction),u.shouldAnimate&&i.renderEnd?m(e,"stage"):(m(e,"entering"),m(n,"leaving")),s.resetBackButton(i),u.run(0),x.activeTransition={run:function(e){u.shouldAnimate=!1,u.direction="back",u.run(e)},cancel:function(t,i,r){v(i),m(n,"active"),m(e,"cached"),u.shouldAnimate=t,u.run(0),x.activeTransition=u=null,r.showBar!==x.showBar()&&x.showBar(r.showBar),r.showBackButton!==x.showBackButton()&&x.showBackButton(r.showBackButton)},complete:function(e,t){v(t),u.shouldAnimate=e,u.run(1),$=o}},r(s.align,16),(g=function(){w===c&&(m(e,"entering"),m(n,"leaving"),u.run(1),$=function(){w!=c&&u.shouldAnimate||o()},g=null)})()},x.triggerTransitionStart=function(e){w=e,g&&g()},x.triggerTransitionEnd=function(){$&&$()},x.showBar=function(t){return arguments.length&&(x.visibleBar(t),e.$parent.$hasHeader=!!t),!!e.$parent.$hasHeader},x.visibleBar=function(e){e&&!C?(t.removeClass("hide"),x.align()):!e&&C&&t.addClass("hide"),C=e},x.enable=function(e){x.visibleBar(e);for(var t=0;t<o._instances.length;t++)o._instances[t]!==x&&o._instances[t].visibleBar(!1)},x.showBackButton=function(t){if(arguments.length){for(var n=0;n<T.length;n++)T[n].controller().showNavBack(!!t);e.$isBackButtonShown=!!t}return e.$isBackButtonShown},x.showActiveBackButton=function(e){var t=p();if(t)return arguments.length?t.controller().showBack(e):t.controller().showBack()},x.title=function(t,n){return c(t)&&(t=t||"",n=n||p(),n&&n.title(t),e.$title=t,s.currentTitle(t)),e.$title},x.align=function(e,t){(t=t||p())&&t.controller().align(e)},x.hasTabsTop=function(e){t[e?"addClass":"removeClass"]("nav-bar-tabs-top")},x.hasBarSubheader=function(e){t[e?"addClass":"removeClass"]("nav-bar-has-subheader")},x.changeTitle=function(e){u("changeTitle(val)","title(val)"),x.title(e)},x.setTitle=function(e){u("setTitle(val)","title(val)"),x.title(e)},x.getTitle=function(){return u("getTitle()","title()"),x.title()},x.back=function(){u("back()","$ionicHistory.goBack()"),s.goBack()},x.getPreviousTitle=function(){u("getPreviousTitle()","$ionicHistory.backTitle()"),s.goBack()},e.$on("$destroy",function(){e.$parent.$hasHeader=!1,t.parent().removeData("$ionNavBarController");for(var n=0;n<T.length;n++)T[n].destroy();t.remove(),t=T=null,A()})}]),a.controller("$ionicNavView",["$scope","$element","$attrs","$compile","$controller","$ionicNavBarDelegate","$ionicNavViewDelegate","$ionicHistory","$ionicViewSwitcher","$ionicConfig","$ionicScrollDelegate","$ionicSideMenuDelegate",function(e,t,n,i,r,o,a,l,c,u,d,f){function p(e,n){for(var i,r,o=t.children(),a=0,s=o.length;a<s;a++)if(i=o.eq(a),E(i)==S){r=i.scope(),r&&r.$emit(e.name.replace("Tabs","View"),n),r&&r.$broadcast(e.name.replace("Tabs","ParentView"),n);break}}function h(e){ionic.DomUtil.cachedAttr(t,"nav-swipe",e)}function m(e,t){var n=g();n&&n.hasTabsTop(t)}function v(e,t){var n=g();n&&n.hasBarSubheader(t)}function g(){if(w)for(var e=0;e<o._instances.length;e++)if(o._instances[e].$$delegateHandle==w)return o._instances[e];return t.inheritedData("$ionNavBarController")}var $,w,y,b,_,S="active",x=this,T=!1,E=c.navViewAttr;x.scope=e,x.element=t,x.init=function(){var i=n.name||"",r=t.parent().inheritedData("$uiView"),o=r&&r.state?r.state.name:"";i.indexOf("@")<0&&(i=i+"@"+o);var s={name:i,state:null};t.data("$uiView",s);var l=a._registerInstance(x,n.delegateHandle);return e.$on("$destroy",function(){l(),x.isSwipeFreeze&&d.freezeAllScrolls(!1)}),e.$on("$ionicHistory.deselect",x.cacheCleanup),e.$on("$ionicTabs.top",m),e.$on("$ionicSubheader",v),e.$on("$ionicTabs.beforeLeave",p),e.$on("$ionicTabs.afterLeave",p),e.$on("$ionicTabs.leave",p),ionic.Platform.ready(function(){ionic.Platform.isWebView()&&ionic.Platform.isIOS()&&x.initSwipeBack()}),s},x.register=function(t){var n=s({},l.currentView()),i=l.register(e,t);x.update(i);var r=l.getViewById(i.viewId)||{},o=b!==i.viewId;x.render(i,t,r,n,o,!0)},x.update=function(e){T=!0,$=e.direction;var n=t.parent().inheritedData("$ionNavViewController");n&&(n.isPrimary(!1),"enter"!==$&&"exit"!==$||(n.direction($),"enter"===$&&($="none")))},x.render=function(e,t,n,i,r,o){var a=c.create(x,t,n,i,r,o);a.init(e,function(){a.transition(x.direction(),e.enableBack,!_),b=_=null})},x.beforeEnter=function(e){if(T){w=e.navBarDelegate;var t=g();t&&t.update(e),h("")}},x.activeEleId=function(e){return arguments.length&&(y=e),y},x.transitionEnd=function(){var e,n,i,r=t.children();for(e=0,n=r.length;e<n;e++)i=r.eq(e),i.data("$eleId")===y?E(i,S):"leaving"!==E(i)&&E(i)!==S&&"cached"!==E(i)||(i.data("$destroyEle")||i.data("$noCache")?c.destroyViewEle(i):(E(i,"cached"),ionic.Utils.disconnectScope(i.scope())));h(""),x.isSwipeFreeze&&d.freezeAllScrolls(!1)},x.cacheCleanup=function(){for(var e=t.children(),n=0,i=e.length;n<i;n++)e.eq(n).data("$destroyEle")&&c.destroyViewEle(e.eq(n))},x.clearCache=function(e){var n,i,r,o,a,s,l=t.children();for(r=0,o=l.length;r<o;r++)if(n=l.eq(r),e)for(s=n.data("$eleId"),a=0;a<e.length;a++)s===e[a]&&c.destroyViewEle(n);else"cached"==E(n)?c.destroyViewEle(n):E(n)==S&&(i=n.scope())&&i.$broadcast("$ionicView.clearCache")},x.getViewElements=function(){return t.children()},x.appendViewElement=function(n,o){var a=i(n);t.append(n);var s=e.$new();if(o&&o.$$controller){o.$scope=s;var l=r(o.$$controller,o);o.$$controllerAs&&(s[o.$$controllerAs]=l),t.children().data("$ngControllerController",l)}return a(s),s},x.title=function(e){var t=g();t&&t.title(e)},x.enableBackButton=function(e){var t=g();t&&t.enableBackButton(e)},x.showBackButton=function(e){var t=g();return!t||(arguments.length?t.showActiveBackButton(e):t.showActiveBackButton())},x.showBar=function(e){var t=g();return!t||(arguments.length?t.showBar(e):t.showBar())},x.isPrimary=function(e){return arguments.length&&(T=e),T},x.direction=function(e){return arguments.length&&($=e),$},x.initSwipeBack=function(){function n(e){if(T&&u.views.swipeBackEnabled()&&!f.isOpenRight()&&!((S=o(e))>C)){m=l.backView();var n=l.currentView();if(m&&m.historyId===n.historyId&&n.canSwipeBack!==!1){y||(y=window.innerWidth),x.isSwipeFreeze=d.freezeAllScrolls(!0);var a={direction:"back"};E=[],k={showBar:x.showBar(),showBackButton:x.showBackButton()};var h=c.create(x,a,m,n,!0,!1);h.loadViewElements(a),h.render(a),s=h.transition("back",l.enabledBack(m),!0),p=g(),$=ionic.onGesture("drag",i,t[0]),w=ionic.onGesture("release",r,t[0])}}}function i(e){if(T&&s){var t=o(e);if(E.push({t:Date.now(),x:t}),t>=y-15)r(e);else{var n=Math.min(Math.max(a(t),0),1);s.run(n),p&&p.activeTransition&&p.activeTransition.run(n)}}}function r(e){if(T&&s&&E&&E.length>1){for(var t=Date.now(),n=o(e),l=E[E.length-1],c=E.length-2;c>=0&&!(t-l.t>200);c--)l=E[c];var u=n>=E[E.length-2].x,f=a(n),v=Math.abs(l.x-n)/(t-l.t);if(b=m.viewId,_=f<.03||f>.97,u&&(f>.5||v>.1)){var g=v>.5||v<.05||n>y-45?"fast":"slow";h(_?"":g),m.go(),p&&p.activeTransition&&p.activeTransition.complete(!_,g)}else h(_?"":"fast"),b=null,s.cancel(!_),p&&p.activeTransition&&p.activeTransition.cancel(!_,"fast",k),_=null}ionic.offGesture($,"drag",i),ionic.offGesture(w,"release",r),y=s=E=null,x.isSwipeFreeze=d.freezeAllScrolls(!1)}function o(e){return ionic.tap.pointerCoord(e.gesture.srcEvent).x}function a(e){return(e-S)/y}var s,p,m,v,$,w,y,S,E,C=u.views.swipeBackHitWidth(),k={};v=ionic.onGesture("dragstart",n,t[0]),e.$on("$destroy",function(){ionic.offGesture(v,"dragstart",n),ionic.offGesture($,"drag",i),ionic.offGesture(w,"release",r),x.element=s=p=null})}}]),a.controller("$ionicRefresher",["$scope","$attrs","$element","$ionicBind","$timeout",function(e,t,n,i,r){function o(e){e.touches=e.touches||[{screenX:e.screenX,screenY:e.screenY}],M=Math.floor(e.touches[0].screenY)}function a(e){e.touches=e.touches||[{screenX:e.screenX,screenY:e.screenY}],M=e.touches[0].screenY}function s(){M=null,(L||T)&&(T?(T=!1,C=0,k>A?($(),h(A,D)):(h(0,D,g),E=!1)):(C=0,E=!1,p(!1)))}function l(e){if(e.touches=e.touches||[{screenX:e.screenX,screenY:e.screenY}],(M||"mousemove"!=e.type)&&L&&!(e.touches.length>1)){if(null===M&&(M=e.touches[0].screenY),P=e.touches[0].screenY-M,ionic.Platform.isAndroid()&&4.4===ionic.Platform.version()&&!ionic.Platform.isCrosswalk()&&0===_.scrollTop&&P>0&&(T=!0,e.preventDefault()),P-C<=0||0!==_.scrollTop)return E&&(E=!1,p(!1)),T&&f(_,P-C*-1),void(0!==k&&d(0));P>0&&0===_.scrollTop&&!E&&(C=P),e.preventDefault(),E||(E=!0,p(!0)),T=!0,d((P-C)/3),!I&&k>A?(I=!0,ionic.requestAnimationFrame(v)):I&&k<A&&(I=!1,ionic.requestAnimationFrame(g))}}function u(e){L=0===e.target.scrollTop||T}function d(e){S.style[ionic.CSS.TRANSFORM]="translate3d(0px, "+e+"px, 0px)",k=e}function f(e,t){e.scrollTop=t;var n=document.createEvent("UIEvents");n.initUIEvent("scroll",!0,!0,window,1),e.dispatchEvent(n)}function p(e){e?ionic.requestAnimationFrame(function(){S.classList.add("overscroll"),w()}):ionic.requestAnimationFrame(function(){S.classList.remove("overscroll"),y(),g()})}function h(e,t,n){function i(e){return--e*e*e+1}function r(){var s=Date.now(),l=Math.min(1,(s-o)/t),c=i(l);d(Math.floor(c*(e-a)+a)),l<1?ionic.requestAnimationFrame(r):(e<5&&e>-5&&(E=!1,p(!1)),n&&n())}var o=Date.now(),a=k;if(a===e)return void n();ionic.requestAnimationFrame(r)}function m(){S&&(ionic.off(O,a,S),ionic.off(N,l,S),ionic.off(V,s,S),ionic.off("mousedown",o,S),ionic.off("mousemove",l,S),ionic.off("mouseup",s,S)),_&&ionic.off("scroll",u,_),_=null,S=null}function v(){n[0].classList.add("active"),e.$onPulling()}function g(){r(function(){n.removeClass("active refreshing refreshing-tail"),I&&(I=!1)},150)}function $(){n[0].classList.add("refreshing");var t=e.$onRefresh();t&&t.then&&t.finally(function(){e.$broadcast("scroll.refreshComplete")})}function w(){n[0].classList.remove("invisible")}function y(){n[0].classList.add("invisible")}function b(){n[0].classList.add("refreshing-tail")}var _,S,x=this,T=!1,E=!1,C=0,k=0,A=60,I=!1,D=500,M=null,P=null,L=!0;c(t.pullingIcon)||t.$set("pullingIcon","ion-android-arrow-down"),e.showSpinner=!c(t.refreshingIcon)&&"none"!=t.spinner,e.showIcon=c(t.refreshingIcon),i(e,t,{pullingIcon:"@",pullingText:"@",refreshingIcon:"@",refreshingText:"@",spinner:"@",disablePullingRotation:"@",$onRefresh:"&onRefresh",$onPulling:"&onPulling"}),e.$on("scroll.refreshComplete",function(){r(function(){ionic.requestAnimationFrame(b),h(0,D,g),r(function(){E&&(E=!1,p(!1))},D)},D)});var O,N,V;window.navigator.pointerEnabled?(O="pointerdown",N="pointermove",V="pointerup"):window.navigator.msPointerEnabled?(O="MSPointerDown",N="MSPointerMove",V="MSPointerUp"):(O="touchstart",N="touchmove",V="touchend"),x.init=function(){if(_=n.parent().parent()[0],S=n.parent()[0],!(_&&_.classList.contains("ionic-scroll")&&S&&S.classList.contains("scroll")))throw new Error("Refresher must be immediate child of ion-content or ion-scroll");ionic.on(O,a,S),ionic.on(N,l,S),ionic.on(V,s,S),ionic.on("mousedown",o,S),ionic.on("mousemove",l,S),ionic.on("mouseup",s,S),ionic.on("scroll",u,_),e.$on("$destroy",m)},x.getRefresherDomMethods=function(){return{activate:v,deactivate:g,start:$,show:w,hide:y,tail:b}},x.__handleTouchmove=l,x.__getScrollChild=function(){return S},x.__getScrollParent=function(){return _}}]),a.controller("$ionicScroll",["$scope","scrollViewOptions","$timeout","$window","$location","$document","$ionicScrollDelegate","$ionicHistory",function(e,t,n,i,r,o,a,s){var l=this;l.__timeout=n,l._scrollViewOptions=t,l.isNative=function(){return!!t.nativeScrolling};var u,d=l.element=t.el,p=l.$element=f(d);u=l.isNative()?l.scrollView=new ionic.views.ScrollNative(t):l.scrollView=new ionic.views.Scroll(t),(p.parent().length?p.parent():p).data("$$ionicScrollController",l);var h=a._registerInstance(l,t.delegateHandle,function(){return s.isActiveScope(e)});c(t.bouncing)||ionic.Platform.ready(function(){u&&u.options&&(u.options.bouncing=!0,ionic.Platform.isAndroid()&&(u.options.bouncing=!1,u.options.deceleration=.95))});var m=angular.bind(u,u.resize);angular.element(i).on("resize",m);var v=function(t){var n=(t.originalEvent||t).detail||{};e.$onScroll&&e.$onScroll({event:t,scrollTop:n.scrollTop||0,scrollLeft:n.scrollLeft||0})};p.on("scroll",v),e.$on("$destroy",function(){h(),u&&u.__cleanup&&u.__cleanup(),angular.element(i).off("resize",m),p&&p.off("scroll",v),l._scrollViewOptions&&(l._scrollViewOptions.el=null),t&&(t.el=null),u=l.scrollView=t=l._scrollViewOptions=d=l.$element=p=null}),n(function(){u&&u.run&&u.run()}),l.getScrollView=function(){return u},l.getScrollPosition=function(){return u.getValues()},l.resize=function(){return n(m,0,!1).then(function(){p&&p.triggerHandler("scroll-resize")})},l.scrollTop=function(e){l.resize().then(function(){u&&u.scrollTo(0,0,!!e)})},l.scrollBottom=function(e){l.resize().then(function(){if(u){var t=u.getScrollMax();u.scrollTo(t.left,t.top,!!e)}})},l.scrollTo=function(e,t,n){l.resize().then(function(){u&&u.scrollTo(e,t,!!n)})},l.zoomTo=function(e,t,n,i){l.resize().then(function(){u&&u.zoomTo(e,!!t,n,i)})},l.zoomBy=function(e,t,n,i){l.resize().then(function(){u&&u.zoomBy(e,!!t,n,i)})},l.scrollBy=function(e,t,n){l.resize().then(function(){u&&u.scrollBy(e,t,!!n)})},l.anchorScroll=function(e){l.resize().then(function(){if(u){var t=r.hash(),n=t&&o[0].getElementById(t);if(!t||!n)return void u.scrollTo(0,0,!!e);var i=n,a=0,s=0;do{null!==i&&(a+=i.offsetLeft),null!==i&&(s+=i.offsetTop),i=i.offsetParent}while(i.attributes!=l.element.attributes&&i.offsetParent);u.scrollTo(a,s,!!e)}})},l.freezeScroll=u.freeze,l.freezeScrollShut=u.freezeShut,l.freezeAllScrolls=function(e){for(var t=0;t<a._instances.length;t++)a._instances[t].freezeScroll(e)},l._setRefresher=function(e,t,n){l.refresher=t;var i=l.refresher.clientHeight||60;u.activatePullToRefresh(i,n)}}]),a.controller("$ionicSideMenus",["$scope","$attrs","$ionicSideMenuDelegate","$ionicPlatform","$ionicBody","$ionicHistory","$ionicScrollDelegate","IONIC_BACK_PRIORITY","$rootScope",function(e,t,n,i,r,o,a,s,l){var c,d,f,h,m,v,g,$=this,w=!0;$.$scope=e,$.initialize=function(e){$.left=e.left,$.right=e.right,$.setContent(e.content),$.dragThresholdX=e.dragThresholdX||10,o.registerHistory($.$scope)},$.setContent=function(e){e&&($.content=e,$.content.onDrag=function(e){$._handleDrag(e)},$.content.endDrag=function(e){$._endDrag(e)})},$.isOpenLeft=function(){return $.getOpenAmount()>0},$.isOpenRight=function(){return $.getOpenAmount()<0},$.toggleLeft=function(e){if(!g&&$.left.isEnabled){var t=$.getOpenAmount();0===arguments.length&&(e=t<=0),$.content.enableAnimation(),e?($.openPercentage(100),l.$emit("$ionicSideMenuOpen","left")):($.openPercentage(0),l.$emit("$ionicSideMenuClose","left"))}},$.toggleRight=function(e){if(!g&&$.right.isEnabled){var t=$.getOpenAmount();0===arguments.length&&(e=t>=0),$.content.enableAnimation(),e?($.openPercentage(-100),l.$emit("$ionicSideMenuOpen","right")):($.openPercentage(0),l.$emit("$ionicSideMenuClose","right"))}},$.toggle=function(e){"right"==e?$.toggleRight():$.toggleLeft()},$.close=function(){$.openPercentage(0),l.$emit("$ionicSideMenuClose","left"),l.$emit("$ionicSideMenuClose","right")},$.getOpenAmount=function(){return $.content&&$.content.getTranslateX()||0},$.getOpenRatio=function(){var e=$.getOpenAmount();return e>=0?e/$.left.width:e/$.right.width},$.isOpen=function(){return 0!==$.getOpenAmount()},$.getOpenPercentage=function(){return 100*$.getOpenRatio()},$.openPercentage=function(e){var t=e/100;$.left&&e>=0?$.openAmount($.left.width*t):$.right&&e<0&&$.openAmount($.right.width*t),r.enableClass(0!==e,"menu-open"),$.content.setCanScroll(0==e)},$.openAmount=function(e){var t=$.left&&$.left.width||0,n=$.right&&$.right.width||0;return(!$.left||!$.left.isEnabled)&&e>0||(!$.right||!$.right.isEnabled)&&e<0?void $.content.setTranslateX(0):d&&e>t?void $.content.setTranslateX(t):c&&e<-n?void $.content.setTranslateX(-n):($.content.setTranslateX(e),void(e>=0?(d=!0,c=!1,e>0&&($.right&&$.right.pushDown&&$.right.pushDown(),$.left&&$.left.bringUp&&$.left.bringUp())):(c=!0,d=!1,$.right&&$.right.bringUp&&$.right.bringUp(),$.left&&$.left.pushDown&&$.left.pushDown())))},$.snapToRest=function(e){$.content.enableAnimation(),f=!1;var t=$.getOpenRatio();if(0===t)return void $.openPercentage(0);var n=e.gesture.velocityX,i=e.gesture.direction;t>0&&t<.5&&"right"==i&&n<.3?$.openPercentage(0):t>.5&&"left"==i&&n<.3?$.openPercentage(100):t<0&&t>-.5&&"left"==i&&n<.3?$.openPercentage(0):t<.5&&"right"==i&&n<.3?$.openPercentage(-100):"right"==i&&t>=0&&(t>=.5||n>.3)?$.openPercentage(100):"left"==i&&t<=0&&(t<=-.5||n>.3)?$.openPercentage(-100):$.openPercentage(0)},$.enableMenuWithBackViews=function(e){return arguments.length&&(w=!!e),w},$.isAsideExposed=function(){return!!g},$.exposeAside=function(e){($.left&&$.left.isEnabled||$.right&&$.right.isEnabled)&&($.close(),g=e,$.left&&$.left.isEnabled&&$.right&&$.right.isEnabled?$.content.setMarginLeftAndRight(g?$.left.width:0,g?$.right.width:0):$.left&&$.left.isEnabled?$.content.setMarginLeft(g?$.left.width:0):$.right&&$.right.isEnabled&&$.content.setMarginRight(g?$.right.width:0),$.$scope.$emit("$ionicExposeAside",g))},$.activeAsideResizing=function(e){r.enableClass(e,"aside-resizing")},$._endDrag=function(e){g||(f&&$.snapToRest(e),h=null,m=null,v=null)},$._handleDrag=function(t){!g&&e.dragContent&&(h?m=t.gesture.touches[0].pageX:(h=t.gesture.touches[0].pageX,m=h),!f&&Math.abs(m-h)>$.dragThresholdX&&(h=m,f=!0,$.content.disableAnimation(),v=$.getOpenAmount()),f&&$.openAmount(v+(m-h)))},$.canDragContent=function(t){return arguments.length&&(e.dragContent=!!t),e.dragContent},$.edgeThreshold=25,$.edgeThresholdEnabled=!1,$.edgeDragThreshold=function(e){return arguments.length&&(u(e)&&e>0?($.edgeThreshold=e,$.edgeThresholdEnabled=!0):$.edgeThresholdEnabled=!!e),$.edgeThresholdEnabled},$.isDraggableTarget=function(t){var n=$.edgeThresholdEnabled&&!$.isOpen(),i=t.gesture.startEvent&&t.gesture.startEvent.center&&t.gesture.startEvent.center.pageX,r=!n||i<=$.edgeThreshold||i>=$.content.element.offsetWidth-$.edgeThreshold,a=o.backView(),s=!!w||!a;if(!s){var l=o.currentView()||{};return r&&a.historyId!==l.historyId}return(e.dragContent||$.isOpen())&&r&&!t.gesture.srcEvent.defaultPrevented&&s&&!t.target.tagName.match(/input|textarea|select|object|embed/i)&&!t.target.isContentEditable&&!(t.target.dataset?t.target.dataset.preventScroll:"true"==t.target.getAttribute("data-prevent-scroll"))},e.sideMenuContentTranslateX=0;var y=p,b=angular.bind($,$.close);e.$watch(function(){return 0!==$.getOpenAmount()},function(e){y(),e&&(y=i.registerBackButtonAction(b,s.sideMenu))});var _=n._registerInstance($,t.delegateHandle,function(){return o.isActiveScope(e)});e.$on("$destroy",function(){_(),y(),$.$scope=null,$.content&&($.content.setCanScroll(!0),$.content.element=null,$.content=null)}),$.initialize({left:{width:275},right:{width:275}})}]),function(e){function t(e,i,r,a){var s,l,c,u=document.createElement(o[e]||e);for(s in i)if(angular.isArray(i[s]))for(l=0;l<i[s].length;l++)if(i[s][l].fn)for(c=0;c<i[s][l].t;c++)t(s,i[s][l].fn(c,a),u,a);else t(s,i[s][l],u,a);else n(u,s,i[s]);r.appendChild(u)}function n(e,t,n){e.setAttribute(o[t]||t,n)}function i(e,t){var n=e.split(";"),i=n.slice(t),r=n.slice(0,n.length-i.length);return n=i.concat(r).reverse(),n.join(";")+";"+n[0]}function r(e,t){return(e/=t/2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}var o={a:"animate",an:"attributeName",at:"animateTransform",c:"circle",da:"stroke-dasharray",os:"stroke-dashoffset",f:"fill",lc:"stroke-linecap",rc:"repeatCount",sw:"stroke-width",t:"transform",v:"values"},s={v:"0,32,32;360,32,32",an:"transform",type:"rotate",rc:"indefinite",dur:"750ms"},l={sw:4,lc:"round",line:[{fn:function(e,t){return{y1:"ios"==t?17:12,y2:"ios"==t?29:20,t:"translate(32,32) rotate("+(30*e+(e<6?180:-180))+")",a:[{fn:function(){return{an:"stroke-opacity",dur:"750ms",v:i("0;.1;.15;.25;.35;.45;.55;.65;.7;.85;1",e),rc:"indefinite"}},t:1}]}},t:12}]},c={android:{c:[{sw:6,da:128,os:82,r:26,cx:32,cy:32,f:"none"}]},ios:l,"ios-small":l,bubbles:{sw:0,c:[{fn:function(e){return{cx:24*Math.cos(2*Math.PI*e/8),cy:24*Math.sin(2*Math.PI*e/8),t:"translate(32,32)",a:[{fn:function(){return{an:"r",dur:"750ms",v:i("1;2;3;4;5;6;7;8",e),rc:"indefinite"}},t:1}]}},t:8}]},circles:{c:[{fn:function(e){return{r:5,cx:24*Math.cos(2*Math.PI*e/8),cy:24*Math.sin(2*Math.PI*e/8),t:"translate(32,32)",sw:0,a:[{fn:function(){return{an:"fill-opacity",dur:"750ms",v:i(".3;.3;.3;.4;.7;.85;.9;1",e),rc:"indefinite"}},t:1}]}},t:8}]},crescent:{c:[{sw:4,da:128,os:82,r:26,cx:32,cy:32,f:"none",at:[s]}]},dots:{c:[{fn:function(e){return{cx:16+16*e,cy:32,sw:0,a:[{fn:function(){return{an:"fill-opacity",dur:"750ms",v:i(".5;.6;.8;1;.8;.6;.5",e),rc:"indefinite"}},t:1},{fn:function(){return{an:"r",dur:"750ms",v:i("4;5;6;5;4;3;3",e),rc:"indefinite"}},t:1}]}},t:3}]},lines:{sw:7,lc:"round",line:[{fn:function(e){return{x1:10+14*e,x2:10+14*e,a:[{fn:function(){return{an:"y1",dur:"750ms",v:i("16;18;28;18;16",e),rc:"indefinite"}},t:1},{fn:function(){return{an:"y2",dur:"750ms",v:i("48;44;36;46;48",e),rc:"indefinite"}},t:1},{fn:function(){return{an:"stroke-opacity",dur:"750ms",v:i("1;.8;.5;.4;1",e),rc:"indefinite"}},t:1}]}},t:4}]},ripple:{f:"none","fill-rule":"evenodd",sw:3,circle:[{fn:function(e){return{cx:32,cy:32,a:[{fn:function(){return{an:"r",begin:e*-1+"s",dur:"2s",v:"0;24",keyTimes:"0;1",keySplines:"0.1,0.2,0.3,1",calcMode:"spline",rc:"indefinite"}},t:1},{fn:function(){return{an:"stroke-opacity",begin:e*-1+"s",dur:"2s",v:".2;1;.2;0",rc:"indefinite"}},t:1}]}},t:2}]},spiral:{defs:[{linearGradient:[{id:"sGD",gradientUnits:"userSpaceOnUse",x1:55,y1:46,x2:2,y2:46,stop:[{offset:.1,class:"stop1"},{offset:1,class:"stop2"}]}]}],g:[{sw:4,lc:"round",f:"none",path:[{stroke:"url(#sGD)",d:"M4,32 c0,15,12,28,28,28c8,0,16-4,21-9"},{d:"M60,32 C60,16,47.464,4,32,4S4,16,4,32"}],at:[s]}]}},u={android:function(t){function i(){if(!o.stop){var t=r(Date.now()-a,650),d=1,f=0,p=188-58*t,h=182-182*t;s%2&&(d=-1,f=-64,p=128- -58*t,h=182*t);var m=[0,-101,-90,-11,-180,79,-270,-191][s];n(u,"da",Math.max(Math.min(p,188),128)),n(u,"os",Math.max(Math.min(h,182),0)),n(u,"t","scale("+d+",1) translate("+f+",0) rotate("+m+",32,32)"),l+=4.1,l>359&&(l=0),n(c,"t","rotate("+l+",32,32)"),t>=1&&(s++,s>7&&(s=0),a=Date.now()),e.requestAnimationFrame(i)}}var o={};this.stop=!1;var a,s=0,l=0,c=t.querySelector("g"),u=t.querySelector("circle");return function(){return a=Date.now(),i(),o}}};a.controller("$ionicSpinner",["$element","$attrs","$ionicConfig",function(e,n,i){var r,o;this.init=function(){r=n.icon||i.spinner.icon();var o=document.createElement("div");return t("svg",{viewBox:"0 0 64 64",g:[c[r]]},o,r),e.html(o.innerHTML),this.start(),r},this.start=function(){u[r]&&(o=u[r](e[0])())},this.stop=function(){u[r]&&(o.stop=!0)}}])}(ionic),a.controller("$ionicTab",["$scope","$ionicHistory","$attrs","$location","$state",function(e,t,n,i,r){this.$scope=e,this.hrefMatchesState=function(){return n.href&&0===i.path().indexOf(n.href.replace(/^#/,"").replace(/\/$/,""))},this.srefMatchesState=function(){return n.uiSref&&r.includes(n.uiSref.split("(")[0])},this.navNameMatchesState=function(){return this.navViewName&&t.isCurrentStateNavView(this.navViewName)},this.tabMatchesState=function(){return this.hrefMatchesState()||this.srefMatchesState()||this.navNameMatchesState()}}]),a.controller("$ionicTabs",["$scope","$element","$ionicHistory",function(e,t,n){var i,r=this,o=null,a=null,s=!0;r.tabs=[],r.selectedIndex=function(){return r.tabs.indexOf(o)},r.selectedTab=function(){return o},r.previousSelectedTab=function(){return a},r.add=function(e){n.registerHistory(e),r.tabs.push(e)},r.remove=function(e){var t=r.tabs.indexOf(e);if(t!==-1){if(e.$tabSelected)if(r.deselect(e),1===r.tabs.length);else{var n=t===r.tabs.length-1?t-1:t+1;r.select(r.tabs[n])}r.tabs.splice(t,1)}},r.deselect=function(e){e.$tabSelected&&(a=o,o=i=null,e.$tabSelected=!1,(e.onDeselect||p)(),e.$broadcast&&e.$broadcast("$ionicHistory.deselect"))},r.select=function(t,a){var s;if(u(t)){if((s=t)>=r.tabs.length)return;t=r.tabs[s]}else s=r.tabs.indexOf(t);1===arguments.length&&(a=!(!t.navViewName&&!t.uiSref)),o&&o.$historyId==t.$historyId?a&&n.goToHistoryRoot(t.$historyId):i!==s&&(l(r.tabs,function(e){r.deselect(e)}),o=t,i=s,r.$scope&&r.$scope.$parent&&(r.$scope.$parent.$activeHistoryId=t.$historyId),t.$tabSelected=!0,(t.onSelect||p)(),a&&e.$emit("$ionicHistory.change",{type:"tab",tabIndex:s,historyId:t.$historyId,navViewName:t.navViewName,hasNavView:!!t.navViewName,title:t.title,url:t.href,uiSref:t.uiSref}),e.$broadcast("tabSelected",{selectedTab:t,selectedTabIndex:s}))},r.hasActiveScope=function(){for(var e=0;e<r.tabs.length;e++)if(n.isActiveScope(r.tabs[e]))return!0;return!1},r.showBar=function(e){ return arguments.length&&(e?t.removeClass("tabs-item-hide"):t.addClass("tabs-item-hide"),s=!!e),s}}]),a.controller("$ionicView",["$scope","$element","$attrs","$compile","$rootScope",function(e,t,n,i,r){function o(){var t=c(n.viewTitle)&&"viewTitle"||c(n.title)&&"title";t&&(a(n[t]),g.push(n.$observe(t,a))),c(n.hideBackButton)&&g.push(e.$watch(n.hideBackButton,function(e){f.showBackButton(!e)})),c(n.hideNavBar)&&g.push(e.$watch(n.hideNavBar,function(e){f.showBar(!e)}))}function a(e){c(e)&&e!==h&&(h=e,f.title(h))}function l(){for(var e=0;e<g.length;e++)g[e]();g=[]}function u(t){if(t)return i(t)(e.$new())}function d(t){return!!e.$eval(n[t])}var f,p,h,m=this,v={},g=[],$=e.$on("ionNavBar.init",function(e,t){e.stopPropagation(),p=t});m.init=function(){$();var n=t.inheritedData("$ionModalController");(f=t.inheritedData("$ionNavViewController"))&&!n&&(e.$on("$ionicView.beforeEnter",m.beforeEnter),e.$on("$ionicView.afterEnter",o),e.$on("$ionicView.beforeLeave",l))},m.beforeEnter=function(t,i){if(i&&!i.viewNotified){i.viewNotified=!0,r.$$phase||e.$digest(),h=c(n.viewTitle)?n.viewTitle:n.title;var o={};for(var a in v)o[a]=u(v[a]);f.beforeEnter(s(i,{title:h,showBack:!d("hideBackButton"),navBarItems:o,navBarDelegate:p||null,showNavBar:!d("hideNavBar"),hasHeaderBar:!1})),l()}},m.navElement=function(e,t){v[e]=t}}]),a.directive("ionActionSheet",["$document",function(e){return{restrict:"E",scope:!0,replace:!0,link:function(t,n){var i=function(e){27==e.which&&(t.cancel(),t.$apply())},r=function(e){e.target==n[0]&&(t.cancel(),t.$apply())};t.$on("$destroy",function(){n.remove(),e.unbind("keyup",i)}),e.bind("keyup",i),n.bind("click",r)},template:'<div class="action-sheet-backdrop"><div class="action-sheet-wrapper"><div class="action-sheet" ng-class="{\'action-sheet-has-icons\': $actionSheetHasIcon}"><div class="action-sheet-group action-sheet-options"><div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div><button class="button action-sheet-option" ng-click="buttonClicked($index)" ng-class="b.className" ng-repeat="b in buttons" ng-bind-html="b.text"></button><button class="button destructive action-sheet-destructive" ng-if="destructiveText" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button></div><div class="action-sheet-group action-sheet-cancel" ng-if="cancelText"><button class="button" ng-click="cancel()" ng-bind-html="cancelText"></button></div></div></div></div>'}}]),a.directive("ionCheckbox",["$ionicConfig",function(e){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,template:'<label class="item item-checkbox"><div class="checkbox checkbox-input-hidden disable-pointer-events"><input type="checkbox"><i class="checkbox-icon"></i></div><div class="item-content disable-pointer-events" ng-transclude></div></label>',compile:function(t,n){var i=t.find("input");l({name:n.name,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-checked":n.ngChecked,"ng-disabled":n.ngDisabled,"ng-true-value":n.ngTrueValue,"ng-false-value":n.ngFalseValue,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,t){c(e)&&i.attr(t,e)}),t[0].querySelector(".checkbox").classList.add("checkbox-"+e.form.checkbox())}}}]),a.directive("collectionRepeat",e).factory("$ionicCollectionManager",t);var h="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",m=/height:.*?px;\s*width:.*?px/,v=3;e.$inject=["$ionicCollectionManager","$parse","$window","$$rAF","$rootScope","$timeout"],t.$inject=["$rootScope","$window","$$rAF"],a.directive("ionContent",["$timeout","$controller","$ionicBind","$ionicConfig",function(e,t,n,i){return{restrict:"E",require:"^?ionNavView",scope:!0,priority:800,compile:function(e,r){function o(e,i,o){function u(){e.$onScrollComplete({scrollTop:s.scrollView.__scrollTop,scrollLeft:s.scrollView.__scrollLeft})}var d=e.$parent;if(e.$watch(function(){return(d.$hasHeader?" has-header":"")+(d.$hasSubheader?" has-subheader":"")+(d.$hasFooter?" has-footer":"")+(d.$hasSubfooter?" has-subfooter":"")+(d.$hasTabs?" has-tabs":"")+(d.$hasTabsTop?" has-tabs-top":"")},function(e,t){i.removeClass(t),i.addClass(e)}),e.$hasHeader=e.$hasSubheader=e.$hasFooter=e.$hasSubfooter=e.$hasTabs=e.$hasTabsTop=!1,n(e,o,{$onScroll:"&onScroll",$onScrollComplete:"&onScrollComplete",hasBouncing:"@",padding:"@",direction:"@",scrollbarX:"@",scrollbarY:"@",startX:"@",startY:"@",scrollEventInterval:"@"}),e.direction=e.direction||"y",c(o.padding)&&e.$watch(o.padding,function(e){(a||i).toggleClass("padding",!!e)}),"false"===o.scroll);else{var f={};l?(i.addClass("overflow-scroll"),f={el:i[0],delegateHandle:r.delegateHandle,startX:e.$eval(e.startX)||0,startY:e.$eval(e.startY)||0,nativeScrolling:!0}):f={el:i[0],delegateHandle:r.delegateHandle,locking:"true"===(r.locking||"true"),bouncing:e.$eval(e.hasBouncing),startX:e.$eval(e.startX)||0,startY:e.$eval(e.startY)||0,scrollbarX:e.$eval(e.scrollbarX)!==!1,scrollbarY:e.$eval(e.scrollbarY)!==!1,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,scrollEventInterval:parseInt(e.scrollEventInterval,10)||10,scrollingComplete:u},s=t("$ionicScroll",{$scope:e,scrollViewOptions:f}),e.scrollCtrl=s,e.$on("$destroy",function(){f&&(f.scrollingComplete=p,delete f.el),a=null,i=null,r.$$element=null})}}var a,s;e.addClass("scroll-content ionic-scroll"),"false"!=r.scroll?(a=f('<div class="scroll"></div>'),a.append(e.contents()),e.append(a)):e.addClass("scroll-content-false");var l="false"!==r.overflowScroll&&("true"===r.overflowScroll||!i.scrolling.jsScrolling());return l&&(l=!e[0].querySelector("[collection-repeat]")),{pre:o}}}}]),a.directive("exposeAsideWhen",["$window",function(e){return{restrict:"A",require:"^ionSideMenus",link:function(t,n,i,r){function o(){var t="large"==i.exposeAsideWhen?"(min-width:768px)":i.exposeAsideWhen;r.exposeAside(e.matchMedia(t).matches),r.activeAsideResizing(!1)}function a(){r.activeAsideResizing(!0),c()}var s=e.innerWidth,l=e.innerHeight;ionic.on("resize",function(){s===e.innerWidth&&l===e.innerHeight||(s=e.innerWidth,l=e.innerHeight,a())},e);var c=ionic.debounce(function(){t.$apply(o)},300,!1);t.$evalAsync(o)}}}]),"onHold onTap onDoubleTap onTouch onRelease onDragStart onDrag onDragEnd onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft".split(" ").forEach(function(e){a.directive(e,n(e))}),a.directive("ionHeaderBar",i(!0)).directive("ionFooterBar",i(!1)),a.directive("ionInfiniteScroll",["$timeout",function(e){return{restrict:"E",require:["?^$ionicScroll","ionInfiniteScroll"],template:function(e,t){return t.icon?'<i class="icon {{icon()}} icon-refreshing {{scrollingType}}"></i>':'<ion-spinner icon="{{spinner()}}"></ion-spinner>'},scope:!0,controller:"$ionInfiniteScroll",link:function(t,n,i,r){var o=r[1],a=o.scrollCtrl=r[0];if(o.jsScrolling=!a.isNative())o.scrollView=a.scrollView,t.scrollingType="js-scrolling",a.$element.on("scroll",o.checkBounds);else{var s=ionic.DomUtil.getParentOrSelfWithClass(n[0].parentNode,"overflow-scroll");if(o.scrollEl=s,!s)throw"Infinite scroll must be used inside a scrollable div";o.scrollEl.addEventListener("scroll",o.checkBounds)}(!c(i.immediateCheck)||t.$eval(i.immediateCheck))&&e(function(){o.checkBounds()})}}}]);var g=-1;a.directive("ionInput",[function(){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t,this.setInputAriaLabeledBy=function(e){var n=t[0].querySelectorAll("input,textarea");n.length&&n[0].setAttribute("aria-labelledby",e)},this.focus=function(){var e=t[0].querySelectorAll("input,textarea");e.length&&e[0].focus()}}]}}]),a.directive("ionLabel",[function(){return{restrict:"E",require:"?^ionInput",compile:function(){return function(e,t,n,i){var r=t[0];t.addClass("input-label"),t.attr("aria-label",t.text());var o=r.id||"_label-"+ ++g;r.id||t.attr("id",o),i&&(i.setInputAriaLabeledBy(o),t.on("click",function(){i.focus()}))}}}}]),a.directive("inputLabel",[function(){return{restrict:"C",require:"?^ionInput",compile:function(){return function(e,t,n,i){var r=t[0];t.attr("aria-label",t.text());var o=r.id||"_label-"+ ++g;r.id||t.attr("id",o),i&&i.setInputAriaLabeledBy(o)}}}}]),a.directive("ionItem",["$$rAF",function(e){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],scope:!0,compile:function(t,n){var i=c(n.href)||c(n.ngHref)||c(n.uiSref);if(i||/ion-(delete|option|reorder)-button/i.test(t.html())){var r=f(i?"<a></a>":"<div></div>");r.addClass("item-content"),(c(n.href)||c(n.ngHref))&&(r.attr("ng-href","{{$href()}}"),c(n.target)&&r.attr("target","{{$target()}}")),r.append(t.contents()),t.addClass("item item-complex").append(r)}else t.addClass("item");return function(t,n,i){t.$href=function(){return i.href||i.ngHref},t.$target=function(){return i.target};var r=n[0].querySelector(".item-content");r&&t.$on("$collectionRepeatLeave",function(){r&&r.$$ionicOptionsOpen&&(r.style[ionic.CSS.TRANSFORM]="",r.style[ionic.CSS.TRANSITION]="none",e(function(){r.style[ionic.CSS.TRANSITION]=""}),r.$$ionicOptionsOpen=!1)})}}}}]);a.directive("ionDeleteButton",function(){function e(e){e.stopPropagation()}return{restrict:"E",require:["^^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n.class||"")+" button icon button-icon",!0),function(t,n,i,r){function o(){(s=s||n.controller("ionList"))&&s.showDelete()&&l.addClass("visible active")}var a=r[0],s=r[1],l=f('<div class="item-left-edit item-delete enable-pointer-events"></div>');l.append(n),a.$element.append(l).addClass("item-left-editable"),n.on("click",e),o(),t.$on("$ionic.reconnectScope",o)}}}}),a.directive("itemFloatingLabel",function(){return{restrict:"C",link:function(e,t){var n=t[0],i=n.querySelector("input, textarea"),r=n.querySelector(".input-label");if(i&&r){var o=function(){i.value?r.classList.add("has-input"):r.classList.remove("has-input")};i.addEventListener("input",o);var a=f(i).controller("ngModel");a&&(a.$render=function(){i.value=a.$viewValue||"",o()}),e.$on("$destroy",function(){i.removeEventListener("input",o)})}}}});a.directive("ionOptionButton",[function(){function e(e){e.stopPropagation()}return{restrict:"E",require:"^ionItem",priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n.class||"")+" button",!0),function(t,n,i,r){r.optionsContainer||(r.optionsContainer=f('<div class="item-options invisible"></div>'),r.$element.append(r.optionsContainer)),r.optionsContainer.append(n),r.$element.addClass("item-right-editable"),n.on("click",e)}}}}]);a.directive("ionReorderButton",["$parse",function(e){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n.class||"")+" button icon button-icon",!0),t[0].setAttribute("data-prevent-scroll",!0),function(t,n,i,r){var o=r[0],a=r[1],s=e(i.onReorder);t.$onReorder=function(e,n){s(t,{$fromIndex:e,$toIndex:n})},i.ngClick||i.onClick||i.onclick||(n[0].onclick=function(e){return e.stopPropagation(),!1});var l=f('<div data-prevent-scroll="true" class="item-right-edit item-reorder enable-pointer-events"></div>');l.append(n),o.$element.append(l).addClass("item-right-editable"),a&&a.showReorder()&&l.addClass("visible active")}}}}]),a.directive("keyboardAttach",function(){return function(e,t){function n(e){if(!ionic.Platform.isAndroid()||ionic.Platform.isFullScreen){var n=e.keyboardHeight||e.detail&&e.detail.keyboardHeight;t.css("bottom",n+"px"),o=t.controller("$ionicScroll"),o&&(o.scrollView.__container.style.bottom=n+r(t[0])+"px")}}function i(){ionic.Platform.isAndroid()&&!ionic.Platform.isFullScreen||(t.css("bottom",""),o&&(o.scrollView.__container.style.bottom=""))}ionic.on("native.keyboardshow",n,window),ionic.on("native.keyboardhide",i,window),ionic.on("native.showkeyboard",n,window),ionic.on("native.hidekeyboard",i,window);var o;e.$on("$destroy",function(){ionic.off("native.keyboardshow",n,window),ionic.off("native.keyboardhide",i,window),ionic.off("native.showkeyboard",n,window),ionic.off("native.hidekeyboard",i,window)})}}),a.directive("ionList",["$timeout",function(e){return{restrict:"E",require:["ionList","^?$ionicScroll"],controller:"$ionicList",compile:function(t,n){var i=f('<div class="list">').append(t.contents()).addClass(n.type);return t.append(i),function(t,i,r,o){function a(){function r(e,t){t()&&e.addClass("visible")||e.removeClass("active"),ionic.requestAnimationFrame(function(){t()&&e.addClass("active")||e.removeClass("visible")})}var o=s.listView=new ionic.views.ListView({el:i[0],listEl:i.children()[0],scrollEl:l&&l.element,scrollView:l&&l.scrollView,onReorder:function(t,n,i){var r=f(t).scope();r&&r.$onReorder&&e(function(){r.$onReorder(n,i)})},canSwipe:function(){return s.canSwipeItems()}});t.$on("$destroy",function(){o&&(o.deregister&&o.deregister(),o=null)}),c(n.canSwipe)&&t.$watch("!!("+n.canSwipe+")",function(e){s.canSwipeItems(e)}),c(n.showDelete)&&t.$watch("!!("+n.showDelete+")",function(e){s.showDelete(e)}),c(n.showReorder)&&t.$watch("!!("+n.showReorder+")",function(e){s.showReorder(e)}),t.$watch(function(){return s.showDelete()},function(e,t){if(e||t){e&&s.closeOptionButtons(),s.canSwipeItems(!e),i.children().toggleClass("list-left-editing",e),i.toggleClass("disable-pointer-events",e);r(f(i[0].getElementsByClassName("item-delete")),s.showDelete)}}),t.$watch(function(){return s.showReorder()},function(e,t){if(e||t){e&&s.closeOptionButtons(),s.canSwipeItems(!e),i.children().toggleClass("list-right-editing",e),i.toggleClass("disable-pointer-events",e);r(f(i[0].getElementsByClassName("item-reorder")),s.showReorder)}})}var s=o[0],l=o[1];e(a)}}}}]),a.directive("menuClose",["$ionicHistory","$timeout",function(e,t){return{restrict:"AC",link:function(n,i){i.bind("click",function(){var n=i.inheritedData("$ionSideMenusController");n&&(e.nextViewOptions({historyRoot:!0,disableAnimate:!0,expire:300}),t(function(){e.nextViewOptions({historyRoot:!1,disableAnimate:!1})},300),n.close())})}}}]),a.directive("menuToggle",function(){return{restrict:"AC",link:function(e,t,n){e.$on("$ionicView.beforeEnter",function(e,n){if(n.enableBack){t.inheritedData("$ionSideMenusController").enableMenuWithBackViews()||t.addClass("hide")}else t.removeClass("hide")}),t.bind("click",function(){var e=t.inheritedData("$ionSideMenusController");e&&e.toggle(n.menuToggle)})}}}),a.directive("ionModal",[function(){return{restrict:"E",transclude:!0,replace:!0,controller:[function(){}],template:'<div class="modal-backdrop"><div class="modal-backdrop-bg"></div><div class="modal-wrapper" ng-transclude></div></div>'}}]),a.directive("ionModalView",function(){return{restrict:"E",compile:function(e){e.addClass("modal")}}}),a.directive("ionNavBackButton",["$ionicConfig","$document",function(e,t){return{restrict:"E",require:"^ionNavBar",compile:function(n,i){function r(e){return/ion-|icon/.test(e.className)}var o=t[0].createElement("button");for(var a in i.$attr)o.setAttribute(i.$attr[a],i[a]);i.ngClick||o.setAttribute("ng-click","$ionicGoBack()"),o.className="button back-button hide buttons "+(n.attr("class")||""),o.innerHTML=n.html()||"";for(var s,l,c,u,d=r(n[0]),f=0;f<n[0].childNodes.length;f++)s=n[0].childNodes[f],1===s.nodeType?r(s)?d=!0:s.classList.contains("default-title")?c=!0:s.classList.contains("previous-title")&&(u=!0):l||3!==s.nodeType||(l=!!s.nodeValue.trim());var p=e.backButton.icon();if(!d&&p&&"none"!==p&&(o.innerHTML='<i class="icon '+p+'"></i> '+o.innerHTML,o.className+=" button-clear"),!l){var h=t[0].createElement("span");h.className="back-text",!c&&e.backButton.text()&&(h.innerHTML+='<span class="default-title">'+e.backButton.text()+"</span>"),!u&&e.backButton.previousTitleText()&&(h.innerHTML+='<span class="previous-title"></span>'),o.appendChild(h)}return n.attr("class","hide"),n.empty(),{pre:function(e,t,n,i){i.navElement("backButton",o.outerHTML),o=null}}}}}]),a.directive("ionNavBar",function(){return{restrict:"E",controller:"$ionicNavBar",scope:!0,link:function(e,t,n,i){i.init()}}}),a.directive("ionNavButtons",["$document",function(e){return{require:"^ionNavBar",restrict:"E",compile:function(t,n){var i="left";/^primary|secondary|right$/i.test(n.side||"")&&(i=n.side.toLowerCase());var r=e[0].createElement("span");r.className=i+"-buttons",r.innerHTML=t.html();var o=i+"Buttons";return t.attr("class","hide"),t.empty(),{pre:function(e,t,n,i){var a=t.parent().data("$ionViewController");a?a.navElement(o,r.outerHTML):i.navElement(o,r.outerHTML),r=null}}}}}]),a.directive("navDirection",["$ionicViewSwitcher",function(e){return{restrict:"A",priority:1e3,link:function(t,n,i){n.bind("click",function(){e.nextDirection(i.navDirection)})}}}]),a.directive("ionNavTitle",["$document",function(e){return{require:"^ionNavBar",restrict:"E",compile:function(t,n){var i=e[0].createElement("span");for(var r in n.$attr)i.setAttribute(n.$attr[r],n[r]);return i.classList.add("nav-bar-title"),i.innerHTML=t.html(),t.attr("class","hide"),t.empty(),{pre:function(e,t,n,r){var o=t.parent().data("$ionViewController");o?o.navElement("title",i.outerHTML):r.navElement("title",i.outerHTML),i=null}}}}}]),a.directive("navTransition",["$ionicViewSwitcher",function(e){return{restrict:"A",priority:1e3,link:function(t,n,i){n.bind("click",function(){e.nextTransition(i.navTransition)})}}}]),a.directive("ionNavView",["$state","$ionicConfig",function(e,t){return{restrict:"E",terminal:!0,priority:2e3,transclude:!0,controller:"$ionicNavView",compile:function(n,i,r){return n.addClass("view-container"),ionic.DomUtil.cachedAttr(n,"nav-view-transition",t.views.transition()),function(t,n,i,o){function a(t){var n=e.$current&&e.$current.locals[l.name];n&&(t||n!==s)&&(s=n,l.state=n.$$state,o.register(n))}var s;r(t,function(e){n.append(e)});var l=o.init();t.$on("$stateChangeSuccess",function(){a(!1)}),t.$on("$viewContentLoading",function(){a(!1)}),a(!0)}}}}]),a.config(["$provide",function(e){e.decorator("ngClickDirective",["$delegate",function(e){return e.shift(),e}])}]).factory("$ionicNgClick",["$parse",function(e){return function(t,n,i){var r=angular.isFunction(i)?i:e(i);n.on("click",function(e){t.$apply(function(){r(t,{$event:e})})}),n.onclick=p}}]).directive("ngClick",["$ionicNgClick",function(e){return function(t,n,i){e(t,n,i.ngClick)}}]).directive("ionStopEvent",function(){return{restrict:"A",link:function(e,t,n){t.bind(n.ionStopEvent,o)}}}),a.directive("ionPane",function(){return{restrict:"E",link:function(e,t){t.addClass("pane")}}}),a.directive("ionPopover",[function(){return{restrict:"E",transclude:!0,replace:!0,controller:[function(){}],template:'<div class="popover-backdrop"><div class="popover-wrapper" ng-transclude></div></div>'}}]),a.directive("ionPopoverView",function(){return{restrict:"E",compile:function(e){e.append(f('<div class="popover-arrow">')),e.addClass("popover")}}}),a.directive("ionRadio",function(){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,template:'<label class="item item-radio"><input type="radio" name="radio-group"><div class="radio-content"><div class="item-content disable-pointer-events" ng-transclude></div><i class="radio-icon disable-pointer-events icon ion-checkmark"></i></div></label>',compile:function(e,t){if(t.icon){e.find("i").removeClass("ion-checkmark").addClass(t.icon)}var n=e.find("input");return l({name:t.name,value:t.value,disabled:t.disabled,"ng-value":t.ngValue,"ng-model":t.ngModel,"ng-disabled":t.ngDisabled,"ng-change":t.ngChange,"ng-required":t.ngRequired,required:t.required},function(e,t){c(e)&&n.attr(t,e)}),function(e,t,n){e.getValue=function(){return e.ngValue||n.value}}}}}),a.directive("ionRefresher",[function(){return{restrict:"E",replace:!0,require:["?^$ionicScroll","ionRefresher"],controller:"$ionicRefresher",template:'<div class="scroll-refresher invisible" collection-repeat-ignore><div class="ionic-refresher-content" ng-class="{\'ionic-refresher-with-text\': pullingText || refreshingText}"><div class="icon-pulling" ng-class="{\'pulling-rotation-disabled\':disablePullingRotation}"><i class="icon {{pullingIcon}}"></i></div><div class="text-pulling" ng-bind-html="pullingText"></div><div class="icon-refreshing"><ion-spinner ng-if="showSpinner" icon="{{spinner}}"></ion-spinner><i ng-if="showIcon" class="icon {{refreshingIcon}}"></i></div><div class="text-refreshing" ng-bind-html="refreshingText"></div></div></div>',link:function(e,t,n,i){var r=i[0],o=i[1];!r||r.isNative()?o.init():(t[0].classList.add("js-scrolling"),r._setRefresher(e,t[0],o.getRefresherDomMethods()),e.$on("scroll.refreshComplete",function(){e.$evalAsync(function(){r.scrollView.finishPullToRefresh()})}))}}}]),a.directive("ionScroll",["$timeout","$controller","$ionicBind","$ionicConfig",function(e,t,n,i){return{restrict:"E",scope:!0,controller:function(){},compile:function(e,r){function o(e,i,r){n(e,r,{direction:"@",paging:"@",$onScroll:"&onScroll",scroll:"@",scrollbarX:"@",scrollbarY:"@",zooming:"@",minZoom:"@",maxZoom:"@"}),e.direction=e.direction||"y",c(r.padding)&&e.$watch(r.padding,function(e){a.toggleClass("padding",!!e)}),e.$eval(e.paging)===!0&&a.addClass("scroll-paging"),e.direction||(e.direction="y");var o=e.$eval(e.paging)===!0;s&&i.addClass("overflow-scroll"),i.addClass("scroll-"+e.direction);var l={el:i[0],delegateHandle:r.delegateHandle,locking:"true"===(r.locking||"true"),bouncing:e.$eval(r.hasBouncing),paging:o,scrollbarX:e.$eval(e.scrollbarX)!==!1,scrollbarY:e.$eval(e.scrollbarY)!==!1,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,zooming:e.$eval(e.zooming)===!0,maxZoom:e.$eval(e.maxZoom)||3,minZoom:e.$eval(e.minZoom)||.5,preventDefault:!0,nativeScrolling:s};o&&(l.speedMultiplier=.8,l.bouncing=!1),t("$ionicScroll",{$scope:e,scrollViewOptions:l})}e.addClass("scroll-view ionic-scroll");var a=f('<div class="scroll"></div>');a.append(e.contents()),e.append(a);var s="false"!==r.overflowScroll&&("true"===r.overflowScroll||!i.scrolling.jsScrolling());return{pre:o}}}}]),a.directive("ionSideMenu",function(){return{restrict:"E",require:"^ionSideMenus",scope:!0,compile:function(e,t){return angular.isUndefined(t.isEnabled)&&t.$set("isEnabled","true"),angular.isUndefined(t.width)&&t.$set("width","275"),e.addClass("menu menu-"+t.side),function(e,n,i,r){e.side=i.side||"left";var o=r[e.side]=new ionic.views.SideMenu({width:t.width,el:n[0],isEnabled:!0});e.$watch(i.width,function(e){var t=+e;t&&t==e&&o.setWidth(+e)}),e.$watch(i.isEnabled,function(e){o.setIsEnabled(!!e)})}}}}),a.directive("ionSideMenuContent",["$timeout","$ionicGesture","$window",function(e,t,n){return{restrict:"EA",require:"^ionSideMenus",scope:!0,compile:function(i,r){function o(o,a,s,l){function u(e){0!==l.getOpenAmount()?(l.close(),e.gesture.srcEvent.preventDefault(),m=null,v=null):m||(m=ionic.tap.pointerCoord(e.gesture.srcEvent))}function d(e){l.isDraggableTarget(e)&&"x"==h(e)&&(l._handleDrag(e),e.gesture.srcEvent.preventDefault())}function f(e){"x"==h(e)&&e.gesture.srcEvent.preventDefault()}function p(e){l._endDrag(e),m=null,v=null}function h(e){if(v)return v;if(e&&e.gesture){if(m){var t=ionic.tap.pointerCoord(e.gesture.srcEvent),n=Math.abs(t.x-m.x),i=Math.abs(t.y-m.y),r=n<i?"y":"x";return Math.max(n,i)>30&&(v=r),r}m=ionic.tap.pointerCoord(e.gesture.srcEvent)}return"y"}var m=null,v=null;c(r.dragContent)?o.$watch(r.dragContent,function(e){l.canDragContent(e)}):l.canDragContent(!0),c(r.edgeDragThreshold)&&o.$watch(r.edgeDragThreshold,function(e){l.edgeDragThreshold(e)});var g={element:i[0],onDrag:function(){},endDrag:function(){},setCanScroll:function(e){var t=a[0].querySelector(".scroll");if(t){var n=angular.element(t.parentElement);if(n){var i=n.scope();i.scrollCtrl&&i.scrollCtrl.freezeScrollShut(!e)}}},getTranslateX:function(){return o.sideMenuContentTranslateX||0},setTranslateX:ionic.animationFrameThrottle(function(t){var n=g.offsetX+t;a[0].style[ionic.CSS.TRANSFORM]="translate3d("+n+"px,0,0)",e(function(){o.sideMenuContentTranslateX=t})}),setMarginLeft:ionic.animationFrameThrottle(function(e){e?(e=parseInt(e,10),a[0].style[ionic.CSS.TRANSFORM]="translate3d("+e+"px,0,0)",a[0].style.width=n.innerWidth-e+"px",g.offsetX=e):(a[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)",a[0].style.width="",g.offsetX=0)}),setMarginRight:ionic.animationFrameThrottle(function(e){e?(e=parseInt(e,10),a[0].style.width=n.innerWidth-e+"px",g.offsetX=e):(a[0].style.width="",g.offsetX=0),a[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)"}),setMarginLeftAndRight:ionic.animationFrameThrottle(function(e,t){e=e&&parseInt(e,10)||0,t=t&&parseInt(t,10)||0;var i=e+t;i>0?(a[0].style[ionic.CSS.TRANSFORM]="translate3d("+e+"px,0,0)",a[0].style.width=n.innerWidth-i+"px",g.offsetX=e):(a[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)",a[0].style.width="",g.offsetX=0)}),enableAnimation:function(){o.animationEnabled=!0,a[0].classList.add("menu-animated")},disableAnimation:function(){o.animationEnabled=!1,a[0].classList.remove("menu-animated")},offsetX:0};l.setContent(g);var $={stop_browser_behavior:!1};$.prevent_default_directions=["left","right"];var w=t.on("tap",u,a,$),y=t.on("dragright",d,a,$),b=t.on("dragleft",d,a,$),_=t.on("dragup",f,a,$),S=t.on("dragdown",f,a,$),x=t.on("release",p,a,$);o.$on("$destroy",function(){g&&(g.element=null,g=null),t.off(b,"dragleft",d),t.off(y,"dragright",d),t.off(_,"dragup",f),t.off(S,"dragdown",f),t.off(x,"release",p),t.off(w,"tap",u)})}return i.addClass("menu-content pane"),{pre:o}}}}]),a.directive("ionSideMenus",["$ionicBody",function(e){return{restrict:"ECA",controller:"$ionicSideMenus",compile:function(t,n){function i(t,n,i,r){r.enableMenuWithBackViews(t.$eval(i.enableMenuWithBackViews)),t.$on("$ionicExposeAside",function(n,i){t.$exposeAside||(t.$exposeAside={}),t.$exposeAside.active=i,e.enableClass(i,"aside-open")}),t.$on("$ionicView.beforeEnter",function(e,n){n.historyId&&(t.$activeHistoryId=n.historyId)}),t.$on("$destroy",function(){e.removeClass("menu-open","aside-open")})}return n.$set("class",(n.class||"")+" view"),{pre:i}}}}]),a.directive("ionSlideBox",["$animate","$timeout","$compile","$ionicSlideBoxDelegate","$ionicHistory","$ionicScrollDelegate",function(e,t,n,i,r,o){return{restrict:"E",replace:!0,transclude:!0,scope:{autoPlay:"=",doesContinue:"@",slideInterval:"@",showPager:"@",pagerClick:"&",disableScroll:"@",onSlideChanged:"&",activeSlide:"=?",bounce:"@"},controller:["$scope","$element","$attrs",function(e,n,a){function s(e){e&&!l.isScrollFreeze?o.freezeAllScrolls(e):!e&&l.isScrollFreeze&&o.freezeAllScrolls(!1),l.isScrollFreeze=e}var l=this,u=e.$eval(e.doesContinue)===!0,d=e.$eval(e.bounce)!==!1,f=!!c(a.autoPlay)&&!!e.autoPlay,p=f?e.$eval(e.slideInterval)||4e3:0,h=new ionic.views.Slider({el:n[0],auto:p,continuous:u,startSlide:e.activeSlide,bouncing:d,slidesChanged:function(){e.currentSlide=h.currentIndex(),t(function(){})},callback:function(n){e.currentSlide=n,e.onSlideChanged({index:e.currentSlide,$index:e.currentSlide}),e.$parent.$broadcast("slideBox.slideChanged",n),e.activeSlide=n,t(function(){})},onDrag:function(){s(!0)},onDragEnd:function(){s(!1)}});h.enableSlide(e.$eval(a.disableScroll)!==!0),e.$watch("activeSlide",function(e){c(e)&&h.slide(e)}),e.$on("slideBox.nextSlide",function(){h.next()}),e.$on("slideBox.prevSlide",function(){h.prev()}),e.$on("slideBox.setSlide",function(e,t){h.slide(t)}),this.__slider=h;var m=i._registerInstance(h,a.delegateHandle,function(){return r.isActiveScope(e)});e.$on("$destroy",function(){m(),h.kill()}),this.slidesCount=function(){return h.slidesCount()},this.onPagerClick=function(t){e.pagerClick({index:t})},t(function(){h.load()})}],template:'<div class="slider"><div class="slider-slides" ng-transclude></div></div>',link:function(t,i,r){function o(){if(!a){var e=t.$new();a=f("<ion-pager></ion-pager>"),i.append(a),a=n(a)(e)}return a}e.enabled(i,!1),c(r.showPager)||(t.showPager=!0,o().toggleClass("hide",!1)),r.$observe("showPager",function(e){void 0!==e&&(e=t.$eval(e),o().toggleClass("hide",!e))});var a}}}]).directive("ionSlide",function(){return{restrict:"E",require:"?^ionSlideBox",compile:function(e){e.addClass("slider-slide")}}}).directive("ionPager",function(){return{restrict:"E",replace:!0,require:"^ionSlideBox",template:'<div class="slider-pager"><span class="slider-pager-page" ng-repeat="slide in numSlides() track by $index" ng-class="{active: $index == currentSlide}" ng-click="pagerClick($index)"><i class="icon ion-record"></i></span></div>',link:function(e,t,n,i){var r=function(e){for(var n=t[0].children,i=n.length,r=0;r<i;r++)r==e?n[r].classList.add("active"):n[r].classList.remove("active")};e.pagerClick=function(e){i.onPagerClick(e)},e.numSlides=function(){return new Array(i.slidesCount())},e.$watch("currentSlide",function(e){r(e)})}}}),a.directive("ionSlides",["$animate","$timeout","$compile",function(e,t,n){return{restrict:"E",transclude:!0,scope:{options:"=",slider:"="},template:'<div class="swiper-container"><div class="swiper-wrapper" ng-transclude></div><div ng-hide="!showPager" class="swiper-pagination"></div></div>',controller:["$scope","$element",function(e,i){var r=this;this.update=function(){t(function(){if(r.__slider){r.__slider.update(),r._options.loop&&r.__slider.createLoop();var t=r.__slider.slides.length;t>10&&(e.showPager=!1),r.__slider.activeIndex>t-1&&r.__slider.slideTo(t-1)}})},this.rapidUpdate=ionic.debounce(function(){r.update()},50),this.getSlider=function(){return r.__slider};var o=e.options||{},a=angular.extend({pagination:i.children().children()[1],paginationClickable:!0,lazyLoading:!0,preloadImages:!1},o);this._options=a,t(function(){var t=new ionic.views.Swiper(i.children()[0],a,e,n);e.$emit("$ionicSlides.sliderInitialized",{slider:t}),r.__slider=t,e.slider=r.__slider,e.$on("$destroy",function(){t.destroy(),r.__slider=null})}),t(function(){r.rapidUpdate()},200)}],link:function(e){e.showPager=!0}}}]).directive("ionSlidePage",[function(){return{restrict:"E",require:"?^ionSlides",transclude:!0,replace:!0,template:'<div class="swiper-slide" ng-transclude></div>',link:function(e,t,n,i){i.rapidUpdate(),e.$on("$destroy",function(){i.rapidUpdate()})}}}]),a.directive("ionSpinner",function(){return{restrict:"E",controller:"$ionicSpinner",link:function(e,t,n,i){var r=i.init();t.addClass("spinner spinner-"+r),t.on("$destroy",function(){i.stop()})}}}),a.directive("ionTab",["$compile","$ionicConfig","$ionicBind","$ionicViewSwitcher",function(e,t,n,i){function r(e,t){return c(t)?" "+e+'="'+t+'"':""}return{restrict:"E",require:["^ionTabs","ionTab"],controller:"$ionicTab",scope:!0,compile:function(o,a){for(var s="<ion-tab-nav"+r("ng-click",a.ngClick)+r("title",a.title)+r("icon",a.icon)+r("icon-on",a.iconOn)+r("icon-off",a.iconOff)+r("badge",a.badge)+r("badge-style",a.badgeStyle)+r("hidden",a.hidden)+r("disabled",a.disabled)+r("class",a.class)+"></ion-tab-nav>",l=document.createElement("div"),c=0;c<o[0].children.length;c++)l.appendChild(o[0].children[c].cloneNode(!0));var u=l.childElementCount;o.empty();var d,p;return u&&("ION-NAV-VIEW"===l.children[0].tagName&&(d=l.children[0].getAttribute("name"),l.children[0].classList.add("view-container"),p=!0),1===u&&(l=l.children[0]),p||l.classList.add("pane"),l.classList.add("tab-content")),function(r,o,a,c){function p(){w.tabMatchesState()&&$.select(r,!1)}function h(n){n&&u?(y||(v=r.$new(),g=f(l),i.viewEleIsActive(g,!0),$.$element.append(g),e(g)(v),y=!0),i.viewEleIsActive(g,!0)):y&&g&&(t.views.maxCache()>0?i.viewEleIsActive(g,!1):m())}function m(){v&&v.$destroy(),y&&g&&g.remove(),l.innerHTML="",y=v=g=null}var v,g,$=c[0],w=c[1],y=!1;r.$tabSelected=!1,n(r,a,{onSelect:"&",onDeselect:"&",title:"@",uiSref:"@",href:"@"}),$.add(r),r.$on("$destroy",function(){r.$tabsDestroy||$.remove(r),b.isolateScope().$destroy(),b.remove(),b=l=g=null}),o[0].removeAttribute("title"),d&&(w.navViewName=r.navViewName=d),r.$on("$stateChangeSuccess",p),p();var b=f(s);b.data("$ionTabsController",$),b.data("$ionTabController",w),$.$tabsElement.append(e(b)(r)),r.$watch("$tabSelected",h),r.$on("$ionicView.afterEnter",function(){i.viewEleIsActive(g,r.$tabSelected)}),r.$on("$ionicView.clearCache",function(){r.$tabSelected||m()})}}} }]),a.directive("ionTabNav",[function(){return{restrict:"E",replace:!0,require:["^ionTabs","^ionTab"],template:"<a ng-class=\"{'has-badge':badge, 'tab-hidden':isHidden(), 'tab-item-active': isTabActive()}\" "+' ng-disabled="disabled()" class="tab-item"><span class="badge {{badgeStyle}}" ng-if="badge">{{badge}}</span><i class="icon {{getIcon()}}" ng-if="getIcon()"></i><span class="tab-title" ng-bind-html="title"></span></a>',scope:{title:"@",icon:"@",iconOn:"@",iconOff:"@",badge:"=",hidden:"@",disabled:"&",badgeStyle:"@",class:"@"},link:function(e,t,n,i){var r=i[0],o=i[1];t[0].removeAttribute("title"),e.selectTab=function(e){e.preventDefault(),r.select(o.$scope,!0)},n.ngClick||t.on("click",function(t){e.$apply(function(){e.selectTab(t)})}),e.isHidden=function(){return"true"===n.hidden||n.hidden===!0},e.getIconOn=function(){return e.iconOn||e.icon},e.getIconOff=function(){return e.iconOff||e.icon},e.isTabActive=function(){return r.selectedTab()===o.$scope},e.getIcon=function(){return r.selectedTab()===o.$scope?e.iconOn||e.icon:e.iconOff||e.icon}}}}]),a.directive("ionTabs",["$ionicTabsDelegate","$ionicConfig",function(e,t){return{restrict:"E",scope:!0,controller:"$ionicTabs",compile:function(n){function i(t,n,i,r){function a(e,t){e.stopPropagation();var n=r.previousSelectedTab();n&&n.$broadcast(e.name.replace("NavView","Tabs"),t)}var s=e._registerInstance(r,i.delegateHandle,r.hasActiveScope);r.$scope=t,r.$element=n,r.$tabsElement=f(n[0].querySelector(".tabs")),t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("tabs-top")!==-1,i=e.indexOf("tabs-item-hide")!==-1;t.$hasTabs=!n&&!i,t.$hasTabsTop=n&&!i,t.$emit("$ionicTabs.top",t.$hasTabsTop)}),t.$on("$ionicNavView.beforeLeave",a),t.$on("$ionicNavView.afterLeave",a),t.$on("$ionicNavView.leave",a),t.$on("$destroy",function(){t.$tabsDestroy=!0,s(),r.$tabsElement=r.$element=r.$scope=o=null,delete t.$hasTabs,delete t.$hasTabsTop})}function r(e,t,n,i){i.selectedTab()||i.select(0)}var o=f('<div class="tab-nav tabs">');return o.append(n.contents()),n.append(o).addClass("tabs-"+t.tabs.position()+" tabs-"+t.tabs.style()),{pre:i,post:r}}}}]),a.directive("ionTitle",[function(){return{restrict:"E",compile:function(e){e.addClass("title")}}}]),a.directive("ionToggle",["$timeout","$ionicConfig",function(e,t){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,template:'<div class="item item-toggle"><div ng-transclude></div><label class="toggle"><input type="checkbox"><div class="track"><div class="handle"></div></div></label></div>',compile:function(e,n){var i=e.find("input");return l({name:n.name,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-checked":n.ngChecked,"ng-disabled":n.ngDisabled,"ng-true-value":n.ngTrueValue,"ng-false-value":n.ngFalseValue,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,t){c(e)&&i.attr(t,e)}),n.toggleClass&&e[0].getElementsByTagName("label")[0].classList.add(n.toggleClass),e.addClass("toggle-"+t.form.toggle()),function(e,t){var n=t[0].getElementsByTagName("label")[0],i=n.children[0],r=n.children[1],o=r.children[0],a=f(i).controller("ngModel");e.toggle=new ionic.views.Toggle({el:n,track:r,checkbox:i,handle:o,onChange:function(){a&&(a.$setViewValue(i.checked),e.$apply())}}),e.$on("$destroy",function(){e.toggle.destroy()})}}}}]),a.directive("ionView",function(){return{restrict:"EA",priority:1e3,controller:"$ionicView",compile:function(e){return e.addClass("pane"),e[0].removeAttribute("title"),function(e,t,n,i){i.init()}}}})}(); !function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(0,function(){function t(t){"use strict";var e=t.storageKey(),n=t.storage(),a=function(){var a=t.preferredLanguage();angular.isString(a)?t.use(a):n.put(e,t.use())};a.displayName="fallbackFromIncorrectStorageValue",n?n.get(e)?t.use(n.get(e)).catch(a):a():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){"use strict";var t,e,n,a=null,r=!1,i=!1;n={sanitize:function(t,e){return"text"===e&&(t=o(t)),t},escape:function(t,e){return"text"===e&&(t=s(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=u(t,o)),t},escapeParameters:function(t,e){return"params"===e&&(t=u(t,s)),t},sce:function(t,e,n){return"text"===e?t=l(t):"params"===e&&"filter"!==n&&(t=u(t,s)),t},sceParameters:function(t,e){return"params"===e&&(t=u(t,l)),t}},n.escaped=n.escapeParameters,this.addStrategy=function(t,e){return n[t]=e,this},this.removeStrategy=function(t){return delete n[t],this},this.useStrategy=function(t){return r=!0,a=t,this},this.$get=["$injector","$log",function(s,o){var l={},u=function(t,e,a,r){return angular.forEach(r,function(r){if(angular.isFunction(r))t=r(t,e,a);else if(angular.isFunction(n[r]))t=n[r](t,e,a);else{if(!angular.isString(n[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!l[n[r]])try{l[n[r]]=s.get(n[r])}catch(t){throw l[n[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}t=l[n[r]](t,e,a)}}),t},c=function(){r||i||(o.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return s.has("$sanitize")&&(t=s.get("$sanitize")),s.has("$sce")&&(e=s.get("$sce")),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,n,r){return a||c(),n||null===n||(n=a),n?(r||(r="service"),u(t,e,r,angular.isArray(n)?n:[n])):t}}}];var s=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},o=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},l=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return e.trustAsHtml(t)},u=function(t,e,n){if(angular.isDate(t))return t;if(angular.isObject(t)){var a=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(t),angular.forEach(t,function(t,r){angular.isFunction(t)||(a[r]=u(t,e,n))}),n.splice(-1,1),a}return angular.isNumber(t)?t:angular.isUndefined(t)||null===t?t:e(t)}}function n(t,e,n,a){"use strict";var r,i,s,o,l,u,c,f,g,p,h,d,v,m,$,y,b={},L=[],S=t,w=[],j="translate-cloak",N=!1,C=!1,O=".",E=!1,P=!1,k=0,A=!0,T="default",x={default:function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e},"iso639-1":function(t){return(t||"").split("_").join("-").split("-")[0].toLowerCase()}},F=function(){if(angular.isFunction(a.getLocale))return a.getLocale();var t,n,r=e.$get().navigator,i=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(r.languages))for(t=0;t<r.languages.length;t++)if((n=r.languages[t])&&n.length)return n;for(t=0;t<i.length;t++)if((n=r[i[t]])&&n.length)return n;return null};F.displayName="angular-translate/service: getFirstBrowserLanguage";var z=function(){var t=F()||"";return x[T]&&(t=x[T](t)),t};z.displayName="angular-translate/service: getLocale";var I=function(t,e){for(var n=0,a=t.length;n<a;n++)if(t[n]===e)return n;return-1},_=function(){return this.toString().replace(/^\s+|\s+$/g,"")},V=function(t){if(t){for(var e=[],n=angular.lowercase(t),a=0,r=L.length;a<r;a++)e.push(angular.lowercase(L[a]));if(I(e,n)>-1)return t;if(i){var s;for(var o in i)if(i.hasOwnProperty(o)){var l=!1,u=Object.prototype.hasOwnProperty.call(i,o)&&angular.lowercase(o)===angular.lowercase(t);if("*"===o.slice(-1)&&(l=o.slice(0,-1)===t.slice(0,o.length-1)),(u||l)&&(s=i[o],I(e,angular.lowercase(s))>-1))return s}}var c=t.split("_");return c.length>1&&I(e,angular.lowercase(c[0]))>-1?c[0]:void 0}},R=function(t,e){if(!t&&!e)return b;if(t&&!e){if(angular.isString(t))return b[t]}else angular.isObject(b[t])||(b[t]={}),angular.extend(b[t],D(e));return this};this.translations=R,this.cloakClassName=function(t){return t?(j=t,this):j},this.nestedObjectDelimeter=function(t){return t?(O=t,this):O};var D=function(t,e,n,a){var r,i,s,o;e||(e=[]),n||(n={});for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o=t[r],angular.isObject(o)?D(o,e.concat(r),n,r):(i=e.length?""+e.join(O)+O+r:r,e.length&&r===a&&(s=""+e.join(O),n[s]="@:"+i),n[i]=o));return n};D.displayName="flatObject",this.addInterpolation=function(t){return w.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return p=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(K(t),this):r};var K=function(t){return t&&(r=t),r};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(v=t,this):v},this.translationNotFoundIndicatorRight=function(t){return t?(m=t,this):m},this.fallbackLanguage=function(t){return M(t),this};var M=function(t){return t?(angular.isString(t)?(o=!0,s=[t]):angular.isArray(t)&&(o=!1,s=t),angular.isString(r)&&I(s,r)<0&&s.push(r),this):o?s[0]:s};this.use=function(t){if(t){if(!b[t]&&!h)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return l=t,this}return l},this.resolveClientLocale=function(){return z()};var U=function(t){return t?(S=t,this):f?f+S:S};this.storageKey=U,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return h=t,d=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return c=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return g=t,this},this.usePostCompiling=function(t){return N=!!t,this},this.forceAsyncReload=function(t){return C=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},T=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():z();return r=L.length?V(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(L=t,e&&(i=e),this):L},this.useLoaderCache=function(t){return t===!1?$=void 0:t===!0?$=!0:void 0===t?$="$translationCache":t&&($=t),this},this.directivePriority=function(t){return void 0===t?k:(k=t,this)},this.statefulFilter=function(t){return void 0===t?A:(A=t,this)},this.postProcess=function(t){return y=t?t:void 0,this},this.keepContent=function(t){return P=!!t,this},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,a){var i,f,T,x=e.get(p||"$translateDefaultInterpolation"),F=!1,H={},G={},q=function(t,e,n,o,u){!l&&r&&(l=r);var g=u&&u!==l?V(u)||u:l;if(u&&ut(u),angular.isArray(t)){return function(t){for(var r={},i=[],s=0,l=t.length;s<l;s++)i.push(function(t){var i=a.defer(),s=function(e){r[t]=e,i.resolve([t,e])};return q(t,e,n,o,u).then(s,s),i.promise}(t[s]));return a.all(i).then(function(){return r})}(t)}var p=a.defer();t&&(t=_.apply(t));var h=function(){var t=r?G[r]:G[g];if(f=0,c&&!t){var e=i.get(S);if(t=G[e],s&&s.length){f=0===I(s,e)?1:0,I(s,r)<0&&s.push(r)}}return t}();if(h){var d=function(){u||(g=l),it(t,e,n,o,g).then(p.resolve,p.reject)};d.displayName="promiseResolved",h.finally(d).catch(angular.noop)}else it(t,e,n,o,g).then(p.resolve,p.reject);return p.promise},Y=function(t){return v&&(t=[v,t].join(" ")),m&&(t=[t,m].join(" ")),t},B=function(t){l=t,c&&i.put(q.storageKey(),l),n.$emit("$translateChangeSuccess",{language:t}),x.setLocale(l);var e=function(t,e){H[e].setLocale(l)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(H,e),n.$emit("$translateChangeEnd",{language:t})},J=function(t){if(!t)throw"No language key specified for loading.";var r=a.defer();n.$emit("$translateLoadingStart",{language:t}),F=!0;var i=$;"string"==typeof i&&(i=e.get(i));var s=angular.extend({},d,{key:t,$http:angular.extend({},{cache:i},d.$http)}),o=function(e){var a={};n.$emit("$translateLoadingSuccess",{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(a,D(t))}):angular.extend(a,D(e)),F=!1,r.resolve({key:t,table:a}),n.$emit("$translateLoadingEnd",{language:t})};o.displayName="onLoaderSuccess";var l=function(t){n.$emit("$translateLoadingError",{language:t}),r.reject(t),n.$emit("$translateLoadingEnd",{language:t})};return l.displayName="onLoaderError",e.get(h)(s).then(o,l),r.promise};if(c&&(i=e.get(c),!i.get||!i.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(w.length){var Q=function(t){var n=e.get(t);n.setLocale(r||l),H[n.getInterpolationIdentifier()]=n};Q.displayName="interpolationFactoryAdder",angular.forEach(w,Q)}var W=function(t){var e=a.defer();if(Object.prototype.hasOwnProperty.call(b,t))e.resolve(b[t]);else if(G[t]){var n=function(t){R(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",G[t].then(n,e.reject)}else e.reject();return e.promise},X=function(t,e,n,r,i){var s=a.defer(),o=function(a){if(Object.prototype.hasOwnProperty.call(a,e)&&null!==a[e]){r.setLocale(t);var o=a[e];if("@:"===o.substr(0,2))X(t,o.substr(2),n,r,i).then(s.resolve,s.reject);else{var u=r.interpolate(a[e],n,"service",i,e);u=lt(e,a[e],u,n,t),s.resolve(u)}r.setLocale(l)}else s.reject()};return o.displayName="fallbackTranslationResolver",W(t).then(o,s.reject),s.promise},Z=function(t,e,n,a,r){var i,s=b[t];if(s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){if(a.setLocale(t),i=a.interpolate(s[e],n,"filter",r,e),i=lt(e,s[e],i,n,t,r),!angular.isString(i)&&angular.isFunction(i.$$unwrapTrustedValue)){var o=i.$$unwrapTrustedValue();if("@:"===o.substr(0,2))return Z(t,o.substr(2),n,a,r)}else if("@:"===i.substr(0,2))return Z(t,i.substr(2),n,a,r);a.setLocale(l)}return i},tt=function(t,n,a,r){return g?e.get(g)(t,l,n,a,r):t},et=function(t,e,n,r,i,o){var l=a.defer();if(t<s.length){X(s[t],e,n,r,o).then(function(t){l.resolve(t)},function(){return et(t+1,e,n,r,i,o).then(l.resolve,l.reject)})}else if(i)l.resolve(i);else{var u=tt(e,n,i);g&&u?l.resolve(u):l.reject(Y(e))}return l.promise},nt=function(t,e,n,a,r){var i;if(t<s.length){i=Z(s[t],e,n,a,r),i||""===i||(i=nt(t+1,e,n,a))}return i},at=function(t,e,n,a,r){return et(T>0?T:f,t,e,n,a,r)},rt=function(t,e,n,a){return nt(T>0?T:f,t,e,n,a)},it=function(t,e,n,r,i,o){var l=a.defer(),u=i?b[i]:b,c=n?H[n]:x;if(u&&Object.prototype.hasOwnProperty.call(u,t)&&null!==u[t]){var f=u[t];if("@:"===f.substr(0,2))q(f.substr(2),e,n,r,i).then(l.resolve,l.reject);else{var p=c.interpolate(f,e,"service",o,t);p=lt(t,f,p,e,i),l.resolve(p)}}else{var h;g&&!F&&(h=tt(t,e,r)),i&&s&&s.length?at(t,e,c,r,o).then(function(t){l.resolve(t)},function(t){l.reject(Y(t))}):g&&!F&&h?r?l.resolve(r):l.resolve(h):r?l.resolve(r):l.reject(Y(t))}return l.promise},st=function(t,e,n,a,r){var i,o=a?b[a]:b,l=x;if(H&&Object.prototype.hasOwnProperty.call(H,n)&&(l=H[n]),o&&Object.prototype.hasOwnProperty.call(o,t)&&null!==o[t]){var u=o[t];"@:"===u.substr(0,2)?i=st(u.substr(2),e,n,a,r):(i=l.interpolate(u,e,"filter",r,t),i=lt(t,u,i,e,a,r))}else{var c;g&&!F&&(c=tt(t,e,r)),a&&s&&s.length?(f=0,i=rt(t,e,l,r)):i=g&&!F&&c?c:Y(t)}return i},ot=function(t){u===t&&(u=void 0),G[t]=void 0},lt=function(t,n,a,r,i,s){var o=y;return o&&("string"==typeof o&&(o=e.get(o)),o)?o(t,n,a,r,i,s):a},ut=function(t){b[t]||!h||G[t]||(G[t]=J(t).then(function(t){return R(t.key,t.table),t}))};q.preferredLanguage=function(t){return t&&K(t),r},q.cloakClassName=function(){return j},q.nestedObjectDelimeter=function(){return O},q.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(M(t),h&&s&&s.length)for(var e=0,n=s.length;e<n;e++)G[s[e]]||(G[s[e]]=J(s[e]));q.use(q.use())}return o?s[0]:s},q.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=I(s,t);e>-1&&(T=e)}else T=0},q.proposedLanguage=function(){return u},q.storage=function(){return i},q.negotiateLocale=V,q.use=function(t){if(!t)return l;var e=a.defer();e.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:t});var r=V(t);return L.length>0&&!r?a.reject(t):(r&&(t=r),u=t,!C&&b[t]||!h||G[t]?G[t]?G[t].then(function(t){return u===t.key&&B(t.key),e.resolve(t.key),t},function(t){return!l&&s&&s.length>0&&s[0]!==t?q.use(s[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),B(t)):(G[t]=J(t).then(function(n){return R(n.key,n.table),e.resolve(n.key),u===t&&B(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),a.reject(t)}),G[t].finally(function(){ot(t)}).catch(angular.noop)),e.promise)},q.resolveClientLocale=function(){return z()},q.storageKey=function(){return U()},q.isPostCompilingEnabled=function(){return N},q.isForceAsyncReloadEnabled=function(){return C},q.isKeepContent=function(){return P},q.refresh=function(t){function e(t){var e=J(t);return G[t]=e,e.then(function(e){b[t]={},R(t,e.table),i[t]=!0},angular.noop),e}if(!h)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:t});var r=a.defer(),i={};if(r.promise.then(function(){for(var t in b)b.hasOwnProperty(t)&&(t in i||delete b[t]);l&&B(l)},angular.noop).finally(function(){n.$emit("$translateRefreshEnd",{language:t})}),t)b[t]?e(t).then(r.resolve,r.reject):r.reject();else{var o=s&&s.slice()||[];l&&o.indexOf(l)===-1&&o.push(l),a.all(o.map(e)).then(r.resolve,r.reject)}return r.promise},q.instant=function(t,e,n,a,i){var o=a&&a!==l?V(a)||a:l;if(null===t||angular.isUndefined(t))return t;if(a&&ut(a),angular.isArray(t)){for(var u={},c=0,f=t.length;c<f;c++)u[t[c]]=q.instant(t[c],e,n,a,i);return u}if(angular.isString(t)&&t.length<1)return t;t&&(t=_.apply(t));var p,h=[];r&&h.push(r),o&&h.push(o),s&&s.length&&(h=h.concat(s));for(var d=0,$=h.length;d<$;d++){var y=h[d];if(b[y]&&void 0!==b[y][t]&&(p=st(t,e,n,o,i)),void 0!==p)break}if(!p&&""!==p)if(v||m)p=Y(t);else{p=x.interpolate(t,e,"filter",i);var L;g&&!F&&(L=tt(t,e,i)),g&&!F&&L&&(p=L)}return p},q.versionInfo=function(){return"2.15.1"},q.loaderCache=function(){return $},q.directivePriority=function(){return k},q.statefulFilter=function(){return A},q.isReady=function(){return E};var ct=a.defer();ct.promise.then(function(){E=!0}),q.onReady=function(t){var e=a.defer();return angular.isFunction(t)&&e.promise.then(t),E?e.resolve():ct.promise.then(e.resolve),e.promise},q.getAvailableLanguageKeys=function(){return L.length>0?L:null},q.getTranslationTable=function(t){return t=t||q.use(),t&&b[t]?angular.copy(b[t]):null};var ft=n.$on("$translateReady",function(){ct.resolve(),ft(),ft=null}),gt=n.$on("$translateChangeEnd",function(){ct.resolve(),gt(),gt=null});if(h){if(angular.equals(b,{})&&q.use()&&q.use(q.use()),s&&s.length)for(var pt=function(t){return R(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},ht=0,dt=s.length;ht<dt;ht++){var vt=s[ht];!C&&b[vt]||(G[vt]=J(vt).then(pt))}}else n.$emit("$translateReady",{language:q.use()});return q}]}function a(t,e){"use strict";var n,a={};return a.setLocale=function(t){n=t},a.getInterpolationIdentifier=function(){return"default"},a.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},a.interpolate=function(n,a,r,i,s){a=a||{},a=e.sanitize(a,"params",i,r);var o;return angular.isNumber(n)?o=""+n:angular.isString(n)?(o=t(n)(a),o=e.sanitize(o,"text",i,r)):o="",o},a}function r(t,e,n,a,r){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:t.directivePriority(),compile:function(o,l){var u=l.translateValues?l.translateValues:void 0,c=l.translateInterpolation?l.translateInterpolation:void 0,f=o[0].outerHTML.match(/translate-value-+/i),g="^(.*)("+e.startSymbol()+".*"+e.endSymbol()+")(.*)",p="^(.*)"+e.startSymbol()+"(.*)"+e.endSymbol()+"(.*)";return function(o,h,d){o.interpolateParams={},o.preText="",o.postText="",o.translateNamespace=i(o);var v={},m=function(t){if(angular.isFunction(m._unwatchOld)&&(m._unwatchOld(),m._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var n=s.apply(h.text()),a=n.match(g);if(angular.isArray(a)){o.preText=a[1],o.postText=a[3],v.translate=e(a[2])(o.$parent);var r=n.match(p);angular.isArray(r)&&r[2]&&r[2].length&&(m._unwatchOld=o.$watch(r[2],function(t){v.translate=t,L()}))}else v.translate=n?n:void 0}else v.translate=t;L()};!function(t,e,n){if(e.translateValues&&angular.extend(t,a(e.translateValues)(o.$parent)),f)for(var r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&"translateValue"===r.substr(0,14)&&"translateValues"!==r){var i=angular.lowercase(r.substr(14,1))+r.substr(15);t[i]=n[r]}}(o.interpolateParams,d,l);var $=!0;d.$observe("translate",function(t){void 0===t?m(""):""===t&&$||(v.translate=t,L()),$=!1});for(var y in d)d.hasOwnProperty(y)&&"translateAttr"===y.substr(0,13)&&y.length>13&&function(t){d.$observe(t,function(e){v[t]=e,L()})}(y);if(d.$observe("translateDefault",function(t){o.defaultText=t,L()}),u&&d.$observe("translateValues",function(t){t&&o.$parent.$watch(function(){angular.extend(o.interpolateParams,a(t)(o.$parent))})}),f){for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&"translateValue"===b.substr(0,14)&&"translateValues"!==b&&function(t){d.$observe(t,function(e){var n=angular.lowercase(t.substr(14,1))+t.substr(15);o.interpolateParams[n]=e})}(b)}var L=function(){for(var t in v)v.hasOwnProperty(t)&&void 0!==v[t]&&S(t,v[t],o,o.interpolateParams,o.defaultText,o.translateNamespace)},S=function(e,n,a,r,i,s){n?(s&&"."===n.charAt(0)&&(n=s+n),t(n,r,c,i,a.translateLanguage).then(function(t){w(t,a,!0,e)},function(t){w(t,a,!1,e)})):w(n,a,!1,e)},w=function(e,a,r,i){if(r||void 0!==a.defaultText&&(e=a.defaultText),"translate"===i){(r||!r&&!t.isKeepContent()&&void 0===d.translateKeepContent)&&h.empty().append(a.preText+e+a.postText);var s=t.isPostCompilingEnabled(),o=void 0!==l.translateCompile,u=o&&"false"!==l.translateCompile;(s&&!o||u)&&n(h.contents())(a)}else{var c=d.$attr[i];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),h.attr(c,e)}};(u||f||d.translateDefault)&&o.$watch("interpolateParams",L,!0),o.$on("translateLanguageChanged",L);var j=r.$on("$translateChangeSuccess",L);h.text().length?m(d.translate?d.translate:""):d.translate&&m(d.translate),L(),o.$on("$destroy",j)}}}}function i(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?i(t.$parent):void 0}function s(t,e){"use strict";return{restrict:"A",priority:t.directivePriority(),link:function(n,a,r){var i,s,l={},u=function(){angular.forEach(i,function(e,i){e&&(l[i]=!0,n.translateNamespace&&"."===e.charAt(0)&&(e=n.translateNamespace+e),t(e,s,r.translateInterpolation,void 0,n.translateLanguage).then(function(t){a.attr(i,t)},function(t){a.attr(i,t)}))}),angular.forEach(l,function(t,e){i[e]||(a.removeAttr(e),delete l[e])})};o(n,r.translateAttr,function(t){i=t},u),o(n,r.translateValues,function(t){s=t},u),r.translateValues&&n.$watch(r.translateValues,u,!0),n.$on("translateLanguageChanged",u);var c=e.$on("$translateChangeSuccess",u);u(),n.$on("$destroy",c)}}}function o(t,e,n,a){"use strict";e&&("::"===e.substr(0,2)?e=e.substr(2):t.$watch(e,function(t){n(t),a()},!0),n(t.$eval(e)))}function l(t,e){"use strict";return{compile:function(n){var a=function(e){e.addClass(t.cloakClassName())},r=function(e){e.removeClass(t.cloakClassName())};return a(n),function(n,i,s){var o=r.bind(this,i),l=a.bind(this,i);s.translateCloak&&s.translateCloak.length?(s.$observe("translateCloak",function(e){t(e).then(o,l)}),e.$on("$translateChangeSuccess",function(){t(s.translateCloak).then(o,l)})):t.onReady(o)}}}}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=i(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function i(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?i(t.$parent):void 0}function c(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,n){n.$observe("translateLanguage",function(e){t.translateLanguage=e}),t.$watch("translateLanguage",function(){t.$broadcast("translateLanguageChanged")})}}}}function f(t,e){"use strict";var n=function(n,a,r,i){if(!angular.isObject(a)){var s=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};a=t(a)(s)}return e.instant(n,a,r,i)};return e.statefulFilter()&&(n.$stateful=!0),n}function g(t){"use strict";return t("translations")}return t.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],a.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],s.$inject=["$translate","$rootScope"],l.$inject=["$translate","$rootScope"],f.$inject=["$parse","$translate"],g.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(t),t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",a),a.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",s),s.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",l),l.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",u),u.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",c),c.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",f),f.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",g),g.displayName="$translationCache","pascalprecht.translate"}); "use strict";var googletag=googletag||{};googletag.cmd=googletag.cmd||[],angular.module("ngDfp",[]).constant("ngDfpUrl","//www.googletagservices.com/tag/js/gpt.js").provider("DoubleClick",["ngDfpUrl",function(e){var t={},n={},i={},o=null,r=!0,a={},s=!1,l=!1,u=!0;this._createTag=function(t){if(r){var n=document.createElement("script"),i="https:"===document.location.protocol,o=document.getElementsByTagName("script")[0];n.async=!0,n.type="text/javascript",n.src=(i?"https:":"http:")+e,o.parentNode.insertBefore(n,o),n.onreadystatechange=function(){"complete"==this.readyState&&t()},n.onload=t}},this._initialize=function(){var e=this;googletag.cmd.push(function(){angular.forEach(t,function(e,t){n[t]=googletag.defineSlot.apply(null,e).addService(googletag.pubads()),i[t]&&n[t].defineSizeMapping(i[t]);var o=e.getSlotTargeting();o&&angular.forEach(o,function(e,i){n[t].setTargeting(e.id,e.value)})}),angular.forEach(a,function(e,t){googletag.pubads().setTargeting(t,e)}),s&&googletag.pubads().collapseEmptyDivs(),l&&googletag.pubads().setCentering(!0),u&&googletag.pubads().enableSingleRequest(),googletag.enableServices(),googletag.pubads().addEventListener("slotRenderEnded",e._slotRenderEnded)})},this._slotRenderEnded=function(e){var n=t[e.slot.getSlotId().getDomId()].renderCallback;"function"==typeof n&&n(e)},this._refreshInterval=function(){return o},this.setRefreshInterval=function(e){return o=e,this},this.defineSlot=function(){var e=arguments;return e.getSize=function(){return this[1]},e.getSlotTargeting=function(){return!!this[3]&&this[3]},e.setRenderCallback=function(e){this.renderCallback=e},t[arguments[2]]=e,this},this.defineSizeMapping=function(){var e=arguments[0];return i[e]||(i[e]=[]),this.addSize=function(){return i[e].push([arguments[0],arguments[1]]),this},this},this.setEnabled=function(e){r=e},this.setPageTargeting=function(e,t){a[e]=t},this.collapseEmptyDivs=function(){s=!0},this.setCentering=function(e){l=e},this.setSingleRequest=function(e){u=e};var g=this;this.$get=["$q","$window","$interval",function(e,i,o){var r=e.defer();return g._createTag(function(){try{g._initialize(),null!==g._refreshInterval()&&o(function(){googletag.cmd.push(function(){i.googletag.pubads().refresh()})},g._refreshInterval()),r.resolve()}catch(e){r.reject(e)}}),{getAdSize:function(e){return r.promise.then(function(){var n=t[e];if(angular.isUndefined(n))throw"Slot "+e+" has not been defined. Define it using DoubleClickProvider.defineSlot().";return t[e][1]})},getSlot:function(e){return r.promise.then(function(){var n=t[e];if(angular.isUndefined(n))throw"Slot "+e+" has not been defined. Define it using DoubleClickProvider.defineSlot().";return t[e]})},runAd:function(e){googletag.cmd.push(function(){i.googletag.display(e)})},refreshAds:function(){var e=[];angular.forEach(arguments,function(t){e.push(n[t])}),googletag.cmd.push(function(){i.googletag.pubads().refresh(e)})}}}]}]).directive("ngDfpAdContainer",function(){return{restrict:"A",controller:["$element",function(e){function t(t){"visibility"===t?e.css("visibility","hidden"):e.hide()}function n(t){"visibility"===t?e.css("visibility","visible"):e.show()}this.$$setVisible=function(e,i){e?n(i):t(i)}}]}}).directive("ngDfpAd",["$timeout","$parse","$interval","DoubleClick",function(e,t,n,i){return{restrict:"A",template:'<div id="{{adId}}"></div>',require:"?^ngDfpAdContainer",scope:{adId:"@ngDfpAd",refresh:"@ngDfpAdRefresh",interval:"@ngDfpAdRefreshInterval",timeout:"@ngDfpAdRefreshTimeout"},replace:!0,link:function(t,o,r,a){t.$watch("adId",function(s){o.html("");var l=null,u=null;i.getSlot(s).then(function(g){var c=g.getSize();o.css("width",c[0]).css("height",c[1]),e(function(){i.runAd(s)}),a&&g.setRenderCallback(function(){angular.isDefined(r.ngDfpAdHideWhenEmpty)&&(0===o.find("iframe:not([id*=hidden])").map(function(){return this.contentWindow.document}).find("body").children().length?a.$$setVisible(!1,r.ngDfpAdHideWhenEmpty):a.$$setVisible(!0,r.ngDfpAdHideWhenEmpty))}),t.$watch("refresh",function(e){angular.isUndefined(e)||i.refreshAds(s)}),t.$watch("interval",function(e){angular.isUndefined(e)||(l=n(function(){i.refreshAds(s)},t.interval))}),t.$watch("timeout",function(n){angular.isUndefined(n)||(u=e(function(){i.refreshAds(s)},t.timeout))}),t.$on("$destroy",function(){n.cancel(l),e.cancel(u),l=null,u=null})})})}}}]); angular.module("ionic-pullup",[]).constant("ionPullUpFooterState",{COLLAPSED:"COLLAPSED",MINIMIZED:"MINIMIZED",EXPANDED:"EXPANDED"}).constant("ionPullUpFooterBehavior",{HIDE:"HIDE",EXPAND:"EXPAND"}).directive("ionPullUpFooter",[function(){return{restrict:"AE",scope:{state:"=?",onExpand:"&",onCollapse:"&",onMinimize:"&",allowMidRange:"="},controller:["$scope","$element","$attrs","$timeout","$rootScope","$window","$ionicPlatform","ionPullUpFooterState","ionPullUpFooterBehavior",function(t,e,n,o,i,a,s,r,l){function c(){g=e[0].closest("ion-tabs"),E=g&&g.classList.contains("tabs-bottom"),D=document.querySelector("ion-nav-bar .nav-bar-block[nav-bar=entering] > .bar-header"),I=g?g.querySelector(".tabs").offsetHeight:0,P=D?D.offsetHeight:0}function u(){v.height=v.maxHeight>0?v.maxHeight:a.innerHeight-P-m-I,e.css({height:v.height+"px"}),v.initialState==r.MINIMIZED?h():f()}function d(){o(function(){u()},300),e.css({transition:"none",padding:0})}function p(){v.lastPosY=0,e.css({"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)"}),e.css({transition:"300ms ease-in-out",padding:0}),t.onExpand(),t.state=r.EXPANDED}function f(){v.lastPosY=g?v.height-I:v.height-v.defaultHeight,e.css({"-webkit-transform":"translate3d(0, "+v.lastPosY+"px, 0)",transform:"translate3d(0, "+v.lastPosY+"px, 0)"}),t.onCollapse(),t.state=r.COLLAPSED}function h(){v.lastPosY=v.height,e.css({"-webkit-transform":"translate3d(0, "+v.lastPosY+"px, 0)",transform:"translate3d(0, "+v.lastPosY+"px, 0)"}),t.onMinimize(),t.state=r.MINIMIZED}var g,E,D,I,P,m=0,v={height:0,posY:0,lastPosY:0,defaultHeight:e[0].offsetHeight,maxHeight:parseInt(n.maxHeight,10)||0,initialState:n.initialState?n.initialState.toUpperCase():r.COLLAPSED,defaultBehavior:n.defaultBehavior?n.defaultBehavior.toUpperCase():l.EXPAND};this.$onInit=function(){o(function(){c(),e.css({transition:"300ms ease-in-out",padding:0}),g&&E&&e.css("bottom",I+"px")}),d()},this.setHandleHeight=function(t){m=t},this.getHeight=function(){return e[0].offsetHeight},this.getBackground=function(){return a.getComputedStyle(e[0]).background},this.getInitialState=function(){return v.initialState},this.getDefaultBehavior=function(){return v.defaultBehavior},this.onTap=function(e){e.gesture.srcEvent.preventDefault(),e.gesture.preventDefault(),o(function(){t.state==r.COLLAPSED?v.defaultBehavior==l.HIDE?t.state=r.MINIMIZED:t.state=r.EXPANDED:t.state==r.MINIMIZED?v.defaultBehavior==l.HIDE?t.state=r.COLLAPSED:t.state=r.EXPANDED:t.state=v.initialState==r.MINIMIZED?r.MINIMIZED:r.COLLAPSED})},this.onDrag=function(n){switch(n.gesture.srcEvent.preventDefault(),n.gesture.preventDefault(),n.type){case"dragstart":e.css("transition","none");break;case"drag":if(v.posY=Math.round(n.gesture.deltaY)+v.lastPosY,v.posY<0||v.posY>v.height)return;e.css({"-webkit-transform":"translate3d(0, "+v.posY+"px, 0)",transform:"translate3d(0, "+v.posY+"px, 0)"});break;case"dragend":e.css({transition:"300ms ease-in-out"}),t.allowMidRange?v.lastPosY=v.posY:o(function(){v.lastPosY>v.posY?t.state=r.EXPANDED:v.lastPosY<v.posY&&(t.state=v.initialState==r.MINIMIZED?r.MINIMIZED:r.COLLAPSED)})}};var C=t.$watch("state",function(e,n){if(void 0!==n&&e!=n){switch(e){case r.COLLAPSED:f();break;case r.EXPANDED:p();break;case r.MINIMIZED:h()}i.$broadcast("ionPullUp:tap",t.state,v.defaultBehavior)}});t.$on("$destroy",C),s.ready(function(){a.addEventListener("orientationchange",d),s.on("resume",d)})}],compile:function(t,e){e.defaultHeight&&t.css("height",parseInt(e.defaultHeight,10)+"px"),t.addClass("bar bar-footer")}}}]).component("ionPullUpContent",{require:{FooterController:"^ionPullUpFooter"},controller:["$element","$attrs",function(t,e){this.$onInit=function(){var n=this.FooterController,o=n.getHeight();t.css({display:"block","margin-top":o+"px",width:"100%"}),e.scroll&&"TRUE"==e.scroll.toUpperCase()&&t.css({"overflow-y":"scroll","overflow-x":"hidden"})}}]}).component("ionPullUpBar",{require:{FooterController:"^ionPullUpFooter"},controller:["$element",function(t){this.$onInit=function(){var e=this.FooterController,n=e.getHeight();t.css({display:"flex",height:n+"px",position:"absolute",right:"0",left:"0"})}}]}).directive("ionPullUpTrigger",["$ionicGesture",function(t){return{restrict:"AE",require:"^ionPullUpFooter",link:function(e,n,o,i){t.on("tap",i.onTap,n),t.on("drag dragstart dragend",i.onDrag,n)}}}]).component("ionPullUpHandle",{require:{FooterController:"^ionPullUpFooter"},controller:["$scope","$element","$attrs","ionPullUpFooterState","ionPullUpFooterBehavior","$ionicGesture","$ionicPlatform","$timeout","$window",function(t,e,n,o,i,a,s,r,l){function c(t,n){f&&h&&(e.find("i").removeClass([f,h].join(" ")),t==o.COLLAPSED?n==i.HIDE?e.find("i").addClass(h):e.find("i").addClass(f):t==o.MINIMIZED?(i.HIDE,e.find("i").addClass(f)):e.find("i").addClass(h))}function u(){r(function(){e.css("left",(l.innerWidth-p)/2+"px")},300)}var d=parseInt(n.height,10)||25,p=parseInt(n.width,10)||100,f=n.iconExpand,h=n.iconCollapse;e.css({display:"block","background-color":"inherit",position:"absolute",top:1-d+"px",left:(l.innerWidth-p)/2+"px",height:d+"px",width:p+"px","text-align":"center"}).append("<i>"),this.$onInit=function(){var t=this.FooterController;a.on("tap",t.onTap,e),a.on("drag dragstart dragend",t.onDrag,e),t.setHandleHeight(d),c(t.getInitialState(),t.getDefaultBehavior()),u()},t.$on("ionPullUp:tap",function(t,e,n){c(e,n)}),s.ready(function(){l.addEventListener("orientationchange",u),s.on("resume",u)})}]}); "use strict";function configure(a,o){a.ready(function(){o.cordova&&o.cordova.plugins.Keyboard&&(cordova.plugins.Keyboard.hideKeyboardAccessoryBar(!0),cordova.plugins.Keyboard.disableScroll(!0)),o.StatusBar&&StatusBar.styleDefault()})}angular.module("appticles",["ionic","appticles.base","appticles.nav","appticles.posts","appticles.pages"]).run(configure),configure.$inject=["$ionicPlatform","$window"]; "use strict";function pagesModule(e,a){e.state("app.nav.page-details",{url:"/page/{pageId:[a-zA-Z0-9]+}",views:{"postList@app.nav":{controller:"PageDetailsController as pageVm",templateUrl:"app/pages/details/page-details.template.html"}}})}angular.module("appticles.pages",["ui.router","appticles.api","appticles.configuration","appticles.htmlFilter","appticles.canonical"]).config(pagesModule),pagesModule.$inject=["$stateProvider","$urlRouterProvider"]; "use strict";function postsModule(t,e){t.state("app.nav.category",{url:"/category/:categorySlug/{categoryId:[a-zA-Z0-9]+}",views:{"postList@app.nav":{controller:"PostListController as listVm",templateUrl:"app/posts/category/post-list.template.html"}}}).state("app.nav.latest",{url:"/",views:{"postList@app.nav":{controller:"LatestController as latestVm",templateUrl:"app/posts/latest/latest.template.html"}}}).state("app.nav.post",{url:"/article/{postId:[a-zA-Z0-9]+}",views:{"postList@app.nav":{controller:"PostDetailsController as postDetailsVm",templateUrl:"app/posts/details/post-details.template.html"}}}).state("app.nav.postFromCategory",{url:"/category/:categorySlugId/article/{postId:[a-zA-Z0-9]+}",views:{"postList@app.nav":{controller:"PostDetailsController as postDetailsVm",templateUrl:"app/posts/details/post-details.template.html"}}}).state("app.nav.post.comments",{url:"/comments",views:{"postList@app.nav":{controller:"CommentsController as commentsVm",templateUrl:"app/posts/comments/comment-list.template.html"}}}).state("app.nav.postFromCategory.comments",{url:"/comments",views:{"postList@app.nav":{controller:"CommentsController as commentsVm",templateUrl:"app/posts/comments/comment-list.template.html"}}}),e.otherwise("/")}angular.module("appticles.posts",["ui.router","ionic-pullup","appticles.api","appticles.validation","appticles.configuration","appticles.canonical","appticles.ads","appticles.htmlFilter"]).config(postsModule),postsModule.$inject=["$stateProvider","$urlRouterProvider"]; "use strict";function navModule(a,e){a.state("app.nav",{url:"",abstract:!0,views:{"navView@app":{templateUrl:"app/layout/nav/nav.template.html"},"sideNavView@app":{controller:"SideNavController as navSideVm",templateUrl:"app/layout/nav/side-nav/side-nav.template.html"}}}),e.otherwise("/")}angular.module("appticles.nav",["ui.router","appticles.api","appticles.i18n","appticles.configuration"]).config(navModule),navModule.$inject=["$stateProvider","$urlRouterProvider"]; "use strict";function baseModule(e){e.state("app",{url:"",abstract:!0,templateUrl:"app/layout/shell/shell.template.html"})}angular.module("appticles.base",["ui.router","appticles.api","appticles.configuration"]).config(baseModule),baseModule.$inject=["$stateProvider"]; "use strict";angular.module("appticles.ads",["ngDfp","appticles.configuration"]); "use strict";angular.module("appticles.api",["appticles.configuration"]); "use strict";angular.module("appticles.canonical",[]); "use strict";angular.module("appticles.i18n",["appticles.configuration","pascalprecht.translate"]); "use strict";angular.module("appticles.validation",[]); "use strict";angular.module("appticles.configuration",[]); "use strict";function AppticlesAPI(t,e,a){var c={},n=a.export;return Object.keys(n).forEach(function(t){var a=n[t];Object.keys(a).forEach(function(n){c[camelCase([n,t])]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.callback="JSON_CALLBACK",e.jsonp(a[n],{method:"GET",params:t})}})}),c}angular.module("appticles.api").factory("AppticlesAPI",AppticlesAPI),AppticlesAPI.$inject=["$log","$http","configuration"];var capitalize=function(t){return"string"!=typeof t||""==t?"":""+t.charAt(0).toUpperCase()+t.slice(1)},camelCase=function(t){return!angular.isArray(t)||t.some(function(t){return"string"!=typeof t})?"":[t[0],t.slice(1).map(capitalize)].join("")}; "use strict";function AppticlesCanonical(t){function e(t){angular.isString(t)&&0!=t.length||a();var e=i();e?e.getAttribute("href")!==t&&e.setAttribute("href",t):n(t)}function n(e){if(angular.isString(e)){var n=t[0].createElement("link");n.setAttribute("rel","canonical"),n.setAttribute("href",e),t[0].head.appendChild(n)}}function i(){return t[0].querySelector('[rel="canonical"]')}function a(){var t=i();t&&t.remove()}return{set:e}}angular.module("appticles.canonical").factory("AppticlesCanonical",AppticlesCanonical),AppticlesCanonical.$inject=["$document"]; "use strict";function AppticlesTranslateLoader(e,t,a,r){var n=r.translate.path;return function(){var e=a.defer();return t.get(n).then(function(t){return e.resolve(t.data)}),e.promise}}function AppticlesTranslateConfig(e){e.useLoader("AppticlesTranslateLoader").useSanitizeValueStrategy("escape").determinePreferredLanguage()}angular.module("appticles.i18n").factory("AppticlesTranslateLoader",AppticlesTranslateLoader).config(AppticlesTranslateConfig),AppticlesTranslateLoader.$inject=["$log","$http","$q","configuration"],AppticlesTranslateConfig.$inject=["$translateProvider"]; "use strict";function AppticlesValidation(){function a(a){return!!(angular.isDefined(a.id)&&/^[a-z0-9]+$/i.test(a.id)&&angular.isDefined(a.order)&&/^\d+$/.test(a.order)&&angular.isDefined(a.name)&&angular.isString(a.name)&&angular.isDefined(a.name_slug)&&angular.isString(a.name_slug)&&(angular.isUndefined(a.parent_id)||/^[a-z0-9]+$/i.test(a.parent_id)))&&a}function i(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.category)){var i=a.data.category;if(angular.isDefined(i.id)&&/^[a-z0-9]+$/i.test(i.id)&&angular.isDefined(i.name)&&angular.isString(i.name)&&angular.isDefined(i.name_slug)&&angular.isString(i.name_slug)&&(angular.isUndefined(i.parent_id)||/^[a-z0-9]+$/i.test(i.parent_id)))return i}return{error:"Invalid data"}}function n(i){if(angular.isObject(i)&&!angular.isArray(i)&&angular.isDefined(i.data)&&angular.isDefined(i.data.categories)){if(0==i.data.categories.length)return[];var n=i.data.categories.map(a);if(n.indexOf(!1)===-1)return n}return{error:"Invalid data"}}function e(a){return!(!(angular.isDefined(a.id)&&/^[a-z0-9]+$/i.test(a.id)&&angular.isDefined(a.title)&&angular.isString(a.title)&&angular.isDefined(a.author)&&angular.isString(a.author)&&angular.isDefined(a.link)&&angular.isString(a.link)&&angular.isDefined(a.date)&&angular.isString(a.date)&&angular.isDefined(a.timestamp)&&/^\d+$/.test(a.timestamp)&&angular.isDefined(a.description)&&angular.isString(a.description)&&angular.isDefined(a.content)&&angular.isString(a.content)&&angular.isDefined(a.categories)&&angular.isArray(a.categories))||!angular.isUndefined(a.comment_status)&&["open","closed","disabled"].indexOf(a.comment_status)===-1||!angular.isUndefined(a.no_comments)&&!/^\d+$/.test(a.no_comments)||!angular.isUndefined(a.show_avatars)&&!/^\d+$/.test(a.show_avatars)||!angular.isUndefined(a.require_name_email)&&!/^\d+$/.test(a.require_name_email))&&a}function r(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.article)){var i=e(a.data.article);if(i!==!1)return i}return{error:"Invalid data"}}function t(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.articles)){if(0==a.data.articles.length)return[];var i=a.data.articles.map(e);if(i.indexOf(!1)===-1)return i}return{error:"Invalid data"}}function s(a){return!!(angular.isDefined(a.id)&&/^[a-z0-9]+$/i.test(a.id)&&angular.isDefined(a.order)&&/^\d+$/.test(a.order)&&angular.isDefined(a.title)&&angular.isString(a.title)&&angular.isDefined(a.has_content)&&/^\d+$/.test(a.has_content)&&angular.isDefined(a.parent_id)&&/^[a-z0-9]+$/i.test(a.parent_id))&&a}function d(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.page)){var i=a.data.page;if(angular.isDefined(i.id)&&/^[a-z0-9]+$/i.test(i.id)&&angular.isDefined(i.parent_id)&&/^[a-z0-9]+$/i.test(i.parent_id)&&angular.isDefined(i.title)&&angular.isString(i.title)&&angular.isDefined(i.has_content)&&/^\d+$/.test(i.has_content)&&angular.isDefined(i.content)&&angular.isString(i.content))return i}return{error:"Invalid data"}}function u(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.pages)){if(0==a.data.pages.length)return[];var i=a.data.pages.map(s);if(i.indexOf(!1)===-1)return i}return{error:"Invalid data"}}function l(a){return!!(angular.isDefined(a.id)&&/^[a-z0-9]+$/i.test(a.id)&&angular.isDefined(a.author)&&angular.isString(a.author)&&angular.isDefined(a.author_url)&&angular.isString(a.author_url)&&angular.isDefined(a.avatar)&&angular.isString(a.avatar)&&angular.isDefined(a.date)&&angular.isString(a.date)&&angular.isDefined(a.content)&&angular.isString(a.content)&&angular.isDefined(a.article_id)&&/^[a-z0-9]+$/i.test(a.article_id))&&a}function g(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.data)&&angular.isDefined(a.data.comments)){if(0==a.data.comments.length)return[];var i=a.data.comments.map(l);if(i.indexOf(!1)===-1)return i}return{error:"Invalid data"}}function f(a){if(angular.isObject(a)&&!angular.isArray(a)&&angular.isDefined(a.articleId)&&/^[a-z0-9]+$/i.test(a.articleId)&&angular.isDefined(a.comment)&&angular.isString(a.comment)&&angular.isDefined(a.code)&&angular.isString(a.code)){if(!angular.isDefined(a.require_name_email)||1!==Number(a.require_name_email))return a;if(angular.isDefined(a.author)&&angular.isString(a.author)&&angular.isDefined(a.email)&&angular.isString(a.email))return a}return{error:"Invalid data"}}return{validateCategories:n,validateOneCategories:i,validatePosts:t,validateOnePosts:r,validatePages:u,validateOnePages:d,validateComments:g,validateInsertComments:f}}angular.module("appticles.validation").factory("AppticlesValidation",AppticlesValidation); "use strict";function AppticlesAdsConfig(e,n,i){var o=e.$get(),d=i.$get(o).googleAds||null;if(d&&angular.isDefined(d.phone.networkCode)&&angular.isDefined(d.phone.adUnitCode)&&angular.isDefined(d.phone.sizes)){var r="/"+d.phone.networkCode+"/"+d.phone.adUnitCode,s=o.innerWidth-42,t=o.innerHeight,a=d.phone.sizes,l=a.filter(function(e){return e[0]<=s&&e[1]<=t});n.defineSlot(r,l,"div-dfp-ads");var f=1e3*(angular.isDefined(d.adsInterval)?Number(d.adsInterval):30);n.setRefreshInterval(f)}else n.setEnabled(!1)}angular.module("appticles.ads").config(AppticlesAdsConfig),AppticlesAdsConfig.$inject=["$windowProvider","DoubleClickProvider","configurationProvider"]; "use strict";function TrustHtmlFilter(t){return function(r){if(angular.isString(r))return t.trustAsHtml(r)}}angular.module("appticles.htmlFilter",[]).filter("TrustHtmlFilter",TrustHtmlFilter),TrustHtmlFilter.$inject=["$sce"]; "use strict";function _classCallCheck(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}var PageDetails=function a(e,t,n,i,l,s,o,c){var r=this;_classCallCheck(this,a),this.page=null,this.contentLoaded=!1;var g=i.pageId,p=function(a){var e=t.validateOnePages(a);return e.error?(l.go("app.nav.latest"),s.reject("error fetching page details")):s.when(e)},d=function(a){r.page=a,angular.isDefined(r.page.link)&&n.set(r.page.link)};o.show(),e.findOnePages({pageId:g}).then(p).then(d).finally(function(){o.hide(),r.contentLoaded=!0}).catch(c.error)};PageDetails.$inject=["AppticlesAPI","AppticlesValidation","AppticlesCanonical","$stateParams","$state","$q","$ionicLoading","$log"],angular.module("appticles.pages").controller("PageDetailsController",PageDetails); "use strict";function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}var PostList=function t(o,a,s,e,r,n,i,c){var l=this;_classCallCheck(this,t),this.posts=[],this.category=null,this.contentLoaded=!1;var p=e.categoryId;if(0===Number(p))return void r.go("app.nav.latest");var g=function(t){var o=a.validatePosts(t.posts),s=a.validateOneCategories(t.category);if(o.error||s.error)return r.go("app.nav.latest"),n.reject("error fetching posts or category doesn't exist");var e={posts:o,category:s};return n.all(e)},d=function(t){l.posts=t.posts,l.hasArticles=angular.copy(l.posts).length>0,l.category=t.category,s.set(l.category.link)};i.show(),function(){var t={posts:o.findPosts({categoryId:p,limit:10}),category:o.findOneCategories({categoryId:p})};return n.all(t)}().then(g).then(d).finally(function(){i.hide(),l.contentLoaded=!0}).catch(c.error)};PostList.$inject=["AppticlesAPI","AppticlesValidation","AppticlesCanonical","$stateParams","$state","$q","$ionicLoading","$log"],angular.module("appticles.posts").controller("PostListController",PostList); "use strict";function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}var Comments=function t(o,e,n,s,a,r,i,c){function m(){return d||!p?n.go("app.nav.post",{postId:this.postId}):n.go("app.nav.postFromCategory",{categorySlug:p,postId:this.postId})}var l=this;_classCallCheck(this,t),this.postId=s.postId,this.commentStatus=null,this.requireNameEmail=0,this.contentLoaded=!1;var d=angular.isUndefined(s.categorySlugId)||0===Number(s.categorySlugId),p=s.categorySlugId||void 0;this.goBack=m;var u=function(t){var o=e.validateOnePosts(t.post),s=e.validateComments(t.comments);if(o.error||s.error)return n.go("app.nav.post",{postId:l.postId}),i.reject("error fetching post or comments");var a={comments:s,post:o};return i.when(a)},g=function(t){var o=t.post;if(l.commentStatus=o.comment_status||"disabled","disabled"===l.commentStatus)return void n.go("app.nav.post",{postId:l.postId});l.comments=t.comments,angular.forEach(l.comments,function(t){isNaN(parseInt(t.id))||(t.id=Number(t.id))}),l.requireNameEmail=Number(o.require_name_email)||0};a.show(),function(){var t={post:o.findOnePosts({articleId:l.postId}),comments:o.findComments({articleId:l.postId})};return i.all(t)}().then(u).then(g).finally(function(){a.hide(),l.contentLoaded=!0}).catch(c.error)};Comments.$inject=["AppticlesAPI","AppticlesValidation","$state","$stateParams","$ionicLoading","$ionicScrollDelegate","$q","$log"],angular.module("appticles.posts").controller("CommentsController",Comments); "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function t(t,e){for(var s=0;s<e.length;s++){var o=e[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,s,o){return s&&t(e.prototype,s),o&&t(e,o),e}}(),PostDetails=function(){function t(e,s,o,i,a,n,r,l,c,u,h,p){function d(){return this.fromLatest?n.go("app.nav.latest"):n.go("app.nav.category",{categorySlug:this.category.name_slug,categoryId:this.category.id})}function g(t){this.deltaY=this.lastScrollY?l.getScrollPosition().top-this.lastScrollY:0,this.deltaY>0&&1==this.buttonsVisible?(this.buttonsVisible=!1,c.$applyAsync()):this.deltaY<0&&0==this.buttonsVisible&&(this.buttonsVisible=!0,c.$applyAsync()),this.lastScrollY=l.getScrollPosition().top}function f(){this.buttonsVisible=!this.buttonsVisible||this.buttonsVisible,c.$applyAsync()}var m=this;_classCallCheck(this,t),this.contentLoaded=!1,this.post=null,this.category=null,this.fromLatest=angular.isUndefined(a.categorySlugId)||0===Number(a.categorySlugId),this.hasSocialNetworks=this.checkHasSocialNetworks(i.socialMedia),this.postCover=i.defaultCover,this.directiveApi={data:null};var b=a.postId,y=a.categorySlugId||void 0;this.buttonsVisible=!0,this.handleOnScroll=g,this.handleOnTap=f,this.goBack=d;var v=function(t){var e=s.validateOnePosts(t);return e.error?(n.go("app.nav.latest"),u.reject("error fetching post details")):(m.post=e,u.when({categories:e.categories}))},_=function(t){return(angular.isUndefined(y)||0===Number(y))&&(y=t.categories[0]),e.findOneCategories({categoryId:y})},k=function(t){var e=s.validateOneCategories(t);if(e.error||!m.post.categories.includes(e.id))return n.go("app.nav.latest"),u.reject("error fetching category details");m.category=e},C=function(){m.directiveApi.data={id:m.post.id,title:r.encodeURIComponent(m.post.title),link:m.post.link,no_comments:Number(m.post.no_comments),comment_status:m.post.comment_status||"disabled",has_comments:Number("open"==m.post.comment_status||"closed"==m.post.comment_status&&m.post.no_comments>0),require_name_email:m.post.require_name_email||0,from_latest:Number(m.fromLatest),category_id:m.category.id},m.post.link&&o.set(m.post.link)};h.show(),e.findOnePosts({articleId:b}).then(v).then(_).then(k).then(C).finally(function(){h.hide(),m.contentLoaded=!0}).catch(p.error)}return _createClass(t,[{key:"checkHasSocialNetworks",value:function(t){var e=0;return!(!angular.isObject(t)||angular.isArray(t))&&(Object.keys(t).forEach(function(s){t[s]===!1&&e++}),e<Object.keys(t).length)}}]),t}();PostDetails.$inject=["AppticlesAPI","AppticlesValidation","AppticlesCanonical","configuration","$stateParams","$state","$window","$ionicScrollDelegate","$scope","$q","$ionicLoading","$log"],angular.module("appticles.posts").controller("PostDetailsController",PostDetails); "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Latest=function t(e,s,o,i,a,r){var n=this;_classCallCheck(this,t),this.posts=[],this.categories=[];var c=function(t){var e=void 0,o=void 0;if(e=s.validatePosts(t.posts),o=s.validateCategories(t.categories),e.error||o.error)return i.reject("error fetching posts or categories");var a={posts:e,categories:o};return i.when(a)},l=function(t){n.posts=t.posts,n.categories=t.categories};o.set(),a.show(),function(){var t={categories:e.findCategories({withArticles:0}),posts:e.findPosts({limit:9})};return i.all(t)}().then(c).then(l).finally(function(){a.hide(),n.contentLoaded=!0}).catch(r.error)};Latest.$inject=["AppticlesAPI","AppticlesValidation","AppticlesCanonical","$q","$ionicLoading","$log"],angular.module("appticles.posts").controller("LatestController",Latest); "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var SideNav=function e(t,a,i,s,n,r,o){function c(){this.websiteUrl&&r("TEXTS.WEBSITE_CONFIRM").then(p)}function l(){this.menuItem="categories"}function g(){this.menuItem="pages"}var h=this;_classCallCheck(this,e),this.menuItem="root",this.hasCategories=!1,this.hasPages=!1,this.contentLoaded=!1,this.websiteUrl=i.websiteUrl||"",this.openCategories=l,this.openPages=g,this.openDesktopWebsite=c;var f=function(e){var t=a.validateCategories(e.categories),i=a.validatePages(e.pages);if(i.error||t.error)return s.reject("error fetching categories or pages");var n={categories:t,pages:i};return s.all(n)},u=function(e){h.hasCategories=e.categories.length>0,h.hasPages=e.pages.length>0},p=function(e){confirm(e)&&n.open(h.websiteUrl,"_self","location=yes")};(function(){var e={categories:t.findCategories({page:1,rows:1,withArticles:0}),pages:t.findPages({page:1,rows:1})};return s.all(e)})().then(f).then(u).finally(function(){h.contentLoaded=!0}).catch(o.error)};SideNav.$inject=["AppticlesAPI","AppticlesValidation","configuration","$q","$window","$translate","$log"],angular.module("appticles.nav").controller("SideNavController",SideNav); "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AppticlesInsertAds(){return{restrict:"AE",scope:{content:"="},templateUrl:"app/core/appticles-ads/ads.template.html",controller:AdsController,controllerAs:"adsVm",bindToController:!0}}var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();angular.module("appticles.ads").directive("appticlesAds",AppticlesInsertAds);var AdsController=function(){function e(t,n,r){var o=this;if(_classCallCheck(this,e),this.hasAds=!!angular.isDefined(r.googleAds),this.$document=n,this.hasAds){var a=n[0].createElement("div");a.innerHTML=this.content.replace(/\n/g,"");for(var s=a.childNodes.length,c=[],i=0;i<s;i++)c.push(a.childNodes[i]);var l=this._replaceTextNodes(c),u=4;l.length>4&&(u=this._createRandomPosition(l.length)),this.content1="",l.slice(0,u).map(function(e){o.content1+=e.outerHTML}),this.content2="",l.slice(u+1).map(function(e){o.content2+=e.outerHTML})}else this.content1=this.content}return _createClass(e,[{key:"_createRandomPosition",value:function(e){return 4+Math.floor(Math.random()*e/2)}},{key:"_replaceTextNodes",value:function(e){var t=this;return e.map(function(e){if(3==e.nodeType){var n=t.$document[0].createElement("span");n.appendChild(e),e=n}return e})}}]),e}();AdsController.$inject=["$log","$document","configuration"]; "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AppticlesAddComment(){return{restrict:"AE",controller:AddCommentController,scope:{postId:"<",requireNameEmail:"<"},controllerAs:"addCommentVm",bindToController:!0,templateUrl:"app/posts/add-comment/appticles-add-comment.template.html"}}angular.module("appticles.posts").directive("appticlesAddComment",AppticlesAddComment);var AddCommentController=function t(e,a,o,n,i,s,m,r){function l(){if(this.submitted!==!0){this.submitted=!0;var t={articleId:this.postId,author:this.commentForm.author.$modelValue,email:this.commentForm.email.$modelValue,comment:this.commentForm.content.$modelValue,code:c};angular.isDefined(this.requireNameEmail)&&(t.require_name_email=this.requireNameEmail);var o=a.validateInsertComments(t);angular.isUndefined(o.error)&&m.when(o).then(e.insertComments).then(p).then(u)}}var d=this;_classCallCheck(this,t),this.submitted=!1,this.submitComment=l;var c=o.commentsToken,p=function(t){var e=void 0,a=void 0,o=void 0;if(t.data){var n=t.data;0!==n.status?e=r("translate")("FORMS.AWAITING_MODERATION"):(a=n.message,o=r("translate")("FORMS.SUBMIT_ERROR"),e="<div>\n <p>"+o+"</p>\n <p>"+a+"</p>\n </div>")}else o=r("translate")("FORMS.SUBMIT_ERROR"),e="<div>\n <p>"+o+"</p>\n </div>";var s={popup:i.alert({okText:"OK",template:e,cssClass:"popup-text",okType:"popup-button button-custom"}),status:t.data?t.data.status:0};return m.all(s)},u=function(t){d.submitted=!1,0!==t.status&&(d.author="",d.email="",d.content="",d.commentForm.$setPristine(),d.commentForm.$setUntouched())}};AddCommentController.$inject=["AppticlesAPI","AppticlesValidation","configuration","$stateParams","$ionicPopup","$scope","$q","$filter"]; "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AppticlesSlides(){return{restrict:"AE",scope:{posts:"=",categories:"=",type:"@"},controller:SlidesController,templateUrl:function(t,e){return e&&e.type&&("latest"===e.type||"category"===e.type)?"app/posts/"+e.type+"/appticles-slides-"+e.type+".template.html":"app/posts/latest/appticles-slides-latest.template.html"},controllerAs:"slidesVm",bindToController:!0}}var _createClass=function(){function t(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,s,i){return s&&t(e.prototype,s),i&&t(e,i),e}}();angular.module("appticles.posts").directive("appticlesSlides",AppticlesSlides);var SlidesController=function(){function t(e,s,i,o,r,l){function n(){if(this.posts.length>0){var t=this.posts[this.posts.length-1].slice(-1).pop();e.findPosts({lastTimestamp:t.timestamp,limit:"auto"==c?9:10}).then(p).then(u).catch(l.error)}}var a=this;_classCallCheck(this,t),this.sliderOptions={initialSlide:0,direction:"horizontal",speed:300},this.appCover=i.defaultCover||"",this.appLogo=i.logo||"",this.hasCover=this.type&&"latest"==this.type,this.categories.constructor===Array&&this.categories.length>0&&(this.categories=this.buildCategoriesList(this.categories));var c=i.articlesPerCard||"auto";this.initializeCoverPost(),this.posts=this.combineIntoGroupsOf(c,this.posts),this.morePostsAvailable=this.posts.length>0,this.loadMorePosts=n;var p=function(t){var e=s.validatePosts(t);return e.error?o.reject("error loading more posts"):o.when(e)},u=function(t){t.length>0?a.posts=a.posts.concat(a.combineIntoGroupsOf(c,t)):a.morePostsAvailable=!1};r.$on("$ionicSlides.sliderInitialized",function(t,e){a.slider=e.slider,a.slider.on("slideChangeStart",function(){a.slider.activeIndex==a.posts.length-2&&a.morePostsAvailable&&a.loadMorePosts()})})}return _createClass(t,[{key:"initializeCoverPost",value:function(){this.coverPost={},this.hasCover&&this.posts.length>0&&(this.coverPost=this.posts.splice(0,1)[0])}},{key:"combineIntoGroupsOf",value:function(t,e){for(var s=[],i=0,o=angular.isNumber(t)?t:2;i<e.length;)s.push(e.slice(i,i+o)),i+=o,"auto"==t&&(o=1==o?2:1);return s}},{key:"buildCategoriesList",value:function(t){return t.reduce(function(t,e){return t[e.id]=e.name,t},{})}}]),t}();SlidesController.$inject=["AppticlesAPI","AppticlesValidation","configuration","$q","$scope","$log"]; "use strict";function _classCallCheck(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function AppticlesSocial(){return{restrict:"AE",scope:{directiveApi:"="},controller:SocialNetworksController,controllerAs:"socialNetworksVm",bindToController:!0}}angular.module("appticles.posts").directive("appticlesSocial",AppticlesSocial);var SocialNetworksController=function o(i,t,e,a,s){function l(){if(this.post.from_latest)return s.go("app.nav.post.comments",{postId:this.post.id});s.go("app.nav.postFromCategory.comments",{categorySlugId:this.post.category_id,postId:this.post.id})}var c=this;_classCallCheck(this,o),this.modal=null,this.post=this.directiveApi.data,this.hasFacebook=!!angular.isDefined(t.socialMedia.facebook)&&t.socialMedia.facebook,this.hasTwitter=!!angular.isDefined(t.socialMedia.twitter)&&t.socialMedia.twitter,this.hasGoogle=!!angular.isDefined(t.socialMedia.google)&&t.socialMedia.google,this.openComments=l,e.fromTemplateUrl("app/posts/details/social/appticles-social.template.html",{scope:a,backdropClickToClose:!0}).then(function(o){c.modal=o,c.directiveApi.triggerModal=r,c.directiveApi.modalTriggered=!1});var r=function(){c.modal.show(),c.directiveApi.modalTriggered=!0};a.$on("modal.hidden",function(){c.directiveApi.modalTriggered=!1}),a.$on("$stateChangeStart",function(){c.modal.remove()})};SocialNetworksController.$inject=["AppticlesAPI","configuration","$ionicModal","$scope","$state"]; "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AppticlesNestedCategories(){return{restrict:"AE",scope:{menuItem:"="},templateUrl:"app/layout/nav/side-nav/categories/nested-categories.template.html",controller:NestedCategoriesController,controllerAs:"nestedCategoriesVm",bindToController:!0}}angular.module("appticles.nav").directive("appticlesNestedCategories",AppticlesNestedCategories);var NestedCategoriesController=function e(t,i,o,a,r,n,s,c,l,g){function d(){this.categories.length>0&&(f++,t.findCategories({withArticles:1,limit:1,page:f,rows:C}).then(m).then(A))}function p(e){n.toggleRight(!1),s.go("app.nav.category",{categorySlug:e.name_slug,categoryId:e.id})}function u(){this.menuItem="root"}var h=this;_classCallCheck(this,e),this.categories=[],this.contentLoaded=!1,this.goBack=u,this.openContent=p,this.loadMoreCategories=d,this.moreCategoriesAvailable=!1;var f=1,C=10,m=function(e){var t=i.validateCategories(e);if(angular.isDefined(t.error))return a.reject("error fetching categories");var o={categories:t,pagination:angular.isDefined(e.data.page)};return a.when(o)},v=function(e){e.categories&&e.categories.length>0&&(h.categories=e.categories.filter(function(e){return 0!=e.id})),e.pagination&&(h.moreCategoriesAvailable=!0)},A=function(e){e.categories&&e.categories.length>0?h.categories=h.categories.concat(e.categories):h.moreCategoriesAvailable=!1,l.$broadcast("scroll.infiniteScrollComplete")};t.findCategories({withArticles:1,limit:1,page:f,rows:C}).then(m).then(v).finally(function(){h.contentLoaded=!0}).catch(g.error)};NestedCategoriesController.$inject=["AppticlesAPI","AppticlesValidation","configuration","$q","$ionicScrollDelegate","$ionicSideMenuDelegate","$state","$filter","$scope","$log"]; "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AppticlesNestedPages(){return{restrict:"AE",scope:{menuItem:"="},templateUrl:"app/layout/nav/side-nav/pages/nested-pages.template.html",controller:NestedPagesController,controllerAs:"nestedPagesVm",bindToController:!0}}var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();angular.module("appticles.nav").directive("appticlesNestedPages",AppticlesNestedPages);var NestedPagesController=function(){function e(t,n,r,a,i,s,l,o,c){function u(e){i.scrollTop(),this.currentParent=e,this.pages=this.getChildPagesByParentId(e.id)}function d(){if(0===this.currentParent.id)this.menuItem="root";else{var e=this.getPageById(this.currentParent.id);if(e!==!1){if(0==e.parent_id)this.currentParent={id:0,title:o("translate")("LINKS.GO_TO")};else{var t=this.getPageById(e.parent_id);t!==!1&&(this.currentParent=t)}this.pages=this.getChildPagesByParentId(this.currentParent.id)}}}function g(e){if(!e.has_content&&e.has_children)return void this.openChildPages(e);s.toggleRight(!1),l.go("app.nav.page-details",{pageId:e.id})}var h=this;_classCallCheck(this,e),this.allPages=[],this.pages=[],this.contentLoaded=!1,this.currentParent={id:0,title:o("translate")("LINKS.GO_TO")},this.openChildPages=u,this.goBack=d,this.openContent=g;var p=function(e){var t=n.validatePages(e);return angular.isDefined(t.error)?a.reject("error fetching pages"):a.when(t)},f=function(e){e.length>0&&(h.allPages=h.checkChildren(e),h.pages=h.getChildPagesByParentId(0))};t.findPages().then(p).then(f).finally(function(){h.contentLoaded=!0}).catch(c.error)}return _createClass(e,[{key:"getPageById",value:function(e){var t=this.allPages.filter(function(t){return t.id===e});return t.length>0&&t[0]}},{key:"getChildPagesByParentId",value:function(e){return this.allPages.filter(function(t){return t.parent_id===e})}},{key:"checkChildren",value:function(e){return e.map(function(t){var n=e.filter(function(e){return e.parent_id==t.id});return t.has_children=n.length>0,t})}}]),e}();NestedPagesController.$inject=["AppticlesAPI","AppticlesValidation","configuration","$q","$ionicScrollDelegate","$ionicSideMenuDelegate","$state","$filter","$log"]; "use strict";function globalConfigurationProvider(){function i(i){return i.appticles.config||{}}i.$inject=["$window"],this.$get=i}angular.module("appticles.configuration").provider("configuration",globalConfigurationProvider); "use strict";var initializeConfiguration=function(n){var t=angular.injector(["ng"]),r=t.get("$window");return r.appticles={config:n.data},r.appticles},boostrapApplication=function(){angular.element(document).ready(function(){angular.bootstrap(document,["appticles"])})},fetchConfig=function(){var n=angular.injector(["ng"]),t=n.get("$http"),r=n.get("$window");return t.get(""+r.__APPTICLES_BOOTSTRAP_DATA__.CONFIG_PATH)},errorHandler=function(n){angular.injector(["ng"]).get("$log").error("Application bootstrap error: ",n)};fetchConfig().then(initializeConfiguration).then(boostrapApplication).catch(errorHandler); angular.module("appticles").run(["$templateCache",function(t){t.put("app/core/appticles-ads/ads.template.html",'<div data-ng-bind-html="adsVm.content1 | TrustHtmlFilter"></div><div ng-if="adsVm.hasAds" class="dfp-ad" data-ng-dfp-ad-container><div data-ng-dfp-ad="div-dfp-ads" data-ng-dfp-ad-hide-when-empty></div><div class="translation"><span translate="TEXTS.GOOGLE_ADS"></span></div></div><div data-ng-bind-html="adsVm.content2 | TrustHtmlFilter"></div>'),t.put("app/layout/nav/nav.template.html",'<ion-view cache-view="false"><ion-nav-bar class="bar bar-clear"></ion-nav-bar><ion-nav-view name="postList"></ion-nav-view></ion-view>'),t.put("app/layout/shell/shell.template.html",'<ion-side-menus enable-menu-with-back-views="true"><ion-side-menu-content><ion-nav-view name="navView"></ion-nav-view></ion-side-menu-content><ion-side-menu side="right"><ion-nav-view name="sideNavView"></ion-nav-view></ion-side-menu></ion-side-menus>'),t.put("app/pages/details/page-details.template.html",'<ion-view cache-view="false" class="page-ctx"><ion-nav-buttons side="right"><button class="button icon ion-android-close page__close-btn page__close-btn-custom position-absolute m-a-0" data-ui-sref="app.nav.latest"></button></ion-nav-buttons><ion-content data-ng-show="pageVm.contentLoaded" overflow-scroll="true"><div ng-if="pageVm.page.image && pageVm.page.image.src" class="page__cover h-50vh bg-cover" data-ng-style=" {\'background\':\'url( {{ pageVm.page.image.src }} )\'}"></div><h1 class="h3 title page__title page-custom__title-custom bar-title text-left w-80 m-y-0 m-r-5" data-ng-bind-html="pageVm.page.title | TrustHtmlFilter"></h1><div class="page__content page-custom__content-custom"><div data-ng-bind-html="pageVm.page.content | TrustHtmlFilter"></div></div></ion-content></ion-view>'),t.put("app/posts/add-comment/appticles-add-comment.template.html",'<ion-pull-up-footer class="add-comment-ctx" max-height="490" initial-state="minimized" style="z-index: 59"><ion-pull-up-handle width="100" height="30" class="pull-up__handle pull-up__handle-custom" icon-expand="ion-plus" icon-collapse="ion-chevron-down"></ion-pull-up-handle><ion-pull-up-bar><h3 class="title add-comment__page-title" ion-pull-up-trigger translate="TEXTS.LEAVE_COMMENTS"></h3></ion-pull-up-bar><ion-pull-up-content scroll="false"><ion-content class="has-header" overflow-scroll="true"><form ng-model-options="{ updateOn: \'blur\', debounce: { \'default\': 300, \'blur\': 0 } }" name="addCommentVm.commentForm" novalidate data-ng-submit="addCommentVm.submitComment()" class="add-comment__form"><div class="list list-inset"><label data-ng-class="{\'error\': addCommentVm.commentForm.author.$dirty && addCommentVm.commentForm.author.$invalid }" class="item item-input item-stacked-label add-comment__input add-comment__input-custom"><span class="h6 input-label add-comment__label add-comment__label-custom">{{(\'FORMS.YOUR_NAME\' | translate) + (addCommentVm.requireNameEmail ? \'*\' : \'\')}}</span> <input type="text" name="author" data-ng-model="addCommentVm.author" data-ng-required="addCommentVm.requireNameEmail" placeholder="{{(\'FORMS.YOUR_NAME\' | translate) + (addCommentVm.requireNameEmail ? \'*\' : \'\')}}"> <i data-ng-show="addCommentVm.commentForm.author.$dirty && addCommentVm.commentForm.author.$invalid" class="icon ion-ios-close-outline form-label add-comment__error-icon"></i></label><div class="add-comment__error-container"><div ng-show="!addCommentVm.commentForm.author.$pristine && addCommentVm.commentForm.author.$invalid "><p ng-show="addCommentVm.commentForm.author.$error.required" class="add-comment__error-message">{{ \'FORMS.YOUR_NAME_ERROR\' | translate }}</p></div></div></div><!-- error container --><div class="list list-inset"><label data-ng-class="{\'error\': addCommentVm.commentForm.email.$dirty && addCommentVm.commentForm.email.$invalid }" class="item item-input item-stacked-label add-comment__input add-comment__input-custom"><span class="h6 input-label add-comment__label add-comment__label-custom">{{(\'FORMS.YOUR_EMAIL\' | translate) + (addCommentVm.requireNameEmail ? \'*\' : \'\')}}</span> <input type="email" name="email" data-ng-model="addCommentVm.email" data-ng-required="addCommentVm.requireNameEmail" placeholder="{{(\'FORMS.YOUR_EMAIL\' | translate) + (addCommentVm.requireNameEmail ? \'*\' : \'\')}}"> <i data-ng-show="addCommentVm.commentForm.email.$dirty && addCommentVm.commentForm.email.$invalid" class="icon ion-ios-close-outline form-label add-comment__error-icon"></i></label><!-- error container --><div class="add-comment__error-container"><div ng-show="!addCommentVm.commentForm.email.$pristine && addCommentVm.commentForm.email.$invalid "><p ng-show="addCommentVm.commentForm.email.$error.required" class="add-comment__error-message">{{ \'FORMS.YOUR_EMAIL_ERROR\' | translate}}</p><p ng-show="!addCommentVm.commentForm.email.$error.required && addCommentVm.commentForm.email.$invalid" class="add-comment__error-message">{{ \'FORMS.YOUR_EMAIL_ERROR2\' | translate }}</p></div></div></div><div class="list list-inset"><label data-ng-class="{\'error\': addCommentVm.commentForm.content.$dirty && addCommentVm.commentForm.content.$invalid }" class="item item-input item-stacked-label add-comment__input add-comment__input-custom"><span class="h6 input-label add-comment__label add-comment__label-custom">{{(\'FORMS.YOUR_COMMENT\' | translate) + \'*\'}}</span><textarea type="text" name="content" data-ng-model="addCommentVm.content" data-ng-model-options="{updateOn: \'default\'}" data-ng-required="true" placeholder="{{(\'FORMS.YOUR_COMMENT\' | translate) + \'*\'}}"></textarea><i data-ng-show="addCommentVm.commentForm.content.$dirty && addCommentVm.commentForm.content.$invalid" class="icon ion-ios-close-outline form-label add-comment__error-icon"></i></label><!-- error container --><div class="add-comment__error-container"><div ng-show="!addCommentVm.commentForm.content.$pristine && addCommentVm.commentForm.content.$invalid "><p ng-show="addCommentVm.commentForm.content.$error.required" class="add-comment__error-message">{{\'FORMS.YOUR_COMMENT_ERROR\' | translate}}</p></div></div></div><div class="list list-inset"><button translate="FORMS.SEND" data-ng-disabled="addCommentVm.commentForm.$invalid || addCommentVm.submitted" class="button button-block m-x-auto max-width-md comment-list button-custom add-comment__send-btn add-comment__send-btn-custom"></button></div></form></ion-content></ion-pull-up-content></ion-pull-up-footer>'),t.put("app/posts/category/appticles-slides-category.template.html",'<ion-slides options="slidesVm.sliderOptions" slider="slidesVm.slider" class="slides-ctx"><ion-slide-page data-ng-repeat="page in slidesVm.posts"><div class="slide__wrapper d-flex h-100"><div data-ng-repeat="post in page" data-ui-sref="app.nav.postFromCategory({categorySlugId: slidesVm.categories.id, postId: post.id})" class="slide__post-item slide__post-item-custom d-flex position-relative"><div class="slide__top-container position-absolute d-flex flex-column justify-flex-start t-0 h-100 w-100"><div class="slide__top-inner slide__top-inner-custom b-0" ng-class="{\'flex-order-1\' : page.length === 1 || ($index === 1 && page.length === 2), \'has-border\' : (!post.image.src && $index === 1 && page.length === 2)}"><div class="slide__meta-container slide__meta-container-custom"><h3 class="h3 slide__title slide__title-custom text-heading-style m-y-0 text-clamped" data-ng-bind-html="post.title | TrustHtmlFilter"></h3><h6 class="slide__date slide__date-custom text-body-style d-inline-block m-y-0">{{ post.date }}</h6><h6 class="slide__label slide__label-custom text-body-style m-t-half" data-ng-bind-html="slidesVm.categories.name | TrustHtmlFilter"></h6><div class="slide__description slide__description-custom text-body-style m-a-0" data-ng-class="{\'text-clamped-1-line\' : post.image.src, \'m-t-2\' : !post.image.src, \'text-clamped-4-lines\' : (page.length === 2 && !post.image.src), \'text-clamped-8-lines\' : (page.length == 1 && !post.image.src)}" data-ng-bind-html="post.description | TrustHtmlFilter"></div></div></div><div data-ng-if="post.image.src" class="slide__img-wrap position-relative h-75" ng-class="{\'flex-order-0\' : page.length === 1 || ($index === 1 && page.length === 2)}"><div data-ng-if="post.image.src" class="slide__cover w-100 h-100 bg-cover position-absolute" data-ng-style=" {\'background\':\'url( {{ post.image.src }} )\'}"></div><div class="position-absolute" ng-class="{\'b-0 slide__triangle--bottom-to-right slide__triangle-custom--bottom-to-right\' : page.length === 1 || ($index === 1 && page.length === 2), \'t-0 slide__triangle slide__triangle-custom\' : $index === 0 && page.length === 2}"></div></div></div></div></div></ion-slide-page></ion-slides>'),t.put("app/posts/category/post-list.template.html",'<ion-view cache-view="true" class="posts-categ-ctx"><ion-nav-buttons side="right"><button class="button button-icon button-clear button-dark ion-navicon latest__button-more latest__button-more-custom" menu-toggle="right"></button></ion-nav-buttons><ion-content scroll="false" data-ng-show="listVm.contentLoaded"><div class="posts-categ__no-articles posts-categ__no-articles-custom text-center m-t-2 text-body-style" translate="TEXTS.NO_ARTICLES" data-ng-if="!listVm.hasArticles"></div><appticles-slides type="category" data-ng-if="::(listVm.posts && listVm.hasArticles && listVm.category)" posts="listVm.posts" categories="listVm.category"></appticles-slides></ion-content></ion-view>'),t.put("app/posts/comments/comment-list.template.html",'<ion-view class="comments-ctx"><ion-header-bar align-title="center" class="bar bar-clear bar-comments bar-comments-custom"><h4 class="h4 title comments__title comments__title-custom bar-title text-ellipsis w-80 m-b-0 m-x-5" translate="TEXTS.COMMENTS"></h4></ion-header-bar><ion-nav-buttons><button class="button icon ion-android-close comments__close-btn comments__close-btn-custom position-absolute" ng-click="commentsVm.goBack()"></button></ion-nav-buttons><ion-content class="comments__comm-content"><!-- if there are no comments--><div class="comments__no-comments" data-ng-if="commentsVm.comments.length == 0"><p class="comments__no-comments-title comments__no-comments-title-custom p-x-1" translate="TEXTS.NO_COMMENTS"></p></div><div class="comments__comment-list comments__comment-list-custom"><div class="comments__comment-container comments__comment-container-custom" data-ng-if="commentsVm.comments.length !== 0" data-ng-repeat="comment in commentsVm.comments"><a data-ng-href="{{comment.author_url}}"><div data-ng-if="comment.avatar" class="comments__comment-avatar"><img data-ng-src="{{comment.avatar}}"></div></a><div class="comments__comment-content-container"><div class="comments__comment-details w-100"><h5 class="comments__comment-author comments__comment-author-custom text-right m-t-0">{{comment.author}}</h5><h6 class="comments__comment-author comments__comment-author-custom text-right m-t-0 m-b-2">{{comment.date}}</h6></div><div class="comments__content comments__content-custom" data-ng-bind-html="comment.content | TrustHtmlFilter"></div></div></div></div></ion-content><appticles-add-comment data-ng-if="commentsVm.commentStatus == \'open\'" post-id="commentsVm.postId" require-name-email="commentsVm.requireNameEmail"></appticles-add-comment></ion-view>'),t.put("app/posts/details/post-details.template.html",'<ion-view cache-view="false" data-ng-show="postDetailsVm.contentLoaded" class="post-ctx"><ion-nav-buttons side="left"><button ng-class="{\'slide-up\': !postDetailsVm.buttonsVisible, \'slide-down\': postDetailsVm.buttonsVisible}" class="button button-icon ion-ios-arrow-back button-clear button-dark post__button-back post__button-back-custom" data-ng-click="postDetailsVm.goBack()"></button></ion-nav-buttons><ion-content data-ng-show="postDetailsVm.contentLoaded" scroll-event-interval="50" has-bouncing="false" on-tap="postDetailsVm.handleOnTap()" on-scroll="postDetailsVm.handleOnScroll()" overflow-scroll="true"><!-- if the post does have an image --><div data-ng-if="postDetailsVm.post.image.src" class="post__top-container position-relative"><div class="post__top-inner position-absolute b-0"><div data-ng-if="postDetailsVm.post.image.src" class="post__triangle post__triangle-custom"></div><div class="post__meta-container post__meta-container-custom"><h6 class="post__category post__category-custom d-inline-block m-a-0" data-ng-bind-html="postDetailsVm.category.name | TrustHtmlFilter"></h6><h1 class="h3 post__title post__title-custom text-heading-style text-clamped-3-lines m-b-0 m-t-1" data-ng-bind-html="postDetailsVm.post.title | TrustHtmlFilter"></h1><div class="d-flex flex-wrap"><div class="d-flex"><h6 class="post__author post__author-custom text-body-style m-y-0" translate="TEXTS.BY_AUTHOR"></h6><h6 class="post__author post__author-custom text-body-style m-y-0"> {{ postDetailsVm.post.author }}, </h6></div><div class="d-flex"><h6 class="post__date post__date-custom text-body-style m-y-0">{{ postDetailsVm.post.date }}</h6></div></div></div></div><div class="post__img-wrap"><div data-ng-if="postDetailsVm.post.image.src" class="post__cover w-100 bg-cover" data-ng-class="{\'post__cover--portrait\': (postDetailsVm.post.image.height >= postDetailsVm.post.image.width) }" data-ng-style=" {\'background\':\'url( {{ postDetailsVm.post.image.src }} )\'}"></div><div data-ng-if="!postDetailsVm.post.image.src" class="post__cover-noimg post__cover-noimg-custom w-100"></div></div></div><!-- if the post doesn\'t have an image--><div data-ng-if="!postDetailsVm.post.image.src" class="post__meta-container post__meta-container-custom--no-img p-t-5"><h6 class="post__category post__category-custom d-inline-block m-a-0" data-ng-bind-html="postDetailsVm.category.name | TrustHtmlFilter"></h6><h1 class="h3 post__title post__title-custom text-heading-style m-b-0 m-t-1" data-ng-bind-html="postDetailsVm.post.title | TrustHtmlFilter"></h1><div class="d-flex flex-wrap"><div class="d-flex"><h6 class="post__author post__author-custom text-body-style m-y-0" translate="TEXTS.BY_AUTHOR"></h6><h6 class="post__author post__author-custom text-body-style m-y-0"> {{ postDetailsVm.post.author }}, </h6></div><div class="d-flex"><h6 class="post__date post__date-custom text-body-style m-y-0">{{ postDetailsVm.post.date }}</h6></div></div></div><!-- content --><div class="post__content-container post__content-container-custom"><div class="post__content post__content-custom"><appticles-ads ng-if="postDetailsVm.post.content" content="postDetailsVm.post.content"></appticles-ads></div></div></ion-content><div side="right" class="bar bar-footer bar-clear ex-bar-footer ex-bar-footer-custom"><div ng-if="postDetailsVm.hasSocialNetworks || (postDetailsVm.directiveApi.data !== null && postDetailsVm.directiveApi.data.has_comments)"><button class="button button-icon button-clear ion-android-share-alt post__ex-social-btn post__ex-social-btn-custom position-absolute m-a-0" ng-class="{\'footer-slide-down\': !postDetailsVm.buttonsVisible || postDetailsVm.directiveApi.modalTriggered}" appticles-social data-ng-if="postDetailsVm.directiveApi.data !== null " data-ng-click="postDetailsVm.directiveApi.triggerModal()" directive-api="postDetailsVm.directiveApi"></button></div></div></ion-view>'),t.put("app/posts/latest/appticles-slides-latest.template.html",'<ion-slides options="slidesVm.sliderOptions" slider="slidesVm.slider" class="slides-ctx"><!-- Cover item --><ion-slide-page><div class="slide__wrapper d-flex h-100"><div data-ui-sref="app.nav.post({ postId: slidesVm.coverPost.id })" class="slide__post-item slide__post-item-custom d-flex position-relative"><div class="slide__top-container position-absolute d-flex flex-column justify-flex-start t-0 h-100 w-100"><div class="slide__img-wrap position-relative h-100"><div class="d-flex flex-column position-absolute h-100 w-100"><div class="hero__top-inner h-75 index-2 position-relative" ng-class="{\'flex-order-1\' : page.length === 1 || ($index === 1 && page.length === 2), \'has-border\' : ($index === 1 && page.length === 2)}"><div class="hero__container"><h3 class="h2 hero__title hero__title-custom text-heading-style m-y-0 m-r-3" data-ng-bind-html="slidesVm.coverPost.title | TrustHtmlFilter"></h3><h6 class="hero__date hero__date-custom text-body-style d-inline-block m-y-0">{{ slidesVm.coverPost.date }}</h6></div><div class="arrow-container position-absolute"><div><span class="arrow-down arrow-down__first"></span> <span class="arrow-down arrow-down__second"></span> <span class="arrow-down arrow-down__third"></span></div></div></div><div class="h-25 index-2"><div class="hero__logo-container" ng-if="slidesVm.appLogo"><img ng-src="{{ slidesVm.appLogo }}" alt=""></div></div><div class="slide__overlay slide__overlay-custom w-100 h-100 position-absolute index-1 bg-cover"></div></div><div class="slide__cover w-100 h-100 bg-cover" data-ng-style=" {\'background\':\'url( \' + (slidesVm.coverPost.image.src || slidesVm.appCover) + \')\'}"></div><div class="slide__triangle-custom position-absolute"></div></div></div></div></div></ion-slide-page><ion-slide-page data-ng-repeat="page in slidesVm.posts"><div class="slide__wrapper d-flex h-100"><div data-ng-repeat="post in page" data-ui-sref="app.nav.post({ postId: post.id })" class="slide__post-item slide__post-item-custom d-flex position-relative"><div class="slide__top-container position-absolute d-flex flex-column justify-flex-start t-0 h-100 w-100"><div class="slide__top-inner slide__top-inner-custom b-0" ng-class="{\'flex-order-1\' : page.length === 1 || ($index === 1 && page.length === 2), \'has-border\' : (!post.image.src && $index === 1 && page.length === 2)}"><div class="slide__meta-container slide__meta-container-custom"><h3 class="h3 slide__title slide__title-custom text-heading-style m-y-0 text-clamped" data-ng-bind-html="post.title | TrustHtmlFilter"></h3><h6 class="slide__date slide__date-custom text-body-style d-inline-block m-y-0">{{ post.date }}</h6><h6 class="slide__label slide__label-custom text-body-style m-t-half" data-ng-bind-html="slidesVm.categories[post.categories[0]] | TrustHtmlFilter"></h6><div class="slide__description slide__description-custom text-body-style m-a-0" data-ng-class="{\'text-clamped-1-line\' : post.image.src, \'m-t-2\' : !post.image.src, \'text-clamped-4-lines\' : (page.length === 2 && !post.image.src), \'text-clamped-8-lines\' : (page.length == 1 && !post.image.src)}" data-ng-bind-html="post.description | TrustHtmlFilter"></div></div></div><div data-ng-if="post.image.src" class="slide__img-wrap position-relative h-75" ng-class="{\'flex-order-0\' : page.length === 1 || ($index === 1 && page.length === 2)}"><div data-ng-if="post.image.src" class="slide__cover w-100 h-100 bg-cover position-absolute" data-ng-style=" {\'background\':\'url( {{ post.image.src }} )\'}"></div><div class="position-absolute" ng-class="{\'b-0 slide__triangle--bottom-to-right slide__triangle-custom--bottom-to-right\' : page.length === 1 || ($index === 1 && page.length === 2), \'t-0 slide__triangle slide__triangle-custom\' : $index === 0 && page.length === 2}"></div></div></div></div></div></ion-slide-page></ion-slides>'),t.put("app/posts/latest/latest.template.html",'<ion-view cache-view="true" class="latest-ctx"><ion-nav-buttons side="right"><button class="button button-icon button-clear button-dark ion-navicon latest__button-more latest__button-more-custom" menu-toggle="right"></button></ion-nav-buttons><ion-content scroll="false" data-ng-show="latestVm.contentLoaded"><appticles-slides type="latest" data-ng-if="::(latestVm.contentLoaded)" posts="latestVm.posts" categories="latestVm.categories"></appticles-slides></ion-content></ion-view>'),t.put("app/layout/nav/side-nav/side-nav.template.html",'<ion-view cache-view="false" class="side-nav-ctx"><ion-content class="side-nav__container side-nav__container-custom"><div data-ng-if="navSideVm.menuItem == \'root\' && navSideVm.contentLoaded" class="animate-repeat"><div data-ui-sref="app.nav.latest" menu-close class="side-nav__categories-container side-nav__categories-container-custom d-flex vertical-align"><h4 class="side-nav__categories-title side-nav__categories-title-custom m-a-0" translate="LINKS.HOME"></h4></div><div data-ng-if="navSideVm.hasCategories" data-ng-click="navSideVm.openCategories()" class="side-nav__categories-container side-nav__categories-container-custom d-flex space-between vertical-align"><h4 class="side-nav__categories-title side-nav__categories-title-custom text-ellipsis m-a-0" translate="LINKS.CATEGORIES"></h4><i class="icon button-icon side-nav__icon side-nav__icon-custom ion-ios-arrow-right"></i></div><div data-ng-if="navSideVm.hasPages" data-ng-click="navSideVm.openPages()" class="side-nav__static-pages-container side-nav__static-pages-container-custom d-flex space-between vertical-align"><h4 class="side-nav__static-pages-title side-nav__static-pages-title-custom text-ellipsis m-a-0" translate="LINKS.GO_TO"></h4><i class="icon button-icon side-nav__icon side-nav__icon-custom ion-ios-arrow-right"></i></div><!-- link to website --><div data-ng-if="navSideVm.websiteUrl" data-ng-click="navSideVm.openDesktopWebsite()" class="side-nav__go-to-container side-nav__go-to-container-custom"><h4 class="side-nav__go-to-title side-nav__go-to-title-custom text-ellipsis" translate="LINKS.VISIT_WEBSITE"></h4></div></div><!-- categories list --><div data-ng-if="navSideVm.menuItem == \'categories\' && navSideVm.hasCategories && navSideVm.contentLoaded" class="side-nav__static-pages-list animate-repeat"><appticles-nested-categories menu-item="navSideVm.menuItem"></appticles-nested-categories></div><!-- pages list --><div data-ng-if="navSideVm.menuItem == \'pages\' && navSideVm.hasPages && navSideVm.contentLoaded" class="side-nav__static-pages-list animate-repeat"><appticles-nested-pages menu-item="navSideVm.menuItem"></appticles-nested-pages></div></ion-content></ion-view>'),t.put("app/posts/details/social/appticles-social.template.html",'<ion-modal-view class="social-modal__view social-modal__view-custom"><ion-view><ion-content scroll="false" class="social-modal"><div class="row social-modal__content"><div ng-if="socialNetworksVm.post.has_comments"><a ng-click="socialNetworksVm.openComments()"><button class="button icon ion-ios-chatboxes-outline social-modal__btn-comm social-modal__btn-comm-custom position-relative"><div data-ng-if="socialNetworksVm.post.no_comments > 0" class="social-modal__label social-modal__label-custom text-ellipsis position-absolute">{{socialNetworksVm.post.no_comments}}</div></button></a></div><div data-ng-if="socialNetworksVm.hasFacebook"><a data-ng-href="https://m.facebook.com/sharer.php?u={{socialNetworksVm.post.link}}" target="_blank"><button class="button icon ion-social-facebook social-modal__btn-fb"></button></a></div><div data-ng-if="socialNetworksVm.hasTwitter"><a data-ng-href="https://twitter.com/intent/tweet?text={{ socialNetworksVm.post.title + \' \' + socialNetworksVm.post.link}}" target="_blank"><button class="button icon ion-social-twitter social-modal__btn-tw"></button></a></div><div data-ng-if="socialNetworksVm.hasGoogle"><a data-ng-href="https://plus.google.com/share?url={{socialNetworksVm.post.link}}" target="_blank"><button class="button icon ion-social-googleplus social-modal__btn-gplus"></button></a></div></div></ion-content></ion-view></ion-modal-view>'),t.put("app/layout/nav/side-nav/categories/nested-categories.template.html",'<div class="nested-categories-ctx"><div class="animate-repeat"><div data-ng-click="nestedCategoriesVm.goBack()" class="nested-categories__title-container nested-categories__title-container-custom w-100 d-flex vertical-align p-a-1"><i class="button-icon icon m-r-1 ion-ios-arrow-left button-clear button-dark nested-categories__button-back nested-categories__button-back-custom"></i><h4 translate="LINKS.CATEGORIES" class="nested-categories__page-title nested-categories__page-title-custom m-a-0 d-inline-block"></h4></div></div><div ng-if="nestedCategoriesVm.contentLoaded" ng-repeat="category in nestedCategoriesVm.categories" class="page-item animate-repeat nested-categories__item-wrap nested-categories__item-wrap-custom"><div class="nested-categories__item-container h-100 position-relative"><div ng-click="nestedCategoriesVm.openContent(category)" class="nested-categories__item-content position-absolute d-flex space-between vertical-align h-100 w-100 index-3 b-0"><h6 data-ng-bind-html="category.name | TrustHtmlFilter" class="nested-categories__item-title nested-categories__item-title-custom text-ellipsis text-uppercase"></h6><!--<i\n ng-if="category.has_children > 0" ng-click="nestedCategoriesVm.openChildCategories(category)"\n class="icon button-icon ion-ios-arrow-right nested-categories__item-icon nested-categories__item-icon-custom">\n </i>--></div><div data-ng-if="category.image" class="nested-categories__img-overlay nested-categories__img-overlay-custom bg-cover position-absolute w-100 h-100 index-2"></div><div data-ng-if="category.image" data-ng-style=" {\'background-image\':\'url({{category.image.src}})\'}" class="nested-categories__img bg-cover position-absolute w-100 h-100"></div><div data-ng-if="!category.image" class="nested-categories__img-placeholder nested-categories__img-placeholder-custom h-100"></div></div></div><ion-infinite-scroll data-ng-if="nestedCategoriesVm.contentLoaded && nestedCategoriesVm.categories.length > 0 && nestedCategoriesVm.moreCategoriesAvailable" data-on-infinite="nestedCategoriesVm.loadMoreCategories()" distance="10%" immediate-check="false"></ion-infinite-scroll><div class="nested-categories__item-content text-center" ng-if="!nestedCategoriesVm.contentLoaded"><ion-spinner></ion-spinner></div></div>'),t.put("app/layout/nav/side-nav/pages/nested-pages.template.html",'<div class="nested-pages-ctx"><div data-ng-click="nestedPagesVm.goBack()" class="nested-pages__title-container nested-pages__title-container-custom w-100 d-flex vertical-align p-a-1 animate-repeat"><i class="icon button-icon ion-ios-arrow-left m-r-1 nested-pages__button-back nested-pages__button-back-custom"></i><h4 data-ng-bind-html="nestedPagesVm.currentParent.title | TrustHtmlFilter" class="nested-pages__page-title nested-pages__page-title-custom m-a-0 d-inline-block text-ellipsis"></h4></div><div ng-if="nestedPagesVm.contentLoaded" ng-repeat="page in nestedPagesVm.pages" class="page-item animate-repeat nested-pages__item-container nested-pages__item-container-custom"><div class="nested-pages__item-content d-flex space-between vertical-align w-100 index-3 b-0"><h6 data-ng-bind-html="page.title | TrustHtmlFilter" ng-click="nestedPagesVm.openContent(page)" class="nested-pages__item-title nested-pages__item-title-custom text-ellipsis"></h6><i ng-if="page.has_children" ng-click="nestedPagesVm.openChildPages(page)" class="icon button-icon ion-ios-arrow-right nested-pages__item-icon-custom"></i></div></div><div class="nested-pages__spinner text-center"><ion-spinner ng-if="!nestedPagesVm.contentLoaded"></ion-spinner></div></div>')}]);