nfsfu234-form-validation
Version:
NFSFU234FormValidation is a lightweight and user-friendly JavaScript library designed for validating HTML form elements, with a special emphasis on textarea fields. It offers customizable validation messages, comprehensive support for required field check
1 lines • 64.7 kB
JavaScript
"use strict";function e(e,t,r,n,o,i,a){try{var s=e[i](a);var u=s.value}catch(e){r(e);return}if(s.done){t(u)}else{Promise.resolve(u).then(n,o)}}function t(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=t.apply(r,n);function s(t){e(a,o,i,s,u,"next",t)}function u(t){e(a,o,i,s,u,"throw",t)}s(undefined)})}}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function o(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}function i(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function a(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(i[0]===6&&a.label<o[1]){a.label=o[1];o=i;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(i);break}if(o[2])a.ops.pop();a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e];n=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}(function(){var e=function e(e,t,r){var n={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;var o=t.form||void 0,i=t.customErrorMessages||null,s=t.errorType||"inline",u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=i&&i.checkbox&&i.checkbox!==""?i.checkbox:"You need to check this box";if(e.getAttribute("type")!=="checkbox")return!1;if(!u)return l&&!e.checked?(w(d),n.message=d,n.data=e,n):!0;if(!o)return n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist. 5765846846"),n;var f=[];return l&&!e.checked?(w(d),n.message=d,n.data=e,s==="inline"?C(e,d,3e3):s==="modal"&&(F(e,3e3),H(d,o)),n):!0};var n=Object.create;var u=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var m=function(e){return(typeof require==="undefined"?"undefined":a(require))<"u"?require:(typeof Proxy==="undefined"?"undefined":a(Proxy))<"u"?new Proxy(e,{get:function(e,t){return((typeof require==="undefined"?"undefined":a(require))<"u"?require:e)[t]}}):e}(function(e){if((typeof require==="undefined"?"undefined":a(require))<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var v=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}};var h=function(e,t,r,n){var o=true,i=false,s=undefined;if(t&&(typeof t==="undefined"?"undefined":a(t))=="object"||typeof t=="function")try{var f=function(){var o=v.value;!c.call(e,o)&&o!==r&&u(e,o,{get:function(){return t[o]},enumerable:!(n=l(t,o))||n.enumerable})};for(var m=d(t)[Symbol.iterator](),v;!(o=(v=m.next()).done);o=true)f()}catch(e){i=true;s=e}finally{try{if(!o&&m.return!=null){m.return()}}finally{if(i){throw s}}}return e};var g=function(e,t,r){return r=e!=null?n(f(e)):{},h(t||!e||!e.__esModule?u(r,"default",{value:e,enumerable:!0}):r,e)};var y=v(function(e,t){"use strict";(function(e,r){typeof define=="function"&&define.amd?define([],r):typeof m=="function"&&(typeof t==="undefined"?"undefined":a(t))=="object"&&t&&t.exports?t.exports=r():(e.dcodeIO=e.dcodeIO||{}).bcrypt=r()})(e,function(){"use strict";var e={},r=null;function n(e){if((typeof t==="undefined"?"undefined":a(t))<"u"&&t&&t.exports)try{return m("crypto").randomBytes(e)}catch(e){}try{var n;return(self.crypto||self.msCrypto).getRandomValues(n=new Uint32Array(e)),Array.prototype.slice.call(n)}catch(e){}if(!r)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return r(e)}var o=!1;try{n(1),o=!0}catch(e){}r=null,e.setRandomFallback=function(e){r=e},e.genSaltSync=function(e,t){if(e=e||y,typeof e!="number")throw Error("Illegal arguments: "+(typeof e==="undefined"?"undefined":a(e))+", "+(typeof t==="undefined"?"undefined":a(t)));e<4?e=4:e>31&&(e=31);var r=[];return r.push("$2a$"),e<10&&r.push("0"),r.push(e.toString()),r.push("$"),r.push(c(n(g),g)),r.join("")},e.genSalt=function(t,r,n){if(typeof r=="function"&&(n=r,r=void 0),typeof t=="function"&&(n=t,t=void 0),(typeof t==="undefined"?"undefined":a(t))>"u")t=y;else if(typeof t!="number")throw Error("illegal arguments: "+(typeof t==="undefined"?"undefined":a(t)));function o(r){s(function(){try{r(null,e.genSaltSync(t))}catch(e){r(e)}})}if(n){if(typeof n!="function")throw Error("Illegal callback: "+(typeof n==="undefined"?"undefined":a(n)));o(n)}else return new Promise(function(e,t){o(function(r,n){if(r){t(r);return}e(n)})})},e.hashSync=function(t,r){if((typeof r==="undefined"?"undefined":a(r))>"u"&&(r=y),typeof r=="number"&&(r=e.genSaltSync(r)),typeof t!="string"||typeof r!="string")throw Error("Illegal arguments: "+(typeof t==="undefined"?"undefined":a(t))+", "+(typeof r==="undefined"?"undefined":a(r)));return I(t,r)},e.hash=function(t,r,n,o){function i(n){typeof t=="string"&&typeof r=="number"?e.genSalt(r,function(e,r){I(t,r,n,o)}):typeof t=="string"&&typeof r=="string"?I(t,r,n,o):s(n.bind(this,Error("Illegal arguments: "+(typeof t==="undefined"?"undefined":a(t))+", "+(typeof r==="undefined"?"undefined":a(r)))))}if(n){if(typeof n!="function")throw Error("Illegal callback: "+(typeof n==="undefined"?"undefined":a(n)));i(n)}else return new Promise(function(e,t){i(function(r,n){if(r){t(r);return}e(n)})})};function i(e,t){for(var r=0,n=0,o=0,i=e.length;o<i;++o)e.charCodeAt(o)===t.charCodeAt(o)?++r:++n;return r<0?!1:n===0}e.compareSync=function(t,r){if(typeof t!="string"||typeof r!="string")throw Error("Illegal arguments: "+(typeof t==="undefined"?"undefined":a(t))+", "+(typeof r==="undefined"?"undefined":a(r)));return r.length!==60?!1:i(e.hashSync(t,r.substr(0,r.length-31)),r)},e.compare=function(t,r,n,o){function u(n){if(typeof t!="string"||typeof r!="string"){s(n.bind(this,Error("Illegal arguments: "+(typeof t==="undefined"?"undefined":a(t))+", "+(typeof r==="undefined"?"undefined":a(r)))));return}if(r.length!==60){s(n.bind(this,null,!1));return}e.hash(t,r.substr(0,29),function(e,t){e?n(e):n(null,i(t,r))},o)}if(n){if(typeof n!="function")throw Error("Illegal callback: "+(typeof n==="undefined"?"undefined":a(n)));u(n)}else return new Promise(function(e,t){u(function(r,n){if(r){t(r);return}e(n)})})},e.getRounds=function(e){if(typeof e!="string")throw Error("Illegal arguments: "+(typeof e==="undefined"?"undefined":a(e)));return parseInt(e.split("$")[2],10)},e.getSalt=function(e){if(typeof e!="string")throw Error("Illegal arguments: "+(typeof e==="undefined"?"undefined":a(e)));if(e.length!==60)throw Error("Illegal hash length: "+e.length+" != 60");return e.substring(0,29)};var s=(typeof process==="undefined"?"undefined":a(process))<"u"&&process&&typeof process.nextTick=="function"?typeof setImmediate=="function"?setImmediate:process.nextTick:setTimeout;function u(e){var t=[],r=0;return h.encodeUTF16toUTF8(function(){return r>=e.length?null:e.charCodeAt(r++)},function(e){t.push(e)}),t}var l="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1],f=String.fromCharCode;function c(e,t){var r=0,n=[],o,i;if(t<=0||t>e.length)throw Error("Illegal len: "+t);for(;r<t;){if(o=e[r++]&255,n.push(l[o>>2&63]),o=(o&3)<<4,r>=t){n.push(l[o&63]);break}if(i=e[r++]&255,o|=i>>4&15,n.push(l[o&63]),o=(i&15)<<2,r>=t){n.push(l[o&63]);break}i=e[r++]&255,o|=i>>6&3,n.push(l[o&63]),n.push(l[i&63])}return n.join("")}function v(e,t){var r=0,n=e.length,o=0,i=[],a,s,u,l,c,m;if(t<=0)throw Error("Illegal len: "+t);for(;r<n-1&&o<t&&(m=e.charCodeAt(r++),a=m<d.length?d[m]:-1,m=e.charCodeAt(r++),s=m<d.length?d[m]:-1,!(a==-1||s==-1||(c=a<<2>>>0,c|=(s&48)>>4,i.push(f(c)),++o>=t||r>=n)||(m=e.charCodeAt(r++),u=m<d.length?d[m]:-1,u==-1)||(c=(s&15)<<4>>>0,c|=(u&60)>>2,i.push(f(c)),++o>=t||r>=n)));)m=e.charCodeAt(r++),l=m<d.length?d[m]:-1,c=(u&3)<<6>>>0,c|=l,i.push(f(c)),++o;var v=[];for(r=0;r<o;r++)v.push(i[r].charCodeAt(0));return v}var h=function(){"use strict";var e={};return e.MAX_CODEPOINT=1114111,e.encodeUTF8=function(e,t){var r=null;for(typeof e=="number"&&(r=e,e=function e(){return null});r!==null||(r=e())!==null;)r<128?t(r&127):r<2048?(t(r>>6&31|192),t(r&63|128)):r<65536?(t(r>>12&15|224),t(r>>6&63|128),t(r&63|128)):(t(r>>18&7|240),t(r>>12&63|128),t(r>>6&63|128),t(r&63|128)),r=null},e.decodeUTF8=function(e,t){for(var r,n,o,i,a=function e(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};(r=e())!==null;)if(!(r&128))t(r);else if((r&224)===192)(n=e())===null&&a([r,n]),t((r&31)<<6|n&63);else if((r&240)===224)((n=e())===null||(o=e())===null)&&a([r,n,o]),t((r&15)<<12|(n&63)<<6|o&63);else if((r&248)===240)((n=e())===null||(o=e())===null||(i=e())===null)&&a([r,n,o,i]),t((r&7)<<18|(n&63)<<12|(o&63)<<6|i&63);else throw RangeError("Illegal starting byte: "+r)},e.UTF16toUTF8=function(e,t){for(var r,n=null;(r=n!==null?n:e())!==null;){if(r>=55296&&r<=57343&&(n=e())!==null&&n>=56320&&n<=57343){t((r-55296)*1024+n-56320+65536),n=null;continue}t(r)}n!==null&&t(n)},e.UTF8toUTF16=function(e,t){var r=null;for(typeof e=="number"&&(r=e,e=function e(){return null});r!==null||(r=e())!==null;)r<=65535?t(r):(r-=65536,t((r>>10)+55296),t(r%1024+56320)),r=null},e.encodeUTF16toUTF8=function(t,r){e.UTF16toUTF8(t,function(t){e.encodeUTF8(t,r)})},e.decodeUTF8toUTF16=function(t,r){e.decodeUTF8(t,function(t){e.UTF8toUTF16(t,r)})},e.calculateCodePoint=function(e){return e<128?1:e<2048?2:e<65536?3:4},e.calculateUTF8=function(t){for(var r,n=0;(r=t())!==null;)n+=e.calculateCodePoint(r);return n},e.calculateUTF16asUTF8=function(t){var r=0,n=0;return e.UTF16toUTF8(t,function(t){++r,n+=e.calculateCodePoint(t)}),[r,n]},e}();Date.now=Date.now||function(){return+new Date};var g=16,y=10,p=16,b=100,w=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],E=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],T=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892];function x(e,t,r,n){var o,i=e[t],a=e[t+1];return i^=r[0],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[1],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[2],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[3],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[4],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[5],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[6],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[7],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[8],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[9],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[10],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[11],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[12],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[13],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[14],o=n[i>>>24],o+=n[256|i>>16&255],o^=n[512|i>>8&255],o+=n[768|i&255],a^=o^r[15],o=n[a>>>24],o+=n[256|a>>16&255],o^=n[512|a>>8&255],o+=n[768|a&255],i^=o^r[16],e[t]=a^r[p+1],e[t+1]=i,e}function k(e,t){for(var r=0,n=0;r<4;++r)n=n<<8|e[t]&255,t=(t+1)%e.length;return{key:n,offp:t}}function M(e,t,r){for(var n=0,o=[0,0],i=t.length,a=r.length,s,u=0;u<i;u++)s=k(e,n),n=s.offp,t[u]=t[u]^s.key;for(u=0;u<i;u+=2)o=x(o,0,t,r),t[u]=o[0],t[u+1]=o[1];for(u=0;u<a;u+=2)o=x(o,0,t,r),r[u]=o[0],r[u+1]=o[1]}function A(e,t,r,n){for(var o=0,i=[0,0],a=r.length,s=n.length,u,l=0;l<a;l++)u=k(t,o),o=u.offp,r[l]=r[l]^u.key;for(o=0,l=0;l<a;l+=2)u=k(e,o),o=u.offp,i[0]^=u.key,u=k(e,o),o=u.offp,i[1]^=u.key,i=x(i,0,r,n),r[l]=i[0],r[l+1]=i[1];for(l=0;l<s;l+=2)u=k(e,o),o=u.offp,i[0]^=u.key,u=k(e,o),o=u.offp,i[1]^=u.key,i=x(i,0,r,n),n[l]=i[0],n[l+1]=i[1]}function L(e,t,r,n,o){var i=T.slice(),u=i.length,l;if(r<4||r>31)if(l=Error("Illegal number of rounds (4-31): "+r),n){s(n.bind(this,l));return}else throw l;if(t.length!==g)if(l=Error("Illegal salt length: "+t.length+" != "+g),n){s(n.bind(this,l));return}else throw l;r=1<<r>>>0;var d,f,c=0,m;Int32Array?(d=new Int32Array(w),f=new Int32Array(E)):(d=w.slice(),f=E.slice()),A(t,e,d,f);function v(){if(o&&o(c/r),c<r)for(var a=Date.now();c<r&&(c=c+1,M(e,d,f),M(t,d,f),!(Date.now()-a>b)););else{for(c=0;c<64;c++)for(m=0;m<u>>1;m++)x(i,m<<1,d,f);var l=[];for(c=0;c<u;c++)l.push((i[c]>>24&255)>>>0),l.push((i[c]>>16&255)>>>0),l.push((i[c]>>8&255)>>>0),l.push((i[c]&255)>>>0);if(n){n(null,l);return}else return l}n&&s(v)}if((typeof n==="undefined"?"undefined":a(n))<"u")v();else for(var h;;)if(a(h=v())<"u")return h||[]}function I(e,t,r,n){var o;if(typeof e!="string"||typeof t!="string")if(o=Error("Invalid string / salt: Not a string"),r){s(r.bind(this,o));return}else throw o;var i,l;if(t.charAt(0)!=="$"||t.charAt(1)!=="2")if(o=Error("Invalid salt version: "+t.substring(0,2)),r){s(r.bind(this,o));return}else throw o;if(t.charAt(2)==="$")i="\0",l=3;else{if(i=t.charAt(2),i!=="a"&&i!=="b"&&i!=="y"||t.charAt(3)!=="$")if(o=Error("Invalid salt revision: "+t.substring(2,4)),r){s(r.bind(this,o));return}else throw o;l=4}if(t.charAt(l+2)>"$")if(o=Error("Missing salt rounds"),r){s(r.bind(this,o));return}else throw o;var d=parseInt(t.substring(l,l+1),10)*10,f=parseInt(t.substring(l+1,l+2),10),m=d+f,h=t.substring(l+3,l+25);e+=i>="a"?"\0":"";var y=u(e),p=v(h,g);function b(e){var t=[];return t.push("$2"),i>="a"&&t.push(i),t.push("$"),m<10&&t.push("0"),t.push(m.toString()),t.push("$"),t.push(c(p,p.length)),t.push(c(e,T.length*4-1)),t.join("")}if((typeof r==="undefined"?"undefined":a(r))>"u")return b(L(y,p,m));L(y,p,m,function(e,t){e?r(e,null):r(null,b(t))},n)}return e.encodeBase64=c,e.decodeBase64=v,e})});var p=v(function(e,t){"use strict";t.exports=y()});var b={ERROR:"error",ERROR_1:"error_1",CONSOLE:"console",THROW:"throw",WARNING:"warning",INFO:"info"},w=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b.CONSOLE;switch(t){case b.ERROR:console.error("Error:",e);break;case b.CONSOLE:console.error("Error:",e);break;case b.THROW:throw e;case b.WARNING:console.warn("Warning:",e);break;case b.INFO:console.log("Info:",e);break;default:throw console.error("Error:",e),e}};var E=function(e){return e.every(function(e){return e===!0})};var T=function(e){return typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":(typeof e==="undefined"?"undefined":a(e))>"u"?"undefined":e===null?"null":i(e,HTMLElement)?"HTML Element":(typeof e==="undefined"?"undefined":a(e))=="object"&&i(e,Array)?"array":(typeof e==="undefined"?"undefined":a(e))=="object"&&i(e,Object)?"object":typeof e=="function"?"function":null};var x=function(){return(typeof window==="undefined"?"undefined":a(window))>"u"?(w("This function only works in a broswer environment..."),!1):window.location.href},k=x;var M=function(){var e=t(function(e,t){var r,n,o,i,a,u;return s(this,function(s){switch(s.label){case 0:r={};s.label=1;case 1:s.trys.push([1,9,,10]);console.log("AJAX Loading....");return[4,fetch(e,t)];case 2:n=s.sent();if(!n.ok)return[3,4];console.log("AJAX Finished....");return[4,n.json()];case 3:return[2,s.sent()];case 4:if(n.status===404)throw r.code=(o=n.status)!==null&&o!==void 0?o:404,r.message="Resource Not Found",r.data={headers:n.headers,url:n.url,status:n.status,statusText:n.statusText,ok:n.ok},r;s.label=5;case 5:s.trys.push([5,7,,8]);return[4,n.json()];case 6:i=s.sent();if(T(i)==="object")r.code=n.status,r.message=i.message||n.statusText,r.data=i;else throw r.code=400,r.message="Response is not a valid JSON object 2.",r;return[2,r];case 7:a=s.sent();throw r.code=400,r.message="Response is not a valid JSON object. 1",r.data=null,r;case 8:return[3,10];case 9:u=s.sent();throw r.code=u.code||400,r.message=u.message||u.statusText||"An Error Occured",r.data=u.data||null,r;case 10:return[2]}})});return function t(t,r){return e.apply(this,arguments)}}(),A=function(e){var t={},r=e.RequestMethod||"GET",n=e.RequestHeader||{},o=e.RequestBodyIgnore||!1,i=e.RequestType||"json",a;if(["POST","PUT","DELETE","UPDATE"].includes(r)&&(a=e.RequestBody||"",a===""&&o!==!0))throw t.code=400,t.message='The body of this "'.concat(r,'" request you made is empty. If this was intentionional, then add the RequestBodyIgnore attribute and set it to true.'),t;return{method:r,headers:n,body:JSON.stringify(a)}},L=function(){var e=t(function(e){var t,r,n,o,i;return s(this,function(a){switch(a.label){case 0:t={};a.label=1;case 1:a.trys.push([1,3,,4]);r=e&&e.url?e.url:k(),n=A(e);return[4,M(r,n)];case 2:return[2,a.sent()];case 3:o=a.sent();throw t.code=o.code||400,t.message=o.message||"An Error Occured",t.data=(i=o.data)!==null&&i!==void 0?i:null,console.error("AJAX Failed: ",o.message),w(o.message,b.THROW),o;case 4:return[2]}})});return function t(t){return e.apply(this,arguments)}}(),I=L;var S=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e3;e.focus(),e.classList.add("input-focus-error"),setTimeout(function(){e.classList.remove("input-focus-error")},t)},F=S;var j=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!e)return!1;F(e,r);var o=document.createElement("div");o.classList.add("js-inline-message"),o.innerHTML=t;var i=e.parentNode;if(!i)return!1;i.appendChild(o),n&&o.classList.add("text-success"),setTimeout(function(){i.removeChild(o)},r)},C=j;var q=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:3e3,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;var a;if(r!=""?a=document.getElementById(r):document.querySelectorAll("#js-errorMessageContainer").length>0?a=t.querySelector("#js-errorMessageContainer"):(a=document.createElement("div"),a.classList.add("js-errorMessageContainer"),a.setAttribute("id","js-errorMessageContainer"),t.appendChild(a)),!a)return!1;var s=document.createElement("div");s.classList.add("login-error-message-container","active");var u=document.createElement("div");u.classList.add("message","js-message"),u.innerHTML=e;var l=document.createElement("div");l.classList.add("icon","close","js-close"),l.innerHTML="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.71,8.29a1,1,0,0,0-1.42,0L12,10.59,9.71,8.29A1,1,0,0,0,8.29,9.71L10.59,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L13.41,12l2.3-2.29A1,1,0,0,0,15.71,8.29Zm3.36-3.36A10,10,0,1,0,4.93,19.07,10,10,0,1,0,19.07,4.93ZM17.66,17.66A8,8,0,1,1,20,12,7.95,7.95,0,0,1,17.66,17.66Z'/></svg>",s.appendChild(u),s.appendChild(l),a.appendChild(s),o&&s.classList.add("success");var d=s.querySelector(".js-close");if(!d)return!1;d.addEventListener("click",function(){s&&s.parentNode&&s.parentNode.removeChild(s)}),setTimeout(function(){s&&s.parentNode&&s.parentNode.removeChild(s)},n),i&&console.error(e)},H=q;var R=function(e){var t=e.type,r=e.message,n=e.duration,o=e.element,a=e.success,s=a===void 0?!1:a;if(!i(o,HTMLElement))return console.error("The HTML Element you are trying to use is not found."),!1;if(o.style.position="relative",t==="inline")C(o,r,n,s);else if(t==="modal")H(r,o,"",n,s);else return console.error("The type of error display you specified is not supported."),!1;return!0},O=R;var P=function(e){var t={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),!1;if(!e)return t.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),t;var r=typeof e=="string"?document.getElementById(e):e;if(!r)return t.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),t;var n={},o=[];return r.querySelectorAll("input").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,i=e.value;if(e.type==="checkbox"&&(i=e.checked),e.type==="radio")if(e.checked)i=!0;else return;n[r]=i,o.push(!0)}),r.querySelectorAll("textarea").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,i=e.value;n[r]=i,o.push(!0)}),r.querySelectorAll("select").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,i=e.value;n[r]=i,o.push(!0)}),E(o)?n:!1},B=P;var U=function(e){return e.length},N=U;var $=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;var n={message:"",code:400};if(!e)return n.message="The input element you are trying to count and restrict is not found. Check your HTML code.",w(n.message),n;var o=t.maxLength&&parseInt(t.maxLength)&&t.maxLength>=1?t.maxLength:250,i=t.minLength&&parseInt(t.minLength)?t.minLength:0,a=!!(t.shouldButtonDisable&&t.shouldButtonDisable),s;if(t.form&&T(t.form)==="string"?document.getElementById(t.form):t.form&&T(t.form)==="HTML Element"?s=t.form:document.getElementById("nfsfu234_fv_form")?s=document.getElementById("nfsfu234_fv_form"):document.getElementById("jsForm")?s=document.getElementById("jsForm"):document.querySelector("form")?s=document.querySelector("form"):s=void 0,!s)return n.message="The form you are trying to validate does not exist.",w(n.message),n;e.addEventListener("input",function(){var t=N(e.value),u=!1,l;if(T(r)==="string"&&(l=document.getElementById(r)),l)l=l;else{var d=e.parentNode;if(d===null||d===void 0?void 0:d.querySelector(".js-counterContainer"))l=d.querySelector(".js-counterContainer");else{if(l=document.createElement("span"),l.classList.add("js-counterContainer"),!d)return!1;d.appendChild(l)}}return l?(t>o?(t=o,l.classList.remove("text-fail"),l.classList.add("text-success"),e.value=e.value.slice(0,o),a&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):t>=o?(e.value=e.value.slice(0,o),l.classList.remove("text-fail"),l.classList.add("text-success"),a&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):t>=i&&i!==0?(l.classList.remove("text-fail"),l.classList.add("text-success"),a&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):(l.classList.add("text-fail"),a&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1})),l.innerHTML="".concat(t,"/").concat(o),u):(n.message="Counter Element Not Found",w(n.message),n)})},D=$;var G=function(e){return/^\d+$/.test(e)},_=G;var V={"dd/mm/yyyy":/^\d{1,2}\/\d{1,2}\/\d{4}$/,"yyyy-mm-dd":/^\d{4}-\d{2}-\d{2}$/,"mm/dd/yyyy":/^\d{1,2}\/\d{1,2}\/\d{4}$/,"mm.dd.yyyy":/^\d{1,2}\.\d{1,2}\.\d{4}$/,"yyyy/mm/dd":/^\d{4}\/\d{1,2}\/\d{1,2}$/,"yyyy.mm.dd":/^\d{4}\.\d{1,2}\.\d{1,2}$/,time:/^(0?[1-9]|1[0-2]):[0-5][0-9] (AM|PM)$/,"24-hour":/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,month:/^(0?[1-9]|1[0-2])$/,day:/^(0?[1-9]|[1-2][0-9]|3[0-1])$/},Y=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"dd/mm/yyyy";var r=V[t.toLowerCase()];return r?r.test(e):(console.error("Invalid date format: ".concat(t)),!1)},J=Y;var Z=function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},X=Z;var z=function(e){return typeof e=="string"?/^(https?:\/\/)?(www\.)?[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(:\d{1,5})?(\/[^\s]*)?(\?.*)?$/.test(e):!1},W=z;var K=function(e){return typeof e=="number"&&(e=e.toString()),/^\d{5}(?:\d{1})?$/.test(e)},Q=K;var ee=e;var et=function(e,t,r){if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;var n;var o={message:"an error occured",type:"error",code:400},s=t.form||void 0,u=(n=(t.customErrorMessages||null).checkbox)!==null&&n!==void 0?n:"You need to choose a value.";if(!s)return o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist. 5765846846"),o;var l=null;if((typeof e==="undefined"?"undefined":a(e))=="object"&&i(e,HTMLInputElement))l=e.getAttribute("name");else if(typeof e=="string")l=e;else if(!e)return console.error("The radio element(s) to validate is(are) not found."),o.message="The radio element(s) to validate is(are) not found.",o;if(!l)return w("The radio element(s) to validate is(are) not found."),o.message="The radio element(s) to validate is(are) not found.",o;var d=document.querySelectorAll('input[type="radio"][name="'.concat(l,'"]')),f=!1,c=!1,m=t.errorType||"inline",v=[],h=null;return d.forEach(function(e){h=e,(e.required||e.classList.contains("js-required"))&&(f=!0,e.checked?v.push(!0):v.push(!1))}),E(v)?!0:(!!(t.ignoreError&&t.ignoreError===!0)||(m==="inline"?C(h,u,3e3):m==="modal"&&(F(h,3e3),H(u,s))),o.message="You need to choose a value.",o.data=h,o)},er=et;var en=function(e,t,r){var n={message:"",type:"error",data:null,code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return console.error("The input field you are trying to validate does not exist."),!1;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var o;var i=t.error_type||t.errorType||"inline",s=t.customErrorMessages||[],u=(o=t.form)!==null&&o!==void 0?o:void 0,l=t.includeHTML!==!1,d=e.getAttribute("type"),f=e.value.trim(),c=e.required||e.classList.contains("js-required"),m;if(!l){var v,h;if(c&&f==="")m=(v=s[d])!==null&&v!==void 0?v:"This field is required.";else if(c&&d==="radio"){t.ignoreError=!0;var g=er(e,t);var y;g===!0?m="validated":m=(y=s[d])!==null&&y!==void 0?y:g.message}else if(c&&d==="checkbox"&&!ee(e,{form:u,customErrorMessages:s}))m=(h=s[d])!==null&&h!==void 0?h:"You need to check this box";else switch(d){case"email":var p;f!==""&&!X(f)&&(m=((p=s.email)===null||p===void 0?void 0:p.format)||"Invalid email format.");break;case"url":var b;f!==""&&!W(f)&&(m=((b=s.url)===null||b===void 0?void 0:b.format)||"Invalid URL format.");break;case"zipcode":var E;f!==""&&!Q(f)&&(m=((E=s.zipcode)===null||E===void 0?void 0:E.format)||"Invalid ZIP code format.");break;case"date":var x;f!==""&&!J(f)&&(m=((x=s.date)===null||x===void 0?void 0:x.format)||"Invalid date format.");break;case"tel":var k,M;f!==""&&!_(f)&&(m=((k=s.tel)===null||k===void 0?void 0:k.format)||((M=s.phone)===null||M===void 0?void 0:M.format)||"Invalid phone number.");break;case"phone":var A,L;f!==""&&!_(f)&&(m=((A=s.tel)===null||A===void 0?void 0:A.format)||((L=s.phone)===null||L===void 0?void 0:L.format)||"Invalid date format.");break;default:break}return m?(n.message=m,n.data=e,w(m),n):!0}if(!u)return n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),n;var I,S;if(c&&f==="")m=(I=s[d])!==null&&I!==void 0?I:"This field is required.";else if(c&&d==="radio"){t.ignoreError=!0;var j=er(e,t);var q;j===!0?m="validated":m=(q=s[d])!==null&&q!==void 0?q:j.message}else if(c&&d==="checkbox"&&!ee(e,{form:u,customErrorMessages:s}))m=(S=s[d])!==null&&S!==void 0?S:"You need to check this box";else switch(d){case"email":var R;f!==""&&!X(f)&&(m=((R=s.email)===null||R===void 0?void 0:R.format)||"Invalid email format.");break;case"url":var O;f!==""&&!W(f)&&(m=((O=s.url)===null||O===void 0?void 0:O.format)||"Invalid URL format.");break;case"zipcode":var P;f!==""&&!Q(f)&&(m=((P=s.zipcode)===null||P===void 0?void 0:P.format)||"Invalid ZIP code format.");break;case"date":var B;f!==""&&!J(f)&&(m=((B=s.date)===null||B===void 0?void 0:B.format)||"Invalid date format.");break;case"tel":var U,N;f!==""&&!_(f)&&(m=((U=s.tel)===null||U===void 0?void 0:U.format)||((N=s.phone)===null||N===void 0?void 0:N.format)||"Invalid phone number.");break;case"phone":var $,D;f!==""&&!_(f)&&(m=(($=s.tel)===null||$===void 0?void 0:$.format)||((D=s.phone)===null||D===void 0?void 0:D.format)||"Invalid date format.");break;default:break}return m?(n.message=m,n.data=e,i==="inline"?C(e,m):(F(e),H(m,e)),w(m),n):(n.code=200,n.data=null,n.message="success",n.type="success",!0)},eo=en;var ei=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{customErrorMessages:[],form:e};var r=[],n={message:"",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return n.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",r.push(n),r;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return n.message="The form you are trying to validate does not exist.",r.push(n),w(n.message),r;var o=[],i=e.querySelectorAll("input");return i.length>0?i.forEach(function(n){t.form=t.form||e;var i=eo(n,t);if(i===!0)o.push(!0);else{var a={message:"",code:400,data:null};o.push(!1);var s=i.message;a.message=s,a.data=n,r.push(a)}}):o.push(!0),E(o)?!0:r},ea=ei;var es=function(e,t,r){var n={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return console.error("The select element to validate is not found."),!1;if(T(t)!=="object")return w("options are not provided"),!1;var o=t.error_type||t.errorType||"inline",i=t.customErrorMessages||[],s=t.form||void 0,u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=e.value.trim(),f=(i===null||i===void 0?void 0:i.select)||"You have to select an option.";return u?s?l&&!d?(w(f),n.message=f,n.data=e,o?C(e,f,3e3):(F(e,3e3),H(f,s)),n):(n.code=200,n.data=null,n.message="success",n.type="success",!0):(n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),n):l&&!d?(w(f),n.message=f,n.data=e,n):!0},eu=es;var el=function(e,t){var r=[],n={message:"",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),!1;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return n.message="The form you are trying to validate does not exist.",r.push(n),w(n.message),r;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var o=[],i=e.querySelectorAll("select");return i.length>0?i.forEach(function(n){var i,a;t.customErrorMessages=(i=t.customErrorMessages)!==null&&i!==void 0?i:[],t.form=(a=t.form)!==null&&a!==void 0?a:e;var s=eu(n,t);if(s===!0)o.push(!0);else{var u={message:"",code:400};o.push(!1);var l=s;u.message=l,u.data=n,r.push(u)}}):o.push(!0),E(o)?!0:r},ed=el;var ef=function(e,t,r){var n={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),n;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var o=t.error_type||t.errorType||"inline",i=t.customErrorMessages||[],s=t.form||void 0,u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=e.value.trim(),f=(i===null||i===void 0?void 0:i.textarea)||"Textarea cannot be left empty.";return u?s?l&&!d?(w(f),n.message=f,n.data=e,o==="inline"?C(e,f,3e3):(F(e,3e3),H(f,s)),n):(n.code=200,n.data=null,n.message="success",n.type="success",!0):(n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),n):l&&!d?(w(f),n.message=f,n.data=e,n):!0},ec=ef;var em=function(e,t,r){var n=[],o={message:"",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return o.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",n.push(o),n;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return o.message="The form you are trying to validate does not exist.",n.push(o),w(o.message),n;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var i=[],s=e.querySelectorAll("textarea");return s.length>0?s.forEach(function(r,o){var a={message:"",code:400};var s,u,l;t.customErrorMessages=(s=t.customErrorMessages)!==null&&s!==void 0?s:[],t.errorType=(u=t.errorType)!==null&&u!==void 0?u:"inline",t.form=(l=t.form)!==null&&l!==void 0?l:e;var d=ec(r,t);if(d===!0)i.push(!0);else{var f={message:"",code:400};i.push(!1);var c=d;f.message=c,f.data=r,n.push(f)}}):i.push(!0),E(i)?!0:n},ev=em;var eh=function(e,t,r){var n={message:"",data:null,code:400},o={};if(!e)return w("Form element not found."),n.message="Form element not found.",n;var i=[],a=ea(e,t),s=ev(e,t),u=ed(e,t);if(a===!0)i.push(!0);else{var l={code:400,message:""},d=a;l.message="Inputs Validation Failed",l.data=d,o.inputs=l,i.push(!1)}if(s===!0)i.push(!0);else{i.push(!1);var f={code:400,message:""},c=s;f.message="Textarea Validation Failed",f.data=c,o.textareas=f}if(u===!0)i.push(!0);else{i.push(!1);var m={code:400,message:""},v=u;m.message="Selects Validation Failed",m.data=v,o.selects=m}return E(i)?!0:{message:"Form Validation Error",data:o}},eg=eh;var ey=function(e,t){var r=[],n={message:"",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return n.message="The form you are trying to validate does not exist. 5555 0000",n.data=e,r.push(n),w(n.message),r;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var o=[],i=e.querySelectorAll('input[type="checkbox"]');return i.length>0?i.forEach(function(n){var i,a;t.customErrorMessages=(i=t.customErrorMessages)!==null&&i!==void 0?i:[],t.form=(a=t.form)!==null&&a!==void 0?a:e;var s=ee(n,t);if(s===!0)o.push(!0);else{o.push(!1);var u={message:"",code:400};o.push(!1);var l=s;u.message=l,u.data=n,r.push(u)}}):o.push(!0),E(o)?!0:r},ep=ey;var eb=function(e,t){var r=[],n={message:"",code:400};if((typeof window==="undefined"?"undefined":a(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),n.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",r.push(n),r;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return n.message="The form you are trying to validate does not exist.",r.push(n),r;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var o=e.querySelectorAll('input[type="radio"]'),i=[];return o.forEach(function(e){var n={message:"",code:400},o=er(e,t);if(o===!0)i.push(!0);else{i.push(!1);var a=o.message;n.message=a,n.data=e,r.push(n)}}),E(i)?!0:r},ew=eb;var eE=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:8,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"";var i=/[A-Z]/,a=/[a-z]/,s=/[0-9]/;return e.length<r||e.length>n?"Make sure the length of your password ranges from ".concat(r," - ").concat(n," characters"):i.test(e)?a.test(e)?s.test(e)?t&&!(typeof o=="string"?new RegExp(o):o).test(e)?"Your password needs to have one symbol e.g (!@#$%^&*())":!0:"Your password needs to have at least one number (0-9)":"Your password needs to have at least one lowercase (a-z)":"Your password needs to have at least 1 uppercase (A-Z)"},eT=eE;var ex=g(p()),ek=function(){var e=t(function(e){var t;return s(this,function(r){switch(r.label){case 0:return[4,ex.genSalt(10)];case 1:t=r.sent();return[4,ex.hash(e,t)];case 2:return[2,r.sent()]}})});return function t(t){return e.apply(this,arguments)}}(),eM=ek;var eA=function(){var e=t(function(){var e,t,r,n,o,i,a,u,l,d;var f=arguments;return s(this,function(s){switch(s.label){case 0:e=f.length>0&&f[0]!==void 0?f[0]:Math.floor(Math.random()*11)+8,t=f