function FastClick(n,t){"use strict";function e(n,t){return function(){return n.apply(t,arguments)}}var f;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=n,this.tapDelay=t.tapDelay||200,!FastClick.notNeeded(n)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],u=this,i=0,o=r.length;o>i;i++)u[r[i]]=e(u[r[i]],u);deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0));n.addEventListener("click",this.onClick,!0);n.addEventListener("touchstart",this.onTouchStart,!1);n.addEventListener("touchmove",this.onTouchMove,!1);n.addEventListener("touchend",this.onTouchEnd,!1);n.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;"click"===t?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;"click"===t?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)});"function"==typeof n.onclick&&(f=n.onclick,n.addEventListener("click",function(n){f(n)},!1),n.onclick=null)}}function AjaxList(n){if(this.firstPageLoaded=n.firstPageLoaded||!1,this.containerId=n.containerId||null,this.templateId=n.templateId||null,this.totalItems=n.totalItems||-1,this.pageSize=n.pageSize||10,this.title=n.title||"",this.onPageChanging=n.onPageChanging||null,this.templateId==null||this.containerId==null){console.log("Template and Container Ids must be specified");return}this.pager={};this.pager.parent=this;this.pager.lastIndexRequested=-1;this.pager.currentData=[];this.goToPage=function(n){this.pager.lastIndexRequested=n;this.onPageChanging(this)};this.pager.paint=function(){var r=parseInt(Math.ceil(this.parent.totalItems/parseFloat(this.parent.pageSize))),i=this.lastIndexRequested-5,e,t,o,s,h;i<0&&(i=0);var c=i+10>r?r:i+10,f="#"+this.parent.containerId,u=$("<header class='articles-row-header subtitle column'><\/header>");$(u).append("<h4 class='panel-h left'>"+this.parent.title+"<\/h4>");var n=$("<ul class='pagination right'><\/ul>"),l=$("<li class='arrow' pageIndex='0'><a><span class='icon-first'><\/span><\/a>"),a=$("<li class='arrow' pageIndex='"+(r-1)+"'><a><span class='icon-last'><\/span><\/a>"),v=$("<li class='arrow' pageIndex='"+(parseInt(this.lastIndexRequested)-1)+"'><a><span class='icon-previous'><\/span><\/a><\/li>");for(this.lastIndexRequested>0&&($(n).append(l),$(n).append(v)),t=i;t<c;t++)o=t==this.lastIndexRequested?"class='current'":"",s=$("<li "+o+" pageIndex='"+t+"'><a>"+(t+1)+"<\/a><\/li>"),$(n).append(s);parseInt(this.lastIndexRequested)<r-1&&(e=$("<li class='arrow' pageIndex='"+(parseInt(this.lastIndexRequested)+1)+"'><a><span class='icon-next'><\/span><\/a><\/li>"),$(n).append(e),$(n).append(a));$(u).append(n);$(f).prepend(u);$(f).append($(u).clone());h=$(f+" .pagination li");$.each(h,$.proxy(function(n,t){$(t).click($.proxy(this.goToPage,this,$(t).attr("pageIndex")))},this.parent))};this.setData=function(n){var t=$("#"+this.containerId);$(t).html("");$(t).html(n);$.proxy(this.pager.paint(),this)};this.firstPageLoaded&&(this.pager.lastIndexRequested=0,this.pager.paint())}var deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),deviceIsIOS4=deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),deviceIsIOSWithBadTarget=deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),deviceIsBlackBerry10=navigator.userAgent.indexOf("BB10")>0;FastClick.prototype.needsClick=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(deviceIsIOS&&"file"===n.type||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};FastClick.prototype.needsFocus=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!deviceIsAndroid;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};FastClick.prototype.sendClick=function(n,t){"use strict";var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};FastClick.prototype.determineEventType=function(n){"use strict";return deviceIsAndroid&&"select"===n.tagName.toLowerCase()?"mousedown":"click"};FastClick.prototype.focus=function(n){"use strict";var t;deviceIsIOS&&n.setSelectionRange&&0!==n.type.indexOf("date")&&"time"!==n.type?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};FastClick.prototype.updateScrollParent=function(n){"use strict";var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(n){"use strict";return n.nodeType===Node.TEXT_NODE?n.parentNode:n};FastClick.prototype.onTouchStart=function(n){"use strict";var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],deviceIsIOS){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!deviceIsIOS4){if(t.identifier&&t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};FastClick.prototype.touchHasMoved=function(n){"use strict";var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};FastClick.prototype.onTouchMove=function(n){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};FastClick.prototype.findControl=function(n){"use strict";return void 0!==n.control?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(n){"use strict";var f,e,i,r,u,t=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,deviceIsIOSWithBadTarget&&(u=n.changedTouches[0],t=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||t,t.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=t.tagName.toLowerCase(),"label"===i){if(f=this.findControl(t)){if(this.focus(t),deviceIsAndroid)return!1;t=f}}else if(this.needsFocus(t))return n.timeStamp-e>100||deviceIsIOS&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(t),this.sendClick(t,n),deviceIsIOS&&"select"===i||(this.targetElement=null,n.preventDefault()),!1);return deviceIsIOS&&!deviceIsIOS4&&(r=t.fastClickScrollParent,r&&r.fastClickLastScrollTop!==r.scrollTop)?!0:(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(n){"use strict";return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0};FastClick.prototype.onClick=function(n){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===n.target.type&&0===n.detail?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};FastClick.prototype.destroy=function(){"use strict";var n=this.layer;deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(n){"use strict";var t,r,i;return"undefined"==typeof window.ontouchstart?!0:(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1])&&(!deviceIsAndroid||(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||r>31&&document.documentElement.scrollWidth<=window.outerWidth))?!0:deviceIsBlackBerry10&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]")))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth)?!0:"none"===n.style.msTouchAction?!0:!1};FastClick.attach=function(n,t){"use strict";return new FastClick(n,t)};"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){"use strict";return FastClick}):"undefined"!=typeof module&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick