1/*! 2 * dist/jquery.inputmask 3 * https://github.com/RobinHerbots/Inputmask 4 * Copyright (c) 2010 - 2025 Robin Herbots 5 * Licensed under the MIT license 6 * Version: 5.0.10-beta.41 7 */ 8!function(e, t) { 9 if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else { 10 var n = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery); 11 for (var i in n) ("object" == typeof exports ? exports : e)[i] = n[i]; 12 } 13}("undefined" != typeof self ? self : this, (function(e) { 14 return function() { 15 "use strict"; 16 var t = { 17 340: function(e, t) { 18 Object.defineProperty(t, "__esModule", { 19 value: !0 20 }), t.escapeRegex = function(e) { 21 return e.replace(n, "\\$1"); 22 }; 23 var n = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim"); 24 }, 25 472: function() { 26 function e(t) { 27 return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 28 return typeof e; 29 } : function(e) { 30 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 31 }, e(t); 32 } 33 function t(e, t) { 34 for (var i = 0; i < t.length; i++) { 35 var a = t[i]; 36 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), 37 Object.defineProperty(e, n(a.key), a); 38 } 39 } 40 function n(t) { 41 var n = function(t, n) { 42 if ("object" != e(t) || !t) return t; 43 var i = t[Symbol.toPrimitive]; 44 if (void 0 !== i) { 45 var a = i.call(t, n || "default"); 46 if ("object" != e(a)) return a; 47 throw new TypeError("@@toPrimitive must return a primitive value."); 48 } 49 return ("string" === n ? String : Number)(t); 50 }(t, "string"); 51 return "symbol" == e(n) ? n : n + ""; 52 } 53 function i(t, n) { 54 if (n && ("object" == e(n) || "function" == typeof n)) return n; 55 if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined"); 56 return function(e) { 57 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 58 return e; 59 }(t); 60 } 61 function a(e) { 62 var t = "function" == typeof Map ? new Map : void 0; 63 return a = function(e) { 64 if (null === e || !function(e) { 65 try { 66 return -1 !== Function.toString.call(e).indexOf("[native code]"); 67 } catch (t) { 68 return "function" == typeof e; 69 } 70 }(e)) return e; 71 if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function"); 72 if (void 0 !== t) { 73 if (t.has(e)) return t.get(e); 74 t.set(e, n); 75 } 76 function n() { 77 return function(e, t, n) { 78 if (r()) return Reflect.construct.apply(null, arguments); 79 var i = [ null ]; 80 i.push.apply(i, t); 81 var a = new (e.bind.apply(e, i)); 82 return n && o(a, n.prototype), a; 83 }(e, arguments, l(this).constructor); 84 } 85 return n.prototype = Object.create(e.prototype, { 86 constructor: { 87 value: n, 88 enumerable: !1, 89 writable: !0, 90 configurable: !0 91 } 92 }), o(n, e); 93 }, a(e); 94 } 95 function r() { 96 try { 97 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))); 98 } catch (e) {} 99 return (r = function() { 100 return !!e; 101 })(); 102 } 103 function o(e, t) { 104 return o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) { 105 return e.__proto__ = t, e; 106 }, o(e, t); 107 } 108 function l(e) { 109 return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { 110 return e.__proto__ || Object.getPrototypeOf(e); 111 }, l(e); 112 } 113 if (void 0 === FormData.Inputmask) { 114 var s = function(e) { 115 function n(e, t) { 116 var a, o, s, c; 117 !function(e, t) { 118 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 119 }(this, n), o = this, c = [ e, t ], s = l(s = n); 120 for (var u, f = (a = i(o, r() ? Reflect.construct(s, c || [], l(o).constructor) : s.apply(o, c))).entr
vendor: 11,333 bytes, lines 120-293
120ies(); !1 === (u = f.next()).done; ) { 121 var p = u.value[0], d = u.value[1], h = document.getElementById(p); 122 !h || void 0 === h.inputmask || d instanceof File || a.set(p, h.value); 123 } 124 return i(a, a); 125 } 126 return function(e, t) { 127 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); 128 e.prototype = Object.create(t && t.prototype, { 129 constructor: { 130 value: e, 131 writable: !0, 132 configurable: !0 133 } 134 }), Object.defineProperty(e, "prototype", { 135 writable: !1 136 }), t && o(e, t); 137 }(n, e), a = n, s && t(a.prototype, s), c && t(a, c), Object.defineProperty(a, "prototype", { 138 writable: !1 139 }), a; 140 var a, s, c; 141 }(a(FormData)); 142 s.Inputmask = !0, FormData = s; 143 } 144 }, 145 493: function() { 146 String.prototype.includes || (String.prototype.includes = function(e, t) { 147 return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t); 148 }); 149 }, 150 546: function(e, t, n) { 151 var i, a = n(340), r = (i = n(3978)) && i.__esModule ? i : { 152 default: i 153 }, o = n(6032), l = n(7539); 154 var s = r.default.dependencyLib; 155 function c(e, t) { 156 for (var n = "", i = 0; i < e.length; i++) r.default.prototype.definitions[e.charAt(i)] || t.definitions[e.charAt(i)] || t.optionalmarker[0] === e.charAt(i) || t.optionalmarker[1] === e.charAt(i) || t.quantifiermarker[0] === e.charAt(i) || t.quantifiermarker[1] === e.charAt(i) || t.groupmarker[0] === e.charAt(i) || t.groupmarker[1] === e.charAt(i) || t.alternatormarker === e.charAt(i) ? n += "\\" + e.charAt(i) : n += e.charAt(i); 157 return n; 158 } 159 function u(e, t, n, i) { 160 if (e.length > 0 && t > 0 && (!n.digitsOptional || i)) { 161 var a = e.indexOf(n.radixPoint), r = !1; 162 n.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === a && (e.push(n.radixPoint), 163 a = e.length - 1); 164 for (var o = 1; o <= t; o++) isFinite(e[a + o]) || (e[a + o] = "0"); 165 } 166 return r && e.push(n.negationSymbol.back), e; 167 } 168 function f(e, t) { 169 var n = 0; 170 for (var i in "+" === e && (n = l.seekNext.call(this, t.validPositions.length - 1)), 171 t.tests) if ((i = parseInt(i)) >= n) for (var a = 0, r = t.tests[i].length; a < r; a++) if ((void 0 === t.validPositions[i] || "-" === e) && t.tests[i][a].match.def === e) return i + (void 0 !== t.validPositions[i] && "-" !== e ? 1 : 0); 172 return n; 173 } 174 function p(e, t) { 175 for (var n = -1, i = 0, a = t.validPositions.length; i < a; i++) { 176 var r = t.validPositions[i]; 177 if (r && r.match.def === e) { 178 n = i; 179 break; 180 } 181 } 182 return n; 183 } 184 function d(e, t, n, i, a) { 185 var r = t.buffer ? t.buffer.indexOf(a.radixPoint) : -1, o = (-1 !== r || i && a.jitMasking) && new RegExp(a.definitions[9].validator).test(e); 186 return !i && a._radixDance && -1 !== r && o && null == t.validPositions[r] ? { 187 insert: { 188 pos: r === n ? r + 1 : r, 189 c: a.radixPoint 190 }, 191 pos: n 192 } : o; 193 } 194 r.default.extendAliases({ 195 numeric: { 196 mask: function(e) { 197 e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""), 198 " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)), 199 "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp"); 200 var t = "0", n = e.radixPoint; 201 !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick, 202 e.digitsOptional = !1, isNaN(e.digits) && (e.digits = -1 !== e.digits.indexOf(",") ? e.digits.split(",")[0] : 2), 203 e._radixDance = !1, n = "," === e.radixPoint ? "?" : "!", "" !== e.radixPoint && void 0 === e.definitions[n] && (e.definitions[n] = {}, 204 e.definitions[n].validator = "[" + e.radixPoint + "]", e.definitions[n].placeholder = e.radixPoint, 205 e.definitions[n].static = !0, e.definitions[n].generated = !0)) : (e.__financeInput = !1, 206 e.numericInput = !0); 207 var i, r = "[+]"; 208 if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {}, 209 e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator, 210 e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0), 211 r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) { 212 var o = e.digits.toString().split(","); 213 isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += n + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (i = r + n + t + "{0," + e.digits + "}", 214 e.keepStatic = !0) : r += n + t + "{" + e.digits + "}"); 215 } else e.inputmode = "numeric"; 216 return r += c(e.suffix, e), r += "[-]", i && (r = [ i + c(e.suffix, e) + "[-]", r ]), 217 e.greedy = !1, function(e) { 218 void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0, 219 a.escapeRegex)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")), 220 e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)), 221 null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, a.escapeRegex)(e.groupSeparator), "g"), ""), 222 "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN, 223 isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done"); 224 }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint), 225 r; 226 }, 227 _mask: function(e) { 228 return "(" + e.groupSeparator + "999){+|1}"; 229 }, 230 digits: "*", 231 digitsOptional: !0, 232 enforceDigitsOnBlur: !1, 233 radixPoint: ".", 234 positionCaretOnClick: "radixFocus", 235 _radixDance: !0, 236 groupSeparator: "", 237 allowMinus: !0, 238 negationSymbol: { 239 front: "-", 240 back: "" 241 }, 242 prefix: "", 243 suffix: "", 244 min: null, 245 max: null, 246 SetMaxOnOverflow: !1, 247 step: 1, 248 inputType: "text", 249 unmaskAsNumber: !1, 250 roundingFN: Math.round, 251 inputmode: "decimal", 252 shortcuts: { 253 k: "1000", 254 m: "1000000" 255 }, 256 placeholder: "0", 257 greedy: !1, 258 rightAlign: !0, 259 insertMode: !0, 260 autoUnmask: !1, 261 skipOptionalPartCharacter: "", 262 usePrototypeDefinitions: !1, 263 stripLeadingZeroes: !0, 264 substituteRadixPoint: !0, 265 definitions: { 266 0: { 267 validator: d 268 }, 269 1: { 270 validator: d, 271 definitionSymbol: "9" 272 }, 273 9: { 274 validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]", 275 definitionSymbol: "*" 276 }, 277 "+": { 278 validator: function(e, t, n, i, a) { 279 return a.allowMinus && ("-" === e || e === a.negationSymbol.front); 280 } 281 }, 282 "-": { 283 validator: function(e, t, n, i, a) { 284 return a.allowMinus && e === a.negationSymbol.back; 285 } 286 } 287 }, 288 preValidation: function(e, t, n, i, a, r, o, l) { 289 var s = this; 290 if (!1 !== a.__financeInput && n === a.radixPoint) return !1; 291 var c = e.indexOf(a.radixPoint), u = t; 292 if (t = function(e, t, n, i, a) { 293 return a._radixDance && a.numericInput && t !== a.negationSymbol.back && e <= n && (n > 0 || t == a.radixPoint) && (void 0 === i.validPositions[e - 1] || i.val
vendor: 9,201 bytes, lines 293-418
293idPositions[e - 1].input !== a.negationSymbol.back) && (e -= 1), 294 e; 295 }(t, n, c, r, a), "-" === n || n === a.negationSymbol.front) { 296 if (!0 !== a.allowMinus) return !1; 297 var d = !1, h = p("+", r), m = p("-", r); 298 return -1 !== h && (d = [ h ], -1 !== m && d.push(m)), !1 !== d ? { 299 remove: d, 300 caret: u - a.negationSymbol.back.length 301 } : { 302 insert: [ { 303 pos: f.call(s, "+", r), 304 c: a.negationSymbol.front, 305 fromIsValid: !0 306 }, { 307 pos: f.call(s, "-", r), 308 c: a.negationSymbol.back, 309 fromIsValid: void 0 310 } ], 311 caret: u + a.negationSymbol.back.length 312 }; 313 } 314 if (n === a.groupSeparator) return { 315 caret: u 316 }; 317 if (l) return !0; 318 if (-1 !== c && !0 === a._radixDance && !1 === i && n === a.radixPoint && void 0 !== a.digits && (isNaN(a.digits) || parseInt(a.digits) > 0) && c !== t) { 319 var v = f.call(s, a.radixPoint, r); 320 return r.validPositions[v] && (r.validPositions[v].generatedInput = r.validPositions[v].generated || !1), 321 { 322 caret: a._radixDance && t === c - 1 ? c + 1 : c 323 }; 324 } 325 if (!1 === a.__financeInput) if (i) { 326 if (a.digitsOptional) return { 327 rewritePosition: o.end 328 }; 329 if (!a.digitsOptional) { 330 if (o.begin > c && o.end <= c) return n === a.radixPoint ? { 331 insert: { 332 pos: c + 1, 333 c: "0", 334 fromIsValid: !0 335 }, 336 rewritePosition: c 337 } : { 338 rewritePosition: c + 1 339 }; 340 if (o.begin < c) return { 341 rewritePosition: o.begin - 1 342 }; 343 } 344 } else if (!a.showMaskOnHover && !a.showMaskOnFocus && !a.digitsOptional && a.digits > 0 && "" === this.__valueGet.call(this.el)) return { 345 rewritePosition: c 346 }; 347 return { 348 rewritePosition: t 349 }; 350 }, 351 postValidation: function(e, t, n, i, a, r, o, l, c) { 352 if (!1 === i) return i; 353 if (o) return !0; 354 if (null !== a.min || null !== a.max) { 355 var f = a.onUnMask(e.slice().reverse().join(""), void 0, s.extend({}, a, { 356 unmaskAsNumber: !0 357 })); 358 if (null !== a.min && f < a.min && !0 !== c && (f.toString().length > a.min.toString().length || e[0] === a.radixPoint || f < 0)) return !1; 359 if (null !== a.max && a.max >= 0 && f > a.max) return !!a.SetMaxOnOverflow && { 360 refreshFromBuffer: !0, 361 buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse() 362 }; 363 } 364 return i; 365 }, 366 onUnMask: function(e, t, n) { 367 if ("" === t && !0 === n.nullable) return t; 368 var i = e.replace(n.prefix, ""); 369 return i = (i = i.replace(n.suffix, "")).replace(new RegExp((0, a.escapeRegex)(n.groupSeparator), "g"), ""), 370 "" !== n.placeholder.charAt(0) && (i = i.replace(new RegExp(n.placeholder.charAt(0), "g"), "0")), 371 n.unmaskAsNumber ? ("" !== n.radixPoint && -1 !== i.indexOf(n.radixPoint) && (i = i.replace(a.escapeRegex.call(this, n.radixPoint), ".")), 372 i = (i = i.replace(new RegExp("^" + (0, a.escapeRegex)(n.negationSymbol.front)), "-")).replace(new RegExp((0, 373 a.escapeRegex)(n.negationSymbol.back) + "$"), ""), Number(i)) : i; 374 }, 375 isComplete: function(e, t) { 376 var n = (t.numericInput ? e.slice().reverse() : e).join(""); 377 return n = (n = (n = (n = (n = n.replace(new RegExp("^" + (0, a.escapeRegex)(t.negationSymbol.front)), "-")).replace(new RegExp((0, 378 a.escapeRegex)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0, 379 a.escapeRegex)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (n = n.replace((0, 380 a.escapeRegex)(t.radixPoint), ".")), isFinite(n); 381 }, 382 onBeforeMask: function(e, t) { 383 e = null != e ? e : ""; 384 var n = t.radixPoint || ","; 385 isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === n || (e = e.toString().replace(".", n)); 386 var i = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, r = e.split(n), o = r[0].replace(/[^\-0-9]/g, ""), l = r.length > 1 ? r[1].replace(/[^0-9]/g, "") : "", s = r.length > 1; 387 e = o + ("" !== l ? n + l : l); 388 var c = 0; 389 if ("" !== n && (c = t.digitsOptional ? t.digits < l.length ? t.digits : l.length : t.digits, 390 "" !== l || !t.digitsOptional)) { 391 var f = Math.pow(10, c || 1); 392 e = e.replace((0, a.escapeRegex)(n), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)), 393 e = e.toString().replace(".", n); 394 } 395 if (0 === t.digits && -1 !== e.indexOf(n) && (e = e.substring(0, e.indexOf(n))), 396 null !== t.min || null !== t.max) { 397 var p = e.toString().replace(n, "."); 398 null !== t.min && p < t.min ? e = t.min.toString().replace(".", n) : null !== t.max && p > t.max && (e = t.max.toString().replace(".", n)); 399 } 400 return i && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, s).join(""); 401 }, 402 onBeforeWrite: function(e, t, n, i) { 403 function r(e, t) { 404 if (!1 !== i.__financeInput || t) { 405 var n = e.indexOf(i.radixPoint); 406 -1 !== n && e.splice(n, 1); 407 } 408 if ("" !== i.groupSeparator) for (;-1 !== (n = e.indexOf(i.groupSeparator)); ) e.splice(n, 1); 409 return e; 410 } 411 var o, l; 412 if (i.stripLeadingZeroes && (l = function(e, t) { 413 var n = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, a.escapeRegex)(t.negationSymbol.front) + "?" : "") + (0, 414 a.escapeRegex)(t.prefix) + ")(.*)(" + (0, a.escapeRegex)(t.suffix) + ("" != t.negationSymbol.back ? (0, 415 a.escapeRegex)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), i = n ? n[2] : "", r = !1; 416 return i && (i = i.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(i)), 417 !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < i.length)) && r; 418 }
vendor: 5,985 bytes, lines 418-497
418(t, i))) for (var c = t.join("").lastIndexOf(l[0].split("").reverse().join("")) - (l[0] == l.input ? 0 : 1), f = l[0] == l.input ? 1 : 0, p = l[0].length - f; p > 0; p--) this.maskset.validPositions.splice(c + p, 1), 419 delete t[c + p]; 420 if (e) switch (e.type) { 421 case "blur": 422 case "checkval": 423 if (null !== i.min || null !== i.max) { 424 var d = i.onUnMask(t.slice().reverse().join(""), void 0, s.extend({}, i, { 425 unmaskAsNumber: !0 426 })); 427 if (null !== i.min && d < i.min) return { 428 refreshFromBuffer: !0, 429 buffer: u(i.min.toString().replace(".", i.radixPoint).split(""), i.digits, i).reverse() 430 }; 431 if (null !== i.max && d > i.max) return { 432 refreshFromBuffer: !0, 433 buffer: u(i.max.toString().replace(".", i.radixPoint).split(""), i.digits, i).reverse() 434 }; 435 } 436 if (t[t.length - 1] === i.negationSymbol.front) { 437 var h = new RegExp("(^" + ("" != i.negationSymbol.front ? (0, a.escapeRegex)(i.negationSymbol.front) + "?" : "") + (0, 438 a.escapeRegex)(i.prefix) + ")(.*)(" + (0, a.escapeRegex)(i.suffix) + ("" != i.negationSymbol.back ? (0, 439 a.escapeRegex)(i.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join("")); 440 0 == (h ? h[2] : "") && (o = { 441 refreshFromBuffer: !0, 442 buffer: [ 0 ] 443 }); 444 } else if ("" !== i.radixPoint) { 445 t.indexOf(i.radixPoint) === i.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + i.suffix.length) : (t.splice(0, 1 + i.suffix.length), 446 o = { 447 refreshFromBuffer: !0, 448 buffer: r(t) 449 })); 450 } 451 if (i.enforceDigitsOnBlur) { 452 var m = ((o = o || {}) && o.buffer || t).slice().reverse(); 453 o.refreshFromBuffer = !0, o.buffer = u(m, i.digits, i, !0).reverse(); 454 } 455 } 456 return o; 457 }, 458 onKeyDown: function(e, t, n, i) { 459 var a, r = s(this); 460 if (3 != e.location) { 461 var l, c = e.key; 462 if ((l = i.shortcuts && i.shortcuts[c]) && l.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(l)), 463 r.trigger("setvalue"), !1; 464 } 465 if (e.ctrlKey) switch (e.key) { 466 case o.keys.ArrowUp: 467 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(i.step)), 468 r.trigger("setvalue"), !1; 469 470 case o.keys.ArrowDown: 471 return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(i.step)), 472 r.trigger("setvalue"), !1; 473 } 474 if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && n.begin !== t.length) { 475 if (t[e.key === o.keys.Delete ? n.begin - 1 : n.end] === i.negationSymbol.front) return a = t.slice().reverse(), 476 "" !== i.negationSymbol.front && a.shift(), "" !== i.negationSymbol.back && a.pop(), 477 r.trigger("setvalue", [ a.join(""), n.begin ]), !1; 478 if (!0 === i._radixDance) { 479 var f, p = t.indexOf(i.radixPoint); 480 if (i.digitsOptional) { 481 if (0 === p) return (a = t.slice().reverse()).pop(), r.trigger("setvalue", [ a.join(""), n.begin >= a.length ? a.length : n.begin ]), 482 !1; 483 } else if (-1 !== p && (n.begin < p || n.end < p || e.key === o.keys.Delete && (n.begin === p || n.begin - 1 === p))) return n.begin === n.end && (e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI ? n.begin++ : e.key === o.keys.Delete && n.begin - 1 === p && (f = s.extend({}, n), 484 n.begin--, n.end--)), (a = t.slice().reverse()).splice(a.length - n.begin, n.begin - n.end + 1), 485 a = u(a, i.digits, i).join(""), f && (n = f), r.trigger("setvalue", [ a, n.begin >= a.length ? p + 1 : n.begin ]), 486 !1; 487 } 488 } 489 } 490 }, 491 currency: { 492 prefix: "", 493 groupSeparator: ",", 494 alias: "numeric", 495 digits: 2, 496 digitsOptional: !1 497 },
498 decimal: { 499 alias: "numeric" 500 }, 501 integer: { 502 alias: "numeric", 503 inputmode: "numeric", 504 digits: 0 505 }, 506 percentage: { 507 alias: "numeric", 508 min: 0, 509 max: 100, 510 suffix: " %", 511 digits: 0, 512 allowMinus: !1 513 }, 514 indianns: { 515 alias: "numeric", 516 _mask: function(e) { 517 return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}"; 518 }, 519 groupSeparator: ",", 520 radixPoint: ".", 521 placeholder: "0", 522 digits: 2, 523 digitsOptional: !1 524 } 525 }); 526 }, 527 1507: function(e, t, n) { 528 Object.defineProperty(t, "__esModule", { 529 value: !0 530 }), t.HandleNativePlaceholder = function(e, t) { 531 var n = e ? e.inputmask : this; 532 if (a.ie) { 533 if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) { 534 var i = s.getBuffer.call(n).slice(), r = e.inputmask._valueGet(); 535 if (r !== t) { 536 var o = s.getLastValidPosition.call(n); 537 -1 === o && r === s.getBufferTemplate.call(n).join("") ? i = [] : -1 !== o && v.call(n, i), 538 y(e, i); 539 } 540 } 541 } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder")); 542 }, t.applyInputValue = m, t.checkVal = g, t.clearOptionalTail = v, t.unmaskedvalue = function(e) { 543 var t = e ? e.inputmask : this, n = t.opts, i = t.maskset; 544 if (e) { 545 if (void 0 === e.inputmask) return e.value; 546 e.inputmask && e.inputmask.refreshValue && m(e, e.inputmask._valueGet(!0)); 547 } 548 for (var a = [], r = i.validPositions, l = 0, c = r.length; l < c; l++) r[l] && r[l].match && (1 != r[l].match.static || !0 !== n.keepStatic && Array.isArray(i.metadata) && !0 !== r[l].generatedInput) && a.push(r[l].input); 549 var u = 0 === a.length ? "" : (t.isRTL ? a.reverse() : a).join(""); 550 if ("function" == typeof n.onUnMask) { 551 var f = (t.isRTL ? s.getBuffer.call(t).slice().reverse() : s.getBuffer.call(t)).join(""); 552 u = n.onUnMask.call(t, f, u, n); 553 } 554 if (n.outputMask && u.length > 0) return o.default.format(u, d(d({}, n), {}, { 555 mask: n.outputMask, 556 alias: null 557 })); 558 return u; 559 }, t.writeBuffer = y; 560 var i, a = n(4351), r = n(6047), o = (i = n(3978)) && i.__esModule ? i : { 561 default: i 562 }, l = n(6032), s = n(7539), c = n(7687), u = n(5895); 563 function f(e) { 564 return f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 565 return typeof e; 566 } : function(e) { 567 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 568 }, f(e); 569 } 570 function p(e, t) { 571 var n = Object.keys(e); 572 if (Object.getOwnPropertySymbols) { 573 var i = Object.getOwnPropertySymbols(e); 574 t && (i = i.filter((function(t) { 575 return Object.getOwnPropertyDescriptor(e, t).enumerable; 576 }))), n.push.apply(n, i); 577 } 578 return n; 579 } 580 function d(e) { 581 for (var t = 1; t < arguments.length; t++) { 582 var n = null != arguments[t] ? arguments[t] : {};
vendor: 5,535 bytes, lines 583-657
583 t % 2 ? p(Object(n), !0).forEach((function(t) { 584 h(e, t, n[t]); 585 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p(Object(n)).forEach((function(t) { 586 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)); 587 })); 588 } 589 return e; 590 } 591 function h(e, t, n) { 592 return (t = function(e) { 593 var t = function(e, t) { 594 if ("object" != f(e) || !e) return e; 595 var n = e[Symbol.toPrimitive]; 596 if (void 0 !== n) { 597 var i = n.call(e, t || "default"); 598 if ("object" != f(i)) return i; 599 throw new TypeError("@@toPrimitive must return a primitive value."); 600 } 601 return ("string" === t ? String : Number)(e); 602 }(e, "string"); 603 return "symbol" == f(t) ? t : t + ""; 604 }(t)) in e ? Object.defineProperty(e, t, { 605 value: n, 606 enumerable: !0, 607 configurable: !0, 608 writable: !0 609 }) : e[t] = n, e; 610 } 611 function m(e, t, n, i) { 612 var a = e ? e.inputmask : this, r = a.opts; 613 e.inputmask.refreshValue = !1, !0 !== i && "function" == typeof r.onBeforeMask && (t = r.onBeforeMask.call(a, t, r) || t), 614 g(e, !0, !1, t = (t || "").toString().split(""), n), a.undoValue = a._valueGet(!0), 615 (r.clearMaskOnLostFocus || r.clearIncomplete) && e.inputmask._valueGet() === s.getBufferTemplate.call(a).join("") && -1 === s.getLastValidPosition.call(a) && e.inputmask._valueSet(""); 616 } 617 function v(e) { 618 e.length = 0; 619 for (var t, n = u.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = n.shift()); ) e.push(t); 620 return e; 621 } 622 function g(e, t, n, i, a) { 623 var o, l = e ? e.inputmask : this, f = l.maskset, p = l.opts, d = l.dependencyLib, h = i.slice(), m = "", v = -1, g = p.skipOptionalPartCharacter; 624 p.skipOptionalPartCharacter = "", s.resetMaskSet.call(l, !1), l.clicked = 0, v = p.radixPoint ? s.determineNewCaretPosition.call(l, { 625 begin: 0, 626 end: 0 627 }, !1, !1 === p.__financeInput ? "radixFocus" : void 0).begin : 0, f.p = v, l.caretPos = { 628 begin: v 629 }; 630 var k = [], b = l.caretPos; 631 if (h.forEach((function(e, t) { 632 if (void 0 !== e) { 633 var i = new d.Event("_checkval"); 634 i.key = e, m += e; 635 var a = s.getLastValidPosition.call(l, void 0, !0); 636 !function(e, t) { 637 for (var n = u.getMaskTemplate.call(l, !0, 0).slice(e, s.seekNext.call(l, e, !1, !1)).join("").replace(/'/g, ""), i = n.indexOf(t); i > 0 && " " === n[i - 1]; ) i--; 638 var a = 0 === i && !s.isMask.call(l, e) && (u.getTest.call(l, e).match.nativeDef === t.charAt(0) || !0 === u.getTest.call(l, e).match.static && u.getTest.call(l, e).match.nativeDef === "'" + t.charAt(0) || " " === u.getTest.call(l, e).match.nativeDef && (u.getTest.call(l, e + 1).match.nativeDef === t.charAt(0) || !0 === u.getTest.call(l, e + 1).match.static && u.getTest.call(l, e + 1).match.nativeDef === "'" + t.charAt(0))); 639 if (!a && i > 0 && !s.isMask.call(l, e, !1, !0)) { 640 var r = s.seekNext.call(l, e); 641 l.caretPos.begin < r && (l.caretPos = { 642 begin: r 643 }); 644 } 645 return a; 646 }(v, m) ? (o = r.EventHandlers.keypressEvent.call(l, i, !0, !1, n, l.caretPos.begin)) && (v = l.caretPos.begin + 1, 647 m = "") : o = !0 === u.getTest.call(l, t).match.static && r.EventHandlers.keypressEvent.call(l, i, !0, !1, n, a + 1), 648 o ? (void 0 !== o.pos && f.validPositions[o.pos] && !0 === f.validPositions[o.pos].match.static && void 0 === f.validPositions[o.pos].alternation && (k.push(o.pos), 649 l.isRTL || (o.forwardPosition = o.pos + 1)), y.call(l, void 0, s.getBuffer.call(l), o.forwardPosition, i, !1), 650 l.caretPos = { 651 begin: o.forwardPosition, 652 end: o.forwardPosition 653 }, b = l.caretPos) : void 0 === f.validPositions[t] && h[t] === u.getPlaceholder.call(l, t) && s.isMask.call(l, t, !0) ? l.caretPos.begin++ : l.caretPos = b; 654 } 655 })), k.length > 0) { 656 var x, P, w = s.seekNext.call(l, -1, void 0, !1); 657 if (!c.isComplete.call(l, s.getBuffer.call(l)) && k.length <=
657w || c.isComplete.call(l, s.getBuffer.call(l)) && k.length > 0 && k.length !== w && 0 === k[0]) { 658 for (var S = w; void 0 !== (x = k.shift()); ) if (x < S) { 659 var O = new d.Event("_checkval"); 660 if ((P = f.validPositions[x]).generatedInput = !0, O.key = P.input, (o = r.EventHandlers.keypressEvent.call(l, O, !0, !1, n, S)) && void 0 !== o.pos && o.pos !== x && f.validPositions[o.pos] && !0 === f.validPositions[o.pos].match.static) k.push(o.pos); else if (!o) break; 661 S++; 662 } 663 } else for (;x = k.pop(); ) (P = f.validPositions[x]) && void 0 === f.validPositions[x + 1] && delete f.validPositions[x]; 664 } 665 t && y.call(l, e, s.getBuffer.call(l), o ? o.forwardPosition : l.caretPos.begin, a || new d.Event("checkval"), a && ("input" === a.type && l.undoValue !== s.getBuffer.call(l).join("") || "paste" === a.type)), 666 p.skipOptionalPartCharacter = g; 667 } 668 function y(e, t, n, i, a) { 669 var r = e ? e.inputmask : this, o = r.opts, u = r.dependencyLib; 670 if (i && "function" == typeof o.onBeforeWrite) { 671 var f = o.onBeforeWrite.call(r, i, t, n, o); 672 if (f) { 673 if (f.refreshFromBuffer) { 674 var p = f.refreshFromBuffer; 675 c.refreshFromBuffer.call(r, !0 === p ? p : p.start, p.end, f.buffer || t), t = s.getBuffer.call(r, !0); 676 } 677 void 0 !== n && (n = void 0 !== f.caret ? f.caret : n); 678 } 679 } 680 if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === n || void 0 !== i && "blur" === i.type || s.caret.call(r, e, n, void 0, void 0, void 0 !== i && "keydown" === i.type && (i.key === l.keys.Delete || i.key === l.keys.Backspace)), 681 void 0 === e.inputmask.writeBufferHook || e.inputmask.writeBufferHook(n), !0 === a)) { 682 var d = u(e), h = e.inputmask._valueGet(); 683 e.inputmask.skipInputEvent = !0, d.trigger("input"), setTimeout((function() { 684 h === s.getBufferTemplate.call(r).join("") ? d.trigger("cleared") : !0 === c.isComplete.call(r, t) && d.trigger("complete"); 685 }), 0); 686 } 687 } 688 }, 689 1669: function() { 690 Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { 691 value: function(e, t) { 692 if (null == this) throw new TypeError('"this" is null or not defined'); 693 var n = Object(this), i = n.length >>> 0; 694 if (0 === i) return !1; 695 for (var a = 0 | t, r = Math.max(a >= 0 ? a : i - Math.abs(a), 0); r < i; ) { 696 if (n[r] === e) return !0; 697 r++; 698 } 699 return !1; 700 } 701 }); 702 }, 703 1960: function() { 704 var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), n = Function.bind.call(Function.call, Array.prototype.concat), i = Object.keys; 705 Object.entries || (Object.entries = function(a) { 706 return e(i(a), (function(e, i) { 707 return n(e, "string" == typeof i && t(a, i) ? [ [ i, a[i] ] ] : []); 708 }), []); 709 }); 710 }, 711 2952: function(e, t, n) { 712 var i = d(n(6266)), a = d(n(3978)); 713 function r(e) { 714 return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 715 return typeof e; 716 } : function(e) { 717 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 718 }, r(e); 719 } 720 function o(e, t) { 721 for (var n = 0; n < t.length; n++) { 722 var i = t[n]; 723 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 724 Object.defineProperty(e, l(i.key), i); 725 } 726 } 727 function l(e) { 728 var t = function(e, t) { 729 if ("object" != r(e) || !e) return e; 730 var n = e[Symbol.toPrimitive]; 731 if (void 0 !== n) { 732 var i = n.call(e, t || "default"); 733 if ("object" != r(i)) return i; 734 throw new TypeError("@@toPrimitive must return a primitive value."); 735 } 736 return ("string" === t ? String : Number)(e); 737 }(e, "string"); 738 return "symbol" == r(t) ? t : t + ""; 739 } 740 function s(e, t, n) { 741 return t = p(t), function(e, t) { 742 if (t && ("object" == r(t) || "function" == typeof t)) return t; 743 if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined"); 744 return function(e) { 745 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 746 return e; 747 }(e); 748 }(e, u() ? Reflect.construct(t, n || [], p(e).constructor) : t.apply(e, n)); 749 } 750 function c(e) { 751 var t = "function" == typeof Map ? new Map : void 0; 752 return c = function(e) { 753 if (null === e || !function(e) { 754 try { 755 return -1 !== Function.toString.call(e).indexOf("[native code]"); 756 } catch (t) { 757 return "function" == typeof e; 758 } 759 }(e)) return e; 760 if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function"); 761 if (void 0 !== t) { 762 if (t.has(e)) return t.get(e); 763 t.set(e, n); 764 } 765 function n() { 766 return function(e, t, n) { 767 if (u()) return Reflect.construct.apply(null, arguments); 768 var i = [ null ]; 769 i.push.apply(i, t); 770 var a = new (e.bind.apply(e, i)); 771 return n && f(a, n.prototype), a; 772 }(e, arguments, p(this).constructor); 773 } 774 return n.prototype = Object.create(e.prototype, { 775 constructor: { 776 value: n, 777 enumerable: !1, 778 writable: !0, 779 configurable: !0 780 } 781 }), f(n, e); 782 }, c(e); 783 } 784 function u() { 785 try { 786 var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))); 787 } catch (e) {} 788 return (u = function() { 789 return !!e; 790 })(); 791 } 792 function f(e, t) { 793 return f = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) { 794 return e.__proto__ = t, e; 795 }, f(e, t); 796 } 797 function p(e) { 798 return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { 799 return e.__proto__ || Object.getPrototypeOf(e); 800 }, p(e); 801 } 802 function d(e) {
vendor: 5,710 bytes, lines 803-901
803 return e && e.__esModule ? e : { 804 default: e 805 }; 806 } 807 var h = i.default.document; 808 if (h && h.head && h.head.attachShadow && i.default.customElements && void 0 === i.default.customElements.get("input-mask")) { 809 var m = function(e) { 810 function t() { 811 var e; 812 !function(e, t) { 813 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 814 }(this, t); 815 var n = (e = s(this, t)).getAttributeNames(), i = e.attachShadow({ 816 mode: "closed" 817 }); 818 for (var r in e.input = h.createElement("input"), e.input.type = "text", i.appendChild(e.input), 819 n) Object.prototype.hasOwnProperty.call(n, r) && e.input.setAttribute(n[r], e.getAttribute(n[r])); 820 var o = new a.default; 821 return o.dataAttribute = "", o.mask(e.input), e; 822 } 823 return function(e, t) { 824 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); 825 e.prototype = Object.create(t && t.prototype, { 826 constructor: { 827 value: e, 828 writable: !0, 829 configurable: !0 830 } 831 }), Object.defineProperty(e, "prototype", { 832 writable: !1 833 }), t && f(e, t); 834 }(t, e), n = t, (i = [ { 835 key: "attributeChangedCallback", 836 value: function(e, t, n) { 837 this.input.setAttribute(e, n); 838 } 839 }, { 840 key: "value", 841 get: function() { 842 return this.input.value; 843 }, 844 set: function(e) { 845 this.input.value = e; 846 } 847 } ]) && o(n.prototype, i), r && o(n, r), Object.defineProperty(n, "prototype", { 848 writable: !1 849 }), n; 850 var n, i, r; 851 }(c(HTMLElement)); 852 i.default.customElements.define("input-mask", m); 853 } 854 }, 855 3978: function(e, t, n) { 856 Object.defineProperty(t, "__esModule", { 857 value: !0 858 }), t.default = void 0; 859 var i = m(n(7042)), a = m(n(9472)), r = m(n(8826)), o = n(4136), l = m(n(6266)), s = n(1507), c = n(4240), u = n(4507), f = n(7539), p = n(7687), d = n(5895); 860 function h(e) { 861 return h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 862 return typeof e; 863 } : function(e) { 864 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 865 }, h(e); 866 } 867 function m(e) { 868 return e && e.__esModule ? e : { 869 default: e 870 }; 871 } 872 var v = l.default.document, g = "_inputmask_opts"; 873 function y(e, t, n) { 874 if (!(this instanceof y)) return new y(e, t, n); 875 this.dependencyLib = r.default, this.el = void 0, this.events = {}, this.maskset = void 0, 876 !0 !== n && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {}, 877 e && (t.alias = e)), this.opts = r.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions, 878 this.userOptions = t || {}, k(this.opts.alias, t, this.opts)), this.refreshValue = !1, 879 this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1, 880 this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0, 881 this.isComposing = !1, this.hasAlternator = !1; 882 } 883 function k(e, t, n) { 884 var i = y.prototype.aliases[e]; 885 return i ? (i.alias && k(i.alias, void 0, n), r.default.extend(!0, n, i), r.default.extend(!0, n, t), 886 !0) : (null === n.mask && (n.mask = e), !1); 887 } 888 y.prototype = { 889 dataAttribute: "data-inputmask", 890 defaults: i.default, 891 definitions: a.default, 892 aliases: {}, 893 masksCache: {}, 894 i18n: {}, 895 get isRTL() { 896 return this.opts.isRTL || this.opts.numericInput; 897 }, 898 mask: function(e) { 899 var t = this; 900 return "string" == typeof e && (e = v.getElementById(e) || v.querySelectorAll(e)), 901 (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEac
vendor: 4,286 bytes, lines 901-955
901h((function(e, n) { 902 var i = r.default.extend(!0, {}, t.opts); 903 if (function(e, t, n, i) { 904 function a(t, a) { 905 var r = "" === i ? t : i + "-" + t; 906 null !== (a = void 0 !== a ? a : e.getAttribute(r)) && ("string" == typeof a && (t.startsWith("on") ? a = l.default[a] : "false" === a ? a = !1 : "true" === a ? a = !0 : "mask" === t && (a = a.replace(/\\\\/g, "\\"))), 907 n[t] = a); 908 } 909 if (!0 === t.importDataAttributes) { 910 var o, s, c, u, f = e.getAttribute(i); 911 if (f && "" !== f && (f = f.replace(/'/g, '"'), s = JSON.parse("{" + f + "}")), 912 s) for (u in c = void 0, s) if ("alias" === u.toLowerCase()) { 913 c = s[u]; 914 break; 915 } 916 for (o in a("alias", c), n.alias && k(n.alias, n, t), t) { 917 if (s) for (u in c = void 0, s) if (u.toLowerCase() === o.toLowerCase()) { 918 c = s[u]; 919 break; 920 } 921 a(o, c); 922 } 923 } 924 r.default.extend(!0, t, n), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right"); 925 ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"), 926 t.isRTL = !0); 927 return Object.keys(n).length; 928 }(e, i, r.default.extend(!0, {}, t.userOptions), t.dataAttribute)) { 929 var a = (0, u.generateMaskSet)(i, t.noMasksCache); 930 void 0 !== a && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()), 931 e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = i, e.inputmask.noMasksCache = t.noMasksCache, 932 e.inputmask.userOptions = r.default.extend(!0, {}, t.userOptions), e.inputmask.el = e, 933 e.inputmask.$el = (0, r.default)(e), e.inputmask.maskset = a, r.default.data(e, g, t.userOptions), 934 c.mask.call(e.inputmask)); 935 } 936 })), e && e[0] && e[0].inputmask || this; 937 }, 938 option: function(e, t) { 939 return "string" == typeof e ? this.opts[e] : "object" === h(e) ? (r.default.extend(this.userOptions, e), 940 this.el && !0 !== t && this.mask(this.el), this) : void 0; 941 }, 942 unmaskedvalue: function(e) { 943 if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache), 944 void 0 === this.el || void 0 !== e) { 945 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 946 s.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, f.getBuffer.call(this), 0, this.opts); 947 } 948 return s.unmaskedvalue.call(this, this.el); 949 }, 950 remove: function() { 951 if (this.el) { 952 r.default.data(this.el, g, null); 953 var e = this.opts.autoUnmask ? (0, s.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask); 954 e !== f.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""), 955 o.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Ob
955ject.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", { 956 get: this.__valueGet, 957 set: this.__valueSet, 958 configurable: !0 959 }) : v.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet), 960 this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0; 961 } 962 return this.el; 963 }, 964 getemptymask: function() { 965 return this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache), 966 (this.isRTL ? f.getBufferTemplate.call(this).reverse() : f.getBufferTemplate.call(this)).join(""); 967 }, 968 hasMaskedValue: function() { 969 return !this.opts.autoUnmask; 970 }, 971 isComplete: function() { 972 return this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache), 973 p.isComplete.call(this, f.getBuffer.call(this)); 974 }, 975 getmetadata: function() { 976 if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache), 977 Array.isArray(this.maskset.metadata)) { 978 var e = d.getMaskTemplate.call(this, !0, 0, !1).join(""); 979 return this.maskset.metadata.forEach((function(t) { 980 return t.mask !== e || (e = t, !1); 981 })), e; 982 } 983 return this.maskset.metadata; 984 }, 985 isValid: function(e) { 986 if (this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache), 987 e) { 988 var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 989 s.checkVal.call(this, void 0, !0, !1, t); 990 } else e = this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join(""); 991 for (var n = f.getBuffer.call(this), i = f.determineLastRequiredPosition.call(this), a = n.length - 1; a > i && !f.isMask.call(this, a); a--) ; 992 return n.splice(i, a + 1 - i), p.isComplete.call(this, n) && e === (this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join("")); 993 }, 994 format: function(e, t) { 995 this.maskset = this.maskset || (0, u.generateMaskSet)(this.opts, this.noMasksCache); 996 var n = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); 997 s.checkVal.call(this, void 0, !0, !1, n); 998 var i = this.isRTL ? f.getBuffer.call(this).slice().reverse().join("") : f.getBuffer.call(this).join(""); 999 return t ? { 1000 value: i, 1001 metadata: this.getmetadata() 1002 } : i; 1003 }, 1004 setValue: function(e) { 1005 this.el && (0, r.default)(this.el).trigger("setvalue", [ e ]); 1006 }, 1007 analyseMask: u.analyseMask 1008 }, y.extendDefaults = function(e) { 1009 r.default.extend(!0, y.prototype.defaults, e); 1010 }, y.extendDefinitions = function(e) { 1011 r.default.extend(!0, y.prototype.definitions, e); 1012 }, y.extendAliases = function(e) { 1013 r.default.extend(!0, y.prototype.aliases, e); 1014 }, y.format = function(e, t, n) { 1015 return y(t).format(e, n); 1016 }, y.unmask = function(e, t) { 1017 return y(t).unmaskedvalue(e); 1018 }, y.isValid = function(e, t) { 1019 return y(t).isValid(e); 1020 }, y.remove = function(e) { 1021 "string" == typeof e && (e = v.getElementById(e) || v.querySelectorAll(e)), e = e.nodeName ? [ e ] : e; 1022 for (var t = 0; t < e.length; t++) e[t].inputmask && e[t].inputmask.remove(); 1023 }, y.setValue = function(e, t) { 1024 "string" == typeof e && (e = v.getElementById(e) || v.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
1025 e.inputmask ? e.inputmask.setValue(t) : (0, r.default)(e).trigger("setvalue", [ t ]); 1026 })); 1027 }, y.dependencyLib = r.default, l.default.Inputmask = y; 1028 t.default = y; 1029 }, 1030 4136: function(e, t, n) { 1031 Object.defineProperty(t, "__esModule", { 1032 value: !0 1033 }), t.EventRuler = void 0; 1034 var i, a = n(1507), r = (i = n(3978)) && i.__esModule ? i : { 1035 default: i 1036 }, o = n(6032), l = n(7539); 1037 t.EventRuler = { 1038 on: function(e, t, n) { 1039 var i = e.inputmask.dependencyLib, s = function(t) { 1040 t.originalEvent && (t = t.originalEvent || t, arguments[0] = t); 1041 var s, c = this, u = c.inputmask, f = u ? u.opts : void 0; 1042 if (void 0 === u && "FORM" !== this.nodeName) { 1043 var p = i.data(c, "_inputmask_opts"); 1044 i(c).off(), p && new r.default(p).mask(c); 1045 } else { 1046 if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === o.keys.c || !1 === f.tabThrough && t.key === o.keys.Tab))) { 1047 switch (t.type) { 1048 case "input": 1049 if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault(); 1050 break; 1051 1052 case "click": 1053 case "focus": 1054 return u.validationEvent ? (u.validationEvent = !1, e.blur(), (0, a.HandleNativePlaceholder)(e, (u.isRTL ? l.getBufferTemplate.call(u).slice().reverse() : l.getBufferTemplate.call(u)).join("")), 1055 setTimeout((function() { 1056 e.focus(); 1057 }), f.validationEventTimeOut), !1) : (s = arguments, void setTimeout((function() { 1058 e.inputmask && n.apply(c, s); 1059 }), 0)); 1060 } 1061 var d = n.apply(c, arguments); 1062 return !1 === d && (t.preventDefault(), t.stopPropagation()), d; 1063 } 1064 t.preventDefault(); 1065 } 1066 }; 1067 t = "".concat(t, ".inputmask"), [ "submit.inputmask", "reset.inputmask" ].includes(t) ? (s = s.bind(e), 1068 null !== e.form && i(e.form).on(t, s)) : i(e).on(t, s); 1069 }, 1070 off: function(e, t) { 1071 e.inputmask && (0, e.inputmask.dependencyLib)(e).off(t || ".inputmask"); 1072 } 1073 }; 1074 }, 1075 4203: function(e, t, n) { 1076 var i, a = n(340), r = (i = n(3978)) && i.__esModule ? i : { 1077 default: i 1078 }, o = n(6032), l = n(7539), s = n(5895); 1079 function c(e, t) { 1080 return function(e) { 1081 if (Array.isArray(e)) return e; 1082 }(e) || function(e, t) { 1083 var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; 1084 if (null != n) { 1085 var i, a, r, o, l = [], s = !0, c = !1; 1086 try { 1087 if (r = (n = n.call(e)).next, 0 === t) { 1088 if (Object(n) !== n) return; 1089 s = !1; 1090 } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ; 1091 } catch (e) { 1092 c = !0, a = e; 1093 } finally { 1094 try { 1095 if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return; 1096 } finally { 1097 if (c) throw a; 1098 } 1099 } 1100 return l; 1101 } 1102 }(e, t) || u(e, t) || function() { 1103 throw new TypeError("Invalid attempt to de
1103structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1104 }(); 1105 } 1106 function u(e, t) { 1107 if (e) { 1108 if ("string" == typeof e) return f(e, t); 1109 var n = {}.toString.call(e).slice(8, -1); 1110 return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f(e, t) : void 0; 1111 } 1112 } 1113 function f(e, t) { 1114 (null == t || t > e.length) && (t = e.length); 1115 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 1116 return i; 1117 } 1118 function p(e) { 1119 return p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 1120 return typeof e; 1121 } : function(e) { 1122 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 1123 }, p(e); 1124 } 1125 function d(e, t) { 1126 for (var n = 0; n < t.length; n++) { 1127 var i = t[n]; 1128 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 1129 Object.defineProperty(e, h(i.key), i); 1130 } 1131 } 1132 function h(e) { 1133 var t = function(e, t) { 1134 if ("object" != p(e) || !e) return e; 1135 var n = e[Symbol.toPrimitive]; 1136 if (void 0 !== n) { 1137 var i = n.call(e, t || "default"); 1138 if ("object" != p(i)) return i; 1139 throw new TypeError("@@toPrimitive must return a primitive value."); 1140 } 1141 return ("string" === t ? String : Number)(e); 1142 }(e, "string"); 1143 return "symbol" == p(t) ? t : t + ""; 1144 } 1145 n(7153); 1146 var m = r.default.dependencyLib, v = function() { 1147 return function(e, t, n) { 1148 return t && d(e.prototype, t), n && d(e, n), Object.defineProperty(e, "prototype", { 1149 writable: !1 1150 }), e; 1151 }((function e(t, n, i, a) { 1152 !function(e, t) { 1153 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 1154 }(this, e), this.mask = t, this.format = n, this.opts = i, this.inputmask = a, this._date = new Date(1, 0, 1), 1155 this.initDateObject(t, this.opts, this.inputmask); 1156 }), [ { 1157 key: "date", 1158 get: function() { 1159 return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts, this.inputmask)), 1160 this._date; 1161 } 1162 }, { 1163 key: "initDateObject", 1164 value: function(e, t, n) { 1165 var i, a = -1; 1166 for (M(t).lastIndex = 0; i = M(t).exec(this.format); ) if (i.index >= a) { 1167 var r = /\d+$/.exec(i[0]), o = r ? i[0][0] + "x" : i[0], l = void 0; 1168 if (void 0 !== e) { 1169 if (r) { 1170 var c = M(t).lastIndex, u = D.call(n, i.index, t, n && n.maskset); 1171 M(t).lastIndex = c, l = e.slice(0, e.indexOf(u.nextMatch[0])); 1172 } else { 1173 for (var f = i[0][0], p = i.index; n && (t.placeholder["".concat(i.index, "'").concat(s.getTest.call(n, p).match.placeholder)] || s.getTest.call(n, p).match.placeholder) === f; ) p++; 1174 a = p; 1175 var d = p - i.index; 1176 l = e.slice(0, d || O(o) && O(o)[4] || o.length); 1177 } 1178 e = e.slice(l.length); 1179 } 1180 Object.prototype.hasOwnProperty.call(b, o) && this.setValue(this, l, o, O(o)[2], O(o)[1]); 1181 } 1182 } 1183 }, { 1184 key: "setValue", 1185 value: function(e, t, n, i, a) { 1186 if (void 0 !== t) switch (i) { 1187 case "ampm": 1188 e[i] = t, e["raw" + i] = t.replace(/\s/g, "_"); 1189 break; 1190 1191 case "month": 1192 if ("MMM" === n || "MMMM" === n) { 1193 e[i] = E("MMM" === n ? k.monthNames.slice(0, 12).findIndex((function(e) { 1194 return t.toLowerCase() === e.toLowerCase(); 1195 })) + 1 : k.monthNames.slice(12, 24).findIndex((function(e) { 1196 return t.toLowerCase() === e.toLowerCase(); 1197 })) + 1, 2), e[i] = "00" === e[i] ? "" : e[i].toString(), e["raw" + i] = e[i]; 1198 break; 1199 } 1200 1201 default: 1202 e[i] = t.replace(/[^0-9]/g, "0"), e["raw" + i] = t.replace(/\s/g, "_"); 1203 } 1204 if (void 0 !== a) { 1205 var r = e[i]; 1206 ("day" === i && 29 === parseInt(r) || "month" === i && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)), 1207 "day" === i && (g = !0, 0 === parseInt(r) && (r = 1)), "month" === i && (g = !0), 1208 "year" === i && (g = !0, r.length < O(n)[4] && (r = E(r, O(n)[4], !0))), ("" !== r && !isNaN(r) || "ampm" === i) && a.call(e._date, r); 1209 } 1210 } 1211 }, { 1212 key: "reset", 1213 value: function() { 1214 this._date = new Date(1, 0, 1); 1215 } 1216 }, { 1217 key: "reInit", 1218 value: function() { 1219 this._date = void 0, this.date; 1220 } 1221 } ]); 1222 }
1222(), g = !1, y = (new Date).getFullYear(), k = r.default.prototype.i18n, b = { 1223 d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ], 1224 dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() { 1225 return E(Date.prototype.getDate.call(this), 2); 1226 } ], 1227 ddd: [ "" ], 1228 dddd: [ "" ], 1229 M: [ "[1-9]|1[012]", function(e) { 1230 var t = e ? parseInt(e) : 0; 1231 return t > 0 && t--, Date.prototype.setMonth.call(this, t); 1232 }, "month", function() { 1233 return Date.prototype.getMonth.call(this) + 1; 1234 } ], 1235 MM: [ "0[1-9]|1[012]", function(e) { 1236 var t = e ? parseInt(e) : 0; 1237 return t > 0 && t--, Date.prototype.setMonth.call(this, t); 1238 }, "month", function() { 1239 return E(Date.prototype.getMonth.call(this) + 1, 2); 1240 } ], 1241 MMM: [ k.monthNames.slice(0, 12).join("|"), function(e) { 1242 var t = k.monthNames.slice(0, 12).findIndex((function(t) { 1243 return e.toLowerCase() === t.toLowerCase(); 1244 })); 1245 return -1 !== t && Date.prototype.setMonth.call(this, t); 1246 }, "month", function() { 1247 return k.monthNames.slice(0, 12)[Date.prototype.getMonth.call(this)]; 1248 } ], 1249 MMMM: [ k.monthNames.slice(12, 24).join("|"), function(e) { 1250 var t = k.monthNames.slice(12, 24).findIndex((function(t) { 1251 return e.toLowerCase() === t.toLowerCase(); 1252 })); 1253 return -1 !== t && Date.prototype.setMonth.call(this, t); 1254 }, "month", function() { 1255 return k.monthNames.slice(12, 24)[Date.prototype.getMonth.call(this)]; 1256 } ], 1257 yy: [ "[0-9]{2}", function(e) { 1258 var t = (new Date).getFullYear().toString().slice(0, 2); 1259 Date.prototype.setFullYear.call(this, "".concat(t).concat(e)); 1260 }, "year", function() { 1261 return E(Date.prototype.getFullYear.call(this), 2); 1262 }, 2 ], 1263 yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() { 1264 return E(Date.prototype.getFullYear.call(this), 4); 1265 }, 4 ], 1266 h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ], 1267 hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() { 1268 return E(Date.prototype.getHours.call(this), 2); 1269 } ], 1270 hx: [ function(e) { 1271 return "[0-9]{".concat(e, "}"); 1272 }, Date.prototype.setHours, "hours", function(e) { 1273 return Date.prototype.getHours; 1274 } ], 1275 H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ], 1276 HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() { 1277 return E(Date.prototype.getHours.call(this), 2); 1278 } ], 1279 Hx: [ function(e) { 1280 return "[0-9]{".concat(e, "}"); 1281 }, Date.prototype.setHours, "hours", function(e) { 1282 return function() { 1283 return E(Date.prototype.getHours.call(this), e); 1284 }; 1285 } ], 1286 m: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ], 1287 mm: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() { 1288 return E(Date.prototype.getMinutes.call(this), 2); 1289 } ], 1290 s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ], 1291 ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() { 1292 return E(Date.prototype.getSeconds.call(this), 2); 1293 } ], 1294 l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() { 1295 return E(Date.prototype.getMilliseconds.call(this), 3); 1296 }, 3 ], 1297 L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() { 1298 return E(Date.prototype.getMilliseconds.call(this), 2); 1299 }, 2 ], 1300 t: [ "[ap]", w, "ampm", S, 1 ], 1301 tt: [ "[ap]m", w, "ampm", S, 2 ], 1302 T: [ "[AP]", w, "ampm", S, 1 ], 1303 TT: [ "[AP]M", w, "ampm", S, 2 ], 1304 Z: [ ".*", void 0, "Z", function() { 1305 var e = this.toString().match(/\((.+)\)/)[1]; 1306 e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) { 1307 return c(e, 1)[0]; 1308 })).join("")); 1309 return e; 1310 } ], 1311 o: [ "" ], 1312 S: [ "" ] 1313 }, x = { 1314 D: "d", 1315 DD: "dd", 1316 DDD: "ddd", 1317 DDDD: "dddd", 1318 YY: "yy", 1319 YYYY: "yyyy", 1320 sss: "L" 1321 }, P = { 1322 isoDate: "yyyy-MM-dd", 1323 isoTime: "HH:mm:ss", 1324 isoDateTime: "yyyy-MM-dd\\THH:mm:ss", 1325 isoUtcDateTime: "UTC:yyyy-MM-dd\\THH:mm:ss\\Z" 1326 }; 1327 function w(e) { 1328 var t = this.getHours(); 1329 e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12); 1330 } 1331 function S() { 1332 var e = this.getHours(); 1333 return (e = e || 12) >= 12 ? "PM" : "AM"; 1334 } 1335 function O(e) { 1336 var t = x[e] || e, n = /\d+$/.exec(t); 1337 if (n && void 0 !== n[0]) { 1338 var i = b[t[0] + "x"].slice(""); 1339 return i[0] = i[0](n[0]), i[3] = i[3](n[0]), i; 1340 } 1341 if (b[t]) return b[t]; 1342 } 1343 function M(e) { 1344 if (!e.tokenizer) { 1345 var t, n = [], i = [], a = function(e, t) { 1346 var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; 1347 if (!n) { 1348 if (Array.isArray(e) || (n = u(e)) || t && e && "number" == typeof e.length) { 1349 n && (e = n); 1350 var i = 0, a = function() {}; 1351 return { 1352 s: a, 1353 n: function() { 1354 return i >= e.length ? { 1355 done: !0 1356 } : { 1357 done: !1, 1358 value: e[i++] 1359 }; 1360 }, 1361 e: function(e) { 1362 throw e; 1363 }, 1364 f: a 1365 }; 1366 } 1367 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1368 } 1369 var r, o = !0, l = !1; 1370 return { 1371 s: function() { 1372 n = n.call(e); 1373 }, 1374 n: function() { 1375 var e = n.next(); 1376 return o = e.done, e; 1377 }, 1378 e: function(e) { 1379 l = !0, r = e; 1380 }, 1381 f: function() { 1382 try { 1383 o || null == n.return || n.return(); 1384 } finally { 1385 if (l) throw r; 1386 } 1387 } 1388 }; 1389 }(Object.keys(b).concat(Object.keys(x))); 1390 try { 1391 for (a.s(); !(t = a.n()).done; ) { 1392 var r = t.value; 1393 if (/\.*x$/.test(r)) { 1394 var o = r[0] + "\\d+"; 1395 -1 === i.indexOf(o) && i.push(o); 1396 } else -1 === n.indexOf(r[0]) && n.push(r[0]); 1397 } 1398 } catch (e) { 1399 a.e(e); 1400 } finally { 1401 a.f(); 1402 } 1403 e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + n.join("+|") + "+)+?|.", 1404 e.tokenizer = new RegExp(e.tokenizer, "g"); 1405 } 1406 return e.tokenizer; 1407 } 1408 function _(e, t, n) { 1409 if (!g) return !0; 1410 if (void 0 === e.rawday || !isFinite(e.rawday) && new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day || "29" == e.day && (!isFinite(e.rawyear) || void 0 === e.rawyear || "" === e.rawyear) || new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day) return t; 1411 if ("29" == e.day) { 1412 var i = D.call(this, t.pos, n, this.maskset); 1413 if (i.targetMatch && [ "yyyy", "YYYY" ].includes(i.targetMatch[0]) && t.pos - i.targetMatchIndex == 2) return t.remove = t.pos + 1, 1414 t; 1415 } else if (2 == e.date.getMonth() && "30" == e.day && void 0 !== t.c) return e.day = "03", 1416 e.date.setDate(3), e.date.setMonth(1), t.insert = [ { 1417 pos: t.pos, 1418 c: "0" 1419 }, { 1420 pos: t.pos + 1, 1421 c: t.c 1422 } ], t.caret = l.seekNext.call(this, t.pos + 1), t; 1423 return !1; 1424 } 1425 function j(e, t, n) { 1426 var i, r, o = "", l = 0, s = !1, c = {}; 1427 for (M(n).lastIndex = 0; i = M(n).exec(e); ) if (i[0] === n.escapeChar) s = !0; else { 1428 if (void 0 === t) if (!s && (r = O(i[0]))) o += "(" + r[0] + ")", n.placeholder && "" !== n.placeholder ? (c[l] = n.placeholder[i.index % n.placeholder.length], 1429 c["".concat(i.index, "'").concat(n.placeholder[i.index % n.placeholder.length])] = i[0].charAt(0)) : c[l] = i[0].charAt(0); else switch (i[0]) { 1430 case "[": 1431 o += "("; 1432 break; 1433 1434 case "]": 1435 o += ")?"; 1436 break; 1437 1438 default: 1439 o += (0, a.escapeRegex)(i[0]), c[l] = i[0].charAt(0); 1440 } else if (!s && (r = O(i[0]))) if (r[3]) o += r[3].call(t.date); else r[2] && void 0 !== t["raw" + r[2]] ? o += t["raw" + r[2]] : o += i[0]; else o += i[0]; 1441 l++, s = !1; 1442 } 1443 return void 0 === t && (n.placeholder = c), o; 1444 } 1445 function E(e, t, n) { 1446 for (e = String(e), t = t || 2; e.length < t; ) e = n ? e + "0" : "0" + e; 1447 return e; 1448 } 1449 function T(e, t, n) { 1450 return "string" == typeof e ? new v(e, t, n, this) : e && "object" === p(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0; 1451 } 1452 function A(e, t) { 1453 return j(t.inputFormat, { 1454 date: e 1455 }, t); 1456 } 1457 function D(e, t, n) { 1458 var i, a, r = this, o = 0, l = 0; 1459 for (M(t).lastIndex = 0; a = M(t).exec(t.inputFormat); ) { 1460 var c = /\d+$/.exec(a[0]); 1461 if (c) l = parseInt(c[0]); else { 1462 for (var u = a[0][0], f = o; r && (t.placeholder["".concat(a.index, "'").concat(s.getTest.call(r, f).match.placeholder)] || s.getTest.call(r, f).match.placeholder) === u; ) f++; 1463 0 === (l = f - o) && (l = a[0].length); 1464 } 1465 if ((o += l) >= e + 1) { 1466 var p = ""; 1467 if (n && n.tests[e]) { 1468 var d = Object.keys(t.placeholder).filter((function(t) { 1469 for (var i = a.index - 1; i < o; i++) if (t === "".concat(i, "'").concat(n.tests[e][0].match.placeholder)) return !0; 1470 return !1; 1471 })); 1472 p = d.length > 0 ? t.placeholder[d[0]] : n.tests[e][0].match.placeholder; 1473 } 1474 if (-1 !== a[0].indexOf(p)) { 1475 i = a, a = M(t).exec(t.inputFormat); 1476 break; 1477 } 1478 } 1479 } 1480 return { 1481 targetMatchIndex: o - l, 1482 nextMatch: a, 1483 targetMatch: i 1484 }; 1485 } 1486 r.default.extendAliases({ 1487 datetime: { 1488 mask: function(e) { 1489 if (e.numericInput = !1, b.S = k.ordinalSuffix.join("|"), e.inputFormat = P[e.inputFormat] || e.inputFormat, 1490 e.repeat && (e.repeat = parseInt(e.repeat.toString()), e.repeat > 0)) { 1491 for (var t = "", n = 0; n < e.repeat; n++) t += e.inputFormat; 1492 e.inputFormat = t, e.repeat = 0; 1493 } 1494 return e.displayFormat = P[e.displayFormat] || e.displayFormat || e.inputFormat, 1495 e.outputFormat = P[e.outputFormat] || e.outputFormat || e.inputFormat, e.regex = j(e.inputFormat, void 0, e), 1496 e.min = T(e.min, e.inputFormat, e), e.max = T(e.max, e.inputFormat, e), null; 1497 }, 1498 placeholder: "", 1499 inputFormat: "isoDateTime", 1500 displayFormat: null, 1501 outputFormat: null, 1502 min: null, 1503 max: null, 1504 skipOptionalPartCharacter: "", 1505 preValidation: function(e, t, n, i, a, r, o, l) { 1506 if (l) return !0; 1507 if (isNaN(n) && e[t] !== n) { 1508 var s = D.call(this, t, a, r); 1509
vendor: 4,663 bytes, lines 1509-1569
1509 if (s.nextMatch && s.nextMatch[0] === n && s.targetMatch[0].length > 1) { 1510 var c = O(s.targetMatch[0])[0]; 1511 if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0", 1512 { 1513 fuzzy: !0, 1514 buffer: e, 1515 refreshFromBuffer: { 1516 start: t - 1, 1517 end: t + 1 1518 }, 1519 pos: t + 1 1520 }; 1521 } 1522 } 1523 return !0; 1524 }, 1525 postValidation: function(e, t, n, i, a, r, o, l) { 1526 var c, u, f = this; 1527 if (o) return !0; 1528 if (!1 === i && ((c = D.call(f, t + 1, a, r)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== O(c.targetMatch[0]) ? u = O(c.targetMatch[0])[0] : (c = D.call(f, t + 2, a, r)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== O(c.targetMatch[0]) && (u = O(c.targetMatch)[0]), 1529 void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(n + "0") ? (e[t] = n, 1530 e[t + 1] = "0", i = { 1531 pos: t + 2, 1532 caret: t 1533 }) : new RegExp(u).test("0" + n) && (e[t] = "0", e[t + 1] = n, i = { 1534 pos: t + 2 1535 })), !1 === i)) return i; 1536 if (i.fuzzy && (e = i.buffer, t = i.pos), (c = D.call(f, t, a, r)).targetMatch && c.targetMatch[0] && void 0 !== O(c.targetMatch[0])) { 1537 var p = O(c.targetMatch[0]); 1538 u = p[0]; 1539 var d = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length); 1540 if (!1 === new RegExp(u).test(d.join("")) && 2 === c.targetMatch[0].length && r.validPositions[c.targetMatchIndex] && r.validPositions[c.targetMatchIndex + 1] && (r.validPositions[c.targetMatchIndex + 1].input = "0"), 1541 "year" == p[2]) for (var h = s.getMaskTemplate.call(f, !1, 1, void 0, !0), m = t + 1; m < e.length; m++) e[m] = h[m], 1542 r.validPositions.splice(t + 1, 1); 1543 } 1544 var v = i, g = T.call(f, e.join(""), a.inputFormat, a); 1545 return v && !isNaN(g.date.getTime()) && (a.prefillYear && (v = function(e, t, n) { 1546 if (e.year !== e.rawyear) { 1547 var i = y.toString(), a = e.rawyear.replace(/[^0-9]/g, ""), r = i.slice(0, a.length), o = i.slice(a.length); 1548 if (2 === a.length && a === r) { 1549 var l = new Date(y, e.month - 1, e.day); 1550 e.day == l.getDate() && (!n.max || n.max.date.getTime() >= l.getTime()) && (e.date.setFullYear(y), 1551 e.year = i, t.insert = [ { 1552 pos: t.pos + 1, 1553 c: o[0] 1554 }, { 1555 pos: t.pos + 2, 1556 c: o[1] 1557 } ]); 1558 } 1559 } 1560 return t; 1561 }(g, v, a)), v = function(e, t, n, i) { 1562 if (!t) return t; 1563 if (t && n.min && !isNaN(n.min.date.getTime())) { 1564 var a; 1565 for (e.reset(), M(n).lastIndex = 0; a = M(n).exec(n.inputFormat); ) { 1566 var r; 1567 if ((r = O(a[0])) && r[3]) { 1568 for (var o = r[1], l = e[r[2]], s = n.min[r[2]], c = n.max ? n.max[r[2]] : s + 1, u = [], f = !1, p = 0; p < s.length; p++) void 0 !== i.validPositions[p + a.index] || f ? (u[p] = l[p], 1569 f = f || l[p] >
vendor: 22,512 bytes, lines 1569-1901
1569 s[p]) : (p + a.index == 0 && l[p] < s[p] ? (u[p] = l[p], f = !0) : u[p] = s[p], 1570 "year" === r[2] && l.length - 1 == p && s != c && (u = (parseInt(u.join("")) + 1).toString().split("")), 1571 "ampm" === r[2] && s != c && n.min.date.getTime() > e.date.getTime() && (u[p] = c[p])); 1572 o.call(e._date, u.join("")); 1573 } 1574 } 1575 t = n.min.date.getTime() <= e.date.getTime(), e.reInit(); 1576 } 1577 return t && n.max && (isNaN(n.max.date.getTime()) || (t = n.max.date.getTime() >= e.date.getTime())), 1578 t; 1579 }(g, v = _.call(f, g, v, a), a, r)), void 0 !== t && v && i.pos !== t ? { 1580 buffer: j(a.inputFormat, g, a).split(""), 1581 refreshFromBuffer: { 1582 start: t, 1583 end: i.pos 1584 }, 1585 pos: i.caret || i.pos 1586 } : v; 1587 }, 1588 onKeyDown: function(e, t, n, i) { 1589 e.ctrlKey && e.key === o.keys.ArrowRight && (this.inputmask._valueSet(A(new Date, i)), 1590 m(this).trigger("setvalue")); 1591 }, 1592 onUnMask: function(e, t, n) { 1593 return t ? j(n.outputFormat, T.call(this, e, n.inputFormat, n), n) : t; 1594 }, 1595 casing: function(e, t, n, i) { 1596 if (0 == t.nativeDef.indexOf("[ap]")) return e.toLowerCase(); 1597 if (0 == t.nativeDef.indexOf("[AP]")) return e.toUpperCase(); 1598 var a = s.getTest.call(this, [ n - 1 ]); 1599 return 0 == a.match.def.indexOf("[AP]") || 0 === n || a && a.input === String.fromCharCode(o.keyCode.Space) || a && a.match.def === String.fromCharCode(o.keyCode.Space) || t.static && t.def === t.def.toUpperCase() ? e.toUpperCase() : e.toLowerCase(); 1600 }, 1601 onBeforeMask: function(e, t) { 1602 return "[object Date]" === Object.prototype.toString.call(e) && (e = A(e, t)), e; 1603 }, 1604 insertMode: !1, 1605 insertModeVisual: !1, 1606 shiftPositions: !1, 1607 keepStatic: !1, 1608 inputmode: "numeric", 1609 prefillYear: !0 1610 } 1611 }); 1612 }, 1613 4240: function(e, t, n) { 1614 Object.defineProperty(t, "__esModule", { 1615 value: !0 1616 }), t.mask = function() { 1617 var e = this, t = this.opts, n = this.el, c = this.dependencyLib; 1618 r.EventRuler.off(n); 1619 var u = function(t, n) { 1620 var i = t.getAttribute("type"), a = "input" === t.tagName.toLowerCase() && n.supportsInputType.includes(i) || t.isContentEditable || "textarea" === t.tagName.toLowerCase(); 1621 if (!a) if ("input" === t.tagName.toLowerCase()) { 1622 var s = document.createElement("input"); 1623 s.setAttribute("type", i), a = "text" === s.type, s = null; 1624 } else a = "partial"; 1625 return !1 !== a ? function(t) { 1626 var i, a; 1627 function s() { 1628 return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== l.getLastValidPosition.call(e) || !0 !== n.nullable ? this.getRootNode().activeElement === this && n.clearMaskOnLostFocus ? (e.isRTL ? o.clearOptionalTail.call(e, l.getBuffer.call(e).slice()).reverse() : o.clearOptionalTail.call(e, l.getBuffer.call(e).slice())).join("") : i.call(this) : "" : i.call(this); 1629 } 1630 function u(e) { 1631 a.call(this, e), this.inputmask && (0, o.applyInputValue)(this, e); 1632 } 1633 if (!t.inputmask.__valueGet) { 1634 if (!0 !== n.noValuePatching) { 1635 if (Object.getOwnPropertyDescriptor) { 1636 var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0; 1637 f && f.get && f.set ? (i = f.get, a = f.set, Object.defineProperty(t, "value", { 1638 get: s, 1639 set: u, 1640 configurable: !0 1641 })) : "input" !== t.tagName.toLowerCase() && (i = function() { 1642 return this.textContent; 1643 }, a = function(e) { 1644 this.textContent = e; 1645 }, Object.defineProperty(t, "value", { 1646 get: s, 1647 set: u, 1648 configurable: !0 1649 })); 1650 } else document.__lookupGetter__ && t.__lookupGetter__("value") && (i = t.__lookupGetter__("value"), 1651 a = t.__lookupSetter__("value"), t.__defineGetter__("value", s), t.__defineSetter__("value", u)); 1652 t.inputmask.__valueGet = i, t.inputmask.__valueSet = a; 1653 } 1654 t.inputmask._valueGet = function(t) { 1655 return e.isRTL && !0 !== t ? i.call(this.el).split("").reverse().join("") : i.call(this.el); 1656 }, t.inputmask._valueSet = function(t, n) { 1657 a.call(this.el, null == t ? "" : !0 !== n && e.isRTL ? t.split("").reverse().join("") : t); 1658 }, void 0 === i && (i = function() { 1659 return this.value; 1660 }, a = function(e) { 1661 this.value = e; 1662 }, function(t) { 1663 if (c.valHooks && (void 0 === c.valHooks[t] || !0 !== c.valHooks[t].inputmaskpatch)) { 1664 var i = c.valHooks[t] && c.valHooks[t].get ? c.valHooks[t].get : function(e) { 1665 return e.value; 1666 }, a = c.valHooks[t] && c.valHooks[t].set ? c.valHooks[t].set : function(e, t) { 1667 return e.value = t, e; 1668 }; 1669 c.valHooks[t] = { 1670 get: function(t) { 1671 if (t.inputmask) { 1672 if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue(); 1673 var a = i(t); 1674 return -1 !== l.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== n.nullable ? a : ""; 1675 } 1676 return i(t); 1677 }, 1678 set: function(e, t) { 1679 var n = a(e, t); 1680 return e.inputmask && (0, o.applyInputValue)(e, t), n; 1681 }, 1682 inputmaskpatch: !0 1683 }; 1684 } 1685 }(t.type), function(e) { 1686 r.EventRuler.on(e, "mouseenter", (function() { 1687 var e = this, t = e.inputmask._valueGet(!0); 1688 t != (e.inputmask.isRTL ? l.getBuffer.call(e.inputmask).slice().reverse() : l.getBuffer.call(e.inputmask)).join("") && (0, 1689 o.applyInputValue)(e, t); 1690 })); 1691 }(t)); 1692 } 1693 }(t) : t.inputmask = void 0, a; 1694 }(n, t); 1695 if (!1 !== u) { 1696 e.originalPlaceholder = n.placeholder, e.maxLength = void 0 !== n ? n.maxLength : void 0, 1697 -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in n && null === n.getAttribute("inputmode") && (n.inputMode = t.inputmode, 1698 n.setAttribute("inputmode", t.inputmode)), !0 === u && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(n.autocomplete), 1699 i.iphone && (t.insertModeVisual = !1, n.setAttribute("autocorrect", "off")), r.EventRuler.on(n, "submit", a.EventHandlers.submitEvent), 1700 r.EventRuler.on(n, "reset", a.EventHandlers.resetEvent), r.EventRuler.on(n, "blur", a.EventHandlers.blurEvent), 1701 r.EventRuler.on(n, "focus", a.EventHandlers.focusEvent), r.EventRuler.on(n, "invalid", a.EventHandlers.invalidEvent), 1702 r.EventRuler.on(n, "click", a.EventHandlers.clickEvent), r.EventRuler.on(n, "mouseleave", a.EventHandlers.mouseleaveEvent), 1703 r.EventRuler.on(n, "mouseenter", a.EventHandlers.mouseenterEvent), r.EventRuler.on(n, "paste", a.EventHandlers.pasteEvent), 1704 r.EventRuler.on(n, "cut", a.EventHandlers.cutEvent), r.EventRuler.on(n, "complete", t.oncomplete), 1705 r.EventRuler.on(n, "incomplete", t.onincomplete), r.EventRuler.on(n, "cleared", t.oncleared), 1706 !0 !== t.inputEventOnly && r.EventRuler.on(n, "keydown", a.EventHandlers.keyEvent), 1707 (i.mobile || t.inputEventOnly) && n.removeAttribute("maxLength"), r.EventRuler.on(n, "input", a.EventHandlers.inputFallBackEvent)), 1708 r.EventRuler.on(n, "setvalue", a.EventHandlers.setValueEvent), void 0 === e.applyMaskHook || e.applyMaskHook(), 1709 l.getBufferTemplate.call(e).join(""), e.undoValue = e._valueGet(!0); 1710 var f = n.getRootNode().activeElement; 1711 if ("" !== n.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || f === n) { 1712 (0, o.applyInputValue)(n, n.inputmask._valueGet(!0)); 1713 var p = l.getBuffer.call(e).slice(); 1714 !1 === s.isComplete.call(e, p) && t.clearIncomplete && l.resetMaskSet.call(e, !1), 1715 t.clearMaskOnLostFocus && f !== n && (-1 === l.getLastValidPosition.call(e) ? p = [] : o.clearOptionalTail.call(e, p)), 1716 (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && f === n || "" !== n.inputmask._valueGet(!0)) && (0, 1717 o.writeBuffer)(n, p), f === n ? l.caret.call(e, n, l.seekNext.call(e, l.getLastValidPosition.call(e))) : l.caret.call(e, n, 0); 1718 } 1719 } 1720 }; 1721 var i = n(4351), a = n(6047), r = n(4136), o = n(1507), l = n(7539), s = n(7687); 1722 }, 1723 4351: function(e, t, n) { 1724 Object.defineProperty(t, "__esModule", { 1725 value: !0 1726 }), t.mobile = t.iphone = t.ie = void 0; 1727 var i, a = (i = n(6266)) && i.__esModule ? i : { 1728 default: i 1729 }; 1730 var r = a.default.navigator && a.default.navigator.userAgent || ""; 1731 t.ie = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, t.mobile = a.default.navigator && a.default.navigator.userAgentData && a.default.navigator.userAgentData.mobile || a.default.navigator && a.default.navigator.maxTouchPoints || "ontouchstart" in a.default, 1732 t.iphone = /iphone/i.test(r); 1733 }, 1734 4424: function(t) { 1735 t.exports = e; 1736 }, 1737 4507: function(e, t, n) { 1738 Object.defineProperty(t, "__esModule", { 1739 value: !0 1740 }), t.analyseMask = function(e, t, n) { 1741 var i, a, s, c, u, f, p = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, d = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, h = new o.default, m = [], v = [], g = !1, y = !1; 1742 function k(e, i, a) { 1743 a = void 0 !== a ? a : e.matches.length; 1744 var o = e.matches[a - 1], s = n.casing ? "i" : ""; 1745 if (t) 0 === i.indexOf("[") || g && /\\d|\\s|\\w|\\p/i.test(i) || "." === i ? (/\\p\{.*}/i.test(i) && (s += "u"), 1746 e.matches.splice(a++, 0, { 1747 fn: new RegExp(i, s), 1748 static: !1, 1749 optionality: !1, 1750 newBlockMarker: void 0 === o ? "master" : o.def !== i, 1751 casing: null, 1752 def: i, 1753 placeholder: "object" === l(n.placeholder) ? n.placeholder[h.matches.length] : void 0, 1754 nativeDef: i 1755 })) : (g && (i = i[i.length - 1]), i.split("").forEach((function(t, i) { 1756 o = e.matches[a - 1], e.matches.splice(a++, 0, { 1757 fn: /[a-z]/i.test(n.staticDefinitionSymbol || t) ? new RegExp("[" + (n.staticDefinitionSymbol || t) + "]", s) : null, 1758 static: !0, 1759 optionality: !1, 1760 newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static, 1761 casing: null, 1762 def: n.staticDefinitionSymbol || t, 1763 placeholder: void 0 !== n.staticDefinitionSymbol ? t : "object" === l(n.placeholder) ? n.placeholder[h.matches.length] : void 0, 1764 nativeDef: (g ? "'" : "") + t 1765 }); 1766 }))), g = !1; else { 1767 var c = n.definitions && n.definitions[i] || n.usePrototypeDefinitions && r.default.prototype.definitions[i]; 1768 c && !g ? ("string" == typeof c.validator && /\\p\{.*}/i.test(c.validator) && (s += "u"), 1769 e.matches.splice(a++, 0, { 1770 fn: c.validator ? "string" == typeof c.validator ? new RegExp(c.validator, s) : new function() { 1771 this.test = c.validator; 1772 } : /./, 1773 static: c.static || !1, 1774 optionality: c.optional || !1, 1775 defOptionality: c.optional || !1, 1776 newBlockMarker: void 0 === o || c.optional ? "master" : o.def !== (c.definitionSymbol || i), 1777 casing: c.casing, 1778 def: c.definitionSymbol || i, 1779 placeholder: c.placeholder, 1780 nativeDef: i, 1781 generated: c.generated 1782 })) : (e.matches.splice(a++, 0, { 1783 fn: /[a-z]/i.test(n.staticDefinitionSymbol || i) ? new RegExp("[" + (n.staticDefinitionSymbol || i) + "]", s) : null, 1784 static: !0, 1785 optionality: !1, 1786 newBlockMarker: void 0 === o ? "master" : o.def !== i && !0 !== o.static, 1787 casing: null, 1788 def: n.staticDefinitionSymbol || i, 1789 placeholder: void 0 !== n.staticDefinitionSymbol ? i : void 0, 1790 nativeDef: (g ? "'" : "") + i 1791 }), g = !1); 1792 } 1793 } 1794 function b() { 1795 if (m.length > 0) { 1796 if (k(c = m[m.length - 1], a), c.isAlternator) { 1797 u = m.pop(); 1798 for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup && (u.matches[e].isGroup = !1); 1799 m.length > 0 ? (c = m[m.length - 1]).matches.push(u) : h.matches.push(u); 1800 } 1801 } else k(h, a); 1802 } 1803 function x(e) { 1804 var t = new o.default(!0); 1805 return t.openGroup = !1, t.matches = e, t; 1806 } 1807 function P() { 1808 if ((s = m.pop()).openGroup = !1, void 0 !== s) if (m.length > 0) { 1809 if ((c = m[m.length - 1]).matches.push(s), c.isAlternator) { 1810 u = m.pop(); 1811 for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup = !1, u.matches[e].alternatorGroup = !1; 1812 m.length > 0 ? (c = m[m.length - 1]).matches.push(u) : h.matches.push(u); 1813 } 1814 } else h.matches.push(s); else b(); 1815 } 1816 function w(e) { 1817 var t = e.pop(); 1818 return t.isQuantifier && (t = x([ e.pop(), t ])), t; 1819 } 1820 t && (n.optionalmarker[0] = void 0, n.optionalmarker[1] = void 0); 1821 for (;i = t ? d.exec(e) : p.exec(e); ) { 1822 if (a = i[0], t) { 1823 switch (a.charAt(0)) { 1824 case "?": 1825 a = "{0,1}"; 1826 break; 1827 1828 case "+": 1829 case "*": 1830 a = "{" + a + "}"; 1831 break; 1832 1833 case "|": 1834 if (0 === m.length) { 1835 var S = x(h.matches); 1836 S.openGroup = !0, m.push(S), h.matches = [], y = !0; 1837 } 1838 } 1839 switch (a) { 1840 case "\\d": 1841 a = "[0-9]"; 1842 break; 1843 1844 case "\\p": 1845 a += d.exec(e)[0], a += d.exec(e)[0]; 1846 } 1847 } 1848 if (g) b(); else switch (a.charAt(0)) { 1849 case "$": 1850 case "^": 1851 t || b(); 1852 break; 1853 1854 case n.escapeChar: 1855 g = !0, t && b(); 1856 break; 1857 1858 case n.optionalmarker[1]: 1859 case n.groupmarker[1]: 1860 P(); 1861 break; 1862 1863 case n.optionalmarker[0]: 1864 m.push(new o.default(!1, !0)); 1865 break; 1866 1867 case n.groupmarker[0]: 1868 m.push(new o.default(!0)); 1869 break; 1870 1871 case n.quantifiermarker[0]: 1872 var O = new o.default(!1, !1, !0), M = (a = a.replace(/[{}?]/g, "")).split("|"), _ = M[0].split(","), j = isNaN(_[0]) ? _[0] : parseInt(_[0]), E = 1 === _.length ? j : isNaN(_[1]) ? _[1] : parseInt(_[1]), T = isNaN(M[1]) ? M[1] : parseInt(M[1]); 1873 "*" !== j && "+" !== j || (j = "*" === E ? 0 : 1), O.quantifier = { 1874 min: j, 1875 max: E, 1876 jit: T 1877 }; 1878 var A = m.length > 0 ? m[m.length - 1].matches : h.matches; 1879 (i = A.pop()).isGroup || (i = x([ i ])), A.push(i), A.push(O); 1880 break; 1881 1882 case n.alternatormarker: 1883 if (m.length > 0) { 1884 var D = (c = m[m.length - 1]).matches[c.matches.length - 1]; 1885 f = c.openGroup && (void 0 === D.matches || !1 === D.isGroup && !1 === D.isAlternator) ? m.pop() : w(c.matches); 1886 } else f = w(h.matches); 1887 if (f.isAlternator) m.push(f); else if (f.alternatorGroup ? (u = m.pop(), f.alternatorGroup = !1) : u = new o.default(!1, !1, !1, !0), 1888 u.matches.push(f), m.push(u), f.openGroup) { 1889 f.openGroup = !1; 1890 var L = new o.default(!0); 1891 L.alternatorGroup = !0, m.push(L); 1892 } 1893 break; 1894 1895 default: 1896 b(); 1897 } 1898 } 1899 y && P(); 1900 for (;m.length > 0; ) s = m.pop(), h.matches.push(s); 1901 h.matches.length > 0 && (!function e(i) {
1902 i && i.matches && i.matches.forEach((function(a, r) { 1903 var o = i.matches[r + 1]; 1904 (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && a && a.isGroup && (a.isGroup = !1, 1905 t || (k(a, n.groupmarker[0], 0), !0 !== a.openGroup && k(a, n.groupmarker[1]))), 1906 e(a); 1907 })); 1908 }(h), v.push(h)); 1909 (n.numericInput || n.isRTL) && function e(t) { 1910 for (var i in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, i)) { 1911 var a = parseInt(i); 1912 if (t.matches[i].isQuantifier && t.matches[a + 1] && t.matches[a + 1].isGroup) { 1913 var r = t.matches[i]; 1914 t.matches.splice(i, 1), t.matches.splice(a + 1, 0, r); 1915 } 1916 void 0 !== t.matches[i].matches ? t.matches[i] = e(t.matches[i]) : t.matches[i] = ((o = t.matches[i]) === n.optionalmarker[0] ? o = n.optionalmarker[1] : o === n.optionalmarker[1] ? o = n.optionalmarker[0] : o === n.groupmarker[0] ? o = n.groupmarker[1] : o === n.groupmarker[1] && (o = n.groupmarker[0]), 1917 o); 1918 } 1919 var o; 1920 return t; 1921 }(v[0]); 1922 return v; 1923 }, t.generateMaskSet = function(e, t) { 1924 var n; 1925 function o(e, t) { 1926 var n = t.repeat, i = t.groupmarker, r = t.quantifiermarker, o = t.keepStatic; 1927 if (n > 0 || "*" === n || "+" === n) { 1928 var l = "*" === n ? 0 : "+" === n ? 1 : n; 1929 if (l !== n) e = i[0] + e + i[1] + r[0] + l + "," + n + r[1]; else for (var c = e, u = 1; u < l; u++) e += c; 1930 } 1931 if (!0 === o) { 1932 var f = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g")); 1933 f && f.forEach((function(t, n) { 1934 var i, r, o = t.split("["), l = (r = 2, function(e) { 1935 if (Array.isArray(e)) return e; 1936 }(i = o) || function(e, t) { 1937 var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; 1938 if (null != n) { 1939 var i, a, r, o, l = [], s = !0, c = !1; 1940 try { 1941 if (r = (n = n.call(e)).next, 0 === t) { 1942 if (Object(n) !== n) return; 1943 s = !1; 1944 } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ; 1945 } catch (e) { 1946 c = !0, a = e; 1947 } finally { 1948 try { 1949 if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return; 1950 } finally { 1951 if (c) throw a; 1952 } 1953 } 1954 return l; 1955 } 1956 }(i, r) || function(e, t) { 1957 if (e) { 1958 if ("string" == typeof e) return s(e, t); 1959 var n = {}.toString.call(e).slice(8, -1); 1960 return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? s(e, t) : void 0; 1961 } 1962 }(i, r) || function() { 1963 throw new TypeError("Invalid attempt to de
vendor: 9,332 bytes, lines 1963-2137
1963structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 1964 }()), c = l[0], u = l[1]; 1965 u = u.replace("]", ""), e = e.replace(new RegExp("".concat((0, a.escapeRegex)(c), "\\[").concat((0, 1966 a.escapeRegex)(u), "\\]")), c.charAt(0) === u.charAt(0) ? "(".concat(c, "|").concat(c).concat(u, ")") : "".concat(c, "[").concat(u, "]")); 1967 })); 1968 } 1969 return e; 1970 } 1971 function c(e, n, a) { 1972 var s, c, u = !1; 1973 return null !== e && "" !== e || ((u = null !== a.regex) ? e = (e = a.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (u = !0, 1974 e = ".*")), 1 === e.length && !1 === a.greedy && 0 !== a.repeat && (a.placeholder = ""), 1975 e = o(e, a), c = u ? "regex_" + a.regex : a.numericInput ? e.split("").reverse().join("") : e, 1976 null !== a.keepStatic && (c = "ks_" + a.keepStatic + c), "object" === l(a.placeholder) && (c = "ph_" + JSON.stringify(a.placeholder) + c), 1977 void 0 === r.default.prototype.masksCache[c] || !0 === t ? (s = { 1978 mask: e, 1979 maskToken: r.default.prototype.analyseMask(e, u, a), 1980 validPositions: [], 1981 _buffer: void 0, 1982 buffer: void 0, 1983 tests: {}, 1984 excludes: {}, 1985 metadata: n, 1986 maskLength: void 0, 1987 jitOffset: {} 1988 }, !0 !== t && (r.default.prototype.masksCache[c] = s, s = i.default.extend(!0, {}, r.default.prototype.masksCache[c]))) : s = i.default.extend(!0, {}, r.default.prototype.masksCache[c]), 1989 s; 1990 } 1991 "function" == typeof e.mask && (e.mask = e.mask(e)); 1992 if (Array.isArray(e.mask)) { 1993 if (e.mask.length > 1) { 1994 null === e.keepStatic && (e.keepStatic = !0); 1995 var u = e.groupmarker[0]; 1996 return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) { 1997 u.length > 1 && (u += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? u += t.mask : u += t; 1998 })), c(u += e.groupmarker[1], e.mask, e); 1999 } 2000 e.mask = e.mask.pop(); 2001 } 2002 n = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? c(e.mask.mask, e.mask, e) : c(e.mask, e.mask, e); 2003 null === e.keepStatic && (e.keepStatic = !1); 2004 return n; 2005 }; 2006 var i = c(n(8826)), a = n(340), r = c(n(3978)), o = c(n(9439)); 2007 function l(e) { 2008 return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 2009 return typeof e; 2010 } : function(e) { 2011 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 2012 }, l(e); 2013 } 2014 function s(e, t) { 2015 (null == t || t > e.length) && (t = e.length); 2016 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 2017 return i; 2018 } 2019 function c(e) { 2020 return e && e.__esModule ? e : { 2021 default: e 2022 }; 2023 } 2024 }, 2025 4829: function(e, t, n) { 2026 var i, a = (i = n(3978)) && i.__esModule ? i : { 2027 default: i 2028 }, r = n(7539), o = n(5895); 2029 function l(e) { 2030 return function(e) { 2031 if (Array.isArray(e)) return s(e); 2032 }(e) || function(e) { 2033 if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e); 2034 }(e) || function(e, t) { 2035 if (e) { 2036 if ("string" == typeof e) return s(e, t); 2037 var n = {}.toString.call(e).slice(8, -1); 2038 return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? s(e, t) : void 0; 2039 } 2040 }(e) || function() { 2041 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2042 }(); 2043 } 2044 function s(e, t) { 2045 (null == t || t > e.length) && (t = e.length); 2046 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 2047 return i; 2048 } 2049 a.default.extendDefinitions({ 2050 A: { 2051 validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]", 2052 casing: "upper" 2053 }, 2054 "&": { 2055 validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]", 2056 casing: "upper" 2057 }, 2058 "#": { 2059 validator: "[0-9A-Fa-f]", 2060 casing: "upper" 2061 } 2062 }); 2063 var c = /25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/; 2064 function u(e, t, n, i, a) { 2065 if (n - 1 > -1 && "." !== t.buffer[n - 1] ? (e = t.buffer[n - 1] + e, e = n - 2 > -1 && "." !== t.buffer[n - 2] ? t.buffer[n - 2] + e : "0" + e) : e = "00" + e, 2066 a.greedy && parseInt(e) > 255 && c.test("00" + e.charAt(2))) { 2067 var r = [].concat(l(t.buffer.slice(0, n)), [ ".", e.charAt(2) ]); 2068 if (r.join("").match(/\./g).length < 4) return { 2069 refreshFromBuffer: !0, 2070 buffer: r, 2071 caret: n + 2 2072 }; 2073 } 2074 return c.test(e); 2075 } 2076 a.default.extendAliases({ 2077 cssunit: { 2078 regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)" 2079 }, 2080 url: { 2081 regex: "(https?|ftp)://.*", 2082 autoUnmask: !1, 2083 keepStatic: !1, 2084 tabThrough: !0 2085 }, 2086 ip: { 2087 mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}", 2088 definitions: { 2089 i: { 2090 validator: u 2091 }, 2092 j: { 2093 validator: u 2094 }, 2095 k: { 2096 validator: u 2097 }, 2098 l: { 2099 validator: u 2100 } 2101 }, 2102 onUnMask: function(e, t, n) { 2103 return e; 2104 }, 2105 inputmode: "decimal", 2106 substitutes: { 2107 ",": "." 2108 } 2109 }, 2110 email: { 2111 mask: function(e) { 2112 var t = e.separator, n = e.quantifier, i = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", a = i; 2113 if (t) for (var r = 0; r < n; r++) a += "[".concat(t).concat(i, "]"); 2114 return a; 2115 }, 2116 greedy: !1, 2117 casing: "lower", 2118 separator: null, 2119 quantifier: 5, 2120 skipOptionalPartCharacter: "", 2121 onBeforePaste: function(e, t) { 2122 return (e = e.toLowerCase()).replace("mailto:", ""); 2123 }, 2124 definitions: { 2125 "*": { 2126 validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]" 2127 }, 2128 "-": { 2129 validator: "[0-9A-Za-z-]" 2130 } 2131 }, 2132 onUnMask: function(e, t, n) { 2133 return e; 2134 }, 2135 inputmode: "email" 2136 }, 2137 mac: {
vendor: 25,431 bytes, lines 2138-2492
2138 mask: "##:##:##:##:##:##" 2139 }, 2140 vin: { 2141 mask: "V{13}9{4}", 2142 definitions: { 2143 V: { 2144 validator: "[A-HJ-NPR-Za-hj-npr-z\\d]", 2145 casing: "upper" 2146 } 2147 }, 2148 clearIncomplete: !0, 2149 autoUnmask: !0 2150 }, 2151 ssn: { 2152 mask: "999-99-9999", 2153 postValidation: function(e, t, n, i, a, l, s) { 2154 var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0); 2155 return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join("")); 2156 } 2157 } 2158 }); 2159 }, 2160 5895: function(e, t, n) { 2161 Object.defineProperty(t, "__esModule", { 2162 value: !0 2163 }), t.determineTestTemplate = f, t.getDecisionTaker = s, t.getMaskTemplate = function(e, t, n, i, a) { 2164 var r = this, o = this.opts, l = this.maskset, s = o.greedy; 2165 a && o.greedy && (o.greedy = !1, r.maskset.tests = {}); 2166 t = t || 0; 2167 var p, d, m, v, g = [], y = 0; 2168 do { 2169 if (!0 === e && l.validPositions[y]) d = (m = a && l.validPositions[y].match.optionality && void 0 === l.validPositions[y + 1] && (!0 === l.validPositions[y].generatedInput || l.validPositions[y].input == o.skipOptionalPartCharacter && y > 0) ? f.call(r, y, h.call(r, y, p, y - 1)) : l.validPositions[y]).match, 2170 p = m.locator.slice(), g.push(!0 === n ? m.input : !1 === n ? d.nativeDef : c.call(r, y, d)); else { 2171 d = (m = u.call(r, y, p, y - 1)).match, p = m.locator.slice(); 2172 var k = !0 !== i && (!1 !== o.jitMasking ? o.jitMasking : d.jit); 2173 (v = (v || l.validPositions[y - 1]) && d.static && d.def !== o.groupSeparator && null === d.fn) || !1 === k || void 0 === k || "number" == typeof k && isFinite(k) && k > y ? g.push(!1 === n ? d.nativeDef : c.call(r, g.length, d)) : v = !1; 2174 } 2175 y++; 2176 } while (!0 !== d.static || "" !== d.def || t > y); 2177 "" === g[g.length - 1] && g.pop(); 2178 !1 === n && void 0 !== l.maskLength || (l.maskLength = y - 1); 2179 return o.greedy = s, g; 2180 }, t.getPlaceholder = c, t.getTest = p, t.getTestTemplate = u, t.getTests = h, t.isSubsetOf = d; 2181 var i, a = (i = n(3978)) && i.__esModule ? i : { 2182 default: i 2183 }, r = n(7539); 2184 function o(e) { 2185 return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 2186 return typeof e; 2187 } : function(e) { 2188 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 2189 }, o(e); 2190 } 2191 function l(e, t) { 2192 var n = (null != e.alternation ? e.mloc[s(e)] : e.locator).join(""); 2193 if ("" !== n) for (n = n.split(":")[0]; n.length < t; ) n += "0"; 2194 return n; 2195 } 2196 function s(e) { 2197 var t = e.locator[e.alternation]; 2198 return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : ""; 2199 } 2200 function c(e, t, n) { 2201 var i = this, a = this.opts, l = this.maskset; 2202 if (void 0 !== (t = t || p.call(i, e).match).placeholder || !0 === n) { 2203 if ("" !== t.placeholder && !0 === t.static && !0 !== t.generated) { 2204 var s = r.getLastValidPosition.call(i, e), c = r.seekNext.call(i, s); 2205 return (n ? e <= c : e < c) ? a.staticDefinitionSymbol && t.static ? t.nativeDef : t.def : "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder; 2206 } 2207 return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder; 2208 } 2209 if (!0 === t.static) { 2210 if (e > -1 && void 0 === l.validPositions[e]) { 2211 var u, f = h.call(i, e), d = []; 2212 if ("string" == typeof a.placeholder && f.length > 1 + ("" === f[f.length - 1].match.def ? 1 : 0)) for (var m = 0; m < f.length; m++) if ("" !== f[m].match.def && !0 !== f[m].match.optionality && !0 !== f[m].match.optionalQuantifier && (!0 === f[m].match.static || void 0 === u || !1 !== f[m].match.fn.test(u.match.def, l, e, !0, a)) && (d.push(f[m]), 2213 !0 === f[m].match.static && (u = f[m]), d.length > 1 && /[0-9a-bA-Z]/.test(d[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length); 2214 } 2215 return t.def; 2216 } 2217 return "object" === o(a.placeholder) ? t.def : a.placeholder.charAt(e % a.placeholder.length); 2218 } 2219 function u(e, t, n) { 2220 return this.maskset.validPositions[e] || f.call(this, e, h.call(this, e, t ? t.slice() : t, n)); 2221 } 2222 function f(e, t) { 2223 var n = this.opts, i = 0, a = function(e, t) { 2224 var n = 0, i = !1; 2225 t.forEach((function(e) { 2226 e.match.optionality && (0 !== n && n !== e.match.optionality && (i = !0), (0 === n || n > e.match.optionality) && (n = e.match.optionality)); 2227 })), n && (0 == e || 1 == t.length ? n = 0 : i || (n = 0)); 2228 return n; 2229 }(e, t); 2230 e = e > 0 ? e - 1 : 0; 2231 var r, o, s, c = l(p.call(this, e)); 2232 n.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (i = 1); 2233 for (var u = 0; u < t.length - i; u++) { 2234 var f = t[u]; 2235 r = l(f, c.length); 2236 var d = Math.abs(r - c); 2237 (!0 !== f.unMatchedAlternationStopped || t.filter((function(e) { 2238 return !0 !== e.unMatchedAlternationStopped; 2239 })).length <= 1) && (void 0 === o || "" !== r && d < o || s && !n.greedy && s.match.optionality && s.match.optionality - a > 0 && "master" === s.match.newBlockMarker && (!f.match.optionality || f.match.optionality - a < 1 || !f.match.newBlockMarker) || s && !n.greedy && s.match.optionalQuantifier && !f.match.optionalQuantifier) && (o = d, 2240 s = f); 2241 } 2242 return s; 2243 } 2244 function p(e, t) { 2245 var n = this.maskset; 2246 return n.validPositions[e] ? n.validPositions[e] : (t || h.call(this, e))[0]; 2247 } 2248 function d(e, t, n) { 2249 function i(e) { 2250 for (var t, n = [], i = -1, a = 0, r = e.length; a < r; a++) if ("-" === e.charAt(a)) for (t = e.charCodeAt(a + 1); ++i < t; ) n.push(String.fromCharCode(i)); else i = e.charCodeAt(a), 2251 n.push(e.charAt(a)); 2252 return n.join(""); 2253 } 2254 return e.match.def === t.match.nativeDef || !(!(n.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && ("." === t.match.fn.source || -1 !== i(t.match.fn.source.replace(/[[\]/]/g, "")).indexOf(i(e.match.fn.source.replace(/[[\]/]/g, "")))); 2255 } 2256 function h(e, t, n) { 2257 var i, r, o = this, l = this.dependencyLib, s = this.maskset, c = this.opts, u = this.el, p = s.maskToken, h = t ? n : 0, m = t ? t.slice() : [ 0 ], v = [], g = !1, y = t ? t.join("") : "", k = !1; 2258 function b(t, n, r, l) { 2259 function f(r, l, p) { 2260 function m(e, t) { 2261 var n = 0 === t.matches.indexOf(e); 2262 return n || t.matches.every((function(i, a) { 2263 return !0 === i.isQuantifier ? n = m(e, t.matches[a - 1]) : Object.prototype.hasOwnProperty.call(i, "matches") && (n = m(e, i)), 2264 !n; 2265 })), n; 2266 } 2267 function P(e, t, n) { 2268 var i, a; 2269 if ((s.tests[e] || s.validPositions[e]) && (s.validPositions[e] ? [ s.validPositions[e] ] : s.tests[e]).every((function(e, r) { 2270 if (e.mloc[t]) return i = e, !1; 2271 var o = void 0 !== n ? n : e.alternation, l = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1; 2272 return (void 0 === a || l < a) && -1 !== l && (i = e, a = l), !0; 2273 })), i) { 2274 var r = i.locator[i.alternation], o = i.mloc[t] || i.mloc[r] || i.locator; 2275 if (-1 !== o[o.length - 1].toString().indexOf(":")) o.pop(); 2276 return o.slice((void 0 !== n ? n : i.alternation) + 1); 2277 } 2278 return void 0 !== n ? P(e, t) : void 0; 2279 } 2280 function w(t, n) { 2281 return !0 === t.match.static && !0 !== n.match.static && n.match.fn.test(t.match.def, s, e, !1, c, !1); 2282 } 2283 function S(e, t) { 2284 var n = e.alternation, i = void 0 === t || n <= t.alternation && -1 === e.locator[n].toString().indexOf(t.locator[n]); 2285 if (!i && n > t.alternation) for (var a = 0; a < n; a++) if (e.locator[a] !== t.locator[a]) { 2286 n = a, i = !0; 2287 break; 2288 } 2289 return !!i && function(n) { 2290 e.mloc = e.mloc || {}; 2291 var i = e.locator[n]; 2292 if (void 0 !== i) { 2293 if ("string" == typeof i && (i = i.split(",")[0]), void 0 === e.mloc[i] && (e.mloc[i] = e.locator.slice(), 2294 e.mloc[i].push(":".concat(e.alternation))), void 0 !== t) { 2295 for (var a in t.mloc) "string" == typeof a && (a = parseInt(a.split(",")[0])), e.mloc[a + 0] = t.mloc[a]; 2296 e.locator[n] = Object.keys(e.mloc).join(","); 2297 } 2298 return e.alternation > n && (e.alternation = n), !0; 2299 } 2300 return e.alternation = void 0, !1; 2301 }(n); 2302 } 2303 function O(e, t) { 2304 if (e.locator.length !== t.locator.length) return !1; 2305 for (var n = e.alternation + 1; n < e.locator.length; n++) if (e.locator[n] !== t.locator[n]) return !1; 2306 return !0; 2307 } 2308 if (h > e + c._maxTestPos) throw new Error("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. ".concat(s.mask)); 2309 if (h === e && void 0 === r.matches) { 2310 if (v.push({ 2311 match: r, 2312 locator: l.reverse(), 2313 cd: y, 2314 mloc: {} 2315 }), !r.optionality || void 0 !== p || !(c.definitions && c.definitions[r.nativeDef] && c.definitions[r.nativeDef].optional || a.default.prototype.definitions[r.nativeDef] && a.default.prototype.definitions[r.nativeDef].optional)) return !0; 2316 g = !0, h = e; 2317 } else if (void 0 !== r.matches) { 2318 if (r.isGroup && p !== r) return function() { 2319 if (r = f(t.matches[t.matches.indexOf(r) + 1], l, p)) return !0; 2320 }(); 2321 if (r.isOptional) return function() { 2322 var t = r, a = v.length; 2323 if (r = b(r, n, l, p), v.length > 0) { 2324 if (v.forEach((function(e, t) { 2325 t >= a && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1); 2326 })), i = v[v.length - 1].match, void 0 !== p || !m(i, t)) return r; 2327 g = !0, h = e; 2328 } 2329 }(); 2330 if (r.isAlternator) return function() { 2331 function i(e) { 2332 for (var t, n = e.matches[0].matches ? e.matches[0].matches.length : 1, i = 0; i < e.matches.length && n === (t = e.matches[i].matches ? e.matches[i].matches.length : 1); i++) ; 2333 return n !== t; 2334 } 2335 o.hasAlternator = !0; 2336 var a, m = r, y = [], b = v.slice(), x = l.length, M = n.length > 0 ? n.shift() : -1; 2337 if (-1 === M || "string" == typeof M) { 2338 var _, j = h, E = n.slice(), T = []; 2339 if ("string" == typeof M) T = M.split(","); else for (_ = 0; _ < m.matches.length; _++) T.push(_.toString()); 2340 if (void 0 !== s.excludes[e]) { 2341 for (var A = T.slice(), D = 0, L = s.excludes[e].length; D < L; D++) { 2342 var C = s.excludes[e][D].toString().split(":"); 2343 l.length == C[1] && T.splice(T.indexOf(C[0]), 1); 2344 } 2345 0 === T.length && (delete s.excludes[e], T = A); 2346 } 2347 (!0 === c.keepStatic || isFinite(parseInt(c.keepStatic)) && j >= c.keepStatic) && (T = T.slice(0, 1)); 2348 for (var B = 0; B < T.length; B++) { 2349 _ = parseInt(T[B]), v = [], n = "string" == typeof M && P(h, _, x) || E.slice(); 2350 var R = m.matches[_]; 2351 if (R && f(R, [ _ ].concat(l), p)) r = !0; else if (0 === B && (k = i(m)), R && R.matches && R.matches.length > m.matches[0].matches.length) break; 2352 a = v.slice(), h = j, v = []; 2353 for (var I = 0; I < a.length; I++) { 2354 var F = a[I], N = !1; 2355 F.alternation = F.alternation || x, S(F); 2356 for (var V = 0; V < y.length; V++) { 2357 var G = y[V]; 2358 if ("string" != typeof M || void 0 !== F.alternation && T.includes(F.locator[F.alternation].toString())) { 2359 if (F.match.nativeDef === G.match.nativeDef) { 2360 N = !0, S(G, F); 2361 break; 2362 } 2363 if (d(F, G, c)) { 2364 S(F, G) && (N = !0, y.splice(y.indexOf(G), 0, F)); 2365 break; 2366 } 2367 if (d(G, F, c)) { 2368 S(G, F); 2369 break; 2370 } 2371 if (w(F, G)) { 2372 O(F, G) || void 0 !== u.inputmask.userOptions.keepStatic ? S(F, G) && (N = !0, y.splice(y.indexOf(G), 0, F)) : c.keepStatic = !0; 2373 break; 2374 } 2375 if (w(G, F)) { 2376 S(G, F); 2377 break; 2378 } 2379 } 2380 } 2381 N || y.push(F); 2382 } 2383 } 2384 v = b.concat(y), h = e, g = v.length > 0 && k, r = y.length > 0 && !k, k && g && !r && v.forEach((function(e, t) { 2385 e.unMatchedAlternationStopped = !0; 2386 })), n = E.slice(); 2387 } else r = f(m.matches[M] || t.matches[M], [ M ].concat(l), p); 2388 if (r) return !0; 2389 }(); 2390 if (r.isQuantifier && p !== t.matches[t.matches.indexOf(r) - 1]) return function() { 2391 for (var a = r, o = !1, u = n.length > 0 ? n.shift() : 0; u < (isNaN(a.quantifier.max) ? u + 1 : a.quantifier.max) && h <= e; u++) { 2392 var p = t.matches[t.matches.indexOf(a) - 1]; 2393 if (r = f(p, [ u ].concat(l), p)) { 2394 if (v.forEach((function(t, n) { 2395 (i = x(p, t.match) ? t.match : v[v.length - 1].match).optionalQuantifier = u >= a.quantifier.min, 2396 i.jit = (u + 1) * (p.matches.indexOf(i) + 1) > a.quantifier.jit, i.optionalQuantifier && m(i, p) && (g = !0, 2397 h = e, c.greedy && null == s.validPositions[e - 1] && u > a.quantifier.min && -1 != [ "*", "+" ].indexOf(a.quantifier.max) && (v.pop(), 2398 y = void 0), o = !0, r = !1), !o && i.jit && (s.jitOffset[e] = p.matches.length - p.matches.indexOf(i)); 2399 })), o) break; 2400 return !0; 2401 } 2402 } 2403 }(); 2404 if (r = b(r, n, l, p)) return !0; 2405 } else h++; 2406 } 2407 for (var p = n.length > 0 ? n.shift() : 0; p < t.matches.length; p++) if (!0 !== t.matches[p].isQuantifier) { 2408 var m = f(t.matches[p], [ p ].concat(r), l); 2409 if (m && h === e) return m; 2410 if (h > e) break; 2411 } 2412 } 2413 function x(e, t) { 2414 var n = -1 != e.matches.indexOf(t); 2415 return n || e.matches.forEach((function(e, i) { 2416 void 0 === e.matches || n || (n = x(e, t)); 2417 })), n; 2418 } 2419 if (e > -1) { 2420 if (void 0 === t) { 2421 for (var P, w = e - 1; void 0 === (P = s.validPositions[w] || s.tests[w]) && w > -1; ) w--; 2422 void 0 !== P && w > -1 && (m = function(e, t) { 2423 var n, i = []; 2424 return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === c.keepStatic ? 0 === (i = f.call(o, e, t.slice()).locator.slice()).length && (i = t[0].locator.slice()) : t.forEach((function(e) { 2425 "" !== e.def && (0 === i.length ? (n = e.alternation, i = e.locator.slice()) : e.locator[n] && -1 === i[n].toString().indexOf(e.locator[n]) && (i[n] += "," + e.locator[n])); 2426 }))), i; 2427 }(w, P), y = m.join(""), h = w); 2428 } 2429 if (s.tests[e] && s.tests[e][0].cd === y) return s.tests[e]; 2430 for (var S = m.shift(); S < p.length; S++) { 2431 if (b(p[S], m, [ S ]) && h === e || h > e) break; 2432 } 2433 } 2434 return (0 === v.length || g) && v.push({ 2435 match: { 2436 fn: null, 2437 static: !0, 2438 optionality: !1, 2439 casing: null, 2440 def: "", 2441 placeholder: "" 2442 }, 2443 locator: k && 0 === v.filter((function(e) { 2444 return !0 !== e.unMatchedAlternationStopped; 2445 })).length ? [ 0 ] : [], 2446 mloc: {}, 2447 cd: y 2448 }), void 0 !== t && s.tests[e] ? r = l.extend(!0, [], v) : (s.tests[e] = l.extend(!0, [], v), 2449 r = s.tests[e]), v.forEach((function(e) { 2450 e.match.optionality = e.match.defOptionality || !1; 2451 })), r; 2452 } 2453 }, 2454 6032: function(e, t) { 2455 function n(e) { 2456 return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 2457 return typeof e; 2458 } : function(e) { 2459 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 2460 }, n(e); 2461 } 2462 function i(e, t) { 2463 return function(e) { 2464 if (Array.isArray(e)) return e; 2465 }(e) || function(e, t) { 2466 var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; 2467 if (null != n) { 2468 var i, a, r, o, l = [], s = !0, c = !1; 2469 try { 2470 if (r = (n = n.call(e)).next, 0 === t) { 2471 if (Object(n) !== n) return; 2472 s = !1; 2473 } else for (;!(s = (i = r.call(n)).done) && (l.push(i.value), l.length !== t); s = !0) ; 2474 } catch (e) { 2475 c = !0, a = e; 2476 } finally { 2477 try { 2478 if (!s && null != n.return && (o = n.return(), Object(o) !== o)) return; 2479 } finally { 2480 if (c) throw a; 2481 } 2482 } 2483 return l; 2484 } 2485 }(e, t) || function(e, t) { 2486 if (e) { 2487 if ("string" == typeof e) return a(e, t); 2488 var n = {}.toString.call(e).slice(8, -1); 2489 return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? a(e, t) : void 0; 2490 } 2491 }(e, t) || function() { 2492 throw new TypeError("Invalid attempt to de
2492structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2493 }(); 2494 } 2495 function a(e, t) { 2496 (null == t || t > e.length) && (t = e.length); 2497 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 2498 return i; 2499 } 2500 function r(e, t) { 2501 var n = Object.keys(e); 2502 if (Object.getOwnPropertySymbols) { 2503 var i = Object.getOwnPropertySymbols(e); 2504 t && (i = i.filter((function(t) { 2505 return Object.getOwnPropertyDescriptor(e, t).enumerable; 2506 }))), n.push.apply(n, i); 2507 } 2508 return n; 2509 } 2510 function o(e, t, i) { 2511 return (t = function(e) { 2512 var t = function(e, t) { 2513 if ("object" != n(e) || !e) return e; 2514 var i = e[Symbol.toPrimitive]; 2515 if (void 0 !== i) { 2516 var a = i.call(e, t || "default"); 2517 if ("object" != n(a)) return a; 2518 throw new TypeError("@@toPrimitive must return a primitive value."); 2519 } 2520 return ("string" === t ? String : Number)(e); 2521 }(e, "string"); 2522 return "symbol" == n(t) ? t : t + ""; 2523 }(t)) in e ? Object.defineProperty(e, t, { 2524 value: i, 2525 enumerable: !0, 2526 configurable: !0, 2527 writable: !0 2528 }) : e[t] = i, e; 2529 } 2530 Object.defineProperty(t, "__esModule", { 2531 value: !0 2532 }), t.keys = t.keyCode = void 0, t.toKey = function(e, t) { 2533 return s[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase()); 2534 }, t.toKeyCode = function(e) { 2535 return l[e]; 2536 };
2537 var l = t.keyCode = function(e) { 2538 for (var t = 1; t < arguments.length; t++) { 2539 var n = null != arguments[t] ? arguments[t] : {}; 2540 t % 2 ? r(Object(n), !0).forEach((function(t) { 2541 o(e, t, n[t]); 2542 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function(t) { 2543 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)); 2544 })); 2545 } 2546 return e; 2547 }({ 2548 c: 67, 2549 x: 88, 2550 z: 90, 2551 BACKSPACE_SAFARI: 127, 2552 Enter: 13, 2553 Meta_LEFT: 91, 2554 Meta_RIGHT: 92, 2555 Space: 32 2556 }, { 2557 Alt: 18, 2558 AltGraph: 18, 2559 ArrowDown: 40, 2560 ArrowLeft: 37, 2561 ArrowRight: 39, 2562 ArrowUp: 38, 2563 Backspace: 8, 2564 CapsLock: 20, 2565 Control: 17, 2566 ContextMenu: 93, 2567 Dead: 221, 2568 Delete: 46, 2569 End: 35, 2570 Escape: 27, 2571 F1: 112, 2572 F2: 113, 2573 F3: 114, 2574 F4: 115, 2575 F5: 116, 2576 F6: 117, 2577 F7: 118, 2578 F8: 119, 2579 F9: 120, 2580 F10: 121, 2581 F11: 122, 2582 F12: 123, 2583 Home: 36, 2584 Insert: 45, 2585 NumLock: 144, 2586 PageDown: 34, 2587 PageUp: 33, 2588 Pause: 19, 2589 PrintScreen: 44, 2590 Process: 229, 2591 Shift: 16, 2592 ScrollLock: 145, 2593 Tab: 9, 2594 Unidentified: 229 2595 }), s = Object.entries(l).reduce((function(e, t) { 2596 var n = i(t, 2), a = n[0], r = n[1]; 2597 return e[r] = void 0 === e[r] ? a : e[r], e; 2598 }), {}); 2599 t.keys = Object.entries(l).reduce((function(e, t) { 2600 var n = i(t, 2), a = n[0]; 2601 n[1]; 2602 return e[a] = "Space" === a ? " " : a, e; 2603 }), {}); 2604 }, 2605 6047: function(e, t, n) { 2606 Object.defineProperty(t, "__esModule", { 2607 value: !0 2608 }), t.EventHandlers = void 0; 2609 var i, a = n(4351), r = (i = n(6266)) && i.__esModule ? i : { 2610 default: i 2611 }, o = n(1507), l = n(6032), s = n(7539), c = n(7687), u = n(5895); 2612 function f(e) { 2613 return f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 2614 return typeof e; 2615 } : function(e) { 2616 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 2617 }, f(e); 2618 } 2619 function p() { 2620 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ p = function() { 2621 return t; 2622 }; 2623 var e, t = {}, n = Object.prototype, i = n.hasOwnProperty, a = Object.defineProperty || function(e, t, n) { 2624 e[t] = n.value; 2625 }, r = "function" == typeof Symbol ? Symbol : {}, o = r.iterator || "@@iterator", l = r.asyncIterator || "@@asyncIterator", s = r.toStringTag || "@@toStringTag"; 2626 function c(e, t, n) { 2627 return Object.defineProperty(e, t, { 2628 value: n, 2629 enumerable: !0, 2630 configurable: !0, 2631 writable: !0 2632 }), e[t]; 2633 } 2634 try { 2635 c({}, ""); 2636 } catch (e) { 2637 c = function(e, t, n) { 2638 return e[t] = n; 2639 }; 2640 } 2641 function u(e, t, n, i) { 2642 var r = t && t.prototype instanceof k ? t : k, o = Object.create(r.prototype), l = new D(i || []); 2643 return a(o, "_invoke", { 2644 value: j(e, n, l) 2645 }), o; 2646 } 2647 function d(e, t, n) { 2648 try { 2649 return { 2650 type: "normal", 2651 arg: e.call(t, n) 2652 }; 2653 } catch (e) { 2654 return { 2655 type: "throw", 2656 arg: e 2657 }; 2658 } 2659 } 2660 t.wrap = u; 2661 var h = "suspendedStart", m = "suspendedYield", v = "executing", g = "completed", y = {}; 2662 function k() {} 2663 function b() {} 2664 function x() {} 2665 var P = {}; 2666 c(P, o, (function() { 2667 return this; 2668 })); 2669 var w = Object.getPrototypeOf, S = w && w(w(L([]))); 2670 S && S !== n && i.call(S, o) && (P = S); 2671 var O = x.prototype = k.prototype = Object.create(P); 2672 function M(e) { 2673 [ "next", "throw", "return" ].forEach((function(t) { 2674 c(e, t, (function(e) { 2675 return this._invoke(t, e); 2676 })); 2677 })); 2678 } 2679 function _(e, t) { 2680 function n(a, r, o, l) { 2681 var s = d(e[a], e, r); 2682 if ("throw" !== s.type) { 2683 var c = s.arg, u = c.value; 2684 return u && "object" == f(u) && i.call(u, "__await") ? t.resolve(u.__await).then((function(e) { 2685 n("next", e, o, l); 2686 }), (function(e) { 2687 n("throw", e, o, l); 2688 })) : t.resolve(u).then((function(e) { 2689 c.value = e, o(c); 2690 }), (function(e) { 2691 return n("throw", e, o, l); 2692 })); 2693 } 2694 l(s.arg); 2695 } 2696 var r; 2697 a(this, "_invoke", { 2698 value: function(e, i) { 2699 function a() { 2700 return new t((function(t, a) { 2701 n(e, i, t, a); 2702 })); 2703 } 2704 return r = r ? r.then(a, a) : a(); 2705 } 2706 }); 2707 } 2708 function j(t, n, i) { 2709 var a = h; 2710 return function(r, o) { 2711 if (a === v) throw Error("Generator is already running"); 2712 if (a === g) { 2713 if ("throw" === r) throw o; 2714 return { 2715 value: e, 2716 done: !0 2717 }; 2718 } 2719 for (i.method = r, i.arg = o; ;) { 2720 var l = i.delegate; 2721 if (l) { 2722 var s = E(l, i); 2723 if (s) {
vendor: 6,168 bytes, lines 2724-2831
2724 if (s === y) continue; 2725 return s; 2726 } 2727 } 2728 if ("next" === i.method) i.sent = i._sent = i.arg; else if ("throw" === i.method) { 2729 if (a === h) throw a = g, i.arg; 2730 i.dispatchException(i.arg); 2731 } else "return" === i.method && i.abrupt("return", i.arg); 2732 a = v; 2733 var c = d(t, n, i); 2734 if ("normal" === c.type) { 2735 if (a = i.done ? g : m, c.arg === y) continue; 2736 return { 2737 value: c.arg, 2738 done: i.done 2739 }; 2740 } 2741 "throw" === c.type && (a = g, i.method = "throw", i.arg = c.arg); 2742 } 2743 }; 2744 } 2745 function E(t, n) { 2746 var i = n.method, a = t.iterator[i]; 2747 if (a === e) return n.delegate = null, "throw" === i && t.iterator.return && (n.method = "return", 2748 n.arg = e, E(t, n), "throw" === n.method) || "return" !== i && (n.method = "throw", 2749 n.arg = new TypeError("The iterator does not provide a '" + i + "' method")), y; 2750 var r = d(a, t.iterator, n.arg); 2751 if ("throw" === r.type) return n.method = "throw", n.arg = r.arg, n.delegate = null, 2752 y; 2753 var o = r.arg; 2754 return o ? o.done ? (n[t.resultName] = o.value, n.next = t.nextLoc, "return" !== n.method && (n.method = "next", 2755 n.arg = e), n.delegate = null, y) : o : (n.method = "throw", n.arg = new TypeError("iterator result is not an object"), 2756 n.delegate = null, y); 2757 } 2758 function T(e) { 2759 var t = { 2760 tryLoc: e[0] 2761 }; 2762 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), 2763 this.tryEntries.push(t); 2764 } 2765 function A(e) { 2766 var t = e.completion || {}; 2767 t.type = "normal", delete t.arg, e.completion = t; 2768 } 2769 function D(e) { 2770 this.tryEntries = [ { 2771 tryLoc: "root" 2772 } ], e.forEach(T, this), this.reset(!0); 2773 } 2774 function L(t) { 2775 if (t || "" === t) { 2776 var n = t[o]; 2777 if (n) return n.call(t); 2778 if ("function" == typeof t.next) return t; 2779 if (!isNaN(t.length)) { 2780 var a = -1, r = function n() { 2781 for (;++a < t.length; ) if (i.call(t, a)) return n.value = t[a], n.done = !1, n; 2782 return n.value = e, n.done = !0, n; 2783 }; 2784 return r.next = r; 2785 } 2786 } 2787 throw new TypeError(f(t) + " is not iterable"); 2788 } 2789 return b.prototype = x, a(O, "constructor", { 2790 value: x, 2791 configurable: !0 2792 }), a(x, "constructor", { 2793 value: b, 2794 configurable: !0 2795 }), b.displayName = c(x, s, "GeneratorFunction"), t.isGeneratorFunction = function(e) { 2796 var t = "function" == typeof e && e.constructor; 2797 return !!t && (t === b || "GeneratorFunction" === (t.displayName || t.name)); 2798 }, t.mark = function(e) { 2799 return Object.setPrototypeOf ? Object.setPrototypeOf(e, x) : (e.__proto__ = x, c(e, s, "GeneratorFunction")), 2800 e.prototype = Object.create(O), e; 2801 }, t.awrap = function(e) { 2802 return { 2803 __await: e 2804 }; 2805 }, M(_.prototype), c(_.prototype, l, (function() { 2806 return this; 2807 })), t.AsyncIterator = _, t.async = function(e, n, i, a, r) { 2808 void 0 === r && (r = Promise); 2809 var o = new _(u(e, n, i, a), r); 2810 return t.isGeneratorFunction(n) ? o : o.next().then((function(e) { 2811 return e.done ? e.value : o.next(); 2812 })); 2813 }, M(O), c(O, s, "Generator"), c(O, o, (function() { 2814 return this; 2815 })), c(O, "toString", (function() { 2816 return "[object Generator]"; 2817 })), t.keys = function(e) { 2818 var t = Object(e), n = []; 2819 for (var i in t) n.push(i); 2820 return n.reverse(), function e() { 2821 for (;n.length; ) { 2822 var i = n.pop(); 2823 if (i in t) return e.value = i, e.done = !1, e; 2824 } 2825 return e.done = !0, e; 2826 }; 2827 }, t.values = L, D.prototype = { 2828 constructor: D, 2829 reset: function(t) { 2830 if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, 2831 this.method = "next", this.arg = e, this.tryEntries.forEac
vendor: 7,871 bytes, lines 2831-2976
2831h(A), !t) for (var n in this) "t" === n.charAt(0) && i.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = e); 2832 }, 2833 stop: function() { 2834 this.done = !0; 2835 var e = this.tryEntries[0].completion; 2836 if ("throw" === e.type) throw e.arg; 2837 return this.rval; 2838 }, 2839 dispatchException: function(t) { 2840 if (this.done) throw t; 2841 var n = this; 2842 function a(i, a) { 2843 return l.type = "throw", l.arg = t, n.next = i, a && (n.method = "next", n.arg = e), 2844 !!a; 2845 } 2846 for (var r = this.tryEntries.length - 1; r >= 0; --r) { 2847 var o = this.tryEntries[r], l = o.completion; 2848 if ("root" === o.tryLoc) return a("end"); 2849 if (o.tryLoc <= this.prev) { 2850 var s = i.call(o, "catchLoc"), c = i.call(o, "finallyLoc"); 2851 if (s && c) { 2852 if (this.prev < o.catchLoc) return a(o.catchLoc, !0); 2853 if (this.prev < o.finallyLoc) return a(o.finallyLoc); 2854 } else if (s) { 2855 if (this.prev < o.catchLoc) return a(o.catchLoc, !0); 2856 } else { 2857 if (!c) throw Error("try statement without catch or finally"); 2858 if (this.prev < o.finallyLoc) return a(o.finallyLoc); 2859 } 2860 } 2861 } 2862 }, 2863 abrupt: function(e, t) { 2864 for (var n = this.tryEntries.length - 1; n >= 0; --n) { 2865 var a = this.tryEntries[n]; 2866 if (a.tryLoc <= this.prev && i.call(a, "finallyLoc") && this.prev < a.finallyLoc) { 2867 var r = a; 2868 break; 2869 } 2870 } 2871 r && ("break" === e || "continue" === e) && r.tryLoc <= t && t <= r.finallyLoc && (r = null); 2872 var o = r ? r.completion : {}; 2873 return o.type = e, o.arg = t, r ? (this.method = "next", this.next = r.finallyLoc, 2874 y) : this.complete(o); 2875 }, 2876 complete: function(e, t) { 2877 if ("throw" === e.type) throw e.arg; 2878 return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, 2879 this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), 2880 y; 2881 }, 2882 finish: function(e) { 2883 for (var t = this.tryEntries.length - 1; t >= 0; --t) { 2884 var n = this.tryEntries[t]; 2885 if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), A(n), y; 2886 } 2887 }, 2888 catch: function(e) { 2889 for (var t = this.tryEntries.length - 1; t >= 0; --t) { 2890 var n = this.tryEntries[t]; 2891 if (n.tryLoc === e) { 2892 var i = n.completion; 2893 if ("throw" === i.type) { 2894 var a = i.arg; 2895 A(n); 2896 } 2897 return a; 2898 } 2899 } 2900 throw Error("illegal catch attempt"); 2901 }, 2902 delegateYield: function(t, n, i) { 2903 return this.delegate = { 2904 iterator: L(t), 2905 resultName: n, 2906 nextLoc: i 2907 }, "next" === this.method && (this.arg = e), y; 2908 } 2909 }, t; 2910 } 2911 function d(e, t) { 2912 var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; 2913 if (!n) { 2914 if (Array.isArray(e) || (n = function(e, t) { 2915 if (e) { 2916 if ("string" == typeof e) return h(e, t); 2917 var n = {}.toString.call(e).slice(8, -1); 2918 return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h(e, t) : void 0; 2919 } 2920 }(e)) || t && e && "number" == typeof e.length) { 2921 n && (e = n); 2922 var i = 0, a = function() {}; 2923 return { 2924 s: a, 2925 n: function() { 2926 return i >= e.length ? { 2927 done: !0 2928 } : { 2929 done: !1, 2930 value: e[i++] 2931 }; 2932 }, 2933 e: function(e) { 2934 throw e; 2935 }, 2936 f: a 2937 }; 2938 } 2939 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2940 } 2941 var r, o = !0, l = !1; 2942 return { 2943 s: function() { 2944 n = n.call(e); 2945 }, 2946 n: function() { 2947 var e = n.next(); 2948 return o = e.done, e; 2949 }, 2950 e: function(e) { 2951 l = !0, r = e; 2952 }, 2953 f: function() { 2954 try { 2955 o || null == n.return || n.return(); 2956 } finally { 2957 if (l) throw r; 2958 } 2959 } 2960 }; 2961 } 2962 function h(e, t) { 2963 (null == t || t > e.length) && (t = e.length); 2964 for (var n = 0, i = Array(t); n < t; n++) i[n] = e[n]; 2965 return i; 2966 } 2967 function m(e, t, n, i, a, r, o) { 2968 try { 2969 var l = e[r](o), s = l.value; 2970 } catch (e) { 2971 return void n(e); 2972 } 2973 l.done ? t(s) : Promise.resolve(s).then(i, a); 2974 } 2975 var v, g, y = t.EventHandlers = { 2976 keyEvent: function(e, t, n, i, r) {
vendor: 10,226 bytes, lines 2977-3104
2977 var f = this.inputmask, p = f.opts, d = f.dependencyLib, h = f.maskset, m = this, v = d(m), g = e.key, k = s.caret.call(f, m), b = p.onKeyDown.call(this, e, s.getBuffer.call(f), k, p); 2978 if (void 0 !== b) return b; 2979 if (g === l.keys.Backspace || g === l.keys.Delete || a.iphone && g === l.keys.BACKSPACE_SAFARI || e.ctrlKey && g === l.keys.x && !("oncut" in m)) e.preventDefault(), 2980 c.handleRemove.call(f, m, g, k), (0, o.writeBuffer)(m, s.getBuffer.call(f, !0), h.p, e, m.inputmask._valueGet() !== s.getBuffer.call(f).join("")); else if (g === l.keys.End || g === l.keys.PageDown) { 2981 e.preventDefault(); 2982 var x = s.seekNext.call(f, s.getLastValidPosition.call(f)); 2983 s.caret.call(f, m, e.shiftKey ? k.begin : x, x, !0); 2984 } else g === l.keys.Home && !e.shiftKey || g === l.keys.PageUp ? (e.preventDefault(), 2985 s.caret.call(f, m, 0, e.shiftKey ? k.begin : 0, !0)) : p.undoOnEscape && g === l.keys.Escape && !0 !== e.altKey ? ((0, 2986 o.checkVal)(m, !0, !1, f.undoValue.split("")), v.trigger("click")) : g !== l.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== f.userOptions.insertMode ? !0 === p.tabThrough && g === l.keys.Tab ? !0 === e.shiftKey ? (k.end = s.seekPrevious.call(f, k.end, !0), 2987 !0 === u.getTest.call(f, k.end - 1).match.static && k.end--, k.begin = s.seekPrevious.call(f, k.end, !0), 2988 k.begin >= 0 && k.end > 0 && (e.preventDefault(), s.caret.call(f, m, k.begin, k.end))) : (k.begin = s.seekNext.call(f, k.begin, !0), 2989 k.end = s.seekNext.call(f, k.begin, !0), k.end < h.maskLength && k.end--, k.begin <= h.maskLength && (e.preventDefault(), 2990 s.caret.call(f, m, k.begin, k.end))) : e.shiftKey || (p.insertModeVisual && !1 === p.insertMode ? g === l.keys.ArrowRight ? setTimeout((function() { 2991 var e = s.caret.call(f, m); 2992 s.caret.call(f, m, e.begin); 2993 }), 0) : g === l.keys.ArrowLeft && setTimeout((function() { 2994 var e = s.translatePosition.call(f, m.inputmask.caretPos.begin); 2995 s.translatePosition.call(f, m.inputmask.caretPos.end); 2996 f.isRTL ? s.caret.call(f, m, e + (e === h.maskLength ? 0 : 1)) : s.caret.call(f, m, e - (0 === e ? 0 : 1)); 2997 }), 0) : void 0 === f.keyEventHook || f.keyEventHook(e)) : c.isSelection.call(f, k) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode, 2998 s.caret.call(f, m, k.begin, k.begin)); 2999 return f.isComposing = g == l.keys.Process || g == l.keys.Unidentified, f.ignorable = void 0 === g || g.length > 1, 3000 y.keypressEvent.call(this, e, t, n, i, r); 3001 }, 3002 keypressEvent: function(e, t, n, i, a) { 3003 var r = this.inputmask || this, u = r.opts, f = r.dependencyLib, p = r.maskset, d = r.el, h = f(d), m = e.key; 3004 if (!0 === t || e.ctrlKey && e.altKey && !r.ignorable || !(e.ctrlKey || e.metaKey || r.ignorable)) { 3005 if (m) { 3006 var v, g = t ? { 3007 begin: a, 3008 end: a 3009 } : s.caret.call(r, d); 3010 t || (m = u.substitutes[m] || m), p.writeOutBuffer = !0; 3011 var y = c.isValid.call(r, g, m, i, void 0, void 0, void 0, t); 3012 if (!1 !== y && (s.resetMaskSet.call(r, !0), v = void 0 !== y.caret ? y.caret : s.seekNext.call(r, y.pos.begin ? y.pos.begin : y.pos), 3013 p.p = v), v = u.numericInput && void 0 === y.caret ? s.seekPrevious.call(r, v) : v, 3014 !1 !== n && (setTimeout((function() { 3015 u.onKeyValidation.call(d, m, y); 3016 }), 0), p.writeOutBuffer && !1 !== y)) { 3017 var k = s.getBuffer.call(r); 3018 (0, o.writeBuffer)(d, k, v, e, !0 !== t); 3019 } 3020 if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = v), y; 3021 } 3022 } else m === l.keys.Enter && r.undoValue !== r._valueGet(!0) && (r.undoValue = r._valueGet(!0), 3023 setTimeout((function() { 3024 h.trigger("change"); 3025 }), 0)); 3026 }, 3027 pasteEvent: (v = p().mark((function e(t) { 3028 var n, i, a, l, c, u; 3029 return p().wrap((function(e) { 3030 for (;;) switch (e.prev = e.next) { 3031 case 0: 3032 n = function(e, n, i, a, r) { 3033 var c = s.caret.call(e, n, void 0, void 0, !0), u = i.substr(0, c.begin), f = i.substr(c.end, i.length); 3034 if (u == (e.isRTL ? s.getBufferTemplate.call(e).slice().reverse() : s.getBufferTemplate.call(e)).slice(0, c.begin).join("") && (u = ""), 3035 f == (e.isRTL ? s.getBufferTemplate.call(e).slice().reverse() : s.getBufferTemplate.call(e)).slice(c.end).join("") && (f = ""), 3036 a = u + a + f, e.isRTL && !0 !== l.numericInput) { 3037 a = a.split(""); 3038 var p, h = d(s.getBufferTemplate.call(e)); 3039 try { 3040 for (h.s(); !(p = h.n()).done; ) { 3041 var m = p.value; 3042 a[0] === m && a.shift(); 3043 } 3044 } catch (e) { 3045 h.e(e); 3046 } finally { 3047 h.f(); 3048 } 3049 a = a.reverse().join(""); 3050 } 3051 var v = a; 3052 if ("function" == typeof r) { 3053 if (!1 === (v = r.call(e, v, l))) return !1; 3054 v || (v = i); 3055 } 3056 (0, o.checkVal)(n, !0, !1, v.toString().split(""), t); 3057 }, i = this, a = this.inputmask, l = a.opts, c = a._valueGet(!0), a.skipInputEvent = !0, 3058 t.clipboardData && t.clipboardData.getData ? u = t.clipboardData.getData("text/plain") : r.default.clipboardData && r.default.clipboardData.getData && (u = r.default.clipboardData.getData("Text")), 3059 n(a, i, c, u, l.onBeforePaste), t.preventDefault(); 3060 3061 case 7: 3062 case "end": 3063 return e.stop(); 3064 } 3065 }), e, this); 3066 })), g = function() { 3067 var e = this, t = arguments; 3068 return new Promise((function(n, i) { 3069 var a = v.apply(e, t); 3070 function r(e) { 3071 m(a, n, i, r, o, "next", e); 3072 } 3073 function o(e) { 3074 m(a, n, i, r, o, "throw", e); 3075 } 3076 r(void 0); 3077 })); 3078 }, function(e) { 3079 return g.apply(this, arguments); 3080 }), 3081 inputFallBackEvent: function(e) { 3082 var t = this.inputmask, n = t.opts, i = t.dependencyLib; 3083 var r, c = this, f = c.inputmask._valueGet(!0), p = (t.isRTL ? s.getBuffer.call(t).slice().reverse() : s.getBuffer.call(t)).join(""), d = s.caret.call(t, c, void 0, void 0, !0); 3084 if (p !== f) { 3085 if (r = function(e, i, a) { 3086 for (var r, o, l, c = e.substr(0, a.begin).split(""), f = e.substr(a.begin).split(""), p = i.substr(0, a.begin).split(""), d = i.substr(a.begin).split(""), h = c.length >= p.length ? c.length : p.length, m = f.length >= d.length ? f.length : d.length, v = "", g = [], y = "~"; c.length < h; ) c.push(y); 3087 for (;p.length < h; ) p.push(y); 3088 for (;f.length < m; ) f.unshift(y); 3089 for (;d.length < m; ) d.unshift(y); 3090 var k = c.concat(f), b = p.concat(d); 3091 for (o = 0, r = k.length; o < r; o++) switch (l = u.getPlaceholder.call(t, s.translatePosition.call(t, o)), 3092 v) { 3093 case "insertText": 3094 b[o - 1] === k[o] && a.begin == k.length - 1 && g.push(k[o]), o = r; 3095 break; 3096 3097 case "insertReplacementText": 3098 case "deleteContentBackward": 3099 k[o] === y ? a.end++ : o = r; 3100 break; 3101 3102 default: 3103 k[o] !== b[o] && (k[o + 1] !== y && k[o + 1] !== l && void 0 !== k[o + 1] || (b[o] !== l || b[o + 1] !== y) && b[o] !== y ? b[o + 1] === y && b[o] === k[o + 1] ? (v = "insertText", 3104 g.push(k[o]), a.begin--, a.end--) : k[o] !== l &&
vendor: 8,661 bytes, lines 3104-3225
3104k[o] !== y && (k[o + 1] === y || b[o] !== k[o] && b[o + 1] === k[o + 1]) ? (v = "insertReplacementText", 3105 g.push(k[o]), a.begin--) : k[o] === y ? (v = "deleteContentBackward", (s.isMask.call(t, s.translatePosition.call(t, o), !0) || b[o] === n.radixPoint) && a.end++) : o = r : (v = "insertText", 3106 g.push(k[o]), a.begin--, a.end--)); 3107 } 3108 return { 3109 action: v, 3110 data: g, 3111 caret: a 3112 }; 3113 }(f, p, d), c.getRootNode().activeElement !== c && c.focus(), (0, o.writeBuffer)(c, s.getBuffer.call(t)), 3114 s.caret.call(t, c, d.begin, d.end, !0), !a.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === r.action && t.isComposing) return !1; 3115 switch ("insertCompositionText" === e.inputType && "insertText" === r.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1, 3116 r.action) { 3117 case "insertText": 3118 case "insertReplacementText": 3119 r.data.forEach((function(e, n) { 3120 var a = new i.Event("keypress"); 3121 a.key = e, t.ignorable = !1, y.keypressEvent.call(c, a); 3122 })), setTimeout((function() { 3123 t.$el.trigger("keyup"); 3124 }), 0); 3125 break; 3126 3127 case "deleteContentBackward": 3128 var h = new i.Event("keydown"); 3129 h.key = l.keys.Backspace, y.keyEvent.call(c, h); 3130 break; 3131 3132 default: 3133 (0, o.applyInputValue)(c, f), s.caret.call(t, c, d.begin, d.end, !0); 3134 } 3135 e.preventDefault(); 3136 } 3137 }, 3138 setValueEvent: function(e) { 3139 var t = this.inputmask, n = t.dependencyLib, i = this, a = e && e.detail ? e.detail[0] : arguments[1]; 3140 void 0 === a && (a = i.inputmask._valueGet(!0)), (0, o.applyInputValue)(i, a, new n.Event("input"), void 0 !== (e && e.detail ? e.detail[0] : arguments[1])), 3141 (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && s.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]); 3142 }, 3143 focusEvent: function(e) { 3144 var t = this.inputmask, n = t.opts, i = t && t._valueGet(); 3145 n.showMaskOnFocus && i !== s.getBuffer.call(t).join("") && (0, o.writeBuffer)(this, s.getBuffer.call(t), s.seekNext.call(t, s.getLastValidPosition.call(t))), 3146 !0 !== n.positionCaretOnTab || !1 !== t.mouseEnter || c.isComplete.call(t, s.getBuffer.call(t)) && -1 !== s.getLastValidPosition.call(t) || y.clickEvent.apply(this, [ e, !0 ]), 3147 t.undoValue = t && t._valueGet(!0); 3148 }, 3149 invalidEvent: function(e) { 3150 this.inputmask.validationEvent = !0; 3151 }, 3152 mouseleaveEvent: function() { 3153 var e = this.inputmask, t = e.opts, n = this; 3154 e.mouseEnter = !1, t.clearMaskOnLostFocus && n.getRootNode().activeElement !== n && (0, 3155 o.HandleNativePlaceholder)(n, e.originalPlaceholder); 3156 }, 3157 clickEvent: function(e, t) { 3158 var n = this.inputmask; 3159 n.clicked++; 3160 var i = this; 3161 if (i.getRootNode().activeElement === i) { 3162 var a = s.determineNewCaretPosition.call(n, s.caret.call(n, i), t); 3163 void 0 !== a && s.caret.call(n, i, a); 3164 } 3165 }, 3166 cutEvent: function(e) { 3167 var t = this.inputmask, n = t.maskset, i = this, a = s.caret.call(t, i), u = t.isRTL ? s.getBuffer.call(t).slice(a.end, a.begin) : s.getBuffer.call(t).slice(a.begin, a.end), f = t.isRTL ? u.reverse().join("") : u.join(""); 3168 r.default.navigator && r.default.navigator.clipboard ? r.default.navigator.clipboard.writeText(f) : r.default.clipboardData && r.default.clipboardData.getData && r.default.clipboardData.setData("Text", f), 3169 c.handleRemove.call(t, i, l.keys.Delete, a), (0, o.writeBuffer)(i, s.getBuffer.call(t), n.p, e, t.undoValue !== t._valueGet(!0)); 3170 }, 3171 blurEvent: function(e) { 3172 var t = this.inputmask, n = t.opts, i = t.dependencyLib; 3173 t.clicked = 0; 3174 var a = i(this), r = this; 3175 if (r.inputmask) { 3176 (0, o.HandleNativePlaceholder)(r, t.originalPlaceholder); 3177 var l = r.inputmask._valueGet(), u = s.getBuffer.call(t).slice(); 3178 "" !== l && (n.clearMaskOnLostFocus && (-1 === s.getLastValidPosition.call(t) && l === s.getBufferTemplate.call(t).join("") ? u = [] : o.clearOptionalTail.call(t, u)), 3179 !1 === c.isComplete.call(t, u) && (setTimeout((function() { 3180 a.trigger("incomplete"); 3181 }), 0), n.clearIncomplete && (s.resetMaskSet.call(t, !1), u = n.clearMaskOnLostFocus ? [] : s.getBufferTemplate.call(t).slice())), 3182 (0, o.writeBuffer)(r, u, void 0, e)), l = t._valueGet(!0), t.undoValue !== l && ("" != l || t.undoValue != s.getBufferTemplate.call(t).join("") || t.undoValue == s.getBufferTemplate.call(t).join("") && t.maskset.validPositions.length > 0) && (t.undoValue = l, 3183 a.trigger("change")); 3184 } 3185 }, 3186 mouseenterEvent: function() { 3187 var e = this.inputmask, t = e.opts.showMaskOnHover, n = this; 3188 if (e.mouseEnter = !0, n.getRootNode().activeElement !== n) { 3189 var i = (e.isRTL ? s.getBufferTemplate.call(e).slice().reverse() : s.getBufferTemplate.call(e)).join(""); 3190 t && (0, o.HandleNativePlaceholder)(n, i); 3191 } 3192 }, 3193 submitEvent: function() { 3194 var e = this.inputmask, t = e.opts; 3195 e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === s.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === s.getBufferTemplate.call(e).join("") && e._valueSet(""), 3196 t.clearIncomplete && !1 === c.isComplete.call(e, s.getBuffer.call(e)) && e._valueSet(""), 3197 t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() { 3198 (0, o.writeBuffer)(e.el, s.getBuffer.call(e)); 3199 }), 0)); 3200 }, 3201 resetEvent: function() { 3202 var e = this.inputmask; 3203 e.refreshValue = !0, setTimeout((function() { 3204 (0, o.applyInputValue)(e.el, e._valueGet(!0)); 3205 }), 0); 3206 } 3207 }; 3208 }, 3209 6266: function(e, t) { 3210 Object.defineProperty(t, "__esModule", { 3211 value: !0 3212 }), t.default = void 0; 3213 var n = !("undefined" == typeof window || !window.document || !window.document.createElement); 3214 t.default = n ? window : {}; 3215 }, 3216 6664: function(e, t, n) { 3217 var i = o(n(4424)), a = o(n(3978)); 3218 function r(e) { 3219 return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 3220 return typeof e; 3221 } : function(e) { 3222 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 3223 }, r(e); 3224 } 3225 function o(e) {
3226 return e && e.__esModule ? e : { 3227 default: e 3228 }; 3229 } 3230 void 0 === i.default.fn.inputmask && (i.default.fn.inputmask = function(e, t) { 3231 var n, o = this[0]; 3232 if (void 0 === t && (t = {}), "string" == typeof e) switch (e) { 3233 case "unmaskedvalue": 3234 return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, i.default)(o).val(); 3235 3236 case "remove": 3237 return this.each((function() { 3238 this.inputmask && this.inputmask.remove(); 3239 })); 3240 3241 case "getemptymask": 3242 return o && o.inputmask ? o.inputmask.getemptymask() : ""; 3243 3244 case "hasMaskedValue": 3245 return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue(); 3246 3247 case "isComplete": 3248 return !o || !o.inputmask || o.inputmask.isComplete(); 3249 3250 case "getmetadata": 3251 return o && o.inputmask ? o.inputmask.getmetadata() : void 0; 3252 3253 case "setvalue": 3254 a.default.setValue(o, t); 3255 break; 3256 3257 case "option": 3258 if ("string" != typeof t) return this.each((function() { 3259 if (void 0 !== this.inputmask) return this.inputmask.option(t); 3260 })); 3261 if (o && void 0 !== o.inputmask) return o.inputmask.option(t); 3262 break; 3263 3264 default: 3265 return t.alias = e, n = new a.default(t), this.each((function() { 3266 n.mask(this); 3267 })); 3268 } else { 3269 if (Array.isArray(e)) return t.alias = e, n = new a.default(t), this.each((function() { 3270 n.mask(this); 3271 })); 3272 if ("object" === r(e)) return n = new a.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() { 3273 if (void 0 !== this.inputmask) return this.inputmask.option(e); 3274 n.mask(this); 3275 })) : this.each((function() { 3276 n.mask(this); 3277 })); 3278 if (void 0 === e) return this.each((function() { 3279 (n = new a.default(t)).mask(this); 3280 })); 3281 } 3282 }); 3283 }, 3284 7042: function(e, t) { 3285 Object.defineProperty(t, "__esModule", { 3286 value: !0 3287 }), t.default = void 0; 3288 t.default = { 3289 _maxTestPos: 500, 3290 placeholder: "_", 3291 optionalmarker: [ "[", "]" ], 3292 quantifiermarker: [ "{", "}" ], 3293 groupmarker: [ "(", ")" ], 3294 alternatormarker: "|", 3295 escapeChar: "\\", 3296 mask: null, 3297 regex: null, 3298 oncomplete: function() {}, 3299 onincomplete: function() {}, 3300 oncleared: function() {}, 3301 repeat: 0, 3302 greedy: !1, 3303 autoUnmask: !1, 3304 removeMaskOnSubmit: !1, 3305 clearMaskOnLostFocus: !0, 3306 insertMode: !0, 3307 insertModeVisual: !0, 3308 clearIncomplete: !1, 3309 alias: null, 3310 onKeyDown: function() {}, 3311 onBeforeMask: null, 3312 onBeforePaste: function(e, t) { 3313 return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e; 3314 }, 3315 onBeforeWrite: null, 3316 onUnMask: null, 3317 outputMask: null, 3318 showMaskOnFocus: !0, 3319 showMaskOnHover: !0, 3320 onKeyValidation: function() {}, 3321 skipOptionalPartCharacter: " ", 3322 numericInput: !1, 3323 rightAlign: !1, 3324 undoOnEscape: !0, 3325 radixPoint: "", 3326 _radixDance: !1, 3327 groupSeparator: "", 3328 keepStatic: null, 3329 positionCaretOnTab: !0, 3330 tabThrough: !1, 3331 supportsInputType: [ "text", "tel", "url", "password", "search" ], 3332 isComplete: null, 3333 preValidation: null, 3334 postValidation: null, 3335 staticDefinitionSymbol: void 0, 3336 jitMasking: !1, 3337 nullable: !0, 3338 inputEventOnly: !1, 3339 noValuePatching: !1, 3340 positionCaretOnClick: "lvp", 3341 casing: null, 3342 inputmode: "text", 3343 importDataAttributes: !0, 3344 shiftPositions: !0, 3345 usePrototypeDefinitions: !0, 3346 validationEventTimeOut: 3e3, 3347 substitutes: {} 3348 }; 3349 }, 3350 7153: function(e, t, n) { 3351 var i, a = (i = n(3978)) && i.__esModule ? i : { 3352 default: i 3353 };
vendor: 35,083 bytes, lines 3354-3890
3354 a.default.dependencyLib.extend(!0, a.default.prototype.i18n, { 3355 dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ], 3356 monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], 3357 ordinalSuffix: [ "st", "nd", "rd", "th" ] 3358 }); 3359 }, 3360 7539: function(e, t, n) { 3361 Object.defineProperty(t, "__esModule", { 3362 value: !0 3363 }), t.caret = function(e, t, n, i, r) { 3364 var o, l = this, s = this.opts; 3365 if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart, 3366 n = e.selectionEnd) : a.default.getSelection ? (o = a.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && o.commonAncestorContainer !== e || (t = o.startOffset, 3367 n = o.endOffset) : document.selection && document.selection.createRange && (n = (t = 0 - (o = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + o.text.length), 3368 { 3369 begin: i ? t : f.call(l, t), 3370 end: i ? n : f.call(l, n) 3371 }; 3372 if (Array.isArray(t) && (n = l.isRTL ? t[0] : t[1], t = l.isRTL ? t[1] : t[0]), 3373 void 0 !== t.begin && (n = l.isRTL ? t.begin : t.end, t = l.isRTL ? t.end : t.begin), 3374 "number" == typeof t) { 3375 t = i ? t : f.call(l, t), n = "number" == typeof (n = i ? n : f.call(l, n)) ? n : t; 3376 var c = parseInt(((e.ownerDocument.defaultView || a.default).getComputedStyle ? (e.ownerDocument.defaultView || a.default).getComputedStyle(e, null) : e.currentStyle).fontSize) * n; 3377 if (e.scrollLeft = c > e.scrollWidth ? c : 0, e.inputmask.caretPos = { 3378 begin: t, 3379 end: n 3380 }, s.insertModeVisual && !1 === s.insertMode && t === n && (r || n++), e === e.getRootNode().activeElement) { 3381 if ("setSelectionRange" in e) e.setSelectionRange(t, n); else if (a.default.getSelection) { 3382 if (o = document.createRange(), void 0 === e.firstChild || null === e.firstChild) { 3383 var u = document.createTextNode(""); 3384 e.appendChild(u); 3385 } 3386 o.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length), 3387 o.setEnd(e.firstChild, n < e.inputmask._valueGet().length ? n : e.inputmask._valueGet().length), 3388 o.collapse(!0); 3389 var p = a.default.getSelection(); 3390 p.removeAllRanges(), p.addRange(o); 3391 } else e.createTextRange && ((o = e.createTextRange()).collapse(!0), o.moveEnd("character", n), 3392 o.moveStart("character", t), o.select()); 3393 void 0 === e.inputmask.caretHook || e.inputmask.caretHook.call(l, { 3394 begin: t, 3395 end: n 3396 }); 3397 } 3398 } 3399 }, t.determineLastRequiredPosition = function(e) { 3400 var t, n, i = this, a = i.maskset, l = i.dependencyLib, c = s.call(i), u = {}, f = a.validPositions[c], p = o.getMaskTemplate.call(i, !0, s.call(i), !0, !0), d = p.length, h = void 0 !== f ? f.locator.slice() : void 0; 3401 for (t = c + 1; t < p.length; t++) h = (n = o.getTestTemplate.call(i, t, h, t - 1)).locator.slice(), 3402 u[t] = l.extend(!0, {}, n); 3403 var m = f && void 0 !== f.alternation ? f.locator[f.alternation] : void 0; 3404 for (t = d - 1; t > c && (((n = u[t]).match.optionality || n.match.optionalQuantifier && n.match.newBlockMarker || m && (m !== u[t].locator[f.alternation] && !0 !== n.match.static || !0 === n.match.static && n.locator[f.alternation] && r.checkAlternationMatch.call(i, n.locator[f.alternation].toString().split(","), m.toString().split(",")) && "" !== o.getTests.call(i, t)[0].def)) && p[t] === o.getPlaceholder.call(i, t, n.match)); t--) d--; 3405 return e ? { 3406 l: d, 3407 def: u[d] ? u[d].match : void 0 3408 } : d; 3409 }, t.determineNewCaretPosition = function(e, t, n) { 3410 var i, a, r, f = this, p = f.maskset, d = f.opts; 3411 t && (f.isRTL ? e.end = e.begin : e.begin = e.end); 3412 if (e.begin === e.end) { 3413 switch (n = n || d.positionCaretOnClick) { 3414 case "none": 3415 break; 3416 3417 case "select": 3418 e = { 3419 begin: 0, 3420 end: l.call(f).length 3421 }; 3422 break; 3423 3424 case "ignore": 3425 e.end = e.begin = u.call(f, s.call(f)); 3426 break; 3427 3428 case "radixFocus": 3429 if (f.clicked > 1 && 0 === p.validPositions.length) break; 3430 if (function(e) { 3431 if ("" !== d.radixPoint && 0 !== d.digits) { 3432 var t = p.validPositions; 3433 if (void 0 === t[e] || void 0 === t[e].input) { 3434 if (e < u.call(f, -1)) return !0; 3435 var n = l.call(f).indexOf(d.radixPoint); 3436 if (-1 !== n) { 3437 for (var i = 0, a = t.length; i < a; i++) if (t[i] && n < i && t[i].input !== o.getPlaceholder.call(f, i)) return !1; 3438 return !0; 3439 } 3440 } 3441 } 3442 return !1; 3443 }(e.begin)) { 3444 var h = l.call(f).join("").indexOf(d.radixPoint); 3445 e.end = e.begin = d.numericInput ? u.call(f, h) : h; 3446 break; 3447 } 3448 3449 default: 3450 if (i = e.begin, a = s.call(f, i, !0), i <= (r = u.call(f, -1 !== a || c.call(f, 0) ? a : -1))) e.end = e.begin = c.call(f, i, !1, !0) ? i : u.call(f, i); else { 3451 var m = p.validPositions[a], v = o.getTestTemplate.call(f, r, m ? m.match.locator : void 0, m), g = o.getPlaceholder.call(f, r, v.match); 3452 if ("" !== g && l.call(f)[r] !== g && !0 !== v.match.optionalQuantifier && !0 !== v.match.newBlockMarker || !c.call(f, r, d.keepStatic, !0) && v.match.def === g) { 3453 var y = u.call(f, r); 3454 (i >= y || i === r) && (r = y); 3455 } 3456 e.end = e.begin = r; 3457 } 3458 } 3459 return e; 3460 } 3461 }, t.getBuffer = l, t.getBufferTemplate = function() { 3462 var e = this.maskset; 3463 void 0 === e._buffer && (e._buffer = o.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice())); 3464 return e._buffer; 3465 }, t.getLastValidPosition = s, t.isMask = c, t.resetMaskSet = function(e) { 3466 var t = this.maskset; 3467 t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0); 3468 !1 === e && (t.tests = {}, t.jitOffset = {}); 3469 }, t.seekNext = u, t.seekPrevious = function(e, t) { 3470 var n = this, i = e - 1; 3471 if (e <= 0) return 0; 3472 for (;i > 0 && (!0 === t && (!0 !== o.getTest.call(n, i).match.newBlockMarker || !c.call(n, i, void 0, !0)) || !0 !== t && !c.call(n, i, void 0, !0)); ) i--; 3473 return i; 3474 }, t.translatePosition = f; 3475 var i, a = (i = n(6266)) && i.__esModule ? i : { 3476 default: i 3477 }, r = n(7687), o = n(5895); 3478 function l(e) { 3479 var t = this, n = t.maskset; 3480 return void 0 !== n.buffer && !0 !== e || (n.buffer = o.getMaskTemplate.call(t, !0, s.call(t), !0), 3481 void 0 === n._buffer && (n._buffer = n.buffer.slice())), n.buffer; 3482 } 3483 function s(e, t, n) { 3484 var i = this.maskset, a = -1, r = -1, o = n || i.validPositions; 3485 void 0 === e && (e = -1); 3486 for (var l = 0, s = o.length; l < s; l++) o[l] && (t || !0 !== o[l].generatedInput) && (l <= e && (a = l), 3487 l >= e && (r = l)); 3488 return -1 === a || a === e ? r : -1 === r || e - a < r - e ? a : r; 3489 } 3490 function c(e, t, n) { 3491 var i = this, a = this.maskset, r = o.getTestTemplate.call(i, e).match; 3492 if ("" === r.def && (r = o.getTest.call(i, e).match), !0 !== r.static) return r.fn; 3493 if (!0 === n && void 0 !== a.validPositions[e] && !0 !== a.validPositions[e].generatedInput) return !0; 3494 if (!0 !== t && e > -1) { 3495 if (n) { 3496 var l = o.getTests.call(i, e); 3497 return l.length > 1 + ("" === l[l.length - 1].match.def ? 1 : 0); 3498 } 3499 var s = o.determineTestTemplate.call(i, e, o.getTests.call(i, e)), c = o.getPlaceholder.call(i, e, s.match); 3500 return s.match.def !== c; 3501 } 3502 return !1; 3503 } 3504 function u(e, t, n) { 3505 var i = this; 3506 void 0 === n && (n = !0); 3507 for (var a = e + 1; "" !== o.getTest.call(i, a).match.def && (!0 === t && (!0 !== o.getTest.call(i, a).match.newBlockMarker || !c.call(i, a, void 0, !0)) || !0 !== t && !c.call(i, a, void 0, n)); ) a++; 3508 return a; 3509 } 3510 function f(e) { 3511 var t = this.opts, n = this.el; 3512 return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !n || (e = this._valueGet().length - e) < 0 && (e = 0), 3513 e; 3514 } 3515 }, 3516 7687: function(e, t, n) { 3517 Object.defineProperty(t, "__esModule", { 3518 value: !0 3519 }), t.alternate = l, t.checkAlternationMatch = function(e, t, n) { 3520 for (var i, a = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== n ? n.split(",") : [], l = 0; l < o.length; l++) -1 !== (i = e.indexOf(o[l])) && e.splice(i, 1); 3521 for (var s = 0; s < e.length; s++) if (a.includes(e[s])) { 3522 r = !0; 3523 break; 3524 } 3525 return r; 3526 }, t.handleRemove = function(e, t, n, i, s) { 3527 var c = this, u = this.maskset, f = this.opts; 3528 if ((f.numericInput || c.isRTL) && (t === a.keys.Backspace ? t = a.keys.Delete : t === a.keys.Delete && (t = a.keys.Backspace), 3529 c.isRTL)) { 3530 var p = n.end; 3531 n.end = n.begin, n.begin = p; 3532 } 3533 var d, h = r.getLastValidPosition.call(c, void 0, !0); 3534 n.end >= r.getBuffer.call(c).length && h >= n.end && (n.end = h + 1); 3535 t === a.keys.Backspace ? n.end - n.begin < 1 && (n.begin = r.seekPrevious.call(c, n.begin)) : t === a.keys.Delete && n.begin === n.end && (n.end = r.isMask.call(c, n.end, !0, !0) ? n.end + 1 : r.seekNext.call(c, n.end) + 1); 3536 !1 !== (d = m.call(c, n)) && ((!0 !== i && !1 !== f.keepStatic || null !== f.regex && -1 !== o.getTest.call(c, n.begin).match.def.indexOf("|")) && l.call(c, !0), 3537 !0 !== i && (u.p = t === a.keys.Delete ? n.begin + d : n.begin, u.p = r.determineNewCaretPosition.call(c, { 3538 begin: u.p, 3539 end: u.p 3540 }, !1, !1 === f.insertMode && t === a.keys.Backspace ? "none" : void 0).begin)); 3541 }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = d, 3542 t.revalidateMask = m; 3543 var i = n(6047), a = n(6032), r = n(7539), o = n(5895); 3544 function l(e, t, n, i, a, s) { 3545 var c = this, u = this.dependencyLib, p = this.opts, d = c.maskset; 3546 if (!c.hasAlternator) return !1; 3547 var h, m, v, g, y, k, b, x, P, w, S, O = u.extend(!0, [], d.validPositions), M = u.extend(!0, {}, d.tests), _ = !1, j = !1, E = void 0 !== a ? a : r.getLastValidPosition.call(c); 3548 if (s && (w = s.begin, S = s.end, s.begin > s.end && (w = s.end, S = s.begin)), 3549 -1 === E && void 0 === a) h = 0, m = (g = o.getTest.call(c, h)).alternation; else for (;E >= 0; E--) if ((v = 0 === E ? o.getTest.call(c, 0) : d.validPositions[E]) && void 0 !== v.alternation) { 3550 if (E <= (e || 0) && g && g.locator[v.alternation] !== v.locator[v.alternation]) break; 3551 h = E, m = v.alternation, g = v; 3552 } 3553 if (void 0 !== m) { 3554 b = parseInt(h), d.excludes[b] = d.excludes[b] || [], !0 !== e && d.excludes[b].push((0, 3555 o.getDecisionTaker)(g) + ":" + g.alternation); 3556 var T = [], A = -1; 3557 for (y = b; b < r.getLastValidPosition.call(c, void 0, !0) + 1; y++) -1 === A && e <= y && void 0 !== t && (T.push(t), 3558 A = T.length - 1), (k = d.validPositions[b]) && !0 !== k.generatedInput && (0 !== b || k.input !== p.skipOptionalPartCharacter) && (void 0 === s || y < w || y >= S) && T.push(k.input), 3559 d.validPositions.splice(b, 1); 3560 for (-1 === A && void 0 !== t && (T.push(t), A = T.length - 1); void 0 !== d.excludes[b] && d.excludes[b].length < 10; ) { 3561 for (d.tests = {}, r.resetMaskSet.call(c, !0), _ = !0, y = 0; y < T.length && (x = _.caret || 0 == p.insertMode && null != x ? r.seekNext.call(c, x) : r.getLastValidPosition.call(c, void 0, !0) + 1, 3562 P = T[y], _ = f.call(c, x, P, !1, i, !0)); y++) y === A && (j = _), 1 == e && _ && (j = { 3563 caretPos: y 3564 }); 3565 if (_) break; 3566 if (r.resetMaskSet.call(c), g = o.getTest.call(c, b), d.validPositions = u.extend(!0, [], O), 3567 d.tests = u.extend(!0, {}, M), !d.excludes[b]) { 3568 j = l.call(c, e, t, n, i, b - 1, s); 3569 break; 3570 } 3571 if (null != g.alternation) { 3572 var D = (0, o.getDecisionTaker)(g); 3573 if (-1 !== d.excludes[b].indexOf(D + ":" + g.alternation)) { 3574 j = l.call(c, e, t, n, i, b - 1, s); 3575 break; 3576 } 3577 for (d.excludes[b].push(D + ":" + g.alternation), y = b; y < r.getLastValidPosition.call(c, void 0, !0) + 1; y++) d.validPositions.splice(b); 3578 } else delete d.excludes[b]; 3579 } 3580 } 3581 return j && !1 === p.keepStatic || delete d.excludes[b], j; 3582 } 3583 function s(e, t, n) { 3584 var i = this.opts, r = this.maskset; 3585 switch (i.casing || t.casing) { 3586 case "upper": 3587 e = e.toUpperCase(); 3588 break; 3589 3590 case "lower": 3591 e = e.toLowerCase(); 3592 break; 3593 3594 case "title": 3595 var o = r.validPositions[n - 1]; 3596 e = 0 === n || o && o.input === String.fromCharCode(a.keyCode.Space) ? e.toUpperCase() : e.toLowerCase(); 3597 break; 3598 3599 default: 3600 if ("function" == typeof i.casing) { 3601 var l = Array.prototype.slice.call(arguments); 3602 l.push(r.validPositions), e = i.casing.apply(this, l); 3603 } 3604 } 3605 return e; 3606 } 3607 function c(e) { 3608 var t = this, n = this.opts, i = this.maskset; 3609 if ("function" == typeof n.isComplete) return n.isComplete(e, n); 3610 if ("*" !== n.repeat) { 3611 var a = !1, l = r.determineLastRequiredPosition.call(t, !0), s = l.l; 3612 if (void 0 === l.def || l.def.newBlockMarker || l.def.optionality || l.def.optionalQuantifier) { 3613 a = !0; 3614 for (var c = 0; c <= s; c++) { 3615 var u = o.getTestTemplate.call(t, c).match; 3616 if (!0 !== u.static && void 0 === i.validPositions[c] && (!1 === u.optionality || void 0 === u.optionality || u.optionality && 0 == u.newBlockMarker) && (!1 === u.optionalQuantifier || void 0 === u.optionalQuantifier) || !0 === u.static && "" != u.def && e[c] !== o.getPlaceholder.call(t, c, u)) { 3617 a = !1; 3618 break; 3619 } 3620 } 3621 } 3622 return a; 3623 } 3624 } 3625 function u(e) { 3626 var t = this.opts.insertMode ? 0 : 1; 3627 return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t; 3628 } 3629 function f(e, t, n, i, a, p, v) { 3630 var g = this, y = this.dependencyLib, k = this.opts, b = g.maskset; 3631 n = !0 === n; 3632 var x = e; 3633 function P(e) { 3634 if (void 0 !== e) { 3635 if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]), 3636 e.remove.sort((function(e, t) { 3637 return g.isRTL ? e.pos - t.pos : t.pos - e.pos; 3638 })).forEach((function(e) { 3639 m.call(g, { 3640 begin: e, 3641 end: e + 1 3642 }); 3643 })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]), 3644 e.insert.sort((function(e, t) { 3645 return g.isRTL ? t.pos - e.pos : e.pos - t.pos; 3646 })).forEach((function(e) { 3647 "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : i); 3648 })), e.insert = void 0), e.refreshFromBuffer && e.buffer) { 3649 var t = e.refreshFromBuffer; 3650 d.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0; 3651 } 3652 void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0); 3653 } 3654 return e; 3655 } 3656 function w(t, n, a) { 3657 var l = !1; 3658 return o.getTests.call(g, t).every((function(c, f) { 3659 var p = c.match; 3660 if (r.getBuffer.call(g, !0), !1 !== (l = (!p.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != p.fn ? p.fn.test(n, b, t, a, k, u.call(g, e)) : (n === p.def || n === k.skipOptionalPartCharacter) && "" !== p.def && { 3661 c: o.getPlaceholder.call(g, t, p, !0) || p.def, 3662 pos: t 3663 }))) { 3664 var d = void 0 !== l.c ? l.c : n, h = t; 3665 return d = d === k.skipOptionalPartCharacter && !0 === p.static ? o.getPlaceholder.call(g, t, p, !0) || p.def : d, 3666 !0 !== (l = P(l)) && void 0 !== l.pos && l.pos !== t && (h = l.pos), !0 !== l && void 0 === l.pos && void 0 === l.c ? !1 : (!1 === m.call(g, e, y.extend({}, c, { 3667 input: s.call(g, d, p, h) 3668 }), i, h) && (l = !1), !1); 3669 } 3670 return !0; 3671 })), l; 3672 } 3673 void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin); 3674 var S = !0, O = y.extend(!0, [], b.validPositions); 3675 if (!1 === k.keepStatic && void 0 !== b.excludes[x] && !0 !== a && !0 !== i) for (var M = x; M < (g.isRTL ? e.begin : e.end); M++) void 0 !== b.excludes[M] && (b.excludes[M] = void 0, 3676 delete b.tests[M]); 3677 if ("function" == typeof k.preValidation && !0 !== i && !0 !== p && (S = P(S = k.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), k, b, e, n || a))), 3678 !0 === S) { 3679 if (S = w(x, t, n), (!n || !0 === i) && !1 === S && !0 !== p) { 3680 var _ = b.validPositions[x]; 3681 if (!_ || !0 !== _.match.static || _.match.def !== t && t !== k.skipOptionalPartCharacter) { 3682 if (k.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) { 3683 var j = !1; 3684 if (b.jitOffset[x] && void 0 === b.validPositions[r.seekNext.call(g, x)] && !1 !== (S = f.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== a && (S.caret = x), 3685 j = !0), e.end > x && (b.validPositions[x] = void 0), !j && !r.isMask.call(g, x, k.keepStatic && 0 === x)) for (var E = x + 1, T = r.seekNext.call(g, x, !1, 0 !== x); E <= T; E++) if (!1 !== (S = w(E, t, n))) { 3686 S = h.call(g, x, void 0 !== S.pos ? S.pos : E) || S, x = E; 3687 break; 3688 } 3689 } 3690 } else S = { 3691 caret: r.seekNext.call(g, x) 3692 }; 3693 } 3694 if (g.hasAlternator && !0 !== a && !n && (a = !0, !1 === S && k.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = l.call(g, x, t, n, i, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && k.keepStatic || !0 === S && !0 !== k.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = l.call(g, !0))), 3695 !0 === S && (S = { 3696 pos: x 3697 }), "function" == typeof k.postValidation && !0 !== i && !0 !== p) { 3698 var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, n, v, a); 3699 void 0 !== A && (S = !0 === A ? S : A); 3700 } 3701 } 3702 S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === p ? (r.resetMaskSet.call(g, !0), 3703 b.validPositions = y.extend(!0, [], O)) : h.call(g, void 0, x, !0); 3704 var D = P(S); 3705 void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !i && (r.resetMaskSet.call(g, !0), 3706 b.validPositions = y.extend(!0, [], O), D = !1)); 3707 return D; 3708 } 3709 function p(e, t, n) { 3710 for (var i = this.maskset, a = !1, r = o.getTests.call(this, e), l = 0; l < r.length; l++) { 3711 if (r[l].match && (r[l].match.nativeDef === t.match[n.shiftPositions ? "def" : "nativeDef"] && (!n.shiftPositions || !t.match.static) || r[l].match.nativeDef === t.match.nativeDef || n.regex && !r[l].match.static && r[l].match.fn.test(t.input, i, e, !1, n))) { 3712 a = !0; 3713 break; 3714 } 3715 if (r[l].match && r[l].match.def === t.match.nativeDef) { 3716 a = void 0; 3717 break; 3718 } 3719 } 3720 return !1 === a && void 0 !== i.jitOffset[e] && (a = p.call(this, e + i.jitOffset[e], t, n)), 3721 a; 3722 } 3723 function d(e, t, n) { 3724 var a, o, l = this, s = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, p = l.isRTL ? n.slice().reverse() : n; 3725 if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(l, !1), e = 0, 3726 t = n.length, o = r.determineNewCaretPosition.call(l, { 3727 begin: 0, 3728 end: 0 3729 }, !1).begin; else { 3730 for (a = e; a < t; a++) s.validPositions.splice(e, 0); 3731 o = e; 3732 } 3733 var d = new u.Event("keypress"); 3734 for (a = e; a < t; a++) { 3735 d.key = p[a].toString(), l.ignorable = !1; 3736 var h = i.EventHandlers.keypressEvent.call(l, d, !0, !1, !1, o); 3737 !1 !== h && void 0 !== h && (o = h.forwardPosition); 3738 } 3739 c.skipOptionalPartCharacter = f; 3740 } 3741 function h(e, t, n) { 3742 var i = this, a = this.maskset, l = this.dependencyLib; 3743 if (void 0 === e) for (e = t - 1; e > 0 && !a.validPositions[e]; e--) ; 3744 for (var s = e; s < t; s++) { 3745 if (void 0 === a.validPositions[s] && !r.isMask.call(i, s, !1)) if (0 == s ? o.getTest.call(i, s) : a.validPositions[s - 1]) { 3746 var c = o.getTests.call(i, s).slice(); 3747 "" === c[c.length - 1].match.def && c.pop(); 3748 var u, p = o.determineTestTemplate.call(i, s, c); 3749 if (p && (!0 !== p.match.jit || "master" === p.match.newBlockMarker && (u = a.validPositions[s + 1]) && !0 === u.match.optionalQuantifier) && ((p = l.extend({}, p, { 3750 input: o.getPlaceholder.call(i, s, p.match, !0) || p.match.def 3751 })).generatedInput = !0, m.call(i, s, p, !0), !0 !== n)) { 3752 var d = a.validPositions[t].input; 3753 return a.validPositions[t] = void 0, f.call(i, t, d, !0, !0); 3754 } 3755 } 3756 } 3757 } 3758 function m(e, t, n, i) { 3759 var a = this, l = this.maskset, s = this.opts, c = this.dependencyLib; 3760 function d(e, t, n) { 3761 var i = t[e]; 3762 if (void 0 !== i && !0 === i.match.static && !0 !== i.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) { 3763 var a = n.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = n.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1]; 3764 return a && r; 3765 } 3766 return !1; 3767 } 3768 var h = 0, m = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, g = !0; 3769 if (e.begin > e.end && (m = e.end, v = e.begin), i = void 0 !== i ? i : m, void 0 === n && (m !== v || s.insertMode && void 0 !== l.validPositions[i] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) { 3770 var y, k = c.extend(!0, [], l.validPositions), b = r.getLastValidPosition.call(a, void 0, !0); 3771 l.p = m; 3772 var x = u.call(a, e) ? m : i; 3773 for (y = b; y >= x; y--) l.validPositions.splice(y, 1), void 0 === t && delete l.tests[y + 1]; 3774 var P, w, S = i, O = S; 3775 for (t && (l.validPositions[i] = c.extend(!0, {}, t), O++, S++), null == k[v] && l.jitOffset[v] && (v += l.jitOffset[v] + 1), 3776 y = t ? v : v - 1; y <= b; y++) { 3777 if (void 0 !== (P = k[y]) && !0 !== P.generatedInput && (y >= v || y >= m && d(y, k, { 3778 begin: m, 3779 end: v 3780 }))) { 3781 for (;"" !== o.getTest.call(a, O).match.def; ) { 3782 if (!1 !== (w = p.call(a, O, P, s)) || "+" === P.match.def) { 3783 "+" === P.match.def && r.getBuffer.call(a, !0); 3784 var M = f.call(a, O, P.input, "+" !== P.match.def, !0); 3785 if (g = !1 !== M, S = (M.pos || O) + 1, !g && w) break; 3786 } else g = !1; 3787 if (g) { 3788 void 0 === t && P.match.static && y === e.begin && h++; 3789 break; 3790 } 3791 if (!g && r.getBuffer.call(a), O > l.maskLength) break; 3792 O++; 3793 } 3794 "" == o.getTest.call(a, O).match.def && (g = !1), O = S; 3795 } 3796 if (!g) break; 3797 } 3798 if (!g) return l.validPositions = c.extend(!0, [], k), r.resetMaskSet.call(a, !0), 3799 !1; 3800 } else t && o.getTest.call(a, i).match.cd === t.match.cd && (l.validPositions[i] = c.extend(!0, {}, t)); 3801 return r.resetMaskSet.call(a, !0), h; 3802 } 3803 }, 3804 7960: function(e, t, n) { 3805 Object.defineProperty(t, "__esModule", { 3806 value: !0 3807 }), t.default = void 0, n(8145), n(1669), n(1960), n(493), n(472), n(4829), n(4203), 3808 n(546), n(2952); 3809 var i, a = (i = n(3978)) && i.__esModule ? i : { 3810 default: i 3811 }; 3812 t.default = a.default; 3813 }, 3814 8145: function() { 3815 function e(t) { 3816 return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 3817 return typeof e; 3818 } : function(e) { 3819 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 3820 }, e(t); 3821 } 3822 "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) { 3823 return e.__proto__; 3824 } : function(e) { 3825 return e.constructor.prototype; 3826 }); 3827 }, 3828 8826: function(e, t, n) { 3829 Object.defineProperty(t, "__esModule", { 3830 value: !0 3831 }), t.default = void 0; 3832 var i, a = (i = n(4424)) && i.__esModule ? i : { 3833 default: i 3834 }; 3835 if (void 0 === a.default) throw new Error("jQuery not loaded!"); 3836 t.default = a.default; 3837 }, 3838 9439: function(e, t) { 3839 Object.defineProperty(t, "__esModule", { 3840 value: !0 3841 }), t.default = function(e, t, n, i) { 3842 this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1, 3843 this.isOptional = t || !1, this.isQuantifier = n || !1, this.isAlternator = i || !1, 3844 this.quantifier = { 3845 min: 1, 3846 max: 1 3847 }; 3848 }; 3849 }, 3850 9472: function(e, t) { 3851 Object.defineProperty(t, "__esModule", { 3852 value: !0 3853 }), t.default = void 0; 3854 t.default = { 3855 9: { 3856 validator: "\\p{N}", 3857 definitionSymbol: "*" 3858 }, 3859 a: { 3860 validator: "\\p{L}", 3861 definitionSymbol: "*" 3862 }, 3863 "*": { 3864 validator: "[\\p{L}\\p{N}]" 3865 } 3866 }; 3867 } 3868 }, n = {}; 3869 function i(e) { 3870 var a = n[e]; 3871 if (void 0 !== a) return a.exports; 3872 var r = n[e] = { 3873 exports: {} 3874 }; 3875 return t[e](r, r.exports, i), r.exports; 3876 } 3877 var a = {}; 3878 return function() { 3879 var e = a; 3880 Object.defineProperty(e, "__esModule", { 3881 value: !0 3882 }), e.default = void 0; 3883 var t, n = (t = i(7960)) && t.__esModule ? t : { 3884 default: t 3885 }; 3886 i(6664); 3887 e.default = n.default; 3888 }(), a; 3889 }(); 3890}));
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.