(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{

/***/ "./node_modules/vee-validate/dist/locale/ar.json":
/*!*******************************************************!*\
  !*** ./node_modules/vee-validate/dist/locale/ar.json ***!
  \*******************************************************/
/*! exports provided: code, messages, default */
/***/ (function(module) {

eval("module.exports = JSON.parse(\"{\\\"code\\\":\\\"ar\\\",\\\"messages\\\":{\\\"alpha\\\":\\\"{_field_} يجب ان يحتوي على حروف فقط\\\",\\\"alpha_num\\\":\\\"{_field_} قد يحتوي فقط على حروف وارقام\\\",\\\"alpha_dash\\\":\\\"{_field_} قد يحتوي على حروف او الرموز - و _\\\",\\\"alpha_spaces\\\":\\\"{_field_} قد يحتوي فقط على حروف ومسافات\\\",\\\"between\\\":\\\"قيمة {_field_} يجب ان تكون ما بين {min} و {max}\\\",\\\"confirmed\\\":\\\"{_field_} لا يماثل التأكيد\\\",\\\"digits\\\":\\\"{_field_} يجب ان تحتوي فقط على ارقام والا يزيد عددها عن {length} رقم\\\",\\\"dimensions\\\":\\\"{_field_} يجب ان تكون بمقاس {width} بكسل في {height} بكسل\\\",\\\"email\\\":\\\"{_field_} يجب ان يكون بريدا اليكتروني صحيح\\\",\\\"excluded\\\":\\\"الحقل {_field_} غير صحيح\\\",\\\"ext\\\":\\\"نوع ملف {_field_} غير صحيح\\\",\\\"image\\\":\\\"{_field_} يجب ان تكون صورة\\\",\\\"integer\\\":\\\"الحقل {_field_} يجب ان يكون عدداً صحيحاً\\\",\\\"length\\\":\\\"حقل {_field_} يجب الا يزيد عن {length}\\\",\\\"max_value\\\":\\\"قيمة الحقل {_field_} يجب ان تكون اصغر من {min} او تساويها\\\",\\\"max\\\":\\\"الحقل {_field_} يجب ان يحتوي على {length} حروف على الأكثر\\\",\\\"mimes\\\":\\\"نوع ملف {_field_} غير صحيح\\\",\\\"min_value\\\":\\\"قيمة الحقل {_field_} يجب ان تكون اكبر من {min} او تساويها\\\",\\\"min\\\":\\\"الحقل {_field_} يجب ان يحتوي على {length} حروف على الأقل\\\",\\\"numeric\\\":\\\"{_field_} يمكن ان يحتوي فقط على ارقام\\\",\\\"oneOf\\\":\\\"الحقل {_field_} يجب ان يكون قيمة صحيحة\\\",\\\"regex\\\":\\\"الحقل {_field_} غير صحيح\\\",\\\"required\\\":\\\"{_field_} مطلوب\\\",\\\"required_if\\\":\\\"حقل {_field_} مطلوب\\\",\\\"size\\\":\\\"{_field_} يجب ان يكون اقل من {size} كيلوبايت\\\",\\\"double\\\":\\\"يجب أن يكون الحقل {_field_} عددًا عشريًا صالحًا\\\"}}\");\n\n//# sourceURL=webpack:///./node_modules/vee-validate/dist/locale/ar.json?");

/***/ }),

/***/ "./node_modules/vee-validate/dist/locale/en.json":
/*!*******************************************************!*\
  !*** ./node_modules/vee-validate/dist/locale/en.json ***!
  \*******************************************************/
/*! exports provided: code, messages, default */
/***/ (function(module) {

eval("module.exports = JSON.parse(\"{\\\"code\\\":\\\"en\\\",\\\"messages\\\":{\\\"alpha\\\":\\\"The {_field_} field may only contain alphabetic characters\\\",\\\"alpha_num\\\":\\\"The {_field_} field may only contain alpha-numeric characters\\\",\\\"alpha_dash\\\":\\\"The {_field_} field may contain alpha-numeric characters as well as dashes and underscores\\\",\\\"alpha_spaces\\\":\\\"The {_field_} field may only contain alphabetic characters as well as spaces\\\",\\\"between\\\":\\\"The {_field_} field must be between {min} and {max}\\\",\\\"confirmed\\\":\\\"The {_field_} field confirmation does not match\\\",\\\"digits\\\":\\\"The {_field_} field must be numeric and exactly contain {length} digits\\\",\\\"dimensions\\\":\\\"The {_field_} field must be {width} pixels by {height} pixels\\\",\\\"email\\\":\\\"The {_field_} field must be a valid email\\\",\\\"excluded\\\":\\\"The {_field_} field is not a valid value\\\",\\\"ext\\\":\\\"The {_field_} field is not a valid file\\\",\\\"image\\\":\\\"The {_field_} field must be an image\\\",\\\"integer\\\":\\\"The {_field_} field must be an integer\\\",\\\"length\\\":\\\"The {_field_} field must be {length} long\\\",\\\"max_value\\\":\\\"The {_field_} field must be {max} or less\\\",\\\"max\\\":\\\"The {_field_} field may not be greater than {length} characters\\\",\\\"mimes\\\":\\\"The {_field_} field must have a valid file type\\\",\\\"min_value\\\":\\\"The {_field_} field must be {min} or more\\\",\\\"min\\\":\\\"The {_field_} field must be at least {length} characters\\\",\\\"numeric\\\":\\\"The {_field_} field may only contain numeric characters\\\",\\\"oneOf\\\":\\\"The {_field_} field is not a valid value\\\",\\\"regex\\\":\\\"The {_field_} field format is invalid\\\",\\\"required_if\\\":\\\"The {_field_} field is required\\\",\\\"required\\\":\\\"The {_field_} field is required\\\",\\\"size\\\":\\\"The {_field_} field size must be less than {size}KB\\\",\\\"double\\\":\\\"The {_field_} field must be a valid decimal\\\"}}\");\n\n//# sourceURL=webpack:///./node_modules/vee-validate/dist/locale/en.json?");

/***/ }),

/***/ "./node_modules/vee-validate/dist/vee-validate.esm.js":
/*!************************************************************!*\
  !*** ./node_modules/vee-validate/dist/vee-validate.esm.js ***!
  \************************************************************/
/*! exports provided: ValidationObserver, ValidationProvider, configure, extend, localeChanged, localize, normalizeRules, setInteractionMode, validate, version, withValidation */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ValidationObserver\", function() { return ValidationObserver; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ValidationProvider\", function() { return ValidationProvider; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"configure\", function() { return configure; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extend\", function() { return extend; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"localeChanged\", function() { return localeChanged; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"localize\", function() { return localize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeRules\", function() { return normalizeRules; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setInteractionMode\", function() { return setInteractionMode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validate\", function() { return validate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withValidation\", function() { return withValidation; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n/**\n  * vee-validate v3.4.5\n  * (c) 2020 Abdelrahman Awad\n  * @license MIT\n  */\n\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nfunction __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\n\nfunction isNaN(value) {\r\n    // NaN is the one value that does not equal itself.\r\n    // eslint-disable-next-line\r\n    return value !== value;\r\n}\r\nfunction isNullOrUndefined(value) {\r\n    return value === null || value === undefined;\r\n}\r\nfunction isEmptyArray(arr) {\r\n    return Array.isArray(arr) && arr.length === 0;\r\n}\r\nvar isObject = function (obj) {\r\n    return obj !== null && obj && typeof obj === 'object' && !Array.isArray(obj);\r\n};\r\n/**\r\n * A reference comparison function with NaN support\r\n */\r\nfunction isRefEqual(lhs, rhs) {\r\n    if (isNaN(lhs) && isNaN(rhs)) {\r\n        return true;\r\n    }\r\n    return lhs === rhs;\r\n}\r\n/**\r\n * Shallow object comparison.\r\n */\r\nfunction isEqual(lhs, rhs) {\r\n    if (lhs instanceof RegExp && rhs instanceof RegExp) {\r\n        return isEqual(lhs.source, rhs.source) && isEqual(lhs.flags, rhs.flags);\r\n    }\r\n    if (Array.isArray(lhs) && Array.isArray(rhs)) {\r\n        if (lhs.length !== rhs.length)\r\n            return false;\r\n        for (var i = 0; i < lhs.length; i++) {\r\n            if (!isEqual(lhs[i], rhs[i])) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n    // if both are objects, compare each key recursively.\r\n    if (isObject(lhs) && isObject(rhs)) {\r\n        return (Object.keys(lhs).every(function (key) {\r\n            return isEqual(lhs[key], rhs[key]);\r\n        }) &&\r\n            Object.keys(rhs).every(function (key) {\r\n                return isEqual(lhs[key], rhs[key]);\r\n            }));\r\n    }\r\n    return isRefEqual(lhs, rhs);\r\n}\r\n// Checks if a given value is not an empty string or null or undefined.\r\nfunction isSpecified(val) {\r\n    if (val === '') {\r\n        return false;\r\n    }\r\n    return !isNullOrUndefined(val);\r\n}\r\nfunction isCallable(fn) {\r\n    return typeof fn === 'function';\r\n}\r\nfunction isLocator(value) {\r\n    return isCallable(value) && !!value.__locatorRef;\r\n}\n\nfunction findIndex(arrayLike, predicate) {\r\n    var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);\r\n    if (isCallable(array.findIndex)) {\r\n        return array.findIndex(predicate);\r\n    }\r\n    /* istanbul ignore next */\r\n    for (var i = 0; i < array.length; i++) {\r\n        if (predicate(array[i], i)) {\r\n            return i;\r\n        }\r\n    }\r\n    /* istanbul ignore next */\r\n    return -1;\r\n}\r\n/**\r\n * finds the first element that satisfies the predicate callback, polyfills array.find\r\n */\r\nfunction find(arrayLike, predicate) {\r\n    var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);\r\n    var idx = findIndex(array, predicate);\r\n    return idx === -1 ? undefined : array[idx];\r\n}\r\nfunction includes(collection, item) {\r\n    return collection.indexOf(item) !== -1;\r\n}\r\n/**\r\n * Converts an array-like object to array, provides a simple polyfill for Array.from\r\n */\r\nfunction toArray(arrayLike) {\r\n    if (isCallable(Array.from)) {\r\n        return Array.from(arrayLike);\r\n    }\r\n    /* istanbul ignore next */\r\n    return _copyArray(arrayLike);\r\n}\r\n/* istanbul ignore next */\r\nfunction _copyArray(arrayLike) {\r\n    var array = [];\r\n    var length = arrayLike.length;\r\n    for (var i = 0; i < length; i++) {\r\n        array.push(arrayLike[i]);\r\n    }\r\n    return array;\r\n}\r\nfunction values(obj) {\r\n    if (isCallable(Object.values)) {\r\n        return Object.values(obj);\r\n    }\r\n    // fallback to keys()\r\n    /* istanbul ignore next */\r\n    return Object.keys(obj).map(function (k) { return obj[k]; });\r\n}\r\nfunction merge(target, source) {\r\n    Object.keys(source).forEach(function (key) {\r\n        if (isObject(source[key])) {\r\n            if (!target[key]) {\r\n                target[key] = {};\r\n            }\r\n            merge(target[key], source[key]);\r\n            return;\r\n        }\r\n        target[key] = source[key];\r\n    });\r\n    return target;\r\n}\n\nfunction createFlags() {\r\n    return {\r\n        untouched: true,\r\n        touched: false,\r\n        dirty: false,\r\n        pristine: true,\r\n        valid: false,\r\n        invalid: false,\r\n        validated: false,\r\n        pending: false,\r\n        required: false,\r\n        changed: false,\r\n        passed: false,\r\n        failed: false\r\n    };\r\n}\n\nfunction identity(x) {\r\n    return x;\r\n}\r\nfunction debounce(fn, wait, token) {\r\n    if (wait === void 0) { wait = 0; }\r\n    if (token === void 0) { token = { cancelled: false }; }\r\n    if (wait === 0) {\r\n        return fn;\r\n    }\r\n    var timeout;\r\n    return function () {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        var later = function () {\r\n            timeout = undefined;\r\n            // check if the fn call was cancelled.\r\n            if (!token.cancelled)\r\n                fn.apply(void 0, args);\r\n        };\r\n        // because we might want to use Node.js setTimout for SSR.\r\n        clearTimeout(timeout);\r\n        timeout = setTimeout(later, wait);\r\n    };\r\n}\n\n/**\r\n * Emits a warning to the console\r\n */\r\nfunction warn(message) {\r\n    console.warn(\"[vee-validate] \" + message);\r\n}\r\n/**\r\n * Replaces placeholder values in a string with their actual values\r\n */\r\nfunction interpolate(template, values) {\r\n    return template.replace(/{([^}]+)}/g, function (_, p) {\r\n        return p in values ? values[p] : \"{\" + p + \"}\";\r\n    });\r\n}\n\nvar RULES = {};\r\nfunction normalizeSchema(schema) {\r\n    var _a;\r\n    if ((_a = schema.params) === null || _a === void 0 ? void 0 : _a.length) {\r\n        schema.params = schema.params.map(function (param) {\r\n            if (typeof param === 'string') {\r\n                return { name: param };\r\n            }\r\n            return param;\r\n        });\r\n    }\r\n    return schema;\r\n}\r\nvar RuleContainer = /** @class */ (function () {\r\n    function RuleContainer() {\r\n    }\r\n    RuleContainer.extend = function (name, schema) {\r\n        // if rule already exists, overwrite it.\r\n        var rule = normalizeSchema(schema);\r\n        if (RULES[name]) {\r\n            RULES[name] = merge(RULES[name], schema);\r\n            return;\r\n        }\r\n        RULES[name] = __assign({ lazy: false, computesRequired: false }, rule);\r\n    };\r\n    RuleContainer.isLazy = function (name) {\r\n        var _a;\r\n        return !!((_a = RULES[name]) === null || _a === void 0 ? void 0 : _a.lazy);\r\n    };\r\n    RuleContainer.isRequireRule = function (name) {\r\n        var _a;\r\n        return !!((_a = RULES[name]) === null || _a === void 0 ? void 0 : _a.computesRequired);\r\n    };\r\n    RuleContainer.getRuleDefinition = function (ruleName) {\r\n        return RULES[ruleName];\r\n    };\r\n    return RuleContainer;\r\n}());\r\n/**\r\n * Adds a custom validator to the list of validation rules.\r\n */\r\nfunction extend(name, schema) {\r\n    // makes sure new rules are properly formatted.\r\n    guardExtend(name, schema);\r\n    // Full schema object.\r\n    if (typeof schema === 'object') {\r\n        RuleContainer.extend(name, schema);\r\n        return;\r\n    }\r\n    RuleContainer.extend(name, {\r\n        validate: schema\r\n    });\r\n}\r\n/**\r\n * Guards from extension violations.\r\n */\r\nfunction guardExtend(name, validator) {\r\n    if (isCallable(validator)) {\r\n        return;\r\n    }\r\n    if (isCallable(validator.validate)) {\r\n        return;\r\n    }\r\n    if (RuleContainer.getRuleDefinition(name)) {\r\n        return;\r\n    }\r\n    throw new Error(\"Extension Error: The validator '\" + name + \"' must be a function or have a 'validate' method.\");\r\n}\n\nvar DEFAULT_CONFIG = {\r\n    defaultMessage: \"{_field_} is not valid.\",\r\n    skipOptional: true,\r\n    classes: {\r\n        touched: 'touched',\r\n        untouched: 'untouched',\r\n        valid: 'valid',\r\n        invalid: 'invalid',\r\n        pristine: 'pristine',\r\n        dirty: 'dirty' // control has been interacted with\r\n    },\r\n    bails: true,\r\n    mode: 'aggressive',\r\n    useConstraintAttrs: true\r\n};\r\nvar currentConfig = __assign({}, DEFAULT_CONFIG);\r\nvar getConfig = function () { return currentConfig; };\r\nvar setConfig = function (newConf) {\r\n    currentConfig = __assign(__assign({}, currentConfig), newConf);\r\n};\r\nvar configure = function (cfg) {\r\n    setConfig(cfg);\r\n};\n\n/**\r\n * Normalizes the given rules expression.\r\n */\r\nfunction normalizeRules(rules) {\r\n    // if falsy value return an empty object.\r\n    var acc = {};\r\n    Object.defineProperty(acc, '_$$isNormalized', {\r\n        value: true,\r\n        writable: false,\r\n        enumerable: false,\r\n        configurable: false\r\n    });\r\n    if (!rules) {\r\n        return acc;\r\n    }\r\n    // Object is already normalized, skip.\r\n    if (isObject(rules) && rules._$$isNormalized) {\r\n        return rules;\r\n    }\r\n    if (isObject(rules)) {\r\n        return Object.keys(rules).reduce(function (prev, curr) {\r\n            var params = [];\r\n            if (rules[curr] === true) {\r\n                params = [];\r\n            }\r\n            else if (Array.isArray(rules[curr])) {\r\n                params = rules[curr];\r\n            }\r\n            else if (isObject(rules[curr])) {\r\n                params = rules[curr];\r\n            }\r\n            else {\r\n                params = [rules[curr]];\r\n            }\r\n            if (rules[curr] !== false) {\r\n                prev[curr] = buildParams(curr, params);\r\n            }\r\n            return prev;\r\n        }, acc);\r\n    }\r\n    /* istanbul ignore if */\r\n    if (typeof rules !== 'string') {\r\n        warn('rules must be either a string or an object.');\r\n        return acc;\r\n    }\r\n    return rules.split('|').reduce(function (prev, rule) {\r\n        var parsedRule = parseRule(rule);\r\n        if (!parsedRule.name) {\r\n            return prev;\r\n        }\r\n        prev[parsedRule.name] = buildParams(parsedRule.name, parsedRule.params);\r\n        return prev;\r\n    }, acc);\r\n}\r\nfunction buildParams(ruleName, provided) {\r\n    var ruleSchema = RuleContainer.getRuleDefinition(ruleName);\r\n    if (!ruleSchema) {\r\n        return provided;\r\n    }\r\n    var params = {};\r\n    if (!ruleSchema.params && !Array.isArray(provided)) {\r\n        throw new Error('You provided an object params to a rule that has no defined schema.');\r\n    }\r\n    // Rule probably uses an array for their args, keep it as is.\r\n    if (Array.isArray(provided) && !ruleSchema.params) {\r\n        return provided;\r\n    }\r\n    var definedParams;\r\n    // collect the params schema.\r\n    if (!ruleSchema.params || (ruleSchema.params.length < provided.length && Array.isArray(provided))) {\r\n        var lastDefinedParam_1;\r\n        // collect any additional parameters in the last item.\r\n        definedParams = provided.map(function (_, idx) {\r\n            var _a;\r\n            var param = (_a = ruleSchema.params) === null || _a === void 0 ? void 0 : _a[idx];\r\n            lastDefinedParam_1 = param || lastDefinedParam_1;\r\n            if (!param) {\r\n                param = lastDefinedParam_1;\r\n            }\r\n            return param;\r\n        });\r\n    }\r\n    else {\r\n        definedParams = ruleSchema.params;\r\n    }\r\n    // Match the provided array length with a temporary schema.\r\n    for (var i = 0; i < definedParams.length; i++) {\r\n        var options = definedParams[i];\r\n        var value = options.default;\r\n        // if the provided is an array, map element value.\r\n        if (Array.isArray(provided)) {\r\n            if (i in provided) {\r\n                value = provided[i];\r\n            }\r\n        }\r\n        else {\r\n            // If the param exists in the provided object.\r\n            if (options.name in provided) {\r\n                value = provided[options.name];\r\n                // if the provided is the first param value.\r\n            }\r\n            else if (definedParams.length === 1) {\r\n                value = provided;\r\n            }\r\n        }\r\n        // if the param is a target, resolve the target value.\r\n        if (options.isTarget) {\r\n            value = createLocator(value, options.cast);\r\n        }\r\n        // A target param using interpolation\r\n        if (typeof value === 'string' && value[0] === '@') {\r\n            value = createLocator(value.slice(1), options.cast);\r\n        }\r\n        // If there is a transformer defined.\r\n        if (!isLocator(value) && options.cast) {\r\n            value = options.cast(value);\r\n        }\r\n        // already been set, probably multiple values.\r\n        if (params[options.name]) {\r\n            params[options.name] = Array.isArray(params[options.name]) ? params[options.name] : [params[options.name]];\r\n            params[options.name].push(value);\r\n        }\r\n        else {\r\n            // set the value.\r\n            params[options.name] = value;\r\n        }\r\n    }\r\n    return params;\r\n}\r\n/**\r\n * Parses a rule string expression.\r\n */\r\nvar parseRule = function (rule) {\r\n    var params = [];\r\n    var name = rule.split(':')[0];\r\n    if (includes(rule, ':')) {\r\n        params = rule\r\n            .split(':')\r\n            .slice(1)\r\n            .join(':')\r\n            .split(',');\r\n    }\r\n    return { name: name, params: params };\r\n};\r\nfunction createLocator(value, castFn) {\r\n    var locator = function (crossTable) {\r\n        var val = crossTable[value];\r\n        return castFn ? castFn(val) : val;\r\n    };\r\n    locator.__locatorRef = value;\r\n    return locator;\r\n}\r\nfunction extractLocators(params) {\r\n    if (Array.isArray(params)) {\r\n        return params.filter(function (param) {\r\n            return isLocator(param) || (typeof param === 'string' && param[0] === '@');\r\n        });\r\n    }\r\n    return Object.keys(params)\r\n        .filter(function (key) { return isLocator(params[key]); })\r\n        .map(function (key) { return params[key]; });\r\n}\n\n/**\r\n * Validates a value against the rules.\r\n */\r\nfunction validate(value, rules, options) {\r\n    if (options === void 0) { options = {}; }\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var shouldBail, skipIfEmpty, field, result, errors, failedRules, regenerateMap;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    shouldBail = options === null || options === void 0 ? void 0 : options.bails;\r\n                    skipIfEmpty = options === null || options === void 0 ? void 0 : options.skipIfEmpty;\r\n                    field = {\r\n                        name: (options === null || options === void 0 ? void 0 : options.name) || '{field}',\r\n                        rules: normalizeRules(rules),\r\n                        bails: shouldBail !== null && shouldBail !== void 0 ? shouldBail : true,\r\n                        skipIfEmpty: skipIfEmpty !== null && skipIfEmpty !== void 0 ? skipIfEmpty : true,\r\n                        forceRequired: false,\r\n                        crossTable: (options === null || options === void 0 ? void 0 : options.values) || {},\r\n                        names: (options === null || options === void 0 ? void 0 : options.names) || {},\r\n                        customMessages: (options === null || options === void 0 ? void 0 : options.customMessages) || {}\r\n                    };\r\n                    return [4 /*yield*/, _validate(field, value, options)];\r\n                case 1:\r\n                    result = _a.sent();\r\n                    errors = [];\r\n                    failedRules = {};\r\n                    regenerateMap = {};\r\n                    result.errors.forEach(function (e) {\r\n                        var msg = e.msg();\r\n                        errors.push(msg);\r\n                        failedRules[e.rule] = msg;\r\n                        regenerateMap[e.rule] = e.msg;\r\n                    });\r\n                    return [2 /*return*/, {\r\n                            valid: result.valid,\r\n                            errors: errors,\r\n                            failedRules: failedRules,\r\n                            regenerateMap: regenerateMap\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Starts the validation process.\r\n */\r\nfunction _validate(field, value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).isInitial, isInitial = _b === void 0 ? false : _b;\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var _c, shouldSkip, errors, rules, length, i, rule, result;\r\n        return __generator(this, function (_d) {\r\n            switch (_d.label) {\r\n                case 0: return [4 /*yield*/, _shouldSkip(field, value)];\r\n                case 1:\r\n                    _c = _d.sent(), shouldSkip = _c.shouldSkip, errors = _c.errors;\r\n                    if (shouldSkip) {\r\n                        return [2 /*return*/, {\r\n                                valid: !errors.length,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    rules = Object.keys(field.rules).filter(function (rule) { return !RuleContainer.isRequireRule(rule); });\r\n                    length = rules.length;\r\n                    i = 0;\r\n                    _d.label = 2;\r\n                case 2:\r\n                    if (!(i < length)) return [3 /*break*/, 5];\r\n                    if (isInitial && RuleContainer.isLazy(rules[i])) {\r\n                        return [3 /*break*/, 4];\r\n                    }\r\n                    rule = rules[i];\r\n                    return [4 /*yield*/, _test(field, value, {\r\n                            name: rule,\r\n                            params: field.rules[rule]\r\n                        })];\r\n                case 3:\r\n                    result = _d.sent();\r\n                    if (!result.valid && result.error) {\r\n                        errors.push(result.error);\r\n                        if (field.bails) {\r\n                            return [2 /*return*/, {\r\n                                    valid: false,\r\n                                    errors: errors\r\n                                }];\r\n                        }\r\n                    }\r\n                    _d.label = 4;\r\n                case 4:\r\n                    i++;\r\n                    return [3 /*break*/, 2];\r\n                case 5: return [2 /*return*/, {\r\n                        valid: !errors.length,\r\n                        errors: errors\r\n                    }];\r\n            }\r\n        });\r\n    });\r\n}\r\nfunction _shouldSkip(field, value) {\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var requireRules, length, errors, isEmpty, isEmptyAndOptional, isRequired, i, rule, result;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    requireRules = Object.keys(field.rules).filter(RuleContainer.isRequireRule);\r\n                    length = requireRules.length;\r\n                    errors = [];\r\n                    isEmpty = isNullOrUndefined(value) || value === '' || isEmptyArray(value);\r\n                    isEmptyAndOptional = isEmpty && field.skipIfEmpty;\r\n                    isRequired = false;\r\n                    i = 0;\r\n                    _a.label = 1;\r\n                case 1:\r\n                    if (!(i < length)) return [3 /*break*/, 4];\r\n                    rule = requireRules[i];\r\n                    return [4 /*yield*/, _test(field, value, {\r\n                            name: rule,\r\n                            params: field.rules[rule]\r\n                        })];\r\n                case 2:\r\n                    result = _a.sent();\r\n                    if (!isObject(result)) {\r\n                        throw new Error('Require rules has to return an object (see docs)');\r\n                    }\r\n                    if (result.required) {\r\n                        isRequired = true;\r\n                    }\r\n                    if (!result.valid && result.error) {\r\n                        errors.push(result.error);\r\n                        // Exit early as the field is required and failed validation.\r\n                        if (field.bails) {\r\n                            return [2 /*return*/, {\r\n                                    shouldSkip: true,\r\n                                    errors: errors\r\n                                }];\r\n                        }\r\n                    }\r\n                    _a.label = 3;\r\n                case 3:\r\n                    i++;\r\n                    return [3 /*break*/, 1];\r\n                case 4:\r\n                    if (isEmpty && !isRequired && !field.skipIfEmpty) {\r\n                        return [2 /*return*/, {\r\n                                shouldSkip: false,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    // field is configured to run through the pipeline regardless\r\n                    if (!field.bails && !isEmptyAndOptional) {\r\n                        return [2 /*return*/, {\r\n                                shouldSkip: false,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    // skip if the field is not required and has an empty value.\r\n                    return [2 /*return*/, {\r\n                            shouldSkip: !isRequired && isEmpty,\r\n                            errors: errors\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Tests a single input value against a rule.\r\n */\r\nfunction _test(field, value, rule) {\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var ruleSchema, normalizedValue, params, result, values_1;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    ruleSchema = RuleContainer.getRuleDefinition(rule.name);\r\n                    if (!ruleSchema || !ruleSchema.validate) {\r\n                        throw new Error(\"No such validator '\" + rule.name + \"' exists.\");\r\n                    }\r\n                    normalizedValue = ruleSchema.castValue ? ruleSchema.castValue(value) : value;\r\n                    params = fillTargetValues(rule.params, field.crossTable);\r\n                    return [4 /*yield*/, ruleSchema.validate(normalizedValue, params)];\r\n                case 1:\r\n                    result = _a.sent();\r\n                    if (typeof result === 'string') {\r\n                        values_1 = __assign(__assign({}, (params || {})), { _field_: field.name, _value_: value, _rule_: rule.name });\r\n                        return [2 /*return*/, {\r\n                                valid: false,\r\n                                error: { rule: rule.name, msg: function () { return interpolate(result, values_1); } }\r\n                            }];\r\n                    }\r\n                    if (!isObject(result)) {\r\n                        result = { valid: result };\r\n                    }\r\n                    return [2 /*return*/, {\r\n                            valid: result.valid,\r\n                            required: result.required,\r\n                            error: result.valid ? undefined : _generateFieldError(field, value, ruleSchema, rule.name, params)\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Generates error messages.\r\n */\r\nfunction _generateFieldError(field, value, ruleSchema, ruleName, params) {\r\n    var _a;\r\n    var message = (_a = field.customMessages[ruleName]) !== null && _a !== void 0 ? _a : ruleSchema.message;\r\n    var ruleTargets = _getRuleTargets(field, ruleSchema, ruleName);\r\n    var _b = _getUserTargets(field, ruleSchema, ruleName, message), userTargets = _b.userTargets, userMessage = _b.userMessage;\r\n    var values = __assign(__assign(__assign(__assign({}, (params || {})), { _field_: field.name, _value_: value, _rule_: ruleName }), ruleTargets), userTargets);\r\n    return {\r\n        msg: function () { return _normalizeMessage(userMessage || getConfig().defaultMessage, field.name, values); },\r\n        rule: ruleName\r\n    };\r\n}\r\nfunction _getRuleTargets(field, ruleSchema, ruleName) {\r\n    var params = ruleSchema.params;\r\n    if (!params) {\r\n        return {};\r\n    }\r\n    var numTargets = params.filter(function (param) { return param.isTarget; }).length;\r\n    if (numTargets <= 0) {\r\n        return {};\r\n    }\r\n    var names = {};\r\n    var ruleConfig = field.rules[ruleName];\r\n    if (!Array.isArray(ruleConfig) && isObject(ruleConfig)) {\r\n        ruleConfig = params.map(function (param) {\r\n            return ruleConfig[param.name];\r\n        });\r\n    }\r\n    for (var index = 0; index < params.length; index++) {\r\n        var param = params[index];\r\n        var key = ruleConfig[index];\r\n        if (!isLocator(key)) {\r\n            continue;\r\n        }\r\n        key = key.__locatorRef;\r\n        var name_1 = field.names[key] || key;\r\n        names[param.name] = name_1;\r\n        names[\"_\" + param.name + \"_\"] = field.crossTable[key];\r\n    }\r\n    return names;\r\n}\r\nfunction _getUserTargets(field, ruleSchema, ruleName, userMessage) {\r\n    var userTargets = {};\r\n    var rules = field.rules[ruleName];\r\n    var params = ruleSchema.params || [];\r\n    // early return if no rules\r\n    if (!rules) {\r\n        return {};\r\n    }\r\n    // check all rules to convert targets\r\n    Object.keys(rules).forEach(function (key, index) {\r\n        // get the rule\r\n        var rule = rules[key];\r\n        if (!isLocator(rule)) {\r\n            return {};\r\n        }\r\n        // get associated parameter\r\n        var param = params[index];\r\n        if (!param) {\r\n            return {};\r\n        }\r\n        // grab the name of the target\r\n        var name = rule.__locatorRef;\r\n        userTargets[param.name] = field.names[name] || name;\r\n        userTargets[\"_\" + param.name + \"_\"] = field.crossTable[name];\r\n    });\r\n    return {\r\n        userTargets: userTargets,\r\n        userMessage: userMessage\r\n    };\r\n}\r\nfunction _normalizeMessage(template, field, values) {\r\n    if (typeof template === 'function') {\r\n        return template(field, values);\r\n    }\r\n    return interpolate(template, __assign(__assign({}, values), { _field_: field }));\r\n}\r\nfunction fillTargetValues(params, crossTable) {\r\n    if (Array.isArray(params)) {\r\n        return params.map(function (param) {\r\n            var targetPart = typeof param === 'string' && param[0] === '@' ? param.slice(1) : param;\r\n            if (targetPart in crossTable) {\r\n                return crossTable[targetPart];\r\n            }\r\n            return param;\r\n        });\r\n    }\r\n    var values = {};\r\n    var normalize = function (value) {\r\n        if (isLocator(value)) {\r\n            return value(crossTable);\r\n        }\r\n        return value;\r\n    };\r\n    Object.keys(params).forEach(function (param) {\r\n        values[param] = normalize(params[param]);\r\n    });\r\n    return values;\r\n}\n\nvar aggressive = function () { return ({\r\n    on: ['input', 'blur']\r\n}); };\r\nvar lazy = function () { return ({\r\n    on: ['change', 'blur']\r\n}); };\r\nvar eager = function (_a) {\r\n    var errors = _a.errors;\r\n    if (errors.length) {\r\n        return {\r\n            on: ['input', 'change']\r\n        };\r\n    }\r\n    return {\r\n        on: ['change', 'blur']\r\n    };\r\n};\r\nvar passive = function () { return ({\r\n    on: []\r\n}); };\r\nvar modes = {\r\n    aggressive: aggressive,\r\n    eager: eager,\r\n    passive: passive,\r\n    lazy: lazy\r\n};\r\nvar setInteractionMode = function (mode, implementation) {\r\n    setConfig({ mode: mode });\r\n    if (!implementation) {\r\n        return;\r\n    }\r\n    if (!isCallable(implementation)) {\r\n        throw new Error('A mode implementation must be a function');\r\n    }\r\n    modes[mode] = implementation;\r\n};\n\nvar EVENT_BUS = new vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\r\nfunction localeChanged() {\r\n    EVENT_BUS.$emit('change:locale');\r\n}\n\nvar Dictionary = /** @class */ (function () {\r\n    function Dictionary(locale, dictionary) {\r\n        this.container = {};\r\n        this.locale = locale;\r\n        this.merge(dictionary);\r\n    }\r\n    Dictionary.prototype.resolve = function (field, rule, values) {\r\n        return this.format(this.locale, field, rule, values);\r\n    };\r\n    Dictionary.prototype.format = function (locale, field, rule, values) {\r\n        var _a, _b, _c, _d, _e, _f, _g, _h;\r\n        var message;\r\n        // find if specific message for that field was specified.\r\n        var fieldContainer = (_c = (_b = (_a = this.container[locale]) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[field]) === null || _c === void 0 ? void 0 : _c[rule];\r\n        var messageContainer = (_e = (_d = this.container[locale]) === null || _d === void 0 ? void 0 : _d.messages) === null || _e === void 0 ? void 0 : _e[rule];\r\n        message = fieldContainer || messageContainer || '';\r\n        if (!message) {\r\n            message = '{_field_} is not valid';\r\n        }\r\n        field = (_h = (_g = (_f = this.container[locale]) === null || _f === void 0 ? void 0 : _f.names) === null || _g === void 0 ? void 0 : _g[field]) !== null && _h !== void 0 ? _h : field;\r\n        return isCallable(message) ? message(field, values) : interpolate(message, __assign(__assign({}, values), { _field_: field }));\r\n    };\r\n    Dictionary.prototype.merge = function (dictionary) {\r\n        merge(this.container, dictionary);\r\n    };\r\n    Dictionary.prototype.hasRule = function (name) {\r\n        var _a, _b;\r\n        return !!((_b = (_a = this.container[this.locale]) === null || _a === void 0 ? void 0 : _a.messages) === null || _b === void 0 ? void 0 : _b[name]);\r\n    };\r\n    return Dictionary;\r\n}());\r\nvar DICTIONARY;\r\nfunction localize(locale, dictionary) {\r\n    var _a;\r\n    if (!DICTIONARY) {\r\n        DICTIONARY = new Dictionary('en', {});\r\n        setConfig({\r\n            defaultMessage: function (field, values) {\r\n                return DICTIONARY.resolve(field, values === null || values === void 0 ? void 0 : values._rule_, values || {});\r\n            }\r\n        });\r\n    }\r\n    if (typeof locale === 'string') {\r\n        DICTIONARY.locale = locale;\r\n        if (dictionary) {\r\n            DICTIONARY.merge((_a = {}, _a[locale] = dictionary, _a));\r\n        }\r\n        localeChanged();\r\n        return;\r\n    }\r\n    DICTIONARY.merge(locale);\r\n}\n\nvar isEvent = function (evt) {\r\n    if (!evt) {\r\n        return false;\r\n    }\r\n    if (typeof Event !== 'undefined' && isCallable(Event) && evt instanceof Event) {\r\n        return true;\r\n    }\r\n    // this is for IE\r\n    /* istanbul ignore next */\r\n    if (evt && evt.srcElement) {\r\n        return true;\r\n    }\r\n    return false;\r\n};\r\nfunction normalizeEventValue(value) {\r\n    var _a, _b;\r\n    if (!isEvent(value)) {\r\n        return value;\r\n    }\r\n    var input = value.target;\r\n    if (input.type === 'file' && input.files) {\r\n        return toArray(input.files);\r\n    }\r\n    // If the input has a `v-model.number` modifier applied.\r\n    if ((_a = input._vModifiers) === null || _a === void 0 ? void 0 : _a.number) {\r\n        // as per the spec the v-model.number uses parseFloat\r\n        var valueAsNumber = parseFloat(input.value);\r\n        if (isNaN(valueAsNumber)) {\r\n            return input.value;\r\n        }\r\n        return valueAsNumber;\r\n    }\r\n    if ((_b = input._vModifiers) === null || _b === void 0 ? void 0 : _b.trim) {\r\n        var trimmedValue = typeof input.value === 'string' ? input.value.trim() : input.value;\r\n        return trimmedValue;\r\n    }\r\n    return input.value;\r\n}\n\nvar isTextInput = function (vnode) {\r\n    var _a;\r\n    var attrs = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) || vnode.elm;\r\n    // it will fallback to being a text input per browsers spec.\r\n    if (vnode.tag === 'input' && (!attrs || !attrs.type)) {\r\n        return true;\r\n    }\r\n    if (vnode.tag === 'textarea') {\r\n        return true;\r\n    }\r\n    return includes(['text', 'password', 'search', 'email', 'tel', 'url', 'number'], attrs === null || attrs === void 0 ? void 0 : attrs.type);\r\n};\r\n// export const isCheckboxOrRadioInput = (vnode: VNode): boolean => {\r\n//   const attrs = (vnode.data && vnode.data.attrs) || vnode.elm;\r\n//   return includes(['radio', 'checkbox'], attrs && attrs.type);\r\n// };\r\n// Gets the model object on the vnode.\r\nfunction findModel(vnode) {\r\n    if (!vnode.data) {\r\n        return undefined;\r\n    }\r\n    // Component Model\r\n    // THIS IS NOT TYPED IN OFFICIAL VUE TYPINGS\r\n    // eslint-disable-next-line\r\n    var nonStandardVNodeData = vnode.data;\r\n    if ('model' in nonStandardVNodeData) {\r\n        return nonStandardVNodeData.model;\r\n    }\r\n    if (!vnode.data.directives) {\r\n        return undefined;\r\n    }\r\n    return find(vnode.data.directives, function (d) { return d.name === 'model'; });\r\n}\r\nfunction findValue(vnode) {\r\n    var _a, _b;\r\n    var model = findModel(vnode);\r\n    if (model) {\r\n        return { value: model.value };\r\n    }\r\n    var config = findModelConfig(vnode);\r\n    var prop = (config === null || config === void 0 ? void 0 : config.prop) || 'value';\r\n    if (((_a = vnode.componentOptions) === null || _a === void 0 ? void 0 : _a.propsData) && prop in vnode.componentOptions.propsData) {\r\n        var propsDataWithValue = vnode.componentOptions.propsData;\r\n        return { value: propsDataWithValue[prop] };\r\n    }\r\n    if (((_b = vnode.data) === null || _b === void 0 ? void 0 : _b.domProps) && 'value' in vnode.data.domProps) {\r\n        return { value: vnode.data.domProps.value };\r\n    }\r\n    return undefined;\r\n}\r\nfunction extractChildren(vnode) {\r\n    if (Array.isArray(vnode)) {\r\n        return vnode;\r\n    }\r\n    if (Array.isArray(vnode.children)) {\r\n        return vnode.children;\r\n    }\r\n    /* istanbul ignore next */\r\n    if (vnode.componentOptions && Array.isArray(vnode.componentOptions.children)) {\r\n        return vnode.componentOptions.children;\r\n    }\r\n    return [];\r\n}\r\nfunction findInputNodes(vnode) {\r\n    if (!Array.isArray(vnode) && findValue(vnode) !== undefined) {\r\n        return [vnode];\r\n    }\r\n    var children = extractChildren(vnode);\r\n    return children.reduce(function (nodes, node) {\r\n        var candidates = findInputNodes(node);\r\n        if (candidates.length) {\r\n            nodes.push.apply(nodes, candidates);\r\n        }\r\n        return nodes;\r\n    }, []);\r\n}\r\n// Resolves v-model config if exists.\r\nfunction findModelConfig(vnode) {\r\n    /* istanbul ignore next */\r\n    if (!vnode.componentOptions)\r\n        return null;\r\n    // This is also not typed in the standard Vue TS.\r\n    return vnode.componentOptions.Ctor.options.model;\r\n}\r\n// Adds a listener to vnode listener object.\r\nfunction mergeVNodeListeners(obj, eventName, handler) {\r\n    // no listener at all.\r\n    if (isNullOrUndefined(obj[eventName])) {\r\n        obj[eventName] = [handler];\r\n        return;\r\n    }\r\n    // Is an invoker.\r\n    if (isCallable(obj[eventName]) && obj[eventName].fns) {\r\n        var invoker = obj[eventName];\r\n        invoker.fns = Array.isArray(invoker.fns) ? invoker.fns : [invoker.fns];\r\n        if (!includes(invoker.fns, handler)) {\r\n            invoker.fns.push(handler);\r\n        }\r\n        return;\r\n    }\r\n    if (isCallable(obj[eventName])) {\r\n        var prev = obj[eventName];\r\n        obj[eventName] = [prev];\r\n    }\r\n    if (Array.isArray(obj[eventName]) && !includes(obj[eventName], handler)) {\r\n        obj[eventName].push(handler);\r\n    }\r\n}\r\n// Adds a listener to a native HTML vnode.\r\nfunction addNativeNodeListener(node, eventName, handler) {\r\n    /* istanbul ignore next */\r\n    if (!node.data) {\r\n        node.data = {};\r\n    }\r\n    if (isNullOrUndefined(node.data.on)) {\r\n        node.data.on = {};\r\n    }\r\n    mergeVNodeListeners(node.data.on, eventName, handler);\r\n}\r\n// Adds a listener to a Vue component vnode.\r\nfunction addComponentNodeListener(node, eventName, handler) {\r\n    /* istanbul ignore next */\r\n    if (!node.componentOptions) {\r\n        return;\r\n    }\r\n    /* istanbul ignore next */\r\n    if (!node.componentOptions.listeners) {\r\n        node.componentOptions.listeners = {};\r\n    }\r\n    mergeVNodeListeners(node.componentOptions.listeners, eventName, handler);\r\n}\r\nfunction addVNodeListener(vnode, eventName, handler) {\r\n    if (vnode.componentOptions) {\r\n        addComponentNodeListener(vnode, eventName, handler);\r\n        return;\r\n    }\r\n    addNativeNodeListener(vnode, eventName, handler);\r\n}\r\n// Determines if `change` should be used over `input` for listeners.\r\nfunction getInputEventName(vnode, model) {\r\n    var _a;\r\n    // Is a component.\r\n    if (vnode.componentOptions) {\r\n        var event_1 = (findModelConfig(vnode) || { event: 'input' }).event;\r\n        return event_1;\r\n    }\r\n    // Lazy Models typically use change event\r\n    if ((_a = model === null || model === void 0 ? void 0 : model.modifiers) === null || _a === void 0 ? void 0 : _a.lazy) {\r\n        return 'change';\r\n    }\r\n    // is a textual-type input.\r\n    if (isTextInput(vnode)) {\r\n        return 'input';\r\n    }\r\n    return 'change';\r\n}\r\nfunction isHTMLNode(node) {\r\n    return includes(['input', 'select', 'textarea'], node.tag);\r\n}\r\n// TODO: Type this one properly.\r\nfunction normalizeSlots(slots, ctx) {\r\n    var acc = [];\r\n    return Object.keys(slots).reduce(function (arr, key) {\r\n        slots[key].forEach(function (vnode) {\r\n            if (!vnode.context) {\r\n                slots[key].context = ctx;\r\n                if (!vnode.data) {\r\n                    vnode.data = {};\r\n                }\r\n                vnode.data.slot = key;\r\n            }\r\n        });\r\n        return arr.concat(slots[key]);\r\n    }, acc);\r\n}\r\nfunction resolveTextualRules(vnode) {\r\n    var _a;\r\n    var attrs = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs;\r\n    var rules = {};\r\n    if (!attrs)\r\n        return rules;\r\n    if (attrs.type === 'email' && RuleContainer.getRuleDefinition('email')) {\r\n        rules.email = ['multiple' in attrs];\r\n    }\r\n    if (attrs.pattern && RuleContainer.getRuleDefinition('regex')) {\r\n        rules.regex = attrs.pattern;\r\n    }\r\n    if (attrs.maxlength >= 0 && RuleContainer.getRuleDefinition('max')) {\r\n        rules.max = attrs.maxlength;\r\n    }\r\n    if (attrs.minlength >= 0 && RuleContainer.getRuleDefinition('min')) {\r\n        rules.min = attrs.minlength;\r\n    }\r\n    if (attrs.type === 'number') {\r\n        if (isSpecified(attrs.min) && RuleContainer.getRuleDefinition('min_value')) {\r\n            rules.min_value = Number(attrs.min);\r\n        }\r\n        if (isSpecified(attrs.max) && RuleContainer.getRuleDefinition('max_value')) {\r\n            rules.max_value = Number(attrs.max);\r\n        }\r\n    }\r\n    return rules;\r\n}\r\nfunction resolveRules(vnode) {\r\n    var _a;\r\n    var htmlTags = ['input', 'select', 'textarea'];\r\n    var attrs = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs;\r\n    if (!includes(htmlTags, vnode.tag) || !attrs) {\r\n        return {};\r\n    }\r\n    var rules = {};\r\n    if ('required' in attrs && attrs.required !== false && RuleContainer.getRuleDefinition('required')) {\r\n        rules.required = attrs.type === 'checkbox' ? [true] : true;\r\n    }\r\n    if (isTextInput(vnode)) {\r\n        return normalizeRules(__assign(__assign({}, rules), resolveTextualRules(vnode)));\r\n    }\r\n    return normalizeRules(rules);\r\n}\r\nfunction normalizeChildren(context, slotProps) {\r\n    if (context.$scopedSlots.default) {\r\n        return context.$scopedSlots.default(slotProps) || [];\r\n    }\r\n    return context.$slots.default || [];\r\n}\n\n/**\r\n * Determines if a provider needs to run validation.\r\n */\r\nfunction shouldValidate(ctx, value) {\r\n    // when an immediate/initial validation is needed and wasn't done before.\r\n    if (!ctx._ignoreImmediate && ctx.immediate) {\r\n        return true;\r\n    }\r\n    // when the value changes for whatever reason.\r\n    if (!isRefEqual(ctx.value, value) && ctx.normalizedEvents.length) {\r\n        return true;\r\n    }\r\n    // when it needs validation due to props/cross-fields changes.\r\n    if (ctx._needsValidation) {\r\n        return true;\r\n    }\r\n    // when the initial value is undefined and the field wasn't rendered yet.\r\n    if (!ctx.initialized && value === undefined) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction createValidationCtx(ctx) {\r\n    return __assign(__assign({}, ctx.flags), { errors: ctx.errors, classes: ctx.classes, failedRules: ctx.failedRules, reset: function () { return ctx.reset(); }, validate: function () {\r\n            var args = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                args[_i] = arguments[_i];\r\n            }\r\n            return ctx.validate.apply(ctx, args);\r\n        }, ariaInput: {\r\n            'aria-invalid': ctx.flags.invalid ? 'true' : 'false',\r\n            'aria-required': ctx.isRequired ? 'true' : 'false',\r\n            'aria-errormessage': \"vee_\" + ctx.id\r\n        }, ariaMsg: {\r\n            id: \"vee_\" + ctx.id,\r\n            'aria-live': ctx.errors.length ? 'assertive' : 'off'\r\n        } });\r\n}\r\nfunction onRenderUpdate(vm, value) {\r\n    if (!vm.initialized) {\r\n        vm.initialValue = value;\r\n    }\r\n    var validateNow = shouldValidate(vm, value);\r\n    vm._needsValidation = false;\r\n    vm.value = value;\r\n    vm._ignoreImmediate = true;\r\n    if (!validateNow) {\r\n        return;\r\n    }\r\n    var validate = function () {\r\n        if (vm.immediate || vm.flags.validated) {\r\n            return triggerThreadSafeValidation(vm);\r\n        }\r\n        vm.validateSilent();\r\n    };\r\n    if (vm.initialized) {\r\n        validate();\r\n        return;\r\n    }\r\n    vm.$once('hook:mounted', function () { return validate(); });\r\n}\r\nfunction computeModeSetting(ctx) {\r\n    var compute = (isCallable(ctx.mode) ? ctx.mode : modes[ctx.mode]);\r\n    return compute(ctx);\r\n}\r\nfunction triggerThreadSafeValidation(vm) {\r\n    var pendingPromise = vm.validateSilent();\r\n    // avoids race conditions between successive validations.\r\n    vm._pendingValidation = pendingPromise;\r\n    return pendingPromise.then(function (result) {\r\n        if (pendingPromise === vm._pendingValidation) {\r\n            vm.applyResult(result);\r\n            vm._pendingValidation = undefined;\r\n        }\r\n        return result;\r\n    });\r\n}\r\n// Creates the common handlers for a validatable context.\r\nfunction createCommonHandlers(vm) {\r\n    if (!vm.$veeOnInput) {\r\n        vm.$veeOnInput = function (e) {\r\n            vm.syncValue(e); // track and keep the value updated.\r\n            vm.setFlags({ dirty: true, pristine: false });\r\n        };\r\n    }\r\n    var onInput = vm.$veeOnInput;\r\n    if (!vm.$veeOnBlur) {\r\n        vm.$veeOnBlur = function () {\r\n            vm.setFlags({ touched: true, untouched: false });\r\n        };\r\n    }\r\n    // Blur event listener.\r\n    var onBlur = vm.$veeOnBlur;\r\n    var onValidate = vm.$veeHandler;\r\n    var mode = computeModeSetting(vm);\r\n    // Handle debounce changes.\r\n    if (!onValidate || vm.$veeDebounce !== vm.debounce) {\r\n        onValidate = debounce(function () {\r\n            vm.$nextTick(function () {\r\n                if (!vm._pendingReset) {\r\n                    triggerThreadSafeValidation(vm);\r\n                }\r\n                vm._pendingReset = false;\r\n            });\r\n        }, mode.debounce || vm.debounce);\r\n        // Cache the handler so we don't create it each time.\r\n        vm.$veeHandler = onValidate;\r\n        // cache the debounce value so we detect if it was changed.\r\n        vm.$veeDebounce = vm.debounce;\r\n    }\r\n    return { onInput: onInput, onBlur: onBlur, onValidate: onValidate };\r\n}\r\n// Adds all plugin listeners to the vnode.\r\nfunction addListeners(vm, node) {\r\n    var value = findValue(node);\r\n    // cache the input eventName.\r\n    vm._inputEventName = vm._inputEventName || getInputEventName(node, findModel(node));\r\n    onRenderUpdate(vm, value === null || value === void 0 ? void 0 : value.value);\r\n    var _a = createCommonHandlers(vm), onInput = _a.onInput, onBlur = _a.onBlur, onValidate = _a.onValidate;\r\n    addVNodeListener(node, vm._inputEventName, onInput);\r\n    addVNodeListener(node, 'blur', onBlur);\r\n    // add the validation listeners.\r\n    vm.normalizedEvents.forEach(function (evt) {\r\n        addVNodeListener(node, evt, onValidate);\r\n    });\r\n    vm.initialized = true;\r\n}\n\nvar PROVIDER_COUNTER = 0;\r\nfunction data() {\r\n    var errors = [];\r\n    var fieldName = '';\r\n    var defaultValues = {\r\n        errors: errors,\r\n        value: undefined,\r\n        initialized: false,\r\n        initialValue: undefined,\r\n        flags: createFlags(),\r\n        failedRules: {},\r\n        isActive: true,\r\n        fieldName: fieldName,\r\n        id: ''\r\n    };\r\n    return defaultValues;\r\n}\r\nvar ValidationProvider = vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].extend({\r\n    inject: {\r\n        $_veeObserver: {\r\n            from: '$_veeObserver',\r\n            default: function () {\r\n                if (!this.$vnode.context.$_veeObserver) {\r\n                    this.$vnode.context.$_veeObserver = createObserver();\r\n                }\r\n                return this.$vnode.context.$_veeObserver;\r\n            }\r\n        }\r\n    },\r\n    props: {\r\n        vid: {\r\n            type: String,\r\n            default: ''\r\n        },\r\n        name: {\r\n            type: String,\r\n            default: null\r\n        },\r\n        mode: {\r\n            type: [String, Function],\r\n            default: function () {\r\n                return getConfig().mode;\r\n            }\r\n        },\r\n        rules: {\r\n            type: [Object, String],\r\n            default: null\r\n        },\r\n        immediate: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        bails: {\r\n            type: Boolean,\r\n            default: function () { return getConfig().bails; }\r\n        },\r\n        skipIfEmpty: {\r\n            type: Boolean,\r\n            default: function () { return getConfig().skipOptional; }\r\n        },\r\n        debounce: {\r\n            type: Number,\r\n            default: 0\r\n        },\r\n        tag: {\r\n            type: String,\r\n            default: 'span'\r\n        },\r\n        slim: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        disabled: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        customMessages: {\r\n            type: Object,\r\n            default: function () {\r\n                return {};\r\n            }\r\n        },\r\n        detectInput: {\r\n            type: Boolean,\r\n            default: true\r\n        }\r\n    },\r\n    watch: {\r\n        rules: {\r\n            deep: true,\r\n            handler: function (val, oldVal) {\r\n                this._needsValidation = !isEqual(val, oldVal);\r\n            }\r\n        }\r\n    },\r\n    data: data,\r\n    computed: {\r\n        fieldDeps: function () {\r\n            var _this = this;\r\n            return Object.keys(this.normalizedRules).reduce(function (acc, rule) {\r\n                var deps = extractLocators(_this.normalizedRules[rule]).map(function (dep) {\r\n                    return isLocator(dep) ? dep.__locatorRef : dep.slice(1);\r\n                });\r\n                acc.push.apply(acc, deps);\r\n                deps.forEach(function (depName) {\r\n                    watchCrossFieldDep(_this, depName);\r\n                });\r\n                return acc;\r\n            }, []);\r\n        },\r\n        normalizedEvents: function () {\r\n            var _this = this;\r\n            var on = computeModeSetting(this).on;\r\n            return (on || []).map(function (e) {\r\n                if (e === 'input') {\r\n                    return _this._inputEventName;\r\n                }\r\n                return e;\r\n            });\r\n        },\r\n        isRequired: function () {\r\n            var rules = __assign(__assign({}, this._resolvedRules), this.normalizedRules);\r\n            var isRequired = Object.keys(rules).some(RuleContainer.isRequireRule);\r\n            this.flags.required = !!isRequired;\r\n            return isRequired;\r\n        },\r\n        classes: function () {\r\n            var names = getConfig().classes;\r\n            return computeClassObj(names, this.flags);\r\n        },\r\n        normalizedRules: function () {\r\n            return normalizeRules(this.rules);\r\n        }\r\n    },\r\n    mounted: function () {\r\n        var _this = this;\r\n        var onLocaleChanged = function () {\r\n            if (!_this.flags.validated) {\r\n                return;\r\n            }\r\n            var regenerateMap = _this._regenerateMap;\r\n            if (regenerateMap) {\r\n                var errors_1 = [];\r\n                var failedRules_1 = {};\r\n                Object.keys(regenerateMap).forEach(function (rule) {\r\n                    var msg = regenerateMap[rule]();\r\n                    errors_1.push(msg);\r\n                    failedRules_1[rule] = msg;\r\n                });\r\n                _this.applyResult({ errors: errors_1, failedRules: failedRules_1, regenerateMap: regenerateMap });\r\n                return;\r\n            }\r\n            _this.validate();\r\n        };\r\n        EVENT_BUS.$on('change:locale', onLocaleChanged);\r\n        this.$on('hook:beforeDestroy', function () {\r\n            EVENT_BUS.$off('change:locale', onLocaleChanged);\r\n        });\r\n    },\r\n    render: function (h) {\r\n        var _this = this;\r\n        this.registerField();\r\n        var ctx = createValidationCtx(this);\r\n        var children = normalizeChildren(this, ctx);\r\n        // Automatic v-model detection\r\n        if (this.detectInput) {\r\n            var inputs = findInputNodes(children);\r\n            if (inputs.length) {\r\n                inputs.forEach(function (input, idx) {\r\n                    var _a, _b, _c, _d, _e, _f;\r\n                    // If the elements are not checkboxes and there are more input nodes\r\n                    if (!includes(['checkbox', 'radio'], (_b = (_a = input.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.type) && idx > 0) {\r\n                        return;\r\n                    }\r\n                    var resolved = getConfig().useConstraintAttrs ? resolveRules(input) : {};\r\n                    if (!isEqual(_this._resolvedRules, resolved)) {\r\n                        _this._needsValidation = true;\r\n                    }\r\n                    if (isHTMLNode(input)) {\r\n                        _this.fieldName = ((_d = (_c = input.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.name) || ((_f = (_e = input.data) === null || _e === void 0 ? void 0 : _e.attrs) === null || _f === void 0 ? void 0 : _f.id);\r\n                    }\r\n                    _this._resolvedRules = resolved;\r\n                    addListeners(_this, input);\r\n                });\r\n            }\r\n        }\r\n        return this.slim && children.length <= 1 ? children[0] : h(this.tag, children);\r\n    },\r\n    beforeDestroy: function () {\r\n        // cleanup reference.\r\n        this.$_veeObserver.unobserve(this.id);\r\n    },\r\n    activated: function () {\r\n        this.isActive = true;\r\n    },\r\n    deactivated: function () {\r\n        this.isActive = false;\r\n    },\r\n    methods: {\r\n        setFlags: function (flags) {\r\n            var _this = this;\r\n            Object.keys(flags).forEach(function (flag) {\r\n                _this.flags[flag] = flags[flag];\r\n            });\r\n        },\r\n        syncValue: function (v) {\r\n            var value = normalizeEventValue(v);\r\n            this.value = value;\r\n            this.flags.changed = this.initialValue !== value;\r\n        },\r\n        reset: function () {\r\n            var _this = this;\r\n            this.errors = [];\r\n            this.initialValue = this.value;\r\n            var flags = createFlags();\r\n            flags.required = this.isRequired;\r\n            this.setFlags(flags);\r\n            this.failedRules = {};\r\n            this.validateSilent();\r\n            this._pendingValidation = undefined;\r\n            this._pendingReset = true;\r\n            setTimeout(function () {\r\n                _this._pendingReset = false;\r\n            }, this.debounce);\r\n        },\r\n        validate: function () {\r\n            var args = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                args[_i] = arguments[_i];\r\n            }\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                return __generator(this, function (_a) {\r\n                    if (args.length > 0) {\r\n                        this.syncValue(args[0]);\r\n                    }\r\n                    return [2 /*return*/, triggerThreadSafeValidation(this)];\r\n                });\r\n            });\r\n        },\r\n        validateSilent: function () {\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var rules, result;\r\n                return __generator(this, function (_a) {\r\n                    switch (_a.label) {\r\n                        case 0:\r\n                            this.setFlags({ pending: true });\r\n                            rules = __assign(__assign({}, this._resolvedRules), this.normalizedRules);\r\n                            Object.defineProperty(rules, '_$$isNormalized', {\r\n                                value: true,\r\n                                writable: false,\r\n                                enumerable: false,\r\n                                configurable: false\r\n                            });\r\n                            return [4 /*yield*/, validate(this.value, rules, __assign(__assign({ name: this.name || this.fieldName }, createLookup(this)), { bails: this.bails, skipIfEmpty: this.skipIfEmpty, isInitial: !this.initialized, customMessages: this.customMessages }))];\r\n                        case 1:\r\n                            result = _a.sent();\r\n                            this.setFlags({\r\n                                pending: false,\r\n                                valid: result.valid,\r\n                                invalid: !result.valid\r\n                            });\r\n                            return [2 /*return*/, result];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        setErrors: function (errors) {\r\n            this.applyResult({ errors: errors, failedRules: {} });\r\n        },\r\n        applyResult: function (_a) {\r\n            var errors = _a.errors, failedRules = _a.failedRules, regenerateMap = _a.regenerateMap;\r\n            this.errors = errors;\r\n            this._regenerateMap = regenerateMap;\r\n            this.failedRules = __assign({}, (failedRules || {}));\r\n            this.setFlags({\r\n                valid: !errors.length,\r\n                passed: !errors.length,\r\n                invalid: !!errors.length,\r\n                failed: !!errors.length,\r\n                validated: true,\r\n                changed: this.value !== this.initialValue\r\n            });\r\n        },\r\n        registerField: function () {\r\n            updateRenderingContextRefs(this);\r\n        }\r\n    }\r\n});\r\nfunction computeClassObj(names, flags) {\r\n    var acc = {};\r\n    var keys = Object.keys(flags);\r\n    var length = keys.length;\r\n    var _loop_1 = function (i) {\r\n        var flag = keys[i];\r\n        var className = (names && names[flag]) || flag;\r\n        var value = flags[flag];\r\n        if (isNullOrUndefined(value)) {\r\n            return \"continue\";\r\n        }\r\n        if ((flag === 'valid' || flag === 'invalid') && !flags.validated) {\r\n            return \"continue\";\r\n        }\r\n        if (typeof className === 'string') {\r\n            acc[className] = value;\r\n        }\r\n        else if (Array.isArray(className)) {\r\n            className.forEach(function (cls) {\r\n                acc[cls] = value;\r\n            });\r\n        }\r\n    };\r\n    for (var i = 0; i < length; i++) {\r\n        _loop_1(i);\r\n    }\r\n    return acc;\r\n}\r\nfunction createLookup(vm) {\r\n    var providers = vm.$_veeObserver.refs;\r\n    var reduced = {\r\n        names: {},\r\n        values: {}\r\n    };\r\n    return vm.fieldDeps.reduce(function (acc, depName) {\r\n        if (!providers[depName]) {\r\n            return acc;\r\n        }\r\n        acc.values[depName] = providers[depName].value;\r\n        acc.names[depName] = providers[depName].name;\r\n        return acc;\r\n    }, reduced);\r\n}\r\nfunction extractId(vm) {\r\n    if (vm.vid) {\r\n        return vm.vid;\r\n    }\r\n    if (vm.name) {\r\n        return vm.name;\r\n    }\r\n    if (vm.id) {\r\n        return vm.id;\r\n    }\r\n    if (vm.fieldName) {\r\n        return vm.fieldName;\r\n    }\r\n    PROVIDER_COUNTER++;\r\n    return \"_vee_\" + PROVIDER_COUNTER;\r\n}\r\nfunction updateRenderingContextRefs(vm) {\r\n    var providedId = extractId(vm);\r\n    var id = vm.id;\r\n    // Nothing has changed.\r\n    if (!vm.isActive || (id === providedId && vm.$_veeObserver.refs[id])) {\r\n        return;\r\n    }\r\n    // vid was changed.\r\n    if (id !== providedId && vm.$_veeObserver.refs[id] === vm) {\r\n        vm.$_veeObserver.unobserve(id);\r\n    }\r\n    vm.id = providedId;\r\n    vm.$_veeObserver.observe(vm);\r\n}\r\nfunction createObserver() {\r\n    return {\r\n        refs: {},\r\n        observe: function (vm) {\r\n            this.refs[vm.id] = vm;\r\n        },\r\n        unobserve: function (id) {\r\n            delete this.refs[id];\r\n        }\r\n    };\r\n}\r\nfunction watchCrossFieldDep(ctx, depName, withHooks) {\r\n    if (withHooks === void 0) { withHooks = true; }\r\n    var providers = ctx.$_veeObserver.refs;\r\n    if (!ctx._veeWatchers) {\r\n        ctx._veeWatchers = {};\r\n    }\r\n    if (!providers[depName] && withHooks) {\r\n        return ctx.$once('hook:mounted', function () {\r\n            watchCrossFieldDep(ctx, depName, false);\r\n        });\r\n    }\r\n    if (!isCallable(ctx._veeWatchers[depName]) && providers[depName]) {\r\n        ctx._veeWatchers[depName] = providers[depName].$watch('value', function () {\r\n            if (ctx.flags.validated) {\r\n                ctx._needsValidation = true;\r\n                ctx.validate();\r\n            }\r\n        });\r\n    }\r\n}\n\nvar FLAGS_STRATEGIES = [\r\n    ['pristine', 'every'],\r\n    ['dirty', 'some'],\r\n    ['touched', 'some'],\r\n    ['untouched', 'every'],\r\n    ['valid', 'every'],\r\n    ['invalid', 'some'],\r\n    ['pending', 'some'],\r\n    ['validated', 'every'],\r\n    ['changed', 'some'],\r\n    ['passed', 'every'],\r\n    ['failed', 'some']\r\n];\r\nvar OBSERVER_COUNTER = 0;\r\nfunction data$1() {\r\n    var refs = {};\r\n    var errors = {};\r\n    var flags = createObserverFlags();\r\n    var fields = {};\r\n    // FIXME: Not sure of this one can be typed, circular type reference.\r\n    var observers = [];\r\n    return {\r\n        id: '',\r\n        refs: refs,\r\n        observers: observers,\r\n        errors: errors,\r\n        flags: flags,\r\n        fields: fields\r\n    };\r\n}\r\nfunction provideSelf() {\r\n    return {\r\n        $_veeObserver: this\r\n    };\r\n}\r\nvar ValidationObserver = vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].extend({\r\n    name: 'ValidationObserver',\r\n    provide: provideSelf,\r\n    inject: {\r\n        $_veeObserver: {\r\n            from: '$_veeObserver',\r\n            default: function () {\r\n                if (!this.$vnode.context.$_veeObserver) {\r\n                    return null;\r\n                }\r\n                return this.$vnode.context.$_veeObserver;\r\n            }\r\n        }\r\n    },\r\n    props: {\r\n        tag: {\r\n            type: String,\r\n            default: 'span'\r\n        },\r\n        vid: {\r\n            type: String,\r\n            default: function () {\r\n                return \"obs_\" + OBSERVER_COUNTER++;\r\n            }\r\n        },\r\n        slim: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        disabled: {\r\n            type: Boolean,\r\n            default: false\r\n        }\r\n    },\r\n    data: data$1,\r\n    created: function () {\r\n        var _this = this;\r\n        this.id = this.vid;\r\n        register(this);\r\n        var onChange = debounce(function (_a) {\r\n            var errors = _a.errors, flags = _a.flags, fields = _a.fields;\r\n            _this.errors = errors;\r\n            _this.flags = flags;\r\n            _this.fields = fields;\r\n        }, 16);\r\n        this.$watch(computeObserverState, onChange);\r\n    },\r\n    activated: function () {\r\n        register(this);\r\n    },\r\n    deactivated: function () {\r\n        unregister(this);\r\n    },\r\n    beforeDestroy: function () {\r\n        unregister(this);\r\n    },\r\n    render: function (h) {\r\n        var children = normalizeChildren(this, prepareSlotProps(this));\r\n        return this.slim && children.length <= 1 ? children[0] : h(this.tag, { on: this.$listeners }, children);\r\n    },\r\n    methods: {\r\n        observe: function (subscriber, kind) {\r\n            var _a;\r\n            if (kind === void 0) { kind = 'provider'; }\r\n            if (kind === 'observer') {\r\n                this.observers.push(subscriber);\r\n                return;\r\n            }\r\n            this.refs = __assign(__assign({}, this.refs), (_a = {}, _a[subscriber.id] = subscriber, _a));\r\n        },\r\n        unobserve: function (id, kind) {\r\n            if (kind === void 0) { kind = 'provider'; }\r\n            if (kind === 'provider') {\r\n                var provider = this.refs[id];\r\n                if (!provider) {\r\n                    return;\r\n                }\r\n                this.$delete(this.refs, id);\r\n                return;\r\n            }\r\n            var idx = findIndex(this.observers, function (o) { return o.id === id; });\r\n            if (idx !== -1) {\r\n                this.observers.splice(idx, 1);\r\n            }\r\n        },\r\n        validateWithInfo: function (_a) {\r\n            var _b = (_a === void 0 ? {} : _a).silent, silent = _b === void 0 ? false : _b;\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var results, isValid, _c, errors, flags, fields;\r\n                return __generator(this, function (_d) {\r\n                    switch (_d.label) {\r\n                        case 0: return [4 /*yield*/, Promise.all(__spreadArrays(values(this.refs)\r\n                                .filter(function (r) { return !r.disabled; })\r\n                                .map(function (ref) { return ref[silent ? 'validateSilent' : 'validate']().then(function (r) { return r.valid; }); }), this.observers.filter(function (o) { return !o.disabled; }).map(function (obs) { return obs.validate({ silent: silent }); })))];\r\n                        case 1:\r\n                            results = _d.sent();\r\n                            isValid = results.every(function (r) { return r; });\r\n                            _c = computeObserverState.call(this), errors = _c.errors, flags = _c.flags, fields = _c.fields;\r\n                            this.errors = errors;\r\n                            this.flags = flags;\r\n                            this.fields = fields;\r\n                            return [2 /*return*/, {\r\n                                    errors: errors,\r\n                                    flags: flags,\r\n                                    fields: fields,\r\n                                    isValid: isValid\r\n                                }];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        validate: function (_a) {\r\n            var _b = (_a === void 0 ? {} : _a).silent, silent = _b === void 0 ? false : _b;\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var isValid;\r\n                return __generator(this, function (_c) {\r\n                    switch (_c.label) {\r\n                        case 0: return [4 /*yield*/, this.validateWithInfo({ silent: silent })];\r\n                        case 1:\r\n                            isValid = (_c.sent()).isValid;\r\n                            return [2 /*return*/, isValid];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        handleSubmit: function (cb) {\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var isValid;\r\n                return __generator(this, function (_a) {\r\n                    switch (_a.label) {\r\n                        case 0: return [4 /*yield*/, this.validate()];\r\n                        case 1:\r\n                            isValid = _a.sent();\r\n                            if (!isValid || !cb) {\r\n                                return [2 /*return*/];\r\n                            }\r\n                            return [2 /*return*/, cb()];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        reset: function () {\r\n            return __spreadArrays(values(this.refs), this.observers).forEach(function (ref) { return ref.reset(); });\r\n        },\r\n        setErrors: function (errors) {\r\n            var _this = this;\r\n            Object.keys(errors).forEach(function (key) {\r\n                var provider = _this.refs[key];\r\n                if (!provider)\r\n                    return;\r\n                var errorArr = errors[key] || [];\r\n                errorArr = typeof errorArr === 'string' ? [errorArr] : errorArr;\r\n                provider.setErrors(errorArr);\r\n            });\r\n            this.observers.forEach(function (observer) {\r\n                observer.setErrors(errors);\r\n            });\r\n        }\r\n    }\r\n});\r\nfunction unregister(vm) {\r\n    if (vm.$_veeObserver) {\r\n        vm.$_veeObserver.unobserve(vm.id, 'observer');\r\n    }\r\n}\r\nfunction register(vm) {\r\n    if (vm.$_veeObserver) {\r\n        vm.$_veeObserver.observe(vm, 'observer');\r\n    }\r\n}\r\nfunction prepareSlotProps(vm) {\r\n    return __assign(__assign({}, vm.flags), { errors: vm.errors, fields: vm.fields, validate: vm.validate, validateWithInfo: vm.validateWithInfo, passes: vm.handleSubmit, handleSubmit: vm.handleSubmit, reset: vm.reset });\r\n}\r\n// Creates a modified version of validation flags\r\nfunction createObserverFlags() {\r\n    return __assign(__assign({}, createFlags()), { valid: true, invalid: false });\r\n}\r\nfunction computeObserverState() {\r\n    var vms = __spreadArrays(values(this.refs), this.observers.filter(function (o) { return !o.disabled; }));\r\n    var errors = {};\r\n    var flags = createObserverFlags();\r\n    var fields = {};\r\n    var length = vms.length;\r\n    for (var i = 0; i < length; i++) {\r\n        var vm = vms[i];\r\n        // validation provider\r\n        if (Array.isArray(vm.errors)) {\r\n            errors[vm.id] = vm.errors;\r\n            fields[vm.id] = __assign({ id: vm.id, name: vm.name, failedRules: vm.failedRules }, vm.flags);\r\n            continue;\r\n        }\r\n        // Nested observer, merge errors and fields\r\n        errors = __assign(__assign({}, errors), vm.errors);\r\n        fields = __assign(__assign({}, fields), vm.fields);\r\n    }\r\n    FLAGS_STRATEGIES.forEach(function (_a) {\r\n        var flag = _a[0], method = _a[1];\r\n        flags[flag] = vms[method](function (vm) { return vm.flags[flag]; });\r\n    });\r\n    return { errors: errors, flags: flags, fields: fields };\r\n}\n\nfunction withValidation(component, mapProps) {\r\n    var _a;\r\n    if (mapProps === void 0) { mapProps = identity; }\r\n    var options = 'options' in component ? component.options : component;\r\n    var providerOpts = ValidationProvider.options;\r\n    var hoc = {\r\n        name: (options.name || 'AnonymousHoc') + \"WithValidation\",\r\n        props: __assign({}, providerOpts.props),\r\n        data: providerOpts.data,\r\n        computed: __assign({}, providerOpts.computed),\r\n        methods: __assign({}, providerOpts.methods),\r\n        beforeDestroy: providerOpts.beforeDestroy,\r\n        inject: providerOpts.inject\r\n    };\r\n    var eventName = ((_a = options === null || options === void 0 ? void 0 : options.model) === null || _a === void 0 ? void 0 : _a.event) || 'input';\r\n    hoc.render = function (h) {\r\n        var _a;\r\n        this.registerField();\r\n        var vctx = createValidationCtx(this);\r\n        var listeners = __assign({}, this.$listeners);\r\n        var model = findModel(this.$vnode);\r\n        this._inputEventName = this._inputEventName || getInputEventName(this.$vnode, model);\r\n        var value = findValue(this.$vnode);\r\n        onRenderUpdate(this, value === null || value === void 0 ? void 0 : value.value);\r\n        var _b = createCommonHandlers(this), onInput = _b.onInput, onBlur = _b.onBlur, onValidate = _b.onValidate;\r\n        mergeVNodeListeners(listeners, eventName, onInput);\r\n        mergeVNodeListeners(listeners, 'blur', onBlur);\r\n        this.normalizedEvents.forEach(function (evt) {\r\n            mergeVNodeListeners(listeners, evt, onValidate);\r\n        });\r\n        // Props are any attrs not associated with ValidationProvider Plus the model prop.\r\n        // WARNING: Accidental prop overwrite will probably happen.\r\n        var prop = (findModelConfig(this.$vnode) || { prop: 'value' }).prop;\r\n        var props = __assign(__assign(__assign({}, this.$attrs), (_a = {}, _a[prop] = model === null || model === void 0 ? void 0 : model.value, _a)), mapProps(vctx));\r\n        return h(options, {\r\n            attrs: this.$attrs,\r\n            props: props,\r\n            on: listeners,\r\n            scopedSlots: this.$scopedSlots\r\n        }, normalizeSlots(this.$slots, this.$vnode.context));\r\n    };\r\n    return hoc;\r\n}\n\nvar version = '3.4.5';\n\n\n\n\n//# sourceURL=webpack:///./node_modules/vee-validate/dist/vee-validate.esm.js?");

/***/ }),

/***/ "./src/@core/utils/validations/validations.js":
/*!****************************************************!*\
  !*** ./src/@core/utils/validations/validations.js ***!
  \****************************************************/
/*! exports provided: required, email, min, confirmed, regex, between, alpha, integer, digits, alphaDash, alphaNum, length, positive, credit, password, url */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"required\", function() { return required; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"email\", function() { return email; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"min\", function() { return min; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"confirmed\", function() { return confirmed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"regex\", function() { return regex; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"between\", function() { return between; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"alpha\", function() { return alpha; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"integer\", function() { return integer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"digits\", function() { return digits; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"alphaDash\", function() { return alphaDash; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"alphaNum\", function() { return alphaNum; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"length\", function() { return length; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"positive\", function() { return positive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"credit\", function() { return credit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"password\", function() { return password; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"url\", function() { return url; });\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vee-validate */ \"./node_modules/vee-validate/dist/vee-validate.esm.js\");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ \"./node_modules/vee-validate/dist/rules.js\");\n/* harmony import */ var vee_validate_dist_locale_ar_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate/dist/locale/ar.json */ \"./node_modules/vee-validate/dist/locale/ar.json\");\nvar vee_validate_dist_locale_ar_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! vee-validate/dist/locale/ar.json */ \"./node_modules/vee-validate/dist/locale/ar.json\", 1);\n/* harmony import */ var vee_validate_dist_locale_en_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vee-validate/dist/locale/en.json */ \"./node_modules/vee-validate/dist/locale/en.json\");\nvar vee_validate_dist_locale_en_json__WEBPACK_IMPORTED_MODULE_3___namespace = /*#__PURE__*/__webpack_require__.t(/*! vee-validate/dist/locale/en.json */ \"./node_modules/vee-validate/dist/locale/en.json\", 1);\n/* harmony import */ var _validators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./validators */ \"./src/@core/utils/validations/validators.js\");\n\n\n\n // eslint-disable-next-line object-curly-newline\n\n // ////////////////////////////////////////////////////////\n// General\n// ////////////////////////////////////////////////////////\n\nvar required = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('required', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"required\"]);\nvar email = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('email', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"email\"]);\nvar min = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('min', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"min\"]);\nvar confirmed = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('confirmed', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"confirmed\"]);\nvar regex = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('regex', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"regex\"]);\nvar between = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('between', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"between\"]);\nvar alpha = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('alpha', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"alpha\"]);\nvar integer = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('integer', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"integer\"]);\nvar digits = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('digits', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"digits\"]);\nvar alphaDash = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('alpha-dash', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"alpha_dash\"]);\nvar alphaNum = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('alpha-num', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"alpha_num\"]);\nvar length = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('length', vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__[\"length\"]);\nvar positive = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('positive', {\n  validate: _validators__WEBPACK_IMPORTED_MODULE_4__[\"validatorPositive\"],\n  message: 'Please enter positive number!'\n});\nvar credit = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('credit-card', {\n  validate: _validators__WEBPACK_IMPORTED_MODULE_4__[\"validatorCreditCard\"],\n  message: 'It is not valid credit card!'\n});\nvar password = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('password', {\n  validate: _validators__WEBPACK_IMPORTED_MODULE_4__[\"validatorPassword\"],\n  message: 'Your {_field_} must contain at least one uppercase, one lowercase, one special character and one digit'\n});\nvar url = Object(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"extend\"])('url', {\n  validate: _validators__WEBPACK_IMPORTED_MODULE_4__[\"validatorUrlValidator\"],\n  message: 'URL is invalid'\n}); // Install English and Arabic localizations.\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_0__[\"localize\"])({\n  en: {\n    messages: vee_validate_dist_locale_en_json__WEBPACK_IMPORTED_MODULE_3__.messages,\n    names: {\n      email: 'Email',\n      password: 'Password'\n    },\n    fields: {\n      password: {\n        min: '{_field_} is too short, you want to get hacked?'\n      }\n    }\n  },\n  ar: {\n    messages: vee_validate_dist_locale_ar_json__WEBPACK_IMPORTED_MODULE_2__.messages,\n    names: {\n      email: 'البريد الإلكتروني',\n      password: 'كلمة السر'\n    },\n    fields: {\n      password: {\n        min: 'كلمة السر قصيرة جداً سيتم اختراقك'\n      }\n    }\n  }\n}); // ////////////////////////////////////////////////////////\n// NOTE:\n// Quasar validation for reference only\n// Remove this note once development is finished and make sure to\n// to convert all of them in veevalidate version\n// ////////////////////////////////////////////////////////\n// export const required = (val) => {\n//   return (val && val.length > 0) || '*Field is required'\n// }\n// export const required_obj = (obj) => {\n//   if (obj === null || obj === undefined) return '*Field is required'\n//   return (Object.entries(obj).length > 0 && obj.constructor === Object) || '*Field is required'\n// }\n// export const no_blank_spaces_arr = (arr) => {\n//   return arr.every(val => (val.trim() && val.trim().length > 0)) || 'Blank Spaces are not allowed'\n// }\n// export const url = val => {\n//   // If blank return\n//   if (val === undefined || val === null || val.length === 0) return true\n//   // Used\n//   // https://stackoverflow.com/questions/4314741/url-regex-validation\n//   // Other\n//   // https://stackoverflow.com/questions/5717093/check-if-a-javascript-string-is-a-url\n//   // https://www.w3resource.com/javascript-exercises/javascript-regexp-exercise-9.php\n//   // https://www.geeksforgeeks.org/how-to-validate-url-using-regular-expression-in-javascript/\n//   /* eslint-disable no-useless-escape */\n//   const re = /^(http[s]?:\\/\\/){0,1}(www\\.){0,1}[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,5}[\\.]{0,1}/\n//   /* eslint-enable no-useless-escape */\n//   return re.test(val) || 'URL is invalid'\n// }\n// export const date = val => {\n//   // If blank return\n//   if (val === undefined || val === null || val.length === 0) return true\n//   // https://github.com/quasarframework/quasar/blob/dev/ui/src/utils/patterns.js\n//   return /^-?[\\d]+\\/[0-1]\\d\\/[0-3]\\d$/.test(val) || 'Date is invalid'\n// }\n// export const max = (val, max) => {\n//   // If blank return\n//   if (val === undefined || val === null) return true\n//   return val.length <= max || `More than ${max} characters are not allowed`\n// }\n// export const max_arr = (val, max) => {\n//   return val.length <= max || `More than ${max} values are not allowed`\n// }\n// export const min = (val, min) => {\n//   // If blank return\n//   if (val === undefined || val === null || val.length === 0) return true\n//   return val.length >= min || `Minimum ${min} characters are required`\n// }\n// export const num_range = (val, min, max) => {\n//   // If blank return\n//   if (val === undefined || val === null || val.length === 0) return true\n//   const msg = 'Value is invalid'\n//   if (min === null) return val <= max || msg\n//   else if (max === null) return val >= min || msg\n//   else return (val >= min && val <= max) || msg\n// }\n\n//# sourceURL=webpack:///./src/@core/utils/validations/validations.js?");

/***/ }),

/***/ "./src/@core/utils/validations/validators.js":
/*!***************************************************!*\
  !*** ./src/@core/utils/validations/validators.js ***!
  \***************************************************/
/*! exports provided: validatorPositive, validatorPassword, validatorCreditCard, validatorUrlValidator */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatorPositive\", function() { return validatorPositive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatorPassword\", function() { return validatorPassword; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatorCreditCard\", function() { return validatorCreditCard; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatorUrlValidator\", function() { return validatorUrlValidator; });\nvar validatorPositive = function validatorPositive(value) {\n  if (value >= 0) {\n    return true;\n  }\n\n  return false;\n};\nvar validatorPassword = function validatorPassword(password) {\n  /* eslint-disable no-useless-escape */\n  var regExp = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&*()]).{8,}/;\n  /* eslint-enable no-useless-escape */\n\n  var validPassword = regExp.test(password);\n  return validPassword;\n};\nvar validatorCreditCard = function validatorCreditCard(creditnum) {\n  /* eslint-disable no-useless-escape */\n  var cRegExp = /^(?:3[47][0-9]{13})$/;\n  /* eslint-enable no-useless-escape */\n\n  var validCreditCard = cRegExp.test(creditnum);\n  return validCreditCard;\n};\nvar validatorUrlValidator = function validatorUrlValidator(val) {\n  if (val === undefined || val === null || val.length === 0) {\n    return true;\n  }\n  /* eslint-disable no-useless-escape */\n\n\n  var re = /^(http[s]?:\\/\\/){0,1}(www\\.){0,1}[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,5}[\\.]{0,1}/;\n  /* eslint-enable no-useless-escape */\n\n  return re.test(val);\n};\n\n//# sourceURL=webpack:///./src/@core/utils/validations/validators.js?");

/***/ })

}]);