Showing source for: https://m.soundcloud.com/
Duration: 0.06039s
Server: am/2

<!DOCTYPE html><html lang="en"><head> <script>(function(){var e=window.location;/^m\..+\.com$/.test(e.host)&&!/iphone|ipod|android|mobile/i.test(navigator.userAgent)&&e.replace(e.href.replace(/m\./,""))})()</script> <meta charset="utf-8"> <link rel="dns-prefetch" href="//api-mobi.soundcloud.com"> <link rel="dns-prefetch" href="//api-mobileweb.soundcloud.com"> <link rel="dns-prefetch" href="//sb.scorecardresearch.com"> <link rel="dns-prefetch" href="//eventlogger.soundcloud.com"> <link rel="dns-prefetch" href="//api.soundcloud.com"> <link rel="dns-prefetch" href="//i1.sndcdn.com"> <link rel="dns-prefetch" href="//i2.sndcdn.com"> <link rel="dns-prefetch" href="//i3.sndcdn.com"> <link rel="dns-prefetch" href="//i4.sndcdn.com"> <link rel="dns-prefetch" href="//w1.sndcdn.com"> <link rel="dns-prefetch" href="//wis.sndcdn.com"> <link rel="dns-prefetch" href="//mobi.sndcdn.com"> <meta content="record, sounds, share, sound, audio, tracks, music, soundcloud" name="keywords"> <meta content="Explore the largest community of artists, bands, podcasters and creators of music &amp; audio" name="description"> <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!--[if IE]> <meta content="true" name="MSSmartTagsPreventParsing"> <meta content="false" http-equiv="imagetoolbar"> <![endif]--> <meta content="19507961798" property="fb:app_id"> <meta content="SoundCloud" property="og:site_name"> <meta name="sc-loader" id="__sc-loader" content="https://mobi.sndcdn.com/assets/images/ldpi/loader-81295ad2.gif"> <link rel="shortcut icon" href="https://mobi.sndcdn.com/assets/images/sc-icons/favicon-9c79c761.ico"> <link rel="icon" href="https://mobi.sndcdn.com/assets/images/sc-icons/favicon_16-9c79c761.png"> <link rel="icon" sizes="32x32" href="https://mobi.sndcdn.com/assets/images/sc-icons/favicon_32-9c79c761.png"> <link rel="icon" sizes="64x64" href="https://mobi.sndcdn.com/assets/images/sc-icons/favicon_64-9c79c761.png"> <link rel="apple-touch-icon" sizes="57x57" href="https://mobi.sndcdn.com/assets/images/sc-icons/iphone_ios6-9c79c761.png"> <link rel="apple-touch-icon" sizes="114x114" href="https://mobi.sndcdn.com/assets/images/sc-icons/[email protected]"> <link rel="apple-touch-icon" sizes="60x60" href="https://mobi.sndcdn.com/assets/images/sc-icons/iphone-9c79c761.png"> <link rel="apple-touch-icon" sizes="120x120" href="https://mobi.sndcdn.com/assets/images/sc-icons/[email protected]"> <meta name="application-name" content="SoundCloud"> <meta name="msapplication-tooltip" content="Launch SoundCloud"> <!-- TODO <meta name="msapplication-TileImage" content="/assets/images/sc-icons/win8.png"> --> <meta name="msapplication-TileColor" content="#ff6600"> <meta name="msapplication-starturl" content="https://soundcloud.com"> <meta name="msapplication-tap-highlight" content="no"> <title>SoundCloud - Listen to music</title><link rel="canonical" href="https://soundcloud.com/"><script> var __sc_dpi; (function(){ var dpr = window.devicePixelRatio; __sc_dpi = dpr >= 2 ? 'hdpi' : dpr > 1 ? 'mdpi' : 'ldpi'; }());</script><script> (function(){ var el; el = document.createElement('style'); el.innerHTML = '.errorVisual{background:url(https://mobi.sndcdn.com/assets/images/ldpi/errors/500-a53573d7.png) 0 0 no-repeat;background-size:448px 80px}.errorVisual.error__404{background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/errors/404-a53573d7.png);background-size:420px 120px}'.replace(/\/ldpi\//g, '/' + __sc_dpi + '/');document.querySelector('head').appendChild(el); }());</script><script> (function(){ var el = document.createElement('style'); el.innerHTML = '.sc-ir{border:0;font:0/0 a;text-shadow:none;color:transparent;background-color:transparent}.sc-hidden{display:none!important;visibility:hidden}.sc-visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sc-visuallyhidden.sc-focusable:active,.sc-visuallyhidden.sc-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.sc-invisible{visibility:hidden}.sc-media,.sc-media-content,.sc-media-body{overflow:hidden}.sc-media-image,.sc-media-left{float:left;margin-right:10px}.sc-media-extra,.sc-media-right{float:right;margin-left:10px}.sc-media-image img,.sc-media-extra img,.sc-media-object,.sc-media-image .sc-artwork,.sc-media-extra .sc-artwork{display:block}.sc-text{color:#333}.sc-text-light{color:#999}.sc-text-verylight{color:#ccc}.sc-text-link{color:#38d}.sc-text-orange{color:#f50}.sc-border-dark{border:1px solid #e5e5e5}.sc-border-dark-top{border-top:1px solid #e5e5e5}.sc-border-dark-right{border-right:1px solid #e5e5e5}.sc-border-dark-bottom{border-bottom:1px solid #e5e5e5}.sc-border-dark-left{border-left:1px solid #e5e5e5}.sc-border-light{border:1px solid #f2f2f2}.sc-border-light-top{border-top:1px solid #f2f2f2}.sc-border-light-right{border-right:1px solid #f2f2f2}.sc-border-light-bottom{border-bottom:1px solid #f2f2f2}.sc-border-light-left{border-left:1px solid #f2f2f2}.sc-border-orange{border:1px solid #f50}.sc-border-orange-top{border-top:1px solid #f50}.sc-border-orange-right{border-right:1px solid #f50}.sc-border-orange-bottom{border-bottom:1px solid #f50}.sc-border-orange-left{border-left:1px solid #f50}.sc-truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:normal}.sc-selection-text{-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-o-user-select:text;user-select:text;cursor:auto}.sc-selection-disabled{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;cursor:default;outline:0}.sc-snippet-badge{text-transform:uppercase;font-family:"Interstate","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Garuda,Verdana,Tahoma,sans-serif;font-weight:100;font-size:14px;border:1px solid;padding:0 .5em;display:inline;color:#000}.sc-snippet-badge-small{font-size:10px}.sc-snippet-badge-medium{font-size:12px;padding-bottom:1px}.sc-snippet-badge-light{color:#fff}.sc-snippet-badge-grey{color:#666;border-color:#ccc}*,:before,:after{-webkit-tap-highlight-color:rgba(0,0,0,0);margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas{display:inline-block}html{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;height:100%}body{height:100%}a{text-decoration:none}ul,li{list-style:none}img{border:0}svg:not(:root){overflow:hidden}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}input[type="checkbox"],input[type="radio"]{padding:0}input[type="search"]{-webkit-appearance:none}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}h1,h2,h3,h4,h5,h6{font-weight:400}.g-moving-element{will-change:transform;transform:translateZ(0)}.g-box-full{display:block;width:100%;height:100%;position:relative}.g-z-index-hidden{z-index:-1}.g-z-index-banner{z-index:1}.g-z-index-upsell{z-index:2}.g-z-index-header{z-index:3}.g-z-index-overlay{z-index:4}.g-z-index-app-loading{z-index:5!important}.g-image-fill{height:0;padding-bottom:100%}.g-background-cover{background-size:cover;background-position:50% 50%;background-repeat:none;height:100%;width:100%}.g-icon:before{float:left;content:\'\';background-repeat:no-repeat;background-position:0 0;margin-top:2px;margin-right:4px}.g-transition-fade{-webkit-transition:opacity .25s;transition:opacity .25s}.g-transition-fade-out{opacity:0}.g-transition-fade-in{opacity:1}.g-transition-translate{-webkit-transition:-webkit-transform .25s cubic-bezier(.645,.045,.355,1),opacity .25s cubic-bezier(.645,.045,.355,1);transition:transform .25s cubic-bezier(.645,.045,.355,1),opacity .25s cubic-bezier(.645,.045,.355,1)}.g-transition-slide-top-in{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}.g-transition-slide-top-out{-webkit-transform:translateY(-100%);transform:translateY(-100%);opacity:0}.g-font-10{font-size:10px;line-height:12px}.g-font-12{font-size:12px;line-height:15px}.g-font-14{font-size:14px;line-height:16px}.g-font-16{font-size:16px;line-height:19px}.g-font-20{font-size:20px;line-height:22px}.g-type-shrinkwrap-inline{display:inline;background:rgba(0,0,0,.8);color:#fff;padding:1px 0;box-shadow:-6px 0 0 rgba(0,0,0,.8),6px 0 0 rgba(0,0,0,.8);-webkit-font-smoothing:antialiased}.g-type-bucket-title{padding:0 10px;line-height:55px;border-bottom:1px solid #f2f2f2;background:#fff}.g-button{display:inline-block;position:relative;height:26px;margin:0;padding:2px 10px;border:1px solid rgb(225,225,225);border-radius:3px;background-color:#fcfcfc;cursor:pointer;overflow:hidden;color:#333;font-size:14px;line-height:20px;white-space:nowrap;text-align:center;vertical-align:baseline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.g-button-nostyle,.g-button-nostyle:hover,.g-button-nostyle:focus,.g-button-nostyle:active{border:0;background:none;text-shadow:none;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.g-button-large{font-size:16px;line-height:18px;padding:10px 15px;height:40px}.g-button-cta,.g-button-cta:active,.g-button-cta:hover,.g-button-cta:focus,.g-button-cta:visited{background-color:#f50;border-color:#f50;color:#fff}.errorPage{background:#efefef;height:100%}.errorPage__inner{height:100%;position:relative;text-align:center;overflow:hidden}.errorVisual{position:absolute;left:50%;top:96px;width:448px;height:80px;margin-left:-86px}.errorVisual.error__404{top:56px;width:420px;height:120px;margin-left:-60px}.errorMessage{padding-top:228px}.errorTitle{padding:0 10px;color:#666}.errorText{margin-top:18px;color:#666}.g-touch-padding{position:relative}.g-touch-padding:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;content:\'\';position:absolute;left:0;top:0;padding:12px;margin:-12px 0 0 -12px;width:100%;height:100%}.g-native-scroll{width:100%;height:100%;position:fixed;overflow:scroll;-webkit-overflow-scrolling:touch}.g-list-wrapper{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.g-list .g-list-item{border-top:1px solid #f2f2f2}.g-list .g-list-item:first-child{border-top:0}.g-list-vertical .g-list-item{float:left;margin:0 0 0 10px;border-top:0}.g-badge{position:relative}.g-badge-link{display:block;overflow:hidden;padding:16px}.promoted>.g-badge-link{height:111px}.g-badge-stats{overflow:hidden}.g-badge-link{background:#fff}.g-badge-link:active{background:#f2f2f2}.g-badge-info{min-height:60px}.g-badge-username{color:#999;font-weight:400;padding:0 65px 4px 0}.g-badge-title{padding:0 0 10px;color:#333}.g-badge-title-disabled{color:#ccc}.g-badge-playing-indicator{color:#f50;font-size:12px}.g-badge-geoblocked-indicator,.g-badge-reposted-indicator{color:#999;font-size:12px}.g-badge-playing-indicator:before{width:12px;height:10px;background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/badge/nowplaying-abecd0c3.png);background-size:100% auto}.g-badge-reposted-indicator:before{margin-top:4px;width:16px;height:8px;background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/badge/reposted-a4945913.png);background-size:100% auto}.g-badge-geoblocked-indicator:before{width:10px;height:10px;background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/badge/geoblocked-39ac6994.png);background-repeat:no-repeat;background-size:10px 10px}.g-badge-snippet{position:absolute;top:12px;right:10px}.g-badge-timecode{position:absolute;top:17px;right:10px;color:#999;font-size:12px}.g-badge-vertical.g-badge-link{margin:0;padding:15px 0;height:auto}.g-badge-vertical .g-badge-info{margin-top:12px}.g-play-indicator{background:#f50;height:3px;position:absolute;top:0;left:0;width:100%;-webkit-transition:-webkit-transform .1s linear;transition:transform .1s linear}.g-header-artwork-info{position:absolute;z-index:1;bottom:12px;left:18px;max-width:95%;margin-right:18px}.g-header-artwork-info-content{margin:0 0 4px}.g-header-artwork-image{position:relative}.g-header-artwork-controls{position:absolute;top:50%;left:0;right:0;height:80px;margin-top:-40px}.g-header-artwork-title{font-size:18px;line-height:24px}.g-header-artwork-title a{color:#fff}.g-header-artwork-text{color:#999;font-size:14px;line-height:19px}.g-play-button{position:absolute;pointer-events:auto;border:1px solid #fff;border-radius:40px;background:rgba(0,0,0,.25) url(https://mobi.sndcdn.com/assets/images/ldpi/player/play_pause_button-e03e9a61.png) 2px -80px no-repeat;background-size:80px 160px;width:80px;height:80px;left:50%;margin-left:-40px;-webkit-transition:background-color .1s ease-out,opacity 2s cubic-bezier(1,.01,.81,1);transition:background-color .1s ease-out,opacity 2s cubic-bezier(1,.01,.81,1)}.g-play-button:active{background-color:rgba(0,0,0,.5)}'.replace(/\/ldpi\//g, '/' + __sc_dpi + '/');document.querySelector('head').appendChild(el); }());</script></head>
<body> <div id="app"> <!-- PLACEHOLDER The placeholder enhances the perceived loading time, it also permits people who are using an outdated browser or who don't have JS enabled to see at least the header and not a total blank page. Once the JS application is started this and everything else in #app gets overwritten --> <style>body{background:#f2f2f2}.header{height:44px;box-shadow:0 0 2px 0 rgba(0,0,0,.5);background:#fff}.header__logo{background:url(https://mobi.sndcdn.com/assets/images/hdpi/logo-881c7ae2.png) 0 50% no-repeat;background-size:128px 16px;width:128px;height:44px;margin:0 auto;display:block}#header__loading{position:absolute;top:14px;right:19px;margin-left:-6px;width:16px;height:16px;background:0 0 no-repeat;background-size:16px 16px}</style> <header id="header" class="header g-z-index-header"> <div class="header__content"> <span class="header__logo"></span> <div id="header__loading" class="sc-hidden"></div> </div> </header> <script>setTimeout(function(){var e=document.getElementById("header__loading");e&&(e.style.backgroundImage=document.getElementById("__sc-loader").content,e.className="")},5e3)</script> <style>.errorVisual.error__javascript{top:112px;width:428px;height:64px;margin-left:-70px;background:url(https://mobi.sndcdn.com/assets/images/ldpi/errors/javascript-a53573d7.png) 0 0 no-repeat;background-size:428px 64px}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx),(min-resolution:144dpi){.errorVisual{background-image:url(https://mobi.sndcdn.com/assets/images/mdpi/errors/javascript-a53573d7.png)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx),(min-resolution:192dpi){.errorVisual{background-image:url(https://mobi.sndcdn.com/assets/images/hdpi/errors/javascript-a53573d7.png)}}</style> <noscript> <div class="errorPage__inner"> <div class="errorVisual error__javascript"></div> <div class="errorMessage"> <h1 class="errorTitle g-font-20">JavaScript is disabled</h1> <p class="errorText g-font-14">To continue, go to Settings and turn it on</p> </div> </div> </noscript> <noscript><footer>
  <div>
    <a href="/terms-of-use" title="Terms of use">"Legal"</a>&nbsp;-
    <a href="/pages/privacy" title="Privacy policy">"Privacy"</a>&nbsp;-
    <a href="/pages/cookies" title="Cookies policy">"Cookies"</a>&nbsp;-
    <a href="/imprint" title="Company information">"Imprint"</a>&nbsp;-
    <a href="/people/directory" title="People Directory">"Directory"</a>
  </div>
</footer>
</noscript> <div id="error__timeout" class="errorPage__inner sc-hidden"> <div class="errorVisual"></div> <div class="errorMessage"> <h1 class="errorTitle g-font-20">Something doesn’t sound right.</h1> <p class="errorText g-font-14">Refresh the page to try again.</p> </div> </div> <script>function displayError(){var e=document.getElementById("error__timeout"),t=document.getElementById("header__loading");e&&t&&(e.className="errorPage__inner",t.className="sc-hidden")}setTimeout(displayError,15e3),window.onerror=displayError</script> </div> <script>var requirejs,require,define;(function(e){function c(e,t){return f.call(e,t)}function h(e,t){var n,r,i,s,o,a,f,l,c,h,p=t&&t.split("/"),d=u.map,v=d&&d["*"]||{};if(e&&e.charAt(0)===".")if(t){p=p.slice(0,p.length-1),e=p.concat(e.split("/"));for(l=0;l<e.length;l+=1){h=e[l];if(h===".")e.splice(l,1),l-=1;else if(h===".."){if(l===1&&(e[2]===".."||e[0]===".."))break;l>0&&(e.splice(l-1,2),l-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((p||v)&&d){n=e.split("/");for(l=n.length;l>0;l-=1){r=n.slice(0,l).join("/");if(p)for(c=p.length;c>0;c-=1){i=d[p.slice(0,c).join("/")];if(i){i=i[r];if(i){s=i,o=l;break}}}if(s)break;!a&&v&&v[r]&&(a=v[r],f=l)}!s&&a&&(s=a,o=f),s&&(n.splice(0,o,s),e=n.join("/"))}return e}function p(t,r){return function(){return n.apply(e,l.call(arguments,0).concat([t,r]))}}function d(e){return function(t){return h(t,e)}}function v(e){return function(t){s[e]=t}}function m(n){if(c(o,n)){var r=o[n];delete o[n],a[n]=!0,t.apply(e,r)}if(!c(s,n)&&!c(a,n))throw new Error("No "+n);return s[n]}function g(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function y(e){return function(){return u&&u.config&&u.config[e]||{}}}var t,n,r,i,s={},o={},u={},a={},f=Object.prototype.hasOwnProperty,l=[].slice;r=function(e,t){var n,r=g(e),i=r[0];return e=r[1],i&&(i=h(i,t),n=m(i)),i?n&&n.normalize?e=n.normalize(e,d(t)):e=h(e,t):(e=h(e,t),r=g(e),i=r[0],e=r[1],i&&(n=m(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},i={require:function(e){return p(e)},exports:function(e){var t=s[e];return typeof t!="undefined"?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:y(e)}}},t=function(t,n,u,f){var l,h,d,g,y,b=[],w;f=f||t;if(typeof u=="function"){n=!n.length&&u.length?["require","exports","module"]:n;for(y=0;y<n.length;y+=1){g=r(n[y],f),h=g.f;if(h==="require")b[y]=i.require(t);else if(h==="exports")b[y]=i.exports(t),w=!0;else if(h==="module")l=b[y]=i.module(t);else if(c(s,h)||c(o,h)||c(a,h))b[y]=m(h);else{if(!g.p)throw new Error(t+" missing "+h);g.p.load(g.n,p(f,!0),v(h),{}),b[y]=s[h]}}d=u.apply(s[t],b);if(t)if(l&&l.exports!==e&&l.exports!==s[t])s[t]=l.exports;else if(d!==e||!w)s[t]=d}else t&&(s[t]=u)},requirejs=require=n=function(s,o,a,f,l){return typeof s=="string"?i[s]?i[s](o):m(r(s,o).f):(s.splice||(u=s,o.splice?(s=o,o=a,a=null):s=e),o=o||function(){},typeof a=="function"&&(a=f,f=l),t(e,s,o,a),n)},n.config=function(e){return u=e,u.deps&&n(u.deps,u.callback),n},define=function(e,t,n){t.splice||(n=t,t=[]),!c(s,e)&&!c(o,e)&&(o[e]=[e,t,n])},define.amd={jQuery:!0}})(),define.unordered=!0,Function.prototype.bind||(Function.prototype.bind=function(e){var t=Array.prototype.slice,n=t.call(arguments,1),r=this,i=function(){},s=function(){if(i.prototype&&this instanceof i){var s=r.apply(new i,n.concat(t.call(arguments)));return Object(s)===s?s:r}return r.apply(e,n.concat(t.call(arguments)))};return i.prototype=r.prototype,s.prototype=new i,s}),function(){var e=!1;this.Class=function(){},Class.extend=function(t){function u(){if(!e&&this.initialize)return this.initialize.apply(this,arguments)}var n,r,i,s;e=!0;var o=new this;e=!1,Object.prototype.toString.call(t)!=="[object Array]"?s=[t]:s=t;for(r=0,i=s.length;r<i;++r){t=s[r];for(n in t)o[n]=t[n]}return u.prototype=o,u.prototype.constructor=u,u.extend=arguments.callee,u}}(),
define("application",["require","exports","module","$","underscore","api-wrapper","views/app","lib/backbone","config","lib/error-reporting","lib/connect","lib/helpers/client-environment-helper","lib/event-bus","lib/deferred-loader","lib/persistent-store","lib/play-manager","lib/pointer-events","collections/related-sounds","router","shared/config/route-builders","shared/config/routes","lib/tracking/tracking-core","lib/url","models/user","lib/console-box"],function(e,t,n){function C(){E.destroy()}function k(){var e,t,n=S.getQueryParams(window.location.search)["rollouts.internal_qa"]==="true";e=new y,e.setRoutes(w,b),t=new o({el:"#app"}),E.initialize(),a.set("internal_qa",n).set("router",e).set("me",L()).set("appView",t.render()),u.history.start({pushState:!0})}function L(){var e=new x;return e.on("change",function(){T.set("me",i.extend({lastFetchTime:e.lastFetchTime},e.attributes))}),e}function A(e){if(!l.isLoggedIn())return h.once("connect:login",A),r.Deferred().reject();var t=a.get("me"),n=T.get("me"),i=arguments[1],s;return t.baseUrl="me",e===undefined&&(e=2),i||(i=r.Deferred().done(function(){x.instances.add(t),h.trigger("connect:hasUserData")})),n?(s=n.lastFetchTime||Date.now(),delete n.lastFetchTime,t.lastFetchTime=s,t.set(n),i.resolve()):t.fetch().done(i.resolve).fail(function(t){t.status===401?(l.logout(),i.reject(t)):e?A(e-1,i):i.reject(t)}),i}function O(){var e=document.createElement("iframe");e.className="sc-visuallyhidden",e.src="/"+c.dpi+".html",document.body.appendChild(e)}var r=e("$"),i=e("underscore"),s=e("api-wrapper"),o=e("views/app"),u=e("lib/backbone"),a=e("config"),f=e("lib/error-reporting"),l=e("lib/connect"),c=e("lib/helpers/client-environment-helper").device,h=e("lib/event-bus"),p=e("lib/deferred-loader"),d=e("lib/persistent-store"),v=e("lib/play-manager"),m=e("lib/pointer-events"),g=e("collections/related-sounds"),y=e("router"),b=e("shared/config/route-builders"),w=e("shared/config/routes"),E=e("lib/tracking/tracking-core"),S=e("lib/url"),x=e("models/user"),T=new d("auth"),N=n.exports={start:function(t,n){a.set("app_version",t),f.initialize(),m.init(),O(),v.setFallbackSource(g,function(e){return y.getRoute("listen",e)}),s.init(),n&&p.setPackageMap(n),A().always(k),r(window).on("unload",C)}};window.debugMessage=function(){}}),
define("$",["require","exports","module","underscore","vendor/underscore.deferred/underscore.deferred","domify","lib/dollar/dollar-ajax","lib/dollar/dollar-attrs","lib/dollar/dollar-events","lib/dollar/dollar-manipulation","lib/dollar/dollar-matches","lib/dollar/dollar-traversal"],function(e,t,n){var r=e("underscore"),i=e("vendor/underscore.deferred/underscore.deferred"),s=e("domify"),o=e("lib/dollar/dollar-ajax"),u=e("lib/dollar/dollar-attrs"),a=e("lib/dollar/dollar-events"),f=e("lib/dollar/dollar-manipulation"),l=e("lib/dollar/dollar-matches"),c=e("lib/dollar/dollar-traversal"),h=n.exports=function p(e,t){if(this instanceof h){var n;return t=t||document,e instanceof p||e instanceof Array?n=e:e instanceof HTMLElement||e===window||e===document?n=[e]:e instanceof HTMLCollection||e instanceof NodeList?n=r.toArray(e):typeof e=="string"&&e.charAt(0)==="<"?n=r.toArray([s(e)[0]]):typeof e=="string"?n=r.toArray(t.querySelectorAll(e)):n=[],[].forEach.call(n,function(e,t){this[t]=e},this),this.length=n.length,this.splice=Array.prototype.splice,this}return new h(e,t)};h.prototype.each=function(e,t){for(var n=0;n<this.length;n++)e.call(t||this[n],this[n],n);return this},r.extend(h.prototype,u,a.prototypeMethods,f,c),h.Event=a.Event,h.matches=l,h.noop=function(){},h.ajax=o,["get","post","getJSON"].forEach(function(e){h[e]=o[e]}),h.getScripts=window.__sc_getScripts,delete window.__sc_getScripts,h.Deferred=i.Deferred,h.when=i.when,h.Callbacks=i.Callbacks}),
define("underscore",["require","exports","module","vendor/underscore"],function(e,t,n){var r=e("vendor/underscore");r.mixin({proxy:function(e,t){Array.prototype.slice.call(arguments,2).forEach(function(n){if(typeof e[n]!="function")throw new Error("Proxy source has no method named "+n);t[n]=e[n].bind(e)})},constant:function(e){return function(){return e}},deepExtend:function(e){var t=Array.prototype.slice;return r.each(t.call(arguments,1),function(t){if(!t)return;for(var n in t)r.isArray(e[n])&&r.isArray(t[n])?e[n]=r.union(e[n],t[n]):r.isObject(e[n])&&r.isObject(t[n])?e[n]=r.deepExtend({},e[n],t[n]):e[n]=t[n]}),e}}),n.exports=r}),
define("api-wrapper",["require","exports","module","$","underscore","config","lib/url"],function(e,t,n){function c(e){var t=e.url,n=h(t),r=p(t);return!n&&!r?e:(n&&(t=s.get("api_host")+t.replace(a,"")),e.crossDomain=!0,e.url=o.modify(t,{scheme:"https",query:{client_id:s.get("client_id"),format:"json",app_version:s.get("app_version"),stage:s.get("stage")||null}}),e)}function h(e){return!u.test(e)||e.indexOf(s.get("api_host"))===0}function p(e){var t=new RegExp([s.get("bff_api_host"),s.get("api_web_host")].join("|"));return t.test(e)}var r=e("$"),i=e("underscore"),s=e("config"),o=e("lib/url"),u=/^https?/,a=/^https?:\/\/.+?\//,f={likes:"favorites",groups:"groups",people:"users",sound:"track",sounds:"tracks"},l=n.exports={init:i.once(function(){var e=r.ajax;r.ajax=function(t){return e(c(t))}}),toAPIResource:function(e){return f[e]||e}}}),
define("views/app",["require","exports","module","$","underscore","lib/helpers/client-environment-helper","config","lib/event-bus","lib/layouts/fullheight","lib/views/loading","lib/play-manager","lib/support","lib/view","lib/helpers/viewport-helper","views/app.css","views/app.tmpl"],function(e,t,n){function y(e){if(e.defaultPrevented||e.target.target)return;e.originalEvent.preventDefault(),o.get("router").navigate(e.currentTarget.getAttribute("href"),!0)}function b(e){var t=this.getElement("loading");this.$el.toggleClass("show-throbber",e),e?(this._loadingView=new l({size:"fullscreen"}),this.addSubview(this._loadingView,"loading"),t.addClass("g-z-index-app-loading"),t[0].appendChild(this._loadingView.render().el)):this.addDeferred(i.delay(function(){this._loadingView._dispose(),this.removeSubview(this._loadingView),t.removeClass("g-z-index-app-loading")}.bind(this),m))}function w(){this.toggleState("show-throbber",!0)}function E(e){this.toggleState("show-throbber",!1),x.call(this,e),T.call(this,e)}function S(e){e.fatal&&o.get("router").apply("error",{resource_id:e.id}),this.toggleState("show-throbber",!1),window.console.error(e.get("message")||e.get("title"))}function x(e){var t=e&&e.layout instanceof f,n={iPhone4Safari:!c.iOS7&&u.iPhone4&&s.safari,iPhone5Safari:!c.iOS7&&u.iPhone5&&s.safari};t?i.each(n,function(e,n){e&&this.$el.addClass(n,t)},this):i.each(n,function(e,t){this.$el.removeClass(t)},this),v.hideAddressBar(e)}function T(e){this.toggleState("display-mini-player",e.layoutName!=="listen"&&h.hasCurrentSound())}function N(e){this.toggleState("hide-upsell",e)}var r=e("$"),i=e("underscore"),s=e("lib/helpers/client-environment-helper").browser,o=e("config"),u=e("lib/helpers/client-environment-helper").device,a=e("lib/event-bus"),f=e("lib/layouts/fullheight"),l=e("lib/views/loading"),c=e("lib/helpers/client-environment-helper").os,h=e("lib/play-manager"),p=e("lib/support"),d=e("lib/view"),v=e("lib/helpers/viewport-helper"),m=500,g=n.exports=d.extend({css:e("views/app.css"),className:"app",template:e("views/app.tmpl"),states:{"display-mini-player":"app__displayMiniPlayer","hide-upsell":"app__hideUpsell","show-throbber":b},element2selector:{loading:".app__loading",content:"#content"},setup:function(){r(document).delegate('a[href^="/"]',"click",y),v.hideAddressBar(),a.on("layout:changing",w,this).on("layout:change",E,this).on("upsell:hide upsell:slide",N,this).on("exception",S,this)},renderDecorate:function(){p.nativeScroll&&(this.nativeScrollEl=this.$("#content"),v.enableNativeScroll(this.nativeScrollEl))}})}),
define("lib/backbone",["require","exports","module","backbone","$","underscore","lib/mixin"],function(e,t,n){var r=e("backbone"),i=e("$"),s=e("underscore"),o=r.Collection,u=e("lib/mixin"),a=r.Model,f=o.prototype,l=a.prototype,c=r.History.prototype;n.exports=r,r.$=i,c.loadUrl=function(){var e=/\/*(?:[#?].*)?$/;return function(t){return t=this.fragment=this.getFragment(t).replace(e,""),s.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})}}(),function(){function e(e,t){return function(){delete e._requests[t]}}function t(t){return function(o){var u;o=o?s.clone(o):{},o=s.extend({_url:o.url||s.result(this,"url"),jqAjax:!1,saveRequest:!1,onlyIfNeverFetched:!1},o),this instanceof r.Collection&&!this.lastFetchTime&&!o.hasOwnProperty("reset")?(o.reset=!0,o.add=!0):this.lastFetchTime&&!o.hasOwnProperty("remove")&&(o.remove=!1),this._requests||(this._requests={}),u=this._requests[o._url];if(!u){if(o.onlyIfNeverFetched&&this.lastFetchTime)return i.Deferred().resolve({next_href:this.next_href});u=this._requests[o._url]=o.jqAjax?i.ajax(o):t.call(this,o),u[o.saveRequest?"fail":"always"](e(this,o._url))}else o.success&&u.done(o.success.bind(o,this)),o.error&&u.fail(o.error);return u}}l.fetch=t(l.fetch),f.fetch=t(f.fetch)}(),r.Model.extend=r.Collection.extend=r.View.extend=function(e){return function(){var t=s.toArray(arguments),n=0,r,i;return r=t.filter(function(e,t){if(e instanceof u)return n=t+1,!0}),i=e.apply(this,t.slice(n)),r.forEach(function(e){e.applyTo(i.prototype)}),i}}(r.View.extend)}),
define("config",["require","exports","module","lib/mixins/observing","underscore","lib/store","lib/url"],function(e,t,n){var r=e("lib/mixins/observing"),i=e("underscore"),s=e("lib/store"),o=e("lib/url"),u=n.exports=new s;r.applyTo(u);var a={client_id:"iZIs9mchVcX5lhVRyQGGAYlNPVldzAoX",v2_host:"https://soundcloud.com"};i.each(i.defaults(a,{app_version:null,app_root:o.parse("https://m.soundcloud.com").directory||"/",api_host:"https://api.soundcloud.com/",bff_api_host:"https://api-mobileweb.soundcloud.com/",api_web_host:"https://api-mobi.soundcloud.com/",stage:"",appView:null,client_application_id:65097,eventgateway_tracking_url:"https://l9bjkkhaycw6f8f4.soundcloud.com",airbrake_project_key:"31c8ab0643cee32c9585b286e90e9d23",airbrake_project_id:"148573",airbrake_rollout:.01,me:null,restoreToSound:null,playHistoryLength:50,promotedContentServer:"https://promoted.soundcloud.com",promotedContentAccessToken:"mobileweb",oauth_token:null,router:null,availablePlayManagerSource:null,wisHost:"https://wis.sndcdn.com",internal_qa:!1}),function(e,t){u.set(t,e,{silent:!0})}),u.finalize()}),
define("lib/error-reporting",["require","exports","module","vendor/airbrake-js/airbrake-js","config"],function(e,t,n){function f(){return Math.random()<i.get("airbrake_rollout")}function c(e){return e.errors.some(function(e){return e.backtrace.some(function(e){return s.test(e.file)})})}function h(){if(a)return;if(f())try{u=new r({projectId:i.get("airbrake_project_id"),projectKey:i.get("airbrake_project_key")}),u.addFilter(function(e){try{return c(e)?e:null}catch(t){return e}}),u.addFilter(function(e){var t=e.context;return t.version=i.get("app_version"),t.user=t.user||{},t.user.id=String(i.get("me").id||"anonymous"),e}),o.forEach(function(e){u.notify(e)})}catch(e){"error"in window.console&&window.console.error("Could not initialize airbrake",e)}a=!0,o=[]}var r=e("vendor/airbrake-js/airbrake-js"),i=e("config"),s=/\/\/(m\.soundcloud\.dev|m\.soundcloud\.com|mobi\.sndcdn\.com)/,o=[],u=null,a=!1,l=n.exports={initialize:h,notify:function(e){u?u.notify(e):a||o.push(e)}}}),
define("lib/connect",["require","exports","module","$","underscore","lib/backbone","config","lib/event-bus","lib/url","lib/persistent-store"],function(e,t,n){function b(e,t,n){var r=window.screenX+(window.outerWidth-t)/2,i=window.screenY+(window.outerHeight-n)/2;return window.open(e,"connectWithSoundCloud",["location=1","width="+t,"height="+n,"top="+i,"left="+r,"toolbar=no","scrollbars=yes"].join(","))}var r=e("$"),i=e("underscore"),s=e("lib/backbone"),o=e("config"),u=e("lib/event-bus"),a=e("lib/url"),f=e("lib/persistent-store"),l=150,c=o.get("app_root")+"callback.html",h="oauth_token",p="non-expiring",d=new f("anonymous-user"),v=new f("auth"),m,g;v.on(h,function(e){y.setAuthToken(e.current)});var y=n.exports=i.extend({},s.Events,{setAuthToken:function(e){v.set(h,e)},getAuthToken:function(){return v.get(h)},isLoggedIn:function(){return!!this.getAuthToken()},login:function(){var e;return g?m&&!m.closed&&m.focus&&m.focus():(g=r.Deferred().fail(function(){g=null}),this.isLoggedIn()?g.resolve():(e=a.stringify({host:o.get("api_host").replace("api.",""),path:["connect"],query:{client_id:o.get("client_id"),response_type:"token",scope:p,display:"next",redirect_uri:location.protocol+"//"+location.host+c}}),m=b(e,450,500),function t(){(!m||m.closed)&&!y.isLoggedIn()?g.reject():m.closed?u.once("connect:hasUserData",g.resolve).trigger("connect:login","login"):setTimeout(t,l)}())),g},logout:function(){v.reset(),u.trigger("connect:logout","logout")},currentUserId:function(){return o.get("me").id},getUserIdentifier:function(){var e;return y.isLoggedIn()?e=y.currentUserId():(e=d.get("id"),e||(e=Math.floor(Math.random()*1e3),d.set("id",e))),e}})}),
define("lib/helpers/client-environment-helper",["require","exports","module"],function(e,t,n){function f(){var e;return r.iOS&&(e=o.match(/\d+_\d+(_\d+)? like mac os x/),e=e&&parseFloat(e[0].replace("_",".").substr(0,3))),e||-1}var r={},i={},s={},o=navigator.userAgent.toLowerCase(),u=window.devicePixelRatio,a;a=function(e){return e.test(o)},i.ie10=a(/iemobile\/10\.0/),r.devicePixelRatio=u,r.dpi=u>=2||i.ie10?"hdpi":u>1?"mdpi":"ldpi",r.iOS=a(/iphone|ipod/),r.android=a(/android/),r.blackberry=a(/bb10/),r.iPhone4=r.iOS&&screen.availWidth===320&&screen.availHeight===460,r.iPhone5=r.iOS&&r.highDPI&&screen.availWidth===320&&screen.availHeight===548,r.playstation=a(/playstation/),r.amazon=!r.playstation&&a(/silk|kindle|amazon/),r.supportsNativeApp=r.iOS||r.android||r.blackberry||r.amazon,r.supportsPulseApp=r.iOS||r.android,r.brand=r.iOS?"iOS":r.amazon?"amazon":r.android?"android":r.blackberry?"blackberry":"",i.backingStoreRatio=function(){var e=document.createElement("canvas"),t=e.getContext&&e.getContext("2d");if(t)return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),i.chrome=a(/chrome|crios\//),i.safari=!i.chrome&&a(/Version\/.+ Mobile\/.+ Safari\//i),i.firefox=a(/mobile.* firefox/),s.iOS7=r.iOS&&a(/os 7_(.*) like mac os x/),s.iOSVersion=f(),t.device=r,t.browser=i,t.os=s}),
define("lib/event-bus",["require","exports","module","underscore","lib/backbone","config","lib/persistent-store"],function(e,t,n){var r=e("underscore"),i=e("lib/backbone"),s=e("config"),o=e("lib/persistent-store"),u=new o("broadcast"),a=s.get("app_id"),f,l,c;u.on("broadcast",function(e){var t=e.current;t&&t.appId!==a&&c.call(h,t)});var h=n.exports=r.extend({},i.Events,{broadcast:function(e,t){var n,r;return typeof e=="string"?(n=[].slice.call(arguments,1),t=e,e={}):n=[].slice.call(arguments,2),r=l(t,n),u.set("broadcast",r),e.excludeThis||c.call(this,r),this}});l=function(e,t){return{type:e,timestamp:Date.now(),appId:a,args:t}},c=function(e){this.trigger.apply(this,["broadcast:"+e.type].concat(e.args||[]))}}),
define("lib/deferred-loader",["require","exports","module","underscore","$"],function(e,t,n){var r=e("underscore"),i=e("$"),s={},o=n.exports={setPackageMap:function(e){e._prefix&&r.each(e,function(t,n){n.charAt(0)!=="_"&&(e[n]=e._prefix+t)}),this.packageMap=e},loadLayout:function(t){var n=this.packageMap,r=n&&n[t],u,a=s[t],f,l;return a?a:r?(u=i.Deferred(),f=function(){u.resolve(e(t))},l=document.createElement("script"),r.indexOf("mobi.sndcdn.com")!==-1&&(l.crossOrigin="anonymous"),l.src=r,l.onerror=u.reject,l.addEventListener&&l.addEventListener("load",f,!1),document.getElementsByTagName("head")[0].appendChild(l),a=s[t]=u.promise(),a):o.load(t)},load:function(t){var n=i.Deferred();return r.isArray(t)||(t=[t]),e(t,n.resolve),n},get:function(t){return e(t)}}}),
define("lib/persistent-store",["require","exports","module","lib/store","lib/mixins/persistent","lib/mixins/observing"],function(e,t,n){var r=e("lib/store"),i=e("lib/mixins/persistent"),s=e("lib/mixins/observing"),o=n.exports=r.extend();i.applyTo(o.prototype),s.applyTo(o.prototype)}),
define("lib/play-manager",["require","exports","module","underscore","lib/backbone","lib/collection","config","lib/futures"],function(e,t,n){function c(e,t){if(!e||e!==this.getCurrentSound())return;t.seek!=null&&e.seek(t.seek),e.play(t),e.playlist&&e===this.source&&(x.call(this,e.playlist,t&&t.restoreUrl),N.call(this,0))}function h(){var e=o.get("router").getLayoutInfo();return{args:e.args,layoutName:e.layoutName,url:window.location.href.replace(/^https?:\/\/[^\/]+\//,"")}}function p(){var e=this.source;e&&(this.sourceIsCollection=e instanceof s,this.sourceIsCollection&&(this.listenTo(e,"add",d).listenTo(e,"remove",v).listenTo(e,"reset",m),e.isPopulated()||e.fetch()),e.hold())}function d(e,t){var n=t.indexOf(e);n<=this.sourceCursor&&N.call(this,this.sourceCursor+1)}function v(e,t,n){this.sourceCursor&&n.index<=this.sourceCursor&&N.call(this,this.sourceCursor-1)}function m(){N.call(this,-1)}function g(e){e.sound.release()}function y(e){e.sound.hold()}function b(e,t){t[e]("finish",w,this)}function w(e){var t=e.sound;this.playNext({userInitiated:!1}),t.playlist&&t===t.playlist.getLastSound()&&t.playlist.rewind(0)}function E(){if(this.FallbackSource){var e=this.getCurrentSound(),t;if(e&&e.isPublic()){t=new this.FallbackSource(null,{resource_id:e.id,resource_type:e.resource_type});if(this.source!==t)return x.call(this,t,this.fallbackRestoreFn(e)),!0;t.release()}}return x.call(this,null),!1}function S(e,t){return t instanceof s?e>-1?(t.audibleAt||t.at).call(t,e):undefined:e===0?t:undefined}function x(e,t,n){var r=this.source;if(r!==e){if(e&&!e.isAudioSource&&!1)throw new Error("The source of play manager needs to implement `AudioSource` interface.");return this.source=e,this.restoreUrl=t,p.call(this),N.call(this,-1),r&&(this.stopListening(r),r.release()),(!n||!n.silent)&&this.trigger("change:source",this.source),!0}return!1}function T(e,t,n){var r=e||u.defer(),i=t==null?f:t,s,o;if(r.state()!=="pending")return;this._fetchDeferred&&this._fetchDeferred!==r&&this._fetchDeferred.reject(),this._fetchDeferred||(this._fetchDeferred=r,r.always(function(){this._fetchDeferred=null}.bind(this)));if(this.historyCursor<this.history.length-1)r.resolve(this.history[this.historyCursor+1].sound,{historyCursor:this.historyCursor+1});else if(this.source&&this.sourceIsCollection){o=-1;while(!s&&this.sourceCursor+ ++o<this.source.length)s=this.sourceCursor+o>-1&&S(this.sourceCursor+o,this.source),s=s&&(o===0?s.getNextSound():s.getFirstSound());s?r.resolve(s,{sourceCursor:this.sourceCursor+o,initialFallback:!!n}):!this.source.isFullyPopulated()&&i?this.source.fetch({add:!0,remove:!1}).fail(r.reject).done(T.bind(this,r,i-1)):E.call(this)?T.call(this,r,i,!0):r.resolve(undefined)}else this.source?(s=this.sourceCursor===-1?this.source.getFirstSound():this.source.getNextSound(),s?r.resolve(s,{sourceCursor:0}):(E.call(this),T.call(this,r,i,!0))):r.reject();return r}function N(e){typeof e=="number"?this.sourceCursor=e:this.sourceIsCollection?this.sourceCursor=this.indexOfSoundInSource(e,this.source):this.sourceCursor=0}function C(e,t){var n=this.getCurrentSound(),r=this.historyCursor,i;if(r===e)return;n&&b.call(this,"off",n),this.historyCursor=e,i=this.getCurrentSound(),i&&b.call(this,"on",i),(!t||!t.silent)&&this.trigger("change:currentSound",{isGoingForward:e>r,prev:n,current:i})}function k(e,t,n){var r=n.getSounds(),i=r.indexOf(e),s=r.indexOf(t),o=i<s,u=o?0:s+1,a=i+1;o&&this.clearHistory(),r.slice(u,a).forEach(function(e){this.addToHistory(e,n)},this)}function L(e,t,n,i){if(t instanceof L)return t;this.sound=e,this.layoutInfo=r.clone(n),this.sourceInfo=t&&t.getSourceInfo(),this.restoreUrl=i}var r=e("underscore"),i=e("lib/backbone"),s=e("lib/collection"),o=e("config"),u=e("lib/futures"),a=3,f=3,l=n.exports=r.extend({},i.Events,{history:[],historyCursor:-1,source:null,sourceCursor:-1,initialSourcePriority:-Infinity,layoutInfo:{},restoreUrl:null,FallbackSource:null,_fetchDeferred:null,_sessionPlays:0,setInitialSource:function(e,t,n){t=t||0,this.sourceCursor===-1&&t>this.initialSourcePriority&&(this.initialSourcePriority=t,this.saveLayout(),x.call(this,e,n))},unsetInitialSource:function(e){this.sourceCursor===-1&&this.source===e&&(x.call(this,null),this.initialSourcePriority=-Infinity)},indexOfSoundInSource:function(e,t){var n=-1;return t instanceof s?(t.any(function(r,i){var s=S(i,t);if(s&&s.getSoundIndex(e)>-1)return n=i,!0}),n):t.getSoundIndex(e)},hasPrevSound:function(){return this.historyCursor>0},hasNextSound:function(){var e=this.source,t=this.getCurrentSound();return!!(this.historyCursor<this.history.length-1||e&&this.sourceIsCollection&&(!e.isFullyPopulated()||e.length&&this.sourceCursor<e.length-1)||e&&!this.sourceIsCollection&&(this.sourceCursor<0?e.getFirstSound():e.getNextSound())||t&&t.isPublic()&&this.FallbackSource)},hasCurrentSound:function(){return!!this.getCurrentSound()||!!this.hasNextSound()},getCurrentSound:function(){var e=this.history[this.historyCursor];return e&&e.sound},getPrevSound:function(){return this.getSoundFromHistory(this.historyCursor-1)},getSoundFromHistory:function(e){var t=this.history[e];return t&&t.sound},addToHistory:function(e,t,n){var r,i=e!==this.getCurrentSound(),s,u,a;r=this.historyCursor+(i?1:0),s=o.get("playHistoryLength"),a=new L(e,t,this.layoutInfo,this.restoreUrl),this.history.splice(r).forEach(g),this.history.push(a),y(a),u=Math.max(0,this.history.length-s),u&&(this.history.splice(0,u).forEach(g),this.historyCursor-=u),C.call(this,this.history.length-1,n)},backfillHistoryFromPlaylist:function(e,t){var n=t.getSoundIndex(e),r=t.soundsCollection,i,s,o;if(n>0)for(s=0,o=n;s<=o;s++)i=r.at(s),i&&this.addToHistory(i,t,{silent:!0});N.call(this,l.history.length-1)},reset:function(){var e=this.getCurrentSound();e&&e.pause(),this.clearHistory(),this._sessionPlays=0,this.layoutInfo={},this._fetchDeferred&&this._fetchDeferred.reject(),x.call(this,null),this.FallbackSource=this.fallbackRestoreFn=this.restoreUrl=null,this.initialSourcePriority=-Infinity},clearHistory:function(){this.history.forEach(function(e){e.sound.release()}),C.call(this,-1),this.history=[]},play:function(e,t){t=t||{};var n=t.keepSource&&this.source||t.source||e.playlist||e,r=e.getCurrentSound(),i=this.getCurrentSound(),s=i!==r,o;o=x.call(this,n,t.restoreUrl,{silent:!0}),N.call(this,r),s&&this.pauseCurrent(t),(o||s)&&k.call(this,r,i,n),o&&this.trigger("change:source",n),this.playCurrent(t)},playSource:function(e,t){t=t||{},x.call(this,e,t.restoreUrl)?this.playNext(t):this._fetchDeferred||this.playCurrent(t)},toggle:function(e,t){e.isPlaying()?this.pause(e,t):this.play(e,t)},pause:function(e,t){e.pause(t)},playCurrent:function(e){var t=this.getCurrentSound();t?(e=e||{},c.call(this,t,e)):(l.saveLayout(),l.playNext(e))},pauseCurrent:function(e){var t=this.getCurrentSound();t&&t.pause(e)},toggleCurrent:function(e){var t=this.getCurrentSound();t?t.toggle(e):this.playCurrent(e)},playNext:function(e){return e=r.extend({seek:0},e),this.pauseCurrent(),T.call(this).then(function(t,n){var r;if(t){n.historyCursor!=null?C.call(this,n.historyCursor):(n.sourceCursor!=null&&(N.call(this,n.sourceCursor),r=this.source,this.sourceIsCollection&&n.sourceCursor>=this.source.length-a&&!this.source.isFullyPopulated()&&this.source.fetch({add:!0,remove:!1})),this.addToHistory(t,r));if(t.isBlocked()&&!e.userInitiated)return l.playNext(e);this.playCurrent(e),n.initialFallback&&this.trigger("fallback")}}.bind(this))},playPrev:function(e){e=r.extend({seek:0},e),this.getPrevSound()&&(this.pauseCurrent(),C.call(this,this.historyCursor-1),this.playCurrent(e))},fetchNextSound:T,setFallbackSource:function(e,t){this.FallbackSource=e,this.fallbackRestoreFn=t},restoreState:function(){var e=this.getCurrentRestoreUrl(),t=this.getCurrentSound(),n,r=o.get("router");e?(n=t.playlist||t,r.navigate(e,{trigger:!0}),o.set("restoreToSound",n.resource_type+n.resource_id)):t&&r.navigateToRoute("listen",[t],{trigger:!0})},getCurrentRestoreUrl:function(){var e=this.history[this.historyCursor];return e&&e.restoreUrl||""},getCurrentMetadata:function(){return this.history[this.historyCursor]},saveLayout:function(){this.layoutInfo=h()}})}),
define("lib/pointer-events",["require","exports","module","underscore","lib/support"],function(e,t,n){function s(){if(i.pointerEvents)return;o("mouseup MSPointerUp touchend",u("pointerup")),o("mousedown MSPointerDown touchstart",u("pointerdown")),o("mousemove MSPointerMove touchmove",u("pointermove")),o("mouseout MSPointerLeave touchleave",u("pointerleave"))}function o(e,t){e.split(" ").forEach(function(e){document.body.addEventListener(e,t)})}function u(e){return function(t){a(t,e)}}function a(e,t){var n,r;n=document.createEvent("CustomEvent"),n.initCustomEvent(t,!0,!0,{}),n.maskedEvent=e,r=f(e),n.x=r.x,n.y=r.y,e.target.dispatchEvent(n)}function f(e){var t=e.type,n,r;return t.indexOf("touch")===0?(n=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY):t.indexOf("mouse")===0?(n=e.clientX+window.pageXOffset,r=e.clientY+window.pageYOffset):(n=e.x,r=e.y),{x:n,y:r}}var r=e("underscore"),i=e("lib/support");n.exports={init:r.once(s)}}),
define("collections/related-sounds",["require","exports","module","lib/mixins/audio-source","lib/collection","models/sound"],function(e,t,n){function a(){return Math.floor(Math.random()*1e8)}var r=e("lib/mixins/audio-source"),i=e("lib/collection"),s=e("models/sound"),o=null,u=n.exports=i.extend(r,{model:s,defaults:{resource_id:null,resource_type:"sound"},getSourceInfo:function(){return{type:"recommender",version:this.audioSourceVersion,resourceId:this.options.resource_id,resourceType:this.options.resource_type}},getSounds:function(){return this.models},parse:function(e){return this.audioSourceVersion=e.variant||"no_version",i.prototype.parse.apply(this,arguments)},baseUrl:function(){o||(o=a());var e={user_id:null,anon_user_id:o};return this.getEndpointUrl("relatedTracks",{id:this.options.resource_id},e)}},{hashFn:function(e,t){return t.resource_id}})}),
define("router",["require","exports","module","$","underscore","lib/backbone","config","lib/event-bus","lib/deferred-loader","lib/tracking/tracking-core","lib/url"],function(e,t,n){function v(e,t){var n,r;this.currentLayout&&e!==this.currentLayout&&this.currentLayout.dispose(),this.currentLayout=e,n=this._currentLayoutInfo=e.getChangeEventData(t),p.resolve(),r=o.get("appView").$("#content")[0],e.render(),r.firstElementChild!==e.el&&(r.innerHTML="",r.appendChild(e.el)),f.pageview(n.layoutName),u.trigger("layout:change",n)}var r=e("$"),i=e("underscore"),s=e("lib/backbone"),o=e("config"),u=e("lib/event-bus"),a=e("lib/deferred-loader"),f=e("lib/tracking/tracking-core"),l=e("lib/url"),c,h,p=r.Deferred();f.deferRequests(p);var d=n.exports=s.Router.extend({currentLayout:null,_currentLayoutInfo:null,setRoutes:function(e,t){c=e,h=t,e.forEach(function(e){this.route(e.route,e.name,e.handler)}.bind(this))},navigateToRoute:function(e,t,n){var r=[e],i;t&&t.length&&(r=r.concat(t)),i=d.getRoute.apply(d,r),this.navigate(i,n)},navigate:function(e,t){t&&t.hard?window.location.href=e:s.Router.prototype.navigate.call(this,e,t)},getQueryParams:function(e){return l.getQueryParams(e)},getQueryString:function(e){return l.getQueryString(e)},apply:function(e,t){u.trigger("layout:changing");var n="layouts/"+e,r;r=function(){delete this.setupDeferred}.bind(this),this.setupDeferred&&this.setupDeferred.fail(),this.setupDeferred=a.loadLayout(n).fail(r).done(function(n){var i=this.currentLayout instanceof n?this.currentLayout:new n;i.setArgs(t),this.setupDeferred=i.setup(t).done(v.bind(this,i,e,t)).always(r)}.bind(this))},getLayoutInfo:function(){return this._currentLayoutInfo},getRouteInfo:function(e){return i.find(c,function(t){return t.name===e})},goToSoundPage:function(e){e&&this.navigate(d.getRoute("listen",e),{trigger:!0})},unauthenticated:function(){var e=l.parse(window.location.href).relative;this.navigateToRoute("signin",e,{replace:!0,trigger:!0})}},{getRoute:function(e){var t,n;t=i.find(c,function(t){return t.name===e});if(!!t&&!!(n=h[e]))return n.apply(this,[].slice.call(arguments,1))}})}),
define("shared/config/route-builders",["require","exports","module","underscore","shared/lib/url"],function(e,t,n){function o(e){return r.isFunction(e.toJSON)?e.toJSON():e}function u(e){return e.replace(/^https?:.+?\w\//,"/")}function a(e){return e==="sets"||e==="sounds"||e==="tracks"}var r=e("underscore"),i=e("shared/lib/url"),s=n.exports={listen:function(e){e=o(e.track||e);var t={},n=e._playlist;return e.user&&e.user.permalink&&e.permalink?t.path="/"+e.user.permalink+"/"+e.permalink+(e.secret_token?"/"+e.secret_token:""):e.permalink_url&&(t.path=u(e.permalink_url)),t.path&&n&&n.permalink_url&&(t.query={"in":u(n.permalink_url).substr(1)}),i.stringify(t)},playlist:function(e){return e=o(e),e.user?"/"+e.user.permalink+"/sets/"+e.permalink+(e.secret_token?"/"+e.secret_token:""):u(e.permalink_url)},user:function(e,t){return t=a(t)?"posts":t,e=o(e),"/"+e.permalink+(t?"/"+t:"")},root:function(){return"/"},search:function(e,t){return"/"+i.stringify({path:["search",e],query:{q:t}})},mobile:function(e){return"/mobile"+(e?"/"+e:"")},emailUnsubscribedPage:function(){return"/pages/unsubscribed"},peopleDirectory:function(e){return"/people/directory"+(e?"/"+e:"")},pages:function(e){return"/"+e},pagesPages:function(e){return"/pages/"+e},pagesWithVersions:function(e){return"/pages/"+e},pressPages:function(e){return"/pages/"+e},consumerPremium:function(){return"/go"},notImplemented:function(e){return"/"+e},signin:function(e){return"/"+i.stringify({path:["signin"],query:{redirect_url:e}})}}}),
define("shared/config/routes",["require","exports","module","shared/vendor/routeabout/routeabout"],function(e,t,n){function s(e){var t=r.create({includeQueryParams:!0,caseInsensitive:!1,definitions:{user:"[a-zA-Z0-9_-]{1,255}",sound:"[a-zA-Z0-9_-]{1,255}",playlist:"[a-zA-Z0-9_-]{1,255}",id:"[0-9]+",secretToken:"s-[a-zA-Z0-9]{5}",group:"[a-zA-Z0-9_-]{1,255}",exploreCategory:"[^/]+",tag:".+",conversationId:"[0-9]+:(?:[0-9]+|system)",code:"\\w+",planName:"pro(?:-unlimited)?",metric:"\\w+",date:"[^/]+"}});return e.forEach(function(e){var n=e.redirect;typeof e.route=="string"&&(e.route=t(e.route)),n&&(e.handler=function(){var e=typeof n=="string"?n:n.apply(this,arguments);return this.navigate(u(e,this.getQueryString()),{replace:!0,trigger:!0})}),e.requiresLogin&&(e.handler=o(e.handler))}),e}function o(e){return function(){return this.isLoggedIn()?e.apply(this,arguments):this.unauthenticated()}}function u(e,t){return t?e.indexOf("?")>-1?e+"&"+t:e+t:e}var r=e("shared/vendor/routeabout/routeabout"),i=n.exports=s([{name:"404",route:/(.*)/,handler:function(e){var t=e.replace(/[,.)]+$/,"");return e!==t?this.navigate("/"+t,{trigger:!0,replace:!0}):this.apply("error",{type:"404"})}},{name:"listen",route:":user/:sound(?:/:secretToken)?",handler:function(e,t,n,r,i){return this.apply("listen",{userPermalink:e,soundPermalink:t,secretToken:n,forUser:r,commentId:parseInt(i,10)||undefined})}},{name:"playlist",route:":user/sets/:playlist(?:/:secretToken)?",handler:function(e,t,n,r){return this.apply("playlist",{userPermalink:e,playlistPermalink:t,secretToken:n,forUser:r})}},{name:"user",route:":user(?:/(likes|followers|following|comments|sets|albums|groups|info|tracks))?",handler:function(e){return this.apply("user-profile",{userPermalink:e})}},{name:"root",route:"",handler:function(){return this.apply("home")}},{name:"passwordResetSuccess",route:"signin/reset/success",handler:function(){return this.apply("password-reset-success")}},{name:"signin",route:"signin",handler:function(){var e=this.getQueryParams().redirect_url||this.getQueryParams().return_to;return e?this.isLoggedIn()?this.navigate(e):this.navigate("https://cnnct.soundcloud.com/connect?redirect_uri=https://m.soundcloud.com/signin/redirect&response_type=code&scope=fast-connect&state="+encodeURIComponent(e)+"&client_id=iZIs9mchVcX5lhVRyQGGAYlNPVldzAoX",{hard:!0}):this.navigate("/")}},{name:"signinRedirect",route:"signin/redirect",handler:function(){var e=this.getQueryParams().state,t=/^\/[a-zA-Z0-9_\/-]+(?:\?.*)?$/.test(e);return t?this.navigate("https://soundcloud.com"+encodeURI(e),{hard:!0}):this.navigate("/")}},{name:"activate",route:"activate(?:/(:alphanum))?",handler:function(e){return this.apply("activate",{code:e})}},{name:"peopleDirectory",route:"people/directory(?:/(:alphanum))?",handler:function(e){return e=e||"A",this.apply("people-directory",{subpage:e})}},{name:"search",route:"search(?:/(sounds|tracks|sets|playlists|people|groups))?",handler:function(e){return this.getQueryParams().q?(e=e==="sets"?"playlists":e==="sounds"?"tracks":e,this.apply("search",{category:e})):this.apply("mobile-apps",{page:"search"})}},{name:"searchDeprecated",route:"(tracks|people|groups)/search",redirect:function(e){return e==="tracks"&&(e="sounds"),"/search/"+e}},{name:"mobile",route:"mobile",handler:function(){return this.apply("mobile-apps")}},{name:"messages",route:"messages(?:/:conversationId)?",handler:function(){return this.apply("messages")}},{name:"emailUnsubscribedPage",route:/^pages\/unsubscribed$/,handler:function(){return this.apply("unsubscribed")}},{name:"streamDeprecated",route:"dashboard(?:/.*)?",redirect:"/"},{name:"youUnused",route:"you(?:/.*)?",redirect:"/"},{name:"clickFunnel",route:"(stream|explore|discover)",handler:function(e){return this.apply("mobile-apps",{page:e})}},{name:"notImplemented",route:"(upload|people|you|you/releases|you/premier|you/premier/faqs|you/premier/onboarding|you/premier/resources|charts|charts/top|charts/new)",handler:function(e){return this.apply("not-implemented",{page:e})}},{name:"pulseApp",route:"(you/tracks|you/stats|notifications)",handler:function(e){return this.apply("pulse-app",{page:e})}},{name:"premium",route:"pro",handler:function(e){return this.apply("premium",{pageName:e})}},{name:"premiumDeprecated",route:"premium",redirect:function(){return"/pro"}},{name:"consumerPremium",route:"((?:go|student)(?:/:alphanum)*)",handler:function(e){return this.apply("consumer-premium",{pageName:e})}},{name:"pages",route:"(community-guidelines|imprint|law-enforcement-guidelines|network-enforcement-act)",handler:function(e){return this.apply("static-page",{pageName:e})}},{name:"pagesWithVersions",route:"((terms-of-use(?:-pro)?|go-terms-of-use)(?:/[0-9]{2}-[0-9]{4})?)",handler:function(e){return this.apply("static-page",{pageName:e})}},{name:"pagesPages",route:"pages/(.*)",handler:function(e){return this.apply("static-page",{pageName:"pages/"+e})}},{name:"pressPages",route:"press($|/.*)",handler:function(){return this.navigate("http://press.soundcloud.com/",{hard:!0})}},{name:"xbox",route:"xbox-app",handler:function(){return this.navigate("https://checkout.soundcloud.com/xbox-app")}}])}),
define("lib/tracking/tracking-core",["require","exports","module","$","underscore","lib/tracking/comscore","config","lib/tracking/helpers/core","vendor/event-gateway/event-gateway","lib/lingua","lib/tracking/types/actions","lib/support","lib/tracking/types/impressions","lib/tracking/types/pageviews"],function(e,t,n){function m(e){var t=u.getContext(e),n=u.getIdentifier(e),r=u.getUserId();a.click(r,t,n,e)}function g(e){var t=u.getUserId(),n=u.getContext(e),r={locale:f.getLocale()};a.pageview(t,n,[],r)}function y(e){var t=u.getImpressionEvent(e),n=u.getLevel(),r=u.getUserId();S(r,n,t)}function b(e){var t=u.getLevel(),n=u.getUserId();a.appLoad(n,{latency:e,level:t})}function w(){var e=o.get.bind(o);a.initialize({id:e("client_application_id"),trackingUrl:e("eventgateway_tracking_url"),appVersion:o.get("app_version").replace(/!$/,""),batchTimeout:c.sendBeacon?5e3:1e3})}function E(e,t){return e[i.indexOf(e,t)]}function S(e,t,n){n=x(n);var r={ad_urn:n.ad_urn,campaign:n.context.campaign,context:n.context.scope.join(":"),external_media:n.external_media,impression_name:n.impression_name,impression_object:n.impression_object,level:t,monetization_type:n.monetization_type,monetized_object:n.monetized_object,page_name:n.page_name,page_urn:n.page_urn,promoted_by:n.promoted_by,urn:n.urn,user:T(e)};a.logEvent("impression","0.0.0",i.extend(r,n.params))}function x(e){return e=typeof e=="object"?e:{},e.context=e.context||{},e.context.scope=e.context.scope||[],e}function T(e){return e?"soundcloud:users:"+e:a.getAnonymousId()}function N(){var e=o.get("router").getLayoutInfo(),t=e.layout,n=t.getPageUrn(),r=u.getAudioContext();return i.extend({page_name:r},n?{page_urn:n}:{})}var r=e("$"),i=e("underscore"),s=e("lib/tracking/comscore"),o=e("config"),u=e("lib/tracking/helpers/core"),a=e("vendor/event-gateway/event-gateway"),f=e("lib/lingua"),l=e("lib/tracking/types/actions"),c=e("lib/support"),h=e("lib/tracking/types/impressions"),p=e("lib/tracking/types/pageviews"),d=r.Deferred().resolve(),v=n.exports={initialize:function(){w(),s.init()},destroy:function(){s.destroy(),a.flush(!0)},action:function(e,t,n){var r=l[e],s=r&&r.identifiers,o;o=E(s,t),o&&this.whenRequestAllowed().done(function(){m(i.defaults({identifier:t},n))})},audio:function(e,t){var n=!!t.playbackOptions.userInitiated,r=t.playlist,i=t.getSourceInfo().type;this.whenRequestAllowed().done(function(){a.audio({page_name:u.getAudioContext(),page_urn:t.getUrn(),in_playlist:r?r.getUrn():null,playlist_position:r?r.getSoundIndex(t):null,source:i,id:t.id,trackOwnerId:t.getUserId(),track_length:Math.round(e.duration),player_type:e.playerType,app_state:e.appState,preset:e.preset,quality:e.quality,reposted_by:t.get("reposted_by"),action:e.type,playheadPosition:Math.round(e.position),trigger:n?"manual":"auto",policy:t.get("policy"),monetization_model:t.get("monetization_model")})})},trackClickV1:function(e){this.whenRequestAllowed().done(function(){a.logEvent("click","1.16.0",i.extend(N(),e))})},trackImpressionV1:function(e){this.whenRequestAllowed().done(function(){var t=i.extend(N(),e);a.impression(null,t)})},saveAudioContext:function(){u.saveAudioContext()},pageview:function(e){var t;t=i.clone(i.find(p,function(t,n){var r=n.split(" ");return i.contains(r,e)})||p.default),typeof t.chapter=="function"&&(t.chapter=t.chapter()),this.whenRequestAllowed().done(function(){g(t)})},impression:function(e,t){i.contains(h,e)&&this.whenRequestAllowed().done(function(){y({identifier:e,contextData:t})})},appLoad:function(e){b(e)},whenRequestAllowed:function(){return d},deferRequests:function(e){d=d.then(function(){return e})}}}),
define("lib/url",["require","exports","module","underscore","lib/backbone","lib/support"],function(e,t,n){var r=e("underscore"),i=e("lib/backbone"),s=e("lib/support"),o=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)[email protected])?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u=["---","scheme","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],a,f=n.exports={parse:function(e,t){var n=o.exec(e),r,i,s={};t||(t=u);for(r=1;r<u.length;++r){i=u[r];if(t.indexOf(i)!==-1)if(n[r]||i==="query")switch(i){case"port":s[i]=parseInt(n[r],10);break;case"path":s[i]=n[r].split("/").map(decodeURIComponent).join("/");break;case"query":s[i]=f.parseQueryString(n[r]);break;default:s[i]=n[r]}}return s},joinPath:function(e){return e.filter(Boolean).join("/")},parseQueryString:function(e){var t={};return e&&e.replace(/([^?=&]+)(?:=([^&]*))?/g,function(e,n,r){n=decodeURIComponent(n),r=decodeURIComponent(r||"");switch(typeof t[n]){case"object":t[n].push(r);break;case"undefined":t[n]=r;break;default:t[n]=[t[n],r]}}),t},getQueryParams:function(){var e,t;return function(n){var r=n||(s.pushState?window.location.search:window.location.hash.replace(/^[^?]*/,""));return r!==e&&(e=r,t=f.parseQueryString(r)),t}}(),stringify:function(e,t){var n=[],i,s;return t&&(s=f.parse(t),e.query&&s.query&&(r.extend(s.query,e.query),delete e.query),e=r.extend({},s,e)),e.scheme&&n.push(e.scheme+"://"),e.user&&(n.push(e.user),e.password&&n.push(":"+e.password),n.push("@")),e.host&&n.push(e.host),e.port&&n.push(":"+e.port),e.path&&(typeof e.path=="string"?n.push(e.path.split("/").join("/")):n.push(f.joinPath(e.path))),i=a(e.query),i&&n.push("?"+i),e.fragment&&n.push("#"+e.fragment),n.join("")},modify:function(e,t){var n=f.parse(e);return r.isFunction(t)?n=t.call(null,n):typeof t=="object"&&(t.query&&(r.extend(n.query,t.query),delete t.query),r.extend(n,t)),f.stringify(n)},getQueryParam:function(e){return f.parseQueryString(window.location.search)[e]},getQueryString:function(e){return e?e.replace(/^[^?#]*(\?[^#]*)?(?:#.*)?$/,"$1"):s.pushState?window.location.search:window.location.hash.replace(/^[^?]*/,"")},currentPath:function(){return i.history?"/"+i.history.getFragment(null,null,!0):""}};a=function(e){var t,n,r,i,s,o=[];if(e)for(t in e)if(e.hasOwnProperty(t)){i=e[t];if(i!==null&&i!==s)if(typeof i=="object"){r=i.length;for(n=0;n<r;++n)o.push(encodeURIComponent(t)+"="+encodeURIComponent(i[n]).replace(/%2F/g,"/"))}else o.push(encodeURIComponent(t)+"="+encodeURIComponent(i).replace(/%2F/g,"/"))}return o.join("&")}}),
define("models/user",["require","exports","module","lib/model","lib/mixins/urn"],function(e,t,n){var r=e("lib/model"),i=e("lib/mixins/urn"),s=n.exports=r.extend(i,{resource_type:"user",urnPrefix:"soundcloud:users",baseUrl:function(){return this.getEndpointUrl("user",{urn:this.getUrn()})}},{resolve:function(e){return r._resolve(this,e,function(t){return t.get("permalink")===e})}})}),
define("lib/console-box",["require","exports","module","css","lib/console-box.css"],function(e,t,n){function u(t){var n;i||(r.insert(e("lib/console-box.css")),i=document.createElement("div"),i.className="consoleBox",i.addEventListener("click",f),document.body.appendChild(i)),s!==t?(s=t,o=0,n=a(t),i.insertBefore(n,i.firstChild)):i.firstChild.innerText=t+" ("+ ++o+")"}function a(e){var t=document.createElement("p");return t.className="consoleBox__message",t.innerText=e,t}function f(){if(i)while(i.firstChild)i.removeChild(i.firstChild)}var r=e("css"),i,s,o;n.exports={log:u}}),
define("vendor/underscore.deferred/underscore.deferred",["require","exports","module"],function(e,t,n){(function(e){function y(e){var t=g[e]={};return l(e.split(/\s+/),function(e){t[e]=!0}),t}var t={},r=Array.prototype,i=Object.prototype,s=i.hasOwnProperty,o=i.toString,u=r.forEach,a=r.indexOf,f=r.slice,l=function(e,n,r){var i,o,a;if(!e)return;if(u&&e.forEach===u)e.forEach(n,r);else if(e.length===+e.length){for(o=0,a=e.length;o<a;o++)if(o in e&&n.call(r,e[o],o,e)===t)return}else for(i in e)if(s.call(e,i)&&n.call(r,e[i],i,e)===t)return},c=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},h=function(e){return l(f.call(arguments,1),function(t){var n;for(n in t)t[n]!==void 0&&(e[n]=t[n])}),e},p=function(e,t,n){var r;if(t){if(a)return a.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},d={};l("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){d["[object "+e+"]"]=e.toLowerCase()});var v=function(e){return e==null?String(e):d[o.call(e)]||"object"},m={},g={};m.Callbacks=function(e){e=typeof e=="string"?g[e]||y(e):h({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(l){t=e.memory&&l,n=!0,o=i||0,i=0,s=u.length,r=!0;for(;u&&o<s;o++)if(u[o].apply(l[0],l[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,u&&(a?a.length&&f(a.shift()):t?u=[]:c.disable())},c={add:function(){if(u){var n=u.length;(function o(t){l(t,function(t){var n=v(t);n==="function"?(!e.unique||!c.has(t))&&u.push(t):t&&t.length&&n!=="string"&&o(t)})})(arguments),r?s=u.length:t&&(i=n,f(t))}return this},remove:function(){return u&&l(arguments,function(e){var t;while((t=p(e,u,t))>-1)u.splice(t,1),r&&(t<=s&&s--,t<=o&&o--)}),this},has:function(e){return p(e,u)>-1},empty:function(){return u=[],this},disable:function(){return u=a=t=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,t||c.disable(),this},locked:function(){return!a},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],u&&(!n||a)&&(r?a.push(t):f(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},m.Deferred=function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){l(t,function(t,r){var s=t[0],o=e[r];i[t[1]](c(o)?function(){var e;try{e=o.apply(this,arguments)}catch(t){n.reject(t);return}e&&c(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s!=="notify"?"resolveWith":s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?h(e,r):r}},i={};return r.pipe=r.then,l(t,function(e,s){var o=e[2],u=e[3];r[e[1]]=o.add,u&&o.add(function(){n=u},t[s^1][2].disable,t[2][2].lock),i[e[0]]=o.fire,i[e[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},m.when=function(e){var t=0,n=v(e)==="array"&&arguments.length===1?e:f.call(arguments),r=n.length,i=r!==1||e&&c(e.promise)?r:0,s=i===1?e:m.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?f.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,l;if(r>1){u=new Array(r),a=new Array(r),l=new Array(r);for(;t<r;t++)n[t]&&c(n[t].promise)?n[t].promise().done(o(t,l,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(l,n),s.promise()},typeof n!="undefined"&&n.exports?n.exports=m:typeof e._!="undefined"?e._.mixin(m):e._=m})(this)}),
define("domify",["require","exports","module"],function(e,t,n){function i(e){if("string"!=typeof e)throw new TypeError("String expected");var t=/<([\w:]+)/.exec(e);if(!t)throw new Error("No elements were generated.");var n=t[1];if(n=="body"){var i=document.createElement("html");return i.innerHTML=e,[i.removeChild(i.lastChild)]}var o=r[n]||r._default,u=o[0],a=o[1],f=o[2],i=document.createElement("div");i.innerHTML=a+e+f;while(u--)i=i.lastChild;return s(i.children)}function s(e){var t=[];while(e.length)t.push(e[0].parentNode.removeChild(e[0]));return t}n.exports=i;var r={option:[1,'<select multiple="multiple">',"</select>"],optgroup:[1,'<select multiple="multiple">',"</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tbody:[1,"<table>","</table>"],tfoot:[1,"<table>","</table>"],colgroup:[1,"<table>","</table>"],caption:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],th:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]}}),
define("lib/dollar/dollar-ajax",["require","exports","module","underscore","ajax","vendor/underscore.deferred/underscore.deferred"],function(e,t,n){var r=e("underscore"),i=e("ajax"),s=e("vendor/underscore.deferred/underscore.deferred"),o=n.exports=function(e){var t=s.Deferred();return e.success&&t.done(e.success),e.error&&t.fail(e.error),e=r.extend({},e,{success:function(e,n,r){t.resolve.call(r,e,n,r)},error:function(e,n,r){t.reject.call(e,r,e.status,e)}}),i(e),t};["get","post","getJSON"].forEach(function(e){o[e]=function(t,n,r,i){var s;return typeof n=="function"&&(i=i||r,r=n,n=null),s=o({type:e==="post"?"POST":"GET",url:t,data:n,dataType:e==="getJSON"?"json":i}),typeof r=="function"&&s.done(r),s}})}),
define("lib/dollar/dollar-attrs",["require","exports","module","underscore","classes"],function(e,t,n){var r=e("underscore"),i=e("classes"),s=n.exports={attr:function(e,t){var n;return this.each(function(){typeof e=="object"?r.each(e,function(e,t){this.setAttribute(t,e)}.bind(this)):t?this.setAttribute(e,t):n=this.getAttribute(e)}),n||this},classList:function(){var e;return this.each(function(){e=(new i(this)).array()}),e},hasClass:function(e){return[].every.call(this,function(t){return(new i(t)).has(e)})},scrollTop:function(e){e&&!1&&window.console.warn("$.scrollTop is just a getter.");var t=this[0];return t===document?window.pageYOffset:t?t.scrollTop:0},offset:function(e){e&&!1&&window.console.warn("$.scrollTop is just a getter.");var t=this[0];if(!t)return null;if(document.contains(t)){var n=t.getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}}return{top:0,left:0}}};["add","remove"].forEach(function(e){s[e+"Class"]=function(t){return this.each(function(){return(new i(this))[e](t)})}}),s.toggleClass=function(e,t){var n="toggle";return arguments.length>1&&(n=t?"add":"remove"),this.each(function(){return(new i(this))[n](e)})}}),
define("lib/dollar/dollar-events",["require","exports","module","underscore","vendor/zepto-events"],function(e,t,n){var r=e("underscore"),i=e("vendor/zepto-events");t.Event=i.Event,t.prototypeMethods={bind:function(e,t){return this.each(function(){i.add(this,e,t)})},unbind:function(e,t){return this.each(function(){i.remove(this,e,t)})},one:function(e,t){return this.each(function(n){i.add(this,e,t,null,function(e,t){return function(){var r=e.apply(n,arguments);return i.remove(n,t,e),r}})})},delegate:function(e,t,n){var s=this.constructor;return this.each(function(o){i.add(o,t,n,e,function(t){return function(n){var u,a=s(n.target).closest(e,o)[0];if(a)return u=r.extend(i.createProxy(n),{currentTarget:a,liveFired:o}),t.apply(a,[u].concat([].slice.call(arguments,1)))}})})},undelegate:function(e,t,n){return this.each(function(){i.remove(this,t,n,e)})},on:function(e,t,n){return!t||typeof t=="function"?this.bind(e,t||n):this.delegate(t,e,n)},off:function(e,t,n){return!t||typeof t=="function"?this.unbind(e,t||n):this.undelegate(t,e,n)},trigger:function(e,t){var n=this.constructor;if(typeof e=="string"||typeof e=="object")e=n.Event(e);return e.data=t,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(e)})}}}),
define("lib/dollar/dollar-manipulation",["require","exports","module"],function(e,t,n){function r(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}n.exports={remove:r,detach:r,prepend:function(e){var t=this[0];t&&$(e).each(function(){t.insertBefore(this,t.firstChild)})},insertAfter:function(e){var t=this[0];return t&&t.parentNode&&t.parentNode.insertBefore(e,t.nextSibling)},append:function(e){var t=this[0];t&&$(e).each(function(){t.appendChild(this)})},html:function(e){return this.each(function(){e!=null?this.innerHTML=e:e=this.innerHTML}),e}}}),
define("lib/dollar/dollar-matches",["require","exports","module"],function(e,t,n){n.exports=function(e,t){var n;if(!e||e.nodeType!==1)return!1;n=e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector||e.matchesSelector;if(n)return n.call(e,t)}}),
define("lib/dollar/dollar-traversal",["require","exports","module","underscore","lib/dollar/dollar-matches"],function(e,t,n){function o(e){return e!=null&&e.nodeType===e.DOCUMENT_NODE}var r=e("underscore"),i=e("lib/dollar/dollar-matches"),s=n.exports={find:function(e){var t;return this.each(function(n){t=new this.constructor(e,n)},this),t},last:function(){var e=this.constructor;return e(this[this.length-1])},closest:function(e,t){var n=this[0],r=!1,s=this.constructor;typeof e=="object"&&(r=s(e));while(n&&!(r?[].indexOf.call(r,n)>=0:i(n,e)))n=n!==t&&!o(n)&&n.parentNode;return s(n)},parent:function(){var e=this[0];return e?$(e.parentNode):[]},children:function(e){var t=[];return this.each(function(n){var i=n.children;if(!i.length)return;e?(new this.constructor(e,n)).each(function(e){e.parentNode===n&&t.push(e)}):t.push(r.toArray(i))},this),new this.constructor(r.flatten(t))},index:function(){var e=-1,t=this[0],n;if(t&&t.parentNode){n=t.previousElementSibling,e=0;while(n)n=n.previousElementSibling,e++}return e}}}),
define("vendor/underscore",["require","exports","module"],function(e,t,n){(function(){function x(e){function t(t,n,r,i,s,o){for(;s>=0&&s<o;s+=e){var u=i?i[s]:s;r=n(r,t[u],u,t)}return r}return function(n,r,i,s){r=g(r,s,4);var o=!S(n)&&m.keys(n),u=(o||n).length,a=e>0?0:u-1;return arguments.length<3&&(i=n[o?o[a]:a],a+=e),t(n,r,i,o,a,u)}}function C(e){return function(t,n,r){n=y(n,r);var i=t!=null&&t.length,s=e>0?0:i-1;for(;s>=0&&s<i;s+=e)if(n(t[s],s,t))return s;return-1}}function O(e,t){var n=A.length,r=e.constructor,i=m.isFunction(r)&&r.prototype||s,o="constructor";m.has(e,o)&&!m.contains(t,o)&&t.push(o);while(n--)o=A[n],o in e&&e[o]!==i[o]&&!m.contains(t,o)&&t.push(o)}var e=this,r=e._,i=Array.prototype,s=Object.prototype,o=Function.prototype,u=i.push,a=i.slice,f=s.toString,l=s.hasOwnProperty,c=Array.isArray,h=Object.keys,p=o.bind,d=Object.create,v=function(){},m=function(e){if(e instanceof m)return e;if(!(this instanceof m))return new m(e);this._wrapped=e};typeof t!="undefined"?(typeof n!="undefined"&&n.exports&&(t=n.exports=m),t._=m):e._=m,m.VERSION="1.8.2";var g=function(e,t,n){if(t===void 0)return e;switch(n==null?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return function(){return e.apply(t,arguments)}},y=function(e,t,n){return e==null?m.identity:m.isFunction(e)?g(e,t,n):m.isObject(e)?m.matcher(e):m.property(e)};m.iteratee=function(e,t){return y(e,t,Infinity)};var b=function(e,t){return function(n){var r=arguments.length;if(r<2||n==null)return n;for(var i=1;i<r;i++){var s=arguments[i],o=e(s),u=o.length;for(var a=0;a<u;a++){var f=o[a];if(!t||n[f]===void 0)n[f]=s[f]}}return n}},w=function(e){if(!m.isObject(e))return{};if(d)return d(e);v.prototype=e;var t=new v;return v.prototype=null,t},E=Math.pow(2,53)-1,S=function(e){var t=e!=null&&e.length;return typeof t=="number"&&t>=0&&t<=E};m.each=m.forEach=function(e,t,n){t=g(t,n);var r,i;if(S(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var s=m.keys(e);for(r=0,i=s.length;r<i;r++)t(e[s[r]],s[r],e)}return e},m.map=m.collect=function(e,t,n){t=y(t,n);var r=!S(e)&&m.keys(e),i=(r||e).length,s=Array(i);for(var o=0;o<i;o++){var u=r?r[o]:o;s[o]=t(e[u],u,e)}return s},m.reduce=m.foldl=m.inject=x(1),m.reduceRight=m.foldr=x(-1),m.find=m.detect=function(e,t,n){var r;S(e)?r=m.findIndex(e,t,n):r=m.findKey(e,t,n);if(r!==void 0&&r!==-1)return e[r]},m.filter=m.select=function(e,t,n){var r=[];return t=y(t,n),m.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},m.reject=function(e,t,n){return m.filter(e,m.negate(y(t)),n)},m.every=m.all=function(e,t,n){t=y(t,n);var r=!S(e)&&m.keys(e),i=(r||e).length;for(var s=0;s<i;s++){var o=r?r[s]:s;if(!t(e[o],o,e))return!1}return!0},m.some=m.any=function(e,t,n){t=y(t,n);var r=!S(e)&&m.keys(e),i=(r||e).length;for(var s=0;s<i;s++){var o=r?r[s]:s;if(t(e[o],o,e))return!0}return!1},m.contains=m.includes=m.include=function(e,t,n,r){S(e)||(e=m.values(e));if(typeof n!="number"||r)n=0;return m.indexOf(e,t,n)>=0},m.invoke=function(e,t){var n=a.call(arguments,2),r=m.isFunction(t);return m.map(e,function(e){var i=r?t:e[t];return i==null?i:i.apply(e,n)})},m.pluck=function(e,t){return m.map(e,m.property(t))},m.where=function(e,t){return m.filter(e,m.matcher(t))},m.findWhere=function(e,t){return m.find(e,m.matcher(t))},m.max=function(e,t,n){var r=-Infinity,i=-Infinity,s,o;if(t==null&&e!=null){e=S(e)?e:m.values(e);for(var u=0,a=e.length;u<a;u++)s=e[u],s>r&&(r=s)}else t=y(t,n),m.each(e,function(e,n,s){o=t(e,n,s);if(o>i||o===-Infinity&&r===-Infinity)r=e,i=o});return r},m.min=function(e,t,n){var r=Infinity,i=Infinity,s,o;if(t==null&&e!=null){e=S(e)?e:m.values(e);for(var u=0,a=e.length;u<a;u++)s=e[u],s<r&&(r=s)}else t=y(t,n),m.each(e,function(e,n,s){o=t(e,n,s);if(o<i||o===Infinity&&r===Infinity)r=e,i=o});return r},m.shuffle=function(e){var t=S(e)?e:m.values(e),n=t.length,r=Array(n);for(var i=0,s;i<n;i++)s=m.random(0,i),s!==i&&(r[i]=r[s]),r[s]=t[i];return r},m.sample=function(e,t,n){return t==null||n?(S(e)||(e=m.values(e)),e[m.random(e.length-1)]):m.shuffle(e).slice(0,Math.max(0,t))},m.sortBy=function(e,t,n){return t=y(t,n),m.pluck(m.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index-t.index}),"value")};var T=function(e){return function(t,n,r){var i={};return n=y(n,r),m.each(t,function(r,s){var o=n(r,s,t);e(i,r,o)}),i}};m.groupBy=T(function(e,t,n){m.has(e,n)?e[n].push(t):e[n]=[t]}),m.indexBy=T(function(e,t,n){e[n]=t}),m.countBy=T(function(e,t,n){m.has(e,n)?e[n]++:e[n]=1}),m.toArray=function(e){return e?m.isArray(e)?a.call(e):S(e)?m.map(e,m.identity):m.values(e):[]},m.size=function(e){return e==null?0:S(e)?e.length:m.keys(e).length},m.partition=function(e,t,n){t=y(t,n);var r=[],i=[];return m.each(e,function(e,n,s){(t(e,n,s)?r:i).push(e)}),[r,i]},m.first=m.head=m.take=function(e,t,n){return e==null?void 0:t==null||n?e[0]:m.initial(e,e.length-t)},m.initial=function(e,t,n){return a.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))},m.last=function(e,t,n){return e==null?void 0:t==null||n?e[e.length-1]:m.rest(e,Math.max(0,e.length-t))},m.rest=m.tail=m.drop=function(e,t,n){return a.call(e,t==null||n?1:t)},m.compact=function(e){return m.filter(e,m.identity)};var N=function(e,t,n,r){var i=[],s=0;for(var o=r||0,u=e&&e.length;o<u;o++){var a=e[o];if(S(a)&&(m.isArray(a)||m.isArguments(a))){t||(a=N(a,t,n));var f=0,l=a.length;i.length+=l;while(f<l)i[s++]=a[f++]}else n||(i[s++]=a)}return i};m.flatten=function(e,t){return N(e,t,!1)},m.without=function(e){return m.difference(e,a.call(arguments,1))},m.uniq=m.unique=function(e,t,n,r){if(e==null)return[];m.isBoolean(t)||(r=n,n=t,t=!1),n!=null&&(n=y(n,r));var i=[],s=[];for(var o=0,u=e.length;o<u;o++){var a=e[o],f=n?n(a,o,e):a;t?((!o||s!==f)&&i.push(a),s=f):n?m.contains(s,f)||(s.push(f),i.push(a)):m.contains(i,a)||i.push(a)}return i},m.union=function(){return m.uniq(N(arguments,!0,!0))},m.intersection=function(e){if(e==null)return[];var t=[],n=arguments.length;for(var r=0,i=e.length;r<i;r++){var s=e[r];if(m.contains(t,s))continue;for(var o=1;o<n;o++)if(!m.contains(arguments[o],s))break;o===n&&t.push(s)}return t},m.difference=function(e){var t=N(arguments,!0,!0,1);return m.filter(e,function(e){return!m.contains(t,e)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(e){var t=e&&m.max(e,"length").length||0,n=Array(t);for(var r=0;r<t;r++)n[r]=m.pluck(e,r);return n},m.object=function(e,t){var n={};for(var r=0,i=e&&e.length;r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},m.indexOf=function(e,t,n){var r=0,i=e&&e.length;if(typeof n=="number")r=n<0?Math.max(0,i+n):n;else if(n&&i)return r=m.sortedIndex(e,t),e[r]===t?r:-1;if(t!==t){var s=m.findIndex(a.call(e,r),m.isNaN);return s>=0?s+r:-1}for(;r<i;r++)if(e[r]===t)return r;return-1},m.lastIndexOf=function(e,t,n){var r=e?e.length:0;typeof n=="number"&&(r=n<0?r+n+1:Math.min(r,n+1));if(t!==t)return m.findLastIndex(a.call(e,0,r),m.isNaN);while(--r>=0)if(e[r]===t)return r;return-1},m.findIndex=C(1),m.findLastIndex=C(-1),m.sortedIndex=function(e,t,n,r){n=y(n,r,1);var i=n(t),s=0,o=e.length;while(s<o){var u=Math.floor((s+o)/2);n(e[u])<i?s=u+1:o=u}return s},m.range=function(e,t,n){t==null&&(t=e||0,e=0),n=n||1;var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r);for(var s=0;s<r;s++,e+=n)i[s]=e;return i};var k=function(e,t,n,r,i){if(r instanceof t){var s=w(e.prototype),o=e.apply(s,i);return m.isObject(o)?o:s}return e.apply(n,i)};m.bind=function(e,t){if(p&&e.bind===p)return p.apply(e,a.call(arguments,1));if(!m.isFunction(e))throw new TypeError("Bind must be called on a function");var n=a.call(arguments,2),r=function(){return k(e,r,t,this,n.concat(a.call(arguments)))};return r},m.partial=function(e){var t=a.call(arguments,1),n=function(){var r=0,i=t.length,s=Array(i);for(var o=0;o<i;o++)s[o]=t[o]===m?arguments[r++]:t[o];while(r<arguments.length)s.push(arguments[r++]);return k(e,n,this,this,s)};return n},m.bindAll=function(e){var t,n=arguments.length,r;if(n<=1)throw new Error("bindAll must be passed function names");for(t=1;t<n;t++)r=arguments[t],e[r]=m.bind(e[r],e);return e},m.memoize=function(e,t){var n=function(r){var i=n.cache,s=""+(t?t.apply(this,arguments):r);return m.has(i,s)||(i[s]=e.apply(this,arguments)),i[s]};return n.cache={},n},m.delay=function(e,t){var n=a.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(e,t,n){var r,i,s,o=null,u=0;n||(n={});var a=function(){u=n.leading===!1?0:m.now(),o=null,s=e.apply(r,i),o||(r=i=null)};return function(){var f=m.now();!u&&n.leading===!1&&(u=f);var l=t-(f-u);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),u=f,s=e.apply(r,i),o||(r=i=null)):!o&&n.trailing!==!1&&(o=setTimeout(a,l)),s}},m.debounce=function(e,t,n){var r,i,s,o,u,a=function(){var f=m.now()-o;f<t&&f>=0?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i),r||(s=i=null)))};return function(){s=this,i=arguments,o=m.now();var f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i),s=i=null),u}},m.wrap=function(e,t){return m.partial(t,e)},m.negate=function(e){return function(){return!e.apply(this,arguments)}},m.compose=function(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}},m.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},m.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},m.once=m.partial(m.before,2);var L=!{toString:null}.propertyIsEnumerable("toString"),A=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(e){if(!m.isObject(e))return[];if(h)return h(e);var t=[];for(var n in e)m.has(e,n)&&t.push(n);return L&&O(e,t),t},m.allKeys=function(e){if(!m.isObject(e))return[];var t=[];for(var n in e)t.push(n);return L&&O(e,t),t},m.values=function(e){var t=m.keys(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=e[t[i]];return r},m.mapObject=function(e,t,n){t=y(t,n);var r=m.keys(e),i=r.length,s={},o;for(var u=0;u<i;u++)o=r[u],s[o]=t(e[o],o,e);return s},m.pairs=function(e){var t=m.keys(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},m.invert=function(e){var t={},n=m.keys(e);for(var r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},m.functions=m.methods=function(e){var t=[];for(var n in e)m.isFunction(e[n])&&t.push(n);return t.sort()},m.extend=b(m.allKeys),m.extendOwn=m.assign=b(m.keys),m.findKey=function(e,t,n){t=y(t,n);var r=m.keys(e),i;for(var s=0,o=r.length;s<o;s++){i=r[s];if(t(e[i],i,e))return i}},m.pick=function(e,t,n){var r={},i=e,s,o;if(i==null)return r;m.isFunction(t)?(o=m.allKeys(i),s=g(t,n)):(o=N(arguments,!1,!1,1),s=function(e,t,n){return t in n},i=Object(i));for(var u=0,a=o.length;u<a;u++){var f=o[u],l=i[f];s(l,f,i)&&(r[f]=l)}return r},m.omit=function(e,t,n){if(m.isFunction(t))t=m.negate(t);else{var r=m.map(N(arguments,!1,!1,1),String);t=function(e,t){return!m.contains(r,t)}}return m.pick(e,t,n)},m.defaults=b(m.allKeys,!0),m.create=function(e,t){var n=w(e);return t&&m.extendOwn(n,t),n},m.clone=function(e){return m.isObject(e)?m.isArray(e)?e.slice():m.extend({},e):e},m.tap=function(e,t){return t(e),e},m.isMatch=function(e,t){var n=m.keys(t),r=n.length;if(e==null)return!r;var i=Object(e);for(var s=0;s<r;s++){var o=n[s];if(t[o]!==i[o]||!(o in i))return!1}return!0};var M=function(e,t,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return e===t;e instanceof m&&(e=e._wrapped),t instanceof m&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":if(+e!==+e)return+t!==+t;return+e===0?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var s=i==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var o=e.constructor,u=t.constructor;if(o!==u&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];var a=n.length;while(a--)if(n[a]===e)return r[a]===t;n.push(e),r.push(t);if(s){a=e.length;if(a!==t.length)return!1;while(a--)if(!M(e[a],t[a],n,r))return!1}else{var l=m.keys(e),c;a=l.length;if(m.keys(t).length!==a)return!1;while(a--){c=l[a];if(!m.has(t,c)||!M(e[c],t[c],n,r))return!1}}return n.pop(),r.pop(),!0};m.isEqual=function(e,t){return M(e,t)},m.isEmpty=function(e){return e==null?!0:S(e)&&(m.isArray(e)||m.isString(e)||m.isArguments(e))?e.length===0:m.keys(e).length===0},m.isElement=function(e){return!!e&&e.nodeType===1},m.isArray=c||function(e){return f.call(e)==="[object Array]"},m.isObject=function(e){var t=typeof e;return t==="function"||t==="object"&&!!e},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){m["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),m.isArguments(arguments)||(m.isArguments=function(e){return m.has(e,"callee")}),typeof /./!="function"&&typeof Int8Array!="object"&&(m.isFunction=function(e){return typeof e=="function"||!1}),m.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},m.isNaN=function(e){return m.isNumber(e)&&e!==+e},m.isBoolean=function(e){return e===!0||e===!1||f.call(e)==="[object Boolean]"},m.isNull=function(e){return e===null},m.isUndefined=function(e){return e===void 0},m.has=function(e,t){return e!=null&&l.call(e,t)},m.noConflict=function(){return e._=r,this},m.identity=function(e){return e},m.constant=function(e){return function(){return e}},m.noop=function(){},m.property=function(e){return function(t){return t==null?void 0:t[e]}},m.propertyOf=function(e){return e==null?function(){}:function(t){return e[t]}},m.matcher=m.matches=function(e){return e=m.extendOwn({},e),function(t){return m.isMatch(t,e)}},m.times=function(e,t,n){var r=Array(Math.max(0,e));t=g(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},m.random=function(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},m.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=m.invert(_),P=function(e){var t=function(t){return e[t]},n="(?:"+m.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=e==null?"":""+e,r.test(e)?e.replace(i,t):e}};m.escape=P(_),m.unescape=P(D),m.result=function(e,t,n){var r=e==null?void 0:e[t];return r===void 0&&(r=n),m.isFunction(r)?r.call(e):r};var H=0;m.uniqueId=function(e){var t=++H+"";return e?e+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\u2028|\u2029/g,I=function(e){return"\\"+j[e]};m.template=function(e,t,n){!t&&n&&(t=n),t=m.defaults({},t,m.templateSettings);var r=RegExp([(t.escape||B).source,(t.interpolate||B).source,(t.evaluate||B).source].join("|")+"|$","g"),i=0,s="__p+='";e.replace(r,function(t,n,r,o,u){return s+=e.slice(i,u).replace(F,I),i=u+t.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(t.variable||"obj","_",s)}catch(u){throw u.source=s,u}var a=function(e){return o.call(this,e,m)},f=t.variable||"obj";return a.source="function("+f+"){\n"+s+"}",a},m.chain=function(e){var t=m(e);return t._chain=!0,t};var q=function(e,t){return e._chain?m(t).chain():t};m.mixin=function(e){m.each(m.functions(e),function(t){var n=m[t]=e[t];m.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),q(this,n.apply(m,e))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];m.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0&&delete n[0],q(this,n)}}),m.each(["concat","join","slice"],function(e){var t=i[e];m.prototype[e]=function(){return q(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped}}).call(this)}),
define("lib/layouts/fullheight",["require","exports","module","lib/layout","lib/layouts/fullheight.css","lib/layouts/fullheight.tmpl"],function(e,t,n){var r=e("lib/layout"),i=n.exports=r.extend({css:e("lib/layouts/fullheight.css"),template:e("lib/layouts/fullheight.tmpl")})}),
define("lib/views/loading",["require","exports","module","lib/view","lib/views/loading.css"],function(e,t,n){var r=e("lib/view"),i=n.exports=r.extend({css:e("lib/views/loading.css"),className:"loadingThrobber",defaults:{size:"regular"},setup:function(e){this.$el.addClass(e.size)},template:function(){return""}})}),
define("lib/support",["require","exports","module","underscore","lib/helpers/client-environment-helper"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/client-environment-helper").browser,s,o,u=n.exports={};o=function(e){try{if(e.getItem){var t=Date.now();return e.setItem(t,t),e.removeItem(t),!0}}catch(n){}return!1},s={sessionStorage:function(){try{return typeof sessionStorage!="undefined"&&o(sessionStorage)}catch(e){return!1}},localStorage:function(){try{return typeof localStorage!="undefined"&&o(localStorage)}catch(e){return!1}},touch:function(){return s.pointerEvents()||s.touchEvents()},touchEvents:function(){return"ontouchstart"in window},pointerEvents:function(){return!!window.PointerEvent},orientationChange:function(){return"onorientationchange"in window},autoPlay:function(){return i.firefox},pushState:function(){return window.history&&window.history.pushState},sendBeacon:function(){return window.navigator.sendBeacon},nativeScroll:function(){var e=document.createElement("div"),t;return e.style.webkitOverflowScrolling="touch",document.body.appendChild(e),t=!!window.getComputedStyle(e).webkitOverflowScrolling,document.body.removeChild(e),t},typedArrays:function(){return!!window.hasOwnProperty("Uint8Array")}},r.each(s,function(e,t){u[t]=!!e()}),s=null}),
define("lib/view",["require","exports","module","$","underscore","lib/backbone","css","lib/event-bubble","lib/views/mixins/stateful","lib/template"],function(e,t,n){function c(e,t){var n=this;while(n&&!t.isPropagationStopped())n.trigger(e,t),n=n._parentView}function h(e,t){return i.defaults(t,e.prototype.defaults),e===l?t:h(e.__super__.constructor,t)}function p(e,t){var n,r;t=t||this.model,n=e?t.on:t.off,r=this.getObservedAttributes(t),r.forEach(function(e){n.call(t,"change:"+e,this.onModelChange,this)}.bind(this))}function d(e,t){var n;t=t||this.collection,n=e?"on":"off",t[n]("reset",this.onCollectionReset,this)[n]("add",this.onAdd,this)[n]("remove",this.onRemove,this)}var r=e("$"),i=e("underscore"),s=e("lib/backbone"),o=e("css"),u=e("lib/event-bubble"),a=e("lib/views/mixins/stateful"),f=e("lib/template"),l=n.exports=s.View.extend(a,{ModelClass:null,requiredAttributes:null,observedAttributes:null,css:null,template:r.noop,LoadingView:null,loadingViewArgs:null,loadingTemplate:function(){return""},element2selector:null,_element2selector_cache:null,defaults:null,bubbleEvents:null,disposed:!1,subviews:null,_subviews_keys:null,_lastEventId:null,constructorArguments:null,_whenInsertedDefer:null,_deferreds:null,initialize:function(e){var t;e=this.options=h(this.constructor,e||{}),this.constructorArguments=i.clone(e),e.resource_id&&this.ModelClass&&(this.model=t=this.getModel(e.resource_id,e.resource_type)),this._deferreds=[],this.subviews=[],this._subviews_keys=[],this.resetElementCache(),this._setupBubbleListeners(),this._setup.call(this,e),t&&this.model!==t&&t.release(),this.model?this.setupModelListeners():this.collection&&this.setupCollectionListeners()},_setup:function(){this.setup.apply(this,arguments)},setup:r.noop,_dispose:function(){if(this.disposed)return;this._teardown(),this.dispose(),this.disposed=!0;while(this._deferreds.length)typeof this._deferreds[0]=="number"?clearTimeout(this._deferreds.shift()):this._deferreds[0].reject("viewDisposed");this.off(),this.stopListening(),this.model&&(this.teardownModelListeners(),this.model.release()),this.collection&&(this.teardownCollectionListeners(),this.collection.release()),this.$el.remove(),delete this.el,delete this.$el,delete this.model,delete this.collection,this.constructorArguments=null},dispose:r.noop,_teardown:function(){this.disposeSubviews(),this._whenInsertedDefer&&(this._whenInsertedDefer.reject(),this._whenInsertedDefer=null),this.teardown(),this.resetElementCache()},teardown:r.noop,disposeSubviews:function(){while(this.subviews.length)this.subviews.pop()._dispose();this.subviews=[],this._subviews_keys=[]},getModel:function(e,t){var n,r,i,s,o;return s={id:e,resource_type:t},i=this.ModelClass.getClass?this.ModelClass.getClass(s):this.ModelClass,n=i.hashFn(s),r=i.instances.get(n),r?r.hold():(o={id:e},t&&(o.resource_type=t),r=new i(o)),r},setupModelListeners:function(e){p.call(this,!0,e)},teardownModelListeners:function(e){p.call(this,!1,e)},setupCollectionListeners:function(e){d.call(this,!0,e)},teardownCollectionListeners:function(e){d.call(this,!1,e)},_setupBubbleListeners:function(){var e,t,n;for(t in this.bubbleEvents)if(this.bubbleEvents.hasOwnProperty(t)){e=this.bubbleEvents[t],n=typeof e;if(n!=="string"&&n!=="function")throw"Incorrect bubble event handler: "+e+". Bubble event handlers must be either string and "+"represent a method of the view, or a function that will be bound to view’s context";this.on(t,n==="function"?e:this[e],this)}},getRequiredAttributes:function(e){var t=this.requiredAttributes;return e||(e=this.model),t&&!Array.isArray(t)&&(t=t[e.resource_type]),t||[]},getObservedAttributes:function(e){var t=this.observedAttributes,n;return e||(e=this.model),n=this.getRequiredAttributes(e),t&&!Array.isArray(t)&&(t=t[e.resource_type]),t?t.concat(n):n},addDeferred:function(e){return typeof e=="number"?this._deferreds.push(e):e.state()==="pending"&&(e.always(function(){var t=this._deferreds.indexOf(e);t>-1&&this._deferreds.splice(t,1)}.bind(this)),this._deferreds.push(e)),e},addSubview:function(e,t){return e._parentView=this,this.subviews.push(e),this._subviews_keys.push(t),t&&(this.subviews[t]=e),e},removeSubview:function(e){for(var t=this.subviews.length;t--;)if(this.subviews[t]===e){this._subviews_keys[t]&&(e._parentView=null,delete this.subviews[this._subviews_keys[t]]),this.subviews.splice(t,1),this._subviews_keys.splice(t,1);return}},getAncestorSubviews:function(){var e=[];return this.subviews.forEach(function(t){e.push(t),e=e.concat(t.getAncestorSubviews())}),e},getElement:function(e){var t;return this._element2selector_cache[e]===t&&(this._element2selector_cache[e]=this.$(this.element2selector[e])),this._element2selector_cache[e]},resetElementCache:function(){this._element2selector_cache={}},render:function(){var e=this.hasData(),t=this.getTemplate(e),n=this.model||this.collection,r=this._getTemplateData(e||!n);return t&&(f.render(t.bind(this),r,this.el),f.subviews(this)),this.css&&o.insert(this.css),e?this.renderDecorate():(!t&&this.LoadingView&&this.el.appendChild(this.addSubview(new this.LoadingView(i.result(this,"loadingViewArgs")),"loading").render().el),this.fetchData(n)),this},renderDecorate:r.noop,rerender:function(){this.disposed||(this._teardown(),this.render())},getTemplate:function(e){return e||!this.LoadingView&&!this.loadingTemplate?this.template:this.LoadingView?null:this.loadingTemplate},_getTemplateData:function(e){var t={};return this.model?t=this.getModelData():this.collection&&(t=this.getCollectionData()),t._options=i.clone(this.options),e&&(t=this.getTemplateData(t)||t),t},getTemplateData:r.noop,getCollectionData:function(){return this.collection.toJSON()},getModelData:function(){return this.model.toJSON()},bubble:function(e,t){var n=new u(t);return c.call(this,e,n),n},getContextData:function(){return this.bubble("contextrequest").data},fetchData:function(e){return e.fetch({attrs:this.getObservedAttributes(e)})},hasData:function(e){return e=e||this.model||this.collection,e?e.hasDataForView(this):!0},removeLoader:function(){var e=this.subviews.loading;e&&(e._dispose(),this.removeSubview(e))},isEquivalentTo:function(e,t){var n=t||{};return this.constructor===e&&i.isEqual(h(e,n),this.constructorArguments)},whenInserted:function(e){var t=this._whenInsertedDefer,n,i;return t||(e=e||document.body,i=function(r){r.closest(e).length!==0?t.resolve():n=setTimeout(i,100)}.bind(null,this.$el),this._whenInsertedDefer=t=r.Deferred(),t.fail(function(){clearTimeout(n)}),i()),t},onModelChange:function(e,t,n,r){this._lastEventId!==r&&(this._lastEventId=r,this.rerender())},onCollectionReset:function(){this.rerender()},onAdd:r.noop,onRemove:r.noop})}),
define("lib/helpers/viewport-helper",["require","exports","module","$","underscore","lib/support"],function(e,t,n){function l(){return window.pageYOffset||document.compatMode==="CSS1Compat"&&document.documentElement.scrollTop||document.body&&document.body.scrollTop||0}var r=e("$"),i=e("underscore"),s=e("lib/support"),o=300,u,a,f=n.exports={hideAddressBar:function(e){var t=e&&e.layoutName==="listen",n=l();s.nativeScroll?i.delay(function(){a[0].scrollTop=0},100):!document.location.hash&&(n<20||t)&&i.defer(function(){window.scrollTo(0,Number(n===1))})},enableNativeScroll:function(e){a=e,e.addClass("g-native-scroll"),setInterval(function(){u!==e[0].scrollTop&&(u=e[0].scrollTop,r(document).trigger("scroll"))},o)}}}),
define("views/app.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform("#app{background:#f2f2f2}#app,#app>#content,#app>#content>div{height:100%}.app__header{position:fixed;top:0;left:0;height:44px;width:100%}.app__footerPanel{position:fixed;bottom:0;left:0;width:100%}.app__miniPlayer{display:none;position:relative}.app__displayMiniPlayer .app__miniPlayer{display:block}#content{padding-top:103px;opacity:1;-webkit-transition:padding .2s linear,opacity .5s linear;transition:padding .2s linear,opacity .5s linear}.app__hideUpsell #content{padding-top:44px}.app__upsell{position:absolute;padding-top:44px;width:100%}.app__displayMiniPlayer #content{padding-bottom:57px}.app__loading{-webkit-transition:opacity .5s linear;transition:opacity .5s linear;opacity:0;position:absolute;padding-top:44px;top:0;left:0;width:100%;height:100%;overflow:hidden}.show-throbber .app__loading{opacity:1}.show-throbber #content{opacity:0}#app.iPhone4Safari{height:416px}#app.iPhone5Safari{height:506px}")),data=null}),
define("views/app.tmpl",["vendor/handlebars-runtime","views/header/header","views/banner/upsell","views/cookie-banner/cookie-banner","views/play-controls/play-controls"],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+='<div class="app__header g-z-index-header"> '+o(n.$view.call(t,"views/header/header",{hash:{},data:i}))+'\n</div> <div class="app__upsell g-z-index-upsell"> '+o(n.$view.call(t,"views/banner/upsell",{hash:{},data:i}))+'\n</div> <div class="app__loading g-z-index-hidden"></div> <main id="content" class="l-container" role="main"></main> <div class="app__footerPanel g-z-index-header"> '+o(n.$view.call(t,"views/cookie-banner/cookie-banner",{hash:{},data:i}))+' <div class="app__miniPlayer"> '+o(n.$view.call(t,"views/play-controls/play-controls",{hash:{},data:i}))+" </div>\n</div> ",s})}),function(e,t){if(typeof define=="function"&&define.amd)
define("backbone",["underscore","$","exports"],function(n,r,i){e.Backbone=t(e,i,n,r)});else if(typeof exports!="undefined"){var n=require("underscore");t(e,exports,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t,n,r){var i=e.Backbone,s=[],o=s.push,u=s.slice,a=s.splice;t.VERSION="1.1.2",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var f=t.Events={on:function(e,t,n){if(!c(this,"on",e,[t,n])||!t)return this;this._events||(this._events={});var r=this._events[e]||(this._events[e]=[]);return r.push({callback:t,context:n,ctx:n||this}),this},once:function(e,t,r){if(!c(this,"once",e,[t,r])||!t)return this;var i=this,s=n.once(function(){i.off(e,s),t.apply(this,arguments)});return s._callback=t,this.on(e,s,r)},off:function(e,t,r){var i,s,o,u,a,f,l,h;if(!this._events||!c(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;u=e?[e]:n.keys(this._events);for(a=0,f=u.length;a<f;a++){e=u[a];if(o=this._events[e]){this._events[e]=i=[];if(t||r)for(l=0,h=o.length;l<h;l++)s=o[l],(t&&t!==s.callback&&t!==s.callback._callback||r&&r!==s.context)&&i.push(s);i.length||delete this._events[e]}}return this},trigger:function(e){if(!this._events)return this;var t=u.call(arguments,1);if(!c(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&h(n,t),r&&h(r,arguments),this},stopListening:function(e,t,r){var i=this._listeningTo;if(!i)return this;var s=!t&&!r;!r&&typeof t=="object"&&(r=this),e&&((i={})[e._listenId]=e);for(var o in i)e=i[o],e.off(t,r,this),(s||n.isEmpty(e._events))&&delete this._listeningTo[o];return this}},l=/\s+/,c=function(e,t,n,r){if(!n)return!0;if(typeof n=="object"){for(var i in n)e[t].apply(e,[i,n[i]].concat(r));return!1}if(l.test(n)){var s=n.split(l);for(var o=0,u=s.length;o<u;o++)e[t].apply(e,[s[o]].concat(r));return!1}return!0},h=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],u=t[2];switch(t.length){case 0:while(++r<i)(n=e[r]).callback.call(n.ctx);return;case 1:while(++r<i)(n=e[r]).callback.call(n.ctx,s);return;case 2:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o,u);return;default:while(++r<i)(n=e[r]).callback.apply(n.ctx,t);return}},p={listenTo:"on",listenToOnce:"once"};n.each(p,function(e,t){f[t]=function(t,r,i){var s=this._listeningTo||(this._listeningTo={}),o=t._listenId||(t._listenId=n.uniqueId("l"));return s[o]=t,!i&&typeof r=="object"&&(i=this),t[e](r,i,this),this}}),f.bind=f.on,f.unbind=f.off,n.extend(t,f);var d=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(d.prototype,f,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return this.get(e)!=null},set:function(e,t,r){var i,s,o,u,a,f,l,c;if(e==null)return this;typeof e=="object"?(s=e,r=t):(s={})[e]=t,r||(r={});if(!this._validate(s,r))return!1;o=r.unset,a=r.silent,u=[],f=this._changing,this._changing=!0,f||(this._previousAttributes=n.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(i in s)t=s[i],n.isEqual(c[i],t)||u.push(i),n.isEqual(l[i],t)?delete this.changed[i]:this.changed[i]=t,o?delete c[i]:c[i]=t;if(!a){u.length&&(this._pending=r);for(var h=0,p=u.length;h<p;h++)this.trigger("change:"+u[h],this,c[u[h]],r)}if(f)return this;if(!a)while(this._pending)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return e==null?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var t,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var s in e){if(n.isEqual(i[s],t=e[s]))continue;(r||(r={}))[s]=t}return r},previous:function(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=e?n.clone(e):{},e.parse===void 0&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){t.lastFetchTime=Date.now();if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger("sync",t,n,e)},I(this,e),this.sync("read",this,e)},save:function(e,t,r){var i,s,o,u=this.attributes;e==null||typeof e=="object"?(i=e,r=t):(i={})[e]=t,r=n.extend({validate:!0},r);if(i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=n.extend({},u,i)),r.parse===void 0&&(r.parse=!0);var a=this,f=r.success;return r.success=function(e){a.attributes=u;var t=a.parse(e,r);r.wait&&(t=n.extend(i||{},t));if(n.isObject(t)&&!a.set(t,r))return!1;f&&f(a,e,r),a.trigger("sync",a,e,r)},I(this,r),s=this.isNew()?"create":r.patch?"patch":"update",s==="patch"&&(r.attrs=i),o=this.sync(s,this,r),i&&r.wait&&(this.attributes=u),o},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,i=function(){t.trigger("destroy",t,t.collection,e)};e.success=function(n){(e.wait||t.isNew())&&i(),r&&r(t,n,e),t.isNew()||t.trigger("sync",t,n,e)};if(this.isNew())return e.success(),!1;I(this,e);var s=this.sync("delete",this,e);return e.wait||i(),s},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||F();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return r?(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1):!0}});var v=["keys","values","pairs","invert","pick","omit"];n.each(v,function(e){d.prototype[e]=function(){var t=u.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}});var m=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),t.comparator!==void 0&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},g={add:!0,remove:!0,merge:!0},y={add:!0,remove:!1};n.extend(m.prototype,f,{model:d,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,y))},remove:function(e,t){var r=!n.isArray(e);e=r?[e]:n.clone(e),t||(t={});var i,s,o,u;for(i=0,s=e.length;i<s;i++){u=e[i]=this.get(e[i]);if(!u)continue;delete this._byId[u.id],delete this._byId[u.cid],o=this.indexOf(u),this.models.splice(o,1),this.length--,t.silent||(t.index=o,u.trigger("remove",u,this,t)),this._removeReference(u,t)}return r?e[0]:e},set:function(e,t){t=n.defaults({},t,g),t.parse&&(e=this.parse(e,t));var r=!n.isArray(e);e=r?e?[e]:[]:n.clone(e);var i,s,o,u,a,f,l,c=t.at,h=this.model,p=this.comparator&&c==null&&t.sort!==!1,v=n.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},w=t.add,E=t.merge,S=t.remove,x=!p&&w&&S?[]:!1;for(i=0,s=e.length;i<s;i++){a=e[i]||{},a instanceof d?o=u=a:o=a[h.prototype.idAttribute||"id"];if(f=this.get(o))S&&(b[f.cid]=!0),E&&(a=a===u?u.attributes:a,t.parse&&(a=f.parse(a,t)),f.set(a,t),p&&!l&&f.hasChanged(v)&&(l=!0)),e[i]=f;else if(w){u=e[i]=this._prepareModel(a,t);if(!u)continue;m.push(u),this._addReference(u,t)}u=f||u,x&&(u.isNew()||!b[u.id])&&x.push(u),b[u.id]=!0}if(S){for(i=0,s=this.length;i<s;++i)b[(u=this.models[i]).cid]||y.push(u);y.length&&this.remove(y,t)}if(m.length||x&&x.length){p&&(l=!0),this.length+=m.length;if(c!=null)for(i=0,s=m.length;i<s;i++)this.models.splice(c+i,0,m[i]);else{x&&(this.models.length=0);var T=x||m;for(i=0,s=T.length;i<s;i++)this.models.push(T[i])}}l&&this.sort({silent:!0});if(!t.silent){for(i=0,s=m.length;i<s;i++)(u=m[i]).trigger("add",u,this,t);(l||x&&x.length)&&this.trigger("sort",this,t)}return r?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,i=this.models.length;r<i;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return u.apply(this.models,arguments)},get:function(e){return e==null?void 0:this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||this.comparator.length===1?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){e=e?n.clone(e):{},e.parse===void 0&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){r.lastFetchTime=Date.now();var i=e.reset?"reset":"set";r[i](n,e),t&&t(r,n,e),r.trigger("sync",r,n,e)},I(this,e),this.sync("read",this,e)},create:function(e,t){t=t?n.clone(t):{};if(!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,i=t.success;return t.success=function(e,n){t.wait&&r.add(e,t),i&&i(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof d)return e;t=t?n.clone(t):{},t.collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,e.id!=null&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if((e==="add"||e==="remove")&&n!==this)return;e==="destroy"&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],t.id!=null&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments)}});var b=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(b,function(e){m.prototype[e]=function(){var t=u.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}});var w=["groupBy","countBy","sortBy","indexBy"];n.each(w,function(e){m.prototype[e]=function(t,r){var i=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,i,r)}});var E=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,x)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},S=/^(\S+)\s*(.*)$/,x=["model","collection","el","id","attributes","className","tagName","events"];n.extend(E.prototype,f,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;this.undelegateEvents();for(var t in e){var r=e[t];n.isFunction(r)||(r=this[e[t]]);if(!r)continue;var i=t.match(S),s=i[1],o=i[2];r=n.bind(r,this),s+=".delegateEvents"+this.cid,o===""?this.$el.on(s,r):this.$el.on(s,o,r)}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(!this.el){var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e["class"]=n.result(this,"className"));var r=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(r,!1)}else this.setElement(n.result(this,"el"),!1)}}),t.sync=function(e,r,i){var s=N[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:s,dataType:"json"};i.url||(o.url=n.result(r,"url")||F()),i.data==null&&r&&(e==="create"||e==="update"||e==="patch")&&(o.contentType="application/json",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{});if(i.emulateHTTP&&(s==="PUT"||s==="DELETE"||s==="PATCH")){o.type="POST",i.emulateJSON&&(o.data._method=s);var u=i.beforeSend;i.beforeSend=function(e){e.setRequestHeader("X-HTTP-Method-Override",s);if(u)return u.apply(this,arguments)}}o.type!=="GET"&&!i.emulateJSON&&(o.processData=!1),o.type==="PATCH"&&T&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=i.xhr=t.ajax(n.extend(o,i));return r.trigger("request",r,a,i),a};var T=typeof window!="undefined"&&!!window.ActiveXObject&&(!window.XMLHttpRequest||!(new XMLHttpRequest).dispatchEvent),N={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var C=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},k=/\((.*?)\)/g,L=/(\(\?)?:\w+/g,A=/\*\w+/g,O=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(C.prototype,f,{initialize:function(){},route:function(e,r,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var s=this;return t.history.route(e,function(n){var o=s._extractParameters(e,n);s.execute(i,o),s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),t.history.trigger("route",s,r,o)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(!this.routes)return;this.routes=n.result(this,"routes");var e,t=n.keys(this.routes);while((e=t.pop())!=null)this.route(e,this.routes[e])},_routeToRegExp:function(e){return e=e.replace(O,"\\$&").replace(k,"(?:$1)?").replace(L,function(e,t){return t?e:"([^/?]+)"}).replace(A,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var M=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},_=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,P=/msie [\w.]+/,H=/\/$/,B=/#.*$/;M.started=!1,n.extend(M.prototype,f,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(e==null)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(H,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(_,"")},start:function(e){if(M.started)throw new Error("Backbone.history has already been started");M.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),i=document.documentMode,s=P.exec(navigator.userAgent.toLowerCase())&&(!i||i<=7);this.root=("/"+this.root+"/").replace(D,"/");if(s&&this._wantsHashChange){var o=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!s?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var u=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&u.hash&&(this.fragment=this.getHash().replace(_,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe)));if(t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!M.started)return!1;if(!t||t===!0)t={trigger:!!t};var n=this.root+(e=this.getFragment(e||""));e=e.replace(B,"");if(this.fragment===e)return;this.fragment=e,e===""&&n!=="/"&&(n=n.slice(0,-1));if(this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}if(t.trigger)return this.loadUrl(e)},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new M;var j=function(e,t){var r=this,i;e&&n.has(e,"constructor")?i=e.constructor:i=function(){return r.apply(this,arguments)},n.extend(i,r,t);var s=function(){this.constructor=i};return s.prototype=r.prototype,i.prototype=new s,e&&n.extend(i.prototype,e),i.__super__=r.prototype,i};d.extend=m.extend=C.extend=E.extend=M.extend=j;var F=function(){throw new Error('A "url" property or function must be specified')},I=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}};return t}),
define("lib/mixin",["require","exports","module","vendor/remixin/dist/remixin-cjs"],function(e,t,n){n.exports=e("vendor/remixin/dist/remixin-cjs")}),
define("lib/mixins/observing",["require","exports","module","underscore","lib/backbone","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/backbone"),s=e("lib/mixin"),o=n.exports=new s(r.extend({around:{set:function(e,t,n,r){var i=r&&r.silent,s,o;return i||(o=this.get(t)),s=e(t,n,r),!i&&o!==n&&this.trigger(t,{prev:o,current:n}),s},unset:function(e,t,n){var r=n&&n.silent,i,s;return r||(s=this.get(t)),i=e(t,n),!r&&s!==undefined&&this.trigger(t,{prev:s,current:undefined}),i}},before:{reset:function(e){(!e||!e.silent)&&this.each(function(e,t){this.trigger(t,{prev:this.get(t),current:undefined})},this)}}},i.Events))}),
define("lib/store",["require","exports","module","underscore"],function(e,t,n){var r=e("underscore"),i={};["each","forEach","map","find","detect","filter","select","reduce","reject","every","all","any","some","include","contains"].forEach(function(e){i[e]=function(){var t=[this._store];return t.push.apply(t,arguments),r[e].apply(r,t)}});var s=n.exports=Class.extend([i,{initialize:function(e){this._store={},this.length=0,this._final=!1,this.maxLength=e&&e.maxLength||!1,this.maxLength&&(this._keys=[])},maxLength:0,get:function(e){return this._store[e]},set:function(e,t){return this.has(e)?this.maxLength&&this._keys.splice(this._keys.indexOf(e),1):(++this.length,this.maxLength&&this.length>this.maxLength&&this.unset(this._keys[0])),this.maxLength&&this._keys.push(e),this._store[e]=t,this},unset:function(e){var t;return this.has(e)&&(--this.length,this._final?this._store[e]=t:(delete this._store[e],this.maxLength&&this._keys.splice(this._keys.indexOf(e),1))),this},reset:function(){return this._store={},this.maxLength&&(this._keys=[]),this._final=!1,this.length=0,this},has:function(e){return this._store.hasOwnProperty(e)},keys:function(){return Object.keys(this._store)},finalize:function(){this._final=!0}}])}),function(t,n){typeof exports=="object"&&typeof module=="object"?module.exports=n():typeof define=="function"&&define.amd?
define("vendor/airbrake-js/airbrake-js",[],n):typeof exports=="object"?exports.Client=n():(t.airbrakeJs=t.airbrakeJs||{},t.airbrakeJs.Client=n())}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t={};return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";function r(e,t){t===void 0&&(t=64e3);var n="";for(var r=0;r<8;r++){e.context=i(e.context,r),e.params=i(e.params,r),e.environment=i(e.environment,r),e.session=i(e.session,r),n=JSON.stringify(e);if(n.length<t)return n}var s=new Error("airbrake-js: cannot jsonify notice (length="+n.length+" maxLength="+t+")");throw s.params={json:n.slice(0,Math.floor(t/2))+"..."},s}function i(e,t){var n={};for(var r in e)n[r]=o(e[r],t);return n}function o(e,t){var n=new s(t);return n.truncate(e)}function u(e,t){try{return e[t]}catch(n){return}}function a(e){var t=Object.prototype.toString.apply(e);return t.slice("[object ".length,-1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var s=function(){function e(e){e===void 0&&(e=0),this.maxStringLength=1024,this.maxObjectLength=128,this.maxArrayLength=32,this.maxDepth=8,this.keys=[],this.seen=[],this.maxStringLength=this.maxStringLength>>e||1,this.maxObjectLength=this.maxObjectLength>>e||1,this.maxArrayLength=this.maxArrayLength>>e||1,this.maxDepth=this.maxDepth>>e||1}return e.prototype.truncate=function(e,t,n){t===void 0&&(t=""),n===void 0&&(n=0);if(e===null||e===undefined)return e;switch(typeof e){case"boolean":case"number":case"function":return e;case"string":return this.truncateString(e);case"object":break;default:return String(e)}if(e instanceof String)return this.truncateString(e.toString());if(e instanceof Boolean||e instanceof Number||e instanceof Date||e instanceof RegExp)return e;if(e instanceof Error)return e.toString();if(this.seen.indexOf(e)>=0)return"[Circular "+this.getPath(e)+"]";var r=a(e);n++;if(n>this.maxDepth)return"[Truncated "+r+"]";this.keys.push(t),this.seen.push(e);switch(r){case"Array":return this.truncateArray(e,n);case"Object":return this.truncateObject(e,n);default:var i=this.maxDepth;this.maxDepth=0;var s=this.truncateObject(e,n);return s.__type=r,this.maxDepth=i,s}},e.prototype.getPath=function(e){var t=this.seen.indexOf(e),n=[this.keys[t]];for(var r=t;r>=0;r--){var i=this.seen[r];i&&u(i,n[0])===e&&(e=i,n.unshift(this.keys[r]))}return"~"+n.join(".")},e.prototype.truncateString=function(e){return e.length>this.maxStringLength?e.slice(0,this.maxStringLength)+"...":e},e.prototype.truncateArray=function(e,t){var n=0,r=[];for(var i in e){var s=e[i];n++;if(n>=this.maxArrayLength)break;r.push(this.truncate(s,i,t))}return r},e.prototype.truncateObject=function(e,t){var n=0,r={};for(var i in e){var s=u(e,i);if(s===undefined||typeof s=="function")continue;n++;if(n>=this.maxObjectLength)break;r[i]=this.truncate(s,i,t)}return r},e}();t.truncate=o},function(e,t,n){"use strict";var r=n(14),i=n(13),s=n(7),o=n(6),u=n(9),a=n(5),f=n(10),l=n(8),c=n(18),h=n(15),p=n(17),d=n(19),v=n(16),m=n(12),g=function(){function e(e){e===void 0&&(e={});var t=this;this.opts={},this.reporters=[],this.filters=[],this.offline=!1,this.errors=[],this.opts.projectId=e.projectId,this.opts.projectKey=e.projectKey,this.opts.host=e.host||"https://api.airbrake.io",this.opts.timeout=e.timeout||1e4,this.processor=e.processor||i.default,this.addReporter(e.reporter||c.detectReporter(e)),this.addFilter(s.default),this.addFilter(o.default()),this.addFilter(u.default),this.addFilter(a.default),typeof window=="object"?(this.addFilter(f.default),typeof window.addEventListener=="function"&&(window.addEventListener("online",this.onOnline.bind(this)),window.addEventListener("offline",function(){return t.offline=!0}))):this.addFilter(l.default),m.historian.registerNotifier(this)}return e.prototype.setProject=function(e,t){this.opts.projectId=e,this.opts.projectKey=t},e.prototype.setHost=function(e){this.opts.host=e},e.prototype.addReporter=function(e){var t;switch(e){case"fetch":t=h.default;break;case"node":t=p.default;break;case"xhr":t=d.default;break;case"jsonp":t=v.default;break;default:t=e}this.reporters.push(t)},e.prototype.addFilter=function(e){this.filters.push(e)},e.prototype.notify=function(e){var t=this;if(typeof e!="object"||e.error===undefined)e={error:e};var n=e.promise||new r.default;if(!e.error){var i=new Error("notify: got err="+JSON.stringify(e.error)+", wanted an Error");return n.reject(i),n}if(this.offline)return e.promise=n,this.errors.push(e),this.errors.length>100&&this.errors.slice(-100),n;var s={id:"",errors:[],context:Object.assign({language:"JavaScript",severity:"error",notifier:{name:"airbrake-js",version:"0.9.0",url:"https://github.com/airbrake/airbrake-js"}},e.context),params:e.params||{},environment:e.environment||{},session:e.session||{}},o=m.getHistory();return o.length>0&&(s.context.history=o),this.processor(e.error,function(e,r){s.errors.push(r);for(var i=0,o=t.filters;i<o.length;i++){var u=o[i],a=u(s);if(a===null)return;s=a}for(var f=0,l=t.reporters;f<l.length;f++){var c=l[f];c(s,t.opts,n)}}),n},e.prototype.wrap=function(e){if(e.__airbrake)return e;var t=this,n=function(){var n=Array.prototype.slice.call(arguments),r=t.wrapArguments(n);try{return e.apply(this,r)}catch(i){throw t.notify({error:i,params:{arguments:n}}),m.historian.ignoreNextWindowError(),i}};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n.__airbrake=!0,n.__inner=e,n},e.prototype.wrapArguments=function(e){for(var t in e){var n=e[t];typeof n=="function"&&(e[t]=this.wrap(n))}return e},e.prototype.call=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.wrap(e);return r.apply(this,Array.prototype.slice.call(arguments,1))},e.prototype.onerror=function(){m.historian.onerror.apply(m.historian,arguments)},e.prototype.onOnline=function(){this.offline=!1;for(var e=0,t=this.errors;e<t.length;e++){var n=t[e];this.notify(n)}this.errors=[]},e}();e.exports=g},function(e,t){Object.assign||(Object.assign=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})};for(var i=0,s=t;i<s.length;i++){var o=s[i];r(o)}return e})},function(e,t,n){var r=!1;(function(t,i){"use strict";typeof r=="function"&&r.amd?r("vendor/airbrake-js/airbrake-js","error-stack-parser",["stackframe"],i):e.exports=i(n(4))})(this,function(t){"use strict";var n=/(^|@)\S+\:\d+/,r=/^\s*at .*(\S+\:\d+|\(native\))/m,i=/^([email protected])?(\[native code\])?$/;return{parse:function(t){if(typeof t.stacktrace!="undefined"||typeof t["opera#sourceloc"]!="undefined")return this.parseOpera(t);if(t.stack&&t.stack.match(r))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw new Error("Cannot parse given Error object")},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var n=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/,r=n.exec(t.replace(/[\(\)]/g,""));return[r[1],r[2]||undefined,r[3]||undefined]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(r)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop()),i=n.join(" ")||undefined,s=["eval","<anonymous>"].indexOf(r[0])>-1?undefined:r[0];return new t({functionName:i,fileName:s,lineNumber:r[1],columnNumber:r[2],source:e})},this)},parseFFOrSafari:function(n){var r=n.stack.split("\n").filter(function(e){return!e.match(i)},this);return r.map(function(e){e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));if(e.indexOf("@")===-1&&e.indexOf(":")===-1)return new t({functionName:e});var n=e.split("@"),r=this.extractLocation(n.pop()),i=n.join("@")||undefined;return new t({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(n){var r=/Line (\d+).*script (?:in )?(\S+)/i,i=n.message.split("\n"),s=[];for(var o=2,u=i.length;o<u;o+=2){var a=r.exec(i[o]);a&&s.push(new t({fileName:a[2],lineNumber:a[1],source:i[o]}))}return s},parseOpera10:function(n){var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,i=n.stacktrace.split("\n"),s=[];for(var o=0,u=i.length;o<u;o+=2){var a=r.exec(i[o]);a&&s.push(new t({functionName:a[3]||undefined,fileName:a[2],lineNumber:a[1],source:i[o]}))}return s},parseOpera11:function(r){var i=r.stack.split("\n").filter(function(e){return!!e.match(n)&&!e.match(/^Error created at/)},this);return i.map(function(e){var n=e.split("@"),r=this.extractLocation(n.pop()),i=n.shift()||"",s=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||undefined,o;i.match(/\(([^\)]*)\)/)&&(o=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var u=o===undefined||o==="[arguments not available]"?undefined:o.split(",");return new t({functionName:s,args:u,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)}}})},function(e,t,n){var r=!1;(function(t,n){"use strict";typeof r=="function"&&r.amd?r("vendor/airbrake-js/airbrake-js","stackframe",[],n):e.exports=n()})(this,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e[0].toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}function a(e){if(e instanceof Object)for(var n=0;n<u.length;n++)e.hasOwnProperty(u[n])&&e[u[n]]!==undefined&&this["set"+t(u[n])](e[u[n]])}var r=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],s=["fileName","functionName","source"],o=["args"],u=r.concat(i,s,o);a.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof a)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new a(e)}},toString:function(){var t=this.getFunctionName()||"{anonymous}",n="("+(this.getArgs()||[]).join(",")+")",r=this.getFileName()?"@"+this.getFileName():"",i=e(this.getLineNumber())?":"+this.getLineNumber():"",s=e(this.getColumnNumber())?":"+this.getColumnNumber():"";return t+n+r+i+s}};for(var f=0;f<r.length;f++)a.prototype["get"+t(r[f])]=n(r[f]),a.prototype["set"+t(r[f])]=function(e){return function(t){this[e]=Boolean(t)}}(r[f]);for(var l=0;l<i.length;l++)a.prototype["get"+t(i[l])]=n(i[l]),a.prototype["set"+t(i[l])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(i[l]);for(var c=0;c<s.length;c++)a.prototype["get"+t(s[c])]=n(s[c]),a.prototype["set"+t(s[c])]=function(e){return function(t){this[e]=String(t)}}(s[c]);return a})},function(e,t,n){"use strict";function i(e){var t=e.errors[0];if(t.type!==""&&t.type!=="Error")return e;var n=t.message.match(r);return n!==null&&(t.type=n[1],t.message=n[2]),e}Object.defineProperty(t,"__esModule",{value:!0});var r=new RegExp(["^","\\[(\\$.+)\\]","\\s","([\\s\\S]+)","$"].join(""));t.default=i},function(e,t,n){"use strict";function r(){var e,t;return function(n){var r=JSON.stringify(n);return r===e?null:(t&&clearTimeout(t),e=r,t=setTimeout(function(){e=""},1e3),n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function i(e){var t=e.errors[0];if(t.type===""&&r.indexOf(t.message)!==-1)return null;if(t.backtrace){var n=t.backtrace[0];if(n.file==="<anonymous>")return null}return e}Object.defineProperty(t,"__esModule",{value:!0});var r=["Script error","Script error.","InvalidAccessError"];t.default=i},function(module,exports,__webpack_require__){"use strict";function filter(e){os&&(e.context.os=os.type()+"/"+os.release(),e.context.architecture=os.arch(),e.context.hostname=os.hostname()),e.context.platform=myProcess.platform,e.context.rootDirectory||(e.context.rootDirectory=myProcess.cwd()),myProcess.env.NODE_ENV&&(e.context.environment=myProcess.env.NODE_ENV),e.params.process={pid:myProcess.pid,cwd:myProcess.cwd(),execPath:myProcess.execPath,argv:myProcess.argv};for(var t in["uptime","cpuUsage","memoryUsage"])myProcess[t]&&(e.params.process[t]=myProcess[t]());return os&&(e.params.os={homedir:os.homedir(),uptime:os.uptime(),freemem:os.freemem(),totalmem:os.totalmem(),loadavg:os.loadavg()}),e}Object.defineProperty(exports,"__esModule",{value:!0});var myProcess,os;try{myProcess=eval("process"),os=eval("require")("os")}catch(_){}exports.default=filter},function(e,t,n){"use strict";function i(e){var t=e.errors[0];if(t.type!==""&&t.type!=="Error")return e;var n=t.message.match(r);return n!==null&&(t.type=n[1],t.message=n[2]),e}Object.defineProperty(t,"__esModule",{value:!0});var r=new RegExp(["^","Uncaught\\s","(.+?)",":\\s","(.+)","$"].join(""));t.default=i},function(e,t,n){"use strict";function r(e){return window.navigator&&window.navigator.userAgent&&(e.context.userAgent=window.navigator.userAgent),window.location&&(e.context.url=String(window.location),e.context.rootDirectory=window.location.protocol+"//"+window.location.host),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function i(e){if(!e)return"";var t=[];e.tagName&&t.push(e.tagName.toLowerCase()),e.id&&(t.push("#"),t.push(e.id)),e.className&&(t.push("."),t.push(e.className.split(" ").join(".")));if(e.getAttribute)for(var n=0,i=r;n<i.length;n++){var s=i[n],o=e.getAttribute(s);o&&t.push("["+s+'="'+o+'"]')}return t.join("")}function s(e){var t=10,n=[],r=e;while(r){var s=i(r);if(s!==""){n.push(s);if(n.length>t)break}r=r.parentNode}return n.length===0?String(e):n.reverse().join(" > ")}function o(e){return function(t){var n;try{n=t.target}catch(r){return}if(!n)return;var i={type:t.type};try{i.target=s(n)}catch(o){i.target="<"+o.toString()+">"}e.pushHistory(i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=["type","name","src"];t.makeEventHandler=o},function(module,exports,__webpack_require__){"use strict";function getHistory(){return exports.historian.getHistory()}Object.defineProperty(exports,"__esModule",{value:!0});var dom_1=__webpack_require__(11),Historian=function(){function Historian(){var _this=this;this.historyMaxLen=20,this.notifiers=[],this.errors=[],this.ignoreWindowError=0,this.history=[],this.ignoreNextXHR=0;if(typeof window=="object"){var self_1=this,oldHandler_1=window.onerror;window.onerror=function(){oldHandler_1&&oldHandler_1.apply(this,arguments),self_1.onerror.apply(self_1,arguments)}}else{var p=eval("process");p.on("uncaughtException",function(e){throw _this.notify(e),e}),p.on("unhandledRejection",function(e,t){_this.notify(e)})}typeof document=="object"&&this.dom(),typeof console=="object"&&this.console(),typeof fetch=="function"&&this.fetch(),typeof XMLHttpRequest!="undefined"&&this.xhr(),typeof history=="object"&&this.location()}return Historian.prototype.registerNotifier=function(e){this.notifiers.push(e);for(var t=0,n=this.errors;t<n.length;t++){var r=n[t];this.notifyNotifiers(r)}this.errors=[]},Historian.prototype.notify=function(e){if(this.notifiers.length>0){this.notifyNotifiers(e);return}this.errors.push(e),this.errors.length>this.historyMaxLen&&(this.errors=this.errors.slice(-this.historyMaxLen))},Historian.prototype.notifyNotifiers=function(e){for(var t=0,n=this.notifiers;t<n.length;t++){var r=n[t];r.notify(e)}},Historian.prototype.onerror=function(e,t,n,r,i){if(this.ignoreWindowError>0)return;if(i){this.notify({error:i,context:{windowError:!0}});return}if(!t||!n)return;this.notify({error:{message:e,fileName:t,lineNumber:n,columnNumber:r,noStack:!0},context:{windowError:!0}})},Historian.prototype.ignoreNextWindowError=function(){var e=this;this.ignoreWindowError++,setTimeout(function(){return e.ignoreWindowError--})},Historian.prototype.getHistory=function(){return this.history},Historian.prototype.pushHistory=function(e){if(this.isDupState(e)){this.lastState.num?this.lastState.num++:this.lastState.num=2;return}e.date||(e.date=new Date),this.history.push(e),this.lastState=e,this.history.length>this.historyMaxLen&&(this.history=this.history.slice(-this.historyMaxLen))},Historian.prototype.isDupState=function(e){if(!this.lastState)return!1;for(var t in e){if(t==="date")continue;if(e[t]!==this.lastState[t])return!1}return!0},Historian.prototype.dom=function(){var e=dom_1.makeEventHandler(this);document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e),document.addEventListener("click",e),document.addEventListener("keypress",e),window.addEventListener("error",function(t){if("error"in t)return;e(t)},!0)},Historian.prototype.console=function(){var e=this,t=["debug","log","info","warn","error"],n=function(t){if(!(t in console))return"continue";var n=console[t],r=function(){n.apply(console,arguments),e.pushHistory({type:"log",severity:t,arguments:Array.prototype.slice.call(arguments)})};console[t]=r};for(var r=0,i=t;r<i.length;r++){var s=i[r];n(s)}},Historian.prototype.fetch=function(){var e=this,t=fetch;window.fetch=function(n,r){var i={type:"xhr",date:new Date};typeof n=="string"?i.url=n:i.url=n.url,r&&r.method?i.method=r.method:i.method="GET",e.ignoreNextXHR++,setTimeout(function(){return e.ignoreNextXHR--});var s=t.apply(this,arguments);return s.then(function(t){i.statusCode=t.status,i.duration=(new Date).getTime()-i.date.getTime(),e.pushHistory(i)}),s}},Historian.prototype.xhr=function(){var e=this,t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,r,i,s,o){e.ignoreNextXHR===0&&(this.__state={type:"xhr",method:n,url:r}),t.apply(this,arguments)};var n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(t){var r=this.onreadystatechange;return this.onreadystatechange=function(t){this.readyState===4&&this.__state&&e.recordReq(this);if(r)return r.apply(this,arguments)},this.__state&&(this.__state.date=new Date),n.apply(this,arguments)}},Historian.prototype.recordReq=function(e){var t=e.__state;t.statusCode=e.status,t.duration=(new Date).getTime()-t.date.getTime(),this.pushHistory(t)},Historian.prototype.location=function(){this.lastLocation=document.location.pathname;var e=this,t=window.onpopstate;window.onpopstate=function(n){e.recordLocation(document.location.pathname);if(t)return t.apply(this,arguments)};var n=history.pushState;history.pushState=function(t,r,i){i&&e.recordLocation(i.toString()),n.apply(this,arguments)}},Historian.prototype.recordLocation=function(e){var t=e.indexOf("://");t>=0?(e=e.slice(t+3),t=e.indexOf("/"),t>=0?e=e.slice(t):e="/"):e.charAt(0)!=="/"&&(e="/"+e),this.pushHistory({type:"location",from:this.lastLocation,to:e}),this.lastLocation=e},Historian}();exports.default=Historian,exports.historian=new Historian,exports.getHistory=getHistory},function(e,t,n){"use strict";function s(e){try{return r.parse(e)}catch(t){i&&e.stack&&console.warn("ErrorStackParser:",t.toString(),e.stack)}return e.fileName?[e]:[]}function o(e,t){var n=[];if(!e.noStack){var r=s(e);if(r.length===0)try{throw new Error("fake")}catch(i){r=s(i),r.shift(),r.shift()}for(var o=0,u=r;o<u.length;o++){var a=u[o];n.push({"function":a.functionName||"",file:a.fileName||"<anonymous>",line:a.lineNumber||0,column:a.columnNumber||0})}}var f;e.name?f=e.name:f="";var l;e.message?l=String(e.message):l=String(e),t("stacktracejs",{type:f,message:l,backtrace:n})}Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=typeof console=="object"&&console.warn;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.onResolved=[],this.onRejected=[],e&&e(this.resolve.bind(this),this.reject.bind(this))}return e.prototype.then=function(e,t){return e&&(this.resolvedWith?e(this.resolvedWith):this.onResolved.push(e)),t&&(this.rejectedWith?t(this.rejectedWith):this.onRejected.push(t)),this},e.prototype.catch=function(e){return this.rejectedWith?e(this.rejectedWith):this.onRejected.push(e),this},e.prototype.resolve=function(e){if(this.resolvedWith||this.rejectedWith)throw new Error("Promise is already resolved or rejected");this.resolvedWith=e;for(var t=0,n=this.onResolved;t<n.length;t++){var r=n[t];r(e)}return this},e.prototype.reject=function(e){if(this.resolvedWith||this.rejectedWith)throw new Error("Promise is already resolved or rejected");this.rejectedWith=e;for(var t=0,n=this.onRejected;t<n.length;t++){var r=n[t];r(e)}return this},e}();t.default=r},function(e,t,n){"use strict";function i(e,t,n){var i=t.host+"/api/v3/projects/"+t.projectId+"/notices?key="+t.projectKey,s=r.default(e);fetch(i,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:s}).then(function(t){if(t.status>=200&&t.status<500){t.json().then(function(t){if(t.id){e.id=t.id,n.resolve(e);return}if(t.error){var r=new Error(t.error);n.reject(r);return}});return}t.text().then(function(e){var r=new Error("airbrake: fetch: unexpected response: code="+t.status+" body='"+e+"'");n.reject(r)})}).catch(function(e){n.reject(e)})}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=i},function(e,t,n){"use strict";function s(e,t,n){i++;var s="airbrakeCb"+String(i);window[s]=function(t){try{delete window[s]}catch(r){window[s]=undefined}if(t.id){e.id=t.id,n.resolve(e);return}if(t.error){var i=new Error(t.error);n.reject(i);return}var o=new Error(t);n.reject(o)};var o=encodeURIComponent(r.default(e)),u=t.host+"/api/v3/projects/"+t.projectId+"/create-notice?key="+t.projectKey+"&callback="+s+"&body="+o,a=window.document,f=a.getElementsByTagName("head")[0],l=a.createElement("script");l.src=u,l.onload=function(){return f.removeChild(l)},l.onerror=function(){f.removeChild(l);var e=new Error("airbrake: JSONP script error");n.reject(e)},f.appendChild(l)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=0;t.default=s},function(module,exports,__webpack_require__){"use strict";function report(e,t,n){var r=t.host+"/api/v3/projects/"+t.projectId+"/notices?key="+t.projectKey,i=jsonify_notice_1.default(e);request({url:r,method:"POST",body:i,headers:{"content-type":"application/json"},timeout:t.timeout},function(t,r,i){if(t){n.reject(t);return}if(r.statusCode>=200&&r.statusCode<500){var s=JSON.parse(i);if(s.id){e.id=s.id,n.resolve(e);return}if(s.error){var o=new Error(s.error);n.reject(o);return}}i=i.trim();var u=new Error("airbrake: node: unexpected response: code="+r.statusCode+" body='"+i+"'");n.reject(u)})}Object.defineProperty(exports,"__esModule",{value:!0});var jsonify_notice_1=__webpack_require__(0),request;try{request=eval("require")("request")}catch(_){}exports.default=report},function(e,t,n){"use strict";function r(e){return typeof fetch=="function"?"fetch":typeof XMLHttpRequest=="function"?"xhr":typeof window=="object"?"jsonp":"node"}Object.defineProperty(t,"__esModule",{value:!0}),t.detectReporter=r},function(e,t,n){"use strict";function i(e,t,n){var i=t.host+"/api/v3/projects/"+t.projectId+"/notices?key="+t.projectKey,s=r.default(e),o=new XMLHttpRequest;o.open("POST",i,!0),o.timeout=t.timeout,o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){if(o.readyState!==4)return;if(o.status>=200&&o.status<500){var t=JSON.parse(o.responseText);if(t.id){e.id=t.id,n.resolve(e);return}if(t.error){var r=new Error(t.error);n.reject(r);return}}var i=o.responseText.trim(),s=new Error("airbrake: xhr: unexpected response: code="+o.status+" body='"+i+"'");n.reject(s)},o.send(s)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=i},function(e,t,n){n(2),e.exports=n(1)}])}),
define("lib/mixins/persistent",["require","exports","module","underscore","lib/mixin","lib/support"],function(e,t,n){function v(e){var t,n,i,s,o,u,l;o={dontPersist:!0};if(!e.key){r.each(r.values(p.local).concat(r.values(p.session)),function(e){e.reset(o)});return}a.lastIndex=0,t=a.exec(e.key),t&&(i=t[1],n=t[2],i&&n&&(s=p[i][n],s&&(l=f(s),u=Object.keys(l),r.each(l,function(e,t){s.set(t,e,o)}),r.difference(s.keys(),u).forEach(function(e){s.unset(e,o)}))))}var r=e("underscore"),i=e("lib/mixin"),s=e("lib/support"),o="MW",u="::",a=new RegExp("^"+o+u+"(\\S+?)"+u+"(\\S+)"),f,l,c,h,p={local:{},session:{}},d=n.exports=new i({storage:null,keyName:null,type:null,namespace:null,around:{initialize:function(e,t,n){n=n||"local";if(p[n][t])return p[n][t];p[n][t]=this,e(),this.type=n,this.namespace=t,this.storage=c(n,t),this.keyName=l(n,t),this._store=f(this),this.length=r.keys(this._store).length}},after:{set:function(e,t,n){var r=!n||!n.dontPersist,i;r&&(i=h(this),i||this.unset(e))},unset:function(e,t){(!t||!t.dontPersist)&&h(this)},reset:function(e){(!e||!e.dontPersist)&&h(this)}},dispose:function(){this.storage.removeItem(this.keyName),this.reset({dontPersist:!0}),delete p[this.type][this.namespace]},write:function(){h(this)}});l=function(e,t){return[o,e,t].join(u)},h=function(e){var t=e.storage;if(t)try{return t.setItem(e.keyName,JSON.stringify(e._store)),!0}catch(n){return!1}},c=function(e){var t;return e==="local"&&s.localStorage?t=window.localStorage:e==="session"&&s.sessionStorage&&(t=window.sessionStorage),t},f=function(e){var t={},n=e.storage;return n&&(t=JSON.parse(n.getItem(e.keyName)||"{}")),t},window.addEventListener("storage",v,!1)}),
define("lib/collection",["require","exports","module","underscore","$","lib/endpoints","lib/backbone","lib/single","lib/url"],function(e,t,n){var r,i=e("underscore"),s=e("$"),o=e("lib/endpoints"),u=e("lib/backbone"),a=e("lib/single"),f=e("lib/url"),l={},c,h;r=u.Collection.extend({next_href:null,lastFetchTime:null,model:l,defaults:{offset:0,limit:10,secret_token:null},initialize:function(e,t){this.options=h(this.constructor,t||{}),this.setup(t)},setup:s.noop,getEndpointUrl:o.getEndpointUrl,_prepareModel:function(e){var t=e instanceof u.Model;return e=u.Collection.prototype._prepareModel.apply(this,arguments),e&&e.hold(this._usageCount()-(t?0:1)),e},_removeReference:function(e){return e.release(this._usageCount()),u.Collection.prototype._removeReference.apply(this,arguments)},fetch:function(e){var t=e&&e.url||i.result(this,"url");return t?this._requests&&this._requests[t]||u.Collection.prototype.fetch.call(this,e).done(function(e){this.next_href=e.next_href||!1}.bind(this)):s.Deferred().done(e&&e.success).resolve({})},bulkFetch:function(e){var t=arguments[1],n=arguments[2],r,i;if(!t){this._requests=this._requests||{};if(this._requests.bulk)return this._requests.bulk;this._requests.bulk=t=s.Deferred(),t.always(function(){delete this._requests.bulk}.bind(this)),n=this.length,r=this.options.limit,this.next_href||(this.options.limit=e-this.length),t.always(function(){this.options.limit=r,c.call(this,{limit:r})}.bind(this))}return this.length<e&&this.url()?(this.lastFetchTime?i={add:!0}:i={},i.silent=!0,c.call(this,{limit:e-this.length}),this.fetch(i).done(function(){this.bulkFetch(e,t,n)}.bind(this)).fail(t.reject)):(n?this.rest(n).forEach(function(e){this.trigger("add",e,this)},this):this.trigger("reset",this,{}),t.resolve()),t},url:function(){if(this.next_href!==null)return this.next_href;var e=f.parse(i.result(this,"baseUrl"));return i.extend(e.query,{limit:this.options.limit,offset:Math.max(this.options.offset,this.length),linked_partitioning:1}),this.options.secret_token&&(e.query.secret_token=this.options.secret_token),f.stringify(e)},parse:function(e){return e.collection},empty:function(){this.next_href=null,this.lastFetchTime=null,this.options.offset&&(this.options.offset=0),this.reset(null,{silent:!0})},hasDataForView:function(){return this.isPopulated()},isPopulated:function(){return!!this.lastFetchTime||!!this.length},isPrivate:function(){return!!this.options.secret_token},isFullyPopulated:function(){return this.next_href===!1},setLimit:function(e){this.options.limit=e,this.next_href&&(this.next_href=f.modify(this.next_href,{query:{limit:e}}))},indexOfEquivalentModel:function(e,t){var n=-1;return(t||this.models).some(function(t,r){if(e.equivalentTo(t))return n=r,!0}),n},compareModels:function(e,t){return e===t||e.equivalentTo(t)}}),n.exports=a.applyTo(r,{hashFn:function(e,t){return t&&t.resource_id||null},onHold:function(e,t,n){e.length&&e.at(0).hold&&e.invoke("hold",n)},onRelease:function(e,t,n){e.length&&e.at(0).release&&e.invoke("release",n)}}),h=function(e,t){return i.defaults(t,e.prototype.defaults),e===r?t:h(e.__super__.constructor,t)},c=function(e){if(this.next_href){var t=f.parse(this.next_href);i.extend(t.query,e),this.next_href=f.stringify(t)}}}),
define("lib/futures",["require","exports","module","$","underscore"],function(e,t,n){var r,i=e("$"),s=e("underscore");n.exports=r={defer:function(e){var t=i.Deferred(),n=t.promise();return s.isFunction(e)?(e.call(n,t.resolve,t.reject),n):(s.isObject(e)&&s.isFunction(e.then)&&e.then(t.resolve,t.reject),t)},settled:function(e){return i.whenAll(e)},all:function(e){return i.when.apply(i,e)},resolve:function(e){return i.Deferred().resolve(e)},reject:function(e){return i.Deferred().reject(e)},promisify:function(e){return function(){var t=i.Deferred();return e.apply(null,s.toArray(arguments).concat(function(e,n){e?t.reject(e):t.resolve(n)})),t.promise()}},call:function(e){var t=i.Deferred(),n=s.tail(arguments,1);try{t.resolve(e.apply(null,n))}catch(r){t.reject(r)}return t.promise()},mapEither:function(e,t){return t.then(e,e)},sequential:function(e){return e.reduce(function(e,t){function n(){return t().then(r.reject)}return e.then(t,n)},i.Deferred().resolve())},delay:function(e){var t=r.defer();return window.setTimeout(t.resolve.bind(t),e),t}}}),
define("lib/mixins/audio-source",["require","exports","module","lib/mixin"],function(e,t,n){var r=e("lib/mixin"),i=n.exports=new r({requires:["getSourceInfo","getSounds"],defaults:{isAudioSource:!0}})}),
define("models/sound",["require","exports","module","underscore","models/audible-interface","lib/mixins/models/batching","lib/mobi-audio","lib/model","lib/url","lib/mixins/urn","lib/endpoints"],function(e,t,n){function E(){var e=!this.isBlocked()&&!this._temporarilyUnavailable;this.set("playable",e)}var r=e("underscore"),i=e("models/audible-interface"),s=e("lib/mixins/models/batching"),o=e("lib/mobi-audio"),u=e("lib/model"),a=e("lib/url"),f=e("lib/mixins/urn"),l=e("lib/endpoints"),c=3e4,h=function(){return this},p=r.constant(1),d=r.constant(undefined),v="BLOCK",m="SNIP",g="MONETIZE",y="ALLOW",b="SUB_HIGH_TIER",w=n.exports=i.extend(f,s.withOptions({batchEndpoint:l.getEndpointUrl("trackBatch"),getBatchParams:function(e){var t=e.playlist;return{playlistId:t&&t.id,playlistSecretToken:t&&t.get("secret_token")}}}),{resource_type:"sound",urnPrefix:"soundcloud:tracks",_temporarilyUnavailable:!1,_unavailableResetTimer:null,_suppressGlobalEvents:null,audio:null,playlist:null,playbackOptions:{},setup:function(e,t){i.prototype.setup.apply(this,arguments),this._suppressGlobalEvents=!!t&&!!t.suppressGlobalEvents,E.call(this)},isPlaying:function(){return!!this.audio&&!!this.audio.isPlaying()},isLoading:function(){return!!this.audio&&!!this.audio.isLoading()},currentTime:function(){return this.audio?this.audio.getPosition():0},loadProgress:function(){if(!this.audio)return 0;var e=this.audio.getCurrentBufferedTimeRange();return e?Math.min(1,e.end/this.getMediaDuration()):0},createAudio:function(){return this.audio||(window.clearTimeout(this._unavailableResetTimer),this._temporarilyUnavailable=!1,this.audio=o.createAudioFromSound(this,{suppressGlobalEvents:this._suppressGlobalEvents}),this.audio.isDead()?this.audio=null:this.audio.onChange.subscribe(function(e){e.dead&&(this.audio=null)}.bind(this))),!!this.audio},disposeAudio:function(){this.audio&&(this.audio.kill(),this.audio=null,window.clearTimeout(this._unavailableResetTimer))},getSounds:function(){return[this]},getCurrentSound:h,getFirstSound:h,getLastSound:h,getNumSounds:p,getNextSound:d,getSoundIndex:function(e){return e===this?0:-1},play:function(e){this.playlist?(this.playlist.setCurrentSound(this),this.playlist.play(e)):this.createAudio()&&(this.playbackOptions=e||{},this.audio.play())},pause:function(e){this.playlist?this.playlist.pause(e):this.audio&&(this.playbackOptions=e||{},this.audio.pause())},seek:function(e){this.createAudio()&&this.audio.seek(e)},baseUrl:function(){return this.getEndpointUrl("track",{urn:this.getUrn()})},parse:function(e){return i.prototype.parse.apply(this,arguments),e.playback_count||(e.playback_count=0),e.waveform_url&&(e.waveform_url=e.waveform_url.replace("wis.","w1.").replace(".json",".png")),e},extractSecretToken:function(e){return a.parse(e.stream_url).query.secret_token},duration:function(){return this.get("full_duration")||this.get("duration")},getFixedDuration:function(){return Math.max(this.duration(),this.getMediaDuration())},getMediaDuration:function(){var e=this.audio?this.audio.getDuration():null;return e!==null?e:this.get("duration")},isAllowed:function(){return this.get("policy")===y},isBlocked:function(){return this.get("policy")===v},isMonetized:function(){return this.get("policy")===g},isSnippetized:function(){return this.get("policy")===m},isHighTier:function(){return this.get("monetization_model")===b},isPlayable:function(){return this.get("playable")},permalinkUrl:function(){return this.get("permalink_url")},makeTemporarilyUnavailable:function(){this._temporarilyUnavailable=!0,window.clearTimeout(this._unavailableResetTimer),this._unavailableResetTimer=window.setTimeout(function(){this._temporarilyUnavailable=!1,E.call(this)}.bind(this),c),E.call(this)},toJSON:function(){var e=u.prototype.toJSON.apply(this,arguments);return e._playlist={},this.playlist&&r.each(["id","permalink","permalink_url","secret_token","user_id"],function(t){e._playlist[t]=this.get(t)}.bind(this.playlist)),e},registerUrl:function(){var e={secret_token:this.get("secret_token"),policy:this.get("policy")};return this.getEndpointUrl("trackRegisterPlayback",{id:this.id},e)},getUserId:function(){var e=this.get("user");return e?e.id:null}},{hashFn:function(e){var t=e.resource_id;return t?typeof t=="object"?[t.playlist_id,t.sound_id].join("_"):t:e.id||null},resolve:function(e,t,n){return u._resolve(this,[e,t,n],function(n){var r=n.get("user");return r&&n.get("permalink")===t&&r.permalink===e})},onCleanup:function(e){e.disposeAudio()}})}),
define("shared/lib/url",["require","exports","module","underscore"],function(e,t,n){function a(e){return e.split("/").map(f).join("/")}function f(e){return encodeURI(e).replace(/#/g,"%23").replace(/\?/g,"%3F")}var r=e("underscore"),i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:\/@]*)(?::([^:\/@]*))?)[email protected])?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,s=["---","scheme","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],o,u=n.exports={parse:function(e,t){var n=i.exec(e),r,o,a={};t||(t=s);for(r=1;r<s.length;++r){o=s[r];if(t.indexOf(o)!==-1)if(n[r]||o==="query")switch(o){case"port":a[o]=parseInt(n[r],10);break;case"path":a[o]=n[r].split("/").map(decodeURIComponent).join("/");break;case"query":a[o]=u.parseQueryString(n[r]);break;default:a[o]=n[r]}}return a},joinPath:function(e){return e.filter(Boolean).join("/")},parseQueryString:function(e){var t={};return e&&e.replace(/([^?=&]+)(?:=([^&]*))?/g,function(e,n,r){n=decodeURIComponent(n),r=decodeURIComponent((r||"").replace(/\+/g," "));switch(typeof t[n]){case"object":t[n].push(r);break;case"undefined":t[n]=r;break;default:t[n]=[t[n],r]}}),t},param:function(e,t){t=t||{};var n=[],i=function(e,t){n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)},s=function(e,n){r.isArray(n)?n.forEach(function(n,r){s(e+"["+(typeof n=="object"&&t.jquerySerialize?r:"")+"]",n)}):r.isObject(n)?r.each(n,function(t,n){s(e+"["+n+"]",t)}):i(e,n)};return r.each(e,function(e,t){s(t,e)}),n.join("&").replace(/%20/g,"+")},stringify:function(e,t){var n=[],i,s;return t&&(s=u.parse(t),e.query&&s.query&&(r.assign(s.query,e.query),delete e.query),e=r.assign({},s,e)),e.scheme&&n.push(e.scheme+"://"),e.user&&(n.push(e.user),e.password&&n.push(":"+e.password),n.push("@")),e.host&&n.push(e.host),e.port&&n.push(":"+e.port),e.path&&(typeof e.path=="string"?n.push(a(e.path)):n.push(a(u.joinPath(e.path)))),i=o(e.query),i&&n.push("?"+i),e.fragment&&n.push("#"+e.fragment),n.join("")},modify:function(e,t){var n=u.parse(e);return r.isFunction(t)?n=t.call(null,n):typeof t=="object"&&(t.query&&(r.assign(n.query,t.query),delete t.query),r.assign(n,t)),u.stringify(n)},normalize:function(e){var t=r.defaults(u.parse(e),{scheme:"http"});return u.stringify(t)}};o=function(e){var t,n,r,i,s,o=[];if(e)for(t in e)if(e.hasOwnProperty(t)){i=e[t];if(i!==null&&i!==s)if(typeof i=="object"){r=i.length;for(n=0;n<r;++n)o.push(encodeURIComponent(t)+"="+encodeURIComponent(i[n]).replace(/%2F/g,"/"))}else o.push(encodeURIComponent(t)+"="+encodeURIComponent(i).replace(/%2F/g,"/"))}return o.join("&")}}),
define("shared/vendor/routeabout/routeabout",["require","exports","module"],function(e,t,n){"use strict";function r(e){var n=e===void 0?{}:e,r=n.definitions,s=r===void 0?{}:r,o=n.includeQueryParams,a=o===void 0?!1:o,c=n.caseInsensitive,h=c===void 0?!1:c,p=u(s),d=l({},i,p),v=f(d,!0),m=a?"(?:\\?([\\s\\S]*))?":"",g=h?"i":"";return function(e){var n=new RegExp("^"+v(e)+m+"$",g);return n[t.sourceKey]=e,n}}function u(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=o(r),t},{})}function a(e,t){return t.length-e.length}function f(e,t){var n=Object.keys(e).sort(a).join("|"),r=new RegExp("(?:\\(\\?)?:("+n+")"+s,"g"),i=/^\(\?:/,o=t?"":"?:",u=function(t,n,r){r===void 0&&(r="");if(i.test(t))return t;var s=r?"(?:"+e[n]+")":e[n];return"("+o+s+r+")"};return function(e){return r.lastIndex=0,e.replace(r,u)}}function l(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(e,t){for(var n in t)e[n]=t[n];return e},e)}t.sourceKey=typeof Symbol=="function"?Symbol("source"):"routeabout.source",t.create=r;var i={alpha:"[a-zA-Z_-]",alphanum:"[a-zA-Z0-9_-]",num:"[0-9]"},s="(\\+|\\*|\\?|\\{\\d+,?\\d*\\})?",o=f(i,!1)}),
define("lib/tracking/comscore",["require","exports","module","$"],function(e,t,n){var r=e("$"),i="comScore-beacon",s="16601931",o=n.exports={init:function(){var e=document.createElement("script");return window._comscore=window._comscore||[{c1:"2",c2:s}],e.async=!0,e.src=(document.location.protocol==="https:"?"https://sb":"http://b")+".scorecardresearch.com/beacon.js",e.id=i,e.addEventListener("load",function(){this.destroy()}.bind(this)),document.body.appendChild(e),e},destroy:function(){var e=document.getElementById(i);return e?(r(e).remove(),!0):!1}}}),
define("lib/tracking/helpers/core",["require","exports","module","underscore","config"],function(e,t,n){var r=e("underscore"),i=e("config"),s,o={listen:"tracks"},u={search:"category"},a={suggestions:{args:{category:"suggestions"},layoutName:"search"}},f=n.exports={getUserId:function(){return i.get("me").id},getLevel:function(e){var t=i.get("router").getLayoutInfo().layoutName;return e&&e.level||o[t]||t},getChapter:function(e){var t=i.get("router").getLayoutInfo(),n=t.layoutName,s=u[n]||"subpage",o=t.args&&t.args[s]||e.chapter||"main";return r.compact([o])},getContext:function(e){return[this.getLevel(e),this.getChapter(e)].join(":")},getAudioContext:function(){var e,t,n,r;return s?(e=s.layoutName,t=o[e]||e,n=u[e]||"subpage",r=s.args&&s.args[n]||"main"):(t="tracks",r="main"),[t,r].join(":")},saveAudioContext:function(e){var t=i.get("router").getLayoutInfo(),n=a[e];s=r.extend(n||r.pick(t,"args","layoutName"),{url:window.location.href.replace(/^https?:\/\/[^\/]+\//,"")})},getImpressionEvent:function(e){return{context:this.getImpressionContext(e),urn:this.getURN(e.contextData),impression_name:e.identifier}},getImpressionContext:function(e){return e&&e.contextData&&e.contextData.context||{campaign:e.identifier}},getURN:function(e){if(e){var t=e.kind,n=e.id,r=t==="user"?"users":t==="track"?"tracks":undefined;if(t&&r&&n)return"soundcloud:"+r+":"+n}return null},getIdentifier:function(e){return[e.identifier||""]}}}),
define("vendor/event-gateway/event-gateway",["require","exports","module"],function(e,t,n){(function(){function N(){clearTimeout(p),t=r=i=s=o=u=a=f=l=d=p=m=T=window.__sc_events=undefined,v=[],S=!0,x=!0,h=function(){throw new Error("EventGateway must be initialized")}}function C(){return Math.floor(Math.random()*1e6)}function k(e){var t={},n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function L(e,t){var n=k(e),r;for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function A(e){return e=typeof e=="object"?e:{},e.context=e.context||{},e.context.scope=e.context.scope||[],e}function O(e){return e.replace(E,"v$&")}function M(e,t,n){var r=e[n];return typeof r=="object"?t[n]=Object.keys(X(r)).reduce(M.bind(null,r),{}):t[n]=""+r,t}function _(e,t){var n=X(t);return e==="0.0.0"?Object.keys(n).reduce(M.bind(null,n),{}):n}function D(e,t,n){var r={events:e};l&&(r.auth_token=l),m("post",P(),r,n,function(n){n&&t&&setTimeout(function(){D(e,!1,!1)},b)})}function P(){return a+"/v1/events"}function H(){function t(e){e.onload=e.onerror=null}function n(e,n){t(e),n()}function r(e,n){t(e),/^4/.test(e.status)||n(e.status)}var e=!!(window&&window.navigator&&window.navigator.sendBeacon);return function(i,s,o,u,a){var f=JSON.stringify(o);if(u&&e)window.navigator.sendBeacon(s,f);else{var l=new window.XMLHttpRequest;l.onload=n.bind(null,l,a),l.onerror=r.bind(null,l,a),l.open(i,s,!0),l.send(f)}}}function B(e){T&&window.__sc_events.push(e),d||!x?(v=v.concat(e),!p&&x&&(p=setTimeout(j,d))):D(e,!0,!1)}function j(e){clearTimeout(p),p=null,v.length&&(D(v.slice(),!0,!!e),v.length=0)}function F(e,n,r){h();var a=Date.now();V(r).then(function(l){var h,p;l=l||{},l.anonymous_id=t,l.client_id=o,l.ts=a,l.url=l.url||window.location.href,u&&(l.app_version=u);var d=[];if(s)for(h in s)d.push(s[h]);d.length&&(l.part_of_variants=d.join(",")),i&&(l.origin=i),f&&!l.user&&(l.user=f),c&&(l.platform=c),(p=document.referrer).length>0&&(l.referrer=p),B({event:e,version:O(n),payload:_(n,l)})})}function I(e,t){var n=0,r=t.length;for(;n<r;n++)if(e[t[n]]===undefined)return!0;return!1}function q(e){return e?R("users",e):t}function R(e,t){return["soundcloud",e,t].join(":")}function U(e,t){t&&(e.query_urn=t.queryUrn,e.query_position=t.position)}function z(){}function W(e){var t={},n,r;if(e)for(n=1;n<arguments.length;++n)r=arguments[n],r in e&&(t[r]=e[r]);return t}function X(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&e[t]!=null&&(n[t]=e[t]);return n}function V(e){return e&&typeof e.then=="function"?e:{then:function(t){return V(t(e))}}}function $(e){return function(){if(!S)throw new Error("EventGateway: access to read/write cookies is blocked.");return e.apply(null,arguments)}}var e,t,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g={},y="sc_anonymous_id",b=3e4,w="https://telemetry.soundcloud.com",E=/^[^v]/,S=!0,x=!0,T=!1;N(),e={_anonymousId:null,initialize:function(n){if(r)return;if(!n.id)throw new Error("EventGateway: You need to pass an id");i=n.origin,n.user&&(f=R("users",n.user)),n.platform!==undefined&&(c=n.platform),n.useCookies!==undefined&&(S=n.useCookies),n.isEnabled!==undefined&&(x=n.isEnabled),n.logEvents&&(T=!0,window.__sc_events=[]),g=n.eventVersions||{},t=this._anonymousId=e.getAnonymousId(),d=n.batchTimeout||!1,m=n.requestTransport||H(),o=n.id,u=n.appVersion||null,a=n.trackingUrl||w,l=n.authToken||null,r=!0,h=z},deinitialize:function(){N()},toggle:function(e){x=e,x&&j()},loadQueue:B,saveQueue:function(){return v},useCookies:function(n){S=n,S&&t&&e.anonymousIdStore.set(t)},setUser:function(e){e==null?f=e:f=R("users",e)},setExperiments:function(e){s=e},getAnonymousId:function(){!t&&S&&(t=e.anonymousIdStore.get());if(!t||t==="undefined")t=[C(),C(),C(),C()].join("-"),S&&e.anonymousIdStore.set(t);return t},setAuthToken:function(e){l=e},logEvent:F,pageview:function(e,t,n,r){F("pageview",g.pageview||"0.0.0",V(r).then(function(r){r=A(r);var i=q(e),s={user:i,level:t,chapter:n.join("::"),page_name:r.page_name,page_urn:r.page_urn,query_urn:r.query_urn,locale:r.locale,navigation_type:r.navigation_type};return L(s,r.params)}))},impression:function(e,t){F("impression",g.impression||"1.16.0",V(t).then(function(e){e=A(e);var t=W(e,"impression_name","impression_category","impression_object","page_name","page_urn","ad_urn","monetized_object","monetization_type","promoted_by","external_media");return t.page_context=e.context.scope.join(":"),t}))},click:function(e,t,n,r){F("click",g.click||"0.0.0",V(r).then(function(r){r=A(r);var i={ad_urn:r.ad_urn,campaign:r.context.campaign,chapter:n.join("::"),context:r.context.scope.join(":"),external_media:r.external_media,level:t,monetization_type:r.monetization_type,monetized_object:r.monetized_object,promoted_by:r.promoted_by,urn:r.urn,user:q(e),click_name:r.click_name,click_object:r.click_object,click_target:r.click_target,click_attributes:r.click_attributes,page_name:r.page_name,page_urn:r.page_urn};return U(i,r.context.attribution),L(i,r.params)}))},audio:function(e){F("audio",g.audio||"1.27.17",V(e).then(function(e){var t=e.id,n=R("tracks",t),r=W(e,"user","page_name","page_urn","source","in_playlist","playlist_position","reposted_by","track_length","protocol","player_type","preset","quality","audio_quality_mode","app_state","action","trigger","pause_reason","ad_urn","monetization_type","promoted_by","policy","monetization_model");return U(r,e.attribution),r.track=n,r.track_owner=R("users",e.trackOwnerId),r.playhead_position=e.playheadPosition,r.monetized_object=e.monetized_urn,r}.bind(this)))},audioPerformance:function(e){F("audio_performance",g.audioPerformance||"0.0.0",V(e).then(function(e){if(I(e,["type","latency","protocol","host"])||e.playertype===undefined&&e.player_type===undefined)throw new Error("EventGateway — AudioPerformance : One or multiple mandatory arguments are missing");return{type:e.type,latency:e.latency,protocol:e.protocol,player_type:e.player_type||e.playertype,host:e.host,bitrate:e.bitrate,format:e.format,preloaded:e.preloaded,app_state:e.app_state,track_urn:e.track_urn,player_version:e.player_version,player_build_number:e.player_build_number,preset:e.preset,quality:e.quality,audio_quality_mode:e.audio_quality_mode,entity_type:e.entity_type,player_variant:e.player_variant}}))},audioError:function(e){F("audio_error",g.audioError||"0.0.0",V(e).then(function(e){if(I(e,["error_code","protocol","player_type","host","url"]))throw new Error("EventGateway — AudioError : One or multiple mandatory arguments are missing");return{error_code:e.error_code,protocol:e.protocol,player_type:e.player_type,host:e.host,url:e.url,app_state:e.app_state,track_urn:e.track_urn,player_version:e.player_version,player_build_number:e.player_build_number,log_id:e.log_id,preset:e.preset,quality:e.quality,audio_quality_mode:e.audio_quality_mode,entity_type:e.entity_type,player_variant:e.player_variant}}))},appLoad:function(e,t){F("appload",g.appLoad||"0.0.0",V(t).then(function(t){return{latency:t.latency,user:q(e),level:t.level}}))},statsView:function(e,t){F("stats_view",g.statsView||"0.0.0",V(t).then(function(t){var n=q(e);return L({user:n},t)}))},anonymousIdStore:{get:$(function(){var e=document.cookie.split(y+"=");return e.length>1&&e[1].split(";")[0]}),set:$(function(e){var t="."+window.location.hostname.replace(/.*\.(.+\..+)/,"$1"),n=new Date,r;n.setTime(n.getTime()+31536e7),r="; expires="+n.toGMTString(),document.cookie=y+"="+e+r+"; path=/; domain="+t})},flush:j},typeof n!="undefined"&&n.exports?n.exports=e:(window.SC=window.SC||{},window.SC.EventGateway=e)})()}),
define("lib/lingua",["require","exports","module","lib/cookies","vendor/i18n/i18n","lib/persistent-store","shared/config/supported-locales"],function(e,t,n){function p(e){r.set(f.getLocaleCookieName(),e)}function d(e){var t=a.get(u);t&&(p(e),a.dispose())}var r=e("lib/cookies"),i=e("vendor/i18n/i18n"),s=e("lib/persistent-store"),o=e("shared/config/supported-locales"),u="locale",a=new s(u),f,l,c=o.locales,h=n.exports={initialize:function(e){l=c[e]?e:o.defaultLocale,f=f||new i,f.setLocale(l),f.extend(c[l]),this.numberHelper=f.number,this.dateTimeHelper=f.dateTime,d(l)},initializeFromBasicSettings:function(){this.initialize(window.document.documentElement.getAttribute("lang")),p(l)},getLocale:function(){return l},getCurrentLanguage:function(){return o.experimentalAndPublicLanguages[l]},t:function(e,t,n){n=n||{};var r=f.t(e,t,n.context,n.comment);return r},tp:function(e,t,n,r,i){i=i||{};var s=f.tp(e,t,n,r,i.context,i.comment);return s}}}),
define("lib/tracking/types/actions",["require","exports","module"],function(e,t,n){n.exports={navigate:{identifiers:["home","sign-in","user","track","playlist"]},submit:{identifiers:["signin_deeplink_button:signin","download_app_button:download","download_app_badge:download","like","get_the_app::like","consumer_sub_ad:click"]},cancel:{identifiers:["get_the_app_cancel::like"]}}}),
define("lib/tracking/types/impressions",["require","exports","module"],function(e,t,n){var r=n.exports=["searchItem","download_app_interstitial","upsell_banner","consumer_sub_ad"]}),
define("lib/tracking/types/pageviews",["require","exports","module","config"],function(e,t,n){function i(e){return r.get("router").getLayoutInfo().args[e]}function s(e){return e=e||"subpage",[i(e)||"main"]}var r=e("config");n.exports={"default":{chapter:["default",window.location],level:"default"},listen:{chapter:s,level:"tracks"},search:{chapter:s.bind(s,"category"),level:"search"},"static-page":{chapter:s.bind(s,"pageName"),level:"static-page"},messages:{chapter:s,level:"messages"},error:{chapter:s,level:"error-page"},playlist:{chapter:s,level:"playlist"},premium:{chapter:s,level:"premium"},"consumer-premium":{chapter:s,level:"consumer-premium"},user:{chapter:s,level:"profile"},"people-directory":{chapter:s,level:"people-directory"}}}),
define("lib/model",["require","exports","module","$","underscore","api-wrapper","lib/backbone","config","lib/connect","lib/endpoints","lib/mixins/models/data-dns-prefetcher","lib/single","lib/url","lib/futures"],function(e,t,n){function m(e,t){var n=l.getEndpointUrl("resolveApiWeb",null,{permalink_url:t});return i.ajax({dataType:"json",url:n}).then(function(t){var n=new e(t);return n.release(),n})}var r,i=e("$"),s=e("underscore"),o=e("api-wrapper"),u=e("lib/backbone"),a=e("config"),f=e("lib/connect"),l=e("lib/endpoints"),c=e("lib/mixins/models/data-dns-prefetcher"),h=e("lib/single"),p=e("lib/url"),d=e("lib/futures"),v=Array.prototype.slice;r=u.Model.extend(c,{resource_type:null,lastFetchTime:null,_submodels:null,submodelMap:null,getEndpointUrl:l.getEndpointUrl,initialize:function(){this._submodels=[],s.each(this.submodelMap,function(e,t){this.on("change:"+t,this.createSubmodel.bind(this,e,t))},this),this.setup.apply(this,arguments),s.each(this.submodelMap,function(e,t){this.get(t)&&this.createSubmodel(e,t)},this)},setup:i.noop,createSubmodel:function(e,t){this.addSubmodel(new e(this.get(t)))},addSubmodel:function(){v.call(arguments).forEach(function(e){this._submodels.indexOf(e)===-1?this._submodels.push(e):e.release()}.bind(this))},getAttributesToBeSaved:function(){var e=this.toJSON(),t={};return t[o.toAPIResource(this.resource_type)]=e,t},save:function(e,t){return u.Model.prototype.save.call(this,e,s.extend({url:this.saveUrl(),data:i.param(this.getAttributesToBeSaved())},t)).done(function(e){this.set(e),this.updateResourceId()}.bind(this))},saveUrl:function(){var e=s.result(this,"baseUrl");return this.isNew()&&(e=e.split("/").slice(0,-1).join("/")),e},destroy:function(e){return u.Model.prototype.destroy.call(this,s.extend({url:this.destroyUrl()},e))},destroyUrl:function(){return s.result(this,"baseUrl")},baseUrl:function(){throw new Error("baseUrl should be defined for every model")},url:function(e){var t=this.getSecretToken(),n=s.result(this,e||"baseUrl");return t?p.modify(n,{query:{secret_token:t}}):n},getSecretToken:function(){return this.get("secret_token")},signedUrl:function(e){var t=this.get(e),n;return t?(n={scheme:"http",query:{client_id:a.get("client_id")}},f.isLoggedIn()&&(n.scheme="https",n.query.oauth_token=f.getAuthToken()),this.get("secret_token")&&(n.query.secret_token=this.get("secret_token")),p.modify(t,n)):null},equivalentTo:function(e){return this===e||this.id&&this.id===e.id},toJSON:function(){var e=u.Model.prototype.toJSON.apply(this,arguments);return e._resource_id=this.resource_id,e._resource_type=this.resource_type,e},parse:function(e){var t;return typeof this.baseUrl=="string"&&(t=p.parse(this.baseUrl).query.secret_token),t||(t=this.extractSecretToken(e)),t&&(e.secret_token=t),e},extractSecretToken:i.noop,toString:function(){return this.resource_type?this.resource_type+" ("+(this.isNew()?"new":this.resource_id)+")"+": "+(this.attributes.permalink||this.attributes.title||this.attributes.name):Object.prototype.toString.call(this)},hasDataForView:function(e){return e.getRequiredAttributes(this).every(Object.prototype.hasOwnProperty,this.attributes)},updateResourceId:function(){var e=this.constructor.hashFn(this.attributes),t=this.resource_id;e&&(this.resource_id=e,this.constructor.instances.changeKey(t,e))},attrExists:function(e){var t=Object.prototype.hasOwnProperty;return s.isArray(e)?e.every(t,this.attributes):t.call(this.attributes,e)},getOrFetch:function(e){var t=d.defer();return this.attrExists(e)?t.resolve(this.pick.apply(this,e)):this.fetch().then(function(){if(!this.attrExists(e))throw new Error("After fetching some of the requested attributes are still missing.");return this.pick.apply(this,e)}.bind(this)).then(t.resolve,t.reject),t}},{_resolve:function(e,t,n){Array.isArray(t)&&(t=p.joinPath(t));var r,s=e.instances.find(n);return s?i.Deferred().resolve(s):(r=p.stringify({host:"https://soundcloud.com/",path:t}),m(e,r))}}),n.exports=h.applyTo(r,{hashFn:function(e){return e&&e.id||null},onCleanup:function(e){e._submodels&&e._submodels.length&&(s.invoke(e._submodels,"release"),e._submodels.length=0)},prepareArgs:function(e,t){return t=t||{},e=e||{},t.parse&&(e=this.parse(e)),[e,t]},prepareInstance:function(e,t){return t=t||{},t.collection&&(this.lastFetchTime=Date.now()),s.isEmpty(e)||this.set(e),delete this.attributes.resource_id,this},getIncrementValue:function(e,t){var n=t&&t.collection;return n?n.constructor.instances.countFor(n.resource_id):1}})}),
define("lib/mixins/urn",["require","exports","module","lib/mixin"],function(e,t,n){var r=e("lib/mixin"),i=n.exports=new r({requires:["urnPrefix"],getUrn:function(){var e=this.id||this.resource_id;return this.urnPrefix&&e?this.urnPrefix+":"+e:undefined}})}),
define("css",["require","exports","module","underscore","lib/lingua","lib/helpers/client-environment-helper"],function(e,t,n){var r=e("underscore"),i=e("lib/lingua"),s=e("lib/helpers/client-environment-helper").device,o=document.getElementsByTagName("head")[0],u=n.exports={insert:function(e){r.isArray(e)||(e=[e]),e.forEach(function(e){if(e.parentNode)return;o.appendChild(e)})},stringToStyleElement:function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),t},transformDPI:function(e){return e.replace(/\/ldpi\//g,"/"+s.dpi+"/")},transformLocale:function(e){return e.replace(/\/en\//g,"/"+i.getLocale()+"/")},transform:function(e){return this.transformLocale(this.transformDPI(e))}}}),
define("lib/console-box.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform('.consoleBox{display:block;height:30%;width:100%;z-index:9999;position:absolute;top:0;left:0;right:0;padding:3px;font-family:"Monaco","Courier New",monospace;font-size:11px;box-sizing:border-box;background-color:#002240;overflow-x:hidden;overflow-y:auto}.consoleBox__message{white-space:nowrap;color:#FF9D00}')),data=null}),
define("ajax",["require","exports","module","type-of"],function(require,exports,module){function triggerAndReturn(e,t,n){return!0}function triggerGlobal(e,t,n,r){if(e.global)return triggerAndReturn(t||document,n,r)}function ajaxStart(e){e.global&&ajax.active++===0&&triggerGlobal(e,null,"ajaxStart")}function ajaxStop(e){e.global&&!--ajax.active&&triggerGlobal(e,null,"ajaxStop")}function ajaxBeforeSend(e,t){var n=t.context;if(t.beforeSend.call(n,e,t)===!1||triggerGlobal(t,n,"ajaxBeforeSend",[e,t])===!1)return!1;triggerGlobal(t,n,"ajaxSend",[e,t])}function ajaxSuccess(e,t,n){var r=n.context,i="success";n.success.call(r,e,i,t),triggerGlobal(n,r,"ajaxSuccess",[t,n,e]),ajaxComplete(i,t,n)}function ajaxError(e,t,n,r){var i=r.context;r.error.call(i,n,t,e),triggerGlobal(r,i,"ajaxError",[n,r,e]),ajaxComplete(t,n,r)}function ajaxComplete(e,t,n){var r=n.context;n.complete.call(r,t,e),triggerGlobal(n,r,"ajaxComplete",[t,n]),ajaxStop(n)}function empty(){}function mimeToDataType(e){return e&&(e==htmlType?"html":e==jsonType?"json":scriptTypeRE.test(e)?"script":xmlTypeRE.test(e)&&"xml")||"text"}function appendQuery(e,t){return(e+"&"+t).replace(/[&?]{1,2}/,"?")}function serializeData(e){type(e.data)==="object"&&(e.data=param(e.data)),e.data&&(!e.type||e.type.toUpperCase()=="GET")&&(e.url=appendQuery(e.url,e.data))}function serialize(e,t,n,r){var i=type(t)==="array";for(var s in t){var o=t[s];r&&(s=n?r:r+"["+(i?"":s)+"]"),!r&&i?e.add(o.name,o.value):(n?type(o)==="array":type(o)==="object")?serialize(e,o,n,s):e.add(s,o)}}function param(e,t){var n=[];return n.add=function(e,t){this.push(escape(e)+"="+escape(t))},serialize(n,e,t),n.join("&").replace("%20","+")}function extend(e){var t=Array.prototype.slice;return t.call(arguments,1).forEach(function(t){for(key in t)t[key]!==undefined&&(e[key]=t[key])}),e}var type;try{type=require("type-of")}catch(ex){var r=require;type=r("type")}var jsonpID=0,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/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.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:JSON.parse(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,"error",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(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""},getPagePermalink: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||{},'<div class="l-fullheight"> <div class="l-main"> </div> <div class="l-footnote"> </div>\n</div>\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://mobi.sndcdn.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]||"&amp;"}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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},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;s<t.length;s++)this[t[s]]=i[t[s]];r&&(this.lineNumber=r,this.column=n.firstColumn)}var e,t=["description","fileName","lineNumber","message","name","number","stack"];return n.prototype=new Error,e=n,e}(),r=function(e,t){"use strict";function h(e,t){this.helpers=e||{},this.partials=t||{},p(this)}function p(e){e.registerHelper("helperMissing",function(e){if(arguments.length===2)return undefined;throw new i("Missing helper: '"+e+"'")}),e.registerHelper("blockHelperMissing",function(t,n){var r=n.inverse||function(){},i=n.fn;return f(t)&&(t=t.call(this)),t===!0?i(this):t===!1||t==null?r(this):a(t)?t.length>0?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<u;i++)o&&(o.index=i,o.first=i===0,o.last=i===e.length-1),s+=n(e[i],{data:o});else for(var l in e)e.hasOwnProperty(l)&&(o&&(o.key=l,o.index=i,o.first=i===0),s+=n(e[l],{data:o}),i++);return i===0&&(s=r(this)),s}),e.registerHelper("if",function(e,t){return f(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),e.registerHelper("with",function(e,t){f(e)&&(e=e.call(this));if(!r.isEmpty(e))return t.fn(e)}),e.registerHelper("log",function(t,n){var r=n.data&&n.data.level!=null?parseInt(n.data.level,10):1;e.log(r,t)})}function v(e,t){d.log(e,t)}var n={},r=e,i=t,s="1.3.0";n.VERSION=s;var o=4;n.COMPILER_REVISION=o;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 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<=e){var n=d.methodMap[e];typeof console!="undefined"&&console[n]&&console[n].call(console,t)}}};n.logger=d,n.log=v;var m=function(e){var t={};return r.extend(t,e),t};return n.createFrame=m,n}(t,n),i=function(e,t,n){"use strict";function a(e){var t=e&&e[0]||1,n=o;if(t!==n){if(t<n){var r=u[n],i=u[t];throw new s("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new s("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function f(e,t){if(!t)throw new s("No environment passed to template");var n=function(e,n,r,i,o,u){var a=t.VM.invokePartial.apply(this,arguments);if(a!=null)return a;if(t.compile){var f={helpers:i,partials:o,data:u};return o[n]=t.compile(e,{data:u!==undefined},t),o[n](r,f)}throw new s("The partial "+n+" could not be compiled when running in runtime-only mode")},r={escapeExpression:i.escapeExpression,invokePartial:n,programs:[],program:function(e,t,n){var r=this.programs[e];return n?r=c(e,t,n):r||(r=this.programs[e]=c(e,t)),r},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n={},i.extend(n,t),i.extend(n,e)),n},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(n,i){i=i||{};var s=i.partial?i:t,o,u;i.partial||(o=i.helpers,u=i.partials);var a=e.call(r,s,n,o,u,i.data);return i.partial||t.VM.checkRevision(r.compilerInfo),a}}function l(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=function(e,i){return i=i||{},t.apply(this,[e,i.data||n].concat(r))};return i.program=e,i.depth=r.length,i}function c(e,t,n){var r=function(e,r){return r=r||{},t(e,r.data||n)};return r.program=e,r.depth=0,r}function h(e,t,n,r,i,o){var u={partial:!0,helpers:r,partials:i,data:o};if(e===undefined)throw new s("The partial "+t+" could not be found");if(e instanceof Function)return e(n,u)}function p(){return""}var r={},i=e,s=t,o=n.COMPILER_REVISION,u=n.REVISION_CHANGES;return r.checkRevision=a,r.template=f,r.programWithDepth=l,r.program=c,r.invokePartial=h,r.noop=p,r}(t,n,r),s=function(e,t,n,r,i){"use strict";var s,o=e,u=t,a=n,f=r,l=i,c=function(){var e=new o.HandlebarsEnvironment;return f.extend(e,o),e.SafeString=u,e.Exception=a,e.Utils=f,e.VM=l,e.template=function(t){return l.template(t,e)},e},h=c();return h.create=c,s=h,s}(r,e,n,t,i);return s}();n.exports=r}),
define("views/header/header",["require","exports","module","lib/event-bus","lib/tracking/tracking-core","lib/view","views/header/header.css","views/header/header.tmpl"],function(e,t,n){function u(){var e=this.subviews.searchBox;e&&e.startSearch()}function a(){i.action("navigate","home")}function f(){this.toggleState("small-logo")}var r=e("lib/event-bus"),i=e("lib/tracking/tracking-core"),s=e("lib/view"),o=n.exports=s.extend({tagName:"header",className:"header sc-selection-disabled",attributes:{id:"header",role:"banner"},events:{"click .header__logo":a},bubbleEvents:{"searchButton:click":u},states:{"small-logo":"smallLogo"},css:e("views/header/header.css"),template:e("views/header/header.tmpl"),setup:function(){this.listenTo(r,"locale-selector:toggle",f)},dispose:function(){this.stopListening(r,"locale-selector:toggle",f)},renderDecorate:function(){}})}),
define("views/banner/upsell",["require","exports","module","underscore","config","lib/helpers/consumer-sub-upsell-helper","lib/helpers/client-environment-helper","lib/event-bus","lib/views/fullscreen-overlay","lib/views/mixins/impression-on-render","views/banner/launch-app","lib/lingua","lib/native-links","lib/play-manager","lib/tracking/tracking-core","lib/views/mixins/update-on-layout-change","lib/view","views/banner/upsell.css","views/banner/upsell.tmpl"],function(e,t,n){function b(e){function i(){n.forEach(window.clearTimeout),n=[]}var t=this.$(".upsellBanner__appButton")[0],n=[],r=!1;d.action("submit","download_app_button:download");if(o.iOS&&t&&!N()){e.originalEvent.preventDefault();if(!h.adjustWorksOnIOS()){A.call(this);return}["pagehide","beforeunload","blur"].forEach(function(e){window.addEventListener(e,i)}),n.push(window.setTimeout(function(){r=!0,window.top.location=h.getStoreLink()},1e3)),n.push(window.setTimeout(function(){r&&window.location.reload()},2e3)),window.location=t.href}else N()&&x.call(this)}function w(e){var t=S();d.trackClickV1({click_category:t.category,click_name:"clickthrough::"+t.impression,click_object:t.tCodeURN})}function E(){var e=S();d.trackImpressionV1({impression_name:e.impression,impression_object:e.tCodeURN,impression_category:e.category})}function S(){return{impression:"consumer_sub_ad",category:"consumer_subs",tCodeURN:"soundcloud:tcode:1031"}}function x(){this.toggleState("transitionVisibility",!0),this.toggleState("hidden",!0)}function T(){return/consumer-premium|premium|mobile-apps|password-reset-success|activate|static-page|not-implemented|pulse-app/.test(C())}function N(){return T()||!h.useDeeplinks()||!o.supportsNativeApp}function C(){var e=i.get("router");return e&&e.getLayoutInfo()&&e.getLayoutInfo().layoutName}function k(e){L.call(this)}function L(){var e=p.getCurrentSound();!e&&p.source&&p.source.resource_type==="sound"&&(e=p.source);var t=Boolean(e&&s.soundRequiresUpsell(e));this.toggleState("consubUpsell",t),this.toggleState("hidden",t?T():N())}function A(){if(!this.subviews.launchAppOverlay){var e=new a({Subview:l,showHeader:!0,animate:!0,style:"dark",closeBehavior:"button"});e.on("open",O(!0),this).on("close",O(!1),this),this.addSubview(e,"launchAppOverlay")}this.subviews.launchAppOverlay.open()}function O(e){return function(){this.toggleState("launchAppOverlayVisible",e)}}var r=e("underscore"),i=e("config"),s=e("lib/helpers/consumer-sub-upsell-helper"),o=e("lib/helpers/client-environment-helper").device,u=e("lib/event-bus"),a=e("lib/views/fullscreen-overlay"),f=e("lib/views/mixins/impression-on-render"),l=e("views/banner/launch-app"),c=e("lib/lingua"),h=e("lib/native-links"),p=e("lib/play-manager"),d=e("lib/tracking/tracking-core"),v=e("lib/views/mixins/update-on-layout-change"),m=e("lib/view"),g=200,y=n.exports=m.extend(v,f.withOptions({impressionName:"upsell_banner"}),{className:"upsellBanner",css:e("views/banner/upsell.css"),template:e("views/banner/upsell.tmpl"),events:{"click .upsellBanner__appButton":b,"click .upsellBanner__consubButton":w},element2selector:{"upsell-button":".upsellBanner__appButton,.upsellBanner__consubButton"},states:{launchAppOverlayVisible:"m-launch-app-overlay-visible",hidden:function(e){var t=this.$el.toggleClass.bind(this.$el);u.trigger("upsell:hide",e),this.getState("transitionVisibility")?e?(t("offscreen",!0),this.addDeferred(r.delay(function(){t("sc-hidden",!0)},g))):(t("sc-hidden",!1),t("offscreen",!1)):(t("sc-hidden",e),t("offscreen",!1))},transitionVisibility:"transitionVisibility",consubUpsell:function(e){this.$el.toggleClass("showingConsubUpsell",e),e&&E()}},setup:function(){this.toggleState("hidden",N()),p.on("change:currentSound",k,this)},dispose:function(){p.off("change:currentSound",k,this)},renderDecorate:function(){h.useDeeplinks()||this.getElement("upsell-button").attr("target","_blank"),N()&&x.call(this),L.call(this)},getTemplateData:function(e,t){var n,r,i=t&&h.useDeeplinks();return i&&o.iOS?(n=h.getIOSUpsellDeepLink(t),r=c.t("Listen on the SoundCloud app",null,{comment:"Upsell text on a button when viewed on an iOS device"})):i&&o.android?(n=h.getAndroidDeepLink(t),r=c.t("Listen on the SoundCloud app",null,{comment:"Upsell text when viewed on android device"})):(n=h.getUpsellLink(),r=c.t("Download our free app",null,{comment:"Upsell text on a button when viewed on non-ios devices"})),e.url=n,e.goUrl="https://checkout.soundcloud.com/go",e.text=r,e}})}),
define("views/cookie-banner/cookie-banner",["require","exports","module","router","lib/view","lib/persistent-store","views/cookie-banner/cookie-banner.css","views/cookie-banner/cookie-banner.tmpl"],function(e,t,n){function f(){this.toggleState("dismissed",!0),o.set(u,!0)}var r=e("router"),i=e("lib/view"),s=e("lib/persistent-store"),o=new s("announcements"),u="cookies-2018-05-01",a=n.exports=i.extend({className:"cookieBanner",css:e("views/cookie-banner/cookie-banner.css"),template:e("views/cookie-banner/cookie-banner.tmpl"),events:{"click .cookieBanner__dismiss":f},states:{dismissed:"m-dismissed"},setup:function(e){var t=Boolean(o.get(u));this.toggleState("dismissed",t)},getTemplateData:function(e){var t=r.getRoute("pagesPages","cookies");return e.cookieLinkStart='<a class="cookieBanner__messageLink" href="'+t+'">',e.cookieLinkEnd="</a>",e}})}),
define("views/play-controls/play-controls",["require","exports","module","lib/event-bus","lib/play-manager","lib/view","views/play-controls/play-controls.css","views/play-controls/play-controls.tmpl"],function(e,t,n){function u(){i.toggleCurrent({userInitiated:!0})}function a(e){f.call(this,e.sound)}function f(e){this.toggleState("playing",e.isPlaying());if(this.currentSound===e)return;this.currentSound=e,this.toggleState("go",this.currentSound.isHighTier()),this.rerender()}var r=e("lib/event-bus"),i=e("lib/play-manager"),s=e("lib/view"),o=n.exports=s.extend({className:"playControls",css:e("views/play-controls/play-controls.css"),template:e("views/play-controls/play-controls.tmpl"),states:{playing:"playing",go:"go"},setup:function(){this.listenTo(r,"audio:play audio:pause",a)},events:{"click .playControls__playPause":u},currentSound:null,getTemplateData:function(){return{sound:this.currentSound&&this.currentSound.toJSON()}}})}),
define("vendor/remixin/dist/remixin-cjs",["require","exports","module","underscore"],function(e,t,n){!function(t){var r=t(e("underscore"));n.exports=r}(function(e){function t(){this.mixins=e.initial(arguments),this.properties=e.last(arguments)}function n(e,t){this.applyTo=function(n){e.applyTo(n,t)}}function r(e,t){return null==e?t.slice():i(a(e),t)}function i(t,n){return t.concat(e.difference(n,t))}function s(e,t){return null==e?t:r(u(e),u(t)).join(" ")}function o(t,n){return e.extend({},n,t)}function u(t){return e.compact(t.split(l))}function a(t){return e.isArray(t)?t:[t]}var f=["before","after","around","requires","override","defaults","applyTo","requirePrototype","merge"],l=/\s+/;return e.extend(t.prototype,{applyTo:function(t,n){var r=this.properties;this.defaults(t,r.defaults),this.extend(t,r),this.merge(t,r.merge),e.invoke(this.mixins,"applyTo",t),["requires","requirePrototype","override","before","after","around"].forEach(function(e){this[e](t,r[e])},this),r.applyTo&&r.applyTo.call(this,t,n)},withOptions:function(e){return new n(this,e)},before:function(t,n){e.each(n,function(e,n){var r=t[n];t[n]=function(){return e.apply(this,arguments),r.apply(this,arguments)}})},after:function(t,n){e.each(n,function(e,n){var r=t[n];t[n]=function(){var t=r.apply(this,arguments);return e.apply(this,arguments),t}})},around:function(t,n){e.each(n,function(e,n){var r=t[n];t[n]=function(){var t=0,n=arguments.length,i=Array(n+1);for(i[0]=r.bind(this);n>t;++t)i[t+1]=arguments[t];return e.apply(this,i)}})},override:function(t,n){e.extend(t,n)},defaults:function(t,n){e.each(n,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})},merge:function(t,n){e.each(n,function(n,i){if(null!=n){var u=t[i];t[i]=e.isArray(n)?r(u,n):e.isString(n)?s(u,n):o(u,n)}})},extend:function(t,n){var r=e.omit(n,f);e.extend(t,r)},requires:e.noop,requirePrototype:e.noop}),n.prototype=t.prototype,t})}),
define("lib/endpoints",["require","exports","module","underscore","lib/url","config/endpoints"],function(e,t,n){function o(e,t,n){var o=s[e];if(!o&&!1)throw new Error('Endpoint "'+e+'" is not defined in config/endpoints.js file.');return o.host+i.stringify({path:t?u(o.path,t):o.path,query:r.extend({},o.query,n)})}function u(e,t){return e.replace(/:([\w-]+)/g,function(e,n){return t[n]!=null?t[n]:""})}var r=e("underscore"),i=e("lib/url"),s=e("config/endpoints");n.exports={getEndpointUrl:o}}),
define("lib/single",["require","exports","module","$","underscore","backbone","lib/gc-store"],function(e,t,n){var r=e("$"),i=e("underscore"),s=e("backbone"),o=e("lib/gc-store"),u=r.noop,a=0,f=6e4,l;n.exports={applyTo:function c(e,t){t=i.extend({neverRelease:!1,cleanupInstantly:!1,hashFn:function(){return null},prepareArgs:function(){return arguments},prepareInstance:function(){return this},getIncrementValue:function(){return 1},onHold:u,onRelease:u,onCleanup:null,GC_INTERVAL:f},t,e),delete t.prototype;var n,r=e.extend||s.Model.extend,h=t.neverRelease,p,d,v,m,g,y;return n=new o({autoCleanup:t.cleanupInstantly,onCleanup:t.onCleanup,onIncrement:t.onHold,onDecrement:t.onRelease}),h?v=m=g=u:(g=function(){n.cleanup(),d=n.length?setTimeout(g,t.GC_INTERVAL):null},v=function(e){n.increment(this.resource_id,e)},m=function(e){n.decrement(this.resource_id,e)}),y={hold:v,release:m,_usageCount:function(){return n.countFor(this.resource_id)},constructor:function(){var r=p.prepareArgs.apply(this,arguments),i=p.hashFn.apply(this,r)||"f-"+ ++a,s=p.neverRelease?1:p.getIncrementValue.apply(null,r),o=n.get(i);if(o)return this.constructor.neverRelease||o.hold(s),p.prepareInstance.apply(o,r),o;o=this,!d&&!p.cleanupInstantly&&(d=setTimeout(g,t.GC_INTERVAL)),n.set(i,o),o.constructor.neverRelease||o.hold(s-1),o.resource_id=i,l(e).apply(o,r),p.prepareInstance.apply(o,r)}},p=r.call(e,y,t),i.extend(p,{__constructor__:l(e),reset:function(){n.reset(),d&&(clearTimeout(d),d=null)},extend:function(t){var n,s;return t=t||{},i.isArray(t)&&(t=i.extend.apply(null,[{}].concat(t))),t.hasOwnProperty("constructor")||(t.constructor=l(e)),n=r.apply(p,arguments),n.extend=r,s=c(n,p),s.__super__&&(s.__super__=s.__super__.constructor.__super__),s},instances:function(){return n.add=function(e){var t=p.hashFn(e.attributes);e.resource_id=t,t&&this.set(t,e)},n}(),getNewInstance:function(){function r(){return l(e).apply(this,t)}var t=arguments,n;return r.prototype=p.prototype,n=new r,n}})}},l=function(e){return e.__constructor__||e}}),
define("models/audible-interface",["require","exports","module","lib/mixins/audio-source","lib/model","lib/math"],function(e,t,n){function u(){throw new Error("Abstract method of AudibleInterface should be implemented in subclass")}var r=e("lib/mixins/audio-source"),i=e("lib/model"),s=e("lib/math"),o=n.exports=i.extend(r,{play:u,pause:u,isPlaying:u,getPrevSound:u,getCurrentSound:u,getNextSound:u,getFirstSound:u,getLastSound:u,getSounds:u,setup:function(){this.listenTo(this,"destroy",this.pause)},getSourceInfo:function(){return{type:"single",resourceId:this.resource_id,resourceType:this.resource_type}},isPrivate:function(){return this.get("sharing")==="private"},isPublic:function(){return!this.isPrivate()},toggle:function(e){this[this.isPlaying()?"pause":"play"](e)},isPaused:function(){return!this.isPlaying()},duration:function(){return this.get("duration")},progress:function(){return s.clamp(this.currentTime()/this.duration(),0,1)}})}),
define("lib/mixins/models/batching",["require","exports","module","underscore","lib/mixin","lib/futures","lib/errors/unauthorized-viewer","lib/url"],function(e,t,n){function h(e){return e?u.stringify({query:e}):"default"}function p(e){return!this.id||e.jqAjax||e.saveRequest||e.batch===!1||this.get("sharing")==="private"}function d(e,t,n,r){this.batchEndpoint=e,this.batchParams=t,this.maxQueueSize=n,this.flushInterval=r,this.queue={},this.timer=null}function v(e,t){return $.ajax({url:e,type:"get",data:t,contentType:"application/json",dataType:"json",timeout:3e3}).then(function(e,t,n){return{body:e,status:n.status,headers:{}}})}var r=e("underscore"),i=e("lib/mixin"),s=e("lib/futures"),o=e("lib/errors/unauthorized-viewer"),u=e("lib/url"),a=50,f=50,l=function(){return null},c=n.exports=new i({applyTo:function(e,t){var n=t.batchEndpoint,r=t.maxQueueSize||f,i=t.flushInterval||a,s=t.getBatchParams||l,o={};this.around(e,{fetch:function(e,t){t||(t={});if(p.call(this,t))return e(t);this._requests||(this._requests={});if(!this._requests[this.id]){var u=s(this)||null,a=h(u),f=o[a]||(o[a]=new d(n,u,r,i));this._requests[this.id]=f.add(this,t)}return this._requests[this.id]}})}});d.prototype={getIds:function(){var e=r.reduce(this.queue,function(e,t,n){return t.deferred.state()==="pending"&&(e[n]=t),e},{});return Object.keys(e).sort()},add:function(e,t){var n=this.queue[e.id]=this.queue[e.id]||{callsigs:[],deferred:s.defer()};return n.callsigs.push({model:e,options:t}),this.timer||(this.timer=window.setTimeout(this.flush.bind(this),this.flushInterval)),Object.keys(this.queue).length===this.maxQueueSize&&this.flush(),n.deferred},flush:function(){var e=this.getIds(),t=this.queue;window.clearTimeout(this.timer),this.timer=null,this.queue={};if(e.length<1)return;v(this.batchEndpoint,r.extend({ids:e.join(",")},this.batchParams)).then(function(n){var i=n.body,s=r.map(r.pluck(i,"id"),String);i.forEach(function(e){var n=e.id,r=t[n],i=Date.now();r&&(r.callsigs.forEach(function(t){var n=t.model;n.lastFetchTime=i,n.set(n.parse(e),t.options)}),r.deferred.resolve())}),r.difference(e,s).forEach(function(e){var n=t[e];n&&n.callsigs.forEach(function(e){e.model.trigger("error",e.model,new o,e.options)})}),r.each(t,function(e){e.deferred.reject()})})}}}),
define("lib/mobi-audio",["require","exports","module","underscore","config","lib/url","lib/connect","lib/event-bus","lib/error-reporting","lib/integrations/promoted","vendor/event-gateway/event-gateway","lib/scaudio-logger","lib/tracking/tracking-core","lib/media-element-manager","vendor/playback/playback"],function(e,t,n){function D(e){return e==="SCAUDIO.NOT_SUPPORTED_ERROR"||e==="SCAUDIO.NO_STREAMS"}function P(e){return e==="SNIP"}function H(e){return{snippet:P(e),qualities:[m.SQ]}}function B(e,t){t=t||{};var n=t.suppressGlobalEvents;r.isUndefined(n)&&(n=!1);var d=new T({name:"Proxy-"+e.resource_id,logger:c,mediaSessionEnabled:!0,shouldPassThroughFatalErrors:!0});return e.getOrFetch(["secret_token","policy","media"]).then(function(t){function z(t){var r={sound:e,model:e};e.trigger(t,r),n||u.trigger("audio:"+t,r)}function W(t){t instanceof N&&e.makeTemporarilyUnavailable()}function X(){d.onDurationChange.subscribe(function(){z("duration-change")}),d.onError.subscribe(W),I.onConnectionRequired.subscribe(function(){u.trigger("error:audio_no_connection")}),I.onConnectionRecovered.subscribe(function(){u.trigger("error:audio_connection_recovered")}),d.onPlayIntent.subscribe(function(){p.activate(),I.enablePreloading(),z("play"),B||(B=!0,window.setTimeout(function(){B=!1},M),e.set("playback_count",e.get("playback_count")+1),f.trackEvent("play","context"))}),d.onPlay.subscribe(function(){z("play")}),d.onPlayRejection.subscribe(function(){z("pause")}),d.onPauseIntent.subscribe(function(){z("pause")}),d.onPauseRejection.subscribe(function(){z("play-intent")}),d.onEnded.subscribe(function(){I.pause(),z("finish")}),d.onPositionJumped.subscribe(function(){z("seeked")}),d.onLoadStart.subscribe(function(){z("buffering:start")}),d.onLoadEnd.subscribe(function(){z("buffering:end")}),V()}function V(){function n(){window.clearTimeout(e);var r=I.getPosition();r!==t&&(z("position"),t=r),I.isActuallyPlaying()&&!I.isEnded()&&(e=window.setTimeout(n,O))}var e=0,t=null;d.onPlay.subscribe(n),d.onPositionJumped.subscribe(n),d.onPause.subscribe(n),d.onStateChange.subscribe(function(t){t===A.DEAD&&window.clearTimeout(e)})}var r=t.secret_token,m=t.policy,T=t.media,P=o.getAuthToken(),B=!1,j={request:function(e){return e.url=s.modify(e.url,{query:{stage:i.get("stage")||null}}),k.request(e)}},F=new b({loader:j,clientId:i.get("client_id"),trackId:e.id,secretToken:r,requestAuthorization:P?"OAuth "+P:null,mediaPayload:T}),I=new v({controllers:[new S(p),new w(p)],streamUrlRetriever:F,getURLOpts:H(m),preloadingEnabled:!1,fadeOnPauseAndPlay:!0,fadeOnSeek:!0,audioPerformanceReporter:function(t){l.audioPerformance({bitrate:t.bitrate,format:t.format,host:t.host,latency:t.latency,player_type:t.playerType,protocol:t.protocol,type:t.type,preloaded:t.preloaded,track_urn:e.getUrn(),app_state:t.appState,entity_type:_,quality:t.quality,preset:t.preset,player_version:"v"+g,player_build_number:y})},audioReporter:function(t){h.audio(t,e)},errorReporter:function(t){var n=null;try{l.audioError({bitrate:t.bitrate||"",format:t.format||"",host:t.host||"",player_type:t.playerType,protocol:t.protocol||"",url:t.url||"",error_code:t.errorCode,log_id:t.logId,track_urn:e.getUrn(),app_state:t.appState,entity_type:_,quality:t.quality,preset:t.preset,player_version:"v"+g,player_build_number:y})}catch(r){n=r}D(t.errorCode)||a.notify({error:{name:"SCAudio: "+t.errorCode,message:t.errorCode},context:{component:"SCAudio",scaudioVersion:g,MaestroCoreVersion:C,HTML5PlayerControllerVersion:E,HLSMSEPlayerControllerVersion:x,stringLoaderVersion:L,streamUrl:t.url,playerType:t.playerType,streamFormat:t.format,log:t.log.slice().reverse(),logId:t.logId}});if(n)throw n},logger:c});if(!I.isDead()){var q=function(){R()},R=function(){var e=o.getAuthToken();F.updateRequestAuthorization(e?"OAuth "+e:null)},U=function(){F.clearCache(),R(),I.reload()};I.onStateChange.subscribe(function(t){t===A.DEAD&&(u.off("connect:login connect:logout",q),e.off("change:policy",U))}),u.on("connect:login connect:logout",q),e.on("change:policy",U),X()}else W(I.getFatalError());d.providePlayer(I)}).fail(function(t){d.kill(),e.makeTemporarilyUnavailable()}),d}var r=e("underscore"),i=e("config"),s=e("lib/url"),o=e("lib/connect"),u=e("lib/event-bus"),a=e("lib/error-reporting"),f=e("lib/integrations/promoted"),l=e("vendor/event-gateway/event-gateway"),c=e("lib/scaudio-logger"),h=e("lib/tracking/tracking-core"),p=e("lib/media-element-manager"),d=e("vendor/playback/playback"),v=d.SCAudio.Player,m=d.SCAudio.Quality,g=d.SCAudio.version,y=d.SCAudio.buildNumber,b=d.SCAudioMediaPayloadStreamURLRetriever.StreamUrlRetriever,w=d.SCAudioControllerHTML5Player.HTML5PlayerController,E=d.SCAudioControllerHTML5Player.version,S=d.SCAudioControllerHLSMSEPlayer.HLSMSEPlayerController,x=d.SCAudioControllerHLSMSEPlayer.version,T=d.MaestroCore.ProxyPlayer,N=d.MaestroCore.errors.PlayerFatalError,C=d.MaestroCore.version,k=d.MaestroLoaders.stringLoader,L=d.MaestroLoaders.version,A=d.MaestroCore.State,O=1e3/60,M=6e4,_="soundcloud";n.exports={createAudioFromSound:B}}),
define("lib/cookies",["require","exports","module"],function(e,t,n){var r=window.location.hostname.replace(/.*\.(.+\..+)/,"$1"),i="."+r,s=864e5,o=6e4,u,a,f=n.exports={get:function(e){return a||(a={},document.cookie.split(/\s*;\s*/).forEach(function(e){var t=e.split("=");a[t[0]]=t[1]})),a[e]},set:function(e,t,n){var r=Date.now(),a=null;n&&n.days?a=n.days*s:n&&n.minutes&&(a=n.minutes*o),document.cookie=[e+"="+t,a?"expires="+(new Date(r+a)).toGMTString():"","path=/","domain="+i].filter(Boolean).join(";"),u()},unset:function(e){f.set(e,"",-1),u()}};u=function(){a=null}}),
define("vendor/i18n/i18n",["require","exports","module","./lib/datetime","./lib/number","./lib/price","./locales/es","./locales/de","./locales/en","./locales/fr","./locales/it","./locales/nl","./locales/pl","./locales/pt_BR","./locales/sv"],function(e,t,n){function d(e){this.phrases={},this.setLocale(e)}function v(){var e=m.call(this);this.number=new i(e),this.dateTime=new r(e,this.number),this.price=new s(this.locale,this.number)}function m(){return p[this.locale]||p[c]}function g(e,t){return t?e.replace(f,function(e,n,r,i){var s=t[n||r||i];return r?l(s):s}):e}function y(e,t){return p[e].pluralForm(t)}function b(e){return Array.isArray(e)?e[0]:e.toString()}function w(e){var t,n;for(var r=1,i=arguments.length;r<i;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function E(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)e[i]===void 0&&(e[i]=r[i])}return e}function S(e){var t=e.dates,n=e.d3;return{decimal:e.delimiters.decimal,thousands:e.delimiters.thousands,grouping:n.grouping,currency:n.currency,dateTime:n.dateTime,date:n.date,time:n.time,periods:n.periods,days:t.weekdays,shortDays:t.shortWeekdays,months:t.months,shortMonths:t.monthsShort}}function x(e){var t=e.datePicker,n=e.dates;return{closeText:t.closeText,prevText:t.prevText,nextText:t.nextText,currentText:t.currentText,weekHeader:t.weekHeader,dateFormat:t.dateFormat,firstDay:t.firstDay,isRTL:t.isRTL,showMonthAfterYear:t.showMonthAfterYear,yearSuffix:t.yearSuffix,monthNames:n.months,monthNamesShort:n.monthsShort,dayNames:n.weekdays,dayNamesShort:n.shortWeekdays,dayNamesMin:n.minWeekdays}}var r=e("./lib/datetime"),i=e("./lib/number"),s=e("./lib/price"),o="sclocale",u={};n.exports=d;var a="[a-zA-Z0-9_]+",f=new RegExp("\\[\\[\\[("+a+")\\]\\]\\]|"+"\\[\\[("+a+")\\]\\]|"+"(%d)","g"),l,c="en",h=e("./locales/es"),p={de:e("./locales/de"),en:e("./locales/en"),en_GB:e("./locales/en"),es:h,es_419:h,fr:e("./locales/fr"),it:e("./locales/it"),nl:e("./locales/nl"),pl:e("./locales/pl"),pt_BR:e("./locales/pt_BR"),sv:e("./locales/sv")};d.prototype.availableLocales=Object.keys(p),d.prototype.getLocaleCookieName=function(){return o},d.prototype.setLocale=function(e){this.locale=p[e]?e:c,v.call(this)},d.prototype.setPhrases=function(e){this.phrases=e||{}},d.prototype.extend=function(e){w(this.phrases,e)},d.prototype.getLocaleDataFor=function(e){var t=m.call(this),n=u;switch(e){case"d3":return n.d3=n.d3||S(t);case"jquery.datepicker":return n["jquery.datepicker"]=n["jquery.datepicker"]||x(t);case"native":default:return t}},d.prototype.t=function(e,t,n,r){var i=(n?n+"::":"")+e,s=this.phrases[i]||e;return g.call(this,b(s),t)},d.prototype.tp=function(e,t,n,r,i,s){var o=(i?i+"::":"")+e,u=this.phrases[o],a=this.number.format(n);return u=u?u[y(this.locale,n)]:y("en",n)?t:e,g.call(this,b(u),E({"%d":a},r))},l=function(){function r(t){return e[t]||"&amp;"}var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},t=/[&<>"'`]/g,n=/[&<>"'`]/;return function(e){return!e&&e!==0?"":(e=""+e,n.test(e)?e.replace(t,r):e)}}()}),
define("shared/config/supported-locales",["require","exports","module","underscore","shared/config/locales/locale-de.json","shared/config/locales/locale-es.json","shared/config/locales/locale-fr.json","shared/config/locales/locale-it.json","shared/config/locales/locale-nl.json","shared/config/locales/locale-pl.json","shared/config/locales/locale-pt-br.json","shared/config/locales/locale-sv.json"],function(e,t,n){var r=e("underscore"),i={de:"Deutsch",en:"English (US)",es:"Español",fr:"Français",it:"Italiano",nl:"Nederlands",pl:"Polski",pt_BR:"Português (Brasil)",sv:"Svenska"},s=r.extend({},i),o={de:e("shared/config/locales/locale-de.json"),en:{},es:e("shared/config/locales/locale-es.json"),fr:e("shared/config/locales/locale-fr.json"),it:e("shared/config/locales/locale-it.json"),nl:e("shared/config/locales/locale-nl.json"),pl:e("shared/config/locales/locale-pl.json"),pt_BR:e("shared/config/locales/locale-pt-br.json"),sv:e("shared/config/locales/locale-sv.json")},u=r.keys(i),a=r.keys(s);n.exports={defaultLocale:"en",locales:o,publicLanguages:i,publicLanguageCodes:u,experimentalAndPublicLanguages:s,experimentalAndPublicLanguageCodes:a}}),
define("lib/mixins/models/data-dns-prefetcher",["require","exports","module","underscore","lib/helpers/dns-helper","lib/mixin"],function(e,t,n){var r=e("underscore"),i=e("lib/helpers/dns-helper"),s=e("lib/mixin"),o=n.exports=new s({before:{parse:function(e){i.lookup(r.compact(r.flatten([e.avatar_url,e.artwork_url,e.waveform_url,r.values(e.streams)])))}}})}),
define("type-of",["require","exports","module"],function(e,t,n){var r=Object.prototype.toString;n.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===undefined?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}}),
define("indexof",["require","exports","module"],function(e,t,n){var r=[].indexOf;n.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}}),
define("lib/helpers/title-helper",["require","exports","module","lib/event-bus","lib/play-manager"],function(e,t,n){function c(e){e=e.sound||e,e.isPaused()&&a()}function h(e){u(e.sound||e)}var r=e("lib/event-bus"),i=e("lib/play-manager"),s="SoundCloud - Hear the world’s sounds",o,u,a,f=!1,l=n.exports={initialize:function(){f||(f=!0,r.on("audio:play",h).on("audio:pause",c))},deinitialize:function(){f&&(f=!1,r.off("audio:play",h).off("audio:pause",c))},set:function(e){o=e;var t=i.getCurrentSound(),n=!t||!t.isPlaying();n&&a()},update:function(){var e=i.getCurrentSound();e&&e.isPlaying()&&u(e)},_setTitle:function(e){document.title=e}};a=function(){l._setTitle((o?o+" on ":"")+s)},u=function(e){var t=e.getCurrentSound();t.has("title")&&t.has("user")?l._setTitle(["▶",t.get("title"),"by",t.get("user").username].join(" ")):t.fetch().done(function(){l._setTitle(["▶",t.get("title"),"by",t.get("user").username].join(" "))})}}),
define("lib/mixins/layouts/performance-measuring",["require","exports","module","lib/tracking/tracking-core","lib/mixin"],function(e,t,n){function c(e,t,n){function o(){clearTimeout(i),clearTimeout(r)}function u(){e()&&(o(),n())}var r=setTimeout(o,t),i=setInterval(u,s);u()}var r=e("lib/tracking/tracking-core"),i=e("lib/mixin"),s=50,o=15e3,u=window.performance&&window.performance.timing,a="fetchStart",f=!0,l=n.exports=u?new i({defaults:{performanceSelector:null},after:{render:function(){var e,t,n;if(!f)return;f=!1;if(e=this.performanceSelector)t=function(){return this.$(e).length}.bind(this),n=function(){var e=Date.now()-u[a];r.appLoad(e)},c(t,o,n)}}}):new i({})}),
define("views/footer/footer",["require","exports","module","lib/helpers/client-environment-helper","lib/event-bus","lib/view","views/footer/footer.tmpl","views/footer/footer.css"],function(e,t,n){var r=e("lib/helpers/client-environment-helper").device,i=e("lib/event-bus"),s=e("lib/view"),o=n.exports=s.extend({className:"footer",tagName:"footer",template:e("views/footer/footer.tmpl"),css:e("views/footer/footer.css"),defaults:{upsellText:""},states:{show:"show"},setup:function(){this.listenTo(i,"layout:change",this.onLayoutChange)},dispose:function(){this.stopListening(i,"layout:change",this.onLayoutChange)},onLayoutChange:function(){this.toggleState("show")},getTemplateData:function(e){return e.shouldUpsell=r.supportsNativeApp,e}})}),
define("lib/subview-plugin",["require","exports","module","underscore","vendor/handlebars-runtime"],function(e,t,n){function u(t,n){var r=t.getAttribute("data-id"),i=s[r],o,u,a;i.__path?(u=e(i.__path),delete i.__path):(u=i.__class,delete i.__class),delete s[r],i.key&&(a=i.key,delete i.key),o=n.addSubview(new u(i),a),o.render(),t.parentNode.replaceChild(o.el,t)}function a(t,n){var u,a;return typeof t=="string"?(n.hash.__path=t,a=e(t)):(n.hash.__class=t,a=t),n.hash.args&&(r.isFunction(n.hash.args)&&(n.hash.args=n.hash.args(this)),n.hash=r.extend({},n.hash.args,n.hash)),delete n.hash.args,n.fn&&(n.hash.blockContent=new i.SafeString(n.fn(this))),n.hash.className&&(n.hash.className=[a.prototype.className,n.hash.className].filter(Boolean).join(" ")),u=o++,s[u]=n.hash,'<view data-id="'+u+'"></view>'}function f(e){e.$("view").each(function(){u(this,e)})}var r=e("underscore"),i=e("vendor/handlebars-runtime"),s={},o=0;t.handlebarHelper=a,t.replacePlaceholders=f}),
define("lib/template-helpers",["require","exports","module","underscore","lib/helpers/a11y-helper","lib/helpers/count-helper","vendor/handlebars-runtime","lib/helpers/i18n-helper","lib/helpers/image-helper","lib/lingua","router","lib/subview-plugin"],function(e,t,n){function p(e,t,n,r){return new o.SafeString(f.tp(t,n,e,r.hash,r.hash._comment))}function d(e,t){return new o.SafeString(f.tp(u.cleanBlockText(t.fn()),u.cleanBlockText(t.inverse()),e,t.hash,t.hash._comment))}function v(e,t){return new o.SafeString(f.t(e,t.hash,t.hash._comment))}function m(e){return new o.SafeString(f.t(u.cleanBlockText(e.fn()),e.hash,e.hash._comment))}var r=e("underscore"),i=e("lib/helpers/a11y-helper"),s=e("lib/helpers/count-helper"),o=e("vendor/handlebars-runtime"),u=e("lib/helpers/i18n-helper"),a=e("lib/helpers/image-helper"),f=e("lib/lingua"),l=e("router"),c=e("lib/subview-plugin"),h=n.exports={$a11y:function(e){return new o.SafeString(i.getAccessibleMarkup(e.hash))},$count:function(e,t){return s.render(e,t.hash)},$debug:function(){return""},$view:function(){return new o.SafeString(c.handlebarHelper.apply(this,arguments))},$image:function(e,t){return new o.SafeString(a.markup(e,t.hash))},$route:function(){var e=r.toArray(arguments).slice(0,-1);return l.getRoute.apply(l,e)},$t:function(){var e=arguments.length;if(e===2)return v.apply(this,arguments);if(e===1)return m.apply(this,arguments);throw new Error("Invalid signature to t helper, expected 1 or 2 arguments, got "+e)},$tp:function(){var e=arguments.length;if(e===4)return p.apply(null,arguments);if(e===2)return d.apply(null,arguments);throw new Error("Invalid signature to tp helper, expected 4 or 2 arguments, got: "+e)}}}),
define("views/header/header.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".header{height:44px;box-shadow:0 0 2px 0 rgba(0,0,0,.5);background:#fff}.header__logo{background:url(https://mobi.sndcdn.com/assets/images/ldpi/logo-881c7ae2.png) 0 50% no-repeat;background-size:128px 16px;width:128px;height:44px;margin:0 auto;display:block}.smallLogo>.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+='<a class="header__logo" href="'+o(n.$route.call(t,"root",{hash:{},data:i}))+'"> '+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"SoundCloud homepage",{hash:{},data:i})},data:i}))+"\n</a> "+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/views/fullscreen-overlay",["require","exports","module","config","lib/views/mixins/overlay","lib/tracking/tracking-core","lib/view","lib/views/fullscreen-overlay.css","lib/views/fullscreen-overlay.tmpl"],function(e,t,n){var r=e("config"),i=e("lib/views/mixins/overlay"),s=e("lib/tracking/tracking-core"),o=e("lib/view"),u=n.exports=o.extend(i,{defaults:{showHeader:!1,closeBehavior:null,style:null,trackingIdentifier:null},parentEl:function(){return r.get("appView").el},transitions:{"in":"fadeIn",out:"fadeOut"},css:e("lib/views/fullscreen-overlay.css"),template:e("lib/views/fullscreen-overlay.tmpl"),className:"fullscreen-overlay",bubbleEvents:{"closeButton:click":"close"},setup:function(e){e.animate||(this.transitions=null),e.style&&this.$el.addClass("fullscreen-overlay-"+e.style),this.$el.toggleClass("fullscreen-overlay-show-header",e.showHeader);switch(e.closeBehavior){case"button":this.events={"click .fullscreen-overlay__closeButton":"close"};break;case"background":this.events={click:"close"};break;default:}},getTemplateData:function(e){return{closeWithButton:this.options.closeBehavior==="button"}},onOpen:function(){this.options.trackingIdentifier&&s.action("submit",this.options.trackingIdentifier)},onClose:function(){this.options.trackingIdentifier&&s.action("cancel",this.options.trackingIdentifier+"_cancel")}})}),
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("views/banner/launch-app",["require","exports","module","config","lib/native-links","lib/view","lib/tracking/tracking-core","views/banner/launch-app.css","views/banner/launch-app.tmpl"],function(e,t,n){function a(e){return function(n){o.trackClickV1({click_category:"upsell",click_name:e,click_object:"launch-app-button"})}}var r=e("config"),i=e("lib/native-links"),s=e("lib/view"),o=e("lib/tracking/tracking-core"),u=n.exports=s.extend({className:"launchApp",css:e("views/banner/launch-app.css"),template:e("views/banner/launch-app.tmpl"),events:{"click .launchApp__get-app":a("download_app_button:get_app"),"click .launchApp__open-in-app":a("download_app_button:open_in_app")},getTemplateData:function(){return{deepLink:i.getIOSUpsellDeepLink(r.get("router").getLayoutInfo()),storeLink:i.getStoreLink()}}})}),
define("lib/native-links",["require","exports","module","lib/helpers/client-environment-helper","lib/url"],function(e,t,n){function S(){return s.iOS||s.android}function x(){return s.iOS&&i.iOSVersion<9.2}function T(e){var t=e&&e.layoutName==="premium",n=e&&e.layoutName==="pulse-app",r=t||n;return r&&s.iOS?l:r&&s.android?c:s.iOS?x()?a:E:s.android?f:N()}function N(){return s.iOS?x()?g:E:s.android?y:s.blackberry?b:s.amazon?w:""}function C(e){var t=O(e.layout),n=o.parse(t).scheme,r=o.modify(t,{scheme:null}),i="intent://"+r+"#Intent;scheme="+n+";package=com.soundcloud.android;S.market_referrer=utm_source%3Dmobi;end";return i}function k(e){return x()?M(h,H(e.layout,"header")):O(e.layout)}function L(){if(s.iOS)return M(p,{deep_link:d});if(s.android)return v}function A(){return m}function O(e){var t=e?e.getPageUrn():"",n=e?e.getPagePermalink():"";return n||P(t)}function M(e,t){return o.modify(e,{query:t||{}})}function _(e,t){var n=t?D(t):O();return M(e,{deep_link:n})}function D(e){return"soundcloud://"+e}function P(e){var t=e.split(":"),n=t[2],r=t[1];switch(r){case"tracks":return"soundcloud://sounds:"+n;case"users":return"soundcloud://users:"+n;case"playlists":return"soundcloud://sets:"+n;default:return s.android?v:d}}function H(e,t){return{deep_link:O(e),campaign:t,adgroup:B(),creative:"var_a"}}function B(){var e=window.navigator,t=e.languages,n=e.userLanguage||t&&t[0]||e.language||"";return n.replace(/-/g,"_").toLowerCase()}var r=e("lib/helpers/client-environment-helper"),i=r.os,s=r.device,o=e("lib/url"),u="market://details?id=com.soundcloud.android&referrer=utm_source%3Dsoundcloud%26Dutm_medium%3Dmobileweb",a="https://app.adjust.io/12ozk8?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fsoundcloud-music-audio%2Fid336353151%3Fmt%3D8%26uo%3D4%26at%3D11lPIB",f=u+"%26utm_campaign%3Ddownload_button_header",l="https://itunes.apple.com/us/app/soundcloud-pulse-for-creators/id1074278256?mt=8",c="https://play.google.com/store/apps/details?id=com.soundcloud.creators&hl=en",h="https://app.adjust.io/kzvpho",p="https://app.adjust.io/wua7pf",d="soundcloud://page/authentication",v="soundcloud://home",m="soundcloud://remote-sign-in",g="https://app.adjust.io/7rfiwt?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fsoundcloud-music-audio%2Fid336353151%3Fmt%3D8%26uo%3D4%26at%3D11lPIB",y="https://play.google.com/store/apps/details?id=com.soundcloud.android&referrer=utm_source%3Dmobi",b="appworld://content/41097895",w="amzn://apps/android?asin=B004HXIZVC",E="https://itunes.apple.com/app/apple-store/id336353151?pt=298087&ct=mobi&mt=8";n.exports={getStoreLink:N,getUpsellLink:T,getAndroidDeepLink:C,getIOSUpsellDeepLink:k,getSigninDeepLink:L,getActivateDeeplink:A,useDeeplinks:S,getAdjustDeeplink:_,adjustWorksOnIOS:x,getBrowserPrimaryLocale:B}}),
define("lib/views/mixins/update-on-layout-change",["require","exports","module","config","lib/event-bus","lib/mixin"],function(e,t,n){function u(e){var t=e?"on":"off";i[t]("layout:change",a,this)}function a(){this.rerender()}var r=e("config"),i=e("lib/event-bus"),s=e("lib/mixin"),o=n.exports=new s({before:{setup:function(){u.call(this,!0)},dispose:function(){u.call(this,!1)}},around:{getTemplateData:function(e,t){var n=r.get("router").getLayoutInfo();return e.call(this,t,n)}}})}),
define("views/banner/upsell.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".upsellBanner{background:#333;height:60px;position:relative;overflow:hidden}.upsellBanner.transitionVisibility{-webkit-transition:-webkit-transform .2s linear;transition:transform .2s linear}.upsellBanner.offscreen{-webkit-transform:translate3d(0,-54px,0);transform:translate3d(0,-54px,0)}.upsellBanner.showingConsubUpsell .upsellBanner__consub,.upsellBanner .upsellBanner__app{opacity:1}.upsellBanner:not(.showingConsubUpsell) .upsellBanner__consub,.upsellBanner.showingConsubUpsell .upsellBanner__app{opacity:0;pointer-events:none}.upsellBanner__app{text-align:center}.upsellBanner__app,.upsellBanner__consub{position:absolute;top:0;bottom:0;left:0;right:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.upsellBanner__consub{background:linear-gradient(to right,#7d01a1,#f50);display:flex;justify-content:space-between;align-items:center;padding:0 12px;-webkit-font-smoothing:antialiased}.upsellBanner__appButton{margin-top:10px}.upsellBanner__snippet{color:#fff;font-size:12px}.upsellBanner__consubButton.g-button-cta{background:transparent;border:1px solid #fff;font-size:12px;height:32px;padding:5px 6px;overflow:visible}.upsellBanner.m-launch-app-overlay-visible .upsellBanner__appButton{opacity:0}@media (max-width:345px){.upsellBanner__snippet,.upsellBanner__consubButton.g-button-cta{font-size:11px}}@media (min-width:400px){.upsellBanner__snippet,.upsellBanner__consubButton.g-button-cta{font-size:13px}}")),data=null}),
define("views/banner/upsell.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+='<div class="upsellBanner__app"> <a href="'+a((o=t&&t.url,typeof o===u?o.apply(t):o))+'" class="upsellBanner__appButton g-button g-button-large g-button-cta g-touch-padding">'+a((o=t&&t.text,typeof o===u?o.apply(t):o))+'</a>\n</div>\n<div class="upsellBanner__consub"> <span class="upsellBanner__snippet"> '+a(n.$t.call(t,"No more previews, just full tracks.",{hash:{},data:i}))+' </span> <a href="'+a((o=t&&t.goUrl,typeof o===u?o.apply(t):o))+'" class="upsellBanner__consubButton g-button g-button-cta g-touch-padding"> '+a(n.$t.call(t,"Try SoundCloud Go+",{hash:{},data:i}))+" </a>\n</div>\n",s})}),
define("views/cookie-banner/cookie-banner.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".cookieBanner{position:relative;background-color:rgba(0,0,0,.9);padding:12px 48px 12px 12px}.cookieBanner.m-dismissed{display:none}.cookieBanner__message{color:#999;font-size:11px;line-height:1.3}.cookieBanner__messageLink{color:#fff}.cookieBanner__dismiss{position:absolute;display:flex;justify-content:center;align-items:center;top:0;right:0;bottom:0;width:48px;cursor:pointer;color:#999;font-size:20px}")),data=null}),
define("views/cookie-banner/cookie-banner.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+='<p class="cookieBanner__message"> '+o(n.$t.call(t,"We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].",{hash:{linkStart:t&&t.cookieLinkStart,linkEnd:t&&t.cookieLinkEnd},data:i}))+'\n</p>\n<div class="cookieBanner__dismiss" role="button">×</div>\n',s})}),
define("views/play-controls/play-controls.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".playControls{height:54px}.playControls__content{position:relative;padding:7px 10px;overflow:hidden;background:#333}.playControls__nowPlaying{margin:0 45px 0 0}.playControls__artwork{float:left;margin:0 10px 0 0}.playControls__username,.playControls__title{display:block}.playControls__username{font-size:12px;color:#999;line-height:19px}.playControls__title{font-size:14px;color:#fff;line-height:19px}.playControls__playPause{float:right;height:40px;width:40px;background:rgba(0,0,0,.25) url(https://mobi.sndcdn.com/assets/images/ldpi/player/mini_play_pause_button-6b8e48e4.png) 1px -38px no-repeat;background-size:100% auto;border:1px solid #fff;border-radius:40px;-webkit-transition:background-color .1s ease-in;transition:background-color .1s ease-in}.playControls.playing .playControls__playPause{background-position:0 0}.playControls__playPause:active{background-color:rgba(0,0,0,.5)}.playControls.playing .playControls__playIndicator{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.playControls.go .playControls__playIndicator{background:linear-gradient(to right,#7d01a1,#f50)}")),data=null}),
define("views/play-controls/play-controls.tmpl",["vendor/handlebars-runtime","views/play-controls/now-playing"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function f(e,t){var r="",i;return r+='\n<div class="playControls__content g-z-index-overlay"> <a role="button" class="playControls__playPause g-touch-padding sc-selection-disabled">'+u(n.$a11y.call(e,{hash:{screenreader:n.$t.call(e,"Play or pause track",{hash:{_comment:"Help text on a play button"},data:t})},data:t}))+'</a> <div class="playControls__nowPlaying"> '+u(n.$view.call(e,"views/play-controls/now-playing",{hash:{resource_id:(i=e&&e.sound,i==null||i===!1?i:i._resource_id)},data:t}))+' </div>\n</div>\n<div class="playControls__playIndicator g-z-index-banner g-play-indicator"></div>\n',r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this;o=n["if"].call(t,t&&t.sound,{hash:{},inverse:a.noop,fn:a.program(1,f,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}),
define("config/endpoints",["require","exports","module","config"],function(e,t,n){var r=e("config"),i=r.get("api_web_host"),s=r.get("api_host"),o=r.get("bff_api_host"),u=n.exports={track:{host:i,path:"tracks/:urn"},trackBatch:{host:i,path:"tracks"},playlist:{host:i,path:"playlists/:id",query:{representation:"full"}},user:{host:i,path:"users/:urn"},userProfileItems:{host:i,path:"users/:id/profile"},userLikes:{host:i,path:"users/:id/likes"},userPosts:{host:i,path:"users/:id/posts"},spotlightItems:{host:i,path:"users/:id/spotlight"},relatedTracks:{host:i,path:"tracks/:id/related"},assignments:{host:i,path:"assignments/"},charts:{host:i,path:"charts",query:{kind:null,genre:null}},resolveApiWeb:{host:i,path:"resolve",query:{permalink_url:null}},search:{host:i,path:"search"},searchCategory:{host:i,path:"search/:category"},searchQueries:{host:i,path:"search/queries",query:{q:null}},paymentQuotations:{host:i,path:"payments/quotations/:category"},trendingTracks:{host:o,path:"trending-tracks"},resolvePublicApi:{host:s,path:"resolve",query:{url:null,"_status_code_map[302]":200,_status_format:"json"}},trackRegisterPlayback:{host:s,path:"tracks/:id/plays"},trackStreams:{host:s,path:"i1/tracks/:id/streams"}}}),
define("lib/gc-store",["require","exports","module","lib/store","lib/mixins/usage-counting"],function(e,t,n){var r=e("lib/store"),i=e("lib/mixins/usage-counting"),s=n.exports=r.extend();i.applyTo(s.prototype)}),
define("lib/math",["require","exports","module"],function(e,t,n){n.exports={clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},precise:function(e,t){return t=Math.pow(10,t||0),Math.round(e*t)/t}}}),
define("lib/errors/unauthorized-viewer",["require","exports","module"],function(e,t,n){function r(){var e=Error.apply(this,arguments);e.name=this.name="UnauthorizedViewerError",this.message="User is unauthorized to view this resource.",this.stack=e.stack}r.prototype=Object.create(Error.prototype),n.exports=r}),
define("lib/integrations/promoted",["require","exports","module","underscore","config","lib/persistent-store","lib/url"],function(e,t,n){function h(e){var t=new Image;t.src=e}var r=e("underscore"),i=e("config"),s=e("lib/persistent-store"),o=e("lib/url"),u=new s("promoted-session","session"),a=new s("promoted-persistent"),f={impression:"impression",play:"sound_play",soundClickThrough:"sound_click",userClickThrough:"profile_click"},l={search:"/promoted/search/mobileweb"},c=n.exports={getAdUrl:function(e,t){return o.modify(i.get("promotedContentServer"),{path:l[e],query:r.extend({user_id:a.get("user_id"),session_id:u.get("session_id"),geo_id:u.get("geo_id"),access_token:i.get("promotedContentAccessToken"),user_urn:i.get("me").getUrn()},t)})},trackEvent:function(e,t){c.getTrackingUrls(e,t).forEach(h)},parseResponse:function(e){var t=r.first(e.promoted)||{};return t.session_id&&t.geo_id&&t.user_id?(u.set("session_id",t.session_id),u.set("geo_id",decodeURIComponent(t.geo_id)),a.set("user_id",t.user_id),t):{}},getTrackingUrls:function(e,t){var n=t&&t.tracking&&t.tracking[f[e]]||[];return r.isArray(n)?n:[n]}}}),
define("lib/scaudio-logger",["require","exports","module","vendor/console-logger/console-logger"],function(e,t,n){var r=e("vendor/console-logger/console-logger"),i=r({label:"scaudio",enabled:!0,buffer:!0});n.exports={debug:i.log,info:i.info,warn:i.warn,error:i.error}}),
define("lib/media-element-manager",["require","exports","module","vendor/playback/playback","lib/scaudio-logger"],function(e,t,n){var r=e("vendor/playback/playback").SCAudioControllerHTML5Player.MediaElementManager,i=e("lib/scaudio-logger"),s=n.exports=new r("audio",i)}),
define("vendor/playback/playback",["require","exports","module"],function(e,t,n){n.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=39)}([function(e,t,n){"use strict";var r=n(6);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";function r(e){try{e()}catch(t){window.setTimeout(function(){throw t},0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.deferException=r},function(e,t,n){"use strict";e.exports=n(75)()?Symbol:n(76)},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),i=function(){function e(){this._listeners=[],this.dispatch=this.dispatch.bind(this)}return e.prototype.subscribe=function(e){var t=this,n={fn:e,payloads:[]};return this._listeners.push(n),{remove:function(){var e=t._listeners.indexOf(n);return e>=0&&(t._listeners.splice(e,1),!0)},retrieve:function(){return t._dispatchListenerPayloads(n)}}},e.prototype.dispatch=function(e,t){var n=this,i="number"==typeof t?{time:t}:t||{},s=void 0!==i.time?i.time:r.now(),o=this._listeners;o.forEach(function(t){return t.payloads.push({time:s,payload:e})});var u=!1;do u=!o.some(function(e){var t=e.fn,r=e.payloads,i=r.shift();return!!i&&(n._callHandler(t,i),!0)});while(!u)},e.prototype.getHandle=function(){return{subscribe:this.subscribe.bind(this)}},e.prototype._dispatchListenerPayloads=function(e){for(var t=e.fn,n=e.payloads;;){var r=n.shift();if(!r)break;this._callHandler(t,r)}},e.prototype._callHandler=function(e,t){try{e(t.payload,t.time)}catch(n){window.setTimeout(function(){throw n},0)}},e}();t.EventDispatcher=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getCode=function(){return"PLAYER_FATAL_ERROR"},t}(i.PlayerError);t.PlayerFatalError=s},function(e,t,n){"use strict";var r=n(34)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41);t.Promise=r.Promise},function(e,t,n){"use strict";var r,i=n(19),s=n(35),o=n(71),u=n(36);r=e.exports=function(e,t){var n,r,o,a,f;return arguments.length<2||"string"!=typeof e?(a=t,t=e,e=null):a=arguments[2],null==e?(n=o=!0,r=!1):(n=u.call(e,"c"),r=u.call(e,"e"),o=u.call(e,"w")),f={value:t,configurable:n,enumerable:r,writable:o},a?i(s(a),f):f},r.gs=function(e,t,n){var r,a,f,l;return"string"!=typeof e?(f=n,n=t,t=e,e=null):f=arguments[3],null==t?t=void 0:o(t)?null==n?n=void 0:o(n)||(f=n,n=void 0):(f=t,t=n=void 0),null==e?(r=!0,a=!1):(r=u.call(e,"c"),a=u.call(e,"e")),l={get:t,set:n,configurable:r,enumerable:a},f?i(s(f),l):l}},function(e,t,n){"use strict";function r(){var e,t,n=!1;return{promise:new i.Promise(function(n,r){e=n,t=r}),resolve:function(t){n||(n=!0,e(t))},reject:function(e){n||(n=!0,t(e))},isSettled:function(){return n}}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.buildDeferred=r},function(e,t,n){"use strict";function r(e,t){return{debug:function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e.debug.apply(e,["["+t+"] "+n].concat(r))},error:function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e.error.apply(e,["["+t+"] "+n].concat(r))},info:function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e.info.apply(e,["["+t+"] "+n].concat(r))},warn:function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e.warn.apply(e,["["+t+"] "+n].concat(r))}}}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{debug:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.forEach(function(e){return e.debug.apply(e,[t].concat(n))})},error:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.forEach(function(e){return e.error.apply(e,[t].concat(n))})},info:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.forEach(function(e){return e.info.apply(e,[t].concat(n))})},warn:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.forEach(function(e){return e.warn.apply(e,[t].concat(n))})}}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(21),o=s.isIE();t.noOpLogger={debug:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},error:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},info:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},warn:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]}},t.consoleLogger={debug:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;o?console.log(e,t):(r=console.debug||console.log).call.apply(r,[console,e].concat(t))},error:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;o?console.log(e,t):(r=console.error||console.log).call.apply(r,[console,e].concat(t))},info:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;o?console.log(e,t):(r=console.info||console.log).call.apply(r,[console,e].concat(t))},warn:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;o?console.log(e,t):(r=console.warn||console.log).call.apply(r,[console,e].concat(t))}},t.prefixLogger=r,t.cloneLogger=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._msg=e,this._cause=t}return e.prototype.getCode=function(){return"PLAYER_ERROR"},e.prototype.getMsg=function(){return this._msg},e.prototype.getCause=function(){return this._cause},e}();t.PlayerError=r},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call(function(){return arguments}());e.exports=function(e){return r.call(e)===i}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===i)||!1}},function(e,t,n){"use strict";function r(){return"performance"in window&&window.performance.now?window.performance.now():Date.now()-i}Object.defineProperty(t,"__esModule",{value:!0});var i=Date.now();t.now=r},function(e,t,n){"use strict";function r(e,t){return e.then(t,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.always=r},function(e,t,n){"use strict";function r(e,t){var n=void 0;return e.some(function(e){return!!t(e)&&(n=e,!0)}),n}Object.defineProperty(t,"__esModule",{value:!0}),t.find=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),s=function(e){function t(t,n,r){return void 0===r&&(r="The player that the proxy was controlling had a fatal error."),e.call(this,t,n,r)||this}return r(t,e),t.prototype.getCode=function(){return"PROXY_PLAYER_PROVIDED_PLAYER_FATAL_ERROR"},t}(i.ProxyProvidedPlayerError);t.ProxyProvidedPlayerFatalError=s},function(e,t,n){"use strict";e.exports=n(31)()?Object.setPrototypeOf:n(32)},function(e,t,n){"use strict";e.exports=n(66)()?Object.assign:n(67)},function(e,t,n){"use strict";function r(e,t){var n=t.convertResult,r=t.convertProgressUpdate,i=t.abortableJobOpts,o=t.passThroughAbort,u=void 0===o||o;return new f(function(){var t=e(),i=new a.EventDispatcher,o=!0,f=s.buildDeferred();return r&&t.onProgressUpdate(function(e){i.dispatch(r(e,o)),o=!1},{skipPast:!0}),t.onCompletion(function(e){try{f.resolve(n(e))}catch(t){f.reject(t)}}),t.onError(f.reject),{result:f.promise,progressUpdates:r?{onProgressUpdate:i,getProgressSoFar:function(){var e=t.getProgressSoFar();if(e){var n=r(e,o);return o=!1,n}return null}}:void 0,abort:function(){return u&&t.abort()}}},i)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=n(9),o=n(15),u=n(1),a=n(4);t.abortedError=new Error("Job aborted."),t.map=r;var f=function(){function e(e,t){void 0===t&&(t={}),this._job=e,this._opts=t,this._counter=0,this._jobControl=null,this._promise=null,this._jobCompleted=!1}return e.prototype.run=function(){var e,n=this;if(this._jobControl)e=this._jobControl;else{try{e=this._jobControl=this._job()}catch(r){e=this._jobControl={result:i.Promise.reject(r)}}this._promise=e.result,o.always(this._promise,function(){n._jobCompleted=!0,n._opts.storeResult||(n._jobCompleted=!1,n._promise=null,n._jobControl=null)})}var a=this._promise;this._counter++;var f=s.buildDeferred(),l=!1,c=!1,h=void 0,p=!1,d=[],v=[],m=[],g=function(){p||(l=!0,n._counter--),d.forEach(function(e){return e.remove()})};return o.always(a,g),a.then(function(e){p||(h=e,v.forEach(function(t){return u.deferException(function(){return t(e)})}),v.splice(0),f.resolve(e))},function(e){p||(c=!0,h=e,m.forEach(function(t){return t(e)}),m.splice(0),f.reject(e))}),{whenComplete:function(){return f.promise},onProgressUpdate:function(t,n){if(void 0===n&&(n={}),e.progressUpdates){if(!p&&!l){var r=e.progressUpdates.onProgressUpdate.subscribe(function(e){return t(e)});d.push(r)}if(!n.skipPast){var i=e.progressUpdates.getProgressSoFar();i&&t(i)}}},getProgressSoFar:function(){return e.progressUpdates?e.progressUpdates.getProgressSoFar():null},onCompletion:function(e){l?!c&&u.deferException(function(){return e(h)}):v.push(e)},onError:function(e){p?u.deferException(function(){return e(t.abortedError)}):l?c&&u.deferException(function(){return e(h)}):m.push(e)},hasCompleted:function(){return l},hasErrored:function(){return c},isAborted:function(){return p},abort:function(){p||l||(p=!0,d.forEach(function(e){return e.remove()}),0==--n._counter&&!n._jobCompleted&&n._jobControl&&n._jobControl.abort&&(n._jobControl.abort(),n._promise=null,n._jobControl=null),m.forEach(function(e){return u.deferException(function(){return e(t.abortedError)})}),f.reject(t.abortedError))}}},e}();t.AbortableJob=f},function(e,t,n){"use strict";function r(){return p}function i(){return g}function s(){return m}function o(){return d}function u(){return v}function a(){return c(y)}function f(){return c(b)}function l(){return c(w)}function c(e){var t=navigator.userAgent.match(e);if(t&&t.length>=3){var n=parseInt(t[1],10),r=parseInt(t[2],10);if(!isNaN(n)&&!isNaN(r))return{major:n,minor:r}}return null}Object.defineProperty(t,"__esModule",{value:!0});var h="undefined"!=typeof navigator?navigator.userAgent:"",p=!/chrome|opera/i.test(h)&&/safari/i.test(h),d=h.indexOf("MSIE ")>=0||h.indexOf("Trident/")>=0,v=h.indexOf("Edge/")>=0,m=/Chrom(?:e|ium)/.test(h),g=h.toLowerCase().indexOf("firefox")>=0,y=/version\/(\d+)\.(\d+)/i,b=/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)/,w=/Firefox\/(\d+)\.(\d+)/;t.isSafari=r,t.isFirefox=i,t.isChrome=s,t.isIE=o,t.isEdge=u,t.getSafariVersion=a,t.getChromeVersion=f,t.getFirefoxVersion=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(23),o=n(11),u=n(5),a=n(10),f=n(4),l=n(30),c=n(17),h=function(e){function t(t){var n=e.call(this,t)||this;return n._onProvidedPlayerError=new f.EventDispatcher,n._errorHandler=null,n._changeHandler=null,n._player=null,n._instanceLock=null,n._playConfig=void 0,n._pauseConfig=void 0,n._seekConfig=void 0,n._lastPlayerPosition=0,n._initialProvidedPlayerPosition=0,n._synced=!1,n._unsyncInProgress=!1,n._seekingProvidedPlayer=!1,n._logger=a.prefixLogger(n._logger,"ProxyPlayerBase"),n.onProvidedPlayerError=n._onProvidedPlayerError.getHandle(),n}return r(t,e),t.prototype.getBufferedTimeRanges=function(){return this._player&&this._synced?this._player.getBufferedTimeRanges():null},t.prototype.getCurrentBufferedTimeRange=function(){return this._player&&this._synced?this._player.getCurrentBufferedTimeRange():null},t.prototype.getMaxBufferLength=function(){return this._player&&this._synced?this._player.getMaxBufferLength():null},t.prototype._providePlayer=function(e,t){if(void 0===t&&(t={}),t=i({syncPosition:!0,syncVolume:!0},t),this._ensureNotDead(),this._player)throw new Error("A player has already been provided.");this._logger.debug("providePlayer() called."),this._instanceLock=Object.create(null),this._player=e,this._sync(t)},t.prototype._removePlayer=function(){var e=this;if(this._ensureNotDead(),!this._player)throw new Error("There is no player to remove.");if(this._unsyncInProgress)throw new Error("Player is currently unsyncing.");this._logger.debug("removePlayer() called."),this._instanceLock=null,this._unsync(),this._player=null,this.isReady()&&!this.isDead()&&this._update(function(){var t=null!==e._getQueuedSeekPosition();e._notifyFading(!1),t||null===e._getQueuedSeekPosition()||e._signalSeekComplete(),e._notifyFadingForSeek(!1),e._notifyStalled(!0)})},t.prototype._setInitialDuration=function(e){var t=this;if(this._ensureNotDead(),e<0)throw new Error("Cannot set duration to a value < 0.");null===this.getDuration()&&this._update(function(){t._ensureBelowPosition(e),t._provideDuration(e),t.isReady()||(t._signalReady(),t._handleSkippedSeek())})},t.prototype._triggerError=function(t){e.prototype._triggerError.call(this,t)},t.prototype._getPlayer=function(){return this.isDead()?null:this._player},t.prototype._handleVolumeChange=function(e,t){this._synced&&this._player?this._player.setVolume(e,t):this._notifyVolumeChange(e,t)},t.prototype._handlePlayPauseChange=function(e,t){var n=this,r=t.fadeRate;e?this._playConfig={fadeDuration:void 0!==r?1/r:0}:this._pauseConfig={fadeDuration:void 0!==r?-1/r:0};var i=this._player;if(i){var s=this._instanceLock;this._update(function(){if(e)n._playAndHandleAbort(i);else{if(n._pauseAndHandleAbort(i),n._instanceLock!==s)return;i.isFading()&&n._notifyFading(!0)}})}},t.prototype._handleSeekChange=function(e,t){var n=t.fadeRate;this._seekConfig={fadeOutDuration:void 0!==n.beforeSeek?-1/n.beforeSeek:0,fadeInDuration:void 0!==n.afterSeek?1/n.afterSeek:0};var r=this._player,i=this._instanceLock;if(r&&this._synced){if(this._seekingProvidedPlayer=!0,r.seek(e,this._seekConfig),i!==this._instanceLock)return;this._seekingProvidedPlayer=!1,r.isFadingForSeek()&&this._notifyFadingForSeek(!0)}},t.prototype._getPosition=function(){if(this._player&&this._synced){if(!this._changeHandler)throw new Error("Handler should exist.");if(this._changeHandler.retrieve(),this._synced)return this._player.getPosition()}return this._lastPlayerPosition},t.prototype._kill=function(){this._player&&(this._unsync(),this._player.kill()),this._player=null},t.prototype._handleSkippedSeek=function(){if(this._player&&this._synced){var e=this.getSeekState(),t=this._player.getSeekState();!e||"IN_PROGRESS"!==e.state||t&&"IN_PROGRESS"===t.state||(this._logger.debug("Signalling seek as complete on proxy because provided player isn't seeking."),this._signalSeekComplete())}},t.prototype._ensureBelowPosition=function(e){this.getPosition()>e&&(this._logger.debug("Capping position.",e),this._seek(e,!0),this.isReady()&&(this._lastPlayerPosition=e,this._signalSeekComplete()))},t.prototype._sync=function(e){var t=this,n=this._player;if(!n)throw new Error("Player should have become available by now.");if(this._logger.debug("Syncing...",this.isPlaying(),this.isActuallyPlaying()),n.isDead()){this._logger.debug("Provided player is dead.");var r=n.getFatalError();return void (r&&this._handleFatalError(r,n))}this._errorHandler=n.onError.subscribe(function(e){e instanceof u.PlayerFatalError?t._onProvidedPlayerError.dispatch(new c.ProxyProvidedPlayerFatalError(e,n)):(t._triggerError(e),t._onProvidedPlayerError.dispatch(new l.ProxyProvidedPlayerError(e,n)))}),this._changeHandler=n.onChange.subscribe(function(e){t._update(function(){if(t._logger.debug("Handling changes.",e),e.dead)return t._logger.debug("Player has gone to DEAD state."),t._unsync(),void (t.isDead()||e.fatalError&&t._handleFatalError(e.fatalError,n));void 0===e.volume&&void 0===e.muted||t._notifyVolumeChange(n.getVolume(),n.getMuted()),void 0!==e.duration&&(t._ensureBelowPosition(e.duration),t._provideDuration(e.duration),t.isReady()||(t._signalReady(),t._handleSkippedSeek(),t._notifyStalled(n.isStalled())));var r=t.getSeekState();e.seekBlockedError&&t._seekingProvidedPlayer&&(t._synced?t._signalSeekBlocked(e.seekBlockedError):r&&"IN_PROGRESS"===r.state?t._notifySeekRejection(e.seekBlockedError):(t._logger.debug("Provided player blocked seek when trying to sync."),t._seek(t._initialProvidedPlayerPosition,!0),t._signalSeekComplete())),e.seek&&(r&&"IN_PROGRESS"===r.state||"IN_PROGRESS"!==e.seek.state?r&&"IN_PROGRESS"===r.state&&("COMPLETED"===e.seek.state&&r.position===e.seek.position?(t._signalSeekComplete(),n.isFadingForSeek()&&t._notifyFadingForSeek(!0)):"COMPLETED"===e.seek.state&&r.position!==e.seek.position?t._notifySeekRejection(new Error("Another seek occurred to a different position.")):"IN_PROGRESS"===e.seek.state&&r.position!==e.seek.position?t._seek(e.seek.position,!0):"ERROR"===e.seek.state&&t._notifySeekRejection(e.seek.error)):t._seek(e.seek.position,!0)),void 0!==e.stalled&&t._notifyStalled(e.stalled),!1===e.playing&&e.playRejection?t.isActuallyPlaying()?(t._triggerError(new o.PlayerError("Paused because a player was provided that refused to play.")),t._notifyPlaying(!1)):t._notifyPlayRejection(e.playRejection):!1===e.playing&&(n.isActuallyPlaying()?t.pause():void 0===e.actuallyPlaying&&t.isReady()&&t._notifyPlaying(!1)),!0===e.playing&&e.pauseRejection?t._notifyPauseRejection(e.pauseRejection):!0===e.playing&&t.play(),void 0!==e.actuallyPlaying&&e.actuallyPlaying!==t.isActuallyPlaying()&&(t._notifyPlaying(e.actuallyPlaying),e.actuallyPlaying&&n.isFading()&&t._notifyFading(!0)),!1===e.fading&&t._notifyFading(!1),!1===e.fadingForSeek&&t._notifyFadingForSeek(!1)})}),this._update(function(){var r=t._instanceLock;try{if(t._notifyStalled(n.isStalled()),n.isReady()){var i=n.getDuration();t._ensureBelowPosition(i),t._provideDuration(i),t.isReady()||(t._logger.debug("Provided player is already ready. Making proxy player ready."),t._signalReady())}if(e.syncVolume&&(n.setVolume(t.getVolume(),t.getMuted()),t._instanceLock!==r))return;var s=t.getSeekState();if(e.syncPosition){t._logger.debug("Seeking to match position.");var o=t.getPosition(),a=t._initialProvidedPlayerPosition=n.getPosition();if(t._instanceLock!==r)return;if(a!==o){if(t._seekingProvidedPlayer=!0,n.seek(o),t._instanceLock!==r)return;t._seekingProvidedPlayer=!1}else t._logger.debug("Skipping seek because already at same position."),t.isReady()&&s&&"IN_PROGRESS"===s.state&&t._signalSeekComplete()}else if(s&&"IN_PROGRESS"===s.state){if(t._logger.debug("Seeking to match position because a seek has been queued."),n.seek(t.getPosition(),t._seekConfig),t._instanceLock!==r)return}else{var f=n.getSeekState();f&&"IN_PROGRESS"===f.state&&(t._logger.debug("Seeking on proxy to match seek that is in progress on provided player."),t._seek(f.position,!0))}if(n.isActuallyPlaying()?(t._logger.debug("Provided player is already playing."),t.isActuallyPlaying()||(t._notifyPlaying(!0),n.isFading()&&t._notifyFading(!0))):n.isPlaying()?(t._logger.debug("Provided player is preparing to play."),t.play()):t.isPlaying()?(t._logger.debug("Calling play() on provided player to match proxy."),t._playAndHandleAbort(n)):t.isReady()&&t.isActuallyPlaying()&&(t._logger.debug("Switching to paused state, as provided player and proxy intended state is paused."),t._notifyPlaying(!1)),t._instanceLock!==r)return;t._synced=!0,t._notifyVolumeChange(n.getVolume(),n.getMuted())}catch(l){t._triggerError(new u.PlayerFatalError("Unexpected error occurred whilst syncing.",l))}})},t.prototype._playAndHandleAbort=function(e){var t=this._instanceLock;this._logger.debug("Calling play() on provided player."),e.play(this._playConfig),this._instanceLock===t&&!e.isPlaying()&&this.isPlaying()&&(this._logger.debug("Provided player was not playing after play() call completed."),this.isActuallyPlaying()?(this._triggerError(new o.PlayerError("Paused because a player was provided that refused to play.")),this._notifyPlaying(!1)):this.pause())},t.prototype._pauseAndHandleAbort=function(e){var t=this._instanceLock;this._logger.debug("Calling pause() on provided player."),e.pause(this._pauseConfig),this._instanceLock===t&&e.isPlaying()&&!this.isPlaying()&&(this._logger.debug("Provided player was not paused after pause() call completed."),this.play())},t.prototype._unsync=function(){if(this._logger.debug("Unsyncing..."),this._changeHandler&&(this._changeHandler.remove(),this._changeHandler=null),this._errorHandler&&(this._errorHandler.remove(),this._errorHandler=null),!this._synced)return void this._logger.debug("Unsynced. (Sync never completed)");this._synced=!1,this._unsyncInProgress=!0;var e=this._player;if(e)try{this._lastPlayerPosition=e.getPosition()}catch(t){this._logger.error("Error whilst unsyncing.",t)}this._unsyncInProgress=!1,this._seekingProvidedPlayer=!1,this._logger.debug("Unsynced.",this.isPlaying(),this.isActuallyPlaying())},t}(s.BasePlayer);t.ProxyPlayerBase=h},function(e,t,n){"use strict";function r(){return{ended:!1,loading:!1,playing:!1,actuallyPlaying:!1,volume:1,muted:!1,isFading:!1,fadeRate:null,isFadingForSeek:!1,playDeferred:null,pauseDeferred:null,ready:!1,seeking:!1,seek:null,seekBlockedError:null,positionJumped:null,stalled:!0,duration:null,dead:!1,state:c.State.PAUSED,fatalError:null,errorOccurred:null,position:0}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),s=n(24),o=n(4),u=n(9),a=n(16),f=n(14),l=n(7),c=n(25),h=n(10),p=n(26),d=n(28),v=n(1),m=n(46),g=n(29),y=150,b=25,w=35,E=1e3,S=function(){function e(e){var t=this;this._stateManager=new p.StateManager(r(),{afterUpdate:function(e,n){return t._afterUpdate(e,n)},afterDispatches:function(){return t._afterDispatches()},beforeUpdate:function(e){if(!e.dead&&(e.ready||!t._fatalErrorTriggered)){var n=t._getPosition(),r=e.duration;if(n<0)throw t._logger.error("Player provided invalid position.",n,r),t._triggerError(new d.ImplementationError("Player provided a position that was invalid.")),new Error("Player provided invalid position.");e.position=n,t._updateEndedInState(e)}}}),this._onError=new o.EventDispatcher,this._errors=[],this._fatalErrorTriggered=!1,this._loadingDelayTimer=null,this._stalled=!1,this._queuedDuration=null,this._readyDeferred=u.buildDeferred(),this._queuedSeekDeferreds=[],this._lastPlayError=null,this._lastPauseError=null,this._lastPlayedPosition=null,this._listenTimeBase=0,this._timePlaybackStarted=null,this._positionAfterLastUpdate=0,this._positionWhenStartedFadeOut=null,this._fadeStartAllowed=!1,this._seekFadeStartAllowed=!1,this._implementationIsFading=!1,this._mediaSessionManagerHandle=null,this._activeSeek=null,this._activeSeekPositionJumped=null;var n=e.name;if(this._logger=h.prefixLogger(e.logger,"BasePlayer"+(n?"-"+n:"")),this._mediaSessionEnabled=!!e.mediaSessionEnabled,e.defaultFadeDuration&&e.defaultFadeDuration<0)throw new Error("defaultFadeDuration must be >= 0.");if(e.loadingDelay&&e.loadingDelay<0)throw new Error("loadingDelay must be >= 0.");this._defaultFadeDuration=void 0!==e.defaultFadeDuration?e.defaultFadeDuration:y,this._defaultSeekFadeOutDuration=void 0!==e.defaultSeekFadeOutDuration?e.defaultSeekFadeOutDuration:b,this._defaultSeekFadeInDuration=void 0!==e.defaultSeekFadeInDuration?e.defaultSeekFadeInDuration:w,this._loadingDelay=void 0!==e.loadingDelay?e.loadingDelay:E,this._seekStrategy=void 0!==e.seekStrategy?e.seekStrategy:g.AlwaysAllowSeekStrategy,this.onError=this._onError.getHandle(),this.whenReady=this._readyDeferred.promise,this._configureRewindAfterFadeOut(),this._stateManager.subscribe(function(e,n){return t._onChange(e,n)}),this._stateManager.subscribe(function(e){var n=e.actuallyPlaying,r=e.seek;!0===n&&(t._fadeStartAllowed=!1),r&&"IN_PROGRESS"!==r.state&&(t._seekFadeStartAllowed=!1)}),this._stateManager.subscribe(function(e,n){var r=e.isFading;!n.dead&&!1===r&&t._implementationIsFading&&t._triggerError(new d.ImplementationError("Fade was still running when not allowed."))}),this._stateManager.subscribe(function(e,n){var r=e.playing,i=n.dead,s=n.fadeRate;i||void 0===r||t._stateManager.update(function(){try{t._handlePlayPauseChange(r,{fadeRate:s||void 0}),r||(t._fadeStartAllowed=!1)}catch(e){t._triggerError(new d.ImplementationError("Exception occurred whilst handling play/pause change.",e))}})}),this._stateManager.subscribe(function(e,n){var r=e.seek;!n.dead&&r&&r!==t._activeSeek&&"IN_PROGRESS"===r.state&&t._stateManager.update(function(){try{t._seekFadeStartAllowed=!0,t._handleSeekChange(r.position,{fadeRate:{beforeSeek:r.fadeRate.beforeSeek||void 0,afterSeek:r.fadeRate.afterSeek||void 0}}),t._seekFadeStartAllowed=!1}catch(e){t._triggerError(new d.ImplementationError("Exception occurred whilst handling seek change.",e))}})}),this._stateManager.subscribe(function(e,n){var r=e.seek,i=e.seekBlockedError,s=e.positionJumped;r&&(t._activeSeek=r),s&&(t._activeSeekPositionJumped=s),t._queuedSeekDeferreds=t._queuedSeekDeferreds.filter(function(e){var r=e.position,s=e.active,o=e.deferred;if(i&&!s)return t._logger.debug("Rejecting seek() because it was blocked.",i),o.reject(i),!1;if(n.seek&&"ERROR"===n.seek.state)return t._logger.debug("Rejecting seek().",n.seek.error),o.reject(n.seek.error),!1;if(n.seek&&"COMPLETED"===n.seek.state)return!!n.stalled||(t._logger.debug("Resolving seek()."),o.resolve(),!1);if(n.seek&&"IN_PROGRESS"===n.seek.state)return r===n.seek.position||(t._logger.debug("Rejecting seek() because another seek was requested.",r),o.reject(new Error("Seek request aborted because another seek was requested to a different position.")),!1);throw t._triggerError(new d.ImplementationError("Unexpected error handling seek deferreds.")),new Error("Unexpected error handling seek deferreds.")}),t._queuedSeekDeferreds.forEach(function(e){return e.active=!0})}),this.onChange=this._buildEventHandle(function(e,n){var r=n.ready;if(void 0!==r&&!0!==r)throw new Error("Ready state is invalid.");var i=n.duration;if(void 0!==i&&null===i)throw new Error("Duration state is invalid.");var s=n.dead;if(void 0!==s&&!0!==s)throw new Error("Dead state is invalid.");var o={ready:r,ended:n.ended,duration:i,volume:n.volume,muted:n.muted,playing:n.playing,actuallyPlaying:n.actuallyPlaying,stalled:n.stalled,loading:n.loading,fading:n.isFading,fadingForSeek:n.isFadingForSeek,playRejection:!1===n.playing?t._lastPlayError||void 0:void 0,pauseRejection:!0===n.playing?t._lastPauseError||void 0:void 0,seeking:n.seeking,seek:n.seek||void 0,seekBlockedError:n.seekBlockedError||void 0,positionJumped:void 0!==n.positionJumped||void 0,state:n.state,fatalError:n.fatalError||void 0,dead:s};Object.keys(o).some(function(e){return void 0!==o[e]})&&e(o)});var i=e.registerListeners;i&&v.deferException(function(){i({onChange:t.onChange,onError:t.onError})}),this.onDurationChange=this._buildEventHandle(function(e,t){var n=t.duration;void 0!==n&&null!==n&&e(n)}),this.onReady=this._buildEventHandle(function(e,t){!0===t.ready&&e(void 0)}),this.onStateChange=this._buildEventHandle(function(e,t){var n=t.state;void 0!==n&&e(n)}),this.onVolumeChange=this._buildEventHandle(function(e,t,n){var r=t.volume,i=t.muted,s=n.volume,o=n.muted;void 0===r&&void 0===i||e({volume:s,muted:o})}),this.onPlay=this._buildEventHandle(function(e,t){!0===t.actuallyPlaying&&e(void 0)}),this.onPlayIntent=this._buildEventHandle(function(e,t){!0===t.playing&&e(void 0)}),this.onPlayRejection=this._buildEventHandle(function(e,n){!1===n.playing&&t._lastPlayError&&e(t._lastPlayError)}),this.onPause=this._buildEventHandle(function(e,t){!1===t.actuallyPlaying&&e(void 0)}),this.onPauseIntent=this._buildEventHandle(function(e,t){!1===t.playing&&e(void 0)}),this.onPauseRejection=this._buildEventHandle(function(e,n){!0===n.playing&&t._lastPauseError&&e(t._lastPauseError)}),this.onSeek=this._buildEventHandle(function(e,t){var n=t.seek;n&&"COMPLETED"===n.state&&e(void 0)}),this.onSeekIntent=this._buildEventHandle(function(e,t){!0===t.seeking&&e(void 0)}),this.onSeekRejection=this._buildEventHandle(function(e,t){var n=t.seek;n&&"ERROR"===n.state&&e(n.error)}),this.onPositionJumped=this._buildEventHandle(function(e,t){void 0!==t.positionJumped&&e(void 0)}),this.onEnded=this._buildEventHandle(function(e,t){!0===t.ended&&e(void 0)}),this.onLeftEnded=this._buildEventHandle(function(e,t){!1===t.ended&&e(void 0)}),this.onStallStart=this._buildEventHandle(function(e,t){!0===t.stalled&&e(void 0)}),this.onStallEnd=this._buildEventHandle(function(e,t){!1===t.stalled&&e(void 0)}),this.onLoadStart=this._buildEventHandle(function(e,t){!0===t.loading&&e(void 0)}),this.onLoadEnd=this._buildEventHandle(function(e,t){!1===t.loading&&e(void 0)}),this.onFadeStart=this._buildEventHandle(function(e,t){!0===t.isFading&&e(void 0)}),this.onFadeEnd=this._buildEventHandle(function(e,t){!1===t.isFading&&e(void 0)}),this.onFadeForSeekStart=this._buildEventHandle(function(e,t){!0===t.isFadingForSeek&&e(void 0)}),this.onFadeForSeekEnd=this._buildEventHandle(function(e,t){!1===t.isFadingForSeek&&e(void 0)})}return e.prototype.isReady=function(){return this._stateManager.getState().ready},e.prototype.getPosition=function(){return this._getPositionOrPositionSeekingTo()},e.prototype.getLastPlayedPosition=function(){var e=this._stateManager.getState(),t=e.actuallyPlaying,n=e.stalled;return t&&!n?this.getPosition():this._lastPlayedPosition},e.prototype.getListenTime=function(){var e=this._stateManager.getState(),t=e.actuallyPlaying,n=e.ended,r=this._listenTimeBase;return t&&!n&&(r+=f.now()-this._timePlaybackStarted),r},e.prototype.isStalled=function(){return this._stateManager.getState().stalled},e.prototype.isLoading=function(){return this._stateManager.getState().loading},e.prototype.isFading=function(){return this._stateManager.getState().isFading},e.prototype.isFadingForSeek=function(){return this._stateManager.getState().isFadingForSeek},e.prototype.isPlaying=function(){return this._stateManager.getState().playing},e.prototype.isActuallyPlaying=function(){return this._stateManager.getState().actuallyPlaying},e.prototype.isEnded=function(){return this._stateManager.getState().ended},e.prototype.getState=function(){return this._stateManager.getState().state},e.prototype.getBufferController=function(){return null},e.prototype.getMemoryCacheMaxSize=function(){return null},e.prototype.getMemoryCacheUsage=function(){return null},e.prototype.getMemoryCacheController=function(){return null},e.prototype.getFatalError=function(){return this._stateManager.getState().fatalError},e.prototype.isDead=function(){return this._stateManager.getState().dead},e.prototype.getVolume=function(){return this._stateManager.getState().volume},e.prototype.getMuted=function(){return this._stateManager.getState().muted},e.prototype.getDuration=function(){var e=this._stateManager.getState(),t=e.ready,n=e.duration;return t?n:null},e.prototype.setVolume=function(e,t){if(e<0||e>1)throw new Error("Volume must be >= 0 and <= 1.");if(!this._stateManager.getState().dead){var n=this._stateManager.getState().muted;void 0===t&&(t=n);try{this._handleVolumeChange(e,t)}catch(r){throw this._triggerError(new d.ImplementationError("Exception occurred updating volume.",r)),r}}},e.prototype.setMuted=function(e){this.setVolume(this._stateManager.getState().volume,e)},e.prototype.getCurrentBufferedTimeRange=function(){var e=this.getBufferedTimeRanges();if(!e)return null;var t=this.getPosition();return a.find(e,function(e){return e.containsTime(t)})||null},e.prototype.play=function(e){var t=this;this._ensureNotDead(),this._logger.debug("play() called.",e);var n=u.buildDeferred();try{return this._stateManager.update(function(r){if(r.playing)t._logger.debug("Intent is already to be playing.");else{t._logger.debug("Requesting play."),r.playing=!0;var i=t._extractFadeDuration(e);r.fadeRate=i?1/i:null,t._lastPlayError=null}r.playDeferred&&!r.playDeferred.isSettled()||(r.playDeferred=u.buildDeferred()),n.resolve(r.playDeferred.promise)}),n.promise}catch(r){return this._triggerError(new i.PlayerFatalError("Unexpected error when attempting to play.",r)),l.Promise.reject(r)}},e.prototype.pause=function(e){var t=this;this._ensureNotDead(),this._logger.debug("pause() called.",e);var n=u.buildDeferred();try{return this._stateManager.update(function(r){if(r.playing){t._logger.debug("Requesting pause."),t._positionWhenStartedFadeOut=t._getPositionOrPositionSeekingTo(),r.playing=!1;var i=t._extractFadeDuration(e);r.fadeRate=i?1/i*-1:null,t._fadeStartAllowed=!0,t._lastPauseError=null}else t._logger.debug("Intent is already to be paused.");r.pauseDeferred&&!r.pauseDeferred.isSettled()||(r.pauseDeferred=u.buildDeferred()),n.resolve(r.pauseDeferred.promise)}),n.promise}catch(r){return this._triggerError(new i.PlayerFatalError("Unexpected error when attempting to pause.",r)),l.Promise.reject(r)}},e.prototype.seek=function(e,t){return this._seek(e,!1,t)},e.prototype.getSeekState=function(){return this._stateManager.getState().seek},e.prototype.registerMediaSessionActionHandlers=function(e){var t=this;void 0===e&&(e={play:!0,pause:!0,seekForward:!0,seekBackward:!0}),this.unregisterMediaSessionActionHandlers();var n={},r=function(e){t.isDead()||e()};e.play&&(n.play=function(){return r(function(){return t.play()})}),e.pause&&(n.pause=function(){return r(function(){return t.pause()})}),e.seekBackward&&(n.seekBackward=function(){return r(function(){t.seek(Math.max(0,t.getPosition()-5e3))})}),e.seekForward&&(n.seekForward=function(){return r(function(){t.seek(Math.min(t.getDuration()||0,t.getPosition()+5e3))})}),this._mediaSessionManagerHandle=m.mediaSessionManager.register(new m.MediaSessionItem(this,n))},e.prototype.unregisterMediaSessionActionHandlers=function(){this._mediaSessionManagerHandle&&(this._mediaSessionManagerHandle.remove(),this._mediaSessionManagerHandle=null)},e.prototype.kill=function(){var e=this;this._stateManager.update(function(t){t.dead||(e._logger.debug("kill() called."),t.dead=!0)})},e.prototype._seek=function(e,t,n){var r=this,i=function(){if(t)return!0;try{return r._seekStrategy.isSeekAllowed(e)}catch(n){return r._triggerError(new d.ImplementationError("Seek strategy threw an error.",n)),!1}};this._ensureNotDead(),this._logger.debug("seek() called.",e);var s=u.buildDeferred();return this._stateManager.update(function(t){if(e<0)r._logger.warn("Rejecting seek immediately as the position was negative."),t.seekBlockedError=new Error("You were attempting to seek to a negative time.");else if(null!==t.duration&&e>t.duration)r._logger.warn("Rejecting seek immediately as the duration is now known, and the requested positon was past it."),t.seekBlockedError=new Error("You were attempting to seek past the end of the media.");else if(i())if(t.stalled||!t.actuallyPlaying||t.seek&&"IN_PROGRESS"===t.seek.state||(r._lastPlayedPosition=r._getPositionOrPositionSeekingTo()),t.seek&&"IN_PROGRESS"===t.seek.state&&t.seek.position===e)r._logger.debug("Seek already requested to the same position.",e);else{r._logger.debug("Requesting seek.",e),t.seeking=!0;var o=r._extractSeekFadeDurations(n,e),a=o.fadeOutDuration?1/o.fadeOutDuration*-1:null,f=o.fadeInDuration?1/o.fadeInDuration:null;t.seekBlockedError=null,t.seek={state:"IN_PROGRESS",position:e,fadeRate:{beforeSeek:a,afterSeek:f}},t.positionJumped=Object.create(null)}else r._logger.warn("Rejecting seek immediately as the seek strategy has denied it or threw an error."),t.seekBlockedError=new Error("The provided seeking strategy has blocked the attempt to seek.");var l=u.buildDeferred();r._queuedSeekDeferreds.push({position:e,deferred:l,active:!1}),s.resolve(l.promise)}),s.promise},e.prototype._update=function(e){this._stateManager.update(function(){return e&&e()})},e.prototype._ensureNotDead=function(){if(this._stateManager.getState().dead)throw new Error("Player is dead.")},e.prototype._notifyStalled=function(e){this._ensureNotDead(),this._stalled!==e&&(this._logger.debug("notifyStalled() called.",e),this._stalled=e,this._stateManager.update())},e.prototype._getQueuedSeekPosition=function(){var e=this.getSeekState();return e&&"IN_PROGRESS"===e.state?e.position:null},e.prototype._provideDuration=function(e){var t=this;this._ensureNotDead(),this._stateManager.update(function(n){if(n.duration!==e){var r=t._getPositionOrPositionSeekingTo();if(e<0||n.ready&&r>e)throw t._triggerError(new d.ImplementationError("Attempt to update duration to an invalid value.")),new Error("Duration cannot be less than the current position.");t._logger.debug("provideDuration() called.",e),n.ready?n.duration=e:t._queuedDuration=e}})},e.prototype._notifyVolumeChange=function(e,t){if(e<0||e>1)throw this._triggerError(new d.ImplementationError("Volume was out of range.",e)),new Error("Volume was out of range.");this._stateManager.update(function(n){n.volume=e,n.muted=t})},e.prototype._notifyPlaying=function(e){var t=this;this._ensureNotDead(),this._stateManager.update(function(n){if(!n.ready)throw t._triggerError(new d.ImplementationError("Attempt to register playback as started before ready.")),new Error("Player must be ready first.");e!==n.actuallyPlaying&&(t._logger.debug("notifyPlaying() called.",e),e||n.seeking||n.stalled||(t._lastPlayedPosition=t._getPositionOrPositionSeekingTo()),n.actuallyPlaying=n.playing=e,e?(t._lastPlayError=null,t._fadeStartAllowed=!0):(n.isFading=!1,t._fadeStartAllowed=!1,t._lastPauseError=null))})},e.prototype._notifyPlayRejection=function(e){var t=this;this._ensureNotDead(),e=e||new Error("Unknown error."),this._stateManager.update(function(n){if(!n.ready)throw t._triggerError(new d.ImplementationError("Attempt to reject a play request before player ready.")),new Error("Player must be ready first.");if(n.actuallyPlaying||!n.playing)throw t._triggerError(new d.ImplementationError("Attempt to reject a play request when not valid.")),new Error("Playing state is incorrect.");t._logger.debug("notifyPlayRejection() called.",e),n.playing=!1,t._lastPlayError=e})},e.prototype._notifyPauseRejection=function(e){var t=this;this._ensureNotDead(),e=e||new Error("Unknown error."),this._stateManager.update(function(n){if(!n.ready)throw t._triggerError(new d.ImplementationError("Attempt to reject pause request before player ready.")),new Error("Player must be ready first.");if(!n.actuallyPlaying||n.playing)throw t._triggerError(new d.ImplementationError("Attempt to reject pause request when not valid.")),new Error("Playing state is incorrect.");t._logger.debug("notifyPauseRejection() called.",e),n.playing=!0,n.fadeRate&&(n.fadeRate*=-1),t._lastPauseError=e})},e.prototype._signalSeekBlocked=function(e){var t=this;void 0===e&&(e=new Error("Seek blocked.")),this._ensureNotDead(),this._stateManager.update(function(n){if(t._activeSeek===n.seek||!n.seek||"IN_PROGRESS"!==n.seek.state)throw t._triggerError(new d.ImplementationError("_signalSeekBlocked called when no seek to block.")),new Error("_signalSeekBlocked called when no seek to block.");if(n.isFadingForSeek)throw t._triggerError(new d.ImplementationError("_signalSeekBlocked called after fade out started.")),new Error("_signalSeekBlocked called after fade out started.");n.seek=t._activeSeek,n.positionJumped=t._activeSeekPositionJumped,n.seeking=!!t._activeSeek&&"IN_PROGRESS"===t._activeSeek.state,n.seekBlockedError=e})},e.prototype._notifySeekRejection=function(e){var t=this;this._ensureNotDead(),e=e||new Error("Unknown error."),this._stateManager.update(function(n){if(!n.seek||"IN_PROGRESS"!==n.seek.state)throw t._triggerError(new d.ImplementationError("Attempt to reject seek request when none requested.")),new Error("A seek hasn't been requested.");if(null!==n.duration&&n.position>n.duration)throw t._triggerError(new d.ImplementationError("Attempt to reject seek request after duration changed below current position.")),new Error("Attempt to reject seek request after duration changed below current position.");t._logger.debug("notifySeekRejection() called.",e),n.seeking=!1,n.seek={state:"ERROR",error:e},n.positionJumped=Object.create(null)})},e.prototype._notifyFading=function(e){var t=this;if(this._ensureNotDead(),e&&!this._fadeStartAllowed){var n="Attempt to register fade as starting when not allowed.";throw this._triggerError(new d.ImplementationError(n)),new Error(n)}this._implementationIsFading=e,this._stateManager.update(function(n){n.isFading!==e&&(t._logger.debug("notifyFading() called",e),n.isFading=e)})},e.prototype._notifyFadingForSeek=function(e){var t=this;if(this._ensureNotDead(),e&&!this._seekFadeStartAllowed){var n="Attempt to register fade as starting for seek when not allowed.";throw this._triggerError(new d.ImplementationError(n)),new Error(n)}this._stateManager.update(function(n){n.isFadingForSeek!==e&&(t._logger.debug("notifyFadingForSeek() called",e),n.isFadingForSeek=e)})},e.prototype._signalReady=function(){var e=this;this._ensureNotDead(),this._stateManager.update(function(t){if(t.ready)throw e._triggerError(new d.ImplementationError("Attempt to signal ready twice.")),new Error("Ready already signalled.");if(null===e._queuedDuration)throw e._triggerError(new d.ImplementationError("Attempt to signal ready when duration unknown.")),new Error("Duration is still unknown.");e._logger.debug("signalReady() called."),t.ready=!0,t.duration=e._queuedDuration,t.seek&&"IN_PROGRESS"===t.seek.state&&t.seek.position>t.duration&&(t.seeking=!1,t.seek={state:"ERROR",error:new Error("You were attempting to seek past the end of the media.")})})},e.prototype._signalSeekComplete=function(){var e=this;this._ensureNotDead(),this._stateManager.update(function(t){if(!t.ready)throw e._triggerError(new d.ImplementationError("Attempt to signal seek as complete before player ready.")),new Error("Player must be ready first.");if(!t.seek||"IN_PROGRESS"!==t.seek.state)throw e._triggerError(new d.ImplementationError("Attempt to signal seek as complete when none requested.")),new Error("There shouldn't be a seek in progress.");var n=t.duration;if(t.seek&&"IN_PROGRESS"===t.seek.state&&t.seek.position>n)throw new Error("Seek cannot have completed given it was to a time greater than the duration.");e._logger.debug("signalSeekComplete() called."),e._seekFadeStartAllowed=!0,e._positionWhenStartedFadeOut=null,t.seek={state:"COMPLETED",position:t.seek.position,fadeRate:t.seek.fadeRate},t.seeking=!1,t.position=t.seek.position})},e.prototype._triggerError=function(e){var t=this;e instanceof i.PlayerFatalError&&(this._fatalErrorTriggered=!0),this._stateManager.update(function(n){var r=!1;if(n.ready&&e instanceof s.NotSupportedError&&(e=new d.ImplementationError("Invalid NotSupportedError."),r=!0),e instanceof i.PlayerFatalError?(e instanceof s.NotSupportedError?t._logger.info("NotSupportedError occurred.",e):t._logger.error("Fatal error occurred.",e),n.fatalError?t._logger.warn("A fatal error already occurred.",n.fatalError):n.fatalError=e,t._errors.push(e),n.errorOccurred=Object.create(null),n.dead=!0):(t._logger.warn("Non-fatal error occurred.",e),t._errors.push(e),n.errorOccurred=Object.create(null)),r)throw new Error("Not supported errors are only valid before the player is ready.")})},e.prototype._buildEventHandle=function(e){var t=this;return{subscribe:function(n){var r=function(e){return n(e,f.now())};return t._stateManager.subscribe(function(t,n){e(r,t,n)})}}},e.prototype._finalizeState=function(e){this._updateEndedInState(e);var t=this._getPositionOrPositionSeekingTo();if(e.dead)this._lastPlayError=new Error("Player was killed."),e.loading=!1,this._clearLoadingDelay(),!e.playing&&e.isFading&&null!==this._positionWhenStartedFadeOut&&(this._logger.debug("Fade out was in progress. Pretending it completed."),e.isFading=!1,e.position=this._positionWhenStartedFadeOut),e.stalled=!0,e.actuallyPlaying=!1,e.isFadingForSeek=!1,e.playing=!1,e.state=c.State.DEAD;else{var n=!e.ended&&(!e.ready||this._stalled||!!e.seek&&"IN_PROGRESS"===e.seek.state);n&&!e.stalled&&!e.seeking&&e.actuallyPlaying&&(this._lastPlayedPosition=t),e.stalled=n,!e.ended&&!e.isFading&&!e.isFadingForSeek&&(e.playing||e.actuallyPlaying)&&(e.stalled||e.playing!==e.actuallyPlaying)?this._loadingDelay?this._scheduleLoadingDelay():e.loading=!0:(e.loading=!1,this._clearLoadingDelay()),this._positionAfterLastUpdate!==t&&(this._positionAfterLastUpdate=t,e.playing||e.actuallyPlaying||(e.positionJumped=Object.create(null))),e.state=this._calculateState(e)}},e.prototype._updateEndedInState=function(e){e.ended=e.ready&&this._getPositionOrPositionSeekingTo()===e.duration},e.prototype._scheduleLoadingDelay=function(){var e=this;this._loadingDelayTimer||(this._loadingDelayTimer=window.setTimeout(function(){e._stateManager.update(function(e){return e.loading=!0})},this._loadingDelay))},e.prototype._clearLoadingDelay=function(){this._loadingDelayTimer&&(window.clearTimeout(this._loadingDelayTimer),this._loadingDelayTimer=null)},e.prototype._getPositionOrPositionSeekingTo=function(){this._stateManager.update();var e=this._stateManager.getState();return e.seek&&"IN_PROGRESS"===e.seek.state?e.seek.position:e.isFading&&!e.playing&&null!==this._positionWhenStartedFadeOut?this._positionWhenStartedFadeOut:e.ready&&null!==e.duration?e.position:0},e.prototype._calculateState=function(e){var t=e.dead,n=e.loading,r=e.playing,i=e.ended;return t?c.State.DEAD:n?c.State.LOADING:r&&!i?c.State.PLAYING:c.State.PAUSED},e.prototype._extractFadeDuration=function(e){return void 0===e&&(e={}),void 0===e.fadeDuration?!this._stateManager.getState().playing||this._getPositionOrPositionSeekingTo()>0?this._defaultFadeDuration:0:e.fadeDuration>0?e.fadeDuration:0},e.prototype._extractSeekFadeDurations=function(e,t){void 0===e&&(e={});var n;n=void 0!==e.fadeOutDuration?e.fadeOutDuration>0?e.fadeOutDuration:0:this._defaultSeekFadeOutDuration;var r;return r=void 0!==e.fadeInDuration?e.fadeInDuration>0?e.fadeInDuration:0:t>0?this._defaultSeekFadeInDuration:0,{fadeOutDuration:n,fadeInDuration:r}},e.prototype._configureRewindAfterFadeOut=function(){var e=this;this._stateManager.subscribe(function(t,n){var r=t.isFading,i=n.seeking,s=n.playing;n.dead||!1!==r||s||null===e._positionWhenStartedFadeOut||i||e.seek(e._positionWhenStartedFadeOut,{fadeInDuration:0,fadeOutDuration:0}).catch(function(t){e._logger.warn("Seek back to position where fade out started failed.",t)})})},e.prototype._afterUpdate=function(e,t){if(t.beforeUpdate||t.update.length>0)this._logger.error("Errors occurred during state update. Killing player.",t),this._triggerError(new i.PlayerFatalError("Errors occurred during state update.",t));else if(!e.dead&&e.ready){var n=e.duration;null!==n&&!e.seeking&&e.position>n&&(this._logger.error("Player provided invalid position.",e.position,n),this._triggerError(new d.ImplementationError("Player provided a position that was invalid.")))}this._finalizeState(e)},e.prototype._afterDispatches=function(){var e=this,t=this._errors;this._errors=[],t.forEach(function(t){return e._onError.dispatch(t)})},e.prototype._onChange=function(e,t){var n=this,r=e.ready,i=e.dead,s=e.fatalError,o=e.playing,u=e.actuallyPlaying,a=e.ended;if(!0===r&&(this._logger.debug("Resolving ready deferred."),this._readyDeferred.resolve(void 0)),!0===o&&this._mediaSessionEnabled&&!this._mediaSessionManagerHandle&&this.registerMediaSessionActionHandlers({play:!0,pause:!0,seekForward:!0,seekBackward:!0}),t.pauseDeferred&&!t.pauseDeferred.isSettled()&&t.playing){var l=this._lastPauseError||new Error("Pause request aborted.");this._logger.debug("Rejecting pause deferred.",l),t.pauseDeferred.reject(l)}if(t.playDeferred&&!t.playDeferred.isSettled()&&!t.playing){var l=this._lastPlayError||new Error("Play request aborted.");this._logger.debug("Rejecting play deferred.",l),t.playDeferred.reject(l)}if(t.playDeferred&&!t.playDeferred.isSettled()&&t.actuallyPlaying&&(this._logger.debug("Resolving play deferred."),t.playDeferred.resolve(void 0)),!t.pauseDeferred||t.pauseDeferred.isSettled()||t.actuallyPlaying||(this._logger.debug("Resolving pause deferred."),t.pauseDeferred.resolve(void 0)),!0===u&&!t.ended||!1===a&&t.actuallyPlaying?this._timePlaybackStarted=f.now():(!1===u&&!t.ended||!0===a&&t.actuallyPlaying)&&(this._listenTimeBase+=f.now()-this._timePlaybackStarted,this._timePlaybackStarted=null),!0===i){this._logger.debug("Calling _kill() on player.");try{this._kill(),this._logger.info("Player killed.")}catch(c){this._triggerError(new d.ImplementationError("Exception occurred in _kill().",c)),this._logger.error("Exception when implementation was being killed.",c)}if(this.unregisterMediaSessionActionHandlers(),!t.ready){var l=s||new Error("Player was killed.");this._logger.debug("Rejecting whenReady."),this._readyDeferred.reject(l)}this._queuedSeekDeferreds.forEach(function(e){var t=e.position,r=e.deferred,i=s||new Error("Seek aborted as player killed.");n._logger.debug("Rejecting seek().",t),r.reject(i)}),this._queuedSeekDeferreds=[],this._stateManager.kill(),this._logger.debug("Player dead.")}},e}();t.BasePlayer=S},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),s=function(e){function t(t){return e.call(this,t||"The player cannot play the provided descriptor.")||this}return r(t,e),t.prototype.getCode=function(){return"NOT_SUPPORTED_ERROR"},t}(i.PlayerFatalError);t.NotSupportedError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e){e[e.LOADING=0]="LOADING",e[e.PLAYING=1]="PLAYING",e[e.PAUSED=2]="PAUSED",e[e.DEAD=3]="DEAD"}(t.State||(t.State={}))},function(e,t,n){"use strict";function r(e){var t=Object.create(null);return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),s=n(1),o=function(){},u=function(){function e(e,t){void 0===t&&(t={});var n=this;this._subscribers=[],this._onExit=new i.OnExit(function(){return n._after()},function(){return n._onEnter()}),this._beforeUpdateError=void 0,this._inAfterUpdate=!1,this._dead=!1,this._officiallyDead=!1,this._errors=[],this._state=r(e),this._initialState=r(e),this._beforeUpdate=t.beforeUpdate||function(){},this._afterUpdate=t.afterUpdate||o,this._afterDispatches=t.afterDispatches||o}return e.prototype.subscribe=function(e,t){var n=this;if(void 0===t&&(t=!0),this._dead){var i=!1;return{retrieve:function(){},remove:function(){return!i&&(i=!0)}}}var s={callback:e,localState:t?r(this._state):this._initialState};return this._subscribers.push(s),t||this._updateSubscriber(s),{remove:function(){var t=n._subscribers.map(function(e){return e.callback}).indexOf(e);return t>=0&&(n._subscribers.splice(t,1),!0)},retrieve:function(){n._updateSubscriber(s)}}},e.prototype.subscribeIndividual=function(e,t,n){return this.subscribe(function(n){var r=n[e];void 0!==r&&t(r)},n)},e.prototype.getHandle=function(){return{subscribe:this.subscribe.bind(this)}},e.prototype.getIndividualHandle=function(e){var t=this;return{subscribe:function(n){return t.subscribeIndividual(e,n)}}},e.prototype.update=function(e){var t=this;this._officiallyDead||(this._inAfterUpdate?e&&e(this._state,this._beforeUpdateError):this._onExit.enter(function(n){n.getResult(function(){try{e&&e(t._state,t._beforeUpdateError)}catch(n){t._errors.push(n)}})}))},e.prototype.getState=function(){return this._state},e.prototype.kill=function(){var e=this;this._dead||(this._dead=!0,window.setTimeout(function(){e._subscribers.splice(0),e._officiallyDead=!0},0))},e.prototype.isDead=function(){return this._dead},e.prototype._onEnter=function(){this._beforeUpdateError=void 0;try{this._beforeUpdate(this._state)}catch(e){this._beforeUpdateError=e}},e.prototype._after=function(){var e=this,t=this._errors;this._errors=[],s.deferException(function(){e._inAfterUpdate=!0;try{e._afterUpdate(e._state,{beforeUpdate:e._beforeUpdateError,update:t})}catch(n){throw e._inAfterUpdate=!1,n}e._inAfterUpdate=!1,e._subscribers.slice().forEach(function(t){return e._updateSubscriber(t)}),e._afterDispatches(e._state)})},e.prototype._updateSubscriber=function(e){var t=this._calculateDiff(e.localState);Object.keys(t).length&&(e.localState=r(this._state),s.deferException(function(){return e.callback(t,e.localState)}))},e.prototype._calculateDiff=function(e){var t=this,n=Object.create(null);return Object.keys(this._state).forEach(function(r){var i=t._state[r];i!==e[r]&&(n[r]=i)}),n},e}();t.StateManager=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t){this._inCallback=!1,this._onExit=e,this._onEnter=t||null}return e.prototype.enter=function(e){var t=this;if(this._inCallback)return e?e(this._onEnterResultRetriever):void 0;this._inCallback=!0;var n=[],i=!1;this._onEnter&&(this._onEnterResultRetriever={getResult:function(e){i?r.deferException(function(){return e(t._onEnterError,t._onEnterResult)}):n.push(e)}});try{var s=e?e(this._onEnterResultRetriever):void 0;if(this._onEnter){this._onEnterError=void 0,this._onEnterResult=void 0;try{this._onEnterResult=this._onEnter()}catch(o){this._onEnterError=o}i=!0,n.forEach(function(e){return r.deferException(function(){return e(t._onEnterError,t._onEnterResult)})})}return s}finally{this._inCallback=!1,r.deferException(function(){return t._onExit(t._onEnterError,t._onEnterResult)})}},e}();t.OnExit=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),s=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.getCode=function(){return"IMPLEMENTATION_ERROR"},t}(i.PlayerFatalError);t.ImplementationError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlwaysAllowSeekStrategy={isSeekAllowed:function(){return!0}}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),s=function(e){function t(t,n,r){void 0===r&&(r="The player that the proxy was controlling had an error.");var i=e.call(this,r)||this;return i._providedPlayerError=t,i._providedPlayer=n,i}return r(t,e),t.prototype.getCode=function(){return"PROXY_PLAYER_PROVIDED_PLAYER_ERROR"},t.prototype.getProvidedPlayerError=function(){return this._providedPlayerError},t.prototype.getProvidedPlayer=function(){return this._providedPlayer},t}(i.PlayerError);t.ProxyProvidedPlayerError=s},function(e,t,n){"use strict";var r=Object.create,i=Object.getPrototypeOf,s={};e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||r;return"function"==typeof e&&i(e(t(null),s))===s}},function(e,t,n){"use strict";var r,i=n(33),s=n(0),o=Object.prototype.isPrototypeOf,u=Object.defineProperty,a={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(e,t){if(s(e),null===t||i(t))return e;throw new TypeError("Prototype must be null or an object")},e.exports=function(e){var t,n;return e?(2===e.level?e.set?(n=e.set,t=function(e,t){return n.call(r(e,t),t),e}):t=function(e,t){return r(e,t).__proto__=t,e}:t=function i(e,t){var n;return r(e,t),n=o.call(i.nullPolyfill,e),n&&delete i.nullPolyfill.__proto__,null===t&&(t=i.nullPolyfill),e.__proto__=t,n&&u(i.nullPolyfill,"__proto__",a),e},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{e=r.set,e.call(t,n)}catch(i){}if(Object.getPrototypeOf(t)===n)return{set:e,level:2}}return t.__proto__=n,Object.getPrototypeOf(t)===n?{level:2}:(t={},t.__proto__=n,Object.getPrototypeOf(t)===n&&{level:1})}()),n(63)},function(e,t,n){"use strict";var r=n(6),i={"function":!0,object:!0};e.exports=function(e){return r(e)&&i[typeof e]||!1}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(6),i=Array.prototype.forEach,s=Object.create,o=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=s(null);return i.call(arguments,function(e){r(e)&&o(Object(e),t)}),t}},function(e,t,n){"use strict";e.exports=n(72)()?String.prototype.contains:n(73)},function(e,t,n){"use strict";var r=n(12),i=n(13),s=n(74),o=n(94),u=n(95),a=n(2).iterator;e.exports=function(e){return"function"==typeof u(e)[a]?e[a]():r(e)?new s(e):i(e)?new o(e):new s(e)}},function(e,t,n){"use strict";var r,i=n(79),s=n(19),o=n(3),u=n(0),a=n(8),f=n(80),l=n(2),c=Object.defineProperty,h=Object.defineProperties;e.exports=r=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");h(this,{__list__:a("w",u(e)),__context__:a("w",t),__nextIndex__:a("w",0)}),t&&(o(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete r.prototype.constructor,h(r.prototype,s({_next:a(function(){var e;if(this.__list__)return this.__redo__&&void 0!==(e=this.__redo__.shift())?e:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:a(function(){return this._createResult(this._next())}),_createResult:a(function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}}),_resolve:a(function(e){return this.__list__[e]}),_unBind:a(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:a(function(){return"[object "+(this[l.toStringTag]||"Object")+"]"})},f({_onAdd:a(function(e){if(!(e>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void c(this,"__redo__",a("c",[e]));this.__redo__.forEach(function(t,n){t>=e&&(this.__redo__[n]=++t)},this),this.__redo__.push(e)}}),_onDelete:a(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),-1!==t&&this.__redo__.splice(t,1),this.__redo__.forEach(function(t,n){t>e&&(this.__redo__[n]=--t)},this)))}),_onClear:a(function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0})}))),c(r.prototype,l.iterator,a(function(){return this}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(4),i=n(40),s=n(10),o=n(45);t.ProxyPlayer=o.ProxyPlayer;var u=n(22);t.ProxyPlayerBase=u.ProxyPlayerBase;var a=n(47);t.errors=a.errors;var f=n(49);t.loaderErrors=f.loaderErrors;var l=n(51);t.helpers=l.helpers;var c=n(23);t.BasePlayer=c.BasePlayer;var h=n(25);t.State=h.State;var p=n(26);t.StateManager=p.StateManager;var d=n(99);t.TimeRange=d.TimeRange;var v=n(29);t.AlwaysAllowSeekStrategy=v.AlwaysAllowSeekStrategy;var m=n(100);t.NeverAllowSeekStrategy=m.NeverAllowSeekStrategy,!function(e){e.EventDispatcher=r.EventDispatcher}(t.eventDispatcher||(t.eventDispatcher={})),!function(e){e.LoaderRequest=i.LoaderRequest,e.ResponseState=i.ResponseState}(t.loader||(t.loader={})),!function(e){e.noOpLogger=s.noOpLogger,e.consoleLogger=s.consoleLogger,e.prefixLogger=s.prefixLogger,e.cloneLogger=s.cloneLogger}(t.logger||(t.logger={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(9),s=n(4),o=n(20),u=n(1);!function(e){e[e.PENDING=0]="PENDING",e[e.WAITING=1]="WAITING",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.ERRORED=4]="ERRORED"}(r=t.ResponseState||(t.ResponseState={}));var a=function(){function e(){var e=this;this._responseDeferred=i.buildDeferred(),this._requestStartCallbacks=[],this._parts=[],this._progressEventDispatcher=new s.EventDispatcher,this._cachedCompleteParts=null,this._state=r.PENDING,this._statusAndHeaders=null,this._getProgressSoFar=function(){if(!e._parts.length)return null;if(!e._statusAndHeaders)throw new Error("Headers should be set.");return{initial:!0,statusCode:e._statusAndHeaders.statusCode,headers:e._statusAndHeaders.headers,part:e._getDataSoFar()}};var t=new o.AbortableJob(function(){return{result:e._responseDeferred.promise,progressUpdates:{getProgressSoFar:e._getProgressSoFar,onProgressUpdate:e._progressEventDispatcher}}},{storeResult:!0});this._jobHandle=t.run()}return e.prototype.onProgress=function(e){this._jobHandle.onProgressUpdate(e)},e.prototype.getResponse=function(){return this._jobHandle.whenComplete()},e.prototype.onRequestStart=function(e){this._state!==r.PENDING?u.deferException(e):this._requestStartCallbacks.push(e)},e.prototype.onResponseReceived=function(e){this._jobHandle.onCompletion(e)},e.prototype.onError=function(e){this._jobHandle.onError(e)},e.prototype.hasRequestStarted=function(){return this._state!==r.PENDING},e.prototype.hasCompleted=function(){return this._state===r.COMPLETED||this._state===r.ERRORED},e.prototype.getState=function(){return this._state},e.prototype.abort=function(){-1===[r.ERRORED,r.COMPLETED].indexOf(this._state)&&(this._jobHandle.abort(),this._state=r.ERRORED,this._abort())},e.prototype._signalRequestStart=function(){this._enforceState(r.PENDING),this._state=r.WAITING,this._requestStartCallbacks.splice(0).forEach(function(e){return u.deferException(e)})},e.prototype._signalTimeout=function(){this._enforceState(r.WAITING,r.IN_PROGRESS),this._state=r.COMPLETED,this._requestStartCallbacks.splice(0),this._responseDeferred.resolve(null)},e.prototype._provideStatusAndHeaders=function(e,t){this._enforceState(r.WAITING),this._statusAndHeaders=e,this._state=r.IN_PROGRESS,this._providePart(t)},e.prototype._providePart=function(e){this._enforceState(r.IN_PROGRESS);var t=!this._parts.length;if(this._parts.push(e),!this._statusAndHeaders)throw new Error("Headers should be set.");this._progressEventDispatcher.dispatch({initial:t,statusCode:this._statusAndHeaders.statusCode,headers:this._statusAndHeaders.headers,part:e})},e.prototype._finalize=function(e){var t=this;if(e)this._enforceState(r.PENDING,r.WAITING,r.IN_PROGRESS),this._state=r.ERRORED,this._requestStartCallbacks.splice(0),this._responseDeferred.reject(e);else{if(this._enforceState(r.IN_PROGRESS),this._state=r.COMPLETED,!this._statusAndHeaders)throw new Error("Headers should be set.");this._responseDeferred.resolve({statusCode:this._statusAndHeaders.statusCode,headers:this._statusAndHeaders.headers,getData:function(){if(!t._parts.length)throw new Error("Unexpected error. No parts.");return t._cachedCompleteParts?t._cachedCompleteParts:t._cachedCompleteParts=t._getDataSoFar()}})}},e.prototype._getDataSoFar=function(){var e=this._parts.length;if(!e)throw new Error("No parts.");return 1===e?this._parts[0]:this._reduceParts(this._parts)},e.prototype._enforceState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(-1===e.indexOf(this._state))throw new Error("Invalid state. Got "+this._state+" Expecting one of "+e.join(","))},e}();t.LoaderRequest=a},function(e,t,n){(function(t,r){!function(r,i){e.exports=function(){"use strict";function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function i(e){return"function"==typeof e}function s(e){X=e}function o(e){V=e}function u(){return void 0!==W?function(){W(f)}:a()}function a(){var e=setTimeout;return function(){return e(f,1)}}function f(){for(var e=0;e<z;e+=2)(0,Y[e])(Y[e+1]),Y[e]=void 0,Y[e+1]=void 0;z=0}function l(e,t){var n=arguments,r=this,i=new this.constructor(h);void 0===i[et]&&M(i);var s=r._state;return s?function(){var e=n[s-1];V(function(){return L(s,i,e,r._result)})}():T(r,i,e,t),i}function c(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(h);return w(n,e),n}function h(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function v(e){try{return e.then}catch(t){return it.error=t,it}}function m(e,t,n,r){try{e.call(t,n,r)}catch(i){return i}}function g(e,t,n){V(function(e){var r=!1,i=m(n,t,function(n){r||(r=!0,t!==n?w(e,n):S(e,n))},function(t){r||(r=!0,x(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,x(e,i))},e)}function y(e,t){t._state===nt?S(e,t._result):t._state===rt?x(e,t._result):T(t,void 0,function(t){return w(e,t)},function(t){return x(e,t)})}function b(e,t,n){t.constructor===e.constructor&&n===l&&t.constructor.resolve===c?y(e,t):n===it?x(e,it.error):void 0===n?S(e,t):i(n)?g(e,t,n):S(e,t)}function w(t,n){t===n?x(t,p()):e(n)?b(t,n,v(n)):S(t,n)}function E(e){e._onerror&&e._onerror(e._result),N(e)}function S(e,t){e._state===tt&&(e._result=t,e._state=nt,0!==e._subscribers.length&&V(N,e))}function x(e,t){e._state===tt&&(e._state=rt,e._result=t,V(E,e))}function T(e,t,n,r){var i=e._subscribers,s=i.length;e._onerror=null,i[s]=t,i[s+nt]=n,i[s+rt]=r,0===s&&e._state&&V(N,e)}function N(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,s=e._result,o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?L(n,r,i,s):i(s);e._subscribers.length=0}}function C(){this.error=null}function k(e,t){try{return e(t)}catch(n){return st.error=n,st}}function L(e,t,n,r){var s=i(n),o=void 0,u=void 0,a=void 0,f=void 0;if(s){if(o=k(n,r),o===st?(f=!0,u=o.error,o=null):a=!0,t===o)return void x(t,d())}else o=r,a=!0;t._state!==tt||(s&&a?w(t,o):f?x(t,u):e===nt?S(t,o):e===rt&&x(t,o))}function A(e,t){try{t(function(t){w(e,t)},function(t){x(e,t)})}catch(n){x(e,n)}}function O(){return ot++}function M(e){e[et]=ot++,e._state=void 0,e._result=void 0,e._subscribers=[]}function _(e,t){this._instanceConstructor=e,this.promise=new e(h),this.promise[et]||M(this.promise),U(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):x(this.promise,D())}function D(){return new Error("Array Methods must be provided an Array")}function P(e){return(new _(this,e)).promise}function H(e){var t=this;return new t(U(e)?function(n,r){for(var i=e.length,s=0;s<i;s++)t.resolve(e[s]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function B(e){var t=this,n=new t(h);return x(n,e),n}function j(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function I(e){this[et]=O(),this._result=this._state=void 0,this._subscribers=[],h!==e&&("function"!=typeof e&&j(),this instanceof I?A(this,e):F())}function q(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;if(n){var i=null;try{i=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===i&&!n.cast)return}e.Promise=I}var R=void 0;R=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var U=R,z=0,W=void 0,X=void 0,V=function(e,t){Y[z]=e,Y[z+1]=t,2===(z+=2)&&(X?X(f):Z())},$="undefined"!=typeof window?window:void 0,J=$||{},K=J.MutationObserver||J.WebKitMutationObserver,Q="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),G="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Y=new Array(1e3),Z=void 0;Z=Q?function(){return function(){return t.nextTick(f)}}():K?function(){var e=0,t=new K(f),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():G?function(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}():void 0===$?function(){try{var e=n(44);return W=e.runOnLoop||e.runOnContext,u()}catch(t){return a()}}():a();var et=Math.random().toString(36).substring(16),tt=void 0,nt=1,rt=2,it=new C,st=new C,ot=0;return _.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===tt&&n<e;n++)this._eachEntry(t[n],n)},_.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===c){var i=v(e);if(i===l&&e._state!==tt)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===I){var s=new n(h);b(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},_.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===tt&&(this._remaining--,e===rt?x(r,n):this._result[t]=n),0===this._remaining&&S(r,this._result)},_.prototype._willSettleAt=function(e,t){var n=this;T(e,void 0,function(e){return n._settledAt(nt,t,e)},function(e){return n._settledAt(rt,t,e)})},I.all=P,I.race=H,I.resolve=c,I.reject=B,I._setScheduler=s,I._setAsap=o,I._asap=V,I.prototype={constructor:I,then:l,"catch":function(e){return this.then(null,e)}},I.polyfill=q,I.Promise=I,I}()}()}).call(this,n(42),n(43))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function s(e){if(c===clearTimeout)return clearTimeout(e);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function o(){v&&p&&(v=!1,p.length?d=p.concat(d):m=-1,d.length&&u())}function u(){if(!v){var e=i(o);v=!0;for(var t=d.length;t;){for(p=d,d=[];++m<t;)p&&p[m].run();m=-1,t=d.length}p=null,v=!1,s(e)}}function a(e,t){this.fun=e,this.array=t}function f(){}var l,c,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(e){c=r}}();var p,d=[],v=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new a(e,t)),1!==d.length||v||i(u)},a.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||(new Function("return this"))()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(10),o=n(22),u=n(17),a=function(e){function t(t){var n=e.call(this,t)||this;return n._onPlayerProvided=new i.EventDispatcher,n._onPlayerRemoved=new i.EventDispatcher,n._shouldPassThroughFatalErrors=!!t.shouldPassThroughFatalErrors,n.onPlayerProvided=n._onPlayerProvided.getHandle(),n.onPlayerRemoved=n._onPlayerRemoved.getHandle(),n._logger=s.prefixLogger(n._logger,"ProxyPlayer"),n}return r(t,e),t.prototype.providePlayer=function(e,t){void 0===t&&(t={}),this._providePlayer(e,t),this._onPlayerProvided.dispatch(e)},t.prototype.removePlayer=function(){var e=this._getPlayer();if(!e)throw new Error("There is no player to remove.");this._removePlayer(),this._onPlayerRemoved.dispatch(e)},t.prototype.setInitialDuration=function(e){this._setInitialDuration(e)},t.prototype.getPlayer=function(){return this._getPlayer()},t.prototype._handleFatalError=function(e,t){this._shouldPassThroughFatalErrors?this._triggerError(e):this._triggerError(new u.ProxyProvidedPlayerFatalError(e,t))},t}(o.ProxyPlayerBase);t.ProxyPlayer=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="undefined"!=typeof navigator&&"mediaSession"in navigator,i=r?navigator.mediaSession:null,s=function(){function e(e){this._mediaSession=e,this._stack=[],this._active=null}return e.prototype.register=function(e){var t=this;if(!this._mediaSession)return{remove:function(){}};this._stack.length?this._stack.splice(1,0,e):(this._stack.push(e),this._makeActive(e));var n=e.getPlayer().onChange.subscribe(function(n){void 0!==n.playing&&t._handleUpdate(e)});this._handleUpdate(e);var r=!1;return{remove:function(){if(!r){r=!0,n.remove();var i=t._stack.indexOf(e);i>=0&&t._stack.splice(i,1),t._stack.length?t._makeActive(t._stack[0]):(t._active=null,t._updateHandlers({}),t._mediaSession.playbackState="none")}}}},e.prototype._handleUpdate=function(e){var t=e.getPlayer().isPlaying();t&&this._makeActive(e),this._isActive(e)&&(this._mediaSession.playbackState=t?"playing":"paused")},e.prototype._isActive=function(e){return this._active===e},e.prototype._makeActive=function(e){if(!this._isActive(e)){var t=this._stack.indexOf(e);t>=0&&this._stack.splice(t,1),this._stack.unshift(e),this._active=e,this._updateHandlers(e.getHandlers())}},e.prototype._updateHandlers=function(e){this._mediaSession.setActionHandler("play",e.play||null),this._mediaSession.setActionHandler("pause",e.pause||null),this._mediaSession.setActionHandler("seekforward",e.seekForward||null),this._mediaSession.setActionHandler("seekbackward",e.seekBackward||null)},e}();t.MediaSessionManager=s,t.mediaSessionManager=new s(i);var o=function(){function e(e,t){void 0===t&&(t={}),this._player=e,this._handlers=t}return e.prototype.getHandlers=function(){return this._handlers},e.prototype.getPlayer=function(){return this._player},e}();t.MediaSessionItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),i=n(48),s=n(28),o=n(17),u=n(11),a=n(5);!function(e){e.PlayerError=u.PlayerError,e.PlayerFatalError=a.PlayerFatalError,e.NotSupportedError=r.NotSupportedError,e.URLUpdateError=i.URLUpdateError,e.ImplementationError=s.ImplementationError,e.ProxyProvidedPlayerFatalError=o.ProxyProvidedPlayerFatalError}(t.errors||(t.errors={}))},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),s=function(e){function t(t,n){return e.call(this,t||"The URL update failed for some reason.",n)||this}return r(t,e),t.prototype.getCode=function(){return"URL_UPDATE_ERROR"},t}(i.PlayerFatalError);t.URLUpdateError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50);!function(e){e.LoaderError=r.LoaderError}(t.loaderErrors||(t.loaderErrors={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._msg=e,this._cause=t}return e.prototype.getMsg=function(){return this._msg},e.prototype.getCause=function(){return this._cause},e}();t.LoaderError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(20),s=n(52),o=n(27),u=n(16),a=n(53),f=n(14),l=n(7),c=n(54),h=n(15),p=n(55),d=n(56),v=n(1),m=n(21),g=n(57),y=n(59);!function(e){e.OnExit=o.OnExit,e.find=u.find,e.Promise=l.Promise,e.promiseWithTimeout=c.promiseWithTimeout,e.always=h.always,e.compact=p.compact,e.deferException=v.deferException,e.SCWeakMap=y.SCWeakMap,!function(e){e.buildCache=a.buildCache}(e.cache||(e.cache={})),!function(e){e.buildDeferred=r.buildDeferred}(e.deferred||(e.deferred={})),!function(e){e.getExtension=g.getExtension,e.buildAbsoluteUrl=g.buildAbsoluteUrl}(e.url||(e.url={})),!function(e){e.AbortableJob=i.AbortableJob,e.map=i.map,e.abortedError=i.abortedError}(e.abortableJob||(e.abortableJob={})),!function(e){e.retry=s.retry,e.buildExponentialDelayCalculator=s.buildExponentialDelayCalculator}(e.retry||(e.retry={})),!function(e){e.isSafari=m.isSafari,e.getSafariVersion=m.getSafariVersion,e.isIE=m.isIE,e.isEdge=m.isEdge,e.isFirefox=m.isFirefox,e.isChrome=m.isChrome,e.getChromeVersion=m.getChromeVersion,e.getFirefoxVersion=m.getFirefoxVersion}(e.browser||(e.browser={})),!function(e){e.combine=d.combine,e.fill=d.fill,e.forEach=d.forEach,e.numberToUint8Array=d.numberToUint8Array,e.createVintBuffer=d.createVintBuffer}(e.arrayBuffer||(e.arrayBuffer={})),!function(e){e.now=f.now}(e.time||(e.time={}))}(t.helpers||(t.helpers={}))},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r=null,i=0,o=!1,u=null,a=function(){var f=!1,l=function(){if(f)throw new Error("scheduleRetry() already called.");if(f=!0,u=null,o)return!1;var t=e(++i);if(null===t){var l=n.onNoMoreRetries;return l&&s.deferException(function(){return l()}),!1}return r=window.setTimeout(a,t),!0};u=t({attemptNum:i,scheduleRetry:l})||null};return a(),{cancel:function(){o||(o=!0,r&&(window.clearTimeout(r),r=null),u&&u.onCancel())}}}function i(e){var t=void 0===e?{}:e,n=t.timeBase,r=void 0===n?500:n,i=t.threshold,s=void 0===i?3:i,o=t.delayCap,u=void 0===o?45e3:o,a=t.jitter,f=void 0===a?200:a,l=t.maxAttempts,c=void 0===l?null:l;if(r<=0)throw new Error("Time base must be > 0.");if(s<=0)throw new Error("Threshold must be > 0.");if(null!==u&&u<=0)throw new Error("Delay cap must be null or > 0.");if(null!==c&&c<1)throw new Error("Max attempts must be >= 1.");return function(e){if(null!==c&&e>=c)return null;var t=e>0?Math.pow(2,e/s-1):0;return Math.min(t*r,u||1/0)+Math.round(Math.random()*f)}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(1);t.retry=r,t.buildExponentialDelayCalculator=i},function(e,t,n){"use strict";function r(){return s?new window.Map:new o}Object.defineProperty(t,"__esModule",{value:!0});var i=n(16),s="undefined"!=typeof window&&"Map"in window;t.buildCache=r;var o=function(){function e(){this._store=[]}return e.prototype.set=function(e,t){var n=i.find(this._store,function(t){return t.key===e});n?n.val=t:this._store.push({key:e,val:t})},e.prototype.get=function(e){var t=i.find(this._store,function(t){return t.key===e});if(t)return t.val},e}()},function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=new Error("Timed out.")),new i.Promise(function(r,i){var o=window.setTimeout(function(){i(n)},t);s.always(e,function(e){return window.clearTimeout(o),e}).then(r,i)})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=n(15);t.promiseWithTimeout=r},function(e,t,n){"use strict";function r(e){return e.filter(function(e){return null!=e})}Object.defineProperty(t,"__esModule",{value:!0}),t.compact=r},function(e,t,n){"use strict";function r(e){var t=new Uint8Array(e.reduce(function(e,t){return e+t.byteLength},0)),n=0;return e.forEach(function(e){t.set(e,n),n+=e.byteLength}),t}function i(e,t){if(Uint8Array.prototype.fill)e.fill(t);else for(var n=0;n<e.length;n++)e[n]=t}function s(e,t){if(Uint8Array.prototype.forEach)e.forEach(t);else for(var n=0;n<e.length;n++)t(e[n],n)}function o(e,t){if(void 0===t&&(t=!1),(e=Math.round(e))<0)throw new Error("Negative numbers not supported.");for(var n=Math.max(1,Math.ceil(Math.log(e+1)/Math.log(2)/8)),r=new Uint8Array(n),i=0;i<n;i++)r[t?i:n-1-i]=255&e,e>>>=8;return r}function u(e){if(e<0||e>Math.pow(2,53))throw new Error("Unrepresentable value: "+e);var t;for(t=1;t<=8&&!(e<Math.pow(2,7*t)-1);t++);for(var n=new Uint8Array(t),r=1;r<=t;r++){var i=255&e;n[t-r]=i,e-=i,e/=Math.pow(2,8)}return n[0]|=1<<8-t,n}Object.defineProperty(t,"__esModule",{value:!0}),t.combine=r,t.fill=i,t.forEach=s,t.numberToUint8Array=o,t.createVintBuffer=u},function(e,t,n){"use strict";function r(e){var t=o.exec(e);return t?t[1].toLowerCase():null}function i(e,t){return s.buildAbsoluteURL(e,t,{alwaysNormalize:!0})}Object.defineProperty(t,"__esModule",{value:!0});var s=n(58),o=/^.*\.([^\.;\?#]*).*$/;t.getExtension=r,t.buildAbsoluteUrl=i},function(e,t,n){!function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=o.normalizePath(s.path),o.buildURLFromParts(s)):t;var u=o.parseURL(e);if(!u)throw new Error("Error trying to parse base URL.");if(!u.netLoc&&u.path&&"/"!==u.path[0]){var a=r.exec(u.path);u.netLoc=a[1],u.path=a[2]}u.netLoc&&!u.path&&(u.path="/");var f={scheme:u.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(f.netLoc=u.netLoc,"/"!==s.path[0]))if(s.path){var l=u.path,c=l.substring(0,l.lastIndexOf("/")+1)+s.path;f.path=o.normalizePath(c)}else f.path=u.path,s.params||(f.params=u.params,s.query||(f.query=u.query));return null===f.path&&(f.path=n.alwaysNormalize?o.normalizePath(s.path):s.path),o.buildURLFromParts(f)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(s,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60),i=function(){function e(){this._map=new r}return e.prototype.get=function(e){return this._map.get(e)},e.prototype.set=function(e,t){this._map.set(e,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.delete=function(e){return this._map.delete(e)},e}();t.SCWeakMap=i},function(e,t,n){"use strict";e.exports=n(61)()?WeakMap:n(62)},function(e,t,n){"use strict";e.exports=function(){var e,t;if("function"!=typeof WeakMap)return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(n){return!1}return"[object WeakMap]"===String(e)&&"function"==typeof e.set&&e.set({},1)===e&&"function"==typeof e.delete&&"function"==typeof e.has&&"one"===e.get(t)}},function(e,t,n){"use strict";var r,i=n(18),s=n(64),o=n(0),u=n(65),a=n(8),f=n(37),l=n(97),c=n(2).toStringTag,h=n(98),p=Array.isArray,d=Object.defineProperty,v=Object.prototype.hasOwnProperty,m=Object.getPrototypeOf;e.exports=r=function(){var e,t=arguments[0];if(this instanceof r)return e=h&&i&&WeakMap!==r?i(new WeakMap,m(this)):this,null!=t&&(p(t)||(t=f(t))),d(e,"__weakMapData__",a("c","$weakMap$"+u())),t?(l(t,function(t){o(t),e.set(t[0],t[1])}),e):e;throw new TypeError("Constructor requires 'new'")},h&&(i&&i(r,WeakMap),r.prototype=Object.create(WeakMap.prototype,{constructor:a(r)})),Object.defineProperties(r.prototype,{"delete":a(function(e){return!!v.call(s(e),this.__weakMapData__)&&(delete e[this.__weakMapData__],!0)}),get:a(function(e){if(v.call(s(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a(function(e){return v.call(s(e),this.__weakMapData__)}),set:a(function(e,t){return d(s(e),this.__weakMapData__,a("c",t)),this}),toString:a(function(){return"[object WeakMap]"})}),d(r.prototype,c,a("c","WeakMap"))},function(e,t,n){"use strict";var r,i=Object.create;n(31)()||(r=n(32)),e.exports=function(){var e,t,n;return r?1!==r.level?i:(e={},t={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(e){if("__proto__"===e)return void (t[e]={configurable:!0,enumerable:!1,writable:!0,value:void 0});t[e]=n}),Object.defineProperties(e,t),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(t,n){return i(null===t?e:t,n)}):i}()},function(e,t,n){"use strict";var r=n(33);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not an Object");return e}},function(e,t,n){"use strict";var r=Object.create(null),i=Math.random;e.exports=function(){var e;do e=i().toString(36).slice(2);while(r[e]);return e}},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(68),i=n(0),s=Math.max;e.exports=function(e,t){var n,o,u,a=s(arguments.length,2);for(e=Object(i(e)),u=function(r){try{e[r]=t[r]}catch(i){n||(n=i)}},o=1;o<a;++o)t=arguments[o],r(t).forEach(u);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=n(69)()?Object.keys:n(70)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(6),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var r,i=n(18),s=n(36),o=n(8),u=n(2),a=n(38),f=Object.defineProperty;r=e.exports=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");a.call(this,e),t=t?s.call(t,"key+value")?"key+value":s.call(t,"key")?"key":"value":"value",f(this,"__kind__",o("",t))},i&&i(r,a),delete r.prototype.constructor,r.prototype=Object.create(a.prototype,{_resolve:o(function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e})}),f(r.prototype,u.toStringTag,o("c","Array Iterator"))},function(e,t,n){"use strict";var r={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return!!r[typeof Symbol.iterator]&&!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";var r,i,s,o,u=n(8),a=n(77),f=Object.create,l=Object.defineProperties,c=Object.defineProperty,h=Object.prototype,p=f(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),o=!0}catch(d){}}var v=function(){var e=f(null);return function(t){for(var n,r,i=0;e[t+(i||"")];)++i;return t+=i||"",e[t]=!0,n="@@"+t,c(h,n,u.gs(null,function(e){r||(r=!0,c(this,n,u(e)),r=!1)})),n}}();s=function(e){if(this instanceof s)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function m(e){var t;if(this instanceof m)throw new TypeError("Symbol is not a constructor");return o?r(e):(t=f(s.prototype),e=void 0===e?"":String(e),l(t,{__description__:u("",e),__name__:u("",v(e))}))},l(i,{"for":u(function(e){return p[e]?p[e]:p[e]=i(String(e))}),keyFor:u(function(e){var t;a(e);for(t in p)if(p[t]===e)return t}),hasInstance:u("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:u("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:u("",r&&r.iterator||i("iterator")),match:u("",r&&r.match||i("match")),replace:u("",r&&r.replace||i("replace")),search:u("",r&&r.search||i("search")),species:u("",r&&r.species||i("species")),split:u("",r&&r.split||i("split")),toPrimitive:u("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:u("",r&&r.toStringTag||i("toStringTag")),unscopables:u("",r&&r.unscopables||i("unscopables"))}),l(s.prototype,{constructor:u(i),toString:u("",function(){return this.__name__})}),l(i.prototype,{toString:u(function(){return"Symbol ("+a(this).__description__+")"}),valueOf:u(function(){return a(this)})}),c(i.prototype,i.toPrimitive,u("",function(){var e=a(this);return"symbol"==typeof e?e:e.toString()})),c(i.prototype,i.toStringTag,u("c","Symbol")),c(s.prototype,i.toStringTag,u("c",i.prototype[i.toStringTag])),c(s.prototype,i.toPrimitive,u("c",i.prototype[i.toPrimitive]))},function(e,t,n){"use strict";var r=n(78);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var r=n(0);e.exports=function(){return r(this).length=0,this}},function(e,t,n){"use strict";var r,i=n(81),s=n(35),o=n(3),u=n(91),a=n(3),f=n(0),l=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;r=function(e,t,n){var r,s=f(t)&&a(t.value);return r=i(t),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&h.call(this,e)?s:(t.value=l.call(s,n.resolveContext?n.resolveContext(this):this),c(this,e,t),this[e])},r},e.exports=function(e){var t=s(arguments[1]);return null!=t.resolveContext&&o(t.resolveContext),u(e,function(e,n){return r(n,e,t)})}},function(e,t,n){"use strict";var r=n(82),i=n(19),s=n(0);e.exports=function(e){var t=Object(s(e)),n=arguments[1],o=Object(arguments[2]);if(t!==e&&!n)return t;var u={};return n?r(n,function(t){(o.ensure||t in e)&&(u[t]=e[t])}):i(u,e),u}},function(e,t,n){"use strict";e.exports=n(83)()?Array.from:n(84)},function(e,t,n){"use strict";e.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&(e=["raz","dwa"],t=n(e),Boolean(t&&t!==e&&"dwa"===t[1]))}},function(e,t,n){"use strict";var r=n(2).iterator,i=n(12),s=n(85),o=n(86),u=n(3),a=n(0),f=n(6),l=n(13),c=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(e){var t,n,v,m,g,y,b,w,E,S,x=arguments[1],T=arguments[2];if(e=Object(a(e)),f(x)&&u(x),this&&this!==Array&&s(this))t=this;else{if(!x){if(i(e))return 1!==(g=e.length)?Array.apply(null,e):(m=new Array(1),m[0]=e[0],m);if(c(e)){for(m=new Array(g=e.length),n=0;n<g;++n)m[n]=e[n];return m}}m=[]}if(!c(e))if(void 0!==(E=e[r])){for(b=u(E).call(e),t&&(m=new t),w=b.next(),n=0;!w.done;)S=x?h.call(x,T,w.value,n):w.value,t?(p.value=S,d(m,n,p)):m[n]=S,w=b.next(),++n;g=n}else if(l(e)){for(g=e.length,t&&(m=new t),n=0,v=0;n<g;++n)S=e[n],n+1<g&&(y=S.charCodeAt(0))>=55296&&y<=56319&&(S+=e[++n]),S=x?h.call(x,T,S,v):S,t?(p.value=S,d(m,v,p)):m[v]=S,++v;g=v}if(void 0===g)for(g=o(e.length),t&&(m=new t(g)),n=0;n<g;++n)S=x?h.call(x,T,e[n],n):e[n],t?(p.value=S,d(m,n,p)):m[n]=S;return t&&(p.value=null,m.length=g),m}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call(n(34));e.exports=function(e){return"function"==typeof e&&r.call(e)===i}},function(e,t,n){"use strict";var r=n(87),i=Math.max;e.exports=function(e){return i(0,r(e))}},function(e,t,n){"use strict";var r=n(88),i=Math.abs,s=Math.floor;e.exports=function(e){return isNaN(e)?0:(e=Number(e),0!==e&&isFinite(e)?r(e)*s(i(e)):e)}},function(e,t,n){"use strict";e.exports=n(89)()?Math.sign:n(90)},function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}},function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},function(e,t,n){"use strict";var r=n(3),i=n(92),s=Function.prototype.call;e.exports=function(e,t){var n={},o=arguments[2];return r(t),i(e,function(e,r,i,u){n[r]=s.call(t,o,e,r,i,u)}),n}},function(e,t,n){"use strict";e.exports=n(93)("forEach")},function(e,t,n){"use strict";var r=n(3),i=n(0),s=Function.prototype.bind,o=Function.prototype.call,u=Object.keys,a=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,f){var l,c=arguments[2],h=arguments[3];return n=Object(i(n)),r(f),l=u(n),h&&l.sort("function"==typeof h?s.call(h,n):void 0),"function"!=typeof e&&(e=l[e]),o.call(e,l,function(e,r){return a.call(n,e)?o.call(f,c,n[e],e,n,r):t})}}},function(e,t,n){"use strict";var r,i=n(18),s=n(8),o=n(2),u=n(38),a=Object.defineProperty;r=e.exports=function(e){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");e=String(e),u.call(this,e),a(this,"__length__",s("",e.length))},i&&i(r,u),delete r.prototype.constructor,r.prototype=Object.create(u.prototype,{_next:s(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:s(function(e){var t,n=this.__list__[e];return this.__nextIndex__===this.__length__?n:(t=n.charCodeAt(0),t>=55296&&t<=56319?n+this.__list__[this.__nextIndex__++]:n)})}),a(r.prototype,o.toStringTag,s("c","String Iterator"))},function(e,t,n){"use strict";var r=n(96);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not iterable");return e}},function(e,t,n){"use strict";var r=n(12),i=n(6),s=n(13),o=n(2).iterator,u=Array.isArray;e.exports=function(e){return!!i(e)&&(!!u(e)||!!s(e)||!!r(e)||"function"==typeof e[o])}},function(e,t,n){"use strict";var r=n(12),i=n(3),s=n(13),o=n(37),u=Array.isArray,a=Function.prototype.call,f=Array.prototype.some;e.exports=function(e,t){var n,l,c,h,p,d,v,m,g=arguments[2];if(u(e)||r(e)?n="array":s(e)?n="string":e=o(e),i(t),c=function(){h=!0},"array"===n)return void f.call(e,function(e){return a.call(t,g,e,c),h});if("string"!==n)for(l=e.next();!l.done;){if(a.call(t,g,l.value,c),h)return;l=e.next()}else for(d=e.length,p=0;p<d&&(v=e[p],p+1<d&&(m=v.charCodeAt(0))>=55296&&m<=56319&&(v+=e[++p]),a.call(t,g,v,c),!h);++p);}},function(e,t,n){"use strict";e.exports=function(){return"function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){if(this.start=e,this.duration=t,t<0)throw new RangeError("Duration must be >= 0.");this.end=e+t}return e.normalizeRawTimeRanges=function(e){return e.slice(0).sort(function(e,t){return e.start-t.start}).reduce(function(e,t,n){var r=e.length-1;return n>0&&e[r].end>=t.start?e[r].end=t.end:e.push(t),e},[])},e.normalize=function(t){return e.normalizeRawTimeRanges(t.map(function(e){return{start:e.start,end:e.end}})).map(function(t){return new e(t.start,t.end-t.start)})},e.getCoverage=function(t){if(0===t.length)return new e(0,0);var n=1/0,r=0;return t.forEach(function(e){e.start<n&&(n=e.start),e.end>r&&(r=e.end)}),new e(n,r-n)},e.rangesContainTime=function(e,t){return t.some(function(t){return t.containsTime(e)})},e.prototype.containsTime=function(e){return this.start<=e&&this.end>e},e}();t.TimeRange=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NeverAllowSeekStrategy={isSeekAllowed:function(){return!1}}}])})},function(e,t,n){!function(t,r){e.exports=r(n(0))}(window,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=28)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(5);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){"use strict";e.exports=n(72)()?Symbol:n(73)},function(e,t,n){"use strict";var r,i=n(13),s=n(23),o=n(68),u=n(24);r=e.exports=function(e,t){var n,r,o,a,f;return arguments.length<2||"string"!=typeof e?(a=t,t=e,e=null):a=arguments[2],null==e?(n=o=!0,r=!1):(n=u.call(e,"c"),r=u.call(e,"e"),o=u.call(e,"w")),f={value:t,configurable:n,enumerable:r,writable:o},a?i(s(a),f):f},r.gs=function(e,t,n){var r,a,f,l;return"string"!=typeof e?(f=n,n=t,t=e,e=null):f=arguments[3],null==t?t=void 0:o(t)?null==n?n=void 0:o(n)||(f=n,n=void 0):(f=t,t=n=void 0),null==e?(r=!0,a=!1):(r=u.call(e,"c"),a=u.call(e,"e")),l={get:t,set:n,configurable:r,enumerable:a},f?i(s(f),l):l}},function(e,t,n){"use strict";var r=n(19)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";e.exports=n(21)()?Object.setPrototypeOf:n(22)},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call(function(){return arguments}());e.exports=function(e){return r.call(e)===i}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===i)||!1}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){return e.call(this,t||"There was no format available that a player was able to play.")||this}return r(t,e),t.prototype.getCode=function(){return"SCAUDIO.NOT_SUPPORTED_ERROR"},t}(i.errors.PlayerFatalError);t.NotSupportedError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=n(31),s=n(32),o=n(33),u=n(34),a=n(35),f=n(36),l=n(37),c=n(38),h=n(39);t.renditions={httpMp3:r.httpMp3,httpAACHQ:h.httpAACHQ,hlsMp3:i.hlsMp3,encryptedHlsMp3:s.encryptedHlsMp3,hlsOpus:l.hlsOpus,encryptedHlsOpus:c.encryptedHlsOpus,hlsAACHQ:o.hlsAACHQ,encryptedHlsAACHQ:u.encryptedHlsAACHQ,apiMobile:a.apiMobile,maestroChromecast:f.maestroChromecast},t.allRenditions=Object.keys(t.renditions).map(function(e){return t.renditions[e]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this._delayFactor=0,this._lastRequestTime=0}return e.prototype.getDelay=function(e){var t=void 0===e?{}:e,n=t.maxDelay,r=void 0===n?3e4:n,i=t.numInstantRuns,s=void 0===i?5:i,o=Date.now()-this._lastRequestTime;this._lastRequestTime=Date.now(),this._delayFactor=Math.max(0,this._delayFactor-o/r),this._delayFactor++;var u=this._delayFactor-s;return u>0?Math.pow(2,u):0},e.prototype.registerSuccess=function(){this._delayFactor=Math.max(0,this._delayFactor-2)},e}();t.DecayingExponentialDelayCalculator=r},function(e,t,n){"use strict";function r(){switch(window.document.hidden){case!0:return"background";case!1:return"foreground";default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAppState=r},function(e,t,n){"use strict";e.exports=n(63)()?Object.assign:n(64)},function(e,t,n){"use strict";var r,i=n(18),s=n(13),o=n(2),u=n(1),a=n(4),f=n(80),l=n(3),c=Object.defineProperty,h=Object.defineProperties;e.exports=r=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");h(this,{__list__:a("w",u(e)),__context__:a("w",t),__nextIndex__:a("w",0)}),t&&(o(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete r.prototype.constructor,h(r.prototype,s({_next:a(function(){var e;if(this.__list__)return this.__redo__&&void 0!==(e=this.__redo__.shift())?e:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:a(function(){return this._createResult(this._next())}),_createResult:a(function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}}),_resolve:a(function(e){return this.__list__[e]}),_unBind:a(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:a(function(){return"[object "+(this[l.toStringTag]||"Object")+"]"})},f({_onAdd:a(function(e){if(!(e>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void c(this,"__redo__",a("c",[e]));this.__redo__.forEach(function(t,n){t>=e&&(this.__redo__[n]=++t)},this),this.__redo__.push(e)}}),_onDelete:a(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),-1!==t&&this.__redo__.splice(t,1),this.__redo__.forEach(function(t,n){t>e&&(this.__redo__[n]=--t)},this)))}),_onClear:a(function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0})}))),c(r.prototype,l.iterator,a(function(){return this}))},function(e,t,n){"use strict";function r(e){return new s({startPos:0,endPos:e,startLevel:0,endLevel:1,fromEnd:!1})}function i(e){return new s({startPos:e,endPos:0,startLevel:1,endLevel:0,fromEnd:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.buildFadeIn=r,t.buildFadeOut=i;var s=function(){function e(e){var t=e.startPos,n=e.endPos,r=e.startLevel,i=e.endLevel,s=e.fromEnd,o=void 0!==s&&s;if(t<0)throw new Error("startPos invalid.");if(n<0||!o&&n<t||o&&t<n)throw new Error("endPos invalid.");if(r<0||r>1)throw new Error("startLevel invalid.");if(i<0||i>1)throw new Error("endLevel invalid.");this._startPos=t,this._endPos=n,this._startLevel=r,this._endLevel=i,this._fromEnd=o}return e.prototype.calculate=function(e,t){var n=this._fromEnd?t-500-this._startPos:this._startPos,r=this._fromEnd?t-500-this._endPos:this._endPos;if(e<n)return{level:this._startLevel,nextCalculatePosition:n-e};if(e<=r){var i=(e-n)/(r-n),s=Math.cos(i*Math.PI)/-2+.5;return{level:this._startLevel+(this._endLevel-this._startLevel)*s,nextCalculatePosition:e}}return{level:this._endLevel,nextCalculatePosition:1/0}},e}();t.Fade=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e}();t.BaseStreamUrlRetriever=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notSupportedError=new Error("Not supported.");var r=function(){function e(){this.supportsVolumeAutomation=!0,this.syncConfig={}}return e}();t.BaseController=r},function(e,t,n){"use strict";var r=n(1);e.exports=function(){return r(this).length=0,this}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(57),i=Math.max;e.exports=function(e){return i(0,r(e))}},function(e,t,n){"use strict";var r=Object.create,i=Object.getPrototypeOf,s={};e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||r;return"function"==typeof e&&i(e(t(null),s))===s}},function(e,t,n){"use strict";var r,i=n(61),s=n(1),o=Object.prototype.isPrototypeOf,u=Object.defineProperty,a={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(e,t){if(s(e),null===t||i(t))return e;throw new TypeError("Prototype must be null or an object")},e.exports=function(e){var t,n;return e?(2===e.level?e.set?(n=e.set,t=function(e,t){return n.call(r(e,t),t),e}):t=function(e,t){return r(e,t).__proto__=t,e}:t=function i(e,t){var n;return r(e,t),n=o.call(i.nullPolyfill,e),n&&delete i.nullPolyfill.__proto__,null===t&&(t=i.nullPolyfill),e.__proto__=t,n&&u(i.nullPolyfill,"__proto__",a),e},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{e=r.set,e.call(t,n)}catch(i){}if(Object.getPrototypeOf(t)===n)return{set:e,level:2}}return t.__proto__=n,Object.getPrototypeOf(t)===n?{level:2}:(t={},t.__proto__=n,Object.getPrototypeOf(t)===n&&{level:1})}()),n(62)},function(e,t,n){"use strict";var r=n(5),i=Array.prototype.forEach,s=Object.create,o=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=s(null);return i.call(arguments,function(e){r(e)&&o(Object(e),t)}),t}},function(e,t,n){"use strict";e.exports=n(69)()?String.prototype.contains:n(70)},function(e,t,n){"use strict";var r=n(76);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not iterable");return e}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),s=function(e){function t(){return e.call(this,"There were no stream URLs.")||this}return r(t,e),t.prototype.getCode=function(){return"SCAUDIO.NO_STREAMS"},t}(i.NotSupportedError);t.NoStreamsError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),s=function(e){function t(){return e.call(this,"Failed to retrieve stream url.")||this}return r(t,e),t.prototype.getCode=function(){return"SCAUDIO.FAILED_RETRIEVING_URL"},t}(i.NotSupportedError);t.FailedRetrievingUrlError=s},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),t.version="23.7.2",t.buildNumber=928;var i=n(29);t.volumeAutomation=i.volumeAutomation;var s=n(16);t.BaseStreamUrlRetriever=s.BaseStreamUrlRetriever,r(n(17));var o=n(10);t.renditions=o.renditions,t.allRenditions=o.allRenditions;var u=n(40);t.UrlRetrieverError=u.UrlRetrieverError;var a=n(11);t.DecayingExponentialDelayCalculator=a.DecayingExponentialDelayCalculator;var f=n(41);t.Limiter=f.Limiter;var l=n(42);t.Player=l.Player,t.setGlobalVolume=l.setGlobalVolume,t.setGlobalMuted=l.setGlobalMuted,t.getGlobalVolume=l.getGlobalVolume,t.getGlobalMuted=l.getGlobalMuted,t.setCacheSize=l.setCacheSize;var c=n(99);t.Quality=c.Quality,t.resolveQuality=c.resolveQuality,r(n(100))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15);!function(e){e.Fade=r.Fade,e.buildFadeIn=r.buildFadeIn,e.buildFadeOut=r.buildFadeOut}(t.volumeAutomation||(t.volumeAutomation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpMp3={scProtocol:"http",scFormat:"mp3",maestroFormat:{mimeType:"audio/mpeg"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hlsMp3={scProtocol:"hls",scFormat:"mp3",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/mpeg"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptedHlsMp3={scProtocol:"encrypted-hls",scFormat:"mp3",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/mpeg"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hlsAACHQ={scProtocol:"hls",scFormat:"aac",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/mp4",audioCodec:{id:"mp4a.40.2"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptedHlsAACHQ={scProtocol:"encrypted-hls",scFormat:"aac",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/mp4",audioCodec:{id:"mp4a.40.2"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiMobile={scProtocol:"sc.api-mobile",maestroFormat:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maestroChromecast={scProtocol:"maestro.chromecast",maestroFormat:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hlsOpus={scProtocol:"hls",scFormat:"opus",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/ogg",audioCodec:{id:"opus"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptedHlsOpus={scProtocol:"encrypted-hls",scFormat:"opus",maestroFormat:{mimeType:"application/x-mpegURL"},maestroSegmentFormat:{mimeType:"audio/ogg",audioCodec:{id:"opus"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpAACHQ={scProtocol:"http",scFormat:"aac",maestroFormat:{mimeType:"audio/mp4",audioCodec:{id:"mp4a.40.2"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){void 0===e&&(e="UNKNOWN"),void 0===t&&(t=!1),void 0===n&&(n=null),this._code=e,this._transient=t,this._cause=n}return e.prototype.isTransient=function(){return this._transient},e.prototype.getCode=function(){return this._code},e.prototype.getCause=function(){return this._cause},e}();t.UrlRetrieverError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(0),s=function(){function e(){this._jobs=[],this._calculator=new r.DecayingExponentialDelayCalculator,this._jobWaiting=!1}return e.prototype.execute=function(e){var t=this,n={job:e};return this._jobs.push(n),this._executeNextJob(),{abort:function(){var e=t._jobs.indexOf(n);e>=0&&t._jobs.splice(e,1)}}},e.prototype._executeNextJob=function(){var e=this;if(!this._jobWaiting){var t=this._jobs.shift();if(t){var n=function(){e._jobWaiting=!1,e._executeNextJob()},r=this._calculator.getDelay();this._jobWaiting=!0,i.helpers.deferException(function(){t.job().then(function(){e._calculator.registerSuccess()})}),0===r?n():window.setTimeout(n,r)}}},e}();t.Limiter=s},function(e,t,n){"use strict";function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if("number"!=typeof e)throw new Error("level must be a number.");if(e<0||e>1)throw new Error("Invalid volume level.");D=e,_.forEach(function(t){return t.setVolume(e)})}function s(){return D}function o(e){if("boolean"!=typeof e)throw new Error("muteEnabled must be a boolean.");P=e,_.forEach(function(t){return t.setMuted(e)})}function u(){return P}function a(e){if("number"!=typeof e||e<0)throw new Error("Invalid size.");O.setCacheSize(e)}var f=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),c=n(15),h=n(43),p=n(44),d=n(47),v=n(11),m=n(48),g=n(49),y=n(94),b=n(95),w=n(9),E=n(26),S=n(96),x=n(97),T=n(98),N=n(27),C=n(10),k=l.eventDispatcher.EventDispatcher,L=l.helpers.Promise,A=l.helpers.deferred.buildDeferred,O=new y.CacheManager(15e7,l.logger.noOpLogger),M=-1,_=[],D=1,P=!1;t.setGlobalVolume=i,t.getGlobalVolume=s,t.setGlobalMuted=o,t.getGlobalMuted=u,t.setCacheSize=a;var H=function(e){function t(t){var n=e.call(this,t)||this;n._onPreloadingEnabled=new k,n._onPreloadingDisabled=new k,n._retryDelayCalculator=new v.DecayingExponentialDelayCalculator,n._errorEventGenerator=null,n._fadeOutVolumeAutomator=null,n._volumeAutomators=[],n._volumeScale=1,n._userVolume=1,n._volumeAutomationSupported=!1,n._timer=null,n._pauseFadeTimer=null,n._pauseFadeDeferred=null,n._pauseFade=null,n._executionState={state:"IDLE"},n._preloadingListeners=[],n._retrieveAndBuildTimer=null,n._hadAStreamUrl=!1;var r=n._config=S.validatePlayerDependencies(t);n._preloadingEnabled=r.preloadingEnabled,n._getURLOpts=r.getURLOpts,n._controllers=r.controllers;var i=n._connectionRequiredHelper=new T.ConnectionRequiredHelper(n);n.onPreloadingEnabled=n._onPreloadingEnabled.getHandle(),n.onPreloadingDisabled=n._onPreloadingDisabled.getHandle(),n.onConnectionRequired=i.onConnectionRequired,n.onConnectionRecovered=i.onConnectionRecovered,n.onChange.subscribe(function(e){n.isDead()||((!1===e.playing||e.positionJumped||e.stalled||e.ended)&&n._completePauseFade(),n._pauseFade&&(!1===e.actuallyPlaying||e.ended||!0===e.playing)&&(n._removeVolumeAutomator(n._pauseFade),n._pauseFade=null),(e.positionJumped||void 0!==e.actuallyPlaying||void 0!==e.stalled)&&n._updateVolume(),void 0!==e.playing&&n._updateMaxBufferLength())});var s="SCAudio-"+ ++M,o=r.streamUrlRetriever.getTrackId();null!==o&&(s+="-"+o);var u=new h.LogCollector,a=l.logger.cloneLogger(u,n._logger);n._logger=l.logger.prefixLogger(a,s);var f=x.generateLogId();n._logger.info("Building player...",{ua:navigator.userAgent,getURLOpts:n._getURLOpts,logId:f}),_.push(n),n.setVolume(D,P),n._updateFadeOut();var c=null,y=null;r.audioPerformanceReporter&&(c=new p.AudioPerformanceEventGenerator(n,function(){return n._getPlayer()},r.audioPerformanceReporter,n._logger,function(){return n._getActivePlayerDetails()})),r.audioReporter&&new m.AudioEventGenerator(n,r.audioReporter,r.audioCheckpointInterval,n._logger,function(){return n._getActivePlayerDetails()}),r.errorReporter&&(y=n._errorEventGenerator=new d.ErrorEventGenerator(n,u,f,o,r.errorReporter,n._logger)),n._excludeUnsupportedRenditions();var b=n._controllerManager=new g.ControllerManager({logger:n._logger,seekStrategy:n._config.seekStrategy,controllers:r.controllers,playerId:s,streamUrlsExpire:r.streamUrlsExpire,fetchEnabled:r.fetchEnabled,fadeOnPauseAndPlay:r.fadeOnPauseAndPlay,fadeOnSeek:r.fadeOnSeek,cacheManager:O,providePlayer:function(e,t,r){n._volumeAutomationSupported=r,n._providePlayer(e,t),n._updateMaxBufferLength()},removePlayer:function(){n._getPlayer()&&n._removePlayer()},streamUrlRetriever:n._config.streamUrlRetriever,getURLOpts:n._getURLOpts,errorEventGenerator:y||void 0,audioPerformanceEventGenerator:c||void 0});if(n.onQualityChanged=b.onQualityChanged,void 0!==r.duration&&(n._logger.debug("Setting initial duration.",r.duration),n._setInitialDuration(r.duration)),n._preloadingEnabled)n._logger.debug("Preloading is enabled, so performing retrieve immediately."),n._retrieveAndBuild();else{n._logger.debug("Preloading is disabled, so deferring retrieve until either a play intent or preloading is enabled.");var w=function(){n._removePreloadingListeners(),n._logger.debug("Preloading now enabled or received a play request. Peforming retrieve."),n._retrieveAndBuild()};n._preloadingListeners.push(n.onPreloadingEnabled.subscribe(w),n.onPlayIntent.subscribe(w))}return n}return f(t,e),t.prototype.reload=function(e){void 0===e&&(e={}),this._ensureNotDead(),this._reloadStreamUrls(e)},t.prototype.enablePreloading=function(){this.isDead()||this._preloadingEnabled||(this._preloadingEnabled=!0,this._updateMaxBufferLength(),this._onPreloadingEnabled.dispatch(void 0))},t.prototype.disablePreloading=function(){this.isDead()||this._preloadingEnabled&&(this._preloadingEnabled=!1,this._updateMaxBufferLength(),this._onPreloadingDisabled.dispatch(void 0))},t.prototype.isPreloadingEnabled=function(){return this._preloadingEnabled},t.prototype.pauseAfterFade=function(e){var t=this;if(this._ensureNotDead(),this._pauseFadeDeferred)return this._pauseFadeDeferred.promise;if(!this.isPlaying()||!this.isActuallyPlaying())return L.resolve(this.pause());var n=A();this._pauseFadeDeferred=n;var r=this.getPosition();if(this._pauseFade)throw new Error("Fade should not already be assigned.");return this._pauseFade=new c.Fade({startPos:r,endPos:r+e,startLevel:1,endLevel:0}),this._addVolumeAutomator(this._pauseFade),this._pauseFadeTimer=window.setTimeout(function(){t._pauseFadeDeferred=null,n.resolve(t.pause({fadeDuration:0}))},e+50),n.promise},t.prototype.isConnectionRequired=function(){return this._connectionRequiredHelper.isConnectionRequired()},t.prototype.getQuality=function(){return this._controllerManager.getQuality()},t.prototype.getVolume=function(){return this._volumeAutomationSupported?this._userVolume:e.prototype.getVolume.call(this)},t.prototype._handleFatalError=function(e){this._logger.warn("Fatal error from current player.",e)},t.prototype._handleVolumeChange=function(t,n){this._userVolume=t,e.prototype._notifyVolumeChange.call(this,t,n),this._calculateAndSetVolume()},t.prototype._notifyVolumeChange=function(){},t.prototype._kill=function(){e.prototype._kill.call(this),this._timer&&window.clearTimeout(this._timer),this._abortPauseFade(),this._removePreloadingListeners(),_.splice(_.indexOf(this),1),"RETRIEVING_URL"===this._executionState.state?this._executionState.retrieveJob.abort():"CONTROLLING_PLAYER"===this._executionState.state&&this._controllerManager.releaseCurrentController({retry:!1}),this._executionState={state:"DEAD"},this._retrieveAndBuildTimer&&window.clearTimeout(this._retrieveAndBuildTimer)},t.prototype._excludeUnsupportedRenditions=function(){var e=this,t={streamUrlExpires:this._config.streamUrlsExpire};C.allRenditions.filter(function(n){return!e._controllers.some(function(e){return e.isRenditionSupported(n,t)})}).forEach(function(t){e._config.streamUrlRetriever.excludeRendition(t)})},t.prototype._addVolumeAutomator=function(e){this._volumeAutomators.indexOf(e)<0&&(this._volumeAutomators.push(e),this._updateVolume())},t.prototype._removeVolumeAutomator=function(e){var t=this._volumeAutomators.indexOf(e);t>=0&&(this._volumeAutomators.splice(t,1),this._updateVolume())},t.prototype._removePreloadingListeners=function(){this._preloadingListeners.forEach(function(e){return e.remove()})},t.prototype._getActivePlayerDetails=function(){return"CONTROLLING_PLAYER"!==this._executionState.state?null:this._controllerManager.getPlayerDetails()},t.prototype._updateFadeOut=function(){this._fadeOutVolumeAutomator&&this._removeVolumeAutomator(this._fadeOutVolumeAutomator),this._getURLOpts.snippet&&(this._fadeOutVolumeAutomator=c.buildFadeOut(3e3),this._addVolumeAutomator(this._fadeOutVolumeAutomator))},t.prototype._handleUnexpectedError=function(e){try{e()}catch(t){this._logger.error("Unexpected error.",t),this._triggerError(new l.errors.PlayerFatalError("An unexpected error occurred.",t))}},t.prototype._retrieveAndBuild=function(){var e=this;this._handleUnexpectedError(function(){if(-1===["IDLE","WAITING_TO_RETRIEVE"].indexOf(e._executionState.state))throw new Error("Invalid state for retrieveAndBuild().");e._logger.debug("Retrieving URL...");var t=b.retrieveUrl({streamUrlRetriever:e._config.streamUrlRetriever,urlProviderRetryDelayCalculator:e._config.urlProviderRetryDelayCalculator,getURLOpts:e._getURLOpts,logger:e._logger});e._executionState={state:"RETRIEVING_URL",retrieveJob:t},t.onCompletion(function(t){if(e._logger.debug("Retrieved URL.",!!t),t&&t.success){e._hadAStreamUrl=!0;var n=!1,r=function(r){var i=r.excludeRendition,s=r.immediateRetry;e._handleUnexpectedError(function(){if(n)throw new Error("startOver called multiple times.");if(n=!0,i&&e._config.streamUrlRetriever.excludeRendition(t.rendition),e._executionState={state:"WAITING_TO_RETRIEVE"},e.isDead())return void e._logger.debug("Stopping execution because player is dead.");if(s)e._logger.debug("Moving on immediately."),e._retrieveAndBuild();else{var r=e._retryDelayCalculator.getDelay();e._logger.debug("Will move on in "+r+"ms."),r?e._retrieveAndBuildTimer=window.setTimeout(function(){return e._retrieveAndBuild()},r):e._retrieveAndBuild()}})};e._handleUnexpectedError(function(){e._executionState={state:"CONTROLLING_PLAYER"},e._logger.debug("Building controller..."),e._controllerManager.buildNextController(t,r),e._logger.debug("Built controller.")})}else if(t&&t.rendition){if(e._logger.warn("Error retrieving URL. Moving on.",t.error),e._errorEventGenerator){var i="SCAUDIO.URL_RETRIEVER_ERROR."+e._config.streamUrlRetriever.name+"."+t.error.getCode();e._errorEventGenerator.reportManualEvent(i,{preset:t.preset,quality:t.quality,bitrate:t.bitrate,format:t.rendition.scFormat,protocol:t.rendition.scProtocol})}e._config.streamUrlRetriever.excludeRendition(t.rendition),e._executionState={state:"WAITING_TO_RETRIEVE"},e._retrieveAndBuild()}else t&&t.rendition&&e._logger.warn("Error retrieving URL for any rendition.",t.error),e._logger.info("Ran out of streams.",e._hadAStreamUrl),e._triggerError(e._hadAStreamUrl?new w.NotSupportedError:new E.NoStreamsError)}),t.onError(function(t){t!==l.helpers.abortableJob.abortedError&&(t===b.NoMoreAttemptsError?e._logger.error("Ran out of retries to retrieve URL."):e._logger.error("Unexpected error when retrieving a URL.",t),e._triggerError(new N.FailedRetrievingUrlError))})})},t.prototype._reloadStreamUrls=function(e){this._getURLOpts=e,this._updateFadeOut(),this._logger.info("Reloading stream URL's...",this._getURLOpts),"RETRIEVING_URL"===this._executionState.state?(this._logger.debug("Aborting current URL retrieve."),this._executionState.retrieveJob.abort(),this._executionState={state:"WAITING_TO_RETRIEVE"},this._retrieveAndBuild()):"CONTROLLING_PLAYER"===this._executionState.state?(this._logger.debug("Releasing controller."),this._controllerManager.releaseCurrentController({retry:!0})):this._logger.debug("Nothing to do."),this._logger.info("Reloaded stream URL's.")},t.prototype._completePauseFade=function(){if(this._pauseFadeDeferred){this._pauseFadeTimer&&window.clearTimeout(this._pauseFadeTimer);var e=this._pauseFadeDeferred;this._pauseFadeDeferred=null,e.resolve(this.pause())}},t.prototype._abortPauseFade=function(){this._pauseFadeTimer&&(window.clearTimeout(this._pauseFadeTimer),this._pauseFadeTimer=null),this._pauseFadeDeferred&&(this._pauseFadeDeferred.reject(new Error("Player was killed.")),this._pauseFadeDeferred=null)},t.prototype._updateVolume=function(){var e=this;if(this._volumeAutomationSupported){this._ensureNotDead(),this._timer&&(window.clearTimeout(this._timer),this._timer=null);var t=this.getDuration();if(null!==t){var n=this._volumeAutomators,i=this.getPosition(),s=1/0,o=1;n.forEach(function(e){var n=e.calculate(i,t),u=n.nextCalculatePosition,a=n.level;o*=r(0,1,a),u<s&&(s=u)}),this._volumeScale!==o&&(this._volumeScale=o,this._calculateAndSetVolume()),s<1/0&&this.isActuallyPlaying()&&!this.isStalled()&&(this._timer=window.setTimeout(function(){e._timer=null,e._updateVolume()},r(100,5e3,s-this.getPosition())))}}},t.prototype._calculateAndSetVolume=function(){this._volumeAutomationSupported?e.prototype._handleVolumeChange.call(this,this._userVolume*this._volumeScale,this.getMuted()):e.prototype._handleVolumeChange.call(this,this._userVolume,this.getMuted())},t.prototype._updateMaxBufferLength=function(){var e=this._getPlayer(),t=e&&e.getBufferController();t&&(this.isPlaying()?t.setMaxBufferLength(this._config.playingMaxBufferLength):t.setMaxBufferLength(this._preloadingEnabled?this._config.pausedMaxBufferLength:0))},t}(l.ProxyPlayerBase);t.Player=H},function(e,t,n){"use strict";function r(e){return e.map(function(e){try{return JSON.stringify(e)}catch(t){return"<unavailable>"}})}var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){void 0===e&&(e=200),this._bufferSize=e,this._log=[]}return e.prototype.getLog=function(){return this._log.map(function(e){return i({},e,{data:r(e.data)})})},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._push({level:"debug",msg:e,data:t,time:Date.now()})},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._push({level:"info",msg:e,data:t,time:Date.now()})},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._push({level:"warn",msg:e,data:t,time:Date.now()})},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._push({level:"error",msg:e,data:t,time:Date.now()})},e.prototype._push=function(e){this._log.push(e)>this._bufferSize&&this._log.shift()},e}();t.LogCollector=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(45),s=n(46),o=n(12),u=function(){function e(e,t,n,i,s){this._logger=r.logger.prefixLogger(i,"AudioPerformanceEventGenerator"),this._proxy=e,this._getPlayer=t,this._eventReporter=n,this._getPlayerDetails=s,this._measureGeneralEvents()}return e.prototype.reportManualEvent=function(e){this._logger.debug("Reporting manual audio performance event.",e),this._eventReporter(e)},e.prototype._measureGeneralEvents=function(){var e=this,t=this._proxy,n=null,r=null,o=null,u=null,a=null,f=null,l=null,c=!0;t.onChange.subscribe(function(h){var p=h.playing,d=h.actuallyPlaying,v=h.seek,m=h.seeking,g=h.stalled,y=h.ended;if(!0!==h.dead&&!1!==p||!u||(u.stop(),u.getTime()>=1e3&&e._reportEvent("rageSkip",u.getTime(),null),u=null),t.isDead())return void (l&&window.clearTimeout(l));var b=t.getSeekState();t.isActuallyPlaying()||u||!(!0===p||t.isPlaying()&&!0===g)||(u=new i.Timer,u.start()),!0===p&&(n||(n=new i.Timer,n.start(),r=new s.PreloadingCalculator({proxy:t,getPlayer:e._getPlayer}),l=window.setTimeout(function(){e._reportEvent("longInitialBuffering",0,null)},3e4),0===t.getPosition()&&(c=!1))),!1===p&&(l&&window.clearTimeout(l),n&&!n.isComplete()&&(n=null)),!0===d&&(u=null,n&&!n.isComplete()&&(n.stop(),l&&window.clearTimeout(l),e._reportEvent("play",n.getTime(),r.getPreloaded()))),v&&"IN_PROGRESS"===v.state&&t.isReady()&&(o=new i.Timer,o.start(),a=new s.PreloadingCalculator({proxy:t,getPlayer:e._getPlayer}),!0===m&&e._reportEvent("seekStart",0,null)),(v&&"COMPLETED"===v.state&&!t.isStalled()||!1===g&&b&&"COMPLETED"===b.state)&&o&&(o.stop(),e._reportEvent("seek",o.getTime(),a.getPreloaded()),o=null),!0!==g||!t.isPlaying()||b&&"IN_PROGRESS"===b.state||n&&n.isComplete()&&(f=new i.Timer,f.start(),e._reportEvent("rebufferingStart",t.getPosition(),null)),!1===g&&(n&&n.isComplete()&&(u=null),f&&(f.stop(),e._reportEvent("rebufferingEnd",f.getTime(),null),f=null)),!0!==y||c||(e._reportEvent("uninterruptedPlay",0,null),c=!0),(!b||"IN_PROGRESS"!==b.state)&&!0===g&&t.isActuallyPlaying()&&(c=!0)})},e.prototype._reportEvent=function(e,t,n){var r=this._getPlayerDetails();if(!r)return void this._logger.warn("Cannot report event because there is no player.",e,t);var i={type:e,latency:t,protocol:r.protocol,playerType:r.name,host:r.host,bitrate:r.bitrate,format:r.format,preset:r.preset,quality:r.quality,preloaded:n||void 0,appState:o.getAppState()};this._logger.debug("Generated audio performance event.",i),this._eventReporter(i)},e}();t.AudioPerformanceEventGenerator=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.helpers.time.now,s=function(){function e(){this._start=null,this._end=null}return e.prototype.start=function(){if(this.isComplete())throw new Error("Timer completed.");this._start=i()},e.prototype.isComplete=function(){return null!==this._end},e.prototype.stop=function(){if(null===this._start)throw new Error("Not started.");this._end=i()},e.prototype.getTime=function(){if(null===this._end)throw new Error("Not completed.");return this._end-this._start},e}();t.Timer=s},function(e,t,n){"use strict";function r(e,t){var n=e.getBufferedTimeRanges();return n?s(n,function(e){return e.containsTime(t)})||new i.TimeRange(t,0):null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=i.helpers.find,o=function(){function e(e){var t=e.proxy,n=e.getPlayer;this._getPlayer=n;var i=t.getPosition(),s=this._initialActualPlayer=n();if(s){var o=r(s,i);this._initialBuffered=o?o.end-i:null}else this._initialBuffered=null}return e.prototype.getPreloaded=function(){var e=this._initialBuffered;return null!==e&&this._initialActualPlayer&&this._getPlayer()===this._initialActualPlayer?0===e?"no":e>=2e3?"yes":"partial":null},e}();t.PreloadingCalculator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(12),s=function(){function e(e,t,n,i,s,o){this._logger=r.logger.prefixLogger(o,"ErrorGenerator"),this._player=e,this._logCollector=t,this._logId=n,this._trackId=i,this._eventReporter=s,this._listenForProxyFatalError()}return e.prototype.reportManualEvent=function(e,t){"NOT_SUPPORTED_ERROR"!==e&&"HLS_MSE_PLAYER.NO_TRANSMUXER_ERROR"!==e&&(this._logger.debug("Reporting manual error event.",e),this._reportEvent(e,t))},e.prototype._listenForProxyFatalError=function(){var e=this;this._player.onError.subscribe(function(t){t instanceof r.errors.PlayerFatalError&&e._reportEvent(t.getCode())})},e.prototype._reportEvent=function(e,t){var n={errorCode:e,log:this._logCollector.getLog(),logId:this._logId,trackId:this._trackId,protocol:t&&t.protocol,playerType:t&&t.name?t.name:"MaestroUnknown",host:t&&t.host,bitrate:t&&t.bitrate,format:t&&t.format,preset:t&&t.preset,quality:t&&t.quality,url:t&&t.url,appState:i.getAppState()};this._logger.debug("Generated audio error event.",n),this._eventReporter(n)},e}();t.ErrorEventGenerator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(12),s=1e3,o=function(){function e(e,t,n,i,o){this._checkpointTimer=null,this._logger=r.logger.prefixLogger(i,"AudioEventGenerator"),this._player=e,this._eventReporter=t,this._checkpointInterval=Math.max(s,n),this._getPlayerDetails=o,this._startReporting()}return e.prototype._startReporting=function(){var e=this,t=this._player;t.onChange.subscribe(function(n){var r=n.actuallyPlaying,i=n.ended;!0===r&&!t.isEnded()||!1===i&&t.isActuallyPlaying()?(e._checkpointTimer||(e._checkpointTimer=window.setInterval(function(){e._reportEvent("checkpoint")},e._checkpointInterval)),e._reportEvent("play")):(!1===r&&!t.isEnded()||!0===i&&t.isActuallyPlaying())&&(e._checkpointTimer&&(window.clearInterval(e._checkpointTimer),e._checkpointTimer=null),e._reportEvent("pause"))})},e.prototype._reportEvent=function(e){var t=this._getPlayerDetails();if(!t)return void this._logger.warn("Cannot report event because there is no player.",e);var n=this._player.getDuration();if(null===n)throw new Error("Duration should exist now.");var r={type:e,position:this._player.getPosition(),duration:n,preset:t.preset,quality:t.quality,playerType:t.name,appState:i.getAppState()};this._logger.debug("Generated audio event.",r),this._eventReporter(r)},e}();t.AudioEventGenerator=o},function(e,t,n){"use strict";function r(e){var t=e.split("//",2);return 1===t.length?t[0].split("/",1)[0]:t[1]?t[1].split("/",1)[0]:""}function i(e){var t=f.exec(e);return t&&t[0]||""}function s(e,t,n){return{name:t.name,preset:e.preset,bitrate:e.bitrate,protocol:e.rendition.scProtocol,host:r(n),url:i(n),format:e.rendition.scFormat,quality:e.quality}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(50),u=n(0),a=n(17),f=/^[^?#]*/,l=function(){function e(e){var t=e.logger,n=e.seekStrategy,r=e.controllers,i=e.playerId,s=e.streamUrlsExpire,a=e.fetchEnabled,f=e.fadeOnPauseAndPlay,l=e.fadeOnSeek,c=e.cacheManager,h=e.providePlayer,p=e.removePlayer,d=e.streamUrlRetriever,v=e.getURLOpts,m=e.errorEventGenerator,g=e.audioPerformanceEventGenerator;this._quality=null,this._onQualityChanged=new u.eventDispatcher.EventDispatcher,this._controllerIndexByRendition=new o,this._controlledPlayerWithRendition=null,this.onQualityChanged=this._onQualityChanged.getHandle(),this._logger=u.logger.prefixLogger(t,"ControllerManager"),this._seekStrategy=n,this._controllers=r,this._playerId=i,this._streamUrlsExpire=s,this._fetchEnabled=a,this._fadeOnPauseAndPlay=f,this._fadeOnSeek=l,this._cacheManager=c,this._providePlayer=h,this._removePlayer=p,this._streamUrlRetriever=d,this._getURLOpts=v,this._errorEventGenerator=m||null,this._audioPerformanceEventGenerator=g||null}return e.prototype.buildNextController=function(e,t){var n=this;if(this._controlledPlayerWithRendition)throw new Error("A player is already being controlled.");this._logger.debug("Building next controller.");var r=this._controllerIndexByRendition.get(e.rendition)||0;if(r>=this._controllers.length)this._logger.debug("No more controllers for this rendition."),t({excludeRendition:!0,immediateRetry:!0});else{var i=!1,s=function(s){if(i)throw new Error("performNextAction() already called");i=!0,"MOVE_ON"!==s&&"MOVE_ON_SAME_RENDITION"!==s||(n._logger.debug("Controller will not be used again."),n._controllerIndexByRendition.set(e.rendition,r+1)),"MOVE_ON_SAME_RENDITION"===s?n.buildNextController(e,t):t({excludeRendition:!1,immediateRetry:"MOVE_ON"===s})};this._manageController(e,this._controllers[r],s)}},e.prototype.releaseCurrentController=function(e){var t=e.retry;if(!this._controlledPlayerWithRendition)throw new Error("There is no player being controlled.");this._controlledPlayerWithRendition.releaseControl({retry:t})},e.prototype.getQuality=function(){return this._quality},e.prototype.getPlayerDetails=function(){if(!this._controlledPlayerWithRendition)throw new Error("There is no player being controlled.");var e=this._controlledPlayerWithRendition;return s(e.initialUrlAndRendition,e.controller,e.controlledPlayer.getUrl())},e.prototype._manageController=function(e,t,n){var r=this,i=function(){r._removePlayer(),r._controlledPlayerWithRendition=null,o&&o.kill()};if(this._logger.debug("Preparing controller.",t.name),!t.isRenditionSupported(e.rendition,{streamUrlExpires:this._streamUrlsExpire}))return this._logger.debug("Skipping controller because rendition not supported."),void n("MOVE_ON_SAME_RENDITION");var o,f=!1,l=function(e){var t=e.retry;f||(f=!0,r._logger.debug("Releasing control."),i(),n(t?"RETRY":"MOVE_ON"))};try{this._logger.debug("Building player.");var c=t.buildPlayer({logger:u.logger.prefixLogger(this._logger,t.name+"-Controller"),seekStrategy:this._seekStrategy,playerId:this._playerId,urlAndRendition:e,streamUrlExpires:this._streamUrlsExpire,fetchEnabled:this._fetchEnabled,releaseControl:l,fadeOnPauseAndPlay:this._fadeOnPauseAndPlay,fadeOnSeek:this._fadeOnSeek,getNewUrl:function(){return r._getNewUrlWithSameRendition(e.rendition)},reportError:function(n){r._errorEventGenerator&&r._errorEventGenerator.reportManualEvent(n,s(e,t,c?c.getUrl():e.url))},reportPerformance:function(e){!f&&r._audioPerformanceEventGenerator&&r._audioPerformanceEventGenerator.reportManualEvent(e)}});if(o=c.getPlayer(),f)this._logger.warn("Player released during constrution."),o.kill();else if(o.isDead()){var h=o.getFatalError();h instanceof u.errors.NotSupportedError?this._logger.debug("Player not supported (during construction)."):this._logger.error("Error during construction.",h),n("MOVE_ON_SAME_RENDITION")}else{this._logger.debug("Player built."),o.onChange.subscribe(function(e){var t=e.dead,n=e.fatalError;t&&(n&&r._logger.error("Fatal player error occurred.",n),l({retry:!1}))}),this._cacheManager.addPlayer(o),this._controlledPlayerWithRendition={controller:t,controlledPlayer:c,initialUrlAndRendition:e,releaseControl:l},this._providePlayer(c.getPlayer(),t.syncConfig,t.supportsVolumeAutomation),this._logger.debug("Player provided to proxy.");var p=e.quality||null;this._quality!==p&&(this._logger.debug("Quality changed.",p),this._quality=p,this._onQualityChanged.dispatch(p))}}catch(d){d===a.notSupportedError?this._logger.debug("Player not supported. Not constructed."):this._logger.error("Error during construction.",d),i(),n("MOVE_ON_SAME_RENDITION")}},e.prototype._getNewUrlWithSameRendition=function(e){var t=this;return(new u.helpers.abortableJob.AbortableJob(function(){var n=t._streamUrlRetriever.getUrl(t._getURLOpts);return{result:n.whenComplete().then(function(t){var n=null;return t&&t.success&&t.rendition===e&&(n=t.url),n}),abort:function(){return n.abort()}}})).run()},e}();t.ControllerManager=l},function(e,t,n){"use strict";e.exports=n(51)()?Map:n(52)},function(e,t,n){"use strict";e.exports=function(){var e,t,n;if("function"!=typeof Map)return!1;try{e=new Map([["raz","one"],["dwa","two"],["trzy","three"]])}catch(r){return!1}return"[object Map]"===String(e)&&3===e.size&&"function"==typeof e.clear&&"function"==typeof e.delete&&"function"==typeof e.entries&&"function"==typeof e.forEach&&"function"==typeof e.get&&"function"==typeof e.has&&"function"==typeof e.keys&&"function"==typeof e.set&&"function"==typeof e.values&&(t=e.entries(),n=t.next(),!1===n.done&&!!n.value&&"raz"===n.value[0]&&"one"===n.value[1])}},function(e,t,n){"use strict";var r,i=n(18),s=n(53),o=n(6),u=n(2),a=n(1),f=n(4),l=n(71),c=n(3),h=n(25),p=n(77),d=n(90),v=n(93),m=Function.prototype.call,g=Object.defineProperties,y=Object.getPrototypeOf;e.exports=r=function(){var e,t,n,i=arguments[0];if(this instanceof r)return n=v&&o&&Map!==r?o(new Map,y(this)):this,null!=i&&h(i),g(n,{__mapKeysData__:f("c",e=[]),__mapValuesData__:f("c",t=[])}),i?(p(i,function(n){var r=a(n)[0];n=n[1],-1===s.call(e,r)&&(e.push(r),t.push(n))},n),n):n;throw new TypeError("Constructor requires 'new'")},v&&(o&&o(r,Map),r.prototype=Object.create(Map.prototype,{constructor:f(r)})),l(g(r.prototype,{clear:f(function(){this.__mapKeysData__.length&&(i.call(this.__mapKeysData__),i.call(this.__mapValuesData__),this.emit("_clear"))}),"delete":f(function(e){var t=s.call(this.__mapKeysData__,e);return-1!==t&&(this.__mapKeysData__.splice(t,1),this.__mapValuesData__.splice(t,1),this.emit("_delete",t,e),!0)}),entries:f(function(){return new d(this,"key+value")}),forEach:f(function(e){var t,n,r=arguments[1];for(u(e),t=this.entries(),n=t._next();void 0!==n;)m.call(e,r,this.__mapValuesData__[n],this.__mapKeysData__[n],this),n=t._next()}),get:f(function(e){var t=s.call(this.__mapKeysData__,e);if(-1!==t)return this.__mapValuesData__[t]}),has:f(function(e){return-1!==s.call(this.__mapKeysData__,e)}),keys:f(function(){return new d(this,"key")}),set:f(function(e,t){var n,r=s.call(this.__mapKeysData__,e);return-1===r&&(r=this.__mapKeysData__.push(e)-1,n=!0),this.__mapValuesData__[r]=t,n&&this.emit("_add",r,e),this}),size:f.gs(function(){return this.__mapKeysData__.length}),values:f(function(){return new d(this,"value")}),toString:f(function(){return"[object Map]"})})),Object.defineProperty(r.prototype,c.iterator,f(function(){return this.entries()})),Object.defineProperty(r.prototype,c.toStringTag,f("c","Map"))},function(e,t,n){"use strict";var r=n(54),i=n(20),s=n(1),o=Array.prototype.indexOf,u=Object.prototype.hasOwnProperty,a=Math.abs,f=Math.floor;e.exports=function(e){var t,n,l,c;if(!r(e))return o.apply(this,arguments);for(n=i(s(this).length),l=arguments[1],l=isNaN(l)?0:l>=0?f(l):i(this.length)-f(a(l)),t=l;t<n;++t)if(u.call(this,t)&&(c=this[t],r(c)))return t;return-1}},function(e,t,n){"use strict";e.exports=n(55)()?Number.isNaN:n(56)},function(e,t,n){"use strict";e.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}},function(e,t,n){"use strict";e.exports=function(e){return e!==e}},function(e,t,n){"use strict";var r=n(58),i=Math.abs,s=Math.floor;e.exports=function(e){return isNaN(e)?0:(e=Number(e),0!==e&&isFinite(e)?r(e)*s(i(e)):e)}},function(e,t,n){"use strict";e.exports=n(59)()?Math.sign:n(60)},function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}},function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},function(e,t,n){"use strict";var r=n(5),i={"function":!0,object:!0};e.exports=function(e){return r(e)&&i[typeof e]||!1}},function(e,t,n){"use strict";var r,i=Object.create;n(21)()||(r=n(22)),e.exports=function(){var e,t,n;return r?1!==r.level?i:(e={},t={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(e){if("__proto__"===e)return void (t[e]={configurable:!0,enumerable:!1,writable:!0,value:void 0});t[e]=n}),Object.defineProperties(e,t),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(t,n){return i(null===t?e:t,n)}):i}()},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(65),i=n(1),s=Math.max;e.exports=function(e,t){var n,o,u,a=s(arguments.length,2);for(e=Object(i(e)),u=function(r){try{e[r]=t[r]}catch(i){n||(n=i)}},o=1;o<a;++o)t=arguments[o],r(t).forEach(u);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=n(66)()?Object.keys:n(67)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(5),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var r,i,s,o,u,a,f,l=n(4),c=n(2),h=Function.prototype.apply,p=Function.prototype.call,d=Object.create,v=Object.defineProperty,m=Object.defineProperties,g=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var n;return c(t),g.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),v(this,"__ee__",y),y.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},i=function(e,t){var n,i;return c(t),i=this,r.call(this,e,n=function(){s.call(i,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},s=function(e,t){var n,r,i,s;if(c(t),!g.call(this,"__ee__"))return this;if(n=this.__ee__,!n[e])return this;if("object"==typeof (r=n[e]))for(s=0;i=r[s];++s)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[s?0:1]:r.splice(s,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},o=function(e){var t,n,r,i,s;if(g.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,s=new Array(n-1),t=1;t<n;++t)s[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)h.call(r,this,s)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,s=new Array(n-1),t=1;t<n;++t)s[t-1]=arguments[t];h.call(i,this,s)}},u={on:r,once:i,off:s,emit:o},a={on:l(r),once:l(i),off:l(s),emit:l(o)},f=m({},a),e.exports=t=function(e){return null==e?d(f):m(Object(e),a)},t.methods=u},function(e,t,n){"use strict";var r={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return!!r[typeof Symbol.iterator]&&!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";var r,i,s,o,u=n(4),a=n(74),f=Object.create,l=Object.defineProperties,c=Object.defineProperty,h=Object.prototype,p=f(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),o=!0}catch(d){}}var v=function(){var e=f(null);return function(t){for(var n,r,i=0;e[t+(i||"")];)++i;return t+=i||"",e[t]=!0,n="@@"+t,c(h,n,u.gs(null,function(e){r||(r=!0,c(this,n,u(e)),r=!1)})),n}}();s=function(e){if(this instanceof s)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function m(e){var t;if(this instanceof m)throw new TypeError("Symbol is not a constructor");return o?r(e):(t=f(s.prototype),e=void 0===e?"":String(e),l(t,{__description__:u("",e),__name__:u("",v(e))}))},l(i,{"for":u(function(e){return p[e]?p[e]:p[e]=i(String(e))}),keyFor:u(function(e){var t;a(e);for(t in p)if(p[t]===e)return t}),hasInstance:u("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:u("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:u("",r&&r.iterator||i("iterator")),match:u("",r&&r.match||i("match")),replace:u("",r&&r.replace||i("replace")),search:u("",r&&r.search||i("search")),species:u("",r&&r.species||i("species")),split:u("",r&&r.split||i("split")),toPrimitive:u("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:u("",r&&r.toStringTag||i("toStringTag")),unscopables:u("",r&&r.unscopables||i("unscopables"))}),l(s.prototype,{constructor:u(i),toString:u("",function(){return this.__name__})}),l(i.prototype,{toString:u(function(){return"Symbol ("+a(this).__description__+")"}),valueOf:u(function(){return a(this)})}),c(i.prototype,i.toPrimitive,u("",function(){var e=a(this);return"symbol"==typeof e?e:e.toString()})),c(i.prototype,i.toStringTag,u("c","Symbol")),c(s.prototype,i.toStringTag,u("c",i.prototype[i.toStringTag])),c(s.prototype,i.toPrimitive,u("c",i.prototype[i.toPrimitive]))},function(e,t,n){"use strict";var r=n(75);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var r=n(7),i=n(5),s=n(8),o=n(3).iterator,u=Array.isArray;e.exports=function(e){return!!i(e)&&(!!u(e)||!!s(e)||!!r(e)||"function"==typeof e[o])}},function(e,t,n){"use strict";var r=n(7),i=n(2),s=n(8),o=n(78),u=Array.isArray,a=Function.prototype.call,f=Array.prototype.some;e.exports=function(e,t){var n,l,c,h,p,d,v,m,g=arguments[2];if(u(e)||r(e)?n="array":s(e)?n="string":e=o(e),i(t),c=function(){h=!0},"array"===n)return void f.call(e,function(e){return a.call(t,g,e,c),h});if("string"!==n)for(l=e.next();!l.done;){if(a.call(t,g,l.value,c),h)return;l=e.next()}else for(d=e.length,p=0;p<d&&(v=e[p],p+1<d&&(m=v.charCodeAt(0))>=55296&&m<=56319&&(v+=e[++p]),a.call(t,g,v,c),!h);++p);}},function(e,t,n){"use strict";var r=n(7),i=n(8),s=n(79),o=n(89),u=n(25),a=n(3).iterator;e.exports=function(e){return"function"==typeof u(e)[a]?e[a]():r(e)?new s(e):i(e)?new o(e):new s(e)}},function(e,t,n){"use strict";var r,i=n(6),s=n(24),o=n(4),u=n(3),a=n(14),f=Object.defineProperty;r=e.exports=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");a.call(this,e),t=t?s.call(t,"key+value")?"key+value":s.call(t,"key")?"key":"value":"value",f(this,"__kind__",o("",t))},i&&i(r,a),delete r.prototype.constructor,r.prototype=Object.create(a.prototype,{_resolve:o(function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e})}),f(r.prototype,u.toStringTag,o("c","Array Iterator"))},function(e,t,n){"use strict";var r,i=n(81),s=n(23),o=n(2),u=n(86),a=n(2),f=n(1),l=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;r=function(e,t,n){var r,s=f(t)&&a(t.value);return r=i(t),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&h.call(this,e)?s:(t.value=l.call(s,n.resolveContext?n.resolveContext(this):this),c(this,e,t),this[e])},r},e.exports=function(e){var t=s(arguments[1]);return null!=t.resolveContext&&o(t.resolveContext),u(e,function(e,n){return r(n,e,t)})}},function(e,t,n){"use strict";var r=n(82),i=n(13),s=n(1);e.exports=function(e){var t=Object(s(e)),n=arguments[1],o=Object(arguments[2]);if(t!==e&&!n)return t;var u={};return n?r(n,function(t){(o.ensure||t in e)&&(u[t]=e[t])}):i(u,e),u}},function(e,t,n){"use strict";e.exports=n(83)()?Array.from:n(84)},function(e,t,n){"use strict";e.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&(e=["raz","dwa"],t=n(e),Boolean(t&&t!==e&&"dwa"===t[1]))}},function(e,t,n){"use strict";var r=n(3).iterator,i=n(7),s=n(85),o=n(20),u=n(2),a=n(1),f=n(5),l=n(8),c=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(e){var t,n,v,m,g,y,b,w,E,S,x=arguments[1],T=arguments[2];if(e=Object(a(e)),f(x)&&u(x),this&&this!==Array&&s(this))t=this;else{if(!x){if(i(e))return 1!==(g=e.length)?Array.apply(null,e):(m=new Array(1),m[0]=e[0],m);if(c(e)){for(m=new Array(g=e.length),n=0;n<g;++n)m[n]=e[n];return m}}m=[]}if(!c(e))if(void 0!==(E=e[r])){for(b=u(E).call(e),t&&(m=new t),w=b.next(),n=0;!w.done;)S=x?h.call(x,T,w.value,n):w.value,t?(p.value=S,d(m,n,p)):m[n]=S,w=b.next(),++n;g=n}else if(l(e)){for(g=e.length,t&&(m=new t),n=0,v=0;n<g;++n)S=e[n],n+1<g&&(y=S.charCodeAt(0))>=55296&&y<=56319&&(S+=e[++n]),S=x?h.call(x,T,S,v):S,t?(p.value=S,d(m,v,p)):m[v]=S,++v;g=v}if(void 0===g)for(g=o(e.length),t&&(m=new t(g)),n=0;n<g;++n)S=x?h.call(x,T,e[n],n):e[n],t?(p.value=S,d(m,n,p)):m[n]=S;return t&&(p.value=null,m.length=g),m}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=r.call(n(19));e.exports=function(e){return"function"==typeof e&&r.call(e)===i}},function(e,t,n){"use strict";var r=n(2),i=n(87),s=Function.prototype.call;e.exports=function(e,t){var n={},o=arguments[2];return r(t),i(e,function(e,r,i,u){n[r]=s.call(t,o,e,r,i,u)}),n}},function(e,t,n){"use strict";e.exports=n(88)("forEach")},function(e,t,n){"use strict";var r=n(2),i=n(1),s=Function.prototype.bind,o=Function.prototype.call,u=Object.keys,a=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,f){var l,c=arguments[2],h=arguments[3];return n=Object(i(n)),r(f),l=u(n),h&&l.sort("function"==typeof h?s.call(h,n):void 0),"function"!=typeof e&&(e=l[e]),o.call(e,l,function(e,r){return a.call(n,e)?o.call(f,c,n[e],e,n,r):t})}}},function(e,t,n){"use strict";var r,i=n(6),s=n(4),o=n(3),u=n(14),a=Object.defineProperty;r=e.exports=function(e){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");e=String(e),u.call(this,e),a(this,"__length__",s("",e.length))},i&&i(r,u),delete r.prototype.constructor,r.prototype=Object.create(u.prototype,{_next:s(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:s(function(e){var t,n=this.__list__[e];return this.__nextIndex__===this.__length__?n:(t=n.charCodeAt(0),t>=55296&&t<=56319?n+this.__list__[this.__nextIndex__++]:n)})}),a(r.prototype,o.toStringTag,s("c","String Iterator"))},function(e,t,n){"use strict";var r,i=n(6),s=n(4),o=n(14),u=n(3).toStringTag,a=n(91),f=Object.defineProperties,l=o.prototype._unBind;r=e.exports=function(e,t){if(!(this instanceof r))return new r(e,t);o.call(this,e.__mapKeysData__,e),t&&a[t]||(t="key+value"),f(this,{__kind__:s("",t),__values__:s("w",e.__mapValuesData__)})},i&&i(r,o),r.prototype=Object.create(o.prototype,{constructor:s(r),_resolve:s(function(e){return"value"===this.__kind__?this.__values__[e]:"key"===this.__kind__?this.__list__[e]:[this.__list__[e],this.__values__[e]]}),_unBind:s(function(){this.__values__=null,l.call(this)}),toString:s(function(){return"[object Map Iterator]"})}),Object.defineProperty(r.prototype,u,s("c","Map Iterator"))},function(e,t,n){"use strict";e.exports=n(92)("key","value","key+value")},function(e,t,n){"use strict";var r=Array.prototype.forEach,i=Object.create;e.exports=function(e){var t=i(null);return r.call(arguments,function(e){t[e]=!0}),t}},function(e,t,n){"use strict";e.exports=function(){return"undefined"!=typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map)}()},function(e,t,n){"use strict";function r(e,t){var n=e.getMemoryCacheController();n&&n.setMaxCacheSize(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(){function e(e,t){this._maxCacheSize=e,this._players=[],this._updateTimer=null,this._logger=i.logger.prefixLogger(t,"CacheManager"),this._logger.debug("Initialized with cache size "+e+" bytes.")}return e.prototype.setCacheSize=function(e){this._maxCacheSize!==e&&(this._logger.debug("Updating cache size to "+e+" bytes."),this._maxCacheSize=e,this._update())},e.prototype.addPlayer=function(e){var t=this;if(this._logger.debug("Adding player to cache manager."),e.isDead())return void this._logger.debug("Player was dead.");var n=this._players;e.onChange.subscribe(function(r){var i=r.playing;!0===r.dead?(t._logger.debug("Removing player that became dead."),n.splice(n.indexOf(e),1),t._update()):!0===i?(t._logger.debug("Updating because player started playing."),n.splice(n.indexOf(e),1),n.unshift(e),t._update()):!1===i&&(t._logger.debug("Updating because player became paused."),t._update())}),e.isPlaying()?n.unshift(e):n.push(e),this._update()},e.prototype._update=function(){var e=this;if(this._updateTimer&&(window.clearTimeout(this._updateTimer),this._updateTimer=null),0===this._players.length)return void this._logger.debug("There are no longer any players to manage.");var t=this._players.reduce(function(e,t){return t.isPlaying()?e.playingPlayers.push(t):e.pausedPlayers.push(t),e},{playingPlayers:[],pausedPlayers:[]}),n=t.playingPlayers,i=t.pausedPlayers,s=n.reduce(function(e,t){return e+(t.getMemoryCacheUsage()||0)},0),o=i.reduce(function(e,t){return e+(t.getMemoryCacheUsage()||0)},0);if(s>this._maxCacheSize){this._logger.debug("All playing players are using more than the max cache size. Cleaning...",s,this._maxCacheSize);var u=this._maxCacheSize/n.length;n.forEach(function(e){return r(e,u)}),i.forEach(function(e){return r(e,0)})}else this._logger.debug("Recalculating cache sizes...",s+o,this._maxCacheSize),n.concat(i).reduce(function(t,n){return r(n,Math.max(0,e._maxCacheSize-t)),t+(n.getMemoryCacheUsage()||0)},0);this._updateTimer=window.setTimeout(function(){return e._update()},2e4)},e}();t.CacheManager=s},function(e,t,n){"use strict";function r(e){var n=e.streamUrlRetriever,r=e.getURLOpts,o=e.logger,u=e.urlProviderRetryDelayCalculator;return(new i.helpers.abortableJob.AbortableJob(function(){var e=i.helpers.deferred.buildDeferred(),a=i.helpers.retry.retry(u,function(t){var u=t.scheduleRetry,a=n.getUrl(r);return o.debug("Retrieving a URL..."),a.onCompletion(function(t){t?t.rendition&&s.allRenditions.indexOf(t.rendition)<0?(o.warn("Unknown rendition. Skipping...",t.rendition),n.excludeRendition(t.rendition),u()):!t.success&&t.error.isTransient()?(o.warn("Transient error retrieving url.",t.error),u()):e.resolve(t):(o.debug("No URL provided."),e.resolve(null))}),a.onError(function(t){t!==i.helpers.abortableJob.abortedError&&o.error("Error retrieving URL.",t),e.reject(t)}),{onCancel:function(){return a.abort()}}},{onNoMoreRetries:function(){return e.reject(t.NoMoreAttemptsError)}}).cancel;return{result:e.promise,abort:function(){return a()}}})).run()}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(10);t.NoMoreAttemptsError=new Error("No more attempts to retrieve URL."),t.retrieveUrl=r},function(e,t,n){"use strict";function r(e,t){return void 0!==e?e:t}function i(e){if(e.streamUrlRetriever instanceof s.BaseStreamUrlRetriever){if(void 0!==e.duration&&("number"!=typeof e.duration||e.duration<0))throw new Error("duration invalid.");if(void 0!==e.getURLOpts&&"object"!=typeof e.getURLOpts)throw new Error("getURLOpts invalid.");if(void 0!==e.preloadingEnabled&&"boolean"!=typeof e.preloadingEnabled)throw new Error("preloadingEnabled invalid.");if(void 0!==e.fadeOnPauseAndPlay&&"boolean"!=typeof e.fadeOnPauseAndPlay)throw new Error("fadeOnPauseAndPlay invalid.");if(void 0!==e.fadeOnSeek&&"boolean"!=typeof e.fadeOnSeek)throw new Error("fadeOnSeek invalid.");if(void 0!==e.mediaSessionEnabled&&"boolean"!=typeof e.mediaSessionEnabled)throw new Error("mediaSessionEnabled invalid.");if(void 0!==e.pausedMaxBufferLength&&("number"!=typeof e.pausedMaxBufferLength||e.pausedMaxBufferLength<0))throw new Error("pausedMaxBufferLength invalid.");if(void 0!==e.playingMaxBufferLength&&("number"!=typeof e.playingMaxBufferLength||e.playingMaxBufferLength<0))throw new Error("playingMaxBufferLength invalid.");if(void 0!==e.logger&&"function"!=typeof e.logger&&"object"!=typeof e.logger)throw new Error("logger invalid.");if(void 0!==e.audioReporter&&"function"!=typeof e.audioReporter)throw new Error("audioReporter invalid.");if(void 0!==e.audioCheckpointInterval&&("number"!=typeof e.audioCheckpointInterval||e.audioCheckpointInterval<0))throw new Error("audioCheckpointInterval invalid.");if(void 0!==e.audioPerformanceReporter&&"function"!=typeof e.audioPerformanceReporter)throw new Error("audioPerformanceReporter invalid.");if(void 0!==e.errorReporter&&"function"!=typeof e.errorReporter)throw new Error("errorReporter invalid.");if(void 0!==e.urlProviderRetryDelayCalculator&&"function"!=typeof e.urlProviderRetryDelayCalculator)throw new Error("urlProviderRetryDelayCalculator invalid.");return{controllers:e.controllers,streamUrlRetriever:e.streamUrlRetriever,getURLOpts:r(e.getURLOpts,{}),preloadingEnabled:r(e.preloadingEnabled,!1),pausedMaxBufferLength:r(e.pausedMaxBufferLength,2e3),playingMaxBufferLength:r(e.playingMaxBufferLength,9e4),fadeOnPauseAndPlay:r(e.fadeOnPauseAndPlay,!1),fadeOnSeek:r(e.fadeOnSeek,!1),audioCheckpointInterval:r(e.audioCheckpointInterval,3e4),urlProviderRetryDelayCalculator:r(e.urlProviderRetryDelayCalculator,o.helpers.retry.buildExponentialDelayCalculator()),streamUrlsExpire:r(e.streamUrlsExpire,!0),fetchEnabled:r(e.fetchEnabled,!0),duration:e.duration,audioReporter:e.audioReporter,audioPerformanceReporter:e.audioPerformanceReporter,errorReporter:e.errorReporter,seekStrategy:e.seekStrategy}}throw new Error("StreamUrlRetriever invalid.")}Object.defineProperty(t,"__esModule",{value:!0});var s=n(16),o=n(0);t.validatePlayerDependencies=i},function(e,t,n){"use strict";function r(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.generateLogId=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){function e(e){var t=this;this._player=e,this._onConnectionRequired=new r.eventDispatcher.EventDispatcher,this._onConnectionRecovered=new r.eventDispatcher.EventDispatcher,this._connectionRequired=!1,this._connectionLossTimer=null,this.onConnectionRequired=this._onConnectionRequired.getHandle(),this.onConnectionRecovered=this._onConnectionRecovered.getHandle();var n=function(){return t._calculateIfConnectionRequired()};window.addEventListener("online",n),window.addEventListener("offline",n),this._calculateIfConnectionRequired(),e.onChange.subscribe(function(r){var i=r.loading;r.dead&&null!==t._connectionLossTimer&&(window.clearTimeout(t._connectionLossTimer),window.removeEventListener("online",n),window.removeEventListener("offline",n)),e.isDead()||void 0===i||t._calculateIfConnectionRequired()})}return e.prototype.isConnectionRequired=function(){return this._connectionRequired},e.prototype._calculateIfConnectionRequired=function(){var e=this;this._player.isLoading()&&"navigator"in window&&!window.navigator.onLine?null===this._connectionLossTimer&&(this._connectionLossTimer=window.setTimeout(function(){e._connectionLossTimer=null,e._connectionRequired=!0,e._onConnectionRequired.dispatch(void 0)},1500)):this._connectionRequired?(this._connectionRequired=!1,this._onConnectionRecovered.dispatch(void 0)):null!==this._connectionLossTimer&&(window.clearTimeout(this._connectionLossTimer),this._connectionLossTimer=null)},e}();t.ConnectionRequiredHelper=i},function(e,t,n){"use strict";function r(e){switch(e){case i.SQ:return i.SQ;case i.HQ:return i.HQ}return null}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.SQ="sq",e.HQ="hq"}(i=t.Quality||(t.Quality={})),t.resolveQuality=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(26),s=n(27);!function(e){e.NotSupportedError=r.NotSupportedError,e.NoStreamsError=i.NoStreamsError,e.FailedRetrievingUrlError=s.FailedRetrievingUrlError}(t.errors||(t.errors={}))}])})},function(e,t,n){!function(t,r){e.exports=r(n(0))}(window,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t,n,r){void 0===n&&(n={}),void 0===r&&(r=2e4);var i=e.call(this)||this;if(i._responseStarted=!1,r<0)throw new Error("Invaid timeout.");if(i._timeoutTimer=window.setTimeout(function(){return i._onManualTimeout()},r),i._xhr=new XMLHttpRequest,i._xhr.addEventListener("load",function(){return i._onLoad()}),i._xhr.addEventListener("abort",function(){return i._onAbort()}),i._xhr.addEventListener("error",function(e){return i._onError(e)}),i._xhr.addEventListener("timeout",function(){return i._onTimeout()}),i._xhr.addEventListener("loadend",function(){return i._onLoadEnd()}),i._xhr.addEventListener("progress",function(){return i._onProgress()}),i._xhr.open("GET",t,!0),i._xhr.timeout=r,!i._getResponseType().some(function(e){return i._xhr.responseType=e,i._xhr.responseType===e}))throw new Error("Failed setting response type.");return Object.keys(n).forEach(function(e){return i._xhr.setRequestHeader(e,n[e])}),i._signalRequestStart(),i._xhr.send(),i}return r(t,e),t.prototype._abort=function(){this._xhr.abort()},t.prototype._onAbort=function(){this.hasCompleted()||this._onTimeout()},t.prototype._onManualTimeout=function(){this.hasCompleted()||(this._signalTimeout(),this._xhr.abort())},t.prototype._onTimeout=function(){this.hasCompleted()||this._signalTimeout()},t.prototype._onLoad=function(){if(!this.hasCompleted()){if(!this._isChunkedResponse()){var e=this._xhr;this._provideStatusAndHeaders({statusCode:e.status,headers:this._parseHeaders(e.getAllResponseHeaders()||"")},e.response)}this.hasCompleted()||this._finalize()}},t.prototype._onError=function(e){switch(this.getState()){case i.loader.ResponseState.COMPLETED:case i.loader.ResponseState.ERRORED:break;case i.loader.ResponseState.PENDING:if(0===this._xhr.status){this._provideStatusAndHeaders({statusCode:0,headers:{}},this._getEmptyData()),this._finalize();break};default:this._finalize(new i.loaderErrors.LoaderError("An error occurred.",e))}},t.prototype._onLoadEnd=function(){window.clearTimeout(this._timeoutTimer),this.hasCompleted()||this._finalize(new i.loaderErrors.LoaderError("Unexpected error occurred."))},t.prototype._onProgress=function(){if(!this.hasCompleted()){var e=this._xhr;this._isChunkedResponse()&&(this._responseStarted?this._providePart(e.response):(this._responseStarted=!0,this._provideStatusAndHeaders({statusCode:e.status,headers:this._parseHeaders(e.getAllResponseHeaders()||"")},e.response)))}},t.prototype._isChunkedResponse=function(){return"moz-chunked-arraybuffer"===this._xhr.responseType},t.prototype._parseHeaders=function(e){var t={};if(!e)return t;for(var n=e.split("\r\n"),r=0,i=n.length;r<i;r++){var s=n[r],o=s.indexOf(": ");if(o>0){var u=s.substring(0,o).trim(),a=s.substring(o+2);t[u]=a}}return t},t}(i.loader.LoaderRequest);t.LoaderRequest=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(3);t.stringLoader=r.stringLoader;var i=n(5);t.arrayBufferLoader=i.arrayBufferLoader,t.ArrayBufferLoader=i.ArrayBufferLoader},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.stringLoader={request:function(e){var t=e.url,n=e.headers,i=e.timeout;return new r.StringLoaderRequest(t,n,i)}}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=["text"],o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._getResponseType=function(){return s},t.prototype._getEmptyData=function(){return""},t.prototype._reduceParts=function(e){return e.join("")},t}(i.LoaderRequest);t.StringLoaderRequest=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=n(7),s=function(){function e(e){var t=(void 0===e?{}:e).fetchEnabled,n=void 0===t||t;this._fetchEnabled=n}return e.prototype.request=function(e){var t=e.url,n=e.headers,s=e.timeout;return this._fetchEnabled&&i.ArrayBufferLoaderRequest.isSupported()?new i.ArrayBufferLoaderRequest(t,n,s):new r.ArrayBufferLoaderRequest(t,n,s)},e}();t.ArrayBufferLoader=s,t.arrayBufferLoader=new s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),o=i.helpers.browser.getFirefoxVersion(),u=o&&o.major>=60?["moz-chunked-arraybuffer","arraybuffer"]:["arraybuffer"],a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._getResponseType=function(){return u},t.prototype._getEmptyData=function(){return new ArrayBuffer(0)},t.prototype._reduceParts=function(e){return i.helpers.arrayBuffer.combine(e.map(function(e){return new Uint8Array(e)})).buffer},t}(s.LoaderRequest);t.ArrayBufferLoaderRequest=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=i.helpers.browser.isFirefox(),o=function(e){function t(n,r,s){void 0===r&&(r={}),void 0===s&&(s=2e4);var o=e.call(this)||this;if(!t.isSupported())throw new Error("Not supported.");var u=o._abortController=new AbortController,a=new Request(n,{headers:r,redirect:"follow",signal:u.signal});o._signalRequestStart();var f=o._abortTimer=window.setTimeout(function(){o._signalTimeout(),o._abort()},s),l=fetch(a).then(function(e){var t={};if(e.headers.forEach(function(e,n){return t[e]=n}),o._provideStatusAndHeaders({statusCode:e.status,headers:t},new ArrayBuffer(0)),e.body){var n=e.body.getReader(),r=function(){return n.read().then(function(e){var t=e.done,n=e.value;if(!t&&!o.hasCompleted())return o._providePart(n.buffer),r()})};return r()}return e.arrayBuffer().then(function(e){e&&o._providePart(e)})}).then(function(){o.hasCompleted()||o._finalize()}).catch(function(e){if(!o.hasCompleted()){var t=e instanceof i.loaderErrors.LoaderError?e:new i.loaderErrors.LoaderError(e);o._finalize(t)}});return i.helpers.always(l,function(){return window.clearTimeout(f)}),o}return r(t,e),t.isSupported=function(){return"fetch"in window&&"Request"in window&&"AbortController"in window&&!s},t.prototype._abort=function(){window.clearTimeout(this._abortTimer),this._abortController.abort()},t.prototype._reduceParts=function(e){return i.helpers.arrayBuffer.combine(e.map(function(e){return new Uint8Array(e)})).buffer},t}(i.loader.LoaderRequest);t.ArrayBufferLoaderRequest=o}])})},function(e,t,n){!function(t,r){e.exports=r(n(4),n(0),n(1))}(window,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="23.7.2",t.buildNumber=928;var r=n(3);t.HTML5PlayerController=r.HTML5PlayerController;var i=n(5);t.MediaElementManager=i.MediaElementManager;var s=n(0);t.HTML5Player=s.HTML5Player},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),s=n(1),o=n(0),u=function(e){function t(t){var n=e.call(this)||this;return n._mediaElementManager=t,n.name="MaestroHTML5",n}return r(t,e),t.errorQualifiesAbort=function(e){return!(e instanceof o.errors.WebAudioInitializeError)},t.prototype.isRenditionSupported=function(e,t){return("http"===e.scProtocol||-1!==["hls","encrypted-hls"].indexOf(e.scProtocol)&&!t.streamUrlExpires)&&o.HTML5Player.isFormatSupported(e.maestroFormat)},t.prototype.buildPlayer=function(e){var t=e.urlAndRendition,n=t.rendition,r=t.timeRetrieved;if(e.streamUrlExpires&&(["hls","encrypted-hls"].indexOf(n.scProtocol)>=0||void 0===r))throw i.notSupportedError;return new a(e,this._mediaElementManager)},t}(i.BaseController);t.HTML5PlayerController=u;var a=function(){function e(e,t){var n=this;this._config=e,this._mediaElementManager=t;var r=e.logger,i=e.playerId,s=e.urlAndRendition,a=e.streamUrlExpires,f=e.reportError,l=e.fadeOnPauseAndPlay,c=e.fadeOnSeek,h=e.releaseControl,p=e.seekStrategy;this._logger=r;var d=s.rendition,v=s.timeRetrieved;if(a){if(void 0===v)throw new Error("Expecting timeUrlRetrieved to be set.");this._expirationConfig={urlExpires:!0,timeUrlRetrieved:v}}else this._expirationConfig={urlExpires:!1};var m=this._player=new o.HTML5Player({url:s.url,format:d.maestroFormat},{name:i,mediaElement:null,fadeSupportEnabled:l||c,defaultFadeDuration:l?void 0:0,defaultSeekFadeInDuration:c?void 0:0,defaultSeekFadeOutDuration:c?void 0:0,webAudioContext:this._mediaElementManager.getWebAudioContext(),logger:this._logger,seekStrategy:p,registerListeners:function(e){var t=e.onError,r=e.onChange;t.subscribe(function(e){e instanceof o.errors.NetworkError&&n._hasExpired()?(n._logger.info("Releasing control as a network error occurred, and the URL has expired."),h({retry:!0})):(f(e.getCode()),u.errorQualifiesAbort(e)&&h({retry:!1}))}),r.subscribe(function(e){var t=e.dead,r=e.playing,i=e.actuallyPlaying,s=e.seeking,o=e.duration;return t?void h({retry:!1}):o===1/0?(n._logger.info("Releasing control because the duration was Infinity."),void h({retry:!1})):void (n._expirationConfig.urlExpires&&(r||i||s)&&n._checkIfUrlWillExpireBeforeEnd())})}});this._mediaElementManager.registerPlayer(m,function(){return h({retry:!1})})}return e.prototype.getPlayer=function(){return this._player},e.prototype.getUrl=function(){return this._config.urlAndRendition.url},e.prototype._checkIfUrlWillExpireBeforeEnd=function(){var e=this._player.getDuration(),t=this._getExpireTime();if(null!==e&&null!==t){var n=e-this._player.getPosition();s.helpers.time.now()+n>t&&(this._logger.info("Releasing control because stream URL would expire before reaching end."),this._config.releaseControl({retry:!0}))}},e.prototype._getExpireTime=function(){if(!this._expirationConfig.urlExpires)return null;var e=this._player.getDuration();return null===e?null:this._expirationConfig.timeUrlRetrieved+e+105e3},e.prototype._hasExpired=function(){var e=this._getExpireTime();return null!==e&&e<=s.helpers.time.now()},e}();t.ControlledPlayer=a},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),s=new i.WebAudioContext,o=function(){function e(e,t){this._playerListeners=new r.helpers.SCWeakMap,this._playerWithElement=null,this._canActivate=!0,this._provideMediaElementErrorRunCheck={},this._element=document.createElement(e),this._logger=r.logger.prefixLogger(t,"MediaElementManager")}return e.prototype.activate=function(){this._canActivate&&(this._logger.debug("Activating media element."),this._element.load()),this._logger.debug("Activating web audio context."),s.activate()},e.prototype.registerPlayer=function(e,t){var n=this;if(this._playerListeners.has(e))throw new Error("Player already registered.");var r=function(){if(e.getMediaElement()!==n._element){n._playerWithElement&&(n._playerWithElement.getMediaElement()===n._element&&(n._logger.debug("Revoking media element from previous player."),n._playerWithElement.isPlaying()&&n._logger.warn("Revoking media element from a playing player."),n._playerWithElement.revokeMediaElement()),n._playerWithElement=null),n._canActivate=!1;var r=n._provideMediaElementErrorRunCheck={};n._logger.debug("Providing media element to new player."),e.provideMediaElement(n._element).catch(function(i){e.isDead()||n._provideMediaElementErrorRunCheck!==r||(n._logger.error("Error occurred providing media element to new player.",i),t(i))}),n._playerWithElement=e}},i=e.onChange.subscribe(function(e){e.playing&&r()});this._playerListeners.set(e,i),e.getMediaElement()&&e.revokeMediaElement(),e.isPlaying()&&r()},e.prototype.unregisterPlayer=function(e){var t=this._playerListeners.get(e);t&&(t.remove(),this._playerWithElement===e&&(this._playerWithElement=null,e.getMediaElement()===this._element&&e.revokeMediaElement()),this._playerListeners.delete(e))},e.prototype.getWebAudioContext=function(){return s},e}();t.MediaElementManager=o}])})},function(e,t,n){!function(t,r){e.exports=r(n(0))}(window,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t,n){return void 0===t&&(t="An error occurred when activating web audio."),e.call(this,t,n)||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.WEB_AUDIO_ACTIVATION_ERROR"},t}(i.errors.PlayerFatalError);t.WebAudioActivationError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t,n){return void 0===t&&(t="An error occurred when initializing web audio."),e.call(this,t,n)||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.WEB_AUDIO_INITIALIZE_ERROR"},t}(i.errors.PlayerError);t.WebAudioInitializeError=s},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t={});var n=e.mimeType||t.mimeType;if(!n)return null;var r=e.audioCodec||t.audioCodec,s=e.videoCodec||t.videoCodec,o=i.helpers.compact([r,s]);return n+(o.length>0?'; codecs="'+o.map(function(e){return e.id}).join(",")+'"':"")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.buildMimeTypeFromFormat=r},function(e,t,n){"use strict";function r(){return M||(M=new y.WebAudioContext)}function i(e){e.load()}function s(e){try{return!!document.createElement("audio").canPlayType(e)}catch(t){return!1}}var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),a=n(5),f=n(13),l=n(6),c=n(7),h=n(8),p=n(14),d=n(9),v=n(2),m=n(10),g=n(1),y=n(11),b=n(3),w=u.helpers.deferred.buildDeferred,E=u.helpers.url.getExtension,S=u.helpers.time.now,x=u.helpers.Promise,T=u.helpers.browser,N=u.logger.prefixLogger,C=u.errors.NotSupportedError,k=u.errors.PlayerFatalError,L=new Error("Media element was revoked."),A=[],O=new u.helpers.SCWeakMap,M=null,_=u.helpers.retry.buildExponentialDelayCalculator({jitter:0,timeBase:50}),D=function(e){function t(t){var n=e.call(this,t)||this;n._duration=null,n._stallDetected=!1,n._fadeManagers=null,n._shouldCoverGlitch=!0,n._initialized=!1,n._muted=!1,n._volume=1,n._deferredProvideMediaElementCallback=null,n._playInProgress={inProgress:!1},n._lastStallCheckPos=null,n._stallCheckTimerId=null,n._timeWhenPositionChanged=0,n._endedOverride=!1,n._pauseEventTimer=null,n._positionWhenMediaElementRevoked=0,n._playingWhenMediaElementRevoked=!1,n._provideMediaElementDeferred=null,n._mediaElementAndState=null,n._listeners=[],n._currentSeek=null,n._playDetectionPosition=0,n._playDetectionTimer=null,n._playDetectionTimerNumAttempts=0,n._fadeRate=null,n._seekFadeRate=null,n._lastSeek=null,n._webAudioOrchestration=null,n._fadeEndedHandle=null,n._onSeekFadeOutCompleted=null,n._fadeRateAfterSeek=1/0,n._mediaElPlayShouldBeAborted=new u.helpers.SCWeakMap,n._mediaElPaused=new u.helpers.SCWeakMap,n._mediaElPlayTracker=null,n._logger=N(n._logger,"HTML5PlayerBase"),n._playerDependencies=t,n._webAudioContext=t.webAudioContext||r(),n._addCachedCurrentTimeListeners();var i=n._webAudioOrchestration=t.fadeSupportEnabled?n._initWebAudio():null;i&&(n._logger.debug("Fading supported."),n._fadeManagers={pausePlay:new f.FadeManager(i.context,i.gainNodes.pausePlay),seek:new f.FadeManager(i.context,i.gainNodes.seek)}),n._handleDurationUpdates();var s=void 0!==t.mediaElement?t.mediaElement:n._createDefaultMediaElement();s&&n.provideMediaElement(s).catch(function(e){if(e===L)return void n._logger.debug("Initial provideMediaElement() call was aborted.");n._triggerError(new p.InitializeError(e))});var o=n._fadeManagers;return o&&n.onChange.subscribe(function(e){var t=e.stalled,r=e.seek;if(e.ended&&o.seek.getDirection()===f.FadeDirection.UP&&o.seek.isFading())n._logger.debug("Completing fade in after seek early because reached end."),o.seek.performFade(1/0),n._notifyFadingForSeek(!1);else{var i=n.getSeekState(),s=i&&"COMPLETED"===i.state,u=r&&"COMPLETED"===r.state;(!1===t&&s||u&&!n.isStalled())&&o.seek.getDirection()===f.FadeDirection.DOWN&&(n._logger.debug("Fading in after seek.",n._fadeRateAfterSeek),o.seek.performFade(n._fadeRateAfterSeek,function(){return n._notifyFadingForSeek(!1)}))}}),n._logger.info("Checking if the player can play the provided descriptor."),n._canPlayTimer=window.setTimeout(function(){n._canPlay().then(function(e){if(!n.isDead())return e instanceof u.errors.NotSupportedError?(n._logger.info("Player not supported.",e),void n._triggerError(e)):e?(n._logger.info("Player supported."),void n._initialize()):(n._logger.info("Player not supported."),void n._triggerError(new C))}).catch(function(e){n._logger.error("Unexpected error during can play check.",e),n._triggerError(new k("An unexpected error occured during initialization.",e))})},0),n}return o(t,e),t.isFormatSupported=function(e){var t=b.buildMimeTypeFromFormat(e);return!!t&&s(t)},t.prototype.getMediaElement=function(){return this._mediaElementAndState&&this._mediaElementAndState.element},t.prototype.provideMediaElement=function(e){var t=this;if(this._ensureNotDead(),this._mediaElementAndState)throw new Error("Already have a media element.");if(A.indexOf(e)>=0)throw new Error("The same media element is currently being used in another player.");if(!this._webAudioOrchestration&&O.has(e))throw new Error("The same media element has been used in another player with fading enabled.");A.push(e);var n=this._provideMediaElementDeferred=w();return this._update(function(){t._logger.debug("provideMediaElement() called.",e),t._initMediaElementLocal(e,!1);var r=t._mediaElementAndState={element:e,state:"INITIALIZING"},i=function(){t._logger.debug("Initializing media element."),t._initMediaElement(e,!0),t._addPausedHandlers(e),t._attachListeners();var i=t._listenToOnce("error",function(){t._provideMediaElementDeferred=null;var r=e.error,i=r?r.code:"unknown";t._logger.error("Error whilst initializing media element.",i),t.revokeMediaElement(),n.reject(new Error("Error when initializing media element. Error: "+i))},{earlyAttach:!0}),s=function(){t._logger.debug("Putting media element in the state that is expected..."),o()},o=function(){null===t._getQueuedSeekPosition()&&t._positionWhenMediaElementRevoked>0?(t._logger.debug("Seeking to expected position..."),t._performSeek(t._positionWhenMediaElementRevoked,function(e){if(void 0!==e)return t._provideMediaElementDeferred=null,t._logger.error("An error occurred when trying to seek to the expected position."),t.revokeMediaElement(),void n.reject(new Error("An error occurred when trying to restore the position."));t._logger.debug("Seeked to expected position."),u()})):u()},u=function(){t.isPlaying()===t.isActuallyPlaying()&&t._playingWhenMediaElementRevoked?(t._logger.debug("Calling play to match previous state..."),t._mediaElementPlay().catch(function(e){t._provideMediaElementDeferred=null,t._logger.error("An error occurred when trying to play.",e),r===t._mediaElementAndState&&t.revokeMediaElement(),n.reject(new Error("Browser refused play() request on media element."))}),t._listenToOnce("play",function(){t._logger.debug("Play succeeded."),a()},{earlyAttach:!0})):a()},a=function(){if(t._mediaElementAndState!==r)return void t._triggerError(new k("Media element switched unexpectedly."));t._provideMediaElementDeferred=null,i.remove(),n.resolve(void 0),t._mediaElementAndState.state="STABLE",t._logger.debug("Finished putting element in expected state."),t._shouldCoverGlitch=!0,null!==t._duration&&t._update(function(){t.isReady()||t._signalReady(),t._handleDeferredPauseAndSeek()})};t._listenToOnce("emptied",function(){t._logger.debug("Got emptied event from media element."),s()},{earlyAttach:!0})};t._initialized?i():t._deferredProvideMediaElementCallback=i}),n.promise},t.prototype.revokeMediaElement=function(){var e=this;if(!this._mediaElementAndState)throw new Error("There is no media element to revoke.");this._deferredProvideMediaElementCallback=null,this._provideMediaElementDeferred&&(this._provideMediaElementDeferred.reject(L),this._provideMediaElementDeferred=null),this._logger.debug("revokeMediaElement() called."),this._detachListeners();var t=this._mediaElementAndState.element,n=A.indexOf(t);n>=0&&A.splice(n,1),this._onSeekFadeOutCompleted=null,this.isDead()||(this._positionWhenMediaElementRevoked=this.getPosition(),this._playingWhenMediaElementRevoked=this.isPlaying()),this._mediaElementAndState=null,this._initMediaElement(t,!1),this._removePausedHandlers(t),this._completeCurrentFade(),this._completeSeekFadeOutAndIn(),this._update(function(){e.isDead()||(!e.isPlaying()&&e.isActuallyPlaying()&&e._notifyPlaying(!1),e._handleStalled())})},t.prototype.getBufferedTimeRanges=function(){return this._mediaElementAndState&&"USABLE"===this._mediaElementAndState.state?a.buildTimeRanges(this._mediaElementAndState.element.buffered):[]},t.prototype.getMaxBufferLength=function(){return null},t.prototype._hasInitialized=function(){return this._initialized},t.prototype._inferFormat=function(e){switch(E(e)){case"mp3":return{mimeType:"audio/mpeg"};case"opus":return{mimeType:"audio/ogg",audioCodec:{id:"opus"}};case"mp4":return{mimeType:"video/mp4"};case"m4a":return{mimeType:"audio/mp4"};case"m3u8":return{mimeType:"application/x-mpegURL"};default:return{}}},t.prototype._canPlayType=function(e){return s(e)},t.prototype._initialize=function(){var e=this;this._initialized=!0,this._listenTo("error",function(){if("INITIALIZING"===e._mediaElementAndState.state)return void e._logger.debug("An error occurred, but the media element is initializing, so ignoring...");var t=e._mediaElementAndState.element.error;switch(t&&t.code){case 2:e._triggerError(new l.NetworkError);break;case 3:e._triggerError(new c.DecodeError);break;default:e._logger.error("Unexpected error from media element.",t&&t.code,t&&t.message),e._triggerError(new h.MediaElementError(t))}},{earlyAttach:!0}),this._listenTo("play",function(){e._logger.debug("Media element play event."),e._updateCachedCurrentTime(),e.isPlaying()||e.isActuallyPlaying()||!e._mediaElementAndState||e._isMediaElementPaused(e._mediaElementAndState.element)||(e._logger.debug("Calling play() because something external called play() on media element."),e.play())}),this._listenTo("playing",function(){e._logger.debug("Media element playing event."),e._updateCachedCurrentTime(),e._mediaElementAndState&&!e._isMediaElementPaused(e._mediaElementAndState.element)?e._handlePlayingEvent():e._logger.debug("Ignoring playing event because media element is reporting it is paused.")}),this._listenTo("timeupdate",function(){e._updateCachedCurrentTime(),e._determineIfPlaying()}),this._listenTo("pause",function(){e._logger.debug("Media element pause event."),e._updateCachedCurrentTime(),e._mediaElementAndState&&e._isMediaElementPaused(e._mediaElementAndState.element)?e._handlePauseEvent():e._logger.debug("Ignoring pause event because media element is reporting it is not paused.")}),this._listenTo("seeking",function(){if(null===e._getQueuedSeekPosition()&&(e._logger.debug("Media element seeking event."),e._mediaElementAndState&&"USABLE"===e._mediaElementAndState.state)){var t=1e3*e._mediaElementAndState.element.currentTime,n=e._lastSeek;if(n&&(null===n.unstallTime||n.unstallTime+500>S())&&Math.abs(n.position-t)<=500)return void e._logger.debug("Ignoring seeking event because we seeked recently to somewhere near.");var r=e._mediaElementAndState.cachedMediaElTime.elTime;e._logger.debug("Reverting seek on media element to "+r+"."),e._mediaElementAndState.element.currentTime=r/1e3,e._updateCachedCurrentTime(),e._lastSeek={unstallTime:S(),position:r},e.seek(t,{fadeOutDuration:0}).catch(function(n){e._logger.warn("Error when trying to seek to "+t+" whilst handling seeking event",n)})}}),this._listenTo("ended",function(){e._logger.debug("Media element ended event."),e._mediaElementAndState&&e._mediaElementAndState.element.ended?e._handleEndedEvent():e._logger.debug("Ignoring ended event because media element is reporting it is not ended.")}),this._listenTo("stalled",function(){e._logger.debug("Media element stalled event."),e._checkIfStalled()}),this._listenTo("volumechange",function(){e._mediaElementAndState&&e._notifyVolumeChangeFromMediaEl(e._mediaElementAndState.element)}),this._stallCheckTimerId=window.setInterval(function(){return e._checkIfStalled()},400),this._deferredProvideMediaElementCallback&&this._deferredProvideMediaElementCallback()},t.prototype._handleDurationChange=function(){var e=this,t=this._duration;null!==t&&this._update(function(){e._provideDuration(t),e._mediaElementAndState&&"STABLE"===e._mediaElementAndState.state&&(e.isReady()||e._signalReady(),e._handleDeferredPauseAndSeek())})},t.prototype._createDefaultMediaElement=function(){return document.createElement(this._playerDependencies.mediaElementType||"audio")},t.prototype._handlePauseEvent=function(){var e=this;if(!this._mediaElementAndState)throw new Error("Media element should exist.");var t=this._mediaElementAndState.element;this.isActuallyPlaying()&&this._update(function(){t.ended||(e._notifyNotStalled(),e._completeCurrentFade(),e._completeSeekFadeOutAndIn(),e._notifyPlaying(!1))})},t.prototype._handlePlayingEvent=function(){var e=this,t=this._duration;if(null===t)throw new Error("Expecting duration to exist.");var n=this._getTruePosition();return n>=t?void this._logger.warn("Got a media element playing event and the positon was >= the duration.",n,t):this.isEnded()||this._shouldBeEnded()?void this._logger.warn("Got a media element playing event when the player is/should be ended."):void this._update(function(){e._notifyNotStalled(),e._determineIfPlaying(),e.isActuallyPlaying()||(e._playDetectionTimerNumAttempts=0,e._playDetectionTimer||(e._playDetectionTimer=window.setInterval(function(){return e._determineIfPlaying()},10)))})},t.prototype._handleEndedEvent=function(){if(null!==this._getQueuedSeekPosition())return void this._logger.warn("Got a media element ended event but ignoring because a seek is in progress.");this._update()},t.prototype._shouldBeEnded=function(){return this._endedOverride||this._mediaElementReportingEnded()},t.prototype._mediaElementReportingEnded=function(){return!!(this._mediaElementAndState&&this._mediaElementAndState.element.ended&&this._mediaElementAndState.element.paused)},t.prototype._handleDurationUpdates=function(){var e=this;this._listenToOnce("loadedmetadata",function(){return e._updateDurationFromMediaElement()},{reattach:!0,earlyAttach:!0}),this._listenTo("durationchange",function(){return e._updateDurationFromMediaElement()})},t.prototype._updateDurationFromMediaElement=function(){var e=this._mediaElementAndState;e&&(this._duration=1e3*e.element.duration,this._handleDurationChange())},t.prototype._handlePlayPauseChange=function(e,t){var n=this,r=t.fadeRate;this._fadeRate=r||null;var i=function(){n._mediaElementAndState&&"USABLE"===n._mediaElementAndState.state&&n._callMediaElementPause(n._mediaElementAndState.element),n._notifyFading(!1),n._completeSeekFadeOutAndIn(),n._notifyPlaying(!1)};if(this.isEnded())e?this._notifyPlaying(!0):i();else if(this._mediaElementAndState&&"USABLE"===this._mediaElementAndState.state){var s=this._playInProgress.inProgress||!this._isMediaElementPaused(this._mediaElementAndState.element);e&&!s?(this._fadeManagers&&this._fadeManagers.pausePlay.performFade(-1/0),this._playDetectionPosition=this._getTruePosition(),this._play(function(e){return n._notifyPlayRejection(e)})):!e&&s?this._update(function(){n._fadeManagers&&n._fadeManagers.pausePlay.getDirection()===f.FadeDirection.UP?(n._notifyFading(!0),n._fadeManagers.pausePlay.performFade(r||-1/0,function(){return i()})):i()}):e&&s?this._update(function(){n._fadeManagers&&n._fadeManagers.pausePlay.getDirection()===f.FadeDirection.DOWN&&n._fadeManagers.pausePlay.performFade(r||1/0,function(){return n._notifyFading(!1)}),n._notifyPlaying(!0)}):this._notifyPlaying(e)}},t.prototype._handleVolumeChange=function(e,t){if(this._mediaElementAndState){var n=this._mediaElementAndState.element;n.muted=t,n.volume=e,this._notifyVolumeChangeFromMediaEl(n)}else this._muted=t,this._volume=e,this._notifyVolumeChange(e,t)},t.prototype._handleSeekChange=function(e,t){var n=this,r=t.fadeRate;this._seekFadeRate=r,this._fadeRateAfterSeek=r.afterSeek||1/0;var i=this._mediaElementAndState;if(i&&"USABLE"===i.state){this._onSeekFadeOutCompleted=function(){n._onSeekFadeOutCompleted=null,o&&o.remove(),s&&s.seek.getDirection()===f.FadeDirection.DOWN&&(n._logger.debug("Fade out for seek completed.",e,r),s.seek.performFade(-1/0),n._notifyFadingForSeek(!1));var t=n._mediaElementReportingEnded();n._endedOverride=!1;var i=n._lastSeek={position:e,unstallTime:null};n._performSeek(e,function(t){if(void 0!==t)return void n._triggerError(new u.errors.PlayerFatalError("An error occurred when trying to seek.",t));e===n._duration&&(n._endedOverride=!0),n._update(function(){if(n.isActuallyPlaying()&&n._assumeStalled(),n._updateCachedCurrentTime(!0),n._signalSeekComplete(),n.isStalled())var e=n.onChange.subscribe(function(t){var n=t.dead,r=t.stalled;n?e.remove():r||(i.unstallTime=S(),e.remove())});else i.unstallTime=S();s&&(!n.isActuallyPlaying()||n._fadeRateAfterSeek===1/0||n.isEnded()?s.seek.performFade(1/0):n._notifyFadingForSeek(!0))})}),t&&n.isPlaying()&&n._play(function(e){n._triggerError(new u.errors.PlayerFatalError("Error when trying to play after seek from end.",e))})},this._fadeEndedHandle&&(this._fadeEndedHandle.remove(),this._fadeEndedHandle=null);var s=this._fadeManagers,o=null,a=function(){n._onSeekFadeOutCompleted&&n._onSeekFadeOutCompleted()};this._update(function(){s&&(r.beforeSeek||r.afterSeek)?(n._logger.debug("Fading out ready for seek.",e,r),(s.seek.getDirection()===f.FadeDirection.UP||s.seek.isFading())&&n.isActuallyPlaying()&&r.beforeSeek&&!n._mediaElementReportingEnded()?(n._notifyFadingForSeek(!0),o=n._fadeEndedHandle=n._listenToOnce("ended",a),s.seek.performFade(r.beforeSeek||-1/0,a)):(s.seek.performFade(-1/0),a())):a()})}},t.prototype._performSeek=function(e,t){var n=this,r=this._mediaElementAndState;if(!r)throw new Error("Media element does not exist.");var i=this._currentSeek;i&&(this._currentSeek=null,i.abort());var s=r.element,o=0,u=e,a=function(){var r=[],i=function(){n._currentSeek&&(n._currentSeek.abort(),n._currentSeek=null),t()};try{s.currentTime=u/1e3}catch(f){n._logger.warn("Error when trying to seek.",f,e,u)}n._playDetectionPosition=1e3*s.currentTime;var l=window.setTimeout(function(){n._logger.warn("Seek attempt failed. Retrying...",e,u,o),c(),u+=.001,a()},_(++o));r.push(n._listenToOnce("seeked",function(){var t=1e3*s.currentTime;Math.abs(t-u)<=100?i():(n._logger.warn("Seek attempt failed. Incorect position. Retrying...",t,e,u),c(),a())},{earlyAttach:!0}));var c=function(){r.forEach(function(e){return e.remove()}),window.clearTimeout(l)};n._currentSeek={abort:c}};a()},t.prototype._getPosition=function(){var e=null!==this._duration?this._duration:1/0;if(!this._mediaElementAndState||"USABLE"!==this._mediaElementAndState.state)return this._positionWhenMediaElementRevoked;this._determineIfPlaying();var t=Math.min(this._getTruePosition(),e);return this._shouldBeEnded()?e:t},t.prototype._getTruePosition=function(){if(!this._mediaElementAndState||"USABLE"!==this._mediaElementAndState.state)throw new Error("Media element does not exist or is in invalid state.");var e=this._mediaElementAndState.cachedMediaElTime,t=e.elTime,n=e.systemTime;return this.isStalled()||!this.isActuallyPlaying()?t:t+(S()-n)},t.prototype._kill=function(){window.clearTimeout(this._canPlayTimer),this._playDetectionTimer&&window.clearInterval(this._playDetectionTimer),this._mediaElementAndState&&this.revokeMediaElement(),this._stallCheckTimerId&&window.clearInterval(this._stallCheckTimerId),this._webAudioOrchestration&&this._webAudioOrchestration.gainNodes.glitchCoverup.disconnect(this._webAudioOrchestration.context.destination),this._listeners=[]},t.prototype._listenToOnce=function(e,t,n){void 0===n&&(n={});var r=n.reattach,i=n.earlyAttach;void 0===r&&(r=!1),void 0===i&&(i=!1);var s=function(e){o.remove(),t(e)},o=this._listenTo(e,s,{reattach:r,earlyAttach:i});return o},t.prototype._listenTo=function(e,t,n){var r=this;void 0===n&&(n={});var i=n.reattach,s=n.earlyAttach;void 0===i&&(i=!0),void 0===s&&(s=!1);var o=function(n){if(u.attachedToElement)switch(e){case"play":var i=r._mediaElPlayShouldBeAborted.get(u.attachedToElement);if(r._mediaElPlayShouldBeAborted.delete(u.attachedToElement),i){r._logger.warn("Calling pause() on media element because the play request should have been rejected."),u.attachedToElement.pause();break};default:t(n)}else r._logger.warn("Got media element event after handler was removed. Ignoring.",n)},u={attachedToElement:null,handler:o,eventType:e,once:!1,reattach:i,earlyAttach:s};if(this._listeners.push(u),!this._mediaElementAndState||"USABLE"!==this._mediaElementAndState.state&&!s)return{remove:function(){var e=r._listeners.indexOf(u);e>=0&&r._listeners.splice(e,1)}};var a=this._mediaElementAndState.element;return a.addEventListener(e,o,!1),u.attachedToElement=a,{remove:function(){var t=r._listeners.indexOf(u);t>=0&&(r._listeners.splice(t,1),u.attachedToElement=null,a.removeEventListener(e,o,!1))}}},t.prototype._notifyNotStalled=function(){this._stallDetected=!1,this._lastStallCheckPos=null,this._handleStalled()},t.prototype._assumeStalled=function(){this._mediaElementAndState&&"USABLE"===this._mediaElementAndState.state&&(this._lastStallCheckPos=1e3*this._mediaElementAndState.element.currentTime,this._timeWhenPositionChanged=0,this._stallDetected=!0,this._handleStalled())},t.prototype._initMediaElement=function(e,t){this._initMediaElementLocal(e,t)},t.prototype._callMediaElementPlay=function(e){var t=this;T.isEdge()&&this._mediaElPlayShouldBeAborted.set(e,!1);var n=this._mediaElPaused.get(e);n&&(n.paused=!1);var r=this._mediaElPlayTracker={},i=e.play();return n&&i&&i.catch&&i.catch(function(){r===t._mediaElPlayTracker&&(n.paused=!0)}),i},t.prototype._callMediaElementPause=function(e){this._playInProgress.inProgress=!1,T.isEdge()&&this._mediaElPlayShouldBeAborted.has(e)&&this._mediaElPlayShouldBeAborted.set(e,!0);var t=this._mediaElPaused.get(e);t&&(t.paused=!0),e.pause()},t.prototype._isMediaElementPaused=function(e){var t=this._mediaElPaused.get(e);return!t||t.paused},t.prototype._completeCurrentFade=function(){var e=this._fadeManagers;e&&(e.pausePlay.performFade(this.isPlaying()?1/0:-1/0),this.isDead()||this._notifyFading(!1))},t.prototype._completeSeekFadeOutAndIn=function(){var e=this,t=this._fadeManagers;t&&this._update(function(){t.seek.performFade(1/0),e.isDead()||(e._notifyFadingForSeek(!1),e._onSeekFadeOutCompleted&&e._onSeekFadeOutCompleted())})},t.prototype._determineIfPlaying=function(){var e=this;this._playDetectionTimer&&(!this.isPlaying()||++this._playDetectionTimerNumAttempts>=200)&&(window.clearInterval(this._playDetectionTimer),this._playDetectionTimer=null),this._update(function(){e._mediaElementAndState&&"USABLE"===e._mediaElementAndState.state&&(e.isDead()||!e.isReady()||!e.isPlaying()||e.isActuallyPlaying()||e._isMediaElementPaused(e._mediaElementAndState.element)||e._getTruePosition()===e._playDetectionPosition||(e._logger.debug("Detected that playback has started."),e._playDetectionTimer&&(window.clearInterval(e._playDetectionTimer),e._playDetectionTimer=null),e._notifyPlaying(!0),e._fadeManagers&&(e._notifyFading(!0),e._fadeManagers.pausePlay.performFade(e._fadeRate||1/0,function(){return e._notifyFading(!1)}))))})},t.prototype._updateCachedCurrentTime=function(e){void 0===e&&(e=!1),!this._mediaElementAndState||"USABLE"!==this._mediaElementAndState.state||!e&&this._mediaElementAndState.element.seeking||(this._mediaElementAndState.cachedMediaElTime={elTime:1e3*this._mediaElementAndState.element.currentTime,systemTime:S()})},t.prototype._addCachedCurrentTimeListeners=function(){var e=this;this.onChange.subscribe(function(t){var n=t.actuallyPlaying,r=t.stalled;void 0===n&&void 0===r||e._updateCachedCurrentTime()})},t.prototype._initMediaElementLocal=function(e,t){if(e.setAttribute("msAudioCategory","BackgroundCapableMedia"),e.mozAudioChannelType="content",e.removeAttribute("src"),i(e),this._activateWebAudio(),this._pauseEventTimer&&(this._logger.debug("Clearing pause event timer."),window.clearTimeout(this._pauseEventTimer),this._pauseEventTimer=null),this._webAudioOrchestration&&this._webAudioOrchestration.mediaElementSource&&(this._logger.debug("Disconnecting media element from gain node."),this._webAudioOrchestration.mediaElementSource.disconnect(this._webAudioOrchestration.gainNodes.pausePlay),this._webAudioOrchestration.mediaElementSource=void 0),this._currentSeek&&(this._logger.debug("Aborting seek attempt."),this._currentSeek.abort(),this._currentSeek=null),t){this._webAudioOrchestration&&(this._logger.debug("Adding crossorigin attribute to media element because fading enabled."),e.setAttribute("crossorigin","anonymous"));var n=this._getUrlForMediaElement();if(this._logger.debug("Setting media element src.",n),e.src=n,e.volume=this._volume,e.muted=this._muted,this._webAudioOrchestration&&this._fadeManagers){this._logger.debug("Creating media element source node...");var r=O.get(e);if(r?this._logger.debug("Reusing media element source node."):(r=this._webAudioOrchestration.context.createMediaElementSource(e),O.set(e,r)),this._webAudioOrchestration.mediaElementSource=r,r.connect(this._webAudioOrchestration.gainNodes.pausePlay),this._logger.debug("Created media element source node."),this._shouldCoverGlitch){var s=this._webAudioOrchestration.context.currentTime,o=this._webAudioOrchestration.gainNodes.glitchCoverup;o.gain.setValueAtTime(0,s),o.gain.setValueAtTime(1,s+.1),this._shouldCoverGlitch=!1}}}e.playbackRate=1,e.setAttribute("preload","metadata"),this._callMediaElementPause(e),e.load()},t.prototype._addPausedHandlers=function(e){var t={removeListeners:function(){e.removeEventListener("play",n),e.removeEventListener("playing",n),e.removeEventListener("pause",n),e.removeEventListener("ended",n)},paused:!1},n=function(){t.paused=e.paused};n(),e.addEventListener("play",n),e.addEventListener("playing",n),e.addEventListener("pause",n),e.addEventListener("ended",n),this._mediaElPaused.set(e,t)},t.prototype._removePausedHandlers=function(e){var t=this._mediaElPaused.get(e);t&&t.removeListeners(),this._mediaElPaused.delete(e)},t.prototype._checkIfStalled=function(){if(this._mediaElementAndState&&"USABLE"===this._mediaElementAndState.state&&this.isActuallyPlaying()){var e=this._mediaElementAndState.element,t=1e3*e.currentTime,n=u.helpers.time.now();t!==this._lastStallCheckPos&&(this._timeWhenPositionChanged=n),this._stallDetected=e.readyState<=2||this._timeWhenPositionChanged<=n-500,this._lastStallCheckPos=t,this._handleStalled()}},t.prototype._handleStalled=function(){this._shouldBeEnded()&&null===this._getQueuedSeekPosition()?this.isEnded()||(this._logger.debug("Updating because stalled near end."),this._update()):this._notifyStalled(this._stallDetected||!this._mediaElementAndState||"USABLE"!==this._mediaElementAndState.state)},t.prototype._play=function(e){var t=this,n=this._activateWebAudio(),r={inProgress:!0};this._playInProgress=r,this._mediaElementPlay().then(function(){r.inProgress=!1,n.catch(function(e){t._logger.error("Error activating web audio.",e),e===y.WEB_AUDIO_ACTIVATION_TIMEOUT_ERROR?t._triggerError(new d.WebAudioActivationTimeoutError):t._triggerError(new g.WebAudioActivationError)})}).catch(function(n){if(t._playInProgress!==r)return void t._logger.debug("Ignoring play error because paused since.",n);r.inProgress=!1,e&&e(n)})},t.prototype._mediaElementPlay=function(){var e=this;if(!this._mediaElementAndState)throw new Error("Media element doesn't exist.");if(this._mediaElementReportingEnded())return this._logger.debug("Not calling play() because we are at the end. It will be called after a seek."),x.resolve();var t=this._mediaElementAndState.element,n=this._callMediaElementPlay(t);return new x(function(t,r){n?(n=n.then(function(){return t()}),n.catch&&(n=n.catch(function(n){"AbortError"===n.name?(e._logger.debug("Media element play() promise rejected with AbortError."),t()):r(n)}))):t()})},t.prototype._notifyVolumeChangeFromMediaEl=function(e){this._volume=e.volume,this._muted=e.muted,this._notifyVolumeChange(e.volume,e.muted)},t.prototype._initWebAudio=function(){try{var e=this._webAudioContext.getAudioContextWithSuspender();if(!e)return this._logger.debug("WebAudio not supported/enabled."),null;this._logger.debug("WebAudio supported.");var t=e.context,n=e.suspender;n.watchPlayer(this);var r=t.createGain(),i=t.createGain(),s=t.createGain();return r.connect(i),i.connect(s),s.connect(t.destination),{context:t,suspender:n,gainNodes:{glitchCoverup:s,pausePlay:r,seek:i}}}catch(o){return o===y.WEB_AUDIO_NO_OUTPUT_CHANNELS_ERROR?this._triggerError(new m.WebAudioInitializeNoChannelsError(o)):this._triggerError(new v.WebAudioInitializeError(o)),this._logger.error("Failed initializing web audio.",o),null}},t.prototype._activateWebAudio=function(){return this._webAudioOrchestration?this._webAudioContext.activate():x.resolve(void 0)},t.prototype._handleDeferredPauseAndSeek=function(){var e=this;if(!this._mediaElementAndState||"STABLE"!==this._mediaElementAndState.state)throw new Error("Media element must be in the STABLE state.");this._logger.debug("Handling deferred pause and seek...");var t=this._mediaElementAndState.element;this._mediaElementAndState={state:"USABLE",element:t,cachedMediaElTime:{systemTime:S(),elTime:1e3*t.currentTime}},this._attachListeners(),this._update(function(){e._handleStalled();var t=e._getQueuedSeekPosition();if(null!==t){var n=e._seekFadeRate?e._seekFadeRate.afterSeek:void 0;e._handleSeekChange(t,{fadeRate:{afterSeek:n}})}e.isPlaying()!==e.isActuallyPlaying()&&e._handlePlayPauseChange(e.isPlaying(),{fadeRate:e._fadeRate||void 0})})},t.prototype._detachListeners=function(){if(!this._mediaElementAndState)throw new Error("Media element doesn't exist.");var e=this._mediaElementAndState.element;this._listeners.forEach(function(t){t.attachedToElement&&(t.attachedToElement=null,e.removeEventListener(t.eventType,t.handler,!1))}),this._listeners=this._listeners.filter(function(e){return e.reattach})},t.prototype._attachListeners=function(){if(!this._mediaElementAndState)throw new Error("Media element doesn't exist.");this._logger.debug("Attaching listeners...");var e=this._mediaElementAndState,t=e.element,n=e.state;this._listeners.forEach(function(e){e.attachedToElement||!e.reattach||"USABLE"!==n&&!e.earlyAttach||(t.addEventListener(e.eventType,e.handler,!1),e.attachedToElement=t)}),this._logger.debug("Attached listeners.")},t}(u.BasePlayer);t.HTML5PlayerBase=D},function(e,t,n){"use strict";function r(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push({end:1e3*e.end(r),start:1e3*e.start(r)});return i.TimeRange.normalizeRawTimeRanges(t).map(function(e){return new i.TimeRange(e.start,e.end-e.start)})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.buildTimeRanges=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return e.call(this,"An unrecoverable network error occurred.")||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.NETWORK_ERROR"},t}(i.errors.PlayerFatalError);t.NetworkError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return e.call(this,"An unrecoverable error occurred whilst decoding.")||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.DECODE_ERROR"},t}(i.errors.PlayerFatalError);t.DecodeError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){var n=e.call(this,"Unexpected error from media element.",t)||this;return n._error=t,n}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.UNEXPECTED_MEDIA_ELEMENT_ERROR_"+(this._error&&this._error.code||"UNKNWON")},t}(i.errors.PlayerFatalError);t.MediaElementError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(t){return e.call(this,"We timed out when trying to activate web audio.",t)||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.WEB_AUDIO_ACTIVATION_TIMEOUT_ERROR"},t}(i.WebAudioActivationError);t.WebAudioActivationTimeoutError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),s=function(e){function t(t){return e.call(this,"Web audio found no channels.",t)||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.WEB_AUDIO_INITIALIZE_NO_CHANNELS_ERROR"},t}(i.WebAudioInitializeError);t.WebAudioInitializeNoChannelsError=s},function(e,t,n){"use strict";function r(){return"AudioContext"in window&&(o.helpers.browser.isChrome()||a&&a.major>=48||o.helpers.browser.isEdge())}function i(){if(f)return f;if(!r())throw new Error("Web audio is not enabled.");var e=new window.AudioContext;if(!e.destination.maxChannelCount)throw t.WEB_AUDIO_NO_OUTPUT_CHANNELS_ERROR;return f={context:e,suspender:new u.WebAudioContextSuspender(e)}}function s(e){return e.state&&e.resume&&"running"!==e.state?o.helpers.promiseWithTimeout(e.resume(),t.WEB_AUDIO_ACTIVATION_TIMEOUT,t.WEB_AUDIO_ACTIVATION_TIMEOUT_ERROR):o.helpers.Promise.resolve()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),u=n(15),a=o.helpers.browser.getFirefoxVersion();t.WEB_AUDIO_ACTIVATION_TIMEOUT=5e3,t.WEB_AUDIO_ACTIVATION_TIMEOUT_ERROR=new Error("Web audio activation timed out."),t.WEB_AUDIO_NO_OUTPUT_CHANNELS_ERROR=new Error("Web audio found no output channels.");var f=null,l=function(){function e(){}return e.prototype.getAudioContextWithSuspender=function(){return r()?i():null},e.prototype.activate=function(){if(!r())return o.helpers.Promise.resolve(void 0);try{return s(i().context)}catch(e){return o.helpers.Promise.reject(e)}},e}();t.WebAudioContext=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(4);t.HTML5PlayerBase=r.HTML5PlayerBase;var i=n(16);t.HTML5Player=i.HTML5Player;var s=n(17);t.errors=s.errors;var o=n(18);t.helpers=o.helpers;var u=n(11);t.WebAudioContext=u.WebAudioContext},function(e,t,n){"use strict";function r(e,t,n){return Math.min(t,Math.max(e,n))}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN"}(i=t.FadeDirection||(t.FadeDirection={}));var s=function(){function e(e,t){this._context=e,this._gain=t,this._currentFade={startTime:0,startValue:1,rate:0},this._fadeEndTimer=null}return e.prototype.isFading=function(){return!!this._fadeEndTimer},e.prototype.getDirection=function(){var e=this._currentFade,t=e.rate,n=e.startValue;return 0===t?0===n?i.DOWN:i.UP:t<0?i.DOWN:i.UP},e.prototype.performFade=function(e,t){var n=this;if(0===e)throw new Error("Rate cannot be 0.");this._fadeEndTimer&&window.clearTimeout(this._fadeEndTimer);var i=this._context.currentTime,s=this._gain;if(e===1/0||e===-1/0){s.gain.cancelScheduledValues(i);var o=e===1/0?1:0;s.gain.setValueAtTime(o,i),this._currentFade={startTime:i,startValue:o,rate:0},this._fadeEndTimer=null,t&&t()}else{var u=this._currentFade,a=r(0,1,u.startValue+1e3*u.rate*(i-u.startTime)),f=e>0?1-a:a,l=f*(1/Math.abs(1e3*e)),c=i+l;this._currentFade={startTime:i,rate:e,startValue:a},s.gain.cancelScheduledValues(i),s.gain.setValueAtTime(a,i),s.gain.linearRampToValueAtTime(e>0?1:0,c),this._fadeEndTimer=window.setTimeout(function(){n._fadeEndTimer=null,t&&t()},1e3*l)}},e}();t.FadeManager=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){return e.call(this,"An error occurred when initializing the media element.",t)||this}return r(t,e),t.prototype.getCode=function(){return"HTML5_PLAYER.INITIALIZE_ERROR"},t}(i.errors.PlayerFatalError);t.InitializeError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=2e4,i=function(){function e(e,t){void 0===t&&(t=r),this._audioContext=e,this._idleTime=t,this._players=[],this._prevPlayingCount=0,this._playingCount=0,this._timerId=null,this._suspendTimerId=null,this._suspendSupported="function"==typeof e.suspend}return e.prototype.watchPlayer=function(e){var t=this;!this._suspendSupported||e.isDead()||this._players.indexOf(e)>=0||(e.onChange.subscribe(function(n){var r=n.dead,i=n.playing;if(void 0!==i&&t._handleCountChange(i),r){var s=t._players.indexOf(e);s>=0&&(t._players.splice(s,1),!t._players.length&&t._suspendTimerId&&(window.clearInterval(t._suspendTimerId),t._suspendTimerId=null))}}),this._players.length||(this._suspendTimerId=window.setInterval(function(){0===t._playingCount&&null===t._timerId&&"suspended"!==t._audioContext.state&&t._scheduleSuspend(5e3)},5e3)),this._players.push(e),e.isPlaying()&&this._handleCountChange(!0))},e.prototype._handleCountChange=function(e){e?this._playingCount++:this._playingCount--,this._playingCount!==this._prevPlayingCount&&(this._prevPlayingCount=this._playingCount,0===this._playingCount?this._scheduleSuspend(this._idleTime):1===this._playingCount&&this._abortSuspend())},e.prototype._scheduleSuspend=function(e){var t=this;this._timerId=window.setTimeout(function(){t._timerId=null,t._audioContext.suspend()},e)},e.prototype._abortSuspend=function(){this._timerId&&(window.clearTimeout(this._timerId),this._timerId=null)},e}();t.WebAudioContextSuspender=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(4),o=n(3),u=i.helpers.Promise,a=function(e){function t(t,n){var r=e.call(this,n)||this;return r._descriptor=t,r._mimeType=t.format.mimeType||o.buildMimeTypeFromFormat(t.format,r._inferFormat(t.url)),r}return r(t,e),t.prototype._getUrlForMediaElement=function(){return this._descriptor.url},t.prototype._canPlay=function(){return this._mimeType&&this._canPlayType(this._mimeType)?u.resolve(!0):u.resolve(!1)},t}(s.HTML5PlayerBase);t.HTML5Player=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),i=n(6),s=n(8),o=n(2),u=n(10),a=n(1),f=n(9);!function(e){e.DecodeError=r.DecodeError,e.NetworkError=i.NetworkError,e.MediaElementError=s.MediaElementError,e.WebAudioInitializeError=o.WebAudioInitializeError,e.WebAudioInitializeNoChannelsError=u.WebAudioInitializeNoChannelsError,e.WebAudioActivationError=a.WebAudioActivationError,e.WebAudioActivationTimeoutError=f.WebAudioActivationTimeoutError}(t.errors||(t.errors={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(3);!function(e){!function(e){e.buildTimeRanges=r.buildTimeRanges}(e.timeRanges||(e.timeRanges={})),!function(e){e.buildMimeTypeFromFormat=i.buildMimeTypeFromFormat}(e.mimeType||(e.mimeType={}))}(t.helpers||(t.helpers={}))}])})},function(e,t,n){!function(t,r){e.exports=r(n(0),n(10),n(11))}(window,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.getCode=function(){return"GENERIC"},e}();t.RetrievalError=r},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e,t){return!(e.mimeType&&t.mimeType!==e.mimeType||e.audioCodec&&(!t.audioCodec||t.audioCodec.id!==e.audioCodec.id)||e.videoCodec&&(!t.videoCodec||t.videoCodec.id!==e.videoCodec.id))}Object.defineProperty(t,"__esModule",{value:!0}),t.isPartialMatch=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),s=function(e){function t(){return e.call(this,"Was expecting the mp3 sync word or id3 tags, but got something else.")||this}return r(t,e),t}(i.Mp3TransmuxerError);t.Mp3NoiseError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(t){var n=e.call(this)||this;return n._code=t,n}return r(t,e),t.prototype.getCode=function(){return"OGG_PARSER."+this._code},t}(i.RetrievalError);t.OggParserError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(t){var n=e.call(this)||this;return n._code=t,n}return r(t,e),t.prototype.getCode=function(){return"MP3_TRANSMUXER."+this._code},t}(i.RetrievalError);t.Mp3TransmuxerRetrievalError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._msg=e}return e.prototype.getMsg=function(){return this._msg},e}();t.Mp3TransmuxerError=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){this._playlist=e,this._url=t,this._sequenceNumber=n}return e.prototype.getPlaylist=function(){return this._playlist},e.prototype.getUrl=function(){return this._url},e.prototype.getSequenceNumber=function(){return this._sequenceNumber},e}();t.Segment=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(t){var n=e.call(this)||this;return n._statusCode=t,n}return r(t,e),t.prototype.getStatusCode=function(){return this._statusCode},t.prototype.getCode=function(){return"UNACCEPTABLE_RESPONSE_STATUS_CODE"},t}(i.RetrievalError);t.UnacceptableResponseStatusCodeError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getCode=function(){return"NO_DECRYPTOR"},t}(i.RetrievalError);t.NoDecryptorError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PassThrough={getInputFormat:function(){return{}},getOutputFormat:function(){return{}},transmux:function(e){return e}}},function(e,t,n){"use strict";function r(){this.buffer=null,this.bufferSize=0}t.__esModule=!0,t.MP3Parser=r;var i=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],s=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3];r.prototype.push=function(e){var t;if(this.bufferSize>0){var n=e.length+this.bufferSize;if(!this.buffer||this.buffer.length<n){var r=new Uint8Array(n);this.bufferSize>0&&r.set(this.buffer.subarray(0,this.bufferSize)),this.buffer=r}this.buffer.set(e,this.bufferSize),this.bufferSize=n,e=this.buffer,t=n}else t=e.length;for(var i,s=0;s<t&&(i=this._parse(e,s,t))>0;)s+=i;var o=t-s;o>0&&(!this.buffer||this.buffer.length<o?this.buffer=new Uint8Array(e.subarray(s,t)):this.buffer.set(e.subarray(s,t))),this.bufferSize=o},r.prototype._parse=function(e,t,n){if(t+2>n)return-1;if(255===e[t]||224==(224&e[t+1])){if(t+24>n)return-1;var r=e[t+1]>>3&3,o=e[t+1]>>1&3,u=e[t+2]>>4&15,a=e[t+2]>>2&3,f=!!(2&e[t+2]);if(1!==r&&0!==u&&15!==u&&3!==a){var l=3===r?3-o:3===o?3:4,c=1e3*i[14*l+u-1],h=3===r?0:2===r?1:2,p=s[3*h+a],d=f?1:0,v=3===o?(3===r?12:6)*c/p+d<<2:(3===r?144:72)*c/p+d|0;return t+v>n?-1:(this.onFrame&&this.onFrame(new Uint8Array(e.subarray(t,t+v))),v)}}for(var m=t+2;m<n;){if(255===e[m-1]&&224==(224&e[m]))return this.onNoise&&this.onNoise(new Uint8Array(e.subarray(t,m-1))),m-t-1;m++}return-1},r.prototype.close=function(){this.bufferSize>0&&this.onNoise&&this.onNoise(new Uint8Array(this.buffer.subarray(0,this.bufferSize))),this.buffer=null,this.bufferSize=0,this.onClose&&this.onClose()}},function(e,t,n){"use strict";function r(e){return e.byteLength>=3&&73===e[0]&&68===e[1]&&51===e[2]}Object.defineProperty(t,"__esModule",{value:!0}),t.isID3Tag=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(12),s=n(32),o=n(4),u=n(13),a={rate:44100,id:3},f=a.rate;t.MP3ToMP4={getInputFormat:function(){return{mimeType:"audio/mpeg"}},getOutputFormat:function(){return{mimeType:"audio/mp4",audioCodec:{id:"mp3"}}},transmux:function(e){return(new r.helpers.abortableJob.AbortableJob(function(){function t(){m.close(),g.flush()}function n(n){v=!0;try{t()}catch(n){}l.reject(n),e.abort()}var l=r.helpers.deferred.buildDeferred(),c=new r.eventDispatcher.EventDispatcher,h=[],p=!1,d=null,v=!1,m=new i.MP3Parser,g=new s.MP4Mux({audioTrackId:0,videoTrackId:-1,tracks:[{codecId:2,channels:2,samplerate:a.rate,samplesize:16,timescale:f}]});return g.ondata=function(e){v||(d?(h.push(e),c.dispatch({initData:d,data:e})):d=e)},m.onNoise=function(e){v||u.isID3Tag(e)||n(new o.Mp3NoiseError)},m.onFrame=function(e){if(!v)try{var t=new Uint8Array(e.length+1),r=32;r|=a.id<<2,r|=2,r|=1,t[0]=r,t.set(e,1),g.pushPacket(8,t,0)}catch(i){n(i)}},e.onProgressUpdate(function(e){var t=e.data;!p&&e.initData&&(t=r.helpers.arrayBuffer.combine([e.initData,e.data])),p=!0;try{m.push(t)}catch(i){n(i)}}),e.onCompletion(function(e){try{t(),l.resolve(e)}catch(r){n(r)}}),e.onError(n),{result:l.promise,progressUpdates:{onProgressUpdate:c,getProgressSoFar:function(){return h.length?{initData:d,data:r.helpers.arrayBuffer.combine(h)}:null}},abort:function(){v=!0,e.abort(),t()}}})).run()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(16);t.PlaylistSegmentRetriever=r.PlaylistSegmentRetriever;var i=n(17);t.Playlist=i.Playlist,t.PlaylistType=i.PlaylistType;var s=n(18);t.Segment=s.Segment;var o=n(29);t.TransmuxerFactory=o.TransmuxerFactory;var u=n(14);t.MP3ToMP4Transmuxer=u.MP3ToMP4;var a=n(11);t.PassThroughTransmuxer=a.PassThrough;var f=n(36);t.retrievalErrors=f.retrievalErrors;var l=n(39);t.events=l.events},function(e,t,n){"use strict";function r(e,t,n){var r=e.getTimeRange();return n!==t&&(n>t?r.end>t&&r.start<n:r.end>t||r.start<n)}Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(0),o=n(2),u=n(5),a=n(3),f=n(6),l=n(7),c=n(4),h=s.helpers.find,p=s.eventDispatcher.EventDispatcher,d=s.helpers.abortableJob.abortedError,v=s.logger.prefixLogger,m=s.logger.noOpLogger;!function(e){e[e.RETRIEVING_SEGMENT=0]="RETRIEVING_SEGMENT",e[e.RETRIEVED_SEGMENT=1]="RETRIEVED_SEGMENT",e[e.RETRIEVING_DATA=2]="RETRIEVING_DATA",e[e.COMPLETE=3]="COMPLETE"}(i||(i={}));var g=function(){function e(e){this._onSegmentRequestQueued=new p,this._onSegmentRequestStart=new p,this._onSegmentRetrieved=new p,this._onSegmentRequestFailed=new p,this._onSegmentDataRetrieveStarted=new p,this._onSegmentReady=new p,this._onError=new p,this._segments=[],this._retrievingSegment=null,this._timerId=null,this._dead=!1;var t=e.playlist,n=e.getPosition,r=e.maxBufferLength,i=e.cacheSize,s=e.transmuxer,o=e.logger,u=void 0===o?m:o;if(this._logger=v(u,"PlaylistSegmentRetriever"),t&&!t.hasInitialUpdateCompleted())throw new Error("Playlist retrieve has not completed.");if(r<0)throw new Error("Max buffer length must be > 0.");if(i<0)throw new Error("Cache size must be > 0.");this.onSegmentRequestQueued=this._onSegmentRequestQueued.getHandle(),this.onSegmentRequestStart=this._onSegmentRequestStart.getHandle(),this.onSegmentRetrieved=this._onSegmentRetrieved.getHandle(),this.onSegmentRequestFailed=this._onSegmentRequestFailed.getHandle(),this.onSegmentDataRetrieveStarted=this._onSegmentDataRetrieveStarted.getHandle(),this.onSegmentReady=this._onSegmentReady.getHandle(),this.onError=this._onError.getHandle(),this._playlist=t,this._transmuxer=s,this._getPosition=n,this._maxBufferLength=r,this._cacheSize=i,this._scheduleNextUpdate(0)}return e.prototype.updateMaxBufferLength=function(e){if(this._ensureNotDead(),e<0)throw new Error("Max buffer length must be > 0.");this._logger.debug("updateMaxBufferLength() called.",e),this._maxBufferLength=e,this.update()},e.prototype.updateCacheSize=function(e){if(this._ensureNotDead(),e<0)throw new Error("Cache size must be > 0.");this._cacheSize=e,this.update()},e.prototype.getCacheSize=function(){return this._cacheSize},e.prototype.getCacheUsage=function(){return this._segments.reduce(function(e,t){return t.state===i.RETRIEVING_DATA||t.state===i.COMPLETE?e+t.size:e},0)},e.prototype.switchPlaylist=function(e){if(this._ensureNotDead(),e&&!e.hasInitialUpdateCompleted())throw new Error("Playlist retrieve has not completed.");this._logger.debug("switchPlaylist() called."),this._abortCurrentRetrieve(),this._playlist=e,this._segments=this._segments.filter(function(e){return e.state===i.COMPLETE}),this.update()},e.prototype.getSegmentsWithData=function(){return this._ensureNotDead(),this._segments.filter(function(e){return e.state===i.RETRIEVING_DATA&&e.size||e.state===i.COMPLETE}).map(function(e){return{segment:e.segment,dataRetrieveJob:e.dataRetrieveJob,complete:e.state===i.COMPLETE}})},e.prototype.update=function(){var e=this;this._ensureNotDead(),this._timerId&&(window.clearTimeout(this._timerId),this._timerId=null);var t=this._getPosition(),n=t,r=0;this._segments.some(function(e){if(e.state!==i.COMPLETE)return!1;var s=e.segment.getTimeRange();return s.containsTime(r)&&(r=s.end),!(s.end<t)&&(s.start>n||(n=s.end,!1))});var s=t+this._maxBufferLength;if(!function(){var t=e._playlist;return t&&t.hasEnded()&&n===t.getDuration()?(n=r,t.getDuration()+r<s):n<s}())return this._abortCurrentRetrieve(),this._garbageCollect(t),void this._scheduleNextUpdate();var o=h(this._segments,function(e){return e.state===i.RETRIEVED_SEGMENT||e.state===i.RETRIEVING_DATA?e.segment.getTimeRange().containsTime(n):!1});o?this._retrieveSegmentData(o):this._retrieveSegment(n),this._garbageCollect(t)},e.prototype.kill=function(){this._dead||(this._logger.debug("kill() called."),this._abortCurrentRetrieve(),this._dead=!0,this._timerId&&(this._logger.debug("Cancelling update timer."),window.clearTimeout(this._timerId)),this._segments=[],this._logger.debug("Killed."))},e.prototype._retrieveSegmentData=function(e){var t=this;if(e.state!==i.RETRIEVED_SEGMENT&&e.state!==i.RETRIEVING_DATA)throw new Error("Segment in incorrect state for data to be retrieved.");if(!this._retrievingSegment||this._retrievingSegment.state!==i.RETRIEVING_DATA||e.segment!==this._retrievingSegment.segment){this._abortCurrentRetrieve();var n=s.helpers.abortableJob.map(function(){return t._transmuxer.transmux(e.segment.retrieveData())},{convertResult:function(e){return e},convertProgressUpdate:function(e){return e},abortableJobOpts:{storeResult:!0}}),r=n.run(),a=!1,h=this._retrievingSegment={state:i.RETRIEVING_DATA,dataRetrieveJob:n,dataRetrieveJobHandle:r,segment:e.segment,size:0};this._switchSegment(e,h),r.onProgressUpdate(function(r){var i=h.size,s=i;!a&&r.initData&&(i+=r.initData.byteLength),a=!0,i+=r.data.byteLength,h.size=i,0===s&&i>0&&t._onSegmentDataRetrieveStarted.dispatch({segment:e.segment,dataRetrieveJob:n,complete:!1})}),r.onCompletion(function(){if(t._retrievingSegment=null,h.state!==i.RETRIEVING_DATA)throw new Error("Incorrect retrieval state.");t._switchSegment(h,{state:i.COMPLETE,dataRetrieveJob:h.dataRetrieveJob,dataRetrieveJobHandle:h.dataRetrieveJobHandle,segment:e.segment,size:h.size}),t._logger.debug("Segment retrieve completed.",e.segment.getEventRepresentation()),t.update(),t._onSegmentReady.dispatch({segment:e.segment,complete:!0,dataRetrieveJob:h.dataRetrieveJob})}),r.onError(function(n){n!==d&&(t._logger.error("Error retrieving segment data.",n,e.segment.getEventRepresentation()),t._scheduleNextUpdate(),n instanceof o.OggParserError?n=n instanceof o.ChecksumFailedError?new u.OggParserError("CHECKSUM_FAILED"):n instanceof o.NoSegmentsInPageError?new u.OggParserError("NO_SEGMENTS_IN_PAGE"):n instanceof o.PageFromDifferentBitstreamError?new u.OggParserError("PAGE_FROM_DIFFERENT_BITSTREAM"):n instanceof o.PageSequenceNumberDidNotIncrementError?new u.OggParserError("SEQUENCE_NUMBER_DID_NOT_INCREMENT"):n instanceof o.UnexpectedBOSError?new u.OggParserError("UNEXPECTED_BOS"):n instanceof o.UnexpectedEOSError?new u.OggParserError("UNEXPECTED_EOS"):new u.OggParserError("UNKNOWN"):n instanceof l.Mp3TransmuxerError&&(n=n instanceof c.Mp3NoiseError?new f.Mp3TransmuxerRetrievalError("NOISE"):new f.Mp3TransmuxerRetrievalError("UNKNOWN")),t._onError.dispatch(n))})}},e.prototype._retrieveSegment=function(e){var t=this,n=this._retrievingSegment,r=this._playlist,s=r?r.getSegmentIndexContainingTime(e):null;if(!n||n.state!==i.RETRIEVING_SEGMENT||n.segmentIndex!==s)if(this._abortCurrentRetrieve(),r)if(null===s)this._scheduleNextUpdate();else{var o=r.getSegment(s);this._logger.debug("Retrieving segment.",s),o.onCompletion(function(e){if(t._logger.debug("Retrieved segment.",s),!a.isPartialMatch(t._transmuxer.getInputFormat(),e.getFormat())){var n=new Error("Segment format is not supported by transmuxer.");return t._logger.error("Segment incorrect format.",n),t._scheduleNextUpdate(),void t._onError.dispatch(n)}e.onSegmentRequestQueued.subscribe(t._onSegmentRequestQueued.dispatch),e.onSegmentRequestStart.subscribe(t._onSegmentRequestStart.dispatch),e.onSegmentRetrieved.subscribe(t._onSegmentRetrieved.dispatch),e.onSegmentRequestFailed.subscribe(t._onSegmentRequestFailed.dispatch),t._segments.splice(t._segments.indexOf(u),1);var r=e.getTimeRange(),o=t._segments.length;t._segments.some(function(e,t){return e.state!==i.RETRIEVING_SEGMENT&&e.segment.getTimeRange().start>r.start&&(o=t,!0)}),t._segments.splice(o,0,{state:i.RETRIEVED_SEGMENT,segment:e}),t._retrievingSegment=null,t.update()}),o.onError(function(e){e!==d&&(t._logger.error("Error retrieving segment.",e),t._scheduleNextUpdate(),t._onError.dispatch(e))});var u={state:i.RETRIEVING_SEGMENT,segmentIndex:s,segmentRetrieveJob:o};this._segments.push(u),this._retrievingSegment=u}else this._logger.debug("Cannot retrieve segment as there is no playlist."),this._scheduleNextUpdate()},e.prototype._abortCurrentRetrieve=function(){var e=this._retrievingSegment;e&&(e.state===i.RETRIEVING_SEGMENT?(this._logger.debug("Aborting segment retrieve job."),e.segmentRetrieveJob.abort()):e.state===i.RETRIEVING_DATA&&(this._logger.debug("Aborting segment data retrieve job."),e.dataRetrieveJobHandle.abort(),this._switchSegment(e,{state:i.RETRIEVED_SEGMENT,segment:e.segment})),this._retrievingSegment=null)},e.prototype._switchSegment=function(e,t){var n=this._segments.indexOf(e);if(-1===n)throw new Error("Old segment missing.");this._segments.splice(n,1,t)},e.prototype._garbageCollect=function(e){var t=this._segments,n=this._cacheSize,s=this.getCacheUsage();if(!(s<=n)){var o=this._playlist,u=o&&o.getCompleteDuration(),a=null!==u?u:1/0,f=e+this._maxBufferLength;f>a&&(f-=a)>=e||t.filter(function(t){return t.state===i.COMPLETE&&!r(t.segment,e,f)}).map(function(t){var n=t.segment.getTimeRange(),r=n.start;return{segment:t,distance:Math.min(Math.abs(e-r),r+a-e),size:t.size}}).sort(function(e,t){return t.distance-e.distance}).some(function(e){return s<=n||(t.splice(t.indexOf(e.segment),1),s-=e.size,!1)})}},e.prototype._scheduleNextUpdate=function(e){var t=this;void 0===e&&(e=1e3),this._timerId||(this._timerId=window.setTimeout(function(){t._timerId=null,t.update()},e))},e.prototype._ensureNotDead=function(){if(this._dead)throw new Error("Playlist segment retriever has been killed.")},e}();t.PlaylistSegmentRetriever=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.eventDispatcher.EventDispatcher;!function(e){e[e.LIVE=0]="LIVE",e[e.EVENT=1]="EVENT",e[e.VOD=2]="VOD"}(t.PlaylistType||(t.PlaylistType={}));var s=function(){function e(){this._onPlaylistRequestQueued=new i,this._onPlaylistRequestStart=new i,this._onPlaylistRetrieved=new i,this._onPlaylistRequestFailed=new i,this._onPlaylistParseStart=new i,this._onPlaylistParseEnd=new i,this._onKeyRequestQueued=new i,this._onKeyRequestStart=new i,this._onKeyRetrieved=new i,this._onKeyRequestFailed=new i,this._onInitDataRequestQueued=new i,this._onInitDataRequestStart=new i,this._onInitDataRetrieved=new i,this._onInitDataRequestFailed=new i,this._onUpdated=new i,this.onPlaylistRequestQueued=this._onPlaylistRequestQueued.getHandle(),this.onPlaylistRequestStart=this._onPlaylistRequestStart.getHandle(),this.onPlaylistRetrieved=this._onPlaylistRetrieved.getHandle(),this.onPlaylistRequestFailed=this._onPlaylistRequestFailed.getHandle(),this.onPlaylistParseStart=this._onPlaylistParseStart.getHandle(),this.onPlaylistParseEnd=this._onPlaylistParseEnd.getHandle(),this.onKeyRequestQueued=this._onKeyRequestQueued.getHandle(),this.onKeyRequestStart=this._onKeyRequestStart.getHandle(),this.onKeyRetrieved=this._onKeyRetrieved.getHandle(),this.onKeyRequestFailed=this._onKeyRequestFailed.getHandle(),this.onInitDataRequestQueued=this._onInitDataRequestQueued.getHandle(),this.onInitDataRequestStart=this._onInitDataRequestStart.getHandle(),this.onInitDataRetrieved=this._onInitDataRetrieved.getHandle(),this.onInitDataRequestFailed=this._onInitDataRequestFailed.getHandle(),this.onUpdated=this._onUpdated.getHandle()}return e.prototype.update=function(){var e=this,t=this._update();return t.onCompletion(function(){return e._onUpdated.dispatch(void 0)}),t},e.prototype.getSegment=function(e){return this.getSegments(e,e+1)[0]},e.prototype.getSegments=function(e,t){var n=this.getSegmentCount(),r=this.getFirstSegmentIndex();if(void 0===t&&(t=r+n),void 0===e&&(e=r),e<r||t<e||t>r+n)throw new Error("Invalid range of segments.");for(var i=[],s=e;s<t;s++)i.push(this._getSegment(s));return i},e}();t.Playlist=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(8),s=n(19),o=n(23),u=n(24),a=r.helpers.abortableJob.AbortableJob,f=r.eventDispatcher.EventDispatcher,l=r.logger.noOpLogger,c=function(){function e(e){var t=e.url,n=e.sequenceNumber,c=e.playlist,h=e.timeRange,p=e.encryptionConfig,d=e.initData,v=e.format,m=e.loader,g=e.playlistEventRepresentation,y=e.logger,b=void 0===y?l:y,w=e.delayCalculator,E=void 0===w?r.helpers.retry.buildExponentialDelayCalculator():w,S=e.isResponseCodeAcceptable,x=void 0===S?function(e){return 200===e}:S,T=e.isResponseCodeRetryable,N=void 0===T?function(e){return!(e>=400&&e<500)}:T,C=this;this._onSegmentRequestQueued=new f,this._onSegmentRequestStart=new f,this._onSegmentRetrieved=new f,this._onSegmentRequestFailed=new f,this.onSegmentRequestQueued=this._onSegmentRequestQueued.getHandle(),this.onSegmentRequestStart=this._onSegmentRequestStart.getHandle(),this.onSegmentRetrieved=this._onSegmentRetrieved.getHandle(),this.onSegmentRequestFailed=this._onSegmentRequestFailed.getHandle(),this._sequenceNumber=n,this._playlist=c,this._timeRange=h,this._format=v;var k=this._segmentEventRepresentation=new i.Segment(g,t,n),L=o.getSegmentDownloadJob({delayCalculator:E,segmentEventRepresentation:k,url:t,loader:m,onSegmentRequestQueued:this._onSegmentRequestQueued,onSegmentRequestStart:this._onSegmentRequestStart,onSegmentRequestFailed:this._onSegmentRequestFailed,onSegmentRetrieved:this._onSegmentRetrieved,isResponseCodeAcceptable:x,isResponseCodeRetryable:N,logger:b}),A=u.getSegmentDownloadAndDecryptJob({encryptionConfig:p,downloadAbortableJob:L,logger:b});this._retrieveAbortableJob=new a(function(){var e=s.SegmentParserFactory.retrieveSegmentParser(C._format),t=new f,n=r.helpers.deferred.buildDeferred(),i=e.parseSegmentData(r.helpers.abortableJob.map(function(){return A.run()},{convertProgressUpdate:function(e,t){return t&&d?r.helpers.arrayBuffer.combine([d,e]):e},convertResult:function(e){return e}}).run(),C,C._playlist);return i.onProgressUpdate(t.dispatch,{skipPast:!0}),i.onCompletion(function(){return n.resolve(void 0)}),i.onError(n.reject),{result:n.promise,progressUpdates:{onProgressUpdate:t,getProgressSoFar:i.getProgressSoFar},abort:i.abort}})}return e.prototype.getFormat=function(){return this._format},e.prototype.getSequenceNumber=function(){return this._sequenceNumber},e.prototype.isFinalSegment=function(){var e=this._playlist;return e.hasEnded()&&e.getFirstSegmentIndex()+e.getSegmentCount()-1===this._sequenceNumber},e.prototype.getTimeRange=function(){return this._timeRange},e.prototype.getEventRepresentation=function(){return this._segmentEventRepresentation},e.prototype.retrieveData=function(){var e=this;return(new a(function(){var t=r.helpers.deferred.buildDeferred(),n=new f,i=[],s=e._retrieveAbortableJob.run(),o=void 0;return s.onProgressUpdate(function(e){var t=e.data,r=e.initData;i.length||(o=r),i.push(t),n.dispatch({data:t,initData:o})}),s.onCompletion(function(){t.resolve(void 0)}),s.onError(t.reject),{result:t.promise,progressUpdates:{onProgressUpdate:n,getProgressSoFar:function(){return i.length?{initData:o,data:r.helpers.arrayBuffer.combine(i)}:null}},abort:function(){return s.abort()}}})).run()},e}();t.Segment=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(3),s=n(20),o=r.helpers.find;t.SegmentParserFactory={retrieveSegmentParser:function(e){var t=o(s.default,function(t){return i.isPartialMatch(t.getFormat(),e)});if(!t)throw new Error("No segment parser found.");return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(22),s=[r.OggOpusSegmentParser,i.DefaultSegmentParser];t.default=s},function(e,t,n){"use strict";function r(e){var t=s.retrievePages(e).pages;if(t.length){var n=s.retrievePackets([t[0]])[0];if(n&&n.first){var r=1,i=t.slice(1).some(function(e,t){var n=!!(1&e.header.type[0]);return t>0&&!n||(r=t+2,!1)});return{state:"PRESENT",initData:u(t.slice(0,r).map(function(e){return e.entirePage})),initDataEnded:i}}return{state:"NOT_PRESENT"}}return null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(2),o=i.helpers.abortableJob.AbortableJob,u=i.helpers.arrayBuffer.combine,a=new i.helpers.SCWeakMap;t.OggOpusSegmentParser={getFormat:function(){return{mimeType:"audio/ogg",audioCodec:{id:"opus"}}},parseSegmentData:function(e,n,s){return(new o(function(){var o=i.helpers.deferred.buildDeferred(),f=new i.eventDispatcher.EventDispatcher,l=[],c=null,h=null,p=null,d=function(t){o.reject(t),e.abort()},v=function(e){a.set(s,e),f.dispatch({initData:e,data:u(l)})};return e.onProgressUpdate(function(e){if(c&&"PRESENT"===c.state&&c.initDataEnded)l.push(e),f.dispatch({initData:c.initData,data:e});else if(c&&"NOT_PRESENT"===c.state)l.push(e);else{l.push(e);var o=u(l);if(c=r(o))if("NOT_PRESENT"===c.state){var m=a.get(s);n.getSequenceNumber()<=s.getFirstSegmentIndex()?d(new Error("Could not find init data.")):m?(c={state:"PRESENT",initData:m,initDataEnded:!0},v(c.initData)):(h=s.getSegment(s.getFirstSegmentIndex()),h.onCompletion(function(e){var n=p=t.OggOpusSegmentParser.parseSegmentData(i.helpers.abortableJob.map(function(){return e.retrieveData()},{convertProgressUpdate:function(e){return e.initData?i.helpers.arrayBuffer.combine([e.initData,e.data]):e.data},convertResult:function(e){return e}}).run(),e,s);n.onProgressUpdate(function(e){var t=e.initData;if(n.abort(),!t){var r=new Error("OggOpusSegmentParser should always provide init data.");throw d(r),r}c={state:"PRESENT",initData:t,initDataEnded:!0},v(t)}),n.onError(function(e){e!==i.helpers.abortableJob.abortedError&&d(e)})}),h.onError(d))}else if("PRESENT"===c.state&&c.initDataEnded){if(l.splice(0),o.byteLength>c.initData.byteLength){var g=new Uint8Array(o.buffer.slice(c.initData.byteLength));l.push(g)}v(c.initData)}}}),e.onCompletion(function(e){c&&"PRESENT"===c.state&&!c.initDataEnded?(v(c.initData),o.resolve(e)):c&&"PRESENT"===c.state?o.resolve(e):o.reject(new Error("Could not find init data."))}),e.onError(d),{result:o.promise,progressUpdates:{onProgressUpdate:f,getProgressSoFar:function(){return c&&"PRESENT"===c.state&&c.initDataEnded?{initData:c.initData,data:u(l)}:null}},abort:function(){e.abort(),h&&h.abort(),p&&p.abort()}}})).run()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.DefaultSegmentParser={getFormat:function(){return{}},parseSegmentData:function(e){return r.helpers.abortableJob.map(function(){return e},{convertProgressUpdate:function(e){return{data:e}},convertResult:function(e){return e}}).run()}}},function(e,t,n){"use strict";function r(e){var t=e.delayCalculator,n=e.segmentEventRepresentation,r=e.url,o=e.loader,u=e.onSegmentRequestQueued,a=e.onSegmentRequestStart,f=e.onSegmentRequestFailed,l=e.onSegmentRetrieved,c=e.isResponseCodeAcceptable,h=e.isResponseCodeRetryable,p=e.logger;return new i.helpers.abortableJob.AbortableJob(function(){var e=i.helpers.deferred.buildDeferred(),d=new i.eventDispatcher.EventDispatcher,v=[],m=0,g=i.helpers.retry.retry(t,function(t){var g=t.scheduleRetry,y=!1,b=0;u.dispatch({segment:n}),p.debug("Requesting segment.",r);var w=o.request({url:r});w.onRequestStart(function(){return a.dispatch({segment:n})});var E=function(e){var t=e.byteLength;if(t)if((b+=t)<=m)p.debug("Already downloaded this part. Skipping...",b,m);else{var n=t-(b-m),r=new Uint8Array(e,n);m=b,v.push(r),d.dispatch(r)}};return w.onProgress(function(t){var i=t.initial,o=t.statusCode,u=t.part;if(i)if(c(o))p.debug("Segment response started.",r,o),E(u);else{var a=null;h(o)?p.debug("Segment response code was not acceptable. Will retry.",r,o):(p.debug("Segment response code was not acceptable.",r,o),a=new s.UnacceptableResponseStatusCodeError(o)),w.abort(),f.dispatch({segment:n,statusCode:o}),a?e.reject(a):(y=!0,g())}else p.debug("Got segment response part.",r,o),E(u)}),w.onResponseReceived(function(t){y||(t?(l.dispatch({segment:n,statusCode:t.statusCode}),e.resolve(void 0)):(p.warn("Segment request timed out.",r),f.dispatch({segment:n,statusCode:null}),g()))}),w.onError(function(t){y||t!==i.helpers.abortableJob.abortedError&&(t instanceof i.loaderErrors.LoaderError?(p.warn("Error from loader. Will retry",r,t),g()):(p.error("Unexpected error when requesting segment.",t),e.reject(t)))}),{onCancel:function(){p.debug("Aborting segment request.",r),w.hasCompleted()||w.abort(),f.dispatch({segment:n,aborted:!0})}}},{onNoMoreRetries:function(){return e.reject(new Error("No more retries for requesting segment."))}}).cancel;return{result:e.promise,progressUpdates:{onProgressUpdate:d,getProgressSoFar:function(){return v.length?i.helpers.arrayBuffer.combine(v):null}},abort:function(){return g()}}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(9);t.getSegmentDownloadJob=r},function(e,t,n){"use strict";function r(e){var t=e.encryptionConfig,n=e.downloadAbortableJob,r=e.logger;return new i.helpers.abortableJob.AbortableJob(function(){var e=new i.eventDispatcher.EventDispatcher,u=i.helpers.deferred.buildDeferred(),a=null;if(t&&(r.info("Finding a decryptor..."),!(a=s.DecryptorFactory.retrieveDecryptor(t))))return r.error("Could not find a decryptor."),u.reject(new o.NoDecryptorError),{result:u.promise,progressUpdates:{onProgressUpdate:e,getProgressSoFar:function(){return null}}};var f=n.run(),l=null,c=[];return t&&a?(l=a.decrypt(f,t),l.onProgressUpdate(function(t){c.push(t),e.dispatch(t)}),l.onError(function(e){e!==i.helpers.abortableJob.abortedError&&r.error("Error occurred during decryption.",e),u.reject(e),f.abort()})):f.onProgressUpdate(function(t){c.push(t),e.dispatch(t)}),f.onCompletion(function(){var e=function(){return u.resolve(void 0)};l?l.whenComplete().then(function(){return e()}):e()}),f.onError(u.reject),{result:u.promise,progressUpdates:{onProgressUpdate:e,getProgressSoFar:function(){return c.length?i.helpers.arrayBuffer.combine(c):null}},abort:function(){f.abort(),l&&l.abort()}}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(25),o=n(10);t.getSegmentDownloadAndDecryptJob=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(26),s=r.helpers.find;t.DecryptorFactory={retrieveDecryptor:function(e){return s(i.default,function(t){return t.canDecrypt(e)})||null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),i=[r.JSCrypto];t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(28),s=null;t.JSCrypto={canDecrypt:function(e){return"AES-CBC"===e.cipher},decrypt:function(e,t){s||(s=new i.AESDecryptor);var n=s;return(new r.helpers.abortableJob.AbortableJob(function(){var s,o=new r.eventDispatcher.EventDispatcher,u=r.helpers.deferred.buildDeferred(),a=[],f=null,l=[],c=0,h=new Uint8Array(t.iv),p=!1;n.expandKey(t.key.buffer);var d=function(e){var t=f;f=new Uint8Array(n.decrypt(e.buffer,0,h.buffer,!1));var r=e.byteLength-16;if(r<0)throw new Error("lastBlockOffset invalid.");for(var i=0;i<16;i++)h[i]=e[r+i];t&&(a.push(t),o.dispatch(t))};return e.onProgressUpdate(function(e){p||(r.helpers.arrayBuffer.forEach(e,function(e){p||(c||(s=new Uint8Array(16)),s[c++]=e,16===c&&(l.push(s),c=0))}),l.length&&(d(r.helpers.arrayBuffer.combine(l)),l=[]))}),e.onCompletion(function(e){if(!p)if(c)u.reject(new Error("Reached end part way through block."));else{if(f){var t=new Uint8Array(i.removePadding(f.buffer));a.push(t),o.dispatch(t)}u.resolve(e)}}),e.onError(u.reject),{result:u.promise,abort:function(){p=!0,e.abort()},progressUpdates:{onProgressUpdate:o,getProgressSoFar:function(){return r.helpers.arrayBuffer.combine(a)}}}})).run()}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=e.byteLength,n=new DataView(e),r=t&&n.getUint8(t-1);if(r){for(var i=t-r,s=new Uint8Array(i),o=0;o<i;o++)s[o]=n.getUint8(o);return s.buffer}return e}t.__esModule=!0,t.removePadding=i;var s=t.AESDecryptor=function(){function e(){r(this,e),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}return e.prototype.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<4;r++)n[r]=t.getUint32(4*r);return n},e.prototype.initTable=function(){var e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],o=n[3],u=this.invSubMix,a=u[0],f=u[1],l=u[2],c=u[3],h=new Uint32Array(256),p=0,d=0,v=0;for(v=0;v<256;v++)h[v]=v<128?v<<1:v<<1^283;for(v=0;v<256;v++){var m=d^d<<1^d<<2^d<<3^d<<4;m=m>>>8^255&m^99,e[p]=m,t[m]=p;var g=h[p],y=h[g],b=h[y],w=257*h[m]^16843008*m;r[p]=w<<24|w>>>8,i[p]=w<<16|w>>>16,s[p]=w<<8|w>>>24,o[p]=w,w=16843009*b^65537*y^257*g^16843008*p,a[m]=w<<24|w>>>8,f[m]=w<<16|w>>>16,l[m]=w<<8|w>>>24,c[m]=w,p?(p=g^h[h[h[b^g]]],d^=h[h[d]]):p=d=1}},e.prototype.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),n=!0,r=0;r<t.length&&n;)n=t[r]===this.key[r],r++;if(!n){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var s=this.ksRows=4*(i+6+1),o=void 0,u=void 0,a=this.keySchedule=new Uint32Array(s),f=this.invKeySchedule=new Uint32Array(s),l=this.sBox,c=this.rcon,h=this.invSubMix,p=h[0],d=h[1],v=h[2],m=h[3],g=void 0,y=void 0;for(o=0;o<s;o++)o<i?g=a[o]=t[o]:(y=g,o%i==0?(y=y<<8|y>>>24,y=l[y>>>24]<<24|l[y>>>16&255]<<16|l[y>>>8&255]<<8|l[255&y],y^=c[o/i|0]<<24):i>6&&o%i==4&&(y=l[y>>>24]<<24|l[y>>>16&255]<<16|l[y>>>8&255]<<8|l[255&y]),a[o]=g=(a[o-i]^y)>>>0);for(u=0;u<s;u++)o=s-u,y=3&u?a[o]:a[o-4],f[u]=u<4||o<=4?y:p[l[y>>>24]]^d[l[y>>>16&255]]^v[l[y>>>8&255]]^m[l[255&y]],f[u]=f[u]>>>0}},e.prototype.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},e.prototype.decrypt=function(e,t,n,r){for(var s=this.keySize+6,o=this.invKeySchedule,u=this.invSBox,a=this.invSubMix,f=a[0],l=a[1],c=a[2],h=a[3],p=this.uint8ArrayToUint32Array_(n),d=p[0],v=p[1],m=p[2],g=p[3],y=new Int32Array(e),b=new Int32Array(y.length),w=void 0,E=void 0,S=void 0,x=void 0,T=void 0,N=void 0,C=void 0,k=void 0,L=void 0,A=void 0,O=void 0,M=void 0,_=void 0,D=void 0,P=this.networkToHostOrderSwap;t<y.length;){for(L=P(y[t]),A=P(y[t+1]),O=P(y[t+2]),M=P(y[t+3]),T=L^o[0],N=M^o[1],C=O^o[2],k=A^o[3],_=4,D=1;D<s;D++)w=f[T>>>24]^l[N>>16&255]^c[C>>8&255]^h[255&k]^o[_],E=f[N>>>24]^l[C>>16&255]^c[k>>8&255]^h[255&T]^o[_+1],S=f[C>>>24]^l[k>>16&255]^c[T>>8&255]^h[255&N]^o[_+2],x=f[k>>>24]^l[T>>16&255]^c[N>>8&255]^h[255&C]^o[_+3],T=w,N=E,C=S,k=x,_+=4;w=u[T>>>24]<<24^u[N>>16&255]<<16^u[C>>8&255]<<8^u[255&k]^o[_],E=u[N>>>24]<<24^u[C>>16&255]<<16^u[k>>8&255]<<8^u[255&T]^o[_+1],S=u[C>>>24]<<24^u[k>>16&255]<<16^u[T>>8&255]<<8^u[255&N]^o[_+2],x=u[k>>>24]<<24^u[T>>16&255]<<16^u[N>>8&255]<<8^u[255&C]^o[_+3],_+=3,b[t]=P(w^d),b[t+1]=P(x^v),b[t+2]=P(S^m),b[t+3]=P(E^g),d=L,v=A,m=O,g=M,t+=4}return r?i(b.buffer):b.buffer},e.prototype.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(30);t.TransmuxerFactory={retrieveTransmuxers:function(e,t){return i.default.filter(function(n){var i=n.getInputFormat(),s=n.getOutputFormat();return(!e||r.isPartialMatch(i,e))&&(!t||r.isPartialMatch(s,t))})},retrieveTransmuxer:function(e,n){return t.TransmuxerFactory.retrieveTransmuxers(e,n)[0]||null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(31),s=n(14),o=n(33),u=n(35),a=[i.MP3ToMP3,u.MP4ToMP4,r.PassThrough,s.MP3ToMP4,o.OggOpusToWebm];t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(12),s=n(4),o=n(13);t.MP3ToMP3={getInputFormat:function(){return{mimeType:"audio/mpeg"}},getOutputFormat:function(){return{mimeType:"audio/mpeg"}},transmux:function(e){return(new r.helpers.abortableJob.AbortableJob(function(){function t(){p.close()}function n(n){h=!0;try{t()}catch(n){}u.reject(n),e.abort()}var u=r.helpers.deferred.buildDeferred(),a=new r.eventDispatcher.EventDispatcher,f=[],l=[],c=!1,h=!1,p=new i.MP3Parser;return p.onNoise=function(e){h||o.isID3Tag(e)||n(new s.Mp3NoiseError)},p.onFrame=function(e){if(!h)try{l.push(e)}catch(t){n(t)}},e.onProgressUpdate(function(e){var t=e.data;!c&&e.initData&&(t=r.helpers.arrayBuffer.combine([e.initData,e.data])),c=!0;try{if(p.push(t),l.length){var i=r.helpers.arrayBuffer.combine(l);f.push(i),l.splice(0),a.dispatch({data:i})}}catch(s){n(s)}}),e.onCompletion(function(e){try{t(),u.resolve(e)}catch(r){n(r)}}),e.onError(n),{result:u.promise,progressUpdates:{onProgressUpdate:a,getProgressSoFar:function(){return f.length?{data:r.helpers.arrayBuffer.combine(f)}:null}},abort:function(){h=!0,e.abort(),t()}}})).run()}}},function(e,t,n){"use strict";t.__esModule=!0;var r,i,s=function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};!function(e){!function(e){function t(e){for(var t=new Uint8Array(4*e.length),n=0,r=0,i=e.length;r<i;r++){var s=e.charCodeAt(r);if(s<=127)t[n++]=s;else{if(55296<=s&&s<=56319){var o=e.charCodeAt(r+1);56320<=o&&o<=57343&&(s=((1023&s)<<10)+(1023&o)+65536,++r)}0!=(4292870144&s)?(t[n++]=248|s>>>24&3,t[n++]=128|s>>>18&63,t[n++]=128|s>>>12&63,t[n++]=128|s>>>6&63,t[n++]=128|63&s):0!=(4294901760&s)?(t[n++]=240|s>>>18&7,t[n++]=128|s>>>12&63,t[n++]=128|s>>>6&63,t[n++]=128|63&s):0!=(4294965248&s)?(t[n++]=224|s>>>12&15,t[n++]=128|s>>>6&63,t[n++]=128|63&s):(t[n++]=192|s>>>6&31,t[n++]=128|63&s)}}return t.subarray(0,n)}function n(e){for(var t=0,n="";t<e.length;){var r=255&e[t++];if(r<=127)n+=String.fromCharCode(r);else{var i=192,s=5;do{if((r&(i>>1|128))===i)break;i=i>>1|128,--s}while(s>=0);if(s<=0)throw new Error("Invalid UTF8 character");for(var o=r&(1<<s)-1,u=5;u>=s;--u){var a=e[t++];if(128!=(192&a))throw new Error("Invalid UTF8 character sequence");o=o<<6|63&a}n+=o>=65536?String.fromCharCode(o-65536>>10&1023|55296,1023&o|56320):String.fromCharCode(o)}}return n}e.utf8decode=t,e.utf8encode=n}(e.StringUtilities||(e.StringUtilities={}))}(i||(i={})),function(e){!function(e){function t(e){for(var t=e.length>>1,n=new Uint8Array(t),r=0;r<t;r++)n[r]=parseInt(e.substr(2*r,2),16);return n}function n(e){var t,n=0,r=o.RAW,i=e[n],s=i>>4,c=i>>2&3,h=2&i?16:8,p=1&i?2:1;switch(n++,s){case l:r=e[n++],t=1024;break;case f:var d=e[n+1]>>3&3,v=e[n+1]>>1&3;t=1===v?3===d?1152:576:3===v?384:1152}return{codecDescription:a[s],codecId:s,data:e.subarray(n),rate:u[c],size:h,channels:p,samples:t,packetType:r}}function r(e){var t=0,n=e[t]>>4,r=15&e[t];t++;var i={frameType:n,codecId:r,codecDescription:h[r]};switch(r){case d:var s=e[t++];i.packetType=s,i.compositionTime=(e[t]<<24|e[t+1]<<16|e[t+2]<<8)>>8,t+=3;break;case p:i.packetType=v.NALU,i.horizontalOffset=e[t]>>4&15,i.verticalOffset=15&e[t],i.compositionTime=0,t++}return i.data=e.subarray(t),i}function i(e){var t,n,r=[],i=-1,s=-1,o=+e.asGetPublicProperty("duration"),u=e.asGetPublicProperty("audiocodecid");switch(u){case f:case"mp3":t="mp3",n=f;break;case l:case"mp4a":t="mp4a",n=l;break;default:if(!isNaN(u))throw new Error("Unsupported audio codec: "+u);t=null,n=-1}var a,c,h=e.asGetPublicProperty("videocodecid");switch(h){case p:case"vp6f":a="vp6f",c=p;break;case d:case"avc1":a="avc1",c=d;break;default:if(!isNaN(h))throw new Error("Unsupported video codec: "+h);a=null,c=-1}var v=null===t?null:{codecDescription:t,codecId:n,language:"und",timescale:+e.asGetPublicProperty("audiosamplerate")||44100,samplerate:+e.asGetPublicProperty("audiosamplerate")||44100,channels:+e.asGetPublicProperty("audiochannels")||2,samplesize:16},m=null===a?null:{codecDescription:a,codecId:c,language:"und",timescale:6e4,framerate:+e.asGetPublicProperty("videoframerate")||+e.asGetPublicProperty("framerate"),width:+e.asGetPublicProperty("width"),height:+e.asGetPublicProperty("height")},g=e.asGetPublicProperty("trackinfo");if(g)for(var y=0;y<g.length;y++){var b=g[y],w=b.asGetPublicProperty("sampledescription")[0];w.asGetPublicProperty("sampletype")===u?(v.language=b.asGetPublicProperty("language"),v.timescale=+b.asGetPublicProperty("timescale")):w.asGetPublicProperty("sampletype")===h&&(m.language=b.asGetPublicProperty("language"),m.timescale=+b.asGetPublicProperty("timescale"))}return m&&(s=r.length,r.push(m)),v&&(i=r.length,r.push(v)),{tracks:r,duration:o,audioTrackId:i,videoTrackId:s}}function s(e){var t=[];return e.audioTrackId>=0&&t.push({tracks:[e.tracks[e.audioTrackId]],duration:e.duration,audioTrackId:0,videoTrackId:-1}),e.videoTrackId>=0&&t.push({tracks:[e.tracks[e.videoTrackId]],duration:e.duration,audioTrackId:-1,videoTrackId:0}),t}var o,u=[5500,11025,22050,44100],a=["PCM","ADPCM","MP3","PCM le","Nellymouser16","Nellymouser8","Nellymouser","G.711 A-law","G.711 mu-law",null,"AAC","Speex","MP3 8khz"],f=2,l=10;!function(e){e[e.HEADER=0]="HEADER",e[e.RAW=1]="RAW"}(o||(o={}));var c,h=[null,"JPEG","Sorenson","Screen","VP6","VP6 alpha","Screen2","AVC"],p=4,d=7;!function(e){e[e.KEY=1]="KEY",e[e.INNER=2]="INNER",e[e.DISPOSABLE=3]="DISPOSABLE",e[e.GENERATED=4]="GENERATED",e[e.INFO=5]="INFO"}(c||(c={}));var v;!function(e){e[e.HEADER=0]="HEADER",e[e.NALU=1]="NALU",e[e.END=2]="END"}(v||(v={}));var m;!function(e){e[e.CAN_GENERATE_HEADER=0]="CAN_GENERATE_HEADER",e[e.NEED_HEADER_DATA=1]="NEED_HEADER_DATA",e[e.MAIN_PACKETS=2]="MAIN_PACKETS"}(m||(m={}));var g=function(){function i(e){var t=this;this.oncodecinfo=function(e){},this.ondata=function(e){throw new Error("MP4Mux.ondata is not set")},this.metadata=e,this.trackStates=this.metadata.tracks.map(function(e,n){var r={trackId:n+1,trackInfo:e,cachedDuration:0,samplesProcessed:0,initializationData:[]};return t.metadata.audioTrackId===n&&(t.audioTrackState=r),t.metadata.videoTrackId===n&&(t.videoTrackState=r),r},this),this._checkIfNeedHeaderData(),this.filePos=0,this.cachedPackets=[],this.chunkIndex=0}return i.prototype.pushPacket=function(e,t,i){switch(this.state===m.CAN_GENERATE_HEADER&&this._tryGenerateHeader(),e){case 8:var s=this.audioTrackState,u=n(t);if(!s||s.trackInfo.codecId!==u.codecId)throw new Error("Unexpected audio packet codec: "+u.codecDescription);switch(u.codecId){default:throw new Error("Unsupported audio codec: "+u.codecDescription);case f:break;case l:if(u.packetType===o.HEADER)return void s.initializationData.push(u.data)}this.cachedPackets.push({packet:u,timestamp:i,trackId:s.trackId});break;case 9:var a=this.videoTrackState,c=r(t);if(!a||a.trackInfo.codecId!==c.codecId)throw new Error("Unexpected video packet codec: "+c.codecDescription);switch(c.codecId){default:throw new Error("unsupported video codec: "+c.codecDescription);case p:break;case d:if(c.packetType===v.HEADER)return void a.initializationData.push(c.data)}this.cachedPackets.push({packet:c,timestamp:i,trackId:a.trackId});break;default:throw new Error("unknown packet type: "+e)}this.state===m.NEED_HEADER_DATA&&this._tryGenerateHeader(),this.cachedPackets.length>=50&&this.state===m.MAIN_PACKETS&&this._chunk()},i.prototype.flush=function(){this.cachedPackets.length>0&&this._chunk()},i.prototype._checkIfNeedHeaderData=function(){this.trackStates.some(function(e){return e.trackInfo.codecId===l||e.trackInfo.codecId===d})?this.state=m.NEED_HEADER_DATA:this.state=m.CAN_GENERATE_HEADER},i.prototype._tryGenerateHeader=function(){if(this.trackStates.every(function(e){switch(e.trackInfo.codecId){case l:case d:return e.initializationData.length>0;default:return!0}})){for(var n=["isom"],r=[],i=0;i<this.trackStates.length;i++){var s,o=this.trackStates[i],u=o.trackInfo;switch(u.codecId){case l:var a=o.initializationData[0];s=new e.Iso.AudioSampleEntry("mp4a",1,u.channels,u.samplesize,u.samplerate);var c=new Uint8Array(41+a.length);c.set(t("0000000003808080"),0),c[8]=32+a.length,c.set(t("00020004808080"),9),c[16]=18+a.length,c.set(t("40150000000000FA000000000005808080"),17),c[34]=a.length,c.set(a,35),c.set(t("068080800102"),35+a.length),s.otherBoxes=[new e.Iso.RawTag("esds",c)];var h=a[0]>>3;o.mimeTypeCodec="mp4a.40."+h;break;case f:s=new e.Iso.AudioSampleEntry(".mp3",1,u.channels,u.samplesize,u.samplerate),o.mimeTypeCodec="mp3";break;case d:var v=o.initializationData[0];s=new e.Iso.VideoSampleEntry("avc1",1,u.width,u.height),s.otherBoxes=[new e.Iso.RawTag("avcC",v)];var g=v[1]<<16|v[2]<<8|v[3];o.mimeTypeCodec="avc1."+(16777216|g).toString(16).substr(1),n.push("iso2","avc1","mp41");break;case p:s=new e.Iso.VideoSampleEntry("VP6F",1,u.width,u.height),s.otherBoxes=[new e.Iso.RawTag("glbl",t("00"))],o.mimeTypeCodec="avc1.42001E";break;default:throw new Error("not supported track type")}var y,b=e.Iso.TrackHeaderFlags.TRACK_ENABLED|e.Iso.TrackHeaderFlags.TRACK_IN_MOVIE;o===this.audioTrackState?y=new e.Iso.TrackBox(new e.Iso.TrackHeaderBox(b,o.trackId,-1,0,0,1,i),new e.Iso.MediaBox(new e.Iso.MediaHeaderBox(u.timescale,-1,u.language),new e.Iso.HandlerBox("soun","SoundHandler"),new e.Iso.MediaInformationBox(new e.Iso.SoundMediaHeaderBox,new e.Iso.DataInformationBox(new e.Iso.DataReferenceBox([new e.Iso.DataEntryUrlBox(e.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])),new e.Iso.SampleTableBox(new e.Iso.SampleDescriptionBox([s]),new e.Iso.RawTag("stts",t("0000000000000000")),new e.Iso.RawTag("stsc",t("0000000000000000")),new e.Iso.RawTag("stsz",t("000000000000000000000000")),new e.Iso.RawTag("stco",t("0000000000000000")))))):o===this.videoTrackState&&(y=new e.Iso.TrackBox(new e.Iso.TrackHeaderBox(b,o.trackId,-1,u.width,u.height,0,i),new e.Iso.MediaBox(new e.Iso.MediaHeaderBox(u.timescale,-1,u.language),new e.Iso.HandlerBox("vide","VideoHandler"),new e.Iso.MediaInformationBox(new e.Iso.VideoMediaHeaderBox,new e.Iso.DataInformationBox(new e.Iso.DataReferenceBox([new e.Iso.DataEntryUrlBox(e.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])),new e.Iso.SampleTableBox(new e.Iso.SampleDescriptionBox([s]),new e.Iso.RawTag("stts",t("0000000000000000")),new e.Iso.RawTag("stsc",t("0000000000000000")),new e.Iso.RawTag("stsz",t("000000000000000000000000")),new e.Iso.RawTag("stco",t("0000000000000000"))))))),r.push(y)}var w=new e.Iso.MovieExtendsBox(null,[new e.Iso.TrackExtendsBox(1,1,0,0,0),new e.Iso.TrackExtendsBox(2,1,0,0,0)],null),E=new e.Iso.BoxContainerBox("udat",[new e.Iso.MetaBox(new e.Iso.RawTag("hdlr",t("00000000000000006D6469726170706C000000000000000000")),[new e.Iso.RawTag("ilst",t("00000025A9746F6F0000001D6461746100000001000000004C61766635342E36332E313034"))])]),S=new e.Iso.MovieHeaderBox(1e3,0,this.trackStates.length+1),x=new e.Iso.MovieBox(S,r,w,E),T=new e.Iso.FileTypeBox("isom",512,n),N=T.layout(0),C=x.layout(N),k=new Uint8Array(N+C);T.write(k),x.write(k),this.oncodecinfo(this.trackStates.map(function(e){return e.mimeTypeCodec})),this.ondata(k),this.filePos+=k.length,this.state=m.MAIN_PACKETS}},i.prototype._chunk=function(){var t=this.cachedPackets;if(this.videoTrackState){for(var n=t.length-1,r=this.videoTrackState.trackId;n>0&&(t[n].trackId!==r||t[n].packet.frameType!==c.KEY);)n--;n>0&&(t=t.slice(0,n))}if(0!==t.length){for(var i=[],s=0,o=[],u=[],a=0;a<this.trackStates.length;a++){var h=this.trackStates[a],v=h.trackInfo,m=h.trackId,g=t.filter(function(e){return e.trackId===m});if(0!==g.length){var y,b,w,E=new e.Iso.TrackFragmentBaseMediaDecodeTimeBox(h.cachedDuration);switch(u.push(s),v.codecId){case l:case f:w=[];for(var n=0;n<g.length;n++){var S=g[n].packet,x=Math.round(S.samples*v.timescale/v.samplerate);i.push(S.data),s+=S.data.length,w.push({duration:x,size:S.data.length}),h.samplesProcessed+=S.samples}var T=e.Iso.TrackFragmentFlags.DEFAULT_SAMPLE_FLAGS_PRESENT;y=new e.Iso.TrackFragmentHeaderBox(T,m,0,0,0,0,e.Iso.SampleFlags.SAMPLE_DEPENDS_ON_NO_OTHERS);var N=e.Iso.TrackRunFlags.DATA_OFFSET_PRESENT|e.Iso.TrackRunFlags.SAMPLE_DURATION_PRESENT|e.Iso.TrackRunFlags.SAMPLE_SIZE_PRESENT;b=new e.Iso.TrackRunBox(N,w,0,0),h.cachedDuration=Math.round(h.samplesProcessed*v.timescale/v.samplerate);break;case d:case p:w=[];for(var C=h.samplesProcessed,k=C*v.timescale/v.framerate,L=Math.round(k),n=0;n<g.length;n++){var A=g[n].packet;C++;var O=Math.round(C*v.timescale/v.framerate),M=O-L;L=O;var _=Math.round(C*v.timescale/v.framerate+A.compositionTime*v.timescale/1e3);i.push(A.data),s+=A.data.length;var D=A.frameType===c.KEY?e.Iso.SampleFlags.SAMPLE_DEPENDS_ON_NO_OTHERS:e.Iso.SampleFlags.SAMPLE_DEPENDS_ON_OTHER|e.Iso.SampleFlags.SAMPLE_IS_NOT_SYNC;w.push({duration:M,size:A.data.length,flags:D,compositionTimeOffset:_-O})}var T=e.Iso.TrackFragmentFlags.DEFAULT_SAMPLE_FLAGS_PRESENT;y=new e.Iso.TrackFragmentHeaderBox(T,m,0,0,0,0,e.Iso.SampleFlags.SAMPLE_DEPENDS_ON_NO_OTHERS);var N=e.Iso.TrackRunFlags.DATA_OFFSET_PRESENT|e.Iso.TrackRunFlags.SAMPLE_DURATION_PRESENT|e.Iso.TrackRunFlags.SAMPLE_SIZE_PRESENT|e.Iso.TrackRunFlags.SAMPLE_FLAGS_PRESENT|e.Iso.TrackRunFlags.SAMPLE_COMPOSITION_TIME_OFFSET;b=new e.Iso.TrackRunBox(N,w,0,0),h.cachedDuration=L,h.samplesProcessed=C;break;default:throw new Error("Un codec")}var P=new e.Iso.TrackFragmentBox(y,E,b);o.push(P)}}this.cachedPackets.splice(0,t.length);for(var H=new e.Iso.MovieFragmentHeaderBox(++this.chunkIndex),B=new e.Iso.MovieFragmentBox(H,o),j=B.layout(0),F=new e.Iso.MediaDataBox(i),I=F.layout(j),q=j+8,a=0;a<o.length;a++)o[a].run.dataOffset=q+u[a];var R=new Uint8Array(j+I);B.write(R),F.write(R),this.ondata(R),this.filePos+=R.length}},i}();e.MP4Mux=g,e.parseFLVMetadata=i,e.splitMetadata=s}(e.MP4||(e.MP4={}))}(r||(r={})),function(e){!function(e){!function(e){function t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.prototype.concat.apply(e,t)}function n(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function r(e){return e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3)}function o(e){return(e-h)/1e3|0}function u(e){return 65536*e|0}function a(e){return 1073741824*e|0}function f(e){return 256*e|0}function l(e){return(31&e.charCodeAt(0))<<10|(31&e.charCodeAt(1))<<5|31&e.charCodeAt(2)}var c=i.StringUtilities.utf8decode,h=-20828448e5,p=[1,0,0,0,1,0,0,0,1],d=[0,0,0],v=function(){function e(e,t){this.boxtype=e,"uuid"===e&&(this.userType=t)}return e.prototype.layout=function(e){this.offset=e;var t=8;return this.userType&&(t+=16),this.size=t,t},e.prototype.write=function(e){return n(e,this.offset,this.size),n(e,this.offset+4,r(this.boxtype)),this.userType?(e.set(this.userType,this.offset+8),24):8},e.prototype.toUint8Array=function(){var e=this.layout(0),t=new Uint8Array(e);return this.write(t),t},e}();e.Box=v;var m=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i=e.call(this,t)||this;return i.version=n,i.flags=r,i}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.version<<24|this.flags),r+4},t}(v);e.FullBox=m;var g=function(e){function t(t,n,r){var i=e.call(this,"ftype")||this;return i.majorBrand=t,i.minorVersion=n,i.compatibleBrands=r,i}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+4*(2+this.compatibleBrands.length),this.size},t.prototype.write=function(t){var i=this,s=e.prototype.write.call(this,t);return n(t,this.offset+s,r(this.majorBrand)),n(t,this.offset+s+4,this.minorVersion),s+=8,this.compatibleBrands.forEach(function(e){n(t,i.offset+s,r(e)),s+=4},this),s},t}(v);e.FileTypeBox=g;var y=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t);return this.children.forEach(function(e){e&&(n+=e.layout(t+n))}),this.size=n},t.prototype.write=function(t){var n=e.prototype.write.call(this,t);return this.children.forEach(function(e){e&&(n+=e.write(t))}),n},t}(v);e.BoxContainerBox=y;var b=function(e){function n(n,r,i,s){var o=e.call(this,"moov",t([n],r,[i,s]))||this;return o.header=n,o.tracks=r,o.extendsBox=i,o.userData=s,o}return s(n,e),n}(y);e.MovieBox=b;var w=function(e){function t(t,n,r,i,s,o,u,a){void 0===i&&(i=1),void 0===s&&(s=1),void 0===o&&(o=p),void 0===u&&(u=h),void 0===a&&(a=h);var f=e.call(this,"mvhd",0,0)||this;return f.timescale=t,f.duration=n,f.nextTrackId=r,f.rate=i,f.volume=s,f.matrix=o,f.creationTime=u,f.modificationTime=a,f}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+16+4+2+2+8+36+24+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,o(this.creationTime)),n(t,this.offset+r+4,o(this.modificationTime)),n(t,this.offset+r+8,this.timescale),n(t,this.offset+r+12,this.duration),r+=16,n(t,this.offset+r,u(this.rate)),n(t,this.offset+r+4,f(this.volume)<<16),n(t,this.offset+r+8,0),n(t,this.offset+r+12,0),r+=16,n(t,this.offset+r,u(this.matrix[0])),n(t,this.offset+r+4,u(this.matrix[1])),n(t,this.offset+r+8,u(this.matrix[2])),n(t,this.offset+r+12,u(this.matrix[3])),n(t,this.offset+r+16,u(this.matrix[4])),n(t,this.offset+r+20,u(this.matrix[5])),n(t,this.offset+r+24,a(this.matrix[6])),n(t,this.offset+r+28,a(this.matrix[7])),n(t,this.offset+r+32,a(this.matrix[8])),r+=36,n(t,this.offset+r,0),n(t,this.offset+r+4,0),n(t,this.offset+r+8,0),n(t,this.offset+r+12,0),n(t,this.offset+r+16,0),n(t,this.offset+r+20,0),r+=24,n(t,this.offset+r,this.nextTrackId),r+=4},t}(m);e.MovieHeaderBox=w,!function(e){e[e.TRACK_ENABLED=1]="TRACK_ENABLED",e[e.TRACK_IN_MOVIE=2]="TRACK_IN_MOVIE",e[e.TRACK_IN_PREVIEW=4]="TRACK_IN_PREVIEW"}(e.TrackHeaderFlags||(e.TrackHeaderFlags={}));var E=function(e){function t(t,n,r,i,s,o,u,a,f,l,c){void 0===u&&(u=0),void 0===a&&(a=0),void 0===f&&(f=p),void 0===l&&(l=h),void 0===c&&(c=h);var d=e.call(this,"tkhd",0,t)||this;return d.trackId=n,d.duration=r,d.width=i,d.height=s,d.volume=o,d.alternateGroup=u,d.layer=a,d.matrix=f,d.creationTime=l,d.modificationTime=c,d}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+20+8+6+2+36+8,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,o(this.creationTime)),n(t,this.offset+r+4,o(this.modificationTime)),n(t,this.offset+r+8,this.trackId),n(t,this.offset+r+12,0),n(t,this.offset+r+16,this.duration),r+=20,n(t,this.offset+r,0),n(t,this.offset+r+4,0),n(t,this.offset+r+8,this.layer<<16|this.alternateGroup),n(t,this.offset+r+12,f(this.volume)<<16),r+=16,n(t,this.offset+r,u(this.matrix[0])),n(t,this.offset+r+4,u(this.matrix[1])),n(t,this.offset+r+8,u(this.matrix[2])),n(t,this.offset+r+12,u(this.matrix[3])),n(t,this.offset+r+16,u(this.matrix[4])),n(t,this.offset+r+20,u(this.matrix[5])),n(t,this.offset+r+24,a(this.matrix[6])),n(t,this.offset+r+28,a(this.matrix[7])),n(t,this.offset+r+32,a(this.matrix[8])),r+=36,n(t,this.offset+r,u(this.width)),n(t,this.offset+r+4,u(this.height)),r+=8},t}(m);e.TrackHeaderBox=E;var S=function(e){function t(t,n,r,i,s){void 0===r&&(r="unk"),void 0===i&&(i=h),void 0===s&&(s=h);var o=e.call(this,"mdhd",0,0)||this;return o.timescale=t,o.duration=n,o.language=r,o.creationTime=i,o.modificationTime=s,o}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+16+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,o(this.creationTime)),n(t,this.offset+r+4,o(this.modificationTime)),n(t,this.offset+r+8,this.timescale),n(t,this.offset+r+12,this.duration),n(t,this.offset+r+16,l(this.language)<<16),r+20},t}(m);e.MediaHeaderBox=S;var x=function(e){function t(t,n){var r=e.call(this,"hdlr",0,0)||this;return r.handlerType=t,r.name=n,r._encodedName=c(r.name),r}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+8+12+(this._encodedName.length+1),this.size},t.prototype.write=function(t){var i=e.prototype.write.call(this,t);return n(t,this.offset+i,0),n(t,this.offset+i+4,r(this.handlerType)),n(t,this.offset+i+8,0),n(t,this.offset+i+12,0),n(t,this.offset+i+16,0),i+=20,t.set(this._encodedName,this.offset+i),t[this.offset+i+this._encodedName.length]=0,i+=this._encodedName.length+1},t}(m);e.HandlerBox=x;var T=function(e){function t(t){void 0===t&&(t=0);var n=e.call(this,"smhd",0,0)||this;return n.balance=t,n}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,f(this.balance)<<16),r+4},t}(m);e.SoundMediaHeaderBox=T;var N=function(e){function t(t,n){void 0===t&&(t=0),void 0===n&&(n=d);var r=e.call(this,"vmhd",0,0)||this;return r.graphicsMode=t,r.opColor=n,r}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+8,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.graphicsMode<<16|this.opColor[0]),n(t,this.offset+r+4,this.opColor[1]<<16|this.opColor[2]),r+8},t}(m);e.VideoMediaHeaderBox=N,e.SELF_CONTAINED_DATA_REFERENCE_FLAG=1;var C=function(t){function n(n,r){void 0===r&&(r=null);var i=t.call(this,"url ",0,n)||this;return i.location=r,n&e.SELF_CONTAINED_DATA_REFERENCE_FLAG||(i._encodedLocation=c(r)),i}return s(n,t),n.prototype.layout=function(e){var n=t.prototype.layout.call(this,e);return this._encodedLocation&&(n+=this._encodedLocation.length+1),this.size=n},n.prototype.write=function(e){var n=t.prototype.write.call(this,e);return this._encodedLocation&&(e.set(this._encodedLocation,this.offset+n),e[this.offset+n+this._encodedLocation.length]=0,n+=this._encodedLocation.length),n},n}(m);e.DataEntryUrlBox=C;var k=function(e){function t(t){var n=e.call(this,"dref",0,0)||this;return n.entries=t,n}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t)+4;return this.entries.forEach(function(e){n+=e.layout(t+n)}),this.size=n},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.entries.length),this.entries.forEach(function(e){r+=e.write(t)}),r},t}(m);e.DataReferenceBox=k;var L=function(e){function t(t){var n=e.call(this,"dinf",[t])||this;return n.dataReference=t,n}return s(t,e),t}(y);e.DataInformationBox=L;var A=function(e){function t(t){var n=e.call(this,"stsd",0,0)||this;return n.entries=t,n}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t);return n+=4,this.entries.forEach(function(e){n+=e.layout(t+n)}),this.size=n},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.entries.length),r+=4,this.entries.forEach(function(e){r+=e.write(t)}),r},t}(m);e.SampleDescriptionBox=A;var O=function(e){function t(t,n,r,i,s){var o=e.call(this,"stbl",[t,n,r,i,s])||this;return o.sampleDescriptions=t,o.timeToSample=n,o.sampleToChunk=r,o.sampleSizes=i,o.chunkOffset=s,o}return s(t,e),t}(y);e.SampleTableBox=O;var M=function(e){function t(t,n,r){var i=e.call(this,"minf",[t,n,r])||this;return i.header=t,i.info=n,i.sampleTable=r,i}return s(t,e),t}(y);e.MediaInformationBox=M;var _=function(e){function t(t,n,r){var i=e.call(this,"mdia",[t,n,r])||this;return i.header=t,i.handler=n,i.info=r,i}return s(t,e),t}(y);e.MediaBox=_;var D=function(e){function t(t,n){var r=e.call(this,"trak",[t,n])||this;return r.header=t,r.media=n,r}return s(t,e),t}(y);e.TrackBox=D;var P=function(e){function t(t,n,r,i,s){var o=e.call(this,"trex",0,0)||this;return o.trackId=t,o.defaultSampleDescriptionIndex=n,o.defaultSampleDuration=r,o.defaultSampleSize=i,o.defaultSampleFlags=s,o}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+20,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.trackId),n(t,this.offset+r+4,this.defaultSampleDescriptionIndex),n(t,this.offset+r+8,this.defaultSampleDuration),n(t,this.offset+r+12,this.defaultSampleSize),n(t,this.offset+r+16,this.defaultSampleFlags),r+20},t}(m);e.TrackExtendsBox=P;var H=function(e){function n(n,r,i){var s=e.call(this,"mvex",t([n],r,[i]))||this;return s.header=n,s.tracDefaults=r,s.levels=i,s}return s(n,e),n}(y);e.MovieExtendsBox=H;var B=function(e){function t(t,n){var r=e.call(this,"meta",0,0)||this;return r.handler=t,r.otherBoxes=n,r}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t);return n+=this.handler.layout(t+n),this.otherBoxes.forEach(function(e){n+=e.layout(t+n)}),this.size=n},t.prototype.write=function(t){var n=e.prototype.write.call(this,t);return n+=this.handler.write(t),this.otherBoxes.forEach(function(e){n+=e.write(t)}),n},t}(m);e.MetaBox=B;var j=function(e){function t(t){var n=e.call(this,"mfhd",0,0)||this;return n.sequenceNumber=t,n}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.sequenceNumber),r+4},t}(m);e.MovieFragmentHeaderBox=j;var F;!function(e){e[e.BASE_DATA_OFFSET_PRESENT=1]="BASE_DATA_OFFSET_PRESENT",e[e.SAMPLE_DESCRIPTION_INDEX_PRESENT=2]="SAMPLE_DESCRIPTION_INDEX_PRESENT",e[e.DEFAULT_SAMPLE_DURATION_PRESENT=8]="DEFAULT_SAMPLE_DURATION_PRESENT",e[e.DEFAULT_SAMPLE_SIZE_PRESENT=16]="DEFAULT_SAMPLE_SIZE_PRESENT",e[e.DEFAULT_SAMPLE_FLAGS_PRESENT=32]="DEFAULT_SAMPLE_FLAGS_PRESENT"}(F=e.TrackFragmentFlags||(e.TrackFragmentFlags={}));var I=function(e){function t(t,n,r,i,s,o,u){var a=e.call(this,"tfhd",0,t)||this;return a.trackId=n,a.baseDataOffset=r,a.sampleDescriptionIndex=i,a.defaultSampleDuration=s,a.defaultSampleSize=o,a.defaultSampleFlags=u,a}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t)+4,r=this.flags;return r&F.BASE_DATA_OFFSET_PRESENT&&(n+=8),r&F.SAMPLE_DESCRIPTION_INDEX_PRESENT&&(n+=4),r&F.DEFAULT_SAMPLE_DURATION_PRESENT&&(n+=4),r&F.DEFAULT_SAMPLE_SIZE_PRESENT&&(n+=4),r&F.DEFAULT_SAMPLE_FLAGS_PRESENT&&(n+=4),this.size=n},t.prototype.write=function(t){var r=e.prototype.write.call(this,t),i=this.flags;return n(t,this.offset+r,this.trackId),r+=4,i&F.BASE_DATA_OFFSET_PRESENT&&(n(t,this.offset+r,0),n(t,this.offset+r+4,this.baseDataOffset),r+=8),i&F.SAMPLE_DESCRIPTION_INDEX_PRESENT&&(n(t,this.offset+r,this.sampleDescriptionIndex),r+=4),i&F.DEFAULT_SAMPLE_DURATION_PRESENT&&(n(t,this.offset+r,this.defaultSampleDuration),r+=4),i&F.DEFAULT_SAMPLE_SIZE_PRESENT&&(n(t,this.offset+r,this.defaultSampleSize),r+=4),i&F.DEFAULT_SAMPLE_FLAGS_PRESENT&&(n(t,this.offset+r,this.defaultSampleFlags),r+=4),r},t}(m);e.TrackFragmentHeaderBox=I;var q=function(e){function t(t){var n=e.call(this,"tfdt",0,0)||this;return n.baseMediaDecodeTime=t,n}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+4,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,this.baseMediaDecodeTime),r+4},t}(m);e.TrackFragmentBaseMediaDecodeTimeBox=q;var R=function(e){function t(t,n,r){var i=e.call(this,"traf",[t,n,r])||this;return i.header=t,i.decodeTime=n,i.run=r,i}return s(t,e),t}(y);e.TrackFragmentBox=R,!function(e){e[e.IS_LEADING_MASK=201326592]="IS_LEADING_MASK",e[e.SAMPLE_DEPENDS_ON_MASK=50331648]="SAMPLE_DEPENDS_ON_MASK",e[e.SAMPLE_DEPENDS_ON_OTHER=16777216]="SAMPLE_DEPENDS_ON_OTHER",e[e.SAMPLE_DEPENDS_ON_NO_OTHERS=33554432]="SAMPLE_DEPENDS_ON_NO_OTHERS",e[e.SAMPLE_IS_DEPENDED_ON_MASK=12582912]="SAMPLE_IS_DEPENDED_ON_MASK",e[e.SAMPLE_HAS_REDUNDANCY_MASK=3145728]="SAMPLE_HAS_REDUNDANCY_MASK",e[e.SAMPLE_PADDING_VALUE_MASK=917504]="SAMPLE_PADDING_VALUE_MASK",e[e.SAMPLE_IS_NOT_SYNC=65536]="SAMPLE_IS_NOT_SYNC",e[e.SAMPLE_DEGRADATION_PRIORITY_MASK=65535]="SAMPLE_DEGRADATION_PRIORITY_MASK"}(e.SampleFlags||(e.SampleFlags={}));var U;!function(e){e[e.DATA_OFFSET_PRESENT=1]="DATA_OFFSET_PRESENT",e[e.FIRST_SAMPLE_FLAGS_PRESENT=4]="FIRST_SAMPLE_FLAGS_PRESENT",e[e.SAMPLE_DURATION_PRESENT=256]="SAMPLE_DURATION_PRESENT",e[e.SAMPLE_SIZE_PRESENT=512]="SAMPLE_SIZE_PRESENT",e[e.SAMPLE_FLAGS_PRESENT=1024]="SAMPLE_FLAGS_PRESENT",e[e.SAMPLE_COMPOSITION_TIME_OFFSET=2048]="SAMPLE_COMPOSITION_TIME_OFFSET"}(U=e.TrackRunFlags||(e.TrackRunFlags={}));var z=function(e){function t(t,n,r,i){var s=e.call(this,"trun",1,t)||this;return s.samples=n,s.dataOffset=r,s.firstSampleFlags=i,s}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t)+4,r=this.samples.length,i=this.flags;return i&U.DATA_OFFSET_PRESENT&&(n+=4),i&U.FIRST_SAMPLE_FLAGS_PRESENT&&(n+=4),i&U.SAMPLE_DURATION_PRESENT&&(n+=4*r),i&U.SAMPLE_SIZE_PRESENT&&(n+=4*r),i&U.SAMPLE_FLAGS_PRESENT&&(n+=4*r),i&U.SAMPLE_COMPOSITION_TIME_OFFSET&&(n+=4*r),this.size=n},t.prototype.write=function(t){var r=e.prototype.write.call(this,t),i=this.samples.length,s=this.flags;n(t,this.offset+r,i),r+=4,s&U.DATA_OFFSET_PRESENT&&(n(t,this.offset+r,this.dataOffset),r+=4),s&U.FIRST_SAMPLE_FLAGS_PRESENT&&(n(t,this.offset+r,this.firstSampleFlags),r+=4);for(var o=0;o<i;o++){var u=this.samples[o];s&U.SAMPLE_DURATION_PRESENT&&(n(t,this.offset+r,u.duration),r+=4),s&U.SAMPLE_SIZE_PRESENT&&(n(t,this.offset+r,u.size),r+=4),s&U.SAMPLE_FLAGS_PRESENT&&(n(t,this.offset+r,u.flags),r+=4),s&U.SAMPLE_COMPOSITION_TIME_OFFSET&&(n(t,this.offset+r,u.compositionTimeOffset),r+=4)}return r},t}(m);e.TrackRunBox=z;var W=function(e){function n(n,r){var i=e.call(this,"moof",t([n],r))||this;return i.header=n,i.trafs=r,i}return s(n,e),n}(y);e.MovieFragmentBox=W;var X=function(e){function t(t){var n=e.call(this,"mdat")||this;return n.chunks=t,n}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t);return this.chunks.forEach(function(e){n+=e.length}),this.size=n},t.prototype.write=function(t){var n=this,r=e.prototype.write.call(this,t);return this.chunks.forEach(function(e){t.set(e,n.offset+r),r+=e.length},this),r},t}(v);e.MediaDataBox=X;var V=function(e){function t(t,n){var r=e.call(this,t)||this;return r.dataReferenceIndex=n,r}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+8,this.size},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,0),n(t,this.offset+r+4,this.dataReferenceIndex),r+8},t}(v);e.SampleEntry=V;var $=function(e){function t(t,n,r,i,s,o){void 0===r&&(r=2),void 0===i&&(i=16),void 0===s&&(s=44100),void 0===o&&(o=null);var u=e.call(this,t,n)||this;return u.channelCount=r,u.sampleSize=i,u.sampleRate=s,u.otherBoxes=o,u}return s(t,e),t.prototype.layout=function(t){var n=e.prototype.layout.call(this,t)+20;return this.otherBoxes&&this.otherBoxes.forEach(function(e){n+=e.layout(t+n)}),this.size=n},t.prototype.write=function(t){var r=e.prototype.write.call(this,t);return n(t,this.offset+r,0),n(t,this.offset+r+4,0),n(t,this.offset+r+8,this.channelCount<<16|this.sampleSize),n(t,this.offset+r+12,0),n(t,this.offset+r+16,this.sampleRate<<16),r+=20,this.otherBoxes&&this.otherBoxes.forEach(function(e){r+=e.write(t)}),r},t}(V);e.AudioSampleEntry=$,e.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH=24;var J=function(t){function r(n,r,i,s,o,u,a,f,l,c){void 0===o&&(o=""),void 0===u&&(u=72),void 0===a&&(a=72),void 0===f&&(f=1),void 0===l&&(l=e.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH),void 0===c&&(c=null);var h=t.call(this,n,r)||this;if(h.width=i,h.height=s,h.compressorName=o,h.horizResolution=u,h.vertResolution=a,h.frameCount=f,h.depth=l,h.otherBoxes=c,o.length>31)throw new Error("invalid compressor name");return h}return s(r,t),r.prototype.layout=function(e){var n=t.prototype.layout.call(this,e)+16+12+4+2+32+2+2;return this.otherBoxes&&this.otherBoxes.forEach(function(t){n+=t.layout(e+n)}),this.size=n},r.prototype.write=function(e){var r=t.prototype.write.call(this,e);n(e,this.offset+r,0),n(e,this.offset+r+4,0),n(e,this.offset+r+8,0),n(e,this.offset+r+12,0),r+=16,n(e,this.offset+r,this.width<<16|this.height),n(e,this.offset+r+4,u(this.horizResolution)),n(e,this.offset+r+8,u(this.vertResolution)),r+=12,n(e,this.offset+r,0),n(e,this.offset+r+4,this.frameCount<<16),r+=6,e[this.offset+r]=this.compressorName.length;for(var i=0;i<31;i++)e[this.offset+r+i+1]=i<this.compressorName.length?127&this.compressorName.charCodeAt(i):0;return r+=32,n(e,this.offset+r,this.depth<<16|65535),r+=4,this.otherBoxes&&this.otherBoxes.forEach(function(t){r+=t.write(e)}),r},r}(V);e.VideoSampleEntry=J;var K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return s(t,e),t.prototype.layout=function(t){return this.size=e.prototype.layout.call(this,t)+this.data.length,this.size},t.prototype.write=function(t){var n=e.prototype.write.call(this,t);return t.set(this.data,this.offset+n),n+this.data.length},t}(v);e.RawTag=K}(e.Iso||(e.Iso={}))}(e.MP4||(e.MP4={}))}(r||(r={})),t.MP4Mux=r.MP4.MP4Mux},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),s=n(34);t.OggOpusToWebm={getInputFormat:function(){return{mimeType:"audio/ogg",audioCodec:{id:"opus"}}},getOutputFormat:function(){return{mimeType:"audio/webm",audioCodec:{id:"opus"}}},transmux:function(e){return(new r.helpers.abortableJob.AbortableJob(function(){function t(t){h=!0,n.reject(t),e.abort()}var n=r.helpers.deferred.buildDeferred(),o=new r.eventDispatcher.EventDispatcher,u=[],a=null,f=new Uint8Array(0),l=!1,c=null,h=!1;return e.onProgressUpdate(function(e){if(!h){var n=[f,e.data];!l&&e.initData&&(n=[e.initData].concat(n)),l=!0;var p=r.helpers.arrayBuffer.combine(n);try{var d=i.retrievePages(p).pages,v=d.reduce(function(e,t){return e+t.entirePage.byteLength},0);f=new Uint8Array(p.buffer.slice(v));var m=i.retrievePackets(d);if(m.length&&!a){if(m.length<2)throw new Error("Expecting at least 2 opus packets.");s.parseOpusHead(m[0]).outputGain>-2&&s.setOutputGain(m[0],-2),a=[m[0],m[1]],m=m.slice(2)}if(m.length&&a){u.push.apply(u,m);var g=s.buildWebm(a.concat(m));c||(c=g.initData),o.dispatch({initData:c,data:g.data})}}catch(y){t(y)}}}),e.onCompletion(function(e){f.byteLength?n.reject(new Error("Still data left in buffer.")):n.resolve(e)}),e.onError(t),{result:n.promise,progressUpdates:{onProgressUpdate:o,getProgressSoFar:function(){if(u.length&&a){var e=s.buildWebm(a.concat(u)).data;return{initData:c,data:e}}return null}},abort:function(){h=!0,e.abort()}}})).run()}}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.MP4ToMP4={getInputFormat:function(){return{mimeType:"audio/mp4"}},getOutputFormat:function(){return{mimeType:"audio/mp4"}},transmux:function(e){return(new r.helpers.abortableJob.AbortableJob(function(){function t(t){n.reject(t),e.abort()}var n=r.helpers.deferred.buildDeferred(),i=new r.eventDispatcher.EventDispatcher,s=[],o=[],u=new Uint8Array(0),a=null,f=!1,l=function(e){if(e.byteLength<4)return void (u=e);if(null===a){var t=(new DataView(e.buffer)).getUint32(0);if(1===t)throw new Error("Large atom size not supported.");a=t}if(0!==a&&e.byteLength>=a){var n=new Uint8Array(e.buffer.slice(0,a));o.push(n),u=new Uint8Array(e.buffer.slice(a)),a=null,l(u)}else u=e};return e.onProgressUpdate(function(e){var n=e.data;!f&&e.initData&&(n=r.helpers.arrayBuffer.combine([e.initData,e.data])),f=!0;try{var a=r.helpers.arrayBuffer.combine([u,n]);if(l(a),o.length){var c=r.helpers.arrayBuffer.combine(o);o.splice(0),s.push(c),i.dispatch({data:c})}}catch(h){t(h)}}),e.onCompletion(function(e){try{if(0===a)s.push(u),i.dispatch({data:u});else if(u.byteLength)throw new Error("Part way through an atom.");n.resolve(e)}catch(r){t(r)}}),e.onError(t),{result:n.promise,progressUpdates:{onProgressUpdate:i,getProgressSoFar:function(){return s.length?{data:r.helpers.arrayBuffer.combine(s)}:null}},abort:function(){e.abort()}}})).run()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),i=n(37),s=n(5),o=n(1),u=n(6),a=n(9),f=n(38);!function(e){e.NoDecryptorError=r.NoDecryptorError,e.PlaylistParseError=i.PlaylistParseError,e.OggParserError=s.OggParserError,e.Mp3TransmuxerRetrievalError=u.Mp3TransmuxerRetrievalError,e.RetrievalError=o.RetrievalError,e.UnacceptableResponseStatusCodeError=a.UnacceptableResponseStatusCodeError,e.UnsupportedEncryptionError=f.UnsupportedEncryptionError}(t.retrievalErrors||(t.retrievalErrors={}))},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(t){var n=e.call(this)||this;return n._details=t,n}return r(t,e),t.prototype.getDetails=function(){return this._details},t.prototype.getCode=function(){return"PLAYLIST_PARSE"},t}(i.RetrievalError);t.PlaylistParseError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getCode=function(){return"UNSUPPORTED_ENCRYPTION_ERROR"},t}(i.RetrievalError);t.UnsupportedEncryptionError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),i=n(41),s=n(42),o=n(8);!function(e){e.InitData=r.InitData,e.Key=i.Key,e.Playlist=s.Playlist,e.Segment=o.Segment}(t.events||(t.events={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._playlist=e,this._url=t}return e.prototype.getPlaylist=function(){return this._playlist},e.prototype.getUrl=function(){return this._url},e}();t.InitData=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._playlist=e,this._url=t}return e.prototype.getPlaylist=function(){return this._playlist},e.prototype.getUrl=function(){return this._url},e}();t.Key=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._url=e}return e.prototype.getUrl=function(){return this._url},e}();t.Playlist=r}])})},function(e,t,n){e.exports={SCAudio:n(1),SCAudioMediaPayloadStreamURLRetriever:n(7),MaestroCore:n(0),MaestroLoaders:n(2),SCAudioControllerHTML5Player:n(3),SCAudioControllerHLSMSEPlayer:n(8)}},function(e,t,n){!function(t,r){e.exports=r(n(0),n(1))}(window,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="23.7.2",t.buildNumber=928;var r=n(1);t.StreamUrlRetriever=r.StreamUrlRetriever},function(e,t,n){"use strict";function r(e){switch(e){case"encrypted-hls":return"encrypted-hls";case"hls":return"hls";case"progressive":return"http"}return null}function i(e){var t=p.exec(e);return t?{mimeType:t[1],audioCodec:t[2]?{id:t[2]}:void 0,videoCodec:t[3]?{id:t[3]}:void 0}:null}function s(e,t){return e.mimeType===t.mimeType&&!e.audioCodec==!t.audioCodec&&(!e.audioCodec||!t.audioCodec||e.audioCodec.id===t.audioCodec.id)&&!e.videoCodec==!t.videoCodec&&(!e.videoCodec||!t.videoCodec||e.videoCodec.id===t.videoCodec.id)}function o(e,t){var n=l.parseURL(e);if(!n)throw new Error("Unable to parse url.");var r=n.query.slice(1).split("&").filter(Boolean),i=Object.create(null);r.forEach(function(e){var t=e.split("=",2);i[encodeURIComponent(t[0])]=t.length>1?decodeURIComponent(e.slice(e.indexOf("=")+1)):void 0});var s=f({},i,t);return n.query="?"+Object.keys(s).map(function(e){var t=encodeURIComponent(e),n=s[e];return n&&(t+="="+encodeURIComponent(n)),t}).join("&"),l.buildURLFromParts(n)}function u(e){return 429===e.statusCode}var a=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=this&&this.__assign||function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},f.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(3),h=n(4),p=/^([^;]+)(?:; codecs="([^,]+)(?:,(.+))?")?$/,d=new h.Limiter,v=[h.renditions.encryptedHlsMp3,h.renditions.hlsMp3,h.renditions.encryptedHlsOpus,h.renditions.hlsOpus,h.renditions.hlsAACHQ,h.renditions.encryptedHlsAACHQ,h.renditions.httpMp3,h.renditions.httpAACHQ],m=function(e){function t(t){var n=t.loader,r=t.trackId,i=t.secretToken,s=void 0===i?null:i,o=t.mediaPayload,u=t.clientId,a=t.requestAuthorization,f=void 0===a?null:a,l=t.excludedRenditions,c=void 0===l?[]:l,h=e.call(this)||this;if(h.name="MediaPayload",!n)throw new Error("loader required.");if(!o)throw new Error("mediaPayload required.");if("string"!=typeof u)throw new Error("clientId invalid.");if("number"!=typeof r)throw new Error("trackId invalid.");if(null!==s&&"string"!=typeof s)throw new Error("secretToken invalid.");if(null!==f&&"string"!=typeof f)throw new Error("requestAuthorizaton invalid.");return h._loader=n,h._clientId=u,h._requestAuthorization=f,h._trackId=r,h._secretToken=s,h._mediaPayload=o,h._excludedRenditions=c,h}return a(t,e),t.prototype.getTrackId=function(){return this._trackId},t.prototype.excludeRendition=function(e){this._excludedRenditions.indexOf(e)<0&&this._excludedRenditions.push(e)},t.prototype.getUrl=function(e){var t=this,n=e.snippet,r=e.qualities,i=void 0===r?[h.Quality.SQ]:r;return(new c.helpers.abortableJob.AbortableJob(function(){var e=t._mediaPayload.transcodings.map(function(e){var r=e.format,s=r.protocol,o=r.mime_type,u=t._lookupRendition(s,o),a=h.resolveQuality(e.quality);return a?u&&-1===t._excludedRenditions.indexOf(u)&&e.snipped===n&&i.indexOf(a)>=0?{rendition:u,transcoding:e,quality:a,preset:e.preset}:null:null}).filter(Boolean);if(!e.length)return{result:c.helpers.Promise.resolve(null)};var r=c.helpers.deferred.buildDeferred(),s=e[0],o=s.transcoding,u=s.rendition,a=s.quality,f=s.preset,l=t._retrieveStreamUrl(o.url);return l.onCompletion(function(e){r.resolve({success:!0,url:e,rendition:u,quality:a,preset:f,timeRetrieved:c.helpers.time.now()})}),l.onError(function(e){e instanceof h.UrlRetrieverError?r.resolve({success:!1,error:e,rendition:u,quality:a,preset:f,timeRetrieved:c.helpers.time.now()}):r.reject(e)}),{result:r.promise,abort:function(){return l.abort()}}})).run()},t.prototype.updateRequestAuthorization=function(e){if(null!==e&&"string"!=typeof e)throw new Error("requestAuthorizaton invalid.");this._requestAuthorization=e},t.prototype.updateMediaPayload=function(e){if(!e||"object"!=typeof e)throw new Error("mediaPayload invalid.");this._mediaPayload=e},t.prototype._lookupRendition=function(e,t){var n=r(e);if(!n)return null;var o=i(t);return o?c.helpers.find(v,function(e){var t=e.maestroSegmentFormat||e.maestroFormat;return e.scProtocol===n&&s(t,o)})||null:null},t.prototype._retrieveStreamUrl=function(e){var t=this;return(new c.helpers.abortableJob.AbortableJob(function(){var n=null,r=c.helpers.deferred.buildDeferred(),i=d.execute(function(){var i=t._requestAuthorization?{Authorization:t._requestAuthorization}:{},s={client_id:t._clientId};t._secretToken&&(s.secret_token=t._secretToken);var a=o(e,s);n=t._loader.request({url:a,headers:i});var f=n.getResponse().then(function(e){if(!e)throw new h.UrlRetrieverError("TIMED_OUT",!0);if(200!==e.statusCode)throw new h.UrlRetrieverError("INVALID_STATUS_"+e.statusCode,u(e));var t=e.getData();if(!t)throw new h.UrlRetrieverError("NO_DATA");var n=JSON.parse(t).url;if("string"!=typeof n||!n)throw new h.UrlRetrieverError("NO_STREAM_URL");return n}).catch(function(e){throw e instanceof h.UrlRetrieverError?e:new h.UrlRetrieverError("UNEXPECTED_ERROR",!1,e)});return r.resolve(f),f});return{result:r.promise,abort:function(){return i.abort()}}})).run()},t}(h.BaseStreamUrlRetriever);t.StreamUrlRetriever=m},function(e,t,n){!function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=o.normalizePath(s.path),o.buildURLFromParts(s)):t;var u=o.parseURL(e);if(!u)throw new Error("Error trying to parse base URL.");if(!u.netLoc&&u.path&&"/"!==u.path[0]){var a=r.exec(u.path);u.netLoc=a[1],u.path=a[2]}u.netLoc&&!u.path&&(u.path="/");var f={scheme:u.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(f.netLoc=u.netLoc,"/"!==s.path[0]))if(s.path){var l=u.path,c=l.substring(0,l.lastIndexOf("/")+1)+s.path;f.path=o.normalizePath(c)}else f.path=u.path,s.params||(f.params=u.params,s.query||(f.query=u.query));return null===f.path&&(f.path=n.alwaysNormalize?o.normalizePath(s.path):s.path),o.buildURLFromParts(f)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(s,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o}()},function(t,n){t.exports=e},function(e,n){e.exports=t}])})},function(e,t,n){!function(t,r){e.exports=r(n(9),n(1),n(3),n(0),n(2),n(12))}(window,function(e,t,n,r,i,s){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="23.7.2",t.buildNumber=928;var r=n(2);t.HLSMSEPlayerController=r.HLSMSEPlayerController;var i=n(0);t.HLSMSEPlayer=i.HLSMSEPlayer},function(e,t,n){"use strict";function r(e){return e.match(c)[0]}var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),o=n(4),u=n(5),a=n(6),f=n(7),l=n(0),c=/^[^\?#]*/,h=function(e){function t(t){var n=e.call(this)||this;return n._mediaElementManager=t,n.name="MaestroHLSMSE",n}return i(t,e),t.prototype.isRenditionSupported=function(e){return-1!==["hls","encrypted-hls"].indexOf(e.scProtocol)&&l.HLSMSEPlayer.isFormatSupported(e.maestroSegmentFormat||{})},t.prototype.buildPlayer=function(e){return new p(e,this._mediaElementManager)},t}(s.BaseController);t.HLSMSEPlayerController=h;var p=function(){function e(e,t){var n=this;this._config=e,this._mediaElementManager=t,this._urlRefreshRetrieveHandle=null;var i=e.logger,s=e.playerId,a=e.urlAndRendition,f=e.streamUrlExpires,c=e.reportError,h=e.fadeOnPauseAndPlay,p=e.fadeOnSeek,d=e.releaseControl,v=e.getNewUrl,m=e.seekStrategy;this._currentUrl=a.url;var g=a.rendition.maestroSegmentFormat||{},y=this._buildPlaylist(a.url),b=this._player=new l.HLSMSEPlayer({playlist:y,segmentFormat:g},{name:s,mediaElement:null,fadeSupportEnabled:h||p,defaultFadeDuration:h?void 0:0,defaultSeekFadeInDuration:p?void 0:0,defaultSeekFadeOutDuration:p?void 0:0,logger:i,seekStrategy:m,registerListeners:function(e){var t=e.onError,s=e.onChange;t.subscribe(function(e){if(f){if(e instanceof u.errors.URLUpdateError)return i.error("URL refresh failed for some reason.",e),void d({retry:!0});if(n._isErrorWhichShouldTriggerURLRefresh(e))return n._urlRefreshRetrieveHandle?void i.debug("Got a 403 status code, but URL refresh already in progress."):(i.info("Got a 403 status code. Peforming a URL refresh..."),void (n._urlRefreshRetrieveHandle=v()).whenComplete().then(function(e){n._urlRefreshRetrieveHandle=null,e?r(e)!==r(n._currentUrl)?(i.warn("Got a new URL but the rendition did not match the original."),d({retry:!1})):(n._currentUrl=e,i.info("Got a new URL. Updating..."),b.switchPlaylist(n._buildPlaylist(e))):(i.warn("Could not get a new URL."),d({retry:!1}))}).catch(function(e){i.error("Unexpected error when trying to retrieve a new URL.",e),d({retry:!1})}))}c(e.getCode()),o.HTML5PlayerController.errorQualifiesAbort(e)&&d({retry:!1})}),s.subscribe(function(e){e.dead&&(n._urlRefreshRetrieveHandle&&(n._urlRefreshRetrieveHandle.abort(),n._urlRefreshRetrieveHandle=null),d({retry:!1}))})}});this._mediaElementManager.registerPlayer(b,function(){return d({retry:!1})})}return e.prototype.getPlayer=function(){return this._player},e.prototype.getUrl=function(){return this._currentUrl},e.prototype._buildPlaylist=function(e){var t=new a.ArrayBufferLoader({fetchEnabled:this._config.fetchEnabled});return new f.PlaylistHLS({url:e,playlistLoader:a.stringLoader,segmentLoader:t,keyLoader:t,segmentFormat:this._config.urlAndRendition.rendition.maestroSegmentFormat||{},logger:this._config.logger})},e.prototype._isErrorWhichShouldTriggerURLRefresh=function(e){if(e instanceof l.errors.RetrievalError){var t=e.getCause();if(t instanceof l.retrievalErrors.UnacceptableResponseStatusCodeError)return 403===t.getStatusCode()}return!1},e}();t.ControlledPlayer=p},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=s}])})},function(e,t,n){!function(t,r){e.exports=r(n(0),n(5),n(4))}(window,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){return e.call(this,"An error occurred trying to append to the buffer.",t)||this}return r(t,e),t.prototype.getCode=function(){return"HLS_MSE_PLAYER.APPEND_ERROR"},t}(i.errors.PlayerFatalError);t.AppendError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){return e.call(this,"An error occurred trying to initialize the buffer.",t)||this}return r(t,e),t.prototype.getCode=function(){return"HLS_MSE_PLAYER.INITIALIZE_ERROR"},t}(i.errors.PlayerFatalError);t.InitializeError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){var n=e.call(this,"An error occurred when trying to retrieve a playlist/segment/key.",t)||this;return n._internalRetrievalError=t,n}return r(t,e),t.prototype.getCode=function(){return"HLS_MSE_PLAYER.RETRIEVAL_ERROR."+this._internalRetrievalError.getCode()},t}(i.errors.PlayerError);t.RetrievalError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return e.call(this,"A transmuxer could not be found.")||this}return r(t,e),t.prototype.getCode=function(){return"HLS_MSE_PLAYER.NO_TRANSMUXER_ERROR"},t}(i.errors.NotSupportedError);t.NoTransmuxerError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getCode=function(){return"HLS_MSE_PLAYER.PLAYLIST_UPDATE_ERROR"},t}(i.errors.PlayerFatalError);t.PlaylistUpdateError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(9);t.HLSMSEPlayer=r.HLSMSEPlayer;var i=n(15);t.errors=i.errors;var s=n(1);t.retrievalErrors=s.retrievalErrors},function(e,t,n){"use strict";function r(e){if(e.hasEnded()){var t=e.getCompleteDuration();if(null===t)throw new Error("Expected playlist duration to be available.");return t}return 1/0}function i(e){var t=u.TransmuxerFactory.retrieveTransmuxers(e),n=m(t,function(t){var n=a.helpers.mimeType.buildMimeTypeFromFormat(t.getOutputFormat(),e);return!!n&&f.MSE.isSupported(n)})||null;if(!n)return null;var r=n.getOutputFormat(),i=a.helpers.mimeType.buildMimeTypeFromFormat(r,e);return i?{transmuxer:n,mimeType:i}:null}var s=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),u=n(1),a=n(2),f=n(10),l=n(14),c=n(3),h=n(4),p=n(5),d=n(6),v=n(7),m=o.helpers.find,g=o.helpers.Promise,y=o.helpers.time.now,b=o.errors.PlayerFatalError,w=o.eventDispatcher.EventDispatcher,E=o.logger.prefixLogger,S=o.helpers.abortableJob.abortedError,x=o.helpers.browser.isSafari(),T=function(e){function t(t,n){var r=e.call(this,n)||this;if(r._onSegmentRequestQueued=new w,r._onSegmentRequestStart=new w,r._onSegmentRetrieved=new w,r._onSegmentRequestFailed=new w,r._onSegmentReady=new w,r._onSegmentAppendQueued=new w,r._onSegmentAppendEnd=new w,r._playlist=null,r._playlistSegmentRetriever=null,r._playlistUpdateJob=null,r._initialPlaylistRetrieveCompleted=!1,r._playlistUpdateTimer=null,r._earliestAllowedNextUpdateTime=y(),r._mse=null,r._simpleMSE=null,r._transmuxerAndMimeType=null,r._lastSegmentAppended=null,r._maxBufferLength=null,r._cacheSize=null,r._playlistUpdateEventHandle=null,r._playlistDuration=null,r._logger=E(r._logger,"HLSMSEPlayer"),void 0!==n.maxBufferLength&&n.maxBufferLength<0)throw new Error("maxBufferLength cannot be < 0.");if(void 0!==n.memoryCacheSize&&n.memoryCacheSize<0)throw new Error("memoryCacheSize cannot be < 0.");return r.onSegmentRequestQueued=r._onSegmentRequestQueued.getHandle(),r.onSegmentRequestStart=r._onSegmentRequestStart.getHandle(),r.onSegmentRetrieved=r._onSegmentRetrieved.getHandle(),r.onSegmentRequestFailed=r._onSegmentRequestFailed.getHandle(),r.onSegmentReady=r._onSegmentReady.getHandle(),r.onSegmentAppendQueued=r._onSegmentAppendQueued.getHandle(),r.onSegmentAppendEnd=r._onSegmentAppendEnd.getHandle(),r.__descriptor=t,r.__playerDependencies=n,r._queuedPlaylist=t.playlist,r}return s(t,e),t.isFormatSupported=function(e){return!!f.MSE.isSupported()&&!!i(e)},t.prototype.getBufferedTimeRanges=function(){var e=this._playlistSegmentRetriever;return e?o.TimeRange.normalize(e.getSegmentsWithData().map(function(e){return e.segment.getTimeRange()})):[]},t.prototype.getCompleteBufferedTimeRanges=function(){var e=this._playlistSegmentRetriever;return e?o.TimeRange.normalize(e.getSegmentsWithData().filter(function(e){return e.complete}).map(function(e){return e.segment.getTimeRange()})):[]},t.prototype.getMaxBufferLength=function(){return this._maxBufferLength},t.prototype.getBufferController=function(){var e=this;return{setMaxBufferLength:function(t){if(t<0)throw new Error("Max buffer length cannot be < 0.");e._logger.debug("Updating max buffer length.",t),e._maxBufferLength=t,e._playlistSegmentRetriever?e._playlistSegmentRetriever.updateMaxBufferLength(t):e._logger.debug("Cannot update right now. Playlist segment retriever doesn't exist.")}}},t.prototype.switchPlaylist=function(e){if(this._logger.debug("Updating playlist."),!this._hasInitialized())return this._logger.debug("Cannot update right now. Still initializing."),void (this._queuedPlaylist=e);this._playlistSegmentRetriever&&(this._playlistSegmentRetriever.switchPlaylist(null),this._logger.debug("Removed current URL.")),this._disposePlaylist(),this._setPlaylist(e)},t.prototype.getMemoryCacheMaxSize=function(){return null!==this._cacheSize?this._cacheSize:1e8},t.prototype.getMemoryCacheUsage=function(){return this._playlistSegmentRetriever?this._playlistSegmentRetriever.getCacheUsage():0},t.prototype.getMemoryCacheController=function(){var e=this;return{setMaxCacheSize:function(t){if(t<0)throw new Error("Max size cannot be < 0.");e._cacheSize=t,e._playlistSegmentRetriever&&e._playlistSegmentRetriever.updateCacheSize(t)}}},t.prototype._canPlay=function(){if(!f.MSE.isSupported())return this._logger.debug("MSE not supported."),g.resolve(!1);var e=this.__descriptor.segmentFormat,t=i(e);return t?(this._transmuxerAndMimeType=t,g.resolve(!0)):(this._logger.debug("No transmuxer found."),g.resolve(new d.NoTransmuxerError))},t.prototype._getUrlForMediaElement=function(){if(!this._mse)throw new Error("MSE does not exist.");return this._mse.getUrl()},t.prototype._handleDurationUpdates=function(){},t.prototype._initialize=function(){var t=this.__playerDependencies;if(null===this._maxBufferLength&&(void 0!==t.maxBufferLength?this._maxBufferLength=t.maxBufferLength:this._maxBufferLength=3e4),this._logger.debug("Initialized max buffer length.",this._maxBufferLength),null===this._cacheSize&&(void 0!==t.memoryCacheSize?this._cacheSize=t.memoryCacheSize:this._cacheSize=1e8),this._logger.debug("Initialized cache size.",this._cacheSize),e.prototype._initialize.call(this),!this._queuedPlaylist)throw new Error("Playlist should exist.");this._setPlaylist(this._queuedPlaylist),this._queuedPlaylist=null},t.prototype._initMediaElement=function(t,n){this._simpleMSE&&(this._simpleMSE.kill(),this._simpleMSE=null,this._logger.debug("Killed SimpleMSE.")),this._mse&&(this._mse.kill(),this._mse=null,this._logger.debug("Killed MSE.")),n?(this._initMSE(),this._initSimpleMSE(),e.prototype._initMediaElement.call(this,t,!0)):e.prototype._initMediaElement.call(this,t,!1)},t.prototype._shouldBeEnded=function(){var t=this._lastSegmentAppended;if(!t||!t.isFinalSegment())return!1;if(!x)return e.prototype._shouldBeEnded.call(this);if(e.prototype._shouldBeEnded.call(this))return!0;if(!this.getMediaElement())return!1;var n=this._duration;return this._stallDetected&&null!==n&&this._getMediaElementPosition()>=n-600},t.prototype._handleSeekChange=function(t,n){e.prototype._handleSeekChange.call(this,t,n),this._playlistSegmentRetriever&&(this._logger.debug("Explicitly updating playlist segment retriever, as seek requested."),this._playlistSegmentRetriever.update(),this._findSegmentAndAppendToMSE())},t.prototype._performSeek=function(t,n){return this._mse&&!o.TimeRange.rangesContainTime(t,this._mse.getBuffered())&&(this._logger.debug("Seeking to an unbuffered area."),this._initSimpleMSE()),e.prototype._performSeek.call(this,t,n)},t.prototype._kill=function(){this._simpleMSE&&(this._logger.debug("Killing SimpleMSE."),this._simpleMSE.kill(),this._simpleMSE=null),this._mse&&(this._logger.debug("Killing MSE."),this._mse.kill(),this._mse=null),this._playlistSegmentRetriever&&(this._logger.debug("Killing playlist segment retriever."),this._playlistSegmentRetriever.kill(),this._playlistSegmentRetriever=null),this._disposePlaylist(),e.prototype._kill.call(this)},t.prototype._disposePlaylist=function(){this._playlistUpdateJob&&(this._logger.debug("Aborting playlist retrieve job."),this._playlistUpdateJob.abort(),this._playlistUpdateJob=null),this._playlistUpdateTimer&&(window.clearTimeout(this._playlistUpdateTimer),this._playlistUpdateTimer=null),this._playlistUpdateEventHandle&&(this._playlistUpdateEventHandle.remove(),this._playlistUpdateEventHandle=null),this._playlist=null},t.prototype._initMSE=function(){var e=this;if(!this._transmuxerAndMimeType)throw new Error("Transmuxer should have been configured.");var t=this._mse=new f.MSE(this._transmuxerAndMimeType.mimeType,this._logger);t.whenInitialized().then(function(){e._duration&&t.updateDuration(e._duration).catch(function(t){e._logger.warn("Error updating MSE duration.",t)})}).catch(function(t){t!==f.killedError&&(e._logger.error("Error during mse initialization.",t),e._triggerError(new h.InitializeError(t)))})},t.prototype._initSimpleMSE=function(){var e=this;if(!this._mse)throw new Error("MSE should exist.");this._simpleMSE&&this._simpleMSE.kill(),this._lastSegmentAppended=null;var t=this._simpleMSE=new l.SimpleMSE(this._mse,function(){return e._getSegmentDataToAppendNext()},function(){return e._getMediaElementPosition()},function(t){e._triggerError(new c.AppendError(t))},this._logger);t.onAppendQueued.subscribe(this._onSegmentAppendQueued.dispatch),t.onAppendEnd.subscribe(function(t){if(x){var n=e.getMediaElement();n&&e._isMediaElementPaused(n)&&n.ended&&e.isActuallyPlaying()&&(e._logger.debug("Calling play() on media element because we just appended something and should be playing."),e._callMediaElementPlay(n))}e._onSegmentAppendEnd.dispatch(t)}),t.start()},t.prototype._getMediaElementPosition=function(){var e=this.getMediaElement();if(!e)throw new Error("No media element.");return 1e3*e.currentTime},t.prototype._whenPlaylistRetrieved=function(){var e=this,t=this._playlist;if(!t)throw new Error("Playlist should have been retrieved.");if(this._playlistUpdateEventHandle=t.onUpdated.subscribe(function(){e._updateLocalDurationsFromPlaylist(),e._handleDurationChange(),e._schedulePlaylistUpdate()}),!!this._initialPlaylistRetrieveCompleted){var n=r(t);if(this._playlistDuration<n)return this._logger.error("The duration from the new playlist was less than the previous one."),void this._triggerError(new v.PlaylistUpdateError("The duration from the new playlist was less than the previous one.",{oldDuration:this._playlistDuration,newDuration:n}))}if(!this._transmuxerAndMimeType)throw new Error("Transmuxer should have been configured.");if(this._playlistSegmentRetriever)this._logger.debug("Switching playlist for playlist segment retriever."),this._playlistSegmentRetriever.switchPlaylist(t);else{var i=this._maxBufferLength;if(null===i)throw new Error("maxBufferLength should have been initiaized by now.");this._logger.debug("Creating playlist segment retriever.");var s=this._cacheSize;if(null===s)throw new Error("cacheSize should be set.");var o=new u.PlaylistSegmentRetriever({playlist:t,getPosition:function(){return e.getPosition()},maxBufferLength:i,cacheSize:s,transmuxer:this._transmuxerAndMimeType.transmuxer,logger:this._logger});o.onSegmentRequestQueued.subscribe(this._onSegmentRequestQueued.dispatch),o.onSegmentRequestStart.subscribe(this._onSegmentRequestStart.dispatch),o.onSegmentRetrieved.subscribe(this._onSegmentRetrieved.dispatch),o.onSegmentRequestFailed.subscribe(this._onSegmentRequestFailed.dispatch),this._playlistSegmentRetriever=o,o.onError.subscribe(function(t){e._logger.error("Error from playlist segment retriever.",t),t instanceof u.retrievalErrors.RetrievalError?e._triggerError(new p.RetrievalError(t)):e._triggerError(new b("Unexpected error when trying to retrieve segment.",t))}),o.onSegmentDataRetrieveStarted.subscribe(function(t){var n=t.segment;e._logger.debug("Segment retrieve started.",n.getEventRepresentation()),e._findSegmentAndAppendToMSE(),e._updateLocalDurationsFromPlaylist(),e._handleDurationChange(),e._onSegmentReady.dispatch({segment:n.getEventRepresentation()})})}t.hasEnded()||this._schedulePlaylistUpdate(),this._updateLocalDurationsFromPlaylist(),this._update(function(){e._handleDurationChange(),e._initialPlaylistRetrieveCompleted=!0})},t.prototype._schedulePlaylistUpdate=function(){var e=this,t=this._playlist;if(!t)throw new Error("Playlist should exist.");if((!this._playlistUpdateJob||this._playlistUpdateJob.hasCompleted())&&(this._playlistUpdateTimer&&(window.clearTimeout(this._playlistUpdateTimer),this._playlistUpdateTimer=null),!t.hasEnded())){var n=this.isPlaying()?t.getDuration()-this.getPosition()-1e4:1/0,r=t.getExpireTime(),i=r?y()-r:1/0,s=Math.max(0,this._earliestAllowedNextUpdateTime-y()),o=Math.max(s,Math.min(n,i,t.getType()===u.PlaylistType.EVENT?1e4:1/0));o<1/0&&(this._earliestAllowedNextUpdateTime=y()+2e3,this._playlistUpdateTimer=window.setTimeout(function(){e._playlistUpdateTimer=null,(e._playlistUpdateJob=t.update()).onError(function(t){t!==S&&(e._handlePlaylistUpdateError(t),e._schedulePlaylistUpdate())})},o))}},t.prototype._updateLocalDurationsFromPlaylist=function(){var e=this,t=this._playlist;if(!t)throw new Error("Missing playlist.");var n=this._duration=r(t),i=this._mse;i&&i.whenInitialized().then(function(){return i.updateDuration(n)}).catch(function(t){e._logger.warn("Error updating MSE duration.",t)}),this._playlistDuration=t.getDuration()},t.prototype._findSegmentAndAppendToMSE=function(){var e=this._simpleMSE;if(e&&e.waitingForSegmentData()){var t=this._getSegmentDataToAppendNext();t&&(this._logger.debug("Providing segment to SimpleMSE.",t.eventRepresentation),e.provideNextSegmentData(t))}},t.prototype._setPlaylist=function(e){var t=this;if(this._playlist)throw new Error("Playlist already exists.");this._playlist=e,this._playlistUpdateJob=this._playlist.update(),this._playlistUpdateJob.onCompletion(function(){t._logger.debug("Playlist retrieved."),t._whenPlaylistRetrieved()}),this._playlistUpdateJob.onError(function(e){e!==S&&t._handlePlaylistUpdateError(e)})},t.prototype._handlePlaylistUpdateError=function(e){this._logger.error("Error when retrieving playlist.",e),e instanceof u.retrievalErrors.RetrievalError?this._triggerError(new p.RetrievalError(e)):this._triggerError(new b("Unexpected error when retrieving playlist.",e))},t.prototype._getSegmentDataToAppendNext=function(){var e=this._lastSegmentAppended;this._logger.debug("Looking for segment to append next.",!!e);var t=this._playlistSegmentRetriever;if(!t)return this._logger.debug("No segment retriever."),null;if(e){var n=this._getSubsequentSegment(e);if(!n)return this._logger.debug("No segment found."),e.isFinalSegment()&&(this._logger.debug("The last segment we appended was the last one in the stream. Signalling EOS."),this._signalEOS()),null;var r=n.segment;return this._logger.debug("Found segment.",r.getEventRepresentation()),this._lastSegmentAppended=r,{data:n.dataRetrieveJob,startTime:r.getTimeRange().start,eventRepresentation:r.getEventRepresentation()}}var i=this.getPosition(),n=m(t.getSegmentsWithData(),function(e){return e.segment.getTimeRange().containsTime(i)});if(!n)return this._logger.debug("No segment found.",i),null;var r=n.segment,s=n.dataRetrieveJob,o=i-r.getTimeRange().start;if(!this.getMediaElement())throw new Error("Media element should exist.");var u={data:s,startTime:r.getTimeRange().start,eventRepresentation:r.getEventRepresentation()};if(!r.isFinalSegment())for(var a=r.getTimeRange().duration-o;a<1e3;){var f=this._getSubsequentSegment(r);if(!f)return this._logger.debug("Not enough segments to cover min append duration.",a),null;f.segment.isFinalSegment()?a=1/0:a+=f.segment.getTimeRange().duration}return this._logger.debug("Found initial segment.",r.getEventRepresentation()),this._lastSegmentAppended=r,u},t.prototype._getSubsequentSegment=function(e){var t=this._playlistSegmentRetriever;if(!t)return this._logger.debug("No segment retriever."),null;var n=t.getSegmentsWithData(),r=n[n.map(function(e){return e.segment.getSequenceNumber()}).indexOf(e.getSequenceNumber())+1];return r&&r.segment.getTimeRange().start===e.getTimeRange().end?r:null},t.prototype._signalEOS=function(){var e=this;this._logger.debug("Signalling EOS."),this._simpleMSE&&(this._simpleMSE.kill(),this._logger.debug("Killed SimpleMSE."),this._simpleMSE=null);var t=this._mse;t&&!t.eosSignalled()&&t.signalEOS().catch(function(n){if(t===e._mse){if("InvalidStateError"===n.name)return void e._logger.error("InvalidStateError occurred when signalling EOS.",n);e._logger.error("Error occurred when signalling EOS.",n),e._triggerError(new c.AppendError(n))}})},t}(a.HTML5PlayerBase);t.HLSMSEPlayer=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),s=n(11),o=r.helpers.deferred.buildDeferred,u=i.helpers.timeRanges.buildTimeRanges,a=r.helpers.Promise,f=r.logger.prefixLogger,l=r.logger.noOpLogger,c=r.helpers.browser.isIE(),h=r.helpers.browser.isSafari(),p=r.helpers.browser.isEdge(),d='audio/mp4; codecs="mp3"',v=r.helpers.browser.getSafariVersion(),m=r.helpers.browser.getChromeVersion(),g=h||!!(m&&m.major<=49),y=!!v&&v.major<10||!!m&&m.major<=49;t.killedError=new Error("MSE killed.");var b=function(){function e(e,t){var n=this.constructor;if(void 0===t&&(t=l),this._sourceBuffer=null,this._initialized=!1,this._initializeDeferred=o(),this._whenIdleDeferred=o(),this._error=null,this._dead=!1,this._eosSignalled=!1,this._pendingActions=[],this._currentAction=null,this._pendingStartTime=0,this._logger=f(t,"MSE"),this._onMediaSourceInit=this._onMediaSourceInit.bind(this),this._onMediaSourceError=this._onMediaSourceError.bind(this),this._onSourceBufferUpdateEnd=this._onSourceBufferUpdateEnd.bind(this),this._onSourceBufferError=this._onSourceBufferError.bind(this),!n.isSupported(e))throw this._logger.error("Not supported."),new Error("Not supported.");h&&e===d&&(e="audio/mp4"),this._type=e,this._useSegmentsMode=y&&0===e.indexOf("audio/mp4"),this._mediaSource=new MediaSource,this._mediaSource.addEventListener("sourceopen",this._onMediaSourceInit,!1),this._mediaSource.addEventListener("error",this._onMediaSourceError,!1),this._mediaSource.addEventListener("sourceended",this._onSourceBufferUpdateEnd,!1),this._url=URL.createObjectURL(this._mediaSource),this._logger.debug("Created URL.",this._url)}return e.isSupported=function(e){return!c&&"MediaSource"in window&&(!e||!!h&&e===d||!(v&&v.major<10&&"audio/mpeg"===e)&&!(m&&m.major<50&&'audio/webm; codecs="opus"'===e)&&MediaSource.isTypeSupported(e))},e.prototype.whenInitialized=function(){return this._initializeDeferred.promise},e.prototype.whenIdle=function(){return this._whenIdleDeferred?this._whenIdleDeferred.promise:a.resolve(void 0)},e.prototype.isIdle=function(){return this._dead||!this._whenIdleDeferred},e.prototype.hasInitialized=function(){return this._initialized},e.prototype.getError=function(){return this._error},e.prototype.getUrl=function(){return this._ensureNotDead(),this._url},e.prototype.getBuffered=function(){if(this._ensureNotDead(),!this._sourceBuffer)return[];try{return u(this._sourceBuffer.buffered)}catch(e){if("InvalidStateError"===e.name&&"Failed to read the 'buffered' property from 'SourceBuffer': This SourceBuffer has been removed from the parent media source."===e.message)return[];throw e}},e.prototype.append=function(e,t){if(void 0===t&&(t=null),this._ensureNotDead(),this._ensureInitialized(),this._logger.debug("append() called.",t),g&&0===this._type.indexOf("audio/mp4")){this._logger.debug("Rewriting internal timestamp to 0.");try{e=s.clearMP4InternalTimestamp(e,!this._useSegmentsMode)}catch(n){return this._logger.error("Error rewriting timestamps.",n),this._handleError(n),a.reject(n)}}var i=o();if(null!==t&&this._sourceBuffer&&this._sourceBuffer.buffered.length){var u=new r.TimeRange(0,1/0);this._pendingActions.push({type:"remove",deferred:o(),range:u,abort:!0})}return this._pendingActions.push({type:"append",data:e,deferred:i,startTime:t}),this._eosSignalled=!1,this._performNextAction(),i.promise},e.prototype.remove=function(e){if(0===e.duration)throw new Error("Remove range must have a duration > 0.");this._ensureNotDead(),this._ensureInitialized(),this._logger.debug("remove() called.",e);var t=o();return this._pendingActions.push({type:"remove",range:e,deferred:t,abort:!1}),this._eosSignalled=!1,this._performNextAction(),t.promise},e.prototype.signalEOS=function(){if(this._ensureNotDead(),this._ensureInitialized(),this._logger.debug("signalEOS() called."),this._eosSignalled)return this._logger.debug("Ignoring because already signalled EOS."),a.resolve();this._eosSignalled=!0;var e=o();return this._pendingActions.push({type:"eos",deferred:e}),this._performNextAction(),e.promise},e.prototype.updateDuration=function(e){if(e<=0)throw new Error("Duration must be > 0.");this._ensureNotDead(),this._ensureInitialized(),this._logger.debug("updateDuration() called.",e);var t=o();return this._pendingActions.push({type:"duration",duration:e,deferred:t}),this._performNextAction(),t.promise},e.prototype.eosSignalled=function(){return this._eosSignalled},e.prototype.kill=function(){if(!this._dead){this._logger.debug("kill() called."),this._dead=!0,this._mediaSource.removeEventListener("sourceopen",this._onMediaSourceInit,!1),this._mediaSource.removeEventListener("sourceended",this._onSourceBufferUpdateEnd,!1),this._mediaSource.removeEventListener("error",this._onMediaSourceError,!1),this._sourceBuffer&&(this._sourceBuffer.removeEventListener("updateend",this._onSourceBufferUpdateEnd,!1),this._sourceBuffer.removeEventListener("error",this._onSourceBufferError,!1)),URL.revokeObjectURL(this._url);var e=this._error||t.killedError,n=this._currentAction?[this._currentAction]:[];n=n.concat(this._pendingActions),n.forEach(function(t){t.deferred.reject(e)}),this._whenIdleDeferred||(this._whenIdleDeferred=o()),this._whenIdleDeferred.reject(e),this._initialized||this._initializeDeferred.reject(e),this._pendingActions.length=0,this._logger.debug("Killed.")}},e.prototype._ensureInitialized=function(){if(!this._initialized)throw new Error("Not initialized yet.")},e.prototype._ensureNotDead=function(){if(this._error)throw new Error("MSE is dead because of error: "+this._error.message);if(this._dead)throw new Error("MSE is dead.")},e.prototype._onMediaSourceInit=function(){this._logger.debug("MSE initialized."),this._mediaSource.removeEventListener("sourceopen",this._onMediaSourceInit,!1);try{this._logger.debug("Creating source buffer.",this._type),this._sourceBuffer=this._mediaSource.addSourceBuffer(this._type),this._sourceBuffer.mode=this._useSegmentsMode?"segments":"sequence",this._logger.debug("Using append mode: "+this._sourceBuffer.mode),this._sourceBuffer.addEventListener("updateend",this._onSourceBufferUpdateEnd,!1),this._sourceBuffer.addEventListener("error",this._onSourceBufferError,!1)}catch(e){this._handleError(e)}this._initializeDeferred.resolve(void 0),this._whenIdleDeferred.resolve(void 0),this._initialized=!0,this._performNextAction()},e.prototype._onMediaSourceError=function(e){this._handleError(e)},e.prototype._handleError=function(e){this._logger.error("Error occurred.",e),this._dead||(this._error=e||new Error("Unknown error."),this.kill())},e.prototype._onSourceBufferUpdateEnd=function(){if(!this._dead){var e=this._currentAction;if(!e)return void this._logger.debug("Ignoring stray updateend event.");var t=this.getBuffered();this._logger.debug("Update ended.",t),null!==this._pendingStartTime&&r.TimeRange.getCoverage(t).end>this._pendingStartTime&&(this._pendingStartTime=null),this._currentAction=null,e.deferred.resolve(void 0),this._performNextAction()}},e.prototype._onSourceBufferError=function(e){this._handleError(e)},e.prototype._performNextAction=function(){var e=this,t=this._whenIdleDeferred;if(!this._currentAction&&this._sourceBuffer){var n=this._pendingActions.shift();if(!n)return this._logger.debug("No more actions."),void (t&&(this._whenIdleDeferred=null,t.resolve(void 0)));switch(t||(this._whenIdleDeferred=o()),this._currentAction=n,this._logger.debug("Performing next action...",n),n.type){case"append":null!==n.startTime&&(this._pendingStartTime=n.startTime);var i=r.TimeRange.getCoverage(this.getBuffered());try{if(null!==this._pendingStartTime)this._setTimestampOffset(this._sourceBuffer,this._pendingStartTime);else if("segments"===this._sourceBuffer.mode){var s=i.end;this._logger.debug('Setting timestampOffset because in "segments" mode.',s),this._setTimestampOffset(this._sourceBuffer,s)}this._logger.debug("Calling appendBuffer()."),this._sourceBuffer.appendBuffer(n.data)}catch(u){this._handleError(u)}break;case"remove":try{var a=n.range;this._logger.debug("Calling remove().",a.start,a.end),!n.abort||h||p||"open"!==this._mediaSource.readyState||this._sourceBuffer.abort(),this._sourceBuffer.remove(a.start/1e3,a.end/1e3)}catch(u){this._handleError(u)}break;case"duration":this._logger.debug("Updating duration.",n.duration);try{this._mediaSource.duration=n.duration/1e3,window.setTimeout(function(){return e._onSourceBufferUpdateEnd()},0)}catch(u){this._mediaSource.duration>=n.duration/1e3?(this._logger.warn("Failed to update MSE durtion but ignoring because current one is higher.",u),window.setTimeout(function(){return e._onSourceBufferUpdateEnd()},0)):(this._logger.error("Could not update MSE durtion.",u),this._handleError(u))}break;case"eos":try{this._logger.debug("Calling endOfStream()."),this._mediaSource.endOfStream()}catch(u){this._handleError(u)}break;default:this._handleError(new Error("Unknown action."))}}},e.prototype._setTimestampOffset=function(e,t){try{return e.timestampOffset=t/1e3,!0}catch(n){if(11===n.code)return this._logger.debug("Failed to set timestampOffset.",n),!1;throw n}},e}();t.MSE=b},function(e,t,n){"use strict";function r(e,t){for(var n=e.byteLength,r=0;r<n;){var i=e.getUint32(r);if(1===i)throw new Error("Large atom size not supported.");0===i&&(i=n-r);if(t(e.getUint32(r+4),new DataView(e.buffer,e.byteOffset+r+u,i-u)))break;r+=i}}function i(e,t){void 0===t&&(t=!1);var n=function(e){var t=e.getUint8(0);e.setUint32(12,0),t>0&&e.setUint32(16,0)},i=function(e){r(e,function(e,t){return e===l&&(u(t),!0)})},u=function(e){r(e,function(e,t){return e===c&&(h(t),!0)})},h=function(e){var n,r=e.getUint8(0);t?n=o(0):(n=o(e.getUint32(4)),r>0&&(n=n.shiftLeft(32),n=n.add(e.getUint32(8))),null===d&&(d=n),n=n.subtract(d)),r>0?(e.setUint32(4,n.shiftRight(32).toJSNumber()),e.setUint32(8,n.and(65535).toJSNumber())):e.setUint32(4,n.toJSNumber())},p=s.helpers.arrayBuffer.combine([e]),d=null;return r(new DataView(p.buffer,p.byteOffset,p.byteLength),function(e,t){switch(e){case a:n(t);break;case f:i(t)}return!1}),p}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),o=n(12),u=8,a=1936286840,f=1836019558,l=1953653094,c=1952867444;t.clearMP4InternalTimestamp=i},function(e,t,n){(function(e){var n,r,i=function(e){"use strict";function t(e,n){return void 0===e?t[0]:void 0!==n?10==+n?X(e):nt(e,n):X(e)}function n(e,t){this.value=e,this.sign=t,this.isSmall=!1}function r(e){this.value=e,this.sign=e<0,this.isSmall=!0}function s(e){return-J<e&&e<J}function o(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function u(e){a(e);var t=e.length;if(t<4&&L(e,K)<0)switch(t){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*V;default:return e[0]+(e[1]+e[2]*V)*V}return e}function a(e){for(var t=e.length;0===e[--t];);e.length=t+1}function f(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function l(e){return e>0?Math.floor(e):Math.ceil(e)}function c(e,t){var n,r,i=e.length,s=t.length,o=new Array(i),u=0,a=V;for(r=0;r<s;r++)n=e[r]+t[r]+u,u=n>=a?1:0,o[r]=n-u*a;for(;r<i;)n=e[r]+u,u=n===a?1:0,o[r++]=n-u*a;return u>0&&o.push(u),o}function h(e,t){return e.length>=t.length?c(e,t):c(t,e)}function p(e,t){var n,r,i=e.length,s=new Array(i),o=V;for(r=0;r<i;r++)n=e[r]-o+t,t=Math.floor(n/o),s[r]=n-t*o,t+=1;for(;t>0;)s[r++]=t%o,t=Math.floor(t/o);return s}function d(e,t){var n,r,i=e.length,s=t.length,o=new Array(i),u=0,f=V;for(n=0;n<s;n++)r=e[n]-u-t[n],r<0?(r+=f,u=1):u=0,o[n]=r;for(n=s;n<i;n++){if(!((r=e[n]-u)<0)){o[n++]=r;break}r+=f,o[n]=r}for(;n<i;n++)o[n]=e[n];return a(o),o}function v(e,t,i){var s;return L(e,t)>=0?s=d(e,t):(s=d(t,e),i=!i),s=u(s),"number"==typeof s?(i&&(s=-s),new r(s)):new n(s,i)}function m(e,t,i){var s,o,a=e.length,f=new Array(a),l=-t,c=V;for(s=0;s<a;s++)o=e[s]+l,l=Math.floor(o/c),o%=c,f[s]=o<0?o+c:o;return f=u(f),"number"==typeof f?(i&&(f=-f),new r(f)):new n(f,i)}function g(e,t){var n,r,i,s,o,u=e.length,l=t.length,c=u+l,h=f(c),p=V;for(i=0;i<u;++i){s=e[i];for(var d=0;d<l;++d)o=t[d],n=s*o+h[i+d],r=Math.floor(n/p),h[i+d]=n-r*p,h[i+d+1]+=r}return a(h),h}function y(e,t){var n,r,i=e.length,s=new Array(i),o=V,u=0;for(r=0;r<i;r++)n=e[r]*t+u,u=Math.floor(n/o),s[r]=n-u*o;for(;u>0;)s[r++]=u%o,u=Math.floor(u/o);return s}function b(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function w(e,t){var n=Math.max(e.length,t.length);if(n<=30)return g(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),s=t.slice(n),o=t.slice(0,n),u=w(i,o),f=w(r,s),l=w(h(i,r),h(o,s)),c=h(h(u,b(d(d(l,u),f),n)),b(f,2*n));return a(c),c}function E(e,t){return-0.012*e-.012*t+15e-6*e*t>0}function S(e,t,r){return e<V?new n(y(t,e),r):new n(g(t,o(e)),r)}function x(e){var t,n,r,i,s,o=e.length,u=f(o+o),l=V;for(r=0;r<o;r++){i=e[r],n=0-i*i;for(var c=r;c<o;c++)s=e[c],t=i*s*2+u[r+c]+n,n=Math.floor(t/l),u[r+c]=t-n*l;u[r+o]=n}return a(u),u}function T(e,t){var n,r,i,s,o,a,l,c=e.length,h=t.length,p=V,d=f(t.length),v=t[h-1],m=Math.ceil(p/(2*v)),g=y(e,m),b=y(t,m);for(g.length<=c&&g.push(0),b.push(0),v=b[h-1],r=c-h;r>=0;r--){for(n=p-1,g[r+h]!==v&&(n=Math.floor((g[r+h]*p+g[r+h-1])/v)),i=0,s=0,a=b.length,o=0;o<a;o++)i+=n*b[o],l=Math.floor(i/p),s+=g[r+o]-(i-l*p),i=l,s<0?(g[r+o]=s+p,s=-1):(g[r+o]=s,s=0);for(;0!==s;){for(n-=1,i=0,o=0;o<a;o++)i+=g[r+o]-p+b[o],i<0?(g[r+o]=i+p,i=0):(g[r+o]=i,i=1);s+=i}d[r]=n}return g=C(g,m)[0],[u(d),u(g)]}function N(e,t){for(var n,r,i,s,o,f=e.length,l=t.length,c=[],h=[],p=V;f;)if(h.unshift(e[--f]),a(h),L(h,t)<0)c.push(0);else{r=h.length,i=h[r-1]*p+h[r-2],s=t[l-1]*p+t[l-2],r>l&&(i=(i+1)*p),n=Math.ceil(i/s);do{if(o=y(t,n),L(o,h)<=0)break;n--}while(n);c.push(n),h=d(h,o)}return c.reverse(),[u(c),u(h)]}function C(e,t){var n,r,i,s,o=e.length,u=f(o),a=V;for(i=0,n=o-1;n>=0;--n)s=i*a+e[n],r=l(s/t),i=s-r*t,u[n]=0|r;return[u,0|i]}function k(e,i){var s,a,f=X(i),c=e.value,h=f.value;if(0===h)throw new Error("Cannot divide by zero");if(e.isSmall)return f.isSmall?[new r(l(c/h)),new r(c%h)]:[t[0],e];if(f.isSmall){if(1===h)return[e,t[0]];if(-1==h)return[e.negate(),t[0]];var p=Math.abs(h);if(p<V){s=C(c,p),a=u(s[0]);var d=s[1];return e.sign&&(d=-d),"number"==typeof a?(e.sign!==f.sign&&(a=-a),[new r(a),new r(d)]):[new n(a,e.sign!==f.sign),new r(d)]}h=o(p)}var v=L(c,h);if(-1===v)return[t[0],e];if(0===v)return[t[e.sign===f.sign?1:-1],t[0]];s=c.length+h.length<=200?T(c,h):N(c,h),a=s[0];var m=e.sign!==f.sign,g=s[1],y=e.sign;return"number"==typeof a?(m&&(a=-a),a=new r(a)):a=new n(a,m),"number"==typeof g?(y&&(g=-g),g=new r(g)):g=new n(g,y),[a,g]}function L(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(25)||void 0))}function O(e){return("number"==typeof e||"string"==typeof e)&&+Math.abs(e)<=V||e instanceof n&&e.value.length<=1}function M(e,t,n){t=X(t);for(var r=e.isNegative(),s=t.isNegative(),o=r?e.not():e,u=s?t.not():t,a=0,f=0,l=null,c=null,h=[];!o.isZero()||!u.isZero();)l=k(o,Z),a=l[1].toJSNumber(),r&&(a=Z-1-a),c=k(u,Z),f=c[1].toJSNumber(),s&&(f=Z-1-f),o=l[0],u=c[0],h.push(n(a,f));for(var p=i(0!==n(r?1:0,s?1:0)?-1:0),d=h.length-1;d>=0;d-=1)p=p.multiply(Z).add(i(h[d]));return p}function _(e){var t=e.value,n="number"==typeof t?t|et:t[0]+t[1]*V|tt;return n&-n}function D(e,t){if(t.compareTo(e)<=0){var n=D(e,t.square(t)),r=n.p,s=n.e,o=r.multiply(t);return o.compareTo(e)<=0?{p:o,e:2*s+1}:{p:r,e:2*s}}return{p:i(1),e:0}}function P(e,t){return e=X(e),t=X(t),e.greater(t)?e:t}function H(e,t){return e=X(e),t=X(t),e.lesser(t)?e:t}function B(e,n){if(e=X(e).abs(),n=X(n).abs(),e.equals(n))return e;if(e.isZero())return n;if(n.isZero())return e;for(var r,i,s=t[1];e.isEven()&&n.isEven();)r=Math.min(_(e),_(n)),e=e.divide(r),n=n.divide(r),s=s.multiply(r);for(;e.isEven();)e=e.divide(_(e));do{for(;n.isEven();)n=n.divide(_(n));e.greater(n)&&(i=n,n=e,e=i),n=n.subtract(e)}while(!n.isZero());return s.isUnit()?e:e.multiply(s)}function j(e,t){return e=X(e).abs(),t=X(t).abs(),e.divide(B(e,t)).multiply(t)}function F(e,t){e=X(e),t=X(t);var i=H(e,t),s=P(e,t),o=s.subtract(i).add(1);if(o.isSmall)return i.add(Math.floor(Math.random()*o));for(var a=o.value.length-1,f=[],c=!0,h=a;h>=0;h--){var p=c?o.value[h]:V,d=l(Math.random()*p);f.unshift(d),d<p&&(c=!1)}return f=u(f),i.add("number"==typeof f?new r(f):new n(f,!1))}function I(e,n,r){var i,s=t[0],o=t[1];for(i=e.length-1;i>=0;i--)s=s.add(e[i].times(o)),o=o.times(n);return r?s.negate():s}function q(e){return e<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e):"<"+e+">"}function R(e,t){if(t=i(t),t.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e)).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(+e-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.equals(1))return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(+e)).map(Number.prototype.valueOf,1),isNegative:r};for(var s,o=[],u=e;u.isNegative()||u.compareAbs(t)>=0;){s=u.divmod(t),u=s.quotient;var a=s.remainder;a.isNegative()&&(a=t.minus(a).abs(),u=u.next()),o.push(a.toJSNumber())}return o.push(u.toJSNumber()),{value:o.reverse(),isNegative:r}}function U(e,t){var n=R(e,t);return(n.isNegative?"-":"")+n.value.map(q).join("")}function z(e){if(s(+e)){var t=+e;if(t===l(t))return new r(t);throw new Error("Invalid integer: "+e)}var i="-"===e[0];i&&(e=e.slice(1));var o=e.split(/e/i);if(o.length>2)throw new Error("Invalid integer: "+o.join("e"));if(2===o.length){var u=o[1];if("+"===u[0]&&(u=u.slice(1)),(u=+u)!==l(u)||!s(u))throw new Error("Invalid integer: "+u+" is not a valid exponent.");var f=o[0],c=f.indexOf(".");if(c>=0&&(u-=f.length-c-1,f=f.slice(0,c)+f.slice(c+1)),u<0)throw new Error("Cannot include negative exponent part for integers");f+=(new Array(u+1)).join("0"),e=f}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);for(var h=[],p=e.length,d=$,v=p-d;p>0;)h.push(+e.slice(v,p)),v-=d,v<0&&(v=0),p-=d;return a(h),new n(h,i)}function W(e){if(s(e)){if(e!==l(e))throw new Error(e+" is not an integer.");return new r(e)}return z(e.toString())}function X(e){return"number"==typeof e?W(e):"string"==typeof e?z(e):e}var V=1e7,$=7,J=9007199254740992,K=o(J),Q=Math.log(J);n.prototype=Object.create(t.prototype),r.prototype=Object.create(t.prototype),n.prototype.add=function(e){var t=X(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,i=t.value;return t.isSmall?new n(p(r,Math.abs(i)),this.sign):new n(h(r,i),this.sign)},n.prototype.plus=n.prototype.add,r.prototype.add=function(e){var t=X(e),i=this.value;if(i<0!==t.sign)return this.subtract(t.negate());var u=t.value;if(t.isSmall){if(s(i+u))return new r(i+u);u=o(Math.abs(u))}return new n(p(u,Math.abs(i)),i<0)},r.prototype.plus=r.prototype.add,n.prototype.subtract=function(e){var t=X(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,r=t.value;return t.isSmall?m(n,Math.abs(r),this.sign):v(n,r,this.sign)},n.prototype.minus=n.prototype.subtract,r.prototype.subtract=function(e){var t=X(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var i=t.value;return t.isSmall?new r(n-i):m(i,Math.abs(n),n>=0)},r.prototype.minus=r.prototype.subtract,n.prototype.negate=function(){return new n(this.value,!this.sign)},r.prototype.negate=function(){var e=this.sign,t=new r(-this.value);return t.sign=!e,t},n.prototype.abs=function(){return new n(this.value,!1)},r.prototype.abs=function(){return new r(Math.abs(this.value))},n.prototype.multiply=function(e){var r,i=X(e),s=this.value,u=i.value,a=this.sign!==i.sign;if(i.isSmall){if(0===u)return t[0];if(1===u)return this;if(-1===u)return this.negate();if((r=Math.abs(u))<V)return new n(y(s,r),a);u=o(r)}return E(s.length,u.length)?new n(w(s,u),a):new n(g(s,u),a)},n.prototype.times=n.prototype.multiply,r.prototype._multiplyBySmall=function(e){return s(e.value*this.value)?new r(e.value*this.value):S(Math.abs(e.value),o(Math.abs(this.value)),this.sign!==e.sign)},n.prototype._multiplyBySmall=function(e){return 0===e.value?t[0]:1===e.value?this:-1===e.value?this.negate():S(Math.abs(e.value),this.value,this.sign!==e.sign)},r.prototype.multiply=function(e){return X(e)._multiplyBySmall(this)},r.prototype.times=r.prototype.multiply,n.prototype.square=function(){return new n(x(this.value),!1)},r.prototype.square=function(){var e=this.value*this.value;return s(e)?new r(e):new n(x(o(Math.abs(this.value))),!1)},n.prototype.divmod=function(e){var t=k(this,e);return{quotient:t[0],remainder:t[1]}},r.prototype.divmod=n.prototype.divmod,n.prototype.divide=function(e){return k(this,e)[0]},r.prototype.over=r.prototype.divide=n.prototype.over=n.prototype.divide,n.prototype.mod=function(e){return k(this,e)[1]},r.prototype.remainder=r.prototype.mod=n.prototype.remainder=n.prototype.mod,n.prototype.pow=function(e){var n,i,o,u=X(e),a=this.value,f=u.value;if(0===f)return t[1];if(0===a)return t[0];if(1===a)return t[1];if(-1===a)return u.isEven()?t[1]:t[-1];if(u.sign)return t[0];if(!u.isSmall)throw new Error("The exponent "+u.toString()+" is too large.");if(this.isSmall&&s(n=Math.pow(a,f)))return new r(l(n));for(i=this,o=t[1];;){if(!0&f&&(o=o.times(i),--f),0===f)break;f/=2,i=i.square()}return o},r.prototype.pow=n.prototype.pow,n.prototype.modPow=function(e,n){if(e=X(e),n=X(n),n.isZero())throw new Error("Cannot take modPow with modulus 0");for(var r=t[1],i=this.mod(n);e.isPositive();){if(i.isZero())return t[0];e.isOdd()&&(r=r.multiply(i).mod(n)),e=e.divide(2),i=i.square().mod(n)}return r},r.prototype.modPow=n.prototype.modPow,n.prototype.compareAbs=function(e){var t=X(e),n=this.value,r=t.value;return t.isSmall?1:L(n,r)},r.prototype.compareAbs=function(e){var t=X(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},n.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=X(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:L(n,r)*(this.sign?-1:1)},n.prototype.compareTo=n.prototype.compare,r.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=X(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},r.prototype.compareTo=r.prototype.compare,n.prototype.equals=function(e){return 0===this.compare(e)},r.prototype.eq=r.prototype.equals=n.prototype.eq=n.prototype.equals,n.prototype.notEquals=function(e){return 0!==this.compare(e)},r.prototype.neq=r.prototype.notEquals=n.prototype.neq=n.prototype.notEquals,n.prototype.greater=function(e){return this.compare(e)>0},r.prototype.gt=r.prototype.greater=n.prototype.gt=n.prototype.greater,n.prototype.lesser=function(e){return this.compare(e)<0},r.prototype.lt=r.prototype.lesser=n.prototype.lt=n.prototype.lesser,n.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},r.prototype.geq=r.prototype.greaterOrEquals=n.prototype.geq=n.prototype.greaterOrEquals,n.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},r.prototype.leq=r.prototype.lesserOrEquals=n.prototype.leq=n.prototype.lesserOrEquals,n.prototype.isEven=function(){return 0==(1&this.value[0])},r.prototype.isEven=function(){return 0==(1&this.value)},n.prototype.isOdd=function(){return 1==(1&this.value[0])},r.prototype.isOdd=function(){return 1==(1&this.value)},n.prototype.isPositive=function(){return!this.sign},r.prototype.isPositive=function(){return this.value>0},n.prototype.isNegative=function(){return this.sign},r.prototype.isNegative=function(){return this.value<0},n.prototype.isUnit=function(){return!1},r.prototype.isUnit=function(){return 1===Math.abs(this.value)},n.prototype.isZero=function(){return!1},r.prototype.isZero=function(){return 0===this.value},n.prototype.isDivisibleBy=function(e){var n=X(e),r=n.value;return 0!==r&&(1===r||(2===r?this.isEven():this.mod(n).equals(t[0])))},r.prototype.isDivisibleBy=n.prototype.isDivisibleBy,n.prototype.isPrime=function(){var e=A(this);if(void 0!==e)return e;for(var n,r,s,o,u=this.abs(),a=u.prev(),f=[2,3,5,7,11,13,17,19],l=a;l.isEven();)l=l.divide(2);for(s=0;s<f.length;s++)if(o=i(f[s]).modPow(l,u),!o.equals(t[1])&&!o.equals(a)){for(r=!0,n=l;r&&n.lesser(a);n=n.multiply(2))o=o.square().mod(u),o.equals(a)&&(r=!1);if(r)return!1}return!0},r.prototype.isPrime=n.prototype.isPrime,n.prototype.isProbablePrime=function(e){var t=A(this);if(void 0!==t)return t;for(var n=this.abs(),r=void 0===e?5:e,s=0;s<r;s++)if(!i.randBetween(2,n.minus(2)).modPow(n.prev(),n).isUnit())return!1;return!0},r.prototype.isProbablePrime=n.prototype.isProbablePrime,n.prototype.modInv=function(e){for(var t,n,r,s=i.zero,o=i.one,u=X(e),a=this.abs();!a.equals(i.zero);)t=u.divide(a),n=s,r=u,s=o,u=a,o=n.subtract(t.multiply(o)),a=r.subtract(t.multiply(a));if(!u.equals(1))throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===s.compare(0)&&(s=s.add(e)),this.isNegative()?s.negate():s},r.prototype.modInv=n.prototype.modInv,n.prototype.next=function(){var e=this.value;return this.sign?m(e,1,this.sign):new n(p(e,1),this.sign)},r.prototype.next=function(){var e=this.value;return e+1<J?new r(e+1):new n(K,!1)},n.prototype.prev=function(){var e=this.value;return this.sign?new n(p(e,1),!0):m(e,1,this.sign)},r.prototype.prev=function(){var e=this.value;return e-1>-J?new r(e-1):new n(K,!0)};for(var G=[1];2*G[G.length-1]<=V;)G.push(2*G[G.length-1]);var Y=G.length,Z=G[Y-1];n.prototype.shiftLeft=function(e){if(!O(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftRight(-e);var t=this;if(t.isZero())return t;for(;e>=Y;)t=t.multiply(Z),e-=Y-1;return t.multiply(G[e])},r.prototype.shiftLeft=n.prototype.shiftLeft,n.prototype.shiftRight=function(e){var t;if(!O(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftLeft(-e);for(var n=this;e>=Y;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;t=k(n,Z),n=t[1].isNegative()?t[0].prev():t[0],e-=Y-1}return t=k(n,G[e]),t[1].isNegative()?t[0].prev():t[0]},r.prototype.shiftRight=n.prototype.shiftRight,n.prototype.not=function(){return this.negate().prev()},r.prototype.not=n.prototype.not,n.prototype.and=function(e){return M(this,e,function(e,t){return e&t})},r.prototype.and=n.prototype.and,n.prototype.or=function(e){return M(this,e,function(e,t){return e|t})},r.prototype.or=n.prototype.or,n.prototype.xor=function(e){return M(this,e,function(e,t){return e^t})},r.prototype.xor=n.prototype.xor;var et=1<<30,tt=(V&-V)*(V&-V)|et;n.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i(D(e,i(2)).e).add(i(1))},r.prototype.bitLength=n.prototype.bitLength;var nt=function(e,t){for(var n,i=e.length,s=Math.abs(t),n=0;n<i;n++){var o=e[n].toLowerCase();if("-"!==o&&/[a-z0-9]/.test(o)){if(/[0-9]/.test(o)&&+o>=s){if("1"===o&&1===s)continue;throw new Error(o+" is not a valid digit in base "+t+".")}if(o.charCodeAt(0)-87>=s)throw new Error(o+" is not a valid digit in base "+t+".")}}if(2<=t&&t<=36&&i<=Q/Math.log(t)){var u=parseInt(e,t);if(isNaN(u))throw new Error(o+" is not a valid digit in base "+t+".");return new r(parseInt(e,t))}t=X(t);var a=[],f="-"===e[0];for(n=f?1:0;n<e.length;n++){var o=e[n].toLowerCase(),l=o.charCodeAt(0);if(48<=l&&l<=57)a.push(X(o));else if(97<=l&&l<=122)a.push(X(o.charCodeAt(0)-87));else{if("<"!==o)throw new Error(o+" is not a valid character");var c=n;do n++;while(">"!==e[n]);a.push(X(e.slice(c+1,n)))}}return I(a,t,f)};n.prototype.toArray=function(e){return R(this,e)},r.prototype.toArray=function(e){return R(this,e)},n.prototype.toString=function(e){if(void 0===e&&(e=10),10!==e)return U(this,e);for(var t,n=this.value,r=n.length,i=String(n[--r]),s="0000000";--r>=0;)t=String(n[r]),i+=s.slice(t.length)+t;return(this.sign?"-":"")+i},r.prototype.toString=function(e){return void 0===e&&(e=10),10!=e?U(this,e):String(this.value)},n.prototype.toJSON=r.prototype.toJSON=function(){return this.toString()},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSNumber=n.prototype.valueOf,r.prototype.valueOf=function(){return this.value},r.prototype.toJSNumber=r.prototype.valueOf;for(var rt=0;rt<1e3;rt++)t[rt]=new r(rt),rt>0&&(t[-rt]=new r(-rt));return t.one=t[1],t.zero=t[0],t.minusOne=t[-1],t.max=P,t.min=H,t.gcd=B,t.lcm=j,t.isInstance=function(e){return e instanceof n||e instanceof r},t.randBetween=F,t.fromArray=function(e,t,n){return I(e.map(X),X(t||10),n)},t}();e.hasOwnProperty("exports")&&(e.exports=i),n=[],void 0!==(r=function(){return i}.apply(t,n))&&(e.exports=r)}).call(this,n(13)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.eventDispatcher.EventDispatcher,s=r.logger.prefixLogger,o=r.logger.noOpLogger,u=function(){function e(e,t,n,r,u){void 0===u&&(u=o);var a=this;this._onAppendQueued=new i,this._onAppendEnd=new i,this._providedStartTime=!1,this._needsInitData=!0,this._updateTimerId=null,this._gcTimerId=null,this._waitingForData=!1,this._started=!1,this._error=null,this._currentRetrieveHandle=null,this._mseInitialized=!1,this._logger=s(u,"SimpleMSE"),this.onAppendQueued=this._onAppendQueued.getHandle(),this.onAppendEnd=this._onAppendEnd.getHandle(),this._mse=e,this._getNextSegmentData=t,this._getPosition=n,this._onError=r,e.whenInitialized().then(function(){a._mseInitialized=!0,!a._error&&a._started&&(a._logger.debug("MSE initialized. Preparing to update."),a._prepareUpdate())}).catch(function(e){a._error||(a._logger.error("Error when waiting for MSE to initialize.",e),a._handleError(e||new Error("Error waiting for MSE to initialize.")))})}return e.prototype.start=function(){if(this._checkNotErrored(),this._started)throw new Error("Already started.");this._logger.debug("start() called."),this._scheduleGC(),this._started=!0,this._prepareUpdate()},e.prototype.kill=function(){this._error||(this._logger.debug("kill() called."),this._error=new Error("Killed."),this._clearTimers(),this._logger.debug("Killed."))},e.prototype.waitingForSegmentData=function(){return this._checkNotErrored(),this._waitingForData},e.prototype.provideNextSegmentData=function(e){if(this._checkNotErrored(),!this._waitingForData)throw new Error("Not waiting for data.");this._logger.debug("Segment data provided."),this._waitingForData=!1,this._update(e)},e.prototype._prepareUpdate=function(){if(!this._updateTimerId){var e=this._mse;if(this._mseInitialized){var t=e.getBuffered(),n=this._getPosition(),i=r.helpers.find(t,function(e){return e.containsTime(n)});if(!i||i.end<=this._getPosition()+15e3){this._logger.debug("Requesting next segment data.");var s=this._getNextSegmentData();s?(this._logger.debug("Got segment data."),this._update(s)):(this._logger.debug("Did not get any data."),this._waitingForData=!0)}else this._scheduleUpdate()}}},e.prototype._gc=function(){var e=this;if(!this._mseInitialized)return void this._scheduleGC();var t=this._mse,n=r.TimeRange.getCoverage(t.getBuffered()),i=this._getPosition()-5e3;if(n.start<i){var s=new r.TimeRange(n.start,i-n.start);this._logger.debug("Removing media that has been played.",s),t.remove(s).then(function(){e._logger.debug("Removed media that has been played.",s),e._error||e._scheduleGC()}).catch(function(t){e._logger.error("Error when attempting to remove media that has been played.",s,t),e._error||e._scheduleGC()})}else this._scheduleGC()},e.prototype._update=function(e){var t=this,n=e.data,i=e.eventRepresentation,s=e.startTime,o=this._mse;this._onAppendQueued.dispatch({segment:i}),this._logger.debug("Appending...",i,s);var u=[],a=!1,f=!1,l=!1,c=this._currentRetrieveHandle=n.run(),h=function(){if(!a&&!t._error){var e=u.shift();if(e&&!e.byteLength)t._logger.warn("Got 0 bytes to append. Skipping..."),h();else if(e){a=!0;var n=t._providedStartTime?null:s;t._logger.debug("Appending part...",i,e.byteLength,n),o.append(e,n).then(function(){t._providedStartTime=!0,a=!1,f=!0,h()}).catch(function(e){t._error||(t._logger.error("Error updating MSE.",e,i),t._handleError(e||new Error("Error updating MSE.")))})}else l&&(t._logger.debug("Append finished.",i),f||t._logger.warn("There was nothing to append."),t._currentRetrieveHandle=null,t._onAppendEnd.dispatch({segment:i}),t._prepareUpdate())}};c.onProgressUpdate(function(e){var n;n=t._needsInitData&&e.initData?r.helpers.arrayBuffer.combine([e.initData,e.data]):e.data,t._needsInitData=!1,u.push(n),h()}),c.onError(function(e){t._error||(t._logger.error("Error whilst retrieving data.",e,i),t._handleError(e||new Error("Error retrieving data for MSE.")))}),c.onCompletion(function(){t._logger.debug("Got all data for append.",i),l=!0,h()})},e.prototype._scheduleUpdate=function(){var e=this;this._updateTimerId=window.setTimeout(function(){e._updateTimerId=null,e._prepareUpdate()},500)},e.prototype._scheduleGC=function(){var e=this;this._gcTimerId||(this._gcTimerId=window.setTimeout(function(){e._gcTimerId=null,e._gc()},2e4))},e.prototype._checkNotErrored=function(){if(this._error)throw this._error},e.prototype._clearTimers=function(){this._updateTimerId&&(this._logger.debug("Clearing update timer."),window.clearTimeout(this._updateTimerId),this._updateTimerId=null),this._gcTimerId&&(window.clearTimeout(this._gcTimerId),this._gcTimerId=null),this._currentRetrieveHandle&&(this._currentRetrieveHandle.abort(),this._currentRetrieveHandle=null)},e.prototype._handleError=function(e){this._error||(this._error=e,this._logger.error("Error occurred.",e),this._clearTimers(),this._onError(e))},e}();t.SimpleMSE=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(4),s=n(7),o=n(6),u=n(5);!function(e){e.AppendError=r.AppendError,e.InitializeError=i.InitializeError,e.PlaylistUpdateError=s.PlaylistUpdateError,e.NoTransmuxerError=o.NoTransmuxerError,e.RetrievalError=u.RetrievalError}(t.errors||(t.errors={}))}])})},function(e,t,n){!function(t,r){e.exports=r(n(0))}(window,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._msg=e}return e.prototype.getMsg=function(){return this._msg},e}();t.OggParserError=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.ChecksumFailedError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.PageFromDifferentBitstreamError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.PageSequenceNumberDidNotIncrementError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.UnexpectedBOSError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.UnexpectedEOSError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.NoSegmentsInPageError=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.OggParserError);t.IncompletePageError=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(9));var r=n(0);t.OggParserError=r.OggParserError;var i=n(1);t.ChecksumFailedError=i.ChecksumFailedError;var s=n(6);t.NoSegmentsInPageError=s.NoSegmentsInPageError;var o=n(2);t.PageFromDifferentBitstreamError=o.PageFromDifferentBitstreamError;var u=n(3);t.PageSequenceNumberDidNotIncrementError=u.PageSequenceNumberDidNotIncrementError;var a=n(4);t.UnexpectedBOSError=a.UnexpectedBOSError;var f=n(5);t.UnexpectedEOSError=f.UnexpectedEOSError;var l=n(7);t.IncompletePageError=l.IncompletePageError},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=1),t<0||t+n>e.byteLength)throw new Error("extract() out of bounds. "+t+" "+n+" "+e.byteLength);return e.slice(t,t+n)}function i(e,t){return void 0===t&&(t=!0),(new DataView(e)).getUint32(0,t)}function s(e){for(var t=e.buffer,n=[],r=e.byteOffset,i=!0;r<e.byteOffset+e.byteLength;){var s=new DataView(t,r);try{var u=o(s);n.push(u),r+=u.entirePage.byteLength}catch(a){if(a instanceof m.IncompletePageError){i=!1;break}throw a}}return{pages:n,eos:i}}function o(e){var t=new Uint8Array(e.buffer,e.byteOffset),n=t.byteLength;if(n<w)throw new m.IncompletePageError("Incomplete page.");var s=r(t,26);if(n<w+s[0])throw new m.IncompletePageError("Incomplete page.");var o=r(t,w,s[0]),u={version:r(t,4),type:r(t,5),granulePosition:r(t,6,8),bitstreamSerialNumber:r(t,14,4),pageSequenceNumber:r(t,18,4),checksum:r(t,22,4),pageSegments:s,segmentTable:o},a=[],c=w+s[0];if(o.forEach(function(e){if(n<c+e)throw new m.IncompletePageError("Incomplete page.");a.push(r(t,c,e)),c+=e}),!a.length)throw new v.NoSegmentsInPageError("No segments.");if(f.calculateCRC([y,u.version,u.type,u.granulePosition,u.bitstreamSerialNumber,u.pageSequenceNumber,b,s,o].concat(a))!==i(u.checksum.buffer))throw new l.ChecksumFailedError("Checksum failed.");return{header:u,segments:a,entirePage:r(t,0,c)}}function u(e){if(!e.length)return[];var t=i(e[0].header.bitstreamSerialNumber.buffer),n=-1,r=null,s=[];return e.forEach(function(o,u){if(i(o.header.bitstreamSerialNumber.buffer)!==t)throw new c.PageFromDifferentBitstreamError("Got a page from a different bitstream.");var a=i(o.header.pageSequenceNumber.buffer);if(a<=n)throw new h.PageSequenceNumberDidNotIncrementError("Page sequence number was not greater than the previous one.");var f=a!==n+1;n=a;var l=o.header.type[0],v=!!(1&l),m=!!(2&l);if(m&&u>0)throw new p.UnexpectedBOSError("Got BOS on a page which is not the first.");var y=!!(4&l);if(y&&u!==e.length-1)throw new d.UnexpectedEOSError("Got EOS on a page which is not the last.");var b=0;f&&(r=null);var w=o.segments.length;o.segments.forEach(function(e,t){if(r?r.data=g([r.data,e]):v&&0===t||(r={granulePosition:null,pageSequenceNumber:n,packetOffset:b,discontinuity:f&&0===b,first:m&&0===b,last:!1,data:e},b++),r&&e.byteLength<255){var u=t===w-1;u&&(r.granulePosition=i(o.header.granulePosition.buffer)),r.last=y&&u,s.push(r),r=null}})}),s}Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),f=n(11),l=n(1),c=n(2),h=n(3),p=n(4),d=n(5),v=n(6),m=n(7),g=a.helpers.arrayBuffer.combine,y=new Uint8Array([79,103,103,83]),b=new Uint8Array([0,0,0,0]),w=27;t.retrievePages=s,t.parsePage=o,t.retrievePackets=u},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){var t=0;return e.forEach(function(e){for(var n=0;n<e.length;n++)t=t<<8^i[t>>24&255^e[n]]}),t>>>0}Object.defineProperty(t,"__esModule",{value:!0});var i=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);t.calculateCRC=r}])})},function(e,t,n){!function(t,r){e.exports=r(n(0))}(window,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(2))},function(e,t,n){"use strict";function r(e){var t=3&e[0];return 0===t?1:3!==t?2:63&e[1]}function i(e){var t=e[0]>>>3&31;if(t>=p.length)throw new Error("Invalid configuration.");return p[t]}function s(e){if(!e.first)throw new Error("OpusHead is always in the first packet.");var t=e.data,n=new DataView(t.buffer),r=n.getUint8(9),i=n.getUint8(18),s=void 0,o=void 0,u=void 0;if(i>0){s=n.getUint8(18),o=n.getUint8(19),u=[];for(var a=0;a<r;a++)u.push(n.getUint8(20+a))}return{version:n.getUint8(8),channelCount:r,preSkip:n.getUint16(10,!0),inputSampleRate:n.getUint32(12,!0),outputGain:n.getInt16(16,!0)*Math.pow(2,-8),channelMapFamily:i,streamCount:s,twoChannelStreamCount:o,channelMappingTable:u}}function o(e,t){if(t>=128||t<-128)throw new Error("outputGainOverride invalid. It must be >= -128 and < 128.");s(e),(new DataView(e.data.buffer)).setInt16(16,Math.round(t*Math.pow(2,8)),!0)}function u(e){var t=e[0];if(!t||!t.first)throw new Error("Missing start of stream.");var n=e.slice(2),o=s(t),u=0,a=n.map(function(e){var t=new Uint8Array(4);t[0]=129,(new DataView(t.buffer)).setInt16(1,u),t[3]=128;var n=r(e.data);return u+=n*i(e.data),f.encodeElement(f.IDS.SimpleBlock,c([t,e.data]))});return{initData:c([f.encodeElement(f.IDS.EBML,function(){return c([f.encodeElement(f.IDS.EBMLVersion,h(1)),f.encodeElement(f.IDS.EBMLReadVersion,h(1)),f.encodeElement(f.IDS.EBMLMaxIDLength,h(4)),f.encodeElement(f.IDS.EBMLMaxSizeLength,h(8)),f.encodeElement(f.IDS.DocType,new Uint8Array([119,101,98,109])),f.encodeElement(f.IDS.DocTypeVersion,h(1)),f.encodeElement(f.IDS.DocTypeReadVersion,h(2))])}()),f.encodeElement(f.IDS.Segment,function(){return f.encodeElement(f.IDS.Info,function(){return f.encodeElement(f.IDS.Duration,function(){var e=new Uint8Array(8);return(new DataView(e.buffer)).setFloat64(0,u),e}())}())}()),f.encodeElement(f.IDS.Tracks,function(){return f.encodeElement(f.IDS.TrackEntry,function(){return c([f.encodeElement(f.IDS.TrackNumber,h(1)),f.encodeElement(f.IDS.TrackUID,h(1)),f.encodeElement(f.IDS.FlagLacing,h(0)),f.encodeElement(f.IDS.CodecID,new Uint8Array([65,95,79,80,85,83])),f.encodeElement(f.IDS.CodecDelay,h(o.preSkip/48e3*1e9)),f.encodeElement(f.IDS.SeekPreRoll,new Uint8Array([4,196,180,0])),f.encodeElement(f.IDS.TrackType,h(2)),f.encodeElement(f.IDS.Audio,function(){return c([f.encodeElement(f.IDS.Channels,h(o.channelCount)),f.encodeElement(f.IDS.SamplingFrequency,new Uint8Array([64,231,112,0,0,0,0,0]))])}()),f.encodeElement(f.IDS.CodecPrivate,t.data)])}())}())]),data:f.encodeElement(f.IDS.Cluster,function(){var e=[f.encodeElement(f.IDS.Timecode,h(0))];return e.push.apply(e,a),c(e)}())}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),f=n(3),l=a.helpers.arrayBuffer,c=l.combine,h=l.numberToUint8Array,p=[10,20,40,60,10,20,40,60,10,20,40,60,10,20,10,20,2.5,5,10,20,2.5,5,10,20,2.5,5,10,20,2.5,5,10,20];t.parseOpusHead=s,t.setOutputGain=o,t.buildWebm=u},function(e,t,n){"use strict";function r(e,t){var n=u(e),r=a(t.byteLength);return o([n,r,t])}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=i.helpers.arrayBuffer,o=s.combine,u=s.numberToUint8Array,a=s.createVintBuffer;t.IDS={EBML:440786851,EBMLVersion:17030,EBMLReadVersion:17143,EBMLMaxIDLength:17138,EBMLMaxSizeLength:17139,DocType:17026,DocTypeVersion:17031,DocTypeReadVersion:17029,Segment:408125543,Info:357149030,Duration:17545,Tracks:374648427,TrackEntry:174,TrackNumber:215,TrackUID:29637,FlagLacing:156,CodecID:134,CodecDelay:22186,SeekPreRoll:22203,TrackType:131,Audio:225,Channels:159,SamplingFrequency:181,CodecPrivate:25506,Cluster:524531317,Timecode:231,SimpleBlock:163},t.encodeElement=r}])})},function(e,t,n){!function(t,r){e.exports=r(n(0),n(5))}(window,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version="29.5.1",t.buildNumber=1996;var r=n(1);t.PlaylistHLS=r.PlaylistHLS},function(e,t,n){"use strict";function r(e){return 0===e.indexOf('"')&&e.lastIndexOf('"')===e.length-1?e.slice(1,-1):e}function i(e){0===e.indexOf("0x")&&(e=e.substr(2));var t=new Uint16Array(8);if(e.length%4!=0)throw new p("Failed to parse IV (length is not multiple of 4).");for(var n=0;n<e.length;n+=4){var r=parseInt(e.substr(n,4),16);if(isNaN(r))throw new p("Failed to parse hex number in IV string.");t[n/4]=r}return new Uint8Array(t)}function s(e){for(var t=new Uint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}function o(e){return!(e>=400&&e<500)}function u(e){var t={};k.lastIndex=0;for(var n;null!==(n=k.exec(e));){var i=n[1].trim().toLowerCase(),s=r(n[2].trim());t[i]=s}return t}var a=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var f,l=n(2),c=n(3),h=c.retrievalErrors.UnacceptableResponseStatusCodeError,p=c.retrievalErrors.PlaylistParseError,d=c.retrievalErrors.UnsupportedEncryptionError,v=l.helpers.abortableJob.AbortableJob,m=l.helpers.deferred.buildDeferred,g=l.helpers.cache.buildCache,y=l.helpers.retry,b=y.retry,w=y.buildExponentialDelayCalculator,E=l.helpers.Promise,S=l.helpers.find,x=l.helpers.url,T=l.logger.prefixLogger,N=l.logger.noOpLogger,C=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(MAP):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT(INF): *(\d+(?:\.\d+)?)(?:,(.*))?)|(?:(?!#)()(\S.+))|(?:#EXT-X-(BYTERANGE): *(\d+(?:@\d+(?:\.\d+)?)?)|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(PROGRAM-DATE-TIME):(.+))|(?:#EXT-X-(VERSION):(\d+))|(?:(#)(.*):(.*))|(?:(#)(.*)))(?:.*)\r?\n?/g,k=/(.+?)=(.+?)(?:,|$)/g,L=/^\d*(\.\d+)?$/;!function(e){e[e.NONE=0]="NONE",e[e.AES_128=1]="AES_128",e[e.SAMPLE_AES=2]="SAMPLE_AES"}(f||(f={}));var A=function(e){function t(t){var n=t.url,r=t.playlistLoader,i=t.segmentLoader,s=t.keyLoader,u=t.segmentFormat,a=t.logger,f=void 0===a?N:a,p=t.delayCalculator,d=void 0===p?w():p,y=t.keyDelayCalculator,S=void 0===y?w():y,x=t.segmentDelayCalculator,C=t.isPlaylistResponseCodeAcceptable,k=void 0===C?function(e){return 200===e}:C,L=t.isPlaylistResponseCodeRetryable,A=void 0===L?o:L,O=t.isSegmentResponseCodeAcceptable,M=void 0===O?function(e){return 200===e}:O,_=t.isSegmentResponseCodeRetryable,D=void 0===_?o:_,P=t.isKeyResponseCodeAcceptable,H=void 0===P?function(e){return 200===e}:P,B=t.isKeyResponseCodeRetryable,j=void 0===B?o:B,F=e.call(this)||this;return F._keyRetrievalJobsCache=g(),F._initDataRetrievalJobsCache=g(),F._data=null,F._lastUpdateTime=null,F._playlistEventRepresentation=null,F._logger=T(f,"PlaylistHLS"),F._url=n,F._playlistLoader=r,F._segmentLoader=i,F._keyLoader=s||null,F._segmentFormat=u,F._keyDelayCalculator=S,F._isPlaylistResponseCodeAcceptable=k,F._isPlaylistResponseCodeRetryable=A,F._isSegmentResponseCodeAcceptable=M,F._isSegmentResponseCodeRetryable=D,F._isKeyOrInitDataResponseCodeAcceptable=H,F._isKeyOrInitDataResponseCodeRetryable=j,F._segmentDelayCalculator=x,F._downloadAbortableJob=new v(function(){var e=l.helpers.deferred.buildDeferred(),t=b(d,function(t){var r=t.scheduleRetry,i=new c.events.Playlist(n);F._onPlaylistRequestQueued.dispatch({playlist:i});var s=F._playlistLoader.request({url:n});return s.onRequestStart(function(){F._onPlaylistRequestStart.dispatch({playlist:i})}),F._logger.debug("Requesting playlist.",n),s.onResponseReceived(function(t){if(!t)return F._logger.warn("Playlist request timed out.",n),F._onPlaylistRequestFailed.dispatch({playlist:i,statusCode:null}),void r();var s=t.statusCode;if(F._isPlaylistResponseCodeAcceptable(s)){var o=t.getData();return o?(F._logger.debug("Got playlist response.",n,s),F._onPlaylistRetrieved.dispatch({playlist:i,statusCode:s}),void e.resolve({playlistContent:o,eventRepresentation:i})):(F._logger.warn("Playlist response contained no data.",n,s),F._onPlaylistRequestFailed.dispatch({playlist:i,statusCode:s}),void r())}if(!F._isPlaylistResponseCodeRetryable(s))return F._logger.debug("Playlist response code was not acceptable.",n,s),F._onPlaylistRequestFailed.dispatch({playlist:i,statusCode:s}),void e.reject(new h(s));F._logger.debug("Playlist response code was not acceptable. Will retry.",n,s),F._onPlaylistRequestFailed.dispatch({playlist:i,statusCode:s}),r()}),s.onError(function(t){if(t instanceof l.loaderErrors.LoaderError)return F._logger.warn("Error from loader. Will retry",n,t),void r();e.reject(t)}),{onCancel:function(){F._logger.debug("Aborting playlist request.",n),s.hasCompleted()||s.abort(),F._onPlaylistRequestFailed.dispatch({playlist:i,aborted:!0})}}},{onNoMoreRetries:function(){return e.reject(new Error("No more retries for requesting playlist."))}}).cancel;return{result:e.promise,abort:function(){return t()}}}),F._updateJob=new v(function(){if(F._data&&F._data.ended)return{result:E.resolve(void 0)};var e=m(),t=F._downloadAbortableJob.run();return t.onCompletion(function(t){var n=t.playlistContent,r=t.eventRepresentation;F._lastUpdateTime=l.helpers.time.now(),F._onPlaylistParseStart.dispatch({playlist:r});try{F._data=F._parsePlaylist(n)}catch(i){return F._logger.error("Error when parsing playlist.",i,n),void e.reject(i)}F._playlistEventRepresentation=r,F._onPlaylistParseEnd.dispatch({playlist:r}),e.resolve(void 0)}),t.onError(e.reject),{result:e.promise,abort:function(){return t.abort()}}}),F}return a(t,e),t.prototype.hasInitialUpdateCompleted=function(){return!!this._data},t.prototype.getType=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.type},t.prototype.getExpireTime=function(){var e=this._data,t=this._lastUpdateTime;return e&&e.type===c.PlaylistType.LIVE&&null!==t?t+e.segments.reduce(function(e,t){return e+t.timeRange.duration},0)/2:null},t.prototype.hasEnded=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.ended},t.prototype.getCompleteDuration=function(){return this._data&&this._data.ended?this._data.totalDuration:null},t.prototype.getDuration=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.totalDuration},t.prototype.getTargetDuration=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.targetDuration},t.prototype.getFirstSegmentIndex=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.mediaSequence},t.prototype.getSegmentCount=function(){if(!this._data)throw new Error("Not loaded yet.");return this._data.segments.length},t.prototype.getSegmentIndexContainingTime=function(e){var t=this._data;if(!t)throw new Error("Not loaded yet.");var n=S(t.segments,function(t){return t.timeRange.containsTime(e)});return n?t.mediaSequence+t.segments.indexOf(n):null},t.prototype._update=function(){return this._updateJob.run()},t.prototype._getSegment=function(e){var t=this,n=this._data;if(!n)throw new Error("Not loaded yet.");var r=n.segments[e-n.mediaSequence];return(new v(function(){var n=r.encryptionData,i=t._playlistEventRepresentation;if(!i)throw new Error("Playlist event representation should exist.");var s=t._buildEncryptionConfig(n,e),o=r.initDataUrl?t._retrieveInitData(r.initDataUrl):null;return{result:s.whenComplete().then(function(n){var s=function(s){return new c.Segment({url:r.url,sequenceNumber:e,playlist:t,timeRange:r.timeRange,format:t._segmentFormat,loader:t._segmentLoader,playlistEventRepresentation:i,logger:t._logger,delayCalculator:t._segmentDelayCalculator,isResponseCodeAcceptable:t._isSegmentResponseCodeAcceptable,isResponseCodeRetryable:t._isSegmentResponseCodeRetryable,encryptionConfig:n,initData:s})};return o?o.whenComplete().then(function(e){return s(e)}):s(void 0)}),abort:function(){s.abort(),o&&o.abort()}}})).run()},t.prototype._buildEncryptionConfig=function(e,t){var n=this;return(new v(function(){if(e.method===f.NONE)return{result:E.resolve(void 0)};if(e.method!==f.AES_128)return n._logger.error("Unsupported encryption method.",e.method),{result:E.reject(new d)};if(!n._keyLoader)return{result:E.reject(new Error("Encryption method not supported as no key loader provided."))};var r=n._retrieveKey(e.keyUrl);return{result:r.whenComplete().then(function(n){return{cipher:"AES-CBC",key:n,iv:e.iv||s(t)}}),abort:function(){return r.abort()}}},{storeResult:!0})).run()},t.prototype._retrieveKey=function(e){var t=this,n=this._keyLoader;if(!n)throw new Error("No key loader.");var r=this._playlistEventRepresentation;if(!r)throw new Error("Playlist event representation should exist.");var i=new c.events.Key(r,e);return this._retrieveKeyOrInitData({url:e,loader:n,cache:this._keyRetrievalJobsCache,onRequestQueued:function(){return t._onKeyRequestQueued.dispatch({key:i})},onRequestStart:function(){return t._onKeyRequestStart.dispatch({key:i})},onRequestTimedOut:function(){t._onKeyRequestFailed.dispatch({key:i,statusCode:null})},onRequestFailed:function(e){t._onKeyRequestFailed.dispatch({key:i,statusCode:e})},onRequestAborted:function(){t._onKeyRequestFailed.dispatch({key:i,aborted:!0})},onRetrieved:function(e){t._onKeyRetrieved.dispatch({key:i,statusCode:e})},type:"key"})},t.prototype._retrieveInitData=function(e){var t=this,n=this._playlistEventRepresentation;if(!n)throw new Error("Playlist event representation should exist.");var r=new c.events.InitData(n,e);return this._retrieveKeyOrInitData({url:e,loader:this._segmentLoader,cache:this._initDataRetrievalJobsCache,onRequestQueued:function(){return t._onInitDataRequestQueued.dispatch({initData:r})},onRequestStart:function(){return t._onInitDataRequestStart.dispatch({initData:r})},onRequestTimedOut:function(){t._onInitDataRequestFailed.dispatch({initData:r,statusCode:null})},onRequestFailed:function(e){t._onInitDataRequestFailed.dispatch({initData:r,statusCode:e})},onRequestAborted:function(){t._onInitDataRequestFailed.dispatch({initData:r,aborted:!0})},onRetrieved:function(e){t._onInitDataRetrieved.dispatch({initData:r,statusCode:e})},type:"init data"})},t.prototype._retrieveKeyOrInitData=function(e){var t=this,n=e.url,r=e.loader,i=e.cache,s=e.onRequestQueued,o=e.onRequestStart,u=e.onRequestTimedOut,a=e.onRequestFailed,f=e.onRequestAborted,c=e.onRetrieved,p=e.type,d=i.get(n);return d?this._logger.debug(p+" retrieval already in progress.",n):(d=new v(function(){var e=l.helpers.deferred.buildDeferred(),i=b(t._keyDelayCalculator,function(i){var d=i.scheduleRetry;s();var v=r.request({url:n});return v.onRequestStart(o),t._logger.debug("Retrieving "+p+".",n),v.onResponseReceived(function(r){if(!r)return t._logger.warn(p+" request timed out.",n),u(),void d();var i=r.statusCode;if(t._isKeyOrInitDataResponseCodeAcceptable(i)){var s=r.getData();return s?(t._logger.debug("Got "+p+" response.",n,i),c(i),void e.resolve(new Uint8Array(s))):(t._logger.warn(p+" response contained no data.",n,i),a(i),void d())}if(!t._isKeyOrInitDataResponseCodeRetryable(i))return t._logger.warn(p+" response code was not acceptable.",n,i),a(i),void e.reject(new h(i));t._logger.warn(p+" response code was not acceptable. Will retry.",n,i),a(i),d()}),v.onError(function(r){if(r instanceof l.loaderErrors.LoaderError)return t._logger.warn("Error from loader. Will retry",n,r),void d();e.reject(r)}),{onCancel:function(){t._logger.debug("Aborting "+p+" request.",n),v.hasCompleted()||v.abort(),f()}}},{onNoMoreRetries:function(){return e.reject(new Error("No more retries for requesting "+p+"."))}}).cancel;return{result:e.promise,abort:function(){return i()}}},{storeResult:!0}),i.set(n,d)),d.run()},t.prototype._parsePlaylist=function(e){var t=this._data,n={version:null,type:c.PlaylistType.LIVE,mediaSequence:null,targetDuration:null,totalDuration:0,ended:!1},r=[],s={method:f.NONE},o=null,a=null;C.lastIndex=0;for(var h,d=0,v=!1;null!==(h=C.exec(e));){var m=h.filter(function(e,t){return 0!==t&&void 0!==e}).map(function(e,t){return 0===t?e.toLowerCase():e}),g=m[0],y=m.slice(1);if(0===d){if("extm3u"!==g)throw new p("First line did not contain EXTM3U tag.")}else{if(!v)switch(g){case"playlist-type":if(n.type!==c.PlaylistType.LIVE)throw new p("Already have playlist type.");switch(y[0].toLowerCase()){case"vod":n.type=c.PlaylistType.VOD;break;case"event":n.type=c.PlaylistType.EVENT;break;default:throw new p("Invalid playlist type.")}break;case"media-sequence":if(null!==n.mediaSequence)throw new p("Already have media sequence number.");var b=parseInt(y[0],10);if(b+""!==y[0])throw new p("Invalid media sequence number.");n.mediaSequence=b;break;case"targetduration":if(null!==n.targetDuration)throw new p("Already have target duration.");var w=parseInt(y[0],10);if(w+""!==y[0]||w<0)throw new p("Invalid target duration.");n.targetDuration=1e3*w;break;case"version":if(null!==n.version)throw new p("Already have version.");var E=parseInt(y[0],10);if(E+""!==y[0])throw new p("Invalid version.");if(E<3)throw new p("HLS version must be 3 or above.");n.version=E;break;default:v=!0}if(v)switch(g){case"key":var S=u(y[0]),T="method"in S?S.method.toLowerCase():null,N="uri"in S?x.buildAbsoluteUrl(this._url,S.uri):null,k="iv"in S?i(S.iv):null;if(!T)throw new p("Missing encryption method.");if(!N&&"none"!==T)throw new p("Missing key url.");switch(T){case"none":if(null!==N)throw new p("Key url not allowed.");if(null!==k)throw new p("IV not allowed.");s={method:f.NONE};break;case"aes-128":if(!N)throw new p("Key url required.");s={method:f.AES_128,keyUrl:N,iv:k};break;case"sample-aes":if(!N)throw new p("Key url required.");s={method:f.SAMPLE_AES,keyUrl:N,iv:k};break;default:throw new p("Unknown encryption method.")}break;case"map":var S=u(y[0]);if(!("uri"in S))throw new p("URI missing from EXT-X-MAP tag.");if("byterange"in S)throw new p("BYTERANGE in EXT-X-MAP tag is currently unsupported.");o=S.uri?x.buildAbsoluteUrl(this._url,S.uri):null;break;case"inf":if(!y[0].match(L))throw new p("Invalid segment duration.");a=1e3*parseFloat(y[0]);break;case"":if(n.ended)throw new p("Already received ENDLIST tag.");if(null===a)throw new p("Not received segment duration.");var A=x.buildAbsoluteUrl(this._url,y[0]);r.push({url:A,timeRange:new l.TimeRange(n.totalDuration,a),initDataUrl:o,encryptionData:s}),n.totalDuration+=a,a=null;break;case"endlist":if(n.ended)throw new p("Already had ENDLIST tag.");n.ended=!0;break;default:this._logger.warn("Unable to parse playlist line.",g)}}d++}var O=n.version,M=n.type,_=n.mediaSequence,D=n.targetDuration,P=n.ended,H=n.totalDuration;if(null===O)throw new p("Missing version.");if(null===D)throw new p("Missing target duration.");if(P&&M===c.PlaylistType.LIVE)throw new p("Cannot be ended if type is LIVE.");if(!P&&M===c.PlaylistType.VOD)throw new p("Must be ended if type is VOD.");if(null===_&&(_=0),t){if(t.type!==M)throw new p("Playlist type has changed since last update.");if(t.type===c.PlaylistType.EVENT&&_!==t.mediaSequence)throw new p("Media sequence number has changed. Not valid for EVENT playlist.");var B=t.segments[_-t.mediaSequence];if(!B)throw new p("Tracking lost. The last segment of the previous playlist is no longer in the new one.");var j=B.timeRange.start;r.forEach(function(e){var t=e.timeRange;e.timeRange=new l.TimeRange(t.start+j,t.duration)}),H+=j}return{version:O,type:M,mediaSequence:_,targetDuration:D,totalDuration:H,ended:P,segments:r}},t}(c.Playlist);t.PlaylistHLS=A},function(t,n){t.exports=e},function(e,n){e.exports=t}])})}])}),
define("vendor/i18n/lib/datetime",["require","exports","module"],function(e,t,n){function f(e,t){function f(t,n,r){if(t instanceof Date){r=r||Date.now();var i=r-t,s=i>0,o,a=null,f,l,c=e.relativeTime;n=n&&parseInt(n,10)||1e3,i=Math.abs(i);if(i<=n)return s?c.justNow:c.rightNow;for(o in u)if(u.hasOwnProperty(o)){if(i<u[o])break;a=o,i/=u[o]}return i=Math.floor(i),f=s?c.past:c.future,l=c[a](i),typeof f=="function"?f(l):f.replace(/%s/i,l)}throw new Error("toRelativeTime method expects first argument to be Date")}function g(t,n){var r,i,s,o,u,a,l=e.dates;if(t instanceof Date)return n==="relative"?f(t):(r=t.getDate(),i=t.getDay(),s=t.getMonth(),o=t.getFullYear(),u=y(t.getMinutes()),a=[["YYYY",o],["MMMM",l.monthsDay&&l.monthsDay[s]||l.months[s]],["DDDD",l.weekdays[i]],["MMM",l.monthsDayShort&&l.monthsDayShort[s]||l.monthsShort[s]],["DD",r],["MM",s+1],["HH",t.getHours()],["mm",u]],a.reduce(function(e,t){return e.replace(new RegExp(t[0],"g"),t[1])},w(n)));throw new Error("format method expects first argument to be Date")}function w(t){var n;switch(t){case"iso":return"YYYY-MM-DD";case"readable":n="readable";break;case"readable_time":n="readableTime";break;case"readable_abbreviated":n="readableAbbreviated";break;case"readable_with_weekday":n="readableWithWeekday";break;default:n="default"}return e.dateFormats[n]}function E(e){var t,r;return t=typeof e=="number"?new Date(e):l(e),r=t-Date.now(),Math.abs(r)>7*o?!1:(n=r,!0)}function S(){return Date.now()+n}function x(t,n){if(isNaN(t))return t;var o=[],u=Math.floor(t/s),a=Math.floor(t/i%60),f=Math.floor(t/r%60),l=e.relativeTime;return n&&n.inWords?(u>0&&o.push(l.hour(u)),a>0&&o.push(l.min(a)),(f>0||a===0&&u===0)&&o.push(l.sec(f)),o.join(" ")):(u>0&&o.push(u),n&&n.minimal&&u===0&&a===0?o.push(""):o.push(a<10&&u>0?"0"+a:a),o.push(f<10?"0"+f:f),o.join(":"))}function T(e){return t.zeroPad(e.getHours(),2)+":"+t.zeroPad(e.getMinutes(),2)}var n=0;return{time:a,toRelativeTime:f,format:g,fromString:l,setServerTime:E,nowAtServer:S,timecode:x,stringToTime:c,convert:h,floorTo30Minutes:p,parseTime:d,formatTime:T,getTimezoneOffset:v,getBounds:m,toLocalDate:b}}function l(e){return new Date(Date.parse(e)||e)}function c(e){var t=/^\d+(\.\d+)?$/g,n=/^(?:npt:)?(?:(?:(\d+):)?(\d\d?):)?(\d\d?)(\.\d+)?$/,r=/^(?:(\d\d?)[hH])?(?:(\d\d?)[mM])?(\d\d?)[sS]$/,i;return t.test(e)?parseFloat(e)*1e3:(i=n.exec(e)||r.exec(e),i?(3600*(parseInt(i[1],10)||0)+60*(parseInt(i[2],10)||0)+parseInt(i[3],10)+(parseFloat(i[4])||0))*1e3:0)}function h(e,t,n){n=n||"s";var r="smh",i=r.indexOf(t),s=r.indexOf(n);if(i===-1||s===-1)throw new Error('Units must be expressed as either "h", "m" or "s"');return Math.round(Math.pow(60,s-i)*e)}function p(e){return e=new Date(e),e.setMinutes(e.getMinutes()-e.getMinutes()%30),e}function d(e){var t=e.match(/^\s*(\d{1,2})\s*(?::\s*(\d{1,2}))?\s*(?:(a|p)m?)?\s*$/i),n,r,i;if(!t)return;n=t[1]&&parseInt(t[1],10),r=t[2]&&parseInt(t[2],10),i=t[3]&&t[3].toLowerCase();if(n>23||r>59)return;if(i)if(i==="p"){if(n<12)n+=12;else if(n>13)return}else if(i==="a")if(n===12)n=0;else if(n>12)return;return r||(r=0),[n,r]}function v(){var e=new Date(2009,0,1,6,0,0),t=new Date(2009,6,1,6,0,0),n;return n=e.getUTCHours()>t.getUTCHours()?e.getTimezoneOffset():t.getTimezoneOffset(),n}function m(e){if(e.offset==null)return{};var t=new Date;g(t,e.resolution);var n=+(new Date(+t+e.offset*a[e.resolution])),r=+(new Date(n+(e.duration-1)*a[e.resolution]));return{from:n,to:r}}function g(e,t){switch(t){case"day":e.setUTCHours(0,0,0,0);break;case"hour":e.setUTCMinutes(0,0,0)}}function y(e){return("0"+e).substr(-2)}function b(e){var t=typeof e=="string"?Date.parse(e):typeof e=="number"?e:e.valueOf(),n=v()*60*1e3;return new Date(t+n)}n.exports=f;var r=1e3,i=6e4,s=60*i,o=24*s,u={sec:1e3,min:60,hour:60,day:24,month:30,year:12},a={minute:i,hour:s,day:o}}),
define("vendor/i18n/lib/number",["require","exports","module"],function(e,t,n){function r(e){return{round:i,format:function(t,n){if(t===""||t==null||isNaN(t)||Math.abs(t)===Infinity)return"";t=parseFloat(t);var r=n&&n.precision||0,s=e.delimiters;return r=Math.max(Math.min(r,20),0),t=i(t,r,n&&n.roundingFn),n&&!isNaN(n.fixed)&&(t=t.toFixed(Math.max(Math.min(n.fixed,20),0))),(""+t).split(".").map(function(e,t){return t===0?e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+s.thousands):e}).join(s.decimal)},zeroPad:function(e,t){if(e==null)return e;e+="";var n=t-e.length;return n>0&&(e=(new Array(n+1)).join("0")+e),e}}}function i(e,t,n){n=n||Math.round;var r=Math.pow(10,t||0);return n(e*r)/r}n.exports=r}),
define("vendor/i18n/lib/price",["require","exports","module"],function(e,t,n){function o(e,t){return s.hasOwnProperty(e)?t.replace(s[e].default,s[e].override):t}function a(e){return u.hasOwnProperty(e)?u[e]:2}function f(e,t){var n=r.memoize(function(t,n){try{return(new Intl.NumberFormat(e.replace("_","-"),{style:t?"currency":"decimal",currency:t,minimumFractionDigits:n})).format}catch(r){return(new Intl.NumberFormat(e.replace("_","-"),{style:"decimal",minimumFractionDigits:n})).format}},function(e,t){return""+e+t});return{format:function(r,s,u){var f=r/Math.pow(10,a(s));if(typeof Intl!="undefined")return o(s,n(s,u)(f));var l=t.format(f,{precision:2,minFractionDigits:u}),c=i[s]||s;switch(e){case"en":case"en_GB":return""+c+l;case"fr":return""+l+" "+c;default:return""+l+c}}}}var r={has:function(e,t){return e!=null&&hasOwnProperty.call(e,t)},memoize:function(e,t){var n=function(i){var s=n.cache,o=""+(t?t.apply(this,arguments):i);return r.has(s,o)||(s[o]=e.apply(this,arguments)),s[o]};return n.cache={},n}};n.exports=f;var i={AUD:"AU$",CAD:"CA$",EUR:"€",GBP:"£",NZD:"NZ$",USD:"$"},s={AUD:{"default":"A$",override:"AU$"},USD:{"default":/US\$|\$US/,override:"$"},GBP:{"default":"£GB",override:"£"}},u={BIF:0,CLP:0,DJF:0,GNF:0,ISK:0,JPY:0,KMF:0,KRW:0,PYG:0,RWF:0,UGX:0,UYI:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,BHD:3,IQD:3,JOD:3,KWD:3,LYD:3,OMR:3,TND:3,CLF:4}}),
define("vendor/i18n/locales/es",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Ahora mismo",rightNow:"Ahora mismo",future:"en %s",past:"hace %s",sec:i(["1 segundo","%d segundos"]),min:i(["1 minuto","%d minutos"]),hour:i(["1 hora","%d horas"]),day:i(["1 día","%d días"]),month:i(["1 mes","%d meses"]),year:i(["1 año","%d años"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"DD MMM YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD/MM/YYYY"},dates:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],weekdays:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],shortWeekdays:["Dom.","Lun.","Mar.","Mié.","Jue.","Vie.","Sáb."],minWeekdays:["Do","Lu","Ma","Mi","Ju","Vi","Sá"]},d3:{grouping:[3],currency:["€",""],dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Cerrar",prevText:"Ant",nextText:"Sig",currentText:"Hoy",weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("vendor/i18n/locales/de",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Vor kurzem",rightNow:"Jetzt",future:"in %s",past:"vor %s",sec:i(["1 Sekunde","%d Sekunden"]),min:i(["1 Minute","%d Minuten"]),hour:i(["1 Stunde","%d Stunden"]),day:i(["1 Tag","%d Tagen"]),month:i(["1 Monat","%d Monaten"]),year:i(["1 Jahr","%d Jahren"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"DD MMM YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD.MM.YYYY"},dates:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],weekdays:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortWeekdays:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],minWeekdays:["So","Mo","Di","Mi","Do","Fr","Sa"]},d3:{grouping:[3],currency:[""," €"],dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Schließen",prevText:"Zurück",nextText:"Weiter",currentText:"Heute",weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}};n.exports=r}),
define("vendor/i18n/locales/en",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:",",decimal:"."},relativeTime:{justNow:"Just now",rightNow:"Right now",future:"in %s",past:"%s ago",sec:i(["1 second","%d seconds"]),min:i(["1 minute","%d minutes"]),hour:i(["1 hour","%d hours"]),day:i(["1 day","%d days"]),month:i(["1 month","%d months"]),year:i(["1 year","%d years"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD/MM/YYYY"},dates:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortWeekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],minWeekdays:["Su","Mo","Tu","We","Th","Fr","Sa"]},d3:{grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("vendor/i18n/locales/fr",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Récemment",rightNow:"Maintenant",future:"dans %s",past:"il y a %s",sec:i(["1 seconde","%d secondes"]),min:i(["1 minute","%d minutes"]),hour:i(["1 heure","%d heures"]),day:i(["1 jour","%d jours"]),month:i(["1 mois","%d mois"]),year:i(["1 an","%d ans"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"DD MMM YYYY",readableWithWeekday:"DDDD DD MMMM YYYY","default":"DD/MM/YYYY"},dates:{months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],weekdays:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortWeekdays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],minWeekdays:["Di","Lu","Ma","Me","Je","Ve","Sa"]},d3:{grouping:[3],currency:["$",""],dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e>1?1:0}}}),
define("vendor/i18n/locales/it",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Un momento fa",rightNow:"Ora",future:function(e){return(e.indexOf("1 ")===0?"in":"tra")+" "+e},past:"%s fa",sec:i(["1 secondo","%d secondi"]),min:i(["1 minuto","%d minuti"]),hour:i(["1 ora","%d ore"]),day:i(["1 giorno","%d giorni"]),month:i(["1 mese","%d mesi"]),year:i(["1 anno","%d anni"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD/MM/YYYY"},dates:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],weekdays:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortWeekdays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],minWeekdays:["Do","Lu","Ma","Me","Gi","Ve","Sa"]},d3:{grouping:[3],currency:["€",""],dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Chiudi",prevText:"Prec",nextText:"Succ",currentText:"Oggi",weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("vendor/i18n/locales/nl",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:",",decimal:"."},relativeTime:{justNow:"Zojuist",rightNow:"Nu",future:"over %s",past:"%s geleden",sec:i(["1 seconde","%d seconden"]),min:i(["1 minuut","%d minuten"]),hour:i(["1 uur","%d uur"]),day:i(["1 dag","%d dagen"]),month:i(["1 maand","%d maanden"]),year:i(["1 jaar","%d jaar"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD-MM-YYYY"},dates:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthsShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],weekdays:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortWeekdays:["zon","maa","din","woe","don","vri","zat"],minWeekdays:["zo","ma","di","wo","do","vr","za"]},d3:{grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%d-%m-%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("vendor/i18n/locales/pl",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Przed chwilą",rightNow:"W tej chwili",future:"za %s",past:"%s temu",sec:i(["1 sekunda","%d sekundy","%d sekund"]),min:i(["1 minuta","%d minuty","%d minut"]),hour:i(["1 godzina","%d godziny","%d godzin"]),day:i(["1 dzień","%d dni","%d dni"]),month:i(["1 miesiąc","%d miesiące","%d miesięcy"]),year:i(["1 rok","%d lata","%d lat"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD-MM-YYYY"},dates:{months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsDay:["Stycznia","Lutego","Marca","Kwietnia","Maja","Czerwca","Lipca","Sierpnia","Września","Października","Listopada","Grudnia"],monthsShort:["Stycz.","Luty","Marz.","Kwie.","Maj","Czerw.","Lip.","Sierp.","Wrz.","Paźdz.","Listop.","Grudz."],monthsDayShort:["Stycz.","Lutego","Marca","Kwie.","Maja","Czerw.","Lip.","Sierp.","Wrz.","Paźdz.","Listop.","Grud."],weekdays:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],shortWeekdays:["Niedz.","Pon.","Wt.","Śr.","Czw.","Pt.","Sob."],minWeekdays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"]},d3:{grouping:[3],currency:["","zł"],dateTime:"%A, %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Zamknij",prevText:"Poprzedni",nextText:"Następny",currentText:"Dziś",weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}}}),
define("vendor/i18n/locales/pt_BR",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:".",decimal:","},relativeTime:{justNow:"Agora há pouco",rightNow:"Agora há pouco",future:"em %s",past:"há %s",sec:i(["1 segundo","%d segundos"]),min:i(["1 minuto","%d minutos"]),hour:i(["1 hora","%d horas"]),day:i(["1 dia","%d dias"]),month:i(["1 mês","%d meses"]),year:i(["1 ano","%d anos"])},dateFormats:{readable:"DD MMMM YYYY",readableTime:"DD MMMM YYYY HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, DD MMMM YYYY","default":"DD/MM/YYYY"},dates:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],weekdays:["Domingo","Segunda-Feira","Terça-Feira","Quarta-Feira","Quinta-Feira","Sexta-Feira","Sábado"],shortWeekdays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],minWeekdays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"]},d3:{grouping:[3],currency:["$",""],dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"]},datePicker:{closeText:"Fechar",prevText:"Anterior",nextText:"Próximo",currentText:"Hoje",weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("vendor/i18n/locales/sv",["require","exports","module"],function(e,t,n){function i(e,t){return function(t){return e[r.pluralForm(t)].replace(/%d/i,t)}}var r=n.exports={delimiters:{thousands:" ",decimal:","},relativeTime:{justNow:"Alldeles nyss",rightNow:"Alldeles nyss",future:"om %s",past:"för %s sedan",sec:i(["1 sekund","%d sekunder"]),min:i(["1 minut","%d minuter"]),hour:i(["1 timme","%d timmar"]),day:i(["1 dygn","%d dygn"]),month:i(["1 månad","%d månad"]),year:i(["1 år","%d år"])},dateFormats:{readable:"YYYY MMMM DD",readableTime:"YYYY MMMM DD HH:mm",readableAbbreviated:"MMM DD, YYYY",readableWithWeekday:"DDDD, YYYY MMMM DD","default":"YYYY-MMMM-DD"},dates:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],weekdays:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],shortWeekdays:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],minWeekdays:["Sö","Må","Ti","On","To","Fr","Lö"]},d3:{grouping:[3],currency:["","SEK"],dateTime:"%A den %d %B %Y %X",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["fm","em"]},datePicker:{closeText:"Stäng",prevText:"Förra",nextText:"Nästa",currentText:"Idag",weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},pluralForm:function(e){return e!==1?1:0}}}),
define("shared/config/locales/locale-de.json",[],{"Something doesn’t sound right.":"Mit diesem Track stimmt etwas nicht.","Refresh the page to try again.":"Aktualisiere die Seite, um es erneut zu versuchen.","We can’t find this page.":"Wir können diese Seite nicht finden.","We can’t find this sound.":"Wir können diesen Track nicht finden.","We can’t find this playlist.":"Wir können diese Playlist nicht finden.","We can’t find this user.":"Wir können diesen Benutzer nicht finden.","Charts on SoundCloud.":"Charts auf SoundCloud.","Charts are only available on desktop browsers.":"Charts sind nur in Desktop-Browsern verfügbar.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Alternativ kannst du unsere mobile App herunterladen, um trendige Musik und Audio-Inhalte auch unterwegs zu entdecken.","SoundCloud Premier monetization":"SoundCloud Premier-Monetarisierung","SoundCloud Premier monetization is only available on desktop browsers.":"Die SoundCloud Premier-Monetarisierung ist nur in Desktop-Browsern verfügbar.","Upload your music &amp; audio and share it with the world.":"Lade deine Musik und deine Audiodateien hoch und teile sie mit der Welt.","Upload is only supported on desktop browsers.":"Uploads werden nur von Desktop-Browsern unterstützt.","Come back when you’re at your computer to upload more tracks.":"Wenn du dich wieder von deinem Computer aus anmeldest, kannst du weitere Tracks hochladen.","Connect with Facebook friends.":"Verbinde dich mit Facebook-Freunden.","Connect is only available on desktop browsers.":"Die Funktion zum Verbinden ist nur in Desktop-Browsern verfügbar.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Möchtest du dich mit Facebook-Freunden verbinden oder neue Leute zum Folgen finden? Diese Funktion ist nur in Desktop-Browsern verfügbar.","Come back when you’re at your computer to find new people to follow.":"Wenn du dich wieder von deinem Computer aus anmeldest, kannst du neue Leute zum Folgen finden.","Your profile":"Dein Profil","Managing your account is only available on desktop browsers.":"Die Verwaltung deines Kontos ist nur in Desktop-Browsern verfügbar.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Weitere Informationen zum Optimieren deines Profils findest du in unserer <a href="[[url]]">Anleitung für Ersteller</a>.',"Enjoy the free SoundCloud experience with our app.":"Genieß das kostenlose SoundCloud-Erlebnis mit unserer App.","Enjoy the full SoundCloud experience with our free app.":"Genieß das uneingeschränkte SoundCloud-Erlebnis mit unserer App.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] von [[authorName]]",Messages:"Nachrichten","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Nimm diese Playlist mit und genieß das uneingeschränkte SoundCloud-Erlebnis mit unserer kostenlosen App.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] von [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Genieß die benutzerdefinierte Erfahrung für Ersteller mit SoundCloud Pulse.",Search:"Suche","Search tracks":"Tracks suchen","Search playlists":"Playlists suchen","Search people":"Leute suchen","Search groups":"Gruppen suchen","Search [[category]]":"[[category]] durchsuchen","Unsubscribed successfully":"Abonnement erfolgreich gekündigt","Be the first to hear what [[username]] posts next with our free app.":"Mit unserer kostenlosen App erfährst du als Erster, was [[username]] als Nächstes postet.","[[username]]’s stream":"[[username]]s Stream","New &amp; hot tracks":"Neue und angesagte Tracks","Up-and-coming tracks on SoundCloud":"Vielversprechende neue Tracks auf SoundCloud","New &amp; hot audio":"Neue und angesagte Audio-Tracks","Up-and-coming audio on SoundCloud":"Vielversprechende neue Audio-Tracks auf SoundCloud","Top 50 tracks":" Top 50 Tracks","The most played tracks on SoundCloud this week":"Diese Woche auf SoundCloud am häufigsten gespielte Tracks","Top 50 audio":"Top 50 Audio","The most played audio on SoundCloud this week":"Diese Woche auf SoundCloud am häufigsten gespielte Audio-Tracks","New &amp; hot in [[[genreLabel]]]":"Neu und angesagt in [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Vielversprechende neue Tracks in [[[genreLabel]]] auf SoundCloud","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"Diese Woche auf SoundCloud am häufigsten gespielte Tracks in [[[genreLabel]]]","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Vielversprechendes Neues in [[[genreLabel]]] auf SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Diese Woche auf SoundCloud am häufigsten gespielt in [[[genreLabel]]]","New &amp; hot":"Neu und angesagt","All music genres":"Alle Musikgenres","All audio genres":"Alle Audio-Genres",Classical:"Klassik",Electronic:"Elektro","Hip-hop &amp; Rap":"Hip-Hop &amp; Rap",Piano:"Klavier",Speech:"Sprache",World:"Weltmusik",Audiobooks:"Hörbücher",Learning:"Bildung","News &amp; Politics":"News &amp; Politik","Religion &amp; Spirituality":"Religion und Spiritualität",Sports:"Sport",Storytelling:"Erzählung",Technology:"Wissenschaft","%d hour":["%d Stunde","%d Stunden"],"%d minute":["%d Minute","%d Minuten"],"%d second":["%d Sekunde","%d Sekunden"],"Enjoy the full SoundCloud experience with our app.":"Genieß das uneingeschränkte SoundCloud-Erlebnis mit unserer App.",Close:"Schließen",Retry:"Erneut versuchen","%d track":["%d Track","%d Tracks"],"%d play":["%d Play","%d Plays"],"%d follower":["%d Follower","%d Follower"],"Download on the App Store":"Im App Store herunterladen","Get it on Google Play":"Bei Google Play holen","Get it at BlackBerry World":"In der BlackBerry World holen","Available at Amazon":"Bei Amazon verfügbar","Download SoundCloud":"SoundCloud herunterladen","I already have the app":"Ich habe die App schon","Listen on the SoundCloud app":"Hör rein in die SoundCloud-App","Download our free app":"Lade unsere kostenlose App herunter","No more previews, just full tracks.":"Schluss mit Vorschau, Tracks jetzt in voller Länge.","Try SoundCloud Go+":"SoundCloud Go+ testen","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Wir nutzen Cookies zu unterschiedlichen Zwecken, unter anderem zur Analyse und für personalisierte Marketing-Mitteilungen. Durch die weitere Nutzung unseres Diensts stimmst du der Nutzung von Cookies gemäß unserer [[[linkStart]]]Cookie-Richtlinie[[[linkEnd]]] zu.","Terms of use":"Nutzungsbedingungen",Legal:"Rechtliches","Privacy policy":"Datenschutzrichtlinie",Privacy:"Datenschutz","Cookies policy":"Cookies-Richtlinie","Company information":"Angaben zum Unternehmen",Imprint:"Impressum","People directory":"Personenverzeichnis",Directory:"Verzeichnis","SoundCloud homepage":"SoundCloud-Startseite","Hear the world's sounds":"Hör dir die Musik der Welt an","Trending tracks on SoundCloud":"Trendige Tracks auf SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Hol dir unsere iPhone-App, um diesen Track deinen Likes hinzuzufügen, Playlists zu erstellen und mehr.","Get our Android app to save this track to your likes, create playlists and more.":"Hol dir unsere Android-App, um diesen Track deinen Likes hinzuzufügen, Playlists zu erstellen und mehr.","Try our app.<br>It's even better":"Probier unsere App aus.<br>Sie ist noch besser.","Try playing these related tracks":"Probiere es mit diesen ähnlichen Tracks",Cancel:"Abbrechen","Select your language":"Sprache wählen","Language:":"Sprache:","Messages are only<br> supported on desktop browsers.":"Nachrichten werden nur <br>auf Desktop-Browsern unterstützt.","Pages might not display correctly <br>in mobile browsers.":"Seiten werden auf mobilen Browsern <br>ggf. nicht richtig angezeigt.","Go to Messages":"Gehe zu Nachrichten","SoundCloud for mobile is<br> only available as an app.":"SoundCloud für Mobilgeräte <br>ist nur als App verfügbar.","Open or download now<br> to use SoundCloud on<br> your device.":"Jetzt öffnen oder herunterladen, <br>um SoundCloud auf deinem <br>Gerät zu nutzen.","Open or get the app":"Du musst die App öffnen oder herunterladen","We’re sorry to hear you’re leaving.":"Es tut uns leid zu hören, dass du uns verlassen möchtest.","Review your email subscriptions at":"Prüf deine E-Mail-Abonnements unter","Results for: [[generatedSummary]]":"Ergebnisse für: [[generatedSummary]]",back:"Back","Don't want to be included? Visit the desktop version of this page to opt out.":"Du möchtest nicht einbezogen werden? Besuche die Desktop-Version dieser Seite, um dich abzumelden.","Play or pause track":"Spielen oder Track anhalten","Get SoundCloud Pulse to manage your tracks on the go":"Hol dir SoundCloud Pulse und verwalte deine Tracks unterwegs","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Bearbeite Track-Titel, Beschreibungen, Tags, Datenschutzeinstellungen und vieles mehr direkt über dein Handy, wo immer du gerade bist.","Get SoundCloud Pulse to check your stats on the go":"Hol dir SoundCloud Pulse und rufe deine Statistiken unterwegs ab","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Schau in Echtzeit dabei zu, wie deine Tracks zum Hit werden, ermittle deine Top-Hörer und identifiziere die besten Städte für deine nächste Tournee.","Get SoundCloud Pulse to check your notifications on the go":"Hol dir SoundCloud Pulse und rufe deine Benachrichtigungen unterwegs ab","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Lass dir Benachrichtigungen zu neuen Followern, Likes, Reposts und Kommentaren schicken, damit du mit deinen Fans und der Community interagieren kannst.",All:"Alle",Tracks:" Tracks",Playlists:" Playlists",People:"Leute","%d person":["%d Person","[[count]] Leute"],"%d playlist":["%d Playlist","[[count]] Playlists"],"Found %d SoundCloud Go+ result":["%d SoundCloud Go+-Ergebnis gefunden","%d SoundCloud Go+-Ergebnisse gefunden"],"Show more SoundCloud Go+ results":"Weitere SoundCloud Go+-Ergebnisse anzeigen","Sorry, nothing matches your search.":"Leider stimmt nichts mit deiner Suche überein","Search SoundCloud":"SoundCloud durchsuchen","Find people, tracks and playlists":"Finde Leute, Tracks und Playlists","You have successfully<br>changed your password.":"Du hast dein Kennwort<br>erfolgreich geändert.","Activate your device":"Dein Gerät aktivieren","Open the SoundCloud app":"SoundCloud-App öffnen","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Gib nach entsprechender Aufforderung den Aktivierungscode auf deinem Gerät ein. Die Aktivierung ist nur in der neuesten Version der App möglich.","Or, continue in your browser":"Oder im Browser fortfahren","Not available in your country":"In deinem Land nicht verfügbar","Reposted by [[username]]":"Repost von [[username]]","Now playing":"Aktueller Track","Previous track":"Vorheriger Track","Next track":"Nächster Track","%d Like":["%d Like","%d Likes"],"Not available in<br>your country":"In deinem Land <br>nicht verfügbar","We’re sorry, that track isn’t available on mobile.":"Leider ist der Track auf dem Mobilgerät nicht verfügbar.","Show more tracks":"Weitere Tracks zeigen","Show more playlists":"Weitere Playlists anzeigen","Show more likes":"Weitere Likes zeigen","SoundCloud Premier is only available on desktop.":"SoundCloud Premier ist nur für Desktop-Geräte verfügbar.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Bitte besuche [[[linkStart]]][[premierLink]][[[linkEnd]]] auf einem Desktop-Gerät oder Laptop, um zu beginnen.","Your releases":"Deine Veröffentlichungen","SoundCloud Premier distribution is only available on desktop.":"SoundCloud Premier-Lieferungen sind nur für Desktop-Geräte verfügbar.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Bitte besuche<a href="[[url]]">soundcloud.com/you/releases</a> auf einem Desktop-Gerät oder Laptop, um deine Veröffentlichungen zu verwalten.',"searchResults::%d track":["%d Track","[[count]] Tracks"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"[[joinedCounts]] gefunden","button::Sign in to SoundCloud":"Anmelden in SoundCloud","button::Download our free app":"Lade unsere kostenlose App herunter","track::Preview":"Vorschau"}),
define("shared/config/locales/locale-es.json",[],{"Something doesn’t sound right.":"Parece que algo no funciona bien.","Refresh the page to try again.":"Actualiza la página e inténtalo de nuevo.","We can’t find this page.":"No se encuentra esta página.","We can’t find this sound.":"No se encuentra esta pista.","We can’t find this playlist.":"No se encuentra esta lista.","We can’t find this user.":"No se encuentra este usuario.","Charts on SoundCloud.":"Listas de éxitos en SoundCloud.","Charts are only available on desktop browsers.":"Las listas de éxitos solo están disponibles en los navegadores de escritorio.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"También puedes descargar nuestra app móvil para descubrir audio y música del momento en cualquier lugar.","SoundCloud Premier monetization":"la monetización de SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"La monetización de SoundCloud Premier solo está disponible en navegadores de escritorio.","Upload your music &amp; audio and share it with the world.":"Sube tu música y tus audios para compartirlos con el mundo.","Upload is only supported on desktop browsers.":"Solo se pueden subir pistas en navegadores de escritorio.","Come back when you’re at your computer to upload more tracks.":"Vuelve cuando estés en el ordenador para subir más pistas.","Connect with Facebook friends.":"Conecta con tus amigos de Facebook.","Connect is only available on desktop browsers.":"Solo puedes conectarte en navegadores de escritorio.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"¿Quieres conectarte con tus amigos de Facebook o seguir a más gente? Esta función solo está disponible en navegadores de escritorio.","Come back when you’re at your computer to find new people to follow.":"Vuelve cuando estés en el ordenador para encontrar a más gente a la que seguir.","Your profile":"Tu perfil","Managing your account is only available on desktop browsers.":"La gestión de tu cuenta solo está disponible en navegadores de escritorio.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Para obtener más información sobre la optimización de tu perfil, visita nuestra <a href="[[url]]">Guía para creadores</a>.',"Enjoy the free SoundCloud experience with our app.":"Disfruta de la experiencia gratuita SoundCloud con nuestra app.","Enjoy the full SoundCloud experience with our free app.":"Vive al máximo la experiencia SoundCloud con nuestra app gratuita.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] de [[authorName]]",Messages:"Mensajes","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Disfruta de esta lista en cualquier lugar y vive al máximo la experiencia SoundCloud con nuestra app gratuita.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] de [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Disfruta de una experiencia pensada para creadores con SoundCloud Pulse.",Search:"Buscar","Search tracks":"Buscar pistas","Search playlists":"Buscar listas","Search people":"Buscar gente","Search groups":"Buscar grupos","Search [[category]]":"Buscar [[category]]","Unsubscribed successfully":"Suscripción anulada correctamente","Be the first to hear what [[username]] posts next with our free app.":"Sé el primero en escuchar los nuevos posts de [[username]] con nuestra app gratuita.","[[username]]’s stream":"Stream de [[username]]","New &amp; hot tracks":"Nuevas pistas destacadas","Up-and-coming tracks on SoundCloud":"Pistas revelación en SoundCloud","New &amp; hot audio":"Nuevo audio destacado","Up-and-coming audio on SoundCloud":"Audio revelación en SoundCloud","Top 50 tracks":"Top 50 - pistas","The most played tracks on SoundCloud this week":"Las pistas más reproducidas en SoundCloud esta semana","Top 50 audio":"Top 50 - audio","The most played audio on SoundCloud this week":"Los audios más reproducidos en SoundCloud esta semana","New &amp; hot in [[[genreLabel]]]":"Novedades de [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Pistas revelación de [[[genreLabel]]] en SoundCloud","Top 50 in [[[genreLabel]]]":"Top 50 de [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"Las pistas más reproducidas de [[[genreLabel]]] en SoundCloud esta semana","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Pistas prometedoras de [[[genreLabel]]] en SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Lo más reproducido de [[[genreLabel]]] en SoundCloud esta semana","New &amp; hot":"Novedades","All music genres":"Todos los géneros musicales","All audio genres":"Todos los géneros de audio","Alternative Rock":"Rock alternativo",Ambient:"Ambiente",Classical:"Clásica","Dance &amp; EDM":"Dance y EDM","Deep House":"Deep house","Drum &amp; Bass":"Drum & Bass",Electronic:"Electrónica","Folk &amp; Singer-Songwriter":"Folk y Cantautores","Hip-hop &amp; Rap":"Hip hop y Rap","Jazz &amp; Blues":"Jazz y Blues",Latin:"Latina","R&B &amp; Soul":"R&B y Soul",Reggaeton:"Reguetón",Soundtrack:"Bandas sonoras",Speech:"Oratoria",World:"Música del mundo",Audiobooks:"Audiolibros",Business:"Negocios",Comedy:"Comedia",Entertainment:"Entretenimiento",Learning:"Aprendizaje","News &amp; Politics":"Noticias y política","Religion &amp; Spirituality":"Religión y espiritualidad",Science:"Ciencia",Sports:"Deportes",Storytelling:"Narración",Technology:"Tecnología","%d hour":["%d hora","%d horas"],"%d minute":["%d minuto","%d minutos"],"%d second":["%d segundo","%d segundos"],"Enjoy the full SoundCloud experience with our app.":"Vive al máximo la experiencia SoundCloud con nuestra app.",Close:"Cerrar",Retry:"Inténtalo de nuevo","%d track":["%d pista","%d pistas"],"%d play":["%d reproducción","%d reproducciones"],"%d follower":["%d seguidor","%d seguidores"],"Download on the App Store":"Descargatela en el App Store","Get it on Google Play":"Obtenla en Google Play","Get it at BlackBerry World":"Consíguela en BlackBerry World","Available at Amazon":"Disponible en Amazon","Download SoundCloud":"Descargar SoundCloud","I already have the app":"Ya tengo la app","Listen on the SoundCloud app":"Escuchar en la app de SoundCloud","Download our free app":"Descarga nuestra app gratuita","No more previews, just full tracks.":"Se acabaron las vistas previas, solo pistas enteras.","Try SoundCloud Go+":"Prueba SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Utilizamos cookies para generar estadísticas y enviarte marketing personalizado, entre otros fines. Al seguir usando el servicio, aceptas que utilicemos cookies según lo descrito en la [[[linkStart]]]Política de cookies[[[linkEnd]]].","Terms of use":"Condiciones de uso","Privacy policy":"Política de privacidad",Privacy:"Privacidad","Cookies policy":"Política de cookies","Company information":"Información de la empresa",Imprint:"Información de la empresa","People directory":"Directorio de gente",Directory:"Directorio","SoundCloud homepage":"Página de inicio de SoundCloud","Hear the world's sounds":"Escucha las pistas del mundo","Trending tracks on SoundCloud":"Pistas del momento en SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Obtén nuestra app para iPhone para guardar esta pista en tus Me gusta, crear listas y más.","Get our Android app to save this track to your likes, create playlists and more.":"Obtén nuestra app para Android para guardar esta pista en tus Me gusta, crear listas y más.","Try our app.<br>It's even better":"Prueba nuestra app.<br>Es aún mejor",Like:"Me gusta","Try playing these related tracks":"Escucha estas pistas similares",Cancel:"Cancelar","Select your language":"Selecciona tu idioma","Language:":"Idioma:","Messages are only<br> supported on desktop browsers.":"Los mensajes solo<br>son compatibles en los navegadores de escritorio","Pages might not display correctly <br>in mobile browsers.":"Puede que las páginas no se muestren correctamente<br>en los navegadores para móviles.","Go to Messages":"Ir a Mensajes","SoundCloud for mobile is<br> only available as an app.":"SoundCloud para móviles<br> solo está disponible como app.","Open or download now<br> to use SoundCloud on<br> your device.":"Descárgala o ábrela ahora<br> para usar SoundCloud en<br> tu dispositivo.","Open or get the app":"Hazte con la app o ábrela","We’re sorry to hear you’re leaving.":"Lamentamos que te marches.","Review your email subscriptions at":"Consulta tus suscripciones de correo en","Results for: [[generatedSummary]]":"Resultados de: [[generatedSummary]]",back:"atrás","Don't want to be included? Visit the desktop version of this page to opt out.":"¿No quieres aparecer en los resultados? Visita la versión de esta página para escritorio para que no te incluyamos.","Play or pause track":"Reproducir o pausar la pista","Get SoundCloud Pulse to manage your tracks on the go":"Hazte con SoundCloud Pulse para administrar tus pistas en cualquier lugar","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Edita títulos, descripciones, etiquetas, la configuración de privacidad de las pistas y mucho más desde tu teléfono estés donde estés.","Get SoundCloud Pulse to check your stats on the go":"Hazte con SoundCloud Pulse para consultar tus estadísticas en cualquier lugar","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Visualiza tus principales reproducciones en tiempo real, identifica tus oyentes principales y consulta tus ciudades principales para planificar tu próximo concierto.","Get SoundCloud Pulse to check your notifications on the go":"Hazte con SoundCloud Pulse para consultar tus notificaciones en cualquier lugar","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Recibe notificaciones sobre nuevos seguidores, me gusta, reposts y comentarios para que puedas interactuar con tus fans y la Comunidad.",All:"Todo",Tracks:"Pistas",Playlists:"Listas",People:"Gente","%d person":["%d persona","[[count]] personas"],"%d playlist":["%d lista","[[count]] listas"],"Found %d SoundCloud Go+ result":["Encontramos %d resultado de SoundCloud Go+","Encontramos %d resultados de SoundCloud Go+"],"Show more SoundCloud Go+ results":"Mostrar más resultados de SoundCloud Go+","Sorry, nothing matches your search.":"No se ha encontrado ningún resultado.","Search SoundCloud":"Buscar en SoundCloud","Find people, tracks and playlists":"Buscar gente, pistas y listas","You have successfully<br>changed your password.":"Has cambiado tu contraseña<br>correctamente.","Activate your device":"Activa tu dispositivo","Open the SoundCloud app":"Abre la app de SoundCloud","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Cuando te lo solicitemos, introduce el código de activación de tu dispositivo. Para la activación necesitarás tener la versión más reciente de la app.","Or, continue in your browser":"También puedes hacerlo desde el navegador","Not available in your country":"No está disponible en tu país","Reposted by [[username]]":"Reposteado por [[username]]","Now playing":"Reproducción en curso","Previous track":"Pista anterior","Next track":"Pista siguiente","%d Like":["%d me gusta","%d me gusta"],"Not available in<br>your country":"No está disponible en<br>tu país","We’re sorry, that track isn’t available on mobile.":"La pista no está disponible para dispositivos móviles.",Spotlight:"Destacados","Show more tracks":"Mostrar más pistas","Show more playlists":"Mostrar más listas",Likes:"Me gusta","Show more likes":"Mostrar otros me gusta","SoundCloud Premier is only available on desktop.":"SoundCloud Premier solo está disponible para escritorio.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Visita [[[linkStart]]][[premierLink]][[[linkEnd]]] desde un ordenador de escritorio o portátil para comenzar.","Your releases":"Tus lanzamientos","SoundCloud Premier distribution is only available on desktop.":"La distribución de SoundCloud Premier solo está disponible para escritorio.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Para gestionar tus lanzamientos, visita <a href="[[url]]">soundcloud.com/you/releases</a> desde un ordenador de escritorio o portátil.',"searchResults::%d track":["%d pista","[[count]] pistas"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"Se encontraron [[joinedCounts]]","button::Sign in to SoundCloud":"Iniciar sesión en SoundCloud","button::Download our free app":"Descarga nuestra app gratuita","track::Preview":"Vista previa"}),
define("shared/config/locales/locale-fr.json",[],{"Something doesn’t sound right.":"Il semble y avoir un problème","Refresh the page to try again.":"Actualisez la page pour réessayer.","We can’t find this page.":"Cette page est introuvable","We can’t find this sound.":"Ce titre est introuvable.","We can’t find this playlist.":"Cette playlist est introuvable.","We can’t find this user.":"Cet utilisateur est introuvable.","Charts on SoundCloud.":"Charts sur SoundCloud.","Charts are only available on desktop browsers.":"Les charts sont uniquement disponibles sur les navigateurs de bureau.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Vous pouvez également télécharger notre application mobile pour découvrir les titres tendance pendant vos déplacements.","SoundCloud Premier monetization":"Monétisation SoundCloud Premier ","SoundCloud Premier monetization is only available on desktop browsers.":"La monétisation SoundCloud Premier est uniquement disponible sur les navigateurs de bureau.","Upload your music &amp; audio and share it with the world.":"Uploadez votre musique et vos enregistrements audio et partagez-les avec le monde entier.","Upload is only supported on desktop browsers.":"Uploader est pris en charge sur les navigateurs d'ordinateur de bureau uniquement.","Come back when you’re at your computer to upload more tracks.":"Réessayez lorsque vous utiliserez votre ordinateur pour uploader plus de titres.","Connect with Facebook friends.":"Restez en contact avec vos amis Facebook.","Connect is only available on desktop browsers.":"La fonction Connect est uniquement disponible sur les navigateurs de bureau.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Vous souhaitez rester en contact avec vos amis Facebook ou trouver de nouvelles personnes à suivre ? Cette fonction est uniquement disponible sur les navigateurs de bureau.","Come back when you’re at your computer to find new people to follow.":"Réessayez lorsque vous utiliserez votre ordinateur pour trouver d'autres personnes à suivre.","Your profile":"Votre profil","Managing your account is only available on desktop browsers.":"La gestion de votre compte est uniquement disponible sur les navigateurs de bureau.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':"Pour plus d'informations sur l'optimisation de votre profil, consultez notre <a href=\"[[url]]\">Guide de l'auteur</a>.","Enjoy the free SoundCloud experience with our app.":"Bénéficiez gratuitement de l'expérience SoundCloud avec notre application.","Enjoy the full SoundCloud experience with our free app.":"Bénéficiez de l'expérience SoundCloud complète avec notre application gratuite.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] par [[authorName]]","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Prenez cette playlist avec vous et vivez l'expérience SoundCloud pleinement avec notre application gratuite.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] par [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Profitez d'une expérience personnalisée dédiée aux créateurs grâce à SoundCloud Pulse.",Search:"Rechercher","Search tracks":"Rechercher des titres","Search playlists":"Rechercher des playlists","Search people":"Rechercher des personnes","Search groups":"Rechercher des groupes","Search [[category]]":"Rechercher dans [[category]]","Unsubscribed successfully":"Désinscription réussie.","Be the first to hear what [[username]] posts next with our free app.":"Soyez le premier à savoir ce que publie [[username]] avec notre application gratuite. ","[[username]]’s stream":"Stream de [[username]]","New &amp; hot tracks":"Nouveaux titres tendance","Up-and-coming tracks on SoundCloud":"Titres disponibles et à venir sur SoundCloud","New &amp; hot audio":"Nouveaux titres audio tendance","Up-and-coming audio on SoundCloud":"Titres audio disponibles et à venir sur SoundCloud","Top 50 tracks":"50 meilleurs titres","The most played tracks on SoundCloud this week":"Titres les plus écoutés sur SoundCloud cette semaine","Top 50 audio":"50 meilleurs titres audio","The most played audio on SoundCloud this week":"Titres audio les plus écoutés sur SoundCloud cette semaine","New &amp; hot in [[[genreLabel]]]":"Nouveaux titres tendance dans la catégorie [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Titres disponibles et à venir dans la catégorie [[[genreLabel]]] sur SoundCloud","Top 50 in [[[genreLabel]]]":"Top 50 dans la catégorie [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"Titres les plus écoutés dans la catégorie [[[genreLabel]]] sur SoundCloud cette semaine","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Titres disponibles et à venir dans la catégorie [[[genreLabel]]] sur SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Titres les plus écoutés dans la catégorie [[[genreLabel]]] sur SoundCloud cette semaine","New &amp; hot":"Nouveaux &amp; tendance","All music genres":"Tous les genres de musique","All audio genres":"Tous les genres audio","Alternative Rock":"Rock alternatif",Ambient:"Ambiance",Classical:"Classique",Electronic:"Electro","Folk &amp; Singer-Songwriter":"Folk &amp; Auteur-compositeur",Soundtrack:"Musiques de films",Speech:"Discours",Audiobooks:"Livres audio",Comedy:"Comédie",Learning:"Éducation","News &amp; Politics":"Actualités &amp; politique","Religion &amp; Spirituality":"Religion &amp; spiritualité",Technology:"Technologie","%d hour":["%d heure","%d heures"],"%d minute":["%d minute","%d minutes"],"%d second":["%d seconde","%d secondes"],"Enjoy the full SoundCloud experience with our app.":"Vivez l'expérience SoundCloud pleinement avec notre application.",Close:"Fermer",Retry:"Réessayer","%d track":["%d titre","%d titres"],"%d play":["%d écoute","%d écoutes"],"%d follower":["%d abonné","%d abonnés"],"Download on the App Store":"Télécharger dans l'App Store","Get it on Google Play":"Disponible sur Google Play","Get it at BlackBerry World":"Disponible sur BlackBerry World","Available at Amazon":"Disponible sur Amazon","Download SoundCloud":"Télécharger SoundCloud","I already have the app":"Je dispose déjà de l'application","Listen on the SoundCloud app":"Écouter sur l'application SoundCloud","Download our free app":"Télécharger notre application gratuite","No more previews, just full tracks.":"Fini les aperçus, bénéficiez de titres complets.","Try SoundCloud Go+":"Essayez SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Nous utilisons les cookies à des fins diverses, notamment à des fins d'analyse et de marketing personnalisé. En continuant à utiliser le service, vous acceptez notre utilisation des cookies comme stipulé dans notre [[[linkStart]]]Politique d'utilisation des cookies[[[linkEnd]]].","Terms of use":"Conditions d'utilisation",Legal:"Informations légales","Privacy policy":"Politique de confidentialité",Privacy:"Confidentialité","Cookies policy":"Politique d'utilisation des cookies","Company information":"Informations sur l'entreprise",Imprint:"A propos","People directory":"Répertoire de personnes",Directory:"Répertoire","SoundCloud homepage":"Page d'accueil de SoundCloud","Hear the world's sounds":"Découvrez les sons du monde","Trending tracks on SoundCloud":"Titres en vogue sur SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Téléchargez notre application pour iPhone pour ajouter ce titre à vos favoris, créer des playlists et bien plus encore.","Get our Android app to save this track to your likes, create playlists and more.":"Téléchargez notre application Android pour ajouter ce titre à vos favoris, créer des playlists et bien plus encore.","Try our app.<br>It's even better":"Essayez notre application<br>pour une expérience optimale",Like:"Aimer","Try playing these related tracks":"Essayer de lire ces titres similaires",Cancel:"Annuler","Select your language":"Sélectionnez votre langue","Language:":"Langue :","Messages are only<br> supported on desktop browsers.":"Les messages sont uniquement<br> pris en charge par les navigateurs d'ordinateurs de bureau.","Pages might not display correctly <br>in mobile browsers.":"Les pages peuvent ne pas s'afficher correctement <br>dans les navigateurs mobiles.","Go to Messages":"Accéder aux Messages","SoundCloud for mobile is<br> only available as an app.":"SoundCloud pour mobile est<br> uniquement disponible sous forme d'application.","Open or download now<br> to use SoundCloud on<br> your device.":"Ouvrez ou téléchargez<br> SoundCloud sur votre mobile.","Open or get the app":"Ouvrir ou télécharger l'application","We’re sorry to hear you’re leaving.":"Nous sommes désolés d'apprendre que vous nous quittez.","Review your email subscriptions at":"Vérifiez vos inscriptions par e-mail sur","Results for: [[generatedSummary]]":"Résultats pour : [[generatedSummary]]",back:"retour","Don't want to be included? Visit the desktop version of this page to opt out.":"Vous ne souhaitez pas y figurer ? Utilisez la version de bureau pour vous exclure.","Play or pause track":"Lire un titre ou le mettre en pause","Get SoundCloud Pulse to manage your tracks on the go":"Obtenez SoundCloud Pulse pour gérer vos titres en déplacement","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Modifiez les noms de vos titres, les descriptions, les tags, les paramètres de confidentialité et bien plus encore directement depuis votre téléphone, où que vous soyez.","Get SoundCloud Pulse to check your stats on the go":"Obtenez SoundCloud Pulse pour consulter vos statistiques en déplacement","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Regardez votre nombre d'écoutes exploser en temps réel, identifiez vos plus grands fans et découvrez les villes où vos titres sont les plus écoutés pour planifier votre prochain concert.","Get SoundCloud Pulse to check your notifications on the go":"Obtenez SoundCloud Pulse pour consulter vos notifications en déplacement","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Soyez averti des nouveaux abonnés, likes, reposts et commentaires afin que vous puissiez communiquer avec vos fans et votre communauté.",All:"Tous",Tracks:"Titres",People:"Personnes","%d person":["%d personne","[[count]] personnes"],"%d playlist":["%d playlist","[[count]] playlists"],"Found %d SoundCloud Go+ result":["%d résultat SoundCloud Go+ trouvé","%d résultats SoundCloud Go+ trouvés"],"Show more SoundCloud Go+ results":"Afficher davantage de résultats SoundCloud Go+","Sorry, nothing matches your search.":"Désolé, aucun résultat ne correspond à votre recherche.","Search SoundCloud":"Rechercher dans SoundCloud","Find people, tracks and playlists":"Trouver des personnes, des titres et des playlists","You have successfully<br>changed your password.":"Vous avez bien<br>modifié votre mot de passe.","Activate your device":"Activez votre appareil","Open the SoundCloud app":"Ouvrir l'application SoundCloud","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Lorsqu'on vous le demande, saisissez le code d'activation de votre appareil. La fonction d'activation est uniquement disponible dans la dernière version de l'application.","Or, continue in your browser":"Ou continuez sur votre navigateur","Not available in your country":"Non disponible dans votre pays","Reposted by [[username]]":"Reposté par [[username]]","Now playing":"Lecture en cours","Previous track":"Titre précédent","Next track":"Titre suivant","%d Like":["%d mention J'aime","%d mentions J'aime"],"Not available in<br>your country":"Non disponible dans<br>votre pays","We’re sorry, that track isn’t available on mobile.":"Désolé, ce titre n'est pas disponible sur mobile.",Spotlight:"Titres épinglés","Show more tracks":"Afficher plus de titres","Show more playlists":"Afficher plus de playlists",Likes:"Favoris","Show more likes":"Afficher plus de favoris","SoundCloud Premier is only available on desktop.":"SoundCloud Premier est uniquement disponible en version bureau.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Veuillez vous rendre sur [[[linkStart]]][[premierLink]][[[linkEnd]]] depuis un ordinateur de bureau ou portable pour commencer.","Your releases":"Vos sorties","SoundCloud Premier distribution is only available on desktop.":"La distribution SoundCloud Premier est uniquement disponible en version bureau.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Pour gérer vos sorties, veuillez vous rendre sur <a href="[[url]]">soundcloud.com/you/releases</a> depuis un ordinateur de bureau ou portable.',"searchResults::%d track":["%d titre","[[count]] titres"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"[[joinedCounts]] trouvé(s)","button::Sign in to SoundCloud":"Se connecter à SoundCloud","button::Download our free app":"Télécharger notre application gratuite","track::Preview":"Aperçu"}),
define("shared/config/locales/locale-it.json",[],{"Something doesn’t sound right.":"Qualcosa è andato storto.","Refresh the page to try again.":"Aggiorna la pagina per riprovare.","We can’t find this page.":"Impossibile trovare la pagina.","We can’t find this sound.":"Impossibile trovare la traccia.","We can’t find this playlist.":"Impossibile trovare la playlist.","We can’t find this user.":"Impossibile trovare l'utente.","Charts on SoundCloud.":"Classifiche su SoundCloud.","Charts are only available on desktop browsers.":"Le classifiche sono disponibili solo sul browser del computer.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"In alternativa, scarica la nostra app per dispositivi mobili per scoprire musica e audio di tendenza anche quando sei in movimento.","SoundCloud Premier monetization":"Monetizzazione SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"La monetizzazione SoundCloud Premier è disponibile solamente per i browser desktop.","Upload your music &amp; audio and share it with the world.":"Carica musica e audio e condividi con tutto il mondo.","Upload is only supported on desktop browsers.":"È possibile caricare solo tramite il browser del computer.","Come back when you’re at your computer to upload more tracks.":"Accedi quando sei al computer per caricare più tracce.","Connect with Facebook friends.":"Collegati con i tuoi amici di Facebook.","Connect is only available on desktop browsers.":"La connessione è disponibile solo sul browser del computer.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Vuoi collegarti con i tuoi amici di Facebook o trovare nuove persone da seguire? Questa funzionalità è disponibile solo sul browser del computer.","Come back when you’re at your computer to find new people to follow.":"Torna quando sei al computer per trovare nuove persone da seguire.","Your profile":"Il tuo profilo","Managing your account is only available on desktop browsers.":"L'account può essere gestito solo tramite il browser del computer.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Per ulteriori informazioni su come ottimizzare il profilo, dai un\'occhiata alla nostra <a href="[[url]]">Guida per gli autori</a>.',"Enjoy the free SoundCloud experience with our app.":"Goditi tutto ciò che SoundCloud offre gratuitamente grazie alla nostra applicazione.","Enjoy the full SoundCloud experience with our free app.":"Goditi tutto ciò che offre SoundCloud grazie alla nostra app.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] di [[authorName]]",Messages:"Messaggi","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Porta con te questa playlist e goditi tutto ciò che offre SoundCloud grazie all'applicazione gratuita.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] di [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Approfitta dell'esperienza personalizzata per gli autori con SoundCloud Pulse.",Search:"Cerca","Search tracks":"Cerca tracce","Search playlists":"Cerca playlist","Search people":"Cerca persone","Search groups":"Cerca gruppi","Search [[category]]":"Cerca in [[category]]","Unsubscribed successfully":"Iscrizione annullata correttamente","Be the first to hear what [[username]] posts next with our free app.":"Ascolta per primo cosa pubblica [[username]], grazie all'applicazione gratuita.","[[username]]’s stream":"Stream di [[username]]","New &amp; hot tracks":"Tracce nuove e di tendenza","Up-and-coming tracks on SoundCloud":"Tracce di tendenza su SoundCloud","New &amp; hot audio":"Audio nuovi e di tendenza","Up-and-coming audio on SoundCloud":"Audio di tendenza su SoundCloud","Top 50 tracks":"Tracce Top 50","The most played tracks on SoundCloud this week":"Le tracce più ascoltate su SoundCloud questa settimana","Top 50 audio":"Audio Top 50","The most played audio on SoundCloud this week":"Le tracce più ascoltate su SoundCloud questa settimana","New &amp; hot in [[[genreLabel]]]":"Novità e di tendenza [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Tracce di tendenza [[[genreLabel]]] su SoundCloud","Top 50 in [[[genreLabel]]]":"Top 50 [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"Le tracce [[[genreLabel]]] più ascoltate su SoundCloud questa settimana","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Di tendenza [[[genreLabel]]] su SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Le più ascoltate [[[genreLabel]]] su SoundCloud questa settimana","New &amp; hot":"Novità e di tendenza","All music genres":"Tutti i generi musicali","All audio genres":"Tutti i generi audio","Alternative Rock":"Rock Alternativo",Classical:"Classica","Dance &amp; EDM":"Dance e EDM","Drum &amp; Bass":"Drum & Bass",Electronic:"Elettronica","Folk &amp; Singer-Songwriter":"Folk e Cantautori","Hip-hop &amp; Rap":"Hip Hop e Rap","Jazz &amp; Blues":"Jazz e Blues",Latin:"Latina",Piano:"Pianoforte","R&B &amp; Soul":"R&B e Soul",Soundtrack:"Colonna sonora",Speech:"Discorsi",Triphop:"Trip Hop",Audiobooks:"Audiolibri",Comedy:"Commedia",Entertainment:"Intrattenimento",Learning:"Apprendimento","News &amp; Politics":"Notizie e Politica","Religion &amp; Spirituality":"Religione e Spiritualità",Science:"Scienza",Sports:"Sport",Storytelling:"Narrativa",Technology:"Tecnologia","%d hour":["%d ora","%d ore"],"%d minute":["%d minuto","%d minuti"],"%d second":["%d secondo","%d secondi"],"Enjoy the full SoundCloud experience with our app.":"Goditi tutto ciò che offre SoundCloud grazie alla nostra applicazione.",Close:"Chiudi",Retry:"Riprova","%d track":["%d traccia","%d tracce"],"%d play":["%d ascolto","%d ascolti"],"%d follower":["%d follower","%d follower"],"Download on the App Store":"Scaricala dall'App Store","Get it on Google Play":"Scaricala da Google Play","Get it at BlackBerry World":"Scaricala da BlackBerry World","Available at Amazon":"Disponibile su Amazon","Download SoundCloud":"Scarica SoundCloud","I already have the app":"Dispongo già dell'app","Listen on the SoundCloud app":"Ascolta sull'app SoundCloud","Download our free app":"Scarica la nostra applicazione gratuita","No more previews, just full tracks.":"Niente più anteprime, solo tracce complete.","Try SoundCloud Go+":"Prova SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Utilizziamo i cookie per vari motivi, tra cui l'esecuzione di analisi e il marketing personalizzato. Utilizzando i nostri servizi, acconsenti all'utilizzo dei cookie come descritto nell'[[[linkStart]]]Informativa sui cookie[[[linkEnd]]].","Terms of use":"Termini di utilizzo",Legal:"Note legali","Privacy policy":"Informativa sulla privacy","Cookies policy":"Informativa sui cookie",Cookies:"Cookie","Company information":"Informazioni sull'azienda",Imprint:"Chi siamo","People directory":"Elenco utenti",Directory:"Elenco","SoundCloud homepage":"Homepage di SoundCloud","Hear the world's sounds":"Ascolta i suoni del mondo","Trending tracks on SoundCloud":"Tracce di tendenza su SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Scarica la nostra app per iPhone e salva questa traccia nei tuoi preferiti, crea playlist e molto altro.","Get our Android app to save this track to your likes, create playlists and more.":"Scarica la nostra app per Android e salva questa traccia nei tuoi preferiti, crea playlist e molto altro.","Try our app.<br>It's even better":"Prova la nostra app.<br>È ancora meglio!",Like:"Mi piace","Try playing these related tracks":"Prova ad ascoltare queste tracce simili",Cancel:"Annulla","Select your language":"Seleziona la lingua","Language:":"Lingua:","Messages are only<br> supported on desktop browsers.":"I messaggi sono supportati<br> solo sui browser del computer.","Pages might not display correctly <br>in mobile browsers.":"Le pagine potrebbero non essere visualizzate correttamente <br>nei browser per dispositivi mobili.","Go to Messages":"Vai ai Messaggi","SoundCloud for mobile is<br> only available as an app.":"SoundCloud per dispositivi mobili è<br> disponibile solo come app.","Open or download now<br> to use SoundCloud on<br> your device.":"Apri o scarica subito<br> per utilizzare SoundCloud sul<br> tuo dispositivo.","Open or get the app":"Apri o scarica l'app","We’re sorry to hear you’re leaving.":"Ci dispiace che tu te ne vada.","Review your email subscriptions at":"Controlla gli abbonamenti e-mail","Results for: [[generatedSummary]]":"Risultati per: [[generatedSummary]]",back:"indietro","Don't want to be included? Visit the desktop version of this page to opt out.":"Non vuoi essere inserito? Visita la versione del computer di questa pagina per rifiutare esplicitamente.","Play or pause track":"Riproduci o metti in pausa la traccia","Get SoundCloud Pulse to manage your tracks on the go":"Ottieni SoundCloud Pulse per gestire le tue tracce ovunque tu sia","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Modifica titoli delle tracce, descrizioni, tag, impostazioni della privacy e molto altro ancora direttamente dal tuo telefono, ovunque ti trovi.","Get SoundCloud Pulse to check your stats on the go":"Ottieni SoundCloud Pulse per controllare le tue statistiche ovunque tu sia","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Guarda il conteggio delle riproduzioni delle tue tracce aumentare in tempo reale, individua i tuoi ascoltatori più affezionati e controlla le prime città per pianificare il tuo prossimo show.","Get SoundCloud Pulse to check your notifications on the go":"Ottieni SoundCloud Pulse per controllare le tue notifiche ovunque tu sia","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Ricevi notifiche in merito a nuovi follower, mi piace, ripubblicazioni e commenti per interagire con i tuoi fan e con la community.",All:"Tutto",Tracks:"Tracce",Playlists:"Playlist",People:"Persone","%d person":["%d persona","[[count]] persone"],"%d playlist":["%d playlist","[[count]] playlist"],"Found %d SoundCloud Go+ result":["Trovato %d risultato SoundCloud Go+","Trovati %d risultati SoundCloud Go+"],"Show more SoundCloud Go+ results":"Mostra altri risultati di SoundCloud Go+","Sorry, nothing matches your search.":"La tua ricerca non ha prodotto risultati.","Search SoundCloud":"Cerca su SoundCloud","Find people, tracks and playlists":"Trova persone, tracce e playlist","You have successfully<br>changed your password.":"Password<br>modificata correttamente.","Activate your device":"Attiva il dispositivo","Open the SoundCloud app":"Apri l'app SoundCloud","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Quando richiesto, inserisci il codice di attivazione del dispositivo. L'attivazione è disponibile solo nell'ultima versione dell'app.","Or, continue in your browser":"In alternativa, continua nel browser","Not available in your country":"Non disponibile nel tuo paese","Reposted by [[username]]":"Ripubblicata da [[username]]","Now playing":"In riproduzione","Previous track":"Traccia precedente","Next track":"Traccia successiva","%d Like":["%d mi piace","%d mi piace"],"Not available in<br>your country":"Non disponibile nel<br>tuo paese","We’re sorry, that track isn’t available on mobile.":"Traccia non disponibile su dispositivi mobili.",Spotlight:"In evidenza","Show more tracks":"Mostra altre tracce","Show more playlists":"Mostra altre playlist",Likes:"Preferiti","Show more likes":"Mostra altri preferiti","SoundCloud Premier is only available on desktop.":"SoundCloud Premier è disponibile solamente per i computer desktop.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Accedi al sito [[[linkStart]]][[premierLink]][[[linkEnd]]] su un computer desktop o su un laptop per iniziare.","Your releases":"Le tue uscite","SoundCloud Premier distribution is only available on desktop.":"La distribuzione di SoundCloud Premier è disponibile solamente per i computer desktop.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Per gestire le tue uscite, accedi all\'indirizzo <a href="[[url]]">soundcloud.com/you/releases</a> su un computer desktop o su un laptop.',"searchResults::%d track":["%d traccia","[[count]] tracce"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"Trovate [[joinedCounts]]","button::Sign in to SoundCloud":"Accedi a SoundCloud","button::Download our free app":"Scarica la nostra applicazione gratuita","track::Preview":"Anteprima"}),
define("shared/config/locales/locale-nl.json",[],{"Something doesn’t sound right.":"Er klinkt iets niet helemaal goed.","Refresh the page to try again.":"Vernieuw de pagina om het opnieuw te proberen.","We can’t find this page.":"We konden deze pagina niet vinden.","We can’t find this sound.":"We konden deze track niet vinden.","We can’t find this playlist.":"We konden deze afspeellijst niet vinden.","We can’t find this user.":"We konden deze gebruiker niet vinden.","Charts on SoundCloud.":"Hitlijsten op SoundCloud.","Charts are only available on desktop browsers.":"Hitlijsten zijn alleen beschikbaar via desktopbrowsers.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Je kunt ook onze mobiele app downloaden om onderweg populaire muziek en audio te ontdekken.","SoundCloud Premier monetization":"Monetarisering met SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"Uitbetaling van royalties voor SoundCloud Premier is alleen beschikbaar via desktopbrowsers.","Upload your music &amp; audio and share it with the world.":"Upload je muziek en audio en deel deze met de wereld.","Upload is only supported on desktop browsers.":"Uploaden is alleen beschikbaar via desktop browsers.","Come back when you’re at your computer to upload more tracks.":"Kom terug als je achter de computer zit om meer tracks te uploaden.","Connect with Facebook friends.":"Leg contact met Facebook-vrienden.","Connect is only available on desktop browsers.":"Contact leggen is alleen beschikbaar via desktopbrowsers.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Wil je contact leggen met Facebook-vrienden of nieuwe mensen vinden om te volgen? Deze functie is alleen beschikbaar op desktopbrowsers.","Come back when you’re at your computer to find new people to follow.":"Kom terug als je achter de computer zit om nieuwe mensen te vinden die je kunt volgen.","Your profile":"Jouw profiel","Managing your account is only available on desktop browsers.":"Accountbeheer is alleen beschikbaar via desktopbrowsers.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Bezoek onze <a href="[[url]]">handleiding voor auteurs</a> voor meer informatie over het optimaliseren van je profiel.',"Enjoy the free SoundCloud experience with our app.":"Geniet van de gratis SoundCloud-ervaring met onze app.","Enjoy the full SoundCloud experience with our free app.":"Geniet van de complete SoundCloud-ervaring met onze gratis app.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] van [[authorName]]",Messages:"Berichten","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Luister naar deze afspeellijst onderweg en geniet van de complete SoundCloud-ervaring met onze gratis app.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] van [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Profiteer van de gepersonaliseerde ervaring voor auteurs met SoundCloud Pulse.",Search:"Zoeken","Search tracks":"Tracks zoeken","Search playlists":"Afspeellijsten zoeken","Search people":"Gebruikers zoeken","Search groups":"Groepen zoeken","Search [[category]]":"[[category]] zoeken","Unsubscribed successfully":"Uitgeschreven","Be the first to hear what [[username]] posts next with our free app.":"Luister als eerste naar wat [[username]] post met onze gratis app.","New &amp; hot tracks":"Nieuwe en populaire tracks","Up-and-coming tracks on SoundCloud":"Veelbelovende tracks op SoundCloud","New &amp; hot audio":"Nieuwe en populaire audio","Up-and-coming audio on SoundCloud":"Veelbelovende audio op SoundCloud","The most played tracks on SoundCloud this week":"De meest afgespeelde tracks op SoundCloud van deze week","The most played audio on SoundCloud this week":"De meest afgespeelde audio op SoundCloud van deze week","New &amp; hot in [[[genreLabel]]]":"Nieuw en populair in [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Veelbelovende tracks in [[[genreLabel]]] op SoundCloud","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"De meest afgespeelde tracks in [[[genreLabel]]] op SoundCloud van deze week","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Veelbelovend in [[[genreLabel]]] op SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Het meest afgespeeld in [[[genreLabel]]] op SoundCloud van deze week","New &amp; hot":"Nieuw en populair","All music genres":"Alle muziekgenres","All audio genres":"Alle audiogenres","Alternative Rock":"Alternatieve Rock",Classical:"Klassiek","Dance &amp; EDM":"Dance en EDM","Drum &amp; Bass":"Drum & Bass",Electronic:"Electro","Folk &amp; Singer-Songwriter":"Folk en Singer-Songwriter","Hip-hop &amp; Rap":"Hiphop en Rap","Jazz &amp; Blues":"Jazz en Blues","R&B &amp; Soul":"R&B en Soul",Speech:"Gesproken woord",World:"Wereldmuziek",Audiobooks:"Audioboeken",Business:"Zakelijk",Learning:"Educatie","News &amp; Politics":"Nieuws en Politiek","Religion &amp; Spirituality":"Religie en Spiritualiteit",Science:"Wetenschap",Sports:"Sport",Storytelling:"Verhalen",Technology:"Technologie","%d hour":["%d uur","%d uur"],"%d minute":["%d minuut","%d minuten"],"%d second":["%d seconde","%d seconden"],"Enjoy the full SoundCloud experience with our app.":"Geniet van de complete SoundCloud-ervaring met onze app.",Close:"Sluiten",Retry:"Opnieuw proberen","%d track":["%d track","%d tracks"],"%d play":["%d keer afgespeeld","%d keer afgespeeld"],"%d follower":["%d volger","%d volgers"],"Download on the App Store":"Downloaden van de App Store","Get it on Google Play":"Downloaden van Google Play","Get it at BlackBerry World":"Downloaden van BlackBerry World","Available at Amazon":"Verkrijgbaar op Amazon","Download SoundCloud":"SoundCloud downloaden","I already have the app":"Ik heb de app al","Listen on the SoundCloud app":"Luisteren op de SoundCloud-app","Download our free app":"Download onze gratis app","No more previews, just full tracks.":"Geen previews meer, alleen maar volledige tracks.","Try SoundCloud Go+":"Probeer SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"We gebruiken cookies voor verschillende doeleinden, zoals voor analyse en persoonlijk afgestemde marketing. Door onze services te blijven gebruiken ga je akkoord met ons gebruik van cookies, zoals beschreven in het [[[linkStart]]]Cookiebeleid[[[linkEnd]]].","Terms of use":"Gebruiksvoorwaarden",Legal:"Juridisch","Privacy policy":"Privacybeleid","Cookies policy":"Cookiebeleid","Company information":"Bedrijfsinformatie",Imprint:"Impressum","People directory":"Gebruikerslijst",Directory:"Gebruikerslijst","SoundCloud homepage":"SoundCloud-homepage","Hear the world's sounds":"Muziek van over de hele wereld","Trending tracks on SoundCloud":"Trending tracks op SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Download onze iPhone-app om deze track in je likes op te slaan, afspeellijsten te maken en meer.","Get our Android app to save this track to your likes, create playlists and more.":"Download onze Android-app om deze track in je likes op te slaan, afspeellijsten te maken en meer.","Try our app.<br>It's even better":"Probeer onze app.<br>Die is nog beter",Like:"Liken","Try playing these related tracks":"Probeer deze verwante tracks",Cancel:"Annuleren","Select your language":"Selecteer je taal","Language:":"Taal:","Messages are only<br> supported on desktop browsers.":"Berichten zijn enkel<br>beschikbaar via desktop browsers.","Pages might not display correctly <br>in mobile browsers.":"Pagina's worden mogelijk niet correct <br>weergeven in mobiele browsers.","Go to Messages":"Ga naar Berichten","SoundCloud for mobile is<br> only available as an app.":"SoundCloud voor mobiel is<br> alleen beschikbaar als app.","Open or download now<br> to use SoundCloud on<br> your device.":"Open of download de app nu<br> om SoundCloud op<br> je apparaat te gebruiken.","Open or get the app":"De app openen of downloaden","We’re sorry to hear you’re leaving.":"Wat jammer dat je ons verlaat.","Review your email subscriptions at":"Bekijk je e-mailabonnementen op","Results for: [[generatedSummary]]":"Resultaten voor: [[generatedSummary]]",back:"terug","Don't want to be included? Visit the desktop version of this page to opt out.":"Wil je niet in deze lijst? Ga dan naar de desktopversie van deze pagina om je af te melden.","Play or pause track":"Track afspelen of pauzeren","Get SoundCloud Pulse to manage your tracks on the go":"Download SoundCloud Pulse om je tracks onderweg te beheren","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Bewerk titels, beschrijvingen, tags, privacyinstellingen en meer van tracks direct op je telefoon, waar je ook bent.","Get SoundCloud Pulse to check your stats on the go":"Download SoundCloud Pulse om je statistieken onderweg te controleren","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Zie je play count in realtime de hoogte in schieten, identificeer je topluisteraars en je topsteden om je volgende optreden te plannen.","Get SoundCloud Pulse to check your notifications on the go":"Download SoundCloud Pulse om je notificaties onderweg te lezen","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Blijf op de hoogte van nieuwe volgers, likes, reposts en opmerkingen om betrokken te blijven bij je fans en de community.",All:"Alles",Playlists:"Afspeellijsten",People:"Personen","%d person":["%d persoon","[[count]] personen"],"%d playlist":["%d afspeellijst","[[count]] afspeellijsten"],"Found %d SoundCloud Go+ result":["%d SoundCloud Go+-resultaat gevonden","%d SoundCloud Go+-resultaten gevonden"],"Show more SoundCloud Go+ results":"Meer SoundCloud Go+-resultaten weergeven","Sorry, nothing matches your search.":"Sorry, er zijn geen zoekresultaten.","Search SoundCloud":"Zoek op SoundCloud","Find people, tracks and playlists":"Vind personen, tracks en afspeellijsten","You have successfully<br>changed your password.":"Je hebt je<br>wachtwoord gewijzigd.","Activate your device":"Je apparaat activeren","Open the SoundCloud app":"Open de SoundCloud-app","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Voer de activeringscode op je apparaat in wanneer hierom wordt gevraagd. Activering is alleen beschikbaar in de nieuwste versie van de app.","Or, continue in your browser":"Of ga verder in je browser","Not available in your country":"Niet beschikbaar in jouw land","Reposted by [[username]]":"Gerepost door [[username]]","Now playing":"Nu aan het afspelen","Previous track":"Vorige track","Next track":"Volgende track","%d Like":["%d like","%d likes"],"Not available in<br>your country":"Niet beschikbaar in<br>jouw land","We’re sorry, that track isn’t available on mobile.":"Sorry, deze track is niet beschikbaar op mobiel.","Show more tracks":"Meer tracks weergeven","Show more playlists":"Meer afspeellijsten weergeven","Show more likes":"Meer likes weergeven","SoundCloud Premier is only available on desktop.":"SoundCloud Premier is alleen beschikbaar voor pc.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Ga naar [[[linkStart]]][[premierLink]][[[linkEnd]]] op een desktop-pc of laptop om aan de slag te gaan.","Your releases":"Je releases","SoundCloud Premier distribution is only available on desktop.":"Uitbrengen via SoundCloud Premier is alleen beschikbaar voor pc.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Ga naar <a href="[[url]]">soundcloud.com/you/releases</a> op een desktop-pc of laptop om je releases te beheren.',"searchResults::%d track":["%d track","[[count]] tracks"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"[[joinedCounts]] gevonden","button::Sign in to SoundCloud":"Inloggen op SoundCloud","button::Download our free app":"Download onze gratis app","track::Preview":"Voorbeeld"}),
define("shared/config/locales/locale-pl.json",[],{"Something doesn’t sound right.":"Coś jest nie tak.","Refresh the page to try again.":"Odśwież stronę, aby spróbować ponownie.","We can’t find this page.":"Nie można znaleźć tej strony.","We can’t find this sound.":"Nie można znaleźć tego utworu.","We can’t find this playlist.":"Nie można znaleźć tej playlisty.","We can’t find this user.":"Nie można znaleźć tego użytkownika.","Charts on SoundCloud.":"Listy przebojów w SoundCloud.","Charts are only available on desktop browsers.":"Listy przebojów są dostępne tylko w przeglądarce na komputerze.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Aby odkrywać popularną muzykę i audio gdziekolwiek będziesz, możesz również pobrać naszą mobilną aplikację.","SoundCloud Premier monetization":"monetyzacji SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"Monetyzacja w ramach programu SoundCloud Premier jest dostępna wyłącznie dla przeglądarek na komputerach stacjonarnych.","Upload your music &amp; audio and share it with the world.":"Prześlij własną muzykę oraz dźwięki i udostępnij je całemu światu.","Upload is only supported on desktop browsers.":"Zawartość można przesyłać tylko w przeglądarce na komputerze.","Come back when you’re at your computer to upload more tracks.":"Aby przesłać więcej utworów, skorzystaj z komputera.","Connect with Facebook friends.":"Połącz się ze znajomymi z Facebooka.","Connect is only available on desktop browsers.":"Funkcja połączeń jest dostępna tylko w przeglądarce na komputerze.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Chcesz połączyć się ze znajomymi z Facebooka lub znaleźć nowe osoby do obserwowania? Ta funkcja jest dostępna tylko w przeglądarce na komputerze.","Come back when you’re at your computer to find new people to follow.":"Aby znaleźć nowe osoby do obserwowania, skorzystaj z komputera.","Your profile":"Twój profil","Managing your account is only available on desktop browsers.":"Zarządzanie kontem jest dostępne tylko w przeglądarce na komputerze.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Aby uzyskać więcej informacji na temat optymalizowania profilu, zapoznaj się z naszym <a href="[[url]]">Przewodnikiem dla twórców</a>.',"Enjoy the free SoundCloud experience with our app.":"Korzystaj za darmo z SoundCloud dzięki naszej aplikacji.","Enjoy the full SoundCloud experience with our free app.":"Wykorzystaj pełnię możliwości SoundCloud dzięki naszej bezpłatnej aplikacji.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] — [[authorName]]",Messages:"Wiadomości","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Zabierz ze sobą tę playlistę i wykorzystaj pełnię możliwości SoundCloud dzięki naszej bezpłatnej aplikacji.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] — [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Korzystaj z serwisu dostosowanego do potrzeb twórców dzięki aplikacji SoundCloud Pulse.",Search:"Szukaj","Search tracks":"Wyszukaj utwory","Search playlists":"Wyszukaj playlisty","Search people":"Wyszukaj osoby","Search groups":"Wyszukaj grupy","Search [[category]]":"Wyszukaj w kategorii [[category]]","Unsubscribed successfully":"Subskrypcja anulowana","Be the first to hear what [[username]] posts next with our free app.":"Bądź pierwszym słuchaczem utworów, które publikuje [[username]], dzięki naszej bezpłatnej aplikacji.","[[username]]’s stream":"Strumień użytkownika [[username]]","New &amp; hot tracks":"Nowe i popularne utwory","Up-and-coming tracks on SoundCloud":"Najbardziej obiecujące utwory w SoundCloud","New &amp; hot audio":"Nowe i popularne dźwięki","Up-and-coming audio on SoundCloud":"Najbardziej obiecujące dźwięki w SoundCloud","Top 50 tracks":"Najlepsze 50 utworów","The most played tracks on SoundCloud this week":"Utwory najczęściej odtwarzane w SoundCloud w tym tygodniu","Top 50 audio":"Najlepsze 50 nagrań audio","The most played audio on SoundCloud this week":"Audio najczęściej odtwarzane w SoundCloud w tym tygodniu","New &amp; hot in [[[genreLabel]]]":"Nowe i popularne w gatunku [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Najbardziej obiecujące utwory w SoundCloud z gatunku [[[genreLabel]]]","Top 50 in [[[genreLabel]]]":"Najlepsze 50 z gatunku [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"Utwory najczęściej odtwarzanie w SoundCloud w tym tygodniu z gatunku [[[genreLabel]]]","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Najbardziej obiecujące utwory w SoundCloud z gatunku [[[genreLabel]]]","The most played in [[[genreLabel]]] on SoundCloud this week":"Najczęściej odtwarzane w SoundCloud w tym tygodniu z gatunku [[[genreLabel]]]","New &amp; hot":"Nowe i popularne","Top 50":"Najlepsze 50","All music genres":"Wszystkie gatunki muzyki","All audio genres":"Wszystkie gatunki audio","Alternative Rock":"Rock alternatywny",Classical:"Muzyka klasyczna","Dance &amp; EDM":"Dance i EDM","Drum &amp; Bass":"Drum & Bass",Electronic:"Muzyka elektroniczna","Folk &amp; Singer-Songwriter":"Folk i piosenka autorska","Hip-hop &amp; Rap":"Hiphop i rap","Jazz &amp; Blues":"Jazz i blues",Latin:"Muzyka latynoska",Piano:"Pianistyka","R&B &amp; Soul":"R&B i soul",Soundtrack:"Muzyka filmowa",Speech:"Wypowiedzi",World:"World music",Audiobooks:"Audiobooki",Business:"Biznes",Comedy:"Komedia",Entertainment:"Rozrywka",Learning:"Edukacja","News &amp; Politics":"Wiadomości i polityka","Religion &amp; Spirituality":"Religia i duchowość",Science:"Nauka",Sports:"Sport",Storytelling:"Historie",Technology:"Technologia","%d hour":["%d godzina","%d godziny","%d godzin","%d godz."],"%d minute":["%d minuta","%d minuty","%d minut","%d min"],"%d second":["%d sekunda","%d sekundy","%d sekund","%d s"],"Enjoy the full SoundCloud experience with our app.":"Wykorzystaj pełnię możliwości SoundCloud dzięki naszej aplikacji.",Close:"Zamknij",Retry:"Spróbuj ponownie","%d track":["%d utwór","%d utwory","%d utworów","Utwory: %d"],"%d play":["%d odtworzenie","%d odtworzenia","%d odtworzeń","Odtworzenia: %d"],"%d follower":["%d obserwujący","%d obserwujących","%d obserwujących","Obserwujący: %d"],"Download on the App Store":"Pobierz ze sklepu App Store","Get it on Google Play":"Pobierz ze sklepu Google Play","Get it at BlackBerry World":"Pobierz ze sklepu BlackBerry World","Available at Amazon":"Dostępne w serwisie Amazon","Download SoundCloud":"Pobierz aplikację SoundCloud","I already have the app":"Już mam aplikację","Listen on the SoundCloud app":"Posłuchaj w aplikacji SoundCloud","Download our free app":"Pobierz naszą bezpłatną aplikację","No more previews, just full tracks.":"Koniec z fragmentami — tylko całe utwory.","Try SoundCloud Go+":"Wypróbuj SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Używamy plików cookie do różnych celów, w tym do analizy i spersonalizowanego marketingu. Korzystając z naszych usług, wyrażasz zgodę na korzystanie przez nas z plików cookie w sposób opisany w [[[linkStart]]]zasadach dotyczących plików cookie[[[linkEnd]]].","Terms of use":"Warunki użytkowania",Legal:"Informacje prawne","Privacy policy":"Polityka prywatności",Privacy:"Prywatność","Cookies policy":"Zasady dotyczące plików cookie",Cookies:"Pliki cookie","Company information":"Informacje o firmie",Imprint:"Dane firmy","People directory":"Katalog osób",Directory:"Katalog","SoundCloud homepage":"Strona główna SoundCloud","Hear the world's sounds":"Posłuchaj odgłosów świata","Trending tracks on SoundCloud":"Popularne utwory w SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Pobierz naszą aplikację dla telefonu iPhone, aby zapisywać utwory jako polubione, tworzyć playlisty i korzystać z wielu innych funkcji.","Get our Android app to save this track to your likes, create playlists and more.":"Pobierz naszą aplikację do systemu Android, aby zapisywać utwory jako polubione, tworzyć playlisty i korzystać z wielu innych funkcji.","Try our app.<br>It's even better":"Wypróbuj naszą aplikację.<br>Jest jeszcze lepsza.",Like:"Polub","Try playing these related tracks":"Spróbuj odtworzyć te podobne utwory",Cancel:"Anuluj","Select your language":"Wybierz język","Language:":"Język:","Messages are only<br> supported on desktop browsers.":"Wiadomości są obsługiwane<br> tylko w przeglądarce na komputerze.","Pages might not display correctly <br>in mobile browsers.":"Strony mogą być wyświetlane nieprawidłowo<br>w przeglądarkach mobilnych.","Go to Messages":"Przejdź do wiadomości","SoundCloud for mobile is<br> only available as an app.":"Mobilny serwis SoundCloud<br> jest dostępny tylko jako aplikacja.","Open or download now<br> to use SoundCloud on<br> your device.":"Otwórz lub pobierz aplikację, <br> aby korzystać z SoundCloud<br> na swoim urządzeniu.","Open or get the app":"Otwórz lub pobierz aplikację","We’re sorry to hear you’re leaving.":"Przykro nam, że nas opuszczasz.","Review your email subscriptions at":"Sprawdź subskrypcje e-mail na stronie","Results for: [[generatedSummary]]":"Wyniki wyszukiwania: [[generatedSummary]]",back:"wstecz","Don't want to be included? Visit the desktop version of this page to opt out.":"Nie chcesz być w katalogu? Skorzystaj z wersji tej strony na komputer, żeby z tego zrezygnować.","Play or pause track":"Odtwórz lub wstrzymaj utwór","Get SoundCloud Pulse to manage your tracks on the go":"Pobierz SoundCloud Pulse, aby zarządzać swoimi utworami w podróży ","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Edytuj tytuły utworów, opisy, tagi, ustawienia prywatności i inne bezpośrednio z telefonu, gdziekolwiek jesteś.","Get SoundCloud Pulse to check your stats on the go":"Pobierz SoundCloud Pulse, aby sprawdzać swoje statystyki w podróży ","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Sprawdzaj w czasie rzeczywistym liczbę odtwarzań utworów, identyfikuj swoich najlepszych słuchaczy i sprawdź swoje najlepsze miasta, aby zaplanować następny występ.","Get SoundCloud Pulse to check your notifications on the go":"Pobierz SoundCloud Pulse, aby sprawdzać swoje powiadomienia w podróży ","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Otrzymuj powiadomienia o nowych obserwujących, wielbicielach, repostach i komentarzach, aby móc zaangażować się w kontakt ze swoimi fanami i społecznością.",All:"Wszystko",Tracks:"Utwory",Playlists:"Playlisty",People:"Osoby","%d person":["%d osoba","[[count]] osoby","[[count]] osób","Osoby: [[count]]"],"%d playlist":["%d playlista","[[count]] playlisty","[[count]] playlist","Playlisty: [[count]]"],"Found %d SoundCloud Go+ result":["Znaleziono %d wynik SoundCloud Go+","Znaleziono %d wyniki SoundCloud Go+","Znaleziono %d wyników SoundCloud Go+","Znalezione wyniki SoundCloud Go+: %d"],"Show more SoundCloud Go+ results":"Pokaż więcej wyników z SoundCloud Go+","Sorry, nothing matches your search.":"Niestety, brak wyników wyszukiwania.","Search SoundCloud":"Szukaj w SoundCloud","Find people, tracks and playlists":"Znajdź osoby, utwory i playlisty","You have successfully<br>changed your password.":"Hasło zostało<br>zmienione.","Activate your device":"Aktywuj urządzenie","Open the SoundCloud app":"Otwórz aplikację SoundCloud","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Po wyświetleniu monitu wprowadź kod aktywacyjny z urządzenia. Aktywacja jest dostępna tylko w najnowszej wersji aplikacji.","Or, continue in your browser":"Możesz zamiast tego kontynuować w przeglądarce","Not available in your country":"Niedostępne w Twoim kraju","Reposted by [[username]]":"Udostępnione przez: [[username]]","Now playing":"Teraz odtwarzane","Previous track":"Poprzedni utwór","Next track":"Następny utwór","%d Like":["%d polubienie","%d polubienia","%d polubień","Polubienia: %d"],"Not available in<br>your country":"Niedostępne<br>w Twoim kraju","We’re sorry, that track isn’t available on mobile.":"Niestety, ten utwór jest niedostępny w wersji mobilnej.",Spotlight:"Wyróżnione","Show more tracks":"Pokaż więcej utworów","Show more playlists":"Pokaż więcej playlist",Likes:"Polubienia","Show more likes":"Pokaż więcej polubień","SoundCloud Premier is only available on desktop.":"Program SoundCloud Premier jest dostępny wyłącznie na komputerach stacjonarnych.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Aby rozpocząć, przejdź do [[[linkStart]]][[premierLink]][[[linkEnd]]] na komputerze stacjonarnym.","Your releases":"Twoje wydania","SoundCloud Premier distribution is only available on desktop.":"Program SoundCloud Premier jest dostępny wyłącznie na komputerach stacjonarnych.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Aby zarządzać wydaniami, odwiedź witrynę <a href="[[url]]">soundcloud.com/you/releases</a> na komputerze stacjonarnym lub laptopie.',"searchResults::%d track":["%d utwór","[[count]] utwory","[[count]] utworów","Utwory: [[count]]"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"Znaleziono: [[joinedCounts]]","button::Sign in to SoundCloud":"Zaloguj się w SoundCloud","button::Download our free app":"Pobierz naszą bezpłatną aplikację","track::Preview":"Fragment"}),
define("shared/config/locales/locale-pt-br.json",[],{"Something doesn’t sound right.":"Parece que alguma coisa não está bem.","Refresh the page to try again.":"Atualize a página para tentar novamente.","We can’t find this page.":"Não foi possível encontrar esta página.","We can’t find this sound.":"Não foi possível encontrar esta faixa.","We can’t find this playlist.":"Não foi possível encontrar esta playlist.","We can’t find this user.":"Não foi possível encontrar este usuário.","Charts on SoundCloud.":"Paradas da SoundCloud.","Charts are only available on desktop browsers.":"As paradas só estão disponíveis em navegadores para desktop.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Baixe nosso aplicativo móvel para descobrir a música e o aúdio do momento na hora que desejar.","SoundCloud Premier monetization":"Monetização do SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"A monetização do SoundCloud Premier só está disponível em navegadores desktop.","Upload your music &amp; audio and share it with the world.":"Envie sua música e seu áudio e compartilhe-os com o mundo.","Upload is only supported on desktop browsers.":"O upload só é possível em navegadores desktop.","Come back when you’re at your computer to upload more tracks.":"Retorne quando você estiver no seu computador para enviar mais faixas.","Connect with Facebook friends.":"Conecte-se com seus amigos do Facebook.","Connect is only available on desktop browsers.":"A conexão só está disponível em navegadores desktop.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Você quer se conectar com seus amigos do Facebook ou encontrar novas pessoas para seguir? Esse recurso só está disponível em navegadores desktop.","Come back when you’re at your computer to find new people to follow.":"Retorne quando você estiver no computador para encontrar novas pessoas para seguir.","Your profile":"Seu perfil","Managing your account is only available on desktop browsers.":"Só é possível gerenciar sua conta em navegadores desktop.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Para mais informações sobre a otimização do seu perfil, visite nosso <a href="[[url]]">Guia do criador</a>.',"Enjoy the free SoundCloud experience with our app.":"Aproveite a SoundCloud gratuitamente com nosso aplicativo.","Enjoy the full SoundCloud experience with our free app.":"Aproveite a SoundCloud completa gratuitamente nosso aplicativo grátis.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] de [[authorName]]",Messages:"Mensagens","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Ouça esta playlist onde quiser e aproveite a SoundCloud com nosso app gratuito.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] de [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Tenha a experiência exclusiva dos criadores com a SoundCloud Pulse.",Search:"Pesquisar","Search tracks":"Pesquisar faixas","Search playlists":"Pesquisar playlists","Search people":"Pesquisar pessoas","Search groups":"Pesquisar grupos","Search [[category]]":"Pesquisar [[category]]","Unsubscribed successfully":"Inscrição cancelada com sucesso","Be the first to hear what [[username]] posts next with our free app.":"Seja o primeiro a ouvir o que [[username]] publica com nosso app gratuito.","[[username]]’s stream":"Stream de [[username]]","New &amp; hot tracks":"Faixas novas e iradas","Up-and-coming tracks on SoundCloud":"Faixas que vão bombar na SoundCloud","New &amp; hot audio":"Áudios novos e irados","Up-and-coming audio on SoundCloud":"Áudios que vão bombar na SoundCloud","Top 50 tracks":"Faixas Top 50","The most played tracks on SoundCloud this week":"As faixas mais tocadas na SoundCloud esta semana","Top 50 audio":"Áudios Top 50","The most played audio on SoundCloud this week":"Os áudios mais tocados na SoundCloud esta semana","New &amp; hot in [[[genreLabel]]]":"Novo e irado em [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Faixas de [[[genreLabel]]] que vão bombar na SoundCloud","Top 50 in [[[genreLabel]]]":"Top 50 em [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"As faixas mais tocadas de [[[genreLabel]]] na SoundCloud esta semana","Up-and-coming in [[[genreLabel]]] on SoundCloud":"O que vai bombar em [[[genreLabel]]] na SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"As mais reproduzidas em [[[genreLabel]]] na SoundCloud esta semana","New &amp; hot":"Novo e irado","All music genres":"Todos os gêneros musicais","All audio genres":"Todos os gêneros de áudio","Alternative Rock":"Rock alternativo",Ambient:"Ambiente",Classical:"Clássica","Dance &amp; EDM":"Dance e EDM","Drum &amp; Bass":"Drum & Bass",Electronic:"Eletrônica","Folk &amp; Singer-Songwriter":"Folk e Cantor/compositor","Hip-hop &amp; Rap":"Rap e Hip Hop","Jazz &amp; Blues":"Jazz e Blues",Latin:"Latina","R&B &amp; Soul":"Soul e R&B",Soundtrack:"Trilha sonora",Speech:"Discursos",Triphop:"Trip Hop",Business:"Negócio",Comedy:"Comédia",Entertainment:"Entretenimento",Learning:"Aprendizado","News &amp; Politics":"Notícias e Política","Religion &amp; Spirituality":"Religião e Espiritualidade",Science:"Ciência",Sports:"Esportes",Storytelling:"Contação de histórias",Technology:"Tecnologia","%d hour":["%d hora","%d horas"],"%d minute":["%d minuto","%d minutos"],"%d second":["%d segundo","%d segundos"],"Enjoy the full SoundCloud experience with our app.":"Aproveite a SoundCloud completa com nosso app.",Close:"Fechar",Retry:"Tentar novamente","%d track":["%d faixa","%d faixas"],"%d play":["%d reprodução","%d reproduções"],"%d follower":["%d seguidor","%d seguidores"],"Download on the App Store":"Baixar na App Store","Get it on Google Play":"Baixar no Google Play","Get it at BlackBerry World":"Baixar no BlackBerry World","Available at Amazon":"Disponível na Amazon","Download SoundCloud":"Baixar a SoundCloud","I already have the app":"Já tenho o aplicativo","Listen on the SoundCloud app":"Ouvir no app SoundCloud","Download our free app":"Baixe nosso app gratuito","No more previews, just full tracks.":"Chega de pr, apenas faixas completas.","Try SoundCloud Go+":"Experimente a SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Usamos cookies para vários efeitos, incluindo análises e marketing personalizado. Ao continuar usando o serviço, você concorda com o nosso uso de cookies conforme descrito na [[[linkStart]]]Política de Cookies[[[linkEnd]]].","Terms of use":"Termos de Uso",Legal:"Aviso legal","Privacy policy":"Política de Privacidade",Privacy:"Privacidade","Cookies policy":"Política de Cookies","Company information":"Informações sobre a empresa",Imprint:"Informações sobre a empresa","People directory":"Diretório de pessoas",Directory:"Diretório","SoundCloud homepage":"Página inicial da SoundCloud","Hear the world's sounds":"Ouça os sons do mundo","Trending tracks on SoundCloud":"Faixas mais tocadas na SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Baixe nosso aplicativo para iPhone para salvar esta faixa nas suas curtidas, criar playlists e muito mais.","Get our Android app to save this track to your likes, create playlists and more.":"Baixe nosso aplicativo para Android para salvar esta faixa nas suas curtidas, criar playlists e muito mais.","Try our app.<br>It's even better":"Experimente nosso aplicativo.<br>É ainda melhor",Like:"Curtir","Try playing these related tracks":"Experimente reproduzir as faixas relacionadas",Cancel:"Cancelar","Select your language":"Selecione o idioma","Language:":"Idioma:","Messages are only<br> supported on desktop browsers.":"As mensagens só estão disponíveis<br> em navegadores desktop.","Pages might not display correctly <br>in mobile browsers.":"As páginas podem não ser exibidas corretamente <br>em navegadores móveis.","Go to Messages":"Ir para Mensagens","SoundCloud for mobile is<br> only available as an app.":"A SoundCloud para dispositivos móveis só<br> está disponível como aplicativo.","Open or download now<br> to use SoundCloud on<br> your device.":"Abra ou baixe agora<br> para usar a SoundCloud no<br> seu dispositivo.","Open or get the app":"Abrir ou obter o aplicativo","We’re sorry to hear you’re leaving.":"Que pena que você está indo embora.","Review your email subscriptions at":"Consulte suas assinaturas por e-mail em","Results for: [[generatedSummary]]":"Resultados para: [[generatedSummary]]",back:"voltar","Don't want to be included? Visit the desktop version of this page to opt out.":"Não quer ser incluído? Visite a versão para desktop desta página para cancelar.","Play or pause track":"Reproduzir ou pausar faixa","Get SoundCloud Pulse to manage your tracks on the go":"Tenha o SoundCloudPulse para gerenciar as suas faixas em qualquer lugar","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Edite títulos de faixa, descrições, etiquetas, definições de privacidade e mais a partir de seu telefone, onde quer que você esteja.","Get SoundCloud Pulse to check your stats on the go":"Tenha o SoundCloudPulse para checar as suas estatísticas em qualquer lugar ","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Veja o número de reproduções rapidamente em tempo real, identifique seus principais ouvintes e cheque suas principais cidades para planejar seu próximo show.","Get SoundCloud Pulse to check your notifications on the go":"Tenha o SoundCloudPulse para checar suas notificações em qualquer lugar ","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Seja notificado sobre novos seguidores, curtidas, republicações e comentários para interagir com seus fãs e a comunidade.",All:"Tudo",Tracks:"Faixas",People:"Pessoas","%d person":["%d pessoa","[[count]] pessoas"],"%d playlist":["%d playlist","[[count]] playlists"],"Found %d SoundCloud Go+ result":["Encontrado %d resultado do SoundCloud Go+","Encontrados %d resultados do SoundCloud Go+ "],"Show more SoundCloud Go+ results":"Exibir mais resultados na SoundCloud Go+","Sorry, nothing matches your search.":"Lamentamos, não houve resultados para sua pesquisa.","Search SoundCloud":"Pesquisar na SoundCloud","Find people, tracks and playlists":"Encontre pessoas, faixas e playlists","You have successfully<br>changed your password.":"Você alterou<br> sua senha com sucesso.","Activate your device":"Ativar seu dispositivo","Open the SoundCloud app":"Abra o app da SoundCloud","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Quando solicitado, insira o código de ativação do seu dispositivo. A ativação só está disponível na última versão do aplicativo.","Or, continue in your browser":"Ou continue no seu navegador","Not available in your country":"Não disponível no seu país","Reposted by [[username]]":"Republicada por [[username]]","Now playing":"Reproduzindo agora","Previous track":"Faixa anterior","Next track":"Próxima faixa","%d Like":["%d curtida","%d curtidas"],"Not available in<br>your country":"Não disponível em<br>seu país","We’re sorry, that track isn’t available on mobile.":"Lamentamos, essa faixa não está disponível para dispositivos móveis.",Spotlight:"Destaques","Show more tracks":"Ver mais faixas","Show more playlists":"Ver mais playlists",Likes:"Curtidas","Show more likes":"Ver mais curtidas","SoundCloud Premier is only available on desktop.":"O SoundCloud Premier somente está disponível em computadores desktop.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Visite [[[linkStart]]][[premierLink]][[[linkEnd]]] em um computador desktop ou laptop para começar.","Your releases":"Os seus lançamentos","SoundCloud Premier distribution is only available on desktop.":"A distribuição com o SoundCloud Premier somente está disponível em computadores desktop.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'Para gerenciar os seus lançamentos, visite <a href="[[url]]">soundcloud.com/you/releases</a> em um computador desktop ou laptop.',"searchResults::%d track":["%d faixa","[[count]] faixas"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"[[joinedCounts]] encontrados","button::Sign in to SoundCloud":"Entrar na SoundCloud","button::Download our free app":"Baixar nosso aplicativo grátis","track::Preview":"Prévia"}),
define("shared/config/locales/locale-sv.json",[],{"Something doesn’t sound right.":"Något låter inte helt rätt.","Refresh the page to try again.":"Uppdatera sidan för att försöka igen.","We can’t find this page.":"Vi kan inte hitta den här sidan.","We can’t find this sound.":"Vi kan inte hitta det här spåret.","We can’t find this playlist.":"Vi kan inte hitta den här spellistan.","We can’t find this user.":"Vi kan inte hitta den här användaren.","Charts on SoundCloud.":"Listor på SoundCloud.","Charts are only available on desktop browsers.":"Listor finns bara på datorn.","Alternatively, download our mobile app to discover trending music &amp; audio on the go.":"Du kan också ladda ner vår mobilapp för att upptäcka populär musik och nya spår när du är på språng.","SoundCloud Premier monetization":"Intäktsgenerering med SoundCloud Premier","SoundCloud Premier monetization is only available on desktop browsers.":"SoundCloud Premier intäktsgenerering är bara tillgängligt via dator.","Upload your music &amp; audio and share it with the world.":"Ladda upp musik och spår och dela med hela världen.","Upload is only supported on desktop browsers.":"Det går bara att ladda upp från datorn.","Come back when you’re at your computer to upload more tracks.":"Kom tillbaka när du sitter vid datorn för att ladda upp fler spår.","Connect with Facebook friends.":"Hitta Facebook-vänner.","Connect is only available on desktop browsers.":"Du kan bara hitta Facebook-vänner från datorn.","Looking to connect with Facebook friends or find new people to follow? This feature is only available on desktop browsers.":"Vill du hitta dina Facebook-vänner eller andra personer att följa? Den här funktionen fungerar bara från datorn.","Come back when you’re at your computer to find new people to follow.":"Kom tillbaka när du sitter vid datorn för att hitta folk att följa.","Your profile":"Din profil","Managing your account is only available on desktop browsers.":"Det går bara att hantera kontot från datorn.",'For more information on optimizing your profile, visit our <a href="[[url]]">Creator Guide</a>.':'Mer information om hur du optimerar din profil finns i vår <a href="[[url]]">skaparguide</a>.',"Enjoy the free SoundCloud experience with our app.":"Använd SoundCloud gratis med vår app.","Enjoy the full SoundCloud experience with our free app.":"Använd allting SoundCloud har att erbjuda med vår gratisapp.","[[soundTitle]] by [[authorName]]":"[[soundTitle]] av [[authorName]]",Messages:"Meddelanden","Take this playlist with you and enjoy the full SoundCloud experience with our free app.":"Ta med dig den här spellistan och använd allting SoundCloud har att erbjuda med vår gratisapp.","[[playlistTitle]] by [[authorName]]":"[[playlistTitle]] av [[authorName]]","Enjoy the custom experience for creators with SoundCloud Pulse.":"Dra fördel av en anpassad upplevelse för skapare med SoundCloud Pulse.",Search:"Sök","Search tracks":"Sök spår","Search playlists":"Sök spellistor","Search people":"Sök folk","Search groups":"Sök grupper","Search [[category]]":"Sök [[category]]","Unsubscribed successfully":"Prenumerationen avslutad","Be the first to hear what [[username]] posts next with our free app.":"Bli först med att höra vad [[username]] postar nästa gång med vår gratisapp.","[[username]]’s stream":"[[username]]s flöde","New &amp; hot tracks":"Nya och heta spår","Up-and-coming tracks on SoundCloud":"Fräscha spår på SoundCloud","New &amp; hot audio":"Nya och heta inspelningar","Up-and-coming audio on SoundCloud":"Fräscha inspelningar på SoundCloud","Top 50 tracks":"Topp 50-spår","The most played tracks on SoundCloud this week":"De mest spelade spåren på SoundCloud den här veckan","Top 50 audio":"Topp 50-inspelningar","The most played audio on SoundCloud this week":"Mest spelade inspelningar på SoundCSloud den här veckan","New &amp; hot in [[[genreLabel]]]":"Nytt och hett inom [[[genreLabel]]]","Up-and-coming tracks in [[[genreLabel]]] on SoundCloud":"Fräscha spår inom [[[genreLabel]]] på SoundCloud","Top 50 in [[[genreLabel]]]":"Topp 50 inom [[[genreLabel]]]","The most played tracks in [[[genreLabel]]] on SoundCloud this week":"De mest spelade spåren inom [[[genreLabel]]] på SoundCloud den här veckan","Up-and-coming in [[[genreLabel]]] on SoundCloud":"Fräscht inom [[[genreLabel]]] på SoundCloud","The most played in [[[genreLabel]]] on SoundCloud this week":"Det mest spelade inom [[[genreLabel]]] på SoundCloud den här veckan","New &amp; hot":"Nytt och hett","Top 50":"Topp 50","All music genres":"Alla musikgenrer","All audio genres":"Alla inspelningsgenrer","Alternative Rock":"Alternativ",Classical:"Klassisk","Dance &amp; EDM":"Dans och EDM","Drum &amp; Bass":"Drum and bass",Electronic:"Elektronisk","Folk &amp; Singer-Songwriter":"Folk och singer-songwriter","Hip-hop &amp; Rap":"Hiphop och rap","Jazz &amp; Blues":"Jazz och blues","R&B &amp; Soul":"R&B och soul",Speech:"Tal",Audiobooks:"Ljudböcker",Business:"Ekonomi",Comedy:"Komedi",Entertainment:"Underhållning",Learning:"Bildning","News &amp; Politics":"Nyheter och politik","Religion &amp; Spirituality":"Religion och andlighet",Science:"Vetenskap",Sports:"Sport",Storytelling:"Berättelser",Technology:"Teknologi","%d hour":["%d timme","%d timmar"],"%d minute":["%d minut","%d minuter"],"%d second":["%d sekund","%d sekunder"],"Enjoy the full SoundCloud experience with our app.":"Använd allting SoundCloud har att erbjuda med vår app.",Close:"Stäng",Retry:"Försök igen","%d track":["%d spår","%d spår"],"%d play":["%d spelning","%d spelningar"],"%d follower":["%d följare","%d följare"],"Download on the App Store":"Ladda ner i App Store","Get it on Google Play":"Hämta den på Google Play","Get it at BlackBerry World":"Skaffa den på BlackBerry World","Available at Amazon":"Finns på Amazon","Download SoundCloud":"Ladda ner SoundCloud","I already have the app":"Jag har redan appen","Listen on the SoundCloud app":"Lyssna på SoundCloud-appen","Download our free app":"Ladda ner vår gratisapp","No more previews, just full tracks.":"Inga fler förhandsvisningar, bara hela spår.","Try SoundCloud Go+":"Prova SoundCloud Go+","We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the [[[linkStart]]]Cookie Policy[[[linkEnd]]].":"Vi använder cookies för olika ändamål som bland annat statistik och individanpassad reklam. När du använder våra tjänster samtycker du till att vi använder cookies i enlighet med vår [[[linkStart]]]cookie-policy[[[linkEnd]]].","Terms of use":"Användarvillkor",Legal:"Juridiskt","Privacy policy":"Sekretesspolicy",Privacy:"Sekretess","Cookies policy":"Cookie-policy","Company information":"Företagsinformation",Imprint:"Företagsfakta","People directory":"Personkatalog",Directory:"Katalog","SoundCloud homepage":"SoundClouds hemsida","Hear the world's sounds":"Lyssna på hela världens spår","Trending tracks on SoundCloud":"Populära spår på SoundCloud","Get our iPhone app to save this track to your likes, create playlists and more.":"Skaffa iPhone-appen för att spara det här spåret till dina favoriter, skapa spellistor och mer.","Get our Android app to save this track to your likes, create playlists and more.":"Skaffa Android-appen för att spara det här spåret till dina favoriter, skapa spellistor och mer.","Try our app.<br>It's even better":"Testa vår app.<br>Den är ännu bättre",Like:"Gilla","Try playing these related tracks":"Testa att spela de här liknande spåren",Cancel:"Avbryt","Select your language":"Välj ditt språk","Language:":"Språk:","Messages are only<br> supported on desktop browsers.":"Det går bara<br> att skicka meddelanden från datorn.","Pages might not display correctly <br>in mobile browsers.":"Sidor kanske inte visas på rätt sätt <br>i mobilwebbläsare.","Go to Messages":"Gå till Meddelanden","SoundCloud for mobile is<br> only available as an app.":"SoundCloud för mobilen finns<br> bara som en app.","Open or download now<br> to use SoundCloud on<br> your device.":"Öppna eller ladda ner nu<br> för att använda SoundCloud på<br> din enhet.","Open or get the app":"Öppna eller skaffa appen","We’re sorry to hear you’re leaving.":"Det var tråkigt att höra att du lämnar oss.","Review your email subscriptions at":"Se över dina e-postprenumerationer på","Results for: [[generatedSummary]]":"Resultat för: [[generatedSummary]]",back:"tillbaka","Don't want to be included? Visit the desktop version of this page to opt out.":"Vill du inte vara med? Besök den här sidan på datorn för att avsluta.","Play or pause track":"Spela eller pausa spår","Get SoundCloud Pulse to manage your tracks on the go":"Skaffa SoundCloud Pulse och hantera dina spår i farten","Edit track titles, descriptions, tags, privacy settings and more right from your phone, wherever you are.":"Redigera spårtitlar, beskrivningar, taggar, sekretessinställningar med mera direkt från din smartphone var du än är.","Get SoundCloud Pulse to check your stats on the go":"Skaffa SoundCloud Pulse och kolla din statistik i farten","See your play count skyrocket in real time, identify your top listeners and check your top cities to plan your next show.":"Se ditt antal spelningar skjuta i höjden i realtid, håll koll på dina topplyssnare och kolla dina toppstäder för att planera din nästa livespelning.","Get SoundCloud Pulse to check your notifications on the go":"Skaffa SoundCloud Pulse och kolla dina notiser i farten","Get notified about new followers, likes, reposts, and comments so you can engage with your fans and the community.":"Få notiser om nya följare, likes, reposts och kommentarer så du håller kontakt med dina fans och communityt.",All:"Alla",Tracks:"Spår",Playlists:"Spellistor",People:"Folk","%d person":["%d person","[[count]] personer"],"%d playlist":["%d spellista","[[count]] spellistor"],"Found %d SoundCloud Go+ result":["Hittade %d SoundCloud Go+-resultat","Hittade %d SoundCloud Go+-resultat"],"Show more SoundCloud Go+ results":"Visa fler SoundCloud Go+-resultat","Sorry, nothing matches your search.":"Tyvärr, inget matchar din sökning.","Search SoundCloud":"Sök på SoundCloud","Find people, tracks and playlists":"Hitta folk, spår och spellistor","You have successfully<br>changed your password.":"Du har<br>ändrat ditt lösenord.","Activate your device":"Aktivera din enhet","Open the SoundCloud app":"Öppna SoundCloud-appen","When prompted, enter the activation code from your device. Activation is only available in the latest version of the app.":"Ange aktiveringskoden från din enhet när du uppmanas att göra det. Det går endast att aktivera från den senaste versionen av appen.","Or, continue in your browser":"Eller fortsätt i din webbläsare","Not available in your country":"Inte tillgängligt i ditt land","Reposted by [[username]]":"Repostad av [[username]]","Now playing":"Nu spelas","Previous track":"Föregående spår","Next track":"Nästa spår","%d Like":["%d Like","%d Likes"],"Not available in<br>your country":"Inte tillgänglig i<br>ditt land","We’re sorry, that track isn’t available on mobile.":"Det spåret är tyvärr inte tillgängligt på mobilen.","Show more tracks":"Visa fler spår","Show more playlists":"Visa fler spellistor",Likes:"Favoriter","Show more likes":"Visa fler favoriter","SoundCloud Premier is only available on desktop.":"SoundCloud Premier är bara tillgängligt för datorer.","Please visit [[[linkStart]]][[premierLink]][[[linkEnd]]] on a desktop computer or laptop to get started.":"Besök [[[linkStart]]][[premierLink]][[[linkEnd]]] på en stationär eller bärbar dator.","Your releases":"Dina utgåvor","SoundCloud Premier distribution is only available on desktop.":"Distribution av SoundCloud Premier är bara tillgängligt på datorer.",'To manage your releases, please visit <a href="[[url]]">soundcloud.com/you/releases</a> on a desktop computer or laptop.':'För att hantera utgåvor, gå till <a href="[[url]]">soundcloud.com/you/releases</a> på en stationär eller bärbar dator.',"searchResults::%d track":["%d spår","[[count]] spår"],'eg. "Found 12 tracks, 1 person"::Found [[joinedCounts]]':"Hittade[[joinedCounts]]","button::Sign in to SoundCloud":"Logga in på SoundCloud","button::Download our free app":"Ladda ner vår gratisapp","track::Preview":"Förhandsvisning"}),
define("lib/helpers/dns-helper",["require","exports","module","lib/url"],function(e,t,n){var r=e("lib/url"),i=[],s=n.exports={lookup:function(e){var t=document.createDocumentFragment(),n;e=typeof e=="string"?[e]:e,e.length&&(e.forEach(function(e){n=r.parse(e).host;if(n&&i.indexOf(n)===-1){i.push(n);var s=document.createElement("link");s.rel="dns-prefetch",s.href="//"+n,t.appendChild(s)}}),t.childNodes.length&&document.head.appendChild(t))}}}),
define("views/footer/footer.tmpl",["vendor/handlebars-runtime","views/app-buttons/app-buttons","views/locale-selector/locale-selector"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="",i;return r+=' <div class="footer__appButtonContainer"> <p class="footer__appButtonText"> '+a((i=(i=e&&e._options,i==null||i===!1?i:i.upsellText),typeof i===u?i.apply(e):i))+" </p> "+a(n.$view.call(e,"views/app-buttons/app-buttons",{hash:{},data:t}))+" </div>\n",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;o=n["if"].call(t,t&&t.shouldUpsell,{hash:{},inverse:f.noop,fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+=' <div class="footer__links g-font-12"> <a href="'+a(n.$route.call(t,"pages","terms-of-use",{hash:{},data:i}))+'" title="'+a(n.$t.call(t,"Terms of use",{hash:{},data:i}))+'">'+a(n.$t.call(t,"Legal",{hash:{},data:i}))+'</a>&nbsp;- <a href="'+a(n.$route.call(t,"pagesPages","privacy",{hash:{},data:i}))+'" title="'+a(n.$t.call(t,"Privacy policy",{hash:{},data:i}))+'">'+a(n.$t.call(t,"Privacy",{hash:{},data:i}))+'</a>&nbsp;- <a href="'+a(n.$route.call(t,"pagesPages","cookies",{hash:{},data:i}))+'" title="'+a(n.$t.call(t,"Cookies policy",{hash:{},data:i}))+'">'+a(n.$t.call(t,"Cookies",{hash:{},data:i}))+'</a>&nbsp;- <a href="'+a(n.$route.call(t,"pages","imprint",{hash:{},data:i}))+'" title="'+a(n.$t.call(t,"Company information",{hash:{},data:i}))+'">'+a(n.$t.call(t,"Imprint",{hash:{},data:i}))+'</a>&nbsp;- <a href="'+a(n.$route.call(t,"peopleDirectory",{hash:{},data:i}))+'" title="'+a(n.$t.call(t,"People directory",{hash:{},data:i}))+'">'+a(n.$t.call(t,"Directory",{hash:{},data:i}))+"</a> <br> "+a(n.$view.call(t,"views/locale-selector/locale-selector",{hash:{},data:i}))+"\n</div> ",s})}),
define("views/footer/footer.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".footer{text-align:center;margin:26px 0 0;padding:0 0 18px;display:none}.footer.show{display:block}.app__displayMiniPlayer .footer{padding:0 0 78px}.footer__links,.footer__links a{color:#999;line-height:20px}.footer__links>.localeSelector{color:#38d}.footer__appButtonContainer{margin:0 25px 28px}.footer__appButtonText{color:#333;font-size:16px;text-align:center;margin:0 0 18px}.footerSwitchLink{font-weight:700}")),data=null}),
define("lib/helpers/a11y-helper",["require","exports","module","vendor/handlebars-runtime"],function(e,t,n){var r=e("vendor/handlebars-runtime"),i=n.exports={getAccessibleMarkup:function(e){return'<span class="sc-visuallyhidden">'+r.Utils.escapeExpression(e.screenreader)+"</span>"+(e.visible?'<span aria-hidden="true">'+r.Utils.escapeExpression(e.visible)+"</span>":"")}}}),
define("lib/helpers/count-helper",["require","exports","module","underscore","lib/lingua"],function(e,t,n){function a(e){var t=0;return e<10?t=2:e<100?t=1:t=0,t}var r=e("underscore"),i=e("lib/lingua"),s=["K","M","B"],o;o={max:null,suffix:"+",useSIUnits:!1,precision:null};var u=n.exports={render:function(e,t){if(typeof e!="number")return e;var n=0,u="",f=0;t=t||{},r.defaults(t,o);if(t.max&&e>t.max)e=t.max,u=t.suffix;else if(t.useSIUnits){if(t.precision===null&&e<1e4)return i.numberHelper.format(e);while(e>=1e3&&n<s.length)e/=1e3,u=s[n++];f=t.precision!==null?t.precision:a(e)}return i.numberHelper.format(e,{precision:f,roundingFn:Math.floor})+u}}}),
define("lib/helpers/i18n-helper",["require","exports","module"],function(e,t,n){var r=/\r?\n/g,i=/\s+/g;n.exports={cleanBlockText:function(e){return e.trim().replace(r," ").replace(i," ")}}}),
define("lib/helpers/image-helper",["require","exports","module","$","underscore","lib/helpers/client-environment-helper","vendor/experiments/experiments","lib/helpers/name-helper","lib/support"],function(e,t,n){function y(e){var t,n,r;return c.lastIndex=0,t=e.replace(c,function(e,t,s,o){return i.find(d,function(e,t){if(e[1]===o)return n=t,!0}),r=t,s}),r?{index:n,key:parseInt(t,10),type:r}:null}function b(e,t){var n=i.find(d,function(e){return e[0]>=t})||i.last(d);return n[1]==="t20x20"&&e==="artworks"?"tiny":n[1]}function w(e){c.lastIndex=0;var t=c.exec(e),n;return t&&(n=t[3].charCodeAt(0)%4+1,n!==1&&(e=e.replace("//i1.","//i"+n+"."))),e}function E(e){var t=y(e);t&&(p[t.type]||(p[t.type]={}),p[t.type][t.key]=p[t.type][t.key]|1<<t.index)}function S(e){var t=[];return e.background&&(delete e.alt,delete e.width),e.classList.length&&(e.class=e.classList.join(" ")),i.each(e,function(e,n){i.indexOf(v,n)!==-1&&t.push(n+'="'+e+'"')}),t.join(" ")}function x(e){e.classList.push("image__defer","g-transition-fade-out"),e["data-src"]=e.src,delete e.src}function T(e){e.classList.push("g-transition-fade g-transition-fade-out"),e.onload="(function() { this.classList.remove('g-transition-fade-out'); }.bind(this)())"}var r=e("$"),i=e("underscore"),s=e("lib/helpers/client-environment-helper").device,o=e("vendor/experiments/experiments"),u=e("lib/helpers/name-helper"),a=e("lib/support"),f,l=/default_avatar/,c=/^.*\/([a-z0-9]+)-0*([a-z0-9]+)-([a-z0-9]+)-([a-z0-9]+)\.jpg.*$/i,h=/\/images\/default\/.*?x[0-9]+(?:-[a-z0-9]+)?\.png$/,p={},d=[[20,"t20x20"],[50,"t50x50"],[120,"t120x120"],[200,"t200x200"],[500,"t500x500"]];o.get("mweb_listening","hocuspocus")==="hocuspocus"&&(s.dpi==="hdpi"?d=[[60,"t120x120"],[120,"t240x240"],[500,"t500x500"]]:d=[[60,"t60x60"],[120,"t120x120"],[500,"t500x500"]]);var v=["alt","class","height","src","title","width","data-src","onload"],m={cloud:{40:"https://mobi.sndcdn.com/assets/images/default/cloudx40-397e0b30.png",50:"https://mobi.sndcdn.com/assets/images/default/cloudx50-397e0b30.png",60:"https://mobi.sndcdn.com/assets/images/default/cloudx80-397e0b30.png",80:"https://mobi.sndcdn.com/assets/images/default/cloudx80-397e0b30.png",120:"https://mobi.sndcdn.com/assets/images/default/cloudx120-397e0b30.png",200:"https://mobi.sndcdn.com/assets/images/default/cloudx200-397e0b30.png"},group:{40:"https://mobi.sndcdn.com/assets/images/default/groupx40-397e0b30.png",50:"https://mobi.sndcdn.com/assets/images/default/groupx50-397e0b30.png",60:"https://mobi.sndcdn.com/assets/images/default/groupx80-397e0b30.png",80:"https://mobi.sndcdn.com/assets/images/default/groupx80-397e0b30.png",120:"https://mobi.sndcdn.com/assets/images/default/groupx120-397e0b30.png",200:"https://mobi.sndcdn.com/assets/images/default/groupx200-397e0b30.png"},user:{40:"https://mobi.sndcdn.com/assets/images/default/userx40-397e0b30.png",50:"https://mobi.sndcdn.com/assets/images/default/userx50-397e0b30.png",60:"https://mobi.sndcdn.com/assets/images/default/userx80-397e0b30.png",80:"https://mobi.sndcdn.com/assets/images/default/userx80-397e0b30.png",120:"https://mobi.sndcdn.com/assets/images/default/userx120-397e0b30.png",200:"https://mobi.sndcdn.com/assets/images/default/userx200-397e0b30.png"}},g=n.exports={load:function(e){var t=new Image,n=r.Deferred();return a.corsImg&&(t.crossOrigin=location.host,e+="?xd=true"),r(t).on("load",function(){n.resolve(this)}).on("error",function(){n.reject(this)}),t.src=e,n},markup:function(e,t){return t.size==="fill"&&(t.fill=!0,t.size="100%"),i.defaults(t,{src:g.urlFrom(e,t.size),width:t.size,height:t.size,alt:g.getAltText(e)}),E(t.src),t.classList=t.class?t.class.split(" "):[],t.fill&&delete t.height,t.defer&&x(t),t.fade&&T(t),g.getMarkup(t)},getMarkup:function(e){var t;return e.fill?e.fill&&(t='<div class="g-image-fill"><img '+S(e)+"></div>"):t="<img "+S(e)+">",t},getAltText:function(e){return e.username?u.get(e,!0)+" avatar":u.get(e)},getPlaceholderUrl:function(e,t){var n,r,s,o,u;s=y(g.setFormat(e,t));if(s){n=s.key,p[s.type]||(p[s.type]={});if(p[s.type][n]){r=i.find(d,function(e,n){return u=n,t<=e[0]});while(u>=0){if(p[s.type][n]&Math.pow(2,u)){o=d[u];break}--u}}if(r&&o===r)return!1;if(o)return g.setFormat(e,o[0])}return null},urlFrom:function(e,t){var n=e&&(e.artwork_url||e.avatar_url||e.user&&e.user.avatar_url)||"";return g.isDefaultImage(n)?g.getDefaultImage(e.kind,t):(n=w(n),t?g.setFormat(n,t):n)},isDefaultImage:function(e){return!e||l.test(e)},getDefaultImage:function(e,t){return(m[e]||m.cloud)[f(t)]},setFormat:function(e,t){if(h.test(e))return e.replace(/[0-9]+((?:-[a-z0-9]+)?\.png)$/,f(t)+"$1");c.lastIndex=0;var n=c.exec(e);if(n){var r=n[1],i=n[4],s=b(r,t);return s?e.replace(i,s):e}return e},fadeInBackground:function(e,t){return g.load(e).done(function(){t.style.backgroundImage="url("+e+" )",t.classList.remove("g-transition-fade-out")})}};f=function(){var e=Object.keys(m.cloud),t;return e.sort(function(e,t){return e-t}),t=i.last(e),i.memoize(function(n){var r,i;for(r=0;i=e[r];++r)if(i>=n)return i;return t})}()}),
define("views/header/search-button",["require","exports","module","lib/event-bus","lib/view","views/header/search-button.css"],function(e,t,n){function o(){this.bubble("searchButton:click")}function u(){this.toggleState("visibility")}var r=e("lib/event-bus"),i=e("lib/view"),s=n.exports=i.extend({template:function(){return"Search"},tagName:"button",css:e("views/header/search-button.css"),className:"searchButton g-touch-padding g-button-nostyle",states:{initiate:"initiate",visibility:"sc-hidden"},events:{click:o},setup:function(){this.listenTo(r,"locale-selector:toggle",u)},dispose:function(){this.stopListening(r,"locale-selector:toggle",u)},renderDecorate:function(){this.whenInserted().done(function(){this.toggleState("initiate")}.bind(this))}})}),
define("views/search/search-box",["require","exports","module","config","lib/event-bus","lib/views/mixins/form","views/search/suggestions-overlay","views/search/suggestions-list","lib/tracking/tracking-core","lib/view","lib/url","views/search/search-box.tmpl","views/search/search-box.css"],function(e,t,n){function h(){return this.getElement("input")[0].value}function p(){b.call(this)}function d(){v.call(this)}function v(){this.toggleState("open",!1);if(this.formulatingSearch){var e=h.call(this);a.trackClickV1({click_name:"search_formulation_exit",click_attributes:{q:e}}),this.formulatingSearch=!1}S.call(this)}function m(){var e=this.getElement("input")[0];e.value="",e.setAttribute("value",""),e.focus()}function g(){b.call(this)}function y(e){var t=h.call(this),n=e.queryUrn,r=e.queryPosition;a.trackClickV1({click_name:"search_formulation_end",click_attributes:{q:t,query_urn:n,query_position:r}}),this.formulatingSearch=!1,this.rerender()}function b(){var e=h.call(this),t=e.length>0;this.toggleState("filled",t),t?E.call(this,e):!t&&this.suggestionsOverlay&&S.call(this)}function w(){return l.parse(window.location.href).path.indexOf("search")===1}function E(e){if(w())return;var t=!0;this.suggestionsOverlay&&(this.suggestionsOverlay.close(),t=!1),this.suggestionsOverlay=new o({Subview:u,subviewArgs:{query:e,maxDisplay:10},showHeader:!0,animate:t}),this.suggestionsOverlay.open()}function S(){this.suggestionsOverlay&&(this.suggestionsOverlay.close(),delete this.suggestionsOverlay)}var r=e("config"),i=e("lib/event-bus"),s=e("lib/views/mixins/form"),o=e("views/search/suggestions-overlay"),u=e("views/search/suggestions-list"),a=e("lib/tracking/tracking-core"),f=e("lib/view"),l=e("lib/url"),c=n.exports=f.extend(s,{template:e("views/search/search-box.tmpl"),css:e("views/search/search-box.css"),className:"searchBox g-z-index-overlay",events:{"click .searchBox__searchCancel":d,"click .searchBox__searchEmpty":m,"keyup .searchBox__searchInput":g,"focus .searchBox__searchInput":p},element2selector:{input:".searchBox__searchInput"},formulatingSearch:!1,states:{open:"open"},setup:function(){this.listenTo(i,"layout:change",this.rerender),this.listenTo(i,"suggestion-item:click",y)},dispose:function(){this.stopListening()},renderDecorate:function(){var e=w();this.toggleState("open",e),e||v.call(this),b.call(this)},startSearch:function(){this.toggleState("open",!0),this.getElement("input")[0].focus();if(!this.formulatingSearch){var e=h.call(this);a.trackClickV1({click_name:"search_formulation_init",click_attributes:{q:e}}),this.formulatingSearch=!0}},onSubmit:function(){var e=this.getElement("input")[0],t=e.value.trim(),n=r.get("router"),i;S.call(this);if(!t.length)return;a.trackClickV1({click_name:"search_formulation_end",click_attributes:{q:t}}),this.formulatingSearch=!1,e.blur(),i=n.getLayoutInfo().args.category||"",n.navigateToRoute("search",[i,t],{trigger:!0})},onReset:function(){this.getElement("input")[0].focus()},getTemplateData:function(e){var t=l.parse(window.location.href),n=t.query.q;e.needsCancel=!w(),e.q=n}})}),
define("lib/views/mixins/overlay",["require","exports","module","$","underscore","lib/event-bus","lib/helpers/client-environment-helper","lib/css-transitions","lib/scroll-bouncing-fix","lib/mixin"],function(e,t,n){function c(){this.close()}var r=e("$"),i=e("underscore"),s=e("lib/event-bus"),o=e("lib/helpers/client-environment-helper").device,u=e("lib/css-transitions"),a=e("lib/scroll-bouncing-fix"),f=e("lib/mixin"),l=n.exports=new f({applyTo:function(e){e.defaults=i.defaults(e.defaults||{},{Subview:null,subviewArgs:null,parentEl:null})},defaults:{transitions:null,onOpen:r.noop,onSyncOpen:r.noop,onClose:r.noop},after:{renderDecorate:function(){o.iOS&&a.call(this),this.$el.addClass("g-z-index-overlay"),s.on("layout:change",c,this)}},before:{dispose:function(){s.off("layout:change",c)}},open:function(){this.isOpened=!0,this.rerender(),this.transitions&&this.transitions.in&&u[this.transitions.in](this.el,this.onOpen.bind(this)),(i.result(this,"parentEl")||document.body).appendChild(this.el),this.createContentView(),(!this.transitions||!this.transitions.in)&&this.onOpen(),this.onSyncOpen(),this.trigger("open")},close:function(){if(!this.isOpened)return;this.isOpened=!1,this.transitions&&this.transitions.out?u[this.transitions.out](this.el,this._onClose.bind(this)):this._onClose(),this.trigger("close")},_onClose:function(){this.detach(),this.onClose()},createContentView:function(){if(this.getContentView()||!this.options.Subview)return;var e=this.options,t=e.Subview,n=i.result(e,"subviewArgs"),r;r=this.addSubview(new t(i.extend({resource_id:e.resource_id,resource_type:e.resource_type},n)),"contentView"),this.el.appendChild(r.render().el)},getContentView:function(){return this.subviews.contentView},detach:function(){var e=i.result(this,"parentEl")||document.body;r(e).children(this.el)[0]&&e.removeChild(this.el)}})}),
define("lib/views/fullscreen-overlay.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".fullscreen-overlay{position:fixed;width:100%;left:0;top:0;bottom:0}.fullscreen-overlay-dark{background:rgba(0,0,0,.6);color:#fff}.fullscreen-overlay-show-header{margin-top:44px}.fullscreen-overlay__closeButton{position:absolute;top:14px;right:20px;border:0;overflow:hidden;opacity:.5;background-color:transparent;font-size:120%}")),data=null}),
define("lib/views/fullscreen-overlay.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function f(e,t){var r="";return r+=' <button class="fullscreen-overlay__closeButton sc-text-verylight" title="'+u(n.$t.call(e,"Close",{hash:{},data:t}))+'" >'+u(n.$t.call(e,"Close",{hash:{},data:t}))+"</button>\n",r}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,e.helpers),i=i||{};var s="",o,u=this.escapeExpression,a=this;o=n["if"].call(t,t&&t.closeWithButton,{hash:{},inverse:a.noop,fn:a.program(1,f,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}),
define("views/banner/launch-app.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".launchApp{display:flex;flex-flow:column;height:200px;justify-content:space-around;align-items:center;margin-top:135px}")),data=null}),
define("views/banner/launch-app.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+='<div> <a class="launchApp__get-app g-button g-button-large g-button-cta g-touch-padding" href="'+a((o=t&&t.storeLink,typeof o===u?o.apply(t):o))+'"> '+a(n.$t.call(t,"Download SoundCloud",{hash:{},data:i}))+' </a>\n</div>\n<div> <a class="launchApp__open-in-app g-button g-button-large g-button-cta g-touch-padding" href="'+a((o=t&&t.deepLink,typeof o===u?o.apply(t):o))+'"> '+a(n.$t.call(t,"I already have the app",{hash:{},data:i}))+" </a>\n</div>\n",s})}),
define("views/play-controls/now-playing",["require","exports","module","models/sound","lib/view","shared/config/route-builders","views/play-controls/now-playing.tmpl","views/play-controls/now-playing.css"],function(e,t,n){var r=e("models/sound"),i=e("lib/view"),s=e("shared/config/route-builders"),o=n.exports=i.extend({template:e("views/play-controls/now-playing.tmpl"),css:e("views/play-controls/now-playing.css"),ModelClass:r,className:"nowPlaying",tagName:"a",requiredAttributes:["user","title","artwork_url","permalink","permalink_url"],renderDecorate:function(){this.$el.attr("href",s.listen(this.model))}})}),
define("lib/mixins/usage-counting",["require","exports","module","lib/mixin"],function(e,t,n){var r=e("lib/mixin"),i=n.exports=new r({onCleanup:null,onIncrement:null,onDecrement:null,after:{initialize:function(e){this._counts={},this._needsGC=!1,e=e||{},this._autoCleanup=!!e.autoCleanup,this.onCleanup=e.onCleanup,this.onIncrement=e.onIncrement,this.onDecrement=e.onDecrement},reset:function(){this._counts={},this._needsGC=!1},set:function(e,t){this._counts[e]||(this._counts[e]=1,this.onIncrement&&this.onIncrement(t,e,1))},unset:function(e){delete this._counts[e]}},before:{reset:function(){this.onCleanup&&this.forEach(this.onCleanup)}},countFor:function(e){return this._counts[e]||0},increment:function(e,t){return this.has(e)&&(t=typeof t=="number"?t:1,t>0?(this._counts[e]=(this._counts[e]||0)+t,this.onIncrement&&this.onIncrement(this.get(e),e,t)):t<0&&this.decrement(e,-t)),this},decrement:function(e,t){return this.has(e)&&(t=typeof t=="number"?t:1,t>0?(this._counts[e]=(this._counts[e]||1)-t,this.onDecrement&&this.onDecrement(this.get(e),e,t),this._counts[e]<=0&&(this._needsGC=!0,this._autoCleanup&&this.cleanup())):t<0&&this.increment(e,-t)),this},cleanup:function(){var e,t=this.onCleanup;if(this._needsGC){for(e in this._counts)this._counts.hasOwnProperty(e)&&this._counts[e]===0&&(t&&t(this.get(e),e),this.unset(e));this._needsGC=!1}},changeKey:function(e,t){if(e===t)return;var n=this.get(e),r=this.countFor(e);this.unset(e),this.set(t,n),this.increment(t,r-1)}})}),
define("vendor/console-logger/console-logger",["require","exports","module"],function(e,t,n){"use strict";function o(){function C(e,t){if(!n)return;for(var r=arguments.length,s=Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];typeof t=="string"?t=" "+t:(s.unshift(t),t="");var a=[k()+" | "+x+(w?"%c":"")+t].concat(T,s);o?S.push({level:e,logArgs:a})>b&&S.shift():i[e].apply(i,a)}function k(){var e=new Date,t=E===null?0:e-E,n=w?"%c":"";return E=+e,n+u(e)+(n+" ("+n)+a("+"+t+"ms"," ",8)+(n+")")}function L(e){return e.enable=function(){n=!0},e.disable=function(){n=!1},e.bufferOn=function(){o=!0},e.bufferOff=function(){o=!1,S.length=0},e.flush=d()?function(){S.forEach(function(e){var t=e.level,n=e.logArgs;i[t].apply(i,n)}),S.length=0}:function(){},e}var e=v.apply(undefined,arguments),t=e.enabled,n=t===undefined?!0:t,s=e.buffer,o=s===undefined?!1:s,f=e.label,l=f===undefined?"":f,m=e.plainOutput,g=m===undefined?!1:m,y=e.bufferSize,b=y===undefined?1e3:y;if(!d())return L(r.reduce(function(e,t){return e[t]=e},function(){}));i.CL||(i.CL={_cssCounter:0});var w=!g&&p(),E=null,S=[],x=c(l,w),T=w?["color: green","color: grey","color: blue","color: grey",h(l),""]:[],N=i.CL[l]=L(r.reduce(function(e,t){return e[t]=C.bind(null,t),e},C.bind(null,"log")));return N}function u(e){return f(e.getHours())+":"+f(e.getMinutes())+":"+f(e.getSeconds())+"."+a(e.getMilliseconds(),"0",3)}function a(e,t,n){return l(t,n-(""+e).length)+e}function f(e){return a(e,"0",2)}function l(e,t){return t>0?(new Array(t+1)).join(e):""}function c(e,t){return(t?"%c":"")+(e?e:"")}function p(){if(typeof navigator=="undefined")return!1;var e=navigator.userAgent;return/chrome|firefox|opr/i.test(e)&&!/msie|edge/i.test(e)}function d(){return i&&r.every(function(e){return typeof i[e]=="function"})}function v(){var e=arguments.length<=0||arguments[0]===undefined?!0:arguments[0],t=arguments.length<=1||arguments[1]===undefined?"":arguments[1];return typeof e=="object"&&e||{enabled:e,label:t}}n.exports=o;var r=["log","info","warn","error"],i=typeof console!="undefined"?console:null,s=["color:#fff","border-radius:3px","padding:2px 4px","font-family:sans-serif","text-transform:uppercase","font-size:9px"].join(";")+";",h=function(){var e=["#51613C","#447848","#486E5F","#787444","#6E664E"];return function(t){return t?"background:"+e[i.CL._cssCounter++%e.length]+";"+s:""}}()}),
define("views/app-buttons/app-buttons",["require","exports","module","lib/helpers/client-environment-helper","lib/lingua","lib/native-links","lib/tracking/tracking-core","lib/views/mixins/update-on-layout-change","lib/view","views/app-buttons/app-buttons.tmpl","views/app-buttons/app-buttons.css"],function(e,t,n){function d(){o.action("submit","download_app_badge:download")}function v(){return r.iOS?f:r.android?l:r.blackberry?c:r.amazon?h:""}var r=e("lib/helpers/client-environment-helper").device,i=e("lib/lingua"),s=e("lib/native-links"),o=e("lib/tracking/tracking-core"),u=e("lib/views/mixins/update-on-layout-change"),a=e("lib/view"),f=i.t("Download on the App Store",null,{comment:"Download button help text when website is viewed on ios"}),l=i.t("Get it on Google Play",null,{comment:"Download button help text when website is viewed on android"}),c=i.t("Get it at BlackBerry World",null,{comment:"Download button help text when website is viewed on blackberry"}),h=i.t("Available at Amazon",null,{comment:"Download button help text when website is viewed on amazon device"}),p=n.exports=a.extend(u,{className:"appButtons",template:e("views/app-buttons/app-buttons.tmpl"),css:e("views/app-buttons/app-buttons.css"),events:{click:d},setup:function(){this.el.className+=" "+r.brand},getTemplateData:function(e,t){return e.url=s.getUpsellLink(t),e.a11yText=v.call(this),e}})}),
define("views/locale-selector/locale-selector",["require","exports","module","lib/event-bus","lib/views/fullscreen-overlay","lib/lingua","views/locale-selector/locale-selector-content","lib/view"],function(e,t,n){function f(){this.localeSelectorOverlay.open()}function l(){this.localeSelectorOverlay.close()}function c(){r.trigger("locale-selector:toggle")}var r=e("lib/event-bus"),i=e("lib/views/fullscreen-overlay"),s=e("lib/lingua"),o=e("views/locale-selector/locale-selector-content"),u=e("lib/view"),a=n.exports=u.extend({tagName:"a",className:"localeSelector",template:function(){return s.t("Language:")+' <span class="sc-text">'+s.getCurrentLanguage()+"</span>"},events:{click:f},setup:function(){this.listenTo(r,"locale-selector:cancel",l),this.localeSelectorOverlay=new i({Subview:o,showHeader:!0,animate:!0}),this.localeSelectorOverlay.onClose=c},dipose:function(){this.stopListening(r,"locale-selector:cancel",l)}})}),
define("vendor/experiments/experiments",["require","exports","module"],function(e,t,n){(function(){function r(t){if(!e._localStorageEnabled)return;localStorage.setItem(e._localStorageKey,t)}var e,t="assignments";e={_initialized:!1,_assignments:null,_localStorageKey:null,_localStorageEnabled:null,_availableLayers:null,_assignmentServiceUrl:null,_version:null,_anonymousId:null,initialize:function(n){return n=n||{},e._availableLayers=n.availableLayers||[],e._localStorageKey=n.localStorageKey||t,e._assignmentServiceUrl=n.assignmentServiceUrl+n.anonymousUserId,e._version=n.version,e._anonymousId=n.anonymousUserId,e._localStorageEnabled=n.hasOwnProperty("localStorageEnabled")?n.localStorageEnabled:!0,e._assignments=e.loadAssignments(),e._initialized=!0,e},reset:function(){e._availableLayers=[],e._localStorageKey=t,e._assignmentServiceUrl="",e._version=null,e._anonymousId=null,e._assignments=null},get:function(t,n){if(!e._initialized)return!1;var r=e.getLayers()||{};return r.hasOwnProperty(t)&&r[t].experimentName===n?r[t].variantName:!1},set:function(t,n,r){var i=e.getLayers();i[t]={experimentName:n,variantName:r}},fetchAssignments:function(){var t=$.Deferred(),n=e.getAssignments(),r=e._availableLayers,i=!!r.length,s={layers:r.join(",")};return e.isUpToDate(n,e._version)?t.resolve(e.formatAssignments()):i?(e.clearAssignments(),$.ajax({url:e._assignmentServiceUrl,type:"GET",dataType:"json",data:s,timeout:5e3}).done(function(n){e.buildAssignments(n),e.storeAssignments(),t.resolve(e.formatAssignments())}).fail(t.reject)):(e.clearAssignments(),t.resolve(e.formatAssignments())),t.promise()},isUpToDate:function(e,t){return e&&e._version===t},loadAssignments:function(){var t;try{t=JSON.parse(localStorage.getItem(e._localStorageKey))}catch(n){t={}}return t},buildAssignments:function(t){e._assignments={_version:e._version,layers:e.formatLayers(t)}},storeAssignments:function(){var t=e.getAssignments()||{};r(JSON.stringify(t))},clearAssignments:function(){e._assignments={},r(JSON.stringify({}))},getAssignments:function(){return e._assignments},getLayers:function(){return e.getAssignments().layers},formatAssignments:function(){var t={},n=e.getLayers(),r;return n&&(r=Object.keys(n),r.forEach(function(e){t[e]=n[e].variantId})),t},formatLayers:function(e){var t={};return e.forEach(function(e){t[e.layer_name]={experimentName:e.experiment_name,variantName:e.variant_name,variantId:e.variant_id}}),t},serialize:function(){var t=e.getLayers(),n,r,i=[];for(r in t)n=t[r],n&&n.experimentName&&n.variantName&&i.push("["+r+"] "+n.experimentName+": "+n.variantName);return i.join(", ")},setExperimentsFromQueryParams:function(t){var n,r,i,s,o;for(o in t)n=/^exp\.([^.]+)\.([^.]+)$/.exec(o),s=t[o],n&&(r=n[1],i=n[2]),r&&i&&s&&e.set(r,i,s)}},typeof n!="undefined"&&n.exports?n.exports=e:(window.SC=window.SC||{},window.SC.Experiments=e)})()}),
define("lib/helpers/name-helper",["require","exports","module","vendor/handlebars-runtime","lib/helpers/lang-helper"],function(e,t,n){var r=e("vendor/handlebars-runtime"),i=e("lib/helpers/lang-helper"),s=n.exports={get:function(e,t){var n=r.Utils.escapeExpression(e.username||e.title||e.name);return t===!0&&(n=i.possessive(n)),n}}}),
define("views/header/search-button.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".searchButton,.searchButton:active{top:0;right:0;position:absolute;overflow:hidden;height:44px;width:50px;text-indent:50px}.searchButton::after{position:absolute;content:'';top:0;right:0;background:#fff url(https://mobi.sndcdn.com/assets/images/ldpi/search/search-5738d5f4.png) 0 0 no-repeat;background-size:50px 44px;width:50px;height:44px;transition:background-color .1s linear}.searchButton.initiate::after{background-color:#333}.searchButton:active::after{background-color:#f50}")),data=null}),
define("lib/views/mixins/form",["require","exports","module","$","underscore","lib/mixin"],function(e,t,n){var r=e("$"),i=e("underscore"),s=e("lib/mixin"),o=n.exports=new s({defaults:{tagName:"form",formSelector:null,formId:null,submit:function(e){e.preventDefault(),this.onSubmit(this.getFormElement().elements)},reset:function(){this.onReset()},getFormElement:function(){return this.formSelector?this.el.querySelector(this.formSelector):this.el},onSubmit:r.noop,onReset:r.noop},formId:null,applyTo:function(e){var t={},n=this.formSelector;t[["reset",n].join(" ").trim()]="reset",t[["submit",n].join(" ").trim()]="submit",e.events=i.defaults(t,e.events)},before:{setup:function(){this.formId=i.uniqueId("form-")}},around:{getTemplateData:function(e,t){return t=e(t)||t,t.form_id=this.formId,t}}})}),
define("views/search/suggestions-overlay",["require","exports","module","lib/event-bus","lib/views/fullscreen-overlay"],function(e,t,n){function o(){this.close()}var r=e("lib/event-bus"),i=e("lib/views/fullscreen-overlay"),s=n.exports=i.extend({setup:function(){i.prototype.setup.apply(this,arguments),this.listenTo(r,"suggestion-item:click",o)},dispose:function(){i.prototype.dispose.apply(this,arguments),this.stopListening(r,"suggestion-item:click",o)},onClose:function(){this.dispose()}})}),
define("views/search/suggestions-list",["require","exports","module","underscore","lib/views/list","views/search/query-suggestion","collections/search-queries","views/search/suggestions-list-empty.tmpl","views/search/suggestions-list.css","views/search/search.css"],function(e,t,n){var r=e("underscore"),i=e("lib/views/list"),s=e("views/search/query-suggestion"),o=e("collections/search-queries"),u=n.exports=i.extend({emptyTemplate:e("views/search/suggestions-list-empty.tmpl"),css:[e("views/search/suggestions-list.css"),e("views/search/search.css")],defaults:{query:null},className:"suggestionsList",itemClassName:"suggestionsList__item",Subview:s,setup:function(e){this.collection=new o(null,{query:e.query})},getSubviewArgs:function(e){return r.extend(i.prototype.getSubviewArgs.apply(this,arguments),{queryUrn:this.collection.queryUrn,queryPosition:this.collection.indexOf(e)})}})}),
define("views/search/search-box.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="";return r+='\n<button class="searchBox__searchCancel cancel g-font-14 g-button-nostyle g-touch-padding" type="button">'+u(n.$t.call(e,"Cancel",{hash:{_comment:"Cancel search button text"},data:t}))+"</button>\n",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";o=n["if"].call(t,t&&t.needsCancel,{hash:{},inverse:a.noop,fn:a.program(1,l,i),data:i});if(o||o===0)s+=o;return s+='\n<div class="searchBox__searchInputWrap"> <input class="searchBox__searchInput" placeholder="'+u(n.$t.call(t,"Search SoundCloud",{hash:{},data:i}))+'" type="search" name="q" autocomplete="off" autocorrect="off" autocapitalize="off" aria-label="'+u((o=t&&t.label,typeof o===f?o.apply(t):o))+'" value="'+u((o=t&&t.q,typeof o===f?o.apply(t):o))+'"> <button class="g-button-nostyle searchBox__searchEmpty g-touch-padding" type="reset">&#215;</button>\n</div>\n',s})}),
define("views/search/search-box.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".searchBox{position:absolute;top:0;left:0;width:100%;height:44px;background:#fff;z-index:-1;opacity:0;-webkit-transition:opacity .25s,z-index .3s;transition:opacity .25s,z-index .3s}.searchBox.open{z-index:1;opacity:1;-webkit-transition:opacity .25s,z-index .01s;transition:opacity .25s,z-index .01s}.searchBox__searchInputWrap{position:relative;overflow:hidden;padding-right:8px}.searchBox__searchCancel+.searchBox__searchInputWrap{padding-right:4px}.searchBox__searchInput{position:relative;display:block;width:100%;height:36px;margin:4px 0 0 4px;padding-left:40px;border:0;border-radius:2px;color:#333;background:#e5e5e5}.searchBox__searchInput:focus{outline:0}.searchBox__searchInput::-moz-placeholder,.searchBox__searchInput::-webkit-placeholder,.searchBox__searchInput:-ms-placeholder{color:#999}.searchBox__searchInputWrap::after{content:'';display:block;position:absolute;left:12px;top:12px;width:20px;height:20px;background:url(https://mobi.sndcdn.com/assets/images/ldpi/search/search_input-bd02f9a1.png) 0 0 no-repeat;opacity:.4;background-size:20px 20px}.searchBox__searchEmpty{color:#999;display:none;position:absolute;right:10px;top:3px;height:36px;line-height:36px;width:20px;font-size:20px}.searchBox.filled .searchBox__searchEmpty{display:block}.searchBox__searchCancel{float:right;margin:13px 13px 0;color:#999}")),data=null}),
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("views/play-controls/now-playing.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=this.escapeExpression,a="function";return s+=u(n.$image.call(t,t,{hash:{size:40,"class":"nowPlaying__artwork"},data:i}))+'\n<span class="nowPlaying__username sc-truncate">'+u((o=(o=t&&t.user,o==null||o===!1?o:o.username),typeof o===a?o.apply(t):o))+'</span>\n<span class="nowPlaying__title sc-truncate">'+u((o=t&&t.title,typeof o===a?o.apply(t):o))+"</span>\n",s})}),
define("views/play-controls/now-playing.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".nowPlaying{display:block}.nowPlaying__artwork{float:left;margin:0 10px 0 0}.nowPlaying__username,.nowPlaying__title{display:block}.nowPlaying__username{font-size:12px;color:#999;line-height:19px}.nowPlaying__title{font-size:14px;color:#fff;line-height:19px}")),data=null}),
define("views/app-buttons/app-buttons.tmpl",["vendor/handlebars-runtime"],function(){return require("vendor/handlebars-runtime").template(function(e,t,n,r,i){function l(e,t){var r="",i;return r+=' <a class="appButtons__link" href="'+a((i=e&&e.url,typeof i===u?i.apply(e):i))+'" target="_blank"> '+a(n.$a11y.call(e,{hash:{screenreader:e&&e.a11yText},data:t}))+" </a>\n",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;o=n["if"].call(t,t&&t.url,{hash:{},inverse:f.noop,fn:f.program(1,l,i),data:i});if(o||o===0)s+=o;return s+="\n",s})}),
define("views/app-buttons/app-buttons.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".appButtons__link{display:block;height:57px;overflow:hidden;margin:0 auto}.appButtons.android .appButtons__link{background:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/en/google-a0cfe29e.png) 0 0 no-repeat;background-size:165px 57px;width:165px}.appButtons.iOS .appButtons__link{background:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/en/apple-c5f7f746.png) 0 0 no-repeat;background-size:193px 57px;width:193px}.appButtons.blackberry .appButtons__link{background:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/en/blackberry-a0cfe29e.png) 0 0 no-repeat;background-size:164px 57px;width:164px}.appButtons.amazon .appButtons__link{background:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/en/amazon-a0cfe29e.png) 0 0 no-repeat;background-size:167px 57px;width:167px}.android>.appButtons__link:lang(ar){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ar/google-dd635f2d.png)}.iOS>.appButtons__link:lang(ar){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ar/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(ar){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ar/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(ar){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ar/amazon-dd635f2d.png)}.android>.appButtons__link:lang(de){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/de/google-dd635f2d.png)}.iOS>.appButtons__link:lang(de){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/de/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(de){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/de/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(de){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/de/amazon-dd635f2d.png)}.android>.appButtons__link:lang(es){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/es/google-dd635f2d.png)}.iOS>.appButtons__link:lang(es){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/es/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(es){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/es/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(es){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/es/amazon-dd635f2d.png)}.android>.appButtons__link:lang(fr){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/fr/google-dd635f2d.png)}.iOS>.appButtons__link:lang(fr){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/fr/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(fr){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/fr/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(fr){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/fr/amazon-dd635f2d.png)}.android>.appButtons__link:lang(id){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/id/google-dd635f2d.png)}.iOS>.appButtons__link:lang(id){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/id/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(id){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/id/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(id){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/id/amazon-dd635f2d.png)}.android>.appButtons__link:lang(it){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/it/google-dd635f2d.png)}.iOS>.appButtons__link:lang(it){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/it/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(it){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/it/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(it){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/it/amazon-dd635f2d.png)}.android>.appButtons__link:lang(ja){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ja/google-dd635f2d.png)}.iOS>.appButtons__link:lang(ja){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ja/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(ja){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ja/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(ja){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ja/amazon-dd635f2d.png)}.android>.appButtons__link:lang(ko){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ko/google-dd635f2d.png)}.iOS>.appButtons__link:lang(ko){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ko/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(ko){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ko/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(ko){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ko/amazon-dd635f2d.png)}.android>.appButtons__link:lang(nl){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/nl/google-dd635f2d.png)}.iOS>.appButtons__link:lang(nl){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/nl/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(nl){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/nl/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(nl){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/nl/amazon-dd635f2d.png)}.android>.appButtons__link:lang(pt_BR){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/pt_BR/google-a0cfe29e.png)}.iOS>.appButtons__link:lang(pt_BR){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/pt_BR/apple-a0cfe29e.png)}.blackberry>.appButtons__link:lang(pt_BR){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/pt_BR/blackberry-a0cfe29e.png)}.amazon>.appButtons__link:lang(pt_BR){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/pt_BR/amazon-a0cfe29e.png)}.android>.appButtons__link:lang(ru){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ru/google-dd635f2d.png)}.iOS>.appButtons__link:lang(ru){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ru/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(ru){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ru/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(ru){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/ru/amazon-dd635f2d.png)}.android>.appButtons__link:lang(th){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/th/google-dd635f2d.png)}.iOS>.appButtons__link:lang(th){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/th/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(th){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/th/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(th){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/th/amazon-dd635f2d.png)}.android>.appButtons__link:lang(zh){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/zh/google-dd635f2d.png)}.iOS>.appButtons__link:lang(zh){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/zh/apple-dd635f2d.png)}.blackberry>.appButtons__link:lang(zh){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/zh/blackberry-dd635f2d.png)}.amazon>.appButtons__link:lang(zh){background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/appstores/zh/amazon-dd635f2d.png)}")),data=null}),
define("views/locale-selector/locale-selector-content",["require","exports","module","config","lib/event-bus","lib/view","lib/i18n-locale-switcher","views/locale-selector/locale-selector-content.css","views/locale-selector/locale-selector-content.tmpl"],function(e,t,n){function a(){i.trigger("locale-selector:cancel")}var r=e("config"),i=e("lib/event-bus"),s=e("lib/view"),o=e("lib/i18n-locale-switcher"),u=n.exports=s.extend({className:"localeSelectorContent",css:e("views/locale-selector/locale-selector-content.css"),template:e("views/locale-selector/locale-selector-content.tmpl"),events:{"click .localeSelector__cancel":a},renderDecorate:function(){i.trigger("locale-selector:toggle"),this.whenInserted().done(function(){o.init({selector:".localeSelectorContent__wrapper",host:r.get("v2_host")})})}})}),
define("lib/helpers/lang-helper",["require","exports","module"],function(e,t,n){var r=n.exports={plural:function(e,t,n){return n=typeof n=="string"?n:t+"s",e===1?t:n},possessive:function(e,t){return e+"’s"+(t?" "+t:"")}}}),
define("lib/views/list",["require","exports","module","$","underscore","vendor/handlebars-runtime","lib/helpers/map-to-html-attrs-helper","lib/view"],function(e,t,n){function f(){var e=i.pluck(this.subviews,"model");return this.collection.find(function(t){return e.indexOf(this.getSubviewModel(t))===-1},this)}function l(){return this.getDesiredNumItems()}function c(){var e=l.call(this),t,n;if(!e)return;t=this.getLength();while(t-->e)n=this.getListItemView(this.collection.at(e)),n&&(this.removeListItemFromDOM(n,{index:e}),this.removeSubview(n))}function h(){return this.hasData()&&this.collection&&this.collection.length===0&&this.collection.isFullyPopulated()}function p(e){return function(t){return t instanceof e}}var r=e("$"),i=e("underscore"),s=e("vendor/handlebars-runtime"),o=e("lib/helpers/map-to-html-attrs-helper"),u=e("lib/view"),a=n.exports=u.extend({emptyTemplate:null,defaults:{minDisplay:0,maxDisplay:3},Subview:null,subviewArgs:{},listTagName:"ul",listClassName:"sc-list-nostyle sc-clearfix",itemTagName:"li",itemClassName:"",template:function(){return""},_isShowingEmpty:!1,_listElement:null,_desiredLength:null,_setup:function(e){u.prototype._setup.call(this,e),this._desiredLength=Math.max(e.minDisplay,e.maxDisplay)||Infinity},renderDecorate:function(){this.createListElement()&&this.syncItems()},createListElement:function(){var e=this.getListContainer(),t;return e.length&&!this._listElement&&(t=window.document.createElement(this.listTagName),this.listClassName&&(t.className=this.listClassName),e.append(t),this.resetElementCache(),this._listElement=r(t)),this._listElement},syncItems:function(){var e,t=this.getModelsToRender(),n=this.getLength(),r=Math.min(l.call(this),t.length);if(n<r)for(e=n;e<r;++e)this.createAndInsertListItemView(t[e],-1);else n>r&&c.call(this)},getDesiredNumItems:function(){return this._desiredLength},getLength:function(){return this.getListItemViews().length},setDisplayedItems:function(e){e=Math.min(e,this.options.maxDisplay||Infinity),e!==this._desiredLength&&(this._desiredLength=e,this.syncItems())},_teardown:function(){this._listElement&&(this._listElement.remove(),this._listElement=null),u.prototype._teardown.call(this)},getModelsToRender:function(){return this.collection.models},createAndInsertListItemView:function(e,t){var n=this.addListItemSubview(e);n.render(),this.addListItemToDOM(n,i.isNumber(t)?t:-1),c.call(this)},getTemplate:function(e){var t=this.emptyTemplate;return t&&h.call(this)?t:u.prototype.getTemplate.apply(this,arguments)},getListContainer:function(){return this.$el},getListElement:function(){return this._listElement||r()},getListItemView:function(e){var t=this.getSubviewModel(e);return i.find(this.subviews,function(e){return e.model===t})},getListItemViews:function(){return this.subviews.filter(p(this.Subview))},getSubviewArgs:function(e){return i.defaults({resource_id:e.resource_id,resource_type:e.resource_type},this.subviewArgs)},getSubviewModel:i.identity,getListItemAttributesData:function(e){return e.model?e.model.toJSON():{}},getListItemAttributes:function(){return{}},getListItemAttributesString:function(e){var t=this.getListItemAttributes(e);return new s.SafeString(o(t))},onAdd:function(e,t,n){if(this.disposed)return;var r=t.indexOf(e),i=l.call(this),s=r>=0&&r<i||r<0&&this.collection.length<=i;s&&this.createAndInsertListItemView(e,r)},onRemove:function(e,t,n){var r=this.getListItemView(e);r&&(this.removeSubview(r),this.removeListItemFromDOM(r,n.index))},onCollectionChange:function(e,t){var n=h.call(this);u.prototype.onCollectionChange.apply(this,arguments),this._isShowingEmpty!==n&&this.rerender(),this._isShowingEmpty=n},addListItemSubview:function(e){var t=this.getSubviewArgs(this.getSubviewModel(e));return this.addSubview(new this.Subview(t))},createSubviewWrapper:function(e){var t=this.getListItemAttributesString(this.getListItemAttributesData(e)),n;return t=t.toString().length?" "+t:"",n=r("<"+this.itemTagName+' class="'+this.itemClassName+'"'+t+">"),n},getSubviewWrapper:function(e){return e.$el.parent()},addListItemToDOM:function(e,t){var n=this.getListElement(),r=this.getSubviewWrapper(e),i,s;r.length||(r=this.createSubviewWrapper(e),r.append(e.el)),t===-1||t>=this.getLength()-1||t===undefined?n.append(r):t===0?n.prepend(r):(s=this.getListItemView(this.collection.at(t-1)),s&&(i=this.getSubviewWrapper(s),r.insertAfter(i))),this.resetElementCache()},removeListItemFromDOM:function(e){var t,n=this.getSubviewWrapper(e),r=this.options.maxDisplay;t=function(){var t,i,s,o=-1;n.detach(),e._dispose(),s=!this.disposed&&r&&r<=this.collection.length&&this.getLength()<r,s&&(i=f.call(this),t=this.addListItemSubview(i),t.render(),this.addListItemToDOM(t,o))}.bind(this),t(),this.resetElementCache()},appendDOMElement:function(e){var t=this.getListContainer();t&&t.append(e),this.resetElementCache()},getCollectionData:function(){return[]}})}),
define("views/search/query-suggestion",["require","exports","module","lib/event-bus","models/query-suggestion","lib/helpers/search-helper","vendor/usertext/usertext","lib/view","views/search/query-suggestion.css","views/search/query-suggestion.tmpl"],function(e,t,n){function f(){var e=this.options;r.trigger("suggestion-item:click",{queryUrn:e.queryUrn,queryPosition:e.queryPosition})}var r=e("lib/event-bus"),i=e("models/query-suggestion"),s=e("lib/helpers/search-helper"),o=e("vendor/usertext/usertext"),u=e("lib/view"),a=n.exports=u.extend({css:e("views/search/query-suggestion.css"),template:e("views/search/query-suggestion.tmpl"),className:"querySuggestion sc-media g-font-16",ModelClass:i,requiredAttributes:["output"],events:{click:f},defaults:{queryUrn:null,queryPosition:null},getTemplateData:function(e){var t=s.highlightText(e.output,e.highlights);return e.output=o(t,{paragraphs:!1,links:!1,userlinks:!1,whitelist:["b"]}),e}})}),
define("collections/search-queries",["require","exports","module","lib/collection","models/query-suggestion"],function(e,t,n){var r=e("lib/collection"),i=e("models/query-suggestion"),s=n.exports=r.extend({model:i,queryUrn:null,defaults:{limit:10,query:null},baseUrl:function(){return this.getEndpointUrl("searchQueries",null,{q:this.options.query,limit:this.options.limit})},parse:function(e){return this.queryUrn=e.query_urn,r.prototype.parse.call(this,e)}},{hashFn:function(e,t){return t.query}})}),
define("views/search/suggestions-list-empty.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+='<h1 class="search__noresult search__banner g-font-20">'+o(n.$t.call(t,"Sorry, nothing matches your search.",{hash:{},data:i}))+"</h1>\n",s})}),
define("views/search/suggestions-list.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".suggestionsList{height:100%;color:#333;background-color:#fff;border-top:1px solid #f7f7f7}")),data=null}),
define("views/search/search.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".search{background:#fff}.search__banner{padding-top:140px;color:#666;text-align:center;margin:0 40px;background-position:50% 60px;background-repeat:no-repeat;background-size:48px 48px}.search__blank{background-image:url(https://mobi.sndcdn.com/assets/images/ldpi/search/search_blank-bd02f9a1.png);padding-bottom:100%}")),data=null}),
define("lib/i18n-locale-switcher",["require","exports","module"],function(e,t,n){function s(e){var t=e.data[0],n=e.data[1];if(!/https?:\/\/(.+\.|)soundcloud\.(com|dev\:[0-9]{4})/.test(e.origin))return!1;switch(t){case"i18n-locale:rendered":return o(n);case"i18n-locale:set-locale-always":return i.onLocaleChange()}}function o(e){r.style.width=e.width,r.style.height=e.height}var r,i=n.exports={init:function(e){if(!e||!e.selector||!e.host)throw new Error("i18n locale iframe: Missing parameter(s)");r=window.document.createElement("iframe"),r.src=e.host+"/i18n-locale-switcher.html",r.frameBorder=0,r.style.border="none",r.style.backgroundColor="transparent",window.addEventListener("message",s),window.document.querySelector(e.selector).appendChild(r)},onLocaleChange:function(){window.location.reload()}}}),
define("views/locale-selector/locale-selector-content.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".localeSelectorContent{background:#fff;height:100%;box-shadow:inset 0 0 5px -2px #000;position:relative}.localeSelectorContent__wrapper{padding:25px 25px 15px;height:96%}.localeSelectorContent__title{text-transform:uppercase;font-size:12px;color:#999;padding:0 0 10px 15px;border-bottom:1px solid #e5e5e5}.localeSelector__cancel{position:absolute;top:-35px;left:2px;color:#b3b3b3}")),data=null}),
define("views/locale-selector/locale-selector-content.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+='<button class="localeSelector__cancel g-button g-button-nostyle g-touch-padding" tabindex="0" title="'+o(n.$t.call(t,"Cancel",{hash:{},data:i}))+'">'+o(n.$t.call(t,"Cancel",{hash:{},data:i}))+'</button>\n<div class="localeSelectorContent__wrapper g-native-scroll"> <h2 class="localeSelectorContent__title g-modal-title-h1">'+o(n.$t.call(t,"Select your language",{hash:{},data:i}))+"</h2>\n</div> ",s})}),
define("lib/helpers/map-to-html-attrs-helper",["require","exports","module","underscore"],function(e,t,n){var r=e("underscore"),i=n.exports=function(e){var t=[],n,i;return r.each(e,function(e,s){n=s+'="',i=[],r.isObject(e)?r.each(e,function(e,t){i.push(t+":"+e)}):i.push(e),t.push(n+i.join(";")+'"')}),t.join(" ")}}),
define("models/query-suggestion",["require","exports","module","lib/model"],function(e,t,n){var r=e("lib/model"),i=n.exports=r.extend({})}),
define("lib/helpers/search-helper",["require","exports","module","underscore"],function(e,t,n){var r=e("underscore"),i=["q","q[fulltext]","filter.duration","filter.created_at","filter.license","filter.genre","filter.genre_or_tag","filter.place"],s=n.exports={getValidParams:function(e){return r.pick(e,i)},highlightText:function(e,t,n){if(!t||!t.length||t.length===1&&t[0].start===t[0].end)return e;var i=r.extend({start:"<b>",end:"</b>"},n),s=e.split(""),o;for(o=t.length;o--;)s.splice(t[o].end,0,i.end),s.splice(t[o].start,0,i.start);return s.join("")}}}),
define("vendor/usertext/usertext",["require","exports","module"],function(e,t,n){(function(){var e,t,r,i,s,o,u,a,f=/\b((?:https?:\/\/|www\d{0,3}\.|(?:[a-z0-9\-]+\.)+[a-z]{2,4}\/)[^\s'’"]*[^\s`!()\[\]{};:'".,<>?«»“”‘’])/ig,l=/(\b(?:[0-5]?[0-9])(?::[0-5][0-9]){1,2}\b)/g,c=/([a-z0-9._%+\-][email protected][a-z0-9.\-]+\.[a-z]{2,6})/gi,h=/(\s|[^\w]|^)@([\w\-]+)/g,p=/( |^)(#([\w-]+))/gm,d=/\{\{\b((?:https?:\/\/|www\d{0,3}\.|(?:[a-z0-9\-]+\.)+[a-z]{2,4}\/)\S*[^\s`!()\[\]{};:'".,<>?«»“”‘’])\}\}/ig,v=/\{\{(?:mailto:)?([a-z0-9._%+\-][email protected][a-z0-9.\-]+\.[a-z]{2,6})\}\}/gi,m=/\{\{@([\w\-]+)\}\}/gi,g=/^((?:https?:\/\/)?(?:www\.|m\.)?soundcloud\.(?:com|dev))\/?/i,y=/^(?:ht|f)tps?:\/\//i,b=/(?:[ \t]*\r?\n[ \t]*){2,}/,w=/[ \t][ \t]+/g;t={paragraphs:!0,links:!0,externalLinks:!0,internalLinks:!0,userLinks:!0,deepLinks:!1,whitelist:["b","i","em"],internalLinksBaseUrl:"/",isOpeningNewWindow:!1,maxLength:null,truncateExternalLinks:!0,maxExternalLinksLength:50,hashtagLinks:!0},r=function(e){var t,n,r,i,s,o;s=[].slice.call(arguments,1);for(t=0,n=s.length;t<n;++t){i=s[t];for(o in i)i[o]!==r&&(e[o]=i[o])}return e},i=function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},s=function(e){return e.textContent||e.innerText||""},a=function E(e,t){t(e),e=e.firstChild;while(e)E(e,t),e=e.nextSibling},o=function(e,t){if(e.length<t)return e;var n=document.createElement("div"),r=document.createElement("div"),i,s;return i=function(e){if(t>0){var n=e.data.length;t-=n,t<=0&&(e.data=e.substringData(0,e.data.length+t))}else e.data=""},s=function(e,n){var r=e.firstChild,i;if(r)do r.nodeType===3?n(r):r.nodeType===1&&s(r,n);while((r=r.nextSibling)&&t>0);while(r)i=r,r=r.nextSibling,e.removeChild(i)},r.innerHTML=n.innerHTML=e,s(n,i),n.innerHTML+(n.innerHTML===r.innerHTML?"":"&hellip;")},u=function(e,t,n){e=n?e:e.replace(y,"");var r,i,s=/\.[a-z]{2,4}\//,o=e.match(s);return o&&o[0]&&e.length>t?(r=e.search(s)+o[0].length,i=Math.floor((t-r)/2),e.slice(0,r+i)+"&hellip;"+e.slice(-i)):e},e=function(e,n){var s=r({},t,n),E,S,x=s.whitelist&&s.whitelist.slice(),T=document.createElement("div");if(typeof e!="string")return"";s.links?!s.userLinks&&!s.internalLinks&&!s.externalLinks?s.links=!1:x.push("a"):s.userLinks=s.internalLinks=s.externalLinks=!1,f.lastIndex=h.lastIndex=c.lastIndex=0,e=e.replace(/<\/p>/g,"\n\n").replace(/<br\s*\/?>/g,"\n").replace(w," "),x&&x.length?e=e.replace(new RegExp("<(?!\\s*\\/?("+x.join("|")+")\\b)[^>]*>","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)?'<a href="'+t.replace(g,s.internalLinksBaseUrl)+'">'+t.replace(y,"")+"</a>":s.externalLinks?'<a href="'+(y.test(t)?t:"http://"+t)+'" rel="nofollow" target="_blank">'+u(t,s.maxExternalLinksLength)+"</a>":t}).replace(v,'<a href="mailto:$1">$1</a>').replace(m,'@<a href="'+s.internalLinksBaseUrl+'$1"'+(s.isOpeningNewWindow?' target="_blank"':"")+">$1</a>"),s.hashtagLinks&&(e=e.replace(p,'$1<a href="/tags/$3">$2</a>')),s.deepLinks&&(e=e.replace(l,'<a href="#t=$1">$1</a>'))),s.maxLength&&(e=o(e,s.maxLength));if(s.paragraphs){e=e.split(b);for(E=0,S=e.length;E<S;E++)e[E]=i(e[E]),e[E]=e[E].replace(/\r?\n/g,"<br>"),e[E]="<p>"+e[E]+"</p>";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/query-suggestion.css",["require","exports","module","css"],function(e,t,n,r){n.exports=r.stringToStyleElement(r.transform(".querySuggestion{display:block;height:50px}.querySuggestion__result,.querySuggestion__link{height:50px;display:block}.querySuggestion__link{padding:0 16px;color:#333}.querySuggestion__result{line-height:50px;border-bottom:1px solid #d6d6d6;padding:0 0 0 32px;background:url(https://mobi.sndcdn.com/assets/images/ldpi/search/search_input-bd02f9a1.png) 0 14px no-repeat;background-size:18px 18px}.querySuggestion__link:active{background:#f2f2f2}")),data=null}),
define("views/search/query-suggestion.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;s+='<a class="querySuggestion__link '+a((o=t&&t.className,typeof o===u?o.apply(t):o))+'" href="'+a(n.$route.call(t,"search",t&&t.null,t&&t.query,{hash:{},data:i}))+'"> <span class="querySuggestion__result">',o=(o=t&&t.output,typeof o===u?o.apply(t):o);if(o||o===0)s+=o;return s+="</span>\n</a>\n",s})}),
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(),this.pagePermalink=e.permalinkUrl(),y.call(this,e,t)}.bind(this)).then(t.resolve),t},includeFooter:".l-footnote",getPageUrn:function(){return this.pageUrn},getUpsellText:function(){return h},getPagePermalink:function(){return this.pagePermalink}})}),
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),n("buffering:start",E,this),n("buffering:end",S,this)}function m(e){this._internalNavigation||(x.call(this,e,"play"),this._internalNavigation=!0)}function g(e){this._internalNavigation||(x.call(this,e,"pause"),this._internalNavigation=!0)}function y(e){e.sound===this.soundsCollection.last()&&(x.call(this,e,"pause"),x.call(this,e,"finish"))}function b(e){x.call(this,e,"time")}function w(e){x.call(this,e,"seeked")}function E(e){x.call(this,e,"buffering:start")}function S(e){x.call(this,e,"buffering:end")}function x(e,t){e.playlist=this,this.trigger(t,e),u.trigger("audio:"+t,e)}function T(){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 N(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,_playLock:null,_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&&N(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"?T.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){if(this.soundsCollection.length){this._internalNavigation=!1;var t=this.getCurrentSound();t&&t.createAudio()&&(this.playbackOptions=e||{},t.audio.play())}else if(!this.lastFetchTime){var n={};this._playLock=n,this.fetch().done(function(){this._playLock===n&&(this._playLock=null,this.play(e))}.bind(this))}},pause:function(e){this._playLock=null;if(this.soundsCollection&&this.soundsCollection.length){this._internalNavigation=!1;var t=this.getCurrentSound();t&&t.audio&&(this.playbackOptions=e||{},t.audio.pause())}},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||{},'<div class="l-blockedListen"> <div class="l-main"> </div> <div class="l-footnote"> </div>\n</div>\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,"audio:buffering:start audio:buffering:end",v).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+='<div class="blockedTrack__sound"> <div class="blockedTrack__soundInner"> '+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}))+' </div>\n</div>\n<div class="blockedTrack__suggestions"> '+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</div>\n",s})}),
define("lib/views/mixins/audible-control",["require","exports","module","underscore","lib/play-manager","lib/mixin"],function(e,t,n){function u(e,t){var n,i=r.extend(t||{},{audible:e});return this.bubble?n=this.bubble("requestPlayContext",i):n={data:i},n}var r=e("underscore"),i=e("lib/play-manager"),s=e("lib/mixin"),o=n.exports=new s({toggleAudible:function(e,t){this[e.isPlaying()?"pauseAudible":"playAudible"](e,t)},playAudible:function(e,t){i.saveLayout(),i.play(e,this.getPlayContext(e,t))},pauseAudible:function(e,t){i.pause(e,this.getPlayContext(e,t))},getPlayContext:function(e,t){var n=u.call(this,e,t);return n.data},toggleSource:function(e,t){var n=i.getCurrentSound();i.source===e&&i.sourceCursor>-1&&n&&n.isPlaying()?i.pauseCurrent(t):(i.saveLayout(),i.playSource(e,t))}})}),
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){e=e||o.getCurrentSound();if(!e||!e.isPlaying())return!1;var t=this.getQueueSource(),n=t&&t.getSounds();return!!n&&n.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",go:"go"},_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("go",this.model.isHighTier()),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("%d 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||{},'<div class="listenCarousel__wrapper"> <div class="listenCarousel__itemWrapper"></div> <div class="listenCarousel__itemWrapper"></div> <div class="listenCarousel__itemWrapper"></div>\n</div>\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://mobi.sndcdn.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+='<a role="button" class="soundControls__control soundControls__prev g-touch-padding">'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Previous track",{hash:{_comment:"Help text on prev button"},data:i})},data:i}))+'</a>\n<a role="button" class="g-play-button soundControls__playPause g-touch-padding">'+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}))+'</a>\n<a role="button" class="soundControls__control soundControls__next g-touch-padding">'+o(n.$a11y.call(t,{hash:{screenreader:n.$t.call(t,"Next track",{hash:{_comment:"Help text on next button"},data:i})},data:i}))+"</a>\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/view","views/interstitials/like-app-upsell-content.tmpl","views/interstitials/like-app-upsell-content.css"],function(e,t,n){function u(e){this.bubble("closeButton:click")}function a(e){e.stopPropagation()}var r=e("lib/helpers/client-environment-helper").device,i=e("lib/lingua"),s=e("lib/view"),o=n.exports=s.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":u,click:a},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://mobi.sndcdn.com/assets/images/ldpi/interstitial/like-upsell/heart-android-280d5bc8.png",upsellHeader:i.t("Try our app.<br>It's even better"),upsellContent:t}}})}),
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://mobi.sndcdn.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://mobi.sndcdn.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.go .sound__playIndicator{background:linear-gradient(to right,#7d01a1,#f50)}.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+=' <div class="sound__blockedMessage"> '+u(n.$t.call(e,"Not available in<br>your country",{hash:{},data:t}))+" </div>\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+=' <span class="sound__likes g-icon"> '+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}))+" </span> ",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+='<div class="sound__playIndicator g-z-index-banner g-play-indicator"></div>\n<div class="sound__info"> <div class="sound__infoContent"> <h3 class="sound__username g-type-shrinkwrap-inline sc-truncate"> <a href="'+u(n.$route.call(t,"user",t&&t.user,{hash:{},data:i}))+'" class="g-touch-padding">'+u((o=(o=t&&t.user,o==null||o===!1?o:o.username),typeof o===f?o.apply(t):o))+'</a> </h3>\n</div> <div class="sound__infoContent"> <h2 class="sound__title g-type-shrinkwrap-inline">'+u((o=t&&t.title,typeof o===f?o.apply(t):o))+'</h2> </div>\n</div> <div class="sound__artwork"> <div class="sound__artworkOverlay"></div> <div class="sound__artworkImage sc-selection-disabled g-background-cover g-transition-fade g-transition-fade-out"></div>\n</div> ',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 &amp; hot tracks"),"long":i.t("Up-and-coming tracks on SoundCloud")};case"all-trending-audio":return{"short":i.t("New &amp; 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 &amp; 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 &amp; 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 &amp; 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 &amp; EDM"),dancehall:i.t("Dancehall"),deephouse:i.t("Deep House"),disco:i.t("Disco"),drumbass:i.t("Drum &amp; Bass"),dubstep:i.t("Dubstep"),electronic:i.t("Electronic"),folksingersongwriter:i.t("Folk &amp; Singer-Songwriter"),hiphoprap:i.t("Hip-hop &amp; Rap"),house:i.t("House"),indie:i.t("Indie"),jazzblues:i.t("Jazz &amp; Blues"),latin:i.t("Latin"),metal:i.t("Metal"),piano:i.t("Piano"),pop:i.t("Pop"),rbsoul:i.t("R&B &amp; 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 &amp; Politics"),religionspirituality:i.t("Religion &amp; 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+='<div class="blockedSuggestions__section"> <div class="blockedSuggestions__heading g-font-14 sc-text sc-truncate"> ',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+=" </div>\n</div>\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+='<button class="likeAppUpsellContent__closeButton" title="'+u(n.$t.call(t,"Close",{hash:{},data:i}))+'">'+u(n.$t.call(t,"Close",{hash:{},data:i}))+'</button> <img class="likeAppUpsellContent__image" src="'+u((o=t&&t.upsellIcon,typeof o===a?o.apply(t):o))+'" alt="'+u(n.$t.call(t,"Like",{hash:{},data:i}))+'"> <h3 class="likeAppUpsellContent__messageHeader"> ',o=(o=t&&t.upsellHeader,typeof o===a?o.apply(t):o);if(o||o===0)s+=o;return s+='\n</h3> <p class="likeAppUpsellContent__messageContent"> '+u((o=t&&t.upsellContent,typeof o===a?o.apply(t):o))+"\n</p> "+u(n.$view.call(t,"views/app-buttons/app-buttons",{hash:{},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://mobi.sndcdn.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.getFixedDuration())}function h(e){if(!this.subviews.waveformCanvasUnplayed)return;var t=this.subviews.waveformCanvasUnplayed.elWidth,n=this.model.getMediaDuration()/this.model.getFixedDuration();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.getFixedDuration();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(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this._isScrubbing=!0,this._currentSeek=this.model.currentTime()/this.model.getFixedDuration()*e,this.subviews.timeIndicator.toggleScrubbing(!0),this.toggleState("scrubbing",!0)}function v(){var e=this.subviews.waveformCanvasUnplayed.elWidth;this._isScrubbing=!1,this.subviews.timeIndicator.toggleScrubbing(!1),this.toggleState("scrubbing",!1),this.model.seek(this.model.getFixedDuration()*(this._currentSeek/e))}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.getFixedDuration(),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<n;h+=g)p=Math.floor(h/f),m=t[p]/d,b=Math.round(m*u),w=Math.round((1-m)*a+u),o.fillStyle=h<N?E:x,o.fillRect(h,b,v,u-b),o.fillStyle=h<N?S:T,o.fillRect(h,u,v,w-u)}function x(e){return $.ajax({url:o.get("wisHost")+"/"+e.replace(/\.png$/,".json"),type:"GET",dataType:"json"})}function T(){var e=this.model,t=$.Deferred(),n=e.get("waveform_url"),r=n.split("/").pop(),i=n.indexOf(c)>-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()}function k(e){var t=e?"on":"off";this.model[t]("duration-change",E,this)}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,setup:function(){k.call(this,!0)},dispose:function(){k.call(this,!1)}},{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<p;++t)e[t]=Math.round(Math.sin(t/p*Math.PI*10)*15+105);return e})}),
define("views/sound/waveform.tmpl",["vendor/handlebars-runtime","views/sound/waveform-canvas","views/listen/time-indicator","views/listen/scrubber"],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+='<div class="waveform__layer waveform__waveformCanvases"> <div class="waveform__layer waveform__waveformCanvasPlayed"> '+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}))+' </div> <div class="waveform__layer waveform__waveformCanvasUnplayed"> '+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}))+' </div>\n</div> <div class="waveform__timeIndicator"> '+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</div> <div class="waveform__layer waveform__scrubber"> '+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</div> ",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;-webkit-transform:translate3d(0,0,0)}.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(){this.toggleState("go",this.model.isHighTier()),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)<1e-6?1:e%t/parseFloat(t)}function g(e){return[h(s(e.r).toString(16)),h(s(e.g).toString(16)),h(s(e.b).toString(16))].join("")}function y(e){function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var t,n,r,i=m(e.h,360),s=m(e.s,100),o=m(e.l,100);if(s===0)t=n=r=o;else{var a=o<.5?o*(1+s):o+s-o*s,f=2*o-a;t=u(f,a,i+1/3),n=u(f,a,i),r=u(f,a,i-1/3)}return{r:t*255,g:n*255,b:r*255}}function b(e){var t=m(e.r,255),n=m(e.g,255),r=m(e.b,255),i=u(t,n,r),a=o(t,n,r),f,l,c=(i+a)/2;if(i===a)f=l=0;else{var h=i-a;l=c>.5?h/(2-i-a):h/(i+a);switch(i){case t:f=(n-r)/h+(n<r?6:0);break;case n:f=(r-t)/h+2;break;case r:f=(t-n)/h+4}f/=6}return{h:s(f*360),s:s(l*100),l:s(c*100)}}function w(n){n=n.replace(e,"").replace(t,"").toLowerCase();var r;return(r=a.rgb.exec(n))?{r:c(r[1]),g:c(r[2]),b:c(r[3])}:(r=a.hsl.exec(n))?{h:c(r[1]),s:c(r[2]),l:c(r[3])}:(r=a.hex6.exec(n))?{r:l(r[1]),g:l(r[2]),b:l(r[3])}:(r=a.hex3.exec(n))?{r:l(r[1]+""+r[1]),g:l(r[2]+""+r[2]),b:l(r[3]+""+r[3])}:!1}function E(e){var t=null;return typeof e=="string"&&(e=w(e)),typeof e=="object"&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?t=e:e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")&&(t=y(e))),t}function S(e){var t=this.toHsl();return t.h+=c(e),A(t)}function x(e){var t=this.toHsl();return t.l-=c(e),u(0,t.l),A(t)}function T(e){var t=this.toHsl();return t.l+=c(e),o(100,t.l),A(t)}function N(e,t){e=e||6,t=t||30;var n=this.toHsl(),r=360/t,i=[A(n)];for(n.h=(n.h-(r*e>>1)+720)%360;--e;)n.h=(n.h+r)%360,i.push(A(n));return i}function C(e){var t=this.toRgb(),n=A(e).toRgb(),r=(t.r*299+t.g*587+t.b*114)/1e3,s=(n.r*299+n.g*587+n.b*114)/1e3,a=u(t.r,n.r)-o(t.r,n.r)+u(t.g,n.g)-o(t.g,n.g)+u(t.b,n.b)-o(t.b,n.b);return{brightness:i(r-s),color:a}}function k(e){var t=this.diff(e);return t.brightness>125&&t.color>500}function L(e,t){var n=this.diff(e||"#000"),r=this.diff(t||"#fff");return n.brightness>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",total:".timeIndicator__total"},setup:function(){s.prototype.setup.apply(this,arguments),this._isScrubbing=!1,this.updateTimeDisplay=r.throttle(this.updateTimeDisplay.bind(this),o),this.model.on("duration-change",this.updateDuration.bind(this))},getTemplateData:function(e){e.timecode=i.timecode(this.model.getMediaDuration())},updateDuration:function(){this.getElement("total")[0].innerHTML=i.timecode(this.model.getMediaDuration())},manualProgress:function(e){this.updateTimeDisplay(e*this.model.getMediaDuration())},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("%d hour","%d hours",f.h)),f.m>0&&n.push(i.tp("%d minute","%d minutes",f.m)),(f.s>0||f.m===0&&f.h===0)&&n.push(i.tp("%d second","%d seconds",f.s)),n.join(" ")):(f.h>0&&n.push(f.h),n.push(f.m<10&&f.h>0?"0"+f.m:f.m,f.s<10?"0"+f.s:f.s),n.join(":")))}}}),
define("lib/views/mixins/deferred-images",["require","exports","module","$","underscore","config","lib/css-transitions","lib/helpers/image-helper","lib/mixin"],function(e,t,n){function v(){this.storeDeferredImages(),h||(h=!0,p=i.throttle(m.bind(this),f),r(document).on("scroll",p),p()),p()}function m(){i.each(l,function(e,t){if(e.loading){delete l[t];return}y()+window.innerHeight+c>=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"