PageSourceSearch

https://www.transportmutual.com.au/App_Plugins/Merchello/client/lib/card-validator.min.js

js transportmutual.com.au collected 2026-10-08 02:49:09 UTC 16,977 bytes, 1 lines download raw bytes

1!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.cardValidator=e()}}(function(){return function e(n,t,r){function o(i,s){if(!t[i]){if(!n[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=t[i]={exports:{}};n[i][0].call(l.exports,function(e){var t=n[i][1][e];return o(t?t:e)},l,l.exports,e,n,t,r)}return t[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,n,t){n.exports={number:e("./src/card-number"),expirationDate:e("./src/expiration-date"),expirationMonth:e("./src/expiration-month"),expirationYear:e("./src/expiration-year"),cvv:e("./src/cvv"),postalCode:e("./src/postal-code")}},{"./src/card-number":28,"./src/cvv":29,"./src/expiration-date":30,"./src/expiration-month":31,"./src/expiration-year":32,"./src/postal-code":35}],2:[function(e,n,t){var r=e("lodash.isstring"),o=e("lodash.clonedeep"),a=[{niceType:"Visa",type:"visa",pattern:"^4\\d*$",gaps:[4,8,12],lengths:[16],code:{name:"CVV",size:3}},{niceType:"MasterCard",type:"master-card",pattern:"^5[1-5]\\d*$",gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},{niceType:"American Express",type:"american-express",pattern:"^3[47]\\d*$",isAmex:!0,gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},{niceType:"DinersClub",type:"diners-club",pattern:"^3(0[0-5]|[689])\\d*$",gaps:[4,10],lengths:[14],code:{name:"CVV",size:3}},{niceType:"Discover",type:"discover",pattern:"^6(011|5|4[4-9])\\d*$",gaps:[4,8,12],lengths:[16],code:{name:"CID",size:3}},{niceType:"JCB",type:"jcb",pattern:"^(2131|1800|35)\\d*$",gaps:[4,8,12],lengths:[16],code:{name:"CVV",size:3}},{niceType:"UnionPay",type:"unionpay",pattern:"^62\\d*$",gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVN",size:3}},{niceType:"Maestro",type:"maestro",pattern:"^(50|5[6-9]|6)\\d*$",gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}}];n.exports=function(e){var n,t,i={};if(!r(e))return i;for(n in a)if(a.hasOwnProperty(n)&&(t=a[n],RegExp(t.pattern).test(e)))return o(t);return i}},{"lodash.clonedeep":3,"lodash.isstring":27}],3:[function(e,n,t){function r(e,n,t){return n="function"==typeof n&&a(n,t,1),o(e,!0,n)}var o=e("lodash._baseclone"),a=e("lodash._bindcallback");n.exports=r},{"lodash._baseclone":4,"lodash._bindcallback":14}],4:[function(e,n,t){(function(t){function r(e,n,t,a,l,h,g){var b;if(t&&(b=l?t(e,a,l):t(e)),void 0!==b)return b;if(!c(e))return e;var m=y(e);if(m){if(b=i(e),!n)return d(e,b)}else{var x=Y.call(e),j=x==w;if(x!=V&&x!=v&&(!j||l))return R[x]?u(e,x,n):l?e:{};if(b=s(j?{}:e),!n)return p(b,e)}h||(h=[]),g||(g=[]);for(var _=h.length;_--;)if(h[_]==e)return g[_];return h.push(e),g.push(b),(m?f:o)(e,function(o,a){b[a]=r(o,n,t,a,e,h,g)}),b}function o(e,n){return h(e,n,b)}function a(e){return W.call(e,0)}function i(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&L.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function s(e){var n=e.constructor;return"function"==typeof n&&n instanceof n||(n=Object),new n}function u(e,n,t){var r=e.constructor;switch(n){case C:return a(e);case x:case j:return new r(+e);case D:case P:case U:case M:case B:case T:case F:case I:case N:var o=e.buffer;return new r(t?a(o):o,e.byteOffset,e.length);case O:case E:return new r(e);case $:var i=new r(e.source,z.exec(e));i.lastIndex=e.lastIndex}return i}function c(e){var n=typeof e;return"function"==n||!!e&&"object"==n}function l(e){return function(){return e}}var d=e("lodash._arraycopy"),f=e("lodash._arrayeach"),p=e("lodash._baseassign"),h=e("lodash._basefor"),y=e("lodash.isarray"),g=e("lodash.isnative"),b=e("lodash.keys"),v="[object Arguments]",m="[object Array]",x="[object Boolean]",j="[object Date]",_="[object Error]",w="[object Function]",A="[object Map]",O="[object Number]",V="[object Object]",$="[object RegExp]",k="[object Set]",E="[object String]",S="[object WeakMap]",C="[object ArrayBuffer]",D="[object Float32Array]",P="[object Float64Array
1]",U="[object Int8Array]",M="[object Int16Array]",B="[object Int32Array]",T="[object Uint8Array]",F="[object Uint8ClampedArray]",I="[object Uint16Array]",N="[object Uint32Array]",z=/\w*$/,R={};R[v]=R[m]=R[C]=R[x]=R[j]=R[D]=R[P]=R[U]=R[M]=R[B]=R[O]=R[V]=R[$]=R[E]=R[T]=R[F]=R[I]=R[N]=!0,R[_]=R[w]=R[A]=R[k]=R[S]=!1;var q=Object.prototype,L=q.hasOwnProperty,Y=q.toString,J=g(J=t.ArrayBuffer)&&J,W=g(W=J&&new J(0).slice)&&W,G=Math.floor,H=g(H=t.Uint8Array)&&H,K=function(){try{var e=g(e=t.Float64Array)&&e,n=new e(new J(10),0,1)&&e}catch(r){}return n}(),Q=K?K.BYTES_PER_ELEMENT:0;W||(a=J&&H?function(e){var n=e.byteLength,t=K?G(n/Q):0,r=t*Q,o=new J(n);if(t){var a=new K(o,0,t);a.set(new K(e,0,t))}return n!=r&&(a=new H(o,r),a.set(new H(e,r))),o}:l(null)),n.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash._arraycopy":5,"lodash._arrayeach":6,"lodash._baseassign":7,"lodash._basefor":9,"lodash.isarray":10,"lodash.isnative":11,"lodash.keys":12}],5:[function(e,n,t){function r(e,n){var t=-1,r=e.length;for(n||(n=Array(r));++t<r;)n[t]=e[t];return n}n.exports=r},{}],6:[function(e,n,t){function r(e,n){for(var t=-1,r=e.length;++t<r&&n(e[t],t,e)!==!1;);return e}n.exports=r},{}],7:[function(e,n,t){function r(e){return o(e)?e:Object(e)}function o(e){var n=typeof e;return"function"==n||!!e&&"object"==n}function a(e){return function(){return e}}var i=e("lodash._basecopy"),s=e("lodash.isnative"),u=e("lodash.keys"),c=s(c=Object.getOwnPropertySymbols)&&c,l=function(e,n){return null==n?e:i(n,d(n),i(n,u(n),e))},d=c?function(e){return c(r(e))}:a([]);n.exports=l},{"lodash._basecopy":8,"lodash.isnative":11,"lodash.keys":12}],8:[function(e,n,t){function r(e,n,t){t||(t={});for(var r=-1,o=n.length;++r<o;){var a=n[r];t[a]=e[a]}return t}n.exports=r},{}],9:[function(e,n,t){function r(e){return function(n,t,r){for(var a=o(n),i=r(n),s=i.length,u=e?s:-1;e?u--:++u<s;){var c=i[u];if(t(a[c],c,a)===!1)break}return n}}function o(e){return a(e)?e:Object(e)}function a(e){var n=typeof e;return"function"==n||!!e&&"object"==n}var i=r();n.exports=i},{}],10:[function(e,n,t){function r(e){return"string"==typeof e?e:null==e?"":e+""}function o(e){return!!e&&"object"==typeof e}function a(e){return"number"==typeof e&&e>-1&&e%1==0&&v>=e}function i(e){return null==e?!1:y.call(e)==c?g.test(h.call(e)):o(e)&&f.test(e)}function s(e){return e=r(e),e&&d.test(e)?e.replace(l,"\\$&"):e}var u="[object Array]",c="[object Function]",l=/[.*+?^${}()|[\]\/\\]/g,d=RegExp(l.source),f=/^\[object .+?Constructor\]$/,p=Object.prototype,h=Function.prototype.toString,y=p.toString,g=RegExp("^"+s(y).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=i(b=Array.isArray)&&b,v=Math.pow(2,53)-1,m=b||function(e){return o(e)&&a(e.length)&&y.call(e)==u};n.exports=m},{}],11:[function(e,n,t){function r(e){return"string"==typeof e?e:null==e?"":e+""}function o(e){return!!e&&"object"==typeof e}function a(e){return null==e?!1:p.call(e)==s?h.test(f.call(e)):o(e)&&l.test(e)}function i(e){return e=r(e),e&&c.test(e)?e.replace(u,"\\$&"):e}var s="[object Function]",u=/[.*+?^${}()|[\]\/\\]/g,c=RegExp(u.source),l=/^\[object .+?Constructor\]$/,d=Object.prototype,f=Function.prototype.toString,p=d.toString,h=RegExp("^"+i(p).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n.exports=a},{}],12:[function(e,n,t){function r(e){return function(n){return null==n?void 0:n[e]}}function o(e){return null!=e&&i(m(e))}function a(e,n){return e=+e,n=null==n?b:n,e>-1&&e%1==0&&n>e}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&b>=e}function s(e){for(var n=c(e),t=n.length,r=t&&e.length,o=r&&i(r)&&(d(e)||v.nonEnumArgs&&l(e)),s=-1,u=[];++s<t;){var f=n[s];(o&&a(f,r)||h.call(e,f))&&u.push(f)}return u}function u(e){var n=typeof e;return"function"==n||!!e&&"object"==n}function c(e){if(null==e)return[];u(e)||(e=Object(e));var n=e.length;n=n&&i(n)&&(d(e)||v.nonEnumArgs&&l(e))&&n||0;for(var t=e.constructor,r=-1,o="function"==typeof t&&t.prototype===e,s=Array(n),c=n>0;++r<n;)s[r]=r+"";for(var f in e)c&&a(f,n)||"constructor"==f&&(o||!h.call(e,f))||s.push(f);return s}var l=e("lodash.isarguments"),d=e("lodash.isarray"),f=e("lodash.isnative"),p=Object.prototype,h=p.hasOwnProperty,y=p.propertyIsEnumerable,g=f(g=Object.keys)&&g,b=Math.pow(2,53)-1,v={};!function(e){var n=function(){this.x=e},t=arguments,r=[];n.prototype={valueOf:e,y:e};
1for(var o in new n)r.push(o);try{v.nonEnumArgs=!y.call(t,1)}catch(a){v.nonEnumArgs=!0}}(1,0);var m=r("length"),x=g?function(e){var n=null!=e&&e.constructor;return"function"==typeof n&&n.prototype===e||"function"!=typeof e&&o(e)?s(e):u(e)?g(e):[]}:s;n.exports=x},{"lodash.isarguments":13,"lodash.isarray":10,"lodash.isnative":11}],13:[function(e,n,t){function r(e){return!!e&&"object"==typeof e}function o(e){return function(n){return null==n?void 0:n[e]}}function a(e){return null!=e&&i(f(e))}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&d>=e}function s(e){return r(e)&&a(e)&&l.call(e)==u}var u="[object Arguments]",c=Object.prototype,l=c.toString,d=Math.pow(2,53)-1,f=o("length");n.exports=s},{}],14:[function(e,n,t){function r(e,n,t){if("function"!=typeof e)return o;if(void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 3:return function(t,r,o){return e.call(n,t,r,o)};case 4:return function(t,r,o,a){return e.call(n,t,r,o,a)};case 5:return function(t,r,o,a,i){return e.call(n,t,r,o,a,i)}}return function(){return e.apply(n,arguments)}}function o(e){return e}n.exports=r},{}],15:[function(e,n,t){function r(e,n,t){var r=l(n);p.apply(r,h(n));for(var o=-1,a=r.length;++o<a;){var i=r[o],s=e[i],u=t(s,n[i],i,e,n);(u===u?u===s:s!==s)&&(void 0!==s||i in e)||(e[i]=u)}return e}function o(e){return a(e)?e:Object(e)}function a(e){var n=typeof e;return"function"==n||!!e&&"object"==n}function i(e){return function(){return e}}var s=e("lodash._baseassign"),u=e("lodash._createassigner"),c=e("lodash.isnative"),l=e("lodash.keys"),d=Array.prototype,f=c(f=Object.getOwnPropertySymbols)&&f,p=d.push,h=f?function(e){return f(o(e))}:i([]),y=u(function(e,n,t){return t?r(e,n,t):s(e,n)});n.exports=y},{"lodash._baseassign":16,"lodash._createassigner":18,"lodash.isnative":22,"lodash.keys":23}],16:[function(e,n,t){n.exports=e(7)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash._baseassign/index.js":7,"lodash._basecopy":17,"lodash.isnative":22,"lodash.keys":23}],17:[function(e,n,t){n.exports=e(8)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash._baseassign/node_modules/lodash._basecopy/index.js":8}],18:[function(e,n,t){function r(e){return i(function(n,t){var r=-1,i=null==n?0:t.length,s=i>2&&t[i-2],u=i>2&&t[2],c=i>1&&t[i-1];for("function"==typeof s?(s=o(s,c,5),i-=2):(s="function"==typeof c?c:null,i-=s?1:0),u&&a(t[0],t[1],u)&&(s=3>i?null:s,i=1);++r<i;){var l=t[r];l&&e(n,l,s)}return n})}var o=e("lodash._bindcallback"),a=e("lodash._isiterateecall"),i=e("lodash.restparam");n.exports=r},{"lodash._bindcallback":19,"lodash._isiterateecall":20,"lodash.restparam":21}],19:[function(e,n,t){n.exports=e(14)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._bindcallback/index.js":14}],20:[function(e,n,t){function r(e){return function(n){return null==n?void 0:n[e]}}function o(e){return null!=e&&s(l(e))}function a(e,n){return e=+e,n=null==n?c:n,e>-1&&e%1==0&&n>e}function i(e,n,t){if(!u(t))return!1;var r=typeof n;if("number"==r?o(t)&&a(n,t.length):"string"==r&&n in t){var i=t[n];return e===e?e===i:i!==i}return!1}function s(e){return"number"==typeof e&&e>-1&&e%1==0&&c>=e}function u(e){var n=typeof e;return"function"==n||!!e&&"object"==n}var c=Math.pow(2,53)-1,l=r("length");n.exports=i},{}],21:[function(e,n,t){function r(e,n){if("function"!=typeof e)throw new TypeError(o);return n=a(void 0===n?e.length-1:+n||0,0),function(){for(var t=arguments,r=-1,o=a(t.length-n,0),i=Array(o);++r<o;)i[r]=t[n+r];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,t[0],i);case 2:return e.call(this,t[0],t[1],i)}var s=Array(n+1);for(r=-1;++r<n;)s[r]=t[r];return s[n]=i,e.apply(this,s)}}var o="Expected a function",a=Math.max;n.exports=r},{}],22:[function(e,n,t){n.exports=e(11)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash.isnative/index.js":11}],23:[function(e,n,t){n.exports=e(12)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash.keys/index.js":12,"lodash.isarguments":24,"lodash.isarray":25,"lodash.isnative":22}],24:[function(e,n,t){n.exports=e(13)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash.keys/node_modules/lodash.isarguments/index.js":13}],25:[function(e,n,t){n.exports=e(10)},{"/Users/mrak/Developer/Braintree/card-validator/node_modules/credit-card-type/node_modules/lodash.clonedeep/node_modules/lodash._baseclone/node_modules/lodash.isarray/index.js":10}],26:[function(e,n,t){function r(e){return!!e&&"object"==typeof e}function o(e){return"number"==typeof e||r(e)&&s.call(e)==a}var a="[object Number]",i=Object.prototype,s=i.toString;n.exports=o},{}],27:[function(e,n,t){function r(e){return!!e&&"object"==typeof e}function o(e){return"string"==typeof e||r(e)&&s.call(e)==a}var a="[object String]",i=Object.prototype,s=i.toString;n.exports=o},{}],28:[function(e,n,t){function r(e,n,t){return s({},{card:e,isPotentiallyValid:n,isValid:t})}function o(e){var n;for(n in e)if(e.hasOwnProperty(n))return!1;return!0}function a(e){var n,t,a,s;if(l(e)&&(e=String(e)),!i(e))return r(null,!1,!1);if(""===e)return r(null,!0,!1);if(e=e.replace(/\-|\s/g,""),!/^\d*$/.test(e))return r(null,!1,!1);if(n=c(e),o(n))return r(null,!1,!1);for(t="unionpay"===n.type?!0:u(e),a=0;a<n.lengths.length;a++)if(n.lengths[a]===e.length)return r(n,t,t);return s=Math.max.apply(null,n.lengths),e.length<s?r(n,!0,!1):r(n,!1,!1)}var i=e("lodash.isstring"),s=e("lodash.assign"),u=e("./luhn-10"),c=e("credit-card-type"),l=e("lodash.isnumber");n.exports=a},{"./luhn-10":33,"credit-card-type":2,"lodash.assign":15,"lodash.isnumber":26,"lodash.isstring":27}],29:[function(e,n,t){function r(e,n){return{isValid:e,isPotentiallyValid:n}}function o(e,n){return n=n||i,a(e)&&/^\d*$/.test(e)?e.length===n?r(!0,!0):e.length<n?r(!1,!0):e.length>n?r(!1,!1):r(!0,!0):r(!1,!1)}var a=e("lodash.isstring"),i=3;n.exports=o},{"lodash.isstring":27}],30:[function(e,n,t){function r(e,n,t,r){return{isValid:e,isPotentiallyValid:n,month:t,year:r}}function o(e){var n,t,o;return u(e)?(e=e.replace(/^(\d\d) (\d\d(\d\d)?)$/,"$1/$2"),n=a(e),t=i(n.month),o=s(n.year),t.isValid&&o.isValid?r(!0,!0,n.month,n.year):t.isPotentiallyValid&&o.isPotentiallyValid?r(!1,!0,null,null):r(!1,!1,null,null)):r(!1,!1,null,null)}var a=e("./parse-date"),i=e("./expiration-month"),s=e("./expiration-year"),u=e("lodash.isstring");n.exports=o},{"./expiration-month":31,"./expiration-year":32,"./parse-date":34,"lodash.isstring":27}],31:[function(e,n,t){function r(e,n){return{isValid:e,isPotentiallyValid:n}}function o(e){var n,t;return a(e)?""===e.replace(/\s/g,"")||"0"===e?r(!1,!0):/^\d*$/.test(e)?(n=parseInt(e,10),isNaN(e)?r(!1,!1):(t=n>0&&13>n,r(t,t))):r(!1,!1):r(!1,!1)}var a=e("lodash.isstring");n.exports=o},{"lodash.isstring":27}],32:[function(e,n,t){function r(e,n){return{isValid:e,isPotentiallyValid:n}}function o(e){var n,t,o,s,u,c;return a(e)?""===e.replace(/\s/g,"")?r(!1,!0):/^\d*$/.test(e)?(s=e.length,2>s?r(!1,!0):(t=(new Date).getFullYear(),3===s?(o=e.slice(0,2),n=String(t).slice(0,2),r(!1,o===n)):s>4?r(!1,!1):(e=parseInt(e,10),u=Number(String(t).substr(2,2)),2===s?c=e>=u&&u+i>=e:4===s&&(c=e>=t&&t+i>=e),r(c,c)))):r(!1,!1):r(!1,!1)}var a=e("lodash.isstring"),i=19;n.exports=o},{"lodash.isstring":27}],33:[function(e,n,t){n.exports=function(e,n,t,r,o){for(r=+e[n=e.length-1],o=0;n--;)t=+e[n],r+=++o%2?2*t%10+(t>4):t;return!(r%10)}},{}],34:[function(e,n,t){function r(e){var n,t;return e.match("/")?(e=e.split(/\s*\/\s*/g),{month:e[0],year:e.slice(1).join()}):(t="0"===e[0]||e.length>5||4===e.length||3===e.length?2:1,n=e.substr(0,t),{month:n,year:e.substr(n.length,4)})}n.exports=r},{}],35:[function(e,n,t){function r(e,n){return{isValid:e,isPotentiallyValid:n}}function o(e){return a(e)?e.length<4?r(!1,!0):r(!0,!0):r(!1,!1)}var a=e("lodash.isstring");n.exports=o},{"lodash.isstring":27}]},{},[1])(1)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.