diff --git a/cypress.config.ts b/cypress.config.ts index 8a7161f..eb9779c 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -23,4 +23,6 @@ export default defineConfig({ viewportHeight: 800, viewportWidth: 1920, }, + + numTestsKeptInMemory: 0, }); diff --git a/cypress/support/component.ts b/cypress/support/component.ts index 92398f0..64e9e44 100644 --- a/cypress/support/component.ts +++ b/cypress/support/component.ts @@ -7,6 +7,7 @@ import VStepperForm from '../../src/plugin/VStepperForm.vue'; import * as DATA from '../templates/testData'; import type { Component } from 'vue'; import "cypress-real-events"; +import { pluginOptionsInjectionKey } from '../../src/plugin/utils/globals'; // declare global { @@ -95,7 +96,7 @@ Cypress.Commands.add('mountComponent', (options: MountComponentOptions = {}) => validationSchema: stepperProps.validationSchema ?? undefined, ...stepperProps, }, - global: { provide: { globalOptions: { ...globalOptions, ...globalProps }, }, }, + global: { provide: { [pluginOptionsInjectionKey]: { ...globalOptions, ...globalProps }, }, }, }).as('wrapper'); }); }); diff --git a/cypress/templates/testData.ts b/cypress/templates/testData.ts index c512859..1fd1a0e 100644 --- a/cypress/templates/testData.ts +++ b/cypress/templates/testData.ts @@ -5,6 +5,7 @@ import { object as yupObject, } from 'yup'; import { useDeepMerge } from '../../src/plugin/composables/helpers'; +import { pluginOptionsInjectionKey } from '../../src/plugin/utils/globals'; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Shared // @@ -143,7 +144,6 @@ const defaultFields = { name: 'combobox', placeholder: 'Select an item', type: 'combobox' as const, - variant: 'outlined', }, color: { label: 'Color', @@ -592,7 +592,7 @@ const navigationTest = { }, global: { provide: { - globalOptions: { + [pluginOptionsInjectionKey]: { color: 'primary', validateOn: 'blur', variant: 'outlined', diff --git a/dist/FieldLabel-BRQ0K1ZH.mjs b/dist/FieldLabel-C78b4p01.mjs similarity index 97% rename from dist/FieldLabel-BRQ0K1ZH.mjs rename to dist/FieldLabel-C78b4p01.mjs index d9ef90c..6c741e3 100644 --- a/dist/FieldLabel-BRQ0K1ZH.mjs +++ b/dist/FieldLabel-C78b4p01.mjs @@ -1,7 +1,7 @@ import { FieldLabel as a } from "./vuetify-stepper-form.es.js"; /** * @name @wdns/vuetify-stepper-form - * @version 1.0.0 + * @version 1.0.1 * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) * @copyright Copyright 2024, WebDevNerdStuff diff --git a/dist/FieldLabel-mS_InZKL.js b/dist/FieldLabel-_ATH8rEz.js similarity index 98% rename from dist/FieldLabel-mS_InZKL.js rename to dist/FieldLabel-_ATH8rEz.js index 1a04660..b2b2c46 100644 --- a/dist/FieldLabel-mS_InZKL.js +++ b/dist/FieldLabel-_ATH8rEz.js @@ -1,6 +1,6 @@ "use strict";/** * @name @wdns/vuetify-stepper-form - * @version 1.0.0 + * @version 1.0.1 * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) * @copyright Copyright 2024, WebDevNerdStuff diff --git a/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts b/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts index 5808b8a..52613f7 100644 --- a/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts +++ b/dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts @@ -53,6 +53,7 @@ declare function __VLS_template(): { blur: () => Promise; change: () => Promise; input: () => Promise; + onUpdate: (value: any) => void; field: { options: KeyStringAny | undefined; required: boolean | undefined; @@ -101,7 +102,6 @@ declare function __VLS_template(): { variant?: string | undefined; transition?: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"] | undefined; errorMessages: any; - modelValue: any; }; }) => any>>; refs: {}; diff --git a/dist/plugin/index.d.ts b/dist/plugin/index.d.ts index c94a2b6..229680e 100644 --- a/dist/plugin/index.d.ts +++ b/dist/plugin/index.d.ts @@ -2,7 +2,6 @@ import { PluginOptions } from './types'; import { Plugin } from 'vue'; import { default as FieldLabel } from './components/shared/FieldLabel.vue'; import { default as VStepperForm } from './VStepperForm.vue'; -export declare const globalOptions: unique symbol; export declare function createVStepperForm(options?: PluginOptions): Plugin; export default VStepperForm; export { FieldLabel, VStepperForm, }; diff --git a/dist/plugin/utils/globals.d.ts b/dist/plugin/utils/globals.d.ts index 2aa50e4..6aaa52a 100644 --- a/dist/plugin/utils/globals.d.ts +++ b/dist/plugin/utils/globals.d.ts @@ -1 +1,4 @@ +import { InjectionKey } from 'vue'; +import { PluginOptions } from '../types'; export declare const componentName = "v-stepper-form"; +export declare const pluginOptionsInjectionKey: InjectionKey; diff --git a/dist/vuetify-stepper-form.cjs.js b/dist/vuetify-stepper-form.cjs.js index 2f59a45..905e818 100644 --- a/dist/vuetify-stepper-form.cjs.js +++ b/dist/vuetify-stepper-form.cjs.js @@ -1,15 +1,15 @@ "use strict";/** * @name @wdns/vuetify-stepper-form - * @version 1.0.0 + * @version 1.0.1 * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) * @copyright Copyright 2024, WebDevNerdStuff * @homepage https://webdevnerdstuff.github.io/vuetify-stepper-form/ * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form * @license MIT License - */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ia=require("@vueuse/core"),Sa=require("vuetify"),wa=require("@wdns/vuetify-color-field"),ze=require("vuetify/components"),Ta=require("vuetify/labs/VDateInput"),xt=require("vuetify/lib/components/VBtn/index.mjs"),xn=require("vuetify/lib/components/VItemGroup/index.mjs"),_n=require("vuetify/lib/components/VLabel/index.mjs"),Pn=require("vuetify/lib/components/VCheckbox/index.mjs"),xa=require("vuetify/lib/components/VRadio/index.mjs"),Pa=require("vuetify/lib/components/VRadioGroup/index.mjs"),Aa=require("vuetify/lib/components/VSwitch/index.mjs"),Te=require("vuetify/lib/components/VGrid/index.mjs"),Na=require("vuetify/lib/components/VCard/index.mjs"),qe=require("vuetify/lib/components/VList/index.mjs"),ja=require("vuetify/lib/components/VDivider/index.mjs"),Je=require("vuetify/lib/components/VStepper/index.mjs"),Ra=require("vuetify/lib/components/VTooltip/index.mjs"),Ua={"data-cy":"vsf-field-label"},Da=["innerHTML"],Ba={key:0,class:"text-error ms-1"},$e=t.defineComponent({__name:"FieldLabel",props:{label:{},required:{type:Boolean,default:!1}},setup:e=>(n,a)=>(t.openBlock(),t.createElementBlock("div",Ua,[t.createElementVNode("span",{innerHTML:n.label},null,8,Da),a[0]||(a[0]=t.createTextVNode()),n.required?(t.openBlock(),t.createElementBlock("span",Ba,"*")):t.createCommentVNode("",!0)]))}),Ro={autoPageDelay:250,direction:"horizontal",disabled:!1,editable:!0,jumpAhead:!1,keepValuesOnUnmount:!1,navButtonSize:"large",tooltipLocation:"bottom",tooltipOffset:10,tooltipTransition:"fade-transition",transition:"fade-transition",width:"100%"};var ut,An,Kt,Ct,Ma=Object.create,Nn=Object.defineProperty,La=Object.getOwnPropertyDescriptor,yn=Object.getOwnPropertyNames,za=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty,mt=(ut={"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}},function(){return ut&&(An=(0,ut[yn(ut)[0]])(ut=0)),An}),Ha=(Kt={"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,n){function a(l){return l instanceof Buffer?Buffer.from(l):new l.constructor(l.buffer.slice(),l.byteOffset,l.length)}mt(),n.exports=function(l){if((l=l||{}).circles)return function(u){const s=[],c=[],m=new Map;if(m.set(Date,h=>new Date(h)),m.set(Map,(h,v)=>new Map(V(Array.from(h),v))),m.set(Set,(h,v)=>new Set(V(Array.from(h),v))),u.constructorHandlers)for(const h of u.constructorHandlers)m.set(h[0],h[1]);let p=null;return u.proto?y:g;function V(h,v){const S=Object.keys(h),I=new Array(S.length);for(let T=0;Tnew Date(u)),r.set(Map,(u,s)=>new Map(i(Array.from(u),s))),r.set(Set,(u,s)=>new Set(i(Array.from(u),s))),l.constructorHandlers)for(const u of l.constructorHandlers)r.set(u[0],u[1]);let o=null;return l.proto?function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c}:function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){if(Object.hasOwnProperty.call(s,m)===!1)continue;const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c};function i(u,s){const c=Object.keys(u),m=new Array(c.length);for(let p=0;p(a=e!=null?Ma(za(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of yn(r))Fa.call(l,u)||u===o||Nn(l,u,{get:()=>r[u],enumerable:!(i=La(r,u))||i.enumerable});return l})(Nn(a,"default",{value:e,enumerable:!0}),e)))(Ha()),Ka=/(?:^|[-_/])(\w)/g;function qa(e,n){return n?n.toUpperCase():""}var Rn=(0,$a.default)({circles:!0});const Wa={trailing:!0};function nt(e,n=25,a={}){if(a={...Wa,...a},!Number.isFinite(n))throw new TypeError("Expected `wait` to be a finite number");let l,r,o,i,u=[];const s=(c,m)=>(o=async function(p,V,g){return await p.apply(V,g)}(e,c,m),o.finally(()=>{if(o=null,a.trailing&&i&&!r){const p=s(c,i);return i=null,p}}),o);return function(...c){return o?(a.trailing&&(i=c),o):new Promise(m=>{const p=!r&&a.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const V=a.leading?l:s(this,c);for(const g of u)g(V);u=[]},n),p?(l=s(this,c),m(l)):u.push(m)})}}function en(e,n={},a){for(const l in e){const r=e[l],o=a?`${a}:${l}`:l;typeof r=="object"&&r!==null?en(r,n,o):typeof r=="function"&&(n[o]=r)}return n}const Ga={run:e=>e()},Do=console.createTask!==void 0?console.createTask:()=>Ga;function Ya(e,n){const a=n.shift(),l=Do(a);return e.reduce((r,o)=>r.then(()=>l.run(()=>o(...n))),Promise.resolve())}function Za(e,n){const a=n.shift(),l=Do(a);return Promise.all(e.map(r=>l.run(()=>r(...n))))}function qt(e,n){for(const a of[...e])a(n)}class Xa{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,a,l={}){if(!n||typeof a!="function")return()=>{};const r=n;let o;for(;this._deprecatedHooks[n];)o=this._deprecatedHooks[n],n=o.to;if(o&&!l.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!a.name)try{Object.defineProperty(a,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(a),()=>{a&&(this.removeHook(n,a),a=void 0)}}hookOnce(n,a){let l,r=(...o)=>(typeof l=="function"&&l(),l=void 0,r=void 0,a(...o));return l=this.hook(n,r),l}removeHook(n,a){if(this._hooks[n]){const l=this._hooks[n].indexOf(a);l!==-1&&this._hooks[n].splice(l,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,a){this._deprecatedHooks[n]=typeof a=="string"?{to:a}:a;const l=this._hooks[n]||[];delete this._hooks[n];for(const r of l)this.hook(n,r)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const a in n)this.deprecateHook(a,n[a])}addHooks(n){const a=en(n),l=Object.keys(a).map(r=>this.hook(r,a[r]));return()=>{for(const r of l.splice(0,l.length))r()}}removeHooks(n){const a=en(n);for(const l in a)this.removeHook(l,a[l])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...a){return a.unshift(n),this.callHookWith(Ya,n,...a)}callHookParallel(n,...a){return a.unshift(n),this.callHookWith(Za,n,...a)}callHookWith(n,a,...l){const r=this._before||this._after?{name:a,args:l,context:{}}:void 0;this._before&&qt(this._before,r);const o=n(a in this._hooks?[...this._hooks[a]]:[],l);return o instanceof Promise?o.finally(()=>{this._after&&r&&qt(this._after,r)}):(this._after&&r&&qt(this._after,r),o)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const a=this._before.indexOf(n);a!==-1&&this._before.splice(a,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const a=this._after.indexOf(n);a!==-1&&this._after.splice(a,1)}}}}function Bo(){return new Xa}var Ja=Object.create,Un=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyNames,el=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,Mo=(e,n)=>function(){return n||(0,e[bn(e)[0]])((n={exports:{}}).exports,n),n.exports},k=((e,n)=>function(){return e&&(n=(0,e[bn(e)[0]])(e=0)),n})({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}}),nl=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,n){k(),function(a){var l={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},u={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},s=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),m=[".","!","~","*","'","(",")"].join(""),p=function(h,v){var S,I,T,U,M,le,G,oe,Q,Z,w,D,ne,z,X="-",W="",F="",K=!0,te={},J="";if(typeof h!="string")return"";if(typeof v=="string"&&(X=v),G=u.en,oe=i.en,typeof v=="object")for(w in S=v.maintainCase||!1,te=v.custom&&typeof v.custom=="object"?v.custom:te,T=+v.truncate>1&&v.truncate||!1,U=v.uric||!1,M=v.uricNoSlash||!1,le=v.mark||!1,K=v.symbols!==!1&&v.lang!==!1,X=v.separator||X,U&&(J+=s),M&&(J+=c),le&&(J+=m),G=v.lang&&u[v.lang]&&K?u[v.lang]:K?u.en:{},oe=v.lang&&i[v.lang]?i[v.lang]:v.lang===!1||v.lang===!0?{}:i.en,v.titleCase&&typeof v.titleCase.length=="number"&&Array.prototype.toString.call(v.titleCase)?(v.titleCase.forEach(function(q){te[q+""]=q+""}),I=!0):I=!!v.titleCase,v.custom&&typeof v.custom.length=="number"&&Array.prototype.toString.call(v.custom)&&v.custom.forEach(function(q){te[q+""]=q+""}),Object.keys(te).forEach(function(q){var ie;ie=q.length>1?new RegExp("\\b"+g(q)+"\\b","gi"):new RegExp(g(q),"gi"),h=h.replace(ie,te[q])}),te)J+=w;for(J=g(J+=X),ne=!1,z=!1,Z=0,D=(h=h.replace(/(^\s+|\s+$)/g,"")).length;Z=0?(F+=w,w=""):z===!0?(w=o[F]+l[w],F=""):w=ne&&l[w].match(/[A-Za-z0-9]/)?" "+l[w]:l[w],ne=!1,z=!1):w in o?(F+=w,w="",Z===D-1&&(w=o[F]),z=!0):!G[w]||U&&s.indexOf(w)!==-1||M&&c.indexOf(w)!==-1?(z===!0?(w=o[F]+w,F="",z=!1):ne&&(/[A-Za-z0-9]/.test(w)||W.substr(-1).match(/A-Za-z0-9]/))&&(w=" "+w),ne=!1):(w=ne||W.substr(-1).match(/[A-Za-z0-9]/)?X+G[w]:G[w],w+=h[Z+1]!==void 0&&h[Z+1].match(/[A-Za-z0-9]/)?X:"",ne=!0),W+=w.replace(new RegExp("[^\\w\\s"+J+"_-]","g"),X);return I&&(W=W.replace(/(\w)(\S*)/g,function(q,ie,b){var L=ie.toUpperCase()+(b!==null?b:"");return Object.keys(te).indexOf(L.toLowerCase())<0?L:L.toLowerCase()})),W=W.replace(/\s+/g,X).replace(new RegExp("\\"+X+"+","g"),X).replace(new RegExp("(^\\"+X+"+|\\"+X+"+$)","g"),""),T&&W.length>T&&(Q=W.charAt(T)===X,W=W.slice(0,T),Q||(W=W.slice(0,W.lastIndexOf(X)))),S||I||(W=W.toLowerCase()),W},V=function(h){return function(v){return p(v,h)}},g=function(h){return h.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(h,v){for(var S in v)if(v[S]===h)return!0};if(n!==void 0&&n.exports)n.exports=p,n.exports.createSlug=V;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(a.getSlug||a.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";a.getSlug=p,a.createSlug=V}catch{}}(e)}}),ol=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,n){k(),n.exports=nl()}});function Lo(e){return function(n){return!(!n||!n.__v_isReadonly)}(e)?Lo(e.__v_raw):!(!e||!e.__v_isReactive)}function Wt(e){return!(!e||e.__v_isRef!==!0)}function dt(e){const n=e&&e.__v_raw;return n?dt(n):e}function al(e){const n=e.__file;if(n)return(a=function(l,r){let o=l.replace(/^[a-z]:/i,"").replace(/\\/g,"/");o.endsWith(`index${r}`)&&(o=o.replace(`/index${r}`,r));const i=o.lastIndexOf("/"),u=o.substring(i+1);{const s=u.lastIndexOf(r);return u.substring(0,s)}}(n,".vue"))&&`${a}`.replace(Ka,qa);var a}function Dn(e,n){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=n,n}function Nt(e){return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__?e.__VUE_DEVTOOLS_NEXT_APP_RECORD__:e.root?e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__:void 0}function zo(e){var n,a;const l=(n=e.subTree)==null?void 0:n.type,r=Nt(e);return!!r&&((a=r==null?void 0:r.types)==null?void 0:a.Fragment)===l}function jt(e){var n,a,l;const r=function(i){var u;const s=i.name||i._componentTag||i.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||i.__name;return s==="index"&&((u=i.__file)!=null&&u.endsWith("index.vue"))?"":s}((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(a=(n=e.parent)==null?void 0:n.type)==null?void 0:a.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return Dn(e,i);for(const i in(l=e.appContext)==null?void 0:l.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return Dn(e,i);return al((e==null?void 0:e.type)||{})||"Anonymous Component"}function Gt(e,n){return n=n||`${e.id}:root`,e.instanceMap.get(n)||e.instanceMap.get(":root")}k(),k(),k(),k(),k(),k(),k(),k();var It,ll=class{constructor(){this.refEditor=new rl}set(e,n,a,l){const r=Array.isArray(n)?n:n.split(".");for(;r.length>1;){const u=r.shift();e instanceof Map&&(e=e.get(u)),e=e instanceof Set?Array.from(e.values())[u]:e[u],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const o=r[0],i=this.refEditor.get(e)[o];l?l(e,o,a):this.refEditor.isRef(i)?this.refEditor.set(i,a):e[o]=a}get(e,n){const a=Array.isArray(n)?n:n.split(".");for(let l=0;lr;)e=e[l.shift()],this.refEditor.isRef(e)&&(e=this.refEditor.get(e));return e!=null&&Object.prototype.hasOwnProperty.call(e,l[0])}createDefaultSetCallback(e){return(n,a,l)=>{if((e.remove||e.newKey)&&(Array.isArray(n)?n.splice(a,1):dt(n)instanceof Map?n.delete(a):dt(n)instanceof Set?n.delete(Array.from(n.values())[a]):Reflect.deleteProperty(n,a)),!e.remove){const r=n[e.newKey||a];this.refEditor.isRef(r)?this.refEditor.set(r,l):dt(n)instanceof Map?n.set(e.newKey||a,l):dt(n)instanceof Set?n.add(l):n[e.newKey||a]=l}}}},rl=class{set(e,n){if(Wt(e))e.value=n;else{if(e instanceof Set&&Array.isArray(n))return e.clear(),void n.forEach(r=>e.add(r));const a=Object.keys(n);if(e instanceof Map){const r=new Set(e.keys());return a.forEach(o=>{e.set(o,Reflect.get(n,o)),r.delete(o)}),void r.forEach(o=>e.delete(o))}const l=new Set(Object.keys(e));a.forEach(r=>{Reflect.set(e,r,Reflect.get(n,r)),l.delete(r)}),l.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return Wt(e)?e.value:e}isRef(e){return Wt(e)||Lo(e)}};function tn(e){return zo(e)?function(n){if(!n.children)return[];const a=[];return n.children.forEach(l=>{l.component?a.push(...tn(l.component)):l!=null&&l.el&&a.push(l.el)}),a}(e.subTree):e.subTree?[e.subTree.el]:[]}function il(e,n){return(!e.top||n.tope.bottom)&&(e.bottom=n.bottom),(!e.left||n.lefte.right)&&(e.right=n.right),e}k(),k(),k();var Bn={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ze(e){const n=e.subTree.el;return typeof window>"u"?Bn:zo(e)?function(a){const l=function(){const o={top:0,bottom:0,left:0,right:0,get width(){return o.right-o.left},get height(){return o.bottom-o.top}};return o}();if(!a.children)return l;for(let o=0,i=a.children.length;o{n(r)})}}var Mn,St=null;function dl(){return new Promise(e=>{function n(){(function(){const a=A.__VUE_INSPECTOR__,l=a.openInEditor;a.openInEditor=async(...r)=>{a.disable(),l(...r)}})(),e(A.__VUE_INSPECTOR__)}A.__VUE_INSPECTOR__?n():function(a){let l=0;const r=setInterval(()=>{A.__VUE_INSPECTOR__&&(clearInterval(r),l+=30,a()),l>=5e3&&clearInterval(r)},30)}(()=>{n()})})}k(),(Mn=A).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Mn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0),k(),k(),k();var Ln;function fl(){if(!Uo||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__");return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}k(),k(),k(),(Ln=A).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Ln.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var zn,pl=new Proxy(A.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get:(e,n,a)=>Reflect.get(e,n,a)});(zn=A).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(zn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Fn,Hn,$n,Kn,qn,kn=new Proxy(A.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get:(e,n,a)=>Reflect.get(e,n,a)}),Go=nt(()=>{lt.hooks.callHook("sendInspectorToClient",Yo())});function Yo(){return kn.filter(e=>e.descriptor.app===Ce.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var n;const a=e.descriptor,l=e.options;return{id:l.id,label:l.label,logo:a.logo,icon:`custom-ic-baseline-${(n=l==null?void 0:l.icon)==null?void 0:n.replace(/_/g,"-")}`,packageName:a.packageName,homepage:a.homepage,pluginId:a.id}})}function Pt(e,n){return kn.find(a=>a.options.id===e&&(!n||a.descriptor.app===n))}(Fn=A).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(Fn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]),(Hn=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Hn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={}),($n=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||($n.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=""),(Kn=A).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Kn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]),(qn=A).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(qn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Wn,We="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";(Wn=A)[We]!=null||(Wn[We]={connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:fl()});var vl=nt(e=>{lt.hooks.callHook("devtoolsStateUpdated",{state:e})});nt((e,n)=>{lt.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:n})});var Rt=new Proxy(A.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_APP_RECORDS__:A.__VUE_DEVTOOLS_KIT_APP_RECORDS__[n]}),Ce=new Proxy(A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:n==="id"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[n]});function Gn(){vl({...A[We],appRecords:Rt.value,activeAppRecordId:Ce.id,tabs:A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}var Yn,be=new Proxy(A[We],{get:(e,n)=>n==="appRecords"?Rt:n==="activeAppRecordId"?Ce.id:n==="tabs"?A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:n==="commands"?A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:A[We][n],deleteProperty:(e,n)=>(delete e[n],!0),set:(e,n,a)=>(A[We],e[n]=a,A[We][n]=a,!0)});function ml(e={}){var n,a,l;const{file:r,host:o,baseUrl:i=window.location.origin,line:u=0,column:s=0}=e;if(r){if(o==="chrome-extension"){r.replace(/\\/g,"\\\\");const c=(a=(n=window.VUE_DEVTOOLS_CONFIG)==null?void 0:n.openInEditorHost)!=null?a:"/";fetch(`${c}__open-in-editor?file=${encodeURI(r)}`).then(m=>{m.ok})}else if(be.vitePluginDetected){const c=(l=A.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?l:i;A.__VUE_INSPECTOR__.openInEditor(c,r,u,s)}}}k(),k(),k(),k(),k(),(Yn=A).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Yn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Zn,Xn,Cn=new Proxy(A.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get:(e,n,a)=>Reflect.get(e,n,a)});function on(e){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].defaultValue}),n}function In(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function hl(e){var n,a,l;const r=(a=(n=Cn.find(o=>{var i;return o[0].id===e&&!!((i=o[0])!=null&&i.settings)}))==null?void 0:n[0])!=null?a:null;return(l=r==null?void 0:r.settings)!=null?l:null}function Zo(e,n){var a,l,r;const o=In(e);if(o){const i=localStorage.getItem(o);if(i)return JSON.parse(i)}if(e){const i=(l=(a=Cn.find(u=>u[0].id===e))==null?void 0:a[0])!=null?l:null;return on((r=i==null?void 0:i.settings)!=null?r:{})}return on(n)}k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k();var xe=(Xn=(Zn=A).__VUE_DEVTOOLS_HOOK)!=null?Xn:Zn.__VUE_DEVTOOLS_HOOK=Bo(),gl={vueAppInit(e){xe.hook("app:init",e)},vueAppUnmount(e){xe.hook("app:unmount",e)},vueAppConnected(e){xe.hook("app:connected",e)},componentAdded:e=>xe.hook("component:added",e),componentEmit:e=>xe.hook("component:emit",e),componentUpdated:e=>xe.hook("component:updated",e),componentRemoved:e=>xe.hook("component:removed",e),setupDevtoolsPlugin(e){xe.hook("devtools-plugin:setup",e)},perfStart:e=>xe.hook("perf:start",e),perfEnd:e=>xe.hook("perf:end",e)},Xo={on:gl,setupDevToolsPlugin:(e,n)=>xe.callHook("devtools-plugin:setup",e,n)},_l=class{constructor({plugin:e,ctx:n}){this.hooks=n.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var n;if(be.highPerfModeEnabled)return;const a=Yo().find(l=>l.packageName===this.plugin.descriptor.packageName);if(a!=null&&a.id){if(e){const l=[e.appContext.app,e.uid,(n=e.parent)==null?void 0:n.uid,e];xe.callHook("component:updated",...l)}else xe.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:a.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&function(n,a){const l=In(n);localStorage.getItem(l)||localStorage.setItem(l,JSON.stringify(on(a)))}(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,n){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:n,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return be.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){be.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Zo(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const n=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:n})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}};k(),k(),k(),k();var yl="__vue_devtool_undefined__",bl="__vue_devtool_infinity__",Vl="__vue_devtool_negative_infinity__",Ol="__vue_devtool_nan__";k(),k();var Jn,El={[yl]:"undefined",[Ol]:"NaN",[bl]:"Infinity",[Vl]:"-Infinity"};function Jo(e){A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||be.highPerfModeEnabled||(A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Cn.forEach(n=>{(function(a,l){const[r,o]=a;if(r.app!==l)return;const i=new _l({plugin:{setupFn:o,descriptor:r},ctx:lt});r.packageName==="vuex"&&i.on.editInspectorState(u=>{i.sendInspectorState(u.inspectorId)}),o(i)})(n,e)}))}Object.entries(El).reduce((e,[n,a])=>(e[a]=n,e),{}),k(),k(),k(),k(),k(),(Jn=A).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(Jn.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set),k(),k();var Qn,eo,to,ft="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";function an(e){return e.map(n=>{let{path:a,name:l,children:r,meta:o}=n;return r!=null&&r.length&&(r=an(r)),{path:a,name:l,children:r,meta:o}})}function kl(e,n){function a(){var l;const r=(l=e.app)==null?void 0:l.config.globalProperties.$router,o=function(s){if(s){const{fullPath:c,hash:m,href:p,path:V,name:g,matched:y,params:h,query:v}=s;return{fullPath:c,hash:m,href:p,path:V,name:g,params:h,query:v,matched:an(y)}}return s}(r==null?void 0:r.currentRoute.value),i=an(function(s){const c=new Map;return((s==null?void 0:s.getRoutes())||[]).filter(m=>!c.has(m.path)&&c.set(m.path,1))}(r)),u=console.warn;console.warn=()=>{},A[Qe]={currentRoute:o?Rn(o):{},routes:Rn(i)},A[ft]=r,console.warn=u}a(),Xo.on.componentUpdated(nt(()=>{var l;((l=n.value)==null?void 0:l.app)===e.app&&(a(),be.highPerfModeEnabled||lt.hooks.callHook("routerInfoUpdated",{state:A[Qe]}))},200))}(Qn=A)[Qe]!=null||(Qn[Qe]={currentRoute:null,routes:[]}),(eo=A)[ft]!=null||(eo[ft]={}),new Proxy(A[Qe],{get:(e,n)=>A[Qe][n]}),new Proxy(A[ft],{get(e,n){if(n==="value")return A[ft]}}),k(),(to=A).__VUE_DEVTOOLS_ENV__!=null||(to.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var no,st,oo=function(){const e=Bo();e.hook("addInspector",({inspector:l,plugin:r})=>{(function(o,i){var u,s;kn.push({options:o,descriptor:i,treeFilterPlaceholder:(u=o.treeFilterPlaceholder)!=null?u:"Search tree...",stateFilterPlaceholder:(s=o.stateFilterPlaceholder)!=null?s:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Nt(i.app)}),Go()})(l,r.descriptor)});const n=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(s=>{e.callHookWith(async c=>{await Promise.all(c.map(m=>m(u))),s()},"getInspectorTree")}),e.callHookWith(async s=>{await Promise.all(s.map(c=>c({inspectorId:l,rootNodes:u.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",n);const a=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},s={currentTab:`custom-inspector:${l}`};u.nodeId&&await new Promise(c=>{e.callHookWith(async m=>{await Promise.all(m.map(p=>p(u,s))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(m=>m({inspectorId:l,nodeId:u.nodeId,state:u.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",a),e.hook("customInspectorSelectNode",({inspectorId:l,nodeId:r,plugin:o})=>{const i=Pt(l,o.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:l,plugin:r})=>{(function(o,i){be.timelineLayersState[i.id]=!1,pl.push({...o,descriptorId:i.id,appRecord:Nt(i.app)})})(l,r.descriptor)}),e.hook("timelineEventAdded",({options:l,plugin:r})=>{var o;be.highPerfModeEnabled||!((o=be.timelineLayersState)!=null&&o[r.descriptor.id])&&!["performance","component-event","keyboard","mouse"].includes(l.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(u=>u(l)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:l})=>{const r=l.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const o=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===o).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:l})=>Ze(l)),e.hook("getComponentName",({instance:l})=>jt(l)),e.hook("componentHighlight",({uid:l})=>{const r=Ce.value.instanceMap.get(l);r&&function(o){const i=Ze(o);if(!i.width&&!i.height)return;const u=jt(o);ot()?En({bounds:i,name:u}):On({bounds:i,name:u})}(r)}),e.hook("componentUnhighlight",()=>{Wo()}),e}();(no=A).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(no.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:oo,get state(){return{...be,activeAppRecordId:Ce.id,activeAppRecord:Ce.value,appRecords:Rt.value}},api:(st=oo,{async getInspectorTree(e){const n={...e,app:Ce.value.app,rootNodes:[]};return await new Promise(a=>{st.callHookWith(async l=>{await Promise.all(l.map(r=>r(n))),a()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:Ce.value.app,state:null},a={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(l=>{st.callHookWith(async r=>{await Promise.all(r.map(o=>o(n,a))),l()},"getInspectorState")}),n.state},editInspectorState(e){const n=new ll,a={...e,app:Ce.value.app,set:(l,r=e.path,o=e.state.value,i)=>{n.set(l,r,o,i||n.createDefaultSetCallback(e.state))}};st.callHookWith(l=>{l.forEach(r=>r(a))},"editInspectorState")},sendInspectorState(e){const n=Pt(e);st.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector:()=>(window.addEventListener("mouseover",Yt),new Promise(e=>{function n(a){a.preventDefault(),a.stopPropagation(),cl(a,l=>{window.removeEventListener("click",n,!0),St=null,window.removeEventListener("mouseover",Yt);const r=ot();r&&(r.style.display="none"),e(JSON.stringify({id:l}))})}St=n,window.addEventListener("click",n,!0)})),cancelInspectComponentInspector:()=>(Wo(),window.removeEventListener("mouseover",Yt),window.removeEventListener("click",St,!0),void(St=null)),getComponentRenderCode(e){const n=Gt(Ce.value,e);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent:e=>function(n){const a=Gt(Ce.value,n.id);if(a){const[l]=tn(a);if(typeof l.scrollIntoView=="function")l.scrollIntoView({behavior:"smooth"});else{const r=Ze(a),o=document.createElement("div"),i={...Vn(r),position:"absolute"};Object.assign(o.style,i),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Ze(a);if(r.width||r.height){const o=jt(a),i=ot();i?En({...n,name:o,bounds:r}):On({...n,name:o,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}({id:e}),openInEditor:ml,getVueInspector:dl,toggleApp(e){const n=Rt.value.find(l=>l.id===e);var a;n&&(function(l){A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=l,Gn()}(e),a=n,A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=a,Gn(),kl(n,Ce),Go(),Jo(n.app))},inspectDOM(e){const n=Gt(Ce.value,e);if(n){const[a]=tn(n);a&&(A.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=a)}},updatePluginSettings(e,n,a){(function(l,r,o){const i=In(l),u=localStorage.getItem(i),s=JSON.parse(u||"{}"),c={...s,[r]:o};localStorage.setItem(i,JSON.stringify(c)),lt.hooks.callHookWith(m=>{m.forEach(p=>p({pluginId:l,key:r,oldValue:s[r],newValue:o,settings:c}))},"setPluginSettings")})(e,n,a)},getPluginSettings:e=>({options:hl(e),values:Zo(e)})})});var ao,lo,lt=A.__VUE_DEVTOOLS_KIT_CONTEXT__;k(),((e,n,a)=>{a=e!=null?Ja(el(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of bn(r))tl.call(l,u)||u===o||Un(l,u,{get:()=>r[u],enumerable:!(i=Qa(r,u))||i.enumerable})})(Un(a,"default",{value:e,enumerable:!0}),e)})(ol()),(ao=A).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(ao.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),k(),k(),k(),k(),(lo=A).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(lo.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=function(e){be.devtoolsClientDetected={...be.devtoolsClientDetected,...e};const n=Object.values(be.devtoolsClientDetected).some(Boolean);var a;a=!n,be.highPerfModeEnabled=a??!be.highPerfModeEnabled,!a&&Ce.value&&Jo(Ce.value.app)}),k(),k(),k(),k(),k(),k(),k();var Cl=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,n){this.keyToValue.set(e,n),this.valueToKey.set(n,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Qo=class{constructor(e){this.generateIdentifier=e,this.kv=new Cl}register(e,n){this.kv.getByValue(e)||(n||(n=this.generateIdentifier(e)),this.kv.set(n,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Il=class extends Qo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(e,n.allowProps),super.register(e,n.identifier)):super.register(e,n)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Sl(e,n){const a=function(r){if("values"in Object)return Object.values(r);const o=[];for(const i in r)r.hasOwnProperty(i)&&o.push(r[i]);return o}(e);if("find"in a)return a.find(n);const l=a;for(let r=0;rn(l,a))}function At(e,n){return e.indexOf(n)!==-1}function ro(e,n){for(let a=0;an.isApplicable(e))}findByName(e){return this.transfomers[e]}};k(),k();var ea=e=>e===void 0,bt=e=>typeof e=="object"&&e!==null&&e!==Object.prototype&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),ln=e=>bt(e)&&Object.keys(e).length===0,Fe=e=>Array.isArray(e),Vt=e=>e instanceof Map,Ot=e=>e instanceof Set,ta=e=>(n=>Object.prototype.toString.call(n).slice(8,-1))(e)==="Symbol",io=e=>typeof e=="number"&&isNaN(e),Tl=e=>(n=>typeof n=="boolean")(e)||(n=>n===null)(e)||ea(e)||(n=>typeof n=="number"&&!isNaN(n))(e)||(n=>typeof n=="string")(e)||ta(e);k();var na=e=>e.replace(/\./g,"\\."),Zt=e=>e.map(String).map(na).join("."),ht=e=>{const n=[];let a="";for(let r=0;rnull,()=>{}),De(e=>typeof e=="bigint","bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),De(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),De(e=>e instanceof Error,"Error",(e,n)=>{const a={name:e.name,message:e.message};return n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a},(e,n)=>{const a=new Error(e.message);return a.name=e.name,a.stack=e.stack,n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a}),De(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const n=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(n,a)}),De(Ot,"set",e=>[...e.values()],e=>new Set(e)),De(Vt,"map",e=>[...e.entries()],e=>new Map(e)),De(e=>{return io(e)||(n=e)===1/0||n===-1/0;var n},"number",e=>io(e)?"NaN":e>0?"Infinity":"-Infinity",Number),De(e=>e===0&&1/e==-1/0,"number",()=>"-0",Number),De(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Lt(e,n,a,l){return{isApplicable:e,annotation:n,transform:a,untransform:l}}var aa=Lt((e,n)=>ta(e)?!!n.symbolRegistry.getIdentifier(e):!1,(e,n)=>["symbol",n.symbolRegistry.getIdentifier(e)],e=>e.description,(e,n,a)=>{const l=a.symbolRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),xl=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,n)=>(e[n.name]=n,e),{}),la=Lt(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,n)=>{const a=xl[n[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});function ra(e,n){return e!=null&&e.constructor?!!n.classRegistry.getIdentifier(e.constructor):!1}var ia=Lt(ra,(e,n)=>["class",n.classRegistry.getIdentifier(e.constructor)],(e,n)=>{const a=n.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};const l={};return a.forEach(r=>{l[r]=e[r]}),l},(e,n,a)=>{const l=a.classRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(l.prototype),e)}),ua=Lt((e,n)=>!!n.customTransformerRegistry.findApplicable(e),(e,n)=>["custom",n.customTransformerRegistry.findApplicable(e).name],(e,n)=>n.customTransformerRegistry.findApplicable(e).serialize(e),(e,n,a)=>{const l=a.customTransformerRegistry.findByName(n[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(e)}),Pl=[ia,aa,ua,la],uo=(e,n)=>{const a=ro(Pl,r=>r.isApplicable(e,n));if(a)return{value:a.transform(e,n),type:a.annotation(e,n)};const l=ro(oa,r=>r.isApplicable(e,n));return l?{value:l.transform(e,n),type:l.annotation}:void 0},sa={};oa.forEach(e=>{sa[e.annotation]=e});k();var et=(e,n)=>{const a=e.keys();for(;n>0;)a.next(),n--;return a.next().value};function ca(e){if(At(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(At(e,"prototype"))throw new Error("prototype is not allowed as a property");if(At(e,"constructor"))throw new Error("constructor is not allowed as a property")}var rn=(e,n,a)=>{if(ca(n),n.length===0)return a(e);let l=e;for(let o=0;oun(o,n,[...a,...ht(i)]));const[l,r]=e;r&&at(r,(o,i)=>{un(o,n,[...a,...ht(i)])}),n(l,a)}function Al(e,n,a){return un(n,(l,r)=>{e=rn(e,r,o=>((i,u,s)=>{if(!Fe(u)){const c=sa[u];if(!c)throw new Error("Unknown transformation: "+u);return c.untransform(i,s)}switch(u[0]){case"symbol":return aa.untransform(i,u,s);case"class":return ia.untransform(i,u,s);case"custom":return ua.untransform(i,u,s);case"typed-array":return la.untransform(i,u,s);default:throw new Error("Unknown transformation: "+u)}})(o,l,a))}),e}function Nl(e,n){function a(l,r){const o=((i,u)=>{ca(u);for(let s=0;s{e=rn(e,i,()=>o)})}if(Fe(n)){const[l,r]=n;l.forEach(o=>{e=rn(e,ht(o),()=>e)}),r&&at(r,a)}else at(n,a);return e}var da=(e,n,a,l,r=[],o=[],i=new Map)=>{var u;const s=Tl(e);if(!s){(function(h,v,S){const I=S.get(h);I?I.push(v):S.set(h,[v])})(e,r,n);const y=i.get(e);if(y)return l?{transformedValue:null}:y}if(!((y,h)=>bt(y)||Fe(y)||Vt(y)||Ot(y)||ra(y,h))(e,a)){const y=uo(e,a),h=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:e};return s||i.set(e,h),h}if(At(o,e))return{transformedValue:null};const c=uo(e,a),m=(u=c==null?void 0:c.value)!=null?u:e,p=Fe(m)?[]:{},V={};at(m,(y,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);const v=da(y,n,a,l,[...r,h],[...o,e],i);p[h]=v.transformedValue,Fe(v.annotations)?V[h]=v.annotations:bt(v.annotations)&&at(v.annotations,(S,I)=>{V[na(h)+"."+I]=S})});const g=ln(V)?{transformedValue:p,annotations:c?[c.type]:void 0}:{transformedValue:p,annotations:c?[c.type,V]:V};return s||i.set(e,g),g};function fa(e){return Object.prototype.toString.call(e).slice(8,-1)}function so(e){return fa(e)==="Array"}function sn(e,n={}){return so(e)?e.map(a=>sn(a,n)):function(a){if(fa(a)!=="Object")return!1;const l=Object.getPrototypeOf(a);return!!l&&l.constructor===Object&&l===Object.prototype}(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((a,l)=>(so(n.props)&&!n.props.includes(l)||function(r,o,i,u,s){const c={}.propertyIsEnumerable.call(u,o)?"enumerable":"nonenumerable";c==="enumerable"&&(r[o]=i),s&&c==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}(a,l,sn(e[l],n),e,n.nonenumerable),a),{}):e}k(),k();var co,fo,po,vo,mo,ho,ce=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Il,this.symbolRegistry=new Qo(n=>{var a;return(a=n.description)!=null?a:""}),this.customTransformerRegistry=new wl,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const n=new Map,a=da(e,n,this,this.dedupe),l={json:a.transformedValue};a.annotations&&(l.meta={...l.meta,values:a.annotations});const r=function(o,i){const u={};let s;return o.forEach(c=>{if(c.length<=1)return;i||(c=c.map(V=>V.map(String)).sort((V,g)=>V.length-g.length));const[m,...p]=c;m.length===0?s=p.map(Zt):u[Zt(m)]=p.map(Zt)}),s?ln(u)?[s]:[s,u]:ln(u)?void 0:u}(n,this.dedupe);return r&&(l.meta={...l.meta,referentialEqualities:r}),l}deserialize(e){const{json:n,meta:a}=e;let l=sn(n);return a!=null&&a.values&&(l=Al(l,a.values,this)),a!=null&&a.referentialEqualities&&(l=Nl(l,a.referentialEqualities)),l}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,n){this.classRegistry.register(e,n)}registerSymbol(e,n){this.symbolRegistry.register(e,n)}registerCustom(e,n){this.customTransformerRegistry.register({name:n,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};/** + */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ia=require("@vueuse/core"),Sa=require("vuetify"),wa=require("@wdns/vuetify-color-field"),ze=require("vuetify/components"),Ta=require("vuetify/labs/VDateInput"),xt=require("vuetify/lib/components/VBtn/index.mjs"),Pn=require("vuetify/lib/components/VItemGroup/index.mjs"),yn=require("vuetify/lib/components/VLabel/index.mjs"),An=require("vuetify/lib/components/VCheckbox/index.mjs"),xa=require("vuetify/lib/components/VRadio/index.mjs"),Pa=require("vuetify/lib/components/VRadioGroup/index.mjs"),Aa=require("vuetify/lib/components/VSwitch/index.mjs"),Te=require("vuetify/lib/components/VGrid/index.mjs"),Na=require("vuetify/lib/components/VCard/index.mjs"),qe=require("vuetify/lib/components/VList/index.mjs"),ja=require("vuetify/lib/components/VDivider/index.mjs"),Je=require("vuetify/lib/components/VStepper/index.mjs"),Ra=require("vuetify/lib/components/VTooltip/index.mjs"),Ua={"data-cy":"vsf-field-label"},Da=["innerHTML"],Ba={key:0,class:"text-error ms-1"},$e=t.defineComponent({__name:"FieldLabel",props:{label:{},required:{type:Boolean,default:!1}},setup:e=>(n,a)=>(t.openBlock(),t.createElementBlock("div",Ua,[t.createElementVNode("span",{innerHTML:n.label},null,8,Da),a[0]||(a[0]=t.createTextVNode()),n.required?(t.openBlock(),t.createElementBlock("span",Ba,"*")):t.createCommentVNode("",!0)]))}),en=(e,n,a={})=>{const l=(r,o)=>{const i={...r};for(const u in o)o[u]===void 0||typeof o[u]!="object"||Array.isArray(o[u])?o[u]!==void 0&&(i[u]=o[u]):i[u]=l(i[u]??{},o[u]);return i};return[e,n,a].filter(Boolean).reduce(l,{})},Nn=e=>({altLabels:e.altLabels,autoPage:e.autoPage,autoPageDelay:e.autoPageDelay,bgColor:e.bgColor,border:e.border,color:e.color,density:e.density,disabled:e.disabled,editIcon:e.editIcon,editable:e.editable,elevation:e.elevation,errorIcon:e.errorIcon,fieldColumns:e.fieldColumns,flat:e.flat,headerTooltips:e.headerTooltips,height:e.height,hideActions:e.hideActions,hideDetails:e.hideDetails,keepValuesOnUnmount:e.keepValuesOnUnmount,maxHeight:e.maxHeight,maxWidth:e.maxWidth,minHeight:e.minHeight,minWidth:e.minWidth,nextText:e.nextText,prevText:e.prevText,rounded:e.rounded,selectedClass:e.selectedClass,summaryColumns:e.summaryColumns,tag:e.tag,theme:e.theme,tile:e.tile,tooltipLocation:e.tooltipLocation,tooltipOffset:e.tooltipOffset,tooltipTransition:e.tooltipTransition,transition:e.transition,validateOn:e.validateOn,validateOnMount:e.validateOnMount,variant:e.variant}),tn=e=>{const{columns:n,propName:a}=e;let l=!1;if(n&&(Object.values(n).forEach(r=>{(r<1||r>12)&&(l=!0)}),l))throw new Error(`The ${a} values must be between 1 and 12`)},nn=e=>{let n=-1,a=-1;return e.forEach((l,r)=>{l.editable===!1&&(n===-1&&(n=r),a=r)}),{firstNonEditableIndex:n,lastNonEditableIndex:a}},ut="v-stepper-form",jo=Symbol(),Ro={autoPageDelay:250,direction:"horizontal",disabled:!1,editable:!0,jumpAhead:!1,keepValuesOnUnmount:!1,navButtonSize:"large",tooltipLocation:"bottom",tooltipOffset:10,tooltipTransition:"fade-transition",transition:"fade-transition",width:"100%"};var st,jn,Kt,Ct,Ma=Object.create,Rn=Object.defineProperty,La=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyNames,za=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty,mt=(st={"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}},function(){return st&&(jn=(0,st[bn(st)[0]])(st=0)),jn}),Ha=(Kt={"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,n){function a(l){return l instanceof Buffer?Buffer.from(l):new l.constructor(l.buffer.slice(),l.byteOffset,l.length)}mt(),n.exports=function(l){if((l=l||{}).circles)return function(u){const s=[],c=[],m=new Map;if(m.set(Date,h=>new Date(h)),m.set(Map,(h,v)=>new Map(V(Array.from(h),v))),m.set(Set,(h,v)=>new Set(V(Array.from(h),v))),u.constructorHandlers)for(const h of u.constructorHandlers)m.set(h[0],h[1]);let p=null;return u.proto?y:g;function V(h,v){const S=Object.keys(h),I=new Array(S.length);for(let w=0;wnew Date(u)),r.set(Map,(u,s)=>new Map(i(Array.from(u),s))),r.set(Set,(u,s)=>new Set(i(Array.from(u),s))),l.constructorHandlers)for(const u of l.constructorHandlers)r.set(u[0],u[1]);let o=null;return l.proto?function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c}:function u(s){if(typeof s!="object"||s===null)return s;if(Array.isArray(s))return i(s,u);if(s.constructor!==Object&&(o=r.get(s.constructor)))return o(s,u);const c={};for(const m in s){if(Object.hasOwnProperty.call(s,m)===!1)continue;const p=s[m];typeof p!="object"||p===null?c[m]=p:p.constructor!==Object&&(o=r.get(p.constructor))?c[m]=o(p,u):ArrayBuffer.isView(p)?c[m]=a(p):c[m]=u(p)}return c};function i(u,s){const c=Object.keys(u),m=new Array(c.length);for(let p=0;p(a=e!=null?Ma(za(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of bn(r))Fa.call(l,u)||u===o||Rn(l,u,{get:()=>r[u],enumerable:!(i=La(r,u))||i.enumerable});return l})(Rn(a,"default",{value:e,enumerable:!0}),e)))(Ha()),Ka=/(?:^|[-_/])(\w)/g;function qa(e,n){return n?n.toUpperCase():""}var Dn=(0,$a.default)({circles:!0});const Wa={trailing:!0};function nt(e,n=25,a={}){if(a={...Wa,...a},!Number.isFinite(n))throw new TypeError("Expected `wait` to be a finite number");let l,r,o,i,u=[];const s=(c,m)=>(o=async function(p,V,g){return await p.apply(V,g)}(e,c,m),o.finally(()=>{if(o=null,a.trailing&&i&&!r){const p=s(c,i);return i=null,p}}),o);return function(...c){return o?(a.trailing&&(i=c),o):new Promise(m=>{const p=!r&&a.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const V=a.leading?l:s(this,c);for(const g of u)g(V);u=[]},n),p?(l=s(this,c),m(l)):u.push(m)})}}function on(e,n={},a){for(const l in e){const r=e[l],o=a?`${a}:${l}`:l;typeof r=="object"&&r!==null?on(r,n,o):typeof r=="function"&&(n[o]=r)}return n}const Ga={run:e=>e()},Do=console.createTask!==void 0?console.createTask:()=>Ga;function Ya(e,n){const a=n.shift(),l=Do(a);return e.reduce((r,o)=>r.then(()=>l.run(()=>o(...n))),Promise.resolve())}function Za(e,n){const a=n.shift(),l=Do(a);return Promise.all(e.map(r=>l.run(()=>r(...n))))}function qt(e,n){for(const a of[...e])a(n)}class Xa{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,a,l={}){if(!n||typeof a!="function")return()=>{};const r=n;let o;for(;this._deprecatedHooks[n];)o=this._deprecatedHooks[n],n=o.to;if(o&&!l.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!a.name)try{Object.defineProperty(a,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(a),()=>{a&&(this.removeHook(n,a),a=void 0)}}hookOnce(n,a){let l,r=(...o)=>(typeof l=="function"&&l(),l=void 0,r=void 0,a(...o));return l=this.hook(n,r),l}removeHook(n,a){if(this._hooks[n]){const l=this._hooks[n].indexOf(a);l!==-1&&this._hooks[n].splice(l,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,a){this._deprecatedHooks[n]=typeof a=="string"?{to:a}:a;const l=this._hooks[n]||[];delete this._hooks[n];for(const r of l)this.hook(n,r)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(const a in n)this.deprecateHook(a,n[a])}addHooks(n){const a=on(n),l=Object.keys(a).map(r=>this.hook(r,a[r]));return()=>{for(const r of l.splice(0,l.length))r()}}removeHooks(n){const a=on(n);for(const l in a)this.removeHook(l,a[l])}removeAllHooks(){for(const n in this._hooks)delete this._hooks[n]}callHook(n,...a){return a.unshift(n),this.callHookWith(Ya,n,...a)}callHookParallel(n,...a){return a.unshift(n),this.callHookWith(Za,n,...a)}callHookWith(n,a,...l){const r=this._before||this._after?{name:a,args:l,context:{}}:void 0;this._before&&qt(this._before,r);const o=n(a in this._hooks?[...this._hooks[a]]:[],l);return o instanceof Promise?o.finally(()=>{this._after&&r&&qt(this._after,r)}):(this._after&&r&&qt(this._after,r),o)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){const a=this._before.indexOf(n);a!==-1&&this._before.splice(a,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){const a=this._after.indexOf(n);a!==-1&&this._after.splice(a,1)}}}}function Bo(){return new Xa}var Ja=Object.create,Bn=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyNames,el=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,Mo=(e,n)=>function(){return n||(0,e[Vn(e)[0]])((n={exports:{}}).exports,n),n.exports},k=((e,n)=>function(){return e&&(n=(0,e[Vn(e)[0]])(e=0)),n})({"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"(){}}),nl=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,n){k(),function(a){var l={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},u={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},s=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),m=[".","!","~","*","'","(",")"].join(""),p=function(h,v){var S,I,w,U,M,le,Y,oe,Q,X,T,D,ne,z,J="-",G="",F="",K=!0,te={},q="";if(typeof h!="string")return"";if(typeof v=="string"&&(J=v),Y=u.en,oe=i.en,typeof v=="object")for(T in S=v.maintainCase||!1,te=v.custom&&typeof v.custom=="object"?v.custom:te,w=+v.truncate>1&&v.truncate||!1,U=v.uric||!1,M=v.uricNoSlash||!1,le=v.mark||!1,K=v.symbols!==!1&&v.lang!==!1,J=v.separator||J,U&&(q+=s),M&&(q+=c),le&&(q+=m),Y=v.lang&&u[v.lang]&&K?u[v.lang]:K?u.en:{},oe=v.lang&&i[v.lang]?i[v.lang]:v.lang===!1||v.lang===!0?{}:i.en,v.titleCase&&typeof v.titleCase.length=="number"&&Array.prototype.toString.call(v.titleCase)?(v.titleCase.forEach(function(W){te[W+""]=W+""}),I=!0):I=!!v.titleCase,v.custom&&typeof v.custom.length=="number"&&Array.prototype.toString.call(v.custom)&&v.custom.forEach(function(W){te[W+""]=W+""}),Object.keys(te).forEach(function(W){var ie;ie=W.length>1?new RegExp("\\b"+g(W)+"\\b","gi"):new RegExp(g(W),"gi"),h=h.replace(ie,te[W])}),te)q+=T;for(q=g(q+=J),ne=!1,z=!1,X=0,D=(h=h.replace(/(^\s+|\s+$)/g,"")).length;X=0?(F+=T,T=""):z===!0?(T=o[F]+l[T],F=""):T=ne&&l[T].match(/[A-Za-z0-9]/)?" "+l[T]:l[T],ne=!1,z=!1):T in o?(F+=T,T="",X===D-1&&(T=o[F]),z=!0):!Y[T]||U&&s.indexOf(T)!==-1||M&&c.indexOf(T)!==-1?(z===!0?(T=o[F]+T,F="",z=!1):ne&&(/[A-Za-z0-9]/.test(T)||G.substr(-1).match(/A-Za-z0-9]/))&&(T=" "+T),ne=!1):(T=ne||G.substr(-1).match(/[A-Za-z0-9]/)?J+Y[T]:Y[T],T+=h[X+1]!==void 0&&h[X+1].match(/[A-Za-z0-9]/)?J:"",ne=!0),G+=T.replace(new RegExp("[^\\w\\s"+q+"_-]","g"),J);return I&&(G=G.replace(/(\w)(\S*)/g,function(W,ie,b){var L=ie.toUpperCase()+(b!==null?b:"");return Object.keys(te).indexOf(L.toLowerCase())<0?L:L.toLowerCase()})),G=G.replace(/\s+/g,J).replace(new RegExp("\\"+J+"+","g"),J).replace(new RegExp("(^\\"+J+"+|\\"+J+"+$)","g"),""),w&&G.length>w&&(Q=G.charAt(w)===J,G=G.slice(0,w),Q||(G=G.slice(0,G.lastIndexOf(J)))),S||I||(G=G.toLowerCase()),G},V=function(h){return function(v){return p(v,h)}},g=function(h){return h.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(h,v){for(var S in v)if(v[S]===h)return!0};if(n!==void 0&&n.exports)n.exports=p,n.exports.createSlug=V;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(a.getSlug||a.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";a.getSlug=p,a.createSlug=V}catch{}}(e)}}),ol=Mo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,n){k(),n.exports=nl()}});function Lo(e){return function(n){return!(!n||!n.__v_isReadonly)}(e)?Lo(e.__v_raw):!(!e||!e.__v_isReactive)}function Wt(e){return!(!e||e.__v_isRef!==!0)}function dt(e){const n=e&&e.__v_raw;return n?dt(n):e}function al(e){const n=e.__file;if(n)return(a=function(l,r){let o=l.replace(/^[a-z]:/i,"").replace(/\\/g,"/");o.endsWith(`index${r}`)&&(o=o.replace(`/index${r}`,r));const i=o.lastIndexOf("/"),u=o.substring(i+1);{const s=u.lastIndexOf(r);return u.substring(0,s)}}(n,".vue"))&&`${a}`.replace(Ka,qa);var a}function Mn(e,n){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=n,n}function Nt(e){return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__?e.__VUE_DEVTOOLS_NEXT_APP_RECORD__:e.root?e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__:void 0}function zo(e){var n,a;const l=(n=e.subTree)==null?void 0:n.type,r=Nt(e);return!!r&&((a=r==null?void 0:r.types)==null?void 0:a.Fragment)===l}function jt(e){var n,a,l;const r=function(i){var u;const s=i.name||i._componentTag||i.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||i.__name;return s==="index"&&((u=i.__file)!=null&&u.endsWith("index.vue"))?"":s}((e==null?void 0:e.type)||{});if(r)return r;if((e==null?void 0:e.root)===e)return"Root";for(const i in(a=(n=e.parent)==null?void 0:n.type)==null?void 0:a.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return Mn(e,i);for(const i in(l=e.appContext)==null?void 0:l.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return Mn(e,i);return al((e==null?void 0:e.type)||{})||"Anonymous Component"}function Gt(e,n){return n=n||`${e.id}:root`,e.instanceMap.get(n)||e.instanceMap.get(":root")}k(),k(),k(),k(),k(),k(),k(),k();var It,ll=class{constructor(){this.refEditor=new rl}set(e,n,a,l){const r=Array.isArray(n)?n:n.split(".");for(;r.length>1;){const u=r.shift();e instanceof Map&&(e=e.get(u)),e=e instanceof Set?Array.from(e.values())[u]:e[u],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const o=r[0],i=this.refEditor.get(e)[o];l?l(e,o,a):this.refEditor.isRef(i)?this.refEditor.set(i,a):e[o]=a}get(e,n){const a=Array.isArray(n)?n:n.split(".");for(let l=0;lr;)e=e[l.shift()],this.refEditor.isRef(e)&&(e=this.refEditor.get(e));return e!=null&&Object.prototype.hasOwnProperty.call(e,l[0])}createDefaultSetCallback(e){return(n,a,l)=>{if((e.remove||e.newKey)&&(Array.isArray(n)?n.splice(a,1):dt(n)instanceof Map?n.delete(a):dt(n)instanceof Set?n.delete(Array.from(n.values())[a]):Reflect.deleteProperty(n,a)),!e.remove){const r=n[e.newKey||a];this.refEditor.isRef(r)?this.refEditor.set(r,l):dt(n)instanceof Map?n.set(e.newKey||a,l):dt(n)instanceof Set?n.add(l):n[e.newKey||a]=l}}}},rl=class{set(e,n){if(Wt(e))e.value=n;else{if(e instanceof Set&&Array.isArray(n))return e.clear(),void n.forEach(r=>e.add(r));const a=Object.keys(n);if(e instanceof Map){const r=new Set(e.keys());return a.forEach(o=>{e.set(o,Reflect.get(n,o)),r.delete(o)}),void r.forEach(o=>e.delete(o))}const l=new Set(Object.keys(e));a.forEach(r=>{Reflect.set(e,r,Reflect.get(n,r)),l.delete(r)}),l.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return Wt(e)?e.value:e}isRef(e){return Wt(e)||Lo(e)}};function an(e){return zo(e)?function(n){if(!n.children)return[];const a=[];return n.children.forEach(l=>{l.component?a.push(...an(l.component)):l!=null&&l.el&&a.push(l.el)}),a}(e.subTree):e.subTree?[e.subTree.el]:[]}function il(e,n){return(!e.top||n.tope.bottom)&&(e.bottom=n.bottom),(!e.left||n.lefte.right)&&(e.right=n.right),e}k(),k(),k();var Ln={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ze(e){const n=e.subTree.el;return typeof window>"u"?Ln:zo(e)?function(a){const l=function(){const o={top:0,bottom:0,left:0,right:0,get width(){return o.right-o.left},get height(){return o.bottom-o.top}};return o}();if(!a.children)return l;for(let o=0,i=a.children.length;o{n(r)})}}var zn,St=null;function dl(){return new Promise(e=>{function n(){(function(){const a=A.__VUE_INSPECTOR__,l=a.openInEditor;a.openInEditor=async(...r)=>{a.disable(),l(...r)}})(),e(A.__VUE_INSPECTOR__)}A.__VUE_INSPECTOR__?n():function(a){let l=0;const r=setInterval(()=>{A.__VUE_INSPECTOR__&&(clearInterval(r),l+=30,a()),l>=5e3&&clearInterval(r)},30)}(()=>{n()})})}k(),(zn=A).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(zn.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0),k(),k(),k();var Fn;function fl(){if(!Uo||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__");return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}k(),k(),k(),(Fn=A).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(Fn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Hn,pl=new Proxy(A.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get:(e,n,a)=>Reflect.get(e,n,a)});(Hn=A).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(Hn.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var $n,Kn,qn,Wn,Gn,Cn=new Proxy(A.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get:(e,n,a)=>Reflect.get(e,n,a)}),Go=nt(()=>{lt.hooks.callHook("sendInspectorToClient",Yo())});function Yo(){return Cn.filter(e=>e.descriptor.app===Ce.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var n;const a=e.descriptor,l=e.options;return{id:l.id,label:l.label,logo:a.logo,icon:`custom-ic-baseline-${(n=l==null?void 0:l.icon)==null?void 0:n.replace(/_/g,"-")}`,packageName:a.packageName,homepage:a.homepage,pluginId:a.id}})}function Pt(e,n){return Cn.find(a=>a.options.id===e&&(!n||a.descriptor.app===n))}($n=A).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||($n.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]),(Kn=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(Kn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={}),(qn=A).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(qn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=""),(Wn=A).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(Wn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]),(Gn=A).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(Gn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Yn,We="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";(Yn=A)[We]!=null||(Yn[We]={connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:fl()});var vl=nt(e=>{lt.hooks.callHook("devtoolsStateUpdated",{state:e})});nt((e,n)=>{lt.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:n})});var Rt=new Proxy(A.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_APP_RECORDS__:A.__VUE_DEVTOOLS_KIT_APP_RECORDS__[n]}),Ce=new Proxy(A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get:(e,n,a)=>n==="value"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:n==="id"?A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[n]});function Zn(){vl({...A[We],appRecords:Rt.value,activeAppRecordId:Ce.id,tabs:A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}var Xn,be=new Proxy(A[We],{get:(e,n)=>n==="appRecords"?Rt:n==="activeAppRecordId"?Ce.id:n==="tabs"?A.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:n==="commands"?A.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:A[We][n],deleteProperty:(e,n)=>(delete e[n],!0),set:(e,n,a)=>(A[We],e[n]=a,A[We][n]=a,!0)});function ml(e={}){var n,a,l;const{file:r,host:o,baseUrl:i=window.location.origin,line:u=0,column:s=0}=e;if(r){if(o==="chrome-extension"){r.replace(/\\/g,"\\\\");const c=(a=(n=window.VUE_DEVTOOLS_CONFIG)==null?void 0:n.openInEditorHost)!=null?a:"/";fetch(`${c}__open-in-editor?file=${encodeURI(r)}`).then(m=>{m.ok})}else if(be.vitePluginDetected){const c=(l=A.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?l:i;A.__VUE_INSPECTOR__.openInEditor(c,r,u,s)}}}k(),k(),k(),k(),k(),(Xn=A).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(Xn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Jn,Qn,In=new Proxy(A.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get:(e,n,a)=>Reflect.get(e,n,a)});function rn(e){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].defaultValue}),n}function Sn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function hl(e){var n,a,l;const r=(a=(n=In.find(o=>{var i;return o[0].id===e&&!!((i=o[0])!=null&&i.settings)}))==null?void 0:n[0])!=null?a:null;return(l=r==null?void 0:r.settings)!=null?l:null}function Zo(e,n){var a,l,r;const o=Sn(e);if(o){const i=localStorage.getItem(o);if(i)return JSON.parse(i)}if(e){const i=(l=(a=In.find(u=>u[0].id===e))==null?void 0:a[0])!=null?l:null;return rn((r=i==null?void 0:i.settings)!=null?r:{})}return rn(n)}k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k();var xe=(Qn=(Jn=A).__VUE_DEVTOOLS_HOOK)!=null?Qn:Jn.__VUE_DEVTOOLS_HOOK=Bo(),gl={vueAppInit(e){xe.hook("app:init",e)},vueAppUnmount(e){xe.hook("app:unmount",e)},vueAppConnected(e){xe.hook("app:connected",e)},componentAdded:e=>xe.hook("component:added",e),componentEmit:e=>xe.hook("component:emit",e),componentUpdated:e=>xe.hook("component:updated",e),componentRemoved:e=>xe.hook("component:removed",e),setupDevtoolsPlugin(e){xe.hook("devtools-plugin:setup",e)},perfStart:e=>xe.hook("perf:start",e),perfEnd:e=>xe.hook("perf:end",e)},Xo={on:gl,setupDevToolsPlugin:(e,n)=>xe.callHook("devtools-plugin:setup",e,n)},_l=class{constructor({plugin:e,ctx:n}){this.hooks=n.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var n;if(be.highPerfModeEnabled)return;const a=Yo().find(l=>l.packageName===this.plugin.descriptor.packageName);if(a!=null&&a.id){if(e){const l=[e.appContext.app,e.uid,(n=e.parent)==null?void 0:n.uid,e];xe.callHook("component:updated",...l)}else xe.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:a.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&function(n,a){const l=Sn(n);localStorage.getItem(l)||localStorage.setItem(l,JSON.stringify(rn(a)))}(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){be.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,n){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:n,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return be.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){be.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Zo(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const n=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:n})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}};k(),k(),k(),k();var yl="__vue_devtool_undefined__",bl="__vue_devtool_infinity__",Vl="__vue_devtool_negative_infinity__",El="__vue_devtool_nan__";k(),k();var eo,Ol={[yl]:"undefined",[El]:"NaN",[bl]:"Infinity",[Vl]:"-Infinity"};function Jo(e){A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||be.highPerfModeEnabled||(A.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),In.forEach(n=>{(function(a,l){const[r,o]=a;if(r.app!==l)return;const i=new _l({plugin:{setupFn:o,descriptor:r},ctx:lt});r.packageName==="vuex"&&i.on.editInspectorState(u=>{i.sendInspectorState(u.inspectorId)}),o(i)})(n,e)}))}Object.entries(Ol).reduce((e,[n,a])=>(e[a]=n,e),{}),k(),k(),k(),k(),k(),(eo=A).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(eo.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set),k(),k();var to,no,oo,ft="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";function un(e){return e.map(n=>{let{path:a,name:l,children:r,meta:o}=n;return r!=null&&r.length&&(r=un(r)),{path:a,name:l,children:r,meta:o}})}function kl(e,n){function a(){var l;const r=(l=e.app)==null?void 0:l.config.globalProperties.$router,o=function(s){if(s){const{fullPath:c,hash:m,href:p,path:V,name:g,matched:y,params:h,query:v}=s;return{fullPath:c,hash:m,href:p,path:V,name:g,params:h,query:v,matched:un(y)}}return s}(r==null?void 0:r.currentRoute.value),i=un(function(s){const c=new Map;return((s==null?void 0:s.getRoutes())||[]).filter(m=>!c.has(m.path)&&c.set(m.path,1))}(r)),u=console.warn;console.warn=()=>{},A[Qe]={currentRoute:o?Dn(o):{},routes:Dn(i)},A[ft]=r,console.warn=u}a(),Xo.on.componentUpdated(nt(()=>{var l;((l=n.value)==null?void 0:l.app)===e.app&&(a(),be.highPerfModeEnabled||lt.hooks.callHook("routerInfoUpdated",{state:A[Qe]}))},200))}(to=A)[Qe]!=null||(to[Qe]={currentRoute:null,routes:[]}),(no=A)[ft]!=null||(no[ft]={}),new Proxy(A[Qe],{get:(e,n)=>A[Qe][n]}),new Proxy(A[ft],{get(e,n){if(n==="value")return A[ft]}}),k(),(oo=A).__VUE_DEVTOOLS_ENV__!=null||(oo.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var ao,ct,lo=function(){const e=Bo();e.hook("addInspector",({inspector:l,plugin:r})=>{(function(o,i){var u,s;Cn.push({options:o,descriptor:i,treeFilterPlaceholder:(u=o.treeFilterPlaceholder)!=null?u:"Search tree...",stateFilterPlaceholder:(s=o.stateFilterPlaceholder)!=null?s:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Nt(i.app)}),Go()})(l,r.descriptor)});const n=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(s=>{e.callHookWith(async c=>{await Promise.all(c.map(m=>m(u))),s()},"getInspectorTree")}),e.callHookWith(async s=>{await Promise.all(s.map(c=>c({inspectorId:l,rootNodes:u.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",n);const a=nt(async({inspectorId:l,plugin:r})=>{var o;if(!l||!((o=r==null?void 0:r.descriptor)!=null&&o.app)||be.highPerfModeEnabled)return;const i=Pt(l,r.descriptor.app),u={app:r.descriptor.app,inspectorId:l,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},s={currentTab:`custom-inspector:${l}`};u.nodeId&&await new Promise(c=>{e.callHookWith(async m=>{await Promise.all(m.map(p=>p(u,s))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(m=>m({inspectorId:l,nodeId:u.nodeId,state:u.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",a),e.hook("customInspectorSelectNode",({inspectorId:l,nodeId:r,plugin:o})=>{const i=Pt(l,o.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:l,plugin:r})=>{(function(o,i){be.timelineLayersState[i.id]=!1,pl.push({...o,descriptorId:i.id,appRecord:Nt(i.app)})})(l,r.descriptor)}),e.hook("timelineEventAdded",({options:l,plugin:r})=>{var o;be.highPerfModeEnabled||!((o=be.timelineLayersState)!=null&&o[r.descriptor.id])&&!["performance","component-event","keyboard","mouse"].includes(l.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(u=>u(l)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:l})=>{const r=l.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const o=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===o).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:l})=>Ze(l)),e.hook("getComponentName",({instance:l})=>jt(l)),e.hook("componentHighlight",({uid:l})=>{const r=Ce.value.instanceMap.get(l);r&&function(o){const i=Ze(o);if(!i.width&&!i.height)return;const u=jt(o);ot()?kn({bounds:i,name:u}):On({bounds:i,name:u})}(r)}),e.hook("componentUnhighlight",()=>{Wo()}),e}();(ao=A).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ao.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:lo,get state(){return{...be,activeAppRecordId:Ce.id,activeAppRecord:Ce.value,appRecords:Rt.value}},api:(ct=lo,{async getInspectorTree(e){const n={...e,app:Ce.value.app,rootNodes:[]};return await new Promise(a=>{ct.callHookWith(async l=>{await Promise.all(l.map(r=>r(n))),a()},"getInspectorTree")}),n.rootNodes},async getInspectorState(e){const n={...e,app:Ce.value.app,state:null},a={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(l=>{ct.callHookWith(async r=>{await Promise.all(r.map(o=>o(n,a))),l()},"getInspectorState")}),n.state},editInspectorState(e){const n=new ll,a={...e,app:Ce.value.app,set:(l,r=e.path,o=e.state.value,i)=>{n.set(l,r,o,i||n.createDefaultSetCallback(e.state))}};ct.callHookWith(l=>{l.forEach(r=>r(a))},"editInspectorState")},sendInspectorState(e){const n=Pt(e);ct.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector:()=>(window.addEventListener("mouseover",Yt),new Promise(e=>{function n(a){a.preventDefault(),a.stopPropagation(),cl(a,l=>{window.removeEventListener("click",n,!0),St=null,window.removeEventListener("mouseover",Yt);const r=ot();r&&(r.style.display="none"),e(JSON.stringify({id:l}))})}St=n,window.addEventListener("click",n,!0)})),cancelInspectComponentInspector:()=>(Wo(),window.removeEventListener("mouseover",Yt),window.removeEventListener("click",St,!0),void(St=null)),getComponentRenderCode(e){const n=Gt(Ce.value,e);if(n)return(n==null?void 0:n.type)instanceof Function?n.type.toString():n.render.toString()},scrollToComponent:e=>function(n){const a=Gt(Ce.value,n.id);if(a){const[l]=an(a);if(typeof l.scrollIntoView=="function")l.scrollIntoView({behavior:"smooth"});else{const r=Ze(a),o=document.createElement("div"),i={...En(r),position:"absolute"};Object.assign(o.style,i),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Ze(a);if(r.width||r.height){const o=jt(a),i=ot();i?kn({...n,name:o,bounds:r}):On({...n,name:o,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}({id:e}),openInEditor:ml,getVueInspector:dl,toggleApp(e){const n=Rt.value.find(l=>l.id===e);var a;n&&(function(l){A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=l,Zn()}(e),a=n,A.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=a,Zn(),kl(n,Ce),Go(),Jo(n.app))},inspectDOM(e){const n=Gt(Ce.value,e);if(n){const[a]=an(n);a&&(A.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=a)}},updatePluginSettings(e,n,a){(function(l,r,o){const i=Sn(l),u=localStorage.getItem(i),s=JSON.parse(u||"{}"),c={...s,[r]:o};localStorage.setItem(i,JSON.stringify(c)),lt.hooks.callHookWith(m=>{m.forEach(p=>p({pluginId:l,key:r,oldValue:s[r],newValue:o,settings:c}))},"setPluginSettings")})(e,n,a)},getPluginSettings:e=>({options:hl(e),values:Zo(e)})})});var ro,io,lt=A.__VUE_DEVTOOLS_KIT_CONTEXT__;k(),((e,n,a)=>{a=e!=null?Ja(el(e)):{},((l,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Vn(r))tl.call(l,u)||u===o||Bn(l,u,{get:()=>r[u],enumerable:!(i=Qa(r,u))||i.enumerable})})(Bn(a,"default",{value:e,enumerable:!0}),e)})(ol()),(ro=A).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(ro.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),k(),k(),k(),k(),(io=A).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(io.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=function(e){be.devtoolsClientDetected={...be.devtoolsClientDetected,...e};const n=Object.values(be.devtoolsClientDetected).some(Boolean);var a;a=!n,be.highPerfModeEnabled=a??!be.highPerfModeEnabled,!a&&Ce.value&&Jo(Ce.value.app)}),k(),k(),k(),k(),k(),k(),k();var Cl=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,n){this.keyToValue.set(e,n),this.valueToKey.set(n,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Qo=class{constructor(e){this.generateIdentifier=e,this.kv=new Cl}register(e,n){this.kv.getByValue(e)||(n||(n=this.generateIdentifier(e)),this.kv.set(n,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Il=class extends Qo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(e,n.allowProps),super.register(e,n.identifier)):super.register(e,n)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Sl(e,n){const a=function(r){if("values"in Object)return Object.values(r);const o=[];for(const i in r)r.hasOwnProperty(i)&&o.push(r[i]);return o}(e);if("find"in a)return a.find(n);const l=a;for(let r=0;rn(l,a))}function At(e,n){return e.indexOf(n)!==-1}function uo(e,n){for(let a=0;an.isApplicable(e))}findByName(e){return this.transfomers[e]}};k(),k();var ea=e=>e===void 0,bt=e=>typeof e=="object"&&e!==null&&e!==Object.prototype&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),sn=e=>bt(e)&&Object.keys(e).length===0,Fe=e=>Array.isArray(e),Vt=e=>e instanceof Map,Et=e=>e instanceof Set,ta=e=>(n=>Object.prototype.toString.call(n).slice(8,-1))(e)==="Symbol",so=e=>typeof e=="number"&&isNaN(e),Tl=e=>(n=>typeof n=="boolean")(e)||(n=>n===null)(e)||ea(e)||(n=>typeof n=="number"&&!isNaN(n))(e)||(n=>typeof n=="string")(e)||ta(e);k();var na=e=>e.replace(/\./g,"\\."),Zt=e=>e.map(String).map(na).join("."),ht=e=>{const n=[];let a="";for(let r=0;rnull,()=>{}),De(e=>typeof e=="bigint","bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),De(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),De(e=>e instanceof Error,"Error",(e,n)=>{const a={name:e.name,message:e.message};return n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a},(e,n)=>{const a=new Error(e.message);return a.name=e.name,a.stack=e.stack,n.allowedErrorProps.forEach(l=>{a[l]=e[l]}),a}),De(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const n=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(n,a)}),De(Et,"set",e=>[...e.values()],e=>new Set(e)),De(Vt,"map",e=>[...e.entries()],e=>new Map(e)),De(e=>{return so(e)||(n=e)===1/0||n===-1/0;var n},"number",e=>so(e)?"NaN":e>0?"Infinity":"-Infinity",Number),De(e=>e===0&&1/e==-1/0,"number",()=>"-0",Number),De(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function Lt(e,n,a,l){return{isApplicable:e,annotation:n,transform:a,untransform:l}}var aa=Lt((e,n)=>ta(e)?!!n.symbolRegistry.getIdentifier(e):!1,(e,n)=>["symbol",n.symbolRegistry.getIdentifier(e)],e=>e.description,(e,n,a)=>{const l=a.symbolRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),xl=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,n)=>(e[n.name]=n,e),{}),la=Lt(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,n)=>{const a=xl[n[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});function ra(e,n){return e!=null&&e.constructor?!!n.classRegistry.getIdentifier(e.constructor):!1}var ia=Lt(ra,(e,n)=>["class",n.classRegistry.getIdentifier(e.constructor)],(e,n)=>{const a=n.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};const l={};return a.forEach(r=>{l[r]=e[r]}),l},(e,n,a)=>{const l=a.classRegistry.getValue(n[1]);if(!l)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(l.prototype),e)}),ua=Lt((e,n)=>!!n.customTransformerRegistry.findApplicable(e),(e,n)=>["custom",n.customTransformerRegistry.findApplicable(e).name],(e,n)=>n.customTransformerRegistry.findApplicable(e).serialize(e),(e,n,a)=>{const l=a.customTransformerRegistry.findByName(n[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(e)}),Pl=[ia,aa,ua,la],co=(e,n)=>{const a=uo(Pl,r=>r.isApplicable(e,n));if(a)return{value:a.transform(e,n),type:a.annotation(e,n)};const l=uo(oa,r=>r.isApplicable(e,n));return l?{value:l.transform(e,n),type:l.annotation}:void 0},sa={};oa.forEach(e=>{sa[e.annotation]=e});k();var et=(e,n)=>{const a=e.keys();for(;n>0;)a.next(),n--;return a.next().value};function ca(e){if(At(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(At(e,"prototype"))throw new Error("prototype is not allowed as a property");if(At(e,"constructor"))throw new Error("constructor is not allowed as a property")}var cn=(e,n,a)=>{if(ca(n),n.length===0)return a(e);let l=e;for(let o=0;odn(o,n,[...a,...ht(i)]));const[l,r]=e;r&&at(r,(o,i)=>{dn(o,n,[...a,...ht(i)])}),n(l,a)}function Al(e,n,a){return dn(n,(l,r)=>{e=cn(e,r,o=>((i,u,s)=>{if(!Fe(u)){const c=sa[u];if(!c)throw new Error("Unknown transformation: "+u);return c.untransform(i,s)}switch(u[0]){case"symbol":return aa.untransform(i,u,s);case"class":return ia.untransform(i,u,s);case"custom":return ua.untransform(i,u,s);case"typed-array":return la.untransform(i,u,s);default:throw new Error("Unknown transformation: "+u)}})(o,l,a))}),e}function Nl(e,n){function a(l,r){const o=((i,u)=>{ca(u);for(let s=0;s{e=cn(e,i,()=>o)})}if(Fe(n)){const[l,r]=n;l.forEach(o=>{e=cn(e,ht(o),()=>e)}),r&&at(r,a)}else at(n,a);return e}var da=(e,n,a,l,r=[],o=[],i=new Map)=>{var u;const s=Tl(e);if(!s){(function(h,v,S){const I=S.get(h);I?I.push(v):S.set(h,[v])})(e,r,n);const y=i.get(e);if(y)return l?{transformedValue:null}:y}if(!((y,h)=>bt(y)||Fe(y)||Vt(y)||Et(y)||ra(y,h))(e,a)){const y=co(e,a),h=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:e};return s||i.set(e,h),h}if(At(o,e))return{transformedValue:null};const c=co(e,a),m=(u=c==null?void 0:c.value)!=null?u:e,p=Fe(m)?[]:{},V={};at(m,(y,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);const v=da(y,n,a,l,[...r,h],[...o,e],i);p[h]=v.transformedValue,Fe(v.annotations)?V[h]=v.annotations:bt(v.annotations)&&at(v.annotations,(S,I)=>{V[na(h)+"."+I]=S})});const g=sn(V)?{transformedValue:p,annotations:c?[c.type]:void 0}:{transformedValue:p,annotations:c?[c.type,V]:V};return s||i.set(e,g),g};function fa(e){return Object.prototype.toString.call(e).slice(8,-1)}function fo(e){return fa(e)==="Array"}function fn(e,n={}){return fo(e)?e.map(a=>fn(a,n)):function(a){if(fa(a)!=="Object")return!1;const l=Object.getPrototypeOf(a);return!!l&&l.constructor===Object&&l===Object.prototype}(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((a,l)=>(fo(n.props)&&!n.props.includes(l)||function(r,o,i,u,s){const c={}.propertyIsEnumerable.call(u,o)?"enumerable":"nonenumerable";c==="enumerable"&&(r[o]=i),s&&c==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}(a,l,fn(e[l],n),e,n.nonenumerable),a),{}):e}k(),k();var po,vo,mo,ho,go,_o,ce=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Il,this.symbolRegistry=new Qo(n=>{var a;return(a=n.description)!=null?a:""}),this.customTransformerRegistry=new wl,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const n=new Map,a=da(e,n,this,this.dedupe),l={json:a.transformedValue};a.annotations&&(l.meta={...l.meta,values:a.annotations});const r=function(o,i){const u={};let s;return o.forEach(c=>{if(c.length<=1)return;i||(c=c.map(V=>V.map(String)).sort((V,g)=>V.length-g.length));const[m,...p]=c;m.length===0?s=p.map(Zt):u[Zt(m)]=p.map(Zt)}),s?sn(u)?[s]:[s,u]:sn(u)?void 0:u}(n,this.dedupe);return r&&(l.meta={...l.meta,referentialEqualities:r}),l}deserialize(e){const{json:n,meta:a}=e;let l=fn(n);return a!=null&&a.values&&(l=Al(l,a.values,this)),a!=null&&a.referentialEqualities&&(l=Nl(l,a.referentialEqualities)),l}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,n){this.classRegistry.register(e,n)}registerSymbol(e,n){this.symbolRegistry.register(e,n)}registerCustom(e,n){this.customTransformerRegistry.register({name:n,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};/** * vee-validate v4.14.7 * (c) 2024 Abdelrahman Awad * @license MIT - */function Oe(e){return typeof e=="function"}function pa(e){return e==null}ce.defaultInstance=new ce,ce.serialize=ce.defaultInstance.serialize.bind(ce.defaultInstance),ce.deserialize=ce.defaultInstance.deserialize.bind(ce.defaultInstance),ce.stringify=ce.defaultInstance.stringify.bind(ce.defaultInstance),ce.parse=ce.defaultInstance.parse.bind(ce.defaultInstance),ce.registerClass=ce.defaultInstance.registerClass.bind(ce.defaultInstance),ce.registerSymbol=ce.defaultInstance.registerSymbol.bind(ce.defaultInstance),ce.registerCustom=ce.defaultInstance.registerCustom.bind(ce.defaultInstance),ce.allowErrorProps=ce.defaultInstance.allowErrorProps.bind(ce.defaultInstance),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),(co=A).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(co.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]),(fo=A).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(fo.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null),(po=A).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(po.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null),(vo=A).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(vo.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null),(mo=A).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(mo.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null),(ho=A).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(ho.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),k(),k(),k(),k(),k(),k(),k();const He=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Sn(e){return Number(e)>=0}function go(e){if(!function(a){return typeof a=="object"&&a!==null}(e)||function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(a)}(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function pt(e,n){return Object.keys(n).forEach(a=>{if(go(n[a])&&go(e[a]))return e[a]||(e[a]={}),void pt(e[a],n[a]);e[a]=n[a]}),e}function vt(e){const n=e.split(".");if(!n.length)return"";let a=String(n[0]);for(let l=1;l{return(He(o=l)||Array.isArray(o))&&r in l?l[r]:a;var o},e):a}function Be(e,n,a){if(zt(n))return void(e[Tn(n)]=a);const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;owe(e,a.slice(0,u).join(".")));for(let i=r.length-1;i>=0;i--)o=r[i],(Array.isArray(o)?o.length===0:He(o)&&Object.keys(o).length===0)&&(i!==0?Xt(r[i-1],a[i-1]):Xt(e,a[0]));var o}function Se(e){return Object.keys(e)}function ma(e,n=void 0){const a=t.getCurrentInstance();return(a==null?void 0:a.provides[e])||t.inject(e,n)}function ko(e,n,a){if(Array.isArray(e)){const l=[...e],r=l.findIndex(o=>Ie(o,n));return r>=0?l.splice(r,1):l.push(n),l}return Ie(e,n)?a:n}function Co(e,n=0){let a=null,l=[];return function(...r){return a&&clearTimeout(a),a=setTimeout(()=>{const o=e(...r);l.forEach(i=>i(o)),l=[]},n),new Promise(o=>l.push(o))}}function Ml(e,n){return He(n)&&n.number?function(a){const l=parseFloat(a);return isNaN(l)?a:l}(e):e}function dn(e,n){let a;return async function(...l){const r=e(...l);a=r;const o=await r;return r!==a?o:(a=void 0,n(o,l))}}function fn(e){return Array.isArray(e)?e:e?[e]:[]}function wt(e,n){const a={};for(const l in e)n.includes(l)||(a[l]=e[l]);return a}function Jt(e){if(ha(e))return e._value}function ha(e){return"_value"in e}function Bt(e){if(!va(e))return e;const n=e.target;if(Et(n.type)&&ha(n))return Jt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(yo(a=n)&&a.multiple)return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(Jt);var a;if(yo(n)){const l=Array.from(n.options).find(r=>r.selected);return l?Jt(l):n.value}return function(l){return l.type==="number"||l.type==="range"?Number.isNaN(l.valueAsNumber)?l.value:l.valueAsNumber:l.value}(n)}function ga(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?He(e)&&e._$$isNormalized?e:He(e)?Object.keys(e).reduce((a,l)=>{const r=function(o){return o===!0?[]:Array.isArray(o)||He(o)?o:[o]}(e[l]);return e[l]!==!1&&(a[l]=Io(r)),a},n):typeof e!="string"?n:e.split("|").reduce((a,l)=>{const r=Ll(l);return r.name&&(a[r.name]=Io(r.params)),a},n):n}function Io(e){const n=a=>typeof a=="string"&&a[0]==="@"?function(l){const r=o=>{var i;return(i=we(o,l))!==null&&i!==void 0?i:o[l]};return r.__locatorRef=l,r}(a.slice(1)):a;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((a,l)=>(a[l]=n(e[l]),a),{})}const Ll=e=>{let n=[];const a=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:a,params:n}};let zl=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const Ge=()=>zl;async function _a(e,n,a={}){const l=a==null?void 0:a.bails,r={name:(a==null?void 0:a.name)||"{field}",rules:n,label:a==null?void 0:a.label,bails:l==null||l,formData:(a==null?void 0:a.values)||{}},o=await async function(i,u){const s=i.rules;if(Ne(s)||Dt(s))return async function(g,y){const h=Ne(y.rules)?y.rules:ya(y.rules),v=await h.parse(g,{formData:y.formData}),S=[];for(const I of v.errors)I.errors.length&&S.push(...I.errors);return{value:v.value,errors:S}}(u,Object.assign(Object.assign({},i),{rules:s}));if(Oe(s)||Array.isArray(s)){const g={field:i.label||i.name,name:i.name,label:i.label,form:i.formData,value:u},y=Array.isArray(s)?s:[s],h=y.length,v=[];for(let S=0;S{const c=s.path||"";return u[c]||(u[c]={errors:[],path:c}),u[c].errors.push(...s.errors),u},{});return{errors:Object.values(i)}}}}}async function Fl(e,n,a){const l=(r=a.name,jl[r]);var r;if(!l)throw new Error(`No such validator '${a.name}' exists.`);const o=function(s,c){const m=p=>cn(p)?p(c):p;return Array.isArray(s)?s.map(m):Object.keys(s).reduce((p,V)=>(p[V]=m(s[V]),p),{})}(a.params,e.formData),i={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},a),{params:o})},u=await l(n,o,i);return typeof u=="string"?{error:u}:{error:u?void 0:ba(i)}}function ba(e){const n=Ge().generateMessage;return n?n(e):"Field is invalid"}async function Hl(e,n,a){const l=Se(e).map(async s=>{var c,m,p;const V=(c=a==null?void 0:a.names)===null||c===void 0?void 0:c[s],g=await _a(we(n,s),e[s],{name:(V==null?void 0:V.name)||s,label:V==null?void 0:V.label,values:n,bails:(p=(m=a==null?void 0:a.bailsMap)===null||m===void 0?void 0:m[s])===null||p===void 0||p});return Object.assign(Object.assign({},g),{path:s})});let r=!0;const o=await Promise.all(l),i={},u={};for(const s of o)i[s.path]={valid:s.valid,errors:s.errors},s.valid||(r=!1,u[s.path]=s.errors[0]);return{valid:r,results:i,errors:u,source:"schema"}}let So=0;function $l(e,n){const{value:a,initialValue:l,setInitialValue:r}=function(u,s,c){const m=t.ref(t.unref(s));function p(){return c?we(c.initialValues.value,t.unref(u),t.unref(m)):t.unref(m)}function V(v){c?c.setFieldInitialValue(t.unref(u),v,!0):m.value=v}const g=t.computed(p);if(!c)return{value:t.ref(p()),initialValue:g,setInitialValue:V};const y=function(v,S,I,T){return t.isRef(v)?t.unref(v):v!==void 0?v:we(S.values,t.unref(T),t.unref(I))}(s,c,g,u);return c.stageInitialValue(t.unref(u),y,!0),{value:t.computed({get:()=>we(c.values,t.unref(u)),set(v){c.setFieldValue(t.unref(u),v,!1)}}),initialValue:g,setInitialValue:V}}(e,n.modelValue,n.form);if(!n.form){let p=function(V){var g;"value"in V&&(a.value=V.value),"errors"in V&&s(V.errors),"touched"in V&&(m.touched=(g=V.touched)!==null&&g!==void 0?g:m.touched),"initialValue"in V&&r(V.initialValue)};const{errors:u,setErrors:s}=function(){const V=t.ref([]);return{errors:V,setErrors:g=>{V.value=fn(g)}}}(),c=So>=Number.MAX_SAFE_INTEGER?0:++So,m=function(V,g,y,h){const v=t.computed(()=>{var I,T,U;return(U=(T=(I=t.toValue(h))===null||I===void 0?void 0:I.describe)===null||T===void 0?void 0:T.call(I).required)!==null&&U!==void 0&&U}),S=t.reactive({touched:!1,pending:!1,valid:!0,required:v,validated:!!t.unref(y).length,initialValue:t.computed(()=>t.unref(g)),dirty:t.computed(()=>!Ie(t.unref(V),t.unref(g)))});return t.watch(y,I=>{S.valid=!I.length},{immediate:!0,flush:"sync"}),S}(a,l,u,n.schema);return{id:c,path:e,value:a,initialValue:l,meta:m,flags:{pendingUnmount:{[c]:!1},pendingReset:!1},errors:u,setState:p}}const o=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),i=t.computed(()=>o.errors);return{id:Array.isArray(o.id)?o.id[o.id.length-1]:o.id,path:e,value:a,errors:i,meta:o,initialValue:l,flags:o.__flags,setState:function(u){var s,c,m;"value"in u&&(a.value=u.value),"errors"in u&&((s=n.form)===null||s===void 0||s.setFieldError(t.unref(e),u.errors)),"touched"in u&&((c=n.form)===null||c===void 0||c.setFieldTouched(t.unref(e),(m=u.touched)!==null&&m!==void 0&&m)),"initialValue"in u&&r(u.initialValue)}}}const gt={},_t={},yt="vee-validate-inspector",Kl=12405579,ql=448379,Wl=5522283,Mt=16777215,pn=0,Gl=218007,Yl=12157168,Zl=16099682,Xl=12304330;let Ye,_e=null;function Va(e){var n,a;process.env.NODE_ENV!=="production"&&(n={id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},a=l=>{Ye=l,l.addInspector({id:yt,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{_e?_e.type!=="field"?_e.type!=="form"?_e.type==="pathState"&&await _e.form.validateField(_e.state.path):await _e.form.validate():await _e.field.validate():console.error("There is not a valid selected vee-validate node or component")}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{_e?_e.type!=="field"?(_e.type==="form"&&_e.form.resetForm(),_e.type==="pathState"&&_e.form.resetField(_e.state.path)):_e.field.resetField():console.error("There is not a valid selected vee-validate node or component")}}]}),l.on.getInspectorTree(r=>{if(r.inspectorId!==yt)return;const o=Object.values(gt),i=Object.values(_t);r.rootNodes=[...o.map(Jl),...i.map(u=>function(s,c){return{id:vn(c,s),label:t.unref(s.name),tags:Oa(!1,1,s.type,s.meta.valid,c)}}(u))]}),l.on.getInspectorState(r=>{if(r.inspectorId!==yt)return;const{form:o,field:i,state:u,type:s}=function(c){try{const m=JSON.parse(decodeURIComponent(atob(c))),p=gt[m.f];if(!p&&m.ff){const g=_t[m.ff];return g?{type:m.type,field:g}:{}}if(!p)return{};const V=p.getPathState(m.ff);return{type:m.type,form:p,state:V}}catch{}return{}}(r.nodeId);return l.unhighlightElement(),o&&s==="form"?(r.state=function(c){const{errorBag:m,meta:p,values:V,isSubmitting:g,isValidating:y,submitCount:h}=c;return{"Form state":[{key:"submitCount",value:h.value},{key:"isSubmitting",value:g.value},{key:"isValidating",value:y.value},{key:"touched",value:p.value.touched},{key:"dirty",value:p.value.dirty},{key:"valid",value:p.value.valid},{key:"initialValues",value:p.value.initialValues},{key:"currentValues",value:V},{key:"errors",value:Se(m.value).reduce((v,S)=>{var I;const T=(I=m.value[S])===null||I===void 0?void 0:I[0];return T&&(v[S]=T),v},{})}]}}(o),_e={type:"form",form:o},void l.highlightElement(o._vm)):u&&s==="pathState"&&o?(r.state=wo(u),void(_e={type:"pathState",state:u,form:o})):i&&s==="field"?(r.state=wo({errors:i.errors.value,dirty:i.meta.dirty,valid:i.meta.valid,touched:i.meta.touched,value:i.value.value,initialValue:i.meta.initialValue}),_e={field:i,type:"field"},void l.highlightElement(i._vm)):(_e=null,void l.unhighlightElement())})},Xo.setupDevToolsPlugin(n,a))}const tt=function(e,n){let a,l;return function(...r){const o=this;return a||(a=!0,setTimeout(()=>a=!1,n),l=e.apply(o,r)),l}}(()=>{setTimeout(async()=>{await t.nextTick(),Ye==null||Ye.sendInspectorState(yt),Ye==null||Ye.sendInspectorTree(yt)},100)},100);function Jl(e){const{textColor:n,bgColor:a}=Ea(e.meta.value.valid),l={};Object.values(e.getAllPathStates()).forEach(o=>{Be(l,t.toValue(o.path),function(i,u){return{id:vn(u,i),label:t.toValue(i.path),tags:Oa(i.multiple,i.fieldsCount,i.type,i.valid,u)}}(o,e))});const{children:r}=function o(i,u=[]){const s=[...u].pop();return"id"in i?Object.assign(Object.assign({},i),{label:s||i.label}):He(i)?{id:`${u.join(".")}`,label:s||"",children:Object.keys(i).map(c=>o(i[c],[...u,c]))}:Array.isArray(i)?{id:`${u.join(".")}`,label:`${s}[]`,children:i.map((c,m)=>o(c,[...u,String(m)]))}:{id:"",label:"",children:[]}}(l);return{id:vn(e),label:e.name,children:r,tags:[{label:"Form",textColor:n,backgroundColor:a},{label:`${e.getAllPathStates().length} fields`,textColor:Mt,backgroundColor:Wl}]}}function Oa(e,n,a,l,r){const{textColor:o,bgColor:i}=Ea(l);return[e?void 0:{label:"Field",textColor:o,backgroundColor:i},r?void 0:{label:"Standalone",textColor:pn,backgroundColor:Xl},a==="checkbox"?{label:"Checkbox",textColor:Mt,backgroundColor:Gl}:void 0,a==="radio"?{label:"Radio",textColor:Mt,backgroundColor:Yl}:void 0,e?{label:"Multiple",textColor:pn,backgroundColor:Zl}:void 0].filter(Boolean)}function vn(e,n){const a=n?"path"in n?"pathState":"field":"form",l=n?"path"in n?n==null?void 0:n.path:t.toValue(n==null?void 0:n.name):"",r={f:e==null?void 0:e.formId,ff:(n==null?void 0:n.id)||l,type:a};return btoa(encodeURIComponent(JSON.stringify(r)))}function wo(e){return{"Field state":[{key:"errors",value:e.errors},{key:"initialValue",value:e.initialValue},{key:"currentValue",value:e.value},{key:"touched",value:e.touched},{key:"dirty",value:e.dirty},{key:"valid",value:e.valid}]}}function Ea(e){return{bgColor:e?ql:Kl,textColor:e?pn:Mt}}function rt(e,n,a){return Et(a==null?void 0:a.type)?function(l,r,o){const i=o!=null&&o.standalone?void 0:ma(wn),u=o==null?void 0:o.checkedValue,s=o==null?void 0:o.uncheckedValue;function c(m){const p=m.handleChange,V=t.computed(()=>{const y=t.toValue(m.value),h=t.toValue(u);return Array.isArray(y)?y.findIndex(v=>Ie(v,h))>=0:Ie(h,y)});function g(y,h=!0){var v,S;if(V.value===((v=y==null?void 0:y.target)===null||v===void 0?void 0:v.checked))return void(h&&m.validate());const I=t.toValue(l),T=i==null?void 0:i.getPathState(I),U=Bt(y);let M=(S=t.toValue(u))!==null&&S!==void 0?S:U;i&&(T!=null&&T.multiple)&&T.type==="checkbox"?M=ko(we(i.values,I)||[],M,void 0):(o==null?void 0:o.type)==="checkbox"&&(M=ko(t.toValue(m.value),M,t.toValue(s))),p(M,h)}return Object.assign(Object.assign({},m),{checked:V,checkedValue:u,uncheckedValue:s,handleChange:g})}return c(To(l,r,o))}(e,n,a):To(e,n,a)}function To(e,n,a){const{initialValue:l,validateOnMount:r,bails:o,type:i,checkedValue:u,label:s,validateOnValueUpdate:c,uncheckedValue:m,controlled:p,keepValueOnUnmount:V,syncVModel:g,form:y}=function(b){const L=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),ae=!!(b!=null&&b.syncVModel),B=typeof(b==null?void 0:b.syncVModel)=="string"?b.syncVModel:(b==null?void 0:b.modelPropName)||"modelValue",re=ae&&!("initialValue"in(b||{}))?Qt(t.getCurrentInstance(),B):b==null?void 0:b.initialValue;if(!b)return Object.assign(Object.assign({},L()),{initialValue:re});const ee="valueProp"in b?b.valueProp:b.checkedValue,ge="standalone"in b?!b.standalone:b.controlled,se=(b==null?void 0:b.modelPropName)||(b==null?void 0:b.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},L()),b||{}),{initialValue:re,controlled:ge==null||ge,checkedValue:ee,syncVModel:se})}(a),h=p?ma(wn):void 0,v=y||h,S=t.computed(()=>vt(t.toValue(e))),I=t.computed(()=>{if(t.toValue(v==null?void 0:v.schema))return;const b=t.unref(n);return Dt(b)||Ne(b)||Oe(b)||Array.isArray(b)?b:ga(b)}),T=!Oe(I.value)&&Ne(t.toValue(n)),{id:U,value:M,initialValue:le,meta:G,setState:oe,errors:Q,flags:Z}=$l(S,{modelValue:l,form:v,bails:o,label:s,type:i,validate:I.value?X:void 0,schema:T?n:void 0}),w=t.computed(()=>Q.value[0]);g&&function({prop:b,value:L,handleChange:ae,shouldValidate:B}){const re=t.getCurrentInstance();if(!re||!b)return void(process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup."));const ee=typeof b=="string"?b:"modelValue",ge=`update:${ee}`;ee in re.props&&(t.watch(L,se=>{Ie(se,Qt(re,ee))||re.emit(ge,se)}),t.watch(()=>Qt(re,ee),se=>{if(se===Ut&&L.value===void 0)return;const E=se===Ut?void 0:se;Ie(E,L.value)||ae(E,B())}))}({value:M,prop:g,handleChange:W,shouldValidate:()=>c&&!Z.pendingReset});async function D(b){var L,ae;if(v!=null&&v.validateSchema){const{results:B}=await v.validateSchema(b);return(L=B[t.toValue(S)])!==null&&L!==void 0?L:{valid:!0,errors:[]}}return I.value?_a(M.value,I.value,{name:t.toValue(S),label:t.toValue(s),values:(ae=v==null?void 0:v.values)!==null&&ae!==void 0?ae:{},bails:o}):{valid:!0,errors:[]}}const ne=dn(async()=>(G.pending=!0,G.validated=!0,D("validated-only")),b=>(Z.pendingUnmount[q.id]||(oe({errors:b.errors}),G.pending=!1,G.valid=b.valid),b)),z=dn(async()=>D("silent"),b=>(G.valid=b.valid,b));function X(b){return(b==null?void 0:b.mode)==="silent"?z():ne()}function W(b,L=!0){te(Bt(b),L)}function F(b){var L;const ae=b&&"value"in b?b.value:le.value;oe({value:ue(ae),initialValue:ue(ae),touched:(L=b==null?void 0:b.touched)!==null&&L!==void 0&&L,errors:(b==null?void 0:b.errors)||[]}),G.pending=!1,G.validated=!1,z()}t.onMounted(()=>{if(r)return ne();v&&v.validateSchema||z()});const K=t.getCurrentInstance();function te(b,L=!0){M.value=K&&g?Ml(b,K.props.modelModifiers):b,(L?ne:z)()}const J=t.computed({get:()=>M.value,set(b){te(b,c)}}),q={id:U,name:S,label:s,value:J,meta:G,errors:Q,errorMessage:w,type:i,checkedValue:u,uncheckedValue:m,bails:o,keepValueOnUnmount:V,resetField:F,handleReset:()=>F(),validate:X,handleChange:W,handleBlur:(b,L=!1)=>{G.touched=!0,L&&ne()},setState:oe,setTouched:function(b){G.touched=b},setErrors:function(b){oe({errors:Array.isArray(b)?b:[b]})},setValue:te};if(t.provide(Ul,q),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(b,L)=>{Ie(b,L)||(G.validated?ne():z())},{deep:!0}),process.env.NODE_ENV!=="production"&&(q._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:Q.value},G),{value:M.value}),tt,{deep:!0}),v||function(b){const L=t.getCurrentInstance();if(!Ye){const ae=L==null?void 0:L.appContext.app;if(!ae)return;Va(ae)}_t[b.id]=Object.assign({},b),_t[b.id]._vm=L,t.onUnmounted(()=>{delete _t[b.id],tt()}),tt()}(q)),!v)return q;const ie=t.computed(()=>{const b=I.value;return!b||Oe(b)||Dt(b)||Ne(b)||Array.isArray(b)?{}:Object.keys(b).reduce((L,ae)=>{const B=(re=b[ae],Array.isArray(re)?re.filter(cn):Se(re).filter(ee=>cn(re[ee])).map(ee=>re[ee])).map(ee=>ee.__locatorRef).reduce((ee,ge)=>{const se=we(v.values,ge)||v.values[ge];return se!==void 0&&(ee[ge]=se),ee},{});var re;return Object.assign(L,B),L},{})});return t.watch(ie,(b,L)=>{Object.keys(b).length&&!Ie(b,L)&&(G.validated?ne():z())}),t.onBeforeUnmount(()=>{var b;const L=(b=t.toValue(q.keepValueOnUnmount))!==null&&b!==void 0?b:t.toValue(v.keepValuesOnUnmount),ae=t.toValue(S);if(L||!v||Z.pendingUnmount[q.id])return void(v==null||v.removePathState(ae,U));Z.pendingUnmount[q.id]=!0;const B=v.getPathState(ae);if(Array.isArray(B==null?void 0:B.id)&&(B!=null&&B.multiple)?B!=null&&B.id.includes(q.id):(B==null?void 0:B.id)===q.id){if(B!=null&&B.multiple&&Array.isArray(B.value)){const re=B.value.findIndex(ee=>Ie(ee,t.toValue(q.checkedValue)));if(re>-1){const ee=[...B.value];ee.splice(re,1),v.setFieldValue(ae,ee)}Array.isArray(B.id)&&B.id.splice(B.id.indexOf(q.id),1)}else v.unsetPathValue(t.toValue(S));v.removePathState(ae,U)}}),q}function Qt(e,n){if(e)return e.props[n]}const Ql=t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Ge().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Ut},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const a=t.toRef(e,"rules"),l=t.toRef(e,"name"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),i=t.toRef(e,"keepValue"),{errors:u,value:s,errorMessage:c,validate:m,handleChange:p,handleBlur:V,setTouched:g,resetField:y,handleReset:h,meta:v,checked:S,setErrors:I,setValue:T}=rt(l,a,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:er(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:i,syncVModel:!0}),U=function(Q,Z=!0){p(Q,Z)},M=t.computed(()=>{const{validateOnInput:Q,validateOnChange:Z,validateOnBlur:w,validateOnModelUpdate:D}=function(z){var X,W,F,K;const{validateOnInput:te,validateOnChange:J,validateOnBlur:q,validateOnModelUpdate:ie}=Ge();return{validateOnInput:(X=z.validateOnInput)!==null&&X!==void 0?X:te,validateOnChange:(W=z.validateOnChange)!==null&&W!==void 0?W:J,validateOnBlur:(F=z.validateOnBlur)!==null&&F!==void 0?F:q,validateOnModelUpdate:(K=z.validateOnModelUpdate)!==null&&K!==void 0?K:ie}}(e);return{name:e.name,onBlur:function(z){V(z,w),Oe(n.attrs.onBlur)&&n.attrs.onBlur(z)},onInput:function(z){U(z,Q),Oe(n.attrs.onInput)&&n.attrs.onInput(z)},onChange:function(z){U(z,Z),Oe(n.attrs.onChange)&&n.attrs.onChange(z)},"onUpdate:modelValue":z=>U(z,D)}}),le=t.computed(()=>{const Q=Object.assign({},M.value);return Et(n.attrs.type)&&S&&(Q.checked=S.value),Bl(xo(e,n),n.attrs)&&(Q.value=s.value),Q}),G=t.computed(()=>Object.assign(Object.assign({},M.value),{modelValue:s.value}));function oe(){return{field:le.value,componentField:G.value,value:s.value,meta:v,errors:u.value,errorMessage:c.value,validate:m,resetField:y,handleChange:U,handleInput:Q=>U(Q,!1),handleReset:h,handleBlur:M.value.onBlur,setTouched:g,setErrors:I,setValue:T}}return n.expose({value:s,meta:v,errors:u,errorMessage:c,setErrors:I,setTouched:g,setValue:T,reset:y,validate:m,handleChange:p}),()=>{const Q=t.resolveDynamicComponent(xo(e,n)),Z=function(w,D,ne){return D.slots.default?typeof w!="string"&&w?{default:()=>{var z,X;return(X=(z=D.slots).default)===null||X===void 0?void 0:X.call(z,ne())}}:D.slots.default(ne()):D.slots.default}(Q,n,oe);return Q?t.h(Q,Object.assign(Object.assign({},n.attrs),le.value),Z):Z}}});function xo(e,n){let a=e.as||"";return e.as||n.slots.default||(a="input"),a}function er(e,n){return Et(n.attrs.type)?bo(e,"modelValue")?e.modelValue:void 0:bo(e,"modelValue")?e.modelValue:n.attrs.value}const tr=Ql;let nr=0;const Tt=["bails","fieldsCount","id","multiple","type","validate"];function Po(e){const n=(e==null?void 0:e.initialValues)||{},a=Object.assign({},t.toValue(n)),l=t.unref(e==null?void 0:e.validationSchema);return l&&Ne(l)&&Oe(l.cast)?ue(l.cast(a)||{}):ue(a)}function or(e){var n;const a=nr++,l=(e==null?void 0:e.name)||"Form";let r=0;const o=t.ref(!1),i=t.ref(!1),u=t.ref(0),s=[],c=t.reactive(Po(e)),m=t.ref([]),p=t.ref({}),V=t.ref({}),g=function(f){let d=null,_=[];return function(...C){const O=t.nextTick(()=>{if(d!==O)return;const N=f(...C);_.forEach(P=>P(N)),_=[],d=null});return d=O,new Promise(N=>_.push(N))}}(()=>{V.value=m.value.reduce((f,d)=>(f[vt(t.toValue(d.path))]=d,f),{})});function y(f,d){const _=F(f);if(_){if(typeof f=="string"){const C=vt(f);p.value[C]&&delete p.value[C]}_.errors=fn(d),_.valid=!_.errors.length}else typeof f=="string"&&(p.value[vt(f)]=fn(d))}function h(f){Se(f).forEach(d=>{y(d,f[d])})}e!=null&&e.initialErrors&&h(e.initialErrors);const v=t.computed(()=>{const f=m.value.reduce((d,_)=>(_.errors.length&&(d[t.toValue(_.path)]=_.errors),d),{});return Object.assign(Object.assign({},p.value),f)}),S=t.computed(()=>Se(v.value).reduce((f,d)=>{const _=v.value[d];return _!=null&&_.length&&(f[d]=_[0]),f},{})),I=t.computed(()=>m.value.reduce((f,d)=>(f[t.toValue(d.path)]={name:t.toValue(d.path)||"",label:d.label||""},f),{})),T=t.computed(()=>m.value.reduce((f,d)=>{var _;return f[t.toValue(d.path)]=(_=d.bails)===null||_===void 0||_,f},{})),U=Object.assign({},(e==null?void 0:e.initialErrors)||{}),M=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0&&n,{initialValues:le,originalInitialValues:G,setInitialValues:oe}=function(f,d,_){const C=Po(_),O=t.ref(C),N=t.ref(ue(C));function P(H,Y){Y!=null&&Y.force?(O.value=ue(H),N.value=ue(H)):(O.value=pt(ue(O.value)||{},ue(H)),N.value=pt(ue(N.value)||{},ue(H))),Y!=null&&Y.updateFields&&f.value.forEach(de=>{if(de.touched)return;const $=we(O.value,t.toValue(de.path));Be(d,t.toValue(de.path),ue($))})}return{initialValues:O,originalInitialValues:N,setInitialValues:P}}(m,c,e),Q=function(f,d,_,C){const O={touched:"some",pending:"some",valid:"every"},N=t.computed(()=>!Ie(d,t.unref(_)));function P(){const Y=f.value;return Se(O).reduce((de,$)=>{const me=O[$];return de[$]=Y[me](fe=>fe[$]),de},{})}const H=t.reactive(P());return t.watchEffect(()=>{const Y=P();H.touched=Y.touched,H.valid=Y.valid,H.pending=Y.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(_)},H),{valid:H.valid&&!Se(C.value).length,dirty:N.value}))}(m,c,G,S),Z=t.computed(()=>m.value.reduce((f,d)=>{const _=we(c,t.toValue(d.path));return Be(f,t.toValue(d.path),_),f},{})),w=e==null?void 0:e.validationSchema;function D(f,d){var _,C;const O=t.computed(()=>we(le.value,t.toValue(f))),N=V.value[t.toValue(f)],P=(d==null?void 0:d.type)==="checkbox"||(d==null?void 0:d.type)==="radio";if(N&&P){N.multiple=!0;const ve=r++;return Array.isArray(N.id)?N.id.push(ve):N.id=[N.id,ve],N.fieldsCount++,N.__flags.pendingUnmount[ve]=!1,N}const H=t.computed(()=>we(c,t.toValue(f))),Y=t.toValue(f),de=te.findIndex(ve=>ve===Y);de!==-1&&te.splice(de,1);const $=t.computed(()=>{var ve,Ee,je,Xe;const Ae=t.toValue(w);if(Ne(Ae))return(Ee=(ve=Ae.describe)===null||ve===void 0?void 0:ve.call(Ae,t.toValue(f)).required)!==null&&Ee!==void 0&&Ee;const Me=t.toValue(d==null?void 0:d.schema);return!!Ne(Me)&&(Xe=(je=Me.describe)===null||je===void 0?void 0:je.call(Me).required)!==null&&Xe!==void 0&&Xe}),me=r++,fe=t.reactive({id:me,path:f,touched:!1,pending:!1,valid:!0,validated:!!(!((_=U[Y])===null||_===void 0)&&_.length),required:$,initialValue:O,errors:t.shallowRef([]),bails:(C=d==null?void 0:d.bails)!==null&&C!==void 0&&C,label:d==null?void 0:d.label,type:(d==null?void 0:d.type)||"default",value:H,multiple:!1,__flags:{pendingUnmount:{[me]:!1},pendingReset:!1},fieldsCount:1,validate:d==null?void 0:d.validate,dirty:t.computed(()=>!Ie(t.unref(H),t.unref(O)))});return m.value.push(fe),V.value[Y]=fe,g(),S.value[Y]&&!U[Y]&&t.nextTick(()=>{E(Y,{mode:"silent"})}),t.isRef(f)&&t.watch(f,ve=>{g();const Ee=ue(H.value);V.value[ve]=fe,t.nextTick(()=>{Be(c,ve,Ee)})}),fe}const ne=Co(ye,5),z=Co(ye,5),X=dn(async f=>await(f==="silent"?ne():z()),(f,[d])=>{const _=Se(ie.errorBag.value),C=[...new Set([...Se(f.results),...m.value.map(O=>O.path),..._])].sort().reduce((O,N)=>{var P;const H=N,Y=F(H)||function(fe){return m.value.filter(Ee=>fe.startsWith(t.toValue(Ee.path))).reduce((Ee,je)=>Ee?je.path.length>Ee.path.length?je:Ee:je,void 0)}(H),de=((P=f.results[H])===null||P===void 0?void 0:P.errors)||[],$=t.toValue(Y==null?void 0:Y.path)||H,me=function(fe,ve){return ve?{valid:fe.valid&&ve.valid,errors:[...fe.errors,...ve.errors]}:fe}({errors:de,valid:!de.length},O.results[$]);return O.results[$]=me,me.valid||(O.errors[$]=me.errors[0]),Y&&p.value[$]&&delete p.value[$],Y?(Y.valid=me.valid,d==="silent"||(d!=="validated-only"||Y.validated)&&y(Y,me.errors),O):(y($,de),O)},{valid:f.valid,results:{},errors:{},source:f.source});return f.values&&(C.values=f.values,C.source=f.source),Se(C.results).forEach(O=>{var N;const P=F(O);P&&d!=="silent"&&(d!=="validated-only"||P.validated)&&y(P,(N=C.results[O])===null||N===void 0?void 0:N.errors)}),C});function W(f){m.value.forEach(f)}function F(f){const d=typeof f=="string"?vt(f):f;return typeof d=="string"?V.value[d]:d}let K,te=[];function J(f){return function(d,_){return function(C){return C instanceof Event&&(C.preventDefault(),C.stopPropagation()),W(O=>O.touched=!0),o.value=!0,u.value++,se().then(O=>{const N=ue(c);if(O.valid&&typeof d=="function"){const P=ue(Z.value);let H=f?P:N;return O.values&&(H=O.source==="schema"?O.values:Object.assign({},H,O.values)),d(H,{evt:C,controlledValues:P,setErrors:h,setFieldError:y,setTouched:re,setFieldTouched:B,setValues:L,setFieldValue:b,resetForm:ge,resetField:ee})}O.valid||typeof _!="function"||_({values:N,evt:C,errors:O.errors,results:O.results})}).then(O=>(o.value=!1,O),O=>{throw o.value=!1,O})}}}const q=J(!1);q.withControlled=J(!0);const ie={name:l,formId:a,values:c,controlledValues:Z,errorBag:v,errors:S,schema:w,submitCount:u,meta:Q,isSubmitting:o,isValidating:i,fieldArrays:s,keepValuesOnUnmount:M,validateSchema:t.unref(w)?X:void 0,validate:se,setFieldError:y,validateField:E,setFieldValue:b,setValues:L,setErrors:h,setFieldTouched:B,setTouched:re,resetForm:ge,resetField:ee,handleSubmit:q,useFieldModel:function(f){return Array.isArray(f)?f.map(d=>ae(d,!0)):ae(f)},defineInputBinds:function(f,d){const[_,C]=x(f,d);function O(){C.value.onBlur()}function N(H){const Y=Bt(H);b(t.toValue(f),Y,!1),C.value.onInput()}function P(H){const Y=Bt(H);b(t.toValue(f),Y,!1),C.value.onChange()}return t.computed(()=>Object.assign(Object.assign({},C.value),{onBlur:O,onInput:N,onChange:P,value:_.value}))},defineComponentBinds:function(f,d){const[_,C]=x(f,d),O=F(t.toValue(f));function N(P){_.value=P}return t.computed(()=>{const P=Oe(d)?d(wt(O,Tt)):d||{};return Object.assign({[P.model||"modelValue"]:_.value,[`onUpdate:${P.model||"modelValue"}`]:N},C.value)})},defineField:x,stageInitialValue:function(f,d,_=!1){he(f,d),Be(c,f,d),_&&!(e!=null&&e.initialValues)&&Be(G.value,f,ue(d))},unsetInitialValue:j,setFieldInitialValue:he,createPathState:D,getPathState:F,unsetPathValue:function(f){return te.push(f),K||(K=t.nextTick(()=>{[...te].sort().reverse().forEach(d=>{Eo(c,d)}),te=[],K=null})),K},removePathState:function(f,d){const _=m.value.findIndex(O=>O.path===f&&(Array.isArray(O.id)?O.id.includes(d):O.id===d)),C=m.value[_];if(_!==-1&&C){if(t.nextTick(()=>{E(f,{mode:"silent",warn:!1})}),C.multiple&&C.fieldsCount&&C.fieldsCount--,Array.isArray(C.id)){const O=C.id.indexOf(d);O>=0&&C.id.splice(O,1),delete C.__flags.pendingUnmount[d]}(!C.multiple||C.fieldsCount<=0)&&(m.value.splice(_,1),j(f),g(),delete V.value[f])}},initialValues:le,getAllPathStates:()=>m.value,destroyPath:function(f){Se(V.value).forEach(d=>{d.startsWith(f)&&delete V.value[d]}),m.value=m.value.filter(d=>!d.path.startsWith(f)),t.nextTick(()=>{g()})},isFieldTouched:function(f){const d=F(f);return d?d.touched:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.touched)},isFieldDirty:function(f){const d=F(f);return d?d.dirty:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.dirty)},isFieldValid:function(f){const d=F(f);return d?d.valid:m.value.filter(_=>_.path.startsWith(f)).every(_=>_.valid)}};function b(f,d,_=!0){const C=ue(d),O=typeof f=="string"?f:f.path;F(O)||D(O),Be(c,O,C),_&&E(O)}function L(f,d=!0){pt(c,f),s.forEach(_=>_&&_.reset()),d&&se()}function ae(f,d){const _=F(t.toValue(f))||D(f);return t.computed({get:()=>_.value,set(C){var O;b(t.toValue(f),C,(O=t.toValue(d))!==null&&O!==void 0&&O)}})}function B(f,d){const _=F(f);_&&(_.touched=d)}function re(f){typeof f!="boolean"?Se(f).forEach(d=>{B(d,!!f[d])}):W(d=>{d.touched=f})}function ee(f,d){var _;const C=d&&"value"in d?d.value:we(le.value,f),O=F(f);O&&(O.__flags.pendingReset=!0),he(f,ue(C),!0),b(f,C,!1),B(f,(_=d==null?void 0:d.touched)!==null&&_!==void 0&&_),y(f,(d==null?void 0:d.errors)||[]),t.nextTick(()=>{O&&(O.__flags.pendingReset=!1)})}function ge(f,d){let _=ue(f!=null&&f.values?f.values:G.value);_=d!=null&&d.force?_:pt(G.value,_),_=Ne(w)&&Oe(w.cast)?w.cast(_):_,oe(_,{force:d==null?void 0:d.force}),W(C=>{var O;C.__flags.pendingReset=!0,C.validated=!1,C.touched=((O=f==null?void 0:f.touched)===null||O===void 0?void 0:O[t.toValue(C.path)])||!1,b(t.toValue(C.path),we(_,t.toValue(C.path)),!1),y(t.toValue(C.path),void 0)}),d!=null&&d.force?function(C,O=!0){Se(c).forEach(N=>{delete c[N]}),Se(C).forEach(N=>{b(N,C[N],!1)}),O&&se()}(_,!1):L(_,!1),h((f==null?void 0:f.errors)||{}),u.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{se({mode:"silent"}),W(C=>{C.__flags.pendingReset=!1})})}async function se(f){const d=(f==null?void 0:f.mode)||"force";if(d==="force"&&W(P=>P.validated=!0),ie.validateSchema)return ie.validateSchema(d);i.value=!0;const _=await Promise.all(m.value.map(P=>P.validate?P.validate(f).then(H=>({key:t.toValue(P.path),valid:H.valid,errors:H.errors,value:H.value})):Promise.resolve({key:t.toValue(P.path),valid:!0,errors:[],value:void 0})));i.value=!1;const C={},O={},N={};for(const P of _)C[P.key]={valid:P.valid,errors:P.errors},P.value&&Be(N,P.key,P.value),P.errors.length&&(O[P.key]=P.errors[0]);return{valid:_.every(P=>P.valid),results:C,errors:O,values:N,source:"fields"}}async function E(f,d){var _;const C=F(f);if(C&&(d==null?void 0:d.mode)!=="silent"&&(C.validated=!0),w){const{results:O}=await X((d==null?void 0:d.mode)||"validated-only");return O[f]||{errors:[],valid:!0}}return C!=null&&C.validate?C.validate(d):(!C&&((_=d==null?void 0:d.warn)===null||_===void 0||_)&&process.env.NODE_ENV!=="production"&&t.warn(`field with path ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function j(f){Eo(le.value,f)}function he(f,d,_=!1){Be(le.value,f,ue(d)),_&&Be(G.value,f,ue(d))}async function ye(){const f=t.unref(w);if(!f)return{valid:!0,results:{},errors:{},source:"none"};i.value=!0;const d=Dt(f)||Ne(f)?await async function(_,C){const O=Ne(_)?_:ya(_),N=await O.parse(ue(C),{formData:ue(C)}),P={},H={};for(const Y of N.errors){const de=Y.errors,$=(Y.path||"").replace(/\["(\d+)"\]/g,(me,fe)=>`[${fe}]`);P[$]={valid:!de.length,errors:de},de.length&&(H[$]=de[0])}return{valid:!N.errors.length,results:P,errors:H,values:N.value,source:"schema"}}(f,c):await Hl(f,c,{names:I.value,bailsMap:T.value});return i.value=!1,d}const R=q((f,{evt:d})=>{(function(_){return va(_)&&_.target&&"submit"in _.target})(d)&&d.target.submit()});function x(f,d){const _=Oe(d)||d==null?void 0:d.label,C=F(t.toValue(f))||D(f,{label:_}),O=()=>Oe(d)?d(wt(C,Tt)):d||{};function N(){var $;C.touched=!0,(($=O().validateOnBlur)!==null&&$!==void 0?$:Ge().validateOnBlur)&&E(t.toValue(C.path))}function P(){var $;(($=O().validateOnInput)!==null&&$!==void 0?$:Ge().validateOnInput)&&t.nextTick(()=>{E(t.toValue(C.path))})}function H(){var $;(($=O().validateOnChange)!==null&&$!==void 0?$:Ge().validateOnChange)&&t.nextTick(()=>{E(t.toValue(C.path))})}const Y=t.computed(()=>{const $={onChange:H,onInput:P,onBlur:N};return Oe(d)?Object.assign(Object.assign({},$),d(wt(C,Tt)).props||{}):d!=null&&d.props?Object.assign(Object.assign({},$),d.props(wt(C,Tt))):$});return[ae(f,()=>{var $,me,fe;return(fe=($=O().validateOnModelUpdate)!==null&&$!==void 0?$:(me=Ge())===null||me===void 0?void 0:me.validateOnModelUpdate)===null||fe===void 0||fe}),Y]}t.onMounted(()=>{e!=null&&e.initialErrors&&h(e.initialErrors),e!=null&&e.initialTouched&&re(e.initialTouched),e!=null&&e.validateOnMount?se():ie.validateSchema&&ie.validateSchema("silent")}),t.isRef(w)&&t.watch(w,()=>{var f;(f=ie.validateSchema)===null||f===void 0||f.call(ie,"validated-only")}),t.provide(wn,ie),process.env.NODE_ENV!=="production"&&(function(f){const d=t.getCurrentInstance();if(!Ye){const _=d==null?void 0:d.appContext.app;if(!_)return;Va(_)}gt[f.formId]=Object.assign({},f),gt[f.formId]._vm=d,t.onUnmounted(()=>{delete gt[f.formId],tt()}),tt()}(ie),t.watch(()=>Object.assign(Object.assign({errors:v.value},Q.value),{values:c,isSubmitting:o.value,isValidating:i.value,submitCount:u.value}),tt,{deep:!0}));const pe=Object.assign(Object.assign({},ie),{values:t.readonly(c),handleReset:()=>ge(),submitForm:R});return t.provide(Rl,pe),pe}const ct="v-stepper-form",Ao=(e,n,a={})=>{const l=(r,o)=>{const i={...r};for(const u in o)o[u]===void 0||typeof o[u]!="object"||Array.isArray(o[u])?o[u]!==void 0&&(i[u]=o[u]):i[u]=l(i[u]??{},o[u]);return i};return[e,n,a].filter(Boolean).reduce(l,{})},No=e=>({altLabels:e.altLabels,autoPage:e.autoPage,autoPageDelay:e.autoPageDelay,bgColor:e.bgColor,border:e.border,color:e.color,density:e.density,disabled:e.disabled,editIcon:e.editIcon,editable:e.editable,elevation:e.elevation,errorIcon:e.errorIcon,fieldColumns:e.fieldColumns,flat:e.flat,headerTooltips:e.headerTooltips,height:e.height,hideActions:e.hideActions,hideDetails:e.hideDetails,keepValuesOnUnmount:e.keepValuesOnUnmount,maxHeight:e.maxHeight,maxWidth:e.maxWidth,minHeight:e.minHeight,minWidth:e.minWidth,nextText:e.nextText,prevText:e.prevText,rounded:e.rounded,selectedClass:e.selectedClass,summaryColumns:e.summaryColumns,tag:e.tag,theme:e.theme,tile:e.tile,tooltipLocation:e.tooltipLocation,tooltipOffset:e.tooltipOffset,tooltipTransition:e.tooltipTransition,transition:e.transition,validateOn:e.validateOn,validateOnMount:e.validateOnMount,variant:e.variant}),mn=e=>{const{columns:n,propName:a}=e;let l=!1;if(n&&(Object.values(n).forEach(r=>{(r<1||r>12)&&(l=!0)}),l))throw new Error(`The ${a} values must be between 1 and 12`)},hn=e=>{let n=-1,a=-1;return e.forEach((l,r)=>{l.editable===!1&&(n===-1&&(n=r),a=r)}),{firstNonEditableIndex:n,lastNonEditableIndex:a}},ka=e=>{const{columnsMerged:n,fieldColumns:a,propName:l}=e;a&&l&&mn({columns:a,propName:`${l} prop "columns"`});const r=(a==null?void 0:a.sm)??n.sm,o=(a==null?void 0:a.md)??n.md,i=(a==null?void 0:a.lg)??n.lg,u=(a==null?void 0:a.xl)??n.xl;return{"v-col-12":!0,"v-cols":!0,[`v-col-sm-${r}`]:!!r,[`v-col-md-${o}`]:!!o,[`v-col-lg-${i}`]:!!i,[`v-col-xl-${u}`]:!!u}},ar=["columns","options","required","rules","when"],Ke=(e,n=[])=>{const a=Object.entries(e).filter(([l])=>!ar.includes(l)&&!(n!=null&&n.includes(l)));return Object.fromEntries(a)},it=async e=>{const{action:n,emit:a,field:l,settingsValidateOn:r,validate:o}=e,i=l.validateOn||r;(n==="blur"&&i==="blur"||n==="input"&&i==="input"||n==="change"&&i==="change"||n==="click")&&await o().then(()=>{a("validate",l)})},lr=t.defineComponent({__name:"CommonField",props:t.mergeModels({field:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),c=l.value,{errorMessage:m,setValue:p,validate:V,value:g}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});async function y(U){await it({action:U,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:V})}t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=c,p(c))});const h=t.computed(()=>o!=null&&o.items?o.items:void 0),v=t.computed(()=>o.type==="color"||o.type==="date"?"text":o.type),S=t.computed(()=>{let U=o==null?void 0:o.error;return U=o!=null&&o.errorMessages?o.errorMessages.length>0:U,U}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,hideDetails:o.hideDetails||i.value.hideDetails,type:v.value,variant:o.variant||i.value.variant})),T=t.computed(()=>Ke(I.value));return(U,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.component),t.mergeProps({modelValue:t.unref(g),"onUpdate:modelValue":M[0]||(M[0]=le=>t.isRef(g)?g.value=le:null)},{...t.unref(T)},{"data-cy":`vsf-field-${t.unref(o).name}`,error:t.unref(S),"error-messages":t.unref(m)||t.unref(o).errorMessages,items:t.unref(h),onBlur:M[1]||(M[1]=le=>y("blur")),onChange:M[2]||(M[2]=le=>y("change")),onInput:M[3]||(M[3]=le=>y("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","error","error-messages","items"]))}}),rr=["innerHTML"],ir={key:0,class:"v-input__details"},ur=["name"],sr=t.defineComponent({__name:"VSFButtonField",props:t.mergeModels({density:{},field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){t.useCssVars(E=>({"7f272e17":t.unref(ie)}));const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>{var E;return(o==null?void 0:o.validateOn)??((E=i.value)==null?void 0:E.validateOn)}),c=l.value,{errorMessage:m,handleChange:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:o!=null&&o.multiple?[]:null,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});t.onUnmounted(()=>{var E;(E=i.value)!=null&&E.keepValuesOnUnmount||(l.value=c,V(c))});const h=t.ref(l.value);async function v(E,j){var he;if(h.value!==j||s.value!=="change"&&s.value!=="input"){if(!(o!=null&&o.disabled)&&y.value){let ye;if(o!=null&&o.multiple){const R=Array.isArray(y.value)?y.value.slice():[],x=String(j);R.includes(x)?R.splice(R.indexOf(x),1):R.push(x),ye=R}else ye=j;V(ye),l.value=ye}else V(j),l.value=j;await it({action:E,emit:a,field:o,settingsValidateOn:(he=i.value)==null?void 0:he.validateOn,validate:g}).then(()=>{h.value=y.value}).catch(ye=>{console.error(ye)})}}const S=t.computed(()=>{var E,j,he;return{...o,border:o!=null&&o.border?`${o==null?void 0:o.color} ${o==null?void 0:o.border}`:void 0,color:o.color||((E=i.value)==null?void 0:E.color),density:(o==null?void 0:o.density)??((j=i.value)==null?void 0:j.density),hideDetails:o.hideDetails||((he=i.value)==null?void 0:he.hideDetails),multiple:void 0}}),I=t.computed(()=>Ke(S.value,["autoPage","hideDetails","href","maxErrors","multiple","to"])),T=(E,j)=>{const he=E[j],ye=o==null?void 0:o[j];return he??ye};function U(E,j){return E.id!=null?E.id:o!=null&&o.id?`${o==null?void 0:o.id}-${j}`:void 0}const M={comfortable:"48px",compact:"40px",default:"56px",expanded:"64px",oversized:"72px"},le=t.computed(()=>{var E;return(o==null?void 0:o.density)??((E=i.value)==null?void 0:E.density)});function G(){return le.value?M[le.value]:M.default}function oe(E){const j=(E==null?void 0:E.minWidth)??(o==null?void 0:o.minWidth);return j??(E!=null&&E.icon||o!=null&&o.icon?G():"100px")}function Q(E){const j=(E==null?void 0:E.maxWidth)??(o==null?void 0:o.maxWidth);return j??(E!=null&&E.icon||o!=null&&o.icon?G():void 0)}function Z(E){const j=(E==null?void 0:E.minHeight)??(o==null?void 0:o.minHeight);return j??(E!=null&&E.icon||o!=null&&o.icon?G():void 0)}function w(E){const j=(E==null?void 0:E.maxHeight)??(o==null?void 0:o.maxHeight);if(j!=null)return j}function D(E){const j=(E==null?void 0:E.width)??(o==null?void 0:o.width);return j??(E!=null&&E.icon?G():"fit-content")}function ne(E){const j=(E==null?void 0:E.height)??(o==null?void 0:o.height);return j??G()}const z=E=>{if(y.value)return y.value===E||y.value.includes(E)},X=t.ref(o==null?void 0:o.variant);function W(E){var j;return z(E)?"flat":X.value??((j=i.value)==null?void 0:j.variant)??"tonal"}function F(E){return E&&E.length>0?E:o.hint&&(o.persistentHint||ee.value)?o.hint:o.messages?o.messages:""}const K=t.computed(()=>o.messages&&o.messages.length>0),te=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&K.value),J=t.shallowRef(o.gap??2),q=t.computed(()=>se(J.value)?{gap:`${J.value}`}:{}),ie=t.ref("rgb(var(--v-theme-on-surface))"),b=t.computed(()=>({[`align-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&(o==null?void 0:o.block),[`justify-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&!(o!=null&&o.block),"d-flex":!0,"flex-column":o==null?void 0:o.block,[`ga-${J.value}`]:!se(J.value)})),L=t.computed(()=>({"d-flex":o==null?void 0:o.align,"flex-column":o==null?void 0:o.align,"v-input--error":!!m&&(m==null?void 0:m.length)>0,"vsf-button-field__container":!0,[`align-${o==null?void 0:o.align}`]:o==null?void 0:o.align})),ae=t.computed(()=>{const E=le.value;return E==="expanded"||E==="oversized"?{[`v-btn--density-${E}`]:!0}:{}}),B=E=>({[`${E==null?void 0:E.class}`]:!0,[`${o.selectedClass}`]:z(E.value)&&o.selectedClass!=null}),re=E=>{const j=z(E.value),he=W(E.value),ye=j||he==="flat"||he==="elevated";return{[`bg-${E==null?void 0:E.color}`]:ye}},ee=t.shallowRef(null);function ge(E){ee.value=E}function se(E){return/(px|em|rem|vw|vh|vmin|vmax|%|pt|cm|mm|in|pc|ex|ch)$/.test(E)}return(E,j)=>{var ye;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(t.unref(L))},[t.createVNode(_n.VLabel,null,{default:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1}),t.createVNode(xn.VItemGroup,{id:(ye=t.unref(o))==null?void 0:ye.id,modelValue:l.value,"onUpdate:modelValue":j[2]||(j[2]=R=>l.value=R),class:t.normalizeClass(["mt-2",t.unref(b)]),"data-cy":`vsf-field-group-${t.unref(o).name}`,style:t.normalizeStyle(t.unref(q))},{default:t.withCtx(()=>{var R;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((R=t.unref(o))==null?void 0:R.options,(x,pe)=>(t.openBlock(),t.createBlock(xn.VItem,{key:x.value},{default:t.withCtx(()=>{var f,d;return[t.createVNode(xt.VBtn,t.mergeProps({ref_for:!0},t.unref(I),{id:U(x,pe),active:z(x.value),appendIcon:T(x,"appendIcon"),class:["text-none",{...t.unref(ae),...B(x)}],color:(x==null?void 0:x.color)||((f=t.unref(o))==null?void 0:f.color)||((d=t.unref(i))==null?void 0:d.color),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(le),height:ne(x),icon:T(x,"icon"),maxHeight:w(x),maxWidth:Q(x),minHeight:Z(x),minWidth:oe(x),prependIcon:T(x,"prependIcon"),value:x.value,variant:W(x.value),width:D(x),onClick:t.withModifiers(_=>v("click",x.value),["prevent"]),onKeydown:t.withKeys(t.withModifiers(_=>v("click",x.value),["prevent"]),["space"]),onMousedown:_=>ge(x.value),onMouseleave:j[0]||(j[0]=_=>ge(null)),onMouseup:j[1]||(j[1]=_=>ge(null))}),t.createSlots({_:2},[T(x,"icon")==null?{name:"default",fn:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["vsf-button-field__btn-label",re(x)]),innerHTML:x.label},null,10,rr)]),key:"0"}:void 0]),1040,["id","active","appendIcon","class","color","data-cy","density","height","icon","maxHeight","maxWidth","minHeight","minWidth","prependIcon","value","variant","width","onClick","onKeydown","onMousedown"])]}),_:2},1024))),128))]}),_:1},8,["id","modelValue","class","data-cy","style"]),t.unref(te)?(t.openBlock(),t.createElementBlock("div",ir,[t.createVNode(t.unref(ze.VMessages),{active:(he=t.unref(m),!!(he&&he.length>0)||!(!o.hint||!o.persistentHint&&!ee.value)||!!o.messages),color:t.unref(m)?"error":void 0,"data-cy":"vsf-field-messages",messages:F(t.unref(m))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],2),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":j[3]||(j[3]=R=>t.isRef(y)?y.value=R:null),"data-cy":"vsf-button-field-input",name:t.unref(o).name,type:"hidden",onChange:j[4]||(j[4]=(...R)=>t.unref(p)&&t.unref(p)(...R))},null,40,ur),[[t.vModelText,t.unref(y)]])],64);var he}}}),Ca=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},cr=Ca(sr,[["__scopeId","data-v-49f12da6"]]),dr={key:1,class:"v-input v-input--horizontal v-input--center-affix"},fr=["id"],pr={key:0,class:"v-input__details"},vr=t.defineComponent({__name:"VSFCheckbox",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var w;return(o==null?void 0:o.density)??((w=i.value)==null?void 0:w.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m,V(m))});const h=t.ref(o==null?void 0:o.disabled);async function v(w){h.value||(h.value=!0,l.value=y.value,await it({action:o!=null&&o.autoPage?"click":w,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1}))}const S=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||void 0,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),I=t.computed(()=>Ke(S.value,["validateOn"])),T=t.ref(!1);function U(w){return w&&w.length>0?w:o.hint&&(o.persistentHint||T.value)?o.hint:o.messages?o.messages:""}const M=t.computed(()=>o.messages&&o.messages.length>0),le=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&M.value),G=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),oe=t.computed(()=>({display:o.inline?"flex":void 0})),Q=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"})),Z=t.computed(()=>({"v-input--error":!!p&&(p==null?void 0:p.length)>0,"v-selection-control-group":o.inline}));return(w,D)=>{var z,X,W,F;return(z=t.unref(o))!=null&&z.multiple?(t.openBlock(),t.createElementBlock("div",dr,[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(G))},[t.unref(o).label?(t.openBlock(),t.createBlock(_n.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>{var K,te;return[t.createVNode($e,{class:t.normalizeClass({"pb-5":!((K=t.unref(o))!=null&&K.hideDetails)&&((te=t.unref(o))==null?void 0:te.labelPositionLeft)}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]}),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(X=t.unref(o))==null?void 0:X.id,class:t.normalizeClass(t.unref(Z)),style:t.normalizeStyle(t.unref(oe))},[t.createElementVNode("div",{class:t.normalizeClass({"v-input__control":t.unref(o).inline})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((W=t.unref(o))==null?void 0:W.options,K=>{var te;return t.openBlock(),t.createBlock(Pn.VCheckbox,t.mergeProps({key:K.value,ref_for:!0},{...t.unref(I)},{id:K.id,modelValue:t.unref(y),"onUpdate:modelValue":D[5]||(D[5]=J=>t.isRef(y)?y.value=J:null),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((te=t.unref(p))==null?void 0:te.length)>0,"error-messages":t.unref(p),"hide-details":!0,label:K.label,style:t.unref(Q),"true-value":K.value,onBlur:D[6]||(D[6]=J=>v("blur")),onChange:D[7]||(D[7]=J=>v("change")),onClick:D[8]||(D[8]=J=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[9]||(D[9]=J=>v("input")),"onUpdate:focused":D[10]||(D[10]=J=>{return q=J,void(T.value=q);var q})}),null,16,["id","modelValue","data-cy","density","disabled","error","error-messages","label","style","true-value"])}),128))],2),t.unref(le)?(t.openBlock(),t.createElementBlock("div",pr,[t.createVNode(t.unref(ze.VMessages),{active:(ne=t.unref(p),!!(ne&&ne.length>0)||!(!o.hint||!o.persistentHint&&!T.value)||!!o.messages),color:t.unref(p)?"error":void 0,messages:U(t.unref(p))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],14,fr)],4)])):(t.openBlock(),t.createBlock(Pn.VCheckbox,t.mergeProps({key:0,modelValue:t.unref(y),"onUpdate:modelValue":D[0]||(D[0]=K=>t.isRef(y)?y.value=K:null)},{...t.unref(I)},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((F=t.unref(p))==null?void 0:F.length)>0,"error-messages":t.unref(p),onBlur:D[1]||(D[1]=K=>v("blur")),onChange:D[2]||(D[2]=K=>v("change")),onClick:D[3]||(D[3]=K=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[4]||(D[4]=K=>v("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","density","disabled","error","error-messages"]));var ne}}}),mr=["data-cy"],hr=t.defineComponent({__name:"VSFCustom",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=t.useSlots(),l=n,r=t.useModel(e,"modelValue"),o=e;t.watch(()=>r.value,h=>{m.setValue(h)});const{field:i}=o,u=t.inject("settings"),s=t.toRaw($e),c=t.computed(()=>(i==null?void 0:i.validateOn)??u.value.validateOn),m=rt(i.name,void 0,{initialValue:r.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});async function p(h){await it({action:h,emit:l,field:i,settingsValidateOn:u.value.validateOn,validate:m.validate})}const V=t.computed(()=>({...Ke(m,["_vm","errorMessage","field","id","label","name","type","value"])})),g=t.computed(()=>({...i,color:i.color||u.value.color,density:i.density||u.value.density})),y=t.computed(()=>({...Ke(g.value),options:i.options,required:i.required}));return(h,v)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(S,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[I===`field.${[t.unref(i).name]}`?(t.openBlock(),t.createElementBlock("div",{key:0,"data-cy":`vsf-field-${t.unref(i).name}`},[t.renderSlot(h.$slots,I,t.mergeProps({ref_for:!0},{FieldLabel:t.unref(s),blur:()=>p("blur"),change:()=>p("change"),input:()=>p("input"),field:{errorMessages:t.unref(m).errorMessage.value,modelValue:t.unref(m).value.value,...t.unref(y)},...t.unref(V)}))],8,mr)):t.createCommentVNode("",!0)],64))),128))}}),gr=["id"],_r=t.defineComponent({__name:"VSFRadio",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var oe;return(o==null?void 0:o.density)??((oe=i.value)==null?void 0:oe.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,type:"radio",validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const h=t.ref(o==null?void 0:o.disabled);async function v(oe,Q){if(!h.value){let Z;if(h.value=!0,o==null?void 0:o.multiple){const w=Array.isArray(y.value)?y.value.slice():[],D=String(Q);w.includes(D)?w.splice(w.indexOf(D),1):w.push(D),Z=w}else Z=Q;V(Z),l.value=Z,await it({action:o!=null&&o.autoPage?"click":oe,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1})}}const S=t.computed(()=>{let oe=o==null?void 0:o.error;return oe=o!=null&&o.errorMessages?o.errorMessages.length>0:oe,oe}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),T=t.computed(()=>Ke(I.value)),U=t.computed(()=>({width:(o==null?void 0:o.minWidth)??(o==null?void 0:o.width)??void 0})),M=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),le=t.computed(()=>({display:o.inline?"flex":void 0})),G=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"}));return(oe,Q)=>{var Z,w,D,ne,z,X,W,F,K,te,J,q,ie,b,L,ae,B;return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(t.unref(U))},[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(M))},[t.unref(o).label?(t.openBlock(),t.createBlock(_n.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>[t.createVNode($e,{class:t.normalizeClass({"pb-5":t.unref(o).labelPositionLeft}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(Z=t.unref(o))==null?void 0:Z.groupId,style:t.normalizeStyle(t.unref(le))},[t.createVNode(Pa.VRadioGroup,{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=re=>l.value=re),"append-icon":(w=t.unref(o))==null?void 0:w.appendIcon,"data-cy":`vsf-field-group-${t.unref(o).name}`,density:t.unref(u),direction:(D=t.unref(o))==null?void 0:D.direction,disabled:t.unref(h),error:t.unref(S),"error-messages":t.unref(p)||((ne=t.unref(o))==null?void 0:ne.errorMessages),hideDetails:((z=t.unref(o))==null?void 0:z.hideDetails)||((X=t.unref(i))==null?void 0:X.hideDetails),hint:(W=t.unref(o))==null?void 0:W.hint,inline:(F=t.unref(o))==null?void 0:F.inline,"max-errors":(K=t.unref(o))==null?void 0:K.maxErrors,"max-width":(te=t.unref(o))==null?void 0:te.maxWidth,messages:(J=t.unref(o))==null?void 0:J.messages,"min-width":(q=t.unref(o))==null?void 0:q.minWidth,multiple:(ie=t.unref(o))==null?void 0:ie.multiple,persistentHint:(b=t.unref(o))==null?void 0:b.persistentHint,"prepend-icon":(L=t.unref(o))==null?void 0:L.prependIcon,theme:(ae=t.unref(o))==null?void 0:ae.theme,width:(B=t.unref(o))==null?void 0:B.width},{default:t.withCtx(()=>{var re;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((re=t.unref(o))==null?void 0:re.options,(ee,ge)=>{var se;return t.openBlock(),t.createElementBlock("div",{key:ge},[t.createVNode(xa.VRadio,t.mergeProps({ref_for:!0},{...t.unref(T)},{id:void 0,"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),error:!!t.unref(p)&&((se=t.unref(p))==null?void 0:se.length)>0,"error-messages":t.unref(p),"false-value":t.unref(o).falseValue,label:ee.label,name:t.unref(o).name,style:t.unref(G),"true-value":ee.value||t.unref(o).trueValue,value:ee.value,onBlur:E=>v("blur",ee.value),onChange:E=>v("change",ee.value),onClick:E=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click",ee.value):void 0,onInput:E=>v("input",ee.value)}),null,16,["data-cy","density","error","error-messages","false-value","label","name","style","true-value","value","onBlur","onChange","onClick","onInput"])])}),128))]}),_:1},8,["modelValue","append-icon","data-cy","density","direction","disabled","error","error-messages","hideDetails","hint","inline","max-errors","max-width","messages","min-width","multiple","persistentHint","prepend-icon","theme","width"])],12,gr)],4)],4)}}}),yr=t.defineComponent({__name:"VSFSwitch",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var h;return(o==null?void 0:o.density)??((h=i.value)==null?void 0:h.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value;t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const p=t.ref(o==null?void 0:o.disabled);async function V(h,v){p.value||(p.value=!0,await it({action:o!=null&&o.autoPage?"click":v,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:h}).then(()=>{p.value=!1}))}const g=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),y=t.computed(()=>Ke(g.value));return(h,v)=>(t.openBlock(),t.createBlock(t.unref(tr),{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=S=>l.value=S),name:t.unref(o).name,syncVModel:!0,type:"checkbox","unchecked-value":t.unref(o).falseValue,"validate-on-blur":t.unref(c)==="blur","validate-on-change":t.unref(c)==="change","validate-on-input":t.unref(c)==="input","validate-on-model-update":!1,value:t.unref(o).trueValue},{default:t.withCtx(S=>{var I;return[t.createVNode(Aa.VSwitch,t.mergeProps({...t.unref(y),...S.field},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(p),error:!!S.errorMessage&&((I=S.errorMessage)==null?void 0:I.length)>0,"error-messages":S.errorMessage,onBlur:T=>V(S.validate,"blur"),onChange:T=>V(S.validate,"change"),onClick:T=>t.unref(c)==="blur"||t.unref(c)==="change"?V(S.validate,"click"):void 0,onInput:T=>V(S.validate,"input")}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:2},1040,["data-cy","density","disabled","error","error-messages","onBlur","onChange","onClick","onInput"])]}),_:1},8,["modelValue","name","unchecked-value","validate-on-blur","validate-on-change","validate-on-input","value"]))}}),br=["onUpdate:modelValue","data-cy","name"],Vr=["innerHTML"],Or=t.defineComponent({inheritAttrs:!1,__name:"PageContainer",props:t.mergeModels({fieldColumns:{},page:{},pageIndex:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useSlots(),r=["email","number","password","tel","text","textField","url"];function o(p){if(r.includes(p))return t.markRaw(ze.VTextField);switch(p){case"autocomplete":return t.markRaw(ze.VAutocomplete);case"color":return t.markRaw(wa);case"combobox":return t.markRaw(ze.VCombobox);case"date":return t.markRaw(Ta.VDateInput);case"file":return t.markRaw(ze.VFileInput);case"select":return t.markRaw(ze.VSelect);case"textarea":return t.markRaw(ze.VTextarea);default:return null}}const i=t.useModel(e,"modelValue"),u=t.computed(()=>{var p;return((p=e.page)==null?void 0:p.pageFieldColumns)??{}}),s=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.fieldColumns,...u.value});function c(p){return ka({columnsMerged:s.value,fieldColumns:p.columns,propName:`${p.name} field`})}function m(p){a("validate",p)}return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.page.fields,g=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${g.name}-${g.type}`},[g.type!=="hidden"&&g.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[g.text?(t.openBlock(),t.createBlock(Te.VCol,{key:0,cols:"12"},{default:t.withCtx(()=>[t.createElementVNode("div",{"data-cy":"vsf-field-text",innerHTML:g.text},null,8,Vr)]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(Te.VCol,{class:t.normalizeClass(c(g))},{default:t.withCtx(()=>[g.type==="checkbox"?(t.openBlock(),t.createBlock(vr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="radio"?(t.openBlock(),t.createBlock(_r,{key:1,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="buttons"?(t.openBlock(),t.createBlock(cr,{key:2,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="switch"?(t.openBlock(),t.createBlock(yr,{key:3,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),o(g.type)!=null?(t.openBlock(),t.createBlock(lr,{key:4,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,component:o(g.type),field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","component","field"])):t.createCommentVNode("",!0),g.type==="field"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[g.type==="field"?(t.openBlock(),t.createBlock(hr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},t.createSlots({_:2},[t.renderList(l,(y,h)=>({name:h,fn:t.withCtx(v=>[t.renderSlot(p.$slots,h,t.mergeProps({ref_for:!0},{...v}))])}))]),1032,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]),_:2},1032,["class"])],64)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":y=>i.value[g.name]=y,"data-cy":`vsf-field-${g.name}`,name:g.name,type:"hidden"},null,8,br)),[[t.vModelText,i.value[g.name]]])],64))),128))]),_:3})],64))}}),Er=t.defineComponent({inheritAttrs:!1,__name:"PageReviewContainer",props:t.mergeModels({page:{},pages:{},summaryColumns:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["goToQuestion"],["update:modelValue"]),setup(e,{emit:n}){const a=t.inject("settings"),{editable:l}=t.unref(a),r=n,o=t.useModel(e,"modelValue"),i=t.ref([]),{lastNonEditableIndex:u}=hn(e.pages);function s(p){var g;const V=e.pages.findIndex(y=>y.fields?y.fields.some(h=>h.name===p.name):-1);return l!==!1&&((g=e.pages[V])==null?void 0:g.editable)!==!1&&p.editable!==!1}Object.values(e.pages).forEach((p,V)=>{p.fields&&Object.values(p.fields).forEach(g=>{const y=g;V<=u&&(y.editable=!1),i.value.push(y)})});const c=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.summaryColumns}),m=t.computed(()=>ka({columnsMerged:c.value}));return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),g=>(t.openBlock(),t.createBlock(Te.VCol,{key:g.name,class:t.normalizeClass(t.unref(m))},{default:t.withCtx(()=>[t.createVNode(qe.VList,{lines:"two"},{default:t.withCtx(()=>[t.createVNode(Na.VCard,{class:"mb-2",color:"background"},{default:t.withCtx(()=>[s(g)?(t.openBlock(),t.createBlock(qe.VListItem,{key:0,onClick:y=>t.unref(l)&&g.editable!==!1?function(h){var S;let v=e.pages.findIndex(I=>I.fields?I.fields.some(T=>T.name===h.name):-1);((S=e.pages[v])==null?void 0:S.editable)!==!1&&h.editable!==!1&&(v+=1,setTimeout(()=>{r("goToQuestion",v)},350))}(g):void 0},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1032,["onClick"])):(t.openBlock(),t.createBlock(qe.VListItem,{key:1,ripple:!1},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1024))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1})],64))}}),kr=t.defineComponent({__name:"VStepperForm",props:t.mergeModels(t.mergeDefaults({pages:{},validationSchema:{},autoPage:{type:Boolean},autoPageDelay:{},color:{},density:{},direction:{},editable:{},errorIcon:{},fieldColumns:{},headerTooltips:{type:Boolean},hideDetails:{type:[Boolean,String]},jumpAhead:{type:Boolean},keepValuesOnUnmount:{type:Boolean},navButtonSize:{},navButtonVariant:{},summaryColumns:{},title:{},tooltipLocation:{},tooltipOffset:{},tooltipTransition:{},validateOn:{},validateOnMount:{type:Boolean},variant:{},width:{},transition:{}},Ro),{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["submit","update:model-value"],["update:modelValue"]),setup(e,{emit:n}){var he,ye;const a=t.useAttrs(),l=t.useId(),r=t.useSlots(),o=n,i=t.inject("globalOptions"),u=e;let s=t.reactive(Ao(a,i,u));const{direction:c,jumpAhead:m,title:p,width:V}=t.toRefs(u),g=t.reactive(u.pages),y=JSON.parse(JSON.stringify(g)),h=t.ref(No(s)),v=t.computed(()=>Ke(h.value,["autoPage","autoPageDelay","hideDetails","keepValuesOnUnmount","transition","validateOn","validateOnMount"]));t.watch(u,()=>{s=Ao(a,i,u),h.value=No(s)},{deep:!0}),t.provide("settings",h);const S=t.ref([]);Object.values(g).forEach(R=>{R.fields&&Object.values(R.fields).forEach(x=>{S.value.push(x)})}),t.onMounted(()=>{re(),mn({columns:u.fieldColumns,propName:'"fieldColumns" prop'}),mn({columns:u.summaryColumns,propName:'"summaryColumns" prop'})});const I=t.useModel(e,"modelValue");Ia.watchDeep(I,()=>{re()});const T=t.ref(1),U=t.computed(()=>T.value-1),{mobile:M,sm:le}=Sa.useDisplay(),G=t.computed(()=>s.transition),oe=t.useTemplateRef("stepperFormRef");t.provide("parentForm",oe);const Q=t.computed(()=>h.value.editable),Z=t.computed(()=>T.value===1?"prev":T.value===Object.keys(u.pages).length?"next":void 0),w=t.computed(()=>{const R=Z.value==="next"||h.value.disabled;return te.value||R}),D=t.computed(()=>{const{lastNonEditableIndex:R}=hn(B.value);return U.value===0||!Q.value||!!F.value||U.value-1===R}),ne=t.computed(()=>{const R=B.value[T.value-2];return Q.value!==!0&&(R?R.editable===!1:T.value===B.value.length&&!u.editable)}),z=t.computed(()=>T.value===Object.keys(B.value).length);function X(R){var fe,ve,Ee,je,Xe;const{firstNonEditableIndex:x,lastNonEditableIndex:pe}=hn(B.value),f=B.value,d=f.findIndex(Ae=>Ae===R),_=R.editable!==!1,C=R.editable===!1,O=((fe=f[U.value])==null?void 0:fe.editable)!==!1,N=f.length-1,P=d-1,H=((ve=f[P])==null?void 0:ve.editable)!==!1,Y=((Ee=f[P])==null?void 0:Ee.editable)===!1,de=d+1,$=((je=f[de])==null?void 0:je.editable)!==!1,me=((Xe=f[de])==null?void 0:Xe.editable)===!1;return U.value===d||!!Q.value&&!F.value&&(m.value?(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageIdx:Ve,pageNotEditable:Pe,previousPageEditable:$t,previousPageNotEditable:Le}=Ae,Ue=t.unref(Ae.currentPageIdx);if(Ve>Re)return Ue>Re;if(Ve===Re)return!1;if(Veke)return!(!Me||!Ft)||!!(Me&&Ht&&Ve>ke&&Ue>ke&&Ve>Ue)}return Ve>ke?!(Ue<=ke):VeVe&&Ve<=ke)&&(Ve=Ve&&$t)))})({currentPageEditable:O,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageIdx:d,pageNotEditable:C,previousPageEditable:H,previousPageNotEditable:Y}):(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageEditable:Ve,pageIdx:Pe,pageNotEditable:$t}=Ae,Le=t.unref(Ae.currentPageIdx);if(PeRe){if(Pe>ke&&Pe>Re&&Le===kt&&Ve)return!0;if(!Ve)return!1}if(Peke&&Peke&&Ft&&Le!==kt)return!0}return!1})({currentPageEditable:O,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageEditable:_,pageIdx:d,pageNotEditable:C}))}const W=t.computed(()=>u.validationSchema),F=t.ref(!1),K=t.ref([]),te=t.computed(()=>K.value.includes(T.value-1)),J=or({initialValues:I.value,keepValuesOnUnmount:(he=h.value)==null?void 0:he.keepValuesOnUnmount,validationSchema:W.value,valueOnMount:(ye=h.value)==null?void 0:ye.validateOnMount});function q(R){if(K.value.includes(R)){const x=K.value.indexOf(R);x>-1&&K.value.splice(x,1)}F.value=!1}function ie(R,x,pe=()=>{}){const f=B.value[U.value];if(!f)return;const d=B.value.findIndex(C=>C===f),_=(f==null?void 0:f.fields)??[];if(Object.keys(R).some(C=>_.some(O=>O.name===C)))return F.value=!0,void b(d,f,x);q(d),pe&&!z.value&&x!=="submit"&&pe()}function b(R,x,pe="submit"){F.value=!0,x&&pe==="submit"&&(x.error=!0),K.value.includes(R)||K.value.push(R)}let L;const ae=J.handleSubmit(R=>{o("submit",R)}),B=t.computed(()=>(Object.values(g).forEach((R,x)=>{const pe=R;if(pe.visible=!0,pe.when){const f=pe.when(I.value);g[x]&&(g[x].visible=f)}}),g.filter(R=>R.visible)));function re(){Object.values(B.value).forEach((R,x)=>{R.fields&&Object.values(R.fields).forEach((pe,f)=>{if(pe.when){const d=pe.when(I.value),_=B.value[x];_!=null&&_.fields&&(_!=null&&_.fields[f])&&(_.fields[f].type=d?y[x].fields[f].type:"hidden")}})})}const ee=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ct}`]:!0,[`${ct}--container`]:!0,[`${ct}--container-${x}`]:!0}})({direction:c.value})),ge=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ct}--container-stepper`]:!0,[`${ct}--container-stepper-${x}`]:!0}})({direction:c.value})),se=t.computed(()=>({width:"100%"})),E=t.computed(()=>({width:V.value}));function j(R){return R+1}return(R,x)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ee)),style:t.normalizeStyle(t.unref(se))},[t.createElementVNode("div",{style:t.normalizeStyle(t.unref(E))},[t.unref(p)?(t.openBlock(),t.createBlock(Te.VContainer,{key:0,fluid:""},{default:t.withCtx(()=>[t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[t.createVNode(Te.VCol,null,{default:t.withCtx(()=>[t.createElementVNode("h2",null,t.toDisplayString(t.unref(p)),1)]),_:1})]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VContainer,{class:t.normalizeClass(t.unref(ge)),fluid:""},{default:t.withCtx(()=>[t.createVNode(Je.VStepper,t.mergeProps({modelValue:t.unref(T),"onUpdate:modelValue":x[4]||(x[4]=pe=>t.isRef(T)?T.value=pe:null),"data-cy":"vsf-stepper-form"},t.unref(v),{mobile:t.unref(le),width:"100%"}),{default:t.withCtx(({prev:pe,next:f})=>[t.createVNode(Je.VStepperHeader,{"data-cy":"vsf-stepper-header"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${j(_)}-step`},[t.createVNode(Je.VStepperItem,{class:t.normalizeClass(`vsf-activator-${t.unref(l)}-${_+1}`),color:t.unref(h).color,"edit-icon":d.isSummary?"$complete":t.unref(h).editIcon,editable:X(d),elevation:"0",error:t.unref(F)&&t.unref(K).includes(_),title:d.title,value:j(_),onClick:C=>function(O){const N=O===0?0:O-1,P=B.value[N];P&&P.fields&&P.fields.forEach(H=>{J.validateField(H.name,{},{name:H.name}).then(Y=>{if(Y.errors.length)return T.value=N+1,F.value=!0,void b(N,P,"submit");q(N)})})}(_)},{default:t.withCtx(()=>[!t.unref(M)&&t.unref(h).headerTooltips&&(d!=null&&d.fields)&&(d==null?void 0:d.fields.length)>0?(t.openBlock(),t.createBlock(Ra.VTooltip,{key:0,activator:d.title?"parent":`.vsf-activator-${t.unref(l)}-${_+1}`,location:t.unref(h).tooltipLocation,offset:d.title?t.unref(h).tooltipOffset:Number(t.unref(h).tooltipOffset)-28,transition:t.unref(h).tooltipTransition},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.fields,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:O},t.toDisplayString(C.label),1))),128))]),_:2},1032,["activator","location","offset","transition"])):t.createCommentVNode("",!0)]),_:2},1032,["class","color","edit-icon","editable","error","title","value","onClick"]),j(_)!==Object.keys(t.unref(B)).length?(t.openBlock(),t.createBlock(ja.VDivider,{key:j(_)})):t.createCommentVNode("",!0)],64))),128))]),_:1}),t.createElementVNode("form",{ref:"stepperFormRef",onSubmit:x[3]||(x[3]=(...d)=>t.unref(ae)&&t.unref(ae)(...d))},[t.createVNode(Je.VStepperWindow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createBlock(Je.VStepperWindowItem,{key:`${j(_)}-content`,"data-cy":d.isSummary?"vsf-page-summary":`vsf-page-${j(_)}`,"reverse-transition":t.unref(G),transition:t.unref(G),value:j(_)},{default:t.withCtx(()=>[t.createVNode(Te.VContainer,null,{default:t.withCtx(()=>{var C,O;return[d.isSummary?(t.openBlock(),t.createBlock(Er,{key:1,modelValue:I.value,"onUpdate:modelValue":x[1]||(x[1]=N=>I.value=N),page:d,pages:t.unref(B),settings:t.unref(h),summaryColumns:(C=t.unref(h))==null?void 0:C.summaryColumns,onGoToQuestion:x[2]||(x[2]=N=>T.value=N)},null,8,["modelValue","page","pages","settings","summaryColumns"])):(t.openBlock(),t.createBlock(Or,{key:`${j(_)}-page`,modelValue:I.value,"onUpdate:modelValue":x[0]||(x[0]=N=>I.value=N),fieldColumns:(O=t.unref(h))==null?void 0:O.fieldColumns,index:j(_),page:d,pageIndex:j(_),settings:t.unref(h),onValidate:N=>function(P,H){var $;const Y=J.errorBag,de=P.autoPage||h.value.autoPage?H:null;P!=null&&P.autoPage||($=h.value)!=null&&$.autoPage?oe.value&&J.validate().then(me=>{var ve;if(me.valid)return clearTimeout(L),void(L=setTimeout(()=>{ie(Y,"field",de)},(P==null?void 0:P.autoPageDelay)??((ve=h.value)==null?void 0:ve.autoPageDelay)));const fe=B.value[U.value];b(B.value.findIndex(Ee=>Ee===fe),fe,"validating")}).catch(me=>{console.error("Error",me)}):J.validateField(P.name,{},{name:P.name}).then(()=>{ie(J.errorBag.value,"field",de)})}(N,f)},t.createSlots({_:2},[t.renderList(t.unref(r),(N,P)=>({name:P,fn:t.withCtx(H=>[t.renderSlot(R.$slots,P,t.mergeProps({ref_for:!0},{...H}),void 0,!0)])}))]),1032,["modelValue","fieldColumns","index","page","pageIndex","settings","onValidate"]))]}),_:2},1024)]),_:2},1032,["data-cy","reverse-transition","transition","value"]))),128))]),_:2},1024),t.unref(h).hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Je.VStepperActions,{key:0},{next:t.withCtx(()=>[t.unref(z)?(t.openBlock(),t.createBlock(xt.VBtn,{key:1,color:t.unref(h).color,"data-cy":"vsf-submit-button",disabled:t.unref(te),size:R.navButtonSize,type:"submit",variant:R.navButtonVariant,onClick:t.unref(ae)},{default:t.withCtx(()=>x[5]||(x[5]=[t.createTextVNode("Submit")])),_:1},8,["color","disabled","size","variant","onClick"])):(t.openBlock(),t.createBlock(xt.VBtn,{key:0,color:t.unref(h).color,"data-cy":"vsf-next-button",disabled:t.unref(w),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_="submit",C=()=>{}){oe.value&&J.validate().then(O=>{ie(O.errors,_,C)}).catch(O=>{console.error("Error",O)})}("next",f)},null,8,["color","disabled","size","variant","onClick"]))]),prev:t.withCtx(()=>[t.createVNode(xt.VBtn,{"data-cy":"vsf-previous-button",disabled:t.unref(D),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_){ne.value||_()}(pe)},null,8,["disabled","size","variant","onClick"])]),_:2},1024))],544)]),_:3},16,["modelValue","mobile"])]),_:3},8,["class"])],4)],6))}}),gn=Ca(kr,[["__scopeId","data-v-d58e9787"]]),Cr=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),Ir=Ro,jo=Symbol();exports.FieldLabel=$e,exports.VStepperForm=gn,exports.createVStepperForm=function(e=Ir){return{install:n=>{n.provide(jo,e),n.config.idPrefix="vsf",n.component("VStepperForm",t.defineAsyncComponent(()=>Promise.resolve().then(()=>Cr))),n.component("FieldLabel",t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./FieldLabel-mS_InZKL.js"))))}}},exports.default=gn,exports.globalOptions=jo; -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-d58e9787] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); + */function Ee(e){return typeof e=="function"}function pa(e){return e==null}ce.defaultInstance=new ce,ce.serialize=ce.defaultInstance.serialize.bind(ce.defaultInstance),ce.deserialize=ce.defaultInstance.deserialize.bind(ce.defaultInstance),ce.stringify=ce.defaultInstance.stringify.bind(ce.defaultInstance),ce.parse=ce.defaultInstance.parse.bind(ce.defaultInstance),ce.registerClass=ce.defaultInstance.registerClass.bind(ce.defaultInstance),ce.registerSymbol=ce.defaultInstance.registerSymbol.bind(ce.defaultInstance),ce.registerCustom=ce.defaultInstance.registerCustom.bind(ce.defaultInstance),ce.allowErrorProps=ce.defaultInstance.allowErrorProps.bind(ce.defaultInstance),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),k(),(po=A).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(po.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]),(vo=A).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(vo.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null),(mo=A).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(mo.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null),(ho=A).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(ho.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null),(go=A).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(go.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null),(_o=A).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(_o.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),k(),k(),k(),k(),k(),k(),k();const He=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function wn(e){return Number(e)>=0}function yo(e){if(!function(a){return typeof a=="object"&&a!==null}(e)||function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(a)}(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function pt(e,n){return Object.keys(n).forEach(a=>{if(yo(n[a])&&yo(e[a]))return e[a]||(e[a]={}),void pt(e[a],n[a]);e[a]=n[a]}),e}function vt(e){const n=e.split(".");if(!n.length)return"";let a=String(n[0]);for(let l=1;l{return(He(o=l)||Array.isArray(o))&&r in l?l[r]:a;var o},e):a}function Be(e,n,a){if(zt(n))return void(e[xn(n)]=a);const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;owe(e,a.slice(0,u).join(".")));for(let i=r.length-1;i>=0;i--)o=r[i],(Array.isArray(o)?o.length===0:He(o)&&Object.keys(o).length===0)&&(i!==0?Xt(r[i-1],a[i-1]):Xt(e,a[0]));var o}function Se(e){return Object.keys(e)}function ma(e,n=void 0){const a=t.getCurrentInstance();return(a==null?void 0:a.provides[e])||t.inject(e,n)}function Io(e,n,a){if(Array.isArray(e)){const l=[...e],r=l.findIndex(o=>Ie(o,n));return r>=0?l.splice(r,1):l.push(n),l}return Ie(e,n)?a:n}function So(e,n=0){let a=null,l=[];return function(...r){return a&&clearTimeout(a),a=setTimeout(()=>{const o=e(...r);l.forEach(i=>i(o)),l=[]},n),new Promise(o=>l.push(o))}}function Ml(e,n){return He(n)&&n.number?function(a){const l=parseFloat(a);return isNaN(l)?a:l}(e):e}function vn(e,n){let a;return async function(...l){const r=e(...l);a=r;const o=await r;return r!==a?o:(a=void 0,n(o,l))}}function mn(e){return Array.isArray(e)?e:e?[e]:[]}function wt(e,n){const a={};for(const l in e)n.includes(l)||(a[l]=e[l]);return a}function Jt(e){if(ha(e))return e._value}function ha(e){return"_value"in e}function Bt(e){if(!va(e))return e;const n=e.target;if(Ot(n.type)&&ha(n))return Jt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Vo(a=n)&&a.multiple)return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(Jt);var a;if(Vo(n)){const l=Array.from(n.options).find(r=>r.selected);return l?Jt(l):n.value}return function(l){return l.type==="number"||l.type==="range"?Number.isNaN(l.valueAsNumber)?l.value:l.valueAsNumber:l.value}(n)}function ga(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?He(e)&&e._$$isNormalized?e:He(e)?Object.keys(e).reduce((a,l)=>{const r=function(o){return o===!0?[]:Array.isArray(o)||He(o)?o:[o]}(e[l]);return e[l]!==!1&&(a[l]=wo(r)),a},n):typeof e!="string"?n:e.split("|").reduce((a,l)=>{const r=Ll(l);return r.name&&(a[r.name]=wo(r.params)),a},n):n}function wo(e){const n=a=>typeof a=="string"&&a[0]==="@"?function(l){const r=o=>{var i;return(i=we(o,l))!==null&&i!==void 0?i:o[l]};return r.__locatorRef=l,r}(a.slice(1)):a;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((a,l)=>(a[l]=n(e[l]),a),{})}const Ll=e=>{let n=[];const a=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:a,params:n}};let zl=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const Ge=()=>zl;async function _a(e,n,a={}){const l=a==null?void 0:a.bails,r={name:(a==null?void 0:a.name)||"{field}",rules:n,label:a==null?void 0:a.label,bails:l==null||l,formData:(a==null?void 0:a.values)||{}},o=await async function(i,u){const s=i.rules;if(Ne(s)||Dt(s))return async function(g,y){const h=Ne(y.rules)?y.rules:ya(y.rules),v=await h.parse(g,{formData:y.formData}),S=[];for(const I of v.errors)I.errors.length&&S.push(...I.errors);return{value:v.value,errors:S}}(u,Object.assign(Object.assign({},i),{rules:s}));if(Ee(s)||Array.isArray(s)){const g={field:i.label||i.name,name:i.name,label:i.label,form:i.formData,value:u},y=Array.isArray(s)?s:[s],h=y.length,v=[];for(let S=0;S{const c=s.path||"";return u[c]||(u[c]={errors:[],path:c}),u[c].errors.push(...s.errors),u},{});return{errors:Object.values(i)}}}}}async function Fl(e,n,a){const l=(r=a.name,jl[r]);var r;if(!l)throw new Error(`No such validator '${a.name}' exists.`);const o=function(s,c){const m=p=>pn(p)?p(c):p;return Array.isArray(s)?s.map(m):Object.keys(s).reduce((p,V)=>(p[V]=m(s[V]),p),{})}(a.params,e.formData),i={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},a),{params:o})},u=await l(n,o,i);return typeof u=="string"?{error:u}:{error:u?void 0:ba(i)}}function ba(e){const n=Ge().generateMessage;return n?n(e):"Field is invalid"}async function Hl(e,n,a){const l=Se(e).map(async s=>{var c,m,p;const V=(c=a==null?void 0:a.names)===null||c===void 0?void 0:c[s],g=await _a(we(n,s),e[s],{name:(V==null?void 0:V.name)||s,label:V==null?void 0:V.label,values:n,bails:(p=(m=a==null?void 0:a.bailsMap)===null||m===void 0?void 0:m[s])===null||p===void 0||p});return Object.assign(Object.assign({},g),{path:s})});let r=!0;const o=await Promise.all(l),i={},u={};for(const s of o)i[s.path]={valid:s.valid,errors:s.errors},s.valid||(r=!1,u[s.path]=s.errors[0]);return{valid:r,results:i,errors:u,source:"schema"}}let To=0;function $l(e,n){const{value:a,initialValue:l,setInitialValue:r}=function(u,s,c){const m=t.ref(t.unref(s));function p(){return c?we(c.initialValues.value,t.unref(u),t.unref(m)):t.unref(m)}function V(v){c?c.setFieldInitialValue(t.unref(u),v,!0):m.value=v}const g=t.computed(p);if(!c)return{value:t.ref(p()),initialValue:g,setInitialValue:V};const y=function(v,S,I,w){return t.isRef(v)?t.unref(v):v!==void 0?v:we(S.values,t.unref(w),t.unref(I))}(s,c,g,u);return c.stageInitialValue(t.unref(u),y,!0),{value:t.computed({get:()=>we(c.values,t.unref(u)),set(v){c.setFieldValue(t.unref(u),v,!1)}}),initialValue:g,setInitialValue:V}}(e,n.modelValue,n.form);if(!n.form){let p=function(V){var g;"value"in V&&(a.value=V.value),"errors"in V&&s(V.errors),"touched"in V&&(m.touched=(g=V.touched)!==null&&g!==void 0?g:m.touched),"initialValue"in V&&r(V.initialValue)};const{errors:u,setErrors:s}=function(){const V=t.ref([]);return{errors:V,setErrors:g=>{V.value=mn(g)}}}(),c=To>=Number.MAX_SAFE_INTEGER?0:++To,m=function(V,g,y,h){const v=t.computed(()=>{var I,w,U;return(U=(w=(I=t.toValue(h))===null||I===void 0?void 0:I.describe)===null||w===void 0?void 0:w.call(I).required)!==null&&U!==void 0&&U}),S=t.reactive({touched:!1,pending:!1,valid:!0,required:v,validated:!!t.unref(y).length,initialValue:t.computed(()=>t.unref(g)),dirty:t.computed(()=>!Ie(t.unref(V),t.unref(g)))});return t.watch(y,I=>{S.valid=!I.length},{immediate:!0,flush:"sync"}),S}(a,l,u,n.schema);return{id:c,path:e,value:a,initialValue:l,meta:m,flags:{pendingUnmount:{[c]:!1},pendingReset:!1},errors:u,setState:p}}const o=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),i=t.computed(()=>o.errors);return{id:Array.isArray(o.id)?o.id[o.id.length-1]:o.id,path:e,value:a,errors:i,meta:o,initialValue:l,flags:o.__flags,setState:function(u){var s,c,m;"value"in u&&(a.value=u.value),"errors"in u&&((s=n.form)===null||s===void 0||s.setFieldError(t.unref(e),u.errors)),"touched"in u&&((c=n.form)===null||c===void 0||c.setFieldTouched(t.unref(e),(m=u.touched)!==null&&m!==void 0&&m)),"initialValue"in u&&r(u.initialValue)}}}const gt={},_t={},yt="vee-validate-inspector",Kl=12405579,ql=448379,Wl=5522283,Mt=16777215,hn=0,Gl=218007,Yl=12157168,Zl=16099682,Xl=12304330;let Ye,_e=null;function Va(e){var n,a;process.env.NODE_ENV!=="production"&&(n={id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},a=l=>{Ye=l,l.addInspector({id:yt,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{_e?_e.type!=="field"?_e.type!=="form"?_e.type==="pathState"&&await _e.form.validateField(_e.state.path):await _e.form.validate():await _e.field.validate():console.error("There is not a valid selected vee-validate node or component")}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{_e?_e.type!=="field"?(_e.type==="form"&&_e.form.resetForm(),_e.type==="pathState"&&_e.form.resetField(_e.state.path)):_e.field.resetField():console.error("There is not a valid selected vee-validate node or component")}}]}),l.on.getInspectorTree(r=>{if(r.inspectorId!==yt)return;const o=Object.values(gt),i=Object.values(_t);r.rootNodes=[...o.map(Jl),...i.map(u=>function(s,c){return{id:gn(c,s),label:t.unref(s.name),tags:Ea(!1,1,s.type,s.meta.valid,c)}}(u))]}),l.on.getInspectorState(r=>{if(r.inspectorId!==yt)return;const{form:o,field:i,state:u,type:s}=function(c){try{const m=JSON.parse(decodeURIComponent(atob(c))),p=gt[m.f];if(!p&&m.ff){const g=_t[m.ff];return g?{type:m.type,field:g}:{}}if(!p)return{};const V=p.getPathState(m.ff);return{type:m.type,form:p,state:V}}catch{}return{}}(r.nodeId);return l.unhighlightElement(),o&&s==="form"?(r.state=function(c){const{errorBag:m,meta:p,values:V,isSubmitting:g,isValidating:y,submitCount:h}=c;return{"Form state":[{key:"submitCount",value:h.value},{key:"isSubmitting",value:g.value},{key:"isValidating",value:y.value},{key:"touched",value:p.value.touched},{key:"dirty",value:p.value.dirty},{key:"valid",value:p.value.valid},{key:"initialValues",value:p.value.initialValues},{key:"currentValues",value:V},{key:"errors",value:Se(m.value).reduce((v,S)=>{var I;const w=(I=m.value[S])===null||I===void 0?void 0:I[0];return w&&(v[S]=w),v},{})}]}}(o),_e={type:"form",form:o},void l.highlightElement(o._vm)):u&&s==="pathState"&&o?(r.state=xo(u),void(_e={type:"pathState",state:u,form:o})):i&&s==="field"?(r.state=xo({errors:i.errors.value,dirty:i.meta.dirty,valid:i.meta.valid,touched:i.meta.touched,value:i.value.value,initialValue:i.meta.initialValue}),_e={field:i,type:"field"},void l.highlightElement(i._vm)):(_e=null,void l.unhighlightElement())})},Xo.setupDevToolsPlugin(n,a))}const tt=function(e,n){let a,l;return function(...r){const o=this;return a||(a=!0,setTimeout(()=>a=!1,n),l=e.apply(o,r)),l}}(()=>{setTimeout(async()=>{await t.nextTick(),Ye==null||Ye.sendInspectorState(yt),Ye==null||Ye.sendInspectorTree(yt)},100)},100);function Jl(e){const{textColor:n,bgColor:a}=Oa(e.meta.value.valid),l={};Object.values(e.getAllPathStates()).forEach(o=>{Be(l,t.toValue(o.path),function(i,u){return{id:gn(u,i),label:t.toValue(i.path),tags:Ea(i.multiple,i.fieldsCount,i.type,i.valid,u)}}(o,e))});const{children:r}=function o(i,u=[]){const s=[...u].pop();return"id"in i?Object.assign(Object.assign({},i),{label:s||i.label}):He(i)?{id:`${u.join(".")}`,label:s||"",children:Object.keys(i).map(c=>o(i[c],[...u,c]))}:Array.isArray(i)?{id:`${u.join(".")}`,label:`${s}[]`,children:i.map((c,m)=>o(c,[...u,String(m)]))}:{id:"",label:"",children:[]}}(l);return{id:gn(e),label:e.name,children:r,tags:[{label:"Form",textColor:n,backgroundColor:a},{label:`${e.getAllPathStates().length} fields`,textColor:Mt,backgroundColor:Wl}]}}function Ea(e,n,a,l,r){const{textColor:o,bgColor:i}=Oa(l);return[e?void 0:{label:"Field",textColor:o,backgroundColor:i},r?void 0:{label:"Standalone",textColor:hn,backgroundColor:Xl},a==="checkbox"?{label:"Checkbox",textColor:Mt,backgroundColor:Gl}:void 0,a==="radio"?{label:"Radio",textColor:Mt,backgroundColor:Yl}:void 0,e?{label:"Multiple",textColor:hn,backgroundColor:Zl}:void 0].filter(Boolean)}function gn(e,n){const a=n?"path"in n?"pathState":"field":"form",l=n?"path"in n?n==null?void 0:n.path:t.toValue(n==null?void 0:n.name):"",r={f:e==null?void 0:e.formId,ff:(n==null?void 0:n.id)||l,type:a};return btoa(encodeURIComponent(JSON.stringify(r)))}function xo(e){return{"Field state":[{key:"errors",value:e.errors},{key:"initialValue",value:e.initialValue},{key:"currentValue",value:e.value},{key:"touched",value:e.touched},{key:"dirty",value:e.dirty},{key:"valid",value:e.valid}]}}function Oa(e){return{bgColor:e?ql:Kl,textColor:e?hn:Mt}}function rt(e,n,a){return Ot(a==null?void 0:a.type)?function(l,r,o){const i=o!=null&&o.standalone?void 0:ma(Tn),u=o==null?void 0:o.checkedValue,s=o==null?void 0:o.uncheckedValue;function c(m){const p=m.handleChange,V=t.computed(()=>{const y=t.toValue(m.value),h=t.toValue(u);return Array.isArray(y)?y.findIndex(v=>Ie(v,h))>=0:Ie(h,y)});function g(y,h=!0){var v,S;if(V.value===((v=y==null?void 0:y.target)===null||v===void 0?void 0:v.checked))return void(h&&m.validate());const I=t.toValue(l),w=i==null?void 0:i.getPathState(I),U=Bt(y);let M=(S=t.toValue(u))!==null&&S!==void 0?S:U;i&&(w!=null&&w.multiple)&&w.type==="checkbox"?M=Io(we(i.values,I)||[],M,void 0):(o==null?void 0:o.type)==="checkbox"&&(M=Io(t.toValue(m.value),M,t.toValue(s))),p(M,h)}return Object.assign(Object.assign({},m),{checked:V,checkedValue:u,uncheckedValue:s,handleChange:g})}return c(Po(l,r,o))}(e,n,a):Po(e,n,a)}function Po(e,n,a){const{initialValue:l,validateOnMount:r,bails:o,type:i,checkedValue:u,label:s,validateOnValueUpdate:c,uncheckedValue:m,controlled:p,keepValueOnUnmount:V,syncVModel:g,form:y}=function(b){const L=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),ae=!!(b!=null&&b.syncVModel),B=typeof(b==null?void 0:b.syncVModel)=="string"?b.syncVModel:(b==null?void 0:b.modelPropName)||"modelValue",re=ae&&!("initialValue"in(b||{}))?Qt(t.getCurrentInstance(),B):b==null?void 0:b.initialValue;if(!b)return Object.assign(Object.assign({},L()),{initialValue:re});const ee="valueProp"in b?b.valueProp:b.checkedValue,ge="standalone"in b?!b.standalone:b.controlled,se=(b==null?void 0:b.modelPropName)||(b==null?void 0:b.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},L()),b||{}),{initialValue:re,controlled:ge==null||ge,checkedValue:ee,syncVModel:se})}(a),h=p?ma(Tn):void 0,v=y||h,S=t.computed(()=>vt(t.toValue(e))),I=t.computed(()=>{if(t.toValue(v==null?void 0:v.schema))return;const b=t.unref(n);return Dt(b)||Ne(b)||Ee(b)||Array.isArray(b)?b:ga(b)}),w=!Ee(I.value)&&Ne(t.toValue(n)),{id:U,value:M,initialValue:le,meta:Y,setState:oe,errors:Q,flags:X}=$l(S,{modelValue:l,form:v,bails:o,label:s,type:i,validate:I.value?J:void 0,schema:w?n:void 0}),T=t.computed(()=>Q.value[0]);g&&function({prop:b,value:L,handleChange:ae,shouldValidate:B}){const re=t.getCurrentInstance();if(!re||!b)return void(process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup."));const ee=typeof b=="string"?b:"modelValue",ge=`update:${ee}`;ee in re.props&&(t.watch(L,se=>{Ie(se,Qt(re,ee))||re.emit(ge,se)}),t.watch(()=>Qt(re,ee),se=>{if(se===Ut&&L.value===void 0)return;const O=se===Ut?void 0:se;Ie(O,L.value)||ae(O,B())}))}({value:M,prop:g,handleChange:G,shouldValidate:()=>c&&!X.pendingReset});async function D(b){var L,ae;if(v!=null&&v.validateSchema){const{results:B}=await v.validateSchema(b);return(L=B[t.toValue(S)])!==null&&L!==void 0?L:{valid:!0,errors:[]}}return I.value?_a(M.value,I.value,{name:t.toValue(S),label:t.toValue(s),values:(ae=v==null?void 0:v.values)!==null&&ae!==void 0?ae:{},bails:o}):{valid:!0,errors:[]}}const ne=vn(async()=>(Y.pending=!0,Y.validated=!0,D("validated-only")),b=>(X.pendingUnmount[W.id]||(oe({errors:b.errors}),Y.pending=!1,Y.valid=b.valid),b)),z=vn(async()=>D("silent"),b=>(Y.valid=b.valid,b));function J(b){return(b==null?void 0:b.mode)==="silent"?z():ne()}function G(b,L=!0){te(Bt(b),L)}function F(b){var L;const ae=b&&"value"in b?b.value:le.value;oe({value:ue(ae),initialValue:ue(ae),touched:(L=b==null?void 0:b.touched)!==null&&L!==void 0&&L,errors:(b==null?void 0:b.errors)||[]}),Y.pending=!1,Y.validated=!1,z()}t.onMounted(()=>{if(r)return ne();v&&v.validateSchema||z()});const K=t.getCurrentInstance();function te(b,L=!0){M.value=K&&g?Ml(b,K.props.modelModifiers):b,(L?ne:z)()}const q=t.computed({get:()=>M.value,set(b){te(b,c)}}),W={id:U,name:S,label:s,value:q,meta:Y,errors:Q,errorMessage:T,type:i,checkedValue:u,uncheckedValue:m,bails:o,keepValueOnUnmount:V,resetField:F,handleReset:()=>F(),validate:J,handleChange:G,handleBlur:(b,L=!1)=>{Y.touched=!0,L&&ne()},setState:oe,setTouched:function(b){Y.touched=b},setErrors:function(b){oe({errors:Array.isArray(b)?b:[b]})},setValue:te};if(t.provide(Ul,W),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(b,L)=>{Ie(b,L)||(Y.validated?ne():z())},{deep:!0}),process.env.NODE_ENV!=="production"&&(W._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:Q.value},Y),{value:M.value}),tt,{deep:!0}),v||function(b){const L=t.getCurrentInstance();if(!Ye){const ae=L==null?void 0:L.appContext.app;if(!ae)return;Va(ae)}_t[b.id]=Object.assign({},b),_t[b.id]._vm=L,t.onUnmounted(()=>{delete _t[b.id],tt()}),tt()}(W)),!v)return W;const ie=t.computed(()=>{const b=I.value;return!b||Ee(b)||Dt(b)||Ne(b)||Array.isArray(b)?{}:Object.keys(b).reduce((L,ae)=>{const B=(re=b[ae],Array.isArray(re)?re.filter(pn):Se(re).filter(ee=>pn(re[ee])).map(ee=>re[ee])).map(ee=>ee.__locatorRef).reduce((ee,ge)=>{const se=we(v.values,ge)||v.values[ge];return se!==void 0&&(ee[ge]=se),ee},{});var re;return Object.assign(L,B),L},{})});return t.watch(ie,(b,L)=>{Object.keys(b).length&&!Ie(b,L)&&(Y.validated?ne():z())}),t.onBeforeUnmount(()=>{var b;const L=(b=t.toValue(W.keepValueOnUnmount))!==null&&b!==void 0?b:t.toValue(v.keepValuesOnUnmount),ae=t.toValue(S);if(L||!v||X.pendingUnmount[W.id])return void(v==null||v.removePathState(ae,U));X.pendingUnmount[W.id]=!0;const B=v.getPathState(ae);if(Array.isArray(B==null?void 0:B.id)&&(B!=null&&B.multiple)?B!=null&&B.id.includes(W.id):(B==null?void 0:B.id)===W.id){if(B!=null&&B.multiple&&Array.isArray(B.value)){const re=B.value.findIndex(ee=>Ie(ee,t.toValue(W.checkedValue)));if(re>-1){const ee=[...B.value];ee.splice(re,1),v.setFieldValue(ae,ee)}Array.isArray(B.id)&&B.id.splice(B.id.indexOf(W.id),1)}else v.unsetPathValue(t.toValue(S));v.removePathState(ae,U)}}),W}function Qt(e,n){if(e)return e.props[n]}const Ql=t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Ge().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Ut},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const a=t.toRef(e,"rules"),l=t.toRef(e,"name"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),i=t.toRef(e,"keepValue"),{errors:u,value:s,errorMessage:c,validate:m,handleChange:p,handleBlur:V,setTouched:g,resetField:y,handleReset:h,meta:v,checked:S,setErrors:I,setValue:w}=rt(l,a,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:er(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:i,syncVModel:!0}),U=function(Q,X=!0){p(Q,X)},M=t.computed(()=>{const{validateOnInput:Q,validateOnChange:X,validateOnBlur:T,validateOnModelUpdate:D}=function(z){var J,G,F,K;const{validateOnInput:te,validateOnChange:q,validateOnBlur:W,validateOnModelUpdate:ie}=Ge();return{validateOnInput:(J=z.validateOnInput)!==null&&J!==void 0?J:te,validateOnChange:(G=z.validateOnChange)!==null&&G!==void 0?G:q,validateOnBlur:(F=z.validateOnBlur)!==null&&F!==void 0?F:W,validateOnModelUpdate:(K=z.validateOnModelUpdate)!==null&&K!==void 0?K:ie}}(e);return{name:e.name,onBlur:function(z){V(z,T),Ee(n.attrs.onBlur)&&n.attrs.onBlur(z)},onInput:function(z){U(z,Q),Ee(n.attrs.onInput)&&n.attrs.onInput(z)},onChange:function(z){U(z,X),Ee(n.attrs.onChange)&&n.attrs.onChange(z)},"onUpdate:modelValue":z=>U(z,D)}}),le=t.computed(()=>{const Q=Object.assign({},M.value);return Ot(n.attrs.type)&&S&&(Q.checked=S.value),Bl(Ao(e,n),n.attrs)&&(Q.value=s.value),Q}),Y=t.computed(()=>Object.assign(Object.assign({},M.value),{modelValue:s.value}));function oe(){return{field:le.value,componentField:Y.value,value:s.value,meta:v,errors:u.value,errorMessage:c.value,validate:m,resetField:y,handleChange:U,handleInput:Q=>U(Q,!1),handleReset:h,handleBlur:M.value.onBlur,setTouched:g,setErrors:I,setValue:w}}return n.expose({value:s,meta:v,errors:u,errorMessage:c,setErrors:I,setTouched:g,setValue:w,reset:y,validate:m,handleChange:p}),()=>{const Q=t.resolveDynamicComponent(Ao(e,n)),X=function(T,D,ne){return D.slots.default?typeof T!="string"&&T?{default:()=>{var z,J;return(J=(z=D.slots).default)===null||J===void 0?void 0:J.call(z,ne())}}:D.slots.default(ne()):D.slots.default}(Q,n,oe);return Q?t.h(Q,Object.assign(Object.assign({},n.attrs),le.value),X):X}}});function Ao(e,n){let a=e.as||"";return e.as||n.slots.default||(a="input"),a}function er(e,n){return Ot(n.attrs.type)?Eo(e,"modelValue")?e.modelValue:void 0:Eo(e,"modelValue")?e.modelValue:n.attrs.value}const tr=Ql;let nr=0;const Tt=["bails","fieldsCount","id","multiple","type","validate"];function No(e){const n=(e==null?void 0:e.initialValues)||{},a=Object.assign({},t.toValue(n)),l=t.unref(e==null?void 0:e.validationSchema);return l&&Ne(l)&&Ee(l.cast)?ue(l.cast(a)||{}):ue(a)}function or(e){var n;const a=nr++,l=(e==null?void 0:e.name)||"Form";let r=0;const o=t.ref(!1),i=t.ref(!1),u=t.ref(0),s=[],c=t.reactive(No(e)),m=t.ref([]),p=t.ref({}),V=t.ref({}),g=function(f){let d=null,_=[];return function(...C){const E=t.nextTick(()=>{if(d!==E)return;const N=f(...C);_.forEach(P=>P(N)),_=[],d=null});return d=E,new Promise(N=>_.push(N))}}(()=>{V.value=m.value.reduce((f,d)=>(f[vt(t.toValue(d.path))]=d,f),{})});function y(f,d){const _=F(f);if(_){if(typeof f=="string"){const C=vt(f);p.value[C]&&delete p.value[C]}_.errors=mn(d),_.valid=!_.errors.length}else typeof f=="string"&&(p.value[vt(f)]=mn(d))}function h(f){Se(f).forEach(d=>{y(d,f[d])})}e!=null&&e.initialErrors&&h(e.initialErrors);const v=t.computed(()=>{const f=m.value.reduce((d,_)=>(_.errors.length&&(d[t.toValue(_.path)]=_.errors),d),{});return Object.assign(Object.assign({},p.value),f)}),S=t.computed(()=>Se(v.value).reduce((f,d)=>{const _=v.value[d];return _!=null&&_.length&&(f[d]=_[0]),f},{})),I=t.computed(()=>m.value.reduce((f,d)=>(f[t.toValue(d.path)]={name:t.toValue(d.path)||"",label:d.label||""},f),{})),w=t.computed(()=>m.value.reduce((f,d)=>{var _;return f[t.toValue(d.path)]=(_=d.bails)===null||_===void 0||_,f},{})),U=Object.assign({},(e==null?void 0:e.initialErrors)||{}),M=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0&&n,{initialValues:le,originalInitialValues:Y,setInitialValues:oe}=function(f,d,_){const C=No(_),E=t.ref(C),N=t.ref(ue(C));function P(H,Z){Z!=null&&Z.force?(E.value=ue(H),N.value=ue(H)):(E.value=pt(ue(E.value)||{},ue(H)),N.value=pt(ue(N.value)||{},ue(H))),Z!=null&&Z.updateFields&&f.value.forEach(de=>{if(de.touched)return;const $=we(E.value,t.toValue(de.path));Be(d,t.toValue(de.path),ue($))})}return{initialValues:E,originalInitialValues:N,setInitialValues:P}}(m,c,e),Q=function(f,d,_,C){const E={touched:"some",pending:"some",valid:"every"},N=t.computed(()=>!Ie(d,t.unref(_)));function P(){const Z=f.value;return Se(E).reduce((de,$)=>{const me=E[$];return de[$]=Z[me](fe=>fe[$]),de},{})}const H=t.reactive(P());return t.watchEffect(()=>{const Z=P();H.touched=Z.touched,H.valid=Z.valid,H.pending=Z.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(_)},H),{valid:H.valid&&!Se(C.value).length,dirty:N.value}))}(m,c,Y,S),X=t.computed(()=>m.value.reduce((f,d)=>{const _=we(c,t.toValue(d.path));return Be(f,t.toValue(d.path),_),f},{})),T=e==null?void 0:e.validationSchema;function D(f,d){var _,C;const E=t.computed(()=>we(le.value,t.toValue(f))),N=V.value[t.toValue(f)],P=(d==null?void 0:d.type)==="checkbox"||(d==null?void 0:d.type)==="radio";if(N&&P){N.multiple=!0;const ve=r++;return Array.isArray(N.id)?N.id.push(ve):N.id=[N.id,ve],N.fieldsCount++,N.__flags.pendingUnmount[ve]=!1,N}const H=t.computed(()=>we(c,t.toValue(f))),Z=t.toValue(f),de=te.findIndex(ve=>ve===Z);de!==-1&&te.splice(de,1);const $=t.computed(()=>{var ve,Oe,je,Xe;const Ae=t.toValue(T);if(Ne(Ae))return(Oe=(ve=Ae.describe)===null||ve===void 0?void 0:ve.call(Ae,t.toValue(f)).required)!==null&&Oe!==void 0&&Oe;const Me=t.toValue(d==null?void 0:d.schema);return!!Ne(Me)&&(Xe=(je=Me.describe)===null||je===void 0?void 0:je.call(Me).required)!==null&&Xe!==void 0&&Xe}),me=r++,fe=t.reactive({id:me,path:f,touched:!1,pending:!1,valid:!0,validated:!!(!((_=U[Z])===null||_===void 0)&&_.length),required:$,initialValue:E,errors:t.shallowRef([]),bails:(C=d==null?void 0:d.bails)!==null&&C!==void 0&&C,label:d==null?void 0:d.label,type:(d==null?void 0:d.type)||"default",value:H,multiple:!1,__flags:{pendingUnmount:{[me]:!1},pendingReset:!1},fieldsCount:1,validate:d==null?void 0:d.validate,dirty:t.computed(()=>!Ie(t.unref(H),t.unref(E)))});return m.value.push(fe),V.value[Z]=fe,g(),S.value[Z]&&!U[Z]&&t.nextTick(()=>{O(Z,{mode:"silent"})}),t.isRef(f)&&t.watch(f,ve=>{g();const Oe=ue(H.value);V.value[ve]=fe,t.nextTick(()=>{Be(c,ve,Oe)})}),fe}const ne=So(ye,5),z=So(ye,5),J=vn(async f=>await(f==="silent"?ne():z()),(f,[d])=>{const _=Se(ie.errorBag.value),C=[...new Set([...Se(f.results),...m.value.map(E=>E.path),..._])].sort().reduce((E,N)=>{var P;const H=N,Z=F(H)||function(fe){return m.value.filter(Oe=>fe.startsWith(t.toValue(Oe.path))).reduce((Oe,je)=>Oe?je.path.length>Oe.path.length?je:Oe:je,void 0)}(H),de=((P=f.results[H])===null||P===void 0?void 0:P.errors)||[],$=t.toValue(Z==null?void 0:Z.path)||H,me=function(fe,ve){return ve?{valid:fe.valid&&ve.valid,errors:[...fe.errors,...ve.errors]}:fe}({errors:de,valid:!de.length},E.results[$]);return E.results[$]=me,me.valid||(E.errors[$]=me.errors[0]),Z&&p.value[$]&&delete p.value[$],Z?(Z.valid=me.valid,d==="silent"||(d!=="validated-only"||Z.validated)&&y(Z,me.errors),E):(y($,de),E)},{valid:f.valid,results:{},errors:{},source:f.source});return f.values&&(C.values=f.values,C.source=f.source),Se(C.results).forEach(E=>{var N;const P=F(E);P&&d!=="silent"&&(d!=="validated-only"||P.validated)&&y(P,(N=C.results[E])===null||N===void 0?void 0:N.errors)}),C});function G(f){m.value.forEach(f)}function F(f){const d=typeof f=="string"?vt(f):f;return typeof d=="string"?V.value[d]:d}let K,te=[];function q(f){return function(d,_){return function(C){return C instanceof Event&&(C.preventDefault(),C.stopPropagation()),G(E=>E.touched=!0),o.value=!0,u.value++,se().then(E=>{const N=ue(c);if(E.valid&&typeof d=="function"){const P=ue(X.value);let H=f?P:N;return E.values&&(H=E.source==="schema"?E.values:Object.assign({},H,E.values)),d(H,{evt:C,controlledValues:P,setErrors:h,setFieldError:y,setTouched:re,setFieldTouched:B,setValues:L,setFieldValue:b,resetForm:ge,resetField:ee})}E.valid||typeof _!="function"||_({values:N,evt:C,errors:E.errors,results:E.results})}).then(E=>(o.value=!1,E),E=>{throw o.value=!1,E})}}}const W=q(!1);W.withControlled=q(!0);const ie={name:l,formId:a,values:c,controlledValues:X,errorBag:v,errors:S,schema:T,submitCount:u,meta:Q,isSubmitting:o,isValidating:i,fieldArrays:s,keepValuesOnUnmount:M,validateSchema:t.unref(T)?J:void 0,validate:se,setFieldError:y,validateField:O,setFieldValue:b,setValues:L,setErrors:h,setFieldTouched:B,setTouched:re,resetForm:ge,resetField:ee,handleSubmit:W,useFieldModel:function(f){return Array.isArray(f)?f.map(d=>ae(d,!0)):ae(f)},defineInputBinds:function(f,d){const[_,C]=x(f,d);function E(){C.value.onBlur()}function N(H){const Z=Bt(H);b(t.toValue(f),Z,!1),C.value.onInput()}function P(H){const Z=Bt(H);b(t.toValue(f),Z,!1),C.value.onChange()}return t.computed(()=>Object.assign(Object.assign({},C.value),{onBlur:E,onInput:N,onChange:P,value:_.value}))},defineComponentBinds:function(f,d){const[_,C]=x(f,d),E=F(t.toValue(f));function N(P){_.value=P}return t.computed(()=>{const P=Ee(d)?d(wt(E,Tt)):d||{};return Object.assign({[P.model||"modelValue"]:_.value,[`onUpdate:${P.model||"modelValue"}`]:N},C.value)})},defineField:x,stageInitialValue:function(f,d,_=!1){he(f,d),Be(c,f,d),_&&!(e!=null&&e.initialValues)&&Be(Y.value,f,ue(d))},unsetInitialValue:j,setFieldInitialValue:he,createPathState:D,getPathState:F,unsetPathValue:function(f){return te.push(f),K||(K=t.nextTick(()=>{[...te].sort().reverse().forEach(d=>{Co(c,d)}),te=[],K=null})),K},removePathState:function(f,d){const _=m.value.findIndex(E=>E.path===f&&(Array.isArray(E.id)?E.id.includes(d):E.id===d)),C=m.value[_];if(_!==-1&&C){if(t.nextTick(()=>{O(f,{mode:"silent",warn:!1})}),C.multiple&&C.fieldsCount&&C.fieldsCount--,Array.isArray(C.id)){const E=C.id.indexOf(d);E>=0&&C.id.splice(E,1),delete C.__flags.pendingUnmount[d]}(!C.multiple||C.fieldsCount<=0)&&(m.value.splice(_,1),j(f),g(),delete V.value[f])}},initialValues:le,getAllPathStates:()=>m.value,destroyPath:function(f){Se(V.value).forEach(d=>{d.startsWith(f)&&delete V.value[d]}),m.value=m.value.filter(d=>!d.path.startsWith(f)),t.nextTick(()=>{g()})},isFieldTouched:function(f){const d=F(f);return d?d.touched:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.touched)},isFieldDirty:function(f){const d=F(f);return d?d.dirty:m.value.filter(_=>_.path.startsWith(f)).some(_=>_.dirty)},isFieldValid:function(f){const d=F(f);return d?d.valid:m.value.filter(_=>_.path.startsWith(f)).every(_=>_.valid)}};function b(f,d,_=!0){const C=ue(d),E=typeof f=="string"?f:f.path;F(E)||D(E),Be(c,E,C),_&&O(E)}function L(f,d=!0){pt(c,f),s.forEach(_=>_&&_.reset()),d&&se()}function ae(f,d){const _=F(t.toValue(f))||D(f);return t.computed({get:()=>_.value,set(C){var E;b(t.toValue(f),C,(E=t.toValue(d))!==null&&E!==void 0&&E)}})}function B(f,d){const _=F(f);_&&(_.touched=d)}function re(f){typeof f!="boolean"?Se(f).forEach(d=>{B(d,!!f[d])}):G(d=>{d.touched=f})}function ee(f,d){var _;const C=d&&"value"in d?d.value:we(le.value,f),E=F(f);E&&(E.__flags.pendingReset=!0),he(f,ue(C),!0),b(f,C,!1),B(f,(_=d==null?void 0:d.touched)!==null&&_!==void 0&&_),y(f,(d==null?void 0:d.errors)||[]),t.nextTick(()=>{E&&(E.__flags.pendingReset=!1)})}function ge(f,d){let _=ue(f!=null&&f.values?f.values:Y.value);_=d!=null&&d.force?_:pt(Y.value,_),_=Ne(T)&&Ee(T.cast)?T.cast(_):_,oe(_,{force:d==null?void 0:d.force}),G(C=>{var E;C.__flags.pendingReset=!0,C.validated=!1,C.touched=((E=f==null?void 0:f.touched)===null||E===void 0?void 0:E[t.toValue(C.path)])||!1,b(t.toValue(C.path),we(_,t.toValue(C.path)),!1),y(t.toValue(C.path),void 0)}),d!=null&&d.force?function(C,E=!0){Se(c).forEach(N=>{delete c[N]}),Se(C).forEach(N=>{b(N,C[N],!1)}),E&&se()}(_,!1):L(_,!1),h((f==null?void 0:f.errors)||{}),u.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{se({mode:"silent"}),G(C=>{C.__flags.pendingReset=!1})})}async function se(f){const d=(f==null?void 0:f.mode)||"force";if(d==="force"&&G(P=>P.validated=!0),ie.validateSchema)return ie.validateSchema(d);i.value=!0;const _=await Promise.all(m.value.map(P=>P.validate?P.validate(f).then(H=>({key:t.toValue(P.path),valid:H.valid,errors:H.errors,value:H.value})):Promise.resolve({key:t.toValue(P.path),valid:!0,errors:[],value:void 0})));i.value=!1;const C={},E={},N={};for(const P of _)C[P.key]={valid:P.valid,errors:P.errors},P.value&&Be(N,P.key,P.value),P.errors.length&&(E[P.key]=P.errors[0]);return{valid:_.every(P=>P.valid),results:C,errors:E,values:N,source:"fields"}}async function O(f,d){var _;const C=F(f);if(C&&(d==null?void 0:d.mode)!=="silent"&&(C.validated=!0),T){const{results:E}=await J((d==null?void 0:d.mode)||"validated-only");return E[f]||{errors:[],valid:!0}}return C!=null&&C.validate?C.validate(d):(!C&&((_=d==null?void 0:d.warn)===null||_===void 0||_)&&process.env.NODE_ENV!=="production"&&t.warn(`field with path ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function j(f){Co(le.value,f)}function he(f,d,_=!1){Be(le.value,f,ue(d)),_&&Be(Y.value,f,ue(d))}async function ye(){const f=t.unref(T);if(!f)return{valid:!0,results:{},errors:{},source:"none"};i.value=!0;const d=Dt(f)||Ne(f)?await async function(_,C){const E=Ne(_)?_:ya(_),N=await E.parse(ue(C),{formData:ue(C)}),P={},H={};for(const Z of N.errors){const de=Z.errors,$=(Z.path||"").replace(/\["(\d+)"\]/g,(me,fe)=>`[${fe}]`);P[$]={valid:!de.length,errors:de},de.length&&(H[$]=de[0])}return{valid:!N.errors.length,results:P,errors:H,values:N.value,source:"schema"}}(f,c):await Hl(f,c,{names:I.value,bailsMap:w.value});return i.value=!1,d}const R=W((f,{evt:d})=>{(function(_){return va(_)&&_.target&&"submit"in _.target})(d)&&d.target.submit()});function x(f,d){const _=Ee(d)||d==null?void 0:d.label,C=F(t.toValue(f))||D(f,{label:_}),E=()=>Ee(d)?d(wt(C,Tt)):d||{};function N(){var $;C.touched=!0,(($=E().validateOnBlur)!==null&&$!==void 0?$:Ge().validateOnBlur)&&O(t.toValue(C.path))}function P(){var $;(($=E().validateOnInput)!==null&&$!==void 0?$:Ge().validateOnInput)&&t.nextTick(()=>{O(t.toValue(C.path))})}function H(){var $;(($=E().validateOnChange)!==null&&$!==void 0?$:Ge().validateOnChange)&&t.nextTick(()=>{O(t.toValue(C.path))})}const Z=t.computed(()=>{const $={onChange:H,onInput:P,onBlur:N};return Ee(d)?Object.assign(Object.assign({},$),d(wt(C,Tt)).props||{}):d!=null&&d.props?Object.assign(Object.assign({},$),d.props(wt(C,Tt))):$});return[ae(f,()=>{var $,me,fe;return(fe=($=E().validateOnModelUpdate)!==null&&$!==void 0?$:(me=Ge())===null||me===void 0?void 0:me.validateOnModelUpdate)===null||fe===void 0||fe}),Z]}t.onMounted(()=>{e!=null&&e.initialErrors&&h(e.initialErrors),e!=null&&e.initialTouched&&re(e.initialTouched),e!=null&&e.validateOnMount?se():ie.validateSchema&&ie.validateSchema("silent")}),t.isRef(T)&&t.watch(T,()=>{var f;(f=ie.validateSchema)===null||f===void 0||f.call(ie,"validated-only")}),t.provide(Tn,ie),process.env.NODE_ENV!=="production"&&(function(f){const d=t.getCurrentInstance();if(!Ye){const _=d==null?void 0:d.appContext.app;if(!_)return;Va(_)}gt[f.formId]=Object.assign({},f),gt[f.formId]._vm=d,t.onUnmounted(()=>{delete gt[f.formId],tt()}),tt()}(ie),t.watch(()=>Object.assign(Object.assign({errors:v.value},Q.value),{values:c,isSubmitting:o.value,isValidating:i.value,submitCount:u.value}),tt,{deep:!0}));const pe=Object.assign(Object.assign({},ie),{values:t.readonly(c),handleReset:()=>ge(),submitForm:R});return t.provide(Rl,pe),pe}const ka=e=>{const{columnsMerged:n,fieldColumns:a,propName:l}=e;a&&l&&tn({columns:a,propName:`${l} prop "columns"`});const r=(a==null?void 0:a.sm)??n.sm,o=(a==null?void 0:a.md)??n.md,i=(a==null?void 0:a.lg)??n.lg,u=(a==null?void 0:a.xl)??n.xl;return{"v-col-12":!0,"v-cols":!0,[`v-col-sm-${r}`]:!!r,[`v-col-md-${o}`]:!!o,[`v-col-lg-${i}`]:!!i,[`v-col-xl-${u}`]:!!u}},ar=["columns","options","required","rules","when"],Ke=(e,n=[])=>{const a=Object.entries(e).filter(([l])=>!ar.includes(l)&&!(n!=null&&n.includes(l)));return Object.fromEntries(a)},it=async e=>{const{action:n,emit:a,field:l,settingsValidateOn:r,validate:o}=e,i=l.validateOn||r;(n==="blur"&&i==="blur"||n==="input"&&i==="input"||n==="change"&&i==="change"||n==="click")&&await o().then(()=>{a("validate",l)})},lr=t.defineComponent({__name:"CommonField",props:t.mergeModels({field:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),c=l.value,{errorMessage:m,setValue:p,validate:V,value:g}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});async function y(U){await it({action:U,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:V})}t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=c,p(c))});const h=t.computed(()=>o!=null&&o.items?o.items:void 0),v=t.computed(()=>o.type==="color"||o.type==="date"?"text":o.type),S=t.computed(()=>{let U=o==null?void 0:o.error;return U=o!=null&&o.errorMessages?o.errorMessages.length>0:U,U}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,hideDetails:o.hideDetails||i.value.hideDetails,type:v.value,variant:o.variant||i.value.variant})),w=t.computed(()=>Ke(I.value));return(U,M)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.component),t.mergeProps({modelValue:t.unref(g),"onUpdate:modelValue":M[0]||(M[0]=le=>t.isRef(g)?g.value=le:null)},{...t.unref(w)},{"data-cy":`vsf-field-${t.unref(o).name}`,error:t.unref(S),"error-messages":t.unref(m)||t.unref(o).errorMessages,items:t.unref(h),onBlur:M[1]||(M[1]=le=>y("blur")),onChange:M[2]||(M[2]=le=>y("change")),onInput:M[3]||(M[3]=le=>y("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","error","error-messages","items"]))}}),rr=["innerHTML"],ir={key:0,class:"v-input__details"},ur=["name"],sr=t.defineComponent({__name:"VSFButtonField",props:t.mergeModels({density:{},field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){t.useCssVars(O=>({"7f272e17":t.unref(ie)}));const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>o.required||!1),s=t.computed(()=>{var O;return(o==null?void 0:o.validateOn)??((O=i.value)==null?void 0:O.validateOn)}),c=l.value,{errorMessage:m,handleChange:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:o!=null&&o.multiple?[]:null,validateOnBlur:s.value==="blur",validateOnChange:s.value==="change",validateOnInput:s.value==="input",validateOnModelUpdate:s.value!=null});t.onUnmounted(()=>{var O;(O=i.value)!=null&&O.keepValuesOnUnmount||(l.value=c,V(c))});const h=t.ref(l.value);async function v(O,j){var he;if(h.value!==j||s.value!=="change"&&s.value!=="input"){if(!(o!=null&&o.disabled)&&y.value){let ye;if(o!=null&&o.multiple){const R=Array.isArray(y.value)?y.value.slice():[],x=String(j);R.includes(x)?R.splice(R.indexOf(x),1):R.push(x),ye=R}else ye=j;V(ye),l.value=ye}else V(j),l.value=j;await it({action:O,emit:a,field:o,settingsValidateOn:(he=i.value)==null?void 0:he.validateOn,validate:g}).then(()=>{h.value=y.value}).catch(ye=>{console.error(ye)})}}const S=t.computed(()=>{var O,j,he;return{...o,border:o!=null&&o.border?`${o==null?void 0:o.color} ${o==null?void 0:o.border}`:void 0,color:o.color||((O=i.value)==null?void 0:O.color),density:(o==null?void 0:o.density)??((j=i.value)==null?void 0:j.density),hideDetails:o.hideDetails||((he=i.value)==null?void 0:he.hideDetails),multiple:void 0}}),I=t.computed(()=>Ke(S.value,["autoPage","hideDetails","href","maxErrors","multiple","to"])),w=(O,j)=>{const he=O[j],ye=o==null?void 0:o[j];return he??ye};function U(O,j){return O.id!=null?O.id:o!=null&&o.id?`${o==null?void 0:o.id}-${j}`:void 0}const M={comfortable:"48px",compact:"40px",default:"56px",expanded:"64px",oversized:"72px"},le=t.computed(()=>{var O;return(o==null?void 0:o.density)??((O=i.value)==null?void 0:O.density)});function Y(){return le.value?M[le.value]:M.default}function oe(O){const j=(O==null?void 0:O.minWidth)??(o==null?void 0:o.minWidth);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():"100px")}function Q(O){const j=(O==null?void 0:O.maxWidth)??(o==null?void 0:o.maxWidth);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():void 0)}function X(O){const j=(O==null?void 0:O.minHeight)??(o==null?void 0:o.minHeight);return j??(O!=null&&O.icon||o!=null&&o.icon?Y():void 0)}function T(O){const j=(O==null?void 0:O.maxHeight)??(o==null?void 0:o.maxHeight);if(j!=null)return j}function D(O){const j=(O==null?void 0:O.width)??(o==null?void 0:o.width);return j??(O!=null&&O.icon?Y():"fit-content")}function ne(O){const j=(O==null?void 0:O.height)??(o==null?void 0:o.height);return j??Y()}const z=O=>{if(y.value)return y.value===O||y.value.includes(O)},J=t.ref(o==null?void 0:o.variant);function G(O){var j;return z(O)?"flat":J.value??((j=i.value)==null?void 0:j.variant)??"tonal"}function F(O){return O&&O.length>0?O:o.hint&&(o.persistentHint||ee.value)?o.hint:o.messages?o.messages:""}const K=t.computed(()=>o.messages&&o.messages.length>0),te=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&K.value),q=t.shallowRef(o.gap??2),W=t.computed(()=>se(q.value)?{gap:`${q.value}`}:{}),ie=t.ref("rgb(var(--v-theme-on-surface))"),b=t.computed(()=>({[`align-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&(o==null?void 0:o.block),[`justify-${o==null?void 0:o.align}`]:(o==null?void 0:o.align)!=null&&!(o!=null&&o.block),"d-flex":!0,"flex-column":o==null?void 0:o.block,[`ga-${q.value}`]:!se(q.value)})),L=t.computed(()=>({"d-flex":o==null?void 0:o.align,"flex-column":o==null?void 0:o.align,"v-input--error":!!m&&(m==null?void 0:m.length)>0,"vsf-button-field__container":!0,[`align-${o==null?void 0:o.align}`]:o==null?void 0:o.align})),ae=t.computed(()=>{const O=le.value;return O==="expanded"||O==="oversized"?{[`v-btn--density-${O}`]:!0}:{}}),B=O=>({[`${O==null?void 0:O.class}`]:!0,[`${o.selectedClass}`]:z(O.value)&&o.selectedClass!=null}),re=O=>{const j=z(O.value),he=G(O.value),ye=j||he==="flat"||he==="elevated";return{[`bg-${O==null?void 0:O.color}`]:ye}},ee=t.shallowRef(null);function ge(O){ee.value=O}function se(O){return/(px|em|rem|vw|vh|vmin|vmax|%|pt|cm|mm|in|pc|ex|ch)$/.test(O)}return(O,j)=>{var ye;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(t.unref(L))},[t.createVNode(yn.VLabel,null,{default:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(u)},null,8,["label","required"])]),_:1}),t.createVNode(Pn.VItemGroup,{id:(ye=t.unref(o))==null?void 0:ye.id,modelValue:l.value,"onUpdate:modelValue":j[2]||(j[2]=R=>l.value=R),class:t.normalizeClass(["mt-2",t.unref(b)]),"data-cy":`vsf-field-group-${t.unref(o).name}`,style:t.normalizeStyle(t.unref(W))},{default:t.withCtx(()=>{var R;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((R=t.unref(o))==null?void 0:R.options,(x,pe)=>(t.openBlock(),t.createBlock(Pn.VItem,{key:x.value},{default:t.withCtx(()=>{var f,d;return[t.createVNode(xt.VBtn,t.mergeProps({ref_for:!0},t.unref(I),{id:U(x,pe),active:z(x.value),appendIcon:w(x,"appendIcon"),class:["text-none",{...t.unref(ae),...B(x)}],color:(x==null?void 0:x.color)||((f=t.unref(o))==null?void 0:f.color)||((d=t.unref(i))==null?void 0:d.color),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(le),height:ne(x),icon:w(x,"icon"),maxHeight:T(x),maxWidth:Q(x),minHeight:X(x),minWidth:oe(x),prependIcon:w(x,"prependIcon"),value:x.value,variant:G(x.value),width:D(x),onClick:t.withModifiers(_=>v("click",x.value),["prevent"]),onKeydown:t.withKeys(t.withModifiers(_=>v("click",x.value),["prevent"]),["space"]),onMousedown:_=>ge(x.value),onMouseleave:j[0]||(j[0]=_=>ge(null)),onMouseup:j[1]||(j[1]=_=>ge(null))}),t.createSlots({_:2},[w(x,"icon")==null?{name:"default",fn:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["vsf-button-field__btn-label",re(x)]),innerHTML:x.label},null,10,rr)]),key:"0"}:void 0]),1040,["id","active","appendIcon","class","color","data-cy","density","height","icon","maxHeight","maxWidth","minHeight","minWidth","prependIcon","value","variant","width","onClick","onKeydown","onMousedown"])]}),_:2},1024))),128))]}),_:1},8,["id","modelValue","class","data-cy","style"]),t.unref(te)?(t.openBlock(),t.createElementBlock("div",ir,[t.createVNode(t.unref(ze.VMessages),{active:(he=t.unref(m),!!(he&&he.length>0)||!(!o.hint||!o.persistentHint&&!ee.value)||!!o.messages),color:t.unref(m)?"error":void 0,"data-cy":"vsf-field-messages",messages:F(t.unref(m))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],2),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":j[3]||(j[3]=R=>t.isRef(y)?y.value=R:null),"data-cy":"vsf-button-field-input",name:t.unref(o).name,type:"hidden",onChange:j[4]||(j[4]=(...R)=>t.unref(p)&&t.unref(p)(...R))},null,40,ur),[[t.vModelText,t.unref(y)]])],64);var he}}}),Ca=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},cr=Ca(sr,[["__scopeId","data-v-49f12da6"]]),dr={key:1,class:"v-input v-input--horizontal v-input--center-affix"},fr=["id"],pr={key:0,class:"v-input__details"},vr=t.defineComponent({__name:"VSFCheckbox",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var T;return(o==null?void 0:o.density)??((T=i.value)==null?void 0:T.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m,V(m))});const h=t.ref(o==null?void 0:o.disabled);async function v(T){h.value||(h.value=!0,l.value=y.value,await it({action:o!=null&&o.autoPage?"click":T,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1}))}const S=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||void 0,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),I=t.computed(()=>Ke(S.value,["validateOn"])),w=t.ref(!1);function U(T){return T&&T.length>0?T:o.hint&&(o.persistentHint||w.value)?o.hint:o.messages?o.messages:""}const M=t.computed(()=>o.messages&&o.messages.length>0),le=t.computed(()=>!S.value.hideDetails||S.value.hideDetails==="auto"&&M.value),Y=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),oe=t.computed(()=>({display:o.inline?"flex":void 0})),Q=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"})),X=t.computed(()=>({"v-input--error":!!p&&(p==null?void 0:p.length)>0,"v-selection-control-group":o.inline}));return(T,D)=>{var z,J,G,F;return(z=t.unref(o))!=null&&z.multiple?(t.openBlock(),t.createElementBlock("div",dr,[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(Y))},[t.unref(o).label?(t.openBlock(),t.createBlock(yn.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>{var K,te;return[t.createVNode($e,{class:t.normalizeClass({"pb-5":!((K=t.unref(o))!=null&&K.hideDetails)&&((te=t.unref(o))==null?void 0:te.labelPositionLeft)}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]}),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(J=t.unref(o))==null?void 0:J.id,class:t.normalizeClass(t.unref(X)),style:t.normalizeStyle(t.unref(oe))},[t.createElementVNode("div",{class:t.normalizeClass({"v-input__control":t.unref(o).inline})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((G=t.unref(o))==null?void 0:G.options,K=>{var te;return t.openBlock(),t.createBlock(An.VCheckbox,t.mergeProps({key:K.value,ref_for:!0},{...t.unref(I)},{id:K.id,modelValue:t.unref(y),"onUpdate:modelValue":D[5]||(D[5]=q=>t.isRef(y)?y.value=q:null),"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((te=t.unref(p))==null?void 0:te.length)>0,"error-messages":t.unref(p),"hide-details":!0,label:K.label,style:t.unref(Q),"true-value":K.value,onBlur:D[6]||(D[6]=q=>v("blur")),onChange:D[7]||(D[7]=q=>v("change")),onClick:D[8]||(D[8]=q=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[9]||(D[9]=q=>v("input")),"onUpdate:focused":D[10]||(D[10]=q=>{return W=q,void(w.value=W);var W})}),null,16,["id","modelValue","data-cy","density","disabled","error","error-messages","label","style","true-value"])}),128))],2),t.unref(le)?(t.openBlock(),t.createElementBlock("div",pr,[t.createVNode(t.unref(ze.VMessages),{active:(ne=t.unref(p),!!(ne&&ne.length>0)||!(!o.hint||!o.persistentHint&&!w.value)||!!o.messages),color:t.unref(p)?"error":void 0,messages:U(t.unref(p))},null,8,["active","color","messages"])])):t.createCommentVNode("",!0)],14,fr)],4)])):(t.openBlock(),t.createBlock(An.VCheckbox,t.mergeProps({key:0,modelValue:t.unref(y),"onUpdate:modelValue":D[0]||(D[0]=K=>t.isRef(y)?y.value=K:null)},{...t.unref(I)},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(h),error:!!t.unref(p)&&((F=t.unref(p))==null?void 0:F.length)>0,"error-messages":t.unref(p),onBlur:D[1]||(D[1]=K=>v("blur")),onChange:D[2]||(D[2]=K=>v("change")),onClick:D[3]||(D[3]=K=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click"):void 0),onInput:D[4]||(D[4]=K=>v("input"))}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:1},16,["modelValue","data-cy","density","disabled","error","error-messages"]));var ne}}}),mr=["data-cy"],hr=t.defineComponent({__name:"VSFCustom",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=t.useSlots(),l=n,r=t.useModel(e,"modelValue"),o=e,{field:i}=o,u=t.inject("settings"),s=t.toRaw($e),c=t.computed(()=>(i==null?void 0:i.validateOn)??u.value.validateOn),m=rt(i.name,void 0,{initialValue:r.value,validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});async function p(h){await it({action:h,emit:l,field:i,settingsValidateOn:u.value.validateOn,validate:m.validate})}const V=t.computed(()=>({...Ke(m,["_vm","errorMessage","field","id","label","name","type","value"])})),g=t.computed(()=>({...i,color:i.color||u.value.color,density:i.density||u.value.density})),y=t.computed(()=>({...Ke(g.value),options:i.options,required:i.required}));return(h,v)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(S,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[I===`field.${[t.unref(i).name]}`?(t.openBlock(),t.createElementBlock("div",{key:0,"data-cy":`vsf-field-${t.unref(i).name}`},[t.renderSlot(h.$slots,I,t.mergeProps({ref_for:!0},{FieldLabel:t.unref(s),blur:()=>p("blur"),change:()=>p("change"),input:()=>p("input"),onUpdate:w=>{(function(U){m.setValue(U)})(w)},field:{errorMessages:t.unref(m).errorMessage.value,...t.unref(y)},...t.unref(V)}))],8,mr)):t.createCommentVNode("",!0)],64))),128))}}),gr=["id"],_r=t.defineComponent({__name:"VSFRadio",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var oe;return(o==null?void 0:o.density)??((oe=i.value)==null?void 0:oe.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value,{errorMessage:p,setValue:V,validate:g,value:y}=rt(o.name,void 0,{initialValue:l.value,type:"radio",validateOnBlur:c.value==="blur",validateOnChange:c.value==="change",validateOnInput:c.value==="input",validateOnModelUpdate:c.value!=null});t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const h=t.ref(o==null?void 0:o.disabled);async function v(oe,Q){if(!h.value){let X;if(h.value=!0,o==null?void 0:o.multiple){const T=Array.isArray(y.value)?y.value.slice():[],D=String(Q);T.includes(D)?T.splice(T.indexOf(D),1):T.push(D),X=T}else X=Q;V(X),l.value=X,await it({action:o!=null&&o.autoPage?"click":oe,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:g}).then(()=>{h.value=!1})}}const S=t.computed(()=>{let oe=o==null?void 0:o.error;return oe=o!=null&&o.errorMessages?o.errorMessages.length>0:oe,oe}),I=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),w=t.computed(()=>Ke(I.value)),U=t.computed(()=>({width:(o==null?void 0:o.minWidth)??(o==null?void 0:o.width)??void 0})),M=t.computed(()=>({"flex-direction":o.labelPositionLeft?"row":"column"})),le=t.computed(()=>({display:o.inline?"flex":void 0})),Y=t.computed(()=>({"margin-right":o.inline&&o.inlineSpacing?o.inlineSpacing:"10px"}));return(oe,Q)=>{var X,T,D,ne,z,J,G,F,K,te,q,W,ie,b,L,ae,B;return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(t.unref(U))},[t.createElementVNode("div",{class:"v-input__control",style:t.normalizeStyle(t.unref(M))},[t.unref(o).label?(t.openBlock(),t.createBlock(yn.VLabel,{key:0,class:t.normalizeClass({"me-2":t.unref(o).labelPositionLeft})},{default:t.withCtx(()=>[t.createVNode($e,{class:t.normalizeClass({"pb-5":t.unref(o).labelPositionLeft}),label:t.unref(o).label,required:t.unref(s)},null,8,["class","label","required"])]),_:1},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("div",{id:(X=t.unref(o))==null?void 0:X.groupId,style:t.normalizeStyle(t.unref(le))},[t.createVNode(Pa.VRadioGroup,{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=re=>l.value=re),"append-icon":(T=t.unref(o))==null?void 0:T.appendIcon,"data-cy":`vsf-field-group-${t.unref(o).name}`,density:t.unref(u),direction:(D=t.unref(o))==null?void 0:D.direction,disabled:t.unref(h),error:t.unref(S),"error-messages":t.unref(p)||((ne=t.unref(o))==null?void 0:ne.errorMessages),hideDetails:((z=t.unref(o))==null?void 0:z.hideDetails)||((J=t.unref(i))==null?void 0:J.hideDetails),hint:(G=t.unref(o))==null?void 0:G.hint,inline:(F=t.unref(o))==null?void 0:F.inline,"max-errors":(K=t.unref(o))==null?void 0:K.maxErrors,"max-width":(te=t.unref(o))==null?void 0:te.maxWidth,messages:(q=t.unref(o))==null?void 0:q.messages,"min-width":(W=t.unref(o))==null?void 0:W.minWidth,multiple:(ie=t.unref(o))==null?void 0:ie.multiple,persistentHint:(b=t.unref(o))==null?void 0:b.persistentHint,"prepend-icon":(L=t.unref(o))==null?void 0:L.prependIcon,theme:(ae=t.unref(o))==null?void 0:ae.theme,width:(B=t.unref(o))==null?void 0:B.width},{default:t.withCtx(()=>{var re;return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((re=t.unref(o))==null?void 0:re.options,(ee,ge)=>{var se;return t.openBlock(),t.createElementBlock("div",{key:ge},[t.createVNode(xa.VRadio,t.mergeProps({ref_for:!0},{...t.unref(w)},{id:void 0,"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),error:!!t.unref(p)&&((se=t.unref(p))==null?void 0:se.length)>0,"error-messages":t.unref(p),"false-value":t.unref(o).falseValue,label:ee.label,name:t.unref(o).name,style:t.unref(Y),"true-value":ee.value||t.unref(o).trueValue,value:ee.value,onBlur:O=>v("blur",ee.value),onChange:O=>v("change",ee.value),onClick:O=>t.unref(c)==="blur"||t.unref(c)==="change"?v("click",ee.value):void 0,onInput:O=>v("input",ee.value)}),null,16,["data-cy","density","error","error-messages","false-value","label","name","style","true-value","value","onBlur","onChange","onClick","onInput"])])}),128))]}),_:1},8,["modelValue","append-icon","data-cy","density","direction","disabled","error","error-messages","hideDetails","hint","inline","max-errors","max-width","messages","min-width","multiple","persistentHint","prepend-icon","theme","width"])],12,gr)],4)],4)}}}),yr=t.defineComponent({__name:"VSFSwitch",props:t.mergeModels({field:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useModel(e,"modelValue"),r=e,{field:o}=r,i=t.inject("settings"),u=t.computed(()=>{var h;return(o==null?void 0:o.density)??((h=i.value)==null?void 0:h.density)}),s=t.computed(()=>o.required||!1),c=t.computed(()=>(o==null?void 0:o.validateOn)??i.value.validateOn),m=l.value;t.onUnmounted(()=>{i.value.keepValuesOnUnmount||(l.value=m)});const p=t.ref(o==null?void 0:o.disabled);async function V(h,v){p.value||(p.value=!0,await it({action:o!=null&&o.autoPage?"click":v,emit:a,field:o,settingsValidateOn:i.value.validateOn,validate:h}).then(()=>{p.value=!1}))}const g=t.computed(()=>({...o,color:o.color||i.value.color,density:o.density||i.value.density,falseValue:o.falseValue||!1,hideDetails:o.hideDetails||i.value.hideDetails,trueValue:o.trueValue||!0})),y=t.computed(()=>Ke(g.value));return(h,v)=>(t.openBlock(),t.createBlock(t.unref(tr),{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=S=>l.value=S),name:t.unref(o).name,syncVModel:!0,type:"checkbox","unchecked-value":t.unref(o).falseValue,"validate-on-blur":t.unref(c)==="blur","validate-on-change":t.unref(c)==="change","validate-on-input":t.unref(c)==="input","validate-on-model-update":!1,value:t.unref(o).trueValue},{default:t.withCtx(S=>{var I;return[t.createVNode(Aa.VSwitch,t.mergeProps({...t.unref(y),...S.field},{"data-cy":`vsf-field-${t.unref(o).name}`,density:t.unref(u),disabled:t.unref(p),error:!!S.errorMessage&&((I=S.errorMessage)==null?void 0:I.length)>0,"error-messages":S.errorMessage,onBlur:w=>V(S.validate,"blur"),onChange:w=>V(S.validate,"change"),onClick:w=>t.unref(c)==="blur"||t.unref(c)==="change"?V(S.validate,"click"):void 0,onInput:w=>V(S.validate,"input")}),{label:t.withCtx(()=>[t.createVNode($e,{label:t.unref(o).label,required:t.unref(s)},null,8,["label","required"])]),_:2},1040,["data-cy","density","disabled","error","error-messages","onBlur","onChange","onClick","onInput"])]}),_:1},8,["modelValue","name","unchecked-value","validate-on-blur","validate-on-change","validate-on-input","value"]))}}),br=["onUpdate:modelValue","data-cy","name"],Vr=["innerHTML"],Er=t.defineComponent({inheritAttrs:!1,__name:"PageContainer",props:t.mergeModels({fieldColumns:{},page:{},pageIndex:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["validate"],["update:modelValue"]),setup(e,{emit:n}){const a=n,l=t.useSlots(),r=["email","number","password","tel","text","textField","url"];function o(p){if(r.includes(p))return t.markRaw(ze.VTextField);switch(p){case"autocomplete":return t.markRaw(ze.VAutocomplete);case"color":return t.markRaw(wa);case"combobox":return t.markRaw(ze.VCombobox);case"date":return t.markRaw(Ta.VDateInput);case"file":return t.markRaw(ze.VFileInput);case"select":return t.markRaw(ze.VSelect);case"textarea":return t.markRaw(ze.VTextarea);default:return null}}const i=t.useModel(e,"modelValue"),u=t.computed(()=>{var p;return((p=e.page)==null?void 0:p.pageFieldColumns)??{}}),s=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.fieldColumns,...u.value});function c(p){return ka({columnsMerged:s.value,fieldColumns:p.columns,propName:`${p.name} field`})}function m(p){a("validate",p)}return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.page.fields,g=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${g.name}-${g.type}`},[g.type!=="hidden"&&g.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[g.text?(t.openBlock(),t.createBlock(Te.VCol,{key:0,cols:"12"},{default:t.withCtx(()=>[t.createElementVNode("div",{"data-cy":"vsf-field-text",innerHTML:g.text},null,8,Vr)]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(Te.VCol,{class:t.normalizeClass(c(g))},{default:t.withCtx(()=>[g.type==="checkbox"?(t.openBlock(),t.createBlock(vr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="radio"?(t.openBlock(),t.createBlock(_r,{key:1,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="buttons"?(t.openBlock(),t.createBlock(cr,{key:2,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),g.type==="switch"?(t.openBlock(),t.createBlock(yr,{key:3,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0),o(g.type)!=null?(t.openBlock(),t.createBlock(lr,{key:4,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,component:o(g.type),field:g,onValidate:m},null,8,["modelValue","onUpdate:modelValue","component","field"])):t.createCommentVNode("",!0),g.type==="field"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[g.type==="field"?(t.openBlock(),t.createBlock(hr,{key:0,modelValue:i.value[g.name],"onUpdate:modelValue":y=>i.value[g.name]=y,field:g,onValidate:m},t.createSlots({_:2},[t.renderList(l,(y,h)=>({name:h,fn:t.withCtx(v=>[t.renderSlot(p.$slots,h,t.mergeProps({ref_for:!0},{...v}))])}))]),1032,["modelValue","onUpdate:modelValue","field"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]),_:2},1032,["class"])],64)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":y=>i.value[g.name]=y,"data-cy":`vsf-field-${g.name}`,name:g.name,type:"hidden"},null,8,br)),[[t.vModelText,i.value[g.name]]])],64))),128))]),_:3})],64))}}),Or=t.defineComponent({inheritAttrs:!1,__name:"PageReviewContainer",props:t.mergeModels({page:{},pages:{},summaryColumns:{}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["goToQuestion"],["update:modelValue"]),setup(e,{emit:n}){const a=t.inject("settings"),{editable:l}=t.unref(a),r=n,o=t.useModel(e,"modelValue"),i=t.ref([]),{lastNonEditableIndex:u}=nn(e.pages);function s(p){var g;const V=e.pages.findIndex(y=>y.fields?y.fields.some(h=>h.name===p.name):-1);return l!==!1&&((g=e.pages[V])==null?void 0:g.editable)!==!1&&p.editable!==!1}Object.values(e.pages).forEach((p,V)=>{p.fields&&Object.values(p.fields).forEach(g=>{const y=g;V<=u&&(y.editable=!1),i.value.push(y)})});const c=t.ref({lg:void 0,md:void 0,sm:void 0,xl:void 0,...e.summaryColumns}),m=t.computed(()=>ka({columnsMerged:c.value}));return(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.page.text?(t.openBlock(),t.createBlock(Te.VRow,{key:0},{default:t.withCtx(()=>[t.createVNode(Te.VCol,{innerHTML:p.page.text},null,8,["innerHTML"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),g=>(t.openBlock(),t.createBlock(Te.VCol,{key:g.name,class:t.normalizeClass(t.unref(m))},{default:t.withCtx(()=>[t.createVNode(qe.VList,{lines:"two"},{default:t.withCtx(()=>[t.createVNode(Na.VCard,{class:"mb-2",color:"background"},{default:t.withCtx(()=>[s(g)?(t.openBlock(),t.createBlock(qe.VListItem,{key:0,onClick:y=>t.unref(l)&&g.editable!==!1?function(h){var S;let v=e.pages.findIndex(I=>I.fields?I.fields.some(w=>w.name===h.name):-1);((S=e.pages[v])==null?void 0:S.editable)!==!1&&h.editable!==!1&&(v+=1,setTimeout(()=>{r("goToQuestion",v)},350))}(g):void 0},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1032,["onClick"])):(t.openBlock(),t.createBlock(qe.VListItem,{key:1,ripple:!1},{default:t.withCtx(()=>[t.createVNode(qe.VListItemTitle,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1024),t.createVNode(qe.VListItemSubtitle,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(g.text),1),t.createElementVNode("div",{class:t.normalizeClass(`text-${t.unref(a).color}`)},t.toDisplayString(o.value[g.name]),3)]),_:2},1024)]),_:2},1024))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1})],64))}}),kr=t.defineComponent({__name:"VStepperForm",props:t.mergeModels(t.mergeDefaults({pages:{},validationSchema:{},autoPage:{type:Boolean},autoPageDelay:{},color:{},density:{},direction:{},editable:{},errorIcon:{},fieldColumns:{},headerTooltips:{type:Boolean},hideDetails:{type:[Boolean,String]},jumpAhead:{type:Boolean},keepValuesOnUnmount:{type:Boolean},navButtonSize:{},navButtonVariant:{},summaryColumns:{},title:{},tooltipLocation:{},tooltipOffset:{},tooltipTransition:{},validateOn:{},validateOnMount:{type:Boolean},variant:{},width:{},transition:{}},Ro),{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["submit","update:model-value"],["update:modelValue"]),setup(e,{emit:n}){var he,ye;const a=t.useAttrs(),l=t.useId(),r=t.useSlots(),o=n,i=t.inject(jo),u=e;let s=t.reactive(en(a,i,u));const{direction:c,jumpAhead:m,title:p,width:V}=t.toRefs(u),g=t.reactive(u.pages),y=JSON.parse(JSON.stringify(g)),h=t.ref(Nn(s)),v=t.computed(()=>Ke(h.value,["autoPage","autoPageDelay","hideDetails","keepValuesOnUnmount","transition","validateOn","validateOnMount"]));t.watch(u,()=>{s=en(a,i,u),h.value=Nn(s)},{deep:!0}),t.provide("settings",h);const S=t.ref([]);Object.values(g).forEach(R=>{R.fields&&Object.values(R.fields).forEach(x=>{S.value.push(x)})}),t.onMounted(()=>{re(),tn({columns:u.fieldColumns,propName:'"fieldColumns" prop'}),tn({columns:u.summaryColumns,propName:'"summaryColumns" prop'})});const I=t.useModel(e,"modelValue"),w=t.ref(1),U=t.computed(()=>w.value-1),{mobile:M,sm:le}=Sa.useDisplay(),Y=t.computed(()=>s.transition),oe=t.useTemplateRef("stepperFormRef");t.provide("parentForm",oe);const Q=t.computed(()=>h.value.editable),X=t.computed(()=>w.value===1?"prev":w.value===Object.keys(u.pages).length?"next":void 0),T=t.computed(()=>{const R=X.value==="next"||h.value.disabled;return te.value||R}),D=t.computed(()=>{const{lastNonEditableIndex:R}=nn(B.value);return U.value===0||!Q.value||!!F.value||U.value-1===R}),ne=t.computed(()=>{const R=B.value[w.value-2];return Q.value!==!0&&(R?R.editable===!1:w.value===B.value.length&&!u.editable)}),z=t.computed(()=>w.value===Object.keys(B.value).length);function J(R){var fe,ve,Oe,je,Xe;const{firstNonEditableIndex:x,lastNonEditableIndex:pe}=nn(B.value),f=B.value,d=f.findIndex(Ae=>Ae===R),_=R.editable!==!1,C=R.editable===!1,E=((fe=f[U.value])==null?void 0:fe.editable)!==!1,N=f.length-1,P=d-1,H=((ve=f[P])==null?void 0:ve.editable)!==!1,Z=((Oe=f[P])==null?void 0:Oe.editable)===!1,de=d+1,$=((je=f[de])==null?void 0:je.editable)!==!1,me=((Xe=f[de])==null?void 0:Xe.editable)===!1;return U.value===d||!!Q.value&&!F.value&&(m.value?(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageIdx:Ve,pageNotEditable:Pe,previousPageEditable:$t,previousPageNotEditable:Le}=Ae,Ue=t.unref(Ae.currentPageIdx);if(Ve>Re)return Ue>Re;if(Ve===Re)return!1;if(Veke)return!(!Me||!Ft)||!!(Me&&Ht&&Ve>ke&&Ue>ke&&Ve>Ue)}return Ve>ke?!(Ue<=ke):VeVe&&Ve<=ke)&&(Ve=Ve&&$t)))})({currentPageEditable:E,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageIdx:d,pageNotEditable:C,previousPageEditable:H,previousPageNotEditable:Z}):(Ae=>{const{currentPageEditable:Me,firstNonEditableIndex:ke,lastNonEditableIndex:Re,lastPageIdx:kt,nextPageEditable:Ft,nextPageNotEditable:Ht,pageEditable:Ve,pageIdx:Pe,pageNotEditable:$t}=Ae,Le=t.unref(Ae.currentPageIdx);if(PeRe){if(Pe>ke&&Pe>Re&&Le===kt&&Ve)return!0;if(!Ve)return!1}if(Peke&&Peke&&Ft&&Le!==kt)return!0}return!1})({currentPageEditable:E,currentPageIdx:U,firstNonEditableIndex:x,lastNonEditableIndex:pe,lastPageIdx:N,nextPageEditable:$,nextPageNotEditable:me,pageEditable:_,pageIdx:d,pageNotEditable:C}))}const G=t.computed(()=>u.validationSchema),F=t.ref(!1),K=t.ref([]),te=t.computed(()=>K.value.includes(w.value-1)),q=or({initialValues:I.value,keepValuesOnUnmount:(he=h.value)==null?void 0:he.keepValuesOnUnmount,validationSchema:G.value,valueOnMount:(ye=h.value)==null?void 0:ye.validateOnMount});function W(R){if(K.value.includes(R)){const x=K.value.indexOf(R);x>-1&&K.value.splice(x,1)}F.value=!1}function ie(R,x,pe=()=>{}){const f=B.value[U.value];if(!f)return;const d=B.value.findIndex(C=>C===f),_=(f==null?void 0:f.fields)??[];if(Object.keys(R).some(C=>_.some(E=>E.name===C)))return F.value=!0,void b(d,f,x);W(d),pe&&!z.value&&x!=="submit"&&pe()}function b(R,x,pe="submit"){F.value=!0,x&&pe==="submit"&&(x.error=!0),K.value.includes(R)||K.value.push(R)}let L;Ia.watchDeep(q.values,()=>{I.value=q.values,re()});const ae=q.handleSubmit(R=>{o("submit",R)}),B=t.computed(()=>(Object.values(g).forEach((R,x)=>{const pe=R;if(pe.visible=!0,pe.when){const f=pe.when(q.values);g[x]&&(g[x].visible=f)}}),g.filter(R=>R.visible)));function re(){Object.values(g).forEach((R,x)=>{R.fields&&Object.values(R.fields).forEach((pe,f)=>{if(pe.when){const d=pe.when(q.values),_=B.value[x];_!=null&&_.fields&&(_!=null&&_.fields[f])&&(_.fields[f].type=d?y[x].fields[f].type:"hidden")}})})}const ee=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ut}`]:!0,[`${ut}--container`]:!0,[`${ut}--container-${x}`]:!0}})({direction:c.value})),ge=t.computed(()=>(R=>{const{direction:x}=R;return{"d-flex flex-column justify-center align-center":x==="horizontal",[`${ut}--container-stepper`]:!0,[`${ut}--container-stepper-${x}`]:!0}})({direction:c.value})),se=t.computed(()=>({width:"100%"})),O=t.computed(()=>({width:V.value}));function j(R){return R+1}return(R,x)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ee)),style:t.normalizeStyle(t.unref(se))},[t.createElementVNode("div",{style:t.normalizeStyle(t.unref(O))},[t.unref(p)?(t.openBlock(),t.createBlock(Te.VContainer,{key:0,fluid:""},{default:t.withCtx(()=>[t.createVNode(Te.VRow,null,{default:t.withCtx(()=>[t.createVNode(Te.VCol,null,{default:t.withCtx(()=>[t.createElementVNode("h2",null,t.toDisplayString(t.unref(p)),1)]),_:1})]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(Te.VContainer,{class:t.normalizeClass(t.unref(ge)),fluid:""},{default:t.withCtx(()=>[t.createVNode(Je.VStepper,t.mergeProps({modelValue:t.unref(w),"onUpdate:modelValue":x[4]||(x[4]=pe=>t.isRef(w)?w.value=pe:null),"data-cy":"vsf-stepper-form"},t.unref(v),{mobile:t.unref(le),width:"100%"}),{default:t.withCtx(({prev:pe,next:f})=>[t.createVNode(Je.VStepperHeader,{"data-cy":"vsf-stepper-header"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${j(_)}-step`},[t.createVNode(Je.VStepperItem,{class:t.normalizeClass(`vsf-activator-${t.unref(l)}-${_+1}`),color:t.unref(h).color,"edit-icon":d.isSummary?"$complete":t.unref(h).editIcon,editable:J(d),elevation:"0",error:t.unref(F)&&t.unref(K).includes(_),title:d.title,value:j(_),onClick:C=>function(E){const N=E===0?0:E-1,P=B.value[N];P&&P.fields&&P.fields.forEach(H=>{q.validateField(H.name,{},{name:H.name}).then(Z=>{if(Z.errors.length)return w.value=N+1,F.value=!0,void b(N,P,"submit");W(N)})})}(_)},{default:t.withCtx(()=>[!t.unref(M)&&t.unref(h).headerTooltips&&(d!=null&&d.fields)&&(d==null?void 0:d.fields.length)>0?(t.openBlock(),t.createBlock(Ra.VTooltip,{key:0,activator:d.title?"parent":`.vsf-activator-${t.unref(l)}-${_+1}`,location:t.unref(h).tooltipLocation,offset:d.title?t.unref(h).tooltipOffset:Number(t.unref(h).tooltipOffset)-28,transition:t.unref(h).tooltipTransition},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.fields,(C,E)=>(t.openBlock(),t.createElementBlock("div",{key:E},t.toDisplayString(C.label),1))),128))]),_:2},1032,["activator","location","offset","transition"])):t.createCommentVNode("",!0)]),_:2},1032,["class","color","edit-icon","editable","error","title","value","onClick"]),j(_)!==Object.keys(t.unref(B)).length?(t.openBlock(),t.createBlock(ja.VDivider,{key:j(_)})):t.createCommentVNode("",!0)],64))),128))]),_:1}),t.createElementVNode("form",{ref:"stepperFormRef",onSubmit:x[3]||(x[3]=(...d)=>t.unref(ae)&&t.unref(ae)(...d))},[t.createVNode(Je.VStepperWindow,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(B),(d,_)=>(t.openBlock(),t.createBlock(Je.VStepperWindowItem,{key:`${j(_)}-content`,"data-cy":d.isSummary?"vsf-page-summary":`vsf-page-${j(_)}`,"reverse-transition":t.unref(Y),transition:t.unref(Y),value:j(_)},{default:t.withCtx(()=>[t.createVNode(Te.VContainer,null,{default:t.withCtx(()=>{var C,E;return[d.isSummary?(t.openBlock(),t.createBlock(Or,{key:1,modelValue:I.value,"onUpdate:modelValue":x[1]||(x[1]=N=>I.value=N),page:d,pages:t.unref(B),settings:t.unref(h),summaryColumns:(C=t.unref(h))==null?void 0:C.summaryColumns,onGoToQuestion:x[2]||(x[2]=N=>w.value=N)},null,8,["modelValue","page","pages","settings","summaryColumns"])):(t.openBlock(),t.createBlock(Er,{key:`${j(_)}-page`,modelValue:I.value,"onUpdate:modelValue":x[0]||(x[0]=N=>I.value=N),fieldColumns:(E=t.unref(h))==null?void 0:E.fieldColumns,index:j(_),page:d,pageIndex:j(_),settings:t.unref(h),onValidate:N=>function(P,H){var $;const Z=q.errorBag,de=P.autoPage||h.value.autoPage?H:null;P!=null&&P.autoPage||($=h.value)!=null&&$.autoPage?oe.value&&q.validate().then(me=>{var ve;if(me.valid)return clearTimeout(L),void(L=setTimeout(()=>{ie(Z,"field",de)},(P==null?void 0:P.autoPageDelay)??((ve=h.value)==null?void 0:ve.autoPageDelay)));const fe=B.value[U.value];b(B.value.findIndex(Oe=>Oe===fe),fe,"validating")}).catch(me=>{console.error("Error",me)}):q.validateField(P.name,{},{name:P.name}).then(()=>{ie(q.errorBag.value,"field",de)})}(N,f)},t.createSlots({_:2},[t.renderList(t.unref(r),(N,P)=>({name:P,fn:t.withCtx(H=>[t.renderSlot(R.$slots,P,t.mergeProps({ref_for:!0},{...H}),void 0,!0)])}))]),1032,["modelValue","fieldColumns","index","page","pageIndex","settings","onValidate"]))]}),_:2},1024)]),_:2},1032,["data-cy","reverse-transition","transition","value"]))),128))]),_:2},1024),t.unref(h).hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Je.VStepperActions,{key:0},{next:t.withCtx(()=>[t.unref(z)?(t.openBlock(),t.createBlock(xt.VBtn,{key:1,color:t.unref(h).color,"data-cy":"vsf-submit-button",disabled:t.unref(te),size:R.navButtonSize,type:"submit",variant:R.navButtonVariant,onClick:t.unref(ae)},{default:t.withCtx(()=>x[5]||(x[5]=[t.createTextVNode("Submit")])),_:1},8,["color","disabled","size","variant","onClick"])):(t.openBlock(),t.createBlock(xt.VBtn,{key:0,color:t.unref(h).color,"data-cy":"vsf-next-button",disabled:t.unref(T),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_="submit",C=()=>{}){oe.value&&q.validate().then(E=>{ie(E.errors,_,C)}).catch(E=>{console.error("Error",E)})}("next",f)},null,8,["color","disabled","size","variant","onClick"]))]),prev:t.withCtx(()=>[t.createVNode(xt.VBtn,{"data-cy":"vsf-previous-button",disabled:t.unref(D),size:R.navButtonSize,variant:R.navButtonVariant,onClick:d=>function(_){ne.value||_()}(pe)},null,8,["disabled","size","variant","onClick"])]),_:2},1024))],544)]),_:3},16,["modelValue","mobile"])]),_:3},8,["class"])],4)],6))}}),_n=Ca(kr,[["__scopeId","data-v-15220e2c"]]),Cr=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"}));exports.FieldLabel=$e,exports.VStepperForm=_n,exports.createVStepperForm=function(e={}){return{install:n=>{const a=en(e,Ro);n.provide(jo,a),n.config.idPrefix="vsf",n.component("VStepperForm",t.defineAsyncComponent(()=>Promise.resolve().then(()=>Cr))),n.component("FieldLabel",t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./FieldLabel-_ATH8rEz.js"))))}}},exports.default=_n; +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-15220e2c] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); diff --git a/dist/vuetify-stepper-form.es.js b/dist/vuetify-stepper-form.es.js index f6f4fe1..18f7709 100644 --- a/dist/vuetify-stepper-form.es.js +++ b/dist/vuetify-stepper-form.es.js @@ -1,25 +1,25 @@ -import { defineComponent as Ye, openBlock as M, createElementBlock as me, createElementVNode as Ue, createTextVNode as rn, createCommentVNode as Te, computed as T, toValue as N, unref as s, onMounted as Wn, getCurrentInstance as ft, provide as Kt, isRef as nt, watch as qe, onBeforeUnmount as pl, ref as _e, reactive as Vt, nextTick as Ke, warn as fl, readonly as vl, watchEffect as ml, inject as at, onUnmounted as yt, toRef as xt, resolveDynamicComponent as go, h as hl, shallowRef as An, mergeModels as Pe, useModel as ot, createBlock as ve, mergeProps as tt, withCtx as Z, createVNode as re, useCssVars as gl, Fragment as xe, normalizeClass as Me, normalizeStyle as ut, renderList as Ge, withModifiers as ua, withKeys as _l, createSlots as Gn, withDirectives as _o, vModelText as yo, useSlots as Yn, toRaw as yl, renderSlot as Zn, markRaw as rt, toDisplayString as st, mergeDefaults as bl, useAttrs as Ol, useId as El, toRefs as Vl, useTemplateRef as kl, defineAsyncComponent as da } from "vue"; -import { watchDeep as Il } from "@vueuse/core"; -import { useDisplay as Sl } from "vuetify"; -import Tl from "@wdns/vuetify-color-field"; -import { VMessages as bo, VTextField as wl, VTextarea as Cl, VSelect as Al, VFileInput as Pl, VCombobox as xl, VAutocomplete as jl } from "vuetify/components"; -import { VDateInput as Ul } from "vuetify/labs/VDateInput"; +import { defineComponent as Ge, openBlock as M, createElementBlock as me, createElementVNode as Ue, createTextVNode as rn, createCommentVNode as Te, computed as S, toValue as N, unref as s, onMounted as Gn, getCurrentInstance as ft, provide as Kt, isRef as nt, watch as et, onBeforeUnmount as fl, ref as _e, reactive as Vt, nextTick as Ke, warn as vl, readonly as ml, watchEffect as hl, inject as at, onUnmounted as yt, toRef as xt, resolveDynamicComponent as go, h as gl, shallowRef as An, mergeModels as Pe, useModel as ot, createBlock as ve, mergeProps as tt, withCtx as X, createVNode as re, useCssVars as _l, Fragment as xe, normalizeClass as Me, normalizeStyle as ut, renderList as We, withModifiers as da, withKeys as yl, createSlots as Yn, withDirectives as _o, vModelText as yo, useSlots as Zn, toRaw as bl, renderSlot as Xn, markRaw as rt, toDisplayString as st, mergeDefaults as Ol, useAttrs as El, useId as Vl, toRefs as kl, useTemplateRef as Il, defineAsyncComponent as ca } from "vue"; +import { watchDeep as Sl } from "@vueuse/core"; +import { useDisplay as Tl } from "vuetify"; +import wl from "@wdns/vuetify-color-field"; +import { VMessages as bo, VTextField as Cl, VTextarea as Al, VSelect as Pl, VFileInput as xl, VCombobox as jl, VAutocomplete as Ul } from "vuetify/components"; +import { VDateInput as Dl } from "vuetify/labs/VDateInput"; import { VBtn as an } from "vuetify/lib/components/VBtn/index.mjs"; -import { VItemGroup as Dl, VItem as Rl } from "vuetify/lib/components/VItemGroup/index.mjs"; -import { VLabel as Xn } from "vuetify/lib/components/VLabel/index.mjs"; -import { VCheckbox as ca } from "vuetify/lib/components/VCheckbox/index.mjs"; -import { VRadio as Nl } from "vuetify/lib/components/VRadio/index.mjs"; -import { VRadioGroup as Ml } from "vuetify/lib/components/VRadioGroup/index.mjs"; -import { VSwitch as Ll } from "vuetify/lib/components/VSwitch/index.mjs"; +import { VItemGroup as Rl, VItem as Nl } from "vuetify/lib/components/VItemGroup/index.mjs"; +import { VLabel as Jn } from "vuetify/lib/components/VLabel/index.mjs"; +import { VCheckbox as pa } from "vuetify/lib/components/VCheckbox/index.mjs"; +import { VRadio as Ml } from "vuetify/lib/components/VRadio/index.mjs"; +import { VRadioGroup as Ll } from "vuetify/lib/components/VRadioGroup/index.mjs"; +import { VSwitch as Bl } from "vuetify/lib/components/VSwitch/index.mjs"; import { VRow as qt, VCol as kt, VContainer as bn } from "vuetify/lib/components/VGrid/index.mjs"; -import { VCard as Bl } from "vuetify/lib/components/VCard/index.mjs"; -import { VList as Hl, VListItem as pa, VListItemTitle as fa, VListItemSubtitle as va } from "vuetify/lib/components/VList/index.mjs"; -import { VDivider as $l } from "vuetify/lib/components/VDivider/index.mjs"; -import { VStepper as Fl, VStepperHeader as zl, VStepperItem as Kl, VStepperWindow as ql, VStepperWindowItem as Wl, VStepperActions as Gl } from "vuetify/lib/components/VStepper/index.mjs"; -import { VTooltip as Yl } from "vuetify/lib/components/VTooltip/index.mjs"; +import { VCard as Hl } from "vuetify/lib/components/VCard/index.mjs"; +import { VList as $l, VListItem as fa, VListItemTitle as va, VListItemSubtitle as ma } from "vuetify/lib/components/VList/index.mjs"; +import { VDivider as Fl } from "vuetify/lib/components/VDivider/index.mjs"; +import { VStepper as zl, VStepperHeader as Kl, VStepperItem as ql, VStepperWindow as Wl, VStepperWindowItem as Gl, VStepperActions as Yl } from "vuetify/lib/components/VStepper/index.mjs"; +import { VTooltip as Zl } from "vuetify/lib/components/VTooltip/index.mjs"; /** * @name @wdns/vuetify-stepper-form - * @version 1.0.0 + * @version 1.0.1 * @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps. * @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! (https://webdevnerdstuff.com) * @copyright Copyright 2024, WebDevNerdStuff @@ -27,11 +27,29 @@ import { VTooltip as Yl } from "vuetify/lib/components/VTooltip/index.mjs"; * @repository https://github.com/webdevnerdstuff/vuetify-stepper-form * @license MIT License */ -const Zl = { "data-cy": "vsf-field-label" }, Xl = ["innerHTML"], Jl = { key: 0, class: "text-error ms-1" }, gt = Ye({ __name: "FieldLabel", props: { label: {}, required: { type: Boolean, default: !1 } }, setup: (e) => (t, a) => (M(), me("div", Zl, [Ue("span", { innerHTML: t.label }, null, 8, Xl), a[0] || (a[0] = rn()), t.required ? (M(), me("span", Jl, "*")) : Te("", !0)])) }), Oo = { autoPageDelay: 250, direction: "horizontal", disabled: !1, editable: !0, jumpAhead: !1, keepValuesOnUnmount: !1, navButtonSize: "large", tooltipLocation: "bottom", tooltipOffset: 10, tooltipTransition: "fade-transition", transition: "fade-transition", width: "100%" }; -var jt, ma, On, Jt, Ql = Object.create, ha = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Jn = Object.getOwnPropertyNames, ti = Object.getPrototypeOf, ni = Object.prototype.hasOwnProperty, Bt = (jt = { "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() { +const Xl = { "data-cy": "vsf-field-label" }, Jl = ["innerHTML"], Ql = { key: 0, class: "text-error ms-1" }, gt = Ge({ __name: "FieldLabel", props: { label: {}, required: { type: Boolean, default: !1 } }, setup: (e) => (t, a) => (M(), me("div", Xl, [Ue("span", { innerHTML: t.label }, null, 8, Jl), a[0] || (a[0] = rn()), t.required ? (M(), me("span", Ql, "*")) : Te("", !0)])) }), Pn = (e, t, a = {}) => { + const o = (l, n) => { + const i = { ...l }; + for (const r in n) n[r] === void 0 || typeof n[r] != "object" || Array.isArray(n[r]) ? n[r] !== void 0 && (i[r] = n[r]) : i[r] = o(i[r] ?? {}, n[r]); + return i; + }; + return [e, t, a].filter(Boolean).reduce(o, {}); +}, ha = (e) => ({ altLabels: e.altLabels, autoPage: e.autoPage, autoPageDelay: e.autoPageDelay, bgColor: e.bgColor, border: e.border, color: e.color, density: e.density, disabled: e.disabled, editIcon: e.editIcon, editable: e.editable, elevation: e.elevation, errorIcon: e.errorIcon, fieldColumns: e.fieldColumns, flat: e.flat, headerTooltips: e.headerTooltips, height: e.height, hideActions: e.hideActions, hideDetails: e.hideDetails, keepValuesOnUnmount: e.keepValuesOnUnmount, maxHeight: e.maxHeight, maxWidth: e.maxWidth, minHeight: e.minHeight, minWidth: e.minWidth, nextText: e.nextText, prevText: e.prevText, rounded: e.rounded, selectedClass: e.selectedClass, summaryColumns: e.summaryColumns, tag: e.tag, theme: e.theme, tile: e.tile, tooltipLocation: e.tooltipLocation, tooltipOffset: e.tooltipOffset, tooltipTransition: e.tooltipTransition, transition: e.transition, validateOn: e.validateOn, validateOnMount: e.validateOnMount, variant: e.variant }), xn = (e) => { + const { columns: t, propName: a } = e; + let o = !1; + if (t && (Object.values(t).forEach((l) => { + (l < 1 || l > 12) && (o = !0); + }), o)) throw new Error(`The ${a} values must be between 1 and 12`); +}, jn = (e) => { + let t = -1, a = -1; + return e.forEach((o, l) => { + o.editable === !1 && (t === -1 && (t = l), a = l); + }), { firstNonEditableIndex: t, lastNonEditableIndex: a }; +}, jt = "v-stepper-form", Oo = Symbol(), Eo = { autoPageDelay: 250, direction: "horizontal", disabled: !1, editable: !0, jumpAhead: !1, keepValuesOnUnmount: !1, navButtonSize: "large", tooltipLocation: "bottom", tooltipOffset: 10, tooltipTransition: "fade-transition", transition: "fade-transition", width: "100%" }; +var Ut, ga, On, Jt, ei = Object.create, _a = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, Qn = Object.getOwnPropertyNames, ni = Object.getPrototypeOf, ai = Object.prototype.hasOwnProperty, Bt = (Ut = { "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() { } }, function() { - return jt && (ma = (0, jt[Jn(jt)[0]])(jt = 0)), ma; -}), ai = (On = { "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) { + return Ut && (ga = (0, Ut[Qn(Ut)[0]])(Ut = 0)), ga; +}), oi = (On = { "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) { function a(o) { return o instanceof Buffer ? Buffer.from(o) : new o.constructor(o.buffer.slice(), o.byteOffset, o.length); } @@ -42,18 +60,18 @@ var jt, ma, On, Jt, Ql = Object.create, ha = Object.defineProperty, ei = Object. let f = null; return r.proto ? y : g; function O(h, v) { - const w = Object.keys(h), S = new Array(w.length); - for (let A = 0; A < w.length; A++) { - const L = w[A], $ = h[L]; - if (typeof $ != "object" || $ === null) S[L] = $; - else if ($.constructor !== Object && (f = m.get($.constructor))) S[L] = f($, v); - else if (ArrayBuffer.isView($)) S[L] = a($); + const w = Object.keys(h), T = new Array(w.length); + for (let C = 0; C < w.length; C++) { + const L = w[C], $ = h[L]; + if (typeof $ != "object" || $ === null) T[L] = $; + else if ($.constructor !== Object && (f = m.get($.constructor))) T[L] = f($, v); + else if (ArrayBuffer.isView($)) T[L] = a($); else { const de = u.indexOf($); - S[L] = de !== -1 ? d[de] : v($); + T[L] = de !== -1 ? d[de] : v($); } } - return S; + return T; } function g(h) { if (typeof h != "object" || h === null) return h; @@ -63,13 +81,13 @@ var jt, ma, On, Jt, Ql = Object.create, ha = Object.defineProperty, ei = Object. u.push(h), d.push(v); for (const w in h) { if (Object.hasOwnProperty.call(h, w) === !1) continue; - const S = h[w]; - if (typeof S != "object" || S === null) v[w] = S; - else if (S.constructor !== Object && (f = m.get(S.constructor))) v[w] = f(S, g); - else if (ArrayBuffer.isView(S)) v[w] = a(S); + const T = h[w]; + if (typeof T != "object" || T === null) v[w] = T; + else if (T.constructor !== Object && (f = m.get(T.constructor))) v[w] = f(T, g); + else if (ArrayBuffer.isView(T)) v[w] = a(T); else { - const A = u.indexOf(S); - v[w] = A !== -1 ? d[A] : g(S); + const C = u.indexOf(T); + v[w] = C !== -1 ? d[C] : g(T); } } return u.pop(), d.pop(), v; @@ -81,13 +99,13 @@ var jt, ma, On, Jt, Ql = Object.create, ha = Object.defineProperty, ei = Object. const v = {}; u.push(h), d.push(v); for (const w in h) { - const S = h[w]; - if (typeof S != "object" || S === null) v[w] = S; - else if (S.constructor !== Object && (f = m.get(S.constructor))) v[w] = f(S, y); - else if (ArrayBuffer.isView(S)) v[w] = a(S); + const T = h[w]; + if (typeof T != "object" || T === null) v[w] = T; + else if (T.constructor !== Object && (f = m.get(T.constructor))) v[w] = f(T, y); + else if (ArrayBuffer.isView(T)) v[w] = a(T); else { - const A = u.indexOf(S); - v[w] = A !== -1 ? d[A] : y(S); + const C = u.indexOf(T); + v[w] = C !== -1 ? d[C] : y(T); } } return u.pop(), d.pop(), v; @@ -128,22 +146,22 @@ var jt, ma, On, Jt, Ql = Object.create, ha = Object.defineProperty, ei = Object. } }; } }, function() { - return Jt || (0, On[Jn(On)[0]])((Jt = { exports: {} }).exports, Jt), Jt.exports; + return Jt || (0, On[Qn(On)[0]])((Jt = { exports: {} }).exports, Jt), Jt.exports; }); Bt(), Bt(), Bt(); -var ga, Eo = typeof navigator < "u", j = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {}; -j.chrome !== void 0 && j.chrome.devtools, Eo && (j.self, j.top), typeof navigator < "u" && ((ga = navigator.userAgent) == null || ga.toLowerCase().includes("electron")), Bt(); -var oi = ((e, t, a) => (a = e != null ? Ql(ti(e)) : {}, ((o, l, n, i) => { - if (l && typeof l == "object" || typeof l == "function") for (let r of Jn(l)) ni.call(o, r) || r === n || ha(o, r, { get: () => l[r], enumerable: !(i = ei(l, r)) || i.enumerable }); +var ya, Vo = typeof navigator < "u", j = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {}; +j.chrome !== void 0 && j.chrome.devtools, Vo && (j.self, j.top), typeof navigator < "u" && ((ya = navigator.userAgent) == null || ya.toLowerCase().includes("electron")), Bt(); +var li = ((e, t, a) => (a = e != null ? ei(ni(e)) : {}, ((o, l, n, i) => { + if (l && typeof l == "object" || typeof l == "function") for (let r of Qn(l)) ai.call(o, r) || r === n || _a(o, r, { get: () => l[r], enumerable: !(i = ti(l, r)) || i.enumerable }); return o; -})(ha(a, "default", { value: e, enumerable: !0 }), e)))(ai()), li = /(?:^|[-_/])(\w)/g; -function ii(e, t) { +})(_a(a, "default", { value: e, enumerable: !0 }), e)))(oi()), ii = /(?:^|[-_/])(\w)/g; +function ri(e, t) { return t ? t.toUpperCase() : ""; } -var _a = (0, oi.default)({ circles: !0 }); -const ri = { trailing: !0 }; +var ba = (0, li.default)({ circles: !0 }); +const si = { trailing: !0 }; function St(e, t = 25, a = {}) { - if (a = { ...ri, ...a }, !Number.isFinite(t)) throw new TypeError("Expected `wait` to be a finite number"); + if (a = { ...si, ...a }, !Number.isFinite(t)) throw new TypeError("Expected `wait` to be a finite number"); let o, l, n, i, r = []; const u = (d, m) => (n = async function(f, O, g) { return await f.apply(O, g); @@ -165,26 +183,26 @@ function St(e, t = 25, a = {}) { }); }; } -function Pn(e, t = {}, a) { +function Un(e, t = {}, a) { for (const o in e) { const l = e[o], n = a ? `${a}:${o}` : o; - typeof l == "object" && l !== null ? Pn(l, t, n) : typeof l == "function" && (t[n] = l); + typeof l == "object" && l !== null ? Un(l, t, n) : typeof l == "function" && (t[n] = l); } return t; } -const si = { run: (e) => e() }, Vo = console.createTask !== void 0 ? console.createTask : () => si; -function ui(e, t) { - const a = t.shift(), o = Vo(a); +const ui = { run: (e) => e() }, ko = console.createTask !== void 0 ? console.createTask : () => ui; +function di(e, t) { + const a = t.shift(), o = ko(a); return e.reduce((l, n) => l.then(() => o.run(() => n(...t))), Promise.resolve()); } -function di(e, t) { - const a = t.shift(), o = Vo(a); +function ci(e, t) { + const a = t.shift(), o = ko(a); return Promise.all(e.map((l) => o.run(() => l(...t)))); } function En(e, t) { for (const a of [...e]) a(t); } -class ci { +class pi { constructor() { this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this); } @@ -227,23 +245,23 @@ class ci { for (const a in t) this.deprecateHook(a, t[a]); } addHooks(t) { - const a = Pn(t), o = Object.keys(a).map((l) => this.hook(l, a[l])); + const a = Un(t), o = Object.keys(a).map((l) => this.hook(l, a[l])); return () => { for (const l of o.splice(0, o.length)) l(); }; } removeHooks(t) { - const a = Pn(t); + const a = Un(t); for (const o in a) this.removeHook(o, a[o]); } removeAllHooks() { for (const t in this._hooks) delete this._hooks[t]; } callHook(t, ...a) { - return a.unshift(t), this.callHookWith(ui, t, ...a); + return a.unshift(t), this.callHookWith(di, t, ...a); } callHookParallel(t, ...a) { - return a.unshift(t), this.callHookWith(di, t, ...a); + return a.unshift(t), this.callHookWith(ci, t, ...a); } callHookWith(t, a, ...o) { const l = this._before || this._after ? { name: a, args: o, context: {} } : void 0; @@ -270,32 +288,32 @@ class ci { }; } } -function ko() { - return new ci(); +function Io() { + return new pi(); } -var pi = Object.create, ya = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, Qn = Object.getOwnPropertyNames, vi = Object.getPrototypeOf, mi = Object.prototype.hasOwnProperty, Io = (e, t) => function() { - return t || (0, e[Qn(e)[0]])((t = { exports: {} }).exports, t), t.exports; +var fi = Object.create, Oa = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, ea = Object.getOwnPropertyNames, mi = Object.getPrototypeOf, hi = Object.prototype.hasOwnProperty, So = (e, t) => function() { + return t || (0, e[ea(e)[0]])((t = { exports: {} }).exports, t), t.exports; }, k = /* @__PURE__ */ ((e, t) => function() { - return e && (t = (0, e[Qn(e)[0]])(e = 0)), t; + return e && (t = (0, e[ea(e)[0]])(e = 0)), t; })({ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.43.0_@types+node@22.9.0__@swc+core@1.5.29_jiti@2.0.0_po_lnt5yfvawfblpk67opvcdwbq7u/node_modules/tsup/assets/esm_shims.js"() { -} }), hi = Io({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) { +} }), gi = So({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) { k(), function(a) { var o = { À: "A", Á: "A", Â: "A", Ã: "A", Ä: "Ae", Å: "A", Æ: "AE", Ç: "C", È: "E", É: "E", Ê: "E", Ë: "E", Ì: "I", Í: "I", Î: "I", Ï: "I", Ð: "D", Ñ: "N", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "Oe", Ő: "O", Ø: "O", Ù: "U", Ú: "U", Û: "U", Ü: "Ue", Ű: "U", Ý: "Y", Þ: "TH", ß: "ss", à: "a", á: "a", â: "a", ã: "a", ä: "ae", å: "a", æ: "ae", ç: "c", è: "e", é: "e", ê: "e", ë: "e", ì: "i", í: "i", î: "i", ï: "i", ð: "d", ñ: "n", ò: "o", ó: "o", ô: "o", õ: "o", ö: "oe", ő: "o", ø: "o", ù: "u", ú: "u", û: "u", ü: "ue", ű: "u", ý: "y", þ: "th", ÿ: "y", "ẞ": "SS", ا: "a", أ: "a", إ: "i", آ: "aa", ؤ: "u", ئ: "e", ء: "a", ب: "b", ت: "t", ث: "th", ج: "j", ح: "h", خ: "kh", د: "d", ذ: "th", ر: "r", ز: "z", س: "s", ش: "sh", ص: "s", ض: "dh", ط: "t", ظ: "z", ع: "a", غ: "gh", ف: "f", ق: "q", ك: "k", ل: "l", م: "m", ن: "n", ه: "h", و: "w", ي: "y", ى: "a", ة: "h", ﻻ: "la", ﻷ: "laa", ﻹ: "lai", ﻵ: "laa", گ: "g", چ: "ch", پ: "p", ژ: "zh", ک: "k", ی: "y", "َ": "a", "ً": "an", "ِ": "e", "ٍ": "en", "ُ": "u", "ٌ": "on", "ْ": "", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9", က: "k", ခ: "kh", ဂ: "g", ဃ: "ga", င: "ng", စ: "s", ဆ: "sa", ဇ: "z", "စျ": "za", ည: "ny", ဋ: "t", ဌ: "ta", ဍ: "d", ဎ: "da", ဏ: "na", တ: "t", ထ: "ta", ဒ: "d", ဓ: "da", န: "n", ပ: "p", ဖ: "pa", ဗ: "b", ဘ: "ba", မ: "m", ယ: "y", ရ: "ya", လ: "l", ဝ: "w", သ: "th", ဟ: "h", ဠ: "la", အ: "a", "ြ": "y", "ျ": "ya", "ွ": "w", "ြွ": "yw", "ျွ": "ywa", "ှ": "h", ဧ: "e", "၏": "-e", ဣ: "i", ဤ: "-i", ဉ: "u", ဦ: "-u", ဩ: "aw", "သြော": "aw", ဪ: "aw", "၀": "0", "၁": "1", "၂": "2", "၃": "3", "၄": "4", "၅": "5", "၆": "6", "၇": "7", "၈": "8", "၉": "9", "္": "", "့": "", "း": "", č: "c", ď: "d", ě: "e", ň: "n", ř: "r", š: "s", ť: "t", ů: "u", ž: "z", Č: "C", Ď: "D", Ě: "E", Ň: "N", Ř: "R", Š: "S", Ť: "T", Ů: "U", Ž: "Z", ހ: "h", ށ: "sh", ނ: "n", ރ: "r", ބ: "b", ޅ: "lh", ކ: "k", އ: "a", ވ: "v", މ: "m", ފ: "f", ދ: "dh", ތ: "th", ލ: "l", ގ: "g", ޏ: "gn", ސ: "s", ޑ: "d", ޒ: "z", ޓ: "t", ޔ: "y", ޕ: "p", ޖ: "j", ޗ: "ch", ޘ: "tt", ޙ: "hh", ޚ: "kh", ޛ: "th", ޜ: "z", ޝ: "sh", ޞ: "s", ޟ: "d", ޠ: "t", ޡ: "z", ޢ: "a", ޣ: "gh", ޤ: "q", ޥ: "w", "ަ": "a", "ާ": "aa", "ި": "i", "ީ": "ee", "ު": "u", "ޫ": "oo", "ެ": "e", "ޭ": "ey", "ޮ": "o", "ޯ": "oa", "ް": "", ა: "a", ბ: "b", გ: "g", დ: "d", ე: "e", ვ: "v", ზ: "z", თ: "t", ი: "i", კ: "k", ლ: "l", მ: "m", ნ: "n", ო: "o", პ: "p", ჟ: "zh", რ: "r", ს: "s", ტ: "t", უ: "u", ფ: "p", ქ: "k", ღ: "gh", ყ: "q", შ: "sh", ჩ: "ch", ც: "ts", ძ: "dz", წ: "ts", ჭ: "ch", ხ: "kh", ჯ: "j", ჰ: "h", α: "a", β: "v", γ: "g", δ: "d", ε: "e", ζ: "z", η: "i", θ: "th", ι: "i", κ: "k", λ: "l", μ: "m", ν: "n", ξ: "ks", ο: "o", π: "p", ρ: "r", σ: "s", τ: "t", υ: "y", φ: "f", χ: "x", ψ: "ps", ω: "o", ά: "a", έ: "e", ί: "i", ό: "o", ύ: "y", ή: "i", ώ: "o", ς: "s", ϊ: "i", ΰ: "y", ϋ: "y", ΐ: "i", Α: "A", Β: "B", Γ: "G", Δ: "D", Ε: "E", Ζ: "Z", Η: "I", Θ: "TH", Ι: "I", Κ: "K", Λ: "L", Μ: "M", Ν: "N", Ξ: "KS", Ο: "O", Π: "P", Ρ: "R", Σ: "S", Τ: "T", Υ: "Y", Φ: "F", Χ: "X", Ψ: "PS", Ω: "O", Ά: "A", Έ: "E", Ί: "I", Ό: "O", Ύ: "Y", Ή: "I", Ώ: "O", Ϊ: "I", Ϋ: "Y", ā: "a", ē: "e", ģ: "g", ī: "i", ķ: "k", ļ: "l", ņ: "n", ū: "u", Ā: "A", Ē: "E", Ģ: "G", Ī: "I", Ķ: "k", Ļ: "L", Ņ: "N", Ū: "U", Ќ: "Kj", ќ: "kj", Љ: "Lj", љ: "lj", Њ: "Nj", њ: "nj", Тс: "Ts", тс: "ts", ą: "a", ć: "c", ę: "e", ł: "l", ń: "n", ś: "s", ź: "z", ż: "z", Ą: "A", Ć: "C", Ę: "E", Ł: "L", Ń: "N", Ś: "S", Ź: "Z", Ż: "Z", Є: "Ye", І: "I", Ї: "Yi", Ґ: "G", є: "ye", і: "i", ї: "yi", ґ: "g", ă: "a", Ă: "A", ș: "s", Ș: "S", ț: "t", Ț: "T", ţ: "t", Ţ: "T", а: "a", б: "b", в: "v", г: "g", д: "d", е: "e", ё: "yo", ж: "zh", з: "z", и: "i", й: "i", к: "k", л: "l", м: "m", н: "n", о: "o", п: "p", р: "r", с: "s", т: "t", у: "u", ф: "f", х: "kh", ц: "c", ч: "ch", ш: "sh", щ: "sh", ъ: "", ы: "y", ь: "", э: "e", ю: "yu", я: "ya", А: "A", Б: "B", В: "V", Г: "G", Д: "D", Е: "E", Ё: "Yo", Ж: "Zh", З: "Z", И: "I", Й: "I", К: "K", Л: "L", М: "M", Н: "N", О: "O", П: "P", Р: "R", С: "S", Т: "T", У: "U", Ф: "F", Х: "Kh", Ц: "C", Ч: "Ch", Ш: "Sh", Щ: "Sh", Ъ: "", Ы: "Y", Ь: "", Э: "E", Ю: "Yu", Я: "Ya", ђ: "dj", ј: "j", ћ: "c", џ: "dz", Ђ: "Dj", Ј: "j", Ћ: "C", Џ: "Dz", ľ: "l", ĺ: "l", ŕ: "r", Ľ: "L", Ĺ: "L", Ŕ: "R", ş: "s", Ş: "S", ı: "i", İ: "I", ğ: "g", Ğ: "G", ả: "a", Ả: "A", ẳ: "a", Ẳ: "A", ẩ: "a", Ẩ: "A", đ: "d", Đ: "D", ẹ: "e", Ẹ: "E", ẽ: "e", Ẽ: "E", ẻ: "e", Ẻ: "E", ế: "e", Ế: "E", ề: "e", Ề: "E", ệ: "e", Ệ: "E", ễ: "e", Ễ: "E", ể: "e", Ể: "E", ỏ: "o", ọ: "o", Ọ: "o", ố: "o", Ố: "O", ồ: "o", Ồ: "O", ổ: "o", Ổ: "O", ộ: "o", Ộ: "O", ỗ: "o", Ỗ: "O", ơ: "o", Ơ: "O", ớ: "o", Ớ: "O", ờ: "o", Ờ: "O", ợ: "o", Ợ: "O", ỡ: "o", Ỡ: "O", Ở: "o", ở: "o", ị: "i", Ị: "I", ĩ: "i", Ĩ: "I", ỉ: "i", Ỉ: "i", ủ: "u", Ủ: "U", ụ: "u", Ụ: "U", ũ: "u", Ũ: "U", ư: "u", Ư: "U", ứ: "u", Ứ: "U", ừ: "u", Ừ: "U", ự: "u", Ự: "U", ữ: "u", Ữ: "U", ử: "u", Ử: "ư", ỷ: "y", Ỷ: "y", ỳ: "y", Ỳ: "Y", ỵ: "y", Ỵ: "Y", ỹ: "y", Ỹ: "Y", ạ: "a", Ạ: "A", ấ: "a", Ấ: "A", ầ: "a", Ầ: "A", ậ: "a", Ậ: "A", ẫ: "a", Ẫ: "A", ắ: "a", Ắ: "A", ằ: "a", Ằ: "A", ặ: "a", Ặ: "A", ẵ: "a", Ẵ: "A", "⓪": "0", "①": "1", "②": "2", "③": "3", "④": "4", "⑤": "5", "⑥": "6", "⑦": "7", "⑧": "8", "⑨": "9", "⑩": "10", "⑪": "11", "⑫": "12", "⑬": "13", "⑭": "14", "⑮": "15", "⑯": "16", "⑰": "17", "⑱": "18", "⑲": "18", "⑳": "18", "⓵": "1", "⓶": "2", "⓷": "3", "⓸": "4", "⓹": "5", "⓺": "6", "⓻": "7", "⓼": "8", "⓽": "9", "⓾": "10", "⓿": "0", "⓫": "11", "⓬": "12", "⓭": "13", "⓮": "14", "⓯": "15", "⓰": "16", "⓱": "17", "⓲": "18", "⓳": "19", "⓴": "20", "Ⓐ": "A", "Ⓑ": "B", "Ⓒ": "C", "Ⓓ": "D", "Ⓔ": "E", "Ⓕ": "F", "Ⓖ": "G", "Ⓗ": "H", "Ⓘ": "I", "Ⓙ": "J", "Ⓚ": "K", "Ⓛ": "L", "Ⓜ": "M", "Ⓝ": "N", "Ⓞ": "O", "Ⓟ": "P", "Ⓠ": "Q", "Ⓡ": "R", "Ⓢ": "S", "Ⓣ": "T", "Ⓤ": "U", "Ⓥ": "V", "Ⓦ": "W", "Ⓧ": "X", "Ⓨ": "Y", "Ⓩ": "Z", "ⓐ": "a", "ⓑ": "b", "ⓒ": "c", "ⓓ": "d", "ⓔ": "e", "ⓕ": "f", "ⓖ": "g", "ⓗ": "h", "ⓘ": "i", "ⓙ": "j", "ⓚ": "k", "ⓛ": "l", "ⓜ": "m", "ⓝ": "n", "ⓞ": "o", "ⓟ": "p", "ⓠ": "q", "ⓡ": "r", "ⓢ": "s", "ⓣ": "t", "ⓤ": "u", "ⓦ": "v", "ⓥ": "w", "ⓧ": "x", "ⓨ": "y", "ⓩ": "z", "“": '"', "”": '"', "‘": "'", "’": "'", "∂": "d", ƒ: "f", "™": "(TM)", "©": "(C)", œ: "oe", Œ: "OE", "®": "(R)", "†": "+", "℠": "(SM)", "…": "...", "˚": "o", º: "o", ª: "a", "•": "*", "၊": ",", "။": ".", $: "USD", "€": "EUR", "₢": "BRN", "₣": "FRF", "£": "GBP", "₤": "ITL", "₦": "NGN", "₧": "ESP", "₩": "KRW", "₪": "ILS", "₫": "VND", "₭": "LAK", "₮": "MNT", "₯": "GRD", "₱": "ARS", "₲": "PYG", "₳": "ARA", "₴": "UAH", "₵": "GHS", "¢": "cent", "¥": "CNY", 元: "CNY", 円: "YEN", "﷼": "IRR", "₠": "EWE", "฿": "THB", "₨": "INR", "₹": "INR", "₰": "PF", "₺": "TRY", "؋": "AFN", "₼": "AZN", лв: "BGN", "៛": "KHR", "₡": "CRC", "₸": "KZT", ден: "MKD", zł: "PLN", "₽": "RUB", "₾": "GEL" }, l = ["်", "ް"], n = { "ာ": "a", "ါ": "a", "ေ": "e", "ဲ": "e", "ိ": "i", "ီ": "i", "ို": "o", "ု": "u", "ူ": "u", "ေါင်": "aung", "ော": "aw", "ော်": "aw", "ေါ": "aw", "ေါ်": "aw", "်": "်", "က်": "et", "ိုက်": "aik", "ောက်": "auk", "င်": "in", "ိုင်": "aing", "ောင်": "aung", "စ်": "it", "ည်": "i", "တ်": "at", "ိတ်": "eik", "ုတ်": "ok", "ွတ်": "ut", "ေတ်": "it", "ဒ်": "d", "ိုဒ်": "ok", "ုဒ်": "ait", "န်": "an", "ာန်": "an", "ိန်": "ein", "ုန်": "on", "ွန်": "un", "ပ်": "at", "ိပ်": "eik", "ုပ်": "ok", "ွပ်": "ut", "န်ုပ်": "nub", "မ်": "an", "ိမ်": "ein", "ုမ်": "on", "ွမ်": "un", "ယ်": "e", "ိုလ်": "ol", "ဉ်": "in", "ံ": "an", "ိံ": "ein", "ုံ": "on", "ައް": "ah", "ަށް": "ah" }, i = { en: {}, az: { ç: "c", ə: "e", ğ: "g", ı: "i", ö: "o", ş: "s", ü: "u", Ç: "C", Ə: "E", Ğ: "G", İ: "I", Ö: "O", Ş: "S", Ü: "U" }, cs: { č: "c", ď: "d", ě: "e", ň: "n", ř: "r", š: "s", ť: "t", ů: "u", ž: "z", Č: "C", Ď: "D", Ě: "E", Ň: "N", Ř: "R", Š: "S", Ť: "T", Ů: "U", Ž: "Z" }, fi: { ä: "a", Ä: "A", ö: "o", Ö: "O" }, hu: { ä: "a", Ä: "A", ö: "o", Ö: "O", ü: "u", Ü: "U", ű: "u", Ű: "U" }, lt: { ą: "a", č: "c", ę: "e", ė: "e", į: "i", š: "s", ų: "u", ū: "u", ž: "z", Ą: "A", Č: "C", Ę: "E", Ė: "E", Į: "I", Š: "S", Ų: "U", Ū: "U" }, lv: { ā: "a", č: "c", ē: "e", ģ: "g", ī: "i", ķ: "k", ļ: "l", ņ: "n", š: "s", ū: "u", ž: "z", Ā: "A", Č: "C", Ē: "E", Ģ: "G", Ī: "i", Ķ: "k", Ļ: "L", Ņ: "N", Š: "S", Ū: "u", Ž: "Z" }, pl: { ą: "a", ć: "c", ę: "e", ł: "l", ń: "n", ó: "o", ś: "s", ź: "z", ż: "z", Ą: "A", Ć: "C", Ę: "e", Ł: "L", Ń: "N", Ó: "O", Ś: "S", Ź: "Z", Ż: "Z" }, sv: { ä: "a", Ä: "A", ö: "o", Ö: "O" }, sk: { ä: "a", Ä: "A" }, sr: { љ: "lj", њ: "nj", Љ: "Lj", Њ: "Nj", đ: "dj", Đ: "Dj" }, tr: { Ü: "U", Ö: "O", ü: "u", ö: "o" } }, r = { ar: { "∆": "delta", "∞": "la-nihaya", "♥": "hob", "&": "wa", "|": "aw", "<": "aqal-men", ">": "akbar-men", "∑": "majmou", "¤": "omla" }, az: {}, ca: { "∆": "delta", "∞": "infinit", "♥": "amor", "&": "i", "|": "o", "<": "menys que", ">": "mes que", "∑": "suma dels", "¤": "moneda" }, cs: { "∆": "delta", "∞": "nekonecno", "♥": "laska", "&": "a", "|": "nebo", "<": "mensi nez", ">": "vetsi nez", "∑": "soucet", "¤": "mena" }, de: { "∆": "delta", "∞": "unendlich", "♥": "Liebe", "&": "und", "|": "oder", "<": "kleiner als", ">": "groesser als", "∑": "Summe von", "¤": "Waehrung" }, dv: { "∆": "delta", "∞": "kolunulaa", "♥": "loabi", "&": "aai", "|": "noonee", "<": "ah vure kuda", ">": "ah vure bodu", "∑": "jumula", "¤": "faisaa" }, en: { "∆": "delta", "∞": "infinity", "♥": "love", "&": "and", "|": "or", "<": "less than", ">": "greater than", "∑": "sum", "¤": "currency" }, es: { "∆": "delta", "∞": "infinito", "♥": "amor", "&": "y", "|": "u", "<": "menos que", ">": "mas que", "∑": "suma de los", "¤": "moneda" }, fa: { "∆": "delta", "∞": "bi-nahayat", "♥": "eshgh", "&": "va", "|": "ya", "<": "kamtar-az", ">": "bishtar-az", "∑": "majmooe", "¤": "vahed" }, fi: { "∆": "delta", "∞": "aarettomyys", "♥": "rakkaus", "&": "ja", "|": "tai", "<": "pienempi kuin", ">": "suurempi kuin", "∑": "summa", "¤": "valuutta" }, fr: { "∆": "delta", "∞": "infiniment", "♥": "Amour", "&": "et", "|": "ou", "<": "moins que", ">": "superieure a", "∑": "somme des", "¤": "monnaie" }, ge: { "∆": "delta", "∞": "usasruloba", "♥": "siqvaruli", "&": "da", "|": "an", "<": "naklebi", ">": "meti", "∑": "jami", "¤": "valuta" }, gr: {}, hu: { "∆": "delta", "∞": "vegtelen", "♥": "szerelem", "&": "es", "|": "vagy", "<": "kisebb mint", ">": "nagyobb mint", "∑": "szumma", "¤": "penznem" }, it: { "∆": "delta", "∞": "infinito", "♥": "amore", "&": "e", "|": "o", "<": "minore di", ">": "maggiore di", "∑": "somma", "¤": "moneta" }, lt: { "∆": "delta", "∞": "begalybe", "♥": "meile", "&": "ir", "|": "ar", "<": "maziau nei", ">": "daugiau nei", "∑": "suma", "¤": "valiuta" }, lv: { "∆": "delta", "∞": "bezgaliba", "♥": "milestiba", "&": "un", "|": "vai", "<": "mazak neka", ">": "lielaks neka", "∑": "summa", "¤": "valuta" }, my: { "∆": "kwahkhyaet", "∞": "asaonasme", "♥": "akhyait", "&": "nhin", "|": "tho", "<": "ngethaw", ">": "kyithaw", "∑": "paungld", "¤": "ngwekye" }, mk: {}, nl: { "∆": "delta", "∞": "oneindig", "♥": "liefde", "&": "en", "|": "of", "<": "kleiner dan", ">": "groter dan", "∑": "som", "¤": "valuta" }, pl: { "∆": "delta", "∞": "nieskonczonosc", "♥": "milosc", "&": "i", "|": "lub", "<": "mniejsze niz", ">": "wieksze niz", "∑": "suma", "¤": "waluta" }, pt: { "∆": "delta", "∞": "infinito", "♥": "amor", "&": "e", "|": "ou", "<": "menor que", ">": "maior que", "∑": "soma", "¤": "moeda" }, ro: { "∆": "delta", "∞": "infinit", "♥": "dragoste", "&": "si", "|": "sau", "<": "mai mic ca", ">": "mai mare ca", "∑": "suma", "¤": "valuta" }, ru: { "∆": "delta", "∞": "beskonechno", "♥": "lubov", "&": "i", "|": "ili", "<": "menshe", ">": "bolshe", "∑": "summa", "¤": "valjuta" }, sk: { "∆": "delta", "∞": "nekonecno", "♥": "laska", "&": "a", "|": "alebo", "<": "menej ako", ">": "viac ako", "∑": "sucet", "¤": "mena" }, sr: {}, tr: { "∆": "delta", "∞": "sonsuzluk", "♥": "ask", "&": "ve", "|": "veya", "<": "kucuktur", ">": "buyuktur", "∑": "toplam", "¤": "para birimi" }, uk: { "∆": "delta", "∞": "bezkinechnist", "♥": "lubov", "&": "i", "|": "abo", "<": "menshe", ">": "bilshe", "∑": "suma", "¤": "valjuta" }, vn: { "∆": "delta", "∞": "vo cuc", "♥": "yeu", "&": "va", "|": "hoac", "<": "nho hon", ">": "lon hon", "∑": "tong", "¤": "tien te" } }, u = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), d = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), m = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(h, v) { - var w, S, A, L, $, de, J, se, ae, ee, C, B, ie, z, te = "-", X = "", K = "", G = !0, le = {}, ne = ""; + var w, T, C, L, $, de, Q, se, ae, te, A, B, ie, z, ne = "-", J = "", K = "", G = !0, le = {}, Y = ""; if (typeof h != "string") return ""; - if (typeof v == "string" && (te = v), J = r.en, se = i.en, typeof v == "object") for (C in w = v.maintainCase || !1, le = v.custom && typeof v.custom == "object" ? v.custom : le, A = +v.truncate > 1 && v.truncate || !1, L = v.uric || !1, $ = v.uricNoSlash || !1, de = v.mark || !1, G = v.symbols !== !1 && v.lang !== !1, te = v.separator || te, L && (ne += u), $ && (ne += d), de && (ne += m), J = v.lang && r[v.lang] && G ? r[v.lang] : G ? r.en : {}, se = v.lang && i[v.lang] ? i[v.lang] : v.lang === !1 || v.lang === !0 ? {} : i.en, v.titleCase && typeof v.titleCase.length == "number" && Array.prototype.toString.call(v.titleCase) ? (v.titleCase.forEach(function(Y) { - le[Y + ""] = Y + ""; - }), S = !0) : S = !!v.titleCase, v.custom && typeof v.custom.length == "number" && Array.prototype.toString.call(v.custom) && v.custom.forEach(function(Y) { - le[Y + ""] = Y + ""; - }), Object.keys(le).forEach(function(Y) { + if (typeof v == "string" && (ne = v), Q = r.en, se = i.en, typeof v == "object") for (A in w = v.maintainCase || !1, le = v.custom && typeof v.custom == "object" ? v.custom : le, C = +v.truncate > 1 && v.truncate || !1, L = v.uric || !1, $ = v.uricNoSlash || !1, de = v.mark || !1, G = v.symbols !== !1 && v.lang !== !1, ne = v.separator || ne, L && (Y += u), $ && (Y += d), de && (Y += m), Q = v.lang && r[v.lang] && G ? r[v.lang] : G ? r.en : {}, se = v.lang && i[v.lang] ? i[v.lang] : v.lang === !1 || v.lang === !0 ? {} : i.en, v.titleCase && typeof v.titleCase.length == "number" && Array.prototype.toString.call(v.titleCase) ? (v.titleCase.forEach(function(Z) { + le[Z + ""] = Z + ""; + }), T = !0) : T = !!v.titleCase, v.custom && typeof v.custom.length == "number" && Array.prototype.toString.call(v.custom) && v.custom.forEach(function(Z) { + le[Z + ""] = Z + ""; + }), Object.keys(le).forEach(function(Z) { var pe; - pe = Y.length > 1 ? new RegExp("\\b" + g(Y) + "\\b", "gi") : new RegExp(g(Y), "gi"), h = h.replace(pe, le[Y]); - }), le) ne += C; - for (ne = g(ne += te), ie = !1, z = !1, ee = 0, B = (h = h.replace(/(^\s+|\s+$)/g, "")).length; ee < B; ee++) C = h[ee], y(C, le) ? ie = !1 : se[C] ? (C = ie && se[C].match(/[A-Za-z0-9]/) ? " " + se[C] : se[C], ie = !1) : C in o ? (ee + 1 < B && l.indexOf(h[ee + 1]) >= 0 ? (K += C, C = "") : z === !0 ? (C = n[K] + o[C], K = "") : C = ie && o[C].match(/[A-Za-z0-9]/) ? " " + o[C] : o[C], ie = !1, z = !1) : C in n ? (K += C, C = "", ee === B - 1 && (C = n[K]), z = !0) : !J[C] || L && u.indexOf(C) !== -1 || $ && d.indexOf(C) !== -1 ? (z === !0 ? (C = n[K] + C, K = "", z = !1) : ie && (/[A-Za-z0-9]/.test(C) || X.substr(-1).match(/A-Za-z0-9]/)) && (C = " " + C), ie = !1) : (C = ie || X.substr(-1).match(/[A-Za-z0-9]/) ? te + J[C] : J[C], C += h[ee + 1] !== void 0 && h[ee + 1].match(/[A-Za-z0-9]/) ? te : "", ie = !0), X += C.replace(new RegExp("[^\\w\\s" + ne + "_-]", "g"), te); - return S && (X = X.replace(/(\w)(\S*)/g, function(Y, pe, b) { + pe = Z.length > 1 ? new RegExp("\\b" + g(Z) + "\\b", "gi") : new RegExp(g(Z), "gi"), h = h.replace(pe, le[Z]); + }), le) Y += A; + for (Y = g(Y += ne), ie = !1, z = !1, te = 0, B = (h = h.replace(/(^\s+|\s+$)/g, "")).length; te < B; te++) A = h[te], y(A, le) ? ie = !1 : se[A] ? (A = ie && se[A].match(/[A-Za-z0-9]/) ? " " + se[A] : se[A], ie = !1) : A in o ? (te + 1 < B && l.indexOf(h[te + 1]) >= 0 ? (K += A, A = "") : z === !0 ? (A = n[K] + o[A], K = "") : A = ie && o[A].match(/[A-Za-z0-9]/) ? " " + o[A] : o[A], ie = !1, z = !1) : A in n ? (K += A, A = "", te === B - 1 && (A = n[K]), z = !0) : !Q[A] || L && u.indexOf(A) !== -1 || $ && d.indexOf(A) !== -1 ? (z === !0 ? (A = n[K] + A, K = "", z = !1) : ie && (/[A-Za-z0-9]/.test(A) || J.substr(-1).match(/A-Za-z0-9]/)) && (A = " " + A), ie = !1) : (A = ie || J.substr(-1).match(/[A-Za-z0-9]/) ? ne + Q[A] : Q[A], A += h[te + 1] !== void 0 && h[te + 1].match(/[A-Za-z0-9]/) ? ne : "", ie = !0), J += A.replace(new RegExp("[^\\w\\s" + Y + "_-]", "g"), ne); + return T && (J = J.replace(/(\w)(\S*)/g, function(Z, pe, b) { var F = pe.toUpperCase() + (b !== null ? b : ""); return Object.keys(le).indexOf(F.toLowerCase()) < 0 ? F : F.toLowerCase(); - })), X = X.replace(/\s+/g, te).replace(new RegExp("\\" + te + "+", "g"), te).replace(new RegExp("(^\\" + te + "+|\\" + te + "+$)", "g"), ""), A && X.length > A && (ae = X.charAt(A) === te, X = X.slice(0, A), ae || (X = X.slice(0, X.lastIndexOf(te)))), w || S || (X = X.toLowerCase()), X; + })), J = J.replace(/\s+/g, ne).replace(new RegExp("\\" + ne + "+", "g"), ne).replace(new RegExp("(^\\" + ne + "+|\\" + ne + "+$)", "g"), ""), C && J.length > C && (ae = J.charAt(C) === ne, J = J.slice(0, C), ae || (J = J.slice(0, J.lastIndexOf(ne)))), w || T || (J = J.toLowerCase()), J; }, O = function(h) { return function(v) { return f(v, h); @@ -315,13 +333,13 @@ var pi = Object.create, ya = Object.defineProperty, fi = Object.getOwnPropertyDe } catch { } }(e); -} }), gi = Io({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) { - k(), t.exports = hi(); +} }), _i = So({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) { + k(), t.exports = gi(); } }); -function So(e) { +function To(e) { return function(t) { return !(!t || !t.__v_isReadonly); - }(e) ? So(e.__v_raw) : !(!e || !e.__v_isReactive); + }(e) ? To(e.__v_raw) : !(!e || !e.__v_isReactive); } function Vn(e) { return !(!e || e.__v_isRef !== !0); @@ -330,7 +348,7 @@ function Rt(e) { const t = e && e.__v_raw; return t ? Rt(t) : e; } -function _i(e) { +function yi(e) { const t = e.__file; if (t) return (a = function(o, l) { let n = o.replace(/^[a-z]:/i, "").replace(/\\/g, "/"); @@ -340,16 +358,16 @@ function _i(e) { const u = r.lastIndexOf(l); return r.substring(0, u); } - }(t, ".vue")) && `${a}`.replace(li, ii); + }(t, ".vue")) && `${a}`.replace(ii, ri); var a; } -function ba(e, t) { +function Ea(e, t) { return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t; } function sn(e) { return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__ ? e.__VUE_DEVTOOLS_NEXT_APP_RECORD__ : e.root ? e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__ : void 0; } -function To(e) { +function wo(e) { var t, a; const o = (t = e.subTree) == null ? void 0 : t.type, l = sn(e); return !!l && ((a = l == null ? void 0 : l.types) == null ? void 0 : a.Fragment) === o; @@ -363,17 +381,17 @@ function un(e) { }((e == null ? void 0 : e.type) || {}); if (l) return l; if ((e == null ? void 0 : e.root) === e) return "Root"; - for (const i in (a = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : a.components) if (e.parent.type.components[i] === (e == null ? void 0 : e.type)) return ba(e, i); - for (const i in (o = e.appContext) == null ? void 0 : o.components) if (e.appContext.components[i] === (e == null ? void 0 : e.type)) return ba(e, i); - return _i((e == null ? void 0 : e.type) || {}) || "Anonymous Component"; + for (const i in (a = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : a.components) if (e.parent.type.components[i] === (e == null ? void 0 : e.type)) return Ea(e, i); + for (const i in (o = e.appContext) == null ? void 0 : o.components) if (e.appContext.components[i] === (e == null ? void 0 : e.type)) return Ea(e, i); + return yi((e == null ? void 0 : e.type) || {}) || "Anonymous Component"; } function kn(e, t) { return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root"); } k(), k(), k(), k(), k(), k(), k(), k(); -var Qt, yi = class { +var Qt, bi = class { constructor() { - this.refEditor = new bi(); + this.refEditor = new Oi(); } set(e, t, a, o) { const l = Array.isArray(t) ? t : t.split("."); @@ -404,7 +422,7 @@ var Qt, yi = class { } }; } -}, bi = class { +}, Oi = class { set(e, t) { if (Vn(e)) e.value = t; else { @@ -426,26 +444,26 @@ var Qt, yi = class { return Vn(e) ? e.value : e; } isRef(e) { - return Vn(e) || So(e); + return Vn(e) || To(e); } }; -function xn(e) { - return To(e) ? function(t) { +function Dn(e) { + return wo(e) ? function(t) { if (!t.children) return []; const a = []; return t.children.forEach((o) => { - o.component ? a.push(...xn(o.component)) : o != null && o.el && a.push(o.el); + o.component ? a.push(...Dn(o.component)) : o != null && o.el && a.push(o.el); }), a; }(e.subTree) : e.subTree ? [e.subTree.el] : []; } -function Oi(e, t) { +function Ei(e, t) { return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e; } k(), k(), k(); -var Oa = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }; +var Va = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }; function _t(e) { const t = e.subTree.el; - return typeof window > "u" ? Oa : To(e) ? function(a) { + return typeof window > "u" ? Va : wo(e) ? function(a) { const o = /* @__PURE__ */ function() { const n = { top: 0, bottom: 0, left: 0, right: 0, get width() { return n.right - n.left; @@ -463,52 +481,52 @@ function _t(e) { const d = r.el; d.nodeType === 1 || d.getBoundingClientRect ? u = d.getBoundingClientRect() : d.nodeType === 3 && d.data.trim() && (l = d, Qt || (Qt = document.createRange()), Qt.selectNode(l), u = Qt.getBoundingClientRect()); } - u && Oi(o, u); + u && Ei(o, u); } var l; return o; - }(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? _t(e.subTree.component) : Oa; + }(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? _t(e.subTree.component) : Va; } -var wo = "__vue-devtools-component-inspector__", Co = "__vue-devtools-component-inspector__card__", Ao = "__vue-devtools-component-inspector__name__", Po = "__vue-devtools-component-inspector__indicator__", xo = { display: "block", zIndex: 2147483640, position: "fixed", backgroundColor: "#42b88325", border: "1px solid #42b88350", borderRadius: "5px", transition: "all 0.1s ease-in", pointerEvents: "none" }, Ei = { fontFamily: "Arial, Helvetica, sans-serif", padding: "5px 8px", borderRadius: "4px", textAlign: "left", position: "absolute", left: 0, color: "#e9e9e9", fontSize: "14px", fontWeight: 600, lineHeight: "24px", backgroundColor: "#42b883", boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)" }, Vi = { display: "inline-block", fontWeight: 400, fontStyle: "normal", fontSize: "12px", opacity: 0.7 }; +var Co = "__vue-devtools-component-inspector__", Ao = "__vue-devtools-component-inspector__card__", Po = "__vue-devtools-component-inspector__name__", xo = "__vue-devtools-component-inspector__indicator__", jo = { display: "block", zIndex: 2147483640, position: "fixed", backgroundColor: "#42b88325", border: "1px solid #42b88350", borderRadius: "5px", transition: "all 0.1s ease-in", pointerEvents: "none" }, Vi = { fontFamily: "Arial, Helvetica, sans-serif", padding: "5px 8px", borderRadius: "4px", textAlign: "left", position: "absolute", left: 0, color: "#e9e9e9", fontSize: "14px", fontWeight: 600, lineHeight: "24px", backgroundColor: "#42b883", boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)" }, ki = { display: "inline-block", fontWeight: 400, fontStyle: "normal", fontSize: "12px", opacity: 0.7 }; function Tt() { - return document.getElementById(wo); + return document.getElementById(Co); } -function ea(e) { +function ta(e) { return { left: Math.round(100 * e.left) / 100 + "px", top: Math.round(100 * e.top) / 100 + "px", width: Math.round(100 * e.width) / 100 + "px", height: Math.round(100 * e.height) / 100 + "px" }; } -function ta(e) { +function na(e) { var t; const a = document.createElement("div"); - a.id = (t = e.elementId) != null ? t : wo, Object.assign(a.style, { ...xo, ...ea(e.bounds), ...e.style }); + a.id = (t = e.elementId) != null ? t : Co, Object.assign(a.style, { ...jo, ...ta(e.bounds), ...e.style }); const o = document.createElement("span"); - o.id = Co, Object.assign(o.style, { ...Ei, top: e.bounds.top < 35 ? 0 : "-35px" }); + o.id = Ao, Object.assign(o.style, { ...Vi, top: e.bounds.top < 35 ? 0 : "-35px" }); const l = document.createElement("span"); - l.id = Ao, l.innerHTML = `<${e.name}>  `; + l.id = Po, l.innerHTML = `<${e.name}>  `; const n = document.createElement("i"); - return n.id = Po, n.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`, Object.assign(n.style, Vi), o.appendChild(l), o.appendChild(n), a.appendChild(o), document.body.appendChild(a), a; + return n.id = xo, n.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`, Object.assign(n.style, ki), o.appendChild(l), o.appendChild(n), a.appendChild(o), document.body.appendChild(a), a; } -function na(e) { - const t = Tt(), a = document.getElementById(Co), o = document.getElementById(Ao), l = document.getElementById(Po); - t && (Object.assign(t.style, { ...xo, ...ea(e.bounds) }), Object.assign(a.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), o.innerHTML = `<${e.name}>  `, l.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`); +function aa(e) { + const t = Tt(), a = document.getElementById(Ao), o = document.getElementById(Po), l = document.getElementById(xo); + t && (Object.assign(t.style, { ...jo, ...ta(e.bounds) }), Object.assign(a.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), o.innerHTML = `<${e.name}>  `, l.innerHTML = `${Math.round(100 * e.bounds.width) / 100} x ${Math.round(100 * e.bounds.height) / 100}`); } -function jo() { +function Uo() { const e = Tt(); e && (e.style.display = "none"); } -var jn = null; +var Rn = null; function In(e) { const t = e.target; if (t) { const a = t.__vueParentComponent; - if (a && (jn = a, a.vnode.el)) { + if (a && (Rn = a, a.vnode.el)) { const o = _t(a), l = un(a); - Tt() ? na({ bounds: o, name: l }) : ta({ bounds: o, name: l }); + Tt() ? aa({ bounds: o, name: l }) : na({ bounds: o, name: l }); } } } -function ki(e, t) { +function Ii(e, t) { var a; - if (e.preventDefault(), e.stopPropagation(), jn) { + if (e.preventDefault(), e.stopPropagation(), Rn) { const o = (a = Ne.value) == null ? void 0 : a.app; (async function(l) { const { app: n, uid: i, instance: r } = l; @@ -520,13 +538,13 @@ function ki(e, t) { return `${u.id}:${d ? "root" : i}`; } catch { } - })({ app: o, uid: o.uid, instance: jn }).then((l) => { + })({ app: o, uid: o.uid, instance: Rn }).then((l) => { t(l); }); } } -var Ea, en = null; -function Ii() { +var ka, en = null; +function Si() { return new Promise((e) => { function t() { (function() { @@ -546,44 +564,44 @@ function Ii() { }); }); } -k(), (Ea = j).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ != null || (Ea.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0), k(), k(), k(); -var Va; -function Si() { - if (!Eo || typeof localStorage > "u" || localStorage === null) return { recordingState: !1, mouseEventEnabled: !1, keyboardEventEnabled: !1, componentEventEnabled: !1, performanceEventEnabled: !1, selected: "" }; +k(), (ka = j).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ != null || (ka.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0), k(), k(), k(); +var Ia; +function Ti() { + if (!Vo || typeof localStorage > "u" || localStorage === null) return { recordingState: !1, mouseEventEnabled: !1, keyboardEventEnabled: !1, componentEventEnabled: !1, performanceEventEnabled: !1, selected: "" }; const e = localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__"); return e ? JSON.parse(e) : { recordingState: !1, mouseEventEnabled: !1, keyboardEventEnabled: !1, componentEventEnabled: !1, performanceEventEnabled: !1, selected: "" }; } -k(), k(), k(), (Va = j).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS != null || (Va.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []); -var ka, Ti = new Proxy(j.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, { get: (e, t, a) => Reflect.get(e, t, a) }); -(ka = j).__VUE_DEVTOOLS_KIT_INSPECTOR__ != null || (ka.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []); -var Ia, Sa, Ta, wa, Ca, aa = new Proxy(j.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get: (e, t, a) => Reflect.get(e, t, a) }), Uo = St(() => { - Ct.hooks.callHook("sendInspectorToClient", Do()); +k(), k(), k(), (Ia = j).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS != null || (Ia.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []); +var Sa, wi = new Proxy(j.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, { get: (e, t, a) => Reflect.get(e, t, a) }); +(Sa = j).__VUE_DEVTOOLS_KIT_INSPECTOR__ != null || (Sa.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []); +var Ta, wa, Ca, Aa, Pa, oa = new Proxy(j.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get: (e, t, a) => Reflect.get(e, t, a) }), Do = St(() => { + Ct.hooks.callHook("sendInspectorToClient", Ro()); }); -function Do() { - return aa.filter((e) => e.descriptor.app === Ne.value.app).filter((e) => e.descriptor.id !== "components").map((e) => { +function Ro() { + return oa.filter((e) => e.descriptor.app === Ne.value.app).filter((e) => e.descriptor.id !== "components").map((e) => { var t; const a = e.descriptor, o = e.options; return { id: o.id, label: o.label, logo: a.logo, icon: `custom-ic-baseline-${(t = o == null ? void 0 : o.icon) == null ? void 0 : t.replace(/_/g, "-")}`, packageName: a.packageName, homepage: a.homepage, pluginId: a.id }; }); } function on(e, t) { - return aa.find((a) => a.options.id === e && (!t || a.descriptor.app === t)); + return oa.find((a) => a.options.id === e && (!t || a.descriptor.app === t)); } -(Ia = j).__VUE_DEVTOOLS_KIT_APP_RECORDS__ != null || (Ia.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []), (Sa = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ != null || (Sa.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}), (Ta = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ != null || (Ta.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = ""), (wa = j).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ != null || (wa.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []), (Ca = j).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ != null || (Ca.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []); -var Aa, vt = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__"; -(Aa = j)[vt] != null || (Aa[vt] = { connected: !1, clientConnected: !1, vitePluginDetected: !0, appRecords: [], activeAppRecordId: "", tabs: [], commands: [], highPerfModeEnabled: !0, devtoolsClientDetected: {}, perfUniqueGroupId: 0, timelineLayersState: Si() }); -var wi = St((e) => { +(Ta = j).__VUE_DEVTOOLS_KIT_APP_RECORDS__ != null || (Ta.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []), (wa = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ != null || (wa.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}), (Ca = j).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ != null || (Ca.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = ""), (Aa = j).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ != null || (Aa.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []), (Pa = j).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ != null || (Pa.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []); +var xa, vt = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__"; +(xa = j)[vt] != null || (xa[vt] = { connected: !1, clientConnected: !1, vitePluginDetected: !0, appRecords: [], activeAppRecordId: "", tabs: [], commands: [], highPerfModeEnabled: !0, devtoolsClientDetected: {}, perfUniqueGroupId: 0, timelineLayersState: Ti() }); +var Ci = St((e) => { Ct.hooks.callHook("devtoolsStateUpdated", { state: e }); }); St((e, t) => { Ct.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t }); }); var dn = new Proxy(j.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get: (e, t, a) => t === "value" ? j.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : j.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t] }), Ne = new Proxy(j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get: (e, t, a) => t === "value" ? j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t] }); -function Pa() { - wi({ ...j[vt], appRecords: dn.value, activeAppRecordId: Ne.id, tabs: j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__, commands: j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ }); +function ja() { + Ci({ ...j[vt], appRecords: dn.value, activeAppRecordId: Ne.id, tabs: j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__, commands: j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ }); } -var xa, Ce = new Proxy(j[vt], { get: (e, t) => t === "appRecords" ? dn : t === "activeAppRecordId" ? Ne.id : t === "tabs" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : j[vt][t], deleteProperty: (e, t) => (delete e[t], !0), set: (e, t, a) => (j[vt], e[t] = a, j[vt][t] = a, !0) }); -function Ci(e = {}) { +var Ua, Ce = new Proxy(j[vt], { get: (e, t) => t === "appRecords" ? dn : t === "activeAppRecordId" ? Ne.id : t === "tabs" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? j.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : j[vt][t], deleteProperty: (e, t) => (delete e[t], !0), set: (e, t, a) => (j[vt], e[t] = a, j[vt][t] = a, !0) }); +function Ai(e = {}) { var t, a, o; const { file: l, host: n, baseUrl: i = window.location.origin, line: r = 0, column: u = 0 } = e; if (l) { @@ -599,40 +617,40 @@ function Ci(e = {}) { } } } -k(), k(), k(), k(), k(), (xa = j).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ != null || (xa.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []); -var ja, Ua, oa = new Proxy(j.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get: (e, t, a) => Reflect.get(e, t, a) }); -function Un(e) { +k(), k(), k(), k(), k(), (Ua = j).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ != null || (Ua.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []); +var Da, Ra, la = new Proxy(j.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get: (e, t, a) => Reflect.get(e, t, a) }); +function Nn(e) { const t = {}; return Object.keys(e).forEach((a) => { t[a] = e[a].defaultValue; }), t; } -function la(e) { +function ia(e) { return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`; } -function Ai(e) { +function Pi(e) { var t, a, o; - const l = (a = (t = oa.find((n) => { + const l = (a = (t = la.find((n) => { var i; return n[0].id === e && !!((i = n[0]) != null && i.settings); })) == null ? void 0 : t[0]) != null ? a : null; return (o = l == null ? void 0 : l.settings) != null ? o : null; } -function Ro(e, t) { +function No(e, t) { var a, o, l; - const n = la(e); + const n = ia(e); if (n) { const i = localStorage.getItem(n); if (i) return JSON.parse(i); } if (e) { - const i = (o = (a = oa.find((r) => r[0].id === e)) == null ? void 0 : a[0]) != null ? o : null; - return Un((l = i == null ? void 0 : i.settings) != null ? l : {}); + const i = (o = (a = la.find((r) => r[0].id === e)) == null ? void 0 : a[0]) != null ? o : null; + return Nn((l = i == null ? void 0 : i.settings) != null ? l : {}); } - return Un(t); + return Nn(t); } k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(); -var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HOOK = ko(), Pi = { vueAppInit(e) { +var $e = (Ra = (Da = j).__VUE_DEVTOOLS_HOOK) != null ? Ra : Da.__VUE_DEVTOOLS_HOOK = Io(), xi = { vueAppInit(e) { $e.hook("app:init", e); }, vueAppUnmount(e) { $e.hook("app:unmount", e); @@ -640,7 +658,7 @@ var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HO $e.hook("app:connected", e); }, componentAdded: (e) => $e.hook("component:added", e), componentEmit: (e) => $e.hook("component:emit", e), componentUpdated: (e) => $e.hook("component:updated", e), componentRemoved: (e) => $e.hook("component:removed", e), setupDevtoolsPlugin(e) { $e.hook("devtools-plugin:setup", e); -}, perfStart: (e) => $e.hook("perf:start", e), perfEnd: (e) => $e.hook("perf:end", e) }, No = { on: Pi, setupDevToolsPlugin: (e, t) => $e.callHook("devtools-plugin:setup", e, t) }, xi = class { +}, perfStart: (e) => $e.hook("perf:start", e), perfEnd: (e) => $e.hook("perf:end", e) }, Mo = { on: xi, setupDevToolsPlugin: (e, t) => $e.callHook("devtools-plugin:setup", e, t) }, ji = class { constructor({ plugin: e, ctx: t }) { this.hooks = t.hooks, this.plugin = e; } @@ -668,7 +686,7 @@ var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HO notifyComponentUpdate(e) { var t; if (Ce.highPerfModeEnabled) return; - const a = Do().find((o) => o.packageName === this.plugin.descriptor.packageName); + const a = Ro().find((o) => o.packageName === this.plugin.descriptor.packageName); if (a != null && a.id) { if (e) { const o = [e.appContext.app, e.uid, (t = e.parent) == null ? void 0 : t.uid, e]; @@ -679,8 +697,8 @@ var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HO } addInspector(e) { this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && function(t, a) { - const o = la(t); - localStorage.getItem(o) || localStorage.setItem(o, JSON.stringify(Un(a))); + const o = ia(t); + localStorage.getItem(o) || localStorage.setItem(o, JSON.stringify(Nn(a))); }(e.id, this.plugin.descriptor.settings); } sendInspectorTree(e) { @@ -705,7 +723,7 @@ var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HO Ce.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin }); } getSettings(e) { - return Ro(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings); + return No(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings); } getComponentInstances(e) { return this.hooks.callHook("getComponentInstances", { app: e }); @@ -725,59 +743,59 @@ var $e = (Ua = (ja = j).__VUE_DEVTOOLS_HOOK) != null ? Ua : ja.__VUE_DEVTOOLS_HO } }; k(), k(), k(), k(); -var ji = "__vue_devtool_undefined__", Ui = "__vue_devtool_infinity__", Di = "__vue_devtool_negative_infinity__", Ri = "__vue_devtool_nan__"; +var Ui = "__vue_devtool_undefined__", Di = "__vue_devtool_infinity__", Ri = "__vue_devtool_negative_infinity__", Ni = "__vue_devtool_nan__"; k(), k(); -var Da, Ni = { [ji]: "undefined", [Ri]: "NaN", [Ui]: "Infinity", [Di]: "-Infinity" }; -function Mo(e) { - j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || Ce.highPerfModeEnabled || (j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), oa.forEach((t) => { +var Na, Mi = { [Ui]: "undefined", [Ni]: "NaN", [Di]: "Infinity", [Ri]: "-Infinity" }; +function Lo(e) { + j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || Ce.highPerfModeEnabled || (j.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), la.forEach((t) => { (function(a, o) { const [l, n] = a; if (l.app !== o) return; - const i = new xi({ plugin: { setupFn: n, descriptor: l }, ctx: Ct }); + const i = new ji({ plugin: { setupFn: n, descriptor: l }, ctx: Ct }); l.packageName === "vuex" && i.on.editInspectorState((r) => { i.sendInspectorState(r.inspectorId); }), n(i); })(t, e); })); } -Object.entries(Ni).reduce((e, [t, a]) => (e[a] = t, e), {}), k(), k(), k(), k(), k(), (Da = j).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ != null || (Da.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set()), k(), k(); -var Ra, Na, Ma, Nt = "__VUE_DEVTOOLS_ROUTER__", Ot = "__VUE_DEVTOOLS_ROUTER_INFO__"; -function Dn(e) { +Object.entries(Mi).reduce((e, [t, a]) => (e[a] = t, e), {}), k(), k(), k(), k(), k(), (Na = j).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ != null || (Na.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set()), k(), k(); +var Ma, La, Ba, Nt = "__VUE_DEVTOOLS_ROUTER__", Ot = "__VUE_DEVTOOLS_ROUTER_INFO__"; +function Mn(e) { return e.map((t) => { let { path: a, name: o, children: l, meta: n } = t; - return l != null && l.length && (l = Dn(l)), { path: a, name: o, children: l, meta: n }; + return l != null && l.length && (l = Mn(l)), { path: a, name: o, children: l, meta: n }; }); } -function Mi(e, t) { +function Li(e, t) { function a() { var o; const l = (o = e.app) == null ? void 0 : o.config.globalProperties.$router, n = function(u) { if (u) { const { fullPath: d, hash: m, href: f, path: O, name: g, matched: y, params: h, query: v } = u; - return { fullPath: d, hash: m, href: f, path: O, name: g, params: h, query: v, matched: Dn(y) }; + return { fullPath: d, hash: m, href: f, path: O, name: g, params: h, query: v, matched: Mn(y) }; } return u; - }(l == null ? void 0 : l.currentRoute.value), i = Dn(function(u) { + }(l == null ? void 0 : l.currentRoute.value), i = Mn(function(u) { const d = /* @__PURE__ */ new Map(); return ((u == null ? void 0 : u.getRoutes()) || []).filter((m) => !d.has(m.path) && d.set(m.path, 1)); }(l)), r = console.warn; console.warn = () => { - }, j[Ot] = { currentRoute: n ? _a(n) : {}, routes: _a(i) }, j[Nt] = l, console.warn = r; + }, j[Ot] = { currentRoute: n ? ba(n) : {}, routes: ba(i) }, j[Nt] = l, console.warn = r; } - a(), No.on.componentUpdated(St(() => { + a(), Mo.on.componentUpdated(St(() => { var o; ((o = t.value) == null ? void 0 : o.app) === e.app && (a(), Ce.highPerfModeEnabled || Ct.hooks.callHook("routerInfoUpdated", { state: j[Ot] })); }, 200)); } -(Ra = j)[Ot] != null || (Ra[Ot] = { currentRoute: null, routes: [] }), (Na = j)[Nt] != null || (Na[Nt] = {}), new Proxy(j[Ot], { get: (e, t) => j[Ot][t] }), new Proxy(j[Nt], { get(e, t) { +(Ma = j)[Ot] != null || (Ma[Ot] = { currentRoute: null, routes: [] }), (La = j)[Nt] != null || (La[Nt] = {}), new Proxy(j[Ot], { get: (e, t) => j[Ot][t] }), new Proxy(j[Nt], { get(e, t) { if (t === "value") return j[Nt]; -} }), k(), (Ma = j).__VUE_DEVTOOLS_ENV__ != null || (Ma.__VUE_DEVTOOLS_ENV__ = { vitePluginDetected: !1 }); -var La, Ut, Ba = function() { - const e = ko(); +} }), k(), (Ba = j).__VUE_DEVTOOLS_ENV__ != null || (Ba.__VUE_DEVTOOLS_ENV__ = { vitePluginDetected: !1 }); +var Ha, Dt, $a = function() { + const e = Io(); e.hook("addInspector", ({ inspector: o, plugin: l }) => { (function(n, i) { var r, u; - aa.push({ options: n, descriptor: i, treeFilterPlaceholder: (r = n.treeFilterPlaceholder) != null ? r : "Search tree...", stateFilterPlaceholder: (u = n.stateFilterPlaceholder) != null ? u : "Search state...", treeFilter: "", selectedNodeId: "", appRecord: sn(i.app) }), Uo(); + oa.push({ options: n, descriptor: i, treeFilterPlaceholder: (r = n.treeFilterPlaceholder) != null ? r : "Search tree...", stateFilterPlaceholder: (u = n.stateFilterPlaceholder) != null ? u : "Search state...", treeFilter: "", selectedNodeId: "", appRecord: sn(i.app) }), Do(); })(o, l.descriptor); }); const t = St(async ({ inspectorId: o, plugin: l }) => { @@ -810,7 +828,7 @@ var La, Ut, Ba = function() { i && (i.selectedNodeId = l); }), e.hook("timelineLayerAdded", ({ options: o, plugin: l }) => { (function(n, i) { - Ce.timelineLayersState[i.id] = !1, Ti.push({ ...n, descriptorId: i.id, appRecord: sn(i.app) }); + Ce.timelineLayersState[i.id] = !1, wi.push({ ...n, descriptorId: i.id, appRecord: sn(i.app) }); })(o, l.descriptor); }), e.hook("timelineEventAdded", ({ options: o, plugin: l }) => { var n; @@ -828,57 +846,57 @@ var La, Ut, Ba = function() { const i = _t(n); if (!i.width && !i.height) return; const r = un(n); - Tt() ? na({ bounds: i, name: r }) : ta({ bounds: i, name: r }); + Tt() ? aa({ bounds: i, name: r }) : na({ bounds: i, name: r }); }(l); }), e.hook("componentUnhighlight", () => { - jo(); + Uo(); }), e; }(); -(La = j).__VUE_DEVTOOLS_KIT_CONTEXT__ != null || (La.__VUE_DEVTOOLS_KIT_CONTEXT__ = { hooks: Ba, get state() { +(Ha = j).__VUE_DEVTOOLS_KIT_CONTEXT__ != null || (Ha.__VUE_DEVTOOLS_KIT_CONTEXT__ = { hooks: $a, get state() { return { ...Ce, activeAppRecordId: Ne.id, activeAppRecord: Ne.value, appRecords: dn.value }; -}, api: (Ut = Ba, { async getInspectorTree(e) { +}, api: (Dt = $a, { async getInspectorTree(e) { const t = { ...e, app: Ne.value.app, rootNodes: [] }; return await new Promise((a) => { - Ut.callHookWith(async (o) => { + Dt.callHookWith(async (o) => { await Promise.all(o.map((l) => l(t))), a(); }, "getInspectorTree"); }), t.rootNodes; }, async getInspectorState(e) { const t = { ...e, app: Ne.value.app, state: null }, a = { currentTab: `custom-inspector:${e.inspectorId}` }; return await new Promise((o) => { - Ut.callHookWith(async (l) => { + Dt.callHookWith(async (l) => { await Promise.all(l.map((n) => n(t, a))), o(); }, "getInspectorState"); }), t.state; }, editInspectorState(e) { - const t = new yi(), a = { ...e, app: Ne.value.app, set: (o, l = e.path, n = e.state.value, i) => { + const t = new bi(), a = { ...e, app: Ne.value.app, set: (o, l = e.path, n = e.state.value, i) => { t.set(o, l, n, i || t.createDefaultSetCallback(e.state)); } }; - Ut.callHookWith((o) => { + Dt.callHookWith((o) => { o.forEach((l) => l(a)); }, "editInspectorState"); }, sendInspectorState(e) { const t = on(e); - Ut.callHook("sendInspectorState", { inspectorId: e, plugin: { descriptor: t.descriptor, setupFn: () => ({}) } }); + Dt.callHook("sendInspectorState", { inspectorId: e, plugin: { descriptor: t.descriptor, setupFn: () => ({}) } }); }, inspectComponentInspector: () => (window.addEventListener("mouseover", In), new Promise((e) => { function t(a) { - a.preventDefault(), a.stopPropagation(), ki(a, (o) => { + a.preventDefault(), a.stopPropagation(), Ii(a, (o) => { window.removeEventListener("click", t, !0), en = null, window.removeEventListener("mouseover", In); const l = Tt(); l && (l.style.display = "none"), e(JSON.stringify({ id: o })); }); } en = t, window.addEventListener("click", t, !0); -})), cancelInspectComponentInspector: () => (jo(), window.removeEventListener("mouseover", In), window.removeEventListener("click", en, !0), void (en = null)), getComponentRenderCode(e) { +})), cancelInspectComponentInspector: () => (Uo(), window.removeEventListener("mouseover", In), window.removeEventListener("click", en, !0), void (en = null)), getComponentRenderCode(e) { const t = kn(Ne.value, e); if (t) return (t == null ? void 0 : t.type) instanceof Function ? t.type.toString() : t.render.toString(); }, scrollToComponent: (e) => function(t) { const a = kn(Ne.value, t.id); if (a) { - const [o] = xn(a); + const [o] = Dn(a); if (typeof o.scrollIntoView == "function") o.scrollIntoView({ behavior: "smooth" }); else { - const l = _t(a), n = document.createElement("div"), i = { ...ea(l), position: "absolute" }; + const l = _t(a), n = document.createElement("div"), i = { ...ta(l), position: "absolute" }; Object.assign(n.style, i), document.body.appendChild(n), n.scrollIntoView({ behavior: "smooth" }), setTimeout(() => { document.body.removeChild(n); }, 2e3); @@ -887,44 +905,44 @@ var La, Ut, Ba = function() { const l = _t(a); if (l.width || l.height) { const n = un(a), i = Tt(); - i ? na({ ...t, name: n, bounds: l }) : ta({ ...t, name: n, bounds: l }), setTimeout(() => { + i ? aa({ ...t, name: n, bounds: l }) : na({ ...t, name: n, bounds: l }), setTimeout(() => { i && (i.style.display = "none"); }, 1500); } }, 1200); } -}({ id: e }), openInEditor: Ci, getVueInspector: Ii, toggleApp(e) { +}({ id: e }), openInEditor: Ai, getVueInspector: Si, toggleApp(e) { const t = dn.value.find((o) => o.id === e); var a; t && (function(o) { - j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = o, Pa(); - }(e), a = t, j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = a, Pa(), Mi(t, Ne), Uo(), Mo(t.app)); + j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = o, ja(); + }(e), a = t, j.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = a, ja(), Li(t, Ne), Do(), Lo(t.app)); }, inspectDOM(e) { const t = kn(Ne.value, e); if (t) { - const [a] = xn(t); + const [a] = Dn(t); a && (j.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = a); } }, updatePluginSettings(e, t, a) { (function(o, l, n) { - const i = la(o), r = localStorage.getItem(i), u = JSON.parse(r || "{}"), d = { ...u, [l]: n }; + const i = ia(o), r = localStorage.getItem(i), u = JSON.parse(r || "{}"), d = { ...u, [l]: n }; localStorage.setItem(i, JSON.stringify(d)), Ct.hooks.callHookWith((m) => { m.forEach((f) => f({ pluginId: o, key: l, oldValue: u[l], newValue: n, settings: d })); }, "setPluginSettings"); })(e, t, a); -}, getPluginSettings: (e) => ({ options: Ai(e), values: Ro(e) }) }) }); -var Ha, $a, Ct = j.__VUE_DEVTOOLS_KIT_CONTEXT__; +}, getPluginSettings: (e) => ({ options: Pi(e), values: No(e) }) }) }); +var Fa, za, Ct = j.__VUE_DEVTOOLS_KIT_CONTEXT__; k(), ((e, t, a) => { - a = e != null ? pi(vi(e)) : {}, ((o, l, n, i) => { - if (l && typeof l == "object" || typeof l == "function") for (let r of Qn(l)) mi.call(o, r) || r === n || ya(o, r, { get: () => l[r], enumerable: !(i = fi(l, r)) || i.enumerable }); - })(ya(a, "default", { value: e, enumerable: !0 }), e); -})(gi()), (Ha = j).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ != null || (Ha.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = { id: 0, appIds: /* @__PURE__ */ new Set() }), k(), k(), k(), k(), ($a = j).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ != null || ($a.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = function(e) { + a = e != null ? fi(mi(e)) : {}, ((o, l, n, i) => { + if (l && typeof l == "object" || typeof l == "function") for (let r of ea(l)) hi.call(o, r) || r === n || Oa(o, r, { get: () => l[r], enumerable: !(i = vi(l, r)) || i.enumerable }); + })(Oa(a, "default", { value: e, enumerable: !0 }), e); +})(_i()), (Fa = j).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ != null || (Fa.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = { id: 0, appIds: /* @__PURE__ */ new Set() }), k(), k(), k(), k(), (za = j).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ != null || (za.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = function(e) { Ce.devtoolsClientDetected = { ...Ce.devtoolsClientDetected, ...e }; const t = Object.values(Ce.devtoolsClientDetected).some(Boolean); var a; - a = !t, Ce.highPerfModeEnabled = a ?? !Ce.highPerfModeEnabled, !a && Ne.value && Mo(Ne.value.app); + a = !t, Ce.highPerfModeEnabled = a ?? !Ce.highPerfModeEnabled, !a && Ne.value && Lo(Ne.value.app); }), k(), k(), k(), k(), k(), k(), k(); -var Li = class { +var Bi = class { constructor() { this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map(); } @@ -940,9 +958,9 @@ var Li = class { clear() { this.keyToValue.clear(), this.valueToKey.clear(); } -}, Lo = class { +}, Bo = class { constructor(e) { - this.generateIdentifier = e, this.kv = new Li(); + this.generateIdentifier = e, this.kv = new Bi(); } register(e, t) { this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e)); @@ -956,7 +974,7 @@ var Li = class { getValue(e) { return this.kv.getByKey(e); } -}, Bi = class extends Lo { +}, Hi = class extends Bo { constructor() { super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map(); } @@ -967,7 +985,7 @@ var Li = class { return this.classToAllowedProps.get(e); } }; -function Hi(e, t) { +function $i(e, t) { const a = function(l) { if ("values" in Object) return Object.values(l); const n = []; @@ -987,14 +1005,14 @@ function wt(e, t) { function ln(e, t) { return e.indexOf(t) !== -1; } -function Fa(e, t) { +function Ka(e, t) { for (let a = 0; a < e.length; a++) { const o = e[a]; if (t(o)) return o; } } k(), k(); -var $i = class { +var Fi = class { constructor() { this.transfomers = {}; } @@ -1002,16 +1020,16 @@ var $i = class { this.transfomers[e.name] = e; } findApplicable(e) { - return Hi(this.transfomers, (t) => t.isApplicable(e)); + return $i(this.transfomers, (t) => t.isApplicable(e)); } findByName(e) { return this.transfomers[e]; } }; k(), k(); -var Bo = (e) => e === void 0, Wt = (e) => typeof e == "object" && e !== null && e !== Object.prototype && (Object.getPrototypeOf(e) === null || Object.getPrototypeOf(e) === Object.prototype), Rn = (e) => Wt(e) && Object.keys(e).length === 0, dt = (e) => Array.isArray(e), Gt = (e) => e instanceof Map, Yt = (e) => e instanceof Set, Ho = (e) => ((t) => Object.prototype.toString.call(t).slice(8, -1))(e) === "Symbol", za = (e) => typeof e == "number" && isNaN(e), Fi = (e) => /* @__PURE__ */ ((t) => typeof t == "boolean")(e) || /* @__PURE__ */ ((t) => t === null)(e) || Bo(e) || ((t) => typeof t == "number" && !isNaN(t))(e) || /* @__PURE__ */ ((t) => typeof t == "string")(e) || Ho(e); +var Ho = (e) => e === void 0, Wt = (e) => typeof e == "object" && e !== null && e !== Object.prototype && (Object.getPrototypeOf(e) === null || Object.getPrototypeOf(e) === Object.prototype), Ln = (e) => Wt(e) && Object.keys(e).length === 0, dt = (e) => Array.isArray(e), Gt = (e) => e instanceof Map, Yt = (e) => e instanceof Set, $o = (e) => ((t) => Object.prototype.toString.call(t).slice(8, -1))(e) === "Symbol", qa = (e) => typeof e == "number" && isNaN(e), zi = (e) => /* @__PURE__ */ ((t) => typeof t == "boolean")(e) || /* @__PURE__ */ ((t) => t === null)(e) || Ho(e) || ((t) => typeof t == "number" && !isNaN(t))(e) || /* @__PURE__ */ ((t) => typeof t == "string")(e) || $o(e); k(); -var $o = (e) => e.replace(/\./g, "\\."), Sn = (e) => e.map(String).map($o).join("."), Ht = (e) => { +var Fo = (e) => e.replace(/\./g, "\\."), Sn = (e) => e.map(String).map(Fo).join("."), Ht = (e) => { const t = []; let a = ""; for (let l = 0; l < e.length; l++) { @@ -1025,12 +1043,12 @@ var $o = (e) => e.replace(/\./g, "\\."), Sn = (e) => e.map(String).map($o).join( const o = a; return t.push(o), t; }; -function Qe(e, t, a, o) { +function Je(e, t, a, o) { return { isApplicable: e, annotation: t, transform: a, untransform: o }; } k(); -var Fo = [Qe(Bo, "undefined", () => null, () => { -}), Qe((e) => typeof e == "bigint", "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)), Qe((e) => e instanceof Date && !isNaN(e.valueOf()), "Date", (e) => e.toISOString(), (e) => new Date(e)), Qe((e) => e instanceof Error, "Error", (e, t) => { +var zo = [Je(Ho, "undefined", () => null, () => { +}), Je((e) => typeof e == "bigint", "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)), Je((e) => e instanceof Date && !isNaN(e.valueOf()), "Date", (e) => e.toISOString(), (e) => new Date(e)), Je((e) => e instanceof Error, "Error", (e, t) => { const a = { name: e.name, message: e.message }; return t.allowedErrorProps.forEach((o) => { a[o] = e[o]; @@ -1040,29 +1058,29 @@ var Fo = [Qe(Bo, "undefined", () => null, () => { return a.name = e.name, a.stack = e.stack, t.allowedErrorProps.forEach((o) => { a[o] = e[o]; }), a; -}), Qe((e) => e instanceof RegExp, "regexp", (e) => "" + e, (e) => { +}), Je((e) => e instanceof RegExp, "regexp", (e) => "" + e, (e) => { const t = e.slice(1, e.lastIndexOf("/")), a = e.slice(e.lastIndexOf("/") + 1); return new RegExp(t, a); -}), Qe(Yt, "set", (e) => [...e.values()], (e) => new Set(e)), Qe(Gt, "map", (e) => [...e.entries()], (e) => new Map(e)), Qe((e) => { - return za(e) || (t = e) === 1 / 0 || t === -1 / 0; +}), Je(Yt, "set", (e) => [...e.values()], (e) => new Set(e)), Je(Gt, "map", (e) => [...e.entries()], (e) => new Map(e)), Je((e) => { + return qa(e) || (t = e) === 1 / 0 || t === -1 / 0; var t; -}, "number", (e) => za(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number), Qe((e) => e === 0 && 1 / e == -1 / 0, "number", () => "-0", Number), Qe((e) => e instanceof URL, "URL", (e) => e.toString(), (e) => new URL(e))]; +}, "number", (e) => qa(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number), Je((e) => e === 0 && 1 / e == -1 / 0, "number", () => "-0", Number), Je((e) => e instanceof URL, "URL", (e) => e.toString(), (e) => new URL(e))]; function mn(e, t, a, o) { return { isApplicable: e, annotation: t, transform: a, untransform: o }; } -var zo = mn((e, t) => Ho(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, a) => { +var Ko = mn((e, t) => $o(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, a) => { const o = a.symbolRegistry.getValue(t[1]); if (!o) throw new Error("Trying to deserialize unknown symbol"); return o; -}), zi = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, Uint8ClampedArray].reduce((e, t) => (e[t.name] = t, e), {}), Ko = mn((e) => ArrayBuffer.isView(e) && !(e instanceof DataView), (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => { - const a = zi[t[1]]; +}), Ki = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, Uint8ClampedArray].reduce((e, t) => (e[t.name] = t, e), {}), qo = mn((e) => ArrayBuffer.isView(e) && !(e instanceof DataView), (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => { + const a = Ki[t[1]]; if (!a) throw new Error("Trying to deserialize unknown typed array"); return new a(e); }); -function qo(e, t) { +function Wo(e, t) { return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1; } -var Wo = mn(qo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => { +var Go = mn(Wo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => { const a = t.classRegistry.getAllowedProps(e.constructor); if (!a) return { ...e }; const o = {}; @@ -1073,18 +1091,18 @@ var Wo = mn(qo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor) const o = a.classRegistry.getValue(t[1]); if (!o) throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"); return Object.assign(Object.create(o.prototype), e); -}), Go = mn((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, a) => { +}), Yo = mn((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, a) => { const o = a.customTransformerRegistry.findByName(t[1]); if (!o) throw new Error("Trying to deserialize unknown custom value"); return o.deserialize(e); -}), Ki = [Wo, zo, Go, Ko], Ka = (e, t) => { - const a = Fa(Ki, (l) => l.isApplicable(e, t)); +}), qi = [Go, Ko, Yo, qo], Wa = (e, t) => { + const a = Ka(qi, (l) => l.isApplicable(e, t)); if (a) return { value: a.transform(e, t), type: a.annotation(e, t) }; - const o = Fa(Fo, (l) => l.isApplicable(e, t)); + const o = Ka(zo, (l) => l.isApplicable(e, t)); return o ? { value: o.transform(e, t), type: o.annotation } : void 0; -}, Yo = {}; -Fo.forEach((e) => { - Yo[e.annotation] = e; +}, Zo = {}; +zo.forEach((e) => { + Zo[e.annotation] = e; }); k(); var Et = (e, t) => { @@ -1092,13 +1110,13 @@ var Et = (e, t) => { for (; t > 0; ) a.next(), t--; return a.next().value; }; -function Zo(e) { +function Xo(e) { if (ln(e, "__proto__")) throw new Error("__proto__ is not allowed as a property"); if (ln(e, "prototype")) throw new Error("prototype is not allowed as a property"); if (ln(e, "constructor")) throw new Error("constructor is not allowed as a property"); } -var Nn = (e, t, a) => { - if (Zo(t), t.length === 0) return a(e); +var Bn = (e, t, a) => { + if (Xo(t), t.length === 0) return a(e); let o = e; for (let n = 0; n < t.length - 1; n++) { const i = t[n]; @@ -1138,41 +1156,41 @@ var Nn = (e, t, a) => { } return e; }; -function Mn(e, t, a = []) { +function Hn(e, t, a = []) { if (!e) return; - if (!dt(e)) return void wt(e, (n, i) => Mn(n, t, [...a, ...Ht(i)])); + if (!dt(e)) return void wt(e, (n, i) => Hn(n, t, [...a, ...Ht(i)])); const [o, l] = e; l && wt(l, (n, i) => { - Mn(n, t, [...a, ...Ht(i)]); + Hn(n, t, [...a, ...Ht(i)]); }), t(o, a); } -function qi(e, t, a) { - return Mn(t, (o, l) => { - e = Nn(e, l, (n) => ((i, r, u) => { +function Wi(e, t, a) { + return Hn(t, (o, l) => { + e = Bn(e, l, (n) => ((i, r, u) => { if (!dt(r)) { - const d = Yo[r]; + const d = Zo[r]; if (!d) throw new Error("Unknown transformation: " + r); return d.untransform(i, u); } switch (r[0]) { case "symbol": - return zo.untransform(i, r, u); + return Ko.untransform(i, r, u); case "class": - return Wo.untransform(i, r, u); - case "custom": return Go.untransform(i, r, u); + case "custom": + return Yo.untransform(i, r, u); case "typed-array": - return Ko.untransform(i, r, u); + return qo.untransform(i, r, u); default: throw new Error("Unknown transformation: " + r); } })(n, o, a)); }), e; } -function Wi(e, t) { +function Gi(e, t) { function a(o, l) { const n = ((i, r) => { - Zo(r); + Xo(r); for (let u = 0; u < r.length; u++) { const d = r[u]; if (Yt(i)) i = Et(i, +d); @@ -1190,70 +1208,70 @@ function Wi(e, t) { return i; })(e, Ht(l)); o.map(Ht).forEach((i) => { - e = Nn(e, i, () => n); + e = Bn(e, i, () => n); }); } if (dt(t)) { const [o, l] = t; o.forEach((n) => { - e = Nn(e, Ht(n), () => e); + e = Bn(e, Ht(n), () => e); }), l && wt(l, a); } else wt(t, a); return e; } -var Xo = (e, t, a, o, l = [], n = [], i = /* @__PURE__ */ new Map()) => { +var Jo = (e, t, a, o, l = [], n = [], i = /* @__PURE__ */ new Map()) => { var r; - const u = Fi(e); + const u = zi(e); if (!u) { (function(h, v, w) { - const S = w.get(h); - S ? S.push(v) : w.set(h, [v]); + const T = w.get(h); + T ? T.push(v) : w.set(h, [v]); })(e, l, t); const y = i.get(e); if (y) return o ? { transformedValue: null } : y; } - if (!((y, h) => Wt(y) || dt(y) || Gt(y) || Yt(y) || qo(y, h))(e, a)) { - const y = Ka(e, a), h = y ? { transformedValue: y.value, annotations: [y.type] } : { transformedValue: e }; + if (!((y, h) => Wt(y) || dt(y) || Gt(y) || Yt(y) || Wo(y, h))(e, a)) { + const y = Wa(e, a), h = y ? { transformedValue: y.value, annotations: [y.type] } : { transformedValue: e }; return u || i.set(e, h), h; } if (ln(n, e)) return { transformedValue: null }; - const d = Ka(e, a), m = (r = d == null ? void 0 : d.value) != null ? r : e, f = dt(m) ? [] : {}, O = {}; + const d = Wa(e, a), m = (r = d == null ? void 0 : d.value) != null ? r : e, f = dt(m) ? [] : {}, O = {}; wt(m, (y, h) => { if (h === "__proto__" || h === "constructor" || h === "prototype") throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`); - const v = Xo(y, t, a, o, [...l, h], [...n, e], i); - f[h] = v.transformedValue, dt(v.annotations) ? O[h] = v.annotations : Wt(v.annotations) && wt(v.annotations, (w, S) => { - O[$o(h) + "." + S] = w; + const v = Jo(y, t, a, o, [...l, h], [...n, e], i); + f[h] = v.transformedValue, dt(v.annotations) ? O[h] = v.annotations : Wt(v.annotations) && wt(v.annotations, (w, T) => { + O[Fo(h) + "." + T] = w; }); }); - const g = Rn(O) ? { transformedValue: f, annotations: d ? [d.type] : void 0 } : { transformedValue: f, annotations: d ? [d.type, O] : O }; + const g = Ln(O) ? { transformedValue: f, annotations: d ? [d.type] : void 0 } : { transformedValue: f, annotations: d ? [d.type, O] : O }; return u || i.set(e, g), g; }; -function Jo(e) { +function Qo(e) { return Object.prototype.toString.call(e).slice(8, -1); } -function qa(e) { - return Jo(e) === "Array"; +function Ga(e) { + return Qo(e) === "Array"; } -function Ln(e, t = {}) { - return qa(e) ? e.map((a) => Ln(a, t)) : function(a) { - if (Jo(a) !== "Object") return !1; +function $n(e, t = {}) { + return Ga(e) ? e.map((a) => $n(a, t)) : function(a) { + if (Qo(a) !== "Object") return !1; const o = Object.getPrototypeOf(a); return !!o && o.constructor === Object && o === Object.prototype; - }(e) ? [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)].reduce((a, o) => (qa(t.props) && !t.props.includes(o) || function(l, n, i, r, u) { + }(e) ? [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)].reduce((a, o) => (Ga(t.props) && !t.props.includes(o) || function(l, n, i, r, u) { const d = {}.propertyIsEnumerable.call(r, n) ? "enumerable" : "nonenumerable"; d === "enumerable" && (l[n] = i), u && d === "nonenumerable" && Object.defineProperty(l, n, { value: i, enumerable: !1, writable: !0, configurable: !0 }); - }(a, o, Ln(e[o], t), e, t.nonenumerable), a), {}) : e; + }(a, o, $n(e[o], t), e, t.nonenumerable), a), {}) : e; } k(), k(); -var Wa, Ga, Ya, Za, Xa, Ja, ge = class { +var Ya, Za, Xa, Ja, Qa, eo, ge = class { constructor({ dedupe: e = !1 } = {}) { - this.classRegistry = new Bi(), this.symbolRegistry = new Lo((t) => { + this.classRegistry = new Hi(), this.symbolRegistry = new Bo((t) => { var a; return (a = t.description) != null ? a : ""; - }), this.customTransformerRegistry = new $i(), this.allowedErrorProps = [], this.dedupe = e; + }), this.customTransformerRegistry = new Fi(), this.allowedErrorProps = [], this.dedupe = e; } serialize(e) { - const t = /* @__PURE__ */ new Map(), a = Xo(e, t, this, this.dedupe), o = { json: a.transformedValue }; + const t = /* @__PURE__ */ new Map(), a = Jo(e, t, this, this.dedupe), o = { json: a.transformedValue }; a.annotations && (o.meta = { ...o.meta, values: a.annotations }); const l = function(n, i) { const r = {}; @@ -1263,14 +1281,14 @@ var Wa, Ga, Ya, Za, Xa, Ja, ge = class { i || (d = d.map((O) => O.map(String)).sort((O, g) => O.length - g.length)); const [m, ...f] = d; m.length === 0 ? u = f.map(Sn) : r[Sn(m)] = f.map(Sn); - }), u ? Rn(r) ? [u] : [u, r] : Rn(r) ? void 0 : r; + }), u ? Ln(r) ? [u] : [u, r] : Ln(r) ? void 0 : r; }(t, this.dedupe); return l && (o.meta = { ...o.meta, referentialEqualities: l }), o; } deserialize(e) { const { json: t, meta: a } = e; - let o = Ln(t); - return a != null && a.values && (o = qi(o, a.values, this)), a != null && a.referentialEqualities && (o = Wi(o, a.referentialEqualities)), o; + let o = $n(t); + return a != null && a.values && (o = Wi(o, a.values, this)), a != null && a.referentialEqualities && (o = Gi(o, a.referentialEqualities)), o; } stringify(e) { return JSON.stringify(this.serialize(e)); @@ -1299,15 +1317,15 @@ var Wa, Ga, Ya, Za, Xa, Ja, ge = class { function je(e) { return typeof e == "function"; } -function Qo(e) { +function el(e) { return e == null; } -ge.defaultInstance = new ge(), ge.serialize = ge.defaultInstance.serialize.bind(ge.defaultInstance), ge.deserialize = ge.defaultInstance.deserialize.bind(ge.defaultInstance), ge.stringify = ge.defaultInstance.stringify.bind(ge.defaultInstance), ge.parse = ge.defaultInstance.parse.bind(ge.defaultInstance), ge.registerClass = ge.defaultInstance.registerClass.bind(ge.defaultInstance), ge.registerSymbol = ge.defaultInstance.registerSymbol.bind(ge.defaultInstance), ge.registerCustom = ge.defaultInstance.registerCustom.bind(ge.defaultInstance), ge.allowErrorProps = ge.defaultInstance.allowErrorProps.bind(ge.defaultInstance), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), (Wa = j).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ != null || (Wa.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []), (Ga = j).__VUE_DEVTOOLS_KIT_RPC_CLIENT__ != null || (Ga.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null), (Ya = j).__VUE_DEVTOOLS_KIT_RPC_SERVER__ != null || (Ya.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null), (Za = j).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ != null || (Za.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null), (Xa = j).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ != null || (Xa.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null), (Ja = j).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ != null || (Ja.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null), k(), k(), k(), k(), k(), k(), k(); +ge.defaultInstance = new ge(), ge.serialize = ge.defaultInstance.serialize.bind(ge.defaultInstance), ge.deserialize = ge.defaultInstance.deserialize.bind(ge.defaultInstance), ge.stringify = ge.defaultInstance.stringify.bind(ge.defaultInstance), ge.parse = ge.defaultInstance.parse.bind(ge.defaultInstance), ge.registerClass = ge.defaultInstance.registerClass.bind(ge.defaultInstance), ge.registerSymbol = ge.defaultInstance.registerSymbol.bind(ge.defaultInstance), ge.registerCustom = ge.defaultInstance.registerCustom.bind(ge.defaultInstance), ge.allowErrorProps = ge.defaultInstance.allowErrorProps.bind(ge.defaultInstance), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), k(), (Ya = j).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ != null || (Ya.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []), (Za = j).__VUE_DEVTOOLS_KIT_RPC_CLIENT__ != null || (Za.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null), (Xa = j).__VUE_DEVTOOLS_KIT_RPC_SERVER__ != null || (Xa.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null), (Ja = j).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ != null || (Ja.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null), (Qa = j).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ != null || (Qa.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null), (eo = j).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ != null || (eo.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null), k(), k(), k(), k(), k(), k(), k(); const ct = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e); -function ia(e) { +function ra(e) { return Number(e) >= 0; } -function Qa(e) { +function to(e) { if (!/* @__PURE__ */ function(a) { return typeof a == "object" && a !== null; }(e) || function(a) { @@ -1320,7 +1338,7 @@ function Qa(e) { } function Mt(e, t) { return Object.keys(t).forEach((a) => { - if (Qa(t[a]) && Qa(e[a])) return e[a] || (e[a] = {}), void Mt(e[a], t[a]); + if (to(t[a]) && to(e[a])) return e[a] || (e[a] = {}), void Mt(e[a], t[a]); e[a] = t[a]; }), e; } @@ -1328,11 +1346,11 @@ function Lt(e) { const t = e.split("."); if (!t.length) return ""; let a = String(t[0]); - for (let o = 1; o < t.length; o++) ia(t[o]) ? a += `[${t[o]}]` : a += `.${t[o]}`; + for (let o = 1; o < t.length; o++) ra(t[o]) ? a += `[${t[o]}]` : a += `.${t[o]}`; return a; } -const Gi = {}; -function eo(e, t, a) { +const Yi = {}; +function no(e, t, a) { typeof a.value == "object" && (a.value = fe(a.value)), a.enumerable && !a.get && !a.set && a.configurable && a.writable && t !== "__proto__" ? e[t] = a.value : Object.defineProperty(e, t, a); } function fe(e) { @@ -1343,16 +1361,16 @@ function fe(e) { })) : n === "[object Map]" ? (o = /* @__PURE__ */ new Map(), e.forEach(function(i, r) { o.set(fe(r), fe(i)); })) : n === "[object Date]" ? o = /* @__PURE__ */ new Date(+e) : n === "[object RegExp]" ? o = new RegExp(e.source, e.flags) : n === "[object DataView]" ? o = new e.constructor(fe(e.buffer)) : n === "[object ArrayBuffer]" ? o = e.slice(0) : n.slice(-6) === "Array]" && (o = new e.constructor(e)), o) { - for (a = Object.getOwnPropertySymbols(e); l < a.length; l++) eo(o, a[l], Object.getOwnPropertyDescriptor(e, a[l])); - for (l = 0, a = Object.getOwnPropertyNames(e); l < a.length; l++) Object.hasOwnProperty.call(o, t = a[l]) && o[t] === e[t] || eo(o, t, Object.getOwnPropertyDescriptor(e, t)); + for (a = Object.getOwnPropertySymbols(e); l < a.length; l++) no(o, a[l], Object.getOwnPropertyDescriptor(e, a[l])); + for (l = 0, a = Object.getOwnPropertyNames(e); l < a.length; l++) Object.hasOwnProperty.call(o, t = a[l]) && o[t] === e[t] || no(o, t, Object.getOwnPropertyDescriptor(e, t)); } return o || e; } -const ra = Symbol("vee-validate-form"), Yi = Symbol("vee-validate-form-context"), Zi = Symbol("vee-validate-field-instance"), cn = Symbol("Default empty value"), Xi = typeof window < "u"; -function Bn(e) { +const sa = Symbol("vee-validate-form"), Zi = Symbol("vee-validate-form-context"), Xi = Symbol("vee-validate-field-instance"), cn = Symbol("Default empty value"), Ji = typeof window < "u"; +function Fn(e) { return je(e) && !!e.__locatorRef; } -function We(e) { +function qe(e) { return !!e && je(e.parse) && e.__type === "VVTypedSchema"; } function pn(e) { @@ -1364,19 +1382,19 @@ function Zt(e) { function hn(e) { return /^\[.+\]$/i.test(e); } -function to(e) { +function ao(e) { return e.tagName === "SELECT"; } -function Ji(e, t) { +function Qi(e, t) { return !function(a, o) { const l = ![!1, null, void 0, 0].includes(o.multiple) && !Number.isNaN(o.multiple); return a === "select" && "multiple" in o && l; }(e, t) && t.type !== "file" && !Zt(t.type); } -function el(e) { +function tl(e) { return !!e && (!!(typeof Event < "u" && je(Event) && e instanceof Event) || !(!e || !e.srcElement)); } -function no(e, t) { +function oo(e, t) { return t in e && e[t] !== cn; } function Le(e, t) { @@ -1395,7 +1413,7 @@ function Le(e, t) { for (o of e.entries()) if (!Le(o[1], t.get(o[0]))) return !1; return !0; } - if (oo(e) && oo(t)) return e.size === t.size && e.name === t.name && e.lastModified === t.lastModified && e.type === t.type; + if (io(e) && io(t)) return e.size === t.size && e.name === t.name && e.lastModified === t.lastModified && e.type === t.type; if (e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (o of e.entries()) if (!t.has(o[0])) return !1; @@ -1409,7 +1427,7 @@ function Le(e, t) { if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags; if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf(); if (e.toString !== Object.prototype.toString) return e.toString() === t.toString(); - if ((a = (l = Object.keys(e)).length - ao(e, l)) !== Object.keys(t).length - ao(t, Object.keys(t))) return !1; + if ((a = (l = Object.keys(e)).length - lo(e, l)) !== Object.keys(t).length - lo(t, Object.keys(t))) return !1; for (o = a; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, l[o])) return !1; for (o = a; o-- != 0; ) { var n = l[o]; @@ -1419,38 +1437,38 @@ function Le(e, t) { } return e != e && t != t; } -function ao(e, t) { +function lo(e, t) { let a = 0; for (let o = t.length; o-- != 0; ) e[t[o]] === void 0 && a++; return a; } -function oo(e) { - return !!Xi && e instanceof File; +function io(e) { + return !!Ji && e instanceof File; } -function sa(e) { +function ua(e) { return hn(e) ? e.replace(/\[|\]/gi, "") : e; } function He(e, t, a) { - return e ? hn(t) ? e[sa(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o, l) => { + return e ? hn(t) ? e[ua(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o, l) => { return (ct(n = o) || Array.isArray(n)) && l in o ? o[l] : a; var n; }, e) : a; } -function et(e, t, a) { - if (hn(t)) return void (e[sa(t)] = a); +function Qe(e, t, a) { + if (hn(t)) return void (e[ua(t)] = a); const o = t.split(/\.|\[(\d+)\]/).filter(Boolean); let l = e; for (let n = 0; n < o.length; n++) { if (n === o.length - 1) return void (l[o[n]] = a); - o[n] in l && !Qo(l[o[n]]) || (l[o[n]] = ia(o[n + 1]) ? [] : {}), l = l[o[n]]; + o[n] in l && !el(l[o[n]]) || (l[o[n]] = ra(o[n + 1]) ? [] : {}), l = l[o[n]]; } } function Tn(e, t) { - Array.isArray(e) && ia(t) ? e.splice(Number(t), 1) : ct(e) && delete e[t]; + Array.isArray(e) && ra(t) ? e.splice(Number(t), 1) : ct(e) && delete e[t]; } -function lo(e, t) { - if (hn(t)) return void delete e[sa(t)]; +function ro(e, t) { + if (hn(t)) return void delete e[ua(t)]; const a = t.split(/\.|\[(\d+)\]/).filter(Boolean); let o = e; for (let i = 0; i < a.length; i++) { @@ -1458,7 +1476,7 @@ function lo(e, t) { Tn(o, a[i]); break; } - if (!(a[i] in o) || Qo(o[a[i]])) break; + if (!(a[i] in o) || el(o[a[i]])) break; o = o[a[i]]; } const l = a.map((i, r) => He(e, a.slice(0, r).join("."))); @@ -1468,18 +1486,18 @@ function lo(e, t) { function Be(e) { return Object.keys(e); } -function tl(e, t = void 0) { +function nl(e, t = void 0) { const a = ft(); return (a == null ? void 0 : a.provides[e]) || at(e, t); } -function io(e, t, a) { +function so(e, t, a) { if (Array.isArray(e)) { const o = [...e], l = o.findIndex((n) => Le(n, t)); return l >= 0 ? o.splice(l, 1) : o.push(t), o; } return Le(e, t) ? a : t; } -function ro(e, t = 0) { +function uo(e, t = 0) { let a = null, o = []; return function(...l) { return a && clearTimeout(a), a = setTimeout(() => { @@ -1488,13 +1506,13 @@ function ro(e, t = 0) { }, t), new Promise((n) => o.push(n)); }; } -function Qi(e, t) { +function er(e, t) { return ct(t) && t.number ? function(a) { const o = parseFloat(a); return isNaN(o) ? a : o; }(e) : e; } -function Hn(e, t) { +function zn(e, t) { let a; return async function(...o) { const l = e(...o); @@ -1503,7 +1521,7 @@ function Hn(e, t) { return l !== a ? n : (a = void 0, t(n, o)); }; } -function $n(e) { +function Kn(e) { return Array.isArray(e) ? e : e ? [e] : []; } function tn(e, t) { @@ -1512,22 +1530,22 @@ function tn(e, t) { return a; } function wn(e) { - if (nl(e)) return e._value; + if (al(e)) return e._value; } -function nl(e) { +function al(e) { return "_value" in e; } function fn(e) { - if (!el(e)) return e; + if (!tl(e)) return e; const t = e.target; - if (Zt(t.type) && nl(t)) return wn(t); + if (Zt(t.type) && al(t)) return wn(t); if (t.type === "file" && t.files) { const o = Array.from(t.files); return t.multiple ? o : o[0]; } - if (to(a = t) && a.multiple) return Array.from(t.options).filter((o) => o.selected && !o.disabled).map(wn); + if (ao(a = t) && a.multiple) return Array.from(t.options).filter((o) => o.selected && !o.disabled).map(wn); var a; - if (to(t)) { + if (ao(t)) { const o = Array.from(t.options).find((l) => l.selected); return o ? wn(o) : t.value; } @@ -1535,19 +1553,19 @@ function fn(e) { return o.type === "number" || o.type === "range" ? Number.isNaN(o.valueAsNumber) ? o.value : o.valueAsNumber : o.value; }(t); } -function al(e) { +function ol(e) { const t = {}; return Object.defineProperty(t, "_$$isNormalized", { value: !0, writable: !1, enumerable: !1, configurable: !1 }), e ? ct(e) && e._$$isNormalized ? e : ct(e) ? Object.keys(e).reduce((a, o) => { const l = function(n) { return n === !0 ? [] : Array.isArray(n) || ct(n) ? n : [n]; }(e[o]); - return e[o] !== !1 && (a[o] = so(l)), a; + return e[o] !== !1 && (a[o] = co(l)), a; }, t) : typeof e != "string" ? t : e.split("|").reduce((a, o) => { - const l = er(o); - return l.name && (a[l.name] = so(l.params)), a; + const l = tr(o); + return l.name && (a[l.name] = co(l.params)), a; }, t) : t; } -function so(e) { +function co(e) { const t = (a) => typeof a == "string" && a[0] === "@" ? function(o) { const l = (n) => { var i; @@ -1557,29 +1575,29 @@ function so(e) { }(a.slice(1)) : a; return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((a, o) => (a[o] = t(e[o]), a), {}); } -const er = (e) => { +const tr = (e) => { let t = []; const a = e.split(":")[0]; return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: a, params: t }; }; -let tr = Object.assign({}, { generateMessage: ({ field: e }) => `${e} is not valid.`, bails: !0, validateOnBlur: !0, validateOnChange: !0, validateOnInput: !1, validateOnModelUpdate: !0 }); -const mt = () => tr; -async function ol(e, t, a = {}) { +let nr = Object.assign({}, { generateMessage: ({ field: e }) => `${e} is not valid.`, bails: !0, validateOnBlur: !0, validateOnChange: !0, validateOnInput: !1, validateOnModelUpdate: !0 }); +const mt = () => nr; +async function ll(e, t, a = {}) { const o = a == null ? void 0 : a.bails, l = { name: (a == null ? void 0 : a.name) || "{field}", rules: t, label: a == null ? void 0 : a.label, bails: o == null || o, formData: (a == null ? void 0 : a.values) || {} }, n = await async function(i, r) { const u = i.rules; - if (We(u) || pn(u)) return async function(g, y) { - const h = We(y.rules) ? y.rules : ll(y.rules), v = await h.parse(g, { formData: y.formData }), w = []; - for (const S of v.errors) S.errors.length && w.push(...S.errors); + if (qe(u) || pn(u)) return async function(g, y) { + const h = qe(y.rules) ? y.rules : il(y.rules), v = await h.parse(g, { formData: y.formData }), w = []; + for (const T of v.errors) T.errors.length && w.push(...T.errors); return { value: v.value, errors: w }; }(r, Object.assign(Object.assign({}, i), { rules: u })); if (je(u) || Array.isArray(u)) { const g = { field: i.label || i.name, name: i.name, label: i.label, form: i.formData, value: r }, y = Array.isArray(u) ? u : [u], h = y.length, v = []; for (let w = 0; w < h; w++) { - const S = y[w], A = await S(r, g); - if (!(typeof A != "string" && !Array.isArray(A) && A)) { - if (Array.isArray(A)) v.push(...A); + const T = y[w], C = await T(r, g); + if (!(typeof C != "string" && !Array.isArray(C) && C)) { + if (Array.isArray(C)) v.push(...C); else { - const L = typeof A == "string" ? A : il(g); + const L = typeof C == "string" ? C : rl(g); v.push(L); } if (i.bails) return { errors: v }; @@ -1587,16 +1605,16 @@ async function ol(e, t, a = {}) { } return { errors: v }; } - const d = Object.assign(Object.assign({}, i), { rules: al(u) }), m = [], f = Object.keys(d.rules), O = f.length; + const d = Object.assign(Object.assign({}, i), { rules: ol(u) }), m = [], f = Object.keys(d.rules), O = f.length; for (let g = 0; g < O; g++) { - const y = f[g], h = await nr(d, r, { name: y, params: d.rules[y] }); + const y = f[g], h = await ar(d, r, { name: y, params: d.rules[y] }); if (h.error && (m.push(h.error), i.bails)) return { errors: m }; } return { errors: m }; }(l, e); return Object.assign(Object.assign({}, n), { valid: !n.errors.length }); } -function ll(e) { +function il(e) { return { __type: "VVTypedSchema", async parse(a, o) { var l; try { @@ -1614,24 +1632,24 @@ function ll(e) { } } }; } -async function nr(e, t, a) { - const o = (l = a.name, Gi[l]); +async function ar(e, t, a) { + const o = (l = a.name, Yi[l]); var l; if (!o) throw new Error(`No such validator '${a.name}' exists.`); const n = function(u, d) { - const m = (f) => Bn(f) ? f(d) : f; + const m = (f) => Fn(f) ? f(d) : f; return Array.isArray(u) ? u.map(m) : Object.keys(u).reduce((f, O) => (f[O] = m(u[O]), f), {}); }(a.params, e.formData), i = { field: e.label || e.name, name: e.name, label: e.label, value: t, form: e.formData, rule: Object.assign(Object.assign({}, a), { params: n }) }, r = await o(t, n, i); - return typeof r == "string" ? { error: r } : { error: r ? void 0 : il(i) }; + return typeof r == "string" ? { error: r } : { error: r ? void 0 : rl(i) }; } -function il(e) { +function rl(e) { const t = mt().generateMessage; return t ? t(e) : "Field is invalid"; } -async function ar(e, t, a) { +async function or(e, t, a) { const o = Be(e).map(async (u) => { var d, m, f; - const O = (d = a == null ? void 0 : a.names) === null || d === void 0 ? void 0 : d[u], g = await ol(He(t, u), e[u], { name: (O == null ? void 0 : O.name) || u, label: O == null ? void 0 : O.label, values: t, bails: (f = (m = a == null ? void 0 : a.bailsMap) === null || m === void 0 ? void 0 : m[u]) === null || f === void 0 || f }); + const O = (d = a == null ? void 0 : a.names) === null || d === void 0 ? void 0 : d[u], g = await ll(He(t, u), e[u], { name: (O == null ? void 0 : O.name) || u, label: O == null ? void 0 : O.label, values: t, bails: (f = (m = a == null ? void 0 : a.bailsMap) === null || m === void 0 ? void 0 : m[u]) === null || f === void 0 || f }); return Object.assign(Object.assign({}, g), { path: u }); }); let l = !0; @@ -1639,8 +1657,8 @@ async function ar(e, t, a) { for (const u of n) i[u.path] = { valid: u.valid, errors: u.errors }, u.valid || (l = !1, r[u.path] = u.errors[0]); return { valid: l, results: i, errors: r, source: "schema" }; } -let uo = 0; -function or(e, t) { +let po = 0; +function lr(e, t) { const { value: a, initialValue: o, setInitialValue: l } = function(r, u, d) { const m = _e(s(u)); function f() { @@ -1649,13 +1667,13 @@ function or(e, t) { function O(v) { d ? d.setFieldInitialValue(s(r), v, !0) : m.value = v; } - const g = T(f); + const g = S(f); if (!d) return { value: _e(f()), initialValue: g, setInitialValue: O }; - const y = function(v, w, S, A) { - return nt(v) ? s(v) : v !== void 0 ? v : He(w.values, s(A), s(S)); + const y = function(v, w, T, C) { + return nt(v) ? s(v) : v !== void 0 ? v : He(w.values, s(C), s(T)); }(u, d, g, r); - return d.stageInitialValue(s(r), y, !0), { value: T({ get: () => He(d.values, s(r)), set(v) { + return d.stageInitialValue(s(r), y, !0), { value: S({ get: () => He(d.values, s(r)), set(v) { d.setFieldValue(s(r), v, !1); } }), initialValue: g, setInitialValue: O }; }(e, t.modelValue, t.form); @@ -1667,28 +1685,28 @@ function or(e, t) { const { errors: r, setErrors: u } = function() { const O = _e([]); return { errors: O, setErrors: (g) => { - O.value = $n(g); + O.value = Kn(g); } }; - }(), d = uo >= Number.MAX_SAFE_INTEGER ? 0 : ++uo, m = function(O, g, y, h) { - const v = T(() => { - var S, A, L; - return (L = (A = (S = N(h)) === null || S === void 0 ? void 0 : S.describe) === null || A === void 0 ? void 0 : A.call(S).required) !== null && L !== void 0 && L; - }), w = Vt({ touched: !1, pending: !1, valid: !0, required: v, validated: !!s(y).length, initialValue: T(() => s(g)), dirty: T(() => !Le(s(O), s(g))) }); - return qe(y, (S) => { - w.valid = !S.length; + }(), d = po >= Number.MAX_SAFE_INTEGER ? 0 : ++po, m = function(O, g, y, h) { + const v = S(() => { + var T, C, L; + return (L = (C = (T = N(h)) === null || T === void 0 ? void 0 : T.describe) === null || C === void 0 ? void 0 : C.call(T).required) !== null && L !== void 0 && L; + }), w = Vt({ touched: !1, pending: !1, valid: !0, required: v, validated: !!s(y).length, initialValue: S(() => s(g)), dirty: S(() => !Le(s(O), s(g))) }); + return et(y, (T) => { + w.valid = !T.length; }, { immediate: !0, flush: "sync" }), w; }(a, o, r, t.schema); return { id: d, path: e, value: a, initialValue: o, meta: m, flags: { pendingUnmount: { [d]: !1 }, pendingReset: !1 }, errors: r, setState: f }; } - const n = t.form.createPathState(e, { bails: t.bails, label: t.label, type: t.type, validate: t.validate, schema: t.schema }), i = T(() => n.errors); + const n = t.form.createPathState(e, { bails: t.bails, label: t.label, type: t.type, validate: t.validate, schema: t.schema }), i = S(() => n.errors); return { id: Array.isArray(n.id) ? n.id[n.id.length - 1] : n.id, path: e, value: a, errors: i, meta: n, initialValue: o, flags: n.__flags, setState: function(r) { var u, d, m; "value" in r && (a.value = r.value), "errors" in r && ((u = t.form) === null || u === void 0 || u.setFieldError(s(e), r.errors)), "touched" in r && ((d = t.form) === null || d === void 0 || d.setFieldTouched(s(e), (m = r.touched) !== null && m !== void 0 && m)), "initialValue" in r && l(r.initialValue); } }; } -const $t = {}, Ft = {}, zt = "vee-validate-inspector", lr = 12405579, ir = 448379, rr = 5522283, vn = 16777215, Fn = 0, sr = 218007, ur = 12157168, dr = 16099682, cr = 12304330; +const $t = {}, Ft = {}, zt = "vee-validate-inspector", ir = 12405579, rr = 448379, sr = 5522283, vn = 16777215, qn = 0, ur = 218007, dr = 12157168, cr = 16099682, pr = 12304330; let ht, Se = null; -function rl(e) { +function sl(e) { var t, a; process.env.NODE_ENV !== "production" && (t = { id: "vee-validate-devtools-plugin", label: "VeeValidate Plugin", packageName: "vee-validate", homepage: "https://vee-validate.logaretm.com/v4", app: e, logo: "https://vee-validate.logaretm.com/v4/logo.png" }, a = (o) => { ht = o, o.addInspector({ id: zt, icon: "rule", label: "vee-validate", noSelectionText: "Select a vee-validate node to inspect", actions: [{ icon: "done_outline", tooltip: "Validate selected item", action: async () => { @@ -1698,8 +1716,8 @@ function rl(e) { } }] }), o.on.getInspectorTree((l) => { if (l.inspectorId !== zt) return; const n = Object.values($t), i = Object.values(Ft); - l.rootNodes = [...n.map(pr), ...i.map((r) => function(u, d) { - return { id: zn(d, u), label: s(u.name), tags: sl(!1, 1, u.type, u.meta.valid, d) }; + l.rootNodes = [...n.map(fr), ...i.map((r) => function(u, d) { + return { id: Wn(d, u), label: s(u.name), tags: ul(!1, 1, u.type, u.meta.valid, d) }; }(r))]; }), o.on.getInspectorState((l) => { if (l.inspectorId !== zt) return; @@ -1720,13 +1738,13 @@ function rl(e) { return o.unhighlightElement(), n && u === "form" ? (l.state = function(d) { const { errorBag: m, meta: f, values: O, isSubmitting: g, isValidating: y, submitCount: h } = d; return { "Form state": [{ key: "submitCount", value: h.value }, { key: "isSubmitting", value: g.value }, { key: "isValidating", value: y.value }, { key: "touched", value: f.value.touched }, { key: "dirty", value: f.value.dirty }, { key: "valid", value: f.value.valid }, { key: "initialValues", value: f.value.initialValues }, { key: "currentValues", value: O }, { key: "errors", value: Be(m.value).reduce((v, w) => { - var S; - const A = (S = m.value[w]) === null || S === void 0 ? void 0 : S[0]; - return A && (v[w] = A), v; + var T; + const C = (T = m.value[w]) === null || T === void 0 ? void 0 : T[0]; + return C && (v[w] = C), v; }, {}) }] }; - }(n), Se = { type: "form", form: n }, void o.highlightElement(n._vm)) : r && u === "pathState" && n ? (l.state = co(r), void (Se = { type: "pathState", state: r, form: n })) : i && u === "field" ? (l.state = co({ errors: i.errors.value, dirty: i.meta.dirty, valid: i.meta.valid, touched: i.meta.touched, value: i.value.value, initialValue: i.meta.initialValue }), Se = { field: i, type: "field" }, void o.highlightElement(i._vm)) : (Se = null, void o.unhighlightElement()); + }(n), Se = { type: "form", form: n }, void o.highlightElement(n._vm)) : r && u === "pathState" && n ? (l.state = fo(r), void (Se = { type: "pathState", state: r, form: n })) : i && u === "field" ? (l.state = fo({ errors: i.errors.value, dirty: i.meta.dirty, valid: i.meta.valid, touched: i.meta.touched, value: i.value.value, initialValue: i.meta.initialValue }), Se = { field: i, type: "field" }, void o.highlightElement(i._vm)) : (Se = null, void o.unhighlightElement()); }); - }, No.setupDevToolsPlugin(t, a)); + }, Mo.setupDevToolsPlugin(t, a)); } const It = /* @__PURE__ */ function(e, t) { let a, o; @@ -1739,130 +1757,130 @@ const It = /* @__PURE__ */ function(e, t) { await Ke(), ht == null || ht.sendInspectorState(zt), ht == null || ht.sendInspectorTree(zt); }, 100); }, 100); -function pr(e) { - const { textColor: t, bgColor: a } = ul(e.meta.value.valid), o = {}; +function fr(e) { + const { textColor: t, bgColor: a } = dl(e.meta.value.valid), o = {}; Object.values(e.getAllPathStates()).forEach((n) => { - et(o, N(n.path), function(i, r) { - return { id: zn(r, i), label: N(i.path), tags: sl(i.multiple, i.fieldsCount, i.type, i.valid, r) }; + Qe(o, N(n.path), function(i, r) { + return { id: Wn(r, i), label: N(i.path), tags: ul(i.multiple, i.fieldsCount, i.type, i.valid, r) }; }(n, e)); }); const { children: l } = function n(i, r = []) { const u = [...r].pop(); return "id" in i ? Object.assign(Object.assign({}, i), { label: u || i.label }) : ct(i) ? { id: `${r.join(".")}`, label: u || "", children: Object.keys(i).map((d) => n(i[d], [...r, d])) } : Array.isArray(i) ? { id: `${r.join(".")}`, label: `${u}[]`, children: i.map((d, m) => n(d, [...r, String(m)])) } : { id: "", label: "", children: [] }; }(o); - return { id: zn(e), label: e.name, children: l, tags: [{ label: "Form", textColor: t, backgroundColor: a }, { label: `${e.getAllPathStates().length} fields`, textColor: vn, backgroundColor: rr }] }; + return { id: Wn(e), label: e.name, children: l, tags: [{ label: "Form", textColor: t, backgroundColor: a }, { label: `${e.getAllPathStates().length} fields`, textColor: vn, backgroundColor: sr }] }; } -function sl(e, t, a, o, l) { - const { textColor: n, bgColor: i } = ul(o); - return [e ? void 0 : { label: "Field", textColor: n, backgroundColor: i }, l ? void 0 : { label: "Standalone", textColor: Fn, backgroundColor: cr }, a === "checkbox" ? { label: "Checkbox", textColor: vn, backgroundColor: sr } : void 0, a === "radio" ? { label: "Radio", textColor: vn, backgroundColor: ur } : void 0, e ? { label: "Multiple", textColor: Fn, backgroundColor: dr } : void 0].filter(Boolean); +function ul(e, t, a, o, l) { + const { textColor: n, bgColor: i } = dl(o); + return [e ? void 0 : { label: "Field", textColor: n, backgroundColor: i }, l ? void 0 : { label: "Standalone", textColor: qn, backgroundColor: pr }, a === "checkbox" ? { label: "Checkbox", textColor: vn, backgroundColor: ur } : void 0, a === "radio" ? { label: "Radio", textColor: vn, backgroundColor: dr } : void 0, e ? { label: "Multiple", textColor: qn, backgroundColor: cr } : void 0].filter(Boolean); } -function zn(e, t) { +function Wn(e, t) { const a = t ? "path" in t ? "pathState" : "field" : "form", o = t ? "path" in t ? t == null ? void 0 : t.path : N(t == null ? void 0 : t.name) : "", l = { f: e == null ? void 0 : e.formId, ff: (t == null ? void 0 : t.id) || o, type: a }; return btoa(encodeURIComponent(JSON.stringify(l))); } -function co(e) { +function fo(e) { return { "Field state": [{ key: "errors", value: e.errors }, { key: "initialValue", value: e.initialValue }, { key: "currentValue", value: e.value }, { key: "touched", value: e.touched }, { key: "dirty", value: e.dirty }, { key: "valid", value: e.valid }] }; } -function ul(e) { - return { bgColor: e ? ir : lr, textColor: e ? Fn : vn }; +function dl(e) { + return { bgColor: e ? rr : ir, textColor: e ? qn : vn }; } function At(e, t, a) { return Zt(a == null ? void 0 : a.type) ? function(o, l, n) { - const i = n != null && n.standalone ? void 0 : tl(ra), r = n == null ? void 0 : n.checkedValue, u = n == null ? void 0 : n.uncheckedValue; + const i = n != null && n.standalone ? void 0 : nl(sa), r = n == null ? void 0 : n.checkedValue, u = n == null ? void 0 : n.uncheckedValue; function d(m) { - const f = m.handleChange, O = T(() => { + const f = m.handleChange, O = S(() => { const y = N(m.value), h = N(r); return Array.isArray(y) ? y.findIndex((v) => Le(v, h)) >= 0 : Le(h, y); }); function g(y, h = !0) { var v, w; if (O.value === ((v = y == null ? void 0 : y.target) === null || v === void 0 ? void 0 : v.checked)) return void (h && m.validate()); - const S = N(o), A = i == null ? void 0 : i.getPathState(S), L = fn(y); + const T = N(o), C = i == null ? void 0 : i.getPathState(T), L = fn(y); let $ = (w = N(r)) !== null && w !== void 0 ? w : L; - i && (A != null && A.multiple) && A.type === "checkbox" ? $ = io(He(i.values, S) || [], $, void 0) : (n == null ? void 0 : n.type) === "checkbox" && ($ = io(N(m.value), $, N(u))), f($, h); + i && (C != null && C.multiple) && C.type === "checkbox" ? $ = so(He(i.values, T) || [], $, void 0) : (n == null ? void 0 : n.type) === "checkbox" && ($ = so(N(m.value), $, N(u))), f($, h); } return Object.assign(Object.assign({}, m), { checked: O, checkedValue: r, uncheckedValue: u, handleChange: g }); } - return d(po(o, l, n)); - }(e, t, a) : po(e, t, a); + return d(vo(o, l, n)); + }(e, t, a) : vo(e, t, a); } -function po(e, t, a) { +function vo(e, t, a) { const { initialValue: o, validateOnMount: l, bails: n, type: i, checkedValue: r, label: u, validateOnValueUpdate: d, uncheckedValue: m, controlled: f, keepValueOnUnmount: O, syncVModel: g, form: y } = function(b) { const F = () => ({ initialValue: void 0, validateOnMount: !1, bails: !0, label: void 0, validateOnValueUpdate: !0, keepValueOnUnmount: void 0, syncVModel: !1, controlled: !0 }), ue = !!(b != null && b.syncVModel), H = typeof (b == null ? void 0 : b.syncVModel) == "string" ? b.syncVModel : (b == null ? void 0 : b.modelPropName) || "modelValue", ce = ue && !("initialValue" in (b || {})) ? Cn(ft(), H) : b == null ? void 0 : b.initialValue; if (!b) return Object.assign(Object.assign({}, F()), { initialValue: ce }); const oe = "valueProp" in b ? b.valueProp : b.checkedValue, Ie = "standalone" in b ? !b.standalone : b.controlled, he = (b == null ? void 0 : b.modelPropName) || (b == null ? void 0 : b.syncVModel) || !1; return Object.assign(Object.assign(Object.assign({}, F()), b || {}), { initialValue: ce, controlled: Ie == null || Ie, checkedValue: oe, syncVModel: he }); - }(a), h = f ? tl(ra) : void 0, v = y || h, w = T(() => Lt(N(e))), S = T(() => { + }(a), h = f ? nl(sa) : void 0, v = y || h, w = S(() => Lt(N(e))), T = S(() => { if (N(v == null ? void 0 : v.schema)) return; const b = s(t); - return pn(b) || We(b) || je(b) || Array.isArray(b) ? b : al(b); - }), A = !je(S.value) && We(N(t)), { id: L, value: $, initialValue: de, meta: J, setState: se, errors: ae, flags: ee } = or(w, { modelValue: o, form: v, bails: n, label: u, type: i, validate: S.value ? te : void 0, schema: A ? t : void 0 }), C = T(() => ae.value[0]); + return pn(b) || qe(b) || je(b) || Array.isArray(b) ? b : ol(b); + }), C = !je(T.value) && qe(N(t)), { id: L, value: $, initialValue: de, meta: Q, setState: se, errors: ae, flags: te } = lr(w, { modelValue: o, form: v, bails: n, label: u, type: i, validate: T.value ? ne : void 0, schema: C ? t : void 0 }), A = S(() => ae.value[0]); g && function({ prop: b, value: F, handleChange: ue, shouldValidate: H }) { const ce = ft(); if (!ce || !b) return void (process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.")); const oe = typeof b == "string" ? b : "modelValue", Ie = `update:${oe}`; - oe in ce.props && (qe(F, (he) => { + oe in ce.props && (et(F, (he) => { Le(he, Cn(ce, oe)) || ce.emit(Ie, he); - }), qe(() => Cn(ce, oe), (he) => { + }), et(() => Cn(ce, oe), (he) => { if (he === cn && F.value === void 0) return; const V = he === cn ? void 0 : he; Le(V, F.value) || ue(V, H()); })); - }({ value: $, prop: g, handleChange: X, shouldValidate: () => d && !ee.pendingReset }); + }({ value: $, prop: g, handleChange: J, shouldValidate: () => d && !te.pendingReset }); async function B(b) { var F, ue; if (v != null && v.validateSchema) { const { results: H } = await v.validateSchema(b); return (F = H[N(w)]) !== null && F !== void 0 ? F : { valid: !0, errors: [] }; } - return S.value ? ol($.value, S.value, { name: N(w), label: N(u), values: (ue = v == null ? void 0 : v.values) !== null && ue !== void 0 ? ue : {}, bails: n }) : { valid: !0, errors: [] }; + return T.value ? ll($.value, T.value, { name: N(w), label: N(u), values: (ue = v == null ? void 0 : v.values) !== null && ue !== void 0 ? ue : {}, bails: n }) : { valid: !0, errors: [] }; } - const ie = Hn(async () => (J.pending = !0, J.validated = !0, B("validated-only")), (b) => (ee.pendingUnmount[Y.id] || (se({ errors: b.errors }), J.pending = !1, J.valid = b.valid), b)), z = Hn(async () => B("silent"), (b) => (J.valid = b.valid, b)); - function te(b) { + const ie = zn(async () => (Q.pending = !0, Q.validated = !0, B("validated-only")), (b) => (te.pendingUnmount[Z.id] || (se({ errors: b.errors }), Q.pending = !1, Q.valid = b.valid), b)), z = zn(async () => B("silent"), (b) => (Q.valid = b.valid, b)); + function ne(b) { return (b == null ? void 0 : b.mode) === "silent" ? z() : ie(); } - function X(b, F = !0) { + function J(b, F = !0) { le(fn(b), F); } function K(b) { var F; const ue = b && "value" in b ? b.value : de.value; - se({ value: fe(ue), initialValue: fe(ue), touched: (F = b == null ? void 0 : b.touched) !== null && F !== void 0 && F, errors: (b == null ? void 0 : b.errors) || [] }), J.pending = !1, J.validated = !1, z(); + se({ value: fe(ue), initialValue: fe(ue), touched: (F = b == null ? void 0 : b.touched) !== null && F !== void 0 && F, errors: (b == null ? void 0 : b.errors) || [] }), Q.pending = !1, Q.validated = !1, z(); } - Wn(() => { + Gn(() => { if (l) return ie(); v && v.validateSchema || z(); }); const G = ft(); function le(b, F = !0) { - $.value = G && g ? Qi(b, G.props.modelModifiers) : b, (F ? ie : z)(); + $.value = G && g ? er(b, G.props.modelModifiers) : b, (F ? ie : z)(); } - const ne = T({ get: () => $.value, set(b) { + const Y = S({ get: () => $.value, set(b) { le(b, d); - } }), Y = { id: L, name: w, label: u, value: ne, meta: J, errors: ae, errorMessage: C, type: i, checkedValue: r, uncheckedValue: m, bails: n, keepValueOnUnmount: O, resetField: K, handleReset: () => K(), validate: te, handleChange: X, handleBlur: (b, F = !1) => { - J.touched = !0, F && ie(); + } }), Z = { id: L, name: w, label: u, value: Y, meta: Q, errors: ae, errorMessage: A, type: i, checkedValue: r, uncheckedValue: m, bails: n, keepValueOnUnmount: O, resetField: K, handleReset: () => K(), validate: ne, handleChange: J, handleBlur: (b, F = !1) => { + Q.touched = !0, F && ie(); }, setState: se, setTouched: function(b) { - J.touched = b; + Q.touched = b; }, setErrors: function(b) { se({ errors: Array.isArray(b) ? b : [b] }); }, setValue: le }; - if (Kt(Zi, Y), nt(t) && typeof s(t) != "function" && qe(t, (b, F) => { - Le(b, F) || (J.validated ? ie() : z()); - }, { deep: !0 }), process.env.NODE_ENV !== "production" && (Y._vm = ft(), qe(() => Object.assign(Object.assign({ errors: ae.value }, J), { value: $.value }), It, { deep: !0 }), v || function(b) { + if (Kt(Xi, Z), nt(t) && typeof s(t) != "function" && et(t, (b, F) => { + Le(b, F) || (Q.validated ? ie() : z()); + }, { deep: !0 }), process.env.NODE_ENV !== "production" && (Z._vm = ft(), et(() => Object.assign(Object.assign({ errors: ae.value }, Q), { value: $.value }), It, { deep: !0 }), v || function(b) { const F = ft(); if (!ht) { const ue = F == null ? void 0 : F.appContext.app; if (!ue) return; - rl(ue); + sl(ue); } Ft[b.id] = Object.assign({}, b), Ft[b.id]._vm = F, yt(() => { delete Ft[b.id], It(); }), It(); - }(Y)), !v) return Y; - const pe = T(() => { - const b = S.value; - return !b || je(b) || pn(b) || We(b) || Array.isArray(b) ? {} : Object.keys(b).reduce((F, ue) => { - const H = (ce = b[ue], Array.isArray(ce) ? ce.filter(Bn) : Be(ce).filter((oe) => Bn(ce[oe])).map((oe) => ce[oe])).map((oe) => oe.__locatorRef).reduce((oe, Ie) => { + }(Z)), !v) return Z; + const pe = S(() => { + const b = T.value; + return !b || je(b) || pn(b) || qe(b) || Array.isArray(b) ? {} : Object.keys(b).reduce((F, ue) => { + const H = (ce = b[ue], Array.isArray(ce) ? ce.filter(Fn) : Be(ce).filter((oe) => Fn(ce[oe])).map((oe) => ce[oe])).map((oe) => oe.__locatorRef).reduce((oe, Ie) => { const he = He(v.values, Ie) || v.values[Ie]; return he !== void 0 && (oe[Ie] = he), oe; }, {}); @@ -1870,82 +1888,82 @@ function po(e, t, a) { return Object.assign(F, H), F; }, {}); }); - return qe(pe, (b, F) => { - Object.keys(b).length && !Le(b, F) && (J.validated ? ie() : z()); - }), pl(() => { + return et(pe, (b, F) => { + Object.keys(b).length && !Le(b, F) && (Q.validated ? ie() : z()); + }), fl(() => { var b; - const F = (b = N(Y.keepValueOnUnmount)) !== null && b !== void 0 ? b : N(v.keepValuesOnUnmount), ue = N(w); - if (F || !v || ee.pendingUnmount[Y.id]) return void (v == null || v.removePathState(ue, L)); - ee.pendingUnmount[Y.id] = !0; + const F = (b = N(Z.keepValueOnUnmount)) !== null && b !== void 0 ? b : N(v.keepValuesOnUnmount), ue = N(w); + if (F || !v || te.pendingUnmount[Z.id]) return void (v == null || v.removePathState(ue, L)); + te.pendingUnmount[Z.id] = !0; const H = v.getPathState(ue); - if (Array.isArray(H == null ? void 0 : H.id) && (H != null && H.multiple) ? H != null && H.id.includes(Y.id) : (H == null ? void 0 : H.id) === Y.id) { + if (Array.isArray(H == null ? void 0 : H.id) && (H != null && H.multiple) ? H != null && H.id.includes(Z.id) : (H == null ? void 0 : H.id) === Z.id) { if (H != null && H.multiple && Array.isArray(H.value)) { - const ce = H.value.findIndex((oe) => Le(oe, N(Y.checkedValue))); + const ce = H.value.findIndex((oe) => Le(oe, N(Z.checkedValue))); if (ce > -1) { const oe = [...H.value]; oe.splice(ce, 1), v.setFieldValue(ue, oe); } - Array.isArray(H.id) && H.id.splice(H.id.indexOf(Y.id), 1); + Array.isArray(H.id) && H.id.splice(H.id.indexOf(Z.id), 1); } else v.unsetPathValue(N(w)); v.removePathState(ue, L); } - }), Y; + }), Z; } function Cn(e, t) { if (e) return e.props[t]; } -const fr = Ye({ name: "Field", inheritAttrs: !1, props: { as: { type: [String, Object], default: void 0 }, name: { type: String, required: !0 }, rules: { type: [Object, String, Function], default: void 0 }, validateOnMount: { type: Boolean, default: !1 }, validateOnBlur: { type: Boolean, default: void 0 }, validateOnChange: { type: Boolean, default: void 0 }, validateOnInput: { type: Boolean, default: void 0 }, validateOnModelUpdate: { type: Boolean, default: void 0 }, bails: { type: Boolean, default: () => mt().bails }, label: { type: String, default: void 0 }, uncheckedValue: { type: null, default: void 0 }, modelValue: { type: null, default: cn }, modelModifiers: { type: null, default: () => ({}) }, "onUpdate:modelValue": { type: null, default: void 0 }, standalone: { type: Boolean, default: !1 }, keepValue: { type: Boolean, default: void 0 } }, setup(e, t) { - const a = xt(e, "rules"), o = xt(e, "name"), l = xt(e, "label"), n = xt(e, "uncheckedValue"), i = xt(e, "keepValue"), { errors: r, value: u, errorMessage: d, validate: m, handleChange: f, handleBlur: O, setTouched: g, resetField: y, handleReset: h, meta: v, checked: w, setErrors: S, setValue: A } = At(o, a, { validateOnMount: e.validateOnMount, bails: e.bails, standalone: e.standalone, type: t.attrs.type, initialValue: vr(e, t), checkedValue: t.attrs.value, uncheckedValue: n, label: l, validateOnValueUpdate: e.validateOnModelUpdate, keepValueOnUnmount: i, syncVModel: !0 }), L = function(ae, ee = !0) { - f(ae, ee); - }, $ = T(() => { - const { validateOnInput: ae, validateOnChange: ee, validateOnBlur: C, validateOnModelUpdate: B } = function(z) { - var te, X, K, G; - const { validateOnInput: le, validateOnChange: ne, validateOnBlur: Y, validateOnModelUpdate: pe } = mt(); - return { validateOnInput: (te = z.validateOnInput) !== null && te !== void 0 ? te : le, validateOnChange: (X = z.validateOnChange) !== null && X !== void 0 ? X : ne, validateOnBlur: (K = z.validateOnBlur) !== null && K !== void 0 ? K : Y, validateOnModelUpdate: (G = z.validateOnModelUpdate) !== null && G !== void 0 ? G : pe }; +const vr = Ge({ name: "Field", inheritAttrs: !1, props: { as: { type: [String, Object], default: void 0 }, name: { type: String, required: !0 }, rules: { type: [Object, String, Function], default: void 0 }, validateOnMount: { type: Boolean, default: !1 }, validateOnBlur: { type: Boolean, default: void 0 }, validateOnChange: { type: Boolean, default: void 0 }, validateOnInput: { type: Boolean, default: void 0 }, validateOnModelUpdate: { type: Boolean, default: void 0 }, bails: { type: Boolean, default: () => mt().bails }, label: { type: String, default: void 0 }, uncheckedValue: { type: null, default: void 0 }, modelValue: { type: null, default: cn }, modelModifiers: { type: null, default: () => ({}) }, "onUpdate:modelValue": { type: null, default: void 0 }, standalone: { type: Boolean, default: !1 }, keepValue: { type: Boolean, default: void 0 } }, setup(e, t) { + const a = xt(e, "rules"), o = xt(e, "name"), l = xt(e, "label"), n = xt(e, "uncheckedValue"), i = xt(e, "keepValue"), { errors: r, value: u, errorMessage: d, validate: m, handleChange: f, handleBlur: O, setTouched: g, resetField: y, handleReset: h, meta: v, checked: w, setErrors: T, setValue: C } = At(o, a, { validateOnMount: e.validateOnMount, bails: e.bails, standalone: e.standalone, type: t.attrs.type, initialValue: mr(e, t), checkedValue: t.attrs.value, uncheckedValue: n, label: l, validateOnValueUpdate: e.validateOnModelUpdate, keepValueOnUnmount: i, syncVModel: !0 }), L = function(ae, te = !0) { + f(ae, te); + }, $ = S(() => { + const { validateOnInput: ae, validateOnChange: te, validateOnBlur: A, validateOnModelUpdate: B } = function(z) { + var ne, J, K, G; + const { validateOnInput: le, validateOnChange: Y, validateOnBlur: Z, validateOnModelUpdate: pe } = mt(); + return { validateOnInput: (ne = z.validateOnInput) !== null && ne !== void 0 ? ne : le, validateOnChange: (J = z.validateOnChange) !== null && J !== void 0 ? J : Y, validateOnBlur: (K = z.validateOnBlur) !== null && K !== void 0 ? K : Z, validateOnModelUpdate: (G = z.validateOnModelUpdate) !== null && G !== void 0 ? G : pe }; }(e); return { name: e.name, onBlur: function(z) { - O(z, C), je(t.attrs.onBlur) && t.attrs.onBlur(z); + O(z, A), je(t.attrs.onBlur) && t.attrs.onBlur(z); }, onInput: function(z) { L(z, ae), je(t.attrs.onInput) && t.attrs.onInput(z); }, onChange: function(z) { - L(z, ee), je(t.attrs.onChange) && t.attrs.onChange(z); + L(z, te), je(t.attrs.onChange) && t.attrs.onChange(z); }, "onUpdate:modelValue": (z) => L(z, B) }; - }), de = T(() => { + }), de = S(() => { const ae = Object.assign({}, $.value); - return Zt(t.attrs.type) && w && (ae.checked = w.value), Ji(fo(e, t), t.attrs) && (ae.value = u.value), ae; - }), J = T(() => Object.assign(Object.assign({}, $.value), { modelValue: u.value })); + return Zt(t.attrs.type) && w && (ae.checked = w.value), Qi(mo(e, t), t.attrs) && (ae.value = u.value), ae; + }), Q = S(() => Object.assign(Object.assign({}, $.value), { modelValue: u.value })); function se() { - return { field: de.value, componentField: J.value, value: u.value, meta: v, errors: r.value, errorMessage: d.value, validate: m, resetField: y, handleChange: L, handleInput: (ae) => L(ae, !1), handleReset: h, handleBlur: $.value.onBlur, setTouched: g, setErrors: S, setValue: A }; + return { field: de.value, componentField: Q.value, value: u.value, meta: v, errors: r.value, errorMessage: d.value, validate: m, resetField: y, handleChange: L, handleInput: (ae) => L(ae, !1), handleReset: h, handleBlur: $.value.onBlur, setTouched: g, setErrors: T, setValue: C }; } - return t.expose({ value: u, meta: v, errors: r, errorMessage: d, setErrors: S, setTouched: g, setValue: A, reset: y, validate: m, handleChange: f }), () => { - const ae = go(fo(e, t)), ee = function(C, B, ie) { - return B.slots.default ? typeof C != "string" && C ? { default: () => { - var z, te; - return (te = (z = B.slots).default) === null || te === void 0 ? void 0 : te.call(z, ie()); + return t.expose({ value: u, meta: v, errors: r, errorMessage: d, setErrors: T, setTouched: g, setValue: C, reset: y, validate: m, handleChange: f }), () => { + const ae = go(mo(e, t)), te = function(A, B, ie) { + return B.slots.default ? typeof A != "string" && A ? { default: () => { + var z, ne; + return (ne = (z = B.slots).default) === null || ne === void 0 ? void 0 : ne.call(z, ie()); } } : B.slots.default(ie()) : B.slots.default; }(ae, t, se); - return ae ? hl(ae, Object.assign(Object.assign({}, t.attrs), de.value), ee) : ee; + return ae ? gl(ae, Object.assign(Object.assign({}, t.attrs), de.value), te) : te; }; } }); -function fo(e, t) { +function mo(e, t) { let a = e.as || ""; return e.as || t.slots.default || (a = "input"), a; } -function vr(e, t) { - return Zt(t.attrs.type) ? no(e, "modelValue") ? e.modelValue : void 0 : no(e, "modelValue") ? e.modelValue : t.attrs.value; +function mr(e, t) { + return Zt(t.attrs.type) ? oo(e, "modelValue") ? e.modelValue : void 0 : oo(e, "modelValue") ? e.modelValue : t.attrs.value; } -const mr = fr; -let hr = 0; +const hr = vr; +let gr = 0; const nn = ["bails", "fieldsCount", "id", "multiple", "type", "validate"]; -function vo(e) { +function ho(e) { const t = (e == null ? void 0 : e.initialValues) || {}, a = Object.assign({}, N(t)), o = s(e == null ? void 0 : e.validationSchema); - return o && We(o) && je(o.cast) ? fe(o.cast(a) || {}) : fe(a); + return o && qe(o) && je(o.cast) ? fe(o.cast(a) || {}) : fe(a); } -function gr(e) { +function _r(e) { var t; - const a = hr++, o = (e == null ? void 0 : e.name) || "Form"; + const a = gr++, o = (e == null ? void 0 : e.name) || "Form"; let l = 0; - const n = _e(!1), i = _e(!1), r = _e(0), u = [], d = Vt(vo(e)), m = _e([]), f = _e({}), O = _e({}), g = /* @__PURE__ */ function(p) { + const n = _e(!1), i = _e(!1), r = _e(0), u = [], d = Vt(ho(e)), m = _e([]), f = _e({}), O = _e({}), g = /* @__PURE__ */ function(p) { let c = null, _ = []; return function(...I) { const E = Ke(() => { @@ -1965,8 +1983,8 @@ function gr(e) { const I = Lt(p); f.value[I] && delete f.value[I]; } - _.errors = $n(c), _.valid = !_.errors.length; - } else typeof p == "string" && (f.value[Lt(p)] = $n(c)); + _.errors = Kn(c), _.valid = !_.errors.length; + } else typeof p == "string" && (f.value[Lt(p)] = Kn(c)); } function h(p) { Be(p).forEach((c) => { @@ -1974,79 +1992,79 @@ function gr(e) { }); } e != null && e.initialErrors && h(e.initialErrors); - const v = T(() => { + const v = S(() => { const p = m.value.reduce((c, _) => (_.errors.length && (c[N(_.path)] = _.errors), c), {}); return Object.assign(Object.assign({}, f.value), p); - }), w = T(() => Be(v.value).reduce((p, c) => { + }), w = S(() => Be(v.value).reduce((p, c) => { const _ = v.value[c]; return _ != null && _.length && (p[c] = _[0]), p; - }, {})), S = T(() => m.value.reduce((p, c) => (p[N(c.path)] = { name: N(c.path) || "", label: c.label || "" }, p), {})), A = T(() => m.value.reduce((p, c) => { + }, {})), T = S(() => m.value.reduce((p, c) => (p[N(c.path)] = { name: N(c.path) || "", label: c.label || "" }, p), {})), C = S(() => m.value.reduce((p, c) => { var _; return p[N(c.path)] = (_ = c.bails) === null || _ === void 0 || _, p; - }, {})), L = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), $ = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 && t, { initialValues: de, originalInitialValues: J, setInitialValues: se } = function(p, c, _) { - const I = vo(_), E = _e(I), U = _e(fe(I)); - function x(q, Q) { - Q != null && Q.force ? (E.value = fe(q), U.value = fe(q)) : (E.value = Mt(fe(E.value) || {}, fe(q)), U.value = Mt(fe(U.value) || {}, fe(q))), Q != null && Q.updateFields && p.value.forEach((ye) => { + }, {})), L = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), $ = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 && t, { initialValues: de, originalInitialValues: Q, setInitialValues: se } = function(p, c, _) { + const I = ho(_), E = _e(I), U = _e(fe(I)); + function x(q, ee) { + ee != null && ee.force ? (E.value = fe(q), U.value = fe(q)) : (E.value = Mt(fe(E.value) || {}, fe(q)), U.value = Mt(fe(U.value) || {}, fe(q))), ee != null && ee.updateFields && p.value.forEach((ye) => { if (ye.touched) return; const W = He(E.value, N(ye.path)); - et(c, N(ye.path), fe(W)); + Qe(c, N(ye.path), fe(W)); }); } return { initialValues: E, originalInitialValues: U, setInitialValues: x }; }(m, d, e), ae = function(p, c, _, I) { - const E = { touched: "some", pending: "some", valid: "every" }, U = T(() => !Le(c, s(_))); + const E = { touched: "some", pending: "some", valid: "every" }, U = S(() => !Le(c, s(_))); function x() { - const Q = p.value; + const ee = p.value; return Be(E).reduce((ye, W) => { const Ve = E[W]; - return ye[W] = Q[Ve]((be) => be[W]), ye; + return ye[W] = ee[Ve]((be) => be[W]), ye; }, {}); } const q = Vt(x()); - return ml(() => { - const Q = x(); - q.touched = Q.touched, q.valid = Q.valid, q.pending = Q.pending; - }), T(() => Object.assign(Object.assign({ initialValues: s(_) }, q), { valid: q.valid && !Be(I.value).length, dirty: U.value })); - }(m, d, J, w), ee = T(() => m.value.reduce((p, c) => { + return hl(() => { + const ee = x(); + q.touched = ee.touched, q.valid = ee.valid, q.pending = ee.pending; + }), S(() => Object.assign(Object.assign({ initialValues: s(_) }, q), { valid: q.valid && !Be(I.value).length, dirty: U.value })); + }(m, d, Q, w), te = S(() => m.value.reduce((p, c) => { const _ = He(d, N(c.path)); - return et(p, N(c.path), _), p; - }, {})), C = e == null ? void 0 : e.validationSchema; + return Qe(p, N(c.path), _), p; + }, {})), A = e == null ? void 0 : e.validationSchema; function B(p, c) { var _, I; - const E = T(() => He(de.value, N(p))), U = O.value[N(p)], x = (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "radio"; + const E = S(() => He(de.value, N(p))), U = O.value[N(p)], x = (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "radio"; if (U && x) { U.multiple = !0; const Ee = l++; return Array.isArray(U.id) ? U.id.push(Ee) : U.id = [U.id, Ee], U.fieldsCount++, U.__flags.pendingUnmount[Ee] = !1, U; } - const q = T(() => He(d, N(p))), Q = N(p), ye = le.findIndex((Ee) => Ee === Q); + const q = S(() => He(d, N(p))), ee = N(p), ye = le.findIndex((Ee) => Ee === ee); ye !== -1 && le.splice(ye, 1); - const W = T(() => { - var Ee, De, Ze, bt; - const ze = N(C); - if (We(ze)) return (De = (Ee = ze.describe) === null || Ee === void 0 ? void 0 : Ee.call(ze, N(p)).required) !== null && De !== void 0 && De; + const W = S(() => { + var Ee, De, Ye, bt; + const ze = N(A); + if (qe(ze)) return (De = (Ee = ze.describe) === null || Ee === void 0 ? void 0 : Ee.call(ze, N(p)).required) !== null && De !== void 0 && De; const lt = N(c == null ? void 0 : c.schema); - return !!We(lt) && (bt = (Ze = lt.describe) === null || Ze === void 0 ? void 0 : Ze.call(lt).required) !== null && bt !== void 0 && bt; - }), Ve = l++, be = Vt({ id: Ve, path: p, touched: !1, pending: !1, valid: !0, validated: !!(!((_ = L[Q]) === null || _ === void 0) && _.length), required: W, initialValue: E, errors: An([]), bails: (I = c == null ? void 0 : c.bails) !== null && I !== void 0 && I, label: c == null ? void 0 : c.label, type: (c == null ? void 0 : c.type) || "default", value: q, multiple: !1, __flags: { pendingUnmount: { [Ve]: !1 }, pendingReset: !1 }, fieldsCount: 1, validate: c == null ? void 0 : c.validate, dirty: T(() => !Le(s(q), s(E))) }); - return m.value.push(be), O.value[Q] = be, g(), w.value[Q] && !L[Q] && Ke(() => { - V(Q, { mode: "silent" }); - }), nt(p) && qe(p, (Ee) => { + return !!qe(lt) && (bt = (Ye = lt.describe) === null || Ye === void 0 ? void 0 : Ye.call(lt).required) !== null && bt !== void 0 && bt; + }), Ve = l++, be = Vt({ id: Ve, path: p, touched: !1, pending: !1, valid: !0, validated: !!(!((_ = L[ee]) === null || _ === void 0) && _.length), required: W, initialValue: E, errors: An([]), bails: (I = c == null ? void 0 : c.bails) !== null && I !== void 0 && I, label: c == null ? void 0 : c.label, type: (c == null ? void 0 : c.type) || "default", value: q, multiple: !1, __flags: { pendingUnmount: { [Ve]: !1 }, pendingReset: !1 }, fieldsCount: 1, validate: c == null ? void 0 : c.validate, dirty: S(() => !Le(s(q), s(E))) }); + return m.value.push(be), O.value[ee] = be, g(), w.value[ee] && !L[ee] && Ke(() => { + V(ee, { mode: "silent" }); + }), nt(p) && et(p, (Ee) => { g(); const De = fe(q.value); O.value[Ee] = be, Ke(() => { - et(d, Ee, De); + Qe(d, Ee, De); }); }), be; } - const ie = ro(we, 5), z = ro(we, 5), te = Hn(async (p) => await (p === "silent" ? ie() : z()), (p, [c]) => { + const ie = uo(we, 5), z = uo(we, 5), ne = zn(async (p) => await (p === "silent" ? ie() : z()), (p, [c]) => { const _ = Be(pe.errorBag.value), I = [.../* @__PURE__ */ new Set([...Be(p.results), ...m.value.map((E) => E.path), ..._])].sort().reduce((E, U) => { var x; - const q = U, Q = K(q) || function(be) { - return m.value.filter((De) => be.startsWith(N(De.path))).reduce((De, Ze) => De ? Ze.path.length > De.path.length ? Ze : De : Ze, void 0); - }(q), ye = ((x = p.results[q]) === null || x === void 0 ? void 0 : x.errors) || [], W = N(Q == null ? void 0 : Q.path) || q, Ve = function(be, Ee) { + const q = U, ee = K(q) || function(be) { + return m.value.filter((De) => be.startsWith(N(De.path))).reduce((De, Ye) => De ? Ye.path.length > De.path.length ? Ye : De : Ye, void 0); + }(q), ye = ((x = p.results[q]) === null || x === void 0 ? void 0 : x.errors) || [], W = N(ee == null ? void 0 : ee.path) || q, Ve = function(be, Ee) { return Ee ? { valid: be.valid && Ee.valid, errors: [...be.errors, ...Ee.errors] } : be; }({ errors: ye, valid: !ye.length }, E.results[W]); - return E.results[W] = Ve, Ve.valid || (E.errors[W] = Ve.errors[0]), Q && f.value[W] && delete f.value[W], Q ? (Q.valid = Ve.valid, c === "silent" || (c !== "validated-only" || Q.validated) && y(Q, Ve.errors), E) : (y(W, ye), E); + return E.results[W] = Ve, Ve.valid || (E.errors[W] = Ve.errors[0]), ee && f.value[W] && delete f.value[W], ee ? (ee.valid = Ve.valid, c === "silent" || (c !== "validated-only" || ee.validated) && y(ee, Ve.errors), E) : (y(W, ye), E); }, { valid: p.valid, results: {}, errors: {}, source: p.source }); return p.values && (I.values = p.values, I.source = p.source), Be(I.results).forEach((E) => { var U; @@ -2054,7 +2072,7 @@ function gr(e) { x && c !== "silent" && (c !== "validated-only" || x.validated) && y(x, (U = I.results[E]) === null || U === void 0 ? void 0 : U.errors); }), I; }); - function X(p) { + function J(p) { m.value.forEach(p); } function K(p) { @@ -2062,13 +2080,13 @@ function gr(e) { return typeof c == "string" ? O.value[c] : c; } let G, le = []; - function ne(p) { + function Y(p) { return function(c, _) { return function(I) { - return I instanceof Event && (I.preventDefault(), I.stopPropagation()), X((E) => E.touched = !0), n.value = !0, r.value++, he().then((E) => { + return I instanceof Event && (I.preventDefault(), I.stopPropagation()), J((E) => E.touched = !0), n.value = !0, r.value++, he().then((E) => { const U = fe(d); if (E.valid && typeof c == "function") { - const x = fe(ee.value); + const x = fe(te.value); let q = p ? x : U; return E.values && (q = E.source === "schema" ? E.values : Object.assign({}, q, E.values)), c(q, { evt: I, controlledValues: x, setErrors: h, setFieldError: y, setTouched: ce, setFieldTouched: H, setValues: F, setFieldValue: b, resetForm: Ie, resetField: oe }); } @@ -2079,9 +2097,9 @@ function gr(e) { }; }; } - const Y = ne(!1); - Y.withControlled = ne(!0); - const pe = { name: o, formId: a, values: d, controlledValues: ee, errorBag: v, errors: w, schema: C, submitCount: r, meta: ae, isSubmitting: n, isValidating: i, fieldArrays: u, keepValuesOnUnmount: $, validateSchema: s(C) ? te : void 0, validate: he, setFieldError: y, validateField: V, setFieldValue: b, setValues: F, setErrors: h, setFieldTouched: H, setTouched: ce, resetForm: Ie, resetField: oe, handleSubmit: Y, useFieldModel: function(p) { + const Z = Y(!1); + Z.withControlled = Y(!0); + const pe = { name: o, formId: a, values: d, controlledValues: te, errorBag: v, errors: w, schema: A, submitCount: r, meta: ae, isSubmitting: n, isValidating: i, fieldArrays: u, keepValuesOnUnmount: $, validateSchema: s(A) ? ne : void 0, validate: he, setFieldError: y, validateField: V, setFieldValue: b, setValues: F, setErrors: h, setFieldTouched: H, setTouched: ce, resetForm: Ie, resetField: oe, handleSubmit: Z, useFieldModel: function(p) { return Array.isArray(p) ? p.map((c) => ue(c, !0)) : ue(p); }, defineInputBinds: function(p, c) { const [_, I] = P(p, c); @@ -2089,29 +2107,29 @@ function gr(e) { I.value.onBlur(); } function U(q) { - const Q = fn(q); - b(N(p), Q, !1), I.value.onInput(); + const ee = fn(q); + b(N(p), ee, !1), I.value.onInput(); } function x(q) { - const Q = fn(q); - b(N(p), Q, !1), I.value.onChange(); + const ee = fn(q); + b(N(p), ee, !1), I.value.onChange(); } - return T(() => Object.assign(Object.assign({}, I.value), { onBlur: E, onInput: U, onChange: x, value: _.value })); + return S(() => Object.assign(Object.assign({}, I.value), { onBlur: E, onInput: U, onChange: x, value: _.value })); }, defineComponentBinds: function(p, c) { const [_, I] = P(p, c), E = K(N(p)); function U(x) { _.value = x; } - return T(() => { + return S(() => { const x = je(c) ? c(tn(E, nn)) : c || {}; return Object.assign({ [x.model || "modelValue"]: _.value, [`onUpdate:${x.model || "modelValue"}`]: U }, I.value); }); }, defineField: P, stageInitialValue: function(p, c, _ = !1) { - ke(p, c), et(d, p, c), _ && !(e != null && e.initialValues) && et(J.value, p, fe(c)); + ke(p, c), Qe(d, p, c), _ && !(e != null && e.initialValues) && Qe(Q.value, p, fe(c)); }, unsetInitialValue: D, setFieldInitialValue: ke, createPathState: B, getPathState: K, unsetPathValue: function(p) { return le.push(p), G || (G = Ke(() => { [...le].sort().reverse().forEach((c) => { - lo(d, c); + ro(d, c); }), le = [], G = null; })), G; }, removePathState: function(p, c) { @@ -2143,14 +2161,14 @@ function gr(e) { } }; function b(p, c, _ = !0) { const I = fe(c), E = typeof p == "string" ? p : p.path; - K(E) || B(E), et(d, E, I), _ && V(E); + K(E) || B(E), Qe(d, E, I), _ && V(E); } function F(p, c = !0) { Mt(d, p), u.forEach((_) => _ && _.reset()), c && he(); } function ue(p, c) { const _ = K(N(p)) || B(p); - return T({ get: () => _.value, set(I) { + return S({ get: () => _.value, set(I) { var E; b(N(p), I, (E = N(c)) !== null && E !== void 0 && E); } }); @@ -2162,7 +2180,7 @@ function gr(e) { function ce(p) { typeof p != "boolean" ? Be(p).forEach((c) => { H(c, !!p[c]); - }) : X((c) => { + }) : J((c) => { c.touched = p; }); } @@ -2174,8 +2192,8 @@ function gr(e) { }); } function Ie(p, c) { - let _ = fe(p != null && p.values ? p.values : J.value); - _ = c != null && c.force ? _ : Mt(J.value, _), _ = We(C) && je(C.cast) ? C.cast(_) : _, se(_, { force: c == null ? void 0 : c.force }), X((I) => { + let _ = fe(p != null && p.values ? p.values : Q.value); + _ = c != null && c.force ? _ : Mt(Q.value, _), _ = qe(A) && je(A.cast) ? A.cast(_) : _, se(_, { force: c == null ? void 0 : c.force }), J((I) => { var E; I.__flags.pendingReset = !0, I.validated = !1, I.touched = ((E = p == null ? void 0 : p.touched) === null || E === void 0 ? void 0 : E[N(I.path)]) || !1, b(N(I.path), He(_, N(I.path)), !1), y(N(I.path), void 0); }), c != null && c.force ? function(I, E = !0) { @@ -2185,53 +2203,53 @@ function gr(e) { b(U, I[U], !1); }), E && he(); }(_, !1) : F(_, !1), h((p == null ? void 0 : p.errors) || {}), r.value = (p == null ? void 0 : p.submitCount) || 0, Ke(() => { - he({ mode: "silent" }), X((I) => { + he({ mode: "silent" }), J((I) => { I.__flags.pendingReset = !1; }); }); } async function he(p) { const c = (p == null ? void 0 : p.mode) || "force"; - if (c === "force" && X((x) => x.validated = !0), pe.validateSchema) return pe.validateSchema(c); + if (c === "force" && J((x) => x.validated = !0), pe.validateSchema) return pe.validateSchema(c); i.value = !0; const _ = await Promise.all(m.value.map((x) => x.validate ? x.validate(p).then((q) => ({ key: N(x.path), valid: q.valid, errors: q.errors, value: q.value })) : Promise.resolve({ key: N(x.path), valid: !0, errors: [], value: void 0 }))); i.value = !1; const I = {}, E = {}, U = {}; - for (const x of _) I[x.key] = { valid: x.valid, errors: x.errors }, x.value && et(U, x.key, x.value), x.errors.length && (E[x.key] = x.errors[0]); + for (const x of _) I[x.key] = { valid: x.valid, errors: x.errors }, x.value && Qe(U, x.key, x.value), x.errors.length && (E[x.key] = x.errors[0]); return { valid: _.every((x) => x.valid), results: I, errors: E, values: U, source: "fields" }; } async function V(p, c) { var _; const I = K(p); - if (I && (c == null ? void 0 : c.mode) !== "silent" && (I.validated = !0), C) { - const { results: E } = await te((c == null ? void 0 : c.mode) || "validated-only"); + if (I && (c == null ? void 0 : c.mode) !== "silent" && (I.validated = !0), A) { + const { results: E } = await ne((c == null ? void 0 : c.mode) || "validated-only"); return E[p] || { errors: [], valid: !0 }; } - return I != null && I.validate ? I.validate(c) : (!I && ((_ = c == null ? void 0 : c.warn) === null || _ === void 0 || _) && process.env.NODE_ENV !== "production" && fl(`field with path ${p} was not found`), Promise.resolve({ errors: [], valid: !0 })); + return I != null && I.validate ? I.validate(c) : (!I && ((_ = c == null ? void 0 : c.warn) === null || _ === void 0 || _) && process.env.NODE_ENV !== "production" && vl(`field with path ${p} was not found`), Promise.resolve({ errors: [], valid: !0 })); } function D(p) { - lo(de.value, p); + ro(de.value, p); } function ke(p, c, _ = !1) { - et(de.value, p, fe(c)), _ && et(J.value, p, fe(c)); + Qe(de.value, p, fe(c)), _ && Qe(Q.value, p, fe(c)); } async function we() { - const p = s(C); + const p = s(A); if (!p) return { valid: !0, results: {}, errors: {}, source: "none" }; i.value = !0; - const c = pn(p) || We(p) ? await async function(_, I) { - const E = We(_) ? _ : ll(_), U = await E.parse(fe(I), { formData: fe(I) }), x = {}, q = {}; - for (const Q of U.errors) { - const ye = Q.errors, W = (Q.path || "").replace(/\["(\d+)"\]/g, (Ve, be) => `[${be}]`); + const c = pn(p) || qe(p) ? await async function(_, I) { + const E = qe(_) ? _ : il(_), U = await E.parse(fe(I), { formData: fe(I) }), x = {}, q = {}; + for (const ee of U.errors) { + const ye = ee.errors, W = (ee.path || "").replace(/\["(\d+)"\]/g, (Ve, be) => `[${be}]`); x[W] = { valid: !ye.length, errors: ye }, ye.length && (q[W] = ye[0]); } return { valid: !U.errors.length, results: x, errors: q, values: U.value, source: "schema" }; - }(p, d) : await ar(p, d, { names: S.value, bailsMap: A.value }); + }(p, d) : await or(p, d, { names: T.value, bailsMap: C.value }); return i.value = !1, c; } - const R = Y((p, { evt: c }) => { + const R = Z((p, { evt: c }) => { (function(_) { - return el(_) && _.target && "submit" in _.target; + return tl(_) && _.target && "submit" in _.target; })(c) && c.target.submit(); }); function P(p, c) { @@ -2252,81 +2270,63 @@ function gr(e) { V(N(I.path)); }); } - const Q = T(() => { + const ee = S(() => { const W = { onChange: q, onInput: x, onBlur: U }; return je(c) ? Object.assign(Object.assign({}, W), c(tn(I, nn)).props || {}) : c != null && c.props ? Object.assign(Object.assign({}, W), c.props(tn(I, nn))) : W; }); return [ue(p, () => { var W, Ve, be; return (be = (W = E().validateOnModelUpdate) !== null && W !== void 0 ? W : (Ve = mt()) === null || Ve === void 0 ? void 0 : Ve.validateOnModelUpdate) === null || be === void 0 || be; - }), Q]; + }), ee]; } - Wn(() => { + Gn(() => { e != null && e.initialErrors && h(e.initialErrors), e != null && e.initialTouched && ce(e.initialTouched), e != null && e.validateOnMount ? he() : pe.validateSchema && pe.validateSchema("silent"); - }), nt(C) && qe(C, () => { + }), nt(A) && et(A, () => { var p; (p = pe.validateSchema) === null || p === void 0 || p.call(pe, "validated-only"); - }), Kt(ra, pe), process.env.NODE_ENV !== "production" && (function(p) { + }), Kt(sa, pe), process.env.NODE_ENV !== "production" && (function(p) { const c = ft(); if (!ht) { const _ = c == null ? void 0 : c.appContext.app; if (!_) return; - rl(_); + sl(_); } $t[p.formId] = Object.assign({}, p), $t[p.formId]._vm = c, yt(() => { delete $t[p.formId], It(); }), It(); - }(pe), qe(() => Object.assign(Object.assign({ errors: v.value }, ae.value), { values: d, isSubmitting: n.value, isValidating: i.value, submitCount: r.value }), It, { deep: !0 })); - const Oe = Object.assign(Object.assign({}, pe), { values: vl(d), handleReset: () => Ie(), submitForm: R }); - return Kt(Yi, Oe), Oe; + }(pe), et(() => Object.assign(Object.assign({ errors: v.value }, ae.value), { values: d, isSubmitting: n.value, isValidating: i.value, submitCount: r.value }), It, { deep: !0 })); + const Oe = Object.assign(Object.assign({}, pe), { values: ml(d), handleReset: () => Ie(), submitForm: R }); + return Kt(Zi, Oe), Oe; } -const Dt = "v-stepper-form", mo = (e, t, a = {}) => { - const o = (l, n) => { - const i = { ...l }; - for (const r in n) n[r] === void 0 || typeof n[r] != "object" || Array.isArray(n[r]) ? n[r] !== void 0 && (i[r] = n[r]) : i[r] = o(i[r] ?? {}, n[r]); - return i; - }; - return [e, t, a].filter(Boolean).reduce(o, {}); -}, ho = (e) => ({ altLabels: e.altLabels, autoPage: e.autoPage, autoPageDelay: e.autoPageDelay, bgColor: e.bgColor, border: e.border, color: e.color, density: e.density, disabled: e.disabled, editIcon: e.editIcon, editable: e.editable, elevation: e.elevation, errorIcon: e.errorIcon, fieldColumns: e.fieldColumns, flat: e.flat, headerTooltips: e.headerTooltips, height: e.height, hideActions: e.hideActions, hideDetails: e.hideDetails, keepValuesOnUnmount: e.keepValuesOnUnmount, maxHeight: e.maxHeight, maxWidth: e.maxWidth, minHeight: e.minHeight, minWidth: e.minWidth, nextText: e.nextText, prevText: e.prevText, rounded: e.rounded, selectedClass: e.selectedClass, summaryColumns: e.summaryColumns, tag: e.tag, theme: e.theme, tile: e.tile, tooltipLocation: e.tooltipLocation, tooltipOffset: e.tooltipOffset, tooltipTransition: e.tooltipTransition, transition: e.transition, validateOn: e.validateOn, validateOnMount: e.validateOnMount, variant: e.variant }), Kn = (e) => { - const { columns: t, propName: a } = e; - let o = !1; - if (t && (Object.values(t).forEach((l) => { - (l < 1 || l > 12) && (o = !0); - }), o)) throw new Error(`The ${a} values must be between 1 and 12`); -}, qn = (e) => { - let t = -1, a = -1; - return e.forEach((o, l) => { - o.editable === !1 && (t === -1 && (t = l), a = l); - }), { firstNonEditableIndex: t, lastNonEditableIndex: a }; -}, dl = (e) => { +const cl = (e) => { const { columnsMerged: t, fieldColumns: a, propName: o } = e; - a && o && Kn({ columns: a, propName: `${o} prop "columns"` }); + a && o && xn({ columns: a, propName: `${o} prop "columns"` }); const l = (a == null ? void 0 : a.sm) ?? t.sm, n = (a == null ? void 0 : a.md) ?? t.md, i = (a == null ? void 0 : a.lg) ?? t.lg, r = (a == null ? void 0 : a.xl) ?? t.xl; return { "v-col-12": !0, "v-cols": !0, [`v-col-sm-${l}`]: !!l, [`v-col-md-${n}`]: !!n, [`v-col-lg-${i}`]: !!i, [`v-col-xl-${r}`]: !!r }; -}, _r = ["columns", "options", "required", "rules", "when"], pt = (e, t = []) => { - const a = Object.entries(e).filter(([o]) => !_r.includes(o) && !(t != null && t.includes(o))); +}, yr = ["columns", "options", "required", "rules", "when"], pt = (e, t = []) => { + const a = Object.entries(e).filter(([o]) => !yr.includes(o) && !(t != null && t.includes(o))); return Object.fromEntries(a); }, Pt = async (e) => { const { action: t, emit: a, field: o, settingsValidateOn: l, validate: n } = e, i = o.validateOn || l; (t === "blur" && i === "blur" || t === "input" && i === "input" || t === "change" && i === "change" || t === "click") && await n().then(() => { a("validate", o); }); -}, yr = Ye({ __name: "CommonField", props: Pe({ field: {}, component: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = T(() => n.required || !1), u = T(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), d = o.value, { errorMessage: m, setValue: f, validate: O, value: g } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: u.value === "blur", validateOnChange: u.value === "change", validateOnInput: u.value === "input", validateOnModelUpdate: u.value != null }); +}, br = Ge({ __name: "CommonField", props: Pe({ field: {}, component: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => n.required || !1), u = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), d = o.value, { errorMessage: m, setValue: f, validate: O, value: g } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: u.value === "blur", validateOnChange: u.value === "change", validateOnInput: u.value === "input", validateOnModelUpdate: u.value != null }); async function y(L) { await Pt({ action: L, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: O }); } yt(() => { i.value.keepValuesOnUnmount || (o.value = d, f(d)); }); - const h = T(() => n != null && n.items ? n.items : void 0), v = T(() => n.type === "color" || n.type === "date" ? "text" : n.type), w = T(() => { + const h = S(() => n != null && n.items ? n.items : void 0), v = S(() => n.type === "color" || n.type === "date" ? "text" : n.type), w = S(() => { let L = n == null ? void 0 : n.error; return L = n != null && n.errorMessages ? n.errorMessages.length > 0 : L, L; - }), S = T(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, hideDetails: n.hideDetails || i.value.hideDetails, type: v.value, variant: n.variant || i.value.variant })), A = T(() => pt(S.value)); - return (L, $) => (M(), ve(go(L.component), tt({ modelValue: s(g), "onUpdate:modelValue": $[0] || ($[0] = (de) => nt(g) ? g.value = de : null) }, { ...s(A) }, { "data-cy": `vsf-field-${s(n).name}`, error: s(w), "error-messages": s(m) || s(n).errorMessages, items: s(h), onBlur: $[1] || ($[1] = (de) => y("blur")), onChange: $[2] || ($[2] = (de) => y("change")), onInput: $[3] || ($[3] = (de) => y("input")) }), { label: Z(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "error", "error-messages", "items"])); -} }), br = ["innerHTML"], Or = { key: 0, class: "v-input__details" }, Er = ["name"], Vr = Ye({ __name: "VSFButtonField", props: Pe({ density: {}, field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - gl((V) => ({ "7f272e17": s(pe) })); - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = T(() => n.required || !1), u = T(() => { + }), T = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, hideDetails: n.hideDetails || i.value.hideDetails, type: v.value, variant: n.variant || i.value.variant })), C = S(() => pt(T.value)); + return (L, $) => (M(), ve(go(L.component), tt({ modelValue: s(g), "onUpdate:modelValue": $[0] || ($[0] = (de) => nt(g) ? g.value = de : null) }, { ...s(C) }, { "data-cy": `vsf-field-${s(n).name}`, error: s(w), "error-messages": s(m) || s(n).errorMessages, items: s(h), onBlur: $[1] || ($[1] = (de) => y("blur")), onChange: $[2] || ($[2] = (de) => y("change")), onInput: $[3] || ($[3] = (de) => y("input")) }), { label: X(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "error", "error-messages", "items"])); +} }), Or = ["innerHTML"], Er = { key: 0, class: "v-input__details" }, Vr = ["name"], kr = Ge({ __name: "VSFButtonField", props: Pe({ density: {}, field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + _l((V) => ({ "7f272e17": s(pe) })); + const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => n.required || !1), u = S(() => { var V; return (n == null ? void 0 : n.validateOn) ?? ((V = i.value) == null ? void 0 : V.validateOn); }), d = o.value, { errorMessage: m, handleChange: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: n != null && n.multiple ? [] : null, validateOnBlur: u.value === "blur", validateOnChange: u.value === "change", validateOnInput: u.value === "input", validateOnModelUpdate: u.value != null }); @@ -2353,62 +2353,62 @@ const Dt = "v-stepper-form", mo = (e, t, a = {}) => { }); } } - const w = T(() => { + const w = S(() => { var V, D, ke; return { ...n, border: n != null && n.border ? `${n == null ? void 0 : n.color} ${n == null ? void 0 : n.border}` : void 0, color: n.color || ((V = i.value) == null ? void 0 : V.color), density: (n == null ? void 0 : n.density) ?? ((D = i.value) == null ? void 0 : D.density), hideDetails: n.hideDetails || ((ke = i.value) == null ? void 0 : ke.hideDetails), multiple: void 0 }; - }), S = T(() => pt(w.value, ["autoPage", "hideDetails", "href", "maxErrors", "multiple", "to"])), A = (V, D) => { + }), T = S(() => pt(w.value, ["autoPage", "hideDetails", "href", "maxErrors", "multiple", "to"])), C = (V, D) => { const ke = V[D], we = n == null ? void 0 : n[D]; return ke ?? we; }; function L(V, D) { return V.id != null ? V.id : n != null && n.id ? `${n == null ? void 0 : n.id}-${D}` : void 0; } - const $ = { comfortable: "48px", compact: "40px", default: "56px", expanded: "64px", oversized: "72px" }, de = T(() => { + const $ = { comfortable: "48px", compact: "40px", default: "56px", expanded: "64px", oversized: "72px" }, de = S(() => { var V; return (n == null ? void 0 : n.density) ?? ((V = i.value) == null ? void 0 : V.density); }); - function J() { + function Q() { return de.value ? $[de.value] : $.default; } function se(V) { const D = (V == null ? void 0 : V.minWidth) ?? (n == null ? void 0 : n.minWidth); - return D ?? (V != null && V.icon || n != null && n.icon ? J() : "100px"); + return D ?? (V != null && V.icon || n != null && n.icon ? Q() : "100px"); } function ae(V) { const D = (V == null ? void 0 : V.maxWidth) ?? (n == null ? void 0 : n.maxWidth); - return D ?? (V != null && V.icon || n != null && n.icon ? J() : void 0); + return D ?? (V != null && V.icon || n != null && n.icon ? Q() : void 0); } - function ee(V) { + function te(V) { const D = (V == null ? void 0 : V.minHeight) ?? (n == null ? void 0 : n.minHeight); - return D ?? (V != null && V.icon || n != null && n.icon ? J() : void 0); + return D ?? (V != null && V.icon || n != null && n.icon ? Q() : void 0); } - function C(V) { + function A(V) { const D = (V == null ? void 0 : V.maxHeight) ?? (n == null ? void 0 : n.maxHeight); if (D != null) return D; } function B(V) { const D = (V == null ? void 0 : V.width) ?? (n == null ? void 0 : n.width); - return D ?? (V != null && V.icon ? J() : "fit-content"); + return D ?? (V != null && V.icon ? Q() : "fit-content"); } function ie(V) { const D = (V == null ? void 0 : V.height) ?? (n == null ? void 0 : n.height); - return D ?? J(); + return D ?? Q(); } const z = (V) => { if (y.value) return y.value === V || y.value.includes(V); - }, te = _e(n == null ? void 0 : n.variant); - function X(V) { + }, ne = _e(n == null ? void 0 : n.variant); + function J(V) { var D; - return z(V) ? "flat" : te.value ?? ((D = i.value) == null ? void 0 : D.variant) ?? "tonal"; + return z(V) ? "flat" : ne.value ?? ((D = i.value) == null ? void 0 : D.variant) ?? "tonal"; } function K(V) { return V && V.length > 0 ? V : n.hint && (n.persistentHint || oe.value) ? n.hint : n.messages ? n.messages : ""; } - const G = T(() => n.messages && n.messages.length > 0), le = T(() => !w.value.hideDetails || w.value.hideDetails === "auto" && G.value), ne = An(n.gap ?? 2), Y = T(() => he(ne.value) ? { gap: `${ne.value}` } : {}), pe = _e("rgb(var(--v-theme-on-surface))"), b = T(() => ({ [`align-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && (n == null ? void 0 : n.block), [`justify-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && !(n != null && n.block), "d-flex": !0, "flex-column": n == null ? void 0 : n.block, [`ga-${ne.value}`]: !he(ne.value) })), F = T(() => ({ "d-flex": n == null ? void 0 : n.align, "flex-column": n == null ? void 0 : n.align, "v-input--error": !!m && (m == null ? void 0 : m.length) > 0, "vsf-button-field__container": !0, [`align-${n == null ? void 0 : n.align}`]: n == null ? void 0 : n.align })), ue = T(() => { + const G = S(() => n.messages && n.messages.length > 0), le = S(() => !w.value.hideDetails || w.value.hideDetails === "auto" && G.value), Y = An(n.gap ?? 2), Z = S(() => he(Y.value) ? { gap: `${Y.value}` } : {}), pe = _e("rgb(var(--v-theme-on-surface))"), b = S(() => ({ [`align-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && (n == null ? void 0 : n.block), [`justify-${n == null ? void 0 : n.align}`]: (n == null ? void 0 : n.align) != null && !(n != null && n.block), "d-flex": !0, "flex-column": n == null ? void 0 : n.block, [`ga-${Y.value}`]: !he(Y.value) })), F = S(() => ({ "d-flex": n == null ? void 0 : n.align, "flex-column": n == null ? void 0 : n.align, "v-input--error": !!m && (m == null ? void 0 : m.length) > 0, "vsf-button-field__container": !0, [`align-${n == null ? void 0 : n.align}`]: n == null ? void 0 : n.align })), ue = S(() => { const V = de.value; return V === "expanded" || V === "oversized" ? { [`v-btn--density-${V}`]: !0 } : {}; }), H = (V) => ({ [`${V == null ? void 0 : V.class}`]: !0, [`${n.selectedClass}`]: z(V.value) && n.selectedClass != null }), ce = (V) => { - const D = z(V.value), ke = X(V.value), we = D || ke === "flat" || ke === "elevated"; + const D = z(V.value), ke = J(V.value), we = D || ke === "flat" || ke === "elevated"; return { [`bg-${V == null ? void 0 : V.color}`]: we }; }, oe = An(null); function Ie(V) { @@ -2419,103 +2419,103 @@ const Dt = "v-stepper-form", mo = (e, t, a = {}) => { } return (V, D) => { var we; - return M(), me(xe, null, [Ue("div", { class: Me(s(F)) }, [re(Xn, null, { default: Z(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }), re(Dl, { id: (we = s(n)) == null ? void 0 : we.id, modelValue: o.value, "onUpdate:modelValue": D[2] || (D[2] = (R) => o.value = R), class: Me(["mt-2", s(b)]), "data-cy": `vsf-field-group-${s(n).name}`, style: ut(s(Y)) }, { default: Z(() => { + return M(), me(xe, null, [Ue("div", { class: Me(s(F)) }, [re(Jn, null, { default: X(() => [re(gt, { label: s(n).label, required: s(r) }, null, 8, ["label", "required"])]), _: 1 }), re(Rl, { id: (we = s(n)) == null ? void 0 : we.id, modelValue: o.value, "onUpdate:modelValue": D[2] || (D[2] = (R) => o.value = R), class: Me(["mt-2", s(b)]), "data-cy": `vsf-field-group-${s(n).name}`, style: ut(s(Z)) }, { default: X(() => { var R; - return [(M(!0), me(xe, null, Ge((R = s(n)) == null ? void 0 : R.options, (P, Oe) => (M(), ve(Rl, { key: P.value }, { default: Z(() => { + return [(M(!0), me(xe, null, We((R = s(n)) == null ? void 0 : R.options, (P, Oe) => (M(), ve(Nl, { key: P.value }, { default: X(() => { var p, c; - return [re(an, tt({ ref_for: !0 }, s(S), { id: L(P, Oe), active: z(P.value), appendIcon: A(P, "appendIcon"), class: ["text-none", { ...s(ue), ...H(P) }], color: (P == null ? void 0 : P.color) || ((p = s(n)) == null ? void 0 : p.color) || ((c = s(i)) == null ? void 0 : c.color), "data-cy": `vsf-field-${s(n).name}`, density: s(de), height: ie(P), icon: A(P, "icon"), maxHeight: C(P), maxWidth: ae(P), minHeight: ee(P), minWidth: se(P), prependIcon: A(P, "prependIcon"), value: P.value, variant: X(P.value), width: B(P), onClick: ua((_) => v("click", P.value), ["prevent"]), onKeydown: _l(ua((_) => v("click", P.value), ["prevent"]), ["space"]), onMousedown: (_) => Ie(P.value), onMouseleave: D[0] || (D[0] = (_) => Ie(null)), onMouseup: D[1] || (D[1] = (_) => Ie(null)) }), Gn({ _: 2 }, [A(P, "icon") == null ? { name: "default", fn: Z(() => [Ue("span", { class: Me(["vsf-button-field__btn-label", ce(P)]), innerHTML: P.label }, null, 10, br)]), key: "0" } : void 0]), 1040, ["id", "active", "appendIcon", "class", "color", "data-cy", "density", "height", "icon", "maxHeight", "maxWidth", "minHeight", "minWidth", "prependIcon", "value", "variant", "width", "onClick", "onKeydown", "onMousedown"])]; + return [re(an, tt({ ref_for: !0 }, s(T), { id: L(P, Oe), active: z(P.value), appendIcon: C(P, "appendIcon"), class: ["text-none", { ...s(ue), ...H(P) }], color: (P == null ? void 0 : P.color) || ((p = s(n)) == null ? void 0 : p.color) || ((c = s(i)) == null ? void 0 : c.color), "data-cy": `vsf-field-${s(n).name}`, density: s(de), height: ie(P), icon: C(P, "icon"), maxHeight: A(P), maxWidth: ae(P), minHeight: te(P), minWidth: se(P), prependIcon: C(P, "prependIcon"), value: P.value, variant: J(P.value), width: B(P), onClick: da((_) => v("click", P.value), ["prevent"]), onKeydown: yl(da((_) => v("click", P.value), ["prevent"]), ["space"]), onMousedown: (_) => Ie(P.value), onMouseleave: D[0] || (D[0] = (_) => Ie(null)), onMouseup: D[1] || (D[1] = (_) => Ie(null)) }), Yn({ _: 2 }, [C(P, "icon") == null ? { name: "default", fn: X(() => [Ue("span", { class: Me(["vsf-button-field__btn-label", ce(P)]), innerHTML: P.label }, null, 10, Or)]), key: "0" } : void 0]), 1040, ["id", "active", "appendIcon", "class", "color", "data-cy", "density", "height", "icon", "maxHeight", "maxWidth", "minHeight", "minWidth", "prependIcon", "value", "variant", "width", "onClick", "onKeydown", "onMousedown"])]; }), _: 2 }, 1024))), 128))]; - }), _: 1 }, 8, ["id", "modelValue", "class", "data-cy", "style"]), s(le) ? (M(), me("div", Or, [re(s(bo), { active: (ke = s(m), !!(ke && ke.length > 0) || !(!n.hint || !n.persistentHint && !oe.value) || !!n.messages), color: s(m) ? "error" : void 0, "data-cy": "vsf-field-messages", messages: K(s(m)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 2), _o(Ue("input", { "onUpdate:modelValue": D[3] || (D[3] = (R) => nt(y) ? y.value = R : null), "data-cy": "vsf-button-field-input", name: s(n).name, type: "hidden", onChange: D[4] || (D[4] = (...R) => s(f) && s(f)(...R)) }, null, 40, Er), [[yo, s(y)]])], 64); + }), _: 1 }, 8, ["id", "modelValue", "class", "data-cy", "style"]), s(le) ? (M(), me("div", Er, [re(s(bo), { active: (ke = s(m), !!(ke && ke.length > 0) || !(!n.hint || !n.persistentHint && !oe.value) || !!n.messages), color: s(m) ? "error" : void 0, "data-cy": "vsf-field-messages", messages: K(s(m)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 2), _o(Ue("input", { "onUpdate:modelValue": D[3] || (D[3] = (R) => nt(y) ? y.value = R : null), "data-cy": "vsf-button-field-input", name: s(n).name, type: "hidden", onChange: D[4] || (D[4] = (...R) => s(f) && s(f)(...R)) }, null, 40, Vr), [[yo, s(y)]])], 64); var ke; }; -} }), cl = (e, t) => { +} }), pl = (e, t) => { const a = e.__vccOpts || e; for (const [o, l] of t) a[o] = l; return a; -}, kr = cl(Vr, [["__scopeId", "data-v-49f12da6"]]), Ir = { key: 1, class: "v-input v-input--horizontal v-input--center-affix" }, Sr = ["id"], Tr = { key: 0, class: "v-input__details" }, wr = Ye({ __name: "VSFCheckbox", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = T(() => { - var C; - return (n == null ? void 0 : n.density) ?? ((C = i.value) == null ? void 0 : C.density); - }), u = T(() => n.required || !1), d = T(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); +}, Ir = pl(kr, [["__scopeId", "data-v-49f12da6"]]), Sr = { key: 1, class: "v-input v-input--horizontal v-input--center-affix" }, Tr = ["id"], wr = { key: 0, class: "v-input__details" }, Cr = Ge({ __name: "VSFCheckbox", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { + var A; + return (n == null ? void 0 : n.density) ?? ((A = i.value) == null ? void 0 : A.density); + }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); yt(() => { i.value.keepValuesOnUnmount || (o.value = m, O(m)); }); const h = _e(n == null ? void 0 : n.disabled); - async function v(C) { - h.value || (h.value = !0, o.value = y.value, await Pt({ action: n != null && n.autoPage ? "click" : C, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { + async function v(A) { + h.value || (h.value = !0, o.value = y.value, await Pt({ action: n != null && n.autoPage ? "click" : A, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { h.value = !1; })); } - const w = T(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || void 0, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), S = T(() => pt(w.value, ["validateOn"])), A = _e(!1); - function L(C) { - return C && C.length > 0 ? C : n.hint && (n.persistentHint || A.value) ? n.hint : n.messages ? n.messages : ""; + const w = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || void 0, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), T = S(() => pt(w.value, ["validateOn"])), C = _e(!1); + function L(A) { + return A && A.length > 0 ? A : n.hint && (n.persistentHint || C.value) ? n.hint : n.messages ? n.messages : ""; } - const $ = T(() => n.messages && n.messages.length > 0), de = T(() => !w.value.hideDetails || w.value.hideDetails === "auto" && $.value), J = T(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), se = T(() => ({ display: n.inline ? "flex" : void 0 })), ae = T(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })), ee = T(() => ({ "v-input--error": !!f && (f == null ? void 0 : f.length) > 0, "v-selection-control-group": n.inline })); - return (C, B) => { - var z, te, X, K; - return (z = s(n)) != null && z.multiple ? (M(), me("div", Ir, [Ue("div", { class: "v-input__control", style: ut(s(J)) }, [s(n).label ? (M(), ve(Xn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: Z(() => { + const $ = S(() => n.messages && n.messages.length > 0), de = S(() => !w.value.hideDetails || w.value.hideDetails === "auto" && $.value), Q = S(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), se = S(() => ({ display: n.inline ? "flex" : void 0 })), ae = S(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })), te = S(() => ({ "v-input--error": !!f && (f == null ? void 0 : f.length) > 0, "v-selection-control-group": n.inline })); + return (A, B) => { + var z, ne, J, K; + return (z = s(n)) != null && z.multiple ? (M(), me("div", Sr, [Ue("div", { class: "v-input__control", style: ut(s(Q)) }, [s(n).label ? (M(), ve(Jn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: X(() => { var G, le; return [re(gt, { class: Me({ "pb-5": !((G = s(n)) != null && G.hideDetails) && ((le = s(n)) == null ? void 0 : le.labelPositionLeft) }), label: s(n).label, required: s(u) }, null, 8, ["class", "label", "required"])]; - }), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (te = s(n)) == null ? void 0 : te.id, class: Me(s(ee)), style: ut(s(se)) }, [Ue("div", { class: Me({ "v-input__control": s(n).inline }) }, [(M(!0), me(xe, null, Ge((X = s(n)) == null ? void 0 : X.options, (G) => { + }), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (ne = s(n)) == null ? void 0 : ne.id, class: Me(s(te)), style: ut(s(se)) }, [Ue("div", { class: Me({ "v-input__control": s(n).inline }) }, [(M(!0), me(xe, null, We((J = s(n)) == null ? void 0 : J.options, (G) => { var le; - return M(), ve(ca, tt({ key: G.value, ref_for: !0 }, { ...s(S) }, { id: G.id, modelValue: s(y), "onUpdate:modelValue": B[5] || (B[5] = (ne) => nt(y) ? y.value = ne : null), "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((le = s(f)) == null ? void 0 : le.length) > 0, "error-messages": s(f), "hide-details": !0, label: G.label, style: s(ae), "true-value": G.value, onBlur: B[6] || (B[6] = (ne) => v("blur")), onChange: B[7] || (B[7] = (ne) => v("change")), onClick: B[8] || (B[8] = (ne) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[9] || (B[9] = (ne) => v("input")), "onUpdate:focused": B[10] || (B[10] = (ne) => { - return Y = ne, void (A.value = Y); - var Y; + return M(), ve(pa, tt({ key: G.value, ref_for: !0 }, { ...s(T) }, { id: G.id, modelValue: s(y), "onUpdate:modelValue": B[5] || (B[5] = (Y) => nt(y) ? y.value = Y : null), "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((le = s(f)) == null ? void 0 : le.length) > 0, "error-messages": s(f), "hide-details": !0, label: G.label, style: s(ae), "true-value": G.value, onBlur: B[6] || (B[6] = (Y) => v("blur")), onChange: B[7] || (B[7] = (Y) => v("change")), onClick: B[8] || (B[8] = (Y) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[9] || (B[9] = (Y) => v("input")), "onUpdate:focused": B[10] || (B[10] = (Y) => { + return Z = Y, void (C.value = Z); + var Z; }) }), null, 16, ["id", "modelValue", "data-cy", "density", "disabled", "error", "error-messages", "label", "style", "true-value"]); - }), 128))], 2), s(de) ? (M(), me("div", Tr, [re(s(bo), { active: (ie = s(f), !!(ie && ie.length > 0) || !(!n.hint || !n.persistentHint && !A.value) || !!n.messages), color: s(f) ? "error" : void 0, messages: L(s(f)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 14, Sr)], 4)])) : (M(), ve(ca, tt({ key: 0, modelValue: s(y), "onUpdate:modelValue": B[0] || (B[0] = (G) => nt(y) ? y.value = G : null) }, { ...s(S) }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((K = s(f)) == null ? void 0 : K.length) > 0, "error-messages": s(f), onBlur: B[1] || (B[1] = (G) => v("blur")), onChange: B[2] || (B[2] = (G) => v("change")), onClick: B[3] || (B[3] = (G) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[4] || (B[4] = (G) => v("input")) }), { label: Z(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "density", "disabled", "error", "error-messages"])); + }), 128))], 2), s(de) ? (M(), me("div", wr, [re(s(bo), { active: (ie = s(f), !!(ie && ie.length > 0) || !(!n.hint || !n.persistentHint && !C.value) || !!n.messages), color: s(f) ? "error" : void 0, messages: L(s(f)) }, null, 8, ["active", "color", "messages"])])) : Te("", !0)], 14, Tr)], 4)])) : (M(), ve(pa, tt({ key: 0, modelValue: s(y), "onUpdate:modelValue": B[0] || (B[0] = (G) => nt(y) ? y.value = G : null) }, { ...s(T) }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(h), error: !!s(f) && ((K = s(f)) == null ? void 0 : K.length) > 0, "error-messages": s(f), onBlur: B[1] || (B[1] = (G) => v("blur")), onChange: B[2] || (B[2] = (G) => v("change")), onClick: B[3] || (B[3] = (G) => s(d) === "blur" || s(d) === "change" ? v("click") : void 0), onInput: B[4] || (B[4] = (G) => v("input")) }), { label: X(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 1 }, 16, ["modelValue", "data-cy", "density", "disabled", "error", "error-messages"])); var ie; }; -} }), Cr = ["data-cy"], Ar = Ye({ __name: "VSFCustom", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = Yn(), o = t, l = ot(e, "modelValue"), n = e; - qe(() => l.value, (h) => { - m.setValue(h); - }); - const { field: i } = n, r = at("settings"), u = yl(gt), d = T(() => (i == null ? void 0 : i.validateOn) ?? r.value.validateOn), m = At(i.name, void 0, { initialValue: l.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); +} }), Ar = ["data-cy"], Pr = Ge({ __name: "VSFCustom", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = Zn(), o = t, l = ot(e, "modelValue"), n = e, { field: i } = n, r = at("settings"), u = bl(gt), d = S(() => (i == null ? void 0 : i.validateOn) ?? r.value.validateOn), m = At(i.name, void 0, { initialValue: l.value, validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); async function f(h) { await Pt({ action: h, emit: o, field: i, settingsValidateOn: r.value.validateOn, validate: m.validate }); } - const O = T(() => ({ ...pt(m, ["_vm", "errorMessage", "field", "id", "label", "name", "type", "value"]) })), g = T(() => ({ ...i, color: i.color || r.value.color, density: i.density || r.value.density })), y = T(() => ({ ...pt(g.value), options: i.options, required: i.required })); - return (h, v) => (M(!0), me(xe, null, Ge(s(a), (w, S) => (M(), me(xe, { key: S }, [S === `field.${[s(i).name]}` ? (M(), me("div", { key: 0, "data-cy": `vsf-field-${s(i).name}` }, [Zn(h.$slots, S, tt({ ref_for: !0 }, { FieldLabel: s(u), blur: () => f("blur"), change: () => f("change"), input: () => f("input"), field: { errorMessages: s(m).errorMessage.value, modelValue: s(m).value.value, ...s(y) }, ...s(O) }))], 8, Cr)) : Te("", !0)], 64))), 128)); -} }), Pr = ["id"], xr = Ye({ __name: "VSFRadio", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = T(() => { + const O = S(() => ({ ...pt(m, ["_vm", "errorMessage", "field", "id", "label", "name", "type", "value"]) })), g = S(() => ({ ...i, color: i.color || r.value.color, density: i.density || r.value.density })), y = S(() => ({ ...pt(g.value), options: i.options, required: i.required })); + return (h, v) => (M(!0), me(xe, null, We(s(a), (w, T) => (M(), me(xe, { key: T }, [T === `field.${[s(i).name]}` ? (M(), me("div", { key: 0, "data-cy": `vsf-field-${s(i).name}` }, [Xn(h.$slots, T, tt({ ref_for: !0 }, { FieldLabel: s(u), blur: () => f("blur"), change: () => f("change"), input: () => f("input"), onUpdate: (C) => { + (function(L) { + m.setValue(L); + })(C); + }, field: { errorMessages: s(m).errorMessage.value, ...s(y) }, ...s(O) }))], 8, Ar)) : Te("", !0)], 64))), 128)); +} }), xr = ["id"], jr = Ge({ __name: "VSFRadio", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { var se; return (n == null ? void 0 : n.density) ?? ((se = i.value) == null ? void 0 : se.density); - }), u = T(() => n.required || !1), d = T(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, type: "radio", validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); + }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value, { errorMessage: f, setValue: O, validate: g, value: y } = At(n.name, void 0, { initialValue: o.value, type: "radio", validateOnBlur: d.value === "blur", validateOnChange: d.value === "change", validateOnInput: d.value === "input", validateOnModelUpdate: d.value != null }); yt(() => { i.value.keepValuesOnUnmount || (o.value = m); }); const h = _e(n == null ? void 0 : n.disabled); async function v(se, ae) { if (!h.value) { - let ee; + let te; if (h.value = !0, n == null ? void 0 : n.multiple) { - const C = Array.isArray(y.value) ? y.value.slice() : [], B = String(ae); - C.includes(B) ? C.splice(C.indexOf(B), 1) : C.push(B), ee = C; - } else ee = ae; - O(ee), o.value = ee, await Pt({ action: n != null && n.autoPage ? "click" : se, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { + const A = Array.isArray(y.value) ? y.value.slice() : [], B = String(ae); + A.includes(B) ? A.splice(A.indexOf(B), 1) : A.push(B), te = A; + } else te = ae; + O(te), o.value = te, await Pt({ action: n != null && n.autoPage ? "click" : se, emit: a, field: n, settingsValidateOn: i.value.validateOn, validate: g }).then(() => { h.value = !1; }); } } - const w = T(() => { + const w = S(() => { let se = n == null ? void 0 : n.error; return se = n != null && n.errorMessages ? n.errorMessages.length > 0 : se, se; - }), S = T(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), A = T(() => pt(S.value)), L = T(() => ({ width: (n == null ? void 0 : n.minWidth) ?? (n == null ? void 0 : n.width) ?? void 0 })), $ = T(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), de = T(() => ({ display: n.inline ? "flex" : void 0 })), J = T(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })); + }), T = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), C = S(() => pt(T.value)), L = S(() => ({ width: (n == null ? void 0 : n.minWidth) ?? (n == null ? void 0 : n.width) ?? void 0 })), $ = S(() => ({ "flex-direction": n.labelPositionLeft ? "row" : "column" })), de = S(() => ({ display: n.inline ? "flex" : void 0 })), Q = S(() => ({ "margin-right": n.inline && n.inlineSpacing ? n.inlineSpacing : "10px" })); return (se, ae) => { - var ee, C, B, ie, z, te, X, K, G, le, ne, Y, pe, b, F, ue, H; - return M(), me("div", { style: ut(s(L)) }, [Ue("div", { class: "v-input__control", style: ut(s($)) }, [s(n).label ? (M(), ve(Xn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: Z(() => [re(gt, { class: Me({ "pb-5": s(n).labelPositionLeft }), label: s(n).label, required: s(u) }, null, 8, ["class", "label", "required"])]), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (ee = s(n)) == null ? void 0 : ee.groupId, style: ut(s(de)) }, [re(Ml, { modelValue: o.value, "onUpdate:modelValue": ae[0] || (ae[0] = (ce) => o.value = ce), "append-icon": (C = s(n)) == null ? void 0 : C.appendIcon, "data-cy": `vsf-field-group-${s(n).name}`, density: s(r), direction: (B = s(n)) == null ? void 0 : B.direction, disabled: s(h), error: s(w), "error-messages": s(f) || ((ie = s(n)) == null ? void 0 : ie.errorMessages), hideDetails: ((z = s(n)) == null ? void 0 : z.hideDetails) || ((te = s(i)) == null ? void 0 : te.hideDetails), hint: (X = s(n)) == null ? void 0 : X.hint, inline: (K = s(n)) == null ? void 0 : K.inline, "max-errors": (G = s(n)) == null ? void 0 : G.maxErrors, "max-width": (le = s(n)) == null ? void 0 : le.maxWidth, messages: (ne = s(n)) == null ? void 0 : ne.messages, "min-width": (Y = s(n)) == null ? void 0 : Y.minWidth, multiple: (pe = s(n)) == null ? void 0 : pe.multiple, persistentHint: (b = s(n)) == null ? void 0 : b.persistentHint, "prepend-icon": (F = s(n)) == null ? void 0 : F.prependIcon, theme: (ue = s(n)) == null ? void 0 : ue.theme, width: (H = s(n)) == null ? void 0 : H.width }, { default: Z(() => { + var te, A, B, ie, z, ne, J, K, G, le, Y, Z, pe, b, F, ue, H; + return M(), me("div", { style: ut(s(L)) }, [Ue("div", { class: "v-input__control", style: ut(s($)) }, [s(n).label ? (M(), ve(Jn, { key: 0, class: Me({ "me-2": s(n).labelPositionLeft }) }, { default: X(() => [re(gt, { class: Me({ "pb-5": s(n).labelPositionLeft }), label: s(n).label, required: s(u) }, null, 8, ["class", "label", "required"])]), _: 1 }, 8, ["class"])) : Te("", !0), Ue("div", { id: (te = s(n)) == null ? void 0 : te.groupId, style: ut(s(de)) }, [re(Ll, { modelValue: o.value, "onUpdate:modelValue": ae[0] || (ae[0] = (ce) => o.value = ce), "append-icon": (A = s(n)) == null ? void 0 : A.appendIcon, "data-cy": `vsf-field-group-${s(n).name}`, density: s(r), direction: (B = s(n)) == null ? void 0 : B.direction, disabled: s(h), error: s(w), "error-messages": s(f) || ((ie = s(n)) == null ? void 0 : ie.errorMessages), hideDetails: ((z = s(n)) == null ? void 0 : z.hideDetails) || ((ne = s(i)) == null ? void 0 : ne.hideDetails), hint: (J = s(n)) == null ? void 0 : J.hint, inline: (K = s(n)) == null ? void 0 : K.inline, "max-errors": (G = s(n)) == null ? void 0 : G.maxErrors, "max-width": (le = s(n)) == null ? void 0 : le.maxWidth, messages: (Y = s(n)) == null ? void 0 : Y.messages, "min-width": (Z = s(n)) == null ? void 0 : Z.minWidth, multiple: (pe = s(n)) == null ? void 0 : pe.multiple, persistentHint: (b = s(n)) == null ? void 0 : b.persistentHint, "prepend-icon": (F = s(n)) == null ? void 0 : F.prependIcon, theme: (ue = s(n)) == null ? void 0 : ue.theme, width: (H = s(n)) == null ? void 0 : H.width }, { default: X(() => { var ce; - return [(M(!0), me(xe, null, Ge((ce = s(n)) == null ? void 0 : ce.options, (oe, Ie) => { + return [(M(!0), me(xe, null, We((ce = s(n)) == null ? void 0 : ce.options, (oe, Ie) => { var he; - return M(), me("div", { key: Ie }, [re(Nl, tt({ ref_for: !0 }, { ...s(A) }, { id: void 0, "data-cy": `vsf-field-${s(n).name}`, density: s(r), error: !!s(f) && ((he = s(f)) == null ? void 0 : he.length) > 0, "error-messages": s(f), "false-value": s(n).falseValue, label: oe.label, name: s(n).name, style: s(J), "true-value": oe.value || s(n).trueValue, value: oe.value, onBlur: (V) => v("blur", oe.value), onChange: (V) => v("change", oe.value), onClick: (V) => s(d) === "blur" || s(d) === "change" ? v("click", oe.value) : void 0, onInput: (V) => v("input", oe.value) }), null, 16, ["data-cy", "density", "error", "error-messages", "false-value", "label", "name", "style", "true-value", "value", "onBlur", "onChange", "onClick", "onInput"])]); + return M(), me("div", { key: Ie }, [re(Ml, tt({ ref_for: !0 }, { ...s(C) }, { id: void 0, "data-cy": `vsf-field-${s(n).name}`, density: s(r), error: !!s(f) && ((he = s(f)) == null ? void 0 : he.length) > 0, "error-messages": s(f), "false-value": s(n).falseValue, label: oe.label, name: s(n).name, style: s(Q), "true-value": oe.value || s(n).trueValue, value: oe.value, onBlur: (V) => v("blur", oe.value), onChange: (V) => v("change", oe.value), onClick: (V) => s(d) === "blur" || s(d) === "change" ? v("click", oe.value) : void 0, onInput: (V) => v("input", oe.value) }), null, 16, ["data-cy", "density", "error", "error-messages", "false-value", "label", "name", "style", "true-value", "value", "onBlur", "onChange", "onClick", "onInput"])]); }), 128))]; - }), _: 1 }, 8, ["modelValue", "append-icon", "data-cy", "density", "direction", "disabled", "error", "error-messages", "hideDetails", "hint", "inline", "max-errors", "max-width", "messages", "min-width", "multiple", "persistentHint", "prepend-icon", "theme", "width"])], 12, Pr)], 4)], 4); + }), _: 1 }, 8, ["modelValue", "append-icon", "data-cy", "density", "direction", "disabled", "error", "error-messages", "hideDetails", "hint", "inline", "max-errors", "max-width", "messages", "min-width", "multiple", "persistentHint", "prepend-icon", "theme", "width"])], 12, xr)], 4)], 4); }; -} }), jr = Ye({ __name: "VSFSwitch", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = T(() => { +} }), Ur = Ge({ __name: "VSFSwitch", props: Pe({ field: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = t, o = ot(e, "modelValue"), l = e, { field: n } = l, i = at("settings"), r = S(() => { var h; return (n == null ? void 0 : n.density) ?? ((h = i.value) == null ? void 0 : h.density); - }), u = T(() => n.required || !1), d = T(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value; + }), u = S(() => n.required || !1), d = S(() => (n == null ? void 0 : n.validateOn) ?? i.value.validateOn), m = o.value; yt(() => { i.value.keepValuesOnUnmount || (o.value = m); }); @@ -2525,47 +2525,47 @@ const Dt = "v-stepper-form", mo = (e, t, a = {}) => { f.value = !1; })); } - const g = T(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), y = T(() => pt(g.value)); - return (h, v) => (M(), ve(s(mr), { modelValue: o.value, "onUpdate:modelValue": v[0] || (v[0] = (w) => o.value = w), name: s(n).name, syncVModel: !0, type: "checkbox", "unchecked-value": s(n).falseValue, "validate-on-blur": s(d) === "blur", "validate-on-change": s(d) === "change", "validate-on-input": s(d) === "input", "validate-on-model-update": !1, value: s(n).trueValue }, { default: Z((w) => { - var S; - return [re(Ll, tt({ ...s(y), ...w.field }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(f), error: !!w.errorMessage && ((S = w.errorMessage) == null ? void 0 : S.length) > 0, "error-messages": w.errorMessage, onBlur: (A) => O(w.validate, "blur"), onChange: (A) => O(w.validate, "change"), onClick: (A) => s(d) === "blur" || s(d) === "change" ? O(w.validate, "click") : void 0, onInput: (A) => O(w.validate, "input") }), { label: Z(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 2 }, 1040, ["data-cy", "density", "disabled", "error", "error-messages", "onBlur", "onChange", "onClick", "onInput"])]; + const g = S(() => ({ ...n, color: n.color || i.value.color, density: n.density || i.value.density, falseValue: n.falseValue || !1, hideDetails: n.hideDetails || i.value.hideDetails, trueValue: n.trueValue || !0 })), y = S(() => pt(g.value)); + return (h, v) => (M(), ve(s(hr), { modelValue: o.value, "onUpdate:modelValue": v[0] || (v[0] = (w) => o.value = w), name: s(n).name, syncVModel: !0, type: "checkbox", "unchecked-value": s(n).falseValue, "validate-on-blur": s(d) === "blur", "validate-on-change": s(d) === "change", "validate-on-input": s(d) === "input", "validate-on-model-update": !1, value: s(n).trueValue }, { default: X((w) => { + var T; + return [re(Bl, tt({ ...s(y), ...w.field }, { "data-cy": `vsf-field-${s(n).name}`, density: s(r), disabled: s(f), error: !!w.errorMessage && ((T = w.errorMessage) == null ? void 0 : T.length) > 0, "error-messages": w.errorMessage, onBlur: (C) => O(w.validate, "blur"), onChange: (C) => O(w.validate, "change"), onClick: (C) => s(d) === "blur" || s(d) === "change" ? O(w.validate, "click") : void 0, onInput: (C) => O(w.validate, "input") }), { label: X(() => [re(gt, { label: s(n).label, required: s(u) }, null, 8, ["label", "required"])]), _: 2 }, 1040, ["data-cy", "density", "disabled", "error", "error-messages", "onBlur", "onChange", "onClick", "onInput"])]; }), _: 1 }, 8, ["modelValue", "name", "unchecked-value", "validate-on-blur", "validate-on-change", "validate-on-input", "value"])); -} }), Ur = ["onUpdate:modelValue", "data-cy", "name"], Dr = ["innerHTML"], Rr = Ye({ inheritAttrs: !1, __name: "PageContainer", props: Pe({ fieldColumns: {}, page: {}, pageIndex: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = t, o = Yn(), l = ["email", "number", "password", "tel", "text", "textField", "url"]; +} }), Dr = ["onUpdate:modelValue", "data-cy", "name"], Rr = ["innerHTML"], Nr = Ge({ inheritAttrs: !1, __name: "PageContainer", props: Pe({ fieldColumns: {}, page: {}, pageIndex: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["validate"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = t, o = Zn(), l = ["email", "number", "password", "tel", "text", "textField", "url"]; function n(f) { - if (l.includes(f)) return rt(wl); + if (l.includes(f)) return rt(Cl); switch (f) { case "autocomplete": - return rt(jl); + return rt(Ul); case "color": - return rt(Tl); + return rt(wl); case "combobox": - return rt(xl); + return rt(jl); case "date": - return rt(Ul); + return rt(Dl); case "file": - return rt(Pl); + return rt(xl); case "select": - return rt(Al); + return rt(Pl); case "textarea": - return rt(Cl); + return rt(Al); default: return null; } } - const i = ot(e, "modelValue"), r = T(() => { + const i = ot(e, "modelValue"), r = S(() => { var f; return ((f = e.page) == null ? void 0 : f.pageFieldColumns) ?? {}; }), u = _e({ lg: void 0, md: void 0, sm: void 0, xl: void 0, ...e.fieldColumns, ...r.value }); function d(f) { - return dl({ columnsMerged: u.value, fieldColumns: f.columns, propName: `${f.name} field` }); + return cl({ columnsMerged: u.value, fieldColumns: f.columns, propName: `${f.name} field` }); } function m(f) { a("validate", f); } - return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: Z(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: Z(() => [(M(!0), me(xe, null, Ge(f.page.fields, (g) => (M(), me(xe, { key: `${g.name}-${g.type}` }, [g.type !== "hidden" && g.type ? (M(), me(xe, { key: 1 }, [g.text ? (M(), ve(kt, { key: 0, cols: "12" }, { default: Z(() => [Ue("div", { "data-cy": "vsf-field-text", innerHTML: g.text }, null, 8, Dr)]), _: 2 }, 1024)) : Te("", !0), re(kt, { class: Me(d(g)) }, { default: Z(() => [g.type === "checkbox" ? (M(), ve(wr, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "radio" ? (M(), ve(xr, { key: 1, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "buttons" ? (M(), ve(kr, { key: 2, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "switch" ? (M(), ve(jr, { key: 3, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), n(g.type) != null ? (M(), ve(yr, { key: 4, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, component: n(g.type), field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "component", "field"])) : Te("", !0), g.type === "field" ? (M(), me(xe, { key: 5 }, [g.type === "field" ? (M(), ve(Ar, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, Gn({ _: 2 }, [Ge(o, (y, h) => ({ name: h, fn: Z((v) => [Zn(f.$slots, h, tt({ ref_for: !0 }, { ...v }))]) }))]), 1032, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0)], 64)) : Te("", !0)]), _: 2 }, 1032, ["class"])], 64)) : _o((M(), me("input", { key: 0, "onUpdate:modelValue": (y) => i.value[g.name] = y, "data-cy": `vsf-field-${g.name}`, name: g.name, type: "hidden" }, null, 8, Ur)), [[yo, i.value[g.name]]])], 64))), 128))]), _: 3 })], 64)); -} }), Nr = Ye({ inheritAttrs: !1, __name: "PageReviewContainer", props: Pe({ page: {}, pages: {}, summaryColumns: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["goToQuestion"], ["update:modelValue"]), setup(e, { emit: t }) { - const a = at("settings"), { editable: o } = s(a), l = t, n = ot(e, "modelValue"), i = _e([]), { lastNonEditableIndex: r } = qn(e.pages); + return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: X(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: X(() => [(M(!0), me(xe, null, We(f.page.fields, (g) => (M(), me(xe, { key: `${g.name}-${g.type}` }, [g.type !== "hidden" && g.type ? (M(), me(xe, { key: 1 }, [g.text ? (M(), ve(kt, { key: 0, cols: "12" }, { default: X(() => [Ue("div", { "data-cy": "vsf-field-text", innerHTML: g.text }, null, 8, Rr)]), _: 2 }, 1024)) : Te("", !0), re(kt, { class: Me(d(g)) }, { default: X(() => [g.type === "checkbox" ? (M(), ve(Cr, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "radio" ? (M(), ve(jr, { key: 1, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "buttons" ? (M(), ve(Ir, { key: 2, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), g.type === "switch" ? (M(), ve(Ur, { key: 3, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0), n(g.type) != null ? (M(), ve(br, { key: 4, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, component: n(g.type), field: g, onValidate: m }, null, 8, ["modelValue", "onUpdate:modelValue", "component", "field"])) : Te("", !0), g.type === "field" ? (M(), me(xe, { key: 5 }, [g.type === "field" ? (M(), ve(Pr, { key: 0, modelValue: i.value[g.name], "onUpdate:modelValue": (y) => i.value[g.name] = y, field: g, onValidate: m }, Yn({ _: 2 }, [We(o, (y, h) => ({ name: h, fn: X((v) => [Xn(f.$slots, h, tt({ ref_for: !0 }, { ...v }))]) }))]), 1032, ["modelValue", "onUpdate:modelValue", "field"])) : Te("", !0)], 64)) : Te("", !0)]), _: 2 }, 1032, ["class"])], 64)) : _o((M(), me("input", { key: 0, "onUpdate:modelValue": (y) => i.value[g.name] = y, "data-cy": `vsf-field-${g.name}`, name: g.name, type: "hidden" }, null, 8, Dr)), [[yo, i.value[g.name]]])], 64))), 128))]), _: 3 })], 64)); +} }), Mr = Ge({ inheritAttrs: !1, __name: "PageReviewContainer", props: Pe({ page: {}, pages: {}, summaryColumns: {} }, { modelValue: {}, modelModifiers: {} }), emits: Pe(["goToQuestion"], ["update:modelValue"]), setup(e, { emit: t }) { + const a = at("settings"), { editable: o } = s(a), l = t, n = ot(e, "modelValue"), i = _e([]), { lastNonEditableIndex: r } = jn(e.pages); function u(f) { var g; const O = e.pages.findIndex((y) => y.fields ? y.fields.some((h) => h.name === f.name) : -1); @@ -2577,78 +2577,74 @@ const Dt = "v-stepper-form", mo = (e, t, a = {}) => { O <= r && (y.editable = !1), i.value.push(y); }); }); - const d = _e({ lg: void 0, md: void 0, sm: void 0, xl: void 0, ...e.summaryColumns }), m = T(() => dl({ columnsMerged: d.value })); - return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: Z(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: Z(() => [(M(!0), me(xe, null, Ge(s(i), (g) => (M(), ve(kt, { key: g.name, class: Me(s(m)) }, { default: Z(() => [re(Hl, { lines: "two" }, { default: Z(() => [re(Bl, { class: "mb-2", color: "background" }, { default: Z(() => [u(g) ? (M(), ve(pa, { key: 0, onClick: (y) => s(o) && g.editable !== !1 ? function(h) { + const d = _e({ lg: void 0, md: void 0, sm: void 0, xl: void 0, ...e.summaryColumns }), m = S(() => cl({ columnsMerged: d.value })); + return (f, O) => (M(), me(xe, null, [f.page.text ? (M(), ve(qt, { key: 0 }, { default: X(() => [re(kt, { innerHTML: f.page.text }, null, 8, ["innerHTML"])]), _: 1 })) : Te("", !0), re(qt, null, { default: X(() => [(M(!0), me(xe, null, We(s(i), (g) => (M(), ve(kt, { key: g.name, class: Me(s(m)) }, { default: X(() => [re($l, { lines: "two" }, { default: X(() => [re(Hl, { class: "mb-2", color: "background" }, { default: X(() => [u(g) ? (M(), ve(fa, { key: 0, onClick: (y) => s(o) && g.editable !== !1 ? function(h) { var w; - let v = e.pages.findIndex((S) => S.fields ? S.fields.some((A) => A.name === h.name) : -1); + let v = e.pages.findIndex((T) => T.fields ? T.fields.some((C) => C.name === h.name) : -1); ((w = e.pages[v]) == null ? void 0 : w.editable) !== !1 && h.editable !== !1 && (v += 1, setTimeout(() => { l("goToQuestion", v); }, 350)); - }(g) : void 0 }, { default: Z(() => [re(fa, null, { default: Z(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(va, null, { default: Z(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1032, ["onClick"])) : (M(), ve(pa, { key: 1, ripple: !1 }, { default: Z(() => [re(fa, null, { default: Z(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(va, null, { default: Z(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1024))]), _: 2 }, 1024)]), _: 2 }, 1024)]), _: 2 }, 1032, ["class"]))), 128))]), _: 1 })], 64)); -} }), Mr = Ye({ __name: "VStepperForm", props: Pe(bl({ pages: {}, validationSchema: {}, autoPage: { type: Boolean }, autoPageDelay: {}, color: {}, density: {}, direction: {}, editable: {}, errorIcon: {}, fieldColumns: {}, headerTooltips: { type: Boolean }, hideDetails: { type: [Boolean, String] }, jumpAhead: { type: Boolean }, keepValuesOnUnmount: { type: Boolean }, navButtonSize: {}, navButtonVariant: {}, summaryColumns: {}, title: {}, tooltipLocation: {}, tooltipOffset: {}, tooltipTransition: {}, validateOn: {}, validateOnMount: { type: Boolean }, variant: {}, width: {}, transition: {} }, Oo), { modelValue: {}, modelModifiers: {} }), emits: Pe(["submit", "update:model-value"], ["update:modelValue"]), setup(e, { emit: t }) { + }(g) : void 0 }, { default: X(() => [re(va, null, { default: X(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(ma, null, { default: X(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1032, ["onClick"])) : (M(), ve(fa, { key: 1, ripple: !1 }, { default: X(() => [re(va, null, { default: X(() => [rn(st(g.label), 1)]), _: 2 }, 1024), re(ma, null, { default: X(() => [Ue("div", null, st(g.text), 1), Ue("div", { class: Me(`text-${s(a).color}`) }, st(n.value[g.name]), 3)]), _: 2 }, 1024)]), _: 2 }, 1024))]), _: 2 }, 1024)]), _: 2 }, 1024)]), _: 2 }, 1032, ["class"]))), 128))]), _: 1 })], 64)); +} }), Lr = Ge({ __name: "VStepperForm", props: Pe(Ol({ pages: {}, validationSchema: {}, autoPage: { type: Boolean }, autoPageDelay: {}, color: {}, density: {}, direction: {}, editable: {}, errorIcon: {}, fieldColumns: {}, headerTooltips: { type: Boolean }, hideDetails: { type: [Boolean, String] }, jumpAhead: { type: Boolean }, keepValuesOnUnmount: { type: Boolean }, navButtonSize: {}, navButtonVariant: {}, summaryColumns: {}, title: {}, tooltipLocation: {}, tooltipOffset: {}, tooltipTransition: {}, validateOn: {}, validateOnMount: { type: Boolean }, variant: {}, width: {}, transition: {} }, Eo), { modelValue: {}, modelModifiers: {} }), emits: Pe(["submit", "update:model-value"], ["update:modelValue"]), setup(e, { emit: t }) { var ke, we; - const a = Ol(), o = El(), l = Yn(), n = t, i = at("globalOptions"), r = e; - let u = Vt(mo(a, i, r)); - const { direction: d, jumpAhead: m, title: f, width: O } = Vl(r), g = Vt(r.pages), y = JSON.parse(JSON.stringify(g)), h = _e(ho(u)), v = T(() => pt(h.value, ["autoPage", "autoPageDelay", "hideDetails", "keepValuesOnUnmount", "transition", "validateOn", "validateOnMount"])); - qe(r, () => { - u = mo(a, i, r), h.value = ho(u); + const a = El(), o = Vl(), l = Zn(), n = t, i = at(Oo), r = e; + let u = Vt(Pn(a, i, r)); + const { direction: d, jumpAhead: m, title: f, width: O } = kl(r), g = Vt(r.pages), y = JSON.parse(JSON.stringify(g)), h = _e(ha(u)), v = S(() => pt(h.value, ["autoPage", "autoPageDelay", "hideDetails", "keepValuesOnUnmount", "transition", "validateOn", "validateOnMount"])); + et(r, () => { + u = Pn(a, i, r), h.value = ha(u); }, { deep: !0 }), Kt("settings", h); const w = _e([]); Object.values(g).forEach((R) => { R.fields && Object.values(R.fields).forEach((P) => { w.value.push(P); }); - }), Wn(() => { - ce(), Kn({ columns: r.fieldColumns, propName: '"fieldColumns" prop' }), Kn({ columns: r.summaryColumns, propName: '"summaryColumns" prop' }); + }), Gn(() => { + ce(), xn({ columns: r.fieldColumns, propName: '"fieldColumns" prop' }), xn({ columns: r.summaryColumns, propName: '"summaryColumns" prop' }); }); - const S = ot(e, "modelValue"); - Il(S, () => { - ce(); - }); - const A = _e(1), L = T(() => A.value - 1), { mobile: $, sm: de } = Sl(), J = T(() => u.transition), se = kl("stepperFormRef"); + const T = ot(e, "modelValue"), C = _e(1), L = S(() => C.value - 1), { mobile: $, sm: de } = Tl(), Q = S(() => u.transition), se = Il("stepperFormRef"); Kt("parentForm", se); - const ae = T(() => h.value.editable), ee = T(() => A.value === 1 ? "prev" : A.value === Object.keys(r.pages).length ? "next" : void 0), C = T(() => { - const R = ee.value === "next" || h.value.disabled; + const ae = S(() => h.value.editable), te = S(() => C.value === 1 ? "prev" : C.value === Object.keys(r.pages).length ? "next" : void 0), A = S(() => { + const R = te.value === "next" || h.value.disabled; return le.value || R; - }), B = T(() => { - const { lastNonEditableIndex: R } = qn(H.value); + }), B = S(() => { + const { lastNonEditableIndex: R } = jn(H.value); return L.value === 0 || !ae.value || !!K.value || L.value - 1 === R; - }), ie = T(() => { - const R = H.value[A.value - 2]; - return ae.value !== !0 && (R ? R.editable === !1 : A.value === H.value.length && !r.editable); - }), z = T(() => A.value === Object.keys(H.value).length); - function te(R) { - var be, Ee, De, Ze, bt; - const { firstNonEditableIndex: P, lastNonEditableIndex: Oe } = qn(H.value), p = H.value, c = p.findIndex((ze) => ze === R), _ = R.editable !== !1, I = R.editable === !1, E = ((be = p[L.value]) == null ? void 0 : be.editable) !== !1, U = p.length - 1, x = c - 1, q = ((Ee = p[x]) == null ? void 0 : Ee.editable) !== !1, Q = ((De = p[x]) == null ? void 0 : De.editable) === !1, ye = c + 1, W = ((Ze = p[ye]) == null ? void 0 : Ze.editable) !== !1, Ve = ((bt = p[ye]) == null ? void 0 : bt.editable) === !1; + }), ie = S(() => { + const R = H.value[C.value - 2]; + return ae.value !== !0 && (R ? R.editable === !1 : C.value === H.value.length && !r.editable); + }), z = S(() => C.value === Object.keys(H.value).length); + function ne(R) { + var be, Ee, De, Ye, bt; + const { firstNonEditableIndex: P, lastNonEditableIndex: Oe } = jn(H.value), p = H.value, c = p.findIndex((ze) => ze === R), _ = R.editable !== !1, I = R.editable === !1, E = ((be = p[L.value]) == null ? void 0 : be.editable) !== !1, U = p.length - 1, x = c - 1, q = ((Ee = p[x]) == null ? void 0 : Ee.editable) !== !1, ee = ((De = p[x]) == null ? void 0 : De.editable) === !1, ye = c + 1, W = ((Ye = p[ye]) == null ? void 0 : Ye.editable) !== !1, Ve = ((bt = p[ye]) == null ? void 0 : bt.editable) === !1; return L.value === c || !!ae.value && !K.value && (m.value ? ((ze) => { - const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Xe, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageIdx: Ae, pageNotEditable: Fe, previousPageEditable: yn, previousPageNotEditable: it } = ze, Je = s(ze.currentPageIdx); - if (Ae > Xe) return Je > Xe; - if (Ae === Xe) return !1; - if (Ae < Xe) { - if (Je === Xt) return !1; - if (Ae > Re) return !(!lt || !gn) || !!(lt && _n && Ae > Re && Je > Re && Ae > Je); + const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Ze, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageIdx: Ae, pageNotEditable: Fe, previousPageEditable: yn, previousPageNotEditable: it } = ze, Xe = s(ze.currentPageIdx); + if (Ae > Ze) return Xe > Ze; + if (Ae === Ze) return !1; + if (Ae < Ze) { + if (Xe === Xt) return !1; + if (Ae > Re) return !(!lt || !gn) || !!(lt && _n && Ae > Re && Xe > Re && Ae > Xe); } - return Ae > Re ? !(Je <= Re) : Ae < Re && Je <= Re || !(Je > Ae && Ae <= Re) && (Ae < Je || !Fe && (Je <= Ae ? !(Ae < Re) : !!(Je >= Ae && yn))); - })({ currentPageEditable: E, currentPageIdx: L, firstNonEditableIndex: P, lastNonEditableIndex: Oe, lastPageIdx: U, nextPageEditable: W, nextPageNotEditable: Ve, pageIdx: c, pageNotEditable: I, previousPageEditable: q, previousPageNotEditable: Q }) : ((ze) => { - const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Xe, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageEditable: Ae, pageIdx: Fe, pageNotEditable: yn } = ze, it = s(ze.currentPageIdx); + return Ae > Re ? !(Xe <= Re) : Ae < Re && Xe <= Re || !(Xe > Ae && Ae <= Re) && (Ae < Xe || !Fe && (Xe <= Ae ? !(Ae < Re) : !!(Xe >= Ae && yn))); + })({ currentPageEditable: E, currentPageIdx: L, firstNonEditableIndex: P, lastNonEditableIndex: Oe, lastPageIdx: U, nextPageEditable: W, nextPageNotEditable: Ve, pageIdx: c, pageNotEditable: I, previousPageEditable: q, previousPageNotEditable: ee }) : ((ze) => { + const { currentPageEditable: lt, firstNonEditableIndex: Re, lastNonEditableIndex: Ze, lastPageIdx: Xt, nextPageEditable: gn, nextPageNotEditable: _n, pageEditable: Ae, pageIdx: Fe, pageNotEditable: yn } = ze, it = s(ze.currentPageIdx); if (Fe < it) { - if (it > Xe) { - if (Fe > Re && Fe > Xe && it === Xt && Ae) return !0; + if (it > Ze) { + if (Fe > Re && Fe > Ze && it === Xt && Ae) return !0; if (!Ae) return !1; } if (Fe < Re && it <= Re) return !0; } if (Fe <= Re && lt) return !1; if (Fe < it) { - if (Fe > Re && Fe < Xe && it <= Xe && _n && Ae) return !0; - if (Fe < Xe && yn) return !1; + if (Fe > Re && Fe < Ze && it <= Ze && _n && Ae) return !0; + if (Fe < Ze && yn) return !1; if (Fe > Re && gn && it !== Xt) return !0; } return !1; })({ currentPageEditable: E, currentPageIdx: L, firstNonEditableIndex: P, lastNonEditableIndex: Oe, lastPageIdx: U, nextPageEditable: W, nextPageNotEditable: Ve, pageEditable: _, pageIdx: c, pageNotEditable: I })); } - const X = T(() => r.validationSchema), K = _e(!1), G = _e([]), le = T(() => G.value.includes(A.value - 1)), ne = gr({ initialValues: S.value, keepValuesOnUnmount: (ke = h.value) == null ? void 0 : ke.keepValuesOnUnmount, validationSchema: X.value, valueOnMount: (we = h.value) == null ? void 0 : we.validateOnMount }); - function Y(R) { + const J = S(() => r.validationSchema), K = _e(!1), G = _e([]), le = S(() => G.value.includes(C.value - 1)), Y = _r({ initialValues: T.value, keepValuesOnUnmount: (ke = h.value) == null ? void 0 : ke.keepValuesOnUnmount, validationSchema: J.value, valueOnMount: (we = h.value) == null ? void 0 : we.validateOnMount }); + function Z(R) { if (G.value.includes(R)) { const P = G.value.indexOf(R); P > -1 && G.value.splice(P, 1); @@ -2661,88 +2657,91 @@ const Dt = "v-stepper-form", mo = (e, t, a = {}) => { if (!p) return; const c = H.value.findIndex((I) => I === p), _ = (p == null ? void 0 : p.fields) ?? []; if (Object.keys(R).some((I) => _.some((E) => E.name === I))) return K.value = !0, void b(c, p, P); - Y(c), Oe && !z.value && P !== "submit" && Oe(); + Z(c), Oe && !z.value && P !== "submit" && Oe(); } function b(R, P, Oe = "submit") { K.value = !0, P && Oe === "submit" && (P.error = !0), G.value.includes(R) || G.value.push(R); } let F; - const ue = ne.handleSubmit((R) => { + Sl(Y.values, () => { + T.value = Y.values, ce(); + }); + const ue = Y.handleSubmit((R) => { n("submit", R); - }), H = T(() => (Object.values(g).forEach((R, P) => { + }), H = S(() => (Object.values(g).forEach((R, P) => { const Oe = R; if (Oe.visible = !0, Oe.when) { - const p = Oe.when(S.value); + const p = Oe.when(Y.values); g[P] && (g[P].visible = p); } }), g.filter((R) => R.visible))); function ce() { - Object.values(H.value).forEach((R, P) => { + Object.values(g).forEach((R, P) => { R.fields && Object.values(R.fields).forEach((Oe, p) => { if (Oe.when) { - const c = Oe.when(S.value), _ = H.value[P]; + const c = Oe.when(Y.values), _ = H.value[P]; _ != null && _.fields && (_ != null && _.fields[p]) && (_.fields[p].type = c ? y[P].fields[p].type : "hidden"); } }); }); } - const oe = T(() => ((R) => { + const oe = S(() => ((R) => { const { direction: P } = R; - return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${Dt}`]: !0, [`${Dt}--container`]: !0, [`${Dt}--container-${P}`]: !0 }; - })({ direction: d.value })), Ie = T(() => ((R) => { + return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${jt}`]: !0, [`${jt}--container`]: !0, [`${jt}--container-${P}`]: !0 }; + })({ direction: d.value })), Ie = S(() => ((R) => { const { direction: P } = R; - return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${Dt}--container-stepper`]: !0, [`${Dt}--container-stepper-${P}`]: !0 }; - })({ direction: d.value })), he = T(() => ({ width: "100%" })), V = T(() => ({ width: O.value })); + return { "d-flex flex-column justify-center align-center": P === "horizontal", [`${jt}--container-stepper`]: !0, [`${jt}--container-stepper-${P}`]: !0 }; + })({ direction: d.value })), he = S(() => ({ width: "100%" })), V = S(() => ({ width: O.value })); function D(R) { return R + 1; } - return (R, P) => (M(), me("div", { class: Me(s(oe)), style: ut(s(he)) }, [Ue("div", { style: ut(s(V)) }, [s(f) ? (M(), ve(bn, { key: 0, fluid: "" }, { default: Z(() => [re(qt, null, { default: Z(() => [re(kt, null, { default: Z(() => [Ue("h2", null, st(s(f)), 1)]), _: 1 })]), _: 1 })]), _: 1 })) : Te("", !0), re(bn, { class: Me(s(Ie)), fluid: "" }, { default: Z(() => [re(Fl, tt({ modelValue: s(A), "onUpdate:modelValue": P[4] || (P[4] = (Oe) => nt(A) ? A.value = Oe : null), "data-cy": "vsf-stepper-form" }, s(v), { mobile: s(de), width: "100%" }), { default: Z(({ prev: Oe, next: p }) => [re(zl, { "data-cy": "vsf-stepper-header" }, { default: Z(() => [(M(!0), me(xe, null, Ge(s(H), (c, _) => (M(), me(xe, { key: `${D(_)}-step` }, [re(Kl, { class: Me(`vsf-activator-${s(o)}-${_ + 1}`), color: s(h).color, "edit-icon": c.isSummary ? "$complete" : s(h).editIcon, editable: te(c), elevation: "0", error: s(K) && s(G).includes(_), title: c.title, value: D(_), onClick: (I) => function(E) { + return (R, P) => (M(), me("div", { class: Me(s(oe)), style: ut(s(he)) }, [Ue("div", { style: ut(s(V)) }, [s(f) ? (M(), ve(bn, { key: 0, fluid: "" }, { default: X(() => [re(qt, null, { default: X(() => [re(kt, null, { default: X(() => [Ue("h2", null, st(s(f)), 1)]), _: 1 })]), _: 1 })]), _: 1 })) : Te("", !0), re(bn, { class: Me(s(Ie)), fluid: "" }, { default: X(() => [re(zl, tt({ modelValue: s(C), "onUpdate:modelValue": P[4] || (P[4] = (Oe) => nt(C) ? C.value = Oe : null), "data-cy": "vsf-stepper-form" }, s(v), { mobile: s(de), width: "100%" }), { default: X(({ prev: Oe, next: p }) => [re(Kl, { "data-cy": "vsf-stepper-header" }, { default: X(() => [(M(!0), me(xe, null, We(s(H), (c, _) => (M(), me(xe, { key: `${D(_)}-step` }, [re(ql, { class: Me(`vsf-activator-${s(o)}-${_ + 1}`), color: s(h).color, "edit-icon": c.isSummary ? "$complete" : s(h).editIcon, editable: ne(c), elevation: "0", error: s(K) && s(G).includes(_), title: c.title, value: D(_), onClick: (I) => function(E) { const U = E === 0 ? 0 : E - 1, x = H.value[U]; x && x.fields && x.fields.forEach((q) => { - ne.validateField(q.name, {}, { name: q.name }).then((Q) => { - if (Q.errors.length) return A.value = U + 1, K.value = !0, void b(U, x, "submit"); - Y(U); + Y.validateField(q.name, {}, { name: q.name }).then((ee) => { + if (ee.errors.length) return C.value = U + 1, K.value = !0, void b(U, x, "submit"); + Z(U); }); }); - }(_) }, { default: Z(() => [!s($) && s(h).headerTooltips && (c != null && c.fields) && (c == null ? void 0 : c.fields.length) > 0 ? (M(), ve(Yl, { key: 0, activator: c.title ? "parent" : `.vsf-activator-${s(o)}-${_ + 1}`, location: s(h).tooltipLocation, offset: c.title ? s(h).tooltipOffset : Number(s(h).tooltipOffset) - 28, transition: s(h).tooltipTransition }, { default: Z(() => [(M(!0), me(xe, null, Ge(c.fields, (I, E) => (M(), me("div", { key: E }, st(I.label), 1))), 128))]), _: 2 }, 1032, ["activator", "location", "offset", "transition"])) : Te("", !0)]), _: 2 }, 1032, ["class", "color", "edit-icon", "editable", "error", "title", "value", "onClick"]), D(_) !== Object.keys(s(H)).length ? (M(), ve($l, { key: D(_) })) : Te("", !0)], 64))), 128))]), _: 1 }), Ue("form", { ref: "stepperFormRef", onSubmit: P[3] || (P[3] = (...c) => s(ue) && s(ue)(...c)) }, [re(ql, null, { default: Z(() => [(M(!0), me(xe, null, Ge(s(H), (c, _) => (M(), ve(Wl, { key: `${D(_)}-content`, "data-cy": c.isSummary ? "vsf-page-summary" : `vsf-page-${D(_)}`, "reverse-transition": s(J), transition: s(J), value: D(_) }, { default: Z(() => [re(bn, null, { default: Z(() => { + }(_) }, { default: X(() => [!s($) && s(h).headerTooltips && (c != null && c.fields) && (c == null ? void 0 : c.fields.length) > 0 ? (M(), ve(Zl, { key: 0, activator: c.title ? "parent" : `.vsf-activator-${s(o)}-${_ + 1}`, location: s(h).tooltipLocation, offset: c.title ? s(h).tooltipOffset : Number(s(h).tooltipOffset) - 28, transition: s(h).tooltipTransition }, { default: X(() => [(M(!0), me(xe, null, We(c.fields, (I, E) => (M(), me("div", { key: E }, st(I.label), 1))), 128))]), _: 2 }, 1032, ["activator", "location", "offset", "transition"])) : Te("", !0)]), _: 2 }, 1032, ["class", "color", "edit-icon", "editable", "error", "title", "value", "onClick"]), D(_) !== Object.keys(s(H)).length ? (M(), ve(Fl, { key: D(_) })) : Te("", !0)], 64))), 128))]), _: 1 }), Ue("form", { ref: "stepperFormRef", onSubmit: P[3] || (P[3] = (...c) => s(ue) && s(ue)(...c)) }, [re(Wl, null, { default: X(() => [(M(!0), me(xe, null, We(s(H), (c, _) => (M(), ve(Gl, { key: `${D(_)}-content`, "data-cy": c.isSummary ? "vsf-page-summary" : `vsf-page-${D(_)}`, "reverse-transition": s(Q), transition: s(Q), value: D(_) }, { default: X(() => [re(bn, null, { default: X(() => { var I, E; - return [c.isSummary ? (M(), ve(Nr, { key: 1, modelValue: S.value, "onUpdate:modelValue": P[1] || (P[1] = (U) => S.value = U), page: c, pages: s(H), settings: s(h), summaryColumns: (I = s(h)) == null ? void 0 : I.summaryColumns, onGoToQuestion: P[2] || (P[2] = (U) => A.value = U) }, null, 8, ["modelValue", "page", "pages", "settings", "summaryColumns"])) : (M(), ve(Rr, { key: `${D(_)}-page`, modelValue: S.value, "onUpdate:modelValue": P[0] || (P[0] = (U) => S.value = U), fieldColumns: (E = s(h)) == null ? void 0 : E.fieldColumns, index: D(_), page: c, pageIndex: D(_), settings: s(h), onValidate: (U) => function(x, q) { + return [c.isSummary ? (M(), ve(Mr, { key: 1, modelValue: T.value, "onUpdate:modelValue": P[1] || (P[1] = (U) => T.value = U), page: c, pages: s(H), settings: s(h), summaryColumns: (I = s(h)) == null ? void 0 : I.summaryColumns, onGoToQuestion: P[2] || (P[2] = (U) => C.value = U) }, null, 8, ["modelValue", "page", "pages", "settings", "summaryColumns"])) : (M(), ve(Nr, { key: `${D(_)}-page`, modelValue: T.value, "onUpdate:modelValue": P[0] || (P[0] = (U) => T.value = U), fieldColumns: (E = s(h)) == null ? void 0 : E.fieldColumns, index: D(_), page: c, pageIndex: D(_), settings: s(h), onValidate: (U) => function(x, q) { var W; - const Q = ne.errorBag, ye = x.autoPage || h.value.autoPage ? q : null; - x != null && x.autoPage || (W = h.value) != null && W.autoPage ? se.value && ne.validate().then((Ve) => { + const ee = Y.errorBag, ye = x.autoPage || h.value.autoPage ? q : null; + x != null && x.autoPage || (W = h.value) != null && W.autoPage ? se.value && Y.validate().then((Ve) => { var Ee; if (Ve.valid) return clearTimeout(F), void (F = setTimeout(() => { - pe(Q, "field", ye); + pe(ee, "field", ye); }, (x == null ? void 0 : x.autoPageDelay) ?? ((Ee = h.value) == null ? void 0 : Ee.autoPageDelay))); const be = H.value[L.value]; b(H.value.findIndex((De) => De === be), be, "validating"); }).catch((Ve) => { console.error("Error", Ve); - }) : ne.validateField(x.name, {}, { name: x.name }).then(() => { - pe(ne.errorBag.value, "field", ye); + }) : Y.validateField(x.name, {}, { name: x.name }).then(() => { + pe(Y.errorBag.value, "field", ye); }); - }(U, p) }, Gn({ _: 2 }, [Ge(s(l), (U, x) => ({ name: x, fn: Z((q) => [Zn(R.$slots, x, tt({ ref_for: !0 }, { ...q }), void 0, !0)]) }))]), 1032, ["modelValue", "fieldColumns", "index", "page", "pageIndex", "settings", "onValidate"]))]; - }), _: 2 }, 1024)]), _: 2 }, 1032, ["data-cy", "reverse-transition", "transition", "value"]))), 128))]), _: 2 }, 1024), s(h).hideActions ? Te("", !0) : (M(), ve(Gl, { key: 0 }, { next: Z(() => [s(z) ? (M(), ve(an, { key: 1, color: s(h).color, "data-cy": "vsf-submit-button", disabled: s(le), size: R.navButtonSize, type: "submit", variant: R.navButtonVariant, onClick: s(ue) }, { default: Z(() => P[5] || (P[5] = [rn("Submit")])), _: 1 }, 8, ["color", "disabled", "size", "variant", "onClick"])) : (M(), ve(an, { key: 0, color: s(h).color, "data-cy": "vsf-next-button", disabled: s(C), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_ = "submit", I = () => { + }(U, p) }, Yn({ _: 2 }, [We(s(l), (U, x) => ({ name: x, fn: X((q) => [Xn(R.$slots, x, tt({ ref_for: !0 }, { ...q }), void 0, !0)]) }))]), 1032, ["modelValue", "fieldColumns", "index", "page", "pageIndex", "settings", "onValidate"]))]; + }), _: 2 }, 1024)]), _: 2 }, 1032, ["data-cy", "reverse-transition", "transition", "value"]))), 128))]), _: 2 }, 1024), s(h).hideActions ? Te("", !0) : (M(), ve(Yl, { key: 0 }, { next: X(() => [s(z) ? (M(), ve(an, { key: 1, color: s(h).color, "data-cy": "vsf-submit-button", disabled: s(le), size: R.navButtonSize, type: "submit", variant: R.navButtonVariant, onClick: s(ue) }, { default: X(() => P[5] || (P[5] = [rn("Submit")])), _: 1 }, 8, ["color", "disabled", "size", "variant", "onClick"])) : (M(), ve(an, { key: 0, color: s(h).color, "data-cy": "vsf-next-button", disabled: s(A), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_ = "submit", I = () => { }) { - se.value && ne.validate().then((E) => { + se.value && Y.validate().then((E) => { pe(E.errors, _, I); }).catch((E) => { console.error("Error", E); }); - }("next", p) }, null, 8, ["color", "disabled", "size", "variant", "onClick"]))]), prev: Z(() => [re(an, { "data-cy": "vsf-previous-button", disabled: s(B), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_) { + }("next", p) }, null, 8, ["color", "disabled", "size", "variant", "onClick"]))]), prev: X(() => [re(an, { "data-cy": "vsf-previous-button", disabled: s(B), size: R.navButtonSize, variant: R.navButtonVariant, onClick: (c) => function(_) { ie.value || _(); }(Oe) }, null, 8, ["disabled", "size", "variant", "onClick"])]), _: 2 }, 1024))], 544)]), _: 3 }, 16, ["modelValue", "mobile"])]), _: 3 }, 8, ["class"])], 4)], 6)); -} }), Lr = cl(Mr, [["__scopeId", "data-v-d58e9787"]]), Br = Object.freeze(Object.defineProperty({ __proto__: null, default: Lr }, Symbol.toStringTag, { value: "Module" })), Hr = Oo, $r = Symbol(); -function ss(e = Hr) { +} }), Br = pl(Lr, [["__scopeId", "data-v-15220e2c"]]), Hr = Object.freeze(Object.defineProperty({ __proto__: null, default: Br }, Symbol.toStringTag, { value: "Module" })); +function rs(e = {}) { return { install: (t) => { - t.provide($r, e), t.config.idPrefix = "vsf", t.component("VStepperForm", da(() => Promise.resolve().then(() => Br))), t.component("FieldLabel", da(() => import("./FieldLabel-BRQ0K1ZH.mjs"))); + const a = Pn(e, Eo); + t.provide(Oo, a), t.config.idPrefix = "vsf", t.component("VStepperForm", ca(() => Promise.resolve().then(() => Hr))), t.component("FieldLabel", ca(() => import("./FieldLabel-C78b4p01.mjs"))); } }; } export { gt as FieldLabel, - Lr as VStepperForm, - ss as createVStepperForm, - Lr as default, - $r as globalOptions + Br as VStepperForm, + rs as createVStepperForm, + Br as default }; -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-d58e9787] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".v-item-group[data-v-49f12da6]{flex-wrap:wrap}.vsf-button-field__btn-label[data-v-49f12da6]{color:var(--7f272e17)}.v-stepper-item--error[data-v-15220e2c] .v-icon{color:#fff}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); diff --git a/eslint.config.mjs b/eslint.config.mjs index 0790909..68d7bb1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,9 +11,12 @@ export default tseslint.config( ...wdnsConfig, { ignores: [ + '*__TEMP.*', + '*__TEMP/', '**/*.cy.ts', '**/cypress/**', 'cypress.config.ts', + 'src/playground/*', 'src/playground/configs/templates/PlaygroundPage.vue', 'src/types/cypress.d.ts', 'vite.build.config.mts', diff --git a/src/documentation/components/examples/ConditionalFieldExample.vue b/src/documentation/components/examples/ConditionalFieldExample.vue index 5d5a7a6..6f7de07 100644 --- a/src/documentation/components/examples/ConditionalFieldExample.vue +++ b/src/documentation/components/examples/ConditionalFieldExample.vue @@ -1,13 +1,13 @@ @@ -17,7 +17,7 @@ import AnswersDialog from '../AnswersDialog.vue'; const dialog = ref(false); -const answers = ref({ +const formAnswers = ref({ bar: null, conditionalParent: null, foo: null, @@ -46,16 +46,16 @@ const pages = [ label: 'Foo', name: 'foo', type: 'text' as const, - when() { - return answers.value.conditionalParent === 'foo'; + when(answers: any) { + return answers.conditionalParent === 'foo'; }, }, { label: 'Bar', name: 'bar', type: 'text' as const, - when() { - return answers.value.conditionalParent === 'bar'; + when(answers: any) { + return answers.conditionalParent === 'bar'; }, }, ], @@ -68,7 +68,7 @@ function submitForm(): void { const templateCode = `