MediaWiki:Centralnotice-template-hnordeen enIN dsk p2 sm txt old: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
Tag: Central Notice
 
No edit summary
Tag: Central Notice
 
(2 intermediate revisions by one other user not shown)
Line 476: Line 476:
.frb-ptf-fee {
.frb-ptf-fee {
white-space: nowrap;
white-space: nowrap;
}
.frb-ptf-optional {
color: #54595d;
font-weight: normal;
}
}


Line 541: Line 545:
border-radius: 2px;
border-radius: 2px;
box-shadow: 0 1px 1px #aaa;
box-shadow: 0 1px 1px #aaa;
}

.frb-pm-bt-temp svg {
display: inline-block;
min-width: 50px;
}
}


@media all and (min-width: 1390px) {
@media all and (min-width: 1390px) {
.frb-pm-cc svg {
.frb-pm-cc svg,
.frb-pm-bt-temp svg {
min-width: 26px;
min-width: 26px;
}
}
@media all and (min-width: 1000px) {
.frb-pm-bt-temp svg {
min-width: 60px;
}
}
}
}
Line 551: Line 566:
.frb-cctypes-vmad .frb-btn,
.frb-cctypes-vmad .frb-btn,
.frb-cctypes-vmaj .frb-btn,
.frb-cctypes-vmaj .frb-btn,
.frb-cctypes-vmar .frb-btn,
.frb-cctypes-vma .frb-btn,
.frb-cctypes-vma .frb-btn,
.frb-cctypes-vm .frb-btn {
.frb-cctypes-vm .frb-btn {
Line 559: Line 575:
.frb-cctypes-vmad span,
.frb-cctypes-vmad span,
.frb-cctypes-vmaj span,
.frb-cctypes-vmaj span,
.frb-cctypes-vmar span,
.frb-cctypes-vma span,
.frb-cctypes-vma span,
.frb-cctypes-vm span {
.frb-cctypes-vm span {
Line 573: Line 590:
.frb-cctypes-vmaj .frb-cc-logo-amex,
.frb-cctypes-vmaj .frb-cc-logo-amex,
.frb-cctypes-vmaj .frb-cc-logo-jcb,
.frb-cctypes-vmaj .frb-cc-logo-jcb,

.frb-cctypes-vmar .frb-cc-logo-visa,
.frb-cctypes-vmar .frb-cc-logo-mastercard,
/* T258509 .frb-cctypes-vmar .frb-cc-logo-amex, */
.frb-cctypes-vmar .frb-cc-logo-rupay,


.frb-cctypes-vma .frb-cc-logo-visa,
.frb-cctypes-vma .frb-cc-logo-visa,
Line 1,137: Line 1,159:
<p class="frb-plea">
<p class="frb-plea">
<span class="frb-plea-message">
<span class="frb-plea-message">
<strong class="frb-plea-heading">This isn't a paywall.</strong>
<strong class="frb-plea-heading">Pardon the interruption, but it's important.</strong>
We'll cut to the chase: <strong>98% of Wikipedia's readers don't give; they simply look away.</strong> All we ask is %MINIMUM%, or whatever seems right to you this <span class="frb-replace-dayofweek"></span>, before you get back to your article.
We'll cut to the chase: <strong>98% of Wikipedia's readers don't give; they simply look away.</strong> All we ask is %MINIMUM%, or whatever seems right to you this <span class="frb-replace-dayofweek"></span>, before you get back to your article.
</span>
</span>
Line 1,171: Line 1,193:
</g>
</g>
</svg>
</svg>
Hi reader, this <span class="frb-replace-dayofweek"></span> we ask you to defend Wikipedia's independence. Thanks to the 2% of readers who donate, Wikipedia remains open to all. If Wikipedia has given you %MINIMUM% worth of knowledge, take a minute to donate to keep it thriving for years. Show the editors that their work matters. If you are one of our rare donors, we warmly thank you.
Hi, dear reader. If you use Wikipedia a lot, this message is for you. We're sure you are busy so we'll make this quick: this <span class="frb-replace-dayofweek"></span> we need your help. We don't have salespeople. We depend on donations from exceptional readers, but fewer than 2% give. If you donate just %MINIMUM%, or whatever you can this <span class="frb-replace-dayofweek"></span>, Wikipedia could keep thriving. Thank you.
</div>
</div>


Line 1,182: Line 1,204:
<legend class="frb-legend error-highlight">{{{FR2015_translations,select-payment-method-please}}}</legend>
<legend class="frb-legend error-highlight">{{{FR2015_translations,select-payment-method-please}}}</legend>
<ul class="frb-btn-wrapper">
<ul class="frb-btn-wrapper">
<li class="frb-pm-ideal" style="display: none;">
<button class="frb-btn"
onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'rtbt', submethod:'rtbt_ideal' }); return false;">
iDEAL
</button>
</li>


<li class="frb-pm-cc">
<li class="frb-pm-cc">
<button class="frb-btn" onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'cc' }); return false;">
<button class="frb-btn" onclick="frb.setMethod({ method:'cc', gateway:'astropay', variant:'panExplain' }); return false;">
<span>{{{FR2015_translations,pm-creditcard}}}</span>
<span>{{{FR2015_translations,pm-creditcard}}}</span>


Line 1,310: Line 1,326:
</svg>
</svg>


</button>
<svg class="frb-cc-logo-rupay" xmlns="http://www.w3.org/2000/svg" width="79" height="21" viewBox="0 0 79 21">
</li>
<g fill="none">
<path fill="#2A2C83" d="M.293 15.442c-.079-.051.461-2.13 1.748-6.734 1.024-3.663 1.987-7.089 2.14-7.614L4.459.14l4.023.073c4.703.086 5.427.148 6.184.531 1.341.679 1.71 1.723 1.248 3.53-.393 1.54-1.146 2.587-2.6 3.621-.275.197-.516.437-.535.534-.02.107.151.344.441.608.261.238.54.556.617.708.21.407.174 1.222-.118 2.635-.143.692-.287 1.682-.32 2.2l-.06.94h-1.947c-1.379 0-1.983-.036-2.069-.122-.19-.19-.147-.675.183-2.064.367-1.546.39-2.153.093-2.53-.392-.499-.748-.606-2.156-.653-1.136-.038-1.325-.021-1.497.135-.268.242-.486.868-1.12 3.226l-.542 2.008-1.939-.002c-1.066 0-1.99-.035-2.052-.076zm10.236-8.626c.924-.275 1.314-.878 1.315-2.037 0-.348-.059-.594-.177-.737-.281-.339-1.126-.454-2.712-.37l-1.378.075-.2.676c-.31 1.043-.528 2.053-.494 2.29.022.156.13.235.386.285.563.11 2.67-.007 3.26-.182zm6.52 8.924c-.615-.22-1.1-.631-1.303-1.106-.386-.904-.03-2.913 1.38-7.8.339-1.17.615-2.139.615-2.153 0-.014.072-.097.16-.185.13-.13.428-.16 1.62-.16.804 0 1.574.043 1.713.096l.253.096-.252.895c-.618 2.196-1.26 4.859-1.37 5.691-.101.756-.097.957.023 1.208.273.57 1.264.69 2.108.256.99-.509 1.175-.945 2.766-6.493.233-.813.41-1.236.61-1.449l.28-.3h1.589c1.229 0 1.6.03 1.641.135.04.104-1.98 7.623-2.83 10.54l-.134.458-1.7.05c-.934.029-1.698.023-1.698-.012s.07-.26.154-.5c.344-.973-.085-1.034-1.336-.19-1.236.834-1.755 1.032-2.825 1.077-.724.03-1.04-.003-1.463-.154zm11.296-.301c-.09-.058.433-2.075 1.983-7.65L32.434.22l3.558.03c4.439.036 5.346.115 6.204.538.706.347 1.042.658 1.356 1.253.528 1 .519 2.161-.028 3.754-.842 2.447-2.412 4.057-4.482 4.593-.336.086-1.388.204-2.339.26-3.14.188-2.951.153-3.12.584-.08.206-.394 1.255-.697 2.332l-.55 1.957-1.934-.002c-1.064 0-1.99-.036-2.057-.08zm9.156-8.15c1.035-.133 1.579-.452 1.924-1.129.371-.727.47-1.52.233-1.88-.323-.492-.764-.6-2.427-.59-.828.003-1.546.048-1.595.098-.114.114-.814 2.878-.814 3.214 0 .137.03.28.068.316.096.097 1.785.078 2.611-.028zm5.81 8.493c-1.196-.501-1.507-1.33-1.116-2.985.545-2.313 1.746-3.087 5.871-3.78 2.49-.42 3.112-.726 3.291-1.621.133-.663-.435-1.025-1.608-1.026-.732 0-1.006.106-1.642.638l-.511.429-1.319.034c-1.528.039-2-.022-2-.258 0-.276.6-1.118 1.16-1.63.602-.55 1.399-.971 2.261-1.196 1.812-.471 4.93-.417 6 .106.574.28 1.084.744 1.327 1.208.23.44.147.895-.935 5.188-.532 2.108-.967 4.011-.967 4.231v.4h-1.256c-.692 0-1.468.029-1.727.064l-.47.065-.206-.482c-.242-.566-.27-.566-1.55.009-1.388.625-1.897.764-2.975.814-.918.043-1.076.023-1.627-.208zm5.466-2.375c.7-.31 1.493-1.58 1.497-2.4l.002-.397-.646.06c-.714.067-2.226.555-2.78.897-.468.29-.742.755-.74 1.259.001.483.072.615.407.757.383.163 1.73.058 2.26-.176zm5.6 6.93c-.408-.093-.424-.245-.14-1.36.379-1.495.354-1.464 1.29-1.61 1.012-.157 1.463-.379 1.688-.83.25-.5.232-2.463-.07-7.727-.168-2.93-.21-4.259-.137-4.347.077-.093.592-.127 1.917-.127h1.811l.032 3.401c.021 2.32.067 3.437.145 3.514.185.185.865-.966 3.653-6.178l.394-.737h1.6c.879 0 1.62.035 1.647.078.05.082-2.373 4.402-4.805 8.564-3.456 5.915-4.106 6.73-5.728 7.182-.529.148-2.87.273-3.298.176z" opacity=".938"/>

<li class="frb-pm-bt no-monthly" style="display: none;">
<path fill="#097A44" d="M69.36 18.979l4.754-17.411 4.524 8.998z"/>
<button class="frb-btn" onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'bt' }); return false;">
<path fill="#F46F20" d="M66.419 19.043l4.753-17.412 4.525 8.998z"/>
{{{FR2015_translations,pm-banktransfer}}}
</button>
</li>

<li class="frb-pm-cash no-monthly" style="display: none;">
<button class="frb-btn" onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'cash' }); return false;">
{{{FR2015_translations,pm-cash}}}
</button>
</li>

<li class="frb-pm-pp">
<button class="frb-btn frb-btn-logo"
onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'paypal' }); return false;">
<svg class="frb-logo-paypal" role="img" aria-labelledby="frb-logo-paypal-title"
width="80" height="24" viewBox="0 0 80 24" xmlns="http://www.w3.org/2000/svg">
<title id="frb-logo-paypal-title">{{{FR2015_translations,pm-paypal}}}</title>
<g fill-rule="nonzero" fill="none">
<path
d="M12.444 5.085H6.97a.763.763 0 0 0-.752.648L4.006 19.891c-.044.279.17.53.451.53H7.07a.762.762 0 0 0 .751-.647l.597-3.819a.762.762 0 0 1 .75-.648h1.733c3.606 0 5.686-1.76 6.23-5.248.245-1.526.01-2.724-.698-3.564-.778-.922-2.158-1.41-3.99-1.41zm.631 5.171c-.3 1.981-1.8 1.981-3.25 1.981h-.826l.579-3.7a.457.457 0 0 1 .45-.388h.379c.988 0 1.92 0 2.402.569.288.339.376.842.266 1.538zM28.803 10.193h-2.62a.458.458 0 0 0-.451.388l-.116.74-.184-.269c-.567-.83-1.832-1.108-3.095-1.108-2.896 0-5.37 2.213-5.851 5.317-.25 1.548.105 3.029.976 4.061.799.95 1.941 1.345 3.301 1.345 2.334 0 3.628-1.513 3.628-1.513l-.117.734c-.044.281.17.533.45.533h2.36a.763.763 0 0 0 .752-.648l1.416-9.05a.457.457 0 0 0-.449-.53zm-3.653 5.145c-.253 1.51-1.441 2.525-2.957 2.525-.76 0-1.37-.246-1.76-.713-.387-.464-.534-1.123-.411-1.858.236-1.497 1.444-2.544 2.937-2.544.744 0 1.35.25 1.748.72.399.475.557 1.139.443 1.87zM42.761 10.193h-2.634a.761.761 0 0 0-.63.336l-3.632 5.398-1.54-5.187a.764.764 0 0 0-.73-.547h-2.587a.46.46 0 0 0-.433.608l2.9 8.588-2.726 3.884a.46.46 0 0 0 .372.727h2.63c.25 0 .483-.123.625-.33l8.76-12.755a.46.46 0 0 0-.375-.722"
fill="#283B82" />
<path
d="M51.48 5.085h-5.473a.762.762 0 0 0-.75.648l-2.214 14.158c-.044.279.17.53.45.53H46.3c.261 0 .485-.191.525-.453l.628-4.013a.762.762 0 0 1 .751-.648h1.732c3.606 0 5.686-1.76 6.23-5.248.246-1.526.01-2.724-.699-3.564-.777-.922-2.156-1.41-3.987-1.41zm.632 5.171c-.299 1.981-1.799 1.981-3.25 1.981h-.826l.58-3.7a.456.456 0 0 1 .45-.388h.379c.987 0 1.92 0 2.402.569.287.339.375.842.265 1.538zM67.84 10.193h-2.62a.455.455 0 0 0-.45.388l-.116.74-.184-.269c-.567-.83-1.832-1.108-3.094-1.108-2.897 0-5.37 2.213-5.851 5.317-.25 1.548.105 3.029.976 4.061.8.95 1.94 1.345 3.3 1.345 2.334 0 3.628-1.513 3.628-1.513l-.117.734c-.044.281.17.533.452.533h2.36a.762.762 0 0 0 .75-.648l1.417-9.05a.46.46 0 0 0-.452-.53zm-3.654 5.145c-.251 1.51-1.441 2.525-2.957 2.525-.76 0-1.37-.246-1.76-.713-.387-.464-.533-1.123-.41-1.858.237-1.497 1.444-2.544 2.936-2.544.744 0 1.35.25 1.748.72.4.475.56 1.139.443 1.87zM70.929 5.474L68.683 19.89c-.044.279.17.53.45.53h2.258a.761.761 0 0 0 .751-.647l2.215-14.157a.459.459 0 0 0-.45-.532H71.38a.458.458 0 0 0-.45.389"
fill="#469BDB" />
</g>
</g>
</svg>
</svg>

</button>
</button>
</li>
</li>


<li class="frb-pm-amazon no-monthly">
<li class="frb-pm-bt-temp no-monthly">
<button class="frb-btn frb-btn-logo"
<button class="frb-btn" onclick="frb.setMethod({ method:'bt', variant:'panExplain' }); return false;">
onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'amazon' }); return false;">
<svg class="frb-pm-logo-netbanking" xmlns="http://www.w3.org/2000/svg" width="58" height="20" viewBox="0 0 58 12">
<path fill="#000" fill-rule="nonzero" d="M6.384 9.24V.804H4.92v6.228l-.117-.323a16.944 16.944 0 0 0-.735-1.705L1.896.804H0V9.24h1.464V3.144s.168.744.696 1.716l2.388 4.38h1.836zm6.168-1.416H9.528V5.64h2.292V4.224H9.528V2.22h2.808V.804H7.848V9.24h4.644l.06-1.416zm6.72-7.02h-6.396V2.22h2.352v7.02h1.68V2.22h2.304l.06-1.416zm4.051 4.02l.14-.032c.375-.104 1.341-.512 1.341-1.972 0-.732-.288-1.308-.84-1.656-.392-.246-.868-.346-1.885-.359L20.1.804V9.24h1.728c1.068 0 1.62-.084 2.1-.3.78-.36 1.188-1.116 1.188-2.028 0-1.989-1.67-2.084-1.793-2.088zm.305-1.812c0 1.308-.996 1.44-1.68 1.44h-.696V1.668h.792c.888 0 1.584.192 1.584 1.344zm.312 3.792c0 1.32-.816 1.572-1.752 1.572h-.936v-3.06h.852c.828 0 1.836.12 1.836 1.488zm5.448 2.484l1.068-.096-.001-4.421c-.016-.8-.196-1.819-2.039-1.819-1.32 0-1.824.48-1.824.48v.96l.052-.056c.152-.152.638-.556 1.496-.556 1.2 0 1.212.696 1.212 1.164v.492l-1.062.054c-.998.067-2.31.309-2.31 1.998 0 .936.516 1.836 1.764 1.836 1.272 0 1.644-.84 1.644-.84v.804zm-.024-1.968c0 .648-.516 1.128-1.2 1.128-.864 0-1.068-.576-1.068-1.02 0-.948.66-1.128 1.548-1.2l.72-.06V7.32zm6.42 1.92H36.9V5.244c0-.504-.012-1.296-.588-1.824-.3-.276-.744-.48-1.392-.48-1.296 0-1.752.864-1.752.864v-.768h-1.104V9.24h1.128V5.052c0-.852.744-1.164 1.308-1.164 1.26 0 1.284.9 1.284 1.608V9.24zm7.344-6.204h-1.26l-2.256 2.772V0l-1.128.168V9.24h1.128V6l2.16 3.24h1.344l-2.34-3.432 2.352-2.772zM45.132.924c0-.384-.264-.624-.672-.624-.36 0-.672.204-.672.66 0 .372.264.612.672.612.36 0 .672-.192.672-.648zm-.108 8.316V3.036h-1.128V9.24h1.128zm5.364 0h1.116V5.244c0-.504-.012-1.296-.588-1.824-.3-.276-.744-.48-1.392-.48-1.296 0-1.752.864-1.752.864v-.768h-1.104V9.24h1.128V5.052c0-.852.744-1.164 1.308-1.164 1.26 0 1.284.9 1.284 1.608V9.24zm7.344.024V3.036H56.64v.372l-.051-.049c-.138-.12-.556-.419-1.305-.419-1.212 0-2.58.66-2.58 3.324 0 1.68.732 3.036 2.316 3.036 1.152 0 1.596-.816 1.596-.816v.924c0 .36-.024.84-.276 1.164-.324.444-.9.576-1.5.576-1.2 0-1.836-.636-1.836-.636l.06 1.02.088.06c.207.125.79.408 1.844.408.912 0 1.8-.216 2.352-.972.324-.432.384-.984.384-1.764zM56.616 7.2c0 .732-.516 1.152-1.26 1.152-.828 0-1.512-.432-1.512-2.232 0-1.536.528-2.316 1.632-2.316.78 0 1.14.42 1.14.42V7.2z"></path>
<svg class="frb-logo-amazon-pay" role="img" aria-labelledby="frb-logo-amazon-pay-title"
width="80" height="24" viewBox="0 0 80 24" xmlns="http://www.w3.org/2000/svg">
</svg>
<title id="frb-logo-amazon-pay-title">{{{FR2015_translations,pm-amazon}}}</title>
<svg class="frb-pm-logo-upi" xmlns="http://www.w3.org/2000/svg" width="36" height="20" viewBox="0 0 36 13">
<g fill-rule="nonzero" fill="none">
<g fill="none" fill-rule="nonzero">
<path
<g fill="#3D3D3C">
d="M17.33 9.035c.278.07.56.125.82.26.655.349 1.01.895 1.097 1.63.03.27.038.542.038.814 0 1.896-.004 3.793-.007 5.689 0 .31-.097.407-.404.407H17.5c-.275 0-.38-.104-.38-.38v-5.08c0-.167-.003-.334-.027-.504-.094-.675-.675-1.01-1.305-.738-.46.195-.63.585-.686 1.051a7.11 7.11 0 0 0-.038.818v4.42c0 .32-.094.417-.41.417h-1.358c-.289 0-.386-.101-.386-.387 0-1.61 0-3.225.003-4.837 0-.31-.013-.612-.104-.911-.122-.4-.376-.623-.745-.65-.497-.036-.814.128-1.002.521-.16.33-.198.689-.202 1.05-.007 1.591-.007 3.178-.007 4.768 0 .359-.083.446-.435.446h-1.34c-.274 0-.379-.105-.379-.376V9.599c0-.293.094-.39.38-.39H10.4c.244 0 .348.108.352.348 0 .316 0 .633.024.957.062-.133.122-.268.195-.394.323-.58.804-.946 1.468-1.047.025-.003.045-.007.052-.035h.696c.007.007.014.025.021.025.752.097 1.222.556 1.552 1.2.038.077.08.157.132.254a5.77 5.77 0 0 1 .074-.163c.295-.627.775-1.04 1.444-1.229.097-.028.205-.02.292-.083.209-.007.417-.007.626-.007zM4.28 9.035c.209.08.435.08.65.139.384.104.746.25 1.066.487.584.435.824 1.044.86 1.744.051 1.113.01 2.223.02 3.337 0 .114 0 .233.004.348.01.344.11.657.302.946.06.087.119.17.181.254.268.366.261.418-.083.71-.317.271-.63.546-.947.818-.223.195-.355.195-.574.003a3.175 3.175 0 0 1-.672-.79c-.076-.128-.121-.153-.243-.031-.425.431-.901.786-1.503.919-.56.125-1.128.153-1.688 0-.93-.254-1.42-.902-1.583-1.827-.007-.038.014-.084-.039-.105v-.835c.049-.02.032-.07.039-.104.1-.574.344-1.075.769-1.483.55-.525 1.238-.748 1.966-.883a17.19 17.19 0 0 1 1.687-.21c.126-.01.185-.04.174-.184-.014-.191 0-.382-.01-.574-.024-.508-.254-.828-.686-.96a1.376 1.376 0 0 0-1.06.104c-.314.16-.495.421-.582.762-.056.226-.15.317-.317.303a51.272 51.272 0 0 1-1.45-.153c-.213-.024-.297-.16-.255-.372.045-.234.115-.46.216-.676.39-.824 1.075-1.273 1.924-1.52.258-.077.533-.077.787-.174.351.007.7.007 1.047.007zm.386 5.317c0-.223-.003-.372 0-.526.004-.08-.02-.11-.107-.107a4.925 4.925 0 0 0-.933.09c-.919.202-1.364.766-1.288 1.646.032.386.167.73.554.898.393.17.758.08 1.092-.17.178-.136.307-.314.414-.509.237-.435.275-.908.268-1.322zM24.88 9.035c.223.049.45.087.668.142.453.115.874.303 1.229.62.532.48.696 1.11.706 1.788.014 1.062.021 2.123.004 3.184-.01.585.139 1.097.511 1.545.049.056.09.122.126.188.07.14.059.265-.07.373-.376.32-.745.643-1.12.967-.206.174-.342.167-.55-.01a3.517 3.517 0 0 1-.703-.835c-.063-.101-.101-.105-.188-.021-.435.438-.912.81-1.531.946-.651.14-1.302.17-1.935-.076-.793-.31-1.214-.923-1.333-1.744-.153-1.047.084-1.97.926-2.676.466-.39 1.023-.577 1.607-.7.613-.128 1.236-.19 1.859-.243.15-.014.219-.052.202-.215-.018-.185-.01-.37-.018-.557-.042-.87-.717-1.076-1.294-.989-.536.08-.895.376-1.034.92-.066.253-.15.305-.414.281-.445-.045-.887-.09-1.33-.143-.232-.027-.32-.17-.27-.407.257-1.169 1.019-1.844 2.136-2.157.275-.077.56-.119.839-.178.327-.003.654-.003.977-.003zm.404 5.296c0-.157-.003-.313 0-.47.004-.097-.017-.146-.132-.142-.296.01-.588.027-.88.083-.958.188-1.41.783-1.312 1.723.08.772.803 1.148 1.478.762.254-.147.435-.362.575-.613.23-.417.268-.877.271-1.343zM48.89 9.035c.178.059.37.073.547.142.766.3 1.159.884 1.302 1.667.07.383.1.77.1 1.159.004 1.827.004 3.654.004 5.48 0 .24-.108.349-.351.352-.488.004-.975.004-1.462 0-.233 0-.344-.118-.344-.358V12.57c0-.278-.021-.557-.094-.824-.101-.376-.31-.648-.717-.707-.418-.062-.738.105-.968.446-.24.354-.327.769-.34 1.186-.05 1.496-.011 2.993-.022 4.49 0 .114.004.232 0 .347-.007.212-.114.327-.323.33-.505.008-1.01.008-1.514 0-.216-.003-.313-.121-.313-.368v-2.906c0-1.646 0-3.292-.004-4.941 0-.327.084-.41.408-.41h1.27c.26 0 .358.097.358.354v1.086c.077-.021.077-.09.098-.136.118-.264.257-.518.438-.748a1.859 1.859 0 0 1 1.187-.692c.03-.007.073.007.087-.035.212-.007.435-.007.654-.007zM40.017 9.035c.126.062.265.055.397.087 1.086.254 1.84.932 2.269 1.928.706 1.635.748 3.302-.004 4.934-.494 1.068-1.322 1.768-2.515 1.976a3.242 3.242 0 0 1-3.428-1.652c-.49-.895-.665-1.855-.661-2.86.007-.94.17-1.845.63-2.677.536-.967 1.336-1.566 2.45-1.705.024-.003.045-.007.055-.031h.807zm-1.597 4.363c0 .314-.017.627.004.94.034.49.1.981.33 1.427.174.337.432.56.825.574.4.01.703-.164.915-.501.122-.192.198-.404.25-.627.182-.8.157-1.61.119-2.422-.024-.48-.08-.956-.247-1.416-.16-.442-.473-.671-.943-.689-.432-.017-.741.181-.95.553a1.894 1.894 0 0 0-.174.435c-.153.564-.15 1.145-.129 1.726z"
<path d="M.302 10.868H.57L.319 11.91c-.038.153-.03.272.021.348.051.077.145.115.285.115.136 0 .25-.038.34-.115.09-.076.149-.195.187-.348l.25-1.042h.273l-.255 1.067c-.056.23-.153.404-.298.519-.14.115-.327.174-.557.174-.23 0-.386-.055-.471-.17-.085-.115-.103-.289-.047-.518l.255-1.072zM1.636 12.581l.425-1.78.808 1.045c.021.03.043.06.064.094l.068.114.285-1.186h.25l-.425 1.777-.824-1.067-.064-.089a.458.458 0 0 1-.051-.102l-.285 1.19h-.25v.004zM3.515 12.581l.408-1.713h.272l-.408 1.713zM4.174 12.581l.408-1.713h.93l-.054.238h-.66l-.101.426h.659l-.06.242h-.659l-.191.803h-.272zM5.407 12.581l.408-1.713h.272l-.408 1.713zM6.065 12.581l.408-1.713h.931l-.055.238H6.69l-.102.43h.66l-.06.242h-.66l-.131.553h.659l-.06.25zM7.31 12.581l.409-1.713h.365c.238 0 .404.013.493.039.09.025.166.063.226.123a.54.54 0 0 1 .148.289c.022.119.013.255-.02.404a1.329 1.329 0 0 1-.17.404.986.986 0 0 1-.57.412 1.896 1.896 0 0 1-.442.038H7.31v.004zm.332-.255h.23c.123 0 .22-.008.289-.025a.554.554 0 0 0 .183-.085.692.692 0 0 0 .191-.208.934.934 0 0 0 .115-.29.758.758 0 0 0 .021-.284.391.391 0 0 0-.094-.208.287.287 0 0 0-.148-.086 1.267 1.267 0 0 0-.302-.025H7.93l-.289 1.211zM10.18 11.812l-.183.77h-.255l.408-1.714h.412c.124 0 .209.009.264.022a.26.26 0 0 1 .132.068.283.283 0 0 1 .085.161.562.562 0 0 1-.009.221.711.711 0 0 1-.098.226.583.583 0 0 1-.161.161.568.568 0 0 1-.166.068c-.06.013-.153.021-.272.021h-.157v-.004zm.072-.23h.068c.149 0 .255-.016.315-.05s.097-.094.119-.179c.021-.09.008-.157-.034-.191-.047-.039-.14-.056-.28-.056h-.069l-.119.477zM11.957 12.581l-.085-.442h-.663l-.298.442h-.285l1.233-1.78.382 1.78h-.284zm-.587-.675h.463l-.076-.391a.523.523 0 0 1-.009-.085c-.004-.034-.004-.068-.004-.107a.835.835 0 0 1-.055.107.834.834 0 0 1-.051.089l-.268.387zM12.632 12.581l.187-.782-.34-.926h.285l.213.582c.004.017.008.034.017.06.008.025.012.05.021.076l.051-.076a.944.944 0 0 1 .051-.068l.497-.574h.272l-.795.922-.187.782h-.272v.004zM15.22 11.736a1.2 1.2 0 0 1 .014-.111l.012-.123c-.017.038-.034.076-.055.119a.934.934 0 0 1-.076.119l-.655.914-.212-.931a.895.895 0 0 1-.03-.217c-.009.034-.021.072-.034.115a.952.952 0 0 1-.051.123l-.383.842h-.25l.82-1.786.234 1.08a.756.756 0 0 1 .012.085l.022.149c.03-.051.068-.11.119-.187.012-.021.025-.034.03-.047l.739-1.08-.026 1.786h-.25l.02-.85zM15.671 12.581l.409-1.713h.93l-.055.238h-.659l-.102.43h.66l-.06.242h-.66l-.131.553h.659l-.06.25zM16.913 12.581l.425-1.78.807 1.045c.022.03.043.06.064.094l.068.114.285-1.186h.25l-.424 1.777-.825-1.067-.064-.089a.458.458 0 0 1-.05-.102l-.286 1.19h-.25v.004zM19.68 11.102l-.353 1.475h-.272l.353-1.475h-.442l.055-.238h1.156l-.055.238zM19.964 12.237l.243-.102c.004.077.025.136.072.174.047.039.11.06.196.06a.323.323 0 0 0 .323-.25c.025-.103-.034-.192-.179-.269-.021-.012-.034-.02-.047-.025-.161-.094-.263-.174-.306-.251a.365.365 0 0 1-.025-.272.592.592 0 0 1 .22-.34.641.641 0 0 1 .396-.132c.123 0 .221.026.293.072.073.047.11.12.124.209l-.238.11a.256.256 0 0 0-.081-.119.207.207 0 0 0-.128-.038.307.307 0 0 0-.187.06.27.27 0 0 0-.102.157c-.025.102.047.2.213.289a.244.244 0 0 0 .03.017c.144.076.242.153.284.23a.382.382 0 0 1 .026.28.675.675 0 0 1-.68.531.48.48 0 0 1-.328-.102c-.085-.068-.123-.166-.119-.289zM21.966 12.581l.408-1.713h.273l-.409 1.713zM22.63 12.581l.425-1.78.807 1.045c.021.03.043.06.064.094l.068.114.285-1.186h.25l-.425 1.777-.824-1.067-.064-.089a.458.458 0 0 1-.05-.102l-.286 1.19h-.25v.004zM25.397 11.102l-.353 1.475h-.272l.353-1.475h-.442l.055-.238h1.156l-.055.238zM25.69 12.581l.408-1.713h.935l-.055.238h-.66l-.101.43h.659l-.06.242h-.659l-.131.553h.658l-.059.25zM27.369 11.812l-.183.765h-.255l.408-1.713h.378c.11 0 .196.009.251.021.06.013.106.039.14.073a.293.293 0 0 1 .081.161.543.543 0 0 1-.008.217.626.626 0 0 1-.175.323.578.578 0 0 1-.318.14l.386.778h-.306l-.37-.765h-.03zm.068-.217h.05c.145 0 .243-.017.298-.05.056-.035.094-.094.115-.183.021-.094.013-.162-.03-.2-.042-.039-.131-.06-.267-.06h-.051l-.115.493zM28.24 12.581l.408-1.713h.931l-.055.238h-.659l-.102.426h.659l-.06.242h-.659l-.19.803h-.273zM30.484 12.581l-.085-.442h-.663l-.297.442h-.285l1.233-1.78.382 1.78h-.285zm-.59-.675h.463l-.077-.391a.523.523 0 0 1-.008-.085c-.004-.034-.004-.068-.004-.107a.835.835 0 0 1-.056.107.834.834 0 0 1-.05.089l-.268.387zM32.537 11.285a.627.627 0 0 0-.468-.2.746.746 0 0 0-.488.179.848.848 0 0 0-.285.467c-.042.183-.025.336.06.46.08.118.208.178.378.178a.797.797 0 0 0 .293-.055c.098-.034.196-.09.298-.162l-.077.315a.94.94 0 0 1-.267.119 1.078 1.078 0 0 1-.29.038.851.851 0 0 1-.34-.064.607.607 0 0 1-.361-.48.862.862 0 0 1 .021-.357 1.175 1.175 0 0 1 .409-.642 1.086 1.086 0 0 1 .692-.255.713.713 0 0 1 .497.174l-.072.285zM32.563 12.581l.408-1.713h.93l-.054.238h-.66l-.101.43h.659l-.06.242h-.659l-.132.553h.66l-.06.25z"></path>
fill="#343F48" />
</g>
<path
<g fill="#70706E">
d="M19.626 24.346c-.188-.07-.386-.045-.578-.06a19.687 19.687 0 0 1-9.18-3.058 20.499 20.499 0 0 1-2.543-1.935.514.514 0 0 1-.094-.1c-.066-.091-.09-.189-.02-.29.069-.1.177-.114.281-.08.087.028.167.077.247.122a26.22 26.22 0 0 0 6.994 2.732c1.632.383 3.289.616 4.966.692 3.918.181 7.676-.515 11.299-2 .1-.042.202-.091.313-.095.184-.006.351.084.414.23.066.15.031.324-.129.449-.23.177-.466.345-.71.501-1.304.846-2.714 1.469-4.196 1.935a20.6 20.6 0 0 1-5.008.922c-.038.003-.083-.017-.107.035h-1.95z"
<path d="M27.615 9.377H25.75L28.342.013h1.866zM26.646.306c-.127-.178-.327-.268-.6-.268H15.796l-.506 1.836h9.326l-.545 1.96h-7.46V3.83h-1.865l-1.547 5.59h1.866L16.1 5.67h8.386c.264 0 .51-.09.74-.268.23-.178.382-.4.454-.663L26.718.99c.081-.28.056-.505-.072-.684zM12.11 8.79a.86.86 0 0 1-.825.63H1.666c-.263 0-.459-.09-.586-.269-.128-.178-.158-.4-.081-.663L3.345.038h1.866l-2.095 7.55h7.463l2.096-7.55h1.866L12.11 8.79z"></path>
fill="#FE9901" />
</g>
<path
<path fill="#098041" d="M33.43.03l2.359 4.692-4.96 4.693z"></path>
<path fill="#E97626" d="M31.772.03l2.36 4.692-4.965 4.693z"></path>
d="M56.72 10.176c.192-.136.37-.282.564-.403 1.05-.662 2.175-.884 3.368-.484.989.33 1.605 1.061 1.939 2.022.49 1.423.49 2.86-.032 4.273-.435 1.18-1.245 1.994-2.516 2.23-1.127.21-2.164-.038-3.065-.772-.045-.035-.087-.07-.16-.126v3.742c0 .368-.077.441-.453.445-.268 0-.532.003-.8 0-.282-.004-.38-.098-.38-.376V9.713c0-.271.098-.365.37-.365.233 0 .462-.004.696 0 .212.003.32.094.361.3.021.09.025.184.05.274.027.084.006.174.058.254zm.105 3.296v2.174c0 .07-.007.13.066.181.633.453 1.322.738 2.109.738 1.023 0 1.712-.445 2.025-1.399a5.297 5.297 0 0 0-.01-3.379c-.303-.908-.947-1.336-1.904-1.36-.8-.021-1.514.226-2.168.668-.087.059-.122.118-.118.223.003.716 0 1.433 0 2.154zM32.397 10.917h-2.614c-.292 0-.379-.09-.379-.386V9.54c0-.25.101-.358.345-.358 1.687-.004 3.375-.004 5.063 0 .247 0 .348.1.351.348.004.289 0 .581.004.87.003.23-.126.407-.247.581-.519.748-1.044 1.49-1.566 2.234-.411.588-.825 1.176-1.26 1.796h.296c.898.007 1.76.17 2.568.58.26.133.372.328.365.613-.007.348 0 .696-.003 1.044-.004.317-.185.432-.467.3-1.764-.832-3.528-.836-5.292.006-.265.126-.45.021-.453-.275-.007-.424 0-.845.004-1.27.003-.282.1-.529.264-.758.968-1.382 1.932-2.767 2.895-4.148.039-.049.073-.105.126-.185zM69.4 16.847a4.976 4.976 0 0 1-.876.591c-.905.46-1.852.64-2.84.331-.905-.285-1.416-.926-1.552-1.862-.094-.643-.02-1.263.341-1.82.453-.696 1.128-1.044 1.921-1.186.919-.167 1.823-.042 2.721.153.223.049.223.052.223-.174-.004-.376.01-.755-.014-1.131-.06-.853-.46-1.253-1.308-1.322-1.003-.084-1.973.083-2.93.372-.33.101-.428.035-.432-.306 0-.14.004-.279 0-.418-.007-.226.098-.365.303-.452.466-.198.953-.32 1.451-.4.793-.129 1.59-.178 2.387-.042.741.125 1.392.404 1.775 1.107.209.382.306.803.306 1.235.01 1.949.007 3.897.007 5.842 0 .24-.097.338-.338.341-.226.004-.452.004-.678 0-.237-.003-.338-.087-.38-.316-.03-.17-.052-.338-.086-.543zm-.062-1.844c0-.244-.004-.488 0-.731 0-.084-.024-.118-.111-.14-.717-.149-1.438-.246-2.172-.156-.925.111-1.381.654-1.322 1.576.038.571.372.968.926 1.086.174.038.354.049.535.035.742-.052 1.403-.32 2.008-.741.094-.066.143-.133.136-.254-.007-.223 0-.45 0-.675zM76.05 16.175c.547-1.566 1.083-3.107 1.619-4.645.198-.574.396-1.149.598-1.72.146-.417.216-.462.658-.462.271 0 .546-.004.817 0 .202.003.272.087.23.289-.042.205-.136.393-.212.588a4131.2 4131.2 0 0 1-3.588 9.12 4.17 4.17 0 0 1-.706 1.208c-.407.47-.93.696-1.538.73-.39.021-.776.008-1.155-.1-.265-.073-.352-.181-.359-.456a8.131 8.131 0 0 1 0-.505c.007-.215.094-.296.31-.268.271.035.54.063.814.046.466-.032.828-.23 1.068-.64.282-.477.425-1.013.63-1.521.032-.073-.01-.136-.038-.199-1.037-2.56-2.078-5.122-3.114-7.683a2.001 2.001 0 0 1-.115-.345c-.035-.167.038-.26.205-.264.372-.007.741-.004 1.114 0 .236 0 .344.157.417.355.22.602.439 1.207.658 1.81.54 1.489 1.075 2.982 1.61 4.47.018.057.043.109.077.192z"
fill="#343F48" />
</g>
<path
</svg>
<svg class="frb-pm-logo-paytm" xmlns="http://www.w3.org/2000/svg" width="43" height="20" viewBox="0 0 43 14">
d="M31.36 19.328c-.661 0-1.32.083-1.973.153-.108.01-.237.045-.29-.083-.055-.14.05-.23.15-.303a4.104 4.104 0 0 1 1.504-.647c.94-.213 1.879-.247 2.822-.021.045.01.087.028.132.038.292.07.418.261.425.553a4.896 4.896 0 0 1-.213 1.49c-.247.866-.626 1.666-1.245 2.338a2.283 2.283 0 0 1-.373.338c-.083.059-.184.1-.275.03-.097-.072-.059-.177-.024-.27.25-.64.505-1.281.689-1.946.097-.358.191-.717.164-1.092-.018-.268-.108-.383-.362-.467-.366-.121-.749-.111-1.131-.111z"
fill="#FE9901" />
<g fill="none">
<path fill="#00B9F2" d="M28.3859199,0.0527409262 C28.5999216,0.0527409262 28.7734043,0.226223581 28.7734043,0.440225282 L28.7734043,0.440225282 L28.7734043,2.2210388 L29.8685857,2.2210388 L29.8696621,2.2210388 C30.1033676,2.22133576 30.2926685,2.41087499 30.2926685,2.64458073 L30.2926685,2.64458073 L30.2926685,4.56262829 C30.2929516,4.67505177 30.2485287,4.7829764 30.1691846,4.86262334 C30.0898404,4.94227028 29.9820858,4.98710407 29.8696621,4.98724656 L29.8696621,4.98724656 L28.7965457,4.98724656 L28.7965457,13.1093492 C28.7965459,13.3406771 28.609175,13.5282888 28.3778473,13.5285857 L28.3778473,13.5285857 L26.4834793,13.5285857 C26.3724336,13.5284431 26.2659927,13.4841935 26.1875724,13.4055714 C26.1091521,13.3269493 26.0651763,13.2203949 26.0653191,13.1093492 L26.0653191,13.1093492 L26.0653191,4.98347935 L24.9098623,4.98347935 C24.7973893,4.98333671 24.6895795,4.93852011 24.61015,4.85888872 C24.5307204,4.77925732 24.4861776,4.67133414 24.4863197,4.55886108 L24.4863197,4.55886108 L24.4863197,2.64350438 C24.4865594,2.44574271 24.6237897,2.27454006 24.8167584,2.23126408 L24.8167584,2.23126408 L24.8350347,2.22730668 C24.859508,2.22259266 24.8843753,2.22013187 24.9093242,2.21996245 L24.9093242,2.21996245 L25.1245932,2.21996245 C27.3445557,2.07680851 27.0980726,0.393942428 28.3132666,0.0608135169 C28.3371922,0.0559423122 28.3615086,0.0532404885 28.3859199,0.0527409262 Z M35.9795369,2.11124729 C36.7590825,2.11029672 37.5050516,2.42844205 38.0439675,2.99170213 C38.5828833,2.42844205 39.3288524,2.11029672 40.108398,2.11124729 L40.108398,2.11124729 L40.1347685,2.11124729 C41.3512765,2.11124729 42.4349372,2.88005445 42.8369337,4.02822278 L42.8369337,4.02822278 L42.8369337,4.02768461 C42.9203504,4.26501877 42.9817028,4.49697121 42.9817028,5.04106383 L42.9817028,5.04106383 L42.9817028,13.0237797 C42.981845,13.1362033 42.937285,13.2440711 42.85784,13.3236171 C42.778395,13.403163 42.6705838,13.4478599 42.5581602,13.4478598 L42.5581602,13.4478598 L40.6428035,13.4478598 C40.4088007,13.4475629 40.2192614,13.2577827 40.2192616,13.0237797 L40.2192616,13.0237797 L40.2192616,7.35520651 L40.2138798,7.35520651 L40.2138798,5.60237797 C40.2237192,5.22300665 39.929314,4.90496313 39.5503129,4.88553191 L39.5503129,4.88553191 L39.1972716,4.88553191 C39.0719457,4.89519445 38.9509922,4.9358822 38.8453066,5.00392991 C38.6455519,5.13671553 38.5277466,5.36257683 38.5331665,5.60237797 L38.5331665,5.60237797 L38.5331665,13.0636045 C38.522843,13.2890909 38.3374979,13.4668611 38.1117772,13.4677722 L38.1117772,13.4677722 L36.1964205,13.4677722 C36.0839475,13.4676296 35.9761377,13.422813 35.8967082,13.3431816 C35.8172786,13.2635502 35.7727358,13.155627 35.7728786,13.0431539 L35.7728786,13.0431539 L35.7653442,12.7713767 L35.7653442,5.61206508 C35.7694618,5.39513008 35.6736115,5.18834722 35.5054068,5.05128911 C35.3893395,4.96035151 35.2488302,4.90602122 35.1017772,4.89521902 L35.1017772,4.89521902 L34.7481977,4.89521902 C34.3730269,4.92289531 34.0830732,5.23587617 34.0840926,5.61206508 L34.0840926,5.61206508 L34.0840926,13.0797497 C34.0563534,13.2890673 33.8781556,13.4456514 33.6670088,13.4462453 L33.6670088,13.4462453 L31.7511139,13.4462453 C31.6386409,13.4461027 31.530831,13.4012861 31.4514015,13.3216547 C31.371972,13.2420233 31.3274291,13.1341001 31.3275713,13.021627 L31.3275713,13.021627 L31.3275713,2.61821026 C31.3274291,2.5057372 31.371972,2.39781402 31.4514015,2.31818262 C31.530831,2.23855123 31.6386409,2.19373463 31.7511139,2.19359199 L31.7511139,2.19359199 L33.6670088,2.19359199 C33.8879107,2.19469685 34.0707664,2.36559662 34.0867835,2.5859199 L34.0867835,2.5859199 L34.0867835,2.80441802 C34.6055998,2.35656769 35.268329,2.1105039 35.9537046,2.11124729 L35.9537046,2.11124729 L35.9795369,2.11124729 Z"/>
</g>
<path fill="#002E6E" d="M18.5066834,2.2210388 C18.7403889,2.22133576 18.9296873,2.41087499 18.9296871,2.64458073 L18.9296871,2.64458073 L18.9296871,3.67033792 L18.9377597,3.67033792 L18.9377597,6.5979975 C18.9377597,6.84588281 19.1387104,7.04683354 19.3865957,7.04683354 L19.3865957,7.04683354 L20.1906258,7.04683354 C20.4353888,7.04657457 20.6348151,6.85026058 20.6389237,6.60553191 L20.6389237,6.60553191 L20.6389237,5.01684606 C20.6388934,4.98665689 20.6358284,4.95654722 20.6297747,4.92697121 L20.6297747,4.92697121 L20.6297747,3.67302879 L20.6373091,3.67302879 L20.6373091,2.64458073 C20.6373089,2.41087499 20.8266074,2.22133576 21.0603129,2.2210388 L21.0603129,2.2210388 L22.9778223,2.2210388 C23.211738,2.2210388 23.4013642,2.41066498 23.4013642,2.64458073 L23.4013642,2.64458073 L23.4013642,10.6579725 C23.4013642,12.3074718 22.225995,13.4828411 20.5759574,13.4828411 L20.5759574,13.4828411 L17.4416395,13.4828411 C17.2079338,13.4828411 17.0183946,13.2935428 17.0180976,13.0598373 L17.0180976,13.0598373 L17.0180976,11.1434043 C17.0183941,10.9096114 17.2078467,10.7201588 17.4416395,10.7198623 L17.4416395,10.7198623 L19.701965,10.7198623 L20.2455194,10.709637 L20.2778098,10.7042553 C20.5027153,10.6767391 20.6712782,10.4850099 20.669765,10.2584325 C20.6682517,10.0318551 20.4971429,9.84239459 20.2718899,9.81788486 C20.2498592,9.81374749 20.227555,9.81122927 20.2051564,9.81035044 L20.2051564,9.81035044 L18.9953442,9.81035044 C17.3453066,9.81035044 16.1699374,8.6355194 16.1699374,6.98602003 L16.1699374,6.98602003 L16.1699374,2.64458073 C16.1699374,2.41066498 16.3595636,2.2210388 16.5934793,2.2210388 L16.5934793,2.2210388 L18.5066834,2.2210388 Z M4.60245307,2.2210388 C6.13624531,2.2210388 7.20505632,3.28877347 7.20505632,4.82848561 L7.20505632,4.82848561 L7.20505632,7.53065081 C7.20505632,9.07090113 6.13624531,10.1343304 4.60245307,10.1343304 L4.60245307,10.1343304 L2.76997497,10.1343304 L2.76244055,13.0458448 C2.7625834,13.1582683 2.71802343,13.2661362 2.63857843,13.3456821 C2.55913342,13.4252281 2.45132223,13.4699249 2.33889862,13.4699249 L2.33889862,13.4699249 L0.386946183,13.4699249 C0.164472157,13.4560797 -0.00682400566,13.2681066 -2.38931054e-16,13.0453066 L-2.38931054e-16,13.0453066 L-2.38931054e-16,4.52387985 C-0.000196978652,4.52029689 -0.000196978652,4.51669935 1.29063427e-15,4.5131164 L1.29063427e-15,4.5131164 L1.29063427e-15,2.63650814 C-1.92326864e-07,2.40726076 0.185683983,2.22133575 0.414931164,2.2210388 L0.414931164,2.2210388 L4.60245307,2.2210388 Z M9.40632098,2.23210759 L9.41963705,2.23234043 L12.0792866,2.23234043 C14.2502753,2.23234043 15.1592491,3.34474343 15.1592491,5.10779725 L15.1592491,5.10779725 L15.1592491,12.3763579 C15.1592491,12.9575845 14.6522904,13.4290238 14.0290864,13.4290238 L14.0290864,13.4290238 L10.5546433,13.4290238 C8.90083855,13.4290238 7.87831039,12.3295369 7.87831039,10.7833667 L7.87831039,10.7833667 L7.87831039,8.55425532 C7.87831039,6.99947434 9.0655194,5.89191489 10.7338548,5.89191489 L10.7338548,5.89191489 L11.9851064,5.89191489 C12.1868935,5.86652923 12.3422484,5.70146466 12.3553692,5.49851064 L12.3553692,5.49851064 L12.3553692,5.25148936 C12.341008,5.0432314 12.1818582,4.87395182 11.9748811,4.84678348 L11.9748811,4.84678348 L9.44546934,4.84678348 C9.20447845,4.85495025 9.00241585,4.66637455 8.99394243,4.42539424 L8.99394243,4.42539424 L8.99394243,3.40286608 C8.99367786,3.39784662 8.99367786,3.39281671 8.99394243,3.38779725 L8.99394243,3.38779725 L8.99394243,2.62951189 C9.00212281,2.40242224 9.19252601,2.22477678 9.41963705,2.23234043 L9.40632098,2.23210759 Z M11.9435538,8.47113674 L11.9302128,8.47137672 L11.133179,8.47137672 C10.8932038,8.4634955 10.6918188,8.6507019 10.6821902,8.89061327 L10.6821902,8.89061327 L10.6821902,10.5304255 C10.690955,10.7712729 10.8928387,10.9596817 11.1337171,10.9518148 L11.1337171,10.9518148 L11.9323655,10.9518148 C12.1210313,10.9550777 12.2914949,10.8397134 12.3585982,10.6633542 L12.3585982,10.6633542 L12.3639549,10.6480177 C12.3690086,10.6325821 12.3731506,10.6168578 12.3763579,10.6009262 C12.3810802,10.5777151 12.3836029,10.5541104 12.3838924,10.5304255 L12.3838924,10.5304255 L12.3838924,10.2285106 L12.3817397,8.89276596 C12.3729749,8.65191854 12.1710912,8.46350982 11.9302128,8.47137672 L11.9435538,8.47113674 Z M3.98732165,4.99639549 L2.77212766,4.99639549 L2.77212766,7.36435544 L3.79465582,7.36435544 C3.79823891,7.36461576 3.80183618,7.36461576 3.80541927,7.36435544 L3.80541927,7.36435544 L3.98516896,7.36435544 C4.10425148,7.36449849 4.21849781,7.31725645 4.30270192,7.23305233 C4.38690604,7.14884827 4.43414805,7.0346019 4.43400501,6.9155194 L4.43400501,6.9155194 L4.43400501,5.73153942 L4.4361577,5.44523154 C4.4361577,5.19734624 4.23520695,4.99639549 3.98732165,4.99639549 L3.98732165,4.99639549 Z"/>
</svg>
</g>
</svg>
</button>
</button>
</li>
</li>


<li class="frb-pm-pp-usd" style="display: none;">
<button class="frb-btn frb-btn-logo"
onclick="$('.frb-methods .frb-btn').removeClass('active'); $(this).addClass('active'); frb.setMethod({ method:'paypal', skipValidation: true }); return false;">
<svg class="frb-logo-paypal-usd" role="img" aria-labelledby="frb-logo-paypal-usd-title"
width="105" height="24" viewBox="0 0 105 24" xmlns="http://www.w3.org/2000/svg">
<title id="frb-logo-paypal-usd-title">{{{FR2015_translations,pm-paypal}}} (USD)
</title>
<g fill="none" fill-rule="evenodd">
<path
d="M75.452 10.3c.44-.68 1.024-1.411 1.752-2.195h1.192l-.471.621a11.815 11.815 0 0 0-1.542 2.684 12.17 12.17 0 0 0-.604 2.007c-.24 1.13-.297 2.17-.172 3.12.074.563.26 1.283.56 2.163h-1.17l-.277-.538c-.185-.325-.353-.81-.504-1.452a7.683 7.683 0 0 1-.05-3.393c.214-1.013.643-2.018 1.286-3.016zm4.042-2.062h1.735l-1.07 5.023c-.118.562-.139.972-.061 1.231.11.458.514.688 1.208.688.692 0 1.189-.23 1.492-.688.188-.259.342-.669.46-1.23l1.07-5.024h1.735l-1.07 5.023c-.185.869-.464 1.545-.837 2.03-.691.886-1.744 1.33-3.16 1.33-1.416 0-2.282-.444-2.6-1.33-.166-.485-.157-1.161.028-2.03l1.07-5.023zm8.232 5.65c-.025.373.017.652.128.837.207.336.647.504 1.32.504.402 0 .739-.044 1.008-.133.514-.17.82-.486.915-.948.06-.27-.015-.478-.222-.626-.203-.144-.547-.272-1.03-.383l-.827-.194c-.81-.192-1.353-.4-1.63-.626-.47-.377-.619-.967-.449-1.769.155-.732.55-1.34 1.187-1.824.635-.484 1.469-.726 2.5-.726.861 0 1.547.228 2.057.685.51.456.687 1.119.532 1.987h-1.641c.078-.491-.06-.84-.416-1.048-.236-.136-.552-.205-.948-.205-.44 0-.81.089-1.111.266-.302.178-.485.425-.552.743-.063.292.02.51.25.654.144.097.474.21.992.339l1.336.338c.584.148 1.007.345 1.27.593.406.384.532.94.377 1.669-.16.746-.577 1.366-1.253 1.86-.677.493-1.536.74-2.578.74-1.065 0-1.85-.243-2.357-.73-.506-.485-.669-1.153-.487-2.003h1.63zm8.893-4.23l-1.13 5.333h1.574c.805 0 1.452-.397 1.94-1.192.266-.436.462-.955.588-1.558.177-.831.183-1.47.016-1.915-.166-.446-.637-.668-1.413-.668h-1.575zm3.393-1.242a2 2 0 0 1 1.17 1.037c.2.406.3.846.302 1.319.002.473-.042.924-.13 1.353-.233 1.086-.647 2.007-1.242 2.76-.806 1.017-1.826 1.525-3.06 1.525h-3.52l1.734-8.172h3.52c.504.008.912.067 1.226.178zm4.768 1.885c.218.998.22 2.003.005 3.016-.236 1.112-.733 2.243-1.49 3.393-.426.643-.801 1.127-1.126 1.452l-.505.538H100.5c.669-.88 1.16-1.6 1.475-2.162.528-.95.913-1.99 1.153-3.121a10.54 10.54 0 0 0 .25-2.007 7.927 7.927 0 0 0-.4-2.684l-.205-.62h1.192c.395.783.667 1.515.815 2.195z"
fill="#000" />
<g fill-rule="nonzero">
<path
d="M8.444 2.085H2.97a.763.763 0 0 0-.752.648L.006 16.891c-.044.279.17.53.451.53H3.07a.762.762 0 0 0 .751-.647l.597-3.819a.762.762 0 0 1 .75-.648h1.733c3.606 0 5.686-1.76 6.23-5.248.245-1.526.01-2.724-.698-3.564-.778-.922-2.158-1.41-3.99-1.41zm.631 5.171c-.3 1.981-1.8 1.981-3.25 1.981h-.826l.579-3.7a.457.457 0 0 1 .45-.388h.379c.988 0 1.92 0 2.402.569.288.339.376.842.266 1.538zM24.803 7.193h-2.62a.458.458 0 0 0-.451.388l-.116.74-.184-.269c-.567-.83-1.832-1.108-3.095-1.108-2.896 0-5.37 2.213-5.851 5.317-.25 1.548.105 3.029.976 4.061.799.95 1.941 1.345 3.301 1.345 2.334 0 3.628-1.513 3.628-1.513l-.117.734c-.044.281.17.533.45.533h2.36a.763.763 0 0 0 .752-.648l1.416-9.05a.457.457 0 0 0-.449-.53zm-3.653 5.145c-.253 1.51-1.441 2.525-2.957 2.525-.76 0-1.37-.246-1.76-.713-.387-.464-.534-1.123-.411-1.858.236-1.497 1.444-2.544 2.937-2.544.744 0 1.35.25 1.748.72.399.475.557 1.139.443 1.87zM38.761 7.193h-2.634a.761.761 0 0 0-.63.336l-3.632 5.398-1.54-5.187a.764.764 0 0 0-.73-.547h-2.587a.46.46 0 0 0-.433.608l2.9 8.588-2.726 3.884a.46.46 0 0 0 .372.727h2.63c.25 0 .483-.123.625-.33l8.76-12.755a.46.46 0 0 0-.375-.722"
fill="#283B82" />
<path
d="M47.48 2.085h-5.473a.762.762 0 0 0-.75.648l-2.214 14.158c-.044.279.17.53.45.53H42.3c.261 0 .485-.191.525-.453l.628-4.013a.762.762 0 0 1 .751-.648h1.732c3.606 0 5.686-1.76 6.23-5.248.246-1.526.01-2.724-.699-3.564-.777-.922-2.156-1.41-3.987-1.41zm.632 5.171c-.299 1.981-1.799 1.981-3.25 1.981h-.826l.58-3.7a.456.456 0 0 1 .45-.388h.379c.987 0 1.92 0 2.402.569.287.339.375.842.265 1.538zM63.84 7.193h-2.62a.455.455 0 0 0-.45.388l-.116.74-.184-.269c-.567-.83-1.832-1.108-3.094-1.108-2.897 0-5.37 2.213-5.851 5.317-.25 1.548.105 3.029.976 4.061.8.95 1.94 1.345 3.3 1.345 2.334 0 3.628-1.513 3.628-1.513l-.117.734c-.044.281.17.533.452.533h2.36a.762.762 0 0 0 .75-.648l1.417-9.05a.46.46 0 0 0-.452-.53zm-3.654 5.145c-.251 1.51-1.441 2.525-2.957 2.525-.76 0-1.37-.246-1.76-.713-.387-.464-.533-1.123-.41-1.858.237-1.497 1.444-2.544 2.936-2.544.744 0 1.35.25 1.748.72.4.475.56 1.139.443 1.87zM66.929 2.474L64.683 16.89c-.044.279.17.53.45.53h2.258a.761.761 0 0 0 .751-.647l2.215-14.157a.459.459 0 0 0-.45-.532H67.38a.458.458 0 0 0-.45.389"
fill="#469BDB" />
</g>
</g>
</svg>
</button>
</li>
</ul>
</ul>


Line 1,465: Line 1,438:
onclick="frb.updateFeeDisplay();">
onclick="frb.updateFeeDisplay();">
<label class="frb-checkbox-label" for="frb-ptf-checkbox">
<label class="frb-checkbox-label" for="frb-ptf-checkbox">
{{{FR2015_translations,generously-add}}}
<span class="frb-ptf-optional">(optional)</span> {{{FR2015_translations,generously-add}}}
</label>
</label>
</div>
</div>

Latest revision as of 20:27, 10 March 2021

<style> /* Hide when editing */ .action-edit .frb, .ve-activated .frb {

   display: none !important;

}

/* Hide when printed */ @media print {

   .frb {
       display: none !important;
   }

}

.frb {

   font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen-Sans", Ubuntu, Cantarell, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;

}

  1. centralNotice.collapsed .frb {
   display: none;

}

/* z-index override for #siteNotice now having .mw-body-content class [1] */

  1. siteNotice {
   z-index: auto;

}

/* z-index override for German Wikipedia */ .mw-body {

   z-index: auto;

}

  1. toc,

.toc {

   clear: left;

}

/* Box-sizing */ .frb, .frb *, .frb *:before, .frb *:after {

   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;

}

.frb button {

   background: transparent;
   border: 0;
   cursor: pointer;

}

.frb frb-amt {

   white-space: nowrap;

}

@media (prefers-reduced-motion: reduce) {

   .frb,
   .frb * {
       transition-duration: 0.01ms !important;
   }

}

/* Inline banner styles


*/

  1. frb-inline {
   display: table;
   position: relative;
   background: white;
   color: black;
   font-size: 14px;
   margin: 0 auto 38px;
   border: 5px solid #900;
   -webkit-transition: all .2s ease-in-out;
   -moz-transition: all .2s ease-in-out;
   -o-transition: all .2s ease-in-out;
   -ms-transition: all .2s ease-in-out;
   transition: all .2s ease-in-out;
   max-width: 944px;
   text-align: left;

}

body.rtl #frb-inline {

   text-align: right;

}

/* --- Top bar --- */

.frb-inline-topbar {

   width: 100%;
   padding: 6px 10px 9px 10px;
   text-align: center;
   background-color: #900;
   color: #fff;
   display: inline-block;
   z-index: 999;
   font-weight: 600;
   font-size: 16px;
   line-height: 1.125; /*18px @16px*/

}

/* --- Main content --- */

.frb-inline-main {

   padding: 14px 16px 16px;

}

.frb-inline-message {

   font-size: 16px;
   line-height: 1.5625; /*25px @16px*/
   display: block;

}

.frb-inline-message .frb-icon-info {

   margin-bottom: -2px;
   margin-right: 2px;

}

/* --- Form legends --- */ .frb-form {

   position: relative;

}

.frb-legend {

   margin: 0;
   padding: 6px 0 8px;
   width: 100%;
   text-align: center;
   font-size: 14px;
   line-height: 1.2142857143;
   /*17px @14px*/
   color: #54595d;
   font-weight: normal;
   text-transform: none;

}

.frb-form fieldset.frb-haserror .error-highlight {

   color: #d33;
   font-weight: 600;

}

  1. frb-inline ul {
   margin: 0;

}

.frb-form fieldset {

   width: 100%;
   margin: 12px auto 0;
   padding: 0;
   border: none;

}

/*less padding to use less vertical height*/ .frb-form .frb-methods {

   margin-top: 6px;

}

/* --- Common Button Styles --- */

/* TODO - fix to remove !important */ .frb-btn-wrapper {

   margin-left: -6px !important;
   width: calc(100% + 12px) !important;

} body.rtl .frb-btn-wrapper {

   margin-left: 0 !important;
   margin-right: -6px !important;

}

.frb-optin ul.frb-btn-wrapper,

  1. frb-inline ul.frb-btn-second-wrapper {
   margin-top: 12px;

}

.frb .frb-btn,

  1. frb-amt-other-label {
   display: block;
   min-height: 48px;
   margin: 0 auto;
   padding: 15px 6px;
   background-color: #f8f9fa;
   color: #222;
   font-size: 16px;
   border: 1px solid #9aa0a7;
   border-radius: 2px;
   outline: 0;
   text-align: center;
   line-height: 1; /*16px @16px*/
   cursor: pointer;
   font-weight: 600;
   transition: background 100ms, color 100ms, border-color 100ms, box-shadow 100ms;

}

.frb .frb-btn:hover,

  1. frb-amt-other-label:hover {
   background-color: #fff;
   color: #444;
   border-color: #a2a9b1;

}

.frb .frb-btn:active,

  1. frb-amt-other-label:active {
   background-color: #d9d9d9;
   color: #000;
   border-color: #7d8389;

}

.frb-btn svg {

   max-width: 100%;

}

.frb-logo-paypal-usd {

   margin-bottom: -6px;

}

.frb-form input[type="radio"]:checked+.frb-btn, .frb-form .frb-btn.checked {

   background-color: #2a4b8d;
   color: #fff;
   border-color: #2a4b8d;

}

.frb-btn.active .frb-logo-paypal path, .frb-btn.active .frb-logo-paypal-usd path, .frb-btn.active .frb-logo-amazon-pay path {

   fill: #fff;

}

.frb-form input[type="radio"]:checked+#frb-amt-other-label #frb-amt-other-input {

   border: none;
   color: #fff;
   box-shadow: 0 1px 0 0 #fff;

}

.frb-btn:focus, .frb-submit:focus, .frb-input:focus,

  1. frb-amt-other-label:focus {
   outline: 0;
   border-color: #36c;
   box-shadow: inset 0 0 0 1px #36c;

}

.frb-form input[type=radio]:focus+.frb-btn, .frb-form input[type=radio]:focus+#frb-amt-other-label, .frb-form input[type=radio]:checked+.frb-btn:focus, .frb-form input[type=radio]:checked+#frb-amt-other-label:focus, .frb-submit:focus {

   box-shadow: inset 0 0 0 2px #36c, inset 0 0 0 3px #fff;
   border-color: #36c !important;

}

.frb-form .frb-btn.active, .frb-form input[type="radio"]:checked+.frb-btn, .frb-form input[type="radio"]:checked+#frb-amt-other-label, .frb-form .frb-btn.checked {

   background-color: #2a4b8d;
   color: #fff;
   border-color: #2a4b8d;

}

.frb-form input[type="radio"]:checked+#frb-amt-other-label #frb-amt-other-input {

   background-color: transparent;
   color: #fff;

}

/* Blue buttons */ .frb-methods .frb-btn,

  1. frb-nag .frb-btn {
   color: #36c;

}

.frb-methods .frb-btn:active,

  1. frb-nag .frb-btn:active {
   color: #2a4b8d;

}

/* Submit/Continue buttons (blue background) */ .frb .frb-submit {

   width: 100%;
   display: block;
   margin-top: 8px;
   padding: 16px 2px;
   color: #36c;
   background-color: #f8f9fa;
   border: 1px solid #a2a9b1;
   cursor: default;
   border-radius: 2px;
   font-size: 16px;
   font-weight: 600;
   line-height: 1;
   transition: background 100ms, color 100ms, border-color 100ms, box-shadow 100ms;

}

.frb-submit.active {

   color: #fff;
   background-color: #36c;
   border-color: #36c;
   cursor: pointer;

} .frb-submit.active:hover {

   background-color: #447ff5;
   border-color: #447ff5;

}

.frb-inline-rml-form .frb-submit {

   padding: 9px 2px;
   font-size: 14px;

}

/* Hide radio buttons. Based on http://jqueryui.com/button/#radio */ .frb-frequency li input[type="radio"], .frb-amounts li input[type="radio"], .frb-optin li input[type="radio"], .frb-form input[type="checkbox"] {

   position: absolute;
   overflow: hidden;
   height: 1px;
   width: 1px;
   clip: rect(0 0 0 0);
   border: 0;
   margin: -1px;
   padding: 0;

}

/* --- Buttons layout --- */

.frb-form fieldset ul {

   display: table;
   table-layout: fixed;
   width: 100%;

}

.frb-form fieldset ul li {

   display: table-cell;
   vertical-align: top;
   padding: 0 6px;

}

.frb-amounts li label {

   font-size: 16px;
   line-height: 1;

}

/* --- Frequency buttons appearance --- */

.frb-frequency li {

   display: table-cell;
   padding: 0 7px 0 0;
   vertical-align: top;

}

.frb-frequency label {

   display: block;
   width: 100%;

}

.frb-frequency label, .frb-amounts li label {

   font-size: 16px;
   line-height: 1;

}

/* Disabled states */

  1. frb-frequency-monthly:disabled + label,

.form-monthly .no-monthly button {

   opacity: 0.4 !important;
   cursor: default;

}

/* --- Other amount --- */

  1. frb-amt-other-label {
   position: relative;
   padding: 18px 8px 8px;

}

  1. frb-amt-other-input {
   margin: 0;
   background: transparent;
   border: none;
   width: 100%;
   font-size: 16px;
   text-align: center;
   direction: ltr;
   -moz-appearance: textfield;
   /* remove number spinner in Firefox */
   box-shadow: 0 1px 0 0 #444;

}

  1. frb-amt-other-input:focus {
   outline: none;

}

.frb-amt-other-span {

   position: absolute;
   top: 5px;
   font-size: 12px;
   width: 100%;
   line-height: 1;
   left: 0;
   text-align: center;

}

/* Remove number spinner Safari and Chrome */

  1. frb-amt-other-input::-webkit-inner-spin-button,
  2. frb-amt-other-input::-webkit-outer-spin-button {
   -webkit-appearance: none;
   margin: 0;

}

/* --- Transaction fees options --- */

/* Checkbox styles */

.frb-checkbox-label {

   position: relative;
   display: inline-block;
   margin-top: 16px;
   width: 100%;
   padding-left: 26px;
   padding-top: 1px;
   cursor: pointer;
   font-size: 14px;
   font-weight: 600;
   line-height: 1.3571428571; /*19px @14px*/
   color: #000;

} body.rtl .frb-checkbox-label {

   padding-left: 0;
   padding-right: 26px;

}

/* Outer-box */ .frb-checkbox-label::before {

   position: absolute;
   content: "";
   top: 3px;
   left: 0;
   display: inline-block;
   height: 17px;
   width: 17px;
   border-radius: 2px;
   border: 1px solid #a2a9b1;
   background-color: #f8f9fa;

} body.rtl .frb-checkbox-label::before {

   left: auto;
   right: 0;

}

/* Checkmark */ .frb-checkbox-label::after {

   position: absolute;
   content: "";
   top: 8px;
   left: 4px;
   display: inline-block;
   height: 5px;
   width: 9px;
   border-left: 2px solid;
   border-bottom: 2px solid;
   transform: rotate(-45deg);
   border-color: #fff;

} body.rtl .frb-checkbox-label::after {

   left: auto;
   right: 4px;

}

.frb-ptf-total {

   font-weight: bold;

} .frb-ptf-fee {

   white-space: nowrap;

} .frb-ptf-optional {

   color: #54595d;
   font-weight: normal;

}

/*Hide the checkmark by default*/ .frb-checkbox + .frb-checkbox-label::after {

   content: none;

} /*Unhide the checkmark on the checked state*/ .frb-checkbox:checked + .frb-checkbox-label::after {

   content: "";

}

.frb-checkbox:checked + .frb-checkbox-label:before {

   background-color: #36c;
   border-color: #36c;

}

/*Focus styles*/ /*Unchecked*/ .frb-checkbox:focus + .frb-checkbox-label::before {

   border-color: #36c;
   box-shadow: inset 0 0 0 1px #36c;

}

/*Checked*/ .frb-checkbox:focus:checked + .frb-checkbox-label::before {

   box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff;

}

/*Hover*/ .frb-checkbox:hover + .frb-checkbox-label::before {

   background-color: #eaecf0;

}

.frb-checkbox:checked:hover + .frb-checkbox-label:before {

   background-color: #447ff5;
   border-color: #447ff5;

}

/* --- Payment method buttons appearance --- */

.frb-methods .frb-btn {

   width: 100%;
   font-size: 16px;
   font-weight: bold;
   padding: 0 6px;

}

.frb-methods .frb-btn img {

   display: block;
   margin: 0 auto;
   max-height: 16px;
   max-width: 100%;

}

/* --- Credit card logos --- */

.frb-pm-cc svg {

   display: none;
   width: 20%;
   min-width: 30px;
   max-width: 40px;
   max-height: 24px;
   margin: 0 3px;
   border-radius: 2px;
   box-shadow: 0 1px 1px #aaa;

}

.frb-pm-bt-temp svg {

   display: inline-block;
   min-width: 50px;

}

@media all and (min-width: 1390px) {

   .frb-pm-cc svg,
   .frb-pm-bt-temp svg {
       min-width: 26px;
   }

} @media all and (min-width: 1000px) {

   .frb-pm-bt-temp svg { 
       min-width: 60px;
   }

}

.frb-cctypes-vmad .frb-btn, .frb-cctypes-vmaj .frb-btn, .frb-cctypes-vmar .frb-btn, .frb-cctypes-vma .frb-btn, .frb-cctypes-vm .frb-btn {

   font-size: 0;
   /* Remove spacing between icons */

}

.frb-cctypes-vmad span, .frb-cctypes-vmaj span, .frb-cctypes-vmar span, .frb-cctypes-vma span, .frb-cctypes-vm span {

   display: none;

}

.frb-cctypes-vmad .frb-cc-logo-visa, .frb-cctypes-vmad .frb-cc-logo-mastercard, .frb-cctypes-vmad .frb-cc-logo-amex, .frb-cctypes-vmad .frb-cc-logo-discover,

.frb-cctypes-vmaj .frb-cc-logo-visa, .frb-cctypes-vmaj .frb-cc-logo-mastercard, .frb-cctypes-vmaj .frb-cc-logo-amex, .frb-cctypes-vmaj .frb-cc-logo-jcb,

.frb-cctypes-vmar .frb-cc-logo-visa, .frb-cctypes-vmar .frb-cc-logo-mastercard, /* T258509 .frb-cctypes-vmar .frb-cc-logo-amex, */ .frb-cctypes-vmar .frb-cc-logo-rupay,

.frb-cctypes-vma .frb-cc-logo-visa, .frb-cctypes-vma .frb-cc-logo-mastercard, .frb-cctypes-vma .frb-cc-logo-amex,

.frb-cctypes-vm .frb-cc-logo-visa, .frb-cctypes-vm .frb-cc-logo-mastercard {

   display: inline-block;

}

/* --- Footer / Small Print --- */

.frb-smallprint {

   margin-top: 12px;
   font-size: 12px;
   line-height: 1.5; /*18px @12px*/
   color: #54595d;
   font-weight: normal;

}

.frb-smallprint a {

   color: #54595d;
   text-decoration: underline;

}

.frb-smallprint a:hover, .frb-smallprint a:focus {

   color: #000;

}

.recurring-details {

   display: none;

}

.frb-optin .frb-smallprint {

   margin-top: 8px;
   font-size: 11px;
   line-height: 1.4;

}

/* --- Close and RML Options --- */

.frb-inline-bottombar {

   position: absolute;
   width: 100%;
   text-align: center;

}

.frb-inline-rml-wrapper {

   display: inline;
   position: relative;

}

.frb-inline-close, .frb-inline-rml-form-close {

   color: #54595d;

} .frb-inline-close:hover, .frb-inline-close:focus, .frb-inline-rml-form-close:hover, .frb-inline-rml-form-close:focus {

   color: #000;

}

.frb-inline-close, .frb-inline-rml-link, .frb-inline-rml-form-close {

   text-transform: uppercase;
   line-height: 1.2857142857;

}

.frb-inline-close, .frb-inline-rml-link {

   margin-top: 8px;
   padding: 5px 8px 6px;
   font-size: 12px;
   letter-spacing: 0.25px;

}

/* Close button icon */ .frb-inline-close-icon {

   margin-bottom: -2px;
   width: 10px;

} .frb-inline-close-icon g {

   stroke: currentColor;

}

/* RML text color */ .frb-inline-rml-link {

   color: #36c;
   font-weight: bold;

} .frb-inline-rml-link:hover {

   color: #447ff5;

}

/* RML clock icon */ .frb-inline-rml-icon {

   margin-bottom: -3px;
   width: 13px;

} .frb-inline-rml-icon path {

   fill: currentColor;

} .frb-inline-rml-icon circle {

   stroke: currentColor;

}

/* --- Remind Me Later (inline) --- */ .frb-rml-disabled .frb-inline-rml-wrapper {

   display: none;

}

.frb-inline-rml-link {

   position: relative;
   text-transform: uppercase;
   display: inline-block;

}

.frb-inline-rml {

   display: none;
   position: absolute;
   cursor: default;
   text-align: left;
   padding: 7px 14px;
   top: 28px;
   right: -142px;
   z-index: 10000;
   width: 320px;
   background: #fff;
   color: #000;
   border: 1px solid #aaa;
   border-radius: 2px;
   box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.15);
   text-transform: none;

}

body.rtl .frb-inline-rml {

   left: -142px;
   right: auto;

}

.frb-inline-rml-form:before, .frb-inline-rml-form:after {

   bottom: 100%;
   border: solid transparent;
   content: " ";
   height: 0;
   width: 0;
   position: absolute;
   left: auto;
   right: 148px;
   pointer-events: none;

}

body.rtl .frb-inline-rml-form:before, body.rtl .frb-inline-rml-form:after {

   left: 148px;
   right: auto;

}

.frb-inline-rml-form:before {

   border-bottom-color: #888;
   border-width: 11px;

}

.frb-inline-rml-form:after {

   border-bottom-color: #fff;
   border-width: 10px;
   margin-right: 1px;
   /*Triangle pixel glitch fix (margin left and right)*/
   margin-left: 0;

}

/* Triangle pixel glitch fix for RTL */ body.rtl .frb-inline-rml-form:after {

   margin-right: 0;
   margin-left: 1px;

}

.frb-input {

   background: #fff;
   width: 100%;
   display: block;
   padding: 7px 7px 6px;
   margin: 0;
   font-size: inherit;
   color: #000;
   border: 1px solid #9aa0a7;
   border-radius: 2px;

} .frb-input.frb-haserror {

   border-color: #d33;
   box-shadow: inset 0 0 0 1px #d33;

}

.frb-inline-rml-done {

   text-align: left;

}

body.rtl .frb-inline-rml-done {

   text-align: right;

}

.frb-inline-rml-form-close-wrapper {

   padding-top: 4px;
   text-align: center;

}

.frb-inline-rml-form-close-icon {

   width: 10px;
   height: 10px;
   margin-bottom: -1px;

}

.frb-inline-rml-form-close-icon g {

   stroke: currentColor;

}

/* "Nag" banner styles


*/

div#frb-nag {

   display: none;
   position: fixed;
   width: 90%;
   bottom: 0;
   left: 5%;
   z-index: 110;
   background-color: #FFC9C9;
   box-shadow: 0 0 15px 0 rgba(0,0,0,.7);
   border-radius: 10px 10px 0 0;
   text-align: center;
   color: #000;
   font-size: 15px;
   line-height: 1.2;
   font-weight: 500;
   font-style: normal; /* needed for uk.wikipedia */
   transition: margin 1s ease-in-out;

}

@media all and (min-width: 960px) {

   div#frb-nag {
       left: 50%;
       width: 100%;
       max-width: 900px;
       transform: translateX(-50%);
   }

}

/* Extra specificity for https://phabricator.wikimedia.org/T247126 */

  1. frb-nag.frb {
   margin-bottom: -100%;

}

  1. frb-nag.reveal {
   margin-bottom: 0;

}

  1. frb-nag .frb-nag-link {
   position: relative;
   width: 100%;
   padding: 20px 35px 20px 25px;
   margin: auto;
   cursor: pointer;
   display: block;
   color: black !important;
   transition: color 0.5s ease;

}

  1. frb-nag:hover .frb-nag-link {
   text-decoration: none !important;

}

/* --- Nag Close button --- */

  1. frb-nag .frb-nag-close {
   display: inline-block;
   position: absolute;
   right: 8px;
   top: 8px;
   z-index: 999;
   font-size: 12px;
   cursor: pointer;
   padding: 0;

} body.rtl #frb-nag .frb-nag-close {

   right: auto;
   left: 10px;

}

  1. frb-nag .frb-nag-close:hover .frb-icon g {
   stroke: #000000;
   transition: all 0.5s ease;

}

  1. frb-nag .frb-icon-close {
   width: 16px;
   height: 16px;

}

/* -------------- Message -------------- */

  1. frb-nag .frb-message {
   transition: background-color 0.5s ease;

}

/* --- Plea --- */

  1. frb-nag .frb-plea {
   display: table;
   margin: 0;

}

  1. frb-nag .frb-plea-message,
  2. frb-nag .frb-plea-button {
   display: table-cell;
   vertical-align: middle;

}

  1. frb-nag .frb-plea-message {
   text-align: left;
   line-height: 1.4;
   width: calc(100% - 305px);
   padding: 0 20px 0 0;

}

.frb-plea-heading {

   display: block;
   font-size: 17px;

}


  1. frb-nag .frb-plea-button {
   width: 160px;

}


/* --- Button Style --- */

  1. frb-nag .frb-donate-button {
   display: block;
   background-color: #990000;
   color: white;
   font-size: 18px;
   white-space: nowrap;
   line-height: 1;
   text-transform: uppercase;
   padding: 15px 20px;
   border-radius: 5px;
   outline: 0;
   text-align: center;
   cursor: pointer;
   font-family: inherit;
   font-weight: 700;
   -webkit-transition: all .25s ease-in-out;
   -moz-transition:    all .25s ease-in-out;
   transition:         all .25s ease-in-out;

}

  1. frb-nag .frb-donate-button:hover {
   background-color: #fff;
   color: #444;

}

  1. frb-nag .frb-donate-button:active {
   background-color: black;
   color: white;

}

/* Error messages */ .frb .frb-error {

   display: none;
   margin-top: 8px;
   font-size: 14px;
   color: #d33;
   font-weight: 600;
   line-height: 1.3;
   text-align: center;

}

/* --- opt-in and email --- */

  1. frb-form fieldset.frb-optin {
   margin: 12px auto;

}

.frb-radio {

   cursor: pointer;
   float: left;
   height: 15px;
   margin: 6px 6px 0px 9px;

} body.rtl .frb-radio {

   float: right;

}

.frb-radio-label {

   display: block;
   padding: 2px;
   cursor: pointer;
   white-space: nowrap;
   font-weight: bold;

} body.rtl .frb-radio-label {

   text-align: right;

}

.frb-radio-label:hover, .frb-radio:focus + .frb-radio-label, .frb-radio:hover + .frb-radio-label {

   color: #36c;

}

.frb-form .frb-optin {

   margin-bottom: 1px;

}

/* .frb-form .frb-optin li {

   display: block;
   clear: both;

} */

.frb-optin .frb-radio {

   margin: 4px 6px 0 0;

}

.frb-optin .frb-radio-label {

   float: right;
   width: calc(100% - 22px);
   white-space: normal;
   font-size: 14px;
   line-height: 19px;
   font-weight: normal;

}

.frb-optin .frb-radio-label:hover, .frb-optin .frb-radio:hover+.frb-radio-label {

   text-decoration: none;

}

.frb-optin-no-prompt {

   display: none;
   clear: both;
   margin-top: 8px;
   padding: 6px 6px 5px 6px;
   border: 1px solid #b32424;
   background-color: #fee7e6;
   border-radius: 2px;
   font-size: 14px;
   line-height: 1.2857142857; /*18px @14px*/
   font-weight: normal;

}

.frb-optin-no-prompt span {

   font-family: "Segoe UI Emoji";

}

.frb-optin-no-prompt.is-positive {

   border-color: #14866d;
   background-color: #d5fdf4;
   font-weight: bold;

}

.frb-optin-no-prompt__yes {

   display: none;

}

.frb-optin-no-prompt__no {

   display: block;

}

.frb-optin-no-prompt.is-positive .frb-optin-no-prompt__yes {

   display: block;

}

.frb-optin-no-prompt.is-positive .frb-optin-no-prompt__no {

   display: none;

}

/* --- Back button --- */ .frb-back {

   position: absolute;
   left: 0;
   top: 10px;
   padding: 0;
   color: #72777d;

} .frb-back:hover {

   color: #000;

}

.frb-icon-back path {

   stroke: currentColor;

} .frb-icon-back rect {

   fill: currentColor;

}

.frb-icon-back {

   height: 13px;
   width: 20px;

}

.frb-icon-lock {

   fill: currentColor;
   width: 14px;
   height: 14px;

}

/* --- Recurring upsell --- */

.frb-step-upsell, .frb-step-monthly-diff-amt {

   padding-top: 24px;
   text-align: center;

}

.frb-upsell-cta, .frb-upsell-ty {

   font-size: 17px;
   font-weight: bold;

}

.frb-upsell-color, .frb-step-monthly-diff-amt label {

   display: block;
   max-width: 380px;
   margin: 8px auto;
   display: block;
   font-size: 15px;
   line-height: 1.3;
   font-weight: normal;
   margin: 8px auto;

}

.frb-monthly-buttons {

   padding-top: 8px;

}

.frb-step-monthly-diff-amt-link {

   font-size: 15px;
   line-height: 1.3;
   color: #36c;
   margin: 8px 2px;
   padding: 12px 10%;
   font-weight: bold;

} .frb-step-monthly-diff-amt-link:hover {

   color: #447ff5;

}

  1. frb-amt-monthly-other-input {
   width: auto;
   margin: 0 auto;
   text-align: center;

}

</style>

<script> var frb = frb || {};


/* jshint maxerr: 600 */ frb.amounts = frb.amounts || {};

// Hard minimum amounts that can be given // From https://github.com/wikimedia/wikimedia-fundraising-SmashPig/blob/master/PaymentData/ReferenceData/CurrencyRates.php // Updated 2023-12-12 frb.amounts.minimums = {

   'USD' : 1,
   'CAD' : 1.36,
   'AUD' : 1.52,
   'NZD' : 1.63,
   'GBP' : 0.80,
   'EUR' : 0.93,
   'DKK' : 6.91,
   'HUF' : 355,
   'ILS' : 3.71,
   'INR' : 10, // T309818
   'JPY' : 146,
   'MYR' : 4.68,
   'NOK' : 11,
   'PLN' : 4.02,
   'CZK' : 23,
   'RON' : 4.61,
   'SEK' : 10,
   'UAH' : 37,
   'ZAR' : 19,
   // Latin America
   'BRL' : 4.95,
   'ARS' : 366,
   'CLP' : 880,
   'COP' : 3970,
   'MXN' : 17,
   'PEN' : 3.74,
   'UYU' : 39,
   'CHF' : 0.88

};

frb.amounts.options7 = {

   // Big English
   'USD' : [2.75, 10, 15, 25, 50, 75, 100],
   'CAD' : [2.75, 10, 15, 25, 50, 75, 100],
   'AUD' : [2.75, 10, 15, 25, 50, 75, 100],
   'NZD' : [2.75, 10, 15, 25, 50, 75, 100],
   'GBP' : [2, 10, 15, 25, 50, 75, 100],
   'EUR' : {
       'default' : [2, 10, 15, 25, 50, 75, 100]
   },
   // Others
   'DKK' : [20, 75, 100, 200, 300, 500, 700],
   'HUF' : [500, 1000, 2000, 4000, 5000, 7000, 10000],
   'ILS' : [10, 35, 50, 100, 200, 300, 400],
   'INR' : [25, 300, 500, 1000, 1500, 3000, 5000],
   'JPY' : [300, 1000, 1500, 2000, 3000, 5000, 10000],
   'MYR' : [10, 30, 50, 100, 200, 300, 500],
   'NOK' : [30, 100, 150, 200, 500, 750, 1000],
   'PLN' : [10, 20, 50, 100, 200, 300, 500],
   'CZK' : [50, 100, 250, 500, 1000, 1500, 2500],
   'RON' : [10, 50, 75, 100, 200, 300, 500],
   'SEK' : [30, 100, 150, 200, 500, 750, 1000],
   'UAH' : [50, 75, 150, 300, 500, 750, 1000],
   'ZAR' : [30, 50, 100, 200, 300, 500, 1000],
   // Latin America
   'BRL' : [10, 20, 30, 50, 100, 200, 300],
   'ARS' : [200, 250, 500, 750, 1000, 1500, 2000],
   'CLP' : [2000, 3000, 5000, 10000, 20000, 30000, 50000],
   'COP' : [10000, 15000, 25000, 50000, 100000, 150000, 200000],
   'MXN' : [40, 70, 150, 250, 500, 700, 1000],
   'PEN' : [10, 15, 25, 50, 100, 150, 200],
   'UYU' : [100, 200, 300, 500, 1000, 1500, 2000],
   'CHF' : [3, 5, 10, 25, 50, 100, 200]

};

// 5 amount options. Since 2020 6C, no longer used frb.amounts.options5 = {

   // Big English
   'USD' : [2.75, 15, 20, 50, 100],
   'CAD' : [2.75, 15, 20, 50, 100],
   'AUD' : [2.75, 15, 20, 50, 100],
   'NZD' : [2.75, 15, 20, 50, 100],
   'GBP' : [2, 10, 20, 50, 100],
   'EUR' : [2, 10, 20, 50, 100],
   // Others
   'DKK' : [20, 100, 200, 500, 1000],
   'HUF' : [500, 2500, 4000, 7000, 10000],
   'ILS' : [10, 50, 200, 600, 1000],
   'INR' : [150, 500, 1000, 3000, 5000],
   'JPY' : [300, 1500, 2000, 5000, 10000],
   'MYR' : [10, 50, 100, 300, 500],
   'NOK' : [20, 100, 200, 500, 1000],
   'PLN' : [10, 50, 100, 300, 500],
   'RON' : [10, 50, 100, 200, 1000],
   'SEK' : [30, 100, 200, 500, 1000],
   'UAH' : [50, 150, 300, 750, 1000],
   'ZAR' : [30, 100, 200, 500, 1000],
   // Latin America
   'BRL' : [10, 30, 50, 100, 250],
   'ARS' : [60, 200, 400, 1000, 2000],
   'CLP' : [1500, 5000, 10000, 25000, 50000],
   'COP' : [7000, 20000, 50000, 150000, 200000],
   'MXN' : [35, 100, 200, 750, 1000],
   'PEN' : [10, 50, 150, 300, 700],
   'UYU' : [70, 200, 400, 1500, 2000],
   'CHF' : [3, 10, 25, 50, 100]

};

// "Average" donation frb.amounts.averages = {

   'USD' : 13,
   'CAD' : 12,
   'AUD' : 11,
   'NZD' : 12,
   'GBP' : 6,
   'EUR' : 8,
   // Others
   'DKK' : 60,
   'HUF' : 2500,
   'ILS' : 50,
   'INR' : 229,
   'JPY' : 800,
   'MYR' : 30,
   'NOK' : 75,
   'PLN' : 50,
   'CZK' : 150,
   'RON' : 50,
   'SEK' : 85,
   'UAH' : 150,
   'ZAR' : 65,
   // Latin America
   'BRL' : 25,
   'ARS' : 780,
   'CLP' : 10200,
   'COP' : 35000,
   'MXN' : 140,
   'PEN' : 30,
   'UYU' : 525,
   'CHF' : 25

};

// 'If everyone gave X'. Mostly the same as first asks option. frb.amounts.ifEveryone = {

   // Big English
   'USD' : 2.75,
   'CAD' : 2.75,
   'AUD' : 2.75,
   'NZD' : 2.75,
   'GBP' : 2,
   'EUR' : {
       'default' : 2
   },
   // Others
   'DKK' : 20,
   'HUF' : 500,
   'ILS' : 10,
   'INR' : 25,
   'JPY' : 300,
   'MYR' : 10,
   'NOK' : 30,
   'PLN' : 10,
   'CZK' : 50,
   'RON' : 10,
   'SEK' : 30,
   'UAH' : 50,
   'ZAR' : 30,
   // Latin America
   'BRL' : 10,
   'ARS' : 175,
   'CLP' : 1500,
   'COP' : 7000,
   'MXN' : 40,
   'PEN' : 10,
   'UYU' : 100,
   'CHF' : 5

};

// Minimum fee/PTF amounts. Default is 0.35. // Updated 2018-07-05 based on Ppena's feedback // Updated 2019-05-21 to approx 0.35 USD equivalent frb.amounts.feeMinimums = {

   'DKK' : 2,
   'HUF' : 100,
   'ILS' : 1.2,
   'INR' : 4,
   'JPY' : 35,
   'MYR' : 1,
   'NOK' : 3,
   'PLN' : 1.35,
   'CZK' : 7.5,
   'RON' : 1.5,
   'SEK' : 3,
   'UAH' : 10,
   'ZAR' : 5,
   // Latin America // Updated 2023-01-17 to approx 0.35 USD equivalent
   'BRL' : 1.75,
   'ARS' : 32,
   'CLP' : 322,
   'COP' : 1385,
   'MXN' : 6,
   'PEN' : 1.3,
   'UYU' : 13.7

};

// If one-time amount <= left amount, suggest right amount for monthly // If changing these, please update spreadsheet // https://docs.google.com/spreadsheets/d/1z36zi8EegPLAvR5FYAgwz8ywKZ50QNB82SpwpTdk-xQ/edit#gid=1258723967 frb.amounts.monthlySuggest = {

   'EUR' : [ // also GBP
       [ 1.99, 0 ],
       [ 2.35, 1.40 ],
       [ 9, 1.75 ],
       [ 12, 2 ],
       [ 15, 2.5 ],
       [ 18, 3 ],
       [ 21, 3.5 ],
       [ 24, 4 ],
       [ 27, 4.5 ],
       [ 30, 5 ],
       [ 33, 5.5 ],
       [ 36, 6 ],
       [ 39, 6.5 ],
       [ 42, 7 ],
       [ 45, 7.5 ],
       [ 48, 8 ],
       [ 51, 8.5 ],
       [ 54, 9 ],
       [ 57, 9.5 ],
       [ 60, 10 ],
       [ 63, 10.5 ],
       [ 66, 11 ],
       [ 69, 11.5 ],
       [ 72, 12 ],
       [ 75, 12.5 ],
       [ 102, 17 ],
       [ 250, 25 ],
       [ 499, 50 ],
       [ Infinity, 0 ]
   ],
   'USD' : [ // also CAD, AUD, NZD
       [ 2.74, 0 ],
       [ 9, 1.75 ],
       [ 12, 2 ],
       [ 15, 2.5 ],
       [ 18, 3 ],
       [ 21, 3.5 ],
       [ 24, 4 ],
       [ 27, 4.5 ],
       [ 30, 5 ],
       [ 33, 5.5 ],
       [ 36, 6 ],
       [ 39, 6.5 ],
       [ 42, 7 ],
       [ 45, 7.5 ],
       [ 48, 8 ],
       [ 51, 8.5 ],
       [ 54, 9 ],
       [ 57, 9.5 ],
       [ 60, 10 ],
       [ 63, 10.5 ],
       [ 66, 11 ],
       [ 69, 11.5 ],
       [ 72, 12 ],
       [ 75, 12.5 ],
       [ 102, 17 ],
       [ 250, 25 ],
       [ 499, 50 ],
       [ Infinity, 0 ]
   ],
   'JPY' : [
       [ 299, 0 ],
       [ 900, 150 ],
       [ 1200, 200 ],
       [ 1500, 250 ],
       [ 1800, 300 ],
       [ 2100, 350 ],
       [ 2400, 400 ],
       [ 2700, 450 ],
       [ 3000, 500 ],
       [ 3300, 550 ],
       [ 3600, 600 ],
       [ 3900, 650 ],
       [ 4200, 700 ],
       [ 4500, 750 ],
       [ 4800, 800 ],
       [ 5100, 850 ],
       [ 5400, 900 ],
       [ 5700, 950 ],
       [ 6000, 1000 ],
       [ 6300, 1050 ],
       [ 6600, 1100 ],
       [ 6900, 1150 ],
       [ 7200, 1200 ],
       [ 7500, 1250 ],
       [ 10800, 1800 ],
       [ 18000, 3000 ],
       [ 50000, 6000 ],
       [ Infinity, 0 ]
   ],
   'SEK' : [ // Also NOK
       [ 29, 0 ],
       [ 35, 20 ],
       [ 55, 25 ],
       [ 105, 30 ],
       [ 160, 40 ],
       [ 210, 50 ],
       [ 360, 60 ],
       [ 450, 75 ],
       [ 600, 100 ],
       [ 800, 125 ],
       [ 900, 150 ],
       [ 1200, 200 ],
       [ 1500, 250 ],
       [ 1800, 300 ],
       [ 2100, 350 ],
       [ Infinity, 0 ]
   ],
   'HUF' : [
       [ 499, 0 ],
       [ 3000, 500 ],
       [ 6000, 1000 ],
       [ 9000, 1500 ],
       [ 12000, 2000 ],
       [ 18000, 3000 ],
       [ 24000, 4000 ],
       [ 30000, 5000 ],
       [ 36000, 6000 ],
       [ 42000, 7000 ],
       [ 48000, 8000 ],
       [ 54000, 9000 ],
       [ 60000, 10000 ],
       [ Infinity, 0 ]
   ],
   'ILS' : [
       [ 9, 0 ],
       [ 10, 5 ],
       [ 60, 10 ],
       [ 90, 15 ],
       [ 120, 20 ],
       [ 180, 30 ],
       [ 240, 40 ],
       [ 300, 50 ],
       [ 360, 60 ],
       [ 420, 70 ],
       [ 480, 80 ],
       [ 540, 90 ],
       [ 600, 100 ],
       [ Infinity, 0 ]
   ],
   'ZAR' : [
       [ 29, 0 ],
       [ 30, 20 ],
       [ 50, 30 ],
       [ 100, 40 ],
       [ 300, 50 ],
       [ 450, 75 ],
       [ 600, 100 ],
       [ 900, 150 ],
       [ 1200, 200 ],
       [ 1500, 250 ],
       [ 1800, 300 ],
       [ 2400, 400 ],
       [ 3000, 500 ],
       [ 3600, 600 ],
       [ Infinity, 0 ]
   ],
   'MYR' : [ // Also RON, PLN
       [ 9, 0 ],
       [ 30, 5 ],
       [ 50, 10 ],
       [ 120, 20 ],
       [ 180, 30 ],
       [ 240, 40 ],
       [ 300, 50 ],
       [ 360, 60 ],
       [ 420, 70 ],
       [ 480, 80 ],
       [ 540, 90 ],
       [ 600, 100 ],
       [ 900, 150 ],
       [ Infinity, 0 ]
   ],
   'DKK' : [
       [ 19, 0 ],
       [ 25, 10 ],
       [ 120, 20 ],
       [ 250, 40 ],
       [ 350, 50 ],
       [ 450, 75 ],
       [ 600, 100 ],
       [ 750, 125 ],
       [ 900, 150 ],
       [ 1200, 200 ],
       [ 1500, 250 ],
       [ 1800, 300 ],
       [ 2100, 350 ],
       [ Infinity, 0 ]
   ],
   'CZK' : [
       [ 49, 0 ],
       [ 180, 30 ],
       [ 300, 50 ],
       [ 600, 100 ],
       [ 900, 150 ],
       [ 1200, 200 ],
       [ 1500, 250 ],
       [ 1800, 300 ],
       [ 2100, 350 ],
       [ 2400, 400 ],
       [ 3000, 500 ],
       [ 3600, 600 ],
       [ 4200, 700 ],
       [ 4800, 800 ],
       [ Infinity, 0 ]
   ],
   'CLP' : [
       [ 1999, 0 ],
       [ 2300, 1000 ],
       [ 2700, 1100 ],
       [ 3300, 1200 ],
       [ 4200, 1300 ],
       [ 5500, 1400 ],
       [ 9000, 1500 ],
       [ 10500, 1700 ],
       [ 16000, 2600 ],
       [ 20800, 3400 ],
       [ 26000, 4200 ],
       [ 31200, 5000 ],
       [ 38400, 6400 ],
       [ 55000, 8500 ],
       [ Infinity, 0 ]
   ],
   'UYU' : [
       [ 99, 0 ],
       [ 120, 50 ],
       [ 170, 65 ],
       [ 220, 70 ],
       [ 320, 75 ],
       [ 480, 85 ],
       [ 520, 90 ],
       [ 750, 125 ],
       [ 1050, 170 ],
       [ 1350, 225 ],
       [ 1600, 250 ],
       [ 1800, 300 ],
       [ 2100, 320 ],
       [ Infinity, 0 ]
   ],
   'PEN' : [
       [ 9, 0 ],
       [ 12, 5 ],
       [ 17, 6 ],
       [ 26, 7 ],
       [ 48, 8 ],
       [ 55, 9 ],
       [ 78, 13 ],
       [ 105, 17 ],
       [ 130, 21 ],
       [ 160, 26 ],
       [ 180, 30 ],
       [ 210, 32 ],
       [ Infinity, 0 ]
   ],
   'COP' : [
       [ 9999, 0 ],
       [ 11300, 5000 ],
       [ 17000, 5200 ],
       [ 22000, 5500 ],
       [ 27000, 5800 ],
       [ 45000, 7500 ],
       [ 55000, 9000 ],
       [ 75000, 12500 ],
       [ 105000, 17000 ],
       [ 120000, 20000 ],
       [ 160000, 25000 ],
       [ 180000, 30000 ],
       [ 250000, 34000 ],
       [ Infinity, 0 ]
   ],
   'BRL' : [
       [ 9, 0 ],
       [ 12, 6 ],
       [ 22, 7 ],
       [ 35, 8 ],
       [ 45, 9 ],
       [ 55, 10 ],
       [ 80, 12 ],
       [ 105, 16 ],
       [ 160, 25 ],
       [ 210, 35 ],
       [ 270, 45 ],
       [ 320, 50 ],
       [ Infinity, 0 ]
   ],
   'MXN' : [
       [ 39, 0 ],
       [ 48, 25 ],
       [ 60, 28 ],
       [ 110, 30 ],
       [ 160, 35 ],
       [ 260, 45 ],
       [ 270, 50 ],
       [ 350, 60 ],
       [ 550, 85 ],
       [ 650, 90 ],
       [ 750, 120 ],
       [ 1500, 160 ],
       [ Infinity, 0 ]
   ],
   'INR' : [
       [ 29, 0 ],
       [ 75, 25 ],
       [ 79, 29 ],
       [ 104, 30 ],
       [ 208, 35 ],
       [ 312, 55 ],
       [ 416, 70 ],
       [ 520, 90 ],
       [ 624, 110 ],
       [ 728, 130 ],
       [ 832, 140 ],
       [ 936, 160 ],
       [ 1040, 175 ],
       [ 1144, 190 ],
       [ 1248, 210 ],
       [ 1352, 235 ],
       [ 1456, 245 ],
       [ 1560, 265 ],
       [ 2080, 350 ],
       [ 3120, 530 ],
       [ 4160, 700 ],
       [ 5200, 880 ],
       [ 7800, 1320 ],
       [ 10400, 1760 ],
       [ 15600, 2650 ],
       [ 20800, 3530 ],
       [ 26000, 4420 ],
       [ Infinity, 0 ]
   ]

}; frb.amounts.monthlySuggest.GBP = frb.amounts.monthlySuggest.EUR; frb.amounts.monthlySuggest.CAD = frb.amounts.monthlySuggest.USD; frb.amounts.monthlySuggest.AUD = frb.amounts.monthlySuggest.USD; frb.amounts.monthlySuggest.NZD = frb.amounts.monthlySuggest.USD;

frb.amounts.monthlySuggest.RON = frb.amounts.monthlySuggest.MYR; frb.amounts.monthlySuggest.PLN = frb.amounts.monthlySuggest.MYR; frb.amounts.monthlySuggest.NOK = frb.amounts.monthlySuggest.SEK;

frb.amounts.test = function() {

   /**
    * Check if amounts are less than minimum acceptable
    * 
    * @param {string}   desc - description for error message e.g. 'amount option' 
    * @param {Object}   dataObject - data to check e.g. frb.amounts.options7
    * @param {Function} extractFunction - function to get test value e.g. d => d[0] for 1st amount
    */
   var testMinimums = function( desc, dataObject, extractFunction = d => d ) {
       const errorMessage = 'Error %s %s %s is less than minimum %s';
       for ( const currency in dataObject ) {
           let data = dataObject[currency].default || dataObject[currency], // need default for some EUR
               value = extractFunction(data),
               minimum = frb.amounts.minimums[currency];
           console.assert( value >= minimum, errorMessage, currency, desc, value, minimum );
       }
   };
   testMinimums( 'if everyone', frb.amounts.ifEveryone, d => d );
   testMinimums( 'average', frb.amounts.averages, d => d );
   testMinimums( 'amount option', frb.amounts.options7, d => d[0] );
   testMinimums( 'monthly suggestion', frb.amounts.monthlySuggest, d => d[1][1] );

};

frb.currencyFormats = {

   'USD' : '$\t',
   'CAD' : {
       'fr' : '$\t',
       'default' : '$\t'
   },
   'AUD' : '$\t',
   'NZD' : '$\t',
   'GBP' : '£\t',
   'EUR' : {
       'en' : '€\t',
       'cy' : '€\t',
       'ga' : '€\t',
       'mt' : '€\t',
       'nl' : '€ \t',
       'lv' : '€ \t',
       'tr' : '€ \t',
       'default' : '\t €'
   },
   // Others
   'CZK' : '\t Kč',
   'DKK' : '\t kr.',
   'HUF' : '\t Ft',
   'ILS' : {
       'he' : '\t ₪',
       'yi' : '\t ₪',
       'ar' : '\t ₪',
       'default' : '₪ \t'
   },
   'INR' : '₹ \t',
   'JPY' : '¥\t',
   'MYR' : 'RM\t',
   'NOK' : '\t kr',
   'PLN' : '\t zł',
   'RON' : '\t lei',
   'SEK' : '\t kr',
   'UAH' : '₴\t',
   'ZAR' : 'R \t',
   // Latin America
   'BRL' : {
       'en' : 'R$\t',
       'default' : 'R$ \t'
   },
   'ARS' : '$\t',
   'CLP' : '$\t',
   'COP' : '$\t',
   'MXN' : '$\t',
   'PEN' : 'S/. \t',
   'UYU' : '$U \t',
   'CHF' : '\t CHF'

};

// Check in user language first, then fall back to English frb.countryNames = {

   'af' : {
       'ZA' : 'Suid-Afrika'
   },
   'en' : {
       'US' : 'the United States',
       'CA' : 'Canada',
       'GB' : 'the UK',
       'IE' : 'Ireland',
       'AU' : 'Australia',
       'NZ' : 'New Zealand',
       'AR' : 'Argentina',
       'AT' : 'Austria',
       'BE' : 'Belgium',
       'BR' : 'Brazil',
       'CH' : 'Switzerland',
       'CL' : 'Chile',
       'CO' : 'Colombia',
       'CZ' : 'the Czech Republic',
       'DK' : 'Denmark',
       'ES' : 'Spain',
       'FR' : 'France',
       'GR' : 'Greece',
       'HK' : 'Hong Kong',
       'HU' : 'Hungary',
       'IL' : 'Israel',
       'IN' : 'India',
       'IT' : 'Italy',
       'JP' : 'Japan',
       'LU' : 'Luxembourg',
       'LV' : 'Latvia',
       'MX' : 'Mexico',
       'MY' : 'Malaysia',
       'NL' : 'the Netherlands',
       'NO' : 'Norway',
       'PE' : 'Peru',
       'PL' : 'Poland',
       'PT' : 'Portugal',
       'RO' : 'Romania',
       'SE' : 'Sweden',
       'SK' : 'Slovakia',
       'UA' : 'Ukraine',
       'UY' : 'Uruguay',
       'ZA' : 'South Africa'
   },
   'ca' : {
       'AT' : 'd’Àustria',
       'BE' : 'de Bèlgica',
       'DK' : 'de Dinamarca',
       'ES' : 'a Espanya',
       'HU' : 'd’Hongria',
       'IL' : 'd’Israel',
       'LV' : 'de Letònia',
       'LU' : 'de Luxemburg',
       'MY' : 'de Malàisia',
       'NO' : 'de Noruega',
       'PL' : 'de Polònia',
       'PT' : 'de Portugal',
       'RO' : 'de Romania',
       'SK' : 'd’Eslovàquia',
       'ZA' : 'de Sud-àfrica',
       'UA' : 'd’Ucraïna'
   },
   'cs' : {
       'CZ' : 'v České republice',
       'AT' : 'v Rakousku',
       'BE' : 'v Belgii',
       'DK' : 'v Dánsku',
       'GR' : 'v Řecku',
       'IL' : 'v Izraeli',
       'LU' : 'v Lucembursku',
       'MY' : 'v Malajsii',
       'NO' : 'v Norsku',
       'PT' : 'v Portugalsku',
       'SE' : 've Švédsku',
       'ZA' : 'v Jihoafrické republice'
   },
   'es' : {
       'AR' : 'en Argentina',
       'AT' : 'en Austria',
       'BE' : 'en Bélgica',
       'BR' : 'en Brasil',
       'CL' : 'en Chile',
       'CO' : 'en Colombia',
       'DK' : 'en Dinamarca',
       'ES' : 'en España',
       'HU' : 'en Hungría',
       'IL' : 'en Israel',
       'LU' : 'en Luxemburgo',
       'LV' : 'en Letonia',
       'MX' : 'en México',
       'MY' : 'en Malasia ',
       'NO' : 'en Noruega',
       'PE' : 'en Perú',
       'PL' : 'en Polonia',
       'PT' : 'en Portugal',
       'RO' : 'en Rumania',
       'SK' : 'en Eslovaquia',
       'UA' : 'en Ucrania',
       'US' : 'en los Estados Unidos',
       'UY' : 'en Uruguay',
       'ZA' : 'en Sudafrica'
   },
   'da' : {
       'AT' : 'i Østrig',
       'BE' : 'i Belgien',
       'CZ' : 'i Tjekkiet',
       'DK' : 'i Danmark',
       'ES' : 'i Spanien',
       'GR' : 'i Grækenland',
       'HU' : 'i Ungarn',
       'IL' : 'i Israel',
       'LV' : 'i Letland',
       'LU' : 'i Luxembourg',
       'MY' : 'i Malaysia',
       'NO' : 'i Norge',
       'PL' : 'i Polen',
       'PT' : 'i Portugal',
       'RO' : 'i Rumænien',
       'SE' : 'i Sverige',
       'SK' : 'i Slovakiet',
       'ZA' : 'i Sydafrika',
       'UA' : 'i Ukraine'
   },
   'nl' : {
       'NL' : 'in Nederland',
       'AT' : 'in Oostenrijk',
       'BE' : 'in België',
       'DK' : 'in Denemarken',
       'CZ' : 'in Tsjechië',
       'ES' : 'in Spanje',
       'GR' : 'in Griekenland',
       'HU' : 'in Hongarije',
       'IL' : 'in Israël',
       'LV' : 'in Letland',
       'LU' : 'in Luxemburg',
       'MY' : 'in Maleisië',
       'NO' : 'in Noorwegen',
       'PL' : 'in Polen',
       'PT' : 'in Portugal',
       'RO' : 'in Roemenië',
       'SE' : 'in Zweden',
       'SK' : 'in Slowakije',
       'ZA' : 'in Zuid-Afrika',
       'UA' : 'in Oekraïne'
   },
   'fr' : {
       'AT' : 'en Autriche',
       'BE' : 'en Belgique',
       'CH' : 'en Suisse',
       'CA' : 'au Canada',
       'CZ' : 'en République tchèque',
       'DK' : 'au Danemark',
       'ES' : 'en Espagne',
       'FR' : 'en France',
       'GR' : 'en Grèce',
       'HU' : 'en Hongrie',
       'IL' : 'en Israël',
       'LV' : 'en Lettonie',
       'LU' : 'au Luxembourg',
       'MY' : 'en Malaisie',
       'NO' : 'en Norvège',
       'PL' : 'en Pologne',
       'PT' : 'au Portugal',
       'RO' : 'en Roumanie',
       'SE' : 'en Suède',
       'SK' : 'en Slovaquie',
       'ZA' : 'en Afrique du Sud',
       'UA' : 'en Ukraine'
   },
   'de' : {
       'AT' : 'in Österreich',
       'BE' : 'in Belgien',
       'CH' : 'in der Schweiz',
       'CZ' : 'in Tschechien',
       'DK' : 'in Dänemark',
       'ES' : 'in Spanien',
       'GR' : 'in Griechenland',
       'HU' : 'in Ungarn',
       'IL' : 'in Israel',
       'LV' : 'in Lettland',
       'LU' : 'in Luxemburg',
       'MY' : 'in Malaysia',
       'NO' : 'in Norwegen',
       'PL' : 'in Polen',
       'PT' : 'in Portugal',
       'RO' : 'in Rumänien',
       'SE' : 'in Schweden',
       'SK' : 'in der Slowakei',
       'ZA' : 'in Südafrika',
       'UA' : 'in der Ukraine'
   },
   'el' : {
       'AT' : 'στην Αυστρία',
       'BE' : 'στο Βέλγιο',
       'CZ' : 'στην Τσεχία',
       'DK' : 'στη Δανία',
       'ES' : 'στην Ισπανία',
       'GR' : 'στην Ελλάδα',
       'HU' : 'στην Ουγγαρία',
       'IL' : 'στο Ισραήλ',
       'LV' : 'στη Λετονία',
       'LU' : 'στο Λουξεμβούργο',
       'MY' : 'στη Μαλαισία',
       'NO' : 'στη Νορβηγία',
       'PL' : 'στην Πολωνία',
       'PT' : 'στην Πορτογαλία',
       'RO' : 'στη Ρουμανία',
       'SE' : 'στη Σουηδία',
       'SK' : 'στη Σλοβακία',
       'ZA' : 'στη Νότια Αφρική',
       'UA' : 'στην Ουκρανία'
   },
   'he' : {
       'AT' : 'אוסטרליה',
       'BE' : 'בלגיה',
       'CZ' : "בצ'כיה",
       'DK' : 'דנמרק',
       'ES' : 'ספרד',
       'GR' : 'ביוון',
       'HU' : 'הונגריה',
       'IL' : 'ישראל',
       'LV' : 'לטביה',
       'LU' : 'לוקסמבורג',
       'MY' : 'מלזיה',
       'NO' : 'נורווגיה',
       'PL' : 'פולין',
       'PT' : 'פורטוגל',
       'RO' : 'רומניה',
       'SE' : 'בשוודיה',
       'SK' : 'סלובקיה',
       'ZA' : 'דרום אפריקה',
       'UA' : 'אוקראינה'
   },
   'hu' : {
       'AT' : 'ausztriai',
       'BE' : 'belgiumi',
       'DK' : 'dániai',
       'ES' : 'spanyolországi',
       'HU' : 'magyarországi',
       'IL' : 'izraeli',
       'LV' : 'lettországi',
       'LU' : 'luxemburgi',
       'MY' : 'malajziai',
       'NO' : 'norvégiai',
       'PL' : 'lengyelországi',
       'PT' : 'portugáliai',
       'RO' : 'romániai',
       'SK' : 'szlovákiai',
       'ZA' : 'dél-afrikai',
       'UA' : 'ukrajnai'
   },
   'it' : {
       'IT' : 'Italia',
       'CH' : 'Svizzera'
   },
   'lv' : {
       'AT' : 'valstī Austrijā',
       'BE' : 'valstī Beļģijā',
       'DK' : 'valstī Dānijā',
       'ES' : 'valstī Spānijā',
       'HU' : 'valstī Ungārijā',
       'IL' : 'Izraēlas valstī',
       'LV' : 'valstī Latvijā',
       'LU' : 'valstī Luksemburgā',
       'MY' : 'valstī Malaizijā',
       'NO' : 'valstī Norvēģijā',
       'PL' : 'valstī Polijā',
       'PT' : 'valstī Portugālē',
       'RO' : 'valstī Rumānijā',
       'SK' : 'valstī Slovākijā',
       'ZA' : 'Dienvidāfrikas valstī',
       'UA' : 'valstī Ukrainā'
   },
   'nb' : {
       'AT' : 'i Østerrike',
       'BE' : 'i Belgia',
       'CZ' : 'i Tsjekkia',
       'DK' : 'i Danmark',
       'ES' : 'i Spania',
       'GR' : 'i Hellas',
       'HU' : 'i Ungarn',
       'IL' : 'i Israel',
       'LV' : 'i Latvia',
       'LU' : 'i Luxembourg',
       'MY' : 'i Malaysia',
       'NO' : 'i Norge',
       'PL' : 'i Polen',
       'PT' : 'i Portugal',
       'RO' : 'i Romania',
       'SE' : 'i Sverige',
       'SK' : 'i Slovakia',
       'ZA' : 'i Sør-Afrika',
       'UA' : 'i Ukraina'
   },
   'pl' : {
       'AT' : 'w Austrii',
       'BE' : 'w Belgii',
       'DK' : 'w Danii',
       'ES' : 'w Hiszpanii',
       'HU' : 'na Węgrzech',
       'IL' : 'w Izraelu',
       'LV' : 'na Łotwie',
       'LU' : 'w Luksemburgu',
       'MY' : 'w Malezji',
       'NO' : 'w Norwegii',
       'PL' : 'w Polsce',
       'PT' : 'w Portugalii',
       'RO' : 'w Rumunii',
       'SK' : 'na Słowacji',
       'ZA' : 'w Republice Południowej Afryki',
       'UA' : 'na Ukrainie'
   },
   'pt' : {
       'AT' : 'na Áustria',
       'BE' : 'na Bélgica',
       'BR' : 'no Brasil',
       'CZ' : 'na República Checa',
       'DK' : 'na Dinamarca',
       'ES' : 'na Espanha',
       'GR' : 'na Grécia',
       'HU' : 'na Hungria',
       'IL' : 'em Israel',
       'LV' : 'na Letónia',
       'LU' : 'no Luxemburgo',
       'MY' : 'na Malásia',
       'NO' : 'na Noruega',
       'PL' : 'na Polónia',
       'PT' : 'em Portugal',
       'RO' : 'na Roménia',
       'SE' : 'na Suécia',
       'SK' : 'na Eslováquia',
       'ZA' : 'na África do Sul',
       'UA' : 'na Ucrânia'
   },
   'ro' : {
       'AT' : 'din Austria',
       'BE' : 'din Belgia',
       'DK' : 'din Danemarca',
       'ES' : 'în Spania',
       'HU' : 'din Ungaria',
       'IL' : 'din Israel',
       'LV' : 'din Latvia',
       'LU' : 'din Luxemburg',
       'MY' : 'din Malaezia',
       'NO' : 'din Norvegia',
       'PL' : 'din Polonia',
       'PT' : 'din Portugalia',
       'RO' : 'din România',
       'SK' : 'din Slovacia',
       'ZA' : 'din Africa de Sud',
       'UA' : 'din Ucraina'
   },
   'ru' : {
       'AT' : 'в Австрии',
       'BE' : 'в Бельгии',
       'DK' : 'в Дании',
       'ES' : 'в Испании',
       'HU' : 'в Венгрии',
       'IL' : 'в Израиле',
       'LV' : 'в Латвии',
       'LU' : 'в Люксембурге',
       'MY' : 'в Малайзии',
       'NO' : 'в Норвегии',
       'PL' : 'в Польше',
       'PT' : 'в Португалии',
       'RO' : 'в Румынии',
       'SK' : 'в Словакии',
       'ZA' : 'в Южной Африке',
       'UA' : 'в Украине'
   },
   'sk' : {
       'AT' : 'v Rakúsku',
       'BE' : 'v Belgicku',
       'DK' : 'v Dánsku',
       'ES' : 'v Španielsku',
       'HU' : 'v Maďarsku',
       'IL' : 'v Izraeli',
       'LV' : 'v Lotyšsku',
       'LU' : 'v Luxembursku',
       'MY' : 'v Malajzii',
       'NO' : 'v Nórsku',
       'PL' : 'v Poľsku',
       'PT' : 'v Portugalsku',
       'RO' : 'v Rumunsku',
       'SK' : 'na Slovensku',
       'ZA' : 'v Juhoafrickej republike',
       'UA' : 'na Ukrajine'
   },
   'sv' : {
       'SE' : 'i Sverige',
       'AT' : 'i Österrike',
       'BE' : 'i Belgien',
       'CZ' : 'i Tjeckien',
       'DK' : 'i Danmark',
       'ES' : 'i Spanien',
       'GR' : 'i Grekland',
       'HU' : 'i Ungern',
       'IL' : 'i Israel',
       'LV' : 'i Lettland',
       'LU' : 'i Luxemburg',
       'MY' : 'i Malaysia',
       'NO' : 'i Norge',
       'PL' : 'i Polen',
       'PT' : 'i Portugal',
       'RO' : 'i Rumänien',
       'SK' : 'i Slovakien',
       'ZA' : 'i Sydafrika',
       'UA' : 'i Ukraina'
   },
   'uk' : {
       'AT' : 'у Австрії',
       'BE' : 'у Бельгії',
       'DK' : 'у Данії',
       'ES' : 'в Іспанії',
       'HU' : 'в Угорщині',
       'IL' : 'в Ізраїлі',
       'LV' : 'у Латвії',
       'LU' : 'у Люксембургу',
       'MY' : 'у Малайзії',
       'NO' : 'у Норвегії',
       'PL' : 'у Польщі',
       'PT' : 'у Португалії',
       'RO' : 'у Румунії',
       'SK' : 'у Словаччині',
       'ZA' : 'у ПАР',
       'UA' : 'в Україні'
   }

};

/* Most of the translations are actually using "in COUNTRY" or similar to account for grammar differences. So this makes English do the same, and allows us to use a clearer %in-country% variable, while avoiding breaking old content using %country%.

  • /

frb.inCountryNames = JSON.parse( JSON.stringify( frb.countryNames ) ); // deep copy frb.inCountryNames.en = {

   'US' : 'in the United States',
   'CA' : 'in Canada',
   'GB' : 'in the UK',
   'IE' : 'in Ireland',
   'AU' : 'in Australia',
   'NZ' : 'in New Zealand',
   'AR' : 'in Argentina',
   'AT' : 'in Austria',
   'BE' : 'in Belgium',
   'BR' : 'in Brazil',
   'CH' : 'in Switzerland',
   'CL' : 'in Chile',
   'CO' : 'in Colombia',
   'CZ' : 'in the Czech Republic',
   'DK' : 'in Denmark',
   'ES' : 'in Spain',
   'FR' : 'in France',
   'GR' : 'in Greece',
   'HK' : 'in Hong Kong',
   'HU' : 'in Hungary',
   'IL' : 'in Israel',
   'IN' : 'in India',
   'IT' : 'in Italy',
   'JP' : 'in Japan',
   'LU' : 'in Luxembourg',
   'LV' : 'in Latvia',
   'MX' : 'in Mexico',
   'MY' : 'in Malaysia',
   'NL' : 'in the Netherlands',
   'NO' : 'in Norway',
   'PE' : 'in Peru',
   'PL' : 'in Poland',
   'PT' : 'in Portugal',
   'RO' : 'in Romania',
   'SE' : 'in Sweden',
   'SK' : 'in Slovakia',
   'UA' : 'in Ukraine',
   'UY' : 'in Uruguay',
   'ZA' : 'in South Africa'

};

frb.dayNames = {

   'en' : [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],
   'ca' : [ 'diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte' ],
   'ja' : [ '日', '月', '火', '水', '木', '金', '土' ],
   'es' : [ 'domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado' ],
   'sv' : [ 'söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag' ],
   'da' : [ 'søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag' ],
   'nb' : [ 'søndagen', 'mandagen', 'tirsdagen', 'onsdagen', 'torsdagen', 'fredagen', 'lørdagen' ],
   'it' : [ 'domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato' ],
   'nl' : [ 'zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag' ],
   'fr' : [ 'dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi' ],
   'de' : [ 'Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag' ],
   'he' : [ 'ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת' ],
   'lv' : [ 'svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā' ],
   'pl' : [ 'niedzielę', 'poniedziałek', 'wtorek', 'środę', 'czwartek', 'piątek', 'sobotę' ],
   'pt' : [ 'neste domingo', 'nesta segunda-feira', 'nesta terça-feira', 'nesta quarta-feira', 'nesta  quinta-feira', 'nesta sexta-feira', 'neste sábado' ],
   'ru' : [ 'воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу' ],
   'uk' : [ 'неділі', 'понеділка', 'вівторка', 'середи', 'четверга', 'п’ятниц', 'суботи' ],
   'hu' : [ 'vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat' ],
   'ro' : [ 'duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă' ],
   'af' : [ 'Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag' ],
   'aa' : [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]

};

// "This fooday" translations. Needed for some languages where gender varies and "this" must agree frb.dayNamesThis = {

   'en' : [ 'this Sunday', 'this Monday', 'this Tuesday', 'this Wednesday', 'this Thursday', 'this Friday', 'this Saturday' ],
   'el' : [ 'Αυτήν την	Κυριακή', 'Αυτή τη Δευτέρα', 'Αυτήν την	Τρίτη', 'Αυτήν την Τετάρτη', 'Αυτήν την	Πέμπτη', 'Αυτήν την Παρασκευή', 'Αυτό το Σάββατο' ],
   'jp' : [ 'この日曜日', 'この月曜日', 'この火曜日', 'この水曜日', 'この木曜日', 'この金曜日', 'この土曜日' ],
   'it' : [ 'questa domenica', 'questo lunedì', 'questo martedì', 'questo mercoledì', 'questo giovedì', 'questo venerdì', 'questo sabato'],
   'pl' : [ 'w tę niedzielę', 'w ten poniedziałek', 'w ten wtorek', 'w tę środę', 'w ten czwartek', 'w ten piątek', 'w tę sobotę' ],
   'ru' : [ 'в это воскресенье', 'в этот понедельник', 'в этот вторник', 'в эту среду', 'в этот четверг', 'в эту пятницу', 'в эту субботу' ],
   'uk' : [ 'цієї неділі', 'цього понеділка', 'цього вівторка', 'цієї середи', 'цього четверга', 'цієї п’ятниці', 'цієї суботи' ],
   'pt' : [ 'este domingo', 'esta segunda-feira', 'esta terça-feira', 'esta quarta-feira', 'esta quinta-feira', 'esta sexta-feira', 'este sábado'],
   'sk' : [ 'túto nedeľu', 'tento pondelok', 'tento utorok', 'túto stredu', 'tento štvrtok', 'tento piatok', 'túto sobotu'],
   'cs' : [ 'tuto neděli', 'toto pondělí', 'toto úterý', 'tuto středu', 'tento čtvrtek', 'tento pátek', 'tuto sobotu']

};

frb.iPadTranslations = {

   'en' : 'iPad'

};

   frb.amounts.options7.INR = [75, 300, 500, 1000, 1500, 3000, 5000];
   frb.amounts.ifEveryone.INR = 75;

/* jshint maxerr: 600 */ /* MediaWiki:FundraisingBanners/CoreJS-2018.js

* Core code for banner forms, with new inline error messages
*/

var frb = frb || {};

/**

* Test for general ES6 and <dialog> support
*
* Checks for arrow functions, default parameters, NodeList.prototype.forEach(), <dialog> support
* Should be roughly Chrome 51+, Firefox 98+, Edge 79+, Safari 15.4+
* Based on https://gist.github.com/bendc/d7f3dbc83d0f65ca0433caf90378cd95
* @return {boolean}
*/

frb.supportedBrowser = function() {

   try {
       new Function('(a = 0) => a');
       document.querySelectorAll('.frb').forEach(a => a);
       if ( typeof HTMLDialogElement === 'function' ) {
           return true;
       } else {
           return false;
       }
   }
   catch (err) {
       return false;
   }

}();

if ( !mw.centralNotice.adminUi ) { // T262693

   frb.loadedTime = Date.now();
   frb.didSelectAmount = false;
   frb.optinRequiredCountries =
       [ 'AR', 'AT', 'BE', 'BR', 'CL', 'CO', 'CZ', 'DK', 'ES', 'FR', 'GB', 'GR', 'HU', 'IE', 'IT', 'IL',
         'LU', 'LV', 'MX', 'NL', 'NO', 'PE', 'PL', 'PT', 'RO', 'SE', 'SK', 'UA', 'UY' ];
   frb.optinRequired = frb.optinRequiredCountries.indexOf(mw.centralNotice.data.country) !== -1;
   frb.maxUSD = 25000;
   frb.reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;

}

// Keyboard shortcut to go from banner preview to editor - Ctrl+Shift+E if ( mw.config.get('wgUserName') ) {

   if ( mw.config.get('wgUserName').match(/\(WMF\)/) ) {
       window.addEventListener('keydown', function(e) {
           if ( e.ctrlKey && e.shiftKey && e.keyCode === 69 ) {
               window.open( 'https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/Edit/' + mw.centralNotice.data.banner );
           }
       });
   }

}

/**

* Main function to submit to paymentswiki
*
* @param  {Object} options
* - method (required)
* - submethod (optional)
* - gateway (optional)
* - skipValidation (optional boolean, for pp-usd. Not yet implemented.)
* @param  {Boolean} isEndowment - deprecated, set frb.isEndowment instead
*/

frb.submitForm = function( options, isEndowment ) {

   var uri = new mw.Uri('https://payments.wikimedia.org/index.php/Special:GatewayChooser');
   var params = {};
   if ( !frb.validateForm( options ) ) {
       frb.extraData.validateError = 1; // Flag they had an error, even if fixed later
       return false; // Error, bail out of submitting
   }
   // Skip form chooser for Apple Pay / Google Pay
   if ( options.method === 'apple' || options.method === 'google' ) {
       uri = new mw.Uri('https://payments.wikimedia.org/index.php/Special:AdyenCheckoutGateway');
   }
   // Skip form chooser for Venmo
   if ( options.method === 'venmo' ) {
       uri = new mw.Uri('https://payments.wikimedia.org/index.php/Special:BraintreeGateway');
   }
   // Form selection data
   params.payment_method = options.method;
   if ( options.submethod ) {
       params.payment_submethod = options.submethod;
   }
   if ( options.gateway ) {
       params.gateway = options.gateway;
   }
   if ( options.variant ) {
       params.variant = options.variant;
   }
   params.recurring = frb.getRecurring();
   if ( params.recurring && params.variant && params.variant.match( /monthlyConvert/ ) ) {
       // Post-payments monthly convert makes no sense if it's already recurring
       // Avoid things like T312905
       delete params.variant;
   }
   params.currency = frb.getCurrency(mw.centralNotice.data.country) || 'USD';
   params.uselang = mw.centralNotice.data.uselang || 'en';
   params.country = mw.centralNotice.data.country || 'XX';
   if ( params.uselang === 'pt' && params.country === 'BR' ) {
       params.uselang = 'pt-br';
   }
   if ( params.uselang === 'es' &&
       ( params.country === 'AR' || params.country === 'CL' ||
         params.country === 'CO' || params.country === 'MX' ||
         params.country === 'PE' || params.country === 'UY' ||
         params.country === 'US' )
   ) {
       params.uselang = 'es-419';
   }
   // dLocal override for South Africa
   if ( params.payment_method === 'cc' && params.country === 'ZA' ) {
       params.gateway = 'astropay';
   }
   // Amount
   var amount = frb.getAmount();
   if ( $('#frb-ptf-checkbox').prop('checked') ) {
       amount = amount + frb.calculateFee(amount);
       frb.extraData.ptf = 1;
   }
   params.amount = amount;
   // Email optin
   if ( frb.optinRequired && $('input[name="opt_in"]').length > 0 ) {
       var opt_inValue = $('input[name="opt_in"]:checked').val();
       params.opt_in   = opt_inValue; // frb.validateForm() already checked it's 1 or 0
   }
   // Tracking info
   if ( isEndowment || frb.isEndowment ) {
       params.wmf_medium = 'endowment';
       params.appeal = 'EndowmentQuote';
   } else {
       params.wmf_medium = 'sitenotice';
   }
   params.wmf_campaign = mw.centralNotice.data.campaign || 'test';
   params.wmf_source   = frb.buildTrackingSource(params);
   frb.extraData.time = Math.round( (Date.now() - frb.loadedTime)/1000 );
   if ( !$.isEmptyObject( frb.extraData ) ) {
       params.wmf_key = frb.buildTrackingKey( frb.extraData );
   }
   // Link to Banner History if enabled
   var mixins = mw.centralNotice.getDataProperty( 'mixins' );
   if ( mixins && mixins.bannerHistoryLogger ) {
       params.bannerhistlog = mw.centralNotice.bannerHistoryLogger.id;
   }
   uri.extend(params);
   // Set a cookie with current location so we can return here from TY page
   mw.loader.using( [ 'mediawiki.cookie', 'mediawiki.util' ] ).then( function () {
       // Exclude URL parameters like banner, but cope with paths like /w/index.php?title=Foo
       var returnToUrl = window.location.origin + mw.util.getUrl();
       mw.cookie.set(
           'fundraising_returnTo',
           returnToUrl,
           { expires: 300, prefix: , domain: '.wikipedia.org', secure: true }
       );
   });
   if ( mixins && mixins.bannerHistoryLogger ) {
       mw.centralNotice.bannerHistoryLogger.ensureLogSent().always(function() {
           frb.goToPayments( uri );
       });
   } else {
       frb.goToPayments( uri );
   }

};

frb.goToPayments = function( uri ) {

   if ( window.top !== window.self ) {
       // banner is in a frame, open payments in a new tab
       window.open( uri.toString() );
   } else {
       window.location.href = uri.toString();
   }

};

/**

* Check the form for errors.
*
* Called on submission, can also be called on input
*
* @param {object} options
* @return {boolean} Whether form is error-free
*/

frb.validateForm = function( options ) {

   var error = false;
   /* Reset all errors */
   $('.frb-haserror').removeClass('frb-haserror');
   $('.frb-error').hide();
   if ( !options.method ) {
       error = true;
       $('.frb-methods').addClass('frb-haserror');
       $('.frb-error-method').show();
   }
   if ( !frb.validateAmount() ) {
       error = true;
   }
   /* Email optin */
   if ( frb.optinRequired && $('.frb-optin').is(':visible') ) {
       var opt_inValue = $('input[name="opt_in"]:checked').val();
       if ( opt_inValue !== '1' && opt_inValue !== '0' ) {
           $('.frb-optin').addClass('frb-haserror');
           $('.frb-error-optin').show();
           error = true;
       }
   }
   return !error;

};

/**

* Check if selected amount is valid i.e. a positive number, between minimum and maximum.
* If not, show an error and return false.
*/

frb.validateAmount = function() {

   var amount = frb.getAmount(),
       currency  = frb.getCurrency( mw.centralNotice.data.country ),
       minAmount = frb.amounts.minimums[ currency ],
       maxAmount = Math.round( frb.maxUSD * minAmount );
       // Math.round to account for floating point math errors: https://phabricator.wikimedia.org/T246262
   if ( amount === null || isNaN(amount) || amount <= 0 || amount < minAmount ) {
       $('fieldset.frb-amounts').addClass('frb-haserror');
       $('.frb-error-bigamount').hide();
       $('.frb-error-smallamount').show();
       return false;
   } else if ( amount > Math.round( maxAmount ) ) {
       $('fieldset.frb-amounts').addClass('frb-haserror');
       $('.frb-error-bigamount').show();
       return false;
   } else {
       $('fieldset.frb-amounts').removeClass('frb-haserror');
       $('.frb-error-smallamount, .frb-error-bigamount').hide();
       return true;
   }

};

/**

* Build the wmf_source for analytics.
*
* Own function so it can be overriden for weird tests
*
* @param  {Object} params
* @return {string} wmf_source
*/

frb.buildTrackingSource = function(params) {

   var wmf_source;
   var fullDottedPaymentMethod = params.payment_method;
   if ( params.recurring ) {
       fullDottedPaymentMethod = 'r' + fullDottedPaymentMethod;
   }
   if ( params.payment_submethod ) {
       fullDottedPaymentMethod = fullDottedPaymentMethod + '.' + params.payment_submethod;
   }
   wmf_source = mw.centralNotice.data.banner;
   // Keeping opt-in in wmf_source for safety for now
   // Eventually remove it, or move to wmf_key?
   if ( params.opt_in ) {
       wmf_source += '_optIn' + params.opt_in;
   }
   wmf_source += '.no-LP.' + fullDottedPaymentMethod;
   return wmf_source;

};

/**

* Build a string for wmf_key from extra tracking data
*
* @param  {Object} data
* @return {string} wmf_key
*/

frb.buildTrackingKey = function(data) {

   var dataArray = [];
   for (var key in data) {
       if (data.hasOwnProperty(key)) {
           dataArray.push( key + '_' + data[key] );
       }
   }
   return dataArray.join('~');

};

/**

* Determine if we should show recurring choice on step 2
* 
* NOTE 2023-12-07: we don't currently use this for step 2, since there are no
*	banners where users select method before frequency. However it is used by
*	frb.shouldShowMonthlyConvert()
*
* @param  {Object} options     Including method and optional gateway
* @param  {String} country
* @return {boolean}
*/

frb.shouldShowRecurring = function( options, country ) {

   if ( frb.isEndowment ) {
       return false;
   }
   if ( frb.noRecurringCountries.indexOf( country ) !== -1 ) { // Defined in LocalizeJS-2017.js
       return false;
   }
   if ( options.method === undefined ) {
       return true; // Show if a method hasn't been selected yet
   }
   if ( [ 'cc', 'venmo', 'apple', 'google' ].indexOf( options.method ) !== -1 ) {
       return true;
   }
   if ( options.method === 'paypal' ) {
   	if ( [ 'AR', 'BR', 'CL', 'CO', 'MX', 'PE', 'UY' ].includes( country ) ) {
   		return false;
   	} else {
   		return true;
   	}
   }
   // Adyen iDEAL
   if ( options.submethod === 'rtbt_ideal' ) {
       return true;
   }
   if ( options.submethod === 'upi' || options.submethod === 'paytmwallet' ) {
       return true;
   }
   return false;

};

/* Is recurring method selected? This function can be overriden for different forms */ frb.getRecurring = function() {

   // Can't use simple form.frequency.value, doesn't work in IE
   var selected = $('#frb-form input[name="frequency"]:checked').val();
   return selected === 'monthly';

};

/* Return amount selected */ frb.getAmount = function() {

   var form = document.getElementById('frb-form');
   var amount = null;
   frb.extraData.otherAmt = 0;
   // If there are some amount radio buttons, then look for the checked one
   if (form.amount) {
       for (var i = 0; i < form.amount.length; i++) {
           if (form.amount[i].checked) {
               amount = form.amount[i].value;
           }
       }
   }
   // Check the "other" amount box
   if (form.otherAmount.value !== ) {
       var otherAmount = form.otherAmount.value;
       otherAmount = otherAmount.replace(/[,.](\d)$/, ':$10');
       otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, ':$1$2');
       otherAmount = otherAmount.replace(/[$£€¥,.]/g, );
       otherAmount = otherAmount.replace(/:/, '.');
       amount = otherAmount;
       frb.extraData.otherAmt = 1;
   }
   amount = parseFloat(amount);
   if ( isNaN(amount) ) {
       return 0;
   } else {
       return amount;
   }

};

/* Localize the amount errors. Call when initialising banner. */ frb.localizeErrors = function() {

   var currency  = frb.getCurrency( mw.centralNotice.data.country ),
       language = mw.centralNotice.data.uselang,
       minAmount = frb.amounts.minimums[ currency ],
       maxAmount = Math.round( frb.maxUSD * minAmount );
       // Math.round to account for floating point math errors: https://phabricator.wikimedia.org/T246262
   $('.frb-error-smallamount').text( function( index, oldText ) {
       return oldText.replace( '$1', frb.formatCurrency(currency, minAmount, language)  );
   });
   $('.frb-error-bigamount').text( function( index, oldText ) {
       // We cannot accept donations greater than $1 $2 through our website. Please contact our major gifts staff at $3.
       return oldText.replace( '$1', maxAmount )
                     .replace( '$2', currency )
                     .replace( '$3', 'benefactors@wikimedia.org' );
   });

};

/**

* Shared code for amount input handling
*/

frb.initAmountOptions = function() {

   // Reset "Other" input if user clicks a preset amount
   $('#frb-form [id^=frb-amt-ps]').click(function() {
       $('#frb-amt-other-input').val();
   });
   // Track if they selected and then later changed amount
   var checkAmountChange = function(e) {
       if ( frb.didSelectAmount ) {
           frb.extraData.changedAmt = 1;
       }
       // check if amount radio button is selected OR there is a value in the other amount
       if ( $('.frb-amounts input[type="radio"]:checked').val() !== 'Other' || $('#frb-amt-other-input').val().length > 0 ) {
           frb.didSelectAmount = true;
       }
       return;
   };
   $('.frb-amounts input[type="radio"]').on('change', checkAmountChange);
   $('#frb-amt-other-input').on('focusout', checkAmountChange);
   // Block typing non-numerics in input field, otherwise Safari allows them and then chokes
   // https://phabricator.wikimedia.org/T118741, https://phabricator.wikimedia.org/T173431
   var blockNonNumeric = function(e) {
       // Allow special keys in Firefox
       if ((e.code == 'ArrowLeft') || (e.code == 'ArrowRight') ||
           (e.code == 'ArrowUp') || (e.code == 'ArrowDown') ||
           (e.code == 'Delete') || (e.code == 'Backspace')) {
           return;
       }
       var chr = String.fromCharCode(e.which);
       if ("0123456789., ".indexOf(chr) === -1) {
           return false;
       }
   };
   $('#frb-amt-other-input').on('keypress', blockNonNumeric);
   $('#frb-amt-monthly-other-input').on('keypress', blockNonNumeric);

};

/**

* Calculate approximate transaction fee on given amount
*
* @param  {number} amount
* @return {number}        Rounded to 2 decimal places
*/

frb.calculateFee = function(amount) {

   var currency = frb.getCurrency(mw.centralNotice.data.country),
       feeMultiplier = 0.04,
       feeMinimum = frb.amounts.feeMinimums[currency] || 0.35,
       feeAmount = amount * feeMultiplier;
   if ( feeAmount < feeMinimum ) {
     feeAmount = feeMinimum;
   }
   return parseFloat(feeAmount.toFixed(2));

};

frb.updateFeeDisplay = function() {

   var currency = frb.getCurrency(mw.centralNotice.data.country),
       language = mw.centralNotice.data.uselang,
       amount, feeAmount, totalAmount;
   amount = frb.getAmount();
   feeAmount = frb.calculateFee(amount);
   if ( $('#frb-ptf-checkbox').prop('checked') ) {
       totalAmount = amount + feeAmount;
   } else {
       totalAmount = amount;
   }
   var feeAmountFormatted = frb.formatCurrency(currency, feeAmount, language);
   $('.frb-ptf-fee').text(feeAmountFormatted);
   var totalAmountFormatted = frb.formatCurrency(currency, totalAmount, language);
   $('.frb-ptf-total').text(totalAmountFormatted);
   $('.frb-ptf').slideDown( frb.reduceMotion ? 0 : 400 );

};

/**

* Custom hide cookie function
*
* Purposely sets only for this domain.
* CentralNotice builtin method seems buggy - see T270401
*
* @param {string} reason Reason to store in the hide cookie
* @param {number} duration Cookie duration, in seconds
*/

frb.altSetHideCookie = function ( reason, duration ) {

   mw.loader.using( 'mediawiki.cookie' ).then( function () {
       var cookieName = 'centralnotice_hide_fundraising',
           date = new Date(),
           hideData = {
               v: 1,
               created: Math.floor( date.getTime() / 1000 ),
               reason: reason
           };
       // Re-use the same date object to set the cookie's expiry time
       date.setSeconds( date.getSeconds() + duration );
       mw.cookie.set(
           cookieName,
           JSON.stringify( hideData ),
           { expires: date, path: '/', domain: 'wikipedia.org', prefix:  }
       );
   });

};

/**

* Determine if banner should be shown, and set correct data for impression logging
*
* @return {boolean} Show banner?
*/

frb.shouldShowBanner = function() {

   mw.centralNotice.bannerData.hideResult = false;
   /* Hide in unsupported browsers */
   if ( !frb.supportedBrowser ) {
       mw.centralNotice.bannerData.hideResult = true;
       mw.centralNotice.bannerData.hideReason = 'browser';
   }
   /* Hide outside main namespace (except Main Page, for sites where it isn't in main namespace) */
   if ( mw.config.get('wgNamespaceNumber') > 0 && !mw.config.get('wgIsMainPage') ) {
       mw.centralNotice.bannerData.hideResult = true;
       mw.centralNotice.bannerData.hideReason = 'namespace';
   }
   // Hide banner on sensitive articles
   // TODO - possibly add wgWikibaseItemId for multilingual support and resilience to moves?
   var hideTitles = [ 'Murder of Don Banfield' ];
   if ( hideTitles.indexOf( mw.config.values.wgTitle ) !== -1 ) {
       mw.centralNotice.bannerData.hideResult = true;
       mw.centralNotice.bannerData.hideReason = 'article';
   }
   /* Hide banner if on wrong site (desktop/mobile) in case wrong device settings were chosen */
   var bannerName = mw.centralNotice.data.banner,
       skin = mw.config.get('skin');
   if (
        ( bannerName.indexOf('_dsk_') !== -1 && skin === 'minerva' ) ||
        ( bannerName.indexOf('_m_') !== -1 && skin !== 'minerva' )
   ) {
       mw.centralNotice.bannerData.hideResult = true;
       mw.centralNotice.bannerData.hideReason = 'other';
       console.warn('Hiding fundraising banner on wrong site (desktop/mobile)');
   }
   return !mw.centralNotice.bannerData.hideResult;

};

/* Debug function to highlight dynamically replaced elements */ frb.highlightReplacements = function() {

   $('.frb [class^="frb-replace"], .frb-ptf-fee, .frb-ptf-total, .frb-upsell-ask, frb-amt').css('background-color', '#fa0');

};

if ( !mw.centralNotice.adminUi ) { // T262693

   /**
    * Provides alterImpressionData hook for CentralNotice
    * This info will be sent back with Special:RecordImpression
    * TODO: check if/when we can remove this (and RecordImpression)
    */
   mediaWiki.centralNotice.bannerData.alterImpressionData = function( impressionData ) {
       // Returning true from this function indicates the banner was shown
       if (mediaWiki.centralNotice.bannerData.hideReason) {
           impressionData.reason = mediaWiki.centralNotice.bannerData.hideReason;
       }
       if (mediaWiki.centralNotice.bannerData.cookieCount) {
           impressionData.banner_count = mediaWiki.centralNotice.bannerData.cookieCount;
       }
       return !mediaWiki.centralNotice.bannerData.hideResult;
   };

}

/* End of MediaWiki:FundraisingBanners/CoreJS-2018.js */ /* jshint maxerr: 600 */ /* == MediaWiki:FundraisingBanners/LocalizeJS-2017.js == */ /* Note this has been replaced with MediaWiki:FundraisingBanners/LocalizeJS-2022.js */

/**

* Get the currency for a given country
*
* NOTE: The following currency mapping is WMF-specific based on payment
* provider availability, NOT necessarily the official currency of the country
*
* @param  {string} country code
* @return {string} currency code
*/

frb.getCurrency = function(country) {

   switch ( country ) {
       // Big 6
       case 'US': return 'USD';
       case 'CA': return 'CAD';
       case 'AU': return 'AUD';
       case 'NZ': return 'NZD';
       case 'GB': return 'GBP';
       case 'IE': return 'EUR';
       // Euro countries
       case 'AT':
       case 'BE':
       case 'ES':
       case 'FR':
       case 'IE':
       case 'IT':
       case 'LU':
       case 'LV':
       case 'NL':
       case 'PT':
       case 'SK':
           return 'EUR';
       // Others
       case 'DK': return 'DKK';
       case 'HU': return 'HUF';
       case 'IL': return 'ILS';
       case 'IN': return 'INR';
       case 'JP': return 'JPY';
       case 'MY': return 'MYR';
       case 'NO': return 'NOK';
       case 'PL': return 'PLN';
       case 'RO': return 'RON';
       case 'SE': return 'SEK';
       case 'UA': return 'UAH';
       case 'ZA': return 'ZAR';
       // Latin America
       case 'BR': return 'BRL';
       case 'AR': return 'ARS';
       case 'CL': return 'CLP';
       case 'CO': return 'COP';
       case 'MX': return 'MXN';
       case 'PE': return 'PEN';
       case 'UY': return 'UYU';
       case 'CH': return 'CHF';
       // Fall back to USD
       default:
           return 'USD';
   }

};

/**

* Format a currency value
*
* @param  {string} currency code. Leave undefined to get without symbol.
* @param  {number} amount
* @param  {string} language code
* @return {string} formatted string e.g. '$3', '£5', '10 €'
*/

frb.formatCurrency = function(currency, amount, language) {

   var locale, formatterOptions, formatter, fmAmount, supportsIntl;
   if ( isNaN(amount) || amount ===  ) {
       // Not a number, it's probably the 'other' string or box
       // TODO: better way of doing this?
       fmAmount = amount;
   } else {
       // Check browser support
       try {
           supportsIntl = typeof window.Intl === 'object';
       } catch (e) {
           supportsIntl = false; // T265396
       }
       if ( supportsIntl ) {
           // Use Intl for fancy number formatting - thousands separators etc
           locale = language + '-' + mw.centralNotice.data.country;
           if ( amount % 1 !== 0 ) {
               formatterOptions = { minimumFractionDigits: 2 };
           } else {
               formatterOptions = {};
           }
           formatter = new Intl.NumberFormat(locale, formatterOptions);
       } else {
           // Bad browser i.e. IE. Just do the basics: 2 decimal places if needed, or none
           formatter = {};
           formatter.format = function(number) {
               if ( amount % 1 !== 0 ) {
                   return number.toFixed(2);
               } else {
                   return number.toString();
               }
           };
       }
       fmAmount = formatter.format(amount);
   }
   // No symbol needed
   if ( currency === undefined ) {
       return fmAmount;
   }
   // Better dive into the formatting object
   if ( frb.currencyFormats[currency] === undefined ) {
       return currency + ' ' + fmAmount;
   }
   if ( frb.currencyFormats[currency] instanceof Object ) { // not a string
       if ( frb.currencyFormats[currency][language] !== undefined ) {
           return frb.currencyFormats[currency][language].replace('\t', fmAmount);
       }
       return frb.currencyFormats[currency]['default'].replace('\t', fmAmount);
   }
   return frb.currencyFormats[currency].replace('\t', fmAmount);

};

/*

* Select the correct amount or array of amounts from object in "source"
*
* @param {Object} source   - the amounts data object e.g. frb.amounts.options7, frb.amounts.averages
* @param {string} currency - ISO code of currency
* @param {string} country  - ISO code of country (optional)
* @return {array/number}   - depending on source
*/

frb.pickAmounts = function(source, currency, country) {

   if ( source[currency]['default'] ) { // we need to go deeper
       if ( source[currency][country] !== undefined ) {
           return source[currency][country];
       } else {
           return source[currency]['default'];
       }
   } else {
       return source[currency];
   }

};

/* Credit card types so we can show the correct logos */ frb.cardTypes = {

   // Big 6
   'US' : 'vmad',
   'CA' : 'vma',
   'GB' : 'vmaj',
   'IE' : 'vmaj',
   'AU' : 'vmaj',
   'NZ' : 'vma',
   // Euro countries
   'AT' : 'vmaj',
   'BE' : 'vmaj',
   'ES' : 'vmaj',
   'FR' : 'vma', // Adyen
   'IT' : 'vmaj',
   'LU' : 'vmaj',
   'LV' : 'vma',
   'NL' : 'vmaj', // Adyen
   'PT' : 'vmaj',
   'SK' : 'vmaj',
   // Others
   'DK' : 'vma',
   'HU' : 'vma',
   'IL' : 'vmad', // Adyen
   'JP' : 'vmj',
   'MY' : 'vmaj',
   'NO' : 'vma',
   'PL' : 'vma',
   'RO' : 'vma',
   'SE' : 'vma',
   'UA' : 'vma', // Adyen
   'ZA' : 'vm',
   'IN' : 'vmar' // dLocal

};

/**

* Should we show Apple Pay?
*
* Note there is a ~500ms delay in Safari when checking, so only call this if needed
*
* @param  {string} country
* @return {boolean}
*/

frb.shouldShowApplePay = function ( country ) {

   // https://support.apple.com/en-us/HT207957 - minus China mainland
   var appleCountries = [
       'ZA',
       'AU', 'HK', 'JP', 'MO', 'NZ', 'SG', 'TW',
       'AM', 'AT', 'AZ', 'BY', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 
       'EE', 'FO', 'FI', 'FR', 'GE', 'DE', 'GR', 'GL', 'GG', 'HU', 
       'IS', 'IE', 'IM', 'IT', 'KZ', 'JE', 'LV', 'LI', 'LT', 'LU', 
       'MT', 'MC', 'ME', 'NL', 'NO', 'PL', 'PT', 'RO', 'RU', 'SM', 
       'RS', 'SK', 'SI', 'ES', 'SE', 'CH', 'UA', 'GB', 'VA', 
       'CO', 'CR', 'BR', 'MX', 
       'BH', 'IL', 'PS', 'QA', 'SA', 'AE', 
       'CA', 'US'
   ];
   if ( appleCountries.indexOf( country ) === -1 ) {
       return false;
   }
   if ( location.search.match('forceApplePay') ) {
       return true;
   }
   if ( window.ApplePaySession ) {
       if ( ApplePaySession.canMakePayments() ) {
           return true;
       }
   }
   return false;

};

/**

* Display the correct payment methods for current country
*
* Methods should be labeled with class 'frb-pm-xxxx'
* TODO: clean this function up more
*
* @param  {string} country
*/

frb.localizeMethods = function(country) {

   // Test country with *all the methods*
   if ( country === 'ZZ' ) {
       $('.frb-payment-options > div').show();
       return;
   }
   // Hide recurring completely for some countries and endowment
   if ( frb.isEndowment || frb.noRecurringCountries.indexOf(country) !== -1 ) {
       $('.frb-frequency, .recurring-details').hide();
   }
   // Remove any leftover WorldPay and Adyen
   $('.frb-pm-cc-wp').remove();
   $('.frb-pm-cc-adyen').remove();
   // Monthly Adyen credit card is allowed now
   // if ( frb.ccAdyenCountries.indexOf( country ) !== -1 ) {
   //     $('.frb-pm-cc').addClass('no-monthly');
   // }
   // Countries with no PayPal option
   var noPP = ['IN', 'RU', 'SG', 'AE', 'QA', 'OM', 'BD', 'BO', 'PA',
               'PY', 'GT', 'JM', 'TT', 'DZ'];
   if ($.inArray(country, noPP) !== -1) {
       $('.frb-pm-pp').remove();
       $('.frb-pm-pp-usd').remove();
   }
   // Countries with no PayPal for mobile only - https://phabricator.wikimedia.org/T173001
   var noPPmobile = ['PH', 'ID', 'TH', 'KR', 'MY', 'VN'];
   var mobileRegex = /(_mob_|_ipd_|_m_)/;
   if ($.inArray(country, noPPmobile) !== -1) {
       if (mw.centralNotice.data.banner.search(mobileRegex) !== -1) {
           $('.frb-pm-pp').remove();
           $('.frb-pm-pp-usd').remove();
       }
   }
   // Countries where PayPal must be in USD
   var ppUSD = ['BG', 'HR', 'LT', 'MK', 'RO', 'UA', 'SA', 'CN', 'ID', 'KR',
                'KZ', 'MY', 'VN', 'AR', 'CL', 'DO', 'CO', 'NI', 'UY', 'ZA',
                'BH', 'LB', 'VE', 'TR', 'IS', 'BA', 'MV', 'BB', 'BM', 'BZ',
                'CR', 'CW', 'SX', 'HN', 'KN', 'DM', 'AG', 'LC', 'GD', 'FJ',
                'TN', 'BJ', 'BF', 'CI', 'GW', 'ML', 'NE', 'SN', 'TG', 'BR',
                'PE'];
   if ($.inArray(country, ppUSD) !== -1) {
       $('.frb-pm-pp').remove();
       $('.frb-pm-pp-usd').show();
   } else {
       $('.frb-pm-pp').show();
       $('.frb-pm-pp-usd').remove();
   }
   // Show any extra local payment methods, or remove them if not needed
   var extrapaymentmethods = {
       'amazon'   : ['US'],
       'bpay'     : [],
       'ideal'    : ['NL'],
       'bt'       : ['BR', 'AR', 'CO', 'CL', 'PE', 'IN', 'ZA'], // Bank Transfer (Astropay)
       'cash'     : ['BR', 'MX', 'AR', 'CO', 'PE', 'UY'],  // 'Cash' methods (Astropay)
       'pix'      : ['BR']
   };
   // Methods with different labels per country
   var language = mw.config.get('wgUserLanguage');
   var cashTranslation = 'Cash';
   var btTranslation = 'Bank Transfer';
   if (language === 'en') {
       if (country === 'BR') {
           cashTranslation = 'Boleto';
       }
   } else if (language === 'pt') {
       if (country === 'BR') {
           btTranslation   = 'Transferência Bancária';
           cashTranslation = 'Boleto';
       }
   } else if (language === 'es') {
       if (country === 'AR') {
           btTranslation   = 'Transferencia Bancaria';
           cashTranslation = 'Efectivo';
       }
       if (country === 'CL') {
           btTranslation   = 'WebPay';
       }
       if (country === 'CO') {
           btTranslation   = 'PSE Pagos';
           cashTranslation = 'Efectivo';
       }
       if (country === 'MX') {
           cashTranslation = 'Efectivo';
       }
       if (country === 'PE') {
           btTranslation   = 'Transferencia Bancaria';
           cashTranslation = 'Efectivo';
       }
       if (country === 'UY') {
           cashTranslation = 'Efectivo';
       }
   }
   $('.frb-pm-bt button,   .frb-pm-bt label,   button.frb-pm-bt'  ).text( btTranslation );
   $('.frb-pm-cash button, .frb-pm-cash label, button.frb-pm-cash').text( cashTranslation );
   for (var method in extrapaymentmethods) {
       var $methodbutton = $('.frb-pm-' + method);
       if ( $.inArray(country, extrapaymentmethods[method]) !== -1 && !frb.isEndowment ) {
           $methodbutton.show();
       } else {
           $methodbutton.remove();
       }
   }
   // Google Pay - separated from extrapaymentmethods as we want to show on Endowment too
   var googlePayCountries = [
       'AE', 'AT', 'AU', 'BE', 'BG', 'BR', 'CA', 'CH', 'CL', 'CO',
       'CZ', 'DE', 'DK', 'EE', 'ES', 'FR', 'GB', 'GR', 'HK', 'HR',
       'HU', 'IE', 'IL', 'IT', 'JP', 'LU', 'LV', 'MX', 'MY', 'NL',
       'NO', 'NZ', 'OM', 'PL', 'PT', 'QA', 'RO', 'RU', 'SA', 'SE',
       'SG', 'SK', 'TH', 'TR', 'TW', 'UA', 'US', 'VN', 'ZA'
   ];
   if ( $.inArray(country, googlePayCountries) !== -1 ) {
       $('.frb-pm-google').show();
   } else {
       $('.frb-pm-google').remove();
   }
   // Apple Pay
   if ( $('.frb-pm-applepay').length > 0 ) {
       if ( !frb.shouldShowApplePay( country ) ) {
           $('.frb-pm-applepay').remove();
       }
   }
   /* Add card types class to credit card button, so we can show correct logos */
   if ( frb.cardTypes[country] ) {
       $('.frb-pm-cc').addClass('frb-cctypes-' + frb.cardTypes[country] );
   }

};

/**

* Check scheduled payment method outages and hide buttons if needed
*
* Data at https://meta.wikimedia.org/wiki/MediaWiki:FR2013/Resources/PaymentOutages.js
* Methods should be labeled with class 'frb-pm-xxxx'
*
* @param  {string} country code
*/

frb.checkMethodOutages = function(country) {

   // TODO - can we load this a better way?
   /* This file can be used to schedule hiding of individual payment methods from banners
* e.g. if they have scheduled downtime.
*
* Valid methods are:
*	ideal, cc, pp, amazon, bpay, webmoney, cash, pp-usd
* (most of the time it's 'ideal'...)
* Can also limit outage to a specific country with country: "XX" (where XX is an ISO code)
*
* Note that in JavaScript dates the months (and only the months) start at 0.
* Jan=0, Feb=1, Mar=2, Apr=3 etc. How hateful.
*
* Be sure to also update donatewiki if needed e.g. by commenting the method templates
* found at https://donate.wikimedia.org/wiki/Template:2012FR/Form-section/Paymentmethods
* 
*/

var outages = [

   {
       start:      new Date(Date.UTC(2016, 8, 18, 1)),
       end:        new Date(Date.UTC(2016, 8, 18, 7)),
       method:     "ideal"
   }

]; // jshint ignore:line

   var now = new Date();
   for (var i = outages.length - 1; i >= 0; i--) {
       if ( now > outages[i].start && now < outages[i].end ) {
           if (outages[i].country === undefined || outages[i].country == country) {
               $('.frb-pm-' + outages[i].method).hide();
           }
       }
   }

};

/**

* Adjust the amount options and their labels
*
* Inputs should have id frb-amt-psX where X is the index number (starting from 1)
*
* @param  {Object}  source     - object with amounts e.g. frb.amounts.options7
* @param  {string}  currency   - currency code e.g. 'USD'
* @param  {string}  country    - country code  e.g. 'FR' Some currencies can have different options per country.
* @param  {string}  language   - language code e.g. 'en' For symbol formatting
* @param  {boolean} useSymbols - use currency symbols on labels or not? (3 vs $3)
*/

frb.localizeAmountOptions = function(source, currency, country, language, useSymbols) {

   var amountOptions = frb.pickAmounts(source, currency, country);
   $('#frb-form input[name="amount"]').each(function(index) {
       var $input = $(this);
       var $label = $input.siblings('label');
       var i = $input.attr('id').replace('frb-amt-ps', );
       var amount = amountOptions[i-1]; // because IDs start from 1
       if ( amount ) {
           $input.val( amount );
           if ( useSymbols ) {
               $label.text( frb.formatCurrency( currency, amount, language) );
           } else {
               $label.text( frb.formatCurrency( undefined, amount, language) );
           }
       }
   });

};

/**

* Make an element into a link
*
* @param  {string} selector    CSS selector for elements to convert to a link
* @param  {string} language    Code of language (could be es-419 or pt-br)
* @param  {string} baseUrl     URL of link (function will add language parameter)
*/

frb.makeLink = function( selector, language, baseUrl ) {

   var url = baseUrl + '&language=' + language;
   $( selector ).each( function() {
       var $link = $( '<a></a>' );
       $link.html( $( this ).html() );
       $link.attr( { href: url, target: '_blank' } );
       $( this ).replaceWith( $link );
   });

};

/**

* Get the number of banners seen from localStorage
* @return {number} Number of banners seen
*/

frb.getSeenCount = function () {

   // Force with URL parameter 'impression'
   if ( typeof URLSearchParams === 'function' ) { // not available in old browsers
       var urlParams = new URLSearchParams( window.location.search );
       if ( urlParams.has( 'impression' ) ) {
           return urlParams.get( 'impression' );
       }
   }
   try {
       if ( localStorage ) {
           var identifier = mw.centralNotice.internal.state.campaign.mixins.impressionDiet.cookieName,
               lsName = 'CentralNoticeKV|global|impression_diet_' + identifier,
               diet = JSON.parse( localStorage.getItem( lsName ) );
           if ( diet ) {
               return diet.val.seenCount;
           }
       }
   } catch ( ex ) {
       // do nothing - localStorage is configured not to let us read it, or mixin not set
       return;
   }

};

/**

* Replace placeholders with number of banners seen
* @param {string} Language code
*/

frb.replaceSeenCount = function( language ) {

   var ordinalNums = {
           'en' : [ , '1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th', '10th' ],
           'ja' : [ , '初めて', '2回目', '3回目', '4回目', '5回目', '6回目', '7回目', '8回目', '9回目', '10回目' ],
           'fr':  [ , '1er', '2e', '3e', '4e', '5e', '6e', '7e', '8e', '9e', '10e' ],
           'nl' : [ , '1e', '2e', '3e', '4e', '5e', '6e', '7e', '8e', '9e', '10e' ]
       },
       ordinalWords = {
           'en' : [ , 'first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth', 'tenth' ],
           'it' : [ , 'la prima', 'la seconda', 'la terza', 'la quarta', 'la quinta', 'la sesta', 'la settima', "l'ottava", 'la nona', 'la decima' ],
           'sv' : [ , 'första', 'andra', 'tredje', 'fjärde', 'femte', 'sjätte', 'sjunde', 'åttonde', 'nionde', 'tionde' ],
           'es' : [ , 'primera', 'segunda', 'tercera', 'cuarta', 'quinta', 'sexta', 'séptima', 'octava', 'novena', 'décima' ],
           'pt' : [ , 'primeira', 'segunda', 'terceira', 'quarta', 'quinta', 'sexta', 'sétima', 'oitava', 'nona', 'décima' ],
           'aa' : [ , 'primera', 'segunda', 'tercera', 'cuarta', 'quinta', 'sexta', 'séptima', 'octava', 'novena', 'décima' ],
           'ja' : [ , '初めて', '2回目', '3回目', '4回目', '5回目', '6回目', '7回目', '8回目', '9回目', '10回目' ],
           'fr' : [ , 'première', 'deuxième', 'troisième', 'quatrième', 'cinquième', 'sixième', 'septième', 'huitième', 'neuvième', 'dixième' ],
           'de' : [ , 'erste', 'zweite', 'dritte', 'vierte', 'fünfte', 'sechste', 'siebente', 'achte', 'neunte', 'zehnte' ]
       },
       textFragments = {
           'en' : [
               'for the 1st time recently',
               'for the 2nd time recently',
               'for the 3rd time recently',
               'for the 4th time recently',
               'for the 5th time recently',
               'for the 6th time recently',
               'for the 7th time recently',
               'for the 8th time recently',
               'for the 9th time recently',
               'for the 10th time recently'
           ]
       };
   var getReplaceText = function( data, language, seenCount ) {
       if ( data[ language ] ) {
           return data[ language ][ seenCount ];
       } else {
           return data[ 'en' ][ seenCount ];
       }
   };
   var seenCount = frb.getSeenCount();
   if ( seenCount ) {
       $( '.frb-replace-seenCount' ).text( seenCount );
       $( '.frb-replace-seenCount-ordinalNum' ).text( getReplaceText( ordinalNums, language, seenCount ) );
       $( '.frb-replace-seenCount-ordinalWord' ).text( getReplaceText( ordinalWords, language, seenCount ) );
       $( '.frb-replace-seenCount-textFragment' ).text( getReplaceText( textFragments, language, seenCount ) );
   }

};

/**

* Replace elements with preset ask string amounts
*
* e.g. class="frb-replace-amt-ps4" will be replaced with amount #4, currently $25 in the US
*
* @param  {string} currency - currency code e.g. 'USD'
* @param  {string} country  - country code  e.g. 'FR'
* @param  {string} language - language code e.g. 'en' For symbol formatting
*/

frb.replaceCustomAmounts = function( currency, country, language ) {

   var amountOptions = frb.pickAmounts( frb.amounts.options7, currency, country );
   $( '.frb [class^="frb-replace-amt-ps"]' ).each( function() {
       var i = $( this ).attr( 'class' ).replace( 'frb-replace-amt-ps',  ),
           amount = amountOptions[ i - 1 ],
           formattedAmount = frb.formatCurrency( currency, amount, language );
       $( this ).html( '<frb-amt>' + formattedAmount + '</frb-amt>' );
   });

};

frb.noRecurringCountries = ['AR', 'CL', 'CO', 'MX', 'PE', 'UY', 'BR', 'IN']; frb.ccAdyenCountries = ['FR', 'IL', 'UA'];

/* These countries use potentially ambiguous $ sign. Use ISO code instead in text (but still $ for buttons) */ frb.textAmountIsoCountries = ['AR', 'CL', 'CO', 'MX'];

$(function() {

   if ( mw.centralNotice.adminUi ) { // T262693
       return;
   }
   var language = mw.centralNotice.data.uselang;
   var variantLanguage; // for pt-br and es-419, note we can only use these for certain links
   var country  = mw.centralNotice.data.country;
   var currency = frb.getCurrency(country);
   if ( language === 'pt' && country === 'BR' ) {
       variantLanguage = 'pt-br';
   } else if ( language === 'es' && ['AR', 'CL', 'CO', 'PE', 'MX', 'UY'].indexOf( country ) !== -1 ) {
       variantLanguage = 'es-419';
   } else {
       variantLanguage = language;
   }
   // Payment methods
   frb.localizeMethods(country);
   frb.checkMethodOutages(country);
   // Preset amounts
   frb.replaceCustomAmounts( currency, country, language );
   // Basic replacements
   $('.frb-replace-currencysymbol').text( frb.formatCurrency( currency, , language ).replace(' ', ) );
   $('.frb-replace-currencycode').text( currency );
   // Count banners seen
   frb.replaceSeenCount( language );
   // Country name
   var countryName;
   if ( frb.countryNames[language] ) {
       countryName = frb.countryNames[language][country] || frb.countryNames.en[country];
   } else {
       countryName = frb.countryNames.en[country];
   }
   $('.frb-replace-countryname').text( countryName );
   // Day of week
   var now = new Date();
   var dayNumber = now.getDay();
   var capitalizeText = function( text ) {
       // Capitalize first letter, for use at start of sentence
       return text.charAt(0).toUpperCase() + text.slice(1);
   };
   if ( $('.frb-replace-dayofweek, .frb-replace-dayofweek-capitalize').length > 0 ) {
       if ( frb.dayNames[language] ) {
           $('.frb-replace-dayofweek').text( frb.dayNames[language][dayNumber] );
           $('.frb-replace-dayofweek-capitalize').text( capitalizeText( frb.dayNames[language][dayNumber] ) );
       } else {
           console.log('Warning: banner should contain a day of the week, but no translations found.');
       }
   }
   if ( $('.frb-replace-dayofweek-this, .frb-replace-dayofweek-this-capitalize').length > 0 ) {
       if ( frb.dayNamesThis[language] ) {
           $('.frb-replace-dayofweek-this').text( frb.dayNamesThis[language][dayNumber] );
           $('.frb-replace-dayofweek-this-capitalize').text( capitalizeText( frb.dayNamesThis[language][dayNumber] ) );
       } else {
           console.log('Warning: banner should contain "this DAY", but no translations found.');
       }
   }
   // Capitalize
   $('.frb-capitalize').text(function( index, text ) {
       return text.charAt(0).toUpperCase() + text.slice(1);
   });
   // Replace device with iPad if needed
   var ua = navigator.userAgent;
   if ( ua.match( /ipad/i ) ) {
       $('.frb-replace-device').text( frb.iPadTranslations[language] || frb.iPadTranslations.en );
   }
   // Replace %AVERAGE% and %MINIMUM%
   var average = frb.pickAmounts( frb.amounts.averages, currency, country ),
       ifEveryone = frb.pickAmounts( frb.amounts.ifEveryone, currency, country ),
       avgString,
       ifString;
   if ( frb.textAmountIsoCountries.indexOf(country) !== -1 ) {
       avgString = frb.formatCurrency( undefined, average, language ) + ' ' + currency;
       ifString  = frb.formatCurrency( undefined, ifEveryone, language ) + ' ' + currency;
   } else {
       avgString = frb.formatCurrency( currency, average, language ).replace( /\.$/,  ); // strip any period from end for use in running text
       ifString  = frb.formatCurrency( currency, ifEveryone, language ).replace( /\.$/,  );
   }
   $( '.frb' ).each( function( index ) {
       var newHtml = $(this).html();
       newHtml = newHtml.replace( /%AVERAGE%/g, '<frb-amt>' + avgString + '</frb-amt>' );
       newHtml = newHtml.replace( /%MINIMUM%/g, '<frb-amt>' + ifString + '</frb-amt>' );
       $( this ).html( newHtml );
   });
   /**
    * Call a function on every text node contained by a root node.
    *
    * Used so we can do text replacements without accidentally clobbering html and scripts
    *
    * @param  {Node}     rootNode The Node object whose descendants will be recursed through
    * @param  {Function} callback Callback function that receives a Node as its only argument
    */
   function eachTextNode( rootNode, callback ) {
       for ( var node = rootNode.firstChild; node !== null; node = node.nextSibling ) {
           if ( node.nodeType === Node.TEXT_NODE ) {
               callback( node );
           } else if ( node.nodeType === Node.ELEMENT_NODE ) {
               eachTextNode( node, callback );
           }
       }
   }
   // French spacing: replace space before punctuation with  
   if ( language === 'fr' ) {
       var bannerRootElements = document.getElementsByClassName( 'frb' );
       for ( var i = 0; i < bannerRootElements.length; i++ ) {
           eachTextNode( bannerRootElements[i], function( node ) {
               node.textContent = node.textContent.replace( / ([!?;:%])/g, '\u00a0$1' );
           });
       }
   }
   // Links (in smallprint) TODO: merge with frb.makeLink()
   $('.frb-localize-links a').each(function() {
       // Add parameters for LandingCheck
       var uri = new mw.Uri( $(this).attr('href') );
       uri.extend({
           country:      country,
           language:     variantLanguage,
           uselang:      variantLanguage,
           utm_medium:   'sitenotice',
           utm_campaign: mw.centralNotice.data.campaign || 'test',
           utm_source:   mw.centralNotice.data.banner
       });
       $(this).attr('href', uri.toString());
       $(this).attr('target', '_blank'); // Make links open in new tab
   });
   // Add links
   frb.makeLink( '.frb-link-privacy', variantLanguage, 'https://foundation.wikimedia.org/wiki/Special:LandingCheck?basic=true&landing_page=Donor_privacy_policy' );
   frb.makeLink( '.frb-link-tax',     variantLanguage, 'https://donate.wikimedia.org/wiki/Special:LandingCheck?basic=true&landing_page=Tax_deductibility' );
   frb.makeLink( '.frb-link-cancel',  variantLanguage, 'https://donate.wikimedia.org/wiki/Special:LandingCheck?basic=true&landing_page=Cancel_or_change_recurring_giving' );
   // Legal text variants
   if (country === 'US') {
       $('.frb-legal-US').show();
       $('.frb-legal-nonUS, .frb-legal-NL').hide();
   } else if (country === 'NL') {
       $('.frb-legal-NL').show();
       $('.frb-legal-US, .frb-legal-nonUS').hide();
   } else {
       $('.frb-legal-nonUS').show();
       $('.frb-legal-US, .frb-legal-NL').hide();
   }
   // Quick hack for American/British/Commonwealth English differences
   if ( country === 'US' ) {
       $('.frb-lang-enUS').show();
       $('.frb-lang-en5C').hide();
   } else {
       $('.frb-lang-enUS').hide();
       $('.frb-lang-en5C').show();
   }
   // Where Remind Me Later should be shown
   var rmlCountries = ['US', 'CA', 'GB', 'IE', 'AU', 'NZ',
                       'IT', 'NL', 'JP', 'FR', 'SE', 'ZA', 'IN',
                       'AR', 'BR', 'CL', 'CO', 'PE', 'UY', 'MX'];
   var rmlLanguages = ['en', 'fr', 'nl', 'ja', 'it', 'sv', 'pt', 'es'];
   var rmlEnabled = !frb.isEndowment && rmlCountries.indexOf(country) !== -1 && rmlLanguages.indexOf(language) !== -1;
   if ( rmlEnabled ) {
       $('.frb').addClass('frb-rml-enabled');
   } else {
       $('.frb').addClass('frb-rml-disabled');
   }

});

/* == end of MediaWiki:FundraisingBanners/LocalizeJS-2017.js == */

frb.storedOptions = {}; frb.fadeDuration = frb.reduceMotion ? 0 : 200;

frb.setMethod = function (options, frequency) {

   frb.storedOptions = options;
   if( frequency === 'no-monthly' ) {
       $('#frb-frequency-monthly').attr('disabled', true);
   } else {
       $('#frb-frequency-monthly').attr('disabled', false);
   }
   if ( frb.optinRequired ) {
       $('.frb-optin').show();
   }
   $('.frb-step-2').fadeIn( frb.fadeDuration );

};

frb.toggleMonthly = function (monthly) {

   if (monthly.type === 'checkbox') {
       monthly = monthly.checked;
   }
   if (monthly) {
       $('#frb-frequency-monthly').prop("checked", true);
       $('#frb-monthly-checkbox').prop("checked", true);
       $('#frb-form').addClass('form-monthly');
       $('.no-monthly button').attr('disabled', true);
       $('.no-monthly').prop('disabled', false);
       $('#frb-form').addClass('form-monthly');
       if ($('.form-monthly .no-monthly input[type=radio]').is(':checked')) {
           $('.form-monthly .no-monthly input[type=radio]').removeAttr('checked');
           frb.setMethod({});
       }
   } else {
       $('#frb-frequency-onetime').prop("checked", true);
       $('#frb-monthly-checkbox').prop("checked", false);
       $('#frb-form').removeClass('form-monthly');
       $('.no-monthly button').attr('disabled', false);
   }

}; frb.postReminderForm = function () {

   // Create the iframe for the form and use it as the form's target
   var frameName = "remindFrame";
   var $form = $(".frb-inline-rml-form form");
   if ($("iframe[name=" + frameName + "]").length == 0) {
       var $iframe = $('<iframe style="display: none;" name="' + frameName + '"></iframe>');
       $form.attr("target", $iframe.attr("name"));
       $form.after($iframe);
   }
   $form[0].submit();

};

frb.getCurrentDate = function () {

   var today = new Date();
   var dd = today.getDate();
   var mm = today.getMonth() + 1; //January is 0!
   var yyyy = today.getFullYear();
   if (dd < 10) {
       dd = '0' + dd;
   }
   if (mm < 10) {
       mm = '0' + mm;
   }
   today = mm + '/' + dd + '/' + yyyy;
   return today;

};

frb.initReminderForm = function () {

   $('.frb-inline-rml-form input[name=rml_country]').val(mw.centralNotice.data.country);
   $('.frb-inline-rml-form input[name=rml_language]').val(mw.config.get('wgUserLanguage'));
   $('.frb-inline-rml-form input[name=rml_submitDate]').val(frb.getCurrentDate());
   $('.frb-inline-rml-form input[name=rml_segment]').val(Math.floor((Math.random() * 100) + 1));
   $('.frb-inline-rml-link').on('click', function (e) {
       $('.frb-inline-rml, .frb-nag-link').toggle();      
       // Use standard JS focus() method not jQuery, because of IE10 scrolling bug
       // https://phabricator.wikimedia.org/T162049
       $('.frb-inline-rml .email_input').get(0).focus();
       return false;
   });
   $('#frb-nag .frb-inline-rml-link').on('click', function (e) {
       $('.frb-inline-rml-form input[name="rml_source"]').val('{{{banner}}}_nag');
       return false;
   });
   $('.frb-inline-rml-form form button').on('click', function (e) {
       if (mw.util.validateEmail($('.frb-inline-rml-form form input[name="Email"]').val())) {
           frb.postReminderForm();
           $('.frb-inline-rml-form form').hide();
           $('.frb-inline-rml-done').show();
           $('.frb-inline-rml').delay(2000).fadeOut(1000, function () {
               $('#frb-inline').hide();
               $('#frb-nag').hide();
           });
           mw.centralNotice.internal.hide.setHideWithCloseButtonCookies(); // Hide future banners for 7 days
           return false;
       } else {
           $('.frb-inline-rml-form form input[name="Email"]').addClass('frb-haserror');
           $('.frb-inline-rml-form .frb-error-invalidemail').show();
           $('.frb-inline-rml .email_input').get(0).focus();
           return false;
       }
   });

};

frb.initNag = function () {

   /* --- Code for sticky "nag" banner --- */
   $(window).scroll(function () {
       // Check if element exists on scroll: important after email has been submitted in RML nag
       if ($('#frb-inline').length) {
           var nagRevealPosition = $('#frb-inline').offset().top + $('#frb-inline').outerHeight();
           if ($(window).scrollTop() < nagRevealPosition) {
               $('#frb-nag').finish();
               $('#frb-nag').removeClass('reveal');
               $('.frb-nag-rml').hide();
               $('.frb-inline-rml').appendTo('#frb-inline .frb-inline-rml-wrapper');
           } else {
               $('.frb-inline-rml').appendTo('#frb-nag');
               setTimeout(function () {
                   if (!$('#frb-nag').hasClass('reveal') && $(window).scrollTop() > nagRevealPosition) {
                       $('#frb-nag').addClass('reveal');
                   }
               }, 500);
           }
       }
   });
   $('.frb-nag-close').on('click', function (e) {
       $('.frb-inline-rml').appendTo('#frb-inline .frb-inline-rml-wrapper');
       $('#frb-nag').remove();
       return false;
   });
   $('#frb-nag').click(function () {
       frb.extraData.clickedNag = 1;
   });
   $('#frb-nag').show();

};

frb.insertMainBanner = function () {

   var $mainBanner = $('#frb-inline');
   $mainBanner.show().addClass('frb-country-' + mw.centralNotice.data.country);

};

$(function () {

   if ( mw.centralNotice.adminUi ) { // T262693    
       return; 
   }
   var language = mw.centralNotice.data.uselang;
   var country  = mw.centralNotice.data.country;
   var currency = frb.getCurrency(country);
   var validAmount, validStayInTouch;
   if ( !frb.optinRequired ) {
       validStayInTouch = 1;
   }
   var form = document.getElementById('frb-form');
   frb.extraData = {};
   frb.initReminderForm();
   frb.initAmountOptions();
   frb.localizeAmountOptions(frb.amounts.options7, currency, country, language, true);
   frb.localizeErrors();
   // new
   frb.activateCTA = function () {
       if (validAmount && validStayInTouch) {
           $('.frb-submit').addClass('active');
       } else {
           $('.frb-submit:not(#frb-btn-first-submit)').removeClass('active');
       }
   };
   // new
   $('.frb-amounts').on('input change', function () {
       frb.validateAmount();
       validAmount = 1;
       frb.updateFeeDisplay();
       frb.activateCTA();
   });
   $('.frb-optin').on('input change', function () {
       validStayInTouch = 1;
       frb.activateCTA();
   });
   frb.getMonthlyAmount = function () {
       var form = document.getElementById('frb-form');
       var amount = null;
       // Check the "monthly other" amount box
       if (form.otherMonthlyAmount.value !== ) {
           var otherMonthlyAmount = form.otherMonthlyAmount.value;
           otherMonthlyAmount = otherMonthlyAmount.replace(/[,.](\d)$/, ':$10');
           otherMonthlyAmount = otherMonthlyAmount.replace(/[,.](\d)(\d)$/, ':$1$2');
           otherMonthlyAmount = otherMonthlyAmount.replace(/[$£€¥,.]/g, );
           otherMonthlyAmount = otherMonthlyAmount.replace(/:/, '.');
           amount = otherMonthlyAmount;
       }
       amount = parseFloat(amount);
       if (isNaN(amount)) {
           return 0;
       } else {
           var totalMonthlyAmountFormatted = frb.formatCurrency(currency, amount, language);
           $('.frb-monthly-total').text(totalMonthlyAmountFormatted);
           return amount;
       }
   };
   frb.validateMonthlyAmount = function () {
       var amount = frb.getMonthlyAmount();
       var currency = frb.getCurrency( mw.centralNotice.data.country );
       var minAmount = frb.amounts.minimums[ currency ];
       if ( amount === null || isNaN(amount) || amount <= 0 || amount < minAmount ) {
           $('.frb-error-bigamount').hide();
           $('.frb-error-smallamount').show();
           return false;
       } else if ( amount > frb.maxUSD * minAmount ) {
           $('.frb-error-bigamount').show();
           return false;
       } else {
           $('.frb-error-smallamount, .frb-error-bigamount').hide();
           return true;
       }
   };
   frb.submitMonthly = function() {
       frb.extraData.monthlyUpsell = 1;
       frb.extraData.originalAmt = frb.getAmount().toString();
       frb.toggleMonthly(true);
       document.getElementById('frb-amt-other').checked = true;
       document.getElementById('frb-ptf-checkbox').checked = false;
       form.otherAmount.value = form.otherMonthlyAmount.value;
       frb.submitForm(frb.storedOptions);
   };
   // Close inline banner on click or return
   $('.frb-inline-close').on('click', function (e) {
       $('#frb-inline').hide();
       mw.centralNotice.hideBanner();
       e.stopPropagation();
   });
   // Close inline rml form on click or return
   $('.frb-inline-rml-form-close').on('click', function (e) {
       $('.frb-inline-rml').hide();
       $('.frb-nag-link').show(); 
       e.stopPropagation();
   });
   $('.frb-amt-other').click(function () {
       document.getElementById('frb-amt-other').checked = true;
       frb.updateFeeDisplay();
       $('#frb-amt-other-input').focus();
   });
   // Activate #input_amount_other radio when tabbing into #frb-amt-other-input
   $('#frb-amt-other-input').focus(function () {
       document.getElementById('frb-amt-other').checked = true;
       frb.updateFeeDisplay();
   });
   frb.updateUpsellAsk = function(isOtherAmountStep) {
       var amount, feeAmount, upsellAmount,
           list = frb.amounts.monthlySuggest[currency] || frb.amounts.monthlySuggest.USD;
       // If user is on third step (write a different amount) then get monthly amount if not, the the first form amount
       if (isOtherAmountStep !== undefined) {
           amount = frb.getMonthlyAmount();
       } else {
           amount = frb.getAmount(form);
       }
       // If PTF is checked when we need to calculate the fee for that amount
       if ( $('#frb-ptf-checkbox').prop('checked') ) {
           amount = amount + frb.calculateFee(amount);
       }
       for (var i = list.length - 1; i >= 0; i--) {
           if ( amount <= list[i][0] ) {
               upsellAmount = list[i][1];
           }
       }
       // If user is in the upsell (second step) then the form.otherMonthlyAmount.value will be updated with the upsellAmount calculated
       if (isOtherAmountStep === undefined) {
           form.otherMonthlyAmount.value = upsellAmount;
       }
       // A formatted value will be returned
       var upsellAmountFormatted = frb.formatCurrency(currency, upsellAmount, language);
       // The value of the amount will be updated only if the user is in the upsell (second step)
       if (isOtherAmountStep === undefined) {
           $('.frb-upsell-ask').text(upsellAmountFormatted);
       }
   };
   // Opt-in interaction
   $('.frb-optin').on('change', function() {
       frb.validStayInTouch = 1;
       $('.frb-optin').removeClass('frb-haserror');
       $('.frb-error-optin').hide();
       if ( $('#frb-optin-no').is(':checked') ) {
           $('.frb-optin-no-prompt').removeClass('is-positive');
           $('.frb-optin-no-prompt').slideDown( frb.reduceMotion ? 0 : 400 );
       } else {
           $('.frb-optin-no-prompt').addClass('is-positive');
       }
   });
   // Go to the next step of the form
   $('#frb-btn-first-submit').on('click', function (e) {
       e.preventDefault();
       if ( frb.validateForm( frb.storedOptions ) ) {
           frb.updateUpsellAsk();
                                                                     
           // Only do monthly convert if initial selection is one-time, payment method supports monthly, upsell value is not 0 (meaning skip), and payment method isn't credit card.
           if ( frb.getRecurring(document.getElementById('frb-form')) ||
                   !frb.shouldShowRecurring( frb.storedOptions, mw.centralNotice.data.country ) ||
                   form.otherMonthlyAmount.value == 0 ) {
               frb.submitForm(frb.storedOptions);
           } else {            
               $('.frb-step-1, .frb-step-2').fadeOut( frb.fadeDuration, function () {
                   $('.frb-step-upsell').fadeIn( frb.fadeDuration, function() {
                       $('html, body').animate( {
                           scrollTop: Math.min( window.scrollY, $('.frb-step-upsell').offset().top )
                       }, frb.fadeDuration );
                   });
               });
           }
       } else {
           frb.extraData.validateError = 1;
       }
   });
   /* Back buttons */
   $('.frb-step-upsell .frb-back').on('click', function (e) {
       $('.frb-step-upsell').fadeOut( frb.fadeDuration, function() {
           $('.frb-step-1, .frb-step-2').fadeIn( frb.fadeDuration );
       });
       return false;
   });
   $('.frb-step-monthly-diff-amt .frb-back').on('click', function (e) {
       $('.frb-step-monthly-diff-amt').fadeOut( frb.fadeDuration, function() {
           form.otherMonthlyAmount.value = ;
           frb.updateUpsellAsk();
           validAmount = 1;
           frb.activateCTA();
           frb.toggleMonthly(false);
           $('.frb-step-upsell').fadeIn( frb.fadeDuration );
       });
       return false;
   });
   // Donate monthly other amount
   $('.frb-step-monthly-diff-amt-link').on('click', function (e) {
       form.otherMonthlyAmount.value = ;
       validAmount = 0;
       frb.activateCTA();
       frb.toggleMonthly(true);
       $('.frb-step-upsell').fadeOut( frb.fadeDuration, function() {
           $('.frb-step-monthly-diff-amt').fadeIn( frb.fadeDuration );
       });
       return false;
   });
   // Validate monthly other amount
   $('#frb-amt-monthly-other-input').on('input change', function (e) {
       if (frb.validateMonthlyAmount()) {
           validAmount = 1;
           frb.updateUpsellAsk(true);
       } else {
           validAmount = 0;
       }
       frb.activateCTA();
   });
   // Submit/"Donate now" buttons
   $('#frb-monthly-donate-yes').on('click', function (e) {
       frb.submitMonthly();
       return false;
   });
   $('#frb-monthly-donate-no').on('click', function (e) {
       frb.submitForm(frb.storedOptions);
       return false;
   });
   $('#frb-donate-monthly-other').on('click', function (e) {
       if (frb.validateMonthlyAmount()) {
           frb.submitMonthly();
       }
       return false;
   });
   if ( frb.shouldShowBanner() ) {
       frb.insertMainBanner();
       frb.initNag();
   }

}); </script>