Likebox
27 Gennaio 2019Sara Balsamo
27 Gennaio 2019Tweet10){t.push(s[r].replace(//$/,””))}}return t.join(“/”)}function j(t,s,q){var r=s.split(“/”),u=t;while(r.length>1){var i=r.shift();u=u[i]=u[i]||{}}u[r[0]]=q}function f(){}f.prototype.then=function(i){var q=this;if(!this.started){this.started=true;this.start()}if(this.completed){i.apply(p,this.results)}else{this.callbacks=this.callbacks||[…];this.callbacks.push(i)}return this};f.prototype.start=function(){};f.prototype.complete=function(){if(!this.completed){this.results=M(arguments);this.completed=true;if(this.callbacks){for(var r=0,q;q=this.callbacks[r];r++){q.apply(p,this.results)}}}};function c(q,i){this.id=this.path=q;this.force=!!i}c.loaded=[…];c.prototype=new f;c.prototype.start=function(){var r=this,s,i,q;if(q=V[this.id]){q.then(function(){r.complete()});return this}if(s=P[this.id]){s.then(function(){r.loaded()})}else{if(!this.force&&Q(c.loaded,this.id)>-1){this.loaded()}else{if(i=b(this.id)){A(i,function(){r.loaded()})}else{this.load()}}}return this};c.prototype.load=function(){var q=this;P[this.id]=q;var i=n.cloneNode(false);this.scriptId=i.id=”LR”+ ++I;i.type=”text/javascript”;i.async=true;i.onerror=function(){throw new Error(q.path+” not loaded”)};i.onreadystatechange=i.onload=function(r){r=p.event||r;if(r.type==”load”||Q([“loaded”,”complete”],this.readyState)>-1){this.onreadystatechange=null;q.loaded()}};i.src=this.path;U=this;K[0].parentNode.insertBefore(i,K[0]);U=null;G[i.id]=this};c.prototype.loaded=function(){this.complete()};c.prototype.complete=function(){if(Q(c.loaded,this.id)==-1){c.loaded.push(this.id)}delete P[this.id];f.prototype.complete.apply(this,arguments)};function a(q,i){this.id=q;this.body=i;if(typeof i==”undefined”){this.path=this.resolvePath(q)}}a.exports={};a.prototype=new c;a.prototype.resolvePath=function(i){return l(A.path,i+”.js”)};a.prototype.start=function(){var i,q,r=this,s;if(this.body){this.execute()}else{if(i=a.exports[this.id]){this.exp(i)}else{if(q=V[this.id]){q.then(function(t){r.exp(t)})}else{if(bundle=b(this.id)){A(bundle,function(){r.start()})}else{V[this.id]=this;this.load()}}}}};a.prototype.loaded=function(){var q,i,r=this;if(!Z){q=C;C=null;q.id=q.id||this.id;q.then(function(s){r.exp(s)})}else{if(i=a.exports[this.id]){this.exp(i)}else{if(q=V[this.id]){q.then(function(s){r.exp(s)})}}}};a.prototype.complete=function(){delete V[this.id];c.prototype.complete.apply(this,arguments)};a.prototype.execute=function(){var i=this;if(typeof this.body==”object”){this.exp(this.body)}else{if(typeof this.body==”function”){this.body.apply(window,[function(q){i.exp(q)}])}}};a.prototype.exp=function(i){this.complete(this.exports=a.exports[this.id]=i||{})};function B(q,i){this.deps=q;this.collectResults=i;if(this.deps.length==0){this.complete()}}B.prototype=new f;B.prototype.start=function(){var s=this;function q(){var v=[…];if(s.collectResults){v[0]={}}for(var u=0,w;w=s.deps[u];u++){if(!w.completed){return }if(w.results.length>0){if(s.collectResults){if(w instanceof S){X(v[0],w.results[0])}else{j(v[0],w.id,w.results[0])}}else{v=v.concat(w.results)}}}s.complete.apply(s,v)}for(var r=0,t;t=this.deps[r];r++){t.then(q)}return this};function S(q,i){this.deps=q;this.collectResults=i}S.prototype=new f;S.prototype.start=function(){var s=this,q=0,i=[…];if(s.collectResults){i[0]={}}(function r(){var t=s.deps[q++];if(t){t.then(function(u){if(t.results.length>0){if(s.collectResults){if(t instanceof S){X(i[0],t.results[0])}else{j(i[0],t.id,t.results[0])}}else{i.push(t.results[0])}}r()})}else{s.complete.apply(s,i)}}());return this};function T(){for(var q in K){if(K[q].readyState==”interactive”){return G[K[q].id]}}}function L(q,i){var r;if(!q&&Z){r=U||T()}if(r){delete G[r.scriptId];r.body=i;r.execute()}else{C=r=new a(q,i);V[r.id]=r}return r}function N(){var r=M(arguments),q,i;if(typeof r[0]==”string”){q=r.shift()}i=r.shift();return L(q,i)}function h(t,q){var s=q.id||””;var r=s.split(“/”);r.pop();var i=r.join(“/”);return t.replace(/^./,i)}function Y(t,v){var r=[…];function s(i){return a.exports[h(i,v)]}for(var u=0,q=t.length;u0?a.indexOf(“?”)>=0?a+”&”+d(b):a+”?”+d(b):a}a({url:f,decode:e,encode:d,encodePart:b,decodePart:c})});provide(“util/params”,function(a){using(“util/querystring”,function(b){var c=function(a){var c=a.search.substr(1);return b.decode(c)},d=function(a){var c=a.href,d=c.indexOf(“#”),e=d