riot.tag2("rg-alerts",'
{text}
',"","",function(t){this.on("mount",()=>this.update()),this.on("update",()=>{t.alerts&&t.alerts.forEach(t=>{void 0===t.isvisible&&(t.isvisible=!0),t.timeout&&(t.startTimer=(()=>{t.timer=setTimeout(()=>{this.dismiss({item:t})},t.timeout)}),t.startTimer())})}),this.dismiss=(t=>{const a=t.item;a.isvisible=!1,clearTimeout(a.timer),this.trigger("dismiss",a),this.update()}),this.select=(t=>{const a=t.item;a.onclick&&a.onclick(a),this.trigger("select",a)})}),riot.tag2("rg-bubble",'
{opts.bubble.text}
','rg-bubble .context,[data-is="rg-bubble"] .context,rg-bubble .content,[data-is="rg-bubble"] .content{ display: inline-block; position: relative; } rg-bubble .bubble,[data-is="rg-bubble"] .bubble{ position: absolute; top: -70px; left: 50%; transform: translate3d(-50%, 0, 0); }',"",function(t){this.showBubble=(()=>{clearTimeout(this._timer),this.isvisible=!0}),this.hideBubble=(()=>{this._timer=setTimeout(()=>{this.isvisible=!1,this.update()},1e3)}),this.toggleBubble=(()=>{this.isvisible=!this.isvisible})}),riot.tag2("rg-chart","",'rg-chart,[data-is="rg-chart"]{ display: inline-block; width: 100%; }',"",function(t){Chart.defaults.global.responsive=!0,this.on("mount",()=>{a()}),this.on("loaded",t=>{this.on("unmount",()=>{t.destroy()})});const a=()=>{if(!t.chart)return;let a=this.root.querySelector("canvas").getContext("2d"),e=new Chart(a),i=null;switch(t.chart.type){case"line":i=e.Line(t.chart.data,t.chart.options);break;case"radar":i=e.Radar(t.chart.data,t.chart.options);break;case"polar":i=e.PolarArea(t.chart.data,t.chart.options);break;case"pie":i=e.Pie(t.chart.data,t.chart.options);break;case"doughnut":i=e.Doughnut(t.chart.data,t.chart.options);break;default:i=e.Bar(t.chart.data,t.chart.options)}this.trigger("loaded",i)}}),riot.tag2("rg-code",'
','rg-code .editor,[data-is="rg-code"] .editor{ position: absolute; top: 0; right: 0; bottom: 0; left: 0; }',"",function(t){let a;t.editor||(t.editor={code:""});this.on("update",()=>{this.isMounted&&(a.setTheme(`ace/theme/${t.editor.theme||"monokai"}`),a.getSession().setMode(`ace/mode/${t.editor.mode||"html"}`),a.getSession().setTabSize(t.editor.tabsize||2),a.getSession().setUseSoftTabs(t.editor.softtabs),a.getSession().setUseWrapMode(t.editor.wordwrap),a.setReadOnly(t.editor.readonly),t.editor.code!=a.getValue()&&a.setValue(t.editor.code,1))}),this.on("mount",()=>{if(t.editor.code=t.editor.code||"",this.editor=a=ace.edit(this.root.querySelector(".editor")),a.$blockScrolling=1/0,t.editor.url){const a=new XMLHttpRequest;a.onload=(a=>{t.editor.code=a,this.update()}),a.open("get",t.editor.url,!0),a.send()}a.setValue(t.editor.code,1),a.getSession().on("change",e=>{t.editor.code=a.getValue(),this.trigger("onchange",a.getValue())}),this.update()})}),riot.tag2("rg-credit-card-number",'','rg-credit-card-number .card-no,[data-is="rg-credit-card-number"] .card-no{ padding-right: 60px; background-repeat: no-repeat; background-position: right center; background-size: 60px; } rg-credit-card-number .amex,[data-is="rg-credit-card-number"] .amex{ background-image: url(img/amex.png); } rg-credit-card-number .diners_club,[data-is="rg-credit-card-number"] .diners_club{ background-image: url(img/diners_club.png); } rg-credit-card-number .discover,[data-is="rg-credit-card-number"] .discover{ background-image: url(img/discover.png); } rg-credit-card-number .jcb,[data-is="rg-credit-card-number"] .jcb{ background-image: url(img/jcb.png); } rg-credit-card-number .mastercard,[data-is="rg-credit-card-number"] .mastercard{ background-image: url(img/mastercard.png); } rg-credit-card-number .visa,[data-is="rg-credit-card-number"] .visa{ background-image: url(img/visa.png); }',"",function(t){this.on("mount",()=>{this.input=this.root.querySelector("input"),this.input.value=t.card.cardnumber,this.update()}),this.oninput=(()=>{}),t.card||(t.card={cardnumber:""}),this.on("update",()=>{if(!this.isMounted)return;t.card.cardnumber=this.input.value;const a=function(t){var a,e,i,s,o,n,r;(e=[{name:"amex",icon:"images/amex.png",pattern:/^3[47]/,valid_length:[15]},{name:"diners_club",icon:"images/diners_club.png",pattern:/^30[0-5]/,valid_length:[14]},{name:"diners_club",icon:"images/diners_club.png",pattern:/^36/,valid_length:[14]},{name:"jcb",icon:"images/jcb.png",pattern:/^35(2[89]|[3-8][0-9])/,valid_length:[16]},{name:"laser",pattern:/^(6304|670[69]|6771)/,valid_length:[16,17,18,19]},{name:"visa_electron",pattern:/^(4026|417500|4508|4844|491(3|7))/,valid_length:[16]},{name:"visa",icon:"images/visa.png",pattern:/^4/,valid_length:[16]},{name:"mastercard",icon:"images/mastercard.png",pattern:/^5[1-5]/,valid_length:[16]},{name:"maestro",pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,valid_length:[12,13,14,15,16,17,18,19]},{name:"discover",icon:"images/discover.png",pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,valid_length:[16]}]).map(t=>t.name);return i=function(t){return e.find(a=>t.match(a.pattern))||null},o=function(t){var a,e,i,s,o,n;for(i=0,e=s=0,o=(n=t.split("").reverse()).length;s
{opts.date.date.format(yearFormat)}
{opts.date.date.format(monthFormat)}
Mo
Tu
We
Th
Fr
Sa
Su
','rg-date .container,[data-is="rg-date"] .container{ position: relative; display: inline-block; cursor: pointer; } rg-date .calendar,[data-is="rg-date"] .calendar{ position: absolute; min-width: 300px; margin-top: .5em; left: 0; }',"",function(t){const a=t=>(moment.isMoment(t)||(t=moment(t)),t.isValid()?t:moment()),e=t=>{this.root.contains(t.target)||this.close(),this.update()};this.dayObj=(a=>{return{date:a||moment(),selected:t.date.date.isSame(a,"day"),today:moment().isSame(a,"day"),disabled:t.date.min&&t.date.min.isAfter(a)||t.date.max&&t.date.max.isBefore(a)}});const i=()=>{this.format="LL",this.yearFormat="YYYY",this.monthFormat="MMMM",this.dayFormat="DD",this.days=[],this.startBuffer=[],this.endBuffer=[];const a=moment(t.date.date).startOf("month"),e=moment(t.date.date).daysInMonth(),i=moment(t.date.date).endOf("month");for(let t=a.isoWeekday()-1;t>0;t-=1){const e=moment(a).subtract(t,"days");this.startBuffer.push(this.dayObj(e))}for(let t=0;t{t.date||(t.date={date:moment()}),t.date.date||(t.date.date=moment()),t.date.date=a(t.date.date),t.date.min=a(t.date.min||-864e13),t.date.min.isAfter(t.date.date,"day")&&(t.date.date=moment(t.date.min)),t.date.max=a(t.date.max||864e13),t.date.max.isBefore(t.date.date,"day")&&(t.date.date=moment(t.date.max)),document.addEventListener("click",e),this.update()}),this.on("update",()=>{this.isMounted&&(t.date.date=a(t.date.date),i(),this.value=t.date.date.format(this.format))}),this.on("unmount",()=>{document.removeEventListener("click",e)}),this.open=(()=>{this.isvisible=!0,this.trigger("open")}),this.close=(()=>{this.isvisible&&(this.isvisible=!1,this.trigger("close"))}),this.select=(a=>{t.date.date=a.item.day.date,this.trigger("select",t.date.date)}),this.setToday=(()=>{t.date.date=moment(),this.trigger("select",t.date.date)}),this.prevYear=(()=>{t.date.date=t.date.date.subtract(1,"year")}),this.nextYear=(()=>{t.date.date=t.date.date.add(1,"year")}),this.prevMonth=(()=>{t.date.date=t.date.date.subtract(1,"month")}),this.nextMonth=(()=>{t.date.date=t.date.date.add(1,"month")})}),riot.tag2("rg-drawer",'

{opts.drawer.header}

',"","",function(t){t.drawer||(t.drawer={}),this.close=(()=>{t.drawer.isvisible=!1,this.trigger("close")}),this.select=(a=>{t.drawer.items.forEach(t=>t.active=!1),a.item.active=!0,this.trigger("select",a.item)})}),riot.tag2("rg-ga","","","",function(t){var a,e,i,s,o,n;a=window,e=document,i="script",s="ga",a.GoogleAnalyticsObject=s,a.ga=a.ga||function(){(a.ga.q=a.ga.q||[]).push(arguments)},a.ga.l=1*new Date,o=e.createElement(i),n=e.getElementsByTagName(i)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",n.parentNode.insertBefore(o,n),ga("create",t.property,"auto"),ga("send","pageview")}),riot.tag2("rg-iframify",'
','rg-iframify .iframify,[data-is="rg-iframify"] .iframify{ margin: 0; padding: 0; } rg-iframify iframe,[data-is="rg-iframify"] iframe{ position: relative; width: 100%; border: 0; }',"",function(t){this.on("mount",()=>{iframify(this.root.querySelector(".frame"),this.opts)})}),riot.tag2("rg-include","
{responseText}
","","",function(t){const a=()=>{const a=new XMLHttpRequest;a.onload=(e=>{t.include.unsafe?this.root.innerHTML=a.responseText:this.responseText=a.responseText,this.update(),this.trigger("loaded")}),a.open("get",t.include.url,!0),a.send(),this.trigger("loading")};this.on("mount",()=>{a()})}),riot.tag2("rg-map",'
','rg-map .rg-map,[data-is="rg-map"] .rg-map{ margin: 0; padding: 0; width: 100%; height: 100%; } rg-map .rg-map img,[data-is="rg-map"] .rg-map img{ max-width: inherit; }',"",function(t){window.rg=window.rg||{},window.rg.gmap=riot.observable({initialize:()=>{window.rg.gmap.trigger("initialize")}}),this.on("mount",()=>{if(t.map||(t.map={center:{lat:53.806,lng:-1.535},zoom:7}),rg.gmap.on("initialize",()=>{t.map.mapObj=new google.maps.Map(this.root.querySelector(".rg-map"),t.map),this.trigger("loaded",t.map.mapObj)}),!document.getElementById("gmap_script")){let t=document.createElement("script");t.setAttribute("id","gmap_script"),t.type="text/javascript",t.src="https://maps.googleapis.com/maps/api/js?callback=window.rg.gmap.initialize",document.body.appendChild(t)}})}),riot.tag2("rg-markdown","","","",function(t){this.on("mount",()=>this.update()),this.reader=new commonmark.Parser,this.writer=new commonmark.HtmlRenderer,this.on("update",()=>{if(t.markdown||(t.markdown={}),t.markdown.content)this.root.innerHTML=this.writer.render(this.reader.parse(t.markdown.content));else if(t.markdown.url){const a=new XMLHttpRequest;a.onload=(t=>{this.root.innerHTML=this.writer.render(this.reader.parse(a.responseText)),this.trigger("loaded")}),a.open("get",t.markdown.url,!0),a.send(),this.trigger("loading")}})}),riot.tag2("rg-modal",'
','rg-modal .modal--ghost .modal__footer .button,[data-is="rg-modal"] .modal--ghost .modal__footer .button{ margin: 0 .5em 0 0; }',"",function(t){t.modal||(t.modal={}),this.close=(()=>{t.modal.dismissable&&(t.modal.isvisible=!1,this.trigger("close"))})}),riot.tag2("rg-pagination",'',"","",function(t){t.pagination||(t.pagination={pages:1,page:1}),this.on("page",()=>{const t=this.root.querySelectorAll("button");for(let a=0;a{t.pagination.page++,this.trigger("page",t.pagination.page)}),this.back=(()=>{t.pagination.page--,this.trigger("page",t.pagination.page)}),this.first=(()=>{t.pagination.page=1,this.trigger("page",t.pagination.page)}),this.last=(()=>{t.pagination.page=t.pagination.pages,this.trigger("page",t.pagination.page)})}),riot.tag2("rg-phone-sim",'
','rg-phone-sim .emulator,[data-is="rg-phone-sim"] .emulator{ position: relative; width: 365px; height: 792px; background-image: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAAMYCAMAAAA3r0ZLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRFMDk6+vr6KTM0lJucMz4/PklKJS8wLTg5Qk1OxsjILzo7gomJ2NvbdH5/ho2O9fb2KzY3ztHRPEdIOkVGZWxtjJSVOEJDkpeYWGRluL2+KTQ1vcHBoaWlPUZHcnp6nKKjOkRF1NfXqa2tp62tZnBxanV2VmFiZ29wVl1eaXJzbXR04uTktbq7QElK1tnZipKTi5CRTlZXpKioo6mqXmlqUVlaOEFCSVFSUFxdISssT1tcTlpbJC4vIiwtTVlaJjAxIy0uTFhZS1dYJzEyKDIzSlZXPUhJOURFO0ZHSVVWKzU2P0pLKjQ1OENEND0+QEtMLDY3SFRVN0JDQ05PLTc4ND9ANUBBQUxNNkFCR1NUMTo7RE9QLjg5N0BBR1JTRlJTLzk6RVFSMjs8RVBRRlFSNj9AMzw9SFNUMj0+IissMTs8MDo7SVRVRFBRMDs8MTw9IiwsMz0+Mjw9SlVWQ09QLjk6NT4/S1ZXND4/JC4uQU1OIy0tQk5PTFdYTVhZQExNTllaJS8vJzIyP0tMLzg5LDc4KDMzNT9AKjU1N0FCNkBBJjAwIywtMDs7Mj09NkFBJjExLjk5LDc3N0JCNUBAKjU2MTw8LDU2Ljc4OUNEKDEyQU1NPEhIPEhJO0dHOkZGND8/Qk5ORFBQQ09PLTY3OUREPkpKPkpLPUlJT1pbP0tLJTAwPUlKJzAxKjM07u/vKTIzsbW2YGprtLm50tXWPkhJo6endn+A3d/f6uvreoOEg4yN2tvc/Pz8n6am8/T0VFtcm6CgJS4v4OLi5ufnYGdncnt8dHp7gYaHJC0uu8DAjJGRQkxNxMfHKzQ1YGtsS1NUaXN0bnh5yMzMyszMy83Oy8/PdoCAKDIy7O3tT1dYuLu70NTUbXd46Onq6erreoCA2dzc8PHx8vPz5OXlnaSkn6Wmqq6ucHZ2t7y8o6eoeoSEkJaWm5+gW2ZnZG5vqa+wOEFB09bWtru7qrCwcXd4t7u83eDgzM7O7/DwNT4+7e7uwMPDwcPEeH5/////70wnUQAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAA+NSURBVHja7N13nBTlGcDxEQI5AmJQBAkcnqhEDIhoWMt5iogmQbOaYNrqYrJh16gplmTVkILJpYCmF+DSE1JIcjRR7L333ntPYjQxvTl55tnr7N7t7uw+vDP3+/0x3G3hs5+vr++8M7s7eH75Xb5x+rOjN017aeq+tO++U1+atmn0s9M3Xl6BoFfm466ZOPROhIt259CJ19RS++7LdgW133a97O7aaI/a+VE0y+jRnUeF1p6wqfvvaz6+YVjT0jMyJ3rkeSdmzljaNKzh+OZuoE0TQmmvv67zLzrwmMY8wkXLNx5zYCfTdeur1p6wdeegblgKar8tbegc4lv/rirtjTMLT99/UVMKzgFLNS3avwA2c2Pl2n8tPHV1QxLJMks2rC6g/alC7ScvKozrhhyIFZRrKIzvi56sRHt94b/RIsZ1xeN7UYFuffna4/UJB68Er4rGHax648vUfmqkPnxBBrmqyixQv5FPlaP9Dz2eWdIEW9U1LdFjnQsG1n5ETz4dyowdavY+VE9XPTKQ9phddPfICjvk6lt3lruM6V97j132l26BK3S3BJAv79Gf9jN3BY85HKsad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nVNAG18KtaS2P2Ja4akntDN/lzVft3d4vXGEX7m27+81q+P5N7atQrPfVrXd2GE1a69+RPvTlr3lHft11NJ+BFNKiQnkiPaWTqY7/tivZ//avn/+7P26ahl+yJD5q1a0sufUPWLrilXzhxwyvKUbaPb5A2gOpC3z956N+9HANe05YkDLgbWlh0fOQLPfZox8uBzIsrSlC6Zcj3gJ6eunXFCmYrnaQWtHTLph7EONresQlta1Nj409oZJI9ZWIPh/AQYA2whzWlA9R/cAAAAASUVORK5CYII=\'); background-repeat: no-repeat; background-position: center; background-size: cover; } rg-phone-sim .screen,[data-is="rg-phone-sim"] .screen{ position: absolute; top: 105px; left: 22px; background-color: white; width: 320px; height: 568px; border: 0; }',"",function(t){}),riot.tag2("rg-placeholdit",'',"","",function(t){t.placeholdit||(t.placeholdit={}),this.on("mount",()=>this.update()),this.on("update",()=>{t.placeholdit.width=t.placeholdit.width||450,t.placeholdit.height=t.placeholdit.height||250,t.placeholdit.background=t.placeholdit.background||"000",t.placeholdit.color=t.placeholdit.color||"fff",t.placeholdit.text=t.placeholdit.text||`${t.placeholdit.width} x ${t.placeholdit.height}`,t.placeholdit.textsize=t.placeholdit.textsize||30,t.placeholdit.format=t.placeholdit.format||"png"})}),riot.tag2("rg-raw","","","",function(t){this.on("mount",()=>this.update()),this.on("update",()=>{this.root.innerHTML=t.content||""})}),riot.tag2("rg-select",' ','rg-select .menu,[data-is="rg-select"] .menu{ position: absolute; }',"",function(t){t.select||(t.select={options:[]});const a=t=>{this.root.contains(t.target)||this.close(),this.update()};this.on("mount",()=>{document.addEventListener("click",a),this.update()}),this.on("unmount",()=>{document.removeEventListener("click",a)}),this.keydown=(t=>{const a=this.isvisible;if(this.open(),38===t.keyCode)this.navigate(-1),t.preventDefault();else if(40===t.keyCode)this.navigate(1),t.preventDefault();else if(13===t.keyCode){if(!a)return;const e=s()||this.options[0];e&&this.select({item:e}),this.close(),t.preventDefault()}else this._navigate(0)}),this.select=(a=>{a.item.text;i().value=a.item.text,this.trigger("select",a.item.text),t.onselect&&t.onselect(a.item,this),t.select.options.forEach(t=>t.selected=!1),a.item.selected=!0,this.close()}),this.navigate=(t=>{const{options:a}=this;let e=(a.findIndex(t=>t.active)+t)%a.length;e<0&&(e=a.length-1),this._navigate(e)}),this._navigate=(a=>{t.select.options.forEach(t=>t.active=!1);const e=this.options[a||0];e&&(e.active=!0)}),this.on("update",()=>{if(!this.isMounted)return;const a=e();if(this.options=t.select.options,t.select.filter&&a){const t=new RegExp(a,"i");this.options=this.options.filter(a=>a.text.match(t)),this.trigger("filter")}});const e=()=>i().value,i=()=>this.root.querySelector("input"),s=()=>this.options.find(t=>t.active);this.open=(t=>{this.isvisible=!0,this.trigger("open")}),this.close=(t=>{this.isvisible=!1,this.trigger("close")})}),riot.tag2("rg-tabs",'
{heading}
{text}
{include.responseText}
',"","",function(t){t.tabs||(t.tabs={}),this.on("mount",()=>this.update());const a=t=>{if(t.raw)return;const a=new XMLHttpRequest;a.onload=(e=>{t.raw=a.responseText,t.text=void 0,this.update(),this.trigger("loaded",t)}),a.open("get",t.include,!0),a.send(),this.trigger("loading",t)};this.open=(a=>{let e=a.item;e.disabled||e.active||(t.tabs.tabs.forEach(t=>{t.active=!1}),this.trigger("open",e),e.active=!0)}),this.on("update",()=>{Array.isArray(t.tabs.tabs)&&t.tabs.tabs.forEach(t=>{!t.disabled&&t.active&&t.include&&a(t)})})}),riot.tag2("rg-tags",'
','rg-tags .menu,[data-is="rg-tags"] .menu{ position: absolute; }',"",function(t){this.on("mount",()=>this.update()),t.tags||(t.tags={options:[],tags:[]}),t.tags.options||(t.tags.options=[]),t.tags.tags||(t.tags.tags=[]),this.select_opts=Object.assign({filter:!0},t.tags),this.select=((t,a)=>{this.addTag(t),this.trigger("select",t),this.root.querySelector("input").value="",this.update()}),this.addTag=(a=>{-1==t.tags.tags.indexOf(a)&&t.tags.tags.push(a)}),this.removeTag=(a=>{t.tags.tags=t.tags.tags.filter(t=>{if(t._id!=a.item._id)return t})}),this.on("update",()=>{t.tags.options.forEach(t=>{t._id=t._id||(Math.floor(60466175*Math.random())+1679615).toString(36)}),t.tags.tags.forEach(t=>{t._id=t._id||(Math.floor(60466175*Math.random())+1679615).toString(36)})})}),riot.tag2("rg-toasts",'
{text}
',"","",function(t){t.toasts=t.toasts||{},Array.isArray(t.toasts.toasts)||(t.toasts.toasts=[]),this.on("mount",()=>this.update()),this.toastClicked=(t=>{let a=t.item;window.clearTimeout(a.timer),a.isvisible=!1,this.trigger("select",a)});let a=1;this.on("update",()=>{t.toasts.position=t.toasts.position||"bottomright",t.toasts.toasts.forEach(t=>{void 0===t.isvisible&&(t.isvisible=!0),t.id=t.id||(()=>a++)(),t.timer||t.sticky||(t.startTimer=(()=>{t.timer=window.setTimeout(()=>{t.isvisible=!1,this.trigger("close",t),this.update()},t.timeout||6e3)}),t.startTimer())}),t.toasts.isvisible=t.toasts.toasts.filter(t=>t.isvisible).length>0})}),riot.tag2("rg-toggle",'
',"","",function(t){t.toggle=t.toggle||{},this.toggle=(()=>{t.toggle.checked=!t.toggle.checked,this.trigger("toggle",t.toggle.checked)})}),riot.tag2("rg-unsplash",'',"","",function(t){this.on("mount",()=>this.update()),this.on("update",()=>{t.unsplash||(t.unsplash={});const{greyscale:a,width:e,height:i}=t.unsplash;this.path=`${a?"g/":""}${e||450}/${i||250}`,this.options="",t.unsplash.random&&(this.options+="random&"),t.unsplash.blur&&(this.options+="blur&"),t.unsplash.image&&(this.options+="image="+t.unsplash.image+"&"),void 0!==t.unsplash.gravity&&(this.options+="gravity="+t.unsplash.gravity)})});