Robin Herbots 4 年 前
コミット
5e74affee5

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "inputmask",
-  "version": "5.0.7-beta.28",
+  "version": "5.0.7-beta.29",
   "main": [
 	  "./index.js",
     "./css/inputmask.css"

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
   "name": "robinherbots/inputmask",
   "description": "Inputmask is a javascript library which creates an input mask.  Inputmask can run against vanilla javascript, jQuery and jqlite.",
-  "version": "5.0.7-beta.28",
+  "version": "5.0.7-beta.29",
   "type": "library",
   "keywords": ["jquery", "plugins", "input", "form", "inputmask", "mask"],
   "homepage": "http://robinherbots.github.io/Inputmask",

+ 131 - 128
dist/inputmask.js

@@ -3,7 +3,7 @@
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2021 Robin Herbots
  * Licensed under the MIT license
- * Version: 5.0.7-beta.28
+ * Version: 5.0.7-beta.29
  */
 !function(e, t) {
     if ("object" == typeof exports && "object" == typeof module) module.exports = t(); else if ("function" == typeof define && define.amd) define([], t); else {
@@ -2414,49 +2414,72 @@
                     e;
                 }
             },
-            4713: function(e, t) {
-                function i(e, t) {
-                    var i = (null != e.alternation ? e.mloc[a(e)] : e.locator).join("");
+            4713: function(e, t, i) {
+                Object.defineProperty(t, "__esModule", {
+                    value: !0
+                }), t.determineTestTemplate = u, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) {
+                    var r = this, o = this.opts, c = this.maskset, f = o.greedy;
+                    n && (o.greedy = !1);
+                    t = t || 0;
+                    var p, v, h, m, g = [], k = 0;
+                    do {
+                        if (!0 === e && c.validPositions[k]) h = n && !0 === c.validPositions[k].match.optionality && void 0 === c.validPositions[k + 1] && (!0 === c.validPositions[k].generatedInput || c.validPositions[k].input == o.skipOptionalPartCharacter && k > 0) ? u.call(r, k, d.call(r, k, p, k - 1)) : c.validPositions[k], 
+                        v = h.match, p = h.locator.slice(), g.push(!0 === i ? h.input : !1 === i ? v.nativeDef : s.call(r, k, v)); else {
+                            h = l.call(r, k, p, k - 1), v = h.match, p = h.locator.slice();
+                            var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : v.jit);
+                            (m = (m && v.static && v.def !== o.groupSeparator && null === v.fn || c.validPositions[k - 1] && v.static && v.def !== o.groupSeparator && null === v.fn) && c.tests[k] && 1 === c.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? v.nativeDef : s.call(r, k, v)) : m = !1;
+                        }
+                        k++;
+                    } while (!0 !== v.static || "" !== v.def || t > k);
+                    "" === g[g.length - 1] && g.pop();
+                    !1 === i && void 0 !== c.maskLength || (c.maskLength = k - 1);
+                    return o.greedy = f, g;
+                }, t.getPlaceholder = s, t.getTest = c, t.getTests = d, t.getTestTemplate = l, t.isSubsetOf = f;
+                var a, n = (a = i(2394)) && a.__esModule ? a : {
+                    default: a
+                };
+                function r(e, t) {
+                    var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
                     if ("" !== i) for (;i.length < t; ) i += "0";
                     return i;
                 }
-                function a(e) {
+                function o(e) {
                     var t = e.locator[e.alternation];
                     return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
                 }
-                function n(e, t, i) {
+                function s(e, t, i) {
                     var a = this.opts, n = this.maskset;
-                    if (void 0 !== (t = t || s.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
+                    if (void 0 !== (t = t || c.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
                     if (!0 === t.static) {
                         if (e > -1 && void 0 === n.validPositions[e]) {
-                            var r, o = u.call(this, e), l = [];
-                            if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var c = 0; c < o.length; c++) if ("" !== o[c].match.def && !0 !== o[c].match.optionality && !0 !== o[c].match.optionalQuantifier && (!0 === o[c].match.static || void 0 === r || !1 !== o[c].match.fn.test(r.match.def, n, e, !0, a)) && (l.push(o[c]), 
-                            !0 === o[c].match.static && (r = o[c]), l.length > 1 && /[0-9a-bA-Z]/.test(l[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
+                            var r, o = d.call(this, e), s = [];
+                            if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++) if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, n, e, !0, a)) && (s.push(o[l]), 
+                            !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
                         }
                         return t.def;
                     }
                     return a.placeholder.charAt(e % a.placeholder.length);
                 }
-                function r(e, t, i) {
-                    return this.maskset.validPositions[e] || o.call(this, e, u.call(this, e, t ? t.slice() : t, i));
+                function l(e, t, i) {
+                    return this.maskset.validPositions[e] || u.call(this, e, d.call(this, e, t ? t.slice() : t, i));
                 }
-                function o(e, t) {
-                    var a = this.opts;
+                function u(e, t) {
+                    var i = this.opts;
                     e = e > 0 ? e - 1 : 0;
-                    for (var n, r, o, l = i(s.call(this, e)), u = 0; u < t.length; u++) {
-                        var c = t[u];
-                        n = i(c, l.length);
-                        var f = Math.abs(n - l);
-                        (void 0 === r || "" !== n && f < r || o && !a.greedy && o.match.optionality && "master" === o.match.newBlockMarker && (!c.match.optionality || !c.match.newBlockMarker) || o && o.match.optionalQuantifier && !c.match.optionalQuantifier) && (r = f, 
-                        o = c);
+                    for (var a, n, o, s = r(c.call(this, e)), l = 0; l < t.length; l++) {
+                        var u = t[l];
+                        a = r(u, s.length);
+                        var f = Math.abs(a - s);
+                        (void 0 === n || "" !== a && f < n || o && !i.greedy && o.match.optionality && "master" === o.match.newBlockMarker && (!u.match.optionality || !u.match.newBlockMarker) || o && o.match.optionalQuantifier && !u.match.optionalQuantifier) && (n = f, 
+                        o = u);
                     }
                     return o;
                 }
-                function s(e, t) {
+                function c(e, t) {
                     var i = this.maskset;
-                    return i.validPositions[e] ? i.validPositions[e] : (t || u.call(this, e))[0];
+                    return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0];
                 }
-                function l(e, t, i) {
+                function f(e, t, i) {
                     function a(e) {
                         for (var t, i = [], a = -1, n = 0, r = e.length; n < r; n++) if ("-" === e.charAt(n)) for (t = e.charCodeAt(n + 1); ++a < t; ) i.push(String.fromCharCode(a)); else a = e.charCodeAt(n), 
                         i.push(e.charAt(n));
@@ -2464,18 +2487,18 @@
                     }
                     return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== a(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(a(e.match.fn.toString().replace(/[[\]/]/g, "")));
                 }
-                function u(e, t, i) {
-                    var a, n = this, r = this.dependencyLib, s = this.maskset, u = this.opts, c = this.el, f = s.maskToken, d = t ? i : 0, p = t ? t.slice() : [ 0 ], v = [], h = !1, m = t ? t.join("") : "";
-                    function g(t, i, n, r) {
-                        function o(n, r, f) {
-                            function p(e, t) {
+                function d(e, t, i) {
+                    var a, r = this, o = this.dependencyLib, s = this.maskset, l = this.opts, c = this.el, d = s.maskToken, p = t ? i : 0, v = t ? t.slice() : [ 0 ], h = [], m = !1, g = t ? t.join("") : "";
+                    function k(t, i, r, o) {
+                        function u(r, o, d) {
+                            function v(e, t) {
                                 var i = 0 === t.matches.indexOf(e);
                                 return i || t.matches.every((function(a, n) {
-                                    return !0 === a.isQuantifier ? i = p(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = p(e, a)), 
+                                    return !0 === a.isQuantifier ? i = v(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = v(e, a)), 
                                     !i;
                                 })), i;
                             }
-                            function k(e, t, i) {
+                            function y(e, t, i) {
                                 var a, n;
                                 if ((s.tests[e] || s.validPositions[e]) && (s.tests[e] || [ s.validPositions[e] ]).every((function(e, r) {
                                     if (e.mloc[t]) return a = e, !1;
@@ -2485,9 +2508,9 @@
                                     var r = a.locator[a.alternation];
                                     return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1);
                                 }
-                                return void 0 !== i ? k(e, t) : void 0;
+                                return void 0 !== i ? y(e, t) : void 0;
                             }
-                            function y(e, t) {
+                            function b(e, t) {
                                 var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
                                 if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) {
                                     i = n, a = !0;
@@ -2508,115 +2531,115 @@
                                 }
                                 return !1;
                             }
-                            function b(e, t) {
+                            function x(e, t) {
                                 if (e.locator.length !== t.locator.length) return !1;
                                 for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
                                 return !0;
                             }
-                            if (d > e + u._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + s.mask;
-                            if (d === e && void 0 === n.matches) {
-                                if (v.push({
-                                    match: n,
-                                    locator: r.reverse(),
-                                    cd: m,
+                            if (p > e + l._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + s.mask;
+                            if (p === e && void 0 === r.matches) {
+                                if (h.push({
+                                    match: r,
+                                    locator: o.reverse(),
+                                    cd: g,
                                     mloc: {}
-                                }), !0 !== n.optionality || void 0 !== f || !(u.definitions && u.definitions[n.nativeDef] && u.definitions[n.nativeDef].optional || Inputmask.prototype.definitions[n.nativeDef] && Inputmask.prototype.definitions[n.nativeDef].optional)) return !0;
-                                h = !0, d = e;
-                            } else if (void 0 !== n.matches) {
-                                if (n.isGroup && f !== n) {
-                                    if (n = o(t.matches[t.matches.indexOf(n) + 1], r, f)) return !0;
-                                } else if (n.isOptional) {
-                                    var x = n, P = v.length;
-                                    if (n = g(n, i, r, f)) {
-                                        if (v.forEach((function(e, t) {
-                                            t >= P && (e.match.optionality = !0);
-                                        })), a = v[v.length - 1].match, void 0 !== f || !p(a, x)) return !0;
-                                        h = !0, d = e;
+                                }), !0 !== r.optionality || void 0 !== d || !(l.definitions && l.definitions[r.nativeDef] && l.definitions[r.nativeDef].optional || n.default.prototype.definitions[r.nativeDef] && n.default.prototype.definitions[r.nativeDef].optional)) return !0;
+                                m = !0, p = e;
+                            } else if (void 0 !== r.matches) {
+                                if (r.isGroup && d !== r) {
+                                    if (r = u(t.matches[t.matches.indexOf(r) + 1], o, d)) return !0;
+                                } else if (r.isOptional) {
+                                    var P = r, E = h.length;
+                                    if (r = k(r, i, o, d)) {
+                                        if (h.forEach((function(e, t) {
+                                            t >= E && (e.match.optionality = !0);
+                                        })), a = h[h.length - 1].match, void 0 !== d || !v(a, P)) return !0;
+                                        m = !0, p = e;
                                     }
-                                } else if (n.isAlternator) {
-                                    var E, _ = n, S = [], w = v.slice(), M = r.length, O = !1, T = i.length > 0 ? i.shift() : -1;
-                                    if (-1 === T || "string" == typeof T) {
-                                        var C, A = d, D = i.slice(), j = [];
-                                        if ("string" == typeof T) j = T.split(","); else for (C = 0; C < _.matches.length; C++) j.push(C.toString());
+                                } else if (r.isAlternator) {
+                                    var _, S = r, w = [], M = h.slice(), O = o.length, T = !1, C = i.length > 0 ? i.shift() : -1;
+                                    if (-1 === C || "string" == typeof C) {
+                                        var A, D = p, j = i.slice(), B = [];
+                                        if ("string" == typeof C) B = C.split(","); else for (A = 0; A < S.matches.length; A++) B.push(A.toString());
                                         if (void 0 !== s.excludes[e]) {
-                                            for (var B = j.slice(), R = 0, L = s.excludes[e].length; R < L; R++) {
-                                                var I = s.excludes[e][R].toString().split(":");
-                                                r.length == I[1] && j.splice(j.indexOf(I[0]), 1);
+                                            for (var R = B.slice(), L = 0, I = s.excludes[e].length; L < I; L++) {
+                                                var F = s.excludes[e][L].toString().split(":");
+                                                o.length == F[1] && B.splice(B.indexOf(F[0]), 1);
                                             }
-                                            0 === j.length && (delete s.excludes[e], j = B);
+                                            0 === B.length && (delete s.excludes[e], B = R);
                                         }
-                                        (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && A >= u.keepStatic) && (j = j.slice(0, 1));
-                                        for (var F = 0; F < j.length; F++) {
-                                            C = parseInt(j[F]), v = [], i = "string" == typeof T && k(d, C, M) || D.slice();
-                                            var N = _.matches[C];
-                                            if (N && o(N, [ C ].concat(r), f)) n = !0; else if (0 === F && (O = !0), N && N.matches && N.matches.length > _.matches[0].matches.length) break;
-                                            E = v.slice(), d = A, v = [];
-                                            for (var V = 0; V < E.length; V++) {
-                                                var G = E[V], H = !1;
-                                                G.match.jit = G.match.jit || O, G.alternation = G.alternation || M, y(G);
-                                                for (var K = 0; K < S.length; K++) {
-                                                    var U = S[K];
-                                                    if ("string" != typeof T || void 0 !== G.alternation && j.includes(G.locator[G.alternation].toString())) {
-                                                        if (G.match.nativeDef === U.match.nativeDef) {
-                                                            H = !0, y(U, G);
+                                        (!0 === l.keepStatic || isFinite(parseInt(l.keepStatic)) && D >= l.keepStatic) && (B = B.slice(0, 1));
+                                        for (var N = 0; N < B.length; N++) {
+                                            A = parseInt(B[N]), h = [], i = "string" == typeof C && y(p, A, O) || j.slice();
+                                            var V = S.matches[A];
+                                            if (V && u(V, [ A ].concat(o), d)) r = !0; else if (0 === N && (T = !0), V && V.matches && V.matches.length > S.matches[0].matches.length) break;
+                                            _ = h.slice(), p = D, h = [];
+                                            for (var G = 0; G < _.length; G++) {
+                                                var H = _[G], K = !1;
+                                                H.match.jit = H.match.jit || T, H.alternation = H.alternation || O, b(H);
+                                                for (var U = 0; U < w.length; U++) {
+                                                    var $ = w[U];
+                                                    if ("string" != typeof C || void 0 !== H.alternation && B.includes(H.locator[H.alternation].toString())) {
+                                                        if (H.match.nativeDef === $.match.nativeDef) {
+                                                            K = !0, b($, H);
                                                             break;
                                                         }
-                                                        if (l(G, U, u)) {
-                                                            y(G, U) && (H = !0, S.splice(S.indexOf(U), 0, G));
+                                                        if (f(H, $, l)) {
+                                                            b(H, $) && (K = !0, w.splice(w.indexOf($), 0, H));
                                                             break;
                                                         }
-                                                        if (l(U, G, u)) {
-                                                            y(U, G);
+                                                        if (f($, H, l)) {
+                                                            b($, H);
                                                             break;
                                                         }
-                                                        if (Q = U, !0 === (W = G).match.static && !0 !== Q.match.static && Q.match.fn.test(W.match.def, s, e, !1, u, !1)) {
-                                                            b(G, U) || void 0 !== c.inputmask.userOptions.keepStatic ? y(G, U) && (H = !0, S.splice(S.indexOf(U), 0, G)) : u.keepStatic = !0;
+                                                        if (Y = $, !0 === (Q = H).match.static && !0 !== Y.match.static && Y.match.fn.test(Q.match.def, s, e, !1, l, !1)) {
+                                                            x(H, $) || void 0 !== c.inputmask.userOptions.keepStatic ? b(H, $) && (K = !0, w.splice(w.indexOf($), 0, H)) : l.keepStatic = !0;
                                                             break;
                                                         }
                                                     }
                                                 }
-                                                H || S.push(G);
+                                                K || w.push(H);
                                             }
                                         }
-                                        v = w.concat(S), d = e, h = v.length > 0, n = S.length > 0, i = D.slice();
-                                    } else n = o(_.matches[T] || t.matches[T], [ T ].concat(r), f);
-                                    if (n) return !0;
-                                } else if (n.isQuantifier && f !== t.matches[t.matches.indexOf(n) - 1]) for (var $ = n, z = i.length > 0 ? i.shift() : 0; z < (isNaN($.quantifier.max) ? z + 1 : $.quantifier.max) && d <= e; z++) {
-                                    var q = t.matches[t.matches.indexOf($) - 1];
-                                    if (n = o(q, [ z ].concat(r), q)) {
-                                        if ((a = v[v.length - 1].match).optionalQuantifier = z >= $.quantifier.min, a.jit = (z + 1) * (q.matches.indexOf(a) + 1) > $.quantifier.jit, 
-                                        a.optionalQuantifier && p(a, q)) {
-                                            h = !0, d = e;
+                                        h = M.concat(w), p = e, m = h.length > 0, r = w.length > 0, i = j.slice();
+                                    } else r = u(S.matches[C] || t.matches[C], [ C ].concat(o), d);
+                                    if (r) return !0;
+                                } else if (r.isQuantifier && d !== t.matches[t.matches.indexOf(r) - 1]) for (var z = r, q = i.length > 0 ? i.shift() : 0; q < (isNaN(z.quantifier.max) ? q + 1 : z.quantifier.max) && p <= e; q++) {
+                                    var W = t.matches[t.matches.indexOf(z) - 1];
+                                    if (r = u(W, [ q ].concat(o), W)) {
+                                        if ((a = h[h.length - 1].match).optionalQuantifier = q >= z.quantifier.min, a.jit = (q + 1) * (W.matches.indexOf(a) + 1) > z.quantifier.jit, 
+                                        a.optionalQuantifier && v(a, W)) {
+                                            m = !0, p = e;
                                             break;
                                         }
-                                        return a.jit && (s.jitOffset[e] = q.matches.length - q.matches.indexOf(a)), !0;
+                                        return a.jit && (s.jitOffset[e] = W.matches.length - W.matches.indexOf(a)), !0;
                                     }
-                                } else if (n = g(n, i, r, f)) return !0;
-                            } else d++;
-                            var W, Q;
+                                } else if (r = k(r, i, o, d)) return !0;
+                            } else p++;
+                            var Q, Y;
                         }
-                        for (var f = i.length > 0 ? i.shift() : 0; f < t.matches.length; f++) if (!0 !== t.matches[f].isQuantifier) {
-                            var p = o(t.matches[f], [ f ].concat(n), r);
-                            if (p && d === e) return p;
-                            if (d > e) break;
+                        for (var d = i.length > 0 ? i.shift() : 0; d < t.matches.length; d++) if (!0 !== t.matches[d].isQuantifier) {
+                            var v = u(t.matches[d], [ d ].concat(r), o);
+                            if (v && p === e) return v;
+                            if (p > e) break;
                         }
                     }
                     if (e > -1) {
                         if (void 0 === t) {
-                            for (var k, y = e - 1; void 0 === (k = s.validPositions[y] || s.tests[y]) && y > -1; ) y--;
-                            void 0 !== k && y > -1 && (p = function(e, t) {
+                            for (var y, b = e - 1; void 0 === (y = s.validPositions[b] || s.tests[b]) && b > -1; ) b--;
+                            void 0 !== y && b > -1 && (v = function(e, t) {
                                 var i, a = [];
-                                return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (a = o.call(n, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
+                                return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === l.keepStatic ? 0 === (a = u.call(r, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
                                     "" !== e.def && (0 === a.length ? (i = e.alternation, a = e.locator.slice()) : e.locator[i] && -1 === a[i].toString().indexOf(e.locator[i]) && (a[i] += "," + e.locator[i]));
                                 }))), a;
-                            }(y, k), m = p.join(""), d = y);
+                            }(b, y), g = v.join(""), p = b);
                         }
-                        if (s.tests[e] && s.tests[e][0].cd === m) return s.tests[e];
-                        for (var b = p.shift(); b < f.length; b++) {
-                            if (g(f[b], p, [ b ]) && d === e || d > e) break;
+                        if (s.tests[e] && s.tests[e][0].cd === g) return s.tests[e];
+                        for (var x = v.shift(); x < d.length; x++) {
+                            if (k(d[x], v, [ x ]) && p === e || p > e) break;
                         }
                     }
-                    return (0 === v.length || h) && v.push({
+                    return (0 === h.length || m) && h.push({
                         match: {
                             fn: null,
                             static: !0,
@@ -2627,30 +2650,10 @@
                         },
                         locator: [],
                         mloc: {},
-                        cd: m
-                    }), void 0 !== t && s.tests[e] ? r.extend(!0, [], v) : (s.tests[e] = r.extend(!0, [], v), 
+                        cd: g
+                    }), void 0 !== t && s.tests[e] ? o.extend(!0, [], h) : (s.tests[e] = o.extend(!0, [], h), 
                     s.tests[e]);
                 }
-                Object.defineProperty(t, "__esModule", {
-                    value: !0
-                }), t.determineTestTemplate = o, t.getDecisionTaker = a, t.getMaskTemplate = function(e, t, i, a, s) {
-                    var l = this, c = this.opts, f = this.maskset, d = c.greedy;
-                    s && (c.greedy = !1);
-                    t = t || 0;
-                    var p, v, h, m, g = [], k = 0;
-                    do {
-                        if (!0 === e && f.validPositions[k]) h = s && !0 === f.validPositions[k].match.optionality && void 0 === f.validPositions[k + 1] && (!0 === f.validPositions[k].generatedInput || f.validPositions[k].input == c.skipOptionalPartCharacter && k > 0) ? o.call(l, k, u.call(l, k, p, k - 1)) : f.validPositions[k], 
-                        v = h.match, p = h.locator.slice(), g.push(!0 === i ? h.input : !1 === i ? v.nativeDef : n.call(l, k, v)); else {
-                            h = r.call(l, k, p, k - 1), v = h.match, p = h.locator.slice();
-                            var y = !0 !== a && (!1 !== c.jitMasking ? c.jitMasking : v.jit);
-                            (m = (m && v.static && v.def !== c.groupSeparator && null === v.fn || f.validPositions[k - 1] && v.static && v.def !== c.groupSeparator && null === v.fn) && f.tests[k] && 1 === f.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? v.nativeDef : n.call(l, k, v)) : m = !1;
-                        }
-                        k++;
-                    } while (!0 !== v.static || "" !== v.def || t > k);
-                    "" === g[g.length - 1] && g.pop();
-                    !1 === i && void 0 !== f.maskLength || (f.maskLength = k - 1);
-                    return c.greedy = d, g;
-                }, t.getPlaceholder = n, t.getTest = s, t.getTests = u, t.getTestTemplate = r, t.isSubsetOf = l;
             },
             7215: function(e, t, i) {
                 Object.defineProperty(t, "__esModule", {

ファイルの差分が大きいため隠しています
+ 2 - 2
dist/inputmask.min.js


+ 131 - 128
dist/jquery.inputmask.js

@@ -3,7 +3,7 @@
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2021 Robin Herbots
  * Licensed under the MIT license
- * Version: 5.0.7-beta.28
+ * Version: 5.0.7-beta.29
  */
 !function(e, t) {
     if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
@@ -2356,49 +2356,72 @@
                     e;
                 }
             },
-            4713: function(e, t) {
-                function i(e, t) {
-                    var i = (null != e.alternation ? e.mloc[a(e)] : e.locator).join("");
+            4713: function(e, t, i) {
+                Object.defineProperty(t, "__esModule", {
+                    value: !0
+                }), t.determineTestTemplate = u, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) {
+                    var r = this, o = this.opts, c = this.maskset, f = o.greedy;
+                    n && (o.greedy = !1);
+                    t = t || 0;
+                    var p, h, v, m, g = [], k = 0;
+                    do {
+                        if (!0 === e && c.validPositions[k]) v = n && !0 === c.validPositions[k].match.optionality && void 0 === c.validPositions[k + 1] && (!0 === c.validPositions[k].generatedInput || c.validPositions[k].input == o.skipOptionalPartCharacter && k > 0) ? u.call(r, k, d.call(r, k, p, k - 1)) : c.validPositions[k], 
+                        h = v.match, p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : s.call(r, k, h)); else {
+                            v = l.call(r, k, p, k - 1), h = v.match, p = v.locator.slice();
+                            var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
+                            (m = (m && h.static && h.def !== o.groupSeparator && null === h.fn || c.validPositions[k - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && c.tests[k] && 1 === c.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? h.nativeDef : s.call(r, k, h)) : m = !1;
+                        }
+                        k++;
+                    } while (!0 !== h.static || "" !== h.def || t > k);
+                    "" === g[g.length - 1] && g.pop();
+                    !1 === i && void 0 !== c.maskLength || (c.maskLength = k - 1);
+                    return o.greedy = f, g;
+                }, t.getPlaceholder = s, t.getTest = c, t.getTests = d, t.getTestTemplate = l, t.isSubsetOf = f;
+                var a, n = (a = i(2394)) && a.__esModule ? a : {
+                    default: a
+                };
+                function r(e, t) {
+                    var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
                     if ("" !== i) for (;i.length < t; ) i += "0";
                     return i;
                 }
-                function a(e) {
+                function o(e) {
                     var t = e.locator[e.alternation];
                     return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
                 }
-                function n(e, t, i) {
+                function s(e, t, i) {
                     var a = this.opts, n = this.maskset;
-                    if (void 0 !== (t = t || s.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
+                    if (void 0 !== (t = t || c.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
                     if (!0 === t.static) {
                         if (e > -1 && void 0 === n.validPositions[e]) {
-                            var r, o = u.call(this, e), l = [];
-                            if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var c = 0; c < o.length; c++) if ("" !== o[c].match.def && !0 !== o[c].match.optionality && !0 !== o[c].match.optionalQuantifier && (!0 === o[c].match.static || void 0 === r || !1 !== o[c].match.fn.test(r.match.def, n, e, !0, a)) && (l.push(o[c]), 
-                            !0 === o[c].match.static && (r = o[c]), l.length > 1 && /[0-9a-bA-Z]/.test(l[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
+                            var r, o = d.call(this, e), s = [];
+                            if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++) if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, n, e, !0, a)) && (s.push(o[l]), 
+                            !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
                         }
                         return t.def;
                     }
                     return a.placeholder.charAt(e % a.placeholder.length);
                 }
-                function r(e, t, i) {
-                    return this.maskset.validPositions[e] || o.call(this, e, u.call(this, e, t ? t.slice() : t, i));
+                function l(e, t, i) {
+                    return this.maskset.validPositions[e] || u.call(this, e, d.call(this, e, t ? t.slice() : t, i));
                 }
-                function o(e, t) {
-                    var a = this.opts;
+                function u(e, t) {
+                    var i = this.opts;
                     e = e > 0 ? e - 1 : 0;
-                    for (var n, r, o, l = i(s.call(this, e)), u = 0; u < t.length; u++) {
-                        var c = t[u];
-                        n = i(c, l.length);
-                        var f = Math.abs(n - l);
-                        (void 0 === r || "" !== n && f < r || o && !a.greedy && o.match.optionality && "master" === o.match.newBlockMarker && (!c.match.optionality || !c.match.newBlockMarker) || o && o.match.optionalQuantifier && !c.match.optionalQuantifier) && (r = f, 
-                        o = c);
+                    for (var a, n, o, s = r(c.call(this, e)), l = 0; l < t.length; l++) {
+                        var u = t[l];
+                        a = r(u, s.length);
+                        var f = Math.abs(a - s);
+                        (void 0 === n || "" !== a && f < n || o && !i.greedy && o.match.optionality && "master" === o.match.newBlockMarker && (!u.match.optionality || !u.match.newBlockMarker) || o && o.match.optionalQuantifier && !u.match.optionalQuantifier) && (n = f, 
+                        o = u);
                     }
                     return o;
                 }
-                function s(e, t) {
+                function c(e, t) {
                     var i = this.maskset;
-                    return i.validPositions[e] ? i.validPositions[e] : (t || u.call(this, e))[0];
+                    return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0];
                 }
-                function l(e, t, i) {
+                function f(e, t, i) {
                     function a(e) {
                         for (var t, i = [], a = -1, n = 0, r = e.length; n < r; n++) if ("-" === e.charAt(n)) for (t = e.charCodeAt(n + 1); ++a < t; ) i.push(String.fromCharCode(a)); else a = e.charCodeAt(n), 
                         i.push(e.charAt(n));
@@ -2406,18 +2429,18 @@
                     }
                     return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== a(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(a(e.match.fn.toString().replace(/[[\]/]/g, "")));
                 }
-                function u(e, t, i) {
-                    var a, n = this, r = this.dependencyLib, s = this.maskset, u = this.opts, c = this.el, f = s.maskToken, d = t ? i : 0, p = t ? t.slice() : [ 0 ], h = [], v = !1, m = t ? t.join("") : "";
-                    function g(t, i, n, r) {
-                        function o(n, r, f) {
-                            function p(e, t) {
+                function d(e, t, i) {
+                    var a, r = this, o = this.dependencyLib, s = this.maskset, l = this.opts, c = this.el, d = s.maskToken, p = t ? i : 0, h = t ? t.slice() : [ 0 ], v = [], m = !1, g = t ? t.join("") : "";
+                    function k(t, i, r, o) {
+                        function u(r, o, d) {
+                            function h(e, t) {
                                 var i = 0 === t.matches.indexOf(e);
                                 return i || t.matches.every((function(a, n) {
-                                    return !0 === a.isQuantifier ? i = p(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = p(e, a)), 
+                                    return !0 === a.isQuantifier ? i = h(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = h(e, a)), 
                                     !i;
                                 })), i;
                             }
-                            function k(e, t, i) {
+                            function y(e, t, i) {
                                 var a, n;
                                 if ((s.tests[e] || s.validPositions[e]) && (s.tests[e] || [ s.validPositions[e] ]).every((function(e, r) {
                                     if (e.mloc[t]) return a = e, !1;
@@ -2427,9 +2450,9 @@
                                     var r = a.locator[a.alternation];
                                     return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1);
                                 }
-                                return void 0 !== i ? k(e, t) : void 0;
+                                return void 0 !== i ? y(e, t) : void 0;
                             }
-                            function y(e, t) {
+                            function b(e, t) {
                                 var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
                                 if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) {
                                     i = n, a = !0;
@@ -2450,115 +2473,115 @@
                                 }
                                 return !1;
                             }
-                            function b(e, t) {
+                            function x(e, t) {
                                 if (e.locator.length !== t.locator.length) return !1;
                                 for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
                                 return !0;
                             }
-                            if (d > e + u._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + s.mask;
-                            if (d === e && void 0 === n.matches) {
-                                if (h.push({
-                                    match: n,
-                                    locator: r.reverse(),
-                                    cd: m,
+                            if (p > e + l._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + s.mask;
+                            if (p === e && void 0 === r.matches) {
+                                if (v.push({
+                                    match: r,
+                                    locator: o.reverse(),
+                                    cd: g,
                                     mloc: {}
-                                }), !0 !== n.optionality || void 0 !== f || !(u.definitions && u.definitions[n.nativeDef] && u.definitions[n.nativeDef].optional || Inputmask.prototype.definitions[n.nativeDef] && Inputmask.prototype.definitions[n.nativeDef].optional)) return !0;
-                                v = !0, d = e;
-                            } else if (void 0 !== n.matches) {
-                                if (n.isGroup && f !== n) {
-                                    if (n = o(t.matches[t.matches.indexOf(n) + 1], r, f)) return !0;
-                                } else if (n.isOptional) {
-                                    var x = n, P = h.length;
-                                    if (n = g(n, i, r, f)) {
-                                        if (h.forEach((function(e, t) {
-                                            t >= P && (e.match.optionality = !0);
-                                        })), a = h[h.length - 1].match, void 0 !== f || !p(a, x)) return !0;
-                                        v = !0, d = e;
+                                }), !0 !== r.optionality || void 0 !== d || !(l.definitions && l.definitions[r.nativeDef] && l.definitions[r.nativeDef].optional || n.default.prototype.definitions[r.nativeDef] && n.default.prototype.definitions[r.nativeDef].optional)) return !0;
+                                m = !0, p = e;
+                            } else if (void 0 !== r.matches) {
+                                if (r.isGroup && d !== r) {
+                                    if (r = u(t.matches[t.matches.indexOf(r) + 1], o, d)) return !0;
+                                } else if (r.isOptional) {
+                                    var P = r, E = v.length;
+                                    if (r = k(r, i, o, d)) {
+                                        if (v.forEach((function(e, t) {
+                                            t >= E && (e.match.optionality = !0);
+                                        })), a = v[v.length - 1].match, void 0 !== d || !h(a, P)) return !0;
+                                        m = !0, p = e;
                                     }
-                                } else if (n.isAlternator) {
-                                    var E, S = n, w = [], _ = h.slice(), M = r.length, O = !1, T = i.length > 0 ? i.shift() : -1;
-                                    if (-1 === T || "string" == typeof T) {
-                                        var A, C = d, D = i.slice(), j = [];
-                                        if ("string" == typeof T) j = T.split(","); else for (A = 0; A < S.matches.length; A++) j.push(A.toString());
+                                } else if (r.isAlternator) {
+                                    var S, w = r, _ = [], M = v.slice(), O = o.length, T = !1, A = i.length > 0 ? i.shift() : -1;
+                                    if (-1 === A || "string" == typeof A) {
+                                        var C, D = p, j = i.slice(), B = [];
+                                        if ("string" == typeof A) B = A.split(","); else for (C = 0; C < w.matches.length; C++) B.push(C.toString());
                                         if (void 0 !== s.excludes[e]) {
-                                            for (var B = j.slice(), R = 0, L = s.excludes[e].length; R < L; R++) {
-                                                var I = s.excludes[e][R].toString().split(":");
-                                                r.length == I[1] && j.splice(j.indexOf(I[0]), 1);
+                                            for (var R = B.slice(), L = 0, I = s.excludes[e].length; L < I; L++) {
+                                                var F = s.excludes[e][L].toString().split(":");
+                                                o.length == F[1] && B.splice(B.indexOf(F[0]), 1);
                                             }
-                                            0 === j.length && (delete s.excludes[e], j = B);
+                                            0 === B.length && (delete s.excludes[e], B = R);
                                         }
-                                        (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && C >= u.keepStatic) && (j = j.slice(0, 1));
-                                        for (var F = 0; F < j.length; F++) {
-                                            A = parseInt(j[F]), h = [], i = "string" == typeof T && k(d, A, M) || D.slice();
-                                            var N = S.matches[A];
-                                            if (N && o(N, [ A ].concat(r), f)) n = !0; else if (0 === F && (O = !0), N && N.matches && N.matches.length > S.matches[0].matches.length) break;
-                                            E = h.slice(), d = C, h = [];
-                                            for (var V = 0; V < E.length; V++) {
-                                                var G = E[V], H = !1;
-                                                G.match.jit = G.match.jit || O, G.alternation = G.alternation || M, y(G);
-                                                for (var K = 0; K < w.length; K++) {
-                                                    var U = w[K];
-                                                    if ("string" != typeof T || void 0 !== G.alternation && j.includes(G.locator[G.alternation].toString())) {
-                                                        if (G.match.nativeDef === U.match.nativeDef) {
-                                                            H = !0, y(U, G);
+                                        (!0 === l.keepStatic || isFinite(parseInt(l.keepStatic)) && D >= l.keepStatic) && (B = B.slice(0, 1));
+                                        for (var N = 0; N < B.length; N++) {
+                                            C = parseInt(B[N]), v = [], i = "string" == typeof A && y(p, C, O) || j.slice();
+                                            var V = w.matches[C];
+                                            if (V && u(V, [ C ].concat(o), d)) r = !0; else if (0 === N && (T = !0), V && V.matches && V.matches.length > w.matches[0].matches.length) break;
+                                            S = v.slice(), p = D, v = [];
+                                            for (var G = 0; G < S.length; G++) {
+                                                var H = S[G], K = !1;
+                                                H.match.jit = H.match.jit || T, H.alternation = H.alternation || O, b(H);
+                                                for (var U = 0; U < _.length; U++) {
+                                                    var $ = _[U];
+                                                    if ("string" != typeof A || void 0 !== H.alternation && B.includes(H.locator[H.alternation].toString())) {
+                                                        if (H.match.nativeDef === $.match.nativeDef) {
+                                                            K = !0, b($, H);
                                                             break;
                                                         }
-                                                        if (l(G, U, u)) {
-                                                            y(G, U) && (H = !0, w.splice(w.indexOf(U), 0, G));
+                                                        if (f(H, $, l)) {
+                                                            b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H));
                                                             break;
                                                         }
-                                                        if (l(U, G, u)) {
-                                                            y(U, G);
+                                                        if (f($, H, l)) {
+                                                            b($, H);
                                                             break;
                                                         }
-                                                        if (W = U, !0 === (Q = G).match.static && !0 !== W.match.static && W.match.fn.test(Q.match.def, s, e, !1, u, !1)) {
-                                                            b(G, U) || void 0 !== c.inputmask.userOptions.keepStatic ? y(G, U) && (H = !0, w.splice(w.indexOf(U), 0, G)) : u.keepStatic = !0;
+                                                        if (Y = $, !0 === (W = H).match.static && !0 !== Y.match.static && Y.match.fn.test(W.match.def, s, e, !1, l, !1)) {
+                                                            x(H, $) || void 0 !== c.inputmask.userOptions.keepStatic ? b(H, $) && (K = !0, _.splice(_.indexOf($), 0, H)) : l.keepStatic = !0;
                                                             break;
                                                         }
                                                     }
                                                 }
-                                                H || w.push(G);
+                                                K || _.push(H);
                                             }
                                         }
-                                        h = _.concat(w), d = e, v = h.length > 0, n = w.length > 0, i = D.slice();
-                                    } else n = o(S.matches[T] || t.matches[T], [ T ].concat(r), f);
-                                    if (n) return !0;
-                                } else if (n.isQuantifier && f !== t.matches[t.matches.indexOf(n) - 1]) for (var $ = n, q = i.length > 0 ? i.shift() : 0; q < (isNaN($.quantifier.max) ? q + 1 : $.quantifier.max) && d <= e; q++) {
-                                    var z = t.matches[t.matches.indexOf($) - 1];
-                                    if (n = o(z, [ q ].concat(r), z)) {
-                                        if ((a = h[h.length - 1].match).optionalQuantifier = q >= $.quantifier.min, a.jit = (q + 1) * (z.matches.indexOf(a) + 1) > $.quantifier.jit, 
-                                        a.optionalQuantifier && p(a, z)) {
-                                            v = !0, d = e;
+                                        v = M.concat(_), p = e, m = v.length > 0, r = _.length > 0, i = j.slice();
+                                    } else r = u(w.matches[A] || t.matches[A], [ A ].concat(o), d);
+                                    if (r) return !0;
+                                } else if (r.isQuantifier && d !== t.matches[t.matches.indexOf(r) - 1]) for (var q = r, z = i.length > 0 ? i.shift() : 0; z < (isNaN(q.quantifier.max) ? z + 1 : q.quantifier.max) && p <= e; z++) {
+                                    var Q = t.matches[t.matches.indexOf(q) - 1];
+                                    if (r = u(Q, [ z ].concat(o), Q)) {
+                                        if ((a = v[v.length - 1].match).optionalQuantifier = z >= q.quantifier.min, a.jit = (z + 1) * (Q.matches.indexOf(a) + 1) > q.quantifier.jit, 
+                                        a.optionalQuantifier && h(a, Q)) {
+                                            m = !0, p = e;
                                             break;
                                         }
-                                        return a.jit && (s.jitOffset[e] = z.matches.length - z.matches.indexOf(a)), !0;
+                                        return a.jit && (s.jitOffset[e] = Q.matches.length - Q.matches.indexOf(a)), !0;
                                     }
-                                } else if (n = g(n, i, r, f)) return !0;
-                            } else d++;
-                            var Q, W;
+                                } else if (r = k(r, i, o, d)) return !0;
+                            } else p++;
+                            var W, Y;
                         }
-                        for (var f = i.length > 0 ? i.shift() : 0; f < t.matches.length; f++) if (!0 !== t.matches[f].isQuantifier) {
-                            var p = o(t.matches[f], [ f ].concat(n), r);
-                            if (p && d === e) return p;
-                            if (d > e) break;
+                        for (var d = i.length > 0 ? i.shift() : 0; d < t.matches.length; d++) if (!0 !== t.matches[d].isQuantifier) {
+                            var h = u(t.matches[d], [ d ].concat(r), o);
+                            if (h && p === e) return h;
+                            if (p > e) break;
                         }
                     }
                     if (e > -1) {
                         if (void 0 === t) {
-                            for (var k, y = e - 1; void 0 === (k = s.validPositions[y] || s.tests[y]) && y > -1; ) y--;
-                            void 0 !== k && y > -1 && (p = function(e, t) {
+                            for (var y, b = e - 1; void 0 === (y = s.validPositions[b] || s.tests[b]) && b > -1; ) b--;
+                            void 0 !== y && b > -1 && (h = function(e, t) {
                                 var i, a = [];
-                                return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (a = o.call(n, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
+                                return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === l.keepStatic ? 0 === (a = u.call(r, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
                                     "" !== e.def && (0 === a.length ? (i = e.alternation, a = e.locator.slice()) : e.locator[i] && -1 === a[i].toString().indexOf(e.locator[i]) && (a[i] += "," + e.locator[i]));
                                 }))), a;
-                            }(y, k), m = p.join(""), d = y);
+                            }(b, y), g = h.join(""), p = b);
                         }
-                        if (s.tests[e] && s.tests[e][0].cd === m) return s.tests[e];
-                        for (var b = p.shift(); b < f.length; b++) {
-                            if (g(f[b], p, [ b ]) && d === e || d > e) break;
+                        if (s.tests[e] && s.tests[e][0].cd === g) return s.tests[e];
+                        for (var x = h.shift(); x < d.length; x++) {
+                            if (k(d[x], h, [ x ]) && p === e || p > e) break;
                         }
                     }
-                    return (0 === h.length || v) && h.push({
+                    return (0 === v.length || m) && v.push({
                         match: {
                             fn: null,
                             static: !0,
@@ -2569,30 +2592,10 @@
                         },
                         locator: [],
                         mloc: {},
-                        cd: m
-                    }), void 0 !== t && s.tests[e] ? r.extend(!0, [], h) : (s.tests[e] = r.extend(!0, [], h), 
+                        cd: g
+                    }), void 0 !== t && s.tests[e] ? o.extend(!0, [], v) : (s.tests[e] = o.extend(!0, [], v), 
                     s.tests[e]);
                 }
-                Object.defineProperty(t, "__esModule", {
-                    value: !0
-                }), t.determineTestTemplate = o, t.getDecisionTaker = a, t.getMaskTemplate = function(e, t, i, a, s) {
-                    var l = this, c = this.opts, f = this.maskset, d = c.greedy;
-                    s && (c.greedy = !1);
-                    t = t || 0;
-                    var p, h, v, m, g = [], k = 0;
-                    do {
-                        if (!0 === e && f.validPositions[k]) v = s && !0 === f.validPositions[k].match.optionality && void 0 === f.validPositions[k + 1] && (!0 === f.validPositions[k].generatedInput || f.validPositions[k].input == c.skipOptionalPartCharacter && k > 0) ? o.call(l, k, u.call(l, k, p, k - 1)) : f.validPositions[k], 
-                        h = v.match, p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : n.call(l, k, h)); else {
-                            v = r.call(l, k, p, k - 1), h = v.match, p = v.locator.slice();
-                            var y = !0 !== a && (!1 !== c.jitMasking ? c.jitMasking : h.jit);
-                            (m = (m && h.static && h.def !== c.groupSeparator && null === h.fn || f.validPositions[k - 1] && h.static && h.def !== c.groupSeparator && null === h.fn) && f.tests[k] && 1 === f.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? h.nativeDef : n.call(l, k, h)) : m = !1;
-                        }
-                        k++;
-                    } while (!0 !== h.static || "" !== h.def || t > k);
-                    "" === g[g.length - 1] && g.pop();
-                    !1 === i && void 0 !== f.maskLength || (f.maskLength = k - 1);
-                    return c.greedy = d, g;
-                }, t.getPlaceholder = n, t.getTest = s, t.getTests = u, t.getTestTemplate = r, t.isSubsetOf = l;
             },
             7215: function(e, t, i) {
                 Object.defineProperty(t, "__esModule", {

ファイルの差分が大きいため隠しています
+ 2 - 2
dist/jquery.inputmask.min.js


+ 1 - 1
lib/extensions/inputmask.numeric.extensions.js

@@ -7,7 +7,7 @@
 import Inputmask from "../inputmask";
 import keyCode from "../keycode.json";
 import escapeRegex from "../escapeRegex";
-import {getLastValidPosition, seekNext} from "../positioning";
+import {seekNext} from "../positioning";
 
 const $ = Inputmask.dependencyLib;
 

+ 1 - 0
lib/validation-tests.js

@@ -8,6 +8,7 @@ export {
 	getTestTemplate,
 	isSubsetOf
 };
+import Inputmask from "./inputmask";
 
 function getLocator(tst, align) { //need to align the locators to be correct
 	var locator = (tst.alternation != undefined ? tst.mloc[getDecisionTaker(tst)] : tst.locator).join("");

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "inputmask",
-  "version": "5.0.7-beta.28",
+  "version": "5.0.7-beta.29",
   "description": "Inputmask is a javascript library which creates an input mask.  Inputmask can run against vanilla javascript, jQuery and jqlite.",
   "main": "dist/inputmask.js",
   "files": [