colormask.js 241 KB

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