var HTMLElement=function(t){function e(){}return e.prototype=window.HTMLElement.prototype,e}(),TokenList=function(t){for(var e=this,n=function(t){return/{(\w+|#)}/.test(t.textContent)&&(t.text=t.textContent).match(/[^{]+(?=})/g).map(function(n){return(e[n]||(e[n]=[])).push(t)})},o=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){return t.attributes&&[].slice.call(t.attributes).map(n)||n(t)},null);o.nextNode(););};TokenList.prototype.bind=function(t){var e=function(e){return function(n){return n.textContent=n.textContent.split("{"+e+"}").join(t[e])}};for(var n in this)"bind"!=n&&this[n].map(function(t){return t.textContent=t.text});for(var o in this)"bind"!=o&&this[o].map(e(o))},function(t){function e(t){var e=new XMLHttpRequest;e.link=t,e.onload=n,e.open("GET",t.href),e.responseType="document",e.send()}function n(){for(var t=this.link,e=this.response,n=t.nextChild,i=t.content=e.querySelector("template"),c=0,l=document.querySelectorAll(t.id);c0;)e[n]=arguments[n+1];return t=[].concat(t),[].slice.call(this.querySelectorAll(e.reduce(function(e,n){return e+n+t.shift()},t.shift())))},e}(t)}function EventTarget(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.on=function(t,e){this.addEventListener(t,this.renderable(e))},e.prototype.renderable=function(t){var e=this;return function(n){return!1!==t.call(e,n)&&n.defaultPrevented||e.render()}},e.prototype.reflect=function(e){/^on/.test(e)&&e in t.prototype&&this.on(e.substr(2),this[e])},e.prototype.register=function(t,e,n){for(var o=0,r=[].slice.call(t.attributes);o