(function(c,b){var g=function(c){return new y(c)};g.version="0.1.3";var k=c.fxSetup||{rates:{},base:""};g.rates=k.rates;g.base=k.base;g.settings={from:k.from||g.base,to:k.to||g.base};var t=g.convert=function(c,b){if("object"===typeof c&&c.length){for(var d=0;d<c.length;d++)c[d]=t(c[d],b);return c}b=b||{};b.from||(b.from=g.settings.from);b.to||(b.to=g.settings.to);d=b.to;var z=b.from,l=g.rates;l[g.base]=1;if(!l[d]||!l[z])throw"fx error";d=z===g.base?l[d]:d===g.base?1/l[z]:1/l[z]*l[d];return c*d},y= | !function(t,e){var n=function(t){return new i(t)};n.version="0.1.3";var a=t.fxSetup||{rates:{},base:""};n.rates=a.rates,n.base=a.base,n.settings={from:a.from||n.base,to:a.to||n.base};var r=n.convert=function(t,e){if("object"==typeof t&&t.length){for(var a=0;a<t.length;a++)t[a]=r(t[a],e);return t}(e=e||{}).from||(e.from=n.settings.from),e.to||(e.to=n.settings.to);a=e.to;var i=e.from,s=n.rates;if(s[n.base]=1,!s[a]||!s[i])throw"fx error";return t*(a=i===n.base?s[a]:a===n.base?1/s[i]:s[a]*(1/s[i]))},i=function(t){"string"==typeof t?(this._v=parseFloat(t.replace(/[^0-9-.]/g,"")),this._fx=t.replace(/([^A-Za-z])/g,"")):this._v=t};(a=n.prototype=i.prototype).convert=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this._v),r.apply(n,t)},a.from=function(t){return(t=n(r(this._v,{from:t,to:n.base})))._fx=n.base,t},a.to=function(t){return r(this._v,{from:this._fx?this._fx:n.settings.from,to:t})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports.fx=fx):"function"==typeof define&&define.amd?define([],(function(){return n})):(n.noConflict=function(e){return function(){return t.fx=e,n.noConflict=undefined,n}}(t.fx),t.fx=n)}(this),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).numberCurrencyFormat=t()}((function(){return function t(e,n,a){function r(s,o){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,(function(t){return r(e[s][1][t]||t)}),f,f.exports,t,e,n,a)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<a.length;s++)r(a[s]);return r}({1:[function(t,e,n){"use strict";const a="LEFT",r="ALWAYS",i="NEVER",s="IF_NEEDED",o="AS_IS",c={currency:"",showDecimals:r,thousandSeparator:",",decimalSeparator:".",currencyPosition:"RIGHT",decimalsDigits:2,spacing:!0,arithmeticalRounding:!1};function u(t,e){return void 0!==t?t:e}function f(t){return t?{currency:t.currency||c.currency,thousandSeparator:u(t.thousandSeparator,c.thousandSeparator),decimalSeparator:u(t.decimalSeparator,c.decimalSeparator),showDecimals:t.showDecimals||c.showDecimals,decimalsDigits:u(t.decimalsDigits,c.decimalsDigits),currencyPosition:t.currencyPosition||c.currencyPosition,spacing:u(t.spacing,c.spacing),arithmeticalRounding:u(t.arithmeticalRounding,c.arithmeticalRounding)}:c}function l(t){return/^[\.,]$/.test(t)}e.exports={format:function(t,e){const n=f(e),c=n.showDecimals===o?t.toString():parseFloat((n.arithmeticalRounding?function(t,e){return+(Math.round(t+"e+"+e)+"e-"+e)}(t,n.decimalsDigits):+t).toString()).toFixed(n.showDecimals===i?0:n.decimalsDigits);if(isNaN(c))return t;const u=c.split("."),l=u[0],d=u[1]||"",p=n.showDecimals===r||n.showDecimals===s&&+d>0||n.showDecimals===o&&d.length>0?n.decimalSeparator+d:"",h=(m=l,g=n.thousandSeparator,m.split("").reduce((function(t,e,n){return t+e+(n<m.length-1&&(m.length-n-1)%3==0&&"-"!==e?g:"")}),"")+p);var m,g;if(n.currency){const t=n.spacing?" ":"";return n.currencyPosition===a?n.currency+t+h:h+t+n.currency}return h},unformat:function(t,e){const n=f(e),a=e&&e.decimalSeparator,r=t.replace(/\s/g,"").match(/[0-9]+|[^0-9]+/gi).map((function(t,e){return{value:t,isNumber:/[0-9]+/.test(t),index:e}})),i=r.filter((function(t){return t.isNumber})),s=r.filter((function(t){return!t.isNumber})),o=i[0],c=i[i.length-1],u=o.value>0?o:i.length>1&&i[1].value>0?i[1]:void 0;if(!u)return 0;const d=u.index>0?r[u.index-1]:void 0,p=d&&1===s.length&&l(d.value),h=c.index-1,m=h>=0&&r[h],g=s.filter((function(t){return t.index>o.index&&t.index<h})).map((function(t){return t.value})),_=g.length>0&&g.indexOf(m.value)<0,y=m&&m.value===a,v=c.value.length===n.decimalsDigits&&m&&l(m.value),x=(a?y:v||y||p||_)?c.value.length:0,b=d&&d.value,j=b&&"-"===b[b.length-1],w=i.map((function(t){return t.value})).join("");return parseFloat(w/Math.pow(10,x))*(j?-1:1)}}},{}]},{},[1])(1)}));var FC=FC||{};!function(t,e){var n={version:.8},r=/([{\|])p([+\-:])([\d\.]+)(?:\D{3})?([\|}])/,i=/^(\d+):/,s=!1,o={base:"USD",sets:[],max_rate_cache:12,rounding:"minimal",convert_display_only:!1,active_class:"active",use_openexchangerates:!1,adjust_price_display:null};function c(){for(var t=e.json.shipping_address.country,n=""==e.json.template_set?"DEFAULT":e.json.template_set,a="DEFAULT",r=0;r<settings.sets.length;r++)settings.sets[r].hasOwnProperty("countries")&&settings.sets[r].countries.indexOf(t)>-1&&(a=settings.sets[r].template_set);F()||(O(),a==n)?(m(),u()):h(a)}function u(n){var a=settings.sets.map((function(t,e){return t.currency})).filter((function(t,e,n){return n.indexOf(t)===e})),r=(n=void 0!==n&&n,F());r.hasOwnProperty("rates")&&(Date.now()-r.rates.timestamp)/60<36e4*parseFloat(settings.max_rate_cache)&&(n||r.fcsid==e.json.session_id)?(fx.rates=r.rates.rates,fx.base=r.rates.base,d()):n||(settings.use_openexchangerates?t.getJSON("https://openexchangerates.org/api/latest.json?app_id="+settings.use_openexchangerates+"&prettyprint=false&symbols="+a.join(","),(function(t){l(t.rates,t.base),d()})):t.getJSON("https://www.floatrates.com/daily/"+settings.base+".json",(function(t){for(var e={},n=0;n<a.length;n++)(t.hasOwnProperty(a[n].toLowerCase())||a[n]==settings.base)&&(e[a[n]]=a[n]==settings.base?1:t[a[n].toLowerCase()].rate);l(e,settings.base),d()})))}function l(t,e){fx.rates=t,fx.base=e,O({rates:t,base:e,timestamp:Date.now()})}function d(){var n=F();if(!n)return console.log("FC.currency: Unable to find locale information"),!1;var |