(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{10:function(e,t,n){var r=n(25).Deferred().resolve(),i=n(25).Deferred().reject(),o=e.exports={defer:function(){return n(25).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&&e.length){var t=n(25).Deferred(),i=e.length,o=Array(i),a=!1,s=function(){a=!0};return e.forEach((function(e,n){e.fail(s).always((function(){for(var e=arguments.length,r=new Array(e),s=0;s1?r-1:0),o=1;o=n?o.reject():o.delay(t).then((function(){return r(i+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()}},1011:function(e,t,n){var r=n(12),i=n(1905);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},1018:function(e,t){e.exports={default:"default",passwordReset:"password-reset"}},103:function(e,t){e.exports={precise:function(e,t){return t=Math.pow(10,t||0),Math.round(e*t)/t},clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},roundToNearest:function(e,t){return Math.round(e/t)*t},quickHash:function(e){return String(e).split("").reduce((function(e,t,n){return e+31*t.charCodeAt(0)*n}),7)},mod:function(e,t){return(e%t+t)%t}}},1031:function(e,t,n){e.exports=new(n(23))({override:{model:n(472)},audibleAt:function(e){var t=this.at(e);return t&&t.getSound()}})},1037:function(e,t,n){e.exports=n(118).extend({constraints:[],check:function(e,t){var r=this,i=this.constraints.map((function(e){return n(443).hydrateConstraintDefinition.call(r,e)})).map((function(t){return t.validate(r._form,e)}));n(10).settled(i).then((function(){for(var e=arguments.length,r=new Array(e),i=0;i-1||i(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 r,i,o,a;for(t||(t={}),r=0,i=(e=n(1).isArray(e)?e.slice():[e]).length;r=0&&(this.models.splice(o,1),this.length--,t.silent||(t.index=o,this.trigger("remove",a,this,t)));return this}})},1052:function(e,t,n){e.exports=n(492).extend({includeFooter:".l-sidebar-left",css:n(1907),template:n(1909)})},106:function(e,t,n){var r={sessionStorage:function(){try{return void 0!==window.sessionStorage&&i(window.sessionStorage)}catch(e){return!1}},localStorage:function(){try{return void 0!==window.localStorage&&i(window.localStorage)}catch(e){return!1}},dragDrop:function(){var e=window.document.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},webSocket:function(){return window.WebSocket},WebWorker:function(){return window.Worker},svg:function(){return window.document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")},touch:function(){try{return window.hasOwnProperty("ontouchstart")}catch(e){return!1}},typedArrays:function(){return window.hasOwnProperty("Uint8Array")},pushState:function(){var e;return null==(e=window.history)?void 0:e.pushState},formData:function(){return window.FormData},corsImg:function(){return!1},MutationObserver:function(){return window.MutationObserver},getUserMedia:function(){return window.navigator.getUserMedia},audioTabIndicator:function(){return n(97).chrome||n(97).gecko},blob:function(){try{return new window.Blob}catch(e){return!1}},sendBeacon:function(){return window.navigator.sendBeacon},doNotTrack:function(){var e=window,t=e.navigator,r=e.doNotTrack;return n(1).contains(["1",1,"yes"],t.doNotTrack||t.msDoNotTrack||r)},flagEmoji:function(){return n(1206)("🇦🇹")}};e.exports=n(1).reduce(r,(function(e,t,n){return e[n]=!!t(),e}),{});function i(e){try{if(e.getItem){var t=Date.now();return e.setItem(t,t),e.removeItem(t),!0}}catch(e){}return!1}},1061:function(e,t,n){"use strict";function r(e){return!!(e&&e.scrollHeight>e.clientHeight)}n.r(t),n.d(t,"isLineClamped",(function(){return r}))},107:function(e,t,n){e.exports=n(1220)()},108:function(e,t,n){e.exports=n(28).extend(n(1616),n(1618),n(1619),{isPopulated:function(){return!0},destroy:function(e){return this.trigger("destroy",this,this.collection,e),n(10).resolve()}},{hashFn:function(e,t){return(null==e?void 0:e.id)||(null==t?void 0:t.resource_id)}})},110:function(e,t,n){var r=[],i=null,o=!1;e.exports={initialize:function(){if(o)return;try{(i=new(n(2834).Notifier)({projectId:n(6).get("airbrake_project_id"),projectKey:n(6).get("airbrake_project_key"),environment:"production",remoteConfig:!1,instrumentation:{onerror:!1,fetch:!1}})).addFilter((function(e){var t;if(e.errors.some((function(e){return e.message.includes("The user aborted a request.")&&e.type.includes("AbortError")})))return null;if(e.errors.some((function(e){return e.message.includes("Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text'")&&e.type.includes("InvalidStateError")||e.message.includes("Cannot read properties of null (reading 'apply')")&&e.type.includes("TypeError")})))return null;if(e.errors.some((function(e){return e.message.includes("File error: Corrupted")&&e.type.includes("NS_ERROR_FILE_CORRUPTED")})))return null;if(e.params.shouldCountError=null==(t=e.params.shouldCountError)||t,(n(6).get("features").has("v2_count_frontend_errors")||n(6).get("features").has("internal_qa"))&&e.params.shouldCountError&&(c(),l()),!n(35).isCategoryEnabled(n(35).CookieCategory.Performance))return null;try{return!n(6).get("features").has("v2_airbrake")&&!n(6).get("features").has("internal_qa")||n(6).get("versionOutOfDate")?null:e}catch(t){return e}})),i.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 i.notify(e)}))}catch(e){window.console.error("Could not initialize airbrake",e)}o=!0,r=[]},notify:function(e){i?i.notify(e):o||r.push(e)}};var a,s,u,c=(a=0,s=!0,u=n(1).throttle((function(){s&&(n(44).callEndpoint("countFrontendErrors",null,{errors:a,app_version:n(6).get("app_version")}).then((function(e){var t=e.status;s=204===t})),a=0)}),3e4),function(){a++,u()}),l=function(){var e=0,t=!0,r=n(1).throttle((function(){t&&(n(44).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")&&r()}}()},116:function(e,t,n){"use strict";n.r(t),n.d(t,"ENABLE_CROSSFADE_FLAG",(function(){return f})),n.d(t,"CUTOVER_UPLOAD_FEATURE_GATE_NAME",(function(){return h})),n.d(t,"isCrossfadeOptOutCookieSet",(function(){return p})),n.d(t,"isCrossfadeFeatureFlagEnabled",(function(){return g})),n.d(t,"isCrossfadeEnabled",(function(){return m})),n.d(t,"isCrossfadeEnabledForCutoverFeature",(function(){return v})),n.d(t,"isV2LayoutEnabled",(function(){return y})),n.d(t,"isCrossfadeEnabledForCutoverFeatureName",(function(){return _})),n.d(t,"isCrossfadeUploadEnabled",(function(){return b})),n.d(t,"setCrossfadeOptOutState",(function(){return k}));var r=n(68),i=n.n(r),o=n(17),a=n.n(o),s=n(6),u=n.n(s),c=n(331),l=n.n(c),d=n(226),f="v2_enable_crossfade",h="v2_cutover_crossfade_upload";function p(){return Boolean(i.a.get(l.a.WEBI_OPT_OUT_COOKIE_NAME))}function g(){return Boolean(u.a.get("features").has(f))}function m(){return g()&&a.a.isLoggedIn()}function v(e){return m()&&(e||!p())}function y(){return d.isFeatureGateEnabled("webi_v2_layout")}function _(e){return d.isFeatureGateEnabled(e).then((function(e){return v(e)}))}function b(){return m()}function k(e){e?i.a.set({name:l.a.WEBI_OPT_OUT_COOKIE_NAME,value:"true"}):i.a.unset({name:l.a.WEBI_OPT_OUT_COOKIE_NAME})}},118:function(e,t,n){var r=e.exports=n(214).extend({nullable:!0,validate:function(e,t){var r=n(10).defer();return null==t?this.result(r,this.nullable):this.check(t,this.result.bind(this,r)),r}});n(443).applyTo(r.prototype)},119:function(e,t,n){e.exports=n(118).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(157).countLetters(e):e.length)<=this.maxLength)}})},1208:function(e,t,n){e.exports=function(){"use strict";function e(e){this.items=[],this.rankFn=e}var t=e.prototype;return t.peek=function(){return this.items[0]},t.enqueue=function(e){n(176).insertAtIndex(this.items,e,n(176).sortedLastIndex(this.items,e,this.rankFn))},t.dequeue=function(){return this.items.shift()},t.remove=function(e){n(176).removeElement(this.items,e)},t.clear=function(){this.items=[]},t.size=function(){return this.items.length},e}()},1210:function(e,t,n){(function(t){e.exports=new(n(23))({requirePrototype:n(28).prototype,createSnapshot:function(e){return new r(this,e)}});function r(e,r){var i=n(1).reduce(r,(function(r,i){var o=e.get(i);return n(1).isObject(o)?r[i]=t.extend(!0,{},o):e.attrExists(i)&&(r[i]=o),r}),{}),o=n(1).reject(r,(function(t){return e.attrExists(t)}));this.rollback=function(){n(1).each(o,(function(t){e.unset(t)})),e.set(i)}}}).call(this,n(25))},1211:function(e,t,n){var r="V2",i=new RegExp("^"+r+"::(\\S+?)::(\\S+)");window.addEventListener("storage",(function(e){var t={dontPersist:!0};if(!e.key)return void n(1).each(n(1).values(o.local).concat(n(1).values(o.session)),(function(e){e.reset(t)}));i.lastIndex=0;var r=i.exec(e.key)||[void 0,void 0,void 0],a=r[1],u=r[2];if(a&&u){var c=o[a][u];if(c){var l=s(c),d=Object.keys(l);n(1).each(l,(function(e,n){c.set(n,e,t)})),n(1).difference(c.keys(),d).forEach((function(e){c.unset(e,t)}))}}}),!1);var o={local:{},session:{}};e.exports=new(n(23))({storage:null,keyName:null,type:null,namespace:null,around:{initialize:function(e,t,i){if(void 0===i&&(i="local"),o[i][t])return o[i][t];o[i][t]=this,e(),this.type=i,this.namespace=t,this.storage=function(e){return"local"===e&&n(106).localStorage?window.localStorage:"session"===e&&n(106).sessionStorage?window.sessionStorage:null}(i),this.keyName=function(e,t){return[r,e,t].join("::")}(i,t),this._store=s(this),this.length=n(1).keys(this._store).length}},after:{set:function(e,t,n){null!=n&&n.dontPersist||a(this)},unset:function(e,t){null!=t&&t.dontPersist||a(this)},reset:function(e){null!=e&&e.dontPersist||a(this)}},dispose:function(){this.storage&&this.storage.removeItem(this.keyName),this.reset({dontPersist:!0}),delete o[this.type][this.namespace]},write:function(){a(this)}});function a(e){var t=e.storage,n=e.keyName,r=e._store;if(t)try{return t.setItem(n,JSON.stringify(r)),!0}catch(e){return!1}return!1}function s(e){var t=e.storage,n=e.keyName;if(t)try{return JSON.parse(t.getItem(n)||"{}")}catch(e){}return{}}},1212:function(e,t,n){e.exports=new(n(23))(n(1).assign({around:{set:function(e,t,n,r){var i,o=null==r?void 0:r.silent;o||(i=this.get(t));var a=e(t,n,r);return o||i===n||this.trigger(t,{prev:i,current:n}),a},unset:function(e,t,n){var r,i=null==n?void 0:n.silent;i||(r=this.get(t));var o=e(t,n);return i||void 0===r||this.trigger(t,{prev:r,current:void 0}),o},reset:function(e,t){var r;null!=t&&t.silent||(r=this.reduce((function(e,t,n){return void 0!==t&&(e[n]=t),e}),{},this));var i=e(t);return r&&n(1).each(r,(function(e,t){this.trigger(t,{prev:e,current:void 0})}),this),i}}},n(42).Events))},1213:function(e,t,n){e.exports=n(53).extend({model:n(177),setup:function(){this.id=n(348).v4(),this.setToFullyPopulated()}})},1214:function(e,t,n){e.exports=new(n(23))({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,r=t.onCleanup,i=t.onIncrement,o=t.onDecrement;this._counts=Object.create(null),this._totalCount=0,this._autoCleanup=!!n,this.onCleanup=r,this.onIncrement=i,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),r=this.countFor(e);this.unset(e),this.set(t,n),this.increment(t,r-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=i(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{i(this._killList).forEach(r,this),this._killList=this._zeroList}while(this._killList.size);return this._zeroList=new Set,e||this.endSweep(),!0}});function r(e){var t=this.onCleanup;if(t){var n=this.get(e);null!=n&&t.call(n,n,e)}this.unset(e)}function i(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}},1216:function(e,t,n){e.exports=function(e){var t=!1,r=!1,i=n(1).assign({peek:function(){if(!r&&e)return{audible:e,metadata:e.getQueueMetadataAt(0)}},resume:function(){if(!t&&!r&&e){var n=e;e=null,t=!0,i.trigger("data",n,n.getQueueMetadataAt(0)),i.trigger("end")}},pause:function(){},isEnded:function(){return t},dispose:function(){i.off(),r=!0}},n(42).Events);return i}},1217:function(e,t,n){e.exports=function(e){var t,i=[],o=!0,a=!1,s=!1,u=!1;function c(){for(;!o&&i.length;)d.trigger("data",i.shift(),t);o||0!==i.length||(e.isEnded()?l():e.resume())}function l(){u||(u=!0,d.trigger("end"))}e.on("data",(function(n,o){e.pause(),t=o,function e(t){r(t)?(i.push.apply(i,t.getSounds()),c()):s||(s=!0,function(e){return e.fetch()}(t).always((function(){s=!1})).then((function(){return e(t)}),c))}(n)})),e.on("end",(function(){s||0!==i.length||l()}));var d=n(1).assign({pause:function(){o=!0},peek:function(){if(!a){if(i[0])return{sound:i[0],metadata:t};var n=e.peek();if(n){var o=n.audible,s=n.metadata;if(r(o)){var u=o.getSounds();if(u.length)return{sound:u[0],metadata:s}}}}},resume:function(){!o||a||u||(o=!1,s||c())},isEnded:function(){return u},dispose:function(){a=!0,o=!0,d.off(),e.dispose()}},n(42).Events);return d};function r(e){return!n(1).contains(["playlist","system-playlist"],e.resource_type)||e.attrExists("tracks")}},1218:function(e,t,n){e.exports=function(e,t,r,i,o,a){void 0===r&&(r=n(1).identity),void 0===i&&(i=1),void 0===o&&(o=0),void 0===a&&(a=n(1).constant(!0));var s,u=!1,c=o,l=[],d=[],f=1,h=!!t&&a(t),p=function(){return s||(s=n(10).promise((function(n){e.on("data",(function(r,i){var o=a(r,i);u||t&&r!==t?o&&u?(d.push({sound:r,index:c++,metadata:i}),m()):o&&l.push({sound:r,metadata:i}):(u=!0,e.pause(),l.forEach((function(e,t){e.index=t-l.length})),o&&d.push({sound:r,index:c++,metadata:i}),n())})),e.on("end",(function(){y||0!==d.length?m():(_.trigger("end"),y=!0)}))}))),u||e.resume(),s};function g(){if(1===d.length)return d.pop();var e=Math.floor(Math.random()*d.length);return d.splice(e,1)[0]}function m(){if(h&&!v&&d.length){var t=d.shift();_.trigger("data",r(t)),h=!1}for(;!v&&d.length&&(e.isEnded()||d.length===f);)_.trigger("data",r(g()));e.isEnded()?y||0!==d.length||(_.trigger("end"),y=!0):y||v||e.resume()}var v=!0,y=!1,_=n(1).assign({shuffle:function(){f=i},unshuffle:function(){return f=1,d.splice(0,d.length).map(r)},pause:function(){v=!0,u&&e.pause()},peek:function(){return e.peek()},resume:function(){v=!1,p().then(m)},isEnded:function(){return e.isEnded()&&0===d.length}},n(42).Events),b=!0,k=!1,A=n(1).assign({pause:function(){b=!0},resume:function(){var e=this;b&&(b=!1,p().then((function(){for(;!b&&l.length;)e.trigger("data",r(l.pop()));k||0!==l.length||(e.trigger("end"),k=!0)})))},isEnded:function(){return k}},n(42).Events);return{next:_,prev:A,dispose:function(){A.off(),_.off(),e.dispose()}}}},1219:function(e,t,n){e.exports={fromSDK:function(e,t){var i=n(6).get("features").has("internal_qa")?"BCFFBE3E":"B143C57E",o=t.framework.CastContext.getInstance(),a=new t.framework.RemotePlayer,s=new t.framework.RemotePlayerController(a),u=null,c=null,l="disconnected",d=!1,f=!1,h=null,p=n(1).assign({},n(42).Events,{loadQueue:function(e,t,r,i,o){var a={revision:null,credentials:r?{authorization:"OAuth "+r}:null,queue:e,current_index:t};f?(n(137).log("enqueuing load request",a),h=a):(n(137).log("sending load request",a),v(a,i,o),h=null)},getContext:function(){return o},getSafeDeviceName:function(){var e=o.getCurrentSession(),t=e?e.getCastDevice():null;return t?t.friendlyName:null},getLastRemoteQueue:function(){return c},isRemoteQueueEmpty:function(){return!c||0===c.queue.length},isPaused:function(){return a.isPaused},isConnected:function(){return a.isConnected},isAvailable:function(){return d},getRepeatMode:function(){var t=r(o);if(!t)return null;switch(t.repeatMode){case e.cast.media.RepeatMode.OFF:return n(90).none;case e.cast.media.RepeatMode.ALL:return n(90).all;case e.cast.media.RepeatMode.SINGLE:return n(90).one;case e.cast.media.RepeatMode.ALL_AND_SHUFFLE:return n(90).all;default:return null}},setRepeatMode:function(t){var i=r(o);i&&i.queueSetRepeatMode(t===n(90).all?e.cast.media.RepeatMode.ALL:t===n(90).one?e.cast.media.RepeatMode.SINGLE:e.cast.media.RepeatMode.OFF)},getVolume:function(){return a.volumeLevel},isMuted:function(){return a.isMuted},setVolume:n(1).throttle((function(e){var t=o.getCurrentSession();t&&e!==p.getVolume()&&(n(137).log("sending volume: ",e),t.setVolume(e))}),300),setMuted:n(1).debounce((function(e){var t=o.getCurrentSession();t&&e!==p.isMuted()&&(n(137).log("sending mute: ",e),t.setMute(e))}),300)});function g(e){l!==e&&(l=e,u=null,c=null,d=!1,f=!1,h=null,"disconnected"===e?(n(137).log("session change: end"),n(11).trigger("googleCast:end"),n(11).trigger("googleCast:audioRestored")):"connected"===e&&(n(137).log("session change: start"),n(11).trigger("googleCast:start",p),n(11).trigger("googleCast:audioHijack")))}function m(e){d!==e&&((d=e)?(n(137).log("cast is available"),n(107).updateRemoteVolumeAndMuted({volume:a.volumeLevel,muted:a.isMuted}),n(11).trigger("googleCast:available")):(n(137).log("cast is unavailable"),n(11).trigger("googleCast:unavailable")))}function v(t,r,i){void 0===r&&(r=!0),void 0===i&&(i=0);var s=o.getCurrentSession();if(s)if(t.revision=u,f=!0,a.isMediaLoaded)n(137).log("media session present - sending queue update"),s.sendMessage("urn:x-cast:com.soundcloud.chromecast",{type:"UPDATE_QUEUE",payload:t});else{var c=new e.cast.media.MediaInfo(t.queue[t.current_index].urn,"audio/mpeg"),l=new e.cast.media.LoadRequest(c);l.autoplay=r,l.currentTime=i/1e3,l.customData=t,s.loadMedia(l)}else n(137).log("aborting queue load – no active session")}return t.framework.CastContext.getInstance().setOptions({receiverApplicationId:i,autoJoinPolicy:e.cast.AutoJoinPolicy.ORIGIN_SCOPED}),o.addEventListener(t.framework.CastContextEventType.SESSION_STATE_CHANGED,(function(e){e.session;switch(e.sessionState){case t.framework.SessionState.SESSION_RESUMED:case t.framework.SessionState.SESSION_STARTED:g("connected"),window.setTimeout((function(){p.trigger("queue:ready")}),1e3);break;case t.framework.SessionState.SESSION_ENDED:g("disconnected")}})),o.addEventListener(t.framework.CastContextEventType.CAST_STATE_CHANGED,(function(e){switch(e.castState){case t.framework.CastState.NO_DEVICES_AVAILABLE:m(!1);break;case t.framework.CastState.NOT_CONNECTED:case t.framework.CastState.CONNECTING:case t.framework.CastState.CONNECTED:m(!0)}})),s.addEventListener(t.framework.RemotePlayerEventType.ANY_CHANGE,(function(e){e.type;var t=e.field,r=e.value,i=a.mediaInfo,o=null==i?void 0:i.customData,s=null==o?void 0:o.queue_status;s&&function(e){e.revision!==u&&(u=e.revision,c={queue:e.queue,currentIndex:e.current_index},h?n(137).log("silent queue update",c,u):(n(137).log("trigger queue update",c,u),p.trigger("queue:update",c)),f=!1,h&&(n(137).log("sending pending load",h),v(h),h=null))}(s),"connected"===l&&("volumeLevel"===t&&(n(137).log("Remote volume: ",r),n(107).updateRemoteVolumeAndMuted({volume:r})),"isMuted"===t&&(n(137).log("Remote isMuted: ",r),n(107).updateRemoteVolumeAndMuted({muted:r})))})),p.listenTo(n(107),"change:remote",(function(e){var t=e.volume,n=e.muted;p.setVolume(t),p.setMuted(n)})),p}};function r(e){var t=e.getCurrentSession();return t&&t.getMediaSession()||null}},1220:function(e,t,n){e.exports=function(){var e=1,t=!1,r=1,i=!1,o=!1;var a=n(1).assign({},n(42).Events,{loadFromSettings:function(e){void 0===e&&(e=!1);var t=n(172)&&n(172).size()>1,r={storeVolume:n(140).get("volume"),storeMuted:n(140).get("muted")},i=r.storeVolume,o=void 0===i?1:i,a=r.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?r:e},getMuted:function(){return o?i:t},changeVolume:function(e){var t=n(103).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,c=void 0===u?a.getVolume():u,l=s.muted,d=void 0===l?a.getMuted():l,f=s.triggers,h=s.updateRemote,p=void 0===h?o:h,g=n(103).clamp(c,0,1),m=!!d,v=a.getVolume(),y=a.getMuted();!p||r===g&&i===m?p||e===g&&t===m||(e=g,t=m,a.trigger("change:local",{volume:g,muted:m}),null!=f&&f.broadcast&&(n(140).set("volume",n(103).precise(g,1)),n(140).set("muted",m),n(11).broadcast({excludeThis:!0},"volume",{volume:g,muted:m}))):(r=g,i=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}},1225:function(e,t,n){var r=n(746);function i(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)}i.prototype.get_child=function(e){return e?this.right:this.left},i.prototype.set_child=function(e,t){e?this.right=t:this.left=t},o.prototype=new r,o.prototype.insert=function(e){var t=!1;if(null===this._root)this._root=new i(e),t=!0,this.size++;else{var n=new i(void 0),r=0,o=0,c=null,l=n,d=null,f=this._root;for(l.right=this._root;;){if(null===f?(f=new i(e),d.set_child(r,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=l.right===c;f===d.get_child(o)?l.set_child(h,s(c,!o)):l.set_child(h,u(c,!o))}var p=this._comparator(f.data,e);if(0===p)break;o=r,r=p<0,null!==c&&(l=c),c=d,d=f,f=f.get_child(r)}this._root=n.right}return this._root.red=!1,t},o.prototype.remove=function(e){if(null===this._root)return!1;var t=new i(void 0),n=t;n.right=this._root;for(var r=null,o=null,c=null,l=1;null!==n.get_child(l);){var d=l;o=r,r=n,n=n.get_child(l);var f=this._comparator(e,n.data);if(l=f>0,0===f&&(c=n),!a(n)&&!a(n.get_child(l)))if(a(n.get_child(!l))){var h=s(n,l);r.set_child(d,h),r=h}else if(!a(n.get_child(!l))){var p=r.get_child(!d);if(null!==p)if(a(p.get_child(!d))||a(p.get_child(d))){var g=o.right===r;a(p.get_child(d))?o.set_child(g,u(r,d)):a(p.get_child(!d))&&o.set_child(g,s(r,d));var m=o.get_child(g);m.red=!0,n.red=!0,m.left.red=!1,m.right.red=!1}else r.red=!1,p.red=!0,n.red=!0}}return null!==c&&(c.data=n.data,r.set_child(r.right===n,n.get_child(null===n.left)),this.size--),this._root=t.right,null!==this._root&&(this._root.red=!1),null!==c},e.exports=o},1226:function(e,t,n){var r=n(746);function i(e){this.data=e,this.left=null,this.right=null}function o(e){this._root=null,this._comparator=e,this.size=0}i.prototype.get_child=function(e){return e?this.right:this.left},i.prototype.set_child=function(e,t){e?this.right=t:this.left=t},o.prototype=new r,o.prototype.insert=function(e){if(null===this._root)return this._root=new i(e),this.size++,!0;for(var t=0,n=null,r=this._root;;){if(null===r)return r=new i(e),n.set_child(t,r),ret=!0,this.size++,!0;if(0===this._comparator(r.data,e))return!1;t=this._comparator(r.data,e)<0,n=r,r=r.get_child(t)}},o.prototype.remove=function(e){if(null===this._root)return!1;var t=new i(void 0),n=t;n.right=this._root;for(var r=null,o=null,a=1;null!==n.get_child(a);){r=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,r.set_child(r.right===n,n.get_child(null===n.left)),this._root=t.right,this.size--,!0)},e.exports=o},1227:function(e,t,n){var r=e.exports={waitForPlayThreshold:function(e,t){if("history"===t.sourceInfo.type)return n(10).reject();var i=function(e,t){var n,r=null!=(n=e.playlist)?n:e.systemPlaylist;if(r)return{resourceType:r.resource_type,resourceId:r.resource_id,resourceUrn:r.getUrn()};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(10).reject():r.whenSoundPlayedMinimum(e).then((function(){return{soundId:e.id,playContext:i}}))},getMinimumPlayTime:function(){return 1e3},whenSoundPlayedMinimum:function(e){var t=n(10).defer(),i=window.setTimeout((function(){e.off(null,o),e.off(null,a),e.isPlaying()?t.resolve():t.reject()}),r.getMinimumPlayTime());function o(){window.clearTimeout(i),t.resolve()}function a(){window.clearTimeout(i),t.reject()}return e.once("finish",o),e.once("pause",a),t.promise()}}},1228:function(e,t){var n;e.exports=function(e){return e&&(n=e),n}},1229:function(e,t,n){e.exports=function(e){var t=n(6).get("me");t?t.set(e,{parse:!0}):(t=new(n(84))(e,{isMe:!0,parse:!0}),n(6).set("me",t)),e&&(t.lastFetchTime=Date.now())}},1245:function(e,t){var n=["free","consumer-mid-tier","consumer-high-tier"],r={adFree:[!1,!0,!0]};e.exports={get:function(e,t){var i=r[t];if(i)return i[n.indexOf(e)]}}},1246:function(e,t){e.exports={user:{likes:{permalink_url:":permalink_url/likes",uri:":uri/favorites"},spotlight:{permalink_url:":permalink_url",uri:":uri/spotlight"}}}},1247:function(e,t,n){e.exports=function(e){var t=new(n(183))(e);n(6).set("features",t),null!=e&&e.features&&(t.lastFetchTime=Date.now())}},1248: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 r=n.replace("feature.",""),i="false"!==e[n]&&"0"!==e[n];return t[r]=i,t}),{})}}},1249:function(e,t){var n;e.exports=function(e){return e&&(n=e),n}},1250:function(e,t,n){e.exports=new(n(23))({requirePrototype:n(28).prototype,defaults:{isPrivate:function(){return"private"===this.get("sharing")},isPublic:function(){return!this.isPrivate()},extractSecretToken:n(1).noop},around:{url:function(e,t){var r=this.get("secret_token"),i=e(t);return r&&this.isPrivate()?n(32).modify(i,{query:{secret_token:r}}):i},parse:function(e,t){var r;return"string"==typeof this.baseUrl&&(r=n(32).parse(this.baseUrl).query.secret_token),r||(r=this.extractSecretToken(t)),r&&(t.secret_token=r),e(t)}}})},1251:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t1?t-1:0),i=1;i-1}))}e.exports=new(n(23))({requires:["ownerAttributes","ownerUrl","attrExists"],around:{fetch:function(e,t){var i=null==t?void 0:t.attrs,o=n(1).clone(t),a=n(6).get("me").owns(this),s=i&&r.call(this,i);return a&&s&&(o.url=n(32).modify(this.ownerUrl(),{query:{representation:"owner"}}),o.batch=!1),e.call(this,o)}}})},1253:function(e,t,n){var r=2*n(41).MS_IN_SECOND,i=30*n(41).MS_IN_SECOND;e.exports=new(n(23))({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(265))({tolerance:1,baseDelay:r,maxDelay:i,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,r){var i,o=this._polling,a={};3===arguments.length&&o.callbacks[e]?(i=[],a[e]=[],o.callbacks[e].forEach((function(n){n.callback===t&&n.context===r?a[e].push(n):i.push(n)})),o.callbacks[e]=i,o.callbacks[e].length||delete o.callbacks[e]):e?(a={attr:o.callbacks[e]||[]},delete o.callbacks[e]):(a=o.callbacks,o.callbacks={}),n(1).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)}})},1259:function(e,t,n){e.exports={buildConnectionEventManager:function(){var e=[],t=!1;return{handleConnectionEvents:function(t){t.onConnectionRequired.subscribe(r),t.onConnectionRecovered.subscribe(r),t.onChange.subscribe((function(n){n.dead&&(e.splice(e.indexOf(t),1),r())})),e.push(t),r()}};function r(){var r=e.some((function(e){return e.isConnectionRequired()}));r!==t&&(t=r,n(11).trigger(r?"error:audio_no_connection":"error:audio_connection_recovered"))}}}},1260:function(e,t,n){e.exports={buildPlayer:function(e){var t=e.dataPromise,r=e.audioPerformanceReporter,i=e.errorReporter,o=n(10).defer();return t.then((function(e){var t=e.duration,a=e.trackUrn;if("pending"===o.state())return new(n(94).Player)({controllers:[new(n(760).ChromecastPlayerController)({castContext:n(154).getInstance().then((function(e){return e.getContext()}))})],duration:t,streamUrlRetriever:new(n(469).StreamUrlRetriever)({urlsWithRenditions:[{url:a,rendition:n(94).renditions.maestroChromecast}]}),audioPerformanceReporter:function(e){return r(n(1).assign({trackUrn:a,entityType:"soundcloud"},e))},errorReporter:function(e){return i(n(1).assign({trackUrn:a,entityType:"soundcloud"},e))},preloadingEnabled:!0,logger:n(225)})})).then(o.resolve,o.reject),o}}},1261:function(e,t,n){var r;function i(e){return"SNIP"===e}function o(){switch(n(504).getCurrentQuality()){case n(209).HQ:return"high";case n(209).SQ:return"standard";default:return}}function a(e){return{snippet:i(e),qualities:n(504).getCurrentQuality()===n(209).HQ?[n(94).Quality.HQ,n(94).Quality.SQ]:[n(94).Quality.SQ]}}e.exports={buildPlayer:function(e){var t=e.dataPromise,i=e.audioPerformanceReporter,s=e.errorReporter,u=e.audioReporter,c=e.checkpointInterval,l=n(10).defer();return t.then((function(e){if(r)return e;var t=n(761).requestSupportedDRMProtocols().then((function(t){return r=t,e})),i=new Promise((function(e,t){return setTimeout((function(){return t()}),5e3)}));return n(10).deferFrom(Promise.race([t,i])).promise().fail((function(){return r=[],e}))})).then((function(e){var t,d=e.secretToken,f=e.duration,h=e.getPolicy,p=e.onPolicyOrMediaChange,g=e.getMediaPayload,m=e.trackUrn,v=e.trackId,y=e.getTrackAuthorization;if("pending"===l.state()){var _=n(1).isFunction(y)?y:n(1).noop,b={request:function(e){return e.url=n(32).modify(e.url,{query:{stage:n(68).get("stage")}}),n(362).stringLoader.request(e)}},k=n(17).getAuthToken(),A=new(n(548).StreamUrlRetriever)({loader:b,clientId:n(6).get("client_id"),trackId:v,secretToken:d,requestAuthorization:k?"OAuth "+k:null,mediaPayload:g(),trackAuthorization:_()}),w=[new(n(758).HLSMSEPlayerController)(n(365).fading),new(n(224).HTML5PlayerController)(n(365).fading)];if((null==(t=r)?void 0:t.length)>0){var C=n(6).get("drm_license_host");w.push(new(n(761).HLSJSPlayerController)(n(365).fading,r,C))}var S=new(n(94).Player)({controllers:w,duration:f,streamUrlRetriever:A,getURLOpts:a(h()),streamUrlsExpire:!0,audioPerformanceReporter:function(e){return i(n(1).assign({trackUrn:m,entityType:"soundcloud",audioQualityMode:o()},e))},errorReporter:function(e){return s(n(1).assign({trackUrn:m,entityType:"soundcloud",audioQualityMode:o()},e))},audioReporter:function(e){return u(n(1).assign({audioQualityMode:o(),trackAuthorization:_()},e))},audioCheckpointInterval:c,fadeOnPauseAndPlay:!0,fadeOnSeek:!0,pausedMaxBufferLength:15e3,playingMaxBufferLength:3e5,logger:n(225)});if(!S.isDead()){var E=function(){T()},T=function(){var e=n(17).getAuthToken();A.updateRequestAuthorization(e?"OAuth "+e:null)},x=function(){T(),A.updateMediaPayload(g()),A.updateTrackAuthorization(_()),S.reload(a(h()))},L=function(){S.reload(a(h()))};S.onChange.subscribe((function(e){e.dead&&(n(11).off(null,E),p.remove(x),n(140).off(null,L))})),n(11).on("connect:login connect:logout",E),p.onSignal(x),n(140).on(n(504).STREAMING_QUALITY_SETTING,L)}return S}})).then(l.resolve,l.reject),l}}},1263:function(e,t,n){e.exports={buildPlayer:function(e){var t=e.url,r=e.audioPerformanceReporter,i=e.errorReporter,o=e.audioReporter,a=e.checkpointInterval;if(!t)throw new Error("ExternalAudioAd: requires url");return new(n(94).Player)({controllers:[new(n(224).HTML5PlayerController)(n(365).general)],streamUrlRetriever:new(n(469).StreamUrlRetriever)({urlsWithRenditions:[{url:t,rendition:n(94).renditions.httpMp3}]}),streamUrlsExpire:!1,fadeOnPauseAndPlay:!1,audioPerformanceReporter:function(e){return r(n(1).assign({entityType:"ad_audio"},e))},errorReporter:function(e){return i(n(1).assign({entityType:"ad_audio"},e))},audioReporter:o,audioCheckpointInterval:a,logger:n(225),seekStrategy:n(104).NeverAllowSeekStrategy})}}},1264: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()}))}}}},1268:function(e,t,n){"use strict";function r(e,t,n){n=n||Math.round;var r=Math.pow(10,t||0);return n(e*r)/r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{round:r,format:function(t,n){if(""===t||null==t||isNaN(t)||Math.abs(t)===1/0)return"";t=parseFloat(t);var i=n&&n.precision||0,o=e.delimiters;return t=r(t,i=Math.max(Math.min(i,20),0),n&&n.roundingFn),n&&!isNaN(n.fixed)&&(t=t.toFixed(Math.max(Math.min(n.fixed,20),0))),(""+t).split(".").map((function(e,t){return 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=e+"",r=t-n.length;return r>0&&(n=new Array(r+1).join("0")+n),n}}}},1269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){var n=function n(){for(var r,i=[],o=0;o0||i)return r}return n}(c,a,u);if("undefined"!=typeof Intl)return function(e,t){return Object.prototype.hasOwnProperty.call(o,e)?t.replace(o[e].default,o[e].override):t}(a,n(a,l)(c));var d=t.format(c,{precision:2}),f=i[a]||a;switch(e){case"en":case"en_GB":return""+f+d;case"fr":return d+" "+f;default:return""+d+f}}}}},1270:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeTimeFormatStyle=void 0;var i,o={sec:1e3,min:60,hour:60,day:24,month:30,year:12},a={minute:6e4,hour:36e5,day:864e5};!function(e){e.Long="Long",e.Short="Short",e.Digital="Digital",e.DigitalMinimal="DigitalMinimal"}(i||(t.RelativeTimeFormatStyle=i={}));var s=((r={})[i.Long]={hour:"hour",min:"min",sec:"sec"},r[i.Short]={hour:"hourAbbreviated",min:"minAbbreviated",sec:"secAbbreviated"},r);function u(e){return new Date(Date.parse(e)||e)}function c(e){if(/^\d+(\.\d+)?$/g.test(e))return 1e3*parseFloat(e);var t=/^(?:npt:)?(?:(?:(\d+):)?(\d\d?):)?(\d\d?)(\.\d+)?$/.exec(e)||/^(?:(\d\d?)[hH])?(?:(\d\d?)[mM])?(\d\d?)[sS]$/.exec(e);return t?1e3*(3600*(parseInt(t[1],10)||0)+60*(parseInt(t[2],10)||0)+parseInt(t[3],10)+(parseFloat(t[4])||0)):0}function l(e,t,n){void 0===n&&(n="s");var r="smh".indexOf(t),i="smh".indexOf(n);if(-1===r||-1===i)throw new Error('Units must be expressed as either "h", "m" or "s"');return Math.round(Math.pow(60,i-r)*e)}function d(e){return(e=new Date(e)).setMinutes(e.getMinutes()-e.getMinutes()%30),e}function f(e){var t,n=e.match(/^\s*(\d{1,2})\s*(?::\s*(\d{1,2}))?\s*(?:(a|p)m?)?\s*$/i);if(n){var r=n[1]?parseInt(n[1],10):0,i=n[2]?parseInt(n[2],10):0,o=null===(t=n[3])||void 0===t?void 0:t.toLowerCase();if(!(r>23||i>59)){if(o)if("p"===o){if(r<12)r=12+r;else if(r>12)return}else if("a"===o)if(12===r)r=0;else if(r>12)return;return[r,i]}}}function h(){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 p(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*a[e.resolution]);return{from:n,to:+new Date(n+(e.duration-1)*a[e.resolution])}}function g(e){var t="string"==typeof e?Date.parse(e):"number"==typeof e?e:e.valueOf(),n=60*h()*1e3;return new Date(t+n)}t.default=function(e,t){var n=0;return{time:a,toRelativeTime:r,format:function(t,n){var i=e.dates;if(!(t instanceof Date))throw new Error("format method expects first argument to be Date");if("relative"===n)return r(t);var o=t.getDate(),a=t.getDay(),s=t.getMonth(),u=t.getFullYear(),c=(l=t.getMinutes(),(d="0"+l).substring(d.length-2));return[["YYYY",u],["MMMM",i.monthsDay&&i.monthsDay[s]||i.months[s]],["DDDD",i.weekdays[a]],["DDD",i.shortWeekdays[a]],["MMM",i.monthsDayShort&&i.monthsDayShort[s]||i.monthsShort[s]],["DD",o],["MM",s+1],["HH",t.getHours()],["mm",c]].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"month":n="month";break;case"readable_abbreviated_with_weekday":n="readableAbbreviatedWithWeekday";break;case"date_without_year":n="dateWithoutYear";break;default:n="default"}return e.dateFormats[n]}(n));var l,d},fromString:u,setServerTime:function(e){var t=("number"==typeof e?new Date(e):u(e)).getTime()-Date.now();if(Math.abs(t)>6048e5)return!1;return n=t,!0},nowAtServer:function(){return Date.now()+n},timecode:function(t,n){if(isNaN(t))return t;var r=[],o=Math.floor(t/36e5),a=Math.floor(t/6e4%60),u=Math.floor(t/1e3%60),c=e.relativeTime,l=i.Digital;n&&("style"in n?l=n.style:n.inWords?l=i.Long:n.minimal&&(l=i.DigitalMinimal));if(l===i.Long||l===i.Short){var d=s[l];return o>0&&r.push(c[d.hour](o)),a>0&&r.push(c[d.min](a)),(u>0||0===a&&0===o)&&r.push(c[d.sec](u)),r.join(" ")}return o>0&&r.push(o),l===i.DigitalMinimal&&0===o&&0===a?r.push(""):r.push(a<10&&o>0?"0"+a:a),r.push(u<10?"0"+u:u),r.join(":")},stringToTime:c,convert:l,floorTo30Minutes:d,parseTime:f,formatTime:function(e){return t.zeroPad(e.getHours(),2)+":"+t.zeroPad(e.getMinutes(),2)},getTimezoneOffset:h,getBounds:p,toLocalDate:g,RelativeTimeFormatStyle:i};function r(t,n,r){if(!(t instanceof Date))throw new Error("toRelativeTime method expects first argument to be Date");var i=(r=r||Date.now())-t.getTime(),a=i>0,s=null,u=e.relativeTime;if(n=n&&parseInt(n,10)||1e3,(i=Math.abs(i))<=n)return a?u.justNow:u.rightNow;for(var c in o){var l=c;if(Object.prototype.hasOwnProperty.call(o,c)){if(i=0||(i[n]=e[n]);return i}(e,["event","creatorSubType","layoutInfo","layoutViewCounts"]),c=window.dataLayer=window.dataLayer||[],l=n(6).get("me"),d=!!l.id,f=n(6).get("geoip"),h=f&&f.get("country_code"),p=null==(t=l.get("marketing_ids"))?void 0:t.gtm,g={};Object.keys(u).forEach((function(e){g[e]=u[e]||void 0})),c.push(n(1).defaults(r({event:i,isLoggedIn:d,guid:n(763).generate(),isPremium:l.isPremium(),creatorSubType:o||l.getCreatorPlan(),pageCategory:a?a.layoutName:void 0,hasHighTier:l.hasHighTier(),consumerSubType:l.getConsumerPlan(),countryCode:h,marketingId:p},g),s||{}))},pushDataLayerInitializedEvent:function(){var e,t,r,i,o,a,s=n(6).get("me"),u=function(e){return"string"==typeof e&&e.length>0?e:void 0};(window.dataLayer=window.dataLayer||[]).push({event:"dataLayer-initialized",user_id:null!=(e=s.get("analytics_id"))?e:void 0,logged_in:n(17).isLoggedIn(),ppid:null!=(a=n(6).get("me").get("ppid"))?a:null,consumer_sub_type:null!=(t=s.getConsumerPlan())?t:void 0,creator_sub_type:null!=(r=s.getCreatorPlan())?r:void 0,country_code:null!=(i=null==(o=n(6).get("geoip"))?void 0:o.get("country_code"))?i:void 0,page_path:u(window.location.pathname),page_url:u(window.location.href),page_referrer:u(document.referrer)})},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}}};function o(e,t){i.adjustViewCounts(e,t),this.pushDataLayerInitializedEvent()}},1283:function(e,t,n){"use strict";n.r(t),n.d(t,"include",(function(){return s}));var r=n(1),i=n.n(r),o=n(86),a=n.n(o);function s(){window._qoptions={qacct:"p-47_zcqmJsLHXQ"},i.a.defer(a.a.insertScript,"//secure.quantserve.com/quant.js")}},1284:function(e,t,n){var r={name:"rubicon_last_sync",value:"synced",expirationInDays:1,secure:!0};e.exports={include:function(){var e=n(6).get("geoip"),t=n(68).get("rubicon_last_sync"),i=n(6).get("me").getPerk("adFree"),o=n(106).doNotTrack;if(n(559).isOneTrustScanner()||!o&&!i&&!t&&function(e){return n(1).contains(n(74).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(86).insertSandboxedScript("//secure-assets.rubiconproject.com/utils/xapi/multi-sync.js",n(1).omit(a,n(1).isUndefined)).then((function(){return n(68).set(r)}),(function(e){return!1}))}}}},1296:function(e,t,n){"use strict";n.r(t),n.d(t,"countriesLocale",(function(){return i}));var r=n(7),i={DZ:r.Lingua.t("Algeria",void 0,{context:"country"}),AO:r.Lingua.t("Angola",void 0,{context:"country"}),AG:r.Lingua.t("Antigua And Barbuda",void 0,{context:"country"}),BJ:r.Lingua.t("Benin",void 0,{context:"country"}),BT:r.Lingua.t("Bhutan",void 0,{context:"country"}),BW:r.Lingua.t("Botswana",void 0,{context:"country"}),BF:r.Lingua.t("Burkina Faso",void 0,{context:"country"}),BI:r.Lingua.t("Burundi",void 0,{context:"country"}),CM:r.Lingua.t("Cameroon",void 0,{context:"country"}),CV:r.Lingua.t("Cape Verde",void 0,{context:"country"}),CF:r.Lingua.t("Central African Republic",void 0,{context:"country"}),TD:r.Lingua.t("Chad",void 0,{context:"country"}),KM:r.Lingua.t("Comoros",void 0,{context:"country"}),CG:r.Lingua.t("Congo",void 0,{context:"country"}),CD:r.Lingua.t("Democratic Republic of the Congo",void 0,{context:"country"}),CI:r.Lingua.t("Cote d'Ivoire",void 0,{context:"country"}),EG:r.Lingua.t("Egypt",void 0,{context:"country"}),GQ:r.Lingua.t("Equatorial Guinea",void 0,{context:"country"}),ER:r.Lingua.t("Eritrea",void 0,{context:"country"}),ET:r.Lingua.t("Ethiopia",void 0,{context:"country"}),GF:r.Lingua.t("French Guiana",void 0,{context:"country"}),GA:r.Lingua.t("Gabon",void 0,{context:"country"}),GM:r.Lingua.t("Gambia",void 0,{context:"country"}),GH:r.Lingua.t("Ghana",void 0,{context:"country"}),GN:r.Lingua.t("Guinea",void 0,{context:"country"}),GW:r.Lingua.t("Guinea-Bissau",void 0,{context:"country"}),KE:r.Lingua.t("Kenya",void 0,{context:"country"}),LS:r.Lingua.t("Lesotho",void 0,{context:"country"}),LR:r.Lingua.t("Liberia",void 0,{context:"country"}),MW:r.Lingua.t("Malawi",void 0,{context:"country"}),ML:r.Lingua.t("Mali",void 0,{context:"country"}),MR:r.Lingua.t("Mauritania",void 0,{context:"country"}),YT:r.Lingua.t("Mayotte",void 0,{context:"country"}),MA:r.Lingua.t("Morocco",void 0,{context:"country"}),MZ:r.Lingua.t("Mozambique",void 0,{context:"country"}),NA:r.Lingua.t("Namibia",void 0,{context:"country"}),NE:r.Lingua.t("Niger",void 0,{context:"country"}),NG:r.Lingua.t("Nigeria",void 0,{context:"country"}),QA:r.Lingua.t("Qatar",void 0,{context:"country"}),RW:r.Lingua.t("Rwanda",void 0,{context:"country"}),ST:r.Lingua.t("Sao Tome And Principe",void 0,{context:"country"}),SN:r.Lingua.t("Senegal",void 0,{context:"country"}),SC:r.Lingua.t("Seychelles",void 0,{context:"country"}),SL:r.Lingua.t("Sierra Leone",void 0,{context:"country"}),SO:r.Lingua.t("Somalia",void 0,{context:"country"}),ZA:r.Lingua.t("South Africa",void 0,{context:"country"}),SD:r.Lingua.t("Sudan",void 0,{context:"country"}),SR:r.Lingua.t("Suriname",void 0,{context:"country"}),SZ:r.Lingua.t("Swaziland",void 0,{context:"country"}),TZ:r.Lingua.t("United Republic of Tanzania",void 0,{context:"country"}),TG:r.Lingua.t("Togo",void 0,{context:"country"}),TT:r.Lingua.t("Trinidad And Tobago",void 0,{context:"country"}),UG:r.Lingua.t("Uganda",void 0,{context:"country"}),EH:r.Lingua.t("Western Sahara",void 0,{context:"country"}),ZM:r.Lingua.t("Zambia",void 0,{context:"country"}),ZW:r.Lingua.t("Zimbabwe",void 0,{context:"country"}),AF:r.Lingua.t("Afghanistan",void 0,{context:"country"}),BH:r.Lingua.t("Bahrain",void 0,{context:"country"}),BD:r.Lingua.t("Bangladesh",void 0,{context:"country"}),IO:r.Lingua.t("British Indian Ocean Territory",void 0,{context:"country"}),BN:r.Lingua.t("Brunei Darussalam",void 0,{context:"country"}),KH:r.Lingua.t("Cambodia",void 0,{context:"country"}),CN:r.Lingua.t("China",void 0,{context:"country"}),DJ:r.Lingua.t("Djibouti",void 0,{context:"country"}),HK:r.Lingua.t("Hong Kong",void 0,{context:"country"}),IN:r.Lingua.t("India",void 0,{context:"country"}),ID:r.Lingua.t("Indonesia",void 0,{context:"country"}),IR:r.Lingua.t("Islamic Republic of Iran",void 0,{context:"country"}),IQ:r.Lingua.t("Iraq",void 0,{context:"country"}),IL:r.Lingua.t("Israel",void 0,{context:"country"}),JP:r.Lingua.t("Japan",void 0,{context:"country"}),JO:r.Lingua.t("Jordan",void 0,{context:"country"}),KP:r.Lingua.t("Democratic People's Republic of Korea",void 0,{context:"country"}),KR:r.Lingua.t("Republic of Korea",void 0,{context:"country"}),KW:r.Lingua.t("Kuwait",void 0,{context:"country"}),KG:r.Lingua.t("Kyrgyzstan",void 0,{context:"country"}),LA:r.Lingua.t("Lao People's Democratic Republic",void 0,{context:"country"}),LB:r.Lingua.t("Lebanon",void 0,{context:"country"}),LY:r.Lingua.t("Libya",void 0,{context:"country"}),MO:r.Lingua.t("Macao",void 0,{context:"country"}),MY:r.Lingua.t("Malaysia",void 0,{context:"country"}),MN:r.Lingua.t("Mongolia",void 0,{context:"country"}),MM:r.Lingua.t("Myanmar",void 0,{context:"country"}),NP:r.Lingua.t("Nepal",void 0,{context:"country"}),OM:r.Lingua.t("Oman",void 0,{context:"country"}),PK:r.Lingua.t("Pakistan",void 0,{context:"country"}),PW:r.Lingua.t("Palau",void 0,{context:"country"}),PS:r.Lingua.t("State of Palestine",void 0,{context:"country"}),PH:r.Lingua.t("Philippines",void 0,{context:"country"}),SA:r.Lingua.t("Saudi Arabia",void 0,{context:"country"}),SG:r.Lingua.t("Singapore",void 0,{context:"country"}),SB:r.Lingua.t("Solomon Islands",void 0,{context:"country"}),SS:r.Lingua.t("South Sudan",void 0,{context:"country"}),LK:r.Lingua.t("Sri Lanka",void 0,{context:"country"}),SY:r.Lingua.t("Syrian Arab Republic",void 0,{context:"country"}),TW:r.Lingua.t("Taiwan, Province of China",void 0,{context:"country"}),TJ:r.Lingua.t("Tajikistan",void 0,{context:"country"}),TH:r.Lingua.t("Thailand",void 0,{context:"country"}),TL:r.Lingua.t("Timor-Leste",void 0,{context:"country"}),TN:r.Lingua.t("Tunisia",void 0,{context:"country"}),TR:r.Lingua.t("Turkey",void 0,{context:"country"}),TM:r.Lingua.t("Turkmenistan",void 0,{context:"country"}),AE:r.Lingua.t("United Arab Emirates",void 0,{context:"country"}),UZ:r.Lingua.t("Uzbekistan",void 0,{context:"country"}),VN:r.Lingua.t("Viet Nam",void 0,{context:"country"}),YE:r.Lingua.t("Yemen",void 0,{context:"country"}),AS:r.Lingua.t("American Samoa",void 0,{context:"country"}),AU:r.Lingua.t("Australia",void 0,{context:"country"}),CX:r.Lingua.t("Christmas Island",void 0,{context:"country"}),CC:r.Lingua.t("Cocos (Keeling) Islands",void 0,{context:"country"}),CK:r.Lingua.t("Cook Islands",void 0,{context:"country"}),FJ:r.Lingua.t("Fiji",void 0,{context:"country"}),PF:r.Lingua.t("French Polynesia",void 0,{context:"country"}),HM:r.Lingua.t("Heard Island And McDonald Islands",void 0,{context:"country"}),KI:r.Lingua.t("Kiribati",void 0,{context:"country"}),MG:r.Lingua.t("Madagascar",void 0,{context:"country"}),MV:r.Lingua.t("Maldives",void 0,{context:"country"}),MH:r.Lingua.t("Marshall Islands",void 0,{context:"country"}),MU:r.Lingua.t("Mauritius",void 0,{context:"country"}),FM:r.Lingua.t("Federated States of Micronesia",void 0,{context:"country"}),NR:r.Lingua.t("Nauru",void 0,{context:"country"}),NC:r.Lingua.t("New Caledonia",void 0,{context:"country"}),NZ:r.Lingua.t("New Zealand",void 0,{context:"country"}),NU:r.Lingua.t("Niue",void 0,{context:"country"}),MP:r.Lingua.t("Northern Mariana Islands",void 0,{context:"country"}),PG:r.Lingua.t("Papua New Guinea",void 0,{context:"country"}),WS:r.Lingua.t("Samoa",void 0,{context:"country"}),TK:r.Lingua.t("Tokelau",void 0,{context:"country"}),TO:r.Lingua.t("Tonga",void 0,{context:"country"}),TV:r.Lingua.t("Tuvalu",void 0,{context:"country"}),VU:r.Lingua.t("Vanuatu",void 0,{context:"country"}),WF:r.Lingua.t("Wallis And Futuna",void 0,{context:"country"}),AQ:r.Lingua.t("Antarctica",void 0,{context:"country"}),AX:r.Lingua.t("Aaland Islands",void 0,{context:"country"}),AL:r.Lingua.t("Albania",void 0,{context:"country"}),AD:r.Lingua.t("Andorra",void 0,{context:"country"}),AM:r.Lingua.t("Armenia",void 0,{context:"country"}),AT:r.Lingua.t("Austria",void 0,{context:"country"}),AZ:r.Lingua.t("Azerbaijan",void 0,{context:"country"}),BY:r.Lingua.t("Belarus",void 0,{context:"country"}),BE:r.Lingua.t("Belgium",void 0,{context:"country"}),BA:r.Lingua.t("Bosnia And Herzegovina",void 0,{context:"country"}),BV:r.Lingua.t("Bouvet Island",void 0,{context:"country"}),BG:r.Lingua.t("Bulgaria",void 0,{context:"country"}),HR:r.Lingua.t("Croatia",void 0,{context:"country"}),CY:r.Lingua.t("Cyprus",void 0,{context:"country"}),CZ:r.Lingua.t("Czech Republic",void 0,{context:"country"}),DK:r.Lingua.t("Denmark",void 0,{context:"country"}),EE:r.Lingua.t("Estonia",void 0,{context:"country"}),FO:r.Lingua.t("Faroe Islands",void 0,{context:"country"}),FI:r.Lingua.t("Finland",void 0,{context:"country"}),FR:r.Lingua.t("France",void 0,{context:"country"}),TF:r.Lingua.t("French Southern Territories",void 0,{context:"country"}),GE:r.Lingua.t("Georgia",void 0,{context:"country"}),DE:r.Lingua.t("Germany",void 0,{context:"country"}),GI:r.Lingua.t("Gibraltar",void 0,{context:"country"}),GR:r.Lingua.t("Greece",void 0,{context:"country"}),GL:r.Lingua.t("Greenland",void 0,{context:"country"}),GP:r.Lingua.t("Guadeloupe",void 0,{context:"country"}),GG:r.Lingua.t("Guernsey",void 0,{context:"country"}),VA:r.Lingua.t("Holy See (Vatican City State)",void 0,{context:"country"}),HU:r.Lingua.t("Hungary",void 0,{context:"country"}),IS:r.Lingua.t("Iceland",void 0,{context:"country"}),IE:r.Lingua.t("Ireland",void 0,{context:"country"}),IM:r.Lingua.t("Isle of Man",void 0,{context:"country"}),IT:r.Lingua.t("Italy",void 0,{context:"country"}),JE:r.Lingua.t("Jersey",void 0,{context:"country"}),KZ:r.Lingua.t("Kazakhstan",void 0,{context:"country"}),XK:r.Lingua.t("Kosovo",void 0,{context:"country"}),LV:r.Lingua.t("Latvia",void 0,{context:"country"}),LI:r.Lingua.t("Liechtenstein",void 0,{context:"country"}),LT:r.Lingua.t("Lithuania",void 0,{context:"country"}),LU:r.Lingua.t("Luxembourg",void 0,{context:"country"}),MK:r.Lingua.t("North Macedonia",void 0,{context:"country"}),MT:r.Lingua.t("Malta",void 0,{context:"country"}),MQ:r.Lingua.t("Martinique",void 0,{context:"country"}),MD:r.Lingua.t("Republic of Moldova",void 0,{context:"country"}),MC:r.Lingua.t("Monaco",void 0,{context:"country"}),ME:r.Lingua.t("Montenegro",void 0,{context:"country"}),MS:r.Lingua.t("Montserrat",void 0,{context:"country"}),NL:r.Lingua.t("Netherlands",void 0,{context:"country"}),NF:r.Lingua.t("Norfolk Island",void 0,{context:"country"}),NO:r.Lingua.t("Norway",void 0,{context:"country"}),PL:r.Lingua.t("Poland",void 0,{context:"country"}),PT:r.Lingua.t("Portugal",void 0,{context:"country"}),RE:r.Lingua.t("Reunion",void 0,{context:"country"}),RO:r.Lingua.t("Romania",void 0,{context:"country"}),RU:r.Lingua.t("Russian Federation",void 0,{context:"country"}),SH:r.Lingua.t("Saint Helena, Ascension And Tristan Da Cunha",void 0,{context:"country"}),SM:r.Lingua.t("San Marino",void 0,{context:"country"}),RS:r.Lingua.t("Serbia",void 0,{context:"country"}),SX:r.Lingua.t("Sint Maarten (Dutch Part)",void 0,{context:"country"}),SK:r.Lingua.t("Slovakia",void 0,{context:"country"}),SI:r.Lingua.t("Slovenia",void 0,{context:"country"}),GS:r.Lingua.t("South Georgia And The South Sandwich Islands",void 0,{context:"country"}),ES:r.Lingua.t("Spain",void 0,{context:"country"}),SJ:r.Lingua.t("Svalbard And Jan Mayen",void 0,{context:"country"}),SE:r.Lingua.t("Sweden",void 0,{context:"country"}),CH:r.Lingua.t("Switzerland",void 0,{context:"country"}),UA:r.Lingua.t("Ukraine",void 0,{context:"country"}),GB:r.Lingua.t("United Kingdom",void 0,{context:"country"}),VG:r.Lingua.t("Virgin Islands, British",void 0,{context:"country"}),AR:r.Lingua.t("Argentina",void 0,{context:"country"}),AW:r.Lingua.t("Aruba",void 0,{context:"country"}),BB:r.Lingua.t("Barbados",void 0,{context:"country"}),BZ:r.Lingua.t("Belize",void 0,{context:"country"}),BM:r.Lingua.t("Bermuda",void 0,{context:"country"}),BO:r.Lingua.t("Plurinational State of Bolivia",void 0,{context:"country"}),BQ:r.Lingua.t("Bonaire, Sint Eustatius And Saba",void 0,{context:"country"}),BR:r.Lingua.t("Brazil",void 0,{context:"country"}),CL:r.Lingua.t("Chile",void 0,{context:"country"}),CO:r.Lingua.t("Colombia",void 0,{context:"country"}),CR:r.Lingua.t("Costa Rica",void 0,{context:"country"}),CU:r.Lingua.t("Cuba",void 0,{context:"country"}),CW:r.Lingua.t("Curacao",void 0,{context:"country"}),EC:r.Lingua.t("Ecuador",void 0,{context:"country"}),SV:r.Lingua.t("El Salvador",void 0,{context:"country"}),FK:r.Lingua.t("Falkland Islands (Malvinas)",void 0,{context:"country"}),GD:r.Lingua.t("Grenada",void 0,{context:"country"}),GT:r.Lingua.t("Guatemala",void 0,{context:"country"}),GY:r.Lingua.t("Guyana",void 0,{context:"country"}),HN:r.Lingua.t("Honduras",void 0,{context:"country"}),JM:r.Lingua.t("Jamaica",void 0,{context:"country"}),MX:r.Lingua.t("Mexico",void 0,{context:"country"}),NI:r.Lingua.t("Nicaragua",void 0,{context:"country"}),PA:r.Lingua.t("Panama",void 0,{context:"country"}),PY:r.Lingua.t("Paraguay",void 0,{context:"country"}),PE:r.Lingua.t("Peru",void 0,{context:"country"}),PN:r.Lingua.t("Pitcairn",void 0,{context:"country"}),PR:r.Lingua.t("Puerto Rico",void 0,{context:"country"}),KN:r.Lingua.t("Saint Kitts And Nevis",void 0,{context:"country"}),LC:r.Lingua.t("Saint Lucia",void 0,{context:"country"}),UY:r.Lingua.t("Uruguay",void 0,{context:"country"}),VE:r.Lingua.t("Bolivarian Republic of Venezuela",void 0,{context:"country"}),AI:r.Lingua.t("Anguilla",void 0,{context:"country"}),BS:r.Lingua.t("Bahamas",void 0,{context:"country"}),CA:r.Lingua.t("Canada",void 0,{context:"country"}),KY:r.Lingua.t("Cayman Islands",void 0,{context:"country"}),DM:r.Lingua.t("Dominica",void 0,{context:"country"}),DO:r.Lingua.t("Dominican Republic",void 0,{context:"country"}),GU:r.Lingua.t("Guam",void 0,{context:"country"}),HT:r.Lingua.t("Haiti",void 0,{context:"country"}),BL:r.Lingua.t("Saint Barthelemy",void 0,{context:"country"}),MF:r.Lingua.t("Saint Martin (French Part)",void 0,{context:"country"}),PM:r.Lingua.t("Saint Pierre And Miquelon",void 0,{context:"country"}),VC:r.Lingua.t("Saint Vincent And The Grenadines",void 0,{context:"country"}),TC:r.Lingua.t("Turks And Caicos Islands",void 0,{context:"country"}),US:r.Lingua.t("United States",void 0,{context:"country"}),UM:r.Lingua.t("United States Minor Outlying Islands",void 0,{context:"country"}),VI:r.Lingua.t("Virgin Islands, U.S.",void 0,{context:"country"})}},1297:function(e,t,n){e.exports={userId:function(){return n(68).get("rubicon_user_id")}}},1298:function(e,t,n){"use strict";n.r(t),n.d(t,"include",(function(){return m}));var r,i,o,a=n(86),s=n.n(a),u=n(35),c=n(6),l=n.n(c),d=n(17),f=n.n(d),h=n(83),p=n.n(h);function g(){return(g=Object.assign||function(e){for(var t=1;t-1&&l.add(e,{at:t}),c=u=-1,d=!1,f.trigger("end")},getItems:function(){return s},isDragging:function(){return s.length>0},dispose:function(){n(1).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(r,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(20))}).call(this,n(25))},1323:function(e,t,n){"use strict";n.r(t),n.d(t,"dataProvider",(function(){return s}));var r=n(44),i=n.n(r),o=n(290),a=new o.V2MemoryStore({nextStore:new o.V2NetworkStore({endpoints:i.a})}),s=new o.DataProvider(a)},1324:function(e,t,n){var r=function(){"use strict";return function(e){var t=e.fn,n=e.minTaskTime;this.fn=t,this.minTaskTime=n}}(),i=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,i=new r({fn:t,minTaskTime:n});return this.tasks.push(i),this.processQueue(),i},t.remove=function(e){n(176).removeElement(this.tasks,e)},t.processQueue=function(){var e=this;this.isProcessing||(this.isProcessing=!0,n(1325).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:i}},1325:function(e,t,n){e.exports={requestIdleCallback:i(window.requestIdleCallback,(function(e){var t=new r;return window.setTimeout((function(){return e(t)}),0)})).bind(window),cancelIdleCallback:i(window.cancelIdleCallback,(function(e){window.clearTimeout(e)})).bind(window)};var r=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 i(e,t){return n(1).isFunction(e)?e:t}function o(){return Date.now()}},1368:function(e,t,n){var r={blockScrubbing:n(2).Lingua.t("Create an account or sign in to scrub through tracks")};e.exports=r},1369:function(e,t,n){e.exports=function(){return n(1).assign({},n(42).Events,{adPodController:null,beginAdBreak:function(e,t){var i=this,o=n(10).defer();return this.isAdBreakActive()?o.reject():this.doesAdBreakExist()?(this.dismissLeaveBehind().fail((function(){o.reject()})).done((function(){r.call(i,e,t,o)})),o):(r.call(this,e,t,o),o)},requestSkipCurrentAd:function(e){return void 0===e&&(e={}),this.doesAdBreakExist()?this.adPodController.requestSkipCurrentAd(e):n(10).resolve()},requestSkipAdBreak:function(e){return void 0===e&&(e={}),this.doesAdBreakExist()?this.adPodController.requestSkip(e):n(10).resolve()},setCanSkipImmediately:function(e){var t=this.getCurrentAdController();t&&t.setCanSkipImmediately(e)},dismissLeaveBehind:function(){var e=this,t=this.doesAdBreakExist()?this.adPodController.dismissLeaveBehind():n(10).resolve();return n(116).isCrossfadeFeatureFlagEnabled()?t.done((function(){return e.trigger(n(85).DISMISS_LEAVE_BEHIND)})):t},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},getDsaConfig:function(){return this.doesAdBreakExist()?this.adPodController.getDsaConfig():null},getCurrentAdAdvertiser:function(){return this.doesAdBreakExist()?this.adPodController.getCurrentAdAdvertiser():null}})};function r(e,t,r){var o=this;this.adPodController=new(n(1370)),this.listenTo(this.adPodController,n(85).CHANGE_CURRENT_AD_SOUND,(function(e){return o.trigger(n(85).CHANGE_CURRENT_AD_SOUND,e)})).listenTo(this.adPodController,n(85).CHANGE_AD_SKIPPABILITY,(function(e){return o.trigger(n(85).CHANGE_AD_SKIPPABILITY,e)})),this.adPodController.getActiveDeferred().always((function(){o.trigger(n(85).END_AD_BREAK,{upcomingSound:o.getUpcomingSound()})})),this.adPodController.getLifetimeDeferred().always(i.bind(this)),this.adPodController.begin(e,t).fail((function(){r.reject()})).done((function(){r.resolve(o.adPodController)}))}function i(){this.stopListening(this.adPodController),this.adPodController=null}},137:function(e,t,n){e.exports=n(550)({label:"cast-sender",enabled:!0,buffer:!0})},1370:function(e,t,n){function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=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(61).AudioAdTrackingEvents.FINISH),a.call(this)}function _(e){var t,i;void 0===e&&(e={}),this.audioAdTracker.track(n(61).AudioAdTrackingEvents.ERROR,r({},e,{errorCode:e.error&&e.error.message.indexOf(n(216).SCAUDIO_ERROR_CODE.NOT_SUPPORTED_ERROR)>-1?n(313).VAST_ERROR_CODE_NOT_SUPPORTED_LINEAR_ERROR:n(313).VAST_ERROR_CODE_GENERAL_LINEAR_ERROR})),s.call(this),n(91).isAdBlockEnabled()&&(null!=(t=null==(i=e.error)?void 0:i.message)?t:"").indexOf(n(216).SCAUDIO_ERROR_CODE.NOT_SUPPORTED_ERROR)>-1||n(110).notify(new Error("AdManager: Error from player. "+e.error))}function b(){this.audioAdTracker.track(n(61).AudioAdTrackingEvents.PAUSE)}function k(){this.audioAdTracker.track(n(61).AudioAdTrackingEvents.PLAY),C.call(this)}function A(){this.audioAdTracker.track(n(61).AudioAdTrackingEvents.PLAY_START)}function w(){this.audioAdTracker.trackQuartile(),this.audioAdTracker.trackProgress(),C.call(this)}function C(){var e=this.isAllowedToSkip();e!==this.lastEmittedSkippability&&(this.lastEmittedSkippability=e,this.trigger(n(85).CHANGE_AD_SKIPPABILITY))}function S(e){this.getUpcomingSound().trigger("ad:"+e.type,e)}},1373:function(e,t,n){var r=.25,i=.5,o=.75,a=1,s=function(){"use strict";function e(e,t,n,r){this.audioAd=e,this.dsaConfig=t,this.adPodIndex=n,this.adPodSize=r,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(61).AudioAdTrackingEvents.PLAY||e===n(61).AudioAdTrackingEvents.PAUSE)){var r=this.audioAd.getSound(),i=this.audioAd.getUrn(),o=this.audioAd.getTracking(),a=this.audioAd.getCompanion(),s=this.audioAd.getUpcomingSoundUrn(),u=a?a.getUrn():void 0,c=a?a.getFormat()===n(91).AudioAdVisualFormats.html?"html":a.getContent():void 0,l=0;null!=r&&r.player&&(l=Math.floor(r.player.getPosition()));var d=this.firedEvents.has(n(61).AudioAdTrackingEvents.PLAY_START),f=this.firedEvents.has(n(61).AudioAdTrackingEvents.PAUSE),h={context:{scope:["playControls","playControlsPanel"]},contextName:"playControlsPanel"};switch(e){case n(61).AudioAdTrackingEvents.PLAY_START:n(164).logEvent("play",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l});break;case n(61).AudioAdTrackingEvents.PLAY:d&&f&&n(164).logEvent("resume",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l});break;case n(61).AudioAdTrackingEvents.PAUSE:d&&n(164).logEvent("pause",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l});break;case n(61).AudioAdTrackingEvents.IMPRESSION:n(164).logEvent("adImpression",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l}),n(19).trackImpression({ad_urn:i,impression_name:"audio_ad_impression",impression_object:i,context:h.context,monetization_type:"audio_ad",monetized_object:s}),n(247).trackAdPresented(i,this.adPodIndex,this.adPodSize);break;case n(61).AudioAdTrackingEvents.UNFILLED_IMPRESSION:n(164).log(this.audioAd.getErrorTrackers(),{errorCode:n(313).VAST_ERROR_CODE_UNDEFINED_ERROR,contentPlayheadInMs:l}),this.audioAd.isEmpty()&&n(19).trackImpression({ad_urn:i,impression_name:"error_ad",impression_object:i,context:h.context,monetization_type:"error_ad",monetized_object:s});break;case n(61).AudioAdTrackingEvents.SKIP:n(164).logEvent("skip",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l}),n(19).trackV0Click(null,{ad_urn:i,click_name:"ad::skip",click_object:i,context:t.context,monetization_type:"audio_ad",monetized_object:s});break;case n(61).AudioAdTrackingEvents.FINISH:n(164).logEvent("finish",{trackerUrlsByAdEvent:o,contentPlayheadInMs:l}),n(19).trackV0Click(null,{ad_urn:i,click_name:"ad::finish",click_object:i,external_media:c,context:h.context,monetization_type:"audio_ad",monetized_object:s});break;case n(61).AudioAdTrackingEvents.FIRST_QUARTILE:case n(61).AudioAdTrackingEvents.SECOND_QUARTILE:case n(61).AudioAdTrackingEvents.THIRD_QUARTILE:var p=e.split(":")[1];n(164).logEvent(p,{trackerUrlsByAdEvent:o,contentPlayheadInMs:l}),n(19).trackV1Click({ad_urn:i,click_name:e.replace("audio_ad:","ad::"),click_category:"monetization",click_object:i,external_media:c,monetization_type:"audio_ad",monetized_object:s});break;case n(61).AudioAdTrackingEvents.WHY_ADS_CLICK:n(19).trackV0Click(null,{click_name:"companion_display::why_ads",click_object:i,click_target:null,external_media:null,ad_urn:u,context:t.context,monetization_type:"audio_ad",monetized_object:s}),this.isDsaAd()&&n(247).trackDsaAdInfoSheetPresented();break;case n(61).AudioAdTrackingEvents.ERROR:n(164).log(this.audioAd.getErrorTrackers(),{errorCode:t.errorCode||n(313).VAST_ERROR_CODE_GENERAL_LINEAR_ERROR,contentPlayheadInMs:l});break;case n(61).AudioAdTrackingEvents.DSA_AD_RECEIVED:var g=this.audioAd.isError(),m=this.audioAd.isEmpty();!this.isDsaAd()||g||m||n(247).trackDsaAdReceived(this.audioAd,this.dsaConfig);break;default:0}this.firedEvents.add(e)}},t.trackQuartile=function(){if(this.audioAd){var e=this.audioAd.getSound().progress();e>=a||(e>=r&&!this.firedEvents.has(n(61).AudioAdTrackingEvents.FIRST_QUARTILE)&&this.track(n(61).AudioAdTrackingEvents.FIRST_QUARTILE),e>=i&&!this.firedEvents.has(n(61).AudioAdTrackingEvents.SECOND_QUARTILE)&&this.track(n(61).AudioAdTrackingEvents.SECOND_QUARTILE),e>=o&&!this.firedEvents.has(n(61).AudioAdTrackingEvents.THIRD_QUARTILE)&&this.track(n(61).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 r=n(1).partition(this.unfiredProgressTrackers,(function(e){return e.offset_in_ms<=t})),i=r[0],o=r[1];i.forEach((function(e){return n(164).log(e.urls,{contentPlayheadInMs:t})})),this.unfiredProgressTrackers=o}},t.isDsaAd=function(){return n(82).isCountryEU()},e}();e.exports=s},138:function(e,t,n){var r=/\s/,i=/([a-z])([A-Z])/g;e.exports={usertext:n(438).withDefaults(n(439).default),usertextOneline:n(438).withDefaults(n(439).oneline),splitWords:function(e){return e?r.test(e)?e:e.replace(i,"$1​$2"):""}}},1381:function(e,t){function n(e){return"/"+Array.prototype.filter.call(arguments,Boolean).join("/")}function r(e,t,n,r){return"recommended"===r&&(r="related"),this.apply("listen-network",{userPermalink:e,soundPermalink:t,secretToken:n,subpage:r})}e.exports=[{name:"listen",route:"(?::secretToken(?:/|$))?(?:comment-:id)?",handler:function(e,t,n,r){return this.apply("listen",{userPermalink:e,soundPermalink:t,secretToken:n,commentId:parseInt(r,10),renderInWebi:{featureGateName:"webi_track_page"}})}},{route:"(?::secretToken/)?groups",code:410,redirect:function(e,t,r){return n(e,t,r)}},{route:"(?::secretToken/)?(likes)",handler:r},{route:"(?::secretToken/)?(reposts)",handler:r},{route:"(?::secretToken/)?(sets)",handler:r},{route:"(?::secretToken/)?(albums)",handler:r},{route:"(?::secretToken/)?(recommended)",handler:r},{route:"(?::secretToken/)?comments(?:/:id)?",redirect:function(e,t,r,i){return n(e,t,r,i?"comment-"+i:null)}},{route:"(?::secretToken/)?related",redirect:function(e,t,r){return n(e,t,r,"recommended")}},{route:"download(?:.(?:mp3|wave|aiff|aac|flac|m4a))?(?:/:secretToken)?",code:410,redirect:function(e,t,r){return n(e,t,r)}},{route:"edit",redirect:function(e,t){return n(e,t)}}]},1382: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,r){return this.apply("listen-network",{userPermalink:e,playlistPermalink:t,secretToken:n,subpage:r})}},{route:"edit",redirect:function(e,t){return"/"+e+"/sets/"+t}}]},1383:function(e,t){function n(e,t){return this.apply("user",{userPermalink:e,subpage:t})}function r(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:r},{route:"(followers)",handler:r},{route:"(following)",handler:r},{route:"(comments)",handler:r},{route:"favorites",redirect:function(e){return"/"+e+"/likes"}},{route:"groups|spotlight",code:410,redirect:function(e){return"/"+e}}]},1384:function(e,t,n){function r(e){return this.apply("collection",{subpage:e})}function i(e){return"/"+this.getCurrentUserPermalink()+"/"+e}function o(){return this.getFeatureValue("can_see_revshare_premier_agreement")}function a(){return this.getFeatureValue("can_see_revshare_pro_agreement")}e.exports=[{route:"",requiresLogin:!0,redirect:function(){return"/"+this.getCurrentUserPermalink()}},{route:"tracks",requiresLogin:!0,handler:function(){var e=this;return this.getFeatureGateValue("webi_artiststudio_toolbar").then((function(t){return t?e.navigate("/artists",{replace:!0,trigger:!0}):e.apply("track-manager",{renderInWebi:!0,cutoverToWebi:!0})}))}},{route:"(collection)",redirect:function(){return"/you/library"}},{route:"(library)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(likes)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(sets)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(albums)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(following)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(stations)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(history)",requiresLogin:!0,handler:r,meta:{feature:"collection"}},{route:"(followers)",requiresLogin:!0,redirect:i},{route:"(comments)",requiresLogin:!0,redirect:i},{route:"(reposts)",requiresLogin:!0,redirect:i},{route:"subscriptions",requiresLogin:!0,handler:function(e){return this.apply("subscriptions",{subpage:e})}},{route:"premier",handler:function(){return o.call(this)?this.apply("oscp",{subpage:"agreement"}):a.call(this)?this.apply("track-monetization",{subpage:"agreement"}):this.navigate("/you/sc_monetization?ref=t677",null,{replace:!0,trigger:!0})},meta:{sitemap:[{loc:"premier",changefreq:n(71).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){return a.call(this)&&"resources"===e?this.apply("track-monetization",{subpage:e}):this.navigateToRoute("premier",null,{replace:!0,trigger:!0})}},{route:"sc_monetization",handler:function(){if(o.call(this)||a.call(this))return this.navigateToRoute("premier",null,{replace:!0,trigger:!0});if(this.isPremium())return this.apply("track-monetization",{subpage:"pre-repostnetwork-redirect"});var e=this.getQueryParams();return this.navigate(n(64).getCreatorLink({tcode:null==e?void 0:e.ref}).link,{hard:!0})}},{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})}}]},1385:function(e,t){e.exports=[{route:"",requiresLogin:!0,redirect:function(){return"you/insights/overview"}},{route:"overview",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"audience",requiresLogin:!0,redirect:function(){return"you/insights/audience/listeners"}},{route:"audience/locations",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"audience/listeners",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks/:sound",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks/:sound/audience",requiresLogin:!0,redirect:function(e){return"you/insights/tracks/"+e+"/audience/listeners"}},{route:"tracks/:sound/audience/listeners",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks/:sound/audience/locations",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"sources",requiresLogin:!0,redirect:function(){return"you/insights/sources/internal"}},{route:"sources/internal",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"sources/external",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks/:sound/sources",requiresLogin:!0,redirect:function(e){return"you/insights/tracks/"+e+"/sources/internal"}},{route:"tracks/:sound/sources/internal",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"tracks/:sound/sources/external",requiresLogin:!0,handler:function(){return this.apply("insights")}},{route:"fans",requiresLogin:!0,handler:function(){return this.apply("insights")}}]},1386: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/1RmWWPrsZxhGJHN1WqRtkehpP3pEbVL9_XU0-7bCthw8/viewform"}}]},1387:function(e,t){e.exports=[{route:".*",requiresLogin:!0,meta:{webiOnly:!0},handler:function(){return this.apply("artist-studio",{renderInWebi:!0})}}]},1388:function(e,t){e.exports=[{route:"",redirect:"/you/stations"},{route:":stationType/:stationIdentifier",handler:function(e,t){return this.apply("station",{type:e,identifier:t})}}]},1389:function(e,t,n){function r(e,t,r){var i=n(1).findWhere(e,t);return i?i.id:r}e.exports=[{route:"(top|new)?",handler:function(e){var t=this.getQueryParams();return this.apply("charts",{chartKind:r(n(152).kinds,{urlPart:e},n(152).defaultKind),genre:r(n(152).genres,{id:t.genre},n(152).defaultGenre),country:r(n(152).countries,{id:t.country})})},meta:{sitemap:[{loc:"",changefreq:n(71).ChangeFrequency.hourly,priority:1},{loc:"top",changefreq:n(71).ChangeFrequency.hourly,priority:1},{loc:"new",changefreq:n(71).ChangeFrequency.hourly,priority:1}]}}]},139:function(e,t){e.exports={CANCELING:"canceling",EDITING:"editing",NONE:"none",SAVING:"saving"}},1390:function(e,t,n){e.exports=[{route:"",requiresLogin:!1,handler:function(){return this.apply("discover")},meta:{sitemap:[{loc:"",changefreq:n(71).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})}}]},1391: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(71).ChangeFrequency.monthly,priority:1}]}},{route:"finder|genre|find_friends",redirect:"/people"}]},1392:function(e,t,n){e.exports=[{route:"(.*)",handler:function(e){return this.apply("static-page",{pageName:"pages/"+e})},meta:{sitemap:[{loc:"privacy",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"oscp-privacy",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"cookies",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"competition",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"copyright/report",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"copyright",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"model-withdrawal-form",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"contact",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"modern-slavery-act",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"promote-terms-and-conditions",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"accessibility-statement",changefreq:n(71).ChangeFrequency.monthly,priority:.5}]}},{route:"embed",handler:function(){return this.apply("widgets")},meta:{sitemap:[{loc:"embed",changefreq:n(71).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})}},{route:"membership",requiresLogin:!0,meta:{webiOnly:!0},handler:function(){return this.apply("membership",{renderInWebi:!0})}},{route:"fireaid",redirect:"/n/pages/fireaid"},{route:"first_fans/:user/:sound",requiresLogin:!0,handler:function(e,t){return this.apply("listen",{userPermalink:e,soundPermalink:t})}},{route:"signed-out/cancel",handler:function(){return this.isCountryGermany()?this.apply("cancel-subscription-form"):this.navigateToRoute("recommended",null,{replace:!0,trigger:!0})}}]},1393:function(e,t){e.exports=[{route:".*",requiresLogin:!0,meta:{webiOnly:!0},handler:function(){return this.apply("vinyl-studio",{renderInWebi:!0})}}]},1394:function(e,t,n){e.exports=[{route:":tag",handler:function(e){var t=i(e.split("/")),n=t.tag,r=t.subpage;return this.apply("tags",{tag:n,subpage:r})}}];var r=["recent-tracks","popular-tracks","playlists"],i=function(e){var t=e.join("/"),i=r[0],o=e[e.length-1];return n(1395)(r,o)&&(i=o,t=e.slice(0,-1).join("/")),{tag:t=decodeURIComponent(t),subpage:i}}},140:function(e,t,n){var r=e.exports=new(n(47))("settings");n(1).forEach({volume:1,muted:!1,showTimeRemaining:!1,streamingQuality:null},(function(e,t){r.has(t)||r.set(t,e,{dontPersist:!0})})),r.finalize()},1418:function(e,t,n){e.exports=[{route:"(iphone|android)?",handler:function(e){return this.apply("download",{platform:e})},meta:{sitemap:[{loc:"",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"iphone",changefreq:n(71).ChangeFrequency.monthly,priority:.5},{loc:"android",changefreq:n(71).ChangeFrequency.monthly,priority:.5}]}}]},1419:function(e,t){e.exports=[{route:"(content|notifications|streaming|privacy|advertising|verification|two-factor)?",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"}]},1420: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(71).ChangeFrequency.monthly,priority:1}]}}]},1422:function(e,t,n){"use strict";function r(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),i=1;i":">",'"':""","'":"'","`":"`"},i=/&(?!\w+;)|[<>"'`]/g,o=/[&<>"'`]/,a=function(e){return r[e]||"&"}},1425:function(e,t,n){"use strict";e.exports=function(e,t,n){if(!e||n&&n.test(t))return t;return e.replace(r,window.encodeURIComponent(t))};var r=/%s/},1426:function(e,t,n){"use strict";var r=n(806);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)})),i.innerHTML+(i.innerHTML===o.innerHTML?"":"…")};var i=document.createElement("div"),o=document.createElement("div")},1427: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,r){return e.push({href:n,text:r}),"xxxLINK"+t+"|"+(e.length-1)+"xxx"},flatten:function(t,r){var i=t.replace(n,(function(t,n){var i=e[parseInt(n,10)];return i?r(i.href,i.text):t}));return e.length=0,i}}}},1428:function(e,t,n){"use strict";var r=n(806);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 i.innerHTML=e,r(i,(function(e){n.lastIndex=0,n.test(e.data)&&(e.data=e.data.replace(n,(function(e){return e.split(o).filter(Boolean).join("​")})))})),i.innerHTML};var i=document.createElement("div")},1429:function(e,t,n){"use strict";var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)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(i)||[],a=r(o,1)[0];if(a&&e.length>t){var s=e.search(i)+a.length,u=Math.floor((t-s)/2);return e.slice(0,s+u)+"…"+e.slice(-u)}return e};var i=/\.[a-z-]{2,30}\//},148:function(e,t,n){"use strict";n.r(t),n.d(t,"trackHomeHookImpression",(function(){return s})),n.d(t,"trackHomeHookButtonClick",(function(){return u})),n.d(t,"trackHomeHookSeeAllYourTracks",(function(){return c})),n.d(t,"trackHomeHookEditTrack",(function(){return l})),n.d(t,"trackHomeHookShare",(function(){return d})),n.d(t,"trackHomeHookCopyLink",(function(){return f})),n.d(t,"trackHomeHookDistribute",(function(){return h})),n.d(t,"trackHomeHookAddToNextUp",(function(){return p})),n.d(t,"trackHomeHookAddToPlaylist",(function(){return g})),n.d(t,"trackHomeHookReport",(function(){return m})),n.d(t,"trackHomeHookDSAReport",(function(){return v})),n.d(t,"trackHomeHookGoToStation",(function(){return y})),n.d(t,"trackHomeHookDeleteTrack",(function(){return _})),n.d(t,"trackHomeHookPlayTrack",(function(){return b})),n.d(t,"trackHomeHookPauseTrack",(function(){return k}));var r=n(1),i=n.n(r),o=(n(412),n(55),n(15)),a=n.n(o);function s(e,t){a.a.tracking.track("Home Hook Component Viewed",{component_name:e,track_urn:t})}function u(e,t,n){a.a.tracking.track("Home Hook Component Button Clicked",{component_name:e,button_id:t,track_urn:n})}function c(e){a.a.tracking.track("Home Hook Component Button Clicked",{component_name:"Recently Uploaded Track",button_id:"View Track Manager",track_urn:e})}function l(e,t){A(null==t?void 0:t.ui_component_name)&&(a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Track Edit",track_urn:e}),a.a.tracking.track("Track Edit Started",{track_urn:e}))}function d(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Share Track",track_urn:e})}function f(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Copy Link",track_urn:e})}function h(e,t){A(null==t?void 0:t.ui_component_name)&&(a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Distribute",track_urn:e}),a.a.tracking.track("Distribution Funnel Started",{track_urn:e}))}function p(e,t){A(null==t?void 0:t.ui_component_name)&&(a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Add to Next Up",track_urn:e}),a.a.tracking.track("Track Added To Next Up",{track_urn:e}))}function g(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Add to Playlist",track_urn:e})}function m(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Report",track_urn:e})}function v(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Report DSA",track_urn:e})}function y(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Station",track_urn:e})}function _(e,t){A(null==t?void 0:t.ui_component_name)&&(a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Delete Track",track_urn:e}),a.a.tracking.track("Track Deletion Started",{track_urn:e}))}function b(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Play",track_urn:e})}function k(e,t){A(null==t?void 0:t.ui_component_name)&&a.a.tracking.track("Home Hook Component Button Clicked",{component_name:t.ui_component_name,button_id:"Pause",track_urn:e})}function A(e){return!!e&&i.a.includes(["First Upload Nudge","Recently Uploaded Track"],e)}},15:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;tt?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(r||(r=new(n(1207))),r).countGraphemes(e)},normalizeString:function(e){return e&&e.toString()}};function s(e){return e.replace(/[-\/\\$\^*+?.()|\[\]{}]/g,"\\$&")}function u(e){return e.toUpperCase()}},158:function(e,t,n){"use strict";n.r(t);var r=n(47),i=n.n(r),o=n(102),a=n(68),s=n.n(a),u=n(488);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n").html(e)).find("a").each((function(e,r){var o=t(r),a=r.getAttribute("href");if(!i.test(a)){var s=n(32).parse(a);if(s.path){var c=u.getRouteInfo(s.path);if(c)if("listen"===c.name){var l=s.path.split("/").slice(1);o.text(n(428).capitalize(l[0])+" – "+n(428).capitalize(l[1]))}else if("user"===c.name){var d=s.path.split("/")[1];if(u.getReservedKeywords().indexOf(d)>-1)return;o.addClass("g-link-user");var f=r.previousSibling;if(3===(null==f?void 0:f.nodeType)&&/@$/.test(f.textContent))return;r.parentNode.insertBefore(window.document.createTextNode("@"),r),o.text(d)}}}})),e.html()},getRouteInfo:function(e){var t=e.replace(/^\//,"");return n(1).find(s,(function(e){return e.route.test(t)}))},getAudibleModels:function(e){var t=this.filterAudibleLinks(e),r=n(10).defer(),i=t.map((function(e){return"listen"===e.info.name?n(27).resolve.apply(n(27),e.info.params):"playlist"===e.info.name?n(65).resolve.apply(n(65),e.info.params):"discover/(?:sets/:systemPlaylistPermalink)"===e.info.name?n(112).resolve.apply(n(112),e.info.params):void 0}));return n(10).settled(i).always((function(){for(var e=arguments.length,i=new Array(e),o=0;o-1&&e.push({info:i,link:n}),e}),[])},formatUserGeneratedLink:function(e){var t=n(32).parse(e);return r.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(138).usertext.redirectLink(e)},isEmail:function(e){return o.test(e)},usernameLinkForTemplate:function(e,t){return e?n(18).el("a",{href:n(31).getRoute("user",e),class:t||""},[n(14).Utils.escapeExpression(e.username)]):""},getUserLink:function(e){return e?n(31).getRoute("user",e):null}}}).call(this,n(25))},1616:function(e,t,n){e.exports=new(n(23))(n(1617),{constraints:null,constraintConditions:null,before:{initialize:function(){r.call(this)}},override:{_validate:function(){return!0},isValid:function(){return n(1).every(this.fields,(function(e){return e.validity===n(76).VALID}))}},hasConstraintsOwnedBy:function(e){return l.call(this,e).length>0},setFieldValidation:function(e,t,r){var i=this.fields[e],o=t===n(76).VALID;i.validity=t,i.isValid===o&&i.message===r||(i.message=r,i.isValid=o,this.trigger("validation:"+e,i))},resetFieldValidation:function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;i0?n(1).flatten(r):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,r=new Array(t),i=0;i0&&n(1).flatten(r))&&(r.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,i=new Array(t),o=0;o0?n(1).flatten(e):n(1).keys(this.fields)}function i(e){return n(1).isObject(e)&&!n(1).isArray(e)}function o(){this.fields=n(1).reduce(this.fields,a,{},this),this.set(n(1).assign(n(1).reduce(this.fields,u,{},this),this.attributes),{silent:!0}),this.resetChanges()}function a(e,t,r){return e[r]=n(1).defaults(n(1).reduce(t,s,{},this),{isDirty:!1}),e}function s(e,t,r){var i;return"function"==typeof t&&!1===n(1).includes(["toFormValue","toModelValue"],r)&&(t=t.call(this)),null!=(i=t)&&i.hold&&i.release&&this._submodels.push(t),e[r]=t,e}function u(e,t,n){return e[n]=t.defaultValue,e}},1618:function(e,t,n){e.exports=new(n(23))({before:{initialize:function(){r.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 r=n.fn.apply(this,Array.prototype.slice.call(arguments,1));return r&&"function"==typeof r.state&&("pending"===r.state()&&(this.setActionState(e,"pending"),r.always((function(){"pending"===t.getActionState(e)&&t.setActionState(e,"enabled")}))),r.then((function(n){t.trigger("complete:action:"+e,n)}),(function(n){t.trigger("fail:action:"+e,n)}))),r}},getActionState:function(e){return this.actions[e].state},setActionState:function(e,t){var r=this.actions[e];r.state!==t&&(this.trigger("change:action:"+e,t,r.state),r.state=t,this.buttons&&n(1).each(this.buttons,(function(n,r){n.action===e&&this.setButtonConfig(r,{state:t})}),this))}});function r(){this.actions=n(1).reduce(this.actions,(function(e,t,r){return"default"===r?e.default=t:n(1).isFunction(t)?e[r]={fn:t,state:"enabled"}:e[r]=n(1).assign({state:"enabled"},t),e}),{})}},1619:function(e,t,n){e.exports=new(n(23))({before:{initialize:function(){r.call(this)}},buttons:null,setButtonConfig:function(e,t){var r,i=this.buttons[e],o={};n(1).each(t,(function(e,t){i[t]!==e&&(r=!0,o[t]=i[t]=e)})),r&&this.trigger("change:button:"+e,o)}});function r(){var e=this.buttons;this.buttons={},n(1).each(e,(function(e,t){this.buttons[t]=n(1).clone(e);var r=i.call(this,t);this.setButtonConfig(t,{state:(null==r?void 0:r.state)||"enabled"})}),this)}function i(e){var t=this.buttons[e];return n(1).find(this.actions,(function(e,n){return n===t.action}))}},162:function(e,t,n){e.exports=n(108).extend(n(813),n(339),n(816),n(1622),n(818),n(819),{fields:{offlineSyncEnabled:{defaultValue:!0},snippet_presets:{defaultValue:null}},constraints:{title:[[n(96),{message:n(2).Lingua.t("Enter a title.")}],[n(119),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a title that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],description:[[n(119),{maxLength:4e3,message:function(){return n(2).Lingua.t("Enter a track description that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],permalink:[[n(445),{type:"sound",getResource:function(){return this.getAudible()}}],[n(96),{message:n(2).Lingua.t("Enter a permalink."),shouldCheck:function(){return this.isEdit}}]],tags:[[n(691)]],customGenre:[[n(119),{maxLength:100,message:function(){return n(2).Lingua.t("Enter a custom genre that is up to [[maxLength]] characters.",{maxLength:this.maxLength})}}]],caption:[[n(119),{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","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;i.call(this).then((function(){return e.cancel()}))}},setup:function(e,t){if(this.listenTo(this,"upload:completed:saved",r),t.isEdit){var i=this.requiredModelAttributes.map((function(e){return"change:"+e}));this.isEdit=!0,this._sound=new(n(27))({id:t.resource_id}),this.listenTo(this._sound,i.join(" "),a),this._sound.attrExists(this.requiredModelAttributes)?this.setToModelAttributes():this._sound.fetch({attrs:this.requiredModelAttributes}).fail((function(){n(262).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(19).trackUploadFunnel({chapter:"cancel",uploadId:t}),this.isEdit?(this.setToModelAttributes(),this.trigger("canceled")):(this.destroy(),this._sound&&n(50).destroy(this._sound))},createAudible:function(){return this._sound=new(n(27))(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&&(r=e.scheduled_public_date,i=Math.round(((new Date).setTime(r)-Date.now())/n(41).MS_IN_DAY),n(19).trackV1Click({click_name:"track-edit::saved_with_scheduling",click_attributes:{user_subscription:n(6).get("me").getCreatorSubscriptionIdentifier(),daysScheduled:i}}));var r,i;if(n(6).get("me").hasMonetization()){s(t.geo_blockings,e.geo_blockings)&&(f=e.geo_blockings,h=f&&f.length>0,n(19).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)&&(l=o.territories,d=a.territories,n(1).isEmpty(l)&&!n(1).isEmpty(d)?n(19).trackV1Click({click_name:"track-edit::enable_monetization",click_attributes:{blocked_countries:d}}):!n(1).isEmpty(l)&&n(1).isEmpty(d)&&n(19).trackV1Click({click_name:"track-edit::disable_monetization"}),n(19).trackV1Click({click_name:"track-edit::saved_with_monetization_changes"})),s(o.start_timestamp,a.start_timestamp)&&(c=a.start_timestamp,n(19).trackV1Click(c?{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(19).trackV1Click(u?{click_name:"track-edit::enable_end_monetization"}:{click_name:"track-edit::disable_end_monetization"}))}var u;var c;var l,d;var f,h}(e,t),u.call(this))},onAudibleSaved:function(){var e,t,r,i=this.getAudible();if(this.isEdit){var o,a=Boolean(null==i||null==(o=i.getSounds()[0])?void 0:o.get("caption"));if(n(11).trigger("sound:saved",i),n(19).trackV0Click(null,{click_name:"track::edit_saved",click_object:i.getUrn(),click_attributes:{has_caption:a}}),n(6).get("me").hasMonetization())return function(e){return n(10).delay(2e3).then((function(){return e.fetch({attrs:["monetization_enabled"]})}))}(i)}else e=i,(r=n(1005).instances.get(n(17).currentUserId()))&&(t=n(650).convert(e),r.add(t,{at:0}),t.release());return n(10).resolve()},onSaveFailed:function(e){var t=this.getFileUpload();this.setToFailed("save",e),this.set("editing",!0);var i=function(e){var t=(void 0===e?{}:e).responseJSON;try{return t.errors[0].error_type}catch(e){return""}}(e);"QUOTA_EXCEEDED"===i&&(n(11).trigger("quota:exceeded"),this.set("savingFailed",i)),t&&n(19).trackUploadFunnel({chapter:["failed","save"],uploadId:t.getTrackingId()}),r()},hasFailed:function(){return!!this.get("fileUploadFailed")||!!this.get("savingFailed")},failedDueToQuota:function(){return"QUOTA_EXCEEDED"===this.get("savingFailed")},getAttributesToBeSaved:function(){var e=n(1).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(1).assign(e,this.getUploadAttributes()),e},getAttributesFromModel:function(){var e=this.getAudible(),t=n(1).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(7).LinguaLib.dateTimeHelper.fromString(e.get("release_date")),t.offlineSyncEnabled=e.isOfflineSyncEnabled(),t},updateSound:function(e){this._sound&&(this._sound.release(),this._sound=e)}},{neverRelease:!0,hashFn:function(e,t){return e.resource_id||(null==t?void 0:t.resource_id)||e.id||null}});function r(){n(6).get("me").fetch()}function i(){return this.isEdit?n(10).resolve():n(407).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(10).resolve():n(10).reject()}))}function a(){this.isDirty()||this.setToModelAttributes()}function s(e,t){return!n(1).isEqual(e,t)&&!(void 0===e&&null==t||null===e&&void 0===t)}function u(){var e=["fileUpload","artwork_url"],t=Object.keys(this.fields).filter((function(t){return!e.includes(t)})),r=this._sound.getUrn();this.isDirty("artwork_url")&&n(586).trackImageUpdated(r),this.isDirty("fileUpload")&&n(586).trackTrackFileReplaced(r),this.isDirty(t)&&n(586).trackMetadataUpdated(r)}},1620:function(e,t,n){var r=[{rule:/^(?![_-])/,errorMessage:n(2).Lingua.t("Profile URLs must not start with an underscore or hyphen.")},{rule:/^(?!.*[-_]$)/,errorMessage:n(2).Lingua.t("Profile URLs must not end with an underscore or hyphen.")},{rule:/^(?!.*[\-_]{2,})/,errorMessage:n(2).Lingua.t("Profile URLs must not have two consecutive underscores or hyphens.")},{rule:/^[a-z0-9_-]*$/,errorMessage:n(2).Lingua.t("Use only numbers, lowercase letters, underscores, or hyphens.")},{rule:/^.{3,25}$/,errorMessage:n(2).Lingua.t("Profile URLs must be between 3 and 25 characters.")},{rule:new RegExp("^(?!("+["101","accessibility-statement","accounts","activate","activity","admin","android","announcements","api","apple-app-site-association","apps","artworks","artists","assets","blog","charts","checkout","comments","community-guidelines","connect","customize","creativecommons","creator","creators","dashboard","digital-services-act","download","dropbox","emails","errors","events","explore","facebook","faqs","favorites","feed","feedbacks","feeds","for","forums","genres","getstarted","gifts","go","google_plus","go-terms-of-use","groups","guestlist","help","hot","invite","imprint","iphone","ipad","ipod","jobs","latest","law-enforcement-guidelines","login","logout","mac","manage","me","messages","mobile","moderation-and-enforcement-policies","music","newsletters","notifications","oauth","oauth2","orders","oembed","pages","partners","people","player","playlists","popular","posts","press","pro","press_release","recommended","referidos","referidos-gracias","revshare","search","session","sets","settings","signin","sign-in","signup","sign-up","sitemap","sound","sounds","stations","stats","stories","stream","student","subscription","tags","terms-of-use","terms-of-use-pro","tour","tracks","track-manager","transparency-reports","turn_off_notifications","upload","users","videos","waveform","welcome","widgets","you"].join("|")+")$)"),errorMessage:n(2).Lingua.t("This permalink is reserved. Enter another one.")}];e.exports=n(118).extend({initialize:function(){n(118).prototype.initialize.apply(this,arguments),this.constraints=r},checkExisting:!0,check:function(e,t){var r=this;if(""!==e){var i=n(1).find(this.constraints,(function(t){return t.rule.lastIndex=0,!t.rule.test(e)}));i||!this.checkExisting?(this.message=null==i?void 0:i.errorMessage,t(!i)):this.resolvePermalink(e).done((function(){r.message=n(2).Lingua.t("This profile URL is already in use. Try a different one."),t(!1)})).fail((function(){t(!0)}))}else t(!0)},resolvePermalink:function(e){var t=this.getResource.call(this._form);return t&&e===t.get("permalink")?n(10).reject():n(43).resolve(e)}})},1621:function(e,t,n){e.exports=new(n(23))({requires:["getAudible"],merge:{fields:{geoblocking:{defaultValue:!1},availableCountries:{defaultValue:function(){return n(74).countryCodes()}}},requiredModelAttributes:["geo_blockings"]},before:{setup:function(){var e=this;this.listenTo(this,"change:geoblocking",(function(t,r){r||e.set("availableCountries",n(74).countryCodes())}))}},around:{getAttributesToBeSaved:function(e){for(var t=this.get("availableCountries"),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o1?t-1:0),i=1;i1?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(23))({applyTo:function(e){t.extend(!0,e,{fields:r,constraints:{scheduledPublicDate:[[n(96),{message:n(2).Lingua.t("Select a date and time.")}],n(446),n(584)],scheduledTimezone:[[n(96),{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",i)}},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 i(){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(25))},1624:function(e,t,n){var r=/\W+/g,i=/^\w\d{10}$/;e.exports=n(118).extend({message:n(2).Lingua.t("This is an invalid ISWC."),check:function(e,t){t(!(e=e.replace(r,"")).length||i.test(e))}})},1625:function(e,t,n){var r=/\W+/g,i=/^\w{5}\d{7}$/;e.exports=n(118).extend({message:n(2).Lingua.t("This is an invalid ISRC."),check:function(e,t){t(!(e=e.replace(r,"")).length||i.test(e))}})},1626:function(e,t,n){var r=/\s+/g,i=/^\d{6,18}$/;e.exports=n(118).extend({message:n(2).Lingua.t("This is an invalid barcode."),check:function(e,t){t(!(e=e.replace(r,"")).length||i.test(e))}})},1628:function(e,t,n){e.exports=n(118).extend({nullable:!1,message:n(2).Lingua.t("Enter at least one territory."),check:function(e,t){t(e&&e.length>0)}})},1629:function(e,t,n){e.exports=n(118).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(1).every(e||[],r))}});function r(e){var t=n(6).get("me").hasOnlyOneRightsholderLink();return n(1).has(e,"rightsholder_urn")||!t?Boolean(e.territory&&e.rightsholder_urn):Boolean(e.territory)}},1630:function(e,t,n){e.exports=n(1631).extend({check:function(e,t,n){n(!(e[0]&&e[1])||e[0]-1},getOwnerField:function(){return this.fields[0]}});function i(e){return null==e}n(443).applyTo(r.prototype)},164:function(e,t,n){"use strict";n.r(t),n.d(t,"getTrackerUrls",(function(){return m})),n.d(t,"log",(function(){return v})),n.d(t,"logEvent",(function(){return y}));var r=n(6),i=n.n(r),o=n(68),a=n.n(o),s=n(7),u=n(1),c=n.n(u),l=n(15),d=n.n(l),f=c.a.flatten,h={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"]},p=function(e){(new window.Image).src=e},g=!1;function m(e,t){return f((h[e]||[]).map((function(e){return t[e]||[]})))}function v(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),g||i.a.get("features")&&(i.a.get("features").has("debug_ad_trackers")&&(window.__sc_ad_trackers=[],p=function(e){window.__sc_ad_trackers.push(e),(new window.Image).src=e}),g=!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((o=1e7,u=99999999,o=Math.ceil(o),u=Math.floor(u),Math.floor(Math.random()*(u-o+1))+o));case"TIMESTAMP":return new Date(s.LinguaLib.dateTimeHelper.nowAtServer()).toISOString();case"CONTENTPLAYHEAD":return null!=t.contentPlayheadInMs?(i=t.contentPlayheadInMs,new Date(i).toISOString().substring(11,23)):e;case"SEGMENTANONYMOUSID":return function(){try{var e=JSON.parse(String(window.localStorage.getItem("ajs_anonymous_id")));return"string"==typeof e?e:""}catch(e){return""}}()||e;case"SCANONYMOUSID":return a.a.get("sc_anonymous_id")||e;case"SESSIONID":return(null==(r=d.a.getSessionProvider())?void 0:r.getCurrentSessionIdSync())||e;default:return e}var r,i,o,u}))}(e,t)})).forEach((function(e){p(e)}))}function y(e,t){return v(m(e,t.trackerUrlsByAdEvent||{}),t)}},165:function(e,t,n){var r,i=["album","ep","single","compilation"],o=((r={}).playlist=n(2).Lingua.t("Playlist"),r.album=n(2).Lingua.t("Album"),r.ep=n(2).Lingua.t("EP"),r.single=n(2).Lingua.t("Single"),r.compilation=n(2).Lingua.t("Compilation"),r),a=function(e){return function(t){return i.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"}},1652:function(e,t,n){e.exports=function(e){var t=n(361).createAbortController(),r=function(e,t){return n(389)((function(){return n(44).callEndpoint("uploadTranscodingTrigger",{id:e},null,null,null,{abort:t})}),(function(){return!0}),{maxRetries:5,abort:t})}(e,t.signal).then((function(){return function(e,t){var r,i,o,a=n(10).defer(),s=a.promise();function u(e){i=window.setTimeout(c,function(e){return r=!e&&r?Math.min(1e4,1.5*r):1e3}(e))}function c(){(function(e,t){return n(44).callEndpoint("uploadTranscodingStatus",{id:e},null,null,null,{abort:t})})(e,t).done(l).fail(d)}function l(e){switch(e.body.status){case n(317).QUEUED:case n(317).PREPARING:u();break;case n(317).TRANSCODING:u(e.body.percentage===o),o=e.body.percentage,a.notify(o);break;case n(317).FINISHED:a.resolve();break;case n(317).NOT_FOUND:case n(317).FAILURE:a.reject()}}function d(e){500===e.status?u():a.reject()}return u(),t.addAbortListener((function e(){window.clearTimeout(i),a.reject(),t.removeAbortListener(e)})),s}(e,t.signal)}));return r.abort=t.abort,r}},1657:function(e,t,n){e.exports={include:function(){n(1).defer(n(86).insertScript,"https://accounts.google.com/gsi/intermediate",{defer:!0})}}},166:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(50),i=n.n(r),o=n(60),a=n.n(o),s=n(30),u=n.n(s);function c(e,t,n){var r=d(e);return i.a.like(r,t,n).always((function(){r.release()}))}function l(e,t,n){var r=d(e);return i.a.repost(r,t,n).always((function(){r.release()}))}function d(e){var t=u.a.toComponents(e),n=t.collection,r=t.id;return new a.a({id:r,resource_type:f[n]})}var f={tracks:"sound",playlists:"playlist","system-playlists":"system-playlist"}},1676:function(e,t){function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);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.")}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;d--)o(l[d].value,l[d].index);for(var f=0;f0&&T>=_;T--)if(void 0!==d[T].ref&&!(d[T].ref1){var e=("0000"+(1679616*Math.random()).toString(36)).substr(-4);n(11).broadcast({excludeThis:!0},"instances:ping",e),n(1).delay((function(){n(275).visible()&&r.each((function(t,n){n!==u&&(t.get("pong")!==e&&(t.dispose(),delete o[n]))}))}),n(41).MS_IN_SECOND)}}function h(e){r.current.set("pong",e)}n(106).localStorage?(r=e.exports={initialize:function(){var e,r,p,g,m=this;for(a=window.localStorage,o={},this.current=o[u]=new i(u),o[u].store.write(),["each","some","every","map","filter","find"].forEach((function(e){m[e]=n(1)[e].bind(n(1),o)})),e=0,r=a.length;e=n?[r,i]:[r.concat(i),[]]},multisetCompare:function(e,t){return!(!r(e)||!r(t))&&(e===t||o(e,t)&&o(t,e))},equal:function(e,t,n){void 0===n&&(n=i);if(!r(e)||!r(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 r=0;r-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(i).map((function(t){return e[t]&&i[t]}),this).filter(n(1).identity).join("-");return t?"cc-"+t:"cc-by"}}},18:function(e,t,n){var r=e.exports={isVoidElement:n(1).memoize((function(e){return-1!==a.indexOf(e)})),isBoolAttribute:n(1).memoize((function(e){return-1!==o.indexOf(e)})),el:function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=""),r.isVoidElement(e)?i(e,t):i(e,t)+r.children(n)+function(e){return""}(e)},children:function(e){return Array.isArray(e)?e.filter(Boolean).join(""):e},voidEl:function(e,t){return void 0===t&&(t={}),i(e,t)},subview:function(e,t){return void 0===t&&(t={}),n(567).registerSubview(e,t)},reactSubview:function(e,t,r){return n(433).default.handlebarsHelper(e,t,r)},toAttributesString:function(e){var t,r,i=[];return n(1).each(e,(function(e,o){t=o+'="',r=[],n(1).isObject(e)?n(1).each(e,(function(e,t){r.push(t+":"+e)})):r.push(e),i.push(t+r.join(";")+'"')})),i.join(" ")}};function i(e,t){var i=function(e){return n(1).map(e,(function(e,t){return r.isBoolAttribute(t)?e&&t:t+'="'+e+'"'})).filter(Boolean).join(" ")}(t);return"<"+n(1).compact([e,i]).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"]},180:function(e,t,n){var r=["K","M","B"],i={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(1).defaults(t,i),t.max&&e>t.max)e=t.max,a=t.suffix;else if(t.useSIUnits){if(null===t.precision&&e<1e4)return n(7).LinguaLib.numberHelper.format(e);for(;e>=1e3&&o1?t-1:0),r=1;r= 4.3.0"],main:function(e,t,n,r,i){return'
\n
\n\n
\n \n
\n'},useData:!0})},1907:function(e,t,n){var r=n(12),i=n(1908);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},1908:function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(5),a=n.n(o)()(i.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-sidebar-left>.l-footer{position:fixed;bottom:0;width:200px}","",{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,yCAAyC,cAAc,CAAC,QAAQ,CAAC,WAAW",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-sidebar-left>.l-footer{position:fixed;bottom:0;width:200px}"],sourceRoot:""}]),t.default=a},1909:function(e,t,n){var r=n(14);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'
\n \n
\n\n
\n
\n'},useData:!0})},192:function(e,t,n){(function(t){var r=["altKey","shiftKey","ctrlKey","metaKey"],i=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(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.PlayPause,null==e?void 0:e.getUrn());n(349).playWithSignupWall((function(){n(20).toggleCurrent({userInitiated:!0})}))}},search:{keyCode:["83","191"],keyName:["S"],description:n(2).Lingua.t("Search"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Search),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,r){if(n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Load,null==e?void 0:e.getUrn()),!f(r)){if(n(246).shouldBlockScrubbing())return void n(246).pauseAndPromptSignup();n(20).seekCurrentTo((function(e){return e.getMediaDuration()/10*(t-48)}))}}},seekBackward:{keyCode:["37"],keyName:["←"],description:n(2).Lingua.t("Seek backward"),allowKeyHold:!0,fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.SeekBackward,null==e?void 0:e.getUrn()),d("prev")}},seekForward:{keyCode:["39"],keyName:["→"],description:n(2).Lingua.t("Seek forward"),allowKeyHold:!0,fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.SeekForward,null==e?void 0:e.getUrn()),d("next")}},repeat:{keyCode:["shiftKey+76"],keyName:["L","⇧"],description:n(2).Lingua.t("Repeat playing track"),fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Repeat,null==e?void 0:e.getUrn()),n(20).cycleRepeatMode()}},prev:{keyCode:["shiftKey+37","75"],keyName:["←","⇧"],description:n(2).Lingua.t("Play previous track"),fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Prev,null==e?void 0:e.getUrn()),n(20).playPrev({userInitiated:!0})}},next:{keyCode:["shiftKey+39","74"],keyName:["→","⇧"],description:n(2).Lingua.t("Play next track"),fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Next,null==e?void 0:e.getUrn()),n(20).playNext({userInitiated:!0})}},mute:{keyCode:["77"],keyName:["M"],description:n(2).Lingua.t("Mute volume"),fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Mute,null==e?void 0:e.getUrn()),n(107).toggleMuted()}},volUp:{keyCode:["shiftKey+38"],keyName:["↑","⇧"],description:n(2).Lingua.t("Increase volume"),allowKeyHold:!0,fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.VolUp,null==e?void 0:e.getUrn()),n(107).changeVolume(.1)}},volDown:{keyCode:["shiftKey+40"],keyName:["↓","⇧"],description:n(2).Lingua.t("Decrease volume"),allowKeyHold:!0,fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.VolDown,null==e?void 0:e.getUrn()),n(107).changeVolume(-.1)}},like:{keyCode:["76"],keyName:["L"],description:n(2).Lingua.t("Like playing track"),fn:function(e){e&&(n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Like,null==e?void 0:e.getUrn()),n(17).isLoggedIn()||n(218).trackTrackLikeAttempt(e.getUrn(),{ui_component_urn:null,ui_component_name:null}),n(50).like(e).then((function(t){t.state?n(218).trackTrackLiked(e.getUrn(),{ui_component_urn:null,ui_component_name:null}):n(218).trackTrackUnliked(e.getUrn(),{ui_component_urn:null,ui_component_name:null})})))}},repost:{keyCode:["82"],keyName:["R"],description:n(2).Lingua.t("Repost playing track"),fn:function(e){e&&(n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Repost,null==e?void 0:e.getUrn()),n(17).isLoggedIn()||n(219).trackRepostAttempted(e.getUrn()),n(50).repost(e).then((function(t){t.state?n(219).trackReposted(e.getUrn(),!1,{ui_component_name:null,ui_component_urn:null}):n(219).trackUnreposted(e.getUrn(),{ui_component_name:null,ui_component_urn:null})})))}},dialog:{keyCode:["72","shiftKey+191"],keyName:["H"],description:n(2).Lingua.t("Show keyboard shortcuts"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.Dialog),n(11).trigger("keyboard-shortcuts:toggle")}},gotoNowPlaying:{keyCode:["80"],keyName:["P"],description:n(2).Lingua.t("Navigate to playing track"),fn:function(e){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoNowPlaying,null==e?void 0:e.getUrn()),n(20).restoreState()}},gotoLikes:{chorded:!0,keyCode:["76"],keyName:["L"],description:n(2).Lingua.t("Navigate to Likes"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoLikes),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(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoCollection),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 Feed"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoStream),n(6).get("router").navigateToRoute("feed",[],{trigger:!0,replace:!1})}},gotoProfile:{chorded:!0,keyCode:["80"],keyName:["P"],description:n(2).Lingua.t("Navigate to Profile"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoProfile),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(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.GotoHistory),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(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.ToggleQueue),n(280).toggle()}},toggleShuffle:{keyCode:["shiftKey+83"],keyName:["S","⇧"],description:n(2).Lingua.t("Shuffle"),fn:function(){n(59).trackKeyboardShortcut(n(59).KeyboardShortcutType.ToggleShuffle),n(20).toggleShuffle()}}},disableAllShortcuts:function(){Object.keys(this.shortcuts).forEach((function(e){return s.add(e)}))},disableShortcutsExceptPlayerRelated:function(){var e=["playPause","seekBackward","seekForward","repeat","prev","next","mute","volUp","volDown"];Object.keys(this.shortcuts).filter((function(t){return!e.includes(t)})).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 r=e.keyCode,a=r===n(67).ENTER&&!e.isDefaultPrevented()&&t(e.target).is(":tabbable");e.isInput()||a||(u.processKey(r,e)&&(e.preventDefault(),o=!0),function(e){var t=e.keyCode;return t===n(67).SHIFT||t===n(67).CTRL||t===n(67).ALT||t===n(67).META_LEFT||t===n(67).META_RIGHT||t===n(67).META_RIGHT_OSX||t===n(67).META_FIREFOX_OSX}(e)||++i)},handleKeyUp:function(e){i=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 r,o,l=(r=c()[a?"chorded":"normal"][e],o=function(n,r){if(r){if(null!=t&&t[r])return 1}else if(!f(t)||!/[a-z0-9%']/i.test(String.fromCharCode(e)))return 0;return!1},(r&&n(1).reduce(r,(function(e,t,n){var r=o(t,n);return!1!==r&&(!e||r>e.value)?{item:t,value:r}:e}),void 0)||{}).item),d=l&&u.shortcuts[l];return!d||s.has(l)||i&&!d.allowKeyHold||d.fn(n(20).getCurrentSound(),e,t),p(),!!l}},c=n(1).memoize((function(){var e={chorded:{},normal:{}},t=/^(?:(\w+)\+)?(\d+)$/;return n(1).each(u.shortcuts,(function(n,r){var i=n.keyCode,o=n.chorded,a=e[o?"chorded":"normal"];i.forEach((function(e){var n=t.exec(e),i=n[1],o=void 0===i?"":i,s=n[2];a[s]||(a[s]={}),a[s][o]=r}))})),e})),l=n(1).throttle((function(e){n(20).seekCurrentBy((function(){return e}))}),200);function d(e){n(246).shouldBlockScrubbing()?n(246).pauseAndPromptSignup():l(1e3*Math.max(5,i)*("next"===e?1:-1))}function f(e){return e&&r.some(n(1).propertyOf(e))}var h=null;function p(){h&&(window.clearTimeout(h),h=null),a=!1}}).call(this,n(25))},1921:function(e,t,n){function r(e){var t,r=e.name.replace(/\.[a-z0-9]{2,}$/,"");return t=r.replace(/_/g," ").replace(/(\S)-(\S)/g,"$1 - $2"),(t=n(428).capitalize(t).trim())||r.trim()}function i(e){for(var t=e.length,n=new Array(t),r=0;r.loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center}.webiEmbeddedModuleContainer{position:relative}","",{version:3,sources:["webpack://./app/lib/webi-embed/webi-embedded-module-view.css"],names:[],mappings:"AAAA,oBAAoB,iBAAiB,CAAC,6BAA6B,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,6BAA6B,iBAAiB",sourcesContent:[".webiEmbeddedModule{position:relative}.webiEmbeddedModule>.loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center}.webiEmbeddedModuleContainer{position:relative}"],sourceRoot:""}]),t.default=a},2043:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-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=s},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleString=void 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")||""}},2046:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SceneLayer=void 0;var o=n(2047),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 i(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(858).CanBeDirty);t.SceneLayer=a},2047:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Canvas=void 0;var a=n(612),s=n(283),u=n(857),c=o(n(453)),l=function(){function e(){var e=this;this._onResize=new u.EventDispatcher,this.onWindowResize=function(){e.updateCanvasDimensions(),e._onResize.dispatch(void 0)},this.el=document.createElement("canvas"),this.el.setAttribute("style",c.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=(0,a.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 r=n.color,i=n.offset;return e.addColorStop(i,(0,s.colorToString)((0,s.cloneColor)(r,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,(0,a.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=l},2048:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=void 0,t.clamp=function(e,t,n){return Math.min(n,Math.max(t,e))}},2049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInserted=void 0,t.isInserted=function(e){return document.body.contains(e)}},205:function(e,t,n){"use strict";n.r(t),n.d(t,"Crossfade",(function(){return N})),n.d(t,"ENABLE_CROSSFADE_FLAG",(function(){return P.ENABLE_CROSSFADE_FLAG})),n.d(t,"CUTOVER_UPLOAD_FEATURE_GATE_NAME",(function(){return P.CUTOVER_UPLOAD_FEATURE_GATE_NAME})),n.d(t,"isCrossfadeOptOutCookieSet",(function(){return P.isCrossfadeOptOutCookieSet})),n.d(t,"isCrossfadeFeatureFlagEnabled",(function(){return P.isCrossfadeFeatureFlagEnabled})),n.d(t,"isCrossfadeEnabled",(function(){return P.isCrossfadeEnabled})),n.d(t,"isCrossfadeEnabledForCutoverFeature",(function(){return P.isCrossfadeEnabledForCutoverFeature})),n.d(t,"isV2LayoutEnabled",(function(){return P.isV2LayoutEnabled})),n.d(t,"isCrossfadeEnabledForCutoverFeatureName",(function(){return P.isCrossfadeEnabledForCutoverFeatureName})),n.d(t,"isCrossfadeUploadEnabled",(function(){return P.isCrossfadeUploadEnabled})),n.d(t,"setCrossfadeOptOutState",(function(){return P.setCrossfadeOptOutState}));var r=n(11),i=n.n(r),o=n(481),a=n(17),s=n.n(a),u=n(168),c=n(482),l=n(192),d=n.n(l),f=n(51),h=n.n(f),p=n(85),g=n.n(p),m=n(20),v=n.n(m),y=n(107),_=n.n(y),b=n(190),k=n.n(b),A=n(27),w=n.n(A),C=n(177),S=n.n(C),E=n(30),T=n.n(E),x=n(183),L=n.n(x),P=n(116),I=(n(577),n(158)),R=n(226);function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U="play change:playable buffering:start buffering:end pause seeked finish playerError dead playStart",N=new(function(e){var t,n;function r(){var t;return D(O(t=e.call(this,{id:"crossfade-iframe",initialPath:"/pages/standby",preRenderedIframeId:u.WebiIframeConfig.preloadedIframeId})||this),"_lastReturnFromWebiTimestamp",void 0),D(O(t),"_currentCrossfadeUploadStatus",void 0),D(O(t),"_currentSound",void 0),D(O(t),"_fullScreen",void 0),t._lastReturnFromWebiTimestamp=null,t._currentCrossfadeUploadStatus=null,t._currentSound=null,t._fullScreen=!1,t._addCrossfadeMessageHandlers(),t._syncPlaybackState=t._syncPlaybackState.bind(O(t)),t._handleAdManagerChangeSound=t._handleAdManagerChangeSound.bind(O(t)),t._handleAdManagerEndAdBreak=t._handleAdManagerEndAdBreak.bind(O(t)),t._handleAdManagerDismissLeaveBehind=t._handleAdManagerDismissLeaveBehind.bind(O(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,M(t,n);var o=r.prototype;return o.initializeCrossfade=function(){var e=this;if(Object(P.isCrossfadeFeatureFlagEnabled)()&&s.a.isLoggedIn())return this.initialize(),Promise.resolve(!0);var t=new L.a;return new Promise((function(n){var r="change:"+P.ENABLE_CROSSFADE_FLAG,o=function o(){t.has(P.ENABLE_CROSSFADE_FLAG)&&s.a.isLoggedIn()&&(t.off(r,o),i.a.off("connect:login",o),e.initialize(),n(!0))};t.on(r,o),i.a.on("connect:login",o)})).finally((function(){t.release()}))},o.initialize=function(){var t=this,n=e.prototype.initialize.call(this);return n.classList.add(u.WebiIframeConfig.baseClass),this.setV2Layout(),Object(R.onUserUpdate)((function(){t.setV2Layout()})),n.classList.add(u.WebiIframeConfig.hiddenClass),n.title=u.WebiIframeConfig.title,document.body.appendChild(n),this._subscribeToInitialSound(),this._listenToPlayManager(),this._listenToAdManager(),n},o.getLastReturnFromWebiTimestamp=function(){return this._lastReturnFromWebiTimestamp},o.markNavigatedAwayFromWebi=function(){this._lastReturnFromWebiTimestamp=Date.now(),Object(c.b)()},o.showCrossfadeIframe=function(e,t){void 0===t&&(t={fullScreen:!1});var n=this.sendMessage({kind:"navigate",href:Object(u.makeWebiIframeUrl)({route:e,relative:!0,theme:this._getTheme()})});return this._fullScreen=t.fullScreen,this._showCrossfadeIframeElement(),d.a.disableShortcutsExceptPlayerRelated(),n},o.hideCrossfadeIframe=function(){var e=this.sendMessage({kind:"navigate",href:Object(u.makeWebiIframeUrl)({route:"/pages/standby",relative:!0,theme:this._getTheme()})});return this._hideCrossfadeIframeElement(),d.a.enableAllShortcuts(),e},o.initiateCrossfadeUpload=function(e){return this.sendMessage({kind:"initiate-upload",files:e})},o._addCrossfadeMessageHandlers=function(){var e=this;this.setMessageHandler("play",(function(){var e=h.a.getCurrentAdSound();e?e.play():v.a.playCurrent()})),this.setMessageHandler("pause",(function(){var e=h.a.getCurrentAdSound();e?e.pause():v.a.pauseCurrent()})),this.setMessageHandler("play-track-urn",(function(e){var t=e.trackUrn;this._playCrossfadeTrack(t)})),this.setMessageHandler("seek",(function(e){var t=e.time;v.a.seekCurrentTo((function(){return t}))})),this.setMessageHandler("opt-out-of-webi",(function(){Object(P.setCrossfadeOptOutState)(!0),location.reload()})),this.setMessageHandler("dismiss-leave-behind",(function(){h.a.dismissLeaveBehind()})),this.setMessageHandler("route-change",(function(){e.toggleFullScreen()})),this.setMessageHandler("show-content-ignite-ads",(function(t){var n=t.showAds;e._showContentIgniteAds(n)})),this.setMessageHandler("ad-tracking-event",(function(e){var t=e.event,n=h.a.getCurrentAdController(),r=h.a.getCurrentAdVisualController(),i={scope:["webi"]};if(r)switch(t){case"ad-visual-impression":r.processImpression({context:i});break;case"ad-visual-error":r.processError({context:i});break;case"ad-visual-clickthrough":r.processClickthrough({context:i});break;case"why-ads-click":r.processWhyAdsClick({context:i})}else if(n)switch(t){case"why-ads-click":n.processWhyAdsClick({context:i})}})),this.setMessageHandler("set-upload-status",(function(e){var t;null!=(t=this._currentCrossfadeUploadStatus)&&t.hasUploadError||!e.hasUploadError||i.a.trigger("crossfadeUpload:error"),this._currentCrossfadeUploadStatus=e,i.a.trigger("crossfadeUpload:status",{status:e.status,progress:e.progress})})),this.setMessageHandler("ad-tracking-event",(function(e){var t=h.a.getCurrentAdController(),n=h.a.getCurrentAdVisualController(),r={scope:["webi"]};if(n)switch(e.event){case"ad-visual-impression":n.processImpression({context:r});break;case"ad-visual-error":n.processError({context:r});break;case"ad-visual-clickthrough":n.processClickthrough({context:r});break;case"why-ads-click":n.processWhyAdsClick({context:r})}else if(t)switch(e.event){case"why-ads-click":t.processWhyAdsClick({context:r})}}))},o.setPlayerVisibility=function(e){var t=this._iframeElement;t&&(t.classList.add("applyTransition"),t.classList.toggle("playerVisible",e))},o.toggleFullScreen=function(){var e=this._iframeElement;e&&(e.classList.remove("applyTransition"),e.classList.toggle("fullScreen",this._fullScreen))},o._setV2ControlsVisibility=function(e){var t=document.querySelector(".header");t&&t.classList.toggle("sc-hidden",!e);var n=document.querySelector(".playControls");n&&n.classList.toggle("sc-hidden",!e)},o._showCrossfadeIframeElement=function(){var e,t,n,r=this;null==(e=this._iframeElement)||e.classList.remove("sc-hidden"),null==(t=this._iframeElement)||t.focus(),this._setV2ControlsVisibility(!1),null==(n=this._iframeElement)||n.ownerDocument.body.classList.add("crossfade-iframe-active"),Object(P.isV2LayoutEnabled)().then((function(e){r._setV2ControlsVisibility(!!e)}))},o._hideCrossfadeIframeElement=function(){var e,t,n;null==(e=this._iframeElement)||e.classList.add("sc-hidden"),null==(t=this._iframeElement)||t.blur(),this._setV2ControlsVisibility(!0),null==(n=this._iframeElement)||n.ownerDocument.body.classList.remove("crossfade-iframe-active")},o._subscribeToInitialSound=function(){this._currentSound=h.a.getCurrentAdSound()||v.a.getCurrentSound(),this._currentSound&&this._subscribeToSound(this._currentSound)},o._subscribeToSound=function(e){this._currentSound=e,e.on(U,this._syncPlaybackState)},o._syncPlaybackState=function(){if(this._currentSound){var e={isPlayable:this._currentSound.isPlayable(),isLoading:this._currentSound.isBuffering(),isPlaying:this._currentSound.isPlaying(),playbackPosition:this._currentSound.currentTime(),isMuted:_.a.getMuted(),volume:_.a.getVolume(),lastUpdate:Date.now()};this.sendMessage({kind:"sync-playback-state",playbackState:e})}},o._unsubscribeFromCurrentSound=function(){this._currentSound&&this._currentSound.off(U,this._syncPlaybackState)},o._handlePlayManagerChangeSound=function(e){var t=this,n=e.current;this._unsubscribeFromCurrentSound(),n.getOrFetch(["urn","duration","full_duration","permalink_url","title","artwork_url","user"]).done((function(e){var n;t.sendMessage({kind:"set-current-track",track:{urn:e.urn,fullDuration:null!=(n=e.full_duration)?n:e.duration,permalinkUrl:e.permalink_url,title:e.title,artworkUrl:e.artwork_url,user:{username:e.user.username,permalinkUrl:e.user.permalink_url}}})})),this._subscribeToSound(n)},o._listenToPlayManager=function(){v.a.on(k.a.CHANGE_CURRENT_SOUND,this._handlePlayManagerChangeSound,this)},o._playCrossfadeTrack=function(e){var t;if((null==(t=this._currentSound)?void 0:t.getUrn())===e)v.a.playCurrent();else{var n=Number(T.a.toComponents(e).id),r=new w.a({id:n}),i=r.getQueueMetadataAt(0),o=i.sourceInfo,a=i.queryPosition,s=i.originalModel,u=new S.a({},{sound:r,sourceInfo:o,queryPosition:a,originalModel:s});v.a.replaceQueue([u],0)}},o._showContentIgniteAds=function(e){document.body.classList.toggle("show-ads",e)},o._listenToAdManager=function(){h.a.on(g.a.CHANGE_CURRENT_AD_SOUND,this._handleAdManagerChangeSound,this),h.a.on(g.a.END_AD_BREAK,this._handleAdManagerEndAdBreak,this),h.a.on(g.a.DISMISS_LEAVE_BEHIND,this._handleAdManagerDismissLeaveBehind,this)},o._handleAdManagerChangeSound=function(){this._unsubscribeFromCurrentSound();var e=h.a.getCurrentAdSound(),t=h.a.getCurrentAd(),n=h.a.getDsaConfig(),r=h.a.getAdBreakSize(),i=h.a.getCurrentAdIndex();this.sendMessage({kind:"set-current-ad",audioAd:t?{audio:{duration:e.duration(),advertiser:t.getAdvertiser()},companion_display:t.get("companion_display"),html_companion_display:t.get("html_companion_display"),leave_behind:t.get("leave_behind"),html_leave_behind:t.get("html_leave_behind")}:null,dsaConfig:n,index:i,total:r}),this._subscribeToSound(e)},o._handleAdManagerEndAdBreak=function(e){var t=e.upcomingSound;t&&(this.sendMessage({kind:"end-ad-break"}),this._unsubscribeFromCurrentSound(),this._subscribeToSound(t))},o._handleAdManagerDismissLeaveBehind=function(){this.sendMessage({kind:"leave-behind-dismissed"})},o._getTheme=function(){return I.default.getTheme()},o.setV2Layout=function(){var e=this;Object(P.isV2LayoutEnabled)().then((function(t){var n;null==(n=e._iframeElement)||n.classList.toggle(u.WebiIframeConfig.v2LayoutClass,t),t&&e._setV2ControlsVisibility(!0)}))},r}(o.a))},2053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ms2sec=t.timecode=void 0;t.timecode=function(e){var t=[],n=Math.floor(e/36e5),r=Math.floor(e/6e4%60),i=Math.floor(e/1e3%60);return n>0&&t.push(n),t.push(r<10&&n>0?"0"+r:r),t.push(i<10?"0"+i:i),t.join(":")},t.ms2sec=function(e){return Math.floor(e/1e3)}},2055:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaveformData=void 0;var r=n(612),i=function(e,t,n){var i;this.maxHeight=e,this.samples=t.reduce((function(t,n,r){return t[r]=function(e,t){return Math.round(Math.pow((e-t)/e,1/1.5)*e)}(e,n),t}),(i=t.length,(0,r.supportsTypedArrays)()?new Uint8Array(i):new Array(i))),this.duration=n};t.WaveformData=i},2056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_THEME=void 0;var r=n(611),i=(0,r.rgb)(68,68,68),o=(0,r.rgb)(140,140,140);t.BASE_THEME={backgroundGradient:[(0,r.colorStop)(0,o),(0,r.colorStop)(.7,o),(0,r.colorStop)(.701,(0,r.cloneColor)(o,.5)),(0,r.colorStop)(1,(0,r.cloneColor)(o,.5))],gapGradient:[(0,r.colorStop)(0,(0,r.cloneColor)(r.WHITE,0)),(0,r.colorStop)(.28,(0,r.cloneColor)(r.WHITE,.3)),(0,r.colorStop)(.7,(0,r.cloneColor)(r.WHITE,.5)),(0,r.colorStop)(.701,(0,r.cloneColor)(r.WHITE,.125)),(0,r.colorStop)(1,(0,r.cloneColor)(r.WHITE,0))],progressGradient:[(0,r.colorStop)(0,i),(0,r.colorStop)(.7,i),(0,r.colorStop)(.701,(0,r.cloneColor)(i,.5)),(0,r.colorStop)(1,(0,r.cloneColor)(i,.5))],durationIndicatorBg:(0,r.cloneColor)(r.BLACK,.8),durationIndicatorColor:r.ASH}},2057:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WAVEFORM_LIGHT_THEME=t.WAVEFORM_DARK_THEME=void 0;var r=n(611),i=n(2058);function o(e){if(e){var t=e.replace(/[^\d,]/g,"").split(",").map((function(e){return parseInt(e,10)}));return{r:t[0],g:t[1],b:t[2]}}}var a=o(i.DARK_THEME.colors.primary.rgb)||{r:255,g:255,b:255},s=o(i.DARK_THEME.background.surface.color)||{r:0,g:0,b:0,a:0},u=o(i.DEFAULT_THEME.colors.primary.rgb)||{r:0,g:0,b:0},c=o(i.DEFAULT_THEME.colors.secondary.rgb)||{r:102,g:102,b:102},l=o(i.DEFAULT_THEME.background.surface.color)||{r:255,g:255,b:255},d=o(i.DEFAULT_THEME.background.highlight.color)||{r:243,g:243,b:243},f=o(i.DEFAULT_THEME.colors.special.rgb)||{r:255,g:85,b:0};t.WAVEFORM_DARK_THEME={gapGradient:[],progressGradient:[(0,r.colorStop)(0,f),(0,r.colorStop)(1,f)],backgroundGradient:[(0,r.colorStop)(0,d),(0,r.colorStop)(.69999,d),(0,r.colorStop)(.7,(0,r.cloneColor)(d,.4)),(0,r.colorStop)(1,(0,r.cloneColor)(d,.4))],durationIndicatorBg:s,durationIndicatorColor:a},t.WAVEFORM_LIGHT_THEME={gapGradient:[],progressGradient:[(0,r.colorStop)(0,f),(0,r.colorStop)(1,f)],backgroundGradient:[(0,r.colorStop)(0,c),(0,r.colorStop)(.69999,c),(0,r.colorStop)(.7,(0,r.cloneColor)(c,.4)),(0,r.colorStop)(1,(0,r.cloneColor)(c,.4))],durationIndicatorBg:l,durationIndicatorColor:u}},206:function(e,t,n){e.exports=n(53).extend({sources:null,sourceOptions:null,_sourceModelCounts:null,_sourceModels:null,filters:null,_map:null,_dupes:null,_ignore:null,_bulkFetchDeferred:null,_ignoredCollections:null,setup:function(){E.call(this),this.sources.forEach(o.bind(this,!0)),this._sourceModels=[],this._dupes=[],this.filters=n(1).clone(this.filters||{}),a.call(this),this._ignore=[],this._ignoredCollections=[],this.fetch=function(e){function t(){r.cache={}}var r=n(1).memoize((function(){return e.apply(this,arguments).always(t)}),(function(e){return JSON.stringify(e)}));return r}(w),f.call(this,this.options.limit,!0)},setupSources:function(){0},setLimit:function(e){this.options.limit=e},setFilter:function(e,t){(t||this.filters[e])&&(t?(this.filters[e]||(this._map[e]=P(this._sourceModels.length)),this.filters[e]=t):(delete this.filters[e],delete this._map[e]),this.recalculateFilters())},bulkFetch:function(e,t){var r=this,i=this.options.limit,o=e-this.length,a=this._bulkFetchDeferred;return a&&!t?a:(a||(a=this._bulkFetchDeferred=n(10).defer().always((function(){r._bulkFetchDeferred=null,r.options.limit=i}))),o<=0||this.isFullyPopulated()?a.resolve():(this.options.limit=o,this.fetch({reset:!0}).done((function(){r.bulkFetch(e,!0)})).fail(a.reject),a))},audibleAt:function(e){var t=m.call(this,e);if(t){var n=t.source,r=t.index;if(n.audibleAt)return n.audibleAt(r);var i=this.at(e);return"sound"===i.resource_type||"playlist"===i.resource_type?i:null}},extractModel:null,remove:function(e,t){var r=this;void 0===t&&(t={});var i=t._propagateToSource;return void 0===i||i?(Array.isArray(e)||(e=[e]),e.forEach((function(e){var t=m.call(r,r.indexOf(e));t&&t.source.remove(t.model)}))):n(53).prototype.remove.call(this,e,n(1).defaults({_propagateToSource:!1},t)),this},isFullyPopulated:function(){return!r.call(this)},getNumSourceModels:function(){return this._sourceModels.length},recalculateFilters:function(){var e=this,t=this._ignore;n(1).each(this.filters,(function(t,n){e._sourceModels.forEach((function(r,i){e._map[n].set(i,t.call(e,r,i))}))})),b.call(this),n(176).multisetCompare(t,this._ignore)||(this.trigger("filterChanged"),k.call(this))},getPlaySource:function(){var e,t,r=this.constructor.getNewInstance(null,this.options);return r.release(),e=this,t=r,n(1).each(e.filters,(function(e,n){t.filters[n]||(t._map[n]=P(t._sourceModels.length)),t.filters[n]=e})),n(1).each(t.filters,(function(n,r){e.filters||(delete t.filters[r],delete t._map[r])})),t.recalculateFilters(),r}},{onCleanup:function(e){for(var t;t=e.sources.pop();)t.release(),o.call(e,!1,t);this._sourceModels=this._map=null}});function r(){return n(1).find(this.sources,i,this)}function i(e,t){if(this._ignoredCollections.indexOf(t)>-1)return!1;var n=e.isFullyPopulated(),r=h.call(this,e);return(!n||ro,u=i&&s||0===a&&this.isFullyPopulated();(u||s)&&(this.lastFetchTime=Date.now()),u&&this.trigger("reset",this,{})}function c(e,t,n){var r=t.indexOf(e);if(x.call(this,r,t,!0)){var i=r+s.call(this,t);this.lastFetchTime=Date.now(),0!==this._sourceModels.length||n.silent||this.trigger("reset",this,{}),y.call(this,e,t,i,n),b.call(this),k.call(this,n)}}function l(e,t,n){var r=n.index;if(x.call(this,r,t,!1)){var i=r+s.call(this,t);_.call(this,e,t,i)}}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 r=this,i=this.length,o=i+e,a={silent:t},s=!this.lastFetchTime,u=0;return this.sources.every((function(t,i){var c,l,d;if(n(1).contains(r._ignoredCollections,i))return!0;for(var f=r._sourceModelCounts[i];!p.call(r,t)&&r.lengthi}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 r,i,o,a,u,c=this._ignore,l=h.call(this,e),d=s.call(this,e),f=l-(r=c,i=d,o=d+l,a=n(1).sortedIndex(r,i),(u=n(1).sortedIndex(r,o))-a+(r[u]===o?1:0));return t.maxModels<=f}function g(e){for(var t=e,n=0,r=this._ignore.length;n-1)for(var n=0,r=this.sources.length;n=o))return{source:i,index:t,model:i.at(t)};t-=o}}function v(e){var t=this.sources.indexOf(e);t>-1&&tr&&n[t]++}var s=r===this._sourceModels.length?function(e,t){e.push(t)}:function(e,t){e.splice(r,0,t)};if(e instanceof this.model||(e=this.extractModel(e,r)),e){this._sourceModelCounts[this.sources.indexOf(t)]++;var u=this.indexesOfEquivalentModels(e,this._sourceModels);u.forEach((function(e){e>=r&&o._dupes[e].push(r)})),s(this._sourceModels,e),s(this._dupes,u.filter((function(e){return er&&n[t]--}var a=r===this._sourceModels.length-1?function(e){e.pop()}:function(e){e.splice(r,1)};a(this._sourceModels),a(this._dupes),n(1).each(this._map,(function(e){e.remove(r)})),this._dupes.slice(r).forEach((function(e,t){var a=t+r;i._dupes[a]=n(1).without(i._dupes[a],r),i._dupes[a].forEach(o)})),this._sourceModelCounts[this.sources.indexOf(t)]--,b.call(this),k.call(this)}function b(){for(var e=0,t=n(1).isEmpty(this._map)?P(this._sourceModels.length):n(590).combine(n(1).values(this._map)),r=function(e,n){return e&&!t.get(n)},i=0;i0?(this.options.limit=o,w.call(this,n(1).omit(e,"url")).always((function(){r.options.limit=i}))):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 T(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=e.length-1);var o,a=0;for(o=r;o<=i&&a=this.maxResults&&(this.next_href=!1),!1===this.next_href?n(10).resolve():n(28).prototype.fetch.call(this,{priority:e}).then((function(){o.call(t,e)}))}},216:function(e,t,n){"use strict";n.r(t),n.d(t,"SCAUDIO_ERROR_CODE",(function(){return r})),n.d(t,"HTML5_PLAYER_ERROR_CODE",(function(){return i}));var r={NOT_SUPPORTED_ERROR:"SCAUDIO.NOT_SUPPORTED_ERROR",NO_STREAMS:"SCAUDIO.NO_STREAMS",URL_RETRIEVER_ERROR:{MediaPayload:{INVALID_STATUS_:"SCAUDIO.URL_RETRIEVER_ERROR.MediaPayload.INVALID_STATUS_",UNEXPECTED_ERROR:"SCAUDIO.URL_RETRIEVER_ERROR.MediaPayload.UNEXPECTED_ERROR"}}},i={DECODE_ERROR:"HTML5_PLAYER.DECODE_ERROR",UNEXPECTED_MEDIA_ELEMENT_ERROR_4:"HTML5_PLAYER.UNEXPECTED_MEDIA_ELEMENT_ERROR_4",WEB_AUDIO_INITIALIZE_NO_CHANNELS_ERROR:"HTML5_PLAYER.WEB_AUDIO_INITIALIZE_NO_CHANNELS_ERROR"}},218:function(e,t,n){"use strict";n.r(t),n.d(t,"trackTrackLikeAttempt",(function(){return a})),n.d(t,"trackPlaylistLikeAttempt",(function(){return s})),n.d(t,"trackTrackLiked",(function(){return u})),n.d(t,"trackTrackUnliked",(function(){return c})),n.d(t,"trackPlaylistLiked",(function(){return l})),n.d(t,"trackPlaylistUnliked",(function(){return d}));var r=n(15),i=n.n(r);n(55);function o(){return(o=Object.assign||function(e){for(var t=1;tt.path?1:0}))}function d(e,t){var r=new(n(588))({uploads:e},t);return r.release(),r}function f(e){var t=this.length,r=this.uploadQueue;if(this.add(e,{at:0}),this.length!==t){m.call(this,!0,e);var i=r.addTask((function(){return e.upload()}));return e.on("remove",(function(){return r.removeTask(i)})),n(19).trackUploadFunnel({chapter:"start",uploadId:e.getTrackingId()}),e}}function h(e){var t=e.name,r=e.size,o=e.type,s=[];!r||r<=0?s.push(a.ErrorTypes.FILE_SIZE_TOO_SMALL):r>a.MAX_FILE_SIZE&&s.push(a.ErrorTypes.FILE_SIZE_TOO_LARGE);var u=n(277).getExtension(t),c=!u||n(1).contains(i,u.toLowerCase()),l=o&&0===o.indexOf("audio/");return c||l||s.push(a.ErrorTypes.FILE_TYPE_UNSUPPORTED),{file:e,errors:s}}function p(e){!this.numUploading()&&e.get("hasBeenSaved")&&g()}function g(){r&&(n(6).get("router").removeNavigationBlock(r),r=null)}function m(e,t){this.transferStatus[e?"addTransfer":"removeTransfer"](t.get("transfer")),this.transcodingStatus[e?"addTransfer":"removeTransfer"](t.get("transcoding"))}function v(e){m.call(this,!1,e),this.numUploading()||this.hasUnsaved()||g()}function y(e){var t=e.get("status"),i=e.previous("status");t!==n(75).UPLOADING||1!==this.numUploading()||r||(r=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(75).COMPLETE&&this.trigger("complete"),i===n(75).UPLOADING&&this.transferStatus.removeTransfer(e.get("transfer")),i===n(75).TRANSCODING&&this.transcodingStatus.removeTransfer(e.get("transcoding"))}},234:function(e,t,n){e.exports={getQuotaInfo:function(e){var t=e.getUploadSecondsLeft(),n=e.getUploadSecondsUsed(),r=e.getUploadMinutesLeft(),i=e.getUploadMinutesUsed(),o=e.isOverQuota();if(e.hasUnlimitedUpload())return!1;var a=t+n,s=Math.round(a/60),u=Math.round(a),c=s/60,l=i-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:r,minutesUsed:i,limitInMinutes:s,limitInHours:c,isOverQuota:o,minutesOver:l,percentageUsed:m,percentageTime:g,percentageTracks:p,limitInTracks:f,isNearingQuota:m>=50}},getUpgradeCreatorLinkText:function(e,t,r){return n(2).Lingua.t("[[[linkStart]]]Try [[planName]][[[linkEnd]]] to get unlimited uploads.",{planName:n(36).getProductNameInstance().getNameVariants(n(26).ProductId.CREATOR_SUBSCRIPTION_3).short,linkStart:'',linkEnd:""})},getUpgradeCreatorCTAText:function(){return n(2).Lingua.t("Try [[planName]]",{planName:n(36).getProductNameInstance().getNameVariants(n(26).ProductId.CREATOR_SUBSCRIPTION_3).short})}}},241:function(e,t,n){e.exports=n(214).extend([["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","isEmpty","chain","sample"].reduce((function(e,t){return e[t]=function(){var e=[this._asMap()];return e.push.apply(e,arguments),n(1)[t].apply(n(1),e)},e}),{}),{initialize:function(e){this._store=Object.create(null),this.length=0,this._final=!1,this.maxLength=(null==e?void 0:e.maxLength)||!1,this.maxLength&&(this._keys=[])},maxLength:0,get:function(e){return this._store[e]},set:function(e,t){return this.has(e)?this.maxLength&&this._keys.splice(this._keys.indexOf(e),1):(++this.length,this.maxLength&&this.length>this.maxLength&&this.unset(this._keys[0])),this.maxLength&&this._keys.push(e),this._store[e]=t,this},unset:function(e){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(1).has(this._store,e)},keys:function(){return Object.keys(this._store)},prune:function(e){return n(1).difference(this.keys(),e).forEach(this.unset,this),this},_asMap:function(){return this._store},finalize:function(){this._final=!0}}])},242:function(e,t,n){e.exports=new(n(23))({applyTo:function(e,t){e.getTitleAttribute=function(){return t.attr}}})},246:function(e,t,n){e.exports={shouldBlockScrubbing:function(e){var t;return void 0===e&&(e=null==(t=n(20).getCurrentSound())?void 0:t.getMediaDuration()),e>30*n(41).MS_IN_MINUTE&&!n(17).isLoggedIn()},pauseAndPromptSignup:function(){n(20).pauseCurrent(),n(17).login({signup:!0,title:n(1368).blockScrubbing,resumeAfterLogin:!0,signupWall:n(516).blockScrubbingLongformTracks})}}},247:function(e,t,n){"use strict";n.r(t),n.d(t,"trackDsaAdInfoSheetPresented",(function(){return s})),n.d(t,"trackDsaAdReceived",(function(){return u})),n.d(t,"trackAdRequested",(function(){return c})),n.d(t,"trackAdReceived",(function(){return l})),n.d(t,"trackAdOpportunityPresented",(function(){return d})),n.d(t,"trackAdPresented",(function(){return f}));var r=n(15),i=n.n(r),o=(n(576),n(577),n(93),n(797),n(6)),a=n.n(o),s=function(){i.a.tracking.track("DSA Ad Info Sheet Presented",{})},u=function(e,t){i.a.tracking.track("DSA Ad Received",{has_advertiser:Boolean(e.getAdvertiser()),has_age:Boolean(null==t?void 0:t.age),has_region:Boolean(null==t?void 0:t.country_code)})},c=function(){i.a.tracking.track("Ad Requested",{ad_component:"audio",last_ad_timer:-1,placement:"play_start",ppid:p(),timestamp:(new Date).toISOString()})},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n= 4.3.0"],main:function(e,t,r,i,o){var a,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,c=e.escapeExpression,l=e.lambda,d=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return c((n(9)||t&&d(t,"$view")||u).call(s,n(899),{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

'+c(l(null!=(a=null!=t?d(t,"_options"):t)?d(a,"title"):a,t))+'

\n

'+c(l(null!=(a=null!=t?d(t,"_options"):t)?d(a,"body"):a,t))+'

\n
\n \n
\n
\n"},useData:!0})},2592:function(e,t,n){var r=n(12),i=n(2593);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},2593:function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(5),a=n.n(o)()(i.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},2594:function(e,t){function n(e){return Array.prototype.slice.call(e)}e.exports={whenElementAdded:function(e,t){return new window.MutationObserver((function(r){r.forEach((function(r){n(r.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}},2595:function(e,t,n){var r=n(14);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,i,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(9)||t&&u(t,"$view")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},n(899),{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})},2596:function(e,t,n){var r=n(12),i=n(2597);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},2597:function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(5),a=n.n(o),s=n(56),u=n.n(s),c=n(955),l=n.n(c),d=a()(i.a),f=u()(l.a);d.push([e.i,'.compact__bubble{position:absolute;background-color:#fff;background-color:var(--white-color);padding:0;box-sizing:border-box;border-radius:4px;max-width:360px;transition:opacity .3s ease-in-out,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:flex;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:var(--special-color);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,mCAAmC,CAAC,SAAS,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,eAAe,CAAC,4DAA4D,CAAC,wBAAwB,UAAU,CAAC,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC,kCAAkC,CAAC,yBAAyB,CAAC,wBAAwB,YAAY,CAAC,kBAAkB,CAAC,eAAe,CAAC,eAAe,CAAC,iBAAiB,6BAA6B,CAAC,0BAA0B,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC,+BAA+B,CAAC,wDAAgD,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,iBAAiB",sourcesContent:['.compact__bubble{position:absolute;background-color:#fff;background-color:var(--white-color);padding:0;box-sizing:border-box;border-radius:4px;max-width:360px;transition:opacity .3s ease-in-out,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:flex;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:var(--special-color);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},260:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r,i,o=n(80),a=n(15),s=n.n(a),u=((r={})[o.CreditResource.getHeard]="Get Heard",r[o.CreditResource.fileReplace]="File Replace",r);function c(e){s.a.tracking.track("Capped Feature Alert Viewed",{modal_id:u[e]})}function l(e,t){s.a.tracking.track("Capped Feature Alert Button Clicked",{modal_id:u[e],button_id:t})}!function(e){e.Confirm="Confirm",e.Cancel="Cancel"}(i||(i={}))},264:function(e,t,n){var r=!(!window.IntersectionObserver||!window.WeakMap),i=r?function(e){var t=e.isVisible,r=e.rootMargin,i=new WeakMap,o=function(e,t){return new window.IntersectionObserver(function(e){return function(t){t.forEach((function(t){var n=t.target;e.has(n)&&e.get(n).forEach((function(e){return e(t)}))}))}}(e),{threshold:[0,.25,.5,.75,1],rootMargin:t})}(i,r);return function(e){return n(86).whenInserted(e).then((function(){return n(10).promise((function(n){!function(e,t,n,r){(function(e,t,n){n.has(e)?n.get(e).push(t):n.set(e,[t])})(e,r,n),t.observe(e)}(e,o,i,(function(r){t(r)&&(!function(e,t,n){(function(e,t){t.delete(e)})(e,n),t.unobserve(e)}(e,o,i),n())}))}))}))}}:function(){return n(86).whenInserted};e.exports={makeWhenElementVisible:i,whenElementVisible:i({isVisible:function(e){return e.intersectionRatio>0},rootMargin:"40px"}),APPLICATION_ROOT_MARGIN:"-46px 0px -48px 0px"}},265:function(e,t,n){var r=e.exports=n(214).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(1).bindAll(this,"failed","succeeded"),this.setup(e)},setup:function(e){this.options=n(1).assign({},this.options||this.defaults,e);var t=(e=n(1).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._breakCount0?"1":"0"):E("creator")}function A(){var e=d.a.get("me").getAge(),t=x(e);p?S("user_date_of_birth",t):E("user_date_of_birth")}function w(){k(),A()}function C(){S("user_features",d.a.get("features").toArray())}function S(e,t){window.googletag.cmd.push((function(){window.googletag.pubads().setTargeting(e,t)}))}function E(e){window.googletag.cmd.push((function(){var t;(null!=(t=window.googletag.pubads().getTargetingKeys())?t:[]).includes(e)&&window.googletag.pubads().clearTargeting(e)}))}function T(e){var t=e.layoutName,n=e.args,r=t;return"listen"===t?r=n.soundPermalink?"track":"playlist":"user"===t?r="profile":"discover"===t&&(r="home"),r}var x=function(e){return 13===e?"01":e>=14&&e<=15?"14":e>=16&&e<=18?"13":e>=19&&e<=20?"02":e>=21&&e<=24?"03":e>=25&&e<=29?"04":e>=30&&e<=34?"05":e>=35&&e<=39?"06":e>=40&&e<=44?"07":e>=45&&e<=49?"08":e>=50&&e<=54?"09":e>=55&&e<=59?"10":e>=60&&e<=64?"11":e>=65?"12":"00"}},2709:function(e,t,n){"use strict";n.r(t),n.d(t,"include",(function(){return a}));var r=n(11),i=n.n(r),o=n(86);function a(){i.a.on("connect:login",s)}function s(){document.getElementById("extole-script")||setTimeout((function(){Object(o.insertScript)("https://invite.soundcloud.com/core.js",{attributes:{id:"extole-script",type:"text/javascript",fetchpriority:"high"}})}),500)}},2710:function(e,t,n){e.exports={401:function(e){!function(){try{var e,t=null!=(e=window.localStorage.getItem("V2::local::bypass_401_logout"))?e:JSON.stringify(!1);return JSON.parse(t)}catch(e){return!1}}()&&n(17).isLoggedIn()&&n(17).logout()},429:function(e){var t=n(262).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)}}},2711:function(e,t,n){e.exports={listen:function(e,t){var o;if("playlist"===(e=r(e)).kind)return this.getRoute("playlist",e,t);var a,s={};return t=t?"/comment-"+t:"",null!=(o=e._playlist)&&o.id&&(a=n(555).removeSecretTokenFromUrl(e._playlist.permalink_url),s.query={in:i(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:""):i(e.permalink_url+t),n(78).stringify(s)},listenNetwork:function(e,t,o){e=r(e);var a={};return"related"===t&&(t="recommended"),a.path=e.user?"/"+e.user.permalink+"/"+e.permalink+(this.includeSecretTokenForSound(e)?"/"+e.secret_token:""):i(e.permalink_url),a.path+="/"+t+("comments"===t&&o?"/"+o:""),n(78).stringify(a)},reportContentRoute:function(e,t,r,i){return n(78).stringify({path:o(r),query:{reporter_urn:t,content_urn:e,content_secret_token:i}})},playlistEdit:function(e){return e=r(e),"/"+n(78).stringify({path:[e.user.permalink,"sets",e.permalink,"edit"]})},playlist:function(e){return(e=r(e)).user?"/"+e.user.permalink+"/sets/"+e.permalink+(this.includeSecretTokenForPlaylist(e)?"/"+e.secret_token:""):i(e.permalink_url)},systemPlaylist:function(e){return"/discover/sets/"+(e=r(e)).permalink},playlistNetwork:function(e,t){e=r(e);var o={};return o.path=e.user?"/"+e.user.permalink+"/sets/"+e.permalink+(this.includeSecretTokenForPlaylist(e)?"/"+e.secret_token:""):i(e.permalink_url),o.path+="/"+t,n(78).stringify(o)},user:function(e,t){return"/"+(e=r(e)).permalink+(t?"/"+t:"")},userNetwork:function(e,t){return"/"+(e=r(e)).permalink+"/"+t},root:function(){return"/"},explore:function(e){return e=(e||"").toLowerCase(),"/"+n(78).stringify({path:["explore",e]})},charts:function(e,t,r){return"/"+n(78).stringify({path:["charts",n(1).findWhere(n(152).kinds,{id:e||n(152).defaultKind}).urlPart],query:{genre:t,country:r}})},people:function(e){return"/"+n(78).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(78).stringify({path:"/tags/"+e.toLowerCase()+(t?"/"+t:"")})},search:function(e,t,r){var i={sounds:"sounds",high_tier:"go",sets:"sets",playlists:"sets",albums:"albums",people:"people"}[e];return"/"+n(78).stringify({path:["search",i],query:n(1).assign({q:t},r)})},activity:function(){return"/notifications"},__tips:function(){return"/you/tips"},feed:function(){return"/feed"},logout:function(){return"/logout"},download:function(e){return"/"+n(78).stringify({path:["download",e||""]})},upload:function(){return"/upload"},mastering:function(e,t){var r=void 0===t?{}:t,i=r.fragment,o=r.query;return"/"+n(78).stringify({path:n(1).compact(["you","mastering",e&&"tracks",e]),fragment:i,query:o})},youNetwork:function(e,t,r){return"/"+n(78).stringify({path:["you",t],query:{ref:r}})},trackManager:function(e){return"/"+n(78).stringify({path:"you/tracks",fragment:e||""})},artistStudio:function(e){return"/"+n(78).stringify({path:["artists",e]})},vinylStudio:function(e){return"/"+n(78).stringify({path:["pages/vinyl-studio",e]})},reports:function(){return"/you/reports"},messages:function(e){return"/messages"+(e?"/"+e:"")},settings:function(e){return"/"+n(78).stringify({path:["settings",e]})},premier:function(e,t){return"/"+n(78).stringify({path:["you/premier",e],query:{ref:t}})},monetization:function(e){return"/"+n(78).stringify({path:"you/sc_monetization",query:{ref:e}})},developerApps:function(e){return"/"+n(78).stringify({path:["you/apps",e]})},signin:function(e){return"/"+n(78).stringify({path:["signin"],query:{redirect_url:e}})},v1:function(e,t){return"/"+e+(t=t||"")},recommended:function(){return"/discover"},home:function(){return"/home"},reportCopyright:function(e){var t={path:"/pages/copyright/report/form"};return e&&(e=r(e),t.query={track:e.permalink,user:e.user.permalink}),n(78).stringify(t)},orders:function(e){return"/subscription/orders/"+e},insights:function(e){return void 0===e&&(e="overview"),"/you/insights/"+e}};function r(e){return n(1).isFunction(e.toJSON)?e.toJSON():e}function i(e){return e?e.replace(/^https?:.+?\w\//,"/"):""}function o(e){switch(e){case"DSA":return"/digital-services-act/report";case"report-form":return"/pages/report-content";default:0}}},2712:function(e,t,n){var r={};e.exports={loadLayout:function(e){var t=r[e];if(t)return t;var i=n(10).defer();return n(2713)("./"+e.replace("layouts/","")).then((function(e){i.resolve(e.default||e)}),i.reject),t=r[e]=i.promise()}}},2714:function(e,t,n){e.exports={initialize:function(){n(154).getInstance().then((function(e){return n(11).on("googleCast:start",r),{dispose:function(){n(11).off("googleCast:start",r)}}}))}};function r(e){var t=n(20).getQueue();function r(){t.length>0&&e.isRemoteQueueEmpty()&&(n(20).setRepeatMode(n(90).none),s())}function a(r){var a,s,u=i().queue;if(a=u,s=r.queue,n(176).equal(a,s,(function(e,t){return e.urn===t.urn}))){t.forEach((function(e,t){e.associateCastId(r.queue[t].id)}));var c=t.at(r.currentIndex);c.sound.createPlayer(),n(20).setCurrentItem(c,{pause:e.isPaused()})}else if(!o(u,r.queue)){var l=r.queue.map((function(e,t){var r,i,o,a,s,u,c,l,d=e.urn,f=e.id,h=n(30).toComponents(d),p=new(n(27))({id:h.id}),g=p.getQueueMetadataAt(0),m=g.sourceInfo,v=g.queryPosition,y=g.originalModel,_=new(n(177))({},{sound:p,sourceInfo:m,queryPosition:v,originalModel:y,index:t,castId:f,restoreUrl:null,explicit:!1,layoutInfo:(r=n(6).get("router").getLayoutInfo(),i=r.args,o=r.layoutName,a=window.location,s=a.pathname,u=a.search,c=a.hash,l=s.slice(1)+u+c,{args:i,layoutName:o,url:l})});return _.release(),p.release(),_}));n(20).replaceQueue(l,r.currentIndex,{pause:e.isPaused()})}}function s(){var t=i(),r=t.queue,a=t.currentIndex,s=n(176).sliceAround(r,a,5,100),u=e.getLastRemoteQueue(),c=n(20).getCurrentSound(),l=!u||s.position!==u.currentIndex||!o(s.items,u.queue);a>-1&&l&&e.loadQueue(s.items,s.position,n(17).getAuthToken(),c.isPlaying(),c.currentTime())}function u(t){e.setRepeatMode(t)}e.on("queue:update",a),e.once("queue:ready",r),t.on("add remove reset",s),n(20).on("change:currentSound",s),n(20).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",r),t.off("add remove reset",s),n(20).off("change:currentSound",s),n(20).off("change:repeatMode",u)}))}function i(){return{currentIndex:n(20).getQueueState().currentIndex,queue:n(20).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(176).equal(e,t,(function(e,t){return e.id&&e.id===t.id}))}},2715:function(e,t,n){var r={name:"ja",domainStrict:!1,secure:!1};e.exports={_subsCookie:null,initialize:function(){var e=this;n(17).isLoggedIn()&&(this._subsCookie=i()),n(11).once("connect:hasUserData",(function(){e._subsCookie=i()})),n(11).once("connect:logout",(function(){n(68).unset(r),e._subsCookie=null}))}};function i(){var e=n(6).get("me"),t=o(e.getConsumerPlan()),i=o(e.getCreatorPlan()),a=n(2716).or(t,i);return"number"==typeof a&&n(68).set(n(1).assign({},r,{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}},2716:function(e,t){e.exports={or:function(e,t){return e|t}}},2723:function(e,t,n){"use strict";var r=n(632),i=n(633),o=n(908),a={0:"connecting",1:"open",2:"closed"};e.exports=function(e){var t=e.createEventUrl,n=e.withCredentials,s=e.json,u=e.log,c=void 0===u?function(){}:u,l=e.EventSourceConstructor,d=!1,f=0,h=null,p=null,g=r({},i,{dispose:function(){function e(){h&&(h.close(),h=null)}e(),p&&p.finally((function(){e()}));d=!0},getEventSourceReadyState:function(){return h&&a[h.readyState]}});return m(),g;function m(){d||(p=t()).then((function(e){(h=new l(e,{withCredentials:n})).onopen=y,h.onerror=_,h.onmessage=b})).catch((function(e){_(e)})).finally((function(){p=null}))}function v(){d||h&&2===h.readyState&&m()}function y(){d||(f=0,g.trigger(o.OPEN))}function _(e){if(!d){if(++f>1){var t=function(e){var t=e/1,n=2e3*Math.pow(2,t);return Math.min(1e4,n)}(f);c("More than ".concat(1," errors in a row. ")+"Will use back-off timeout to reconnect in ".concat(t," ms")),window.setTimeout(v,t)}else c("Will try to reconnect ASAP"),v();g.trigger(o.ERROR,e)}}function b(e){if(!d){var t=e.data;if(s)try{t=JSON.parse(t)}catch(n){t={},c("syntax error parsing data to object",n.message,e)}g.trigger(o.DATA,t)}}}},2725:function(e,t,n){"use strict";var r=n(632),i=n(633),o=n(909),a=e.exports=r({},i,{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)}))},2728:function(e,t,n){"use strict";var r={STOP:"stop",HEARTBEAT:"heartbeat"},i={PLAY:"play"},o=Object.values(i);e.exports={events:i,actions:r,createMessage:function(e){return{version:0,timestamp:Math.floor(Date.now()/1e3),registration_id:e}},parseAction:function(e){return e&&e.action&&r[(t=e.action,t.toUpperCase().replace(/-/g,"_"))]?e.action:null;var t},isValidEventType:function(e){return o.indexOf(e)>-1}}},2729:function(e,t,n){(function(e){var t,n,r=["has","features","is_acc_test","exports","no_pub","get"];t=r,n=367,function(e){for(;--e;)t.push(t.shift())}(++n);var i=function(e,t){return r[e-=0]};e[i("0x2")]=function(e){return!e.get(i("0x3"))||!e[i("0x4")](i("0x0"))[i("0x5")](i("0x1"))}}).call(this,n(351)(e))},2730:function(e,t,n){function r(e){var t=new(n(657))(null,{resource_id:e.id,limit:50}),r=n(31).getRoute("listenNetwork",e,"recommended");return t.release(),{source:t,restoreUrl:r}}e.exports={getPlayManagerFallbackSourceCreator:function(){return r}}},275:function(e,t,n){var r,i=window.document,o=!0,a=e.exports=n(1).assign({},n(42).Events,{visible:function(){return o},focused:function(){return o&&(!i.hasFocus||i.hasFocus())}});(r=function(){var e=!i.hidden;o!==e&&(o=e,a.trigger("change:visibility",o))})(),i.addEventListener("visibilitychange",r,!1)},276:function(e,t,n){(function(t){e.exports=new(n(23))({_imageFile:null,_imageSource:null,_imageDataURI:null,applyTo:function(e,t){e.imageProperties=n(1).pick(t,"read","write"),e.useFormData=null==t.useFormData||t.useFormData},defaults:{getImageSaveUrl:function(){return this.saveUrl()}},getImageUrl:function(e){return this._imageDataURI||n(70).urlFrom(this.attributes,e)},hasOwnImage:function(){return!!this._imageDataURI||!n(70).isDefaultImage(this.get(this.imageProperties.read))},hasNewImage:function(){return!!this._imageFile},getPlaceholderUrl:function(e){return!this._imageDataURI&&n(70).getPlaceholderUrl(this.getImageUrl(),e)},getImageFileInfo:function(){return{file:this._imageFile,source:this._imageSource}},setImageFile:function(e,t){var r=this;this._imageSource=t,this._imageFile=e,function(e,t){var r=n(10).defer();return n(70).readImageFile(e).done((function(e){var n,i,o,a=window.document.createElement("canvas"),s=a.getContext("2d"),u=(n=e.width,i=e.height,(o=n-i)>0?{x:Math.floor(o/2),y:0,w:i,h:i}:{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)),r.resolve(a.toDataURL("image/png"))})).fail(r.reject),r}(e,500).done((function(n){r._imageDataURI=n,r.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,i=n(10).defer(),a=o(this.imageProperties.write,e);return r(this.getImageSaveUrl(),a).fail((function(e,t){return i.reject(t)})).done((function(e){return i.resolve(e[t.imageProperties.read])})),i},uploadImage:function(){var e=this,t=n(10).defer(),o=this.getImageFileInfo(),u=o.file,c=o.source,l=this.useFormData;if(u&&this.imageProperties.write)return n(19).trackV0Click(["upload","image","upload_started",c]),this.unsetImageFile(),i.call(this,u,l).then((function(t){return r(e.getImageSaveUrl(),t)})).done((function(e){n(19).trackV0Click(["upload","image","upload_success",c]),t.resolve(e)})).done(a.bind(this)).fail(t.reject).fail(s.bind(this,c)),t},canDeleteImage:function(){return!!this.getImageDeleteEndpoint},deleteImage:function(){var e=this;return this.canDeleteImage()?n(44).callEndpoint(this.getImageDeleteEndpoint()).then((function(){e.unsetImageFile({force:!0}),e.set(e.imageProperties.read,null)})):n(10).reject()}});function r(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 i(e,t){var r=this.imageProperties.write,i=t?this.get("kind")+"["+r+"]":r;return t?n(10).resolve(function(e,t){if(!n(106).formData||!e)return;var r=new window.FormData;return r.append(t,e),r}(e,i)):function(e,t){return n(277).readAsDataURL(e).then((function(e){return o(t,e)}))}(e,i)}function o(e,t){var n,r=t.split(",")[1];return(n={})[e]=r,n}function a(e){var t=n(10).defer(),r=n(70).setFormat(e[this.imageProperties.read],20),i=this,o=new(n(265))({tolerance:1,baseDelay:2e3,maxDelay:8e3,backoffRate:1.5,giveup:6,enabled:!1}),a=new window.Image;return a.onload=function(){var n=i.imageProperties.read;i.get(n)===e[n]&&i.forceChange(n),i.set(e),t.resolve(e)},a.onerror=function(){o.failed()},o.on("enabled",(function(){a.src=r+"?"+Date.now()})).on("giveup",t.reject),this.trigger("imageUrlChanged",r),t.done(this.trigger.bind(this,"imageTranscodingDone",e)).fail(this.trigger.bind(this,"imageTranscodingFail",e))}function s(e,t){n(50).trigger("error",{action:"upload_image",xhr:t}),n(19).trackV0Click(["upload","image","upload_failure",e])}}).call(this,n(25))},277:function(e,t,n){var r=/(aif|aiff|m4a|caf|flac|wav|pcm.*)$/i;e.exports={readAsDataURL:function(e){return n(10).promise((function(t,n){var r=new window.FileReader;r.onload=function(){return t(r.result)},r.onerror=r.onabort=n,r.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=""),r.test(e)}}},278:function(e,t){e.exports=function(e,t){var n=t.lastFetchTime||Date.now();delete t.lastFetchTime;var r=new e(t,{parse:!0});r.lastFetchTime=n,r.release()}},279:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",(function(){return i}));var i=function(){function e(e){r(this,"_propagate",void 0),r(this,"data",void 0),this.data=e,this._propagate=!0}var t=e.prototype;return t.stopPropagation=function(){this._propagate=!1},t.isPropagationStopped=function(){return!this._propagate},e}()},28:function(e,t,n){var r=n(42).Model.extend(n(1210),{resource_type:null,lastFetchTime:null,_submodels:null,submodelMap:null,getEndpointUrl:n(44).getUrlForEndpoint,getEndpointForMethod:function(e){return null},initialize:function(e,t){var r=this;this._submodels=this._submodels||[],this.options=t||{},n(1).each(this.submodelMap,(function(e,t){r.on("change:"+t,(function(){r.get(t)&&r.createSubmodel(e,t)}))})),this.setup.apply(this,arguments),n(1).each(this.submodelMap,(function(e,t){r.get(t)&&r.createSubmodel(e,t)}))},setup:n(1).noop,getSubmodelOptions:function(e){return null},createSubmodel:function(e,t){var n=this,r=this.getSubmodelOptions(t);[].concat(this.get(t)).forEach((function(t){var i=new e(t,r);i.lastFetchTime=Date.now(),n.addSubmodel(i)}))},addSubmodel:function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;iDate.parse(u.last_modified)&&(i=n(1).pick(i,n(1).difference(n(1).keys(i),n(1).keys(this.attributes))),n(1).isEmpty(i))?this:(o=this.constructor.normalize?this.constructor.normalize(n(1).clone(i)):i,n(1).each(this.submodelMap,(function(e,t){var r=i[t];r&&e&&e.normalize&&!n(1).isArray(r)&&(o[t]=e.normalize(n(1).clone(r)))})),n(42).Model.prototype.set.call(this,o,r))},saveUrl:function(){return n(1).result(this,"baseUrl")},saveFormat:"param",saveWithWrapper:!0,destroy:function(e){var t=n(42).Model.prototype.destroy.call(this,n(1).assign({url:this.isNew()?null:this.destroyUrl()},e));return this.constructor.removeInstance(this),t},destroyUrl:function(){return n(1).result(this,"baseUrl")},baseUrl:n(1).noop,url:function(e){return void 0===e&&(e="baseUrl"),n(1).result(this,e)},toJSON:function(){return n(1).extend(n(42).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(1).isArray(e)?e.every(t,this.attributes):t.call(this.attributes,e)},getEquivalencyKey:function(){return this},getRequestEquivalencyUrl:n(1).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},hasBeenFetchedSince:function(e){return"number"==typeof this.lastFetchTime&&this.lastFetchTime>=e},getOrFetch:function(e){var t=this,r=n(10).defer();return this.attrExists(e)?r.resolve(this.pick.apply(this,e)):this.fetch().then((function(){return t.attrExists(e)?t.pick.apply(t,e):n(10).reject(new Error("After fetching some of the requested attributes are still missing."))})).then(r.resolve,r.reject),r.promise()},forceChange:function(e){var t=this.get(e);return this.unset(e,{silent:!0}),this.set(e,t),this}},{_resolve:function(e,t,r){var i=e.instances.find(r);if(i)return n(10).resolve(i);var o=n(32).stringify({scheme:"https",host:n(6).get("public_api_host").replace(/^https?:\/\/api\./,""),path:t});return n(44).callEndpoint("resolve",{},{url:o}).then((function(t){var n=t.body,r=new e(n);return r.release(),r}))}});e.exports=n(426).applyTo(r,{hashFn:function(e){return e&&(e[this.idAttribute||"id"]||e.resource_id)||null},onCleanup:function(e){var t=e._submodels;null!=t&&t.length&&(n(1).invoke(t,"release"),t.length=0)},prepareArgs:function(e,t){return e=e||{},(t=t||{}).parse&&(e=this.parse(e),(t=n(1).clone(t)).parse=!1),[e,t]},prepareInstance:function(e,t){return(t=t||{}).collection&&(this.lastFetchTime=Date.now()),n(1).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}})},280:function(e,t,n){var r=!1,i=e.exports={toggle:function(){r?i.hide():i.show()},show:function(){r||(r=!0,n(11).trigger("queue:toggle",!0))},hide:function(){r&&(r=!1,n(11).trigger("queue:toggle",!1))},isVisible:function(){return r}}},282:function(e,t,n){"use strict";n.r(t),n.d(t,"WebiEmbeddedModule",(function(){return s}));var r=n(0),i=n.n(r),o=n(288),a=n(255);n(2002);function s(e){var t=Object(r.useState)((function(){return"iframeManager"in e?e.iframeManager:new o.a(e.options)}))[0],n=Object(r.useState)(!0),s=n[0],u=n[1],c=i.a.useRef(null);return Object(r.useLayoutEffect)((function(){var e;t.whenReady().then((function(){u(!1)}));var n=t.initializeWithContainer();return null==(e=c.current)||e.appendChild(n),function(){t.teardown(),n.remove()}}),[t]),Object(r.useEffect)((function(){return t.connectStateSync()}),[t]),i.a.createElement("div",{className:"webiEmbeddedModule"},s&&i.a.createElement(a.a,null),i.a.createElement("div",{ref:c,className:"webiEmbeddedModuleContainer"}))}t.default=s},283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorStop=t.rgb=t.colorToString=t.cloneColor=void 0;var r=n(2048);t.cloneColor=function(e,t){void 0===t&&(t=1);var n=e.r,i=e.g,o=e.b,a=e.a;return{r:n,g:i,b:o,a:(void 0===a?1:a)*(0,r.clamp)(t,0,1)}},t.colorToString=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=void 0===i?1:i;return"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(o,")")},t.rgb=function(e,t,n){return{r:e,g:t,b:n}},t.colorStop=function(e,t){return{color:t,offset:e}}},2839:function(e,t,n){"use strict";n.r(t);n(53),n(28);var r=n(42);function i(){return(i=Object.assign||function(e){for(var t=1;t-1},getOwnerActions:function(){return a},getOrderedActions:function(e){return e?o:i},getLatestUploadActions:function(){return s}};function c(e,t){return r[e](t)}function l(e){return function(t){return e(h(t)?t.sound:t)}}function d(e){return f(e)||function(e){return e instanceof n(65)}(e)}function f(e){return e instanceof n(27)}function h(e){return e instanceof n(177)}function p(e){return f(e)||h(e)}function g(e){return m(e)&&!function(e){return d(e)&&e.isProcessing()}(e)}function m(e){return d(e)&&!e.isDisabled()}function v(e){return d(e)&&e.isPublic()}function y(e){return d(e)&&n(6).get("me").owns(e)}function _(e){return d(e)&&e.getNumSounds()>0}function b(e){return d(e)&&e.isBlacklisted()}function k(e){return function(){return n(6).get("features").has(e)}}function A(e){return function(){return!e.apply(void 0,arguments)}}function w(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=n.n(p).a.Events,k=function(e){var t,n;function o(t){var n,o=t.initialHeight,a=t.title,u=t.refreshSubscriptions,l=m(t,["initialHeight","title","refreshSubscriptions"]);return _(v(n=e.call(this,l)||this),"_initialHeight",void 0),_(v(n),"_title",void 0),_(v(n),"_checkoutModal",void 0),_(v(n),"_containerElement",void 0),_(v(n),"_refreshSubscriptions",void 0),n._initialHeight=o,n._title=a,n._checkoutModal=null,n._containerElement=null,n._refreshSubscriptions=u,n.setMessageHandler("set-height",(function(e){var t=e.height,n=e.totalHeight;this._iframeElement&&(this._containerElement?(this._containerElement.style.height=String(t+"px"),this._iframeElement.height=String(n)):this._iframeElement.height=String(t))})),n.setMessageHandler("open-checkout-modal",(function(e){var t=this;this.disposeCheckoutModal();var n=g({},e,{options:g({},e.options,{messageHandler:function(e){e.action===i.CheckoutAction.CHECKOUT_PROCESS_SUCCESSFUL&&t.refresh()}})});this._checkoutModal=r.a.create(n),this._checkoutModal.open()})),n.setMessageHandler("send-new-message",(function(e){var t=e.recipientUrn,n=e.defaultMessage,r=c.a.toComponents(t).id;new s.a({subviewArgs:{resource_id:r,defaultMessage:n}}).open()})),n.setMessageHandler("modify-relationship",(function(e){var t=e.relationship,n=e.targetUrn,r=e.value,i=f.a[t];if(i){var o=c.a.toComponents(n).id;(new i).toggle(Number(o),r)}})),n.setMessageHandler("modal-open",(function(e){var t=e.path,n=m(e,["path"]),r=new h.a({embeddedModuleOptions:g({initialPath:"/embeds/modals/"+t},n),width:600});r.on(b.CLOSED,r._dispose,r),r.open()})),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,y(t,n);var a=o.prototype;return a.initialize=function(){var t=e.prototype.initialize.call(this);return t.classList.add("webiEmbeddedModuleIframe"),t.title=this._title,t.scrolling="no","number"==typeof this._initialHeight&&(t.height=String(this._initialHeight)),t},a.initializeWithContainer=function(){var e=this.initialize();return e.style.position="absolute",this._containerElement=document.createElement("div"),this._containerElement.style.position="relative","number"==typeof this._initialHeight&&(this._containerElement.style.height=String(this._initialHeight+"px"),e.height=String(this._initialHeight)),this._containerElement.appendChild(e),this._containerElement},a.teardown=function(){e.prototype.teardown.call(this),this.disposeCheckoutModal()},a.disposeCheckoutModal=function(){this._checkoutModal&&(this._checkoutModal.dispose(),this._checkoutModal=null)},a.connectStateSync=function(){var e=this,t=function(){return e.refresh()},n=[],r="webi-module:"+this._options.id+":refresh";return d.a.on(r,t),n.push((function(){return d.a.off(r,t)})),this._refreshSubscriptions&&this._refreshSubscriptions.forEach((function(e){var r=e.event,i=e.source;i&&(i.on(r,t),n.push((function(){return i.off(r,t)})))})),function(){n.forEach((function(e){return e()}))}},o}(o.a)},289:function(e,t,n){"use strict";n.r(t),n.d(t,"PlanPickerLocalStorageKeys",(function(){return r})),n.d(t,"freePlanPickedStore",(function(){return c})),n.d(t,"firstUploadPlanPickerStore",(function(){return l})),n.d(t,"thirdUploadPlanPickerStore",(function(){return d})),n.d(t,"createPlanPickerModal",(function(){return f})),n.d(t,"getInlinePlanPickerType",(function(){return h}));var r,i=n(47),o=n.n(i),a=(n(84),n(53),n(28),n(227)),s=n(330),u=n(95);!function(e){e.EXPLICIT_FREE_PLAN="free_plan_picked_explicitly",e.FIRST_UPLOAD="first_upload_plan_picker_seen",e.THIRD_UPLOAD="third_upload_plan_picker_seen"}(r||(r={}));var c=new o.a("free-plan-picked"),l=new o.a("first-upload-plan-picker"),d=new o.a("third-upload-plan-picker"),f=function(e,t,n){return s.a.create({type:u.CheckoutModalType.INLINE_PLAN_PICKER,tcode:n,options:{planPickerType:e},onClose:function(){g(e,t)&&l.set(r.FIRST_UPLOAD,"True"),e===a.a.THIRD_UPLOAD&&d.set(r.THIRD_UPLOAD,"True")}})},h=function(e,t,n){var i;if(e.id){var o=Boolean(c.get(r.EXPLICIT_FREE_PLAN));if(e.isFree()&&!o){var s=null!=(i=n.length)?i:0;if(0===s){if(Boolean(l.get(r.FIRST_UPLOAD)))return;if(p("show_before_1st_upload",!1,t))return a.a.FIRST_UPLOAD}if(!Boolean(d.get(r.THIRD_UPLOAD)))return s>=2&&p("show_after_2nd_upload",!1,t)?a.a.THIRD_UPLOAD:void 0}}},p=function(e,t,n){return n("inline_plan_picker_flows",e,t)},g=function(e,t){return e===a.a.FIRST_UPLOAD&&p("dismissible_before_1st_upload",!0,t)}},291:function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(32),i=n.n(r),o=n(6),a=n.n(o),s=n(11),u=n.n(s),c=n(95),l=n(26),d=n(337),f=n.n(d),h=n(289),p=n(391),g=n(690);function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){var t,n;function r(t){var n;return y(m(n=e.call(this,t)||this),"type",void 0),y(m(n),"modalMessageHandler",(function(e){k(e,n.close),b(e,n.close)})),n.type=c.CheckoutModalType.INLINE_PLAN_PICKER,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,v(t,n);var o=r.prototype;return o.open=function(){e.prototype.open.call(this)},o.getLink=function(){return i.a.stringify({path:[a.a.get("checkout_host"),"artist","inline-plan-picker"],query:this.getQueryParams()})},r}(c.BaseCheckoutModal),b=function(e,t){e.data.action===p.CheckoutAction.FREE_PLAN_PICKED_EXPLICITLY&&(u.a.trigger(c.CheckoutModalEvents.FREE_PLAN_PICKED_EXPLICITLY),h.freePlanPickedStore.set(h.PlanPickerLocalStorageKeys.EXPLICIT_FREE_PLAN,"True"),null==t||t())},k=function(e,t){var n;if(e.data.action===p.CheckoutAction.CHECKOUT_PROCESS_SUCCESSFUL){var r,i,o=null!=(n=e.data.product_purchased)?n:l.ProductId.CREATOR_SUBSCRIPTION_3;if("downgrade_start_date"in e.data&&e.data.downgrade_start_date)u.a.trigger(c.CheckoutModalEvents.CHECKOUT_PROCESS_SUCCESSFUL_DOWNGRADE,e.data.downgrade_start_date);else{var s=o===l.ProductId.CREATOR_SUBSCRIPTION_3?c.CheckoutModalEvents.CHECKOUT_PROCESS_SUCCESSFUL_HIGH_TIER:c.CheckoutModalEvents.CHECKOUT_PROCESS_SUCCESSFUL_MID_TIER;u.a.trigger(s)}a.a.get("me").fetch(),a.a.get("features").fetch(),(i=new f.a({id:a.a.get("me").id})).release(),i.fetch(),(r=new g.default({})).release(),r.fetch(),u.a.trigger("featureCredits:revalidate"),null==t||t()}}},292:function(e,t,n){"use strict";n.r(t),n.d(t,"RepostCaptionEvent",(function(){return r})),n.d(t,"RepostEvent",(function(){return i})),n.d(t,"updateRepostCaption",(function(){return w})),n.d(t,"trackRepostEditStart",(function(){return S})),n.d(t,"deleteRepost",(function(){return E}));var r,i,o=n(11),a=n.n(o),s=n(6),u=n.n(s),c=n(253),l=n.n(c),d=n(257),f=n.n(d),h=n(30),p=n.n(h),g=n(19),m=n.n(g),v=n(166),y=(n(77),n(10)),_=n.n(y),b=n(15),k=n.n(b);n(55);function A(){return(A=Object.assign||function(e){for(var t=1;t-1}});function r(e,t){return e.audibleAt?e.audibleAt(t):e.at(t)}function i(e){var t=e.current;if(n(20).isSourceActive(this)){var r=this.getSoundIndex(t);r>-1&&this.setAudioCursor(r)}}},30:function(e,t,n){var r={comments:"comment",playlists:"playlist","system-playlists":"system-playlist",sounds:"track",tracks:"track",users:"user"},i={comments:"comment",playlists:"playlist","system-playlists":"system-playlist",sounds:"sound",tracks:"sound",users:"user"},o={comment:"comments",playlist:"playlists","system-playlist":"system-playlists",sound:"tracks",track:"tracks",user:"users"},a={sets:"playlists",sounds:"tracks",people:"users"},s=n(1).reduce(a,(function(e,t,n){return e[t]=e[t]||[],e[n]=e[n]||[],l(e[t],n),l(e[n],t),e}),{}),u=n(1).negate(RegExp.prototype.test.bind(/\D/)),c=e.exports={toComponents:function(e){var t=e.split(":"),n=t[0],r=t[1],i=t.slice(2).join(":");return u(i)&&(i=parseInt(i,10)),{domain:n,collection:r,id:i}},fromComponents:function(e){var t=e.domain;return[void 0===t?"soundcloud":t,e.collection,e.id].join(":")},getAsAttributes:function(e){var t=c.toComponents(e),n=t.collection,o=t.id,a=i[n];return"user"===a&&"system"===o?o=193:"system-playlist"===a&&(o=e),{id:o,kind:r[n],resource_type:a}},generate:function(e,t){if("system-playlist"===e)return t;var n=o[e];return n?c.fromComponents({collection:n,id:t}):null},getAlternateUrns:function(e){var t=c.toComponents(e),n=t.domain,r=t.collection,i=t.id,o=s[r];return o?o.map((function(e){return c.fromComponents({domain:n,collection:e,id:i})})):null},getCanonicalUrn:function(e){var t=c.toComponents(e),n=t.domain,r=t.collection,i=t.id,o=a[r];return o?c.fromComponents({domain:n,collection:o,id:i}):e}};function l(e,t){e.indexOf(t)<0&&e.push(t)}},301: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",auth_dismiss:"authentication::dismiss",sign_in_success:"sign_in_success",sign_up_success:"sign_up_success",abort:"authentication::abort",initiate:"initiate",sign_out:"sign_out",oauth_failed:"oauth_failed"}},313: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}},314:function(e,t,n){(function(t){var r=e.exports={parseOtherId:function(e){var t,r=String(n(6).get("me").id);if("string"==typeof e)return(t=e.split(":"))[0]===r?t[1]:t[0]},baseUrl:function(){var e=[].slice.call(arguments);return n(32).stringify({host:n(6).get("api_v2_host"),path:["users",n(6).get("me").id,"conversations"].concat(e)})},baseUrlWithId:function(e){var t=n(1).tail(arguments);return r.baseUrl.apply(null,[r.parseOtherId(e)].concat(t))},post:function(e,n){var i=r.baseUrl(e),o={contents:n};return t.ajax({type:"POST",url:i,dataType:"json",contentType:"application/json",data:JSON.stringify(o)})}}}).call(this,n(25))},317:function(e,t){e.exports={FAILURE:"failure",FINISHED:"finished",NOT_FOUND:"not_found",PREPARING:"preparing",TRANSCODING:"transcoding",QUEUED:"queued"}},32:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t=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()&&u(n)}}function u(e){Object.keys(window.__sc_players).some((function(t){return window.__sc_players[t]===e&&(delete window.__sc_players[t],!0)}))}function c(e){var t=e.trackUrn,r=void 0===t?"":t,i=e.quality,o=void 0===i?"":i,a=e.audioQualityMode,s=void 0===a?"":a,u=e.preset,c=void 0===u?"":u,l=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(83).audioPerformance({track_urn:r,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:c,entity_type:l,player_version:"v"+n(94).version,player_build_number:n(94).buildNumber,audio_quality_mode:s})}function l(e){var t=e.trackUrn,r=void 0===t?"":t,i=e.audioQualityMode,o=void 0===i?"":i,a=e.quality,s=void 0===a?"":a,u=e.preset,c=void 0===u?"":u,l=e.bitrate,d=void 0===l?"":l,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===_?"":_,k=e.entityType,A=e.appState,w=e.errorCode,C=e.playerVariant,S=e.log,E=e.logId,T=null;try{n(83).audioError({bitrate:d,format:h,host:g,player_type:m,protocol:y,quality:s,preset:c,url:b,app_state:A,entity_type:k,error_code:w,player_variant:C,track_urn:r,player_version:"v"+n(94).version,player_build_number:n(94).buildNumber,audio_quality_mode:o,log_id:E})}catch(e){T=e}if(function(e){return e===n(216).SCAUDIO_ERROR_CODE.NOT_SUPPORTED_ERROR||e===n(216).SCAUDIO_ERROR_CODE.NO_STREAMS||0===e.indexOf(n(216).SCAUDIO_ERROR_CODE.URL_RETRIEVER_ERROR.MediaPayload.INVALID_STATUS_)||e===n(216).SCAUDIO_ERROR_CODE.URL_RETRIEVER_ERROR.MediaPayload.UNEXPECTED_ERROR||e===n(216).HTML5_PLAYER_ERROR_CODE.UNEXPECTED_MEDIA_ELEMENT_ERROR_4||e===n(216).HTML5_PLAYER_ERROR_CODE.DECODE_ERROR||e===n(216).HTML5_PLAYER_ERROR_CODE.WEB_AUDIO_INITIALIZE_NO_CHANNELS_ERROR}(w)||n(110).notify({error:{name:"SCAudio: "+w,message:w},context:{component:"SCAudio",scaudioVersion:n(94).version,MaestroCoreVersion:n(104).version,HTML5ControllerVersion:n(224).version,HLSMSEControllerVersion:n(758).version,ChromecastControllerVersion:n(760).version,stringLoaderVersion:n(362).version,streamUrl:b,playerType:m,streamFormat:h,log:S.slice().reverse(),logId:E}}),T)throw T}function d(){var e=n(107).getMuted()?0:n(107).getVolume();n(94).setGlobalVolume(function(e){return Math.pow(e,3)}(e))}var f=n(1259).buildConnectionEventManager();function h(e,t){var r=t.type,i=t.url,o=t.audioReporter,a=t.checkpointInterval;if("AD"===r)return n(1263).buildPlayer({url:i,audioPerformanceReporter:c,errorReporter:l,audioReporter:o,checkpointInterval:a});if("GENERAL"===r)return function(e,t){var r=t.dataPromise,i=t.audioReporter,o=t.checkpointInterval,a={},s=null,u=null,d=null,f=new(n(104).ProxyPlayer)({shouldPassThroughFatalErrors:!0,name:"General+ChromecastProxy-"+e,logger:n(225)});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(154).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=u="chromecast",(d=n(1260).buildPlayer({dataPromise:r,audioPerformanceReporter:c,errorReporter:l})).then((function(e){f.providePlayer(e,{syncPosition:f.isPlaying(),syncVolume:!1})}))):(u&&f.pause(),s=u="general",(d=n(1261).buildPlayer({dataPromise:r,audioPerformanceReporter:c,errorReporter:l,audioReporter:i,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: "+r)}d(),n(107).on("change:local",d);var p=n(426).applyTo(function(){"use strict";function e(e,t){var r=this;try{if(this.id=e,this.config=t,this.preloadingManager=n(1264).buildPreloadingManager(),this.player=h(this.resource_id||this.id,t),i()&&s(this.player,this.resource_id||this.id),this.player.isDead())throw this.player.getFatalError();this.player.onChange.subscribe((function(e){e.dead&&i()&&u(r.player)})),this.scaudioPlayer=o(this.player),this.scaudioPlayer&&(f.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(){i()&&(window.__sc_players||s(this.player,this.resource_id||this.id),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(Math.min(e,this.player.getDuration()))},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,i=this.player,o=function(){return t()},a=function(){switch(e){case"play":return[i.onPlayIntent.subscribe(o),i.onPauseRejection.subscribe(o)];case"pause":return[i.onPauseIntent.subscribe(o),i.onPlayRejection.subscribe(o)];case"playStart":return i.onPlay.subscribe(o);case"finish":return i.onEnded.subscribe(o);case"seeked":return i.onPositionJumped.subscribe(o);case"buffering:start":return i.onLoadStart.subscribe(o);case"buffering:end":return i.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(i);var a=e.getPosition();a!==o&&(t(),o=a),e.isActuallyPlaying()&&!e.isEnded()&&(i=window.setTimeout(n,r))},i=0,o=null,a=e.onChange.subscribe((function(e){var t=e.actuallyPlaying,r=e.positionJumped,o=e.ended;e.dead?window.clearTimeout(i):(void 0!==t||r||void 0!==o)&&n()}));return(e.isActuallyPlaying()||0!==e.getPosition())&&n(),{remove:function(){a.remove(),window.clearTimeout(i)}}}(i,o);case"playerError":return i.onChange.subscribe((function(e){var r=e.dead,i=e.fatalError;i?t({error:new Error("SCAudio error: "+i.getCode())}):r&&!n.killedByUser&&t({error:new Error("Unexpected error.")})}));case"dead":return i.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 r=n.playlist_id,i=n.system_playlist_id,o=n.ad_target_id,a=n.sound_id;if(void 0!==r&&void 0!==a)return[r,a].join("_");if(void 0!==i&&void 0!==a)return[i,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:p,scheduleMediaElementActivation:function(){window.addEventListener("click",(function e(){window.removeEventListener("click",e,!0),n(1).values(n(365)).forEach((function(e){return e.activate()}))}),!0)},createPlayer:function(e,t){return new p(e,t)}}},330:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(95),i=n(291),o=n(32),a=n.n(o),s=n(6),u=n.n(s);function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t,n;function o(t){var n;return d(c(n=e.call(this,t)||this),"type",void 0),d(c(n),"modalMessageHandler",(function(e){Object(i.b)(e,n.close)})),n.type=r.CheckoutModalType.PURCHASE,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),o.prototype.getLink=function(){return a.a.stringify({path:[u.a.get("checkout_host"),"artist","buy/next-pro"],query:this.getQueryParams()})},o}(r.BaseCheckoutModal);function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){var t,n;function o(t){var n,i,o,a;return n=e.call(this,t)||this,i=h(n),a=void 0,(o="type")in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.type=r.CheckoutModalType.EDIT_SUBSCRIPTION,n.modalMessageHandler=n.modalMessageHandler.bind(h(n)),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var s=o.prototype;return s.getLink=function(){return a.a.stringify({path:[u.a.get("checkout_host"),"artist","edit-subscription-plan-picker"],query:this.getQueryParams()})},s.modalMessageHandler=function(e){Object(i.b)(e,this.close)},o}(r.BaseCheckoutModal),m=function(){function e(){}return e.create=function(e){switch(e.type){case r.CheckoutModalType.INLINE_PLAN_PICKER:return new i.a(e);case r.CheckoutModalType.PURCHASE:return new f(e);case r.CheckoutModalType.EDIT_SUBSCRIPTION:return new g(e);default:throw new Error("Unsupported CheckoutModalType")}},e}()},331:function(e,t){e.exports={PERFORMANCE_COOKIE_CONSENT_NAME:"cookie_consent",PERFORMANCE_COOKIE_CONSENT_VALUE:"1",WEBI_OPT_OUT_COOKIE_NAME_LEGACY:"sc_webi_opt_out",WEBI_OPT_OUT_COOKIE_NAME:"sc_webi_opt_out_v2"}},334:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d}));n(281),n(28);var r=n(2);n(84),n(88),n(8),n(26);function i(){return(i=Object.assign||function(e){for(var t=1;t0;default:return!0}}function l(e,t){var n=this.model,r=null==n?void 0:n.getCreatorPlan(),o=null==n?void 0:n.getConsumerPlan(),s=i({},a);return this.options.showCreatorUpsell&&(e.includes("all_plans")||e.includes(r))&&(s.shouldParameterizeCreatorUpsell=!0),this.options.showFanUpsell&&(t.includes("all_plans")||t.includes(o))&&(s.shouldParameterizeFanUpsell=!0),s}function d(e,t){var n=this.getExperimentLayerValue(o,t+"_upsell_show",!0),r=this.getExperimentLayerValue(o,t+"_button_ui",!1),i=this.getExperimentLayerValue(o,t+"_upsell_text_color","#f50"),a=r?this.getExperimentLayerValue(o,t+"_upsell_background_color",""):void 0,s=r?this.getExperimentLayerValue(o,t+"_upsell_border_color",""):void 0,u="creator"===t?this.getExperimentLayerValue(o,"creator_cta_target","landing_page"):void 0;return{showUpsell:n,parameterizedCopy:this.getExperimentLayerLocalizableString(o,t+"_upsell_copy",e),buttonUI:r,ctaTarget:u,upsellTextColor:f(i)?void 0:i,upsellBackgroundColor:!r||f(a)?void 0:a,upsellBorderColor:!r||f(s)?void 0:s}}function f(e){return!!e&&"<%default%>"===e.trim()}},335:function(e,t,n){var r=n(582);if("undefined"!=typeof window){var i=n(2).Lingua;r={"all-music":i.t("All music genres"),"all-audio":i.t("All audio genres"),alternativerock:i.t("Alternative Rock"),ambient:i.t("Ambient"),classical:i.t("Classical"),country:i.t("Country"),danceedm:i.t("Dance & EDM"),dancehall:i.t("Dancehall"),deephouse:i.t("Deep House"),disco:i.t("Disco"),drumbass:i.t("Drum & Bass"),dubstep:i.t("Dubstep"),electronic:i.t("Electronic"),folksingersongwriter:i.t("Folk & Singer-Songwriter"),hiphoprap:i.t("Hip-hop & Rap"),house:i.t("House"),indie:i.t("Indie"),jazzblues:i.t("Jazz & Blues"),latin:i.t("Latin"),metal:i.t("Metal"),piano:i.t("Piano"),pop:i.t("Pop"),rbsoul:i.t("R&B & Soul"),reggae:i.t("Reggae"),reggaeton:i.t("Reggaeton"),rock:i.t("Rock"),soundtrack:i.t("Soundtrack"),speech:i.t("Speech"),techno:i.t("Techno"),trance:i.t("Trance"),trap:i.t("Trap"),triphop:i.t("Triphop"),world:i.t("World"),audiobooks:i.t("Audiobooks"),business:i.t("Business"),comedy:i.t("Comedy"),entertainment:i.t("Entertainment"),learning:i.t("Learning"),newspolitics:i.t("News & Politics"),religionspirituality:i.t("Religion & Spirituality"),science:i.t("Science"),sports:i.t("Sports"),storytelling:i.t("Storytelling"),technology:i.t("Technology")}}var o=n(1).chain(n(582)).values().reduce((function(e,t){return e[t]=!0,e}),{}).value();e.exports={genreLabels:r,englishLabels:n(582),isSupportedGenre:function(e){return!!o[e]},getTopChartsGenre:function(e){if(e){var t=n(30).toComponents(e).id.split(":"),i=t[0],o=t[1];if("charts-top"===i)return o in r?r[o]:o}return null}}},339:function(e,t,n){var r=e.exports=new(n(23))({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(1).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 r=n(1).isArray(s[t])&&s[t].length>0?s[t]:null;(r?e.isDirty(r):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(i.call(t,e),r.ENABLED)}))},disableAction:function(e){var t=this;void 0===e&&(e=s),o(e).forEach((function(e){t.setActionState(i.call(t,e),r.DISABLED)}))}})}});function i(e){return"default"===e?this.actions[e]:e}function o(e){return"string"==typeof e?[e]:n(1).isArray(e)?e:"object"==typeof e&&null!==e?Object.keys(e):[]}r.ENABLED="enabled",r.DISABLED="disabled"},340:function(e,t){var n=/(\w+)\:(\w+)=(.+)/,r=e.exports={extract:function(e,t){var n=e.tag_list||"",i=[];return i.push.apply(i,r.parse(n,t)),i},parse:function(e,t){return(e.match(/[^\s"']+|"([^"]*)"/g)||[]).map((function(e){return e.replace(/"/g,"")})).filter((t||{}).includeMachineTags?o:i)},serialize:function(e){var t=/\s/;return e.map((function(e){return t.test(e)?'"'+e+'"':e})).join(" ")}};function i(e){return!n.test(e)}function o(){return!0}},346:function(e,t,n){"use strict";n.r(t),n.d(t,"callGraphQl",(function(){return u}));var r=n(44),i=n.n(r),o=n(17),a=n.n(o),s=n(10);function u(e){return i.a.callEndpoint("graphqlQuery",void 0,void 0,{Authorization:"OAuth "+a.a.getAuthToken(),"Apollographql-Client-Name":"v2","Content-Type":"application/json"},e).then((function(e){var t;return null!=(t=e.body.errors)&&t.length?Object(s.reject)():e}))}},349:function(e,t,n){"use strict";n.r(t),n.d(t,"playbackSignUpWallStore",(function(){return c})),n.d(t,"playWithSignupWall",(function(){return l}));var r=n(17),i=n.n(r),o=n(47),a=n.n(o),s=n(57);function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var c=new a.a("playback-signup-wall","session"),l=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.a.isLoggedIn()){e.next=3;break}return t(),e.abrupt("return");case 3:return e.next=5,Object(s.getExperimentValue)("hard_wall_v2_anonymous_signup_prompt","signupWallType","none");case 5:n=e.sent,e.t0=n,e.next="soft"===e.t0?9:"hard"===e.t0?11:13;break;case 9:return c.get("shown")?t():i.a.login().always((function(){t(),c.set("shown",!0)})),e.abrupt("break",15);case 11:return i.a.login().done((function(){t()})),e.abrupt("break",15);case 13:return t(),e.abrupt("break",15);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},35:function(e,t,n){"use strict";n.r(t),n.d(t,"CookieCategory",(function(){return v})),n.d(t,"initPrivacySettingsSync",(function(){return O})),n.d(t,"isCategoryEnabled",(function(){return S})),n.d(t,"areCategoriesEnabled",(function(){return E})),n.d(t,"matchPrivacySettings",(function(){return P})),n.d(t,"onChange",(function(){return C})),n.d(t,"waitForAnyCategory",(function(){return x})),n.d(t,"waitForCategories",(function(){return L})),n.d(t,"waitForCategory",(function(){return T})),n.d(t,"initializePerformanceOptInTracking",(function(){return M})),n.d(t,"forceInitialPrivacySettingsSync",(function(){return J})),n.d(t,"tryToAnonimyzeConsent",(function(){return te})),n.d(t,"getOneTrustSDK",(function(){return p})),n.d(t,"getConsentString",(function(){return V})),n.d(t,"getTcfVersion",(function(){return H})),n.d(t,"initTcfv2",(function(){return Q})),n.d(t,"addTcfListener",(function(){return W})),n.d(t,"getTcfConsentForPurpose",(function(){return Y})),n.d(t,"PurposeIds",(function(){return N})),n.d(t,"getLegislation",(function(){return m})),n.d(t,"Legislation",(function(){return r}));var r,i=n(6),o=n.n(i),a=n(111),s=n.n(a),u=n(68),c=n.n(u),l=n(110),d=n.n(l),f=n(392),h=null;function p(){if(h)return h.promise;return h=Object(f.a)(),function e(t){var n;void 0===t&&(t=30);if(!h)return;if(null!=(n=window.OneTrust)&&n.GetDomainData)return h.resolve(window.OneTrust);if(t>0)return window.setTimeout((function(){return e(t-1)}),1e3);var r="Giving up... OneTrust JavaScript SDK was not loaded";return d.a.notify({error:r,params:{shouldCountError:!1}}),h.reject({error:r,handled:!0})}(),h.promise}!function(e){e.GDPR="GDPR",e.CCPA="CCPA",e.None="None"}(r||(r={}));var g=["br","us","au","th"];function m(){return p().then((function(e){return e.getGeolocationData()})).then((function(e){var t=e.country.toLowerCase(),n=e.state.toLowerCase();return"us"===t&&"ca"===n?r.CCPA:g.indexOf(t)>-1?r.None:r.GDPR}))}var v,y=n(17),_=n.n(y),b=n(1),k=Object(b.debounce)((function(){var e,t=o.a.get("privacy_settings");t.save(((e={})[s.a.ANALYTICS_OPT_IN]=t.get(s.a.ANALYTICS_OPT_IN),e[s.a.TARGETED_ADVERTISING_OPT_IN]=t.get(s.a.TARGETED_ADVERTISING_OPT_IN),e))}),100);!function(e){e.StrictlyNecessary="C0001",e.Performance="C0002",e.Functional="C0003",e.Targeting="C0004",e.SocialMedia="C0005",e.Communications="C0007"}(v||(v={}));var A={},w=function(e){e.forEach((function(e){e in A&&((A[e]||[]).forEach((function(e){try{e()}catch(e){}})),delete A[e])}))};function C(e){window.OptanonWrapper&&window.OptanonWrapper.callbacks&&window.OptanonWrapper.callbacks.push(e)}function S(e){return!!window.OptanonActiveGroups&&window.OptanonActiveGroups.indexOf(","+e+",")>-1}function E(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function I(e){var t,n=o.a.get("privacy_settings");P(n,e)||(n.set(((t={})[s.a.ANALYTICS_OPT_IN]=e.indexOf(v.Performance)>-1,t)),k())}function R(e){var t,n=o.a.get("privacy_settings"),r=e.indexOf(v.Targeting)>-1,i=e.indexOf(v.Performance)>-1;n.isOptedInToTargetedAdvertising()===r&&n.isOptedInToAnalytics()===i||(n.set(((t={})[s.a.TARGETED_ADVERTISING_OPT_IN]=r,t[s.a.ANALYTICS_OPT_IN]=i,t)),n.save(n.changed))}function O(){m().then((function(e){if(window.OptanonWrapper&&window.OptanonWrapper.callbacks){if(window.OptanonWrapper.isLoaded){var t=(window.OptanonActiveGroups||"").split(",");e===r.CCPA?R(t):I(t)}e===r.CCPA?C(R):C(I)}}))}function M(e){function t(t){e({event_name:"Performance Consent Retrieved",click_name:"performance_consent",click_attributes:{consent_setting:t}})}var n="unknown",r=c.a.get("OptanonConsent");if(r){var i=/groups=.*C0002:([01])/.exec(decodeURIComponent(r));i&&"1"===i[1]?n="consent":i&&"0"===i[1]&&c.a.get("OptanonAlertBoxClosed")&&(n="no_consent")}var o=n;C((function(e){c.a.clearCache();var n=c.a.get("OptanonAlertBoxClosed")?"no_consent":"unknown";-1!==e.indexOf(v.Performance)&&(n="consent"),n!==o&&(o=n,t(n))})),t(n)}function D(){var e=o.a.get("me");return Promise.all([U(e),m()]).then((function(e){var t=e[0];return function(e,t){var n,i,o;return e===r.GDPR?((i={})[s.a.ANALYTICS_OPT_IN]=!1,i[s.a.TARGETED_ADVERTISING_OPT_IN]=!1,i):e===r.CCPA&&t<16?((o={})[s.a.ANALYTICS_OPT_IN]=!0,o[s.a.TARGETED_ADVERTISING_OPT_IN]=!1,o):((n={})[s.a.ANALYTICS_OPT_IN]=!0,n[s.a.TARGETED_ADVERTISING_OPT_IN]=!0,n)}(e[1],t)}))}function U(e){return new Promise((function(t){if(e.get("date_of_birth"))return t(e.getAge());e.once("change:date_of_birth",(function(){return t(e.getAge())}))}))}C(w);var N,F,B=n(11),z=n.n(B),q=n(479),j=!1;function V(){return q.getConsentString()}function H(){return 2..toString()}function G(){return new Promise((function(e,t){p().then((function(){if(window.__tcfapi)return e(window.__tcfapi);t("__tcfapi not loaded.")}))}))}function Q(){return j?Promise.resolve():new Promise((function(e,t){m().then((function(n){n===r.GDPR&&G().then((function(t){t("addEventListener",2,K),j=!0,e()})).catch((function(e){var n="Failed initializing OneTrust TCFv2: "+e;d.a.notify(new Error(n)),t(n)}))}))}))}function K(e,t){if(t){var n,r,i,a=e.tcString;q.setConsentString(a),"string"!=typeof e.purpose.consents&&(n=!!e.purpose.consents[N.Personalization],(i=o.a.get("privacy_settings")).isOptedInToTargetedAdvertising()!==n&&(i.set(((r={})[s.a.TARGETED_ADVERTISING_OPT_IN]=n,r)),_.a.isLoggedIn()&&k()))}else{d.a.notify(new Error("__tcfapi request failed"))}}function W(e){var t,n=function(){};G().then((function(n){n("addEventListener",2,(function(n,r){t=n.listenerId,e(n,r)}))})).catch(n);return function(){G().then((function(n){n("removeEventListener",2,e,t)})).catch(n)}}!function(e){e[e.Personalization=4]="Personalization"}(N||(N={})),function(e){e[e.OPTED_IN=0]="OPTED_IN",e[e.OPTED_OUT=1]="OPTED_OUT",e[e.IRRELEVANT_NON_GDPR_TERRITORY=2]="IRRELEVANT_NON_GDPR_TERRITORY"}(F||(F={})),z.a.once("connect:hasUserData",(function(){m().then((function(e){e===r.GDPR&&G().then((function(e){e("getInAppTCData",2,K)}))}))}));var Y=function(e){return function(t,n){return!!n&&("string"==typeof t.purpose.consents&&"1"===t.purpose.consents.charAt(e)||!("object"!=typeof t.purpose.consents||!t.purpose.consents[e]))}};function $(){return($=Object.assign||function(e){for(var t=1;t0&&i.save(i.changed)}))}))}var X,Z=n(926);function ee(){return(ee=Object.assign||function(e){for(var t=1;t=t}))||n(1).last(r);return"t20x20"===i[1]&&"artworks"===e?"tiny":i[1]}(a,t);c&&(e=e.replace(u,c)),r&&(e=s.call(this,e))}return e},getOriginalFormat:function(e,t){if(this.isDefaultImage(e))return"";var n=this.parseImageUrl(e);if(n){var r=n[3];e=e.replace(r,"original"),t&&(e=s.call(this,e))}return e},isDefaultImage:function(e){return!e||i.test(e)},parseImageUrl:function(e){return o.imageUrlRegex.exec(e)},getAltText:function(e){return(e=a(e))?e.username?n(752).get(e,!0)+" avatar":n(752).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}},389:function(e,t,n){e.exports=function(e,t,r){var i,o=(r=n(1).defaults(r||{},{maxRetries:3})).maxRetries,a=new(n(265))({giveUp:o}),s=n(10).defer(),u=s.promise();function c(){i=e().done(s.resolve.bind(s)).progress(s.notify).fail(l)}function l(e){0===e.status||t(e)?(!function(e){a.options.giveUp=0===e.status?1/0:o}(e),a.failed()):s.reject(e)}return a.on("giveup",s.reject),a.on("enabled",c),s.always((function(){a.dispose()})),c(),u.abort=function(){i.abort&&i.abort(),s.reject()},r.abort&&n(361).listenToAbortSignal(u,r.abort),u}},391:function(e,t,n){var r,i,o,a,s={ACTION:"action",BILLING_CYCLE:"billing_cycle",PAYMENT_METHOD:"payment_method",PRODUCT_PURCHASED:"product_purchased"},u={CHECKOUT_PROCESS_SUCCESSFUL:"checkout_process_successful",FREE_PLAN_PICKED_EXPLICITLY:"free_plan_picked_explicitly",PLAN_OPT_OUT_CLICKED:"plan_opt_out_clicked",MANAGE_BILLING_CLICKED:"manage_billing_clicked"},c={CREATOR_MID_TIER:n(26).ProductId.CREATOR_SUBSCRIPTION_4,CREATOR_HIGH_TIER:n(26).ProductId.CREATOR_SUBSCRIPTION_3},l={CUSTOM:"custom",MONTHLY:"monthly",YEARLY:"yearly"},d={NON_PAID:"non-paid"},f={CREDIT_CARD:"credit-card",PAYPAL:"paypal"},h={NO_PAYMENT_METHOD:"no-payment-method"},p=((a={})[u.CHECKOUT_PROCESS_SUCCESSFUL]={params:(r={},r[s.BILLING_CYCLE]=Object.values(l),r[s.PAYMENT_METHOD]=Object.values(f),r[s.PRODUCT_PURCHASED]=[].concat(Object.values(c),[void 0]),r),query:(i={},i.downgrade_start_date=function(e){var t=new Date(e);return!isNaN(t.getTime())},i)},a[u.FREE_PLAN_PICKED_EXPLICITLY]={params:(o={},o[s.BILLING_CYCLE]=Object.values(d),o[s.PAYMENT_METHOD]=Object.values(h),o[s.PRODUCT_PURCHASED]=[].concat(Object.values({NO_PRODUCT_PURCHASED:"no-product-purchased"}),[void 0]),o)},a);e.exports={CheckoutAction:u,BillingCycle:l,ProductPurchased:c,NonPaidBillingCycle:d,PaymentMethod:f,NoPaymentMethod:h,PathParamName:s,validParamsByCheckoutAction:p,areParamsValid:function(e,t){void 0===t&&(t={});var n=p[e[s.ACTION]];if(!n)return!1;for(var r=0,i=Object.entries(n.params);r-1?i:e).replace(a,".json")}function c(e){return t.ajax({url:e,type:"GET",dataType:"json",timeout:1e4,priority:n(212).RequestPriorities.LOW})}var l=n(1).memoize((function(e){return function(t,n,r){return t[r]=Math.round(Math.pow((e-n)/e,1/1.5)*e),t}})),d=n(1).memoize((function(){for(var e=new r(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(l(e.height),new r(e.samples.length))}}).call(this,n(25))},398:function(e,t,n){var r=["q","q[fulltext]","filter.duration","filter.created_at","filter.license","filter.genre","filter.genre_or_tag","filter.place","query_urn"],i={"user-promoted":"user","track-promoted":"track"};e.exports={highlightText:function(e,t,r){var i,o=n(1).assign({start:"",end:""},r),a=e.split("");if(!t)return e;for(i=t.length;i--;)a.splice(t[i].end,0,o.end),a.splice(t[i].start,0,o.start);return a.join("")},getParams:function(){var e=n(32).parse(window.location.href);return this.getValidParams(e.query)},getValidParams:function(e){return n(1).pick(e,r)},modifyParamsWith:function(e,t){var r={},i=this.getParams();return void 0===t&&i.hasOwnProperty(e)?delete i[e]:(r[e]=t,n(1).assign(i,r)),n(32).stringify({query:i})},getFilters:function(e){var t={},r=/^filter\./;return e=e||this.getParams(),n(1).each(e,(function(e,n){r.test(n)&&(t[n]=e)})),n(1).isEmpty(t)?void 0:t},fuzzy:function(e,t,r){var i=e.replace(/\W+/gi,"").split(""),o=new RegExp("\\b("+i.join(").*?(")+")","i");if(!e)return t.map((function(e){return{item:e,highlights:[],score:1}}));var a=t.map((function(t){var i,a,s=(r?t.get?t.get(r):t[r]:t).toString(),u=n(425)(s),c=o.exec(u),l=[];if(c){for(i=c.index,a=1;ao?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(130).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(!l(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(i(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(74).country(t[0]).title}):n(2).Lingua.t("This playlist will only be playable in [[countryTitle]].",{countryTitle:n(74).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 r(e){return e.isPrivate()}function i(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 c(e){return e.isManagedByFeeds()}function l(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(7).LinguaLib.dateTimeHelper.format(new Date(e),t):null}},426:function(e,t,n){function r(e,t,n){return(r=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 c(){s.forEach((function(e){e.beginSweep()}));do{}while(s.reduce(u,!1));s.forEach((function(e){e.endSweep(),e.mark()}))}function l(e){void 0===e&&(e=6e4),d(),a=window.setInterval(c,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}l(),e.exports={GC_INTERVAL:6e4,setStoreCleanupInterval:l,clearStoreCleanupInterval:d,applyTo:function e(t,i){delete(i=n(1).assign({neverRelease:!1,cleanupInstantly:!1,hashFn:function(){return null},prepareArgs:function(){return arguments},prepareInstance:function(){return this},getIncrementValue:function(){return 1},onHold:n(1).noop,onRelease:n(1).noop,onCleanup:null},i,t)).prototype;var o,a=t.extend||n(42).Model.extend,u=i.neverRelease,l=new(n(741))({autoCleanup:i.cleanupInstantly,onCleanup:(o=i.onCleanup,o?function(e){f(e),o.apply(e,arguments)}:f),onIncrement:i.onHold,onDecrement:i.onRelease,neverRelease:u});s.push(l);var d={hold:u?n(1).noop:function(e){l.increment(this.resource_id,e)},release:u?n(1).noop:function(e){l.decrement(this.resource_id,e)},_usageCount:function(){return l.countFor(this.resource_id)},constructor:function(){for(var e=arguments.length,n=new Array(e),r=0;r"},replacePlaceholders:function(e){var t=v(e),n=e.getTrackingUiComponent();Array.prototype.slice.call(e.el.querySelectorAll("div[data-react-view-id]")).forEach((function(r){var u=r.getAttribute("data-react-view-id"),l=p.get(u),m=l.props,v=l.ReactView;o.render(i.createElement(f.a.Provider,{value:t},i.createElement(a.c,{ui_component_name:n.ui_component_name,ui_component_urn:n.ui_component_urn},i.createElement(a.a,{rootMargin:d.APPLICATION_ROOT_MARGIN},i.createElement(a.b.Provider,{value:c.a.tracking},i.createElement(h.a,null,i.createElement(s.ProductNameProvider,g,i.createElement(v,m))))))),r,(function(){p.delete(u),e.addReactSubview(r),r.removeAttribute("data-react-view-id")}))}))}};t.default=m;var v=function(e){return function(){var t=e.getContextData();return t.scope||(t.scope=[]),t}},y=function(e){var t=null!=e&&e.style?Object(r.map)(e.style,(function(e,t){return t+": "+e})).join("; "):null;return t?'style="'+t+'"':""}},439:function(e,t,n){e.exports={oneline:{paragraphs:!1,whitelist:[],externalLinks:!1},default:{redirectorPattern:"https://gate.sc?url=%s",addChecksum:n(1430).addChecksum}}},44:function(e,t,n){(function(t){var r=/^[^\/]/,i=/\/$/;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(r,"/$&")||"/"}function u(e){return e.replace(i,"")}e.exports=n(1201)({endpoints:n(1203),services:n(1204)},(function(e){var r,i,o=e.url,a=e.headers,s=e.method,u=e.timeout,c=e.dataType,l=e.includeCredentials,d=null!==e.data&&void 0!==e.data&&"json"===c,f="get"!==s,h=(null==(r=e.extras)?void 0:r.priority)||n(212).RequestPriorities.MEDIUM,p=d&&f?JSON.stringify(e.data):e.data,g=d?"application/json":null,m=Boolean(null==(i=window.__sc_env)?void 0:i.forceCredentials)||!0===l?{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,r,i,o){return n(32).stringify({scheme:e,host:t,port:r,path:s(u(i)),query:o})}),(function e(t){var r=n(10).promise(t);return r.constructor=e,r})).use((function(e,t){return t(e).then(o,a)})).use((function(e,t){var r=t(e),i=e.requestOptions.extras;return i.abort?n(361).listenToAbortSignal(r,i.abort):r}))}).call(this,n(25))},440:function(e,t,n){(function(t){var n;e.exports={getScrollbarSize:function(){if(void 0===n){var e=t('
');t("body").append(e);var r=t("div",e).innerWidth();e.css("overflow","auto");var i=t("div",e).innerWidth();e.remove(),void 0!==r&&void 0!==i&&(n=r-i)}return n}}}).call(this,n(25))},441:function(e,t){e.exports={KNOWN_CONTENT_MONETIZATION:"can_sign_premier_known_content_contract",UNKNOWN_CONTENT_PAYOUTS:"can_sign_premier_unknown_content_contract"}},442:function(e,t,n){"use strict";var r=n(23),i=n.n(r),o=n(28),a=n.n(o),s=n(17),u=n.n(s),c=n(44),l=n.n(c);function d(){return(d=Object.assign||function(e){for(var t=1;t1?t-1:0),i=1;i0;return e.uploadsOverQuotaCount()>0&&t?(e.set("sharing","private"),e.saveEdits()):n(10).reject()}))}},getAttributesToBeSaved:function(){return{tracks:this._soundUploads.uploadsWithoutErrors().map((function(e){return{id:e.getAudible().id}}))}},getAttributesFromModel:function(){return{}},setup:function(){this._soundUploads=new i,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(10).defer(),i=n(108).prototype.validate.apply(this,arguments),o=e,a=o.fields,s=a?n(1).assign({},e,{fields:n(1).intersection(a,r)}):e,u=this._soundUploads.map((function(e){return e.validate.call(e,s)}));return u.push(i),n(10).all(u).done((function(){var e=Array.prototype.slice.call(arguments);t.resolve(e.every(n(1).identity))})),t},setTitleFromFolder:function(e){this.set("title",e)},onAudibleEdited:n(1).noop,onAudibleSaved:function(){this.failedSaving=!1,c.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(50).destroy(this._playlist)},resetOrder:n(1).noop,saveOrder:n(1).noop,getCurrentOrder:function(){return n(1).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(65)),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(1).pick(this.attributes,r))}),this)}function u(e){e.changedAttributes()&&this._soundUploads.each((function(t){t.set(n(1).pick(e.changedAttributes(),r))}))}function c(){var e=this.getAudible();this._soundUploads.uploadsWithoutErrors().forEach((function(t){var n=t.getAudible();e.addSound(n);var r=e.findSoundById(n.id);t.updateSound(r)}))}},445:function(e,t,n){var r=[{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.")}],i={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(118).extend({type:"sound",initialize:function(){n(118).prototype.initialize.apply(this,arguments),this.constraints=r.concat(i[this.type])},check:function(e,t){var r=this;if(""!==e){var i=n(1).find(this.constraints,(function(t){return!t.rule.test(e)}));i?(this.message=i.errorMessage,t(!1)):this.resolvePermalink(e).done((function(e){!1===e&&(r.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),r=n(6).get("me").get("permalink");return t&&e===t.get("permalink")?n(10).resolve(!0):"sound"===this.type?n(44).callEndpoint("trackPermalinkAvailability",null,{permalink:e}).then((function(e){return e.body.track_permalink_available})):"playlist"===this.type?n(65).resolve(r,e).then((function(e){return!1})):void 0}})},446:function(e,t,n){e.exports=n(118).extend({message:n(2).Lingua.t("Enter a valid date."),check:function(e,t){t(e instanceof Date&&"number"==typeof+e&&!isNaN(+e))}})},447:function(e,t,n){e.exports=n(587).extend({_statuses:null,initialize:function(){this._statuses=[]},add:n(1).noop,addTransfer:function(e){this._statuses.push(e),r.call(this,"on",e),i.call(this)},removeTransfer:function(e){var t=this._statuses.indexOf(e);t>-1&&(this._statuses.splice(t,1),r.call(this,"off",e),i.call(this))}});function r(e,t){t[e]("data",i,this)}function i(){n(1).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(r.bind(this,"off")),this._statuses.length=0,i.call(this)}function a(e,t){return e.latest+=t.latest,e.totalSize+=t.totalSize,e}},454:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SceneNode=void 0;var o=function(e){function t(t,n){var r=e.call(this)||this;return r.disposed=!1,r.layer=n,r.waveform=t,r.setup(),r}return i(t,e),t.prototype.update=function(e){var t=this.draw(e);return this.setDirty(t),t},t}(n(858).CanBeDirty);t.SceneNode=o},46:function(e,t,n){"use strict";n.r(t),n.d(t,"EventCategory",(function(){return r})),n.d(t,"EventAction",(function(){return i})),n.d(t,"include",(function(){return p})),n.d(t,"trackEvent",(function(){return g})),n.d(t,"trackPageView",(function(){return m}));var r,i,o,a=n(1),s=n.n(a),u=n(86),c=n.n(u),l=n(130),d=n.n(l),f=n(17),h=n.n(f);function p(){window.gtag=window.gtag||function(){(window.dataLayer=window.dataLayer||[]).push(arguments)},window.gtag("js",new Date),window.gtag("set",{anonymize_ip:!0,custom_map:y}),window.gtag("config","UA-2519404-44",{send_page_view:!1}),s.a.defer(c.a.insertScript,"https://www.googletagmanager.com/gtag/js?id=UA-2519404-44")}function g(e){var t=e.category,n=e.action,r=e.label,i=e.value;window.gtag&&window.gtag("event",n,s.a.assign({event_category:t,event_label:r,value:i},v()))}function m(){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},v()))}function v(){var e;return(e={})[o.loginStatus]=h.a.isLoggedIn()?"Logged In":"Logged Out",e[o.premierEligibility]=d.a.isQualified()?"Eligible":"Not Eligible",e[o.premierMonetizationMembership]=d.a.isPremierVIPMember()?"Premier VIP":d.a.isPremierMonetizationMember()?"Premier":"Not a Member",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",e.userConsent="user_consent"}(r||(r={})),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",e.tcfv2ConsentStringLoaded="tcfv2_consent_string_loaded",e.tcfv2ConsentStringNotLoaded="tcfv2_consent_string_not_loaded"}(i||(i={})),function(e){e[e.loginStatus=0]="loginStatus",e[e.premierEligibility=1]="premierEligibility",e[e.premierMonetizationMembership=2]="premierMonetizationMembership"}(o||(o={}));var y={dimension4:o.loginStatus,dimension7:o.premierEligibility,dimension8:o.premierMonetizationMembership}},462: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(),r=function(e){var t,n,r=e.eventType;r&&0===r.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=r.x,e.pageY=r.y,e.offsetX=r.x-(n?n.left:0),e.offsetY=r.y-(n?n.top:0)}return e}}}).call(this,n(25))},47:function(e,t,n){var r=e.exports=n(241).extend();n(1211).applyTo(r.prototype),n(1212).applyTo(r.prototype)},476:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26),i=function(e){return Object(r.mapStringToProductId)(e.replace(/^creator-/,""),r.ProductCategory.CREATOR_SUBSCRIPTION)}},477:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(39),i=n.n(r),o=n(282),a=n(18),s=n(288),u=(n(8),i.a.extend({className:"webiEmbeddedModalContentView",defaults:{iframeManagerInstance:null},template:function(){return Object(a.reactSubview)(o.WebiEmbeddedModule,{iframeManager:this.options.iframeManagerInstance})}})),c=i.a.extend({defaults:{filter:"whiteout",embeddedModuleOptions:null},setup:function(){var e=this,t=new s.a(this.options.embeddedModuleOptions);t.setMessageHandler("modal-close",(function(){return e.close()})),this.iframeManager=t,this.options.Subview=u,this.options.subviewArgs={iframeManagerInstance:this.iframeManager},i.a.prototype.setup.call(this,this.options)}})},479:function(e,t,n){"use strict";n.r(t),n.d(t,"getConsentString",(function(){return a})),n.d(t,"setConsentString",(function(){return s})),n.d(t,"reset",(function(){return u}));var r,i=n(47),o=n.n(i);function a(){return c().get("consent_string")}function s(e){c().set("consent_string",e)}function u(){c().reset(),r=void 0}function c(){return r||(r=new o.a("tcfv2")),r}},481:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(6),i=n.n(r),o=n(11),a=n.n(o),s=n(168),u=n(35),c=n(158);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=null,f=function(){function e(e){var t=this;l(this,"_whenWebiReady",void 0),l(this,"_markWebiReady",void 0),l(this,"_options",void 0),l(this,"_webiEmbedId",void 0),l(this,"_iframeElement",void 0),l(this,"_messageHandlers",void 0),this._options=e,this._iframeElement=null,this._webiEmbedId=null,this._messageHandlers=new Map,this._whenWebiReady=new Promise((function(e){t._markWebiReady=e})),this._addMessageHandlers(),this._handleMessageEvent=this._handleMessageEvent.bind(this)}var t=e.prototype;return t.initialize=function(){return this._iframeElement=this._getOrCreateIframeElement(),window.addEventListener("message",this._handleMessageEvent),this._registerOneTrustLoadHandler(),this._addThemeChangeListener(),this._iframeElement},t.teardown=function(){window.removeEventListener("message",this._handleMessageEvent)},t.setMessageHandler=function(e,t){this._messageHandlers.set(e,t)},t.sendMessage=function(e){var t=this;return this._whenWebiReady.then((function(){var n,r;null==(n=t._iframeElement)||null==(r=n.contentWindow)||null==r.postMessage||r.postMessage(e,i.a.get("webi_host"))}))},t.whenReady=function(){return this._whenWebiReady},t.getIframeElement=function(){return this._iframeElement},t.getWebiEmbedId=function(){return this._webiEmbedId},t.setVisible=function(e){var t;null==(t=this._iframeElement)||t.classList.toggle(s.WebiIframeConfig.hiddenClass,!e)},t.refresh=function(e){var t=this;void 0===e&&(e=1e3),setTimeout((function(){t.sendMessage({kind:"refresh"})}),e)},t._handleMessageEvent=function(e){var t;if(this._isMessageEventOriginValid(e)&&(null==(t=e.data)?void 0:t.webiEmbedId)===this._webiEmbedId){var n=e.data,r=this._messageHandlers.get(n.kind);r&&r.call(this,n)}},t._getOrCreateIframeElement=function(){var e=this._options,t=e.preRenderedIframeId,n=e.initialPath,r=t?document.getElementById(t):null;if("IFRAME"===(null==r?void 0:r.tagName))return this._webiEmbedId=r.getAttribute("data-webi-embed-id"),r;var i=document.createElement("iframe");i.allow=s.WebiIframeConfig.allow;var o=c.default.getTheme(),a=Object(s.makeWebiIframeUrlWithEmbedId)({route:n,theme:o}),u=a.url,l=a.webiEmbedId;return this._webiEmbedId=l,i.src=u,i.setAttribute("data-webi-embed-id",l),i},t._addMessageHandlers=function(){this.setMessageHandler("ready",(function(){this._markWebiReady()})),this.setMessageHandler("navigate",(function(e){!function(e,t){d&&window.clearTimeout(d);d=window.setTimeout((function(){var n=i.a.get("router"),r=new URL(document.baseURI).origin!==new URL(e,document.baseURI).origin;if(t||r)window.open(e,"_blank");else{var o;try{var a=new URL(e);o=""+a.pathname+a.search+a.hash}catch(t){o=e}n.navigate(o,!0)}}))}(e.href,e.openInNewTab)})),this.setMessageHandler("model-revalidate",(function(e){var t=e.modelKind,n=e.urn,r="model:revalidate:"+t;a.a.trigger(r,{urn:n})}))},t._isMessageEventOriginValid=function(e){return e.origin===i.a.get("webi_host")},t._registerOneTrustLoadHandler=function(){var e=this;return Object(u.getOneTrustSDK)().then((function(){e.sendMessage({kind:"onetrust-loaded"})}))},t._addThemeChangeListener=function(){var e=this;c.default.onThemeChange((function(){e.sendMessage({kind:"set-theme",theme:c.default.getTheme()})}))},e}()},482:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r,i,o=n(10),a=n.n(o);n(215);!function(e){e.Followings="followings",e.SoundLikes="sound-likes",e.SoundReposts="sound-reposts",e.PlaylistLikes="playlist-likes",e.PlaylistReposts="playlist-reposts",e.SystemPlaylistLikes="system-playlist-likes",e.Followers="followers",e.Blockings="blockings"}(i||(i={}));var s=((r={})[i.SoundLikes]=n(364),r[i.Followings]=n(230),r[i.Followers]=n(325),r[i.SoundReposts]=n(253),r[i.PlaylistLikes]=n(386),r[i.PlaylistReposts]=n(387),r[i.SystemPlaylistLikes]=n(388),r[i.Blockings]=n(408),r);function u(){return e=[i.SoundLikes],t=e.map((function(e){return s[e]})),a.a.all(t.map((function(e){var t=new e;return t.forceRefetch().always((function(){return t.release()}))})));var e,t}},486:function(e,t,n){e.exports={labels:{geoblocked:{text:n(2).Lingua.t("Geoblocked",{}),icon:n(13).Location},monetizable:{text:n(2).Lingua.t("Monetizing",{}),icon:n(13).Monetize},"monetizable-pending":{text:n(2).Lingua.t("Not monetizing",{}),icon:n(13).Monetize},"monetizable-possible":{text:n(2).Lingua.t("Monetizable",{}),icon:n(13).Monetize},"monetization-restriction":{text:n(2).Lingua.t("Monetization restricted",{}),icon:n(13).NonMonetize},private:{text:n(2).Lingua.t("Private",{}),icon:n(13).Private},restricted:{text:n(2).Lingua.t("Restricted",{}),icon:n(13).Block},scheduled:{text:n(2).Lingua.t("Scheduled",{}),icon:n(13).Schedule},mastered:{text:n(2).Lingua.t("Mastered",{}),icon:n(13).Mastering}}}},488:function(e,t){e.exports={THEME_COOKIE_NAME:"sc_theme"}},491:function(e,t){e.exports={GET_VERSION_REQUEST:"GET_VERSION_REQUEST",GET_VERSION_RESPONSE:"GET_VERSION_RESPONSE"}},492:function(e,t,n){(function(t){var r=e.exports=n(42).View.extend({css:null,template:null,tracking:null,views:null,_currentViews:null,slots:null,includeFooter:null,displayHeader:!0,initialize:function(){this.views={},this._currentViews={}},setArgs:function(e){this.args=e||{}},setup:function(){var e=n(10).defer();return n(1).defer(e.resolve),e},dispose:n(1).noop,_dispose:function(){var e,t,r;this.dispose(),this.shouldRenderInWebi()&&n(205).Crossfade.hideCrossfadeIframe(),i()?(t=(e=this).$el,r=e.el,n(86).removeElement(r),o(e),n(779).scheduleIdleTask((function(){return t.remove()}))):(n(1).invoke(this._currentViews,"_dispose"),n(1).invoke(this.views,"_dispose"),this.$el.remove()),delete this.slots,delete this.views,delete this._currentViews},switchLayout:function(e){e&&(i()?o(this):(n(1).invoke(this._currentViews,"_dispose"),n(1).invoke(this.views,"_dispose")),this.template=e.template,this.includeFooter=e.includeFooter,this.slots=null,this.$el.empty())},getTemplateData:n(1).noop,shouldRenderInWebi:function(){return Boolean(this.args.renderInWebi)},shouldRenderFullScreen:function(){return Boolean(this.args.fullScreen)},render:function(){var e,r,o;if(this.includeFooter&&(o=this.views["l-footer"]),""===this.el.innerHTML){var s=this.shouldRenderInWebi()?function(){return null}:this.template;n(566).render(s,this.getTemplateData(),this.el),this.slots={},n(1).each(this.views,(function(e,t){this.slots[t]=this.$("."+t)[0]}),this)}n(1).each(this.views,(function(e,t){this._currentViews[t]!==e&&(this._currentViews[t]&&(i()?a(this._currentViews[t]):this._currentViews[t]._dispose()),e.render(),"l-footer"!==t&&this.slots[t].appendChild(e.el),this._currentViews[t]=e)}),this);var u=this.$(this.includeFooter);o&&!o.disposed&&u[0]&&u.append(o.$el),t(window.document.body).toggleClass("m-hideHeader",!this.displayHeader);var c=null==(e=window.history)||null==(r=e.state)?void 0:r.scrollTop;return n(410).restoreScrollPosition(c),this.renderDecorate(),this.shouldRenderInWebi()&&n(205).Crossfade.showCrossfadeIframe(n(6).get("router").getLocation(),{fullScreen:this.shouldRenderFullScreen()}),this},renderDecorate:n(1).noop,setViews:function(e){var t=n(10).defer();return this.shouldRenderInWebi()||(this.includeFooter&&(e["l-footer"]=[n(976)]),n(1).each(e,(function(e,t){var n=e[0],r=e[1];this._currentViews[t]&&this._currentViews[t].isEquivalentTo(n,r)&&!this._currentViews[t].disposed||(this.views[t]=new n(r))}),this)),n(1).delay(t.resolve.bind(t)),t},getChangeEventData:function(e){return{layoutName:e,tracking:n(1).mapObject(this.tracking,(function(e,t){return n(1).isFunction(e)?e.call(this):e}),this),args:this.args}},setTitle:function(e,t){n(654).set(e,t)},t:n(2).Lingua.t,tp:n(2).Lingua.tp});function i(){return n(6).get("features").has("internal_qa")}function o(e){n(1).uniq([].concat(n(1).values(e._currentViews),n(1).values(e.views))).forEach(a)}function a(e){n(86).removeElement(e.el),function e(t,n){t&&((t.subviews||[]).forEach((function(t){return e(t,n)})),n(t))}(e,(function(e){return e.scheduleDisposal()}))}n(1904).applyTo(r.prototype)}).call(this,n(25))},50:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t":"";return n(1).each(t,(function(e,t){"style"===t&&"object"==typeof e&&(e=this.getStyleAttr(e)),a&&-1===a.indexOf(t)||o.push(" "+t+'="'+n(14).Utils.escapeExpression(e)+'"')}),this),"<"+e+o.join("")+s+">"+u},getStyleAttr:function(e){return n(1).map(e,(function(e,t){return null!=e&&""!==e?t+":"+e+";":""})).join("")}}},515:function(e,t,n){var r=function(){"use strict";function e(e,t){this.fn=e,this.priority=t,this.isStarted=!1,this.defer=n(10).defer()}var t=e.prototype;return t.run=function(){var e=this.defer,t=e.resolve,n=e.reject,r=e.state;return this.isStarted||"pending"!==r()||(this.isStarted=!0,this.fn().done(t).fail(n)),this.defer},t.cancel=function(){this.defer.reject()},e}(),i=function(){"use strict";function e(e){this.tasks=new(n(1208))((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 r(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:r,AsyncTasksQueue:i}},516:function(e,t){e.exports={keepYourLikes:"undismissible-keep-your-likes",followArtistsOnSoundcloud:"follow-artists-on-soundcloud",blockScrubbingLongformTracks:"block-scrubbing-longform-tracks"}},518:function(e,t,n){e.exports=n(53).extend({notificationType:null,queue:null,defaults:{hasQueue:!1},initialize:function(e,t){var o=this.notificationType;n(53).prototype.initialize.apply(this,arguments);var a=n(200)[o];null!=t&&t.hasQueue&&(this.baseUrl=a.get("baseUrl"),this.queue=new(n(809))({type:o}),this.queue.on("data",r,this).on("change:size",i,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",r,e).off("change:size",i,e).release()}});function r(e){e.length&&(this.add(e,{at:0}),this.trigger("new-data",e))}function i(e,t){this.trigger("change:queue-size",this,t)}},520:function(e,t,n){"use strict";n.r(t),n.d(t,"trackUserProfileHeaderUpdated",(function(){return o})),n.d(t,"trackUserProfileImageUpdated",(function(){return a})),n.d(t,"trackUserProfileMetadataUpdated",(function(){return s}));var r=n(15),i=n.n(r);function o(e){i.a.tracking.track("User Profile Header Updated",{user_urn:e,update_type:"add"})}function a(e){i.a.tracking.track("User Profile Image Updated",{user_urn:e,update_type:"add"})}function s(e){i.a.tracking.track("User Profile Metadata Updated",{user_urn:e,fields_updated:null})}},53:function(e,t,n){var r=e.exports=n(426).applyTo(n(42).Collection.extend({next_href:null,lastFetchTime:null,model:{},getEndpointUrl:n(44).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,i){if(n(1).defaults(i,t.prototype.defaults),t===r)return i;return e(t.__super__.constructor,i)}(this.constructor,t||{}),this.setup(this.options)},setup:n(1).noop,_prepareModel:function(e){var t=e instanceof n(42).Model,r=n(42).Collection.prototype._prepareModel.apply(this,arguments);return r&&r.hold(this._usageCount()-(t?0:1)),r},_removeReference:function(e){return e.release(this._usageCount()),n(42).Collection.prototype._removeReference.apply(this,arguments)},fetch:function(e){var t,r=this,i=(null==e?void 0:e.url)||n(1).result(this,"url"),o=this.getRequestEquivalencyUrl(i)||i;return i?(null==(t=this._requests)?void 0:t[o])||n(42).Collection.prototype.fetch.call(this,e).done((function(){!r.isFullyPopulated()||0!==r.length||null!=e&&e.reset||r.reset([])})):n(10).defer().done(null==e?void 0:e.success).resolve({})},fetchUntilResults:function(e){var t=this;void 0===e&&(e={});var r=this.options.limit,i=this.length,o=n(1).defaults({reset:!1},e),a=function(e){return t.fetch(e).then(s)},s=function(){var e=t.length>i,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(r)}))},fetchUntilLength:function(e){var t=this,r=function(){return t.length=e.minModels))},isPopulated:function(){return!!this.lastFetchTime},hasBeenFetchedSince:function(e){return"number"==typeof this.lastFetchTime&&this.lastFetchTime>=e},getRequestEquivalencyUrl:n(1).identity,isFullyPopulated:function(){return!1===this.next_href},setLimit:function(e){this.options.limit=e,i.call(this,{limit:e})},indexOfEquivalentModel:function(e,t,n){var r=this;void 0===t&&(t=this.models),void 0===n&&(n=0);var i=-1;return n&&(t=t.slice(n)),t.some((function(t,o){if(r.compareModels(e,t))return i=o+n,!0})),i},indexesOfEquivalentModels:function(e,t){for(var n=[],r=0;-1!==(r=this.indexOfEquivalentModel(e,t,r));)n.push(r),r++;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 i(e){this.next_href&&(this.next_href=n(32).modify(this.next_href,{query:e}))}},547:function(e,t,n){e.exports=new(n(23))({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 r=void 0!==t?!!t:!this._states[e];if(!n&&this._states[e]===r)return this;this._states[e]=r;var i=this.states[e],o=i.handler?i.handler:i,a=typeof o;return"string"===a?this.$el[r?"addClass":"removeClass"](o):"function"===a?o.call(this,r):o&&"function"==typeof o.setup&&o[r?"setup":"teardown"].call(this),this.trigger("state:"+e,r),this},getState:function(e){return this._states&&e in this._states?this._states[e]:!(!this.states||!(e in this.states))&&!!this.states[e].initial}})},549:function(e,t,n){var r=null,i=null,o=null,a={dontPersist:!0},s={id:0,playTime:1,userInitiated:2,timestamp:3},u={duration:0,userId:1},c={field:null,from:"global",id:null,unique:!1,playState:null,userInitiated:null,filter:null,newestFirst:!1,limit:!1};n(11).on("connect:logout",(function(){l._persistent.reset(),l._session.reset()}));var l=e.exports={_persistent:new(n(47))("play-log"),_session:new(n(241)),addSound:function(e,t){r&&this.writeToLog(),r=e,i=e.getListenTime(),o=t||{},e.on("pause",this.writeToLog,this).hold()},select:function(e){var t=this["session"===(e=n(1).assign({},c,e)).from?"_session":"_persistent"],r=t.get("log")||[];return e.id?r=r.filter(d(e.id)):e.userId&&(r=r.filter((function(n){return t.get(n[0])[1]===e.userId}))),e.unique&&(r=r.reduceRight(p,{map:{},result:[]}).result),r=r.filter((function(n){return(null==e.userInitiated||n[2]==e.userInitiated)&&(("played"!==e.playState||(r=n[1],i=t.get(n[0])[0],r/i>=.25))&&(!e.filter||(o=e).filter.apply(o,n)));var r,i,o})),e.newestFirst&&r.reverse(),e.limit&&r.length>e.limit&&(r=r.slice(0,e.limit)),r=e.field?n(1).pluck(r,s[e.field]):r.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(r){var e=Math.floor(r.getListenTime()-i),t=l._persistent,n=l._session,a=r.id,s=r.getMediaDuration();if(e>=Math.min(s,2e3)){var u=t.get("log")||[],c=n.get("log")||[],d=r.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),c.push(p),f(u,t),f(c,n)}r.off("pause",this.writeToLog,this).release(),r=i=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,r){e.has(t)||e.set(t,[n,r],a)}function p(e,t){var n=e.map[t[0]],r=e.result.length;if(void 0!==n){var i=e.result[r-n-1];i[1]+=t[1],i[2]=i[2]||t[2]}else e.map[t[0]]=r,e.result.unshift(t.slice());return e}function g(e){var t=this.get(e[0]);return n(1).object(Object.keys(s).concat(Object.keys(u)),e.concat(t))}},551:function(e,t,n){e.exports={stream:n(1).assign({shuffle:n(1).noop,unshuffle:function(){return[]},pause:n(1).noop,peek:n(1).noop,resume:n(1).noop,isEnded:n(1).constant(!0)},n(42).Events),dispose:n(1).noop}},553:function(e,t,n){e.exports=new(n(23))({getVisual:function(){var e,t,n=this.get("visuals");return null!=(e=n)&&e.visuals&&(n=n.visuals),(null==(t=n)?void 0:t[0])||{}},getVisualURL:function(){var e=1240*(n(97).isHiDPI?2:1);return n(70).setFormat(this.getVisual().visual_url,e)},hasVisuals:function(){return!n(1).isEmpty(this.get("visuals"))}})},554:function(e,t,n){e.exports=new(n(23))(n(756),n(1250),n(754),{requirePrototype:n(28).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 r=this;return void 0===t&&(t={}),t.statusCode=n(1).defaults({202:function(){n(11).trigger("audible:delete-already-queued",r),n(6).get("me").fetch()}},t.statusCode),e(n(1).clone(t))}},getQueueMetadataAt:function(e){return{sourceInfo:this.getSourceInfo(),queryPosition:0,originalModel:this}},onLike:function(e){r.call(this,"likes_count",e.state)},onRepost:function(e){r.call(this,"reposts_count",e.state)},onComment:function(e){r.call(this,"comment_count",e.state)},onPlayRegistered:function(){n(6).get("me").owns(this)||r.call(this,"playback_count",!0)},getShareURL:function(e){var t=!(null==e||!e.permalinkUrl),r=t?e.permalinkUrl:this.get("permalink_url"),i={query:{in:this.playlist&&this.playlist.id?n(32).parse(this.playlist.getShareURL()).relative.substr(1):null,si:null!=e&&e.sharing_id?e.sharing_id:null}};t||(i.scheme="https"),null!=e&&e.time&&(i.fragment="t="+e.time);var o=this.isPrivate()&&!n(555).urlContainsSecretToken(r);return n(32).stringify(i,r+(o?"/"+this.get("secret_token"):""))},resetSecretLink:function(){var e=this;return n(44).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(1).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(74).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(41).MS_IN_MINUTE,r=e<30*n(41).MS_IN_SECOND;return n(130).cantMonetizeLongContent()&&t||r},hasMonetizationPolicy:function(){return!!this.get("monetization_enabled")},hasMonetizationTerritories:function(){return this.getMonetizationTerritories().length>0},isPendingMonetization:function(){return this.hasMonetizationTerritories()&&!this.hasMonetizationPolicy()}});function r(e,t){this.has(e)&&this.set(e,Math.max(0,this.get(e)+(t?1:-1)))}},555:function(e,t,n){var r=new RegExp("s-[a-zA-Z0-9]{5,15}$");function i(e){var t=n(78).parse(e).path.split("/");return"sets"===t[2]?r.test(t[4]):r.test(t[3])}e.exports={urlContainsSecretToken:i,removeSecretTokenFromUrl:function(e){return i(e)?e.replace(r,""):e},secretTokenMatcher:"s-[a-zA-Z0-9]{5,15}"}},556:function(e,t,n){"use strict";var r,i,o;n(94),n(100),n(28),n(740);!function(e){e.Standard="standard",e.High="high",e.Auto="auto"}(r||(r={})),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"}(i||(i={})),function(e){e.play="play",e.pause="pause",e.checkpoint="checkpoint"}(o||(o={}))},559:function(e,t,n){var r=!1;e.exports={initializeOneTrustScan:function(){try{var e=n(68).get("onetrust");e&&"a7c02a899fe843dfbea609e8cfb420f0"===n(1285)(e)&&(r=!0)}catch(e){r=!1}},isOneTrustScanner:function(){return r}}},560:function(e,t,n){var r=/^[]/,i={de:"Deutsch",en:"English (US)",es:"Español",fr:"Français",it:"Italiano",nl:"Nederlands",pl:"Polski","pt-BR":"Português (Brasil)",sv:"Svenska"},o={asterisk:"Asterisk",lengthy:"lengthy"},a=n(1).extend({},i,o),s=n(1).keys(i),u=n(1).keys(a),c=n(1).keys(o);e.exports={defaultLocale:"en",publicLanguages:i,publicLanguageCodes:s,experimentalLanguages:o,experimentalLanguageCodes:c,experimentalAndPublicLanguages:a,experimentalAndPublicLanguageCodes:u,isLocaleExperimental:function(e){return r.test(e)||c.indexOf(e)>-1},normalizeLocale:function(e){var t=e.split("-")[0];return n(1).contains(u,t)?t:e},mapToV2Locale:function(e){return e.replace(/_/g,"-")}}},561:function(e,t,n){"use strict";n.r(t),n.d(t,"trackAuthenticationStarted",(function(){return o})),n.d(t,"trackAuthSignUpSuccess",(function(){return a})),n.d(t,"trackAuthSignInSuccess",(function(){return s}));var r=n(15),i=n.n(r);function o(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),i.a.tracking.track("Authentication Started",{button_target:e?"signup":"signin",signup_wall:n,source:t})}function a(e){i.a.tracking.track("Account Creation Succeeded",{signup_method:e,signin_to_signup:!1,is_new_connect:!0,referrer_properties:null})}function s(e){i.a.tracking.track("User Logged In",{login_method:e,signup_to_signin:!1,is_new_connect:!0,referrer_properties:null})}},562:function(e,t){var n=window.navigator;e.exports={getFlashPlugin:function(){var e,t,r,i;if(void 0!==window.ActiveXObject)try{(i=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(e=i.GetVariable("$version"))}catch(e){}else if(n.plugins&&n.plugins.length>0){var o,a,s;r="application/x-shockwave-flash",null!=(o=t=n.mimeTypes)&&null!=(a=o[r])&&null!=(s=a.enabledPlugin)&&s.description&&(e=t[r].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),r=e.match(/version\/([\.\d]+)/i),i=null!==r?r[1]:t?t[2]:null;return(t?[t[1],i]:[n.appName,n.appVersion]).join()}}},566:function(e,t,n){e.exports={render:function(e,t,n){var r=e(t||{});n&&(n.innerHTML=r)},subviews:function(e){n(567).replacePlaceholders(e),n(433).default.replacePlaceholders(e)}}},567:function(e,t,n){var r={},i=0,o=e.exports={handlebarHelper:function(e,t){var r=e;e.__esModule&&(r=e.default);var i=t.hash;return i.args&&(n(1).isFunction(i.args)&&(i.args=i.args(this)),t.hash=i=n(1).assign({},i.args,i)),delete i.args,t.fn&&(i.blockContent=new(n(14).SafeString)(t.fn(this))),o.registerSubview(r,t.hash)},registerSubview:function(e,t){var n=i++;return t.__class=e,t.className&&(t.className=[e.prototype.className,t.className].filter(Boolean).join(" ")),r[n]=t,''},replacePlaceholders:function(e){e.$("view").each((function(){!function(e,t){var i,o=e.getAttribute("data-id"),a=r[o],s=a.__class;delete r[o],a.key&&(i=a.key);var u=t.addSubview(new s(n(1).omit(a,"__path","__class","key")),i);u.render(),e.parentNode.replaceChild(u.el,e)}(this,e)}))}}},57:function(e,t,n){"use strict";n.r(t),n.d(t,"overrideAdapter",(function(){return S})),n.d(t,"ReadyState",(function(){return T})),n.d(t,"ready",(function(){return R})),n.d(t,"initPromise",(function(){return O})),n.d(t,"getStatsigClient",(function(){return M})),n.d(t,"initialize",(function(){return D})),n.d(t,"getDynamicConfig",(function(){return U})),n.d(t,"getDynamicConfigValue",(function(){return N})),n.d(t,"getExperimentConfig",(function(){return F})),n.d(t,"isFeatureGateEnabled",(function(){return B})),n.d(t,"getExperimentValue",(function(){return z})),n.d(t,"getExperimentLocalizableString",(function(){return q})),n.d(t,"getExperimentLayerValue",(function(){return j})),n.d(t,"getExperimentLayerLocalizableString",(function(){return V})),n.d(t,"getLocalizableString",(function(){return H})),n.d(t,"onUserUpdate",(function(){return G})),n.d(t,"onReadyChange",(function(){return Q})),n.d(t,"getStatsigUser",(function(){return W})),n.d(t,"__resetStatsigForTests",(function(){return X})),n.d(t,"__initializeStatsigForTests",(function(){return Z}));var r=n(259),i=n(7),o=n(6),a=n.n(o),s=n(11),u=n.n(s),c=n(15),l=n.n(c),d=n(392);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(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 h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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.")}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){console.group(e);for(var n=0,r=Object.keys(t);nDate.now())}})},586:function(e,t,n){"use strict";n.r(t),n.d(t,"trackImageUpdated",(function(){return o})),n.d(t,"trackTrackFileReplaced",(function(){return a})),n.d(t,"trackMetadataUpdated",(function(){return s}));var r=n(15),i=n.n(r);function o(e){i.a.tracking.track("Track Image Updated",{track_urn:e})}function a(e){i.a.tracking.track("Track File Replaced",{track_urn:e})}function s(e){i.a.tracking.track("Track Metadata Updated",{track_urn:e})}},587:function(e,t,n){e.exports=n(214).extend([n(42).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}}])},588:function(e,t,n){var r,i=n(53).extend({model:n(370),url:null,isFullyPopulated:function(){return!0},hasDataForView:function(){return!0}});e.exports=n(28).extend({resource_type:"aggregate-audio-upload",url:null,_uploadsCollection:null,hasDataForView:function(){return!0},setup:function(e){this._uploadsCollection=new i,this.set({status:n(75).QUEUED,hasBeenSaved:!1}),this.listenTo(this._uploadsCollection,"change:status",l).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(447))),this.set("transcoding",new(n(447)))}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")),l.call(this)}var c=((r={})[n(75).UPLOADING]=5,r[n(75).QUEUED]=4,r[n(75).TRANSCODING]=3,r[n(75).COMPLETE]=2,r[n(75).FAILED]=1,r[n(75).IDLE]=0,r);function l(){var e=this._uploadsCollection.pluck("status").reduce((function(e,t){return c[t]>c[e]?t:e}),n(75).IDLE);this.set("status",e)}},589:function(e,t,n){var r=/\S/,i=/\s+/;function o(e){return new RegExp("(?:\t \t|\\s|\\b)"+n(157).regexpEscape(e),"i")}e.exports={makeFilterGenerator:function(e){return function(t){if(!(a=t)||!r.test(a))return null;var a,s=n(1).compact(n(425)(t).split(i)).map(o);return function(t){var r=function(t){var r=(n(1).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(425)("\t \t"+n(1).compact(r.map((function(e){return e(t.attributes)}))).join("\t \t"))}(t);return s.every((function(e){return e.test(r)}))}}}}},600:function(e,t,n){"use strict";n.r(t),n.d(t,"trackPlayQueueInitiated",(function(){return o})),n.d(t,"trackTracksAddedToPlayQueue",(function(){return a})),n.d(t,"trackPlayQueueResumed",(function(){return s}));var r=n(15),i=n.n(r);n(55);function o(e,t,n,r,o){var a=o||{},s=a.ui_component_name,u=a.ui_component_urn;"artist-connect"===s?i.a.tracking.track("Play Queue Initiated",{object_urn:u||"",track_urns:t,play_queue_id:n,play_queue_source_id:r}):i.a.tracking.track("Play Queue Initiated",{object_urn:e,track_urns:t,play_queue_id:n,play_queue_source_id:r})}function a(e,t,n,r,o){var a=o||{},s=a.ui_component_name,u=a.ui_component_urn;i.a.tracking.track("Tracks Added To Play Queue",{from:e,play_queue_id:n,play_queue_source_id:r,track_urns:t,ui_component_name:s||null,ui_component_urn:u||null})}function s(e,t,n,r){var o=r||{},a=o.ui_component_name,s=o.ui_component_urn;i.a.tracking.track("Play Queue Resumed",{object_urn:e,play_queue_id:t,play_queue_source_id:n,ui_component_name:a||null,ui_component_urn:s||null})}},601:function(e,t,n){e.exports={getAccessibleMarkup:function(e){return''+n(14).Utils.escapeExpression(e.screenreader)+""+(e.visible?'":"")}}},606:function(e,t,n){(e.exports=function(e,t){var r,i=t.resource_type;return"single-audio-upload"===i?r=new(n(370))(e,t):"aggregate-audio-upload"===i&&(r=new(n(588))(e,t)),r}).getClass=function(e){var t=e.resource_type;return"single-audio-upload"===t?n(370):"aggregate-audio-upload"===t?n(588):void 0}},608:function(e,t,n){function r(e,t){var r;return n(1).findWhere(n(849),((r={})[e]=t,r))}function i(){return-60*n(7).LinguaLib.dateTimeHelper.getTimezoneOffset()}e.exports={getLocalTimezone:function(){return r("id",function(){try{return window.Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return""}}())||r("utc_offset",i())},getLocalOffset:i,findTimezoneWhere:r}},61:function(e,t,n){"use strict";n.r(t),n.d(t,"AudioAdTrackingEvents",(function(){return r})),n.d(t,"AudioAdVisualTrackingEvents",(function(){return i}));var r={UNFILLED_IMPRESSION:"audio_ad:unfilled_impression",IMPRESSION:"audio_ad:impression",PLAY_START:"audio_ad:playStart",PLAY:"audio_ad:play",PAUSE:"audio_ad:pause",ERROR:"audio_ad:error",SKIP:"audio_ad:skip",FIRST_QUARTILE:"audio_ad:first_quartile",SECOND_QUARTILE:"audio_ad:second_quartile",THIRD_QUARTILE:"audio_ad:third_quartile",FINISH:"audio_ad:finish",WHY_ADS_CLICK:"audio_ad:why_ads_click",DSA_AD_RECEIVED:"audio_ad:dsa_ad_received"},i={IMPRESSION:"ad_visual:impression",CLICKTHROUGH:"ad_visual:clickthrough",WHY_ADS_CLICK:"ad_visual:why_ads_click",ERROR:"ad_visual:error"}},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsTypedArrays=t.getPixelRatio=t.isHiDPI=void 0,t.isHiDPI=function(){return!!window.devicePixelRatio&&window.devicePixelRatio>1},t.getPixelRatio=function(){return window.devicePixelRatio&&Math.floor(window.devicePixelRatio)||1},t.supportsTypedArrays=function(){return"Uint8Array"in window}},613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAY=t.CHARCOAL=t.RAVEN=t.BLAZE=t.WHITE=t.SC_ORANGE=t.SCARLET=t.ASH=t.BLACK=void 0;var r=n(283);t.BLACK=(0,r.rgb)(0,0,0),t.ASH=(0,r.rgb)(153,153,153),t.SCARLET=(0,r.rgb)(255,51,0),t.SC_ORANGE=(0,r.rgb)(255,85,0),t.WHITE=(0,r.rgb)(255,255,255),t.BLAZE=(0,r.rgb)(255,101,0),t.RAVEN=(0,r.rgb)(51,51,51),t.CHARCOAL=(0,r.rgb)(102,102,102),t.GRAY=(0,r.rgb)(82,82,82)},62: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"}},629:function(e,t){var n=(window.navigator.userLanguage||window.navigator.language||"").toLowerCase(),r=n.split("-")[0],i=n.split("-")[1];e.exports={isUsedLanguage:function(e){return r===e.toLowerCase()},isCountry:function(e){return i===e.toLowerCase()},isUsedLanguageAndCountry:function(e){return n===e.toLowerCase()}}},638:function(e,t,n){"use strict";n.r(t),n.d(t,"requestBannerAd",(function(){return l})),n.d(t,"include",(function(){return d}));var r=n(1),i=n.n(r),o=n(86),a=n.n(o),s=n(6),u=n.n(s),c={get instance(){return window.tude||(window.tude={cmd:[]}),window.tude}};function l(e){var t,n=e.baseDivId,r=e.divId;t=function(){c.instance.refreshAdsViaDivMappings([{baseDivId:n,divId:r}])},c.instance.cmd.push((function(){return t()}))}function d(){i.a.defer((function(){a.a.insertScript(u.a.get("aditude_url"))}))}},64:function(e,t,n){var r,i;function o(){return(o=Object.assign||function(e){for(var t=1;t0&&n(11).trigger("multi-track:saved",{soundSaves:this._completeSaves})},setSoundAttributes:function(e,t){e.set(t)},saveSound:function(e,t){var r=e.createSnapshot(n(1).keys(t));return this.setSoundAttributes(e,t),e.save().then((function(){return{sound:e,isSuccess:!0}}),(function(){return r.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"),c.call(this,this.getSounds())},retryTracks:function(){return c.call(this,n(1).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(1).reduce(e,(function(e,r,i){var o=r(t[0]),a=n(1).some(t,(function(e){return!n(1).isEqual(r(e),o)}));return e[i]=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(1).reject(e,(function(e){return e.isSuccess}))}(e),this._completeSaves=this._completeSaves.concat(function(e){return n(1).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(10).defer().reject()}))}function c(e){var t=this,r=this.getAttributesToBeSaved(e),i=e.map((function(e){return t.saveSound(e,r[e.id])}));return n(10).mapEither((function(){return n(1).flatten(arguments,!0)}),n(10).settled(i))}function l(e){var t=this.getRequiredModelAttributes().map((function(e){return"change:"+e}));this._failedSaves=[],this._completeSaves=[],this._sounds=e.map((function(e){var r=new(n(27))({id:e});return this.addSubmodel(r),this.listenTo(r,t.join(" "),d),r}),this);var r=p.call(this);r.length?f.call(this,r):h.call(this)}function d(){this.isDirty()||h.call(this)}function f(e){var t=this;return n(10).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(1).compact(this.getSounds().map((function(e){return!e.attrExists(this.getRequiredModelAttributes())?e:null}),this))}}).call(this,n(25))},67: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}},677:function(e,t){var n=e.exports={centered:function(e,t,n,r){var i=Math.min(t,window.screen.width-50),o=Math.min(n,window.screen.height-50),a=window.screenX+(window.outerWidth-i)/2,s=window.screenY+(window.outerHeight-o)/2;return window.open(e,r||"",["location=1","width="+i,"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,r=e.url,i=e.width,o=e.height,a=e.name;return function(){return t&&!t.closed||(t=n.centered(r,i,o,a)),t.focus(),t}}}},68:function(e,t,n){var r="."+window.location.hostname.replace(/.*\.(.+\..+)/,"$1"),i=new(n(241)),o=e.exports={get:function(e){return i.length||window.document.cookie.split(/\s*;\s*/).forEach((function(e){var t=e.split("="),n=t[0],r=t.slice(1);i.set(n,r.join("="))})),i.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(41).MS_IN_DAY).toGMTString():"","path=/",u?"":"domain="+r,s?"secure":""].filter(Boolean).join(";"),i.reset()},unset:function(e){o.set(n(1).assign({},e,{value:"",expirationInDays:-1})),i.reset()},clearCache:function(){i.reset()},savePerformanceCookiePermission:function(){o.set({name:n(331).PERFORMANCE_COOKIE_CONSENT_NAME,value:n(331).PERFORMANCE_COOKIE_CONSENT_VALUE})}}},680:function(e,t,n){var r=["email","user_birthday","user_gender"].join(","),i=n(6).get("fb_app_id"),o=null,a=null,s=n(10).defer();function u(){return"resolved"===s.state()}function c(){return a||(a=n(86).insertScript("//connect.facebook.net/en_US/sdk.js",{onerror:function(){s.reject(),s=n(10).defer(),a=null}})),s.promise()}function l(e){var t=(void 0===e?{}:e).promptUser,i=void 0===t||t,a=n(10).defer();return p().then((function(e){e?d(a,window.FB.getAuthResponse()):o&&!o.closed?o.focus():i?o=n(677).interceptPopup((function(){window.FB.login((function(e){return d(a,e.authResponse)}),{scope:r})})):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(10).reject()}))}function h(e,t){void 0===t&&(t={});var r=n(10).defer();return l().then((function(i){window.FB.api(e,n(1).extend({access_token:i},t),r.resolve)}),r.reject),r.promise()}function p(){return(e=n(10).defer(),u()?window.FB.getLoginStatus((function(t){return e.resolve(t.status)})):e.reject(),e.promise()).then((function(e){return n(10).resolve("connected"===e)}),(function(){return n(10).resolve(!1)}));var e}e.exports=n(1).extend({loadFacebookSDK:function(){return(n(35).isCategoryEnabled(n(35).CookieCategory.Targeting)?n(10).resolve():n(10).reject()).then(c)},isFacebookSDKReady:u},n(1).mapObject({getFacebookToken:l,getCurrentFacebookUser:function(e){var t=(void 0===e?{}:e).size,r=void 0===t?200:t;return f().then((function(e){var t={width:r,height:r,redirect:!1};return h("/"+e.id+"/picture",t).then((function(t){var r;return n(10).resolve({name:e.name,picture_url:null==t||null==(r=t.data)?void 0:r.url})}))}))},receiveBirthdayAndFacebookToken:function(){var e=n(10).defer(),t=function(){return e.reject({error:"age_not_provided"})};return f().then((function(n){h("/"+n.id+"?fields=birthday,gender").then((function(n){l().then((function(r){null!=n&&n.birthday?e.resolve({token:r,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:i,status:!1,cookie:!0,version:"v2.12"}),delete window.fbAsyncInit,s.resolve()}},684:function(e,t,n){var r=function(){return null};e.exports=new(n(23))({applyTo:function(e,t){var a=t.batchEndpoint,s=t.flushInterval,u=void 0===s?50:s,c=t.maxQueueSize,l=void 0===c?50:c,d=t.getBatchParams,f=void 0===d?r:d,h=t.paramName,p=void 0===h?"ids":h,g=t.requestTransport,m=t.transformResponse,v={};this.around(e,{fetch:function(e,t){var r,s=this;if(t||(t={}),i.call(this,t))return e(t);if(this._requests||(this._requests={}),!this._requests[this.id]){var c=f(this)||null,d=(r=c)?n(32).stringify({query:r}):"default",h=v[d]||(v[d]=new o(a,c,l,u,p,g,m));this._requests[this.id]=h.add(this,t).always((function(){delete s._requests[s.id]}))}return this._requests[this.id]}})}});function i(e){return!this.id||e.jqAjax||!1===e.batch||"private"===this.get("sharing")}function o(e,t,n,r,i,o,u){this.batchEndpoint=e,this.batchParams=t,this.maxQueueSize=n,this.flushInterval=r,this.queue={},this.timer=null,this.paramName=i,this.requestTransport=null!=o?o:a,this.transformResponse=null!=u?u:s}function a(e,t){var r;return n(44).callEndpoint(t.batchEndpoint,null,n(1).assign(((r={})[t.paramName]=e.join(","),r),t.batchParams),null,null,{priority:n(212).RequestPriorities.URGENT})}function s(e){return e.body}o.prototype={getIds:function(){var e=n(1).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 r=this.queue[e.id]=this.queue[e.id]||{callsigs:[],deferred:n(10).defer()};return r.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(),r.deferred},flush:function(){var e=this,t=this.getIds(),r=this.queue;window.clearTimeout(this.timer),this.timer=null,this.queue={},t.length<1||n(389)((function(){return e.requestTransport(t,{batchEndpoint:e.batchEndpoint,paramName:e.paramName,batchParams:e.batchParams})}),(function(){return!1})).then((function(i){var o=e.transformResponse(i),a=n(1).map(n(1).pluck(o,"id"),String);o.forEach((function(e){var t=e.id,n=r[t],i=Date.now();n&&(n.callsigs.forEach((function(t){var n=t.model;n.lastFetchTime=i,n.set(n.parse(e),t.options)})),n.deferred.resolve())})),n(1).difference(t,a).forEach((function(e){var t=r[e];t&&t.callsigs.forEach((function(e){e.model.trigger("error",e.model,new(n(287)),e.options)}))})),n(1).each(r,(function(e){e.deferred.reject()}))}))}}},691:function(e,t,n){e.exports=n(119).extend({maxLength:30,message:function(){return n(2).Lingua.t("You can use up to [[maxLength]] tags.",{maxLength:this.maxLength})}})},699:function(e,t,n){var r;e.exports={preparePlaylistForm:function(e,t,r){var i=a(e,n(444),{resource_id:e.resource_id});i.set("sharing",n(502).getDefaultAvailability()),r&&i.setTitleFromFolder(r);var u=e.getUploads().map((function(e){return o(e,t)}));return i.addSoundForms(u),s(i),i},prepareSoundUploadForm:o,prepareSoundEditForm:i(n(162)),addFiles:function(e,t){var o=this,a=void 0===t?{}:t,u=a.toPlaylistUploadId,c=a.replaceSoundUploadId,l=a.ReplaceSoundUploadClass,d=a.isDragNDrop;r||(r=new(n(232)));var f=!u&&n(502).getUploadAsPlaylist()&&n(6).get("me").canBulkUploadAsPlaylist(),h={},p=r.extractFolderName(e);return r.addFiles(e,{replaceSoundUploadId:c}).then((function(e){var t=e.length;if(f&&t>1)h.inPlaylist=!0,o.preparePlaylistForm(r.addUploadsAsAggregate(e),h,p);else if(u)o.preparePlaylistForm(r.addUploadsToAggregate(e,u),h,p);else if(c){var a=l?i(l):o.prepareSoundEditForm;e.forEach(a)}else e.map(o.prepareSoundUploadForm).forEach(s);t>0&&!u&&function(e,t){var r=t.asPlaylist,i=t.isDragNDrop;n(19).trackV0Click(["upload_group",1===e?"single":"multiple",1!==e&&(r?"grouped":"ungrouped")].filter(Boolean),{click_attributes:{is_drag_n_drop:!!i}})}(t,{asPlaylist:f,isDragNDrop:d})}))}};function i(e){return function(t){return a(t,e,{resource_id:t.resource_id})}}function o(e,t){var r=a(e,n(162),n(1).extend({resource_id:e.resource_id},t));return n(1921).getDataFromFile(e.get("file")).done((function(e){e.artwork_data&&r.setImageFile(n(837).getBlobFromDataURI(e.artwork_data),"id3"),r.set(n(1).omit(e,"artwork_data"))})),r.set("availability",n(502).getDefaultAvailability()),r}function a(e,t,n){var r=function(e,t){var n=new e(null,t);return n.release(),n}(t,n);return r.setFileUpload(e),r}function s(e){var t=new(n(991));t.add(e,{at:0}),t.release()}},70:function(e,t,n){(function(t){var r=Math.PI/180,i=window,o=i.document,a=i.FileReader,s=i.Image,u={},c=["me-user","user","profile-settings"],l=["user"],d=e.exports=n(1).defaults({tagOptions:{whitelist:["style","title","class","aria-label","aria-role","aria-hidden"],closingTag:!0},load:function(e,r){var i=(void 0===r?{}:r).corsImg,o=void 0===i?n(106).corsImg:i,a=new s,u=t(a),c=n(10).defer(),l=n(1).uniqueId("ImageHelperLoad");return o&&(a.crossOrigin=window.location.host,e+="?xd=true"),u.on("load."+l,(function(){c.resolve(this)})).on("error."+l,(function(){c.reject(this)})),c.always((function(){u.off("."+l)})),a.src=e,c},getPlaceholderUrl:function(e,t){var r,i,o,a=-1,s=f(d.setFormat(e,t));if(s){if(r=s.key,u[s.type]||(u[s.type]={}),u[s.type][r])for(i=n(1).find(d.availableSizes,(function(e,n){var r=e[0];return a=n,t<=r}));a>=0;){if(u[s.type][r]&1<-1:n?l.indexOf(n)>-1:c.indexOf(e)>-1},getPlaceholderClass:function(e,t){var r=void 0===t?{}:t,i=r.placeholderType,o=void 0===i?"gradient":i,a=r.forceSquare,s=void 0!==a&&a,u=r.forceCircle,c=void 0!==u&&u,l="number"==typeof e,f=l?e:(null==e?void 0:e.id)||0,h="string"==typeof f?n(103).quickHash(f):f,p=(c||!l&&!s)&&(c||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),r=n(1).find(t.split(" "),(function(e){return e.indexOf("sc-artwork-placeholder")>-1}));return n(753)[r]},getPlaceholderCanvas:function(e,t){var n=o.createElement("canvas"),r=n.getContext("2d"),i=d.getPlaceholderGradient(e),a=i[0],s=i[1];if(n.width=n.height=t,r){var u=r.createLinearGradient(0,0,t,t);u.addColorStop(0,a),u.addColorStop(1,s),r.fillStyle=u,r.fillRect(0,0,t,t)}return n},readImageFile:function(e){return n(277).readAsDataURL(e).then((function(e){return h(e)}))},readImageFileCorrected:function(e){return function(e){var t=new a,r=n(10).defer();return t.onerror=t.onabort=function(){r.reject(-3)},t.onload=function(e){var t=new DataView(e.target.result);if(65496===t.getUint16(0,!1)){var n=t.byteLength,i=2;try{for(;i-1?{index:r,key:i,type:t}:null}function h(e){var t=n(10).defer(),r=new s;return r.onload=function(){t.resolve(r)},r.onerror=function(){t.reject()},r.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(25))},71:function(e,t){e.exports={ChangeFrequency:{always:"always",hourly:"hourly",daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly",never:"never"}}},739:function(e,t,n){(function(t){var r={likes:"favorites",people:"users",sound:"track",sounds:"tracks","web-profile":"web_profile"};e.exports={initialize:function(e){var r,i=this,o=e.statusCode,a=void 0===o?{}:o,s=e.enableScheduling,u=void 0!==s&&s,c=n(6).get("client_id");t.ajaxSetup({xhr:(r=t.ajaxSettings.xhr,function(){var e=r();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(361).listenToAbortSignal(e,t.abort),t.crossDomain=!0,i.isApiV2Endpoint(t.url)&&(!t.omitAuthorization&&n(17).isLoggedIn()&&e.setRequestHeader("Authorization","OAuth "+n(17).getAuthToken()),t.url=n(32).modify(t.url,{query:{client_id:c,app_version:n(6).get("app_version"),app_locale:n(7).LinguaLib.getLocale(),stage:n(68).get("stage")}}))}}),u&&(t.ajax=n(212).addAjaxScheduling(t.ajax))},isApiV2Endpoint:function(e){return 0===e.indexOf(n(6).get("api_v2_host"))},toAPIResource:function(e){return r[e]||e}}}).call(this,n(25))},74:function(e,t,n){var r=d(n(430)),i=["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","MX"],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","XK"],s=["US","AS","GU","MP","PR","UM","VI"],u=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","EL","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","ES","SE","GB"];e.exports={countryToCode:function(e){return t=r,i=e,n(1).find(Object.keys(t),(function(e){return t[e]===i}))||"";var t,i},codeToCountry:function(e){return r[e]||""},country:function(e){return new c(r[e],e)},countries:function(e){var t;return t=e&&e.length>0&&"worldwide"!==e[0]?d(n(1).chain(e).map(n(1).propertyOf(n(430))).compact().value()):r,n(1).chain(t).map(c).sortBy("title").value()},countryCodes:function(e){var t=e?n(430)[e]:r;return t&&Object.keys(t)},monetizableCountryCodes:function(){return i},regionCodes:function(){return Object.keys(n(430)).sort()},regions:function(){return this.regionCodes().map(l)},complement:function(e){return n(1).difference(Object.keys(r),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 c(e,t){return{title:e,value:t}}function l(e){return{title:f(e),value:e}}function d(e){return n(1).reduce(e,(function(e,t){return n(1).assign(e,t)}),{})}function f(e){return n(157).titleCase(e.replace("_"," "))}},740:function(e,t,n){var r=[n(90).none,n(90).one,n(90).all];e.exports=function(e){var t,a,s,u,c,l,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:_,k=m.rewindThreshold,A=void 0===k?5e3:k,w=m.randomBufferSize,C=void 0===w?100:w,S=m.prefetchAudioCheckPoint,E=void 0===S?1e4:S,T=m.stableBufferDuration,x=void 0===T?1e4:T,L=new(n(1213)),P=0,I=-1,R=-1/0,O=0,M=0,D=!1,U=!1,N=!1,F=!1,B=n(1).noop,z=null,q=r[0],j=!1,V=[],H=n(1).noop,G=n(1).memoize((function(){var e=n(10).defer();return!a||a.stream.isEnded()?e.resolve():(K.listenTo(a.stream,"end",e.resolve),K.pullPrev(1/0)),e.promise()})),Q=function(){return f.isAdBreakActive()?!!f.isAllowedToSkipAdBreak()&&(B=n(1).noop,f.requestSkipAdBreak(),!0):(f.dismissLeaveBehind(),!0)},K=n(1).assign({},n(42).Events,{states:{globalPlayLock:{initial:!1},hasNext:{initial:!1},hasCurrent:{initial:!1},shuffle:{setup:function(){L.each((function(e,t){e.order=t}));var e=I+1,t=L.slice(0,e),r=n(1).shuffle(L.slice(e));L.reset(t.concat(r)),s&&s.stream.shuffle();n(19).trackV0Click(["shuffle"],{click_name:"shuffle::on"})},teardown:function(){var e=K.getCurrentQueueItem(),t=I;for(;t>=0&&L.at(t).explicit&&null==L.at(t).order;)t--;var r=L.at(t),i=L.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&&(i.next=i.next.concat(s.stream.unshuffle()));var o=[].concat(n(1).sortBy(i.prev,"index"),n(1).sortBy(i.ordered,"order"),n(1).sortBy(i.next,"index")),a=o.indexOf(r),u=n(1).sortBy(i.explicit,"index");o.splice.apply(o,[a+1,0].concat(u)),-1===(I=o.indexOf(e))&&n(110).notify(new Error("PlayManager: Error occurred when unshuffling."));L.reset(o),n(19).trackV0Click(["shuffle"],{click_name:"shuffle::off"})}},hasFallback:{initial:!1},fallbackEnabled:{initial:!0}},initialize:function(e,t,r,i){void 0===i&&(i=function(){}),f=e,h=t,p=r,K.listenTo(f,n(85).CHANGE_AD_SKIPPABILITY,ae.bind(this,"change")).listenTo(f,n(85).END_AD_BREAK,ae.bind(this,"end")).listenTo(h,"destroy",(function(e){var t=e.targetType,n=e.targetModel;"sound"===t&&ie.call(this,n)})).listenTo(p,"geoBlocked",ue).listenTo(p,"soundPolicyChange",oe),d=i,g=window.setInterval(ce,500),this.restoreSoundStore=new(n(744))},dispose:function(){B=n(1).noop,window.clearInterval(g),Y(null),W(null),L.release(),K.stopListening(),K.off()},playSource:function(e,t,r,i){if((void 0===i&&(i={}),!K.getState("globalPlayLock"))&&Q()){var o=K.getCurrentQueueItem();if(o&&t===o.sound)K.playCurrent(i);else{K.pauseCurrent({seek:0}),K.toggleState("fallbackEnabled",!0);var a=n(427)(e,t,r,C),s=a.prev;W(a.next),Y(s),K.trigger(n(190).QUEUE_RESET),c=i,N=!0,F=!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(1).defaults(e,{allowAdBreak:!0}),Q()){var t=K.getCurrentQueueItem();if(t&&t.sound.isPlayable()){B=function(){B=n(1).noop,j=!0,function(e){if(n(154).isCasting())return;var t=function(){H(),n(1227).waitForPlayThreshold(e,K.getCurrentMetadata()).then((function(e){var t=e.soundId,n=e.playContext;h.addToPlayHistory(t,n,!0)}))};e.on("time",t),H(),H=function(){e.off("time",t),H=n(1).noop}}(t.sound),t.sound.play(e),t.sound.player&&(t.sound.attributes.user?n(745).registerMediaSession(t):t.sound.once("change:user",(function(){n(745).registerMediaSession(t)}))),n(549).addSound(t.sound,e)};var r=e.allowAdBreak&&n(91).isUserAdConsumer()&&!n(154).isCasting(),i=z===t.sound.getUrn();if(z=t.sound.getUrn(),t.enablePreloading(),r&&!i)f.beginAdBreak(t.sound,e).fail(B).then((function(e){return e.getActiveDeferred()})).then(B);else B()}else F?K.playPrev(e):K.playNext(e)}else B=function(){return K.playCurrent(e)}},pauseCurrent:function(e){void 0===e&&(e={}),l=null,c=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(),r=f.getCurrentAdSound();r?r.toggle(e):K.getState("globalPlayLock")||t&&(t.isPlaying()?K.pauseCurrent(e):(e.userInitiated&&this.trigger(n(190).PLAYQUEUE_RESUMED,e.uiComponent),K.playCurrent(e)))},seekCurrentBy:function(e){var t=K.getCurrentSound(),n=f.getCurrentAdSound();if(t&&!n){var r=e(t);t.seekRelative(r)}},seekCurrentTo:function(e){var t=K.getCurrentSound(),n=f.getCurrentAdSound();if(t&&!n){var r=e(t);t.seek(r)}},setCurrentItem:function(e,t){if(void 0===t&&(t={}),Q()){z=null;var r=K.getCurrentQueueItem(),i=e!==r,o=e.sound;i&&(r&&r.disablePreloading(),K.pauseCurrent({seek:0}),r&&Z(r.sound),-1===(I=L.indexOf(e))&&n(110).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(){F=!1}))}(o),K.trigger(n(190).CHANGE_CURRENT_SOUND,{current:o})),!0!==t.pause?K.playCurrent(t):e.enablePreloading(),i&&function(){U||K.pullNext(Math.max(0,y-(L.length-I)+1));K.pullPrev(Math.max(0,y-I))}(),ce()}},playNext:function(e){if(void 0===e&&(e={}),f.isAdBreakActive())f.requestSkipCurrentAd();else{e=n(1).assign({seek:0},e),F=!1;var r=q===n(90).all,a=K.getCurrentQueueItem();if(!a||q!==n(90).one||e.userInitiated)if(L.length&&I0?L.at(I-1):i?L.last():null,u=a&&!a.stream.isEnded();if(!r&&t&&(!o&&!u||t.currentTime()>A))return t.isPlayable()&&(t.seek(0),t.isPlaying()||(j=!0,t.play(e))),void(F=!1);F=!0,o?K.setCurrentItem(o,e):u&&(l=e,K.pullPrev(1))},removeItem:function(e){K.getCurrentQueueItem()!==e&&L.remove(e)},clearQueue:function(){var e=K.getCurrentQueueItem();K.replaceQueue(e?[e]:[],e?0:-1)},replaceQueue:function(e,t,r){void 0===r&&(r={}),t>=-1&&t=0&&K.setCurrentItem(L.at(t),r),L.trigger("reset",L,{}),se()},addExplicitQueueItem:function(e,t,r){K.injectExplicitQueueItem(K.createExplicitQueueItem(e,t,r)),s||W(n(551),!1)},createExplicitQueueItem:function(e,t,r){var i=e.getSoundIndex(t),o=e.getQueueMetadataAt(i),a=o.originalModel,s=o.queryPosition,u=o.sourceInfo,c=new(n(177))({},{contextSnapshot:r,originalModel:a,queryPosition:s,sound:t,sourceInfo:u,explicit:!0,index:P++});return c.release(),c},injectExplicitQueueItem:function(e){for(var t=I+1,r=L.length;tR){t&&t.dispose(),R=r;var o=!!e.playlist,s=o?e.playlist:e,c=o?e:null;return t=n(427)(s,c,i)}},unsetInitialSource:function(e){t===e&&(R=-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(1).isEqual(t.sourceInfo,e.getSourceInfo())},getQueue:function(){return L},getCurrentQueueItem:function(){return L.at(I)},getCurrentMetadata:function(){var e=n(91).isUserAdConsumer()?f.getCurrentAdSound():null,t=K.getCurrentQueueItem();if(e&&t){var r=t.clone({sound:e,originalModel:e,restoreUrl:null});return r.release(),r}return t},getCurrentMetadataEmptyReasons:function(){return{adConsumer:n(91).isUserAdConsumer(),currentAd:n(91).isUserAdConsumer()&&!!f.getCurrentAdSound(),queueLength:L.length,queueCursor:I}},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(L)},enableAutoplay:function(){s?K.playCurrent({userInitiated:!1}):D=!0},restoreState:function(e){if(void 0===e&&(e=K.getCurrentQueueItem()),e){var t=n(6).get("router"),r=e,i=r.contextSnapshot,o=r.sound,a=null==i?void 0:i.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(154).isCasting())K.setRepeatMode(q===n(90).none?n(90).one:n(90).none);else{var e=r.indexOf(q);K.setRepeatMode(r[(e+1)%r.length])}},setRepeatMode:function(e){e!==q&&(q=e,K.trigger(n(190).CHANGE_REPEAT_MODE,q),se())},pullNext:function(e){s&&!s.stream.isEnded()&&(O=Math.max(O,e))>0&&s.stream.resume()},pullPrev:function(e){a&&!a.stream.isEnded()&&(M=Math.max(M,e))>0&&a.stream.resume()},getQueueState:function(){return{currentIndex:I,repeatMode:q}}});return n(547).applyTo(K),K.listenTo(L,"remove",(function(e,t,n){n.index<=I&&--I;se()})).listenTo(L,"add",(function(e){L.indexOf(e)<=I&&++I;se()})).listenTo(L,"error",(function(e,t){if(!t)return;(404===t.status||t instanceof n(287))&&ie(e.sound)})),K;function W(e,t){var r,i,o;void 0===t&&(t=!1),s&&(K.stopListening(s.stream),s.dispose()),t||(r=K.getCurrentQueueItem(),i=j||r&&!r.explicit,o=L.slice(0,I+(i?1:0)).concat(n(1).reject(L.slice(I+1),"explicit")),L.remove(o),i&&Z(r.sound)),s=e,U=t,O=0,e&&(K.getState("shuffle")&&e.stream.shuffle(),K.listenTo(s.stream,"data",J).listenTo(s.stream,"end",X)),se()}function Y(e){a&&(K.stopListening(a.stream),a.dispose()),a=e,e&&(G.cache={},K.listenTo(a.stream,"data",$))}function $(e){0==--M&&a.stream.pause(),L.unshift(e,{prevStream:!0}),l&&K.setCurrentItem(e,l)}function J(e){0==--O&&s.stream.pause(),N?(L.unshift(e),N=!1):(L.push(e),K.trigger(n(190).ADD_PLAYQUEUE_ADDED_SOUND,{queueItem:e,from:"autoplay"})),c&&K.setCurrentItem(e,c),ce()}function X(){N=!1}function Z(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(154).isCasting()||(e.pause(),re())}function te(e){var t=K.getCurrentSound();t&&t.currentTime()>=t.duration()-E&&(ce(),K.stopListening(t,"time",te))}function ne(){var e=K.getCurrentSound();e&&!e.isPlayable()&&(Z(e),re())}function re(e){void 0===e&&(e={}),K.playNext(n(1).assign({userInitiated:!1},e))}function ie(e){var t=e.isPlaying(),n=K.getCurrentSound()===e,r=L.filter({sound:e});L.remove(r),n&&re({pause:!t})}function oe(e){!e.isSnippetized()&&!e.isBlocked()||ie.call(this,e)}function ae(e){K.toggleState("globalPlayLock",f.isAdBreakActive())}function se(){var e=I1||q!==n(90).all&&!!o(L),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(r)},r=window.setTimeout((function(){n(),K.playNext()}),b);t.on("pause",n)}}function ce(){for(var e,t,n=K.getCurrentQueueItem(),r=1;n&&null!=(t=L.at(I+r))&&!t.sound.isPlayable();)r++;if(t){var i=null==(e=n.sound)?void 0:e.player;if(i){var o=i.getMaxBufferLength(),a=i.getCurrentBufferedTimeRange(),s=i.getDuration(),u=a?a.end:0,c=i.getPosition();null!==o&&null!==s&&(u>=s||u-c>=Math.min(x,o))?t.enablePreloading():t.disablePreloading()}}}};function i(e){return e.sound.isPlayable()}function o(e){for(var t=e.length;t--;)if(e.at(t).sound.isPublic())return e.at(t)}},741:function(e,t,n){var r=e.exports=n(241).extend();n(1214).applyTo(r.prototype)},742:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},743:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},745:function(e,t){e.exports={registerMediaSession:function(e){var t;if("mediaSession"in navigator){e.sound.player.registerMediaSessionActionHandlers();var n=e.sound.attributes,r=n.title,i=n.publisher_metadata,o=n.user,a=(null==(t=e.sound.playlist)?void 0:t.title)||(null==i?void 0:i.album_title)||"",s={png:"image/png",jpg:"image/jpeg",webp:"image/webp",gif:"image/gif"},u=e.sound.attributes.artwork_url||o.avatar_url,c=u.split("."),l=c[c.length-1],d=["500","300","250","120","80"].map((function(e){return{src:u.replace("large","t"+e+"x"+e),sizes:"t"+e+"x"+e,type:s[l]||"image/png"}}));navigator.mediaSession.metadata=new MediaMetadata({title:r,artist:o.username,album:a,artwork:d})}}}},746:function(e,t){function n(){}function r(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 r=this._comparator(e,t.data);if(0===r)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(r>0)}return null},n.prototype.lowerBound=function(e){for(var t=this._root,n=this.iterator(),r=this._comparator;null!==t;){var i=r(e,t.data);if(0===i)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}for(var o=n._ancestors.length-1;o>=0;--o)if(r(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 r(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)},r.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},r.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},r.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},r.prototype._minNode=function(e){for(;null!==e.left;)this._ancestors.push(e),e=e.left;this._cursor=e},r.prototype._maxNode=function(e){for(;null!==e.right;)this._ancestors.push(e),e=e.right;this._cursor=e},e.exports=n},747:function(e,t,n){e.exports=new(n(23))(n(276).withOptions({read:"avatar_url",write:"image_data",useFormData:!1}),{getImageSaveUrl:function(){return n(44).getUrlForEndpoint("meAvatar")},getImageDeleteEndpoint:function(){return"meAvatarDelete"},around:{uploadImage:function(e){for(var t=this,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o-1)return r;if(r!==r.toUpperCase()){var i=r.replace(/[.,#~_-]|([a-z])([A-Z])/g,(function(e,t,n){return t?t+" "+n:" "}));if(r!==i)return n(157).titleCase(i)}var o=r.toLowerCase();if(e&&o.indexOf(e.toLowerCase())>-1||t&&o.indexOf(t.toLowerCase())>-1||o.indexOf("user")>-1)return e+" "+t;return r}(e,t,r);return i!==r?r+" | "+i:r}}},753: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"]}},754:function(e,t,n){e.exports=new(n(23))({applyTo:function(e,t){e.getTypes=n(1).constant((null==t?void 0:t.types)||{})},defaults:{getShareURL:function(e){return this.getShareAttributes(e).permalink_url}},getShareAttributes:function(e){var t=n(1).clone(this.attributes),i=null==e?void 0:e.type,o=i&&this.getTypes()[i];return o&&n(1).each(o,(function(e,n){t[n]=e.replace(/\:([a-zA-Z0-9_-]+)/g,(function(e,n){return t[n]}))})),t.permalink_url=r(t.permalink_url),t.uri=r(t.uri),"private"===t.sharing&&!t.secret_uri&&t.secret_token&&(t.secret_uri=n(32).modify(t.uri,{query:{secret_token:t.secret_token}})),t}});function r(e){return e&&e.replace(/^http:/,"https:")}},756:function(e,t,n){e.exports=new(n(23))({requires:["getSourceInfo","containsSound","getCurrentSound","getSoundIndex","getQueueMetadataAt"]})},757:function(e,t,n){var r={};e.exports=new(n(23))({applyTo:function(e){var t=e.constructor;this.before(t,{onCleanup:function(e){!function(e,t){var n=i(e),o=t.resource_id;o&&r[n]&&delete r[n][o]}(this.constructor,e)}}),function(e){e._sdb=n(1).uniqueId("sdb")}(t)},after:{initialize:function(){this.attributes=a(this.constructor,this.attributes)}},around:{set:function(e,t,r,i){var s;if("object"==typeof t?(s=t,i=r):(s={})[t]=r,!s)return this;this.submodelMap&&(s=n(1).reduce(this.submodelMap,o,n(1).clone(s)));var u=this.constructor;return!this.resource_id&&u.hashFn(s)&&(s=a(u,s)),e(s,i)}}});function i(e){return e._sdb}function o(e,t,r){var o=e[r];return o&&i(t)&&(e[r]=n(1).isArray(o)?o.map((function(e){return a(t,e,!0)})):a(t,o,!0)),e}function a(e,t,o){void 0===o&&(o=!1);var a,s=i(e),u=function(e,t){return e.hashFn?e.hashFn(t):t.id}(e,t);if(!u)return t;if(r[s]=r[s]||{},a=r[s][u]){var c=e.normalize?e.normalize(t):t,l=e.getInstance(a);o&&l?l.set(c):n(1).assign(a,c)}else a=r[s][u]=t;return a}},76:function(e,t,n){e.exports={DISABLED:-1,UNKNOWN:0,INVALID:1,VALID:2}},763: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)}}},765:function(e,t,n){var r=new(n(47))("aw"),i=null;function o(){i=null,r.reset()}function a(){if(!n(35).isCategoryEnabled(n(35).CookieCategory.Targeting))return o();if(!r.get("listener_id"))return s();var e=r.get("last_updated"),t=(Date.now()-e)/n(41).MS_IN_DAY;e&&t>=1&&s()}function s(){n(86).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&&(i=n,r.set("listener_id",n),r.set("last_updated",Date.now()))}})}e.exports={initialize:function(){n(35).onChange((function(){n(35).isCategoryEnabled(n(35).CookieCategory.Targeting)?a():o()})),n(11).on("connect:logout",o),n(11).on("connect:login",a),a()},getAdswizzId:function(){return i||r.get("listener_id")}}},768:function(e,t,n){var r,i=new(n(47))("dax"),o=["date_of_birth","gender"];function a(){if(n(35).isCategoryEnabled(n(35).CookieCategory.Targeting)){var e=i.get("userInfo");if(null!=e&&e.segments&&null!=e&&e.uid&&!r&&(r={segments:e.segments,uid:e.uid}),null!=e&&e.last_updated)((Date.now()-e.last_updated)/n(41).MS_IN_DAY>=1||!r)&&u();else u()}}function s(){r=void 0,i.reset()}function u(){var e;(e=n(6).get("me"),n(10).all([n(86).loadSandbox(),n(17).isLoggedIn()?e.fetch({attrs:o}):n(10).resolve()]).done((function(t){t.contentWindow.xl8_config={p:1083,g:1};var n={},r=e.get("gender"),i=e.get("date_of_birth");return"female"!==r&&"male"!==r||(n.gender=r),null!=i&&i.year&&(n.age=(new Date).getFullYear()-i.year),t.contentWindow.dataLayer=n,t}))).then(c).then(l).then(d)}function c(e){var t=n(10).defer();n(86).insertScriptIntoIframe(e,"https://cdn.exelator.com/build/static.min.js",{},{onScriptLoad:t.resolve,onError:t.resolve})}function l(){var e=n(10).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&&o.segments&&null!=o&&o.uid){var a={segments:o.segments,uid:o.uid,last_updated:Date.now()};r=s=a,i.set("userInfo",s)}}catch(e){return void n(19).trackV1Click({click_name:"dax-non-json"})}var s}e.exports={initialize:function(){n(35).onChange((function(){n(35).isCategoryEnabled(n(35).CookieCategory.Targeting)?a():s()})),n(11).on("connect:logout",s),a()},getUserData:function(){return r}}},779:function(e,t,n){e.exports={scheduleIdleTask:function(e,t){void 0===t&&(t=1);return r.add({fn:e,minTaskTime:t})},removeIdleTask:function(e){r.remove(e)}};var r=new(n(1324).IdleQueue)},78:function(e,t,n){var r=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:\/@]*)(?::([^:\/@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["---","scheme","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],o=e.exports={parse:function(e,t){var n,a,s=r.exec(e),u={};for(t||(t=i),n=1;n\x3c!-- Brand Study HTML tags here --\x3e\x3c!-- BRAND STUDY TAGS --\x3e