/* Riot v3.3.1, @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 gt.test(e)}function t(e){return xt.test(e)}function r(e){return typeof e===ut}function n(e){return e&&typeof e===st}function i(e){return typeof e===at}function o(e){return typeof e===ot}function s(e){return i(e)||null===e||""===e}function a(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 dt.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=lt.exec(t);n&&n[1]?e.setAttributeNS(ct,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=mt.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;in;)r--,H.apply(t[r],[t,r])}function H(e,t){e.splice(t,1),this.unmount(),pe(this.parent,this,this.__.tagName,!0)}function $(e){var t=this;O(Object.keys(this.tags),function(r){var n=t.tags[r];a(n)?O(n,function(t){ie.apply(t,[r,e])}):ie.apply(n,[r,e])})}function F(e,t,r){r?me.apply(this,[e,t]):b(e,this.root,t.root)}function P(e,t,r){r?ge.apply(this,[e,t]):b(e,this.root,t.root)}function z(e,t){t?ge.call(this,e):e.appendChild(this.root)}function B(e,t,r){v(e,tt);var n,i=typeof x(e,rt)!==ot||v(e,rt),s=ue(e),u=Qe[s],c=e.parentNode,l=h(),p=re(e),d=x(e,et),g=[],m=[],y=!0,b=!Qe[s],w="VIRTUAL"===e.tagName;return r=Tt.loopKeys(r),r.isLoop=!0,d&&v(e,et),c.insertBefore(l,e),c.removeChild(e),r.update=function(){var c=Tt(r.val,t),h=f(),v=!a(c)&&!o(c),x=l.parentNode;v?(n=c||!1,c=n?Object.keys(c).map(function(e){return k(r,c[e],e)}):[]):n=!1,d&&(c=c.filter(function(e,n){return r.key&&!v?!!Tt(d,k(r,e,n,t)):!!Tt(d,S(Object.create(t),e))})),O(c,function(o,a){var l=i&&typeof o===st&&!n,f=m.indexOf(o),d=f===-1,v=!d&&l?f:a,_=g[v],O=a>=m.length,N=l&&d||!l&&!_;o=!n&&r.key?k(r,o,a):o,N?(_=new te(u,{parent:t,isLoop:y,isAnonymous:b,tagName:s,root:e.cloneNode(b),item:o,index:a},e.innerHTML),_.mount(),O?z.apply(_,[h||x,w]):P.apply(_,[x,g[a],w]),O||m.splice(a,0,o),g.splice(a,0,_),p&&le(t.tags,s,_,!0)):v!==a&&l&&(C(c,m[v])?(F.apply(_,[x,g[a],w]),g.splice(a,0,g.splice(v,1)[0]),m.splice(a,0,m.splice(v,1)[0])):(H.apply(g[a],[g,a]),m.splice(a,1)),r.pos&&(_[r.pos]=a),!p&&_.tags&&$.call(_,a)),_.__.item=o,_.__.index=a,_.__.parent=t,N||_.update(o)}),I(c,g),m=c.slice(),x.insertBefore(h,l)},r.unmount=function(){O(g,function(e){e.unmount()})},r}function V(e,t,r){var n=this,i={parent:{children:t}};return _(e,function(t,i){var o,s,a,u=t.nodeType,c=i.parent;if(!r&&t===e)return{parent:c};if(3===u&&"STYLE"!==t.parentNode.tagName&&Tt.hasExpr(t.nodeValue)&&c.children.push({dom:t,expr:t.nodeValue}),1!==u)return i;var l="VIRTUAL"===t.tagName;if(o=x(t,tt))return l&&y(t,"loopVirtual",!0),c.children.push(B(t,n,o)),!1;if(o=x(t,et))return c.children.push(Object.create(kt).init(t,n,o)),!1;if((s=x(t,Ye))&&Tt.hasExpr(s))return c.children.push({isRtag:!0,expr:s,dom:t,attrs:[].slice.call(t.attributes)}),!1;if(a=re(t),l&&(x(t,"virtualized")&&t.parentElement.removeChild(t),a||x(t,"virtualized")||x(t,"loopVirtual")||(a={tmpl:t.outerHTML})),a&&(t!==e||r)){if(!l||x(t,Ye)){var p={root:t,parent:n,hasImpl:!0};return c.children.push(oe(a,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 U.apply(n,[t,t.attributes,function(e,t){t&&c.children.push(t)}]),{parent:c}},i),{tree:i,root:e}}function U(e,r,n){var i=this;O(r,function(r){var o,s=r.name,a=t(s);C(Xe,s)?o=Object.create(It).init(e,i,s,r.value):Tt.hasExpr(r.value)&&(o={dom:e,expr:r.value,attr:r.name,bool:a}),n(r,o)})}function D(e,t,r){var n="o"===r[0],i=n?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+""}),!t.whitespace){var n=[];/]/.test(e)&&(e=e.replace(vr,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(dr,"><$1")),_e(e,r).replace(br,"")}function Ce(e,t,r){return Array.isArray(t)?(r=t,t={}):(r||(r=[]),t||(t={})),r._bp=St.array(t.brackets),Oe(ye(e),t,r)}function Ne(e){function t(e,t,r){for(t.lastIndex=0;r=t.exec(e);)"/"!==r[0][0]||r[1]||r[2]||(e=l.leftContext+" "+l.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,s,a,u,c=[],l=RegExp;for(~e.indexOf("/")&&(e=t(e,Tr));n=e.match(Er);)c.push(l.leftContext),e=l.rightContext,o=r(e,Sr),s=n[1],a=n[2]||"",u=n[3],i=!/^(?:if|while|for|switch|catch|function)$/.test(u),u=i?n[0].replace(s,"this."+u+" ="+a+" function"):n[0],c.push(u,e.slice(0,o)),e=e.slice(o),i&&!/^\s*.\s*bind\b/.test(e)&&c.push(".bind(this)");return c.length?c.join("")+e:e}function je(e,t,r,n,i){if(!/\S/.test(e))return"";r||(r=t.type);var o=t.parser||r&&ar._req("js."+r,!0)||Ne;return o(e,n,i).replace(/\r\n?/g,"\n").replace(br,"")}function Ee(e,t,r,n){return"string"==typeof t&&(n=r,r=t,t={}),r&&"object"==typeof r&&(n=r,r=""),n||(n={}),je(e,t||{},r,n.parserOptions,n.url)}function Se(e,t){var r=":scope";return t.replace(Lr,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 Te(e,t,r,n){if(n=n||{},r&&"css"!==r){var i=ar._req("css."+r,!0);e=i(t,e,n.parserOpts||{},n.url)}return e=e.replace(St.R_MLCOMMS,"").replace(/\s+/g," ").trim(),t&&(e=Se(t,e)),e}function Le(e,t,r){return t&&"object"==typeof t?(r=t,t=""):r||(r={}),Te(e,r.tagName,t,r)}function Ae(e,t){return e?(e=jr+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+jr,t&&~e.indexOf("\n")?e.replace(/\n/g,"\\n"):e):"''"}function Re(e,t,r,n,i,o,s){var a=s.debug?",\n ":", ",u="});";return i&&"\n"!==i.slice(-1)&&(u="\n"+u),o+"riot.tag2('"+e+jr+a+Ae(t,1)+a+Ae(r)+a+Ae(n)+", function(opts) {\n"+i+u}function Me(e){if(/<[-\w]/.test(e))for(var t,r=e.lastIndexOf("<"),n=e.length;~r;){if(t=e.slice(r,n).match(Mr))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 ke(e){if(e){var t=e.match(Ar);if(t=t&&(t[2]||t[3]))return t.replace("text/","")}return""}function Ie(e,t){if(e){var r=e.match(RegExp("\\s"+t+Rr,"i"));if(r=r&&r[1])return/^['"]/.test(r)?r.slice(1,-1):r}return""}function He(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function $e(e){var t=He(Ie(e,"options"));return t?JSON.parse(t):null}function Fe(e,t,r,n){var i=ke(r),o=Ie(r,"src"),s=ur({},t.parserOptions.js);return!o&&je(e,t,i,ur(s,$e(r)),n)}function Pe(e,t,r,n,i){var o=ur({},t.parserOptions.style),s={parserOpts:ur(o,$e(r)),url:n};return Te(e,i,ke(r)||t.style,s)}function ze(e,t,r,n){var i=ar._req("html."+r,!0);return i(e,n,t)}function Be(e,t,r){var n,i=[],o={template:{},js:{},style:{}};t||(t={}),t.parserOptions=ur(o,t.parserOptions||{}),n=t.exclude?function(e){return t.exclude.indexOf(e)<0}:function(){return 1},r||(r="");var s=St.array(t.brackets);return t.template&&(e=ze(e,r,t.template,t.parserOptions.template)),e=ye(e).replace(kr,function(e,o,a,u,c,l){var p="",f="",h="",d="",g=[];if(g._bp=s,a=a.toLowerCase(),u=u&&n("attribs")?_e(be(we(u,t,g),g),g):"",(c||(c=l))&&/\S/.test(c))if(l)n("html")&&(h=Oe(l,t,g));else{c=c.replace(RegExp("^"+o,"gm"),""),c=c.replace(Ir,function(e,i,o){if(n("js")){var s=Fe(o,t,i,r);s&&(p+=(p?"\n":"")+s)}return""}),c=c.replace(Hr,function(e,i,o){return n("css")&&(f+=(f?" ":"")+Pe(o,t,i,r,a)),""});var m=Me(c.replace(br,""));n("html")&&(h=Oe(m[0],t,g)),n("js")&&(c=je(m[1],t,null,null,r),c&&(p+=(p?"\n":"")+c),p=p.replace(yr,function(e){return d+=e.trim()+"\n",""}))}return p=/\S/.test(p)?p.replace(/\n{3,}/g,"\n\n"):"",t.entities?(i.push({tagName:a,html:h,css:f,attribs:u,js:p,imports:d}),""):Re(a,h,f,u,p,d,t)}),t.entities?i:e}function Ve(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 Ue(e,t){if(typeof e===ot){var r=d("script"),n=document.documentElement;t&&(e+="\n//# sourceURL="+t+".js"),r.text=e,n.appendChild(r),n.removeChild(r)}}function De(e,t){function r(){Nt.trigger("ready"),jt=!0,e&&e()}function n(e,t,n){var i=Fr.compile(e,t,n);Ue(i,n),--o||r()}var i=l('script[type="riot/tag"]'),o=i.length;if(o)for(var s=0;s1?/{[\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?a(e):y[e]}function o(e){(e||(e=m))!==y[8]&&(y=n(e),a=e===m?t:r,y[9]=a(v[9])),x=e}function s(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 a,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||s?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,s,a,u,c=[],l=r[6];for(s=a=l.lastIndex=0;o=l.exec(e);){if(u=o.index,s){if(o[2]){l.lastIndex=i(e,o[2],l.lastIndex);continue}if(!o[3])continue}o[1]||(n(e.slice(a,u)),a=l.lastIndex,l=r[6+(s^=1)],l.lastIndex=a)}return e&&a 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=St.split(e.replace(l,'"'),1);if(n.length>2||n[0]){var o,s,a=[];for(o=s=0;o2&&!t?a+(r.push(e)-1)+"~":e}).replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var i,s=[],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,s[l++]=o(h,1,p)}e=l?l>1?"["+s.join(",")+'].join(" ").trim()':s[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 s={};e.hasExpr=St.hasExpr,e.loopKeys=St.loopKeys,e.clearCache=function(){s={}},e.errorHandler=null;var a=String.fromCharCode(8279),u=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,c=RegExp(St.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=St.version="v3.0.2",e}(),Lt=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],s=0;i=o&&o[s];++s)i==n&&o.splice(s--,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,s,a=arguments,u=arguments.length-1,c=new Array(u);for(s=0;s|>([\S\s]*?)<\/yield\s*>|>)/gi,Ft=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,Pt=/|>([\S\s]*?)<\/yield\s*>)/gi,zt={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Bt=yt&&yt<10?ft:ht,Vt="div",Ut={},Dt=Ut[We]={},qt=0,Gt=Object.freeze({Tag:Z,tag:K,tag2:Q,mount:W,mixin:J,update:X,unregister:Y}),Zt=0,Kt=Object.freeze({getTag:re,inheritFrom:ne,moveChildTag:ie,initChildTag:oe,getImmediateCustomParentTag:se,unmountAll:ae,getTagName:ue,cleanUpData:ce,arrayishAdd:le,arrayishRemove:pe,isInStub:fe,mountTo:he,makeReplaceVirtual:de,makeVirtual:ge,moveVirtual:me,selectTags:ve}),Qt=Rt,Wt={tmpl:Tt,brackets:St,styleManager:Et,vdom:Ke,styleNode:Et.styleNode,dom:wt,check:bt,misc:At,tags:Kt},Jt=Z,Xt=K,Yt=Q,er=W,tr=J,rr=X,nr=Y,ir=Lt,or=S({},Gt,{observable:Lt,settings:Qt,util:Wt}),sr=Object.freeze({settings:Qt,util:Wt,Tag:Jt,tag:Xt,tag2:Yt,mount:er,mixin:tr,update:rr,unregister:nr,observable:ir,default:or}),ar=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 s;return i=n({sync:!0,syncImport:!0,filename:o},i),t("less").render(r,i,function(e,t){if(e)throw e;s=t.css}),s}},o.js={es6:function(e,r,i){return t("Babel").transform(e,n({plugins:[["transform-es2015-template-literals",{loose:!0}],"transform-es2015-literals","transform-es2015-function-name","transform-es2015-arrow-functions","transform-es2015-block-scoped-functions",["transform-es2015-classes",{loose:!0}],"transform-es2015-object-super","transform-es2015-shorthand-properties","transform-es2015-duplicate-keys",["transform-es2015-computed-properties",{loose:!0}],["transform-es2015-for-of",{loose:!0}],"transform-es2015-sticky-regex","transform-es2015-unicode-regex","check-es2015-constants",["transform-es2015-spread",{ loose:!0}],"transform-es2015-parameters",["transform-es2015-destructuring",{loose:!0}],"transform-es2015-block-scoping","transform-es2015-typeof-symbol",["transform-es2015-modules-commonjs",{allowTopLevelThis:!0}],["transform-regenerator",{async:!1,asyncGenerators:!1}]]},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),ur=ar.utils.extend,cr=/"[^"\n\\]*(?:\\[\S\s][^"\n\\]*)*"|'[^'\n\\]*(?:\\[\S\s][^'\n\\]*)*'/.source,lr=St.R_STRINGS.source,pr=/ *([-\w:\xA0-\xFF]+) ?(?:= ?('[^']*'|"[^"]*"|\S+))?/g,fr=RegExp(//.source+"|"+cr,"g"),hr=/<(-?[A-Za-z][-\w\xA0-\xFF]*)(?:\s+([^"'\/>]*(?:(?:"[^"]*"|'[^']*'|\/[^>])[^'"\/>]*)*)|\s*)(\/?)>/g,dr=/>[ \t]+<(-?[A-Za-z]|\/[-A-Za-z])/g,gr=["style","src","d","value"],mr=/^(?:input|img|br|wbr|hr|area|base|col|embed|keygen|link|meta|param|source|track)$/,vr=/]*|"[^"]*")*)?>([\S\s]+?)<\/pre\s*>/gi,xr=/^"(?:number|date(?:time)?|time|month|email|color)\b/i,yr=/^\s*import(?!\w)(?:(?:\s|[^\s'"])*)['|"].*\n?/gm,br=/[ \t]+$/gm,wr=xe(/@#\d/,"x01"),_r=xe(/@#(\d+)/g,"x01"),Or="#",Cr="⁗",Nr='"',jr="'",Er=/^[ \t]*(((?:async|\*)\s*)?([$_A-Za-z][$\w]*))\s*\([^()]*\)\s*{/m,Sr=RegExp("[{}]|"+St.S_QBLOCKS,"g"),Tr=RegExp(St.R_MLCOMMS.source+"|//[^\r\n]*|"+St.S_QBLOCKS,"g"),Lr=RegExp("([{}]|^)[; ]*((?:[^@ ;{}][^{}]*)?[^@ ;{}:] ?)(?={)|"+cr,"g"),Ar=/\stype\s*=\s*(?:(['"])(.+?)\1|(\S+))/i,Rr="\\s*=\\s*("+lr+"|{[^}]+}|\\S+)",Mr=/\/>\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("@",lr),"gim"),Ir=/]*)?>\n?([\S\s]*?)<\/script\s*>/gi,Hr=/]*)?>\n?([\S\s]*?)<\/style\s*>/gi,$r="v3.2.1",Fr={compile:Be,compileHTML:Ce,compileCSS:Le,compileJS:Ee,parsers:ar,version:$r},Pr=Fr.parsers,zr=function(e,t,i){if(typeof e===ot){if(n(t)&&(i=t,t=!1),/^\s*