/* Riot v3.1.0, @license MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.riot=t()}(this,function(){"use strict";function e(e){return vt.test(e)}function t(e){return bt.test(e)}function r(e){return typeof e===lt}function n(e){return e&&typeof e===ut}function i(e){return typeof e===ct}function o(e){return typeof e===st}function a(e){return i(e)||null===e||""===e}function s(e){return Array.isArray(e)||e instanceof Array}function u(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return i(e[t])||r&&r.writable}function c(e){return mt.test(e)}function l(e,t){return(t||document).querySelectorAll(e)}function p(e,t){return(t||document).querySelector(e)}function f(){return document.createDocumentFragment()}function h(){return document.createTextNode("")}function d(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg","svg"):document.createElement(e)}function g(e){if(e.outerHTML)return e.outerHTML;var t=d("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function m(e,t){if(i(e.innerHTML)){var r=(new DOMParser).parseFromString(t,"application/xml"),n=e.ownerDocument.importNode(r.documentElement,!0);e.appendChild(n)}else e.innerHTML=t}function v(e,t){e.removeAttribute(t)}function x(e,t){return e.getAttribute(t)}function y(e,t,r){var n=ft.exec(t);n&&n[1]?e.setAttributeNS(pt,n[1],r):e.setAttribute(t,r)}function b(e,t,r){e.insertBefore(t,r.parentNode&&r)}function w(e,t){if(e)for(var r;r=xt.exec(e);)t(r[1].toLowerCase(),r[2]||r[3]||r[4])}function _(e,t,r){if(e){var n,i=t(e,r);if(i===!1)return;for(e=e.firstChild;e;)n=e.nextSibling,_(e,t,i),e=n}}function O(e,t){for(var r,n=e?e.length:0,i=0;i<n;++i)r=e[i],t(r,i)===!1&&i--;return e}function C(e,t){return!!~e.indexOf(t)}function E(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function N(e,t){return e.slice(0,t.length)===t}function j(e,t,r,n){return Object.defineProperty(e,t,S({value:r,enumerable:!1,writable:!1,configurable:!0},n)),e}function S(e){for(var t,r=arguments,n=1;n<r.length;++n)if(t=r[n])for(var i in t)u(e,i)&&(e[i]=t[i]);return e}function T(e,t,r){var n=this.__.parent,i=this.__.item;if(!i)for(;n&&!i;)i=n.__.item,n=n.__.parent;if(u(r,"currentTarget")&&(r.currentTarget=e),u(r,"target")&&(r.target=r.srcElement),u(r,"which")&&(r.which=r.charCode||r.keyCode),r.item=i,t.call(this,r),!r.preventUpdate){var o=ue(this);o.isMounted&&o.update()}}function L(e,t,r,n){var i,o=T.bind(n,r,t);return r.addEventListener?(r[e]=null,i=e.replace(It,""),r._riotEvents||(r._riotEvents={}),r._riotEvents[e]&&r.removeEventListener(i,r._riotEvents[e]),r._riotEvents[e]=o,void r.addEventListener(i,o,!1)):void(r[e]=o)}function R(e,t){var r,n,i,o,a=Rt(e.value,t);return e.tag&&e.tagName===a?void e.tag.update():(n="VIRTUAL"===e.dom.tagName,e.tag&&(n&&(i=e.tag.__.head,o=h(),i.parentNode.insertBefore(o,i)),e.tag.unmount(!0)),e.impl=Je[a],r={root:e.dom,parent:t,hasImpl:!0,tagName:a},e.tag=se(e.impl,r,e.dom.innerHTML,t),O(e.attrs,function(t){return y(e.tag.root,t.name,t.value)}),e.tagName=a,e.tag.mount(),n&&me(e.tag,o||e.tag.root),void t.on("unmount",function(){var t=e.tag.opts.dataIs,r=e.tag.parent.tags,n=e.tag.__.parent.tags;he(r,t,e.tag),he(n,t,e.tag),e.tag.unmount()}))}function A(e){var t,n=e.dom,o=e.attr,a=C([ot,at],o),s=Rt(e.expr,this),u="riot-value"===o,c=e.root&&"VIRTUAL"===e.root.tagName,l=n&&(e.parent||n.parentNode);if(e.bool?s=!!s&&o:(i(s)||null===s)&&(s=""),e._riot_id)return void(e.isMounted?e.update():(e.mount(),c&&me(e,e.root)));if(t=e.value,e.value=s,e.update)return void e.update();if(e.isRtag&&s)return R(e,this);if(t!==s&&(!u||n.value!==s)){if(!o)return s+="",void(l&&(e.parent=l,"TEXTAREA"===l.tagName?(l.value=s,wt||(n.nodeValue=s)):n.nodeValue=s));if(e.isAttrRemoved&&s||(v(n,o),e.isAttrRemoved=!0),r(s))L(o,s,n,this);else if(a)o===at&&(s=!s),n.style.display=s?"":"none";else if(u)n.value=s;else if(N(o,Ye)&&o!==tt)o=o.slice(Ye.length),yt[o]&&(o=yt[o]),null!=s&&y(n,o,s);else{if("selected"===o&&l&&/^(SELECT|OPTGROUP)$/.test(l.tagName)&&s&&(l.value=n.value),e.bool&&(n[o]=s,!s))return;(0===s||s&&typeof s!==ut)&&y(n,o,s)}}}function M(e){O(e,A.bind(this))}function I(e,t,r,n){var i=n?Object.create(n):{};return i[e.key]=t,e.pos&&(i[e.pos]=r),i}function k(e,t){for(var r=t.length,n=e.length;r>n;)r--,$.apply(t[r],[t,r])}function $(e,t){e.splice(t,1),this.unmount(),he(this.parent,this,this.__.tagName,!0)}function H(e){var t=this;O(Object.keys(this.tags),function(r){var n=t.tags[r];s(n)?O(n,function(t){ae.apply(t,[r,e])}):ae.apply(n,[r,e])})}function P(e,t,r){r?xe.apply(this,[e,t]):b(e,this.root,t.root)}function F(e,t,r){r?ve.apply(this,[e,t]):b(e,this.root,t.root)}function z(e,t){t?ve.call(this,e):e.appendChild(this.root)}function B(e,t,r){v(e,nt);var n,i=typeof x(e,it)!==st||v(e,it),a=le(e),u=Je[a]||{tmpl:g(e)},c=e.parentNode,l=h(),p=re(e),d=ie(e),m=x(e,rt),y=[],b=[],w=!0,_=!1,E=!Je[a],N="VIRTUAL"===e.tagName;return r=Rt.loopKeys(r),r.isLoop=!0,m&&v(e,rt),d&&(_=Rt.hasExpr(d),oe(e)),c.insertBefore(l,e),c.removeChild(e),r.update=function(){var c=Rt(r.val,t),h=f(),g=d,v=!s(c)&&!o(c),x=l.parentNode;v?(n=c||!1,c=n?Object.keys(c).map(function(e){return I(r,c[e],e)}):[]):n=!1,m&&(c=c.filter(function(e,n){return r.key&&!v?!!Rt(m,I(r,e,n,t)):!!Rt(m,S(Object.create(t),e))})),g&&_&&(g=Rt(d,t)),g&&(t.refs[g]=[]),O(c,function(o,s){var l=i&&typeof o===ut&&!n,f=b.indexOf(o),d=!~f,m=!d&&l?f:s,v=y[m],_=s>=b.length,O=l&&d||!l&&!v;o=!n&&r.key?I(r,o,s):o,O?(v=new te(u,{parent:t,isLoop:w,isAnonymous:E,root:e.cloneNode(),item:o},e.innerHTML),v.mount(),_?z.apply(v,[h||x,N]):F.apply(v,[x,y[s],N]),_||b.splice(s,0,o),y.splice(s,0,v),p&&fe(t.tags,a,v,!0)):m!==s&&l&&(C(c,b[s])?(P.apply(v,[x,y[s],N]),y.splice(s,0,y.splice(m,1)[0]),b.splice(s,0,b.splice(m,1)[0])):($.apply(y[s],[y,s]),b.splice(s,1)),r.pos&&(v[r.pos]=s),!p&&v.tags&&H.call(v,s),g&&t.refs[g].push(E?v.root:v)),O||v.update(o),v.__.item=o,v.__.parent=t}),k(c,y),b=c.slice(),x.insertBefore(h,l)},r.unmount=function(){O(y,function(e){e.unmount()})},r}function V(e,t,r){var n=this,i={parent:{children:t}};return _(e,function(t,i){var o,a,s,u=t.nodeType,c=i.parent;if(!r&&t===e)return{parent:c};if(3===u&&"STYLE"!==t.parentNode.tagName&&Rt.hasExpr(t.nodeValue)&&c.children.push({dom:t,expr:t.nodeValue}),1!==u)return i;var l="VIRTUAL"===t.tagName;if(o=x(t,nt))return l&&y(t,"loopVirtual",!0),c.children.push(B(t,n,o)),!1;if(o=x(t,rt))return c.children.push(Object.create(kt).init(t,n,o)),!1;if((a=x(t,tt))&&Rt.hasExpr(a))return c.children.push({isRtag:!0,expr:a,dom:t,attrs:[].slice.call(t.attributes)}),!1;if(s=re(t),l&&(x(t,"virtualized")&&t.parentElement.removeChild(t),s||x(t,"virtualized")||x(t,"loopVirtual")||(s={tmpl:t.outerHTML})),s&&(t!==e||r)){if(!l||x(t,tt)){var p={root:t,parent:n,hasImpl:!0};return c.children.push(se(s,p,t.innerHTML,n)),!1}y(t,"virtualized",!0);var f=new te({tmpl:t.outerHTML},{root:t,parent:n},t.innerHTML);c.children.push(f)}return D.apply(n,[t,t.attributes,function(e,t){t&&c.children.push(t)}]),{parent:c}},i),{tree:i,root:e}}function D(e,r,n){var i=this;O(r,function(r){var o,a=r.name,s=t(a);C(et,a)?o=Object.create($t).init(e,i,a,r.value):Rt.hasExpr(r.value)&&(o={dom:e,expr:r.value,attr:r.name,bool:s}),n(r,o)})}function U(e,t,r){var n="o"===r[0],i=n?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+"</"+i,i=e.firstChild,n)i.selectedIndex=-1;else{var o=Bt[r];o&&1===i.childElementCount&&(i=p(o,i))}return i}function q(e,t){if(!Ht.test(e))return e;var r={};return t=t&&t.replace(Ft,function(e,t,n){return r[t]=r[t]||n,""}).trim(),e.replace(zt,function(e,t,n){return r[t]||n||""}).replace(Pt,function(e,r){return t||r||""})}function G(t,r,n){var i=t&&t.match(/^\s*<([-\w]+)/),o=i&&i[1].toLowerCase(),a=d(Dt,n&&e(o));return t=q(t,r),Vt.test(o)?a=U(a,t,o):m(a,t),a.stub=!0,a}function Z(e,t){var r=this,n=r.name,i=r.tmpl,o=r.css,a=r.attrs,s=r.onCreate;return Je[n]||(K(n,i,o,a,s),Je[n].class=this.constructor),ge(e,n,t,this),o&&Tt.inject(),this}function K(e,t,n,i,o){return r(i)&&(o=i,/^[\w\-]+\s?=/.test(n)?(i=n,n=""):i=""),n&&(r(n)?o=n:Tt.add(n)),e=e.toLowerCase(),Je[e]={name:e,tmpl:t,attrs:i,fn:o},e}function Q(e,t,r,n,i){r&&Tt.add(r,e);var o=!!Je[e];return Je[e]={name:e,tmpl:t,attrs:n,fn:i},o&&Jt.hotReloader&&Jt.hotReloader(e),e}function W(e,t,r){function i(e){if(e.tagName){var n=x(e,tt);t&&n!==t&&(n=t,y(e,tt,t));var o=ge(e,n||e.tagName.toLowerCase(),r);o&&a.push(o)}else e.length&&O(e,i)}var a=[];Tt.inject(),n(t)&&(r=t,t=0);var s,u;if(o(e)?(e="*"===e?u=ye():e+ye(e.split(/, */)),s=e?l(e):[]):s=e,"*"===t){if(t=u||ye(),s.tagName)s=l(t,s);else{var c=[];O(s,function(e){return c.push(l(t,e))}),s=c}t=0}return i(s),a}function J(e,t,o){if(n(e))return void J("__unnamed_"+Gt++,e,!0);var a=o?qt:Ut;if(!t){if(i(a[e]))throw new Error("Unregistered mixin: "+e);return a[e]}a[e]=r(t)?S(t.prototype,a[e]||{})&&t:S(a[e]||{},t)}function X(){return O(We,function(e){return e.update()})}function Y(e){delete Je[e]}function ee(e,t,r,n,i){if(!e||!r){var o=!r&&e?this:t||this;O(i,function(e){e.expr&&M.call(o,[e.expr]),n[E(e.name)]=e.expr?e.expr.value:e.value})}}function te(e,t,n){var i,a=S({},t.opts),s=t.parent,u=t.isLoop,c=t.isAnonymous,l=pe(t.item),p=[],f=[],h=[],d=t.root,g=t.tagName||le(d),m="virtual"===g,x=[];At(this),e.name&&d._tag&&d._tag.unmount(!0),this.isMounted=!1,d.isLoop=u,j(this,"__",{isAnonymous:c,instAttrs:p,innerHTML:n,tagName:g,virts:[],tail:null,head:null,parent:null,item:null}),j(this,"_riot_id",++Kt),S(this,{root:d,opts:a},l),j(this,"parent",s||null),j(this,"tags",{}),j(this,"refs",{}),i=G(e.tmpl,n,u),j(this,"update",function(e){return r(this.shouldUpdate)&&!this.shouldUpdate(e)?this:(e=pe(e),u&&c&&ne.apply(this,[this.parent,x]),S(this,e),ee.apply(this,[u,s,c,a,p]),this.isMounted&&this.trigger("update",e),M.call(this,h),this.isMounted&&this.trigger("updated"),this)}.bind(this)),j(this,"mixin",function(){var e=this;return O(arguments,function(t){var n,i,a=[];t=o(t)?J(t):t,n=r(t)?new t:t;var s=Object.getPrototypeOf(n);do a=a.concat(Object.getOwnPropertyNames(i||n));while(i=Object.getPrototypeOf(i||n));O(a,function(t){if("init"!==t){var i=Object.getOwnPropertyDescriptor(n,t)||Object.getOwnPropertyDescriptor(s,t),o=i&&(i.get||i.set);!e.hasOwnProperty(t)&&o?Object.defineProperty(e,t,i):e[t]=r(n[t])?n[t].bind(e):n[t]}}),n.init&&n.init.bind(e)()}),this}.bind(this)),j(this,"mount",function(){var t=this,r=this.__.parent;d._tag=this,D.apply(s,[d,d.attributes,function(e,r){!c&&$t.isPrototypeOf(r)&&(r.tag=t),e.expr=r,p.push(e)}]),f=[],w(e.attrs,function(e,t){f.push({name:e,value:t})}),D.apply(this,[d,f,function(e,t){t?h.push(t):y(d,e.name,e.value)}]),r&&c&&ne.apply(this,[r,x]),ee.apply(this,[u,s,c,a,p]);var n=J(Xe);if(n)for(var o in n)n.hasOwnProperty(o)&&t.mixin(n[o]);if(e.fn&&e.fn.call(this,a),this.trigger("before-mount"),V.apply(this,[i,h,!1]),this.update(l),u&&c)this.root=d=i.firstChild;else{for(;i.firstChild;)d.appendChild(i.firstChild);d.stub&&(d=s.root)}return j(this,"root",d),j(this,"isMounted",!0),!this.parent||this.parent.isMounted?this.trigger("mount"):this.parent.one("mount",function(){t.trigger("mount")}),this}.bind(this)),j(this,"unmount",function(t){var r,n=this,i=this.root,o=i.parentNode,a=We.indexOf(this);if(this.trigger("before-unmount"),w(e.attrs,function(e){N(e,Ye)&&(e=e.slice(Ye.length)),v(d,e)}),~a&&We.splice(a,1),o){if(s)r=ue(s),m?Object.keys(this.tags).forEach(function(e){he(r.tags,e,n.tags[e])}):(he(r.tags,g,this),s!==r&&he(s.tags,g,this));else for(;i.firstChild;)i.removeChild(i.firstChild);t?v(o,tt):o.removeChild(i)}return this.__.virts&&O(this.__.virts,function(e){e.parentNode&&e.parentNode.removeChild(e)}),ce(h),O(p,function(e){return e.expr&&e.expr.unmount&&e.expr.unmount()}),this.trigger("unmount"),this.off("*"),j(this,"isMounted",!1),delete this.root._tag,this}.bind(this))}function re(e){return e.tagName&&Je[x(e,tt)||x(e,tt)||e.tagName.toLowerCase()]}function ne(e,t){var r=this;O(Object.keys(e),function(n){var o=!c(n)&&C(t,n);(i(r[n])||o)&&(o||t.push(n),r[n]=e[n])})}function ie(e){return x(e,et[0])||x(e,et[1])}function oe(e){et.forEach(function(t){return v(e,t)})}function ae(e,t){var r,n=this.parent;n&&(r=n.tags[e],s(r)?r.splice(t,0,r.splice(r.indexOf(this),1)[0]):fe(n.tags,e,this))}function se(e,t,r,n){var i=new te(e,t,r),o=t.tagName||le(t.root,!0),a=ue(n);return j(i,"parent",a),i.__.parent=n,fe(a.tags,o,i),a!==n&&fe(n.tags,o,i),t.root.innerHTML="",i}function ue(e){for(var t=e;t.__.isAnonymous&&t.parent;)t=t.parent;return t}function ce(e){O(e,function(e){e instanceof te?e.unmount(!0):e.unmount&&e.unmount()})}function le(e,t){var r=re(e),n=!t&&x(e,tt);return n&&!Rt.hasExpr(n)?n:r?r.name:e.tagName.toLowerCase()}function pe(e){if(!(e instanceof te||e&&r(e.trigger)))return e;var t={};for(var n in e)mt.test(n)||(t[n]=e[n]);return t}function fe(e,t,r,n){var i=e[t],o=s(i);i&&i===r||(!i&&n?e[t]=[r]:i?(!o||o&&!C(i,r))&&(o?i.push(r):e[t]=[i,r]):e[t]=r)}function he(e,t,r,n){s(e[t])?(O(e[t],function(n,i){n===r&&e[t].splice(i,1)}),e[t].length?1!==e[t].length||n||(e[t]=e[t][0]):delete e[t]):delete e[t]}function de(e){for(;e;){if(e.inStub)return!0;e=e.parentNode}return!1}function ge(e,t,r,n){var i=Je[t],o=Je[t].class,a=n||(o?Object.create(o.prototype):{}),s=e._innerHTML=e._innerHTML||e.innerHTML;e.innerHTML="";var u={root:e,opts:r};return r&&r.parent&&(u.parent=r.parent),i&&e&&te.apply(a,[i,u,s]),a&&a.mount&&(a.mount(!0),C(We,a)||We.push(a)),a}function me(e,t){var r=f();ve.call(e,r),t.parentNode.replaceChild(r,t)}function ve(e,t){var r,n,i=this,o=h(),a=h(),s=f();for(this.__.head=this.root.insertBefore(o,this.root.firstChild),this.__.tail=this.root.appendChild(a),n=this.__.head;n;)r=n.nextSibling,s.appendChild(n),i.__.virts.push(n),n=r;t?e.insertBefore(s,t.__.head):e.appendChild(s)}function xe(e,t){for(var r,n=this,i=this.__.head,o=f();i;)if(r=i.nextSibling,o.appendChild(i),i=r,i===n.__.tail){o.appendChild(i),e.insertBefore(o,t.__.head);break}}function ye(e){if(!e){var t=Object.keys(Je);return t+ye(t)}return e.filter(function(e){return!/[^-\w]/.test(e)}).reduce(function(e,t){var r=t.trim().toLowerCase();return e+",["+tt+'="'+r+'"]'},"")}function be(e){var t=arguments,r=e.source,n=e.global?"g":"";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m");for(var i=1;i<arguments.length;i++)r=r.replace("@","\\"+t[i]);return new RegExp(r,n)}function we(e){var t,r=hr;for(~e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n")),r.lastIndex=0;t=r.exec(e);)"<"===t[0][0]&&(e=RegExp.leftContext+RegExp.rightContext,r.lastIndex=t[3]+1);return e}function _e(e,t){var r,n,i,o=[];for(fr.lastIndex=0,e=e.replace(/\s+/g," ");r=fr.exec(e);){var a=r[1].toLowerCase(),s=r[2];s?(s[0]!==Nr&&(s=Nr+(s[0]===jr?s.slice(1,-1):s)+Nr),"type"===a&&yr.test(s)?n=s:(_r.test(s)&&("value"===a&&(i=1),~mr.indexOf(a)&&(a="riot-"+a)),o.push(a+"="+s))):o.push(a)}return n&&(i&&(n=Nr+t._bp[0]+jr+n.slice(1,-1)+jr+t._bp[1]+Nr),o.push("type="+n)),o.join(" ")}function Oe(e,t,r){var n=r._bp;if(e&&n[4].test(e)){for(var i,o=t.expr&&(t.parser||t.type)?Se:0,a=Lt.split(e,0,n),s=1;s<a.length;s+=2)i=a[s],"^"===i[0]?i=i.slice(1):o&&(i=o(i,t).trim(),";"===i.slice(-1)&&(i=i.slice(0,-1))),a[s]=Cr+(r.push(i)-1)+n[1];e=a.join("")}return e}function Ce(e,t){return t.length&&(e=e.replace(Or,function(e,r){return t._bp[0]+t[r].trim().replace(/[\r\n]+/g," ").replace(/"/g,Er)})),e}function Ee(e,t,r){if(!/\S/.test(e))return"";if(e=Oe(e,t,r).replace(dr,function(e,t,n,i){return t=t.toLowerCase(),i=i&&!vr.test(t)?"></"+t:"",n&&(t+=" "+_e(n,r)),"<"+t+i+">"}),!t.whitespace){var n=[];/<pre[\s>]/.test(e)&&(e=e.replace(xr,function(e){return n.push(e),""})),e=e.trim().replace(/\s+/g," "),n.length&&(e=e.replace(/\u0002/g,function(){return n.shift()}))}return t.compact&&(e=e.replace(gr,"><$1")),Ce(e,r).replace(wr,"")}function Ne(e,t,r){return Array.isArray(t)?(r=t,t={}):(r||(r=[]),t||(t={})),r._bp=Lt.array(t.brackets),Ee(we(e),t,r)}function je(e){function t(e,t,r){for(t.lastIndex=0;r=t.exec(e);)"/"!==r[0][0]||r[1]||r[2]||(e=u.leftContext+" "+u.rightContext,t.lastIndex=r[3]+1);return e}function r(e,t){var r,n=1;for(t.lastIndex=0;n&&(r=t.exec(e));)"{"===r[0]?++n:"}"===r[0]&&--n;return n?e.length:t.lastIndex}var n,i,o,a,s=[],u=RegExp;for(~e.indexOf("/")&&(e=t(e,Lr));n=e.match(Sr);)s.push(u.leftContext),e=u.rightContext,o=r(e,Tr),a=n[1],i=!/^(?:if|while|for|switch|catch|function)$/.test(a),a=i?n[0].replace(a,"this."+a+" = function"):n[0],s.push(a,e.slice(0,o)),e=e.slice(o),i&&!/^\s*.\s*bind\b/.test(e)&&s.push(".bind(this)");return s.length?s.join("")+e:e}function Se(e,t,r,n,i){if(!/\S/.test(e))return"";r||(r=t.type);var o=t.parser||r&&ur._req("js."+r,!0)||je;return o(e,n,i).replace(/\r\n?/g,"\n").replace(wr,"")}function Te(e,t,r,n){return"string"==typeof t&&(n=r,r=t,t={}),r&&"object"==typeof r&&(n=r,r=""),n||(n={}),Se(e,t||{},r,n.parserOptions,n.url)}function Le(e,t){var r=":scope";return t.replace(Rr,function(t,n,i){return i?(i=i.replace(/[^,]+/g,function(t){var n=t.trim();return 0===n.indexOf(e)?t:n&&"from"!==n&&"to"!==n&&"%"!==n.slice(-1)?n=n.indexOf(r)<0?e+" "+n+',[data-is="'+e+'"] '+n:n.replace(r,e)+","+n.replace(r,'[data-is="'+e+'"]'):t}),n?n+" "+i:i):t})}function Re(e,t,r,n){if(n=n||{},r&&"css"!==r){var i=ur._req("css."+r,!0);e=i(t,e,n.parserOpts||{},n.url)}return e=e.replace(Lt.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(e=Le(t,e)),e}function Ae(e,t,r){return t&&"object"==typeof t?(r=t,t=""):r||(r={}),Re(e,r.tagName,t,r)}function Me(e,t){return e?(e=jr+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+jr,t&&~e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function Ie(e,t,r,n,i,o,a){var s=a.debug?",\n  ":", ",u="});";return i&&"\n"!==i.slice(-1)&&(u="\n"+u),o+"riot.tag2('"+e+jr+s+Me(t,1)+s+Me(r)+s+Me(n)+", function(opts) {\n"+i+u}function ke(e){if(/<[-\w]/.test(e))for(var t,r=e.lastIndexOf("<"),n=e.length;~r;){if(t=e.slice(r,n).match(Ir))return r+=t.index+t[0].length,t=e.slice(0,r),"<-/>\n"===t.slice(-5)&&(t=t.slice(0,-5)),[t,e.slice(r)];n=r,r=e.lastIndexOf("<",r-1)}return["",e]}function $e(e){if(e){var t=e.match(Ar);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function He(e,t){if(e){var r=e.match(RegExp("\\s"+t+Mr,"i"));if(r=r&&r[1])return/^['"]/.test(r)?r.slice(1,-1):r}return""}function Pe(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'")}function Fe(e){var t=Pe(He(e,"options"));return t?JSON.parse(t):null}function ze(e,t,r,n){var i=$e(r),o=He(r,"src"),a=cr({},t.parserOptions.js);return!o&&Se(e,t,i,cr(a,Fe(r)),n)}function Be(e,t,r,n,i){var o=cr({},t.parserOptions.style),a={parserOpts:cr(o,Fe(r)),url:n};return Re(e,i,$e(r)||t.style,a)}function Ve(e,t,r,n){var i=ur._req("html."+r,!0);return i(e,n,t)}function De(e,t,r){var n,i=[],o={template:{},js:{},style:{}};t||(t={}),t.parserOptions=cr(o,t.parserOptions||{}),n=t.exclude?function(e){return t.exclude.indexOf(e)<0}:function(){return 1},r||(r="");var a=Lt.array(t.brackets);return t.template&&(e=Ve(e,r,t.template,t.parserOptions.template)),e=we(e).replace(kr,function(e,o,s,u,c,l){var p="",f="",h="",d="",g=[];if(g._bp=a,s=s.toLowerCase(),u=u&&n("attribs")?Ce(_e(Oe(u,t,g),g),g):"",(c||(c=l))&&/\S/.test(c))if(l)n("html")&&(h=Ee(l,t,g));else{c=c.replace(RegExp("^"+o,"gm"),""),c=c.replace($r,function(e,i,o){if(n("js")){var a=ze(o,t,i,r);a&&(p+=(p?"\n":"")+a)}return""}),c=c.replace(Hr,function(e,i,o){return n("css")&&(f+=(f?" ":"")+Be(o,t,i,r,s)),""});var m=ke(c.replace(wr,""));n("html")&&(h=Ee(m[0],t,g)),n("js")&&(c=Se(m[1],t,null,null,r),c&&(p+=(p?"\n":"")+c),p=p.replace(br,function(e){return d+=e.trim()+"\n",""}))}return p=/\S/.test(p)?p.replace(/\n{3,}/g,"\n\n"):"",t.entities?(i.push({tagName:s,html:h,css:f,attribs:u,js:p,imports:d}),""):Ie(s,h,f,u,p,d,t)}),t.entities?i:e}function Ue(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&(200===n.status||!n.status&&n.responseText.length)&&t(n.responseText,r,e)},n.open("GET",e,!0),n.send("")}function qe(e,t){if(typeof e===st){var r=d("script"),n=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),r.text=e,n.appendChild(r),n.removeChild(r)}}function Ge(e,t){function r(){jt.trigger("ready"),St=!0,e&&e()}function n(e,t,n){var i=Fr.compile(e,t,n);qe(i,n),--o||r()}var i=l('script[type="riot/tag"]'),o=i.length;if(o)for(var a=0;a<i.length;++a){var s=i[a],u=S({template:x(s,"template")},t),c=x(s,"src")||x(s,"data-src");c?Ue(c,n,u):n(s.innerHTML,u)}else r()}function Ze(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r;return Br(function(){r=tr.apply(sr,e)}),r}var Ke,Qe,We=[],Je={},Xe="__global_mixin",Ye="riot-",et=["ref","data-ref"],tt="data-is",rt="if",nt="each",it="no-reorder",ot="show",at="hide",st="string",ut="object",ct="undefined",lt="function",pt="http://www.w3.org/1999/xlink",ft=/^xlink:(\w+)/,ht=typeof window===ct?void 0:window,dt=/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/,gt=/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,mt=/^(?:_(?:item|id|parent)|update|root|(?:un)?mount|mixin|is(?:Mounted|Loop)|tags|refs|parent|opts|trigger|o(?:n|ff|ne))$/,vt=/^(altGlyph|animate(?:Color)?|circle|clipPath|defs|ellipse|fe(?:Blend|ColorMatrix|ComponentTransfer|Composite|ConvolveMatrix|DiffuseLighting|DisplacementMap|Flood|GaussianBlur|Image|Merge|Morphology|Offset|SpecularLighting|Tile|Turbulence)|filter|font|foreignObject|g(?:lyph)?(?:Ref)?|image|line(?:arGradient)?|ma(?:rker|sk)|missing-glyph|path|pattern|poly(?:gon|line)|radialGradient|rect|stop|svg|switch|symbol|text(?:Path)?|tref|tspan|use)$/,xt=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,yt={viewbox:"viewBox"},bt=/^(?:disabled|checked|readonly|required|allowfullscreen|auto(?:focus|play)|compact|controls|default|formnovalidate|hidden|ismap|itemscope|loop|multiple|muted|no(?:resize|shade|validate|wrap)?|open|reversed|seamless|selected|sortable|truespeed|typemustmatch)$/,wt=0|(ht&&ht.document||{}).documentMode,_t=Object.freeze({isSVGTag:e,isBoolAttr:t,isFunction:r,isObject:n,isUndefined:i,isString:o,isBlank:a,isArray:s,isWritable:u,isReservedName:c}),Ot=Object.freeze({$$:l,$:p,createFrag:f,createDOMPlaceholder:h,mkEl:d,getOuterHTML:g,setInnerHTML:m,remAttr:v,getAttr:x,setAttr:y,safeInsert:b,walkAttrs:w,walkNodes:_}),Ct={},Et=[],Nt=!1;ht&&(Ke=function(){var e=d("style");y(e,"type","text/css");var t=p("style[type=riot]");return t?(t.id&&(e.id=t.id),t.parentNode.replaceChild(e,t)):document.getElementsByTagName("head")[0].appendChild(e),e}(),Qe=Ke.styleSheet);var jt,St,Tt={styleNode:Ke,add:function(e,t){t?Ct[t]=e:Et.push(e),Nt=!0},inject:function(){if(ht&&Nt){Nt=!1;var e=Object.keys(Ct).map(function(e){return Ct[e]}).concat(Et).join("\n");Qe?Qe.cssText=e:Ke.innerHTML=e}}},Lt=function(e){function t(e){return e}function r(e,t){return t||(t=y),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?c:"")}function n(e){if(e===m)return v;var t=e.split(" ");if(2!==t.length||h.test(e))throw new Error('Unsupported brackets "'+e+'"');return t=t.concat(e.replace(d,"\\").split(" ")),t[4]=r(t[1].length>1?/{[\S\s]*?}/:v[4],t),t[5]=r(e.length>3?/\\({|})/g:v[5],t),t[6]=r(v[6],t),t[7]=RegExp("\\\\("+t[3]+")|([[({])|("+t[3]+")|"+f,c),t[8]=e,t}function i(e){return e instanceof RegExp?s(e):y[e]}function o(e){(e||(e=m))!==y[8]&&(y=n(e),s=e===m?t:r,y[9]=s(v[9])),x=e}function a(e){var t;e=e||{},t=e.brackets,Object.defineProperty(e,"brackets",{set:o,get:function(){return x},enumerable:!0}),u=e,o(t)}var s,u,c="g",l=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,p=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'/g,f=p.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?(\/)[gim]*/.source,h=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),d=/(?=[[\]()*+?.^$|])/g,g={"(":RegExp("([()])|"+f,c),"[":RegExp("([[\\]])|"+f,c),"{":RegExp("([{}])|"+f,c)},m="{ }",v=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+f,c),m,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],x=e,y=[];return i.split=function(e,t,r){function n(e){t||a?c.push(e&&e.replace(r[5],"$1")):c.push(e)}function i(e,t,r){var n,i=g[t];for(i.lastIndex=r,r=1;(n=i.exec(e))&&(!n[1]||(n[1]===t?++r:--r)););return r?e.length:i.lastIndex}r||(r=y);var o,a,s,u,c=[],l=r[6];for(a=s=l.lastIndex=0;o=l.exec(e);){if(u=o.index,a){if(o[2]){l.lastIndex=i(e,o[2],l.lastIndex);continue}if(!o[3])continue}o[1]||(n(e.slice(s,u)),s=l.lastIndex,l=r[6+(a^=1)],l.lastIndex=s)}return e&&s<e.length&&n(e.slice(s)),c},i.hasExpr=function(e){return y[4].test(e)},i.loopKeys=function(e){var t=e.match(y[9]);return t?{key:t[1],pos:t[2],val:y[0]+t[3].trim()+y[1]}:{val:e.trim()}},i.array=function(e){return e?n(e):y},Object.defineProperty(i,"settings",{set:a,get:function(){return u}}),i.settings="undefined"!=typeof riot&&riot.settings||{},i.set=o,i.R_STRINGS=p,i.R_MLCOMMS=l,i.S_QBLOCKS=f,i}(),Rt=function(){function e(e,n){return e?(a[e]||(a[e]=r(e))).call(n,t):e}function t(t,r){t.riotData={tagName:r&&r.__&&r.__.tagName,_riot_id:r&&r._riot_id},e.errorHandler?e.errorHandler(t):"undefined"!=typeof console&&"function"==typeof console.error&&(t.riotData.tagName&&console.error("Riot template error thrown in the <%s> tag",t.riotData.tagName),console.error(t))}function r(e){var t=n(e);return"try{return "!==t.slice(0,11)&&(t="return "+t),new Function("E",t+";")}function n(e){var t,r=[],n=Lt.split(e.replace(l,'"'),1);if(n.length>2||n[0]){var o,a,s=[];for(o=a=0;o<n.length;++o)t=n[o],t&&(t=1&o?i(t,1,r):'"'+t.replace(/\\/g,"\\\\").replace(/\r\n?|\n/g,"\\n").replace(/"/g,'\\"')+'"')&&(s[a++]=t);t=a<2?s[0]:"["+s.join(",")+'].join("")'}else t=i(n[1],0,r);return r[0]&&(t=t.replace(p,function(e,t){return r[t].replace(/\r/g,"\\r").replace(/\n/g,"\\n")})),t}function i(e,t,r){function n(t,r){var n,i=1,o=f[t];for(o.lastIndex=r.lastIndex;n=o.exec(e);)if(n[0]===t)++i;else if(!--i)break;r.lastIndex=i?e.length:o.lastIndex}if(e=e.replace(c,function(e,t){return e.length>2&&!t?s+(r.push(e)-1)+"~":e}).replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var i,a=[],l=0;e&&(i=e.match(u))&&!i.index;){var p,h,d=/,|([[{(])|$/g;for(e=RegExp.rightContext,p=i[2]?r[i[2]].slice(1,-1).trim().replace(/\s+/g," "):i[1];h=(i=d.exec(e))[1];)n(h,d);h=e.slice(0,i.index),e=RegExp.rightContext,a[l++]=o(h,1,p)}e=l?l>1?"["+a.join(",")+'].join(" ").trim()':a[0]:o(e,t)}return e}function o(e,t,r){var n;return e=e.replace(d,function(e,t,r,i,o){return r&&(i=n?0:i+e.length,"this"!==r&&"global"!==r&&"window"!==r?(e=t+'("'+r+h+r,i&&(n="."===(o=o[i])||"("===o||"["===o)):i&&(n=!g.test(o.slice(i)))),e}),n&&(e="try{return "+e+"}catch(e){E(e,this)}"),r?e=(n?"function(){"+e+"}.call(this)":"("+e+")")+'?"'+r+'":""':t&&(e="function(v){"+(n?e.replace("return ","v="):"v=("+e+")")+';return v||v===0?v:""}.call(this)'),e}var a={};e.hasExpr=Lt.hasExpr,e.loopKeys=Lt.loopKeys,e.clearCache=function(){a={}},e.errorHandler=null;var s=String.fromCharCode(8279),u=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,c=RegExp(Lt.S_QBLOCKS,"g"),l=/\u2057/g,p=/\u2057(\d+)~/g,f={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g},h='"in this?this:'+("object"!=typeof window?"global":"window")+").",d=/[,{][\$\w]+(?=:)|(^ *|[^$\w\.{])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,g=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;return e.version=Lt.version="v3.0.2",e}(),At=function(e){e=e||{};var t={},r=Array.prototype.slice;return Object.defineProperties(e,{on:{value:function(r,n){return"function"==typeof n&&(t[r]=t[r]||[]).push(n),e},enumerable:!1,writable:!1,configurable:!1},off:{value:function(r,n){if("*"!=r||n)if(n)for(var i,o=t[r],a=0;i=o&&o[a];++a)i==n&&o.splice(a--,1);else delete t[r];else t={};return e},enumerable:!1,writable:!1,configurable:!1},one:{value:function(t,r){function n(){e.off(t,n),r.apply(e,arguments)}return e.on(t,n)},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(n){var i,o,a,s=arguments,u=arguments.length-1,c=new Array(u);for(a=0;a<u;a++)c[a]=s[a+1];for(i=r.call(t[n]||[],0),a=0;o=i[a];++a)o.apply(e,c);return t["*"]&&"*"!=n&&e.trigger.apply(e,["*",n].concat(c)),e},enumerable:!1,writable:!1,configurable:!1}}),e},Mt=Object.freeze({each:O,contains:C,toCamel:E,startsWith:N,defineProperty:j,extend:S}),It=/^on/,kt={init:function(e,t,r){v(e,rt),this.tag=t,this.expr=r,this.stub=document.createTextNode(""),this.pristine=e;var n=e.parentNode;return n.insertBefore(this.stub,e),n.removeChild(e),this},update:function(){var e=Rt(this.expr,this.tag);e&&!this.current?(this.current=this.pristine.cloneNode(!0),this.stub.parentNode.insertBefore(this.current,this.stub),this.expressions=[],V.apply(this.tag,[this.current,this.expressions,!0])):!e&&this.current&&(ce(this.expressions),this.current._tag?this.current._tag.unmount():this.current.parentNode&&this.current.parentNode.removeChild(this.current),this.current=null,this.expressions=[]),e&&M.call(this.tag,this.expressions)},unmount:function(){ce(this.expressions||[]),delete this.pristine,delete this.parentNode,delete this.stub}},$t={init:function(e,t,r,n){return this.dom=e,this.attr=r,this.rawValue=n,this.parent=t,this.hasExp=Rt.hasExpr(n),this.firstRun=!0,this},update:function(){var e=this.rawValue;if(this.hasExp&&(e=Rt(this.rawValue,this.parent)),this.firstRun||e!==this.value){var t=this.parent&&ue(this.parent),r=this.tag||this.dom;!a(this.value)&&t&&he(t.refs,this.value,r),a(e)?v(this.dom,this.attr):(t&&fe(t.refs,e,r),y(this.dom,this.attr,e)),this.value=e,this.firstRun=!1}},unmount:function(){var e=this.tag||this.dom,t=this.parent&&ue(this.parent);!a(this.value)&&t&&he(t.refs,this.value,e),delete this.dom,delete this.parent}},Ht=/<yield\b/i,Pt=/<yield\s*(?:\/>|>([\S\s]*?)<\/yield\s*>|>)/gi,Ft=/<yield\s+to=['"]([^'">]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,zt=/<yield\s+from=['"]?([-\w]+)['"]?\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,Bt={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Vt=wt&&wt<10?dt:gt,Dt="div",Ut={},qt=Ut[Xe]={},Gt=0,Zt=Object.freeze({Tag:Z,tag:K,tag2:Q,mount:W,mixin:J,update:X,unregister:Y}),Kt=0,Qt=Object.freeze({getTag:re,inheritFrom:ne,getRefAttr:ie,remRefAttr:oe,moveChildTag:ae,initChildTag:se,getImmediateCustomParentTag:ue,unmountAll:ce,getTagName:le,cleanUpData:pe,arrayishAdd:fe,arrayishRemove:he,isInStub:de,mountTo:ge,makeReplaceVirtual:me,makeVirtual:ve,moveVirtual:xe,selectTags:ye}),Wt=Object.create(Lt.settings),Jt={tmpl:Rt,brackets:Lt,styleManager:Tt,vdom:We,styleNode:Tt.styleNode,dom:Ot,check:_t,misc:Mt,tags:Qt},Xt=Z,Yt=K,er=Q,tr=W,rr=J,nr=X,ir=Y,or=At,ar=S({},Zt,{observable:At,settings:Wt,util:Jt}),sr=Object.freeze({settings:Wt,util:Jt,Tag:Xt,tag:Yt,tag2:er,mount:tr,mixin:rr,update:nr,unregister:ir,observable:or,default:ar}),ur=function(e){function t(t){var r=e[t];if(r)return r;throw new Error('Parser "'+t+'" not loaded.')}function r(e){var t=e.split(".");if(2!==t.length)throw new Error("Bad format for parsers._req");var r=o[t[0]][t[1]];if(r)return r;throw new Error('Parser "'+e+'" not found.')}function n(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function i(e,r,i,o){return i=n({pretty:!0,filename:o,doctype:"html"},i),t(e).render(r,i)}var o={};return o.html={jade:function(e,t,r){return console.log('DEPRECATION WARNING: jade was renamed "pug" - The jade parser will be removed in riot@3.0.0!'),i("jade",e,t,r)},pug:function(e,t,r){return i("pug",e,t,r)}},o.css={less:function(e,r,i,o){var a;return i=n({sync:!0,syncImport:!0,filename:o},i),t("less").render(r,i,function(e,t){if(e)throw e;a=t.css}),a}},o.js={es6:function(e,r,i){return t("babel").transform(e,n({filename:i},r)).code},buble:function(e,r,i){return r=n({source:i,modules:!1},r),t("buble").transform(e,r).code},coffee:function(e,r){return t("CoffeeScript").compile(e,n({bare:!0},r))},livescript:function(e,r){return t("livescript").compile(e,n({bare:!0,header:!1},r))},typescript:function(e,r){return t("typescript")(e,r)},none:function(e){return e}},o.js.javascript=o.js.none,o.js.coffeescript=o.js.coffee,o._req=r,o.utils={extend:n},o}(window||global),cr=ur.utils.extend,lr=/"[^"\n\\]*(?:\\[\S\s][^"\n\\]*)*"|'[^'\n\\]*(?:\\[\S\s][^'\n\\]*)*'/.source,pr=Lt.R_STRINGS.source,fr=/ *([-\w:\xA0-\xFF]+) ?(?:= ?('[^']*'|"[^"]*"|\S+))?/g,hr=RegExp(/<!--(?!>)[\S\s]*?-->/.source+"|"+lr,"g"),dr=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'\/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"\/>]*)*)|\s*)(\/?)>/g,gr=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,mr=["style","src","d","value"],vr=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,xr=/<pre(?:\s+(?:[^">]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,yr=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,br=/^\s*import(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,wr=/[ \t]+$/gm,_r=be(/@#\d/,"x01"),Or=be(/@#(\d+)/g,"x01"),Cr="#",Er="⁗",Nr='"',jr="'",Sr=/^[ \t]*([$_A-Za-z][$\w]*)\s*\([^()]*\)\s*{/m,Tr=RegExp("[{}]|"+Lt.S_QBLOCKS,"g"),Lr=RegExp(Lt.R_MLCOMMS.source+"|//[^\r\n]*|"+Lt.S_QBLOCKS,"g"),Rr=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+lr,"g"),Ar=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,Mr="\\s*=\\s*("+pr+"|{[^}]+}|\\S+)",Ir=/\/>\n|^<(?:\/?-?[A-Za-z][-\w\xA0-\xFF]*\s*|-?[A-Za-z][-\w\xA0-\xFF]*\s+[-\w:\xA0-\xFF][\S\s]*?)>\n/,kr=RegExp(/^([ \t]*)<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^'"\/>]+(?:(?:@|\/[^>])[^'"\/>]*)*)|\s*)?(?:\/>|>[ \t]*\n?([\S\s]*)^\1<\/\2\s*>|>(.*)<\/\2\s*>)/.source.replace("@",pr),"gim"),$r=/<script(\s+[^>]*)?>\n?([\S\s]*?)<\/script\s*>/gi,Hr=/<style(\s+[^>]*)?>\n?([\S\s]*?)<\/style\s*>/gi,Pr="v3.1.2",Fr={
compile:De,compileHTML:Ne,compileCSS:Ae,compileJS:Te,parsers:ur,version:Pr},zr=Fr.parsers,Br=function(e,t,i){if(typeof e===st){if(n(t)&&(i=t,t=!1),/^\s*</m.test(e)){var o=Fr.compile(e,i);return t!==!0&&qe(o),r(t)&&t(o,e,i),o}Ue(e,function(e,r,n){var i=Fr.compile(e,r,n);qe(i,n),t&&t(i,e,r)},i)}else if(s(e)){var a=e.length;e.forEach(function(e){Ue(e,function(e,r,n){var i=Fr.compile(e,r,n);qe(i,n),a--,!a&&t&&t(i,e,r)},i)})}else{if(r(e)?(i=t,t=e):(i=e,t=void 0),St)return t&&t();jt?t&&jt.on("ready",t):(jt=At(),Ge(t,i))}},Vr=S({},sr,{mount:Ze,compile:Br,parsers:zr});return Vr});
