text: /* wnumb js */
  "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"function"==typeof define&&define.amd?define([],e):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=e():window.wNumb=e()}(function(){var i=["decimals","thousand","mark","prefix","postfix","encoder","decoder","negativeBefore","negative","edit","undo"];function x(e){return e.split("").reverse().join("")}function h(e,t){return e.substring(0,t.length)===t}function f(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function S(e){return"number"==typeof e&&isFinite(e)}function n(e,t,n,o,r,i,f,u,c,p,s,a){var d,l,y,h,m,g,b=a,v="",w="";return i&&(a=i(a)),!!S(a)&&(!1!==e&&0===parseFloat(a.toFixed(e))&&(a=0),a<0&&(d=!0,a=Math.abs(a)),!1!==e&&(h=a,m=e,g=Math.pow(10,m),a=(Math.round(h*g)/g).toFixed(m)),-1!==(a=a.toString()).indexOf(".")?(y=(l=a.split("."))[0],n&&(v=n+l[1])):y=a,t&&(y=x((y=x(y).match(/.{1,3}/g)).join(x(t)))),d&&u&&(w+=u),o&&(w+=o),d&&c&&(w+=c),w+=y,w+=v,r&&(w+=r),p&&(w=p(w,b)),w)}function o(e,t,n,o,r,i,f,u,c,p,s,a){var d,l,y="";return s&&(a=s(a)),!(!a||"string"!=typeof a)&&(u&&h(a,u)&&(a=a.replace(u,""),d=!0),o&&h(a,o)&&(a=a.replace(o,"")),c&&h(a,c)&&(a=a.replace(c,""),d=!0),r&&(l=r,a.slice(-1*l.length)===l)&&(a=a.slice(0,-1*r.length)),t&&(a=a.split(t).join("")),n&&(a=a.replace(n,".")),d&&(y+="-"),""!==(y=(y+=a).replace(/[^0-9\.\-.]/g,""))&&(y=Number(y),f&&(y=f(y)),!!S(y)&&y))}function r(e,t,n){var o,r=[];for(o=0;o<i.length;o+=1)r.push(e[i[o]]);return r.push(n),t.apply("",r)}return function e(t){if(!(this instanceof e))return new e(t);"object"===_typeof(t)&&(t=function(e){var t,n,o,r={};for(t=0;t<i.length;t+=1)if(void 0===(o=e[n=i[t]]))"negative"!==n||r.negativeBefore?"mark"===n&&"."!==r.thousand?r[n]=".":r[n]=!1:r[n]="-";else if("decimals"===n){if(!(0<=o&&o<8))throw new Error(n);r[n]=o}else if("encoder"===n||"decoder"===n||"edit"===n||"undo"===n){if("function"!=typeof o)throw new Error(n);r[n]=o}else{if("string"!=typeof o)throw new Error(n);r[n]=o}return f(r,"mark","thousand"),f(r,"prefix","negative"),f(r,"prefix","negativeBefore"),r}(t),this.to=function(e){return r(t,n,e)},this.from=function(e){return r(t,o,e)})}});