commit d90fb73b1d1926ccbc11a4fdd89c253fab6fb626
parent f70f624744cdc0c96811809b78c29852402fce42
Author: MS <ms@taler.net>
Date: Tue, 1 Nov 2022 15:06:47 +0100
stop serving the SPA
Diffstat:
3 files changed, 6 insertions(+), 49 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
@@ -397,6 +397,7 @@ fun importBankAccount(call: ApplicationCall, offeredBankAccountId: String, nexus
)
// detect name collisions first.
NexusBankAccountEntity.findByName(nexusBankAccountId).run {
+ // This variable will either host a new, or a found imported bank account.
val importedAccount = when (this) {
is NexusBankAccountEntity -> {
if (this.iban != offeredAccount[OfferedBankAccountsTable.iban]) {
@@ -406,8 +407,11 @@ fun importBankAccount(call: ApplicationCall, offeredBankAccountId: String, nexus
"Cannot import two different accounts under one label: $nexusBankAccountId"
)
}
+ // a imported bank account already exists and
+ // the user tried to import the same IBAN to it. Do nothing
this
}
+ // such named imported account didn't exist. Make it
else -> {
val newImportedAccount = NexusBankAccountEntity.new {
bankAccountName = nexusBankAccountId
@@ -421,6 +425,8 @@ fun importBankAccount(call: ApplicationCall, offeredBankAccountId: String, nexus
newImportedAccount
}
}
+ // Associate the bank account as named by the bank (the 'offered')
+ // with the imported/local one (the 'imported'). Rewrites are acceptable.
OfferedBankAccountsTable.update(
{
OfferedBankAccountsTable.offeredAccountId eq offeredBankAccountId and
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1033,45 +1033,6 @@ val sandboxApp: Application.() -> Unit = {
*/
get("/demobanks/{demobankid}") {
val demobank = ensureDemobank(call)
-
- /**
- * Respond the SPA if the content type is not "application/json".
- */
- if (call.request.headers["Content-Type"] != "application/json") {
- val spa: InputStream? = ClassLoader.getSystemClassLoader().getResourceAsStream("static/spa.html")
- if (spa == null) throw internalServerError("SPA not found!")
- // load whole SPA from disk. Now <200KB, fine to block-read it.
- var content = String(spa.readBytes(), Charsets.UTF_8)
- content = content.replace(
- "__LIBEUFIN_UI_IS_DEMO__",
- demobank.withSignupBonus.toString()
- )
- val landingUrl = System.getenv(
- "TALER_ENV_URL_INTRO") ?: "https://demo.taler.net/"
- content = content.replace("__DEMO_SITE_LANDING_URL__", landingUrl)
- val bankUrl = System.getenv(
- "TALER_ENV_URL_BANK") ?: "https://demo.taler.net/sandbox/demobanks/default/"
- content = content.replace("__DEMO_SITE_BANK_URL__", bankUrl)
- val blogUrl = System.getenv(
- "TALER_ENV_URL_MERCHANT_BLOG") ?: "https://demo.taler.net/blog/"
- content = content.replace("__DEMO_SITE_BLOG_URL__", blogUrl)
- val donationsUrl = System.getenv(
- "TALER_ENV_URL_MERCHANT_DONATIONS") ?: "https://demo.taler.net/donations/"
- content = content.replace("__DEMO_SITE_DONATIONS_URL__", donationsUrl)
- val surveyUrl = System.getenv(
- "TALER_ENV_URL_MERCHANT_SURVEY") ?: "https://demo.taler.net/survey/"
- content = content.replace("__DEMO_SITE_SURVEY_URL__", surveyUrl)
- content = content.replace(
- "__LIBEUFIN_UI_ALLOW_REGISTRATIONS__",
- demobank.allowRegistrations.toString()
- )
- content = content.replace(
- "__LIBEUFIN_UI_BANK_NAME__",
- demobank.uiTitle
- )
- call.respondText(content, ContentType.Text.Html)
- return@get
- }
expectAdmin(call.request.basicAuth())
call.respond(getJsonFromDemobankConfig(demobank))
return@get
diff --git a/sandbox/src/main/resources/static/spa.html b/sandbox/src/main/resources/static/spa.html
@@ -1,9 +0,0 @@
-<!DOCTYPE html><html lang="en" class="has-aside-left has-aside-mobile-transition has-navbar-fixed-top has-aside-expanded"><head><meta charset="utf-8"><title>taler-bank</title><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="icon" href="data:;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABILAAASCwAAAAAAAAAAAAD///////////////////////////////////////////////////////////////////////////////////////////////////7//v38//78/P/+/fz//vz7///+/v/+/f3//vz7///+/v/+/fz//v38///////////////////////+/v3///7+/////////////////////////////////////////////////////////v3//v79///////+/v3///////r28v/ct5//06SG/9Gffv/Xqo7/7N/V/9e2nf/bsJb/6uDW/9Sskf/euKH/+/j2///////+/v3//////+3azv+/eE3/2rWd/9Kkhv/Vr5T/48i2/8J+VP/Qn3//3ryn/795Tf/WrpP/2LCW/8B6T//w4Nb///////Pn4P+/d0v/9u3n/+7d0v/EhV7//v///+HDr//fxLD/zph2/+TJt//8/Pv/woBX//Lm3f/y5dz/v3hN//bu6f/JjGn/4sW0///////Df1j/8OLZ//v6+P+/elH/+vj1//jy7f+/elL//////+zYzP/Eg13//////967p//MlHT/wn5X///////v4Nb/yY1s///////jw7H/06KG////////////z5t9/+fNvf//////x4pn//Pp4v/8+vn/w39X/8WEX///////5s/A/9CbfP//////27Oc/9y2n////////////9itlf/gu6f//////86Vdf/r2Mz//////8SCXP/Df1j//////+7d0v/KkG7//////+HBrf/VpYr////////////RnoH/5sq6///////Ii2n/8ubf//39/P/Cf1j/xohk/+bNvv//////wn5W//Tq4//58/D/wHxV//7+/f/59fH/v3xU//39/P/w4Nf/xIFb///////hw7H/yo9t/+/f1f/AeU3/+/n2/+nSxP/FhmD//////9qzm//Upon/4MSx/96+qf//////xINc/+3bz//48e3/v3hN//Pn3///////6M+//752S//gw6//06aK/8J+VP/kzLr/zZd1/8OCWv/q18r/17KZ/9Ooi//fv6r/v3dK/+vWyP///////v39///////27un/1aeK/9Opjv/m1cf/1KCC/9a0nP/n08T/0Jx8/82YdP/QnHz/16yR//jx7P///////v39///////+/f3///7+///////+//7//v7+///////+/v7//v/+/////////////////////////v7//v79///////////////////+/v/+/Pv//v39///+/v/+/Pv///7+//7+/f/+/Pv//v39//79/P/+/Pv///7+////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><meta name="theme-color" content="#673ab8"><style data-href="/bundle.4e70d.css">/*!
-Pure v0.6.2
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*//*!
-normalize.css v^3.0 | MIT License | git.io/normalize
-Copyright (c) Nicolas Gallagher and Jonathan Neal
-*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;*letter-spacing:normal;*word-spacing:-.43em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,Droid Sans,Helvetica,Arial,sans-serif;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-line-pack:start;align-content:flex-start}@media (-ms-high-contrast:active),(-ms-high-contrast:none){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1,.pure-u-1-1,.pure-u-1-2,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-1-12,.pure-u-1-24,.pure-u-2-3,.pure-u-2-5,.pure-u-2-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-3-24,.pure-u-4-5,.pure-u-4-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-5-12,.pure-u-5-24,.pure-u-6-24,.pure-u-7-8,.pure-u-7-12,.pure-u-7-24,.pure-u-8-24,.pure-u-9-24,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%;*width:4.1357%}.pure-u-1-12,.pure-u-2-24{width:8.3333%;*width:8.3023%}.pure-u-1-8,.pure-u-3-24{width:12.5%;*width:12.469%}.pure-u-1-6,.pure-u-4-24{width:16.6667%;*width:16.6357%}.pure-u-1-5{width:20%;*width:19.969%}.pure-u-5-24{width:20.8333%;*width:20.8023%}.pure-u-1-4,.pure-u-6-24{width:25%;*width:24.969%}.pure-u-7-24{width:29.1667%;*width:29.1357%}.pure-u-1-3,.pure-u-8-24{width:33.3333%;*width:33.3023%}.pure-u-3-8,.pure-u-9-24{width:37.5%;*width:37.469%}.pure-u-2-5{width:40%;*width:39.969%}.pure-u-5-12,.pure-u-10-24{width:41.6667%;*width:41.6357%}.pure-u-11-24{width:45.8333%;*width:45.8023%}.pure-u-1-2,.pure-u-12-24{width:50%;*width:49.969%}.pure-u-13-24{width:54.1667%;*width:54.1357%}.pure-u-7-12,.pure-u-14-24{width:58.3333%;*width:58.3023%}.pure-u-3-5{width:60%;*width:59.969%}.pure-u-5-8,.pure-u-15-24{width:62.5%;*width:62.469%}.pure-u-2-3,.pure-u-16-24{width:66.6667%;*width:66.6357%}.pure-u-17-24{width:70.8333%;*width:70.8023%}.pure-u-3-4,.pure-u-18-24{width:75%;*width:74.969%}.pure-u-19-24{width:79.1667%;*width:79.1357%}.pure-u-4-5{width:80%;*width:79.969%}.pure-u-5-6,.pure-u-20-24{width:83.3333%;*width:83.3023%}.pure-u-7-8,.pure-u-21-24{width:87.5%;*width:87.469%}.pure-u-11-12,.pure-u-22-24{width:91.6667%;*width:91.6357%}.pure-u-23-24{width:95.8333%;*width:95.8023%}.pure-u-1,.pure-u-1-1,.pure-u-5-5,.pure-u-24-24{width:100%}.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;*letter-spacing:normal;*word-spacing:-.43em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:transparent;background-color:#e6e6e6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),inset 0 0 6px rgba(0,0,0,.2);border-color:#000}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#00509b;color:#fff}.pure-button-group .pure-button{margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid var(--quote-background-colour);box-shadow:inset 0 1px 3px var(--quote-background-colour);border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid var(--quote-background-colour);box-shadow:inset 0 1px 3px var(--quote-background-colour);border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=color]:focus,.pure-form input[type=date]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=email]:focus,.pure-form input[type=month]:focus,.pure-form input[type=number]:focus,.pure-form input[type=password]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=text]:focus,.pure-form input[type=time]:focus,.pure-form input[type=url]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129fea}.pure-form input[type=checkbox]:focus,.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus{outline:thin solid #129fea;outline:1px auto #129fea}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=color][disabled],.pure-form input[type=date][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=email][disabled],.pure-form input[type=month][disabled],.pure-form input[type=number][disabled],.pure-form input[type=password][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=text][disabled],.pure-form input[type=time][disabled],.pure-form input[type=url][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:var(--quote-background-colour);color:var(--quote-background-colour);-webkit-filter:brightness(.8);filter:brightness(.8)}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{color:var(--main-text-colour);-webkit-filter:brightness(.8);filter:brightness(.8)}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=color],.pure-form-stacked input[type=date],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=email],.pure-form-stacked input[type=file],.pure-form-stacked input[type=month],.pure-form-stacked input[type=number],.pure-form-stacked input[type=password],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=text],.pure-form-stacked input[type=time],.pure-form-stacked input[type=url],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form-message-inline,.pure-form .pure-help-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width:480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=color],.pure-form input[type=date],.pure-form input[type=datetime-local],.pure-form input[type=datetime],.pure-form input[type=email],.pure-form input[type=month],.pure-form input[type=number],.pure-form input[type=password],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=text],.pure-form input[type=time],.pure-form input[type=url],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=color],.pure-group input[type=date],.pure-group input[type=datetime-local],.pure-group input[type=datetime],.pure-group input[type=email],.pure-group input[type=month],.pure-group input[type=number],.pure-group input[type=password],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=text],.pure-group input[type=time],.pure-group input[type=url],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form-message,.pure-form-message-inline,.pure-form .pure-help-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu{box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;*display:inline;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"▸";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"▾"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-bottom-width:0;border-right-width:0;border-top-width:0;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}:root{--green-0:#233a13;--green-1:#385723;--green-2:#457a22;--green-3:#568636;--grey-0:#000;--grey-1:#1a1a1a;--grey-2:#2b2b2b;--grey-3:#4a4a4a;--grey-4:#6d6d6d;--grey-5:#8e8e8e;--grey-6:#a0a0a0;--grey-7:#b3b3b3;--grey-8:#e4e4e4;--grey-9:#fff;--black:var(--grey-0);--white:var(--grey-9);--demo-common-dark-blue:#1e2739;--demo-common-blue:#0042b2;--demo-common-highlight-blue:#3daee9;--navbar-foreground:var(--white);--navbar-background:var(--green-1);--navbar-button-selected:var(--green-0);--navbar-button-hovering:var(--green-3);--main-text-colour:var(--black);--main-background-colour:var(--white);--default-link-colour:var(--black);--quote-background-colour:var(--grey-8);--button-confirm-background:var(--green-2);--button-confirm-foreground:var(--white);--button-confirm-hovering-background:var(--green-1);--button-confirm-hovering-foreground:var(--white);--button-confirm-active-background:var(--green-1);--button-confirm-active-foreground:var(--white);--license-info-icon-filter:none}@media(prefers-color-scheme:dark){html:not([data-force-light-theme]){--default-link-colour:var(--white);--main-background-colour:var(--grey-2);--main-text-colour:var(--grey-8);--quote-background-colour:var(--grey-3);--license-info-icon-filter:invert() hue-rotate(180deg)}}h2:not(.default-h2):not([data-use-default-h2-padding]){margin:0}.navcontainer:not(.default-navcontainer){margin-bottom:0!important}.abort-button{margin-left:2px;border:2px solid #0078e7;color:#0078e7;font-size:87%;margin-top:1px;background:#fff}div.pages-list{margin-top:15px}.login-div,.register-div{display:block;text-align:center}a.page-number{color:#00f}a.current-page-number{color:inherit;background-color:inherit}.cancelled{text-decoration:line-through}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}@media(prefers-color-scheme:dark){table:not([data-default-table]):not([data-default]){-webkit-filter:invert();filter:invert();color:#282828}#main .currency-indicator{-webkit-filter:invert();filter:invert()}}.transitionContainer{position:fixed;opacity:0;pointer-events:none;z-index:50000;background:var(--main-background-colour);transition:opacity .5s;width:100vw;height:100vh}body.transition-login .transitionContainer{opacity:1}.sections{margin-right:4px}.sections section{padding:16px;border-radius:8px}.sections section:not(:last-child){margin-bottom:8px}.sections #payments .payments article>.payments .tab{overflow:hidden;border:2px solid var(--main-text-colour);border-radius:8px;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none;width:-webkit-max-content;width:max-content;background-color:#809cb6}.sections #payments .payments article>.payments .tab button{border:none;padding:8px 4px 8px 8px;color:#fff;background-color:#809cb6;cursor:pointer;transition:background-color .5s}.sections #payments .payments article>.payments .tab button:not(:last-child){margin-right:4px}.sections #payments .payments article>.payments .tab button:first-child{border-top-left-radius:6px}.sections #payments .payments article>.payments .tab button:last-child{border-top-right-radius:6px}.sections #payments .payments article>.payments .tab button:hover{background-color:#0a67be}.sections #payments .payments article>.payments .tab button.active{background-color:#00509b}.sections #payments .payments article>.payments .tabcontent{display:block;padding:8px 16px;width:-webkit-max-content;width:max-content;border:2px solid var(--main-text-colour);border-radius:8px;border-top-left-radius:0}.sections #payments .payments article>.payments .tabcontent:not(.active){display:none}.logout{float:right;border:20px;margin-right:15px;margin-top:15px}input[type=number]{-webkit-appearance:textfield;appearance:textfield}#transfer-fields{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#id_amount,#main .amount{width:6em;display:inline-block;border-radius:4px 0 0 4px}input{background-color:inherit}.large-amount{font-weight:700;font-size:x-large}.currency{font-style:oblique}#main .currency-indicator{color:#000;border-radius:0 4px 4px 0;position:relative}#main .fieldlabel{display:block;padding-bottom:.5em}#main .fieldbox{margin-right:1em;margin-bottom:.5em}#logout-button{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.login-form>.pure-form,.register-form>.pure-form{background:#4a4a4a;color:#fff;display:inline-block;text-align:left;margin-left:auto;margin-right:auto;padding:16px;border-radius:8px;width:-webkit-max-content;width:max-content}.login-form>.pure-form .formFieldLabel,.register-form>.pure-form .formFieldLabel{margin:2px}.login-form>.pure-form input[type=password],.login-form>.pure-form input[type=text],.register-form>.pure-form input[type=password],.register-form>.pure-form input[type=text]{border:none;border-radius:4px;background:#6a6a6a;color:#fefefe;box-shadow:none}.login-form>.pure-form .loginFieldLabel+input[placeholder=Password][type=password],.login-form>.pure-form input#register-pw-check[placeholder=Password][type=password],.register-form>.pure-form .loginFieldLabel+input[placeholder=Password][type=password],.register-form>.pure-form input#register-pw-check[placeholder=Password][type=password]{margin-bottom:8px}.login-form>.pure-form .btn-login,.login-form>.pure-form .btn-register,.register-form>.pure-form .btn-login,.register-form>.pure-form .btn-register{float:left}.login-form>.pure-form .btn-cancel,.register-form>.pure-form .btn-cancel{float:right}.login-form>.pure-form h2,.register-form>.pure-form h2{margin-top:0;margin-bottom:10px}.challenge-div{display:block;text-align:center}.challenge-form>.pure-form{background:#4a4a4a;color:#fff;display:inline-block;text-align:left;margin-left:auto;margin-right:auto;padding:16px;border-radius:8px;width:-webkit-max-content;width:max-content}.challenge-form>.pure-form .formFieldLabel{margin:2px}.challenge-form>.pure-form input[type=text]{border:none;border-radius:4px;background:#6a6a6a;color:#fefefe;box-shadow:none}.challenge-form>.pure-form .btn-confirm{float:left}.challenge-form>.pure-form .btn-cancel{float:right}.challenge-form>.pure-form h2{margin-top:0;margin-bottom:10px}.payto-form>.pure-form,.reserve-form>.pure-form,.wire-transfer-form>.pure-form{background:#4a4a4a;color:#fff;display:inline-block;text-align:left;margin-left:auto;margin-right:auto;padding:16px;border-radius:8px;width:-webkit-max-content;width:max-content}.payto-form>.pure-form .formFieldLabel,.reserve-form>.pure-form .formFieldLabel,.wire-transfer-form>.pure-form .formFieldLabel{margin:2px}.payto-form>.pure-form input[type=text],.reserve-form>.pure-form input[type=text],.wire-transfer-form>.pure-form input[type=text]{border:none;border-radius:4px;background:#6a6a6a;color:#fefefe;box-shadow:none}html{background:var(--main-background-colour);color:var(--main-text-colour)}.hint{scale:.7}section#footer.footer>div.footer{text-align:center;margin-top:5px}.demobar h1,h1.nav{text-align:center}.demobar>p{padding:.5em}.demobar a,.demobar a:visited{color:inherit;background-color:inherit}.tt{font-family:Lucida Console,Monaco,monospace}.informational-ok{background:#90ee90}.informational-fail,.informational-ok{text-align:center;border-radius:1em;padding:.5em;margin:15px}.informational-fail{background:#ff1212}.content,.demobar{overflow-x:auto}.demobar{background-color:#0042b2;color:#fff}body{overflow-x:hidden;overflow-y:auto}.navcontainer{margin-bottom:50px;width:100%;color:#fff;position:-webkit-sticky;position:sticky;top:0;width:100vw;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:1}.navcontainer,nav{background:#0042b2;z-index:10000}nav{left:1vw;position:relative}.navbtn,nav a,nav button,nav span{border:none;color:#fff;text-align:center;text-decoration:none;display:inline-block;font-size:16px;background:#0042b2;height:inherit;padding:15px 32px}.navbtn:hover,nav a:hover,nav span:hover{background:#3daee9}.navbtn.active,nav a.active,nav span.active{background-color:#1e2739}.navbtn.active:hover,nav a.active:hover,nav button.active:hover,nav span.active:hover{background:#3daee9}.navbtn,nav a,nav span{cursor:pointer}nav .right{float:right;margin-right:5vw}nav .hide div.nav{display:none}.langbtn{width:100%;text-align:left}.skip{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.skip:focus{position:static;width:auto;height:auto}.demobar,.navbtn,.navcontainer,nav,nav a,nav button,nav span{color:#fff;background:#a00000}.navbtn.active,nav a.active,nav button,nav span.active{background-color:#7a0606}.navbtn.active:hover,.navbtn:hover,nav a.active:hover,nav a:hover,nav button:hover,nav span.active:hover,nav span:hover{background:#df3d3d}nav a.navbtn.langbtn:focus{background-color:#df3d3d}</style><link rel="shortcut icon" href="/favicon.ico"></head><body><script>!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="gF00")}({Xi9u:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},atz2:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],u=[],f={};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),u.push([t,n]),f[t]=f[t]?f[t]+","+n:n})),n(function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return u},get:function(e){return f[e.toLowerCase()]},has:function(e){return e.toLowerCase()in f}}}}())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}},gF00:function(e,t,n){(function(e){e.Promise||(e.Promise=n("lny7").default),e.fetch||(e.fetch=n("pSi9"))}).call(this,n("Xi9u"))},lny7:function(e,t,n){"use strict";function r(e){return Boolean(e&&void 0!==e.length)}function o(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void c(t.promise,e)}f(t.promise,r)}else(1===e._state?f:c)(t.promise,e._value)}))):e._deferreds.push(t)}function f(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void l((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){c(e,t)}var r,o}function c(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function a(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e((function(e){n||(n=!0,f(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}n.r(t);var d=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},p=function(e){return new this((function(t,n){function r(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(t){r(e,t)}),(function(n){o[e]={status:"rejected",reason:n},0==--i&&t(o)}))}o[e]={status:"fulfilled",value:n},0==--i&&t(o)}if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var i=o.length,u=0;u<o.length;u++)r(u,o[u])}))},h=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(o);return u(this,new a(e,t,n)),n},i.prototype.finally=d,i.all=function(e){return new i((function(t,n){function o(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var f=r.then;if("function"==typeof f)return void f.call(r,(function(t){o(e,t)}),n)}i[e]=r,0==--u&&t(i)}catch(e){n(e)}}if(!r(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var u=i.length,f=0;f<i.length;f++)o(f,i[f])}))},i.allSettled=p,i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){if(!r(e))return n(new TypeError("Promise.race accepts an array"));for(var o=0,u=e.length;o<u;o++)i.resolve(e[o]).then(t,n)}))},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){h(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};t.default=i},pSi9:function(e,t,n){e.exports=self.fetch||(self.fetch=n("atz2").default||n("atz2"))}});</script><script>!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(e){return t[e]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s="TdxT")}({"/hs+":function(t,e,r){"use strict";function n(t,e){gt.i.__h&>.i.__h(lt,t,dt||e),dt=0;var r=lt.__H||(lt.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:_t}),r.__[t]}function o(t){return dt=1,i(b,t)}function i(t,e,r){var o=n(ct++,2);if(o.t=t,!o.__c&&(o.__=[r?r(e):b(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=lt,!lt.u)){lt.u=!0;var i=lt.shouldComponentUpdate;lt.shouldComponentUpdate=function(t,e,r){if(!o.__c.__H)return!0;var n=o.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var a=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,r))}}return o.__N||o.__}function a(t,e){var r=n(ct++,3);!gt.i.__s&&y(r.__H,e)&&(r.__=t,r.i=e,lt.__H.__h.push(r))}function u(t,e){var r=n(ct++,4);!gt.i.__s&&y(r.__H,e)&&(r.__=t,r.i=e,lt.__h.push(r))}function s(t){return dt=5,c((function(){return{current:t}}),[])}function c(t,e){var r=n(ct++,7);return y(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function l(t,e){return dt=8,c((function(){return t}),e)}function f(t){var e=lt.context[t.__c],r=n(ct++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(lt)),e.props.value):t.__}function h(t,e){gt.i.useDebugValue&>.i.useDebugValue(e?e(t):t)}function g(){for(var t;t=pt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(p),t.__H.__h.forEach(_),t.__H.__h=[]}catch(e){t.__H.__h=[],gt.i.__e(e,t.__v)}}function d(t){var e,r=function(){clearTimeout(n),Mt&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);Mt&&(e=requestAnimationFrame(r))}function p(t){var e=lt,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),lt=e}function _(t){var e=lt;t.__c=t.__(),lt=e}function y(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function b(t,e){return"function"==typeof e?e(t):e}function v(t,e){var r=o((function(){return"undefined"!=typeof window&&window.localStorage.getItem(t)||e})),n=r[1];return[r[0],function(e){n((function(r){var n=e instanceof Function?e(r):e;return"undefined"!=typeof window&&(n?window.localStorage.setItem(t,n):window.localStorage.removeItem(t)),n}))}]}function w(t,e){var r=o((function(){return"undefined"!=typeof window&&window.localStorage.getItem(t)||e})),n=r[0],i=r[1];return[n,function(e){var r=e instanceof Function?e(n):e;i(r),"undefined"!=typeof window&&(r?window.localStorage.setItem(t,r):window.localStorage.removeItem(t))}]}function m(t,e){for(var r in e)t[r]=e[r];return t}function M(t,e){for(var r in t)if("__source"!==r&&!(r in e))return!0;for(var n in e)if("__source"!==n&&t[n]!==e[n])return!0;return!1}function j(t){this.props=t}function O(){this.__u=0,this.t=null,this.__b=null}function I(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function A(){this.u=null,this.o=null}function T(){}function N(){return this.cancelBubble}function C(){return this.defaultPrevented}function L(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))}function k(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a}function D(){var t=Tt().handler;return function(e){var r,n=E(e);if(!n)return n;for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(r=t.translate(n).ifPlural(1,n)).fetch.apply(r,i);return u}}function E(t){for(var e="",r=0;r<t.length;r++)e+=t[r],r<t.length-1&&(e+="%"+(r+1)+"$s");return e}function x(t){var e=1;return(t instanceof Array?t:[t]).map((function(t){return"string"==typeof t?t:"%"+e+++"$s"})).join("").replace(/ +/g," ").trim()}function S(t,e){for(var r=t.split(/%(\d+)\$s/),n=e instanceof Array?e:[e],o=Array(),i=0;i<n.length;i++){var a=n[i];void 0!==a&&("string"!=typeof a&&o.push(a))}for(var u=Array(),s=0;s<r.length;s++)if(s%2==0)u.push(r[s]);else{var c=Number.parseInt(r[s],10)-1;u.push(o[c])}return u}function P(t){var e=t.children,r=x(e),n=S(Tt().handler.ngettext(r,r,1),e);return Object(gt.g)(gt.b,null,n)}function z(t){return Rr[t]?Rr[t]:String(t)}function U(){var t=o(!1),e=t[1],r=Tt(),n=r.lang,i=r.changeLanguage,u=o(!0),s=u[0],c=u[1];return a((function(){function t(t){"Escape"===t.code&&c(!0)}function e(){c(!0)}return document.body.addEventListener("click",e),document.body.addEventListener("keydown",t),function(){document.body.removeEventListener("keydown",t),document.body.removeEventListener("click",e)}}),[]),Object(gt.g)(gt.b,null,Object(gt.g)("button",{name:"language",onClick:function(t){c((function(t){return!t})),t.stopPropagation()}},z(n)),Object(gt.g)("div",{id:"lang",class:s?"hide":""},Object(gt.g)("div",{style:"position: relative; overflow: visible;"},Object(gt.g)("div",{class:"nav",style:"position: absolute; max-height: 60vh; overflow-y: scroll"},Object.keys(Ot).filter((function(t){return t!==n})).map((function(t){return Object(gt.g)("a",{key:t,href:"#",class:"navbtn langbtn",value:t,onClick:function(){i(t),e(!1)}},z(t))})),Object(gt.g)("br",null)))))}function B(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return R(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Y(t,e){return e||(e=t.slice(0)),t.raw=e,t}function F(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||(o[r]=t[r]);return o}function Q(t){if(null==t)throw new TypeError("Cannot destructure "+t)}function W(){return(W=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function H(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H(Object(r),!0).forEach((function(e){$(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V(t){if(Gr)return t}function J(t){return function(){return t((function(t){return G(G({},t),{},{showPublicHistories:!0})}))}}function Z(t,e){var r=new Headers;return r.append("Authorization","Basic "+Sr.Buffer.from(t+":"+e).toString("base64")),r.append("Content-Type","application/json"),r}function q(t){var e=v("credentials-request-state",JSON.stringify(t)),r=e[0]?JSON.parse(e[0]):e[0];return[r,function(t){var n=t instanceof Function?JSON.stringify(t(r)):JSON.stringify(t);e[1](n)}]}function K(t,e,r){return new Promise((function(n,o){var i,a,u;if(void 0===t)return console.log("No credentials found."),r((function(t){return G(G({},t),{},{hasError:!0,error:"No credentials found."})})),n();if(void 0===e)return console.log("No withdrawal ID found."),r((function(t){return G(G({},t),{},{hasError:!0,error:"No withdrawal ID found."})})),n();var s=function(t){try{return console.log("Could not abort the withdrawal",t),r((function(e){return G(G({},e),{},{hasError:!0,error:"Could not abort the withdrawal: "+t})})),n()}catch(t){return o(t)}};try{return a=Z(t.username,t.password),u=new URL("access-api/accounts/"+t.username+"/withdrawals/"+e+"/abort",t.url),Promise.resolve(fetch(u.href,{method:"POST",headers:a})).then((function(t){try{return i=t,function(){try{return i.ok?(console.log("Withdrawal operation aborted!"),r((function(t){return G(G({},W({},(Q(t),t))),{},{info:"Withdrawal aborted!"})})),n()):(console.log("Withdrawal abort gave response error ("+i.status+")",i.statusText),r((function(t){return G(G({},t),{},{hasError:!0,error:"Withdrawal abortion gave response error ("+i.status+")"})})),n())}catch(t){return o(t)}}()}catch(t){return s(t)}}),s)}catch(t){s(t)}}))}function X(t,e,r){return new Promise((function(n,o){var i,a,u;if(void 0===t)return console.log("No credentials found."),r((function(t){return G(G({},t),{},{hasError:!0,error:"No credentials found."})})),n();if(void 0===e)return console.log("No withdrawal ID found."),r((function(t){return G(G({},t),{},{hasError:!0,error:"No withdrawal ID found."})})),n();var s=function(t){try{return console.log("Could not POST withdrawal confirmation to the bank",t),r((function(e){return G(G({},e),{},{hasError:!0,error:"Could not confirm the withdrawal: "+t})})),n()}catch(t){return o(t)}};try{return a=Z(t.username,t.password),u=new URL("access-api/accounts/"+t.username+"/withdrawals/"+e+"/confirm",t.url),console.log("Confirming the withdrawal at",u.href),Promise.resolve(fetch(u.href,{method:"POST",headers:a})).then((function(t){try{return i=t,function(){try{return i&&i.ok?(console.log("Withdrawal operation confirmed!"),r((function(t){return G(G({},F(t,Yr)),{},{info:"Withdrawal confirmed!"})})),n()):(console.log("Withdrawal confirmation gave response error ("+i.status+")",i.statusText),r((function(t){return G(G({},t),{},{hasError:!0,error:"Withdrawal confirmation gave response error ("+i.status+")"})})),n())}catch(t){return o(t)}}()}catch(t){return s(t)}}),s)}catch(t){s(t)}}))}function tt(t,e,r,n){return new Promise((function(o,i){var a,u,s=function(t){try{return console.log("Could not POST transaction request to the bank",t),r((function(e){return G(G({},e),{},{hasError:!0,error:"Could not create the wire transfer: "+t})})),o()}catch(t){return i(t)}};try{return Promise.resolve(function(t,e,r){return new Promise((function(n,o){var i,a;return void 0===e?o(Error("Credentials can't be found in a undefined backend state.")):(i=Z(e.username,e.password),a=new URL(t,e.url),Promise.resolve(fetch(a.href,{method:"POST",headers:i,body:r})).then(n,o))}))}("access-api/accounts/"+function(t){if(void 0===t)throw Error("Username can't be found in a undefined backend state.");return t.username}(e)+"/transactions",e,JSON.stringify(t))).then((function(t){try{return a=t,function(){try{return a.ok?(console.log("Wire transfer created!"),r((function(t){return G(G({},t),{},{hasInfo:!0,info:"Wire transfer created!"})})),n(),o()):Promise.resolve(a.json()).then((function(t){try{return u=JSON.stringify(t),console.log("Transfer creation gave response error: "+u+" ("+a.status+")"),r((function(t){return G(G({},t),{},{hasError:!0,error:"Transfer creation gave response error: "+u+" ("+a.status+")"})})),o()}catch(t){return i(t)}}),i)}catch(t){return i(t)}}()}catch(t){return s(t)}}),s)}catch(t){s(t)}}))}function et(t,e,r){return new Promise((function(n,o){var i,a,u,s,c;if(void 0===e)return console.log("Page has a problem: no credentials found in the state."),r((function(t){return G(G({},t),{},{hasError:!0,error:"No credentials given."})})),n();var l=function(t){try{return console.log("Could not POST withdrawal request to the bank",t),r((function(e){return G(G({},e),{},{hasError:!0,error:"Could not create withdrawal operation: "+t})})),n()}catch(t){return o(t)}};try{return a=Z(e.username,e.password),u=new URL("access-api/accounts/"+e.username+"/withdrawals",e.url),Promise.resolve(fetch(u.href,{method:"POST",headers:a,body:JSON.stringify({amount:t})})).then((function(t){try{return i=t,function(){try{return i.ok?(console.log("Withdrawal operation created!"),Promise.resolve(i.json()).then((function(t){try{return c=t,r((function(t){return G(G({},t),{},{withdrawalInProgress:!0,talerWithdrawUri:c.taler_withdraw_uri,withdrawalId:c.withdrawal_id})})),n()}catch(t){return o(t)}}),o)):Promise.resolve(i.text()).then((function(t){try{return s=t,console.log("Withdrawal creation gave response error: "+s+" ("+i.status+")"),r((function(t){return G(G({},t),{},{hasError:!0,error:"Withdrawal creation gave response error: "+s+" ("+i.status+")"})})),n()}catch(t){return o(t)}}),o)}catch(t){return o(t)}}()}catch(t){return l(t)}}),l)}catch(t){l(t)}}))}function rt(t){var e=f(Jr),r=e[1],n=t.withdrawalId,o=t.talerWithdrawUri,i=t.backendState,a=D(),u=Object(gt.g)("a",{class:"pure-button",onClick:function(){r((function(t){return G(G({},W({},(Q(t),t))),{},{withdrawalInProgress:!1})}))}},a(se||(se=Y(["Abort"]))));console.log("Showing withdraw URI: "+o);var s=xr("integration-api/withdrawal-operation/"+n),c=s.data,l=s.error,h=s.mutate;return void 0!==l?(console.log("withdrawal ("+n+") was never (correctly) created at the bank...",l),r((function(t){return G(G({},t),{},{hasError:!0,error:a(ce||(ce=Y(["withdrawal (",") was never (correctly) created at the bank..."])),n)})})),Object(gt.g)(gt.b,null,Object(gt.g)("br",null),Object(gt.g)("br",null),u)):void 0===c?Object(gt.g)("p",null,a(le||(le=Y(["Waiting the bank to create the operaion..."])))):(console.log("withdrawal status",c),c.aborted&&r((function(t){return G(G({},F(t,Qr)),{},{withdrawalInProgress:!1,hasError:!0,error:a(fe||(fe=Y(["This withdrawal was aborted!"])))})})),c.selection_done?Object(gt.g)(rn,{backendState:i}):(setTimeout((function(){return h()}),1e3),Object(gt.g)(nn,{talerWithdrawUri:o,abortButton:u})))}function nt(t){var e=t.pageNumber,r=t.accountLabel,n=D(),o=xr("access-api/accounts/"+r+"/transactions?page="+e),i=o.data,a=o.error;if(void 0!==a)switch(console.log("transactions not found error",a),a.status){case 404:return Object(gt.g)("p",null,"Transactions page ",e," was not found.");case 401:return Object(gt.g)("p",null,"Wrong credentials given.");default:return Object(gt.g)("p",null,"Transaction page ",e," could not be retrieved.")}return i?(console.log("History data of "+r,i),Object(gt.g)("div",{class:"results"},Object(gt.g)("table",{class:"pure-table pure-table-striped"},Object(gt.g)("thead",null,Object(gt.g)("tr",null,Object(gt.g)("th",null,n(Le||(Le=Y(["Date"])))),Object(gt.g)("th",null,n(ke||(ke=Y(["Amount"])))),Object(gt.g)("th",null,n(De||(De=Y(["Counterpart"])))),Object(gt.g)("th",null,n(Ee||(Ee=Y(["Subject"])))))),Object(gt.g)("tbody",null,i.transactions.map((function(t,e){var r="DBIT"==t.direction?"-":"",n="DBIT"==t.direction?t.creditorIban:t.debtorIban,o=/^([0-9]{4})-([0-9]{2})-([0-9]{1,2})/.exec(t.date),i=null!==o?o[3]+"/"+o[2]+" "+o[1]:"date not found";return Object(gt.g)("tr",{key:e},Object(gt.g)("td",null,i),Object(gt.g)("td",null,r,t.amount," ",t.currency),Object(gt.g)("td",null,n),Object(gt.g)("td",null,t.subject))})))))):(console.log("History data of "+r+" not arrived"),Object(gt.g)("p",null,'"Transactions page loading..."'))}function ot(t){for(var e,r,n=Lr().cache,o=t.accountLabel,i=t.backendState,a=xr("access-api/accounts/"+o),u=a.data,s=a.error,c=f(Jr),l=c[0],h=c[1],g=l.withdrawalId,d=l.talerWithdrawUri,p=D(),_=(e=w("transaction-page","0"),[r=JSON.parse(e[0]),function(t){var n=t instanceof Function?JSON.stringify(t(r)):JSON.stringify(t);e[1](n)}]),y=_[0],b=[],v=0;v<=y;v++)b.push(Object(gt.g)(nt,{accountLabel:o,pageNumber:v}));if(void 0!==s)switch(console.log("account error",s),s.status){case 404:return h((function(t){return G(G({},t),{},{hasError:!0,isLoggedIn:!1,error:p(xe||(xe=Y(["Username or account label '","' not found. Won't login."])),o)})})),n.clear(),Object(gt.g)("p",null,"Profile not found...");case 401:return h((function(t){return G(G({},t),{},{hasError:!0,isLoggedIn:!1,error:p(Se||(Se=Y(["Wrong credentials given."])))})})),Object(gt.g)("p",null,"Wrong credentials...");default:return h((function(t){return G(G({},t),{},{hasError:!0,isLoggedIn:!1,error:p(Pe||(Pe=Y(["Account information could not be retrieved."])))})})),Object(gt.g)("p",null,"Unknown problem...")}if(!u)return Object(gt.g)("p",{style:{position:"fixed",display:"block",top:"3em",left:"0",width:"100vw",textAlign:"center"}},"Retrieving the profile page...");if(console.log("maybe new withdrawal "+d),d)return console.log("Bank created a new Taler withdrawal"),Object(gt.g)(tn,null,Object(gt.g)(rt,{accountLabel:o,backendState:i,withdrawalId:g,talerWithdrawUri:d}));var m,M,j=function(t){if(!/^[A-Z]+:[0-9]+(\.[0-9]+)?$/.test(t))throw Error("Backend gave invalid amount: "+t+".");var e=t.split(":");return{value:e[1],currency:e[0]}}(u.balance.amount);return Object(gt.g)(tn,null,Object(gt.g)("div",null,Object(gt.g)("h1",{class:"nav welcome-text"},Object(gt.g)(P,null,"Welcome, ",o," (",(""===(m=new URL(u.paytoUri).pathname.split("/"))[M=m.length-1]&&M--,m[M]),")!"))),Object(gt.g)("div",{className:"sections"},Object(gt.g)("section",{id:"assets"},Object(gt.g)("div",{class:"asset-summary"},Object(gt.g)("h2",null,p(ze||(ze=Y(["Bank account balance"])))),"debit"==u.balance.credit_debit_indicator?Object(gt.g)("b",null,"-"):null,Object(gt.g)("div",{class:"large-amount amount"},Object(gt.g)("span",{class:"value"},""+j.value)," ",Object(gt.g)("span",{class:"currency"},""+j.currency)))),Object(gt.g)("section",{id:"payments"},Object(gt.g)("div",{class:"payments"},Object(gt.g)("h2",null,p(Ue||(Ue=Y(["Payments"])))),Object(gt.g)(Vr.Provider,{value:j.currency},t.children,Object(gt.g)(an,{backendState:i,pageStateSetter:h})))),Object(gt.g)("section",{id:"main"},Object(gt.g)("article",null,Object(gt.g)("h2",null,p(Be||(Be=Y(["Latest transactions:"])))),Object(gt.g)(nt,{pageNumber:"0",accountLabel:o})))))}function it(t){var e=t.username,r=t.password,n=t.backendUrl,o=new Headers;return o.append("Authorization","Basic "+Sr.Buffer.from(e+":"+r).toString("base64")),console.log("Likely backend base URL",n),Object(gt.g)(Wr,{value:{fetcher:function(t){return fetch(n+t||"",{headers:o}).then((function(t){if(!t.ok)throw{status:t.status,json:t.json()};return t.json()}))}}},t.children)}function at(t){var e=t.baseUrl;return console.log("Base URL",e),Object(gt.g)(Wr,{value:{fetcher:function(t){return fetch(e+t||"").then((function(t){if(!t.ok)throw{status:t.status,json:t.json()};return t.json()}))}}},t.children)}function ut(t){var e,r,n,o=(r=v("show-public-account",JSON.stringify(e)),[n=r[0]?JSON.parse(r[0]):r[0],function(t){var e=t instanceof Function?JSON.stringify(t(n)):JSON.stringify(t);r[1](e)}]),i=o[0],a=o[1],u=xr("access-api/public-accounts"),s=u.data,c=u.error,l=D();if(void 0!==c)switch(console.log("account error",c),c.status){case 404:console.log("public accounts: 404",c),t.pageStateSetter((function(t){return G(G({},t),{},{hasError:!0,showPublicHistories:!1,error:l(Re||(Re=Y(["List of public accounts was not found."])))})}));break;default:console.log("public accounts: non-404 error",c),t.pageStateSetter((function(t){return G(G({},t),{},{hasError:!0,showPublicHistories:!1,error:l(Ye||(Ye=Y(["List of public accounts could not be retrieved."])))})}))}if(!s)return Object(gt.g)("p",null,"Waiting public accounts list...");var f={},h=[];void 0===i&&s.publicAccounts.length>0&&a(s.publicAccounts[1].accountLabel),console.log("Public history tab: "+i);for(var g,d=function(){var t=g.value;console.log("Asking transactions for",t.accountLabel);var e=t.accountLabel==i;h.push(Object(gt.g)("li",{class:e?"pure-menu-selected pure-menu-item":"pure-menu-item pure-menu"},Object(gt.g)("a",{href:"#",class:"pure-menu-link",onClick:function(){return a(t.accountLabel)}},t.accountLabel))),f[t.accountLabel]=Object(gt.g)(nt,{accountLabel:t.accountLabel,pageNumber:0})},p=B(s.publicAccounts);!(g=p()).done;)d();return Object(gt.g)(gt.b,null,Object(gt.g)("h1",{class:"nav"},l(Fe||(Fe=Y(["History of public accounts"])))),Object(gt.g)("section",{id:"main"},Object(gt.g)("article",null,Object(gt.g)("div",{class:"pure-menu pure-menu-horizontal",name:"accountMenu"},Object(gt.g)("ul",{class:"pure-menu-list"},h),void 0!==i?f[i]:Object(gt.g)("p",null,"No public transactions found."),t.children))))}function st(){var t,e,r,n=(e=v("backend-state",JSON.stringify(t)),[r=e[0]?JSON.parse(e[0]):e[0],function(t){var n=t instanceof Function?JSON.stringify(t(r)):JSON.stringify(t);e[1](n)}]),o=n[0],i=n[1],a=function(t){void 0===t&&(t={isLoggedIn:!1,isRawPayto:!1,tryRegister:!1,showPublicHistories:!1,hasError:!1,hasInfo:!1,withdrawalInProgress:!1});var e=w("page-state",JSON.stringify(t)),r=JSON.parse(e[0]);return console.log("Current page state",r),[r,function(t){var n=t instanceof Function?JSON.stringify(t(r)):JSON.stringify(t);console.log("Setting new page state",n),e[1](n)}]}(),u=a[0],s=a[1],c=D();return u.showPublicHistories?Object(gt.g)(at,{baseUrl:Zr()},Object(gt.g)(Jr.Provider,{value:[u,s]},Object(gt.g)(tn,null,Object(gt.g)(ut,{pageStateSetter:s},Object(gt.g)("br",null),Object(gt.g)("a",{class:"pure-button",onClick:function(){s((function(t){return G(G({},t),{},{showPublicHistories:!1})}))}},"Go back"))))):u.tryRegister?(console.log("allow registrations?",Hr),Hr?Object(gt.g)(Jr.Provider,{value:[u,s]},Object(gt.g)(tn,null,Object(gt.g)(sn,{backendStateSetter:i}))):Object(gt.g)(Jr.Provider,{value:[u,s]},Object(gt.g)(tn,null,Object(gt.g)("p",null,c(Qe||(Qe=Y(["Currently, the bank is not accepting new registrations!"]))))))):u.isLoggedIn?void 0===o?(s((function(t){return G(G({},t),{},{hasError:!0,isLoggedIn:!1,error:c(We||(We=Y(["Page has a problem: logged in but backend state is lost."])))})})),Object(gt.g)("p",null,"Error: waiting for details...")):(console.log("Showing the profile page.."),Object(gt.g)(it,{username:o.username,password:o.password,backendUrl:o.url},Object(gt.g)(Jr.Provider,{value:[u,s]},Object(gt.g)(ot,{accountLabel:o.username,backendState:o})))):Object(gt.g)(Jr.Provider,{value:[u,s]},Object(gt.g)(tn,null,Object(gt.g)("h1",{class:"nav"},c(He||(He=Y(["Welcome to ","!"])),$r)),Object(gt.g)(un,{pageStateSetter:s,backendStateSetter:i})))}r.r(e);var ct,lt,ft,ht,gt=r("M/Vy"),dt=0,pt=[],_t=[],yt=gt.i.__b,bt=gt.i.__r,vt=gt.i.diffed,wt=gt.i.__c,mt=gt.i.unmount;gt.i.__b=function(t){"function"!=typeof t.type||t.__m||null===t.__?t.__m||(t.__m=t.__&&t.__.__m?t.__.__m:""):t.__m=(t.__&&t.__.__m?t.__.__m:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),lt=null,yt&&yt(t)},gt.i.__r=function(t){bt&&bt(t),ct=0;var e=(lt=t.__c).__H;e&&(ft===lt?(e.__h=[],lt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=_t,t.__N=t.i=void 0}))):(e.__h.forEach(p),e.__h.forEach(_),e.__h=[])),ft=lt},gt.i.diffed=function(t){vt&&vt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==pt.push(e)&&ht===gt.i.requestAnimationFrame||((ht=gt.i.requestAnimationFrame)||d)(g)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==_t&&(t.__=t.__V),t.i=void 0,t.__V=_t}))),ft=lt=null},gt.i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(p),t.__h=t.__h.filter((function(t){return!t.__||_(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],gt.i.__e(r,t.__v)}})),wt&&wt(t,e)},gt.i.unmount=function(t){mt&&mt(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{p(t)}catch(t){e=t}})),r.__H=void 0,e&>.i.__e(e,r.__v))};var Mt="function"==typeof requestAnimationFrame,jt=r("jBoo"),Ot={de:{domain:"messages",locale_data:{messages:{days:[""],hours:[""],minutes:[""],seconds:[""],Clear:[""],Logout:[""],"Demo Bank":[""],"Go back":[""],"Wire transfer":[""],"Transfer money to another account of this bank:":[""],"Want to try the raw payto://-format?":[""],"Transfer money via the Payto system:":[""],"payto address":[""],Confirm:[""],"Confirm Withdrawal":[""],"Waiting the bank to create the operaion...":[""],"This withdrawal was aborted!":[""],"Withdraw to a Taler Wallet":[""],"You can use this QR code to withdraw to your mobile wallet:":[""],"this link":[""],Abort:[""],"Start withdrawal":[""],"Withdraw Money into a Taler wallet":[""],"Amount to withdraw":[""],"Please login!":[""],Login:[""],"Register to the euFin bank!":[""],"Registration form":[""],Register:[""],Date:[""],Amount:[""],Counterpart:[""],Subject:[""],"Username or account label '%1$s' not found. Won't login.":[""],"Wrong credentials given.":[""],"Account information could not be retrieved.":[""],"Close wire transfer":[""],"Close Taler withdrawal":[""],"Bank account balance:":[""],"Latest transactions:":[""],"Transfer money manually":[""],"List of public accounts was not found.":[""],"List of public accounts could not be retrieved.":[""],"History of public accounts":[""],"Page has a problem: logged in but backend state is lost.":[""],"Welcome to the euFin bank!":[""],"":{domain:"messages",plural_forms:"nplurals=2; plural=(n != 1);",lang:"de"}}}},en:{domain:"messages",locale_data:{messages:{days:["days"],hours:["hours"],minutes:["minutes"],seconds:["seconds"],Clear:[""],Logout:[""],"Demo Bank":[""],"Go back":["Go back"],"Wire transfer":[""],"Transfer money to another account of this bank:":[""],"Want to try the raw payto://-format?":[""],"Transfer money via the Payto system:":[""],"payto address":[""],Confirm:[""],"Confirm Withdrawal":["Confirm withdrawal"],"Waiting the bank to create the operaion...":[""],"This withdrawal was aborted!":[""],"Withdraw to a Taler Wallet":["Charge Taler wallet"],"You can use this QR code to withdraw to your mobile wallet:":[""],"this link":[""],Abort:[""],"Start withdrawal":["Start withdrawal"],"Withdraw Money into a Taler wallet":["Charge Taler wallet"],"Amount to withdraw":["Amount to withdraw"],"Please login!":[""],Login:[""],"Register to the euFin bank!":[""],"Registration form":[""],Register:[""],Date:[""],Amount:[""],Counterpart:[""],Subject:[""],"Username or account label '%1$s' not found. Won't login.":[""],"Wrong credentials given.":[""],"Account information could not be retrieved.":[""],"Close wire transfer":[""],"Close Taler withdrawal":["Close Taler withdrawal"],"Bank account balance:":[""],"Latest transactions:":[""],"Transfer money manually":[""],"List of public accounts was not found.":[""],"List of public accounts could not be retrieved.":[""],"History of public accounts":[""],"Page has a problem: logged in but backend state is lost.":["Page has a problem: logged in but backend state is lost."],"Welcome to the euFin bank!":["Welcome to euFin bank: Taler+IBAN now possible!"],"":{domain:"messages",plural_forms:"nplurals=2; plural=(n != 1);",lang:"en"}}}},it:{domain:"messages",locale_data:{messages:{days:[""],hours:[""],minutes:[""],seconds:[""],Clear:["Cancella"],Logout:[""],"Demo Bank":["Banca 'demo'"],"Go back":["Indietro"],"Wire transfer":["Bonifico"],"Transfer money to another account of this bank:":["Trasferisci fondi a un altro conto di questa banca:"],"Want to try the raw payto://-format?":["Prova il trasferimento tramite il formato Payto!"],"Transfer money via the Payto system:":["Effettua un bonifico tramite il sistema Payto:"],"payto address":["indirizzo Payto"],Confirm:["Conferma"],"Confirm Withdrawal":["Conferma il ritiro"],"Waiting the bank to create the operaion...":["La banca sta creando l'operazione..."],"This withdrawal was aborted!":["Questo ritiro è stato annullato!"],"Withdraw to a Taler Wallet":["Ritira contante nel portafoglio Taler"],"You can use this QR code to withdraw to your mobile wallet:":["Usa questo codice QR per ritirare contante nel tuo wallet:"],"this link":["questo link"],Abort:["Annulla"],"Start withdrawal":["Ritira contante"],"Withdraw Money into a Taler wallet":["Ritira contante nel portafoglio Taler"],"Amount to withdraw":["Somma da ritirare"],"Please login!":["Accedi!"],Login:["Accedi"],"Register to the euFin bank!":["Apri un conto in banca euFin!"],"Registration form":["Registrazione"],Register:["Registrati"],Date:[""],Amount:["Somma"],Counterpart:["Controparte"],Subject:["Causale"],"Username or account label '%1$s' not found. Won't login.":["L'utente '%1$s' non esiste. Login impossibile"],"Wrong credentials given.":["Credenziali invalide."],"Account information could not be retrieved.":["Impossibile ricevere le informazioni relative al conto."],"Close wire transfer":["Chiudi il bonifico"],"Close Taler withdrawal":["Chiudi il ritiro Taler"],"Bank account balance:":["Bilancio:"],"Latest transactions:":["Ultime transazioni:"],"Transfer money manually":["Effettua un bonifico"],"List of public accounts was not found.":["Lista conti pubblici non trovata."],"List of public accounts could not be retrieved.":["Lista conti pubblici non pervenuta."],"History of public accounts":["Storico dei conti pubblici"],"Page has a problem: logged in but backend state is lost.":["Stato inconsistente: accesso utente effettuato ma stato con server perso."],"Welcome to the euFin bank!":["Benvenuti in banca euFin!"],"":{domain:"messages",plural_forms:"nplurals=2; plural=(n != 1);",lang:"it"}}}}},It=Object(gt.d)({lang:"en",handler:null,changeLanguage:function(){}}),At=function(t){var e=t.children,r=t.forceLang,n=function(t){var e=w("lang-preference",(("undefined"!=typeof window?navigator.language||navigator.userLanguage:void 0)||t||"en").substring(0,2)),r=e[1];return[e[0],function(t){if(document.body.parentElement){var e=document.body.parentElement;"string"==typeof t?(e.lang=t,r(t)):"function"==typeof t&&r((function(r){var n=t(r);return e.lang=n,n}))}else r(t)}]}(t.initial),o=n[0],i=n[1];a((function(){r&&i(r)})),console.log("lang store",Ot);var u=new jt.Jed(Ot[o]||Ot.en);return Object(gt.g)(It.Provider,{value:{lang:o,handler:u,changeLanguage:i},children:e})},Tt=function(){return f(It)};(j.prototype=new gt.a).isPureReactComponent=!0,j.prototype.shouldComponentUpdate=function(t,e){return M(this.props,t)||M(this.state,e)};var Nt=gt.i.__b;gt.i.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Nt&&Nt(t)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Ct=gt.i.__e;gt.i.__e=function(t,e,r,n){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e);Ct(t,e,r,n)};var Lt=gt.i.unmount;gt.i.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),Lt&&Lt(t)},(O.prototype=new gt.a).__c=function(t,e){var r=e.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var o=I(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(u):u())};r.__R=a;var u=function(){if(!--n.__u){if(n.state.__a){var t=n.state.__a;n.__v.__k[0]=function t(e,r,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,r,n)})),e.__c&&e.__c.__P===r&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}(t,t.__c.__P,t.__c.__O)}var e;for(n.setState({__a:n.__b=null});e=n.t.pop();)e.forceUpdate()}},s=!0===e.__h;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(a,a)},O.prototype.componentWillUnmount=function(){this.t=[]},O.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,r,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=m({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=r),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,r,n)}))),e}(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__a&&Object(gt.e)(gt.b,null,t.fallback);return o&&(o.__h=null),[Object(gt.e)(gt.b,null,e.__a?null:t.children),o]};var kt=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};(A.prototype=new gt.a).__a=function(t){var e=this,r=I(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),kt(e,t,n)):o()};r?r(i):i()}},A.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(gt.k)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},A.prototype.componentDidUpdate=A.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,r){kt(t,r,e)}))};var Dt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Et=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xt="undefined"!=typeof document,St=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};gt.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(gt.a.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Pt=gt.i.event;gt.i.event=function(t){return Pt&&(t=Pt(t)),t.persist=T,t.isPropagationStopped=N,t.isDefaultPrevented=C,t.nativeEvent=t};var zt={configurable:!0,get:function(){return this.class}},Ut=gt.i.vnode;gt.i.vnode=function(t){var e=t.type,r=t.props,n=r;if("string"==typeof e){var o=-1===e.indexOf("-");for(var i in n={},r){var a=r[i];xt&&"children"===i&&"noscript"===e||"value"===i&&"defaultValue"in r&&null==a||("defaultValue"===i&&"value"in r&&null==r.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!St(r.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Et.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),n[i]&&(i="oninputCapture")),n[i]=a)}"select"==e&&n.multiple&&Array.isArray(n.value)&&(n.value=Object(gt.k)(r.children).forEach((function(t){t.props.selected=-1!=n.value.indexOf(t.props.value)}))),"select"==e&&null!=n.defaultValue&&(n.value=Object(gt.k)(r.children).forEach((function(t){t.props.selected=n.multiple?-1!=n.defaultValue.indexOf(t.props.value):n.defaultValue==t.props.value}))),t.props=n,r.class!=r.className&&(zt.enumerable="className"in r,null!=r.className&&(n.class=r.className),Object.defineProperty(n,"className",zt))}t.$$typeof=Dt,Ut&&Ut(t)};var Bt=gt.i.__r;gt.i.__r=function(t){Bt&&Bt(t),t.__c};var Rt,Yt,Ft,Qt,Wt,Ht,Gt,$t,Vt,Jt,Zt,qt,Kt,Xt,te,ee,re,ne,oe,ie,ae,ue,se,ce,le,fe,he,ge,de,pe,_e,ye,be,ve,we,me,Me,je,Oe,Ie,Ae,Te,Ne,Ce,Le,ke,De,Ee,xe,Se,Pe,ze,Ue,Be,Re,Ye,Fe,Qe,We,He,Ge=function(){},$e=Ge(),Ve=Object,Je=function(t){return t===$e},Ze=function(t){return"function"==typeof t},qe=function(t,e){return Ve.assign({},t,e)},Ke=function(){return"undefined"!=typeof window},Xe=new WeakMap,tr=0,er=function t(e){var r,n,o=typeof e,i=e&&e.constructor,a=i==Date;if(Ve(e)!==e||a||i==RegExp)r=a?e.toJSON():"symbol"==o?e.toString():"string"==o?JSON.stringify(e):""+e;else{if(r=Xe.get(e))return r;if(r=++tr+"~",Xe.set(e,r),i==Array){for(r="@",n=0;n<e.length;n++)r+=t(e[n])+",";Xe.set(e,r)}if(i==Ve){r="#";for(var u=Ve.keys(e).sort();!Je(n=u.pop());)Je(e[n])||(r+=n+":"+t(e[n])+",");Xe.set(e,r)}}return r},rr=!0,nr=Ke(),or="undefined"!=typeof document,ir=nr&&window.addEventListener?window.addEventListener.bind(window):Ge,ar=or?document.addEventListener.bind(document):Ge,ur=nr&&window.removeEventListener?window.removeEventListener.bind(window):Ge,sr=or?document.removeEventListener.bind(document):Ge,cr={isOnline:function(){return rr},isVisible:function(){var t=or&&document.visibilityState;return Je(t)||"hidden"!==t}},lr={initFocus:function(t){return ar("visibilitychange",t),ir("focus",t),function(){sr("visibilitychange",t),ur("focus",t)}},initReconnect:function(t){var e=function(){rr=!0,t()},r=function(){rr=!1};return ir("online",e),ir("offline",r),function(){ur("online",e),ur("offline",r)}}},fr=!Ke()||"Deno"in window,hr=function(t){return Ke()&&void 0!==window.requestAnimationFrame?window.requestAnimationFrame(t):setTimeout(t,1)},gr=fr?a:u,dr="undefined"!=typeof navigator&&navigator.connection,pr=!fr&&dr&&(["slow-2g","2g"].includes(dr.effectiveType)||dr.saveData),_r=function(t){if(Ze(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?er(t):"",e,t?"$err$"+t:"",t?"$req$"+t:""]},yr=new WeakMap,br=function(t,e,r,n,o,i,a){void 0===a&&(a=!0);var u=yr.get(t),s=u[4],c=u[0][e],l=u[1][e]||[];if(a&&l)for(var f=0;f<l.length;++f)l[f](r,n,o);return i&&(delete s[e],c&&c[0])?c[0](2).then((function(){return t.get(e)})):t.get(e)},vr=0,wr=function(){return++vr},mr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return L(void 0,void 0,void 0,(function(){var e,r,n,o,i,a,u,s,c,l,f,h,g,d,p,_;return k(this,(function(y){switch(y.label){case 0:if(e=t[0],r=t[2],i=!1!==(o="boolean"==typeof(n=t[3])?{revalidate:n}:n||{}).revalidate,a=!1!==o.populateCache,u=_r(t[1]),c=u[2],!(s=u[0]))return[2];if(l=yr.get(e),f=l[2],h=l[3],t.length<3)return[2,br(e,s,e.get(s),e.get(c),$e,i,a)];if(g=r,p=f[s]=wr(),h[s]=0,Ze(g))try{g=g(e.get(s))}catch(t){d=t}return g&&Ze(g.then)?[4,g.catch((function(t){d=t}))]:[3,2];case 1:if(g=y.sent(),p!==f[s]){if(d)throw d;return[2,g]}y.label=2;case 2:return a&&(d||e.set(s,g),e.set(c,d)),h[s]=wr(),[4,br(e,s,g,d,$e,i,a)];case 3:if(_=y.sent(),d)throw d;return[2,a?_:g]}}))}))},Mr=function(t,e){for(var r in t)t[r][0]&&t[r][0](e)},jr=function(t,e){if(!yr.has(t)){var r=qe(lr,e),n={},o=mr.bind($e,t),i=Ge;if(yr.set(t,[n,{},{},{},{},o]),!fr){var a=r.initFocus(setTimeout.bind($e,Mr.bind($e,n,0))),u=r.initReconnect(setTimeout.bind($e,Mr.bind($e,n,1)));i=function(){a&&a(),u&&u(),yr.delete(t)}}return[t,o,i]}return[t,yr.get(t)[5]]},Or=jr(new Map),Ir=Or[0],Ar=qe({onLoadingSlow:Ge,onSuccess:Ge,onError:Ge,onErrorRetry:function(t,e,r,n,o){var i=r.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!Je(i)&&a>i||setTimeout(n,u,o)},onDiscarded:Ge,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:pr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:pr?5e3:3e3,compare:function(t,e){return er(t)==er(e)},isPaused:function(){return!1},cache:Ir,mutate:Or[1],fallback:{}},cr),Tr=function(t,e){var r=qe(t,e);if(e){var n=t.use,o=t.fallback,i=e.use,a=e.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=qe(o,a))}return r},Nr=Object(gt.d)({}),Cr=function(t){return Ze(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},Lr=function(){return qe(Ar,f(Nr))},kr=function(t,e,r){var n=e[t]||(e[t]=[]);return n.push(r),function(){var t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}},Dr={dedupe:!0},Er=Ve.defineProperty((function(t){var e=t.value,r=Tr(f(Nr),e),n=e&&e.provider,i=o((function(){return n?jr(n(r.cache||Ir),e):$e}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),gr((function(){return i?i[2]:$e}),[]),Object(gt.e)(Nr.Provider,qe(t,{value:r}))}),"default",{value:Ar}),xr=(Rt=function(t,e,r){var n=r.cache,i=r.compare,a=r.fallbackData,u=r.suspense,c=r.revalidateOnMount,f=r.refreshInterval,g=r.refreshWhenHidden,d=r.refreshWhenOffline,p=yr.get(n),_=p[0],y=p[1],b=p[2],v=p[3],w=p[4],m=_r(t),M=m[0],j=m[1],O=m[2],I=m[3],A=s(!1),T=s(!1),N=s(M),C=s(e),D=s(r),E=function(){return D.current},x=function(){return E().isVisible()&&E().isOnline()},S=n.get(M),P=Je(a)?r.fallback[M]:a,z=Je(S)?P:S,U=n.get(O),B=function(){return Je(c)?!E().isPaused()&&(u?!Je(z):Je(z)||r.revalidateIfStale):c},R=!(!M||!e)&&(!!n.get(I)||!A.current&&B()),Y=function(t,e){var r=o({})[1],n=s(t),i=s({data:!1,error:!1,isValidating:!1}),a=l((function(t){var o=!1,a=n.current;for(var u in t){var s=u;a[s]!==t[s]&&(a[s]=t[s],i.current[s]&&(o=!0))}o&&!e.current&&r({})}),[]);return gr((function(){n.current=t})),[n,i.current,a]}({data:z,error:U,isValidating:R},T),F=Y[0],Q=Y[1],W=Y[2],H=l((function(t){return L(void 0,void 0,void 0,(function(){var e,o,a,u,s,c,l,f,h,g,d,p;return k(this,(function(_){switch(_.label){case 0:if(e=C.current,!M||!e||T.current||E().isPaused())return[2,!1];u=!0,s=t||{},c=!w[M]||!s.dedupe,l=function(){return!T.current&&M===N.current&&A.current},f=function(){var t=w[M];t&&t[1]===a&&delete w[M]},h={isValidating:!1},g=function(){n.set(I,!1),l()&&W(h)},n.set(I,!0),W({isValidating:!0}),_.label=1;case 1:return _.trys.push([1,3,,4]),c&&(br(n,M,F.current.data,F.current.error,!0),r.loadingTimeout&&!n.get(M)&&setTimeout((function(){u&&l()&&E().onLoadingSlow(M,r)}),r.loadingTimeout),w[M]=[e.apply(void 0,j),wr()]),a=(p=w[M])[1],[4,o=p[0]];case 2:return o=_.sent(),c&&setTimeout(f,r.dedupingInterval),w[M]&&w[M][1]===a?(n.set(O,$e),h.error=$e,!Je(b[M])&&(a<=b[M]||a<=v[M]||0===v[M])?(g(),c&&l()&&E().onDiscarded(M),[2,!1]):(h.data=i(F.current.data,o)?F.current.data:o,i(n.get(M),o)||n.set(M,o),c&&l()&&E().onSuccess(o,M,r),[3,4])):(c&&l()&&E().onDiscarded(M),[2,!1]);case 3:return d=_.sent(),f(),E().isPaused()||(n.set(O,d),h.error=d,c&&l()&&(E().onError(d,M,r),r.shouldRetryOnError&&x()&&E().onErrorRetry(d,M,r,H,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,g(),l()&&c&&br(n,M,h.data,h.error,!1),[2,!0]}}))}))}),[M]),G=l(mr.bind($e,n,(function(){return N.current})),[]);if(gr((function(){C.current=e,D.current=r})),gr((function(){if(M){var t=A.current,e=H.bind($e,Dr),r=0,n=kr(M,y,(function(t,e,r){W(qe({error:e,isValidating:r},i(F.current.data,t)?$e:{data:t}))})),o=kr(M,_,(function(t){if(0==t){var n=Date.now();E().revalidateOnFocus&&n>r&&x()&&(r=n+E().focusThrottleInterval,e())}else if(1==t)E().revalidateOnReconnect&&x()&&e();else if(2==t)return H()}));return T.current=!1,N.current=M,A.current=!0,t&&W({data:z,error:U,isValidating:R}),B()&&(Je(z)||fr?e():hr(e)),function(){T.current=!0,n(),o()}}}),[M,H]),gr((function(){function t(){var t=Ze(f)?f(z):f;t&&-1!==r&&(r=setTimeout(e,t))}function e(){F.current.error||!g&&!E().isVisible()||!d&&!E().isOnline()?t():H(Dr).then(t)}var r;return t(),function(){r&&(clearTimeout(r),r=-1)}}),[f,g,d,H]),h(z),u&&Je(z)&&M)throw Je(U)?H(Dr):U;return{mutate:G,get data(){return Q.data=!0,z},get error(){return Q.error=!0,U},get isValidating(){return Q.isValidating=!0,R}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Lr(),n=Cr(t),o=n[0],i=n[1],a=n[2],u=Tr(r,a),s=Rt,c=u.use;if(c)for(var l=c.length;l-- >0;)s=c[l](s);return s(o,i||u.fetcher,u)}),Sr=r("XaFX"),Pr=r("1sbO"),zr=r.n(Pr),Ur=(r("Dv/5"),r("AxmY")),Br=r.n(Ur),Rr={es:"Español [es]",en:"English [en]",fr:"Français [fr]",de:"Deutsch [de]",sv:"Svenska [sv]",it:"Italiano [it]"},Yr=["talerWithdrawUri"],Fr=["talerWithdrawUri","withdrawalId"],Qr=["withdrawalId","talerWithdrawUri"],Wr=Er,Hr=null!="__LIBEUFIN_UI_ALLOW_REGISTRATIONS__"?"__LIBEUFIN_UI_ALLOW_REGISTRATIONS__":1,Gr=null!="__LIBEUFIN_UI_IS_DEMO__"?"__LIBEUFIN_UI_IS_DEMO__":0,$r=null!="__LIBEUFIN_UI_BANK_NAME__"?"__LIBEUFIN_UI_BANK_NAME__":"Taler Bank",Vr=Object(gt.d)(null),Jr=Object(gt.d)(null),Zr=function(){var t=void 0!==typeof window?window.location.origin+window.location.pathname:"/";return t.endsWith("/")?t:t+"/"},qr=function(t,e,r){return new Promise((function(n,o){var i,a,u,s,c;(i=Zr()).endsWith("/")||(i+="/"),(a=new Headers).append("Content-Type","application/json"),u=new URL("access-api/testing/register",i);var l=function(t){try{return console.log("Could not POST new registration to the bank ("+u.href+")",t),r((function(t){return G(G({},t),{},{hasError:!0,error:"Registration failed, please report."})})),n()}catch(t){return o(t)}};try{return Promise.resolve(fetch(u.href,{method:"POST",body:JSON.stringify(t),headers:a})).then((function(a){try{return s=a,function(){try{return s.ok?(r((function(t){return G(G({},t),{},{isLoggedIn:!0,tryRegister:!1})})),e((function(e){return G(G({},e),{},{url:i,username:t.username,password:t.password})})),a.call(this)):Promise.resolve(s.text()).then(function(t){try{return c=t,console.log("New registration gave response error ("+s.status+")",c),r((function(t){return G(G({},t),{},{hasError:!0,error:c})})),a.call(this)}catch(t){return o(t)}}.bind(this),o);function a(){return n()}}catch(t){return o(t)}}()}catch(t){return l(t)}}),l)}catch(t){l(t)}}))},Kr=function(t){var e=t.pageState,r=e[0];if(!r.hasError)return null;var n=Object(gt.g)("p",{class:"informational informational-fail"},r.error);return delete r.error,r.hasError=!1,n},Xr=function(t){var e=t.pageState,r=e[0];if(!r.hasInfo)return null;var n=Object(gt.g)("p",{class:"informational"},r.error);return delete r.info_msg,r.hasInfo=!1,n},tn=function(t){var e=D(),r=f(Jr),n=r[0],o=r[1];console.log("BankFrame state",n);var i=Object(gt.g)("div",{class:"logout"},Object(gt.g)("a",{href:"#",class:"pure-button logout-button",onClick:function(){o((function(t){return G(G({},F(t,Fr)),{},{isLoggedIn:!1,withdrawalInProgress:!1,hasInfo:!1,hasError:!1,isRawPayto:!1})}))}},e(Yt||(Yt=Y(["Logout"]))))),a=[["Landing","__DEMO_SITE_LANDING_URL__"],["Bank","__DEMO_SITE_BANK_URL__"],["Essay Shop","__DEMO_SITE_BLOG_URL__"],["Donations","__DEMO_SITE_DONATIONS_URL__"],["Survey","__DEMO_SITE_SURVEY_URL__"]],u=[];for(var s in a)u.push(Object(gt.g)("a",{href:a[s][1]},a[s][0]));return Object(gt.g)(gt.b,null,Object(gt.g)("header",{class:"demobar",style:"display: flex; flex-direction: row; justify-content: space-between;"},Object(gt.g)("a",{href:"#main",class:"skip"},e(Ft||(Ft=Y(["Skip to main content"])))),Object(gt.g)("div",{style:"max-width: 50em; margin-left: 2em;"},Object(gt.g)("h1",null,Object(gt.g)("span",{class:"it"},Object(gt.g)("a",{href:"/"},$r))),V(Object(gt.g)("p",null,Object(gt.g)(P,null,"This part of the demo shows how a bank that supports Taler directly would work. In addition to using your own bank account, you can also see the transaction history of some ",Object(gt.g)("a",{href:"#",onClick:J(o)},"Public Accounts"),".")))),Object(gt.g)("a",{href:"https://taler.net/"},Object(gt.g)("img",{src:Br.a,alt:"{i18n`Taler logo`}",height:"100",width:"224",style:"margin: 2em 2em"}))),Object(gt.g)("div",{style:"display:flex; flex-direction: column;",class:"navcontainer"},Object(gt.g)("nav",{class:"demolist"},V(Object(gt.g)(gt.b,null,u)),Object(gt.g)("div",{class:"right"},Object(gt.g)(U,null)))),Object(gt.g)("section",{id:"main",class:"content"},Object(gt.g)(Kr,{pageState:[n,o]}),Object(gt.g)(Xr,{pageState:[n,o]}),n.isLoggedIn?i:null,t.children),Object(gt.g)("section",{id:"footer",class:"footer"},Object(gt.g)("div",{class:"footer"},Object(gt.g)("div",null,Object(gt.g)("p",null,"You can learn more about GNU Taler on our ",Object(gt.g)("a",{href:"https://taler.net"},"main website"),".")),Object(gt.g)("div",{style:"flex-grow:1"}),Object(gt.g)("p",null,"Copyright © 2014—2022 Taler Systems SA"))))},en=function(t){var e,r,n,o,i=f(Vr),u=f(Jr),c=u[0],l=u[1],h=(r=v("wire-transfer-request-state",JSON.stringify(e)),[n=r[0]?JSON.parse(r[0]):r[0],function(t){var e=t instanceof Function?JSON.stringify(t(n)):JSON.stringify(t);r[1](e)}]),g=h[0],d=h[1],p=function(t){var e=v("raw-payto-input-state",t),r=e[0];return[r,function(t){var n=t instanceof Function?t(r):t;e[1](n)}]}(),_=p[0],y=p[1],b=D(),w=t.focus,m=t.backendState,M=s(null);return a((function(){var t;w&&(null==(t=M.current)||t.focus())}),[w,c.isRawPayto]),c.isRawPayto?Object(gt.g)("div",null,Object(gt.g)("p",null,b(Vt||(Vt=Y(["Transfer money to account identified by payto:// URI:"])))),Object(gt.g)("div",{class:"pure-form",name:"payto-form"},Object(gt.g)("p",null,Object(gt.g)("label",{for:"address"},b(Jt||(Jt=Y(["payto URI:"]))))," ",Object(gt.g)("input",{name:"address",type:"text",size:90,ref:M,id:"address",value:_,required:!0,placeholder:b(Zt||(Zt=Y(["payto address"]))),pattern:"payto://iban/[A-Z][A-Z][0-9]+\\?message=[a-zA-Z0-9 ]+&amount="+i+":[0-9]+(\\.[0-9]+)?",onInput:function(t){y(t.currentTarget.value)}}),Object(gt.g)("br",null),Object(gt.g)("div",{class:"hint"},"Hint:",Object(gt.g)("code",null,"payto://iban/[receiver-iban]?message=[subject]&amount=[",i,":X.Y]"))),Object(gt.g)("p",null,Object(gt.g)("input",{class:"pure-button pure-button-primary",type:"submit",value:b(qt||(qt=Y(["Send"]))),onClick:function(){return new Promise((function(t,e){return _?void 0===(o={paytoUri:_}).paytoUri||0===o.paytoUri.length?t():Promise.resolve(tt(o,m,l,(function(){return y((function(){return""}))}))).then(t,e):(console.log("Didn't get any raw Payto string!"),t())}))}})),Object(gt.g)("p",null,Object(gt.g)("a",{href:"#",onClick:function(){console.log("switch to wire-transfer-form"),l((function(t){return G(G({},t),{},{isRawPayto:!1})}))}},b(Kt||(Kt=Y(["Use wire-transfer form?"]))))))):Object(gt.g)("div",null,Object(gt.g)("div",{class:"pure-form",name:"wire-transfer-form"},Object(gt.g)("p",null,Object(gt.g)("label",{for:"iban"},b(Qt||(Qt=Y(["Receiver IBAN:"]))))," ",Object(gt.g)("input",{ref:M,type:"text",id:"iban",name:"iban",value:null==g?void 0:g.iban,placeholder:"CC0123456789",required:!0,pattern:"^[A-Z][A-Z][0-9]+$",onInput:function(t){d((function(e){return G(G({},e),{},{iban:t.currentTarget.value})}))}}),Object(gt.g)("br",null),Object(gt.g)("br",null),Object(gt.g)("label",{for:"subject"},b(Wt||(Wt=Y(["Transfer subject:"]))))," ",Object(gt.g)("input",{type:"text",name:"subject",id:"subject",placeholder:"subject",value:null==g?void 0:g.subject,required:!0,onInput:function(t){d((function(e){return G(G({},e),{},{subject:t.currentTarget.value})}))}}),Object(gt.g)("br",null),Object(gt.g)("br",null),Object(gt.g)("label",{for:"amount"},b(Ht||(Ht=Y(["Amount:"]))))," ",Object(gt.g)("input",{type:"number",name:"amount",id:"amount",placeholder:"amount",required:!0,value:null==g?void 0:g.amount,pattern:"^[0-9]+(\\.[0-9]+)?$",onInput:function(t){d((function(e){return G(G({},e),{},{amount:t.currentTarget.value.replace(",",".")})}))}})," ",Object(gt.g)("input",{type:"text",readonly:!0,class:"currency-indicator",size:i.length,maxLength:i.length,tabIndex:-1,value:i})),Object(gt.g)("p",null,Object(gt.g)("input",{type:"submit",class:"pure-button pure-button-primary",value:"Send",onClick:function(){return new Promise((function(t,e){return void 0===g||void 0===g.iban||""===g.iban||void 0===g.subject||""===g.subject||void 0===g.amount||""===g.amount?(console.log("Not all the fields were given."),l((function(t){return G(G({},t),{},{hasError:!0,error:b(Gt||(Gt=Y(["Field(s) missing."])))})})),t()):(o={paytoUri:"payto://iban/"+g.iban+"?message="+encodeURIComponent(g.subject),amount:i+":"+g.amount},Promise.resolve(tt(o,m,l,(function(){return d((function(){return{amount:"",iban:"",subject:""}}))}))).then(t,e))}))}}))),Object(gt.g)("p",null,Object(gt.g)("a",{href:"#",onClick:function(){console.log("switch to raw payto form"),l((function(t){return G(G({},t),{},{isRawPayto:!0})}))}},b($t||($t=Y(["Want to try the raw payto://-format?"]))))))},rn=function(t){var e=f(Jr),r=e[0],n=e[1],o=t.backendState,i=D(),a={a:Math.floor(10*Math.random()),b:Math.floor(10*Math.random())},u="";return Object(gt.g)(gt.b,null,Object(gt.g)("h1",{class:"nav"},i(Xt||(Xt=Y(["Confirm Withdrawal"])))),Object(gt.g)("article",null,Object(gt.g)("div",{class:"challenge-div"},Object(gt.g)("form",{action:"javascript:void(0);",class:"challenge-form"},Object(gt.g)("div",{class:"pure-form",id:"captcha",name:"capcha-form"},Object(gt.g)("h2",null,i(te||(te=Y(["Authorize withdrawal by solving challenge"])))),Object(gt.g)("p",null,Object(gt.g)("label",{for:"answer"},i(ee||(ee=Y(["What is"])))," ",Object(gt.g)("em",null,a.a," + ",a.b),"? ")," ",Object(gt.g)("input",{name:"answer",id:"answer",type:"text",required:!0,onInput:function(t){u=t.currentTarget.value}})),Object(gt.g)("p",null,Object(gt.g)("button",{class:"pure-button pure-button-primary btn-confirm",onClick:function(){u!=(a.a+a.b).toString()?n((function(t){return G(G({},t),{},{hasError:!0,error:i(re||(re=Y(["Answer is wrong."])))})})):X(o,r.withdrawalId,n)}},i(ne||(ne=Y(["Confirm"]))))," ",Object(gt.g)("button",{class:"pure-button pure-button-secondary btn-cancel",onClick:function(){return K(o,r.withdrawalId,n)}},i(oe||(oe=Y(["Cancel"]))))))),Object(gt.g)("div",{class:"hint"},Object(gt.g)("p",null,Object(gt.g)(P,null,"A this point, a ",Object(gt.g)("b",null,"real")," bank would ask for an additional authentication proof (PIN/TAN, one time password, ..), instead of a simple calculation."))))))},nn=function(t){var e=t.talerWithdrawUri,r=t.abortButton,n=D();return a((function(){window.location.href=window.location.href.split("#")[0]+"#"}),[]),Object(gt.g)("section",{id:"main",class:"content"},Object(gt.g)("h1",{class:"nav"},n(ie||(ie=Y(["Charge Taler Wallet"])))),Object(gt.g)("p",null,n(ae||(ae=Y(["You can use this QR code to withdraw to your mobile wallet:"])))),function(t){var e=t.text,r=s(null);return a((function(){var t=zr()(0,"L");t.addData(e),t.make(),r.current&&(r.current.innerHTML=t.createSvgTag({scalable:!0}))})),Object(gt.g)("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"left"}},Object(gt.g)("div",{style:{width:"50%",minWidth:200,maxWidth:300},ref:r}))}({text:e}),Object(gt.g)("p",null,"Click ",Object(gt.g)("a",{id:"linkqr",href:e},n(ue||(ue=Y(["this link"]))))," to open your Taler wallet!"),Object(gt.g)("br",null),r)},on=function(t){var e=t.backendState,r=t.pageStateSetter,n=t.focus,o=f(Vr),i=D(),u="5.00",c=s(null);return a((function(){var t;n&&(null==(t=c.current)||t.focus())}),[n]),Object(gt.g)("div",{id:"reserve-form",class:"pure-form",name:"tform"},Object(gt.g)("p",null,Object(gt.g)("label",{for:"withdraw-amount"},i(he||(he=Y(["Amount to withdraw:"]))))," ",Object(gt.g)("input",{type:"number",ref:c,id:"withdraw-amount",name:"withdraw-amount",value:u,pattern:"^[0-9]+(\\.[0-9]+)?$",class:"amount",onChange:function(t){u=t.currentTarget.value}})," ",Object(gt.g)("input",{type:"text",readonly:!0,class:"currency-indicator",size:o.length,maxLength:o.length,tabIndex:-1,value:o})),Object(gt.g)("p",null,Object(gt.g)("div",null,Object(gt.g)("input",{id:"select-exchange",class:"pure-button pure-button-primary",type:"submit",value:i(ge||(ge=Y(["Withdraw"]))),onClick:function(){(u=function(t){if(t){if(void 0!==t||""!==t)if(console.log("Maybe valid amount: "+t),!RegExp("^[0-9]+(\\.[0-9]+)?$").test(t))return console.log("Not using invalid amount '"+t+"'."),!1;return t}console.log("Entered amount ("+t+") mismatched <input> pattern.")}(u))&&et(o+":"+u,e,r)}}))))},an=function(t){var e=t.backendState,r=t.pageStateSetter,n=(f(Vr),D()),i=o("charge-wallet"),a=i[0],u=i[1];return Object(gt.g)("article",null,Object(gt.g)("div",{class:"payments"},Object(gt.g)("div",{class:"tab"},Object(gt.g)("button",{class:"charge-wallet"===a?"tablinks active":"tablinks",onClick:function(){u("charge-wallet")}},n(de||(de=Y(["Charge Taler wallet"])))),Object(gt.g)("button",{class:"wire-transfer"===a?"tablinks active":"tablinks",onClick:function(){u("wire-transfer")}},n(pe||(pe=Y(["Wire to bank account"]))))),"charge-wallet"===a&&Object(gt.g)("div",{id:"charge-wallet",class:"tabcontent active"},Object(gt.g)("h3",null,n(_e||(_e=Y(["Charge Taler wallet"])))),Object(gt.g)(on,{backendState:e,focus:!0,pageStateSetter:r})),"wire-transfer"===a&&Object(gt.g)("div",{id:"wire-transfer",class:"tabcontent active"},Object(gt.g)("h3",null,n(ye||(ye=Y(["Wire to bank account"])))),Object(gt.g)(en,{backendState:e,focus:!0,pageStateSetter:r}))))},un=function(t){var e=t.backendStateSetter,r=t.pageStateSetter,n=q(),o=n[0],i=n[1],u=D(),c=s(null);return a((function(){var t;null==(t=c.current)||t.focus()}),[]),Object(gt.g)("div",{class:"login-div"},Object(gt.g)("form",{action:"javascript:void(0);",class:"login-form"},Object(gt.g)("div",{class:"pure-form"},Object(gt.g)("h2",null,u(ve||(ve=Y(["Please login!"])))),Object(gt.g)("p",{class:"unameFieldLabel loginFieldLabel formFieldLabel"},Object(gt.g)("label",{for:"username"},u(we||(we=Y(["Username:"]))))),Object(gt.g)("input",{ref:c,autoFocus:!0,type:"text",name:"username",id:"username",value:o&&o.username,placeholder:"Username",required:!0,onInput:function(t){i((function(e){return G(G({},e),{},{username:t.currentTarget.value})}))}}),Object(gt.g)("p",{class:"passFieldLabel loginFieldLabel formFieldLabel"},Object(gt.g)("label",{for:"password"},u(me||(me=Y(["Password:"]))))),Object(gt.g)("input",{type:"password",name:"password",id:"password",value:o&&o.password,placeholder:"Password",required:!0,onInput:function(t){i((function(e){return G(G({},e),{},{password:t.currentTarget.value})}))}}),Object(gt.g)("br",null),Object(gt.g)("button",{type:"submit",class:"pure-button pure-button-primary",onClick:function(){void 0!==o?0!=o.password.length&&0!=o.username.length?(document.body.classList.add("transition-login"),setTimeout((function(){(function(t,e,r){return new Promise((function(n){r((function(t){return G(G({},t),{},{isLoggedIn:!0})}));var o=Zr();return o.endsWith("/")||(o+="/"),e((function(e){return G(G({},e),{},{url:o,username:t.username,password:t.password})})),n()}))})(G({},o),e,r).then((function(){return document.body.classList.remove("transition-login")})),i({username:"",password:""}),setTimeout((function(){return document.body.classList.remove("transition-login")}),500)}),500)):console.log("username or password is the empty string",o):console.log("login data is undefined",o)}},u(Me||(Me=Y(["Login"])))),function(t){var e=t.pageStateSetter,r=D();return Hr?Object(gt.g)("button",{class:"pure-button pure-button-secondary btn-cancel",onClick:function(){e((function(t){return G(G({},t),{},{tryRegister:!0})}))}},r(be||(be=Y(["Register"])))):Object(gt.g)("span",null)}(t))))},sn=function(t){var e=f(Jr),r=e[1],n=q(),o=n[0],i=n[1],a=D();return Object(gt.g)(gt.b,null,Object(gt.g)("h1",{class:"nav"},a(je||(je=Y(["Welcome to ","!"])),$r)),Object(gt.g)("article",null,Object(gt.g)("div",{class:"register-div"},Object(gt.g)("form",{action:"javascript:void(0);",class:"register-form"},Object(gt.g)("div",{class:"pure-form"},Object(gt.g)("h2",null,a(Oe||(Oe=Y(["Please register!"])))),Object(gt.g)("p",{class:"unameFieldLabel registerFieldLabel formFieldLabel"},Object(gt.g)("label",{for:"register-un"},a(Ie||(Ie=Y(["Username:"]))))),Object(gt.g)("input",{id:"register-un",name:"register-un",type:"text",placeholder:"Username",value:o&&o.username,required:!0,onInput:function(t){i((function(e){return G(G({},e),{},{username:t.currentTarget.value})}))}}),Object(gt.g)("br",null),Object(gt.g)("p",{class:"unameFieldLabel registerFieldLabel formFieldLabel"},Object(gt.g)("label",{for:"register-pw"},a(Ae||(Ae=Y(["Password:"]))))),Object(gt.g)("input",{type:"password",name:"register-pw",id:"register-pw",placeholder:"Password",value:o&&o.password,required:!0,onInput:function(t){i((function(e){return G(G({},e),{},{password:t.currentTarget.value})}))}}),Object(gt.g)("p",{class:"unameFieldLabel registerFieldLabel formFieldLabel"},Object(gt.g)("label",{for:"register-pw"},a(Te||(Te=Y(["Repeat Password:"]))))),Object(gt.g)("input",{type:"password",name:"register-pw-check",id:"register-pw-check",placeholder:"Password",value:o&&o.passwordrepeat,required:!0,onInput:function(t){i((function(e){return G(G({},e),{},{passwordrepeat:t.currentTarget.value})}))}}),Object(gt.g)("br",null),Object(gt.g)("button",{class:"pure-button pure-button-primary btn-register",onClick:function(){var e;if(console.log("maybe submitting the registration.."),console.log(o),void 0!==o)if(void 0!==o.password&&void 0!==o.username)if(0!==o.password.length&&0!==o.username.length)if(0!==(null==(e=o.passwordrepeat)?void 0:e.length)){if(o.passwordrepeat!==o.password)return r((function(t){return G(G({},t),{},{hasError:!0,error:"Passwords did not match!"})})),void console.log("password does not match repeat");console.log("submitting the registration.."),document.body.classList.add("transition-login"),delete o.passwordrepeat,qr(G({},o),t.backendStateSetter,r).then((function(){return document.body.classList.remove("transition-login")})),setTimeout((function(){return document.body.classList.remove("transition-login")}),1500),console.log("Clearing the input data"),i({username:"",password:"",passwordrepeat:""})}else console.log("passrepeat empty");else console.log("username or password are the empty string");else console.log("username or password is undefined");else console.log("submit data "+o+" is undefined")}},a(Ne||(Ne=Y(["Register"])))),Object(gt.g)("button",{class:"pure-button pure-button-secondary btn-cancel",onClick:function(){r((function(t){return G(G({},t),{},{tryRegister:!1})}))}},a(Ce||(Ce=Y(["Cancel"])))))))))};e.default=function(){return Object(gt.g)(At,null,Object(gt.g)("div",{class:"transitionContainer"}),Object(gt.g)(st,null))}},"1sbO":function(t,e){var r,n,o=function(){function t(e,r){if(void 0===e.length)throw e.length+"/"+r;var n=function(){for(var t=0;t<e.length&&0==e[t];)t+=1;for(var n=new Array(e.length-t+r),o=0;o<e.length-t;o+=1)n[o]=e[o+t];return n}(),o={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(e){for(var r=new Array(o.getLength()+e.getLength()-1),n=0;n<o.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)r[n+i]^=v.gexp(v.glog(o.getAt(n))+v.glog(e.getAt(i)));return t(r,0)},mod:function(e){if(o.getLength()-e.getLength()<0)return o;for(var r=v.glog(o.getAt(0))-v.glog(e.getAt(0)),n=new Array(o.getLength()),i=0;i<o.getLength();i+=1)n[i]=o.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=v.gexp(v.glog(e.getAt(i))+r);return t(n,0).mod(e)}};return o}var e=function(e,r){var n=e,o=c[r],i=null,a=0,u=null,s=[],l={},f=function(t,e){i=function(t){for(var e=new Array(t),r=0;r<t;r+=1){e[r]=new Array(t);for(var n=0;n<t;n+=1)e[r][n]=null}return e}(a=4*n+17),h(0,0),h(a-7,0),h(0,a-7),d(),g(),_(t,e),n>=7&&p(t),null==u&&(u=v(n,o,s)),y(u,e)},h=function(t,e){for(var r=-1;r<=7;r+=1)if(!(t+r<=-1||a<=t+r))for(var n=-1;n<=7;n+=1)e+n<=-1||a<=e+n||(i[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},g=function(){for(var t=8;t<a-8;t+=1)null==i[t][6]&&(i[t][6]=t%2==0);for(var e=8;e<a-8;e+=1)null==i[6][e]&&(i[6][e]=e%2==0)},d=function(){for(var t=b.getPatternPosition(n),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var o=t[e],a=t[r];if(null==i[o][a])for(var u=-2;u<=2;u+=1)for(var s=-2;s<=2;s+=1)i[o+u][a+s]=-2==u||2==u||-2==s||2==s||0==u&&0==s}},p=function(t){for(var e=b.getBCHTypeNumber(n),r=0;r<18;r+=1){var o=!t&&1==(e>>r&1);i[Math.floor(r/3)][r%3+a-8-3]=o}for(r=0;r<18;r+=1){o=!t&&1==(e>>r&1);i[r%3+a-8-3][Math.floor(r/3)]=o}},_=function(t,e){for(var r=b.getBCHTypeInfo(o<<3|e),n=0;n<15;n+=1){var u=!t&&1==(r>>n&1);n<6?i[n][8]=u:n<8?i[n+1][8]=u:i[a-15+n][8]=u}for(n=0;n<15;n+=1){u=!t&&1==(r>>n&1);n<8?i[8][a-n-1]=u:n<9?i[8][15-n-1+1]=u:i[8][15-n-1]=u}i[a-8][8]=!t},y=function(t,e){for(var r=-1,n=a-1,o=7,u=0,s=b.getMaskFunction(e),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var l=0;l<2;l+=1)if(null==i[n][c-l]){var f=!1;u<t.length&&(f=1==(t[u]>>>o&1)),s(n,c-l)&&(f=!f),i[n][c-l]=f,-1==(o-=1)&&(u+=1,o=7)}if((n+=r)<0||a<=n){n-=r,r=-r;break}}},v=function(e,r,n){for(var o=w.getRSBlocks(e,r),i=m(),a=0;a<n.length;a+=1){var u=n[a];i.put(u.getMode(),4),i.put(u.getLength(),b.getLengthInBits(u.getMode(),e)),u.write(i)}var s=0;for(a=0;a<o.length;a+=1)s+=o[a].dataCount;if(i.getLengthInBits()>8*s)throw"code length overflow. ("+i.getLengthInBits()+">"+8*s+")";for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s||(i.put(236,8),i.getLengthInBits()>=8*s));)i.put(17,8);return function(e,r){for(var n=0,o=0,i=0,a=new Array(r.length),u=new Array(r.length),s=0;s<r.length;s+=1){var c=r[s].dataCount,l=r[s].totalCount-c;o=Math.max(o,c),i=Math.max(i,l),a[s]=new Array(c);for(var f=0;f<a[s].length;f+=1)a[s][f]=255&e.getBuffer()[f+n];n+=c;var h=b.getErrorCorrectPolynomial(l),g=t(a[s],h.getLength()-1).mod(h);u[s]=new Array(h.getLength()-1);for(f=0;f<u[s].length;f+=1){var d=f+g.getLength()-u[s].length;u[s][f]=d>=0?g.getAt(d):0}}var p=0;for(f=0;f<r.length;f+=1)p+=r[f].totalCount;var _=new Array(p),y=0;for(f=0;f<o;f+=1)for(s=0;s<r.length;s+=1)f<a[s].length&&(_[y]=a[s][f],y+=1);for(f=0;f<i;f+=1)for(s=0;s<r.length;s+=1)f<u[s].length&&(_[y]=u[s][f],y+=1);return _}(i,o)};l.addData=function(t,e){var r=null;switch(e=e||"Byte"){case"Numeric":r=M(t);break;case"Alphanumeric":r=j(t);break;case"Byte":r=O(t);break;case"Kanji":r=I(t);break;default:throw"mode:"+e}s.push(r),u=null},l.isDark=function(t,e){if(t<0||a<=t||e<0||a<=e)throw t+","+e;return i[t][e]},l.getModuleCount=function(){return a},l.make=function(){if(n<1){for(var t=1;t<40;t++){for(var e=w.getRSBlocks(t,o),r=m(),i=0;i<s.length;i++){var a=s[i];r.put(a.getMode(),4),r.put(a.getLength(),b.getLengthInBits(a.getMode(),t)),a.write(r)}var u=0;for(i=0;i<e.length;i++)u+=e[i].dataCount;if(r.getLengthInBits()<=8*u)break}n=t}f(!1,function(){for(var t=0,e=0,r=0;r<8;r+=1){f(!0,r);var n=b.getLostPoint(l);(0==r||t>n)&&(t=n,e=r)}return e}())},l.createTableTag=function(t,e){t=t||2;var r="";r+='<table style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",r+='">',r+="<tbody>";for(var n=0;n<l.getModuleCount();n+=1){r+="<tr>";for(var o=0;o<l.getModuleCount();o+=1)r+='<td style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: 0px;",r+=" width: "+t+"px;",r+=" height: "+t+"px;",r+=" background-color: ",r+=l.isDark(n,o)?"#000000":"#ffffff",r+=";",r+='"/>';r+="</tr>"}return r+="</tbody>",r+="</table>"},l.createSvgTag=function(t,e,r,n){var o={};"object"==typeof arguments[0]&&(t=(o=arguments[0]).cellSize,e=o.margin,r=o.alt,n=o.title),t=t||2,e=void 0===e?4*t:e,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var i,a,u,s,c=l.getModuleCount()*t+2*e,f="";for(s="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",f+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',f+=o.scalable?"":' width="'+c+'px" height="'+c+'px"',f+=' viewBox="0 0 '+c+" "+c+'" ',f+=' preserveAspectRatio="xMinYMin meet"',f+=n.text||r.text?' role="img" aria-labelledby="'+A([n.id,r.id].join(" ").trim())+'"':"",f+=">",f+=n.text?'<title id="'+A(n.id)+'">'+A(n.text)+"</title>":"",f+=r.text?'<description id="'+A(r.id)+'">'+A(r.text)+"</description>":"",f+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',f+='<path d="',a=0;a<l.getModuleCount();a+=1)for(u=a*t+e,i=0;i<l.getModuleCount();i+=1)l.isDark(a,i)&&(f+="M"+(i*t+e)+","+u+s);return f+='" stroke="transparent" fill="black"/>',f+="</svg>"},l.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var r=l.getModuleCount()*t+2*e,n=e,o=r-e;return N(r,r,(function(e,r){if(n<=e&&e<o&&n<=r&&r<o){var i=Math.floor((e-n)/t),a=Math.floor((r-n)/t);return l.isDark(a,i)?0:1}return 1}))},l.createImgTag=function(t,e,r){t=t||2,e=void 0===e?4*t:e;var n=l.getModuleCount()*t+2*e,o="";return o+="<img",o+=' src="',o+=l.createDataURL(t,e),o+='"',o+=' width="',o+=n,o+='"',o+=' height="',o+=n,o+='"',r&&(o+=' alt="',o+=A(r),o+='"'),o+="/>"};var A=function(t){for(var e="",r=0;r<t.length;r+=1){var n=t.charAt(r);switch(n){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=n}}return e};return l.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,r,n,o,i,a=1*l.getModuleCount()+2*t,u=t,s=a-t,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},f={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(e=0;e<a;e+=2){for(n=Math.floor((e-u)/1),o=Math.floor((e+1-u)/1),r=0;r<a;r+=1)i="█",u<=r&&r<s&&u<=e&&e<s&&l.isDark(n,Math.floor((r-u)/1))&&(i=" "),u<=r&&r<s&&u<=e+1&&e+1<s&&l.isDark(o,Math.floor((r-u)/1))?i+=" ":i+="█",h+=t<1&&e+1>=s?f[i]:c[i];h+="\n"}return a%2&&t>0?h.substring(0,h.length-a-1)+Array(a+1).join("▀"):h.substring(0,h.length-1)}(e);t-=1,e=void 0===e?2*t:e;var r,n,o,i,a=l.getModuleCount()*t+2*e,u=e,s=a-e,c=Array(t+1).join("██"),f=Array(t+1).join(" "),h="",g="";for(r=0;r<a;r+=1){for(o=Math.floor((r-u)/t),g="",n=0;n<a;n+=1)i=1,u<=n&&n<s&&u<=r&&r<s&&l.isDark(o,Math.floor((n-u)/t))&&(i=0),g+=i?c:f;for(o=0;o<t;o+=1)h+=g+"\n"}return h.substring(0,h.length-1)},l.renderTo2dContext=function(t,e){e=e||2;for(var r=l.getModuleCount(),n=0;n<r;n++)for(var o=0;o<r;o++)t.fillStyle=l.isDark(n,o)?"black":"white",t.fillRect(n*e,o*e,e,e)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(t){for(var e=[],r=0;r<t.length;r+=1){var n=t.charCodeAt(r);e.push(255&n)}return e}}).default,e.createStringToBytes=function(t,e){var r=function(){for(var r=T(t),n=function(){var t=r.read();if(-1==t)throw"eof";return t},o=0,i={};;){var a=r.read();if(-1==a)break;var u=n(),s=n(),c=n();i[String.fromCharCode(a<<8|u)]=s<<8|c,o+=1}if(o!=e)throw o+" != "+e;return i}(),n="?".charCodeAt(0);return function(t){for(var e=[],o=0;o<t.length;o+=1){var i=t.charCodeAt(o);if(i<128)e.push(i);else{var a=r[t.charAt(o)];"number"==typeof a?(255&a)==a?e.push(a):(e.push(a>>>8),e.push(255&a)):e.push(n)}}return e}};var r,n,o,i=1,a=2,u=4,s=8,c={L:1,M:0,Q:3,H:2},l=0,f=1,h=2,g=3,d=4,p=5,_=6,y=7,b=(r=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(1335)>=0;)e^=1335<<o(e)-o(1335);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(7973)>=0;)e^=7973<<o(e)-o(7973);return t<<12|e},n.getPatternPosition=function(t){return r[t-1]},n.getMaskFunction=function(t){switch(t){case l:return function(t,e){return(t+e)%2==0};case f:return function(t){return t%2==0};case h:return function(t,e){return e%3==0};case g:return function(t,e){return(t+e)%3==0};case d:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case p:return function(t,e){return t*e%2+t*e%3==0};case _:return function(t,e){return(t*e%2+t*e%3)%2==0};case y:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(e){for(var r=t([1],0),n=0;n<e;n+=1)r=r.multiply(t([1,v.gexp(n)],0));return r},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case i:return 10;case a:return 9;case u:case s:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case i:return 12;case a:return 11;case u:return 16;case s:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case i:return 14;case a:return 13;case u:return 16;case s:return 12;default:throw"mode:"+t}}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n+=1)for(var o=0;o<e;o+=1){for(var i=0,a=t.isDark(n,o),u=-1;u<=1;u+=1)if(!(n+u<0||e<=n+u))for(var s=-1;s<=1;s+=1)o+s<0||e<=o+s||0==u&&0==s||a==t.isDark(n+u,o+s)&&(i+=1);i>5&&(r+=3+i-5)}for(n=0;n<e-1;n+=1)for(o=0;o<e-1;o+=1){var c=0;t.isDark(n,o)&&(c+=1),t.isDark(n+1,o)&&(c+=1),t.isDark(n,o+1)&&(c+=1),t.isDark(n+1,o+1)&&(c+=1),0!=c&&4!=c||(r+=3)}for(n=0;n<e;n+=1)for(o=0;o<e-6;o+=1)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(o=0;o<e;o+=1)for(n=0;n<e-6;n+=1)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);var l=0;for(o=0;o<e;o+=1)for(n=0;n<e;n+=1)t.isDark(n,o)&&(l+=1);return r+=Math.abs(100*l/e/e-50)/5*10},n),v=function(){for(var t=new Array(256),e=new Array(256),r=0;r<8;r+=1)t[r]=1<<r;for(r=8;r<256;r+=1)t[r]=t[r-4]^t[r-5]^t[r-6]^t[r-8];for(r=0;r<255;r+=1)e[t[r]]=r;var n={glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}};return n}(),w=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var r={};return r.totalCount=t,r.dataCount=e,r},r={};return r.getRSBlocks=function(r,n){var o=function(e,r){switch(r){case c.L:return t[4*(e-1)+0];case c.M:return t[4*(e-1)+1];case c.Q:return t[4*(e-1)+2];case c.H:return t[4*(e-1)+3];default:return}}(r,n);if(void 0===o)throw"bad rs block @ typeNumber:"+r+"/errorCorrectionLevel:"+n;for(var i=o.length/3,a=[],u=0;u<i;u+=1)for(var s=o[3*u+0],l=o[3*u+1],f=o[3*u+2],h=0;h<s;h+=1)a.push(e(l,f));return a},r}(),m=function(){var t=[],e=0,r={getBuffer:function(){return t},getAt:function(e){var r=Math.floor(e/8);return 1==(t[r]>>>7-e%8&1)},put:function(t,e){for(var n=0;n<e;n+=1)r.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(r){var n=Math.floor(e/8);t.length<=n&&t.push(0),r&&(t[n]|=128>>>e%8),e+=1}};return r},M=function(t){var e=i,r=t,n={getMode:function(){return e},getLength:function(){return r.length},write:function(t){for(var e=r,n=0;n+2<e.length;)t.put(o(e.substring(n,n+3)),10),n+=3;n<e.length&&(e.length-n==1?t.put(o(e.substring(n,n+1)),4):e.length-n==2&&t.put(o(e.substring(n,n+2)),7))}},o=function(t){for(var e=0,r=0;r<t.length;r+=1)e=10*e+a(t.charAt(r));return e},a=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},j=function(t){var e=a,r=t,n={getMode:function(){return e},getLength:function(){return r.length},write:function(t){for(var e=r,n=0;n+1<e.length;)t.put(45*o(e.charAt(n))+o(e.charAt(n+1)),11),n+=2;n<e.length&&t.put(o(e.charAt(n)),6)}},o=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return n},O=function(t){var r=u,n=e.stringToBytes(t),o={getMode:function(){return r},getLength:function(){return n.length},write:function(t){for(var e=0;e<n.length;e+=1)t.put(n[e],8)}};return o},I=function(t){var r=s,n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var t=n("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var o=n(t),i={getMode:function(){return r},getLength:function(){return~~(o.length/2)},write:function(t){for(var e=o,r=0;r+1<e.length;){var n=(255&e[r])<<8|255&e[r+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(r+1)+"/"+n;n-=49472}t.put(n=192*(n>>>8&255)+(255&n),13),r+=2}if(r<e.length)throw"illegal char at "+(r+1)}};return i},A=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,r,n){r=r||0,n=n||t.length;for(var o=0;o<n;o+=1)e.writeByte(t[o+r])},writeString:function(t){for(var r=0;r<t.length;r+=1)e.writeByte(t.charCodeAt(r))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var r=0;r<t.length;r+=1)r>0&&(e+=","),e+=t[r];return e+="]"}};return e},T=function(t){var e=t,r=0,n=0,o=0,i={read:function(){for(;o<8;){if(r>=e.length){if(0==o)return-1;throw"unexpected end of file./"+o}var t=e.charAt(r);if(r+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(n=n<<6|a(t.charCodeAt(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},N=function(t,e,r){for(var n=function(t,e){var r=t,n=e,o=new Array(t*e),i={setPixel:function(t,e,n){o[e*r+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(r),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(r),t.writeShort(n),t.writeByte(0);var e=a(2);t.writeByte(2);for(var o=0;e.length-o>255;)t.writeByte(255),t.writeBytes(e,o,255),o+=255;t.writeByte(e.length-o),t.writeBytes(e,o,e.length-o),t.writeByte(0),t.writeString(";")}},a=function(t){for(var e=1<<t,r=1+(1<<t),n=t+1,i=u(),a=0;a<e;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(e)),i.add(String.fromCharCode(r));var s=A(),c=function(t){var e=t,r=0,n=0,o={write:function(t,o){if(t>>>o!=0)throw"length over";for(;r+o>=8;)e.writeByte(255&(t<<r|n)),o-=8-r,t>>>=8-r,n=0,r=0;n|=t<<r,r+=o},flush:function(){r>0&&e.writeByte(n)}};return o}(s);c.write(e,n);var l=0,f=String.fromCharCode(o[l]);for(l+=1;l<o.length;){var h=String.fromCharCode(o[l]);l+=1,i.contains(f+h)?f+=h:(c.write(i.indexOf(f),n),i.size()<4095&&(i.size()==1<<n&&(n+=1),i.add(f+h)),f=h)}return c.write(i.indexOf(f),n),c.write(r,n),c.flush(),s.toByteArray()},u=function(){var t={},e=0,r={add:function(n){if(r.contains(n))throw"dup key:"+n;t[n]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return r};return i}(t,e),o=0;o<e;o+=1)for(var i=0;i<t;i+=1)n.setPixel(i,o,r(i,o));var a=A();n.write(a);for(var u=function(){var t=0,e=0,r=0,n="",o={},i=function(t){n+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return o.writeByte=function(n){for(t=t<<8|255&n,e+=8,r+=1;e>=6;)i(t>>>e-6),e-=6},o.flush=function(){if(e>0&&(i(t<<6-e),t=0,e=0),r%3!=0)for(var o=3-r%3,a=0;a<o;a+=1)n+="="},o.toString=function(){return n},o}(),s=a.toByteArray(),c=0;c<s.length;c+=1)u.writeByte(s[c]);return u.flush(),"data:image/gif;base64,"+u};return e}();o.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}(t)},void 0===(n="function"==typeof(r=function(){return o})?r.apply(e,[]):r)||(t.exports=n)},AxmY:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iNjcwIgogICBoZWlnaHQ9IjMwMCIKICAgdmlld0JveD0iMCAwIDIwMSA5MCIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnOCI+CiAgPGcKICAgICBpZD0ibG9nbyI+CiAgICA8ZwogICAgICAgaWQ9ImNpcmNsZXMiCiAgICAgICBzdHlsZT0iZmlsbDojRkZGO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowLjMyNzk0MyI+CiAgICAgIDxwYXRoCiAgICAgICAgIGQ9Im0gODYuNjYyMTUzLDEuMTIxMTkzNiBjIDE1LjU4OTY5NywwIDI5LjEyOTIyNyw5LjQwMTE2NjQgMzUuOTYxMDI3LDIzLjIwMTgwNTQgaCAtNS44MTczNiBDIDExMC40ODY2LDEzLjYyMzMwNCA5OS4zNDkwMDIsNi41MTgwODUyIDg2LjY2MjE1Myw2LjUxODA4NTIgYyAtMTkuNjkwNTcxLDAgLTM1LjY1Mjg3NiwxNy4xMTIwMDA4IC0zNS42NTI4NzYsMzguMjIwNTY4OCAwLDEwLjMzMTc5NyAzLjgyNTU5NywxOS43MDQ2NzggMTAuMDM5NTcsMjYuNTgyOTQ1IC0xLjM0MjM1NywxLjEyMDkxMiAtMi43NzE1MzIsMi4xMjc5MDUgLTQuMjc1NDg4LDMuMDA2NzU0IEMgNTAuMDcxNDg1LDY2LjU1MzQxMiA0NS45NzQ4NTcsNTYuMTU5OTIgNDUuOTc0ODU3LDQ0LjczODY1NCBjIDAsLTI0LjA4OTIxMSAxOC4yMTYzMjUsLTQzLjYxNzQ2MDQgNDAuNjg3Mjk2LC00My42MTc0NjA0IHogTSAxMjIuNTE0MTYsNjUuMzc1ODk4IGMgLTYuODY2NDUsMTMuNjgwMTM0IC0yMC4zNDU2MSwyMi45ODAyMTggLTM1Ljg1MjAwNywyMi45ODAyMTggLTEuMDUyNzAyLDAgLTIuMDk2MDkzLC0wLjA0MjkxIC0zLjEyODY4MywtMC4xMjcwMjYgMy4wNTIxOTIsLTEuNTYxMTY3IDUuOTEzNTgyLC0zLjQ4MDM4NyA4LjUzODMwNywtNS43MDczMDUgMTAuMzIwOTYzLC0xLjY4NDM4OSAxOS4xODU5ODMsLTguMTEzNjM4IDI0LjYwMTgxMywtMTcuMTQ1ODg3IHoiCiAgICAgICAgIGlkPSJwYXRoMjM1MCIgLz4KICAgICAgPHBhdGgKICAgICAgICAgZD0ibSA2NC4yMTIzNzIsMS4xMjExOTM2IGMgMS4wNTI2MDcsMCAyLjA5NTk5OCwwLjA0MjkxOSAzLjEyODY4NCwwLjEyNzA1ODMgQyA2NC4yODg4NjQsMi44MDk0MTk5IDYxLjQyNzM3OCw0LjcyODYwNiA1OC44MDI2NTMsNi45NTU1NTcyIDQxLjY3OTU0Miw5Ljc0OTg1NzEgMjguNTU5NDk0LDI1LjYwMTU2MyAyOC41NTk0OTQsNDQuNzM4NjU0IGMgMCwxNC4yNjQ1NjMgNy4yOTA1OSwyNi43MDIwMjMgMTguMDkzODQzLDMzLjI2ODkyNSAtMS41OTM2NTYsMC4yNjcxOSAtMy4yMjY5NjYsMC40MDY5NDggLTQuODkwNzQ4LDAuNDA2OTQ4IC0xLjIzOTU0NSwwIC0yLjQ2MTUxLC0wLjA3OTUyIC0zLjY2MzUyMiwtMC4yMjkzNjQgQyAyOS4xOTExMjksNzAuMTg0MDE1IDIzLjUyNTA3Niw1OC4xNzE2MzMgMjMuNTI1MDc2LDQ0LjczODY1NCAyMy41MjUwNzYsMjAuNjQ5NDQzIDQxLjc0MTQsMS4xMjExOTM2IDY0LjIxMjM3MiwxLjEyMTE5MzYgWiBNIDY5LjYyMjA5LDgyLjUyMTc4NSBDIDc5Ljk0MzIwNyw4MC44MzczOTYgODguODA4MTY0LDc0LjQwNzg0MSA5NC4yMjQwNTksNjUuMzc1NDIyIGggNS44NDA1MTEgYyAtNi44NjYzNTQsMTMuNjgwMzA1IC0yMC4zNDU1NDgsMjIuOTgwNjk0IC0zNS44NTIxOTgsMjIuOTgwNjk0IC0xLjA1MjcwMywwIC0yLjA5NTk5OSwtMC4wNDI5MSAtMy4xMjg2ODQsLTAuMTI3MDI2IDMuMDUyMDAyLC0xLjU2MTM3MSA1LjkxMzgzNiwtMy40ODAyMTggOC41Mzg0MDIsLTUuNzA3MzA1IHogTSA5NC4zNTU4ODUsMjQuMzIyOTk5IGMgLTMuMTM5MzksLTUuMzE0NzIxIC03LjQ2NzU1MSwtOS43NDI3NSAtMTIuNTg0NTExLC0xMi44NTMyNjkgMS41OTM2NTYsLTAuMjY3MTkgMy4yMjY5MDQsLTAuNDA2OTQ4IDQuODkwNzc5LC0wLjQwNjk0OCAxLjIzOTQ1MSwwIDIuNDYxNTEyLDAuMDc5NTIgMy42NjM1MjQsMC4yMjkzNjQgNC4wMTYwMTgsMy42MDcyNDIgNy4zNzMxOTUsOC4wMzAxMTEgOS44NDkwNTMsMTMuMDMwODUzIHoiCiAgICAgICAgIGlkPSJwYXRoMjM1MiIgLz4KICAgICAgPHBhdGgKICAgICAgICAgZD0ibSA0MS43NjI1ODksMS4xMjExOTM2IGMgMS4wNjQyOTYsMCAyLjExODgwNCwwLjA0NDM3OSAzLjE2MjYwNywwLjEzMDIxNjEgLTMuMDQ2NTIzLDEuNTU4OTYxIC01LjkwMzE2MiwzLjQ3NDUxMzkgLTguNTIzNTgsNS42OTY4MTMzIEMgMTkuMjU0NjI0LDkuNzIwNTg4MiA2LjEwOTcxMjgsMjUuNTgzNDY1IDYuMTA5NzEyOCw0NC43Mzg2NTQgYyAwLDIxLjEwODU2OCAxNS45NjI0MDEyLDM4LjIyMDU3IDM1LjY1Mjg3NjIsMzguMjIwNTcgMTIuNTk5NzQ2LDAgMjMuNjcyNDQ2LC03LjAwNzA1NiAzMC4wMTM3NDgsLTE3LjU4MzgwMiBoIDUuODM4NTE1IEMgNzAuNzQ4NDk4LDc5LjA1NTcyNyA1Ny4yNjkyNCw4OC4zNTYxMTYgNDEuNzYyNTg5LDg4LjM1NjExNiBjIC0yMi40NzA5MDcsMCAtNDAuNjg3MTk5OCwtMTkuNTI4MjUgLTQwLjY4NzE5OTgsLTQzLjYxNzQ2MiAwLC0yNC4wODkyMTEgMTguMjE2MjkyOCwtNDMuNjE3NDYwNCA0MC42ODcxOTk4LC00My42MTc0NjA0IHogTSA3MS45MDUzNzUsMjQuMzIyOTk5IGMgLTEuMzExOTIsLTIuMjIwNTY3IC0yLjgzMDk4NCwtNC4yODcwNDkgLTQuNTI4ODc3LC02LjE2NjUwOCAxLjM0MjQ1MiwtMS4xMjA5NDUgMi43NzEzNzQsLTIuMTI4MzgxIDQuMjc1MTM5LC0zLjAwNzIzIDIuMzcyOTg0LDIuNzUzMDExIDQuNDE4ODc1LDUuODM0NjM2IDYuMDcyNDg5LDkuMTczNzM4IHoiCiAgICAgICAgIGlkPSJwYXRoMjM1NCIgLz4KICAgIDwvZz4KICAgIDxnCiAgICAgICBpZD0ibGV0dGVycyIKICAgICAgIHN0eWxlPSJmaWxsOiNGRkYiPgogICAgICA8cGF0aAogICAgICAgICBkPSJtIDc2LjEzNTQxMSwzNC40MDkwNjYgaCA5LjE2MTA0MiBWIDI5LjM2NTg4IEggNjEuODU3NTM3IHYgNS4wNDMxODYgaCA5LjE2MTEzNyB2IDI1LjkyMzE3IGggNS4xMTY3MzcgeiIKICAgICAgICAgaWQ9InBhdGgyMzQ2IiAvPgogICAgICA8cGF0aAogICAgICAgICBkPSJtIDkyLjY0NzU3MSw1Mi44NTYzMzQgaCAxMy42NTkwMDkgbCAyLjkzMDA5LDcuNDc2MDcyIGggNS4zNjQ2MSBMIDEwMS44OTEyMiwyOS4xNDQ5MDMgSCA5Ny4xODcxODYgTCA4NC40NzcwODksNjAuMzMyNDA2IGggNS4xOTk1MzMgeiBtIDExLjgwMjEwOSwtNC44MjIyNzYgaCAtOS45NDQ3NzEgbCA0Ljk1MTcxOCwtMTIuMzg2NDYyIHoiCiAgICAgICAgIGlkPSJwYXRoMjM2MiIgLz4KICAgICAgPHBhdGgKICAgICAgICAgZD0ibSAxMjMuODA2NDEsMjkuMzY2MDg0IGggLTQuNTgwMzggdiAzMC45NjYzMjIgaCAyMC41NDcyOCB2IC00LjkxMDI1MyBjIC01LjMyMjI3LDAgLTEwLjY0NDYzLDAgLTE1Ljk2NjksMCB6IgogICAgICAgICBpZD0icGF0aDIzNTYiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIGQ9Im0gMTY2LjQ3MjIsMjkuMzY2MDg0IGggLTIxLjM3NTY0IHYgMzAuOTY2MzIyIGggMjEuNTgyMDMgdiAtNC45MTAyNTMgaCAtMTYuNTQ3NzEgdiAtOC4yNzI3NSBoIDE0LjQ4NDM5IFYgNDIuMjM5MjUgaCAtMTQuNDg0MzkgdiAtNy45NjI4MTEgaCAxNi4zNDEzMiB6IgogICAgICAgICBpZD0icGF0aDIzNjAiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIGQ9Im0gMTkxLjE5MDM1LDM5LjQ3NDU5MyBjIDAsMS41OTk0NyAtMC41MzY0NiwyLjg3NTM1IC0xLjYxNjI4LDMuODE4ODgzIC0xLjA3MjgxLDAuOTUxMjQgLTIuNTI0MDksMS40MjI4MzcgLTQuMzQ2NzgsMS40MjI4MzcgaCAtNy40NDg1MSBWIDM0LjI3NjQzOSBoIDcuNDA3MyBjIDEuOTA1MSwwIDMuMzgzNzYsMC40MzUwMjcgNC40MjkzOSwxLjMxMjE3OCAxLjA1MjI2LDAuODcwMjU4IDEuNTc0ODgsMi4xNjc3MzQgMS41NzQ4OCwzLjg4NTk3NiB6IG0gNi4wNjYwMiwyMC44NTc4MTMgLTcuNzk5MTEsLTExLjcyMzE5MSBjIDEuMDE3NzEsLTAuMjk0Nzk0IDEuOTQ2MzEsLTAuNzE0ODEzIDIuNzg1NTMsLTEuMjYwNTY2IDAuODM4ODUsLTAuNTQ1NjE5IDEuNTYxMjIsLTEuMjA5MjYzIDIuMTY2MjksLTEuOTkwNjI3IDAuNjA1NDEsLTAuNzgxNzM4IDEuMDc5ODEsLTEuNjgxMDk2IDEuNDIzNjksLTIuNjk4MzQ1IDAuMzQzNzgsLTEuMDE3NTUzIDAuNTE1NjEsLTIuMTc1MjM4IDAuNTE1NjEsLTMuNDcyODgzIDAsLTEuNTA0MDkgLTAuMjQ3NDMsLTIuODY3OTQ4IC0wLjc0MjY3LC00LjA5MjA0OCAtMC40OTUxNSwtMS4yMjM3OTQgLTEuMjAzNDQsLTIuMjU2MTg2IC0yLjEyNDk5LC0zLjA5NjczNCAtMC45MjE3MywtMC44NDA0NDYgLTIuMDQ5NTcsLTEuNDg5MjUyIC0zLjM4Mzc1LC0xLjk0NjQ1MiAtMS4zMzQ0NywtMC40NTcyNjcgLTIuODI2OTIsLTAuNjg1NDc2IC00LjQ3NzQsLTAuNjg1NDc2IGggLTEyLjg3NTEyIHYgMzAuOTY2MzIyIGggNS4wMzQzMyBWIDQ5LjUzODUyMiBoIDYuMzc1NjkgbCA3LjExODI5LDEwLjc5Mzg4NCB6IgogICAgICAgICBpZD0icGF0aDIzNTgiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"},"Dv/5":function(){},EhTh:function(t,e){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function n(t,e,r){for(var n,i=[],a=e;a<r;a+=3)i.push(o[(n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]))>>18&63]+o[n>>12&63]+o[n>>6&63]+o[63&n]);return i.join("")}e.byteLength=function(t){var e=r(t),n=e[1];return 3*(e[0]+n)/4-n},e.toByteArray=function(t){var e,n,o=r(t),u=o[0],s=o[1],c=new a(function(t,e,r){return 3*(e+r)/4-r}(0,u,s)),l=0,f=s>0?u-4:u;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],u=0,s=r-i;u<s;u+=16383)a.push(n(t,u,u+16383>s?s:u+16383));return 1===i?a.push(o[(e=t[r-1])>>2]+o[e<<4&63]+"=="):2===i&&a.push(o[(e=(t[r-2]<<8)+t[r-1])>>10]+o[e>>4&63]+o[e<<2&63]+"="),a.join("")};for(var o=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=u.length;s<c;++s)o[s]=u[s],i[u.charCodeAt(s)]=s;i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"M/Vy":function(t,e,r){"use strict";function n(t,e){for(var r in e)t[r]=e[r];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t,e,r){var n,o,i,u={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?D.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return a(t,u,n,o,null)}function a(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++x:o};return null==o&&null!=E.vnode&&E.vnode(i),i}function u(){return{current:null}}function s(t){return t.children}function c(t,e){this.props=t,this.context=e}function l(t,e){if(null==e)return t.__?l(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?l(t):null}function f(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return f(t)}}function h(t){(!t.__d&&(t.__d=!0)&&S.push(t)&&!g.__r++||P!==E.debounceRendering)&&((P=E.debounceRendering)||setTimeout)(g)}function g(){for(var t;g.__r=S.length;)t=S.sort((function(t,e){return t.__v.__b-e.__v.__b})),S=[],t.some((function(t){var e,r,o,i,a,u;t.__d&&(a=(i=(e=t).__v).__e,(u=e.__P)&&(r=[],(o=n({},i)).__v=i.__v+1,M(u,i,o,e.__n,void 0!==u.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?l(i):a,i.__h),j(r,i),i.__e!=a&&f(i)))}))}function d(t,e,r,n,o,i,u,c,f,h){var g,d,_,b,v,w,m,j=n&&n.__k||B,O=j.length;for(r.__k=[],g=0;g<e.length;g++)if(null!=(b=r.__k[g]=null==(b=e[g])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?a(null,b,null,null,b):Array.isArray(b)?a(s,{children:b},null,null,null):b.__b>0?a(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)){if(b.__=r,b.__b=r.__b+1,null===(_=j[g])||_&&b.key==_.key&&b.type===_.type)j[g]=void 0;else for(d=0;d<O;d++){if((_=j[d])&&b.key==_.key&&b.type===_.type){j[d]=void 0;break}_=null}M(t,b,_=_||U,o,i,u,c,f,h),v=b.__e,(d=b.ref)&&_.ref!=d&&(m||(m=[]),_.ref&&m.push(_.ref,null,b),m.push(d,b.__c||v,b)),null!=v?(null==w&&(w=v),"function"==typeof b.type&&b.__k===_.__k?b.__d=f=p(b,f,t):f=y(t,b,_,j,v,f),"function"==typeof r.type&&(r.__d=f)):f&&_.__e==f&&f.parentNode!=t&&(f=l(_))}for(r.__e=w,g=O;g--;)null!=j[g]&&A(j[g],j[g]);if(m)for(g=0;g<m.length;g++)I(m[g],m[++g],m[++g])}function p(t,e,r){for(var n,o=t.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=t,e="function"==typeof n.type?p(n,e,r):y(r,n,n,o,n.__e,e));return e}function _(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){_(t,e)})):e.push(t)),e}function y(t,e,r,n,o,i){var a,u,s;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==r||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<n.length;s+=2)if(u==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function b(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||R.test(e)?r:r+"px"}function v(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||b(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||b(t.style,e,r[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n||t.addEventListener(e,i?m:w,i):t.removeEventListener(e,i?m:w,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,r))}}function w(t){this.l[t.type+!1](E.event?E.event(t):t)}function m(t){this.l[t.type+!0](E.event?E.event(t):t)}function M(t,e,r,o,i,a,u,l,f){var h,g,p,_,y,b,v,w,m,M,j,I,A,N,C,L=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(f=r.__h,l=e.__e=r.__e,e.__h=null,a=[l]),(h=E.__b)&&h(e);try{t:if("function"==typeof L){if(w=e.props,m=(h=L.contextType)&&o[h.__c],M=h?m?m.props.value:h.__:o,r.__c?v=(g=e.__c=r.__c).__=g.__E:("prototype"in L&&L.prototype.render?e.__c=g=new L(w,M):(e.__c=g=new c(w,M),g.constructor=L,g.render=T),m&&m.sub(g),g.props=w,g.state||(g.state={}),g.context=M,g.__n=o,p=g.__d=!0,g.__h=[],g._sb=[]),null==g.__s&&(g.__s=g.state),null!=L.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=n({},g.__s)),n(g.__s,L.getDerivedStateFromProps(w,g.__s))),_=g.props,y=g.state,p)null==L.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==L.getDerivedStateFromProps&&w!==_&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(w,M),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(w,g.__s,M)||e.__v===r.__v){for(g.props=w,g.state=g.__s,e.__v!==r.__v&&(g.__d=!1),g.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),j=0;j<g._sb.length;j++)g.__h.push(g._sb[j]);g._sb=[],g.__h.length&&u.push(g);break t}null!=g.componentWillUpdate&&g.componentWillUpdate(w,g.__s,M),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(_,y,b)}))}if(g.context=M,g.props=w,g.__v=e,g.__P=t,I=E.__r,A=0,"prototype"in L&&L.prototype.render){for(g.state=g.__s,g.__d=!1,I&&I(e),h=g.render(g.props,g.state,g.context),N=0;N<g._sb.length;N++)g.__h.push(g._sb[N]);g._sb=[]}else do{g.__d=!1,I&&I(e),h=g.render(g.props,g.state,g.context),g.state=g.__s}while(g.__d&&++A<25);g.state=g.__s,null!=g.getChildContext&&(o=n(n({},o),g.getChildContext())),p||null==g.getSnapshotBeforeUpdate||(b=g.getSnapshotBeforeUpdate(_,y)),C=null!=h&&h.type===s&&null==h.key?h.props.children:h,d(t,Array.isArray(C)?C:[C],e,r,o,i,a,u,l,f),g.base=e.__e,e.__h=null,g.__h.length&&u.push(g),v&&(g.__E=g.__=null),g.__e=!1}else null==a&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=O(r.__e,e,r,o,i,a,u,f);(h=E.diffed)&&h(e)}catch(t){e.__v=null,(f||null!=a)&&(e.__e=l,e.__h=!!f,a[a.indexOf(l)]=null),E.__e(t,e,r)}}function j(t,e){E.__c&&E.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){E.__e(t,e.__v)}}))}function O(t,e,r,n,i,a,u,s){var c,f,h,g=r.props,p=e.props,_=e.type,y=0;if("svg"===_&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!_&&(_?c.localName===_:3===c.nodeType)){t=c,a[y]=null;break}if(null==t){if(null===_)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,p.is&&p),a=null,s=!1}if(null===_)g===p||s&&t.data===p||(t.data=p);else{if(a=a&&D.call(t.childNodes),f=(g=r.props||U).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!s){if(null!=a)for(g={},y=0;y<t.attributes.length;y++)g[t.attributes[y].name]=t.attributes[y].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(t,e,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in e||v(t,i,null,r[i],n);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===e[i]||v(t,i,e[i],r[i],n)}(t,p,g,i,s),h)e.__k=[];else if(y=e.props.children,d(t,Array.isArray(y)?y:[y],e,r,n,i&&"foreignObject"!==_,a,u,a?a[0]:r.__k&&l(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&o(a[y]);s||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===_&&!y||"option"===_&&y!==g.value)&&v(t,"value",y,g.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&v(t,"checked",y,g.checked,!1))}return t}function I(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){E.__e(t,r)}}function A(t,e,r){var n,i;if(E.unmount&&E.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||I(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){E.__e(t,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&A(n[i],e,r||"function"!=typeof t.type);r||null==t.__e||o(t.__e),t.__=t.__e=t.__d=void 0}function T(t,e,r){return this.constructor(t,r)}function N(t,e,r){var n,o,a;E.__&&E.__(t,e),o=(n="function"==typeof r)?null:r&&r.__k||e.__k,a=[],M(e,t=(!n&&r||e).__k=i(s,null,[t]),o||U,U,void 0!==e.ownerSVGElement,!n&&r?[r]:o?null:e.firstChild?D.call(e.childNodes):null,a,!n&&r?r:o?o.__e:e.firstChild,n),j(a,t)}function C(t,e){N(t,e,C)}function L(t,e,r){var o,i,u,s=n({},t.props);for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:s[u]=e[u];return arguments.length>2&&(s.children=arguments.length>3?D.call(arguments,2):r),a(t.type,s,o||t.key,i||t.ref,null)}function k(t,e){var r={__c:e="__cC"+z++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some(h)},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return L})),r.d(e,"d",(function(){return k})),r.d(e,"e",(function(){return i})),r.d(e,"f",(function(){return u})),r.d(e,"g",(function(){return i})),r.d(e,"h",(function(){return C})),r.d(e,"i",(function(){return E})),r.d(e,"j",(function(){return N})),r.d(e,"k",(function(){return _}));var D,E,x,S,P,z,U={},B=[],R=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;D=B.slice,E={__e:function(t,e,r,n){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},x=0,c.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=n({},this.state),"function"==typeof t&&(t=t(n({},r),this.props)),t&&n(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),h(this))},c.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),h(this))},c.prototype.render=s,S=[],g.__r=0,z=0},QgHc:function(t,e){e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,l=-7,f=r?o-1:0,h=r?-1:1,g=t[e+f];for(f+=h,i=g&(1<<-l)-1,g>>=-l,l+=u;l>0;i=256*i+t[e+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,n),i-=c}return(g?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:i-1,d=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(e*s-1)*Math.pow(2,o),a+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+g]=255&u,g+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+g]=255&a,g+=d,a/=256,c-=8);t[r+g-d]|=128*p}},TdxT:function(t,e,r){"use strict";r.r(e);var n=r("M/Vy"),o=n.g,i=n.j,a=n.h,u=function(t){return t&&t.default?t.default:t},s=function(t){return"/"===t[t.length-1]?t:t+"/"};if("function"==typeof u(r("/hs+"))){var c=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var t=u(r("/hs+")),e={},n=document.querySelector('[type="__PREACT_CLI_DATA__"]');n&&(e=JSON.parse(decodeURI(n.innerHTML)).preRenderData||e);var l={preRenderData:e},f=e.url?s(e.url):"",h=a&&f===s(location.pathname);c=(h?a:i)(o(t,{CLI_DATA:l}),document.body,c)}()}},UxVw:function(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},XaFX:function(t,e,r){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=i.prototype:(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);i.TYPED_ARRAY_SUPPORT?(t=e).__proto__=i.prototype:t=c(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(e,r),a=(t=o(t,n)).write(e,r);a!==n&&(t=t.slice(0,a));return t}(t,e,r):function(t,e){if(i.isBuffer(e)){var r=0|l(e.length);return 0===(t=o(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?o(t,0):c(t,e);if("Buffer"===e.type&&Y(e.data))return c(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,e){if(u(e),t=o(t,e<0?0:0|l(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e){var r=e.length<0?0:0|l(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function l(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function f(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(n)return P(t).length;e=(""+e).toLowerCase(),n=!0}}function h(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,r);case"utf8":case"utf-8":return j(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:p(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):p(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function p(t,e,r,n,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var a,u=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,s/=2,c/=2,r/=2}if(o){var l=-1;for(a=r;a<s;a++)if(i(t,a)===i(e,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*u}else-1!==l&&(a-=a-l),l=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var f=!0,h=0;h<c;h++)if(i(t,a+h)!==i(e,h)){f=!1;break}if(f)return a}return-1}function _(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function y(t,e,r,n){return U(P(e,t.length-r),t,r,n)}function b(t,e,r,n){return U(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function v(t,e,r,n){return b(t,e,r,n)}function w(t,e,r,n){return U(z(e),t,r,n)}function m(t,e,r,n){return U(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)r=t.charCodeAt(i),n=r>>8,o.push(r%256),o.push(n);return o}(e,t.length-r),t,r,n)}function M(t,e,r){return B.fromByteArray(0===e&&r===t.length?t:t.slice(e,r))}function j(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,u,s,c=t[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&c)<<6|63&i)>127&&(l=s);break;case 3:a=t[o+2],128==(192&(i=t[o+1]))&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:a=t[o+2],u=t[o+3],128==(192&(i=t[o+1]))&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(l=s)}null===l?(l=65533,f=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function A(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=S(t[i]);return o}function T(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function N(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function L(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function k(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function D(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function E(t,e,r,n,o){return o||D(t,0,r,4),R.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return o||D(t,0,r,8),R.write(t,e,r,n,52,8),r+8}function S(t){return t<16?"0"+t.toString(16):t.toString(16)}function P(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(t){return B.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}var B=r("EhTh"),R=r("QgHc"),Y=r("UxVw");e.Buffer=i,e.SlowBuffer=function(t){return+t!=t&&(t=0),i.alloc(+t)},e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return a(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return function(t,e,r,n){return u(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}(null,t,e,r)},i.allocUnsafe=function(t){return s(null,t)},i.allocUnsafeSlow=function(t){return s(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,a=Math.min(r,n);o<a;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Y(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},i.byteLength=f,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):h.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(o>>>=0)-(n>>>=0),u=(r>>>=0)-(e>>>=0),s=Math.min(a,u),c=this.slice(n,o),l=t.slice(e,r),f=0;f<s;++f)if(c[f]!==l[f]){a=c[f],u=l[f];break}return a<u?-1:u<a?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return y(this,t,e,r);case"ascii":return b(this,t,e,r);case"latin1":case"binary":return v(this,t,e,r);case"base64":return w(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};i.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),i.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=i.prototype;else{var o=e-t;r=new i(o,void 0);for(var a=0;a<o;++a)r[a]=this[a+t]}return r},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),R.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),R.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),R.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),R.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):k(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,a=n-r;if(this===t&&r<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var u=i.isBuffer(t)?t:P(new i(t,n).toString()),s=u.length;for(a=0;a<r-e;++a)this[a+e]=u[a%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g}).call(this,r("Xi9u"))},Xi9u:function(t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},jBoo:function(t,e){!function(){function r(t){return l.PF.compile(t||"nplurals=2; plural=(n != 1);")}function n(t,e){this._key=t,this._i18n=e}var o=Array.prototype,i=o.slice,a=Object.prototype.hasOwnProperty,u=o.forEach,s={},c={forEach:function(t,e,r){var n,o,i;if(null!==t)if(u&&t.forEach===u)t.forEach(e,r);else if(t.length===+t.length){for(n=0,o=t.length;n<o;n++)if(n in t&&e.call(r,t[n],n,t)===s)return}else for(i in t)if(a.call(t,i)&&e.call(r,t[i],i,t)===s)return},extend:function(t){return this.forEach(i.call(arguments,1),(function(e){for(var r in e)t[r]=e[r]})),t}},l=function(t){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=c.extend({},this.defaults,t),this.textdomain(this.options.domain),t.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+t.domain+"`")};l.context_delimiter=String.fromCharCode(4),c.extend(n.prototype,{onDomain:function(t){return this._domain=t,this},withContext:function(t){return this._context=t,this},ifPlural:function(t,e){return this._val=t,this._pkey=e,this},fetch:function(t){return"[object Array]"!={}.toString.call(t)&&(t=[].slice.call(arguments,0)),(t&&t.length?l.sprintf:function(t){return t})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),t)}}),c.extend(l.prototype,{translate:function(t){return new n(t,this)},textdomain:function(t){if(!t)return this._textdomain;this._textdomain=t},gettext:function(t){return this.dcnpgettext.call(this,void 0,void 0,t)},dgettext:function(t,e){return this.dcnpgettext.call(this,t,void 0,e)},dcgettext:function(t,e){return this.dcnpgettext.call(this,t,void 0,e)},ngettext:function(t,e,r){return this.dcnpgettext.call(this,void 0,void 0,t,e,r)},dngettext:function(t,e,r,n){return this.dcnpgettext.call(this,t,void 0,e,r,n)},dcngettext:function(t,e,r,n){return this.dcnpgettext.call(this,t,void 0,e,r,n)},pgettext:function(t,e){return this.dcnpgettext.call(this,void 0,t,e)},dpgettext:function(t,e,r){return this.dcnpgettext.call(this,t,e,r)},dcpgettext:function(t,e,r){return this.dcnpgettext.call(this,t,e,r)},npgettext:function(t,e,r,n){return this.dcnpgettext.call(this,void 0,t,e,r,n)},dnpgettext:function(t,e,r,n,o){return this.dcnpgettext.call(this,t,e,r,n,o)},dcnpgettext:function(t,e,n,o,i){var a;if(o=o||n,t=t||this._textdomain,!this.options)return(a=new l).dcnpgettext.call(a,void 0,void 0,n,o,i);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[t])throw new Error("Domain `"+t+"` was not found.");if(!this.options.locale_data[t][""])throw new Error("No locale meta information provided.");if(!n)throw new Error("No translation key found.");var u,s,c,f=e?e+l.context_delimiter+n:n,h=this.options.locale_data,g=h[t],d=(h.messages||this.defaults.locale_data.messages)[""],p=g[""].plural_forms||g[""]["Plural-Forms"]||g[""]["plural-forms"]||d.plural_forms||d["Plural-Forms"]||d["plural-forms"];if(void 0===i)c=0;else{if("number"!=typeof i&&(i=parseInt(i,10),isNaN(i)))throw new Error("The number that was passed in is not a number.");c=r(p)(i)}if(!g)throw new Error("No domain named `"+t+"` could be found.");return!(u=g[f])||c>u.length?(this.options.missing_key_callback&&this.options.missing_key_callback(f,t),s=[n,o],!0===this.options.debug&&console.log(s[r(p)(i)]),s[r()(i)]):(s=u[c])||(s=[n,o])[r()(i)]}});var f,h,g=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var r=[];e>0;r[--e]=t);return r.join("")}var r=function t(){return t.cache.hasOwnProperty(arguments[0])||(t.cache[arguments[0]]=t.parse(arguments[0])),t.format.call(null,t.cache[arguments[0]],arguments)};return r.format=function(r,n){var o,i,a,u,s,c,l,f=1,h=r.length,d="",p=[];for(i=0;i<h;i++)if("string"===(d=t(r[i])))p.push(r[i]);else if("array"===d){if((u=r[i])[2])for(o=n[f],a=0;a<u[2].length;a++){if(!o.hasOwnProperty(u[2][a]))throw g('[sprintf] property "%s" does not exist',u[2][a]);o=o[u[2][a]]}else o=u[1]?n[u[1]]:n[f++];if(/[^s]/.test(u[8])&&"number"!=t(o))throw g("[sprintf] expecting number but found %s",t(o));switch(null==o&&(o=""),u[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=u[7]?o.toExponential(u[7]):o.toExponential();break;case"f":o=u[7]?parseFloat(o).toFixed(u[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&u[7]?o.substring(0,u[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(u[8])&&u[3]&&o>=0?"+"+o:o,c=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",l=u[6]-String(o).length,s=u[6]?e(c,l):"",p.push(u[5]?o+s:s+o)}return p.join("")},r.cache={},r.parse=function(t){for(var e=t,r=[],n=[],o=0;e;){if(null!==(r=/^[^\x25]+/.exec(e)))n.push(r[0]);else if(null!==(r=/^\x25{2}/.exec(e)))n.push("%");else{if(null===(r=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(e)))throw"[sprintf] huh?";if(r[2]){o|=1;var i=[],a=r[2],u=[];if(null===(u=/^([a-z_][a-z_\d]*)/i.exec(a)))throw"[sprintf] huh?";for(i.push(u[1]);""!==(a=a.substring(u[0].length));)if(null!==(u=/^\.([a-z_][a-z_\d]*)/i.exec(a)))i.push(u[1]);else{if(null===(u=/^\[(\d+)\]/.exec(a)))throw"[sprintf] huh?";i.push(u[1])}r[2]=i}else o|=2;if(3===o)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";n.push(r)}e=e.substring(r[0].length)}return n},r}(),d=function(t,e){return e.unshift(t),g.apply(null,e)};l.parse_plural=function(t,e){return t=t.replace(/n/g,e),l.parse_expression(t)},l.sprintf=function(t,e){return"[object Array]"=={}.toString.call(e)?d(t,[].slice.call(e)):g.apply(this,[].slice.call(arguments))},l.prototype.sprintf=function(){return l.sprintf.apply(this,arguments)},(l.PF={}).parse=function(t){var e=l.PF.extractPluralExpr(t);return l.PF.parser.parse.call(l.PF.parser,e)},l.PF.compile=function(t){var e=l.PF.parse(t);return function(t){return!0===(r=l.PF.interpreter(e)(t))?1:r||0;var r}},l.PF.interpreter=function(t){return function(e){switch(t.type){case"GROUP":return l.PF.interpreter(t.expr)(e);case"TERNARY":return l.PF.interpreter(t.expr)(e)?l.PF.interpreter(t.truthy)(e):l.PF.interpreter(t.falsey)(e);case"OR":return l.PF.interpreter(t.left)(e)||l.PF.interpreter(t.right)(e);case"AND":return l.PF.interpreter(t.left)(e)&&l.PF.interpreter(t.right)(e);case"LT":return l.PF.interpreter(t.left)(e)<l.PF.interpreter(t.right)(e);case"GT":return l.PF.interpreter(t.left)(e)>l.PF.interpreter(t.right)(e);case"LTE":return l.PF.interpreter(t.left)(e)<=l.PF.interpreter(t.right)(e);case"GTE":return l.PF.interpreter(t.left)(e)>=l.PF.interpreter(t.right)(e);case"EQ":return l.PF.interpreter(t.left)(e)==l.PF.interpreter(t.right)(e);case"NEQ":return l.PF.interpreter(t.left)(e)!=l.PF.interpreter(t.right)(e);case"MOD":return l.PF.interpreter(t.left)(e)%l.PF.interpreter(t.right)(e);case"VAR":return e;case"NUM":return t.val;default:throw new Error("Invalid Token found.")}}},l.PF.extractPluralExpr=function(t){t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(t)||(t=t.concat(";"));var e,r=/nplurals\=(\d+);/,n=t.match(r);if(!(n.length>1))throw new Error("nplurals not found in plural_forms string: "+t);if(!((e=(t=t.replace(r,"")).match(/plural\=(.*);/))&&e.length>1))throw new Error("`plural` expression not found: "+t);return e[1]},l.PF.parser=(f={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(t,e,r,n,o,i){var a=i.length-1;switch(o){case 1:return{type:"GROUP",expr:i[a-1]};case 2:this.$={type:"TERNARY",expr:i[a-4],truthy:i[a-2],falsey:i[a]};break;case 3:this.$={type:"OR",left:i[a-2],right:i[a]};break;case 4:this.$={type:"AND",left:i[a-2],right:i[a]};break;case 5:this.$={type:"LT",left:i[a-2],right:i[a]};break;case 6:this.$={type:"LTE",left:i[a-2],right:i[a]};break;case 7:this.$={type:"GT",left:i[a-2],right:i[a]};break;case 8:this.$={type:"GTE",left:i[a-2],right:i[a]};break;case 9:this.$={type:"NEQ",left:i[a-2],right:i[a]};break;case 10:this.$={type:"EQ",left:i[a-2],right:i[a]};break;case 11:this.$={type:"MOD",left:i[a-2],right:i[a]};break;case 12:this.$={type:"GROUP",expr:i[a-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(t)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(t){throw new Error(t)},parse:function(t){function e(){var t;return"number"!=typeof(t=r.lexer.lex()||1)&&(t=r.symbols_[t]||t),t}var r=this,n=[0],o=[null],i=[],a=this.table,u="",s=0,c=0,l=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var f=this.lexer.yylloc;i.push(f),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,g,d,p,_,y,b,v,w,m={};;){if(this.defaultActions[d=n[n.length-1]]?p=this.defaultActions[d]:(null==h&&(h=e()),p=a[d]&&a[d][h]),void 0===p||!p.length||!p[0]){if(!l){for(y in v=[],a[d])this.terminals_[y]&&y>2&&v.push("'"+this.terminals_[y]+"'");var M="";M=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+this.terminals_[h]+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:f,expected:v})}if(3==l){if(1==h)throw new Error(M||"Parsing halted.");c=this.lexer.yyleng,u=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,h=e()}for(;!(2..toString()in a[d]);){if(0==d)throw new Error(M||"Parsing halted.");n.length=n.length-2*(w=1),o.length=o.length-w,i.length=i.length-w,d=n[n.length-1]}g=h,h=2,p=a[d=n[n.length-1]]&&a[d][2],l=3}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+h);switch(p[0]){case 1:n.push(h),o.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(p[1]),h=null,g?(h=g,g=null):(c=this.lexer.yyleng,u=this.lexer.yytext,s=this.lexer.yylineno,f=this.lexer.yylloc,l>0&&l--);break;case 2:if(m.$=o[o.length-(b=this.productions_[p[1]][1])],m._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},void 0!==(_=this.performAction.call(m,u,c,s,this.yy,p[1],o,i)))return _;b&&(n=n.slice(0,-1*b*2),o=o.slice(0,-1*b),i=i.slice(0,-1*b)),n.push(this.productions_[p[1]][0]),o.push(m.$),i.push(m._$),n.push(a[n[n.length-2]][n[n.length-1]]);break;case 3:return!0}}return!0}},h=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t,t.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),n=0;n<r.length;n++)if(t=this._input.match(this.rules[r[n]]))return(e=t[0].match(/\n.*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-1:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],this.performAction.call(this,this.yy,this,r[n],this.conditionStack[this.conditionStack.length-1])||void 0;if(""===this._input)return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},performAction:function(t,e,r){switch(r){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},rules:[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return t}(),f.lexer=h,f),t.exports&&(e=t.exports=l),e.Jed=l}()}});</script></body></html>
-\ No newline at end of file