!function(){function t(e){var n=t.modules[e];if(!n)throw new Error('failed to require "'+e+'"');return"exports"in n||"function"!=typeof n.definition||(n.client=n.component=!0,n.definition.call(this,n.exports={},n),delete n.definition),n.exports}t.modules={},t.register=function(e,n){t.modules[e]={definition:n}},t.define=function(e,n){t.modules[e]={exports:n}},t.register("timoxley~to-array@0.2.1",function(t,e){function n(t){return"[object Array]"===Object.prototype.toString.call(t)}e.exports=function(t){if("undefined"==typeof t)return[];if(null===t)return[null];if(t===window)return[window];if("string"==typeof t)return[t];if(n(t))return t;if("number"!=typeof t.length)return[t];if("function"==typeof t&&t instanceof Function)return[t];for(var e=[],r=0;r=0;e--)if(c[e].id===t){c.splice(e,1);break}},r.once=function(t,e){for(var n=c.length-1;n>=0;n--)if(c[n].fn===t)return;r(t,e)},r.queued=function(){return c.length},r.clear=function(){c=[],o&&s.cancel(o),o=null},r.defer=function(t){s(s.bind(null,t))},n.exports=r}),t.register("anthonyshort~attributes@0.0.1",function(t,e){e.exports=function(t){var e,n,r=t.attributes,i={};for(n=r.length-1;n>=0;n--)e=r.item(n),i[e.nodeName]=e.nodeValue;return i}}),t.register("anthonyshort~is-boolean-attribute@0.0.1",function(t,e){var n=["allowfullscreen","async","autofocus","checked","compact","declare","default","defer","disabled","formnovalidate","hidden","inert","ismap","itemscope","multiple","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","readonly","required","reversed","seamless","selected","sortable","truespeed","typemustmatch","contenteditable","spellcheck"];e.exports=function(t){return n.indexOf(t)>-1}}),t.register("component~domify@1.2.2",function(t,e){function n(t){if("string"!=typeof t)throw new TypeError("String expected");var e=/<([\w:]+)/.exec(t);if(!e)return document.createTextNode(t);t=t.replace(/^\s+|\s+$/g,"");var n=e[1];if("body"==n){var i=document.createElement("html");return i.innerHTML=t,i.removeChild(i.lastChild)}var o=r[n]||r._default,s=o[0],c=o[1],u=o[2],i=document.createElement("div");for(i.innerHTML=c+t+u;s--;)i=i.lastChild;if(i.firstChild==i.lastChild)return i.removeChild(i.firstChild);for(var a=document.createDocumentFragment();i.firstChild;)a.appendChild(i.removeChild(i.firstChild));return a}e.exports=n;var r={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:[0,"",""]};r.td=r.th=[3,"","
"],r.option=r.optgroup=[1,'"],r.thead=r.tbody=r.colgroup=r.caption=r.tfoot=[1,"","
"],r.text=r.circle=r.ellipse=r.line=r.path=r.polygon=r.polyline=r.rect=[1,'',""]}),t.register("component~props@1.1.2",function(t,e){function n(t){return t.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\//g,"").replace(s,"").match(/[$a-zA-Z_]\w*/g)||[]}function r(t,e,n){var r=/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\/|[a-zA-Z_]\w*/g;return t.replace(r,function(t){return"("==t[t.length-1]?n(t):~e.indexOf(t)?n(t):t})}function i(t){for(var e=[],n=0;nr;++r)n[r].apply(this,e)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}}),t.register("component~indexof@0.0.1",function(t,e){var n=[].indexOf;e.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;rs;s++)n=t[s],e&&!~r(e,n)?o.push(n):~r(o,n)||o.push(n);return o}}),t.register("ripplejs~expression@0.2.0",function(e,n){function r(t){this.str=t,this.props=c(s(t)),this.fn=o(t,this.props)}function i(t,e){return e.map(function(e){return t[e]})}function o(t,e){if(u[t])return u[t];var n=e.slice();n.push("return "+t);var r=Function.apply(null,n);return u[t]=r,r}var s=t("component~props@1.1.2"),c=t("yields~uniq@master"),u={};r.prototype.exec=function(t,e){t=t||{};var n=t?i(t,this.props):[];return this.fn.apply(e,n)},r.prototype.toString=function(){return this.str},n.exports=r}),t.register("component~format-parser@0.0.2",function(t,e){function n(t){for(var e,n=[],r=/"([^"]*)"|'([^']*)'|([^ \t,]+)/g;e=r.exec(t);)n.push(e[2]||e[1]||e[0]);return n}e.exports=function(t){return t.split(/ *\| */).map(function(t){var e=t.split(":"),r=e.shift(),i=n(e.join(":"));return{name:r,args:i}})}}),t.register("ripplejs~interpolate@0.4.3",function(e,n){function r(t,e,n){n=n||{};var r=s(e.join("|"));return r.forEach(function(e){var r=e.name.trim(),i=n[r],o=e.args.slice();if(o.unshift(t),!i)throw new Error('Missing filter named "'+r+'"');t=i.apply(null,o)}),t}function i(){this.match=/\{\{([^}]+)\}\}/g,this.filters={}}var o=t("ripplejs~expression@0.2.0"),s=t("component~format-parser@0.0.2"),c=t("yields~uniq@master");i.prototype.use=function(t){return t(this),this},i.prototype.delimiters=function(t){return this.match=t,this},i.prototype.matches=function(t){var e=new RegExp(this.match.source),n=e.exec(t);return n?n:[]},i.prototype.filter=function(t,e){return this.filters[t]=e,this},i.prototype.exec=function(t,e){e=e||{};var n=t.split("|"),i=n.shift(),s=new o(i),c=s.exec(e.scope,e.context);return n.length&&(c=r(c,n,e.filters||this.filters)),c},i.prototype.has=function(t){return t.search(this.match)>-1},i.prototype.replace=function(t,e){var n=this;return t.replace(this.match,function(t,r){var i=n.exec(r,e);return null==i?"":i})},i.prototype.value=function(t,e){var n=this.matches(t);return 0===n.length?t:n[0].length!==t.length?this.replace(t,e):this.exec(n[1],e)},i.prototype.values=function(t,e){var n=this;return this.map(t,function(t){return n.value(t,e)})},i.prototype.props=function(t){var e=[];return this.each(t,function(t,n){var r=new o(n);e=e.concat(r.props)}),c(e)},i.prototype.each=function(t,e){for(var n,r=0,i=this.match;n=i.exec(t);){var o=n[1].split("|"),s=o.shift(),c=o.join("|");e(n[0],s,c,r),r++}},i.prototype.map=function(t,e){var n=[];return this.each(t,function(){n.push(e.apply(null,arguments))}),n},n.exports=i}),t.register("ripplejs~keypath@0.0.1",function(t){t.get=function(t,e){for(var n=e.split("."),r=t;n.length;){var i=n.shift();r=r[i],void 0===r&&(n.length=0)}return r},t.set=function(t,e,n){for(var r=e.split("."),i=t,o=r.pop();r.length;)part=r.shift(),i[part]||(i[part]={}),i=i[part];i[o]=n}}),t.register("jkroso~type@1.1.0",function(t,e){var n={}.toString,r="undefined"!=typeof window?window.Node:Function;e.exports=t=function(t){var e=typeof t;if("object"!=e)return e;if(e=i[n.call(t)])return e;if(t instanceof r)switch(t.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),t.register("jkroso~equals@0.3.6",function(e,n){function r(){for(var t=arguments.length-1;t>0;)if(!i(arguments[t],arguments[--t]))return!1;return!0}function i(t,e,n){if(t===e)return!0;var r=p[a(t)],i=p[a(e)];return r&&r===i?r(t,e,n):!1}function o(t){return function(e,n,r){if(!r)return t(e,n,[]);for(var i,o=r.length;i=r[--o];)if(i[0]===e&&i[1]===n)return!0;return t(e,n,r)}}function s(t,e,n){var r=t.length;if(r!==e.length)return!1;for(n.push([t,e]);r--;)if(!i(t[r],e[r],n))return!1;return!0}function c(t,e,n){var r=u(t),o=u(e),s=r.length;if(s!==o.length)return!1;for(r.sort(),o.sort();s--;)if(r[s]!==o[s])return!1;for(n.push([t,e]),s=r.length;s--;){var c=r[s];if(!i(t[c],e[c],n))return!1}return!0}function u(t){var e=[];for(var n in t)"constructor"!==n&&e.push(n);return e}var a=t("jkroso~type@1.1.0");n.exports=r,r.compare=i;var p={};p.number=function(t){return t!==t},p["function"]=function(t,e,n){return t.toString()===e.toString()&&p.object(t,e,n)&&i(t.prototype,e.prototype)},p.date=function(t,e){return+t===+e},p.regexp=function(t,e){return t.toString()===e.toString()},p.element=function(t,e){return t.outerHTML===e.outerHTML},p.textnode=function(t,e){return t.textContent===e.textContent},p.arguments=p.array=o(s),p.object=o(c)}),t.register("component~clone@0.2.2",function(e,n){function r(t){switch(i(t)){case"object":var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));return e;case"array":for(var e=new Array(t.length),o=0,s=t.length;s>o;o++)e[o]=r(t[o]);return e;case"regexp":var c="";return c+=t.multiline?"m":"",c+=t.global?"g":"",c+=t.ignoreCase?"i":"",new RegExp(t.source,c);case"date":return new Date(t.getTime());default:return t}}var i;try{i=t("component~type@1.0.0")}catch(o){i=t("component~type@1.0.0")}n.exports=r}),t.register("ripplejs~path-observer@0.1.2",function(e,n){function r(t){var e=[],n=t.split(".").map(function(t){return e.push(t),e.join(".")});return n.pop(),n}var i=t("component~emitter@1.1.2"),o=t("jkroso~equals@0.3.6"),s=t("component~clone@0.2.2"),c=t("ripplejs~keypath@0.0.1");n.exports=function(t){function e(t){return this instanceof e?n[t]?n[t]:(this.path=t,this.paths=r(t),this.previous=s(this.get()),this.check(),this.changes=this.paths.map(function(t){var n=new e(t);return n.change(this.check.bind(this))},this),n[t]=this,void 0):new e(t)}var n={};return e.dispose=function(){for(var t in n)n[t].dispose()},i(e.prototype),e.prototype.dirty=function(){return o(this.previous,this.get())===!1},e.prototype.get=function(){return c.get(t,this.path)},e.prototype.set=function(e){return c.set(t,this.path,e),this.check(),this},e.prototype.check=function(){var t=this.get(),e=this.previous;this.dirty()&&(this.previous=s(t),this.notify(t,e))},e.prototype.notify=function(){var t=Array.prototype.slice.call(arguments);t.unshift("change"),this.emit.apply(this,t),this.paths.forEach(function(t){n[t]&&n[t].check()})},e.prototype.change=function(t){var e=this;return e.on("change",t),function(){e.off("change",t)}},e.prototype.dispose=function(){this.emit("dispose"),this.off("change"),this.previous=null,this.changes.forEach(function(t){t()}),n[this.path]=null},e}}),t.register("ripplejs~ripple@0.3.5",function(e,n){var r=t("ripplejs~ripple@0.3.5/lib/view.js");n.exports=function(t){return(0===t.indexOf("#")||0===t.indexOf("."))&&(t=document.querySelector(t)),"string"==typeof t.innerHTML&&(t=t.innerHTML),r(t)}}),t.register("ripplejs~ripple@0.3.5/lib/view.js",function(e,n){function r(t){if("string"==typeof t&&(t=document.querySelector(t),!t))throw new Error("DOM node doesn't exist");return t}var i=t("component~emitter@1.1.2"),o=t("ripplejs~ripple@0.3.5/lib/model.js"),s=t("ripplejs~ripple@0.3.5/lib/bindings.js"),c=t("component~each@0.2.3"),u=["construct","created","ready","mounted","unmounted","destroying","destroyed"];n.exports=function(t){function e(r){r=r||{},e.emit("construct",this,[r]),this.options=r,this.children=[],this.template=r.template||t,this.owner=r.owner,this.bindings=r.bindings||n,this.root=this,this.owner&&(this.owner.children.push(this),this.root=this.owner.root),this.scope=r.scope,this.scopeWatchers={},this.model=new a(e.parse(r)),this.data=this.model.props,e.emit("created",this),this.el=this.render(),e.emit("ready",this)}var n=new s,a=o();return i(e),i(e.prototype),e.directive=function(t,e){return n.directive(t,e),this},e.compose=function(t,e){return n.component(t,e),this},e.filter=function(t,r){if("string"==typeof t)return n.filter(t,r),this;for(var i in t)e.filter(i,t[i])},e.use=function(t,n){return t(e,n),this},u.forEach(function(t){e[t]=function(n){e.on(t,function(t,e){n.apply(t,e)})}}),e.parse=function(t){return t.data},e.prototype.set=function(t,e){if("string"!=typeof t){for(var n in t)this.set(n,t[n]);return this}if(this.scope&&this.scopeWatchers[t]){var r=this;this.scopeWatchers[t].forEach(function(e){r.scope.unwatch(t,e),r.model.watch(t,e)}),delete this.scopeWatchers[t]}return this.model.set(t,e),this},e.prototype.get=function(t){var e=this.model.get(t);return void 0===e&&this.scope?this.scope.get(t):e},e.prototype.destroy=function(){var t=this;if(this.emit("destroying"),e.emit("destroying",this),this.remove(),this.model.destroy(),this.off(),this.children.forEach(function(t){t.destroy()}),this.owner){var n=this.owner.children.indexOf(this);this.owner.children.splice(n,1)}c(this.scopeWatchers,function(e,n){n.forEach(function(n){t.scope.unwatch(e,n)})}),this.scopeWatchers=null,this.scope=null,this.el=null,this.owner=null,this.root=null,this.data=null,this.emit("destroyed"),e.emit("destroyed",this)},e.prototype.isMounted=function(){return null!=this.el&&null!=this.el.parentNode},e.prototype.render=function(){return this.bindings.bind(this)},e.prototype.appendTo=function(t){return r(t).appendChild(this.el),this.emit("mounted"),e.emit("mounted",this),this},e.prototype.replace=function(t){var n=r(t);return n.parentNode.replaceChild(this.el,n),this.emit("mounted"),e.emit("mounted",this),this},e.prototype.before=function(t){var n=r(t);return n.parentNode.insertBefore(this.el,n),this.emit("mounted"),e.emit("mounted",this),this},e.prototype.after=function(t){var n=r(t);return n.parentNode.insertBefore(this.el,n.nextSibling),this.emit("mounted"),e.emit("mounted",this),this},e.prototype.remove=function(){return this.isMounted()===!1?this:(this.el.parentNode.removeChild(this.el),this.emit("unmounted"),e.emit("unmounted",this),this)},e.prototype.interpolate=function(t){var e=this,n={},r=this.bindings.interpolator.props(t);return r.forEach(function(t){n[t]=e.get(t)}),this.bindings.interpolator.value(t,{context:this.scope||this,scope:n})},e.prototype.watch=function(t,e){var n=this;if(Array.isArray(t))return t.forEach(function(t){n.watch(t,e)});var r=this.model.get(t);return void 0===r&&this.scope?(this.scope.watch(t,e),this.scopeWatchers[t]||(this.scopeWatchers[t]=[]),this.scopeWatchers[t].push(e),void 0):this.model.watch(t,e)},e.prototype.unwatch=function(t,e){var n=this;if(Array.isArray(t))return t.forEach(function(t){n.unwatch(t,e)});var r=this.model.get(t);if(void 0===r&&this.scope){if(this.scope.unwatch(t,e),!this.scopeWatchers[t])return;var i=this.scopeWatchers[t].indexOf(e);return this.scopeWatchers[t].splice(i,1),void 0}return this.model.unwatch(t,e)},e}}),t.register("ripplejs~ripple@0.3.5/lib/bindings.js",function(e,n){function r(){this.components={},this.directives={},this.interpolator=new o}var i=t("ripplejs~ripple@0.3.5/lib/render.js"),o=t("ripplejs~interpolate@0.4.3");r.prototype.component=function(t,e){return e?(this.components[t.toLowerCase()]=e,this):this.components[t.nodeName.toLowerCase()]},r.prototype.directive=function(t,e){return e?(this.directives[t]=e,this):this.directives[t]},r.prototype.filter=function(t,e){return e?(this.interpolator.filter(t,e),this):this.interpolator.filters[t]},r.prototype.bind=function(t){return i(this,t)},n.exports=r}),t.register("ripplejs~ripple@0.3.5/lib/model.js",function(e,n){var r=t("ripplejs~path-observer@0.1.2"),i=t("component~emitter@1.1.2");n.exports=function(){function t(e){return this instanceof t?(this.props=e||{},this.observer=r(this.props),t.emit("construct",this),void 0):new t(e)}return i(t),t.use=function(t,e){return t(this,e),this},t.prototype.watch=function(t,e){return this.observer(t).on("change",e),this},t.prototype.unwatch=function(t,e){return this.observer(t).off("change",e),this},t.prototype.set=function(t,e){return this.observer(t).set(e),this},t.prototype.get=function(t){return this.observer(t).get()},t.prototype.destroy=function(){return this.observer.dispose(),this},t}}),t.register("ripplejs~ripple@0.3.5/lib/render.js",function(e,n){var r=t("anthonyshort~dom-walk@0.1.0"),i=t("component~each@0.2.3"),o=t("anthonyshort~attributes@0.0.1"),s=t("component~domify@1.2.2"),c=t("ripplejs~ripple@0.3.5/lib/text-binding.js"),u=t("ripplejs~ripple@0.3.5/lib/attr-binding.js"),a=t("ripplejs~ripple@0.3.5/lib/child-binding.js"),p=t("ripplejs~ripple@0.3.5/lib/directive.js");n.exports=function(t,e){var n=s(e.template),h=document.createDocumentFragment();h.appendChild(n);var f=[];return r(n,function(n,r){if(3===n.nodeType)f.push(new c(e,n));else if(1===n.nodeType){var s=t.component(n);if(s)return f.push(new a(e,n,s)),r();i(o(n),function(r){var i=t.directive(r);i?f.push(new p(e,n,r,i)):f.push(new u(e,n,r))})}r()}),e.once("destroying",function(){for(;f.length;)f.shift().unbind()}),e.activeBindings=f,h.firstChild}}),t.register("ripplejs~ripple@0.3.5/lib/directive.js",function(e,n){function r(t,e,n,r){this.queue=this.queue.bind(this),this.view=t,this.binding="function"==typeof r?{update:r}:r,this.text=e.getAttribute(n),this.node=e,this.attr=n,this.props=t.bindings.interpolator.props(this.text),this.bind()}var i=t("anthonyshort~raf-queue@0.2.0");r.prototype.bind=function(){var t=this.view,e=this.queue;this.binding.bind&&this.binding.bind.call(this,this.node,this.view),this.props.forEach(function(n){t.watch(n,e)}),this.update()},r.prototype.unbind=function(){var t=this.view,e=this.queue;this.props.forEach(function(n){t.unwatch(n,e)}),this.job&&i.cancel(this.job),this.binding.unbind&&this.binding.unbind.call(this,this.node,this.view)},r.prototype.update=function(){var t=this.view.interpolate(this.text);this.binding.update.call(this,t,this.node,this.view)},r.prototype.queue=function(){this.job&&i.cancel(this.job),this.job=i(this.update,this)},n.exports=r}),t.register("ripplejs~ripple@0.3.5/lib/text-binding.js",function(e,n){function r(t,e){this.update=this.update.bind(this),this.view=t,this.text=e.data,this.node=e,this.props=t.bindings.interpolator.props(this.text),this.render=this.render.bind(this),this.props.length&&this.bind()}var i=t("anthonyshort~raf-queue@0.2.0");r.prototype.bind=function(){var t=this.view,e=this.update;this.props.forEach(function(n){t.watch(n,e)}),this.render()},r.prototype.unbind=function(){var t=this.view,e=this.update;this.props.forEach(function(n){t.unwatch(n,e)}),this.job&&i.cancel(this.job)},r.prototype.render=function(){var t=this.node,e=this.view.interpolate(this.text);if(null==e)this.node.data="";else if(e instanceof Element)t.parentNode.replaceChild(e,t),this.node=e;else{var n=document.createTextNode(e);t.parentNode.replaceChild(n,t),this.node=n}},r.prototype.update=function(){this.job&&i.cancel(this.job),this.job=i(this.render,this)},n.exports=r}),t.register("ripplejs~ripple@0.3.5/lib/attr-binding.js",function(e,n){function r(t,e,n){this.update=this.update.bind(this),this.view=t,this.text=e.getAttribute(n),this.node=e,this.attr=n,this.props=t.bindings.interpolator.props(this.text),this.bind()}var i=t("anthonyshort~is-boolean-attribute@0.0.1"),o=t("anthonyshort~raf-queue@0.2.0");r.prototype.bind=function(){if(this.props.length){var t=this.view,e=this.update;this.props.forEach(function(n){t.watch(n,e)}),this.render()}},r.prototype.unbind=function(){if(this.props.length){var t=this.view,e=this.update;this.props.forEach(function(n){t.unwatch(n,e)}),this.job&&o.cancel(this.job)}},r.prototype.render=function(){var t=this.view.interpolate(this.text);null==t&&(t=""),i(this.attr)&&!t?this.node.removeAttribute(this.attr):this.node.setAttribute(this.attr,t)},r.prototype.update=function(){this.job&&o.cancel(this.job),this.job=o(this.render,this)},n.exports=r}),t.register("ripplejs~ripple@0.3.5/lib/child-binding.js",function(e,n){function r(t,e,n){this.update=this.update.bind(this),this.view=t,this.attrs=i(e),this.props=this.getProps();var r=this.values();r.yield=e.innerHTML,this.child=new n({owner:t,data:r}),this.child.replace(e),this.child.on("destroyed",this.unbind.bind(this)),this.node=this.child.el,this.bind()}var i=t("anthonyshort~attributes@0.0.1"),o=t("component~each@0.2.3"),s=t("yields~uniq@master"),c=t("anthonyshort~raf-queue@0.2.0");r.prototype.getProps=function(){var t=[],e=this.view.bindings.interpolator;return o(this.attrs,function(n,r){t=t.concat(e.props(r))}),s(t)},r.prototype.bind=function(){var t=this,e=this.view;this.props.forEach(function(n){e.watch(n,t.update)}),this.send()},r.prototype.values=function(){var t=this.view,e={};return o(this.attrs,function(n,r){e[n]=t.interpolate(r)}),e},r.prototype.send=function(){this.child.set(this.values())},r.prototype.unbind=function(){var t=this.view,e=this.update;this.props.forEach(function(n){t.unwatch(n,e)}),this.job&&c.cancel(this.job)},r.prototype.update=function(){this.job&&c.cancel(this.job),this.job=c(this.send,this)},n.exports=r}),t.register("ripplejs~array-observer@0.3.0",function(e,n){var r=t("component~emitter@1.1.2"),i=Array.prototype.slice;n.exports=function(t){function e(){var t=this,e=this.length,n=Array.prototype.push.apply(this,arguments);return this.slice(e,this.length).forEach(function(n,r){t.emit("add",n,e+r),t.emit("change")}),n}function n(){var t=this.length,e=Array.prototype.pop.apply(this,arguments);return this.emit("remove",e,t-1),this.emit("change"),e}function o(){var t=(this.length,Array.prototype.shift.apply(this,arguments));return this.emit("remove",t,0),this.emit("change"),t}function s(){var t=this,e=this.length,n=Array.prototype.unshift.apply(this,arguments);return this.slice(0,this.length-e).forEach(function(e,n){t.emit("add",e,n),t.emit("change")}),n}function c(t){var e=this,n=Array.prototype.splice.apply(this,arguments);return n.length&&n.forEach(function(n,r){e.emit("remove",n,t+r)}),arguments.length>2&&i.call(arguments,2).forEach(function(n,r){e.emit("add",n,t+r)}),this.emit("change"),n}function u(){var t=Array.prototype.reverse.apply(this,arguments);return this.emit("sort"),this.emit("change"),t}function a(){var t=Array.prototype.sort.apply(this,arguments);return this.emit("sort"),this.emit("change"),t}r(t);var p={pop:n,push:e,reverse:u,shift:o,sort:a,splice:c,unshift:s};for(var h in p)t[h]=p[h];return t}}),t.register("ripplejs~each@0.2.0",function(e,n){var r=t("ripplejs~array-observer@0.3.0");n.exports=function(t){t.directive("each",{bind:function(t){this.template=t.innerHTML,t.innerHTML="",this.previous={}},update:function(e,n,i){function o(){e.forEach(function(t,e){t.set("$index",e).appendTo(u.node)})}function s(e,n){var r={};"object"==typeof e&&(r=e),r.$index=n,r.$value=e;var o=new t({template:c,owner:i,scope:i,data:r});return o}var c=this.template,u=this,a=!1;if(n.innerHTML="",Array.isArray(e)===!1)throw new Error(e+" should be an array");this.previous.emitter&&this.previous.emitter.off(),this.previous.items&&this.previous.items.forEach(function(t){t.destroy()}),e.forEach(function(t,n){var r=s(t,n);e.splice(n,1,r)});var p=r(e);p.on("add",function(t,n){if(!a){var r=s(t,n);a=!0,e.splice(n,1,r),a=!1,o()}}),p.on("remove",function(e){e instanceof t&&(e.destroy(),o())}),p.on("sort",function(){o()}),o(),this.previous.items=e,this.previous.emitter=p},unbind:function(){this.previous.emitter&&this.previous.emitter.off(),this.previous.items&&this.previous.items.forEach(function(t){t.destroy()}),this.previous={}}})}}),t.register("ripplejs~events@0.1.2",function(t,e){var n=["change","click","dblclick","mousedown","mouseup","mouseenter","mouseleave","scroll","blur","focus","input","submit","keydown","keypress","keyup"];e.exports=function(t){n.forEach(function(e){t.directive("on-"+e,{update:function(t){this.callback&&this.node.removeEventListener(e,this.callback,!0),this.callback=t.bind(this.view),this.node.addEventListener(e,this.callback,!0)},unbind:function(){this.node.removeEventListener(e,this.callback,!0)}})})}}),t.register("ripplejs~bind-methods@0.1.0",function(t,e){e.exports=function(t){t.created(function(){for(var t in this)"function"==typeof this[t]&&(this[t]=this[t].bind(this))})}}),t.register("yields~merge@1.0.0",function(t,e){e.exports=function(t,e){for(var n in e)t[n]=e[n];return t}}),t.register("ripplejs~extend@0.1.0",function(e,n){var r=t("yields~merge@1.0.0");n.exports=function(t){t.extend=function(e){r(t.prototype,e)}}}),t.register("ripplejs~computed@0.1.0",function(t,e){e.exports=function(t){function e(){return r=[]}function n(){r=null}var r,i=t.prototype.get;t.computed=function(r,i,o){var s=arguments;return t.created(function(){var t=this;if(2===s.length){o=s[1],i=e(),o.call(t),n();var c=function(){t.set(r,o.call(t))}}else var c=function(){var e=i.map(t.get.bind(t));t.set(r,o.apply(t,e))};t.watch(i,c),c()}),this},t.prototype.get=function(t){return r&&r.push(t),i.apply(this,arguments)}}}),t.register("ripplejs~refs@0.1.2",function(t,e){e.exports=function(t){t.directive("ref",{bind:function(){this.view.refs=this.view.refs||{}},update:function(t){this.view.refs[t]=this.node},unbind:function(){this.view.refs=null}})}}),t.register("waves",function(e,n){var r=t("ripplejs~ripple@0.3.5"),i=t("ripplejs~events@0.1.2"),o=t("ripplejs~each@0.2.0"),s=t("ripplejs~refs@0.1.2"),c=t("ripplejs~bind-methods@0.1.0"),u=t("ripplejs~extend@0.1.0"),a=t("ripplejs~computed@0.1.0");n.exports=function(t){return r(t).use(i).use(o).use(s).use(c).use(u).use(a)}}),"object"==typeof exports?module.exports=t("waves"):"function"==typeof define&&define.amd?define([],function(){return t("waves")}):this.waves=t("waves")}();