VIDEO - ▶ Roundtable Discussion - The General Election by harvardiop

Roundtable Discussion - The General Election by harvardiop - Listen to music

To continue, go to Settings and turn it on

Refresh the page to try again.

/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/,ajax=module.exports=function(options){var settings=extend({},options||{});for(key in ajax.settings)settings[key]===undefined&&(settings[key]=ajax.settings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host);var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),ajax.JSONP(settings);settings.url||(settings.url=window.location.toString()),serializeData(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)};ajax.active=0,ajax.JSONP=function(e){if("type"in e){var t="jsonp"+ ++jsonpID,n=document.createElement("script"),r=function(){t in window&&(window[t]=empty),ajaxComplete("abort",i,e)},i={abort:r},s,o=document.getElementsByTagName("head")[0]||document.documentElement;return e.error&&(n.onerror=function(){i.abort(),e.error()}),window[t]=function(n){clearTimeout(s),delete window[t],ajaxSuccess(n,i,e)},serializeData(e),n.src=e.url.replace(/=\?/,"="+t),o.insertBefore(n,o.firstChild),e.timeout>0&&(s=setTimeout(function(){i.abort(),ajaxComplete("timeout",i,e)},e.timeout)),i}return ajax(e)},ajax.settings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0},ajax.get=function(e,t){return ajax({url:e,success:t})},ajax.post=function(e,t,n,r){return type(t)==="function"&&(r=r||n,n=t,t=null),ajax({type:"POST",url:e,data:t,success:n,dataType:r})},ajax.getJSON=function(e,t){return ajax({url:e,success:t,dataType:"json"})};var escape=encodeURIComponent}), define("classes",["require","exports","module","indexof"],function(e,t,n){function s(e){this.el=e,this.list=e.classList}var r=e("indexof"),i=/\s+/;n.exports=function(e){return new s(e)},s.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},s.prototype.remove=function(e){if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},s.prototype.toggle=function(e){return this.list?(this.list.toggle(e),this):(this.has(e)?this.remove(e):this.add(e),this)},s.prototype.array=function(){var e=this.el.className.split(i);return""===e[0]&&e.pop(),e},s.prototype.has=s.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}}), define("vendor/zepto-events",["require","exports","module"],function(e,t,n){function a(e){return e._zid||(e._zid=i++)}function f(e,t,n,i){t=l(t);if(t.ns)var s=c(t.ns);return(r[a(e)]||[]).filter(function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||s.test(e.ns))&&(!n||a(e.fn)===a(n))&&(!i||e.sel==i)})}function l(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function c(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function h(e,t,n){typeof e!="string"?u.each(e,n):e.split(/\s/).forEach(function(e){n(e,t)})}function p(e,t){return e.del&&(e.e=="focus"||e.e=="blur")||!!t}function d(e){return o[e]||e}var r={},i=1,s={},o={mouseenter:"mouseover",mouseleave:"mouseout"},u={};u.each=function(e){return[].every.call(this,function(t,n){return e.call(t,n,t)!==!1}),this},s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",t.add=add=function(e,t,n,i,s,u){var f=a(e),c=r[f]||(r[f]=[]);h(t,n,function(t,n){var r=l(t);r.fn=n,r.sel=i,r.e in o&&(n=function(e){var t=e.relatedTarget;if(!t||t!==this&&!this.contains(t))return r.fn.apply(this,arguments)}),r.del=s&&s(n,t);var a=r.del||n;r.proxy=function(t){var n=a.apply(e,[t].concat(t.data));return n===!1&&(t.preventDefault(),t.stopPropagation()),n},r.i=c.length,c.push(r),e.addEventListener(d(r.e),r.proxy,p(r,u))})},t.remove=remove=function(e,t,n,i,s){var o=a(e);h(t||"",n,function(t,n){f(e,t,n,i).forEach(function(t){delete r[o][t.i],e.removeEventListener(d(t.e),t.proxy,p(t,s))})})};var v=function(){return!0},m=function(){return!1},g=/^([A-Z]|layer[XY]$)/,y={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.createProxy=createProxy=function(e){var t,n={originalEvent:e};for(t in e)!g.test(t)&&e[t]!==undefined&&(n[t]=e[t]);return u.each(y,function(t,r){n[t]=function(){return this[r]=v,e[t].apply(e,arguments)},n[r]=m}),n},t.Event=Event=function(e,t){typeof e!="string"&&(t=e,e=t.type);var n=document.createEvent(s[e]||"Events"),r=!0;if(t)for(var i in t)i=="bubbles"?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0,null,null,null,null,null,null,null,null,null,null,null,null),n.isDefaultPrevented=function(){return this.defaultPrevented},n}}), define("lib/layout",["require","exports","module","underscore","$","lib/backbone","css","lib/helpers/title-helper","lib/lingua","lib/deferred-loader","lib/mixins/layouts/performance-measuring","lib/template"],function(e,t,n){var r=e("underscore"),i=e("$"),s=e("lib/backbone"),o=e("css"),u=e("lib/helpers/title-helper"),a=e("lib/lingua"),f=e("lib/deferred-loader"),l=e("lib/mixins/layouts/performance-measuring"),c=e("lib/template"),h,p,d;h="l-footer",p="views/footer/footer",d=a.t("Enjoy the full SoundCloud experience with our app.",null,{comment:"Default page title"});var v=n.exports=s.View.extend({css:null,template:null,views:null,_currentViews:null,_viewPaths:null,slots:null,includeFooter:".l-main",footerClassName:"",getPageUrn:function(){return""},initialize:function(){this.views={},this._currentViews={}},setArgs:function(e){this.args=e||{}},setup:function(){var e=i.Deferred();return r.defer(e.resolve),e},dispose:function(){r.invoke(this._currentViews,"_dispose"),r.invoke(this.views,"_dispose"),this.$el.remove(),delete this.slots,delete this.views,delete this._viewPaths,delete this._currentViews},switchLayout:function(e){e&&(r.invoke(this._currentViews,"_dispose"),r.invoke(this.views,"_dispose"),this.template=e.template,this.includeFooter=e.includeFooter,this.slots=null,this.$el.html(""))},render:function(){var e,t;return this.includeFooter&&(e=this.views[h]),this.css&&o.insert(this.css),this.el.innerHTML===""&&(c.render(this.template,{},this.el),this.slots={},r.each(this.views,function(e,t){this.slots[t]=this.$("."+t)[0]},this)),r.each(this.views,function(e,t){this._currentViews[t]!==e&&(this._currentViews[t]&&this._currentViews[t]._dispose(),e.render(),t!==h&&this.slots[t].appendChild(e.el),this._currentViews[t]=e)},this),t=this.$(this.includeFooter)[0],t&&e&&(this.footerClassName&&(e.el.className+=" "+this.footerClassName),t.appendChild(e.el)),this},setViews:function(e){this.includeFooter&&(e[h]=[p,{upsellText:this.getUpsellText()}]);var t=Object.keys(e),n=r.pluck(e,0),s=i.Deferred();return f.load(n).done(function(){this._viewPaths={},r.each(arguments,function(r,i){var s=t[i],o=e[s][1];if(!this._currentViews[s]||!this._currentViews[s].isEquivalentTo(r,o))this.views[s]=new r(o);this._viewPaths[s]=n[i]},this)}.bind(this)).done(s.resolve).fail(s.reject),s},getChangeEventData:function(e){var t={};return r.each(this._viewPaths,function(e,n){t[e]=this.views[n].constructorArguments},this),{layout:this,layoutName:e,views:t,args:this.args}},setTitle:function(e){u.set(e)},getUpsellText:function(){return d},t:a.t,tp:a.tp});l.applyTo(v.prototype),u.initialize()}), define("lib/layouts/fullheight.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".l-fullheight{height:100%;background:#000}.l-fullheight>.l-main{height:100%}")),data=null}), define("lib/layouts/fullheight.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'

\n'})}), define("lib/views/loading.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".loadingThrobber{background:transparent url(https://m.soundcloud.com/assets/images/ldpi/loader-81295ad2.gif) 50% 50% no-repeat;background-size:32px 32px;clear:both;text-align:center;height:40px;width:100%;padding:100px}.loadingThrobber.small{height:20px;background-size:16px}.loadingThrobber.fullscreen{top:44px;left:0;right:0;bottom:0;position:fixed;background-color:#f2f2f2;height:100%}")),data=null}), define("lib/event-bubble",["require","exports","module"],function(e,t,n){var r=n.exports=Class.extend({_propagate:!0,data:null,initialize:function(e){this.data=e||{}},stopPropagation:function(){this._propagate=!1},isPropagationStopped:function(){return!this._propagate}})}), define("lib/views/mixins/stateful",["require","exports","module","underscore","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/mixin"),s=n.exports=new i({states:null,_states:null,toggleState:function(e,t){var n,i;return this.disposed?this:(this.states||(this.states={}),this.states[e]||(this.states[e]=e),this._states=this._states||{},this._states[e]=this._states[e]||!1,t=typeof t!="undefined"?!!t:!this._states[e],this._states[e]===t?this:(this._states[e]=t,n=this.states[e],typeof n=="string"?(i=n,this.$el[t?"addClass":"removeClass"](i)):r.isFunction(n)?n.call(this,t):n&&n[t?"setup":"teardown"].call(this),this.trigger("state:"+e,t),this))},getState:function(e){return!!this._states&&!!this._states[e]}})}), define("lib/template",["require","exports","module","underscore","vendor/handlebars-runtime","lib/subview-plugin","lib/template-helpers"],function(e,t,n){var r=e("underscore"),i=e("vendor/handlebars-runtime"),s=e("lib/subview-plugin"),o=e("lib/template-helpers");r.each(o,function(e,t){i.registerHelper(t,e)});var u=n.exports={render:function(e,t,n){var r=e(t||{});n&&(n.innerHTML=r)},subviews:function(e){s.replacePlaceholders(e)}}}), define("vendor/handlebars-runtime",["require","exports","module"],function(e,t,n){var r=function(){var e=function(){"use strict";function t(e){this.string=e}var e;return t.prototype.toString=function(){return""+this.string},e=t,e}(),t=function(e){"use strict";function o(e){return r[e]||"&"}function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function c(e){return e instanceof n?e.toString():!e&&e!==0?"":(e=""+e,s.test(e)?e.replace(i,o):e)}function h(e){return!e&&e!==0?!0:l(e)&&e.length===0?!0:!1}var t={},n=e,r={"&":"&","",'"':""","'":"'","`":"`"},i=/[&"'`]/g,s=/[&"'`]/;t.extend=u;var a=Object.prototype.toString;t.toString=a;var f=function(e){return typeof e=="function"};f(/x/)&&(f=function(e){return typeof e=="function"&&a.call(e)==="[object Function]"});var f;t.isFunction=f;var l=Array.isArray||function(e){return e&&typeof e=="object"?a.call(e)==="[object Array]":!1};return t.isArray=l,t.escapeExpression=c,t.isEmpty=h,t}(e),n=function(){"use strict";function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=" - "+r+":"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s0?e.helpers.each(t,n):r(this):i(t)}),e.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i=0,s="",o;f(e)&&(e=e.call(this)),t.data&&(o=m(t.data));if(e&&typeof e=="object")if(a(e))for(var u=e.length;i= 1.0.0"};n.REVISION_CHANGES=u;var a=r.isArray,f=r.isFunction,l=r.toString,c="[object Object]";n.HandlebarsEnvironment=h,h.prototype={constructor:h,logger:d,log:v,registerHelper:function(e,t,n){if(l.call(e)===c){if(n||t)throw new i("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){l.call(e)===c?r.extend(this.partials,e):this.partials[e]=t}};var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level.header__logo{width:34px}")),data=null}), define("views/header/header.tmpl",["vendor/handlebars-runtime","views/header/search-button","views/search/search-box"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=' "+o(n.$view.call(t,"views/header/search-button",{hash:{key:"searchButton"},data:i}))+"\n"+o(n.$view.call(t,"views/search/search-box",{hash:{key:"searchBox"},data:i}))+"\n",s})}), define("lib/helpers/consumer-sub-upsell-helper",["require","exports","module"],function(e,t,n){function i(e){return e.isSnippetized()&&s(e.get("monetization_model")).length>0}function s(e){switch(e){case"SUB_MID_TIER":return[r.productIds.HIGH_TIER];case"SUB_HIGH_TIER":return[r.productIds.HIGH_TIER];default:return[]}}var r=n.exports={monetizationModelToProductIds:s,soundRequiresUpsell:i,productIds:{HIGH_TIER:"go"}}}), define("lib/helpers/firefoxos-helper",["require","exports","module","$"],function(e,t,n){var r=e("$"),i="https://m.soundcloud.com/manifest.webapp",s=n.exports={isAppInstalled:function(){var e=new r.Deferred,t=navigator.mozApps.checkInstalled(i);return t.onsuccess=function(){t.result?e.resolve(!0):e.reject(!1)},e},installApp:function(e){navigator.mozApps.install(i).onsuccess=e}}}), define("lib/views/mixins/impression-on-render",["require","exports","module","underscore","lib/tracking/tracking-core","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/tracking/tracking-core"),s=e("lib/mixin"),o=n.exports=new s({applyTo:function(e,t){this.after(e,{renderDecorate:function(){this._trackImpression()},setup:function(){this._trackImpression=r.once(function(){i.impression(t.impressionName,t.data||{})})}})}})}), define("lib/native-links",["require","exports","module","lib/helpers/client-environment-helper","lib/url"],function(e,t,n){function N(){return s.iOS||s.android}function C(){return s.iOS&&i.iOSVersion","ig"),""):e=e.replace(//g,""),T.innerHTML=e,s.links&&a(T,function(e){e.nodeType===3?e.parentNode.nodeName.toLowerCase()!=="a"&&(e.nodeValue=e.nodeValue.replace(f,"{{$1}}").replace(c,"{{mailto:$1}}").replace(h,"$1{{@$2}}")):e.nodeName==="A"&&(g.test(e.href)&&(e.href=e.href.replace(g,s.internalLinksBaseUrl),e.removeAttribute("target")),e.children.length||(e.innerHTML=u(e.innerHTML,s.maxExternalLinksLength,!0)))}),e=T.innerHTML,s.links&&(e=e.replace(d,function(e,t){return s.internalLinks&&g.test(t)?''+t.replace(y,"")+"":s.externalLinks?''+u(t,s.maxExternalLinksLength)+"":t}).replace(v,'$1').replace(m,'@$1"),s.hashtagLinks&&(e=e.replace(p,'$1$2')),s.deepLinks&&(e=e.replace(l,'$1'))),s.maxLength&&(e=o(e,s.maxLength));if(s.paragraphs){e=e.split(b);for(E=0,S=e.length;E"),e[E]="

"+e[E]+"

";e=e.join("")}else e=e.replace(/[\r\n]+/g," ").replace(w," ");return e},e.withDefaults=function(n){var i=r({},t,n);return function(t,n){var s=n?r({},i,n):i;return e.call(this,t,s)}},typeof n!="undefined"&&n.exports?n.exports=e:(global=function(){return this}(),global.SC=global.SC||{},global.SC.usertext=e)})()}), define("views/search/suggestion-item.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".suggestionItem{display:block;height:50px}.suggestedLink{height:50px;display:block;padding:0 16px;color:#333}.suggestedResult{height:50px;display:block;line-height:50px;border-bottom:1px solid #d6d6d6;padding:0 0 0 32px}.suggestedLink:active{background:#f2f2f2}.suggestedUser>.suggestedResult{background:url(https://m.soundcloud.com/assets/images/ldpi/suggestions/user-8fcba46c.png) 0 14px no-repeat;background-size:18px 18px}.suggestedSound>.suggestedResult{background:url(https://m.soundcloud.com/assets/images/ldpi/suggestions/sound-8fcba46c.png) 0 16px no-repeat;background-size:18px 18px}")),data=null}), define("views/search/suggestion-item.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){return u(n.$route.call(e,"user",e&&e.user,{hash:{},data:t}))}function c(e,t){return u(n.$route.call(e,"listen",e&&e.sound,{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a="function",f=this;s+=' ',o=(o=t&&t.output,typeof o===a?o.apply(t):o);if(o||o===0)s+=o;return s+="\n\n",s})}), define("lib/css-transitions",["require","exports","module","$","underscore"],function(e,t,n){function h(e,t,n){d(e,t,{"in":f,out:l,transitionClass:a},n)}function p(e,t,n){d(e,t,{"in":o,out:u,transitionClass:s},n)}function d(e,t,n,s){var o=e?n.out:n.in,u=e?n.in:n.out,a=r(t);a.addClass(n.transitionClass).addClass(o),setTimeout(function(){a.addClass(u).removeClass(o),i.delay(function(){a.removeClass(n.transitionClass).removeClass(o).removeClass(u),s&&s()},c)},16)}var r=e("$"),i=e("underscore"),s="g-transition-fade",o="g-transition-fade-in",u="g-transition-fade-out",a="g-transition-translate",f="g-transition-slide-top-in",l="g-transition-slide-top-out",c=300;t.fadeIn=p.bind(null,!0),t.fadeOut=p.bind(null,!1),t.slideTopIn=h.bind(null,!0),t.slideTopOut=h.bind(null,!1)}), define("lib/scroll-bouncing-fix",["require","exports","module"],function(e,t,n){var r=n.exports=function(){this.$el.on("touchmove",function(e){e.preventDefault()})}}), define("layouts/listen",["require","exports","module","config","config/error-messages","models/exception","lib/layout","lib/futures","lib/lingua","models/playlist","models/sound","lib/url","lib/layouts/fullheight.tmpl","layouts/blocked-listen.tmpl","lib/layouts/fullheight.css","layouts/blocked-listen.css"],function(e,t,n){function m(e,t,n){var r=u.defer();return l.resolve(e,t,n).done(r.resolve).fail(s.ajaxFatal(i.SOUND_NOT_FOUND)),r}function g(e){var t=u.defer(),n,i;return n=r.get("router").getRouteInfo("playlist"),i=n.route.exec(e),i?(i.shift(),n.handler.apply({apply:function(e,n){f.resolve(n.userPermalink,n.playlistPermalink,n.secretToken).done(t.resolve).fail(function(){t.resolve(null)})}},i)):t.resolve(null),t}function y(e,t){if(t){var n=t.findSound(e);n&&n.set(e.attributes,{silent:!0}),e=n||e}return this.setTitle(a.t("[[soundTitle]] by [[authorName]]",{soundTitle:e.get("title"),authorName:e.get("user").username})),e.isBlocked()?(this.switchLayout(d),this.setViews({"l-main":["views/listen/blocked",{resource_id:e.resource_id}]})):(this.switchLayout(p),this.setViews({"l-main":["views/listen/listen-carousel",{resource_id:e.resource_id}],"l-footnote":["views/sound/sound-controls"]}))}var r=e("config"),i=e("config/error-messages"),s=e("models/exception"),o=e("lib/layout"),u=e("lib/futures"),a=e("lib/lingua"),f=e("models/playlist"),l=e("models/sound"),c=e("lib/url"),h=a.t("Enjoy the full SoundCloud experience with our free app."),p={template:e("lib/layouts/fullheight.tmpl"),includeFooter:".l-footnote"},d={template:e("layouts/blocked-listen.tmpl"),includeFooter:".l-footnote"},v=n.exports=o.extend({css:[e("lib/layouts/fullheight.css"),e("layouts/blocked-listen.css")],setup:function(e){var t=u.defer(),n,r=[];return r.push(m(e.userPermalink,e.soundPermalink,e.secretToken)),n=c.getQueryParam("in"),n&&r.push(g(n)),this.pageUrn="",u.all(r).then(function(e,t){return this.pageUrn=e.getUrn(),y.call(this,e,t)}.bind(this)).then(t.resolve),t},includeFooter:".l-footnote",getPageUrn:function(){return this.pageUrn},getUpsellText:function(){return h}})}), define("config/error-messages",["require","exports","module","lib/lingua"],function(e,t,n){var r=e("lib/lingua"),i=n.exports={UNKNOWN:{title:r.t("Something doesn’t sound right."),message:r.t("Refresh the page to try again.")},PAGE_NOT_FOUND:{title:r.t("We can’t find this page.")},SOUND_NOT_FOUND:{title:r.t("We can’t find this sound.")},PLAYLIST_NOT_FOUND:{title:r.t("We can’t find this playlist.")},USER_NOT_FOUND:{title:r.t("We can’t find this user.")}}}), define("models/exception",["require","exports","module","underscore","lib/event-bus","lib/model"],function(e,t,n){var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/model"),o=n.exports=s.extend({url:null,lastFetchTime:1,initialize:function(e){e=e||{},this.id||(e.id=this.id=this.cid,o.instances.set(this.id,this)),this.fatal=!!e.fatal,s.prototype.initialize.apply(this,arguments)}},{raise:function(e,t){var n=new o(e);n.release(),t=t||{};if(t.hard)throw n;i.trigger("exception",n)},ajaxFatal:function(e){return function(t,n){n!=="abort"&&o.raise(r.extend(e,{xhr:t,fatal:!0}))}},ajaxNonFatal:function(e){return function(t,n){n!=="abort"&&o.raise({message:e,xhr:t,fatal:!1})}}})}), define("models/playlist",["require","exports","module","$","underscore","models/audible-interface","lib/backbone","lib/event-bus","lib/model","models/sound","lib/errors/unauthorized-viewer","models/user","lib/mixins/urn"],function(e,t,n){function v(e,t){var n=e[t?"on":"off"].bind(e);n("play",m,this),n("pause",g,this),n("finish",y,this),n("time",b,this),n("seeked",w,this)}function m(e){this._internalNavigation||(E.call(this,e,"play"),this._internalNavigation=!0)}function g(e){this._internalNavigation||(E.call(this,e,"pause"),this._internalNavigation=!0)}function y(e){e.sound===this.soundsCollection.last()&&(E.call(this,e,"pause"),E.call(this,e,"finish"))}function b(e){E.call(this,e,"time")}function w(e){E.call(this,e,"seeked")}function E(e,t){e.playlist=this,this.trigger(t,e),u.trigger("audio:"+t,e)}function S(){var e=[];i.each(this.get("tracks"),function(t){var n,r,s;this.containsSound(t.id)||(s=new f(t),this.addSubmodel(s),r=i.extend({},t,{resource_id:{playlist_id:this.id,sound_id:t.id}}),n=new f(r,{suppressGlobalEvents:!0}),n.playlist=this,n.originalSound=s,e.push(n),v.call(this,n,!0))},this),this.soundsCollection.length===0?this.soundsCollection.reset(e):this.soundsCollection.add(e,{silent:!0})}function x(e,t){var n=e.soundsCollection,r=n.get(t);if(r){var i=n.indexOf(r),s=e.get("tracks").slice();return r.isPlaying()&&r.pause(),s.splice(i,1),n.remove(r),e.set("tracks",s),r.playlist=null,r.release(),!0}return!1}var r=e("$"),i=e("underscore"),s=e("models/audible-interface"),o=e("lib/backbone"),u=e("lib/event-bus"),a=e("lib/model"),f=e("models/sound"),l=e("lib/errors/unauthorized-viewer"),c=e("models/user"),h=e("lib/mixins/urn"),p;p=o.Collection.extend({model:f,fetch:function(){return this.playlist.fetch.apply(this.playlist,arguments)},initialize:function(e,t){this.playlist=t.playlist},hasDataForView:function(){return!!this.playlist.attributes.tracks},isFullyPopulated:function(){return!0},_usageCount:function(){return 1},hold:r.noop,release:r.noop});var d=n.exports=s.extend(h,{resource_type:"playlist",urnPrefix:"soundcloud:playlists",submodelMap:{tracks:f,user:c},soundsCollection:null,currentSoundCursor:0,_isPlayActionQueued:!1,_internalNavigation:!1,setup:function(){s.prototype.setup.apply(this,arguments);var e=this,t=this.soundsCollection=new p(null,{playlist:e});t.on("error",function(t,n){n instanceof l&&x(e,t.id)})},baseUrl:function(){return this.getEndpointUrl("playlist",{id:this.id})},parse:function(e){return e=a.prototype.parse.apply(this,arguments),e.secret_token&&e.tracks&&e.tracks.forEach(function(t){t.sharing!=="public"&&(t.secret_token=e.secret_token)}),e.sharing==="private"&&(e.track_count=Math.max(e.track_count,e.tracks.length)),e},createSubmodel:function(e,t){t==="tracks"?S.call(this):a.prototype.createSubmodel.apply(this,arguments)},findSound:function(e){return this.findSoundById(e.id)},containsSound:function(e){return!!this.findSoundById(e)},findSoundById:function(e){return this.soundsCollection.get(e)},getSounds:function(){return this.soundsCollection.models},getNumSounds:function(){return this.soundsCollection.length},getSoundIndex:function(e){return this.soundsCollection.indexOf(e)},getPrevSound:function(){return this.soundsCollection.at(this.currentSoundCursor-1)},getCurrentSound:function(){return this.soundsCollection.at(this.currentSoundCursor)},getNextSound:function(){return this.soundsCollection.at(this.currentSoundCursor+1)},getFirstSound:function(){return this.soundsCollection.at(0)},getLastSound:function(){return this.soundsCollection.at(this.soundsCollection.length-1)},play:function(e){this.soundsCollection.length?(this._internalNavigation=!1,this.getCurrentSound().audio.play(e)):this.lastFetchTime||(this._isPlayActionQueued=!0,this.fetch().done(function(){this._isPlayActionQueued&&(this._isPlayActionQueued=!1,this.play(e))}.bind(this)))},pause:function(e){this._isPlayActionQueued=!1,this.soundsCollection&&this.soundsCollection.length&&(this._internalNavigation=!1,this.getCurrentSound().audio.pause(e))},rewind:function(){this.currentSoundCursor=0},setCurrentSound:function(e){this.currentSoundCursor=this.getSoundIndex(e)},isPlaying:function(){return this.soundsCollection.some(function(e){return e.isPlaying()})},isPlayable:function(){return this.soundsCollection.every(function(e){return e.isPlayable()})}},{urnPrefix:"soundcloud:playlists",onCleanup:function(e){e.soundsCollection.each(function(e){e.playlist=null,e.release()}),e.soundsCollection.off(),delete e.soundsCollection,s.onCleanup(e)},resolve:function(e,t,n){return a._resolve(this,[e,"sets",t,n],function(n){var r=n.get("user");return r&&n.get("permalink")===t&&r.permalink===e})}})}), define("layouts/blocked-listen.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("layouts/blocked-listen.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".l-blockedListen{background-color:#f2f2f2}")),data=null}), define("views/listen/blocked",["require","exports","module","lib/view","views/listen/blocked.css","views/listen/blocked.tmpl"],function(e,t,n){var r=e("lib/view"),i=n.exports=r.extend({css:e("views/listen/blocked.css"),template:e("views/listen/blocked.tmpl"),className:"blockedTrack"})}), define("views/listen/listen-carousel",["require","exports","module","underscore","$","lib/views/mixins/audible-control","config","lib/futures","lib/views/mixins/has-queue-source","lib/play-manager","router","models/sound","views/sound/sound","lib/helpers/style-helper","lib/view","lib/window-events","views/listen/listen-carousel.css","views/listen/listen-carousel.tmpl"],function(e,t,n){function b(e){var t=e?"on":"off";v[t]("resize:debounced",P,this),f[t]("change:currentSound",w,this)}function w(e){e.isGoingForward&&e.prev?E.call(this,e.current.resource_id,!0):e.isGoingForward===!1&&E.call(this,e.current.resource_id),T(this,e.current)}function E(e,t){var n=t?0:3,r=t?2:0,i=t?C:N;this.animationPromise=this.animationPromise.then(function(){if(this.disposed)return;var n=this.$("."+this.itemClassName);return x.call(this,e,r),t?k.call(this,[n[1],n[2]],"left"):k.call(this,[n[0],n[1]],"right")}.bind(this)).then(function(){if(this.disposed)return;i(this.getElement("wrapper")[0],A.call(this));var e=this.$("."+this.itemClassName);e[n].parentNode.removeChild(e[n]),L([e[1],e[2]])}.bind(this))}function S(e){var t="sound_"+e,n=this.subviews[t];return n||(n=new h({resource_id:e}),this.addSubview(n.render(),t)),n}function x(e,t){var n=S.call(this,e),r=this.$("."+this.itemClassName)[t];r&&(r.innerHTML="",r.appendChild(n.el))}function T(e,t){var n=l.getRoute("listen",t);n?o.get("router").navigate(n,{trigger:!1,replace:!0}):t.once("change:permalink",function(){!e.disposed&&f.getCurrentSound()===t&&T(e,t)})}function N(e,t){e.insertBefore(t,e.firstChild)}function C(e,t){e.appendChild(t)}function k(e,t){t=t==="left"?-this._carouselWidth:this._carouselWidth;var n="transform: translate3d("+t+"px , 0, 0);";return e.forEach(function(e){e.className+=" g-transition-translate",p(e,n)}),u.delay(m)}function L(e){var t="transform: none;";e.forEach(function(e){i(e).removeClass("g-transition-translate"),p(e,t)})}function A(){var e=document.createElement("div");return e.className=this.itemClassName,O.call(this,e,this._carouselWidth),e}function O(e,t){e.style.width=t+"px"}function M(e){this.elWidth=this.el.offsetWidth,this.$el.find(".listenCarousel__itemWrapper").each(function(t){O(t,e)})}function _(e){var t=this.getElement("wrapper")[0],n=-1*e;p(t,"transform: translate("+n+"px, 0)"),t.style.width=3*e+"px"}function D(){return this._carouselWidth=this.el.offsetWidth,this._carouselWidth}function P(){var e=D.call(this);_.call(this,e),M.call(this,e)}var r=e("underscore"),i=e("$"),s=e("lib/views/mixins/audible-control"),o=e("config"),u=e("lib/futures"),a=e("lib/views/mixins/has-queue-source"),f=e("lib/play-manager"),l=e("router"),c=e("models/sound"),h=e("views/sound/sound"),p=e("lib/helpers/style-helper"),d=e("lib/view"),v=e("lib/window-events"),m=250,g,y=n.exports=d.extend(s,a,{css:e("views/listen/listen-carousel.css"),template:e("views/listen/listen-carousel.tmpl"),className:"listenCarousel",itemClassName:"listenCarousel__itemWrapper",element2selector:{wrapper:".listenCarousel__wrapper"},states:{transitionTranslate:function(e){this.getElement("wrapper")[e?"addClass":"removeClass"]("g-transition-translate")}},ModelClass:c,getQueueSource:function(){return this.model.playlist||this.model},cursor:-1,animationPromise:null,setup:function(){this.animationPromise=u.resolve(),this.$el.one("pointerdown",g.bind(this)),b.call(this,!0)},dispose:function(){b.call(this,!1)},renderDecorate:function(){this.whenInserted().done(function(){P.call(this),x.call(this,this.model.resource_id,1)}.bind(this))},teardown:function(){clearTimeout(this._fetchNeighborSoundsId)}});g=r.once(function(){var e=this.getQueueSource();e&&!e.isPlaying()&&this.playAudible(e,{userInitiated:!0})})}), define("views/sound/sound-controls",["require","exports","module","underscore","lib/event-bus","lib/views/mixins/fetch-experiments","lib/native-links","lib/helpers/open-app-store-helper","lib/play-manager","lib/view","views/sound/sound-controls.css","views/sound/sound-controls.tmpl"],function(e,t,n){function p(e){this.getState("disabled")||a[e==="prev"?"playPrev":"playNext"]({userInitiated:!0})}function d(){this.getState("disabled")||(a.toggleCurrent({userInitiated:!0}),this.experiments.get("mweb_listening","open_app_store_on_play")==="experiment_group"&&o.useDeeplinks()&&u())}function v(){var e=a.getCurrentSound(),t=!!e&&!!e.isLoading(),n=!a.hasCurrentSound(),r=n||!a.hasPrevSound(),i=n||!a.hasNextSound(),s=n||e.isBlocked();this.toggleState("loading",t).toggleState("prevDisabled",r).toggleState("nextDisabled",i).toggleState("playDisabled",s).toggleState("disabled",n)}function m(){this.toggleState("paused",!0).toggleState("playing",!1),v.call(this)}function g(){this.toggleState("playing",!0).toggleState("paused",!1),v.call(this)}function y(){this.toggleState("initializing",!0),this.addDeferred(r.delay(function(){this.toggleState("initializing",!1),this.toggleState("initialized",!0)}.bind(this),l))}function b(){this.toggleState("scrubbing",!0)}function w(){this.toggleState("scrubbing",!1)}var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/views/mixins/fetch-experiments"),o=e("lib/native-links"),u=e("lib/helpers/open-app-store-helper"),a=e("lib/play-manager"),f=e("lib/view"),l=2e3,c=250,h=n.exports=f.extend(s,{css:e("views/sound/sound-controls.css"),template:e("views/sound/sound-controls.tmpl"),className:"soundControls sc-selection-disabled",tagName:"section",events:{"click .soundControls__prev":"onClickPrev","click .soundControls__next":"onClickNext","click .soundControls__playPause":d},states:{loading:"loading",playing:"playing",paused:"paused",playDisabled:"playDisabled",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",disabled:"disabled",initializing:"initializing",initialized:"initialized"},setup:function(){this.listenTo(i,"audio:play",g).listenTo(i,"audio:pause",m).listenTo(i,"scrub:start",b).listenTo(i,"scrub:end",w).listenToOnce(i,"audio:play",y)},renderDecorate:function(){var e=a.getCurrentSound();e&&e.isPlaying()&&this.toggleState("initialized",!0).toggleState("playing",!0).toggleState("paused",!1)},dispose:function(){this.stopListening()},onClickNext:r.debounce(function(){p.call(this,"next")},c,!0),onClickPrev:r.debounce(function(){p.call(this,"prev")},c,!0)})}), define("views/listen/blocked.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".blockedTrack__sound{width:100%;height:0;padding-bottom:100%;position:relative}.blockedTrack__soundInner{position:absolute;top:0;bottom:0;left:0;right:0}.blockedTrack__suggestions{background-color:#fff}")),data=null}), define("views/listen/blocked.tmpl",["vendor/handlebars-runtime","views/sound/sound","views/listen/blocked-suggestions"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/sound",{hash:{resource_id:(o=t&&t._options,o==null||o===!1?o:o.resource_id),resource_type:(o=t&&t._options,o==null||o===!1?o:o.resource_type)},data:i}))+'

\n\n

'+u(n.$view.call(t,"views/listen/blocked-suggestions",{hash:{resource_id:(o=t&&t._options,o==null||o===!1?o:o.resource_id),resource_type:(o=t&&t.options,o==null||o===!1?o:o.resource_type)},data:i}))+"\n

\n",s})}), define("lib/views/mixins/has-queue-source",["require","exports","module","underscore","lib/event-bus","lib/mixin","lib/play-manager","lib/url"],function(e,t,n){function f(e){var t=e?"on":"off";i[t]("audio:play",l,this)[t]("audio:pause",c,this)}function l(e){h.call(this,e.sound)}function c(e){h.call(this,e.sound)}function h(e){this.toggleState("playing",p.call(this,e))}function p(e){return e=e||o.getCurrentSound(),!!(e&&e.isPlaying()&&this.getQueueSource().getSounds().indexOf(e)>-1)}function d(e){var t=e.data,n=t.audible,r=this.getQueueSource();return r&&o.indexOfSoundInSource(n.getCurrentSound(),r)>-1}var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/mixin"),o=e("lib/play-manager"),u=e("lib/url"),a=n.exports=new s({defaults:{getQueueSource:function(){return this.collection||this.model},getRestoreUrl:function(){return u.currentPath()}},applyTo:function(e){e.bubbleEvents=r.extend(e.bubbleEvents||{},{requestPlayContext:"onRequestPlayContext"})},onRequestPlayContext:function(e){d.call(this,e)&&(e.stopPropagation(),r.extend(e.data,{source:this.getQueueSource(),restoreUrl:this.getRestoreUrl()}))},before:{setup:function(){f.call(this,!0)},dispose:function(){f.call(this,!1)},renderDecorate:function(){var e=this.getQueueSource(),t=0;e&&o.setInitialSource(e,t,this.getRestoreUrl()),h.call(this)},teardown:function(){var e=this.getQueueSource();e&&o.unsetInitialSource(e)}}})}), define("views/sound/sound",["require","exports","module","lib/views/mixins/audible-control","lib/helpers/count-helper","lib/helpers/client-environment-helper","lib/event-bus","vendor/experiments/experiments","lib/views/mixins/fetch-experiments","lib/views/mixins/fullscreen-loader","lib/views/fullscreen-overlay","lib/views/mixins/has-queue-source","lib/helpers/image-helper","views/interstitials/like-app-upsell-content","lib/lingua","lib/native-links","lib/helpers/open-app-store-helper","lib/play-manager","models/sound","lib/views/mixins/swipeable","lib/tracking/tracking-core","lib/view","views/sound/sound.css","views/sound/sound.tmpl"],function(e,t,n){function x(){this.model.get("playable")||this.getElement("info").addClass("disabled"),this.toggleState("blocked",this.model.isBlocked())}function T(){w.action("navigate","user")}function N(){this.toggleAudible(this.model,{userInitiated:!0,context:this.getContextData()}),this.experiments.get("mweb_listening","open_app_store_on_play")==="experiment_group"&&v.useDeeplinks()&&m()}function C(e){e.originalEvent.stopPropagation()}function k(e){w.action("submit","like"),v.useDeeplinks()&&(this.subviews.likeAppUpsellModal||this.addSubview(new l({style:"dark",showHeader:!0,closeBehavior:"background",trackingIdentifier:"get_the_app::like",Subview:p}),"likeAppUpsellModal"),this.subviews.likeAppUpsellModal.open())}function L(){this.toggleState("paused",!0),this.toggleState("playing",!1)}function A(){this.toggleState("paused",!1),this.toggleState("playing",!0)}function O(){this.getState("paused")||(this._wasPaused=this.getState("paused"),this.toggleState("paused",!0))}function M(){this.toggleState("paused",this._wasPaused)}var r=e("lib/views/mixins/audible-control"),i=e("lib/helpers/count-helper"),s=e("lib/helpers/client-environment-helper").device,o=e("lib/event-bus"),u=e("vendor/experiments/experiments"),a=e("lib/views/mixins/fetch-experiments"),f=e("lib/views/mixins/fullscreen-loader"),l=e("lib/views/fullscreen-overlay"),c=e("lib/views/mixins/has-queue-source"),h=e("lib/helpers/image-helper"),p=e("views/interstitials/like-app-upsell-content"),d=e("lib/lingua"),v=e("lib/native-links"),m=e("lib/helpers/open-app-store-helper"),g=e("lib/play-manager"),y=e("models/sound"),b=e("lib/views/mixins/swipeable"),w=e("lib/tracking/tracking-core"),E=e("lib/view"),S=n.exports=E.extend(a,f,r,c,b,{swipeableSelector:".sound__artwork",ModelClass:y,css:e("views/sound/sound.css"),template:e("views/sound/sound.tmpl"),className:"sound g-box-full",element2selector:{info:".sound__info",artwork:".sound__artworkImage"},requiredAttributes:["user","title"],events:{"click .sound__artwork":N,"click .sound__info":T,"click .sound__likes":k,"pointerdown .sound__artwork":C,"pointerdown .sound__likes":C},bubbleEvents:{scrubStart:O,scrubEnd:M},states:{"show-likes":"show-likes"},_wasPaused:!1,setup:function(){this.el.className+=" "+s.brand,this.listenTo(o,"audio:pause",L).listenTo(o,"audio:play",A).model.on("change:playable",this.rerender,this),this.toggleState("show-likes",u.get("mweb_listening","like_button_upsell")==="enabled")},getTemplateData:function(e){return this.getState("show-likes")&&(e.likes_count_info={count:i.render(e.likes_count,{useSIUnits:!0}),fullMessage:d.tp("1 Like","%d Likes",e.likes_count,null,{comment:"How many times the track was Liked"})}),e.isBlocked=this.model.isBlocked(),e},dispose:function(){this.stopListening().model.off("change:playable",this.rerender,this)},renderDecorate:function(){var e=h.urlFrom(this.model.toJSON(),500),t=this.getElement("artwork")[0];h.fadeInBackground(e,t),x.call(this),this.model.playlist&&g.backfillHistoryFromPlaylist(this.model,this.model.playlist)},getQueueSource:function(){return this.model.playlist||this.model},onSwipeLeft:function(){g.playNext({userInitiated:!0})},onSwipeRight:function(){g.playPrev({userInitiated:!0})}})}), define("lib/helpers/style-helper",["require","exports","module"],function(e,t,n){function o(e,t,n){return e.style[t]=n,!0}function u(e){return e in document.documentElement.style}var r={transform:["webkit"]},i=Object.keys(r),s=n.exports=function(e,t){t=t.replace(";","");var n=t.split(":"),s=n[0],a=n[1],f=!1;return u(s)&&(f=o(e,s,a)),!f&&i.indexOf(s)>-1&&(f=r[s].some(function(t){var n="-"+t+"-"+s;if(u(n))return o(e,n,a)})),f}}), define("lib/window-events",["require","exports","module","$","underscore","lib/backbone","lib/support"],function(e,t,n){function l(e,t){var n=t+"d",r=e==="resize"?c(n):f.trigger.bind(f,e+":"+n);return i[t](r,a)}function c(e){var t=window.innerWidth,n=window.innerHeight,r=f.trigger.bind(f,"resize:x:"+e),i=f.trigger.bind(f,"resize:y:"+e),s=f.trigger.bind(f,"resize:"+e);return function(e){var o=window.innerWidth,u=window.innerHeight;o!==t&&r(e),u!==n&&i(e),s(e),n=u,t=o}}var r=e("$"),i=e("underscore"),s=e("lib/backbone"),o=e("lib/support"),u=o.orientationChange?"orientationchange":"resize",a=200,f=n.exports=i.extend({},s.Events);r(window).on(u,l("resize","debounce")).on(u,l("resize","throttle")).on("scroll",l("scroll","debounce")).on("scroll",l("scroll","throttle"))}), define("views/listen/listen-carousel.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".listenCarousel{position:relative;width:100%;height:100%;overflow:hidden}.listenCarousel__wrapper{height:100%}.listenCarousel__itemWrapper{float:left;height:100%}")),data=null}), define("views/listen/listen-carousel.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("lib/views/mixins/fetch-experiments",["require","exports","module","$","underscore","vendor/experiments/experiments","config/experiments","vendor/event-gateway/event-gateway","lib/mixin","lib/tracking/tracking-core","lib/url"],function(e,t,n){function v(){return h||(h=r.Deferred()),h}function m(){return c||(c=s.initialize(o).fetchAssignments().done(function(e){v().resolve(),s.setExperimentsFromQueryParams(l.getQueryParams()),u.setExperiments(e)}).fail(function(){c=null,h=null,f.whenRequestAllowed=p})),c}var r=e("$"),i=e("underscore"),s=e("vendor/experiments/experiments"),o=e("config/experiments"),u=e("vendor/event-gateway/event-gateway"),a=e("lib/mixin"),f=e("lib/tracking/tracking-core"),l=e("lib/url"),c,h,p=f.whenRequestAllowed,d=n.exports=new a({experiments:s,around:{hasData:function(e){return e.call(this)&&s.isUpToDate(s.getAssignments(),o.version)},fetchData:function(e,t){var n=[t?e.call(this,t):r.Deferred().resolve()],i=r.Deferred();return this.addDeferred(i),s.isUpToDate(s.getAssignments(),o.version)||n.push(m.call(this)),r.when(n).done(function(e){i.resolve(e)}).fail(function(){i.reject()}),i.done(this.rerender.bind(this)),i}},before:{setup:i.once(function(){s.getAssignments()||f.deferRequests(v)})}})}), define("lib/helpers/open-app-store-helper",["require","exports","module","underscore","lib/native-links"],function(e,t,n){var r=e("underscore"),i=e("lib/native-links");n.exports=r.once(function(){window.open(i.getStoreLink(),"_blank")})}), define("views/sound/sound-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundControls{height:80px;position:absolute;top:50%;left:0;right:0;margin-top:-40px;-webkit-transform:translate3d(0,0,0);pointer-events:none}.soundControls__control{background-position:0 0;background-repeat:no-repeat;background-size:100% auto;position:absolute;pointer-events:auto}.soundControls__prev,.soundControls__next{background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/skip_button-e03e9a61.png);width:28px;height:19px;top:30px;opacity:0;-webkit-transition:opacity 2s cubic-bezier(1,.01,.81,1);transition:opacity 2s cubic-bezier(1,.01,.81,1)}.soundControls__prev{left:17px}.soundControls__next{right:17px;-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.soundControls.disabled .soundControls__playPause,.soundControls.playing .soundControls__playPause:active,.soundControls.loading .soundControls__playPause:active{background-color:rgba(0,0,0,.5)}.soundControls.playing .soundControls__playPause,.soundControls.loading .soundControls__playPause{background-position:0 0}.soundControls__prev:active,.soundControls__next:active{background-position:0 -19px}.soundControls.disabled .soundControls__next,.soundControls.nextDisabled .soundControls__next,.soundControls.disabled .soundControls__prev,.soundControls.prevDisabled .soundControls__prev,.soundControls.playDisabled .soundControls__playPause{display:none}.initialized .soundControls__playPause{opacity:0}.initializing .soundControls__next,.initializing .soundControls__prev,.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{opacity:1}.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{-webkit-transition:none;transition:none}.soundControls.scrubbing{display:none}")),data=null}), define("views/sound/sound-controls.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=''+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Previous track",{hash:{_comment:"Help text on prev button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Play or pause track",{hash:{_comment:"Help text on play/pause button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Next track",{hash:{_comment:"Help text on next button"},data:i})},data:i}))+"\n",s})}), define("views/listen/blocked-suggestions",["require","exports","module","lib/helpers/charts-helper","collections/chart-tracks","collections/related-sounds","models/sound","lib/view","views/listen/blocked-suggestions.css","views/listen/blocked-suggestions.tmpl"],function(e,t,n){function c(){return this.relatedSounds.isFullyPopulated()||h.call(this)}function h(){return this.relatedSounds.length>=f}var r=e("lib/helpers/charts-helper"),i=e("collections/chart-tracks"),s=e("collections/related-sounds"),o=e("models/sound"),u=e("lib/view"),a="top",f=3,l=n.exports=u.extend({css:e("views/listen/blocked-suggestions.css"),template:e("views/listen/blocked-suggestions.tmpl"),className:"blockedSuggestions",ModelClass:o,requiredAttributes:["genre"],setup:function(e){this.relatedSounds=new s(null,{resource_id:e.resource_id,resource_type:e.resource_type}),this.setupCollectionListeners(this.relatedSounds)},dispose:function(){this.teardownCollectionListeners(this.relatedSounds),this.relatedSounds.release()},hasData:function(){return u.prototype.hasData.apply(this,arguments)&&c.call(this)},getTemplateData:function(e){var t=e.useFallback=!h.call(this),n=this.options.resource_id,o=r.userGenreToChartGenre(e.genre).id;return t?(e.tagline=r.taglines(a,o).short,e.getSuggestionsCollection=function(){return new i(null,{genre:o,chartKind:a})}):e.getSuggestionsCollection=function(){return new s(null,{resource_id:n})},e},fetchData:function(){return c.call(this)?u.prototype.fetchData.apply(this,arguments):this.relatedSounds.bulkFetch(f)}})}), define("lib/views/mixins/fullscreen-loader",["require","exports","module","lib/views/loading","lib/mixin"],function(e,t,n){var r=e("lib/views/loading"),i=e("lib/mixin"),s=n.exports=new i({override:{LoadingView:r,loadingViewArgs:function(){return{size:"fullscreen"}}}})}), define("views/interstitials/like-app-upsell-content",["require","exports","module","lib/helpers/client-environment-helper","lib/lingua","lib/native-links","lib/view","views/interstitials/like-app-upsell-content.tmpl","views/interstitials/like-app-upsell-content.css"],function(e,t,n){function a(e){this.bubble("closeButton:click")}function f(e){e.stopPropagation()}var r=e("lib/helpers/client-environment-helper").device,i=e("lib/lingua"),s=e("lib/native-links"),o=e("lib/view"),u=n.exports=o.extend({template:e("views/interstitials/like-app-upsell-content.tmpl"),css:e("views/interstitials/like-app-upsell-content.css"),className:"likeAppUpsellContent g-align-vertical",events:{"click .likeAppUpsellContent__closeButton":a,click:f},setup:function(e){this.el.className+=" "+r.brand},getTemplateData:function(e){var t=r.iOS?i.t("Get our iPhone app to save this track to your likes, create playlists and more."):i.t("Get our Android app to save this track to your likes, create playlists and more.");return{upsellIcon:"https://m.soundcloud.com/assets/images/ldpi/interstitial/like-upsell/heart-android-280d5bc8.png",upsellHeader:i.t("Try our app.It's even better"),upsellContent:t,getLikeUpsellDeepLink:s.getLikeCountDeepLink}}})}), define("lib/views/mixins/swipeable",["require","exports","module","lib/mixin"],function(e,t,n){function s(e){var t=e.data.direction;t==="left"&&this.onSwipeLeft?this.onSwipeLeft():this.onSwipeRight&&this.onSwipeRight(),e.originalEvent.preventDefault()}var r=e("lib/mixin"),i=n.exports=new r({defaults:{swipeableSelector:null},after:{renderDecorate:function(){this.$el.on("swipe",this.swipeableSelector,s.bind(this))}}})}), define("views/sound/sound.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".sound__info{position:absolute;z-index:1;top:20px;left:18px;right:18px}.sound__username{font-size:15px;line-height:22px}.sound__username a{color:#ccc}.sound__title{font-size:22px;line-height:1.3}.sound__controls{position:absolute;top:50%;left:0;right:0;height:80px;margin-top:-50px}.sound__infoContent{margin:0 0 4px}.sound__artwork,.sound__artworkOverlay{position:absolute;top:0;bottom:0;width:100%}.sound__artworkOverlay{height:100%;opacity:0;background:#000}.sound__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.sound__likes{color:#fff;position:absolute;bottom:12px;right:20px;line-height:39px;padding:0 10px 0 5px;font-size:14px}.sound__likes:before{width:35px;height:35px;background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/like_button-280d5bc8.png);background-size:35px 35px}.iOS .sound__likes{right:auto;left:20px;border-radius:4px;height:33px;line-height:33px;background:rgba(0,0,0,.3);border:1px solid transparent}.sound.iOS.blocked .sound__likes,.sound.iOS.paused .sound__likes{background:none;border-color:rgba(255,255,255);border-color:rgba(255,255,255,.2)}.iOS .sound__likes:before{width:25px;height:25px;background-size:25px 25px;margin-top:4px}.sound__blockedMessage{color:#ccc;position:absolute;text-align:center;font-size:15px;line-height:18px;width:80%;left:0;right:0;margin:0 auto;top:40%;padding:102px 18px 0;background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/geoblock-5a813d34.png);background-size:68px 84px;background-position:center top;background-repeat:no-repeat}.sound.playing .sound__playIndicator{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.sound__info.disabled>.sound__infoDisabled{display:block}.sound__infoDisabled{display:none;position:absolute;background:rgba(0,0,0,.2);top:0;left:0;right:0;bottom:0}.sound.blocked .sound__artworkOverlay,.sound.paused .sound__artworkOverlay{opacity:.6}.sound.paused .sound__username,.sound.blocked .sound__username,.sound.paused .sound__title,.sound.blocked .sound__title{background:none;box-shadow:none}")),data=null}), define("views/sound/sound.tmpl",["vendor/handlebars-runtime","views/banner/banner","views/sound/waveform"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="";return r+='

'+u(n.$t.call(e,"Not available inyour country",{hash:{},data:t}))+"

\n",r}function c(e,t){var r="",i;r+=" ",i=n["if"].call(e,e&&e.playable,{hash:{},inverse:a.program(6,p,t),fn:a.program(4,h,t),data:t});if(i||i===0)r+=i;r+=" "+u(n.$view.call(e,"views/sound/waveform",{hash:{resource_id:e&&e._resource_id,resource_type:e&&e._resource_type},data:t}))+" ",i=n["if"].call(e,e&&e.likes_count_info,{hash:{},inverse:a.noop,fn:a.program(9,v,t),data:t});if(i||i===0)r+=i;return r+="\n",r}function h(e,t){var r="";return r+=" "+u(n.$view.call(e,"views/banner/banner",{hash:{},data:t}))+" ",r}function p(e,t){var r="",i;r+=" ",i=n.$view.call(e,"views/banner/banner",{hash:{},inverse:a.noop,fn:a.program(7,d,t),data:t});if(i||i===0)r+=i;return r+=" ",r}function d(e,t){var r="";return r+=" "+u(n.$t.call(e,"We’re sorry, that track isn’t available on mobile.",{hash:{},data:t}))+" ",r}function v(e,t){var r="",i;return r+=' '+u(n.$a11y.call(e,{hash:{visible:(i=e&&e.likes_count_info,i==null||i===!1?i:i.count),screenreader:(i=e&&e.likes_count_info,i==null||i===!1?i:i.fullMessage)},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+='\n

'+u((o=t&&t.title,typeof o===f?o.apply(t):o))+'

\n',o=n["if"].call(t,t&&t.isBlocked,{hash:{},inverse:a.program(3,c,i),fn:a.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}), define("config/experiments",["require","exports","module","lib/endpoints","vendor/event-gateway/event-gateway","lib/support"],function(e,t,n){var r=e("lib/endpoints"),i=e("vendor/event-gateway/event-gateway"),s=e("lib/support"),o=n.exports={version:"23-05-2016_15:35",availableLayers:["mweb_listening"],anonymousUserId:i.getAnonymousId(),assignmentServiceUrl:r.getEndpointUrl("assignments"),localStorageKey:"MW::local::assignments",localStorageEnabled:s.localStorage}}), define("lib/helpers/charts-helper",["require","exports","module","underscore","lib/lingua","shared/config/charts"],function(e,t,n){function u(e){return e.toLowerCase().replace(/[^a-z]/g,"").replace(/^(drumnbass|dn?b)$/,"drumbass").replace(/^(rn?b|soul)$/,"rbsoul").replace(/^(rap|hiphop)$/,"hiphoprap").replace(/^folk$/,"folksingersongwriter").replace(/^(jazz|blues)$/,"jazzblues").replace(/^(dance|edm)$/,"danceedm")}function a(e){return r.findWhere(s.genres,{id:e})}var r=e("underscore"),i=e("lib/lingua"),s=e("shared/config/charts"),o=n.exports={genreLabel:function(e){return l[e]},genres:function(e){return r.where(s.genres,{category:e})},getGenre:a,genreUrn:function(e){return"soundcloud:genres:"+e},chartKindLabel:function(e){return f[e]},chartKinds:function(){return s.kinds},userGenreToChartGenre:function(e){return e&&a(u(e))||a("all-music")},taglines:function(e,t){var n=o.genreLabel(t),r=o.getGenre(t),s=r.category,u=r.content,a=[s,e,u].join("-");switch(a){case"all-trending-music":return{"short":i.t("New & hot tracks"),"long":i.t("Up-and-coming tracks on SoundCloud")};case"all-trending-audio":return{"short":i.t("New & hot audio"),"long":i.t("Up-and-coming audio on SoundCloud")};case"all-top-music":return{"short":i.t("Top 50 tracks"),"long":i.t("The most played tracks on SoundCloud this week")};case"all-top-audio":return{"short":i.t("Top 50 audio"),"long":i.t("The most played audio on SoundCloud this week")};case"music-trending-music":return{"short":i.t("New & hot in [[[genreLabel]]]",{genreLabel:n},{comment:"New & hot music tracks in (a genre)"}),"long":i.t("Up-and-coming tracks in [[[genreLabel]]] on SoundCloud",{genreLabel:n})};case"music-top-music":return{"short":i.t("Top 50 in [[[genreLabel]]]",{genreLabel:n},{comment:"Top 50 music tracks in (a genre)"}),"long":i.t("The most played tracks in [[[genreLabel]]] on SoundCloud this week",{genreLabel:n})};case"audio-trending-audio":return{"short":i.t("New & hot in [[[genreLabel]]]",{genreLabel:n},{comment:"New & hot audio tracks in (a genre)"}),"long":i.t("Up-and-coming in [[[genreLabel]]] on SoundCloud",{genreLabel:n},{comment:"Up-and-coming audio tracks in (a genre)"})};case"audio-top-audio":return{"short":i.t("Top 50 in [[[genreLabel]]]",{genreLabel:n},{comment:"Top 50 audio tracks in (a genre)"}),"long":i.t("The most played in [[[genreLabel]]] on SoundCloud this week",{genreLabel:n},{comment:"The most played audio tracks in (a genre)"})};default:}}},f={trending:i.t("New & hot"),top:i.t("Top 50")},l={"all-music":i.t("All music genres"),"all-audio":i.t("All audio genres"),alternativerock:i.t("Alternative Rock"),ambient:i.t("Ambient"),classical:i.t("Classical"),country:i.t("Country"),danceedm:i.t("Dance & EDM"),dancehall:i.t("Dancehall"),deephouse:i.t("Deep House"),disco:i.t("Disco"),drumbass:i.t("Drum & Bass"),dubstep:i.t("Dubstep"),electronic:i.t("Electronic"),folksingersongwriter:i.t("Folk & Singer-Songwriter"),hiphoprap:i.t("Hip-hop & Rap"),house:i.t("House"),indie:i.t("Indie"),jazzblues:i.t("Jazz & Blues"),latin:i.t("Latin"),metal:i.t("Metal"),piano:i.t("Piano"),pop:i.t("Pop"),rbsoul:i.t("R&B & Soul"),reggae:i.t("Reggae"),reggaeton:i.t("Reggaeton"),rock:i.t("Rock"),soundtrack:i.t("Soundtrack"),speech:i.t("Speech"),techno:i.t("Techno"),trance:i.t("Trance"),trap:i.t("Trap"),triphop:i.t("Triphop"),world:i.t("World"),audiobooks:i.t("Audiobooks"),business:i.t("Business"),comedy:i.t("Comedy"),entertainment:i.t("Entertainment"),learning:i.t("Learning"),newspolitics:i.t("News & Politics"),religionspirituality:i.t("Religion & Spirituality"),science:i.t("Science"),sports:i.t("Sports"),storytelling:i.t("Storytelling"),technology:i.t("Technology")}}), define("collections/chart-tracks",["require","exports","module","underscore","lib/mixins/audio-source","lib/helpers/charts-helper","lib/collection","models/sound"],function(e,t,n){var r=e("underscore"),i=e("lib/mixins/audio-source"),s=e("lib/helpers/charts-helper"),o=e("lib/collection"),u=e("models/sound"),a=n.exports=o.extend(i,{model:u,baseUrl:function(){return this.getEndpointUrl("charts",{},{kind:this.options.chartKind,genre:s.genreUrn(this.options.genre)})},getSourceInfo:function(){return{type:"charts"}},getSounds:function(){return this.models},parse:function(e){return r.pluck(e.collection,"track")}})}), define("views/listen/blocked-suggestions.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".blockedSuggestions__section{padding:0 10px}.blockedSuggestions__heading{border-bottom:1px solid #f3f3f3;line-height:55px}")),data=null}), define("views/listen/blocked-suggestions.tmpl",["vendor/handlebars-runtime","lib/views/sounds-list"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var n="",r;return n+=" "+a((r=e&&e.tagline,typeof r===u?r.apply(e):r))+" ",n}function c(e,t){var r="";return r+=" "+a(n.$t.call(e,"Try playing these related tracks",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression,f=this;s+='

',o=n["if"].call(t,t&&t.useFallback,{hash:{},inverse:f.program(3,c,i),fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="

\n\n"+a(n.$view.call(t,"lib/views/sounds-list",{hash:{getCollection:t&&t.getSuggestionsCollection},data:i}))+"\n",s})}), define("views/interstitials/like-app-upsell-content.tmpl",["vendor/handlebars-runtime","views/app-buttons/app-buttons"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a="function";s+=''+u(n.$t.call(t,"Close",{hash:{},data:i}))+'

'+u((o=t&&t.upsellContent,typeof o===a?o.apply(t):o))+"\n

"+u(n.$view.call(t,"views/app-buttons/app-buttons",{hash:{getDeepLink:t&&t.getLikeUpsellDeepLink},data:i}))+"\n",s})}), define("views/interstitials/like-app-upsell-content.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".likeAppUpsellContent{background:#fff;padding:24px 24px 0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.likeAppUpsellContent__image{display:block;margin:0 auto}.likeAppUpsellContent.iOS{border-radius:6px;padding-bottom:19px;text-align:center;width:300px}.likeAppUpsellContent.iOS .likeAppUpsellContent__messageHeader{margin-top:20px;font-size:16;color:#333}.likeAppUpsellContent.iOS .likeAppUpsellContent__messageContent{margin-top:18px;font-size:14;color:#999}.likeAppUpsellContent.iOS .appButtons{margin-top:20px}.likeAppUpsellContent.android{border-radius:2px;padding-bottom:16px;text-align:left;width:280px}.likeAppUpsellContent.android .likeAppUpsellContent__messageHeader{margin-top:24px;font-size:16;color:#333}.likeAppUpsellContent.android .likeAppUpsellContent__messageContent{margin-top:20px;font-size:14;color:#999}.likeAppUpsellContent.android .appButtons{margin-top:32px}.likeAppUpsellContent__closeButton{position:absolute;top:13px;right:11px;border:0;overflow:hidden;background-color:transparent;width:11px;height:11px}.likeAppUpsellContent__closeButton:before{width:11px;height:11px;background:url(https://m.soundcloud.com/assets/images/ldpi/interstitial/dialog_close-a797f6bf.png);background-size:11px 11px;float:left;content:''}")),data=null}), define("views/banner/banner",["require","exports","module","underscore","lib/view","views/banner/banner.css"],function(e,t,n){var r=e("underscore"),i=e("lib/view"),s=n.exports=i.extend({className:"banner g-z-index-banner",css:e("views/banner/banner.css"),template:function(){return""},defaults:{message:null},setup:function(e){this.options.message=e.message||e.blockContent,this.toggleState("disabled",!0),r.bindAll(this,"setBanner")},renderDecorate:function(){this.whenInserted().done(function(){var e=this.options;!r.isEmpty(e)&&!r.isEmpty(r.compact(r.values(e)))&&this.setBanner(e)}.bind(this))},setBanner:function(e){if(!e||!e.message)return;var t=this.el,n=e.message;n&&this.getState("disabled")?(this.toggleState("disabled",!1),t.innerHTML=e.message,t.style.top=e.position):n&&!this.getState("disabled")?t.innerHTML=e.message:this.toggleState("disabled",!0)}})}), define("views/sound/waveform",["require","exports","module","views/sound/waveform-canvas","lib/math","models/sound","lib/helpers/style-helper","lib/view","views/sound/waveform.tmpl","views/sound/waveform.css"],function(e,t,n){function f(e){var t=e?"on":"off";this.model[t]("play pause",l,this)[t]("position",c,this)}function l(){this.toggleState("playing",this.model.isPlaying())}function c(){this._isScrubbing||h.call(this,this.model.currentTime()/this.model.duration())}function h(e){if(!this.subviews.waveformCanvasUnplayed)return;var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this.model.getMediaDuration()/this.model.duration();e=i.clamp(e,0,n),o(this.getElement("waveformPlayed")[0],"transform: translateX("+(t-Math.floor(t*e))+"px)"),o(this.getElement("waveformUnplayed")[0],"transform: translateX("+ -Math.floor(t*e)+"px)")}function p(e){var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this._currentSeek+e*t,r=this.model.getMediaDuration()/this.model.duration();this._currentSeek=i.clamp(n,0,r*t),this._isScrubbing&&(h.call(this,this._currentSeek/t),this.subviews.timeIndicator.manualProgress(this._currentSeek/t))}function d(){this._isScrubbing=!0,this.subviews.timeIndicator.toggleScrubbing(!0),this.toggleState("scrubbing",!0)}function v(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this.model.seek(this.model.duration()*(this._currentSeek/e)),this._isScrubbing=!1,this.subviews.timeIndicator.toggleScrubbing(!1),this.toggleState("scrubbing",!1)}function m(e){p.call(this,e.data.delta)}var r=e("views/sound/waveform-canvas").Events,i=e("lib/math"),s=e("models/sound"),o=e("lib/helpers/style-helper"),u=e("lib/view"),a=n.exports=u.extend({template:e("views/sound/waveform.tmpl"),css:e("views/sound/waveform.css"),className:"waveform sc-selection-disabled g-opacity-transition",ModelClass:s,element2selector:{waveformPlayed:".waveform__waveformCanvasPlayed > canvas",waveformUnplayed:".waveform__waveformCanvasUnplayed > canvas"},bubbleEvents:{scrubStart:d,scrub:m,scrubEnd:v},defaults:{upperPartHeight:.7},requiredAttributes:["id","waveform_url","state"],setup:function(){this.toggleState("visual",this.options.visual),this._currentSeek=0,f.call(this,!0)},dispose:function(){f.call(this,!1)},renderDecorate:function(){this.subviews.waveformCanvasUnplayed.on(r.RENDERED,function(){this.toggleState("visible",!0),l.call(this)},this)},getTemplateData:function(e){var t=this.options;return{model:e,upperPartHeight:t.upperPartHeight,upperPartHeightPercent:t.upperPartHeight*100+"%"}}})}), define("shared/config/charts",["require","exports","module"],function(e,t,n){n.exports={defaultKind:"top",defaultGenre:"all-music",kinds:[{id:"top",urlPart:"top"},{id:"trending",urlPart:"new"}],genres:[{id:"all-music",category:"all",content:"music"},{id:"all-audio",category:"all",content:"audio"},{id:"alternativerock",category:"music",content:"music"},{id:"ambient",category:"music",content:"music"},{id:"classical",category:"music",content:"music"},{id:"country",category:"music",content:"music"},{id:"danceedm",category:"music",content:"music"},{id:"dancehall",category:"music",content:"music"},{id:"deephouse",category:"music",content:"music"},{id:"disco",category:"music",content:"music"},{id:"drumbass",category:"music",content:"music"},{id:"dubstep",category:"music",content:"music"},{id:"electronic",category:"music",content:"music"},{id:"folksingersongwriter",category:"music",content:"music"},{id:"hiphoprap",category:"music",content:"music"},{id:"house",category:"music",content:"music"},{id:"indie",category:"music",content:"music"},{id:"jazzblues",category:"music",content:"music"},{id:"latin",category:"music",content:"music"},{id:"metal",category:"music",content:"music"},{id:"piano",category:"music",content:"music"},{id:"pop",category:"music",content:"music"},{id:"rbsoul",category:"music",content:"music"},{id:"reggae",category:"music",content:"music"},{id:"reggaeton",category:"music",content:"music"},{id:"rock",category:"music",content:"music"},{id:"soundtrack",category:"music",content:"music"},{id:"techno",category:"music",content:"music"},{id:"trance",category:"music",content:"music"},{id:"trap",category:"music",content:"music"},{id:"triphop",category:"music",content:"music"},{id:"world",category:"music",content:"music"},{id:"audiobooks",category:"audio",content:"audio"},{id:"business",category:"audio",content:"audio"},{id:"comedy",category:"audio",content:"audio"},{id:"entertainment",category:"audio",content:"audio"},{id:"learning",category:"audio",content:"audio"},{id:"newspolitics",category:"audio",content:"audio"},{id:"religionspirituality",category:"audio",content:"audio"},{id:"science",category:"audio",content:"audio"},{id:"sports",category:"audio",content:"audio"},{id:"storytelling",category:"audio",content:"audio"},{id:"technology",category:"audio",content:"audio"}]}}), define("lib/views/sounds-list",["require","exports","module","lib/views/list","views/sound/sound-badge"],function(e,t,n){var r=e("lib/views/list"),i=e("views/sound/sound-badge"),s=n.exports=r.extend({Subview:i,defaults:{maxDisplay:3,getCollection:null},className:"g-list",itemClassName:"g-list-item",setup:function(e){this.collection=e.getCollection()}})}), define("views/banner/banner.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".banner.disabled{display:none}.banner{position:absolute;left:0;width:100%;height:36px;line-height:36px;background:#000;background:rgba(0,0,0,.8);color:#e5e5e5;text-align:center;font-size:13px}")),data=null}), define("views/sound/waveform-canvas",["require","exports","module","underscore","lib/views/canvas-view","vendor/color/color","config","models/sound","lib/store","lib/support"],function(e,t,n){function E(){if(this.disposed)return;if(!this.waveformData){T.call(this).done(this.renderWaveform.bind(this));return}var e=this.options;this.clearCanvas(),S({waveform:this.waveformData,duration:this.model.duration(),mediaDuration:this.model.getMediaDuration(),scaledWidth:this.elWidth,scaledHeight:this.elHeight,context:this.context,bgColor:e.bgColor,bottomBgColor:e.bottomBgColor,upperPartHeight:e.upperPartHeight,upperAlpha:e.upperAlpha,lowerAlpha:e.lowerAlpha}),this.trigger(w.Events.RENDERED)}function S(e){var t=e.waveform,n=e.scaledWidth,r=e.scaledHeight,i=e.upperPartHeight,o=e.context,u=Math.round(i*r),a=r-u,f=n/t.length,l=s(e.bgColor),c=s(e.bottomBgColor),h,p,m,b,w,E=l.rgba(e.upperAlpha),S=c.rgba(e.lowerAlpha),x=l.rgba(e.upperAlpha*y),T=l.rgba(e.lowerAlpha*y),N=Math.ceil(e.mediaDuration/e.duration*n);for(h=0;h-1?C():b.get(r);return i?t.resolve({data:i}):(t.done(function(e){b.set(e.key,e.data)}),x(r).done(function(e){t.resolve({key:r,data:e.samples.reduce(N(e.height),new l(e.samples.length))})}).fail(function(){t.resolve({key:r,data:C()})})),t.done(function(e){this.waveformData=e.data}.bind(this)),t.promise()}var r=e("underscore"),i=e("lib/views/canvas-view"),s=e("vendor/color/color"),o=e("config"),u=e("models/sound"),a=e("lib/store"),f=e("lib/support"),l=f.typedArrays?Uint8Array:Array,c="/images/player-waveform-medium.png",h=500,p=1800,d=140,v=2,m=1,g=v+m,y=.2,b=new a({maxLength:h}),w=n.exports=i.extend({className:"g-box-full waveformCanvas",defaults:{bgColor:"#333333",bottomBgColor:"#EEEEEE",lowerAlpha:1,upperAlpha:1,upperPartHeight:.61},ModelClass:u,requiredAttributes:["waveform_url"],waveformData:null,onCanvasInserted:E,onCanvasResize:E,renderWaveform:E,renderWaveformDecorate:$.noop},{Events:{RENDERED:"waveform-canvas.rendered"}}),N=r.memoize(function(e){return function(t,n,r){return t[r]=e-n,t}}),C=r.memoize(function(){var e=new l(p);for(var t=0;t

= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasPlayed",bgColor:"#FF6600",bottomBgColor:"#ffa366",className:"g-moving-element"},data:i}))+'

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasUnplayed",bgColor:"#FFFFFF",bottomBgColor:"#B3B3B3",className:"g-moving-element"},data:i}))+'

\n

'+u(n.$view.call(t,"views/listen/time-indicator",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"timeIndicator"},data:i}))+'\n

'+u(n.$view.call(t,"views/listen/scrubber",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type)},data:i}))+"\n

",s})}), define("views/sound/waveform.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".waveform{height:100%;pointer-events:none}.waveform,.waveform__layer{width:100%;position:absolute}.waveform__layer{height:87px;bottom:18%;overflow:hidden;pointer-events:auto;-ms-touch-action:none;touch-action:none}.waveform__layer .waveform__layer{bottom:0}.waveform__timeIndicator{position:absolute;bottom:18%;margin-bottom:34px;display:inline-block;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);transition:bottom .15s linear;z-index:2}.waveform:not(.playing) .waveform__timeIndicator .timeIndicator__container,.waveform.scrubbing .waveform__timeIndicator .timeIndicator__container{background:none}.waveform.scrubbing .waveform__timeIndicator{bottom:46%;transition-timing-function:cubic-bezier(.51,.37,.61,1.6);transition-duration:.25s}.waveform.scrubbing .timeIndicator__text{font-size:20px}.waveform__waveformCanvases{clip:rect(50px,auto,53px,0);-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 54px;transform-origin:0 54px;-webkit-transition:all .2s cubic-bezier(.68,.68,.165,1);transition:all .2s cubic-bezier(.68,.68,.165,1);z-index:0}.waveform.playing .waveform__waveformCanvases{clip:rect(0,auto,87px,0);-webkit-transform:scaleY(1);transform:scaleY(1);transition:all .45s cubic-bezier(.68,.68,.165,1.45);-webkit-transition:all .45s cubic-bezier(.68,.68,.165,1.45)}.waveform__waveformCanvasPlayed,.waveform__waveformCanvasUnplayed{z-index:1}.waveform__waveformCanvasPlayed{right:50%}.waveform__waveformCanvasPlayed canvas{-webkit-transform:translateX(100%);transform:translateX(100%)}.waveform__waveformCanvasUnplayed{left:50%}.waveform__waveformCanvasUnplayed canvas{-webkit-transform:translateX(0);transform:translateX(0)}.waveform__scrubber{z-index:3}")),data=null}), define("views/sound/sound-badge",["require","exports","module","lib/views/mixins/audible-control","config","lib/helpers/datetime-helper","lib/views/mixins/deferred-images","models/sound","lib/view","views/sound/sound-badge.css","views/sound/sound-badge.tmpl"],function(e,t,n){function l(e){var t=e?"on":"off";this.model[t]("play pause",c,this)}function c(){h.call(this)}function h(){if(this.disposed)return;this.toggleState("playing",this.model.isPlaying())}function p(e){var t=this.model;if(t.isBlocked()){e.preventDefault();return}t.isPlaying()||this.playAudible(t,{userInitiated:!0,context:this.getContextData()})}var r=e("lib/views/mixins/audible-control"),i=e("config"),s=e("lib/helpers/datetime-helper"),o=e("lib/views/mixins/deferred-images"),u=e("models/sound"),a=e("lib/view"),f=n.exports=a.extend(r,o,{css:e("views/sound/sound-badge.css"),template:e("views/sound/sound-badge.tmpl"),ModelClass:u,className:"soundBadge g-badge",requiredAttributes:["permalink_url","user","title"],events:{click:p},setup:function(){l.call(this,!0)},dispose:function(){l.call(this,!1)},renderDecorate:function(){h.call(this)},getTemplateData:function(e){var t=i.get("router").getLayoutInfo(),n=t&&t.args,r=n&&n.username;return e.timecode=s.timecode(e.duration),e.isReposted&&t.layoutName==="user-profile"&&(e.layoutUsername=r),e.isBlocked=this.model.isBlocked(),e.isSnippetized=this.model.isSnippetized(),e}})}), define("lib/views/canvas-view",["require","exports","module","lib/helpers/client-environment-helper","lib/view","lib/window-events"],function(e,t,n){function a(){try{var e=this.el.offsetWidth,t=this.el.offsetHeight;if(this.elWidth!==e||this.elHeight!==t)f.call(this,e,t),this.onCanvasResize()}catch(n){}}function f(e,t){this.elWidth=e||this.el.offsetWidth,this.elHeight=t||this.el.offsetHeight,r.device.dpi==="hdpi"&&o!==1?(this.el.setAttribute("width",this.elWidth*o),this.el.setAttribute("height",this.elHeight*o),this.context.scale(o,o)):(this.el.setAttribute("width",this.elWidth),this.el.setAttribute("height",this.elHeight))}var r=e("lib/helpers/client-environment-helper"),i=e("lib/view"),s=e("lib/window-events"),o=r.device.devicePixelRatio/r.browser.backingStoreRatio,u=n.exports=i.extend({tagName:"canvas",className:"g-box-full",context:null,template:function(){return""},_setup:function(){this.context=this.el.getContext("2d"),s.on("resize:debounced",a,this),i.prototype._setup.apply(this,arguments)},_dispose:function(){if(this.disposed)return;s.off("resize:debounced",a,this),delete this.context,delete this.elWidth,delete this.elHeight,i.prototype._dispose.apply(this,arguments)},renderDecorate:function(){this.whenInserted().done(function(){f.call(this),this.onCanvasInserted()}.bind(this))},onCanvasInserted:$.noop,onCanvasResize:$.noop,forceResize:function(){this._onWindowResize()},clearCanvas:function(){this.context&&this.context.clearRect(0,0,this.elWidth,this.elHeight)}})}), define("vendor/color/color",["require","exports","module"],function(e,t,n){(function(){function f(e){return e===void 0}function l(e){return parseInt(e,16)}function c(e){return parseInt(e,10)}function h(e){return e.length===1?"0"+e:""+e}function p(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d(e){return typeof e=="string"&&e.indexOf("%")!==-1}function v(e){return o(1,u(0,e))}function m(e,t){p(e)&&(e="100%");var n=d(e);return e=o(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)r.brightness&&n.color>r.color?A(e):A(t)}var e=/^[\s,#]+/,t=/\s+$/,r=Math,i=r.abs,s=r.round,o=r.min,u=r.max,a=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),hsl:new RegExp("hsl"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}(),A=function(e){var t=E(e);return{hue:function(e){return S.call(this,e)},darken:function(e){return x.call(this,e)},lighten:function(e){return T.call(this,e)},analogous:function(e,t){return N.call(this,e,t)},readable:function(e){return k.call(this,e)},diff:function(e){return C.call(this,e)},contrast:function(e,t){return L.call(this,e,t)},hex:function(){return t?"#"+g(t):null},toRgb:function(){return t},isValid:function(){return t?!0:!1},rgb:function(){return t?"rgb("+[s(t.r),s(t.g),s(t.b)].join(", ")+")":null},rgba:function(e){return t?"rgba("+[s(t.r),s(t.g),s(t.b),f(e)?1:v(e)].join(", ")+")":null},toHsl:function(){return b(t)},hsl:function(){var e=b(t);return t?"hsl("+e.h+", "+e.s+"%, "+e.l+"%)":null}}};typeof n!="undefined"&&n.exports?n.exports=A:(global=function(){return this}(),global.SC=global.SC||{},global.SC.color=A)})()}), define("views/listen/time-indicator",["require","exports","module","underscore","lib/helpers/datetime-helper","lib/views/progress-bar","views/listen/time-indicator.tmpl","views/listen/time-indicator.css"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/datetime-helper"),s=e("lib/views/progress-bar"),o=1e3/60,u=n.exports=s.extend({template:e("views/listen/time-indicator.tmpl"),css:e("views/listen/time-indicator.css"),className:"timeIndicator",element2selector:{current:".timeIndicator__current"},setup:function(){s.prototype.setup.apply(this,arguments),this._isScrubbing=!1,this.updateTimeDisplay=r.throttle(this.updateTimeDisplay.bind(this),o)},getTemplateData:function(e){e.timecode=i.timecode(this.model.getMediaDuration())},manualProgress:function(e){this.updateTimeDisplay(e*this.model.duration())},updateProgress:function(e){this._isScrubbing||this.updateTimeDisplay(e)},toggleScrubbing:function(e){this._isScrubbing=e},updateTimeDisplay:function(e){var t=e?e:this.model.currentTime();t=Math.floor(t/1e3+.1)*1e3,this.getElement("current")[0].innerHTML=i.timecode(t)}})}), define("views/listen/scrubber",["require","exports","module","lib/views/mixins/draggable","lib/event-bus","models/sound","lib/view"],function(e,t,n){function a(){i.trigger("scrub:start"),this.bubble("scrubStart")}function f(e){this.bubble("scrub",{delta:e.data.delta})}function l(){i.trigger("scrub:end"),this.bubble("scrubEnd")}var r=e("lib/views/mixins/draggable"),i=e("lib/event-bus"),s=e("models/sound"),o=e("lib/view"),u=n.exports=o.extend(r,{className:"scrubber g-box-full",template:function(){return""},ModelClass:s,events:{"draggable-start":a,"draggable-drag":f,"draggable-end":l},setup:function(){this.el.style.background="rgba(0,0,0,0)"}})}), define("lib/helpers/datetime-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s=1e3,o=6e4,u=36e5,a={inWords:!1},f=n.exports={timecode:function(e,t){var n,f;return t=t||{},t=r.defaults(t,a),isNaN(e)?e:(n=[],f={h:Math.floor(e/u),m:Math.floor(e/o%60),s:Math.floor(e/s%60)},t.inWords?(f.h>0&&n.push(i.tp("1 hour","%d hours",f.h)),f.m>0&&n.push(i.tp("1 minute","%d minutes",f.m)),(f.s>0||f.m===0&&f.h===0)&&n.push(i.tp("1 second","%d seconds",f.s)),n.join(" ")):(f.h>0&&n.push(f.h),n.push(f.m0?"0"+f.m:f.m,f.s=e.top&&g(e,t)},this)}function g(e){var t=e.element,n=t.getAttribute("data-src");e.loading=!0,u.load(n).done(function(){var e=r(t);t.tagName==="IMG"?t.src=n:t.style.backgroundImage="url("+n+")",e.hasClass("image__defer")&&(e.removeClass("image__defer"),t.removeAttribute("data-src"),o(t))})}function y(){var e=s.get("appView").nativeScrollEl;return e?e[0].scrollTop:window.pageYOffset}var r=e("$"),i=e("underscore"),s=e("config"),o=e("lib/css-transitions").fadeIn,u=e("lib/helpers/image-helper"),a=e("lib/mixin"),f=300,l={},c=window.innerHeight/2,h=!1,p,d=n.exports=new a({after:{renderDecorate:function(){this.whenInserted().done(v.bind(this))}},storeDeferredImages:function(){this.$(".image__defer").each(function(e){var t=i.uniqueId();l[t]={top:e.getBoundingClientRect().top+window.pageYOffset,element:e,loading:!1}})}})}), define("views/sound/sound-badge.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundBadge .soundBadge__playing{display:none}.soundBadge.playing .soundBadge__playing{display:block}.soundBadge.playing .soundBadge__indicator{display:none}")),data=null}), define("views/sound/sound-badge.tmpl",["vendor/handlebars-runtime","views/stats/sound-stats","lib/views/promoted"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){return" g-badge-disabled"}function c(e,t){return" g-badge-title-disabled"}function h(e,t){var r="";return r+='

'+u(n.$t.call(e,"Not available in your country",{hash:{},data:t}))+"

",r}function p(e,t){var r="",i;r+=" ",i=n["if"].call(e,e&&e.isReposted,{hash:{},inverse:a.program(10,v,t),fn:a.program(8,d,t),data:t});if(i||i===0)r+=i;return r+=" ",r}function d(e,t){var r="";return r+='

'+u(n.$t.call(e,"Reposted by [[username]]",{hash:{username:e&&e.layoutUsername},data:t}))+"

",r}function v(e,t){var r="";return r+='

'+u(n.$view.call(e,"views/stats/sound-stats",{hash:{resource_id:e&&e._resource_id},data:t}))+"

",r}function m(e,t){var r="";return r+='

'+u(n.$t.call(e,"Preview",{hash:{_context:"track",_comment:"An audio snippet of a track"},data:t}))+"

",r}function g(e,t){var n="",r;return n+='

'+u((r=e&&e.timecode,typeof r===f?r.apply(e):r))+"

",n}function y(e,t){var r="";return r+=" "+u(n.$view.call(e,"lib/views/promoted",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+=' '+u(n.$image.call(t,t,{hash:{size:60,"class":"sc-media-left",defer:!0},data:i}))+'",o=n["if"].call(t,t&&t.is_promoted,{hash:{},inverse:a.noop,fn:a.program(16,y,i),data:i});if(o||o===0)s+=o;return s+="\n\n",s})}), define("lib/views/progress-bar",["require","exports","module","underscore","$","models/sound","lib/view","lib/window-events"],function(e,t,n){function p(e){var t=e?"on":"off";a[t]("pointerup",w,this)[t]("pointerdown",b,this),u[t]("resize:debounced",N,this)[t]("resize:debounced",this.getWidth.bind(this,!0),this),this.model[t]("finish",g,this)[t]("seeked",m,this)[t]("manually-seeked",m,this)[t]("play",v,this)[t]("pause",d,this)}function d(){T.call(this)}function v(){x.call(this)}function m(){y.call(this)}function g(){y.call(this)}function y(){var e=this.model.currentTime();if(this.disposed||this.isUserScrubbing&&!e)return;this.playedProgress=e?E.call(this,e):this.getPlayedProgress(),this.updateProgress(e)}function b(){this.isUserScrubbing=!0}function w(){r.delay(function(){this.isUserScrubbing=!1}.bind(this),c)}function E(e){return e/this.model.duration()}function S(e){var t=this._throttleTime,n;!e&&!this.isUserScrubbing&&y.call(this),n=Math.max(f,t&&t-this.model.currentTime()%t),this._throttleTimeout=setTimeout(S.bind(this,this.isUserScrubbing),n)}function x(){this.model.isPlaying()&&(this._throttleTime||N.call(this),this._throttleTimeout||S.call(this))}function T(){clearTimeout(this._throttleTimeout),this._throttleTimeout=null}function N(){if(this.disposed)return;var e=this.el.clientWidth,t;e!==this._lastContainerSize&&(this._lastContainerSize=e,t=this.model.duration(),this._throttleTime=Math.max(f,Math.floor(t/e)),this._throttleTime=Math.min(this._throttleTime,l))}var r=e("underscore"),i=e("$"),s=e("models/sound"),o=e("lib/view"),u=e("lib/window-events"),a=i(document),f=50,l=250,c=300,h=n.exports=o.extend({ModelClass:s,setup:function(){this.loadedProgress=this.getLoadedProgress(),this.playedProgress=this.getPlayedProgress(),this.isFullyLoaded=!1,this.isUserScrubbing=!1,p.call(this,!0)},dispose:function(){p.call(this,!1)},renderDecorate:function(){x.call(this)},teardown:function(){T.call(this)},updateProgress:i.noop,getLoadedProgress:function(){return this.model.loadProgress()},getPlayedProgress:function(){return this.model.currentTime()},calculateProgressPixels:function(e){return Math.floor(this.getWidth()*e)},getWidth:function(e){return e=this.el.parentNode?e:!0,this._width=e?this.el.offsetWidth:this._width||this.el.offsetWidth,this._width}})}), define("views/listen/time-indicator.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+='

0.00|'+a((o=t&&t.timecode,typeof o===u?o.apply(t):o))+"\n

\n",s})}), define("views/listen/time-indicator.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".timeIndicator__container{background:rgba(0,0,0,.8);height:20px;line-height:20px;font-size:0;white-space:nowrap}.timeIndicator__current{color:#fff}.timeIndicator__text{font-size:12px;transition:font-size .15s cubic-bezier(.51,.37,.61,1.6)}.timeIndicator__current,.timeIndicator__total{padding:0 5px}.timeIndicator__divider,.timeIndicator__total{color:#999}")),data=null}), define("lib/views/mixins/draggable",["require","exports","module","$","lib/animation","lib/mixin","lib/window-events"],function(e,t,n){function f(e){this.el=e,this.width=null,this.coords=null,this.reset(),this.onPointerMove=p.bind(this),this.onPointerUp=d.bind(this),this.onPointerDown=h.bind(this),l.call(this,!0)}function l(e){var t=e?"on":"off";this.el[t?"addEventListener":"removeEventListener"]("pointerdown",this.onPointerDown),o[t?"on":"off"]("resize:debounced",v,this)}function c(e){var t=e?"on":"off";u[t]("pointerup",this.onPointerUp)[t]("pointermove",this.onPointerMove)}function h(e){this.kineticMoveAnimation&&this.kineticMoveAnimation.reject(),this.dispatchEvent("start"),this.dispatchEvent("drag",0),this.lastPointerX=e.x,c.call(this,!0)}function p(e){e.maskedEvent.preventDefault();var t=e.x,n=this.lastPointerX-t;this.startMoveTimestamp=this.startMoveTimestamp||Date.now(),this.deltas.push(n),this.lastPointerX=t,(n>.01||n0?1:-1,t=this.deltas.reduce(function(e,t){return e+Math.abs(t)},0),n=t/this.deltas.length,n-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)};ajax.active=0,ajax.JSONP=function(e){if("type"in e){var t="jsonp"+ ++jsonpID,n=document.createElement("script"),r=function(){t in window&&(window[t]=empty),ajaxComplete("abort",i,e)},i={abort:r},s,o=document.getElementsByTagName("head")[0]||document.documentElement;return e.error&&(n.onerror=function(){i.abort(),e.error()}),window[t]=function(n){clearTimeout(s),delete window[t],ajaxSuccess(n,i,e)},serializeData(e),n.src=e.url.replace(/=\?/,"="+t),o.insertBefore(n,o.firstChild),e.timeout>0&&(s=setTimeout(function(){i.abort(),ajaxComplete("timeout",i,e)},e.timeout)),i}return ajax(e)},ajax.settings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0},ajax.get=function(e,t){return ajax({url:e,success:t})},ajax.post=function(e,t,n,r){return type(t)==="function"&&(r=r||n,n=t,t=null),ajax({type:"POST",url:e,data:t,success:n,dataType:r})},ajax.getJSON=function(e,t){return ajax({url:e,success:t,dataType:"json"})};var escape=encodeURIComponent}), define("classes",["require","exports","module","indexof"],function(e,t,n){function s(e){this.el=e,this.list=e.classList}var r=e("indexof"),i=/\s+/;n.exports=function(e){return new s(e)},s.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},s.prototype.remove=function(e){if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},s.prototype.toggle=function(e){return this.list?(this.list.toggle(e),this):(this.has(e)?this.remove(e):this.add(e),this)},s.prototype.array=function(){var e=this.el.className.split(i);return""===e[0]&&e.pop(),e},s.prototype.has=s.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}}), define("vendor/zepto-events",["require","exports","module"],function(e,t,n){function a(e){return e._zid||(e._zid=i++)}function f(e,t,n,i){t=l(t);if(t.ns)var s=c(t.ns);return(r[a(e)]||[]).filter(function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||s.test(e.ns))&&(!n||a(e.fn)===a(n))&&(!i||e.sel==i)})}function l(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function c(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function h(e,t,n){typeof e!="string"?u.each(e,n):e.split(/\s/).forEach(function(e){n(e,t)})}function p(e,t){return e.del&&(e.e=="focus"||e.e=="blur")||!!t}function d(e){return o[e]||e}var r={},i=1,s={},o={mouseenter:"mouseover",mouseleave:"mouseout"},u={};u.each=function(e){return[].every.call(this,function(t,n){return e.call(t,n,t)!==!1}),this},s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",t.add=add=function(e,t,n,i,s,u){var f=a(e),c=r[f]||(r[f]=[]);h(t,n,function(t,n){var r=l(t);r.fn=n,r.sel=i,r.e in o&&(n=function(e){var t=e.relatedTarget;if(!t||t!==this&&!this.contains(t))return r.fn.apply(this,arguments)}),r.del=s&&s(n,t);var a=r.del||n;r.proxy=function(t){var n=a.apply(e,[t].concat(t.data));return n===!1&&(t.preventDefault(),t.stopPropagation()),n},r.i=c.length,c.push(r),e.addEventListener(d(r.e),r.proxy,p(r,u))})},t.remove=remove=function(e,t,n,i,s){var o=a(e);h(t||"",n,function(t,n){f(e,t,n,i).forEach(function(t){delete r[o][t.i],e.removeEventListener(d(t.e),t.proxy,p(t,s))})})};var v=function(){return!0},m=function(){return!1},g=/^([A-Z]|layer[XY]$)/,y={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.createProxy=createProxy=function(e){var t,n={originalEvent:e};for(t in e)!g.test(t)&&e[t]!==undefined&&(n[t]=e[t]);return u.each(y,function(t,r){n[t]=function(){return this[r]=v,e[t].apply(e,arguments)},n[r]=m}),n},t.Event=Event=function(e,t){typeof e!="string"&&(t=e,e=t.type);var n=document.createEvent(s[e]||"Events"),r=!0;if(t)for(var i in t)i=="bubbles"?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0,null,null,null,null,null,null,null,null,null,null,null,null),n.isDefaultPrevented=function(){return this.defaultPrevented},n}}), define("lib/layout",["require","exports","module","underscore","$","lib/backbone","css","lib/helpers/title-helper","lib/lingua","lib/deferred-loader","lib/mixins/layouts/performance-measuring","lib/template"],function(e,t,n){var r=e("underscore"),i=e("$"),s=e("lib/backbone"),o=e("css"),u=e("lib/helpers/title-helper"),a=e("lib/lingua"),f=e("lib/deferred-loader"),l=e("lib/mixins/layouts/performance-measuring"),c=e("lib/template"),h,p,d;h="l-footer",p="views/footer/footer",d=a.t("Enjoy the full SoundCloud experience with our app.",null,{comment:"Default page title"});var v=n.exports=s.View.extend({css:null,template:null,views:null,_currentViews:null,_viewPaths:null,slots:null,includeFooter:".l-main",footerClassName:"",getPageUrn:function(){return""},initialize:function(){this.views={},this._currentViews={}},setArgs:function(e){this.args=e||{}},setup:function(){var e=i.Deferred();return r.defer(e.resolve),e},dispose:function(){r.invoke(this._currentViews,"_dispose"),r.invoke(this.views,"_dispose"),this.$el.remove(),delete this.slots,delete this.views,delete this._viewPaths,delete this._currentViews},switchLayout:function(e){e&&(r.invoke(this._currentViews,"_dispose"),r.invoke(this.views,"_dispose"),this.template=e.template,this.includeFooter=e.includeFooter,this.slots=null,this.$el.html(""))},render:function(){var e,t;return this.includeFooter&&(e=this.views[h]),this.css&&o.insert(this.css),this.el.innerHTML===""&&(c.render(this.template,{},this.el),this.slots={},r.each(this.views,function(e,t){this.slots[t]=this.$("."+t)[0]},this)),r.each(this.views,function(e,t){this._currentViews[t]!==e&&(this._currentViews[t]&&this._currentViews[t]._dispose(),e.render(),t!==h&&this.slots[t].appendChild(e.el),this._currentViews[t]=e)},this),t=this.$(this.includeFooter)[0],t&&e&&(this.footerClassName&&(e.el.className+=" "+this.footerClassName),t.appendChild(e.el)),this},setViews:function(e){this.includeFooter&&(e[h]=[p,{upsellText:this.getUpsellText()}]);var t=Object.keys(e),n=r.pluck(e,0),s=i.Deferred();return f.load(n).done(function(){this._viewPaths={},r.each(arguments,function(r,i){var s=t[i],o=e[s][1];if(!this._currentViews[s]||!this._currentViews[s].isEquivalentTo(r,o))this.views[s]=new r(o);this._viewPaths[s]=n[i]},this)}.bind(this)).done(s.resolve).fail(s.reject),s},getChangeEventData:function(e){var t={};return r.each(this._viewPaths,function(e,n){t[e]=this.views[n].constructorArguments},this),{layout:this,layoutName:e,views:t,args:this.args}},setTitle:function(e){u.set(e)},getUpsellText:function(){return d},t:a.t,tp:a.tp});l.applyTo(v.prototype),u.initialize()}), define("lib/layouts/fullheight.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".l-fullheight{height:100%;background:#000}.l-fullheight>.l-main{height:100%}")),data=null}), define("lib/layouts/fullheight.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'

\n'})}), define("lib/views/loading.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".loadingThrobber{background:transparent url(https://m.soundcloud.com/assets/images/ldpi/loader-81295ad2.gif) 50% 50% no-repeat;background-size:32px 32px;clear:both;text-align:center;height:40px;width:100%;padding:100px}.loadingThrobber.small{height:20px;background-size:16px}.loadingThrobber.fullscreen{top:44px;left:0;right:0;bottom:0;position:fixed;background-color:#f2f2f2;height:100%}")),data=null}), define("lib/event-bubble",["require","exports","module"],function(e,t,n){var r=n.exports=Class.extend({_propagate:!0,data:null,initialize:function(e){this.data=e||{}},stopPropagation:function(){this._propagate=!1},isPropagationStopped:function(){return!this._propagate}})}), define("lib/views/mixins/stateful",["require","exports","module","underscore","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/mixin"),s=n.exports=new i({states:null,_states:null,toggleState:function(e,t){var n,i;return this.disposed?this:(this.states||(this.states={}),this.states[e]||(this.states[e]=e),this._states=this._states||{},this._states[e]=this._states[e]||!1,t=typeof t!="undefined"?!!t:!this._states[e],this._states[e]===t?this:(this._states[e]=t,n=this.states[e],typeof n=="string"?(i=n,this.$el[t?"addClass":"removeClass"](i)):r.isFunction(n)?n.call(this,t):n&&n[t?"setup":"teardown"].call(this),this.trigger("state:"+e,t),this))},getState:function(e){return!!this._states&&!!this._states[e]}})}), define("lib/template",["require","exports","module","underscore","vendor/handlebars-runtime","lib/subview-plugin","lib/template-helpers"],function(e,t,n){var r=e("underscore"),i=e("vendor/handlebars-runtime"),s=e("lib/subview-plugin"),o=e("lib/template-helpers");r.each(o,function(e,t){i.registerHelper(t,e)});var u=n.exports={render:function(e,t,n){var r=e(t||{});n&&(n.innerHTML=r)},subviews:function(e){s.replacePlaceholders(e)}}}), define("vendor/handlebars-runtime",["require","exports","module"],function(e,t,n){var r=function(){var e=function(){"use strict";function t(e){this.string=e}var e;return t.prototype.toString=function(){return""+this.string},e=t,e}(),t=function(e){"use strict";function o(e){return r[e]||"&"}function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function c(e){return e instanceof n?e.toString():!e&&e!==0?"":(e=""+e,s.test(e)?e.replace(i,o):e)}function h(e){return!e&&e!==0?!0:l(e)&&e.length===0?!0:!1}var t={},n=e,r={"&":"&","",'"':""","'":"'","`":"`"},i=/[&"'`]/g,s=/[&"'`]/;t.extend=u;var a=Object.prototype.toString;t.toString=a;var f=function(e){return typeof e=="function"};f(/x/)&&(f=function(e){return typeof e=="function"&&a.call(e)==="[object Function]"});var f;t.isFunction=f;var l=Array.isArray||function(e){return e&&typeof e=="object"?a.call(e)==="[object Array]":!1};return t.isArray=l,t.escapeExpression=c,t.isEmpty=h,t}(e),n=function(){"use strict";function n(e,n){var r;n&&n.firstLine&&(r=n.firstLine,e+=" - "+r+":"+n.firstColumn);var i=Error.prototype.constructor.call(this,e);for(var s=0;s0?e.helpers.each(t,n):r(this):i(t)}),e.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i=0,s="",o;f(e)&&(e=e.call(this)),t.data&&(o=m(t.data));if(e&&typeof e=="object")if(a(e))for(var u=e.length;i= 1.0.0"};n.REVISION_CHANGES=u;var a=r.isArray,f=r.isFunction,l=r.toString,c="[object Object]";n.HandlebarsEnvironment=h,h.prototype={constructor:h,logger:d,log:v,registerHelper:function(e,t,n){if(l.call(e)===c){if(n||t)throw new i("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else n&&(t.not=n),this.helpers[e]=t},registerPartial:function(e,t){l.call(e)===c?r.extend(this.partials,e):this.partials[e]=t}};var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level.header__logo{width:34px}")),data=null}), define("views/header/header.tmpl",["vendor/handlebars-runtime","views/header/search-button","views/search/search-box"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=' "+o(n.$view.call(t,"views/header/search-button",{hash:{key:"searchButton"},data:i}))+"\n"+o(n.$view.call(t,"views/search/search-box",{hash:{key:"searchBox"},data:i}))+"\n",s})}), define("lib/helpers/consumer-sub-upsell-helper",["require","exports","module"],function(e,t,n){function i(e){return e.isSnippetized()&&s(e.get("monetization_model")).length>0}function s(e){switch(e){case"SUB_MID_TIER":return[r.productIds.HIGH_TIER];case"SUB_HIGH_TIER":return[r.productIds.HIGH_TIER];default:return[]}}var r=n.exports={monetizationModelToProductIds:s,soundRequiresUpsell:i,productIds:{HIGH_TIER:"go"}}}), define("lib/helpers/firefoxos-helper",["require","exports","module","$"],function(e,t,n){var r=e("$"),i="https://m.soundcloud.com/manifest.webapp",s=n.exports={isAppInstalled:function(){var e=new r.Deferred,t=navigator.mozApps.checkInstalled(i);return t.onsuccess=function(){t.result?e.resolve(!0):e.reject(!1)},e},installApp:function(e){navigator.mozApps.install(i).onsuccess=e}}}), define("lib/views/mixins/impression-on-render",["require","exports","module","underscore","lib/tracking/tracking-core","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/tracking/tracking-core"),s=e("lib/mixin"),o=n.exports=new s({applyTo:function(e,t){this.after(e,{renderDecorate:function(){this._trackImpression()},setup:function(){this._trackImpression=r.once(function(){i.impression(t.impressionName,t.data||{})})}})}})}), define("lib/native-links",["require","exports","module","lib/helpers/client-environment-helper","lib/url"],function(e,t,n){function N(){return s.iOS||s.android}function C(){return s.iOS&&i.iOSVersion","ig"),""):e=e.replace(//g,""),T.innerHTML=e,s.links&&a(T,function(e){e.nodeType===3?e.parentNode.nodeName.toLowerCase()!=="a"&&(e.nodeValue=e.nodeValue.replace(f,"{{$1}}").replace(c,"{{mailto:$1}}").replace(h,"$1{{@$2}}")):e.nodeName==="A"&&(g.test(e.href)&&(e.href=e.href.replace(g,s.internalLinksBaseUrl),e.removeAttribute("target")),e.children.length||(e.innerHTML=u(e.innerHTML,s.maxExternalLinksLength,!0)))}),e=T.innerHTML,s.links&&(e=e.replace(d,function(e,t){return s.internalLinks&&g.test(t)?''+t.replace(y,"")+"":s.externalLinks?''+u(t,s.maxExternalLinksLength)+"":t}).replace(v,'$1').replace(m,'@$1"),s.hashtagLinks&&(e=e.replace(p,'$1$2')),s.deepLinks&&(e=e.replace(l,'$1'))),s.maxLength&&(e=o(e,s.maxLength));if(s.paragraphs){e=e.split(b);for(E=0,S=e.length;E"),e[E]="

"+e[E]+"

";e=e.join("")}else e=e.replace(/[\r\n]+/g," ").replace(w," ");return e},e.withDefaults=function(n){var i=r({},t,n);return function(t,n){var s=n?r({},i,n):i;return e.call(this,t,s)}},typeof n!="undefined"&&n.exports?n.exports=e:(global=function(){return this}(),global.SC=global.SC||{},global.SC.usertext=e)})()}), define("views/search/suggestion-item.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".suggestionItem{display:block;height:50px}.suggestedLink{height:50px;display:block;padding:0 16px;color:#333}.suggestedResult{height:50px;display:block;line-height:50px;border-bottom:1px solid #d6d6d6;padding:0 0 0 32px}.suggestedLink:active{background:#f2f2f2}.suggestedUser>.suggestedResult{background:url(https://m.soundcloud.com/assets/images/ldpi/suggestions/user-8fcba46c.png) 0 14px no-repeat;background-size:18px 18px}.suggestedSound>.suggestedResult{background:url(https://m.soundcloud.com/assets/images/ldpi/suggestions/sound-8fcba46c.png) 0 16px no-repeat;background-size:18px 18px}")),data=null}), define("views/search/suggestion-item.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){return u(n.$route.call(e,"user",e&&e.user,{hash:{},data:t}))}function c(e,t){return u(n.$route.call(e,"listen",e&&e.sound,{hash:{},data:t}))}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a="function",f=this;s+=' ',o=(o=t&&t.output,typeof o===a?o.apply(t):o);if(o||o===0)s+=o;return s+="\n\n",s})}), define("lib/css-transitions",["require","exports","module","$","underscore"],function(e,t,n){function h(e,t,n){d(e,t,{"in":f,out:l,transitionClass:a},n)}function p(e,t,n){d(e,t,{"in":o,out:u,transitionClass:s},n)}function d(e,t,n,s){var o=e?n.out:n.in,u=e?n.in:n.out,a=r(t);a.addClass(n.transitionClass).addClass(o),setTimeout(function(){a.addClass(u).removeClass(o),i.delay(function(){a.removeClass(n.transitionClass).removeClass(o).removeClass(u),s&&s()},c)},16)}var r=e("$"),i=e("underscore"),s="g-transition-fade",o="g-transition-fade-in",u="g-transition-fade-out",a="g-transition-translate",f="g-transition-slide-top-in",l="g-transition-slide-top-out",c=300;t.fadeIn=p.bind(null,!0),t.fadeOut=p.bind(null,!1),t.slideTopIn=h.bind(null,!0),t.slideTopOut=h.bind(null,!1)}), define("lib/scroll-bouncing-fix",["require","exports","module"],function(e,t,n){var r=n.exports=function(){this.$el.on("touchmove",function(e){e.preventDefault()})}}), define("layouts/listen",["require","exports","module","config","config/error-messages","models/exception","lib/layout","lib/futures","lib/lingua","models/playlist","models/sound","lib/url","lib/layouts/fullheight.tmpl","layouts/blocked-listen.tmpl","lib/layouts/fullheight.css","layouts/blocked-listen.css"],function(e,t,n){function m(e,t,n){var r=u.defer();return l.resolve(e,t,n).done(r.resolve).fail(s.ajaxFatal(i.SOUND_NOT_FOUND)),r}function g(e){var t=u.defer(),n,i;return n=r.get("router").getRouteInfo("playlist"),i=n.route.exec(e),i?(i.shift(),n.handler.apply({apply:function(e,n){f.resolve(n.userPermalink,n.playlistPermalink,n.secretToken).done(t.resolve).fail(function(){t.resolve(null)})}},i)):t.resolve(null),t}function y(e,t){if(t){var n=t.findSound(e);n&&n.set(e.attributes,{silent:!0}),e=n||e}return this.setTitle(a.t("[[soundTitle]] by [[authorName]]",{soundTitle:e.get("title"),authorName:e.get("user").username})),e.isBlocked()?(this.switchLayout(d),this.setViews({"l-main":["views/listen/blocked",{resource_id:e.resource_id}]})):(this.switchLayout(p),this.setViews({"l-main":["views/listen/listen-carousel",{resource_id:e.resource_id}],"l-footnote":["views/sound/sound-controls"]}))}var r=e("config"),i=e("config/error-messages"),s=e("models/exception"),o=e("lib/layout"),u=e("lib/futures"),a=e("lib/lingua"),f=e("models/playlist"),l=e("models/sound"),c=e("lib/url"),h=a.t("Enjoy the full SoundCloud experience with our free app."),p={template:e("lib/layouts/fullheight.tmpl"),includeFooter:".l-footnote"},d={template:e("layouts/blocked-listen.tmpl"),includeFooter:".l-footnote"},v=n.exports=o.extend({css:[e("lib/layouts/fullheight.css"),e("layouts/blocked-listen.css")],setup:function(e){var t=u.defer(),n,r=[];return r.push(m(e.userPermalink,e.soundPermalink,e.secretToken)),n=c.getQueryParam("in"),n&&r.push(g(n)),this.pageUrn="",u.all(r).then(function(e,t){return this.pageUrn=e.getUrn(),y.call(this,e,t)}.bind(this)).then(t.resolve),t},includeFooter:".l-footnote",getPageUrn:function(){return this.pageUrn},getUpsellText:function(){return h}})}), define("config/error-messages",["require","exports","module","lib/lingua"],function(e,t,n){var r=e("lib/lingua"),i=n.exports={UNKNOWN:{title:r.t("Something doesn’t sound right."),message:r.t("Refresh the page to try again.")},PAGE_NOT_FOUND:{title:r.t("We can’t find this page.")},SOUND_NOT_FOUND:{title:r.t("We can’t find this sound.")},PLAYLIST_NOT_FOUND:{title:r.t("We can’t find this playlist.")},USER_NOT_FOUND:{title:r.t("We can’t find this user.")}}}), define("models/exception",["require","exports","module","underscore","lib/event-bus","lib/model"],function(e,t,n){var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/model"),o=n.exports=s.extend({url:null,lastFetchTime:1,initialize:function(e){e=e||{},this.id||(e.id=this.id=this.cid,o.instances.set(this.id,this)),this.fatal=!!e.fatal,s.prototype.initialize.apply(this,arguments)}},{raise:function(e,t){var n=new o(e);n.release(),t=t||{};if(t.hard)throw n;i.trigger("exception",n)},ajaxFatal:function(e){return function(t,n){n!=="abort"&&o.raise(r.extend(e,{xhr:t,fatal:!0}))}},ajaxNonFatal:function(e){return function(t,n){n!=="abort"&&o.raise({message:e,xhr:t,fatal:!1})}}})}), define("models/playlist",["require","exports","module","$","underscore","models/audible-interface","lib/backbone","lib/event-bus","lib/model","models/sound","lib/errors/unauthorized-viewer","models/user","lib/mixins/urn"],function(e,t,n){function v(e,t){var n=e[t?"on":"off"].bind(e);n("play",m,this),n("pause",g,this),n("finish",y,this),n("time",b,this),n("seeked",w,this)}function m(e){this._internalNavigation||(E.call(this,e,"play"),this._internalNavigation=!0)}function g(e){this._internalNavigation||(E.call(this,e,"pause"),this._internalNavigation=!0)}function y(e){e.sound===this.soundsCollection.last()&&(E.call(this,e,"pause"),E.call(this,e,"finish"))}function b(e){E.call(this,e,"time")}function w(e){E.call(this,e,"seeked")}function E(e,t){e.playlist=this,this.trigger(t,e),u.trigger("audio:"+t,e)}function S(){var e=[];i.each(this.get("tracks"),function(t){var n,r,s;this.containsSound(t.id)||(s=new f(t),this.addSubmodel(s),r=i.extend({},t,{resource_id:{playlist_id:this.id,sound_id:t.id}}),n=new f(r,{suppressGlobalEvents:!0}),n.playlist=this,n.originalSound=s,e.push(n),v.call(this,n,!0))},this),this.soundsCollection.length===0?this.soundsCollection.reset(e):this.soundsCollection.add(e,{silent:!0})}function x(e,t){var n=e.soundsCollection,r=n.get(t);if(r){var i=n.indexOf(r),s=e.get("tracks").slice();return r.isPlaying()&&r.pause(),s.splice(i,1),n.remove(r),e.set("tracks",s),r.playlist=null,r.release(),!0}return!1}var r=e("$"),i=e("underscore"),s=e("models/audible-interface"),o=e("lib/backbone"),u=e("lib/event-bus"),a=e("lib/model"),f=e("models/sound"),l=e("lib/errors/unauthorized-viewer"),c=e("models/user"),h=e("lib/mixins/urn"),p;p=o.Collection.extend({model:f,fetch:function(){return this.playlist.fetch.apply(this.playlist,arguments)},initialize:function(e,t){this.playlist=t.playlist},hasDataForView:function(){return!!this.playlist.attributes.tracks},isFullyPopulated:function(){return!0},_usageCount:function(){return 1},hold:r.noop,release:r.noop});var d=n.exports=s.extend(h,{resource_type:"playlist",urnPrefix:"soundcloud:playlists",submodelMap:{tracks:f,user:c},soundsCollection:null,currentSoundCursor:0,_isPlayActionQueued:!1,_internalNavigation:!1,setup:function(){s.prototype.setup.apply(this,arguments);var e=this,t=this.soundsCollection=new p(null,{playlist:e});t.on("error",function(t,n){n instanceof l&&x(e,t.id)})},baseUrl:function(){return this.getEndpointUrl("playlist",{id:this.id})},parse:function(e){return e=a.prototype.parse.apply(this,arguments),e.secret_token&&e.tracks&&e.tracks.forEach(function(t){t.sharing!=="public"&&(t.secret_token=e.secret_token)}),e.sharing==="private"&&(e.track_count=Math.max(e.track_count,e.tracks.length)),e},createSubmodel:function(e,t){t==="tracks"?S.call(this):a.prototype.createSubmodel.apply(this,arguments)},findSound:function(e){return this.findSoundById(e.id)},containsSound:function(e){return!!this.findSoundById(e)},findSoundById:function(e){return this.soundsCollection.get(e)},getSounds:function(){return this.soundsCollection.models},getNumSounds:function(){return this.soundsCollection.length},getSoundIndex:function(e){return this.soundsCollection.indexOf(e)},getPrevSound:function(){return this.soundsCollection.at(this.currentSoundCursor-1)},getCurrentSound:function(){return this.soundsCollection.at(this.currentSoundCursor)},getNextSound:function(){return this.soundsCollection.at(this.currentSoundCursor+1)},getFirstSound:function(){return this.soundsCollection.at(0)},getLastSound:function(){return this.soundsCollection.at(this.soundsCollection.length-1)},play:function(e){this.soundsCollection.length?(this._internalNavigation=!1,this.getCurrentSound().audio.play(e)):this.lastFetchTime||(this._isPlayActionQueued=!0,this.fetch().done(function(){this._isPlayActionQueued&&(this._isPlayActionQueued=!1,this.play(e))}.bind(this)))},pause:function(e){this._isPlayActionQueued=!1,this.soundsCollection&&this.soundsCollection.length&&(this._internalNavigation=!1,this.getCurrentSound().audio.pause(e))},rewind:function(){this.currentSoundCursor=0},setCurrentSound:function(e){this.currentSoundCursor=this.getSoundIndex(e)},isPlaying:function(){return this.soundsCollection.some(function(e){return e.isPlaying()})},isPlayable:function(){return this.soundsCollection.every(function(e){return e.isPlayable()})}},{urnPrefix:"soundcloud:playlists",onCleanup:function(e){e.soundsCollection.each(function(e){e.playlist=null,e.release()}),e.soundsCollection.off(),delete e.soundsCollection,s.onCleanup(e)},resolve:function(e,t,n){return a._resolve(this,[e,"sets",t,n],function(n){var r=n.get("user");return r&&n.get("permalink")===t&&r.permalink===e})}})}), define("layouts/blocked-listen.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("layouts/blocked-listen.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".l-blockedListen{background-color:#f2f2f2}")),data=null}), define("views/listen/blocked",["require","exports","module","lib/view","views/listen/blocked.css","views/listen/blocked.tmpl"],function(e,t,n){var r=e("lib/view"),i=n.exports=r.extend({css:e("views/listen/blocked.css"),template:e("views/listen/blocked.tmpl"),className:"blockedTrack"})}), define("views/listen/listen-carousel",["require","exports","module","underscore","$","lib/views/mixins/audible-control","config","lib/futures","lib/views/mixins/has-queue-source","lib/play-manager","router","models/sound","views/sound/sound","lib/helpers/style-helper","lib/view","lib/window-events","views/listen/listen-carousel.css","views/listen/listen-carousel.tmpl"],function(e,t,n){function b(e){var t=e?"on":"off";v[t]("resize:debounced",P,this),f[t]("change:currentSound",w,this)}function w(e){e.isGoingForward&&e.prev?E.call(this,e.current.resource_id,!0):e.isGoingForward===!1&&E.call(this,e.current.resource_id),T(this,e.current)}function E(e,t){var n=t?0:3,r=t?2:0,i=t?C:N;this.animationPromise=this.animationPromise.then(function(){if(this.disposed)return;var n=this.$("."+this.itemClassName);return x.call(this,e,r),t?k.call(this,[n[1],n[2]],"left"):k.call(this,[n[0],n[1]],"right")}.bind(this)).then(function(){if(this.disposed)return;i(this.getElement("wrapper")[0],A.call(this));var e=this.$("."+this.itemClassName);e[n].parentNode.removeChild(e[n]),L([e[1],e[2]])}.bind(this))}function S(e){var t="sound_"+e,n=this.subviews[t];return n||(n=new h({resource_id:e}),this.addSubview(n.render(),t)),n}function x(e,t){var n=S.call(this,e),r=this.$("."+this.itemClassName)[t];r&&(r.innerHTML="",r.appendChild(n.el))}function T(e,t){var n=l.getRoute("listen",t);n?o.get("router").navigate(n,{trigger:!1,replace:!0}):t.once("change:permalink",function(){!e.disposed&&f.getCurrentSound()===t&&T(e,t)})}function N(e,t){e.insertBefore(t,e.firstChild)}function C(e,t){e.appendChild(t)}function k(e,t){t=t==="left"?-this._carouselWidth:this._carouselWidth;var n="transform: translate3d("+t+"px , 0, 0);";return e.forEach(function(e){e.className+=" g-transition-translate",p(e,n)}),u.delay(m)}function L(e){var t="transform: none;";e.forEach(function(e){i(e).removeClass("g-transition-translate"),p(e,t)})}function A(){var e=document.createElement("div");return e.className=this.itemClassName,O.call(this,e,this._carouselWidth),e}function O(e,t){e.style.width=t+"px"}function M(e){this.elWidth=this.el.offsetWidth,this.$el.find(".listenCarousel__itemWrapper").each(function(t){O(t,e)})}function _(e){var t=this.getElement("wrapper")[0],n=-1*e;p(t,"transform: translate("+n+"px, 0)"),t.style.width=3*e+"px"}function D(){return this._carouselWidth=this.el.offsetWidth,this._carouselWidth}function P(){var e=D.call(this);_.call(this,e),M.call(this,e)}var r=e("underscore"),i=e("$"),s=e("lib/views/mixins/audible-control"),o=e("config"),u=e("lib/futures"),a=e("lib/views/mixins/has-queue-source"),f=e("lib/play-manager"),l=e("router"),c=e("models/sound"),h=e("views/sound/sound"),p=e("lib/helpers/style-helper"),d=e("lib/view"),v=e("lib/window-events"),m=250,g,y=n.exports=d.extend(s,a,{css:e("views/listen/listen-carousel.css"),template:e("views/listen/listen-carousel.tmpl"),className:"listenCarousel",itemClassName:"listenCarousel__itemWrapper",element2selector:{wrapper:".listenCarousel__wrapper"},states:{transitionTranslate:function(e){this.getElement("wrapper")[e?"addClass":"removeClass"]("g-transition-translate")}},ModelClass:c,getQueueSource:function(){return this.model.playlist||this.model},cursor:-1,animationPromise:null,setup:function(){this.animationPromise=u.resolve(),this.$el.one("pointerdown",g.bind(this)),b.call(this,!0)},dispose:function(){b.call(this,!1)},renderDecorate:function(){this.whenInserted().done(function(){P.call(this),x.call(this,this.model.resource_id,1)}.bind(this))},teardown:function(){clearTimeout(this._fetchNeighborSoundsId)}});g=r.once(function(){var e=this.getQueueSource();e&&!e.isPlaying()&&this.playAudible(e,{userInitiated:!0})})}), define("views/sound/sound-controls",["require","exports","module","underscore","lib/event-bus","lib/views/mixins/fetch-experiments","lib/native-links","lib/helpers/open-app-store-helper","lib/play-manager","lib/view","views/sound/sound-controls.css","views/sound/sound-controls.tmpl"],function(e,t,n){function p(e){this.getState("disabled")||a[e==="prev"?"playPrev":"playNext"]({userInitiated:!0})}function d(){this.getState("disabled")||(a.toggleCurrent({userInitiated:!0}),this.experiments.get("mweb_listening","open_app_store_on_play")==="experiment_group"&&o.useDeeplinks()&&u())}function v(){var e=a.getCurrentSound(),t=!!e&&!!e.isLoading(),n=!a.hasCurrentSound(),r=n||!a.hasPrevSound(),i=n||!a.hasNextSound(),s=n||e.isBlocked();this.toggleState("loading",t).toggleState("prevDisabled",r).toggleState("nextDisabled",i).toggleState("playDisabled",s).toggleState("disabled",n)}function m(){this.toggleState("paused",!0).toggleState("playing",!1),v.call(this)}function g(){this.toggleState("playing",!0).toggleState("paused",!1),v.call(this)}function y(){this.toggleState("initializing",!0),this.addDeferred(r.delay(function(){this.toggleState("initializing",!1),this.toggleState("initialized",!0)}.bind(this),l))}function b(){this.toggleState("scrubbing",!0)}function w(){this.toggleState("scrubbing",!1)}var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/views/mixins/fetch-experiments"),o=e("lib/native-links"),u=e("lib/helpers/open-app-store-helper"),a=e("lib/play-manager"),f=e("lib/view"),l=2e3,c=250,h=n.exports=f.extend(s,{css:e("views/sound/sound-controls.css"),template:e("views/sound/sound-controls.tmpl"),className:"soundControls sc-selection-disabled",tagName:"section",events:{"click .soundControls__prev":"onClickPrev","click .soundControls__next":"onClickNext","click .soundControls__playPause":d},states:{loading:"loading",playing:"playing",paused:"paused",playDisabled:"playDisabled",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",disabled:"disabled",initializing:"initializing",initialized:"initialized"},setup:function(){this.listenTo(i,"audio:play",g).listenTo(i,"audio:pause",m).listenTo(i,"scrub:start",b).listenTo(i,"scrub:end",w).listenToOnce(i,"audio:play",y)},renderDecorate:function(){var e=a.getCurrentSound();e&&e.isPlaying()&&this.toggleState("initialized",!0).toggleState("playing",!0).toggleState("paused",!1)},dispose:function(){this.stopListening()},onClickNext:r.debounce(function(){p.call(this,"next")},c,!0),onClickPrev:r.debounce(function(){p.call(this,"prev")},c,!0)})}), define("views/listen/blocked.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".blockedTrack__sound{width:100%;height:0;padding-bottom:100%;position:relative}.blockedTrack__soundInner{position:absolute;top:0;bottom:0;left:0;right:0}.blockedTrack__suggestions{background-color:#fff}")),data=null}), define("views/listen/blocked.tmpl",["vendor/handlebars-runtime","views/sound/sound","views/listen/blocked-suggestions"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/sound",{hash:{resource_id:(o=t&&t._options,o==null||o===!1?o:o.resource_id),resource_type:(o=t&&t._options,o==null||o===!1?o:o.resource_type)},data:i}))+'

\n\n

'+u(n.$view.call(t,"views/listen/blocked-suggestions",{hash:{resource_id:(o=t&&t._options,o==null||o===!1?o:o.resource_id),resource_type:(o=t&&t.options,o==null||o===!1?o:o.resource_type)},data:i}))+"\n

\n",s})}), define("lib/views/mixins/has-queue-source",["require","exports","module","underscore","lib/event-bus","lib/mixin","lib/play-manager","lib/url"],function(e,t,n){function f(e){var t=e?"on":"off";i[t]("audio:play",l,this)[t]("audio:pause",c,this)}function l(e){h.call(this,e.sound)}function c(e){h.call(this,e.sound)}function h(e){this.toggleState("playing",p.call(this,e))}function p(e){return e=e||o.getCurrentSound(),!!(e&&e.isPlaying()&&this.getQueueSource().getSounds().indexOf(e)>-1)}function d(e){var t=e.data,n=t.audible,r=this.getQueueSource();return r&&o.indexOfSoundInSource(n.getCurrentSound(),r)>-1}var r=e("underscore"),i=e("lib/event-bus"),s=e("lib/mixin"),o=e("lib/play-manager"),u=e("lib/url"),a=n.exports=new s({defaults:{getQueueSource:function(){return this.collection||this.model},getRestoreUrl:function(){return u.currentPath()}},applyTo:function(e){e.bubbleEvents=r.extend(e.bubbleEvents||{},{requestPlayContext:"onRequestPlayContext"})},onRequestPlayContext:function(e){d.call(this,e)&&(e.stopPropagation(),r.extend(e.data,{source:this.getQueueSource(),restoreUrl:this.getRestoreUrl()}))},before:{setup:function(){f.call(this,!0)},dispose:function(){f.call(this,!1)},renderDecorate:function(){var e=this.getQueueSource(),t=0;e&&o.setInitialSource(e,t,this.getRestoreUrl()),h.call(this)},teardown:function(){var e=this.getQueueSource();e&&o.unsetInitialSource(e)}}})}), define("views/sound/sound",["require","exports","module","lib/views/mixins/audible-control","lib/helpers/count-helper","lib/helpers/client-environment-helper","lib/event-bus","vendor/experiments/experiments","lib/views/mixins/fetch-experiments","lib/views/mixins/fullscreen-loader","lib/views/fullscreen-overlay","lib/views/mixins/has-queue-source","lib/helpers/image-helper","views/interstitials/like-app-upsell-content","lib/lingua","lib/native-links","lib/helpers/open-app-store-helper","lib/play-manager","models/sound","lib/views/mixins/swipeable","lib/tracking/tracking-core","lib/view","views/sound/sound.css","views/sound/sound.tmpl"],function(e,t,n){function x(){this.model.get("playable")||this.getElement("info").addClass("disabled"),this.toggleState("blocked",this.model.isBlocked())}function T(){w.action("navigate","user")}function N(){this.toggleAudible(this.model,{userInitiated:!0,context:this.getContextData()}),this.experiments.get("mweb_listening","open_app_store_on_play")==="experiment_group"&&v.useDeeplinks()&&m()}function C(e){e.originalEvent.stopPropagation()}function k(e){w.action("submit","like"),v.useDeeplinks()&&(this.subviews.likeAppUpsellModal||this.addSubview(new l({style:"dark",showHeader:!0,closeBehavior:"background",trackingIdentifier:"get_the_app::like",Subview:p}),"likeAppUpsellModal"),this.subviews.likeAppUpsellModal.open())}function L(){this.toggleState("paused",!0),this.toggleState("playing",!1)}function A(){this.toggleState("paused",!1),this.toggleState("playing",!0)}function O(){this.getState("paused")||(this._wasPaused=this.getState("paused"),this.toggleState("paused",!0))}function M(){this.toggleState("paused",this._wasPaused)}var r=e("lib/views/mixins/audible-control"),i=e("lib/helpers/count-helper"),s=e("lib/helpers/client-environment-helper").device,o=e("lib/event-bus"),u=e("vendor/experiments/experiments"),a=e("lib/views/mixins/fetch-experiments"),f=e("lib/views/mixins/fullscreen-loader"),l=e("lib/views/fullscreen-overlay"),c=e("lib/views/mixins/has-queue-source"),h=e("lib/helpers/image-helper"),p=e("views/interstitials/like-app-upsell-content"),d=e("lib/lingua"),v=e("lib/native-links"),m=e("lib/helpers/open-app-store-helper"),g=e("lib/play-manager"),y=e("models/sound"),b=e("lib/views/mixins/swipeable"),w=e("lib/tracking/tracking-core"),E=e("lib/view"),S=n.exports=E.extend(a,f,r,c,b,{swipeableSelector:".sound__artwork",ModelClass:y,css:e("views/sound/sound.css"),template:e("views/sound/sound.tmpl"),className:"sound g-box-full",element2selector:{info:".sound__info",artwork:".sound__artworkImage"},requiredAttributes:["user","title"],events:{"click .sound__artwork":N,"click .sound__info":T,"click .sound__likes":k,"pointerdown .sound__artwork":C,"pointerdown .sound__likes":C},bubbleEvents:{scrubStart:O,scrubEnd:M},states:{"show-likes":"show-likes"},_wasPaused:!1,setup:function(){this.el.className+=" "+s.brand,this.listenTo(o,"audio:pause",L).listenTo(o,"audio:play",A).model.on("change:playable",this.rerender,this),this.toggleState("show-likes",u.get("mweb_listening","like_button_upsell")==="enabled")},getTemplateData:function(e){return this.getState("show-likes")&&(e.likes_count_info={count:i.render(e.likes_count,{useSIUnits:!0}),fullMessage:d.tp("1 Like","%d Likes",e.likes_count,null,{comment:"How many times the track was Liked"})}),e.isBlocked=this.model.isBlocked(),e},dispose:function(){this.stopListening().model.off("change:playable",this.rerender,this)},renderDecorate:function(){var e=h.urlFrom(this.model.toJSON(),500),t=this.getElement("artwork")[0];h.fadeInBackground(e,t),x.call(this),this.model.playlist&&g.backfillHistoryFromPlaylist(this.model,this.model.playlist)},getQueueSource:function(){return this.model.playlist||this.model},onSwipeLeft:function(){g.playNext({userInitiated:!0})},onSwipeRight:function(){g.playPrev({userInitiated:!0})}})}), define("lib/helpers/style-helper",["require","exports","module"],function(e,t,n){function o(e,t,n){return e.style[t]=n,!0}function u(e){return e in document.documentElement.style}var r={transform:["webkit"]},i=Object.keys(r),s=n.exports=function(e,t){t=t.replace(";","");var n=t.split(":"),s=n[0],a=n[1],f=!1;return u(s)&&(f=o(e,s,a)),!f&&i.indexOf(s)>-1&&(f=r[s].some(function(t){var n="-"+t+"-"+s;if(u(n))return o(e,n,a)})),f}}), define("lib/window-events",["require","exports","module","$","underscore","lib/backbone","lib/support"],function(e,t,n){function l(e,t){var n=t+"d",r=e==="resize"?c(n):f.trigger.bind(f,e+":"+n);return i[t](r,a)}function c(e){var t=window.innerWidth,n=window.innerHeight,r=f.trigger.bind(f,"resize:x:"+e),i=f.trigger.bind(f,"resize:y:"+e),s=f.trigger.bind(f,"resize:"+e);return function(e){var o=window.innerWidth,u=window.innerHeight;o!==t&&r(e),u!==n&&i(e),s(e),n=u,t=o}}var r=e("$"),i=e("underscore"),s=e("lib/backbone"),o=e("lib/support"),u=o.orientationChange?"orientationchange":"resize",a=200,f=n.exports=i.extend({},s.Events);r(window).on(u,l("resize","debounce")).on(u,l("resize","throttle")).on("scroll",l("scroll","debounce")).on("scroll",l("scroll","throttle"))}), define("views/listen/listen-carousel.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".listenCarousel{position:relative;width:100%;height:100%;overflow:hidden}.listenCarousel__wrapper{height:100%}.listenCarousel__itemWrapper{float:left;height:100%}")),data=null}), define("views/listen/listen-carousel.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{},'\n'})}), define("lib/views/mixins/fetch-experiments",["require","exports","module","$","underscore","vendor/experiments/experiments","config/experiments","vendor/event-gateway/event-gateway","lib/mixin","lib/tracking/tracking-core","lib/url"],function(e,t,n){function v(){return h||(h=r.Deferred()),h}function m(){return c||(c=s.initialize(o).fetchAssignments().done(function(e){v().resolve(),s.setExperimentsFromQueryParams(l.getQueryParams()),u.setExperiments(e)}).fail(function(){c=null,h=null,f.whenRequestAllowed=p})),c}var r=e("$"),i=e("underscore"),s=e("vendor/experiments/experiments"),o=e("config/experiments"),u=e("vendor/event-gateway/event-gateway"),a=e("lib/mixin"),f=e("lib/tracking/tracking-core"),l=e("lib/url"),c,h,p=f.whenRequestAllowed,d=n.exports=new a({experiments:s,around:{hasData:function(e){return e.call(this)&&s.isUpToDate(s.getAssignments(),o.version)},fetchData:function(e,t){var n=[t?e.call(this,t):r.Deferred().resolve()],i=r.Deferred();return this.addDeferred(i),s.isUpToDate(s.getAssignments(),o.version)||n.push(m.call(this)),r.when(n).done(function(e){i.resolve(e)}).fail(function(){i.reject()}),i.done(this.rerender.bind(this)),i}},before:{setup:i.once(function(){s.getAssignments()||f.deferRequests(v)})}})}), define("lib/helpers/open-app-store-helper",["require","exports","module","underscore","lib/native-links"],function(e,t,n){var r=e("underscore"),i=e("lib/native-links");n.exports=r.once(function(){window.open(i.getStoreLink(),"_blank")})}), define("views/sound/sound-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundControls{height:80px;position:absolute;top:50%;left:0;right:0;margin-top:-40px;-webkit-transform:translate3d(0,0,0);pointer-events:none}.soundControls__control{background-position:0 0;background-repeat:no-repeat;background-size:100% auto;position:absolute;pointer-events:auto}.soundControls__prev,.soundControls__next{background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/skip_button-e03e9a61.png);width:28px;height:19px;top:30px;opacity:0;-webkit-transition:opacity 2s cubic-bezier(1,.01,.81,1);transition:opacity 2s cubic-bezier(1,.01,.81,1)}.soundControls__prev{left:17px}.soundControls__next{right:17px;-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.soundControls.disabled .soundControls__playPause,.soundControls.playing .soundControls__playPause:active,.soundControls.loading .soundControls__playPause:active{background-color:rgba(0,0,0,.5)}.soundControls.playing .soundControls__playPause,.soundControls.loading .soundControls__playPause{background-position:0 0}.soundControls__prev:active,.soundControls__next:active{background-position:0 -19px}.soundControls.disabled .soundControls__next,.soundControls.nextDisabled .soundControls__next,.soundControls.disabled .soundControls__prev,.soundControls.prevDisabled .soundControls__prev,.soundControls.playDisabled .soundControls__playPause{display:none}.initialized .soundControls__playPause{opacity:0}.initializing .soundControls__next,.initializing .soundControls__prev,.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{opacity:1}.paused .soundControls__next,.paused .soundControls__prev,.paused .soundControls__playPause{-webkit-transition:none;transition:none}.soundControls.scrubbing{display:none}")),data=null}), define("views/sound/sound-controls.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o=this.escapeExpression;return s+=''+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Previous track",{hash:{_comment:"Help text on prev button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Play or pause track",{hash:{_comment:"Help text on play/pause button"},data:i})},data:i}))+'\n'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Next track",{hash:{_comment:"Help text on next button"},data:i})},data:i}))+"\n",s})}), define("views/listen/blocked-suggestions",["require","exports","module","lib/helpers/charts-helper","collections/chart-tracks","collections/related-sounds","models/sound","lib/view","views/listen/blocked-suggestions.css","views/listen/blocked-suggestions.tmpl"],function(e,t,n){function c(){return this.relatedSounds.isFullyPopulated()||h.call(this)}function h(){return this.relatedSounds.length>=f}var r=e("lib/helpers/charts-helper"),i=e("collections/chart-tracks"),s=e("collections/related-sounds"),o=e("models/sound"),u=e("lib/view"),a="top",f=3,l=n.exports=u.extend({css:e("views/listen/blocked-suggestions.css"),template:e("views/listen/blocked-suggestions.tmpl"),className:"blockedSuggestions",ModelClass:o,requiredAttributes:["genre"],setup:function(e){this.relatedSounds=new s(null,{resource_id:e.resource_id,resource_type:e.resource_type}),this.setupCollectionListeners(this.relatedSounds)},dispose:function(){this.teardownCollectionListeners(this.relatedSounds),this.relatedSounds.release()},hasData:function(){return u.prototype.hasData.apply(this,arguments)&&c.call(this)},getTemplateData:function(e){var t=e.useFallback=!h.call(this),n=this.options.resource_id,o=r.userGenreToChartGenre(e.genre).id;return t?(e.tagline=r.taglines(a,o).short,e.getSuggestionsCollection=function(){return new i(null,{genre:o,chartKind:a})}):e.getSuggestionsCollection=function(){return new s(null,{resource_id:n})},e},fetchData:function(){return c.call(this)?u.prototype.fetchData.apply(this,arguments):this.relatedSounds.bulkFetch(f)}})}), define("lib/views/mixins/fullscreen-loader",["require","exports","module","lib/views/loading","lib/mixin"],function(e,t,n){var r=e("lib/views/loading"),i=e("lib/mixin"),s=n.exports=new i({override:{LoadingView:r,loadingViewArgs:function(){return{size:"fullscreen"}}}})}), define("views/interstitials/like-app-upsell-content",["require","exports","module","lib/helpers/client-environment-helper","lib/lingua","lib/native-links","lib/view","views/interstitials/like-app-upsell-content.tmpl","views/interstitials/like-app-upsell-content.css"],function(e,t,n){function a(e){this.bubble("closeButton:click")}function f(e){e.stopPropagation()}var r=e("lib/helpers/client-environment-helper").device,i=e("lib/lingua"),s=e("lib/native-links"),o=e("lib/view"),u=n.exports=o.extend({template:e("views/interstitials/like-app-upsell-content.tmpl"),css:e("views/interstitials/like-app-upsell-content.css"),className:"likeAppUpsellContent g-align-vertical",events:{"click .likeAppUpsellContent__closeButton":a,click:f},setup:function(e){this.el.className+=" "+r.brand},getTemplateData:function(e){var t=r.iOS?i.t("Get our iPhone app to save this track to your likes, create playlists and more."):i.t("Get our Android app to save this track to your likes, create playlists and more.");return{upsellIcon:"https://m.soundcloud.com/assets/images/ldpi/interstitial/like-upsell/heart-android-280d5bc8.png",upsellHeader:i.t("Try our app.It's even better"),upsellContent:t,getLikeUpsellDeepLink:s.getLikeCountDeepLink}}})}), define("lib/views/mixins/swipeable",["require","exports","module","lib/mixin"],function(e,t,n){function s(e){var t=e.data.direction;t==="left"&&this.onSwipeLeft?this.onSwipeLeft():this.onSwipeRight&&this.onSwipeRight(),e.originalEvent.preventDefault()}var r=e("lib/mixin"),i=n.exports=new r({defaults:{swipeableSelector:null},after:{renderDecorate:function(){this.$el.on("swipe",this.swipeableSelector,s.bind(this))}}})}), define("views/sound/sound.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".sound__info{position:absolute;z-index:1;top:20px;left:18px;right:18px}.sound__username{font-size:15px;line-height:22px}.sound__username a{color:#ccc}.sound__title{font-size:22px;line-height:1.3}.sound__controls{position:absolute;top:50%;left:0;right:0;height:80px;margin-top:-50px}.sound__infoContent{margin:0 0 4px}.sound__artwork,.sound__artworkOverlay{position:absolute;top:0;bottom:0;width:100%}.sound__artworkOverlay{height:100%;opacity:0;background:#000}.sound__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.sound__likes{color:#fff;position:absolute;bottom:12px;right:20px;line-height:39px;padding:0 10px 0 5px;font-size:14px}.sound__likes:before{width:35px;height:35px;background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/like_button-280d5bc8.png);background-size:35px 35px}.iOS .sound__likes{right:auto;left:20px;border-radius:4px;height:33px;line-height:33px;background:rgba(0,0,0,.3);border:1px solid transparent}.sound.iOS.blocked .sound__likes,.sound.iOS.paused .sound__likes{background:none;border-color:rgba(255,255,255);border-color:rgba(255,255,255,.2)}.iOS .sound__likes:before{width:25px;height:25px;background-size:25px 25px;margin-top:4px}.sound__blockedMessage{color:#ccc;position:absolute;text-align:center;font-size:15px;line-height:18px;width:80%;left:0;right:0;margin:0 auto;top:40%;padding:102px 18px 0;background-image:url(https://m.soundcloud.com/assets/images/ldpi/player/geoblock-5a813d34.png);background-size:68px 84px;background-position:center top;background-repeat:no-repeat}.sound.playing .sound__playIndicator{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.sound__info.disabled>.sound__infoDisabled{display:block}.sound__infoDisabled{display:none;position:absolute;background:rgba(0,0,0,.2);top:0;left:0;right:0;bottom:0}.sound.blocked .sound__artworkOverlay,.sound.paused .sound__artworkOverlay{opacity:.6}.sound.paused .sound__username,.sound.blocked .sound__username,.sound.paused .sound__title,.sound.blocked .sound__title{background:none;box-shadow:none}")),data=null}), define("views/sound/sound.tmpl",["vendor/handlebars-runtime","views/banner/banner","views/sound/waveform"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="";return r+='

'+u(n.$t.call(e,"Not available inyour country",{hash:{},data:t}))+"

\n",r}function c(e,t){var r="",i;r+=" ",i=n["if"].call(e,e&&e.playable,{hash:{},inverse:a.program(6,p,t),fn:a.program(4,h,t),data:t});if(i||i===0)r+=i;r+=" "+u(n.$view.call(e,"views/sound/waveform",{hash:{resource_id:e&&e._resource_id,resource_type:e&&e._resource_type},data:t}))+" ",i=n["if"].call(e,e&&e.likes_count_info,{hash:{},inverse:a.noop,fn:a.program(9,v,t),data:t});if(i||i===0)r+=i;return r+="\n",r}function h(e,t){var r="";return r+=" "+u(n.$view.call(e,"views/banner/banner",{hash:{},data:t}))+" ",r}function p(e,t){var r="",i;r+=" ",i=n.$view.call(e,"views/banner/banner",{hash:{},inverse:a.noop,fn:a.program(7,d,t),data:t});if(i||i===0)r+=i;return r+=" ",r}function d(e,t){var r="";return r+=" "+u(n.$t.call(e,"We’re sorry, that track isn’t available on mobile.",{hash:{},data:t}))+" ",r}function v(e,t){var r="",i;return r+=' '+u(n.$a11y.call(e,{hash:{visible:(i=e&&e.likes_count_info,i==null||i===!1?i:i.count),screenreader:(i=e&&e.likes_count_info,i==null||i===!1?i:i.fullMessage)},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+='\n

'+u((o=t&&t.title,typeof o===f?o.apply(t):o))+'

\n',o=n["if"].call(t,t&&t.isBlocked,{hash:{},inverse:a.program(3,c,i),fn:a.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}), define("config/experiments",["require","exports","module","lib/endpoints","vendor/event-gateway/event-gateway","lib/support"],function(e,t,n){var r=e("lib/endpoints"),i=e("vendor/event-gateway/event-gateway"),s=e("lib/support"),o=n.exports={version:"23-05-2016_15:35",availableLayers:["mweb_listening"],anonymousUserId:i.getAnonymousId(),assignmentServiceUrl:r.getEndpointUrl("assignments"),localStorageKey:"MW::local::assignments",localStorageEnabled:s.localStorage}}), define("lib/helpers/charts-helper",["require","exports","module","underscore","lib/lingua","shared/config/charts"],function(e,t,n){function u(e){return e.toLowerCase().replace(/[^a-z]/g,"").replace(/^(drumnbass|dn?b)$/,"drumbass").replace(/^(rn?b|soul)$/,"rbsoul").replace(/^(rap|hiphop)$/,"hiphoprap").replace(/^folk$/,"folksingersongwriter").replace(/^(jazz|blues)$/,"jazzblues").replace(/^(dance|edm)$/,"danceedm")}function a(e){return r.findWhere(s.genres,{id:e})}var r=e("underscore"),i=e("lib/lingua"),s=e("shared/config/charts"),o=n.exports={genreLabel:function(e){return l[e]},genres:function(e){return r.where(s.genres,{category:e})},getGenre:a,genreUrn:function(e){return"soundcloud:genres:"+e},chartKindLabel:function(e){return f[e]},chartKinds:function(){return s.kinds},userGenreToChartGenre:function(e){return e&&a(u(e))||a("all-music")},taglines:function(e,t){var n=o.genreLabel(t),r=o.getGenre(t),s=r.category,u=r.content,a=[s,e,u].join("-");switch(a){case"all-trending-music":return{"short":i.t("New & hot tracks"),"long":i.t("Up-and-coming tracks on SoundCloud")};case"all-trending-audio":return{"short":i.t("New & hot audio"),"long":i.t("Up-and-coming audio on SoundCloud")};case"all-top-music":return{"short":i.t("Top 50 tracks"),"long":i.t("The most played tracks on SoundCloud this week")};case"all-top-audio":return{"short":i.t("Top 50 audio"),"long":i.t("The most played audio on SoundCloud this week")};case"music-trending-music":return{"short":i.t("New & hot in [[[genreLabel]]]",{genreLabel:n},{comment:"New & hot music tracks in (a genre)"}),"long":i.t("Up-and-coming tracks in [[[genreLabel]]] on SoundCloud",{genreLabel:n})};case"music-top-music":return{"short":i.t("Top 50 in [[[genreLabel]]]",{genreLabel:n},{comment:"Top 50 music tracks in (a genre)"}),"long":i.t("The most played tracks in [[[genreLabel]]] on SoundCloud this week",{genreLabel:n})};case"audio-trending-audio":return{"short":i.t("New & hot in [[[genreLabel]]]",{genreLabel:n},{comment:"New & hot audio tracks in (a genre)"}),"long":i.t("Up-and-coming in [[[genreLabel]]] on SoundCloud",{genreLabel:n},{comment:"Up-and-coming audio tracks in (a genre)"})};case"audio-top-audio":return{"short":i.t("Top 50 in [[[genreLabel]]]",{genreLabel:n},{comment:"Top 50 audio tracks in (a genre)"}),"long":i.t("The most played in [[[genreLabel]]] on SoundCloud this week",{genreLabel:n},{comment:"The most played audio tracks in (a genre)"})};default:}}},f={trending:i.t("New & hot"),top:i.t("Top 50")},l={"all-music":i.t("All music genres"),"all-audio":i.t("All audio genres"),alternativerock:i.t("Alternative Rock"),ambient:i.t("Ambient"),classical:i.t("Classical"),country:i.t("Country"),danceedm:i.t("Dance & EDM"),dancehall:i.t("Dancehall"),deephouse:i.t("Deep House"),disco:i.t("Disco"),drumbass:i.t("Drum & Bass"),dubstep:i.t("Dubstep"),electronic:i.t("Electronic"),folksingersongwriter:i.t("Folk & Singer-Songwriter"),hiphoprap:i.t("Hip-hop & Rap"),house:i.t("House"),indie:i.t("Indie"),jazzblues:i.t("Jazz & Blues"),latin:i.t("Latin"),metal:i.t("Metal"),piano:i.t("Piano"),pop:i.t("Pop"),rbsoul:i.t("R&B & Soul"),reggae:i.t("Reggae"),reggaeton:i.t("Reggaeton"),rock:i.t("Rock"),soundtrack:i.t("Soundtrack"),speech:i.t("Speech"),techno:i.t("Techno"),trance:i.t("Trance"),trap:i.t("Trap"),triphop:i.t("Triphop"),world:i.t("World"),audiobooks:i.t("Audiobooks"),business:i.t("Business"),comedy:i.t("Comedy"),entertainment:i.t("Entertainment"),learning:i.t("Learning"),newspolitics:i.t("News & Politics"),religionspirituality:i.t("Religion & Spirituality"),science:i.t("Science"),sports:i.t("Sports"),storytelling:i.t("Storytelling"),technology:i.t("Technology")}}), define("collections/chart-tracks",["require","exports","module","underscore","lib/mixins/audio-source","lib/helpers/charts-helper","lib/collection","models/sound"],function(e,t,n){var r=e("underscore"),i=e("lib/mixins/audio-source"),s=e("lib/helpers/charts-helper"),o=e("lib/collection"),u=e("models/sound"),a=n.exports=o.extend(i,{model:u,baseUrl:function(){return this.getEndpointUrl("charts",{},{kind:this.options.chartKind,genre:s.genreUrn(this.options.genre)})},getSourceInfo:function(){return{type:"charts"}},getSounds:function(){return this.models},parse:function(e){return r.pluck(e.collection,"track")}})}), define("views/listen/blocked-suggestions.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".blockedSuggestions__section{padding:0 10px}.blockedSuggestions__heading{border-bottom:1px solid #f3f3f3;line-height:55px}")),data=null}), define("views/listen/blocked-suggestions.tmpl",["vendor/handlebars-runtime","lib/views/sounds-list"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var n="",r;return n+=" "+a((r=e&&e.tagline,typeof r===u?r.apply(e):r))+" ",n}function c(e,t){var r="";return r+=" "+a(n.$t.call(e,"Try playing these related tracks",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression,f=this;s+='

',o=n["if"].call(t,t&&t.useFallback,{hash:{},inverse:f.program(3,c,i),fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="

\n\n"+a(n.$view.call(t,"lib/views/sounds-list",{hash:{getCollection:t&&t.getSuggestionsCollection},data:i}))+"\n",s})}), define("views/interstitials/like-app-upsell-content.tmpl",["vendor/handlebars-runtime","views/app-buttons/app-buttons"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a="function";s+=''+u(n.$t.call(t,"Close",{hash:{},data:i}))+'

'+u((o=t&&t.upsellContent,typeof o===a?o.apply(t):o))+"\n

"+u(n.$view.call(t,"views/app-buttons/app-buttons",{hash:{getDeepLink:t&&t.getLikeUpsellDeepLink},data:i}))+"\n",s})}), define("views/interstitials/like-app-upsell-content.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".likeAppUpsellContent{background:#fff;padding:24px 24px 0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.likeAppUpsellContent__image{display:block;margin:0 auto}.likeAppUpsellContent.iOS{border-radius:6px;padding-bottom:19px;text-align:center;width:300px}.likeAppUpsellContent.iOS .likeAppUpsellContent__messageHeader{margin-top:20px;font-size:16;color:#333}.likeAppUpsellContent.iOS .likeAppUpsellContent__messageContent{margin-top:18px;font-size:14;color:#999}.likeAppUpsellContent.iOS .appButtons{margin-top:20px}.likeAppUpsellContent.android{border-radius:2px;padding-bottom:16px;text-align:left;width:280px}.likeAppUpsellContent.android .likeAppUpsellContent__messageHeader{margin-top:24px;font-size:16;color:#333}.likeAppUpsellContent.android .likeAppUpsellContent__messageContent{margin-top:20px;font-size:14;color:#999}.likeAppUpsellContent.android .appButtons{margin-top:32px}.likeAppUpsellContent__closeButton{position:absolute;top:13px;right:11px;border:0;overflow:hidden;background-color:transparent;width:11px;height:11px}.likeAppUpsellContent__closeButton:before{width:11px;height:11px;background:url(https://m.soundcloud.com/assets/images/ldpi/interstitial/dialog_close-a797f6bf.png);background-size:11px 11px;float:left;content:''}")),data=null}), define("views/banner/banner",["require","exports","module","underscore","lib/view","views/banner/banner.css"],function(e,t,n){var r=e("underscore"),i=e("lib/view"),s=n.exports=i.extend({className:"banner g-z-index-banner",css:e("views/banner/banner.css"),template:function(){return""},defaults:{message:null},setup:function(e){this.options.message=e.message||e.blockContent,this.toggleState("disabled",!0),r.bindAll(this,"setBanner")},renderDecorate:function(){this.whenInserted().done(function(){var e=this.options;!r.isEmpty(e)&&!r.isEmpty(r.compact(r.values(e)))&&this.setBanner(e)}.bind(this))},setBanner:function(e){if(!e||!e.message)return;var t=this.el,n=e.message;n&&this.getState("disabled")?(this.toggleState("disabled",!1),t.innerHTML=e.message,t.style.top=e.position):n&&!this.getState("disabled")?t.innerHTML=e.message:this.toggleState("disabled",!0)}})}), define("views/sound/waveform",["require","exports","module","views/sound/waveform-canvas","lib/math","models/sound","lib/helpers/style-helper","lib/view","views/sound/waveform.tmpl","views/sound/waveform.css"],function(e,t,n){function f(e){var t=e?"on":"off";this.model[t]("play pause",l,this)[t]("position",c,this)}function l(){this.toggleState("playing",this.model.isPlaying())}function c(){this._isScrubbing||h.call(this,this.model.currentTime()/this.model.duration())}function h(e){if(!this.subviews.waveformCanvasUnplayed)return;var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this.model.getMediaDuration()/this.model.duration();e=i.clamp(e,0,n),o(this.getElement("waveformPlayed")[0],"transform: translateX("+(t-Math.floor(t*e))+"px)"),o(this.getElement("waveformUnplayed")[0],"transform: translateX("+ -Math.floor(t*e)+"px)")}function p(e){var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this._currentSeek+e*t,r=this.model.getMediaDuration()/this.model.duration();this._currentSeek=i.clamp(n,0,r*t),this._isScrubbing&&(h.call(this,this._currentSeek/t),this.subviews.timeIndicator.manualProgress(this._currentSeek/t))}function d(){this._isScrubbing=!0,this.subviews.timeIndicator.toggleScrubbing(!0),this.toggleState("scrubbing",!0)}function v(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this.model.seek(this.model.duration()*(this._currentSeek/e)),this._isScrubbing=!1,this.subviews.timeIndicator.toggleScrubbing(!1),this.toggleState("scrubbing",!1)}function m(e){p.call(this,e.data.delta)}var r=e("views/sound/waveform-canvas").Events,i=e("lib/math"),s=e("models/sound"),o=e("lib/helpers/style-helper"),u=e("lib/view"),a=n.exports=u.extend({template:e("views/sound/waveform.tmpl"),css:e("views/sound/waveform.css"),className:"waveform sc-selection-disabled g-opacity-transition",ModelClass:s,element2selector:{waveformPlayed:".waveform__waveformCanvasPlayed > canvas",waveformUnplayed:".waveform__waveformCanvasUnplayed > canvas"},bubbleEvents:{scrubStart:d,scrub:m,scrubEnd:v},defaults:{upperPartHeight:.7},requiredAttributes:["id","waveform_url","state"],setup:function(){this.toggleState("visual",this.options.visual),this._currentSeek=0,f.call(this,!0)},dispose:function(){f.call(this,!1)},renderDecorate:function(){this.subviews.waveformCanvasUnplayed.on(r.RENDERED,function(){this.toggleState("visible",!0),l.call(this)},this)},getTemplateData:function(e){var t=this.options;return{model:e,upperPartHeight:t.upperPartHeight,upperPartHeightPercent:t.upperPartHeight*100+"%"}}})}), define("shared/config/charts",["require","exports","module"],function(e,t,n){n.exports={defaultKind:"top",defaultGenre:"all-music",kinds:[{id:"top",urlPart:"top"},{id:"trending",urlPart:"new"}],genres:[{id:"all-music",category:"all",content:"music"},{id:"all-audio",category:"all",content:"audio"},{id:"alternativerock",category:"music",content:"music"},{id:"ambient",category:"music",content:"music"},{id:"classical",category:"music",content:"music"},{id:"country",category:"music",content:"music"},{id:"danceedm",category:"music",content:"music"},{id:"dancehall",category:"music",content:"music"},{id:"deephouse",category:"music",content:"music"},{id:"disco",category:"music",content:"music"},{id:"drumbass",category:"music",content:"music"},{id:"dubstep",category:"music",content:"music"},{id:"electronic",category:"music",content:"music"},{id:"folksingersongwriter",category:"music",content:"music"},{id:"hiphoprap",category:"music",content:"music"},{id:"house",category:"music",content:"music"},{id:"indie",category:"music",content:"music"},{id:"jazzblues",category:"music",content:"music"},{id:"latin",category:"music",content:"music"},{id:"metal",category:"music",content:"music"},{id:"piano",category:"music",content:"music"},{id:"pop",category:"music",content:"music"},{id:"rbsoul",category:"music",content:"music"},{id:"reggae",category:"music",content:"music"},{id:"reggaeton",category:"music",content:"music"},{id:"rock",category:"music",content:"music"},{id:"soundtrack",category:"music",content:"music"},{id:"techno",category:"music",content:"music"},{id:"trance",category:"music",content:"music"},{id:"trap",category:"music",content:"music"},{id:"triphop",category:"music",content:"music"},{id:"world",category:"music",content:"music"},{id:"audiobooks",category:"audio",content:"audio"},{id:"business",category:"audio",content:"audio"},{id:"comedy",category:"audio",content:"audio"},{id:"entertainment",category:"audio",content:"audio"},{id:"learning",category:"audio",content:"audio"},{id:"newspolitics",category:"audio",content:"audio"},{id:"religionspirituality",category:"audio",content:"audio"},{id:"science",category:"audio",content:"audio"},{id:"sports",category:"audio",content:"audio"},{id:"storytelling",category:"audio",content:"audio"},{id:"technology",category:"audio",content:"audio"}]}}), define("lib/views/sounds-list",["require","exports","module","lib/views/list","views/sound/sound-badge"],function(e,t,n){var r=e("lib/views/list"),i=e("views/sound/sound-badge"),s=n.exports=r.extend({Subview:i,defaults:{maxDisplay:3,getCollection:null},className:"g-list",itemClassName:"g-list-item",setup:function(e){this.collection=e.getCollection()}})}), define("views/banner/banner.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".banner.disabled{display:none}.banner{position:absolute;left:0;width:100%;height:36px;line-height:36px;background:#000;background:rgba(0,0,0,.8);color:#e5e5e5;text-align:center;font-size:13px}")),data=null}), define("views/sound/waveform-canvas",["require","exports","module","underscore","lib/views/canvas-view","vendor/color/color","config","models/sound","lib/store","lib/support"],function(e,t,n){function E(){if(this.disposed)return;if(!this.waveformData){T.call(this).done(this.renderWaveform.bind(this));return}var e=this.options;this.clearCanvas(),S({waveform:this.waveformData,duration:this.model.duration(),mediaDuration:this.model.getMediaDuration(),scaledWidth:this.elWidth,scaledHeight:this.elHeight,context:this.context,bgColor:e.bgColor,bottomBgColor:e.bottomBgColor,upperPartHeight:e.upperPartHeight,upperAlpha:e.upperAlpha,lowerAlpha:e.lowerAlpha}),this.trigger(w.Events.RENDERED)}function S(e){var t=e.waveform,n=e.scaledWidth,r=e.scaledHeight,i=e.upperPartHeight,o=e.context,u=Math.round(i*r),a=r-u,f=n/t.length,l=s(e.bgColor),c=s(e.bottomBgColor),h,p,m,b,w,E=l.rgba(e.upperAlpha),S=c.rgba(e.lowerAlpha),x=l.rgba(e.upperAlpha*y),T=l.rgba(e.lowerAlpha*y),N=Math.ceil(e.mediaDuration/e.duration*n);for(h=0;h-1?C():b.get(r);return i?t.resolve({data:i}):(t.done(function(e){b.set(e.key,e.data)}),x(r).done(function(e){t.resolve({key:r,data:e.samples.reduce(N(e.height),new l(e.samples.length))})}).fail(function(){t.resolve({key:r,data:C()})})),t.done(function(e){this.waveformData=e.data}.bind(this)),t.promise()}var r=e("underscore"),i=e("lib/views/canvas-view"),s=e("vendor/color/color"),o=e("config"),u=e("models/sound"),a=e("lib/store"),f=e("lib/support"),l=f.typedArrays?Uint8Array:Array,c="/images/player-waveform-medium.png",h=500,p=1800,d=140,v=2,m=1,g=v+m,y=.2,b=new a({maxLength:h}),w=n.exports=i.extend({className:"g-box-full waveformCanvas",defaults:{bgColor:"#333333",bottomBgColor:"#EEEEEE",lowerAlpha:1,upperAlpha:1,upperPartHeight:.61},ModelClass:u,requiredAttributes:["waveform_url"],waveformData:null,onCanvasInserted:E,onCanvasResize:E,renderWaveform:E,renderWaveformDecorate:$.noop},{Events:{RENDERED:"waveform-canvas.rendered"}}),N=r.memoize(function(e){return function(t,n,r){return t[r]=e-n,t}}),C=r.memoize(function(){var e=new l(p);for(var t=0;t

= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression;return s+='

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasPlayed",bgColor:"#FF6600",bottomBgColor:"#ffa366",className:"g-moving-element"},data:i}))+'

'+u(n.$view.call(t,"views/sound/waveform-canvas",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"waveformCanvasUnplayed",bgColor:"#FFFFFF",bottomBgColor:"#B3B3B3",className:"g-moving-element"},data:i}))+'

\n

'+u(n.$view.call(t,"views/listen/time-indicator",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type),key:"timeIndicator"},data:i}))+'\n

'+u(n.$view.call(t,"views/listen/scrubber",{hash:{resource_id:(o=t&&t.model,o==null||o===!1?o:o._resource_id),resource_type:(o=t&&t.model,o==null||o===!1?o:o._resource_type)},data:i}))+"\n

",s})}), define("views/sound/waveform.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".waveform{height:100%;pointer-events:none}.waveform,.waveform__layer{width:100%;position:absolute}.waveform__layer{height:87px;bottom:18%;overflow:hidden;pointer-events:auto;-ms-touch-action:none;touch-action:none}.waveform__layer .waveform__layer{bottom:0}.waveform__timeIndicator{position:absolute;bottom:18%;margin-bottom:34px;display:inline-block;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);transition:bottom .15s linear;z-index:2}.waveform:not(.playing) .waveform__timeIndicator .timeIndicator__container,.waveform.scrubbing .waveform__timeIndicator .timeIndicator__container{background:none}.waveform.scrubbing .waveform__timeIndicator{bottom:46%;transition-timing-function:cubic-bezier(.51,.37,.61,1.6);transition-duration:.25s}.waveform.scrubbing .timeIndicator__text{font-size:20px}.waveform__waveformCanvases{clip:rect(50px,auto,53px,0);-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 54px;transform-origin:0 54px;-webkit-transition:all .2s cubic-bezier(.68,.68,.165,1);transition:all .2s cubic-bezier(.68,.68,.165,1);z-index:0}.waveform.playing .waveform__waveformCanvases{clip:rect(0,auto,87px,0);-webkit-transform:scaleY(1);transform:scaleY(1);transition:all .45s cubic-bezier(.68,.68,.165,1.45);-webkit-transition:all .45s cubic-bezier(.68,.68,.165,1.45)}.waveform__waveformCanvasPlayed,.waveform__waveformCanvasUnplayed{z-index:1}.waveform__waveformCanvasPlayed{right:50%}.waveform__waveformCanvasPlayed canvas{-webkit-transform:translateX(100%);transform:translateX(100%)}.waveform__waveformCanvasUnplayed{left:50%}.waveform__waveformCanvasUnplayed canvas{-webkit-transform:translateX(0);transform:translateX(0)}.waveform__scrubber{z-index:3}")),data=null}), define("views/sound/sound-badge",["require","exports","module","lib/views/mixins/audible-control","config","lib/helpers/datetime-helper","lib/views/mixins/deferred-images","models/sound","lib/view","views/sound/sound-badge.css","views/sound/sound-badge.tmpl"],function(e,t,n){function l(e){var t=e?"on":"off";this.model[t]("play pause",c,this)}function c(){h.call(this)}function h(){if(this.disposed)return;this.toggleState("playing",this.model.isPlaying())}function p(e){var t=this.model;if(t.isBlocked()){e.preventDefault();return}t.isPlaying()||this.playAudible(t,{userInitiated:!0,context:this.getContextData()})}var r=e("lib/views/mixins/audible-control"),i=e("config"),s=e("lib/helpers/datetime-helper"),o=e("lib/views/mixins/deferred-images"),u=e("models/sound"),a=e("lib/view"),f=n.exports=a.extend(r,o,{css:e("views/sound/sound-badge.css"),template:e("views/sound/sound-badge.tmpl"),ModelClass:u,className:"soundBadge g-badge",requiredAttributes:["permalink_url","user","title"],events:{click:p},setup:function(){l.call(this,!0)},dispose:function(){l.call(this,!1)},renderDecorate:function(){h.call(this)},getTemplateData:function(e){var t=i.get("router").getLayoutInfo(),n=t&&t.args,r=n&&n.username;return e.timecode=s.timecode(e.duration),e.isReposted&&t.layoutName==="user-profile"&&(e.layoutUsername=r),e.isBlocked=this.model.isBlocked(),e.isSnippetized=this.model.isSnippetized(),e}})}), define("lib/views/canvas-view",["require","exports","module","lib/helpers/client-environment-helper","lib/view","lib/window-events"],function(e,t,n){function a(){try{var e=this.el.offsetWidth,t=this.el.offsetHeight;if(this.elWidth!==e||this.elHeight!==t)f.call(this,e,t),this.onCanvasResize()}catch(n){}}function f(e,t){this.elWidth=e||this.el.offsetWidth,this.elHeight=t||this.el.offsetHeight,r.device.dpi==="hdpi"&&o!==1?(this.el.setAttribute("width",this.elWidth*o),this.el.setAttribute("height",this.elHeight*o),this.context.scale(o,o)):(this.el.setAttribute("width",this.elWidth),this.el.setAttribute("height",this.elHeight))}var r=e("lib/helpers/client-environment-helper"),i=e("lib/view"),s=e("lib/window-events"),o=r.device.devicePixelRatio/r.browser.backingStoreRatio,u=n.exports=i.extend({tagName:"canvas",className:"g-box-full",context:null,template:function(){return""},_setup:function(){this.context=this.el.getContext("2d"),s.on("resize:debounced",a,this),i.prototype._setup.apply(this,arguments)},_dispose:function(){if(this.disposed)return;s.off("resize:debounced",a,this),delete this.context,delete this.elWidth,delete this.elHeight,i.prototype._dispose.apply(this,arguments)},renderDecorate:function(){this.whenInserted().done(function(){f.call(this),this.onCanvasInserted()}.bind(this))},onCanvasInserted:$.noop,onCanvasResize:$.noop,forceResize:function(){this._onWindowResize()},clearCanvas:function(){this.context&&this.context.clearRect(0,0,this.elWidth,this.elHeight)}})}), define("vendor/color/color",["require","exports","module"],function(e,t,n){(function(){function f(e){return e===void 0}function l(e){return parseInt(e,16)}function c(e){return parseInt(e,10)}function h(e){return e.length===1?"0"+e:""+e}function p(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d(e){return typeof e=="string"&&e.indexOf("%")!==-1}function v(e){return o(1,u(0,e))}function m(e,t){p(e)&&(e="100%");var n=d(e);return e=o(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)r.brightness&&n.color>r.color?A(e):A(t)}var e=/^[\s,#]+/,t=/\s+$/,r=Math,i=r.abs,s=r.round,o=r.min,u=r.max,a=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),hsl:new RegExp("hsl"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}(),A=function(e){var t=E(e);return{hue:function(e){return S.call(this,e)},darken:function(e){return x.call(this,e)},lighten:function(e){return T.call(this,e)},analogous:function(e,t){return N.call(this,e,t)},readable:function(e){return k.call(this,e)},diff:function(e){return C.call(this,e)},contrast:function(e,t){return L.call(this,e,t)},hex:function(){return t?"#"+g(t):null},toRgb:function(){return t},isValid:function(){return t?!0:!1},rgb:function(){return t?"rgb("+[s(t.r),s(t.g),s(t.b)].join(", ")+")":null},rgba:function(e){return t?"rgba("+[s(t.r),s(t.g),s(t.b),f(e)?1:v(e)].join(", ")+")":null},toHsl:function(){return b(t)},hsl:function(){var e=b(t);return t?"hsl("+e.h+", "+e.s+"%, "+e.l+"%)":null}}};typeof n!="undefined"&&n.exports?n.exports=A:(global=function(){return this}(),global.SC=global.SC||{},global.SC.color=A)})()}), define("views/listen/time-indicator",["require","exports","module","underscore","lib/helpers/datetime-helper","lib/views/progress-bar","views/listen/time-indicator.tmpl","views/listen/time-indicator.css"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/datetime-helper"),s=e("lib/views/progress-bar"),o=1e3/60,u=n.exports=s.extend({template:e("views/listen/time-indicator.tmpl"),css:e("views/listen/time-indicator.css"),className:"timeIndicator",element2selector:{current:".timeIndicator__current"},setup:function(){s.prototype.setup.apply(this,arguments),this._isScrubbing=!1,this.updateTimeDisplay=r.throttle(this.updateTimeDisplay.bind(this),o)},getTemplateData:function(e){e.timecode=i.timecode(this.model.getMediaDuration())},manualProgress:function(e){this.updateTimeDisplay(e*this.model.duration())},updateProgress:function(e){this._isScrubbing||this.updateTimeDisplay(e)},toggleScrubbing:function(e){this._isScrubbing=e},updateTimeDisplay:function(e){var t=e?e:this.model.currentTime();t=Math.floor(t/1e3+.1)*1e3,this.getElement("current")[0].innerHTML=i.timecode(t)}})}), define("views/listen/scrubber",["require","exports","module","lib/views/mixins/draggable","lib/event-bus","models/sound","lib/view"],function(e,t,n){function a(){i.trigger("scrub:start"),this.bubble("scrubStart")}function f(e){this.bubble("scrub",{delta:e.data.delta})}function l(){i.trigger("scrub:end"),this.bubble("scrubEnd")}var r=e("lib/views/mixins/draggable"),i=e("lib/event-bus"),s=e("models/sound"),o=e("lib/view"),u=n.exports=o.extend(r,{className:"scrubber g-box-full",template:function(){return""},ModelClass:s,events:{"draggable-start":a,"draggable-drag":f,"draggable-end":l},setup:function(){this.el.style.background="rgba(0,0,0,0)"}})}), define("lib/helpers/datetime-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s=1e3,o=6e4,u=36e5,a={inWords:!1},f=n.exports={timecode:function(e,t){var n,f;return t=t||{},t=r.defaults(t,a),isNaN(e)?e:(n=[],f={h:Math.floor(e/u),m:Math.floor(e/o%60),s:Math.floor(e/s%60)},t.inWords?(f.h>0&&n.push(i.tp("1 hour","%d hours",f.h)),f.m>0&&n.push(i.tp("1 minute","%d minutes",f.m)),(f.s>0||f.m===0&&f.h===0)&&n.push(i.tp("1 second","%d seconds",f.s)),n.join(" ")):(f.h>0&&n.push(f.h),n.push(f.m0?"0"+f.m:f.m,f.s=e.top&&g(e,t)},this)}function g(e){var t=e.element,n=t.getAttribute("data-src");e.loading=!0,u.load(n).done(function(){var e=r(t);t.tagName==="IMG"?t.src=n:t.style.backgroundImage="url("+n+")",e.hasClass("image__defer")&&(e.removeClass("image__defer"),t.removeAttribute("data-src"),o(t))})}function y(){var e=s.get("appView").nativeScrollEl;return e?e[0].scrollTop:window.pageYOffset}var r=e("$"),i=e("underscore"),s=e("config"),o=e("lib/css-transitions").fadeIn,u=e("lib/helpers/image-helper"),a=e("lib/mixin"),f=300,l={},c=window.innerHeight/2,h=!1,p,d=n.exports=new a({after:{renderDecorate:function(){this.whenInserted().done(v.bind(this))}},storeDeferredImages:function(){this.$(".image__defer").each(function(e){var t=i.uniqueId();l[t]={top:e.getBoundingClientRect().top+window.pageYOffset,element:e,loading:!1}})}})}), define("views/sound/sound-badge.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".soundBadge .soundBadge__playing{display:none}.soundBadge.playing .soundBadge__playing{display:block}.soundBadge.playing .soundBadge__indicator{display:none}")),data=null}), define("views/sound/sound-badge.tmpl",["vendor/handlebars-runtime","views/stats/sound-stats","lib/views/promoted"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){return" g-badge-disabled"}function c(e,t){return" g-badge-title-disabled"}function h(e,t){var r="";return r+='

'+u(n.$t.call(e,"Not available in your country",{hash:{},data:t}))+"

",r}function p(e,t){var r="",i;r+=" ",i=n["if"].call(e,e&&e.isReposted,{hash:{},inverse:a.program(10,v,t),fn:a.program(8,d,t),data:t});if(i||i===0)r+=i;return r+=" ",r}function d(e,t){var r="";return r+='

'+u(n.$t.call(e,"Reposted by [[username]]",{hash:{username:e&&e.layoutUsername},data:t}))+"

",r}function v(e,t){var r="";return r+='

'+u(n.$view.call(e,"views/stats/sound-stats",{hash:{resource_id:e&&e._resource_id},data:t}))+"

",r}function m(e,t){var r="";return r+='

'+u(n.$t.call(e,"Preview",{hash:{_context:"track",_comment:"An audio snippet of a track"},data:t}))+"

",r}function g(e,t){var n="",r;return n+='

'+u((r=e&&e.timecode,typeof r===f?r.apply(e):r))+"

",n}function y(e,t){var r="";return r+=" "+u(n.$view.call(e,"lib/views/promoted",{hash:{},data:t}))+" ",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this,f="function";s+=' '+u(n.$image.call(t,t,{hash:{size:60,"class":"sc-media-left",defer:!0},data:i}))+'",o=n["if"].call(t,t&&t.is_promoted,{hash:{},inverse:a.noop,fn:a.program(16,y,i),data:i});if(o||o===0)s+=o;return s+="\n\n",s})}), define("lib/views/progress-bar",["require","exports","module","underscore","$","models/sound","lib/view","lib/window-events"],function(e,t,n){function p(e){var t=e?"on":"off";a[t]("pointerup",w,this)[t]("pointerdown",b,this),u[t]("resize:debounced",N,this)[t]("resize:debounced",this.getWidth.bind(this,!0),this),this.model[t]("finish",g,this)[t]("seeked",m,this)[t]("manually-seeked",m,this)[t]("play",v,this)[t]("pause",d,this)}function d(){T.call(this)}function v(){x.call(this)}function m(){y.call(this)}function g(){y.call(this)}function y(){var e=this.model.currentTime();if(this.disposed||this.isUserScrubbing&&!e)return;this.playedProgress=e?E.call(this,e):this.getPlayedProgress(),this.updateProgress(e)}function b(){this.isUserScrubbing=!0}function w(){r.delay(function(){this.isUserScrubbing=!1}.bind(this),c)}function E(e){return e/this.model.duration()}function S(e){var t=this._throttleTime,n;!e&&!this.isUserScrubbing&&y.call(this),n=Math.max(f,t&&t-this.model.currentTime()%t),this._throttleTimeout=setTimeout(S.bind(this,this.isUserScrubbing),n)}function x(){this.model.isPlaying()&&(this._throttleTime||N.call(this),this._throttleTimeout||S.call(this))}function T(){clearTimeout(this._throttleTimeout),this._throttleTimeout=null}function N(){if(this.disposed)return;var e=this.el.clientWidth,t;e!==this._lastContainerSize&&(this._lastContainerSize=e,t=this.model.duration(),this._throttleTime=Math.max(f,Math.floor(t/e)),this._throttleTime=Math.min(this._throttleTime,l))}var r=e("underscore"),i=e("$"),s=e("models/sound"),o=e("lib/view"),u=e("lib/window-events"),a=i(document),f=50,l=250,c=300,h=n.exports=o.extend({ModelClass:s,setup:function(){this.loadedProgress=this.getLoadedProgress(),this.playedProgress=this.getPlayedProgress(),this.isFullyLoaded=!1,this.isUserScrubbing=!1,p.call(this,!0)},dispose:function(){p.call(this,!1)},renderDecorate:function(){x.call(this)},teardown:function(){T.call(this)},updateProgress:i.noop,getLoadedProgress:function(){return this.model.loadProgress()},getPlayedProgress:function(){return this.model.currentTime()},calculateProgressPixels:function(e){return Math.floor(this.getWidth()*e)},getWidth:function(e){return e=this.el.parentNode?e:!0,this._width=e?this.el.offsetWidth:this._width||this.el.offsetWidth,this._width}})}), define("views/listen/time-indicator.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u="function",a=this.escapeExpression;return s+='

0.00|'+a((o=t&&t.timecode,typeof o===u?o.apply(t):o))+"\n

\n",s})}), define("views/listen/time-indicator.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".timeIndicator__container{background:rgba(0,0,0,.8);height:20px;line-height:20px;font-size:0;white-space:nowrap}.timeIndicator__current{color:#fff}.timeIndicator__text{font-size:12px;transition:font-size .15s cubic-bezier(.51,.37,.61,1.6)}.timeIndicator__current,.timeIndicator__total{padding:0 5px}.timeIndicator__divider,.timeIndicator__total{color:#999}")),data=null}), define("lib/views/mixins/draggable",["require","exports","module","$","lib/animation","lib/mixin","lib/window-events"],function(e,t,n){function f(e){this.el=e,this.width=null,this.coords=null,this.reset(),this.onPointerMove=p.bind(this),this.onPointerUp=d.bind(this),this.onPointerDown=h.bind(this),l.call(this,!0)}function l(e){var t=e?"on":"off";this.el[t?"addEventListener":"removeEventListener"]("pointerdown",this.onPointerDown),o[t?"on":"off"]("resize:debounced",v,this)}function c(e){var t=e?"on":"off";u[t]("pointerup",this.onPointerUp)[t]("pointermove",this.onPointerMove)}function h(e){this.kineticMoveAnimation&&this.kineticMoveAnimation.reject(),this.dispatchEvent("start"),this.dispatchEvent("drag",0),this.lastPointerX=e.x,c.call(this,!0)}function p(e){e.maskedEvent.preventDefault();var t=e.x,n=this.lastPointerX-t;this.startMoveTimestamp=this.startMoveTimestamp||Date.now(),this.deltas.push(n),this.lastPointerX=t,(n>.01||n0?1:-1,t=this.deltas.reduce(function(e,t){return e+Math.abs(t)},0),n=t/this.deltas.length,n
https://m.soundcloud.com/harvardiop/roundtable-discussion-the-general-election