new function(){function x(b,d,p,g,l,m){return{tag:b,key:d,attrs:p,children:g,text:l,dom:m,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}x.normalize=function(b){return b instanceof Array?x("[",void 0,void 0,x.normalizeChildren(b),void 0,void 0):null!=b&&"object"!==typeof b?x("#",void 0,void 0,b,void 0,void 0):b};x.normalizeChildren=function(b){for(var d=0;d=q&&y>=B;){var h=a[q],u=e[B];if(h===u)q++,B++;else if(null!=h&&null!=u&&h.key===u.key)q++,B++,m(c,h,u,f,t(a,q,b),r,g),r&&h.tag===u.tag&&n(c,k(h),b);else if(h=a[w],h===u)w--,B++;else if(null!=h&&null!=u&&h.key===u.key)m(c,h,u,f,t(a,w+1,b),r,g),B=q&&y>=B;){h=a[w];u=e[y];if(h===u)w--;else if(null!=h&&null!=u&&h.key===u.key)m(c,h,u,f,t(a,w+1,b),r,g),r&&h.tag===u.tag&&n(c,k(h),b), null!=h.dom&&(b=h.dom),w--;else{if(!l){l=a;var h=w,z={},x;for(x=0;xb.indexOf("?")?"?":"&";b+=g+h}return b}function l(b){try{return""!==b?JSON.parse(b):null}catch(d){throw Error(b);}}function m(b){return b.responseText}function k(b,d){if("function"===typeof b)if(d instanceof Array)for(var h=0;hn.status)d(k(f.type, b));else{var h=Error(n.responseText),g;for(g in b)h[g]=b[g];d.error(h)}}catch(l){d.error(l)}"function"===typeof v&&v()}};h?n.send(f.data):n.send();return d},jsonp:function(d){var l=t();void 0!==d.initialValue&&l(d.initialValue);var h=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+n++,w=b.document.createElement("script");b[h]=function(g){w.parentNode.removeChild(w);l(k(d.type,g));"function"===typeof v&&v();delete b[h]};w.onerror=function(){w.parentNode.removeChild(w);l.error(Error("JSONP request failed")); "function"===typeof v&&v();delete b[h]};null==d.data&&(d.data={});d.url=p(d.url,d.data);d.data[d.callbackKey||"callback"]=h;w.src=g(d.url,d.data);b.document.documentElement.appendChild(w);return l},setCompletionCallback:function(b){v=b}}}(window,console.error.bind(console)),D=function(){var b=[];return{subscribe:b.push.bind(b),unsubscribe:function(d){d=b.indexOf(d);-1