1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BhedCSJq.js","../chunks/DwTZBSUj.js","../chunks/DZ3O-gka.js","../entry/payload.DSmR2FwN.js","../chunks/LEMyuIs8.js"])))=>i.map(i=>d[i]); 2import{r as e,t}from"../chunks/DwTZBSUj.js";import{t as n}from"../chunks/uBIymjUX.js";import{a as r}from"../chunks/BW02h1Jz.js";import{A as i,B as a,Ct as o,E as s,F as c,G as l,H as u,J as d,K as f,M as p,N as m,Q as h,R as g,S as _,T as v,U as y,V as b,X as x,Y as S,Z as C,_ as w,_t as T,a as E,at as D,b as O,bt as k,c as A,ct as j,d as ee,dt as M,et as te,f as N,ft as P,g as ne,gt as F,h as I,ht as L,it as re,j as ie,k as ae,l as oe,lt as R,m as se,mt as z,n as ce,o as B,ot as V,p as le,pt as H,r as U,rt as ue,s as de,st as fe,tt as W,u as pe,ut as G,v as K,vt as me,w as q,x as he,xt as J,y as ge}from"../chunks/LEMyuIs8.js";import"../chunks/DB1G-0L_.js";import{a as _e,c as ve,f as ye,m as Y,o as be,u as xe}from"../chunks/BbbmDrWN.js";import{a as Se,c as Ce,d as we,g as Te,h as Ee,i as De,l as Oe,m as ke,n as Ae,o as je,p as Me,r as Ne,s as Pe,t as Fe}from"../chunks/CSUTgrWK.js";import{n as Ie,r as Le,t as Re}from"../chunks/DZ3O-gka.js";import{t as ze}from"../chunks/Dd2OxIQu.js";import{a as Be,i as Ve,t as He}from"../chunks/JWnI6gQl.js";import{n as Ue,t as We}from"../chunks/Dr6pXD-1.js";var Ge=e(t()),Ke=e=>e.replace(/\s\([^()]*\)/g,``).trim().split(` - `)[0].replace(/\s\[[^\]]*\]/g,``),qe=e=>e.normalize(`NFKD`).toLowerCase().split(` - `)[0].replace(/\s[([][^)\]]*[)\]]/g,``).replace(/&/g,`and`).replace(/[^\p{L}\p{N}]/gu,``),Je=new Map;function Ye(e){var t=Je.get(e);t&&t.destroy()}function Xe(e){var t=Je.get(e);t&&t.update()}var Ze=null;typeof window>`u`?((Ze=function(e){return e}).destroy=function(e){return e},Ze.update=function(e){return e}):((Ze=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&e.nodeName===`TEXTAREA`&&!Je.has(e)){var t,n=null,r=window.getComputedStyle(e),i=(t=e.value,function(){o({testForHeightReduction:t===``||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),a=function(t){e.removeEventListener(`autosize:destroy`,a),e.removeEventListener(`autosize:update`,s),e.removeEventListener(`input`,i),window.removeEventListener(`resize`,s),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),Je.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener(`autosize:destroy`,a),e.addEventListener(`autosize:update`,s),e.addEventListener(`input`,i),window.addEventListener(`resize`,s),e.style.overflowX=`hidden`,e.style.wordWrap=`break-word`,Je.set(e,{destroy:a,update:s}),s()}function o(t){var i,a,s=t.restoreTextAlign,c=s===void 0?null:s,l=t.testForHeightReduction,u=l===void 0||l,d=r.overflowY;if(e.scrollHeight!==0&&(r.resize===`vertical`?e.style.resize=`none`:r.resize===`both`&&(e.style.resize=`horizontal`),u&&(i=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior=`auto`,t.scrollTop=n,t.style.scrollBehavior=null})}}(e),e.style.height=``),a=r.boxSizing===`content-box`?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),r.maxHeight!==`none`&&a>parseFloat(r.maxHeight)?(r.overflowY===`hidden`&&(e.style.overflow=`scroll`),a=parseFloat(r.maxHeight)):r.overflowY!==`hidden`&&(e.style.overflow=`hidden`),e.style.height=a+`px`,c&&(e.style.textAlign=c),i&&i(),n!==a&&(e.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=a),d!==r.overflow&&!c)){var f=r.textAlign;r.overflow===`hidden`&&(e.style.textAlign=f===`start`?`end`:`start`),o({restoreTextAlign:f,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ye),e},Ze.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xe),e});var Qe=Ze,$e=e=>(Qe(e),{destroy(){Qe.destroy(e)}});$e.update=Qe.update,$e.destroy=Qe.destroy;function et(e,t){var n=d,r=S,i=e();let a=N(i,t=>{var a=i!==e(),o,s=S,c=d;h(r),C(n);try{o=re(()=>{D(()=>{let n=e();a&&t(n)})})}finally{h(s),C(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}function tt(e,t,n){if(t===`__proto__`||t===`prototype`)throw Error("Cannot set an object's `__proto__` or `prototype` property");return e[t]=n,`skip`}function nt(e,t){return t.value!==void 0&&typeof t.value!=`object`&&t.path.length<e.length}function rt(e,t,n={}){n.modifier||=e=>nt(t,e)?void 0:e.value;let r=it(e,t,n.modifier);if(r)return n.value===void 0||n.value(r.value)?r:void 0}function it(e,t,n){if(!t.length)return;if(t.includes(`__proto__`)||t.includes(`prototype`))throw Error("Cannot set an object's `__proto__` or `prototype` property");let r=[t[0]],i=e;for(;i&&r.length<t.length;){let e=r[r.length-1],a=n?n({parent:i,key:String(e),value:i[e],path:r.map(e=>String(e)),isLeaf:!1,set:t=>tt(i,e,t)}):i[e];if(a===void 0)return;i=a,r.push(t[r.length])}if(!i)return;let a=t[t.length-1];return{parent:i,key:String(a),value:i[a],path:t.map(e=>String(e)),isLeaf:!0,set:e=>tt(i,a,e)}}function at(e,t,n=[]){for(let r in e){let i=e[r],a=typeof i!=`object`||!i,o={parent:e,key:r,value:i,path:n.concat([r]),isLeaf:a,set
2:t=>tt(e,r,t)},s=t(o);if(s===`abort`)return s;if(s!==`skip`&&!a){let e=at(i,t,o.path);if(e===`abort`)return e}}}function ot(e,t){return e===t||e.size===t.size&&[...e].every(e=>t.has(e))}function st(e,t){let n=new Map;function r(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e instanceof Set&&t instanceof Set&&!ot(e,t)||e instanceof File&&t instanceof File&&e!==t}function i(e){return e instanceof Date||e instanceof Set||e instanceof File}function a(e,t){let a=t?it(t,e.path):void 0;function o(){return n.set(e.path.join(` `),e.path),`skip`}if(i(e.value)&&(!i(a?.value)||r(e.value,a.value)))return o();e.isLeaf&&(!a||e.value!==a.value)&&o()}at(e,e=>a(e,t)),at(t,t=>a(t,e));let o=Array.from(n.values());return o.sort((e,t)=>e.length-t.length),o}function ct(e,t,n){let r=typeof n==`function`;for(let i of t){let t=it(e,i,({parent:e,key:t,value:n})=>((n===void 0||typeof n!=`object`)&&(e[t]={}),e[t]));if(t){if(t.key===`__proto__`||t.key===`prototype`)throw Error("Cannot set an object's `__proto__` or `prototype` property");t.parent[t.key]=r?n(i,t):n}}}function lt(e){return e.toString().split(/[[\].]+/).filter(e=>e)}function ut(e){return e.reduce((e,t)=>{let n=String(t);return typeof t==`number`||/^\d+$/.test(n)?e+=`[${n}]`:e+=e?`.${n}`:n,e},``)}function dt(e){let t={}.toString.call(e).slice(8,-1);if(t==`Set`)return new Set([...e].map(e=>dt(e)));if(t==`Map`)return new Map([...e].map(e=>[dt(e[0]),dt(e[1])]));if(t==`Date`)return new Date(e.getTime());if(t==`RegExp`)return RegExp(e.source,e.flags);if(t==`Array`||t==`Object`){let n=t==`Object`?Object.create(Object.getPrototypeOf(e)):[];for(let t in e)n[t]=dt(e[t]);return n}return e}function ft(e){return e&&typeof e==`object`?dt(e):e}var pt=e=>{if(typeof e==`object`&&e){if(typeof Object.getPrototypeOf==`function`){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)===`[object Object]`}return!1},mt=new Set([`__proto__`,`constructor`,`prototype`,`toString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`]),ht=(...e)=>e.reduce((e,t)=>{if(t===void 0)return e;if(Array.isArray(t))throw TypeError(`Arguments provided to ts-deepmerge must be objects, not arrays.`);return Object.keys(t).forEach(n=>{mt.has(n)||(e[n]=Array.isArray(e[n])&&Array.isArray(t[n])?ht.options.mergeArrays?ht.options.uniqueArrayItems?Array.from(new Set(e[n].concat(t[n]))):[...e[n],...t[n]]:t[n]:pt(e[n])&&pt(t[n])?ht(e[n],t[n]):!pt(e[n])&&pt(t[n])?ht(t[n],void 0):t[n]===void 0?ht.options.allowUndefinedOverrides?t[n]:e[n]:t[n])}),e},{}),gt={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};ht.options=gt,ht.withOptions=(e,...t)=>{ht.options=Object.assign(Object.assign({},gt),e);let n=ht(...t);return ht.options=gt,n};var _t=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};function vt(e,t){let n={};function r(e){if(`_errors`in n||(n._errors=[]),!Array.isArray(n._errors)){if(typeof n._errors==`string`)n._errors=[n._errors];else throw new _t(`Form-level error was not an array.`)}n._errors.push(e.message)}for(let i of e){if(!i.path||i.path.length==1&&!i.path[0]){r(i);continue}let e=!/^\d$/.test(String(i.path[i.path.length-1]))&&rt(t,i.path.filter(e=>/\D/.test(String(e))))?.value,a=it(n,i.path,({value:e,parent:t,key:n})=>(e===void 0&&(t[n]={}),t[n]));if(!a){r(i);continue}let{parent:o,key:s}=a;e?(s in o||(o[s]={}),`_errors`in o[s]?o[s]._errors.push(i.message):o[s]._errors=[i.message]):s in o?o[s].push(i.message):o[s]=[i.message]}return n}function yt(e,t,n){return n?e:(at(t,e=>{Array.isArray(e.value)&&e.set(void 0)}),at(e,e=>{(Array.isArray(e.value)||e.value===void 0)&&ct(t,[e.path],e.value)}),t)}function bt(e){return xt(e,[])}function xt(e,t){return Object.entries(e).filter(([,e])=>e!==void 0).flatMap(([n,r])=>Array.isArray(r)&&r.length>0?{path:ut(t.concat([n])),messages:r}:xt(e[n],t.concat([n])))}function St(e){e.flashMessage&&Ct(e)&&(document.cookie=`flash=; Max-Age=0; Path=${e.flashMessage.cookiePath??`/`};`)}function Ct(e){return e.flashMessage?e.syncFlashMessage:!1}function wt(e){let t=JSON.parse(e);return t.data&&=Me(t.data),t}function Tt(e){return HTMLElement.prototype.cloneNode.call(e)}function Et(e,t=we){let n=async({result:t,reset:n=!0,refreshAll:r,invali
2dateAll:i,navigate:a=!0})=>{r??=i??t.type===`success`,t.type===`success`&&n&&HTMLFormElement.prototype.reset.call(e);let o=a&&t.type!==`redirect`&&!Ce(t.location)?t.location:void 0;if(o===void 0){r&&t.type!==`redirect`&&await Oe(),await Ae(t);return}await Ne(o,t,r)};async function r(r){if((r.submitter?.hasAttribute(`formmethod`)?r.submitter.formMethod:Tt(e).method)!==`post`)return;r.preventDefault();let i=new URL(r.submitter?.hasAttribute(`formaction`)?r.submitter.formAction:Tt(e).action),a=r.submitter?.hasAttribute(`formenctype`)?r.submitter.formEnctype:Tt(e).enctype,o=new FormData(e,r.submitter),s=new AbortController,c=!1,l=await t({action:i,cancel:()=>c=!0,controller:s,formData:o,formElement:e,submitter:r.submitter})??n;if(c)return;let u;try{let e=new Headers({accept:`application/json`,"x-sveltekit-action":`true`});a!==`multipart/form-data`&&e.set(`Content-Type`,/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(a)?a:`application/x-www-form-urlencoded`);let t=a===`multipart/form-data`?o:new URLSearchParams(o),n=await fetch(i,{method:`POST`,headers:e,cache:`no-store`,body:t,signal:s.signal});Ie(n.headers.get(`x-sveltekit-version`));let r=await n.text(),c;try{c=r===``&&!n.ok?void 0:wt(r)}catch(e){if(n.ok&&!n.redirected)throw e}if(c?.type===`success`||c?.type===`failure`||c?.type===`redirect`||c?.type===`error`)u=c,(u.type===`error`||u.type===`failure`)&&(u.status=n.status);else if(n.redirected)u={type:`redirect`,status:303,location:n.url};else if(n.ok)u=c;else throw c&&typeof c==`object`&&typeof c.message==`string`?new Ee({...c,status:n.status}):new Te(n.status,n.statusText,typeof c==`string`?c:n.statusText)}catch(e){if(e?.name===`AbortError`)return;u={type:`error`,error:await je(e,{params:{},route:{id:null},url:new URL(location.href)})}}await l({action:i,formData:o,formElement:e,update:e=>n({result:u,reset:e?.reset,refreshAll:e?.refreshAll,invalidateAll:e?.invalidateAll,navigate:e?.navigate}),result:u})}return HTMLFormElement.prototype.addEventListener.call(e,`submit`,r),{destroy(){HTMLFormElement.prototype.removeEventListener.call(e,`submit`,r)}}}var Dt=`noCustomValidity`;async function Ot(e,t){`setCustomValidity`in e&&e.setCustomValidity(``),!(Dt in e.dataset)&&At(e,t)}function kt(e,t){for(let n of e.querySelectorAll(`input,select,textarea,button`)){if(`dataset`in n&&Dt in n.dataset||!n.name)continue;let e=it(t,lt(n.name)),r=e&&typeof e.value==`object`&&`_errors`in e.value?e.value._errors:e?.value;if(At(n,r),r)return}}function At(e,t){if(!(`setCustomValidity`in e))return;let n=t&&t.length?t.join(` 3`):``;e.setCustomValidity(n),n&&e.reportValidity()}var jt=(e,t=0)=>{let n=e.getBoundingClientRect();return n.top>=t&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},Mt=(e,t=1.125,n=`smooth`)=>{let r=e.getBoundingClientRect().top+window.pageYOffset-window.innerHeight/(2*t);window.scrollTo({left:0,top:r,behavior:n})},Nt=[`checkbox`,`radio`,`range`,`file`];function Pt(e){return{immediate:!!e&&(e instanceof HTMLSelectElement||e instanceof HTMLInputElement&&Nt.includes(e.type)),multiple:!!e&&e instanceof HTMLSelectElement&&e.multiple,file:!!e&&e instanceof HTMLInputElement&&e.type==`file`}}var Ft;(function(e){e[e.Idle=0]=`Idle`,e[e.Submitting=1]=`Submitting`,e[e.Delayed=2]=`Delayed`,e[e.Timeout=3]=`Timeout`})(Ft||={});var It=new Set;function Lt(e,t,n){let r=Ft.Idle,i,a,o=It;function s(){c(),u(r==Ft.Delayed?Ft.Delayed:Ft.Submitting),i=window.setTimeout(()=>{i&&r==Ft.Submitting&&u(Ft.Delayed)},n.delayMs),a=window.setTimeout(()=>{a&&r==Ft.Delayed&&u(Ft.Timeout)},n.timeoutMs),o.add(c)}function c(){clearTimeout(i),clearTimeout(a),i=a=0,o.delete(c),u(Ft.Idle)}function l(){o.forEach(e=>e()),o.clear()}function u(e){r=e,t.submitting.set(r>=Ft.Submitting),t.delayed.set(r>=Ft.Delayed),t.timeout.set(r>=Ft.Timeout)}let d=e;function f(e){let t=e.target;n.selectErrorText&&t.select()}function p(){n.selectErrorText&&d.querySelectorAll(`input`).forEach(e=>{e.addEventListener(`invalid`,f)})}function h(){n.selectErrorText&&d.querySelectorAll(`input`).forEach(e
3=>e.removeEventListener(`invalid`,f))}let g=e;{p();let e=!1,t=e=>{e.clearAll?l():c(),e.cancelled||setTimeout(()=>Rt(g,n),1)};return m(()=>{h(),t({cancelled:!0})}),Fe(()=>{h(),e||t({cancelled:!1})}),{submitting(){s()},completed:t,scrollToFirstError(){setTimeout(()=>Rt(g,n),1)},isSubmitting:()=>r===Ft.Submitting||r===Ft.Delayed,setProcessingEvents(t){e=t}}}}var Rt=async(e,t)=>{if(t.scrollToError==`off`)return;let n=t.errorSelector;if(!n)return;await te();let r;if(r=e.querySelector(n),!r)return;r=r.querySelector(n)??r;let i=t.stickyNavbar?document.querySelector(t.stickyNavbar):null;typeof t.scrollToError==`string`?jt(r,i?.offsetHeight??0)||Mt(r,void 0,t.scrollToError):r.scrollIntoView(t.scrollToError);function a(e){return typeof t.autoFocusOnError==`boolean`?t.autoFocusOnError:!/iPhone|iPad|iPod|Android/i.test(e)}if(!a(navigator.userAgent))return;let o;if(o=r,[`INPUT`,`SELECT`,`BUTTON`,`TEXTAREA`].includes(o.tagName)||(o=o.querySelector(`input:not([type="hidden"]):not(.flatpickr-input), select, textarea`)),o)try{o.focus({preventScroll:!0}),t.selectErrorText&&o.tagName==`INPUT`&&o.select()}catch{}};function zt(e,t,n){let r=it(e,t,({parent:e,key:t,value:n})=>(n===void 0&&(e[t]=/\D/.test(t)?{}:[]),e[t]));if(r){let e=n(r.value);r.parent[r.key]=e}return e}function Bt(e,t,n){let r=e.form,i=lt(t),a=A(r,e=>it(e,i)?.value);return{subscribe(...e){let t=a.subscribe(...e);return()=>t()},update(e,t){r.update(t=>zt(t,i,e),t??n)},set(e,t){r.update(t=>zt(t,i,()=>e),t??n)}}}function Vt(e,t){let n=`form`in e;if(!n&&t?.taint!==void 0)throw new _t(`If options.taint is set, the whole superForm object must be used as a proxy.`);return n}function Ht(e,t,n){let r=lt(t);if(Vt(e,n))return Bt(e,t,n);let i=A(e,e=>it(e,r)?.value);return{subscribe(...e){let t=i.subscribe(...e);return()=>t()},update(t){e.update(e=>zt(e,r,t))},set(t){e.update(e=>zt(e,r,()=>t))}}}function Ut(e){let t={},n=Array.isArray(e);for(let[r,i]of Object.entries(e))i&&typeof i==`object`&&(n?t={...t,...Ut(i)}:t[r]=Ut(i));return t}var Wt=new WeakMap,Gt=new WeakMap,Kt=e=>{throw e.result.error},qt={applyAction:!0,invalidateAll:!0,resetForm:!0,autoFocusOnError:`detect`,scrollToError:`smooth`,errorSelector:`[aria-invalid="true"],[data-invalid]`,selectErrorText:!1,stickyNavbar:void 0,taintedMessage:!1,onSubmit:void 0,onResult:void 0,onUpdate:void 0,onUpdated:void 0,onError:Kt,dataType:`form`,validators:void 0,customValidity:!1,clearOnSubmit:`message`,delayMs:500,timeoutMs:8e3,multipleSubmits:`prevent`,SPA:void 0,validationMethod:`auto`};function Jt(e){return`Duplicate form id's found: "${e}". Multiple forms will receive the same data. Use the id option to differentiate between them, or if this is intended, set the warnings.duplicateId option to false in superForm to disable this warning. More information: https://superforms.rocks/concepts/multiple-forms`}var Yt=!1;try{SUPERFORMS_LEGACY&&(Yt=!0)}catch{}var Xt=!1;try{globalThis.STORIES&&(Xt=!0)}catch{}function Zt(e,t){let n=et(()=>({...Le??{}})),r=et(()=>Re?.to?Re:null),i,a=t??{},o,s;{if((a.legacy??Yt)&&(a.resetForm===void 0&&(a.resetForm=!1),a.taintedMessage===void 0&&(a.taintedMessage=!0)),Xt&&a.applyAction===void 0&&(a.applyAction=!1),typeof a.SPA==`string`&&(a.invalidateAll===void 0&&(a.invalidateAll=!1),a.applyAction===void 0&&(a.applyAction=!1)),s=a.validators,a={...qt,...a},a.flashMessage&&(o=a.flashMessage.module.getFlash(Le)),(a.SPA===!0||typeof a.SPA==`object`)&&a.validators===void 0&&console.warn(`No validators set for superForm in SPA mode. Add a validation adapter to the validators option, or set it to false to disable this warning.`),!e)throw new _t(`No form data sent to superForm. Make sure the output from superValidate is used (usually data.form) and that it's not null or undefined. Alternatively, an object with default values for the form can also be used, but then constraints won't be available.`);f(e)===!1&&(e={id:a.id??Math.random().toString(36).slice(2,10),valid:!1,posted:!1,errors:{},data:e,shape:Ut(e)}),e=e;let t=e.id=a.id??e.id,n=Le??(Xt?{}:void 0);if(a.warnings?.duplicateId!==!1){if(!Wt.has(n))Wt.set(n,new Set([t]));else{let e=Wt.get(n);e?.has(t)?console.warn(Jt(t)):e?.add(t)}}if(Gt.has(e)||Gt.set(e,e),i=Gt.get(e),e=ft(i),m(()=>{me(),ae(),_e();for(let e of Object.values(Y))e.length=0;Wt.get(n)?.delete(t)}),a.dataType!==`json`){let t=(e,n)=>{if(n&&typeof n==`object`){if(Array.isArray(n))n.length>0&&t(e,n[0]);else if(!(n instanceof Date)&&!(n instanceof File)&&!(n instanceof FileList))throw new _t(`Object found in form field "${e}". Set the dataType option to "json" and add use:enhance to use nested data structures. More information: https://superforms.rocks/concepts/nested-data`)}};for(let[n,r]of Object.entries(e.data))t(n,r)}}let c={formId:e.id,form:ft(e.data),constraints:e.constraints??{},posted:e.posted,errors:ft(e.errors),message:ft(e.message),tainted:void 0,valid:e.valid,submitting:!1,shape:e.shape},l=c,u=N(a.id??e.id);function d(e){return Object.values(e).filter(e=>f(e)!==!1)}function f(e){return!e||typeof e!=`object`||!(`valid`in e&&`errors`in e&&typeof e.valid==`boolean`)?!1:`id`in e&&typeof e.id==`
3string`&&e.id}let p=N(e.data),h={subscribe:p.subscribe,set:(e,t={})=>{let n=ft(e);return ue(n,t.taint??!0),p.set(n)},update:(e,t={})=>p.update(n=>{let r=e(n);return ue(r,t.taint??!0),r})};function g(){return a.SPA===!0||typeof a.SPA==`object`}function _(e){return e>400?e:(typeof a.SPA==`boolean`||typeof a.SPA==`string`?void 0:a.SPA?.failStatus)||e}async function v(e={}){let t=e.formData??l.form,n={},r,i=e.adapter??a.validators;if(typeof i==`object`){if(i!=s&&!(`jsonSchema`in i))throw new _t(`Client validation adapter found in options.validators. A full adapter must be used when changing validators dynamically, for example "zod" instead of "zodClient".`);if(r=await i.validate(t),!r.success)n=vt(r.issues,i.shape??l.shape??{});else if(e.recheckValidData!==!1)return v({...e,recheckValidData:!1})}else r={success:!0,data:{}};let o={...l.form,...t,...r.success?r.data:{}};return{valid:r.success,posted:!1,errors:n,data:o,constraints:l.constraints,message:void 0,id:l.formId,shape:l.shape}}function y(e){if(!a.onChange||!e.paths.length||e.type==`blur`)return;let t,n=e.paths.map(ut);t=e.type&&e.paths.length==1&&e.formElement&&e.target instanceof Element?{path:n[0],paths:n,formElement:e.formElement,target:e.target,set(e,t,n){Ht({form:h},e,n).set(t)},get(e){return oe(Ht(h,e))}}:{paths:n,target:void 0,set(e,t,n){Ht({form:h},e,n).set(t)},get(e){return oe(Ht(h,e))}},a.onChange(t)}async function b(e,t=!1,n){e&&(a.validators==`clear`&&F.update(t=>(ct(t,e.paths,void 0),t)),setTimeout(()=>y(e)));let r=!1;if(t||(a.validationMethod==`onsubmit`||a.validationMethod==`submit-only`||a.validationMethod==`onblur`&&e?.type==`input`||a.validationMethod==`oninput`&&e?.type==`blur`)&&(r=!0),r||!e||!a.validators||a.validators==`clear`){if(e?.paths){let t=e?.formElement??he();t&&x(t)}return}let i=await v({adapter:n});return i.valid&&(e.immediate||e.type!=`input`)&&h.set(i.data,{taint:`ignore`}),await te(),S(i.errors,e,t),i}function x(e){let t=new Map;if(a.customValidity&&e)for(let n of e.querySelectorAll(`[name]`)){if(typeof n.name!=`string`||!n.name.length)continue;let e=`validationMessage`in n?String(n.validationMessage):``;t.set(n.name,{el:n,message:e}),Ot(n,void 0)}return t}async function S(e,t,n){let{type:r,immediate:i,multiple:o,paths:s}=t,c=l.errors,u={},d=new Map,f=t.formElement??he();f&&(d=x(f)),at(e,e=>{if(!Array.isArray(e.value))return;let t=[...e.path];t[t.length-1]==`_errors`&&t.pop();let l=t.join(`.`),f=e.path[e.path.length-1]==`_errors`,p=e.value&&s.some(e=>f?t&&e&&t.length>0&&t[0]==e[0]:l==e.join(`.`));function m(){if(ct(u,[e.path],e.value),a.customValidity&&p&&d.has(l)){let{el:t,message:n}=d.get(l);n!=e.value&&(setTimeout(()=>Ot(t,e.value)),d.clear())}}if(n||p&&a.validationMethod==`oninput`||i&&!o&&p)return m();if(o){let t=rt(oe(F),e.path.slice(0,-1));if(t?.value&&typeof t?.value==`object`){for(let e of Object.values(t.value))if(Array.isArray(e))return m()}}let h=rt(c,e.path);if(h&&h.key in h.parent)return m();if(f){if(a.validationMethod==`oninput`||r==`blur`&&le(ut(e.path.slice(0,-1))))return m()}else if(r==`blur`&&p)return m()}),F.set(u)}function C(e,t={}){return t.keepFiles&&at(l.form,t=>{if(!(t.parent instanceof FileList)&&(t.value instanceof File||t.value instanceof FileList)){let n=rt(e,t.path);(!n||!(n.key in n.parent))&&ct(e,[t.path],t.value)}}),h.set(e,t)}function w(e,t){return e&&t&&a.resetForm&&(a.resetForm===!0||a.resetForm())}function T(e=!0){let t=l.form,n=l.tainted;if(e){let e=xe(l.form);t=e.data;let r=e.paths;r.length&&(n=ft(n)??{},ct(n,r,!1))}return{valid:l.valid,posted:l.posted,errors:l.errors,data:t,constraints:l.constraints,message:l.message,id:l.formId,tainted:n,shape:l.shape}}async function E(e,t){e.valid&&t&&w(e.valid,t)?D({message:e.message,posted:!0}):ye({form:e,untaint:t,keepFiles:!0,pessimisticUpdate:a.invalidateAll==`force`||a.invalidateAll==`pessimistic`}),Y.onUpdated.length&&await te();for(let t of Y.onUpdated)t({form:e})}function D(e={}){e.newState&&(i.data={...i.data,...e.newState});let t=ft(i);t.data={...t.data,...e.data},e.id!==void 0&&(t.id=e.id);let n=ft(c.tainted),r={};if(n&&e.data)for(let t in n)t in e.data&&(r[t]=n[t]);ye({form:t,untaint:Object.keys(r).length>0?r:!0,message:e.message,keepFiles:!1,posted:e.posted,resetted:!0})}async function O(e){if(e.type==`error`)throw new _t(`ActionResult of type "${e.type}" cannot be passed to update function.`);if(e.type==`redirect`){w(!0,!0)&&D({posted:!0});return}if(typeof e.data!=`object`)throw new _t(`Non-object validation data returned from ActionResult.`);let t=d(e.data);if(!t.length)throw new _t(`No form data returned from ActionResult. Make sure you return { form } in the form actions.`);for(let n of t)n.id===l.formId&&await E(n,e.status>=200&&e.status<300)}let k=N(c.message),j=N(c.constraints),M=N(c.posted),P=N(c.shape),ne=N(e.errors),F={subscribe:ne.subscribe,set(e,t){return ne.set(yt(e,l.errors,t?.force))},update(e,t){return ne.update(n=>yt(e(n),l.errors,t?.force))},clear:()=>F.set({})},I=null;function L(e){I&&e&&Object.keys(e).length==1&&e.paths?.length&&I.target&&I.target instanceof HTMLInputElement&&I.target.type.toLowerCase()==`file`?I.paths=e.paths:I=e,setTimeout(()=>{b(I)},0)}function re(e,t,n,r,i){I===null&&(I={paths:[]}),I.type=e,I.immediate=t,I.multiple=n,I.formElement=r,I.target=i}function ie(){return I?.paths??[]}function ae(){I=null}
3let R={defaultMessage:`Leave page? Changes that you made may not be saved.`,state:N(),message:a.taintedMessage,clean:ft(e.data),forceRedirection:!1};function se(){return a.taintedMessage&&!l.submitting&&!R.forceRedirection&&H()}function z(e){if(!se())return;e.preventDefault(),e.returnValue=``;let{taintedMessage:t}=a,n=typeof t==`function`||t===!0?R.defaultMessage:t;return(e||window.event).returnValue=n||R.defaultMessage,n}async function ce(e){if(!se())return;let{taintedMessage:t}=a,n=typeof t==`function`;if(n&&e.cancel(),e.type===`leave`)return;let r=n||t===!0?R.defaultMessage:t,i;try{i=n?await t(e):window.confirm(r||R.defaultMessage)}catch{i=!1}if(i&&e.to)try{R.forceRedirection=!0,await Se(e.to.url);return}finally{R.forceRedirection=!1}else!i&&!n&&e.cancel()}function B(){a.taintedMessage=R.message}function V(){return R.state}function le(e){if(!l.tainted)return!1;if(!e)return!!l.tainted;let t=rt(l.tainted,lt(e));return!!t&&t.key in t.parent}function H(e){return arguments.length?typeof e==`boolean`?e:typeof e==`object`?U(e):!l.tainted||e===void 0?!1:U(rt(l.tainted,lt(e))?.value):U(l.tainted)}function U(e){if(!e)return!1;if(typeof e==`object`){for(let t of Object.values(e))if(U(t))return!0}return e===!0}function ue(e,t){if(t==`ignore`)return;let n=st(e,l.form),r=st(e,R.clean).map(e=>e.join());n.length&&(R.state.update(i=>(i||={},ct(i,n,(n,i)=>{if(!r.includes(n.join()))return;let a=it(e,n),o=it(R.clean,n);return a&&o&&a.value===o.value?void 0:t===!0?!0:t===`untaint`?void 0:i.value}),i)),L({paths:n})),(t==`untaint-all`||t==`untaint-form`)&&R.state.set(void 0)}function de(e,t){R.state.set(e),t&&(R.clean=t)}let fe=N(!1),W=N(!1),pe=N(!1),G=[R.state.subscribe(e=>c.tainted=ft(e)),h.subscribe(e=>c.form=ft(e)),F.subscribe(e=>c.errors=ft(e)),u.subscribe(e=>c.formId=e),j.subscribe(e=>c.constraints=e),M.subscribe(e=>c.posted=e),k.subscribe(e=>c.message=e),fe.subscribe(e=>c.submitting=e),P.subscribe(e=>c.shape=e)];function K(e){G.push(e)}function me(){G.forEach(e=>e())}let q;function he(){return q}function J(e){q=document.createElement(`form`),q.method=`POST`,q.action=e,be(q),document.body.appendChild(q)}function ge(e){q&&(q.action=e)}function _e(){q?.parentElement&&q.remove(),q=void 0}let ve=A(F,e=>e?bt(e):[]);a.taintedMessage=void 0;function ye(e){let t=e.form,n=e.message??t.message;(e.untaint||e.resetted)&&de(typeof e.untaint==`boolean`?void 0:e.untaint,t.data),e.pessimisticUpdate||C(t.data,{taint:`ignore`,keepFiles:e.keepFiles}),k.set(n),e.resetted?F.update(()=>({}),{force:!0}):F.set(t.errors),u.set(t.id),M.set(e.posted??t.posted),t.constraints&&j.set(t.constraints),t.shape&&P.set(t.shape),c.valid=t.valid,a.flashMessage&&Ct(a)&&n&&o&&oe(o)===void 0&&o.set(n)}let Y={onSubmit:a.onSubmit?[a.onSubmit]:[],onResult:a.onResult?[a.onResult]:[],onUpdate:a.onUpdate?[a.onUpdate]:[],onUpdated:a.onUpdated?[a.onUpdated]:[],onError:a.onError?[a.onError]:[]};window.addEventListener(`beforeunload`,z),m(()=>{window.removeEventListener(`beforeunload`,z)}),De(ce),K(n.subscribe(async e=>{Xt&&(e===void 0||e.status===void 0)&&(e={status:200});let t=e.status>=200&&e.status<300;if(a.applyAction&&e.form&&typeof e.form==`object`){let n=e.form;if(n.type===`error`)return;for(let e of d(n)){let n=Gt.has(e);e.id!==l.formId||n||(Gt.set(e,e),await E(e,t))}}else if(a.applyAction!==`never`&&e.data&&typeof e.data==`object`)for(let n of d(e.data)){let e=Gt.has(n);if(n.id!==l.formId||e)continue;(a.invalidateAll===`force`||a.invalidateAll===`pessimistic`)&&(i.data=n.data);let r=w(n.valid,!0);ye({form:n,untaint:t,keepFiles:!r,resetted:r})}})),typeof a.SPA==`string`&&J(a.SPA);function be(t,n){if(a.SPA!==void 0&&t.method==`get`&&(t.method=`post`),typeof a.SPA==`string`?a.SPA.length&&t.action==document.location.href&&(t.action=a.SPA):q=t,n){if(n.onError){if(a.onError===`apply`)throw new _t(`options.onError is set to "apply", cannot add any onError events.`);if(n.onError===`apply`)throw new _t(`Cannot add "apply" as onError event in use:enhance.`);Y.onError.push(n.onError)}n.onResult&&Y.onResult.push(n.onResult),n.onSubmit&&Y.onSubmit.push(n.onSubmit),n.onUpdate&&Y.onUpdate.push(n.onUpdate),n.onUp
3dated&&Y.onUpdated.push(n.onUpdated)}B();let i;async function s(e){let n=Pt(e.target);n.immediate&&!n.file&&await new Promise(e=>setTimeout(e,0)),i=ie(),re(`input`,n.immediate,n.multiple,t,e.target??void 0)}async function c(e){if(l.submitting||!i||ie()!=i)return;let n=Pt(e.target);n.immediate&&!n.file&&await new Promise(e=>setTimeout(e,0)),i!==void 0&&(b({paths:i,immediate:n.multiple,multiple:n.multiple,type:`blur`,formElement:t,target:e.target??void 0}),i=void 0)}t.addEventListener(`focusout`,c),t.addEventListener(`input`,s),m(()=>{t.removeEventListener(`focusout`,c),t.removeEventListener(`input`,s)});let u=Lt(t,{submitting:fe,delayed:W,timeout:pe},a),f,p=Et(t,async n=>{let s,c,p=a.validators,m={...n,jsonData(e){if(a.dataType!==`json`)throw new _t(`options.dataType must be set to 'json' to use jsonData.`);c=e},validators(e){p=e},customRequest(e){s=e}},h=m.cancel,y=!1;function b(e){let t={...e,posted:!0},r=t.valid?200:_(400),i={form:t},a=t.valid?{type:`success`,status:r,data:i,location:n.action.pathname+n.action.search}:{type:`failure`,status:r,data:i,location:n.action.pathname+n.action.search};setTimeout(()=>E({result:a}),0)}function x(){switch(a.clearOnSubmit){case`errors-and-message`:F.clear(),k.set(void 0);break;case`errors`:F.clear();break;case`message`:k.set(void 0)}}async function S(t,n){let r=t.error&&typeof t.error==`object`?`error`in t.error?t.error.error:{...t.error,message:t.error.message}:t.error;if(t.status=n,a.onError!==`apply`){let n={result:t,message:k,form:e};for(let e of Y.onError)e!==`apply`&&(e!=Kt||!a.flashMessage?.onError)&&await e(n)}a.flashMessage&&a.flashMessage.onError&&await a.flashMessage.onError({result:{...t,error:r},flashMessage:o}),a.applyAction&&(a.onError==`apply`?await Ae(t):await Ae({type:`failure`,status:_(t.status),data:t,location:document.location.href}))}function C(e={resetTimers:!0}){return y=!0,e.resetTimers&&u.isSubmitting()&&u.completed({cancelled:y}),h()}
3if(m.cancel=C,u.isSubmitting()&&a.multipleSubmits==`prevent`)C({resetTimers:!1});else{u.isSubmitting()&&a.multipleSubmits==`abort`&&f&&f.abort(),u.submitting(),f=m.controller;for(let e of Y.onSubmit)try{await e(m)}catch(e){C(),S({type:`error`,error:e},500)}}if(y&&a.flashMessage&&St(a),!y){let e=!g()&&(t.noValidate||(m.submitter instanceof HTMLButtonElement||m.submitter instanceof HTMLInputElement)&&m.submitter.formNoValidate),n,r=async()=>await v({adapter:p});if(x(),e||(n=await r(),n.valid||(C({resetTimers:!1}),b(n))),!y){a.flashMessage&&(a.clearOnSubmit==`errors-and-message`||a.clearOnSubmit==`message`)&&Ct(a)&&o?.set(void 0);let e=`formData`in m?m.formData:m.data;if(i=void 0,g())n||=await r(),C({resetTimers:!1}),b(n);else if(a.dataType===`json`){n||=await r();let t=ft(c??n.data);at(t,t=>{if(t.value instanceof File){let n=`__superform_file_`+ut(t.path);return e.append(n,t.value),t.set(void 0)}if(Array.isArray(t.value)&&t.value.length&&t.value.every(e=>e instanceof File)){let n=`__superform_files_`+ut(t.path);for(let r of t.value)e.append(n,r);return t.set(void 0)}}),Object.keys(t).forEach(t=>{typeof e.get(t)==`string`&&e.delete(t)});let i=a.transport?Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])):void 0,o=T(ke(t,i),a.jsonChunkSize??5e5);for(let t of o)e.append(`__superform_json`,t)}if(!e.has(`__superform_id`)){let t=l.formId;t!==void 0&&e.set(`__superform_id`,t)}typeof a.SPA==`string`&&ge(a.SPA)}}function T(e,t){let n=Math.ceil(e.length/t),r=Array(n);for(let i=0,a=0;i<n;++i,a+=t)r[i]=e.substring(a,a+t);return r}async function E(e){let n=!1;f=null;let i=`type`in e.result&&`status`in e.result?e.result:{type:`error`,status:_(parseInt(String(e.result.status))||500),error:e.result.error instanceof Error?e.result.error:e.result},o=()=>n=!0,s={result:i,formEl:t,formElement:t,cancel:o},c=Xt||!g()?()=>{}:r.subscribe(e=>{e&&e.from?.route.id!==e.to?.route.id&&o()});function p(e,t,n){t.result={type:`error`,error:e,status:_(n)}}u.setProcessingEvents(!0);for(let e of Y.onResult)try{await e(s)}catch(e){p(e,s,Math.max(i.status??500,400))}if(i=s.result,!n){if((i.type===`success`||i.type===`failure`)&&i.data){let e=d(i.data);if(!e.length)throw new _t(`No form data returned from ActionResult. Make sure you return { form } in the form actions.`);for(let r of e){if(r.id!==l.formId)continue;let e={form:r,formEl:t,formElement:t,cancel:()=>n=!0,result:i};for(let t of Y.onUpdate)try{await t(e)}catch(t){p(t,e,Math.max(i.status??500,400))}i=e.result,n||(a.customValidity&&kt(t,e.form.errors),w(e.form.valid,i.type==`success`)&&e.formElement.querySelectorAll(`input[type="file"]`).forEach(e=>e.value=``))}}n||(i.type===`error`?await S(i,Math.max(i.status??500,400)):(i.type===`success`&&a.invalidateAll&&await Pe(),a.applyAction?await Ae(i):await O(i)))}if(u.setProcessingEvents(!1),n&&a.flashMessage&&St(a),n||i.type!=`redirect`)u.completed({cancelled:n});else if(Xt)u.completed({cancelled:n,clearAll:!0});else{let e=r.subscribe(t=>{t||(setTimeout(()=>{try{e&&e()}catch{}}),u.isSubmitting()&&u.completed({cancelled:n,clearAll:!0}))})}c()}if(!y&&s){h();let e=await s(n),t;t=e instanceof Response?wt(await e.text()):e instanceof XMLHttpRequest?wt(e.responseText):e,t.type===`error`&&(t.status=e.status),E({result:t})}return E});return{destroy:()=>{for(let[e,t]of Object.entries(Y))Y[e]=t.filter(t=>t===a[e]);p.destroy()}}}function xe(e){let t=[];if(at(e,e=>{if(e.value instanceof File||Array.isArray(e.value)&&e.value.length&&e.value.every(e=>e instanceof File))return t.push(e.path),`skip`}),!t.length)return{data:e,paths:t};let n=ft(e);return ct(n,t,e=>rt(i.data,e)?.value),{data:n,paths:t}}return{form:h,formId:u,errors:F,message:k,constraints:j,tainted:V(),submitting:ee(fe),delayed:ee(W),timeout:ee(pe),options:a,capture:T,restore:(e=>{ye({form:e,untaint:e.tainted??!0})}),async validate(e,t={}){if(!a.validators)throw new _t(`options.validators must be set to use the validate method.`);t.update===void 0&&(t.update=!0),t.taint===void 0&&(t.taint=!1),typeof t.errors==`string`&&(t.errors=[t.errors]);let n,r=lt(e);`value`in t?t.update===!0||t.update===`value`?(h.update(e=>(ct(e,[r],t.value),e),{taint:t.taint}),n=l.form):(n=ft(l.form),ct(n,[r],t.value)):n=l.form;let i=rt((await v({formData:n})).errors,r);return i&&i.value&&t.errors&&(i.value=t.errors),(t.update===!0||t.update==`errors`)&&F.update(e=>(ct(e,[r],i?.value),e)),i?.value},async validateForm(e={}
3){if(!a.validators&&!e.schema)throw new _t(`options.validators or the schema option must be set to use the validateForm method.`);let t=e.update?await b({paths:[]},!0,e.schema):v({adapter:e.schema}),n=he();return e.update&&n&&setTimeout(()=>{n&&Rt(n,{...a,scrollToError:e.focusOnError===!1?`off`:a.scrollToError})},1),t||v({adapter:e.schema})},allErrors:ve,posted:M,reset(e){return D({message:e?.keepMessage?l.message:void 0,data:e?.data,id:e?.id,newState:e?.newState})},submit(e){let t=he()?he():e&&e instanceof HTMLElement?e.closest(`form`):void 0;if(!t)throw new _t(`use:enhance must be added to the form to use submit, or pass a HTMLElement inside the form (or the form itself) as an argument.`);if(!t.requestSubmit)return t.submit();let n=e&&(e instanceof HTMLButtonElement&&e.type==`submit`||e instanceof HTMLInputElement&&[`submit`,`image`].includes(e.type));t.requestSubmit(n?e:void 0)},isTainted:H,enhance:be}}import.meta.dirname,globalThis.process?.versions?.webcontainer,n(()=>import(`../chunks/BhedCSJq.js`).then(t=>e(t.default,1)).then(e=>new e.AsyncLocalStorage),__vite__mapDeps([0,1,2,3,4]),import.meta.url).catch(()=>{}),new TextEncoder;try{SUPERFORMS_LEGACY}catch{}var Qt=.65,$t=.14,en=.12,tn=.97,nn=.02,rn=.005,an=24,on=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},sn=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,cn=(e,t,n)=>{let r=on(e),i=on(t),a=on(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{l:.2104542553*o+.793617785*s-.0040720837*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}},ln=({l:e,a:t,b:n})=>{let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]},un=e=>ln(e).every(e=>e>=-1e-4&&e<=1.0001),dn=(e,t,n)=>({l:e,a:t*Math.cos(n),b:t*Math.sin(n)}),fn=(e,t,n)=>{if(un(dn(e,n,t)))return n;let r=0,i=n;for(let n=0;n<20;n++){let n=(r+i)/2;un(dn(e,n,t))?r=n:i=n}return r},pn=e=>`#${ln(e).map(e=>Math.round(Math.min(1,Math.max(0,sn(e)))*255).toString(16).padStart(2,`0`)).join(``)}`,mn=(e,t=4)=>{let n=new Float64Array(an),r=new Float64Array(an),i=new Float64Array(an),a=new Float64Array(an),o=new Float64Array(an),s=Math.floor(e.length/t),c=0,l=0,u=0;for(let d=0;d<s;d++){let s=d*t,{l:f,a:p,b:m}=cn(e[s],e[s+1],e[s+2]);if(f<en||f>tn)continue;c+=p,l+=m,u++;let h=Math.hypot(p,m);if(h<nn)continue;let g=(Math.atan2(m,p)+2*Math.PI)%(2*Math.PI),_=Math.floor(g/(2*Math.PI)*an)%an,v=h*h;n[_]+=v,r[_]++,i[_]+=p*v,a[_]+=m*v,o[_]+=h*v}let d=e=>[-1,0,1].map(t=>(e+t+an)%an),f=Math.max(1,s*rn),p=-1,m=0;for(let e=0;e<an;e++){let t=d(e),i=t.reduce((e,t)=>e+r[t],0),a=t.reduce((e,t)=>e+n[t],0);i>=f&&a>m&&(p=e,m=a)}let h,g,_;if(p===-1)h=u?c/u:0,g=u?l/u:0,_=Math.hypot(h,g);else{h=0,g=0,_=0;for(let e of d(p))h+=i[e],g+=a[e],_+=o[e];_/=m}let v=Math.atan2(g,h);return pn(dn(Qt,fn(Qt,v,Math.min(_,$t)),v))},hn=e=>new Promise((t,n)=>{let r=new Image;r.crossOrigin=`anonymous`,r.onload=()=>{let e=document.createElement(`canvas`);e.width=r.naturalWidth,e.height=r.naturalHeight;let i=e.getContext(`2d`);if(!i)return n(Error(`No canvas context`));i.drawImage(r,0,0);let{data:a}=i.getImageData(0,0,e.width,e.height);t(mn(a))},r.onerror=()=>n(Error(`Couldn't load ${e}`)),r.src=e}),gn=new Set([`$$slots`,`$$events`,`$$legacy`]),_n=y(`<svg><path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m-1-5h2v2h-2zm0-8h2v6h-2z"></path></svg>`);function vn(e,t){let n=U(t,gn);var r=_n();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var yn=u(`<div><!> <span class="errorMessage"> </span></div>`);function bn(e,t){let n=ce(t,`banner`,3,!1);var r=yn();let i;var o=R(r);vn(o,{});var s=P(o,2),c=M(s,!0);J(r),V(()=>{i=_(r,1,`error svelte-1d26unn`,null,i,{banner:n()}),g(c,t.error)}),a(e,r)}var xn=Object.prototype.hasOwnProperty;function Sn(e,t,n){for(n of e.keys())if(Cn(n,t))return n}function Cn(e,t){var n,r,i;if(e===t)return!0;
3if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Cn(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Sn(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Sn(t,i),!i)||!Cn(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(xn.call(e,n)&&++r&&!xn.call(t,n)||!(n in t)||!Cn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function wn(e,t,n,r=!0){let i=t-n;return i<=0?r?e[e.length-1]:e[0]:e[i]}function Tn(e,t,n,r=!0){let i=t+n;return i>e.length-1?r?e[0]:e[e.length-1]:e[i]}function En(e,t,n=!0){return t===e.length-1?n?e[0]:e[t]:e[t+1]}function Dn(e,t,n=!0){return t<=0?n?e[e.length-1]:e[0]:e[t-1]}function On(e){return e[e.length-1]}function kn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function An(e,t,n=Cn){let r=t.findIndex(t=>n(t,e));return r===-1?t.push(e):t.splice(r,1),t}function jn(e){return Object.keys(e).reduce((t,n)=>e[n]===void 0?t:t+`${n}:${e[n]};`,``)}function Mn(e){return e?!0:void 0}jn({position:`absolute`,opacity:0,"pointer-events":`none`,margin:0,transform:`translateX(-100%)`});function Nn(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function X(){}function Pn(e,...t){let n={};for(let r of Object.keys(e))t.includes(r)||(n[r]=e[r]);return n}function Fn(e,t,n){return Object.fromEntries(Object.entries(e).filter(([e,n])=>!Cn(n,t)))}function In(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}return t}function Ln(e){function t(t){return t(e),()=>{}}return{subscribe:t}}function Rn(e,t){if(!Un)return null;let n=(t??document).querySelector(`[data-melt-id="${e}"]`);return Q(n)?n:null}function zn(e,t){if(!Un)return null;let n=(t??document).querySelector(`[id="${e}"]`);return Q(n)?n:null}var Bn=e=>new Proxy(e,{get(e,t,n){return Reflect.get(e,t,n)},ownKeys(e){return Reflect.ownKeys(e).filter(e=>e!==`action`)}}),Vn=e=>typeof e==`function`;Hn(`empty`);function Hn(e,t){let{stores:n,action:r,returned:i}=t??{},a=(()=>{if(n&&i)return A(n,t=>{let n=i(t);if(Vn(n)){let t=(...t)=>Bn(In({...n(...t),[`data-melt-${e}`]:``,action:r??X}));return t.action=r??X,t}return Bn(In({...n,[`data-melt-${e}`]:``,action:r??X}))});{let t=i?.();if(Vn(t)){let n=(...n)=>Bn(In({...t(...n),[`data-melt-${e}`]:``,action:r??X}));return n.action=r??X,Ln(n)}return Ln(Bn(In({...t,[`data-melt-${e}`]:``,action:r??X})))}})(),o=r??(()=>{});return o.subscribe=a.subscribe,o}function Z(e){let t=t=>t?`${e}-${t}`:e,n=t=>`data-melt-${e}${t?`-${t}`:``}`,r=t=>`[data-melt-${e}${t?`-${t}`:``}]`;return{name:t,attribute:n,selector:r,getEl:e=>document.querySelector(r(e))}}var Un=typeof document<`u`,Wn=e=>typeof e==`function`;function Gn(e){return e instanceof ShadowRoot}function Kn(e){return e instanceof Element}function Q(e){return e instanceof HTMLElement}function qn(e){return e instanceof HTMLInputElement}function Jn(e){return e instanceof HTMLLabelElement}function Yn(e){return e instanceof HTMLButtonElement}function Xn(e){let t=e.getAttribute(`aria-disabled`),n=e.getAttribute(`disabled`),r=e.hasAttribute(`data-disabled`);return!!(t===`true`||n!==null||r)}function Zn(e){return Q(e)?e.isContentEditable:!1}function Qn(e){return typeof e==`object`&&!!e}function $n(e){return Qn(e)&&`subscribe`in e}function er(e){if(!Q(e))return!1;let t=e.getRootNode();return t===document?!0:Gn(t)?t.ownerDocument===document:!1}function tr(e,t,n,r){let i=Array.isArray(t)?t:[t];return i.forEach(t=>e.addEventListener(t,n,r)),()=>{i.forEach(t=>e.removeEventListener(t,n,r))}}function nr(e,t,n,r){let i=Array.isArray(t)?t:[t];if(typeof n==`function`){let t=ir(e=>n(e));return i.forEach(n=>e.addEventListener(n,t,r)),()=>
3{i.forEach(n=>e.removeEventListener(n,t,r))}}return()=>void 0}function rr(e){let t=e.currentTarget;if(!Q(t))return null;let n=new CustomEvent(`m-${e.type}`,{detail:{originalEvent:e},cancelable:!0});return t.dispatchEvent(n),n}function ir(e){return t=>{if(!rr(t)?.defaultPrevented)return e(t)}}function ar(e){e.setAttribute(`data-highlighted`,``)}function or(e){e.removeAttribute(`data-highlighted`)}var sr=e=>{try{m(e)}catch{return e}};function cr(e){return Array.from(e.querySelectorAll(`[role="option"]:not([data-disabled])`)).filter(e=>Q(e))}function lr(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}function ur(e){return{...e,get:()=>oe(e)}}ur.writable=function(e){let t=N(e),n=e;return{subscribe:t.subscribe,set(e){t.set(e),n=e},update(e){let r=e(n);t.set(r),n=r},get(){return n}}},ur.derived=function(e,t){let n=new Map,r=()=>t(Array.isArray(e)?e.map(e=>e.get()):e.get());return{get:r,subscribe:t=>{let i=[];return(Array.isArray(e)?e:[e]).forEach(e=>{i.push(e.subscribe(()=>{t(r())}))}),t(r()),n.set(t,i),()=>{let e=n.get(t);if(e)for(let t of e)t();n.delete(t)}}}};var dr=(e,t)=>{let n=ur(e),r=(e,r)=>{n.update(n=>{let i=e(n),a=i;return t&&(a=t({curr:n,next:i})),r?.(a),a})},i=e=>{r(()=>e)};return{...n,update:r,set:i}};function fr(e){return new Promise(t=>setTimeout(t,e))}var pr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,mr=(e=21)=>{let t=``,n=e|0;for(;n-->0;)t+=pr[Math.random()*64|0];return t};function hr(){return mr(10)}function gr(e){return e.reduce((e,t)=>(e[t]=hr(),e),{})}var $={ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,A:`a`,P:`p`},_r=[$.ARROW_DOWN,$.PAGE_UP,$.HOME],vr=[$.ARROW_UP,$.PAGE_DOWN,$.END],yr=[..._r,...vr],br=[$.ENTER,$.SPACE];function xr(e,t=500){let n,r=(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)};return r.destroy=()=>clearTimeout(n),r}var Sr=()=>typeof window<`u`;function Cr(){return navigator.userAgentData?.platform??navigator.platform}var wr=e=>Sr()&&e.test(Cr().toLowerCase()),Tr=()=>Sr()&&!!navigator.maxTouchPoints,Er=()=>wr(/^mac/)&&!Tr(),Dr=()=>wr(/mac|iphone|ipad|ipod/i),Or=()=>Dr()&&!Er(),kr=`data-melt-scroll-lock`;function Ar(e,t){if(!e)return;let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function jr(e,t,n){if(!e)return;let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r):e.style.removeProperty(t)}}function Mr(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?`paddingLeft`:`paddingRight`}function Nr(e){let t=e??document,n=t.defaultView??window,{documentElement:r,body:i}=t;if(i.hasAttribute(kr))return X;i.setAttribute(kr,``);let a=n.innerWidth-r.clientWidth,o=()=>jr(r,`--scrollbar-width`,`${a}px`),s=Mr(r),c=n.getComputedStyle(i)[s],l=[o(),Or()?(()=>{let{scrollX:e,scrollY:t,visualViewport:r}=n,o=r?.offsetLeft??0,l=r?.offsetTop??0,u=Ar(i,{position:`fixed`,overflow:`hidden`,top:`${-(t-Math.floor(l))}px`,left:`${-(e-Math.floor(o))}px`,right:`0`,[s]:`calc(${c} + ${a}px)`});return()=>{u?.(),n.scrollTo(e,t)}})():Ar(i,{overflow:`hidden`,[s]:`calc(${c} + ${a}px)`})];return()=>{l.forEach(e=>e?.()),i.removeAttribute(kr)}}function Pr(e){let{open:t,forceVisible:n,activeTrigger:r}=e;return A([t,n,r],([e,t,n])=>(e||t)&&n!==null)}function Fr(e,t,n={}){let{skipFirstRun:r}=n,i=!0,a,o=A(e,e=>{a?.(),i&&r?i=!1:a=t(e)}).subscribe(X),s=()=>{o(),a?.()};return sr(s),s}function Ir(e){let t={};return Object.keys(e).forEach(n=>{let r=n,i=e[r];t[r]=ur(N(i))}),t}function Lr(e){Un&&fr(1).then(()=>{let t=document.activeElement;Q(t)&&t!==e&&(t.tabIndex=-1,e&&(e.tabIndex=0,e.focus()))})}var Rr=new Set([`Shift`,`Control`,`Alt`,`Meta`,`CapsLock`,`NumLock`]),zr={onMatch:Lr,getCurrentItem:()=>document.activeElement};function Br(e={}){let t={...zr,...e},n=ur(N([])),r=xr(()=>{n.update(()=>[])});return{typed:n,resetTyped:r,handleTypeaheadSearch:(e,i)=>{if(Rr.has(e))return;let a=t.getCurrentItem(),o=oe(n);if(!Array.isArray(o))return;o.push(e.toLowerCase()),n.set(o);let s=i.filter(e=>!(e.getAttribute(`disabled`)===`true`||e.getAttribute(`aria-disabled`)===`true`||e.hasAttribute(`data-disabled`))),c=o.length>1&&o.every(e=>e===o[0])?o[0]:o.join(``),l=Q(a)?s.indexOf(a):-1,u=kn(s,Math.max(l,0));c.length===1&&(u=u.filter(e=>e!==a));let d=u.find(e=>e?.innerText&&e.innerText.toLowerCase().startsWith(c.toLowerCase()));Q(d)&&d!==a&&t.onMatch(d),r()}}}function Vr(e){let t=e.parentElement;for(;Q(t)&&!t.hasAttribute(`data-portal`);)t=t.parentElement;return t||`body`}function Hr(e,t){return t===void 0?Vr(e)===`body`?document.body:null:t}function Ur(e,t){return e===t||e.contains(t)}function Wr(e){return e?.ownerDocument??document}function Gr(e){return t=>{let n=t.target,r=Rn(e);if(!r||!Kn(n))return!1;let i=r.id;return!!(Jn(n)&&i===n.htmlFor||n.closest(`label[for="${i}"]`))}}var{name:Kr,selector:qr}=Z(`accordion`);function Jr(e){let t={};return Object.keys(e).forEach(n=>{let r=n,i=e[r];$n(i)?t[r]=ur(i):t[r]=ur(pe(i))}),t}var Yr={prefix:``,disabled:pe(!1),required:pe(!1),name:pe(void 0),type:pe(void 0),checked:void 0};function Xr(e){let t={...Yr,...In(e)},{name:n}=Z(t.prefix),{value:r,name:i,disabled:a,required:o,type:s,checked:c}=Jr(Pn(t,`prefix`)),l=i,u=ur.derived([c,s],([e,t])=>
3{if(t===`checkbox`)return e!==`indeterminate`&&e});return Hn(n(`hidden-input`),{stores:[r,l,a,o,s,u],returned:([e,t,n,r,i,a])=>({name:t,value:e?.toString(),"aria-hidden":`true`,hidden:!0,disabled:n,required:r,tabIndex:-1,type:i,checked:a,style:jn({position:`absolute`,opacity:0,"pointer-events":`none`,margin:0,transform:`translateX(-100%)`})}),action:e=>({destroy:Nn(r.subscribe(t=>{s.get()!==`checkbox`&&(e.value=t,e.dispatchEvent(new Event(`change`,{bubbles:!0})))}),u.subscribe(()=>{s.get()===`checkbox`&&e.dispatchEvent(new Event(`change`,{bubbles:!0}))}))})})}var{name:Zr}=Z(`collapsible`),Qr=new Map,$r=((e,t={})=>{let n=X;function r(t={}){n();let r={behaviorType:`close`,...t},i=$n(r.behaviorType)?r.behaviorType:ur(pe(r.behaviorType));Qr.set(e,i),n=Nn(tr(document,`keydown`,t=>{if(t.key!==$.ESCAPE||!ei(e))return;let n=t.target;Q(n)&&(t.preventDefault(),!ti(t,r.ignore)&&ni(i.get())&&r.handler?.(t))},{passive:!1}),Fr(i,t=>{t===`close`||t===`defer-otherwise-close`&&[...Qr.keys()][0]===e?e.dataset.escapee=``:delete e.dataset.escapee}),i.destroy||X)}return r(t),{update:r,destroy(){Qr.delete(e),delete e.dataset.escapee,n()}}}),ei=e=>{let t=[...Qr],n=t.findLast(([e,t])=>{let n=t.get();return n===`close`||n===`ignore`});if(n)return n[0]===e;let[r]=t[0];return r===e},ti=(e,t)=>t?!!(Wn(t)&&t(e)||Array.isArray(t)&&t.some(t=>e.target===t)):!1,ni=e=>e===`close`||e===`defer-otherwise-close`,ri=Math.min,ii=Math.max,ai=Math.round,oi=Math.floor,si=e=>({x:e,y:e}),ci={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function li(e,t,n){return ii(e,ri(t,n))}function ui(e,t){return typeof e==`function`?e(t):e}function di(e){return e.split(`-`)[0]}function fi(e){return e.split(`-`)[1]}function pi(e){return e===`x`?`y`:`x`}function mi(e){return e===`y`?`height`:`width`}function hi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function gi(e){return pi(hi(e))}function _i(e,t,n){n===void 0&&(n=!1);let r=fi(e),i=gi(e),a=mi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ei(o)),[o,Ei(o)]}function vi(e){let t=Ei(e);return[yi(e),t,yi(t)]}function yi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var bi=[`left`,`right`],xi=[`right`,`left`],Si=[`top`,`bottom`],Ci=[`bottom`,`top`];function wi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?xi:bi:t?bi:xi;case`left`:case`right`:return t?Si:Ci;default:return[]}}function Ti(e,t,n,r){let i=fi(e),a=wi(di(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(yi)))),a}function Ei(e){let t=di(e);return ci[t]+e.slice(t.length)}function Di(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Oi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Di(e)}function ki(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ai(e,t,n){let{reference:r,floating:i}=e,a=hi(t),o=gi(t),s=mi(o),c=di(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=fi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ji(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ui(t,e),p=Oi(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ki(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ki(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left
vendor: 7,012 bytes, line 3
3:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Mi=50,Ni=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ji},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ai(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Mi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ai(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Pi=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ui(e,t)||{};if(l==null)return{};let d=Oi(u),f={x:n,y:r},p=gi(i),m=mi(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ri(d[_],T),D=ri(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=li(E,k,O),j=!c.arrow&&fi(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}}),Fi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ui(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=di(r),_=hi(o),v=di(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ei(o)]:vi(o)),x=p!==`none`;!d&&x&&b.push(...Ti(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=_i(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===hi(t)||T.every(e=>hi(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=hi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ii=new Set([`left`,`top`]);async function Li(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=di(n),s=fi(n),c=hi(n)===`y`,l=Ii.has(o)?-1:1,u=a&&c?-1:1,d=ui(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ri=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Li(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},zi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ui(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=hi(i),p=pi(f),m=u[p],h=u[f],g=(e,t)=>li(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Bi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=ui(e,t),c=await i.detectOverflow(t,s),l=di(n),u=fi(n),d=hi(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ri(p-c[m],g),y=ri(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ii(c.left,c.right):S=p-2*ii(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Vi(){return typeof window<`u`}function Hi(e){return Gi(e)?(e.nodeName||``).toLowerCase():`#document`}function Ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wi(e){return((Gi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Gi(e){return Vi()?e instanceof Node||e instanceof Ui(e).Node:!1}function Ki(e){return Vi()?e instanceof Element||e instanceof Ui(e).Element:!1}function qi(e){return Vi()?e instanceof HTMLElement||e instanceof Ui(e).HTMLElement:!1}function Ji(e){return!Vi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ui(e).ShadowRoot}function Yi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=oa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Xi(e){return/^(table|td|th)$/.test(Hi(e))}function Zi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Qi=/transform|translate|scale|rotate|perspective|filter/,$i=/paint|layout|strict|content/,ea=e=>!!e&&e!==`none`,ta;function na(e){let t=Ki(e)?oa(e):e;return ea(t.transform)||ea(t.translate)||ea(t.scale)||ea(t.rotate)||ea(t.perspective)||!ia()&&(ea(t.backdropFilter)||ea(t.filter))||Qi.test(t.willChange||``)||$i.test(t.contain||``)}function ra(e){let t=ca(e);for(;qi(t)&&!aa(t);){if(na(t))return t;if(Zi(t))return null;t=ca(t)}return null}function ia(){return ta??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ta}function aa(e){return/^(html|body|#document)$/.test(Hi(e))}function oa(e){return Ui(e).getComputedStyle(e)}function sa(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(Hi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ji(e)&&e.host||Wi(e);return Ji(t)?t.host:t}function la(e){let t=ca(e);return aa(t)?(e.ownerDocument||e).body:qi(t)&&Yi(t)?t:la(t)}function ua(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=la(e),i=r===e.ownerDocument?.body,a=Ui(r);if(i){let e=da(a);
vendor: 4,240 bytes, line 3
3return t.concat(a,a.visualViewport||[],Yi(r)?r:[],e&&n?ua(e):[])}return t.concat(r,ua(r,[],n))}function da(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fa(e){let t=oa(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=qi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ai(n)!==a||ai(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function pa(e){return Ki(e)?e:e.contextElement}function ma(e){let t=pa(e);if(!qi(t))return si(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=fa(t),o=(a?ai(n.width):n.width)/r,s=(a?ai(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ha=si(0);function ga(e){let t=Ui(e);return!ia()||!t.visualViewport?ha:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _a(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ui(e)}function va(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=pa(e),o=si(1);t&&(r?Ki(r)&&(o=ma(r)):o=ma(e));let s=_a(a,n,r)?ga(a):si(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ui(a),t=Ki(r)?Ui(r):r,n=e,i=da(n);for(;i&&t!==n;){let e=ma(i),t=i.getBoundingClientRect(),r=oa(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ui(i),i=da(n)}}return ki({width:u,height:d,x:c,y:l})}function ya(e,t){let n=sa(e).scrollLeft;return t?t.left+n:va(Wi(e)).left+n}function ba(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ya(e,n),y:n.top+t.scrollTop}}function xa(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Wi(r),s=t?Zi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=si(1),u=si(0),d=qi(r);if((d||!a)&&((Hi(r)!==`body`||Yi(o))&&(c=sa(r)),d)){let e=va(r);l=ma(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ba(o,c):si(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Sa(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ca(e){let t=sa(e),n=e.ownerDocument.body,r=ii(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ii(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ya(e),o=-t.scrollTop;return oa(n).direction===`rtl`&&(a+=ii(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var wa=25;function Ta(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ui(e),a=Wi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ia()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(ya(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=wa&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ea(e,t){let n=va(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ma(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Da(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ta(e,n,t);else if(t===`document`)r=Ca(Wi(e));else if(Ki(t))r=Ea(t,n);else{let n=ga(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ki(r)}function Oa(e,t){let n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter(e=>Ki(e)&&Hi(e)!==`body`),i=null,a=oa(e).position===`fixed`,o=a?ca(e):e;for(;Ki(o)&&!aa(o);){let e=oa(o),t=na(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ca(o)}return t.set(e,r),r}function ka(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Zi(t)?[]:Oa(t,this._c):[].concat(n),r],o=Da(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Da(t,a[e],i);s=ii(n.top,s),c=ri(n.right,c),l=ri(n.bottom,l),u=ii(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Aa(e){let{width:t,height:n}=fa(e);return{width:t,height:n}}function ja(e,t,n){let r=qi(t),i=Wi(t),a=n===`fixed`,o=va(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=si(0);
3if((r||!a)&&((Hi(t)!==`body`||Yi(i))&&(s=sa(t)),r)){let e=va(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=ya(i));let l=i&&!r&&!a?ba(i,s):si(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ma(e){return oa(e).position===`static`}function Na(e,t){if(!qi(e)||oa(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Wi(e)===n&&(n=n.ownerDocument.body),n}function Pa(e,t){let n=Ui(e);if(Zi(e))return n;if(!qi(e)){let t=ca(e);for(;t&&!aa(t);){if(Ki(t)&&!Ma(t))return t;t=ca(t)}return n}let r=Na(e,t);for(;r&&Xi(r)&&Ma(r);)r=Na(r,t);return r&&aa(r)&&Ma(r)&&!na(r)?n:r||ra(e)||n}var Fa=async function(e){let t=this.getOffsetParent||Pa,n=this.getDimensions,r=await n(e.floating);return{reference:ja(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return oa(e).direction===`rtl`}var La={convertOffsetParentRelativeRectToViewportRelativeRect:xa,getDocumentElement:Wi,getClippingRect:ka,getOffsetParent:Pa,getElementRects:Fa,getClientRects:Sa,getDimensions:Aa,getScale:ma,isElement:Ki,isRTL:Ia};function Ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function za(e,t,n){let r=null,i,a=Wi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=oi(d),h=oi(a.clientWidth-(u+f)),g=oi(a.clientHeight-(d+p)),_=oi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ii(0,ri(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ra(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ui(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ba(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=pa(e),u=i||a?[...l?ua(l):[],...t?ua(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?za(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?va(e):null;c&&g();function g(){let t=va(e);h&&!Ra(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Va=Ri,Ha=zi,Ua=Fi,Wa=Bi,Ga=Pi,Ka=(e,t,n)=>{let r=new Map,i=n??{},a={...La,...i.platform,_c:r};return Ni(e,t,{...i,platform:a})},qa={strategy:`absolute`,placement:`top`,gutter:5,flip:!0,sameWidth:!1,overflowPadding:8},Ja={bottom:`rotate(45deg)`,left:`rotate(135deg)`,top:`rotate(225deg)`,right:`rotate(315deg)`};function Ya(e){return Qn(e)&&`getBoundingClientRect`in e}function Xa(e,t,n={}){if(!t||!e||n===null)return{destroy:X};let r={...qa,...n},i=t.querySelector(`[data-arrow=true]`),a=[];r.flip&&a.push(Ua({boundary:r.boundary,padding:r.overflowPadding,...Qn(r.flip)&&r.flip}));let o=Q(i)?i.offsetHeight/2:0;if(r.gutter||r.offset){let e=r.gutter?{mainAxis:r.gutter}:r.offset;e?.mainAxis!=null&&(e.mainAxis+=o),a.push(Va(e))}a.push(Ha({boundary:r.boundary,crossAxis:r.overlap,padding:r.overflowPadding})),i&&a.push(Ga({element:i,padding:8})),a.push(Wa({padding:r.overflowPadding,apply({rects:e,availableHeight:n,availableWidth:i}){r.sameWidth&&Object.assign(t.style,{width:`${Math.round(e.reference.width)}px`,minWidth:`unset`}),r.fitViewport&&Object.assign(t.style,{maxWidth:`${i}px`,maxHeight:`${n}px`})}}));function s(){if(!e||!t||!Ya(e)&&!er(e))return;let{placement:n,strategy:s}=r;Ka(e,t,{placement:n,middleware:a,strategy:s}).then(e=>{let n=Math.round(e.x),a=Math.round(e.y),[s,c]=Za(e.placement);if(t.setAttribute(`data-side`,s),t.setAttribute(`data-align`,c),Object.assign(t.style,{position:r.strategy,top:`${a}px`,left:`${n}px`}),Q(i)&&e.middlewareData.arrow){let{x:t,y:n}=e.middlewareData.arrow,r=e.placement.split(`-`)[0];i.setAttribute(`data-side`,r),Object.assign(i.style,{position:`absolute`,left:t==null?``:`${t}px`,top:n==null?``:`${n}px`,[r]:`calc(100% - ${o}px)`,transform:Ja[r],backgroundColor:`inherit`,zIndex:`inherit`})}return e})}return Object.assign(t.style,{position:r.strategy}),{destroy:Ba(e,t,s)}}function Za(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Qa=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not
3(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],$a=Qa.join(`,`),eo=typeof Element>`u`,to=eo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,no=!eo&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},ro=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):ro(e.parentNode))},io=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},ao=function(e,t,n){if(ro(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll($a));return t&&to.call(e,$a)&&r.unshift(e),r=r.filter(n),r},oo=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!ro(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=oo(o.length?o:a.children,!0,n);
vendor: 4,600 bytes, line 3
3n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{to.call(a,$a)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!ro(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=oo(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},so=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},co=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||io(e))&&!so(e)?0:e.tabIndex},lo=function(e,t){var n=co(e);return n<0&&t&&!so(e)?0:n},uo=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fo=function(e){return e.tagName===`INPUT`},po=function(e){return fo(e)&&e.type===`hidden`},mo=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},ho=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},go=function(e){if(!e.name)return!0;var t=e.form||no(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=ho(r,e.form);return!i||i===e},_o=function(e){return fo(e)&&e.type===`radio`},vo=function(e){return _o(e)&&!go(e)},yo=function(e){var t=e&&no(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=no(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},bo=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},xo=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=to.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(to.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=no(e);if(s&&!s.shadowRoot&&r(s)===!0)return bo(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(yo(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return bo(e);return!1},So=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return to.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Co=function(e,t){return!(t.disabled||po(t)||xo(t,e)||mo(t)||So(t))},wo=function(e,t){return!(vo(t)||co(t)<0||!Co(e,t))},To=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Eo=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=lo(a,i),s=i?Eo(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(uo).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Do=function(e,t){return t||={},Eo(t.getShadowRoot?oo([e],t.includeContainer,{filter:wo.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:To}):ao(e,t.includeContainer,wo.bind(null,t)))},Oo=function(e,t){return t||={},t.getShadowRoot?oo([e],t.includeContainer,{filter:Co.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ao(e,t.includeContainer,Co.bind(null,t))},ko=function(e,t){if(t||={},!e)throw Error(`No node provided`);return to.call(e,$a)!==!1&&wo(t,e)},Ao=Qa.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),jo=function(e,t){if(t||={},!e)throw Error(`No node provided`);return to.call(e,Ao)!==!1&&Co(t,e)};function Mo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function No(e){if(Array.isArray(e))return Mo(e)}function Po(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];
vendor: 12,069 bytes, lines 3-5
3if(!n){if(Array.isArray(e)||(n=Uo(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Fo(e,t,n){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Lo(){throw TypeError(`Invalid attempt to spread non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ro(Object(n),!0).forEach(function(t){Fo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bo(e){return No(e)||Io(e)||Uo(e)||Lo()}function Vo(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ho(e){var t=Vo(e,`string`);return typeof t==`symbol`?t:t+``}function Uo(e,t){if(e){if(typeof e==`string`)return Mo(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mo(e,t):void 0}}var Wo={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==Wo.getActiveTrap(e)&&Wo.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Wo.unpauseTrap(e)},pauseTrap:function(e){Wo.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=Wo.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Go=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Ko=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},qo=function(e){return e?.key===`Tab`||e?.keyCode===9},Jo=function(e){return qo(e)&&!e.shiftKey},Yo=function(e){return qo(e)&&e.shiftKey},Xo=function(e){return setTimeout(e,0)},Zo=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},Qo=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},$o=[],es=function(e,t){var n=t?.document||document,r=t?.trapStack||$o,i=zo({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Jo,isKeyBackward:Yo},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Bo(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!jo(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=Do(e,i.tabbableOptions),n=Oo(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return ko(e)}),s=n.slice().reverse().find(function(e){return ko(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return co(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return ko(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return ko(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,Go(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=Qo(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||jo(t,i.tabbableOptions)&&!ko(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=co(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else qo(n)||(s=f.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||jo(t,i.tabbableOptions)&&!ko(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=co(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else qo(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(Qo(e),e)>=0)){if(Zo(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Zo(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=Qo(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(co(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return co(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(qo(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Ko(e)&&Zo(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c(Qo(e),e)>=0||Zo(i.clickOutsideDeactivates,e)||Zo(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active)return Wo.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?Xo(function(){p(u())}):p(u()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),o},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=Po(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=Po(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),c=s(e,`onPostActivate`),l=s(e,`checkCanFocusTrap`),u=Wo.getActiveTrap(r),p=!1;if(u&&!u.paused){var m;(m=u._setSubtreeIsolation)==null||m.call(u,!1),p=!0}try{l||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var h=function(){l&&d(),S(),E(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),c?.()};if(l)return l(a.containers.concat()).then(h,h),this;h()}catch(e){if(u===Wo.getActiveTrap(r)&&p){var g;(g=u._setSubtreeIsolation)==null||g.call(u,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=zo({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),Wo.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){Xo(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
5Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),w(),E(),o._setSubtreeIsolation(!1),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),o._setSubtreeIsolation(!0),d(),S(),E(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`)}})}}}),o.updateContainerElements(e),o},ts=((e,t={})=>{let n=X,r=t=>{n();let r=es(e,{returnFocusOnDeactivate:!1,allowOutsideClick:!0,escapeDeactivates:!1,clickOutsideDeactivates:!1,...t});n=r.deactivate,r.activate()};return r(t),{destroy:n,update:r}}),ns=((e,t)=>{let n=X;function r(t){n();let{onClose:r,shouldCloseOnInteractOutside:i,closeOnInteractOutside:a}=t;function o(){r?.()}function s(e){let t=e.target;Kn(t)&&e.stopImmediatePropagation()}function c(e){i?.(e)&&(e.stopImmediatePropagation(),o())}n=ps(e,{onInteractOutsideStart:s,onInteractOutside:a?c:void 0,enabled:a}).destroy}return r(t),{update:r,destroy(){n()}}}),rs=new Set,is=((e,t={})=>{rs.add(e);let n=X,r=X,i=Wr(e),a=!1,o=t=>{n(),s();let o={enabled:!0,...t},c=$n(o.enabled)?o.enabled:ur(pe(o.enabled));n=Nn(tr(i,`pointerdown`,t=>{let n=t.target;cs(e)&&Q(n)&&c.get()&&(a=Ur(e,n),a&&(r=as(e)))},!0),tr(i,`pointerup`,s,!0))},s=()=>{r(),r=X,a=!1};return o(t),{destroy(){rs.delete(e),n(),s()},update:o}}),as=e=>{let t=document.body,n=os(t),r=os(e);return ss(t,`none`),ss(e,`text`),()=>{ss(t,n),ss(e,r)}},os=e=>e.style.userSelect||e.style.webkitUserSelect,ss=(e,t)=>{e.style.userSelect=t,e.style.webkitUserSelect=t},cs=e=>[...rs].at(-1)===e,ls={floating:{},focusTrap:{},modal:{},escapeKeydown:{},portal:`body`,preventTextSelectionOverflow:{}},us=((e,t)=>{e.dataset.escapee=``;let{anchorElement:n,open:r,options:i}=t;if(!n||!r||!i)return{destroy:X};let a={...ls,...i},o=[];a.portal!==null&&o.push(ds(e,a.portal).destroy),o.push(Xa(n,e,a.floating).destroy),a.focusTrap!==null&&o.push(ts(e,{fallbackFocus:e,...a.focusTrap}).destroy),a.modal!==null&&o.push(ns(e,{onClose:()=>{Q(n)&&(r.set(!1),n.focus())},shouldCloseOnInteractOutside:e=>!(e.defaultPrevented||Q(n)&&n.contains(e.target)),...a.modal}).destroy),a.escapeKeydown!==null&&o.push($r(e,{handler:()=>{r.set(!1)},...a.escapeKeydown}).destroy),a.preventTextSelectionOverflow!==null&&o.push(is(e).destroy);let s=Nn(...o);return{destroy(){s()}}}),ds=((e,t=`body`)=>{let n;if(!Q(t)&&typeof t!=`string`)return{destroy:X};async function r(r=`body`){if(t=r,typeof t==`string`){if(n=document.querySelector(t),n===null&&(await te(),n=document.querySelector(t)),n===null)throw Error(`No element found matching css selector: "${t}"`)}else if(t instanceof HTMLElement)n=t;else throw TypeError(`Unknown portal target type: ${t===null?`null`:typeof t}. Allowed types: string (CSS selector) or HTMLElement.`);e.dataset.portal=``,n.appendChild(e),e.hidden=!1}function i(){e.remove()}return r(t),{update:r,destroy:i}}),fs=new Set,ps=((e,t={})=>{let n=X,r=X,i=X,a=X;fs.add(e);let o=Wr(e),s=!1,c=!1,l={pointerdown:!1,pointerup:!1,mousedown:!1,mouseup:!1,touchstart:!1,touchend:!1,click:!1},u=()=>{for(let e in l)l[e]=!1},d=()=>{for(let e of Object.values(l))if(e)return!0;return!1},f=(e,t)=>tr(o,e,n=>{l[e]=!0,t?.(n)},!0),p=(e,t)=>tr(o,e,n=>{l[e]=!1;let r={};Q(n.target)&&Gn(n.target.shadowRoot)&&(r.shadowTarget=n.composedPath()[0]),t?.(n,r)});function m(t){n(),r(),i(),a(),u();let{onInteractOutside:o,onInteractOutsideStart:l,enabled:m}={enabled:!0,...t};if(!m)return;let _=!1,v=xr((t,n)=>{if(!_||d())return;o&&ms(t,e)&&l?.(t);let r=n?.shadowTarget?n.shadowTarget:t.target;Kn(r)&&Ur(e,r)&&(c=!0),s=!0},10);r=v.destroy;let y=xr(e=>{_&&!d()&&h(e)&&o?.(e),g()},10);i=y.destroy;let b=xr(u,20);a=b.destroy;let x=()=>{_=hs(e)};n=Nn(f(`pointerdown`,x),f(`mousedown`,x),f(`touchstart`,x),f(`pointerup`,b),f(`mouseup`,b),f(`touchend`,b),f(`click`,b),p(`pointerdown`,v),p(`mousedown`,v),p(`touchstart`,v),p(`pointerup`,y),p(`mouseup`,y),p(`touchend`,y),p(`click`,y))}function h(t){return!!(s&&!c&&ms(t,e))}function g(){s=!1,c=!1}return m(t),{update:m,destroy(){n(),r(),i(),a(),fs.delete(e)}}});function ms(e,t){if(`button`in e&&e.button>0)return!1;let n=e.target;if(!Kn(n))return!1;let r=n.ownerDocument;return!r||!r.documentElement.contains(n)?!1:t&&!Ur(t,n)}function hs(e){return Array.from(fs).at(-1)===e}function gs(){return{elements:{root:Hn(`label`,{action:e=>({destroy:nr(e,`mousedown`,e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})})})}}}var _s=[$.ARROW_LEFT,$.ESCAPE,$.ARROW_RIGHT,$.SHIFT,$.CAPS_LOCK,$.CONTROL,$.ALT,$.META,$.ENTER,$.F1,$.F2,$.F3,$.F4,$.F5,$.F6,$.F7,$.F8,$.F9,$.F10,$.F11,$.F12],vs={positioning:{placement:`bottom`,sameWidth:!0},scrollAlignment:`nearest`,loop:!0,defaultOpen:!1,closeOnOutsideClick:!0,preventScroll:!0,escapeBehavior:`close`,forceVisible:!1,portal:`body`,builder:`listbox`,disabled:!1,required:!1,name:void 0,typeahead:!0,highlightOnHover:!0,onOutsideClick:void 0,preventTextSelectionOverflow:!0,rootElement:void 0},ys=[`trigger`,`menu`,`label`];function bs(e){let t={...vs,...e},n=ur(N(null)),r=ur(N(null)),i=dr(t.selected??N(t.defaultSelected),t?.onSelectedChange),a=A(r,e=>e?M(e):void 0),o=dr(t.open??N(t.defaultOpen),t?.onOpenChange),s=Ir({...Pn(t,`open`,`defaultOpen`,`builder`,`ids`),multiple:t.multiple??!1}),{scrollAlignment:c,loop:l,closeOnOutsideClick:u,escapeBehavior:d,preventScroll:f,portal:p,forceVisible:m,positioning:h,multiple:g,arrowSize:_,disabled:v,required:y,typeahead:b,name:x,highlightOnHover:S,onOutsideClick:C,preventTextSelectionOverflow:w,rootElement:T}=s,E=T.get();Un&&E===void 0?T.set(document):e?.portal===void 0&&p.set(E);let{name:D,selector:O}=Z(t.builder),k=Ir({...gr(ys),...t.ids}),{handleTypeaheadSearch:j}=Br({onMatch:e=>{r.set(e),e.scrollIntoView({block:c.get()})},getCurrentItem(){return r.get()}});function M(e){let t=e.getAttribute(`data-value`),n=e.getAttribute(`data-label`),r=e.hasAttribute(`data-disabled`);return{value:t&&JSON.parse(t),label:n??e.textContent??void 0,disabled:!!r}}let P=e=>{i.update(t=>g.get()?An(e,Array.isArray(t)?[...t]:[],(e,t)=>Cn(e.value,t.value)):e)};function ne(e){let t=M(e);P(t)}async function F(){o.set(!0),await te();let e=zn(k.menu.get(),T.get());if(!Q(e))return;let t=e.querySelector(`[aria-selected=true]`);Q(t)&&r.set(t)}function I(){o.set(!1),r.set(null)}
5let L=Pr({open:o,forceVisible:m,activeTrigger:n}),re=A([i],([e])=>t=>Array.isArray(e)?e.some(e=>Cn(e.value,t)):Qn(t)?Cn(e?.value,Fn(t,void 0,!0)):Cn(e?.value,t)),ie=A([a],([e])=>t=>Cn(e?.value,t)),ae=Hn(D(`trigger`),{stores:[o,r,v,k.menu,k.trigger,k.label],returned:([e,n,r,i,a,o])=>({"aria-activedescendant":n?.id,"aria-autocomplete":`list`,"aria-controls":i,"aria-expanded":e,"aria-labelledby":o,"data-state":e?`open`:`closed`,id:a,role:`combobox`,disabled:Mn(r),type:t.builder===`select`?`button`:void 0}),action:e=>{n.set(e);let t=qn(e),a=Nn(nr(e,`click`,()=>{e.focus(),o.get()?I():F()}),nr(e,`keydown`,n=>{if(!o.get()){if(_s.includes(n.key)||n.key===$.TAB||n.key===$.BACKSPACE&&t&&e.value===``||n.key===$.SPACE&&Yn(e))return;F(),te().then(()=>{if(i.get())return;let e=zn(k.menu.get(),T.get());if(!Q(e))return;let t=Array.from(e.querySelectorAll(`${O(`item`)}:not([data-disabled]):not([data-hidden])`)).filter(e=>Q(e));t.length&&(n.key===$.ARROW_DOWN?(r.set(t[0]),t[0].scrollIntoView({block:c.get()})):n.key===$.ARROW_UP&&(r.set(On(t)),On(t).scrollIntoView({block:c.get()})))})}if(n.key===$.TAB){I();return}if(n.key===$.ENTER&&!n.isComposing||n.key===$.SPACE&&Yn(e)){n.preventDefault();let e=r.get();e&&ne(e),g.get()||I()}if(n.key===$.ARROW_UP&&n.altKey&&I(),yr.includes(n.key)){n.preventDefault();let e=zn(k.menu.get(),T.get());if(!Q(e))return;let t=cr(e);if(!t.length)return;let i=t.filter(e=>!Xn(e)&&e.dataset.hidden===void 0),a=r.get(),o=a?i.indexOf(a):-1,s=l.get(),u=c.get(),d;switch(n.key){case $.ARROW_DOWN:d=En(i,o,s);break;case $.ARROW_UP:d=Dn(i,o,s);break;case $.PAGE_DOWN:d=Tn(i,o,10,s);break;case $.PAGE_UP:d=wn(i,o,10,s);break;case $.HOME:d=i[0];break;case $.END:d=On(i);break;default:return}r.set(d),d?.scrollIntoView({block:u})}else if(b.get()){let e=zn(k.menu.get(),T.get());if(!Q(e))return;j(n.key,cr(e))}}));return{destroy(){n.set(null),a()}}}}),R=Hn(D(`menu`),{stores:[L,k.menu],returned:([e,t])=>({hidden:!e||void 0,id:t,role:`listbox`,style:e?void 0:jn({display:`none`})}),action:e=>{let t=X,r=Nn(Fr([L,p,u,h,n],([n,r,i,a,s])=>{t(),n&&s&&te().then(()=>{t();let n=Gr(k.trigger.get());t=us(e,{anchorElement:s,open:o,options:{floating:a,focusTrap:null,modal:{closeOnInteractOutside:i,onClose:I,shouldCloseOnInteractOutside:e=>{if(C.get()?.(e),e.defaultPrevented)return!1;let t=e.target;return!(!Kn(t)||t===s||s.contains(t)||n(e))}},escapeKeydown:{handler:I,behaviorType:d},portal:Hr(e,r),preventTextSelectionOverflow:{enabled:w}}}).destroy})}));return{destroy:()=>{r(),t()}}}}),{elements:{root:se}}=gs(),{action:z}=oe(se),ce=Hn(D(`label`),{stores:[k.label,k.trigger],returned:([e,t])=>({id:e,for:t}),action:z}),B=Hn(D(`option`),{stores:[re],returned:([e])=>t=>{let n=e(t.value);return{"data-value":JSON.stringify(t.value),"data-label":t.label,"data-disabled":Mn(t.disabled),"aria-disabled":t.disabled?!0:void 0,"aria-selected":n,"data-selected":n?``:void 0,id:hr(),role:`option`}},action:e=>({destroy:Nn(nr(e,`click`,t=>{if(Xn(e)){t.preventDefault();return}ne(e),g.get()||I()}),Fr(S,t=>{if(t)return Nn(nr(e,`mouseover`,()=>{r.set(e)}),nr(e,`mouseleave`,()=>{r.set(null)}))}))})}),V=Hn(D(`group`),{returned:()=>e=>({role:`group`,"aria-labelledby":e})}),le=Hn(D(`group-label`),{returned:()=>e=>({id:e})}),H=Xr({value:A([i],([e])=>{let t=Array.isArray(e)?e.map(e=>e.value):e?.value;return typeof t==`string`?t:JSON.stringify(t)}),name:ee(x),required:y,prefix:t.builder}),U=Hn(D(`arrow`),{stores:_,returned:e=>({"data-arrow":!0,style:jn({position:`absolute`,width:`var(--arrow-size, ${e}px)`,height:`var(--arrow-size, ${e}px)`})})});return Fr([r],([e])=>{if(!Un)return;let t=zn(k.menu.get(),T.get());Q(t)&&cr(t).forEach(t=>{t===e?ar(t):or(t)})}),Fr([o,f],([e,t])=>{if(Un&&e&&t)return Nr()}),{ids:k,elements:{trigger:ae,group:V,option:B,menu:R,groupLabel:le,label:ce,hiddenInput:H,arrow:U},states:{open:o,selected:i,highlighted:a,highlightedItem:r},helpers:{isSelected:re,isHighlighted:ie,closeMenu:I},options:s}}$.ARROW_LEFT,$.ESCAPE,$.ARROW_RIGHT,$.SHIFT,$.CAPS_LOCK,$.CONTROL,$.ALT,$.META,$.ENTER,$.F1,$.F2,$.F3,$.F4,$.F5,$.F6,$.F7,$.F8,$.F9,$.F10,$.F11,$.F12;var{name:xs}=Z(`combobox`);function Ss(e){let t=bs({...e,builder:`combobox`,typeahead:!1}),n=N(``),r=N(!1),i=Hn(xs(`input`),{stores:[t.elements.trigger,n],returned:([e,t])=>({...Pn(e,`action`),role:`combobox`,value:t,autocomplete:`off`}),action:e=>{let i=Nn(nr(e,`input`,e=>{(qn(e.target)||Zn(e.target))&&r.set(!0)}),tr(e,`input`,e=>{qn(e.target)&&n.set(e.target.value),Zn(e.target)&&n.set(e.target.innerText)})),{destroy:a}=t.elements.trigger(e);return{destroy(){a?.(),i()}}}});return Fr(t.states.open,e=>{e||r.set(!1)}),{...t,elements:{...Pn(t.elements,`trigger`),input:i},states:{...t.states,touchedInput:r,inputValue:n}}}[...br,$.ARROW_RIGHT],[...br,$.ARROW_LEFT],$.ARROW_LEFT,$.ARROW_RIGHT;var{name:Cs,selector:ws}=Z(`context-menu`),Ts=[`day`,`month`,`year`],Es=[`hour`,`minute`,`second`,`dayPeriod`],Ds=[`literal`,`timeZoneName`];[...Ts,...Es,...Ds].filter(e=>e!==`literal`);var Os={isDateDisabled:void 0,isDateUnavailable:void 0,value:void 0,preventDeselect:!1,numberOfMonths:1,pagedNavigation:!1,weekStartsOn:0,fixedWeeks:!1,calendarLabel:`Event Date`,locale:`en`,minValue:void 0,maxValue:void 0,disabled:!1,readonly:!1,weekdayFormat:`narrow`},{name:ks}=Z(`calendar`),{name:As}=Z(`dateField`);({...Pn(Os,`isDateDisabled`,`isDateUnavailable`,`value`,`locale`,`disabled`,`readonly`,`minValue`,`maxValue`,`weekdayFormat`)});var{name:js}=Z(`dateField`),{name:Ms}=Z(`dialog`),{name:Ns}=Z(`hover-card`);$.ARROW_LEFT,$.ARROW_RIGHT,$.HOME,$.END;var{name:Ps}=Z(`menubar`),{name:Fs,selector:Is}=Z(`pagination`),{name:Ls,selector:Rs}=Z(`pin-input`),{name:zs}=Z(`popover`),{name:Bs}=Z(`progress`),{name:Vs,selector:Hs}=Z(`radio-group`),{name:Us}=Z(`calendar`),{name:Ws}=Z(`scroll-area`),{name:Gs}=Z(`slider`),{name:Ks}=Z(`switch`),{name:qs,selector:Js}=Z(`tabs`),{name:Ys,attribute:Xs,selector:Zs}=Z(`tags-input`),{name:Qs}=Z(`toast`),$s={type:`single`,orientation:`horizontal`,loop:!0,rovingFocus:!0,disabled:!1,defaultValue:``},{name:ec,selector:tc}=Z(`toggle-group`),nc=e=>{let t={...$s,...e},n=Ir(Pn(t,`value`)),{type:r,orientation:i,loop:a,rovingFocus:o,disabled:s}=n,c=t.defaultValue?t.defaultValue:t.type===`single`?void 0:[],l=dr(t.value??N(c),t?.onValueChange),u=Hn(ec(),{stores:i,returned:e=>({role:`group`,"data-orientation":e})}),d=Hn(ec(`item`),{stores:[l,s,i,r],returned:([e,t,n,r])=>i=>{let a=typeof i==`string`?i:i.value,o=typeof i!=`string`&&!!i.disabled,s=t||o,c=Array.isArray(e)?e.includes(a):e===a,l=r===`single`,u=r===`multiple`||r===void 0;return{disabled:Mn(s),pressed:c,"data-orientation":n,"data-disabled":Mn(s),"data-state":c?`on`:`off`,"data-value":a,"aria-pressed":u?c:void 0,"aria-checked":l?c:void 0,type:`button`,role:l?`radio`:void 0,tabindex:c?0:-1}},action:e=>{let t=X,n=e.closest(tc());if(!Q(n))return{};let r=Array.from(n.querySelectorAll(tc(`item`))),s=l.get();!(Array.isArray(s)?s.length>0:s)&&r[0]===e&&(e.tabIndex=0);function c(){return{value:e.dataset.value,disabled:e.dataset.disabled===`true`}}function u(){let{value:e,disabled:t}=c();e===void 0||t||l.update(t=>Array.isArray(t)?t.includes(e)?t.filter(t=>t!==e):[...t,e]:t===e?void 0:e)}return t=Nn(nr(e,`click`,()=>{u()}),nr(e,`keydown`,e=>{if(e.key===$.SPACE||e.key===$.ENTER){e.preventDefault(),u();return}if(!o.get())return;let t=e.currentTarget;if(!Q(t))return;let n=t.closest(tc());if(!Q(n))return;let r=Array.from(n.querySelectorAll(tc(`item`)+`:not([data-disabled])`)).filter(e=>Q(e)),s=r.indexOf(t),c=lr(t),l=i.get(),d={horizontal:c===`rtl`?$.ARROW_LEFT:$.ARROW_RIGHT,vertical:$.ARROW_DOWN}[l??`horizontal`],f={horizontal:c===`rtl`?$.ARROW_RIGHT:$.ARROW_LEFT,vertical:$.ARROW_UP}[l??`horizontal`],p=a.get();if(e.key===d){e.preventDefault();let t=s+1;t>=r.length&&p?Lr(r[0]):Lr(r[t])}else if(e.key===f){e.preventDefault();let t=s-1;Lr(t<0&&p?r[r.length-1]:r[t])}else e.key===$.HOME?(e.preventDefault(),Lr(r[0])):e.key===$.END&&(e.preventDefault(),Lr(r[r.length-1]))})),{destroy:t}}}),f=A(l,e=>t=>Array.isArray(e)?e.includes(t):e===t);return{elements:{root:u,item:d},states:{value:l},helpers:{isPressed:f},options:n}},{name:rc,selector:ic}=Z(`toolbar`),{name:ac}=Z(`tooltip`),{name:oc}=Z(`tree-view`),sc=new Set([`$$slots`,`$$events`,`$$legacy`]),cc=y(`<svg>
5<path fill="currentColor" d="M15.05 8.537L18.585 5H14V3h8v8h-2V6.414l-3.537 3.537a7.5 7.5 0 1 1-1.414-1.414M10.5 20a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11"></path></svg>`);function lc(e,t){let n=U(t,sc);var r=cc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var uc=new Set([`$$slots`,`$$events`,`$$legacy`]),dc=y(`<svg><path fill="currentColor" d="M14 4.438A2.437 2.437 0 0 0 16.438 2h1.125A2.437 2.437 0 0 0 20 4.438v1.125A2.437 2.437 0 0 0 17.563 8h-1.125A2.437 2.437 0 0 0 14 5.563zM1 11a6 6 0 0 0 6-6h2a6 6 0 0 0 6 6v2a6 6 0 0 0-6 6H7a6 6 0 0 0-6-6zm3.876 1A8.04 8.04 0 0 1 8 15.124A8.04 8.04 0 0 1 11.124 12A8.04 8.04 0 0 1 8 8.876A8.04 8.04 0 0 1 4.876 12m12.374 2A3.25 3.25 0 0 1 14 17.25v1.5A3.25 3.25 0 0 1 17.25 22h1.5A3.25 3.25 0 0 1 22 18.75v-1.5A3.25 3.25 0 0 1 18.75 14z"></path></svg>`);function fc(e,t){let n=U(t,uc);var r=dc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var pc=new Set([`$$slots`,`$$events`,`$$legacy`]),mc=y(`<svg><path fill="currentColor" d="M11 15.934A7.501 7.501 0 0 1 12 1a7.5 7.5 0 0 1 1 14.934V18h5v2h-5v4h-2v-4H6v-2h5zM12 14a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11"></path></svg>`);function hc(e,t){let n=U(t,pc);var r=mc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var gc=u(`<fieldset><div class="label svelte-10lt3nf"> <span class="instructions svelte-10lt3nf">select all that apply</span></div> <div class="toggleWrapper svelte-10lt3nf"><div class="toggleGroup svelte-10lt3nf"><button><!> men</button> <button><!> women</button> <button><!> other</button></div> <!></div></fieldset>`);function _c(e,t){me(t,!0);let n=()=>B(u,`$item`,o),r=()=>B(l,`$root`,o),[o,s]=E(),c=ce(t,`value`,15),{elements:{root:l,item:u},states:{value:d}}=nc({type:`multiple`,onValueChange:({next:e})=>(c(e),e)});d.set(c());let f=L(()=>n()(`male`)),m=L(()=>n()(`female`)),h=L(()=>n()(`other`));var g=gc();K(g,()=>({...r(),class:`genderSelect`,name:t.name}),void 0,void 0,void 0,`svelte-10lt3nf`);var _=R(g),v=R(_);v.nodeValue=`Vocals include `,k(),J(_);var y=P(_,2),S=R(y),C=R(S);K(C,()=>({...x(f),"aria-label":`Select men`}),void 0,void 0,void 0,`svelte-10lt3nf`),lc(R(C),{}),k(),J(C),q(C,e=>x(f).action?.(e));var w=P(C,2);K(w,()=>({...x(m),"aria-label":`Select women`}),void 0,void 0,void 0,`svelte-10lt3nf`),hc(R(w),{}),k(),J(w),q(w,e=>x(m).action?.(e));var D=P(w,2);K(D,()=>({...x(h),"aria-label":`Select other`}),void 0,void 0,void 0,`svelte-10lt3nf`),fc(R(D),{}),k(),J(D),q(D,e=>x(h).action?.(e)),J(S);var A=P(S,2),j=e=>{var n=b(),r=G(n);ae(r,17,()=>t.errors,i,(e,t)=>{bn(e,{get error(){return x(t)}})}),a(e,n)};p(A,e=>{t.errors&&e(j)}),J(y),J(g),q(g,e=>r().action?.(e)),V(()=>O(_,`aria-invalid`,t.errors?`true`:void 0)),a(e,g),T(),s()}var vc=y(`<svg xmlns="http://www.w3.org/2000/svg" width="1.2em" height="1.2em" viewBox="0 0 24 24" fill="none"><path d="M22 16H19V13H17V16H14V18H17V21H19V18H22V16Z" fill="currentColor"></path><path d="M9 13.5351V3H17V6H11V17C11 19.2091 9.2091 21 7 21C4.79086 21 3 19.2091 3 17C3 14.7909 4.79086 13 7 13C7.7286 13 8.4117 13.1948 9 13.5351Z" fill="currentColor"></path></svg>`);function yc(e){var t=vc();a(e,t)}function bc(e){let t=e-1;return t*t*t+1}function xc(e,t,n){return Number.isNaN(t)?``:`${e}: ${n*t}px;`}function Sc(e,{delay:t=0,duration:n=400,easing:r=bc,axis:i=`y`}={}){let a=getComputedStyle(e),o=+a.opacity,s=i===`y`?`height`:`width`,c=parseFloat(a[s]),l=i===`y`?[`top`,`bottom`]:[`left`,`right`],u=l.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),d=parseFloat(a[`padding${u[0]}`]),f=parseFloat(a[`padding${u[1]}`]),p=parseFloat(a[`margin${u[0]}`]),m=parseFloat(a[`margin${u[1]}`]),h=parseFloat(a[`border${u[0]}Width`]),g=parseFloat(a[`border${u[1]}Width`]);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(e*20,1)*o};`+xc(s,c,e)+xc(`padding-${l[0]}`,d,e)+xc(`padding-${l[1]}`,f,e)+xc(`margin-${l[0]}`,p,e)+xc(`margin-${l[1]}`,m,e)+xc(`border-${l[0]}-width`,h,e)+xc(`border-${l[1]}-width`,g,e)+`min-${s}: 0`}}function Cc(e,{delay:t=0,duration:n=400,easing:r=bc,start:i=0,opacity:a=0}={}){let o=getComputedStyle(e),s=+o.opacity,c=o.transform===`none`?``:o.transform,l=1-i,u=s*(1-a);return{delay:t,duration:n,easing:r,css:(e,t)=>` 6 transform: ${c} scale(${1-l*t}); 7 opacity: ${s-u*t} 8 `}}var wc=e(Ue()),Tc=`https://itunes.apple.com`,Ec=async(e,t,n)=>{let r=new URLSearchParams({country:`US`,...t}),i=await fetch(`${Tc}/${e}?${r}`,{signal:n});if(!i.ok)throw Error(`iTunes ${i.status}: ${e}?${r}`);let{results:a}=await i.json();return a.flatMap(e=>{let t=He(e.artworkUrl100??``);return e.wrapperType===`track`&&e.kind===`song`&&t?[{...e,artwork:t}]:[]})},Dc=(e,t=10,n)=>Ec(`search`,{term:e,entity:`song`,limit:String(t)},n),Oc=e=>Ec(`lookup`,{id:e.join(`,`)}),kc=e=>{let t;try{t=new URL(e.trim())}catch{return null}let n=t.hostname.toLowerCase();if(n!==`music.apple.com`&&!n.endsWith(`.music.apple.com`))return null;let r=t.searchParams.get(`i`)??t.pathname.match(/\/song\/[^/]+\/(\d+)/)?.[1];return r&&/^\d+$/.test(r)?r:null},Ac=e=>Number.parseInt(e.releaseDate.slice(0,4),10),jc=e=>e.collectionName.replace(/ - (Single|EP)$/,``),Mc=e=>Ke(e.trackName),Nc=/\blive\b/i,Pc=e=>Nc.test(e.trackName)||Nc.test(e.collectionName),Fc=(e,t)=>{let n=qe(e.trackName),r=Ac(e),i=Pc(e);return t.filter(t=>t.artistId===e.artistId&&qe(t.trackName)===n&&Ac(t)<r&&(i||!Pc(t))).sort((e,t)=>
8e.releaseDate.localeCompare(t.releaseDate))[0]??null},Ic=async e=>Fc(e,await Dc(`${Mc(e)} ${e.artistName}`,50)),Lc=new Set([`$$slots`,`$$events`,`$$legacy`]),Rc=y(`<svg><path fill="currentColor" d="m12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0m-8.66 16h15.588L12 5.5zM11 16h2v2h-2zm0-7h2v5h-2z"></path></svg>`);function zc(e,t){let n=U(t,Lc);var r=Rc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var Bc=new Set([`$$slots`,`$$events`,`$$legacy`]),Vc=y(`<svg><path fill="currentColor" d="m10 15.17l9.192-9.191l1.414 1.414L10 17.999l-6.364-6.364l1.414-1.414z"></path></svg>`);function Hc(e,t){let n=U(t,Bc);var r=Vc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var Uc=new Set([`$$slots`,`$$events`,`$$legacy`]),Wc=y(`<svg><path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m0-9.414l2.828-2.829l1.415 1.415L13.414 12l2.829 2.828l-1.415 1.415L12 13.414l-2.828 2.829l-1.415-1.415L10.586 12L7.757 9.172l1.415-1.415z"></path></svg>`);function Gc(e,t){let n=U(t,Uc);var r=Wc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var Kc=new Set([`$$slots`,`$$events`,`$$legacy`]),qc=y(`<svg><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.385-4.5H8v2H2v-6h2V6a9.99 9.99 0 0 1 8-4m1 5v4.585l3.243 3.243l-1.415 1.415L11 12.413V7z"></path></svg>`);function Jc(e,t){let n=U(t,Kc);var r=qc();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var Yc=y(`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3" transform="translate(2 0)"></polygon></svg>`),Xc=y(`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>`),Zc=u(`<div class="progress svelte-1k2chq6" role="progressbar" aria-valuemin="0" aria-valuemax="100"><audio><source type="audio/mpeg"/></audio> <button><!></button></div>`);function Qc(e,t){me(t,!0);let n=z(`paused`),r,i=z(0),o=z(0),s=L(()=>x(i)/x(o)*100),c=()=>{r.play(),H(n,`playing`)},l=()=>{r.pause(),r.currentTime=0,H(n,`paused`)},u=e=>{e.preventDefault(),x(n)===`paused`?c():l()};fe(()=>{x(s)>99.5&&l()});var d=Zc(),m=R(d),h=M(m);se(m,e=>r=e,()=>r);var g=P(m,2);let v;var y=R(g),b=e=>{var t=Yc();a(e,t)},S=e=>{var t=Xc();a(e,t)};p(y,e=>{x(n)===`paused`?e(b):e(S,-1)}),J(g),J(d),V((e,r)=>{O(d,`aria-valuenow`,e),he(d,r),O(m,`title`,t.title),O(h,`src`,t.src),v=_(g,1,`playPauseButton svelte-1k2chq6`,null,v,{playing:x(n)===`playing`}),O(g,`aria-label`,x(n)===`paused`?`Play`:`Pause`)},[()=>parseFloat(x(s).toFixed(2)),()=>x(n)===`playing`?`background: conic-gradient(var(--color-text) ${x(s).toFixed(2)}%, transparent 0)`:void 0]),I(m,()=>x(i),e=>H(i,e)),le(`duration`,`durationchange`,m,e=>H(o,e)),f(`click`,g,u),a(e,d),T()}l([`click`]);var $c=u(`<div class="banner svelte-111k1wb"><div class="bannerContents svelte-111k1wb"><!> <div class="bannerLabel svelte-111k1wb"><strong class="bannerTitle"> </strong> <p class="svelte-111k1wb"><a class="svelte-111k1wb"> </a></p></div></div></div>`),el=u(`<div class="bannerContents svelte-111k1wb"><!> <div class="bannerLabel svelte-111k1wb"><strong class="bannerTitle">Earliest release available</strong></div></div>`),tl=u(`<div class="bannerContents svelte-111k1wb"><!> <div class="bannerLabel svelte-111k1wb"><strong class="bannerTitle">Thereâs an earlier release!</strong> <p class="svelte-111k1wb"> <strong> </strong> <strong> </strong> on <strong> </strong>.</p></div></div> <div class="bannerActions svelte-111k1wb"><button class="secondary svelte-111k1wb">Keep this release</button> <button class="primary svelte-111k1wb">Use earlier release</button></div>`,1),nl=u(`<div class="banner svelte-111k1wb"><!></div>`),rl=u(`<div class="selectedSong svelte-111k1wb"><div class="selectedSongContents svelte-111k1wb"><div class="selectedAlbum svelte-111k1wb"><img alt="" class="svelte-111k1wb"/></div> <div class="selectedLabel svelte-111k1wb"><div class="selectedName svelte-111k1wb"> </div> <div> </div> <div class="selectedAlbumNameAndYear"><em> </em> </div></div> <!> <button class="clearSelection svelte-111k1wb" aria-label="Remove selection"><!></button></div> <!></div>`);function il(e,t){me(t,!0),Ge.default.extend(wc.default);let n=z(!1),r=z(!1),i=e=>{e.preventDefault(),H(n,!0)},o=e=>{e.preventDefault(),t.onUseEarlierRelease(),H(r,!0)};
8var c=rl(),l=R(c),u=R(l),d=M(u),m=P(u,2),h=R(m),_=M(h,!0),v=P(h,2),y=M(v,!0),b=P(v,2),S=R(b),C=M(S,!0),w=P(S);J(b),J(m);var E=P(m,2),D=e=>{{let n=L(()=>Y(Mc(t.song)));Qc(e,{get src(){return t.song.previewUrl},get title(){return x(n)}})}};p(E,e=>{t.song.previewUrl&&e(D)});var A=P(E,2);Gc(R(A),{}),J(A),J(l);var j=P(l,2),ee=e=>{var n=$c(),r=R(n),i=R(r);zc(i,{});var o=P(i,2),c=R(o),l=M(c),u=P(c,2),d=R(u),f=M(d,!0);J(u),J(o),J(r),J(n),V((e,n)=>{g(l,`This cover was already submitted ${e??``}`),O(d,`href`,`/cover/${t.existingCover.slug}`),g(f,n)},[()=>(0,Ge.default)(t.existingCover.created_at).fromNow(),()=>xe({originalName:t.existingCover.original.name,originalArtists:t.existingCover.original.artists,coverArtists:t.existingCover.cover.artists})]),s(3,n,()=>Sc),a(e,n)},te=e=>{var n=nl(),c=R(n),l=e=>{var t=el();Hc(R(t),{}),k(2),J(t),a(e,t)},u=e=>{var n=tl(),r=G(n),s=R(r);Jc(s,{});var c=P(s,2),l=P(R(c),2),u=R(l),d=P(u),p=M(d,!0),m=P(d),h=P(m),_=M(h,!0),v=P(h,2),y=M(v,!0);k(),J(l),J(c),J(r);var b=P(r,2),x=R(b),S=P(x,2);J(b),V((e,n,r,i)=>{g(u,`A version of ${t.earlierRelease.artistName??``}âs `),g(p,e),g(m,` was released ${n??``} in `),g(_,r),g(y,i)},[()=>Mc(t.earlierRelease),()=>ye(t.song.releaseDate,t.earlierRelease.releaseDate),()=>Ac(t.earlierRelease),()=>jc(t.earlierRelease)]),f(`click`,x,i),f(`click`,S,o),a(e,n)};p(c,e=>{x(r)?e(l):e(u,-1)}),J(n),s(3,n,()=>Sc),a(e,n)};p(j,e=>{t.existingCover?e(ee):t.earlierRelease&&!x(n)&&e(te,1)}),J(c),V((e,n,r,i,a)=>{O(d,`src`,e),O(d,`srcset`,n),g(_,r),g(y,t.song.artistName),g(C,i),g(w,` · 9 ${a??``}`)},[()=>Be(t.song.artwork,160),()=>Ve(t.song.artwork,160),()=>Y(Mc(t.song)),()=>Y(jc(t.song)),()=>Ac(t.song)]),f(`click`,A,function(...e){t.onClearSelection?.apply(this,e)}),a(e,c),T()}l([`click`]);var al=new Set([`$$slots`,`$$events`,`$$legacy`]),ol=y(`<svg><path fill="currentColor" d="M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364"></path></svg>`);function sl(e,t){let n=U(t,al);var r=ol();K(r,()=>({viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`,...n})),a(e,r)}var cl=u(`<li class="status svelte-11u7vcj">Couldnât reach Apple Music. Keep typing or try again in a moment.</li>`),ll=u(`<li class="status svelte-11u7vcj">Searchingâ¦</li>`),ul=u(`<li><img class="resultAlbum svelte-11u7vcj" alt=""/> <div class="resultLabel svelte-11u7vcj"><div class="resultName svelte-11u7vcj"> </div> <div class="resultLabelDetails svelte-11u7vcj"><div class="resultArtist svelte-11u7vcj"> <span class="resultYear"> </span></div></div></div></li>`),dl=u(`<li class="status svelte-11u7vcj"> </li>`),fl=u(`<ul><!> <!></ul>`),pl=u(`<div><label><div><!></div> <input/></label> <!></div>`),ml=u(`<fieldset class="svelte-11u7vcj"><!> <!></fieldset>`);function hl(e,t){me(t,!0);let n=()=>B(U,`$inputValue`,h),r=()=>B(ue,`$touchedInput`,h),o=()=>B(oe,`$label`,h),c=()=>B(re,`$input`,h),l=()=>B(I,`$menu`,h),u=()=>B(le,`$open`,h),d=()=>B(ie,`$option`,h),f=()=>B(pe,`$isHighlighted`,h),m=()=>B(W,`$isSelected`,h),[h,v]=E(),y=ce(t,`value`,15),S=z(null),C=z(null),D=z(void 0),k=z(``),A=z(!1),j=z(!1),ee=be(350),te=be(),N=new Map,ne=z(void 0),F=()=>{document.activeElement===x(ne)&&le.set(!0)},{elements:{menu:I,input:re,option:ie,label:oe},states:{open:le,inputValue:U,touchedInput:ue,selected:de},helpers:{isSelected:W,isHighlighted:pe}}=Ss({preventScroll:!1,positioning:{placement:`bottom`,flip:!1,sameWidth:!0},onSelectedChange:({next:e})=>(e&&(H(S,null),H(C,null),te(()=>{let t=e.value;he(t,Ic(t),e=>{H(S,e,!0)}),he(t,fetch(`/api/getCover?appleId=${t.trackId}`).then(e=>e.ok?e.json():null),e=>{H(C,e,!0)})}),y(e.value)),e)});de.set(y()?{value:y()}:void 0);let he=async(e,t,n)=>{try{let r=await t;y()?.trackId===e.trackId&&n(r)}catch(e){e instanceof Error&&console.error(e.message)}},ge,_e=(e,t)=>{H(D,t,!0),H(k,e,!0),H(A,!1),H(j,!1),F()},ve=async e=>{ge?.abort();let t=new AbortController;ge=t;try{let n=kc(e);if(n){let[t]=await Oc([n]);t?de.set({value:t}):_e(e,[]),H(A,!1);return}let r=await Dc(e,10,t.signal);N.set(e.toLowerCase(),r),ge===t&&_e(e,r)}catch(e){if(t.signal.aborted)return;H(A,!1),H(j,!0),F(),e instanceof Error&&console.error(e.message)}},ye=``,Y=e=>{if(e===ye)return;if(ye=e,ee.cancel(),ge?.abort(),H(j,!1),e.length<2){H(A,!1),H(D,void 0);return}let t=N.get(e.toLowerCase());if(t){_e(e,t);return}H(A,!0),ee(()=>ve(e))},xe=()=>{H(C,null),H(S,null),ye=``,H(D,void 0),U.set(``),y(void 0)},Se=()=>{x(S)&&y(x(S))};fe(()=>{let e=n().trim().replace(/\s+/g,` `);r()&&!y()&&Y(e)});var Ce=ml(),we=R(Ce),Te=e=>{il(e,{get song(){return y()},get existingCover(){return x(C)},get earlierRelease(){return x(S)},onUseEarlierRelease:Se,onClearSelection:xe})},Ee=e=>{var n=pl();let r;var i=R(n);K(i,()=>({...o(),"aria-label":`Search`,class:`inputWrapper`}),void 0,void 0,void 0,`svelte-11u7vcj`);var h=R(i);let v;var S=R(h),C=e=>{sl(e,{})},T=e=>{ze(e,{})};p(S,e=>
9{x(A)?e(C):e(T,-1)}),J(h);var E=P(h,2);K(E,()=>({...c(),class:`searchInput`,type:`search`,placeholder:`Search songs or paste Apple Music URL`,"aria-invalid":t.errors?`true`:void 0,"aria-busy":x(A)}),void 0,void 0,void 0,`svelte-11u7vcj`,!0),q(E,e=>c().action?.(e)),se(E,e=>H(ne,e),()=>x(ne)),J(i),q(i,e=>o().action?.(e));var ee=P(i,2),te=e=>{var t=fl();K(t,()=>({...l(),class:`searchResults`,[w]:{stale:x(A)&&x(D)}}),void 0,void 0,void 0,`svelte-11u7vcj`);var n=R(t),r=e=>{var t=cl();a(e,t)},i=e=>{var t=ll();a(e,t)};p(n,e=>{x(j)?e(r):x(A)&&!x(D)&&e(i,1)});var o=P(n,2);ae(o,17,()=>x(D)??[],e=>e.trackId,(e,t)=>{let n=L(()=>d()({value:x(t),label:x(t).trackName,disabled:!1}));var r=ul();K(r,(e,t)=>({...x(n),class:`result`,[w]:{highlighted:e,selected:t}}),[()=>f()(x(t)),()=>m()(x(t))],void 0,void 0,`svelte-11u7vcj`);var i=R(r),o=P(i,2),s=R(o),c=M(s,!0),l=P(s,2),u=R(l),p=R(u),h=P(p),_=M(h,!0);J(u),J(l),J(o),J(r),q(r,e=>x(n).action?.(e)),V((e,n,r)=>{O(i,`src`,e),O(i,`srcset`,n),g(c,x(t).trackName),g(p,`${x(t).artistName??``} 10 · `),g(_,r)},[()=>Be(x(t).artwork,64),()=>Ve(x(t).artwork,64),()=>Ac(x(t))]),a(e,r)},e=>{var t=b(),n=G(t),r=e=>{var t=dl(),n=M(t);V(()=>g(n,`No songs found for â${x(k)??``}â`)),a(e,t)};p(n,e=>{!x(A)&&!x(j)&&e(r)}),a(e,t)}),J(t),q(t,e=>l().action?.(e)),s(3,t,()=>Cc,()=>({duration:200,start:.9})),a(e,t)};p(ee,e=>{u()&&(x(D)||x(A)||x(j))&&e(te)}),J(n),V(()=>{r=_(n,1,`searchWrapper svelte-11u7vcj`,null,r,{hidden:!!y()}),v=_(h,1,`searchIcon svelte-11u7vcj`,null,v,{spinning:x(A)})}),a(e,n)};p(we,e=>{y()?e(Te):e(Ee,-1)});var De=P(we,2),Oe=e=>{var n=b(),r=G(n);ae(r,17,()=>t.errors,i,(e,t)=>{bn(e,{get error(){return x(t)}})}),a(e,n)};p(De,e=>{t.errors&&e(Oe)}),J(Ce),V(()=>O(Ce,`name`,t.name)),a(e,Ce),T(),v()}var gl=u(`<li class="step svelte-zv7veq"><h2 class="stepTitle svelte-zv7veq"> </h2> <div class="stepContent svelte-zv7veq"><!></div></li>`);function _l(e,t){var n=gl(),r=R(n),i=M(r,!0),s=P(r,2),l=R(s);c(l,()=>t.children??o),J(s),J(n),V(()=>g(i,t.title)),a(e,n)}var vl=u(`<ol class="steps svelte-d1339f"><!></ol>`);function yl(e,t){var n=vl(),r=R(n);c(r,()=>t.children??o),J(n),a(e,n)}var bl=u(`<meta name="description" content="Upload a fresh gender-swapped cover to the catalogue."/> <link rel="canonical"/>`,1),xl=u(`<!> <!>`,1),Sl=u(`<div class="banner svelte-1ax4549"><div class="icon svelte-1ax4549"><!></div> <div class="text"><strong class="title">Genderswap.fm is for gender-swapped covers.</strong> Same-gender 11 covers will be hidden by default.</div></div>`),Cl=u(`<!> <!> <!>`,1),wl=u(`<label><div class="label svelte-1ax4549">Description <span class="optional svelte-1ax4549">optional</span></div> <textarea name="description" class="input svelte-1ax4549" placeholder="What's different about this cover?"></textarea> <div> </div></label> <label><div class="label svelte-1ax4549">Your first name <span class="optional svelte-1ax4549">optional</span></div> <input name="contributor" type="text" class="input svelte-1ax4549" placeholder="Agnetha"/></label> <!>`,1),Tl=u(`<div class="spinner svelte-1ax4549"><!></div>`),El=u(`<!> <form class="submitForm svelte-1ax4549" method="POST"><h1 class="header svelte-1ax4549">Add a cover</h1> <!> <button class="button submitButton svelte-1ax4549" type="submit"><!> Submit</button></form>`,1);function Dl(e,t){me(t,!0);let n=()=>B(d,`$form`,l),o=()=>B(m,`$errors`,l),s=()=>B(y,`$submitting`,l),c=()=>B(S,`$delayed`,l),[l,u]=E(),{form:d,errors:m,enhance:h,submitting:y,delayed:S}=Zt(t.data.form,{dataType:`json`,scrollToError:`smooth`});de(d,W(n).contributor=window.localStorage.getItem(`contributor`)??``,W(n));let C=z(null),w=z(null),D=L(()=>n().original?.artwork),A=L(()=>n().cover?.artwork),ee=(e,t)=>{if(t(null),!e)return;let n=!0;return hn(Be(e,64,`jpg`)).then(e=>n&&t(e)).catch(()=>{}),()=>{n=!1}};fe(()=>ee(x(D),e=>H(C,e,!0))),fe(()=>ee(x(A),e=>H(w,e,!0))),fe(()=>_e(x(w)??x(C)));let te=L(()=>x(w)&&x(C)&&x(w)!==x(C)?[x(w),x(C)]:null),N=e=>{de(d,W(n).description=e.currentTarget.value,W(n)),de(d,W(n).description=n().description.replace(/\r?\n|\r/g,` `).trimStart(),W(n))},I=e=>{de(d,W(n).contributor=e.currentTarget.value,W(n)),de(d,W(n).contributor=n().c
11ontributor.trimStart(),W(n))},re=()=>{window.localStorage.setItem(`contributor`,n().contributor)};var oe=El();v(`1ax4549`,e=>{var t=bl(),n=P(G(t),2);V(()=>O(n,`href`,`${r}${Le.url.pathname}`)),ue(()=>{j.title=`Add a cover`}),a(e,t)});var se=G(oe),ce=e=>{var t=b(),n=G(t);ie(n,()=>x(te).join(),e=>{We(e,{get colors(){return x(te)}})}),a(e,t)};p(se,e=>{x(te)&&e(ce)});var le=P(se,2),U=P(R(le),2);yl(U,{children:(e,t)=>{var r=Cl(),s=G(r);_l(s,{title:`Select the cover`,children:(e,t)=>{var r=xl(),i=G(r);hl(i,{name:`cover`,get errors(){return o().cover},get value(){return n().cover},set value(e){de(d,W(n).cover=e,W(n))}});var s=P(i,2);{let e=L(()=>o().coverGenders?._errors);_c(s,{name:`coverGenders`,get errors(){return x(e)},get value(){return n().coverGenders},set value(e){de(d,W(n).coverGenders=e,W(n))}})}a(e,r)},$$slots:{default:!0}});var c=P(s,2);_l(c,{title:`Select the original`,children:(e,t)=>{var r=Cl(),i=G(r);hl(i,{name:`original`,get errors(){return o().original},get value(){return n().original},set value(e){de(d,W(n).original=e,W(n))}});var s=P(i,2);{let e=L(()=>o().originalGenders?._errors);_c(s,{name:`originalGenders`,get errors(){return x(e)},get value(){return n().originalGenders},set value(e){de(d,W(n).originalGenders=e,W(n))}})}var c=P(s,2),l=e=>{var t=b(),r=G(t),i=e=>{var t=Sl(),n=R(t);zc(R(n),{}),J(n),k(2),J(t),a(e,t)},o=L(()=>JSON.stringify(n().originalGenders)===JSON.stringify(n().coverGenders));p(r,e=>{x(o)&&e(i)}),a(e,t)};p(c,e=>{n().originalGenders.length===1&&n().coverGenders.length===1&&e(l)}),a(e,r)},$$slots:{default:!0}}),_l(P(c,2),{title:`Add thoughts`,children:(e,t)=>{var r=wl(),s=G(r),c=P(R(s),2);F(c),ue(()=>ne(c,()=>n().description,e=>de(d,W(n).description=e,W(n)))),q(c,e=>$e?.(e));var l=P(c,2);let u;var m=M(l,!0);J(s);var h=P(s,2),v=P(R(h),2);ge(v),J(h);var y=P(h,2),S=e=>{var t=b(),n=G(t);ae(n,1,()=>o()._errors,i,(e,t)=>{bn(e,{get error(){return x(t)},banner:!0})}),a(e,t)};p(y,e=>{o()?._errors&&e(S)}),V(e=>{u=_(l,1,`helpText svelte-1ax4549`,null,u,{warning:n().description&&n().description.length>160}),g(m,e),O(v,`maxlength`,24)},[()=>ve(n().description??``,160)]),f(`input`,c,N),f(`input`,v,I),ne(v,()=>n().contributor,e=>de(d,W(n).contributor=e,W(n))),a(e,r)},$$slots:{default:!0}}),a(e,r)},$$slots:{default:!0}});var pe=P(U,2),K=R(pe),he=e=>{var t=Tl();sl(R(t),{}),J(t),a(e,t)},ye=e=>{yc(e,{})};p(K,e=>{c()?e(he):e(ye,-1)}),k(),J(pe),J(le),q(le,e=>h?.(e)),V(()=>pe.disabled=s()),f(`click`,pe,re),a(e,oe),T(),u()}l([`input`,`click`]);export{Dl as component};
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.