1import{n as w}from"./CXpScAS2.js";import{p as h,a as E,i as g,b as A}from"./NyONjYbI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"7e9441bdc3e4d060579972c0b05f79ea396b11f4"};var a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="3e760a25-8e1f-4e7f-8daa-4fa8228f28a1",t._sentryDebugIdIdentifier="sentry-dbid-3e760a25-8e1f-4e7f-8daa-4fa8228f28a1")}catch{}})();function L(t){const a=JSON.parse(t);return a.data&&(a.data=h(a.data,E.decoders)),a}function d(t){return HTMLElement.prototype.cloneNode.call(t)}function k(t,a=w){const l=async({action:e,result:s,reset:o=!0,invalidateAll:n=!0})=>{s.type==="success"&&(o&&HTMLFormElement.prototype.reset.call(t),n&&await g()),(location.origin+location.pathname===e.origin+e.pathname||s.type==="redirect"||s.type==="error")&&await A(s)};async function f(e){if((e.submitter?.hasAttribute("formmethod")?e.submitter.formMethod:d(t).method)!=="post")return;e.preventDefault();const o=new URL(e.submitter?.hasAttribute("formaction")?e.submitter.formAction:d(t).action),n=e.submitter?.hasAttribute("formenctype")?e.submitter.formEnctype:d(t).enctype,c=new FormData(t,e.submitter),p=new AbortController;let u=!1;const b=await a({action:o,cancel:()=>u=!0,controller:p,formData:c,formElement:t,submitter:e.submitter})??l;if(u)return;let i;try{const r=new Headers({accept:"application/json","x-sveltekit-action":"true"});n!=="multipart/form-data"&&r.set("Content-Type",/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(n)?n:"application/x-www-form-urlencoded");const y=n==="multipart/form-data"?c:new URLSearchParams(c),m=await fetch(o,{method:"POST",headers:r,cache:"no-store",body:y,signal:p.signal});i=L(await m.text()),i.type==="error"&&(i.status=m.status)}catch(r){if(r?.name==="AbortError")return;i={type:"error",error:r}}await b({action:o,formData:c,formElement:t,update:r=>l({action:o,result:i,reset:r?.reset,invalidateAll:r?.invalidateAll}),result:i})}return HTMLFormElement.prototype.addEventListener.call(t,"submit",f),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,"submit",f)}}}export{L as d,k as e};
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.