1import{d as h,o as p,c as _,aa as B,t as E,b as F,B as N,u as q,bB as S,bC as A,bD as V,bE as D,M as L}from"./BBsw3eGQ.js";import{E as T,i as $,c as C}from"./BBUU_hT7.js";const I=["for"],M={key:0,"aria-hidden":"true"},w=h({name:"FormLabel",__name:"FormLabel",props:{text:{},for:{},required:{type:Boolean}},setup(t){return(e,n)=>(p(),_("label",{for:e.$props.for,class:"form-label"},[B(E(t.text)+" ",1),t.required?(p(),_("span",M,"*")):F("",!0)],8,I))}}),R=Object.assign(w,{__name:"FormLabel"}),z=h({name:"FormError",__name:"FormError",props:{name:{}},setup(t){return(e,n)=>(p(),N(q(T),{name:t.name,class:"text-sm text-error"},null,8,["name"]))}}),W=Object.assign(z,{__name:"FormError"});const l=t=>t!==null&&!!t&&typeof t=="object"&&!Array.isArray(t);function j(t){return Number(t)>=0}function U(t){return typeof t=="object"&&t!==null}function G(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function b(t){if(!U(t)||G(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function x(t,e){return Object.keys(e).forEach(n=>{if(b(e[n])&&b(t[n])){t[n]||(t[n]={}),x(t[n],e[n]);return}t[n]=e[n]}),t}function H(t){const e=t.split(".");if(!e.length)return"";let n=String(e[0]);for(let r=1;r<e.length;r++){if(j(e[r])){n+=`[${e[r]}]`;continue}n+=`.${e[r]}`}return n}function X(t,e){return{__type:"VVTypedSchema",async parse(r){const o=await S(t,r);if(o.success)return{value:o.output,errors:[]};const i={};return P(o.issues,i),{errors:Object.values(i)}},cast(r){if(t.async)return r;const o=A(t,r);if(o.success)return o.output;const i=D(L(t));return l(i)&&l(r)?x(i,r):r},describe(r){try{if(!r)return{required:!O(t),exists:!0};const o=m(r,t);return o?{required:!O(o),exists:!0}:{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function P(t,e){t.forEach(n=>{const r=H(V(n)||"");n.issues&&(P(n.issues.flatMap(o=>o.issues||[]),e),!r)||(e[r]||(e[r]={errors:[],path:r}),e[r].errors.push(n.message))})}function m(t,e){var n,r,o,i;if(y(e))return(n=e.options.map(u=>m(t,u)).find(Boolean))!==null&&n!==void 0?n:null;if(g(e))return(r=e.options.map(u=>m(t,u)).find(Boolean))!==null&&r!==void 0?r:null;if(!f(e))return null;if($(t))return e.entries[C(t)];const d=(t||"").split(/\.|\[(\d+)\]/).filter(Boolean);let s=e;for(let u=0;u<=d.length;u++){const c=d[u];if(!c||!s)return s;if(y(s)&&(s=(o=s.options.find(a=>f(a)&&a.entries[c]))!==null&&o!==void 0?o:s),g(s)&&(s=(i=s.options.find(a=>f(a)&&a.entries[c]))!==null&&i!==void 0?i:s),f(s)){s=s.entries[c]||null;continue}j(c)&&J(s)&&(s=s.item)}return null}function O(t){return t.type==="optional"}function J(t){return l(t)&&"item"in t}function f(t){return l(t)&&"entries"in t}function y(t){return t.type==="intersect"}function g(t){return t.type==="variant"}export{R as _,W as a,X as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.