!function(s){"use strict";s(window).on("load",function(){if(s(".is-menu a, .is-menu a svg").on("click",function(e){if(e.stopPropagation(),e.preventDefault(),"static"===s(this).closest("ul").css("position")&&s(this).closest("ul").css("position","relative"),s(this).closest(".is-menu-wrapper").length&&(s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu"))&&s(this).closest(".is-menu-wrapper").addClass("is-expanded"),s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu")){s(this).closest(".is-menu").find("button.is-search-submit").hide();var i=s(this).closest("li.is-menu").outerHeight();i/=2,s(this).closest(".is-menu").find("form").css({top:i-18+"px"}),s(this).closest(".is-menu").find(".search-close").css({top:i-10+"px"})}if(s(this).closest(".is-menu").hasClass("is-dropdown"))s(this).closest(".is-menu").find("form").fadeIn();else if(s(this).closest(".is-menu").hasClass("sliding"))s(this).closest(".is-menu").find("form").animate({width:"310"},function(){s(this).closest(".is-menu").addClass("open"),s(this).closest(".is-menu").find("button.is-search-submit").show()});else if(s(this).closest(".is-menu").hasClass("full-width-menu")){var t=s(this).closest("ul").outerWidth();if(s(this).closest(".is-menu-wrapper").hasClass("is-expanded"))t=s(window).width(),s(this).closest(".is-menu").find("form").css("right","-5px"),s(this).closest(".is-menu").find(".search-close").hide();else{var a=s(this).offset();if(!s(this).closest(".is-menu").hasClass("is-first")&&a.leftt&&(t=n)}}s(this).closest(".is-menu").find("form").animate({width:t+"px"},function(){s(this).closest(".is-menu").addClass("active-search"),s(this).closest(".is-menu").addClass("open"),s(this).closest(".is-menu").find("button.is-search-submit").show()})}else s(this).closest(".is-menu").hasClass("popup")&&(s("#is-popup-wrapper").fadeIn(),s('#is-popup-wrapper form input[type="text"], #is-popup-wrapper form input[type="search"]').focus());(s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu"))&&s(this).closest(".is-menu").find('form input[type="search"], form input[type="text"]').focus(),s(this).closest(".is-menu").find('form input[type="search"], form input[type="text"]').focus()}),s("#is-popup-wrapper .popup-search-close").on("click",function(e){s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").fadeOut()}),"undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled&&void 0!==IvorySearchVars.is_search&&(IvorySearchVars.is_search,1)){var e,i=void 0!==IvorySearchVars.is_id?IvorySearchVars.is_id:"Default";ivory_search_analytics(i,void 0!==IvorySearchVars.is_label?IvorySearchVars.is_label:"",void 0!==IvorySearchVars.is_cat?IvorySearchVars.is_cat:"")}window.matchMedia("(max-width: 1024px)").matches&&s(".is-menu a").attr("href",""),s(window).resize(function(){window.matchMedia("(max-width: 1024px)").matches&&s(".is-menu a").attr("href","")})}),s(document).keyup(function(e){27===e.keyCode&&s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").hide()}),s('.is-menu form input[type="search"], .is-menu form input[type="text"]').on("click",function(s){return s.stopPropagation(),!1}),s("form.is-search-form, form.search-form").on("mouseover",function(e){s(this).next(".is-link-container").length&&s(this).append(s(this).next(".is-link-container").remove())}),s(window).click(function(e){0===e.button&&0===s(e.target).closest(".is-search-input").length&&0===s(e.target).closest(".is-search-submit").length&&0===s(e.target).closest(".is-ajax-search-result").length&&0===s(e.target).closest(".is-ajax-search-details").length&&(s(".is-menu").hasClass("open")?(s(".is-menu button.is-search-submit").hide(),s(".is-menu form").animate({width:"0"},400,function(){s(".is-menu").removeClass("active-search"),s(".is-menu").removeClass("open"),s(".is-menu-wrapper").removeClass("is-expanded")}),s(".is-ajax-search-result, .is-ajax-search-details").hide()):s(".is-menu").hasClass("is-dropdown")&&(s(".is-menu form").fadeOut(),s(".is-ajax-search-result, .is-ajax-search-details").hide()))})}(jQuery);function ivory_search_analytics(s,e,i){try{var t="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga&&ga,a="function"==typeof gtag&>ag;if(!1!==a){a("event","Ivory Search - "+s,{event_label:e,event_category:i});return}!1!==t&&t("send",{hitType:"event",eventCategory:i,eventAction:"Ivory Search - "+s,eventLabel:e})}catch(n){}}; /** * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ // Underscore.js 1.8.3 // http://underscorejs.org // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license /*! * Includes BabySitter * https://github.com/marionettejs/backbone.babysitter/ * * Includes Wreqr * https://github.com/marionettejs/backbone.wreqr/ */ /** @license * * SoundManager 2: JavaScript Sound for the Web * ---------------------------------------------- * http://schillmania.com/projects/soundmanager2/ * * Copyright (c) 2007, Scott Schiller. All rights reserved. * Code provided under the BSD License: * http://schillmania.com/projects/soundmanager2/license.txt * * V2.97a.20150601 */ /** * @license RequireJS text 2.0.10 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ /*! @source http://purl.eligrey.com/github/l10n.js/blob/master/l10n.js*/ /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ /*! rangeslider.js - v2.3.0 | (c) 2016 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */ /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh) * Licensed under the MIT License (LICENSE.txt). * * Version: 3.1.9 * * Requires: jQuery 1.2.2+ */ /*! * jScrollPane - v2.0.19 - 2013-11-16 * http://jscrollpane.kelvinluck.com/ * * Copyright (c) 2013 Kelvin Luck * Dual licensed under the MIT or GPL licenses. */ // Copyright (c) 2013 Kelvin Luck // Dual licensed under the MIT or GPL Version 2 licenses. !function(){function t(t,e,i){t.fn.jScrollPane||(t.fn.jScrollPane=function(s){function n(s,n){function o(e){var n,a,d,c,u,h,g=!1,v=!1;if(B=e,F===i)u=s.scrollTop(),h=s.scrollLeft(),s.css({overflow:"hidden",padding:0}),z=s.innerWidth()+wt,U=s.innerHeight(),s.width(z),F=t('
').css("padding",yt).append(s.children()),Z=t('
').css({width:z+"px",height:U+"px"}).append(F).appendTo(s);else{if(s.css("width",""),g=B.stickToBottom&&T(),v=B.stickToRight&&A(),c=s.innerWidth()+wt!=z||s.outerHeight()!=U,c&&(z=s.innerWidth()+wt,U=s.innerHeight(),Z.css({width:z+"px",height:U+"px"})),!c&&bt==q&&F.outerHeight()==Y)return void s.width(z);bt=q,F.css("width",""),s.width(z),Z.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}F.css("overflow","auto"),q=e.contentWidth?e.contentWidth:F[0].scrollWidth,Y=F[0].scrollHeight,F.css("overflow",""),W=q/z,X=Y/U,K=X>1,Q=W>1,Q||K?(s.addClass("jspScrollable"),n=B.maintainPosition&&(tt||st),n&&(a=C(),d=M()),r(),l(),p(),n&&(S(v?q-z:a,!1),x(g?Y-U:d,!1)),I(),E(),H(),B.enableKeyboardNavigation&&j(),B.clickOnTrack&&f(),R(),B.hijackInternalLinks&&V()):(s.removeClass("jspScrollable"),F.css({top:0,left:0,width:Z.width()-wt}),O(),$(),D(),m()),B.autoReinitialise&&!vt?vt=setInterval(function(){o(B)},B.autoReinitialiseDelay):!B.autoReinitialise&&vt&&clearInterval(vt),u&&s.scrollTop(0)&&x(u,!1),h&&s.scrollLeft(0)&&S(h,!1),s.trigger("jsp-initialised",[Q||K])}function r(){K&&(Z.append(t('
').append(t('
'),t('
').append(t('
').append(t('
'),t('
'))),t('
'))),nt=Z.find(">.jspVerticalBar"),ot=nt.find(">.jspTrack"),G=ot.find(">.jspDrag"),B.showArrows&&(dt=t('').bind("mousedown.jsp",u(0,-1)).bind("click.jsp",L),pt=t('').bind("mousedown.jsp",u(0,1)).bind("click.jsp",L),B.arrowScrollOnHover&&(dt.bind("mouseover.jsp",u(0,-1,dt)),pt.bind("mouseover.jsp",u(0,1,pt))),c(ot,B.verticalArrowPositions,dt,pt)),at=U,Z.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){at-=t(this).outerHeight()}),G.hover(function(){G.addClass("jspHover")},function(){G.removeClass("jspHover")}).bind("mousedown.jsp",function(e){t("html").bind("dragstart.jsp selectstart.jsp",L),G.addClass("jspActive");var i=e.pageY-G.position().top;return t("html").bind("mousemove.jsp",function(t){v(t.pageY-i,!1)}).bind("mouseup.jsp mouseleave.jsp",g),!1}),a())}function a(){ot.height(at+"px"),tt=0,rt=B.verticalGutter+ot.outerWidth(),F.width(z-rt-wt);try{0===nt.position().left&&F.css("margin-left",rt+"px")}catch(t){}}function l(){Q&&(Z.append(t('
').append(t('
'),t('
').append(t('
').append(t('
'),t('
'))),t('
'))),ct=Z.find(">.jspHorizontalBar"),ut=ct.find(">.jspTrack"),et=ut.find(">.jspDrag"),B.showArrows&&(mt=t('').bind("mousedown.jsp",u(-1,0)).bind("click.jsp",L),gt=t('').bind("mousedown.jsp",u(1,0)).bind("click.jsp",L),B.arrowScrollOnHover&&(mt.bind("mouseover.jsp",u(-1,0,mt)),gt.bind("mouseover.jsp",u(1,0,gt))),c(ut,B.horizontalArrowPositions,mt,gt)),et.hover(function(){et.addClass("jspHover")},function(){et.removeClass("jspHover")}).bind("mousedown.jsp",function(e){t("html").bind("dragstart.jsp selectstart.jsp",L),et.addClass("jspActive");var i=e.pageX-et.position().left;return t("html").bind("mousemove.jsp",function(t){w(t.pageX-i,!1)}).bind("mouseup.jsp mouseleave.jsp",g),!1}),ht=Z.innerWidth(),d())}function d(){Z.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){ht-=t(this).outerWidth()}),ut.width(ht+"px"),st=0}function p(){if(Q&&K){var e=ut.outerHeight(),i=ot.outerWidth();at-=e,t(ct).find(">.jspCap:visible,>.jspArrow").each(function(){ht+=t(this).outerWidth()}),ht-=i,U-=i,z-=e,ut.parent().append(t('
').css("width",e+"px")),a(),d()}Q&&F.width(Z.outerWidth()-wt+"px"),Y=F.outerHeight(),X=Y/U,Q&&(ft=Math.ceil(1/W*ht),ft>B.horizontalDragMaxWidth?ft=B.horizontalDragMaxWidth:ftB.verticalDragMaxHeight?lt=B.verticalDragMaxHeight:lti?_t.scrollByY(-o):v(i);else{if(!(r>0))return void d();tt+pi?_t.scrollByX(-o):w(i);else{if(!(r>0))return void d();st+pJ&&(t=J),e===i&&(e=B.animateScroll),e?_t.animate(G,"top",t,y):(G.css("top",t),y(t)))}function y(t){t===i&&(t=G.position().top),Z.scrollTop(0),tt=t;var e=0===tt,n=tt==J,o=t/J,r=-o*(Y-U);kt==e&&St==n||(kt=e,St=n,s.trigger("jsp-arrow-change",[kt,St,xt,Pt])),_(e,n),F.css("top",r),s.trigger("jsp-scroll-y",[-r,e,n]).trigger("scroll")}function w(t,e){Q&&(t<0?t=0:t>it&&(t=it),e===i&&(e=B.animateScroll),e?_t.animate(et,"left",t,b):(et.css("left",t),b(t)))}function b(t){t===i&&(t=et.position().left),Z.scrollTop(0),st=t;var e=0===st,n=st==it,o=t/it,r=-o*(q-z);xt==e&&Pt==n||(xt=e,Pt=n,s.trigger("jsp-arrow-change",[kt,St,xt,Pt])),k(e,n),F.css("left",r),s.trigger("jsp-scroll-x",[-r,e,n]).trigger("scroll")}function _(t,e){B.showArrows&&(dt[t?"addClass":"removeClass"]("jspDisabled"),pt[e?"addClass":"removeClass"]("jspDisabled"))}function k(t,e){B.showArrows&&(mt[t?"addClass":"removeClass"]("jspDisabled"),gt[e?"addClass":"removeClass"]("jspDisabled"))}function x(t,e){v(t/(Y-U)*J,e)}function S(t,e){w(t/(q-z)*it,e)}function P(e,i,s){var n,o,r,a,l,d,p,c,u,h=0,f=0;try{n=t(e)}catch(t){return}for(o=n.outerHeight(),r=n.outerWidth(),Z.scrollTop(0),Z.scrollLeft(0);!n.is(".jspPane");)if(h+=n.position().top,f+=n.position().left,n=n.offsetParent(),/^body|html$/i.test(n[0].nodeName))return;a=M(),d=a+U,hd&&(c=h-U+o+B.horizontalGutter),isNaN(c)||x(c,s),l=C(),p=l+z,fp&&(u=f-z+r+B.horizontalGutter),isNaN(u)||S(u,s)}function C(){return-F.position().left}function M(){return-F.position().top}function T(){var t=Y-U;return t>20&&t-M()<10}function A(){var t=q-z;return t>20&&t-C()<10}function E(){Z.unbind(Mt).bind(Mt,function(t,e,i,s){var n=st,o=tt,r=t.deltaFactor||B.mouseWheelSpeed;return _t.scrollBy(i*r,-s*r,!1),n==st&&o==tt})}function O(){Z.unbind(Mt)}function L(){return!1}function I(){F.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(t){P(t.target,!1)})}function $(){F.find(":input,a").unbind("focus.jsp")}function j(){function e(){var t=st,e=tt;switch(i){case 40:_t.scrollByY(B.keyboardSpeed,!1);break;case 38:_t.scrollByY(-B.keyboardSpeed,!1);break;case 34:case 32:_t.scrollByY(U*B.scrollPagePercent,!1);break;case 33:_t.scrollByY(-U*B.scrollPagePercent,!1);break;case 39:_t.scrollByX(B.keyboardSpeed,!1);break;case 37:_t.scrollByX(-B.keyboardSpeed,!1)}return n=t!=st||e!=tt}var i,n,o=[];Q&&o.push(ct[0]),K&&o.push(nt[0]),F.focus(function(){s.focus()}),s.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(s){if(s.target===this||o.length&&t(s.target).closest(o).length){var r=st,a=tt;switch(s.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:i=s.keyCode,e();break;case 35:x(Y-U),i=null;break;case 36:x(0),i=null}return!(n=s.keyCode==i&&r!=st||a!=tt)}}).bind("keypress.jsp",function(t){return t.keyCode==i&&e(),!n}),B.hideFocus?(s.css("outline","none"),"hideFocus"in Z[0]&&s.attr("hideFocus",!0)):(s.css("outline",""),"hideFocus"in Z[0]&&s.attr("hideFocus",!1))}function D(){s.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function R(){if(location.hash&&location.hash.length>1){var e,i,s=escape(location.hash.substr(1));try{e=t("#"+s+', a[name="'+s+'"]')}catch(t){return}e.length&&F.find(s)&&(0===Z.scrollTop()?i=setInterval(function(){Z.scrollTop()>0&&(P(e,!0),t(document).scrollTop(Z.position().top),clearInterval(i))},50):(P(e,!0),t(document).scrollTop(Z.position().top)))}}function V(){t(document.body).data("jspHijack")||(t(document.body).data("jspHijack",!0),t(document.body).delegate("a[href*=#]","click",function(i){var s,n,o,r,a,l,d=this.href.substr(0,this.href.indexOf("#")),p=location.href;if(-1!==location.href.indexOf("#")&&(p=location.href.substr(0,location.href.indexOf("#"))),d===p){s=escape(this.href.substr(this.href.indexOf("#")+1));try{n=t("#"+s+', a[name="'+s+'"]')}catch(t){return}n.length&&(o=n.closest(".jspScrollable"),r=o.data("jsp"),r.scrollToElement(n,!0),o[0].scrollIntoView&&(a=t(e).scrollTop(),((l=n.offset().top)a+t(e).height())&&o[0].scrollIntoView()),i.preventDefault())}}))}function H(){var t,e,i,s,n,o=!1;Z.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(r){var a=r.originalEvent.touches[0];t=C(),e=M(),i=a.pageX,s=a.pageY,n=!1,o=!0}).bind("touchmove.jsp",function(r){if(o){var a=r.originalEvent.touches[0],l=st,d=tt;return _t.scrollTo(t+i-a.pageX,e+s-a.pageY),n=n||Math.abs(i-a.pageX)>5||Math.abs(s-a.pageY)>5,l==st&&d==tt}}).bind("touchend.jsp",function(t){o=!1}).bind("click.jsp-touchclick",function(t){if(n)return n=!1,!1})}function N(){var t=M(),e=C();s.removeClass("jspScrollable").unbind(".jsp"),s.replaceWith(Ct.append(F.children())),Ct.scrollTop(t),Ct.scrollLeft(e),vt&&clearInterval(vt)}var B,F,z,U,Z,q,Y,W,X,K,Q,G,J,tt,et,it,st,nt,ot,rt,at,lt,dt,pt,ct,ut,ht,ft,mt,gt,vt,yt,wt,bt,_t=this,kt=!0,xt=!0,St=!1,Pt=!1,Ct=s.clone(!1,!1).empty(),Mt=t.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===s.css("box-sizing")?(yt=0,wt=0):(yt=s.css("paddingTop")+" "+s.css("paddingRight")+" "+s.css("paddingBottom")+" "+s.css("paddingLeft"),wt=(parseInt(s.css("paddingLeft"),10)||0)+(parseInt(s.css("paddingRight"),10)||0)),t.extend(_t,{removeKeyboardNav:function(){D()},initKeyboardNav:function(){j()},reinitialise:function(e){e=t.extend({},B,e),o(e)},scrollToElement:function(t,e,i){P(t,e,i)},scrollTo:function(t,e,i){S(t,i),x(e,i)},scrollToX:function(t,e){S(t,e)},scrollToY:function(t,e){x(t,e)},scrollToPercentX:function(t,e){S(t*(q-z),e)},scrollToPercentY:function(t,e){x(t*(Y-U),e)},scrollBy:function(t,e,i){_t.scrollByX(t,i),_t.scrollByY(e,i)},scrollByX:function(t,e){w((C()+Math[t<0?"floor":"ceil"](t))/(q-z)*it,e)},scrollByY:function(t,e){v((M()+Math[t<0?"floor":"ceil"](t))/(Y-U)*J,e)},positionDragX:function(t,e){w(t,e)},positionDragY:function(t,e){v(t,e)},animate:function(t,e,i,s){var n={};n[e]=i,t.animate(n,{duration:B.animateDuration,easing:B.animateEase,queue:!1,step:s})},getContentPositionX:function(){return C()},getContentPositionY:function(){return M()},getContentWidth:function(){return q},getContentHeight:function(){return Y},getPercentScrolledX:function(){return C()/(q-z)},getPercentScrolledY:function(){return M()/(Y-U)},getIsScrollableH:function(){return Q},getIsScrollableV:function(){return K},getContentPane:function(){return F},scrollToBottom:function(t){v(J,t)},hijackInternalLinks:t.noop,destroy:function(){N()}}),o(n)}return s=t.extend({},t.fn.jScrollPane.defaults,s),t.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){s[this]=s[this]||s.speed}),this.each(function(){var e=t(this),i=e.data("jsp");i?i.reinitialise(s):(t("script",e).filter('[type="text/javascript"],:not([type])').remove(),i=new n(e,s),e.data("jsp",i))})},t.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:i,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8})}function e(t){if(!t.fn.cssExtended){var e=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};!!CSSStyleDeclaration.prototype.getPropertyValue||(CSSStyleDeclaration.prototype.getPropertyValue=function(t){return this.getAttribute(t)},CSSStyleDeclaration.prototype.setProperty=function(t,i,s){this.setAttribute(t,i);var s=void 0!==s?s:"";if(""!=s){var n=new RegExp(e(t)+"\\s*:\\s*"+e(i)+"(\\s*;)?","gmi");this.cssText=this.cssText.replace(n,t+": "+i+" !"+s+";")}},CSSStyleDeclaration.prototype.removeProperty=function(t){return this.removeAttribute(t)},CSSStyleDeclaration.prototype.getPropertyPriority=function(t){return new RegExp(e(t)+"\\s*:\\s*[^\\s]*\\s*!important(\\s*;)?","gmi").test(this.cssText)?"important":""}),t.fn.cssExtended=function(t,e,i){if(void 0===this.get(0))return this;var s=this.get(0).style;return void 0!==t?void 0!==e?(i=void 0!==i?i:"",s.setProperty(t,e,i),this):s.getPropertyValue(t):s}}}function s(t,e){for(var i=t+"";i.length/g,"%lineBreak%"),i=jQuery(i).text(),i=i.replace(/%lineBreak%/g,"\n\t")),console.log("SPP: "+t+i)}}function o(t){if("elapsed"!==t.type&&"remaining"!==t.type)return void n("Invalid user trigger type");if(void 0!==t.player_uid&&void 0===SmartPodcastPlayer._by_uid[t.player_uid])return void n("Player UID "+t.player_uid+" doesn't exist.");if("function"!=typeof t.callback)return void n("Invalid callback");if(void 0===t.seconds||isNaN(parseFloat(t.seconds))||!isFinite(t.seconds))return void n("Invalid number of seconds: "+t.seconds);var e={type:t.type,callback:t.callback,seconds:t.seconds,episode:t.episode};if(void 0===t.player_uid)for(var i in SmartPodcastPlayer._by_uid)SmartPodcastPlayer._by_uid[i].userTriggers.push(e);else SmartPodcastPlayer._by_uid[t.player_uid].userTriggers.push(e)}function r(t){AP_Player.ctct_html&&(t(".ctct-inline-form.spp-ctct").length>0||(ctctInline=t(t.parseHTML(AP_Player.ctct_html)),ctctInline&&ctctInline.addClass("spp-ctct").hide().appendTo("body")))}function a(t,e,i,s){var n=e||"16px Roboto",o=s||jQuery("body"),r=jQuery("
").html(t).css({position:"absolute",float:"left",visibility:"hidden",font:n,width:i}).appendTo(o),a=r.height();return r.remove(),a}function l(t){return"string"!=typeof t?t:(t=t.replace(/^https?:\/\//,""),t=t.replace(/\?.*$/,""))}var d,p,c;!function(t){function e(t,e){return b.call(t,e)}function i(t,e){var i,s,n,o,r,a,l,d,p,c,u,h=e&&e.split("/"),f=y.map,m=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),r=t.length-1,y.nodeIdCompat&&k.test(t[r])&&(t[r]=t[r].replace(k,"")),t=h.slice(0,h.length-1).concat(t),p=0;p0&&(t.splice(p-1,2),p-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||m)&&f){for(i=t.split("/"),p=i.length;p>0;p-=1){if(s=i.slice(0,p).join("/"),h)for(c=h.length;c>0;c-=1)if((n=f[h.slice(0,c).join("/")])&&(n=n[s])){o=n,a=p;break}if(o)break;!l&&m&&m[s]&&(l=m[s],d=p)}!o&&l&&(o=l,a=d),o&&(i.splice(0,a,o),t=i.join("/"))}return t}function s(e,i){return function(){var s=_.call(arguments,0);return"string"!=typeof s[0]&&1===s.length&&s.push(null),h.apply(t,s.concat([e,i]))}}function n(t){return function(e){return i(e,t)}}function o(t){return function(e){g[t]=e}}function r(i){if(e(v,i)){var s=v[i];delete v[i],w[i]=!0,u.apply(t,s)}if(!e(g,i)&&!e(w,i))throw new Error("No "+i);return g[i]}function a(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function l(t){return function(){return y&&y.config&&y.config[t]||{}}}var u,h,f,m,g={},v={},y={},w={},b=Object.prototype.hasOwnProperty,_=[].slice,k=/\.js$/;f=function(t,e){var s,o=a(t),l=o[0];return t=o[1],l&&(l=i(l,e),s=r(l)),l?t=s&&s.normalize?s.normalize(t,n(e)):i(t,e):(t=i(t,e),o=a(t),l=o[0],t=o[1],l&&(s=r(l))),{f:l?l+"!"+t:t,n:t,pr:l,p:s}},m={require:function(t){return s(t)},exports:function(t){var e=g[t];return void 0!==e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:l(t)}}},u=function(i,n,a,l){var d,p,c,u,h,y,b=[],_=typeof a;if(l=l||i,"undefined"===_||"function"===_){for(n=!n.length&&a.length?["require","exports","module"]:n,h=0;h=0&&o0?0:a-1;return arguments.length<3&&(n=i[r?r[l]:l],l+=t),e(i,s,n,r,l,a)}}function e(t){return function(e,i,s){i=_(i,s);for(var n=C(e),o=t>0?0:n-1;o>=0&&o0?r=o>=0?o:Math.max(o+a,r):a=o>=0?Math.min(o+1,a):o+a+1;else if(i&&o&&a)return o=i(s,n),s[o]===n?o:-1;if(n!==n)return o=e(p.call(s,r,a),w.isNaN),o>=0?o+r:-1;for(o=t>0?r:a-1;o>=0&&o=0&&e<=P};w.each=w.forEach=function(t,e,i){e=b(e,i);var s,n;if(M(t))for(s=0,n=t.length;s=0},w.invoke=function(t,e){var i=p.call(arguments,2),s=w.isFunction(e);return w.map(t,function(t){var n=s?e:t[e];return null==n?n:n.apply(t,i)})},w.pluck=function(t,e){return w.map(t,w.property(e))},w.where=function(t,e){return w.filter(t,w.matcher(e))},w.findWhere=function(t,e){return w.find(t,w.matcher(e))},w.max=function(t,e,i){var s,n,o=-1/0,r=-1/0;if(null==e&&null!=t){t=M(t)?t:w.values(t);for(var a=0,l=t.length;ao&&(o=s)}else e=_(e,i),w.each(t,function(t,i,s){((n=e(t,i,s))>r||n===-1/0&&o===-1/0)&&(o=t,r=n)});return o},w.min=function(t,e,i){var s,n,o=1/0,r=1/0;if(null==e&&null!=t){t=M(t)?t:w.values(t);for(var a=0,l=t.length;as||void 0===i)return 1;if(ie?(r&&(clearTimeout(r),r=null),a=d,o=t.apply(s,n),r||(s=n=null)):r||!1===i.trailing||(r=setTimeout(l,p)),o}},w.debounce=function(t,e,i){var s,n,o,r,a,l=function(){var d=w.now()-r;d=0?s=setTimeout(l,e-d):(s=null,i||(a=t.apply(o,n),s||(o=n=null)))};return function(){o=this,n=arguments,r=w.now();var d=i&&!s;return s||(s=setTimeout(l,e)),d&&(a=t.apply(o,n),o=n=null),a}},w.wrap=function(t,e){return w.partial(e,t)},w.negate=function(t){return function(){return!t.apply(this,arguments)}},w.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,s=t[e].apply(this,arguments);i--;)s=t[i].call(this,s);return s}},w.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},w.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}},w.once=w.partial(w.before,2);var O=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];w.keys=function(t){if(!w.isObject(t))return[];if(m)return m(t);var e=[];for(var i in t)w.has(t,i)&&e.push(i);return O&&s(t,e),e},w.allKeys=function(t){if(!w.isObject(t))return[];var e=[];for(var i in t)e.push(i);return O&&s(t,e),e},w.values=function(t){for(var e=w.keys(t),i=e.length,s=Array(i),n=0;n":">",'"':""","'":"'","`":"`"},j=w.invert($),D=function(t){var e=function(e){return t[e]},i="(?:"+w.keys(t).join("|")+")",s=RegExp(i),n=RegExp(i,"g");return function(t){return t=null==t?"":""+t,s.test(t)?t.replace(n,e):t}};w.escape=D($),w.unescape=D(j),w.result=function(t,e,i){var s=null==t?void 0:t[e];return void 0===s&&(s=i),w.isFunction(s)?s.call(t):s};var R=0;w.uniqueId=function(t){var e=++R+"";return t?t+e:e},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\u2028|\u2029/g,B=function(t){return"\\"+H[t]};w.template=function(t,e,i){!e&&i&&(e=i),e=w.defaults({},e,w.templateSettings);var s=RegExp([(e.escape||V).source,(e.interpolate||V).source,(e.evaluate||V).source].join("|")+"|$","g"),n=0,o="__p+='";t.replace(s,function(e,i,s,r,a){return o+=t.slice(n,a).replace(N,B),n=a+e.length,i?o+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":s?o+="'+\n((__t=("+s+"))==null?'':__t)+\n'":r&&(o+="';\n"+r+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var r=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return r.call(this,t,w)};return a.source="function("+(e.variable||"obj")+"){\n"+o+"}",a},w.chain=function(t){var e=w(t);return e._chain=!0,e};var F=function(t,e){return t._chain?w(e).chain():e};w.mixin=function(t){w.each(w.functions(t),function(e){var i=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return d.apply(t,arguments),F(this,i.apply(w,t))}})},w.mixin(w),w.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];w.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],F(this,i)}}),w.each(["concat","join","slice"],function(t){var e=r[t];w.prototype[t]=function(){return F(this,e.apply(this._wrapped,arguments))}}),w.prototype.value=function(){return this._wrapped},w.prototype.valueOf=w.prototype.toJSON=w.prototype.value,w.prototype.toString=function(){return""+this._wrapped},"function"==typeof c&&c.amd&&c("underscore",[],function(){return w})}.call(this),function(t,e){"undefined"!=typeof exports?e(t,exports,p("underscore")):"function"==typeof c&&c.amd?c("backbone",["underscore","jquery","exports"],function(i,s,n){t.Backbone=e(t,n,i,s)}):t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,s){var n=t.Backbone,o=[],r=o.slice;e.VERSION="1.1.0",e.$=s,e.noConflict=function(){return t.Backbone=n,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){return d(this,"on",t,[e,i])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:i,ctx:i||this}),this):this},once:function(t,e,s){if(!d(this,"once",t,[e,s])||!e)return this;var n=this,o=i.once(function(){n.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,s)},off:function(t,e,s){var n,o,r,a,l,p,c,u;if(!this._events||!d(this,"off",t,[e,s]))return this;if(!t&&!e&&!s)return this._events={},this;for(a=t?[t]:i.keys(this._events),l=0,p=a.length;l").attr(t);this.setElement(s,!1)}}}),e.sync=function(t,s,n){var o=x[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var r={type:o,dataType:"json"};if(n.url||(r.url=i.result(s,"url")||D()),null!=n.data||!s||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||s.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),n.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){r.type="POST",n.emulateJSON&&(r.data._method=o);var a=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===r.type||n.emulateJSON||(r.processData=!1),"PATCH"===r.type&&k&&(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=n.xhr=e.ajax(i.extend(r,n));return s.trigger("request",s,l,n),l};var k=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),x={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var S=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},P=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,M=/\*\w+/g,T=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(S.prototype,a,{initialize:function(){},route:function(t,s,n){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(s)&&(n=s,s=""),n||(n=this[s]);var o=this;return e.history.route(t,function(i){var r=o._extractParameters(t,i);n&&n.apply(o,r),o.trigger.apply(o,["route:"+s].concat(r)),o.trigger("route",s,r),e.history.trigger("route",o,s,r)}),this},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(T,"\\$&").replace(P,"(?:$1)?").replace(C,function(t,e){return e?t:"([^/]+)"}).replace(M,"(.*?)"),new RegExp("^"+t+"$")},_extractParameters:function(t,e){var s=t.exec(e).slice(1);return i.map(s,function(t){return t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,O=/^\/+|\/+$/g,L=/msie [\w.]+/,I=/\/$/,$=/[?#].*$/;A.started=!1,i.extend(A.prototype,a,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var i=this.root.replace(I,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(E,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var s=this.getFragment(),n=document.documentMode,o=L.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);this.root=("/"+this.root+"/").replace(O,"/"),o&&this._wantsHashChange&&(this.iframe=e.$('\r\n\t<% } %>\r\n
\r\n\r\n
\r\n' }),c("text!templates/volume-template.html",[],function(){return'\n\n \x3c!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com --\x3e\n\t\n\t\t\n\t\n\r\n
\r\n\t\r\n\t
\r\n\t
\r\n
\r\n'}),c("text!templates/download-subscribe-share-template.html",[],function(){return'<% if ( data.download == "true" && !data.isCurrentlyStpDesktop) { %>\r\n\t
\r\n<% } %>\r\n<% if (data._subscribe_any) { %>\r\n\t
\r\n\t\t
\r\n\t\t\t\n Subscribe\n \n\n\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t<%="Subscribe".toLocaleString()%>\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t<% _.forEach(data._subscription_services, function(service) {\r\n\t\t\t\t\t\tvar d = data["subscribe_" + service[0]];\r\n\t\t\t\t\t\tif (d !== "" && d !== "false") { %>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tSubscribe via <%= service[1] %>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
<%\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}); %>\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n<% } %>\r\n<% if ( data.social === "true" ) { %>\r\n\t
\r\n\t\t
\r\n\t\t\t\n Share\n \n\n\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t<%="Share".toLocaleString()%>\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t<% if( data.social_twitter === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tShare on Twitter\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t\t<% if( data.social_facebook === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tShare on Facebook\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t\t<% if( data.social_linkedin === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tShare on Linked In\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t\t<% if( data.social_gplus === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tShare on Google Plus\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t\t<% if( data.social_pinterest === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tShare on Pinterest\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t\t<% if( data.social_email === "true" ) { %>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tShare via email\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t<% } %>\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n<% } %>\r\n\r\n\r\n'}),c("text!templates/dss-sticky-template.html",[],function(){return'
\r\n\t\r\n\t
\r\n\t\t

<%= data.show_name || data.artist %>

\r\n\t\t

<%= data.title %>

\r\n\t
\r\n
\r\n\r\n
\r\n\r\n<% if ( data.download == "true" || data.social_facebook === "true"\r\n\t\t|| data.social_twitter === "true" || data.social_gplus === "true"\r\n\t\t|| data.social_linkedin === "true" || data.social_pinterest === "true"\r\n\t\t|| data.social_email === "true") { %>\r\n\t
\r\n\t\t
Share
\r\n\t\t
\r\n\t\t
\r\n\t\t\t<% if( data.download == "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\t<% var valid_title = data.title.indexOf(">") == -1; %>\r\n\t\t\t\t\t<% if (valid_title) { %>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDownload\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t<% } else { %>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDownload\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t<% } %>\r\n\t\t\t\t\t
Download
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_facebook === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\tShare on Facebook\r\n\t\t\t\t\t
Facebook
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_twitter === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\tShare on Twitter\r\n\t\t\t\t\t
Twitter
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_gplus === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\tShare on Google Plus\r\n\t\t\t\t\t
Google+
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_linkedin === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\tShare on LinkedIn\r\n\t\t\t\t\t
LinkedIn
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_pinterest === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\tShare on Pinterest\r\n\t\t\t\t\t
Pinterest
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t\t<% if( data.social_email === "true" ) { %>\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tShare via Email\r\n\t\t\t\t\t\r\n\t\t\t\t\t
Email
\r\n\t\t\t\t
\r\n\t\t\t<% } %>\r\n\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\n\n \n\r\n\t\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\n\n \n\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t
\r\n<% } %>\r\n\r\n<% if (data._subscribe_any) { %>\r\n\t
\r\n\t\t
Subscribe
\r\n\t\t
\r\n\t\t
\r\n\t\t\t<% _.forEach(data._subscription_services, function(service) {\r\n\t\t\t\t\tvar d = data["subscribe_" + service[0]];\r\n\t\t\t\t\tif (d && d !== "false") { %>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
<%= service[1] %>
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t<% }\r\n\t\t\t\t}); %>\r\n\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\n\n \n\r\n\t\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\n\n \n\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n<% } %>\r\n\r\n
\r\n
\r\n\t
Cancel
\r\n
\r\n\r\n\r\n'}),function(){"use strict";var t,e,i=self.navigator,s=String,n=Object.prototype.hasOwnProperty,o={},r={},a=/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i,l=Array.prototype.indexOf||function(t){for(var e=this.length,i=0;i0&&"number"!=typeof t)if("string"==typeof t)p(d(t));else if(!1===t)r={};else{var e,i,a;for(e in t)if(n.call(t,e)){if(i=t[e],e=e.toLowerCase(),e in r&&!1!==i||(r[e]={}),!1===i)continue;if("string"==typeof i){if(0!==s.locale.toLowerCase().indexOf(e)){e in o||(o[e]=[]),o[e].push(i);continue}i=d(i)}for(a in i)n.call(i,a)&&(r[e][a]=i[a])}}return Function.prototype.toLocaleString.apply(s,arguments)},c=function(t){for(var e,i=o[t],s=0,n=i.length;s"+e+"<% } %>";t.DssLayout=o.Layout.extend({template:a.template(l,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-dss-layout",events:{"click .spp-dsst-scroll":"scrollerClick","keypress .spp-dsst-scroll":"scrollerClick","click .spp-dsst-cancel-btn":"unblock","keypress .spp-dsst-cancel-btn":"unblock","click .spp-share-btn":"shareButtonClick","keypress .spp-share-btn":"shareButtonClick","click .spp-button-download":"download","keypress .spp-button-download":"download","keypress .spp-download-image":"download","mouseenter .spp-dss-row":"showIcons","keypress .spp-dss-row":"toggleIcons","touchend .spp-dss-row":"showIcons","keyup *":function(t){27==t.which&&this.unblock()}},onRender:function(){var t=this.model.get("data");if(t.isSticky)return void("dark"==t.style&&this.$el.addClass("spp-dark"));var e=0;t.social_facebook&&"false"!==t.social_facebook&&e++,t.social_twitter&&"false"!==t.social_twitter&&e++,t.social_gplus&&"false"!==t.social_gplus&&e++,t.social_linkedin&&"false"!==t.social_linkedin&&e++,t.social_pinterest&&"false"!==t.social_pinterest&&e++,t.social_email&&"false"!==t.social_email&&e++;var i="14%";6==e?i="14%":5==e?i="17%":4==e?i="22%":3==e?i="22%":2==e?i="29%":1==e&&(i="45%"),this.$(".spp-share-icon-container1").cssExtended("max-width",i,AP_Player.importantStr),this.$(".spp-share-icon-container").cssExtended("max-width",i,AP_Player.importantStr)},onShow:function(){var t=this.model.get("data");if(t.isSticky)null!==t.show_logo&&void 0!==t.show_logo||this.$el.closest(".spp-dsst-region").addClass("spp-no-image"),this.$(".spp-dsst-icon-list-outer").jScrollPane(),this.$(".spp-dsst-row").each(function(){var t=0;window.innerWidth>768&&(t+=70),r(this).find(".spp-dsst-icon-list-inner > *").each(function(){t+=r(this).outerWidth(!0)}),t+=40,r(this).find(".spp-dsst-icon-list-inner").css("width",t+"px");var e=r(this).find(".spp-dsst-icon-list-outer"),i=(r(this).find(".spp-dsst-icon-list-inner"),parseInt(e.css("width"),10));t<=i&&r(this).find(".spp-dsst-scroll").css("visibility","hidden")});else{for(var e=0,i=0;i2*o?n.addClass("spp-dss-row-triple"):e>o&&n.addClass("spp-dss-row-double")}},scrollerClick:function(t){var e=r(t.currentTarget),i=e.closest(".spp-dsst-row"),s=i.find(".jspPane"),n=parseInt(s.css("left"),10)||0;r(t.currentTarget).hasClass("spp-dsst-scroll-left")?n+=300:n-=300;var o=parseInt(s.find(".spp-dsst-icon-list-inner").css("width"),10)-parseInt(s.css("width"),10);o=-Math.max(o,0),n=Math.min(n,0),n=Math.max(n,o),s.css("left",n+"px"),n>=0?i.find(".spp-dsst-scroll-left").cssExtended("visibility","hidden",AP_Player.importantStr):i.find(".spp-dsst-scroll-left").cssExtended("visibility","visible",AP_Player.importantStr),n<=o?i.find(".spp-dsst-scroll-right").cssExtended("visibility","hidden",AP_Player.importantStr):i.find(".spp-dsst-scroll-right").cssExtended("visibility","visible",AP_Player.importantStr)},unblock:function(){if(this.model.get("data").isSticky)r.unblockUI();else{var t=this.$el.closest(".spp-player-layout");t.children(".blockUI").length>0&&(t.unblock(),t.find(".spp-more").first().find(".spp-control").focus())}},showIcons:function(t){this.model.get("data").isSticky||(r(t.currentTarget).hasClass("spp-show-icons")||(this.$el.find(".spp-dss-row").removeClass("spp-show-icons"),r(t.currentTarget).addClass("spp-show-icons"),r(t.currentTarget).find(".spp-control").attr("tabindex","0"),t.preventDefault()),"touchend"==t.type&&r(t.currentTarget).find(".spp-button-download").length>0&&this.download(t))},hideIcons:function(t){this.model.get("data").isSticky||r(t.currentTarget).hasClass("spp-show-icons")&&(r(t.currentTarget).removeClass("spp-show-icons"),r(t.currentTarget).find(".spp-control").removeAttr("tabindex"),t.preventDefault())},toggleIcons:function(t){this.model.get("data").isSticky||(r(t.currentTarget).hasClass("spp-show-icons")?this.hideIcons(t):this.showIcons(t))},socialPopup:function(t){window.open(t,"pinterest","screenX=100,screenY=100,height=360,width=730")},shareButtonClick:function(t){var e,i=this,s=i.model.get("data"),n=r(t.currentTarget);if(e=s.permalink?s.permalink:window.location.href,n.hasClass("spp-facebook")&&this.socialPopup("http://www.facebook.com/sharer.php?m2w&s=100&p[url]="+encodeURIComponent(e)+"&p[images][0]=&p[title]="+encodeURIComponent(s.title)),n.hasClass("spp-twitter")){var o="https://twitter.com/intent/tweet?";if(s.tweet_text?o+="text="+encodeURIComponent(s.tweet_text):o+="text="+encodeURIComponent(s.title),o+="&url="+encodeURIComponent(e),s.hashtag){o+="&hashtags=";for(var a=s.hashtag.split(","),l=0;l\n \n\n
\r\n
\r\n\t<% if (options.email_portal === "ck") { %>\r\n\t\t<%= options.email_ck_html %>\r\n\t<% } else if (options.email_portal === "mc") { %>\r\n\t\t<%= options.email_mc_html %>\r\n\t<% } else if (options.email_portal === "enable") { %>\r\n\t\t<% if (options.email_service === "ctct") { %>\r\n\t\t\t<%= options.email_embed_html_ctct %>\r\n\t\t<% } else { %>\r\n\t\t\t<%= options.email_embed_html %>\r\n\t\t<% } %>\r\n\t<% } %>\r\n
\r\n'}),c("entities/news",["spp-app","text!templates/newsletter-template.html","l10n","translations"],function(t,e){return t.module("News",function(t,i,s,n,o,r){t.NewsLayout=n.Layout.extend({template:r.template(e,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-news-layout",events:{"click .spp-close-action":"closeOverlay","keypress .spp-close-action":"closeOverlay","keyup div":function(t){27==t.which&&this.closeOverlay()}},setWidthLeftAndTop:function(t){var e=t.closest(".spp-news-overlay"),i=t.width(),s=t.height(),n=(o(window).width()-i)/2;(n+=o(window).scrollLeft())<0&&(n=0);var r=(o(window).height()-s)/2;r<0&&(r=0),e.css("width",i),e.css("left",n+"px"),e.css("top",r+"px")},setHeight:function(t,e){var i=t.closest(".spp-news-overlay"),s=t.height();i.css("height",s+e),s>o(window).height()&&(i.css("top",""),i.css("bottom","25px"))},onShow:function(){var t=this,e=this.model.get("options");o(".spp-ctct").detach().appendTo(this.$el.find(".spp-news-custom-cta")).show(),o(".spp-shsp-form-"+e.uid).detach().appendTo(this.$el.find(".spp-news-custom-cta")).show(),t.setWidthLeftAndTop(t.$el),t.setHeight(t.$el,0),this.$el.find("img").load(function(){t.setWidthLeftAndTop(t.$el),t.setHeight(t.$el,0)})},closeOverlay:function(){this.$el.find(".spp-ctct").hide().detach().appendTo(o("body")),this.$el.find(".spp-shsp-form").hide().detach().appendTo(o("body")),o.unblockUI();var t=this.$el.closest(".spp-player-layout");t.children(".blockUI").length>0&&(t.unblock(),t.find(".spp-news").first().focus());var e=this.model.get("playerView");e&&e.$el.closest(".spp-player-layout").find(".spp-main-image").show()},elementsTabbable:function(t){t?this.$el.find(".spp-close").attr("tabindex","0"):this.$el.find(".spp-close").removeAttr("tabindex")},removeOutlines:function(){this.$el.find(".spp-control").each(function(){this.classList&&this.classList.add("spp-no-outline")})},focusFirstControl:function(){this.$el.find(".spp-first-name-input").first().focus()}})}),t.News.NewsLayout}),c("text!templates/progress-bar-template.html",[],function(){return'
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n'}),c("entities/progress-bar",["spp-app","text!templates/progress-bar-template.html"],function(t,e){return t.module("ProgressBar",function(t,i,n,o,r,a){t.ProgressBarLayout=o.Layout.extend({template:a.template(e),className:"spp-progress-bar-layout",events:{"mousemove .spp-progress-bar-holder":"cursorMove","touchstart .spp-progress-bar-bar":"touchStart","touchmove .spp-progress-bar-bar":"touchMove","touchend .spp-progress-bar-bar":"touchEnd","mouseenter .spp-progress-bar-holder":"mouseenter","mouseleave .spp-progress-bar-holder":"mouseleave","click .spp-position":"positionClick","keypress .spp-position":"positionClick","click .spp-time-elapsed":"positionClick","keypress .spp-time-elapsed":"positionClick","click .spp-time-remaining":"positionClick","keypress .spp-time-remaining":"positionClick"},parentView:function(){return this.model.get("data").parentView},shortcode_options:function(){return this.model.get("data").shortcode_options},onRender:function(){this.$barholder=this.$el.find(".spp-progress-bar-holder"),this.$bar=this.$el.find(".spp-progress-bar"),this.$barbar=this.$el.find(".spp-progress-bar-bar"),this.$position=this.$el.find(".spp-position"),this.$seek_time=this.$el.find(".spp-seek-time"),this.$progress_played=this.$el.find(".spp-progress-played"),this.$time_elapsed=this.$el.find(".spp-time-elapsed"),this.$time_remaining=this.$el.find(".spp-time-remaining");var t=this;r(window).on("resize",function(){t.resize()})},resize:function(){this.isTouchDevice=!1},mouseenter:function(t){if(!this.isTouchDevice&&this.parentView().isSoundLoaded()){var e=t.pageX-this.$barbar.offset().left,i=t.pageY-this.$barholder.offset().top;if(!(i<0||i>this.$barholder[0].clientHeight||e<0||e>this.$barbar[0].clientWidth)){var s=this.$barbar.offset(),e=t.pageX-s.left;this.showTimestamp(e,this.model)}}},cursorMove:function(t){if(!this.isTouchDevice){var e=this.isCursorMoving;if(this.isCursorMoving=!0,e&&this.parentView().isSoundLoaded()){var i=t.pageX-this.$barbar.offset().left,s=t.pageY-this.$barholder.offset().top;if(!(s<0||s>this.$barholder[0].clientHeight||i<0||i>this.$barbar[0].clientWidth)){var n=this.$barbar.offset(),i=t.pageX-n.left;this.showTimestamp(i,this.model)}}}},mouseleave:function(t){this.parentView().isSoundLoaded()&&this.hideTimestamp()},touchStart:function(t){this.isTouchDevice=!0,this.isTouchMoving=!1,this.horizontalTouchMove=!1,this.touchStartX=t.originalEvent.touches[0].clientX,this.touchStartY=t.originalEvent.touches[0].clientY},touchMove:function(t){if(this.isTouchMoving=!0,this.parentView().isSoundLoaded()){var e=t.originalEvent.touches[0];if(this.horizontalTouchMove||!(Math.abs(this.touchStartX-e.clientX)0&&n.hover_timestamp){var o=s*t/i/1e3,r=Math.floor(o%60),a=Math.floor(o/60%60),l=Math.floor(o/3600),d=a+":";d+=r>9?r:"0"+r,l>0&&(d=a>9?l+":"+d:l+":0"+d),this.$seek_time.text(d);var p=this.$seek_time.width(),c=t-p/2;this.$seek_time.cssExtended("left",c+"px","important"),this.$seek_time.cssExtended("display","block","important")}},hideTimestamp:function(){var t=this.parentView().getProgressPercent();this.$position.cssExtended("left",t+"%","important"),this.$seek_time.cssExtended("display","none","important"),this.$bar.removeClass("spp-hover"),this.hover=!1},progressUpdate:function(t,e){if(!this.isTouchMoving){var i=t/e*100;this.$progress_played.cssExtended("width",i+"%",AP_Player.importantStr),this.$position.cssExtended("display","block",AP_Player.importantStr);var s=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);this.hover&&!s||this.$position.cssExtended("left",i+"%",AP_Player.importantStr);var n=this.toTimeString(t),o=this.toTimeString(e-t);this.$time_elapsed.text(n),t>e||this.$time_remaining.text(o)}},toTimeString:function(t){var e=Math.floor(t%60),i=Math.floor(t/60%60),n=Math.floor(t/3600);return n>0?n+":"+s(i,2)+":"+s(e,2):i+":"+s(e,2)}})}),t.ProgressBar.ProgressBarLayout}),function(){function t(t){function e(e,s){var o,m,g=e==window,v=s&&void 0!==s.message?s.message:void 0;if(s=t.extend({},t.blockUI.defaults,s||{}),!s.ignoreIfBlocked||!t(e).data("blockUI.isBlocked")){if(s.overlayCSS=t.extend({},t.blockUI.defaults.overlayCSS,s.overlayCSS||{}),o=t.extend({},t.blockUI.defaults.css,s.css||{}),s.onOverlayClick&&(s.overlayCSS.cursor="pointer"),m=t.extend({},t.blockUI.defaults.themedCSS,s.themedCSS||{}),v=void 0===v?s.message:v,g&&h&&i(window,{fadeOut:0}),v&&"string"!=typeof v&&(v.parentNode||v.jquery)){var y=v.jquery?v[0]:v,w={};t(e).data("blockUI.history",w),w.el=y,w.parent=y.parentNode,w.display=y.style.display,w.position=y.style.position,w.parent&&w.parent.removeChild(y)}t(e).data("blockUI.onUnblock",s.onUnblock);var b,_,k,x,S=s.baseZ;b=t(p||s.forceIframe?'':''),_=t(s.theme?'':''),s.theme&&g?(x='"):s.theme?(x='"):x=g?'':'',k=t(x),v&&(s.theme?(k.css(m),k.addClass("ui-widget-content")):k.css(o)),s.theme||_.css(s.overlayCSS),_.css("position",g?"fixed":"absolute"),(p||s.forceIframe)&&b.css("opacity",0);var P=[b,_,k],C=t(g?"body":e);t.each(P,function(){this.appendTo(C)}),s.theme&&s.draggable&&t.fn.draggable&&k.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var M=u&&(!t.support.boxModel||t("object,embed",g?null:e).length>0);if(c||M){if(g&&s.allowBodyStretch&&t.support.boxModel&&t("html,body").css("height","100%"),(c||!t.support.boxModel)&&!g)var T=l(e,"borderTopWidth"),A=l(e,"borderLeftWidth"),E=T?"(0 - "+T+")":0,O=A?"(0 - "+A+")":0;t.each(P,function(t,e){var i=e[0].style;if(i.position="absolute",t<2)g?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+s.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),g?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),O&&i.setExpression("left",O),E&&i.setExpression("top",E);else if(s.centerY)g&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0;else if(!s.centerY&&g){var n=s.css&&s.css.top?parseInt(s.css.top,10):0,o="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+n+') + "px"';i.setExpression("top",o)}})}if(v&&(s.theme?k.find(".ui-widget-content").append(v):k.append(v),(v.jquery||v.nodeType)&&t(v).show()),(p||s.forceIframe)&&s.showOverlay&&b.show(),s.fadeIn){var L=s.onBlock?s.onBlock:d,I=s.showOverlay&&!v?L:d,$=v?L:d;s.showOverlay&&_._fadeIn(s.fadeIn,I),v&&k._fadeIn(s.fadeIn,$)}else s.showOverlay&&_.show(),v&&k.show(),s.onBlock&&s.onBlock.bind(k)();if(n(1,e,s),g?(h=k[0],f=t(s.focusableElements,h),s.focusInput&&setTimeout(r,20)):a(k[0],s.centerX,s.centerY),s.timeout){var j=setTimeout(function(){g?t.unblockUI(s):t(e).unblock(s)},s.timeout);t(e).data("blockUI.timeout",j)}}}function i(e,i){var o,r=e==window,a=t(e),l=a.data("blockUI.history"),d=a.data("blockUI.timeout");d&&(clearTimeout(d),a.removeData("blockUI.timeout")),i=t.extend({},t.blockUI.defaults,i||{}),n(0,e,i),null===i.onUnblock&&(i.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock"));var p;p=r?t("body").children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),i.cursorReset&&(p.length>1&&(p[1].style.cursor=i.cursorReset),p.length>2&&(p[2].style.cursor=i.cursorReset)),r&&(h=f=null),i.fadeOut?(o=p.length,p.stop().fadeOut(i.fadeOut,function(){0==--o&&s(p,l,i,e)})):s(p,l,i,e)}function s(e,i,s,n){var o=t(n);if(!o.data("blockUI.isBlocked")){e.each(function(t,e){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.el.style.cursor="default",i.parent&&i.parent.appendChild(i.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof s.onUnblock&&s.onUnblock(n,s);var r=t(document.body),a=r.width(),l=r[0].style.width;r.width(a-1).width(a),r[0].style.width=l}}function n(e,i,s){var n=i==window,r=t(i);if((e||(!n||h)&&(n||r.data("blockUI.isBlocked")))&&(r.data("blockUI.isBlocked",e),s.bindEvents&&(!e||s.showOverlay))){var a="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";e?t(document).bind(a,s,o):t(document).unbind(a,o)}}function o(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&h&&e.data.constrainTabKey){var i=f,s=!e.shiftKey&&e.target===i[i.length-1],n=e.shiftKey&&e.target===i[0];if(s||n)return setTimeout(function(){r(n)},10),!1}var o=e.data,a=t(e.target);return a.hasClass("blockOverlay")&&o.onOverlayClick&&o.onOverlayClick(e),a.parents("div."+o.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function r(t){if(f){var e=f[!0===t?f.length-1:0];e&&e.focus()}}function a(t,e,i){var s=t.parentNode,n=t.style,o=(s.offsetWidth-t.offsetWidth)/2-l(s,"borderLeftWidth"),r=(s.offsetHeight-t.offsetHeight)/2-l(s,"borderTopWidth");e&&(n.left=o>0?o+"px":"0"),i&&(n.top=r>0?r+"px":"0")}function l(e,i){return parseInt(t.css(e,i),10)||0}t.fn._fadeIn=t.fn.fadeIn;var d=t.noop||function(){},p=/MSIE/.test(navigator.userAgent),c=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),u=(document.documentMode,t.isFunction(document.createElement("div").style.setExpression));t.blockUI=function(t){e(window,t)},t.unblockUI=function(t){i(window,t)},t.growlUI=function(e,i,s,n){var o=t('
');e&&o.append("

"+e+"

"),i&&o.append("

"+i+"

"),void 0===s&&(s=3e3);var r=function(e){e=e||{},t.blockUI({message:o,fadeIn:void 0!==e.fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:s,centerY:!1,showOverlay:!1,onUnblock:n,css:t.blockUI.defaults.growlCSS})};r();o.css("opacity");o.mouseover(function(){r({fadeIn:0,timeout:3e4});var e=t(".blockMsg");e.stop(),e.fadeTo(300,1)}).mouseout(function(){t(".blockMsg").fadeOut(1e3)})},t.fn.block=function(i){if(this[0]===window)return t.blockUI(i),this;var s=t.extend({},t.blockUI.defaults,i||{});return this.each(function(){var e=t(this);s.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==t.css(this,"position")&&(this.style.position="relative",t(this).data("blockUI.static",!0)),this.style.zoom=1,e(this,i)})},t.fn.unblock=function(e){return this[0]===window?(t.unblockUI(e),this):this.each(function(){i(this,e)})},t.blockUI.version=2.7,t.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var h=null,f=[]}"function"==typeof c&&c.amd&&c.amd.jQuery?c("blockUI",["jquery"],t):t(jQuery)}(),function(t){"use strict";"function"==typeof c&&c.amd?c("rangeslider",["jquery"],t):"object"==typeof exports?module.exports=t(p("jquery")):t(jQuery)}(function(t){"use strict";function e(t,e){var i=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)}function i(t,e){return e=e||100,function(){if(!t.debouncing){var i=Array.prototype.slice.apply(arguments);t.lastReturnVal=t.apply(window,i),t.debouncing=!0}return clearTimeout(t.debounceTimeout),t.debounceTimeout=setTimeout(function(){t.debouncing=!1},e),t.lastReturnVal}}function s(t){return t&&(0===t.offsetWidth||0===t.offsetHeight||!1===t.open)}function n(t){for(var e=[],i=t.parentNode;s(i);)e.push(i),i=i.parentNode;return e}function o(t,e){function i(t){void 0!==t.open&&(t.open=!t.open)}var s=n(t),o=s.length,r=[],a=t[e];if(o){for(var l=0;l'),this.$handle=t('
'),this.$range=t('
').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=t.proxy(this.handleDown,this),this.handleMove=t.proxy(this.handleMove,this),this.handleEnd=t.proxy(this.handleEnd,this),this.init();var o=this;this.$window.on("resize."+this.identifier,i(function(){e(function(){o.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(t,e){if(!e||e.origin!==o.identifier){var i=t.target.value,s=o.getPositionFromValue(i);o.setPosition(s)}})}Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!==t};var d="rangeslider",p=0,c=function(){var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}(),u={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},h={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return l.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},l.prototype.update=function(t,e){t=t||!1,t&&(this.min=r(this.$element[0].getAttribute("min"),0),this.max=r(this.$element[0].getAttribute("max"),100),this.value=r(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=r(this.$element[0].getAttribute("step"),1)),this.handleDimension=o(this.$handle[0],"offset"+a(this.DIMENSION)),this.rangeDimension=o(this.$range[0],"offset"+a(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,e)},l.prototype.handleDown=function(t){if(t.preventDefault(),this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),!((" "+t.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var e=this.getRelativePosition(t),i=this.$range[0].getBoundingClientRect()[this.DIRECTION],s=this.getPositionFromNode(this.$handle[0])-i,n="vertical"===this.orientation?this.maxHandlePos-(e-this.grabPos):e-this.grabPos;this.setPosition(n),e>=s&&ei?i:t},l.prototype.setPosition=function(t,e){var i,s;void 0===e&&(e=!0),i=this.getValueFromPosition(this.cap(t,0,this.maxHandlePos)),s=this.getPositionFromValue(i),this.$fill[0].style[this.DIMENSION]=s+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=s+"px",this.setValue(i),this.position=s,this.value=i,e&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(s,i)},l.prototype.getPositionFromNode=function(t){for(var e=0;null!==t;)e+=t.offsetLeft,t=t.offsetParent;return e},l.prototype.getRelativePosition=function(t){var e=a(this.COORDINATE),i=this.$range[0].getBoundingClientRect()[this.DIRECTION],s=0;return void 0!==t.originalEvent["client"+e]?s=t.originalEvent["client"+e]:t.originalEvent.touches&&t.originalEvent.touches[0]&&void 0!==t.originalEvent.touches[0]["client"+e]?s=t.originalEvent.touches[0]["client"+e]:t.currentPoint&&void 0!==t.currentPoint[this.COORDINATE]&&(s=t.currentPoint[this.COORDINATE]),s-i},l.prototype.getPositionFromValue=function(t){var e;return e=(t-this.min)/(this.max-this.min),Number.isNaN(e)?0:e*this.maxHandlePos},l.prototype.getValueFromPosition=function(t){var e,i;return e=t/(this.maxHandlePos||1),i=this.step*Math.round(e*(this.max-this.min)/this.step)+this.min,Number(i.toFixed(this.toFixed))},l.prototype.setValue=function(t){t===this.value&&""!==this.$element[0].value||this.$element.val(t).trigger("input",{origin:this.identifier})},l.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+d),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},t.fn[d]=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),n=s.data("plugin_"+d);n||s.data("plugin_"+d,n=new l(this,e)),"string"==typeof e&&n[e].apply(n,i)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),c("entities/player-view",["spp-app","text!templates/main-template.html","text!templates/volume-template.html","apps/smart-podcast-player/dss","entities/news","entities/progress-bar","blockUI","l10n","translations","rangeslider"],function(t,e,i){return t.module("Player",function(t,s,n,o,r,l){t.PlayerLayout=o.ItemView.extend({template:l.template(e,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-main-view",events:{"click .spp-news":"clickNews","keypress .spp-news":"clickNews","click .spp-play-pause-circle":"clickPlay","keypress .spp-play-pause-circle":"clickPlay","click .spp-play-pause":"clickPlay","keypress .spp-play-pause":"clickPlay","click .spp-speed":"clickSpeed","keypress .spp-speed":"clickSpeed","click .spp-button-download":"download","keypress .spp-button-download":"download","click .spp-more":"clickMore","keypress .spp-more":"clickMore","click .spp-sticky-expand":"clickStickyExpand","keypress .spp-sticky-expand":"clickStickyExpand","click .spp-more-show-notes":"clickMoreShowNotes","keypress .spp-more-show-notes":function(t){13==t.which&&this.clickMoreShowNotes()},"click .spp-step-forward":"clickStepForward","keypress .spp-step-forward":"clickStepForward","click .spp-step-back":"clickStepBack","keypress .spp-step-back":"clickStepBack","click .spp-volume":"clickVolume","keypress .spp-volume":"clickVolume","mouseenter .spp-volume":"mouseenterVolume","mouseleave .spp-controls":"mouseleaveVolume","mouseleave .spp-volume-slider":"mouseleaveVolume"},initialize:function(){this.hover=!1,this.useScrollHack=!(CSS&&CSS.supports&&CSS.supports("touch-action","none"));var t=this;r(window).on("resize",function(){t.resize(!1)}),data=this.model.get("data"),data.isStp&&!data.isSticky&&data.isCurrentlyStpDesktop?data.haveMoreButton=data.social&&"false"!==data.social||data._subscribe_any:data.haveMoreButton=data.social&&"false"!==data.social||data._subscribe_any||"true"==data.download},whileplaying:function(t){var e=t.durationEstimate/1e3,i=t.position/1e3;this.progressBarRegion.currentView.progressUpdate(i,e)},clickPlay:function(t){this.isCursorMoving=!1;var e=this.model.get("playState");"play"==e?this.model.set("playState","pause"):"initial"==e?this.model.set("playState","load"):"pause"==e&&this.model.set("playState","play"),r(t.currentTarget).find(".spp-control").focus()},clickSpeed:function(e){this.isCursorMoving=!1;var i=soundManager.getSoundById("track_"+this.model.cid);null!=i&&i.loaded&&(this.options.isStp?t.StpController.rotateTrackSpeed(this.options.stpLayout):t.Controller.rotateTrackSpeed(this.options.sppLayout),r(e.currentTarget).find(".spp-control").focus())},initVolume:function(){if(0===this.$(".rangeslider").length){var t=this;this.$el.find(".spp-volume-slider-input").rangeslider({polyfill:!1,orientation:"vertical",onSlide:function(e,i){t.changeVolume(i)}})}},volumeStopScroll:function(t){return t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1,!1},showVolume:l.debounce(function(){this.$(".spp-volume-slider").addClass("spp-volume-displayed"),this.initVolume(),this.useScrollHack&&(document.body.addEventListener("touchmove",this.volumeStopScroll,{passive:!1}),this.volumeTouchListener=this.touchWhileVolumeDisplayed.bind(this),document.body.addEventListener("touchstart",this.volumeTouchListener)),this.volumeDisplayed=!0},200),hideVolume:function(){this.$(".spp-volume-slider").removeClass("spp-volume-displayed"),this.useScrollHack&&(document.body.removeEventListener("touchmove",this.volumeStopScroll,{passive:!1}),document.body.removeEventListener("touchstart",this.volumeTouchListener)),this.volumeDisplayed=!1},mouseenterVolume:function(){this.volumeDisplayed||this.showVolume()},mouseleaveVolume:function(){this.volumeDisplayed&&this.hideVolume()},clickVolume:function(){this.volumeDisplayed?this.hideVolume():this.showVolume()},touchWhileVolumeDisplayed:function(t){this.volumeDisplayed&&!t.target.closest(".spp-volume")&&this.hideVolume()},openEmailDialog:function(t){var e=l.template('
'),i=.95*r(window).width();i>600&&(i=600),/Edge/.test(navigator.userAgent)&&this.$el.closest(".spp-player-layout").find(".spp-main-image").hide();var o="#000";"dark"===this.options.shortcode_options.style&&(o="#FFF");var a=this;r.blockUI({message:e(),blockMsgClass:"spp-news-overlay",css:{width:i+"px",color:o},centerX:!1,centerY:!1,baseZ:2e5,onOverlayClick:function(){r(".spp-ctct").hide().detach().appendTo(r("body")),r(".spp-shsp-form-"+a.options.shortcode_options.uid).hide().detach().appendTo(r("body")),r.unblockUI(),a.$el.closest(".spp-player-layout").find(".spp-main-image").show()}});var d=new n.Marionette.Region({el:r("body").find(".spp-news-region").last()});d.show(new s.News.NewsLayout({model:new n.Model({options:this.options.shortcode_options,playerView:this})})),"dark"===this.options.shortcode_options.style&&r(".spp-news-overlay").addClass("spp-news-overlay-dark"),d.currentView.elementsTabbable(!0),"click"==t.type&&d.currentView.removeOutlines(),d.currentView.focusFirstControl()},executeFunctionByName:function(t,e){for(var i=Array.prototype.slice.call(arguments,2),s=t.split("."),n=s.pop(),o=0;o20?(this.$(".spp-show-logo").cssExtended("display","",AP_Player.importantStr),s.each(function(){r(this).cssExtended("height",a+"px",AP_Player.importantStr),r(this).cssExtended("width",a+"px",AP_Player.importantStr)})):this.$(".spp-show-logo").cssExtended("display","none",AP_Player.importantStr);var l=this.$(".spp-volume").width();if(l){var d=(l-40)/2;this.$(".spp-volume-slider").cssExtended("left",d+"px",AP_Player.importantStr)}var p=i.outerHeight()-80;"top"==e.position?(i.css("top",-p+"px"),i.animate({top:0},500)):(i.css("bottom",-p+"px"),i.animate({bottom:0},500))}},makeStickyCollapsed:function(t){var e=this.model.get("data"),i=t.$el.closest(".smart-track-player"),s=t.$(".spp-show-logo").children();s=s.add(t.$(".spp-show-logo")),"top"==e.position?i.css("top",0):i.css("bottom",0),i.removeClass("spp-stp-mobile"),i.addClass("spp-stp-desktop"),i.removeClass("spp-sticky-expanded"),i.addClass("spp-sticky-collapsed"),t.$(".spp-show-logo").cssExtended("display","",AP_Player.importantStr),s.each(function(){r(this).cssExtended("height","",AP_Player.importantStr),r(this).cssExtended("width","",AP_Player.importantStr)})},clickMore:function(t){for(var e=this.model.get("data"),i=[e.download,e.social],o=!1,a=0;a
'),u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),h=Math.min(70,.12*u)/2,f=Math.min(70,.12*u)+29,m=l.range(h,600,f),g=l.findLastIndex(m,function(t){return t<=u}),v=m[g],y=(r(window).width()-v)/2,w="dark"==e.style?"#111":"#aaa",b="dark"==e.style?"#111":"#FFF";r.blockUI({message:c({data:e}),css:{border:"1px solid "+w,backgroundColor:b,cursor:"default","border-radius":"5px",color:"inherit",width:v+"px",left:y+"px",top:"10%"},overlayCSS:{opacity:.9},centerX:!1,centerY:!1,onOverlayClick:function(){r.unblockUI()}});var _=new n.Marionette.Region({el:r(".spp-dsst-region").last()})}else{var c=l.template('
');d.block({message:c({data:e}),css:{left:.05*p.width()+"px",width:.9*p.width()+"px",bottom:e.isCurrentlyStpDesktop?"0":"25px",top:"auto",border:"1px solid #aaa",cursor:"default","border-radius":"5px",color:"inherit"},centerX:!1,centerY:!1,baseZ:500,onOverlayClick:function(){d.unblock()}});var _=new n.Marionette.Region({el:d.find(".spp-dss-region").last()})}_.show(new s.Dss.DssLayout({model:this.model})),_.currentView.elementsTabbable(!0),"click"==t.type&&_.currentView.removeOutlines(),_.currentView.focusFirstControl()},clickMoreShowNotes:function(t){s.trigger("toggleEpisodeDetails",this.options.sppLayout,"click"==t.type)},clickStepBack:function(){var t=soundManager.getSoundById("track_"+this.model.cid);t.setPosition(t.position-15e3)},clickStepForward:function(t){var e=soundManager.getSoundById("track_"+this.model.cid);e.setPosition(e.position+6e4)},seek:function(t){var e="track_"+this.model.cid;"play"!==this.model.get("playState")&&(soundManager.pauseAll(),this.model.set("playState","play"));var i=soundManager.getSoundById(e);i.setPosition(t*i.durationEstimate)},seekSeconds:function(t){var e="track_"+this.model.cid;"play"!==this.model.get("playState")&&(soundManager.pauseAll(),"pause"===this.model.get("playState")?this.model.set("playState","play"):this.model.set("playState","load")),soundManager.getSoundById(e).setPosition(1e3*t)},pause:function(){"play"==this.model.get("playState")&&this.model.set("playState","pause")},play:function(){var t=this.model.get("playState");"initial"==t?this.model.set("playState","load"):"pause"==t&&this.model.set("playState","play")},download:function(t){this.isCursorMoving=!1,t.preventDefault();var e=this.model.get("data"),i=e.download_url,s=e.download_id;if("https:"===location.protocol&&(i=i.replace(/^http:\/\//i,"https://")),"soundcloud"==e.method)var n=i.includes("?")?"&":"?",o=i+n+"consumer_key="+AP_Player.soundcloudConsumerKey;else if(AP_Player.fbx_download_url)var o=AP_Player.fbx_download_url+"?url="+i;else var o=AP_Player.homeUrl+"/?spp_download="+s;/iPhone|iPad|iPod/i.test(navigator.userAgent)?window.open(i,"_blank"):"soundcloud"==e.method?window.location=o:this.$(".spp-downloader").prop("src",o)},animateStpEllipsis:function(){if(this.$(".spp-loading-ellipsis").length>0){var t=this,e=0;this.loading_timer=setInterval(function(){e++;var i=new Array(5);try{i.fill(" "),i.fill(".",0,e%5+1),t.$(".spp-loading-ellipsis").html(i.join(""))}catch(t){}},300)}},resize:function(t){var e=this.model.get("data");e.isSticky&&this.makeStickyCollapsed(this),null!==e.show_logo&&void 0!==e.show_logo||this.$el.closest(".smart-track-player").addClass("spp-no-image");var i=("mobile"===e.view||window.innerWidth<=768)&&!e.isSticky;if(e.isCurrentlyStpDesktop=e.isStp&&!i,e.isStp&&i&&!e.isSticky&&(this.$el.closest(".smart-track-player").removeClass("spp-stp-desktop").addClass("spp-stp-mobile"),"dark"===e.style&&this.$el.closest(".smart-track-player").addClass("smart-podcast-player-dark"),this.$(".spp-top-matter").cssExtended("width","",AP_Player.importantStr),this.$(".spp-progress-bar-holder").cssExtended("width","100%",AP_Player.importantStr),this.$(".spp-progress-bar-holder").cssExtended("left","",AP_Player.importantStr),this.$(".spp-artist-and-title").cssExtended("width","",AP_Player.importantStr),null===e.show_logo||void 0===e.show_logo?(this.$(".spp-show-logo").cssExtended("display","none",AP_Player.importantStr),this.$el.closest(".smart-track-player").cssExtended("height","262px",AP_Player.importantStr)):this.$el.closest(".smart-track-player").cssExtended("height","372px",AP_Player.importantStr),e.artist||"none"!==e.email_portal?this.$el.find(".spp-track-title").cssExtended("max-height","3.0em",AP_Player.importantStr):this.$el.find(".spp-track-title").cssExtended("max-height","4.5em",AP_Player.importantStr)),e.isStp&&!i&&!e.isSticky){if(this.$el.closest(".smart-track-player").addClass("spp-stp-desktop").removeClass("spp-stp-mobile"),this.$el.closest(".smart-track-player").cssExtended("height","",AP_Player.importantStr),null===e.show_logo||void 0===e.show_logo);else{var s="calc(100% - 100px)",n=/MSIE 10.0;/.test(navigator.userAgent);n&&(s=this.$el.parent().width()-100+"px",this.$(".spp-top-matter").cssExtended("left","100px",AP_Player.importantStr),this.$(".spp-artist-and-title").cssExtended("height","50px",AP_Player.importantStr)),this.$(".spp-top-matter").cssExtended("width",s,AP_Player.importantStr),this.$(".spp-progress-bar-holder").cssExtended("width",s,AP_Player.importantStr),this.$(".spp-progress-bar-holder").cssExtended("left","100px",AP_Player.importantStr)}var o=110;if("false"!==e.volume&&(o+=39),"false"!==e.download&&(o+=39),("false"!==e.social||!1!==e.subscribe&&e._subscribe_any)&&(o+=39),"false"===e.download&&"false"===e.share||(o+=10),this.$(".spp-artist-and-title").cssExtended("width","calc(100% - "+o+"px)",AP_Player.importantStr),"none"!==e.email_portal){var r=this.$(".spp-news").outerWidth();r+=10,this.$(".spp-stpd-artist").cssExtended("width","calc(100% - "+r+"px)",AP_Player.importantStr),this.$(".spp-stpd-track-title").cssExtended("width","calc(100% - "+r+"px)",AP_Player.importantStr)}}if(e.isStp&&e.isSticky)if(null!==e.show_logo&&void 0!==e.show_logo||this.$(".spp-artist-and-title").cssExtended("margin-left","10px",AP_Player.importantStr),window.innerWidth<=768){this.$(".spp-top-matter").cssExtended("width","",AP_Player.importantStr);var a=this.el.clientHeight;a-=356,this.$(".spp-show-logo").cssExtended("height",a+"px",AP_Player.importantStr),this.$(".spp-show-logo").cssExtended("width",a+"px",AP_Player.importantStr)}else if(this.$(".spp-show-logo").cssExtended("height","",AP_Player.importantStr),this.$(".spp-show-logo").cssExtended("width","",AP_Player.importantStr),null===e.show_logo||void 0===e.show_logo){var s="calc(100% - 110px)";this.$(".spp-artist-and-title").cssExtended("width",s,AP_Player.importantStr),this.$(".spp-artist-and-title").cssExtended("width","",AP_Player.importantStr)}else{var s="calc(100% - 80px)",n=/MSIE 10.0;/.test(navigator.userAgent);n&&(s=this.$el.parent().width()-80+"px",this.$(".spp-top-matter").cssExtended("left","80px",AP_Player.importantStr)),this.$(".spp-top-matter").cssExtended("width",s,AP_Player.importantStr)}var l=this.$(".spp-volume").width();if(l){var d=(l-40)/2;this.$(".spp-volume-slider").cssExtended("left",d+"px",AP_Player.importantStr)}if(e.isStp){var p=/Version\/10\..(\..)? Safari/.test(navigator.userAgent);if(p){var c=this.$el.find(".spp-marquee");c.css("animation-play-state","paused")}var u=e.isRtl?"spp-marquee-rtl":"spp-marquee",h=this.$el.find(".spp-artist-first-container").children()[0],f=this.$el.find(".spp-stpd-artist")[0],m=h&&h.offsetWidth>f.clientWidth;"off"!==e.marquee&&m?(this.$el.find(".spp-artist-first-container").addClass(u),this.$el.find(".spp-artist-second-container").addClass(u)):(this.$el.find(".spp-artist-first-container").removeClass(u),this.$el.find(".spp-artist-second-container").removeClass(u));var g=this.$el.find(".spp-track-title-first-container").children()[0],v=this.$el.find(".spp-stpd-track-title")[0],y=g&&g.offsetWidth>v.clientWidth;if("off"!==e.marquee&&y?(this.$el.find(".spp-track-title-first-container").addClass(u),this.$el.find(".spp-track-title-second-container").addClass(u)):(this.$el.find(".spp-track-title-first-container").removeClass(u),this.$el.find(".spp-track-title-second-container").removeClass(u)),p){var w=this;setTimeout(function(){c.css("animation-play-state","running")},500),this.isFirstResize=!0,setTimeout(function(){w.isFirstResize&&(w.resize(!1),w.isFirstResize=!1)},250)}}e.isStp||(this.setCircleSize(),this.setTruncatedShowNotes(),this.setTitleClamp())},setCircleSize:function(){var t=.16*this.$el.width();if("number"==typeof t){t<20&&(t=20),t>70&&(t=70);var e=this.$el.find(".spp-play-pause-circle");e.cssExtended("width",t+"px","important"),e.cssExtended("height",t+"px","important"),e.cssExtended("top",t/5+"px","important")}},setTruncatedShowNotes:function(){var t=this.$el.height()-this.$el.find(".spp-top-matter").height()-this.$el.find(".spp-main-separator").outerHeight(!0)-this.$el.find(".spp-tag-list").outerHeight(!0)-this.$el.find(".spp-controls").outerHeight(!0),e=this.$el.find(".spp-truncated-show-notes").width(),i=this.model.get("data"),s=' '+"more".toLocaleString()+"",n=this.$el.find(".spp-truncated-show-notes");a(i.truncated_show_notes_700+s,"16px Roboto",e,n)'+e.tags[a]+"";this.$(".spp-tag-list").html(o)}var l=this.options.shortcode_options;if(!e.isStp&&0==l.hide_listens){var d=s.request("tracks:get",this.options.sppLayout),p=d.totalPlaybackCount();if(p){var c=p.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+" Listens";""!=e.show_name&&void 0!==e.show_name&&(c=" • "+c),this.$(".spp-show-count").text(c)}}this.model.set("playState","initial"),this.model.set("speed",1);var u=/MSIE (\d+\.\d+);/.test(navigator.userAgent)||1==!!document.documentMode;u&&this.$(".spp-controls").children().each(function(){r(this).hasClass("spp-play-pause-circle")||r(this).cssExtended("height","70px",AP_Player.importantStr)}),e.isStp&&"false"==e.download&&"false"==e.social&&"false"==e.subscribe&&this.$(".spp-more svg").cssExtended("display","none",AP_Player.importantStr);var h=("mobile"===e.view||window.innerWidth<=768)&&!e.isSticky;if(e.isStp&&!h&&"false"==e.social&&(0==e.subscribe||!e._subscribe_any)){var f=AP_Player.importantStr?" !important":"";this.$(".spp-more svg").attr("style","display: none"+f)}if(e.isStp&&"blurred_logo"===e.background_type&&e.show_logo){var u=/MSIE (\d+\.\d+);/.test(navigator.userAgent)||1==!!document.documentMode,m=/Edge\//.test(navigator.userAgent);u||m||(this.$(".spp-stpd-main-image").append(''),this.$(".spp-stpm-main-image").append(''),this.$(".spp-main-image").append(''))}e.isSticky&&this.$(".spp-controls").addClass("spp-sticky"),e.isRtl&&(this.$(".spp-stpd-track-title").cssExtended("direction","rtl",AP_Player.importantStr).cssExtended("text-align","right",AP_Player.importantStr),this.$(".spp-stpd-artist").cssExtended("direction","rtl",AP_Player.importantStr).cssExtended("text-align","right",AP_Player.importantStr)),this.$(".spp-volume").append(i),this.resize(!0)},onShow:function(){this.resize(!1)},changeVolume:function(t){var e=soundManager.getSoundById("track_"+this.model.cid);null!=e&&e.loaded&&e.setVolume(t)},updateSpeedControl:function(){this.$el.removeClass("spp-speeding-050"),this.$el.removeClass("spp-speeding-075"),this.$el.removeClass("spp-speeding-125"),this.$el.removeClass("spp-speeding-150"),this.$el.removeClass("spp-speeding-175"),this.$el.removeClass("spp-speeding-200"),this.$el.removeClass("spp-speeding-300");var t=this.model.get("speed");.5==t?this.$el.addClass("spp-speeding-050"):.75==t?this.$el.addClass("spp-speeding-075"):1.25==t?this.$el.addClass("spp-speeding-125"):1.5==t?this.$el.addClass("spp-speeding-150"):1.75==t?this.$el.addClass("spp-speeding-175"):2==t?this.$el.addClass("spp-speeding-200"):3==t&&this.$el.addClass("spp-speeding-300")}})}),t.on("changeEpisodePlaying",function(t,e){var i=t.mainRegion.currentView;if(i){var s=i.model.get("playState");"play"==s?(i.$el.removeClass("spp-loading"),i.$el.addClass("spp-playing"),i.$(".spp-play").attr("aria-label","Pause")):"load"==s?(i.$el.removeClass("spp-playing"),i.$el.addClass("spp-loading")):"pause"==s&&(i.$el.removeClass("spp-playing"),i.$(".spp-play").attr("aria-label","Play"))}}),t.on("changeSpeed",function(t,e){var i=t.mainRegion.currentView;i&&i.updateSpeedControl()}),t.reqres.setHandler("currentTrack",function(t){var e=t.mainRegion.currentView;if(e)return e.model}),t.Player.PlayerLayout}),c("apps/smart-track-player/stp-controller",["spp-app","entities/track-model","entities/player-view","soundmanager2"],function(t,e){return t.module("Player",function(t,i,s,o,r,a){t.StpLayout=o.Layout.extend({template:a.template('
'),className:"spp-player-layout",regions:{mainRegion:".spp-main-region"},initialize:function(){this.isMouse=!1,this.isStp=!0},events:{"mousedown .spp-control":function(){this.isMouse||(this.isMouse=!0,this.$el.find(".spp-control").each(function(){this.classList&&this.classList.add("spp-no-outline")}),this.$el.find(".spp-episode-details-body").addClass("spp-no-outline"))},"keydown .spp-control":function(t){this.isMouse&&9==t.which&&0==t.altKey&&(this.isMouse=!1,this.$el.find(".spp-control").each(function(){this.classList&&this.classList.remove("spp-no-outline")}),this.$el.find(".spp-episode-details-body").removeClass("spp-no-outline"))}},userTriggers:[]}),t.StpController={init:function(){function i(t){for(var e=l.length,i=0;i0){for(var y=v.start.split(":"),w=0,b=1;y.length>0;)w+=b*parseInt(y.pop(),10),b*=60;isNaN(w)||(v.start_msec=1e3*w)}!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&(v.volume="false"),v.email=o(v.title_shortcode,v.permalink),v._subscription_services=u,v._subscribe_any=!1,a.forEach(u,function(t){val=v["subscribe_"+t[0]],val&&"false"!==val&&(v._subscribe_any=!0)});var _=void 0!==v.latest;if(_)v.feed_url=v.feed_url;else{v.url=v.url,v.download_url=v.url;var k=document.createElement("a");k.href=v.url||v.feed_url;k.hostname.indexOf("soundcloud.com")>-1&&(v.method="soundcloud")} (_||"soundcloud"==v.method||"file"==v.method&&(void 0==v.title_shortcode||""==v.title_shortcode))&&(v.title='Getting file data...'),v.playing=!1,v.isStp=!0,v.isSticky="true"===v.sticky;var x=new t.StpLayout;r(d).removeClass("smart-track-player-container"),r(d).addClass("smart-track-player"),v.isSticky&&(r(d).addClass("spp-sticky"),"top"==v.position&&r(d).addClass("spp-sticky-top")),new s.Marionette.Region({el:r(d)}).show(x);var S=new e.Track({data:v});S.setLayout(x);var P=new t.PlayerLayout({model:S,stpLayout:x,shortcode_options:v.shortcode_options,isStp:!0});P.render(),x.mainRegion.show(P),P.resize(!0),P.animateStpEllipsis(),SmartPodcastPlayer._by_uid[v.uid]=x,"elapsed"===v.email_cta_open?SmartPodcastPlayer.onTimeElapsed(function(){this.find(".spp-news").click()},v.email_cta_elapsed_seconds,v.uid):"remaining"===v.email_cta_open&&SmartPodcastPlayer.onTimeRemaining(function(){this.find(".spp-news").click()},v.email_cta_remaining_seconds,v.uid),_?(v.ajax_type="latest",l.push({data:v})):"soundcloud"==v.method?(v.ajax_type="soundcloud",l.push({data:v})):void 0!=v.title_shortcode&&""!=v.title_shortcode||(v.ajax_type="file",l.push({data:v})),v.isSticky&&"top"==v.position&&r("body.spp").prepend(r(".spp-sticky-bumper"))}),l.length>0){var d=l.map(function(t){return t.data.url}),p=l.map(function(t){return t.data.uid}),c=l.map(function(t){return t.data.ajax_type}),h={action:"get_stp_tracks_new",urls:d,uids:p,types:c};r.ajax({url:AP_Player.ajaxurl,dataType:"json",async:!0,type:"POST",data:h,success:function(t){i(t)},error:function(t,e,s){for(var o=l.length,r=0;r)|(?:
))(.*)/.exec(p);c&&n('There was an error while retrieving the track data for URL "'+a.url+'". The error message is: ',c[1]);try{i(JSON.parse(c[2]))}catch(t){}}}}})}},rotateTrackSpeed:function(t){var e=t.mainRegion.currentView.model,i=e.get("speed");"play"!==e.get("playState")&&e.set("playState","play"),.5==i?e.set("speed",.75):.75==i?e.set("speed",1):1==i?e.set("speed",1.25):1.25==i?e.set("speed",1.5):1.5==i?e.set("speed",1.75):1.75==i?e.set("speed",2):2==i?e.set("speed",3):3==i?e.set("speed",.5):e.set("speed",1)}},i.on("changeEpisodePlaying",function(t,e){var i=t.mainRegion.currentView;if(i&&t.isStp){var s=i.model.get("data"),n=e.get("playState");if("pause"!==n)for(var o=Object.entries(SmartPodcastPlayer._by_uid),r=0;r\r\n\t
\r\n\t\t
<%="Episodes".toLocaleString()%>
\r\n\t
\r\n\t
\r\n\t\t
<%="Now Playing".toLocaleString()%>
\r\n\t
\r\n\t
\r\n\t\t
<%="Details".toLocaleString()%>
\r\n\t
\r\n
\r\n
\r\n\t
\r\n\t
\r\n\t
\r\n\t
\r\n
\r\n '}),c("entities/playlist-model",["spp-app","entities/track-model"],function(t){t.module("Entities",function(t,e,i,o,r,a){var l=[];t.Tracks=i.Collection.extend({model:t.Track,initialize:function(){this._currentPage=1,this._tracksPerPage=10,this._moreTracksComing=!1},comparators:{newest:function(t){return-t.get("id")},oldest:function(t){return t.get("id")},mostPopular:function(t){return-t.get("playback_count")},leastPopular:function(t){return t.get("playback_count")}},getCurrentPage:function(){return this._currentPage},setCurrentPage:function(t){this._currentPage=t},getPageOfTracks:function(){var e,i=new Array,s=(this._currentPage-1)*this._tracksPerPage,n=this._currentPage*this._tracksPerPage;return e=this.searchedTracks?this.searchedTracks.models:this.models,r.each(e,function(t,e){t>=s&&ti+1?e[i+1]:null},reverseSortOrder:function(){this.models=this.models.reverse(),this.searchedTracks&&(this.searchedTracks.models=this.searchedTracks.models.reverse())},searchTracks:function(e){if(""==e)return void(this.searchedTracks=null);var i=this.filter(function(t){var i=t.get("data");return i.title.toLowerCase().indexOf(e.toLowerCase())>=0||i.tag_list.toLowerCase().indexOf(e.toLowerCase())>=0});this.searchedTracks=new t.Tracks(i)},getNumTracks:function(){return this.searchedTracks?this.searchedTracks.length:this.length},getNumTracksAfterAjax:function(){return this._numTracksAfterAjax},isMoreTracksComing:function(){return this._moreTracksComing}});var d=function(t,e){var i=t.model.get("options");r.ajax({url:AP_Player.ajaxurl,dataType:"json",type:"POST",async:!0,data:{action:"get_spplayer_tracks",stream:i.url,episode_limit:i.episode_limit,delay:i.ajax_delay},success:h,error:p,invokeData:{Layout:t,playerRegion:e}})},p=function(t,e,i){if("parsererror"===e){var s=t.responseText.replace(/(\r\n|\n|\r)/gm,""),o=/()(.*)/,r=o.exec(s);if(r){n("There was an error while retrieving the feed. The error message is: ",r[1]);try{var a=JSON.parse(r[2]);f(a,this.invokeData.Layout,this.invokeData.playerRegion,a.length,!1)}catch(t){c(this.invokeData.playerRegion)}}else n("There was an error while retrieving the feed."),c(this.invokeData.playerRegion)}else n("There was an error while retrieving the feed."),c(this.invokeData.playerRegion)},c=function(t){r(t.el[0]).cssExtended("background-image","none",AP_Player.importantStr)},h=function(t){f(t,this.invokeData.Layout,this.invokeData.playerRegion,t.length,!1)},f=function(i,o,d,p,h){if(0==i.length||"object"==typeof i&&i.error_data)return n("Could not retrieve data from the feed. Check to ensure the feed is valid."),void c(d);var f,m,g,v=(o.model.get("region"),o.model.get("options")),y=v.uid,w=o.model.attributes.options.sort;void 0===l[y]?(m=!0,f=new Array):(m=!1,f=l[y].models),"oldest"==w?(i.reverse(),g=1):g=p;var b=f.length;r.each(i,function(e,i){if(b>0)return b--,"oldest"==w?g++:g--,!0;var n=/(?:[^\s"]+|"[^"]*")+/g;if(void 0!==i.tag_list&&""!=i.tag_list.trim()){var r=i.tag_list.match(n);r=r.join(",").replace(/\"|\"|\"|\"/g,""),i.tag_string=r,r=r.split(","),i.tags=r}else i.tags=new Array;var l=Math.ceil(i.duration/1e3),d=Math.floor(l/60),p=Math.floor(d/60),c=p,h=d%60,m=l%60;if(i.duration_time=c+":"+s(h,2)+":"+s(m,2),i.playing=!1,i.paid=v.paid,""!=v.numbering){var y=v.numbering,_=(y.split("#").length,new RegExp("[#]{1,10}")),k=y.replace(_,"([0-9]{0,4})"),x=i.title.match(k);x&&(i.episode_number=x[1]);var S=new RegExp(k,"g");i.title_without_episode_number=i.title.replace(S,"")}else i.title_without_episode_number=i.title,i.episode_number=g;i.shortcode_options=v,i.show_episode_numbers=v.show_episode_numbers,i.download=v.download,i.social=v.social,i.social_twitter=v.social_twitter,i.social_facebook=v.social_facebook,i.social_gplus=v.social_gplus,i.social_linkedin=v.social_linkedin,i.social_stumble=v.social_stumble,i.social_pinterest=v.social_pinterest,i.social_email=v.social_email,i._subscribe_any=!1,void 0!==v.subscribe&&"false"===v.subscribe||(i._subscription_services=u,a.forEach(u,function(t){val=v["subscribe_"+t[0]],i["subscribe_"+t[0]]=val,val&&"false"!==val&&(i._subscribe_any=!0)})),i.poweredby=v.poweredby,i.speedcontrol=v.speedcontrol,i.email_button_function=v.email_button_function,i.email_link=v.email_link,i.email_js_function=v.email_js_function,i.volume=v.volume,i.haveMoreButton=i.social&&"false"!==i.social||i._subscribe_any||"true"==i.download,void 0===v.show_image||"default"===v.show_image?i.show_logo=i.artwork_url:i.show_logo=v.show_image,i.show_name=v.show_name,i.hashtag=v.hashtag,i.twitter_username=v.twitter_username,i.tweet_text=v.tweet_text,v.permalink?i.permalink=v.permalink:i.permalink=i.permalink_url,i.email="?subject="+encodeURIComponent(i.title.replace(/&/g,"&")),i.email+="&body=Hi,%0D%0A%0D%0AI thought you might enjoy this ",void 0!==i.show_name?i.email+="episode of "+encodeURIComponent(i.show_name.replace(/&/g,"&"))+":%0D%0A%0D%0A":i.email+="podcast:%0D%0A%0D%0A",i.email+=encodeURIComponent(i.title.replace(/&/g,"&"))+"%0D%0A",i.permalink?i.email+=i.permalink:i.email+=window.location.href,i.email+="%0D%0A%0D%0AEnjoy!",i.permalink_url.indexOf("soundcloud.com")>0?i.method="soundcloud":i.method="file";var P=/\n/g;if("soundcloud"==i.method){i.show_notes="

"+i.description+"

",i.show_notes=i.show_notes.replace(P,"

");var C=/

\s*<\/p>/g;i.show_notes=i.show_notes.replace(C,"")}else i.show_notes=i.description;i.stream_url=i.stream_url.indexOf("&")>-1?i.stream_url.slice(0,i.stream_url.indexOf("&")):i.stream_url;var M={data:i},T=new t.Track(M),A=T.get("data");A.cid=T.cid,T.set({data:A}),T.setLayout(o),f.push(T),"oldest"==w?g++:g--}),l[y]=new t.Tracks(f),h&&(l[y]._moreTracksComing=!0),l[y]._numTracksAfterAjax=p,m?e.trigger("tracksInitialized",o,l[y],d):e.trigger("tracksAdded",o)};return e.reqres.setHandler("tracks:initialize",function(t,e){var i=t.model.get("options"),s=!0;if("object"==typeof SmartPodcastPlayer._cached_tracks[i.uid]){var n=SmartPodcastPlayer._cached_tracks[i.uid],o=parseInt(i.featured_episode,10),r=!1;"number"!=typeof o&&(r=!0),isNaN(o),"oldest"==i.sort?o<=n.tracks.length&&(r=!0):n.numTracks-o0?(l[s].isMoreTracksComing()&&("oldest"===i.sort?n>20&&(n=0):n-=l[s].getNumTracksAfterAjax()-20),n>o&&(n=o),e="oldest"==i.sort?n-1:o-n):e=0,l[s].models[e]}),e.Entities})}),c("apps/smart-podcast-player/core",["spp-app","text!templates/spp-template.html","entities/track-model","entities/playlist-model","soundmanager2","l10n","translations"],function(t,e){return t.module("Core",function(t,i,s,o,r,a){t.FullLayout=o.Layout.extend({template:a.template(e,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-player-layout",regions:{mainRegion:".spp-main-region",playlistRegion:".spp-playlist-region",episodeDetailsRegion:".spp-episode-details-region"},initialize:function(){this.isMouse=!1,this.isStp=!1},events:{"click .spp-tab-episodes":"tabEpisodes","keypress .spp-tab-episodes":"tabEpisodes","click .spp-tab-details":"tabDetails","keypress .spp-tab-details":"tabDetails","click .spp-tab-now-playing":"tabNowPlaying","keypress .spp-tab-now-playing":"tabNowPlaying","mousedown .spp-control":function(){this.isMouse||(this.isMouse=!0,this.$el.find(".spp-control").each(function(){this.classList&&this.classList.add("spp-no-outline")}),this.$el.find(".spp-episode-details-body").addClass("spp-no-outline"))},"keydown .spp-control":function(t){this.isMouse&&9==t.which&&0==t.altKey&&(this.isMouse=!1,this.$el.find(".spp-control").each(function(){this.classList&&this.classList.remove("spp-no-outline")}),this.$el.find(".spp-episode-details-body").removeClass("spp-no-outline"))}},tabEpisodes:function(){this.$el.find(".spp-tab").removeClass("spp-tab-active"),this.$el.find(".spp-tab-episodes").addClass("spp-tab-active"),this.playlistRegion.currentView.triggerMethod("show"),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-right"),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-center"),this.$el.find(".spp-tab-wrap").addClass("spp-tab-wrap-left")},tabDetails:function(){this.$el.find(".spp-tab").removeClass("spp-tab-active"),this.$el.find(".spp-tab-details").addClass("spp-tab-active"),this.episodeDetailsRegion.currentView.render(),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-center"),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-left"),this.$el.find(".spp-tab-wrap").addClass("spp-tab-wrap-right")},tabNowPlaying:function(){this.$el.find(".spp-tab").removeClass("spp-tab-active"),this.$el.find(".spp-tab-now-playing").addClass("spp-tab-active"),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-left"),this.$el.find(".spp-tab-wrap").removeClass("spp-tab-wrap-right"),this.$el.find(".spp-tab-wrap").addClass("spp-tab-wrap-center")},userTriggers:[]}),t.Controller={init:function(){r(".smart-podcast-player-container:visible, .smart-podcast-player").each(function(e,o){if(!r(this).hasClass("smart-podcast-player-container"))return!0;var a="SPP_"+e,l=r(o).data("uid"),d="SmartPodcastPlayer_uid_"+l;if(SmartPodcastPlayer._options[l]=SmartPodcastPlayer._options[l]||window[d].options,SmartPodcastPlayer._errors[l]=SmartPodcastPlayer._errors[l]||window[d].errors,SmartPodcastPlayer._shortcode_options[l]=SmartPodcastPlayer._shortcode_options[l]||window[d].shortcode_options,window[d].cached_tracks&&(SmartPodcastPlayer._cached_tracks[l]=window[d].cached_tracks),window[d]=void 0,SmartPodcastPlayer._errors[l])for(var p=0;p')}})}),t.Core.Controller}),c("text!templates/episode-details-template.html",[],function(){return'

\r\n\t\n Back to playlist view\n \n\n\r\n\t<%="Episode Details".toLocaleString()%>\r\n
\r\n\r\n
\r\n\t<% /* This extra wrapper is required so special characters do not break the layout */ %>\r\n\t
\r\n\t\t<%= data.show_notes %>\r\n\t
\r\n
\r\n\r\n
\r\n
\r\n'}),function(t){function e(){this===n.elem&&(n.pos=[-260,-260],n.elem=!1,o=3)}var i,s,n={pos:[-260,-260]},o=3,r=document,a=r.documentElement,l=r.body;t.event.special.mwheelIntent={setup:function(){var i=t(this).bind("mousewheel",t.event.special.mwheelIntent.handler);return this!==r&&this!==a&&this!==l&&i.bind("mouseleave",e),i=null,!0},teardown:function(){return t(this).unbind("mousewheel",t.event.special.mwheelIntent.handler).unbind("mouseleave",e),!0},handler:function(e,r){var a=[e.clientX,e.clientY];if(this===n.elem||Math.abs(n.pos[0]-a[0])>o||Math.abs(n.pos[1]-a[1])>o)return n.elem=this,n.pos=a,o=250,clearTimeout(s),s=setTimeout(function(){o=10},200),clearTimeout(i),i=setTimeout(function(){o=3},1500),e=t.extend({},e,{type:"mwheelIntent"}),(t.event.dispatch||t.event.handle).apply(this,arguments)}},t.fn.extend({mwheelIntent:function(t){return t?this.bind("mwheelIntent",t):this.trigger("mwheelIntent")},unmwheelIntent:function(t){return this.unbind("mwheelIntent",t)}}),t(function(){l=r.body,t(r).bind("mwheelIntent.mwheelIntentDefault",t.noop)})}(jQuery),c("mwheel-intent",function(){}),function(t){"function"==typeof c&&c.amd?c("vendor/jquery.mousewheel",["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var r=e||window.event,a=l.call(arguments,1),d=0,p=0,c=0,u=0;if(e=t.event.fix(r),e.type="mousewheel","detail"in r&&(c=-1*r.detail),"wheelDelta"in r&&(c=r.wheelDelta),"wheelDeltaY"in r&&(c=r.wheelDeltaY),"wheelDeltaX"in r&&(p=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(p=-1*c,c=0),d=0===c?p:c,"deltaY"in r&&(c=-1*r.deltaY,d=c),"deltaX"in r&&(p=r.deltaX,0===c&&(d=-1*p)),0!==c||0!==p){if(1===r.deltaMode){var h=t.data(this,"mousewheel-line-height");d*=h,c*=h,p*=h}else if(2===r.deltaMode){var f=t.data(this,"mousewheel-page-height");d*=f,c*=f,p*=f}return u=Math.max(Math.abs(c),Math.abs(p)),(!o||u=1?"floor":"ceil"](d/o),p=Math[p>=1?"floor":"ceil"](p/o),c=Math[c>=1?"floor":"ceil"](c/o),e.deltaX=p,e.deltaY=c,e.deltaFactor=o,e.deltaMode=0,a.unshift(e,d,p,c),n&&clearTimeout(n),n=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){o=null}function s(t,e){return p.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var n,o,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var d=r.length;d;)t.event.fixHooks[r[--d]]=t.event.mouseHooks;var p=t.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",p.getLineHeight(this)),t.data(this,"mousewheel-page-height",p.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=a.length;t;)this.removeEventListener(a[--t],e,!1);else this.onmousewheel=null},getLineHeight:function(e){return parseInt(t(e)["offsetParent"in t.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),t(jQuery,this),c("vendor/jquery.jscrollpane",["jquery","vendor/jquery.mousewheel","mwheel-intent"],function(){}),c("apps/smart-podcast-player/episode-details",["spp-app","text!templates/episode-details-template.html","apps/smart-podcast-player/dss","entities/track-model","soundmanager2","vendor/jquery.jscrollpane","vendor/jquery.mousewheel","l10n","translations"],function(t,e){return t.module("EpisodeDetails",function(t,i,s,n,o,r){t.MainLayout=n.Layout.extend({template:r.template(e,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-episode-details-layout",regions:{dssRegion:".spp-dss-region"},events:{"click .spp-more-show-notes":function(){i.trigger("toggleEpisodeDetails",this.options.sppLayout,!0)},"keypress .spp-more-show-notes":function(){i.trigger("toggleEpisodeDetails",this.options.sppLayout,!1)}},initialize:function(){var t=this;o(window).on("resize",function(){var e=t.$el.find(".spp-episode-details-body");e.data("jsp")&&e.data("jsp").reinitialise()})},onRender:function(){this.dssRegion.show(new i.Dss.DssLayout({model:this.model}));var t,e=this.options.sppLayout.$el.find(".spp-tabs"),s=this.$el.find(".spp-episode-details-header");"none"!=e.css("display")?(t=e.outerHeight(),t+=parseInt(e.find(".spp-tab-active").css("border-bottom"),10),isNaN(t)&&(t=43)):"none"!=s.css("display")&&(t=s.outerHeight());var n=this.options.sppLayout.$el.outerHeight()-t-this.$el.find(".spp-dss-layout").outerHeight()-parseInt(this.$el.find(".spp-episode-details-body").css("margin-top"),10)-parseInt(this.$el.find(".spp-episode-details-body").css("margin-bottom"),10);isNaN(n)&&(n=199);var o=this.$el.find(".spp-episode-details-body");o.height(n),o.jScrollPane({contentWidth:"0px"}),this.elementsTabbable(!1)},elementsTabbable:function(t){t?(this.$el.find(".spp-episode-details-body").attr("tabindex","0"),this.$el.find(".spp-episode-details-body a").removeAttr("tabindex"),this.$el.find(".spp-more-show-notes").attr("tabindex","0")):(this.$el.find(".spp-episode-details-body").removeAttr("tabindex"),this.$el.find(".spp-episode-details-body a").attr("tabindex","-1"),this.$el.find(".spp-more-show-notes").removeAttr("tabindex")),this.dssRegion.currentView.elementsTabbable(t)}}),t.Controller={init:function(e){var s=i.request("track:featured",e);e.episodeDetailsRegion.show(new t.MainLayout({model:s,sppLayout:e}))}}}),t.on("previewTrack",function(t,e){var i=t.episodeDetailsRegion.currentView;i.model=e,i.dssRegion.currentView.model=e}),t.on("showEpisodeDetails",function(t,e){t.episodeDetailsRegion.$el.removeClass("spp-off-to-right"),t.episodeDetailsRegion.currentView.elementsTabbable(!0),e&&t.episodeDetailsRegion.$el.find(".spp-episode-details-body").addClass("spp-no-outline")}),t.on("hideEpisodeDetails",function(t){t.episodeDetailsRegion.$el.addClass("spp-off-to-right"),t.episodeDetailsRegion.currentView.elementsTabbable(!1)}),t.EpisodeDetails.Controller}),c("text!templates/playlist-track-template.html",[],function(){return'
\r\n\t
\r\n\t\t<% if ( data.show_episode_numbers == "true" ) { %>\r\n\t\t\t
<%= parseInt( data.episode_number, 10) %>
\r\n\t\t<% } else { %>\r\n\t\t\t
\r\n\t\t<% } %>\r\n\t\t\r\n\t\t\t\n Play\n \n\n\r\n\t\t\r\n\t\t\r\n\t\t\t\n \n\n\r\n\t\t\r\n\t
\r\n\t
\r\n\t\t
<%= data.title_without_episode_number %>
\r\n\t
\r\n
'}),c("text!templates/playlist-template.html",[],function(){return'
\r\n
\r\n\t
\r\n
\r\n\r\n'}),c("text!templates/playlist-header-template.html",[],function(){return'
\r\n\t
\r\n\t\t\n \n \n \n \n\n\r\n\t
\r\n\t
\r\n\t\t\r\n\t
\r\n
\r\n
\r\n\t\n Sort oldest first\n \n\n\r\n\t\n Sort newest first\n \n\n\r\n
\r\n'}),c("text!templates/playlist-footer-template.html",[],function(){return'
\r\n\t\n Previous page\n \n\n\r\n\t\r\n\t\t<%= current_page %>\r\n\t\r\n\t<%="of".toLocaleString()%>\r\n\t\r\n\t\t<% if( typeof num_pages === "number" ) { %>\r\n\t\t\t<%=num_pages%>\r\n\t\t<% } else { %>\r\n\t\t\t...\r\n\t\t<% } %>\r\n\t\r\n\t\n Next page\n \n\n\r\n
\r\n'}),c("apps/smart-podcast-player/playlist",["spp-app","text!templates/playlist-track-template.html","text!templates/playlist-template.html","text!templates/playlist-header-template.html","text!templates/playlist-footer-template.html","entities/track-model","entities/playlist-model","vendor/jquery.jscrollpane","vendor/jquery.mousewheel","l10n","translations"],function(t,e,i,s,o){return t.module("Playlist",function(t,n,r,a,l,d){t.HeaderLayout=a.Layout.extend({template:d.template(s,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-playlist-header",elementsTabbable:function(t){t?(this.$el.find(".spp-search").removeAttr("tabindex"),this.$el.find(".spp-sort").attr("tabindex","0")):(this.$el.find(".spp-search").attr("tabindex","-1"),this.$el.find(".spp-sort").attr("tabindex","-1"))},onRender:function(){(/MSIE (\d+\.\d+);/.test(navigator.userAgent)||1==!!document.documentMode)&&this.$(".spp-search-icon-container").cssExtended("top","40px",AP_Player.importantStr),this.enableDisableSort()},enableDisableSort:function(){/MSIE (\d+\.\d+);/.test(navigator.userAgent)||1==!!document.documentMode||(this.model.get("data").playlistMainLayout.model.isMoreTracksComing()?this.$(".spp-sort")[0].classList.add("spp-disabled"):this.$(".spp-sort")[0].classList.remove("spp-disabled"))}}),t.FooterLayout=a.Layout.extend({template:d.template(o,void 0,{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-playlist-footer",onRender:function(){if(this.enableDisableArrows(),"unknown"===this.model.get("num_pages")){var t=0,e=this;this.loading_timer=setInterval(function(){t++;var i;i=t%3==0?".  ":t%3==1?".. ":"...",e.$el.find(".spp-num-pages").html(i)},400)}},modelEvents:{"change:current_page":"textChanged","change:num_pages":"textChanged"},textChanged:function(){this.$el.find(".spp-current-page").text(this.model.get("current_page"));var t=this.model.get("num_pages");"unknown"!==t&&(this.$el.find(".spp-num-pages").text(t),void 0!==this.loading_timer&&clearInterval(this.loading_timer)),this.enableDisableArrows()},enableDisableArrows:function(){if(void 0!==this.$(".spp-playlist-prev-page")[0].classList){var t=this.model.get("current_page"),e=this.model.get("num_pages"),i="unknown"===e;i||1==t?(this.$(".spp-playlist-prev-page")[0].classList.add("spp-disabled"),this.$(".spp-playlist-prev-page").attr("tabindex","-1")):(this.$(".spp-playlist-prev-page")[0].classList.remove("spp-disabled"),this.$(".spp-playlist-prev-page").attr("tabindex","0")),i||t==e?(this.$(".spp-playlist-next-page")[0].classList.add("spp-disabled"),this.$(".spp-playlist-next-page").attr("tabindex","-1")):(this.$(".spp-playlist-next-page")[0].classList.remove("spp-disabled"),this.$(".spp-playlist-next-page").attr("tabindex","0"))}},elementsTabbable:function(t){if(t){var e=this.model.get("current_page");e>1&&this.$(".spp-playlist-prev-page").attr("tabindex","0"), e/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-track",modelEvents:{change:"render"},triggers:{"click .spp-track-row":"track:play","focus .spp-track-row":"track:focus"},events:{"keydown .spp-track-row":function(t){13==t.which?this.triggerMethod("track:play"):38!=t.which&&40!=t.which||this.triggerMethod("keydown",t)}},onRender:function(){var t=this.model.get("data"),e="track_"+this.model.cid;!0!==t.active&&"true"!==t.active||this.$el.addClass("active"),this.$el.find(".spp-track-row").attr("tabindex","0"),this.$el.attr("data-tid",e)}}),t.TrackPageView=a.CollectionView.extend({itemView:t.TrackView,className:"spp-track-list",onItemviewTrackPlay:function(t){var e=n.request("currentTrack",this.options.sppLayout),i=e.get("speed"),s=t.model;e.set("playState","initial"),n.trigger("previewTrack",this.options.sppLayout,s),s.set("playState","play"),s.set("speed",i)},onItemviewTrackFocus:function(t){this.children.each(function(t){t.$el.find(".spp-track-row").attr("tabindex","-1")}),t.$el.find(".spp-track-row").attr("tabindex","0")},onItemviewKeydown:function(t,e){var i,s=this.collection.indexOf(t.model);if(38==e.which&&s>0)i=s-1,e.preventDefault();else{if(!(40==e.which&&s/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g}),className:"spp-playlist",regions:{headerRegion:".spp-playlist-header-region",tracksRegion:".spp-playlist-tracks-region",footerRegion:".spp-playlist-footer-region"},triggers:{"click .spp-sort":"playlist:sort","keypress .spp-sort-container":"playlist:sort","click .spp-playlist-prev-page":"paging:prev","keypress .spp-playlist-prev-page":"paging:prev","click .spp-playlist-next-page":"paging:next","keypress .spp-playlist-next-page":"paging:next"},events:{"click .spp-search":function(){var t=this.$el.find(".spp-search");t.val().toLowerCase()=="Search".toLocaleString().toLowerCase()&&t.val("")},"input .spp-search":"searchInput","keypress .spp-search":"searchKeypress"},initialize:function(){var t=this;l(window).on("resize",function(){var e=t.$el.find(".spp-playlist-scroller");e.data("jsp")&&e.data("jsp").reinitialise()})},onRender:function(){var e,i=this.options.sppLayout.model.get("options"),s=this.model.getNumTracks(),n=this.model.getCurrentPage();e=this.model.isMoreTracksComing()?"unknown":Math.ceil(s/i.tracks_per_page);var o=this;this.headerRegion.show(new t.HeaderLayout({model:new r.Model({data:{playlistMainLayout:o,searchTerm:this.searchTerm?this.searchTerm:"Search".toLocaleString()}})})),this.footerRegion.show(new t.FooterLayout({model:new r.Model({current_page:n,num_pages:e,sppLayout:this.options.sppLayout})})),this.tracksRegion.show(new t.TrackPageView({collection:this.model.getPageOfTracks(),sppLayout:this.options.sppLayout}))},onShow:function(){var t,e=this.options.sppLayout.$el.find(".spp-tabs");if("none"!=e.css("display")){t=e.outerHeight();var i=parseInt(e.find(".spp-tab-active").css("border-bottom"),10);isNaN(i)&&(i=3),t+=i}else t=0;var s=this.options.sppLayout.$el.outerHeight()-t-this.headerRegion.currentView.$el.outerHeight()-this.footerRegion.currentView.$el.outerHeight();this.$el.find(".spp-playlist-scroller").height(s),this.$el.find(".spp-playlist-scroller").jScrollPane({enableKeyboardNavigation:!1,contentWidth:"0px"})},onPlaylistSort:function(){if(!this.model.isMoreTracksComing()){this.$el.toggleClass("spp-sort-reverse"),this.model.reverseSortOrder();this.model.setCurrentPage(1);this.tracksRegion.currentView.collection=this.model.getPageOfTracks(),this.tracksRegion.currentView.render(),this.footerRegion.currentView.model.set("current_page",this.model.getCurrentPage())}},onPagingPrev:function(){this.model.getCurrentPage()>1&&(this.model.setCurrentPage(this.model.getCurrentPage()-1),this.tracksRegion.currentView.collection=this.model.getPageOfTracks(),this.tracksRegion.currentView.render(),this.footerRegion.currentView.model.set("current_page",this.model.getCurrentPage()),this.$el.find(".spp-playlist-scroller").data("jsp").reinitialise())},onPagingNext:function(){var t=this.options.sppLayout.model.get("options"),e=Math.ceil(this.model.getNumTracks()/t.tracks_per_page);this.model.getCurrentPage()0||jQuery(".smart-track-player-container").length>0)&&(soundManager.setup({flashVersion:9,useHighPerformance:!0,wmode:"transparent",useHTML5Audio:!0,preferFlash:!1,onready:function(){i.trigger("app:core:init"),p(["apps/smart-track-player/stp-controller"],function(t){t.init()})}}),soundManager.beginDelayedInit())}),i.on("app:core:init",function(){p(["apps/smart-podcast-player/core"],function(t){t.init()})}),i.on("episode-details:init",function(t){p(["apps/smart-podcast-player/episode-details"],function(e){e.init(t)})}),i.on("playlist:init",function(t){p(["apps/smart-podcast-player/playlist"],function(e){e.init(t)})}),i.on("player:init",function(t){p(["apps/smart-podcast-player/player-controller"],function(e){e.init(t)})}),i}),e(jQuery),c("style",function(){});const u=[["acast","Acast"],["itunes","Apple Podcasts"],["buzzsprout","Buzzsprout"],["googlepodcasts","Google Podcasts"],["iheartradio","iHeartRadio"],["overcast","Overcast"],["googleplay","Play Music"],["playerfm","Player.FM"],["pocketcasts","PocketCasts"],["soundcloud","SoundCloud"],["spotify","Spotify"],["spreaker","Spreaker"],["stitcher","Stitcher"],["tunein","TuneIn"],["rss","RSS"]];"function"==typeof jQuery&&c("jquery",["require"],function(t){return jQuery}),String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),window.SmartPodcastPlayer={},window.SmartPodcastPlayer.initialize=function(){if(SmartPodcastPlayer.version="2.13.7",void 0===SmartPodcastPlayer._options&&(SmartPodcastPlayer._options={}),void 0===SmartPodcastPlayer._shortcode_options&&(SmartPodcastPlayer._shortcode_options={}),void 0===SmartPodcastPlayer._by_uid&&(SmartPodcastPlayer._by_uid={}),void 0===SmartPodcastPlayer._cached_tracks&&(SmartPodcastPlayer._cached_tracks={}),void 0===SmartPodcastPlayer._errors&&(SmartPodcastPlayer._errors={}),document.getElementsByTagName("body")[0].className+=" spp","undefined"!=typeof AP_Player&&SmartPodcastPlayer.version!==AP_Player.version&&console.log("Warning: Smart Podcast Player version mismatch detected. Backend is running version '"+AP_Player.version+"' and frontend is running version '"+SmartPodcastPlayer.version+"'. Try clearing all caches in caching plugins."),void 0!==AP_Player.soundcloudConsumerKey&&""!==AP_Player.soundcloudConsumerKey||(AP_Player.soundcloudConsumerKey="b38b3f6ee1cdb01e911c4d393c1f2f6e"),p(["jquery"],function(t){var e=[];t(".smart-podcast-player-container, .smart-track-player-container").each(function(){e.push(t(this).data("uid"))});var s=[];for(i=0;i0){var o={action:"spp_get_jsobj",uids:s};t.ajax({url:AP_Player.ajaxurl,dataType:"json",async:!1,type:"POST",data:o,success:function(t){for(i=0;if;)o(n,e=t[f++])&&(~c(s,e)||u(s,e));return s}},function(r,t,e){var n=e(11),o=e(59),a=e(62);e=function(r){return function(t,e,c){var i,u=n(t),f=a(u),s=o(c,f);if(r&&e!=e){for(;s"+r+""}var c,i=n(45),u=n(74),f=n(64),s=n(53),p=n(76),l=n(41),y=(n=n(52),"prototype"),h="script",v=n("IE_PROTO"),g=function(){try{c=new ActiveXObject("htmlfile")}catch(r){}var r;g="undefined"==typeof document||document.domain&&c?function(r){r.write(a("")),r.close();var t=r.parentWindow.Object;return r=null,t}(c):((r=l("iframe")).style.display="none",p.appendChild(r),r.src=String("javascript:"),(r=r.contentWindow.document).open(),r.write(a("document.F=Object")),r.close(),r.F);for(var t=f.length;t--;)delete g[y][f[t]];return g()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(o[y]=i(t),n=new o,o[y]=null,n[v]=t):n=g(),e===r?n:u.f(n,e)}},function(r,t,e){var n=e(5),o=e(44),a=e(43),c=e(45),i=e(11),u=e(75);t.f=n&&!o?Object.defineProperties:function(r,t){c(r);for(var e,n=i(t),o=u(t),f=o.length,s=0;s=t||56320!=(64512&i(r,e))))return!1}return!0}})},function(r,t,e){var n=e(91),o=String;r.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return o(r)}},function(r,t,e){var n=e(2),o=e(7),a=e(13),c=e(15),i=e(102),u=(e=e(6),Array),f=a("".charAt),s=a("".charCodeAt),p=a([].join),l="".toWellFormed,y=l&&e((function(){return"1"!==o(l,1)}));n({target:"String",proto:!0,forced:y},{toWellFormed:function(){var r=i(c(this));if(y)return o(l,r);for(var t=r.length,e=u(t),n=0;n{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})();; /*! This file is auto-generated */ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex