|
|
@@ -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", {
|