(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{101:function(e,t,n){var i=/\/\/(a2\.soundcloud\.test|a-v2\.sndcdn\.com)/,r=[],o=null,a=!1,s=("undefined"!==window.navigator?window.navigator.userAgent:"").toLowerCase(),u=s.indexOf("firefox/69")>=0,l=s.indexOf("firefox/70")>=0;e.exports={initialize:function(){if(a)return;try{(o=new(n(2373).Notifier)({projectId:n(6).get("airbrake_project_id"),projectKey:n(6).get("airbrake_project_key"),environment:"production"})).addFilter((function(e){if((u||l)&&e.errors.some((function(e){return"AbortError"===e.type&&"The operation was aborted. "===e.message}))||!n(6).get("features").has("v2_count_frontend_errors")&&!n(6).get("features").has("internal_qa")||(h(),p()),!n(32).isCategoryEnabled(n(32).CookieCategory.Performance))return null;try{return function(e){return(n(6).get("features").has("v2_airbrake")||n(6).get("features").has("internal_qa"))&&!n(6).get("versionOutOfDate")&&e.errors.some((function(e){return e.backtrace.some((function(e){var t=e.file;return i.test(t)}))}))}(e)?e:null}catch(t){return e}})),o.addFilter((function(e){var t=e.context;return t.environment="production",t.version=n(6).get("app_version"),t.user=t.user||{},t.user.id=String(n(6).get("me").id||"anonymous"),t.component||(t.component="unknown"),e})),r.forEach((function(e){return o.notify(e)}))}catch(e){window.console.error("Could not initialize airbrake",e)}a=!0,r=[]},notify:function(e){o?o.notify(e):a||r.push(e)}};var c,d,f,h=(c=0,d=!0,f=n(0).throttle((function(){d&&(n(45).callEndpoint("countFrontendErrors",null,{errors:c,app_version:n(6).get("app_version")}).then((function(e){var t=e.status;d=204===t})),c=0)}),3e4),function(){c++,f()}),p=function(){var e=0,t=!0,i=n(0).throttle((function(){t&&(n(45).callEndpoint("reportErrors",null,null,null,{errorCount:e,appId:n(6).get("client_application_id"),appVersion:n(6).get("app_version")}).then((function(e){var n=e.status;t=n>=200&&n<300})),e=0)}),3e4);return function(){e++,n(6).get("features").has("v2_enable_new_web_errors")&&i()}}()},1013:function(e,t,n){var i=n(12);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return'
\n'},useData:!0})},102:function(e,t,n){e.exports=n(83).extend(n(688),n(235),n(691),n(1452),n(692),n(693),n(1462),{fields:{offlineSyncEnabled:{defaultValue:!0},snippet_presets:{defaultValue:null}},constraints:{title:[[n(73),{message:n(2).Lingua.t("Enter a title.")}],[n(96),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a title that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],description:[[n(96),{maxLength:4e3,message:function(){return n(2).Lingua.t("Enter a track description that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],permalink:[[n(362),{type:"sound",getResource:function(){return this.getAudible()}}],[n(73),{message:n(2).Lingua.t("Enter a permalink."),shouldCheck:function(){return this.isEdit}}]],tags:[[n(572)]],customGenre:[[n(96),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a custom genre that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],caption:[[n(96),{userPerceived:!0,maxLength:140,message:function(){return n(2).Lingua.t("Enter a track caption that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]]},_sound:null,resource_type:"sound-upload-edit",requiredModelAttributes:["commentable","downloadable","embeddable_by","feedable","genre","geo_blockings","label_name","purchase_title","purchase_url","release_date","reveal_comments","reveal_stats","api_streamable","track_format","snippet_presets"],actions:{save:function(){var e=this;return o.call(this).then((function(){return e.set("editing",!1),e.saveEdits()}))},cancel:function(){var e=this;r.call(this).then((function(){return e.cancel()}))}},setup:function(e,t){if(this.listenTo(this,"upload:completed:saved",i),t.isEdit){var r=this.requiredModelAttributes.map((function(e){return"change:"+e}));this.isEdit=!0,this._sound=new(n(21))({id:t.resource_id}),this.listenTo(this._sound,r.join(" "),a),this._sound.attrExists(this.requiredModelAttributes)?this.setToModelAttributes():this._sound.fetch({attrs:this.requiredModelAttributes}).fail((function(){n(209).raise({fatal:!0})})),this.setButtonConfig("save",{label:n(2).Lingua.t("Save changes")}),this.addSubmodel(this._sound)}},cancel:function(){var e=this.getFileUpload(),t=e&&e.getTrackingId();this.removeUpload(),e&&n(14).trackUploadFunnel({chapter:"cancel",uploadId:t}),this.isEdit?(this.setToModelAttributes(),this.trigger("canceled")):(this.destroy(),this._sound&&n(40).destroy(this._sound))},createAudible:function(){return this._sound=new(n(21))(this.getUploadAttributes()),this._sound},getAudible:function(){return this._sound},unsetAudible:function(){this._sound=null},onAudibleEdited:function(e,t){this.isEdit&&function(e,t){e.scheduled_public_date&&t.scheduled_public_date!==e.scheduled_public_date&&(i=e.scheduled_public_date,r=Math.round(((new Date).setTime(i)-Date.now())/n(31).MS_IN_DAY),n(14).trackV1Click({click_name:"track-edit::saved_with_scheduling",click_attributes:{user_subscription:n(6).get("me").getCreatorSubscriptionIdentifier(),daysScheduled:r}}));var i,r;if(n(6).get("me").hasMonetization()){s(t.geo_blockings,e.geo_blockings)&&(f=e.geo_blockings,h=f&&f.length>0,n(14).trackV1Click(h?{click_name:"track-edit::enable_geoblocking",click_attributes:{blocked_countries:f}}:{click_name:"track-edit::disable_geoblocking"}));var o=t.monetization||{},a=e.monetization||{};s(o.territories,a.territories)&&(c=o.territories,d=a.territories,n(0).isEmpty(c)&&!n(0).isEmpty(d)?n(14).trackV1Click({click_name:"track-edit::enable_monetization",click_attributes:{blocked_countries:d}}):!n(0).isEmpty(c)&&n(0).isEmpty(d)&&n(14).trackV1Click({click_name:"track-edit::disable_monetization"}),n(14).trackV1Click({click_name:"track-edit::saved_with_monetization_changes"})),s(o.start_timestamp,a.start_timestamp)&&(l=a.start_timestamp,n(14).trackV1Click(l?{click_name:"track-edit::enable_start_monetization"}:{click_name:"track-edit::disable_start_monetization"})),s(o.end_timestamp,a.end_timestamp)&&(u=a.end_timestamp,n(14).trackV1Click(u?{click_name:"track-edit::enable_end_monetization"}:{click_name:"track-edit::disable_end_monetization"}))}var u;var l;var c,d;var f,h}(e,t)},onAudibleSaved:function(){var e,t,i,r=this.getAudible();if(this.isEdit){var o,a=Boolean(null==r||null==(o=r.getSounds()[0])?void 0:o.get("caption"));if(n(11).trigger("sound:saved",r),n(14).trackV0Click(null,{click_name:"track::edit_saved",click_object:r.getUrn(),click_attributes:{has_caption:a}}),n(6).get("me").hasMonetization())return function(e){return n(9).delay(2e3).then((function(){return e.fetch({attrs:["monetization_enabled"]})}))}(r)}else e=r,(i=n(943).instances.get(n(22).currentUserId()))&&(t=n(537).convert(e),i.add(t,{at:0}),t.release());return n(9).resolve()},onSaveFailed:function(e){var t=this.getFileUpload();this.setToFailed("save",e),this.set("editing",!0);var r=function(e){var t=(void 0===e?{}:e).responseJSON;try{return t.errors[0].error_type}catch(e){return""}}(e);"QUOTA_EXCEEDED"===r&&(n(11).trigger("quota:exceeded"),this.set("savingFailed",r)),t&&n(14).trackUploadFunnel({chapter:["failed","save"],uploadId:t.getTrackingId()}),i()},hasFailed:function(){return!!this.get("fileUploadFailed")||!!this.get("savingFailed")},failedDueToQuota:function(){return"QUOTA_EXCEEDED"===this.get("savingFailed")},getAttributesToBeSaved:function(){var e=n(0).pick(this.attributes,"feedable","downloadable","commentable","snippet_presets");return e.api_streamable=this.get("apiStreamable"),e.reveal_comments=this.get("publicComments"),e.restrictions=this.get("offlineSyncEnabled")?[]:["no_offline_sync"],n(0).assign(e,this.getUploadAttributes()),e},getAttributesFromModel:function(){var e=this.getAudible(),t=n(0).pick(e.attributes,"feedable","downloadable","commentable","snippet_presets");return t.apiStreamable=!!e.get("api_streamable"),t.buyLink=e.get("purchase_url"),t.buyTitle=e.get("purchase_title")||this.getFieldMetadata("buyTitle").defaultValue,t.embeddableByAll=e.isEmbeddableByAll(),t.stats=!!e.get("reveal_stats"),t.publicComments=!!e.get("reveal_comments"),t.labelName=e.get("label_name"),t.releaseDate=e.get("release_date")&&n(15).LinguaLib.dateTimeHelper.fromString(e.get("release_date")),t.offlineSyncEnabled=e.isOfflineSyncEnabled(),t},updateSound:function(e){this._sound&&(this._sound.release(),this._sound=e)},isDjMix:function(){return"dj-mix"===this.attributes.track_format}},{neverRelease:!0,hashFn:function(e,t){return e.resource_id||(null==t?void 0:t.resource_id)||e.id||null}});function i(){n(6).get("me").fetch()}function r(){return this.isEdit?n(9).resolve():n(324).confirm(n(2).Lingua.t("Are you sure you want to stop your upload? Any unsaved changes will be lost."))}function o(){return this.validate().then((function(e){return e?n(9).resolve():n(9).reject()}))}function a(){this.isDirty()||this.setToModelAttributes()}function s(e,t){return!n(0).isEqual(e,t)&&!(void 0===e&&null==t||null===e&&void 0===t)}},103:function(e,t,n){function i(e){return n("playlist-upload"===e?361:102)}(e.exports=function(e,t){return new(i(t.resource_type))(e,t)}).getClass=function(e){return i(e.resource_type)}},106:function(e,t,n){var i=e.exports={isPremierVIPMember:function(){return n(6).get("features").has("can_see_revshare_premier_agreement")},isPremierMonetizationMember:function(){return n(6).get("features").has("can_see_revshare_pro_agreement")},isQualified:function(){return n(6).get("features").has("can_view_revshare_pro_prospect")},shouldShowUpsells:function(){return i.canJoinPremier()},hasJoinedPremier:function(){return i.isPremierVIPMember()||i.isPremierMonetizationMember()},canJoinPremier:function(){return i.isQualified()&&!i.hasJoinedPremier()},cantMonetizeLongContent:function(){return n(6).get("features").has("cant_monetize_long_content")}}},107:function(e,t,n){e.exports=n(1137)()},108:function(e,t,n){(function(t){var i=new window.Image;i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";e.exports=function e(r){var o,a=t(window.document),s=[],u=-1,l=-1,c=r.getQueue(),d=!1,f=n(0).assign({},n(35).Events,{initDragNDrop:e,start:function(e){s.length&&(n(0).invoke(s,"release"),s.length=0),d=!1,a.on("drop",p).on("dragover",h),l=u=c.indexOf(e[0]),n(0).invoke(e,"hold"),s.push.apply(s,e),c.remove(e)},setDropCursor:function(e){u=e},getDropCursor:function(){return u},end:function(){o&&(window.clearTimeout(o),o=null),a.off("drop",p).off("dragover",h),n(0).invoke(s,"release");var e=s.splice(0,s.length),t=d?u:l;t>-1&&c.add(e,{at:t}),l=u=-1,d=!1,f.trigger("end")},getItems:function(){return s},isDragging:function(){return s.length>0},dispose:function(){n(0).invoke(s,"release"),s.length=0,a.off("drop",p).off("dragover",h)},prepareDragEvent:function(e){if(e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed="all",e.dataTransfer.setDragImage)e.dataTransfer.setDragImage(i,0,0);else{var t=e.target.style,n=t.opacity;t.opacity=.01,window.requestAnimationFrame((function(){t.opacity=n}))}}});return f;function h(){return!1}function p(){return d=!0,o=window.setTimeout(f.end,20),!1}}(n(16))}).call(this,n(17))},109:function(e,t,n){var i=/\s/,r=/([a-z])([A-Z])/g;e.exports={usertext:n(353).withDefaults(n(354).default),usertextOneline:n(353).withDefaults(n(354).oneline),splitWords:function(e){return e?i.test(e)?e:e.replace(r,"$1$2"):""}}},111:function(e,t,n){e.exports=n(454)({label:"cast-sender",enabled:!0,buffer:!0})},112:function(e,t){function n(){return(n=Object.assign||function(e){for(var t=1;tnew Date(e.last_read_story_timestamp)}));return t>-1?t:0},u=function(e){switch(e.type){case o.a.playlistRepost:case o.a.trackRepost:return e.reposted.caption;case o.a.trackPost:return e.snippeted_track.caption;case o.a.playlistPost:return null}},l=function(e){switch(e.type){case o.a.playlistRepost:case o.a.trackRepost:return e.reposted.user_urn;case o.a.trackPost:case o.a.playlistPost:return null}}},1130:function(e,t,n){e.exports=new(n(19))({onCleanup:null,onIncrement:null,onDecrement:null,_zeroList:null,_killList:null,_zeroListSnap:null,after:{initialize:function(e){var t=void 0===e?{}:e,n=t.autoCleanup,i=t.onCleanup,r=t.onIncrement,o=t.onDecrement;this._counts=Object.create(null),this._totalCount=0,this._autoCleanup=!!n,this.onCleanup=i,this.onIncrement=r,this.onDecrement=o,this._zeroList=new Set,this._killList=new Set},reset:function(){this._counts=Object.create(null),this._totalCount=0,this._zeroList.clear(),this._killList.clear()},set:function(e,t){this._counts[e]||(this._counts[e]=1,this._totalCount++,this.onIncrement&&this.onIncrement(t,e,1))},unset:function(e){this._totalCount-=this.countFor(e),delete this._counts[e],this._zeroList.delete(""+e),this._killList.delete(""+e)}},before:{reset:function(){this.onCleanup&&this.forEach(this.onCleanup)}},countFor:function(e){return this._counts[e]||0},totalCount:function(){return this._totalCount},increment:function(e,t){return this.has(e)&&((t="number"==typeof t?t:1)>0?(this._totalCount+=t,this._counts[e]<=0&&(this._zeroList.delete(""+e),this._killList.delete(""+e)),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="number"==typeof t?t:1)>0?(this._totalCount-=t,this._counts[e]=(this._counts[e]||1)-t,this.onDecrement&&this.onDecrement(this.get(e),e,t),this._counts[e]<=0&&(this._zeroList.add(""+e),this._autoCleanup&&this.cleanup())):t<0&&this.increment(e,-t)),this},changeKey:function(e,t){if(e!==t){var n=this.get(e),i=this.countFor(e);this.unset(e),this.set(t,n),this.increment(t,i-1)}},cleanup:function(){return this.mark(),this.sweep()},mark:function(){var e;e=this._killList,this._zeroList.forEach((function(t){return e.add(t)})),this._zeroList.clear()},beginSweep:function(){this._zeroListSnap=r(this._zeroList),this._zeroList.clear()},endSweep:function(){this._zeroList=this._zeroListSnap,this._zeroListSnap=null},sweep:function(){var e=!!this._zeroListSnap;if(!(this._killList.size||e&&this._zeroList.size))return!1;e||this.beginSweep();do{r(this._killList).forEach(i,this),this._killList=this._zeroList}while(this._killList.size);return this._zeroList=new Set,e||this.endSweep(),!0}});function i(e){var t=this.onCleanup;if(t){var n=this.get(e);null!=n&&t.call(n,n,e)}this.unset(e)}function r(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}},1131:function(e,t,n){e.exports=function(e){var t,r,o=!1,a=!1,s=!0,u=-1,l=3,c=!1;function d(){u=r?e.indexOf(r):-1}function f(t){e.indexOf(t)<=u&&++u}function h(e,t,n){n.index<=u&&--u}function p(){for(var t;!s&&u+11,i={storeVolume:n(118).get("volume"),storeMuted:n(118).get("muted")},r=i.storeVolume,o=void 0===r?1:r,a=i.storeMuted;s(t||e?{volume:o,muted:void 0!==a&&a,updateRemote:!1}:{volume:o||1,muted:!1,updateRemote:!1})},setVolumeAndMuted:function(e){s({volume:e.volume,muted:e.muted,triggers:{broadcast:!0}})},updateRemoteVolumeAndMuted:function(e){s({volume:e.volume,muted:e.muted,updateRemote:!0})},getVolume:function(){return o?i:e},getMuted:function(){return o?r:t},changeVolume:function(e){var t=n(80).clamp(a.getVolume()+e,0,1);a.setVolumeAndMuted({volume:t,muted:0===t})},toggleMuted:function(){a.setMuted(!a.getMuted())},setMuted:function(e){a.setVolumeAndMuted({volume:a.getVolume(),muted:e})},setVolume:function(e){a.setVolumeAndMuted({volume:e,muted:a.getMuted()})},dispose:function(){a.stopListening()}});function s(s){var u=s.volume,l=void 0===u?a.getVolume():u,c=s.muted,d=void 0===c?a.getMuted():c,f=s.triggers,h=s.updateRemote,p=void 0===h?o:h,g=n(80).clamp(l,0,1),m=!!d,v=a.getVolume(),y=a.getMuted();!p||i===g&&r===m?p||e===g&&t===m||(e=g,t=m,a.trigger("change:local",{volume:g,muted:m}),(null==f?void 0:f.broadcast)&&(n(118).set("volume",n(80).precise(g,1)),n(118).set("muted",m),n(11).broadcast({excludeThis:!0},"volume",{volume:g,muted:m}))):(i=g,r=m,a.trigger("change:remote",{volume:g,muted:m})),v===a.getVolume()&&y===a.getMuted()||a.trigger("change",{volume:g,muted:m})}return a.listenTo(n(11),"broadcast:volume",(function(e){return s({volume:e.volume,muted:e.muted,updateRemote:!1})})),a.listenTo(n(11),"googleCast:audioHijack",(function(){o=!0,a.trigger("change",{volume:a.getVolume(),muted:a.getMuted()})})),a.listenTo(n(11),"googleCast:audioRestored",(function(){o=!1,a.trigger("change",{volume:a.getVolume(),muted:a.getMuted()})})),a}},1143:function(e,t,n){var i=n(629);function r(e){this.data=e,this.left=null,this.right=null,this.red=!0}function o(e){this._root=null,this._comparator=e,this.size=0}function a(e){return null!==e&&e.red}function s(e,t){var n=e.get_child(!t);return e.set_child(!t,n.get_child(t)),n.set_child(t,e),e.red=!0,n.red=!1,n}function u(e,t){return e.set_child(!t,s(e.get_child(!t),!t)),s(e,t)}r.prototype.get_child=function(e){return e?this.right:this.left},r.prototype.set_child=function(e,t){e?this.right=t:this.left=t},o.prototype=new i,o.prototype.insert=function(e){var t=!1;if(null===this._root)this._root=new r(e),t=!0,this.size++;else{var n=new r(void 0),i=0,o=0,l=null,c=n,d=null,f=this._root;for(c.right=this._root;;){if(null===f?(f=new r(e),d.set_child(i,f),t=!0,this.size++):a(f.left)&&a(f.right)&&(f.red=!0,f.left.red=!1,f.right.red=!1),a(f)&&a(d)){var h=c.right===l;f===d.get_child(o)?c.set_child(h,s(l,!o)):c.set_child(h,u(l,!o))}var p=this._comparator(f.data,e);if(0===p)break;o=i,i=p<0,null!==l&&(c=l),l=d,d=f,f=f.get_child(i)}this._root=n.right}return this._root.red=!1,t},o.prototype.remove=function(e){if(null===this._root)return!1;var t=new r(void 0),n=t;n.right=this._root;for(var i=null,o=null,l=null,c=1;null!==n.get_child(c);){var d=c;o=i,i=n,n=n.get_child(c);var f=this._comparator(e,n.data);if(c=f>0,0===f&&(l=n),!a(n)&&!a(n.get_child(c)))if(a(n.get_child(!c))){var h=s(n,c);i.set_child(d,h),i=h}else if(!a(n.get_child(!c))){var p=i.get_child(!d);if(null!==p)if(a(p.get_child(!d))||a(p.get_child(d))){var g=o.right===i;a(p.get_child(d))?o.set_child(g,u(i,d)):a(p.get_child(!d))&&o.set_child(g,s(i,d));var m=o.get_child(g);m.red=!0,n.red=!0,m.left.red=!1,m.right.red=!1}else i.red=!1,p.red=!0,n.red=!0}}return null!==l&&(l.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this.size--),this._root=t.right,null!==this._root&&(this._root.red=!1),null!==l},e.exports=o},1144:function(e,t,n){var i=n(629);function r(e){this.data=e,this.left=null,this.right=null}function o(e){this._root=null,this._comparator=e,this.size=0}r.prototype.get_child=function(e){return e?this.right:this.left},r.prototype.set_child=function(e,t){e?this.right=t:this.left=t},o.prototype=new i,o.prototype.insert=function(e){if(null===this._root)return this._root=new r(e),this.size++,!0;for(var t=0,n=null,i=this._root;;){if(null===i)return i=new r(e),n.set_child(t,i),ret=!0,this.size++,!0;if(0===this._comparator(i.data,e))return!1;t=this._comparator(i.data,e)<0,n=i,i=i.get_child(t)}},o.prototype.remove=function(e){if(null===this._root)return!1;var t=new r(void 0),n=t;n.right=this._root;for(var i=null,o=null,a=1;null!==n.get_child(a);){i=n,n=n.get_child(a);var s=this._comparator(e,n.data);a=s>0,0===s&&(o=n)}return null!==o&&(o.data=n.data,i.set_child(i.right===n,n.get_child(null===n.left)),this._root=t.right,this.size--,!0)},e.exports=o},1145:function(e,t){e.exports=function(e,t){var f=0;return{time:i,toRelativeTime:h,format:function(t,n){var i,r,o,a,s,u=e.dates;if(!(t instanceof Date))throw new Error("format method expects first argument to be Date");return"relative"===n?h(t):(i=t.getDate(),r=t.getDay(),o=t.getMonth(),a=t.getFullYear(),l=t.getMinutes(),s=("0"+l).substr(-2),[["YYYY",a],["MMMM",u.monthsDay&&u.monthsDay[o]||u.months[o]],["DDDD",u.weekdays[r]],["DDD",u.shortWeekdays[r]],["MMM",u.monthsDayShort&&u.monthsDayShort[o]||u.monthsShort[o]],["DD",i],["MM",o+1],["HH",t.getHours()],["mm",s]].reduce((function(e,t){return e.replace(new RegExp(t[0],"g"),t[1])}),function(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_time":n="readableAbbreviatedTime";break;case"readable_abbreviated":n="readableAbbreviated";break;case"readable_abbreviated_without_year":n="readableAbbreviatedWithoutYear";break;case"readable_without_day":n="readableWithoutDay";break;case"readable_abbreviated_without_day":n="readableAbbreviatedWithoutDay";break;case"readable_with_weekday":n="readableWithWeekday";break;case"year":n="year";break;case"month_abbreviated":n="monthAbbreviated";break;case"readable_abbreviated_with_weekday":n="readableAbbreviatedWithWeekday";break;default:n="default"}return e.dateFormats[n]}(n)));var l},fromString:r,setServerTime:function(e){var t,n;if(t="number"==typeof e?new Date(e):r(e),n=t-Date.now(),Math.abs(n)>6048e5)return!1;return f=n,!0},nowAtServer:function(){return Date.now()+f},timecode:function(t,n){if(isNaN(t))return t;var i=[],r=Math.floor(t/36e5),o=Math.floor(t/6e4%60),a=Math.floor(t/1e3%60),s=e.relativeTime;return n&&n.inWords?(r>0&&i.push(s.hour(r)),o>0&&i.push(s.min(o)),(a>0||0===o&&0===r)&&i.push(s.sec(a)),i.join(" ")):(r>0&&i.push(r),n&&n.minimal&&0===r&&0===o?i.push(""):i.push(o<10&&r>0?"0"+o:o),i.push(a<10?"0"+a:a),i.join(":"))},stringToTime:o,convert:a,floorTo30Minutes:s,parseTime:u,formatTime:function(e){return t.zeroPad(e.getHours(),2)+":"+t.zeroPad(e.getMinutes(),2)},getTimezoneOffset:l,getBounds:c,toLocalDate:d};function h(t,i,r){if(!(t instanceof Date))throw new Error("toRelativeTime method expects first argument to be Date");var o,a,s,u=(r=r||Date.now())-t,l=u>0,c=null,d=e.relativeTime;if(i=i&&parseInt(i,10)||1e3,(u=Math.abs(u))<=i)return l?d.justNow:d.rightNow;for(o in n)if(n.hasOwnProperty(o)){if(u23||n>59))){if(i)if("p"===i){if(t<12)t+=12;else if(t>13)return}else if("a"===i)if(12===t)t=0;else if(t>12)return;return n||(n=0),[t,n]}}function l(){var e=new Date(2009,0,1,6,0,0),t=new Date(2009,6,1,6,0,0);return e.getUTCHours()>t.getUTCHours()?e.getTimezoneOffset():t.getTimezoneOffset()}function c(e){if(null==e.offset)return{};var t=new Date;!function(e,t){switch(t){case"day":e.setUTCHours(0,0,0,0);break;case"hour":e.setUTCMinutes(0,0,0)}}(t,e.resolution);var n=+new Date(+t+e.offset*i[e.resolution]);return{from:n,to:+new Date(n+(e.duration-1)*i[e.resolution])}}function d(e){var t="string"==typeof e?Date.parse(e):"number"==typeof e?e:e.valueOf(),n=60*l()*1e3;return new Date(t+n)}},1146:function(e,t){function n(e,t,n){n=n||Math.round;var i=Math.pow(10,t||0);return n(e*i)/i}e.exports=function(e){return{round:n,format:function(t,i){if(""===t||null==t||isNaN(t)||Math.abs(t)===1/0)return"";t=parseFloat(t);var r=i&&i.precision||0,o=e.delimiters;return t=n(t,r=Math.max(Math.min(r,20),0),i&&i.roundingFn),i&&!isNaN(i.fixed)&&(t=t.toFixed(Math.max(Math.min(i.fixed,20),0))),(""+t).split(".").map((function(e,t){return 0===t?e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+o.thousands):e})).join(o.decimal)},zeroPad:function(e,t){if(null==e)return e;var n=t-(e+="").length;return n>0&&(e=new Array(n+1).join("0")+e),e}}}},1147:function(e,t){var n={has:function(e,t){return null!=e&&hasOwnProperty.call(e,t)},memoize:function(e,t){var i=function i(r){var o=i.cache,a=""+(t?t.apply(this,arguments):r);return n.has(o,a)||(o[a]=e.apply(this,arguments)),o[a]};return i.cache={},i}};e.exports=function(e,t){var o=n.memoize((function(t,n){try{return new Intl.NumberFormat(e.replace("_","-"),{style:t?"currency":"decimal",currency:t,minimumFractionDigits:n}).format}catch(t){return new Intl.NumberFormat(e.replace("_","-"),{style:"decimal",minimumFractionDigits:n}).format}}),(function(e,t){return""+e+t}));return{format:function(n,s,u){var l=n/Math.pow(10,a(s)),c=function(e,t,n){var i=a(t);if(n0||r)return i}return n}(l,s,u);if("undefined"!=typeof Intl)return function(e,t){if(r.hasOwnProperty(e))return t.replace(r[e].default,r[e].override);return t}(s,o(s,c)(l));var d=t.format(l,{precision:2,minFractionDigits:c}),f=i[s]||s;switch(e){case"en":case"en_GB":return""+f+d;case"fr":return d+" "+f;default:return""+d+f}}}};var i={AUD:"AU$",CAD:"CA$",EUR:"€",GBP:"£",NZD:"NZ$",USD:"$"},r={AUD:{default:"A$",override:"AU$"},USD:{default:/US\$|\$US/,override:"$"},GBP:{default:"£GB",override:"£"}};var o={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};function a(e){return o.hasOwnProperty(e)?o[e]:2}},116:function(e,t,n){"use strict";n.r(t);var i,r=n(0),o=n.n(r),a=n(40),s=n.n(a),u=n(6),l=n.n(u),c=n(22),d=n.n(c),f=n(75),h=n.n(f),p=n(11),g=n.n(p),m=n(230),v=n(32),y=n(125),_=[],b=[],w=!0;function k(){window.appboy||(Object(m.isOneTrustScanner)()||d.a.isLoggedIn()&&v.isCategoryEnabled(v.CookieCategory.Communications))&&(h.a.insertScript("https://js.appboycdn.com/web-sdk/3.1/appboy.min.js",{onload:function(){var e=window.appboy;if(e){var t=l.a.get("env");l.a.get("me").getOrFetch(["id"]).then((function(){e.initialize("2c0ba43c-af74-488e-9dfd-b87280e02a92",{appVersion:l.a.get("app_version"),minimumIntervalBetweenTriggerActionsInSeconds:0,doNotLoadFontAwesome:!0,enableHtmlInAppMessages:!0,baseUrl:"sdk.iad-01.braze.com",sessionTimeoutInSeconds:"development"===t?0:1800}),e.changeUser(window.btoa(l.a.get("me").getUrn())),e.openSession(),e.subscribeToInAppMessage((function(e){C(e)})),_.forEach((function(e){return e()})),_=[]}))}},removeAfterLoad:!0}),s.a.on("all",E),g.a.on("all",E))}function A(){window.appboy&&(b.forEach((function(e){C(e)})),b=[])}function C(e){var t=window.appboy;t&&w?t.display.showInAppMessage(e):b.push(e)}function S(){var e=window.appboy;e&&(e.destroy(),delete window.appboy),s.a.off("all",E),g.a.off("all",E),_=[]}function E(e,t){var n;switch(e){case"createPlaylist":x("create_playlist",{playlist_title:(n=t).object.get("title"),playlist_urn:n.object.getUrn()});break;case"repost":if((n=t).state){var r=n.targetModel;x("repost",{playable_type:"playlist"===r.resource_type?"playlist":"track",playable_urn:r.getUrn(),playable_title:r.get("title"),creator_user_urn:r.get("user").urn,creator_display_name:r.get("user").username})}break;case"like":if((n=t).state&&"system-playlist"!==n.targetType){var o=n.targetModel;x("like",{playable_type:"playlist"===o.resource_type?"playlist":"track",playable_urn:o.getUrn(),playable_title:o.get("title"),creator_urn:o.get("user").urn,creator_display_name:o.get("user").username})}break;case"follow":n=t;var a=l.a.get("me").id;if(n.state&&n.origin===a&&n.target!==a&&i){var s=new i({resource_id:n.target});x("follow",{creator_display_name:s.get("username"),creator_user_urn:s.getUrn()}),s.release()}break;case"tracking:userLayout":l.a.get("me").id===t.user.id?x("visit_profile"):x("visit_another_profile",{profile_urn:t.user.getUrn()});break;case"profile:saved":var u=t.previousAttributes,c=t.attributes;u.username!==c.username&&(x("display_name_updated",{creator_display_name:c.username,creator_urn:l.a.get("me").getUrn()}),T("display_name",c.username)),u.permalink!==c.permalink&&(x("profile_url_updated",{creator_display_name:c.username,creator_urn:l.a.get("me").getUrn()}),T("permalink",c.permalink));break;case"mastering:view_landing_page":x("mastering_view_landing_page");break;case"mastering:track_loaded":x("mastering_track_loaded");break;case"mastering:track_previewed":x("mastering_track_previewed");break;case"mastering:purchased_master":x("mastering_purchased_master");break;case"mastering:finished":x("mastering_track_mastered"),function(e,t){void 0===t&&(t=1);var n=window.appboy;n&&n.getUser().incrementCustomUserAttribute(e,t)}("mastering_num_tracks_mastered",1);break;case"signup:successful":var d=l.a.get("me").get("username");x("user_registered_client",{creator_display_name:d}),T("display_name",d);break;case"comment":(n=t).state&&x("comment")}}function x(e,t){void 0===t&&(t={});var n=window.appboy;n?n.logCustomEvent(e,o.a.extend({platform:"web"},t)):_.push((function(){return x(e,t)}))}function T(e,t){var n=window.appboy;n?n.getUser().setCustomUserAttribute(e,t):_.push((function(){return T(e,t)}))}t.default={include:function(e){var t=e.User;i=t,g.a.on("connect:login",k),g.a.on("connect:logout",S),g.a.on(y.OverlayEvents.OPENED,(function(){w=!1})),g.a.on(y.OverlayEvents.CLOSED,(function(){w=!0,b.length&&setTimeout(A,2e3)})),v.onChange((function(){Object(m.isOneTrustScanner)()||v.isCategoryEnabled(v.CookieCategory.Communications)?k():S()})),k()},trackUserEvent:x,setUserAttribute:T,logCardImpressions:function(e,t){var n=window.appboy;n&&n.logCardImpressions(e,t)},logCardClick:function(e,t){var n=window.appboy;n&&n.logCardClick(e,t)},fetchContentCards:function e(t){var n=window.appboy;if(n){var i=n.subscribeToContentCardsUpdates((function(e){t(e),n.removeSubscription(i)}));n.requestContentCardsRefresh()}else _.push((function(){e(t)}))}}},117:function(e,t){e.exports={CANCELING:"canceling",EDITING:"editing",NONE:"none",SAVING:"saving"}},1170:function(e,t,n){var i=e.exports={waitForPlayThreshold:function(e,t){if("history"===t.sourceInfo.type)return n(9).reject();var r=function(e,t){var n,i=null!=(n=e.playlist)?n:e.systemPlaylist;if(i)return{resourceType:i.resource_type,resourceId:i.resource_id,resourceUrn:i.getUrn()};if("station"===t.sourceInfo.resourceType)return{resourceType:t.sourceInfo.resourceType,resourceId:t.sourceInfo.resourceId,resourceUrn:t.sourceInfo.resourceId};switch(t.sourceInfo.type){case"user-profile":case"user-tracks":case"user-reposts":case"user-likes":return{resourceType:"user",resourceId:t.sourceInfo.resourceId,resourceUrn:"soundcloud:users:"+t.sourceInfo.resourceId};default:return null}}(e,t);return e.isAd()?n(9).reject():i.whenSoundPlayedMinimum(e).then((function(){return{soundId:e.id,playContext:r}}))},getMinimumPlayTime:function(){return 1e3},whenSoundPlayedMinimum:function(e){var t=n(9).defer(),r=window.setTimeout((function(){e.off(null,o),e.off(null,a),e.isPlaying()?t.resolve():t.reject()}),i.getMinimumPlayTime());function o(){window.clearTimeout(r),t.resolve()}function a(){window.clearTimeout(r),t.reject()}return e.once("finish",o),e.once("pause",a),t.promise()}}},1171:function(e,t){var n;e.exports=function(e){return e&&(n=e),n}},1172:function(e,t,n){e.exports=function(e){var t=n(6).get("me");t?t.set(e,{parse:!0}):(t=new(n(130))(e,{isMe:!0,parse:!0}),n(6).set("me",t)),e&&(t.lastFetchTime=Date.now())}},1178:function(e,t){var n=["free","consumer-mid-tier","consumer-high-tier"],i={adFree:[!1,!0,!0]};e.exports={get:function(e,t){var r=i[t];if(r)return r[n.indexOf(e)]}}},1179:function(e,t){e.exports={user:{likes:{permalink_url:":permalink_url/likes",uri:":uri/favorites"},spotlight:{permalink_url:":permalink_url",uri:":uri/spotlight"}}}},118:function(e,t,n){var i=e.exports=new(n(68))("settings");n(0).forEach({volume:1,muted:!1,showTimeRemaining:!1,streamingQuality:null},(function(e,t){i.has(t)||i.set(t,e,{dontPersist:!0})})),i.finalize()},1180:function(e,t,n){e.exports=function(e){var t=new(n(152))(e);n(6).set("features",t),(null==e?void 0:e.features)&&(t.lastFetchTime=Date.now())}},1181:function(e,t){e.exports={getOverrides:function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return-1!==e.indexOf("feature.")})).reduce((function(t,n){var i=n.replace("feature.",""),r="false"!==e[n]&&"0"!==e[n];return t[i]=r,t}),{})}}},1182:function(e,t,n){e.exports=function(e){n(6).get("experiments")||n(6).set("experiments",n(1183)(e))}},1185:function(e,t,n){e.exports=new(n(19))({requirePrototype:n(23).prototype,defaults:{isPrivate:function(){return"private"===this.get("sharing")},isPublic:function(){return!this.isPrivate()},extractSecretToken:n(0).noop},around:{url:function(e,t){var i=this.get("secret_token"),r=e(t);return i&&this.isPrivate()?n(28).modify(r,{query:{secret_token:i}}):r},parse:function(e,t){var i;return"string"==typeof this.baseUrl&&(i=n(28).parse(this.baseUrl).query.secret_token),i||(i=this.extractSecretToken(t)),i&&(t.secret_token=i),e(t)}}})},1186:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r-1}))}e.exports=new(n(19))({requires:["ownerAttributes","ownerUrl","attrExists"],around:{fetch:function(e,t){var r=null==t?void 0:t.attrs,o=n(0).clone(t),a=n(6).get("me").owns(this),s=r&&i.call(this,r);return a&&s&&(o.url=n(28).modify(this.ownerUrl(),{query:{representation:"owner"}}),o.batch=!1),e.call(this,o)}}})},1188:function(e,t,n){var i=2*n(31).MS_IN_SECOND,r=30*n(31).MS_IN_SECOND;e.exports=new(n(19))({applyTo:function(e){var t=e.constructor;this.before(t,{onCleanup:function(e){e.pollOff()}})},after:{initialize:function(){this._polling={circuit:null,callbacks:{}}}},pollOn:function(e,t,o){var a=this._polling,s=a.circuit;s||(s=a.circuit=new(n(214))({tolerance:1,baseDelay:i,maxDelay:r,backoffRate:1.5,giveUp:100,enabled:!1})).on("enabled",(function(){this.fetch({attrs:Object.keys(a.callbacks),batch:!1}),s.failed()}),this).on("giveup",(function(){this.pollOff()}),this),a.callbacks[e]=a.callbacks[e]||[],a.callbacks[e].length||s.succeeded(),this._polling.callbacks[e].push({callback:t,context:o}),this.on("change:"+e,t,o)},pollOff:function(e,t,i){var r,o=this._polling,a={};3===arguments.length&&o.callbacks[e]?(r=[],a[e]=[],o.callbacks[e].forEach((function(n){n.callback===t&&n.context===i?a[e].push(n):r.push(n)})),o.callbacks[e]=r,o.callbacks[e].length||delete o.callbacks[e]):e?(a={attr:o.callbacks[e]||[]},delete o.callbacks[e]):(a=o.callbacks,o.callbacks={}),n(0).each(a,(function(e,t){e.forEach((function(e){this.off("change:"+t,e.callback,e.context)}),this)}),this),!Object.keys(o.callbacks).length&&o.circuit&&(o.circuit.dispose(),o.circuit=null)}})},1194:function(e,t,n){e.exports={buildConnectionEventManager:function(){var e=[],t=!1;return{handleConnectionEvents:function(t){t.onConnectionRequired.subscribe(i),t.onConnectionRecovered.subscribe(i),t.onChange.subscribe((function(n){n.dead&&(e.splice(e.indexOf(t),1),i())})),e.push(t),i()}};function i(){var i=e.some((function(e){return e.isConnectionRequired()}));i!==t&&(t=i,n(11).trigger(i?"error:audio_no_connection":"error:audio_connection_recovered"))}}}},1195:function(e,t,n){e.exports={buildPlayer:function(e){var t=e.dataPromise,i=e.audioPerformanceReporter,r=e.errorReporter,o=n(9).defer();return t.then((function(e){var t=e.duration,a=e.trackUrn;if("pending"===o.state())return new(n(78).Player)({controllers:[new(n(649).ChromecastPlayerController)({castContext:n(131).getInstance().then((function(e){return e.getContext()}))})],duration:t,streamUrlRetriever:new(n(383).StreamUrlRetriever)({urlsWithRenditions:[{url:a,rendition:n(78).renditions.maestroChromecast}]}),audioPerformanceReporter:function(e){return i(n(0).assign({trackUrn:a,entityType:"soundcloud"},e))},errorReporter:function(e){return r(n(0).assign({trackUrn:a,entityType:"soundcloud"},e))},preloadingEnabled:!0,logger:n(181)})})).then(o.resolve,o.reject),o}}},1196:function(e,t,n){function i(e){return"SNIP"===e}function r(){switch(n(411).getCurrentQuality()){case n(171).HQ:return"high";case n(171).SQ:return"standard";default:return}}function o(e){return{snippet:i(e),qualities:n(411).getCurrentQuality()===n(171).HQ?[n(78).Quality.HQ,n(78).Quality.SQ]:[n(78).Quality.SQ]}}e.exports={buildPlayer:function(e){var t=e.dataPromise,i=e.audioPerformanceReporter,a=e.errorReporter,s=e.audioReporter,u=e.checkpointInterval,l=n(9).defer();return t.then((function(e){var t=e.secretToken,c=e.duration,d=e.getPolicy,f=e.onPolicyOrMediaChange,h=e.getMediaPayload,p=e.trackUrn,g=e.trackId,m=e.getTrackAuthorization;if("pending"===l.state()){var v=function(){return n(0).isFunction(m)?m():null},y={request:function(e){return e.url=n(28).modify(e.url,{query:{stage:n(64).get("stage")}}),n(461).stringLoader.request(e)}},_=n(22).getAuthToken(),b=new(n(452).StreamUrlRetriever)({loader:y,clientId:n(6).get("client_id"),trackId:g,secretToken:t,requestAuthorization:_?"OAuth "+_:null,mediaPayload:h(),trackAuthorization:v()}),w=new(n(78).Player)({controllers:[new(n(647).HLSMSEPlayerController)(n(351).fading),new(n(180).HTML5PlayerController)(n(351).fading)],duration:c,streamUrlRetriever:b,getURLOpts:o(d()),streamUrlsExpire:!0,audioPerformanceReporter:function(e){return i(n(0).assign({trackUrn:p,entityType:"soundcloud",audioQualityMode:r()},e))},errorReporter:function(e){return a(n(0).assign({trackUrn:p,entityType:"soundcloud",audioQualityMode:r()},e))},audioReporter:function(e){return s(n(0).assign({audioQualityMode:r()},e))},audioCheckpointInterval:u,fadeOnPauseAndPlay:!0,fadeOnSeek:!0,pausedMaxBufferLength:15e3,playingMaxBufferLength:3e5,logger:n(181)});if(!w.isDead()){var k=function(){A()},A=function(){var e=n(22).getAuthToken();b.updateRequestAuthorization(e?"OAuth "+e:null)},C=function(){A(),b.updateMediaPayload(h()),b.updateTrackAuthorization(v()),w.reload(o(d()))},S=function(){w.reload(o(d()))};w.onChange.subscribe((function(e){e.dead&&(n(11).off(null,k),f.remove(C),n(118).off(null,S))})),n(11).on("connect:login connect:logout",k),f.onSignal(C),n(118).on(n(411).STREAMING_QUALITY_SETTING,S)}return w}})).then(l.resolve,l.reject),l}}},1197:function(e,t,n){e.exports={buildPlayer:function(e){var t=e.url,i=e.audioPerformanceReporter,r=e.errorReporter,o=e.audioReporter,a=e.checkpointInterval;if(!t)throw new Error("ExternalAudioAd: requires url");return new(n(78).Player)({controllers:[new(n(180).HTML5PlayerController)(n(351).general)],streamUrlRetriever:new(n(383).StreamUrlRetriever)({urlsWithRenditions:[{url:t,rendition:n(78).renditions.httpMp3}]}),streamUrlsExpire:!1,fadeOnPauseAndPlay:!1,audioPerformanceReporter:function(e){return i(n(0).assign({entityType:"ad_audio"},e))},errorReporter:function(e){return r(n(0).assign({entityType:"ad_audio"},e))},audioReporter:o,audioCheckpointInterval:a,logger:n(181),seekStrategy:n(90).NeverAllowSeekStrategy})}}},1198:function(e,t){e.exports={buildPreloadingManager:function(){var e=[],t=!1;return{registerPlayer:function(t){t.onChange.subscribe((function(n){n.dead&&e.splice(e.indexOf(t),1)})),e.push(t),n()},enablePreloading:function(){t=!0,n()},disablePreloading:function(){t=!1,n()}};function n(){e.forEach((function(e){t?e.enablePreloading():e.disablePreloading()}))}}}},1202:function(e,t,n){e.exports={log:function(e){var t=n(28).stringify({query:e});(new window.Image).src="https://eventlogger.soundcloud.com/audio_error"+t}}},1203:function(e,t,n){"use strict";n.r(t),n.d(t,"include",(function(){return s}));var i=n(0),r=n.n(i),o=n(75),a=n.n(o);function s(){window._qoptions={qacct:"p-47_zcqmJsLHXQ"},r.a.defer(a.a.insertScript,"//secure.quantserve.com/quant.js")}},1204:function(e,t,n){var i=window.Image;e.exports={include:function(){var e=this,t=new(n(68))("visual-iq-page-tracking");n(11).on("layout:change",(function(n){e.adjustViewCounts(t,n),e.pushEvent({event:n.layoutName,layoutViewCounts:e.getViewCounts(t)})})),n(11).on("upload_funnel:save",(function(){e.pushEvent({event:"upload-save"})})),n(11).once("signup:successful",(function(){e.pushEvent({event:"signup-successful"})})),n(0).defer(n(75).insertScript,"https://vt.myvisualiq.net/2/UhSoiql1ezhCaix6DQ3nmQ%3D%3D/vt-235.js")},pushEvent:function(e){var t=e.event,o=e.layoutViewCounts,a=void 0===o?{}:o,s=e.subscriptionTerm,u=void 0===s?null:s,l=e.isFirstSubscription;if(n(230).isOneTrustScanner()||n(32).isCategoryEnabled(n(32).CookieCategory.Performance)){var c=new i;switch(t){case"creator-signup-successful-pro":var d="monthly"===u?"72.35":"yearly"===u?"184.89":void 0;c.src=r(367,{revenue:d,isFirstSubscription:l});break;case"creator-signup-successful-pro-unlimited":var f="monthly"===u?"191.58":"yearly"===u?"471.05":void 0;c.src=r(368,{revenue:f,isFirstSubscription:l});break;case"upload-save":var h=n(6).get("me").getNumTracks()<1;c.src=r(366,{isFirstTimeUpload:h});break;case"signup-successful":c.src=r(364);break;case"upload":1===a.uploadVisitCount?c.src=r(363):c.src=r(365)}}},adjustViewCounts:function(e,t){switch(t.layoutName){case"upload":o(e,"uploadVisitCount");break;case"stats":o(e,"statsVisitCount")}o(e,"allVisitCount")},getViewCounts:function(e){return{uploadVisitCount:e.get("uploadVisitCount")||0,statsVisitCount:e.get("statsVisitCount")||0,allVisitCount:e.get("allVisitCount")||0}}};function r(e,t){var i="https://t.myvisualiq.net/activity_pixel?pt=i&et=a&ago=212&ao=855&px="+e+"&ord="+n(462).generate()+"&r="+Date.now();for(var r in t)if(null!==t[r]&&void 0!==t[r])switch(r){case"revenue":i+="&revenue="+t.revenue;break;case"isFirstSubscription":i+="&u1="+(t.isFirstSubscription?"1":"2");break;case"isFirstTimeUpload":i+="&u1="+(t.isFirstTimeUpload?"1":"0")}return i}function o(e,t){e.set(t,(e.get(t)||0)+1)}},1205:function(e,t,n){var i={name:"rubicon_last_sync",value:"synced",expirationInDays:1,secure:!0};e.exports={include:function(){var e=n(6).get("geoip"),t=n(64).get("rubicon_last_sync"),r=n(6).get("me").getPerk("adFree"),o=n(86).doNotTrack;if(n(230).isOneTrustScanner()||!o&&!r&&!t&&function(e){return n(0).contains(n(60).monetizableCountryCodes(),e.get("country_code"))}(e)){var a={"data-partner":n(6).get("rubiconPartnerCode"),"data-region":e.get("region"),"data-country":e.get("country_code"),"data-endpoint":"eu"};return n(75).insertSandboxedScript("//secure-assets.rubiconproject.com/utils/xapi/multi-sync.js",n(0).omit(a,n(0).isUndefined)).then((function(){return n(64).set(i)}),(function(e){return!1}))}}}},1206:function(e,t,n){e.exports={userId:function(){return n(64).get("rubicon_user_id")}}},1207:function(e,t){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=3)}([function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n(4),function(){if("function"!=typeof window.__tcfapi){var e,t=[],n=window,i=n.document;!n.__tcfapi&&function e(){var t=!!n.frames.__tcfapiLocator;if(!t)if(i.body){var r=i.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",i.body.appendChild(r)}else setTimeout(e,5);return!t}()&&(n.__tcfapi=function(){for(var n=arguments.length,i=new Array(n),r=0;r3&&2===parseInt(i[1],10)&&"boolean"==typeof i[3]&&(e=i[3],"function"==typeof i[2]&&i[2]("set",!0));else if("ping"===i[0]){var o={gdprApplies:e,cmpLoaded:!1,apiVersion:"2.0"};"function"==typeof i[2]&&i[2](o,!0)}else t.push(i)},n.addEventListener("message",(function(e){var t="string"==typeof e.data,i={};try{i=t?JSON.parse(e.data):e.data}catch(e){}var r=i.__tcfapiCall;r&&n.__tcfapi(r.command,r.parameter,r.version,(function(n,i){var o={__tcfapiReturn:{returnValue:n,success:i,callId:r.callId}};t&&(o=JSON.stringify(o)),e.source.postMessage(o,"*")}))}),!1))}}()},function(e,t,n){var i=n(5).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(1)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var i=n(6),r=n(7),o=n(10),a=Object.defineProperty;t.f=n(1)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(0);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(1)&&!n(2)((function(){return 7!=Object.defineProperty(n(8)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(0),r=n(9).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var i=n(0);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}}])},1208:function(e,t,n){e.exports={include:function(){var e;e=n(32).isCategoryEnabled(n(32).CookieCategory.Performance),(window._comscore=window._comscore||[]).push({c1:"2",c2:"16601931",cs_ucfr:e?"1":"0"}),n(75).insertScript("https://sb.scorecardresearch.com/beacon.js",{removeAfterLoad:!0})}}},1209:function(e,t){e.exports=["v2_listening","reco_listening","creator_subs","creator","ads","logged_in_listening"]},121:function(e,t,n){(function(t){var i=/^(?:(?:https?:\/\/)?(?:www\.|m\.)?soundcloud\.com)\b\/?/i,r=/^(?:(?:ht|f)tps?:\/\/|mailto:)/i,o=/^[a-zA-Z0-9.!#$ %&’* +/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,a=["accounts","activate","activity","admin","android","announcements","api","apps","artworks","assets","comments","community-guidelines","connect","customize","creativecommons","creator","creators","dashboard","dropbox","emails","errors","events","explore","facebook","faqs","favorites","feedbacks","feeds","for","forums","genres","gifts","google_plus","groups","guestlist","help","hot","invite","imprint","iphone","ipad","ipod","jobs","join-us","latest","login","logout","mac","me","messages","mobile","music","newsletters","notifications","oauth","oauth2","orders","oembed","pages","partners","people","player","playlists","posts","press","pro","press_release","search","session","sets","settings","signin","sign-in","signup","sign-up","sitemap","sound","sounds","stats","stream","subscription","terms-of-use","tour","tracks","turn_off_notifications","tags","upload","users","videos","waveform","welcome","widgets","widget.xml","widget","widget.json","you","campaigns","contacts","discover","fans","faq","logged_exceptions","manifest.webapp","robots","topics"],s=[];n(663).forEach((function(e){s.unshift(e)}));var u=e.exports={scLinksRegexGlobal:/soundcloud\.com\/[a-zA-Z0-9:_\/?=#&%-]+/g,soundcloudUrlRegex:i,anySCLinkRegex:/^(?:(?:https?:\/\/)?(?:[-\w]+\.)*?soundcloud\.com)\b\/?/i,getReservedKeywords:function(){return a},updateSCLinks:function(e,i){var o,a;return void 0===i&&(i={}),(null==(o=i)?void 0:o.usertext)&&(e=n(109).usertext(e,i)),(null==(a=i)?void 0:a.usertextOneline)&&(e=n(109).usertextOneline(e,i)),(e=t("").html(e)).find("a").each((function(e,i){var o=t(i),a=i.getAttribute("href");if(!r.test(a)){var s=n(28).parse(a);if(s.path){var l=u.getRouteInfo(s.path);if(l)if("listen"===l.name){var c=s.path.split("/").slice(1);o.text(n(349).capitalize(c[0])+" – "+n(349).capitalize(c[1]))}else if("user"===l.name){var d=s.path.split("/")[1];if(u.getReservedKeywords().indexOf(d)>-1)return;o.addClass("g-link-user");var f=i.previousSibling;if(3===(null==f?void 0:f.nodeType)&&/@$/.test(f.textContent))return;i.parentNode.insertBefore(window.document.createTextNode("@"),i),o.text(d)}}}})),e.html()},getRouteInfo:function(e){var t=e.replace(/^\//,"");return n(0).find(s,(function(e){return e.route.test(t)}))},getAudibleModels:function(e){var t=this.filterAudibleLinks(e),i=n(9).defer(),r=t.map((function(e){return"listen"===e.info.name?n(21).resolve.apply(n(21),e.info.params):"playlist"===e.info.name?n(53).resolve.apply(n(53),e.info.params):"discover/(?:sets/:systemPlaylistPermalink)"===e.info.name?n(91).resolve.apply(n(91),e.info.params):void 0}));return n(9).settled(r).always((function(){for(var e=arguments.length,r=new Array(e),o=0;o
-1&&e.push({info:r,link:n}),e}),[])},formatUserGeneratedLink:function(e){var t=n(28).parse(e);return i.test(t.host)?function(e){if(e&&(t=e,n="javascript:",t.trim().substr(0,n.length).toLowerCase()===n))return"";var t,n;return e}(t.path):n(109).usertext.redirectLink(e)},isEmail:function(e){return o.test(e)},usernameLinkForTemplate:function(e,t){return e?n(25).el("a",{href:n(24).getRoute("user",e),class:t||""},[n(12).Utils.escapeExpression(e.username)]):""},getUserLink:function(e){return e?n(24).getRoute("user",e):null}}}).call(this,n(17))},1216:function(e,t,n){"use strict";n.r(t),n.d(t,"dataProvider",(function(){return s}));var i=n(45),r=n.n(i),o=n(231),a=new o.V2MemoryStore({nextStore:new o.V2NetworkStore({endpoints:r.a})}),s=new o.DataProvider(a)},1217:function(e,t,n){var i=function(){"use strict";return function(e){var t=e.fn,n=e.minTaskTime;this.fn=t,this.minTaskTime=n}}(),r=function(){"use strict";function e(){this.isProcessing=!1,this.tasks=[]}var t=e.prototype;return t.add=function(e){var t=e.fn,n=e.minTaskTime,r=new i({fn:t,minTaskTime:n});return this.tasks.push(r),this.processQueue(),r},t.remove=function(e){n(138).removeElement(this.tasks,e)},t.processQueue=function(){var e=this;this.isProcessing||(this.isProcessing=!0,n(1218).requestIdleCallback((function(t){for(;e.tasks.length&&t.timeRemaining()>e.tasks[0].minTaskTime;)e.tasks.shift().fn();e.isProcessing=!1,e.tasks.length&&e.processQueue()})))},e}();e.exports={IdleQueue:r}},1218:function(e,t,n){e.exports={requestIdleCallback:r(window.requestIdleCallback,(function(e){var t=new i;return window.setTimeout((function(){return e(t)}),0)})).bind(window),cancelIdleCallback:r(window.cancelIdleCallback,(function(e){window.clearTimeout(e)})).bind(window)};var i=function(){"use strict";function e(){this.startTime=o(),this.didTimeout=!1}return e.prototype.timeRemaining=function(){return Math.max(0,16-(o()-this.startTime))},e}();function r(e,t){return n(0).isFunction(e)?e:t}function o(){return Date.now()}},122:function(e,t){e.exports={defaultKind:"top",defaultGenre:"all-music",defaultCountry:"all-countries",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"}],countries:[{id:"all-countries"},{id:"AU"},{id:"CA"},{id:"FR"},{id:"GB"},{id:"DE"},{id:"IE"},{id:"NZ"},{id:"NL"},{id:"US"}]}},1223:function(e,t,n){e.exports=n(158).extend({_propagate:!0,data:null,initialize:function(e){this.data=e||{}},stopPropagation:function(){this._propagate=!1},isPropagationStopped:function(){return!this._propagate}})},1233:function(e,t){function n(e){return"/"+Array.prototype.filter.call(arguments,Boolean).join("/")}function i(e,t,n,i){return"recommended"===i&&(i="related"),this.apply("listen-network",{userPermalink:e,soundPermalink:t,secretToken:n,subpage:i})}e.exports=[{name:"listen",route:"(?::secretToken|comment-:id)?",handler:function(e,t,n,i){return this.apply("listen",{userPermalink:e,soundPermalink:t,secretToken:n,commentId:parseInt(i,10)})}},{route:"(?::secretToken/)?groups",code:410,redirect:function(e,t,i){return n(e,t,i)}},{route:"(?::secretToken/)?(likes)",handler:i},{route:"(?::secretToken/)?(reposts)",handler:i},{route:"(?::secretToken/)?(sets)",handler:i},{route:"(?::secretToken/)?(albums)",handler:i},{route:"(?::secretToken/)?(recommended)",handler:i},{route:"(?::secretToken/)?comments(?:/:id)?",redirect:function(e,t,i,r){return n(e,t,i,r?"comment-"+r:null)}},{route:"(?::secretToken/)?related",redirect:function(e,t,i){return n(e,t,i,"recommended")}},{route:"download(?:.(?:mp3|wave|aiff|aac|flac|m4a))?(?:/:secretToken)?",code:410,redirect:function(e,t,i){return n(e,t,i)}},{route:"edit",redirect:function(e,t){return n(e,t)}}]},1234:function(e,t){e.exports=[{name:"playlist",route:":secretToken?",handler:function(e,t,n){return this.apply("listen",{userPermalink:e,playlistPermalink:t,secretToken:n})}},{route:"(?::secretToken/)?(likes|reposts)",handler:function(e,t,n,i){return this.apply("listen-network",{userPermalink:e,playlistPermalink:t,secretToken:n,subpage:i})}},{route:"edit",redirect:function(e,t){return"/"+e+"/sets/"+t}}]},1235:function(e,t){function n(e,t){return this.apply("user",{userPermalink:e,subpage:t})}function i(e,t){return this.apply("user-network",{userPermalink:e,subpage:t})}e.exports=[{name:"user",route:"",handler:function(e){return this.apply("user",{userPermalink:e})}},{route:"(albums)",handler:n},{route:"(reposts)",handler:n},{route:"(sets)",handler:n},{route:"(tracks)",handler:n},{route:"(popular-tracks)",handler:n},{route:"(likes)",handler:i},{route:"(followers)",handler:i},{route:"(following)",handler:i},{route:"(comments)",handler:i},{route:"favorites",redirect:function(e){return"/"+e+"/likes"}},{route:"groups|spotlight",code:410,redirect:function(e){return"/"+e}}]},1236:function(e,t){function n(e){return function(t,n,i,r,o){return t!==this.getCurrentUserPermalink()?this.navigate("/"+t,{replace:!0,trigger:!0}):e.apply(this,arguments)}}e.exports=[{route:"",requiresLogin:!0,handler:n((function(e){return this.apply("stats")}))},{route:":metric(?:/:date/:date)?(/expanded)?",requiresLogin:!0,handler:n((function(e,t,n,i,r){return r&&this.navigateToRoute?this.navigateToRoute("stats",[{metric:t,from:n,to:i}],{replace:!0,trigger:!0}):this.apply("stats",{metric:t,from:n,to:i})}))}]},1237:function(e,t){function n(e){return function(t,n,i,r,o,a){var s=this.getCurrentUserPermalink();return t!==s?this.navigate("/"+t,{replace:!0,trigger:!0}):e.apply(this,arguments)}}e.exports=[{route:"",requiresLogin:!0,handler:n((function(e,t){return this.apply("track-stats",{trackPermalink:t,userPermalink:e})}))},{route:":metric(?:/:date/:date)?(/expanded)?",requiresLogin:!0,handler:n((function(e,t,n,i,r,o){if(o&&this.navigateToRoute){var a={user:{permalink:e},permalink:t};return this.navigateToRoute("track-stats",[a,{metric:n,from:i,to:r}],{replace:!0,trigger:!0})}return this.apply("track-stats",{metric:n,from:i,to:r,trackPermalink:t,userPermalink:e})}))}]},1238:function(e,t,n){function i(e){return this.apply("collection",{subpage:e})}function r(e){return"/"+this.getCurrentUserPermalink()+"/"+e}function o(){return n(0).any(["can_see_revshare_premier_agreement",n(223).KNOWN_CONTENT_MONETIZATION,n(223).UNKNOWN_CONTENT_PAYOUTS],this.getFeatureValue)}function a(){return this.getFeatureValue("can_view_revshare_pro_prospect")}function s(){return this.getFeatureValue("can_see_revshare_pro_agreement")}function u(){return this.getFeatureValue("v2_repost_redirect_page")}e.exports=[{route:"",requiresLogin:!0,redirect:function(){return"/"+this.getCurrentUserPermalink()}},{route:"tracks",requiresLogin:!0,handler:function(){return this.apply("track-manager")}},{route:"(collection)",redirect:function(){return"/you/library"}},{route:"(library)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(likes)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(sets)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(albums)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(following)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(stations)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(history)",requiresLogin:!0,handler:i,meta:{feature:"collection"}},{route:"(followers)",requiresLogin:!0,redirect:r},{route:"(comments)",requiresLogin:!0,redirect:r},{route:"(reposts)",requiresLogin:!0,redirect:r},{route:"subscriptions",requiresLogin:!0,handler:function(e){return this.apply("subscriptions",{subpage:e})}},{route:"premier",handler:function(){return this.isLoggedIn()?o.call(this)?this.apply("oscp",{subpage:""}):s.call(this)?this.apply("track-monetization",{subpage:"agreement"}):a.call(this)?this.apply("track-monetization",{subpage:"onboarding"}):u.call(this)?this.apply("track-monetization",{subpage:"pre-repostnetwork-redirect"}):this.navigate("https://www.repostnetwork.com",{hard:!0}):(this.unauthenticated(),this.unauthenticated())},meta:{sitemap:[{loc:"premier",changefreq:n(63).ChangeFrequency.daily,priority:1}]}},{route:"premier/(?:(agreement|getting-started|faqs))",handler:function(e){return o.call(this)?this.apply("oscp",{subpage:e}):this.navigateToRoute("premier",null,{replace:!0,trigger:!0})}},{route:"premier/(?:(onboarding|resources))",handler:function(e){if(!o.call(this))switch(e){case"onboarding":if(this.getFeatureValue("can_see_revshare_pro_agreement"))return this.navigate("/you/premier",{replace:!0,trigger:!0});if(this.getFeatureValue("can_view_revshare_pro_prospect"))return this.apply("track-monetization",{subpage:e});break;case"resources":if(this.getFeatureValue("can_see_revshare_pro_agreement"))return this.apply("track-monetization",{subpage:e})}return this.apply("error",{type:"404"})}},{route:"insights/overview",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"(stats(?:/.*)?)",requiresLogin:!0,redirect:function(e){return"/"+this.getCurrentUserPermalink()+"/"+e}},{route:"reports",requiresLogin:!0,handler:function(){return this.getFeatureValue("can_see_earnings_dashboard")?this.apply("reports"):this.apply("error",{type:"404"})}},{route:"mastering(?:/tracks/(:id))?",requiresLogin:!0,handler:function(e){return this.apply("mastering",{trackId:e})}}]},1239:function(e,t){e.exports=[{route:"",requiresLogin:!0,handler:function(){return this.apply("developer-apps")}},{route:"new",redirect:function(){return"https://docs.google.com/forms/d/e/1FAIpQLSfNxc82RJuzC0DnISat7n4H-G7IsPQIdaMpe202iiHZEoso9w/viewform"}}]},124:function(e,t,n){var i,r=s(".,'\"()[]-"),o=new RegExp("^[^\\s"+r+"]"),a=new RegExp("(?:^|\\s)[\\s"+r+"]?[^\\s"+r+"]","g");e.exports={sentenceCase:function(e){return e.replace(o,u)},titleCase:function(e){return e.replace(a,u)},permalink:function(e){return n(345)(e).toLowerCase().replace(/\s/g,"-").replace(/[^a-z0-9_-]+/g,"").replace(/^[_-]+|[_-]+$/g,"").replace(/([-_])[-_]+/g,"$1").replace(/^[^a-z]+$/,"$&a")},truncate:function(e,t){return e.length>t?e.slice(0,t-1)+"…":e},regexpEscape:s,truncateFileName:function(e,t){if(!e||e.length<=t)return e;var n=e.split(".").pop();return e=n?e.substring(0,t-2-n.length)+"…."+n:e.substring(0,t)},countLetters:function(e){return(i||(i=new(n(1123))),i).countGraphemes(e)},normalizeString:function(e){return e&&e.toString()}};function s(e){return e.replace(/[-\/\\$\^*+?.()|\[\]{}]/g,"\\$&")}function u(e){return e.toUpperCase()}},1240:function(e,t){e.exports=[{route:"",redirect:"/you/stations"},{route:":stationType/:stationIdentifier",handler:function(e,t){var n=this.getFeatureValue("v2_stations_as_system_playlists")?"station-as-system-playlist":"station";return this.apply(n,{type:e,identifier:t})}}]},1241:function(e,t,n){function i(e,t,i){var r=n(0).findWhere(e,t);return r?r.id:i}e.exports=[{route:"(top|new)?",handler:function(e){var t=this.getQueryParams();return this.apply("charts",{chartKind:i(n(122).kinds,{urlPart:e},n(122).defaultKind),genre:i(n(122).genres,{id:t.genre},n(122).defaultGenre),country:i(n(122).countries,{id:t.country})})},meta:{sitemap:[{loc:"",changefreq:n(63).ChangeFrequency.hourly,priority:1},{loc:"top",changefreq:n(63).ChangeFrequency.hourly,priority:1},{loc:"new",changefreq:n(63).ChangeFrequency.hourly,priority:1}]}}]},1242:function(e,t,n){e.exports=[{route:"",requiresLogin:!1,handler:function(){return this.apply("discover")},meta:{sitemap:[{loc:"",changefreq:n(63).ChangeFrequency.hourly,priority:1}]}},{route:"weekly",requiresLogin:!0,handler:function(){return this.apply("system-playlist",{systemPlaylistPermalink:"weekly"})}},{route:"your-(?::num+)-playback",requiresLogin:!0,handler:function(e){return this.apply("system-playlist",{systemPlaylistPermalink:"your-playback:"+e})}},{route:"sets/:systemPlaylistPermalink",requiresLogin:!1,handler:function(e){return this.apply("system-playlist",{systemPlaylistPermalink:e})}}]},1243:function(e,t,n){e.exports=[{route:"",code:401,handler:function(){return this.apply("people")}},{route:"(following|followers)",redirect:function(e){return"/you/"+e}},{route:"directory(?:/(:alphanum+))?",handler:function(e){return this.apply("people-directory",{subpage:e||"A"})},meta:{sitemap:[{loc:"directory",changefreq:n(63).ChangeFrequency.monthly,priority:1}]}},{route:"finder|genre|find_friends",redirect:"/people"}]},1244:function(e,t,n){e.exports=[{route:"(.*)",handler:function(e){return this.apply("static-page",{pageName:"pages/"+e})},meta:{sitemap:[{loc:"privacy",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"oscp-privacy",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"cookies",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"competition",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"copyright/report",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"copyright",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"dmca_policy",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"model-withdrawal-form",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"contact",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"modern-slavery-act",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"promote-terms-and-conditions",changefreq:n(63).ChangeFrequency.monthly,priority:.5}]}},{route:"embed",handler:function(){return this.apply("widgets")},meta:{sitemap:[{loc:"embed",changefreq:n(63).ChangeFrequency.monthly,priority:.5}]}},{route:"widgets",redirect:"/pages/embed"},{route:"unsubscribed",code:401,handler:function(){return this.apply("unsubscribed")}},{route:"who-we-are",redirect:"/pages/contact"},{route:"(copyright/report/form)",requiresLogin:!0,handler:function(e){return this.apply("copyright-form",{pageName:"pages/"+e})}}]},1245:function(e,t,n){e.exports=[{route:":tag",handler:function(e){var t=r(e.split("/")),n=t.tag,i=t.subpage;return this.apply("tags",{tag:n,subpage:i})}}];var i=["recent-tracks","popular-tracks","playlists"],r=function(e){var t=e.join("/"),r=i[0],o=e[e.length-1];return n(1246)(i,o)&&(r=o,t=e.slice(0,-1).join("/")),{tag:t=decodeURIComponent(t),subpage:r}}},1269:function(e,t,n){e.exports=[{route:"(iphone|android)?",handler:function(e){return this.apply("mobile",{platform:e})},meta:{sitemap:[{loc:"",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"iphone",changefreq:n(63).ChangeFrequency.monthly,priority:.5},{loc:"android",changefreq:n(63).ChangeFrequency.monthly,priority:.5}]}}]},1270:function(e,t){e.exports=[{route:"(content|notifications|streaming|privacy|advertising|verification)?",requiresLogin:!0,handler:function(e){return this.apply("settings",{subpage:e||""})}},{route:"account",requiresLogin:!0,redirect:"/settings"},{route:"extra",redirect:"/settings/content"},{route:"plan",redirect:"/you/subscriptions"},{route:"email",redirect:"/settings/notifications"}]},1271:function(e,t,n){e.exports=[{route:"reset/success",handler:function(){return this.apply("password-reset-success")}},{route:"forgot",handler:function(){return this.isLoggedIn()?this.navigate("/settings",{replace:!0,trigger:!0}):this.apply("signin",{subpage:"forgot"})}},{route:"",handler:function(){return this.isLoggedIn()?this.navigate("/",{replace:!0,trigger:!0}):this.apply("signin")},meta:{sitemap:[{loc:"",changefreq:n(63).ChangeFrequency.monthly,priority:1}]}}]},1273:function(e,t,n){"use strict";function i(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.exports=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r":">",'"':""","'":"'","`":"`"},r=/&(?!\w+;)|[<>"'`]/g,o=/[&<>"'`]/,a=function(e){return i[e]||"&"}},1276:function(e,t,n){"use strict";e.exports=function(e,t,n){if(!e||n&&n.test(t))return t;return e.replace(i,window.encodeURIComponent(t))};var i=/%s/},1277:function(e,t,n){"use strict";var i=n(667);e.exports=function(e,t){if(e.length0){var n=e.data.length;(t-=n)<=0&&(e.data=e.substringData(0,e.data.length+t))}else e.data=""}),(function(){return t>0}),(function(e){var t=void 0;for(;e;)t=e,e=e.nextSibling,t.parentNode.removeChild(t)})),r.innerHTML+(r.innerHTML===o.innerHTML?"":"…")};var r=document.createElement("div"),o=document.createElement("div")},1278:function(e,t,n){"use strict";e.exports=function(){var e=[],t=Math.floor(1e4*Math.random()),n=/xxxLINK[0-9]+\|([0-9]+)xxx/g;return{addPlaceholder:function(n,i){return e.push({href:n,text:i}),"xxxLINK"+t+"|"+(e.length-1)+"xxx"},flatten:function(t,i){var r=t.replace(n,(function(t,n){var r=e[parseInt(n,10)];return r?i(r.href,r.text):t}));return e.length=0,r}}}},1279:function(e,t,n){"use strict";var i=n(667);e.exports=function(e,t){var n=new RegExp("\\S{"+t+",}","g"),o=new RegExp("(\\S{"+Math.floor(t/2)+"}(?=\\S{2}))");if(!n.test(e))return e;return r.innerHTML=e,i(r,(function(e){n.lastIndex=0,n.test(e.data)&&(e.data=e.data.replace(n,(function(e){return e.split(o).filter(Boolean).join("")})))})),r.innerHTML};var r=document.createElement("div")},1280:function(e,t,n){"use strict";var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e,t,n){var o=(e=n?e.replace(n,""):e).match(r)||[],a=i(o,1)[0];if(a&&e.length>t){var s=e.search(r)+a.length,u=Math.floor((t-s)/2);return e.slice(0,s+u)+"…"+e.slice(-u)}return e};var r=/\.[a-z-]{2,30}\//},131:function(e,t,n){var i=6*n(31).MS_IN_SECOND/100,r=!1,o=!1,a=null;window.__onGCastApiAvailable=function(){window.chrome&&window.cast&&window.chrome.cast&&(r=!0,n(11).on("googleCast:start",(function(e){o=!0,a=e.getSafeDeviceName()})),n(11).on("googleCast:end",(function(){o=!1,a=null})))};var s=n(9).defer();e.exports={getInstance:n(0).memoize((function(){var e=(n(72).chrome?n(9).promise((function(e,t){n(75).insertScript("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",{onload:e,onerror:t})})).then(null,(function(){return n(9).reject("Failed to load cast_sender.js")})):n(9).reject("Cast is disabled for browser")).then((function(){return n(9).poll((function(){return r}),100,i).then(null,(function(){return n(9).reject("SDK loaded but unavailable")}))})).then((function(){return n(1136).fromSDK(window.chrome,window.cast)}));return e.then(s.resolve,(function(e){n(111).error("Load failed:",e),s.reject(e)})),e})),getInstanceLazy:function(){return s.promise()},isCasting:function(){return o},safeDeviceName:function(){return a}}},133:function(e,t,n){var i,r=["album","ep","single","compilation"],o=((i={}).playlist=n(2).Lingua.t("Playlist"),i.album=n(2).Lingua.t("Album"),i.ep=n(2).Lingua.t("EP"),i.single=n(2).Lingua.t("Single"),i.compilation=n(2).Lingua.t("Compilation"),i),a=function(e){return function(t){return r.indexOf(t)>-1?t:e}},s=a("playlist"),u=a(null);e.exports={typeToApi:u,apiToType:s,releaseLabels:o,getReleaseLabel:function(e){return o[e]||""},defaultReleaseType:"playlist"}},134:function(e,t,n){"use strict";n.r(t),n.d(t,"getTrackerUrls",(function(){return d})),n.d(t,"log",(function(){return f})),n.d(t,"logEvent",(function(){return h}));var i=n(6),r=n.n(i),o=n(15),a=n(0),s=n.n(a).a.flatten,u={play:["sound_play","SCAudioStart"],skip:["sound_skip"],finish:["sound_finish"],adImpression:["impression"],adClick:["ad_click"],pause:["SCAudioPause"],resume:["SCAudioResume"],first_quartile:["SCAudioFirstQuartile"],second_quartile:["SCAudioSecondQuartile"],third_quartile:["SCAudioThirdQuartile"]},l=function(e){(new window.Image).src=e},c=!1;function d(e,t){return s((u[e]||[]).map((function(e){return t[e]||[]})))}function f(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),c||r.a.get("features")&&(r.a.get("features").has("debug_ad_trackers")&&(window.__sc_ad_trackers=[],l=function(e){window.__sc_ad_trackers.push(e),(new window.Image).src=e}),c=!0),e.map((function(e){return function(e,t){return e.replace(/\[([A-Z]+)\]/g,(function(e,n){switch(n){case"ERRORCODE":return null!=t.errorCode?String(t.errorCode):e;case"CACHEBUSTING":return String((r=1e7,a=99999999,r=Math.ceil(r),a=Math.floor(a),Math.floor(Math.random()*(a-r+1))+r));case"TIMESTAMP":return new Date(o.LinguaLib.dateTimeHelper.nowAtServer()).toISOString();case"CONTENTPLAYHEAD":return null!=t.contentPlayheadInMs?(i=t.contentPlayheadInMs,new Date(i).toISOString().substring(11,23)):e;default:return e}var i,r,a}))}(e,t)})).forEach((function(e){l(e)}))}function h(e,t){return f(d(e,t.trackerUrlsByAdEvent||{}),t)}},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n(40),r=n.n(i),o=n(54),a=n.n(o),s=n(26),u=n.n(s);function l(e,t,n){var i=d(e);return r.a.like(i,t,n).always((function(){i.release()}))}function c(e,t,n){var i=d(e);return r.a.repost(i,t,n).always((function(){i.release()}))}function d(e){var t=u.a.toComponents(e),n=t.collection,i=t.id;return new a.a({id:i,resource_type:f[n]})}var f={tracks:"sound",playlists:"playlist","system-playlists":"system-playlist"}},138:function(e,t,n){var i=Array.isArray,r=function(e,t){return e===t};e.exports={rotateArray:function(e,t){var n=Array.prototype.slice.call(e);(t%=n.length)<0?n.push.apply(n,n.splice(0,-t)):n.unshift.apply(n,n.splice(-t));return n},splitArray:function(e,t,n){void 0===n&&(n=0);var i=e.slice(0,t),r=e.slice(t);return r.length>=n?[i,r]:[i.concat(r),[]]},multisetCompare:function(e,t){return!(!i(e)||!i(t))&&(e===t||o(e,t)&&o(t,e))},equal:function(e,t,n){void 0===n&&(n=r);if(!i(e)||!i(t))return!1;if(e===t)return!0;var o=e.length;if(t.length!==o)return!1;for(var a=0;a-1&&e.splice(n,1)},chunk:function(e,t){var n=[];if(t>=1)for(var i=0;i0},setFieldValidation:function(e,t,i){var r=this.fields[e],o=t===n(57).VALID;r.validity=t,r.isValid===o&&r.message===i||(r.message=i,r.isValid=o,this.trigger("validation:"+e,r))},resetFieldValidation:function(){for(var e=this,t=arguments.length,i=new Array(t),r=0;r0?n(0).flatten(i):Object.keys(this.fields)).map((function(t){return e.fields[t]})).filter((function(e){return null==e?void 0:e.isDirty})).forEach((function(t){t.isDirty=!1,e.trigger("field:clean",{field:t})})),this.isDirty()||this.trigger("form:clean"))},markFieldsDirty:function(){for(var e=this,t=arguments.length,i=new Array(t),r=0;r0&&n(0).flatten(i))&&(i.map((function(t){return e.fields[t]})).filter((function(e){return e&&!e.isDirty})).forEach((function(t){t.isDirty=!0,e.trigger("field:dirty",{field:t})})),o&&this.trigger("form:dirty"))},triggerApplyAll:function(e){var t=this;(e="string"==typeof e?[e]:e).forEach((function(e){return t.trigger("applyAll",e,t.get(e))}))},getModel:function(){throw new Error("Form.getModel is not defined")},syncForm:function(){for(var e=this,t=arguments.length,r=new Array(t),o=0;o0?n(0).flatten(e):n(0).keys(this.fields)}function r(e){return n(0).isObject(e)&&!n(0).isArray(e)}function o(){this.fields=n(0).reduce(this.fields,a,{},this),this.set(n(0).assign(n(0).reduce(this.fields,u,{},this),this.attributes),{silent:!0}),this.resetChanges()}function a(e,t,i){return e[i]=n(0).defaults(n(0).reduce(t,s,{},this),{isDirty:!1}),e}function s(e,t,i){var r;return"function"==typeof t&&!1===n(0).includes(["toFormValue","toModelValue"],i)&&(t=t.call(this)),(null==(r=t)?void 0:r.hold)&&r.release&&this._submodels.push(t),e[i]=t,e}function u(e,t,n){return e[n]=t.defaultValue,e}},1385:function(e,t,n){e.exports=new(n(19))({before:{initialize:function(){i.call(this)}},actions:null,performAction:function(e){var t=this,n=this.actions[e];if("default"===e){if(!n)return;"string"==typeof n&&(e=n,n=this.actions[e])}if("enabled"===n.state){var i=n.fn.apply(this,Array.prototype.slice.call(arguments,1));return i&&"function"==typeof i.state&&("pending"===i.state()&&(this.setActionState(e,"pending"),i.always((function(){"pending"===t.getActionState(e)&&t.setActionState(e,"enabled")}))),i.then((function(n){t.trigger("complete:action:"+e,n)}),(function(n){t.trigger("fail:action:"+e,n)}))),i}},getActionState:function(e){return this.actions[e].state},setActionState:function(e,t){var i=this.actions[e];i.state!==t&&(this.trigger("change:action:"+e,t,i.state),i.state=t,this.buttons&&n(0).each(this.buttons,(function(n,i){n.action===e&&this.setButtonConfig(i,{state:t})}),this))}});function i(){this.actions=n(0).reduce(this.actions,(function(e,t,i){return"default"===i?e.default=t:n(0).isFunction(t)?e[i]={fn:t,state:"enabled"}:e[i]=n(0).assign({state:"enabled"},t),e}),{})}},1386:function(e,t,n){e.exports=new(n(19))({before:{initialize:function(){i.call(this)}},buttons:null,setButtonConfig:function(e,t){var i,r=this.buttons[e],o={};n(0).each(t,(function(e,t){r[t]!==e&&(i=!0,o[t]=r[t]=e)})),i&&this.trigger("change:button:"+e,o)}});function i(){var e=this.buttons;this.buttons={},n(0).each(e,(function(e,t){this.buttons[t]=n(0).clone(e);var i=r.call(this,t);this.setButtonConfig(t,{state:(null==i?void 0:i.state)||"enabled"})}),this)}function r(e){var t=this.buttons[e];return n(0).find(this.actions,(function(e,n){return n===t.action}))}},1387:function(e,t,n){var i=new(n(68))("persistentFormFields","session"),r={fields:[],storeKey:null,saveOnceIn:3e3,restoreAndStoreOnSetup:!1};e.exports=new(n(19))({_isStoringFields:!1,_onFieldsChange:null,after:{setup:function(){this.serialization=n(0).assign({},r,this.serialization),this.serialization.restoreAndStoreOnSetup&&(this.restoreFields(),this.startStoringFields())}},applyTo:function(e){e.constructor.onCleanup=function(e){e.stopStoringFields()}},restoreFields:function(){var e=i.get(this.serialization.storeKey);e&&this.set(e)},startStoringFields:function(){u.call(this)&&(this._isStoringFields=!0,o.call(this,!0))},stopStoringFields:function(){this._isStoringFields&&(this._isStoringFields=!1,o.call(this,!1),this._onFieldsChange=null)},clearStoredValues:function(){i.set(this.serialization.storeKey,null)},_getStore:function(){return i}});function o(e){var t=e?"on":"off";this._onFieldsChange=this._onFieldsChange||n(0).throttle(a.bind(this),this.serialization.saveOnceIn,{leading:!1}),this[t](s.call(this),this._onFieldsChange)}function a(){var e=this,t=this.serialization.fields.reduce((function(t,n){return t[n]=e.get(n),t}),{});i.set(this.serialization.storeKey,t)}function s(){return"change:"+this.serialization.fields.join(" change:")}function u(){return!this._isStoringFields&&this.serialization.storeKey&&this.serialization.fields&&this.serialization.fields.length}},139:function(e,t,n){(function(t){var i,r,o,a,s=30*n(31).MS_IN_SECOND,u="inst_"+Date.now(),l=new RegExp("inst_\\d{13}$");function c(){i.current.dispose()}function d(e){if(e.key){var t=l.exec(e.key);if(t){var n=a.getItem(e.key),s=t[0],u=o[s];u&&null===n?u===i.current?u.store.write():(u.dispose(),delete o[s]):!u&&n&&(o[s]=new r(s))}}}function f(){if(n(220).visible()&&i.size()>1){var e=("0000"+(1679616*Math.random()).toString(36)).substr(-4);n(11).broadcast({excludeThis:!0},"instances:ping",e),n(0).delay((function(){n(220).visible()&&i.each((function(t,n){n!==u&&(t.get("pong")!==e&&(t.dispose(),delete o[n]))}))}),n(31).MS_IN_SECOND)}}function h(e){i.current.set("pong",e)}n(86).localStorage?(i=e.exports={initialize:function(){var e,i,p,g,m=this;for(a=window.localStorage,o={},this.current=o[u]=new r(u),o[u].store.write(),["each","some","every","map","filter","find"].forEach((function(e){m[e]=n(0)[e].bind(n(0),o)})),e=0,i=a.length;e=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0;d--)o(c[d].value,c[d].index);for(var f=0;f0&&x>=_;x--)if(void 0!==d[x].ref&&!(d[x].ref1?i-1:0),o=1;o1?i-1:0),o=1;o1?t-1:0),r=1;r1?o-1:0),s=1;s',linkEnd:""})},{value:"scheduled",label:n(2).Lingua.t("Scheduled"),sublabel:n(2).Lingua.t("Select a date and time for your track to become public.")}]}};e.exports=new(n(19))({applyTo:function(e){t.extend(!0,e,{fields:i,constraints:{scheduledPublicDate:[[n(73),{message:n(2).Lingua.t("Select a date and time.")}],n(363),n(486)],scheduledTimezone:[[n(73),{message:n(2).Lingua.t("Select a time zone.")}]]},constraintConditions:{scheduledPublicDate:{fields:["scheduledPublicDate","scheduledPublic"],check:function(e,t){return t&&(!e||this.getFieldMetadata("scheduledPublicDate").isDirty)}},scheduledTimezone:{fields:["scheduledPublic"],check:function(e){return e}}}})},after:{setup:function(){this.listenTo(this,"change:scheduledPublic",a),this.listenTo(this,"change:availability",r)}},getScheduledAttributes:function(){return["scheduled_public_date","scheduled_timezone","sharing"]},getScheduledAttributesToBeSaved:function(){var e=this.get("scheduledPublic"),t={};return n(6).get("features").has("scheduled_releases")&&(e?(t.scheduled_public_date=+this.get("scheduledPublicDate"),t.scheduled_timezone=this.get("scheduledTimezone")):!1===e&&(t.scheduled_public_date=null,t.scheduled_timezone=null)),t}});function r(){var e=this.get("availability");e&&this.set({sharing:o(e),scheduledPublic:"scheduled"===e})}function o(e){switch(e){case"public":return"public";case"private":case"scheduled":return"private"}}function a(){var e=this.get("scheduledPublic"),t=this.get("sharing");if(null!==e){var n=!e&&"public"===t;this.set({sharing:n?"public":"private",availability:e?"scheduled":t})}}}).call(this,n(17))},1454:function(e,t,n){var i=/\W+/g,r=/^\w\d{10}$/;e.exports=n(82).extend({message:n(2).Lingua.t("This is an invalid ISWC."),check:function(e,t){t(!(e=e.replace(i,"")).length||r.test(e))}})},1455:function(e,t,n){var i=/\W+/g,r=/^\w{5}\d{7}$/;e.exports=n(82).extend({message:n(2).Lingua.t("This is an invalid ISRC."),check:function(e,t){t(!(e=e.replace(i,"")).length||r.test(e))}})},1456:function(e,t,n){var i=/\s+/g,r=/^\d{6,18}$/;e.exports=n(82).extend({message:n(2).Lingua.t("This is an invalid barcode."),check:function(e,t){t(!(e=e.replace(i,"")).length||r.test(e))}})},1458:function(e,t,n){e.exports=n(82).extend({nullable:!1,message:n(2).Lingua.t("Enter at least one territory."),check:function(e,t){t(e&&e.length>0)}})},1459:function(e,t,n){e.exports=n(82).extend({nullable:!1,message:n(2).Lingua.t("You need to select the correct rightsholder for each territory you want to earn money in."),check:function(e,t){t(n(0).every(e||[],i))}});function i(e){var t=n(6).get("me").hasOnlyOneRightsholderLink();return n(0).has(e,"rightsholder_urn")||!t?Boolean(e.territory&&e.rightsholder_urn):Boolean(e.territory)}},1460:function(e,t,n){e.exports=n(1461).extend({check:function(e,t,n){n(!(e[0]&&e[1])||e[0]-1},getOwnerField:function(){return this.fields[0]}});function r(e){return null==e}n(358).applyTo(i.prototype)},1462:function(e,t,n){(function(t){var i=n(651).prototype.model,r={rawTracklist:{defaultValue:""},tracklist:{defaultValue:function(){return new(n(694))}}},o={addRawTracklist:function(){var e=this,t=this.get("rawTracklist"),i=n(302).detectFormat(t);return i===n(302).TracklistFormats.Unsupported?(n(212).userCanBeRecorded()&&n(179).trackEvent("tracklist_error_import_from_text"),n(9).reject()):(this.setFieldDisabled("rawTracklist",!0),n(302).parseTracklist(t,i).then((function(e){return t=e.tracks,i=t.map((function(e){if(e.userPermalink&&e.trackPermalink){var t=e.userPermalink,i=e.trackPermalink,r=e.secretToken;return n(21).resolve(t,i,r).then((function(e){return{artist:e.get("user").username,title:e.get("title"),urn:e.getUrn(),url:e.get("permalink_url")}}))}if(!e.userPermalink&&!e.trackPermalink)return n(9).resolve(e)})).filter(Boolean),r=n(9).defer(),n(9).settled(i).always((function(){for(var e=arguments.length,t=new Array(e),n=0;n-1})),t):t},toURL:function(e){var t="string"==typeof e?o.parse(e):e;return"commons"===t.license?"http://creativecommons.org/licenses/"+o.serializeCCAttributes(t).replace(/^cc-/,"")+"/3.0/":""},serializeCCAttributes:function(e){var t=Object.keys(r).map((function(t){return e[t]&&r[t]}),this).filter(n(0).identity).join("-");return t?"cc-"+t:"cc-by"}}},153:function(e,t,n){var i=e.exports={genreLabel:function(e){return n(269).genreLabels[e]},genres:function(e){return n(0).where(n(122).genres,{category:e})},getGenre:r,genreUrn:function(e){return"soundcloud:genres:"+e},regionUrn:function(e){return"soundcloud:regions:"+e},chartKindLabel:function(e){return o[e]},chartKinds:function(){return n(122).kinds},chartCountryLabel:function(e){return a[e]},chartCountries:function(){return n(122).countries},getChartCountry:function(e,t,r){return e&&(t||(t=r),i.chartCountryLabel(t))?t:n(122).defaultCountry},userGenreToChartGenre:function(e){return e&&r(function(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")}(e))||r("all-music")},isGenreLabel:function(e){var t=n(0).escape(e);return e&&n(269).isSupportedGenre(t)},getTranslationFromEnglish:function(e){var t=n(0).escape(e),i=n(0).findKey(n(269).englishLabels,(function(e){return e===t}));return n(269).genreLabels[i]},getUnescapedTranslationFromEnglish:function(e){return n(0).unescape(this.getTranslationFromEnglish(e).toString())},getEnglishGenreLabel:function(e){return e&&n(269).englishLabels[e]},taglines:function(e,t,r){void 0===r&&(r="all-countries");var o=i.genreLabel(t),s=i.getGenre(t),u=s.category+"-"+e+"-"+s.content,l=r in a?a[r]:a["all-countries"];switch(u){case"all-trending-music":return{short:n(2).Lingua.t("New & hot tracks"),long:r&&"all-countries"!==r?n(2).Lingua.t("New top trending songs, tracks, music albums this week in [[countryLabel]] on SoundCloud",{countryLabel:l}):n(2).Lingua.t("Top 50 charts - new trending songs, tracks, music albums this week on SoundCloud")};case"all-trending-audio":return{short:n(2).Lingua.t("New & hot audio"),long:n(2).Lingua.t("Up-and-coming audio on SoundCloud")};case"all-top-music":return{short:n(2).Lingua.t("Top 50 tracks"),long:r&&"all-countries"!==r?n(2).Lingua.t("Top 50 in [[countryLabel]] - songs, tracks, music albums this week on SoundCloud",{countryLabel:l}):n(2).Lingua.t("Listen to the top played music charts on SoundCloud this week")};case"all-top-audio":return{short:n(2).Lingua.t("Top 50 audio"),long:n(2).Lingua.t("The most played audio on SoundCloud this week")};case"music-trending-music":return{short:n(2).Lingua.t("New & hot in [[[genreLabel]]]",{genreLabel:o}),long:r&&"all-countries"!==r?n(2).Lingua.t("New top trending [[[genreLabel]]] songs, tracks, music albums this week in [[countryLabel]] on SoundCloud",{countryLabel:l,genreLabel:o}):n(2).Lingua.t("New top trending [[[genreLabel]]] songs, tracks, music albums this week on SoundCloud",{genreLabel:o})};case"music-top-music":return{short:n(2).Lingua.t("Top 50 in [[[genreLabel]]]",{genreLabel:o}),long:r&&"all-countries"!==r?n(2).Lingua.t("Top 50 in [[countryLabel]] - [[[genreLabel]]] songs, tracks, music albums on SoundCloud",{countryLabel:l,genreLabel:o}):n(2).Lingua.t("Top 50 [[genreLabel]] - songs, tracks, music albums on SoundCloud",{genreLabel:o})};case"audio-trending-audio":return{short:n(2).Lingua.t("New & hot in [[[genreLabel]]]",{genreLabel:o}),long:n(2).Lingua.t("Up-and-coming in [[[genreLabel]]] on SoundCloud",{genreLabel:o})};case"audio-top-audio":return{short:n(2).Lingua.t("Top 50 in [[[genreLabel]]]",{genreLabel:o}),long:n(2).Lingua.t("The most played in [[[genreLabel]]] on SoundCloud this week",{genreLabel:o})};default:0}},heading:function(e,t,r){void 0===r&&(r="all-countries");var o=i.genreLabel(t),s=r in a?a[r]:a["all-countries"];return"all-music"!==t&&"all-countries"===r?function(e,t){if("trending"===e)return n(2).Lingua.t("Top New and Trending [[[genre]]] Tracks",{genre:t});return n(2).Lingua.t("Top [[[genre]]] music - songs, albums and tracks",{genre:t})}(e,o):"all-music"===t&&"all-countries"!==r?function(e,t){if("trending"===e)return n(2).Lingua.t("Top New and Trending Tracks in [[country]]",{country:t});return n(2).Lingua.t("Top 50 tracks in [[country]]",{country:t})}(e,s):"all-music"!==t&&"all-countries"!==r?function(e,t,i){if("trending"===e)return n(2).Lingua.t("Top New and Trending [[[genre]]] Tracks in [[country]]",{country:t,genre:i});return n(2).Lingua.t("Top 50 [[[genre]]] tracks in [[country]]",{country:t,genre:i})}(e,s,o):function(e){if("trending"===e)return n(2).Lingua.t("Top New and Trending Tracks");return n(2).Lingua.t("Top charts and tracks")}(e)}};function r(e){return n(0).findWhere(n(122).genres,{id:e})}var o={trending:n(2).Lingua.t("New & hot"),top:n(2).Lingua.t("Top 50")},a={"all-countries":n(2).Lingua.t("All countries"),AU:n(2).Lingua.t("Australia"),CA:n(2).Lingua.t("Canada"),DE:n(2).Lingua.t("Germany"),FR:n(2).Lingua.t("France"),GB:n(2).Lingua.t("United Kingdom"),IE:n(2).Lingua.t("Ireland"),NL:n(2).Lingua.t("Netherlands"),NZ:n(2).Lingua.t("New Zealand"),US:n(2).Lingua.t("USA")}},1532:function(e,t,n){var i=15*n(31).MS_IN_MINUTE;e.exports=n(47).extend({defaults:{pollingInterval:i},url:function(){return n(0).result(this,"baseUrl")},parse:function(e){return e},fetch:function(e){return(null==e?void 0:e.url)||n(0).result(this,"url")?n(35).Collection.prototype.fetch.call(this,e):n(9).defer().done(null==e?void 0:e.success).resolve([])},bulkFetch:function(){return this.fetch()},setLimit:n(0).noop,isFullyPopulated:function(){return!1},startPolling:function(){this.isPolling()||(this._pollingId=window.setInterval(this.fetch.bind(this),this.options.pollingInterval))},stopPolling:function(){window.clearInterval(this._pollingId),this._pollingId=null},isPolling:function(){return!!this._pollingId}})},154:function(e,t,n){"use strict";n.r(t),n.d(t,"INSIGHTS_ROLLOUT",(function(){return a})),n.d(t,"insightsSwitchedOn",(function(){return u})),n.d(t,"hasUploads",(function(){return l})),n.d(t,"toggleInsights",(function(){return c})),n.d(t,"enableInsights",(function(){return d})),n.d(t,"disableInsights",(function(){return f}));var i=n(6),r=n.n(i),o=n(68),a="v2_can_see_insights",s=new(n.n(o).a)("insights");function u(){return s.get("enabled")}function l(){return r.a.get("me").hasUploads()}function c(e){void 0===e&&(e=!s.get("enabled")),s.set("enabled",e)}function d(){c(!0)}function f(){c(!1)}void 0===s.get("enabled")&&d()},156:function(e,t,n){var i=["K","M","B"],r={max:null,suffix:"+",useSIUnits:!1,precision:null};e.exports={render:function(e,t){if("number"!=typeof e)return e;var o=0,a="",s=0;if(t=t||{},n(0).defaults(t,r),t.max&&e>t.max)e=t.max,a=t.suffix;else if(t.useSIUnits){if(null===t.precision&&e<1e4)return n(15).LinguaLib.numberHelper.format(e);for(;e>=1e3&&o-1)return!1;var n=e.isFullyPopulated(),i=h.call(this,e);return(!n||io,u=r&&s||0===a&&this.isFullyPopulated();(u||s)&&(this.lastFetchTime=Date.now()),u&&this.trigger("reset",this,{})}function l(e,t,n){var i=t.indexOf(e);if(T.call(this,i,t,!0)){var r=i+s.call(this,t);this.lastFetchTime=Date.now(),0!==this._sourceModels.length||n.silent||this.trigger("reset",this,{}),y.call(this,e,t,r,n),b.call(this),w.call(this,n)}}function c(e,t,n){var i=n.index;if(T.call(this,i,t,!1)){var r=i+s.call(this,t);_.call(this,e,t,r)}}function d(e){switch(e){case"add":case"remove":case"reset":case"destroy":return;default:this.trigger.apply(this,arguments)}}function f(e,t){var i=this,r=this.length,o=r+e,a={silent:t},s=!this.lastFetchTime,u=0;return this.sources.every((function(t,r){var l,c,d;if(n(0).contains(i._ignoredCollections,r))return!0;for(var f=i._sourceModelCounts[r];!p.call(i,t)&&i.lengthr}function h(e){return this._sourceModelCounts[this.sources.indexOf(e)]}function p(e){var t=this.sourceOptions[this.sources.indexOf(e)];if(null==t.maxModels)return!1;var i,r,o,a,u,l=this._ignore,c=h.call(this,e),d=s.call(this,e),f=c-(i=l,r=d,o=d+c,a=n(0).sortedIndex(i,r),(u=n(0).sortedIndex(i,o))-a+(i[u]===o?1:0));return t.maxModels<=f}function g(e){for(var t=e,n=0,i=this._ignore.length;n-1)for(var n=0,i=this.sources.length;n=o))return{source:r,index:t,model:r.at(t)};t-=o}}function v(e){var t=this.sources.indexOf(e);t>-1&&ti&&n[t]++}var s=i===this._sourceModels.length?function(e,t){e.push(t)}:function(e,t){e.splice(i,0,t)};if(e instanceof this.model||(e=this.extractModel(e,i)),e){this._sourceModelCounts[this.sources.indexOf(t)]++;var u=this.indexesOfEquivalentModels(e,this._sourceModels);u.forEach((function(e){e>=i&&o._dupes[e].push(i)})),s(this._sourceModels,e),s(this._dupes,u.filter((function(e){return ei&&n[t]--}var a=i===this._sourceModels.length-1?function(e){e.pop()}:function(e){e.splice(i,1)};a(this._sourceModels),a(this._dupes),n(0).each(this._map,(function(e){e.remove(i)})),this._dupes.slice(i).forEach((function(e,t){var a=t+i;r._dupes[a]=n(0).without(r._dupes[a],i),r._dupes[a].forEach(o)})),this._sourceModelCounts[this.sources.indexOf(t)]--,b.call(this),w.call(this)}function b(){for(var e=0,t=n(0).isEmpty(this._map)?L(this._sourceModels.length):n(478).combine(n(0).values(this._map)),i=function(e,n){return e&&!t.get(n)},r=0;r0?(this.options.limit=o,A.call(this,n(0).omit(e,"url")).always((function(){i.options.limit=r}))):void 0}}function E(){var e=this.setupSources();this.sources=e.map((function(e){return[].concat(e)[0]})),this.sourceOptions=e.map((function(e){return[].concat(e)[1]||{}})),this._sourceModelCounts=e.map((function(){return 0}))}function x(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length-1);var o,a=0;for(o=i;o<=r&&a-1},normalizeLocale:function(e){var t=e.split("-")[0];return n(0).contains(u,t)?t:e}}},1726:function(e,t,n){var i,r=null==(i=window.performance)?void 0:i.timing,o=!0;e.exports=r?new(n(19))({defaults:{performanceSelector:null},around:{dispose:a("Layout#dispose"),switchLayout:a("Layout#switchLayout")},after:{render:function(){var e,t=this;o&&(o=!1,(e=this.performanceSelector)&&function(e,t,n){var i=window,r=i.setTimeout(a,t),o=i.setInterval(s,50);function a(){i.clearTimeout(o),i.clearTimeout(r)}function s(){e()&&(a(),n())}s()}((function(){return t.$(e).length}),2e4,(function(){var e=Date.now()-r.fetchStart;n(11).trigger("tracking:appLoad",{latency:e})})))}}}):new(n(19))({});function a(e){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i= 4.3.0"],main:function(e,t,n,i,r){return'\n'},useData:!0})},1729:function(e,t,n){var i=n(10),r=n(1730);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},173:function(e,t,n){var i={URGENT:1,HIGH:2,MEDIUM:3,LOW:4};e.exports={addAjaxScheduling:function(e,t){void 0===t&&(t=!1);return function(t,o){var a=n(0).isObject(t)?n(0).clone(t):o;t=n(0).isString(t)?t:a.url;var s,u=a.priority||i.MEDIUM,l=n(28).parse(t),c=l.host,d=(l.path,function(e){r.has(e)||r.set(e,new(n(547).AsyncTasksQueue)(6));return r.get(e)}(c).addTask((function(){0;return s=e(t,a)}),u));return n(0).assign({},d.defer,{abort:function(){s&&s.abort();d.cancel()}})}},RequestPriorities:i};var r=new Map},1730:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),o=n(5),a=n.n(o)()(r.a);a.push([e.i,".l-fixed-fluid{position:relative}.l-fixed-fluid .l-sidebar-left{position:absolute;top:30px;bottom:0;left:0;width:200px}.l-fixed-fluid .l-sidebar-left .l-fixed{width:200px}.l-fixed-fluid .l-main{margin:0 0 0 230px;padding-top:30px}.l-fixed-fluid .l-sidebar-left>.l-footer{position:fixed;bottom:0;width:200px}@media (max-width:1079px){.l-fixed-fluid .l-main{margin-left:220px}}","",{version:3,sources:["webpack://./app/lib/layouts/fixed-fluid.css"],names:[],mappings:"AAAA,eAAe,iBAAiB,CAAC,+BAA+B,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,wCAAwC,WAAW,CAAC,uBAAuB,kBAAkB,CAAC,gBAAgB,CAAC,yCAAyC,cAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,0BAA0B,uBAAuB,iBAAiB,CAAC",sourcesContent:[".l-fixed-fluid{position:relative}.l-fixed-fluid .l-sidebar-left{position:absolute;top:30px;bottom:0;left:0;width:200px}.l-fixed-fluid .l-sidebar-left .l-fixed{width:200px}.l-fixed-fluid .l-main{margin:0 0 0 230px;padding-top:30px}.l-fixed-fluid .l-sidebar-left>.l-footer{position:fixed;bottom:0;width:200px}@media (max-width:1079px){.l-fixed-fluid .l-main{margin-left:220px}}"],sourceRoot:""}]),t.default=a},1731:function(e,t,n){var i=n(12);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return'\n'},useData:!0})},1737:function(e,t,n){function i(e){var t,i=e.name.replace(/\.[a-z0-9]{2,}$/,"");return t=i.replace(/_/g," ").replace(/(\S)-(\S)/g,"$1 - $2"),(t=n(349).capitalize(t).trim())||i.trim()}function r(e){for(var t=e.length,n=new Array(t),i=0;i=this.maxResults&&(this.next_href=!1),!1===this.next_href?n(9).resolve():n(23).prototype.fetch.call(this,{priority:e}).then((function(){o.call(t,e)}))}},1773:function(e,t,n){var i=function(){this.setup.apply(this,arguments)};i.extend=n(35).Model.extend,n(0).assign(i.prototype,n(35).Events,{constructor:i,currentComment:null,activeTimestamp:null,currentTimestamp:null,commentQuotaTimeout:null,commentQuotaExceeded:!0,commentIntervalTimeout:null,commentIntervalExceeded:!0,currentState:n(51).INITIAL,interactingWithComments:!1,setup:function(e,t,i){this.collection=new(n(499))(null,{sound_id:e,secret_token:i}),this.listenTo(this,n(51).INITIAL,this.onInitialState).listenTo(this,n(51).CURRENT_COMMENT,this.onCurrentComment).listenTo(this,n(51).CURRENT_TIMESTAMP,this.onCurrentTimestamp).listenTo(this,n(51).ACTIVE_TIMESTAMP,this.onActiveTimestamp),this.sound=new(n(21))({id:e,resource_id:t}),this.listenTo(this.sound,"time",this.onAudioTime)},dispose:function(){this.stopListening(),this.sound.release(),this.collection.release()},onInitialState:function(){this.activeTimestamp=null,this.currentComment=null,this.currentTimestamp=null},onCurrentComment:function(e,t){this.activeTimestamp=null,this.currentComment=t,this.currentTimestamp=null},onCurrentTimestamp:function(e){this.activeTimestamp=null,this.currentComment=null,this.currentTimestamp=e},onActiveTimestamp:function(e){this.activeTimestamp=e,this.currentComment=null,this.currentTimestamp=null},goToState:function(e){var t=this.canGoToState.apply(this,arguments);return t&&(this.currentState=e,this.trigger.apply(this,arguments)),t},canGoToState:function(e){var t=this.activeTimestamp&&this.currentState===n(51).ACTIVE_TIMESTAMP;switch(e){case n(51).CURRENT_TIMESTAMP:return!t;case n(51).CURRENT_COMMENT:return this.commentIntervalExceeded&&arguments[1]!==this.currentComment&&!t;case n(51).INITIAL:return!0;case n(51).ACTIVE_TIMESTAMP:var i=arguments[1];return i!==this.activeTimestamp&&i<=this.sound.isPlayable()?this.sound.getMediaDuration():this.sound.getFixedDuration();default:return!1}},onAudioTime:n(0).throttle((function(e){var t=this;if(!this.disposed){var i,r=e.sound.currentTime(),o=window;!this.interactingWithComments&&this.sound.isPlaying()&&((i=this.collection.getCommentAtTimestamp(r,300))?this.goToState(n(51).CURRENT_COMMENT,r,i)&&(o.clearTimeout(this.commentIntervalTimeout),this.commentIntervalExceeded=!1,o.setTimeout((function(){t.commentIntervalExceeded=!0}),1e3),o.clearTimeout(this.commentQuotaTimeout),this.commentQuotaExceeded=!1,this.commentQuotaTimeout=o.setTimeout((function(){t.commentQuotaExceeded=!0,t.onAudioTime(e)}),3e3)):this.commentQuotaExceeded&&this.goToState(n(51).CURRENT_TIMESTAMP,r))}}),300)}),e.exports=n(346).applyTo(i,{onCleanup:function(e){e.dispose()},cleanupInstantly:!0,hashFn:function(e){return e}})},1783:function(e,t,n){e.exports=n(158).extend([n(35).Events,{_layers:null,_raf:null,initialize:function(){this._layers=[],this.update=this.update.bind(this)},teardown:function(){var e;for(window.cancelAnimationFrame(this._raf),this._raf=null;e=this._layers.pop();)this.stopListening(e)},getLayers:function(){return this._layers},addLayer:function(e){this._layers.push(e),this.listenTo(e,"dirty",i),e.isDirty&&r.call(this)},update:function(){var e,t;for(this._raf=null,e=0;t=this._layers[e];++e)t.isDirty&&t.update()}}]);function i(){r.call(this)}function r(){this._raf||(this._raf=window.requestAnimationFrame(this.update))}},1784:function(e,t,n){e.exports=n(424).extend({className:"g-box-full sceneLayer",addNode:function(e){var t=new(0,e[0])(n(0).assign({el:this.el,scale:this.scale},e[1]));t.className&&this.$el.addClass(t.className),this.addSubview(t).on("dirty",i,this).render()},onCanvasResize:function(){n(0).invoke(this.subviews,"onResize")},setDirty:function(e){(this.isDirty=e)&&this.trigger("dirty")},update:function(){if(!this.disposed&&this.isDirty){var e,t=!1;this.context.clearRect(0,0,this.el.width,this.el.height);for(var n=0;e=this.subviews[n];++n)e.draw(),t=t||e.isDirty;this.setDirty(t)}}});function i(){this.setDirty(!0)}},179:function(e,t,n){function i(){var e,t,n,i,r,o,a,s;window.__FullStory__||(window._fs_debug=!1,window._fs_host="fullstory.com",window._fs_script="edge.fullstory.com/s/fs.js",window._fs_org="M1AMT",window._fs_namespace="__FullStory__",e=window,t=document,n=window._fs_namespace,i="script",r="user",n in e?e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'):((a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)}).q=[],(o=t.createElement(i)).async=1,o.crossOrigin="anonymous",o.src="https://"+_fs_script,(s=t.getElementsByTagName(i)[0]).parentNode.insertBefore(o,s),a.identify=function(e,t,n){a(r,{uid:e},n),t&&a(r,t,n)},a.setUserVars=function(e,t){a(r,e,t)},a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.anonymize=function(){a.identify(!1)},a.shutdown=function(){a("rec",!1)},a.restart=function(){a("rec",!0)},a.log=function(e,t){a("log",[e,t])},a.consent=function(e){a("consent",!arguments.length||e)},a.identifyAccount=function(e,t){o="account",(t=t||{}).acctId=e,a(o,t)},a.clearUserCookie=function(){},a.setVars=function(e,t){a("setVars",[e,t])},a._w={},s="XMLHttpRequest",a._w[s]=e[s],s="fetch",a._w[s]=e[s],e[s]&&(e[s]=function(){return a._w[s].apply(this,arguments)}),a._v="1.3.0"),window.__FullStory__.shutdown())}e.exports=n(0).mapObject({start:function(){return window.__FullStory__.restart()},stop:function(){return window.__FullStory__.shutdown()},trackEvent:function(e,t){return window.__FullStory__.event(e,t)}},(function(e){return function(){if(n(32).isCategoryEnabled(n(32).CookieCategory.Performance))return i(),e.apply(void 0,arguments)}}))},181:function(e,t,n){var i=n(454)({label:"scaudio",enabled:!0,buffer:!0});e.exports={debug:i.log,info:i.info,warn:i.warn,error:i.error}},183:function(e,t,n){e.exports=new(n(19))({applyTo:function(e,t){var n=t.events;var i=[];this.after(e,{setup:function(){var e=this.constructor;-1===i.indexOf(e)&&(i.push(e),n.forEach((function(t){var n=t.emitter,i=t.event,r=t.getInstance,o=t.handler;n.on(i,(function(){for(var t=arguments.length,n=new Array(t),i=0;i-1||(this.el.appendChild(e.canvas.el),e.canvas.updateCanvasDimensions(),this.layers.push(e),e.onDirty(this.onDirtyLayer),e.isDirty&&this.queueUpdate())},e.prototype.dispose=function(){var e;for(this.raf&&(window.cancelAnimationFrame(this.raf),this.raf=null);this.layers.length;)(e=this.layers.pop())&&e.dispose();this.disposed=!0},e.prototype.update=function(e){this.raf=null,this.layers.forEach((function(t){return t.update(e)}))},e.prototype.forceUpdate=function(){this.layers.forEach((function(e){e.nodes.forEach((function(e){e.reset(),e.setDirty(!0)}))}))},e.prototype.queueUpdate=function(){var e=this;this.raf||(this.raf=window.requestAnimationFrame((function(){return e.update()})))},e}();t.Scene=r},1850:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleString=function(e){var t=document.createElement("div"),n=t.style;return Object.keys(e).forEach((function(t){n.setProperty(t,String(e[t]))})),t.getAttribute("style")||""}},1851:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(1852),a=function(e){function t(){var t=e.call(this)||this;return t.onCanvasResize=function(){t.nodes.forEach((function(e){e.reset(),e.setDirty(!0)}))},t.onDirtyNode=function(){t.setDirty(!0)},t.nodes=[],t.currentState=null,t.disposed=!1,t.canvas=new o.Canvas,t.canvas.onResize(t.onCanvasResize),t}return r(t,e),t.prototype.update=function(e){if(void 0===e&&(e=this.currentState),!this.disposed&&e&&this.shouldLayerUpdate(e)){this.currentState=e,this.canvas.context.clearRect(0,0,this.canvas.width,this.canvas.height);var t=this.nodes.reduce((function(t,n){return n.update(e),t||n.isDirty}),!1);this.setDirty(t)}},t.prototype.addNode=function(e){this.disposed||(this.nodes.push(e),e.onDirty(this.onDirtyNode))},t.prototype.dispose=function(){this.nodes.forEach((function(e){return e.dispose()})),this.nodes=[],this.disposed=!0},t.prototype.setDirty=function(t){this.disposed||e.prototype.setDirty.call(this,t)},t.prototype.shouldLayerUpdate=function(e){var t=this;return this.nodes.some((function(n){return e&&n.shouldUpdate(e,t.currentState||void 0)||n.isDirty}))},t}(n(731).CanBeDirty);t.SceneLayer=a},1852:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(501),r=n(225),o=n(730),a=n(370),s=function(){function e(){var e=this;this._onResize=new o.EventDispatcher,this.onWindowResize=function(){e.updateCanvasDimensions(),e._onResize.dispatch(void 0)},this.el=document.createElement("canvas"),this.el.setAttribute("style",a.box),this.el.setAttribute("aria-hidden","true");var t=this.el.getContext("2d");if(null===t)throw new Error("Could not get 2d context for canvas");this.context=t,this.scale=i.getPixelRatio(),this.disposed=!1,this.width=0,this.height=0,this.updateCanvasDimensions(),window.addEventListener("resize",this.onWindowResize)}return e.prototype.onResize=function(e){this._onResize.subscribe(e)},e.prototype.dispose=function(){window.removeEventListener("resize",this.onWindowResize),this.disposed=!0},e.prototype.getCanvasGradient=function(e,t){return e.reduce((function(e,n){var i=n.color,o=n.offset;return e.addColorStop(o,r.colorToString(r.cloneColor(i,t))),e}),this.createLinearGradient())},e.prototype.updateCanvasDimensions=function(){this.disposed||(this.el.width=this.width=this.el.offsetWidth*this.scale,this.el.height=this.height=this.el.offsetHeight*this.scale,i.isHiDPI()&&1!==this.scale&&this.context.scale(this.scale,this.scale))},e.prototype.createLinearGradient=function(){return this.context.createLinearGradient(0,0,0,this.height/this.scale)},e}();t.Canvas=s},1853:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=function(e,t,n){return Math.min(n,Math.max(t,e))}},1857:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.timecode=function(e){var t=[],n=Math.floor(e/36e5),i=Math.floor(e/6e4%60),r=Math.floor(e/1e3%60);return n>0&&t.push(n),t.push(i<10&&n>0?"0"+i:i),t.push(r<10?"0"+r:r),t.join(":")},t.ms2sec=function(e){return Math.floor(e/1e3)}},1859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(501),r=function(e,t,n){var r;this.maxHeight=e,this.samples=t.reduce((function(t,n,i){return t[i]=function(e,t){return Math.round(Math.pow((e-t)/e,1/1.5)*e)}(e,n),t}),(r=t.length,i.supportsTypedArrays()?new Uint8Array(r):new Array(r))),this.duration=n};t.WaveformData=r},1860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_THEME=void 0;var i=n(225),r=n(502),o=i.rgb(68,68,68),a=i.rgb(140,140,140);t.BASE_THEME={backgroundGradient:[i.colorStop(0,a),i.colorStop(.7,a),i.colorStop(.701,i.cloneColor(a,.5)),i.colorStop(1,i.cloneColor(a,.5))],gapGradient:[i.colorStop(0,i.cloneColor(r.WHITE,0)),i.colorStop(.28,i.cloneColor(r.WHITE,.3)),i.colorStop(.7,i.cloneColor(r.WHITE,.5)),i.colorStop(.701,i.cloneColor(r.WHITE,.125)),i.colorStop(1,i.cloneColor(r.WHITE,0))],progressGradient:[i.colorStop(0,o),i.colorStop(.7,o),i.colorStop(.701,i.cloneColor(o,.5)),i.colorStop(1,i.cloneColor(o,.5))],durationIndicatorBg:i.cloneColor(r.BLACK,.8),durationIndicatorColor:r.ASH}},189:function(e,t,n){var i,r=["3ga","3gp","aac","aif","aiff","aifc","amr","caf","flac","m4a","mp2","mp3","mp4","ogg","wav","wma"],o=[".DS_Store"],a=e.exports=n(47).extend({next_href:!1,model:n(296),transferStatus:null,transcodingStatus:null,uploadQueue:null,setup:function(){this.transferStatus=new(n(360)),this.transcodingStatus=new(n(360)),this.uploadQueue=new(n(547).AsyncTasksQueue)(3),this.listenTo(this,"change:status",v).listenTo(this,"remove",m).listenTo(this,"change:hasBeenSaved",h,this)},addFiles:function(e,t){var i=this;return void 0===t&&(t={}),function(e){var t=e.length&&s(e[0]);if(!t)return n(9).resolve(n(0).toArray(e));return u(n(0).map(e,(function(e){return e[t]()}))).then((function(e){return e.map((function(e){return e.file}))}))}(e).then((function(e){var r=i.getValidFiles(e),o=n(6).get("me"),a=!o.hasTrackLimit()||r.length<=o.getTracksLeft(),s=[];return r&&r.length&&a?s=i.addFilesAsUploads(r,t.replaceSoundUploadId?{resource_id:t.replaceSoundUploadId}:null):(a||n(11).trigger("upload:over-track-quota"),s)}))},getValidFiles:function(e){var t=this;void 0===e&&(e=[]);var i=e.filter((function(e){return n(0).contains(o,e.name)})),r=n(0).without.apply(n(0),[e].concat(i)).map(f),a=n(0).flatten(n(0).pluck(r,"errors"));return n(0).each(n(0).countBy(a),(function(e,n){t.trigger("error",{type:n,count:e})})),n(0).pluck(r.filter((function(e){return!e.errors.length})),"file")},addFilesAsUploads:function(e,t){return n(0).chain(e).map((function(e){return function(e,t){var i=new(n(296))({file:e},t);return i.release(),i}(e,t)})).map(d,this).compact().value()},addUploadsAsAggregate:function(e){return c(e)},addUploadsToAggregate:function(e,t){var n=c(null,{resource_id:t});return n.addUploads(e),n},numToUpload:function(){return this.uploadsByStatus(n(62).QUEUED+n(62).UPLOADING).length},numUploading:function(){return this.uploadsByStatus(n(62).UPLOADING).length},numTransoding:function(){return this.uploadsByStatus(n(62).TRANSCODING).length},hasUnsaved:function(){return this.some((function(e){return!1===e.get("hasBeenSaved")}))},uploadsByStatus:function(e){return this.getSoundUploads().filter((function(t){return t.get("status")&e}))},getSoundUploads:function(){return this.models},pause:function(){this.uploadQueue.pause()},resume:function(){this.uploadQueue.resume()},hasDataForView:function(){return!0},extractFolderName:function(e){var t=1===e.length&&s(e[0]);if(t){var n=e[0][t]();return n.isDirectory?n.name:void 0}return}},{MAX_FILE_SIZE:5368709120,SIMULTANEOUS_UPLOADS:3,ErrorTypes:{FILE_SIZE_TOO_SMALL:"invalid-file:size-too-small",FILE_SIZE_TOO_LARGE:"invalid-file:size-too-large",FILE_TYPE_UNSUPPORTED:"invalid-file:type-unsupported"},neverRelease:!0,hashFn:function(){return 1}});function s(e){return"function"==typeof e.webkitGetAsEntry?"webkitGetAsEntry":"function"==typeof e.getAsEntry?"getAsEntry":void 0}function u(e,t,n){return void 0===t&&(t=3),void 0===n&&(n=0),e.filter(Boolean).reduce((function(e,i){return e.then((function(e){return(i.isDirectory?nt.path?1:0}))}function c(e,t){var i=new(n(482))({uploads:e},t);return i.release(),i}function d(e){var t=this.length,i=this.uploadQueue;if(this.add(e,{at:0}),this.length!==t){g.call(this,!0,e);var r=i.addTask((function(){return e.upload()}));return e.on("remove",(function(){return i.removeTask(r)})),n(14).trackUploadFunnel({chapter:"start",uploadId:e.getTrackingId()}),e}}function f(e){var t=e.name,i=e.size,o=e.type,s=[];!i||i<=0?s.push(a.ErrorTypes.FILE_SIZE_TOO_SMALL):i>a.MAX_FILE_SIZE&&s.push(a.ErrorTypes.FILE_SIZE_TOO_LARGE);var u=n(222).getExtension(t),l=!u||n(0).contains(r,u.toLowerCase()),c=o&&0===o.indexOf("audio/");return l||c||s.push(a.ErrorTypes.FILE_TYPE_UNSUPPORTED),{file:e,errors:s}}function h(e){!this.numUploading()&&e.get("hasBeenSaved")&&p()}function p(){i&&(n(6).get("router").removeNavigationBlock(i),i=null)}function g(e,t){this.transferStatus[e?"addTransfer":"removeTransfer"](t.get("transfer")),this.transcodingStatus[e?"addTransfer":"removeTransfer"](t.get("transcoding"))}function m(e){g.call(this,!1,e),this.numUploading()||this.hasUnsaved()||p()}function v(e){var t=e.get("status"),r=e.previous("status");t!==n(62).UPLOADING||1!==this.numUploading()||i||(i=n(6).get("router").addNavigationBlock(n(2).Lingua.t("You still have incomplete uploads. If you leave the page now, these will be canceled."))),t===n(62).COMPLETE&&this.trigger("complete"),r===n(62).UPLOADING&&this.transferStatus.removeTransfer(e.get("transfer")),r===n(62).TRANSCODING&&this.transcodingStatus.removeTransfer(e.get("transcoding"))}},19:function(e,t,n){n(622).Mixin.debug=!1,e.exports=n(622).Mixin},1939:function(e,t,n){e.exports=function(){return n(0).assign({},n(35).Events,{adPodController:null,beginAdBreak:function(e,t){var r=this,o=n(9).defer();return this.isAdBreakActive()?o.reject():this.doesAdBreakExist()?(this.dismissLeaveBehind().fail((function(){o.reject()})).done((function(){i.call(r,e,t,o)})),o):(i.call(this,e,t,o),o)},requestSkipCurrentAd:function(e){return void 0===e&&(e={}),this.doesAdBreakExist()?this.adPodController.requestSkipCurrentAd(e):n(9).resolve()},requestSkipAdBreak:function(e){return void 0===e&&(e={}),this.doesAdBreakExist()?this.adPodController.requestSkip(e):n(9).resolve()},setCanSkipImmediately:function(e){var t=this.getCurrentAdController();t&&t.setCanSkipImmediately(e)},dismissLeaveBehind:function(){return this.doesAdBreakExist()?this.adPodController.dismissLeaveBehind():n(9).resolve()},doesAdBreakExist:function(){return!!this.adPodController},isAdBreakActive:function(){return this.doesAdBreakExist()&&this.adPodController.isActive()},isAllowedToSkipCurrentAd:function(){return this.doesAdBreakExist()&&this.adPodController.isAllowedToSkipCurrentAd()},isAllowedToSkipAdBreak:function(){return this.doesAdBreakExist()&&this.adPodController.isAllowedToSkip()},getCurrentAdController:function(){return this.doesAdBreakExist()?this.adPodController.getCurrentAdController():null},getCurrentAd:function(){var e=this.getCurrentAdController();return e?e.audioAd:null},getCurrentAdSound:function(){var e=this.getCurrentAd();return e?e.sound:null},getCurrentAdVisualController:function(){if(!this.doesAdBreakExist())return null;if(!this.isAdBreakActive())return this.adPodController.getLeaveBehindController();var e=this.getCurrentAdController();return e?e.getCompanionController():null},getUpcomingSound:function(){return this.doesAdBreakExist()?this.adPodController.getUpcomingSound():null},getCurrentAdIndex:function(){return this.doesAdBreakExist()?this.adPodController.getCurrentAdIndex():null},getAdBreakSize:function(){return this.doesAdBreakExist()?this.adPodController.getSize():null}})};function i(e,t,i){var o=this;this.adPodController=new(n(1940)),this.listenTo(this.adPodController,n(89).CHANGE_CURRENT_AD_SOUND,(function(e){return o.trigger(n(89).CHANGE_CURRENT_AD_SOUND,e)})).listenTo(this.adPodController,n(89).CHANGE_AD_SKIPPABILITY,(function(e){return o.trigger(n(89).CHANGE_AD_SKIPPABILITY,e)})),this.adPodController.getActiveDeferred().always((function(){o.trigger(n(89).END_AD_BREAK)})),this.adPodController.getLifetimeDeferred().always(r.bind(this)),this.adPodController.begin(e,t).fail((function(){i.reject()})).done((function(){i.resolve(o.adPodController)}))}function r(){this.stopListening(this.adPodController),this.adPodController=null}},1940:function(e,t,n){function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0}function v(){return Math.min(this.audioAd.getRequiredListenPeriod(),this.audioAd.getSound().getMediaDuration())-this.audioAd.getSound().currentTime()}function y(){this.audioAdTracker.track(n(52).AudioAdTrackingEvents.FINISH),a.call(this)}function _(e){void 0===e&&(e={}),this.audioAdTracker.track(n(52).AudioAdTrackingEvents.ERROR,i({},e,{errorCode:e.error&&e.error.message.indexOf("SCAUDIO.NOT_SUPPORTED_ERROR")>-1?n(257).VAST_ERROR_CODE_NOT_SUPPORTED_LINEAR_ERROR:n(257).VAST_ERROR_CODE_GENERAL_LINEAR_ERROR})),s.call(this),n(74).isAdBlockEnabled()||n(101).notify(new Error("AdManager: Error from player. "+e.error))}function b(){this.audioAdTracker.track(n(52).AudioAdTrackingEvents.PAUSE)}function w(){this.audioAdTracker.track(n(52).AudioAdTrackingEvents.PLAY),C.call(this)}function k(){this.audioAdTracker.track(n(52).AudioAdTrackingEvents.PLAY_START)}function A(){this.audioAdTracker.trackQuartile(),this.audioAdTracker.trackProgress(),C.call(this)}function C(){var e=this.isAllowedToSkip();e!==this.lastEmittedSkippability&&(this.lastEmittedSkippability=e,this.trigger(n(89).CHANGE_AD_SKIPPABILITY))}function S(e){this.getUpcomingSound().trigger("ad:"+e.type,e)}},1944:function(e,t,n){var i=.25,r=.5,o=.75,a=1,s=function(){"use strict";function e(e){this.audioAd=e,this.firedEvents=new Set,this.unfiredProgressTrackers=e.getProgressTrackers()||[]}var t=e.prototype;return t.track=function(e,t){if(void 0===t&&(t={}),this.audioAd&&(!this.firedEvents.has(e)||e===n(52).AudioAdTrackingEvents.PLAY||e===n(52).AudioAdTrackingEvents.PAUSE)){var i=this.audioAd.getSound(),r=this.audioAd.getUrn(),o=this.audioAd.getTracking(),a=this.audioAd.getCompanion(),s=this.audioAd.getUpcomingSoundUrn(),u=a?a.getUrn():void 0,l=a?a.getFormat()===n(74).AudioAdVisualFormats.html?"html":a.getContent():void 0,c=0;(null==i?void 0:i.player)&&(c=Math.floor(i.player.getPosition()));var d=this.firedEvents.has(n(52).AudioAdTrackingEvents.PLAY_START),f=this.firedEvents.has(n(52).AudioAdTrackingEvents.PAUSE),h={context:{scope:["playControls","playControlsPanel"]},contextName:"playControlsPanel"};switch(e){case n(52).AudioAdTrackingEvents.PLAY_START:n(134).logEvent("play",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c});break;case n(52).AudioAdTrackingEvents.PLAY:d&&f&&n(134).logEvent("resume",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c});break;case n(52).AudioAdTrackingEvents.PAUSE:d&&n(134).logEvent("pause",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c});break;case n(52).AudioAdTrackingEvents.IMPRESSION:n(134).logEvent("adImpression",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c}),n(14).trackImpression({ad_urn:r,impression_name:"audio_ad_impression",impression_object:r,context:h.context,monetization_type:"audio_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.UNFILLED_IMPRESSION:n(134).log(this.audioAd.getErrorTrackers(),{errorCode:n(257).VAST_ERROR_CODE_UNDEFINED_ERROR,contentPlayheadInMs:c}),this.audioAd.isEmpty()&&n(14).trackImpression({ad_urn:r,impression_name:"error_ad",impression_object:r,context:h.context,monetization_type:"error_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.SKIP:n(134).logEvent("skip",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c}),n(14).trackV0Click(null,{ad_urn:r,click_name:"ad::skip",click_object:r,context:t.context,monetization_type:"audio_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.FINISH:n(134).logEvent("finish",{trackerUrlsByAdEvent:o,contentPlayheadInMs:c}),n(14).trackV0Click(null,{ad_urn:r,click_name:"ad::finish",click_object:r,external_media:l,context:h.context,monetization_type:"audio_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.FIRST_QUARTILE:case n(52).AudioAdTrackingEvents.SECOND_QUARTILE:case n(52).AudioAdTrackingEvents.THIRD_QUARTILE:var p=e.split(":")[1];n(134).logEvent(p,{trackerUrlsByAdEvent:o,contentPlayheadInMs:c}),n(14).trackV1Click({ad_urn:r,click_name:e.replace("audio_ad:","ad::"),click_category:"monetization",click_object:r,external_media:l,monetization_type:"audio_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.WHY_ADS_CLICK:n(14).trackV0Click(null,{click_name:"companion_display::why_ads",click_object:r,click_target:null,external_media:null,ad_urn:u,context:t.context,monetization_type:"audio_ad",monetized_object:s});break;case n(52).AudioAdTrackingEvents.ERROR:n(134).log(this.audioAd.getErrorTrackers(),{errorCode:t.errorCode||n(257).VAST_ERROR_CODE_GENERAL_LINEAR_ERROR,contentPlayheadInMs:c});break;default:0}this.firedEvents.add(e)}},t.trackQuartile=function(){if(this.audioAd){var e=this.audioAd.getSound().progress();e>=a||(e>=i&&!this.firedEvents.has(n(52).AudioAdTrackingEvents.FIRST_QUARTILE)&&this.track(n(52).AudioAdTrackingEvents.FIRST_QUARTILE),e>=r&&!this.firedEvents.has(n(52).AudioAdTrackingEvents.SECOND_QUARTILE)&&this.track(n(52).AudioAdTrackingEvents.SECOND_QUARTILE),e>=o&&!this.firedEvents.has(n(52).AudioAdTrackingEvents.THIRD_QUARTILE)&&this.track(n(52).AudioAdTrackingEvents.THIRD_QUARTILE))}},t.trackProgress=function(){var e=this.audioAd.getSound(),t=e.player?e.player.getPosition():0;if(!(0===this.unfiredProgressTrackers.length||this.unfiredProgressTrackers[0].offset_in_ms>t)){var i=n(0).partition(this.unfiredProgressTrackers,(function(e){return e.offset_in_ms<=t})),r=i[0],o=i[1];r.forEach((function(e){return n(134).log(e.urls,{contentPlayheadInMs:t})})),this.unfiredProgressTrackers=o}},e}();e.exports=s},196:function(e,t,n){(function(t){e.exports=new(n(19))({_imageFile:null,_imageSource:null,_imageDataURI:null,applyTo:function(e,t){e.imageProperties=n(0).pick(t,"read","write"),e.useFormData=null==t.useFormData||t.useFormData},defaults:{getImageSaveUrl:function(){return this.saveUrl()}},getImageUrl:function(e){return this._imageDataURI||n(55).urlFrom(this.attributes,e)},hasOwnImage:function(){return!!this._imageDataURI||!n(55).isDefaultImage(this.get(this.imageProperties.read))},hasNewImage:function(){return!!this._imageFile},getPlaceholderUrl:function(e){return!this._imageDataURI&&n(55).getPlaceholderUrl(this.getImageUrl(),e)},getImageFileInfo:function(){return{file:this._imageFile,source:this._imageSource}},setImageFile:function(e,t){var i=this;this._imageSource=t,this._imageFile=e,function(e,t){var i=n(9).defer();return n(55).readImageFile(e).done((function(e){var n,r,o,a=window.document.createElement("canvas"),s=a.getContext("2d"),u=(n=e.width,r=e.height,(o=n-r)>0?{x:Math.floor(o/2),y:0,w:r,h:r}:{x:0,y:Math.floor(-o/2),w:n,h:n});a.width=a.height=t,s&&(s.imageSmoothingEnabled=s.mozImageSmoothingEnabled=s.oImageSmoothingEnabled=s.webkitImageSmoothingEnabled=!0,s.imageSmoothingEnabled=!0,s.drawImage(e,u.x,u.y,u.w,u.h,0,0,t,t)),i.resolve(a.toDataURL("image/png"))})).fail(i.reject),i}(e,500).done((function(n){i._imageDataURI=n,i.trigger("imageDataChanged",{file:e,source:t})}))},unsetImageFile:function(e){e=e||{},this._imageFile=this._imageSource=null,e.force&&this.unsetImageDataURI(),e.silent||this.trigger("imageDataChanged",{file:null,source:null})},unsetImageDataURI:function(){this._imageDataURI=null},uploadBase64Image:function(e){var t=this,r=n(9).defer(),a=o(this.imageProperties.write,e);return i(this.getImageSaveUrl(),a).fail((function(e,t){return r.reject(t)})).done((function(e){return r.resolve(e[t.imageProperties.read])})),r},uploadImage:function(){var e=this,t=n(9).defer(),o=this.getImageFileInfo(),u=o.file,l=o.source,c=this.useFormData;if(u&&this.imageProperties.write)return n(14).trackV0Click(["upload","image","upload_started",l]),this.unsetImageFile(),r.call(this,u,c).then((function(t){return i(e.getImageSaveUrl(),t)})).done((function(e){n(14).trackV0Click(["upload","image","upload_success",l]),t.resolve(e)})).done(a.bind(this)).fail(t.reject).fail(s.bind(this,l)),t},canDeleteImage:function(){return!!this.getImageDeleteEndpoint},deleteImage:function(){var e=this;return this.canDeleteImage()?n(45).callEndpoint(this.getImageDeleteEndpoint()).then((function(){e.unsetImageFile({force:!0}),e.set(e.imageProperties.read,null)})):n(9).reject()}});function i(e,n){return n instanceof window.FormData?t.ajax({url:e,type:"PUT",data:n,processData:!1,contentType:!1,dataType:"json"}):t.ajax({url:e,type:"PUT",data:JSON.stringify(n),dataType:"json",contentType:"application/json"})}function r(e,t){var i=this.imageProperties.write,r=t?this.get("kind")+"["+i+"]":i;return t?n(9).resolve(function(e,t){if(!n(86).formData||!e)return;var i=new window.FormData;return i.append(t,e),i}(e,r)):function(e,t){return n(222).readAsDataURL(e).then((function(e){return o(t,e)}))}(e,r)}function o(e,t){var n,i=t.split(",")[1];return(n={})[e]=i,n}function a(e){var t=n(9).defer(),i=n(55).setFormat(e[this.imageProperties.read],20),r=this,o=new(n(214))({tolerance:1,baseDelay:2e3,maxDelay:8e3,backoffRate:1.5,giveup:6,enabled:!1}),a=new window.Image;return a.onload=function(){var n=r.imageProperties.read;r.get(n)===e[n]&&r.forceChange(n),r.set(e),t.resolve(e)},a.onerror=function(){o.failed()},o.on("enabled",(function(){a.src=i+"?"+Date.now()})).on("giveup",t.reject),this.trigger("imageUrlChanged",i),t.done(this.trigger.bind(this,"imageTranscodingDone",e)).fail(this.trigger.bind(this,"imageTranscodingFail",e))}function s(e,t){n(40).trigger("error",{action:"upload_image",xhr:t}),n(14).trackV0Click(["upload","image","upload_failure",e])}}).call(this,n(17))},197:function(e,t){e.exports=function(e,t){var n=t.lastFetchTime||Date.now();delete t.lastFetchTime;var i=new e(t,{parse:!0});i.lastFetchTime=n,i.release()}},204:function(e,t,n){"use strict";n.r(t),n.d(t,"PlayerType",(function(){return i}));var i;n(78),n(90),n(452),n(263),n(97),n(460);!function(e){e.GENERAL="GENERAL",e.AD="AD"}(i||(i={}))},207:function(e,t,n){(function(t){e.exports={normalizeEvent:function(e){if(void 0===e.offsetX||void 0===e.offsetY){var n=t(e.target).offset(),i=function(e){var t,n,i=e.eventType;i&&0===i.indexOf("mouse")?(t=e.clientX+window.pageXOffset,n=e.clientY+window.pageYOffset):e.changedTouches?(t=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY):(t=e.x,n=e.y);return{x:t,y:n}}(e.originalEvent);e.pageX=i.x,e.pageY=i.y,e.offsetX=i.x-(n?n.left:0),e.offsetY=i.y-(n?n.top:0)}return e}}}).call(this,n(17))},208:function(e,t,n){(function(t){var i=["altKey","shiftKey","ctrlKey","metaKey"],r=0,o=!1,a=!1,s=new Set,u=e.exports={chordStartKeyName:"G",shortcuts:{playPause:{keyCode:["32","13"],keyName:["space"],description:n(2).Lingua.t("Play or pause"),className:"kbd-big",fn:function(){n(16).toggleCurrent({userInitiated:!0})}},search:{keyCode:["83","191"],keyName:["S"],description:n(2).Lingua.t("Search"),fn:function(){n(11).trigger("search:focus")}},load:{keyCode:["48","49","50","51","52","53","54","55","56","57"],keyName:["0…9"],className:"kbd-big",description:n(2).Lingua.t("Seek to position"),fn:function(e,t,i){if(!f(i)){n(16).seekCurrentTo((function(e){return e.getMediaDuration()/10*(t-48)}))}}},seekBackward:{keyCode:["37"],keyName:["←"],description:n(2).Lingua.t("Seek backward"),allowKeyHold:!0,fn:function(){d("prev")}},seekForward:{keyCode:["39"],keyName:["→"],description:n(2).Lingua.t("Seek forward"),allowKeyHold:!0,fn:function(){d("next")}},repeat:{keyCode:["shiftKey+76"],keyName:["L","⇧"],description:n(2).Lingua.t("Repeat playing track"),fn:function(){n(16).cycleRepeatMode()}},prev:{keyCode:["shiftKey+37","75"],keyName:["←","⇧"],description:n(2).Lingua.t("Play previous track"),fn:function(){n(16).playPrev({userInitiated:!0})}},next:{keyCode:["shiftKey+39","74"],keyName:["→","⇧"],description:n(2).Lingua.t("Play next track"),fn:function(){n(16).playNext({userInitiated:!0})}},mute:{keyCode:["77"],keyName:["M"],description:n(2).Lingua.t("Mute volume"),fn:function(){n(107).toggleMuted()}},volUp:{keyCode:["shiftKey+38"],keyName:["↑","⇧"],description:n(2).Lingua.t("Increase volume"),allowKeyHold:!0,fn:function(){n(107).changeVolume(.1)}},volDown:{keyCode:["shiftKey+40"],keyName:["↓","⇧"],description:n(2).Lingua.t("Decrease volume"),allowKeyHold:!0,fn:function(){n(107).changeVolume(-.1)}},like:{keyCode:["76"],keyName:["L"],description:n(2).Lingua.t("Like playing track"),fn:function(e){e&&n(40).like(e)}},repost:{keyCode:["82"],keyName:["R"],description:n(2).Lingua.t("Repost playing track"),fn:function(e){e&&n(40).repost(e)}},dialog:{keyCode:["72","shiftKey+191"],keyName:["H"],description:n(2).Lingua.t("Show keyboard shortcuts"),fn:function(){n(11).trigger("keyboard-shortcuts:toggle")}},gotoNowPlaying:{keyCode:["80"],keyName:["P"],description:n(2).Lingua.t("Navigate to playing track"),fn:function(){n(16).restoreState()}},gotoLikes:{chorded:!0,keyCode:["76"],keyName:["L"],description:n(2).Lingua.t("Navigate to Likes"),fn:function(){n(6).get("router").navigateToRoute("youNetwork",[null,"likes"],{trigger:!0,replace:!1})}},gotoCollection:{chorded:!0,keyCode:["67"],keyName:["C"],description:n(2).Lingua.t("Navigate to Library"),fn:function(){n(6).get("router").navigateToRoute("youNetwork",[null,"library"],{trigger:!0,replace:!1})}},gotoStream:{chorded:!0,keyCode:["83"],keyName:["S"],description:n(2).Lingua.t("Navigate to Stream"),fn:function(){n(6).get("router").navigateToRoute("stream",[],{trigger:!0,replace:!1})}},gotoProfile:{chorded:!0,keyCode:["80"],keyName:["P"],description:n(2).Lingua.t("Navigate to Profile"),fn:function(){n(6).get("router").navigate("/you",{trigger:!0,replace:!1})}},gotoHistory:{chorded:!0,keyCode:["72"],keyName:["H"],description:n(2).Lingua.t("Navigate to History"),fn:function(){n(6).get("router").navigateToRoute("youNetwork",[null,"history"],{trigger:!0,replace:!1})}},toggleQueue:{keyCode:["81"],keyName:["Q"],description:n(2).Lingua.t("Show Next up"),fn:function(){n(224).toggle()}},toggleShuffle:{keyCode:["shiftKey+83"],keyName:["S","⇧"],description:n(2).Lingua.t("Shuffle"),fn:function(){n(16).toggleShuffle()}}},disableAllShortcuts:function(){Object.keys(this.shortcuts).forEach((function(e){return s.add(e)}))},enableShortcuts:function(e){e.forEach((function(e){return s.delete(e)}))},enableAllShortcuts:function(){s.clear()},handleKeyDown:function(e){var i=e.keyCode,a=i===n(56).ENTER&&!e.isDefaultPrevented()&&t(e.target).is(":tabbable");e.isInput()||a||(u.processKey(i,e)&&(e.preventDefault(),o=!0),function(e){var t=e.keyCode;return t===n(56).SHIFT||t===n(56).CTRL||t===n(56).ALT||t===n(56).META_LEFT||t===n(56).META_RIGHT||t===n(56).META_RIGHT_OSX||t===n(56).META_FIREFOX_OSX}(e)||++r)},handleKeyUp:function(e){r=0,o&&(e.preventDefault(),o=!1)},processKey:function(e,t){if(!a&&71===e)return p(),h=window.setTimeout(p,1500),a=!0,!0;var i,o,c=(i=l()[a?"chorded":"normal"][e],o=function(n,i){if(i){if(null==t?void 0:t[i])return 1}else if(!f(t)||!/[a-z0-9%']/i.test(String.fromCharCode(e)))return 0;return!1},(i&&n(0).reduce(i,(function(e,t,n){var i=o(t,n);return!1!==i&&(!e||i>e.value)?{item:t,value:i}:e}),void 0)||{}).item),d=c&&u.shortcuts[c];return!d||s.has(c)||r&&!d.allowKeyHold||d.fn(n(16).getCurrentSound(),e,t),p(),!!c}},l=n(0).memoize((function(){var e={chorded:{},normal:{}},t=/^(?:(\w+)\+)?(\d+)$/;return n(0).each(u.shortcuts,(function(n,i){var r=n.keyCode,o=n.chorded,a=e[o?"chorded":"normal"];r.forEach((function(e){var n=t.exec(e),r=n[1],o=void 0===r?"":r,s=n[2];a[s]||(a[s]={}),a[s][o]=i}))})),e})),c=n(0).throttle((function(e){n(16).seekCurrentBy((function(){return e}))}),200);function d(e){c(1e3*Math.max(5,r)*("next"===e?1:-1))}function f(e){return e&&i.some(n(0).propertyOf(e))}var h=null;function p(){h&&(window.clearTimeout(h),h=null),a=!1}}).call(this,n(17))},212:function(e,t,n){e.exports={baseSensitiveElements:[".baseFields__image",".baseFields__permalink",".baseFields__title",".baseFields__description",".editMetadataTab",".editAccessTab",".editMonetizationTab"],userCanBeRecorded:function(){return n(6).get("features").has("tracklists_edit")}}},214:function(e,t,n){var i=e.exports=n(158).extend({enabled:!0,_breakCount:0,_failCount:0,_maxBreaks:0,_timeoutId:null,defaults:{tolerance:1,baseDelay:1e3,maxDelay:3e4,backoffRate:2,giveUp:null,enabled:!0},initialize:function(e){n(0).bindAll(this,"failed","succeeded"),this.setup(e)},setup:function(e){this.options=n(0).assign({},this.options||this.defaults,e);var t=(e=n(0).defaults(this.options,this.defaults)).maxDelay/e.baseDelay;if(e.backoffRate>1)for(;t>1;)++this._maxBreaks,t/=e.backoffRate;else this._maxBreaks=1/0;e.enabled||this.disable()},dispose:function(){this.off(),this.clearTimeout()},clearTimeout:function(){this._timeoutId&&(window.clearTimeout(this._timeoutId),this._timeoutId=null)},failed:function(){++this._failCount>=this.options.tolerance&&this.disable()},succeeded:function(){this._breakCount=this._failCount=0},disable:function(e){if(this.enabled){var t=!e||!1!==e.autoEnable;this.enabled=!1,++this._breakCount,t&&(!this.options.giveUp||this._breakCountthis.maxLength&&this.unset(this._keys[0])),this.maxLength&&this._keys.push(e),this._store[e]=t,this},unset:function(e){return this.has(e)&&(--this.length,this._final?this._store[e]=void 0:(delete this._store[e],this.maxLength&&this._keys.splice(this._keys.indexOf(e),1))),this},reset:function(){return this._store=Object.create(null),this.maxLength&&(this._keys=[]),this._final=!1,this.length=0,this},has:function(e){return n(0).has(this._store,e)},keys:function(){return Object.keys(this._store)},prune:function(e){return n(0).difference(this.keys(),e).forEach(this.unset,this),this},_asMap:function(){return this._store},finalize:function(){this._final=!0}}])},22:function(e,t,n){(function(t){var i,r,o={name:"oauth_token",secure:!0,domainStrict:!0},a=new(n(68))("anonymous-user"),s=null;n(11).on("broadcast:authentication:tokenChange",(function(e){e?(s=e,n(11).trigger("connect:login","login")):n(11).trigger("connect:logout",{isOriginator:!1})}));var u=e.exports=n(0).assign({},n(35).Events,{_redirectAfterSignupRoute:null,setAuthToken:function(e,t){var i,r=(void 0===t?{}:t).excludeThis,a=void 0===r||r;n(11).broadcast({excludeThis:a},"authentication:tokenChange",e),i=e,n(64).set(n(0).assign({},o,{value:i,expirationInDays:365}))},getAuthToken:function(){return s=s||n(64).get("oauth_token")},isLoggedIn:function(){return!!this.getAuthToken()},setAuthModalOpener:function(e){i=e},clearLegacyCookieHint:function(){n(64).get("legacy_clean")&&n(64).unset({name:"legacy_clean"})},login:function(e){var t=!(e=e||{}).implicitAction;(this._redirectAfterSignupRoute=e.redirectRoute,n(11).trigger("connect:loginInitiate"),r)||(r=n(9).defer().fail((function(){r=null})),this.isLoggedIn()?(t=!1,r.resolve()):i({authViewArgs:{onToken:function(e){u.setAuthToken(e,{excludeThis:!1})},onComplete:function(e){r&&(t=!e,r.resolve()),e&&u.hasSignedUp()}},onModalClosed:function(){r.reject()}}));return r.then((function(){var e,i,r,o,a=n(16).getCurrentSound(),s=a&&a.isPlaying(),u=t&&!s;return n(9).anyTruthy([u?(o=n(6).get("me"),o.fetch({attrs:["locale"]}).then((function(){var e=o.get("locale"),t=n(15).LinguaLib.getLocale();return e!==t}))):n(9).resolve(!1),u?(e="v2_listening",i="web_new_home_default",r=n(6).get("experiments").get(e,i),n(45).callEndpoint("experiments",{anonUserId:n(93).getAnonymousId()},{layers:n(1209).join(",")}).then((function(t){var o=t.body,a=n(0).findWhere(o,{experiment_name:i,layer_name:e});return a?a.variant_name!==r:Boolean(r)}))):n(9).resolve(!1)]).then((function(e){var t="/"===window.location.pathname,n="/logout"===window.location.pathname;e&&(t||n?window.location.assign("/"):window.location.reload(!0))}))}))},hasSignedUp:function(){var e=this._redirectAfterSignupRoute;e&&n(6).get("router").navigateToRoute(e,null,{trigger:!0}),function(){var e=n(6).get("me"),t=n(9).defer();e.lastFetchTime?t.resolve():n(11).once("connect:hasUserData",(function(){t.resolve()}));return t}().then((function(){return n(11).trigger("signup:successful")})),this._redirectAfterSignupRoute=null},loginWithFacebook:function(e){return u.login({facebook:!0,fb_token:e})},_logoutFuture:null,logout:function(){return this._logoutFuture||(this._logoutFuture=n(45).callEndpoint("v2SignOut").always((function(){window.document.cookie="connect_session=;max-age=0;domain=.soundcloud.com;path=/"})).always((function(){u.clearUserData(),n(11).trigger("connect:logout",{isOriginator:!0})}))),this._logoutFuture},clearUserData:function(){n(64).unset(o),n(11).broadcast({excludeThis:!0},"authentication:tokenChange","")},currentUserId:function(){return n(6).get("me").id},getUserIdentifier:function(){return u.isLoggedIn()?u.currentUserId():u.getAnonymousUserIdentifier()},getAnonymousUserIdentifier:function(){for(var e=a.get("id");!e||e<1e3;)e=Math.floor(1e9*Math.random()),a.set("id",e);return e},loginWithCookies:function(){return"1"===n(64).get("connect_session")||l()?n(45).callEndpoint("connectTokenExchange").promise().then((function(e){var t,i=e.body;return(null==(t=i.session)?void 0:t.access_token)?i.session.access_token:n(9).reject(new Error("no token returned"))})).then((function(e){u.setAuthToken(e)})):n(9).reject()},loginToSoundCloudConnect:function(){n(45).callEndpoint("connectLogin",null,null,null,{session:{access_token:u.getAuthToken()}})},loginToClassicSoundCloud:function(){l()||t.ajax({type:"post",url:"https://soundcloud.com/session",data:{access_token:u.getAuthToken(),format:"json"}})}});function l(){return["auth_token","p","v"].some((function(e){return void 0!==n(64).get(e)}))}}).call(this,n(17))},220:function(e,t,n){var i,r=window.document,o=!0,a=e.exports=n(0).assign({},n(35).Events,{visible:function(){return o},focused:function(){return o&&(!r.hasFocus||r.hasFocus())}});(i=function(){var e=!r.hidden;o!==e&&(o=e,a.trigger("change:visibility",o))})(),r.addEventListener("visibilitychange",i,!1)},2201:function(e,t,n){e.exports={checkoutPremierCallback:function(){n(11).broadcast("checkout:creator_subscription_purchased")}}},2211:function(e,t,n){var i=e.exports=n(0).assign({},n(35).Events,{initialize:function(){n(40).bindErrorHandler(i.onActionError)},onActionError:function(e){if("follow"===e.action){var t=i.getErrorFromXhr(e.xhr)||{};switch(t.error_message){case"DENY_AGE_RESTRICTED":return n(11).trigger("error:followDeniedAge",{errorType:"DENY_AGE_RESTRICTED",requiredAge:t.age}),!1;case"DENY_AGE_UNKNOWN":return n(11).trigger("error:followDeniedAge",{errorType:"DENY_AGE_UNKNOWN",context:e.context,followeeId:e.target}),!1}}},getErrorFromXhr:function(e){if(e&&403===e.status&&e.responseJSON)return n(0).find(e.responseJSON.errors,(function(e){return"DENY_AGE_RESTRICTED"===e.error_message||"DENY_AGE_UNKNOWN"===e.error_message}))}})},2212:function(e,t,n){var i=!1;e.exports={register:function(){if(!i&&(i=!0,void 0!==window.navigator&&"mediaSession"in window.navigator)){var e=window.navigator.mediaSession;e.setActionHandler("nexttrack",(function(){return n(16).playNext({userInitiated:!0})})),e.setActionHandler("previoustrack",(function(){return n(16).playPrev({userInitiated:!0})}))}}}},2213:function(e,t,n){e.exports={401:function(e){n(22).isLoggedIn()&&n(22).logout()},429:function(e){var t=n(209).fromSpamWarning(e);t&&(n(11).trigger("spam-warning",t),t.release())},422:function(e){var t;try{t=JSON.parse(e.responseText).errors[0].error_message}catch(e){t=null}n(11).trigger("error:ajax",t,e)}}},2214:function(e,t,n){e.exports={listen:function(e,t){var o;if("playlist"===(e=i(e)).kind)return this.getRoute("playlist",e,t);var a,s={};return t=t?"/comment-"+t:"",(null==(o=e._playlist)?void 0:o.id)&&(a=n(459).removeSecretTokenFromUrl(e._playlist.permalink_url),s.query={in:r(a).substr(1)+(this.includeSecretTokenForPlaylist(e._playlist)?"/"+e._playlist.secret_token:"")}),e._systemPlaylist&&(s.query={in_system_playlist:e._systemPlaylist.permalink}),s.path=e.user?"/"+e.user.permalink+"/"+e.permalink+t+(this.includeSecretTokenForSound(e)?"/"+e.secret_token:""):r(e.permalink_url+t),n(71).stringify(s)},listenNetwork:function(e,t,o){e=i(e);var a={};return"related"===t&&(t="recommended"),a.path=e.user?"/"+e.user.permalink+"/"+e.permalink+(this.includeSecretTokenForSound(e)?"/"+e.secret_token:""):r(e.permalink_url),a.path+="/"+t+("comments"===t&&o?"/"+o:""),n(71).stringify(a)},playlistEdit:function(e){return e=i(e),"/"+n(71).stringify({path:[e.user.permalink,"sets",e.permalink,"edit"]})},playlist:function(e){return(e=i(e)).user?"/"+e.user.permalink+"/sets/"+e.permalink+(this.includeSecretTokenForPlaylist(e)?"/"+e.secret_token:""):r(e.permalink_url)},systemPlaylist:function(e){return"/discover/sets/"+(e=i(e)).permalink},playlistNetwork:function(e,t){e=i(e);var o={};return o.path=e.user?"/"+e.user.permalink+"/sets/"+e.permalink+(this.includeSecretTokenForPlaylist(e)?"/"+e.secret_token:""):r(e.permalink_url),o.path+="/"+t,n(71).stringify(o)},user:function(e,t){return"/"+(e=i(e)).permalink+(t?"/"+t:"")},userNetwork:function(e,t){return"/"+(e=i(e)).permalink+"/"+t},root:function(){return"/"},explore:function(e){return e=(e||"").toLowerCase(),"/"+n(71).stringify({path:["explore",e]})},charts:function(e,t,i){return"/"+n(71).stringify({path:["charts",n(0).findWhere(n(122).kinds,{id:e||n(122).defaultKind}).urlPart],query:{genre:t,country:i}})},people:function(e){return"/"+n(71).stringify({path:["people",e]})},peopleDirectory:function(e){return"/people/directory"+(e?"/"+e:"")},pages:function(e){return"/"+e},embedPage:function(){return"/pages/embed"},emailUnsubscribedPage:function(){return"/pages/unsubscribed"},pagesPages:function(e){return"/pages/"+e},tags:function(e,t){return n(71).stringify({path:"/tags/"+e.toLowerCase()+(t?"/"+t:"")})},search:function(e,t,i){var r={sounds:"sounds",high_tier:"go",sets:"sets",playlists:"sets",albums:"albums",people:"people"}[e];return"/"+n(71).stringify({path:["search",r],query:n(0).assign({q:t},i)})},activity:function(){return"/notifications"},__tips:function(){return"/you/tips"},stream:function(){return"/stream"},logout:function(){return"/logout"},mobile:function(e){return"/"+n(71).stringify({path:["mobile",e||""]})},upload:function(){return"/upload"},mastering:function(e,t){var i=void 0===t?{}:t,r=i.fragment,o=i.query;return"/"+n(71).stringify({path:n(0).compact(["you","mastering",e&&"tracks",e]),fragment:r,query:o})},youNetwork:function(e,t,i){return"/"+n(71).stringify({path:["you",t],query:{ref:i}})},trackManager:function(e){return"/"+n(71).stringify({path:"you/tracks",fragment:e||""})},reports:function(){return"/you/reports"},messages:function(e){return"/messages"+(e?"/"+e:"")},settings:function(e){return"/"+n(71).stringify({path:["settings",e]})},premier:function(e,t){return"/"+n(71).stringify({path:["you/premier",e],query:{ref:t}})},developerApps:function(e){return"/"+n(71).stringify({path:["you/apps",e]})},signin:function(e){return"/"+n(71).stringify({path:["signin"],query:{redirect_url:e}})},v1:function(e,t){return"/"+e+(t=t||"")},station:function(e){return"/stations/"+i(e).permalink},stations:function(){return"/you/stations"},stats:function(e){var t=[n(6).get("me").get("permalink"),"stats"];return"/"+n(71).joinPath(o(t,e))},"track-stats":function(e,t){var r=[(e=i(e)).user.permalink,e.permalink,"stats"];return"/"+n(71).joinPath(o(r,t))},recommended:function(){return"/discover"},home:function(){return"/home"},reportCopyright:function(e){var t={path:"/pages/copyright/report/form"};return e&&(e=i(e),t.query={track:e.permalink,user:e.user.permalink}),n(71).stringify(t)},orders:function(e){return"/subscription/orders/"+e},insights:function(){return"/you/insights/overview"}};function i(e){return n(0).isFunction(e.toJSON)?e.toJSON():e}function r(e){return e.replace(/^https?:.+?\w\//,"/")}function o(e,t){return t&&(t.metric&&(e.push(t.metric),t.from&&t.to&&e.push(t.from,t.to)),t.expanded&&e.push("expanded")),e}},2215:function(e,t,n){var i={};e.exports={loadLayout:function(e){var t=i[e];if(t)return t;var r=n(9).defer();return n(2216)("./"+e.replace("layouts/","")).then((function(e){r.resolve(e.default||e)}),r.reject),t=i[e]=r.promise()}}},2217:function(e,t,n){e.exports={initialize:function(){n(131).getInstance().then((function(e){return n(11).on("googleCast:start",i),{dispose:function(){n(11).off("googleCast:start",i)}}}))}};function i(e){var t=n(16).getQueue();function i(){t.length>0&&e.isRemoteQueueEmpty()&&(n(16).setRepeatMode(n(77).none),s())}function a(i){var a,s,u=r().queue;if(a=u,s=i.queue,n(138).equal(a,s,(function(e,t){return e.urn===t.urn}))){t.forEach((function(e,t){e.associateCastId(i.queue[t].id)}));var l=t.at(i.currentIndex);l.sound.createPlayer(),n(16).setCurrentItem(l,{pause:e.isPaused()})}else if(!o(u,i.queue)){var c=i.queue.map((function(e,t){var i,r,o,a,s,u,l,c,d=e.urn,f=e.id,h=n(26).toComponents(d),p=new(n(21))({id:h.id}),g=p.getQueueMetadataAt(0),m=g.sourceInfo,v=g.queryPosition,y=g.originalModel,_=new(n(163))({},{sound:p,sourceInfo:m,queryPosition:v,originalModel:y,index:t,castId:f,restoreUrl:null,explicit:!1,layoutInfo:(i=n(6).get("router").getLayoutInfo(),r=i.args,o=i.layoutName,a=window.location,s=a.pathname,u=a.search,l=a.hash,c=s.slice(1)+u+l,{args:r,layoutName:o,url:c})});return _.release(),p.release(),_}));n(16).replaceQueue(c,i.currentIndex,{pause:e.isPaused()})}}function s(){var t=r(),i=t.queue,a=t.currentIndex,s=n(138).sliceAround(i,a,5,100),u=e.getLastRemoteQueue(),l=n(16).getCurrentSound(),c=!u||s.position!==u.currentIndex||!o(s.items,u.queue);a>-1&&c&&e.loadQueue(s.items,s.position,n(22).getAuthToken(),l.isPlaying(),l.currentTime())}function u(t){e.setRepeatMode(t)}e.on("queue:update",a),e.once("queue:ready",i),t.on("add remove reset",s),n(16).on("change:currentSound",s),n(16).on("change:repeatMode",u),n(11).once("googleCast:end",(function(){t.forEach((function(e,t){e.associateCastId(null)})),e.off("queue:update",a),e.off("queue:ready",i),t.off("add remove reset",s),n(16).off("change:currentSound",s),n(16).off("change:repeatMode",u)}))}function r(){return{currentIndex:n(16).getQueueState().currentIndex,queue:n(16).getQueue().map((function(e){var t=e.castId,n=e.sound.getUrn();return t?{id:t,urn:n}:{urn:n}}))}}function o(e,t){return n(138).equal(e,t,(function(e,t){return e.id&&e.id===t.id}))}},2218:function(e,t,n){"use strict";n.r(t);var i=n(116),r=n(33),o=n.n(r);t.default={initialize:function(){i.default.include({User:o.a})}}},2219:function(e,t,n){var i={name:"ja",domainStrict:!1,secure:!1};e.exports={_subsCookie:null,initialize:function(){var e=this;n(22).isLoggedIn()&&(this._subsCookie=r()),n(11).once("connect:hasUserData",(function(){e._subsCookie=r()})),n(11).once("connect:logout",(function(){n(64).unset(i),e._subsCookie=null}))}};function r(){var e=n(6).get("me"),t=o(e.getConsumerPlan()),r=o(e.getCreatorPlan()),a=n(2220).or(t,r);return"number"==typeof a&&n(64).set(n(0).assign({},i,{value:a,expirationInDays:30})),a}function o(e){var t=0;switch(e){case n(37).CREATOR_SUBSCRIPTION_PRO:t=16;break;case n(37).CREATOR_SUBSCRIPTION_PRO_UNLIMITED:t=32;break;case n(37).CONSUMER_SUBSCRIPTION_HIGH_TIER:t=64;break;case n(37).CONSUMER_SUBSCRIPTION_FREE:case n(37).CREATOR_SUBSCRIPTION_FREE:t=0}return t}},222:function(e,t,n){var i=/(aif|aiff|m4a|caf|flac|wav|pcm.*)$/i;e.exports={readAsDataURL:function(e){return n(9).promise((function(t,n){var i=new window.FileReader;i.onload=function(){return t(i.result)},i.onerror=i.onabort=n,i.readAsDataURL(e)}))},getExtension:function(e){void 0===e&&(e="");var t=e.split(/[\\/]/).pop(),n=t.lastIndexOf(".");return""===t||n<1?"":t.slice(n+1)},isHQ:function(e){return void 0===e&&(e=""),i.test(e)}}},2220:function(e,t){e.exports={or:function(e,t){return e|t}}},223:function(e,t){e.exports={KNOWN_CONTENT_MONETIZATION:"can_sign_premier_known_content_contract",UNKNOWN_CONTENT_PAYOUTS:"can_sign_premier_unknown_content_contract"}},2236:function(e,t,n){var i=n(510),r=n(511),o=n(767),a={0:"connecting",1:"open",2:"closed"};e.exports=function(e){var t=e.eventUrl,n=e.withCredentials,s=e.json,u=e.log,l=void 0===u?function(){}:u,c=!1,d=0,f=null,h=i({},r,{dispose:function(){f&&(f.close(),f=null);c=!0},getEventSourceReadyState:function(){return f&&a[f.readyState]}});return p(),h;function p(){c||((f=new EventSource(t,{withCredentials:n})).onopen=m,f.onerror=v,f.onmessage=y)}function g(){c||2===f.readyState&&p()}function m(){c||(d=0,h.trigger(o.OPEN))}function v(e){if(!c){if(++d>1){var t=function(e){var t=e/1,n=2e3*Math.pow(2,t);return Math.min(1e4,n)}(d);l("More than 1 errors in a row. Will use back-off timeout to reconnect in "+t+" ms"),window.setTimeout(g,t)}else l("Will try to reconnect ASAP"),g();h.trigger(o.ERROR,e)}}function y(e){if(!c){var t=e.data;if(s)try{t=JSON.parse(t)}catch(n){t={},l("syntax error parsing data to object",n.message,e)}h.trigger(o.DATA,t)}}}},2238:function(e,t,n){var i=n(510),r=n(511),o=n(768),a=e.exports=i({},r,{broadcast:function(e,t){o.set("trinity-broadcast",{event:e,data:t,now:Date.now()})}});o.on("trinity-broadcast",(function(e){var t=e.event,n=e.data;t&&a.trigger(t,n)}))},224:function(e,t,n){var i=!1,r=e.exports={toggle:function(){i?r.hide():r.show()},show:function(){i||(i=!0,n(11).trigger("queue:toggle",!0))},hide:function(){i&&(i=!1,n(11).trigger("queue:toggle",!1))},isVisible:function(){return i}}},2241:function(e,t){var n={STOP:"stop",HEARTBEAT:"heartbeat"};e.exports={events:{PLAY:"play"},actions:n,createMessage:function(e){return{version:0,timestamp:Math.floor(Date.now()/1e3),registration_id:e}},parseAction:function(e){return e&&e.action&&n[(t=e.action,t.toUpperCase().replace(/-/g,"_"))]?e.action:null;var t}}},2242:function(e,t,n){(function(e){var t,n,i=["has","no_pub","get","features","exports"];t=i,n=408,function(e){for(;--e;)t.push(t.shift())}(++n);var r=function(e,t){return i[e-=0]};e[r("0x1")]=function(e){return!e[r("0x4")](r("0x3"))||!e[r("0x4")](r("0x0"))[r("0x2")]("is_acc_test")}}).call(this,n(344)(e))},2243:function(e,t,n){function i(e){var t=e.attributes,i=t.station_urn,r=t.station_permalink,o=new(n(91))({id:i}),a=n(24).getRoute("systemPlaylist",{permalink:r});return o.release(),{source:o,restoreUrl:a}}function r(e){var t=n(26).fromComponents({collection:"track-stations",id:e.id}),i=new(n(326))(null,{resource_id:t}),r=n(129).getStationPageUrl(e);return i.release(),{source:i,restoreUrl:r}}e.exports={getPlayManagerFallbackSourceCreator:function(){return n(6).get("features").has("v2_stations_as_system_playlists")?i:r}}},225:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1853);t.cloneColor=function(e,t){void 0===t&&(t=1);var n=e.r,r=e.g,o=e.b,a=e.a;return{r:n,g:r,b:o,a:(void 0===a?1:a)*i.clamp(t,0,1)}},t.colorToString=function(e){var t=e.r,n=e.g,i=e.b,r=e.a;return"rgba("+t+", "+n+", "+i+", "+(void 0===r?1:r)+")"},t.rgb=function(e,t,n){return{r:e,g:t,b:n}},t.colorStop=function(e,t){return{color:t,offset:e}}},226:function(e,t,n){var i={like:u(_(f,h)),repost:u(_(f,h,y(p))),addToPlaylist:u(_(f,c,b(h,p))),addToNextUp:b(d,f),removeFromQueue:_(d,y((function(e){return n(16).getCurrentQueueItem()===e}))),buy:u(_(g,(function(e){return l(e)&&!!e.get("purchase_url")}))),share:u(_(f,g,b(h,p))),copyLink:u(_(f,g,b(h,p))),download:u(b(_(v("v2_hq_file_storage_release"),c,p,y(m)),_(f,(function(e){return c(e)&&n(6).get("me").canDownload(e)})))),delete:u(_(p,y(m))),edit:u(_(p,y((function(e){return l(e)&&e.isDisabled()})))),startStation:u(_(f,c,h,y(m))),goToStats:_(y(m),p,c,b(f,_(v("v2_hq_file_storage_release"),p))),report:_(c,y(m)),follow:u(y(p))},r=["like","repost","share","copyLink","edit","addToNextUp","removeFromQueue","addToPlaylist","buy","goToStats","download","startStation","delete","report","follow"],o=["edit","delete"],a=e.exports={getActionSet:function(e,t){return a.getOrderedActions().filter(t).filter(n(0).partial(s,n(0),e))},isOwnerAction:function(e){return o.indexOf(e)>-1},getOwnerActions:function(){return o},getOrderedActions:function(){return r}};function s(e,t){return i[e](t)}function u(e){return function(t){return e(d(t)?t.sound:t)}}function l(e){return c(e)||function(e){return e instanceof n(53)}(e)}function c(e){return e instanceof n(21)}function d(e){return e instanceof n(163)}function f(e){return function(e){return l(e)&&!e.isDisabled()}(e)&&!function(e){return l(e)&&e.isProcessing()}(e)}function h(e){return l(e)&&e.isPublic()}function p(e){return l(e)&&n(6).get("me").owns(e)}function g(e){return l(e)&&e.getNumSounds()>0}function m(e){return l(e)&&e.isBlacklisted()}function v(e){return function(){return n(6).get("features").has(e)}}function y(e){return function(){return!e.apply(void 0,arguments)}}function _(){for(var e=arguments.length,t=new Array(e),i=0;i1?t-1:0),i=1;iDate.parse(u.last_modified)&&(r=n(0).pick(r,n(0).difference(n(0).keys(r),n(0).keys(this.attributes))),n(0).isEmpty(r))?this:(o=this.constructor.normalize?this.constructor.normalize(n(0).clone(r)):r,n(0).each(this.submodelMap,(function(e,t){var i=r[t];i&&e&&e.normalize&&!n(0).isArray(i)&&(o[t]=e.normalize(n(0).clone(i)))})),n(35).Model.prototype.set.call(this,o,i))},saveUrl:function(){return n(0).result(this,"baseUrl")},saveFormat:"param",saveWithWrapper:!0,destroy:function(e){var t=n(35).Model.prototype.destroy.call(this,n(0).assign({url:this.isNew()?null:this.destroyUrl()},e));return this.constructor.removeInstance(this),t},destroyUrl:function(){return n(0).result(this,"baseUrl")},baseUrl:n(0).noop,url:function(e){return void 0===e&&(e="baseUrl"),n(0).result(this,e)},toJSON:function(){return n(0).extend(n(35).Model.prototype.toJSON.apply(this,arguments),{_resource_id:this.resource_id,_resource_type:this.resource_type})},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 this.attrExists(e)},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 n(0).isArray(e)?e.every(t,this.attributes):t.call(this.attributes,e)},getEquivalencyKey:function(){return this},getRequestEquivalencyUrl:n(0).identity,getUrn:function(){if("urn"===this.idAttribute)return this.id;var e=this.urnPrefix,t=this.id;return e&&t?e+":"+t:void 0},isPopulated:function(){return!!this.lastFetchTime},getOrFetch:function(e){var t=this,i=n(9).defer();return this.attrExists(e)?i.resolve(this.pick.apply(this,e)):this.fetch().then((function(){if(!t.attrExists(e))throw new Error("After fetching some of the requested attributes are still missing.");return t.pick.apply(t,e)})).then(i.resolve,i.reject),i},forceChange:function(e){var t=this.get(e);return this.unset(e,{silent:!0}),this.set(e,t),this}},{_resolve:function(e,t,i){var r=e.instances.find(i);if(r)return n(9).resolve(r);var o=n(28).stringify({scheme:"https",host:n(6).get("public_api_host").replace(/^https?:\/\/api\./,""),path:t});return n(45).callEndpoint("resolve",{},{url:o}).then((function(t){var n=t.body,i=new e(n);return i.release(),i}))}});e.exports=n(346).applyTo(i,{hashFn:function(e){return e&&(e[this.idAttribute||"id"]||e.resource_id)||null},onCleanup:function(e){var t=e._submodels;(null==t?void 0:t.length)&&(n(0).invoke(t,"release"),t.length=0)},prepareArgs:function(e,t){return e=e||{},(t=t||{}).parse&&(e=this.parse(e),(t=n(0).clone(t)).parse=!1),[e,t]},prepareInstance:function(e,t){return(t=t||{}).collection&&(this.lastFetchTime=Date.now()),n(0).isEmpty(e)||this.set(e),delete this.attributes.resource_id,this},getIncrementValue:function(e,t){var n=null==t?void 0:t.collection;return n?n.constructor.instances.countFor(n.resource_id):1}})},230:function(e,t,n){var i=!1;e.exports={initializeOneTrustScan:function(){try{var e=n(64).get("onetrust");e&&"a7c02a899fe843dfbea609e8cfb420f0"===n(1175)(e)&&(i=!0)}catch(e){i=!1}},isOneTrustScanner:function(){return i}}},232:function(e,t,n){"use strict";n.r(t),n.d(t,"RepostCaptionEvent",(function(){return i})),n.d(t,"RepostEvent",(function(){return r})),n.d(t,"updateRepostCaption",(function(){return w})),n.d(t,"trackRepostEditStart",(function(){return A})),n.d(t,"deleteRepost",(function(){return C}));var i,r,o=n(11),a=n.n(o),s=n(6),u=n.n(s),l=n(229),c=n.n(l),d=n(206),f=n.n(d),h=n(26),p=n.n(h),g=n(14),m=n.n(g),v=n(135),y=(n(65),n(9)),_=n.n(y);function b(){return(b=Object.assign||function(e){for(var t=1;t-1}});function i(e,t){return e.audibleAt?e.audibleAt(t):e.at(t)}function r(e){var t=e.current;if(n(16).isSourceActive(this)){var i=this.getSoundIndex(t);i>-1&&this.setAudioCursor(i)}}},235:function(e,t,n){var i=e.exports=new(n(19))({applyTo:function(e,t){var a=(void 0===t?{}:t).action,s=void 0===a?"default":a;this.before(e,{setup:function(){var e=this;this.disableAction(s),"string"==typeof s||n(0).isArray(s)?(this.listenTo(this,"form:clean",this.disableAction),this.listenTo(this,"form:dirty",this.enableAction)):"object"==typeof s&&null!==s&&this.listenTo(this,"field:clean field:dirty",(function(){o(s).forEach((function(t){var i=n(0).isArray(s[t])&&s[t].length>0?s[t]:null;(i?e.isDirty(i):e.isDirty())?e.enableAction(t):e.disableAction(t)}))}))}}),this.defaults(e,{enableAction:function(e){var t=this;void 0===e&&(e=s),o(e).forEach((function(e){t.setActionState(r.call(t,e),i.ENABLED)}))},disableAction:function(e){var t=this;void 0===e&&(e=s),o(e).forEach((function(e){t.setActionState(r.call(t,e),i.DISABLED)}))}})}});function r(e){return"default"===e?this.actions[e]:e}function o(e){return"string"==typeof e?[e]:n(0).isArray(e)?e:"object"==typeof e&&null!==e?Object.keys(e):[]}i.ENABLED="enabled",i.DISABLED="disabled"},2357:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),o=n(5),a=n.n(o)()(r.a);a.push([e.i,".l-one-column>.l-main{padding:30px 0}","",{version:3,sources:["webpack://./app/lib/layouts/one-column.css"],names:[],mappings:"AAAA,sBAAsB,cAAc",sourcesContent:[".l-one-column>.l-main{padding:30px 0}"],sourceRoot:""}]),t.default=a},2360:function(e,t,n){e.exports=n(776).extend({template:n(2366),css:n(2367),element2selector:{bubble:".compact__bubble"},positionBubble:function(){var e=this.getElement("bubble");e.length&&e.position({my:"left-50 bottom-8",at:"left center",of:this.options.$targetEl,offset:"0 -45px"})}})},2361:function(e,t,n){var i=n(10),r=n(2362);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},2362:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),o=n(5),a=n.n(o)()(r.a);a.push([e.i,'.callout{position:absolute;top:0;left:0;bottom:0;right:0;display:none}.callout.m-active{display:block}.callout__bubble{position:absolute;background-color:#fff;padding:25px;box-sizing:border-box;border-radius:4px;transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.callout.m-hidden .callout__bubble{opacity:0;-webkit-transform:translateY(-8px);transform:translateY(-8px)}.callout__bubble:before{content:"";position:absolute;bottom:-8px;left:40px;padding:10px;border-radius:2px;width:0;background-color:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.callout__button{float:right}.callout__title{margin-bottom:10px}.callout__bubble.ui-flipped-bottom:before{bottom:auto;top:-8px}.callout__bubble.ui-flipped-left:before{left:auto;right:40px}.callout.m-hidden .callout__bubble.ui-flipped-bottom{-webkit-transform:translateY(8px);transform:translateY(8px)}.callout__bubble.ui-flipped-bottom{-webkit-transform:translateY(0);transform:translateY(0)}',"",{version:3,sources:["webpack://./app/lib/callouts/callout-view.css"],names:[],mappings:"AAAA,SAAS,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,oEAAoE,CAAC,4DAA4D,CAAC,8FAA8F,CAAC,mCAAmC,SAAS,CAAC,kCAAkC,CAAC,0BAA0B,CAAC,wBAAwB,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,uBAAuB,CAAC,iBAAiB,WAAW,CAAC,gBAAgB,kBAAkB,CAAC,0CAA0C,WAAW,CAAC,QAAQ,CAAC,wCAAwC,SAAS,CAAC,UAAU,CAAC,qDAAqD,iCAAiC,CAAC,yBAAyB,CAAC,mCAAmC,+BAA+B,CAAC,uBAAuB",sourcesContent:['.callout{position:absolute;top:0;left:0;bottom:0;right:0;display:none}.callout.m-active{display:block}.callout__bubble{position:absolute;background-color:#fff;padding:25px;box-sizing:border-box;border-radius:4px;transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.callout.m-hidden .callout__bubble{opacity:0;-webkit-transform:translateY(-8px);transform:translateY(-8px)}.callout__bubble:before{content:"";position:absolute;bottom:-8px;left:40px;padding:10px;border-radius:2px;width:0;background-color:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.callout__button{float:right}.callout__title{margin-bottom:10px}.callout__bubble.ui-flipped-bottom:before{bottom:auto;top:-8px}.callout__bubble.ui-flipped-left:before{left:auto;right:40px}.callout.m-hidden .callout__bubble.ui-flipped-bottom{-webkit-transform:translateY(8px);transform:translateY(8px)}.callout__bubble.ui-flipped-bottom{-webkit-transform:translateY(0);transform:translateY(0)}'],sourceRoot:""}]),t.default=a},2363:function(e,t,n){var i=n(12);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,r,o){var a,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,l=e.escapeExpression,c=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return l((n(7)||t&&d(t,"$view")||u).call(s,n(777),{name:"$view",hash:{fixed:null!=(a=null!=t?d(t,"_options"):t)?d(a,"fixed"):a,delay:null!=(a=null!=t?d(t,"_options"):t)?d(a,"delay"):a,$targetEl:null!=(a=null!=t?d(t,"_options"):t)?d(a,"$targetEl"):a,key:"background"},data:o,loc:{start:{line:1,column:0},end:{line:6,column:2}}}))+'\n\n\n
'+l(c(null!=(a=null!=t?d(t,"_options"):t)?d(a,"title"):a,t))+'
\n
'+l(c(null!=(a=null!=t?d(t,"_options"):t)?d(a,"body"):a,t))+'
\n
\n \n
\n
\n"},useData:!0})},2364:function(e,t,n){var i=n(10),r=n(2365);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},2365:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),o=n(5),a=n.n(o)()(r.a);a.push([e.i,".calloutBackground{position:fixed;top:0;left:0;bottom:0;right:0}.calloutBackground.m-hidden{opacity:0}","",{version:3,sources:["webpack://./app/lib/callouts/callout-background.css"],names:[],mappings:"AAAA,mBAAmB,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,4BAA4B,SAAS",sourcesContent:[".calloutBackground{position:fixed;top:0;left:0;bottom:0;right:0}.calloutBackground.m-hidden{opacity:0}"],sourceRoot:""}]),t.default=a},2366:function(e,t,n){var i=n(12);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,r,o){var a,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return s((n(7)||t&&u(t,"$view")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},n(777),{name:"$view",hash:{fixed:null!=(a=null!=t?u(t,"_options"):t)?u(a,"fixed"):a,delay:null!=(a=null!=t?u(t,"_options"):t)?u(a,"delay"):a,$targetEl:null!=(a=null!=t?u(t,"_options"):t)?u(a,"$targetEl"):a,key:"background"},data:o,loc:{start:{line:1,column:0},end:{line:6,column:2}}}))+'\n\n\n
\n
'+s(e.lambda(null!=(a=null!=t?u(t,"_options"):t)?u(a,"body"):a,t))+"
\n
\n\n"},useData:!0})},2367:function(e,t,n){var i=n(10),r=n(2368);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},2368:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),o=n(5),a=n.n(o),s=n(13),u=n.n(s),l=n(907),c=n.n(l),d=a()(r.a),f=u()(c.a);d.push([e.i,'.compact__bubble{position:absolute;background-color:#fff;padding:0;box-sizing:border-box;border-radius:4px;max-width:360px;transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.compact__bubble:before{content:"";position:absolute;left:50%;bottom:-8px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}.compact__callout__text{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-bottom:0;padding:9px 6px}.big__orange__at{border-bottom-left-radius:2px;border-top-left-radius:2px;content:"";display:block;background:#f50;background-image:url('+f+");background-repeat:no-repeat;background-size:24px;background-position:50%;margin:2px;width:64px;padding-left:8px;padding-right:8px}","",{version:3,sources:["webpack://./app/lib/callouts/compact-callout-view.css"],names:[],mappings:"AAAA,iBAAiB,iBAAiB,CAAC,qBAAqB,CAAC,SAAS,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,eAAe,CAAC,oEAAoE,CAAC,4DAA4D,CAAC,8FAA8F,CAAC,wBAAwB,UAAU,CAAC,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC,kCAAkC,CAAC,yBAAyB,CAAC,wBAAwB,oBAAoB,CAAC,YAAY,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,eAAe,CAAC,eAAe,CAAC,iBAAiB,6BAA6B,CAAC,0BAA0B,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC,wDAAgD,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,iBAAiB",sourcesContent:['.compact__bubble{position:absolute;background-color:#fff;padding:0;box-sizing:border-box;border-radius:4px;max-width:360px;transition:opacity .3s ease-in-out,-webkit-transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out;transition:opacity .3s ease-in-out,transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.compact__bubble:before{content:"";position:absolute;left:50%;bottom:-8px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}.compact__callout__text{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-bottom:0;padding:9px 6px}.big__orange__at{border-bottom-left-radius:2px;border-top-left-radius:2px;content:"";display:block;background:#f50;background-image:url(~assets/images/at-icon.svg);background-repeat:no-repeat;background-size:24px;background-position:50%;margin:2px;width:64px;padding-left:8px;padding-right:8px}'],sourceRoot:""}]),t.default=d},238:function(e,t){var n=/(\w+)\:(\w+)=(.+)/,i=e.exports={extract:function(e,t){var n=e.tag_list||"",r=[];return r.push.apply(r,i.parse(n,t)),r},parse:function(e,t){return(e.match(/[^\s"']+|"([^"]*)"/g)||[]).map((function(e){return e.replace(/"/g,"")})).filter((t||{}).includeMachineTags?o:r)},serialize:function(e){var t=/\s/;return e.map((function(e){return t.test(e)?'"'+e+'"':e})).join(" ")}};function r(e){return!n.test(e)}function o(){return!0}},2386:function(e,t,n){e.exports=n(308).extend({includeFooter:".l-one-column",css:n(941),template:n(1013)})},2404:function(e,t,n){e.exports=new(n(19))({requirePrototype:n(35).View.prototype,_callout:null,applyTo:function(e,t){var r=Array.isArray(t)?t:[t];this.extend(e,{showCallout:function(){var e=this,t=n(0).find(r,(function(t){var i=t.id,r=t.displayCondition,o=void 0===r?function(){return!0}:r;return n(775).shouldDisplay(i)&&o.call(e)}));if(t){var o=t.id,a=t.elSelector,s=t.viewOptions,u=void 0===s?{}:s,l=a?this.$(a):this.$el;if(l.length){var c=n(0).isFunction(u)?u.call(this):u;this._callout=n(775).display(o,l,{viewOptions:c}),this.listenTo(this._callout,"closed overlay:closed",i)}}}})},after:{renderDecorate:function(){this.showCallout()},dispose:function(){this._callout&&(this._callout.disposed||this._callout.close(),i.call(this))}}});function i(){var e=this._callout;e&&(this.stopListening(e),this._callout=null)}},2408:function(e,t,n){e.exports=new(n(19))({requires:["adZone"],around:{parse:function(e,t){var i=n(79).parseResponse(t),r=i.data,o=[];return r&&o.push({ad_urn:i.ad_urn,campaign:"promoted",kind:r.kind,origin:r,promoted_by:i.promoted_by_user,promoted_by_urn:i.promoted_by_urn,tracking:i.tracking}),e(o)}},defaults:{parse:function(e){return e}},override:{url:function(){return null!==this.next_href?this.next_href:n(79).getAdUrl(this.adZone,n(0).result(this,"adZoneParams"))}}})},2410:function(e,t,n){var i=[".header__userNavUsernameButton",".playControls__soundBadge",".queue__scrollable",".notifications__list","#searchMenuList"],r=(e.exports=new(n(19))({requireProto:n(308).proto,applyTo:function(e,t){var a=void 0===t?{}:t,u=a.sensitiveElements,l=void 0===u?[]:u,c=(a.debug,a.isAllowedToRecord),d=void 0===c?function(){return!0}:c,f=window.document.body,h=n(774).whenElementAdded(l.concat(i),s),p=function(e){e&&!r.textContent&&(r.textContent="\n .sc-block-debug-input {\n background-image: repeating-linear-gradient(-45deg, transparent 0 4px, red 4px 8px);\n }\n .sc-block-debug-container:after {\n content: '';\n opacity: 1;\n background: repeating-linear-gradient(-45deg, transparent 0 4px, red 4px 8px);\n position: absolute;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n ");return r}(!1),g=!1;this.before(e,{setup:function(){d.call(this)&&(h.observe(f,{childList:!0,subtree:!0}),f.appendChild(p),o(i,!1),n(179).start(),g=!0)},dispose:function(){g&&(h.disconnect(),n(179).stop(),o(i,!0),f.removeChild(p),g=!1)}})}}),new WeakMap,window.document.createElement("style"));function o(e,t){n(774).toArray(window.document.querySelectorAll(e.join(","))).forEach((function(e){return a(e,t)}))}function a(e,t){HTMLInputElement;["fs-block",null].filter(Boolean).forEach((function(n){return e.classList.toggle(n,!t)}))}function s(e){a(e,!1)}},25:function(e,t,n){var i=e.exports={isVoidElement:n(0).memoize((function(e){return-1!==a.indexOf(e)})),isBoolAttribute:n(0).memoize((function(e){return-1!==o.indexOf(e)})),el:function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=""),i.isVoidElement(e)?r(e,t):r(e,t)+i.children(n)+function(e){return""+e+">"}(e)},children:function(e){return Array.isArray(e)?e.filter(Boolean).join(""):e},voidEl:function(e,t){return void 0===t&&(t={}),r(e,t)},subview:function(e,t){return void 0===t&&(t={}),n(465).registerSubview(e,t)},reactSubview:function(e,t,i){return n(466).default.handlebarsHelper(e,t,i)},toAttributesString:function(e){var t,i,r=[];return n(0).each(e,(function(e,o){t=o+'="',i=[],n(0).isObject(e)?n(0).each(e,(function(e,t){i.push(t+":"+e)})):i.push(e),r.push(t+i.join(";")+'"')})),r.join(" ")}};function r(e,t){var r=function(e){return n(0).map(e,(function(e,t){return i.isBoolAttribute(t)?e&&t:t+'="'+e+'"'})).filter(Boolean).join(" ")}(t);return"<"+n(0).compact([e,r]).join(" ")+">"}var o=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","readonly","required","reversed","selected","typemustmatch"],a=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]},250:function(e,t){e.exports={QUEUE_RESET:"queueReset",CHANGE_CURRENT_SOUND:"change:currentSound",CHANGE_REPEAT_MODE:"change:repeatMode"}},251:function(e,t,n){var i=window.document.referrer,r=n(28).parse(i).host||"",o=n(28).getQueryParam("utm_medium"),a=n(28).getQueryParam("utm_campaign"),s=n(28).getQueryParam("utm_source"),u=n(28).getQueryParam("p"),l=n(28).getQueryParam("c"),c=o||a||s||u||l?{platform:u,utm_campaign:a,utm_medium:o,utm_source:s,was_shared_by_object_owner:l}:void 0;e.exports={facebook:"facebook"===o||/\bfacebook\.com/.test(i)||/\bw\.soundcloud\.com/.test(i)&&/origin=facebook/.test(i)||!!n(28).getQueryParam("fb_action_ids"),googleplus:"googleplus"===o,searchEngine:[/\.ask\.com$/,/\.baidu\.com$/,/\.bing\.com$/,/\.duckduckgo\.com$/,/\.google\.com$/,/\.yahoo\.com$/,/\.yandex\.com$/].some(i.match,r),referrer_properties:c}},252:function(e,t,n){(function(t){var i=e.exports={parseOtherId:function(e){var t,i=String(n(6).get("me").id);if("string"==typeof e)return(t=e.split(":"))[0]===i?t[1]:t[0]},baseUrl:function(){var e=[].slice.call(arguments);return n(28).stringify({host:n(6).get("api_v2_host"),path:["users",n(6).get("me").id,"conversations"].concat(e)})},baseUrlWithId:function(e){var t=n(0).tail(arguments);return i.baseUrl.apply(null,[i.parseOtherId(e)].concat(t))},post:function(e,n){var r=i.baseUrl(e),o={contents:n};return t.ajax({type:"POST",url:r,dataType:"json",contentType:"application/json",data:JSON.stringify(o)})}}}).call(this,n(17))},253:function(e,t){e.exports={FAILURE:"failure",FINISHED:"finished",NOT_FOUND:"not_found",PREPARING:"preparing",TRANSCODING:"transcoding",QUEUED:"queued"}},257:function(e,t){e.exports={VAST_ERROR_CODE_GENERAL_LINEAR_ERROR:400,VAST_ERROR_CODE_NOT_SUPPORTED_LINEAR_ERROR:403,VAST_ERROR_CODE_GENERAL_COMPANION_ADS_ERROR:600,VAST_ERROR_CODE_UNDEFINED_ERROR:900}},26:function(e,t,n){var i={comments:"comment",playlists:"playlist","system-playlists":"system-playlist",sounds:"track",tracks:"track",users:"user"},r={comments:"comment",playlists:"playlist","system-playlists":"system-playlist",sounds:"sound",tracks:"sound",users:"user","artist-stations":"station","track-stations":"station"},o={comment:"comments",playlist:"playlists","system-playlist":"system-playlists",sound:"tracks",track:"tracks",user:"users"},a={sets:"playlists",sounds:"tracks",people:"users"},s=n(0).reduce(a,(function(e,t,n){return e[t]=e[t]||[],e[n]=e[n]||[],c(e[t],n),c(e[n],t),e}),{}),u=n(0).negate(RegExp.prototype.test.bind(/\D/)),l=e.exports={toComponents:function(e){var t=e.split(":"),n=t[0],i=t[1],r=t.slice(2).join(":");return u(r)&&(r=parseInt(r,10)),{domain:n,collection:i,id:r}},fromComponents:function(e){var t=e.domain;return[void 0===t?"soundcloud":t,e.collection,e.id].join(":")},getAsAttributes:function(e){var t=l.toComponents(e),n=t.collection,o=t.id,a=r[n];return"user"===a&&"system"===o?o=193:"system-playlist"===a&&(o=e),{id:o,kind:i[n],resource_type:a}},generate:function(e,t){if("station"===e||"system-playlist"===e)return t;var n=o[e];return n?l.fromComponents({collection:n,id:t}):null},getAlternateUrns:function(e){var t=l.toComponents(e),n=t.domain,i=t.collection,r=t.id,o=s[i];return o?o.map((function(e){return l.fromComponents({domain:n,collection:e,id:r})})):null},getCanonicalUrn:function(e){var t=l.toComponents(e),n=t.domain,i=t.collection,r=t.id,o=a[i];return o?l.fromComponents({domain:n,collection:o,id:r}):e}};function c(e,t){e.indexOf(t)<0&&e.push(t)}},263:function(e,t,n){"use strict";n.r(t),n.d(t,"Signal",(function(){return i}));var i=function(){function e(){var e,t,n;n=[],(t="_listeners")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.onSignal=this.onSignal.bind(this),this.trigger=this.trigger.bind(this),this.remove=this.remove.bind(this)}var t=e.prototype;return t.trigger=function(){this._listeners.forEach((function(e){return e()}))},t.onSignal=function(e){this._listeners.push(e)},t.remove=function(e){this._listeners=this._listeners.filter((function(t){return t!==e}))},e}()},264:function(e,t,n){var i=n(31).MS_IN_SECOND/60;function r(){return n(6).get("features").has("debug_playback")||n(6).get("features").has("internal_qa")}function o(e){var t=e instanceof n(90).ProxyPlayer?e.getPlayer():e;return t instanceof n(78).Player?t:null}var a=[];function s(e){Object.keys(window.__sc_players).some((function(t){return window.__sc_players[t]===e&&(delete window.__sc_players[t],!0)}))}function u(e){var t=e.trackUrn,i=void 0===t?"":t,r=e.quality,o=void 0===r?"":r,a=e.audioQualityMode,s=void 0===a?"":a,u=e.preset,l=void 0===u?"":u,c=e.entityType,d=e.bitrate,f=e.format,h=e.host,p=e.latency,g=e.playerType,m=e.protocol,v=e.preloaded,y=e.type,_=e.appState,b=e.playerVariant;n(93).audioPerformance({track_urn:i,bitrate:d,format:f,host:h,latency:p,player_type:g,protocol:m,preloaded:v,type:y,app_state:_,player_variant:b,quality:o,preset:l,entity_type:c,player_version:"v"+n(78).version,player_build_number:n(78).buildNumber,audio_quality_mode:s})}function l(e){var t=e.trackUrn,i=void 0===t?"":t,r=e.audioQualityMode,o=void 0===r?"":r,a=e.quality,s=void 0===a?"":a,u=e.preset,l=void 0===u?"":u,c=e.bitrate,d=void 0===c?"":c,f=e.format,h=void 0===f?"":f,p=e.host,g=void 0===p?"":p,m=e.playerType,v=e.protocol,y=void 0===v?"":v,_=e.url,b=void 0===_?"":_,w=e.entityType,k=e.appState,A=e.errorCode,C=e.playerVariant,S=e.log,E=e.logId,x=null;try{n(93).audioError({bitrate:d,format:h,host:g,player_type:m,protocol:y,quality:s,preset:l,url:b,app_state:k,entity_type:w,error_code:A,player_variant:C,track_urn:i,player_version:"v"+n(78).version,player_build_number:n(78).buildNumber,audio_quality_mode:o,log_id:E})}catch(e){x=e}if(function(e){return"SCAUDIO.NOT_SUPPORTED_ERROR"===e||"SCAUDIO.NO_STREAMS"===e||0===e.indexOf("SCAUDIO.URL_RETRIEVER_ERROR.MediaPayload.INVALID_STATUS_")}(A)||n(101).notify({error:{name:"SCAudio: "+A,message:A},context:{component:"SCAudio",scaudioVersion:n(78).version,MaestroCoreVersion:n(90).version,HTML5ControllerVersion:n(180).version,HLSMSEControllerVersion:n(647).version,ChromecastControllerVersion:n(649).version,stringLoaderVersion:n(461).version,streamUrl:b,playerType:m,streamFormat:h,log:S.slice().reverse(),logId:E}}),x)throw x}function c(){var e=n(107).getMuted()?0:n(107).getVolume();n(78).setGlobalVolume(function(e){return Math.pow(e,3)}(e))}var d=n(1194).buildConnectionEventManager();function f(e,t){var i=t.type,r=t.url,o=t.audioReporter,a=t.checkpointInterval;if("AD"===i)return n(1197).buildPlayer({url:r,audioPerformanceReporter:u,errorReporter:l,audioReporter:o,checkpointInterval:a});if("GENERAL"===i)return function(e,t){var i=t.dataPromise,r=t.audioReporter,o=t.checkpointInterval,a={},s=null,c=null,d=null,f=new(n(90).ProxyPlayer)({shouldPassThroughFatalErrors:!0,name:"General+ChromecastProxy-"+e,logger:n(181)});return h(),n(11).on("googleCast:audioHijack",h),n(11).on("googleCast:audioRestored",h),f.onChange.subscribe((function(e){e.dead&&(n(11).off("googleCast:audioHijack",h),n(11).off("googleCast:audioRestored",h),d&&(d.reject(a),d=null))})),f;function h(){var e=n(131).isCasting();if(!("chromecast"===s&&e||"general"===s&&!e)){if(s){var t=f.getPlayer();t&&(f.removePlayer(),t.kill()),d&&(d.reject(a),d=null),s=null}e?(s=c="chromecast",(d=n(1195).buildPlayer({dataPromise:i,audioPerformanceReporter:u,errorReporter:l})).then((function(e){f.providePlayer(e,{syncPosition:f.isPlaying(),syncVolume:!1})}))):(c&&f.pause(),s=c="general",(d=n(1196).buildPlayer({dataPromise:i,audioPerformanceReporter:u,errorReporter:l,audioReporter:r,checkpointInterval:o})).then((function(e){f.providePlayer(e,{syncPosition:!0,syncVolume:!1})}))),d.fail((function(e){e!==a&&f.kill()}))}}}(e,t);throw new Error("Unknown player type: "+i)}c(),n(107).on("change:local",c);var h=n(346).applyTo(function(){"use strict";function e(e,t){var i=this;try{if(this.id=e,this.config=t,this.preloadingManager=n(1198).buildPreloadingManager(),this.player=f(this.resource_id||this.id,t),r()&&function(e,t){if("__sc_players"in window||(window.__sc_players={}),a.indexOf(e)>=0)return a.splice(a.indexOf(e),1),void a.push(e);if(window.__sc_players[t]=e,a.push(e),a.length>10){var n=a.shift();n.isDead()&&s(n)}}(this.player,this.resource_id||this.id),this.player.isDead())throw this.player.getFatalError();this.player.onChange.subscribe((function(e){e.dead&&r()&&s(i.player)})),this.scaudioPlayer=o(this.player),this.scaudioPlayer&&(d.handleConnectionEvents(this.scaudioPlayer),this.preloadingManager.registerPlayer(this.scaudioPlayer)),this.killedByUser=!1}catch(e){throw this.release(),e}}var t=e.prototype;return t.isDead=function(){return this.player.isDead()},t.play=function(){r()&&(window.__sc_players.current=this.player),this.player.isEnded()&&this.player.seek(0),this.player.play()},t.pause=function(){return this.player.pause()},t.pauseAfterFade=function(e){var t=o(this.player);t?t.pauseAfterFade(e):this.player.pause()},t.seek=function(e){if("number"!=typeof e)throw new Error("Seek position must be a number.");this.player.seek(e)},t.getPosition=function(){return this.player.getPosition()},t.enablePreloading=function(){return this.preloadingManager.enablePreloading()},t.disablePreloading=function(){return this.preloadingManager.disablePreloading()},t.getMaxBufferLength=function(){return this.player.getMaxBufferLength()},t.isPlaying=function(){return this.player.isPlaying()},t.isLoading=function(){return this.player.isLoading()},t.isEnded=function(){return this.player.isEnded()},t.getCurrentBufferedTimeRange=function(){return this.player.getCurrentBufferedTimeRange()},t.getDuration=function(){return this.player.getDuration()},t.getListenTime=function(){return this.player.getListenTime()},t.registerMediaSessionActionHandlers=function(){return this.player.registerMediaSessionActionHandlers()},t.unregisterMediaSessionActionHandlers=function(){return this.player.unregisterMediaSessionActionHandlers()},t.getQuality=function(){var e=o(this.player);return e?e.getQuality():null},t.kill=function(){this.killedByUser=!0,this.player.kill()},t.addEventListener=function(e,t){var n=this,r=this.player,o=function(){return t()},a=function(){switch(e){case"play":return[r.onPlayIntent.subscribe(o),r.onPauseRejection.subscribe(o)];case"pause":return[r.onPauseIntent.subscribe(o),r.onPlayRejection.subscribe(o)];case"playStart":return r.onPlay.subscribe(o);case"finish":return r.onEnded.subscribe(o);case"seeked":return r.onPositionJumped.subscribe(o);case"buffering:start":return r.onLoadStart.subscribe(o);case"buffering:end":return r.onLoadEnd.subscribe(o);case"qualityChanged":return n.scaudioPlayer?n.scaudioPlayer.onQualityChanged.subscribe((function(e){return t({quality:e})})):void 0;case"time":return function(e,t){var n=function n(){window.clearTimeout(r);var a=e.getPosition();a!==o&&(t(),o=a),e.isActuallyPlaying()&&!e.isEnded()&&(r=window.setTimeout(n,i))},r=0,o=null,a=e.onChange.subscribe((function(e){var t=e.actuallyPlaying,i=e.positionJumped,o=e.ended;e.dead?window.clearTimeout(r):(void 0!==t||i||void 0!==o)&&n()}));return(e.isActuallyPlaying()||0!==e.getPosition())&&n(),{remove:function(){a.remove(),window.clearTimeout(r)}}}(r,o);case"playerError":return r.onChange.subscribe((function(e){var i=e.dead,r=e.fatalError;r?t({error:new Error("SCAudio error: "+r.getCode())}):i&&!n.killedByUser&&t({error:new Error("Unexpected error.")})}));case"dead":return r.onChange.subscribe((function(e){e.dead&&t()}));default:0}}()||[];return Array.isArray(a)||(a=[a]),{remove:function(){a.forEach((function(e){return e.remove()})),a=[]}}},e}(),{cleanupInstantly:!0,hashFn:function(e,t){var n=(void 0===t?{}:t).soundContext;if(void 0!==n){var i=n.playlist_id,r=n.system_playlist_id,o=n.ad_target_id,a=n.sound_id;if(void 0!==i&&void 0!==a)return[i,a].join("_");if(void 0!==r&&void 0!==a)return[r,a].join("_");if(void 0!==o)return["ad",o].join("_");throw new Error("Invalid soundContext provided to the Player")}if(void 0!==e)return String(e);throw new Error("Player instance is created without an id")}});e.exports={PlayerClass:h,scheduleMediaElementActivation:function(){window.addEventListener("click",(function e(){window.removeEventListener("click",e,!0),n(0).values(n(351)).forEach((function(e){return e.activate()}))}),!0)},createPlayer:function(e,t){return new h(e,t)}}},269:function(e,t,n){var i=n(484);if("undefined"!=typeof window){var r=n(2).Lingua;i={"all-music":r.t("All music genres"),"all-audio":r.t("All audio genres"),alternativerock:r.t("Alternative Rock"),ambient:r.t("Ambient"),classical:r.t("Classical"),country:r.t("Country"),danceedm:r.t("Dance & EDM"),dancehall:r.t("Dancehall"),deephouse:r.t("Deep House"),disco:r.t("Disco"),drumbass:r.t("Drum & Bass"),dubstep:r.t("Dubstep"),electronic:r.t("Electronic"),folksingersongwriter:r.t("Folk & Singer-Songwriter"),hiphoprap:r.t("Hip-hop & Rap"),house:r.t("House"),indie:r.t("Indie"),jazzblues:r.t("Jazz & Blues"),latin:r.t("Latin"),metal:r.t("Metal"),piano:r.t("Piano"),pop:r.t("Pop"),rbsoul:r.t("R&B & Soul"),reggae:r.t("Reggae"),reggaeton:r.t("Reggaeton"),rock:r.t("Rock"),soundtrack:r.t("Soundtrack"),speech:r.t("Speech"),techno:r.t("Techno"),trance:r.t("Trance"),trap:r.t("Trap"),triphop:r.t("Triphop"),world:r.t("World"),audiobooks:r.t("Audiobooks"),business:r.t("Business"),comedy:r.t("Comedy"),entertainment:r.t("Entertainment"),learning:r.t("Learning"),newspolitics:r.t("News & Politics"),religionspirituality:r.t("Religion & Spirituality"),science:r.t("Science"),sports:r.t("Sports"),storytelling:r.t("Storytelling"),technology:r.t("Technology")}}var o=n(0).chain(n(484)).values().reduce((function(e,t){return e[t]=!0,e}),{}).value();e.exports={genreLabels:i,englishLabels:n(484),isSupportedGenre:function(e){return!!o[e]},getTopChartsGenre:function(e){if(e){var t=n(26).toComponents(e).id.split(":"),r=t[0],o=t[1];if("charts-top"===r)return o in i?i[o]:o}return null}}},278:function(e,t){e.exports={forgot_email:"authentication::forgot_email",forgot_password_abort:"authentication::forgot_password::abort",abort_sign_up_details_prompt:"authentication::abort:signup_details_prompt",profile_complete:"profile_complete",method_selection:"authentication::method_selection",password_reset_initiation:"authentication::password_reset_initiation",sign_in_restart:"authentication::sign_in_restart",sign_up:"authentication::signup",sign_in_success:"sign_in_success",sign_up_success:"sign_up_success",abort:"authentication::abort",initiate:"initiate",sign_out:"sign_out"}},28:function(e,t,n){var i,r,o=n(86).pushState?n(0).identity:function(e){return e&&e.replace(/#/,"")},a=e.exports=n(0).defaults({parse:function(e,t){return e=o(e),n(71).parse(o(e),t)},getQueryParam:function(e,t){return a.getQueryParams(t)[e]},getFragmentParam:function(e){return n(86).pushState?a.parseQueryString(window.location.hash.substring(1))[e]:void 0},removeFragmentParam:function(e,t){return(t=t||window.location.href).replace(new RegExp("#(?:(.+)&?)?"+n(124).regexpEscape(e)+"(?:=[^&]*(?:&|$))?"),"#$1").replace(/#$/,"")},getQueryParams:function(e){var t=e||(n(86).pushState?window.location.search:window.location.hash.replace(/^[^?]*/,""));return t!==i&&(i=t,r=a.parseQueryString(t)),r},getQueryString:function(e){return e?e.replace(/^[^?#]*(\?[^#]*)?(?:#.*)?$/,"$1"):n(86).pushState?window.location.search:window.location.hash.replace(/^[^?]*/,"")},getWindowOrigin:function(){var e=window.location,t=e.protocol,n=e.hostname,i=e.port;return t+"//"+n+(i?":"+i:"")}},n(71))},281:function(e,t,n){e.exports={getIcon:function(e,t){var i=e.getTitle(),r=e.id;return r===n(37).CREATOR_SUBSCRIPTION_PRO||r===n(37).CREATOR_SUBSCRIPTION_PRO_UNLIMITED?(t=n(0).assign({},t,{prefix:"sc-status-icon",title:i||"",type:"creator"}),n(678).render(t)):""},getIconLink:function(e,t){var i=this.getIcon(e,t);if(!i)return i;var r=e.getTitle(),o=n(87).getCreatorLink(null==t?void 0:t.referral);return''+i+""},getNextLevelProductId:function(e){var t=e.getCreatorPlan();return t===n(37).CREATOR_SUBSCRIPTION_FREE||"lite"===t||void 0===t?n(37).CREATOR_SUBSCRIPTION_PRO:n(37).CREATOR_SUBSCRIPTION_PRO_UNLIMITED},getQuotaInfo:function(e){var t=e.getUploadSecondsLeft(),n=e.getUploadSecondsUsed(),i=e.getUploadMinutesLeft(),r=e.getUploadMinutesUsed(),o=e.isOverQuota();if(e.hasUnlimitedUpload())return!1;var a=t+n,s=Math.round(a/60),u=Math.round(a),l=s/60,c=r-s,d=e.getTracksUploaded(),f=e.getTracksLeft()+d,h=e.hasTrackLimit(),p=Math.floor(100*d/f),g=Math.floor(100*n/u),m=h&&p>g?p:g;return{minutesLeft:i,minutesUsed:r,limitInMinutes:s,limitInHours:l,isOverQuota:o,minutesOver:c,percentageUsed:m,percentageTime:g,percentageTracks:p,limitInTracks:f,isNearingQuota:m>=50}}}},287:function(e,t){e.exports={createAbortController:function(){var e=new Set;return{abort:function(){e.forEach((function(e){return e()}))},signal:{addAbortListener:function(t){e.add(t)},removeAbortListener:function(t){e.delete(t)}}}},listenToAbortSignal:function(e,t){var n=function(){e.abort()};return t.addAbortListener(n),e.always((function(){t.removeAbortListener(n)})),e}}},289:function(e,t){function n(){var e=Error.apply(this,arguments);e.name=this.name="UnauthorizedViewerError",this.message="User is unauthorized to view this resource.",this.stack=e.stack}n.prototype=Object.create(Error.prototype),e.exports=n},290:function(e,t,n){var i,r=((i={})[n(112).anonymousId]=n(1171),i[n(112).meUser]=n(1172),i[n(112).features]=n(1180),i[n(112).experiments]=n(1182),i[n(112).geoip]=n(197).bind(null,n(642)),i[n(112).privacySettings]=n(197).bind(null,n(184)),i[n(112).user]=n(197).bind(null,n(33)),i[n(112).sound]=n(197).bind(null,n(21)),i[n(112).playlist]=n(197).bind(null,n(53)),i[n(112).systemPlaylist]=n(197).bind(null,n(91)),i[n(112).station]=n(197).bind(null,n(129)),i[n(112).staticPageContent]=n(197).bind(null,n(954)),i);function o(e,t){if(e in r)return r[e](t)}e.exports={hydrateViaSSSR:function(){var e;(null==(e=window.__sc_hydration)?void 0:e.length)&&window.__sc_hydration.forEach((function(e){o(e.hydratable,e.data)}))},hydrate:o}},295:function(e,t){e.exports={EARNINGS_DASHBOARD:"can_see_earnings_dashboard",REVSHARE_PREMIER_AGREEMENT:"can_see_revshare_premier_agreement",REVSHARE_PRO_AGREEMENT:"can_see_revshare_pro_agreement"}},296:function(e,t,n){var i=e.exports=n(23).extend({resource_type:"single-audio-upload",url:null,_uploadRequest:null,_transcodingStatus:null,_uploadId:null,hasDataForView:function(){return!0},setup:function(e){r.call(this,e.file),this.set({status:n(62).QUEUED,hasBeenSaved:!1,trackingId:(new Date).getTime()+"_"+Math.random().toString(36).substring(2)})},upload:function(){return this._uploadRequest||(this.set("status",n(62).UPLOADING),this._uploadRequest=(new(n(967))).upload(this.get("file")).done(a.bind(this)).fail(s.bind(this)).progress(u.bind(this))),this._uploadRequest},remove:function(){o.call(this),this.destroy(),i.removeInstance(this)},getUploadId:function(){return this._uploadId},getTrackingId:function(){return this.get("trackingId")},getFileName:function(){return this.get("file").name},isHQUpload:function(){return n(222).isHQ(this.getFileName())}},{hashFn:function(e,t){return(null==t?void 0:t.resource_id)||e&&(e.file?null:e.id||e.resource_id)||null}});function r(e){this.set("transfer",new(n(481))({sampleSize:50})),this.get("transfer").setTotal(e.size),this.set("transcoding",new(n(481))({sampleSize:10,totalSize:100}))}function o(){this._uploadRequest&&this._uploadRequest.abort(),this._transcodingStatus&&this._transcodingStatus.abort()}function a(e){var t=this.get("transfer");this._uploadId=e,this.set("status",n(62).TRANSCODING),t.add(t.getTotalSize()),n(14).trackUploadFunnel({chapter:"upload_done",uploadId:this.getTrackingId()}),this.get("transcoding").setTotal(0),this._transcodingStatus=new(n(1449))(e).done(l.bind(this)).fail(c.bind(this)).progress(d.bind(this))}function s(){this.set("status",n(62).FAILED),n(14).trackUploadFunnel({chapter:["failed","uploading"],uploadId:this.getTrackingId()})}function u(e){this.get("transfer").setTotal(e.total).add(e.loaded)}function l(){this.get("transcoding").setTotal(100).add(100),this.set("status",n(62).COMPLETE),n(14).trackUploadFunnel({chapter:"complete",uploadId:this.getTrackingId()})}function c(){this.get("transcoding").setTotal(100),this.set("status",n(62).FAILED),n(14).trackUploadFunnel({chapter:["failed","transcoding"],uploadId:this.getTrackingId()})}function d(e){this.get("transcoding").setTotal(100).add(e)}},302:function(e,t,n){"use strict";function i(e,t){return e in t&&"string"==typeof t[e]}n.r(t),n.d(t,"ParseableTracklistFormats",(function(){return p})),n.d(t,"UnparseableTracklistFormats",(function(){return g})),n.d(t,"TracklistFormats",(function(){return v})),n.d(t,"detectFormat",(function(){return y})),n.d(t,"parseTracklist",(function(){return _}));var r=n(394),o=n(9),a=n(31),s=/^(?=.*name)(?=.*start time)(?=.*end time)(?=.*artist).+/,u=/^(\d{2}):(\d{2}):(\d{2})/;var l=/.*Track Title.*Artist.*Time.*/;var c=/soundcloud.com(\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+[/[a-zA-Z0-9_-]*]*)/,d=/^([^\/\t\n\r]+)[-|–|—]([^\/\t\n\r]+)/;function f(e){return t=e,c.test(t)||d.test(t);var t}var h,p,g;function m(){return(m=Object.assign||function(e){for(var t=1;t0?e.substr(0,t):e}(e);return t=n,l.test(t)?p.Rekordbox:function(e){return s.test(e)}(n)?p.Serato:f(n)?p.ScFreeform:g.Unsupported}function _(e,t){return b[t](e)}var b=((h={})[p.ScFreeform]=function(e){var t=function(e){return e.split("\n")}(e).reduce((function(e,t,n){if(c.test(t)){var i=c.exec(t),r=(i&&i[1]||"").trim().split("/"),o=r[1],a=r[2],s=r[3];o&&a?e.tracks.push({userPermalink:o,trackPermalink:a,secretToken:s}):e.invalidEntries.push({row:n})}else if(d.test(t)){var u=d.exec(t),l=u&&u[1]&&u[1].trim(),f=u&&u[2]&&u[2].trim();l&&f?e.tracks.push({artist:l,title:f}):e.invalidEntries.push({row:n})}else e.invalidEntries.push({row:n});return e}),{tracks:[],invalidEntries:[]});return 0===t.tracks.length?o.reject():o.resolve(t)},h[p.Rekordbox]=function(e){var t=r.parse(e,{header:!0}),n=t.data.reduce((function(e,t){if(t&&"object"==typeof t){var n=i("Track Title",t)?t["Track Title"]:void 0,r=i("Artist",t)?t.Artist:void 0;r&&n&&e.push({artist:r,title:n})}return e}),[]),a=t.errors.map((function(e){return{row:e.row}}));return 0===n.length?o.reject():o.resolve({tracks:n,invalidEntries:a})},h[p.Serato]=function(e){var t,n=r.parse(e,{header:!0}),s=n.data.reduce((function(e,n,r){if(r>0&&n&&"object"==typeof n){var o=i("name",n)?n.name:void 0,s=i("artist",n)?n.artist:void 0,l=i("start time",n)?n["start time"]:void 0;if(s&&o){var c={artist:s,title:o};if(l&&u.test(l)){var d=u.exec(l);if(d){var f=d[1],h=d[2],p=d[3],g=parseInt(f,10)*a.MS_IN_HOUR+parseInt(h,10)*a.MS_IN_MINUTE+parseInt(p,10)*a.MS_IN_SECOND;void 0===t&&(t=g),c.startMs=Math.max(0,g-t)}}e.push(c)}}return e}),[]),l=n.errors.map((function(e){return{row:e.row}}));return 0===s.length?o.reject():o.resolve({tracks:s,invalidEntries:l})},h)},303:function(e,t){e.exports={legislationTypes:{CCPA:"CCPA",GDPR:"GDPR"}}},304:function(e,t,n){var i=/^http:/,r=/default/,o=e.exports={tagOptions:{whitelist:["alt","class","height","itemprop","src","title","width"]},availableSizes:[[20,"t20x20"],[50,"t50x50"],[120,"t120x120"],[200,"t200x200"],[500,"t500x500"]],availableVisualsSizes:[[1240,"t1240x260"],[2480,"t2480x520"]],imageUrlRegex:/^.*\/(\w+)-([-a-zA-Z0-9]+)-([a-z0-9]+)\.(jpg|png|gif).*$/i,markup:function(e,t){var i=this.getMarkupAttrs(e,t);return n(409).getMarkup("img",i,this.tagOptions)},getMarkupAttrs:function(e,t){return e=a(e),n(0).assign({src:this.urlFrom(e,t.size),width:t.size,height:t.size,alt:this.getAltText(e)},t)},urlFrom:function(e,t,n,r){var s,u=(e=a(e))&&(e.calculated_artwork_url||e.artwork_url||e.avatar_url||!r&&function(e){var t,n;if(e)for(t=0,n=e.length;t=t}))||n(0).last(i);return"t20x20"===r[1]&&"artworks"===e?"tiny":r[1]}(a,t);l&&(e=e.replace(u,l)),i&&(e=s.call(this,e))}return e},getOriginalFormat:function(e,t){if(this.isDefaultImage(e))return"";var n=this.parseImageUrl(e);if(n){var i=n[3];e=e.replace(i,"original"),t&&(e=s.call(this,e))}return e},isDefaultImage:function(e){return!e||r.test(e)},parseImageUrl:function(e){return o.imageUrlRegex.exec(e)},getAltText:function(e){return(e=a(e))?e.username?n(637).get(e,!0)+" avatar":n(637).get(e):""},isSquare:function(e){return e.width===e.height}};function a(e){return e&&(e.attributes||e)}function s(e){var t,n=this.parseImageUrl(e);return n&&1!==(t=n[3].charCodeAt(0)%4+1)&&(e=e.replace("//i1.","//i"+t+".")),e}},306:function(e,t,n){(function(t){var i=n(86).typedArrays?Uint8Array:Array,r=n(6).get("wisHost")+"/90GaSwazbrh1_m.png",o=new(n(219))({maxLength:500}),a=/\.png$/,s=e.exports={loadWaveformData:function(e){var t=u(e),i=o.get(t);return i||(i=l(t).then(f,(function(){return n(9).resolve(d())})),o.set(t,i)),i},loadWaveformDataRaw:function(e){return l(u(e)).then(null,(function(){return n(9).resolve(s.getFakeWaveformDataResponse())}))},getFakeWaveformDataResponse:function(){var e=d();return{samples:e,width:e.length,height:Math.max.apply(Math,e)}}};function u(e){return(!e||e.indexOf("/images/player-waveform-medium.png")>-1?r:e).replace(a,".json")}function l(e){return t.ajax({url:e,type:"GET",dataType:"json",timeout:1e4,priority:n(173).RequestPriorities.LOW})}var c=n(0).memoize((function(e){return function(t,n,i){return t[i]=Math.round(Math.pow((e-n)/e,1/1.5)*e),t}})),d=n(0).memoize((function(){for(var e=new i(1800),t=0;t<1800;++t)e[t]=Math.round(15*Math.sin(t/1800*Math.PI*10)+105);return e})),f=function(e){return e.samples.reduce(c(e.height),new i(e.samples.length))}}).call(this,n(17))},307:function(e,t,n){var i=["q","q[fulltext]","filter.duration","filter.created_at","filter.license","filter.genre","filter.genre_or_tag","filter.place","query_urn"],r={"user-promoted":"user","track-promoted":"track"};e.exports={highlightText:function(e,t,i){var r,o=n(0).assign({start:"",end:""},i),a=e.split("");if(!t)return e;for(r=t.length;r--;)a.splice(t[r].end,0,o.end),a.splice(t[r].start,0,o.start);return a.join("")},getParams:function(){var e=n(28).parse(window.location.href);return this.getValidParams(e.query)},getValidParams:function(e){return n(0).pick(e,i)},modifyParamsWith:function(e,t){var i={},r=this.getParams();return void 0===t&&r.hasOwnProperty(e)?delete r[e]:(i[e]=t,n(0).assign(r,i)),n(28).stringify({query:r})},getFilters:function(e){var t={},i=/^filter\./;return e=e||this.getParams(),n(0).each(e,(function(e,n){i.test(n)&&(t[n]=e)})),n(0).isEmpty(t)?void 0:t},fuzzy:function(e,t,i){var r=e.replace(/\W+/gi,"").split(""),o=new RegExp("\\b("+r.join(").*?(")+")","i");if(!e)return t.map((function(e){return{item:e,highlights:[],score:1}}));var a=t.map((function(t){var r,a,s=(i?t.get?t.get(i):t[i]:t).toString(),u=n(345)(s),l=o.exec(u),c=[];if(l){for(r=l.index,a=1;a-1}function v(e){return new Promise((function(t){if(m(e))return t();h[e]=h[e]||[],h[e].push(t)}))}function y(e){return new Promise((function(t){e.forEach((function(e){return v(e).then(t)}))}))}function _(e){return Promise.all(e.map(v))}function b(e,t){return e.isOptedInToAnalytics()===t.indexOf(u.Performance)>-1}function w(e){var t,n=r.a.get("privacy_settings");b(n,e)||(n.set(((t={})[c.a.ANALYTICS_OPT_IN]=e.indexOf(u.Performance)>-1,t)),n.save(n.changed))}function k(){if(window.OptanonWrapper&&window.OptanonWrapper.callbacks){if(window.OptanonWrapper.isLoaded)w((window.OptanonActiveGroups||"").split(","));window.OptanonWrapper.callbacks.push(w)}}function A(e){function t(t){e({event_name:"Performance Consent Retrieved",click_name:"performance_consent",click_attributes:{consent_setting:t}})}var n="unknown",i=f.a.get("OptanonConsent");if(i){var r=/groups=.*C0002:([01])/.exec(decodeURIComponent(i));r&&"1"===r[1]?n="consent":r&&"0"===r[1]&&f.a.get("OptanonAlertBoxClosed")&&(n="no_consent")}var o=n;g((function(e){f.a.clearCache();var n=f.a.get("OptanonAlertBoxClosed")?"no_consent":"unknown";-1!==e.indexOf(u.Performance)&&(n="consent"),n!==o&&(o=n,t(n))})),t(n)}g(p);var C,S=n(11),E=n.n(S),x=n(101),T=n.n(x);function I(){return(I=Object.assign||function(e){for(var t=1;t0){var r;return(null==(r=window.OneTrust)?void 0:r.GetDomainData)?e(window.OneTrust):window.setTimeout((function(){return n(i-1)}),1e3)}var o="Giving up... OneTrust JavaScript SDK was not loaded";return T.a.notify(o),t(o)}()}))}(null==(C=window.OneTrust)?void 0:C.dataSubjectParams)||E.a.once("connect:hasUserData",(function(){r.a.get("features").has("v2_use_onetrust_user_id")&&function(e){D().then((function(t){return function(e,t){return new Promise((function(n,i){t.setDataSubjectId(e,!1);var r=t.GetDomainData().ConsentIntegrationData,o=r.consentApi,a=I({},r.consentPayload,{isAnonymous:!1,identifier:e}),s=new XMLHttpRequest;function u(){var e="POST consent receipt to OneTrust failed. HTTP Status: "+s.status;T.a.notify(new Error(e)),i(e)}s.open("POST",o),s.setRequestHeader("Content-Type","application/json"),s.onerror=u,s.onload=function(e){if(200!==s.status)return u();n(e)},s.send(JSON.stringify(a))}))}(e,t)})).catch((function(e){return T.a.notify("Can't push settings to OneTrust: "+e)}))}(r.a.get("me").get("consent_management_jwt").userId)}));var R,O,U=n(303),F=!1;function N(){var e=r.a.get("features"),t=a.a.getCountryCode();return e.has("v2_enable_onetrust_tcfv2")&&(e.has("v2_use_onetrust_tcfv2_qa")||"PL"===t&&e.has("v2_use_onetrust_tcfv2_eu1"))}function z(){return r.a.get("privacy_settings").isUnderLegislation(U.legislationTypes.GDPR)}function B(){return R}function q(){return 2..toString()}function j(){return!z()||F?Promise.resolve():new Promise((function(e,t){new Promise((function(e,t){D().then((function(){if(window.__tcfapi)return e(window.__tcfapi);t("__tcfapi not loaded.")}))})).then((function(t){t("addEventListener",2,V),F=!0,e()})).catch((function(e){var n="Failed initializing OneTrust TCFv2: "+e;T.a.notify(new Error(n)),t(n)}))}))}function V(e,t){if(t)R=e.tcString,"string"!=typeof e.purpose.consents&&function(e){var t=r.a.get("privacy_settings");if(t.isOptedInToTargetedAdvertising()!==e){var n;t.set(((n={})[c.a.TARGETED_ADVERTISING_OPT_IN]=e,n)),t.save(t.changed)}}(!!e.purpose.consents[O.Personalization]);else{T.a.notify(new Error("__tcfapi request failed"))}}!function(e){e[e.Personalization=4]="Personalization"}(O||(O={}))},321:function(e,t,n){(function(t){e.exports={restoreScrollPosition:function(e){var n,i,r=window.document,o=r.body,a=r.documentElement;if(null!=e){var s=function e(){i?i=!1:(window.clearTimeout(n),t(window).off("scroll",e),n=null)};!function r(){i=!0,a.scrollTop=o.scrollTop=e,(a.scrollTop||o.scrollTop)===e?(t(window).off("scroll",s),n=null):(n||t(window).on("scroll",s),n=window.setTimeout(r,100))}()}else a.scrollTop=o.scrollTop=0},findScrollableContainer:function(e){var n=e.closest(".g-scrollable-inner"),i=e.closest(".modal");return n.length?n:i.length?i:t(window.document)}}}).call(this,n(17))},323:function(e,t,n){var i=/^[a-z-]+:\/\//,r=/^https?$/,o=/\.[a-z]{2,32}$/;e.exports=n(82).extend({message:n(2).Lingua.t("This URL is invalid."),strict:!1,check:function(e,t){if(e){if(!i.test(e)){if(this.strict)return void t(!1);e="http://"+e}var a=n(28).parse(e);t(!a.userInfo&&r.test(a.scheme)&&o.test(a.host))}else t(!0)}})},324:function(e,t,n){e.exports={confirm:function(e){var t=window.confirm(e);return n(9).defer()[t?"resolve":"reject"]()}}},325:function(e,t,n){e.exports={enabledAttributes:function(e){return{isPrivate:i(e),isGeoblocked:r(e),hasMonetizationPolicy:o(e),isPendingMonetization:a(e),isMonetizable:s(e),hasMonetizationRestriction:u(e),isManagedByFeeds:l(e),isScheduled:c(e),isBlacklisted:f(e),isMastered:h(e)}},sharingDescription:function(e){if(i(e))return d(e)?n(2).Lingua.t("This track is private."):n(2).Lingua.t("This playlist is private.")},managedByFeedsDescription:function(e){if(l(e))return d(e)?n(2).Lingua.t("This track is managed directly by its rightsholder."):n(2).Lingua.t("This playlist cannot be edited or deleted, as it is managed directly by its rightsholder.")},monetizationDescription:function(e){if(o(e)){var t=e.get("monetization");if(!t)return d(e)?n(2).Lingua.t("This track is monetizing."):n(2).Lingua.t("This playlist is monetizing.");var i=t.start_timestamp,r=t.end_timestamp,a=p(i),s=p(r);return i&&r?d(e)?n(2).Lingua.t("This track is monetizing between [[startDate]] and [[endDate]].",{startDate:a,endDate:s}):n(2).Lingua.t("This playlist is monetizing between [[startDate]] and [[endDate]].",{startDate:a,endDate:s}):i&&!r?d(e)?n(2).Lingua.t("This track is monetizing from [[startDate]].",{startDate:a}):n(2).Lingua.t("This playlist is monetizing from [[startDate]].",{startDate:a}):!i&&r?d(e)?n(2).Lingua.t("This track is monetizing until [[endDate]].",{endDate:s}):n(2).Lingua.t("This playlist is monetizing until [[endDate]].",{endDate:s}):d(e)?n(2).Lingua.t("This track is monetizing."):n(2).Lingua.t("This playlist is monetizing.")}},monetizationPendingDescription:function(e){if(a(e)){var t=e.get("monetization");if(t){var i=Date.now(),r=t.start_timestamp&&new Date(t.start_timestamp),o=t.end_timestamp&&new Date(t.end_timestamp),s=p(r),u=p(o);return r&&io?d(e)?n(2).Lingua.t("This track is monetizing until [[endDate]].",{endDate:u}):n(2).Lingua.t("This playlist is monetizing until [[endDate]].",{endDate:u}):n(106).isPremierMonetizationMember()?d(e)?n(2).Lingua.t("Your request to monetize this track is being reviewed. It may take up to 24 hours."):n(2).Lingua.t("Your request to monetize this playlist is being reviewed. It may take up to 24 hours."):n(2).Lingua.t("Your monetization request is pending. Refresh the page to update.")}}},monetizableDescription:function(e){if(s(e))return d(e)?n(2).Lingua.t("This track could be monetized."):n(2).Lingua.t("This playlist could be monetized.")},monetizationRestrictionDescription:function(e){if(u(e))return d(e)?n(2).Lingua.t("Tracks can only be monetized if they are between 30 seconds and 10 minutes long."):n(2).Lingua.t("Playlists can only be monetized if they contain tracks that are between 30 seconds and 10 minutes long")},schedulingDescription:function(e){if(!c(e))return null;var t=p(e.get("scheduled_public_date"),"readable_with_weekday");return t?d(e)?n(2).Lingua.t("This track is scheduled to become public on [[publicDate]].",{publicDate:t}):n(2).Lingua.t("This playlist is scheduled to become public on [[publicDate]].",{publicDate:t}):void 0},geoblockingDescription:function(e){if(r(e)){var t=e.getAvailableCountries();return 1===t.length?d(e)?n(2).Lingua.t("This track will only be playable in [[countryTitle]].",{countryTitle:n(60).country(t[0]).title}):n(2).Lingua.t("This playlist will only be playable in [[countryTitle]].",{countryTitle:n(60).country(t[0]).title}):d(e)?n(2).Lingua.tp("This track will only be playable in %d country.","This track will only be playable in %d countries.",t.length):n(2).Lingua.tp("This playlist will only be playable in %d country.","This playlist will only be playable in %d countries.",t.length)}},masteredDescription:function(e){if(d(e)&&e.isMastered())return n(2).Lingua.t("This track is mastered.")}};function i(e){return e.isPrivate()}function r(e){return e.isGeoblocked()}function o(e){return e.hasMonetizationPolicy()}function a(e){return e.isPendingMonetization()}function s(e){return n(6).get("me").hasMonetization()&&e.isMonetizable()}function u(e){return s(e)&&e.hasMonetizationRestriction()}function l(e){return e.isManagedByFeeds()}function c(e){return e.isScheduled()}function d(e){return"sound"===e.resource_type}function f(e){return e.isBlacklisted()}function h(e){return d(e)&&e.isMastered()}function p(e,t){return void 0===t&&(t="default"),e?n(15).LinguaLib.dateTimeHelper.format(new Date(e),t):null}},327:function(e,t,n){e.exports=new(n(19))({_editState:n(117).NONE,override:{isEditing:function(){return this._editState===n(117).EDITING},isSaving:function(){return this._editState===n(117).SAVING},isCanceling:function(){return this._editState===n(117).CANCELING},getEditState:function(){return this._editState}},setEditState:function(e,t){var n=this._editState;return n!==e&&(this._editState=e,this.trigger("change:editState",this,e,n,t||{})),this}})},328:function(e,t,n){e.exports=new(n(19))({_resetOrder:null,_originalOrder:null,requires:["getCurrentOrder","reorder","resetOrder","saveOrder"],around:{saveOrder:function(e,t){var i=n(9).defer().always(this.setEditState.bind(this,n(117).NONE));return this.setEditState(n(117).SAVING),n(9).all([e(t)]).done(i.resolve).fail(i.reject),this._originalOrder=null,i},resetOrder:function(e,t){var i=n(9).defer().always(this.setEditState.bind(this,n(117).NONE));return this.setEditState(n(117).CANCELING),n(0).isEqual(this.getOriginalOrder(),this.getCurrentOrder())?i.resolve():(this instanceof n(47)&&(this.next_href=null),n(9).all([e(t)]).done(i.resolve).fail(i.reject)),i}},saveResetOrder:function(){this._resetOrder=this.getCurrentOrder(),this._originalOrder=this._originalOrder||this._resetOrder},getResetOrder:function(){return this._resetOrder||[]},getOriginalOrder:function(){return this._originalOrder}})},329:function(e,t,n){e.exports=n(47).extend({notificationType:null,queue:null,defaults:{hasQueue:!1},initialize:function(e,t){var o=this.notificationType;n(47).prototype.initialize.apply(this,arguments);var a=n(161)[o];(null==t?void 0:t.hasQueue)&&(this.baseUrl=a.get("baseUrl"),this.queue=new(n(669))({type:o}),this.queue.on("data",i,this).on("change:size",r,this))},fetchNewItemsIfNeeded:function(){this.hasQueue()&&this.queue.fetchQueuedItems()},markAsRead:function(e){var t=this.at(0);!e&&t&&(e=t.getUuid?t.getUuid():t.get("uuid")),e&&this.hasQueue()&&this.queue.markAsRead(e)},hasQueue:function(){return!!this.queue}},{onCleanup:function(e){e.queue&&e.queue.off("data",i,e).off("change:size",r,e).release()}});function i(e){e.length&&(this.add(e,{at:0}),this.trigger("new-data",e))}function r(e,t){this.trigger("change:queue-size",this,t)}},346:function(e,t,n){function i(e,t,n){return(i=r()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r}).apply(null,arguments)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a,s=[];function u(e,t){return!t.neverRelease&&t.sweep()||e}function l(){s.forEach((function(e){e.beginSweep()}));do{}while(s.reduce(u,!1));s.forEach((function(e){e.endSweep(),e.mark()}))}function c(e){void 0===e&&(e=6e4),d(),a=window.setInterval(l,e)}function d(){a&&(window.clearInterval(a),a=null)}function f(e){e.off&&e.off(),e.stopListening&&e.stopListening()}var h,p=(h=0,function(){return"f-"+ ++h});function g(e){return e.__constructor__||e}c(),e.exports={GC_INTERVAL:6e4,setStoreCleanupInterval:c,clearStoreCleanupInterval:d,applyTo:function e(t,r){delete(r=n(0).assign({neverRelease:!1,cleanupInstantly:!1,hashFn:function(){return null},prepareArgs:function(){return arguments},prepareInstance:function(){return this},getIncrementValue:function(){return 1},onHold:n(0).noop,onRelease:n(0).noop,onCleanup:null},r,t)).prototype;var o,a=t.extend||n(35).Model.extend,u=r.neverRelease,c=new(n(626))({autoCleanup:r.cleanupInstantly,onCleanup:(o=r.onCleanup,o?function(e){f(e),o.apply(e,arguments)}:f),onIncrement:r.onHold,onDecrement:r.onRelease,neverRelease:u});s.push(c);var d={hold:u?n(0).noop:function(e){c.increment(this.resource_id,e)},release:u?n(0).noop:function(e){c.decrement(this.resource_id,e)},_usageCount:function(){return c.countFor(this.resource_id)},constructor:function(){for(var e=arguments.length,n=new Array(e),i=0;i');t("body").append(e);var i=t("div",e).innerWidth();e.css("overflow","auto");var r=t("div",e).innerWidth();e.remove(),void 0!==i&&void 0!==r&&(n=i-r)}return n}}}).call(this,n(17))},358:function(e,t,n){var i=e.exports=new(n(19))({message:"",state:n(57).UNKNOWN,_lastError:null,_lastResult:null,_form:null,initialize:function(e,t){n(0).assign(this,e),this._form=t},disable:function(){this.state=n(57).DISABLED},reset:function(){this.state=n(57).UNKNOWN,this._lastResult&&"pending"===this._lastResult.state()&&this._lastResult.reject(),this._lastResult=null},result:function(e,t){return this.state=t?n(57).VALID:n(57).INVALID,this._lastError=t?null:this.getMessage(),e.resolve({success:t,message:this._lastError})},getLastError:function(){return this._lastError},around:{validate:function(e){if(this.state===n(57).DISABLED)this._lastError=null,this._lastResult=n(9).resolve({success:!0,message:null});else if(this.state===n(57).UNKNOWN){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r-1&&(this._statuses.splice(t,1),i.call(this,"off",e),r.call(this))}});function i(e,t){t[e]("data",r,this)}function r(){n(0).assign(this,this._statuses.reduce(a,{latest:0,totalSize:0})),this._statuses.length&&this.latest===this.totalSize&&o.call(this),this.trigger("data")}function o(){this._statuses.forEach(i.bind(this,"off")),this._statuses.length=0,r.call(this)}function a(e,t){return e.latest+=t.latest,e.totalSize+=t.totalSize,e}},361:function(e,t,n){var i=["description","tags","editing","feedable","genre","artwork_url","buyLink","buyTitle","sharing","apiStreamable","embeddableByAll","downloadable","license","creativeCommonsLicense","attribution","nonCommercial","nonDerivative","shareAlike","commentable","publicComments","stats","geoblocking","availableCountries","labelName","releaseDate","monetizationEnabled","monetizationTerritories","monetizationStartTimezone","monetizationStart","monetizationStartLocalDate","monetizationStartDate","monetizationEndTimezone","monetizationEnd","monetizationEndLocalDate","monetizationEndDate","monetizationRightsholder","offlineSyncEnabled"],r=n(47).extend({model:n(102),url:null,isFullyPopulated:function(){return!0},hasDataForView:function(){return!0},uploadsWithoutErrors:function(){return this.filter((function(e){return e.getAudible()&&e.getAudible().id&&!e.hasFailed()}))}});e.exports=n(83).extend(n(688),n(691),n(328),n(693),n(696),n(692),{_soundUploads:null,_playlist:null,failedSaving:!1,resource_type:"playlist-upload",constraints:{title:[[n(73),{message:"Enter a title."}],[n(96),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a title that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],description:[[n(96),{maxLength:4e3,message:function(){return n(2).Lingua.t("Enter a playlist description that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],permalink:[[n(362),{type:"playlist",getResource:function(){return this.getAudible()}}]],customGenre:[[n(96),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a custom genre that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]]},actions:{save:function(){var e=this;return this.validate().then((function(e){return e||n(9).reject()})).then((function(){return e.set("editing",!1),t=e.getSoundUploads(),i=t.map((function(e){return function(){return e.set("editing",!1),e.saveEdits()}})).reverse(),n(9).sequential(i);var t,i})).then(this.saveEdits.bind(this)).fail((function(){var t=e._soundUploads.uploadsWithoutErrors().length>0;return e.uploadsOverQuotaCount()>0&&t?(e.set("sharing","private"),e.saveEdits()):n(9).reject()}))}},getAttributesToBeSaved:function(){return{tracks:this._soundUploads.uploadsWithoutErrors().map((function(e){return{id:e.getAudible().id}}))}},getAttributesFromModel:function(){return{}},setup:function(){this._soundUploads=new r,this.listenTo(this._soundUploads,"remove",o).listenTo(this,"imageDataChanged",a).listenTo(this,"change",u)},addSoundForms:function(e){this._soundUploads.add(e),s.call(this,e)},replaceUploads:function(e,t){var n=this.getSoundUploads().slice();this.addSoundForms(t),n.forEach((function(e){e.removeUpload(),e.collection.remove(e)})),this.get("fileUpload").addUploads(e)},validate:function(e){void 0===e&&(e={});var t=n(9).defer(),r=n(83).prototype.validate.apply(this,arguments),o=e,a=o.fields,s=a?n(0).assign({},e,{fields:n(0).intersection(a,i)}):e,u=this._soundUploads.map((function(e){return e.validate.call(e,s)}));return u.push(r),n(9).all(u).done((function(){var e=Array.prototype.slice.call(arguments);t.resolve(e.every(n(0).identity))})),t},setTitleFromFolder:function(e){this.set("title",e)},onAudibleEdited:n(0).noop,onAudibleSaved:function(){this.failedSaving=!1,l.call(this)},onSaveFailed:function(e){this.failedSaving=!0,this.setToFailed("save",e),this.set("editing",!0),this.setActionState("save","enabled")},hasFailed:function(){return this.failedSaving},cancel:function(){for(var e=this._soundUploads.length;e--;)this._soundUploads.at(e).cancel();this.destroy(),this._playlist&&n(40).destroy(this._playlist)},resetOrder:n(0).noop,saveOrder:n(0).noop,getCurrentOrder:function(){return n(0).pluck(this.getSoundUploads(),"resource_id")},reorder:function(e){this._soundUploads.sort({silent:!0,comparator:function(t){return e.indexOf(t.resource_id)}})},getAudible:function(){return this._playlist},createAudible:function(){return this._playlist=new(n(53)),this._playlist},unsetAudible:function(){this._playlist=null},getSoundUploadsCollection:function(){return this._soundUploads},getSoundUploads:function(){return this._soundUploads.models},uploadsOverQuotaCount:function(){return this.getSoundUploads().filter((function(e){return e.failedDueToQuota()})).length}},{neverRelease:!0});function o(){this._soundUploads.length||this.cancel()}function a(e){this._soundUploads.invoke("setImageFile",e.file,e.source)}function s(e){e.forEach((function(e){e.set(n(0).pick(this.attributes,i))}),this)}function u(e){e.changedAttributes()&&this._soundUploads.each((function(t){t.set(n(0).pick(e.changedAttributes(),i))}))}function l(){var e=this.getAudible();this._soundUploads.uploadsWithoutErrors().forEach((function(t){var n=t.getAudible();e.addSound(n);var i=e.findSoundById(n.id);t.updateSound(i)}))}},362:function(e,t,n){var i=[{rule:/^(?![_-])/,errorMessage:n(2).Lingua.t("A permalink must not start with an underscore or hyphen.")},{rule:/^(?!.*[-_]$)/,errorMessage:n(2).Lingua.t("A permalink must not end with an underscore or hyphen.")},{rule:/^(?!.*[\-_]{2,})/,errorMessage:n(2).Lingua.t("A permalink must not have consecutive underscores or hyphens.")},{rule:/^[a-z0-9_-]*$/,errorMessage:n(2).Lingua.t("Use only numbers, lowercase letters, underscores, or hyphens.")},{rule:/[a-z]/,errorMessage:n(2).Lingua.t("A permalink must contain at least one letter.")},{rule:/^.{3,255}$/,errorMessage:n(2).Lingua.t("A permalink must be between 3 and 255 characters.")}],r={playlist:[],sound:[{rule:new RegExp("^(?!("+["albums","comments","favorites","followers","following","likes","reposts","sets","spotlight","stats","tracks"].join("|")+")$)"),errorMessage:n(2).Lingua.t("This permalink is reserved. Enter another one.")}]};e.exports=n(82).extend({type:"sound",initialize:function(){n(82).prototype.initialize.apply(this,arguments),this.constraints=i.concat(r[this.type])},check:function(e,t){var i=this;if(""!==e){var r=n(0).find(this.constraints,(function(t){return!t.rule.test(e)}));r?(this.message=r.errorMessage,t(!1)):this.resolvePermalink(e).done((function(e){!1===e&&(i.message=n(2).Lingua.t("This permalink is already in use. Enter another one.")),t(e)})).fail((function(e){return t(!0)}))}else t(!0)},resolvePermalink:function(e){var t=this.getResource.call(this._form),i=n(6).get("me").get("permalink");return t&&e===t.get("permalink")?n(9).resolve(!0):"sound"===this.type?n(45).callEndpoint("trackPermalinkAvailability",null,{permalink:e}).then((function(e){return e.body.track_permalink_available})):"playlist"===this.type?n(53).resolve(i,e).then((function(e){return!1})):void 0}})},363:function(e,t,n){e.exports=n(82).extend({message:n(2).Lingua.t("Enter a valid date."),check:function(e,t){t(e instanceof Date&&"number"==typeof+e&&!isNaN(+e))}})},37:function(e,t){e.exports={CONSUMER_SUBSCRIPTION_MID_TIER:"consumer-mid-tier",CONSUMER_SUBSCRIPTION_HIGH_TIER:"consumer-high-tier",CONSUMER_SUBSCRIPTION_HIGH_DJ_TIER:"consumer-high-dj-tier",CONSUMER_SUBSCRIPTION_FREE:"free",CREATOR_SUBSCRIPTION_FREE:"free",CREATOR_SUBSCRIPTION_PRO:"creator-pro",CREATOR_SUBSCRIPTION_PRO_UNLIMITED:"creator-pro-unlimited"}},371:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=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])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n){var i=e.call(this)||this;return i.disposed=!1,i.layer=n,i.waveform=t,i.setup(),i}return r(t,e),t.prototype.update=function(e){var t=this.draw(e);return this.setDirty(t),t},t}(n(731).CanBeDirty);t.SceneNode=o},386:function(e,t,n){e.exports=new(n(19))({canvas:null,context:null,isDirty:!1,isAnimating:!1,requires:["draw"],applyTo:function(e){e.defaults=n(0).assign({scale:1,$eventEl:null},e.defaults)},after:{draw:function(){this.setDirty(this.isAnimating)},onResize:function(){this.setDirty(!0)}},before:{setup:function(e){e.$eventEl||(e.$eventEl=this.$el),this.canvas=this.el,this.context=this.el.getContext("2d")}},override:{render:function(){this.hasData()?this.setDirty(!0):(this.setDirty(!1),this.fetchData())},destroyElement:n(0).noop},defaults:{onResize:n(0).noop},setDirty:function(e){(this.isDirty=e)&&this.trigger("dirty")}})},40:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;t":"";return n(0).each(t,(function(e,t){"style"===t&&"object"==typeof e&&(e=this.getStyleAttr(e)),a&&-1===a.indexOf(t)||o.push(" "+t+'="'+n(12).Utils.escapeExpression(e)+'"')}),this),"<"+e+o.join("")+s+">"+u},getStyleAttr:function(e){return n(0).map(e,(function(e,t){return null!=e&&""!==e?t+":"+e+";":""})).join("")}}},410:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"CONTAINER_ID",(function(){return o})),n.d(t,"Experiment",(function(){return r})),n.d(t,"Variant",(function(){return a})),n.d(t,"initialize",(function(){return l})),n.d(t,"activateExperiment",(function(){return c}));var r,o="GTM-K94TRRL";!function(e){e.EXAMPLE="bQzwN5NyS1KZDPeIeoWmNw",e.QUOTA_METER="gpssXNQXSEGbNFh0f07sIw",e.TOP_LISTENER="qITKRQS6SYq7mHM1QBafkw"}(r||(r={}));var a,s,u=((i={})[r.EXAMPLE]="foo",i[r.QUOTA_METER]="upload-quota-meter",i[r.TOP_LISTENER]="top-listener-upsell",i);function l(e){void 0===e&&(e=4e3),s=new Promise((function(t){var n,i=window.dataLayer=window.dataLayer||[];i.hide=((n={})[o]=!0,n.start=Date.now(),n.end=t,n.timeout=e,n),window.setTimeout((function(){t(),i.hide.end=null}),e)}))}function c(e){return new Promise((function(t,n){if(!s)return n();s.then((function(){(window.dataLayer=window.dataLayer||[]).push({event:u[e]});var i=window.google_optimize&&window.google_optimize.get(e);if(!i)return n();t(i)}))})).catch((function(){return a.original}))}!function(e){e.original="0",e.one="1",e.two="2",e.three="3"}(a||(a={}))},411:function(e,t,n){function i(){return n(6).get("features").has("hq_audio")}e.exports={STREAMING_QUALITY_SETTING:"streamingQuality",getCurrentQuality:function(){switch(n(118).get("streamingQuality")){case n(171).HQ:return i()?n(171).HQ:n(171).SQ;case n(171).SQ:default:return n(171).SQ}},hqAllowed:i}},412:function(e,t,n){e.exports={render:function(e,t,n){var i=e(t||{});n&&(n.innerHTML=i)},subviews:function(e){n(465).replacePlaceholders(e),n(466).default.replacePlaceholders(e)}}},420:function(e,t,n){"use strict";n.r(t),n.d(t,"isEnabled",(function(){return I})),n.d(t,"initialize",(function(){return L})),n.d(t,"getConsentString",(function(){return P})),n.d(t,"getTcfVersion",(function(){return M})),n.d(t,"openDialogue",(function(){return D}));var i,r,o=n(6),a=n.n(o),s=n(75),u=n(11),l=n(184),c=n(9),d=n(15),f=n(64),h=n(14),p=n(303);function g(){return(g=Object.assign||function(e){for(var t=1;t0},rootMargin:"40px"})}},44:function(e,t,n){"use strict";n.r(t),n.d(t,"EventCategory",(function(){return i})),n.d(t,"EventAction",(function(){return r})),n.d(t,"include",(function(){return v})),n.d(t,"trackEvent",(function(){return y})),n.d(t,"trackPageView",(function(){return _}));var i,r,o,a=n(0),s=n.n(a),u=n(75),l=n.n(u),c=n(410),d=n(106),f=n.n(d),h=n(22),p=n.n(h),g=n(6),m=n.n(g);function v(){window.gtag=window.gtag||function(){(window.dataLayer=window.dataLayer||[]).push(arguments)},window.gtag("js",new Date),window.gtag("set",{anonymize_ip:!0,custom_map:w}),window.gtag("config","UA-2519404-44",{send_page_view:!1,optimize_id:c.CONTAINER_ID,user_id:m.a.get("privacy_settings").get("external_user_id")||null}),c.initialize(),s.a.defer(l.a.insertScript,"https://www.googletagmanager.com/gtag/js?id=UA-2519404-44")}function y(e){var t=e.category,n=e.action,i=e.label,r=e.value;window.gtag&&window.gtag("event",n,s.a.assign({event_category:t,event_label:i,value:r},b()))}function _(){window.gtag&&window.gtag("config","UA-2519404-44",s.a.assign({page_title:window.document.title,page_path:window.location.pathname+window.location.search,page_location:window.location.href},b()))}function b(){var e;return(e={})[o.loginStatus]=p.a.isLoggedIn()?"Logged In":"Logged Out",e[o.premierEligibility]=f.a.isQualified()?"Eligible":"Not Eligible",e[o.premierMonetizationMembership]=f.a.isPremierVIPMember()?"Premier VIP":f.a.isPremierMonetizationMember()?"Premier":"Not a Member",e[o.externalUserId]=m.a.get("privacy_settings").get("external_user_id")||null,e}!function(e){e.userFunnel="user-funnel",e.track="track",e.playlist="playlist",e.premier="premier",e.callToAction="call_to_action",e.profile="profile",e.mastering="mastering"}(i||(i={})),function(e){e.signUp="sign-up",e.signInSuccessful="sign_in_successful",e.comment="comment",e.uploadStarted="upload_started",e.uploadSaved="upload_saved",e.uploadSaveFailed="upload_save_failed",e.uploadSucceeded="upload_succeeded",e.uploadFailed="upload_failed",e.transcodingSucceeded="transcoding_succeeded",e.transcodingFailed="transcoding_failed",e.overTrackQuota="overTrackQuota",e.overTimeQuota="overTimeQuota",e.follow="follow",e.unfollow="unfollow",e.like="like",e.unlike="unlike",e.repost="repost",e.unrepost="unrepost",e.share="share",e.navigateOnboarding="navigate_onboarding",e.editsPersonalDetails="edits_personal_details",e.editsPaymentDetails="edits_payment_details",e.contractSigned="contract_signed",e.premierCtaClick="premier_cta_click",e.purchaseCtaClick="purchase_cta_click",e.uploadCtaClick="upload_cta_click",e.micrositeCtaClick="microsite_cta_click",e.learnMoreCtaClick="learn_more_cta_click",e.tryItFreeCtaClick="try_it_free_cta_click",e.exploreTrendingPlaylistsClick="explore_trending_playlists_click",e.createAccountCtaClick="create_account_cta_click",e.signInCtaClick="sign_in_cta_click",e.click="click",e.impression="impression"}(r||(r={})),function(e){e[e.loginStatus=0]="loginStatus",e[e.premierEligibility=1]="premierEligibility",e[e.premierMonetizationMembership=2]="premierMonetizationMembership",e[e.externalUserId=3]="externalUserId"}(o||(o={}));var w={dimension4:o.loginStatus,dimension7:o.premierEligibility,dimension8:o.premierMonetizationMembership,dimension11:o.externalUserId}},45:function(e,t,n){(function(t){var i=/^[^\/]/,r=/\/$/;function o(e,t,n){return{body:e,status:n.status,headers:{}}}function a(e){var t=void 0===e?{}:e,n=t.responseJSON;return{body:void 0===n?{}:n,status:t.status,headers:{}}}function s(e){return e.replace(i,"/$&")||"/"}function u(e){return e.replace(r,"")}e.exports=n(1117)({endpoints:n(1119),services:n(1120)},(function(e){var i,r,o=e.url,a=e.headers,s=e.method,u=e.timeout,l=e.dataType,c=e.includeCredentials,d=null!==e.data&&void 0!==e.data&&"json"===l,f="get"!==s,h=(null==(i=e.data)?void 0:i.priority)||n(173).RequestPriorities.MEDIUM,p=d&&f?JSON.stringify(e.data):e.data,g=d?"application/json":null,m=Boolean(null==(r=window.__sc_env)?void 0:r.forceCredentials)||!0===c?{withCredentials:!0}:void 0;return t.ajax({url:o,headers:a,type:s,data:p,contentType:g,priority:h,processData:f,timeout:u,xhrFields:m})}),(function(e,t,i,r,o){return n(28).stringify({scheme:e,host:t,port:i,path:s(u(r)),query:o})}),(function e(t){var i=n(9).promise(t);return i.constructor=e,i})).use((function(e,t){return t(e).then(o,a)})).use((function(e,t){var i=t(e),r=e.requestOptions.args;return r.abort?n(287).listenToAbortSignal(i,r.abort):i}))}).call(this,n(17))},451:function(e,t,n){e.exports=new(n(19))({requires:["trigger"],defaults:{states:null},_states:null,toggleState:function(e,t,n){if(!e||this.disposed)return this;if(this._states||(this._states={}),this.states||(this.states={}),!(e in this.states))return this;e in this._states||(this._states[e]=this.getState(e));var i=void 0!==t?!!t:!this._states[e];if(!n&&this._states[e]===i)return this;this._states[e]=i;var r=this.states[e],o=r.handler?r.handler:r,a=typeof o;return"string"===a?this.$el[i?"addClass":"removeClass"](o):"function"===a?o.call(this,i):o&&"function"==typeof o.setup&&o[i?"setup":"teardown"].call(this),this.trigger("state:"+e,i),this},getState:function(e){return this._states&&e in this._states?this._states[e]:!(!this.states||!(e in this.states))&&!!this.states[e].initial}})},453:function(e,t,n){var i=null,r=null,o=null,a={dontPersist:!0},s={id:0,playTime:1,userInitiated:2,timestamp:3},u={duration:0,userId:1},l={field:null,from:"global",id:null,unique:!1,playState:null,userInitiated:null,filter:null,newestFirst:!1,limit:!1};n(11).on("connect:logout",(function(){c._persistent.reset(),c._session.reset()}));var c=e.exports={_persistent:new(n(68))("play-log"),_session:new(n(219)),addSound:function(e,t){i&&this.writeToLog(),i=e,r=e.getListenTime(),o=t||{},e.on("pause",this.writeToLog,this).hold()},select:function(e){var t=this["session"===(e=n(0).assign({},l,e)).from?"_session":"_persistent"],i=t.get("log")||[];return e.id?i=i.filter(d(e.id)):e.userId&&(i=i.filter((function(n){return t.get(n[0])[1]===e.userId}))),e.unique&&(i=i.reduceRight(p,{map:{},result:[]}).result),i=i.filter((function(n){return(null==e.userInitiated||n[2]==e.userInitiated)&&(("played"!==e.playState||(i=n[1],r=t.get(n[0])[0],i/r>=.25))&&(!e.filter||(o=e).filter.apply(o,n)));var i,r,o})),e.newestFirst&&i.reverse(),e.limit&&i.length>e.limit&&(i=i.slice(0,e.limit)),i=e.field?n(0).pluck(i,s[e.field]):i.map(g,t)},count:function(e){return this.select(e).length},numSessionPlays:function(){return this.count({from:"session",unique:!0,playState:"played"})},getPlayedIds:function(){return this.select({field:"id",from:"persistent",unique:!0,playState:"played"})},writeToLog:function(){if(i){var e=Math.floor(i.getListenTime()-r),t=c._persistent,n=c._session,a=i.id,s=i.getMediaDuration();if(e>=Math.min(s,2e3)){var u=t.get("log")||[],l=n.get("log")||[],d=i.get("user_id");h(t,a,s,d),h(n,a,s,d);var p=[a,e,o.userInitiated?1:0,Date.now()];u.push(p),l.push(p),f(u,t),f(l,n)}i.off("pause",this.writeToLog,this).release(),i=r=null}}};function d(e){return function(t){return t[0]===e}}function f(e,t){for(;e.length>250;){var n=e.shift();e.some(d(n[0]))||t.unset(n[0],a)}t.set("log",e)}function h(e,t,n,i){e.has(t)||e.set(t,[n,i],a)}function p(e,t){var n=e.map[t[0]],i=e.result.length;if(void 0!==n){var r=e.result[i-n-1];r[1]+=t[1],r[2]=r[2]||t[2]}else e.map[t[0]]=i,e.result.unshift(t.slice());return e}function g(e){var t=this.get(e[0]);return n(0).object(Object.keys(s).concat(Object.keys(u)),e.concat(t))}},455:function(e,t,n){e.exports={stream:n(0).assign({shuffle:n(0).noop,unshuffle:function(){return[]},pause:n(0).noop,peek:n(0).noop,resume:n(0).noop,isEnded:n(0).constant(!0)},n(35).Events),dispose:n(0).noop}},456:function(e,t,n){e.exports=new(n(19))({getVisual:function(){var e,t,n=this.get("visuals");return(null==(e=n)?void 0:e.visuals)&&(n=n.visuals),(null==(t=n)?void 0:t[0])||{}},getVisualURL:function(){var e=1240*(n(72).isHiDPI?2:1);return n(55).setFormat(this.getVisual().visual_url,e)},hasVisuals:function(){return!n(0).isEmpty(this.get("visuals"))}})},457:function(e,t,n){e.exports=function(e,t,i){var r,o=(i=n(0).defaults(i||{},{maxRetries:3})).maxRetries,a=new(n(214))({giveUp:o}),s=n(9).defer(),u=s.promise();function l(){r=e().done(s.resolve.bind(s)).progress(s.notify).fail(c)}function c(e){0===e.status||t(e)?(!function(e){a.options.giveUp=0===e.status?1/0:o}(e),a.failed()):s.reject()}return a.on("giveup",s.reject),a.on("enabled",l),s.always((function(){a.dispose()})),l(),u.abort=function(){r.abort&&r.abort(),s.reject()},i.abort&&n(287).listenToAbortSignal(u,i.abort),u}},458:function(e,t,n){e.exports=new(n(19))(n(644),n(1185),n(641),{requirePrototype:n(23).prototype,requires:["getCurrentSound","getSounds","getNumSounds","play","pause","isPlaying","isProcessing","isEditing","isPublic","isPrivate","isNowPlaying","duration"],defaults:{getSourceInfo:function(){return{type:"single",resourceId:this.resource_id,resourceType:this.resource_type}}},before:{setup:function(){this.listenTo(this,"destroy",this.pause)}},around:{destroy:function(e,t){var i=this;return void 0===t&&(t={}),t.statusCode=n(0).defaults({202:function(){n(11).trigger("audible:delete-already-queued",i),n(6).get("me").fetch()}},t.statusCode),e(n(0).clone(t))}},getQueueMetadataAt:function(e){return{sourceInfo:this.getSourceInfo(),queryPosition:0,originalModel:this}},onLike:function(e){i.call(this,"likes_count",e.state)},onRepost:function(e){i.call(this,"reposts_count",e.state)},onComment:function(e){i.call(this,"comment_count",e.state)},onPlayRegistered:function(){n(6).get("me").owns(this)||i.call(this,"playback_count",!0)},getShareURL:function(e){var t=!!(null==e?void 0:e.permalinkUrl),i=t?e.permalinkUrl:this.get("permalink_url"),r={query:{in:this.playlist&&this.playlist.id?n(28).parse(this.playlist.getShareURL()).relative.substr(1):null}};t||(r.scheme="https"),(null==e?void 0:e.time)&&(r.fragment="t="+e.time);var o=this.isPrivate()&&!n(459).urlContainsSecretToken(i);return n(28).stringify(r,i+(o?"/"+this.get("secret_token"):""))},resetSecretLink:function(){var e=this;return n(45).callEndpoint("secretLinkReset",{urn:this.getUrn()}).then((function(t){e.set({secret_token:t.body.secret_token,permalink_url:t.body.permalink_url})}))},getPermalink:function(){return(this.get("permalink_url")||"").replace(/^https?:.+?\w\//,"/")},isDisabled:function(){return!!this.get("disabled_reason")},isBlacklisted:function(){return"blacklisted"===this.get("disabled_reason")},isOverQuota:function(){return"quota"===this.get("disabled_reason")},toggle:function(e){this[this.isPlaying()?"pause":"play"](e)},isPaused:function(){return!this.isPlaying()},isEmbeddableByAll:function(){return"all"===this.get("embeddable_by")},isManagedByFeeds:function(){return!!this.get("managed_by_feeds")},isScheduled:function(){return!!this.get("scheduled_public_date")},isOfflineSyncEnabled:function(){return n(0).isEmpty(this.get("restrictions"))},isGeoblocked:function(){return!!this.getBlockedCountries().length},isGeoblockedInCountry:function(e){return this.getBlockedCountries().indexOf(e)>-1},getBlockedCountries:function(){return this.get("geo_blockings")||[]},getAvailableCountries:function(){return n(60).complement(this.getBlockedCountries())},getMonetizationTerritories:function(){var e=this.get("monetization");return(null==e?void 0:e.territories)||[]},isMonetizable:function(){return!this.isDisabled()&&!this.isManagedByFeeds()},hasMonetizationRestriction:function(){var e=this.duration(),t=e>10*n(31).MS_IN_MINUTE,i=e<30*n(31).MS_IN_SECOND;return n(106).cantMonetizeLongContent()&&t||i},hasMonetizationPolicy:function(){return!!this.get("monetization_enabled")},hasMonetizationTerritories:function(){return this.getMonetizationTerritories().length>0},isPendingMonetization:function(){return this.hasMonetizationTerritories()&&!this.hasMonetizationPolicy()}});function i(e,t){this.has(e)&&this.set(e,Math.max(0,this.get(e)+(t?1:-1)))}},459:function(e,t,n){var i=new RegExp("s-[a-zA-Z0-9]{5,15}$");function r(e){var t=n(71).parse(e).path.split("/");return"sets"===t[2]?i.test(t[4]):i.test(t[3])}e.exports={urlContainsSecretToken:r,removeSecretTokenFromUrl:function(e){return r(e)?e.replace(i,""):e},secretTokenMatcher:"s-[a-zA-Z0-9]{5,15}"}},460:function(e,t,n){"use strict";var i,r,o;n(78),n(97),n(23),n(625);!function(e){e.Standard="standard",e.High="high",e.Auto="auto"}(i||(i={})),function(e){e.pause="pause",e.bufferUnderrun="buffer_underrun",e.skip="skip",e.trackFinished="track_finished",e.endOfContent="end_of_content",e.context_change="context_change",e.playbackError="playback_error",e.concurrentStreaming="concurrent_streaming"}(r||(r={})),function(e){e.play="play",e.pause="pause",e.checkpoint="checkpoint"}(o||(o={}))},462:function(e,t){function n(e){return(e^16*Math.random()>>e/4).toString(16)}e.exports={generate:function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}}},463:function(e,t){var n=window.navigator;e.exports={getFlashPlugin:function(){var e,t,i,r;if(void 0!==window.ActiveXObject)try{(r=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(e=r.GetVariable("$version"))}catch(e){}else if(n.plugins&&n.plugins.length>0){var o,a,s;i="application/x-shockwave-flash",(null==(o=t=n.mimeTypes)||null==(a=o[i])||null==(s=a.enabledPlugin)?void 0:s.description)&&(e=t[i].enabledPlugin.description)}return e},getFlashVersion:function(){var e=this.getFlashPlugin().match(/\d\S+/)[0].replace(/,/g,".").split(".");return[e[0],e[1]].join(".")},getOperatingSystem:function(){var e=n.appVersion;return-1!==e.indexOf("Win")?"Windows":-1!==e.indexOf("Mac")?"MacOS":-1!==e.indexOf("X11")?"UNIX":-1!==e.indexOf("Linux")?"Linux":"undefined-OS"},getBrowser:function(){var e=n.userAgent,t=e.match(/(opera|chrome|safari|firefox|msie|applewebkit)\/?\s*(\.?\d+(\.\d+)*)/i),i=e.match(/version\/([\.\d]+)/i),r=null!==i?i[1]:t?t[2]:null;return(t?[t[1],r]:[n.appName,n.appVersion]).join()}}},465:function(e,t,n){var i={},r=0,o=e.exports={handlebarHelper:function(e,t){var i=t.hash;return i.args&&(n(0).isFunction(i.args)&&(i.args=i.args(this)),t.hash=i=n(0).assign({},i.args,i)),delete i.args,t.fn&&(i.blockContent=new(n(12).SafeString)(t.fn(this))),o.registerSubview(e,t.hash)},registerSubview:function(e,t){var n=r++;return t.__class=e,t.className&&(t.className=[e.prototype.className,t.className].filter(Boolean).join(" ")),i[n]=t,''},replacePlaceholders:function(e){e.$("view").each((function(){!function(e,t){var r,o=e.getAttribute("data-id"),a=i[o],s=a.__class;delete i[o],a.key&&(r=a.key);var u=t.addSubview(new s(n(0).omit(a,"__path","__class","key")),r);u.render(),e.parentNode.replaceChild(u.el,e)}(this,e)}))}}},466:function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(1),o=n(144),a=n(65),s=new Map,u={handlebarsHelper:function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=Object(i.uniqueId)("react_view_");return s.set(r,{ReactView:e,props:t}),'"},replacePlaceholders:function(e){var t=l(e);Array.prototype.slice.call(e.el.querySelectorAll("div[data-react-view-id]")).forEach((function(n){var i=n.getAttribute("data-react-view-id"),u=s.get(i),l=u.props,c=u.ReactView;o.render(r.createElement(a.a.Provider,{value:t},r.createElement(c,l)),n,(function(){s.delete(i),e.addReactSubview(n),n.removeAttribute("data-react-view-id")}))}))}};t.default=u;var l=function(e){return function(){var t=e.getContextData();return t.scope||(t.scope=[]),t}},c=function(e){var t=(null==e?void 0:e.style)?Object(i.map)(e.style,(function(e,t){return t+": "+e})).join("; "):null;return t?'style="'+t+'"':""}},47:function(e,t,n){var i=e.exports=n(346).applyTo(n(35).Collection.extend({next_href:null,lastFetchTime:null,model:{},getEndpointUrl:n(45).getUrlForEndpoint,getEndpointForMethod:function(e){return null},defaults:{offset:0,limit:10,secret_token:null,maxPageSize:100},initialize:function(e,t){this.options=function e(t,r){if(n(0).defaults(r,t.prototype.defaults),t===i)return r;return e(t.__super__.constructor,r)}(this.constructor,t||{}),this.setup(this.options)},setup:n(0).noop,_prepareModel:function(e){var t=e instanceof n(35).Model,i=n(35).Collection.prototype._prepareModel.apply(this,arguments);return i&&i.hold(this._usageCount()-(t?0:1)),i},_removeReference:function(e){return e.release(this._usageCount()),n(35).Collection.prototype._removeReference.apply(this,arguments)},fetch:function(e){var t,i=this,r=(null==e?void 0:e.url)||n(0).result(this,"url"),o=this.getRequestEquivalencyUrl(r)||r;return r?(null==(t=this._requests)?void 0:t[o])||n(35).Collection.prototype.fetch.call(this,e).done((function(){i.isFullyPopulated()&&0===i.length&&!(null==e?void 0:e.reset)&&i.reset([])})):n(9).defer().done(null==e?void 0:e.success).resolve({})},fetchUntilResults:function(e){var t=this;void 0===e&&(e={});var i=this.options.limit,r=this.length,o=n(0).defaults({reset:!1},e),a=function(e){return t.fetch(e).then(s)},s=function(){var e=t.length>r,n=t.isFullyPopulated();if(!e&&!n)return t.setLimit(Math.min(2*t.options.limit,t.options.maxPageSize)),a(o)};return a(e).always((function(){t.setLimit(i)}))},fetchUntilLength:function(e){var t=this,i=function(){return t.length=e.minModels))},isPopulated:function(){return!!this.lastFetchTime},getRequestEquivalencyUrl:n(0).identity,isFullyPopulated:function(){return!1===this.next_href},setLimit:function(e){this.options.limit=e,r.call(this,{limit:e})},indexOfEquivalentModel:function(e,t,n){var i=this;void 0===t&&(t=this.models),void 0===n&&(n=0);var r=-1;return n&&(t=t.slice(n)),t.some((function(t,o){if(i.compareModels(e,t))return r=o+n,!0})),r},indexesOfEquivalentModels:function(e,t){for(var n=[],i=0;-1!==(i=this.indexOfEquivalentModel(e,t,i));)n.push(i),i++;return n},getKeyForModel:function(e){return e.getEquivalencyKey()},compareModels:function(e,t){return this.getKeyForModel(e)===this.getKeyForModel(t)}}),{hashFn:function(e,t){var n=(void 0===t?{}:t).resource_id;return void 0===n?null:n},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)},prefetch:function(e){var t=new this(null,e);t.isPopulated()||t.fetch(),t.release()}});function r(e){this.next_href&&(this.next_href=n(28).modify(this.next_href,{query:e}))}},470:function(e,t){var n=/\r?\n/g,i=/\s+/g;e.exports={cleanBlockText:function(e){return e.trim().replace(n," ").replace(i," ")}}},474:function(e,t,n){var i=/\S/,r=/\s+/;function o(e){return new RegExp("(?:\t \t|\\s|\\b)"+n(124).regexpEscape(e),"i")}e.exports={makeFilterGenerator:function(e){return function(t){if(!(a=t)||!i.test(a))return null;var a,s=n(0).compact(n(345)(t).split(r)).map(o);return function(t){var i=function(t){var i=(n(0).isFunction(e)?e(t.attributes):e).map((function(e){if(-1===e.indexOf("."))return function(t){return t[e]};var t=e.split(".");return function(e){return t.reduce((function(e,t){return e&&e[t]}),e)}}));return n(345)("\t \t"+n(0).compact(i.map((function(e){return e(t.attributes)}))).join("\t \t"))}(t);return s.every((function(e){return e.test(i)}))}}}}},477:function(e,t,n){e.exports={getAccessibleMarkup:function(e){return''+n(12).Utils.escapeExpression(e.screenreader)+""+(e.visible?''+n(12).Utils.escapeExpression(e.visible)+"":"")}}},481:function(e,t,n){e.exports=n(158).extend([n(35).Events,{latest:0,totalSize:0,initialize:function(e){e||(e={}),this.totalSize=e.totalSize||0},isIndeterminate:function(){return!this.totalSize},add:function(e){return e!==this.latest&&(this.latest=e,this.trigger("data")),this},setTotal:function(e){if(this.totalSize!==e){var t=!this.totalSize||!e;this.totalSize=e,t&&this.trigger("change:indeterminate",this.isIndeterminate())}return this},getValue:function(){return this.latest},getProgress:function(){return this.totalSize?this.latest/this.totalSize:0},getTotalSize:function(){return this.totalSize}}])},482:function(e,t,n){var i,r=n(47).extend({model:n(296),url:null,isFullyPopulated:function(){return!0},hasDataForView:function(){return!0}});e.exports=n(23).extend({resource_type:"aggregate-audio-upload",url:null,_uploadsCollection:null,hasDataForView:function(){return!0},setup:function(e){this._uploadsCollection=new r,this.set({status:n(62).QUEUED,hasBeenSaved:!1}),this.listenTo(this._uploadsCollection,"change:status",c).listenTo(this._uploadsCollection,"add",a).listenTo(this._uploadsCollection,"remove",s),o.call(this),this.addUploads(e.uploads)},addUploads:function(e){this._uploadsCollection.add(e)},getUploadsCollection:function(){return this._uploadsCollection},getUploads:function(){return this._uploadsCollection.models},remove:function(){this._uploadsCollection.remove(this.getUploads()),this.destroy()},isHQUpload:function(){return this._uploadsCollection.every((function(e){return e.isHQUpload()}))}},{hashFn:function(e,t){var n;return(null==t?void 0:t.resource_id)||e&&((null==(n=e.uploads)?void 0:n.length)&&e.uploads.map((function(e){return e.resource_id})).join("_")||e.id||e.resource_id)||null},onCleanup:function(e){e._uploadsCollection.remove(e.getUploads()),e._uploadsCollection.release()}});function o(){this.set("transfer",new(n(360))),this.set("transcoding",new(n(360)))}function a(e){u.call(this,e,!0)}function s(e){u.call(this,e,!1)}function u(e,t){this.get("transfer")[t?"addTransfer":"removeTransfer"](e.get("transfer")),this.get("transcoding")[t?"addTransfer":"removeTransfer"](e.get("transcoding")),c.call(this)}var l=((i={})[n(62).UPLOADING]=5,i[n(62).QUEUED]=4,i[n(62).TRANSCODING]=3,i[n(62).COMPLETE]=2,i[n(62).FAILED]=1,i[n(62).IDLE]=0,i);function c(){var e=this._uploadsCollection.pluck("status").reduce((function(e,t){return l[t]>l[e]?t:e}),n(62).IDLE);this.set("status",e)}},483:function(e,t,n){e.exports=n(96).extend({maxLength:22,message:function(){return n(2).Lingua.t("Enter a buy-link title that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}})},484:function(e,t){e.exports={"all-music":"All music genres","all-audio":"All audio genres",alternativerock:"Alternative Rock",ambient:"Ambient",classical:"Classical",country:"Country",danceedm:"Dance & EDM",dancehall:"Dancehall",deephouse:"Deep House",disco:"Disco",drumbass:"Drum & Bass",dubstep:"Dubstep",electronic:"Electronic",folksingersongwriter:"Folk & Singer-Songwriter",hiphoprap:"Hip-hop & Rap",house:"House",indie:"Indie",jazzblues:"Jazz & Blues",latin:"Latin",metal:"Metal",piano:"Piano",pop:"Pop",rbsoul:"R&B & Soul",reggae:"Reggae",reggaeton:"Reggaeton",rock:"Rock",soundtrack:"Soundtrack",speech:"Speech",techno:"Techno",trance:"Trance",trap:"Trap",triphop:"Triphop",world:"World",audiobooks:"Audiobooks",business:"Business",comedy:"Comedy",entertainment:"Entertainment",learning:"Learning",newspolitics:"News & Politics",religionspirituality:"Religion & Spirituality",science:"Science",sports:"Sports",storytelling:"Storytelling",technology:"Technology"}},485:function(e,t,n){(function(t){e.exports=new(n(19))(n(196).withOptions({read:"artwork_url"}),{requires:["getAudible","saveEdits"],_saving:!1,defaults:{saveCleanup:function(){},preSaveCheck:function(){return n(9).resolve()}},applyTo:function(e){e.fields=t.extend(!0,{},e.fields,{editing:{defaultValue:!0},errorMessage:{defaultValue:""}})},around:{saveEdits:function(e){var t=this,o=n(0).rest(arguments);return r.call(this).then(this.preSaveCheck.bind(this)).then((function(){return i.call(t,e.apply(t,o))}))}},saveAudibleImage:function(e){var t,i=this.getImageFileInfo();return i.file?(e.setImageFile(i.file,i.source),e.on("imageTranscodingDone",(function(e){this.unsetImageFile({silent:!0}),this.set("artwork_url",e.artwork_url)})),t=e.uploadImage()):t=n(9).resolve(),t},getErrorMessageTemplate:function(e,t,i){var r=e||"unknown",o=i&&" "+i+".";return{track:{upload:n(2).Lingua.t("Error uploading track.[[infoMessage]]",{infoMessage:o}),save:n(2).Lingua.t("Error saving track.[[infoMessage]] Please try again.",{infoMessage:o}),transcode:n(2).Lingua.t("Error processing track.[[infoMessage]]",{infoMessage:o}),unknown:n(2).Lingua.t("Error with track.[[infoMessage]]",{infoMessage:o})},playlist:{upload:n(2).Lingua.t("Error uploading playlist.[[infoMessage]]",{infoMessage:o}),save:n(2).Lingua.t("Error saving playlist.[[infoMessage]] Please try again.",{infoMessage:o}),transcode:n(2).Lingua.t("Error processing playlist.[[infoMessage]]",{infoMessage:o}),unknown:n(2).Lingua.t("Error with playlist.[[infoMessage]]",{infoMessage:o})}}[t][r]},extractErrorMessage:function(e){try{return JSON.parse(e.responseText).errors[0].error_message}catch(e){return""}},setToModelAttributes:function(){var e=this.getAttributesFromModel();this.set(e),this.unsetImageFile({force:!0}),this.markFieldsClean(),this.resetAllFieldValidations()}});function i(e){var t=this;return this._saving=!0,e.always((function(){t._saving=!1,t.saveCleanup()}))}function r(){return this.get("editing")||this._saving?n(9).reject():n(9).resolve()}}).call(this,n(17))},486:function(e,t,n){e.exports=n(82).extend({message:n(2).Lingua.t("Enter a time in the future."),check:function(e,t){t(e>Date.now())}})},496:function(e,t,n){(e.exports=function(e,t){var i,r=t.resource_type;return"single-audio-upload"===r?i=new(n(296))(e,t):"aggregate-audio-upload"===r&&(i=new(n(482))(e,t)),i}).getClass=function(e){var t=e.resource_type;return"single-audio-upload"===t?n(296):"aggregate-audio-upload"===t?n(482):void 0}},498:function(e,t,n){function i(e,t){var i;return n(0).findWhere(n(723),((i={})[e]=t,i))}function r(){return-60*n(15).LinguaLib.dateTimeHelper.getTimezoneOffset()}e.exports={getLocalTimezone:function(){return i("id",function(){try{return window.Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return""}}())||i("utc_offset",r())},getLocalOffset:r,findTimezoneWhere:i}},501:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHiDPI=function(){return!!window.devicePixelRatio&&window.devicePixelRatio>1},t.getPixelRatio=function(){return window.devicePixelRatio?(Math.floor(window.devicePixelRatio)||1)/1:1},t.supportsTypedArrays=function(){return window.hasOwnProperty("Uint8Array")}},502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(225);t.BLACK=i.rgb(0,0,0),t.ASH=i.rgb(153,153,153),t.SCARLET=i.rgb(255,51,0),t.SC_ORANGE=i.rgb(255,85,0),t.WHITE=i.rgb(255,255,255),t.BLAZE=i.rgb(255,101,0),t.RAVEN=i.rgb(51,51,51),t.CHARCOAL=i.rgb(102,102,102),t.GRAY=i.rgb(82,82,82)},508:function(e,t){var n=(window.navigator.userLanguage||window.navigator.language||"").toLowerCase(),i=n.split("-")[0],r=n.split("-")[1];e.exports={isUsedLanguage:function(e){return i===e.toLowerCase()},isCountry:function(e){return r===e.toLowerCase()},isUsedLanguageAndCountry:function(e){return n===e.toLowerCase()}}},51:function(e,t){e.exports={INITIAL:"timed-comment-sm:initial",CURRENT_COMMENT:"timed-comment-sm:current-comment",CURRENT_TIMESTAMP:"timed-comment-sm:current-timestamp",ACTIVE_TIMESTAMP:"timed-comment-sm:active-timestamp"}},515:function(e,t,n){"use strict";n.r(t),n.d(t,"initialize",(function(){return E})),n.d(t,"saveWithSignals",(function(){return x})),n.d(t,"withSignalAttributes",(function(){return T}));var i=n(6),r=n.n(i),o=n(11),a=n.n(o),s=n(22),u=n.n(s),l=n(9),c=n.n(l),d=n(23),f=n.n(d),h=(n(355),n(0)),p=n.n(h),g=n(93),m=n.n(g),v=n(75);function y(){return(y=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&n(11).trigger("multi-track:saved",{soundSaves:this._completeSaves})},setSoundAttributes:function(e,t){e.set(t)},saveSound:function(e,t){var i=e.createSnapshot(n(0).keys(t));return this.setSoundAttributes(e,t),e.save().then((function(){return{sound:e,isSuccess:!0}}),(function(){return i.rollback(),{sound:e,isSuccess:!1}}))},getInitialValues:function(){return this.getAttributesFromModels()},resetValues:function(){var e=this.getInitialValues();this.set(e),this.markFieldsClean()}},_sounds:null,_failedSaves:null,_completeSaves:null,getSounds:function(){return this._sounds},saveTracks:function(){return this.trigger("saveStart"),l.call(this,this.getSounds())},retryTracks:function(){return l.call(this,n(0).pluck(this._failedSaves,"sound"))},onSaved:function(e){a.call(this,e),o.call(this,"allSaved")},onSaveFailed:function(e){a.call(this,e),this.trigger("someFailed",{failedSounds:this._failedSaves})},cancel:function(){o.call(this,"canceled")},clearSaveHistory:function(){this._failedSaves=[],this._completeSaves=[]},reduceSounds:function(e){var t=this.getSounds();return t.length?n(0).reduce(e,(function(e,i,r){var o=i(t[0]),a=n(0).some(t,(function(e){return!n(0).isEqual(i(e),o)}));return e[r]=a?null:o,e}),{}):{}}});function o(e){this.resetValues(),this.broadcastSuccess(),this.clearSaveHistory(),this.trigger(e)}function a(e){this._failedSaves=function(e){return n(0).reject(e,(function(e){return e.isSuccess}))}(e),this._completeSaves=this._completeSaves.concat(function(e){return n(0).filter(e,(function(e){return e.isSuccess}))}(e))}function s(e,t){var n=this;return t.then((function(){return e.call(n).then(n.onSaved.bind(n),n.onSaveFailed.bind(n))}))}function u(){return this.validate().then((function(e){if(!e)return n(9).defer().reject()}))}function l(e){var t=this,i=this.getAttributesToBeSaved(e),r=e.map((function(e){return t.saveSound(e,i[e.id])}));return n(9).mapEither((function(){return n(0).flatten(arguments,!0)}),n(9).settled(r))}function c(e){var t=this.getRequiredModelAttributes().map((function(e){return"change:"+e}));this._failedSaves=[],this._completeSaves=[],this._sounds=e.map((function(e){var i=new(n(21))({id:e});return this.addSubmodel(i),this.listenTo(i,t.join(" "),d),i}),this);var i=p.call(this);i.length?f.call(this,i):h.call(this)}function d(){this.isDirty()||h.call(this)}function f(e){var t=this;return n(9).settled(e.map((function(e){return e.fetch({attrs:t.getRequiredModelAttributes()})})))}function h(){var e=this.getAttributesFromModels();e&&this.set(e)}function p(){return n(0).compact(this.getSounds().map((function(e){return!e.attrExists(this.getRequiredModelAttributes())?e:null}),this))}}).call(this,n(17))},546:function(e,t){var n=e.exports={centered:function(e,t,n,i){var r=Math.min(t,window.screen.width-50),o=Math.min(n,window.screen.height-50),a=window.screenX+(window.outerWidth-r)/2,s=window.screenY+(window.outerHeight-o)/2;return window.open(e,i||"",["location=1","width="+r,"height="+o,"top="+s,"left="+a,"toolbar=no","scrollbars=yes"].join(","))},interceptPopup:function(e){var t,n=null;return t=window.open,window.open=function(){return n=t.apply(void 0,arguments)},e(),window.open=t,n},createPopupOpener:function(e){var t,i=e.url,r=e.width,o=e.height,a=e.name;return function(){return t&&!t.closed||(t=n.centered(i,r,o,a)),t.focus(),t}}}},547:function(e,t,n){var i=function(){"use strict";function e(e,t){this.fn=e,this.priority=t,this.isStarted=!1,this.defer=n(9).defer()}var t=e.prototype;return t.run=function(){var e=this.defer,t=e.resolve,n=e.reject,i=e.state;return this.isStarted||"pending"!==i()||(this.isStarted=!0,this.fn().done(t).fail(n)),this.defer},t.cancel=function(){this.defer.reject()},e}(),r=function(){"use strict";function e(e){this.tasks=new(n(1124))((function(e){return e.priority})),this.paused=!1,this.pendingCount=0,this.maxConcurrentTasks=e}var t=e.prototype;return t.processQueue=function(){var e=this;if(!this.paused)for(;this.maxConcurrentTasks-this.pendingCount>0&&this.tasks.size();){var t=this.tasks.dequeue();this.pendingCount++,t.run().always((function(){e.pendingCount--,e.processQueue()}))}},t.addTask=function(e,t){void 0===t&&(t=1);var n=new i(e,t);return this.tasks.enqueue(n),this.processQueue(),n},t.removeTask=function(e){return e.cancel(),this.tasks.remove(e)},t.pause=function(){this.paused=!0},t.resume=function(){this.paused=!1,this.processQueue()},t.clear=function(){this.tasks.clear()},e}();e.exports={AsyncTask:i,AsyncTasksQueue:r}},55:function(e,t,n){(function(t){var i=Math.PI/180,r=window,o=r.document,a=r.FileReader,s=r.Image,u={},l=["me-user","user","profile-settings"],c=["user"],d=e.exports=n(0).defaults({tagOptions:{whitelist:["style","title","class","aria-label","aria-role","aria-hidden"],closingTag:!0},load:function(e,i){var r=(void 0===i?{}:i).corsImg,o=void 0===r?n(86).corsImg:r,a=new s,u=t(a),l=n(9).defer(),c=n(0).uniqueId("ImageHelperLoad");return o&&(a.crossOrigin=window.location.host,e+="?xd=true"),u.on("load."+c,(function(){l.resolve(this)})).on("error."+c,(function(){l.reject(this)})),l.always((function(){u.off("."+c)})),a.src=e,l},getPlaceholderUrl:function(e,t){var i,r,o,a=-1,s=f(d.setFormat(e,t));if(s){if(i=s.key,u[s.type]||(u[s.type]={}),u[s.type][i])for(r=n(0).find(d.availableSizes,(function(e,n){var i=e[0];return a=n,t<=i}));a>=0;){if(u[s.type][i]&1<-1:n?c.indexOf(n)>-1:l.indexOf(e)>-1},getPlaceholderClass:function(e,t){var i=void 0===t?{}:t,r=i.placeholderType,o=void 0===r?"gradient":r,a=i.forceSquare,s=void 0!==a&&a,u=i.forceCircle,l=void 0!==u&&u,c="number"==typeof e,f=c?e:(null==e?void 0:e.id)||0,h="string"==typeof f?n(80).quickHash(f):f,p=(l||!c&&!s)&&(l||d.isRounded(e))?"image__rounded":"";return(function(){switch(o){case"gradient":return"sc-artwork-placeholder-"+h%12;case"blank":return"sc-artwork-placeholder-blank"}}()||"")+" "+p},getPlaceholderGradient:function(e){var t=d.getPlaceholderClass(e),i=n(0).find(t.split(" "),(function(e){return e.indexOf("sc-artwork-placeholder")>-1}));return n(638)[i]},getPlaceholderCanvas:function(e,t){var n=o.createElement("canvas"),i=n.getContext("2d"),r=d.getPlaceholderGradient(e),a=r[0],s=r[1];if(n.width=n.height=t,i){var u=i.createLinearGradient(0,0,t,t);u.addColorStop(0,a),u.addColorStop(1,s),i.fillStyle=u,i.fillRect(0,0,t,t)}return n},readImageFile:function(e){return n(222).readAsDataURL(e).then((function(e){return h(e)}))},readImageFileCorrected:function(e){return function(e){var t=new a,i=n(9).defer();return t.onerror=t.onabort=function(){i.reject(-3)},t.onload=function(e){var t=new DataView(e.target.result);if(65496===t.getUint16(0,!1)){var n=t.byteLength,r=2;try{for(;r-1?{index:i,key:r,type:t}:null}function h(e){var t=n(9).defer(),i=new s;return i.onload=function(){t.resolve(i)},i.onerror=function(){t.reject()},i.src=e,t.promise()}var p={1:[0,!1],2:[0,!0],3:[180,!1],4:[180,!0],5:[90,!0],6:[90,!1],7:[270,!0],8:[270,!1]};function g(e){return 65280==(65280&e)}}).call(this,n(17))},56:function(e,t){e.exports={ALT:18,BACKSPACE:8,COMMA:188,CTRL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESC:27,HASH:220,HOME:36,INSERT:45,L:76,LEFT:37,META_FIREFOX_OSX:224,META_LEFT:91,META_RIGHT:92,META_RIGHT_OSX:93,PGDOWN:34,PGUP:33,R:82,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}},561:function(e,t){e.exports={default:"default",passwordReset:"password-reset"}},562:function(e,t,n){var i=["email","user_birthday","user_gender"].join(","),r=n(6).get("fb_app_id"),o=null,a=null,s=n(9).defer();function u(){return"resolved"===s.state()}function l(){return a||(a=n(75).insertScript("//connect.facebook.net/en_US/sdk.js",{onerror:function(){s.reject(),s=n(9).defer(),a=null}})),s.promise()}function c(e){var t=(void 0===e?{}:e).promptUser,r=void 0===t||t,a=n(9).defer();return p().then((function(e){e?d(a,window.FB.getAuthResponse()):o&&!o.closed?o.focus():r?o=n(546).interceptPopup((function(){window.FB.login((function(e){return d(a,e.authResponse)}),{scope:i})})):a.reject()})),a.promise()}function d(e,t){var n=null==t?void 0:t.accessToken;n?e.resolve(n):e.reject()}function f(){return p().then((function(e){return e?h("/me"):n(9).reject()}))}function h(e,t){void 0===t&&(t={});var i=n(9).defer();return c().then((function(r){window.FB.api(e,n(0).extend({access_token:r},t),i.resolve)}),i.reject),i.promise()}function p(){return(e=n(9).defer(),u()?window.FB.getLoginStatus((function(t){return e.resolve(t.status)})):e.reject(),e.promise()).then((function(e){return n(9).resolve("connected"===e)}),(function(){return n(9).resolve(!1)}));var e}e.exports=n(0).extend({loadFacebookSDK:function(){return(n(32).isCategoryEnabled(n(32).CookieCategory.Targeting)?n(9).resolve():n(9).reject()).then(l)},isFacebookSDKReady:u},n(0).mapObject({getFacebookToken:c,getCurrentFacebookUser:function(e){var t=(void 0===e?{}:e).size,i=void 0===t?200:t;return f().then((function(e){var t={width:i,height:i,redirect:!1};return h("/"+e.id+"/picture",t).then((function(t){var i;return n(9).resolve({name:e.name,picture_url:null==t||null==(i=t.data)?void 0:i.url})}))}))},receiveBirthdayAndFacebookToken:function(){var e=n(9).defer(),t=function(){return e.reject({error:"age_not_provided"})};return f().then((function(n){h("/"+n.id+"?fields=birthday,gender").then((function(n){c().then((function(i){(null==n?void 0:n.birthday)?e.resolve({token:i,birthday:new Date(n.birthday),gender:n.gender}):t()}))}))}),(function(){return t()})),e}},(function(e){return function(){return e.apply(void 0,arguments)}}))),window.fbAsyncInit=function(){window.FB.init({appId:r,status:!1,cookie:!0,version:"v2.12"}),delete window.fbAsyncInit,s.resolve()}},57:function(e,t,n){e.exports={DISABLED:-1,UNKNOWN:0,INVALID:1,VALID:2}},572:function(e,t,n){e.exports=n(96).extend({maxLength:30,message:function(){return n(2).Lingua.t("You can use up to [[maxLength]] tags.",{maxLength:this.maxLength})}})},581:function(e,t,n){var i;e.exports={preparePlaylistForm:function(e,t,i){var r=a(e,n(361),{resource_id:e.resource_id});r.set("sharing",n(315).getDefaultAvailability()),i&&r.setTitleFromFolder(i);var u=e.getUploads().map((function(e){return o(e,t)}));return r.addSoundForms(u),s(r),r},prepareSoundUploadForm:o,prepareSoundEditForm:r(n(102)),addFiles:function(e,t){var o=this,a=void 0===t?{}:t,u=a.toPlaylistUploadId,l=a.replaceSoundUploadId,c=a.ReplaceSoundUploadClass,d=a.isDragNDrop;i||(i=new(n(189)));var f=!u&&n(315).getUploadAsPlaylist()&&n(6).get("me").canBulkUploadAsPlaylist(),h={},p=i.extractFolderName(e);return i.addFiles(e,{replaceSoundUploadId:l}).then((function(e){var t=e.length;if(f&&t>1)h.inPlaylist=!0,o.preparePlaylistForm(i.addUploadsAsAggregate(e),h,p);else if(u)o.preparePlaylistForm(i.addUploadsToAggregate(e,u),h,p);else if(l){var a=c?r(c):o.prepareSoundEditForm;e.forEach(a)}else e.map(o.prepareSoundUploadForm).forEach(s);t>0&&!u&&function(e,t){var i=t.asPlaylist,r=t.isDragNDrop;n(14).trackV0Click(["upload_group",1===e?"single":"multiple",1!==e&&(i?"grouped":"ungrouped")].filter(Boolean),{click_attributes:{is_drag_n_drop:!!r}})}(t,{asPlaylist:f,isDragNDrop:d})}))}};function r(e){return function(t){return a(t,e,{resource_id:t.resource_id})}}function o(e,t){var i=a(e,n(102),n(0).extend({resource_id:e.resource_id},t));return n(1737).getDataFromFile(e.get("file")).done((function(e){e.artwork_data&&i.setImageFile(n(711).getBlobFromDataURI(e.artwork_data),"id3"),i.set(n(0).omit(e,"artwork_data"))})),i.set("availability",n(315).getDefaultAvailability()),i.set("track_format",n(315).getDefaultTrackFormat()),i}function a(e,t,n){var i=function(e,t){var n=new e(null,t);return n.release(),n}(t,n);return i.setFileUpload(e),i}function s(e){var t=new(n(931));t.add(e,{at:0}),t.release()}},59:function(e,t,n){var i=e.exports={createSnippetUXSoundFilter:function(e){var t=e.skipSnippetizedAndBlockedSounds;return function(e){var n=!e.isSnippetized()&&!e.isBlocked();return!t||t&&n}},isSoundType:function(e){return"sound"===e.resource_type},isSnippetUnplayable:function(e){return e.isSnippetized()&&!e.isPlayable()},isSnippetBlocked:function(e,t){return i.isSnippetUnplayable(e)&&!t.isAvailable()},isSoundBlocked:function(e,t){return!!i.isSoundType(e)&&(e.isBlocked()||i.isSnippetBlocked(e,t))},isSoundInteractive:function(e,t){return i.isSoundType(e)&&e.isInteractive()&&!i.isSnippetBlocked(e,t)},shouldEnableSnippetUX:function(){return n(6).get("features").has("v2_snippet_ux_skip_snippets_in_play_queue")},isGoPlusSnippetNotPlayable:function(e,t){return i.isSnippetAndUnplayable(e)&&i.isProductAvailable(t)},isSnippetAndUnplayable:function(e){return e===n(97).ContentPolicy.Snip&&i.shouldEnableSnippetUX()},isProductAvailable:function(e){return e.id===n(288).ProductId.free||!!e.preselected_term},isBlocked:function(e,t){return e===n(97).ContentPolicy.Block||i.isSnippetAndUnplayable(e)&&!i.isProductAvailable(t)},isGoPlus:function(e){return e===n(97).MonetizationModel.SubHighTier}}},60:function(e,t,n){var i=d(n(348)),r=["US","IE","GB","FR","PR","AS","GU","MP","VI","GG","JE","IM","GP","MQ","RE","AU","NZ","CA","DE","NL","BE","CH","ES","IT","PT","AT","FI","DK","SE","NO"],o={AI:"GB",AS:"US",AW:"NL",AX:"FI",BL:"FR",BM:"GB",BQ:"NL",BV:"NO",CC:"AU",CK:"NZ",CW:"NL",CX:"AU",FK:"GB",FO:"DK",GG:"GB",GI:"GB",GL:"DK",GP:"FR",GS:"GB",GU:"US",IM:"GB",IO:"GB",JE:"GB",KY:"GB",MF:"FR",MP:"US",MQ:"FR",MS:"GB",NC:"FR",NF:"AU",NU:"NZ",PF:"FR",PM:"FR",PN:"GB",PR:"US",RE:"FR",SH:"GB",SJ:"NO",SX:"NL",TC:"GB",TF:"FR",TK:"NZ",VG:"GB",VI:"US",WF:"FR"},a=["AQ","AF","CU","BV","IO","CF","CX","GQ","HT","HM","IR","IQ","KP","LB","LR","LY","MM","PK","UA","TR"],s=["US","AS","GU","MP","PR","UM","VI"],u=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","ES","SE","GB"];e.exports={countryToCode:function(e){return t=i,r=e,n(0).find(Object.keys(t),(function(e){return t[e]===r}))||"";var t,r},codeToCountry:function(e){return i[e]||""},country:function(e){return new l(i[e],e)},countries:function(e){var t;return t=e&&e.length>0&&"worldwide"!==e[0]?d(n(0).chain(e).map(n(0).propertyOf(n(348))).compact().value()):i,n(0).chain(t).map(l).sortBy("title").value()},countryCodes:function(e){var t=e?n(348)[e]:i;return t&&Object.keys(t)},monetizableCountryCodes:function(){return r},regionCodes:function(){return Object.keys(n(348)).sort()},regions:function(){return this.regionCodes().map(c)},complement:function(e){return n(0).difference(Object.keys(i),e)},euCountryCodes:function(){return u},isEUCountry:function(e){return-1!==u.indexOf(e)},isUSCountry:function(e){return-1!==s.indexOf(e)},isPayPalAvailableInCountry:function(e){return-1===a.indexOf(e)},parentCountryCode:function(e){return o[e]||e}};function l(e,t){return{title:e,value:t}}function c(e){return{title:f(e),value:e}}function d(e){return n(0).reduce(e,(function(e,t){return n(0).assign(e,t)}),{})}function f(e){return n(124).titleCase(e.replace("_"," "))}},62:function(e,t){e.exports={IDLE:0,QUEUED:1,UPLOADING:2,FAILED:4,TRANSCODING:8,COMPLETE:16}},623:function(e,t,n){(function(t){var i={likes:"favorites",people:"users",sound:"track",sounds:"tracks","web-profile":"web_profile"};e.exports={initialize:function(e){var i,r=this,o=e.statusCode,a=void 0===o?{}:o,s=e.enableScheduling,u=void 0!==s&&s,l=n(6).get("client_id");t.ajaxSetup({xhr:(i=t.ajaxSettings.xhr,function(){var e=i();return this.progress&&e.upload.addEventListener("progress",this.progress.bind(this)),e}),statusCode:a,progress:null,timeout:4e4,beforeSend:function(e,t){t.abort&&"function"==typeof t.abort.addAbortListener&&n(287).listenToAbortSignal(e,t.abort),t.crossDomain=!0,r.isApiV2Endpoint(t.url)&&(!t.omitAuthorization&&n(22).isLoggedIn()&&e.setRequestHeader("Authorization","OAuth "+n(22).getAuthToken()),t.url=n(28).modify(t.url,{query:{client_id:l,app_version:n(6).get("app_version"),app_locale:n(15).LinguaLib.getLocale(),stage:n(64).get("stage")}}))}}),u&&(t.ajax=n(173).addAjaxScheduling(t.ajax))},isApiV2Endpoint:function(e){return 0===e.indexOf(n(6).get("api_v2_host"))},toAPIResource:function(e){return i[e]||e}}}).call(this,n(17))},624:function(e,t){e.exports={PERFORMANCE_COOKIE_CONSENT_NAME:"cookie_consent",PERFORMANCE_COOKIE_CONSENT_VALUE:"1"}},625:function(e,t,n){var i=[n(77).none,n(77).one,n(77).all];e.exports=function(e){var t,a,s,u,l,c,d,f,h,p,g,m=void 0===e?{}:e,v=m.prefetchDistance,y=void 0===v?20:v,_=m.playNextOnErrorDelay,b=void 0===_?2500:_,w=m.rewindThreshold,k=void 0===w?5e3:w,A=m.randomBufferSize,C=void 0===A?100:A,S=m.prefetchAudioCheckPoint,E=void 0===S?1e4:S,x=m.stableBufferDuration,T=void 0===x?1e4:x,I=new(n(1129)),L=0,P=-1,M=-1/0,D=0,R=0,O=!1,U=!1,F=!1,N=!1,z=n(0).noop,B=null,q=i[0],j=!1,V=[],G=n(0).noop,Q=n(0).memoize((function(){var e=n(9).defer();return!a||a.stream.isEnded()?e.resolve():(K.listenTo(a.stream,"end",e.resolve),K.pullPrev(1/0)),e.promise()})),H=function(){return f.isAdBreakActive()?!!f.isAllowedToSkipAdBreak()&&(z=n(0).noop,f.requestSkipAdBreak(),!0):(f.dismissLeaveBehind(),!0)},K=n(0).assign({},n(35).Events,{states:{globalPlayLock:{initial:!1},hasNext:{initial:!1},hasCurrent:{initial:!1},shuffle:{setup:function(){I.each((function(e,t){e.order=t}));var e=P+1,t=I.slice(0,e),i=n(0).shuffle(I.slice(e));I.reset(t.concat(i)),s&&s.stream.shuffle();n(14).trackV0Click(["shuffle"],{click_name:"shuffle::on"})},teardown:function(){var e=K.getCurrentQueueItem(),t=P;for(;t>=0&&I.at(t).explicit&&null==I.at(t).order;)t--;var i=I.at(t),r=I.reduce((function(e,t){return null!=t.order?e.ordered.push(t):t.explicit?e.explicit.push(t):t.index<0?e.prev.push(t):e.next.push(t),e}),{prev:[],ordered:[],explicit:[],next:[]});s&&(r.next=r.next.concat(s.stream.unshuffle()));var o=[].concat(n(0).sortBy(r.prev,"index"),n(0).sortBy(r.ordered,"order"),n(0).sortBy(r.next,"index")),a=o.indexOf(i),u=n(0).sortBy(r.explicit,"index");o.splice.apply(o,[a+1,0].concat(u)),-1===(P=o.indexOf(e))&&n(101).notify(new Error("PlayManager: Error occurred when unshuffling."));I.reset(o),n(14).trackV0Click(["shuffle"],{click_name:"shuffle::off"})}},hasFallback:{initial:!1},fallbackEnabled:{initial:!0}},initialize:function(e,t,i,r){void 0===r&&(r=function(){}),f=e,h=t,p=i,K.listenTo(f,n(89).CHANGE_AD_SKIPPABILITY,ae.bind(this,"change")).listenTo(f,n(89).END_AD_BREAK,ae.bind(this,"end")).listenTo(h,"destroy",(function(e){var t=e.targetType,n=e.targetModel;"sound"===t&&re.call(this,n)})).listenTo(p,"geoBlocked",ue).listenTo(p,"soundPolicyChange",oe),d=r,g=window.setInterval(le,500),this.restoreSoundStore=new(n(627))},dispose:function(){z=n(0).noop,window.clearInterval(g),$(null),W(null),I.release(),K.stopListening(),K.off()},playSource:function(e,t,i,r){if((void 0===r&&(r={}),!K.getState("globalPlayLock"))&&H()){var o=K.getCurrentQueueItem();if(o&&t===o.sound)K.playCurrent(r);else{K.pauseCurrent({seek:0});var a=void 0===r.fallbackEnabled||r.fallbackEnabled;K.toggleState("fallbackEnabled",a);var s=n(347)(e,t,i,C,void 0,r.skipSnippetizedAndBlockedSounds),u=s.prev;W(s.next),$(u),K.trigger(n(250).QUEUE_RESET),l=r,F=!0,N=!1,K.pullNext(1)}}},toggleSource:function(e,t,n){void 0===n&&(n={}),K.isSourcePlaying(e)?K.pauseCurrent(n):K.isSourceActive(e)?K.playCurrent(n):K.playSource(e,null,t,n)},playCurrent:function(e){if(void 0===e&&(e={}),e=n(0).defaults(e,{allowAdBreak:!0}),H()){var t=K.getCurrentQueueItem();if(t&&t.sound.isPlayable()){z=function(){z=n(0).noop,j=!0,function(e){if(n(131).isCasting())return;var t=function(){G(),n(1170).waitForPlayThreshold(e,K.getCurrentMetadata()).then((function(e){var t=e.soundId,n=e.playContext;h.addToPlayHistory(t,n,!0)}))};e.on("time",t),G(),G=function(){e.off("time",t),G=n(0).noop}}(t.sound),t.sound.play(e),t.sound.player&&t.sound.player.registerMediaSessionActionHandlers(),n(453).addSound(t.sound,e)};var i=e.allowAdBreak&&n(74).isUserAdConsumer()&&!n(131).isCasting(),r=B===t.sound.getUrn();if(B=t.sound.getUrn(),t.enablePreloading(),i&&!r)f.beginAdBreak(t.sound,e).fail(z).then((function(e){return e.getActiveDeferred()})).then(z);else z()}else N?K.playPrev(e):K.playNext(e)}else z=function(){return K.playCurrent(e)}},pauseCurrent:function(e){void 0===e&&(e={}),c=null,l=null;var t=K.getCurrentSound();t&&(t.pause(),e.seek>=0&&t.seek(e.seek))},toggleCurrent:function(e){void 0===e&&(e={});var t=K.getCurrentSound(),n=f.getCurrentAdSound();n?n.toggle(e):K.getState("globalPlayLock")||t&&(t.isPlaying()?K.pauseCurrent(e):K.playCurrent(e))},seekCurrentBy:function(e){var t=K.getCurrentSound(),n=f.getCurrentAdSound();if(t&&!n){var i=e(t);t.seekRelative(i)}},seekCurrentTo:function(e){var t=K.getCurrentSound(),n=f.getCurrentAdSound();if(t&&!n){var i=e(t);t.seek(i)}},setCurrentItem:function(e,t){if(void 0===t&&(t={}),H()){B=null;var i=K.getCurrentQueueItem(),r=e!==i,o=e.sound;r&&(i&&i.disablePreloading(),K.pauseCurrent({seek:0}),i&&X(i.sound),-1===(P=I.indexOf(e))&&n(101).notify(new Error("PlayManager: setCurrentItem() called with item which isn't in the queue.")),se(),function(e){if(V.indexOf(e)>=0)return void 0;V.push(e),K.listenTo(e,"finish",ee).listenTo(e,"change:playable",ne).listenTo(e,"time",te).listenToOnce(e,"time",(function(){N=!1}))}(o),K.trigger(n(250).CHANGE_CURRENT_SOUND,{current:o})),!0!==t.pause?K.playCurrent(t):e.enablePreloading(),r&&function(){U||K.pullNext(Math.max(0,y-(I.length-P)+1));K.pullPrev(Math.max(0,y-P))}(),le()}},playNext:function(e){if(void 0===e&&(e={}),f.isAdBreakActive())f.requestSkipCurrentAd();else{e=n(0).assign({seek:0},e),N=!1;var i=q===n(77).all,a=K.getCurrentQueueItem();if(!a||q!==n(77).one||e.userInitiated)if(I.length&&P0?I.at(P-1):r?I.last():null,u=a&&!a.stream.isEnded();if(!i&&t&&(!o&&!u||t.currentTime()>k))return t.isPlayable()&&(t.seek(0),t.isPlaying()||(j=!0,t.play(e))),void(N=!1);N=!0,o?K.setCurrentItem(o,e):u&&(c=e,K.pullPrev(1))},removeItem:function(e){K.getCurrentQueueItem()!==e&&I.remove(e)},clearQueue:function(){var e=K.getCurrentQueueItem();K.replaceQueue(e?[e]:[],e?0:-1)},replaceQueue:function(e,t,i){void 0===i&&(i={}),t>=-1&&t=0&&K.setCurrentItem(I.at(t),i),I.trigger("reset",I,{}),se()},addExplicitQueueItem:function(e,t,i){K.injectExplicitQueueItem(K.createExplicitQueueItem(e,t,i)),s||W(n(455),!1)},createExplicitQueueItem:function(e,t,i){var r=e.getSoundIndex(t),o=e.getQueueMetadataAt(r),a=o.originalModel,s=o.queryPosition,u=o.sourceInfo,l=new(n(163))({},{contextSnapshot:i,originalModel:a,queryPosition:s,sound:t,sourceInfo:u,explicit:!0,index:L++});return l.release(),l},injectExplicitQueueItem:function(e){for(var t=P+1,n=I.length;tM){t&&t.dispose(),M=i;var o=!!e.playlist,s=o?e.playlist:e,l=o?e:null;return t=n(347)(s,l,r)}},unsetInitialSource:function(e){t===e&&(M=-1/0,t.dispose(),t=null)},isSourcePlaying:function(e){var t=K.getCurrentSound();return!!t&&t.isPlaying()&&K.isSourceActive(e)},isPlaying:function(){var e,t=null!=(e=f.getCurrentAdSound())?e:K.getCurrentSound();return!!t&&t.isPlaying()},isSourceActive:function(e){var t=K.getCurrentQueueItem();return!!t&&n(0).isEqual(t.sourceInfo,e.getSourceInfo())},getQueue:function(){return I},getCurrentQueueItem:function(){return I.at(P)},getCurrentMetadata:function(){var e=n(74).isUserAdConsumer()?f.getCurrentAdSound():null,t=K.getCurrentQueueItem();if(e&&t){var i=t.clone({sound:e,originalModel:e,restoreUrl:null});return i.release(),i}return t},getCurrentMetadataEmptyReasons:function(){return{adConsumer:n(74).isUserAdConsumer(),currentAd:n(74).isUserAdConsumer()&&!!f.getCurrentAdSound(),queueLength:I.length,queueCursor:P}},hasNextSound:function(){return K.getState("hasNext")},hasCurrentSound:function(){return K.getState("hasCurrent")},getCurrentSound:function(){var e=K.getCurrentQueueItem();return null==e?void 0:e.sound},hasMoreAhead:function(){return!!s&&!s.stream.isEnded()},hasMoreBehind:function(){return!!a&&!a.stream.isEnded()},hasFallback:function(){return U||s&&s.stream.isEnded()&&!!o(I)},enableAutoplay:function(){s?K.playCurrent({userInitiated:!1}):O=!0},restoreState:function(e){if(void 0===e&&(e=K.getCurrentQueueItem()),e){var t=n(6).get("router"),i=e,r=i.contextSnapshot,o=i.sound,a=null==r?void 0:r.restoreUrl,s=o.playlist||o.systemPlaylist||o;a?(t.navigate(a,{trigger:!0}),this.restoreSoundStore.set("restoreToSound",s.resource_type+s.resource_id)):t.navigateToRoute("listen",[o],{trigger:!0})}},cycleRepeatMode:function(){if(n(131).isCasting())K.setRepeatMode(q===n(77).none?n(77).one:n(77).none);else{var e=i.indexOf(q);K.setRepeatMode(i[(e+1)%i.length])}},setRepeatMode:function(e){e!==q&&(q=e,K.trigger(n(250).CHANGE_REPEAT_MODE,q),se())},pullNext:function(e){s&&!s.stream.isEnded()&&(D=Math.max(D,e))>0&&s.stream.resume()},pullPrev:function(e){a&&!a.stream.isEnded()&&(R=Math.max(R,e))>0&&a.stream.resume()},getQueueState:function(){return{currentIndex:P,repeatMode:q}}});return n(451).applyTo(K),K.listenTo(I,"remove",(function(e,t,n){n.index<=P&&--P;se()})).listenTo(I,"add",(function(e){I.indexOf(e)<=P&&++P;se()})).listenTo(I,"error",(function(e,t){if(!t)return;(404===t.status||t instanceof n(289))&&re(e.sound)})),K;function W(e,t){var i,r,o;void 0===t&&(t=!1),s&&(K.stopListening(s.stream),s.dispose()),t||(i=K.getCurrentQueueItem(),r=j||i&&!i.explicit,o=I.slice(0,P+(r?1:0)).concat(n(0).reject(I.slice(P+1),"explicit")),I.remove(o),r&&X(i.sound)),s=e,U=t,D=0,e&&(K.getState("shuffle")&&e.stream.shuffle(),K.listenTo(s.stream,"data",J).listenTo(s.stream,"end",Z)),se()}function $(e){a&&(K.stopListening(a.stream),a.dispose()),a=e,e&&(Q.cache={},K.listenTo(a.stream,"data",Y))}function Y(e){0==--R&&a.stream.pause(),I.unshift(e,{prevStream:!0}),c&&K.setCurrentItem(e,c)}function J(e){0==--D&&s.stream.pause(),F?(I.unshift(e),F=!1):I.push(e),l&&K.setCurrentItem(e,l),le()}function Z(){F=!1}function X(e){if(e){var t=V.indexOf(e);t>=0&&(V.splice(t,1),K.stopListening(e),e.player&&e.player.unregisterMediaSessionActionHandlers())}}function ee(){var e=K.getCurrentSound();n(131).isCasting()||(e.pause(),ie())}function te(e){var t=K.getCurrentSound();t&&t.currentTime()>=t.duration()-E&&(le(),K.stopListening(t,"time",te))}function ne(){var e=K.getCurrentSound();e&&!e.isPlayable()&&(X(e),ie())}function ie(e){void 0===e&&(e={}),K.playNext(n(0).assign({userInitiated:!1},e))}function re(e){var t=e.isPlaying(),n=K.getCurrentSound()===e,i=I.filter({sound:e});I.remove(i),n&&ie({pause:!t})}function oe(e){var t=n(59).shouldEnableSnippetUX(),i=!e.isSnippetized()&&!e.isBlocked();t&&!i&&re.call(this,e)}function ae(e){K.toggleState("globalPlayLock",f.isAdBreakActive())}function se(){var e=P1||q!==n(77).all&&!!o(I),t=!(!e&&!K.getCurrentQueueItem());K.toggleState("hasNext",e).toggleState("hasCurrent",t)}function ue(e){var t=e.sound;if(t.isPlaying()){var n=function e(){t.off("pause",e),window.clearTimeout(i)},i=window.setTimeout((function(){n(),K.playNext()}),b);t.on("pause",n)}}function le(){for(var e,t,n=K.getCurrentQueueItem(),i=1;n&&null!=(t=I.at(P+i))&&!t.sound.isPlayable();)i++;if(t){var r=null==(e=n.sound)?void 0:e.player;if(r){var o=r.getMaxBufferLength(),a=r.getCurrentBufferedTimeRange(),s=r.getDuration(),u=a?a.end:0,l=r.getPosition();null!==o&&null!==s&&(u>=s||u-l>=Math.min(T,o))?t.enablePreloading():t.disablePreloading()}}}};function r(e){return e.sound.isPlayable()}function o(e){for(var t=e.length;t--;)if(e.at(t).sound.isPublic())return e.at(t)}},626:function(e,t,n){var i=e.exports=n(219).extend();n(1130).applyTo(i.prototype)},629:function(e,t){function n(){}function i(e){this._tree=e,this._ancestors=[],this._cursor=null}n.prototype.clear=function(){this._root=null,this.size=0},n.prototype.find=function(e){for(var t=this._root;null!==t;){var n=this._comparator(e,t.data);if(0===n)return t.data;t=t.get_child(n>0)}return null},n.prototype.findIter=function(e){for(var t=this._root,n=this.iterator();null!==t;){var i=this._comparator(e,t.data);if(0===i)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}return null},n.prototype.lowerBound=function(e){for(var t=this._root,n=this.iterator(),i=this._comparator;null!==t;){var r=i(e,t.data);if(0===r)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(r>0)}for(var o=n._ancestors.length-1;o>=0;--o)if(i(e,(t=n._ancestors[o]).data)<0)return n._cursor=t,n._ancestors.length=o,n;return n._ancestors.length=0,n},n.prototype.upperBound=function(e){for(var t=this.lowerBound(e),n=this._comparator;null!==t.data()&&0===n(t.data(),e);)t.next();return t},n.prototype.min=function(){var e=this._root;if(null===e)return null;for(;null!==e.left;)e=e.left;return e.data},n.prototype.max=function(){var e=this._root;if(null===e)return null;for(;null!==e.right;)e=e.right;return e.data},n.prototype.iterator=function(){return new i(this)},n.prototype.each=function(e){for(var t,n=this.iterator();null!==(t=n.next());)e(t)},n.prototype.reach=function(e){for(var t,n=this.iterator();null!==(t=n.prev());)e(t)},i.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},i.prototype.next=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._minNode(e)}else{var t;if(null===this._cursor.right)do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===t);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},i.prototype.prev=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._maxNode(e)}else{var t;if(null===this._cursor.left)do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===t);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},i.prototype._minNode=function(e){for(;null!==e.left;)this._ancestors.push(e),e=e.left;this._cursor=e},i.prototype._maxNode=function(e){for(;null!==e.right;)this._ancestors.push(e),e=e.right;this._cursor=e},e.exports=n},63:function(e,t){e.exports={ChangeFrequency:{always:"always",hourly:"hourly",daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly",never:"never"}}},636:function(e,t,n){e.exports=new(n(19))(n(196).withOptions({read:"avatar_url",write:"image_data",useFormData:!1}),{getImageSaveUrl:function(){return n(45).getUrlForEndpoint("meAvatar")},getImageDeleteEndpoint:function(){return"meAvatarDelete"},around:{uploadImage:function(e){for(var t=this,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o-1)return i;if(i!==i.toUpperCase()){var r=i.replace(/[.,#~_-]|([a-z])([A-Z])/g,(function(e,t,n){return t?t+" "+n:" "}));if(i!==r)return n(124).titleCase(r)}var o=i.toLowerCase();if(e&&o.indexOf(e.toLowerCase())>-1||t&&o.indexOf(t.toLowerCase())>-1||o.indexOf("user")>-1)return e+" "+t;return i}(e,t,i);return r!==i?i+" | "+r:i}}},638:function(e,t){e.exports={"sc-artwork-placeholder-0":["#846170","#70929c"],"sc-artwork-placeholder-1":["#846170","#e6846e"],"sc-artwork-placeholder-2":["#846170","#8e8485"],"sc-artwork-placeholder-3":["#70929c","#846170"],"sc-artwork-placeholder-4":["#70929c","#e6846e"],"sc-artwork-placeholder-5":["#70929c","#8e8485"],"sc-artwork-placeholder-6":["#e6846e","#846170"],"sc-artwork-placeholder-7":["#e6846e","#70929c"],"sc-artwork-placeholder-8":["#e6846e","#8e8485"],"sc-artwork-placeholder-9":["#8e8485","#846170"],"sc-artwork-placeholder-10":["#8e8485","#70929c"],"sc-artwork-placeholder-11":["#8e8485","#e6846e"]}},64:function(e,t,n){var i="."+window.location.hostname.replace(/.*\.(.+\..+)/,"$1"),r=new(n(219)),o=e.exports={get:function(e){return r.length||window.document.cookie.split(/\s*;\s*/).forEach((function(e){var t=e.split("="),n=t[0],i=t.slice(1);r.set(n,i.join("="))})),r.get(e)},set:function(e){var t=e.name,o=e.value,a=e.expirationInDays,s=e.secure,u=e.domainStrict;window.document.cookie=[t+"="+o,a?"expires="+new Date(Date.now()+a*n(31).MS_IN_DAY).toGMTString():"","path=/",u?"":"domain="+i,s?"secure":""].filter(Boolean).join(";"),r.reset()},unset:function(e){o.set(n(0).assign({},e,{value:"",expirationInDays:-1})),r.reset()},clearCache:function(){r.reset()},savePerformanceCookiePermission:function(){o.set({name:n(624).PERFORMANCE_COOKIE_CONSENT_NAME,value:n(624).PERFORMANCE_COOKIE_CONSENT_VALUE})}}},641:function(e,t,n){e.exports=new(n(19))({applyTo:function(e,t){e.getTypes=n(0).constant((null==t?void 0:t.types)||{})},defaults:{getShareURL:function(e){return this.getShareAttributes(e).permalink_url}},getShareAttributes:function(e){var t=n(0).clone(this.attributes),r=null==e?void 0:e.type,o=r&&this.getTypes()[r];return o&&n(0).each(o,(function(e,n){t[n]=e.replace(/\:([a-zA-Z0-9_-]+)/g,(function(e,n){return t[n]}))})),t.permalink_url=i(t.permalink_url),t.uri=i(t.uri),"private"===t.sharing&&!t.secret_uri&&t.secret_token&&(t.secret_uri=n(28).modify(t.uri,{query:{secret_token:t.secret_token}})),t}});function i(e){return e&&e.replace(/^http:/,"https:")}},643:function(e,t,n){var i=function(){return null};e.exports=new(n(19))({applyTo:function(e,t){var a=t.batchEndpoint,s=t.flushInterval,u=void 0===s?50:s,l=t.maxQueueSize,c=void 0===l?50:l,d=t.getBatchParams,f=void 0===d?i:d,h=t.paramName,p=void 0===h?"ids":h,g={};this.around(e,{fetch:function(e,t){var i,s=this;if(t||(t={}),r.call(this,t))return e(t);if(this._requests||(this._requests={}),!this._requests[this.id]){var l=f(this)||null,d=(i=l)?n(28).stringify({query:i}):"default",h=g[d]||(g[d]=new o(a,l,c,u,p));this._requests[this.id]=h.add(this,t).always((function(){delete s._requests[s.id]}))}return this._requests[this.id]}})}});function r(e){return!this.id||e.jqAjax||!1===e.batch||"private"===this.get("sharing")}function o(e,t,n,i,r){this.batchEndpoint=e,this.batchParams=t,this.maxQueueSize=n,this.flushInterval=i,this.queue={},this.timer=null,this.paramName=r}o.prototype={getIds:function(){var e=n(0).reduce(this.queue,(function(e,t,n){return"pending"===t.deferred.state()&&(e[n]=t),e}),{});return Object.keys(e).sort()},add:function(e,t){var i=this.queue[e.id]=this.queue[e.id]||{callsigs:[],deferred:n(9).defer()};return i.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(),i.deferred},flush:function(){var e=this,t=this.getIds(),i=this.queue;window.clearTimeout(this.timer),this.timer=null,this.queue={},t.length<1||n(457)((function(){var i;return n(45).callEndpoint(e.batchEndpoint,null,n(0).assign(((i={})[e.paramName]=t.join(","),i),e.batchParams),null,{priority:n(173).RequestPriorities.URGENT})}),(function(){return!1})).then((function(e){var r=e.body,o=n(0).map(n(0).pluck(r,"id"),String);r.forEach((function(e){var t=e.id,n=i[t],r=Date.now();n&&(n.callsigs.forEach((function(t){var n=t.model;n.lastFetchTime=r,n.set(n.parse(e),t.options)})),n.deferred.resolve())})),n(0).difference(t,o).forEach((function(e){var t=i[e];t&&t.callsigs.forEach((function(e){e.model.trigger("error",e.model,new(n(289)),e.options)}))})),n(0).each(i,(function(e){e.deferred.reject()}))}))}}},644:function(e,t,n){e.exports=new(n(19))({requires:["getSourceInfo","containsSound","getCurrentSound","getSoundIndex","getQueueMetadataAt"]})},645:function(e,t,n){var i={};e.exports=new(n(19))({applyTo:function(e){var t=e.constructor;this.before(t,{onCleanup:function(e){!function(e,t){var n=r(e),o=t.resource_id;o&&i[n]&&delete i[n][o]}(this.constructor,e)}}),function(e){e._sdb=n(0).uniqueId("sdb")}(t)},after:{initialize:function(){this.attributes=a(this.constructor,this.attributes)}},around:{set:function(e,t,i,r){var s;if("object"==typeof t?(s=t,r=i):(s={})[t]=i,!s)return this;this.submodelMap&&(s=n(0).reduce(this.submodelMap,o,n(0).clone(s)));var u=this.constructor;return!this.resource_id&&u.hashFn(s)&&(s=a(u,s)),e(s,r)}}});function r(e){return e._sdb}function o(e,t,i){var o=e[i];return o&&r(t)&&(e[i]=n(0).isArray(o)?o.map(a.bind(null,t)):a(t,o)),e}function a(e,t){var o,a=r(e),s=function(e,t){return e.hashFn?e.hashFn(t):t.id}(e,t);return s?(i[a]=i[a]||{},(o=i[a][s])?n(0).assign(o,e.normalize?e.normalize(t):t):o=i[a][s]=t,o):t}},652:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["event","creatorSubType","layoutInfo","layoutViewCounts"]),u=window.dataLayer=window.dataLayer||[],l=n(6).get("me"),c=!!l.id,d=n(6).get("geoip"),f=d&&d.get("country_code"),h={};Object.keys(s).forEach((function(e){h[e]=s[e]||void 0})),u.push(n(0).defaults(i({event:t,isLoggedIn:c,guid:n(462).generate(),isPremium:l.isPremium(),creatorSubType:r||l.getCreatorPlan(),pageCategory:o?o.layoutName:void 0,hasHighTier:l.hasHighTier(),consumerSubType:l.getConsumerPlan(),countryCode:f},h),a||{}))},adjustViewCounts:function(e,t){var n=t.layoutName;"upload"===n?e.set("uploadVisitCount",(e.get("uploadVisitCount")||0)+1):"stats"===n&&e.set("statsVisitCount",(e.get("statsVisitCount")||0)+1),e.set("allVisitCount",(e.get("allVisitCount")||0)+1)},getViewCounts:function(e){return{uploadVisitCount:e.get("uploadVisitCount")||0,statsVisitCount:e.get("statsVisitCount")||0,allVisitCount:e.get("allVisitCount")||0}}}},653:function(e,t,n){var i=new(n(68))("aw"),r=null;function o(){r=null,i.reset()}function a(){if(!n(32).isCategoryEnabled(n(32).CookieCategory.Targeting))return o();if(!i.get("listener_id"))return s();var e=i.get("last_updated"),t=(Date.now()-e)/n(31).MS_IN_DAY;e&&t>=1&&s()}function s(){n(75).insertMultipleScriptsInSandbox(["//synchrobox.adswizz.com/register2.php","//cdn.adswizz.com/adswizz/js/SynchroClient2.js"],void 0,{onScriptLoad:function(e,t){var n=t&&"function"==typeof t.com_adswizz_synchro_getListenerId&&t.com_adswizz_synchro_getListenerId();n&&(r=n,i.set("listener_id",n),i.set("last_updated",Date.now()))}})}e.exports={initialize:function(){n(32).onChange((function(){n(32).isCategoryEnabled(n(32).CookieCategory.Targeting)?a():o()})),n(11).on("connect:logout",o),n(11).on("connect:login",a),a()},getAdswizzId:function(){return r||i.get("listener_id")}}},654:function(e,t,n){var i,r=new(n(68))("dax"),o=["date_of_birth","gender"];function a(){if(n(32).isCategoryEnabled(n(32).CookieCategory.Targeting)){var e=r.get("userInfo");if((null==e?void 0:e.segments)&&(null==e?void 0:e.uid)&&!i&&(i={segments:e.segments,uid:e.uid}),null==e?void 0:e.last_updated)((Date.now()-e.last_updated)/n(31).MS_IN_DAY>=1||!i)&&u();else u()}}function s(){i=void 0,r.reset()}function u(){var e;(e=n(6).get("me"),n(9).all([n(75).loadSandbox(),n(22).isLoggedIn()?e.fetch({attrs:o}):n(9).resolve()]).done((function(t){t.contentWindow.xl8_config={p:1083,g:1};var n={},i=e.get("gender"),r=e.get("date_of_birth");return"female"!==i&&"male"!==i||(n.gender=i),(null==r?void 0:r.year)&&(n.age=(new Date).getFullYear()-r.year),t.contentWindow.dataLayer=n,t}))).then(l).then(c).then(d)}function l(e){var t=n(9).defer();n(75).insertScriptIntoIframe(e,"https://cdn.exelator.com/build/static.min.js",{},{onScriptLoad:t.resolve,onError:t.resolve})}function c(){var e=n(9).defer(),t=new window.XMLHttpRequest;return t.onload=function(){200!==this.status?e.reject():e.resolve(t.responseText)},t.onerror=e.reject,t.open("GET","https://loadr.exelator.com/load?p=1083&g=130&j=j",!0),t.send(),e}function d(e){try{var t=JSON.parse(e),o=null==t?void 0:t.user;if((null==o?void 0:o.segments)&&(null==o?void 0:o.uid)){var a={segments:o.segments,uid:o.uid,last_updated:Date.now()};i=s=a,r.set("userInfo",s)}}catch(e){return void n(14).trackV1Click({click_name:"dax-non-json"})}var s}e.exports={initialize:function(){n(32).onChange((function(){n(32).isCategoryEnabled(n(32).CookieCategory.Targeting)?a():s()})),n(11).on("connect:logout",s),a()},getUserData:function(){return i}}},661:function(e,t,n){e.exports={scheduleIdleTask:function(e,t){void 0===t&&(t=1);return i.add({fn:e,minTaskTime:t})},removeIdleTask:function(e){i.remove(e)}};var i=new(n(1217).IdleQueue)},663:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;t-1?e.split(/(?=#)/):[e,""],i=n[0],r=n[1];return e.indexOf("?")>-1?i+t.replace(/^\?/,"&")+r:i+t+r}function d(e){return function(t){return i({},t,{loc:0===t.loc.indexOf("https://")?t.loc:e+(0===t.loc.length?"":"/"+t.loc)})}}},667:function(e,t,n){"use strict";var i=Node,r=i.TEXT_NODE,o=i.ELEMENT_NODE;e.exports=function e(t,n,i,a){var s=t.firstChild,u=void 0;if(s)do{s.nodeType===r?n(s):s.nodeType===o&&e(s,n,i,a),u=s}while((s=s.nextSibling)&&(!i||i(u)));a&&s&&a(s)}},669:function(e,t,n){(function(t){var i=new(n(68))("notify");e.exports=n(23).extend({channel:null,_queue:null,_waitingQueue:null,_unseenQueue:null,_breaker:null,lastRead:null,_request:null,defaults:{size:null,type:null},initialize:function(e){this._queue=[],this._waitingQueue=[],this._unseenQueue=[];var t=e.type,r=n(161)[t];this.baseUrl=r.get("baseUrl"),this.channel=r.get("channel"),this.lastRead=i.get(t),n(0).bindAll(this,"onNotification"),o(t)?n(6).get("notifications").subscribe(r.channel,this.onNotification):this.startPolling(),s.call(this,!0)},startPolling:function(){var e=this;if(!this._isPolling){var t=this._breaker=new(n(214))(c.call(this));this._isPolling=!0;var i=function i(){e._isPolling&&(window.clearTimeout(e._pollingId),e.fetch({force:!0,priority:n(173).RequestPriorities.LOW}).done((function(n){r.call(e,n)?(t.succeeded(),e._pollingId=window.setTimeout(i,t.currentDelay())):t.failed()})).fail((function(e){e.status>=400&&e.status<500?t.disable({autoEnable:!1}):t.failed()})))};this._breaker.on("enabled",i),a.call(this,!0),i()}},stopPolling:function(){this._isPolling&&(a.call(this,!1),window.clearTimeout(this._pollingId),this._pollingId=null,this._isPolling=!1,this._breaker.dispose(),this._breaker=null)},restart:function(){this.stopPolling(),this.startPolling()},onNotification:function(e){this._request?this._waitingQueue.push(e):this._queue.push(e),this._unseenQueue.push(e),this.set("size",this._unseenQueue.length)},hasUnfetchedItems:function(){return this._queue.length>0},fetchQueuedItems:function(){var e=this;if(!this._request){if(!this.hasUnfetchedItems())return this.set("size",0),n(9).resolve();var i=this._queue,r=i.length,o=i[0].uuid,a=i[r-1].uuid,s=n(28).modify(n(0).result(this,"baseUrl"),{query:{"uuid[to]":o,cursor:a,limit:r,offset:null}});this._request=n(9).defer(),t.ajax({url:s,dataType:"json",type:"GET"}).done((function(t){e.onFetchQueuedItemsDone(t),e._request.resolve(),e._request=null})).fail((function(){e.onFetchFail(),e._request.reject(),e._request=null}))}return this._request},markAsRead:function(e){var t=this.get("type"),n=0;this.lastRead!==e&&(this.lastRead=e,i.set(t,e),this._unseenQueue.some((function(t){if(++n,t.uuid===e)return!0}))?this._unseenQueue.splice(0,n):this._unseenQueue.length=0,this.set("size",this._unseenQueue.length)),o(t)||this.startPolling()},fetch:function(e){var t=this,i=!!(null==e?void 0:e.force);if(null!==this.get("size")&&!i)return n(9).resolve();var o=n(28).modify(n(0).result(this,"baseUrl"),{query:{limit:1,linked_partitioning:1}});return n(23).prototype.fetch.call(this,n(0).assign({url:o,dataType:"json",jqAjax:!0},e)).done((function(e){var n=r.call(t,e);t.lastFetchTime=Date.now(),n&&(null===t.get("size")||i)&&(t._queue.push(e.collection[0]),t.set("size",!0))}))},hasDataForView:function(){return null!==this.get("size")},onFetchFail:function(){this._waitingQueue.length&&Array.prototype.push.apply(this._queue,this._waitingQueue.splice(0,this._waitingQueue.length))},onFetchQueuedItemsDone:function(e){this._queue.length=0,this._waitingQueue.length&&(this._queue.push.apply(this._queue,this._waitingQueue),this._waitingQueue.length=0);var t=e.collection;(null==t?void 0:t.length)?this.trigger("data",t):this.set("size",0)}},{hashFn:function(e){return e.type},onCleanup:function(e){o(e.get("type"))&&n(6).get("notifications").unsubscribe(e.channel,e.onNotification),e.stopPolling(),s.call(e,!1)},cleanupInstantly:!0});function r(e){var t,i,r,o;return(null==e||null==(t=e.collection)?void 0:t.length)&&(r=(i=e.collection[0]).last_message?i.last_message.conversation_id+"_"+i.last_message.sent_at:i.uuid||i.id||i.urn,o=n(0).isNumber(r)?r>(void 0===this.lastRead?-1:this.lastRead):r!==this.lastRead),o}function o(e){var t=n(161)[e];return!!(n(6).get("notifications")&&t&&t.channel)}function a(e){this[e?"on":"off"]("change:size",l)}function s(e){var t=e?"on":"off";n(161)[this.get("type")][t]("pollIntervalChange",u,this)}function u(){this._breaker&&this.restart()}function l(e,t){t&&e.stopPolling()}function c(){var e=n(161)[this.get("type")];return{backoffRate:1.1,baseDelay:e.get("minPollInterval"),maxDelay:e.get("maxPollInterval")}}}).call(this,n(17))},675:function(e,t,n){e.exports=n(47).extend({source:null,makeFilter:null,query:null,filterSession:null,defaults:{batchSize:1e3},setup:function(){var e=this;this.source=this.setupSource(),["add","remove","reset"].forEach((function(t){return e.source.on(t,i,e)})),this.setToFullyPopulated()},setupSource:function(){0},setQuery:function(e){var t=this;this.filterSession&&this.filterSession.abort();var i=this.makeFilter(e);if(i){this.query=e;var r=function(e,t,i){var r=!1,o=n(9).defer(),a=[];function s(n){r&&o.reject();for(var u=n,l=Math.min(n+i,e.length);u'+(e.title?n(12).Utils.escapeExpression(e.title):"")+""}}},679:function(e,t,n){e.exports={labels:{geoblocked:n(2).Lingua.t("Geoblocked",{}),monetizable:n(2).Lingua.t("Monetizing",{}),"monetizable-pending":n(2).Lingua.t("Not monetizing",{}),"monetizable-possible":n(2).Lingua.t("Monetizable",{}),"monetization-restriction":n(2).Lingua.t("Monetization restricted",{}),private:n(2).Lingua.t("Private",{}),restricted:n(2).Lingua.t("Restricted",{}),scheduled:n(2).Lingua.t("Scheduled",{}),mastered:n(2).Lingua.t("Mastered",{})}}},68:function(e,t,n){var i=e.exports=n(219).extend();n(1127).applyTo(i.prototype),n(1128).applyTo(i.prototype)},688:function(e,t,n){(function(t){var i={apiStreamable:{defaultValue:!0},embeddableByAll:{defaultValue:!0},downloadable:{defaultValue:!1,disabled:function(){return!n(6).get("me").canEditDownloadable()}},feedable:{defaultValue:!1,disabled:function(){return!n(6).get("me").canEditRssEnabled()}},offlineSyncEnabled:{defaultValue:!0},buyLink:{defaultValue:""},buyTitle:{defaultValue:n(2).Lingua.t("Buy").toString()},commentable:{defaultValue:!0},publicComments:{defaultValue:!0},stats:{defaultValue:!0},labelName:{defaultValue:null},releaseDate:{defaultValue:null}},r={save:{label:n(2).Lingua.t("Save"),pendingLabel:n(2).Lingua.t("Saving"),action:"save"},cancel:{label:n(2).Lingua.t("Cancel"),action:"cancel"}},o={buyLink:[[n(323),{strict:!1}]],buyTitle:[[n(483)]]},a={buyTitle:{fields:[],check:function(){return n(6).get("features").has("custom_buy_title")}}},s={default:"save",cancel:function(){n(324).confirm(n(2).Lingua.t("Are you sure you want to stop your upload? Any unsaved changes will be lost.")).done(this.cancel.bind(this))}};e.exports=new(n(19))(n(689),n(1451),n(690),n(174).withOptions({attr:"title"}),n(485),{applyTo:function(e){e.buttons=t.extend(!0,{},r,e.buttons||{}),e.fields=t.extend(!0,{},i,e.fields||{}),e.constraints=t.extend(!0,{},o,e.constraints||{}),e.constraintConditions=t.extend(!0,{},a,e.constraintConditions||{}),e.actions=t.extend(!0,{},s,e.actions||{})},_permalinkConstraint:null,isEdit:!1,requires:["cancel","getAudible","createAudible","unsetAudible","getAttributesToBeSaved","getAttributesFromModel","onAudibleEdited","onAudibleSaved"],before:{initialize:function(){var e={type:"playlist-upload"===this.resource_type?"playlist":"sound",getResource:function(){return this.getAudible()}};this._permalinkConstraint=new(n(362))(e,this)},setup:function(){this.on("imageDataChanged",this.markFieldsDirty.bind(this,"artwork_url")),this.on("change:commentable",(function(e,t){t||this.set("publicComments",!1)}),this),this.on("change:publicComments",(function(e,t){t&&this.set("commentable",!0)}),this)}},after:{setup:function(e,t){this.isEdit||(this.set("feedable",!!n(6).get("me").get("default_tracks_feedable")),t.inPlaylist||this.on("change:title",u,this))}},around:{getAttributesToBeSaved:function(e){var t=this.get("buyTitle"),i=this.get("buyLink"),r={};return r.embeddable=this.get("embeddableByAll"),r.purchase_url=i?n(28).normalize(i):null,r.purchase_title=t===this.getFieldMetadata("buyTitle").defaultValue?null:t,r.reveal_stats=this.get("stats"),r.label_name=this.get("labelName"),r.release_date=this.get("releaseDate")&&n(15).LinguaLib.dateTimeHelper.format(this.get("releaseDate"),"iso"),n(0).assign(r,e())}},saveEdits:function(){var e=this,t=this.getOrCreateAudible();return t.set(this.getAttributesToBeSaved()),this.onAudibleEdited(t.toJSON(),t.previousAttributes()),t.save().then(this.saveAudibleImage.bind(this,t)).then(this.onAudibleSaved.bind(this),this.onSaveFailed.bind(this)).done((function(){e.trigger("saved"),e.isEdit||function(e){if(e){var t=n(238).parse(e.get("tag_list")||""),i=n(6).get("me"),r={first_tag:t[0]||"",genre:e.get("genre"),length:e.get("duration"),title:e.get("title"),public:e.isPublic(),track_id:e.id,track_link:e.get("permalink_url"),creator_id:i.id,creator_display_name:i.get("username"),creator_link:i.get("permalink_url")};n(116).default.trackUserEvent("upload_track",r)}}(e.getAudible())}))},preSaveCheck:function(){return this.fileStatusCheck()},getOrCreateAudible:function(){var e=this.getAudible();if(e)return e;var t=this.createAudible();return t.on("destroy",(function(){this.unsetAudible(),this.cancel()}),this),t},saveCleanup:function(e){this.markFieldsClean(Object.keys(this.getAttributesFromModel()))},setToFailed:function(e,t){var n="playlist-upload"===this.resource_type?"playlist":"track";t&&"string"!=typeof t&&(t=this.extractErrorMessage(t)),this.set({errorMessage:this.getErrorMessageTemplate(e,n,t)})},increasePermalink:function(e){var t=/-(\d+)$/;return e.match(t)?e.replace(t,(function(e,t){return"-"+(t=parseInt(t,10)+1)})):e+"-1"}});function u(){var e=this;this.trigger("generatingPermalink",!0),l.call(this,n(124).permalink(this.get("title"))).always((function(t){t=t||"",e.set("permalink",t),e.trigger("generatingPermalink",!1)}))}function l(e,t,i){var r=this;return t=t||n(9).defer(),i=i||0,this._permalinkConstraint.check(e,(function(n){n?t.resolve(e):i<10?l.call(r,r.increasePermalink(e),t,++i):t.reject()})),t}}).call(this,n(17))},689:function(e,t,n){(function(t){var i=function(e){var t=n(153).genreLabel(e.id),i=n(153).getEnglishGenreLabel(e.id);return{id:i,value:i,label:t}};function r(e){return!(!e||"NO_GENRE"===e||n(153).isGenreLabel(n(0).unescape(e)))}e.exports=new(n(19))({requires:["getAudible"],merge:{requiredModelAttributes:["title","description","tag_list","artwork_url","sharing","permalink"]},applyTo:function(e){var r,o;t.extend(!0,e,{fields:(r=e.resource_type,o='',{title:{defaultValue:""},description:{defaultValue:""},genre:{defaultValue:"NO_GENRE",datasource:[{value:"NO_GENRE",id:"NO_GENRE"}],groups:[{links:[{id:"NO_GENRE",value:"NO_GENRE",label:n(2).Lingua.t("None")},{id:"CUSTOM_GENRE",value:"CUSTOM_GENRE",label:n(2).Lingua.t("Custom",null,{context:"Genre"})}]},{title:n(2).Lingua.t("Music"),links:n(153).genres("music").map(i)},{title:n(2).Lingua.t("Audio"),links:n(153).genres("audio").map(i)}]},customGenre:{defaultValue:""},tags:{defaultValue:function(){return[]}},artwork_url:{defaultValue:null},sharing:{defaultValue:"public",datasource:[{value:"public",label:n(2).Lingua.t("Public"),sublabel:"playlist-upload"===r||"playlist-edit"===r?n(2).Lingua.t("Anyone will be able to listen to this playlist."):n(2).Lingua.t("Anyone will be able to listen to this track.")},{value:"private",label:n(2).Lingua.t("Private"),sublabel:"playlist-upload"===r||"playlist-edit"===r?n(2).Lingua.t("Only you and people you share a [[[linkStart]]]secret link[[[linkEnd]]] with will be able to listen to this playlist.",{linkStart:o,linkEnd:""}):n(2).Lingua.t("Only you and people you share a [[[linkStart]]]secret link[[[linkEnd]]] with will be able to listen to this track.",{linkStart:o,linkEnd:""})}]},permalink:{defaultValue:""},track_format:{defaultValue:"single-track",datasource:[{value:"single-track",id:"single-track",label:n(2).Lingua.tPending("Single track")},{value:"dj-mix",id:"dj-mix",label:n(2).Lingua.tPending("DJ Mix")}]},caption:{defaultValue:""}})})},around:{getAttributesToBeSaved:function(e){var t=e.apply(this,n(0).rest(arguments)),i=n(0).pick(this.attributes,"title","description","sharing","permalink","genre","caption"),r=this.get("customGenre");return"NO_GENRE"===i.genre?i.genre="":"CUSTOM_GENRE"===i.genre?i.genre=r:i.genre=n(0).unescape(i.genre),i.tag_list=n(238).serialize(this.get("tags")),n(0).assign(i,t)},getAttributesFromModel:function(e){var t=this.getAudible(),i=e.apply(this,n(0).rest(arguments)),o=n(0).pick(t.attributes,"title","description","sharing","permalink","artwork_url","genre","caption");return r(o.genre)?(o.customGenre=o.genre,o.genre="CUSTOM_GENRE"):o.genre?o.genre=n(0).escape(o.genre):o.genre="NO_GENRE",o.tags=n(238).extract(t.attributes),n(0).assign(o,i)}},isCustomGenre:function(){return r(this.get("genre"))}})}).call(this,n(17))},69:function(e,t,n){e.exports=n(1939)()},690:function(e,t,n){(function(t){var i={license:{defaultValue:function(){return o(n(6).get("me"))?n(147).COMMONS:n(147).ALL_RIGHTS},datasource:[{label:n(2).Lingua.t("All Rights Reserved"),value:n(147).ALL_RIGHTS},{label:"Creative Commons",value:n(147).COMMONS}]},creativeCommonsLicense:{defaultValue:function(){return o(n(6).get("me"))?r(n(6).get("me")):n(147).DEFAULT_CC}},attribution:{defaultValue:!0,readOnly:!0},nonCommercial:{defaultValue:!0},nonDerivative:{defaultValue:!1},shareAlike:{defaultValue:!0}};function r(e){return e.get("default_license")}function o(e){var t=r(e);return t&&t!==n(147).ALL_RIGHTS}function a(e,t){t&&this.set("shareAlike",!1)}function s(e,t){t&&this.set("nonDerivative",!1)}function u(e){return"change:"+e}function l(){var e=n(147).serializeCCAttributes(this.attributes);this.set("creativeCommonsLicense",e)}function c(){var e=this.get("license");return e===n(147).ALL_RIGHTS?e:this.get("creativeCommonsLicense")}e.exports=new(n(19))({requires:["getAudible"],merge:{requiredModelAttributes:["license"]},applyTo:function(e){t.extend(!0,e,{fields:i})},before:{setup:function(){var e=["license"].concat(Object.keys(n(147).ccFields));this.listenTo(this,"change:nonDerivative",a).listenTo(this,"change:shareAlike",s).listenTo(this,e.map(u).join(" "),l)}},around:{getAttributesToBeSaved:function(e){var t=e.apply(this,n(0).rest(arguments)),i={license:c.call(this)};return n(0).assign(i,t)},getAttributesFromModel:function(e){var t=this.getAudible(),i=e.apply(this,n(0).rest(arguments)),r=n(147).parse(t.get("license"));return n(0).assign(r,i)}}})}).call(this,n(17))},691:function(e,t,n){(function(t){var i={fileUploadSaved:{defaultValue:!1},fileUploadFailed:{defaultValue:!1},fileUpload:{defaultValue:null}};function r(){var e=this.getFileUpload();e&&e.set("hasBeenSaved",!0),this._fileSaveableDeferred=null,this.set("fileUploadSaved",!0),s.call(this)}function o(){this.markFieldsClean("fileUpload"),this.unsetFileUpload()}function a(e,t){var i=this.getAudible(),r=this.isEdit;switch(t){case n(62).TRANSCODING:r||this._fileSaveableDeferred.resolve();break;case n(62).FAILED:e.previous("status")===n(62).TRANSCODING?(i&&i.set("state",n(21).states.FAILED),this.setToFailed("transcode")):this.setToFailed("upload"),this.set("fileUploadFailed",!0);break;case n(62).COMPLETE:i&&i.set("state",n(21).states.FINISHED),r&&this._fileSaveableDeferred&&this._fileSaveableDeferred.resolve(),s.call(this)}}function s(){var e=this.get("fileUploadSaved"),t=this.getFileUpload(),i=t&&t.get("status")===n(62).COMPLETE;e&&i&&(this.trigger("upload:completed:saved"),this.removeUpload())}e.exports=new(n(19))({requires:["getAudible","isEdit","onAudibleSaved","hasFailed"],_fileSaveableDeferred:null,applyTo:function(e){e.fields=t.extend(!0,{},i,e.fields||{})},after:{onAudibleSaved:function(){var e=this.getAudible(),t=this.getFileUpload();if(e&&this.isEdit&&t&&n(21).prototype.createPlayer.apply(e),t){if("single-audio-upload"===t.resource_type){var i,o=Boolean(null==e||null==(i=e.getSounds()[0])?void 0:i.get("caption"));n(11).trigger("upload_funnel:save"),n(14).trackUploadFunnel({chapter:"save",uploadId:t.getTrackingId(),event:{click_attributes:{has_caption:o}}})}r.call(this)}}},hasUnsavedUpload:function(){var e=this.getFileUpload();return e&&e.get("status")!==n(62).FAILED},setFileUpload:function(e){this.set({fileUpload:e,fileUploadFailed:!1,fileUploadSaved:!1}),this.markFieldsDirty("fileUpload"),e.hold(),this._fileSaveableDeferred=n(9).defer(),this.listenTo(e,"change:status",a).listenTo(e,"destroy",o)},unsetFileUpload:function(){var e=this.getAudible();e&&e.set("state",n(21).states.FINISHED),this.set("fileUpload",null),this._fileSaveableDeferred&&this._fileSaveableDeferred.reject(),this._fileSaveableDeferred=null},getFileUpload:function(){return this.get("fileUpload")},removeUpload:function(){var e=this.getFileUpload();e&&(e.release(),e.remove())},replaceUpload:function(e){this.removeUpload(),this.setFileUpload(e)},getUploadAttributes:function(){var e=this.isEdit,t=this.getFileUpload(),n={};return t&&(n[e?"replacing_uid":"uid"]=t.getUploadId(),n[e?"replacing_original_filename":"original_filename"]=t.getFileName()),n},fileStatusCheck:function(){var e=this.getFileUpload(),t=this.isEdit?n(62).COMPLETE:n(62).TRANSCODING;if(!e)return n(9).resolve();var i=e.get("status");return i1?t-1:0),r=1;r1?t-1:0),r=1;r0&&(this.isEdit||(this.on("change:monetizationEnabled",s,this),s.call(this)),this.on("change:monetizationStartDate change:monetizationEnd",u,this))},onAudibleSaved:function(){!1===this._isCurrentlyMonetizingInAnyTerritory&&!0===this.get("monetizationEnabled")&&n(11).trigger("monetization-request:sent",this.getAudible()),delete this._isCurrentlyMonetizingInAnyTerritory},destroy:function(){this._explicitRightsholderRequiredTerritories&&this._explicitRightsholderRequiredTerritories.release()}},around:{getAttributesToBeSaved:function(e){var t=e.apply(this,[].slice.call(arguments,1)),i=n(6).get("me").isCPPEnabled();return i?n(0).assign(t,{monetization:f(this),rightsholders:h(this)}):t},getAttributesFromModel:function(e){var t=e.apply(this,[].slice.call(arguments,1)),i=this.getAudible(),r=i.get("monetization"),a=i.get("rightsholders")||[],s=n(0).partition(i.getMonetizationTerritories(),(function(e){return n(0).contains(n(60).monetizableCountryCodes(),e)})),u=s[0],l=s[1];return r&&n(0).assign(t,{monetizationEnabled:!!i.getMonetizationTerritories().length,monetizationStart:!!r.start_timestamp,monetizationEnd:!!r.end_timestamp,monetizationStartDate:o(r.start_timestamp),monetizationEndDate:o(r.end_timestamp),monetizationStartTimezone:r.start_timezone,monetizationEndTimezone:r.end_timezone,monetizationWorldwide:r.worldwide,monetizationExcludedTerritories:r.excluded_territories}),this.attributes.monetizationRightsholders=u.map((function(e){return n(0).findWhere(a,{territory:e})||{territory:e}})),this.attributes.rightsholdersInUnknownTerritories=l.map((function(e){return n(0).findWhere(a,{territory:e})})).filter(Boolean),this.attributes.unknownTerritories=l,t}}});function o(e){return e&&n(15).LinguaLib.dateTimeHelper.fromString(e)}function a(e){return e.toISOString()}function s(){var e,t=this.get("monetizationStart"),n=this.get("monetizationEnd");!this.get("monetizationEnabled")||t||n||(this.set("monetizationEnd",!0),this.set("monetizationEndDate",l(((e=new Date).setHours(0,0,0,0),e),this.defaultDurationDays)))}function u(){var e=this.get("monetizationStart"),t=this.get("monetizationEnd"),n=this.get("monetizationStartDate");e&&t&&n&&(this.set("monetizationEndTimezone",this.get("monetizationStartTimezone")),this.set("monetizationEndDate",l(n,this.defaultDurationDays)))}function l(e,t){return(e=new Date(+e)).setUTCDate(e.getUTCDate()+t),e}function c(e,t){if(t){var i=n(60).monetizableCountryCodes().map((function(e){return{territory:e}}));this.set("monetizationRightsholders",i)}else this.set("monetizationRightsholders",[])}function d(e,t){var n=!t||!p();this.setFieldDisabled(["monetizationStartTimezone","monetizationStart","monetizationStartLocalDate","monetizationStartDate","monetizationEndTimezone","monetizationEnd","monetizationEndLocalDate","monetizationEndDate"],n)}function f(e){var t={start_timestamp:null,start_timezone:null,end_timestamp:null,end_timezone:null,territories:[],excluded_territories:[],worldwide:!1};return e.get("monetizationEnabled")&&(e.get("monetizationStart")&&(t.start_timestamp=a(e.get("monetizationStartDate")),t.start_timezone=e.get("monetizationStartTimezone")),e.get("monetizationEnd")&&(t.end_timestamp=a(e.get("monetizationEndDate")),t.end_timezone=e.get("monetizationEndTimezone")),t.worldwide=e.get("monetizationWorldwide"),t.excluded_territories=e.get("monetizationExcludedTerritories"),t.territories=n(0).pluck(e.get("monetizationRightsholders"),"territory").concat(e.get("unknownTerritories")).filter(Boolean)),t}function h(e){var t=e.get("monetizationRightsholders")||[],n=e.get("rightsholdersInUnknownTerritories")||[];return t.concat(n).filter((function(e){return!!e.rightsholder_urn}))}function p(){return n(6).get("me").canEditMonetization()&&n(6).get("me").hasMonetization()}function g(){var e=this.getAudible();return e&&e.get("publisher_metadata")&&e.get("publisher_metadata").isrc||null}function m(){return this._explicitRightsholderRequiredTerritories&&this._explicitRightsholderRequiredTerritories.get("territories")||[]}function v(){var e=Boolean(g.call(this)),t=n(0).intersection(m.call(this),n(60).monetizableCountryCodes());return!e||t.length>0}}).call(this,n(17))},695:function(e,t,n){e.exports=n(82).extend({check:function(e,t){var r=this,o=(e||"").trim();n(0).isEmpty(o)?(this.message="",t(!0)):function(e){var t=new(n(971))({minLength:0,maxLength:1}),i=n(9).defer();return t.check(e,(function(e){e?i.resolve({isValid:e,message:""}):i.reject({isValid:e,message:t.message})})),i}(o).then((function(){return function(e){return function(e){var t=n(28).parse(e).path;if(!t)return n(9).reject("Cound not parse trackUrl:",e);var i=t.split("/"),r=i[1],o=i[2];return n(21).resolve(r,o)}(e).then((function(){return{isValid:!0,message:""}}),(function(e){return{isValid:!1,message:i((e||{}).status)}}))}(o)})).always((function(e){r.message=e.message,t(e.isValid)}))}});function i(e){return n(0).isUndefined(e)?n(2).Lingua.t("Something went wrong"):e<=0?n(2).Lingua.t("Your network connection seems to be disabled. Please check and retry."):404===e?n(2).Lingua.tPending("This track was not found. Please, verify the URL."):n(2).Lingua.t("Something went wrong")}},696:function(e,t,n){(function(t){var i={playlistType:{defaultValue:n(133).defaultReleaseType,datasource:Object.keys(n(133).releaseLabels).map((function(e){return{value:e,label:n(133).releaseLabels[e]}}))},releaseDate:{defaultValue:null}};e.exports=new(n(19))({requires:["getAudible"],requirePrototype:n(83).prototype,merge:{requiredModelAttributes:["set_type","release_date"]},applyTo:function(e){t.extend(!0,e,{fields:i,constraints:{releaseDate:[n(363),[n(73),{message:function(e){return{album:n(2).Lingua.t("Enter a release date for albums."),ep:n(2).Lingua.t("Enter a release date for EPs."),single:n(2).Lingua.t("Enter a release date for singles."),compilation:n(2).Lingua.t("Enter a release date for compilations.")}[e.get("playlistType")]||n(2).Lingua.t("Enter a release date.")}}]]},constraintConditions:{releaseDate:{fields:["playlistType"],constraints:[n(73)],check:function(e){return e!==n(133).defaultReleaseType}}}})},around:{getAttributesToBeSaved:function(e){var t=e.apply(this,n(0).rest(arguments)),i=this.get("releaseDate");return n(0).assign({set_type:n(133).typeToApi(this.get("playlistType")),release_date:i&&n(15).LinguaLib.dateTimeHelper.format(i,"iso")},t)},getAttributesFromModel:function(e){var t=e.apply(this,n(0).rest(arguments)),i=this.getAudible();return n(0).assign({playlistType:n(133).apiToType(i.get("set_type")),releaseDate:i.get("release_date")&&n(15).LinguaLib.dateTimeHelper.fromString(i.get("release_date"))},t)}}})}).call(this,n(17))},700:function(e,t){e.exports={isSoundCloudMail:function(e){return/nosend\.soundcloudmail\.com$/.test(e)}}},71:function(e,t,n){var i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:\/@]*)(?::([^:\/@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["---","scheme","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],o=e.exports={parse:function(e,t){var n,a,s=i.exec(e),u={};for(t||(t=r),n=1;n=0&&t-1?window.atob(i[1]):decodeURI(i[1]);for(var r=/^.*?:(.*?);/.exec(e),o=r?r[1]:void 0,a=0,s=t.length;a1,isJsEnabledBot:/googlebot/i.test(window.navigator.userAgent),desktop:!n(286).mobile&&!n(286).tablet,isIE11:Boolean(n(286).msie&&"11.0"===n(286).version)})},721:function(e,t,n){e.exports={bytesToMB:function(e,t){var i=void 0===t?{}:t,r=i.base,o=void 0===r?n(72).windows?1024:1e3:r,a=i.digits,s=void 0===a?1:a,u=i.unit,l=void 0===u?"MB":u;return(e/Math.pow(o,2)).toFixed(s)+l}}},723:function(e){e.exports=JSON.parse('[{"id":"Pacific/Midway","name":"International Date Line West","utc_offset":-39600},{"id":"Pacific/Midway","name":"Midway Island","utc_offset":-39600},{"id":"Pacific/Pago_Pago","name":"Samoa","utc_offset":-39600},{"id":"Pacific/Honolulu","name":"Hawaii","utc_offset":-36000},{"id":"America/Juneau","name":"Alaska","utc_offset":-32400},{"id":"America/Los_Angeles","name":"Pacific Time (US & Canada)","utc_offset":-28800},{"id":"America/Tijuana","name":"Tijuana","utc_offset":-28800},{"id":"America/Phoenix","name":"Arizona","utc_offset":-25200},{"id":"America/Chihuahua","name":"Chihuahua","utc_offset":-25200},{"id":"America/Mazatlan","name":"Mazatlan","utc_offset":-25200},{"id":"America/Denver","name":"Mountain Time (US & Canada)","utc_offset":-25200},{"id":"America/Guatemala","name":"Central America","utc_offset":-21600},{"id":"America/Chicago","name":"Central Time (US & Canada)","utc_offset":-21600},{"id":"America/Mexico_City","name":"Guadalajara","utc_offset":-21600},{"id":"America/Mexico_City","name":"Mexico City","utc_offset":-21600},{"id":"America/Monterrey","name":"Monterrey","utc_offset":-21600},{"id":"America/Regina","name":"Saskatchewan","utc_offset":-21600},{"id":"America/Bogota","name":"Bogota","utc_offset":-18000},{"id":"America/New_York","name":"Eastern Time (US & Canada)","utc_offset":-18000},{"id":"America/Indiana/Indianapolis","name":"Indiana (East)","utc_offset":-18000},{"id":"America/Lima","name":"Lima","utc_offset":-18000},{"id":"America/Lima","name":"Quito","utc_offset":-18000},{"id":"America/Caracas","name":"Caracas","utc_offset":-16200},{"id":"America/Halifax","name":"Atlantic Time (Canada)","utc_offset":-14400},{"id":"America/La_Paz","name":"La Paz","utc_offset":-14400},{"id":"America/Santiago","name":"Santiago","utc_offset":-14400},{"id":"America/St_Johns","name":"Newfoundland","utc_offset":-12600},{"id":"America/Sao_Paulo","name":"Brasilia","utc_offset":-10800},{"id":"America/Argentina/Buenos_Aires","name":"Buenos Aires","utc_offset":-10800},{"id":"America/Argentina/San_Juan","name":"Georgetown","utc_offset":-10800},{"id":"America/Godthab","name":"Greenland","utc_offset":-10800},{"id":"Atlantic/South_Georgia","name":"Mid-Atlantic","utc_offset":-7200},{"id":"Atlantic/Azores","name":"Azores","utc_offset":-3600},{"id":"Atlantic/Cape_Verde","name":"Cape Verde Is.","utc_offset":-3600},{"id":"Africa/Casablanca","name":"Casablanca","utc_offset":0},{"id":"Europe/Dublin","name":"Dublin","utc_offset":0},{"id":"Europe/Dublin","name":"Edinburgh","utc_offset":0},{"id":"Europe/Lisbon","name":"Lisbon","utc_offset":0},{"id":"Europe/London","name":"London","utc_offset":0},{"id":"Africa/Monrovia","name":"Monrovia","utc_offset":0},{"id":"Etc/UTC","name":"UTC","utc_offset":0},{"id":"Europe/Amsterdam","name":"Amsterdam","utc_offset":3600},{"id":"Europe/Belgrade","name":"Belgrade","utc_offset":3600},{"id":"Europe/Berlin","name":"Berlin","utc_offset":3600},{"id":"Europe/Berlin","name":"Bern","utc_offset":3600},{"id":"Europe/Bratislava","name":"Bratislava","utc_offset":3600},{"id":"Europe/Brussels","name":"Brussels","utc_offset":3600},{"id":"Europe/Budapest","name":"Budapest","utc_offset":3600},{"id":"Europe/Copenhagen","name":"Copenhagen","utc_offset":3600},{"id":"Europe/Ljubljana","name":"Ljubljana","utc_offset":3600},{"id":"Europe/Madrid","name":"Madrid","utc_offset":3600},{"id":"Europe/Paris","name":"Paris","utc_offset":3600},{"id":"Europe/Prague","name":"Prague","utc_offset":3600},{"id":"Europe/Rome","name":"Rome","utc_offset":3600},{"id":"Europe/Sarajevo","name":"Sarajevo","utc_offset":3600},{"id":"Europe/Skopje","name":"Skopje","utc_offset":3600},{"id":"Europe/Stockholm","name":"Stockholm","utc_offset":3600},{"id":"Europe/Vienna","name":"Vienna","utc_offset":3600},{"id":"Europe/Warsaw","name":"Warsaw","utc_offset":3600},{"id":"Africa/Algiers","name":"West Central Africa","utc_offset":3600},{"id":"Europe/Zagreb","name":"Zagreb","utc_offset":3600},{"id":"Europe/Athens","name":"Athens","utc_offset":7200},{"id":"Europe/Bucharest","name":"Bucharest","utc_offset":7200},{"id":"Africa/Cairo","name":"Cairo","utc_offset":7200},{"id":"Africa/Harare","name":"Harare","utc_offset":7200},{"id":"Europe/Helsinki","name":"Helsinki","utc_offset":7200},{"id":"Asia/Jerusalem","name":"Jerusalem","utc_offset":7200},{"id":"Europe/Kiev","name":"Kyev","utc_offset":7200},{"id":"Europe/Minsk","name":"Minsk","utc_offset":7200},{"id":"Africa/Johannesburg","name":"Pretoria","utc_offset":7200},{"id":"Europe/Riga","name":"Riga","utc_offset":7200},{"id":"Europe/Sofia","name":"Sofia","utc_offset":7200},{"id":"Europe/Tallinn","name":"Tallinn","utc_offset":7200},{"id":"Europe/Vilnius","name":"Vilnius","utc_offset":7200},{"id":"Europe/Istanbul","name":"Istanbul","utc_offset":10800},{"id":"Asia/Baghdad","name":"Baghdad","utc_offset":10800},{"id":"Asia/Kuwait","name":"Kuwait","utc_offset":10800},{"id":"Europe/Moscow","name":"Moscow","utc_offset":10800},{"id":"Africa/Nairobi","name":"Nairobi","utc_offset":10800},{"id":"Asia/Riyadh","name":"Riyadh","utc_offset":10800},{"id":"Europe/Moscow","name":"St. Petersburg","utc_offset":10800},{"id":"Europe/Moscow","name":"Volgograd","utc_offset":10800},{"id":"Asia/Tehran","name":"Tehran","utc_offset":12600},{"id":"Asia/Muscat","name":"Abu Dhabi","utc_offset":14400},{"id":"Asia/Baku","name":"Baku","utc_offset":14400},{"id":"Asia/Muscat","name":"Muscat","utc_offset":14400},{"id":"Asia/Tbilisi","name":"Tbilisi","utc_offset":14400},{"id":"Asia/Yerevan","name":"Yerevan","utc_offset":14400},{"id":"Asia/Kabul","name":"Kabul","utc_offset":16200},{"id":"Asia/Yekaterinburg","name":"Ekaterinburg","utc_offset":18000},{"id":"Asia/Karachi","name":"Islamabad","utc_offset":18000},{"id":"Asia/Karachi","name":"Karachi","utc_offset":18000},{"id":"Asia/Tashkent","name":"Tashkent","utc_offset":18000},{"id":"Asia/Kolkata","name":"Chennai","utc_offset":19800},{"id":"Asia/Kolkata","name":"Kolkata","utc_offset":19800},{"id":"Asia/Kolkata","name":"Mumbai","utc_offset":19800},{"id":"Asia/Kolkata","name":"New Delhi","utc_offset":19800},{"id":"Asia/Colombo","name":"Sri Jayawardenepura","utc_offset":19800},{"id":"Asia/Katmandu","name":"Kathmandu","utc_offset":20700},{"id":"Asia/Almaty","name":"Almaty","utc_offset":21600},{"id":"Asia/Dhaka","name":"Astana","utc_offset":21600},{"id":"Asia/Dhaka","name":"Dhaka","utc_offset":21600},{"id":"Asia/Novosibirsk","name":"Novosibirsk","utc_offset":21600},{"id":"Asia/Rangoon","name":"Rangoon","utc_offset":23400},{"id":"Asia/Bangkok","name":"Bangkok","utc_offset":25200},{"id":"Asia/Bangkok","name":"Hanoi","utc_offset":25200},{"id":"Asia/Jakarta","name":"Jakarta","utc_offset":25200},{"id":"Asia/Krasnoyarsk","name":"Krasnoyarsk","utc_offset":25200},{"id":"Asia/Shanghai","name":"Beijing","utc_offset":28800},{"id":"Asia/Chongqing","name":"Chongqing","utc_offset":28800},{"id":"Asia/Hong_Kong","name":"Hong Kong","utc_offset":28800},{"id":"Asia/Irkutsk","name":"Irkutsk","utc_offset":28800},{"id":"Asia/Kuala_Lumpur","name":"Kuala Lumpur","utc_offset":28800},{"id":"Australia/Perth","name":"Perth","utc_offset":28800},{"id":"Asia/Singapore","name":"Singapore","utc_offset":28800},{"id":"Asia/Taipei","name":"Taipei","utc_offset":28800},{"id":"Asia/Ulaanbaatar","name":"Ulaan Bataar","utc_offset":28800},{"id":"Asia/Urumqi","name":"Urumqi","utc_offset":28800},{"id":"Asia/Tokyo","name":"Osaka","utc_offset":32400},{"id":"Asia/Tokyo","name":"Sapporo","utc_offset":32400},{"id":"Asia/Seoul","name":"Seoul","utc_offset":32400},{"id":"Asia/Tokyo","name":"Tokyo","utc_offset":32400},{"id":"Asia/Yakutsk","name":"Yakutsk","utc_offset":32400},{"id":"Australia/Adelaide","name":"Adelaide","utc_offset":34200},{"id":"Australia/Darwin","name":"Darwin","utc_offset":34200},{"id":"Australia/Brisbane","name":"Brisbane","utc_offset":36000},{"id":"Australia/Melbourne","name":"Canberra","utc_offset":36000},{"id":"Pacific/Guam","name":"Guam","utc_offset":36000},{"id":"Australia/Hobart","name":"Hobart","utc_offset":36000},{"id":"Australia/Melbourne","name":"Melbourne","utc_offset":36000},{"id":"Pacific/Port_Moresby","name":"Port Moresby","utc_offset":36000},{"id":"Australia/Sydney","name":"Sydney","utc_offset":36000},{"id":"Asia/Vladivostok","name":"Vladivostok","utc_offset":36000},{"id":"Asia/Magadan","name":"Magadan","utc_offset":39600},{"id":"Pacific/Noumea","name":"New Caledonia","utc_offset":39600},{"id":"Asia/Magadan","name":"Solomon Is.","utc_offset":39600},{"id":"Pacific/Auckland","name":"Auckland","utc_offset":43200},{"id":"Pacific/Fiji","name":"Fiji","utc_offset":43200},{"id":"Asia/Kamchatka","name":"Kamchatka","utc_offset":43200},{"id":"Pacific/Majuro","name":"Marshall Is.","utc_offset":43200},{"id":"Pacific/Auckland","name":"Wellington","utc_offset":43200},{"id":"Pacific/Tongatapu","name":"Nuku\'alofa","utc_offset":46800}]')},727:function(e,t,n){var i=n(60).countryCodes(),r=e.exports={partition:function(e){var t=[],o=[],a=[];return!function(e){return 0===n(0).difference(i,e).length}(e)?n(60).regions().forEach((function(i){var r=function(e){return n(0).pluck(n(60).countries([e.value]),"value")}(i),s=n(0).intersection(r,e),u=n(0).difference(r,e);s.length>.8*r.length?(t=t.concat(i),a=a.concat(u)):o=o.concat(s)})):t.push(r.worldwide()),{regions:t,countries:o.map(n(60).country),exceptions:a.map(n(60).country)}},worldwide:function(){return{title:n(2).Lingua.t("Worldwide"),value:"worldwide"}}}},73:function(e,t,n){e.exports=n(82).extend({nullable:!1,message:n(2).Lingua.t("This field must not be empty"),shouldCheck:function(){return!0},check:function(e,t){t(!(this.shouldCheck.call(this._form)&&function(e){return null==e||0===e.length}(e)))}})},730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e){this.listeners.push(e)},e.prototype.unsubscribe=function(e){var t=this.listeners,n=t.indexOf(e);return-1!==n&&(t.splice(n,1),!0)},e.prototype.dispatch=function(e){var t=[];if(this.listeners.forEach((function(n){try{n(e)}catch(e){t.push(e)}})),t.length)throw t},e}();t.EventDispatcher=i},731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(730),r=function(){function e(){this._onDirty=new i.EventDispatcher,this.isDirty=!1}return e.prototype.onDirty=function(e){this._onDirty.subscribe(e)},e.prototype.setDirty=function(e){this.isDirty=e,e&&this._onDirty.dispatch(void 0)},e}();t.CanBeDirty=r},733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInserted=function(e){return document.body.contains(e)},t.toggleEventListeners=function(e,t,n,i){t.split(" ").forEach((function(t){i?e.addEventListener(t,n,!1):e.removeEventListener(t,n,!1)}))}},734:function(e,t,n){"use strict";function i(e,t){var n=e.mediaDuration/e.duration;return Math.min(n,e.currentTime/e.duration)*t.width/t.scale}Object.defineProperty(t,"__esModule",{value:!0}),t.getPosition=function(e,t){return Math.max(e.paused?0:1,Math.ceil(i(e,t)))},t.getPixelOffset=i},737:function(e,t,n){function i(){return(i=Object.assign||function(e){for(var t=1;ti?s:r.contains(o)?a:null}(e);return t&&t(),!t}))).length||(window.clearInterval(i),i=null)}),50))}))}(e,{root:u,timeout:c})).always((function(){return function(e,t){a=n(0).reject(a,{element:e,root:t})}(e,u)}))},loadSandbox:l,insertScriptIntoIframe:d,isSrcdocSupportedInBrowser:function(){return!!("srcdoc"in window.document.createElement("iframe"))}},a=[];function s(e,t){var n=r.createElement("script"),i=!("isAsync"in t)||t.isAsync;return n.async=i,n.src=e,c(n,t.attributes),n}function u(e){return void 0===e&&(e=window.document),e.getElementsByTagName("head")[0]}function l(){return n(9).promise((function(e,t){var n=r.createElement("iframe");c(n,{sandbox:"allow-scripts allow-same-origin",width:0,height:0,frameborder:0}),n.onload=function(t){return e(t.target)},n.onerror=t,r.getElementsByTagName("body")[0].appendChild(n)}))}function c(e,t){n(0).each(t,(function(t,n){return e.setAttribute(n,t)}))}function d(e,t,i,r){void 0===i&&(i={}),void 0===r&&(r={onScriptLoad:n(0).noop});var a=u(e.contentWindow.document),l=s(t,{isAsync:!1,attributes:i});return o.onScriptLoad(l,(function(){return r.onScriptLoad(l,e.contentWindow)}),r.onError),a.appendChild(l),e}},752:function(e,t,n){var i=[37,38,39,40,9,35,36];e.exports={makeReadOnly:function(e){n(72).ios?e.on("keydown",(function(e){if(e.isMetaKey()&&!e.shiftKey||n(0).include(i,e.which))return!0;e.preventDefault()})):e.attr("readOnly","readOnly")}}},753:function(e,t,n){e.exports={fetchColorsFromUrl:function(e){if(/^data\:/.test(e)){var t=n(9).defer(),o=new window.Image;return o.onload=function(){t.resolve(r(o))},o.src=e,t.promise()}return function(e){var t=n(9).defer();if(e&&n(86).blob){var i=new window.XMLHttpRequest;i.onload=function(){200!==this.status?t.reject():t.resolve(this.response)},i.onerror=t.reject,i.open("GET",e,!0),i.responseType="blob",i.send()}else t.reject();return t.promise()}(e).then(i)}};function i(e){var t=window.URL.createObjectURL(e),i=n(9).defer(),o=new window.Image;return o.onload=function(){i.resolve(r(o)),window.URL.revokeObjectURL(t)},o.src=t,i.promise()}function r(e){try{return(new(n(2084))).getPalette(e,4)}catch(e){return[[255,51,0],[255,85,0],[0,0,0],[102,102,102]]}}},760:function(e,t,n){e.exports={getContextText:function(e,t,i){var r,o=t&&n(6).get("me").id===t.id,a=null!=(r=null==t?void 0:t.get("username"))?r:null;switch(e.type){case"conversation":return n(2).Lingua.t("From a conversation with [[username]]",{username:a});case"stream":return n(2).Lingua.t("From your stream");case"search":case"search:albums":case"search:high_tier":case"search:playlists":case"search:top_results":case"search:tracks":return n(2).Lingua.t("From search results");case"tags-sound":case"tags-playlist":return n(2).Lingua.t("From [[tag]]",{tag:e.resourceId});case"user-albums":return o?n(2).Lingua.t("From your albums"):n(2).Lingua.t("From [[username]]’s albums",{username:a});case"user-profile":return o?n(2).Lingua.t("From your profile"):n(2).Lingua.t("From [[username]]’s profile",{username:a});case"user-playlists":return o?n(2).Lingua.t("From your playlists"):n(2).Lingua.t("From [[username]]’s playlists",{username:a});case"user-likes":return o?n(2).Lingua.t("From your likes"):n(2).Lingua.t("From [[username]]’s likes",{username:a});case"user-track_likes":return o?n(2).Lingua.t("From your liked tracks"):n(2).Lingua.t("From [[username]]’s liked tracks",{username:a});case"user-tracks":case"user-sounds":return o?n(2).Lingua.t("From your tracks"):n(2).Lingua.t("From [[username]]’s tracks",{username:a});case"user-reposts":return o?n(2).Lingua.t("From your reposts"):n(2).Lingua.t("From [[username]]’s reposts",{username:a});case"user-liked-albums":return n(2).Lingua.t("From your liked albums");case"charts":var s=n(153).taglines(e.chartKind,e.genre);return n(2).Lingua.t("From [[[display]]]",{display:s?s.short:void 0});case"recommender":return n(2).Lingua.t("From related tracks for [[title]]",{title:t.get("title")});case"home":return n(2).Lingua.t("From the home page");case"sets-for-sound":return n(2).Lingua.t("From playlists containing [[title]]",{title:t.get("title")});case"history":return n(2).Lingua.t("From your history");case"single":var u=i.playlist||i.systemPlaylist;return u?n(2).Lingua.t("From [[title]]",{title:u.get("title")}):"";case"stations":var l=t.get(t.getTitleAttribute());return t.get("type")===n(129).types.ARTIST?n(2).Lingua.t("From artist station [[title]]",{title:l}):n(2).Lingua.t("From track station [[title]]",{title:l});default:return"system-playlist"===e.resourceType?n(2).Lingua.t("From [[title]]",{title:t.get("title")}):""}},getContextModelInfo:function(e){var t={resource_id:e.resourceId};switch(e.resourceType){case"user":return[new(n(33))(t),{requiredAttributes:["username"]}];case"sound":return[new(n(21))(t),{requiredAttributes:["title"]}];case"playlist":return[new(n(53))(t),{requiredAttributes:["title"]}];case"station":return[new(n(129))({id:e.resourceId}),{requiredAttributes:["title"]}];case"system-playlist":return[new(n(91))({id:e.resourceId}),{requiredAttributes:["title"]}];default:return null}}}},767:function(e,t){e.exports={ERROR:"banana-bus-error",OPEN:"banana-bus-open",DATA:"banana-bus-data",ACTION:"banana-bus-action",DISPOSE:"banana-bus-dispose",PUBLISH:"banana-bus-publish",PUBLISH_EVENT:"banana-bus-publish-event"}},77:function(e,t){e.exports={all:"all",none:"none",one:"one"}},774:function(e,t){function n(e){return Array.prototype.slice.call(e)}e.exports={whenElementAdded:function(e,t){return new window.MutationObserver((function(i){i.forEach((function(i){n(i.addedNodes).forEach((function(n){return e.forEach((function(e){return function(e,t){var n=[];e instanceof window.HTMLElement&&(e.matches(t)&&n.push(e),n.push.apply(n,e.querySelectorAll(t)));return n}(n,e).forEach(t)}))}))}))}))},toArray:n}},775:function(e,t,n){(function(t){var i,r=new(n(68))("callouts");r.prune(Object.keys(n(904))),n(11).on("connect:logout",r.reset,r);e.exports={shouldDisplay:function(e){return!i&&!r.get(e)&&o(e).shouldDisplay()},display:function(e,r,u){void 0===u&&(u={});var l=t.extend(!0,{},o(e),u),c="callout"===l.viewType?function(e,t){var i=new(n(776))(n(0).defaults({$targetEl:t},e.viewOptions));return i.once("dismissed",a).once("closed",s),n(9).all([n(9).delay(500),n(75).whenInserted(t[0],{timeout:1e4})]).then((function(){i.disposed||(window.document.body.appendChild(i.el),i.render())})),i}(l,r):"modal"===l.viewType?function(e){var t=new(n(49))(e.viewOptions);return t.once(n(49).Events.CLOSED,(function(){a(),s()})),n(9).delay(500).then((function(){t.disposed||t.open()})),t}(l):"compact-callout"===l.viewType?function(e,t){var i=new(n(2360))(n(0).defaults({$targetEl:t},e.viewOptions));return i.once("dismissed",a).once("closed",s),n(9).all([n(9).delay(500),n(75).whenInserted(t[0],{timeout:1e4})]).then((function(){i.disposed||(window.document.body.appendChild(i.el),i.render())})),i}(l,r):null;return i={id:e,config:l,view:c},c}};function o(e){return n(904)[e]}function a(){r.set(i.id,!0)}function s(){i=null}}).call(this,n(17))},776:function(e,t,n){(function(t){var i=window.document,r=t(i);e.exports=n(8).extend({className:"callout g-z-index-callout",css:n(2361),template:n(2363),defaults:{title:null,body:null,$targetEl:null,delay:0,fixed:!1,width:300},element2selector:{bubble:".callout__bubble"},events:{"click .callout__button button":s,"click .calloutBackground":s},states:{active:"m-active",hidden:"m-hidden"},_hasRendered:!1,_renderRequested:!1,setup:function(e){var t=e.fixed;this.getTargetDimensions=n(0).memoize(this.getTargetDimensions),this.close=n(0).once(this.close),this.dismiss=n(0).once(this.dismiss),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.listenTo(n(84),"resize:debounced",o),t?this.$el.css("position","fixed"):this.listenTo(n(84),"scroll:debounced",a)},dispose:function(){this.stopListening(n(84)),this.trigger("closed")},hasData:function(){return this._renderRequested=!0,this.getTargetDimensions.cache={},!!l.call(this,this.options.fixed?0:-80)},renderDecorate:function(){var e=this;this._hasRendered=!0,r.on("keydown",this.onDocumentKeydown),this.toggleState("hidden",!0).toggleState("active",!0),this.getTargetDimensions.cache={},this.getElement("bubble").css("width",this.options.width),this.positionBubble(),this.subviews.background.once("animationDone",(function(){e.addTimeout((function(){e.toggleState("hidden",!1)}),500)}))},teardown:function(){r.off("keydown",this.onDocumentKeydown)},getTargetDimensions:function(){var e=this.options.$targetEl[0],t=this.options.$targetEl.offset(),n=t.top,i=t.left,r=e.offsetHeight;return{x:i,y:n,w:e.offsetWidth,h:r}},close:function(){var e=this;return this.stopListening(n(84)),this.subviews.background?(this.toggleState("hidden",!0),n(9).all([this.subviews.background.animateOut(),n(9).delay(300)]).then((function(){e._dispose()}))):(this._dispose(),n(9).resolve())},dismiss:function(){this.trigger("dismissed"),this.close()},onDocumentKeydown:function(e){e.which===n(56).ESC&&this.dismiss()},positionBubble:function(){var e=this.getElement("bubble");e.length&&e.position({my:"left-50 bottom-8",at:"top center",of:this.options.$targetEl,offset:"0 -45px"})},updatePosition:function(){this.positionBubble(),this.subviews.background&&this.subviews.background.onCanvasResize()}});function o(){this.getTargetDimensions.cache={},this.positionBubble()}function a(){u.call(this)}function s(){this.dismiss()}function u(){this._renderRequested&&(this._hasRendered?!1===l.call(this,50)&&this.dismiss():l.call(this,-80)&&this.render())}function l(e){void 0===e&&(e=0);var t=this.getTargetDimensions(),n=t.x,r=t.y,o=t.h;if(0===n&&0===r)return null;var a=i.body.scrollTop||i.documentElement.scrollTop,s=a+window.innerHeight;return r>a-e&&r+o=1&&e.deltaT>0&&this.trigger("animationDone")},queueFrame:function(e){(!e||e.t<1||Math.abs(e.scrollDeltaTop)>1||Math.abs(e.scrollDeltaLeft)>1)&&this.requestFrame()}});function m(e,t,i){return function(r){return i((n(80).clamp(r,e,t)-e)/(t-e))}}function v(e){return(1-Math.cos(e*Math.PI))/2}function y(e,t,n,i,r,o,a){o<=40?function(e,t,n,i){e.arc(t,n,i,0,d,!1)}(e,t+i/2,n+r/2,o*a):function(e,t,n,i,r,o){var a=25,s=i/2,d=r/2,f=-s-18+a,h=-f,p=-d-15+a,g=-p;e.save(),e.translate(t+s,n+d),e.scale(o,o),e.moveTo(f,p-a),e.arc(h,p,a,c,0,!1),e.arc(h,g,a,0,u,!1),e.arc(f,g,a,u,l,!1),e.arc(f,p,a,l,c,!1),e.restore()}(e,t,n,i,r,a)}},79:function(e,t,n){var i=new(n(68))("promoted-persistent"),r={addToSet:["add_to_set_click"],follow:["follow_click"],like:["like_click"],play:["sound_play","SCAudioStart"],skip:["sound_skip"],finish:["sound_finish"],impression:["impression"],adImpression:["impression"],repost:["repost_click"],share:["share_click"],adClick:["ad_click"],soundClickThrough:["sound_click","ad_click"],sponsorClickThrough:["sponsor_click"],userClickThrough:["profile_click","ad_click"],purchaseClickThrough:["purchase_click"],pause:["SCAudioPause"],resume:["SCAudioResume"],first_quartile:["SCAudioFirstQuartile"],second_quartile:["SCAudioSecondQuartile"],third_quartile:["SCAudioThirdQuartile"]},o={search:"promotedSearch",suggestedUsers:"promotedUsers",uploadTakeover:"promotedUploadTakeover",uploadText:"promotedUploadText"},a={dashboxListen:"listen",dashboxNotifications:"notifications",dashboxStream:"stream",dashboxTags:"tags",dashboxUserProfile:"profile"},s=[],u=e.exports={getAdUrl:function(e,t){var i=n(0).assign(u._getPromotedQueryParams(),t),r=o[e];return n(45).getUrlForEndpoint(r,{},i)},lineId:"",creativeId:"",disableFrequencyCapping:!1,getAudioAdsUrl:function(e){var t=u._getPromotedQueryParams();if((null==e?void 0:e.trackId)&&(t.track_id=e.trackId),n(32).isCategoryEnabled(n(32).CookieCategory.Targeting)){var i=n(1206).userId();void 0!==i&&(t.rubicon_user_id=i);var r=n(654).getUserData();r&&(t.dax_segment_ids=r.segments,t.dax_user_id=r.uid);var o=n(653).getAdswizzId();o&&(t.aw_listener_id=o)}return(n(6).get("features").has("force_ad_testing")||n(6).get("features").has("internal_qa"))&&(this.lineId=n(28).getQueryParam("lineid")||this.lineId,this.creativeId=n(28).getQueryParam("creativeid")||this.creativeId,this.disableFrequencyCapping="true"===n(28).getQueryParam("disable_frequency_capping")||this.disableFrequencyCapping,this.lineId&&(t.lineid=this.lineId),this.creativeId&&(t.creativeid=this.creativeId),this.disableFrequencyCapping&&(t.requires_frequency_cap_duration=!0)),n(45).getUrlForEndpoint("audioAds",{},t)},getDashboxUrl:function(e,t){var i=u._getPromotedQueryParams();i.locale=t;var r={path:"/dashbox/"+a[e],query:i};return n(28).stringify(r,n(6).get("api_v2_host"))},getAdUrlQuery:function(){var e=u._getPromotedQueryParams();return e.user_urn=n(6).get("me").getUrn(),e.promoted_playlist=!0,{query:e}},extractPromotedAttrs:function(e){if(null==e||null==e.isPromoted?void 0:e.isPromoted())return e.pick("ad_urn","campaign","promoted_by","promoted_by_urn","tracking")},parseResponse:function(e){var t=n(0).first(e.promoted);return l(t)?(c(t),t):{}},parseDashboxResponse:function(e){return l(e)&&c(e),(null==e?void 0:e.data)?e.data.dashbox:e},parseStreamResponse:function(e){return(null==e?void 0:e.collection)&&e.collection.filter((function(e){return e.promoted})).forEach((function(e){l(e.promoted)&&c(e.promoted),e.promoted&&(e.promoted.ad_urn&&(e.ad_urn=e.promoted.ad_urn),e.promoted.tracking&&(e.tracking=e.promoted.tracking),e.campaign="promoted",delete e.promoted),e.user&&(e.promoted_by=e.user,e.promoted_by_urn=n(26).generate(e.promoted_by.kind,e.promoted_by.id),delete e.user)})),e},trackEvent:function(e,t){var n="impression"===e?u._sendRequestOnce:u._sendRequest;u._getTrackingUrls(e,t).forEach(n)},_getTrackingUrls:function(e,t){var i=r[e]||[],o=(null==t?void 0:t.tracking)||{},a=n(0).flatten(i.map((function(e){return o[e]||[]})));return n(0).isArray(a)?a:[a]},_getPromotedQueryParams:function(){var e=n(0).reduce(n(6).get("experiments").getVariantIds(),(function(e,t){return e.concat(t)}),[]),t={sc_a_id:i.get("sc_a_id"),device_locale:n(15).LinguaLib.getLocale()&&n(15).LinguaLib.getLocale().replace(/_/g,"-"),variant_ids:e.join(",")},r=n(32).isTcfv2Enabled()?n(32).getConsentString():n(420).getConsentString(),o=n(32).isTcfv2Enabled()?n(32).getTcfVersion():n(420).getTcfVersion();return r&&o&&(t.consent_string=r,t.tcf_version=o),t},_sendRequest:function(e){(new window.Image).src=e},_sendRequestOnce:function(e){-1===s.indexOf(e)&&(u._sendRequest(e),s.push(e))}};function l(e){return!!(null==e?void 0:e.sc_a_id)}function c(e){i.set("sc_a_id",e.sc_a_id)}},8:function(e,t,n){(function(t){var i=e.exports=n(35).View.extend(n(451),n(1125),{ModelClass:null,requiredAttributes:null,observedAttributes:null,css:null,template:n(0).noop,LoadingView:null,loadingViewArgs:null,loadingTemplate:function(){return""},element2selector:null,_element2selector_cache:null,defaults:{bulkFetch:0},bubbleEvents:null,disposed:!1,disposeFinished:!1,subviews:null,reactSubviews:null,_subviews_keys:null,_lastEventId:null,constructorArguments:null,_whenInsertedDefer:null,_whenVisibleDefer:null,_deferreds:null,_dataSources:null,initialize:function(e){var t;e=this.options=o(this.constructor,e||{}),this.constructorArguments=n(0).clone(e),(e.resource_id||e._id)&&this.ModelClass&&(this.model=t=this.getModel({resource_id:e.resource_id,resource_type:e.resource_type,_id:e._id})),this._deferreds=[],this.subviews=[],this._subviews_keys=[],this._dataSources=[],this.reactSubviews=[],this.resetElementCache(),this._setupBubbleListeners(),this._setup(e),t&&this.model!==t&&t.release(),this.model?this.addDataSource(this.model,{observedAttributes:this.observedAttributes,requiredAttributes:this.requiredAttributes}):this.collection&&this.addDataSource(this.collection)},_setup:function(e){this.setup(e)},setup:n(0).noop,scheduleDisposal:function(){var e=this;this.disposed=!0,n(661).scheduleIdleTask((function(){return e._dispose()}))},_dispose:function(){if(!this.disposeFinished){for(this._teardown(),this.dispose(),this.disposed=!0,this.disposeFinished=!0;this._deferreds.length;)"number"==typeof this._deferreds[0]?window.clearTimeout(this._deferreds.shift()):this._deferreds[0].reject("viewDisposed");for(this.off(),this.stopListening();this._dataSources.length;)c.call(this,this._dataSources.shift());this.destroyElement(),["el","$el","model","collection","constructorArguments"].forEach((function(e){this[e]&&(this[e]=null)}),this)}},destroyElement:function(){this.$el.remove()},dispose:n(0).noop,_teardown:function(){this.disposeSubviews(),this.disposeReactSubviews(),this._whenInsertedDefer&&(this._whenInsertedDefer.reject(),this._whenInsertedDefer=null),this.teardown(),this.resetElementCache()},teardown:n(0).noop,disposeSubviews:function(){for(;this.subviews.length;)this.subviews.pop()._dispose();this.subviews=[],this._subviews_keys=[]},disposeReactSubviews:function(){this.reactSubviews.forEach((function(e){return n(144).unmountComponentAtNode(e)})),this.reactSubviews=[]},getModel:function(e){var t,n,i,r,o,a=e._id,s=e.resource_id,u=e.resource_type,l=e.options;if(void 0!==s)i={resource_id:s,resource_type:u},n=this.ModelClass.getClass?this.ModelClass.getClass(i):this.ModelClass;else if(void 0!==a){var c;(c={})[this.ModelClass&&this.ModelClass.prototype&&this.ModelClass.prototype.idAttribute||"id"]=a,c.resource_type=u,i=c,n=this.ModelClass.getClass?this.ModelClass.getClass(i):this.ModelClass}else 0;(t=n.getInstance(i,l))?t.hold():((o={})[n.prototype.idAttribute||"id"]=a||s,r=o,u&&(r.resource_type=u),t=new n(r));return t},_setupBubbleListeners:function(){var e,t;for(t in this.bubbleEvents)this.bubbleEvents.hasOwnProperty(t)&&(e=this.bubbleEvents[t],n(0).isFunction(e)||(e=this[e]),this.on(t,e,this))},addDeferred:function(e){var t=this;return"number"==typeof e?this._deferreds.push(e):e.reject&&"pending"===e.state()&&(e.always((function(){var n=t._deferreds.indexOf(e);n>-1&&t._deferreds.splice(n,1)})),this._deferreds.push(e)),e},addTimeout:function(e,t){return this.addDeferred(window.setTimeout(e,t))},addDataSource:function(e,t){var i;e instanceof n(23)||e instanceof n(528)?(t=n(0).assign({isModel:!0},function(e,t){var n,i,r=h(e,t.requiredAttributes),o=h(e,t.observedAttributes),a=(r||[]).concat(o||[]).reduce((function(e,t){var n="string"==typeof t?t.split("."):[t],i=n[0],r=n[1];n[2];return r&&(e||(e={}),e[i]=[r].concat(e[i]||[])),e}),null);a?(n=g(r),i=g(o)):(n=r,i=o);return{requiredAttributes:n,observedAttributes:i,nestedAttributes:a}}(e,t||{})),i=a):(t=n(0).assign({isCollection:!0},t),i=l);var r={source:e,options:t};return this._dataSources.push(r),i.call(this,!0,r),e},removeDataSource:function(e){this._dataSources.some((function(t,n){if(t.source===e)return c.call(this,t),this._dataSources.splice(n,1),!0}),this)},findDataSourceInfo:function(e){return n(0).find(this._dataSources,(function(t){return t.source===e}))},addReactSubview:function(e){this.reactSubviews.indexOf(e)<0&&this.reactSubviews.push(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)return this._subviews_keys[t]&&delete this.subviews[this._subviews_keys[t]],e._parentView=null,this.subviews.splice(t,1),void this._subviews_keys.splice(t,1)},getAncestorSubviews:function(){var e=[];return this.subviews.forEach((function(t){e.push(t),e=e.concat(t.getAncestorSubviews())})),e},getElement:function(e){return this.disposed?t():(void 0===this._element2selector_cache[e]&&(this._element2selector_cache[e]=this.$(this.element2selector[e])),this._element2selector_cache[e])},resetElementCache:function(){this._element2selector_cache={}},render:function(){var e,t,i=this.hasData(),r=this.getTemplate(i);return r&&(e=this._getTemplateData(i),n(412).render(r.bind(this),e,this.el),n(412).subviews(this)),i?(this.renderDecorate(),(t=this._dataSources.filter(p)).length&&this.addTimeout((function(){n(0).invoke(n(0).pluck(t,"source"),"fetch")}),0)):(!r&&this.LoadingView&&this.addSubview(new this.LoadingView(n(0).result(this,"loadingViewArgs")),"loading").render().$el.appendTo(this.el),this.fetchData().fail(this.removeLoader.bind(this))),this},hasData:function(){return!this._dataSources.some(this.missingRequiredData,this)},fetchData:function(e){var t=this;void 0===e&&(e=function(e){for(;e;){var t=e.options.fetchPriority;if(null!=t)return t;e=e._parentView}return n(173).RequestPriorities.MEDIUM}(this));var i,r,o=this._fetchDeferred;return o&&"pending"===o.state()||((r=(i=this._dataSources.filter(this.missingRequiredData,this)).length)?(this._fetchDeferred=o=r>1?n(9).settled(i.map((function(n){return t.fetchDataFromSource(n,e)}))):this.fetchDataFromSource(i[0],e),o.always((function(){t._fetchDeferred=null}))):o=n(9).resolve()),o},missingRequiredData:function(e){var t=e.source,n=e.options;if(n.isModel){var i=f(e);return!!i.length&&!t.hasDataForView(i)}return!t.hasDataForView(n)},fetchDataFromSource:function(e,t){void 0===t&&(t=n(173).RequestPriorities.MEDIUM);var i=e.source,r=this.options.bulkFetch;return e.options.isCollection&&r?i.bulkFetch(r):i.fetch({attrs:d(e),reset:!0,priority:t})},renderDecorate:n(0).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()||t:this.collection&&(t=this.getCollectionData()||t),t._options=n(0).clone(this.options),e&&(t=this.getTemplateData(t)||t),t},getTemplateData:n(0).noop,getCollectionData:function(){return this.collection.toJSON()},getModelData:function(){return this.model.toJSON()},bubble:function(e,t){var i=new(n(1223))(t);return r.call(this,e,i),i},getContextData:function(){return this.bubble("contextrequest").data},removeLoader:function(){var e=this.subviews.loading;e&&(e._dispose(),this.removeSubview(e))},scrollIntoView:function(e){var i=void 0===e?{}:e,r=i.position,o=void 0===r?"auto":r,a=i.force,s=void 0!==a&&a,u=i.topOffset,l=void 0===u?20:u,c=i.bottomOffset,d=void 0===c?20:c,f=i.duration,h=void 0===f?300:f,p=i.internalSelector,g=p?this.$(p):this.$el,m=g.offset(),v=n(9).defer(),y=0;if(!m)return v.reject();var _=t(".g-main-scroll-area").first();_.length||(_=t("#content"),y=46);var b=t(window.document).scrollTop(),w=t(window).height()-47,k=b,A=b+w,C=g.height(),S=Math.floor(m.top),E=Math.floor(S+C);if(!(S>k&&Ew||"auto"===o&&S=4&&t.owns(e)){var i=new Date(e.get("created_at")),r=Date.now(),o=new Date(r-n(31).MS_IN_HOUR),a=new Date(r-n(31).MS_IN_WEEK);return i<=o&&i>=a}return!1},isValidIndex:function(e,t){return e>-1&&t.length>=4},isValidUserSounds:function(e){var t=e.length&&e.first().get("created_at"),i=new Date(t);return!n(6).get("me").isPremium()&&e.length>4&&i>=new Date(Date.now()-n(31).MS_IN_WEEK)&&i<=new Date(Date.now()-n(31).MS_IN_DAY)},alreadySeenListenUpsell:function(){return 1===i.get("listen-upsell")},alreadySeenUserUpsell:function(){return 1===i.get("stream-upsell")?(i.unset("stream-upsell"),this.dismissUserUpsell(),!0):1===i.get("user-upsell")},dismissListenUpsell:function(){i.set("listen-upsell",1)},dismissUserUpsell:function(){i.set("user-upsell",1)},startPlayTracking:function(){n(22).isLoggedIn()||n(11).on("audio:play",o,this)},stopPlayTracking:function(){n(11).off("audio:play",o,this)},showSignupTeaser:function(e){new(n(2206))({width:625,soundUrn:e}).open(),i.set("signup-teaser-modal",1)}};function o(e){var t=n(453).numSessionPlays(),r=1===i.get("signup-teaser-modal"),o=e.userInitiated;!n(22).isLoggedIn()&&!r&&t>2&&o&&this.showSignupTeaser(e.sound.getUrn())}},893:function(e,t,n){e.exports=n(308).extend({includeFooter:".l-sidebar-right",css:n(946),template:n(1728)})},9:function(e,t,n){var i=n(17).Deferred().resolve(),r=n(17).Deferred().reject(),o=e.exports={defer:function(){return n(17).Deferred()},promise:function(e){var t=o.defer(),n=t.promise();return e.call(n,t.resolve,t.reject),n},deferFrom:function(e){var t=o.defer();return e.then(t.resolve,t.reject),t},settled:function(e){if(null==e?void 0:e.length){var t=n(17).Deferred(),r=e.length,o=Array(r),a=!1,s=function(){a=!0};return e.forEach((function(e,n){e.fail(s).always((function(){for(var e=arguments.length,i=new Array(e),s=0;s1?i-1:0),o=1;o=n?o.reject():o.delay(t).then((function(){return i(r+1)}))}(0)},anyTruthy:function(e){return a(!0,e)},allTruthy:function(e){return a(!1,e)}};function a(e,t){void 0===t&&(t=[]);var n=o.defer();return t.forEach((function(t){t.then((function(t){!!t===e&&n.resolve(e)}))})),o.settled(t).then((function(){n.resolve(!e)}),(function(){n.reject()})),n.promise()}},928:function(e,t,n){var i=/^\s*([^@]+)@(\S+\.[a-z]{2,})\s*$/i;e.exports=n(82).extend({message:n(2).Lingua.t("This email address is invalid."),check:function(e,t){t(!e||i.test(e))}})},941:function(e,t,n){var i=n(10),r=n(2357);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},946:function(e,t,n){var i=n(10),r=n(1727);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},a=(i(r,o),r.locals?r.locals:{});e.exports=a},96:function(e,t,n){e.exports=n(82).extend({maxLength:100,message:function(){return n(2).Lingua.t("[[maxLength]] characters max",{maxLength:this.maxLength})},userPerceived:!1,check:function(e,t){t((this.userPerceived?n(124).countLetters(e):e.length)<=this.maxLength)}})},964:function(e,t,n){e.exports=new(n(19))({override:{model:n(384)},audibleAt:function(e){var t=this.at(e);return t&&t.getSound()}})},967:function(e,t,n){(function(t){e.exports=n(158).extend({upload:function(e){var t,r=n(287).createAbortController(),o=this.presign(e,r.signal),a=(t=this.uploadFile,function(){var e=n(9).defer(),i=e.promise(),r=e.notify,o=n(0).toArray(arguments).concat(r),a=t.apply(this,o);return a.then(e.resolve,e.reject),i.abort=a.abort,i}),s=this.resolveWith,u=o.then((function(t){return n(457)((function(){return a(e,t,r.signal)}),i,{abort:r.signal}).then((function(){return s(t)}))}));return u.abort=r.abort,u},presign:function(e,t){var i={filename:e.name,filesize:r(e)};return n(45).callEndpoint("uploadPolicyCreate",null,null,null,i,{abort:t}).then((function(e){return e.body}))},uploadFile:function(e,i,r,o){var a=i.url,s=i.method,u=[/^content-length$/i,/^host$/i,/^expect$/i],l=n(0).pick(i.headers,(function(e,t){return!u.some((function(e){return t.match(e)}))}));return t.ajax({url:a,type:s,data:e,processData:!1,contentType:"application/octet-stream",dataType:"xml",headers:l,timeout:0,progress:o,abort:r})},resolveWith:function(e){return e.uid}});function i(e){return 400===e.status&&"RequestTimeout"===(n=e.responseXML,t(n).find("Error Code").text());var n}function r(e){try{return e.size}catch(e){return-1}}}).call(this,n(17))},969:function(e,t,n){e.exports=n(82).extend({constraints:[],check:function(e,t){var i=this,r=this.constraints.map((function(e){return n(358).hydrateConstraintDefinition.call(i,e)})).map((function(t){return t.validate(i._form,e)}));n(9).settled(r).then((function(){for(var e=arguments.length,i=new Array(e),r=0;rthis.maxLength)return this.message=n(2).Lingua.tp("No more than [[maxLength]] URL allowed","No more than [[maxLength]] URLs allowed",this.maxLength,{maxLength:this.maxLength}),void t(!1);if(r.length0)return this.message=n(2).Lingua.t("[[url]] is not a valid SoundCloud track URL",{url:o[0]}),void t(!1);t(!0)}})},972:function(e,t,n){var i=[{emitter:n(40),event:"repost",getInstance:function(e,t){var n=t.origin;return e.options.userId===n},handler:function(e){var t,n=e.state,i=e.target,r="sound"===e.targetType?"track":"playlist",o=r+"-repost";n?this.add({type:o,created_at:(new Date).toISOString(),track:"track"===r?{id:i,kind:r}:null,playlist:"playlist"===r?{id:i,kind:r}:null},{at:0}):(t=this.find((function(e){return e.get("type")===o&&e.get(r).id===i})))&&this.remove(t)}}];e.exports=new(n(19))(n(183).withOptions({events:i}),{override:{model:n(537)},audibleAt:function(e){var t=this.at(e);return t&&t.getAudible()}})},982:function(e,t,n){var i={add:!0,remove:!0,merge:!0};e.exports=n(47).extend({model:null,setup:n(0).noop,_prepareModel:function(e){return e},_removeReference:n(0).noop,parse:function(e){return(null==e?void 0:e.collection)||e},indexOfEquivalentModel:function(e,t,n){return(t||this.models).indexOf(e,n)},getKeyForModel:function(e){return e},toJSON:function(){return this.models.slice()},set:function(e,t){var r=this.indexOfEquivalentModel.bind(this);t=n(0).defaults({},t,i),e=this.parse(e,t);for(var o=(e=n(0).isArray(e)?e.slice():[e]).length;o--;){var a=e[o];(r(a,e.slice(o+1))>-1||r(a)>-1)&&e.splice(o,1)}this.length+=e.length;var s=null!==t.at&&void 0!==t.at?t.at:this.models.length;return Array.prototype.splice.apply(this.models,[s,0].concat(e)),this.comparator&&this.sort({silent:!0}),t.silent||e.forEach((function(e){this.trigger("add",e,this,t)}),this),this},remove:function(e,t){var i,r,o,a;for(t||(t={}),i=0,r=(e=n(0).isArray(e)?e.slice():[e]).length;i=0&&(this.models.splice(o,1),this.length--,t.silent||(t.index=o,this.trigger("remove",a,this,t)));return this}})},984:function(e,t,n){e.exports=n(308).extend({includeFooter:".l-sidebar-left",css:n(1729),template:n(1731)})}}]);
//# sourceMappingURL=http://ent/web-sourcemaps/0-764a220c.js.map