-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
executable file
·5 lines (5 loc) · 152 KB
/
app.js
1
2
3
4
5
!function t(e,n,r){function o(i,a){if(!n[i]){if(!e[i]){var u="function"==typeof require&&require;if(!a&&u)return u(i,!0);if(s)return s(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};e[i][0].call(c.exports,function(t){var n=e[i][1][t];return o(n?n:t)},c,c.exports,t,e,n,r)}return n[i].exports}for(var s="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({"./src/index.coffee":[function(t){var e,n;n=t("bamjs").Backbone,n.$=$,e=t("./app"),window.app=new e({el:document.body})},{"./app":"/home/donnees/workspaces/soundcloud-playlist/src/app/index.coffee",bamjs:"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js":[function(t,e){(function(){var n;e.exports=null!=(n=t("backbone"))?n:window.Backbone}).call(this)},{backbone:"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/node_modules/backbone/backbone.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/collection.js":[function(t,e){(function(){var n,r,o={}.hasOwnProperty,s=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("./backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.before=function(t){var e;return e=this.indexOf(t),-1===e||0===e?null:this.at(e-1)},e.prototype.after=function(t){var e;return e=this.indexOf(t),-1===e||e===this.length-1?null:this.at(e+1)},e.prototype.all=function(){return this.models.slice()},e}(n.Collection),e.exports=r}).call(this)},{"./backbone":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/index.js":[function(t,e){(function(){var n;e.exports=n={Backbone:t("./backbone"),Underscore:t("./underscore"),Router:t("./router"),View:t("./view"),Model:t("./model"),Collection:t("./collection")}}).call(this)},{"./backbone":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js","./collection":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/collection.js","./model":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/model.js","./router":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/router.js","./underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js","./view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/model.js":[function(t,e){(function(){var n,r,o,s,i,a,u={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("./backbone"),a=t("./underscore"),i=a.map,s=a.any,r={string:function(t){return t+""},"int":function(t){return Math.floor(+t)},number:function(t){return+t},date:function(t){return new Date(t)},"boolean":function(t){return!!t}},o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.derived={},e.prototype.cast={},e.prototype.next=function(){var t;return null!=(t=this.collection)?t.after(this):void 0},e.prototype.prev=function(){var t;return null!=(t=this.collection)?t.before(this):void 0},e.prototype.getAttributes=function(){return n.$.extend(!0,{},this.attributes)},e.prototype.get=function(t,n){var r;return r=this.derived[t]?this._derive(derived[t]):e.__super__.get.call(this,t),void 0===r?n:r},e.prototype._derive=function(t){var e;return e=i(t.deps,function(t){return function(){return t.get("key")}}(this)),t.value.apply(t,e)},e.prototype.set=function(t,n,r){var o,a,u,l,c,d;"object"==typeof t?(o=t,r=n):(o={},o[t]=n);for(t in o)n=o[t],null!==n&&this.cast[t]&&(o[t]=this._cast(n,this.cast[t]));c=e.__super__.set.call(this,o,r),d=this.derived;for(l in d)u=d[l],a=i(u.deps,function(t){return o.hasOwnProperty(t)}),s(a)&&this.trigger("change:"+l,this._derive(u));return c},e.prototype._cast=function(t,e){var n;try{return t=this._getCastFunc(e)(t)}catch(r){return n=r,t=null}finally{return t}},e.prototype._getCastFunc=function(t){var e;return"function"==typeof t?t:null!=(e=r[t])?e:function(t){return t}},e}(n.Model),e.exports=o}).call(this)},{"./backbone":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js","./underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/node_modules/backbone/backbone.js":[function(t,e,n){!function(e,r){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,n,o){e.Backbone=r(e,o,t,n)});else if("undefined"!=typeof n){var o=t("underscore");r(e,n,o)}else e.Backbone=r(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(t,e,n,r){{var o=t.Backbone,s=[],i=(s.push,s.slice);s.splice}e.VERSION="1.1.2",e.$=r,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!l(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,r){if(!l(this,"once",t,[e,r])||!e)return this;var o=this,s=n.once(function(){o.off(t,s),e.apply(this,arguments)});return s._callback=e,this.on(t,s,r)},off:function(t,e,r){var o,s,i,a,u,c,d,h;if(!this._events||!l(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return this._events=void 0,this;for(a=t?[t]:n.keys(this._events),u=0,c=a.length;c>u;u++)if(t=a[u],i=this._events[t]){if(this._events[t]=o=[],e||r)for(d=0,h=i.length;h>d;d++)s=i[d],(e&&e!==s.callback&&e!==s.callback._callback||r&&r!==s.context)&&o.push(s);o.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=i.call(arguments,1);if(!l(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&c(n,e),r&&c(r,arguments),this},stopListening:function(t,e,r){var o=this._listeningTo;if(!o)return this;var s=!e&&!r;r||"object"!=typeof e||(r=this),t&&((o={})[t._listenId]=t);for(var i in o)t=o[i],t.off(e,r,this),(s||n.isEmpty(t._events))&&delete this._listeningTo[i];return this}},u=/\s+/,l=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(r));return!1}if(u.test(n)){for(var s=n.split(u),i=0,a=s.length;a>i;i++)t[e].apply(t,[s[i]].concat(r));return!1}return!0},c=function(t,e){var n,r=-1,o=t.length,s=e[0],i=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=t[r]).callback.call(n.ctx,s);return;case 2:for(;++r<o;)(n=t[r]).callback.call(n.ctx,s,i);return;case 3:for(;++r<o;)(n=t[r]).callback.call(n.ctx,s,i,a);return;default:for(;++r<o;)(n=t[r]).callback.apply(n.ctx,e);return}},d={listenTo:"on",listenToOnce:"once"};n.each(d,function(t,e){a[e]=function(e,r,o){var s=this._listeningTo||(this._listeningTo={}),i=e._listenId||(e._listenId=n.uniqueId("l"));return s[i]=e,o||"object"!=typeof r||(o=this),e[t](r,o,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var h=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,r){var o,s,i,a,u,l,c,d;if(null==t)return this;if("object"==typeof t?(s=t,r=e):(s={})[t]=e,r||(r={}),!this._validate(s,r))return!1;i=r.unset,u=r.silent,a=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,c=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(o in s)e=s[o],n.isEqual(d[o],e)||a.push(o),n.isEqual(c[o],e)?delete this.changed[o]:this.changed[o]=e,i?delete d[o]:d[o]=e;if(!u){a.length&&(this._pending=r);for(var h=0,p=a.length;p>h;h++)this.trigger("change:"+a[h],this,d[a[h]],r)}if(l)return this;if(!u)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,r=!1,o=this._changing?this._previousAttributes:this.attributes;for(var s in t)n.isEqual(o[s],e=t[s])||((r||(r={}))[s]=e);return r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,r=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(r&&r(e,n,t),void e.trigger("sync",e,n,t)):!1},O(this,t),this.sync("read",this,t)},save:function(t,e,r){var o,s,i,a=this.attributes;if(null==t||"object"==typeof t?(o=t,r=e):(o={})[t]=e,r=n.extend({validate:!0},r),o&&!r.wait){if(!this.set(o,r))return!1}else if(!this._validate(o,r))return!1;o&&r.wait&&(this.attributes=n.extend({},a,o)),void 0===r.parse&&(r.parse=!0);var u=this,l=r.success;return r.success=function(t){u.attributes=a;var e=u.parse(t,r);return r.wait&&(e=n.extend(o||{},e)),n.isObject(e)&&!u.set(e,r)?!1:(l&&l(u,t,r),void u.trigger("sync",u,t,r))},O(this,r),s=this.isNew()?"create":r.patch?"patch":"update","patch"===s&&(r.attrs=o),i=this.sync(s,this,r),o&&r.wait&&(this.attributes=a),i},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,o=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&o(),r&&r(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;O(this,t);var s=this.sync("delete",this,t);return t.wait||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||U();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return r?(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1):!0}});var p=["keys","values","pairs","invert","pick","omit"];n.each(p,function(t){h.prototype[t]=function(){var e=i.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var f=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},m={add:!0,remove:!0,merge:!0},y={add:!0,remove:!1};n.extend(f.prototype,a,{model:h,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,y))},remove:function(t,e){var r=!n.isArray(t);t=r?[t]:n.clone(t),e||(e={});var o,s,i,a;for(o=0,s=t.length;s>o;o++)a=t[o]=this.get(t[o]),a&&(delete this._byId[a.id],delete this._byId[a.cid],i=this.indexOf(a),this.models.splice(i,1),this.length--,e.silent||(e.index=i,a.trigger("remove",a,this,e)),this._removeReference(a,e));return r?t[0]:t},set:function(t,e){e=n.defaults({},e,m),e.parse&&(t=this.parse(t,e));var r=!n.isArray(t);t=r?t?[t]:[]:n.clone(t);var o,s,i,a,u,l,c,d=e.at,p=this.model,f=this.comparator&&null==d&&e.sort!==!1,y=n.isString(this.comparator)?this.comparator:null,g=[],v=[],w={},_=e.add,b=e.merge,k=e.remove,j=!f&&_&&k?[]:!1;for(o=0,s=t.length;s>o;o++){if(u=t[o]||{},i=u instanceof h?a=u:u[p.prototype.idAttribute||"id"],l=this.get(i))k&&(w[l.cid]=!0),b&&(u=u===a?a.attributes:u,e.parse&&(u=l.parse(u,e)),l.set(u,e),f&&!c&&l.hasChanged(y)&&(c=!0)),t[o]=l;else if(_){if(a=t[o]=this._prepareModel(u,e),!a)continue;g.push(a),this._addReference(a,e)}a=l||a,!j||!a.isNew()&&w[a.id]||j.push(a),w[a.id]=!0}if(k){for(o=0,s=this.length;s>o;++o)w[(a=this.models[o]).cid]||v.push(a);v.length&&this.remove(v,e)}if(g.length||j&&j.length)if(f&&(c=!0),this.length+=g.length,null!=d)for(o=0,s=g.length;s>o;o++)this.models.splice(d+o,0,g[o]);else{j&&(this.models.length=0);var x=j||g;for(o=0,s=x.length;s>o;o++)this.models.push(x[o])}if(c&&this.sort({silent:!0}),!e.silent){for(o=0,s=g.length;s>o;o++)(a=g[o]).trigger("add",a,this,e);(c||j&&j.length)&&this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,o=this.models.length;o>r;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return i.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,r=this;return t.success=function(n){var o=t.reset?"reset":"set";r[o](n,t),e&&e(r,n,t),r.trigger("sync",r,n,t)},O(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var r=this,o=e.success;return e.success=function(t,n){e.wait&&r.add(t,e),o&&o(t,n,e)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof h)return t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_addReference:function(t){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,r),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var g=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(g,function(t){f.prototype[t]=function(){var e=i.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var v=["groupBy","countBy","sortBy","indexBy"];n.each(v,function(t){f.prototype[t]=function(e,r){var o=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,o,r)}});var w=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,b)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},_=/^(\S+)\s*(.*)$/,b=["model","collection","el","id","attributes","className","tagName","events"];n.extend(w.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[t[e]]),r){var o=e.match(_),s=o[1],i=o[2];r=n.bind(r,this),s+=".delegateEvents"+this.cid,""===i?this.$el.on(s,r):this.$el.on(s,i,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var r=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(r,!1)}}}),e.sync=function(t,r,o){var s=j[t];n.defaults(o||(o={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var i={type:s,dataType:"json"};if(o.url||(i.url=n.result(r,"url")||U()),null!=o.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(i.contentType="application/json",i.data=JSON.stringify(o.attrs||r.toJSON(o))),o.emulateJSON&&(i.contentType="application/x-www-form-urlencoded",i.data=i.data?{model:i.data}:{}),o.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){i.type="POST",o.emulateJSON&&(i.data._method=s);var a=o.beforeSend;o.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",s),a?a.apply(this,arguments):void 0}}"GET"===i.type||o.emulateJSON||(i.processData=!1),"PATCH"===i.type&&k&&(i.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var u=o.xhr=e.ajax(n.extend(i,o));return r.trigger("request",r,u,o),u};var k=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),j={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var x=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},E=/\((.*?)\)/g,T=/(\(\?)?:\w+/g,S=/\*\w+/g,A=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(x.prototype,a,{initialize:function(){},route:function(t,r,o){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(o=r,r=""),o||(o=this[r]);var s=this;return e.history.route(t,function(n){var i=s._extractParameters(t,n);s.execute(o,i),s.trigger.apply(s,["route:"+r].concat(i)),s.trigger("route",r,i),e.history.trigger("route",s,r,i)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(A,"\\$&").replace(E,"(?:$1)?").replace(T,function(t,e){return e?t:"([^/?]+)"}).replace(S,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var P=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},I=/^[#\/]|\s+$/g,B=/^\/+|\/+$/g,C=/msie [\w.]+/,D=/\/$/,$=/#.*$/;P.started=!1,n.extend(P.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(D,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(I,"")},start:function(t){if(P.started)throw new Error("Backbone.history has already been started");P.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),o=document.documentMode,s=C.exec(navigator.userAgent.toLowerCase())&&(!o||7>=o);if(this.root=("/"+this.root+"/").replace(B,"/"),s&&this._wantsHashChange){var i=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=i.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(I,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),P.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!P.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace($,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new P;var R=function(t,e){var r,o=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,e);var s=function(){this.constructor=r};return s.prototype=o.prototype,r.prototype=new s,t&&n.extend(r.prototype,t),r.__super__=o.prototype,r};h.extend=f.extend=x.extend=w.extend=P.extend=R;var U=function(){throw new Error('A "url" property or function must be specified')},O=function(t,e){var n=e.error;e.error=function(r){n&&n(t,r,e),t.trigger("error",t,r,e)}};return e})},{underscore:"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/node_modules/underscore/underscore.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/node_modules/underscore/underscore.js":[function(t,e,n){(function(){var t=this,r=t._,o=Array.prototype,s=Object.prototype,i=Function.prototype,a=o.push,u=o.slice,l=o.concat,c=s.toString,d=s.hasOwnProperty,h=Array.isArray,p=Object.keys,f=i.bind,m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};"undefined"!=typeof n?("undefined"!=typeof e&&e.exports&&(n=e.exports=m),n._=m):t._=m,m.VERSION="1.7.0";var y=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,s){return t.call(e,n,r,o,s)}}return function(){return t.apply(e,arguments)}};m.iteratee=function(t,e,n){return null==t?m.identity:m.isFunction(t)?y(t,e,n):m.isObject(t)?m.matches(t):m.property(t)},m.each=m.forEach=function(t,e,n){if(null==t)return t;e=y(e,n);var r,o=t.length;if(o===+o)for(r=0;o>r;r++)e(t[r],r,t);else{var s=m.keys(t);for(r=0,o=s.length;o>r;r++)e(t[s[r]],s[r],t)}return t},m.map=m.collect=function(t,e,n){if(null==t)return[];e=m.iteratee(e,n);for(var r,o=t.length!==+t.length&&m.keys(t),s=(o||t).length,i=Array(s),a=0;s>a;a++)r=o?o[a]:a,i[a]=e(t[r],r,t);return i};var g="Reduce of empty array with no initial value";m.reduce=m.foldl=m.inject=function(t,e,n,r){null==t&&(t=[]),e=y(e,r,4);var o,s=t.length!==+t.length&&m.keys(t),i=(s||t).length,a=0;if(arguments.length<3){if(!i)throw new TypeError(g);n=t[s?s[a++]:a++]}for(;i>a;a++)o=s?s[a]:a,n=e(n,t[o],o,t);return n},m.reduceRight=m.foldr=function(t,e,n,r){null==t&&(t=[]),e=y(e,r,4);var o,s=t.length!==+t.length&&m.keys(t),i=(s||t).length;if(arguments.length<3){if(!i)throw new TypeError(g);n=t[s?s[--i]:--i]}for(;i--;)o=s?s[i]:i,n=e(n,t[o],o,t);return n},m.find=m.detect=function(t,e,n){var r;return e=m.iteratee(e,n),m.some(t,function(t,n,o){return e(t,n,o)?(r=t,!0):void 0}),r},m.filter=m.select=function(t,e,n){var r=[];return null==t?r:(e=m.iteratee(e,n),m.each(t,function(t,n,o){e(t,n,o)&&r.push(t)}),r)},m.reject=function(t,e,n){return m.filter(t,m.negate(m.iteratee(e)),n)},m.every=m.all=function(t,e,n){if(null==t)return!0;e=m.iteratee(e,n);var r,o,s=t.length!==+t.length&&m.keys(t),i=(s||t).length;for(r=0;i>r;r++)if(o=s?s[r]:r,!e(t[o],o,t))return!1;return!0},m.some=m.any=function(t,e,n){if(null==t)return!1;e=m.iteratee(e,n);var r,o,s=t.length!==+t.length&&m.keys(t),i=(s||t).length;for(r=0;i>r;r++)if(o=s?s[r]:r,e(t[o],o,t))return!0;return!1},m.contains=m.include=function(t,e){return null==t?!1:(t.length!==+t.length&&(t=m.values(t)),m.indexOf(t,e)>=0)},m.invoke=function(t,e){var n=u.call(arguments,2),r=m.isFunction(e);return m.map(t,function(t){return(r?e:t[e]).apply(t,n)})},m.pluck=function(t,e){return m.map(t,m.property(e))},m.where=function(t,e){return m.filter(t,m.matches(e))},m.findWhere=function(t,e){return m.find(t,m.matches(e))},m.max=function(t,e,n){var r,o,s=-1/0,i=-1/0;if(null==e&&null!=t){t=t.length===+t.length?t:m.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],r>s&&(s=r)}else e=m.iteratee(e,n),m.each(t,function(t,n,r){o=e(t,n,r),(o>i||o===-1/0&&s===-1/0)&&(s=t,i=o)});return s},m.min=function(t,e,n){var r,o,s=1/0,i=1/0;if(null==e&&null!=t){t=t.length===+t.length?t:m.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],s>r&&(s=r)}else e=m.iteratee(e,n),m.each(t,function(t,n,r){o=e(t,n,r),(i>o||1/0===o&&1/0===s)&&(s=t,i=o)});return s},m.shuffle=function(t){for(var e,n=t&&t.length===+t.length?t:m.values(t),r=n.length,o=Array(r),s=0;r>s;s++)e=m.random(0,s),e!==s&&(o[s]=o[e]),o[e]=n[s];return o},m.sample=function(t,e,n){return null==e||n?(t.length!==+t.length&&(t=m.values(t)),t[m.random(t.length-1)]):m.shuffle(t).slice(0,Math.max(0,e))},m.sortBy=function(t,e,n){return e=m.iteratee(e,n),m.pluck(m.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),"value")};var v=function(t){return function(e,n,r){var o={};return n=m.iteratee(n,r),m.each(e,function(r,s){var i=n(r,s,e);t(o,r,i)}),o}};m.groupBy=v(function(t,e,n){m.has(t,n)?t[n].push(e):t[n]=[e]}),m.indexBy=v(function(t,e,n){t[n]=e}),m.countBy=v(function(t,e,n){m.has(t,n)?t[n]++:t[n]=1}),m.sortedIndex=function(t,e,n,r){n=m.iteratee(n,r,1);for(var o=n(e),s=0,i=t.length;i>s;){var a=s+i>>>1;n(t[a])<o?s=a+1:i=a}return s},m.toArray=function(t){return t?m.isArray(t)?u.call(t):t.length===+t.length?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:t.length===+t.length?t.length:m.keys(t).length},m.partition=function(t,e,n){e=m.iteratee(e,n);var r=[],o=[];return m.each(t,function(t,n,s){(e(t,n,s)?r:o).push(t)}),[r,o]},m.first=m.head=m.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:0>e?[]:u.call(t,0,e)},m.initial=function(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},m.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:u.call(t,Math.max(t.length-e,0))},m.rest=m.tail=m.drop=function(t,e,n){return u.call(t,null==e||n?1:e)},m.compact=function(t){return m.filter(t,m.identity)};var w=function(t,e,n,r){if(e&&m.every(t,m.isArray))return l.apply(r,t);for(var o=0,s=t.length;s>o;o++){var i=t[o];m.isArray(i)||m.isArguments(i)?e?a.apply(r,i):w(i,e,n,r):n||r.push(i)}return r};m.flatten=function(t,e){return w(t,e,!1,[])},m.without=function(t){return m.difference(t,u.call(arguments,1))},m.uniq=m.unique=function(t,e,n,r){if(null==t)return[];m.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=m.iteratee(n,r));for(var o=[],s=[],i=0,a=t.length;a>i;i++){var u=t[i];if(e)i&&s===u||o.push(u),s=u;else if(n){var l=n(u,i,t);m.indexOf(s,l)<0&&(s.push(l),o.push(u))}else m.indexOf(o,u)<0&&o.push(u)}return o},m.union=function(){return m.uniq(w(arguments,!0,!0,[]))},m.intersection=function(t){if(null==t)return[];for(var e=[],n=arguments.length,r=0,o=t.length;o>r;r++){var s=t[r];if(!m.contains(e,s)){for(var i=1;n>i&&m.contains(arguments[i],s);i++);i===n&&e.push(s)}}return e},m.difference=function(t){var e=w(u.call(arguments,1),!0,!0,[]);return m.filter(t,function(t){return!m.contains(e,t)})},m.zip=function(t){if(null==t)return[];for(var e=m.max(arguments,"length").length,n=Array(e),r=0;e>r;r++)n[r]=m.pluck(arguments,r);return n},m.object=function(t,e){if(null==t)return{};for(var n={},r=0,o=t.length;o>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},m.indexOf=function(t,e,n){if(null==t)return-1;var r=0,o=t.length;if(n){if("number"!=typeof n)return r=m.sortedIndex(t,e),t[r]===e?r:-1;r=0>n?Math.max(0,o+n):n}for(;o>r;r++)if(t[r]===e)return r;return-1},m.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=t.length;for("number"==typeof n&&(r=0>n?r+n+1:Math.min(r,n+1));--r>=0;)if(t[r]===e)return r;return-1},m.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),o=Array(r),s=0;r>s;s++,t+=n)o[s]=t;return o};var _=function(){};m.bind=function(t,e){var n,r;if(f&&t.bind===f)return f.apply(t,u.call(arguments,1));if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");return n=u.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(u.call(arguments)));_.prototype=t.prototype;var o=new _;_.prototype=null;var s=t.apply(o,n.concat(u.call(arguments)));return m.isObject(s)?s:o}},m.partial=function(t){var e=u.call(arguments,1);return function(){for(var n=0,r=e.slice(),o=0,s=r.length;s>o;o++)r[o]===m&&(r[o]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},m.bindAll=function(t){var e,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(e=1;r>e;e++)n=arguments[e],t[n]=m.bind(t[n],t);return t},m.memoize=function(t,e){var n=function(r){var o=n.cache,s=e?e.apply(this,arguments):r;return m.has(o,s)||(o[s]=t.apply(this,arguments)),o[s]
};return n.cache={},n},m.delay=function(t,e){var n=u.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},m.defer=function(t){return m.delay.apply(m,[t,1].concat(u.call(arguments,1)))},m.throttle=function(t,e,n){var r,o,s,i=null,a=0;n||(n={});var u=function(){a=n.leading===!1?0:m.now(),i=null,s=t.apply(r,o),i||(r=o=null)};return function(){var l=m.now();a||n.leading!==!1||(a=l);var c=e-(l-a);return r=this,o=arguments,0>=c||c>e?(clearTimeout(i),i=null,a=l,s=t.apply(r,o),i||(r=o=null)):i||n.trailing===!1||(i=setTimeout(u,c)),s}},m.debounce=function(t,e,n){var r,o,s,i,a,u=function(){var l=m.now()-i;e>l&&l>0?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(s,o),r||(s=o=null)))};return function(){s=this,o=arguments,i=m.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(a=t.apply(s,o),s=o=null),a}},m.wrap=function(t,e){return m.partial(e,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},m.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},m.before=function(t,e){var n;return function(){return--t>0?n=e.apply(this,arguments):e=null,n}},m.once=m.partial(m.before,2),m.keys=function(t){if(!m.isObject(t))return[];if(p)return p(t);var e=[];for(var n in t)m.has(t,n)&&e.push(n);return e},m.values=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),o=0;n>o;o++)r[o]=t[e[o]];return r},m.pairs=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),o=0;n>o;o++)r[o]=[e[o],t[e[o]]];return r},m.invert=function(t){for(var e={},n=m.keys(t),r=0,o=n.length;o>r;r++)e[t[n[r]]]=n[r];return e},m.functions=m.methods=function(t){var e=[];for(var n in t)m.isFunction(t[n])&&e.push(n);return e.sort()},m.extend=function(t){if(!m.isObject(t))return t;for(var e,n,r=1,o=arguments.length;o>r;r++){e=arguments[r];for(n in e)d.call(e,n)&&(t[n]=e[n])}return t},m.pick=function(t,e,n){var r,o={};if(null==t)return o;if(m.isFunction(e)){e=y(e,n);for(r in t){var s=t[r];e(s,r,t)&&(o[r]=s)}}else{var i=l.apply([],u.call(arguments,1));t=new Object(t);for(var a=0,c=i.length;c>a;a++)r=i[a],r in t&&(o[r]=t[r])}return o},m.omit=function(t,e,n){if(m.isFunction(e))e=m.negate(e);else{var r=m.map(l.apply([],u.call(arguments,1)),String);e=function(t,e){return!m.contains(r,e)}}return m.pick(t,e,n)},m.defaults=function(t){if(!m.isObject(t))return t;for(var e=1,n=arguments.length;n>e;e++){var r=arguments[e];for(var o in r)void 0===t[o]&&(t[o]=r[o])}return t},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,e){return e(t),t};var b=function(t,e,n,r){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof m&&(t=t._wrapped),e instanceof m&&(e=e._wrapped);var o=c.call(t);if(o!==c.call(e))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}if("object"!=typeof t||"object"!=typeof e)return!1;for(var s=n.length;s--;)if(n[s]===t)return r[s]===e;var i=t.constructor,a=e.constructor;if(i!==a&&"constructor"in t&&"constructor"in e&&!(m.isFunction(i)&&i instanceof i&&m.isFunction(a)&&a instanceof a))return!1;n.push(t),r.push(e);var u,l;if("[object Array]"===o){if(u=t.length,l=u===e.length)for(;u--&&(l=b(t[u],e[u],n,r)););}else{var d,h=m.keys(t);if(u=h.length,l=m.keys(e).length===u)for(;u--&&(d=h[u],l=m.has(e,d)&&b(t[d],e[d],n,r)););}return n.pop(),r.pop(),l};m.isEqual=function(t,e){return b(t,e,[],[])},m.isEmpty=function(t){if(null==t)return!0;if(m.isArray(t)||m.isString(t)||m.isArguments(t))return 0===t.length;for(var e in t)if(m.has(t,e))return!1;return!0},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=h||function(t){return"[object Array]"===c.call(t)},m.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp"],function(t){m["is"+t]=function(e){return c.call(e)==="[object "+t+"]"}}),m.isArguments(arguments)||(m.isArguments=function(t){return m.has(t,"callee")}),"function"!=typeof/./&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&t!==+t},m.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===c.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,e){return null!=t&&d.call(t,e)},m.noConflict=function(){return t._=r,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=function(t){return function(e){return e[t]}},m.matches=function(t){var e=m.pairs(t),n=e.length;return function(t){if(null==t)return!n;t=new Object(t);for(var r=0;n>r;r++){var o=e[r],s=o[0];if(o[1]!==t[s]||!(s in t))return!1}return!0}},m.times=function(t,e,n){var r=Array(Math.max(0,t));e=y(e,n,1);for(var o=0;t>o;o++)r[o]=e(o);return r},m.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},m.now=Date.now||function(){return(new Date).getTime()};var k={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},j=m.invert(k),x=function(t){var e=function(e){return t[e]},n="(?:"+m.keys(t).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(o,e):t}};m.escape=x(k),m.unescape=x(j),m.result=function(t,e){if(null==t)return void 0;var n=t[e];return m.isFunction(n)?t[e]():n};var E=0;m.uniqueId=function(t){var e=++E+"";return t?t+e:e},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,S={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},A=/\\|'|\r|\n|\u2028|\u2029/g,P=function(t){return"\\"+S[t]};m.template=function(t,e,n){!e&&n&&(e=n),e=m.defaults({},e,m.templateSettings);var r=RegExp([(e.escape||T).source,(e.interpolate||T).source,(e.evaluate||T).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(r,function(e,n,r,i,a){return s+=t.slice(o,a).replace(A,P),o=a+e.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var i=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var u=function(t){return i.call(this,t,m)},l=e.variable||"obj";return u.source="function("+l+"){\n"+s+"}",u},m.chain=function(t){var e=m(t);return e._chain=!0,e};var I=function(t){return this._chain?m(t).chain():t};m.mixin=function(t){m.each(m.functions(t),function(e){var n=m[e]=t[e];m.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),I.call(this,n.apply(m,t))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=o[t];m.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],I.call(this,n)}}),m.each(["concat","join","slice"],function(t){var e=o[t];m.prototype[t]=function(){return I.call(this,e.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this)},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/router.js":[function(t,e){(function(){var n,r,o,s,i,a,u,l,c,d,h,p,f,m,y,g,v,w,_={}.hasOwnProperty,b=function(t,e){function n(){this.constructor=t}for(var r in e)_.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},k=[].slice;n=t("./backbone"),m=t("querystring"),w=t("./underscore"),s=w.extend,h=w.object,l=w.isRegExp,u=w.isFunction,v=w.zip,p=w.pluck,y=w.sortBy,c=w.keys,o=w.difference,d=w.map,a=function(t){var e;return e=[],e.push.apply(e,f(t,/(\(\?)?:\w+/g)),e.push.apply(e,f(t,/\*\w+/g)),e},f=function(t,e){var n,r,o;return r=null!=(o=t.match(e))?o:[],n=i(t,e),v(r,n)},i=function(t,e){var n;for(n=[];e.test(t);)n.push(e.lastIndex);return n},g=function(t,e,n,r){return null==r&&(r=""),t.slice(0,e)+r+t.slice(n)},r=function(t){function e(){var t;t=1<=arguments.length?k.call(arguments,0):[],this._routes={},e.__super__.constructor.apply(this,t)}return b(e,t),e.prototype.route=function(t,e,r){return l(t)||(this._routes[e]=t,t=this._routeToRegExp(t)),u(e)&&(r=e,e=""),r||(r=this[e]),n.history.route(t,function(o){return function(s){var i;return i=o._buildRequest(t,s,e),o.execute(r,i),o.trigger.apply(o,["route:"+e,i]),o.trigger("route",e,i),n.history.trigger("route",o,e,i)}}(this))},e.prototype._routeToRegExp=function(t){var n,r;return r=e.__super__._routeToRegExp.call(this,t),n=a(t),r.names=d(p(y(n,"1"),"0"),function(t){return t.slice(1)}),r},e.prototype._buildRequest=function(t,e,n){var r,o,s,i,a,u;return i=this._extractParameters(t,e),o=e.split("?").slice(1).join("?"),i[i.length-1]===o&&(i=i.slice(0,-1)),r=null!=(a=t.names)?a:d(i,function(t,e){return e}),s={route:null!=(u=this._routes[n])?u:t,fragment:e,name:n,values:i,params:h(r,i),query:m.parse(o)}},e.prototype._bindRoutes=function(){},e.prototype.execute=function(t,e){return t?t.call(this,e):void 0},e.prototype.reverse=function(t,e){var n,r,s,i,u,l,h,y,v,w,_,b,k,j,x,E,T,S,A,P,I;if(w=this._routes[t],!w)return null;for(v=w,h=null!=(T=e.params)?T:{},y=null!=(S=e.query)?S:{},i=c(h),l=f(w,/\((.*?)\)/g).reverse(),k=0,x=l.length;x>k;k++)A=l[k],u=A[0],r=A[1],s=d(p(a(u),"0"),function(t){return t.slice(1)}),n=o(s,i).length,w=0===s.length||0!==n?g(w,r-u.length,r):g(w,r-u.length,r,u.slice(1,-1));for(s=a(w).reverse(),j=0,E=s.length;E>j;j++)P=s[j],_=P[0],r=P[1],b=null!=(I=h[_.slice(1)])?I:null,null!==b&&(w=g(w,r-_.length,r,h[_.slice(1)]));return y=m.stringify(y),y&&(w+="?"+y),w},e}(n.Router),e.exports=r}).call(this)},{"./backbone":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js","./underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js",querystring:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js":[function(t,e){(function(){var n;e.exports=null!=(n=t("underscore"))?n:window._}).call(this)},{underscore:"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/node_modules/underscore/underscore.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js":[function(t,e){(function(){var n,r,o,s,i,a={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},c=[].slice;n=t("./backbone"),i=t("./underscore"),s=i.without,o=i.difference,r=function(t){function e(t){var n;null==t&&(t={}),this.children=[],t.className&&(this.className=t.className),t.namespace&&(this.namespace=t.namespace),t.el&&this._ensureClass(t.el),t.parent&&this.setParent(t.parent),(null!=(n=t.children)?n.length:void 0)&&this.addChildren(t.children),e.__super__.constructor.call(this,t)}return u(e,t),e.prototype.parent=null,e.prototype.children=null,e.prototype.namespace="",e.prototype._ensureClass=function(t,e){return null==e&&(e=this.className),n.$(t).addClass(e)},e.prototype.addChildren=function(t){var e,n,r,o;for(o=[],n=0,r=t.length;r>n;n++)e=t[n],o.push(this.addChild(e));return o},e.prototype.addChild=function(t){return t.parent&&t.unsetParent(),this.children.push(t),t.parent=this},e.prototype.setParent=function(t){return this.parent&&this.unsetParent(),this.parent=t,this.parent.children.push(this)},e.prototype.unsetParent=function(){return this.parent?this.parent.removeChild(this):void 0},e.prototype.hasParent=function(){return!!this.parent},e.prototype.getParent=function(){return this.parent},e.prototype.hasChildren=function(){return this.children.length},e.prototype.getChildren=function(){return this.children},e.prototype.hasChild=function(t){return l.call(this.children,t)>=0},e.prototype.hasDescendant=function(t){var e,n,r,o;if(l.call(this.children,t)>=0)return!0;for(o=this.children,n=0,r=o.length;r>n;n++)if(e=o[n],e.hasDescendant(t))return!0;return!1},e.prototype.removeChild=function(t){return this.children=s(this.children,t),t.parent=null},e.prototype.removeChildren=function(){var t,e,n,r,o;for(r=this.children,o=[],e=0,n=r.length;n>e;e++)t=r[e],o.push(this.removeChild(t));return o},e.prototype.root=function(){var t;for(t=this;t.hasParent();)t=t.getParent();return t},e.prototype.remove=function(){return this.children.forEach(function(t){return t.remove()}),this.children=[],this.parent=null,this.off(),this.undelegateEvents(),e.__super__.remove.call(this)},e.prototype.trigger=function(){var t;return t=1<=arguments.length?c.call(arguments,0):[],n.View.prototype.trigger.apply(this,t),this.namespace&&(t[0]=this.namespace+"."+t[0]),this.parent?this.parent._bubbleTrigger.apply(this.parent,t):void 0},e.prototype._bubbleTrigger=function(){var t;return t=1<=arguments.length?c.call(arguments,0):[],n.View.prototype.trigger.apply(this,t),this.parent?this.parent._bubbleTrigger.apply(this.parent,t):void 0},e}(n.View),e.exports=r}).call(this)},{"./backbone":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/backbone.js","./underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js":[function(){},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/browser-resolve/empty.js":[function(t,e){e.exports=t("/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js")},{"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js":[function(t,e,n){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var o,s=typeof t;if("number"===s)o=t>0?t>>>0:0;else if("string"===s)"base64"===e&&(t=j(t)),o=r.byteLength(t,e);else{if("object"!==s||null===t)throw new TypeError("must start with number, buffer, array or string");"Buffer"===t.type&&R(t.data)&&(t=t.data),o=+t.length>0?Math.floor(+t.length):0}if(this.length>U)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U.toString(16)+" bytes");var i;r.TYPED_ARRAY_SUPPORT?i=r._augment(new Uint8Array(o)):(i=this,i.length=o,i._isBuffer=!0);var a;if(r.TYPED_ARRAY_SUPPORT&&"number"==typeof t.byteLength)i._set(t);else if(E(t))if(r.isBuffer(t))for(a=0;o>a;a++)i[a]=t.readUInt8(a);else for(a=0;o>a;a++)i[a]=(t[a]%256+256)%256;else if("string"===s)i.write(t,0,e);else if("number"===s&&!r.TYPED_ARRAY_SUPPORT&&!n)for(a=0;o>a;a++)i[a]=0;return i}function o(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var s=e.length;if(s%2!==0)throw new Error("Invalid hex string");r>s/2&&(r=s/2);for(var i=0;r>i;i++){var a=parseInt(e.substr(2*i,2),16);if(isNaN(a))throw new Error("Invalid hex string");t[n+i]=a}return i}function s(t,e,n,r){var o=B(S(e),t,n,r);return o}function i(t,e,n,r){var o=B(A(e),t,n,r);return o}function a(t,e,n,r){return i(t,e,n,r)}function u(t,e,n,r){var o=B(I(e),t,n,r);return o}function l(t,e,n,r){var o=B(P(e),t,n,r);return o}function c(t,e,n){return D.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function d(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var s=e;n>s;s++)t[s]<=127?(r+=C(o)+String.fromCharCode(t[s]),o=""):o+="%"+t[s].toString(16);return r+C(o)}function h(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function p(t,e,n){return h(t,e,n)}function f(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",s=e;n>s;s++)o+=T(t[s]);return o}function m(t,e,n){for(var r=t.slice(e,n),o="",s=0;s<r.length;s+=2)o+=String.fromCharCode(r[s]+256*r[s+1]);return o}function y(t,e,n){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function g(t,e,n,o,s,i){if(!r.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>s||i>e)throw new TypeError("value is out of bounds");if(n+o>t.length)throw new TypeError("index out of range")}function v(t,e,n,r){0>e&&(e=65535+e+1);for(var o=0,s=Math.min(t.length-n,2);s>o;o++)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function w(t,e,n,r){0>e&&(e=4294967295+e+1);for(var o=0,s=Math.min(t.length-n,4);s>o;o++)t[n+o]=e>>>8*(r?o:3-o)&255}function _(t,e,n,r,o,s){if(e>o||s>e)throw new TypeError("value is out of bounds");if(n+r>t.length)throw new TypeError("index out of range")}function b(t,e,n,r,o){return o||_(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,r,23,4),n+4}function k(t,e,n,r,o){return o||_(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,r,52,8),n+8}function j(t){for(t=x(t).replace(N,"");t.length%4!==0;)t+="=";return t}function x(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function E(t){return R(t)||r.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function T(t){return 16>t?"0"+t.toString(16):t.toString(16)}function S(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(r);else{var o=n;r>=55296&&57343>=r&&n++;for(var s=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),i=0;i<s.length;i++)e.push(parseInt(s[i],16))}}return e}function A(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function P(t){for(var e,n,r,o=[],s=0;s<t.length;s++)e=t.charCodeAt(s),n=e>>8,r=e%256,o.push(r),o.push(n);return o}function I(t){return D.toByteArray(t)}function B(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function C(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}var D=t("base64-js"),$=t("ieee754"),R=t("is-array");n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192;var U=1073741823;r.TYPED_ARRAY_SUPPORT=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");for(var n=t.length,o=e.length,s=0,i=Math.min(n,o);i>s&&t[s]===e[s];s++);return s!==i&&(n=t[s],o=e[s]),o>n?-1:n>o?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!R(t))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===t.length)return new r(0);if(1===t.length)return t[0];var n;if(void 0===e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var o=new r(e),s=0;for(n=0;n<t.length;n++){var i=t[n];i.copy(o,s),s+=i.length}return o},r.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"ascii":case"binary":case"raw":n=t.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;case"hex":n=t.length>>>1;break;case"utf8":case"utf-8":n=S(t).length;break;case"base64":n=I(t).length;break;default:n=t.length}return n},r.prototype.length=void 0,r.prototype.parent=void 0,r.prototype.toString=function(t,e,n){var r=!1;if(e>>>=0,n=void 0===n||1/0===n?this.length:n>>>0,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return f(this,e,n);case"utf8":case"utf-8":return d(this,e,n);case"ascii":return h(this,e,n);case"binary":return p(this,e,n);case"base64":return c(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return 0===r.compare(this,t)},r.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return r.compare(this,t)},r.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},r.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},r.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var c=r;r=e,e=n,n=c}e=Number(e)||0;var d=this.length-e;n?(n=Number(n),n>d&&(n=d)):n=d,r=String(r||"utf8").toLowerCase();var h;switch(r){case"hex":h=o(this,t,e,n);break;case"utf8":case"utf-8":h=s(this,t,e,n);break;case"ascii":h=i(this,t,e,n);break;case"binary":h=a(this,t,e,n);break;case"base64":h=u(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=l(this,t,e,n);break;default:throw new TypeError("Unknown encoding: "+r)}return h},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.slice=function(t,e){var n=this.length;if(t=~~t,e=void 0===e?n:~~e,0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),t>e&&(e=t),r.TYPED_ARRAY_SUPPORT)return r._augment(this.subarray(t,e));for(var o=e-t,s=new r(o,void 0,!0),i=0;o>i;i++)s[i]=this[i+t];return s},r.prototype.readUInt8=function(t,e){return e||y(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||y(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||y(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),$.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),$.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),$.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),$.read(this,t,!1,52,8)},r.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=t,e+1},r.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):v(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t):w(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):w(this,t,e,!1),e+4},r.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=t,e+1},r.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t):v(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):w(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||g(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t):w(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,n){return b(this,t,e,!0,n)},r.prototype.writeFloatBE=function(t,e,n){return b(this,t,e,!1,n)},r.prototype.writeDoubleLE=function(t,e,n){return k(this,t,e,!0,n)},r.prototype.writeDoubleBE=function(t,e,n){return k(this,t,e,!1,n)},r.prototype.copy=function(t,e,n,o){var s=this;if(n||(n=0),o||0===o||(o=this.length),e||(e=0),o!==n&&0!==t.length&&0!==s.length){if(n>o)throw new TypeError("sourceEnd < sourceStart");if(0>e||e>=t.length)throw new TypeError("targetStart out of bounds");if(0>n||n>=s.length)throw new TypeError("sourceStart out of bounds");if(0>o||o>s.length)throw new TypeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);var i=o-n;if(1e3>i||!r.TYPED_ARRAY_SUPPORT)for(var a=0;i>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+i),e)}},r.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new TypeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new TypeError("start out of bounds");if(0>n||n>this.length)throw new TypeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var o=S(t.toString()),s=o.length;for(r=e;n>r;r++)this[r]=o[r%s]}return this}},r.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(r.TYPED_ARRAY_SUPPORT)return new r(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var O=r.prototype;r._augment=function(t){return t.constructor=r,t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=O.get,t.set=O.set,t.write=O.write,t.toString=O.toString,t.toLocaleString=O.toString,t.toJSON=O.toJSON,t.equals=O.equals,t.compare=O.compare,t.copy=O.copy,t.slice=O.slice,t.readUInt8=O.readUInt8,t.readUInt16LE=O.readUInt16LE,t.readUInt16BE=O.readUInt16BE,t.readUInt32LE=O.readUInt32LE,t.readUInt32BE=O.readUInt32BE,t.readInt8=O.readInt8,t.readInt16LE=O.readInt16LE,t.readInt16BE=O.readInt16BE,t.readInt32LE=O.readInt32LE,t.readInt32BE=O.readInt32BE,t.readFloatLE=O.readFloatLE,t.readFloatBE=O.readFloatBE,t.readDoubleLE=O.readDoubleLE,t.readDoubleBE=O.readDoubleBE,t.writeUInt8=O.writeUInt8,t.writeUInt16LE=O.writeUInt16LE,t.writeUInt16BE=O.writeUInt16BE,t.writeUInt32LE=O.writeUInt32LE,t.writeUInt32BE=O.writeUInt32BE,t.writeInt8=O.writeInt8,t.writeInt16LE=O.writeInt16LE,t.writeInt16BE=O.writeInt16BE,t.writeInt32LE=O.writeInt32LE,t.writeInt32BE=O.writeInt32BE,t.writeFloatLE=O.writeFloatLE,t.writeFloatBE=O.writeFloatBE,t.writeDoubleLE=O.writeDoubleLE,t.writeDoubleBE=O.writeDoubleBE,t.fill=O.fill,t.inspect=O.inspect,t.toArrayBuffer=O.toArrayBuffer,t};var N=/[^+\/0-9A-z]/g},{"base64-js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js",ieee754:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","is-array":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js":[function(t,e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===i?62:e===a?63:u>e?-1:u+10>e?e-u+26+26:c+26>e?e-c:l+26>e?e-l+26:void 0}function n(t){function n(t){l[d++]=t}var r,o,i,a,u,l;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;u="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,l=new s(3*t.length/4-u),i=u>0?t.length-4:t.length;var d=0;for(r=0,o=0;i>r;r+=4,o+=3)a=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===u?(a=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&a)):1===u&&(a=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(a>>8&255),n(255&a)),l}function o(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,s,i,a=t.length%3,u="";for(o=0,i=t.length-a;i>o;o+=3)s=(t[o]<<16)+(t[o+1]<<8)+t[o+2],u+=n(s);switch(a){case 1:s=t[t.length-1],u+=e(s>>2),u+=e(s<<4&63),u+="==";break;case 2:s=(t[t.length-2]<<8)+t[t.length-1],u+=e(s>>10),u+=e(s>>4&63),u+=e(s<<2&63),u+="="}return u}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);t.toByteArray=n,t.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js":[function(t,e,n){n.read=function(t,e,n,r,o){var s,i,a=8*o-r-1,u=(1<<a)-1,l=u>>1,c=-7,d=n?o-1:0,h=n?-1:1,p=t[e+d];for(d+=h,s=p&(1<<-c)-1,p>>=-c,c+=a;c>0;s=256*s+t[e+d],d+=h,c-=8);for(i=s&(1<<-c)-1,s>>=-c,c+=r;c>0;i=256*i+t[e+d],d+=h,c-=8);if(0===s)s=1-l;else{if(s===u)return i?0/0:1/0*(p?-1:1);i+=Math.pow(2,r),s-=l}return(p?-1:1)*i*Math.pow(2,s-r)},n.write=function(t,e,n,r,o,s){var i,a,u,l=8*s-o-1,c=(1<<l)-1,d=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,f=r?1:-1,m=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,i=c):(i=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-i))<1&&(i--,u*=2),e+=i+d>=1?h/u:h*Math.pow(2,1-d),e*u>=2&&(i++,u/=2),i+d>=c?(a=0,i=c):i+d>=1?(a=(e*u-1)*Math.pow(2,o),i+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;t[n+p]=255&a,p+=f,a/=256,o-=8);for(i=i<<o|a,l+=o;l>0;t[n+p]=255&i,p+=f,i/=256,l-=8);t[n+p-f]|=128*m}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js":[function(t,e){var n=Array.isArray,r=Object.prototype.toString;e.exports=n||function(t){return!!t&&"[object Array]"==r.call(t)}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/create-hash.js":[function(t,e){(function(n){function r(t){return function(){var e=[],r={update:function(t,r){return n.isBuffer(t)||(t=new n(t,r)),e.push(t),this},digest:function(r){var o=n.concat(e),s=t(o);return e=null,r?s.toString(r):s}};return r}}var o=t("sha.js"),s=r(t("./md5")),i=r(t("ripemd160"));e.exports=function(t){return"md5"===t?new s:"rmd160"===t?new i:o(t)}}).call(this,t("buffer").Buffer)},{"./md5":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/md5.js",buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js",ripemd160:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/ripemd160/lib/ripemd160.js","sha.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/create-hmac.js":[function(t,e){(function(n){function r(t,e){if(!(this instanceof r))return new r(t,e);
this._opad=u,this._alg=t;var i="sha512"===t?128:64;e=this._key=n.isBuffer(e)?e:new n(e),e.length>i?e=o(t).update(e).digest():e.length<i&&(e=n.concat([e,s],i));for(var a=this._ipad=new n(i),u=this._opad=new n(i),l=0;i>l;l++)a[l]=54^e[l],u[l]=92^e[l];this._hash=o(t).update(a)}var o=t("./create-hash"),s=new n(128);s.fill(0),e.exports=r,r.prototype.update=function(t,e){return this._hash.update(t,e),this},r.prototype.digest=function(t){var e=this._hash.digest();return o(this._alg).update(this._opad).update(e).digest(t)}}).call(this,t("buffer").Buffer)},{"./create-hash":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/create-hash.js",buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/helpers.js":[function(t,e){(function(t){function n(e,n){if(e.length%s!==0){var r=e.length+(s-e.length%s);e=t.concat([e,i],r)}for(var o=[],a=n?e.readInt32BE:e.readInt32LE,u=0;u<e.length;u+=s)o.push(a.call(e,u));return o}function r(e,n,r){for(var o=new t(n),s=r?o.writeInt32BE:o.writeInt32LE,i=0;i<e.length;i++)s.call(o,e[i],4*i,!0);return o}function o(e,o,s,i){t.isBuffer(e)||(e=new t(e));var u=o(n(e,i),e.length*a);return r(u,s,i)}var s=4,i=new t(s);i.fill(0);var a=8;e.exports={hash:o}}).call(this,t("buffer").Buffer)},{buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/index.js":[function(t,e,n){(function(e){function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function o(t,e){for(var n in t)e(t[n],n)}var s=t("./rng");n.createHash=t("./create-hash"),n.createHmac=t("./create-hmac"),n.randomBytes=function(t,n){if(!n||!n.call)return new e(s(t));try{n.call(this,void 0,new e(s(t)))}catch(r){n(r)}},n.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var i=t("./pbkdf2")(n);n.pbkdf2=i.pbkdf2,n.pbkdf2Sync=i.pbkdf2Sync,o(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){n[t]=function(){r("sorry,",t,"is not implemented yet")}})}).call(this,t("buffer").Buffer)},{"./create-hash":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/create-hash.js","./create-hmac":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/create-hmac.js","./pbkdf2":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/pbkdf2.js","./rng":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/rng.js",buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/md5.js":[function(t,e){function n(t,e){t[e>>5]|=128<<e%32,t[(e+64>>>9<<4)+14]=e;for(var n=1732584193,r=-271733879,l=-1732584194,c=271733878,d=0;d<t.length;d+=16){var h=n,p=r,f=l,m=c;n=o(n,r,l,c,t[d+0],7,-680876936),c=o(c,n,r,l,t[d+1],12,-389564586),l=o(l,c,n,r,t[d+2],17,606105819),r=o(r,l,c,n,t[d+3],22,-1044525330),n=o(n,r,l,c,t[d+4],7,-176418897),c=o(c,n,r,l,t[d+5],12,1200080426),l=o(l,c,n,r,t[d+6],17,-1473231341),r=o(r,l,c,n,t[d+7],22,-45705983),n=o(n,r,l,c,t[d+8],7,1770035416),c=o(c,n,r,l,t[d+9],12,-1958414417),l=o(l,c,n,r,t[d+10],17,-42063),r=o(r,l,c,n,t[d+11],22,-1990404162),n=o(n,r,l,c,t[d+12],7,1804603682),c=o(c,n,r,l,t[d+13],12,-40341101),l=o(l,c,n,r,t[d+14],17,-1502002290),r=o(r,l,c,n,t[d+15],22,1236535329),n=s(n,r,l,c,t[d+1],5,-165796510),c=s(c,n,r,l,t[d+6],9,-1069501632),l=s(l,c,n,r,t[d+11],14,643717713),r=s(r,l,c,n,t[d+0],20,-373897302),n=s(n,r,l,c,t[d+5],5,-701558691),c=s(c,n,r,l,t[d+10],9,38016083),l=s(l,c,n,r,t[d+15],14,-660478335),r=s(r,l,c,n,t[d+4],20,-405537848),n=s(n,r,l,c,t[d+9],5,568446438),c=s(c,n,r,l,t[d+14],9,-1019803690),l=s(l,c,n,r,t[d+3],14,-187363961),r=s(r,l,c,n,t[d+8],20,1163531501),n=s(n,r,l,c,t[d+13],5,-1444681467),c=s(c,n,r,l,t[d+2],9,-51403784),l=s(l,c,n,r,t[d+7],14,1735328473),r=s(r,l,c,n,t[d+12],20,-1926607734),n=i(n,r,l,c,t[d+5],4,-378558),c=i(c,n,r,l,t[d+8],11,-2022574463),l=i(l,c,n,r,t[d+11],16,1839030562),r=i(r,l,c,n,t[d+14],23,-35309556),n=i(n,r,l,c,t[d+1],4,-1530992060),c=i(c,n,r,l,t[d+4],11,1272893353),l=i(l,c,n,r,t[d+7],16,-155497632),r=i(r,l,c,n,t[d+10],23,-1094730640),n=i(n,r,l,c,t[d+13],4,681279174),c=i(c,n,r,l,t[d+0],11,-358537222),l=i(l,c,n,r,t[d+3],16,-722521979),r=i(r,l,c,n,t[d+6],23,76029189),n=i(n,r,l,c,t[d+9],4,-640364487),c=i(c,n,r,l,t[d+12],11,-421815835),l=i(l,c,n,r,t[d+15],16,530742520),r=i(r,l,c,n,t[d+2],23,-995338651),n=a(n,r,l,c,t[d+0],6,-198630844),c=a(c,n,r,l,t[d+7],10,1126891415),l=a(l,c,n,r,t[d+14],15,-1416354905),r=a(r,l,c,n,t[d+5],21,-57434055),n=a(n,r,l,c,t[d+12],6,1700485571),c=a(c,n,r,l,t[d+3],10,-1894986606),l=a(l,c,n,r,t[d+10],15,-1051523),r=a(r,l,c,n,t[d+1],21,-2054922799),n=a(n,r,l,c,t[d+8],6,1873313359),c=a(c,n,r,l,t[d+15],10,-30611744),l=a(l,c,n,r,t[d+6],15,-1560198380),r=a(r,l,c,n,t[d+13],21,1309151649),n=a(n,r,l,c,t[d+4],6,-145523070),c=a(c,n,r,l,t[d+11],10,-1120210379),l=a(l,c,n,r,t[d+2],15,718787259),r=a(r,l,c,n,t[d+9],21,-343485551),n=u(n,h),r=u(r,p),l=u(l,f),c=u(c,m)}return Array(n,r,l,c)}function r(t,e,n,r,o,s){return u(l(u(u(e,t),u(r,s)),o),n)}function o(t,e,n,o,s,i,a){return r(e&n|~e&o,t,e,s,i,a)}function s(t,e,n,o,s,i,a){return r(e&o|n&~o,t,e,s,i,a)}function i(t,e,n,o,s,i,a){return r(e^n^o,t,e,s,i,a)}function a(t,e,n,o,s,i,a){return r(n^(e|~o),t,e,s,i,a)}function u(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function l(t,e){return t<<e|t>>>32-e}var c=t("./helpers");e.exports=function(t){return c.hash(t,n,16)}},{"./helpers":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/helpers.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/pbkdf2-compat/pbkdf2.js":[function(t,e){(function(t){e.exports=function(e){function n(t,e,n,o,s,i){if("function"==typeof s&&(i=s,s=void 0),"function"!=typeof i)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var a;try{a=r(t,e,n,o,s)}catch(u){return i(u)}i(void 0,a)})}function r(n,r,o,s,i){if("number"!=typeof o)throw new TypeError("Iterations not a number");if(0>o)throw new TypeError("Bad iterations");if("number"!=typeof s)throw new TypeError("Key length not a number");if(0>s)throw new TypeError("Bad key length");i=i||"sha1",t.isBuffer(n)||(n=new t(n)),t.isBuffer(r)||(r=new t(r));var a,u,l,c=1,d=new t(s),h=new t(r.length+4);r.copy(h,0,0,r.length);for(var p=1;c>=p;p++){h.writeUInt32BE(p,r.length);var f=e.createHmac(i,n).update(h).digest();if(!a&&(a=f.length,l=new t(a),c=Math.ceil(s/a),u=s-(c-1)*a,s>(Math.pow(2,32)-1)*a))throw new TypeError("keylen exceeds maximum length");f.copy(l,0,0,a);for(var m=1;o>m;m++){f=e.createHmac(i,n).update(f).digest();for(var y=0;a>y;y++)l[y]^=f[y]}var g=(p-1)*a,v=p==c?u:a;l.copy(d,g,0,v)}return d}return{pbkdf2:n,pbkdf2Sync:r}}}).call(this,t("buffer").Buffer)},{buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/ripemd160/lib/ripemd160.js":[function(t,e){(function(t){function n(t,e,n){return t^e^n}function r(t,e,n){return t&e|~t&n}function o(t,e,n){return(t|~e)^n}function s(t,e,n){return t&n|e&~n}function i(t,e,n){return t^(e|~n)}function a(t,e){return t<<e|t>>>32-e}function u(e){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof e&&(e=new t(e,"utf8"));var r=m(e),o=8*e.length,s=8*e.length;r[o>>>5]|=128<<24-o%32,r[(o+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);for(var i=0;i<r.length;i+=16)g(n,r,i);for(var i=0;5>i;i++){var a=n[i];n[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var u=y(n);return new t(u)}e.exports=u;var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0],m=function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},y=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},g=function(t,e,u){for(var m=0;16>m;m++){var y=u+m,g=e[y];e[y]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8)}var v,w,_,b,k,j,x,E,T,S;j=v=t[0],x=w=t[1],E=_=t[2],T=b=t[3],S=k=t[4];for(var A,m=0;80>m;m+=1)A=v+e[u+l[m]]|0,A+=16>m?n(w,_,b)+p[0]:32>m?r(w,_,b)+p[1]:48>m?o(w,_,b)+p[2]:64>m?s(w,_,b)+p[3]:i(w,_,b)+p[4],A=0|A,A=a(A,d[m]),A=A+k|0,v=k,k=b,b=a(_,10),_=w,w=A,A=j+e[u+c[m]]|0,A+=16>m?i(x,E,T)+f[0]:32>m?s(x,E,T)+f[1]:48>m?o(x,E,T)+f[2]:64>m?r(x,E,T)+f[3]:n(x,E,T)+f[4],A=0|A,A=a(A,h[m]),A=A+S|0,j=S,S=T,T=a(E,10),E=x,x=A;A=t[1]+_+T|0,t[1]=t[2]+b+S|0,t[2]=t[3]+k+j|0,t[3]=t[4]+v+x|0,t[4]=t[0]+w+E|0,t[0]=A}}).call(this,t("buffer").Buffer)},{buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/hash.js":[function(t,e){e.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var r=this._len+=e.length,o=this._s=this._s||0,s=0,i=this._block;r>o;){for(var a=Math.min(e.length,s+this._blockSize-o%this._blockSize),u=a-s,l=0;u>l;l++)i[o%this._blockSize+l]=e[l+s];o+=u,s+=u,o%this._blockSize===0&&this._update(i)}return this._s=o,this},e.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/index.js":[function(t,e,n){var n=e.exports=function(t){var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e},r=t("buffer").Buffer,o=t("./hash")(r);n.sha1=t("./sha1")(r,o),n.sha256=t("./sha256")(r,o),n.sha512=t("./sha512")(r,o)},{"./hash":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/hash.js","./sha1":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha1.js","./sha256":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha256.js","./sha512":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha512.js",buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha1.js":[function(t,e){var n=t("util").inherits;e.exports=function(t,e){function r(){return f.length?f.pop().init():this instanceof r?(this._w=p,e.call(this,64,56),this._h=null,void this.init()):new r}function o(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function s(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function i(t,e){return t+e|0}function a(t,e){return t<<e|t>>>32-e}var u=0,l=4,c=8,d=12,h=16,p=new("undefined"==typeof Int32Array?Array:Int32Array)(80),f=[];return n(r,e),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},r.prototype._POOL=f,r.prototype._update=function(t){var e,n,r,u,l,c,d,h,p,f;e=c=this._a,n=d=this._b,r=h=this._c,u=p=this._d,l=f=this._e;for(var m=this._w,y=0;80>y;y++){var g=m[y]=16>y?t.readInt32BE(4*y):a(m[y-3]^m[y-8]^m[y-14]^m[y-16],1),v=i(i(a(e,5),o(y,n,r,u)),i(i(l,g),s(y)));l=u,u=r,r=a(n,30),n=e,e=v}this._a=i(e,c),this._b=i(n,d),this._c=i(r,h),this._d=i(u,p),this._e=i(l,f)},r.prototype._hash=function(){f.length<100&&f.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,u),e.writeInt32BE(0|this._b,l),e.writeInt32BE(0|this._c,c),e.writeInt32BE(0|this._d,d),e.writeInt32BE(0|this._e,h),e},r}},{util:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/util.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha256.js":[function(t,e){var n=t("util").inherits;e.exports=function(t,e){function r(){this.init(),this._w=p,e.call(this,64,56)}function o(t,e){return t>>>e|t<<32-e}function s(t,e){return t>>>e}function i(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}function u(t){return o(t,2)^o(t,13)^o(t,22)}function l(t){return o(t,6)^o(t,11)^o(t,25)}function c(t){return o(t,7)^o(t,18)^s(t,3)}function d(t){return o(t,17)^o(t,19)^s(t,10)}var h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=new Array(64);return n(r,e),r.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},r.prototype._update=function(t){var e,n,r,o,s,p,f,m,y,g,v=this._w;e=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,s=0|this._e,p=0|this._f,f=0|this._g,m=0|this._h;for(var w=0;64>w;w++){var _=v[w]=16>w?t.readInt32BE(4*w):d(v[w-2])+v[w-7]+c(v[w-15])+v[w-16];y=m+l(s)+i(s,p,f)+h[w]+_,g=u(e)+a(e,n,r),m=f,f=p,p=s,s=o+y,o=r,r=n,n=e,e=y+g}this._a=e+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=p+this._f|0,this._g=f+this._g|0,this._h=m+this._h|0},r.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},r}},{util:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/util.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/sha.js/sha512.js":[function(t,e){var n=t("util").inherits;e.exports=function(t,e){function r(){this.init(),this._w=u,e.call(this,128,112)}function o(t,e,n){return t>>>n|e<<32-n}function s(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}var a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=new Array(160);return n(r,e),r.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},r.prototype._update=function(t){var e,n,r,u,l,c,d,h,p,f,m,y,g,v,w,_,b=this._w;e=0|this._a,n=0|this._b,r=0|this._c,u=0|this._d,l=0|this._e,c=0|this._f,d=0|this._g,h=0|this._h,p=0|this._al,f=0|this._bl,m=0|this._cl,y=0|this._dl,g=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl;for(var k=0;80>k;k++){var j,x,E=2*k;if(16>k)j=b[E]=t.readInt32BE(4*E),x=b[E+1]=t.readInt32BE(4*E+4);else{var T=b[E-30],S=b[E-30+1],A=o(T,S,1)^o(T,S,8)^T>>>7,P=o(S,T,1)^o(S,T,8)^o(S,T,7);T=b[E-4],S=b[E-4+1];var I=o(T,S,19)^o(S,T,29)^T>>>6,B=o(S,T,19)^o(T,S,29)^o(S,T,6),C=b[E-14],D=b[E-14+1],$=b[E-32],R=b[E-32+1];x=P+D,j=A+C+(P>>>0>x>>>0?1:0),x+=B,j=j+I+(B>>>0>x>>>0?1:0),x+=R,j=j+$+(R>>>0>x>>>0?1:0),b[E]=j,b[E+1]=x}var U=i(e,n,r),O=i(p,f,m),N=o(e,p,28)^o(p,e,2)^o(p,e,7),z=o(p,e,28)^o(e,p,2)^o(e,p,7),L=o(l,g,14)^o(l,g,18)^o(g,l,9),M=o(g,l,14)^o(g,l,18)^o(l,g,9),F=a[E],q=a[E+1],Y=s(l,c,d),H=s(g,v,w),V=_+M,J=h+L+(_>>>0>V>>>0?1:0);V+=H,J=J+Y+(H>>>0>V>>>0?1:0),V+=q,J=J+F+(q>>>0>V>>>0?1:0),V+=x,J=J+j+(x>>>0>V>>>0?1:0);var X=z+O,W=N+U+(z>>>0>X>>>0?1:0);h=d,_=w,d=c,w=v,c=l,v=g,g=y+V|0,l=u+J+(y>>>0>g>>>0?1:0)|0,u=r,y=m,r=n,m=f,n=e,f=p,p=V+X|0,e=J+W+(V>>>0>p>>>0?1:0)|0}this._al=this._al+p|0,this._bl=this._bl+f|0,this._cl=this._cl+m|0,this._dl=this._dl+y|0,this._el=this._el+g|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._a=this._a+e+(this._al>>>0<p>>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0<f>>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0<m>>>0?1:0)|0,this._d=this._d+u+(this._dl>>>0<y>>>0?1:0)|0,this._e=this._e+l+(this._el>>>0<g>>>0?1:0)|0,this._f=this._f+c+(this._fl>>>0<v>>>0?1:0)|0,this._g=this._g+d+(this._gl>>>0<w>>>0?1:0)|0,this._h=this._h+h+(this._hl>>>0<_>>>0?1:0)|0},r.prototype._hash=function(){function e(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},r}},{util:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/util.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/pbkdf2.js":[function(t,e){var n=t("pbkdf2-compat/pbkdf2");e.exports=function(t,e){e=e||{};var r=n(t);return e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync,e}},{"pbkdf2-compat/pbkdf2":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/node_modules/pbkdf2-compat/pbkdf2.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/rng.js":[function(t,e){(function(n,r){!function(){var o=("undefined"==typeof window?n:window)||{};_crypto=o.crypto||o.msCrypto||t("crypto"),e.exports=function(t){if(_crypto.getRandomValues){var e=new r(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{buffer:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/buffer/index.js",crypto:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/browser-resolve/empty.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/inherits/inherits_browser.js":[function(t,e){e.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/process/browser.js":[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/decode.js":[function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,o,s){e=e||"&",o=o||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var l=t.length;u>0&&l>u&&(l=u);for(var c=0;l>c;++c){var d,h,p,f,m=t[c].replace(a,"%20"),y=m.indexOf(o);y>=0?(d=m.substr(0,y),h=m.substr(y+1)):(d=m,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),n(i,p)?r(i[p])?i[p].push(f):i[p]=[i[p],f]:i[p]=f}return i};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/encode.js":[function(t,e){"use strict";function n(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,i,a){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?n(s(t),function(s){var a=encodeURIComponent(r(s))+i;return o(t[s])?n(t[s],function(t){return a+encodeURIComponent(r(t))}).join(e):a+encodeURIComponent(r(t[s]))}).join(e):a?encodeURIComponent(r(a))+i+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/index.js":[function(t,e,n){"use strict";n.decode=n.parse=t("./decode"),n.encode=n.stringify=t("./encode")},{"./decode":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/decode.js","./encode":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/encode.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/support/isBufferBrowser.js":[function(t,e){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/util.js":[function(t,e,n){(function(e,r){function o(t,e){var r={seen:[],stylize:i};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(e)?r.showHidden=e:e&&n._extend(r,e),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}function s(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function i(t){return t}function a(t){var e={};return t.forEach(function(t){e[t]=!0}),e}function u(t,e,r){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var o=e.inspect(r,t);return w(o)||(o=u(t,o,r)),o}var s=l(t,e);if(s)return s;var i=Object.keys(e),m=a(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(e)),E(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return c(e);if(0===i.length){if(T(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(k(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(x(e))return t.stylize(Date.prototype.toString.call(e),"date");if(E(e))return c(e)}var g="",v=!1,_=["{","}"];if(f(e)&&(v=!0,_=["[","]"]),T(e)){var b=e.name?": "+e.name:"";g=" [Function"+b+"]"}if(k(e)&&(g=" "+RegExp.prototype.toString.call(e)),x(e)&&(g=" "+Date.prototype.toUTCString.call(e)),E(e)&&(g=" "+c(e)),0===i.length&&(!v||0==e.length))return _[0]+g+_[1];if(0>r)return k(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var j;return j=v?d(t,e,r,m,i):i.map(function(n){return h(t,e,r,m,n,v)}),t.seen.pop(),p(j,g,_)}function l(t,e){if(b(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,o){for(var s=[],i=0,a=e.length;a>i;++i)s.push(B(e,String(i))?h(t,e,n,r,String(i),!0):"");return o.forEach(function(o){o.match(/^\d+$/)||s.push(h(t,e,n,r,o,!0))}),s}function h(t,e,n,r,o,s){var i,a,l;if(l=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},l.get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),B(r,o)||(i="["+o+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(n)?u(t,l.value,null):u(t,l.value,n-1),a.indexOf("\n")>-1&&(a=s?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),b(i)){if(s&&o.match(/^\d+$/))return a;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+a}function p(t,e,n){var r=0,o=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function f(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return null==t}function v(t){return"number"==typeof t}function w(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function b(t){return void 0===t}function k(t){return j(t)&&"[object RegExp]"===A(t)}function j(t){return"object"==typeof t&&null!==t}function x(t){return j(t)&&"[object Date]"===A(t)}function E(t){return j(t)&&("[object Error]"===A(t)||t instanceof Error)}function T(t){return"function"==typeof t}function S(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function A(t){return Object.prototype.toString.call(t)}function P(t){return 10>t?"0"+t.toString(10):t.toString(10)}function I(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),R[t.getMonth()],e].join(" ")}function B(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var C=/%[sdj%]/g;n.format=function(t){if(!w(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(o(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,s=r.length,i=String(t).replace(C,function(t){if("%%"===t)return"%";if(n>=s)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}}),a=r[n];s>n;a=r[++n])i+=y(a)||!j(a)?" "+a:" "+o(a);return i},n.deprecate=function(t,o){function s(){if(!i){if(e.throwDeprecation)throw new Error(o);e.traceDeprecation?console.trace(o):console.error(o),i=!0}return t.apply(this,arguments)}if(b(r.process))return function(){return n.deprecate(t,o).apply(this,arguments)};if(e.noDeprecation===!0)return t;var i=!1;return s};var D,$={};n.debuglog=function(t){if(b(D)&&(D=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!$[t])if(new RegExp("\\b"+t+"\\b","i").test(D)){var r=e.pid;$[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else $[t]=function(){};return $[t]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=m,n.isNull=y,n.isNullOrUndefined=g,n.isNumber=v,n.isString=w,n.isSymbol=_,n.isUndefined=b,n.isRegExp=k,n.isObject=j,n.isDate=x,n.isError=E,n.isFunction=T,n.isPrimitive=S,n.isBuffer=t("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",I(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!j(e))return t;
for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/util/support/isBufferBrowser.js",_process:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/process/browser.js",inherits:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/inherits/inherits_browser.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js":[function(t,e,n){"use strict";function r(t){return null!=t&&""!==t}function o(t){return Array.isArray(t)?t.map(o).filter(r).join(" "):t}n.merge=function s(t,e){if(1===arguments.length){for(var n=t[0],o=1;o<t.length;o++)n=s(n,t[o]);return n}var i=t["class"],a=e["class"];(i||a)&&(i=i||[],a=a||[],Array.isArray(i)||(i=[i]),Array.isArray(a)||(a=[a]),t["class"]=i.concat(a).filter(r));for(var u in e)"class"!=u&&(t[u]=e[u]);return t},n.joinClasses=o,n.cls=function(t,e){for(var r=[],s=0;s<t.length;s++)r.push(e&&e[s]?n.escape(o([t[s]])):o(t[s]));var i=o(r);return i.length?' class="'+i+'"':""},n.attr=function(t,e,r,o){return"boolean"==typeof e||null==e?e?" "+(o?t:t+'="'+t+'"'):"":0==t.indexOf("data")&&"string"!=typeof e?" "+t+"='"+JSON.stringify(e).replace(/'/g,"'")+"'":r?" "+t+'="'+n.escape(e)+'"':" "+t+'="'+e+'"'},n.attrs=function(t,e){var r=[],s=Object.keys(t);if(s.length)for(var i=0;i<s.length;++i){var a=s[i],u=t[a];"class"==a?(u=o(u))&&r.push(" "+a+'="'+u+'"'):r.push(n.attr(a,u,!1,e))}return r.join("")},n.escape=function(t){var e=String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");return e===""+t?t:e},n.rethrow=function i(e,n,r,o){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&n||o))throw e.message+=" on line "+r,e;try{o=o||t("fs").readFileSync(n,"utf8")}catch(s){i(e,null,r)}var a=3,u=o.split("\n"),l=Math.max(r-a,0),c=Math.min(u.length,r+a),a=u.slice(l,c).map(function(t,e){var n=e+l+1;return(n==r?" > ":" ")+n+"| "+t}).join("\n");throw e.path=n,e.message=(n||"Jade")+":"+r+"\n"+a+"\n\n"+e.message,e}},{fs:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js"}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/sortablejs/Sortable.js":[function(t,e){!function(t){"use strict";"function"==typeof define&&define.amd?define(t):"undefined"!=typeof e&&"undefined"!=typeof e.exports?e.exports=t():"undefined"!=typeof Package?Sortable=t():window.Sortable=t()}(function(){"use strict";function t(t,e){this.el=t,this.options=e=e||{};var r={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",ignore:"a, img",filter:null,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1};for(var o in r)!(o in e)&&(e[o]=r[o]);var i=e.group;i&&"object"==typeof i||(i=e.group={name:i}),["pull","put"].forEach(function(t){t in i||(i[t]=!0)}),N.forEach(function(r){e[r]=n(this,e[r]||z),s(t,r.substr(2).toLowerCase(),e[r])},this),e.groups=" "+i.name+(i.put.join?" "+i.put.join(" "):"")+" ",t[B]=e;for(var a in this)"_"===a.charAt(0)&&(this[a]=n(this,this[a]));s(t,"mousedown",this._onTapStart),s(t,"touchstart",this._onTapStart),s(t,"dragover",this),s(t,"dragenter",this),F.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function e(t){v&&v.state!==t&&(u(v,"display",t?"none":""),!t&&v.state&&w.insertBefore(v,y),v.state=t)}function n(t,e){var n=M.call(arguments,2);return e.bind?e.bind.apply(e,[t].concat(n)):function(){return e.apply(t,n.concat(M.call(arguments)))}}function r(t,e,n){if(t){n=n||D,e=e.split(".");var r=e.shift().toUpperCase(),o=new RegExp("\\s("+e.join("|")+")\\s","g");do if(">*"===r&&t.parentNode===n||(""===r||t.nodeName.toUpperCase()==r)&&(!e.length||((" "+t.className+" ").match(o)||[]).length==e.length))return t;while(t!==n&&(t=t.parentNode))}return null}function o(t){t.dataTransfer.dropEffect="move",t.preventDefault()}function s(t,e,n){t.addEventListener(e,n,!1)}function i(t,e,n){t.removeEventListener(e,n,!1)}function a(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(/\s+/g," ").replace(" "+e+" ","");t.className=r+(n?" "+e:"")}}function u(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return D.defaultView&&D.defaultView.getComputedStyle?n=D.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function l(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,s=r.length;if(n)for(;s>o;o++)n(r[o],o);return r}return[]}function c(t){t.draggable=!1}function d(){U=!1}function h(t,e){var n=t.lastElementChild,r=n.getBoundingClientRect();return e.clientY-(r.top+r.height)>5&&n}function p(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function f(t){for(var e=0;t&&(t=t.previousElementSibling);)"TEMPLATE"!==t.nodeName.toUpperCase()&&e++;return e}function m(t,e){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?t.call(r,n[0]):t.apply(r,n),n=void 0},e))}}var y,g,v,w,_,b,k,j,x,E,T,S,A,P,I={},B="Sortable"+(new Date).getTime(),C=window,D=C.document,$=C.parseInt,R=!!("draggable"in D.createElement("div")),U=!1,O=function(t,e,n,r,o,s){var i=D.createEvent("Event");i.initEvent(e,!0,!0),i.item=n||t,i.from=r||t,i.clone=v,i.oldIndex=o,i.newIndex=s,t.dispatchEvent(i)},N="onAdd onUpdate onRemove onStart onEnd onFilter onSort".split(" "),z=function(){},L=Math.abs,M=[].slice,F=[],q=m(function(t,e,n){if(n&&e.scroll){var r,o,s,i,a=e.scrollSensitivity,u=e.scrollSpeed,l=t.clientX,c=t.clientY,d=window.innerWidth,h=window.innerHeight;if(k!==n&&(b=e.scroll,k=n,b===!0)){b=n;do if(b.offsetWidth<b.scrollWidth||b.offsetHeight<b.scrollHeight)break;while(b=b.parentNode)}b&&(r=b,o=b.getBoundingClientRect(),s=(L(o.right-l)<=a)-(L(o.left-l)<=a),i=(L(o.bottom-c)<=a)-(L(o.top-c)<=a)),s||i||(s=(a>=d-l)-(a>=l),i=(a>=h-c)-(a>=c),(s||i)&&(r=C)),(I.vx!==s||I.vy!==i||I.el!==r)&&(I.el=r,I.vx=s,I.vy=i,clearInterval(I.pid),r&&(I.pid=setInterval(function(){r===C?C.scrollTo(C.scrollX+s*u,C.scrollY+i*u):(i&&(r.scrollTop+=i*u),s&&(r.scrollLeft+=s*u))},24)))}},30);return t.prototype={constructor:t,_dragStarted:function(){w&&y&&(a(y,this.options.ghostClass,!0),t.active=this,O(w,"start",y,w,E))},_onTapStart:function(t){var e=t.type,n=t.touches&&t.touches[0],o=(n||t).target,i=o,a=this.options,u=this.el,d=a.filter;if(!("mousedown"===e&&0!==t.button||a.disabled)&&(o=r(o,a.draggable,u))){if(E=f(o),"function"==typeof d){if(d.call(this,t,o,this))return O(i,"filter",o,u,E),void t.preventDefault()}else if(d&&(d=d.split(",").some(function(t){return t=r(i,t.trim(),u),t?(O(t,"filter",o,u,E),!0):void 0})))return void t.preventDefault();if((!a.handle||r(i,a.handle,u))&&o&&!y&&o.parentNode===u){A=t,w=this.el,y=o,_=y.nextSibling,S=this.options.group,y.draggable=!0,a.ignore.split(",").forEach(function(t){l(o,t.trim(),c)}),n&&(A={target:o,clientX:n.clientX,clientY:n.clientY},this._onDragStart(A,"touch"),t.preventDefault()),s(D,"mouseup",this._onDrop),s(D,"touchend",this._onDrop),s(D,"touchcancel",this._onDrop),s(y,"dragend",this),s(w,"dragstart",this._onDragStart),R||this._onDragStart(A,!0);try{D.selection?D.selection.empty():window.getSelection().removeAllRanges()}catch(h){}}}},_emulateDragOver:function(){if(P){u(g,"display","none");var t=D.elementFromPoint(P.clientX,P.clientY),e=t,n=" "+this.options.group.name,r=F.length;if(e)do{if(e[B]&&e[B].groups.indexOf(n)>-1){for(;r--;)F[r]({clientX:P.clientX,clientY:P.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);u(g,"display","")}},_onTouchMove:function(t){if(A){var e=t.touches?t.touches[0]:t,n=e.clientX-A.clientX,r=e.clientY-A.clientY,o=t.touches?"translate3d("+n+"px,"+r+"px,0)":"translate("+n+"px,"+r+"px)";P=e,u(g,"webkitTransform",o),u(g,"mozTransform",o),u(g,"msTransform",o),u(g,"transform",o),t.preventDefault()}},_onDragStart:function(t,e){var n=t.dataTransfer,r=this.options;if(this._offUpEvents(),"clone"==S.pull&&(v=y.cloneNode(!0),u(v,"display","none"),w.insertBefore(v,y)),e){var o,i=y.getBoundingClientRect(),a=u(y);g=y.cloneNode(!0),u(g,"top",i.top-$(a.marginTop,10)),u(g,"left",i.left-$(a.marginLeft,10)),u(g,"width",i.width),u(g,"height",i.height),u(g,"opacity","0.8"),u(g,"position","fixed"),u(g,"zIndex","100000"),w.appendChild(g),o=g.getBoundingClientRect(),u(g,"width",2*i.width-o.width),u(g,"height",2*i.height-o.height),"touch"===e?(s(D,"touchmove",this._onTouchMove),s(D,"touchend",this._onDrop),s(D,"touchcancel",this._onDrop)):(s(D,"mousemove",this._onTouchMove),s(D,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,150)}else n&&(n.effectAllowed="move",r.setData&&r.setData.call(this,n,y)),s(D,"drop",this);setTimeout(this._dragStarted,0)},_onDragOver:function(t){var n,o,s,i=this.el,a=this.options,l=a.group,c=l.put,p=S===l,f=a.sort;if(y&&(void 0!==t.preventDefault&&(t.preventDefault(),!a.dragoverBubble&&t.stopPropagation()),S&&!a.disabled&&(p?f||(s=!w.contains(y)):S.pull&&c&&(S.name===l.name||c.indexOf&&~c.indexOf(S.name)))&&(void 0===t.rootEl||t.rootEl===this.el))){if(q(t,a,this.el),U)return;if(n=r(t.target,a.draggable,i),o=y.getBoundingClientRect(),s)return e(!0),void(v||_?w.insertBefore(y,v||_):f||w.appendChild(y));if(0===i.children.length||i.children[0]===g||i===t.target&&(n=h(i,t))){if(n){if(n.animated)return;b=n.getBoundingClientRect()}e(p),i.appendChild(y),this._animate(o,y),n&&this._animate(b,n)}else if(n&&!n.animated&&n!==y&&void 0!==n.parentNode[B]){j!==n&&(j=n,x=u(n));var m,b=n.getBoundingClientRect(),k=b.right-b.left,E=b.bottom-b.top,T=/left|right|inline/.test(x.cssFloat+x.display),A=n.offsetWidth>y.offsetWidth,P=n.offsetHeight>y.offsetHeight,I=(T?(t.clientX-b.left)/k:(t.clientY-b.top)/E)>.5,C=n.nextElementSibling;U=!0,setTimeout(d,30),e(p),m=T?n.previousElementSibling===y&&!A||I&&A:C!==y&&!P||I&&P,m&&!C?i.appendChild(y):n.parentNode.insertBefore(y,m?C:n),this._animate(o,y),this._animate(b,n)}}},_animate:function(t,e){var n=this.options.animation;if(n){var r=e.getBoundingClientRect();u(e,"transition","none"),u(e,"transform","translate3d("+(t.left-r.left)+"px,"+(t.top-r.top)+"px,0)"),e.offsetWidth,u(e,"transition","all "+n+"ms"),u(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=setTimeout(function(){u(e,"transition",""),u(e,"transform",""),e.animated=!1},n)}},_offUpEvents:function(){i(D,"mouseup",this._onDrop),i(D,"touchmove",this._onTouchMove),i(D,"touchend",this._onDrop),i(D,"touchcancel",this._onDrop)},_onDrop:function(e){var n=this.el,r=this.options;clearInterval(this._loopId),clearInterval(I.pid),i(D,"drop",this),i(D,"mousemove",this._onTouchMove),i(n,"dragstart",this._onDragStart),this._offUpEvents(),e&&(e.preventDefault(),!r.dropBubble&&e.stopPropagation(),g&&g.parentNode.removeChild(g),y&&(i(y,"dragend",this),c(y),a(y,this.options.ghostClass,!1),w!==y.parentNode?(T=f(y),O(y.parentNode,"sort",y,w,E,T),O(w,"sort",y,w,E,T),O(y,"add",y,w,E,T),O(w,"remove",y,w,E,T)):(v&&v.parentNode.removeChild(v),y.nextSibling!==_&&(T=f(y),O(w,"update",y,w,E,T),O(w,"sort",y,w,E,T))),t.active&&O(w,"end",y,w,E,T)),w=y=g=_=v=b=k=A=P=j=x=S=t.active=null,this.save())},handleEvent:function(t){var e=t.type;"dragover"===e||"dragenter"===e?(this._onDragOver(t),o(t)):("drop"===e||"dragend"===e)&&this._onDrop(t)},toArray:function(){for(var t,e=[],n=this.el.children,o=0,s=n.length;s>o;o++)t=n[o],r(t,this.options.draggable,this.el)&&e.push(t.getAttribute("data-id")||p(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,o){var s=n.children[o];r(s,this.options.draggable,n)&&(e[t]=s)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return r(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;return void 0===e?n[t]:void(n[t]=e)},destroy:function(){var t=this.el,e=this.options;N.forEach(function(n){i(t,n.substr(2).toLowerCase(),e[n])}),i(t,"mousedown",this._onTapStart),i(t,"touchstart",this._onTapStart),i(t,"dragover",this),i(t,"dragenter",this),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),F.splice(F.indexOf(this._onDragOver),1),this._onDrop(),this.el=null}},t.utils={on:s,off:i,css:u,find:l,bind:n,is:function(t,e){return!!r(t,e,t)},throttle:m,closest:r,toggleClass:a,dispatchEvent:O,index:f},t.version="1.1.1",t.create=function(e,n){return new t(e,n)},t})},{}],"/home/donnees/workspaces/soundcloud-playlist/node_modules/store/store.js":[function(t,e){!function(t){function n(){try{return a in t&&t[a]}catch(e){return!1}}function r(t){return t.replace(/^d/,"___$&").replace(p,"___")}var o,s={},i=t.document,a="localStorage",u="script";if(s.disabled=!1,s.version="1.3.17",s.set=function(){},s.get=function(){},s.has=function(t){return void 0!==s.get(t)},s.remove=function(){},s.clear=function(){},s.transact=function(t,e,n){null==n&&(n=e,e=null),null==e&&(e={});var r=s.get(t,e);n(r),s.set(t,r)},s.getAll=function(){},s.forEach=function(){},s.serialize=function(t){return JSON.stringify(t)},s.deserialize=function(t){if("string"!=typeof t)return void 0;try{return JSON.parse(t)}catch(e){return t||void 0}},n())o=t[a],s.set=function(t,e){return void 0===e?s.remove(t):(o.setItem(t,s.serialize(e)),e)},s.get=function(t,e){var n=s.deserialize(o.getItem(t));return void 0===n?e:n},s.remove=function(t){o.removeItem(t)},s.clear=function(){o.clear()},s.getAll=function(){var t={};return s.forEach(function(e,n){t[e]=n}),t},s.forEach=function(t){for(var e=0;e<o.length;e++){var n=o.key(e);t(n,s.get(n))}};else if(i.documentElement.addBehavior){var l,c;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+u+">document.w=window</"+u+'><iframe src="/favicon.ico"></iframe>'),c.close(),l=c.w.frames[0].document,o=l.createElement("div")}catch(d){o=i.createElement("div"),l=i.body}var h=function(t){return function(){var e=Array.prototype.slice.call(arguments,0);e.unshift(o),l.appendChild(o),o.addBehavior("#default#userData"),o.load(a);var n=t.apply(s,e);return l.removeChild(o),n}},p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");s.set=h(function(t,e,n){return e=r(e),void 0===n?s.remove(e):(t.setAttribute(e,s.serialize(n)),t.save(a),n)}),s.get=h(function(t,e,n){e=r(e);var o=s.deserialize(t.getAttribute(e));return void 0===o?n:o}),s.remove=h(function(t,e){e=r(e),t.removeAttribute(e),t.save(a)}),s.clear=h(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(a);for(var n,r=0;n=e[r];r++)t.removeAttribute(n.name);t.save(a)}),s.getAll=function(){var t={};return s.forEach(function(e,n){t[e]=n}),t},s.forEach=h(function(t,e){for(var n,r=t.XMLDocument.documentElement.attributes,o=0;n=r[o];++o)e(n.name,s.deserialize(t.getAttribute(n.name)))})}try{var f="__storejs__";s.set(f,f),s.get(f)!=f&&(s.disabled=!0),s.remove(f)}catch(d){s.disabled=!0}s.enabled=!s.disabled,"undefined"!=typeof e&&e.exports&&this.module!==e?e.exports=s:"function"==typeof define&&define.amd?define(s):t.store=s}(Function("return this")())},{}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/controls/index.coffee":[function(t,e){var n,r,o,s,i,a={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=t("bamjs/view"),s=t("ipc"),o=t("../../modules/format-time"),i=t("./index.jade"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.namespace="controls",e.prototype.events={"click .controls-title":"clickTitle","click [data-button=prev]":"clickPrev","click [data-button=play]":"clickPlay","click [data-button=next]":"clickNext","click [data-button=shuffle]":"clickShuffle","input .controls-timeline-slider input":"inputTimelineSlider","click [data-button=volume]":"clickVolume","input .controls-volume-slider input":"inputVolumeSlider"},e.prototype.initialize=function(){var t;return this.$el.html(i()),this.$title=this.$(".controls-title"),this.timelineSlider=this.$(".controls-timeline-slider input").get(0),this.$timelineCurrent=this.$(".controls-timeline-current"),this.$timelineDuration=this.$(".controls-timeline-duration"),this.$volume=this.$("[data-button=volume]"),this.volumeSlider=this.$(".controls-volume-slider input").get(0),this.root().$audio=this.$audio=this.$("audio"),this.root().audio=this.audio=this.$audio.get(0),t=["ended","progress","timeupdate"],t.forEach(function(t){return function(e){return t.$audio.on(e,function(n){return t.root().trigger("audio:"+e,n)})}}(this)),this.listenTo(this.root(),"tracks:set",this.setCurrent),this.listenTo(this.root(),"audio:ended",this.nextTrack),this.listenTo(this.root(),"audio:play",this.play),this.listenTo(this.root(),"audio:pause",this.pause),this.listenTo(this.root(),"audio:seek",this.seek),this.listenTo(this.root(),"audio:timeupdate",this.timeupdate),this.listenTo(this.root(),"keydown",this.keydown),s.on?(s.on("togglePlay",this.togglePlay),s.on("stop",this.pause),s.on("nextTrack",this.nextTrack),s.on("previousTrack",this.prevTrack)):void 0},e.prototype.goTo=function(t){var e;return this.$title.text(this.currentTrack.getTitle()),e=t||!this.audio.paused,this.$audio.one("canplaythrough",function(t){return function(){return t.seek(t.currentTrack.getCurrentTime())}}(this)),this.$audio.attr("src",this.currentTrack.getSrc()),e?this.audio.play():void 0},e.prototype.togglePlay=function(){return this.root().trigger(this.audio.paused?"audio:play":"audio:pause")},e.prototype.prevTrack=function(){var t;return t=this.currentTrack.getPreviousVisibleTrack(),t||(t=this.currentTrack.collection().last()),this.root().trigger("tracks:set",t)},e.prototype.nextTrack=function(t){var e;return null==t&&(t={}),e=this.currentTrack.getNextVisibleTrack(),e||(e=this.currentTrack.collection().first()),this.root().trigger("tracks:set",e,"ended"===t.type)},e.prototype.shuffleTracks=function(){return this.root().trigger("playlist:shuffle"),this.$currentTrack=this.currentTrack.$el},e.prototype.addSeconds=function(t){return this.audio.currentTime+=t},e.prototype.currentVolume=1,e.prototype.changeVolume=function(t){switch("toggle"===t||0===t?(t=0===this.audio.volume?this.currentVolume:0,this.volumeSlider.value=100*t):this.currentVolume=t,this.audio.volume=t,t){case 1:return this.$volume.attr("data-state","max");case 0:return this.$volume.attr("data-state","mute");default:return this.$volume.attr("data-state",null)}},e.prototype.setCurrent=function(t,e){var n;return this.$el.removeClass("init"),this.currentTrack!==t?(this.root().currentTrack=this.currentTrack=t,t?(this.$currentTrack=t.$el,t.set("startPlaying",Date.parse((new Date).toUTCString())),n=t.getDuration(),this.scrobbleIn=3e4>n?1/0:Math.min(n/2/1e3,240),this.currentTime=null,this.root().trigger("lastfm:nowPlaying",t),this.timelineSlider.max=Math.round(n/1e3),this.$timelineDuration.text(t.getDuration("mm:ss")),this.goTo(e)):void(this.audio.src="")):void 0},e.prototype.play=function(){return this.$el.addClass("playing"),this.audio.play()},e.prototype.pause=function(){return this.$el.removeClass("playing"),this.audio.pause()},e.prototype.seek=function(t){return this.audio.currentTime=t,this.currentTime=this.audio.currentTime},e.prototype.timeupdate=function(){var t;return t=this.audio.currentTime,null===this.currentTime?this.currentTime=t:(this.scrobbleIn-=t-this.currentTime,this.currentTime=t),this.scrobbleIn<=0&&(this.scrobbleIn=1/0,this.root().trigger("lastfm:scrobble",this.currentTrack)),this.$timelineCurrent.text(o(1e3*t,"mm:ss")),this.timelineSlider.value=t,this.currentTrack.set("currentTime",t)},e.prototype.keydown=function(t){return $("input:focus").length?void 0:32===t.keyCode&&0===$(":focus:not(.track-play)").length?(t.preventDefault(),this.togglePlay()):74===t.keyCode||t.ctrlKey&&37===t.keyCode?this.prevTrack():75===t.keyCode||t.ctrlKey&&39===t.keyCode?this.nextTrack():t.shiftKey&&37===t.keyCode?this.addSeconds(-5):t.shiftKey&&39===t.keyCode?this.addSeconds(5):void 0},e.prototype.clickTitle=function(t){return t.preventDefault(),$("html, body").animate({scrollTop:this.$currentTrack.offset().top-10},300)},e.prototype.clickPrev=function(){return this.prevTrack()},e.prototype.clickPlay=function(){return this.togglePlay()},e.prototype.clickNext=function(t){return this.nextTrack(t)},e.prototype.clickShuffle=function(){return this.shuffleTracks()},e.prototype.inputTimelineSlider=function(t){return this.seek(t.currentTarget.value)},e.prototype.clickVolume=function(){return this.changeVolume("toggle")},e.prototype.inputVolumeSlider=function(t){return this.changeVolume(t.currentTarget.value/100)},e}(r),e.exports=n},{"../../modules/format-time":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/format-time/index.coffee","./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/controls/index.jade","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js",ipc:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/lib/_empty.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/controls/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/controls/index.jade"}];try{var r=[],o=t||{};return function(){r.push("<audio>"),r.push("</audio>"),r.push('<div class="controls-buttons">'),r.push('<button data-button="prev">'),r.push("</button>"),r.push('<button data-button="play">'),r.push("</button>"),r.push('<button data-button="next">'),r.push("</button>"),r.push('<button data-button="shuffle">'),r.push("</button>"),r.push("</div>"),r.push('<div class="controls-timeline">'),r.push('<div class="controls-timeline-current">'),r.push("</div>"),r.push('<div class="controls-timeline-slider">'),r.push('<input type="range" max="100" value="0"/>'),r.push("</div>"),r.push('<div class="controls-timeline-duration">'),r.push("</div>"),r.push("</div>"),r.push('<div class="controls-volume">'),r.push('<button data-button="volume" data-state="max">'),r.push("</button>"),r.push('<div class="controls-volume-slider">'),r.push('<input type="range" max="100" value="100"/>'),r.push("</div>"),r.push("</div>"),r.push('<a href="#" class="controls-title">'),r.push("</a>")}.call(this,"undefined"in o?o.undefined:void 0),r.join("")}catch(s){n.rethrow(s,e[0].filename,e[0].lineno,"audio\n.controls-buttons\n button(data-button='prev')\n button(data-button='play')\n button(data-button='next')\n button(data-button='shuffle')\n.controls-timeline\n .controls-timeline-current\n .controls-timeline-slider\n input(type='range', max=100, value=0)\n .controls-timeline-duration\n.controls-volume\n button(data-button='volume', data-state='max')\n .controls-volume-slider\n input(type='range', max=100, value=100)\na.controls-title(href='#')")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/filter/index.coffee":[function(t,e){var n,r,o,s={}.hasOwnProperty,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=t("bamjs/view"),o=t("./index.jade"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.namespace="filter-form",e.prototype.events={"input input":"input",submit:"submit"},e.prototype.initialize=function(){return this.$el.html(o())},e.prototype.input=function(){var t;return t=this.$("input").val(),this.root().trigger("playlist:filter",t)},e.prototype.submit=function(t){return t.preventDefault()},e}(r),e.exports=n},{"./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/filter/index.jade","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/filter/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(){var t=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/filter/index.jade"}];try{var e=[];return e.push('<input placeholder="Filter tracks"/>'),e.join("")}catch(r){n.rethrow(r,t[0].filename,t[0].lineno,"input(placeholder='Filter tracks')\n")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/index.coffee":[function(t,e){var n,r,o,s,i,a={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=t("bamjs/view"),o=t("./playlists"),n=t("./filter"),i=t("./index.jade"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.namespace="forms",e.prototype.initialize=function(){return this.$el.html(i()),this.playlistsForm=new o({el:this.$(".playlists-form"),parent:this}),this.filterForm=new n({el:this.$(".filter-form"),parent:this})},e}(s),e.exports=r},{"./filter":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/filter/index.coffee","./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/index.jade","./playlists":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/playlists/index.coffee","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/index.jade"}];try{var r=[],o=t||{};return function(){r.push('<form class="playlists-form">'),r.push("</form>"),r.push('<form class="filter-form">'),r.push("</form>")}.call(this,"undefined"in o?o.undefined:void 0),r.join("")}catch(s){n.rethrow(s,e[0].filename,e[0].lineno,"form.playlists-form\nform.filter-form")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/playlists/index.coffee":[function(t,e){var n,r,o,s,i,a={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=t("bamjs/view"),o=t("../../../modules/api"),s=t("../../../modules/soundcloud-url-data"),i=t("./index.jade"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.namespace="playlist-form",e.prototype.events={submit:"submit","click [data-link=delete]":"clickDelete"},e.prototype.initialize=function(){var t,e,n;return n=this.root().user.getUser(),t=this.root().user.getPlaylist(),e=n,t&&(e+="/"+t),this.$el.html(i({url:e})),this.setPlaylist(e)},e.prototype.setPlaylist=function(t){return this.root().user.setUrl(t),this.getData(t)},e.prototype.getPlaylist=function(t){return o.getPlaylist(t).done(function(t){return function(e){return t.root().trigger("playlist:new",e)}}(this)).fail(function(t){return function(e,n,r){return t.showRequestError(e,n,r,"playlist")}}(this))},e.prototype.getPlaylists=function(t){return o.getPlaylists(t).then(function(t){return function(e){var n,r,o,s;if(0===e.length)return(new $.Deferred).reject(null,null,"No playlists").promise();for(s=[],r=0,o=e.length;o>r;r++)n=e[r],s.push(confirm("Add playlist «"+n.title+"» ?")?t.root().trigger("playlist:new",n):void 0);return s}}(this)).fail(function(t){return function(e,n,r){return t.showRequestError(e,n,r,"user")}}(this))},e.prototype.showRequestError=function(t,e,n,r){return alert("Error while getting "+r+': "'+n+'"'),console.error("Results of the fail request:"),console.log("jqXHR",t),console.log("textStatus",e),console.log("errorThrown",n)},e.prototype.getData=function(t){var e,n,r;return r=s.getData(t),n=r.user,e=r.playlist,t=s.getUrl(n,e),e?this.getPlaylist(t):this.getPlaylists(t)},e.prototype.submit=function(t){var e;return t.preventDefault(),e=this.$("input").val(),this.setPlaylist(e)},e.prototype.clickDelete=function(){return confirm("Do you really want to remove all the tracks ?")?this.root().trigger("tracks:reset"):void 0},e}(r),e.exports=n},{"../../../modules/api":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/api/index.coffee","../../../modules/soundcloud-url-data":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/soundcloud-url-data/index.coffee","./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/playlists/index.jade","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/playlists/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/playlists/index.jade"}];try{var r=[],o=t||{};return function(t){r.push('<input type="url"'+n.attr("value",t,!0,!1)+' placeholder="Soundcloud playlist or user, e.g: calvein/mixtapes" formnovalidate="formnovalidate"/>'),r.push('<a href="#" data-link="delete" title="Remove all tracks">'),r.push("×"),r.push("</a>")}.call(this,"url"in o?o.url:"undefined"!=typeof url?url:void 0,"undefined"in o?o.undefined:void 0),r.join("")}catch(s){n.rethrow(s,e[0].filename,e[0].lineno,"input(\n type='url'\n value=url\n placeholder='Soundcloud playlist or user, e.g: calvein/mixtapes'\n formnovalidate\n)\na(\n href='#'\n data-link='delete'\n title='Remove all tracks'\n) ×")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/lastfm/index.coffee":[function(t,e){var n,r,o,s,i,a,u,l,c={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)c.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n="98b4474b8d6ab99941c1edc1441478cd",o=t("bamjs/view"),a=t("querystring"),l=t("../../modules/lastfm"),i=l.getLastFmQuery,s=l.createParams,u=t("./index.jade"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.namespace="lastfm",e.prototype.events={"click [data-dropdown]":"clickDropdown","change [data-private]":"changePrivate","click [data-disconnect]":"clickDisconnect"},e.prototype.initialize=function(){var t;return t=a.parse(location.search.slice(1)).token,t?this.renderConnecting(t):this.model.get("sk")?this.render():this.renderNotConnected()},e.prototype.render=function(){return this.$el.html(u({user:this.model})),this.$dropdownTrigger=this.$("[data-dropdown]"),this.$dropdown=this.$(".dropdown"),this.listenTo(this.root(),"lastfm:nowPlaying",this.nowPlaying),this.listenTo(this.root(),"lastfm:scrobble",this.scrobble)},e.prototype.renderConnecting=function(t){var e;return this.model.set("token",t),e={method:"auth.getSession",token:t,api_key:n},i(e).done(function(t){return function(e){return t.model.set("name",e.session.name),t.model.set("sk",e.session.key),t.render()}}(this))},e.prototype.renderNotConnected=function(){var t,e;
return e={api_key:n,cb:location.href},t="http://www.last.fm/api/auth/?",t+=s(e,"&","="),this.$el.html(u({connectUrl:t}))},e.prototype.nowPlaying=function(t){var e;if(!this.isPrivate)return e={method:"track.updateNowPlaying",artist:t.getUsername(),track:t.getTitle(),duration:t.getDuration("s"),api_key:n,sk:this.model.get("sk")},i(e)},e.prototype.scrobble=function(t){var e;if(!this.isPrivate)return e={method:"track.scrobble",artist:t.getUsername(),track:t.getTitle(),timestamp:t.getStartPlaying("s"),duration:t.getDuration("s"),api_key:n,sk:this.model.get("sk")},i(e)},e.prototype.openDropdown=function(){return this.$dropdown.addClass("open"),$(document).on("click.dropdown",function(t){return function(e){var n;return n=e.target,n===t.$dropdownTrigger.get(0)||n===t.$dropdown.get(0)||t.$dropdown.get(0).contains(n)?void 0:t.closeDropdown()}}(this))},e.prototype.closeDropdown=function(){return this.$dropdown.removeClass("open")},e.prototype.clickDropdown=function(t){return t.preventDefault(),this.$dropdown.hasClass("open")?this.closeDropdown():this.openDropdown()},e.prototype.changePrivate=function(){return this.isPrivate=!this.isPrivate},e.prototype.clickDisconnect=function(t){return t.preventDefault(),this.model.set("sk",null),this.renderNotConnected()},e}(o),e.exports=r},{"../../modules/lastfm":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/lastfm/index.coffee","./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/lastfm/index.jade","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js",querystring:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/querystring-es3/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/lastfm/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/lastfm/index.jade"}];try{var r,o=[],s=t||{};return function(t,e,s){t?(o.push('<a href="#" data-dropdown="data-dropdown">'+n.escape(null==(r=t.get("name"))?"":r)),o.push("</a>"),o.push('<div class="dropdown">'),o.push("<label>"),o.push("Private mode"),o.push('<input type="checkbox" data-private="data-private"/>'),o.push("</label>"),o.push('<a href="#" data-disconnect="data-disconnect">'),o.push("Disconnect"),o.push("</a>"),o.push("</div>")):(o.push("<a"+n.attr("href",s,!0,!1)+' class="lastfm-connect">'),o.push("last.fm"),o.push("</a>"))}.call(this,"user"in s?s.user:"undefined"!=typeof user?user:void 0,"undefined"in s?s.undefined:void 0,"connectUrl"in s?s.connectUrl:"undefined"!=typeof connectUrl?connectUrl:void 0),o.join("")}catch(i){n.rethrow(i,e[0].filename,e[0].lineno,"if user\n a(href='#', data-dropdown)= user.get('name')\n .dropdown\n label Private mode\n input(type='checkbox', data-private)\n a(href='#', data-disconnect) Disconnect\nelse\n a(href=connectUrl).lastfm-connect last.fm")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/tracks/index.coffee":[function(t,e){var n,r,o,s,i,a,u,l={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=t("bamjs/view"),n=t("sortablejs"),i=t("../waveform"),a=t("bamjs/underscore").shuffle,o=t("../../models/tracks"),u=t("./index.jade"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.namespace="tracks",e.prototype.events={"click .track-play":"clickTrackPlay","click [data-link=delete]":"clickTrackDelete"},e.prototype.initialize=function(){return this.tracks=new o,this.listenTo(this.root(),"tracks:set",this.setCurrent),this.listenTo(this.root(),"tracks:reset",this.deleteAllTracks),this.listenTo(this.root(),"playlist:new",this.showPlaylist),this.listenTo(this.root(),"playlist:shuffle",this.shuffleTracks),this.listenTo(this.root(),"playlist:filter",this.filterTracks),this.listenTo(this.root(),"audio:timeupdate",this.audioTimeupdate),this.listenTo(this.root(),"audio:progress",this.audioProgress),this.listenTo(this.root(),"audio:play",this.play),this.listenTo(this.root(),"audio:pause",this.pause),this.listenTo(this.root(),"resize",this.resize)},e.prototype.showTracks=function(t){var e,r,o,s,a,l,c;for(this.$el.html(u({tracks:t})),r=this.$(".track"),setTimeout(function(){return r.removeClass("showing")}),s=l=0,c=r.length;c>l;s=++l)o=r[s],e=$(o),a=this.tracks.get(e.data("track")),a.$el=e,e.data("track",a),a.waveform=new i({el:$(".track-waveform",o),model:a,parent:this});return this.sortable=n.create(this.el,{animation:100,onStart:function(t){return function(){return t.$el.addClass("sorting")}}(this),onEnd:function(t){return function(){return t.$el.removeClass("sorting")}}(this)}),this.resize()},e.prototype.setLayout=function(){var t,e,n,r,o;for(t=this.tracks.getVisibleTracks().map(function(t){return t.$el.detach()}),o=[],n=0,r=t.length;r>n;n++)e=t[n],o.push(this.$el.append(e));return o},e.prototype.setCurrent=function(t){return t&&this.currentTrack!==t?(this.currentTrack=t,t.$el.addClass("active").siblings(".active").removeClass("active"),this.$(".playing").removeClass("playing"),this.root().audio.paused?void 0:t.$el.addClass("playing")):void 0},e.prototype.showPlaylist=function(t){return this.tracks.add(t.tracks.reverse(),{parse:!0,at:0}),this.showTracks(this.tracks.models),this.currentTrack?void 0:this.root().trigger("tracks:set",this.tracks.first())},e.prototype.shuffleTracks=function(){return this.tracks.remove(this.currentTrack.id),this.tracks.models=this.tracks.shuffle(),this.tracks.unshift(this.currentTrack),this.setLayout(),$("html, body").animate({scrollTop:0},300)},e.prototype.filterTracks=function(t){var e,n,r,o,s,i,a,u,l;for(o=new RegExp(t,"i"),u=this.tracks.models,l=[],i=0,a=u.length;a>i;i++)s=u[i],e=o.test(s.getUsername()),n=o.test(s.getTitle()),r=!(e||n),s.set("hidden",r),l.push(s.$el.toggleClass("hidden",r));return l},e.prototype.audioTimeupdate=function(){var t;return t=1e3*this.root().audio.currentTime,this.currentTrack.waveform.drawPlayed(t)},e.prototype.audioProgress=function(){var t,e,n,r;return t=this.root().audio.buffered,n=t.length-1,e=1e3*t.start(n),r=1e3*t.end(n),this.currentTrack.waveform.drawBuffered(e,r,n)},e.prototype.pause=function(){return this.currentTrack.$el.removeClass("playing")},e.prototype.play=function(){return this.$(".playing").removeClass("playing"),this.currentTrack.$el.addClass("playing")},e.prototype.playTrack=function(t){var e;return e=t.$el,e.hasClass("active")&&this.root().isPlaying()?this.root().trigger("audio:pause"):(this.root().trigger("tracks:set",t),this.root().trigger("audio:play"))},e.prototype.deleteTrack=function(t,e){var n,r;return n=t.$el,!e&&n.hasClass("active")&&(r=n.next().data("track"),this.root().trigger("tracks:set",r)),n.one("transitionend",function(e){return function(){return n.remove(),e.tracks.remove(t)}}(this)).addClass("delete")},e.prototype.deleteAllTracks=function(){var t,e,n,r,o;for(r=this.tracks.models,o=[],e=0,n=r.length;n>e;e++)t=r[e],o.push(this.deleteTrack(t,!0));return o},e.prototype.resize=function(){var t;return null!=(t=this.sortable)?t.option("disabled",window.innerWidth<=800):void 0},e.prototype.clickTrackPlay=function(t){var e,n,r;return e=$(t.currentTarget),n=$(t.currentTarget).parents(".track"),r=n.data("track"),this.playTrack(r)},e.prototype.clickTrackDelete=function(t){var e;return t.preventDefault(),t.stopPropagation(),e=$(t.currentTarget).parents(".track").data("track"),this.deleteTrack(e)},e}(s),e.exports=r},{"../../models/tracks":"/home/donnees/workspaces/soundcloud-playlist/src/app/models/tracks.coffee","../waveform":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/waveform/index.coffee","./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/tracks/index.jade","bamjs/underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js",sortablejs:"/home/donnees/workspaces/soundcloud-playlist/node_modules/sortablejs/Sortable.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/tracks/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/tracks/index.jade"}];try{var r,o=[],s=t||{};return function(t,e){o.push('<li class="tracks-gradient">'),o.push("<svg>"),o.push('<linearGradient id="gradient-played" x2="0%" y2="100%">'),o.push('<stop offset="0%" style="stop-color:#ff6800">'),o.push("</stop>"),o.push('<stop offset="100%" style="stop-color:#ff3400">'),o.push("</stop>"),o.push("</linearGradient>"),o.push("</svg>"),o.push("</li>"),function(){var t=e;if("number"==typeof t.length)for(var s=0,i=t.length;i>s;s++){var a=t[s];o.push("<li"+n.attr("data-track",a.id,!0,!1)+' class="track showing">'),o.push("<figure>"),o.push('<button class="track-play">'),o.push("<img"+n.attr("src",a.getImage(),!0,!1)+' class="track-image"/>'),o.push("</button>"),o.push("<figcaption>"),o.push('<div class="track-details">'),o.push("<a"+n.attr("href",a.getUrl("user"),!0,!1)+' class="track-details-user">'+n.escape(null==(r=a.getUsername())?"":r)),o.push("</a>"),o.push("<a"+n.attr("href",a.getUrl(),!0,!1)+' class="track-details-title">'+n.escape(null==(r=a.getTitle())?"":r)),o.push("</a>"),o.push("</div>"),o.push('<div class="track-waveform">'),o.push("</div>"),o.push('<div class="track-duration">'+n.escape(null==(r=a.getDuration("mm:ss"))?"":r)),o.push("</div>"),o.push("</figcaption>"),o.push('<div class="track-links">'),a.isDownloadable()&&(o.push("<a"+n.attr("href",a.getDownloadUrl(),!0,!1)+' data-link="download" title="Download track">'),o.push("⬇"),o.push("</a>")),o.push('<a href="#" data-link="delete" title="Remove track from queue">'),o.push("×"),o.push("</a>"),o.push("</div>"),o.push("</figure>"),o.push("</li>")}else{var i=0;for(var s in t){i++;var a=t[s];o.push("<li"+n.attr("data-track",a.id,!0,!1)+' class="track showing">'),o.push("<figure>"),o.push('<button class="track-play">'),o.push("<img"+n.attr("src",a.getImage(),!0,!1)+' class="track-image"/>'),o.push("</button>"),o.push("<figcaption>"),o.push('<div class="track-details">'),o.push("<a"+n.attr("href",a.getUrl("user"),!0,!1)+' class="track-details-user">'+n.escape(null==(r=a.getUsername())?"":r)),o.push("</a>"),o.push("<a"+n.attr("href",a.getUrl(),!0,!1)+' class="track-details-title">'+n.escape(null==(r=a.getTitle())?"":r)),o.push("</a>"),o.push("</div>"),o.push('<div class="track-waveform">'),o.push("</div>"),o.push('<div class="track-duration">'+n.escape(null==(r=a.getDuration("mm:ss"))?"":r)),o.push("</div>"),o.push("</figcaption>"),o.push('<div class="track-links">'),a.isDownloadable()&&(o.push("<a"+n.attr("href",a.getDownloadUrl(),!0,!1)+' data-link="download" title="Download track">'),o.push("⬇"),o.push("</a>")),o.push('<a href="#" data-link="delete" title="Remove track from queue">'),o.push("×"),o.push("</a>"),o.push("</div>"),o.push("</figure>"),o.push("</li>")}}}.call(this)}.call(this,"undefined"in s?s.undefined:void 0,"tracks"in s?s.tracks:"undefined"!=typeof tracks?tracks:void 0),o.join("")}catch(i){n.rethrow(i,e[0].filename,e[0].lineno,"li.tracks-gradient: svg\n linearGradient(id='gradient-played', x2='0%', y2='100%')\n stop(offset='0%', style='stop-color:#ff6800')\n stop(offset='100%', style='stop-color:#ff3400')\n\nfor track in tracks\n li(data-track=track.id).track.showing: figure\n button.track-play\n img(src=track.getImage()).track-image\n figcaption\n .track-details\n a(href=track.getUrl('user')).track-details-user= track.getUsername()\n a(href=track.getUrl()).track-details-title= track.getTitle()\n .track-waveform\n .track-duration= track.getDuration('mm:ss')\n .track-links\n if track.isDownloadable()\n a(\n href=track.getDownloadUrl()\n data-link='download'\n title='Download track'\n ) ⬇\n a(\n href='#'\n data-link='delete'\n title='Remove track from queue'\n ) ×\n")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/waveform/index.coffee":[function(t,e){var n,r,o,s={}.hasOwnProperty,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("bamjs/view"),o=t("./index.jade"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.namespace="waveform",e.prototype.events={click:"click",mousemove:"mousemove",mouseleave:"mouseleave"},e.prototype.simplification=5,e.prototype.initialize=function(){return this.undelegateEvents(),this.$el.html(o()),this.setupElements(),this.setupChart(),this.model.getWaveform().then(function(t){return function(e){return t.draw(e),t.delegateEvents()}}(this)),this.listenTo(this.root(),"resize",this.resize)},e.prototype.createRect=function(t,e){var n;return n=t.append("rect").attr("height","100%").attr("class","rect-"+e),"background"===e||"overlay"===e?n.attr("width","100%"):"hovered"===e&&n.classed("hidden",!0),n},e.prototype.setupElements=function(){var t;return this.svg=d3.select(this.$el.find("svg").get(0)),t="area-"+this.model.id,this.groups={clipPath:this.svg.append("clipPath").attr("id",t),rects:this.svg.append("g").attr("class","rects").attr("clip-path","url(#"+t+")"),overlay:this.createRect(this.svg,"overlay")},this.rects={background:this.createRect(this.groups.rects,"background"),buffered:this.groups.rects.append("g").attr("class","buffered-rects"),played:this.createRect(this.groups.rects,"played"),hovered:this.createRect(this.groups.rects,"hovered")}},e.prototype.setupChart=function(){var t;return this.height=this.$el.height(),t=this.height/2,this.currentTime=0,this.trackScale=d3.scale.linear().domain([0,this.model.getDuration()]).range([0,100]),this.x=d3.scale.linear().domain([0,1800/this.simplification]),this.y=d3.scale.linear().range([0,this.height/2]),this.zeroArea=d3.svg.area().x(function(t){return function(e,n){return t.x(n)}}(this)).y0(function(t){return function(){return t.y(0)}}(this)).y1(function(t){return function(){return t.y(2)}}(this)),this.area=d3.svg.area().x(function(t){return function(e,n){return t.x(n)}}(this)).y0(function(t){return function(e){return t.y(1-e)}}(this)).y1(function(t){return function(e){return t.y(1+e)}}(this))},e.prototype.resizeWidth=function(){return this.width=this.$el.width(),this.x.range([0,this.width])},e.prototype.draw=function(t){var e,n,r,o,s,i;for(n=[],r=s=0,i=t.length;i>s;r=++s)e=t[r],r%this.simplification===0&&(r>0&&n.push(o/this.simplification),o=0),o+=e;return this.resizeWidth(),this.groups.clipPath.append("path").datum(n).attr("d",this.zeroArea).transition().duration(400).attr("d",this.area),this.$el.addClass("drawn")},e.prototype.drawPlayed=function(t){return this.currentTime=t,this.rects.played.attr("width",this.trackScale(t)+"%")},e.prototype.drawBuffered=function(t,e,n){return(!this.buffered||n>this.buffered.attr("data-i"))&&(this.buffered=this.createRect(this.rects.buffered,"buffered")),this.buffered.attr("data-i",n).attr("x",this.trackScale(t)+"%").attr("width",this.trackScale(e)+"%")},e.prototype.goTo=function(t){var e;return e=this.trackScale.invert(t/this.width)/10,this.root().trigger("audio:seek",e),this.root().trigger("audio:play")},e.prototype.resize=function(){return this.resizeWidth(),this.groups.clipPath.select("path").attr("d",this.area)},e.prototype.click=function(t){return this.root().currentTrack===this.model&&4===this.root().audio.readyState?this.goTo(t.offsetX):(this.root().trigger("tracks:set",this.model),this.root().$audio.one("canplaythrough",function(e){return function(){return e.goTo(t.offsetX)}}(this)))},e.prototype.mousemove=function(t){var e,n,r,o;return e=t.offsetX/this.width*100,r=this.trackScale(this.currentTime),e>r?(o=r,n=e-r):(n=r-e,o=r-n),this.rects.hovered.classed("hidden",!1).attr("x",o+"%").attr("width",n+"%")},e.prototype.mouseleave=function(){return this.rects.hovered.classed("hidden",!0)},e}(n),e.exports=r},{"./index.jade":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/waveform/index.jade","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/components/waveform/index.jade":[function(t,e){var n=t("jade/lib/runtime.js");e.exports=function(e){return e&&(e.require=t),function(t){var e=[{lineno:1,filename:"/home/donnees/workspaces/soundcloud-playlist/src/app/components/waveform/index.jade"}];try{var r=[],o=t||{};return function(){r.push('<svg width="100%" height="100%">'),r.push("</svg>")}.call(this,"undefined"in o?o.undefined:void 0),r.join("")}catch(s){n.rethrow(s,e[0].filename,e[0].lineno,"svg(width='100%', height='100%')")}}(e)}},{"jade/lib/runtime.js":"/home/donnees/workspaces/soundcloud-playlist/node_modules/jade/lib/runtime.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/index.coffee":[function(t,e){var n,r,o,s,i,a,u,l,c={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)c.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};u=t("bamjs/view"),a=t("./models/user"),s=t("./components/lastfm"),o=t("./components/forms"),r=t("./components/controls"),i=t("./components/tracks"),l=t("bamjs/underscore").throttle,n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.namespace="app",e.prototype.events={keydown:"keydown"},e.prototype.initialize=function(){var t;return this.user=new a,this.lastfm=new s({el:this.$(".lastfm"),model:this.user,parent:this}),this.forms=new o({el:this.$(".forms"),parent:this}),this.controls=new r({el:this.$(".controls"),parent:this}),this.tracks=new i({el:this.$(".tracks"),parent:this}),t=l(this.resize.bind(this),50),$(window).on("resize",t)},e.prototype.isPlaying=function(){return!this.controls.audio.paused},e.prototype.resize=function(t){return this.trigger("resize",t)},e.prototype.keydown=function(t){return this.trigger("keydown",t)},e}(u),e.exports=n},{"./components/controls":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/controls/index.coffee","./components/forms":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/forms/index.coffee","./components/lastfm":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/lastfm/index.coffee","./components/tracks":"/home/donnees/workspaces/soundcloud-playlist/src/app/components/tracks/index.coffee","./models/user":"/home/donnees/workspaces/soundcloud-playlist/src/app/models/user.coffee","bamjs/underscore":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/underscore.js","bamjs/view":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/view.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/models/track.coffee":[function(t,e){var n,r,o,s,i,a={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("bamjs/model"),o=t("../modules/api"),i=t("../modules/waveform-data"),s=t("../modules/format-time"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.idAttribute="id",e.prototype.defaults={currentTime:0,hidden:!1},e.prototype.getTitle=function(){return this.get("title")},e.prototype.getCurrentTime=function(){return this.get("currentTime")},e.prototype.getSrc=function(){return this.get("src")},e.prototype.getDuration=function(t){return s(this.get("duration"),t)},e.prototype.getStartPlaying=function(t){return s(this.get("startPlaying"),t)},e.prototype.getImage=function(){var t;return t=this.get("artwork_url"),t||(t=this.get("user").avatar_url),t},e.prototype.getUrl=function(t){switch(null==t&&(t="track"),t){case"track":return this.get("permalink_url");case"user":return this.get("user").permalink_url}},e.prototype.getUsername=function(){return this.get("user").username},e.prototype.isVisible=function(){return!this.get("hidden")},e.prototype.isDownloadable=function(){return this.get("downloadable")},e.prototype.getDownloadUrl=function(){return o.getTrackDownloadUrl(this.get("download_url"))},e.prototype.getNextVisibleTrack=function(){var t;for(t=this;;)if(t=t.next(),!t||t.isVisible())break;return t},e.prototype.getPreviousVisibleTrack=function(){var t;for(t=this;;)if(t=t.prev(),!t||t.isVisible())break;return t},e.prototype.parseType="ajax",e.prototype.getWaveform=function(){var t,e;return t=$.Deferred(),(e=this.get("waveform"))?t.resolve(e):("ajax"===this.parseType?$.ajax({url:"http://www.waveformjs.org/w",dataType:"jsonp",data:{url:this.get("waveform_url")}}).fail(function(){return function(){var n,r,o,s;return r=200,n=d3.scale.linear().interpolate(function(){return d3.ease("sin-in-out")}).range([0,1]).domain([0,r]),e=function(){for(s=[],o=0;1800>o;o++)s.push(o);return s}.apply(this).map(function(t){return t%=r,t=t>r/2?r-t:t,n(2*t)}),t.resolve(e)}}(this)).done(function(e){return function(n){return e.set("waveform",n),t.resolve(n)}}(this)):"canvas"===this.parseType&&(t=i(this.get("waveform_url"))),t)},e}(n),e.exports=r},{"../modules/api":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/api/index.coffee","../modules/format-time":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/format-time/index.coffee","../modules/waveform-data":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/waveform-data/index.coffee","bamjs/model":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/model.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/models/tracks.coffee":[function(t,e){var n,r,o,s={}.hasOwnProperty,i=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("bamjs/collection"),r=t("./track"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return i(e,t),e.prototype.model=r,e.prototype.getVisibleTracks=function(){return this.filter(function(t){return t.isVisible()})},e}(n),e.exports=o},{"./track":"/home/donnees/workspaces/soundcloud-playlist/src/app/models/track.coffee","bamjs/collection":"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/collection.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/models/user.coffee":[function(t,e){var n,r,o,s,i={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("bamjs").Model,s=t("store"),o=t("../modules/soundcloud-url-data"),r=function(t){function e(t,n){var r,i,a,u;null==t&&(t={}),t=$.extend(!0,{},t,s.get("user-data")),i=location.hash.slice(1),i&&(u=o.getData(i),a=u.user,r=u.playlist),a||(a=t.user,r=t.playlist),a||(a="calvein",r="mixtapes"),t.user=a,t.playlist=r,e.__super__.constructor.call(this,t,n),this.listenTo(this,"change",function(){return this.save()})}return a(e,t),e.prototype.sync=function(t,e){return s.set("user-data",e.toJSON()),this.trigger("sync")},e.prototype.getUser=function(){return this.get("user")},e.prototype.getPlaylist=function(){return this.get("playlist")},e.prototype.setUrl=function(t){var e,n,r;return r=o.getData(t),n=r.user,e=r.playlist,this.set("user",n),this.set("playlist",e),this.save()},e}(n),e.exports=r},{"../modules/soundcloud-url-data":"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/soundcloud-url-data/index.coffee",bamjs:"/home/donnees/workspaces/soundcloud-playlist/node_modules/bamjs/index.js",store:"/home/donnees/workspaces/soundcloud-playlist/node_modules/store/store.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/api/index.coffee":[function(t,e){var n,r,o;r="5247b2c9dddfe7afb755c75a6198999d",n=function(){function t(){}return t.prototype.url="http://api.soundcloud.com/resolve.json",t.prototype.contructor=function(){},t.prototype.getData=function(t,e){var n;return n="?url="+t,n+="&client_id="+r,$("body").addClass("loading"),$.get(this.url+n).done(function(t){return $("body").removeClass("loading"),e?e(t):void 0})},t.prototype.getPlaylists=function(t){return this.getData(t)},t.prototype.getPlaylist=function(t){return this.getData(t,function(t){return t.tracks.forEach(function(t){return t.src=t.stream_url+"?client_id="+r})})},t.prototype.getTrackDownloadUrl=function(t){return t+"?client_id="+r},t}(),o=new n,e.exports=o},{}],"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/format-time/index.coffee":[function(t,e){e.exports=function(t,e){var n,r,o;switch(r=Math.round(t/1e3),e){case"s":return r;case"mm:ss":return n=Math.floor(r/60),o=r%60,10>o&&(o="0"+o),n+":"+o;default:return t}}},{}],"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/lastfm/index.coffee":[function(t,e){var n,r,o,s,i,a;r="http://ws.audioscrobbler.com/2.0/",n="6531a456239925b5e32792c5a1c6589d",i=t("crypto"),o=function(t,e,n){return null==e&&(e=""),null==n&&(n=""),t=Object.keys(t).sort().map(function(e){return e+n+t[e]}).join(e)},s=function(t){return i.createHash("md5").update(o(t)+n).digest("hex")},a=function(t){return t.api_sig=s(t),t.format="json",$.ajax({url:r,data:t,type:"POST"})},e.exports={createParams:o,createSignature:s,getLastFmQuery:a}},{crypto:"/home/donnees/workspaces/soundcloud-playlist/node_modules/browserify/node_modules/crypto-browserify/index.js"}],"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/soundcloud-url-data/index.coffee":[function(t,e){var n,r,o,s;r="https://soundcloud.com",n=/^https?:\/\/soundcloud\.com\/(.*)/,o=function(t){var e,r,o,s;return n.test(t)&&(t=t.match(n)[1]),s=t.split("/"),o=s[0],r=s[1],e=s[2],"sets"!==r&&(e=r),{user:o,playlist:e}},s=function(t,e){var n;return n=""+r+"/"+t+"/sets",e&&(n+="/"+e),n},e.exports={getData:o,getUrl:s}},{}],"/home/donnees/workspaces/soundcloud-playlist/src/app/modules/waveform-data/index.coffee":[function(t,e){e.exports=function(){var t,e,n,r,o,s;return n=$.Deferred(),s=1800,o=140,r=document.createElement("img"),t=document.createElement("canvas"),t.width=s,t.height=o,e=t.getContext("2d"),r.addEventListener("load",function(){var t,i,a,u,l,c,d;for(e.drawImage(r,0,0),l=e.getImageData(0,0,s,o).data,u=l.length,a=0,i=[],t=0,a=c=0,d=l.length;d>=c&&(l[a]>0&&t++,a&&a/4%o===0&&(i.push(t/o),t=0),!(a++>u));a=c+=4);return n.resolve(i)}),r.src="https://w1.sndcdn.com/G5d1wBmLJ2Kw_m.png",n}},{}]},{},["./src/index.coffee"]);