"use strict";var l=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var h=(e,n)=>{for(var r in n)l(e,r,{get:n[r],enumerable:!0})},f=(e,n,r,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of o(n))!a.call(e,t)&&t!==r&&l(e,t,{get:()=>n[t],enumerable:!(u=i(n,t))||u.enumerable});return e};var s=e=>f(l({},"__esModule",{value:!0}),e);var p={};h(p,{luhnCheck:()=>m,luhnCheckValue:()=>g});module.exports=s(p);function m(e){return c(e)===0}function g(e){const n=c(e.replace(/L?$/,"0"));return n===0?0:10-n}function c(e){e=e.replace(/[\s-]/g,"");let n=0,r=!1;for(let u=e.length-1;u>=0;u--){let t=Number.parseInt(e[u]);r&&(t*=2,t>9&&(t=t%10+1)),n+=t,r=!r}return n%10}0&&(module.exports={luhnCheck,luhnCheckValue});
