mobx-formkit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +761 -0
- package/LICENSE +21 -0
- package/README.md +214 -0
- package/lib/ArrayMap.d.ts +50 -0
- package/lib/ArrayMap.d.ts.map +1 -0
- package/lib/ArrayMap.js +151 -0
- package/lib/ArrayMap.js.map +1 -0
- package/lib/Base.d.ts +237 -0
- package/lib/Base.d.ts.map +1 -0
- package/lib/Base.js +872 -0
- package/lib/Base.js.map +1 -0
- package/lib/Bindings.d.ts +28 -0
- package/lib/Bindings.d.ts.map +1 -0
- package/lib/Bindings.js +73 -0
- package/lib/Bindings.js.map +1 -0
- package/lib/Field.d.ts +195 -0
- package/lib/Field.d.ts.map +1 -0
- package/lib/Field.js +734 -0
- package/lib/Field.js.map +1 -0
- package/lib/Form.d.ts +75 -0
- package/lib/Form.d.ts.map +1 -0
- package/lib/Form.js +199 -0
- package/lib/Form.js.map +1 -0
- package/lib/Options.d.ts +9 -0
- package/lib/Options.d.ts.map +1 -0
- package/lib/Options.js +85 -0
- package/lib/Options.js.map +1 -0
- package/lib/State.d.ts +43 -0
- package/lib/State.d.ts.map +1 -0
- package/lib/State.js +147 -0
- package/lib/State.js.map +1 -0
- package/lib/Validator.d.ts +25 -0
- package/lib/Validator.d.ts.map +1 -0
- package/lib/Validator.js +143 -0
- package/lib/Validator.js.map +1 -0
- package/lib/compat.d.ts +29 -0
- package/lib/compat.d.ts.map +1 -0
- package/lib/compat.js +117 -0
- package/lib/compat.js.map +1 -0
- package/lib/composer.d.ts +26 -0
- package/lib/composer.d.ts.map +1 -0
- package/lib/composer.js +65 -0
- package/lib/composer.js.map +1 -0
- package/lib/esm/ArrayMap.js +146 -0
- package/lib/esm/ArrayMap.js.map +1 -0
- package/lib/esm/Base.js +868 -0
- package/lib/esm/Base.js.map +1 -0
- package/lib/esm/Bindings.js +69 -0
- package/lib/esm/Bindings.js.map +1 -0
- package/lib/esm/Field.js +730 -0
- package/lib/esm/Field.js.map +1 -0
- package/lib/esm/Form.js +195 -0
- package/lib/esm/Form.js.map +1 -0
- package/lib/esm/Options.js +81 -0
- package/lib/esm/Options.js.map +1 -0
- package/lib/esm/State.js +143 -0
- package/lib/esm/State.js.map +1 -0
- package/lib/esm/Validator.js +139 -0
- package/lib/esm/Validator.js.map +1 -0
- package/lib/esm/compat.js +96 -0
- package/lib/esm/compat.js.map +1 -0
- package/lib/esm/composer.js +63 -0
- package/lib/esm/composer.js.map +1 -0
- package/lib/esm/index.js +8 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/models/FieldProps.js +116 -0
- package/lib/esm/models/FieldProps.js.map +1 -0
- package/lib/esm/models/OptionsModel.js +51 -0
- package/lib/esm/models/OptionsModel.js.map +1 -0
- package/lib/esm/models/StateInterface.js +9 -0
- package/lib/esm/models/StateInterface.js.map +1 -0
- package/lib/esm/models/ValidatorInterface.js +8 -0
- package/lib/esm/models/ValidatorInterface.js.map +1 -0
- package/lib/esm/parser.js +235 -0
- package/lib/esm/parser.js.map +1 -0
- package/lib/esm/props.js +118 -0
- package/lib/esm/props.js.map +1 -0
- package/lib/esm/utils.js +156 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/esm/validators/AJV.js +105 -0
- package/lib/esm/validators/AJV.js.map +1 -0
- package/lib/esm/validators/DVR.js +104 -0
- package/lib/esm/validators/DVR.js.map +1 -0
- package/lib/esm/validators/JOI.js +54 -0
- package/lib/esm/validators/JOI.js.map +1 -0
- package/lib/esm/validators/VALIBOT.js +50 -0
- package/lib/esm/validators/VALIBOT.js.map +1 -0
- package/lib/esm/validators/VINEJS.js +60 -0
- package/lib/esm/validators/VINEJS.js.map +1 -0
- package/lib/esm/validators/VJF.js +88 -0
- package/lib/esm/validators/VJF.js.map +1 -0
- package/lib/esm/validators/YUP.js +69 -0
- package/lib/esm/validators/YUP.js.map +1 -0
- package/lib/esm/validators/ZOD.js +43 -0
- package/lib/esm/validators/ZOD.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/models/BaseInterface.d.ts +40 -0
- package/lib/models/BaseInterface.d.ts.map +1 -0
- package/lib/models/BindingsInterface.d.ts +18 -0
- package/lib/models/BindingsInterface.d.ts.map +1 -0
- package/lib/models/FieldInterface.d.ts +88 -0
- package/lib/models/FieldInterface.d.ts.map +1 -0
- package/lib/models/FieldProps.d.ts +111 -0
- package/lib/models/FieldProps.d.ts.map +1 -0
- package/lib/models/FieldProps.js +116 -0
- package/lib/models/FieldProps.js.map +1 -0
- package/lib/models/FormInterface.d.ts +184 -0
- package/lib/models/FormInterface.d.ts.map +1 -0
- package/lib/models/OptionsInterface.d.ts +8 -0
- package/lib/models/OptionsInterface.d.ts.map +1 -0
- package/lib/models/OptionsModel.d.ts +99 -0
- package/lib/models/OptionsModel.d.ts.map +1 -0
- package/lib/models/OptionsModel.js +51 -0
- package/lib/models/OptionsModel.js.map +1 -0
- package/lib/models/SharedActionsInterface.d.ts +27 -0
- package/lib/models/SharedActionsInterface.d.ts.map +1 -0
- package/lib/models/SharedEventsInterface.d.ts +8 -0
- package/lib/models/SharedEventsInterface.d.ts.map +1 -0
- package/lib/models/SharedHelpersInterface.d.ts +26 -0
- package/lib/models/SharedHelpersInterface.d.ts.map +1 -0
- package/lib/models/SharedInitializerInterface.d.ts +6 -0
- package/lib/models/SharedInitializerInterface.d.ts.map +1 -0
- package/lib/models/SharedUtilsInterface.d.ts +10 -0
- package/lib/models/SharedUtilsInterface.d.ts.map +1 -0
- package/lib/models/StateInterface.d.ts +37 -0
- package/lib/models/StateInterface.d.ts.map +1 -0
- package/lib/models/StateInterface.js +9 -0
- package/lib/models/StateInterface.js.map +1 -0
- package/lib/models/ValidatorInterface.d.ts +74 -0
- package/lib/models/ValidatorInterface.d.ts.map +1 -0
- package/lib/models/ValidatorInterface.js +8 -0
- package/lib/models/ValidatorInterface.js.map +1 -0
- package/lib/parser.d.ts +13 -0
- package/lib/parser.d.ts.map +1 -0
- package/lib/parser.js +247 -0
- package/lib/parser.js.map +1 -0
- package/lib/props.d.ts +14 -0
- package/lib/props.d.ts.map +1 -0
- package/lib/props.js +120 -0
- package/lib/props.js.map +1 -0
- package/lib/utils.d.ts +34 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +182 -0
- package/lib/utils.js.map +1 -0
- package/lib/validators/AJV.d.ts +4 -0
- package/lib/validators/AJV.d.ts.map +1 -0
- package/lib/validators/AJV.js +109 -0
- package/lib/validators/AJV.js.map +1 -0
- package/lib/validators/DVR.d.ts +4 -0
- package/lib/validators/DVR.d.ts.map +1 -0
- package/lib/validators/DVR.js +108 -0
- package/lib/validators/DVR.js.map +1 -0
- package/lib/validators/JOI.d.ts +4 -0
- package/lib/validators/JOI.d.ts.map +1 -0
- package/lib/validators/JOI.js +58 -0
- package/lib/validators/JOI.js.map +1 -0
- package/lib/validators/VALIBOT.d.ts +4 -0
- package/lib/validators/VALIBOT.d.ts.map +1 -0
- package/lib/validators/VALIBOT.js +73 -0
- package/lib/validators/VALIBOT.js.map +1 -0
- package/lib/validators/VINEJS.d.ts +4 -0
- package/lib/validators/VINEJS.d.ts.map +1 -0
- package/lib/validators/VINEJS.js +64 -0
- package/lib/validators/VINEJS.js.map +1 -0
- package/lib/validators/VJF.d.ts +4 -0
- package/lib/validators/VJF.d.ts.map +1 -0
- package/lib/validators/VJF.js +92 -0
- package/lib/validators/VJF.js.map +1 -0
- package/lib/validators/YUP.d.ts +4 -0
- package/lib/validators/YUP.d.ts.map +1 -0
- package/lib/validators/YUP.js +73 -0
- package/lib/validators/YUP.js.map +1 -0
- package/lib/validators/ZOD.d.ts +4 -0
- package/lib/validators/ZOD.d.ts.map +1 -0
- package/lib/validators/ZOD.js +47 -0
- package/lib/validators/ZOD.js.map +1 -0
- package/package.json +183 -0
- package/src/ArrayMap.ts +165 -0
- package/src/Base.ts +1229 -0
- package/src/Bindings.ts +85 -0
- package/src/Field.ts +1034 -0
- package/src/Form.ts +264 -0
- package/src/Options.ts +91 -0
- package/src/State.ts +183 -0
- package/src/Validator.ts +177 -0
- package/src/compat.ts +104 -0
- package/src/composer.ts +82 -0
- package/src/index.ts +7 -0
- package/src/models/BaseInterface.ts +45 -0
- package/src/models/BindingsInterface.ts +25 -0
- package/src/models/FieldInterface.ts +97 -0
- package/src/models/FieldProps.ts +116 -0
- package/src/models/FormInterface.ts +203 -0
- package/src/models/OptionsInterface.ts +9 -0
- package/src/models/OptionsModel.ts +100 -0
- package/src/models/SharedActionsInterface.ts +30 -0
- package/src/models/SharedEventsInterface.ts +8 -0
- package/src/models/SharedHelpersInterface.ts +12 -0
- package/src/models/SharedInitializerInterface.ts +6 -0
- package/src/models/SharedUtilsInterface.ts +10 -0
- package/src/models/StateInterface.ts +44 -0
- package/src/models/ValidatorInterface.ts +88 -0
- package/src/parser.ts +327 -0
- package/src/props.ts +127 -0
- package/src/utils.ts +218 -0
- package/src/validators/AJV.ts +140 -0
- package/src/validators/DVR.ts +145 -0
- package/src/validators/JOI.ts +79 -0
- package/src/validators/VALIBOT.ts +70 -0
- package/src/validators/VINEJS.ts +83 -0
- package/src/validators/VJF.ts +123 -0
- package/src/validators/YUP.ts +90 -0
- package/src/validators/ZOD.ts +66 -0
- package/umd/MobxFormkit.umd.js +3093 -0
- package/umd/MobxFormkit.umd.js.map +1 -0
- package/umd/MobxFormkit.umd.min.js +2 -0
- package/umd/MobxFormkit.umd.min.js.map +1 -0
- package/umd/MobxFormkitComposer.umd.js +183 -0
- package/umd/MobxFormkitComposer.umd.js.map +1 -0
- package/umd/MobxFormkitComposer.umd.min.js +2 -0
- package/umd/MobxFormkitComposer.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorAJV.umd.js +113 -0
- package/umd/MobxFormkitValidatorAJV.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorAJV.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorAJV.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorDVR.umd.js +110 -0
- package/umd/MobxFormkitValidatorDVR.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorDVR.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorDVR.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorJOI.umd.js +62 -0
- package/umd/MobxFormkitValidatorJOI.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorJOI.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorJOI.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorVALIBOT.umd.js +8032 -0
- package/umd/MobxFormkitValidatorVALIBOT.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorVALIBOT.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorVALIBOT.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorVINEJS.umd.js +11737 -0
- package/umd/MobxFormkitValidatorVINEJS.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorVINEJS.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorVINEJS.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorVJF.umd.js +96 -0
- package/umd/MobxFormkitValidatorVJF.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorVJF.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorVJF.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorYUP.umd.js +77 -0
- package/umd/MobxFormkitValidatorYUP.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorYUP.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorYUP.umd.min.js.map +1 -0
- package/umd/MobxFormkitValidatorZOD.umd.js +49 -0
- package/umd/MobxFormkitValidatorZOD.umd.js.map +1 -0
- package/umd/MobxFormkitValidatorZOD.umd.min.js +2 -0
- package/umd/MobxFormkitValidatorZOD.umd.min.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobxFormkitValidatorVINEJS.umd.min.js","sources":["../node_modules/dayjs/dayjs.min.js","../node_modules/validator/lib/util/assertString.js","../node_modules/validator/lib/isIP.js","../node_modules/validator/lib/util/merge.js","../node_modules/validator/lib/isBase64.js","../node_modules/validator/lib/isJWT.js","../node_modules/validator/lib/util/checkHost.js","../node_modules/validator/lib/util/includesString.js","../node_modules/validator/lib/isFQDN.js","../node_modules/validator/lib/isURL.js","../node_modules/validator/lib/isSlug.js","../node_modules/validator/lib/util/includesArray.js","../node_modules/validator/lib/isIBAN.js","../node_modules/validator/lib/isUUID.js","../node_modules/validator/lib/isAscii.js","../node_modules/validator/lib/isByteLength.js","../node_modules/validator/lib/isEmail.js","../node_modules/validator/lib/alpha.js","../node_modules/validator/lib/isAlpha.js","../node_modules/validator/lib/isLatLong.js","../node_modules/validator/lib/isDecimal.js","../node_modules/validator/lib/isHexColor.js","../node_modules/validator/lib/isLuhnNumber.js","../node_modules/validator/lib/isCreditCard.js","../node_modules/dayjs/plugin/isSameOrAfter.js","../node_modules/dayjs/plugin/isSameOrBefore.js","../node_modules/validator/lib/isAlphanumeric.js","../node_modules/validator/lib/isPassportNumber.js","../node_modules/validator/lib/util/algorithms.js","../node_modules/validator/lib/isVAT.js","../node_modules/dayjs/plugin/customParseFormat.js","../node_modules/validator/lib/isPostalCode.js","../node_modules/validator/lib/isMobilePhone.js","../node_modules/@vinejs/vine/build/simple_error_reporter-cwDwkClZ.js","../node_modules/dlv/dist/dlv.es.js","../node_modules/@vinejs/vine/build/src/defaults.js","../node_modules/@poppinss/macroable/build/index.js","../node_modules/@vinejs/vine/node_modules/camelcase/index.js","../node_modules/normalize-url/index.js","../node_modules/validator/lib/escape.js","../node_modules/validator/lib/normalizeEmail.js","../node_modules/@vinejs/compiler/build/index.js","../node_modules/@vinejs/vine/build/index.js","../src/validators/VINEJS.ts"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),Y=_.prototype;return O.prototype=Y,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){Y[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = assertString;\nfunction assertString(input) {\n if (input === undefined || input === null) throw new TypeError(\"Expected a string but received a \".concat(input));\n if (input.constructor.name !== 'String') throw new TypeError(\"Expected a string but received a \".concat(input.constructor.name));\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIP;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/**\n11.3. Examples\n\n The following addresses\n\n fe80::1234 (on the 1st link of the node)\n ff02::5678 (on the 5th link of the node)\n ff08::9abc (on the 10th organization of the node)\n\n would be represented as follows:\n\n fe80::1234%1\n ff02::5678%5\n ff08::9abc%10\n\n (Here we assume a natural translation from a zone index to the\n <zone_id> part, where the Nth zone of any scope is translated into\n \"N\".)\n\n If we use interface names as <zone_id>, those addresses could also be\n represented as follows:\n\n fe80::1234%ne0\n ff02::5678%pvc1.3\n ff08::9abc%interface10\n\n where the interface \"ne0\" belongs to the 1st link, \"pvc1.3\" belongs\n to the 5th link, and \"interface10\" belongs to the 10th organization.\n * * */\nvar IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';\nvar IPv4AddressFormat = \"(\".concat(IPv4SegmentFormat, \"[.]){3}\").concat(IPv4SegmentFormat);\nvar IPv4AddressRegExp = new RegExp(\"^\".concat(IPv4AddressFormat, \"$\"));\nvar IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';\nvar IPv6AddressRegExp = new RegExp('^(' + \"(?:\".concat(IPv6SegmentFormat, \":){7}(?:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){6}(?:\").concat(IPv4AddressFormat, \"|:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){5}(?::\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,2}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){4}(?:(:\").concat(IPv6SegmentFormat, \"){0,1}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,3}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){3}(?:(:\").concat(IPv6SegmentFormat, \"){0,2}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,4}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){2}(?:(:\").concat(IPv6SegmentFormat, \"){0,3}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,5}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){1}(?:(:\").concat(IPv6SegmentFormat, \"){0,4}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,6}|:)|\") + \"(?::((?::\".concat(IPv6SegmentFormat, \"){0,5}:\").concat(IPv4AddressFormat, \"|(?::\").concat(IPv6SegmentFormat, \"){1,7}|:))\") + ')(%[0-9a-zA-Z.]{1,})?$');\nfunction isIP(ipAddress) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(ipAddress);\n\n // accessing 'arguments' for backwards compatibility: isIP(ipAddress [, version])\n // eslint-disable-next-line prefer-rest-params\n var version = (_typeof(options) === 'object' ? options.version : arguments[1]) || '';\n if (!version) {\n return isIP(ipAddress, {\n version: 4\n }) || isIP(ipAddress, {\n version: 6\n });\n }\n if (version.toString() === '4') {\n return IPv4AddressRegExp.test(ipAddress);\n }\n if (version.toString() === '6') {\n return IPv6AddressRegExp.test(ipAddress);\n }\n return false;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = merge;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments.length > 1 ? arguments[1] : undefined;\n if (_typeof(obj) !== 'object' || obj === null) {\n obj = {};\n }\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBase64;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar base64WithPadding = /^[A-Za-z0-9+/]+={0,2}$/;\nvar base64WithoutPadding = /^[A-Za-z0-9+/]+$/;\nvar base64UrlWithPadding = /^[A-Za-z0-9_-]+={0,2}$/;\nvar base64UrlWithoutPadding = /^[A-Za-z0-9_-]+$/;\nfunction isBase64(str, options) {\n var _options;\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, {\n urlSafe: false,\n padding: !((_options = options) !== null && _options !== void 0 && _options.urlSafe)\n });\n if (str === '') return true;\n if (options.padding && str.length % 4 !== 0) return false;\n var regex;\n if (options.urlSafe) {\n regex = options.padding ? base64UrlWithPadding : base64UrlWithoutPadding;\n } else {\n regex = options.padding ? base64WithPadding : base64WithoutPadding;\n }\n return (!options.padding || str.length % 4 === 0) && regex.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isJWT;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isBase = _interopRequireDefault(require(\"./isBase64\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction isJWT(str) {\n (0, _assertString.default)(str);\n var dotSplit = str.split('.');\n var len = dotSplit.length;\n if (len !== 3) {\n return false;\n }\n return dotSplit.reduce(function (acc, currElem) {\n return acc && (0, _isBase.default)(currElem, {\n urlSafe: true\n });\n }, true);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = checkHost;\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\nfunction checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n return false;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar includes = function includes(str, val) {\n return str.indexOf(val) !== -1;\n};\nvar _default = exports.default = includes;\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFQDN;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_numeric_tld: false,\n allow_wildcard: false,\n ignore_max_length: false\n};\nfunction isFQDN(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n\n /* Remove the optional wildcard before checking validity */\n if (options.allow_wildcard === true && str.indexOf('*.') === 0) {\n str = str.substring(2);\n }\n var parts = str.split('.');\n var tld = parts[parts.length - 1];\n if (options.require_tld) {\n // disallow fqdns without tld\n if (parts.length < 2) {\n return false;\n }\n if (!options.allow_numeric_tld && !/^([a-z\\u00A1-\\u00A8\\u00AA-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n\n // disallow spaces\n if (/\\s/.test(tld)) {\n return false;\n }\n }\n\n // reject numeric TLDs\n if (!options.allow_numeric_tld && /^\\d+$/.test(tld)) {\n return false;\n }\n return parts.every(function (part) {\n if (part.length > 63 && !options.ignore_max_length) {\n return false;\n }\n if (!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n\n // disallow full-width chars\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n\n // disallow parts starting or ending with hyphen\n if (/^-|-$/.test(part)) {\n return false;\n }\n if (!options.allow_underscores && /_/.test(part)) {\n return false;\n }\n return true;\n });\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isURL;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _checkHost = _interopRequireDefault(require(\"./util/checkHost\"));\nvar _includesString = _interopRequireDefault(require(\"./util/includesString\"));\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n/*\noptions for isURL method\n\nprotocols - valid protocols can be modified with this option.\nrequire_tld - If set to false isURL will not check if the URL's host includes a top-level domain.\nrequire_protocol - if set to true isURL will return false if protocol is not present in the URL.\nrequire_host - if set to false isURL will not check if host is present in the URL.\nrequire_port - if set to true isURL will check if port is present in the URL.\nrequire_valid_protocol - isURL will check if the URL's protocol is present in the protocols option.\nallow_underscores - if set to true, the validator will allow underscores in the URL.\nhost_whitelist - if set to an array of strings or regexp, and the domain matches none of the strings\n defined in it, the validation fails.\nhost_blacklist - if set to an array of strings or regexp, and the domain matches any of the strings\n defined in it, the validation fails.\nallow_trailing_dot - if set to true, the validator will allow the domain to end with\n a `.` character.\nallow_protocol_relative_urls - if set to true protocol relative URLs will be allowed.\nallow_fragments - if set to false isURL will return false if fragments are present.\nallow_query_components - if set to false isURL will return false if query components are present.\ndisallow_auth - if set to true, the validator will fail if the URL contains an authentication\n component, e.g. `http://username:password@example.com`\nvalidate_length - if set to false isURL will skip string length validation. `max_allowed_length`\n will be ignored if this is set as `false`.\nmax_allowed_length - if set, isURL will not allow URLs longer than the specified value (default is\n 2084 that IE maximum URL length).\n\n*/\n\nvar default_url_options = {\n protocols: ['http', 'https', 'ftp'],\n require_tld: true,\n require_protocol: false,\n require_host: true,\n require_port: false,\n require_valid_protocol: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_protocol_relative_urls: false,\n allow_fragments: true,\n allow_query_components: true,\n validate_length: true,\n max_allowed_length: 2084\n};\nvar wrapped_ipv6 = /^\\[([^\\]]+)\\](?::([0-9]+))?$/;\nfunction isURL(url, options) {\n (0, _assertString.default)(url);\n if (!url || /[\\s<>]/.test(url)) {\n return false;\n }\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n options = (0, _merge.default)(options, default_url_options);\n if (options.validate_length && url.length > options.max_allowed_length) {\n return false;\n }\n if (!options.allow_fragments && (0, _includesString.default)(url, '#')) {\n return false;\n }\n if (!options.allow_query_components && ((0, _includesString.default)(url, '?') || (0, _includesString.default)(url, '&'))) {\n return false;\n }\n var protocol, auth, host, hostname, port, port_str, split, ipv6;\n split = url.split('#');\n url = split.shift();\n split = url.split('?');\n url = split.shift();\n\n // Replaced the 'split(\"://\")' logic with a regex to match the protocol.\n // This correctly identifies schemes like `javascript:` which don't use `//`.\n // However, we need to be careful not to confuse authentication credentials (user:password@host)\n // with protocols. A colon before an @ symbol might be part of auth, not a protocol separator.\n var protocol_match = url.match(/^([a-z][a-z0-9+\\-.]*):/i);\n var had_explicit_protocol = false;\n var cleanUpProtocol = function cleanUpProtocol(potential_protocol) {\n had_explicit_protocol = true;\n protocol = potential_protocol.toLowerCase();\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n // The identified protocol is not in the allowed list.\n return false;\n }\n\n // Remove the protocol from the URL string.\n return url.substring(protocol_match[0].length);\n };\n if (protocol_match) {\n var potential_protocol = protocol_match[1];\n var after_colon = url.substring(protocol_match[0].length);\n\n // Check if what follows looks like authentication credentials (user:password@host)\n // rather than a protocol. This happens when:\n // 1. There's no `//` after the colon (protocols like `http://` have this)\n // 2. There's an `@` symbol before any `/`\n // 3. The part before `@` contains only valid auth characters (alphanumeric, -, _, ., %, :)\n var starts_with_slashes = after_colon.slice(0, 2) === '//';\n if (!starts_with_slashes) {\n var first_slash_position = after_colon.indexOf('/');\n var before_slash = first_slash_position === -1 ? after_colon : after_colon.substring(0, first_slash_position);\n var at_position = before_slash.indexOf('@');\n if (at_position !== -1) {\n var before_at = before_slash.substring(0, at_position);\n var valid_auth_regex = /^[a-zA-Z0-9\\-_.%:]*$/;\n var is_valid_auth = valid_auth_regex.test(before_at);\n\n // Check if this contains URL-encoded content that could be malicious\n // For example: javascript:%61%6c%65%72%74%28%31%29@example.com\n // The encoded part decodes to: alert(1)\n var has_encoded_content = /%[0-9a-fA-F]{2}/.test(before_at);\n if (is_valid_auth && !has_encoded_content) {\n // This looks like authentication (e.g., user:password@host), not a protocol\n if (options.require_protocol) {\n return false;\n }\n\n // Don't consume the colon; let the auth parsing handle it later\n } else {\n // This looks like a malicious protocol (e.g., javascript:alert();@host)\n // or URL-encoded protocol handler (e.g., javascript:%61%6c%65%72%74%28%31%29@host)\n url = cleanUpProtocol(potential_protocol);\n if (url === false) {\n return false;\n }\n }\n } else {\n // No @ symbol found. Check if this could be a port number instead of a protocol.\n // If what's after the colon is numeric (or starts with a digit and contains only\n // valid port characters until a path separator), it's likely hostname:port, not a protocol.\n var looks_like_port = /^[0-9]/.test(after_colon);\n if (looks_like_port) {\n // This looks like hostname:port, not a protocol\n if (options.require_protocol) {\n return false;\n }\n // Don't consume anything; let it be parsed as hostname:port\n } else {\n // This is definitely a protocol\n url = cleanUpProtocol(potential_protocol);\n if (url === false) {\n return false;\n }\n }\n }\n } else {\n // Starts with '//', this is definitely a protocol like http://\n url = cleanUpProtocol(potential_protocol);\n if (url === false) {\n return false;\n }\n }\n } else if (options.require_protocol) {\n return false;\n }\n\n // Handle leading '//' only as protocol-relative when there was NO explicit protocol.\n // If there was an explicit protocol, '//' is the normal separator\n // and should be stripped unconditionally.\n if (url.slice(0, 2) === '//') {\n if (!had_explicit_protocol && !options.allow_protocol_relative_urls) {\n return false;\n }\n url = url.slice(2);\n }\n if (url === '') {\n return false;\n }\n split = url.split('/');\n url = split.shift();\n if (url === '' && !options.require_host) {\n return true;\n }\n split = url.split('@');\n if (split.length > 1) {\n if (options.disallow_auth) {\n return false;\n }\n if (split[0] === '') {\n return false;\n }\n auth = split.shift();\n if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n var _auth$split = auth.split(':'),\n _auth$split2 = _slicedToArray(_auth$split, 2),\n user = _auth$split2[0],\n password = _auth$split2[1];\n if (user === '' && password === '') {\n return false;\n }\n }\n hostname = split.join('@');\n port_str = null;\n ipv6 = null;\n var ipv6_match = hostname.match(wrapped_ipv6);\n if (ipv6_match) {\n host = '';\n ipv6 = ipv6_match[1];\n port_str = ipv6_match[2] || null;\n } else {\n split = hostname.split(':');\n host = split.shift();\n if (split.length) {\n port_str = split.join(':');\n }\n }\n if (port_str !== null && port_str.length > 0) {\n port = parseInt(port_str, 10);\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n } else if (options.require_port) {\n return false;\n }\n if (options.host_whitelist) {\n return (0, _checkHost.default)(host, options.host_whitelist);\n }\n if (host === '' && !options.require_host) {\n return true;\n }\n if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {\n return false;\n }\n host = host || ipv6;\n if (options.host_blacklist && (0, _checkHost.default)(host, options.host_blacklist)) {\n return false;\n }\n return true;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSlug;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;\nfunction isSlug(str) {\n (0, _assertString.default)(str);\n return charsetRegex.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar includes = function includes(arr, val) {\n return arr.some(function (arrVal) {\n return val === arrVal;\n });\n};\nvar _default = exports.default = includes;\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIBAN;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _includesArray = _interopRequireDefault(require(\"./util/includesArray\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/**\n * List of country codes with\n * corresponding IBAN regular expression\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n */\nvar ibanRegexThroughCountryCode = {\n AD: /^(AD[0-9]{2})\\d{8}[A-Z0-9]{12}$/,\n AE: /^(AE[0-9]{2})\\d{3}\\d{16}$/,\n AL: /^(AL[0-9]{2})\\d{8}[A-Z0-9]{16}$/,\n AT: /^(AT[0-9]{2})\\d{16}$/,\n AZ: /^(AZ[0-9]{2})[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z]{4}[A-Z0-9]{21}$/,\n RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,\n RS: /^(RS[0-9]{2})\\d{18}$/,\n SA: /^(SA[0-9]{2})\\d{2}[A-Z0-9]{18}$/,\n SC: /^(SC[0-9]{2})[A-Z]{4}\\d{20}[A-Z]{3}$/,\n SE: /^(SE[0-9]{2})\\d{20}$/,\n SI: /^(SI[0-9]{2})\\d{15}$/,\n SK: /^(SK[0-9]{2})\\d{20}$/,\n SM: /^(SM[0-9]{2})[A-Z]{1}\\d{10}[A-Z0-9]{12}$/,\n SV: /^(SV[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n TL: /^(TL[0-9]{2})\\d{19}$/,\n TN: /^(TN[0-9]{2})\\d{20}$/,\n TR: /^(TR[0-9]{2})\\d{5}[A-Z0-9]{17}$/,\n UA: /^(UA[0-9]{2})\\d{6}[A-Z0-9]{19}$/,\n VA: /^(VA[0-9]{2})\\d{18}$/,\n VG: /^(VG[0-9]{2})[A-Z]{4}\\d{16}$/,\n XK: /^(XK[0-9]{2})\\d{16}$/\n};\n\n/**\n * Check if the country codes passed are valid using the\n * ibanRegexThroughCountryCode as a reference\n *\n * @param {array} countryCodeArray\n * @return {boolean}\n */\n\nfunction hasOnlyValidCountryCodes(countryCodeArray) {\n var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {\n return !(countryCode in ibanRegexThroughCountryCode);\n });\n return countryCodeArrayFilteredWithObjectIbanCode.length === 0;\n}\n\n/**\n * Check whether string has correct universal IBAN format\n * The IBAN consists of up to 34 alphanumeric characters, as follows:\n * Country Code using ISO 3166-1 alpha-2, two letters\n * check digits, two digits and\n * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters.\n * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z]\n *\n * @param {string} str - string under validation\n * @param {object} options - object to pass the countries to be either whitelisted or blacklisted\n * @return {boolean}\n */\nfunction hasValidIbanFormat(str, options) {\n // Strip white spaces and hyphens\n var strippedStr = str.replace(/[\\s\\-]+/gi, '').toUpperCase();\n var isoCountryCode = strippedStr.slice(0, 2).toUpperCase();\n var isoCountryCodeInIbanRegexCodeObject = isoCountryCode in ibanRegexThroughCountryCode;\n if (options.whitelist) {\n if (!hasOnlyValidCountryCodes(options.whitelist)) {\n return false;\n }\n var isoCountryCodeInWhiteList = (0, _includesArray.default)(options.whitelist, isoCountryCode);\n if (!isoCountryCodeInWhiteList) {\n return false;\n }\n }\n if (options.blacklist) {\n var isoCountryCodeInBlackList = (0, _includesArray.default)(options.blacklist, isoCountryCode);\n if (isoCountryCodeInBlackList) {\n return false;\n }\n }\n return isoCountryCodeInIbanRegexCodeObject && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr);\n}\n\n/**\n * Check whether string has valid IBAN Checksum\n * by performing basic mod-97 operation and\n * the remainder should equal 1\n * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string\n * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35\n * -- Interpret the string as a decimal integer and\n * -- compute the remainder on division by 97 (mod 97)\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n *\n * @param {string} str\n * @return {boolean}\n */\nfunction hasValidIbanChecksum(str) {\n var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic\n var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4);\n var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (char) {\n return char.charCodeAt(0) - 55;\n });\n var remainder = alphaCapsReplacedWithDigits.match(/\\d{1,7}/g).reduce(function (acc, value) {\n return Number(acc + value) % 97;\n }, '');\n return remainder === 1;\n}\nfunction isIBAN(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(str);\n return hasValidIbanFormat(str, options) && hasValidIbanChecksum(str);\n}\nvar locales = exports.locales = Object.keys(ibanRegexThroughCountryCode);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isUUID;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar uuid = {\n 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 6: /^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 8: /^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n nil: /^00000000-0000-0000-0000-000000000000$/i,\n max: /^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,\n loose: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n // From https://github.com/uuidjs/uuid/blob/main/src/regex.js\n all: /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i\n};\nfunction isUUID(str, version) {\n (0, _assertString.default)(str);\n if (version === undefined || version === null) {\n version = 'all';\n }\n return version in uuid ? uuid[version].test(str) : false;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAscii;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/* eslint-disable no-control-regex */\nvar ascii = /^[\\x00-\\x7F]+$/;\n/* eslint-enable no-control-regex */\n\nfunction isAscii(str) {\n (0, _assertString.default)(str);\n return ascii.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isByteLength;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/* eslint-disable prefer-rest-params */\nfunction isByteLength(str, options) {\n (0, _assertString.default)(str);\n var min;\n var max;\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEmail;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _checkHost = _interopRequireDefault(require(\"./util/checkHost\"));\nvar _isByteLength = _interopRequireDefault(require(\"./isByteLength\"));\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar default_email_options = {\n allow_display_name: false,\n allow_underscores: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true,\n blacklisted_chars: '',\n ignore_max_length: false,\n host_blacklist: [],\n host_whitelist: []\n};\n\n/* eslint-disable max-len */\n/* eslint-disable no-control-regex */\nvar splitNameAddress = /^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)</i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A1-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nvar defaultMaxEmailLength = 254;\n/* eslint-enable max-len */\n/* eslint-enable no-control-regex */\n\n/**\n * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2\n * @param {String} display_name\n */\nfunction validateDisplayName(display_name) {\n var display_name_without_quotes = display_name.replace(/^\"(.+)\"$/, '$1');\n // display name with only spaces is not valid\n if (!display_name_without_quotes.trim()) {\n return false;\n }\n\n // check whether display name contains illegal character\n var contains_illegal = /[\\.\";<>]/.test(display_name_without_quotes);\n if (contains_illegal) {\n // if contains illegal characters,\n // must to be enclosed in double-quotes, otherwise it's not a valid display name\n if (display_name_without_quotes === display_name) {\n return false;\n }\n\n // the quotes in display name must start with character symbol \\\n var all_start_with_back_slash = display_name_without_quotes.split('\"').length === display_name_without_quotes.split('\\\\\"').length;\n if (!all_start_with_back_slash) {\n return false;\n }\n }\n return true;\n}\nfunction isEmail(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_email_options);\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(splitNameAddress);\n if (display_email) {\n var display_name = display_email[1];\n\n // Remove display name and angle brackets to get email address\n // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)\n str = str.replace(display_name, '').replace(/(^<|>$)/g, '');\n\n // sometimes need to trim the last space to get the display name\n // because there may be a space between display name and email address\n // eg. myname <address@gmail.com>\n // the display name is `myname` instead of `myname `, so need to trim the last space\n if (display_name.endsWith(' ')) {\n display_name = display_name.slice(0, -1);\n }\n if (!validateDisplayName(display_name)) {\n return false;\n }\n } else if (options.require_display_name) {\n return false;\n }\n }\n if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {\n return false;\n }\n var parts = str.split('@');\n var domain = parts.pop();\n var lower_domain = domain.toLowerCase();\n if (options.host_blacklist.length > 0 && (0, _checkHost.default)(lower_domain, options.host_blacklist)) {\n return false;\n }\n if (options.host_whitelist.length > 0 && !(0, _checkHost.default)(lower_domain, options.host_whitelist)) {\n return false;\n }\n var user = parts.join('@');\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase();\n\n // Removing sub-address from username before gmail validation\n var username = user.split('+')[0];\n\n // Dots are not included in gmail length restriction\n if (!(0, _isByteLength.default)(username.replace(/\\./g, ''), {\n min: 6,\n max: 30\n })) {\n return false;\n }\n var _user_parts = username.split('.');\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {\n max: 64\n }) || !(0, _isByteLength.default)(domain, {\n max: 254\n }))) {\n return false;\n }\n if (!(0, _isFQDN.default)(domain, {\n require_tld: options.require_tld,\n ignore_max_length: options.ignore_max_length,\n allow_underscores: options.allow_underscores\n })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n if (!(0, _isIP.default)(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n var noBracketdomain = domain.slice(1, -1);\n if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {\n return false;\n }\n }\n }\n if (options.blacklisted_chars) {\n if (user.search(new RegExp(\"[\".concat(options.blacklisted_chars, \"]+\"), 'g')) !== -1) return false;\n }\n if (user[0] === '\"' && user[user.length - 1] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n for (var _i = 0; _i < user_parts.length; _i++) {\n if (!pattern.test(user_parts[_i])) {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.farsiLocales = exports.englishLocales = exports.dotDecimal = exports.decimal = exports.commaDecimal = exports.bengaliLocales = exports.arabicLocales = exports.alphanumeric = exports.alpha = void 0;\nvar alpha = exports.alpha = {\n 'en-US': /^[A-Z]+$/i,\n 'az-AZ': /^[A-VXYZÇƏĞİıÖŞÜ]+$/i,\n 'bg-BG': /^[А-Я]+$/i,\n 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'da-DK': /^[A-ZÆØÅ]+$/i,\n 'de-DE': /^[A-ZÄÖÜß]+$/i,\n 'el-GR': /^[Α-ώ]+$/i,\n 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fa-IR': /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,\n 'fi-FI': /^[A-ZÅÄÖ]+$/i,\n 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,\n 'ja-JP': /^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,\n 'nb-NO': /^[A-ZÆØÅ]+$/i,\n 'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i,\n 'nn-NO': /^[A-ZÆØÅ]+$/i,\n 'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\n 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,\n 'ru-RU': /^[А-ЯЁ]+$/i,\n 'kk-KZ': /^[А-ЯЁ\\u04D8\\u04B0\\u0406\\u04A2\\u0492\\u04AE\\u049A\\u04E8\\u04BA]+$/i,\n 'sl-SI': /^[A-ZČĆĐŠŽ]+$/i,\n 'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\n 'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i,\n 'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i,\n 'sv-SE': /^[A-ZÅÄÖ]+$/i,\n 'th-TH': /^[ก-๐\\s]+$/i,\n 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,\n 'vi-VN': /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n 'ko-KR': /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,\n 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[א-ת]+$/,\n fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,\n bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,\n eo: /^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,\n 'hi-IN': /^[\\u0900-\\u0961]+[\\u0972-\\u097F]*$/i,\n 'si-LK': /^[\\u0D80-\\u0DFF]+$/,\n 'ta-IN': /^[\\u0B80-\\u0BFF]+$/i,\n 'te-IN': /^[\\u0C00-\\u0C7F]+$/i,\n 'kn-IN': /^[\\u0C80-\\u0CFF]+$/i,\n 'ml-IN': /^[\\u0D00-\\u0D7F]+$/i,\n 'gu-IN': /^[\\u0A80-\\u0AFF]+$/i,\n 'pa-IN': /^[\\u0A00-\\u0A7F]+$/i,\n 'or-IN': /^[\\u0B00-\\u0B7F]+$/i\n};\nvar alphanumeric = exports.alphanumeric = {\n 'en-US': /^[0-9A-Z]+$/i,\n 'az-AZ': /^[0-9A-VXYZÇ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R': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,\n 'ko-KR': /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,\n 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n 'vi-VN': /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[0-9א-ת]+$/,\n fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,\n bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,\n eo: /^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,\n 'hi-IN': /^[\\u0900-\\u0963]+[\\u0966-\\u097F]*$/i,\n 'si-LK': /^[0-9\\u0D80-\\u0DFF]+$/,\n 'ta-IN': /^[0-9\\u0B80-\\u0BFF.]+$/i,\n 'te-IN': /^[0-9\\u0C00-\\u0C7F.]+$/i,\n 'kn-IN': /^[0-9\\u0C80-\\u0CFF.]+$/i,\n 'ml-IN': /^[0-9\\u0D00-\\u0D7F.]+$/i,\n 'gu-IN': /^[0-9\\u0A80-\\u0AFF.]+$/i,\n 'pa-IN': /^[0-9\\u0A00-\\u0A7F.]+$/i,\n 'or-IN': /^[0-9\\u0B00-\\u0B7F.]+$/i\n};\nvar decimal = exports.decimal = {\n 'en-US': '.',\n ar: '٫'\n};\nvar englishLocales = exports.englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];\nfor (var locale, i = 0; i < englishLocales.length; i++) {\n locale = \"en-\".concat(englishLocales[i]);\n alpha[locale] = alpha['en-US'];\n alphanumeric[locale] = alphanumeric['en-US'];\n decimal[locale] = decimal['en-US'];\n}\n\n// Source: http://www.localeplanet.com/java/\nvar arabicLocales = exports.arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];\nfor (var _locale, _i = 0; _i < arabicLocales.length; _i++) {\n _locale = \"ar-\".concat(arabicLocales[_i]);\n alpha[_locale] = alpha.ar;\n alphanumeric[_locale] = alphanumeric.ar;\n decimal[_locale] = decimal.ar;\n}\nvar farsiLocales = exports.farsiLocales = ['IR', 'AF'];\nfor (var _locale2, _i2 = 0; _i2 < farsiLocales.length; _i2++) {\n _locale2 = \"fa-\".concat(farsiLocales[_i2]);\n alphanumeric[_locale2] = alphanumeric.fa;\n decimal[_locale2] = decimal.ar;\n}\nvar bengaliLocales = exports.bengaliLocales = ['BD', 'IN'];\nfor (var _locale3, _i3 = 0; _i3 < bengaliLocales.length; _i3++) {\n _locale3 = \"bn-\".concat(bengaliLocales[_i3]);\n alpha[_locale3] = alpha.bn;\n alphanumeric[_locale3] = alphanumeric.bn;\n decimal[_locale3] = decimal['en-US'];\n}\n\n// Source: https://en.wikipedia.org/wiki/Decimal_mark\nvar dotDecimal = exports.dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY'];\nvar commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'eo', 'es-ES', 'fr-CA', 'fr-FR', 'gu-IN', 'hi-IN', 'hu-HU', 'id-ID', 'it-IT', 'kk-KZ', 'kn-IN', 'ku-IQ', 'ml-IN', 'nb-NO', 'nl-NL', 'nn-NO', 'or-IN', 'pa-IN', 'pl-PL', 'pt-PT', 'ru-RU', 'si-LK', 'sl-SI', 'sr-RS', 'sr-RS@latin', 'sv-SE', 'ta-IN', 'te-IN', 'tr-TR', 'uk-UA', 'vi-VN'];\nfor (var _i4 = 0; _i4 < dotDecimal.length; _i4++) {\n decimal[dotDecimal[_i4]] = decimal['en-US'];\n}\nfor (var _i5 = 0; _i5 < commaDecimal.length; _i5++) {\n decimal[commaDecimal[_i5]] = ',';\n}\nalpha['fr-CA'] = alpha['fr-FR'];\nalphanumeric['fr-CA'] = alphanumeric['fr-FR'];\nalpha['pt-BR'] = alpha['pt-PT'];\nalphanumeric['pt-BR'] = alphanumeric['pt-PT'];\ndecimal['pt-BR'] = decimal['pt-PT'];\n\n// see #862\nalpha['pl-Pl'] = alpha['pl-PL'];\nalphanumeric['pl-Pl'] = alphanumeric['pl-PL'];\ndecimal['pl-Pl'] = decimal['pl-PL'];\n\n// see #1455\nalpha['fa-AF'] = alpha.fa;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlpha;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction isAlpha(_str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _assertString.default)(_str);\n var str = _str;\n var ignore = options.ignore;\n if (ignore) {\n if (ignore instanceof RegExp) {\n str = str.replace(ignore, '');\n } else if (typeof ignore === 'string') {\n str = str.replace(new RegExp(\"[\".concat(ignore.replace(/[-[\\]{}()*+?.,\\\\^$|#\\\\s]/g, '\\\\$&'), \"]\"), 'g'), ''); // escape regex for ignore\n } else {\n throw new Error('ignore should be instance of a String or RegExp');\n }\n }\n if (locale in _alpha.alpha) {\n return _alpha.alpha[locale].test(str);\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(_alpha.alpha);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLatLong;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nvar _includesString = _interopRequireDefault(require(\"./util/includesString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar lat = /^\\(?[+-]?(90(\\.0+)?|[1-8]?\\d(\\.\\d+)?)$/;\nvar long = /^\\s?[+-]?(180(\\.0+)?|1[0-7]\\d(\\.\\d+)?|\\d{1,2}(\\.\\d+)?)\\)?$/;\nvar latDMS = /^(([1-8]?\\d)\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|90\\D+0\\D+0)\\D+[NSns]?$/i;\nvar longDMS = /^\\s*([1-7]?\\d{1,2}\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|180\\D+0\\D+0)\\D+[EWew]?$/i;\nvar defaultLatLongOptions = {\n checkDMS: false\n};\nfunction isLatLong(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaultLatLongOptions);\n if (!(0, _includesString.default)(str, ',')) return false;\n var pair = str.split(',');\n if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false;\n if (options.checkDMS) {\n return latDMS.test(pair[0]) && longDMS.test(pair[1]);\n }\n return lat.test(pair[0]) && long.test(pair[1]);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDecimal;\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _includesArray = _interopRequireDefault(require(\"./util/includesArray\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction decimalRegExp(options) {\n var regExp = new RegExp(\"^[-+]?([0-9]+)?(\\\\\".concat(_alpha.decimal[options.locale], \"[0-9]{\").concat(options.decimal_digits, \"})\").concat(options.force_decimal ? '' : '?', \"$\"));\n return regExp;\n}\nvar default_decimal_options = {\n force_decimal: false,\n decimal_digits: '1,',\n locale: 'en-US'\n};\nvar blacklist = ['', '-', '+'];\nfunction isDecimal(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_decimal_options);\n if (options.locale in _alpha.decimal) {\n return !(0, _includesArray.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str);\n }\n throw new Error(\"Invalid locale '\".concat(options.locale, \"'\"));\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHexColor;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;\nvar hexcolor_with_prefix = /^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;\nvar default_is_hexcolor_options = {\n require_hashtag: false\n};\nfunction isHexColor(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_is_hexcolor_options);\n var hexcolor_regex = options.require_hashtag ? hexcolor_with_prefix : hexcolor;\n return hexcolor_regex.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLuhnNumber;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction isLuhnNumber(str) {\n (0, _assertString.default)(str);\n var sanitized = str.replace(/[- ]+/g, '');\n var sum = 0;\n var digit;\n var tmpNum;\n var shouldDouble;\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum % 10 + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return !!(sum % 10 === 0 ? sanitized : false);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isCreditCard;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isLuhnNumber = _interopRequireDefault(require(\"./isLuhnNumber\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar cards = {\n amex: /^3[47][0-9]{13}$/,\n dinersclub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,\n discover: /^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,\n jcb: /^(?:2131|1800|35\\d{3})\\d{11}$/,\n mastercard: /^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,\n // /^[25][1-7][0-9]{14}$/;\n unionpay: /^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,\n visa: /^(?:4[0-9]{12})(?:[0-9]{3,6})?$/\n};\nvar allCards = function () {\n var tmpCardsArray = [];\n for (var cardProvider in cards) {\n // istanbul ignore else\n if (cards.hasOwnProperty(cardProvider)) {\n tmpCardsArray.push(cards[cardProvider]);\n }\n }\n return tmpCardsArray;\n}();\nfunction isCreditCard(card) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(card);\n var provider = options.provider;\n var sanitized = card.replace(/[- ]+/g, '');\n if (provider && provider.toLowerCase() in cards) {\n // specific provider in the list\n if (!cards[provider.toLowerCase()].test(sanitized)) {\n return false;\n }\n } else if (provider && !(provider.toLowerCase() in cards)) {\n /* specific provider not in the list */\n throw new Error(\"\".concat(provider, \" is not a valid credit card provider.\"));\n } else if (!allCards.some(function (cardProvider) {\n return cardProvider.test(sanitized);\n })) {\n // no specific provider\n return false;\n }\n return (0, _isLuhnNumber.default)(card);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));","!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlphanumeric;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction isAlphanumeric(_str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _assertString.default)(_str);\n var str = _str;\n var ignore = options.ignore;\n if (ignore) {\n if (ignore instanceof RegExp) {\n str = str.replace(ignore, '');\n } else if (typeof ignore === 'string') {\n str = str.replace(new RegExp(\"[\".concat(ignore.replace(/[-[\\]{}()*+?.,\\\\^$|#\\\\s]/g, '\\\\$&'), \"]\"), 'g'), ''); // escape regex for ignore\n } else {\n throw new Error('ignore should be instance of a String or RegExp');\n }\n }\n if (locale in _alpha.alphanumeric) {\n return _alpha.alphanumeric[locale].test(str);\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(_alpha.alphanumeric);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPassportNumber;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/**\n * Reference:\n * https://en.wikipedia.org/ -- Wikipedia\n * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number\n * https://countrycode.org/ -- Country Codes\n */\nvar passportRegexByCountryCode = {\n AM: /^[A-Z]{2}\\d{7}$/,\n // ARMENIA\n AR: /^[A-Z]{3}\\d{6}$/,\n // ARGENTINA\n AT: /^[A-Z]\\d{7}$/,\n // AUSTRIA\n AU: /^[A-Z]\\d{7}$/,\n // AUSTRALIA\n AZ: /^[A-Z]{1}\\d{8}$/,\n // AZERBAIJAN\n BE: /^[A-Z]{2}\\d{6}$/,\n // BELGIUM\n BG: /^\\d{9}$/,\n // BULGARIA\n BR: /^[A-Z]{2}\\d{6}$/,\n // BRAZIL\n BY: /^[A-Z]{2}\\d{7}$/,\n // BELARUS\n CA: /^[A-Z]{2}\\d{6}$|^[A-Z]\\d{6}[A-Z]{2}$/,\n // CANADA\n CH: /^[A-Z]\\d{7}$/,\n // SWITZERLAND\n CN: /^G\\d{8}$|^E(?![IO])[A-Z0-9]\\d{7}$/,\n // CHINA [G=Ordinary, E=Electronic] followed by 8-digits, or E followed by any UPPERCASE letter (except I and O) followed by 7 digits\n CY: /^[A-Z](\\d{6}|\\d{8})$/,\n // CYPRUS\n CZ: /^\\d{8}$/,\n // CZECH REPUBLIC\n DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,\n // GERMANY\n DK: /^\\d{9}$/,\n // DENMARK\n DZ: /^\\d{9}$/,\n // ALGERIA\n EE: /^([A-Z]\\d{7}|[A-Z]{2}\\d{7})$/,\n // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits\n ES: /^[A-Z0-9]{2}([A-Z0-9]?)\\d{6}$/,\n // SPAIN\n FI: /^[A-Z]{2}\\d{7}$/,\n // FINLAND\n FR: /^\\d{2}[A-Z]{2}\\d{5}$/,\n // FRANCE\n GB: /^\\d{9}$/,\n // UNITED KINGDOM\n GR: /^[A-Z]{2}\\d{7}$/,\n // GREECE\n HR: /^\\d{9}$/,\n // CROATIA\n HU: /^[A-Z]{2}(\\d{6}|\\d{7})$/,\n // HUNGARY\n IE: /^[A-Z0-9]{2}\\d{7}$/,\n // IRELAND\n IN: /^[A-Z]{1}-?\\d{7}$/,\n // INDIA\n ID: /^[A-C]\\d{7}$/,\n // INDONESIA\n IR: /^[A-Z]\\d{8}$/,\n // IRAN\n IS: /^(A)\\d{7}$/,\n // ICELAND\n IT: /^[A-Z0-9]{2}\\d{7}$/,\n // ITALY\n JM: /^[Aa]\\d{7}$/,\n // JAMAICA\n JP: /^[A-Z]{2}\\d{7}$/,\n // JAPAN\n KR: /^[MS]\\d{8}$/,\n // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports]\n KZ: /^[a-zA-Z]\\d{7}$/,\n // KAZAKHSTAN\n LI: /^[a-zA-Z]\\d{5}$/,\n // LIECHTENSTEIN\n LT: /^[A-Z0-9]{8}$/,\n // LITHUANIA\n LU: /^[A-Z0-9]{8}$/,\n // LUXEMBURG\n LV: /^[A-Z0-9]{2}\\d{7}$/,\n // LATVIA\n LY: /^[A-Z0-9]{8}$/,\n // LIBYA\n MT: /^\\d{7}$/,\n // MALTA\n MZ: /^([A-Z]{2}\\d{7})|(\\d{2}[A-Z]{2}\\d{5})$/,\n // MOZAMBIQUE\n MY: /^[AHK]\\d{8}$/,\n // MALAYSIA\n MX: /^[A-Z]\\d{8}$/,\n // MEXICO\n NL: /^[A-Z]{2}[A-Z0-9]{6}\\d$/,\n // NETHERLANDS\n NZ: /^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\\d{6}$/,\n // NEW ZEALAND\n PH: /^([A-Z](\\d{6}|\\d{7}[A-Z]))|([A-Z]{2}(\\d{6}|\\d{7}))$/,\n // PHILIPPINES\n PK: /^[A-Z]{2}\\d{7}$/,\n // PAKISTAN\n PL: /^[A-Z]{2}\\d{7}$/,\n // POLAND\n PT: /^[A-Z]\\d{6}$/,\n // PORTUGAL\n RO: /^\\d{8,9}$/,\n // ROMANIA\n RU: /^\\d{9}$/,\n // RUSSIAN FEDERATION\n SE: /^\\d{8}$/,\n // SWEDEN\n SL: /^(P)[A-Z]\\d{7}$/,\n // SLOVENIA\n SK: /^[0-9A-Z]\\d{7}$/,\n // SLOVAKIA\n TH: /^[A-Z]{1,2}\\d{6,7}$/,\n // THAILAND\n TR: /^[A-Z]\\d{8}$/,\n // TURKEY\n UA: /^[A-Z]{2}\\d{6}$/,\n // UKRAINE\n US: /^\\d{9}$|^[A-Z]\\d{8}$/,\n // UNITED STATES\n ZA: /^[TAMD]\\d{8}$/ // SOUTH AFRICA\n};\nvar locales = exports.locales = Object.keys(passportRegexByCountryCode);\n\n/**\n * Check if str is a valid passport number\n * relative to provided ISO Country Code.\n *\n * @param {string} str\n * @param {string} countryCode\n * @return {boolean}\n */\nfunction isPassportNumber(str, countryCode) {\n (0, _assertString.default)(str);\n /** Remove All Whitespaces, Convert to UPPERCASE */\n var normalizedStr = str.replace(/\\s/g, '').toUpperCase();\n return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.iso7064Check = iso7064Check;\nexports.luhnCheck = luhnCheck;\nexports.reverseMultiplyAndSum = reverseMultiplyAndSum;\nexports.verhoeffCheck = verhoeffCheck;\n/**\n * Algorithmic validation functions\n * May be used as is or implemented in the workflow of other validators.\n */\n\n/*\n * ISO 7064 validation function\n * Called with a string of numbers (incl. check digit)\n * to validate according to ISO 7064 (MOD 11, 10).\n */\nfunction iso7064Check(str) {\n var checkvalue = 10;\n for (var i = 0; i < str.length - 1; i++) {\n checkvalue = (parseInt(str[i], 10) + checkvalue) % 10 === 0 ? 10 * 2 % 11 : (parseInt(str[i], 10) + checkvalue) % 10 * 2 % 11;\n }\n checkvalue = checkvalue === 1 ? 0 : 11 - checkvalue;\n return checkvalue === parseInt(str[10], 10);\n}\n\n/*\n * Luhn (mod 10) validation function\n * Called with a string of numbers (incl. check digit)\n * to validate according to the Luhn algorithm.\n */\nfunction luhnCheck(str) {\n var checksum = 0;\n var second = false;\n for (var i = str.length - 1; i >= 0; i--) {\n if (second) {\n var product = parseInt(str[i], 10) * 2;\n if (product > 9) {\n // sum digits of product and add to checksum\n checksum += product.toString().split('').map(function (a) {\n return parseInt(a, 10);\n }).reduce(function (a, b) {\n return a + b;\n }, 0);\n } else {\n checksum += product;\n }\n } else {\n checksum += parseInt(str[i], 10);\n }\n second = !second;\n }\n return checksum % 10 === 0;\n}\n\n/*\n * Reverse TIN multiplication and summation helper function\n * Called with an array of single-digit integers and a base multiplier\n * to calculate the sum of the digits multiplied in reverse.\n * Normally used in variations of MOD 11 algorithmic checks.\n */\nfunction reverseMultiplyAndSum(digits, base) {\n var total = 0;\n for (var i = 0; i < digits.length; i++) {\n total += digits[i] * (base - i);\n }\n return total;\n}\n\n/*\n * Verhoeff validation helper function\n * Called with a string of numbers\n * to validate according to the Verhoeff algorithm.\n */\nfunction verhoeffCheck(str) {\n var d_table = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]];\n var p_table = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]];\n\n // Copy (to prevent replacement) and reverse\n var str_copy = str.split('').reverse().join('');\n var checksum = 0;\n for (var i = 0; i < str_copy.length; i++) {\n checksum = d_table[checksum][p_table[i % 8][parseInt(str_copy[i], 10)]];\n }\n return checksum === 0;\n}","\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isVAT;\nexports.vatMatchers = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar algorithms = _interopRequireWildcard(require(\"./util/algorithms\"));\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) \"default\" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar AU = function AU(str) {\n var match = str.match(/^(AU)?(\\d{11})$/);\n if (!match) {\n return false;\n }\n // @see {@link https://abr.business.gov.au/Help/AbnFormat}\n var weights = [10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19];\n str = str.replace(/^AU/, '');\n var ABN = (parseInt(str.slice(0, 1), 10) - 1).toString() + str.slice(1);\n var total = 0;\n for (var i = 0; i < 11; i++) {\n total += weights[i] * ABN.charAt(i);\n }\n return total !== 0 && total % 89 === 0;\n};\nvar CH = function CH(str) {\n // @see {@link https://www.ech.ch/de/ech/ech-0097/5.2.0}\n var hasValidCheckNumber = function hasValidCheckNumber(digits) {\n var lastDigit = digits.pop(); // used as check number\n var weights = [5, 4, 3, 2, 7, 6, 5, 4];\n var calculatedCheckNumber = (11 - digits.reduce(function (acc, el, idx) {\n return acc + el * weights[idx];\n }, 0) % 11) % 11;\n return lastDigit === calculatedCheckNumber;\n };\n\n // @see {@link https://www.estv.admin.ch/estv/de/home/mehrwertsteuer/uid/mwst-uid-nummer.html}\n return /^(CHE[- ]?)?(\\d{9}|(\\d{3}\\.\\d{3}\\.\\d{3})|(\\d{3} \\d{3} \\d{3})) ?(TVA|MWST|IVA)?$/.test(str) && hasValidCheckNumber(str.match(/\\d/g).map(function (el) {\n return +el;\n }));\n};\nvar PT = function PT(str) {\n var match = str.match(/^(PT)?(\\d{9})$/);\n if (!match) {\n return false;\n }\n var tin = match[2];\n var checksum = 11 - algorithms.reverseMultiplyAndSum(tin.split('').slice(0, 8).map(function (a) {\n return parseInt(a, 10);\n }), 9) % 11;\n if (checksum > 9) {\n return parseInt(tin[8], 10) === 0;\n }\n return checksum === parseInt(tin[8], 10);\n};\nvar vatMatchers = exports.vatMatchers = {\n /**\r\n * European Union VAT identification numbers\r\n */\n AT: function AT(str) {\n return /^(AT)?U\\d{8}$/.test(str);\n },\n BE: function BE(str) {\n return /^(BE)?\\d{10}$/.test(str);\n },\n BG: function BG(str) {\n return /^(BG)?\\d{9,10}$/.test(str);\n },\n HR: function HR(str) {\n return /^(HR)?\\d{11}$/.test(str);\n },\n CY: function CY(str) {\n return /^(CY)?\\w{9}$/.test(str);\n },\n CZ: function CZ(str) {\n return /^(CZ)?\\d{8,10}$/.test(str);\n },\n DK: function DK(str) {\n return /^(DK)?\\d{8}$/.test(str);\n },\n EE: function EE(str) {\n return /^(EE)?\\d{9}$/.test(str);\n },\n FI: function FI(str) {\n return /^(FI)?\\d{8}$/.test(str);\n },\n FR: function FR(str) {\n return /^(FR)([A-Z0-9]{2}\\d{9})$/.test(str);\n },\n DE: function DE(str) {\n return /^(DE)?\\d{9}$/.test(str);\n },\n EL: function EL(str) {\n return /^(EL)?\\d{9}$/.test(str);\n },\n HU: function HU(str) {\n return /^(HU)?\\d{8}$/.test(str);\n },\n IE: function IE(str) {\n return /^(IE)?\\d{7}\\w{1}(W)?$/.test(str);\n },\n IT: function IT(str) {\n return /^(IT)?\\d{11}$/.test(str);\n },\n LV: function LV(str) {\n return /^(LV)?\\d{11}$/.test(str);\n },\n LT: function LT(str) {\n return /^(LT)?\\d{9,12}$/.test(str);\n },\n LU: function LU(str) {\n return /^(LU)?\\d{8}$/.test(str);\n },\n MT: function MT(str) {\n return /^(MT)?\\d{8}$/.test(str);\n },\n NL: function NL(str) {\n return /^(NL)?\\d{9}B\\d{2}$/.test(str);\n },\n PL: function PL(str) {\n return /^(PL)?(\\d{10}|(\\d{3}-\\d{3}-\\d{2}-\\d{2})|(\\d{3}-\\d{2}-\\d{2}-\\d{3}))$/.test(str);\n },\n PT: PT,\n RO: function RO(str) {\n return /^(RO)?\\d{2,10}$/.test(str);\n },\n SK: function SK(str) {\n return /^(SK)?\\d{10}$/.test(str);\n },\n SI: function SI(str) {\n return /^(SI)?\\d{8}$/.test(str);\n },\n ES: function ES(str) {\n return /^(ES)?\\w\\d{7}[A-Z]$/.test(str);\n },\n SE: function SE(str) {\n return /^(SE)?\\d{12}$/.test(str);\n },\n /**\r\n * VAT numbers of non-EU countries\r\n */\n AL: function AL(str) {\n return /^(AL)?\\w{9}[A-Z]$/.test(str);\n },\n MK: function MK(str) {\n return /^(MK)?\\d{13}$/.test(str);\n },\n AU: AU,\n BY: function BY(str) {\n return /^(УНП )?\\d{9}$/.test(str);\n },\n CA: function CA(str) {\n return /^(CA)?\\d{9}$/.test(str);\n },\n IS: function IS(str) {\n return /^(IS)?\\d{5,6}$/.test(str);\n },\n IN: function IN(str) {\n return /^(IN)?\\d{15}$/.test(str);\n },\n ID: function ID(str) {\n return /^(ID)?(\\d{15}|(\\d{2}.\\d{3}.\\d{3}.\\d{1}-\\d{3}.\\d{3}))$/.test(str);\n },\n IL: function IL(str) {\n return /^(IL)?\\d{9}$/.test(str);\n },\n KZ: function KZ(str) {\n return /^(KZ)?\\d{12}$/.test(str);\n },\n NZ: function NZ(str) {\n return /^(NZ)?\\d{9}$/.test(str);\n },\n NG: function NG(str) {\n return /^(NG)?(\\d{12}|(\\d{8}-\\d{4}))$/.test(str);\n },\n NO: function NO(str) {\n return /^(NO)?\\d{9}MVA$/.test(str);\n },\n PH: function PH(str) {\n return /^(PH)?(\\d{12}|\\d{3} \\d{3} \\d{3} \\d{3})$/.test(str);\n },\n RU: function RU(str) {\n return /^(RU)?(\\d{10}|\\d{12})$/.test(str);\n },\n SM: function SM(str) {\n return /^(SM)?\\d{5}$/.test(str);\n },\n SA: function SA(str) {\n return /^(SA)?\\d{15}$/.test(str);\n },\n RS: function RS(str) {\n return /^(RS)?\\d{9}$/.test(str);\n },\n CH: CH,\n TR: function TR(str) {\n return /^(TR)?\\d{10}$/.test(str);\n },\n UA: function UA(str) {\n return /^(UA)?\\d{12}$/.test(str);\n },\n GB: function GB(str) {\n return /^GB((\\d{3} \\d{4} ([0-8][0-9]|9[0-6]))|(\\d{9} \\d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(str);\n },\n UZ: function UZ(str) {\n return /^(UZ)?\\d{9}$/.test(str);\n },\n /**\r\n * VAT numbers of Latin American countries\r\n */\n AR: function AR(str) {\n return /^(AR)?\\d{11}$/.test(str);\n },\n BO: function BO(str) {\n return /^(BO)?\\d{7}$/.test(str);\n },\n BR: function BR(str) {\n return /^(BR)?((\\d{2}.\\d{3}.\\d{3}\\/\\d{4}-\\d{2})|(\\d{3}.\\d{3}.\\d{3}-\\d{2}))$/.test(str);\n },\n CL: function CL(str) {\n return /^(CL)?\\d{8}-\\d{1}$/.test(str);\n },\n CO: function CO(str) {\n return /^(CO)?\\d{10}$/.test(str);\n },\n CR: function CR(str) {\n return /^(CR)?\\d{9,12}$/.test(str);\n },\n EC: function EC(str) {\n return /^(EC)?\\d{13}$/.test(str);\n },\n SV: function SV(str) {\n return /^(SV)?\\d{4}-\\d{6}-\\d{3}-\\d{1}$/.test(str);\n },\n GT: function GT(str) {\n return /^(GT)?\\d{7}-\\d{1}$/.test(str);\n },\n HN: function HN(str) {\n return /^(HN)?$/.test(str);\n },\n MX: function MX(str) {\n return /^(MX)?\\w{3,4}\\d{6}\\w{3}$/.test(str);\n },\n NI: function NI(str) {\n return /^(NI)?\\d{3}-\\d{6}-\\d{4}\\w{1}$/.test(str);\n },\n PA: function PA(str) {\n return /^(PA)?$/.test(str);\n },\n PY: function PY(str) {\n return /^(PY)?\\d{6,8}-\\d{1}$/.test(str);\n },\n PE: function PE(str) {\n return /^(PE)?\\d{11}$/.test(str);\n },\n DO: function DO(str) {\n return /^(DO)?(\\d{11}|(\\d{3}-\\d{7}-\\d{1})|[1,4,5]{1}\\d{8}|([1,4,5]{1})-\\d{2}-\\d{5}-\\d{1})$/.test(str);\n },\n UY: function UY(str) {\n return /^(UY)?\\d{12}$/.test(str);\n },\n VE: function VE(str) {\n return /^(VE)?[J,G,V,E]{1}-(\\d{9}|(\\d{8}-\\d{1}))$/.test(str);\n }\n};\nfunction isVAT(str, countryCode) {\n (0, _assertString.default)(str);\n (0, _assertString.default)(countryCode);\n if (countryCode in vatMatchers) {\n return vatMatchers[countryCode](str);\n }\n throw new Error(\"Invalid country code: '\".concat(countryCode, \"'\"));\n}","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if(\"string\"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if(\"string\"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPostalCode;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n// common patterns\nvar threeDigit = /^\\d{3}$/;\nvar fourDigit = /^\\d{4}$/;\nvar fiveDigit = /^\\d{5}$/;\nvar sixDigit = /^\\d{6}$/;\nvar patterns = {\n AD: /^AD\\d{3}$/,\n AT: fourDigit,\n AU: fourDigit,\n AZ: /^AZ\\d{4}$/,\n BA: /^([7-8]\\d{4}$)/,\n BD: /^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,\n BE: fourDigit,\n BG: fourDigit,\n BR: /^\\d{5}-?\\d{3}$/,\n BY: /^2[1-4]\\d{4}$/,\n CA: /^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][\\s\\-]?\\d[ABCEGHJ-NPRSTV-Z]\\d$/i,\n CH: fourDigit,\n CN: /^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\\d{4}$/,\n CO: /^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\\d{4})$/,\n CZ: /^\\d{3}\\s?\\d{2}$/,\n DE: fiveDigit,\n DK: fourDigit,\n DO: fiveDigit,\n DZ: fiveDigit,\n EE: fiveDigit,\n ES: /^(5[0-2]{1}|[0-4]{1}\\d{1})\\d{3}$/,\n FI: fiveDigit,\n FR: /^(?:(?:0[1-9]|[1-8]\\d|9[0-5])\\d{3}|97[1-46]\\d{2})$/,\n GB: /^(gir\\s?0aa|[a-z]{1,2}\\d[\\da-z]?\\s?(\\d[a-z]{2})?)$/i,\n GR: /^\\d{3}\\s?\\d{2}$/,\n HR: /^([1-5]\\d{4}$)/,\n HT: /^HT\\d{4}$/,\n HU: fourDigit,\n ID: fiveDigit,\n IE: /^(?!.*(?:o))[A-Za-z]\\d[\\dw]\\s\\w{4}$/i,\n IL: /^(\\d{5}|\\d{7})$/,\n IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,\n IR: /^(?!(\\d)\\1{3})[13-9]{4}[1346-9][013-9]{5}$/,\n IS: threeDigit,\n IT: fiveDigit,\n JP: /^\\d{3}\\-\\d{4}$/,\n KE: fiveDigit,\n KR: /^(\\d{5}|\\d{6})$/,\n LI: /^(948[5-9]|949[0-7])$/,\n LT: /^LT\\-\\d{5}$/,\n LU: fourDigit,\n LV: /^LV\\-\\d{4}$/,\n LK: fiveDigit,\n MC: /^980\\d{2}$/,\n MG: threeDigit,\n MX: fiveDigit,\n MT: /^[A-Za-z]{3}\\s{0,1}\\d{4}$/,\n MY: fiveDigit,\n NL: /^[1-9]\\d{3}\\s?(?!sa|sd|ss)[a-z]{2}$/i,\n NO: fourDigit,\n NP: /^(10|21|22|32|33|34|44|45|56|57)\\d{3}$|^(977)$/i,\n NZ: fourDigit,\n // https://www.pakpost.gov.pk/postcodes.php\n PK: fiveDigit,\n PL: /^\\d{2}\\-\\d{3}$/,\n PR: /^00[679]\\d{2}([ -]\\d{4})?$/,\n PT: /^\\d{4}\\-\\d{3}?$/,\n RO: sixDigit,\n RU: sixDigit,\n SA: fiveDigit,\n SE: /^[1-9]\\d{2}\\s?\\d{2}$/,\n SG: sixDigit,\n SI: fourDigit,\n SK: /^\\d{3}\\s?\\d{2}$/,\n TH: fiveDigit,\n TN: fourDigit,\n TW: /^\\d{3}(\\d{2,3})?$/,\n UA: fiveDigit,\n US: /^\\d{5}(-\\d{4})?$/,\n ZA: fourDigit,\n ZM: fiveDigit\n};\nvar locales = exports.locales = Object.keys(patterns);\nfunction isPostalCode(str, locale) {\n (0, _assertString.default)(str);\n if (locale in patterns) {\n return patterns[locale].test(str);\n } else if (locale === 'any') {\n for (var key in patterns) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (patterns.hasOwnProperty(key)) {\n var pattern = patterns[key];\n if (pattern.test(str)) {\n return true;\n }\n }\n }\n return false;\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMobilePhone;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/* eslint-disable max-len */\nvar phones = {\n 'am-AM': /^(\\+?374|0)(33|4[134]|55|77|88|9[13-689])\\d{6}$/,\n 'ar-AE': /^((\\+?971)|0)?5[024568]\\d{7}$/,\n 'ar-BH': /^(\\+?973)?(3|6)\\d{7}$/,\n 'ar-DZ': /^(\\+?213|0)(5|6|7)\\d{8}$/,\n 'ar-LB': /^(\\+?961)?((3|81)\\d{6}|7\\d{7})$/,\n 'ar-EG': /^((\\+?20)|0)?1[0125]\\d{8}$/,\n 'ar-IQ': /^(\\+?964|0)?7[0-9]\\d{8}$/,\n 'ar-JO': /^(\\+?962|0)?7[789]\\d{7}$/,\n 'ar-KW': /^(\\+?965)([569]\\d{7}|41\\d{6})$/,\n 'ar-LY': /^((\\+?218)|0)?(9[1-6]\\d{7}|[1-8]\\d{7,9})$/,\n 'ar-MA': /^(?:(?:\\+|00)212|0)[5-7]\\d{8}$/,\n 'ar-OM': /^((\\+|00)968)?([79][1-9])\\d{6}$/,\n 'ar-PS': /^(\\+?970|0)5[6|9](\\d{7})$/,\n 'ar-SA': /^(!?(\\+?966)|0)?5\\d{8}$/,\n 'ar-SD': /^((\\+?249)|0)?(9[012369]|1[012])\\d{7}$/,\n 'ar-SY': /^(!?(\\+?963)|0)?9\\d{8}$/,\n 'ar-TN': /^(\\+?216)?[2459]\\d{7}$/,\n 'az-AZ': /^(\\+994|0)(10|5[015]|7[07]|99)\\d{7}$/,\n 'ar-QA': /^(\\+?974|0)?([3567]\\d{7})$/,\n 'bs-BA': /^((((\\+|00)3876)|06))((([0-3]|[5-6])\\d{6})|(4\\d{7}))$/,\n 'be-BY': /^(\\+?375)?(24|25|29|33|44)\\d{7}$/,\n 'bg-BG': /^(\\+?359|0)?8[789]\\d{7}$/,\n 'bn-BD': /^(\\+?880|0)1[13456789][0-9]{8}$/,\n 'ca-AD': /^(\\+376)?[346]\\d{5}$/,\n 'cs-CZ': /^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'da-DK': /^(\\+?45)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'de-DE': /^((\\+49|0)1)(5[0-25-9]\\d|6([23]|0\\d?)|7([0-57-9]|6\\d))\\d{7,9}$/,\n 'de-AT': /^(\\+43|0)\\d{1,4}\\d{3,12}$/,\n 'de-CH': /^(\\+41|0)([1-9])\\d{1,9}$/,\n 'de-LU': /^(\\+352)?((6\\d1)\\d{6})$/,\n 'dv-MV': /^(\\+?960)?(7[2-9]|9[1-9])\\d{5}$/,\n 'el-GR': /^(\\+?30|0)?6(8[5-9]|9(?![26])[0-9])\\d{7}$/,\n 'el-CY': /^(\\+?357?)?(9(9|7|6|5|4)\\d{6})$/,\n 'en-AI': /^(\\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\\d{4}$/,\n 'en-AU': /^(\\+?61|0)4\\d{8}$/,\n 'en-AG': /^(?:\\+1|1)268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}$/,\n 'en-BM': /^(\\+?1)?441(((3|7)\\d{6}$)|(5[0-3][0-9]\\d{4}$)|(59\\d{5}$))/,\n 'en-BS': /^(\\+?1[-\\s]?|0)?\\(?242\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$/,\n 'en-GB': /^(\\+?44|0)7[1-9]\\d{8}$/,\n 'en-GG': /^(\\+?44|0)1481\\d{6}$/,\n 'en-GH': /^(\\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\\d{7}$/,\n 'en-GY': /^(\\+592|0)6\\d{6}$/,\n 'en-HK': /^(\\+?852[-\\s]?)?[456789]\\d{3}[-\\s]?\\d{4}$/,\n 'en-MO': /^(\\+?853[-\\s]?)?[6]\\d{3}[-\\s]?\\d{4}$/,\n 'en-IE': /^(\\+?353|0)8[356789]\\d{7}$/,\n 'en-IN': /^(\\+?91|0)?[6789]\\d{9}$/,\n 'en-JM': /^(\\+?876)?\\d{7}$/,\n 'en-KE': /^(\\+?254|0)(7|1)\\d{8}$/,\n 'fr-CF': /^(\\+?236| ?)(70|75|77|72|21|22)\\d{6}$/,\n 'en-SS': /^(\\+?211|0)(9[1257])\\d{7}$/,\n 'en-KI': /^((\\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,\n 'en-KN': /^(?:\\+1|1)869(?:46\\d|48[89]|55[6-8]|66\\d|76[02-7])\\d{4}$/,\n 'en-LS': /^(\\+?266)(22|28|57|58|59|27|52)\\d{6}$/,\n 'en-MT': /^(\\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,\n 'en-MU': /^(\\+?230|0)?\\d{8}$/,\n 'en-MW': /^(\\+?265|0)(((77|88|31|99|98|21)\\d{7})|(((111)|1)\\d{6})|(32000\\d{4}))$/,\n 'en-NA': /^(\\+?264|0)(6|8)\\d{7}$/,\n 'en-NG': /^(\\+?234|0)?[789]\\d{9}$/,\n 'en-NZ': /^(\\+?64|0)[28]\\d{7,9}$/,\n 'en-PG': /^(\\+?675|0)?(7\\d|8[18])\\d{6}$/,\n 'en-PK': /^((00|\\+)?92|0)3[0-6]\\d{8}$/,\n 'en-PH': /^(09|\\+639)\\d{9}$/,\n 'en-RW': /^(\\+?250|0)?[7]\\d{8}$/,\n 'en-SG': /^(\\+65)?[3689]\\d{7}$/,\n 'en-SL': /^(\\+?232|0)\\d{8}$/,\n 'en-TZ': /^(\\+?255|0)?[67]\\d{8}$/,\n 'en-UG': /^(\\+?256|0)?[7]\\d{8}$/,\n 'en-US': /^((\\+1|1)?( |-)?)?(\\([2-9][0-9]{2}\\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,\n 'en-ZA': /^(\\+?27|0)\\d{9}$/,\n 'en-ZM': /^(\\+?26)?0[79][567]\\d{7}$/,\n 'en-ZW': /^(\\+263)[0-9]{9}$/,\n 'en-BW': /^(\\+?267)?(7[1-8]{1})\\d{6}$/,\n 'es-AR': /^\\+?549(11|[2368]\\d)\\d{8}$/,\n 'es-BO': /^(\\+?591)?(6|7)\\d{7}$/,\n 'es-CO': /^(\\+?57)?3(0(0|1|2|4|5)|1\\d|2[0-4]|5(0|1))\\d{7}$/,\n 'es-CL': /^(\\+?56|0)[2-9]\\d{1}\\d{7}$/,\n 'es-CR': /^(\\+506)?[2-8]\\d{7}$/,\n 'es-CU': /^(\\+53|0053)?5\\d{7}$/,\n 'es-DO': /^(\\+?1)?8[024]9\\d{7}$/,\n 'es-HN': /^(\\+?504)?[9|8|3|2]\\d{7}$/,\n 'es-EC': /^(\\+?593|0)([2-7]|9[2-9])\\d{7}$/,\n 'es-ES': /^(\\+?34)?[6|7]\\d{8}$/,\n 'es-GT': /^(\\+?502)?[2|6|7]\\d{7}$/,\n 'es-PE': /^(\\+?51)?9\\d{8}$/,\n 'es-MX': /^(\\+?52)?(1|01)?\\d{10,11}$/,\n 'es-NI': /^(\\+?505)\\d{7,8}$/,\n 'es-PA': /^(\\+?507)\\d{7,8}$/,\n 'es-PY': /^(\\+?595|0)9[9876]\\d{7}$/,\n 'es-SV': /^(\\+?503)?[67]\\d{7}$/,\n 'es-UY': /^(\\+598|0)9[1-9][\\d]{6}$/,\n 'es-VE': /^(\\+?58)?(2|4)\\d{9}$/,\n 'et-EE': /^(\\+?372)?\\s?(5|8[1-4])\\s?([0-9]\\s?){6,7}$/,\n 'fa-IR': /^(\\+?98[\\-\\s]?|0)9[0-39]\\d[\\-\\s]?\\d{3}[\\-\\s]?\\d{4}$/,\n 'fi-FI': /^(\\+?358|0)\\s?(4[0-6]|50)\\s?(\\d\\s?){4,8}$/,\n 'fj-FJ': /^(\\+?679)?\\s?\\d{3}\\s?\\d{4}$/,\n 'fo-FO': /^(\\+?298)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'fr-BF': /^(\\+226|0)[67]\\d{7}$/,\n 'fr-BJ': /^(\\+229)\\d{8}$/,\n 'fr-CD': /^(\\+?243|0)?(8|9)\\d{8}$/,\n 'fr-CM': /^(\\+?237)6[0-9]{8}$/,\n 'fr-DJ': /^(?:\\+253)?77[6-8]\\d{5}$/,\n 'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\n 'fr-GF': /^(\\+?594|0|00594)[67]\\d{8}$/,\n 'fr-GP': /^(\\+?590|0|00590)[67]\\d{8}$/,\n 'fr-MQ': /^(\\+?596|0|00596)[67]\\d{8}$/,\n 'fr-PF': /^(\\+?689)?8[789]\\d{6}$/,\n 'fr-RE': /^(\\+?262|0|00262)[67]\\d{8}$/,\n 'fr-WF': /^(\\+681)?\\d{6}$/,\n 'he-IL': /^(\\+972|0)([23489]|5[012345689]|77)[1-9]\\d{6}$/,\n 'hu-HU': /^(\\+?36|06)(20|30|31|50|70)\\d{7}$/,\n 'id-ID': /^(\\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\\s?|\\d]{5,11})$/,\n 'ir-IR': /^(\\+98|0)?9\\d{9}$/,\n 'it-IT': /^(\\+?39)?\\s?3\\d{2} ?\\d{6,7}$/,\n 'it-SM': /^((\\+378)|(0549)|(\\+390549)|(\\+3780549))?6\\d{5,9}$/,\n 'ja-JP': /^(\\+81[ \\-]?(\\(0\\))?|0)[6789]0[ \\-]?\\d{4}[ \\-]?\\d{4}$/,\n 'ka-GE': /^(\\+?995)?(79\\d{7}|5\\d{8})$/,\n 'kk-KZ': /^(\\+?7|8)?7\\d{9}$/,\n 'kl-GL': /^(\\+?299)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'ko-KR': /^((\\+?82)[ \\-]?)?0?1([0|1|6|7|8|9]{1})[ \\-]?\\d{3,4}[ \\-]?\\d{4}$/,\n 'ky-KG': /^(\\+996\\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\\s?\\d{3}\\s?\\d{3}$/,\n 'lt-LT': /^(\\+370|8)\\d{8}$/,\n 'lv-LV': /^(\\+?371)2\\d{7}$/,\n 'mg-MG': /^((\\+?261|0)(2|3)\\d)?\\d{7}$/,\n 'mn-MN': /^(\\+|00|011)?976(77|81|88|91|94|95|96|99)\\d{6}$/,\n 'my-MM': /^(\\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,\n 'ms-MY': /^(\\+?60|0)1(([0145](-|\\s)?\\d{7,8})|([236-9](-|\\s)?\\d{7}))$/,\n 'mz-MZ': /^(\\+?258)?8[234567]\\d{7}$/,\n 'nb-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'ne-NP': /^(\\+?977)?9[78]\\d{8}$/,\n 'nl-BE': /^(\\+?32|0)4\\d{8}$/,\n 'nl-NL': /^(((\\+|00)?31\\(0\\))|((\\+|00)?31)|0)6{1}\\d{8}$/,\n 'nl-AW': /^(\\+)?297(56|59|64|73|74|99)\\d{5}$/,\n 'nn-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'pl-PL': /^(\\+?48)? ?([5-8]\\d|45) ?\\d{3} ?\\d{2} ?\\d{2}$/,\n 'pt-BR': /^((\\+?55\\ ?[1-9]{2}\\ ?)|(\\+?55\\ ?\\([1-9]{2}\\)\\ ?)|(0[1-9]{2}\\ ?)|(\\([1-9]{2}\\)\\ ?)|([1-9]{2}\\ ?))((\\d{4}\\-?\\d{4})|(9[1-9]{1}\\d{3}\\-?\\d{4}))$/,\n 'pt-PT': /^(\\+?351)?9[1236]\\d{7}$/,\n 'pt-AO': /^(\\+?244)?9\\d{8}$/,\n 'ro-MD': /^(\\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\\d{6}$/,\n 'ro-RO': /^(\\+?40|0)\\s?7\\d{2}(\\/|\\s|\\.|-)?\\d{3}(\\s|\\.|-)?\\d{3}$/,\n 'ru-RU': /^(\\+?7|8)?9\\d{9}$/,\n 'si-LK': /^(?:0|94|\\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\\d{7}$/,\n 'sl-SI': /^(\\+386\\s?|0)(\\d{1}\\s?\\d{3}\\s?\\d{2}\\s?\\d{2}|\\d{2}\\s?\\d{3}\\s?\\d{3})$/,\n 'sk-SK': /^(\\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'so-SO': /^(\\+?252|0)((6[0-9])\\d{7}|(7[1-9])\\d{7})$/,\n 'sq-AL': /^(\\+355|0)6[2-9]\\d{7}$/,\n 'sr-RS': /^(\\+3816|06)[- \\d]{5,9}$/,\n 'sv-SE': /^(\\+?46|0)[\\s\\-]?7[\\s\\-]?[02369]([\\s\\-]?\\d){7}$/,\n 'tg-TJ': /^(\\+?992)?[5][5]\\d{7}$/,\n 'th-TH': /^(\\+66|66|0)\\d{9}$/,\n 'tr-TR': /^(\\+?90|0)?5\\d{9}$/,\n 'tk-TM': /^(\\+993|993|8)\\d{8}$/,\n 'uk-UA': /^(\\+?38)?0(50|6[36-8]|7[357]|9[1-9])\\d{7}$/,\n 'uz-UZ': /^(\\+?998)?(6[125-79]|7[1-69]|88|9\\d)\\d{7}$/,\n 'vi-VN': /^((\\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,\n 'zh-CN': /^((\\+|00)86)?(1[3-9]|9[28])\\d{9}$/,\n 'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/,\n 'dz-BT': /^(\\+?975|0)?(17|16|77|02)\\d{6}$/,\n 'ar-YE': /^(((\\+|00)9677|0?7)[0137]\\d{7}|((\\+|00)967|0)[1-7]\\d{6})$/,\n 'ar-EH': /^(\\+?212|0)[\\s\\-]?(5288|5289)[\\s\\-]?\\d{5}$/,\n 'fa-AF': /^(\\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\\d{7})$/,\n 'mk-MK': /^(\\+?389|0)?((?:2[2-9]\\d{6}|(?:3[1-4]|4[2-8])\\d{6}|500\\d{5}|5[2-9]\\d{6}|7[0-9][2-9]\\d{5}|8[1-9]\\d{6}|800\\d{5}|8009\\d{4}))$/\n};\n/* eslint-enable max-len */\n\n// aliases\nphones['en-CA'] = phones['en-US'];\nphones['fr-CA'] = phones['en-CA'];\nphones['fr-BE'] = phones['nl-BE'];\nphones['zh-HK'] = phones['en-HK'];\nphones['zh-MO'] = phones['en-MO'];\nphones['ga-IE'] = phones['en-IE'];\nphones['fr-CH'] = phones['de-CH'];\nphones['it-CH'] = phones['fr-CH'];\nfunction isMobilePhone(str, locale, options) {\n (0, _assertString.default)(str);\n if (options && options.strictMode && !str.startsWith('+')) {\n return false;\n }\n if (Array.isArray(locale)) {\n return locale.some(function (key) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n if (phone.test(str)) {\n return true;\n }\n }\n return false;\n });\n } else if (locale in phones) {\n return phones[locale].test(str);\n // alias falsey locale as 'any'\n } else if (!locale || locale === 'any') {\n for (var key in phones) {\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n if (phone.test(str)) {\n return true;\n }\n }\n }\n return false;\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(phones);","import delve from \"dlv\";\nimport dayjs from \"dayjs\";\nimport isIP from \"validator/lib/isIP.js\";\nimport isJWT from \"validator/lib/isJWT.js\";\nimport isURL from \"validator/lib/isURL.js\";\nimport isSlug from \"validator/lib/isSlug.js\";\nimport isIBAN from \"validator/lib/isIBAN.js\";\nimport isUUID from \"validator/lib/isUUID.js\";\nimport isAscii from \"validator/lib/isAscii.js\";\nimport isEmail from \"validator/lib/isEmail.js\";\nimport isAlpha from \"validator/lib/isAlpha.js\";\nimport isLatLong from \"validator/lib/isLatLong.js\";\nimport isDecimal from \"validator/lib/isDecimal.js\";\nimport isHexColor from \"validator/lib/isHexColor.js\";\nimport isCreditCard from \"validator/lib/isCreditCard.js\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport isSameOrBefore from \"dayjs/plugin/isSameOrBefore.js\";\nimport isAlphanumeric from \"validator/lib/isAlphanumeric.js\";\nimport isPassportNumber from \"validator/lib/isPassportNumber.js\";\nimport isVAT from \"validator/lib/isVAT.js\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nimport isPostalCode, { locales } from \"validator/lib/isPostalCode.js\";\nimport isMobilePhone, { locales as locales$1 } from \"validator/lib/isMobilePhone.js\";\n//#region \\0rolldown/runtime.js\nvar __defProp = Object.defineProperty;\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\n//#endregion\n//#region src/vine/helpers.ts\n/**\n* Values that are considered true in HTML form context.\n* Includes boolean true, number 1, string '1', 'true', and 'on' (for checkboxes).\n*/\nconst BOOLEAN_POSITIVES = [\n\t\"1\",\n\t1,\n\t\"true\",\n\ttrue,\n\t\"on\"\n];\n/**\n* Values that are considered false in HTML form context.\n* Includes boolean false, number 0, string '0', and 'false'.\n*/\nconst BOOLEAN_NEGATIVES = [\n\t\"0\",\n\t0,\n\t\"false\",\n\tfalse\n];\n/**\n* Default date formats used when no specific format is provided.\n* Supports date-only (YYYY-MM-DD) and datetime (YYYY-MM-DD HH:mm:ss) formats.\n*/\nconst DEFAULT_DATE_FORMATS = [\"YYYY-MM-DD\", \"YYYY-MM-DD HH:mm:ss\"];\n/**\n* Regular expression for validating ULID (Universally Unique Lexicographically Sortable Identifier) format.\n* ULIDs are 26 characters long using Crockford's Base32 encoding.\n*/\nconst ULID = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;\ndayjs.extend(customParseFormat);\ndayjs.extend(isSameOrAfter);\ndayjs.extend(isSameOrBefore);\n/**\n* Collection of utility helpers used across the Vine validation library.\n* These helpers provide type-checking, coercion, and validation functions\n* that are optimized for HTML form data handling.\n*\n* @example\n* helpers.isString(value) // Type guard for strings\n* helpers.asBoolean(value) // Convert to boolean with HTML form semantics\n* helpers.isEmail(email) // Validate email addresses\n*/\nconst helpers = {\n\t/**\n\t* Checks if a value exists (is not null and not undefined).\n\t* Useful for checking if optional form fields have been provided.\n\t*\n\t* @param value - The value to check\n\t* @returns True if value is not null and not undefined\n\t*\n\t* @example\n\t* helpers.exists('hello') // true\n\t* helpers.exists(0) // true\n\t* helpers.exists(null) // false\n\t* helpers.exists(undefined) // false\n\t*/\n\texists(value) {\n\t\treturn value !== null && value !== void 0;\n\t},\n\t/**\n\t* Checks if a value is missing (null or undefined).\n\t* The inverse of the exists method.\n\t*\n\t* @param value - The value to check\n\t* @returns True if value is null or undefined\n\t*\n\t* @example\n\t* helpers.isMissing(null) // true\n\t* helpers.isMissing(undefined) // true\n\t* helpers.isMissing('') // false\n\t* helpers.isMissing(0) // false\n\t*/\n\tisMissing(value) {\n\t\treturn !this.exists(value);\n\t},\n\t/**\n\t* Checks if a value represents a truthy boolean in HTML form context.\n\t* Recognizes common HTML form representations of true values.\n\t*\n\t* Accepted truthy values:\n\t* - true (boolean)\n\t* - 1 (number)\n\t* - \"1\" (string)\n\t* - \"true\" (string)\n\t* - \"on\" (string, for checkboxes)\n\t*\n\t* @param value - The value to check\n\t* @returns True if value represents a truthy boolean\n\t*\n\t* @example\n\t* helpers.isTrue(true) // true\n\t* helpers.isTrue('on') // true (checkbox checked)\n\t* helpers.isTrue('1') // true (form input)\n\t* helpers.isTrue('yes') // false\n\t*/\n\tisTrue(value) {\n\t\treturn BOOLEAN_POSITIVES.includes(value);\n\t},\n\t/**\n\t* Checks if a value represents a falsy boolean in HTML form context.\n\t* Recognizes common HTML form representations of false values.\n\t*\n\t* Accepted falsy values:\n\t* - false (boolean)\n\t* - 0 (number)\n\t* - \"0\" (string)\n\t* - \"false\" (string)\n\t*\n\t* @param value - The value to check\n\t* @returns True if value represents a falsy boolean\n\t*\n\t* @example\n\t* helpers.isFalse(false) // true\n\t* helpers.isFalse('0') // true (form input)\n\t* helpers.isFalse('false') // true (form input)\n\t* helpers.isFalse('no') // false\n\t*/\n\tisFalse(value) {\n\t\treturn BOOLEAN_NEGATIVES.includes(value);\n\t},\n\t/**\n\t* Type guard that checks if a value is a string.\n\t* Narrows the TypeScript type to string when returning true.\n\t*\n\t* @param value - The value to check\n\t* @returns True if value is a string, with type narrowing\n\t*\n\t* @example\n\t* if (helpers.isString(value)) {\n\t* // value is now typed as string\n\t* console.log(value.toUpperCase())\n\t* }\n\t*/\n\tisString(value) {\n\t\treturn typeof value === \"string\";\n\t},\n\t/**\n\t* Type guard that checks if a value is a plain JavaScript object.\n\t* Excludes null, arrays, and other non-plain objects.\n\t*\n\t* @template Value - The type of values in the object\n\t* @param value - The value to check\n\t* @returns True if value is a plain object, with type narrowing\n\t*\n\t* @example\n\t* helpers.isObject({}) // true\n\t* helpers.isObject([]) // false\n\t* helpers.isObject(null) // false\n\t* helpers.isObject(new Date()) // true (but not recommended for validation)\n\t*/\n\tisObject(value) {\n\t\treturn !!(value && typeof value === \"object\" && !Array.isArray(value));\n\t},\n\t/**\n\t* Checks if an object contains all the specified keys.\n\t* Useful for validating object structure before processing.\n\t*\n\t* @param value - The object to check\n\t* @param keys - Array of key names that must exist\n\t* @returns True if all keys exist in the object\n\t*\n\t* @example\n\t* helpers.hasKeys({ name: 'John', age: 30 }, ['name']) // true\n\t* helpers.hasKeys({ name: 'John' }, ['name', 'age']) // false\n\t*/\n\thasKeys(value, keys) {\n\t\tfor (let key of keys) if (key in value === false) return false;\n\t\treturn true;\n\t},\n\t/**\n\t* Type guard that checks if a value is an array.\n\t* Narrows the TypeScript type to array when returning true.\n\t*\n\t* @template Value - The type of elements in the array\n\t* @param value - The value to check\n\t* @returns True if value is an array, with type narrowing\n\t*\n\t* @example\n\t* if (helpers.isArray(value)) {\n\t* // value is now typed as array\n\t* console.log(value.length)\n\t* }\n\t*/\n\tisArray(value) {\n\t\treturn Array.isArray(value);\n\t},\n\t/**\n\t* Checks if a value is numeric (number or string representing a number).\n\t* Useful for validating form inputs that should contain numeric values.\n\t*\n\t* @param value - The value to check\n\t* @returns True if value can be converted to a valid number\n\t*\n\t* @example\n\t* helpers.isNumeric(42) // true\n\t* helpers.isNumeric('42') // true\n\t* helpers.isNumeric('42.5') // true\n\t* helpers.isNumeric('abc') // false\n\t*/\n\tisNumeric(value) {\n\t\treturn !Number.isNaN(Number(value));\n\t},\n\t/**\n\t* Converts a value to a number using JavaScript's Number() constructor.\n\t* Handles null values explicitly by returning NaN.\n\t*\n\t* @param value - The value to convert to a number\n\t* @returns The numeric representation, or NaN if conversion fails\n\t*\n\t* @example\n\t* helpers.asNumber('42') // 42\n\t* helpers.asNumber('42.5') // 42.5\n\t* helpers.asNumber(null) // NaN\n\t* helpers.asNumber('abc') // NaN\n\t*/\n\tasNumber(value) {\n\t\treturn value === null ? NaN : Number(value);\n\t},\n\t/**\n\t* Converts a value to a boolean using HTML form semantics.\n\t* Returns null for values that cannot be reliably converted.\n\t*\n\t* Conversion rules:\n\t* - [true, 1, \"1\", \"true\", \"on\"] → true\n\t* - [false, 0, \"0\", \"false\"] → false\n\t* - Everything else → null\n\t*\n\t* @param value - The value to convert\n\t* @returns Boolean value, or null if conversion is ambiguous\n\t*\n\t* @example\n\t* helpers.asBoolean('true') // true\n\t* helpers.asBoolean('on') // true (checkbox checked)\n\t* helpers.asBoolean('false') // false\n\t* helpers.asBoolean('maybe') // null (ambiguous)\n\t*/\n\tasBoolean(value) {\n\t\tif (this.isTrue(value)) return true;\n\t\tif (this.isFalse(value)) return false;\n\t\treturn null;\n\t},\n\t/**\n\t* Converts a value to a Day.js date object with flexible format support.\n\t* Handles timestamps, ISO dates, and custom formats with intelligent fallbacks.\n\t*\n\t* @param value - The value to convert to a date (string, number, Date, etc.)\n\t* @param format - Date format(s) to use for parsing. Can be:\n\t* - Array of format strings (e.g., ['YYYY-MM-DD', 'DD/MM/YYYY'])\n\t* - Single format string\n\t* - Object with format and strict parsing options\n\t* - Special values: 'x' for timestamps, 'iso8601' for ISO dates\n\t* @returns Object containing the parsed Day.js instance and normalized formats\n\t*\n\t* @example\n\t* // Parse with default formats\n\t* helpers.asDayJS('2023-12-25')\n\t* // { dateTime: dayjs('2023-12-25'), formats: ['YYYY-MM-DD', 'YYYY-MM-DD HH:mm:ss'] }\n\t*\n\t* // Parse timestamp\n\t* helpers.asDayJS('1703548800000', ['x'])\n\t* // { dateTime: dayjs(1703548800000), formats: ['x'] }\n\t*\n\t* // Parse with custom format\n\t* helpers.asDayJS('25/12/2023', ['DD/MM/YYYY'])\n\t* // { dateTime: dayjs('25/12/2023', 'DD/MM/YYYY'), formats: ['DD/MM/YYYY'] }\n\t*\n\t* // ISO date fallback\n\t* helpers.asDayJS('2023-12-25T10:30:00Z', ['iso8601'])\n\t* // { dateTime: dayjs('2023-12-25T10:30:00Z'), formats: ['iso8601'] }\n\t*/\n\tasDayJS(value, format) {\n\t\tlet isTimestampAllowed = false;\n\t\tlet isISOAllowed = false;\n\t\tlet formats = format || DEFAULT_DATE_FORMATS;\n\t\t/**\n\t\t* DayJS mutates the formats property under the hood. Therefore\n\t\t* we have to create a shallow clone before passing formats.\n\t\t*\n\t\t* https://github.com/iamkun/dayjs/issues/2136\n\t\t*/\n\t\tif (Array.isArray(formats)) {\n\t\t\tformats = [...formats];\n\t\t\tisTimestampAllowed = formats.includes(\"x\");\n\t\t\tisISOAllowed = formats.includes(\"iso8601\");\n\t\t} else if (typeof formats !== \"string\") {\n\t\t\tformats = { ...formats };\n\t\t\tisTimestampAllowed = formats.format === \"x\";\n\t\t\tisISOAllowed = formats.format === \"iso\";\n\t\t}\n\t\tconst valueAsNumber = isTimestampAllowed ? helpers.asNumber(value) : value;\n\t\tlet dateTime;\n\t\t/**\n\t\t* The timestamp validation does not work with formats array.\n\t\t* Therefore we validate is separately without passing any\n\t\t* formats.\n\t\t*\n\t\t* Otherwise we parse the date with formats\n\t\t*/\n\t\tif (isTimestampAllowed && !Number.isNaN(valueAsNumber)) dateTime = dayjs(valueAsNumber);\n\t\telse dateTime = dayjs(value, formats, true);\n\t\t/**\n\t\t* If datetime is invalid and the ISO format is allowed,\n\t\t* then we reattempt to parse the date without formats\n\t\t*/\n\t\tif (!dateTime.isValid() && isISOAllowed) dateTime = dayjs(value);\n\t\treturn {\n\t\t\tdateTime,\n\t\t\tformats\n\t\t};\n\t},\n\t/**\n\t* Compares two values with intelligent type coercion.\n\t* The input value is cast to match the type of the expected value\n\t* for HTML form-friendly comparisons.\n\t*\n\t* @param inputValue - The input value to compare\n\t* @param expectedValue - The expected value to compare against\n\t* @returns Object with comparison result and the casted input value\n\t*\n\t* @example\n\t* // Number comparison\n\t* helpers.compareValues('42', 42)\n\t* // { isEqual: true, casted: 42 }\n\t*\n\t* // Boolean comparison\n\t* helpers.compareValues('true', true)\n\t* // { isEqual: true, casted: true }\n\t*\n\t* // String comparison (no casting)\n\t* helpers.compareValues('hello', 'world')\n\t* // { isEqual: false, casted: 'hello' }\n\t*/\n\tcompareValues(inputValue, expectedValue) {\n\t\tlet input = inputValue;\n\t\t/**\n\t\t* Normalize the field value based on the expected value type\n\t\t*/\n\t\tif (typeof expectedValue === \"boolean\") input = this.asBoolean(inputValue);\n\t\telse if (typeof expectedValue === \"number\") input = this.asNumber(inputValue);\n\t\t/**\n\t\t* Perform comparison and return results\n\t\t*/\n\t\treturn {\n\t\t\tisEqual: input === expectedValue,\n\t\t\tcasted: input\n\t\t};\n\t},\n\t/** Validates email addresses using comprehensive rules */\n\tisEmail: isEmail.default,\n\t/** Validates URLs with protocol and domain checking */\n\tisURL: isURL.default,\n\t/** Validates alphabetic characters only */\n\tisAlpha: isAlpha.default,\n\t/** Validates alphanumeric characters only */\n\tisAlphaNumeric: isAlphanumeric.default,\n\t/** Validates IP addresses (IPv4 and IPv6) */\n\tisIP: isIP.default,\n\t/** Validates UUID strings in various formats */\n\tisUUID: isUUID.default,\n\t/** Validates ASCII character strings */\n\tisAscii: isAscii.default,\n\t/** Validates credit card numbers using Luhn algorithm */\n\tisCreditCard: isCreditCard.default,\n\t/** Validates International Bank Account Numbers */\n\tisIBAN: isIBAN.default,\n\t/** Validates JSON Web Tokens */\n\tisJWT: isJWT.default,\n\t/** Validates latitude/longitude coordinate pairs */\n\tisLatLong: isLatLong.default,\n\t/** Validates mobile phone numbers for various locales */\n\tisMobilePhone: isMobilePhone.default,\n\t/** Validates passport numbers for supported countries */\n\tisPassportNumber: isPassportNumber.default,\n\t/** Validates VAT numbers for supported countries */\n\tisVAT: isVAT.default,\n\t/** Validates postal codes for various countries */\n\tisPostalCode: isPostalCode.default,\n\t/** Validates URL slugs (lowercase, hyphenated strings) */\n\tisSlug: isSlug.default,\n\t/** Validates decimal numbers */\n\tisDecimal: isDecimal.default,\n\t/** Array of supported mobile phone locales/countries */\n\tmobileLocales: locales$1,\n\t/** Array of supported postal code country codes */\n\tpostalCountryCodes: locales,\n\t/** Array of supported passport country codes */\n\tpassportCountryCodes: [\n\t\t\"AM\",\n\t\t\"AR\",\n\t\t\"AT\",\n\t\t\"AU\",\n\t\t\"AZ\",\n\t\t\"BE\",\n\t\t\"BG\",\n\t\t\"BR\",\n\t\t\"BY\",\n\t\t\"CA\",\n\t\t\"CH\",\n\t\t\"CY\",\n\t\t\"CZ\",\n\t\t\"DE\",\n\t\t\"DK\",\n\t\t\"DZ\",\n\t\t\"ES\",\n\t\t\"FI\",\n\t\t\"FR\",\n\t\t\"GB\",\n\t\t\"GR\",\n\t\t\"HR\",\n\t\t\"HU\",\n\t\t\"IE\",\n\t\t\"IN\",\n\t\t\"ID\",\n\t\t\"IR\",\n\t\t\"IS\",\n\t\t\"IT\",\n\t\t\"JM\",\n\t\t\"JP\",\n\t\t\"KR\",\n\t\t\"KZ\",\n\t\t\"LI\",\n\t\t\"LT\",\n\t\t\"LU\",\n\t\t\"LV\",\n\t\t\"LY\",\n\t\t\"MT\",\n\t\t\"MZ\",\n\t\t\"MY\",\n\t\t\"MX\",\n\t\t\"NL\",\n\t\t\"NZ\",\n\t\t\"PH\",\n\t\t\"PK\",\n\t\t\"PL\",\n\t\t\"PT\",\n\t\t\"RO\",\n\t\t\"RU\",\n\t\t\"SE\",\n\t\t\"SL\",\n\t\t\"SK\",\n\t\t\"TH\",\n\t\t\"TR\",\n\t\t\"UA\",\n\t\t\"US\"\n\t],\n\t/**\n\t* Validates if a value is a valid ULID (Universally Unique Lexicographically Sortable Identifier).\n\t* ULIDs are 26-character strings that are lexicographically sortable and URL-safe.\n\t*\n\t* @param value - The value to validate\n\t* @returns True if value is a valid ULID\n\t*\n\t* @example\n\t* helpers.isULID('01ARZ3NDEKTSV4RRFFQ69G5FAV') // true\n\t* helpers.isULID('invalid-ulid') // false\n\t* helpers.isULID('7ZZZZZZZZZZZZZZZZZZZZZZZZZ') // true (max valid ULID)\n\t* helpers.isULID('8AAAAAAAAAAAAAAAAAAAAAAAAA') // false (overflow)\n\t*/\n\tisULID(value) {\n\t\tif (typeof value !== \"string\") return false;\n\t\tif (value[0] > \"7\") return false;\n\t\treturn ULID.test(value);\n\t},\n\t/**\n\t* Validates if a value is a valid hexadecimal color code.\n\t* Requires the '#' prefix and supports 3, 6, or 8 character hex codes.\n\t*\n\t* @param value - The string to validate as a hex color\n\t* @returns True if value is a valid hex color code\n\t*\n\t* @example\n\t* helpers.isHexColor('#FF0000') // true (red)\n\t* helpers.isHexColor('#f00') // true (short red)\n\t* helpers.isHexColor('#FF000080') // true (red with alpha)\n\t* helpers.isHexColor('FF0000') // false (missing #)\n\t* helpers.isHexColor('#GGGGGG') // false (invalid hex)\n\t*/\n\tisHexColor: (value) => {\n\t\tif (!value.startsWith(\"#\")) return false;\n\t\treturn isHexColor.default(value);\n\t},\n\t/**\n\t* Validates if a URL has valid DNS records (A or AAAA records).\n\t* This performs an actual DNS lookup to verify the domain exists.\n\t*\n\t* @param url - The URL to check for DNS records\n\t* @returns Promise resolving to true if DNS records exist\n\t*\n\t* @example\n\t* await helpers.isActiveURL('https://example.com') // true\n\t* await helpers.isActiveURL('https://nonexistent-domain-12345.com') // false\n\t*\n\t* This function requires network access and may be slow.\n\t* Consider caching results for better performance.\n\t*/\n\tisActiveURL: async (url) => {\n\t\tconst { resolve4, resolve6 } = await import(\"node:dns/promises\");\n\t\ttry {\n\t\t\tconst { hostname } = new URL(url);\n\t\t\tif ((await resolve6(hostname)).length) return true;\n\t\t\telse return (await resolve4(hostname)).length > 0;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t},\n\t/**\n\t* Checks if all elements in an array are unique.\n\t* For arrays of objects, you can specify one or more fields that must be unique.\n\t* Null and undefined values are ignored during uniqueness checks.\n\t*\n\t* @param dataSet - The array to check for uniqueness\n\t* @param fields - Optional field name(s) to check for uniqueness in object arrays\n\t*\n\t* @example\n\t* // Check uniqueness in primitive array\n\t* helpers.isDistinct([1, 2, 4, 5]) // true\n\t* helpers.isDistinct([1, 2, 2, 5]) // false\n\t*\n\t* @example\n\t* // Null and undefined values are ignored\n\t* helpers.isDistinct([1, null, 2, null, 4, 5]) // true\n\t*\n\t* @example\n\t* // Check uniqueness by single field in object array\n\t* helpers.isDistinct([\n\t* { email: 'foo@bar.com', name: 'foo' },\n\t* { email: 'baz@bar.com', name: 'baz' }\n\t* ], 'email') // true\n\t*\n\t* @example\n\t* // Check uniqueness by multiple fields (composite key)\n\t* helpers.isDistinct([\n\t* { email: 'foo@bar.com', tenant_id: 1, name: 'foo' },\n\t* { email: 'foo@bar.com', tenant_id: 2, name: 'baz' }\n\t* ], ['email', 'tenant_id']) // true (same email, different tenant)\n\t*/\n\tisDistinct: (dataSet, fields) => {\n\t\tconst uniqueItems = /* @__PURE__ */ new Set();\n\t\t/**\n\t\t* Check for duplicates when no fields are provided\n\t\t*/\n\t\tif (!fields) {\n\t\t\tfor (let item of dataSet) if (helpers.exists(item)) if (uniqueItems.has(item)) return false;\n\t\t\telse uniqueItems.add(item);\n\t\t\treturn true;\n\t\t}\n\t\t/**\n\t\t* Checking for duplicates when one or more fields are mentioned\n\t\t*/\n\t\tconst fieldsList = Array.isArray(fields) ? fields : [fields];\n\t\tfor (let item of dataSet)\n /**\n\t\t* Only process item, if it is an object and has all the fields\n\t\t* required for uniqueness check\n\t\t*/\n\t\tif (helpers.isObject(item) && helpers.hasKeys(item, fieldsList)) {\n\t\t\tconst element = fieldsList.map((field) => item[field]).join(\"_\");\n\t\t\tif (uniqueItems.has(element)) return false;\n\t\t\telse uniqueItems.add(element);\n\t\t}\n\t\treturn true;\n\t},\n\t/**\n\t* Retrieves a nested value from the validation context.\n\t* Supports both dot notation for deep access and direct parent access.\n\t*\n\t* @param key - The key or dot-notation path to the value\n\t* @param field - The field context containing data and parent references\n\t* @returns The value at the specified path, or undefined if not found\n\t*\n\t* @example\n\t* // Dot notation for nested access\n\t* helpers.getNestedValue('user.profile.name', field)\n\t*\n\t* // Direct parent access\n\t* helpers.getNestedValue('confirmPassword', field)\n\t*\n\t* // Deep object access\n\t* helpers.getNestedValue('config.database.host', field)\n\t*/\n\tgetNestedValue(key, field) {\n\t\tif (key.indexOf(\".\") > -1) return delve(field.data, key);\n\t\treturn field.parent[key];\n\t},\n\t/**\n\t* Converts all properties of an object schema to optional.\n\t* This is useful when you want to make all fields in a schema optional\n\t* at once, such as for update operations where all fields are optional.\n\t*\n\t* @param props - The object with schema properties\n\t*\n\t* @example\n\t* const createUserSchema = {\n\t* name: vine.string(),\n\t* email: vine.string().email(),\n\t* age: vine.number()\n\t* }\n\t*\n\t* // Make all fields optional for updates\n\t* const updateUserSchema = helpers.optional(createUserSchema)\n\t*/\n\toptional(props) {\n\t\tconst result = {};\n\t\tfor (const name of Object.keys(props)) {\n\t\t\tlet field = props[name].clone();\n\t\t\tif (\"optional\" in field && typeof field.optional === \"function\") field = field.optional();\n\t\t\tresult[name] = field;\n\t\t}\n\t\treturn result;\n\t}\n};\n//#endregion\n//#region src/messages_provider/simple_messages_provider.ts\n/**\n* Default messages provider that performs message lookup using key-value pairs.\n* Provides internationalization and custom error message support for validation.\n* Supports field-specific messages, wildcard patterns, and placeholder interpolation.\n*\n* @example\n* const provider = new SimpleMessagesProvider({\n* 'required': 'The {{ field }} field is required',\n* 'email': 'The {{ field }} field must be a valid email',\n* 'user.email.required': 'Email address is required'\n* }, {\n* 'user.email': 'Email Address'\n* })\n*/\nvar SimpleMessagesProvider = class {\n\t/** Collection of validation error message templates */\n\t#messages;\n\t/** Mapping of field paths to human-readable field names */\n\t#fields;\n\t/**\n\t* Creates a new SimpleMessagesProvider instance.\n\t*\n\t* @param messages - Map of validation rule names to error message templates\n\t* @param fields - Optional map of field paths to human-readable names\n\t*\n\t* @example\n\t* new SimpleMessagesProvider({\n\t* 'required': 'The {{ field }} field is required'\n\t* }, {\n\t* 'user_name': 'Username'\n\t* })\n\t*/\n\tconstructor(messages, fields) {\n\t\tthis.#messages = messages;\n\t\tthis.#fields = fields || {};\n\t}\n\t/**\n\t* Interpolates placeholders within error messages using mustache-like syntax.\n\t* Supports nested property access using dot notation.\n\t*\n\t* @param message - The message template with placeholders\n\t* @param data - Data object containing values for interpolation\n\t* @returns Interpolated message string\n\t*\n\t* @example\n\t* interpolate('The {{ field }} must be at least {{ min }} characters', {\n\t* field: 'username',\n\t* min: 5\n\t* })\n\t* // Returns: \"The username must be at least 5 characters\"\n\t*/\n\t#interpolate(message, data) {\n\t\tif (!message.includes(\"{{\")) return message;\n\t\treturn message.replace(/(\\\\)?{{(.*?)}}/g, (_, __, key) => {\n\t\t\tconst tokens = key.trim().split(\".\");\n\t\t\tlet output = data;\n\t\t\twhile (tokens.length) {\n\t\t\t\tif (output === null || typeof output !== \"object\") return;\n\t\t\t\tconst token = tokens.shift();\n\t\t\t\toutput = Object.hasOwn(output, token) ? output[token] : void 0;\n\t\t\t}\n\t\t\treturn output;\n\t\t});\n\t}\n\t/**\n\t* Returns a validation error message for a given field and rule.\n\t* Uses a priority-based lookup system to find the most specific message.\n\t*\n\t* Priority order:\n\t* 1. Field-specific messages (e.g., 'user.email.required')\n\t* 2. Wildcard path messages (e.g., '*.email.required')\n\t* 3. Generic rule messages (e.g., 'required')\n\t* 4. Fallback to raw message\n\t*\n\t* @param rawMessage - The default raw message from the validation rule\n\t* @param rule - The name of the validation rule that failed\n\t* @param field - Context information about the field being validated\n\t* @param args - Additional arguments to interpolate into the message\n\t* @returns Formatted and interpolated error message\n\t*\n\t* @example\n\t* // With field-specific message\n\t* provider.getMessage('Required', 'required', fieldContext, {})\n\t* // Returns: \"Email address is required\" (if field-specific message exists)\n\t*\n\t* // With rule arguments\n\t* provider.getMessage('Min length', 'minLength', fieldContext, { min: 5 })\n\t* // Returns: \"The username must be at least 5 characters\"\n\t*/\n\tgetMessage(rawMessage, rule, field, args) {\n\t\tconst fieldName = this.#fields[field.getFieldPath()] || this.#fields[field.name] || field.name;\n\t\t/**\n\t\t* 1st priority: Field-specific messages (highest specificity)\n\t\t* Example: 'user.email.required'\n\t\t*/\n\t\tconst fieldMessage = this.#messages[`${field.getFieldPath()}.${rule}`];\n\t\tif (fieldMessage) return this.#interpolate(fieldMessage, {\n\t\t\tfield: fieldName,\n\t\t\t...args\n\t\t});\n\t\t/**\n\t\t* 2nd priority: Wildcard path messages (medium specificity)\n\t\t* Example: '*.email.required'\n\t\t*/\n\t\tconst wildcardMessage = this.#messages[`${field.wildCardPath}.${rule}`];\n\t\tif (wildcardMessage) return this.#interpolate(wildcardMessage, {\n\t\t\tfield: fieldName,\n\t\t\t...args\n\t\t});\n\t\t/**\n\t\t* 3rd priority: Generic rule messages (low specificity)\n\t\t* Example: 'required'\n\t\t*/\n\t\tconst ruleMessage = this.#messages[rule];\n\t\tif (ruleMessage) return this.#interpolate(ruleMessage, {\n\t\t\tfield: fieldName,\n\t\t\t...args\n\t\t});\n\t\t/**\n\t\t* Fallback: Use the raw message provided by the validation rule\n\t\t*/\n\t\treturn this.#interpolate(rawMessage, {\n\t\t\tfield: fieldName,\n\t\t\t...args\n\t\t});\n\t}\n\t/**\n\t* Serializes the messages provider to a JSON-compatible object.\n\t* Useful for debugging, logging, or transferring configuration.\n\t*\n\t* @returns Object containing messages and field mappings\n\t*\n\t* @example\n\t* const config = provider.toJSON()\n\t* console.log(config)\n\t* // { messages: { required: \"...\" }, fields: { user_name: \"Username\" } }\n\t*/\n\ttoJSON() {\n\t\treturn {\n\t\t\tmessages: this.#messages,\n\t\t\tfields: this.#fields\n\t\t};\n\t}\n};\n//#endregion\n//#region src/errors/validation_error.ts\n/**\n* ValidationError is a specialized Error class that represents validation\n* failures. It contains structured error messages and HTTP status information\n* for easy integration with web frameworks.\n*\n* @example\n* try {\n* await vine.validate({ schema, data })\n* } catch (error) {\n* if (error instanceof ValidationError) {\n* console.log(error.messages) // Structured validation errors\n* console.log(error.status) // HTTP 422\n* }\n* }\n*/\nvar ValidationError = class extends Error {\n\t/**\n\t* HTTP status code for the validation error (422 Unprocessable Entity)\n\t*/\n\tstatus = 422;\n\t/**\n\t* Internal error code for programmatic error handling\n\t*/\n\tcode = \"E_VALIDATION_ERROR\";\n\t/**\n\t* Creates a new ValidationError with structured error messages.\n\t*\n\t* @param messages - Structured validation error messages\n\t* @param options - Optional error options for the base Error class\n\t*/\n\tconstructor(messages, options) {\n\t\tsuper(\"Validation failure\", options);\n\t\tthis.messages = messages;\n\t\tconst ErrorConstructor = this.constructor;\n\t\tif (\"captureStackTrace\" in Error) Error.captureStackTrace(this, ErrorConstructor);\n\t}\n\t/**\n\t* Returns the string tag for this object type.\n\t*\n\t* @returns The constructor name of this error\n\t*/\n\tget [Symbol.toStringTag]() {\n\t\treturn this.constructor.name;\n\t}\n\t/**\n\t* Returns a string representation of the validation error.\n\t*\n\t* @returns Formatted error string with name, code, and message\n\t*/\n\ttoString() {\n\t\treturn `${this.name} [${this.code}]: ${this.message}`;\n\t}\n};\n//#endregion\n//#region src/errors/main.ts\nvar main_exports = /* @__PURE__ */ __exportAll({ E_VALIDATION_ERROR: () => E_VALIDATION_ERROR });\n/**\n* Factory constant for creating ValidationError instances.\n* This is the main export for creating validation errors in the Vine validation library.\n*\n* @example\n* throw new E_VALIDATION_ERROR(errors)\n*\n* @example\n* const error = new E_VALIDATION_ERROR({\n* field: 'username',\n* message: 'Username is required'\n* })\n*/\nconst E_VALIDATION_ERROR = ValidationError;\n//#endregion\n//#region src/reporters/simple_error_reporter.ts\n/**\n* SimpleErrorReporter collects validation error messages as an array of objects.\n* It's the default error reporter used by Vine and provides a simple, structured\n* format for validation errors.\n*\n* Each error object contains:\n* - message: Human-readable error message\n* - field: The field path where validation failed\n* - rule: The validation rule that failed\n* - index: Array index (for array element errors)\n* - meta: Additional error metadata\n*\n* @example\n* const reporter = new SimpleErrorReporter()\n* // After validation errors are reported:\n* console.log(reporter.errors)\n* // [{ message: \"Required\", field: \"email\", rule: \"required\" }]\n*/\nvar SimpleErrorReporter = class {\n\t/**\n\t* Flag indicating whether any validation errors have been reported\n\t*/\n\thasErrors = false;\n\t/**\n\t* Collection of all reported validation errors\n\t*/\n\terrors = [];\n\t/**\n\t* Report a validation error by adding it to the errors collection.\n\t*\n\t* @param message - The human-readable error message\n\t* @param rule - The name of the validation rule that failed\n\t* @param field - The field context containing field path and metadata\n\t* @param meta - Optional additional metadata about the error\n\t*/\n\treport(message, rule, field, meta) {\n\t\tconst error = {\n\t\t\tmessage,\n\t\t\trule,\n\t\t\tfield: field.getFieldPath()\n\t\t};\n\t\tif (meta) error.meta = meta;\n\t\tif (field.isArrayMember) error.index = field.name;\n\t\tthis.hasErrors = true;\n\t\tthis.errors.push(error);\n\t}\n\t/**\n\t* Creates and returns a ValidationError instance containing all reported errors.\n\t* This method is called by the validation engine when validation fails.\n\t*\n\t* @returns A ValidationError containing all collected error messages\n\t*/\n\tcreateError() {\n\t\treturn new E_VALIDATION_ERROR(this.errors);\n\t}\n};\n//#endregion\nexport { BOOLEAN_NEGATIVES as a, __exportAll as c, SimpleMessagesProvider as i, main_exports as n, BOOLEAN_POSITIVES as o, ValidationError as r, helpers as s, SimpleErrorReporter as t };\n","export default function(t,e,l,n,r){for(e=e.split?e.split(\".\"):e,n=0;n<e.length;n++)t=t?t[e[n]]:r;return t===r?l:t}\n//# sourceMappingURL=dlv.es.js.map\n","//#region src/defaults.ts\n/**\n* Default error message templates used throughout the Vine validation library.\n* These messages support mustache-style interpolation for dynamic values like field names,\n* expected values, and validation parameters.\n*\n* Message templates use {{ }} syntax for variable interpolation:\n* - {{ field }} - The field name or custom field label\n* - {{ min }}, {{ max }} - Numeric constraints\n* - {{ expectedValue }} - Expected literal values\n* - {{ otherField }} - Related field names for comparisons\n*\n* @example\n* // Basic usage\n* 'The {{ field }} field is required' // → 'The username field is required'\n*\n* // With custom field names\n* fields = { 'user.email': 'Email Address' }\n* messages = { 'required': 'The {{ field }} is required' }\n* // → 'The Email Address is required'\n*\n* // With validation parameters\n* 'The {{ field }} must be at least {{ min }} characters'\n* // → 'The password must be at least 8 characters'\n*/\nconst messages = {\n\t\"required\": \"The {{ field }} field must be defined\",\n\t\"string\": \"The {{ field }} field must be a string\",\n\t\"email\": \"The {{ field }} field must be a valid email address\",\n\t\"mobile\": \"The {{ field }} field must be a valid mobile phone number\",\n\t\"creditCard\": \"The {{ field }} field must be a valid {{ providersList }} card number\",\n\t\"passport\": \"The {{ field }} field must be a valid passport number\",\n\t\"postalCode\": \"The {{ field }} field must be a valid postal code\",\n\t\"regex\": \"The {{ field }} field format is invalid\",\n\t\"ascii\": \"The {{ field }} field must only contain ASCII characters\",\n\t\"iban\": \"The {{ field }} field must be a valid IBAN number\",\n\t\"jwt\": \"The {{ field }} field must be a valid JWT token\",\n\t\"coordinates\": \"The {{ field }} field must contain latitude and longitude coordinates\",\n\t\"url\": \"The {{ field }} field must be a valid URL\",\n\t\"activeUrl\": \"The {{ field }} field must be a valid URL\",\n\t\"alpha\": \"The {{ field }} field must contain only letters\",\n\t\"alphaNumeric\": \"The {{ field }} field must contain only letters and numbers\",\n\t\"minLength\": \"The {{ field }} field must have at least {{ min }} characters\",\n\t\"maxLength\": \"The {{ field }} field must not be greater than {{ max }} characters\",\n\t\"fixedLength\": \"The {{ field }} field must be {{ size }} characters long\",\n\t\"confirmed\": \"The {{ originalField }} field and {{ otherField }} field must be the same\",\n\t\"endsWith\": \"The {{ field }} field must end with {{ substring }}\",\n\t\"startsWith\": \"The {{ field }} field must start with {{ substring }}\",\n\t\"sameAs\": \"The {{ field }} field and {{ otherField }} field must be the same\",\n\t\"notSameAs\": \"The {{ field }} field and {{ otherField }} field must be different\",\n\t\"in\": \"The selected {{ field }} is invalid\",\n\t\"notIn\": \"The selected {{ field }} is invalid\",\n\t\"ipAddress\": \"The {{ field }} field must be a valid IP address\",\n\t\"vat\": \"The {{ field }} field must be a valid VAT number\",\n\t\"uuid\": \"The {{ field }} field must be a valid UUID\",\n\t\"ulid\": \"The {{ field }} field must be a valid ULID\",\n\t\"hexCode\": \"The {{ field }} field must be a valid hex color code\",\n\t\"boolean\": \"The value must be a boolean\",\n\t\"number\": \"The {{ field }} field must be a number\",\n\t\"number.in\": \"The selected {{ field }} is not in {{ values }}\",\n\t\"min\": \"The {{ field }} field must be at least {{ min }}\",\n\t\"max\": \"The {{ field }} field must not be greater than {{ max }}\",\n\t\"range\": \"The {{ field }} field must be between {{ min }} and {{ max }}\",\n\t\"positive\": \"The {{ field }} field must be positive\",\n\t\"negative\": \"The {{ field }} field must be negative\",\n\t\"nonNegative\": \"The {{ field }} field must be positive or zero\",\n\t\"nonPositive\": \"The {{ field }} field must be negative or zero\",\n\t\"decimal\": \"The {{ field }} field must have {{ digits }} decimal places\",\n\t\"withoutDecimals\": \"The {{ field }} field must be an integer\",\n\t\"accepted\": \"The {{ field }} field must be accepted\",\n\t\"enum\": \"The selected {{ field }} is invalid\",\n\t\"literal\": \"The {{ field }} field must be {{ expectedValue }}\",\n\t\"object\": \"The {{ field }} field must be an object\",\n\t\"array\": \"The {{ field }} field must be an array\",\n\t\"array.minLength\": \"The {{ field }} field must have at least {{ min }} items\",\n\t\"array.maxLength\": \"The {{ field }} field must not have more than {{ max }} items\",\n\t\"array.fixedLength\": \"The {{ field }} field must contain {{ size }} items\",\n\t\"notEmpty\": \"The {{ field }} field must not be empty\",\n\t\"distinct\": \"The {{ field }} field has duplicate values\",\n\t\"record\": \"The {{ field }} field must be an object\",\n\t\"record.minLength\": \"The {{ field }} field must have at least {{ min }} items\",\n\t\"record.maxLength\": \"The {{ field }} field must not have more than {{ max }} items\",\n\t\"record.fixedLength\": \"The {{ field }} field must contain {{ size }} items\",\n\t\"tuple\": \"The {{ field }} field must be an array\",\n\t\"union\": \"Invalid value provided for {{ field }} field\",\n\t\"unionGroup\": \"Invalid value provided for {{ field }} field\",\n\t\"unionOfTypes\": \"Invalid value provided for {{ field }} field\",\n\t\"date\": \"The {{ field }} field must be a datetime value\",\n\t\"date.equals\": \"The {{ field }} field must be a date equal to {{ expectedValue }}\",\n\t\"date.after\": \"The {{ field }} field must be a date after {{ expectedValue }}\",\n\t\"date.before\": \"The {{ field }} field must be a date before {{ expectedValue }}\",\n\t\"date.afterOrEqual\": \"The {{ field }} field must be a date after or equal to {{ expectedValue }}\",\n\t\"date.beforeOrEqual\": \"The {{ field }} field must be a date before or equal to {{ expectedValue }}\",\n\t\"date.sameAs\": \"The {{ field }} field and {{ otherField }} field must be the same\",\n\t\"date.notSameAs\": \"The {{ field }} field and {{ otherField }} field must be different\",\n\t\"date.afterField\": \"The {{ field }} field must be a date after {{ otherField }}\",\n\t\"date.afterOrSameAs\": \"The {{ field }} field must be a date after or same as {{ otherField }}\",\n\t\"date.beforeField\": \"The {{ field }} field must be a date before {{ otherField }}\",\n\t\"date.beforeOrSameAs\": \"The {{ field }} field must be a date before or same as {{ otherField }}\",\n\t\"date.weekend\": \"The {{ field }} field is not a weekend\",\n\t\"date.weekday\": \"The {{ field }} field is not a weekday\",\n\t\"nativeFile\": \"The {{ field }} field must be a valid file\",\n\t\"nativeFile.minSize\": \"The {{ field }} field must be at least {{ min }} bytes in size\",\n\t\"nativeFile.maxSize\": \"The {{ field }} field must not exceed {{ max }} bytes in size\",\n\t\"nativeFile.mimeTypes\": \"The {{ field }} mime type is invalid\"\n};\n/**\n* Default field name mappings for error message formatting.\n* Maps field paths to human-readable labels that appear in error messages.\n*\n* The empty string key ('') provides a fallback name for the root data object.\n*\n* @example\n* // Custom field mappings\n* const customFields = {\n* 'user.email': 'Email Address',\n* 'user.firstName': 'First Name',\n* 'user.lastName': 'Last Name',\n* 'billing.address': 'Billing Address'\n* }\n*\n* // Field paths use dot notation for nested objects\n* 'user.profile.bio' → 'Biography'\n* 'settings.notifications.email' → 'Email Notifications'\n*/\nconst fields = { \n/** Default name for the root data object */\n\"\": \"data\" };\n/**\n* Global transformation registry for schema types.\n* Allows registering global transforms that automatically apply to all schema instances of a given type.\n*\n* Currently supports:\n* - `date`: Transform all Date values after validation\n*\n* The transform function receives the validated value and returns a transformed version.\n* Type inference automatically updates the output type based on the transform return type.\n*\n* @example\n* // Transform all dates to ISO strings\n* globalTransforms.date = (value) => value.toISOString()\n*\n* @example\n* // Transform all dates to timestamps\n* globalTransforms.date = (value) => value.getTime()\n*/\nconst globalTransforms = {};\n//#endregion\nexport { fields, globalTransforms, messages };\n","// index.ts\nvar Macroable = class {\n /**\n * Set of instance properties that will be added to each instance during construction.\n * Each entry contains a key and value pair representing the property name and its value.\n */\n static instanceMacros = /* @__PURE__ */ new Set();\n /**\n * Adds a macro (property or method) to the class prototype.\n * Macros are standard properties that get added to the class prototype,\n * making them available on all instances of the class.\n *\n * @param name - The name of the property or method to add\n * @param value - The value to assign to the property or method\n *\n * @example\n * ```ts\n * // Add a property macro\n * MyClass.macro('version', '1.0.0')\n *\n * // Add a method macro\n * MyClass.macro('greet', function() {\n * return 'Hello!'\n * })\n *\n * const instance = new MyClass()\n * instance.version // \"1.0.0\"\n * instance.greet() // \"Hello!\"\n * ```\n */\n static macro(name, value) {\n this.prototype[name] = value;\n }\n /**\n * Adds an instance property that will be assigned to each instance during construction.\n * Unlike macros which are added to the prototype, instance properties are unique to each instance.\n *\n * @param name - The name of the property to add to instances\n * @param value - The value to assign to the property on each instance\n *\n * @example\n * ```ts\n * // Add an instance method\n * MyClass.instanceProperty('save', function() {\n * console.log('Saving...', this.id)\n * })\n *\n * const { save } = new MyClass()\n * save()\n * ```\n */\n static instanceProperty(name, value) {\n const self = this;\n if (!self.hasOwnProperty(\"instanceMacros\")) {\n const inheritedProperties = self.instanceMacros;\n Object.defineProperty(self, \"instanceMacros\", {\n value: new Set(inheritedProperties),\n configurable: true,\n enumerable: true,\n writable: true\n });\n }\n self.instanceMacros.add({ key: name, value });\n }\n /**\n * Adds a getter property to the class prototype using Object.defineProperty.\n * Getters are computed properties that are evaluated each time they are accessed,\n * unless the singleton flag is enabled.\n *\n * @param name - The name of the getter property\n * @param accumulator - Function that computes and returns the property value\n * @param singleton - If true, the getter value is cached after first access\n *\n * @example\n * ```ts\n * // Add a regular getter\n * MyClass.getter('timestamp', function() {\n * return Date.now()\n * })\n *\n * // Add a singleton getter (cached after first access)\n * MyClass.getter('config', function() {\n * return loadConfig()\n * }, true)\n *\n * const instance = new MyClass()\n * instance.timestamp // Computed each time\n * instance.config // Computed once, then cached\n * ```\n */\n static getter(name, accumulator, singleton = false) {\n Object.defineProperty(this.prototype, name, {\n get() {\n const value = accumulator.call(this);\n if (singleton) {\n Object.defineProperty(this, name, {\n configurable: false,\n enumerable: false,\n value,\n writable: false\n });\n }\n return value;\n },\n configurable: true,\n enumerable: false\n });\n }\n /**\n * Constructor that applies all registered instance properties to the new instance.\n * This method iterates through the instanceMacros set and assigns each property\n * to the instance, binding functions to the instance context.\n */\n constructor() {\n const self = this;\n const Constructor = this.constructor;\n Constructor.instanceMacros.forEach(({ key, value }) => {\n if (typeof value === \"function\") {\n const boundFn = value.bind(this);\n for (const prop of Object.keys(value)) {\n const propValue = value[prop];\n if (typeof value === \"function\") {\n boundFn[prop] = propValue.bind(this);\n } else {\n boundFn[prop] = propValue;\n }\n }\n self[key] = boundFn;\n } else {\n self[key] = value;\n }\n });\n }\n};\nexport {\n Macroable as default\n};\n","const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\n// The |$ alternative allows matching at end-of-string, capturing empty string\n// This enables NUMBERS_AND_IDENTIFIER to match digits at string end (e.g., \"test123\")\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\\d+` + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\n\t\t// Was the character 3 positions back inserted as a separator?\n\t\t// Prevents excessive separators by checking if we recently inserted one\n\t\t// index - 3 accounts for: current character, inserted separator, previous character\n\t\t// Default true for early positions activates the preserveConsecutiveUppercase guard\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\t// FooBar → Foo-Bar (insert separator before uppercase)\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (\n\t\t\tisLastCharUpper\n\t\t\t&& isLastLastCharUpper\n\t\t\t&& LOWERCASE.test(character)\n\t\t\t&& (!isLastLastCharPreserved || preserveConsecutiveUppercase)\n\t\t) {\n\t\t\t// FOOBar → FOO-Bar\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower\n\t\t\t\t= toLowerCase(character) === character\n\t\t\t\t\t&& toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper\n\t\t\t\t= toUpperCase(character) === character\n\t\t\t\t\t&& toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => input.replace(LEADING_CAPITAL, match => toLowerCase(match));\n\nconst processWithCasePreservation = (input, toLowerCase, preserveConsecutiveUppercase) => {\n\tlet result = '';\n\tlet previousWasNumber = false;\n\tlet previousWasUppercase = false;\n\n\t// Convert input to array for lookahead capability\n\tconst characters = [...input];\n\n\tfor (let index = 0; index < characters.length; index++) {\n\t\tconst character = characters[index];\n\t\tconst isUpperCase = UPPERCASE.test(character);\n\t\tconst nextCharIsUpperCase = index + 1 < characters.length && UPPERCASE.test(characters[index + 1]);\n\n\t\tif (previousWasNumber && /[\\p{Alpha}]/u.test(character)) {\n\t\t\t// Letter after number - preserve original case\n\t\t\tresult += character;\n\t\t\tpreviousWasNumber = false;\n\t\t\tpreviousWasUppercase = isUpperCase;\n\t\t} else if (preserveConsecutiveUppercase && isUpperCase && (previousWasUppercase || nextCharIsUpperCase)) {\n\t\t\t// Part of consecutive uppercase sequence when preserveConsecutiveUppercase is true - keep it\n\t\t\tresult += character;\n\t\t\tpreviousWasUppercase = true;\n\t\t} else if (/\\d/.test(character)) {\n\t\t\t// Number - keep as-is and track it\n\t\t\tresult += character;\n\t\t\tpreviousWasNumber = true;\n\t\t\tpreviousWasUppercase = false;\n\t\t} else if (SEPARATORS.test(character)) {\n\t\t\t// Separator - keep as-is and maintain previousWasNumber state\n\t\t\tresult += character;\n\t\t\tpreviousWasUppercase = false;\n\t\t} else {\n\t\t\t// Regular character - lowercase it\n\t\t\tresult += toLowerCase(character);\n\t\t\tpreviousWasNumber = false;\n\t\t\tpreviousWasUppercase = false;\n\t\t}\n\t}\n\n\treturn result;\n};\n\n/**\nCore post-processing:\n- Collapses separators and uppercases the following identifier character.\n- Optionally uppercases the identifier following a numeric sequence.\n\nTwo-pass strategy prevents conflicts:\n1. NUMBERS_AND_IDENTIFIER: handles digit-to-letter transitions\n2. SEPARATORS_AND_IDENTIFIER: handles separator-to-identifier transitions\n\nExample: \"b2b_registration\" with capitalizeAfterNumber: true\n- Pass 1: \"2b\" matches, next char is \"_\" (separator), so don't capitalize → \"b2b_registration\"\n- Pass 2: \"_r\" matches, replace with \"R\" → \"b2bRegistration\"\n*/\nconst postProcess = (input, toUpperCase, {capitalizeAfterNumber}) => {\n\tconst transformNumericIdentifier = capitalizeAfterNumber\n\t\t? (match, identifier, offset, string) => {\n\t\t\tconst nextCharacter = string.charAt(offset + match.length);\n\n\t\t\t// If the numeric+identifier run is immediately followed by a separator,\n\t\t\t// treat it as a continued token and do not force a new word.\n\t\t\tif (SEPARATORS.test(nextCharacter)) {\n\t\t\t\treturn match;\n\t\t\t}\n\n\t\t\t// Only uppercase the identifier part (not the digits) for efficiency\n\t\t\treturn identifier ? match.slice(0, -identifier.length) + toUpperCase(identifier) : match;\n\t\t}\n\t\t// When false: numbers do not create a word boundary.\n\t\t: match => match;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, transformNumericIdentifier)\n\t\t.replaceAll(\n\t\t\tSEPARATORS_AND_IDENTIFIER,\n\t\t\t(_, identifier) => toUpperCase(identifier),\n\t\t);\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\tcapitalizeAfterNumber: true,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input\n\t\t\t.map(element => element.trim())\n\t\t\t.filter(element => element.length > 0)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\t// Preserve leading _ and $ as they have semantic meaning\n\tconst leadingPrefix = input.match(/^[_$]*/)[0];\n\tinput = input.slice(leadingPrefix.length);\n\n\tif (input.length === 0) {\n\t\treturn leadingPrefix;\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn leadingPrefix;\n\t\t}\n\n\t\treturn leadingPrefix + (options.pascalCase\n\t\t\t? toUpperCase(input)\n\t\t\t: toLowerCase(input));\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(\n\t\t\tinput,\n\t\t\ttoLowerCase,\n\t\t\ttoUpperCase,\n\t\t\toptions.preserveConsecutiveUppercase,\n\t\t);\n\t}\n\n\t// Strip leading separators eagerly so they do not affect word detection\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\n\t// Normalize base casing while preserving intended consecutive uppers\n\tif (options.capitalizeAfterNumber) {\n\t\t// Standard behavior - lowercase everything (or preserve consecutive uppercase)\n\t\tinput = options.preserveConsecutiveUppercase\n\t\t\t? preserveConsecutiveUppercase(input, toLowerCase)\n\t\t\t: toLowerCase(input);\n\t} else {\n\t\t// Preserve case after numbers (processWithCasePreservation handles preserveConsecutiveUppercase internally)\n\t\tinput = processWithCasePreservation(input, toLowerCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tif (options.pascalCase && input.length > 0) {\n\t\tinput = toUpperCase(input[0]) + input.slice(1);\n\t}\n\n\treturn leadingPrefix + postProcess(input, toUpperCase, options);\n}\n","// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\nconst DATA_URL_DEFAULT_MIME_TYPE = 'text/plain';\nconst DATA_URL_DEFAULT_CHARSET = 'us-ascii';\n\nconst testParameter = (name, filters) => filters.some(filter => filter instanceof RegExp ? filter.test(name) : filter === name);\n\nconst supportedProtocols = new Set([\n\t'https:',\n\t'http:',\n\t'file:',\n]);\n\nconst hasCustomProtocol = urlString => {\n\ttry {\n\t\tconst {protocol} = new URL(urlString);\n\n\t\treturn protocol.endsWith(':')\n\t\t\t&& !protocol.includes('.')\n\t\t\t&& !supportedProtocols.has(protocol);\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nconst normalizeDataURL = (urlString, {stripHash}) => {\n\tconst match = /^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(urlString);\n\n\tif (!match) {\n\t\tthrow new Error(`Invalid URL: ${urlString}`);\n\t}\n\n\tconst {type, data, hash} = match.groups;\n\tconst mediaType = type.split(';');\n\n\tconst isBase64 = mediaType.at(-1) === 'base64';\n\tif (isBase64) {\n\t\tmediaType.pop();\n\t}\n\n\t// Lowercase MIME type\n\tconst mimeType = mediaType.shift()?.toLowerCase() ?? '';\n\tconst attributes = mediaType\n\t\t.map(attribute => {\n\t\t\tlet [key, value = ''] = attribute.split('=').map(string => string.trim());\n\n\t\t\t// Lowercase `charset`\n\t\t\tif (key === 'charset') {\n\t\t\t\tvalue = value.toLowerCase();\n\n\t\t\t\tif (value === DATA_URL_DEFAULT_CHARSET) {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn `${key}${value ? `=${value}` : ''}`;\n\t\t})\n\t\t.filter(Boolean);\n\n\tconst normalizedMediaType = [...attributes];\n\n\tif (isBase64) {\n\t\tnormalizedMediaType.push('base64');\n\t}\n\n\tif (normalizedMediaType.length > 0 || (mimeType && mimeType !== DATA_URL_DEFAULT_MIME_TYPE)) {\n\t\tnormalizedMediaType.unshift(mimeType);\n\t}\n\n\tconst hashPart = stripHash || !hash ? '' : `#${hash}`;\n\treturn `data:${normalizedMediaType.join(';')},${isBase64 ? data.trim() : data}${hashPart}`;\n};\n\nexport default function normalizeUrl(urlString, options) {\n\toptions = {\n\t\tdefaultProtocol: 'http',\n\t\tnormalizeProtocol: true,\n\t\tforceHttp: false,\n\t\tforceHttps: false,\n\t\tstripAuthentication: true,\n\t\tstripHash: false,\n\t\tstripTextFragment: true,\n\t\tstripWWW: true,\n\t\tremoveQueryParameters: [/^utm_\\w+/i],\n\t\tremoveTrailingSlash: true,\n\t\tremoveSingleSlash: true,\n\t\tremoveDirectoryIndex: false,\n\t\tremoveExplicitPort: false,\n\t\tsortQueryParameters: true,\n\t\tremovePath: false,\n\t\ttransformPath: false,\n\t\t...options,\n\t};\n\n\t// Legacy: Append `:` to the protocol if missing.\n\tif (typeof options.defaultProtocol === 'string' && !options.defaultProtocol.endsWith(':')) {\n\t\toptions.defaultProtocol = `${options.defaultProtocol}:`;\n\t}\n\n\turlString = urlString.trim();\n\n\t// Data URL\n\tif (/^data:/i.test(urlString)) {\n\t\treturn normalizeDataURL(urlString, options);\n\t}\n\n\tif (hasCustomProtocol(urlString)) {\n\t\treturn urlString;\n\t}\n\n\tconst hasRelativeProtocol = urlString.startsWith('//');\n\tconst isRelativeUrl = !hasRelativeProtocol && /^\\.*\\//.test(urlString);\n\n\t// Prepend protocol\n\tif (!isRelativeUrl) {\n\t\turlString = urlString.replace(/^(?!(?:\\w+:)?\\/\\/)|^\\/\\//, options.defaultProtocol);\n\t}\n\n\tconst urlObject = new URL(urlString);\n\n\tif (options.forceHttp && options.forceHttps) {\n\t\tthrow new Error('The `forceHttp` and `forceHttps` options cannot be used together');\n\t}\n\n\tif (options.forceHttp && urlObject.protocol === 'https:') {\n\t\turlObject.protocol = 'http:';\n\t}\n\n\tif (options.forceHttps && urlObject.protocol === 'http:') {\n\t\turlObject.protocol = 'https:';\n\t}\n\n\t// Remove auth\n\tif (options.stripAuthentication) {\n\t\turlObject.username = '';\n\t\turlObject.password = '';\n\t}\n\n\t// Remove hash\n\tif (options.stripHash) {\n\t\turlObject.hash = '';\n\t} else if (options.stripTextFragment) {\n\t\turlObject.hash = urlObject.hash.replace(/#?:~:text.*?$/i, '');\n\t}\n\n\t// Remove duplicate slashes if not preceded by a protocol\n\t// NOTE: This could be implemented using a single negative lookbehind\n\t// regex, but we avoid that to maintain compatibility with older js engines\n\t// which do not have support for that feature.\n\tif (urlObject.pathname) {\n\t\t// TODO: Replace everything below with `urlObject.pathname = urlObject.pathname.replace(/(?<!\\b[a-z][a-z\\d+\\-.]{1,50}:)\\/{2,}/g, '/');` when Safari supports negative lookbehind.\n\n\t\t// Split the string by occurrences of this protocol regex, and perform\n\t\t// duplicate-slash replacement on the strings between those occurrences\n\t\t// (if any).\n\t\tconst protocolRegex = /\\b[a-z][a-z\\d+\\-.]{1,50}:\\/\\//g;\n\n\t\tlet lastIndex = 0;\n\t\tlet result = '';\n\t\tfor (;;) {\n\t\t\tconst match = protocolRegex.exec(urlObject.pathname);\n\t\t\tif (!match) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst protocol = match[0];\n\t\t\tconst protocolAtIndex = match.index;\n\t\t\tconst intermediate = urlObject.pathname.slice(lastIndex, protocolAtIndex);\n\n\t\t\tresult += intermediate.replace(/\\/{2,}/g, '/');\n\t\t\tresult += protocol;\n\t\t\tlastIndex = protocolAtIndex + protocol.length;\n\t\t}\n\n\t\tconst remnant = urlObject.pathname.slice(lastIndex, urlObject.pathname.length);\n\t\tresult += remnant.replace(/\\/{2,}/g, '/');\n\n\t\turlObject.pathname = result;\n\t}\n\n\t// Decode URI octets\n\tif (urlObject.pathname) {\n\t\ttry {\n\t\t\turlObject.pathname = decodeURI(urlObject.pathname).replace(/\\\\/g, '%5C');\n\t\t} catch {}\n\t}\n\n\t// Remove directory index\n\tif (options.removeDirectoryIndex === true) {\n\t\toptions.removeDirectoryIndex = [/^index\\.[a-z]+$/];\n\t}\n\n\tif (Array.isArray(options.removeDirectoryIndex) && options.removeDirectoryIndex.length > 0) {\n\t\tconst pathComponents = urlObject.pathname.split('/').filter(Boolean);\n\t\tconst lastComponent = pathComponents.at(-1);\n\n\t\tif (lastComponent && testParameter(lastComponent, options.removeDirectoryIndex)) {\n\t\t\tpathComponents.pop();\n\t\t\turlObject.pathname = pathComponents.length > 0 ? `/${pathComponents.join('/')}/` : '/';\n\t\t}\n\t}\n\n\t// Remove path\n\tif (options.removePath) {\n\t\turlObject.pathname = '/';\n\t}\n\n\t// Transform path components\n\tif (options.transformPath && typeof options.transformPath === 'function') {\n\t\tconst pathComponents = urlObject.pathname.split('/').filter(Boolean);\n\t\tconst newComponents = options.transformPath(pathComponents);\n\t\turlObject.pathname = newComponents?.length > 0 ? `/${newComponents.join('/')}` : '/';\n\t}\n\n\tif (urlObject.hostname) {\n\t\t// Remove trailing dot\n\t\turlObject.hostname = urlObject.hostname.replace(/\\.$/, '');\n\n\t\t// Remove `www.`\n\t\tif (options.stripWWW && /^www\\.(?!www\\.)[a-z\\-\\d]{1,63}\\.[a-z.\\-\\d]{2,63}$/.test(urlObject.hostname)) {\n\t\t\t// Each label should be max 63 at length (min: 1).\n\t\t\t// Source: https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names\n\t\t\t// Each TLD should be up to 63 characters long (min: 2).\n\t\t\t// It is technically possible to have a single character TLD, but none currently exist.\n\t\t\turlObject.hostname = urlObject.hostname.replace(/^www\\./, '');\n\t\t}\n\t}\n\n\t// Remove query unwanted parameters\n\tif (Array.isArray(options.removeQueryParameters)) {\n\t\t// eslint-disable-next-line unicorn/no-useless-spread -- We are intentionally spreading to get a copy.\n\t\tfor (const key of [...urlObject.searchParams.keys()]) {\n\t\t\tif (testParameter(key, options.removeQueryParameters)) {\n\t\t\t\turlObject.searchParams.delete(key);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (!Array.isArray(options.keepQueryParameters) && options.removeQueryParameters === true) {\n\t\turlObject.search = '';\n\t}\n\n\t// Keep wanted query parameters\n\tif (Array.isArray(options.keepQueryParameters) && options.keepQueryParameters.length > 0) {\n\t\t// eslint-disable-next-line unicorn/no-useless-spread -- We are intentionally spreading to get a copy.\n\t\tfor (const key of [...urlObject.searchParams.keys()]) {\n\t\t\tif (!testParameter(key, options.keepQueryParameters)) {\n\t\t\t\turlObject.searchParams.delete(key);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Sort query parameters\n\tif (options.sortQueryParameters) {\n\t\tconst originalSearch = urlObject.search;\n\t\turlObject.searchParams.sort();\n\n\t\t// Calling `.sort()` encodes the search parameters, so we need to decode them again.\n\t\ttry {\n\t\t\turlObject.search = decodeURIComponent(urlObject.search);\n\t\t} catch {}\n\n\t\t// Fix parameters that originally had no equals sign but got one added by URLSearchParams\n\t\tconst partsWithoutEquals = originalSearch.slice(1).split('&').filter(p => p && !p.includes('='));\n\t\tfor (const part of partsWithoutEquals) {\n\t\t\tconst decoded = decodeURIComponent(part);\n\t\t\t// Only replace at word boundaries to avoid partial matches\n\t\t\turlObject.search = urlObject.search.replace(`?${decoded}=`, `?${decoded}`).replace(`&${decoded}=`, `&${decoded}`);\n\t\t}\n\t}\n\n\tif (options.removeTrailingSlash) {\n\t\turlObject.pathname = urlObject.pathname.replace(/\\/$/, '');\n\t}\n\n\t// Remove an explicit port number, excluding a default port number, if applicable\n\tif (options.removeExplicitPort && urlObject.port) {\n\t\turlObject.port = '';\n\t}\n\n\tconst oldUrlString = urlString;\n\n\t// Take advantage of many of the Node `url` normalizations\n\turlString = urlObject.toString();\n\n\tif (!options.removeSingleSlash && urlObject.pathname === '/' && !oldUrlString.endsWith('/') && urlObject.hash === '') {\n\t\turlString = urlString.replace(/\\/$/, '');\n\t}\n\n\t// Remove ending `/` unless removeSingleSlash is false\n\tif ((options.removeTrailingSlash || urlObject.pathname === '/') && urlObject.hash === '' && options.removeSingleSlash) {\n\t\turlString = urlString.replace(/\\/$/, '');\n\t}\n\n\t// Restore relative protocol, if applicable\n\tif (hasRelativeProtocol && !options.normalizeProtocol) {\n\t\turlString = urlString.replace(/^http:\\/\\//, '//');\n\t}\n\n\t// Remove http/https\n\tif (options.stripProtocol) {\n\t\turlString = urlString.replace(/^(?:https?:)?\\/\\//, '');\n\t}\n\n\treturn urlString;\n}\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = escape;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction escape(str) {\n (0, _assertString.default)(str);\n return str.replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\\//g, '/').replace(/\\\\/g, '\').replace(/`/g, '`');\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = normalizeEmail;\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar default_normalize_email_options = {\n // The following options apply to all email addresses\n // Lowercases the local part of the email address.\n // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024).\n // The domain is always lowercased, as per RFC 1035\n all_lowercase: true,\n // The following conversions are specific to GMail\n // Lowercases the local part of the GMail address (known to be case-insensitive)\n gmail_lowercase: true,\n // Removes dots from the local part of the email address, as that's ignored by GMail\n gmail_remove_dots: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n gmail_remove_subaddress: true,\n // Conversts the googlemail.com domain to gmail.com\n gmail_convert_googlemaildotcom: true,\n // The following conversions are specific to Outlook.com / Windows Live / Hotmail\n // Lowercases the local part of the Outlook.com address (known to be case-insensitive)\n outlookdotcom_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n outlookdotcom_remove_subaddress: true,\n // The following conversions are specific to Yahoo\n // Lowercases the local part of the Yahoo address (known to be case-insensitive)\n yahoo_lowercase: true,\n // Removes the subaddress (e.g. \"-foo\") from the email address\n yahoo_remove_subaddress: true,\n // The following conversions are specific to Yandex\n // Lowercases the local part of the Yandex address (known to be case-insensitive)\n yandex_lowercase: true,\n // all yandex domains are equal, this explicitly sets the domain to 'yandex.ru'\n yandex_convert_yandexru: true,\n // The following conversions are specific to iCloud\n // Lowercases the local part of the iCloud address (known to be case-insensitive)\n icloud_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n icloud_remove_subaddress: true\n};\n\n// List of domains used by iCloud\nvar icloud_domains = ['icloud.com', 'me.com'];\n\n// List of domains used by Outlook.com and its predecessors\n// This list is likely incomplete.\n// Partial reference:\n// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/\nvar outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com'];\n\n// List of domains used by Yahoo Mail\n// This list is likely incomplete\nvar yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com'];\n\n// List of domains used by yandex.ru\nvar yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru'];\n\n// replace single dots, but not multiple consecutive dots\nfunction dotsReplacer(match) {\n if (match.length > 1) {\n return match;\n }\n return '';\n}\nfunction normalizeEmail(email, options) {\n options = (0, _merge.default)(options, default_normalize_email_options);\n var raw_parts = email.split('@');\n var domain = raw_parts.pop();\n var user = raw_parts.join('@');\n var parts = [user, domain];\n\n // The domain is always lowercased, as it's case-insensitive per RFC 1035\n parts[1] = parts[1].toLowerCase();\n if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\n // Address is GMail\n if (options.gmail_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (options.gmail_remove_dots) {\n // this does not replace consecutive dots like example..email@gmail.com\n parts[0] = parts[0].replace(/\\.+/g, dotsReplacer);\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.gmail_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];\n } else if (icloud_domains.indexOf(parts[1]) >= 0) {\n // Address is iCloud\n if (options.icloud_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.icloud_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) {\n // Address is Outlook.com\n if (options.outlookdotcom_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.outlookdotcom_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yahoo_domains.indexOf(parts[1]) >= 0) {\n // Address is Yahoo\n if (options.yahoo_remove_subaddress) {\n var components = parts[0].split('-');\n parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.yahoo_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yandex_domains.indexOf(parts[1]) >= 0) {\n if (options.all_lowercase || options.yandex_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n parts[1] = options.yandex_convert_yandexru ? 'yandex.ru' : parts[1];\n } else if (options.all_lowercase) {\n // Any other address\n parts[0] = parts[0].toLowerCase();\n }\n return parts.join('@');\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","var CompilerBuffer = class CompilerBuffer {\n\t#content = \"\";\n\tnewLine = \"\\n\";\n\twriteStatement(statement) {\n\t\tthis.#content = `${this.#content}${this.newLine}${statement}`;\n\t}\n\tchild() {\n\t\treturn new CompilerBuffer();\n\t}\n\ttoString() {\n\t\treturn this.#content;\n\t}\n\tflush() {\n\t\tthis.#content = \"\";\n\t}\n};\nfunction defineFieldVariables({ parseFnRefId, variableName, wildCardPath, isArrayMember, valueExpression, parentExpression, fieldNameExpression, parentValueExpression }) {\n\tconst inValueExpression = parseFnRefId ? `refs['${parseFnRefId}'](${valueExpression}, {\n data: root,\n meta: meta,\n parent: ${parentValueExpression}\n })` : valueExpression;\n\tlet fieldPathOutputExpression = \"\";\n\tif (parentExpression === \"root\" || parentExpression === \"root_item\") fieldPathOutputExpression = fieldNameExpression;\n\telse if (fieldNameExpression !== \"''\") fieldPathOutputExpression = `${parentExpression}.getFieldPath() + '.' + ${fieldNameExpression}`;\n\treturn `const ${variableName} = defineValue(${inValueExpression}, {\n data: root,\n meta: meta,\n name: ${fieldNameExpression},\n wildCardPath: '${wildCardPath}',\n getFieldPath() {\n return ${fieldPathOutputExpression};\n },\n mutate: defineValue,\n report: report,\n isValid: true,\n isValidDataType: false,\n parent: ${parentValueExpression},\n isArrayMember: ${isArrayMember},\n});`;\n}\nfunction validateLiteralField({ variableName, validatorFnId }) {\n\tconst rule = `refs['${validatorFnId}']`;\n\treturn `${variableName}.isValidDataType = ${`${rule}.validator(${variableName}.value, ${rule}.options, ${variableName});`}`;\n}\nvar BaseNode = class {\n\t#node;\n\t#parentField;\n\tfield;\n\tconstructor(node, compiler, parent, parentField) {\n\t\tthis.#parentField = parentField;\n\t\tthis.#node = node;\n\t\tif (this.#parentField) this.field = this.#parentField;\n\t\telse {\n\t\t\tcompiler.variablesCounter++;\n\t\t\tthis.field = compiler.createFieldFor(node, parent);\n\t\t}\n\t}\n\tdefineField(buffer) {\n\t\tif (!this.#parentField) buffer.writeStatement(defineFieldVariables({\n\t\t\tfieldNameExpression: this.field.fieldNameExpression,\n\t\t\tisArrayMember: this.field.isArrayMember,\n\t\t\tparentExpression: this.field.parentExpression,\n\t\t\tparentValueExpression: this.field.parentValueExpression,\n\t\t\tvalueExpression: this.field.valueExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath,\n\t\t\tparseFnRefId: \"parseFnId\" in this.#node ? this.#node.parseFnId : void 0\n\t\t}));\n\t}\n};\nfunction defineArrayGuard({ variableName, guardedCodeSnippet }) {\n\treturn `if (${variableName}.isValidDataType) {\n${guardedCodeSnippet}\n}`;\n}\nfunction defineIsValidGuard({ variableName, bail, guardedCodeSnippet }) {\n\tif (!bail) return guardedCodeSnippet;\n\treturn `if (${variableName}.isValid) {\n${guardedCodeSnippet}\n}`;\n}\nfunction defineFieldNullOutput({ allowNull, conditional, variableName, outputExpression, transformFnRefId }) {\n\tif (!allowNull) return \"\";\n\treturn `${conditional || \"if\"}(${variableName}.value === null) {\n ${outputExpression} = ${transformFnRefId ? `refs['${transformFnRefId}'](null, ${variableName});` : \"null;\"}\n}`;\n}\nfunction wrapInConditional(conditions, wrappingCode) {\n\tconst [first, second] = conditions;\n\tif (first && second) return `if (${first} && ${second}) {\n ${wrappingCode}\n}`;\n\tif (first) return `if (${first}) {\n ${wrappingCode}\n}`;\n\tif (second) return `if (${second}) {\n ${wrappingCode}\n}`;\n\treturn wrappingCode;\n}\nfunction emitValidationSnippet({ isAsync, implicit, ruleFnId }, variableName, bail, dropMissingCheck, existenceCheckExpression) {\n\tconst rule = `refs['${ruleFnId}']`;\n\tconst callable = `${rule}.validator(${variableName}.value, ${rule}.options, ${variableName});`;\n\texistenceCheckExpression = existenceCheckExpression || `${variableName}.isDefined`;\n\treturn wrapInConditional([bail ? `${variableName}.isValid` : \"\", implicit || dropMissingCheck ? \"\" : existenceCheckExpression], isAsync ? `await ${callable}` : `${callable}`);\n}\nfunction defineFieldValidations({ bail, validations, variableName, dropMissingCheck, existenceCheckExpression }) {\n\treturn `${validations.map((one) => emitValidationSnippet(one, variableName, bail, dropMissingCheck, existenceCheckExpression)).join(\"\\n\")}`;\n}\nfunction defineArrayInitialOutput({ variableName, outputExpression, outputValueExpression }) {\n\treturn `const ${variableName}_out = ${outputValueExpression};\n${outputExpression} = ${variableName}_out;`;\n}\nfunction defineFieldExistenceValidations({ allowNull, isOptional, variableName }) {\n\tif (isOptional === false) if (allowNull === false) return `ensureExists(${variableName});`;\n\telse return `ensureIsDefined(${variableName});`;\n\treturn \"\";\n}\nfunction validateArrayField({ variableName }) {\n\treturn `${variableName}.isValidDataType = ensureIsArray(${variableName});`;\n}\nvar TupleNodeCompiler = class extends BaseNode {\n\t#node;\n\t#buffer;\n\t#compiler;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t\tthis.#compiler = compiler;\n\t}\n\t#compileTupleChildren() {\n\t\tconst buffer = this.#buffer.child();\n\t\tconst parent = {\n\t\t\ttype: \"tuple\",\n\t\t\tfieldPathExpression: this.field.fieldPathExpression,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath\n\t\t};\n\t\tthis.#node.properties.forEach((child) => {\n\t\t\tthis.#compiler.compileNode(child, buffer, parent);\n\t\t});\n\t\treturn buffer.toString();\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(defineFieldExistenceValidations({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\tisOptional: this.#node.isOptional,\n\t\t\tvariableName: this.field.variableName\n\t\t}));\n\t\tthis.#buffer.writeStatement(validateArrayField({ variableName: this.field.variableName }));\n\t\tthis.#buffer.writeStatement(defineFieldValidations({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidations: this.#node.validations,\n\t\t\tbail: this.#node.bail,\n\t\t\tdropMissingCheck: false,\n\t\t\texistenceCheckExpression: `${this.field.variableName}.isValidDataType`\n\t\t}));\n\t\tconst isArrayValidBlock = defineArrayGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tguardedCodeSnippet: `${this.#buffer.newLine}${defineIsValidGuard({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\tbail: this.#node.bail,\n\t\t\t\tguardedCodeSnippet: `${defineArrayInitialOutput({\n\t\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\t\toutputExpression: this.field.outputExpression,\n\t\t\t\t\toutputValueExpression: this.#node.allowUnknownProperties ? `copyProperties(${this.field.variableName}.value)` : `[]`\n\t\t\t\t})}${this.#buffer.newLine}${this.#compileTupleChildren()}`\n\t\t\t})}`\n\t\t});\n\t\tthis.#buffer.writeStatement(`${isArrayValidBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\tconditional: \"else if\"\n\t\t})}`);\n\t}\n};\nfunction defineArrayLoop({ variableName, loopCodeSnippet, startingIndex }) {\n\tstartingIndex = startingIndex || 0;\n\treturn `const ${variableName}_items_size = ${variableName}.value.length;\nfor (let ${variableName}_i = ${startingIndex}; ${variableName}_i < ${variableName}_items_size; ${variableName}_i++) {\n${loopCodeSnippet}\n}`;\n}\nvar ArrayNodeCompiler = class extends BaseNode {\n\t#node;\n\t#buffer;\n\t#compiler;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t\tthis.#compiler = compiler;\n\t}\n\t#compileArrayElements() {\n\t\tconst arrayElementsBuffer = this.#buffer.child();\n\t\tthis.#compiler.compileNode(this.#node.each, arrayElementsBuffer, {\n\t\t\ttype: \"array\",\n\t\t\tfieldPathExpression: this.field.fieldPathExpression,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath\n\t\t});\n\t\tconst buffer = this.#buffer.child();\n\t\tbuffer.writeStatement(defineArrayLoop({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tstartingIndex: 0,\n\t\t\tloopCodeSnippet: arrayElementsBuffer.toString()\n\t\t}));\n\t\tarrayElementsBuffer.flush();\n\t\treturn buffer.toString();\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(defineFieldExistenceValidations({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\tisOptional: this.#node.isOptional,\n\t\t\tvariableName: this.field.variableName\n\t\t}));\n\t\tthis.#buffer.writeStatement(validateArrayField({ variableName: this.field.variableName }));\n\t\tthis.#buffer.writeStatement(defineFieldValidations({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidations: this.#node.validations,\n\t\t\tbail: this.#node.bail,\n\t\t\tdropMissingCheck: false,\n\t\t\texistenceCheckExpression: `${this.field.variableName}.isValidDataType`\n\t\t}));\n\t\tconst isArrayValidBlock = defineArrayGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tguardedCodeSnippet: `${this.#buffer.newLine}${defineIsValidGuard({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\tbail: this.#node.bail,\n\t\t\t\tguardedCodeSnippet: `${defineArrayInitialOutput({\n\t\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\t\toutputExpression: this.field.outputExpression,\n\t\t\t\t\toutputValueExpression: `[]`\n\t\t\t\t})}${this.#buffer.newLine}${this.#compileArrayElements()}`\n\t\t\t})}`\n\t\t});\n\t\tthis.#buffer.writeStatement(`${isArrayValidBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\tconditional: \"else if\"\n\t\t})}`);\n\t}\n};\nfunction callParseFunction({ parseFnRefId, variableName }) {\n\tif (parseFnRefId) return `${variableName}.value = refs['${parseFnRefId}'](${variableName}.value);`;\n\treturn \"\";\n}\nfunction defineElseCondition({ variableName, conditionalFnRefId }) {\n\treturn `else {\nrefs['${conditionalFnRefId}'](${variableName}.value, ${variableName});\n}`;\n}\nfunction defineConditionalGuard({ conditional, variableName, conditionalFnRefId, guardedCodeSnippet }) {\n\treturn `${conditional}(refs['${conditionalFnRefId}'](${variableName}.value, ${variableName})) {\n${guardedCodeSnippet}\n}`;\n}\nvar UnionNodeCompiler = class extends BaseNode {\n\t#compiler;\n\t#node;\n\t#buffer;\n\t#parent;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t\tthis.#parent = parent;\n\t\tthis.#compiler = compiler;\n\t}\n\t#compileUnionChildren() {\n\t\tconst childrenBuffer = this.#buffer.child();\n\t\tthis.#node.conditions.forEach((child, index) => {\n\t\t\tconst conditionalBuffer = this.#buffer.child();\n\t\t\tif (\"parseFnId\" in child.schema) conditionalBuffer.writeStatement(callParseFunction({\n\t\t\t\tparseFnRefId: child.schema.parseFnId,\n\t\t\t\tvariableName: this.field.variableName\n\t\t\t}));\n\t\t\tthis.#compiler.compileNode(child.schema, conditionalBuffer, this.#parent, this.field);\n\t\t\tchildrenBuffer.writeStatement(defineConditionalGuard({\n\t\t\t\tconditional: index === 0 ? \"if\" : \"else if\",\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\tconditionalFnRefId: child.conditionalFnRefId,\n\t\t\t\tguardedCodeSnippet: conditionalBuffer.toString()\n\t\t\t}));\n\t\t\tconditionalBuffer.flush();\n\t\t});\n\t\tif (this.#node.elseConditionalFnRefId && this.#node.conditions.length) childrenBuffer.writeStatement(defineElseCondition({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tconditionalFnRefId: this.#node.elseConditionalFnRefId\n\t\t}));\n\t\treturn childrenBuffer.toString();\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(this.#compileUnionChildren());\n\t}\n};\nfunction defineRecordLoop({ variableName, loopCodeSnippet }) {\n\treturn `const ${variableName}_keys = Object.keys(${variableName}.value);\nconst ${variableName}_keys_size = ${variableName}_keys.length;\nfor (let ${variableName}_key_i = 0; ${variableName}_key_i < ${variableName}_keys_size; ${variableName}_key_i++) {\nconst ${variableName}_i = ${variableName}_keys[${variableName}_key_i];\n${loopCodeSnippet}\n}`;\n}\nfunction defineObjectGuard({ variableName, guardedCodeSnippet }) {\n\treturn `if (${variableName}.isValidDataType) {\n${guardedCodeSnippet}\n}`;\n}\nfunction defineObjectInitialOutput({ variableName, outputExpression, outputValueExpression }) {\n\treturn `const ${variableName}_out = ${outputValueExpression};\n${outputExpression} = ${variableName}_out;`;\n}\nfunction validateObjectField({ variableName }) {\n\treturn `${variableName}.isValidDataType = ensureIsObject(${variableName});`;\n}\nvar RecordNodeCompiler = class extends BaseNode {\n\t#node;\n\t#buffer;\n\t#compiler;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t\tthis.#compiler = compiler;\n\t}\n\t#compileRecordElements() {\n\t\tconst buffer = this.#buffer.child();\n\t\tconst recordElementsBuffer = this.#buffer.child();\n\t\tthis.#compiler.compileNode(this.#node.each, recordElementsBuffer, {\n\t\t\ttype: \"record\",\n\t\t\tfieldPathExpression: this.field.fieldPathExpression,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath\n\t\t});\n\t\tbuffer.writeStatement(defineRecordLoop({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tloopCodeSnippet: recordElementsBuffer.toString()\n\t\t}));\n\t\trecordElementsBuffer.flush();\n\t\treturn buffer.toString();\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(defineFieldExistenceValidations({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\tisOptional: this.#node.isOptional,\n\t\t\tvariableName: this.field.variableName\n\t\t}));\n\t\tthis.#buffer.writeStatement(validateObjectField({ variableName: this.field.variableName }));\n\t\tthis.#buffer.writeStatement(defineFieldValidations({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidations: this.#node.validations,\n\t\t\tbail: this.#node.bail,\n\t\t\tdropMissingCheck: false,\n\t\t\texistenceCheckExpression: `${this.field.variableName}.isValidDataType`\n\t\t}));\n\t\tconst isObjectValidBlock = defineIsValidGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tbail: this.#node.bail,\n\t\t\tguardedCodeSnippet: `${defineObjectInitialOutput({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\toutputExpression: this.field.outputExpression,\n\t\t\t\toutputValueExpression: `{}`\n\t\t\t})}${this.#compileRecordElements()}`\n\t\t});\n\t\tconst isValueAnObjectBlock = defineObjectGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tguardedCodeSnippet: `${this.#buffer.newLine}${isObjectValidBlock}`\n\t\t});\n\t\tthis.#buffer.writeStatement(`${isValueAnObjectBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\tconditional: \"else if\"\n\t\t})}`);\n\t}\n};\nfunction arrayToString(arr) {\n\treturn `[${arr.map((str) => `\"${str}\"`).join(\", \")}]`;\n}\nfunction defineMoveProperties({ variableName, fieldsToIgnore, allowUnknownProperties }) {\n\tif (!allowUnknownProperties) return \"\";\n\treturn `moveProperties(${variableName}.value, ${variableName}_out, ${arrayToString(fieldsToIgnore)});`;\n}\nvar ObjectNodeCompiler = class extends BaseNode {\n\t#node;\n\t#buffer;\n\t#compiler;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t\tthis.#compiler = compiler;\n\t}\n\t#getFieldNames(node) {\n\t\tlet fieldNames = node.properties.map((child) => child.fieldName);\n\t\tconst groupsFieldNames = node.groups.flatMap((group) => this.#getGroupFieldNames(group));\n\t\treturn fieldNames.concat(groupsFieldNames);\n\t}\n\t#getGroupFieldNames(group) {\n\t\treturn group.conditions.flatMap((condition) => {\n\t\t\treturn this.#getFieldNames(condition.schema);\n\t\t});\n\t}\n\t#compileObjectChildren() {\n\t\tconst buffer = this.#buffer.child();\n\t\tconst parent = {\n\t\t\ttype: \"object\",\n\t\t\tfieldPathExpression: this.field.fieldPathExpression,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath\n\t\t};\n\t\tthis.#node.properties.forEach((child) => this.#compiler.compileNode(child, buffer, parent));\n\t\treturn buffer.toString();\n\t}\n\t#compileObjectGroups() {\n\t\tconst buffer = this.#buffer.child();\n\t\tconst parent = {\n\t\t\ttype: \"object\",\n\t\t\tfieldPathExpression: this.field.fieldPathExpression,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tvariableName: this.field.variableName,\n\t\t\twildCardPath: this.field.wildCardPath\n\t\t};\n\t\tthis.#node.groups.forEach((group) => this.#compileObjectGroup(group, buffer, parent));\n\t\treturn buffer.toString();\n\t}\n\t#compileObjectGroup(group, buffer, parent) {\n\t\tgroup.conditions.forEach((condition, index) => {\n\t\t\tconst guardBuffer = buffer.child();\n\t\t\tcondition.schema.properties.forEach((child) => {\n\t\t\t\tthis.#compiler.compileNode(child, guardBuffer, parent);\n\t\t\t});\n\t\t\tcondition.schema.groups.forEach((child) => {\n\t\t\t\tthis.#compileObjectGroup(child, guardBuffer, parent);\n\t\t\t});\n\t\t\tbuffer.writeStatement(defineConditionalGuard({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\tconditional: index === 0 ? \"if\" : \"else if\",\n\t\t\t\tconditionalFnRefId: condition.conditionalFnRefId,\n\t\t\t\tguardedCodeSnippet: guardBuffer.toString()\n\t\t\t}));\n\t\t});\n\t\tif (group.elseConditionalFnRefId && group.conditions.length) buffer.writeStatement(defineElseCondition({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tconditionalFnRefId: group.elseConditionalFnRefId\n\t\t}));\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(defineFieldExistenceValidations({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\tisOptional: this.#node.isOptional,\n\t\t\tvariableName: this.field.variableName\n\t\t}));\n\t\tthis.#buffer.writeStatement(validateObjectField({ variableName: this.field.variableName }));\n\t\tthis.#buffer.writeStatement(defineFieldValidations({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidations: this.#node.validations,\n\t\t\tbail: this.#node.bail,\n\t\t\tdropMissingCheck: false,\n\t\t\texistenceCheckExpression: `${this.field.variableName}.isValidDataType`\n\t\t}));\n\t\tconst isObjectValidBlock = defineIsValidGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tbail: this.#node.bail,\n\t\t\tguardedCodeSnippet: `${defineObjectInitialOutput({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\toutputExpression: this.field.outputExpression,\n\t\t\t\toutputValueExpression: \"{}\"\n\t\t\t})}${this.#buffer.newLine}${this.#compileObjectChildren()}${this.#buffer.newLine}${this.#compileObjectGroups()}${this.#buffer.newLine}${defineMoveProperties({\n\t\t\t\tvariableName: this.field.variableName,\n\t\t\t\tallowUnknownProperties: this.#node.allowUnknownProperties,\n\t\t\t\tfieldsToIgnore: this.#node.allowUnknownProperties ? this.#getFieldNames(this.#node) : []\n\t\t\t})}`\n\t\t});\n\t\tconst isValueAnObject = defineObjectGuard({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tguardedCodeSnippet: `${isObjectValidBlock}`\n\t\t});\n\t\tthis.#buffer.writeStatement(`${isValueAnObject}${this.#buffer.newLine}${defineFieldNullOutput({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\tconditional: \"else if\"\n\t\t})}`);\n\t}\n};\nfunction createRootField(parent) {\n\treturn {\n\t\tparentExpression: parent.variableName,\n\t\tparentValueExpression: parent.variableName,\n\t\tfieldNameExpression: `''`,\n\t\tfieldPathExpression: `''`,\n\t\twildCardPath: \"\",\n\t\tvariableName: `${parent.variableName}_item`,\n\t\tvalueExpression: \"root\",\n\t\toutputExpression: parent.outputExpression,\n\t\tisArrayMember: false\n\t};\n}\nfunction defineFieldValueOutput({ variableName, outputExpression, transformFnRefId }) {\n\treturn `if (${variableName}.isDefined && ${variableName}.isValid) {\n ${outputExpression} = ${transformFnRefId ? `refs['${transformFnRefId}'](${variableName}.value, ${variableName})` : `${variableName}.value`};\n}`;\n}\nvar LiteralNodeCompiler = class extends BaseNode {\n\t#node;\n\t#buffer;\n\tconstructor(node, buffer, compiler, parent, parentField) {\n\t\tsuper(node, compiler, parent, parentField);\n\t\tthis.#node = node;\n\t\tthis.#buffer = buffer;\n\t}\n\tcompile() {\n\t\tthis.defineField(this.#buffer);\n\t\tthis.#buffer.writeStatement(defineFieldExistenceValidations({\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\tisOptional: this.#node.isOptional,\n\t\t\tvariableName: this.field.variableName\n\t\t}));\n\t\tif (this.#node.dataTypeValidatorFnId) this.#buffer.writeStatement(validateLiteralField({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidatorFnId: this.#node.dataTypeValidatorFnId\n\t\t}));\n\t\tthis.#buffer.writeStatement(defineFieldValidations({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tvalidations: this.#node.validations,\n\t\t\tbail: this.#node.bail,\n\t\t\texistenceCheckExpression: this.#node.dataTypeValidatorFnId ? `${this.field.variableName}.isValidDataType` : void 0,\n\t\t\tdropMissingCheck: false\n\t\t}));\n\t\tthis.#buffer.writeStatement(`${defineFieldValueOutput({\n\t\t\tvariableName: this.field.variableName,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\ttransformFnRefId: this.#node.transformFnId\n\t\t})}${this.#buffer.newLine}${defineFieldNullOutput({\n\t\t\tvariableName: this.field.variableName,\n\t\t\tallowNull: this.#node.allowNull,\n\t\t\toutputExpression: this.field.outputExpression,\n\t\t\ttransformFnRefId: this.#node.transformFnId,\n\t\t\tconditional: \"else if\"\n\t\t})}`);\n\t}\n};\nfunction createArrayField(parent) {\n\tconst wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.*` : `*`;\n\treturn {\n\t\tparentExpression: parent.variableName,\n\t\tparentValueExpression: `${parent.variableName}.value`,\n\t\tfieldNameExpression: `${parent.variableName}_i`,\n\t\tfieldPathExpression: wildCardPath,\n\t\twildCardPath,\n\t\tvariableName: `${parent.variableName}_item`,\n\t\tvalueExpression: `${parent.variableName}.value[${parent.variableName}_i]`,\n\t\toutputExpression: `${parent.variableName}_out[${parent.variableName}_i]`,\n\t\tisArrayMember: true\n\t};\n}\nfunction createTupleField(node, parent) {\n\tconst wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.${node.fieldName}` : node.fieldName;\n\treturn {\n\t\tparentExpression: parent.variableName,\n\t\tparentValueExpression: `${parent.variableName}.value`,\n\t\tfieldNameExpression: `${node.fieldName}`,\n\t\tfieldPathExpression: wildCardPath,\n\t\twildCardPath,\n\t\tvariableName: `${parent.variableName}_item_${node.fieldName}`,\n\t\tvalueExpression: `${parent.variableName}.value[${node.fieldName}]`,\n\t\toutputExpression: `${parent.variableName}_out[${node.propertyName}]`,\n\t\tisArrayMember: true\n\t};\n}\nfunction reportErrors() {\n\treturn `if(errorReporter.hasErrors) {\n throw errorReporter.createError();\n}`;\n}\nconst NUMBER_CHAR_RE = /\\d/;\nconst VALID_CHARS = /[A-Za-z0-9]+/;\nfunction isUppercase(char = \"\") {\n\tif (NUMBER_CHAR_RE.test(char)) return;\n\treturn char !== char.toLowerCase();\n}\nfunction upperFirst(value) {\n\treturn value ? value[0].toUpperCase() + value.slice(1) : \"\";\n}\nfunction lowerFirst(value) {\n\treturn value ? value[0].toLowerCase() + value.slice(1) : \"\";\n}\nfunction splitByCase(value) {\n\tconst parts = [];\n\tif (!value || typeof value !== \"string\") return parts;\n\tlet buff = \"\";\n\tlet previousUpper;\n\tlet previousSplitter;\n\tfor (const char of value) {\n\t\tconst isSplitter = !VALID_CHARS.test(char);\n\t\tif (isSplitter === true) {\n\t\t\tparts.push(buff);\n\t\t\tbuff = \"\";\n\t\t\tpreviousUpper = void 0;\n\t\t\tcontinue;\n\t\t}\n\t\tconst isUpper = isUppercase(char);\n\t\tif (previousSplitter === false) {\n\t\t\tif (previousUpper === false && isUpper === true) {\n\t\t\t\tparts.push(buff);\n\t\t\t\tbuff = char;\n\t\t\t\tpreviousUpper = isUpper;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (previousUpper === true && isUpper === false && buff.length > 1) {\n\t\t\t\tconst lastChar = buff.at(-1);\n\t\t\t\tparts.push(buff.slice(0, Math.max(0, buff.length - 1)));\n\t\t\t\tbuff = lastChar + char;\n\t\t\t\tpreviousUpper = isUpper;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tbuff += char;\n\t\tpreviousUpper = isUpper;\n\t\tpreviousSplitter = isSplitter;\n\t}\n\tparts.push(buff);\n\treturn parts;\n}\nfunction toVariableName(value) {\n\tconst pascalCase = splitByCase(value).map((p) => upperFirst(p.toLowerCase())).join(\"\");\n\treturn /^[0-9]+/.test(pascalCase) ? `var_${pascalCase}` : lowerFirst(pascalCase);\n}\nfunction createObjectField(node, variablesCounter, parent) {\n\tconst wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.${node.fieldName}` : node.fieldName;\n\treturn {\n\t\tparentExpression: parent.variableName,\n\t\tparentValueExpression: `${parent.variableName}.value`,\n\t\tfieldNameExpression: `'${node.fieldName}'`,\n\t\tfieldPathExpression: wildCardPath,\n\t\twildCardPath,\n\t\tvariableName: `${toVariableName(node.propertyName)}_${variablesCounter}`,\n\t\tvalueExpression: `${parent.variableName}.value['${node.fieldName}']`,\n\t\toutputExpression: `${parent.variableName}_out['${node.propertyName}']`,\n\t\tisArrayMember: false\n\t};\n}\nfunction createRecordField(parent) {\n\tconst wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.*` : `*`;\n\treturn {\n\t\tparentExpression: parent.variableName,\n\t\tparentValueExpression: `${parent.variableName}.value`,\n\t\tfieldNameExpression: `${parent.variableName}_i`,\n\t\tfieldPathExpression: wildCardPath,\n\t\twildCardPath,\n\t\tvariableName: `${parent.variableName}_item`,\n\t\tvalueExpression: `${parent.variableName}.value[${parent.variableName}_i]`,\n\t\toutputExpression: `${parent.variableName}_out[${parent.variableName}_i]`,\n\t\tisArrayMember: false\n\t};\n}\nfunction defineInlineFunctions(options) {\n\treturn `function report(message, rule, field, args) {\n field.isValid = false;\n errorReporter.report(messagesProvider.getMessage(message, rule, field, args), rule, field, args);\n};\nfunction defineValue(value, field) {\n ${options.convertEmptyStringsToNull ? `if (typeof value === 'string' && value.trim() === '') { value = null; }` : \"\"}\n field.value = value;\n field.isDefined = value !== undefined && value !== null;\n return field;\n};\nfunction ensureExists(field) {\n if (field.value === undefined || field.value === null) {\n field.report(REQUIRED, 'required', field);\n return false;\n }\n return true;\n};\nfunction ensureIsDefined(field) {\n if (field.value === undefined) {\n field.report(REQUIRED, 'required', field);\n return false;\n }\n return true;\n};\nfunction ensureIsObject(field) {\n if (!field.isDefined) {\n return false;\n }\n if (typeof field.value == 'object' && !Array.isArray(field.value)) {\n return true;\n }\n field.report(NOT_AN_OBJECT, 'object', field);\n return false;\n};\nfunction ensureIsArray(field) {\n if (!field.isDefined) {\n return false;\n }\n if (Array.isArray(field.value)) {\n return true;\n }\n field.report(NOT_AN_ARRAY, 'array', field);\n return false;\n};\nfunction copyProperties(val) {\n let k, out, tmp;\n\n if (Array.isArray(val)) {\n out = Array((k = val.length))\n while (k--) out[k] = (tmp = val[k]) && typeof tmp == 'object' ? copyProperties(tmp) : tmp\n return out\n }\n\n if (Object.prototype.toString.call(val) === '[object Object]') {\n out = {} // null\n for (k in val) {\n out[k] = (tmp = val[k]) && typeof tmp == 'object' ? copyProperties(tmp) : tmp\n }\n return out\n }\n return val\n};\nfunction moveProperties(source, destination, ignoreKeys) {\n for (let key in source) {\n if (!ignoreKeys.includes(key)) {\n const value = source[key]\n destination[key] = copyProperties(value)\n }\n }\n};`;\n}\nfunction defineInlineErrorMessages(messages) {\n\treturn `const REQUIRED = '${messages.required}';\nconst NOT_AN_OBJECT = '${messages.object}';\nconst NOT_AN_ARRAY = '${messages.array}';`;\n}\nconst AsyncFunction = Object.getPrototypeOf(async function() {}).constructor;\nvar Compiler = class {\n\tvariablesCounter = 0;\n\t#rootNode;\n\t#options;\n\t#buffer = new CompilerBuffer();\n\tconstructor(rootNode, options) {\n\t\tthis.#rootNode = rootNode;\n\t\tthis.#options = options || { convertEmptyStringsToNull: false };\n\t}\n\t#initiateJSOutput() {\n\t\tthis.#buffer.writeStatement(defineInlineErrorMessages({\n\t\t\trequired: \"value is required\",\n\t\t\tobject: \"value is not a valid object\",\n\t\t\tarray: \"value is not a valid array\",\n\t\t\t...this.#options.messages\n\t\t}));\n\t\tthis.#buffer.writeStatement(defineInlineFunctions(this.#options));\n\t\tthis.#buffer.writeStatement(\"let out;\");\n\t}\n\t#finishJSOutput() {\n\t\tthis.#buffer.writeStatement(reportErrors());\n\t\tthis.#buffer.writeStatement(\"return out;\");\n\t}\n\t#compileNodes() {\n\t\tthis.compileNode(this.#rootNode.schema, this.#buffer, {\n\t\t\ttype: \"root\",\n\t\t\tvariableName: \"root\",\n\t\t\toutputExpression: \"out\",\n\t\t\tfieldPathExpression: \"out\",\n\t\t\twildCardPath: \"\"\n\t\t});\n\t}\n\t#toAsyncFunction() {\n\t\treturn new AsyncFunction(\"root\", \"meta\", \"refs\", \"messagesProvider\", \"errorReporter\", this.#buffer.toString());\n\t}\n\tcreateFieldFor(node, parent) {\n\t\tswitch (parent.type) {\n\t\t\tcase \"array\": return createArrayField(parent);\n\t\t\tcase \"root\": return createRootField(parent);\n\t\t\tcase \"object\": return createObjectField(node, this.variablesCounter, parent);\n\t\t\tcase \"tuple\": return createTupleField(node, parent);\n\t\t\tcase \"record\": return createRecordField(parent);\n\t\t}\n\t}\n\tcompileNode(node, buffer, parent, parentField) {\n\t\tswitch (node.type) {\n\t\t\tcase \"literal\": return new LiteralNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t\tcase \"array\": return new ArrayNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t\tcase \"record\": return new RecordNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t\tcase \"object\": return new ObjectNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t\tcase \"tuple\": return new TupleNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t\tcase \"union\": return new UnionNodeCompiler(node, buffer, this, parent, parentField).compile();\n\t\t}\n\t}\n\tcompile() {\n\t\tthis.#initiateJSOutput();\n\t\tthis.#compileNodes();\n\t\tthis.#finishJSOutput();\n\t\tconst outputFunction = this.#toAsyncFunction();\n\t\tthis.variablesCounter = 0;\n\t\tthis.#buffer.flush();\n\t\treturn outputFunction;\n\t}\n};\nfunction refsBuilder() {\n\tlet counter = 0;\n\tconst refs = {};\n\treturn {\n\t\ttoJSON() {\n\t\t\treturn refs;\n\t\t},\n\t\ttrack(value) {\n\t\t\tcounter++;\n\t\t\tconst ref = `ref://${counter}`;\n\t\t\trefs[ref] = value;\n\t\t\treturn ref;\n\t\t},\n\t\ttrackValidation(validation) {\n\t\t\treturn this.track(validation);\n\t\t},\n\t\ttrackParser(fn) {\n\t\t\treturn this.track(fn);\n\t\t},\n\t\ttrackTransformer(fn) {\n\t\t\treturn this.track(fn);\n\t\t},\n\t\ttrackConditional(fn) {\n\t\t\treturn this.track(fn);\n\t\t}\n\t};\n}\nexport { Compiler, refsBuilder };\n","import { a as BOOLEAN_NEGATIVES, c as __exportAll, i as SimpleMessagesProvider, n as main_exports, o as BOOLEAN_POSITIVES, r as ValidationError, s as helpers, t as SimpleErrorReporter } from \"./simple_error_reporter-cwDwkClZ.js\";\nimport { fields, globalTransforms, messages } from \"./src/defaults.js\";\nimport dayjs from \"dayjs\";\nimport Macroable from \"@poppinss/macroable\";\nimport camelcase from \"camelcase\";\nimport normalizeUrl from \"normalize-url\";\nimport escapeValue from \"validator/lib/escape.js\";\nimport normalizeEmailValue from \"validator/lib/normalizeEmail.js\";\nimport { Compiler, refsBuilder } from \"@vinejs/compiler\";\n//#region src/vine/create_rule.ts\n/**\n* Creates a reusable validation rule from a validator function.\n* The returned function can be applied to any schema type using the `schema.use()` method.\n* Automatically detects async functions and provides proper metadata.\n*\n* @template Options - The type of options the validator accepts\n* @param validator - The validation function to convert into a rule\n* @param metaData - Optional metadata about the validation rule\n* @param metaData.name - Custom name for the rule (defaults to function name)\n* @param metaData.implicit - Whether the rule runs on null/undefined values\n* @param metaData.isAsync - Whether the validator is async (auto-detected if not specified)\n* @param metaData.toJSONSchema - Optional function to modify the JSON Schema representation\n*\n* @example\n* // Simple validation rule\n* const isEven = createRule<{ strict?: boolean }>((value, options, field) => {\n* const num = Number(value)\n* if (num % 2 !== 0) {\n* throw new Error('Value must be even')\n* }\n* return value\n* })\n*\n* // Usage with schema\n* vine.number().use(isEven({ strict: true }))\n*\n* @example\n* // Async validation rule\n* const checkUnique = createRule<{ table: string }>(async (value, { table }, field) => {\n* const exists = await database.exists(table, value)\n* if (exists) {\n* throw new Error('Value must be unique')\n* }\n* return value\n* }, { name: 'unique', isAsync: true })\n*\n* // Usage\n* vine.string().use(checkUnique({ table: 'users' }))\n*/\nfunction createRule(validator, metaData) {\n\tconst rule = {\n\t\tvalidator,\n\t\tname: metaData?.name ?? validator.name,\n\t\tisAsync: metaData?.isAsync || validator.constructor.name === \"AsyncFunction\",\n\t\timplicit: metaData?.implicit ?? false,\n\t\ttoJSONSchema: metaData?.toJSONSchema\n\t};\n\treturn function(...options) {\n\t\treturn {\n\t\t\trule,\n\t\t\toptions: options[0]\n\t\t};\n\t};\n}\n//#endregion\n//#region src/symbols.ts\nvar symbols_exports = /* @__PURE__ */ __exportAll({\n\tCOTYPE: () => COTYPE,\n\tIS_OF_TYPE: () => IS_OF_TYPE,\n\tITYPE: () => ITYPE,\n\tOTYPE: () => OTYPE,\n\tPARSE: () => PARSE,\n\tSUBTYPE: () => SUBTYPE,\n\tUNIQUE_NAME: () => UNIQUE_NAME,\n\tVALIDATION: () => VALIDATION\n});\n/**\n* The symbol to define a unique name for the schema type.\n* Used internally to identify schema types for union type validation.\n*\n* @example\n* class MySchema {\n* [UNIQUE_NAME] = 'mySchema'\n* }\n*/\nconst UNIQUE_NAME = Symbol.for(\"schema_name\");\n/**\n* The symbol to check if a value is of the given schema type.\n* Used by union schemas to determine which schema variant matches a value.\n*\n* @example\n* class StringSchema {\n* [IS_OF_TYPE](value: unknown) {\n* return typeof value === 'string'\n* }\n* }\n*/\nconst IS_OF_TYPE = Symbol.for(\"is_of_type\");\n/**\n* The symbol for the compile method that transforms a schema into compiler nodes.\n* This method is called during schema compilation to generate validation functions.\n*\n* @example\n* class MySchema {\n* [PARSE](propertyName: string, refs: RefsStore, options: ParserOptions) {\n* return { type: 'literal', subtype: 'string' }\n* }\n* }\n*/\nconst PARSE = Symbol.for(\"parse\");\n/**\n* The symbol for the opaque input type used in TypeScript type inference.\n* Represents the expected input type before validation and transformation.\n*\n* @example\n* class StringSchema {\n* [ITYPE]: string | undefined\n* }\n*/\nconst ITYPE = Symbol.for(\"opaque_input_type\");\n/**\n* The symbol for the opaque output type used in TypeScript type inference.\n* Represents the validated and transformed output type.\n*\n* @example\n* class StringSchema {\n* [OTYPE]: string\n* }\n*/\nconst OTYPE = Symbol.for(\"opaque_type\");\n/**\n* The symbol for the camelcase opaque output type used in TypeScript type inference.\n* Represents the output type when field names are converted to camelCase.\n*\n* @example\n* class ObjectSchema {\n* [COTYPE]: { userName: string } // from user_name\n* }\n*/\nconst COTYPE = Symbol.for(\"camelcase_opaque_type\");\n/**\n* The symbol to generate a validation rule from rule builder.\n* Used by rule builders to convert themselves into validation rules.\n*\n* @example\n* class MinLengthRule {\n* [VALIDATION]() {\n* return { rule: minLengthRule, options: this.length }\n* }\n* }\n*/\nconst VALIDATION = Symbol.for(\"to_validation\");\n/**\n* The symbol for the subtype of a literal field.\n* Used to identify the specific subtype of literal schema types (string, number, etc.).\n*\n* @example\n* class StringSchema {\n* [SUBTYPE] = 'string'\n* }\n*/\nconst SUBTYPE = Symbol.for(\"subtype\");\n//#endregion\n//#region src/schema/base/rules.ts\n/**\n* Validation rule that makes a field required when a specified condition is met.\n* This rule is implicit, meaning it runs even when the field value is undefined.\n*\n* @param checker - Callback function that returns true if the field should be required\n*\n* @example\n* vine.string().optional().use(requiredWhen((field) => {\n* return field.data.role === 'admin'\n* }))\n*/\nconst requiredWhen = createRule(function requiredWhen(_, checker, field) {\n\tconst shouldBeRequired = checker(field);\n\tif (!field.isDefined && shouldBeRequired) field.report(messages.required, \"required\", field);\n}, { implicit: true });\n//#endregion\n//#region src/schema/base/conditional_rules.ts\n/**\n* Abstract base class providing conditional validation methods for making fields\n* required based on runtime conditions. This class is extended by schema types\n* that support conditional validation.\n*\n* @example\n* vine.string().optional().requiredWhen('role', '=', 'admin')\n*/\nvar ConditionalValidations = class {\n\trequiredWhen(otherField, operator, expectedValue) {\n\t\t/**\n\t\t* The equality check if self implemented\n\t\t*/\n\t\tif (typeof otherField === \"function\") return this.use(requiredWhen(otherField));\n\t\t/**\n\t\t* Creating the checker function based upon the\n\t\t* operator used for the comparison\n\t\t*/\n\t\tlet checker;\n\t\tswitch (operator) {\n\t\t\tcase \"=\":\n\t\t\t\tchecker = (value) => value === expectedValue;\n\t\t\t\tbreak;\n\t\t\tcase \"!=\":\n\t\t\t\tchecker = (value) => value !== expectedValue;\n\t\t\t\tbreak;\n\t\t\tcase \"in\":\n\t\t\t\tchecker = (value) => expectedValue.includes(value);\n\t\t\t\tbreak;\n\t\t\tcase \"notIn\":\n\t\t\t\tchecker = (value) => !expectedValue.includes(value);\n\t\t\t\tbreak;\n\t\t\tcase \">\":\n\t\t\t\tchecker = (value) => value > expectedValue;\n\t\t\t\tbreak;\n\t\t\tcase \"<\":\n\t\t\t\tchecker = (value) => value < expectedValue;\n\t\t\t\tbreak;\n\t\t\tcase \">=\":\n\t\t\t\tchecker = (value) => value >= expectedValue;\n\t\t\t\tbreak;\n\t\t\tcase \"<=\": checker = (value) => value <= expectedValue;\n\t\t}\n\t\t/**\n\t\t* Registering rule with custom implementation\n\t\t*/\n\t\treturn this.use(requiredWhen((field) => {\n\t\t\tconst otherFieldValue = helpers.getNestedValue(otherField, field);\n\t\t\treturn checker(otherFieldValue);\n\t\t}));\n\t}\n\t/**\n\t* Marks the field as required when all specified fields exist (are not undefined or null).\n\t*\n\t* @param fields - Field name or array of field names to check for existence\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfExists('email')\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfExists(['firstName', 'lastName'])\n\t*/\n\trequiredIfExists(fields) {\n\t\tconst fieldsToExist = Array.isArray(fields) ? fields : [fields];\n\t\treturn this.use(requiredWhen((field) => {\n\t\t\treturn fieldsToExist.every((otherField) => {\n\t\t\t\treturn helpers.exists(helpers.getNestedValue(otherField, field));\n\t\t\t});\n\t\t}));\n\t}\n\t/**\n\t* Marks the field as required when any one of the specified fields exists (is not undefined or null).\n\t*\n\t* @param fields - Array of field names to check for existence\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfAnyExists(['email', 'phone'])\n\t*/\n\trequiredIfAnyExists(fields) {\n\t\treturn this.use(requiredWhen((field) => {\n\t\t\treturn fields.some((otherField) => helpers.exists(helpers.getNestedValue(otherField, field)));\n\t\t}));\n\t}\n\t/**\n\t* Marks the field as required when all specified fields are missing (undefined or null).\n\t*\n\t* @param fields - Field name or array of field names to check for absence\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfMissing('addressId')\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfMissing(['street', 'city'])\n\t*/\n\trequiredIfMissing(fields) {\n\t\tconst fieldsToExist = Array.isArray(fields) ? fields : [fields];\n\t\treturn this.use(requiredWhen((field) => {\n\t\t\treturn fieldsToExist.every((otherField) => helpers.isMissing(helpers.getNestedValue(otherField, field)));\n\t\t}));\n\t}\n\t/**\n\t* Marks the field as required when any one of the specified fields is missing (undefined or null).\n\t*\n\t* @param fields - Array of field names to check for absence\n\t*\n\t* @example\n\t* vine.string().optional().requiredIfAnyMissing(['street', 'city', 'zipCode'])\n\t*/\n\trequiredIfAnyMissing(fields) {\n\t\treturn this.use(requiredWhen((field) => {\n\t\t\treturn fields.some((otherField) => helpers.isMissing(helpers.getNestedValue(otherField, field)));\n\t\t}));\n\t}\n};\n//#endregion\n//#region src/schema/base/literal.ts\n/**\n* Modifies the schema type to allow null values\n*/\nvar NullableModifier$1 = class NullableModifier$1 {\n\tallowNull = true;\n\tget isOptional() {\n\t\treturn this.#parent.isOptional;\n\t}\n\t#parent;\n\tconstructor(parent) {\n\t\tthis.#parent = parent;\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the nullable modifier\n\t*/\n\tclone() {\n\t\treturn new NullableModifier$1(this.#parent.clone());\n\t}\n\t/**\n\t* Mark the field under validation as optional.\n\t* When combined with nullable, allows both null and undefined values.\n\t*\n\t* @returns A new OptionalModifier wrapping this nullable schema\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier$1(this);\n\t}\n\t/**\n\t* Apply a transformation to the final validated value.\n\t* The transformer receives the validated value and can convert it to any new datatype.\n\t*\n\t* @template TransformedOutput - The type of the transformed output\n\t* @param transformer - Function to transform the validated value\n\t* @returns A new TransformModifier wrapping this schema\n\t*\n\t* @example\n\t* vine.string().nullable().transform((value) => {\n\t* return value ? value.toUpperCase() : null\n\t* })\n\t*/\n\ttransform(transformer) {\n\t\treturn new TransformModifier(transformer, this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier$1(this, meta);\n\t}\n\ttoJSONSchema() {\n\t\tconst schema = this.#parent.toJSONSchema?.() ?? {};\n\t\tif (schema.anyOf) {\n\t\t\tschema.anyOf.push({ type: \"null\" });\n\t\t\treturn schema;\n\t\t}\n\t\tif (schema.enum) return { anyOf: [schema, { type: \"null\" }] };\n\t\tif (schema.type === void 0) {\n\t\t\tschema.type = \"null\";\n\t\t\treturn schema;\n\t\t}\n\t\tif (typeof schema.type === \"string\") {\n\t\t\tschema.type = [schema.type, \"null\"];\n\t\t\treturn schema;\n\t\t}\n\t\tif (Array.isArray(schema.type)) {\n\t\t\tschema.type.push(\"null\");\n\t\t\treturn schema;\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Compiles to compiler node\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\toutput.allowNull = true;\n\t\treturn output;\n\t}\n};\n/**\n* Adds meta data to the schema type.\n*/\nvar MetaModifier$1 = class MetaModifier$1 {\n\tget isOptional() {\n\t\treturn this.#parent.isOptional;\n\t}\n\tget allowNull() {\n\t\treturn this.#parent.allowNull;\n\t}\n\t#parent;\n\t#meta;\n\tconstructor(parent, meta) {\n\t\tthis.#parent = parent;\n\t\tthis.#meta = meta;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier$1(this);\n\t}\n\t/**\n\t* Apply a transformation to the final validated value.\n\t* The transformer receives the validated value and can convert it to any new datatype.\n\t*\n\t* @template TransformedOutput - The type of the transformed output\n\t* @param transformer - Function to transform the validated value\n\t* @returns A new TransformModifier wrapping this schema\n\t*\n\t* @example\n\t* vine.string().nullable().transform((value) => {\n\t* return value ? value.toUpperCase() : null\n\t* })\n\t*/\n\ttransform(transformer) {\n\t\treturn new TransformModifier(transformer, this);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier$1(this);\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the meta modifier\n\t*/\n\tclone() {\n\t\treturn new MetaModifier$1(this.#parent.clone(), this.#meta);\n\t}\n\ttoJSONSchema() {\n\t\treturn {\n\t\t\t...this.#parent.toJSONSchema?.() ?? {},\n\t\t\t...this.#meta\n\t\t};\n\t}\n\t/**\n\t* Compiles to compiler node\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\toutput.allowNull = true;\n\t\treturn output;\n\t}\n};\n/**\n* Modifies a literal schema type to allow undefined values in addition to the original type.\n* This modifier is used for form fields that may not be present in submitted data.\n*\n* @template Schema - The underlying literal schema type to make optional\n*\n* @example\n* const schema = vine.string().optional()\n* // Accepts: \"hello\", undefined\n* // Rejects: null (unless also nullable), 123\n*/\nvar OptionalModifier$1 = class OptionalModifier$1 extends ConditionalValidations {\n\tisOptional = true;\n\tget allowNull() {\n\t\treturn this.#parent.allowNull;\n\t}\n\t/** Reference to the parent schema being modified */\n\t#parent;\n\t/**\n\t* List of additional validations to apply to non-undefined values\n\t*/\n\tvalidations;\n\t/**\n\t* Creates a new optional modifier wrapping the given schema.\n\t*\n\t* @param parent - The schema to make optional\n\t* @param validations - Optional list of validations to apply\n\t*/\n\tconstructor(parent, validations) {\n\t\tsuper();\n\t\tthis.#parent = parent;\n\t\tthis.validations = validations || [];\n\t}\n\t/**\n\t* Shallow clones the validations. Since there are no APIs to mutate\n\t* the validation options, we can safely copy them by reference.\n\t*\n\t* @returns Cloned array of validations\n\t*/\n\tcloneValidations() {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\toptions: validation.options,\n\t\t\t\trule: validation.rule\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Compiles validations into a format suitable for the validator compiler.\n\t*\n\t* @param refs - Reference store for tracking validation functions\n\t* @returns Compiled validation definitions\n\t*/\n\tcompileValidations(refs) {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\truleFnId: refs.track({\n\t\t\t\t\tvalidator: validation.rule.validator,\n\t\t\t\t\toptions: validation.options\n\t\t\t\t}),\n\t\t\t\tname: validation.rule.name,\n\t\t\t\timplicit: validation.rule.implicit,\n\t\t\t\tisAsync: validation.rule.isAsync\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier$1(this);\n\t}\n\t/**\n\t* Apply transform on the final validated value. The transform method may\n\t* convert the value to any new datatype.\n\t*/\n\ttransform(transformer) {\n\t\treturn new TransformModifier(transformer, this);\n\t}\n\t/**\n\t* Push a validation to the validations chain.\n\t*/\n\tuse(validation) {\n\t\tthis.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n\t\treturn this;\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the optional modifier\n\t*/\n\tclone() {\n\t\treturn new OptionalModifier$1(this.#parent.clone(), this.cloneValidations());\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier$1(this, meta);\n\t}\n\ttoJSONSchema() {\n\t\treturn { ...this.#parent.toJSONSchema() };\n\t}\n\t/**\n\t* Compiles to compiler node\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\toutput.isOptional = true;\n\t\toutput.validations = output.validations.concat(this.compileValidations(refs));\n\t\treturn output;\n\t}\n};\n/**\n* Modifies a literal schema type to apply custom transformations to validated values.\n* This modifier allows converting validated values to any new datatype after validation.\n*\n* @template Schema - The underlying literal schema type to transform\n* @template Output - The type of the transformed output\n*\n* @example\n* const schema = vine.string().transform((value) => value.toUpperCase())\n* // Input: \"hello\" -> Output: \"HELLO\"\n*/\nvar TransformModifier = class TransformModifier {\n\tget isOptional() {\n\t\treturn this.#parent.isOptional;\n\t}\n\tget allowNull() {\n\t\treturn this.#parent.allowNull;\n\t}\n\t/** Reference to the parent schema being transformed */\n\t#parent;\n\t/** The transformation function to apply */\n\t#transform;\n\t/**\n\t* Creates a new transform modifier wrapping the given schema.\n\t*\n\t* @param transform - The transformation function to apply to validated values\n\t* @param parent - The schema to apply transformations to\n\t*/\n\tconstructor(transform, parent) {\n\t\tthis.#transform = transform;\n\t\tthis.#parent = parent;\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the transform modifier.\n\t*\n\t* @returns A cloned instance of this transform modifier\n\t*/\n\tclone() {\n\t\treturn new TransformModifier(this.#transform, this.#parent.clone());\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier$1(this);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier$1(this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier$1(this, meta);\n\t}\n\ttoJSONSchema() {\n\t\treturn this.#parent.toJSONSchema();\n\t}\n\t/**\n\t* Compiles to compiler node\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\toutput.transformFnId = refs.trackTransformer(this.#transform);\n\t\treturn output;\n\t}\n};\n/**\n* The base type for creating a custom literal type. Literal types\n* are schema types that have no children elements, such as strings,\n* numbers, booleans, and dates.\n*\n* @template Input - The expected input type for this schema\n* @template Output - The output type after validation and transformation\n* @template CamelCaseOutput - The output type with camelCase field names\n*\n* @example\n* class CustomLiteralType extends BaseLiteralType<string, string, string> {\n* [SUBTYPE] = 'custom'\n* clone() { return new CustomLiteralType() }\n* }\n*/\nvar BaseLiteralType = class extends Macroable {\n\t/**\n\t* The validation to use for validating the schema data type.\n\t* Using a data type validator guards custom rules to only run when\n\t* the data type validation passes.\n\t*\n\t* @example\n\t* class StringSchema extends BaseLiteralType {\n\t* dataTypeValidator = stringDataTypeRule\n\t* }\n\t*/\n\tdataTypeValidator;\n\t/**\n\t* Configuration options for this field including bail mode, nullability, and parsing\n\t*/\n\toptions;\n\t/**\n\t* Array of validation rules to apply to the field value\n\t*/\n\tvalidations;\n\t/**\n\t* Creates a new BaseLiteralType instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper();\n\t\tthis.options = {\n\t\t\tbail: true,\n\t\t\tallowNull: false,\n\t\t\tisOptional: false,\n\t\t\t...options\n\t\t};\n\t\tthis.validations = validations || [];\n\t}\n\t/**\n\t* Shallow clones the validations. Since there are no APIs to mutate\n\t* the validation options, we can safely copy them by reference.\n\t*\n\t* @returns Cloned array of validations\n\t*/\n\tcloneValidations() {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\toptions: validation.options,\n\t\t\t\trule: validation.rule\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Shallow clones the field options.\n\t*\n\t* @returns Cloned field options object\n\t*/\n\tcloneOptions() {\n\t\treturn { ...this.options };\n\t}\n\t/**\n\t* Compiles a single validation rule into a compiler validation node.\n\t*\n\t* @param validation - The validation rule to compile\n\t* @param refs - Reference store for tracking validation functions\n\t* @returns Compiled validation node\n\t*/\n\tcompileValidation(validation, refs) {\n\t\treturn {\n\t\t\truleFnId: refs.track({\n\t\t\t\tvalidator: validation.rule.validator,\n\t\t\t\toptions: validation.options\n\t\t\t}),\n\t\t\tname: validation.rule.name,\n\t\t\timplicit: validation.rule.implicit,\n\t\t\tisAsync: validation.rule.isAsync\n\t\t};\n\t}\n\t/**\n\t* Compiles all validation rules into compiler validation nodes.\n\t*\n\t* @param refs - Reference store for tracking validation functions\n\t* @returns Array of compiled validation nodes\n\t*/\n\tcompileValidations(refs) {\n\t\treturn this.validations.map((validation) => this.compileValidation(validation, refs));\n\t}\n\ttoJSONSchema() {\n\t\tconst schema = {};\n\t\tif (this.dataTypeValidator?.rule.toJSONSchema) this.dataTypeValidator.rule.toJSONSchema(schema, this.dataTypeValidator.options);\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Define a method to parse the input value. The method\n\t* is invoked before any validation and hence you must\n\t* perform type-checking to know the value you are\n\t* working it.\n\t*/\n\tparse(callback) {\n\t\tthis.options.parse = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Adds a validation rule to the schema's validation chain.\n\t* Rules are executed in the order they are added.\n\t*\n\t* @param validation - The validation rule or rule builder to add\n\t* @returns This schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().use(minLength({ length: 3 }))\n\t* vine.number().use(customRule({ strict: true }))\n\t*/\n\tuse(validation) {\n\t\tthis.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n\t\treturn this;\n\t}\n\t/**\n\t* Enable/disable bail mode for this field.\n\t* In bail mode, field validations stop after the first error.\n\t*\n\t* @param state - Whether to enable bail mode\n\t* @returns This schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().bail(false) // Continue validation after first error\n\t* vine.number().bail(true) // Stop after first error (default)\n\t*/\n\tbail(state) {\n\t\tthis.options.bail = state;\n\t\treturn this;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier$1(this);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier$1(this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier$1(this, meta);\n\t}\n\t/**\n\t* Apply transform on the final validated value. The transform method may\n\t* convert the value to any new datatype.\n\t*/\n\ttransform(transformer) {\n\t\treturn new TransformModifier(transformer, this);\n\t}\n\t/**\n\t* Compiles the literal schema type into a compiler node.\n\t* This method transforms the schema definition into a format\n\t* that the validation compiler can process.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options including camelCase conversion\n\t* @returns Compiled literal node with subtype information\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"literal\",\n\t\t\tsubtype: this[SUBTYPE],\n\t\t\tfieldName: propertyName,\n\t\t\t...this.dataTypeValidator ? { dataTypeValidatorFnId: this.compileValidation(this.dataTypeValidator, refs).ruleFnId } : {},\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: this.compileValidations(refs)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/any/main.ts\n/**\n* VineAny represents a schema type that accepts any value without validation.\n* It allows strings, numbers, booleans, arrays, objects, and any other type.\n* Use this when you want to accept any input but still want to apply custom validations.\n*\n* @example\n* const schema = vine.any()\n*\n* const result = await vine.validate({\n* schema,\n* data: 'any value, including objects and arrays'\n* })\n*/\nvar VineAny = class VineAny extends BaseLiteralType {\n\t/**\n\t* Creates a new VineAny instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations);\n\t}\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"any\";\n\t/**\n\t* Clones the VineAny schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineAny schema\n\t*/\n\tclone() {\n\t\treturn new VineAny(this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Converts the schema to JSON Schema format.\n\t* Returns a schema with an anyOf constraint covering multiple types.\n\t*/\n\ttoJSONSchema() {\n\t\tconst schema = { anyOf: [\n\t\t\t{ type: \"string\" },\n\t\t\t{ type: \"number\" },\n\t\t\t{ type: \"boolean\" },\n\t\t\t{ type: \"array\" },\n\t\t\t{ type: \"object\" }\n\t\t] };\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\treturn schema;\n\t}\n};\n//#endregion\n//#region src/schema/enum/rules.ts\n/**\n* Enum rule validates that a field's value is one of the pre-defined choices.\n*\n* The choices can be provided as a static array or as a function that returns\n* an array, allowing for dynamic choice lists based on the field context.\n*\n* @example\n* vine.string().use(enumRule({ choices: ['red', 'blue', 'green'] }))\n*\n* @example\n* vine.string().use(enumRule({\n* choices: (field) => field.data.availableColors\n* }))\n*/\nconst enumRule = createRule(function enumList(value, options, field) {\n\tconst choices = typeof options.choices === \"function\" ? options.choices(field) : options.choices;\n\t/**\n\t* Report error when value is not part of the pre-defined\n\t* options\n\t*/\n\tif (!choices.includes(value)) field.report(messages.enum, \"enum\", field, { choices });\n}, { toJSONSchema: (schema, options) => {\n\tif (typeof options.choices === \"function\") return;\n\tschema.enum = options.choices;\n} });\n//#endregion\n//#region src/schema/enum/main.ts\n/**\n* VineEnum represents an enum data type that performs validation\n* against a pre-defined choices list. It ensures the input value\n* matches one of the allowed enum values exactly.\n*\n* @template Values - The readonly array of allowed enum values\n*\n* @example\n* const schema = vine.enum(['active', 'inactive', 'pending'] as const)\n*\n* const result = await vine.validate({\n* schema,\n* data: 'active' // Must be one of the defined values\n* })\n*/\nvar VineEnum = class VineEnum extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for enums\n\t*/\n\tstatic rules = { enum: enumRule };\n\t/**\n\t* The allowed enum values or a function that returns them dynamically\n\t*/\n\t#values;\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"enum\";\n\t/**\n\t* Returns the enum choices, either static values or function.\n\t*\n\t* @returns The enum values or generator function\n\t*/\n\tgetChoices() {\n\t\treturn this.#values;\n\t}\n\t/**\n\t* Creates a new VineEnum instance with the specified allowed values.\n\t*\n\t* @param values - Array of allowed values or function returning allowed values\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(values, options, validations) {\n\t\tsuper(options, validations || [enumRule({ choices: values })]);\n\t\tthis.#values = values;\n\t}\n\t/**\n\t* Clones the VineEnum schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineEnum schema\n\t*/\n\tclone() {\n\t\treturn new VineEnum(this.#values, this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/date/rules.ts\n/**\n* Validates the value to be a string or number formatted\n* as per the expected date-time format.\n*/\nconst dateRule = createRule(function date(value, options, field) {\n\tif (!field.isDefined) return false;\n\tif (typeof value !== \"string\" && typeof value !== \"number\") {\n\t\tfield.report(messages.date, \"date\", field);\n\t\treturn false;\n\t}\n\tconst { dateTime, formats } = helpers.asDayJS(value, options.formats);\n\t/**\n\t* Ensure post parsing the datetime instance is valid\n\t*/\n\tif (!dateTime.isValid()) {\n\t\tfield.report(messages.date, \"date\", field);\n\t\treturn false;\n\t}\n\tfield.$value = dateTime;\n\tfield.$formats = formats;\n\tfield.mutate(globalTransforms.date ? globalTransforms.date(dateTime.toDate()) : dateTime.toDate(), field);\n\treturn true;\n});\n/**\n* The equals rule compares the input value to be same\n* as the expected value.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst equalsRule$1 = createRule(function equals(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst format = options.format || field.$formats;\n\tconst dateTime = field.$value;\n\tconst expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n\tconst { dateTime: expectedDateTime } = helpers.asDayJS(expectedValue, format);\n\tif (!expectedDateTime.isValid()) throw new Error(`Invalid datetime value \"${expectedValue}\" provided to the equals rule`);\n\t/**\n\t* Ensure both the dates are the same\n\t*/\n\tif (!dateTime.isSame(expectedDateTime, compare)) field.report(messages[\"date.equals\"], \"date.equals\", field, {\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The after rule compares the input value to be after\n* the expected value.\n*\n* By default, the comparions of day, month and years are performed.\n*/\nconst afterRule = createRule(function after(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst format = options.format || field.$formats;\n\tconst dateTime = field.$value;\n\tconst expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n\tconst expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"tomorrow\" ? dayjs().add(1, \"day\") : helpers.asDayJS(expectedValue, format).dateTime;\n\tif (!expectedDateTime.isValid()) throw new Error(`Invalid datetime value \"${expectedValue}\" provided to the after rule`);\n\t/**\n\t* Ensure the input is after the expected value\n\t*/\n\tif (!dateTime.isAfter(expectedDateTime, compare)) field.report(messages[\"date.after\"], \"date.after\", field, {\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The after or equal rule compares the input value to be\n* after or equal to the expected value.\n*\n* By default, the comparions of day, month and years are performed.\n*/\nconst afterOrEqualRule = createRule(function afterOrEqual(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst format = options.format || field.$formats;\n\tconst dateTime = field.$value;\n\tconst expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n\tconst expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"tomorrow\" ? dayjs().add(1, \"day\") : helpers.asDayJS(expectedValue, format).dateTime;\n\tif (!expectedDateTime.isValid()) throw new Error(`Invalid datetime value \"${expectedValue}\" provided to the afterOrEqual rule`);\n\t/**\n\t* Ensure both the dates are the same or the input\n\t* is after than the expected value.\n\t*/\n\tif (!dateTime.isSameOrAfter(expectedDateTime, compare)) field.report(messages[\"date.afterOrEqual\"], \"date.afterOrEqual\", field, {\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The before rule compares the input value to be before\n* the expected value.\n*\n* By default, the comparions of day, month and years are performed.\n*/\nconst beforeRule = createRule(function before(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst format = options.format || field.$formats;\n\tconst dateTime = field.$value;\n\tconst expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n\tconst expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"yesterday\" ? dayjs().subtract(1, \"day\") : helpers.asDayJS(expectedValue, format).dateTime;\n\tif (!expectedDateTime.isValid()) throw new Error(`Invalid datetime value \"${expectedValue}\" provided to the before rule`);\n\t/**\n\t* Ensure the input is before the expected value\n\t*/\n\tif (!dateTime.isBefore(expectedDateTime, compare)) field.report(messages[\"date.before\"], \"date.before\", field, {\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The before or equal rule compares the input value to be\n* before or equal to the expected value.\n*\n* By default, the comparions of day, month and years are performed.\n*/\nconst beforeOrEqualRule = createRule(function beforeOrEqual(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst format = options.format || field.$formats;\n\tconst dateTime = field.$value;\n\tconst expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n\tconst expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"yesterday\" ? dayjs().subtract(1, \"day\") : helpers.asDayJS(expectedValue, format).dateTime;\n\tif (!expectedDateTime.isValid()) throw new Error(`Invalid datetime value \"${expectedValue}\" provided to the beforeOrEqual rule`);\n\t/**\n\t* Ensure the input is same or before the expected value\n\t*/\n\tif (!dateTime.isSameOrBefore(expectedDateTime, compare)) field.report(messages[\"date.beforeOrEqual\"], \"date.beforeOrEqual\", field, {\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The sameAs rule expects the input value to be same\n* as the value of the other field.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst sameAsRule$1 = createRule(function sameAs(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure both the dates are the same\n\t*/\n\tif (!dateTime.isSame(expectedDateTime, compare)) field.report(messages[\"date.sameAs\"], \"date.sameAs\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The notSameAs rule expects the input value to be different\n* from the other field's value\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst notSameAsRule$1 = createRule(function notSameAs(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure both the dates are different\n\t*/\n\tif (dateTime.isSame(expectedDateTime, compare)) field.report(messages[\"date.notSameAs\"], \"date.notSameAs\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The afterField rule expects the input value to be after\n* the other field's value.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst afterFieldRule = createRule(function afterField(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure the input date is after the other field's value\n\t*/\n\tif (!dateTime.isAfter(expectedDateTime, compare)) field.report(messages[\"date.afterField\"], \"date.afterField\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The afterOrSameAs rule expects the input value to be after\n* or same as the other field's value.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst afterOrSameAsRule = createRule(function afterOrSameAs(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure the input date is same as or after the other field's value\n\t*/\n\tif (!dateTime.isSameOrAfter(expectedDateTime, compare)) field.report(messages[\"date.afterOrSameAs\"], \"date.afterOrSameAs\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The beforeField rule expects the input value to be before\n* the other field's value.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst beforeFieldRule = createRule(function beforeField(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure the input date is before the other field's value\n\t*/\n\tif (!dateTime.isBefore(expectedDateTime, compare)) field.report(messages[\"date.beforeField\"], \"date.beforeField\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The beforeOrSameAs rule expects the input value to be before\n* or same as the other field's value.\n*\n* By default, the comparions of day, month and years are performed\n*/\nconst beforeOrSameAsRule = createRule(function beforeOrSameAs(_, options, field) {\n\tconst compare = options.compare || \"day\";\n\tconst dateTime = field.$value;\n\tconst format = options.format || field.$formats;\n\tconst expectedValue = helpers.getNestedValue(options.otherField, field);\n\tconst expectedDateTime = helpers.asDayJS(expectedValue, format).dateTime;\n\t/**\n\t* Skip validation when the other field is not a valid\n\t* datetime. We will let the `date` rule on that\n\t* other field to handle the invalid date.\n\t*/\n\tif (!expectedDateTime.isValid()) return;\n\t/**\n\t* Ensure the input date is before or same as the other field's value\n\t*/\n\tif (!dateTime.isSameOrBefore(expectedDateTime, compare)) field.report(messages[\"date.beforeOrSameAs\"], \"date.beforeOrSameAs\", field, {\n\t\totherField: options.otherField,\n\t\texpectedValue,\n\t\tcompare\n\t});\n});\n/**\n* The weekend rule ensures the date falls on a weekend\n*/\nconst weekendRule = createRule(function weekend(_, __, field) {\n\tconst day = field.$value.day();\n\tif (day !== 0 && day !== 6) field.report(messages[\"date.weekend\"], \"date.weekend\", field);\n});\n/**\n* The weekday rule ensures the date falls on a weekday\n*/\nconst weekdayRule = createRule(function weekday(_, __, field) {\n\tconst day = field.$value.day();\n\tif (day === 0 || day === 6) field.report(messages[\"date.weekday\"], \"date.weekday\", field);\n});\n//#endregion\n//#region src/schema/date/main.ts\n/**\n* VineDate represents a Date object created by parsing a string or number value as a date.\n* It accepts various date formats and converts them to JavaScript Date objects,\n* with comprehensive validation rules for date comparisons and ranges.\n*\n* @example\n* const schema = vine.date()\n* .after('today')\n* .before('2025-12-31')\n*\n* const result = await vine.validate({\n* schema,\n* data: '2025-06-15'\n* })\n*/\nvar VineDate = class VineDate extends BaseLiteralType {\n\t/**\n\t* Sets a global transformer function for all date values.\n\t* The transformer is applied to every validated date value.\n\t*\n\t* @param transformer - Function that transforms a Date object to a custom type\n\t*\n\t* @example\n\t* VineDate.transform((value) => value.toISOString())\n\t*/\n\tstatic transform(transformer) {\n\t\tglobalTransforms.date = transformer;\n\t}\n\t/**\n\t* Static collection of all available validation rules for dates\n\t*/\n\tstatic rules = {\n\t\tequals: equalsRule$1,\n\t\tafter: afterRule,\n\t\tafterOrEqual: afterOrEqualRule,\n\t\tbefore: beforeRule,\n\t\tbeforeOrEqual: beforeOrEqualRule,\n\t\tsameAs: sameAsRule$1,\n\t\tnotSameAs: notSameAsRule$1,\n\t\tafterField: afterFieldRule,\n\t\tafterOrSameAs: afterOrSameAsRule,\n\t\tbeforeField: beforeFieldRule,\n\t\tbeforeOrSameAs: beforeOrSameAsRule,\n\t\tweekend: weekendRule,\n\t\tweekday: weekdayRule\n\t};\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.date\";\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"date\";\n\t/**\n\t* Type checker function to determine if a value can be parsed as a date.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value can be parsed as a valid date\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\tif (typeof value !== \"string\") return false;\n\t\treturn helpers.asDayJS(value, this.options.formats).dateTime.isValid();\n\t};\n\t/**\n\t* Creates a new VineDate instance with optional configuration.\n\t*\n\t* @param options - Field options including date formats and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || []);\n\t\tthis.dataTypeValidator = dateRule(options || {});\n\t}\n\t/**\n\t* Validates the date to be equal to the expected value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param expectedValue - The expected date value or 'today'\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().equals('2025-01-01')\n\t* vine.date().equals('today')\n\t* vine.date().equals('2025-01-01', { compare: 'month' })\n\t*/\n\tequals(expectedValue, options) {\n\t\treturn this.use(equalsRule$1({\n\t\t\texpectedValue,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be after the expected value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param expectedValue - The expected date value, 'today', or 'tomorrow'\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().after('today')\n\t* vine.date().after('2025-01-01')\n\t* vine.date().after('tomorrow', { compare: 'hour' })\n\t*/\n\tafter(expectedValue, options) {\n\t\treturn this.use(afterRule({\n\t\t\texpectedValue,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be after or equal to the expected value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param expectedValue - The expected date value, 'today', or 'tomorrow'\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().afterOrEqual('today')\n\t* vine.date().afterOrEqual('2025-01-01')\n\t*/\n\tafterOrEqual(expectedValue, options) {\n\t\treturn this.use(afterOrEqualRule({\n\t\t\texpectedValue,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be before the expected value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param expectedValue - The expected date value, 'today', or 'yesterday'\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().before('today')\n\t* vine.date().before('2025-12-31')\n\t* vine.date().before('yesterday')\n\t*/\n\tbefore(expectedValue, options) {\n\t\treturn this.use(beforeRule({\n\t\t\texpectedValue,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be before or equal to the expected value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param expectedValue - The expected date value, 'today', or 'yesterday'\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().beforeOrEqual('today')\n\t* vine.date().beforeOrEqual('2025-12-31')\n\t*/\n\tbeforeOrEqual(expectedValue, options) {\n\t\treturn this.use(beforeOrEqualRule({\n\t\t\texpectedValue,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be equal to another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().sameAs('startDate')\n\t* vine.date().sameAs('birthDate', { compare: 'month' })\n\t*/\n\tsameAs(otherField, options) {\n\t\treturn this.use(sameAsRule$1({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be different from another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().notSameAs('endDate')\n\t* vine.date().notSameAs('previousDate')\n\t*/\n\tnotSameAs(otherField, options) {\n\t\treturn this.use(notSameAsRule$1({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be after another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().afterField('startDate')\n\t* vine.date().afterField('createdAt', { compare: 'minute' })\n\t*/\n\tafterField(otherField, options) {\n\t\treturn this.use(afterFieldRule({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be after or equal to another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().afterOrSameAs('startDate')\n\t*/\n\tafterOrSameAs(otherField, options) {\n\t\treturn this.use(afterOrSameAsRule({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be before another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().beforeField('endDate')\n\t* vine.date().beforeField('expiresAt')\n\t*/\n\tbeforeField(otherField, options) {\n\t\treturn this.use(beforeFieldRule({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to be before or equal to another field's value.\n\t* By default, compares day, month, and year.\n\t*\n\t* @param otherField - The name of the other field to compare with\n\t* @param options - Comparison options (compare unit and format)\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().beforeOrSameAs('endDate')\n\t*/\n\tbeforeOrSameAs(otherField, options) {\n\t\treturn this.use(beforeOrSameAsRule({\n\t\t\totherField,\n\t\t\t...options\n\t\t}));\n\t}\n\t/**\n\t* Validates the date to fall on a weekend (Saturday or Sunday).\n\t*\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().weekend()\n\t*/\n\tweekend() {\n\t\treturn this.use(weekendRule());\n\t}\n\t/**\n\t* Validates the date to fall on a weekday (Monday to Friday).\n\t*\n\t* @returns This date schema instance for method chaining\n\t*\n\t* @example\n\t* vine.date().weekday()\n\t*/\n\tweekday() {\n\t\treturn this.use(weekdayRule());\n\t}\n\t/**\n\t* Clones the VineDate schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineDate schema\n\t*/\n\tclone() {\n\t\treturn new VineDate(this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/null/main.ts\n/**\n* VineNull represents a schema type that only accepts null values.\n* Typically used inside union types to explicitly allow null as a valid value.\n*\n* @example\n* const schema = vine.union([\n* vine.string(),\n* vine.null()\n* ])\n*\n* const result = await vine.validate({\n* schema,\n* data: null\n* })\n*/\nvar VineNull = class VineNull {\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"null\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.null\";\n\t/**\n\t* Type checker function to determine if a value is null.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is null\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value === null;\n\t};\n\t/**\n\t* Field configuration options\n\t*/\n\toptions;\n\t/**\n\t* Creates a new VineNull instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode (defaults allow null)\n\t*/\n\tconstructor(options) {\n\t\tthis.options = {\n\t\t\tbail: true,\n\t\t\tallowNull: true,\n\t\t\tisOptional: false,\n\t\t\t...options\n\t\t};\n\t}\n\t/**\n\t* Creates a shallow clone of the field options.\n\t*/\n\tcloneOptions() {\n\t\treturn { ...this.options };\n\t}\n\t/**\n\t* Clones the VineNull schema type. The applied options\n\t* are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineNull schema\n\t*/\n\tclone() {\n\t\treturn new VineNull(this.cloneOptions());\n\t}\n\t/**\n\t* Converts the schema to JSON Schema format.\n\t* Returns a schema with type 'null'.\n\t*/\n\ttoJSONSchema() {\n\t\treturn { type: \"null\" };\n\t}\n\t/**\n\t* Compiles the schema type to a compiler node for validation.\n\t*\n\t* @param propertyName - The name of the property being validated\n\t* @param refs - Reference store for tracking parsers and validators\n\t* @param options - Parser options including camelCase conversion\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"literal\",\n\t\t\tsubtype: this[SUBTYPE],\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: []\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/union/conditional.ts\n/**\n* Represents a union conditional type. A conditional is a predicate\n* function combined with a schema that is applied when the predicate\n* evaluates to true.\n*\n* Each conditional acts as a branch in the union, determining which\n* validation schema should be applied based on runtime conditions.\n*\n* @template Schema - The schema type to apply when condition is met\n*/\nvar UnionConditional = class {\n\t/**\n\t* Schema to apply when conditional is true\n\t*/\n\t#schema;\n\t/**\n\t* Predicate function to evaluate\n\t*/\n\t#conditional;\n\t/**\n\t* Creates a new UnionConditional instance.\n\t*\n\t* @param conditional - Function that determines if this branch matches\n\t* @param schema - Schema to apply when the conditional returns true\n\t*/\n\tconstructor(conditional, schema) {\n\t\tthis.#schema = schema;\n\t\tthis.#conditional = conditional;\n\t}\n\t/**\n\t* Transforms the conditional's schema into JSON Schema format.\n\t*/\n\ttoJSONSchema() {\n\t\treturn this.#schema.toJSONSchema?.();\n\t}\n\t/**\n\t* Compiles the conditional to a union conditional node.\n\t*\n\t* @param propertyName - The name of the property being validated\n\t* @param refs - Reference store for tracking validators and conditionals\n\t* @param options - Parser options including camelCase transformation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\tconditionalFnRefId: refs.trackConditional(this.#conditional),\n\t\t\tschema: this.#schema[PARSE](propertyName, refs, options)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/optional/main.ts\n/**\n* VineOptional represents an optional value inside a union or schema.\n* It allows both null and undefined values to pass validation.\n*\n* This type is typically used with unions to make certain branches\n* optional, or to explicitly mark a field as allowing undefined/null values.\n*\n* @template Output - The output type when the value is defined\n*\n* @example\n* const schema = vine.object({\n* name: vine.string().optional()\n* })\n*\n* @example\n* const schema = vine.unionOfTypes([\n* vine.string(),\n* vine.optional()\n* ])\n*/\nvar VineOptional = class VineOptional extends ConditionalValidations {\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"optional\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.optional\";\n\t/**\n\t* Type checker function to determine if a value is optional (null or undefined).\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value === null || value === void 0;\n\t};\n\t/**\n\t* Field options controlling validation behavior\n\t*/\n\toptions;\n\t/**\n\t* Set of validations to run on the field\n\t*/\n\tvalidations;\n\t/**\n\t* Creates a new VineOptional instance.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper();\n\t\tthis.options = {\n\t\t\tbail: true,\n\t\t\tallowNull: false,\n\t\t\tisOptional: true,\n\t\t\t...options\n\t\t};\n\t\tthis.validations = validations || [];\n\t}\n\t/**\n\t* Shallow clones the validations. Since there are no APIs to mutate\n\t* the validation options, we can safely copy them by reference.\n\t*\n\t* @returns Array of cloned validation objects\n\t*/\n\tcloneValidations() {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\toptions: validation.options,\n\t\t\t\trule: validation.rule\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Shallow clones the field options.\n\t*\n\t* @returns Cloned field options object\n\t*/\n\tcloneOptions() {\n\t\treturn { ...this.options };\n\t}\n\t/**\n\t* Compiles validations into a format suitable for the compiler.\n\t*\n\t* @param refs - Reference store for tracking validators\n\t*/\n\tcompileValidations(refs) {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\truleFnId: refs.track({\n\t\t\t\t\tvalidator: validation.rule.validator,\n\t\t\t\t\toptions: validation.options\n\t\t\t\t}),\n\t\t\t\timplicit: validation.rule.implicit,\n\t\t\t\tisAsync: validation.rule.isAsync\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Define a method to parse the input value. The method\n\t* is invoked before any validation and hence you must\n\t* perform type-checking to know the value you are working with.\n\t*\n\t* @param callback - Parser function to transform the input value\n\t*/\n\tparse(callback) {\n\t\tthis.options.parse = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Push a validation to the validations chain.\n\t*\n\t* @param validation - Validation rule or rule builder to add\n\t*/\n\tuse(validation) {\n\t\tthis.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n\t\treturn this;\n\t}\n\t/**\n\t* Enable/disable the bail mode. In bail mode, the field validations\n\t* are stopped after the first error.\n\t*\n\t* @param state - True to enable bail mode, false to disable\n\t*/\n\tbail(state) {\n\t\tthis.options.bail = state;\n\t\treturn this;\n\t}\n\t/**\n\t* Clones the VineOptional schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineOptional schema\n\t*/\n\tclone() {\n\t\treturn new VineOptional(this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Mark the field under validation to be nullable. The null value will\n\t* be written to the output as well. When combined with optional,\n\t* both null and undefined values are allowed.\n\t*/\n\tnullable() {\n\t\treturn new VineOptional({\n\t\t\t...this.options,\n\t\t\tallowNull: true\n\t\t});\n\t}\n\t/**\n\t* Transforms into JSON Schema format.\n\t*/\n\ttoJSONSchema() {\n\t\treturn {};\n\t}\n\t/**\n\t* Compiles the schema type to a compiler node.\n\t*\n\t* @param propertyName - The name of the property being validated\n\t* @param refs - Reference store for tracking validators and parsers\n\t* @param options - Parser options including camelCase transformation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"literal\",\n\t\t\tsubtype: this[SUBTYPE],\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: this.compileValidations(refs)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/union/main.ts\n/**\n* Vine union represents a union data type. A union is a collection\n* of conditionals and each condition has an associated schema.\n*\n* Unions allow you to define validation logic where different schemas\n* are applied based on runtime conditions. Each conditional is evaluated\n* in order, and the first matching condition's schema is used for validation.\n*\n* @template Conditional - The union conditional type extending UnionConditional\n*\n* @example\n* const schema = vine.object({\n* userType: vine.string(),\n* data: vine.union([\n* vine.union.if(\n* (value) => value.userType === 'admin',\n* vine.object({ permissions: vine.array(vine.string()) })\n* ),\n* vine.union.else(\n* vine.object({ role: vine.string() })\n* )\n* ])\n* })\n*/\nvar VineUnion = class VineUnion {\n\t/**\n\t* Array of conditional branches to evaluate\n\t*/\n\t#conditionals;\n\t/**\n\t* Callback to invoke when no conditional matches\n\t*/\n\t#otherwiseCallback = (_, field) => {\n\t\tfield.report(messages.union, \"union\", field);\n\t};\n\t/**\n\t* Creates a new VineUnion instance with the specified conditionals.\n\t*\n\t* @param conditionals - Array of conditional branches to evaluate\n\t*/\n\tconstructor(conditionals) {\n\t\tthis.#conditionals = conditionals;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*/\n\toptional() {\n\t\tconst optional = new VineOptional();\n\t\treturn new VineUnion([new UnionConditional(optional[IS_OF_TYPE], optional), ...this.#conditionals]);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\tconst nullable = new VineNull();\n\t\treturn new VineUnion([new UnionConditional(nullable[IS_OF_TYPE], nullable), ...this.#conditionals]);\n\t}\n\t/**\n\t* Define a fallback method to invoke when all of the union conditions\n\t* fail. You may use this method to report an error.\n\t*/\n\totherwise(callback) {\n\t\tthis.#otherwiseCallback = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Transforms into JSONSchema.\n\t*/\n\ttoJSONSchema() {\n\t\treturn { anyOf: this.#conditionals.map((conditional) => conditional.toJSONSchema()).filter(Boolean) };\n\t}\n\t/**\n\t* Clones the VineUnion schema type.\n\t*/\n\tclone() {\n\t\tconst cloned = new VineUnion(this.#conditionals);\n\t\tcloned.otherwise(this.#otherwiseCallback);\n\t\treturn cloned;\n\t}\n\t/**\n\t* Compiles the union schema to a compiler node.\n\t*\n\t* @param propertyName - The name of the property being validated\n\t* @param refs - Reference store for tracking validators and conditionals\n\t* @param options - Parser options including camelCase transformation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"union\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\telseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n\t\t\tconditions: this.#conditionals.map((conditional) => conditional[PARSE](propertyName, refs, options))\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/union/builder.ts\n/**\n* Create a new union schema type. A union is a collection of conditionals\n* and schema associated with it.\n*\n* Unions evaluate conditionals in order and apply the first matching schema.\n* Use `union.if()` to define conditional branches and `union.else()` for\n* the default fallback.\n*\n* @template Conditional - The union conditional type\n* @param conditionals - Array of conditional branches to evaluate\n*\n* @example\n* const schema = vine.union([\n* vine.union.if(\n* (value) => typeof value === 'string',\n* vine.string()\n* ),\n* vine.union.if(\n* (value) => typeof value === 'number',\n* vine.number()\n* )\n* ])\n*/\nfunction union(conditionals) {\n\treturn new VineUnion(conditionals);\n}\n/**\n* Wrap a schema inside a conditional branch. The condition is evaluated\n* at runtime, and if it returns a truthy value, the associated schema\n* is used for validation.\n*\n* @template Schema - The schema type to apply when condition matches\n* @param conditon - Function that evaluates whether this branch should be used\n* @param schema - The schema to apply if the condition is true\n*\n* @example\n* vine.union.if(\n* (value) => value.type === 'email',\n* vine.object({ email: vine.string().email() })\n* )\n*/\nunion.if = function unionIf(conditon, schema) {\n\treturn new UnionConditional(conditon, schema);\n};\n/**\n* Wrap a schema inside an else (default) conditional. This branch\n* always matches and should be placed last in the union conditionals array.\n*\n* @template Schema - The schema type to apply as default\n* @param schema - The schema to apply when no other conditions match\n*\n* @example\n* vine.union([\n* vine.union.if((value) => value.type === 'admin', adminSchema),\n* vine.union.else(userSchema)\n* ])\n*/\nunion.else = function unionElse(schema) {\n\treturn new UnionConditional(() => true, schema);\n};\n//#endregion\n//#region src/schema/base/main.ts\n/**\n* Modifies the schema type to allow null values in addition to the\n* original schema type. This is useful for optional database fields\n* or API responses that may contain null values.\n*\n* @template Schema - The underlying schema type to modify\n*\n* @example\n* const schema = vine.string().nullable()\n* // Accepts: \"hello\", null\n* // Rejects: undefined, 123\n*/\nvar NullableModifier = class NullableModifier {\n\tallowNull = true;\n\tget isOptional() {\n\t\treturn this.#parent.isOptional;\n\t}\n\t/**\n\t* Reference to the parent schema being modified\n\t*/\n\t#parent;\n\t/**\n\t* Creates a new nullable modifier wrapping the given schema.\n\t*\n\t* @param parent - The schema to make nullable\n\t*/\n\tconstructor(parent) {\n\t\tthis.#parent = parent;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*\n\t* @returns A new OptionalModifier wrapping this nullable schema\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier(this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier(this, meta);\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the nullable modifier.\n\t*\n\t* @returns A cloned instance of this nullable modifier\n\t*/\n\tclone() {\n\t\treturn new NullableModifier(this.#parent.clone());\n\t}\n\ttoJSONSchema() {\n\t\tconst schema = this.#parent.toJSONSchema?.();\n\t\tif (!schema) return { type: \"null\" };\n\t\tif (schema.anyOf) {\n\t\t\tschema.anyOf.push({ type: \"null\" });\n\t\t\treturn schema;\n\t\t}\n\t\tif (schema.type === void 0) {\n\t\t\tschema.type = \"null\";\n\t\t\treturn schema;\n\t\t}\n\t\tif (typeof schema.type === \"string\") {\n\t\t\tschema.type = [schema.type, \"null\"];\n\t\t\treturn schema;\n\t\t}\n\t\tif (Array.isArray(schema.type)) {\n\t\t\tschema.type.push(\"null\");\n\t\t\treturn schema;\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Compiles to compiler node by delegating to the parent schema\n\t* and setting the allowNull flag.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled compiler node with null support\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\tif (output.type !== \"union\") output.allowNull = true;\n\t\treturn output;\n\t}\n};\nvar MetaModifier = class MetaModifier {\n\tget allowNull() {\n\t\treturn this.#parent.allowNull;\n\t}\n\tget isOptional() {\n\t\treturn this.#parent.isOptional;\n\t}\n\t#parent;\n\t#meta;\n\tconstructor(parent, meta) {\n\t\tthis.#parent = parent;\n\t\tthis.#meta = meta;\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the meta modifier\n\t*/\n\tclone() {\n\t\treturn new MetaModifier(this.#parent.clone(), this.#meta);\n\t}\n\ttoJSONSchema() {\n\t\treturn {\n\t\t\t...this.#parent.toJSONSchema?.() ?? {},\n\t\t\t...this.#meta\n\t\t};\n\t}\n\t/**\n\t* Compiles to compiler node by delegating to the parent schema\n\t* and setting the allowNull flag.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled compiler node with null support\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn this.#parent[PARSE](propertyName, refs, options);\n\t}\n};\n/**\n* Modifies the schema type to allow undefined values in addition to the\n* original schema type. This is useful for form fields that may not be\n* present in the submitted data.\n*\n* @template Schema - The underlying schema type to modify\n*\n* @example\n* const schema = vine.string().optional()\n* // Accepts: \"hello\", undefined\n* // Rejects: null (unless also nullable), 123\n*/\nvar OptionalModifier = class OptionalModifier extends ConditionalValidations {\n\tisOptional = true;\n\tget allowNull() {\n\t\treturn this.#parent.allowNull;\n\t}\n\t/**\n\t* Reference to the parent schema being modified\n\t*/\n\t#parent;\n\t/**\n\t* List of validations to apply to non-undefined values\n\t*/\n\tvalidations;\n\t/**\n\t* Creates a new optional modifier wrapping the given schema.\n\t*\n\t* @param parent - The schema to make optional\n\t* @param validations - Optional list of validations to apply\n\t*/\n\tconstructor(parent, validations) {\n\t\tsuper();\n\t\tthis.#parent = parent;\n\t\tthis.validations = validations || [];\n\t}\n\t/**\n\t* Shallow clones the validations. Since, there are no API's to mutate\n\t* the validation options, we can safely copy them by reference.\n\t*\n\t* @returns Cloned array of validations\n\t*/\n\tcloneValidations() {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\toptions: validation.options,\n\t\t\t\trule: validation.rule\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Compiles validations into a format suitable for the validator compiler.\n\t*\n\t* @param refs - Reference store for tracking validation functions\n\t* @returns Compiled validation definitions\n\t*/\n\tcompileValidations(refs) {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\truleFnId: refs.track({\n\t\t\t\t\tvalidator: validation.rule.validator,\n\t\t\t\t\toptions: validation.options\n\t\t\t\t}),\n\t\t\t\tname: validation.rule.name,\n\t\t\t\timplicit: validation.rule.implicit,\n\t\t\t\tisAsync: validation.rule.isAsync\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier(this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier(this, meta);\n\t}\n\t/**\n\t* Push a validation to the validations chain.\n\t*/\n\tuse(validation) {\n\t\tthis.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n\t\treturn this;\n\t}\n\t/**\n\t* Creates a fresh instance of the underlying schema type\n\t* and wraps it inside the optional modifier\n\t*/\n\tclone() {\n\t\treturn new OptionalModifier(this.#parent.clone(), this.cloneValidations());\n\t}\n\ttoJSONSchema() {\n\t\treturn { ...this.#parent.toJSONSchema() };\n\t}\n\t/**\n\t* Compiles to compiler node\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\tconst output = this.#parent[PARSE](propertyName, refs, options);\n\t\tif (output.type !== \"union\") {\n\t\t\toutput.isOptional = true;\n\t\t\toutput.validations = output.validations.concat(this.compileValidations(refs));\n\t\t}\n\t\treturn output;\n\t}\n};\n/**\n* The BaseType class abstracts the repetitive parts of creating\n* a custom schema type. It provides common functionality like validation\n* chaining, optional/nullable modifiers, and compilation logic.\n*\n* @template Input - The expected input type for this schema\n* @template Output - The output type after validation and transformation\n* @template CamelCaseOutput - The output type with camelCase field names\n*\n* @example\n* class CustomStringType extends BaseType<string, string, string> {\n* [PARSE](propertyName: string, refs: RefsStore, options: ParserOptions) {\n* return { type: 'literal', name: propertyName, ... }\n* }\n* clone() { return new CustomStringType() }\n* }\n*/\nvar BaseType = class extends Macroable {\n\t/**\n\t* The child class must implement the toJSONSchema method to\n\t* support converting into a JSON Schema.\n\t*\n\t* Otherwise it returns an empty schema which is considered as any.\n\t*\n\t* @returns JSON Schema\n\t*/\n\ttoJSONSchema() {\n\t\treturn {};\n\t}\n\t/**\n\t* Set of validations to run on the field value\n\t*/\n\tvalidations;\n\t/**\n\t* Configuration options for this field\n\t*/\n\toptions;\n\t/**\n\t* Creates a new BaseType instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper();\n\t\tthis.options = options || {\n\t\t\tbail: true,\n\t\t\tallowNull: false,\n\t\t\tisOptional: false\n\t\t};\n\t\tthis.validations = validations || [];\n\t}\n\t/**\n\t* Shallow clones the validations. Since, there are no API's to mutate\n\t* the validation options, we can safely copy them by reference.\n\t*/\n\tcloneValidations() {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\toptions: validation.options,\n\t\t\t\trule: validation.rule\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Shallow clones the options\n\t*/\n\tcloneOptions() {\n\t\treturn { ...this.options };\n\t}\n\t/**\n\t* Compiles validations\n\t*/\n\tcompileValidations(refs) {\n\t\treturn this.validations.map((validation) => {\n\t\t\treturn {\n\t\t\t\truleFnId: refs.track({\n\t\t\t\t\tvalidator: validation.rule.validator,\n\t\t\t\t\toptions: validation.options\n\t\t\t\t}),\n\t\t\t\tname: validation.rule.name,\n\t\t\t\timplicit: validation.rule.implicit,\n\t\t\t\tisAsync: validation.rule.isAsync\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Define a method to parse the input value. The method\n\t* is invoked before any validation and hence you must\n\t* perform type-checking to know the value you are working with.\n\t*\n\t* @param callback - Parser function to transform the input value\n\t* @returns This schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().parse((value) => {\n\t* return typeof value === 'string' ? value.trim() : value\n\t* })\n\t*/\n\tparse(callback) {\n\t\tthis.options.parse = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Push a validation to the validations chain.\n\t*\n\t* @param validation - Validation rule or rule builder to add\n\t* @returns This schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().use(vine.createRule((value) => {\n\t* return value.length > 0\n\t* }))\n\t*/\n\tuse(validation) {\n\t\tthis.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n\t\treturn this;\n\t}\n\t/**\n\t* Enable/disable the bail mode. In bail mode, the field validations\n\t* are stopped after the first error.\n\t*\n\t* @param state - Whether to enable bail mode\n\t* @returns This schema instance for method chaining\n\t*/\n\tbail(state) {\n\t\tthis.options.bail = state;\n\t\treturn this;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*\n\t* @returns A new OptionalModifier wrapping this schema\n\t*/\n\toptional() {\n\t\treturn new OptionalModifier(this);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*\n\t* @returns A new NullableModifier wrapping this schema\n\t*/\n\tnullable() {\n\t\treturn new NullableModifier(this);\n\t}\n\t/**\n\t* Add meta to the field that can be retrieved once compiled.\n\t* It is also merged with the json-schema.\n\t*/\n\tmeta(meta) {\n\t\treturn new MetaModifier(this, meta);\n\t}\n};\n//#endregion\n//#region src/schema/tuple/main.ts\n/**\n* VineTuple represents a fixed-length array where each position has a specific schema type.\n* Unlike VineArray which uses the same schema for all elements, tuples allow different\n* types at different positions, similar to TypeScript tuples.\n*\n* @template Schema - Array of schema types for each tuple position\n* @template Input - Expected input type for the tuple\n* @template Output - Output type after validation and transformation\n* @template CamelCaseOutput - Output type with camelCase property names\n*\n* @example\n* const schema = vine.tuple([\n* vine.string(),\n* vine.number(),\n* vine.boolean()\n* ])\n*\n* const result = await vine.validate({\n* schema,\n* data: ['hello', 42, true]\n* })\n*/\nvar VineTuple = class VineTuple extends BaseType {\n\t/**\n\t* Array of schemas defining the type for each tuple position\n\t*/\n\t#schemas;\n\t/**\n\t* Whether to allow additional elements beyond the defined tuple length\n\t*/\n\t#allowUnknownProperties = false;\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.array\";\n\t/**\n\t* Type checker function to determine if a value is an array.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is an array\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn Array.isArray(value);\n\t};\n\t/**\n\t* Creates a new VineTuple instance with position-specific schemas.\n\t*\n\t* @param schemas - Array of schemas defining validation for each tuple position\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(schemas, options, validations) {\n\t\tsuper(options, validations);\n\t\tthis.#schemas = schemas;\n\t}\n\t/**\n\t* Allows additional elements beyond the defined tuple length to pass through validation.\n\t* By default, tuples enforce exact length matching. This method relaxes that constraint.\n\t*\n\t* @returns This tuple schema with unknown properties allowed\n\t*\n\t* @example\n\t* const schema = vine.tuple([\n\t* vine.string(),\n\t* vine.number()\n\t* ]).allowUnknownProperties()\n\t*\n\t* // Now ['hello', 42, 'extra'] will pass validation\n\t*/\n\tallowUnknownProperties() {\n\t\tthis.#allowUnknownProperties = true;\n\t\treturn this;\n\t}\n\t/**\n\t* Clones the VineTuple schema including all position schemas, validations, and options.\n\t*\n\t* @returns A cloned instance of this VineTuple schema\n\t*/\n\tclone() {\n\t\tconst cloned = new VineTuple(this.#schemas.map((schema) => schema.clone()), this.cloneOptions(), this.cloneValidations());\n\t\tif (this.#allowUnknownProperties) cloned.allowUnknownProperties();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Converts the tuple schema to JSON Schema format.\n\t*\n\t* @returns JSON Schema representation of this tuple\n\t*/\n\ttoJSONSchema() {\n\t\tconst items = [];\n\t\tfor (const item of this.#schemas) {\n\t\t\tif (!item.toJSONSchema) continue;\n\t\t\titems.push(item.toJSONSchema());\n\t\t}\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\tminItems: this.#schemas.length,\n\t\t\tmaxItems: this.#schemas.length,\n\t\t\tadditionalItems: false,\n\t\t\titems\n\t\t};\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Compiles the tuple schema to a compiler node for validation.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled tuple node for validation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"tuple\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\tallowUnknownProperties: this.#allowUnknownProperties,\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: this.compileValidations(refs),\n\t\t\tproperties: this.#schemas.map((schema, index) => schema[PARSE](String(index), refs, options))\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/array/rules.ts\n/**\n* Enforce a minimum length on an array field.\n*\n* Validates that an array contains at least the specified number of elements.\n*\n* @example\n* vine.array(vine.string()).minLength(2)\n*/\nconst minLengthRule$2 = createRule(function minLength(value, options, field) {\n\t/**\n\t* Value will always be an array if the field is valid.\n\t*/\n\tif (value.length < options.min) field.report(messages[\"array.minLength\"], \"array.minLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minItems = options.min;\n} });\n/**\n* Enforce a maximum length on an array field.\n*\n* Validates that an array contains at most the specified number of elements.\n*\n* @example\n* vine.array(vine.string()).maxLength(10)\n*/\nconst maxLengthRule$2 = createRule(function maxLength(value, options, field) {\n\t/**\n\t* Value will always be an array if the field is valid.\n\t*/\n\tif (value.length > options.max) field.report(messages[\"array.maxLength\"], \"array.maxLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.maxItems = options.max;\n} });\n/**\n* Enforce a fixed length on an array field.\n*\n* Validates that an array contains exactly the specified number of elements.\n*\n* @example\n* vine.array(vine.string()).fixedLength(5)\n*/\nconst fixedLengthRule$2 = createRule(function fixedLength(value, options, field) {\n\t/**\n\t* Value will always be an array if the field is valid.\n\t*/\n\tif (value.length !== options.size) field.report(messages[\"array.fixedLength\"], \"array.fixedLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minItems = options.size;\n\tschema.maxItems = options.size;\n} });\n/**\n* Ensure the array is not empty.\n*\n* Validates that an array contains at least one element.\n*\n* @example\n* vine.array(vine.string()).notEmpty()\n*/\nconst notEmptyRule = createRule(function notEmpty(value, _, field) {\n\t/**\n\t* Value will always be an array if the field is valid.\n\t*/\n\tif (value.length <= 0) field.report(messages.notEmpty, \"notEmpty\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.minItems = 1;\n} });\n/**\n* Ensure array elements are distinct/unique.\n*\n* For primitive arrays, validates that all elements are unique.\n* For object arrays, validates uniqueness based on specified field(s).\n*\n* @example\n* // Validate primitive array uniqueness\n* vine.array(vine.string()).distinct()\n*\n* @example\n* // Validate object array uniqueness by field\n* vine.array(vine.object({ id: vine.number() })).distinct('id')\n*\n* @example\n* // Validate object array uniqueness by multiple fields\n* vine.array(vine.object({\n* name: vine.string(),\n* email: vine.string()\n* })).distinct(['name', 'email'])\n*/\nconst distinctRule = createRule(function distinct(value, options, field) {\n\t/**\n\t* Value will always be an array if the field is valid.\n\t*/\n\tif (!helpers.isDistinct(value, options.fields)) field.report(messages.distinct, \"distinct\", field, options);\n}, { toJSONSchema: (schema) => {\n\tschema.uniqueItems = true;\n} });\n/**\n* Removes empty strings, null and undefined values from the array.\n*\n* This rule mutates the array by filtering out falsy values and empty strings.\n* It does not fail validation but transforms the input by removing unwanted values.\n*\n* @example\n* vine.array(vine.string()).compact()\n* // Input: ['a', '', null, 'b', undefined]\n* // Output: ['a', 'b']\n*/\nconst compactRule = createRule(function compact(value, _, field) {\n\t/**\n\t* Skip if the field is not valid.\n\t*/\n\tif (!field.isValid) return;\n\tfield.mutate(value.filter((item) => helpers.exists(item) && item !== \"\"), field);\n});\n//#endregion\n//#region src/schema/array/main.ts\n/**\n* VineArray represents an array schema type in the validation pipeline.\n* It validates arrays and their elements using a nested schema, with support\n* for length constraints, uniqueness checks, and element filtering.\n*\n* @template Schema - The schema type for validating array elements\n*\n* @example\n* const schema = vine.array(vine.string().email())\n* .minLength(1)\n* .maxLength(10)\n* .distinct()\n*\n* const result = await vine.validate({\n* schema,\n* data: ['user1@example.com', 'user2@example.com']\n* })\n*/\nvar VineArray = class VineArray extends BaseType {\n\t/**\n\t* Static collection of all available validation rules for arrays\n\t*/\n\tstatic rules = {\n\t\tcompact: compactRule,\n\t\tnotEmpty: notEmptyRule,\n\t\tdistinct: distinctRule,\n\t\tminLength: minLengthRule$2,\n\t\tmaxLength: maxLengthRule$2,\n\t\tfixedLength: fixedLengthRule$2\n\t};\n\t/**\n\t* The schema used to validate each element in the array\n\t*/\n\t#schema;\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.array\";\n\t/**\n\t* Type checker function to determine if a value is an array.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is an array\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn Array.isArray(value);\n\t};\n\t/**\n\t* Creates a new VineArray instance with element schema and optional configuration.\n\t*\n\t* @param schema - The schema to validate each array element\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(schema, options, validations) {\n\t\tsuper(options, validations);\n\t\tthis.#schema = schema;\n\t}\n\t/**\n\t* Enforce a minimum length on an array field.\n\t*\n\t* @param expectedLength - The minimum required number of elements\n\t* @returns This array schema instance for method chaining\n\t*/\n\tminLength(expectedLength) {\n\t\treturn this.use(minLengthRule$2({ min: expectedLength }));\n\t}\n\t/**\n\t* Enforce a maximum length on an array field.\n\t*\n\t* @param expectedLength - The maximum allowed number of elements\n\t* @returns This array schema instance for method chaining\n\t*/\n\tmaxLength(expectedLength) {\n\t\treturn this.use(maxLengthRule$2({ max: expectedLength }));\n\t}\n\t/**\n\t* Enforce a fixed length on an array field.\n\t*\n\t* @param expectedLength - The exact required number of elements\n\t* @returns This array schema instance for method chaining\n\t*/\n\tfixedLength(expectedLength) {\n\t\treturn this.use(fixedLengthRule$2({ size: expectedLength }));\n\t}\n\t/**\n\t* Ensure the array is not empty.\n\t*\n\t* @returns This array schema instance for method chaining\n\t*/\n\tnotEmpty() {\n\t\treturn this.use(notEmptyRule());\n\t}\n\t/**\n\t* Ensure array elements are distinct/unique.\n\t*\n\t* @param fields - Optional field names to check for uniqueness in object arrays\n\t* @returns This array schema instance for method chaining\n\t*/\n\tdistinct(fields) {\n\t\treturn this.use(distinctRule({ fields }));\n\t}\n\t/**\n\t* Removes empty strings, null and undefined values from the array.\n\t*\n\t* @returns This array schema instance for method chaining\n\t*/\n\tcompact() {\n\t\treturn this.use(compactRule());\n\t}\n\t/**\n\t* Clones the VineArray schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineArray schema\n\t*/\n\tclone() {\n\t\treturn new VineArray(this.#schema.clone(), this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Transforms into JSONSchema.\n\t*/\n\ttoJSONSchema() {\n\t\tconst schema = {\n\t\t\ttype: \"array\",\n\t\t\titems: this.#schema.toJSONSchema?.() ?? {}\n\t\t};\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Compiles to array data type for the validation compiler.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled array node for validation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"array\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\teach: this.#schema[PARSE](\"*\", refs, options),\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: this.compileValidations(refs)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/object/main.ts\n/**\n* Converts schema properties to camelCase during validation.\n* This is a wrapper around VineObject that automatically converts\n* property names from snake_case to camelCase in the output.\n*\n* @template Schema - The underlying VineObject schema type\n*\n* @example\n* const schema = vine.object({\n* first_name: vine.string(),\n* last_name: vine.string()\n* }).camelCase()\n*\n* // Output will have: { firstName: string, lastName: string }\n*/\nvar VineCamelCaseObject = class VineCamelCaseObject extends BaseType {\n\t/**\n\t* Reference to the underlying object schema\n\t*/\n\t#schema;\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"types.object\";\n\t/**\n\t* Type checker function to determine if a value is an object.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is a non-null object and not an array\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value !== null && typeof value === \"object\" && !Array.isArray(value);\n\t};\n\t/**\n\t* Creates a new VineCamelCaseObject instance wrapping the given schema.\n\t*\n\t* @param schema - The VineObject schema to wrap with camelCase conversion\n\t*/\n\tconstructor(schema) {\n\t\tsuper();\n\t\tthis.#schema = schema;\n\t}\n\t/**\n\t* Clone object with camelCase conversion preserved.\n\t*\n\t* @returns A cloned instance of this VineCamelCaseObject schema\n\t*/\n\tclone() {\n\t\treturn new VineCamelCaseObject(this.#schema.clone());\n\t}\n\t/**\n\t* Converts the object schema to JSON Schema format.\n\t*\n\t* @returns JSON Schema representation of this object\n\t*/\n\ttoJSONSchema() {\n\t\treturn this.#schema.toJSONSchema();\n\t}\n\t/**\n\t* Compiles the schema type to a compiler node with camelCase enabled.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled object node with camelCase conversion\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\toptions.toCamelCase = true;\n\t\treturn this.#schema[PARSE](propertyName, refs, options);\n\t}\n};\n/**\n* VineObject represents an object value in the validation schema.\n* It validates objects with predefined properties, supports conditional\n* groups, and provides control over unknown properties.\n*\n* @template Properties - Record of property names to their schema types\n* @template Input - The expected input type for this object\n* @template Output - The output type after validation and transformation\n* @template CamelCaseOutput - The output type with camelCase property names\n*\n* @example\n* const schema = vine.object({\n* name: vine.string(),\n* email: vine.string().email(),\n* age: vine.number().min(0)\n* })\n*\n* const result = await vine.validate({\n* schema,\n* data: { name: 'John', email: 'john@example.com', age: 30 }\n* })\n*/\nvar VineObject = class VineObject extends BaseType {\n\t/**\n\t* Object properties mapping property names to their validation schemas\n\t*/\n\t#properties;\n\t/**\n\t* Object groups to merge based on conditionals.\n\t* These allow adding properties dynamically based on conditions.\n\t*/\n\t#groups = [];\n\t/**\n\t* Whether or not to allow unknown properties that are not defined\n\t* in the schema. When false, unknown properties cause validation errors.\n\t*/\n\t#allowUnknownProperties = false;\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.object\";\n\t/**\n\t* Type checker function to determine if a value is an object.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is a non-null object and not an array\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value !== null && typeof value === \"object\" && !Array.isArray(value);\n\t};\n\t/**\n\t* Creates a new VineObject instance with property schemas and optional configuration.\n\t*\n\t* @param properties - Record of property names to their validation schemas\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t* @throws Error if properties is not provided\n\t*/\n\tconstructor(properties, options, validations) {\n\t\tif (!properties) throw new Error(\"Missing properties for \\\"vine.object\\\". Use an empty object if you do not want to validate any specific fields\");\n\t\tsuper(options, validations);\n\t\tthis.#properties = properties;\n\t}\n\t/**\n\t* Returns a cloned copy of all object properties with their validation schemas.\n\t* Note: Object groups are not included to keep implementations simple.\n\t*\n\t* @returns Cloned properties record\n\t*\n\t* @example\n\t* const properties = schema.getProperties()\n\t*/\n\tgetProperties() {\n\t\treturn Object.keys(this.#properties).reduce((result, key) => {\n\t\t\tresult[key] = this.#properties[key].clone();\n\t\t\treturn result;\n\t\t}, {});\n\t}\n\t/**\n\t* Returns a cloned subset of object properties containing only the specified keys.\n\t*\n\t* @param keys - Array of property keys to include\n\t* @returns Picked properties record\n\t*\n\t* @example\n\t* const userSchema = vine.object({\n\t* name: vine.string(),\n\t* email: vine.string().email(),\n\t* password: vine.string()\n\t* })\n\t*\n\t* const publicFields = userSchema.pick(['name', 'email'])\n\t*/\n\tpick(keys) {\n\t\tconst result = {};\n\t\tfor (const key of keys) result[key] = this.#properties[key].clone();\n\t\treturn result;\n\t}\n\t/**\n\t* Returns a cloned copy of object properties excluding the specified keys.\n\t*\n\t* @param keys - Array of property keys to exclude\n\t* @returns Omitted properties record\n\t*\n\t* @example\n\t* const userSchema = vine.object({\n\t* name: vine.string(),\n\t* email: vine.string().email(),\n\t* password: vine.string()\n\t* })\n\t*\n\t* const withoutPassword = userSchema.omit(['password'])\n\t*/\n\tomit(keys) {\n\t\tconst result = {};\n\t\tfor (const key of Object.keys(this.#properties)) if (!keys.includes(key)) result[key] = this.#properties[key].clone();\n\t\treturn result;\n\t}\n\t/**\n\t* Allows unknown properties to pass through validation and be included in the output.\n\t* By default, objects with properties not defined in the schema will fail validation.\n\t*\n\t* @returns This object schema with unknown properties allowed\n\t*\n\t* @example\n\t* const schema = vine.object({\n\t* name: vine.string()\n\t* }).allowUnknownProperties()\n\t*\n\t* // Now { name: 'John', extra: 'value' } will pass validation\n\t*/\n\tallowUnknownProperties() {\n\t\tthis.#allowUnknownProperties = true;\n\t\treturn this;\n\t}\n\t/**\n\t* Merges conditional property groups into the object schema. Groups allow\n\t* adding properties dynamically based on runtime conditions.\n\t*\n\t* @param group - The conditional group to merge\n\t* @returns This object schema with the group merged\n\t*\n\t* @example\n\t* const schema = vine.object({\n\t* type: vine.string()\n\t* }).merge(\n\t* vine.group([\n\t* vine.group.if('type', 'user', { name: vine.string() }),\n\t* vine.group.if('type', 'admin', { permissions: vine.array(vine.string()) })\n\t* ])\n\t* )\n\t*/\n\tmerge(group) {\n\t\tthis.#groups.push(group);\n\t\treturn this;\n\t}\n\t/**\n\t* Clones the VineObject schema including all properties, validations, groups, and options.\n\t*\n\t* @returns A cloned instance of this VineObject schema\n\t*/\n\tclone() {\n\t\tconst cloned = new VineObject(this.getProperties(), this.cloneOptions(), this.cloneValidations());\n\t\tthis.#groups.forEach((group) => cloned.merge(group));\n\t\tif (this.#allowUnknownProperties) cloned.allowUnknownProperties();\n\t\treturn cloned;\n\t}\n\t/**\n\t* Converts object property names to camelCase in the validation output.\n\t* Useful when accepting snake_case input but wanting camelCase output.\n\t*\n\t* @returns A VineCamelCaseObject wrapper for this schema\n\t*\n\t* @example\n\t* const schema = vine.object({\n\t* first_name: vine.string(),\n\t* last_name: vine.string()\n\t* }).toCamelCase()\n\t*\n\t* // Output: { firstName: string, lastName: string }\n\t*/\n\ttoCamelCase() {\n\t\treturn new VineCamelCaseObject(this);\n\t}\n\t/**\n\t* Converts the object schema to JSON Schema format.\n\t*\n\t* @returns JSON Schema representation of this object\n\t*/\n\ttoJSONSchema() {\n\t\tconst properties = {};\n\t\tconst required = [];\n\t\tfor (const [key, property] of Object.entries(this.getProperties())) {\n\t\t\tif (!property.toJSONSchema) continue;\n\t\t\tproperties[key] = property.toJSONSchema();\n\t\t\tif (property.isOptional !== true && property.allowNull !== true) required.push(key);\n\t\t}\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tproperties,\n\t\t\trequired,\n\t\t\tadditionalProperties: this.#allowUnknownProperties\n\t\t};\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\tif (this.#groups.length > 0) return { anyOf: [...this.#groups.map((group) => group.toJSONSchema()), schema] };\n\t\treturn schema;\n\t}\n\t/**\n\t* Creates a new object schema with all properties (or specified properties) marked as optional.\n\t* This is useful for update/PATCH operations where not all fields are required.\n\t*\n\t* @param keys - Optional array of property keys to make optional. If omitted, all properties become optional.\n\t* @returns A new VineObject schema with optional properties\n\t*\n\t* @example\n\t* // Make all properties optional\n\t* const updateSchema = createSchema.partial()\n\t*\n\t* @example\n\t* // Make only specific properties optional\n\t* const userSchema = vine.object({\n\t* name: vine.string(),\n\t* email: vine.string().email(),\n\t* age: vine.number()\n\t* })\n\t*\n\t* const updateUserSchema = userSchema.partial(['name', 'age'])\n\t* // email remains required, name and age become optional\n\t*/\n\tpartial(keys) {\n\t\t/**\n\t\t* Groups cannot be optional standalone, hence they cannot be marked\n\t\t* as optional when merged inside an object. Same is true for\n\t\t* unknownProperties.\n\t\t*/\n\t\tif (this.#groups.length > 0 || this.#allowUnknownProperties) throw new Error(\"toOptional cannot be used on schemas that have groups or allowUnknownProperties enabled\");\n\t\tconst properties = {};\n\t\tfor (const key of Object.keys(this.#properties)) {\n\t\t\tlet field = this.#properties[key].clone();\n\t\t\tif ((!keys || keys.includes(key)) && \"optional\" in field && typeof field.optional === \"function\") field = field.optional();\n\t\t\tproperties[key] = field;\n\t\t}\n\t\treturn new VineObject(properties, this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Compiles the schema type to a compiler node for validation.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled object node for validation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"object\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tallowUnknownProperties: this.#allowUnknownProperties,\n\t\t\tvalidations: this.compileValidations(refs),\n\t\t\tproperties: Object.keys(this.#properties).map((property) => {\n\t\t\t\treturn this.#properties[property][PARSE](property, refs, options);\n\t\t\t}),\n\t\t\tgroups: this.#groups.map((group) => {\n\t\t\t\treturn group[PARSE](refs, options);\n\t\t\t})\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/record/rules.ts\n/**\n* Enforce a minimum number of properties on a record field.\n*\n* Validates that a record (object) contains at least the specified number of key-value pairs.\n*\n* @example\n* vine.record(vine.string()).minLength(2)\n*/\nconst minLengthRule$1 = createRule(function minLength(value, options, field) {\n\t/**\n\t* Value will always be an object if the field is valid.\n\t*/\n\tif (Object.keys(value).length < options.min) field.report(messages[\"record.minLength\"], \"record.minLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minProperties = options.min;\n} });\n/**\n* Enforce a maximum number of properties on a record field.\n*\n* Validates that a record (object) contains at most the specified number of key-value pairs.\n*\n* @example\n* vine.record(vine.string()).maxLength(10)\n*/\nconst maxLengthRule$1 = createRule(function maxLength(value, options, field) {\n\t/**\n\t* Value will always be an object if the field is valid.\n\t*/\n\tif (Object.keys(value).length > options.max) field.report(messages[\"record.maxLength\"], \"record.maxLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.maxProperties = options.max;\n} });\n/**\n* Enforce an exact number of properties on a record field.\n*\n* Validates that a record (object) contains exactly the specified number of key-value pairs.\n*\n* @example\n* vine.record(vine.string()).fixedLength(5)\n*/\nconst fixedLengthRule$1 = createRule(function fixedLength(value, options, field) {\n\t/**\n\t* Value will always be an object if the field is valid.\n\t*/\n\tif (Object.keys(value).length !== options.size) field.report(messages[\"record.fixedLength\"], \"record.fixedLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minProperties = options.size;\n\tschema.maxProperties = options.size;\n} });\n/**\n* Register a custom callback to validate the record's keys.\n*\n* Allows implementing custom key validation logic, such as checking key patterns,\n* enforcing naming conventions, or validating key existence.\n*\n* @example\n* vine.record(vine.string()).validateKeys((keys, field) => {\n* // Ensure all keys are lowercase\n* if (!keys.every(key => key === key.toLowerCase())) {\n* field.report('All keys must be lowercase', 'invalidKeys', field)\n* }\n* })\n*\n* @example\n* // Validate that certain keys exist\n* vine.record(vine.string()).validateKeys((keys, field) => {\n* if (!keys.includes('id')) {\n* field.report('Record must contain an \"id\" key', 'missingId', field)\n* }\n* })\n*/\nconst validateKeysRule = createRule(function validateKeys(value, callback, field) {\n\tcallback(Object.keys(value), field);\n});\n//#endregion\n//#region src/schema/record/main.ts\n/**\n* VineRecord represents an object with dynamic keys where all values share the same schema.\n* Unlike VineObject which has predefined properties, records allow any string key\n* but enforce consistent value types across all keys.\n*\n* @template Schema - The schema type for validating all record values\n*\n* @example\n* const schema = vine.record(vine.number())\n*\n* const result = await vine.validate({\n* schema,\n* data: { a: 1, b: 2, c: 3 }\n* })\n*\n* @example\n* // Record with complex value types\n* const schema = vine.record(\n* vine.object({\n* name: vine.string(),\n* age: vine.number()\n* })\n* )\n*/\nvar VineRecord = class VineRecord extends BaseType {\n\t/**\n\t* Static collection of all available validation rules for records\n\t*/\n\tstatic rules = {\n\t\tmaxLength: maxLengthRule$1,\n\t\tminLength: minLengthRule$1,\n\t\tfixedLength: fixedLengthRule$1,\n\t\tvalidateKeys: validateKeysRule\n\t};\n\t/**\n\t* The schema used to validate each value in the record\n\t*/\n\t#schema;\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.object\";\n\t/**\n\t* Type checker function to determine if a value is an object.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is a non-null object and not an array\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value !== null && typeof value === \"object\" && !Array.isArray(value);\n\t};\n\t/**\n\t* Creates a new VineRecord instance with value schema and optional configuration.\n\t*\n\t* @param schema - The schema to validate each record value\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(schema, options, validations) {\n\t\tsuper(options, validations);\n\t\tthis.#schema = schema;\n\t}\n\t/**\n\t* Enforce a minimum number of properties on the record.\n\t*\n\t* @param expectedLength - The minimum required number of key-value pairs\n\t* @returns This record schema instance for method chaining\n\t*/\n\tminLength(expectedLength) {\n\t\treturn this.use(minLengthRule$1({ min: expectedLength }));\n\t}\n\t/**\n\t* Enforce a maximum number of properties on the record.\n\t*\n\t* @param expectedLength - The maximum allowed number of key-value pairs\n\t* @returns This record schema instance for method chaining\n\t*/\n\tmaxLength(expectedLength) {\n\t\treturn this.use(maxLengthRule$1({ max: expectedLength }));\n\t}\n\t/**\n\t* Enforce an exact number of properties on the record.\n\t*\n\t* @param expectedLength - The exact required number of key-value pairs\n\t* @returns This record schema instance for method chaining\n\t*/\n\tfixedLength(expectedLength) {\n\t\treturn this.use(fixedLengthRule$1({ size: expectedLength }));\n\t}\n\t/**\n\t* Register a custom callback to validate the record's keys.\n\t* Useful for enforcing key naming patterns or checking key existence.\n\t*\n\t* @param args - Arguments to pass to the validateKeys rule\n\t* @returns This record schema instance for method chaining\n\t*\n\t* @example\n\t* vine.record(vine.string()).validateKeys((keys, field) => {\n\t* if (!keys.every(key => /^[a-z_]+$/.test(key))) {\n\t* field.report('Keys must be lowercase with underscores', 'invalidKeys', field)\n\t* }\n\t* })\n\t*/\n\tvalidateKeys(...args) {\n\t\treturn this.use(validateKeysRule(...args));\n\t}\n\t/**\n\t* Clones the VineRecord schema including the value schema, options, and validations.\n\t*\n\t* @returns A cloned instance of this VineRecord schema\n\t*/\n\tclone() {\n\t\treturn new VineRecord(this.#schema.clone(), this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Converts the record schema to JSON Schema format.\n\t*\n\t* @returns JSON Schema representation of this record\n\t*/\n\ttoJSONSchema() {\n\t\tconst schema = {\n\t\t\ttype: \"object\",\n\t\t\tadditionalProperties: {}\n\t\t};\n\t\tschema.additionalProperties = this.#schema.toJSONSchema?.() ?? {};\n\t\tfor (const validation of this.validations) {\n\t\t\tif (!validation.rule.toJSONSchema) continue;\n\t\t\tvalidation.rule.toJSONSchema(schema, validation.options);\n\t\t}\n\t\treturn schema;\n\t}\n\t/**\n\t* Compiles the record schema to a compiler node for validation.\n\t*\n\t* @param propertyName - Name of the property being compiled\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled record node for validation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"record\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\tbail: this.options.bail,\n\t\t\tallowNull: this.options.allowNull,\n\t\t\tisOptional: this.options.isOptional,\n\t\t\teach: this.#schema[PARSE](\"*\", refs, options),\n\t\t\tparseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n\t\t\tvalidations: this.compileValidations(refs)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/string/rules.ts\n/**\n* Validates the value to be a string.\n* Reports an error if the value is not of type string.\n*\n* @example\n* vine.string()\n*/\nconst stringRule = createRule(function string(value, _, field) {\n\tif (!field.isDefined) return false;\n\tif (typeof value === \"string\") return true;\n\tfield.report(messages.string, \"string\", field);\n\treturn false;\n}, { toJSONSchema: (schema) => {\n\tschema.type = \"string\";\n} });\n/**\n* Validates the value to be a valid email address.\n* Supports various email validation options including domain-specific rules.\n*\n* @example\n* vine.string().email()\n* vine.string().email({ allow_ip_domain: true })\n*/\nconst emailRule = createRule(function email(value, options, field) {\n\tif (!helpers.isEmail(value, options)) field.report(messages.email, \"email\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.format = \"email\";\n} });\n/**\n* Validates the value to be a valid mobile phone number for specified locales.\n* Supports locale-specific mobile number formats and strict mode validation.\n*\n* @example\n* vine.string().mobile()\n* vine.string().mobile({ locale: ['en-US', 'en-GB'] })\n* vine.string().mobile({ locale: ['en-US'], strictMode: true })\n*/\nconst mobileRule = createRule(function mobile(value, options, field) {\n\tconst normalizedOptions = options && typeof options === \"function\" ? options(field) : options;\n\tconst locales = normalizedOptions?.locale || \"any\";\n\tif (!helpers.isMobilePhone(value, locales, normalizedOptions)) field.report(messages.mobile, \"mobile\", field);\n});\n/**\n* Validates the value to be a valid IP address (IPv4 or IPv6).\n* Optionally restricts to a specific IP version.\n*\n* @example\n* vine.string().ipAddress()\n* vine.string().ipAddress({ version: 4 })\n* vine.string().ipAddress({ version: 6 })\n*/\nconst ipAddressRule = createRule(function ipAddress(value, options, field) {\n\tif (!helpers.isIP(value, options?.version)) field.report(messages.ipAddress, \"ipAddress\", field);\n}, { toJSONSchema: (schema, options) => {\n\tschema.format = options?.version === 6 ? \"ipv6\" : \"ipv4\";\n} });\n/**\n* Validates the value against a custom regular expression pattern.\n* The value must match the provided regular expression.\n*\n* @example\n* vine.string().regex(/^[A-Z]{3}\\d{3}$/)\n* vine.string().regex(/^\\d{4}-\\d{2}-\\d{2}$/)\n*/\nconst regexRule = createRule(function regex(value, expression, field) {\n\tif (!expression.test(value)) field.report(messages.regex, \"regex\", field);\n}, { toJSONSchema: (schema, options) => {\n\tschema.pattern = options.source;\n} });\n/**\n* Validates the value to be a valid hexadecimal color code.\n* Accepts formats like #FFF, #FFFFFF, or #FFFFFFFF.\n*\n* @example\n* vine.string().hexCode()\n*/\nconst hexCodeRule = createRule(function hexCode(value, _, field) {\n\tif (!helpers.isHexColor(value)) field.report(messages.hexCode, \"hexCode\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.pattern = \"^#?([0-9a-f]{6}|[0-9a-f]{3}|[0-9a-f]{8})$\";\n} });\n/**\n* Validates the value to be a valid URL.\n* Supports various URL validation options including protocol requirements.\n*\n* @example\n* vine.string().url()\n* vine.string().url({ require_protocol: true })\n* vine.string().url({ protocols: ['https'] })\n*/\nconst urlRule = createRule(function url(value, options, field) {\n\tif (!helpers.isURL(value, options)) field.report(messages.url, \"url\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.format = \"uri\";\n} });\n/**\n* Validates the value to be an active URL by making an HTTP request.\n* Checks if the URL is reachable and returns a successful response.\n*\n* @example\n* vine.string().activeUrl()\n*/\nconst activeUrlRule = createRule(async function activeUrl(value, _, field) {\n\tif (!await helpers.isActiveURL(value)) field.report(messages.activeUrl, \"activeUrl\", field);\n});\n/**\n* Validates the value to contain only alphabetic characters.\n* Supports options to allow spaces, dashes, and underscores.\n*\n* @example\n* vine.string().alpha()\n* vine.string().alpha({ allowSpaces: true })\n* vine.string().alpha({ allowDashes: true, allowUnderscores: true })\n*/\nconst alphaRule = createRule(function alpha(value, options, field) {\n\tlet characterSet = \"a-zA-Z\";\n\tif (options) {\n\t\tif (options.allowSpaces) characterSet += \"\\\\s\";\n\t\tif (options.allowDashes) characterSet += \"-\";\n\t\tif (options.allowUnderscores) characterSet += \"_\";\n\t}\n\tif (!new RegExp(`^[${characterSet}]+$`).test(value)) field.report(messages.alpha, \"alpha\", field);\n}, { toJSONSchema: (schema, options) => {\n\tlet characterSet = \"a-zA-Z\";\n\tif (options) {\n\t\tif (options.allowSpaces) characterSet += \"\\\\s\";\n\t\tif (options.allowDashes) characterSet += \"-\";\n\t\tif (options.allowUnderscores) characterSet += \"_\";\n\t}\n\tschema.pattern = `^[${characterSet}]+$`;\n} });\n/**\n* Validates the value to contain only alphanumeric characters (letters and numbers).\n* Supports options to allow spaces, dashes, and underscores.\n*\n* @example\n* vine.string().alphaNumeric()\n* vine.string().alphaNumeric({ allowSpaces: true })\n* vine.string().alphaNumeric({ allowDashes: true, allowUnderscores: true })\n*/\nconst alphaNumericRule = createRule(function alphaNumeric(value, options, field) {\n\tlet characterSet = \"a-zA-Z0-9\";\n\tif (options) {\n\t\tif (options.allowSpaces) characterSet += \"\\\\s\";\n\t\tif (options.allowDashes) characterSet += \"-\";\n\t\tif (options.allowUnderscores) characterSet += \"_\";\n\t}\n\tif (!new RegExp(`^[${characterSet}]+$`).test(value)) field.report(messages.alphaNumeric, \"alphaNumeric\", field);\n}, { toJSONSchema: (schema, options) => {\n\tlet characterSet = \"a-zA-Z0-9\";\n\tif (options) {\n\t\tif (options.allowSpaces) characterSet += \"\\\\s\";\n\t\tif (options.allowDashes) characterSet += \"-\";\n\t\tif (options.allowUnderscores) characterSet += \"_\";\n\t}\n\tschema.pattern = `^[${characterSet}]+$`;\n} });\n/**\n* Enforces a minimum length on a string field.\n* The string must have at least the specified number of characters.\n*\n* @example\n* vine.string().minLength(5)\n*/\nconst minLengthRule = createRule(function minLength(value, options, field) {\n\tif (value.length < options.min) field.report(messages.minLength, \"minLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minLength = options.min;\n} });\n/**\n* Enforces a maximum length on a string field.\n* The string must not exceed the specified number of characters.\n*\n* @example\n* vine.string().maxLength(100)\n*/\nconst maxLengthRule = createRule(function maxLength(value, options, field) {\n\tif (value.length > options.max) field.report(messages.maxLength, \"maxLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.maxLength = options.max;\n} });\n/**\n* Enforces a fixed length on a string field.\n* The string must have exactly the specified number of characters.\n*\n* @example\n* vine.string().fixedLength(10)\n*/\nconst fixedLengthRule = createRule(function fixedLength(value, options, field) {\n\tif (value.length !== options.size) field.report(messages.fixedLength, \"fixedLength\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minLength = options.size;\n\tschema.maxLength = options.size;\n} });\n/**\n* Ensures the value ends with the specified substring.\n* The comparison is case-sensitive.\n*\n* @example\n* vine.string().endsWith('.com')\n* vine.string().endsWith('_test')\n*/\nconst endsWithRule = createRule(function endsWith(value, options, field) {\n\tif (!value.endsWith(options.substring)) field.report(messages.endsWith, \"endsWith\", field, options);\n});\n/**\n* Ensures the value starts with the specified substring.\n* The comparison is case-sensitive.\n*\n* @example\n* vine.string().startsWith('https://')\n* vine.string().startsWith('prefix_')\n*/\nconst startsWithRule = createRule(function startsWith(value, options, field) {\n\tif (!value.startsWith(options.substring)) field.report(messages.startsWith, \"startsWith\", field, options);\n});\n/**\n* Ensures the field's value under validation is the same as the other field's value.\n* Useful for confirmation fields like password verification.\n*\n* @example\n* vine.string().sameAs('password')\n* vine.string().sameAs('email')\n*/\nconst sameAsRule = createRule(function sameAs(value, options, field) {\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif (helpers.getNestedValue(options.otherField, field) !== value) {\n\t\tfield.report(messages.sameAs, \"sameAs\", field, options);\n\t\treturn;\n\t}\n});\n/**\n* Ensures the field's value under validation is different from another field's value.\n* Useful for ensuring new values differ from old ones (e.g., new password vs old password).\n*\n* @example\n* vine.string().notSameAs('oldPassword')\n* vine.string().notSameAs('previousEmail')\n*/\nconst notSameAsRule = createRule(function notSameAs(value, options, field) {\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif (helpers.getNestedValue(options.otherField, field) === value) {\n\t\tfield.report(messages.notSameAs, \"notSameAs\", field, options);\n\t\treturn;\n\t}\n});\n/**\n* Ensures the field under validation is confirmed by having another field with the same name\n* (with \"_confirmation\" suffix by default). The values of both fields must match.\n*\n* @example\n* vine.string().confirmed()\n* vine.string().confirmed({ as: 'passwordConfirm' })\n*/\nconst confirmedRule = createRule(function confirmed(value, options, field) {\n\tconst normalizedOptions = options ?? {};\n\tconst otherField = normalizedOptions.as ?? normalizedOptions.confirmationField ?? `${field.name}_confirmation`;\n\tconst input = field.parent[otherField];\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif (input !== value) {\n\t\tfield.report(messages.confirmed, \"confirmed\", {\n\t\t\t...field,\n\t\t\tname: otherField,\n\t\t\twildCardPath: `${field.wildCardPath.replace(String(field.name), otherField)}`,\n\t\t\tisDefined: true,\n\t\t\tisValid: false,\n\t\t\tvalue: input,\n\t\t\tgetFieldPath() {\n\t\t\t\treturn `${field.getFieldPath().replace(String(field.name), otherField)}`;\n\t\t\t}\n\t\t}, {\n\t\t\totherField,\n\t\t\toriginalField: field.name\n\t\t});\n\t\treturn;\n\t}\n});\n/**\n* Ensures the field's value under validation is one of the pre-defined choices.\n* Accepts a static array of choices or a function that returns choices dynamically.\n*\n* @example\n* vine.string().in(['red', 'green', 'blue'])\n* vine.string().in((field) => getUserRoles(field.meta.userId))\n*/\nconst inRule$1 = createRule(function inList(value, options, field) {\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif (!(typeof options.choices === \"function\" ? options.choices(field) : options.choices).includes(value)) {\n\t\tfield.report(messages.in, \"in\", field, options);\n\t\treturn;\n\t}\n});\n/**\n* Ensures the field's value under validation is not in the pre-defined list.\n* Accepts a static array or a function that returns disallowed values dynamically.\n*\n* @example\n* vine.string().notIn(['admin', 'root', 'system'])\n* vine.string().notIn((field) => getBlacklistedUsernames())\n*/\nconst notInRule = createRule(function notIn(value, options, field) {\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif ((typeof options.list === \"function\" ? options.list(field) : options.list).includes(value)) {\n\t\tfield.report(messages.notIn, \"notIn\", field, options);\n\t\treturn;\n\t}\n});\n/**\n* Validates the value to be a valid credit card number.\n* Optionally restricts validation to specific card providers.\n*\n* @example\n* vine.string().creditCard()\n* vine.string().creditCard({ provider: ['visa', 'mastercard'] })\n* vine.string().creditCard({ provider: ['amex', 'discover'] })\n*/\nconst creditCardRule = createRule(function creditCard(value, options, field) {\n\tconst providers = options ? typeof options === \"function\" ? options(field)?.provider || [] : options.provider : [];\n\tif (!providers.length) {\n\t\tif (!helpers.isCreditCard(value)) field.report(messages.creditCard, \"creditCard\", field, { providersList: \"credit\" });\n\t} else if (!providers.find((provider) => helpers.isCreditCard(value, { provider }))) field.report(messages.creditCard, \"creditCard\", field, {\n\t\tproviders,\n\t\tprovidersList: providers.join(\"/\")\n\t});\n});\n/**\n* Validates the value to be a valid passport number for specified countries.\n* Requires country codes to determine the expected passport format.\n*\n* @example\n* vine.string().passport({ countryCode: ['US', 'GB', 'CA'] })\n* vine.string().passport({ countryCode: ['FR', 'DE'] })\n*/\nconst passportRule = createRule(function passport(value, options, field) {\n\tconst countryCodes = typeof options === \"function\" ? options(field).countryCode : options.countryCode;\n\tif (!countryCodes.find((countryCode) => helpers.isPassportNumber(value, countryCode))) field.report(messages.passport, \"passport\", field, { countryCodes });\n});\n/**\n* Validates the value to be a valid VAT (Value Added Tax) number for specified countries.\n* Requires country codes to determine the expected VAT format.\n*\n* @example\n* vine.string().vat({ countryCode: ['FR', 'CH', 'VE'] })\n* vine.string().vat({ countryCode: ['GB', 'DE'] })\n*/\nconst vatRule = createRule(function vat(value, options, field) {\n\tconst countryCodes = typeof options === \"function\" ? options(field).countryCode : options.countryCode;\n\tif (!countryCodes.find((countryCode) => helpers.isVAT(value, countryCode))) field.report(messages.vat, \"vat\", field, { countryCodes });\n});\n/**\n* Validates the value to be a valid postal code.\n* Optionally restricts validation to specific country codes.\n*\n* @example\n* vine.string().postalCode()\n* vine.string().postalCode({ countryCode: ['US', 'GB', 'CA'] })\n* vine.string().postalCode({ countryCode: ['FR', 'DE'] })\n*/\nconst postalCodeRule = createRule(function postalCode(value, options, field) {\n\tconst countryCodes = options ? typeof options === \"function\" ? options(field)?.countryCode || [] : options.countryCode : [];\n\tif (!countryCodes.length) {\n\t\tif (!helpers.isPostalCode(value, \"any\")) field.report(messages.postalCode, \"postalCode\", field);\n\t} else if (!countryCodes.find((countryCode) => helpers.isPostalCode(value, countryCode))) field.report(messages.postalCode, \"postalCode\", field, { countryCodes });\n});\n/**\n* Validates the value to be a valid UUID (Universally Unique Identifier).\n* Optionally restricts validation to specific UUID versions.\n*\n* @example\n* vine.string().uuid()\n* vine.string().uuid({ version: [4] })\n* vine.string().uuid({ version: [1, 4, 5] })\n*/\nconst uuidRule = createRule(function uuid(value, options, field) {\n\tif (!options || !options.version) {\n\t\tif (!helpers.isUUID(value)) field.report(messages.uuid, \"uuid\", field);\n\t} else if (!options.version.find((version) => helpers.isUUID(value, version))) field.report(messages.uuid, \"uuid\", field, options);\n}, { toJSONSchema: (schema) => {\n\tschema.format = \"uuid\";\n} });\n/**\n* Validates the value to be a valid ULID (Universally Unique Lexicographically Sortable Identifier).\n* ULIDs are 26 characters long and sortable by time.\n*\n* @example\n* vine.string().ulid()\n*/\nconst ulidRule = createRule(function ulid(value, _, field) {\n\tif (!helpers.isULID(value)) field.report(messages.ulid, \"ulid\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.pattern = \"^[0-7][0-9A-HJKMNP-TV-Z]{25}$\";\n} });\n/**\n* Validates the value contains only ASCII characters (codes 0-127).\n* Rejects any characters outside the standard ASCII range.\n*\n* @example\n* vine.string().ascii()\n*/\nconst asciiRule = createRule(function ascii(value, _, field) {\n\tif (!helpers.isAscii(value)) field.report(messages.ascii, \"ascii\", field);\n});\n/**\n* Validates the value to be a valid IBAN (International Bank Account Number).\n* Validates format, check digits, and country-specific patterns.\n*\n* @example\n* vine.string().iban()\n*/\nconst ibanRule = createRule(function iban(value, _, field) {\n\tif (!helpers.isIBAN(value)) field.report(messages.iban, \"iban\", field);\n});\n/**\n* Validates the value to be a valid JWT (JSON Web Token).\n* Validates the token structure but does not verify the signature.\n*\n* @example\n* vine.string().jwt()\n*/\nconst jwtRule = createRule(function jwt(value, _, field) {\n\tif (!helpers.isJWT(value)) field.report(messages.jwt, \"jwt\", field);\n});\n/**\n* Ensures the value is a string containing valid latitude and longitude coordinates.\n* Accepts format like \"40.7128,-74.0060\" (latitude,longitude).\n*\n* @example\n* vine.string().coordinates()\n*/\nconst coordinatesRule = createRule(function coordinates(value, _, field) {\n\tif (!helpers.isLatLong(value)) field.report(messages.coordinates, \"coordinates\", field);\n});\n/**\n* Trims leading and trailing whitespace from the string value.\n* Mutates the field value by removing whitespace characters.\n*\n* @example\n* vine.string().trim()\n*/\nconst trimRule = createRule(function trim(value, _, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(value.trim(), field);\n});\n/**\n* Normalizes the email address by applying transformations.\n* Supports options like lowercasing and removing dots from Gmail addresses.\n*\n* @example\n* vine.string().email().normalizeEmail()\n* vine.string().email().normalizeEmail({ gmail_remove_dots: true })\n*/\nconst normalizeEmailRule = createRule(function normalizeEmail(value, options, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(normalizeEmailValue.default(value, options), field);\n});\n/**\n* Converts the field value to UPPERCASE using locale-aware conversion.\n* Mutates the field value to uppercase.\n*\n* @example\n* vine.string().toUpperCase()\n* vine.string().toUpperCase('tr-TR')\n*/\nconst toUpperCaseRule = createRule(function toUpperCase(value, locales, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(value.toLocaleUpperCase(locales), field);\n});\n/**\n* Converts the field value to lowercase using locale-aware conversion.\n* Mutates the field value to lowercase.\n*\n* @example\n* vine.string().toLowerCase()\n* vine.string().toLowerCase('tr-TR')\n*/\nconst toLowerCaseRule = createRule(function toLowerCase(value, locales, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(value.toLocaleLowerCase(locales), field);\n});\n/**\n* Converts the field value to camelCase.\n* Transforms strings like \"hello_world\" to \"helloWorld\".\n*\n* @example\n* vine.string().toCamelCase()\n*/\nconst toCamelCaseRule = createRule(function toCamelCase(value, _, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(camelcase(value), field);\n});\n/**\n* Escapes HTML entities in the string to prevent XSS attacks.\n* Converts characters like <, >, &, \", ' to their HTML entity equivalents.\n*\n* @example\n* vine.string().escape()\n*/\nconst escapeRule = createRule(function escape(value, _, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(escapeValue.default(value), field);\n});\n/**\n* Normalizes a URL by applying standardization rules.\n* Supports options like removing trailing slashes, sorting query parameters, and stripping default ports.\n*\n* @example\n* vine.string().url().normalizeUrl()\n* vine.string().url().normalizeUrl({ stripWWW: true })\n* vine.string().url().normalizeUrl({ sortQueryParameters: true })\n*/\nconst normalizeUrlRule = createRule(function normalizeUrlValue(value, options, field) {\n\tif (!field.isValid) return;\n\tfield.mutate(normalizeUrl(value, options), field);\n});\n//#endregion\n//#region src/schema/string/main.ts\n/**\n* VineString represents a string value in the validation schema.\n* It provides comprehensive string validation with built-in rules\n* for common patterns like email, URL, UUID, and more.\n*\n* @example\n* const schema = vine.string()\n* .email()\n* .minLength(5)\n* .maxLength(100)\n*\n* const result = await vine.validate({\n* schema,\n* data: 'user@example.com'\n* })\n*/\nvar VineString = class VineString extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for strings\n\t*/\n\tstatic rules = {\n\t\tin: inRule$1,\n\t\tjwt: jwtRule,\n\t\turl: urlRule,\n\t\tiban: ibanRule,\n\t\tuuid: uuidRule,\n\t\tulid: ulidRule,\n\t\ttrim: trimRule,\n\t\temail: emailRule,\n\t\talpha: alphaRule,\n\t\tascii: asciiRule,\n\t\tnotIn: notInRule,\n\t\tregex: regexRule,\n\t\tescape: escapeRule,\n\t\tsameAs: sameAsRule,\n\t\tmobile: mobileRule,\n\t\tstring: stringRule,\n\t\thexCode: hexCodeRule,\n\t\tpassport: passportRule,\n\t\tendsWith: endsWithRule,\n\t\tconfirmed: confirmedRule,\n\t\tactiveUrl: activeUrlRule,\n\t\tminLength: minLengthRule,\n\t\tnotSameAs: notSameAsRule,\n\t\tmaxLength: maxLengthRule,\n\t\tvat: vatRule,\n\t\tipAddress: ipAddressRule,\n\t\tcreditCard: creditCardRule,\n\t\tpostalCode: postalCodeRule,\n\t\tstartsWith: startsWithRule,\n\t\ttoUpperCase: toUpperCaseRule,\n\t\ttoLowerCase: toLowerCaseRule,\n\t\ttoCamelCase: toCamelCaseRule,\n\t\tfixedLength: fixedLengthRule,\n\t\tcoordinates: coordinatesRule,\n\t\tnormalizeUrl: normalizeUrlRule,\n\t\talphaNumeric: alphaNumericRule,\n\t\tnormalizeEmail: normalizeEmailRule\n\t};\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"string\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.string\";\n\t/**\n\t* Type checker function to determine if a value is a string.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value is a string\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn typeof value === \"string\";\n\t};\n\t/**\n\t* Creates a new VineString instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || []);\n\t\tthis.dataTypeValidator = stringRule();\n\t}\n\t/**\n\t* Validates the value to be a valid URL.\n\t*\n\t* @param args - Optional URL validation options\n\t* @returns This string schema instance for method chaining\n\t*/\n\turl(...args) {\n\t\treturn this.use(urlRule(...args));\n\t}\n\t/**\n\t* Validates the value to be an active URL by making an HTTP request.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*/\n\tactiveUrl() {\n\t\treturn this.use(activeUrlRule());\n\t}\n\t/**\n\t* Validates the value to be a valid email address.\n\t*\n\t* @param args - Optional email validation options\n\t* @returns This string schema instance for method chaining\n\t*/\n\temail(...args) {\n\t\treturn this.use(emailRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid mobile phone number for specified locales.\n\t*\n\t* @param options - Optional mobile validation options including locale and strictMode\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().mobile({ locale: ['en-US', 'en-GB'] })\n\t*/\n\tmobile(...args) {\n\t\treturn this.use(mobileRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid VAT (Value Added Tax) number for specified countries.\n\t*\n\t* @param options - VAT validation options including country codes\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().vat({ countryCode: ['FR', 'CH', 'VE'] })\n\t*/\n\tvat(...args) {\n\t\treturn this.use(vatRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid IP address (IPv4 or IPv6).\n\t*\n\t* @param version - Optional IP version (4 for IPv4, 6 for IPv6). Omit to allow both.\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().ipAddress() // Allows IPv4 and IPv6\n\t* vine.string().ipAddress(4) // Only IPv4\n\t* vine.string().ipAddress(6) // Only IPv6\n\t*/\n\tipAddress(version) {\n\t\treturn this.use(ipAddressRule(version ? { version } : void 0));\n\t}\n\t/**\n\t* Validates the value to be a valid hexadecimal color code.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().hexCode() // Accepts #FFF, #FFFFFF, etc.\n\t*/\n\thexCode() {\n\t\treturn this.use(hexCodeRule());\n\t}\n\t/**\n\t* Validates the value against a custom regular expression pattern.\n\t*\n\t* @param expression - The regular expression to match against\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().regex(/^[A-Z]{3}\\d{3}$/) // Matches ABC123 pattern\n\t*/\n\tregex(expression) {\n\t\treturn this.use(regexRule(expression));\n\t}\n\t/**\n\t* Validates the value to contain only alphabetic characters.\n\t*\n\t* @param options - Options to allow spaces, underscores, or dashes\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().alpha()\n\t* vine.string().alpha({ allowSpaces: true })\n\t* vine.string().alpha({ allowSpaces: true, allowDashes: true })\n\t*/\n\talpha(options) {\n\t\treturn this.use(alphaRule(options));\n\t}\n\t/**\n\t* Validates the value to contain only alphanumeric characters (letters and numbers).\n\t*\n\t* @param options - Options to allow spaces, underscores, or dashes\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().alphaNumeric()\n\t* vine.string().alphaNumeric({ allowSpaces: true, allowUnderscores: true })\n\t*/\n\talphaNumeric(options) {\n\t\treturn this.use(alphaNumericRule(options));\n\t}\n\t/**\n\t* Enforce a minimum length on a string field.\n\t*\n\t* @param expectedLength - The minimum required length\n\t* @returns This string schema instance for method chaining\n\t*/\n\tminLength(expectedLength) {\n\t\treturn this.use(minLengthRule({ min: expectedLength }));\n\t}\n\t/**\n\t* Enforce a maximum length on a string field.\n\t*\n\t* @param expectedLength - The maximum allowed length\n\t* @returns This string schema instance for method chaining\n\t*/\n\tmaxLength(expectedLength) {\n\t\treturn this.use(maxLengthRule({ max: expectedLength }));\n\t}\n\t/**\n\t* Enforce a fixed length on a string field.\n\t*\n\t* @param expectedLength - The exact required length\n\t* @returns This string schema instance for method chaining\n\t*/\n\tfixedLength(expectedLength) {\n\t\treturn this.use(fixedLengthRule({ size: expectedLength }));\n\t}\n\t/**\n\t* Ensures the field is confirmed by having another field with \"_confirmation\" suffix\n\t* (or a custom suffix). Useful for password confirmation fields.\n\t*\n\t* @param options - Optional configuration for the confirmation field name\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* // Validates that \"password_confirmation\" field matches \"password\"\n\t* vine.string().confirmed()\n\t*\n\t* @example\n\t* // Custom confirmation field name\n\t* vine.string().confirmed({ as: 'passwordConfirm' })\n\t*/\n\tconfirmed(options) {\n\t\treturn this.use(confirmedRule(options));\n\t}\n\t/**\n\t* Trims leading and trailing whitespace from the string value.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().trim() // \" hello \" becomes \"hello\"\n\t*/\n\ttrim() {\n\t\treturn this.use(trimRule());\n\t}\n\t/**\n\t* Normalizes the email address by applying transformations like\n\t* lowercasing and removing dots from Gmail addresses.\n\t*\n\t* @param options - Email normalization options\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().email().normalizeEmail({ gmail_remove_dots: true })\n\t*/\n\tnormalizeEmail(options) {\n\t\treturn this.use(normalizeEmailRule(options));\n\t}\n\t/**\n\t* Converts the field value to UPPERCASE.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().toUpperCase() // \"hello\" becomes \"HELLO\"\n\t*/\n\ttoUpperCase() {\n\t\treturn this.use(toUpperCaseRule());\n\t}\n\t/**\n\t* Converts the field value to lowercase.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().toLowerCase() // \"HELLO\" becomes \"hello\"\n\t*/\n\ttoLowerCase() {\n\t\treturn this.use(toLowerCaseRule());\n\t}\n\t/**\n\t* Converts the field value to camelCase.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().toCamelCase() // \"hello_world\" becomes \"helloWorld\"\n\t*/\n\ttoCamelCase() {\n\t\treturn this.use(toCamelCaseRule());\n\t}\n\t/**\n\t* Escapes HTML entities in the string to prevent XSS attacks.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().escape() // \"<script>\" becomes \"<script>\"\n\t*/\n\tescape() {\n\t\treturn this.use(escapeRule());\n\t}\n\t/**\n\t* Normalizes a URL by applying standardization rules like removing trailing slashes,\n\t* sorting query parameters, and stripping default ports.\n\t*\n\t* @param options - URL normalization options\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().url().normalizeUrl({ stripWWW: true })\n\t*/\n\tnormalizeUrl(...args) {\n\t\treturn this.use(normalizeUrlRule(...args));\n\t}\n\t/**\n\t* Ensures the value starts with a specified substring.\n\t*\n\t* @param substring - The required starting substring\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().startsWith('https://')\n\t*/\n\tstartsWith(substring) {\n\t\treturn this.use(startsWithRule({ substring }));\n\t}\n\t/**\n\t* Ensures the value ends with a specified substring.\n\t*\n\t* @param substring - The required ending substring\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().endsWith('.com')\n\t*/\n\tendsWith(substring) {\n\t\treturn this.use(endsWithRule({ substring }));\n\t}\n\t/**\n\t* Ensures the value matches the value of another field in the data.\n\t*\n\t* @param otherField - The name of the field to compare with\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().sameAs('password')\n\t*/\n\tsameAs(otherField) {\n\t\treturn this.use(sameAsRule({ otherField }));\n\t}\n\t/**\n\t* Ensures the value does not match the value of another field in the data.\n\t*\n\t* @param otherField - The name of the field to compare with\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().notSameAs('oldPassword')\n\t*/\n\tnotSameAs(otherField) {\n\t\treturn this.use(notSameAsRule({ otherField }));\n\t}\n\t/**\n\t* Ensures the field's value is one of the predefined choices.\n\t*\n\t* @param choices - Array of allowed values or function returning allowed values\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().in(['red', 'green', 'blue'])\n\t*\n\t* @example\n\t* // Dynamic choices based on metadata\n\t* vine.string().in((field) => getUserRoles(field.meta.userId))\n\t*/\n\tin(choices) {\n\t\treturn this.use(inRule$1({ choices }));\n\t}\n\t/**\n\t* Ensures the field's value is not in the predefined list.\n\t*\n\t* @param list - Array of disallowed values or function returning disallowed values\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().notIn(['admin', 'root', 'system'])\n\t*/\n\tnotIn(list) {\n\t\treturn this.use(notInRule({ list }));\n\t}\n\t/**\n\t* Validates the value to be a valid credit card number for specified providers.\n\t*\n\t* @param options - Credit card validation options including accepted providers\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().creditCard({ provider: ['visa', 'mastercard'] })\n\t*/\n\tcreditCard(...args) {\n\t\treturn this.use(creditCardRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid passport number for specified countries.\n\t*\n\t* @param options - Passport validation options including country codes\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().passport({ countryCode: ['US', 'GB', 'CA'] })\n\t*/\n\tpassport(...args) {\n\t\treturn this.use(passportRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid postal code for specified countries.\n\t*\n\t* @param options - Postal code validation options including country codes\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().postalCode({ countryCode: ['US', 'GB', 'CA'] })\n\t*/\n\tpostalCode(...args) {\n\t\treturn this.use(postalCodeRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid UUID (Universally Unique Identifier).\n\t*\n\t* @param options - Optional UUID validation options including version\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().uuid()\n\t* vine.string().uuid({ version: 4 })\n\t*/\n\tuuid(...args) {\n\t\treturn this.use(uuidRule(...args));\n\t}\n\t/**\n\t* Validates the value to be a valid ULID (Universally Unique Lexicographically Sortable Identifier).\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().ulid()\n\t*/\n\tulid() {\n\t\treturn this.use(ulidRule());\n\t}\n\t/**\n\t* Validates the value contains only ASCII characters.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().ascii()\n\t*/\n\tascii() {\n\t\treturn this.use(asciiRule());\n\t}\n\t/**\n\t* Validates the value to be a valid IBAN (International Bank Account Number).\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().iban()\n\t*/\n\tiban() {\n\t\treturn this.use(ibanRule());\n\t}\n\t/**\n\t* Validates the value to be a valid JWT (JSON Web Token).\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().jwt()\n\t*/\n\tjwt() {\n\t\treturn this.use(jwtRule());\n\t}\n\t/**\n\t* Validates the value to be a string containing latitude and longitude coordinates.\n\t*\n\t* @returns This string schema instance for method chaining\n\t*\n\t* @example\n\t* vine.string().coordinates() // Accepts \"40.7128,-74.0060\"\n\t*/\n\tcoordinates() {\n\t\treturn this.use(coordinatesRule());\n\t}\n\t/**\n\t* Clones the VineString schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineString schema\n\t*/\n\tclone() {\n\t\treturn new VineString(this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/number/rules.ts\n/**\n* Enforces the value to be a number or a string representation of a number.\n* Converts string numbers to actual numbers and validates against NaN and Infinity.\n*\n* @example\n* vine.number()\n* vine.number({ strict: true })\n*/\nconst numberRule = createRule(function number(value, options, field) {\n\tif (!field.isDefined) return false;\n\tconst valueAsNumber = options.strict ? value : helpers.asNumber(value);\n\tif (typeof valueAsNumber !== \"number\" || Number.isNaN(valueAsNumber) || valueAsNumber === Number.POSITIVE_INFINITY || valueAsNumber === Number.NEGATIVE_INFINITY) {\n\t\tfield.report(messages.number, \"number\", field);\n\t\treturn false;\n\t}\n\tfield.mutate(valueAsNumber, field);\n\treturn true;\n}, { toJSONSchema: (schema) => {\n\tschema.type = \"number\";\n} });\n/**\n* Enforces a minimum value on a number field.\n* The number must be greater than or equal to the specified minimum.\n*\n* @example\n* vine.number().min(0)\n* vine.number().min(18)\n*/\nconst minRule = createRule(function min(value, options, field) {\n\tif (value < options.min) field.report(messages.min, \"min\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minimum = options.min;\n} });\n/**\n* Enforces a maximum value on a number field.\n* The number must be less than or equal to the specified maximum.\n*\n* @example\n* vine.number().max(100)\n* vine.number().max(65)\n*/\nconst maxRule = createRule(function max(value, options, field) {\n\tif (value > options.max) field.report(messages.max, \"max\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.maximum = options.max;\n} });\n/**\n* Enforces the value to be within a range of minimum and maximum values.\n* The number must be between min and max (inclusive).\n*\n* @example\n* vine.number().range([1, 100])\n* vine.number().range([18, 65])\n*/\nconst rangeRule = createRule(function range(value, options, field) {\n\tif (value < options.min || value > options.max) field.report(messages.range, \"range\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.minimum = options.min;\n\tschema.maximum = options.max;\n} });\n/**\n* Enforces the value to be a positive number (greater than 0).\n* Zero is considered neutral and will fail this validation.\n*\n* @example\n* vine.number().positive()\n*/\nconst positiveRule = createRule(function positive(value, _, field) {\n\tif (value > 0) return;\n\tfield.report(messages.positive, \"positive\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.minimum = 0;\n} });\n/**\n* Enforces the value to be a negative number (less than 0).\n* Zero is considered neutral and will fail this validation.\n*\n* @example\n* vine.number().negative()\n*/\nconst negativeRule = createRule(function negative(value, _, field) {\n\tif (value < 0) return;\n\tfield.report(messages.negative, \"negative\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.exclusiveMaximum = 0;\n} });\n/**\n* Enforces the value to be a non-negative number (greater than or equal to 0).\n* Accepts zero and all positive numbers.\n*\n* @example\n* vine.number().nonNegative()\n*/\nconst nonNegativeRule = createRule(function nonNegative(value, _, field) {\n\tif (value >= 0) return;\n\tfield.report(messages.nonNegative, \"nonNegative\", field);\n});\n/**\n* Enforces the value to be a non-positive number (less than or equal to 0).\n* Accepts zero and all negative numbers.\n*\n* @example\n* vine.number().nonPositive()\n*/\nconst nonPositiveRule = createRule(function nonPositive(value, _, field) {\n\tif (value <= 0) return;\n\tfield.report(messages.nonPositive, \"nonPositive\", field);\n});\n/**\n* Enforces the value to have a fixed number or range of decimal places.\n* Validates the precision of the decimal number.\n*\n* @example\n* vine.number().decimal(2)\n* vine.number().decimal([0, 2])\n*/\nconst decimalRule = createRule(function decimal(value, options, field) {\n\tif (!helpers.isDecimal(String(value), {\n\t\tforce_decimal: options.range[0] !== 0,\n\t\tdecimal_digits: options.range.join(\",\")\n\t})) field.report(messages.decimal, \"decimal\", field, { digits: options.range.join(\"-\") });\n});\n/**\n* Enforces the value to be an integer without decimal places.\n* The number must be a whole number.\n*\n* @example\n* vine.number().withoutDecimals()\n*/\nconst withoutDecimalsRule = createRule(function withoutDecimals(value, _, field) {\n\tif (!Number.isInteger(value)) field.report(messages.withoutDecimals, \"withoutDecimals\", field);\n}, { toJSONSchema: (schema) => {\n\tschema.type = \"integer\";\n} });\n/**\n* Enforces the value to be one of the specified allowed values.\n* The number must match one of the values in the provided list.\n*\n* @example\n* vine.number().in([1, 2, 3, 5, 8, 13])\n* vine.number().in([10, 20, 30])\n*/\nconst inRule = createRule(function inValues(value, options, field) {\n\tif (!options.values.includes(value)) field.report(messages[\"number.in\"], \"in\", field, options);\n}, { toJSONSchema: (schema, options) => {\n\tschema.enum = options.values;\n} });\n//#endregion\n//#region src/schema/number/main.ts\n/**\n* VineNumber represents a numeric value in the validation schema.\n* It accepts both string and number inputs and converts them to numbers,\n* with comprehensive validation for ranges, decimals, and sign constraints.\n*\n* @example\n* const schema = vine.number()\n* .min(0)\n* .max(100)\n* .decimal([0, 2])\n*\n* const result = await vine.validate({\n* schema,\n* data: \"42.5\"\n* })\n*/\nvar VineNumber = class VineNumber extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for numbers\n\t*/\n\tstatic rules = {\n\t\tin: inRule,\n\t\tmax: maxRule,\n\t\tmin: minRule,\n\t\trange: rangeRule,\n\t\tnumber: numberRule,\n\t\tdecimal: decimalRule,\n\t\tnegative: negativeRule,\n\t\tpositive: positiveRule,\n\t\tnonNegativeRule,\n\t\tnonPositiveRule,\n\t\twithoutDecimals: withoutDecimalsRule\n\t};\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"number\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.number\";\n\t/**\n\t* Type checker function to determine if a value can be converted to a number.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value can be converted to a valid number\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\tconst valueAsNumber = helpers.asNumber(value);\n\t\treturn !Number.isNaN(valueAsNumber);\n\t};\n\t/**\n\t* Creates a new VineNumber instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode, nullability and strict mode\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || []);\n\t\tthis.dataTypeValidator = numberRule(options || {});\n\t}\n\t/**\n\t* Enforce a minimum value for the number input.\n\t*\n\t* @param value - The minimum allowed value\n\t* @returns This number schema instance for method chaining\n\t*/\n\tmin(value) {\n\t\treturn this.use(minRule({ min: value }));\n\t}\n\t/**\n\t* Enforce a maximum value for the number input.\n\t*\n\t* @param value - The maximum allowed value\n\t* @returns This number schema instance for method chaining\n\t*/\n\tmax(value) {\n\t\treturn this.use(maxRule({ max: value }));\n\t}\n\t/**\n\t* Enforce value to be within the range of minimum and maximum values.\n\t*\n\t* @param value - Tuple containing [min, max] values\n\t* @returns This number schema instance for method chaining\n\t*/\n\trange(value) {\n\t\treturn this.use(rangeRule({\n\t\t\tmin: value[0],\n\t\t\tmax: value[1]\n\t\t}));\n\t}\n\t/**\n\t* Enforces the value to be a positive number (greater than 0).\n\t*\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().positive() // Accepts 1, 100.5, etc. Rejects 0, -1\n\t*/\n\tpositive() {\n\t\treturn this.use(positiveRule());\n\t}\n\t/**\n\t* Enforces the value to be a negative number (less than 0).\n\t*\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().negative() // Accepts -1, -100.5, etc. Rejects 0, 1\n\t*/\n\tnegative() {\n\t\treturn this.use(negativeRule());\n\t}\n\t/**\n\t* Enforces the value to be a non-negative number (greater than or equal to 0).\n\t*\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().nonNegative() // Accepts 0, 1, 100.5, etc. Rejects -1\n\t*/\n\tnonNegative() {\n\t\treturn this.use(nonNegativeRule());\n\t}\n\t/**\n\t* Enforces the value to be a non-positive number (less than or equal to 0).\n\t*\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().nonPositive() // Accepts 0, -1, -100.5, etc. Rejects 1\n\t*/\n\tnonPositive() {\n\t\treturn this.use(nonPositiveRule());\n\t}\n\t/**\n\t* Enforces the value to have a fixed number or range of decimal places.\n\t*\n\t* @param range - Exact number of decimal places or [min, max] range\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().decimal(2) // Accepts 1.23, rejects 1.2 or 1.234\n\t* vine.number().decimal([0, 2]) // Accepts 1, 1.2, 1.23\n\t*/\n\tdecimal(range) {\n\t\treturn this.use(decimalRule({ range: Array.isArray(range) ? range : [range] }));\n\t}\n\t/**\n\t* Enforces the value to be an integer without decimal places.\n\t*\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().withoutDecimals() // Accepts 42, -10, rejects 42.5\n\t*/\n\twithoutDecimals() {\n\t\treturn this.use(withoutDecimalsRule());\n\t}\n\t/**\n\t* Clones the VineNumber schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineNumber schema\n\t*/\n\tclone() {\n\t\treturn new VineNumber(this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Enforces the value to be one of the specified allowed values.\n\t*\n\t* @param values - Array of allowed numeric values\n\t* @returns This number schema instance for method chaining\n\t*\n\t* @example\n\t* vine.number().in([1, 2, 3, 5, 8, 13]) // Only Fibonacci numbers allowed\n\t*/\n\tin(values) {\n\t\treturn this.use(inRule({ values }));\n\t}\n};\n//#endregion\n//#region src/schema/boolean/rules.ts\n/**\n* Validates the value to be a boolean\n*/\nconst booleanRule = createRule(function boolean(value, options, field) {\n\tconst valueAsBoolean = options.strict === true ? value : helpers.asBoolean(value);\n\tif (typeof valueAsBoolean !== \"boolean\") {\n\t\tfield.report(messages.boolean, \"boolean\", field);\n\t\treturn;\n\t}\n\tfield.mutate(valueAsBoolean, field);\n}, { toJSONSchema: (schema, { strict = false }) => {\n\tif (strict) schema.type = \"boolean\";\n\telse schema.enum = [...BOOLEAN_POSITIVES, ...BOOLEAN_NEGATIVES];\n} });\n//#endregion\n//#region src/schema/boolean/main.ts\n/**\n* VineBoolean represents a boolean value in the validation schema.\n* It accepts boolean, string, and number inputs and converts them to booleans,\n* with support for both strict and loose type checking.\n*\n* @example\n* const schema = vine.boolean()\n*\n* const result = await vine.validate({\n* schema,\n* data: \"true\" // Will be converted to true\n* })\n*/\nvar VineBoolean = class VineBoolean extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for booleans\n\t*/\n\tstatic rules = { boolean: booleanRule };\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"boolean\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.boolean\";\n\t/**\n\t* Type checker function to determine if a value can be converted to a boolean.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value can be converted to a boolean\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn typeof (this.options.strict === true ? value : helpers.asBoolean(value)) === \"boolean\";\n\t};\n\t/**\n\t* Creates a new VineBoolean instance with optional configuration.\n\t*\n\t* @param options - Field options like bail mode, nullability and strict mode\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || [booleanRule(options || {})]);\n\t}\n\t/**\n\t* Clones the VineBoolean schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineBoolean schema\n\t*/\n\tclone() {\n\t\treturn new VineBoolean(this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/literal/rules.ts\n/**\n* Validates that two values are equal, considering HTML form serialization behavior.\n* Compares values using normalized comparison that handles type coercion.\n*\n* @example\n* vine.literal('admin')\n* vine.literal(42)\n* vine.literal(true)\n*/\nconst equalsRule = createRule(function equals(value, options, field) {\n\tconst comparedValue = helpers.compareValues(value, options.expectedValue);\n\t/**\n\t* Performing validation and reporting error\n\t*/\n\tif (!comparedValue.isEqual) {\n\t\tfield.report(messages.literal, \"literal\", field, options);\n\t\treturn;\n\t}\n\t/**\n\t* Mutating input with normalized value\n\t*/\n\tfield.mutate(comparedValue.casted, field);\n});\n//#endregion\n//#region src/schema/literal/main.ts\n/**\n* VineLiteral represents a schema type that matches an exact literal value.\n* It validates that the input exactly matches the specified literal value,\n* supporting string, number, boolean, and null literals.\n*\n* @example\n* const schema = vine.literal('admin')\n*\n* const result = await vine.validate({\n* schema,\n* data: 'admin'\n* })\n*/\nvar VineLiteral = class VineLiteral extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for literals\n\t*/\n\tstatic rules = { equals: equalsRule };\n\t/**\n\t* The literal value that must be matched\n\t*/\n\t#value;\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"literal\";\n\t/**\n\t* Type checker function to determine if a value matches the literal value.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t* @returns True if the value matches the literal value\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn helpers.compareValues(value, this.#value).isEqual;\n\t};\n\t/**\n\t* Creates a new VineLiteral instance with the specified literal value.\n\t*\n\t* @param value - The exact literal value to match\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(value, options, validations) {\n\t\tsuper(options, validations || [equalsRule({ expectedValue: value })]);\n\t\tthis.#value = value;\n\t\tthis[UNIQUE_NAME] = `vine.literal.${this.#value}`;\n\t}\n\t/**\n\t* Clones the VineLiteral schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineLiteral schema\n\t*/\n\tclone() {\n\t\treturn new VineLiteral(this.#value, this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Converts the schema to JSON Schema format.\n\t* Generates an enum constraint with the literal value.\n\t*/\n\ttoJSONSchema() {\n\t\tconst schema = super.toJSONSchema();\n\t\tif (typeof this.#value === \"string\") {\n\t\t\tschema.type = \"string\";\n\t\t\tschema.enum = [this.#value];\n\t\t}\n\t\tif (typeof this.#value === \"boolean\") {\n\t\t\tschema.type = \"boolean\";\n\t\t\tschema.enum = [this.#value];\n\t\t}\n\t\tif (typeof this.#value === \"number\") {\n\t\t\tschema.type = \"number\";\n\t\t\tschema.enum = [this.#value];\n\t\t}\n\t\treturn schema;\n\t}\n};\n//#endregion\n//#region src/schema/accepted/rules.ts\n/**\n* Array of accepted values for checkbox/acceptance validation\n*/\nconst ACCEPTED_VALUES = [\n\t\"on\",\n\t\"1\",\n\t\"yes\",\n\t\"true\",\n\ttrue,\n\t1\n];\n/**\n* Validates that the value is present and has one of the accepted values.\n* This rule is used for checkbox and acceptance field validation.\n*\n* Accepted values are:\n* - \"on\" (HTML checkbox default when checked)\n* - \"1\" (string)\n* - \"yes\" (string)\n* - \"true\" (string)\n* - true (boolean)\n* - 1 (number)\n*\n* @example\n* vine.accepted()\n*\n* @example\n* vine.string().use(acceptedRule())\n*/\nconst acceptedRule = createRule(function accepted(value, _, field) {\n\tif (!ACCEPTED_VALUES.includes(value)) field.report(messages.accepted, \"accepted\", field);\n});\n//#endregion\n//#region src/schema/accepted/main.ts\n/**\n* VineAccepted represents a checkbox or acceptance field that must be\n* checked or have an accepted value. This is commonly used for terms\n* of service acceptance, privacy policy agreements, etc.\n*\n* Accepted values are: 'on', '1', 'yes', 'true', true, or 1\n* The output is always normalized to the boolean value `true`.\n*\n* @example\n* const schema = vine.object({\n* termsAccepted: vine.accepted(),\n* newsletter: vine.accepted().optional()\n* })\n*\n* @example\n* // HTML form checkbox\n* // <input type=\"checkbox\" name=\"terms\" />\n* // When checked, sends \"on\" which is accepted\n*/\nvar VineAccepted = class VineAccepted extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for accepted fields\n\t*/\n\tstatic rules = { accepted: acceptedRule };\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"checkbox\";\n\t/**\n\t* Creates a new VineAccepted instance.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || [acceptedRule()]);\n\t}\n\t/**\n\t* Clones the VineAccepted schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineAccepted schema\n\t*/\n\tclone() {\n\t\treturn new VineAccepted(this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/object/group.ts\n/**\n* ObjectGroup represents a collection of conditional property sets that can be\n* merged into an object based on runtime conditions. This enables dynamic schema\n* composition where different properties are validated based on conditional logic.\n*\n* @template Conditional - The type of conditional used in this group\n*\n* @example\n* const schema = vine.object({\n* type: vine.string()\n* }).merge(\n* vine.group([\n* vine.group.if((value) => value.type === 'user', {\n* username: vine.string()\n* }),\n* vine.group.if((value) => value.type === 'admin', {\n* permissions: vine.array(vine.string())\n* })\n* ])\n* )\n*/\nvar ObjectGroup = class ObjectGroup {\n\t/**\n\t* Array of conditional property sets to evaluate\n\t*/\n\t#conditionals;\n\t/**\n\t* Callback invoked when no conditional matches. Defaults to reporting an error.\n\t*/\n\t#otherwiseCallback = (_, field) => {\n\t\tfield.report(messages.unionGroup, \"unionGroup\", field);\n\t};\n\t/**\n\t* Creates a new ObjectGroup with the specified conditionals.\n\t*\n\t* @param conditionals - Array of conditional property sets to evaluate\n\t*/\n\tconstructor(conditionals) {\n\t\tthis.#conditionals = conditionals;\n\t}\n\t/**\n\t* Converts the object group to JSON Schema format using anyOf.\n\t*\n\t* @returns JSON Schema representation of this group\n\t*/\n\ttoJSONSchema() {\n\t\treturn { anyOf: this.#conditionals.map((conditional) => conditional.toJSONSchema()) };\n\t}\n\t/**\n\t* Clones the ObjectGroup including all conditionals and the otherwise callback.\n\t*\n\t* @returns A cloned instance of this ObjectGroup\n\t*/\n\tclone() {\n\t\tconst cloned = new ObjectGroup(this.#conditionals);\n\t\tcloned.otherwise(this.#otherwiseCallback);\n\t\treturn cloned;\n\t}\n\t/**\n\t* Defines a fallback callback to invoke when none of the group conditions match.\n\t* By default, this reports a validation error. Use this method to customize\n\t* the error handling behavior.\n\t*\n\t* @param callback - Callback to invoke when no condition matches\n\t* @returns This group instance for method chaining\n\t*\n\t* @example\n\t* vine.group([\n\t* vine.group.if((value) => value.type === 'user', { username: vine.string() }),\n\t* vine.group.if((value) => value.type === 'admin', { role: vine.string() })\n\t* ]).otherwise((value, field) => {\n\t* field.report('Invalid type specified', 'invalidType', field)\n\t* })\n\t*/\n\totherwise(callback) {\n\t\tthis.#otherwiseCallback = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Compiles the group to a compiler node for validation.\n\t*\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled object group node\n\t*/\n\t[PARSE](refs, options) {\n\t\treturn {\n\t\t\ttype: \"group\",\n\t\t\telseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n\t\t\tconditions: this.#conditionals.map((conditional) => conditional[PARSE](refs, options))\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/object/conditional.ts\n/**\n* GroupConditional represents a subset of object properties that are conditionally\n* validated and merged based on a runtime condition. This allows schemas to have\n* different required fields depending on the values in the object being validated.\n*\n* @template Properties - Record of property names to their schema types\n* @template Input - Expected input type for these properties\n* @template Output - Output type after validation and transformation\n* @template CamelCaseOutput - Output type with camelCase property names\n*\n* @example\n* vine.group.if(\n* (value) => value.shipping_required === true,\n* {\n* shipping_address: vine.string(),\n* shipping_method: vine.string()\n* }\n* )\n*/\nvar GroupConditional = class {\n\t/**\n\t* Properties to validate and merge when the conditional evaluates to true\n\t*/\n\t#properties;\n\t/**\n\t* Conditional function that determines whether to validate these properties\n\t*/\n\t#conditional;\n\t/**\n\t* Creates a new GroupConditional with a condition and properties.\n\t*\n\t* @param conditional - Function that returns truthy value when properties should be validated\n\t* @param properties - Properties to validate and merge when condition is true\n\t*/\n\tconstructor(conditional, properties) {\n\t\tthis.#properties = properties;\n\t\tthis.#conditional = conditional;\n\t}\n\t/**\n\t* Converts the conditional properties to JSON Schema format.\n\t*\n\t* @returns JSON Schema representation of this conditional's properties\n\t*/\n\ttoJSONSchema() {\n\t\tconst properties = {};\n\t\tconst required = [];\n\t\tfor (const [key, property] of Object.entries(this.#properties)) {\n\t\t\tproperties[key] = property.toJSONSchema();\n\t\t\tif (!(\"isOptional\" in property) || property.isOptional !== true) required.push(key);\n\t\t}\n\t\treturn {\n\t\t\ttype: \"object\",\n\t\t\tproperties,\n\t\t\trequired\n\t\t};\n\t}\n\t/**\n\t* Compiles the conditional to a compiler node for validation.\n\t*\n\t* @param refs - Reference store for the compiler\n\t* @param options - Parser options\n\t* @returns Compiled conditional node\n\t*/\n\t[PARSE](refs, options) {\n\t\treturn {\n\t\t\tschema: {\n\t\t\t\ttype: \"sub_object\",\n\t\t\t\tproperties: Object.keys(this.#properties).map((property) => {\n\t\t\t\t\treturn this.#properties[property][PARSE](property, refs, options);\n\t\t\t\t}),\n\t\t\t\tgroups: []\n\t\t\t},\n\t\t\tconditionalFnRefId: refs.trackConditional(this.#conditional)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/object/group_builder.ts\n/**\n* Creates an object group that conditionally merges properties into an existing object\n* based on runtime validation logic. Groups enable dynamic schema composition where\n* different properties are required based on conditional rules.\n*\n* @param conditionals - Array of conditional property sets to evaluate\n* @returns ObjectGroup instance that can be merged into a VineObject\n*\n* @example\n* const schema = vine.object({\n* account_type: vine.string()\n* }).merge(\n* vine.group([\n* vine.group.if((value) => value.account_type === 'personal', {\n* first_name: vine.string(),\n* last_name: vine.string()\n* }),\n* vine.group.if((value) => value.account_type === 'business', {\n* company_name: vine.string(),\n* tax_id: vine.string()\n* })\n* ])\n* )\n*/\nfunction group(conditionals) {\n\treturn new ObjectGroup(conditionals);\n}\n/**\n* Wraps object properties inside a conditional statement that evaluates at validation time.\n* Properties are only validated and merged if the condition returns a truthy value.\n*\n* @param conditon - Callback function that receives the object value and field context\n* @param properties - Properties to merge when the condition is truthy\n* @returns GroupConditional instance for use in vine.group()\n*\n* @example\n* vine.group([\n* vine.group.if(\n* (value) => value.type === 'admin',\n* {\n* permissions: vine.array(vine.string()),\n* access_level: vine.number()\n* }\n* ),\n* vine.group.if(\n* (value) => value.type === 'user',\n* {\n* username: vine.string()\n* }\n* )\n* ])\n*/\ngroup.if = function groupIf(conditon, properties) {\n\treturn new GroupConditional(conditon, properties);\n};\n/**\n* Wraps object properties inside an \"else\" condition that always evaluates to true.\n* Use this as a fallback when no other conditions in the group match.\n*\n* @param properties - Properties to merge when no other condition matches\n* @returns GroupConditional instance that always matches\n*\n* @example\n* vine.group([\n* vine.group.if((value) => value.role === 'admin', {\n* admin_key: vine.string()\n* }),\n* vine.group.else({\n* user_key: vine.string()\n* })\n* ])\n*/\ngroup.else = function groupElse(properties) {\n\treturn new GroupConditional(() => true, properties);\n};\n//#endregion\n//#region src/schema/enum/native_enum.ts\n/**\n* VineNativeEnum represents an enum data type that performs validation\n* against a pre-defined choices list.\n*\n* The choices list is derived from TypeScript enum data type or an\n* object with string or number values. This allows you to validate\n* against native TypeScript enums.\n*\n* @template Values - The enum-like type containing allowed values\n*\n* @example\n* enum Status {\n* Active = 'active',\n* Inactive = 'inactive'\n* }\n*\n* const schema = vine.nativeEnum(Status)\n*\n* @example\n* const Colors = {\n* RED: 'red',\n* BLUE: 'blue',\n* GREEN: 'green'\n* } as const\n*\n* const schema = vine.nativeEnum(Colors)\n*/\nvar VineNativeEnum = class VineNativeEnum extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for native enums\n\t*/\n\tstatic rules = { enum: enumRule };\n\t/**\n\t* The enum-like object containing allowed values\n\t*/\n\t#values;\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"enum\";\n\t/**\n\t* Creates a new VineNativeEnum instance with the specified enum values.\n\t*\n\t* @param values - The enum or enum-like object containing allowed values\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(values, options, validations) {\n\t\tsuper(options, validations || [enumRule({ choices: Object.values(values) })]);\n\t\tthis.#values = values;\n\t}\n\t/**\n\t* Clones the VineNativeEnum schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineNativeEnum schema\n\t*/\n\tclone() {\n\t\treturn new VineNativeEnum(this.#values, this.cloneOptions(), this.cloneValidations());\n\t}\n};\n//#endregion\n//#region src/schema/native_file/rules.ts\n/**\n* Validates that the value is an instance of the platform native File class.\n* This is the primary type validator for native file fields.\n*\n* @example\n* vine.string().use(isNativeFileRule())\n*/\nconst isNativeFileRule = createRule(function file(value, _, field) {\n\tif (!field.isDefined) return false;\n\tif (value instanceof File === false) {\n\t\tfield.report(messages.nativeFile, \"nativeFile\", field);\n\t\treturn false;\n\t}\n\treturn true;\n});\n/**\n* Validates that the file size is at least the specified minimum size in bytes.\n*\n* @example\n* vine.file().use(minSizeRule({ min: 1024 })) // At least 1KB\n*\n* @example\n* vine.file().minSize(1024) // Shorthand method\n*/\nconst minSizeRule = createRule(function minSize(value, options, field) {\n\tif (value.size < options.min) {\n\t\tfield.report(messages[\"nativeFile.minSize\"], \"nativeFile.minSize\", field, options);\n\t\treturn false;\n\t}\n\treturn true;\n});\n/**\n* Validates that the file size does not exceed the specified maximum size in bytes.\n*\n* @example\n* vine.file().use(maxSizeRule({ max: 2097152 })) // Max 2MB\n*\n* @example\n* vine.file().maxSize(2097152) // Shorthand method\n*/\nconst maxSizeRule = createRule(function minSize(value, options, field) {\n\tif (value.size > options.max) field.report(messages[\"nativeFile.maxSize\"], \"nativeFile.maxSize\", field, options);\n});\n/**\n* Validates that the file's MIME type is one of the allowed types.\n*\n* @example\n* vine.file().use(mimeTypesRule({\n* mimeTypes: ['image/jpeg', 'image/png']\n* }))\n*\n* @example\n* vine.file().mimeTypes(['image/jpeg', 'image/png']) // Shorthand method\n*/\nconst mimeTypesRule = createRule((value, options, field) => {\n\tconst mimeType = value.type;\n\tif (!options.mimeTypes.includes(mimeType)) field.report(messages[\"nativeFile.mimeTypes\"], \"nativeFile.mimeTypes\", field, options);\n});\n//#endregion\n//#region src/schema/native_file/main.ts\n/**\n* VineNativeFile represents a platform native File class instance.\n* This type is used to validate file uploads in browser environments\n* where the File API is available.\n*\n* The file is validated based on type, size, and MIME type constraints.\n* Unlike MultipartFile (used in Node.js), this works with the browser's\n* native File object from file input elements.\n*\n* @example\n* const schema = vine.object({\n* avatar: vine.file().maxSize('2mb').mimeTypes(['image/jpeg', 'image/png']),\n* document: vine.file().minSize('1kb').maxSize('10mb')\n* })\n*\n* @example\n* // From HTML file input\n* // <input type=\"file\" name=\"avatar\" />\n* const file = event.target.files[0] // This is a native File instance\n*/\nvar VineNativeFile = class VineNativeFile extends BaseLiteralType {\n\t/**\n\t* Static collection of all available validation rules for native files\n\t*/\n\tstatic rules = {\n\t\tmaxSize: maxSizeRule,\n\t\tmimeTypes: mimeTypesRule,\n\t\tminSize: minSizeRule\n\t};\n\t/**\n\t* The subtype identifier for the literal schema field\n\t*/\n\t[SUBTYPE] = \"nativeFile\";\n\t/**\n\t* Unique name identifier for union type resolution\n\t*/\n\t[UNIQUE_NAME] = \"vine.nativeFile\";\n\t/**\n\t* Type checker function to determine if a value is a native file.\n\t* Required for \"unionOfTypes\" functionality.\n\t*\n\t* @param value - The value to check\n\t*/\n\t[IS_OF_TYPE] = (value) => {\n\t\treturn value instanceof File;\n\t};\n\t/**\n\t* Creates a new VineNativeFile instance.\n\t*\n\t* @param options - Field options like bail mode and nullability\n\t* @param validations - Initial set of validations to apply\n\t*/\n\tconstructor(options, validations) {\n\t\tsuper(options, validations || []);\n\t\tthis.dataTypeValidator = isNativeFileRule();\n\t}\n\t/**\n\t* Clones the VineNativeFile schema type. The applied options\n\t* and validations are copied to the new instance.\n\t*\n\t* @returns A cloned instance of this VineNativeFile schema\n\t*/\n\tclone() {\n\t\treturn new VineNativeFile(this.cloneOptions(), this.cloneValidations());\n\t}\n\t/**\n\t* Enforce the file size to be at least the provided minimum size.\n\t*\n\t* @param size - Minimum file size in bytes\n\t*\n\t* @example\n\t* vine.file().minSize(1024) // At least 1KB\n\t*/\n\tminSize(size) {\n\t\treturn this.use(minSizeRule({ min: size }));\n\t}\n\t/**\n\t* Limit the maximum file size.\n\t*\n\t* @param size - Maximum file size in bytes\n\t*\n\t* @example\n\t* vine.file().maxSize(2097152) // Max 2MB\n\t*/\n\tmaxSize(size) {\n\t\treturn this.use(maxSizeRule({ max: size }));\n\t}\n\t/**\n\t* Enforce the file type to be one of the specified MIME types.\n\t*\n\t* @param types - Array of allowed MIME types\n\t*\n\t* @example\n\t* vine.file().mimeTypes(['image/jpeg', 'image/png', 'image/gif'])\n\t*\n\t* @example\n\t* vine.file().mimeTypes(['application/pdf'])\n\t*/\n\tmimeTypes(types) {\n\t\treturn this.use(mimeTypesRule({ mimeTypes: types }));\n\t}\n};\n//#endregion\n//#region src/schema/union_of_types/main.ts\n/**\n* Vine union of types represents a union data type that automatically\n* determines which schema to apply based on the value's type.\n*\n* Unlike regular unions that require explicit conditionals, unionOfTypes\n* uses each schema's IS_OF_TYPE method to automatically detect the\n* appropriate schema based on the input value's type.\n*\n* @template Schema - The schema types that make up this union\n*\n* @example\n* const schema = vine.unionOfTypes([\n* vine.string(),\n* vine.number(),\n* vine.boolean()\n* ])\n*\n* @example\n* const schema = vine.unionOfTypes([\n* vine.object({ type: vine.literal('user'), name: vine.string() }),\n* vine.object({ type: vine.literal('admin'), permissions: vine.array(vine.string()) })\n* ])\n*/\nvar VineUnionOfTypes = class VineUnionOfTypes {\n\t/**\n\t* Array of schemas to match against\n\t*/\n\t#schemas;\n\t/**\n\t* Callback to invoke when no schema type matches\n\t*/\n\t#otherwiseCallback = (_, field) => {\n\t\tfield.report(messages.unionOfTypes, \"unionOfTypes\", field);\n\t};\n\t/**\n\t* Creates a new VineUnionOfTypes instance with the specified schemas.\n\t*\n\t* @param schemas - Array of schemas to match against input values\n\t*/\n\tconstructor(schemas) {\n\t\tthis.#schemas = schemas;\n\t}\n\t/**\n\t* Define a fallback method to invoke when all of the union conditions\n\t* fail. You may use this method to report an error.\n\t*/\n\totherwise(callback) {\n\t\tthis.#otherwiseCallback = callback;\n\t\treturn this;\n\t}\n\t/**\n\t* Clones the VineUnionOfTypes schema type.\n\t*/\n\tclone() {\n\t\tconst cloned = new VineUnionOfTypes(this.#schemas.map((schema) => schema.clone()));\n\t\tcloned.otherwise(this.#otherwiseCallback);\n\t\treturn cloned;\n\t}\n\t/**\n\t* Mark the field under validation as optional. An optional\n\t* field allows both null and undefined values.\n\t*/\n\toptional() {\n\t\treturn new VineUnionOfTypes([new VineOptional(), ...this.#schemas]);\n\t}\n\t/**\n\t* Mark the field under validation to be null. The null value will\n\t* be written to the output as well.\n\t*\n\t* If `optional` and `nullable` are used together, then both undefined\n\t* and null values will be allowed.\n\t*/\n\tnullable() {\n\t\treturn new VineUnionOfTypes([new VineNull(), ...this.#schemas]);\n\t}\n\t/**\n\t* Transforms into JSONSchema.\n\t*/\n\ttoJSONSchema() {\n\t\treturn { anyOf: this.#schemas.map((schema) => schema.toJSONSchema?.()).filter(Boolean) };\n\t}\n\t/**\n\t* Compiles the union of types schema to a compiler node.\n\t*\n\t* Creates conditional branches for each schema using their IS_OF_TYPE\n\t* methods to determine which schema matches the input value.\n\t*\n\t* @param propertyName - The name of the property being validated\n\t* @param refs - Reference store for tracking validators and conditionals\n\t* @param options - Parser options including camelCase transformation\n\t*/\n\t[PARSE](propertyName, refs, options) {\n\t\treturn {\n\t\t\ttype: \"union\",\n\t\t\tfieldName: propertyName,\n\t\t\tpropertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n\t\t\telseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n\t\t\tconditions: this.#schemas.map((schema) => {\n\t\t\t\treturn {\n\t\t\t\t\tconditionalFnRefId: refs.trackConditional((value, field) => {\n\t\t\t\t\t\treturn schema[IS_OF_TYPE](value, field);\n\t\t\t\t\t}),\n\t\t\t\t\tschema: schema[PARSE](propertyName, refs, options)\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t}\n};\n//#endregion\n//#region src/schema/builder.ts\n/**\n* SchemaBuilder exposes methods to construct Vine validation schemas.\n* It provides a fluent API for creating all supported schema types\n* and can be extended with custom methods using macros.\n*\n* @example\n* const builder = new SchemaBuilder()\n* const schema = builder.object({\n* name: builder.string(),\n* age: builder.number().min(0),\n* email: builder.string().email()\n* })\n*/\nvar SchemaBuilder = class extends Macroable {\n\t/**\n\t* Define a sub-object as a conditional union group.\n\t* Groups allow creating conditional validations based on discriminator fields.\n\t*\n\t* @example\n\t* vine.group([\n\t* vine.group.if(vine.string(), vine.object({ name: vine.string() }))\n\t* ])\n\t*/\n\tgroup = group;\n\t/**\n\t* Define a union of multiple schema types.\n\t* Union schemas attempt to validate against each schema until one succeeds.\n\t*\n\t* @example\n\t* vine.union([\n\t* vine.string(),\n\t* vine.number()\n\t* ])\n\t*/\n\tunion = union;\n\t/**\n\t* Define a string value schema with comprehensive validation rules.\n\t*\n\t* @returns A VineString schema instance\n\t*\n\t* @example\n\t* vine.string().email().minLength(5)\n\t*/\n\tstring() {\n\t\treturn new VineString();\n\t}\n\t/**\n\t* Define a boolean value schema with optional strict mode.\n\t*\n\t* @param options - Configuration options for boolean validation\n\t* @returns A VineBoolean schema instance\n\t*\n\t* @example\n\t* vine.boolean({ strict: true }) // Only accepts true/false\n\t*/\n\tboolean(options) {\n\t\treturn new VineBoolean(options);\n\t}\n\t/**\n\t* Validate a checkbox or acceptance field to be checked/accepted.\n\t*\n\t* @returns A VineAccepted schema instance\n\t*\n\t* @example\n\t* vine.accepted() // Validates terms acceptance\n\t*/\n\taccepted() {\n\t\treturn new VineAccepted();\n\t}\n\t/**\n\t* Define a number value schema with optional strict mode.\n\t*\n\t* @param options - Configuration options for number validation\n\t* @returns A VineNumber schema instance\n\t*\n\t* @example\n\t* vine.number().min(0).max(100)\n\t*/\n\tnumber(options) {\n\t\treturn new VineNumber(options);\n\t}\n\t/**\n\t* Define a datetime value schema with optional parsing options.\n\t*\n\t* @param options - Configuration options for date validation\n\t* @returns A VineDate schema instance\n\t*\n\t* @example\n\t* vine.date({ formats: ['YYYY-MM-DD'] })\n\t*/\n\tdate(options) {\n\t\treturn new VineDate(options);\n\t}\n\t/**\n\t* Define a schema type that validates input matches a specific literal value.\n\t* Useful for validating exact strings, numbers, or boolean values.\n\t*\n\t* @template Value - The literal value type to validate against\n\t* @param value - The exact value that input must match\n\t* @returns A VineLiteral schema instance\n\t*\n\t* @example\n\t* vine.literal('hello') // Only accepts \"hello\"\n\t* vine.literal(42) // Only accepts 42\n\t* vine.literal(true) // Only accepts true\n\t*/\n\tliteral(value) {\n\t\treturn new VineLiteral(value);\n\t}\n\t/**\n\t* Define an optional value that can be undefined.\n\t* Chain the \"nullable\" method to also allow null values in the output.\n\t*\n\t* @returns A VineOptional schema instance\n\t*\n\t* @example\n\t* vine.optional() // Accepts undefined\n\t* vine.optional().nullable() // Accepts undefined or null\n\t*/\n\toptional() {\n\t\treturn new VineOptional();\n\t}\n\t/**\n\t* Define a schema that only accepts null values.\n\t*\n\t* @returns A VineNull schema instance\n\t*\n\t* @example\n\t* vine.null() // Only accepts null\n\t*/\n\tnull() {\n\t\treturn new VineNull();\n\t}\n\t/**\n\t* Define an object schema with known properties and their validation schemas.\n\t* You may call \"allowUnknownProperties\" to merge unknown properties into the output.\n\t*\n\t* @template Properties - Record of property names to their schema types\n\t* @param properties - Object defining the schema for each property\n\t* @returns A VineObject schema instance\n\t*\n\t* @example\n\t* vine.object({\n\t* name: vine.string().minLength(2),\n\t* age: vine.number().min(0),\n\t* email: vine.string().email().optional()\n\t* })\n\t*/\n\tobject(properties) {\n\t\treturn new VineObject(properties);\n\t}\n\t/**\n\t* Define an array schema that validates each element against a given schema.\n\t* All elements in the array must conform to the same schema type.\n\t*\n\t* @template Schema - The schema type for validating array elements\n\t* @param schema - The schema to validate each array element against\n\t* @returns A VineArray schema instance\n\t*\n\t* @example\n\t* vine.array(vine.string()) // Array of strings\n\t* vine.array(vine.object({ id: vine.number() })) // Array of objects\n\t*/\n\tarray(schema) {\n\t\treturn new VineArray(schema);\n\t}\n\t/**\n\t* Define a tuple schema with fixed length where each element\n\t* can have its own validation schema.\n\t*\n\t* @template Schema - Array of schema types for each tuple position\n\t* @param schemas - Array of schemas for each tuple element\n\t* @returns A VineTuple schema instance\n\t*\n\t* @example\n\t* vine.tuple([\n\t* vine.string(), // First element must be string\n\t* vine.number(), // Second element must be number\n\t* vine.boolean() // Third element must be boolean\n\t* ])\n\t*/\n\ttuple(schemas) {\n\t\treturn new VineTuple(schemas);\n\t}\n\t/**\n\t* Define a record (dictionary) schema with unknown string keys\n\t* and values that conform to a specific schema type.\n\t*\n\t* @template Schema - The schema type for validating record values\n\t* @param schema - The schema to validate each record value against\n\t* @returns A VineRecord schema instance\n\t*\n\t* @example\n\t* vine.record(vine.string()) // { [key: string]: string }\n\t* vine.record(vine.number()) // { [key: string]: number }\n\t*/\n\trecord(schema) {\n\t\treturn new VineRecord(schema);\n\t}\n\tenum(values) {\n\t\tif (Array.isArray(values) || typeof values === \"function\") return new VineEnum(values);\n\t\treturn new VineNativeEnum(values);\n\t}\n\t/**\n\t* Define a schema that accepts any value without validation.\n\t* Use sparingly as it bypasses type safety and validation.\n\t*\n\t* @returns A VineAny schema instance\n\t*\n\t* @example\n\t* vine.any() // Accepts any value: string, number, object, etc.\n\t*/\n\tany() {\n\t\treturn new VineAny();\n\t}\n\t/**\n\t* Define a union of unique schema types with intelligent type discrimination.\n\t* Unlike regular unions, this validates against the most specific matching schema\n\t* using runtime type checking.\n\t*\n\t* @template Schema - The schema types in the union\n\t* @param schemas - Array of distinct schema types for the union\n\t* @returns A VineUnionOfTypes schema instance\n\t* @throws {Error} When schemas are not compatible or duplicated\n\t*\n\t* @example\n\t* vine.unionOfTypes([\n\t* vine.string(),\n\t* vine.number(),\n\t* vine.boolean()\n\t* ])\n\t*\n\t* // For objects with discriminator fields\n\t* vine.unionOfTypes([\n\t* vine.object({ type: vine.literal('user'), name: vine.string() }),\n\t* vine.object({ type: vine.literal('admin'), permissions: vine.array(vine.string()) })\n\t* ])\n\t*/\n\tunionOfTypes(schemas) {\n\t\tconst schemasInUse = /* @__PURE__ */ new Set();\n\t\tschemas.forEach((schema) => {\n\t\t\tif (!schema[IS_OF_TYPE] || !schema[UNIQUE_NAME]) throw new Error(`Cannot use \"${schema.constructor.name}\". The schema type is not compatible for use with \"vine.unionOfTypes\"`);\n\t\t\tif (schemasInUse.has(schema[UNIQUE_NAME])) throw new Error(`Cannot use duplicate schema \"${schema[UNIQUE_NAME]}\". \"vine.unionOfTypes\" needs distinct schema types only`);\n\t\t\tschemasInUse.add(schema[UNIQUE_NAME]);\n\t\t});\n\t\tschemasInUse.clear();\n\t\treturn new VineUnionOfTypes(schemas);\n\t}\n\t/**\n\t* Define a schema that validates native File instances.\n\t* Useful for file upload validation in web applications.\n\t*\n\t* @returns A VineNativeFile schema instance\n\t*\n\t* @example\n\t* vine.nativeFile()\n\t* .maxSize(1024 * 1024)\n\t* .mimeTypes(['image/png', 'image/jpeg'])\n\t*/\n\tnativeFile() {\n\t\treturn new VineNativeFile();\n\t}\n};\n//#endregion\n//#region src/vine/validator.ts\n/**\n* Error messages to share with the compiler.\n* Maps core validation types to their default error messages.\n*/\nconst COMPILER_ERROR_MESSAGES = {\n\trequired: messages.required,\n\tarray: messages.array,\n\tobject: messages.object\n};\n/**\n* Reusable empty object to avoid creating new instances for default options.\n*/\nconst EMPTY_OBJECT = {};\n/**\n* Vine Validator exposes the API to validate data using a pre-compiled\n* schema. This class provides high-performance validation by compiling\n* schemas once and reusing them for multiple validations.\n*\n* @template Schema - The schema type being validated\n* @template MetaData - The metadata type passed to validation\n*\n* @example\n* const validator = vine.compile(schema)\n* const result = await validator.validate(data)\n*/\nvar VineValidator = class {\n\t/**\n\t* Reference to the compiled schema containing the validation tree\n\t* and references for reuse during validation\n\t*/\n\t#compiled;\n\t/**\n\t* JSON Schema is only computed when asked.\n\t* We cache it in validator for reusability.\n\t*/\n\t#jsonSchema;\n\t/**\n\t* Messages provider instance used for internationalization\n\t* and custom error message formatting\n\t*/\n\t\"messagesProvider\";\n\t/**\n\t* Error reporter factory function used for formatting\n\t* and collecting validation errors\n\t*/\n\t\"errorReporter\";\n\t/**\n\t* Parses schema to compiler nodes for optimization and compilation.\n\t* This internal method converts the schema into an AST representation\n\t* that can be efficiently compiled into validation functions.\n\t*\n\t* @param schema - The schema to parse\n\t*/\n\t#parse(schema) {\n\t\tconst refs = refsBuilder();\n\t\treturn {\n\t\t\tcompilerNode: {\n\t\t\t\ttype: \"root\",\n\t\t\t\tschema: schema[PARSE](\"\", refs, { toCamelCase: false })\n\t\t\t},\n\t\t\trefs: refs.toJSON()\n\t\t};\n\t}\n\t/**\n\t* Creates a new VineValidator instance with a compiled schema.\n\t*\n\t* @param schema - The schema to compile for validation\n\t* @param options - Configuration options for the validator\n\t* @param options.convertEmptyStringsToNull - Whether to convert empty strings to null\n\t* @param options.metaDataValidator - Optional metadata validator function\n\t* @param options.messagesProvider - Messages provider for error formatting\n\t* @param options.errorReporter - Error reporter factory function\n\t*/\n\t\"constructor\"(schema, options) {\n\t\tthis.schema = schema;\n\t\tthis.options = options;\n\t\t/**\n\t\t* Compile the schema to a re-usable function\n\t\t*/\n\t\tconst { compilerNode, refs } = this.#parse(schema);\n\t\tthis.#compiled = {\n\t\t\tschema: compilerNode,\n\t\t\trefs\n\t\t};\n\t\tconst metaDataValidator = options.metaDataValidator;\n\t\tconst validateFn = new Compiler(compilerNode, {\n\t\t\tconvertEmptyStringsToNull: options.convertEmptyStringsToNull,\n\t\t\tmessages: COMPILER_ERROR_MESSAGES\n\t\t}).compile();\n\t\t/**\n\t\t* Assign error reporter and messages provider to public\n\t\t* properties so that they can be overridden at the\n\t\t* validator level.\n\t\t*/\n\t\tthis.errorReporter = options.errorReporter;\n\t\tthis.messagesProvider = options.messagesProvider;\n\t\t/**\n\t\t* Creating specialized functions with and without the\n\t\t* metadata validator to optimize the runtime\n\t\t* performance.\n\t\t*/\n\t\tif (metaDataValidator) this.validate = (data, validateOptions) => {\n\t\t\tlet normalizedOptions = validateOptions ?? EMPTY_OBJECT;\n\t\t\tconst meta = normalizedOptions.meta ?? {};\n\t\t\tconst errorReporter = normalizedOptions.errorReporter ?? this.errorReporter;\n\t\t\tconst messagesProvider = normalizedOptions.messagesProvider ?? this.messagesProvider;\n\t\t\tmetaDataValidator(meta);\n\t\t\treturn validateFn(data, meta, refs, messagesProvider, errorReporter());\n\t\t};\n\t\telse this.validate = (data, validateOptions) => {\n\t\t\tlet normalizedOptions = validateOptions ?? EMPTY_OBJECT;\n\t\t\tconst meta = normalizedOptions.meta ?? {};\n\t\t\tconst errorReporter = normalizedOptions.errorReporter ?? this.errorReporter;\n\t\t\treturn validateFn(data, meta, refs, normalizedOptions.messagesProvider ?? this.messagesProvider, errorReporter());\n\t\t};\n\t}\n\t/**\n\t* Performs validation without throwing a ValidationError exception.\n\t* Instead, returns a tuple where the first element is the error (if any)\n\t* and the second is the validated data (if successful).\n\t*\n\t* @param data - The data to validate\n\t* @param options - Optional validation options including metadata, custom error reporter, and messages provider\n\t*\n\t* @example\n\t* const [error, result] = await validator.tryValidate(data)\n\t* if (error) {\n\t* console.log(error.messages)\n\t* } else {\n\t* console.log(result)\n\t* }\n\t*\n\t* @example\n\t* // With metadata\n\t* const [error, result] = await validator.tryValidate(data, {\n\t* meta: { userId: '123' }\n\t* })\n\t*\n\t* @example\n\t* // With custom error reporter\n\t* const [error, result] = await validator.tryValidate(data, {\n\t* meta: { userId: auth.user.id },\n\t* errorReporter: () => new CustomErrorReporter(),\n\t* messagesProvider: customMessagesProvider\n\t* })\n\t*/\n\tasync \"tryValidate\"(data, ...[options]) {\n\t\ttry {\n\t\t\treturn [null, await this.validate(data, options)];\n\t\t} catch (error) {\n\t\t\tif (error instanceof ValidationError) return [error, null];\n\t\t\tthrow error;\n\t\t}\n\t}\n\t/**\n\t* Returns the compiled schema and refs as a JSON-serializable object.\n\t* Useful for caching compiled schemas or debugging validation logic.\n\t*\n\t* @example\n\t* const compiled = validator.toJSON()\n\t* console.log(compiled.schema)\n\t* console.log(compiled.refs)\n\t*/\n\t\"toJSON\"() {\n\t\tconst { schema, refs } = this.#compiled;\n\t\treturn {\n\t\t\tschema: structuredClone(schema),\n\t\t\trefs\n\t\t};\n\t}\n\t/**\n\t* Converts the validator's schema to JSON Schema Draft 7 format.\n\t* The result is cached for subsequent calls.\n\t*\n\t* @example\n\t* const jsonSchema = validator.toJSONSchema()\n\t* console.log(JSON.stringify(jsonSchema, null, 2))\n\t*/\n\t\"toJSONSchema\"() {\n\t\tif (!this.#jsonSchema) this.#jsonSchema = this.schema.toJSONSchema();\n\t\treturn this.#jsonSchema;\n\t}\n\t/**\n\t* Standard Schema V1 compliance implementation.\n\t* Provides interoperability with other validation libraries through the\n\t* Standard Schema specification.\n\t*\n\t* @see https://github.com/standard-schema/standard-schema\n\t*/\n\t\"~standard\" = {\n\t\tversion: 1,\n\t\tvendor: \"vinejs\",\n\t\tjsonSchema: {\n\t\t\tinput: () => {\n\t\t\t\treturn this.toJSONSchema();\n\t\t\t},\n\t\t\toutput: () => {\n\t\t\t\tthrow new Error(\"Vine.js does not support creating validators using JSON Schema.\");\n\t\t\t}\n\t\t},\n\t\tvalidate: async (data) => {\n\t\t\tconst [error, result] = await this.tryValidate(data, {});\n\t\t\tif (result) return { value: result };\n\t\t\treturn { issues: error?.messages.map((message) => {\n\t\t\t\treturn {\n\t\t\t\t\t...message,\n\t\t\t\t\tpath: message.field\n\t\t\t\t};\n\t\t\t}) };\n\t\t}\n\t};\n};\n//#endregion\n//#region src/vine/main.ts\n/**\n* Main Vine class that provides a fluent API for creating validation schemas\n* and validating user input with type-safety using pre-compiled schemas.\n*\n* @example\n* const vine = new Vine()\n* const schema = vine.object({\n* name: vine.string(),\n* age: vine.number()\n* })\n* const result = await vine.validate({ schema, data: { name: 'John', age: 30 } })\n*/\nvar Vine = class extends SchemaBuilder {\n\t/**\n\t* Messages provider to use on the validator for internationalization\n\t* and custom error message formatting\n\t*/\n\tmessagesProvider = new SimpleMessagesProvider(messages, fields);\n\t/**\n\t* Error reporter factory function to use on the validator for\n\t* formatting validation errors\n\t*/\n\terrorReporter = () => new SimpleErrorReporter();\n\t/**\n\t* Control whether or not to convert empty strings to null during validation.\n\t* Useful for HTML form handling where empty inputs are submitted as empty strings\n\t*/\n\tconvertEmptyStringsToNull = false;\n\t/**\n\t* Collection of helper functions to perform type-checking or cast types\n\t* while keeping HTML forms serialization behavior in mind\n\t*/\n\thelpers = helpers;\n\t/**\n\t* Utility function to convert a validation function to a Vine schema rule\n\t*/\n\tcreateRule = createRule;\n\t/**\n\t* Pre-compiles a schema into a validation function for better performance\n\t* when validating multiple data sets against the same schema.\n\t*\n\t* @param schema - The validation schema to compile\n\t*\n\t* @deprecated Instead use \"create\"\n\t*\n\t* @example\n\t* const schema = vine.object({\n\t* name: vine.string(),\n\t* age: vine.number()\n\t* })\n\t*\n\t* const validate = vine.compile(schema)\n\t* await validate.validate({ name: 'John', age: 30 })\n\t*/\n\tcompile(schema) {\n\t\treturn new VineValidator(schema, {\n\t\t\tconvertEmptyStringsToNull: this.convertEmptyStringsToNull,\n\t\t\tmessagesProvider: this.messagesProvider,\n\t\t\terrorReporter: this.errorReporter\n\t\t});\n\t}\n\t/**\n\t* Internal implementation that handles both schema and properties overloads.\n\t*/\n\tcreate(schemaOrProperties) {\n\t\tconst validatorOptions = {\n\t\t\tconvertEmptyStringsToNull: this.convertEmptyStringsToNull,\n\t\t\tmessagesProvider: this.messagesProvider,\n\t\t\terrorReporter: this.errorReporter\n\t\t};\n\t\tif (PARSE in schemaOrProperties) return new VineValidator(schemaOrProperties, validatorOptions);\n\t\treturn new VineValidator(new VineObject(schemaOrProperties), validatorOptions);\n\t}\n\t/**\n\t* Define a callback to validate the metadata given to the validator\n\t* at runtime. Useful for passing additional context like user IDs or permissions\n\t* that can be used within custom validation rules.\n\t*\n\t* @param callback - Optional validator function for metadata validation\n\t*\n\t* @example\n\t* // Without metadata validation\n\t* const validate = vine.withMetaData<{ userId: string }>().create({\n\t* title: vine.string(),\n\t* description: vine.string()\n\t* })\n\t*\n\t* await validate.validate(data, { meta: { userId: '123' } })\n\t*\n\t* @example\n\t* // With metadata validation\n\t* const validate = vine\n\t* .withMetaData<{ userId: string }>((meta) => {\n\t* if (!meta.userId) {\n\t* throw new Error('userId is required in metadata')\n\t* }\n\t* })\n\t* .create(schema)\n\t*\n\t* await validate.validate(data, { meta: { userId: '123' } })\n\t*/\n\twithMetaData(callback) {\n\t\treturn {\n\t\t\tcompile: (schema) => {\n\t\t\t\treturn new VineValidator(schema, {\n\t\t\t\t\tconvertEmptyStringsToNull: this.convertEmptyStringsToNull,\n\t\t\t\t\tmessagesProvider: this.messagesProvider,\n\t\t\t\t\terrorReporter: this.errorReporter,\n\t\t\t\t\tmetaDataValidator: callback\n\t\t\t\t});\n\t\t\t},\n\t\t\tcreate: (schemaOrProperties) => {\n\t\t\t\tconst validatorOptions = {\n\t\t\t\t\tconvertEmptyStringsToNull: this.convertEmptyStringsToNull,\n\t\t\t\t\tmessagesProvider: this.messagesProvider,\n\t\t\t\t\terrorReporter: this.errorReporter,\n\t\t\t\t\tmetaDataValidator: callback\n\t\t\t\t};\n\t\t\t\tif (PARSE in schemaOrProperties) return new VineValidator(schemaOrProperties, validatorOptions);\n\t\t\t\treturn new VineValidator(new VineObject(schemaOrProperties), validatorOptions);\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Validate data against a schema. Optionally, you can define\n\t* error messages, fields, a custom messages provider,\n\t* or an error reporter.\n\t*\n\t* @param options - Configuration object containing schema, data, and validation options\n\t* @returns Promise resolving to validated and typed data\n\t* @throws {ValidationError} When validation fails\n\t*\n\t* @example\n\t* await vine.validate({ schema, data })\n\t* await vine.validate({ schema, data, messages, fields })\n\t*\n\t* await vine.validate({ schema, data, messages, fields }, {\n\t* errorReporter\n\t* })\n\t*/\n\tvalidate(options) {\n\t\treturn this.compile(options.schema).validate(options.data, options);\n\t}\n\t/**\n\t* Validate data against a schema without throwing the\n\t* \"ValidationError\" exception. Instead the validation\n\t* errors are returned within the return value.\n\t*\n\t* @param options - Configuration object containing schema, data, and validation options\n\t* @returns Promise resolving to tuple of [error, null] or [null, validatedData]\n\t*\n\t* @example\n\t* await vine.tryValidate({ schema, data })\n\t* await vine.tryValidate({ schema, data, messages, fields })\n\t*\n\t* await vine.tryValidate({ schema, data, messages, fields }, {\n\t* errorReporter\n\t* })\n\t*/\n\ttryValidate(options) {\n\t\treturn this.compile(options.schema).tryValidate(options.data, options);\n\t}\n};\n//#endregion\n//#region index.ts\nconst vine = new Vine();\n//#endregion\nexport { BaseLiteralType, BaseType, ConditionalValidations, MetaModifier, NullableModifier, OptionalModifier, SimpleErrorReporter, SimpleMessagesProvider, UnionConditional, ValidationError, Vine, VineAccepted, VineAny, VineArray, VineBoolean, VineDate, VineEnum, VineLiteral, VineNativeEnum, VineNativeFile, VineNull, VineNumber, VineObject, VineOptional, VineRecord, VineString, VineTuple, VineUnion, VineValidator, vine as default, main_exports as errors, requiredWhen, symbols_exports as symbols };\n",null],"names":["module","t","e","n","r","i","s","u","a","o","c","f","h","d","l","$","y","M","name","weekdays","split","months","ordinal","m","String","length","Array","join","v","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","replace","g","S","_","O","args","arguments","b","locale","$L","utc","$u","x","$x","$offset","this","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","apply","slice","$locale","weekStart","$set","min","daysInMonth","get","Number","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","Y","forEach","extend","$i","isDayjs","en","Ls","Object","defineProperty","exports","value","default","input","TypeError","concat","constructor","isIP","ipAddress","options","undefined","_assertString","version","_typeof","IPv4AddressRegExp","IPv6AddressRegExp","__esModule","Symbol","iterator","IPv4SegmentFormat","IPv4AddressFormat","RegExp","IPv6SegmentFormat","obj","defaults","key","str","_options","regex","_merge","urlSafe","padding","base64UrlWithPadding","base64UrlWithoutPadding","base64WithPadding","base64WithoutPadding","_interopRequireDefault","dotSplit","reduce","acc","currElem","_isBase","isRegExp","call","host","matches","val","indexOf","default_fqdn_options","allow_trailing_dot","allow_wildcard","parts","tld","require_tld","allow_numeric_tld","every","part","ignore_max_length","allow_underscores","url","default_url_options","validate_length","max_allowed_length","allow_fragments","_includesString","allow_query_components","protocol","auth","hostname","port","port_str","ipv6","shift","protocol_match","had_explicit_protocol","cleanUpProtocol","potential_protocol","require_valid_protocol","protocols","after_colon","first_slash_position","before_slash","at_position","before_at","is_valid_auth","has_encoded_content","require_protocol","allow_protocol_relative_urls","require_host","disallow_auth","_auth$split","_auth$split2","isArray","_arrayWithHoles","next","done","push","return","_iterableToArrayLimit","_arrayLikeToArray","from","_unsupportedIterableToArray","_nonIterableRest","user","password","ipv6_match","wrapped_ipv6","parseInt","require_port","host_whitelist","_checkHost","_isIP","_isFQDN","host_blacklist","charsetRegex","arr","some","arrVal","isIBAN_1","strippedStr","toUpperCase","isoCountryCode","isoCountryCodeInIbanRegexCodeObject","ibanRegexThroughCountryCode","whitelist","filter","countryCode","_includesArray","blacklist","hasValidIbanFormat","char","charCodeAt","hasValidIbanChecksum","locales","AD","AE","AL","AT","AZ","BA","BE","BG","BH","BR","BY","CH","CR","CY","CZ","DE","DK","DO","DZ","EE","EG","ES","FI","FO","FR","GB","GE","GI","GL","GR","GT","HR","HU","IE","IL","IQ","IR","IS","IT","JO","KW","KZ","LB","LC","LI","LT","LU","LV","MA","MC","MD","ME","MK","MR","MT","MU","MZ","NL","NO","PK","PL","PS","PT","QA","RO","RS","SA","SC","SE","SI","SK","SM","SV","TL","TN","TR","UA","VA","VG","XK","keys","uuid","nil","max","loose","all","ascii","len","encodeURI","default_email_options","require_display_name","allow_display_name","display_email","splitNameAddress","display_name","endsWith","display_name_without_quotes","trim","validateDisplayName","defaultMaxEmailLength","domain","pop","lower_domain","domain_specific_validation","username","_isByteLength","_user_parts","gmailUserPart","allow_ip_domain","startsWith","noBracketdomain","blacklisted_chars","search","allow_utf8_local_part","quotedEmailUserUtf8","quotedEmailUser","pattern","emailUserUtf8Part","emailUserPart","user_parts","_i","alpha_1","farsiLocales","englishLocales","decimal","commaDecimal","bengaliLocales","alphanumeric","alpha","ar","he","fa","bn","eo","_locale","arabicLocales","_locale2","_i2","_locale3","_i3","dotDecimal","_i4","_i5","isAlpha_1","_str","ignore","Error","_alpha","require$$1","defaultLatLongOptions","pair","checkDMS","latDMS","longDMS","lat","long","default_decimal_options","regExp","decimal_digits","force_decimal","decimalRegExp","require$$3","default_is_hexcolor_options","require_hashtag","hexcolor_with_prefix","hexcolor","digit","tmpNum","shouldDouble","sanitized","sum","card","provider","cards","allCards","cardProvider","_isLuhnNumber","amex","dinersclub","discover","jcb","mastercard","unionpay","visa","tmpCardsArray","hasOwnProperty","isSameOrAfter","isSameOrBefore","isAlphanumeric_1","isPassportNumber_1","normalizedStr","passportRegexByCountryCode","AM","AR","AU","CA","CN","IN","ID","JM","JP","KR","LY","MY","MX","NZ","PH","RU","SL","TH","US","ZA","algorithms","iso7064Check","checkvalue","luhnCheck","checksum","second","product","map","reverseMultiplyAndSum","digits","base","total","verhoeffCheck","d_table","p_table","str_copy","reverse","isVAT_1","vatMatchers","WeakMap","__proto__","has","_t","getOwnPropertyDescriptor","_interopRequireWildcard","EL","tin","weights","ABN","charAt","NG","lastDigit","el","idx","UZ","BO","CL","CO","EC","HN","NI","PA","PY","PE","UY","VE","LTS","L","LL","LLL","LLLL","zone","offset","A","afternoon","milliseconds","SS","SSS","ss","mm","H","HH","hh","DD","Do","day","ww","MM","MMM","MMMM","YY","YYYY","Z","ZZ","formats","parser","exec","hours","customParseFormat","parseTwoDigitYear","minutes","seconds","week","isPostalCode_1","patterns","threeDigit","fourDigit","fiveDigit","sixDigit","BD","HT","KE","LK","MG","NP","PR","SG","TW","ZM","isMobilePhone_1","strictMode","phones","BOOLEAN_POSITIVES","BOOLEAN_NEGATIVES","DEFAULT_DATE_FORMATS","ULID","dayjs","helpers","exists","isMissing","isTrue","includes","isFalse","isString","isObject","hasKeys","isNumeric","isNaN","asNumber","asBoolean","asDayJS","isTimestampAllowed","isISOAllowed","valueAsNumber","dateTime","compareValues","inputValue","expectedValue","isEqual","casted","isEmail","isURL","isAlpha","isAlphaNumeric","isAlphanumeric","isUUID","isAscii","isCreditCard","isIBAN","isJWT","isLatLong","isMobilePhone","isPassportNumber","isVAT","isPostalCode","isSlug","isDecimal","mobileLocales","locales$1","postalCountryCodes","passportCountryCodes","isULID","isHexColor","isActiveURL","async","resolve4","resolve6","import","URL","isDistinct","dataSet","fields","uniqueItems","Set","item","fieldsList","element","field","getNestedValue","delve","data","parent","optional","props","result","SimpleMessagesProvider","messages","interpolate","message","__","tokens","output","token","hasOwn","getMessage","rawMessage","rule","fieldName","getFieldPath","fieldMessage","wildcardMessage","wildCardPath","ruleMessage","ValidationError","status","code","super","ErrorConstructor","captureStackTrace","toStringTag","E_VALIDATION_ERROR","SimpleErrorReporter","hasErrors","errors","report","meta","error","isArrayMember","index","createError","required","string","email","mobile","creditCard","passport","postalCode","iban","jwt","coordinates","activeUrl","alphaNumeric","minLength","maxLength","fixedLength","confirmed","sameAs","notSameAs","in","notIn","vat","ulid","hexCode","boolean","number","range","positive","negative","nonNegative","nonPositive","withoutDecimals","accepted","enum","literal","object","array","notEmpty","distinct","record","tuple","union","unionGroup","unionOfTypes","nativeFile","globalTransforms","Macroable","static","macro","instanceProperty","self","inheritedProperties","instanceMacros","configurable","enumerable","writable","getter","accumulator","singleton","boundFn","bind","prop","propValue","UPPERCASE","LOWERCASE","LEADING_CAPITAL","SEPARATORS","IDENTIFIER","LEADING_SEPARATORS","source","SEPARATORS_AND_IDENTIFIER","NUMBERS_AND_IDENTIFIER","raw","camelCase","pascalCase","preserveConsecutiveUppercase","capitalizeAfterNumber","leadingPrefix","toLocaleLowerCase","toLocaleUpperCase","isLastCharLower","isLastCharUpper","isLastLastCharUpper","isLastLastCharPreserved","character","preserveCamelCase","previousWasNumber","previousWasUppercase","characters","isUpperCase","nextCharIsUpperCase","processWithCasePreservation","transformNumericIdentifier","identifier","nextCharacter","replaceAll","postProcess","testParameter","filters","supportedProtocols","normalizeUrl","urlString","defaultProtocol","normalizeProtocol","forceHttp","forceHttps","stripAuthentication","stripHash","stripTextFragment","stripWWW","removeQueryParameters","removeTrailingSlash","removeSingleSlash","removeDirectoryIndex","removeExplicitPort","sortQueryParameters","removePath","transformPath","type","hash","groups","mediaType","isBase64","at","mimeType","normalizedMediaType","attribute","Boolean","unshift","hashPart","normalizeDataURL","hasCustomProtocol","hasRelativeProtocol","urlObject","pathname","protocolRegex","lastIndex","protocolAtIndex","decodeURI","pathComponents","lastComponent","newComponents","searchParams","delete","keepQueryParameters","originalSearch","sort","decodeURIComponent","partsWithoutEquals","decoded","oldUrlString","stripProtocol","default_normalize_email_options","raw_parts","gmail_remove_subaddress","gmail_remove_dots","dotsReplacer","all_lowercase","gmail_lowercase","gmail_convert_googlemaildotcom","icloud_domains","icloud_remove_subaddress","icloud_lowercase","outlookdotcom_domains","outlookdotcom_remove_subaddress","outlookdotcom_lowercase","yahoo_domains","yahoo_remove_subaddress","components","yahoo_lowercase","yandex_domains","yandex_lowercase","yandex_convert_yandexru","CompilerBuffer","content","newLine","writeStatement","statement","child","flush","BaseNode","node","parentField","compiler","variablesCounter","createFieldFor","defineField","buffer","parseFnRefId","variableName","valueExpression","parentExpression","fieldNameExpression","parentValueExpression","fieldPathOutputExpression","defineFieldVariables","parseFnId","defineArrayGuard","guardedCodeSnippet","defineIsValidGuard","bail","defineFieldNullOutput","allowNull","conditional","outputExpression","transformFnRefId","defineFieldValidations","validations","dropMissingCheck","existenceCheckExpression","one","isAsync","implicit","ruleFnId","callable","conditions","wrappingCode","first","wrapInConditional","emitValidationSnippet","defineArrayInitialOutput","outputValueExpression","defineFieldExistenceValidations","isOptional","validateArrayField","TupleNodeCompiler","compileTupleChildren","fieldPathExpression","properties","compileNode","compile","isArrayValidBlock","allowUnknownProperties","ArrayNodeCompiler","compileArrayElements","arrayElementsBuffer","each","loopCodeSnippet","startingIndex","defineArrayLoop","defineElseCondition","conditionalFnRefId","defineConditionalGuard","UnionNodeCompiler","compileUnionChildren","childrenBuffer","conditionalBuffer","schema","callParseFunction","elseConditionalFnRefId","defineObjectGuard","defineObjectInitialOutput","validateObjectField","RecordNodeCompiler","compileRecordElements","recordElementsBuffer","defineRecordLoop","isObjectValidBlock","isValueAnObjectBlock","defineMoveProperties","fieldsToIgnore","ObjectNodeCompiler","getFieldNames","fieldNames","groupsFieldNames","flatMap","group","getGroupFieldNames","condition","compileObjectChildren","compileObjectGroups","compileObjectGroup","guardBuffer","isValueAnObject","LiteralNodeCompiler","dataTypeValidatorFnId","validatorFnId","validateLiteralField","defineFieldValueOutput","transformFnId","NUMBER_CHAR_RE","VALID_CHARS","isUppercase","toVariableName","previousUpper","previousSplitter","buff","isSplitter","isUpper","lastChar","splitByCase","upperFirst","lowerFirst","AsyncFunction","getPrototypeOf","Compiler","rootNode","convertEmptyStringsToNull","initiateJSOutput","defineInlineErrorMessages","finishJSOutput","compileNodes","toAsyncFunction","createArrayField","createRootField","propertyName","createObjectField","createTupleField","createRecordField","outputFunction","createRule","validator","metaData","toJSONSchema","UNIQUE_NAME","for","IS_OF_TYPE","PARSE","VALIDATION","SUBTYPE","requiredWhen","checker","shouldBeRequired","isDefined","ConditionalValidations","otherField","operator","use","otherFieldValue","requiredIfExists","fieldsToExist","requiredIfAnyExists","requiredIfMissing","requiredIfAnyMissing","NullableModifier$1","OptionalModifier$1","transform","transformer","TransformModifier","MetaModifier$1","anyOf","refs","nullable","cloneValidations","validation","compileValidations","track","trackTransformer","BaseLiteralType","dataTypeValidator","cloneOptions","compileValidation","callback","state","subtype","toCamelCase","camelcase","trackParser","VineAny","enumRule","choices","VineEnum","values","getChoices","dateRule","$value","$formats","mutate","equalsRule$1","compare","expectedDateTime","afterRule","afterOrEqualRule","beforeRule","beforeOrEqualRule","sameAsRule$1","notSameAsRule$1","afterFieldRule","afterOrSameAsRule","beforeFieldRule","beforeOrSameAsRule","weekendRule","weekdayRule","VineDate","equals","after","afterOrEqual","before","beforeOrEqual","afterField","afterOrSameAs","beforeField","beforeOrSameAs","weekend","weekday","VineNull","UnionConditional","trackConditional","VineOptional","VineUnion","conditionals","otherwiseCallback","otherwise","cloned","if","conditon","else","NullableModifier","OptionalModifier","MetaModifier","BaseType","VineTuple","schemas","items","minItems","maxItems","additionalItems","minLengthRule$2","maxLengthRule$2","fixedLengthRule$2","size","notEmptyRule","distinctRule","compactRule","VineArray","compact","expectedLength","VineCamelCaseObject","VineObject","getProperties","pick","omit","merge","property","entries","additionalProperties","partial","minLengthRule$1","minProperties","maxLengthRule$1","maxProperties","fixedLengthRule$1","validateKeysRule","VineRecord","validateKeys","stringRule","emailRule","mobileRule","normalizedOptions","ipAddressRule","regexRule","expression","hexCodeRule","urlRule","activeUrlRule","alphaRule","characterSet","allowSpaces","allowDashes","allowUnderscores","alphaNumericRule","minLengthRule","maxLengthRule","fixedLengthRule","endsWithRule","startsWithRule","sameAsRule","notSameAsRule","confirmedRule","as","confirmationField","originalField","inRule$1","notInRule","list","creditCardRule","providers","find","providersList","passportRule","countryCodes","vatRule","postalCodeRule","uuidRule","ulidRule","asciiRule","ibanRule","jwtRule","coordinatesRule","trimRule","normalizeEmailRule","normalizeEmailValue","toUpperCaseRule","toLowerCaseRule","toCamelCaseRule","escapeRule","escapeValue","normalizeUrlRule","VineString","escape","normalizeEmail","numberRule","strict","POSITIVE_INFINITY","NEGATIVE_INFINITY","minRule","minimum","maxRule","maximum","rangeRule","positiveRule","negativeRule","exclusiveMaximum","nonNegativeRule","nonPositiveRule","decimalRule","withoutDecimalsRule","isInteger","inRule","VineNumber","booleanRule","valueAsBoolean","VineBoolean","equalsRule","comparedValue","VineLiteral","ACCEPTED_VALUES","acceptedRule","VineAccepted","ObjectGroup","GroupConditional","VineNativeEnum","isNativeFileRule","File","minSizeRule","maxSizeRule","mimeTypesRule","mimeTypes","VineNativeFile","maxSize","minSize","types","VineUnionOfTypes","SchemaBuilder","any","schemasInUse","clear","COMPILER_ERROR_MESSAGES","EMPTY_OBJECT","VineValidator","compiled","jsonSchema","messagesProvider","errorReporter","counter","ref","trackValidation","fn","refsBuilder","compilerNode","metaDataValidator","validateFn","validate","validateOptions","structuredClone","vendor","tryValidate","issues","path","vine","create","schemaOrProperties","validatorOptions","withMetaData","VINEJS","promises","config","package","extendValidator","form","validationPromise","flatMapValues","then","setValidationAsyncData","catch","handleAsyncFail","executeAsyncValidation","fieldError","validationAsyncData","valid","invalidate","class"],"mappings":"kZAAoEA,UAAwI,WAA0B,IAAIC,EAAE,IAAIC,EAAE,IAAIC,EAAE,KAAKC,EAAE,cAAcC,EAAE,SAASC,EAAE,SAASC,EAAE,OAAOC,EAAE,MAAMC,EAAE,OAAOC,EAAE,QAAQC,EAAE,UAAUC,EAAE,OAAOC,EAAE,OAAOC,EAAE,eAAeC,EAAE,6FAA6FC,EAAE,uFAAuFC,EAAE,CAACC,KAAK,KAAKC,SAAS,2DAA2DC,MAAM,KAAKC,OAAO,wFAAwFD,MAAM,KAAKE,QAAQ,SAASrB,GAAG,IAAIC,EAAE,CAAC,KAAK,KAAK,KAAK,MAAMC,EAAEF,EAAE,IAAI,MAAM,IAAIA,GAAGC,GAAGC,EAAE,IAAI,KAAKD,EAAEC,IAAID,EAAE,IAAI,GAAG,GAAGqB,EAAE,SAAStB,EAAEC,EAAEC,GAAG,IAAIC,EAAEoB,OAAOvB,GAAG,OAAOG,GAAGA,EAAEqB,QAAQvB,EAAED,EAAE,GAAGyB,MAAMxB,EAAE,EAAEE,EAAEqB,QAAQE,KAAKxB,GAAGF,CAAC,EAAE2B,EAAE,CAACtB,EAAEiB,EAAEM,EAAE,SAAS5B,GAAG,IAAIC,GAAGD,EAAE6B,YAAY3B,EAAE4B,KAAKC,IAAI9B,GAAGE,EAAE2B,KAAKE,MAAM9B,EAAE,IAAIE,EAAEF,EAAE,GAAG,OAAOD,GAAG,EAAE,IAAI,KAAKqB,EAAEnB,EAAE,EAAE,K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