shadow$provide.module$node_modules$validator$lib$isCreditCard=function(global,process,require,module,exports,shadow$shims){Object.defineProperty(exports,"__esModule",{value:!0});exports.default=function(str){(0,_assertString2.default)(str);str=str.replace(/[- ]+/g,"");if(!creditCard.test(str))return!1;for(var sum=0,digit,shouldDouble=void 0,i=str.length-1;0<=i;i--)digit=str.substring(i,i+1),digit=parseInt(digit,10),shouldDouble?(digit*=2,sum=10<=digit?sum+(digit%10+1):sum+digit):sum+=digit,shouldDouble=
!shouldDouble;return!(0!==sum%10||!str)};var _assertString2=(global=require("module$node_modules$validator$lib$util$assertString"))&&global.__esModule?global:{default:global},creditCard=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|62[0-9]{14})$/;module.exports=exports["default"]}
//# sourceMappingURL=module$node_modules$validator$lib$isCreditCard.js.map
