1import{Q as Ct}from"./petite-vue.es-Dlx7h2Mn.js";function k(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const r=t[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${r}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Et(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)}function St(){}function G(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function H(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const jt="[object RegExp]",rt="[object String]",nt="[object Number]",st="[object Boolean]",Pt="[object Arguments]",xt="[object Symbol]",Ft="[object Date]",Nt="[object Map]",Rt="[object Set]",Dt="[object Array]",vt="[object Function]",$t="[object ArrayBuffer]",X="[object Object]",te="[object Error]",Bt="[object DataView]",It="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Ht="[object Uint16Array]",Lt="[object Uint32Array]",ee="[object BigUint64Array]",Wt="[object Int8Array]",_t="[object Int16Array]",Mt="[object Int32Array]",re="[object BigInt64Array]",Xt="[object Float32Array]",qt="[object Float64Array]",yt=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function V(t){return typeof yt.Buffer<"u"&&yt.Buffer.isBuffer(t)}function ht(t){if(!t||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype||Object.getPrototypeOf(e)===null?Object.prototype.toString.call(t)==="[object Object]":!1}function ne(t,e,r){return I(t,e,void 0,void 0,void 0,void 0,r)}function I(t,e,r,n,i,u,s){const o=s(t,e,r,n,i,u);if(o!==void 0)return o;if(typeof t==typeof e)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return t===e;case"number":return t===e||Object.is(t,e);case"function":return t===e;case"object":return U(t,e,u,s)}return U(t,e,u,s)}function U(t,e,r,n){if(Object.is(t,e))return!0;let i=H(t),u=H(e);if(i==="[object Arguments]"&&(i=X),u==="[object Arguments]"&&(u=X),i!==u)return!1;switch(i){case rt:return t.toString()===e.toString();case nt:return Et(t.valueOf(),e.valueOf());case st:case Ft:case xt:return Object.is(t.valueOf(),e.valueOf());case jt:return t.source===e.source&&t.flags===e.flags;case vt:return t===e}r=r??new Map;const s=r.get(t),o=r.get(e);if(s!=null&&o!=null)return s===e;r.set(t,e),r.set(e,t);try{switch(i){case Nt:if(t.size!==e.size)return!1;for(const[c,p]of t.entries())if(!e.has(c)||!I(p,e.get(c),c,t,e,r,n))return!1;return!0;case Rt:{if(t.size!==e.size)return!1;const c=Array.from(t.values()),p=Array.from(e.values());for(let f=0;f<c.length;f++){const d=c[f],g=p.findIndex(w=>I(d,w,void 0,t,e,r,n));if(g===-1)return!1;p.splice(g,1)}return!0}case Dt:case It:case Ut:case Ht:case Lt:case ee:case Wt:case _t:case Mt:case re:case Xt:case qt:if(V(t)!==V(e)||t.length!==e.length)return!1;for(let c=0;c<t.length;c++)if(!I(t[c],e[c],c,t,e,r,n))return!1;return!0;case $t:return t.byteLength!==e.byteLength?!1:U(new Uint8Array(t),new Uint8Array(e),r,n);case Bt:return t.byteLength!==e.byteLength||t.byteOffset!==e.byteOffset?!1:U(new Uint8Array(t),new Uint8Array(e),r,n);case te:return t.name===e.name&&t.message===e.message;case X:{if(!(U(t.constructor,e.constructor,r,n)||ht(t)&&ht(e)))return!1;const c=[...Object.keys(t),...G(t)],p=[...Object.keys(e),...G(e)];if(c.length!==p.length)return!1;for(let f=0;f<c.length;f++){const d=c[f],g=t[d];if(!Object.hasOwn(e,d))return!1;const w=e[d];if(!I(g,w,d,t,e,r,n))return!1}return!0}default:return!1}}finally{r.delete(t),r.delete(e)}}function se(t,e){return ne(t,e,St)}function ie(t){return Number.isSafeInteger(t)&&t>=0}function oe(t){return t!=null&&typeof t!="function"&&ie(t.length)}function zt(t){if(t==null)return"";if(typeof t=="string")return t;if(Array.isArray(t))return t.map(zt).join(",");const e=String(t);return e==="0"&&Object.is(Number(t),-0)?"-0":e}function it(t){return typeof t=="string"||typeof t=="symbol"?t:Object.is(t?.valueOf?.(),-0)?"-0":String(t)}function Gt(t){if(Array.isArray(t))return t.map(it);if(typeof t=="symbol")return[t];t=zt(t);const e=[],r=t.length;if(r===0)return e;let n=0,i="",u="",s=!1;for(t.charCodeAt(0)===46&&e.push("");n<r;){const o=t[n];if(u)o==="\\"&&n+1<r?(n++,i+=t[n]):o===u?u="":i+=o;else if(s)o==='"'||o==="'"?u=o:o==="]"?(s=!1,e.push(i),i=""):i+=o;else if(o==="[")s=!0,i&&(e.push(i),i="");else if(o==="."){i&&(e.push(i),i="");const c=t[n+1];(c===void 0||c===".")&&e.push("")}else i+=o;n++}return i&&e.push(i),e}function L(t){return t==="__proto__"}function ce(t){switch(typeof t){case"number":case"symbol":return!1;case"string":return t.includes(".")||t.includes("[")||t.includes("]")}}function W(t,e,r){if(t==null)return r;
1switch(typeof e){case"string":{if(L(e))return r;const n=t[e];return n===void 0?ce(e)&&!Object.hasOwn(t,e)?W(t,Gt(e),r):r:n}case"number":case"symbol":{typeof e=="number"&&(e=it(e));const n=t[e];return n===void 0?r:n}default:{if(Array.isArray(e))return fe(t,e,r);if(Object.is(e?.valueOf(),-0)?e="-0":e=String(e),L(e))return r;const n=t[e];return n===void 0?r:n}}}function fe(t,e,r){if(e.length===0)return r;let n=t;for(let i=0;i<e.length;i++){if(n==null||L(e[i]))return r;n=n[e[i]]}return n===void 0?r:n}function gt(t){return t!==null&&(typeof t=="object"||typeof t=="function")}function ot(t){return t==null||typeof t!="object"&&typeof t!="function"}function ct(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function ue(t,e){return F(t,void 0,t,new Map,e)}function F(t,e,r,n=new Map,i=void 0){const u=i?.(t,e,r,n);if(u!==void 0)return u;if(ot(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){const s=new Array(t.length);n.set(t,s);for(let o=0;o<t.length;o++)s[o]=F(t[o],o,r,n,i);return Object.hasOwn(t,"index")&&(s.index=t.index),Object.hasOwn(t,"input")&&(s.input=t.input),s}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const s=new RegExp(t.source,t.flags);return s.lastIndex=t.lastIndex,s}if(t instanceof Map){const s=new Map;n.set(t,s);for(const[o,c]of t)s.set(o,F(c,o,r,n,i));return s}if(t instanceof Set){const s=new Set;n.set(t,s);for(const o of t)s.add(F(o,void 0,r,n,i));return s}if(V(t))return t.subarray();if(ct(t)){const s=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,s);for(let o=0;o<t.length;o++)s[o]=F(t[o],o,r,n,i);return s}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const s=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,s),S(s,t,r,n,i),s}if(typeof File<"u"&&t instanceof File){const s=new File([t],t.name,{type:t.type});return n.set(t,s),S(s,t,r,n,i),s}if(typeof Blob<"u"&&t instanceof Blob){const s=new Blob([t],{type:t.type});return n.set(t,s),S(s,t,r,n,i),s}if(t instanceof Error){const s=structuredClone(t);return n.set(t,s),s.message=t.message,s.name=t.name,s.stack=t.stack,s.cause=t.cause,s.constructor=t.constructor,S(s,t,r,n,i),s}if(t instanceof Boolean){const s=new Boolean(t.valueOf());return n.set(t,s),S(s,t,r,n,i),s}if(t instanceof Number){const s=new Number(t.valueOf());return n.set(t,s),S(s,t,r,n,i),s}if(t instanceof String){const s=new String(t.valueOf());return n.set(t,s),S(s,t,r,n,i),s}if(typeof t=="object"&&ae(t)){const s=Object.create(Object.getPrototypeOf(t));return n.set(t,s),S(s,t,r,n,i),s}return t}function S(t,e,r=t,n,i){const u=[...Object.keys(e),...G(e)];for(let s=0;s<u.length;s++){const o=u[s],c=Object.getOwnPropertyDescriptor(t,o);(c==null||c.writable)&&(t[o]=F(e[o],o,r,n,i))}}function ae(t){switch(H(t)){case Pt:case Dt:case $t:case Bt:case st:case Ft:case Xt:case qt:case Wt:case _t:case Mt:case Nt:case nt:case X:case jt:case Rt:case rt:case xt:case It:case Ut:case Ht:case Lt:return!0;default:return!1}}function le(t,e){return ue(t,(r,n,i,u)=>{if(typeof t=="object"){if(H(t)==="[object Object]"&&typeof t.constructor!="function"){const s={};return u.set(t,s),S(s,t,i,u),s}switch(Object.prototype.toString.call(t)){case nt:case rt:case st:{const s=new t.constructor(t?.valueOf());return S(s,t),s}case Pt:{const s={};return S(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function mt(t){return le(t)}function wt(t){return t!==null&&typeof t=="object"&&H(t)==="[object Arguments]"}const de=/^(?:0|[1-9]\d*)$/;function pe(t,e=Number.MAX_SAFE_INTEGER){switch(typeof t){case"number":return Number.isInteger(t)&&t>=0&&t<e;case"symbol":return!1;case"string":return de.test(t)}}function v(t){return typeof t=="object"&&t!==null}function ye(t){return v(t)&&oe(t)}function he(t){return typeof t=="symbol"||t instanceof Symbol}const ge=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,me=/^\w*$/;function we(t,e){return Array.isArray(t)?!1:typeof t=="number"||typeof t=="boolean"||t==null||he(t)?!0:typeof t=="string"&&(me.test(t)||!ge.test(t))||e!=null&&Object.hasOwn(e,t)}const Oe=(t,e,r)=>{const n=t[e];(!(Object.hasOwn(t,e)&&Et(n,r))||r===void 0&&!(e in t))&&(t[e]=r)};function be(t,e,r,n){if(t==null&&!gt(t))return t;let i;we(e,t)?i=[e]:Array.isArray(e)?i=e:i=Gt(e);const u=r(W(t,i));let s=t;for(let o=0;o<i.length&&s!=null;o++){const c=it(i[o]);if(L(c))continue;let p;if(o===i.length-1)p=u;else{const f=s[c],d=n?.(f,c,t);p=d!==void 0?d:gt(f)?f:pe(i[o+1])?[]:{}}Oe(s,c,p),s=s[c]}return t}function Ae(t,e,r){return be(t,e,()=>r,()=>{})}function Ee(t,e,{signal:r,edges:n}={}){let i,u=null;const s=n!=null&&n.includes("leading"),o=n==null||n.includes("trailing"),c=()=>{u!==null&&(t.apply(i,u),i=void 0,u=null)},p=()=>{o&&c(),w()};let f=null;const d=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,p()},e)},g=()=>{f!==null&&(clearTimeout(f),f=null)},w=()=>{g(),i=void 0,u=null},m=()=>{c()},b=function(..._){if(r?.aborted)return;i=this,u=_;const j=f==null;d(),s&&j&&c()};return b.schedule=d,b.cancel=w,b.flush=m,r?.addEventListener("abort",w,{once:!0}),b}function Se(t,e=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:u}=r,s=Array(2);
1n&&(s[0]="leading"),i&&(s[1]="trailing");let o,c=null;const p=Ee(function(...g){o=t.apply(this,g),c=null},e,{edges:s}),f=function(...g){return u!=null&&(c===null&&(c=Date.now()),Date.now()-c>=u)?(o=t.apply(this,g),c=Date.now(),p.cancel(),p.schedule(),o):(p.apply(this,g),o)},d=()=>(p.flush(),o);return f.cancel=p.cancel,f.flush=d,f}function C(t){return ct(t)}function je(t){if(ot(t))return t;if(Array.isArray(t)||ct(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(e==null)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const n=new r(t);return n.lastIndex=t.lastIndex,n}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let n;return t instanceof AggregateError?n=new r(t.errors,t.message,{cause:t.cause}):n=new r(t.message,{cause:t.cause}),n.stack=t.stack,Object.assign(n,t),n}return typeof File<"u"&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):typeof t=="object"?Object.assign(Object.create(e),t):t}function Pe(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let i=t;for(let u=0;u<r.length;u++){const s=r[u];i=q(i,s,n,new Map)}return i}function q(t,e,r,n){if(ot(t)&&(t=Object(t)),e==null||typeof e!="object")return t;if(n.has(e))return je(n.get(e));if(n.set(e,t),Array.isArray(e)){e=e.slice();for(let u=0;u<e.length;u++)e[u]=e[u]??void 0}const i=[...Object.keys(e),...G(e)];for(let u=0;u<i.length;u++){const s=i[u];if(L(s))continue;let o=e[s],c=t[s];if(wt(o)&&(o={...o}),wt(c)&&(c={...c}),V(o)&&(o=mt(o)),Array.isArray(o))if(Array.isArray(c)){const f=[],d=Reflect.ownKeys(c);for(let g=0;g<d.length;g++){const w=d[g];f[w]=c[w]}c=f}else if(ye(c)){const f=[];for(let d=0;d<c.length;d++)f[d]=c[d];c=f}else c=[];const p=r(c,o,s,t,e,n);p!==void 0?t[s]=p:Array.isArray(o)||v(c)&&v(o)&&(k(c)||k(o)||C(c)||C(o))?t[s]=q(c,o,r,n):c==null&&k(o)?t[s]=q({},o,r,n):c==null&&C(o)?t[s]=mt(o):(c===void 0||o!==void 0)&&(t[s]=o)}return t}function Q(t,...e){return Pe(t,...e,St)}const ft=t=>typeof File<"u"&&t instanceof File||t instanceof Blob||typeof FileList<"u"&&t instanceof FileList&&t.length>0,Z=t=>t instanceof FormData?!0:ft(t)||typeof t=="object"&&t!==null&&Object.values(t).some(e=>Z(e));class J extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name="HttpResponseError",this.response=e}}class Vt extends Error{constructor(e="Request was cancelled"){super(e),this.name="HttpCancelledError"}}class xe extends Error{constructor(e="Network error"){super(e),this.name="HttpNetworkError"}}function Fe(t){const e=new URLSearchParams;return Object.entries(t).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>e.append(`${r}[]`,String(i))):typeof n=="object"?e.append(r,JSON.stringify(n)):e.append(r,String(n)))}),e.toString()}function Ne(t,e,r){if(e&&!t.startsWith("http://")&&!t.startsWith("https://")&&(t=e.replace(/\/$/,"")+"/"+t.replace(/^\//,"")),r&&Object.keys(r).length>0){const n=Fe(r);n&&(t+=(t.includes("?")?"&":"?")+n)}return t}function Re(){return typeof window>"u"?null:window.axios?.defaults?.headers?.common?.["X-Requested-With"]??null}function Qt(t,e=new FormData,r=null){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&Jt(e,r?`${r}[${n}]`:n,t[n]);return e}function Jt(t,e,r){if(Array.isArray(r))return r.forEach((n,i)=>Jt(t,`${e}[${i}]`,n));if(r instanceof Date)return t.append(e,r.toISOString());if(typeof File<"u"&&r instanceof File)return t.append(e,r,r.name);if(r instanceof Blob)return t.append(e,r);if(typeof r=="boolean")return t.append(e,r?"1":"0");if(typeof r=="string")return t.append(e,r);if(typeof r=="number")return t.append(e,`${r}`);if(r==null)return t.append(e,"");Qt(r,t,e)}function De(t,e){if(t!=null)return t instanceof FormData?t:typeof t=="object"&&Z(t)?Qt(t):typeof t=="object"||e["Content-Type"]?.includes("application/json")?JSON.stringify(t):String(t)}function $e(t){const e={};return t.forEach((r,n)=>{e[n.toLowerCase()]=r}),e}function Be(t={}){let e=t.xsrfCookieName??"XSRF-TOKEN",r=t.xsrfHeaderName??"X-XSRF-TOKEN";function n(){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(^|;\\s*)"+e+"=([^;]*)"));return i?decodeURIComponent(i[2]):null}return{setXsrfCookieName(i){e=i},setXsrfHeaderName(i){r=i},async request(i){const u=Ne(i.url,i.baseURL,i.params),s=i.method.toUpperCase(),o={},c=Re();c&&(o["X-Requested-With"]=c),i.data!==void 0&&!["GET","DELETE"].includes(s)&&!(i.data instanceof FormData)&&!Z(i.data)&&(o["Content-Type"]="application/json"),i.headers&&Object.entries(i.headers).forEac
1h(([m,b])=>{b!==void 0&&(o[m]=String(b))});const p=n();p&&!["GET","HEAD","OPTIONS"].includes(s)&&(o[r]=p);let f=i.signal,d;const g=i.timeout??3e4;if(g>0&&!f){const m=new AbortController;f=m.signal,d=setTimeout(()=>m.abort(),g)}const w=["GET","DELETE"].includes(s)?void 0:De(i.data,o);w instanceof FormData&&delete o["Content-Type"];try{const m=await fetch(u,{method:s,headers:o,body:w,signal:f,credentials:i.credentials??"same-origin"});d&&clearTimeout(d);let b;m.headers.get("content-type")?.includes("application/json")?b=await m.json():b=await m.text();const j={status:m.status,data:b,headers:$e(m.headers)};if(!m.ok)throw new J(j);return j}catch(m){throw d&&clearTimeout(d),m instanceof J?m:m instanceof DOMException&&m.name==="AbortError"?new Vt:m instanceof TypeError?new xe(m.message):m}}}}const tt=Be();let ut=tt,at,Kt,Zt="same-origin",Yt=t=>`${t.method}:${t.baseURL??at??""}${t.url}`,Tt=t=>t.status===204&&t.headers["precognition-success"]==="true";const K={},A={get:(t,e={},r={})=>B($("get",t,e,r)),post:(t,e={},r={})=>B($("post",t,e,r)),patch:(t,e={},r={})=>B($("patch",t,e,r)),put:(t,e={},r={})=>B($("put",t,e,r)),delete:(t,e={},r={})=>B($("delete",t,e,r)),useHttpClient(t){return ut=t,A},withBaseURL(t){return at=t,A},withTimeout(t){return Kt=t,A},withCredentials(t){return Zt=typeof t=="string"?t:t?"include":"omit",A},fingerprintRequestsUsing(t){return Yt=t===null?()=>null:t,A},determineSuccessUsing(t){return Tt=t,A},withXsrfCookieName(t){return tt.setXsrfCookieName(t),A},withXsrfHeaderName(t){return tt.setXsrfHeaderName(t),A}},$=(t,e,r,n)=>({url:e,method:t,...n,...["get","delete"].includes(t)?{params:Q({},r,n?.params)}:{data:Q({},r,n?.data)}}),B=(t={})=>{const e=[Ie,He,Le].reduce((r,n)=>n(r),t);return(e.onBefore??(()=>!0))()===!1?Promise.resolve(null):((e.onStart??(()=>null))(),ut.request({method:e.method,url:e.url,baseURL:e.baseURL??at,data:e.data,params:e.params,headers:e.headers,signal:e.signal,timeout:e.timeout,credentials:Zt}).then(async r=>{e.precognitive&&Ot(r);const n=r.status;let i=r;return e.precognitive&&e.onPrecognitionSuccess&&Tt(r)&&(i=await Promise.resolve(e.onPrecognitionSuccess(r)??i)),e.onSuccess&&Ue(n)&&(i=await Promise.resolve(e.onSuccess(i)??i)),(bt(e,n)??(s=>s))(i)??i},r=>{if(We(r))return Promise.reject(r);const n=r;return e.precognitive&&Ot(n.response),(bt(e,n.response.status)??((u,s)=>Promise.reject(s)))(n.response,n)}).finally(e.onFinish??(()=>null)))},Ie=t=>{const e=t.only??t.validate;return{...t,timeout:t.timeout??Kt,precognitive:t.precognitive!==!1,fingerprint:typeof t.fingerprint>"u"?Yt(t,ut):t.fingerprint,headers:{...t.headers,Accept:"application/json","Content-Type":_e(t),...t.precognitive!==!1?{Precognition:!0}:{},...e?{"Precognition-Validate-Only":Array.from(e).join()}:{}}}},Ue=t=>t>=200&&t<300,He=t=>(typeof t.fingerprint!="string"||(K[t.fingerprint]?.abort(),delete K[t.fingerprint]),t),Le=t=>typeof t.fingerprint!="string"||t.signal||!t.precognitive?t:(K[t.fingerprint]=new AbortController,{...t,signal:K[t.fingerprint].signal}),Ot=t=>{if(t.headers?.precognition!=="true")throw Error("Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.")},We=t=>!(t instanceof J)||typeof t.response?.status!="number",bt=(t,e)=>({401:t.onUnauthorized,403:t.onForbidden,404:t.onNotFound,409:t.onConflict,422:t.onValidationError,423:t.onLocked})[e],_e=t=>t.headers?.["Content-Type"]??t.headers?.["Content-type"]??t.headers?.["content-type"]??(Z(t.data)?"multipart/form-data":"application/json"),Me=(t,e)=>{if(!t.includes("*"))return[t];const r=t.split(".");let n=[""];for(const i of r)if(i==="*"){const u=[];for(const s of n){const o=s?W(e,s):e;if(Array.isArray(o))for(let c=0;c<o.length;c++)u.push(s?`${s}.${c}`:String(c));else if(o!==null&&typeof o=="object")for(const c of Object.keys(o))u.push(s?`${s}.${c}`:c)}n=u}else n=n.map(u=>u?`${u}.${i}`:i);return n},Xe=(t,e)=>e.includes("*")?new RegExp("^"+e.replace(/\./g,"\\.").replace(/\*/g,"[^.]+")+"$").test(t):t===e,At=(t,e)=>Object.fromEntries(Object.entries(t).filter(([r])=>!e.some(n=>Xe(r,n)))),qe=(t,e={})=>{const r={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]};let n=!1,i=!1;const u=a=>a!==i?(i=a,r.validatingChanged):[];let s=[];const o=a=>
1{const l=[...new Set(a)];return s.length!==l.length||!l.every(y=>s.includes(y))?(s=l,r.validatedChanged):[]},c=()=>s.filter(a=>typeof d[a]>"u");let p=[];const f=a=>{const l=[...new Set(a)];return p.length!==l.length||!l.every(y=>p.includes(y))?(p=l,r.touchedChanged):[]};let d={};const g=a=>{const l=Ge(a);return se(d,l)?[]:(d=l,r.errorsChanged)},w=a=>{const l={...d};return delete l[z(a)],g(l)},m=()=>Object.keys(d).length>0;let b=1500;const _=a=>{b=a,M.cancel(),M=dt()};let j=e,Y=null,lt=[],T=null;const dt=()=>Se(a=>{t({get:(l,y={},h={})=>A.get(l,R(y),N(h,a,y)),post:(l,y={},h={})=>A.post(l,R(y),N(h,a,y)),patch:(l,y={},h={})=>A.patch(l,R(y),N(h,a,y)),put:(l,y={},h={})=>A.put(l,R(y),N(h,a,y)),delete:(l,y={},h={})=>A.delete(l,R(y),N(h,a,y))}).catch(l=>l instanceof Vt||l instanceof J&&l.response?.status===422?null:Promise.reject(l))},b,{leading:!0,trailing:!0});let M=dt();const N=(a,l,y={})=>{const h={...a,...l},x=Array.from(h.only??h.validate??p);return{...l,...Q({},a,l),only:x,timeout:h.timeout??5e3,onValidationError:(O,P)=>([...o([...s,...x]),...g(Q(At({...d},x),O.data.errors))].forEach(pt=>pt()),h.onValidationError?h.onValidationError(O,P):Promise.reject(P)),onSuccess:O=>(o([...s,...x]).forEach(P=>P()),h.onSuccess?h.onSuccess(O):O),onPrecognitionSuccess:O=>([...o([...s,...x]),...g(At({...d},x))].forEach(P=>P()),h.onPrecognitionSuccess?h.onPrecognitionSuccess(O):O),onBefore:()=>{const O=p.some(D=>D.includes("*")),P=O?[...new Set(p.flatMap(D=>Me(D,y)))]:p;return h.onBeforeValidation&&h.onBeforeValidation({data:y,touched:P},{data:j,touched:lt})===!1||(h.onBefore||(()=>!0))()===!1?!1:(O&&f(P).forEach(D=>D()),T=p,Y=y,!0)},onStart:()=>{u(!0).forEach(O=>O()),(h.onStart??(()=>null))()},onFinish:()=>{u(!1).forEach(O=>O()),lt=T,j=Y,T=Y=null,(h.onFinish??(()=>null))()}}},kt=(a,l,y)=>{if(typeof a>"u"){const h=Array.from(y?.only??y?.validate??[]);f([...p,...h]).forEach(x=>x()),M(y??{});return}if(ft(l)&&!n){console.warn('Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.');return}a=z(a),(a.includes("*")||W(j,a)!==l)&&(f([a,...p]).forEach(h=>h()),M(y??{}))},R=a=>n===!1?et(a):a,E={touched:()=>p,validate(a,l,y){return typeof a=="object"&&!("target"in a)&&(y=a,a=l=void 0),kt(a,l,y),E},touch(a){const l=Array.isArray(a)?a:[z(a)];return f([...p,...l]).forEach(y=>y()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(a){return g(a).forEach(l=>l()),E},forgetError(a){return w(a).forEach(l=>l()),E},defaults(a){return e=a,j=a,E},reset(...a){if(a.length===0)f([]).forEach(l=>l());else{const l=[...p];a.forEach(y=>{l.includes(y)&&l.splice(l.indexOf(y),1),Ae(j,y,W(e,y))}),f(l).forEach(y=>y())}return E},setTimeout(a){return _(a),E},on(a,l){return r[a].push(l),E},validateFiles(){return n=!0,E},withoutFileValidation(){return n=!1,E}};return E},ze=t=>Object.keys(t).reduce((e,r)=>({...e,[r]:Array.isArray(t[r])?t[r][0]:t[r]}),{}),Ge=t=>Object.keys(t).reduce((e,r)=>({...e,[r]:typeof t[r]=="string"?[t[r]]:t[r]}),{}),z=t=>typeof t!="string"?t.target.name:t,et=t=>{const e={...t};return Object.keys(e).forEach(r=>{const n=e[r];if(n!==null){if(ft(n)){delete e[r];return}if(Array.isArray(n)){e[r]=Object.values(et({...n}));return}if(typeof n=="object"){e[r]=et(e[r]);return}}}),e},Ve={test:function(){console.log("test")},addressCheck:function(){if(this.apiURL&&this.zip_code&&this.house_number&&this.street==""&&this.place==""){const t=`?zip_code=${this.zip_code}&house_number=${this.house_number}&addition=${this.addition}`;window.axios.get(`${this.apiURL}/api/v1/geo/autocomplete${t}`).then(e=>{this.street=e.data.street,this.place=e.data.city}).catch(e=>{})}},prepareMailWin(){Object.defineProperties(this,Object.getOwnPropertyDescriptors({get participated(){return localStorage.getItem(`mailandwin:${this.id}`)||!1},set participated(t){localStorage.setItem(`mailandwin:${this.id}`,t)},get hasEnded(){return new Date(this.ended_at)<new Date}}))}};function Qe(t,e=[]){const{method:r,url:n,...i}=t,u=structuredClone(i);let s=null;function o(f){return s||(s=qe(d=>d[r](n,f.data()),u).on("errorsChanged",()=>{f.errors=ze(s.errors()),f.hasErrors=s.hasErrors()})),s}const c=Object.fromEntries(Object.entries(Ve).filter(([f])=>e.includes(f))),p={...c,...structuredClone(i),errors:{},hasErrors:!1,processing:!1,data(){return Object.keys(u).reduce((f,d)=>({...f,[d]:this[d]}),{})}
1,validate(f){return o(this).validate(z(f),this.data()[f]),this},mounted(f){console.log(this)},reset(...f){const d=f.length?f:Object.keys(u),g=structuredClone(u);return d.forEach(w=>{this[w]=g[w],o(this).forgetError(w)}),o(this).reset(...d),this},async submit(f={}){this.processing=!0;try{return await A[r](n,this.data(),{...f,precognitive:!1,onValidationError:(d,g)=>(o(this).setErrors(d.data.errors),f.onValidationError?f.onValidationError(d):Promise.reject(g))})}catch(d){f.onError&&f.onError(d.response)}finally{this.processing=!1}}};return Object.keys(c).filter(f=>f.startsWith("prepare")).forEach(f=>p[f].call(p)),p}function Ke(t){Ct({PrecognitionForm:Qe}).mount(t)}export{Ke as default};
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.