react-semaphor 0.0.147 → 0.0.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var mi=Object.defineProperty;var hi=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ar=(e,t,r)=>(hi(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-YZr6TBMT.js");require("react");require("react-dom");var eo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},yi=Object.keys(eo).join("|"),vi=new RegExp(yi,"g");function bi(e){return e.replace(vi,t=>eo[t])}var de={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function lr(e,t,r){var o;if(r=r||{},r.threshold=(o=r.threshold)!=null?o:de.MATCHES,!r.accessors){const l=cr(e,t,r);return{rankedValue:e,rank:l,accessorIndex:-1,accessorThreshold:r.threshold,passed:l>=r.threshold}}const i=Ci(e,r.accessors),a={rankedValue:e,rank:de.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let l=0;l<i.length;l++){const s=i[l];let c=cr(s.itemValue,t,r);const{minRanking:u,maxRanking:h,threshold:g=r.threshold}=s.attributes;c<u&&c>=de.MATCHES?c=u:c>h&&(c=h),c=Math.min(c,h),c>=g&&c>a.rank&&(a.rank=c,a.passed=!0,a.accessorIndex=l,a.accessorThreshold=g,a.rankedValue=s.itemValue)}return a}function cr(e,t,r){return e=ur(e,r),t=ur(t,r),t.length>e.length?de.NO_MATCH:e===t?de.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?de.EQUAL:e.startsWith(t)?de.STARTS_WITH:e.includes(` ${t}`)?de.WORD_STARTS_WITH:e.includes(t)?de.CONTAINS:t.length===1?de.NO_MATCH:pi(e).includes(t)?de.ACRONYM:xi(e,t))}function pi(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function xi(e,t){let r=0,o=0;function i(c,u,h){for(let g=h,f=u.length;g<f;g++)if(u[g]===c)return r+=1,g+1;return-1}function a(c){const u=1/c,h=r/t.length;return de.MATCHES+h*u}const l=i(t[0],e,0);if(l<0)return de.NO_MATCH;o=l;for(let c=1,u=t.length;c<u;c++){const h=t[c];if(o=i(h,e,o),!(o>-1))return de.NO_MATCH}const s=o-l;return a(s)}function ur(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=bi(e)),e}function $i(e,t){let r=t;typeof t=="object"&&(r=t.accessor);const o=r(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function Ci(e,t){const r=[];for(let o=0,i=t.length;o<i;o++){const a=t[o],l=wi(a),s=$i(e,a);for(let c=0,u=s.length;c<u;c++)r.push({itemValue:s[c],attributes:l})}return r}var dr={maxRanking:1/0,minRanking:-1/0};function wi(e){return typeof e=="function"?dr:{...dr,...e}}var Si={data:""},Ei=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Si,ki=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_i=/\/\*[^]*?\*\/| +/g,fr=/\n+/g,Ze=(e,t)=>{let r="",o="",i="";for(let a in e){let l=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+l+";":o+=a[1]=="f"?Ze(l,a):a+"{"+Ze(l,a[1]=="k"?"":t)+"}":typeof l=="object"?o+=Ze(l,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):a):l!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ze.p?Ze.p(a,l):a+":"+l+";")}return r+(t&&i?t+"{"+i+"}":i)+o},Ie={},to=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+to(e[r]);return t}return e},Ai=(e,t,r,o,i)=>{let a=to(e),l=Ie[a]||(Ie[a]=(c=>{let u=0,h=11;for(;u<c.length;)h=101*h+c.charCodeAt(u++)>>>0;return"go"+h})(a));if(!Ie[l]){let c=a!==e?e:(u=>{let h,g,f=[{}];for(;h=ki.exec(u.replace(_i,""));)h[4]?f.shift():h[3]?(g=h[3].replace(fr," ").trim(),f.unshift(f[0][g]=f[0][g]||{})):f[0][h[1]]=h[2].replace(fr," ").trim();return f[0]})(e);Ie[l]=Ze(i?{["@keyframes "+l]:c}:c,r?"":"."+l)}let s=r&&Ie.g?Ie.g:null;return r&&(Ie.g=Ie[l]),((c,u,h,g)=>{g?u.data=u.data.replace(g,c):u.data.indexOf(c)===-1&&(u.data=h?c+u.data:u.data+c)})(Ie[l],t,o,s),l},Mi=(e,t,r)=>e.reduce((o,i,a)=>{let l=t[a];if(l&&l.call){let s=l(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;l=c?"."+c:s&&typeof s=="object"?s.props?"":Ze(s,""):s===!1?"":s}return o+i+(l??"")},"");function k(e){let t=this||{},r=e.call?e(t.p):e;return Ai(r.unshift?r.raw?Mi(r,[].slice.call(arguments,1),t.p):r.reduce((o,i)=>Object.assign(o,i&&i.call?i(t.p):i),{}):r,Ei(t.target),t.g,t.o,t.k)}k.bind({g:1});k.bind({k:1});function no(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=no(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function M(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=no(e))&&(o&&(o+=" "),o+=t);return o}var gr=()=>{};function Pi(e,t){const r=n.untrack(e),{onChange:o}=t;let i=new Set(t.appear?void 0:r);const a=new WeakSet,[l,s]=n.createSignal([],{equals:!1}),[c]=n.useTransition(),u=t.exitMethod==="remove"?gr:g=>{s(f=>(f.push.apply(f,g),f));for(const f of g)a.delete(f)},h=t.exitMethod==="remove"?gr:t.exitMethod==="keep-index"?(g,f,m)=>g.splice(m,0,f):(g,f)=>g.push(f);return n.createMemo(g=>{const f=l(),m=e();if(m[n.$TRACK],n.untrack(c))return c(),g;if(f.length){const d=g.filter(y=>!f.includes(y));return f.length=0,o({list:d,added:[],removed:[],unchanged:d,finishRemoved:u}),d}return n.untrack(()=>{const d=new Set(m),y=m.slice(),v=[],x=[],p=[];for(const C of m)(i.has(C)?p:v).push(C);let b=!v.length;for(let C=0;C<g.length;C++){const $=g[C];d.has($)||(a.has($)||(x.push($),a.add($)),h(y,$,C)),b&&$!==y[C]&&(b=!1)}return!x.length&&b?g:(o({list:y,added:v,removed:x,unchanged:p,finishRemoved:u}),i=d,y)})},t.appear?[]:r.slice())}var Fi=e=>e!=null,Di=e=>e.filter(Fi);function An(e){return(...t)=>{for(const r of e)r&&r(...t)}}function Ii(e){return(...t)=>{for(let r=e.length-1;r>=0;r--){const o=e[r];o&&o(...t)}}}var w=e=>typeof e=="function"&&!e.length?e():e,vn=e=>Array.isArray(e)?e:e?[e]:[];function Li(e,...t){return typeof e=="function"?e(...t):e}var qi=n.onCleanup;function Oi(e,t,r,o){const i=e.length,a=t.length;let l=0;if(!a){for(;l<i;l++)r(e[l]);return}if(!i){for(;l<a;l++)o(t[l]);return}for(;l<a&&t[l]===e[l];l++);let s,c;t=t.slice(l),e=e.slice(l);for(s of t)e.includes(s)||o(s);for(c of e)t.includes(c)||r(c)}function ce(...e){return An(e)}var mr=e=>e instanceof Element;function bn(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return bn(e(),t);if(Array.isArray(e)){const r=[];for(const o of e){const i=bn(o,t);i&&(Array.isArray(i)?r.push.apply(r,i):r.push(i))}return r.length?r:null}return null}function Ti(e,t=mr,r=mr){const o=n.createMemo(e),i=n.createMemo(()=>bn(o(),t));return i.toArray=()=>{const a=i();return Array.isArray(a)?a:a?[a]:[]},i}function Ri(e){return n.createMemo(()=>{const t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function ro(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function zi(e,t,r,o){const{onBeforeEnter:i,onEnter:a,onAfterEnter:l}=t;i==null||i(r),r.classList.add(...e.enter),r.classList.add(...e.enterActive),queueMicrotask(()=>{if(!r.parentNode)return o==null?void 0:o();a==null||a(r,()=>s())}),ro(()=>{r.classList.remove(...e.enter),r.classList.add(...e.enterTo),(!a||a.length<2)&&(r.addEventListener("transitionend",s),r.addEventListener("animationend",s))});function s(c){(!c||c.target===r)&&(o==null||o(),r.removeEventListener("transitionend",s),r.removeEventListener("animationend",s),r.classList.remove(...e.enterActive),r.classList.remove(...e.enterTo),l==null||l(r))}}function Ni(e,t,r,o){const{onBeforeExit:i,onExit:a,onAfterExit:l}=t;if(!r.parentNode)return o==null?void 0:o();i==null||i(r),r.classList.add(...e.exit),r.classList.add(...e.exitActive),a==null||a(r,()=>s()),ro(()=>{r.classList.remove(...e.exit),r.classList.add(...e.exitTo),(!a||a.length<2)&&(r.addEventListener("transitionend",s),r.addEventListener("animationend",s))});function s(c){(!c||c.target===r)&&(o==null||o(),r.removeEventListener("transitionend",s),r.removeEventListener("animationend",s),r.classList.remove(...e.exitActive),r.classList.remove(...e.exitTo),l==null||l(r))}}var hr=e=>{const t=Ri(e);return Pi(Ti(()=>e.children).toArray,{appear:e.appear,exitMethod:"keep-index",onChange({added:r,removed:o,finishRemoved:i,list:a}){const l=t();for(const c of r)zi(l,e,c);const s=[];for(const c of a)c.isConnected&&(c instanceof HTMLElement||c instanceof SVGElement)&&s.push({el:c,rect:c.getBoundingClientRect()});queueMicrotask(()=>{const c=[];for(const{el:u,rect:h}of s)if(u.isConnected){const g=u.getBoundingClientRect(),f=h.left-g.left,m=h.top-g.top;(f||m)&&(u.style.transform=`translate(${f}px, ${m}px)`,u.style.transitionDuration="0s",c.push(u))}document.body.offsetHeight;for(const u of c){let h=function(g){(g.target===u||/transform$/.test(g.propertyName))&&(u.removeEventListener("transitionend",h),u.classList.remove(...l.move))};u.classList.add(...l.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",h)}});for(const c of o)Ni(l,e,c,()=>i([c]))}})},dn=Symbol("fallback");function yr(e){for(const t of e)t.dispose()}function Ki(e,t,r,o={}){const i=new Map;return n.onCleanup(()=>yr(i.values())),()=>{const l=e()||[];return l[n.$TRACK],n.untrack(()=>{var h,g;if(!l.length)return yr(i.values()),i.clear(),o.fallback?[n.createRoot(m=>(i.set(dn,{dispose:m}),o.fallback()))]:[];const s=new Array(l.length),c=i.get(dn);if(!i.size||c){c==null||c.dispose(),i.delete(dn);for(let f=0;f<l.length;f++){const m=l[f],d=t(m,f);a(s,m,f,d)}return s}const u=new Set(i.keys());for(let f=0;f<l.length;f++){const m=l[f],d=t(m,f);u.delete(d);const y=i.get(d);y?(s[f]=y.mapped,(h=y.setIndex)==null||h.call(y,f),y.setItem(()=>m)):a(s,m,f,d)}for(const f of u)(g=i.get(f))==null||g.dispose(),i.delete(f);return s})};function a(l,s,c,u){n.createRoot(h=>{const[g,f]=n.createSignal(s),m={setItem:f,dispose:h};if(r.length>1){const[d,y]=n.createSignal(c);m.setIndex=y,m.mapped=r(g,d)}else m.mapped=r(g);i.set(u,m),l[c]=m.mapped})}}function Wt(e){const{by:t}=e;return n.createMemo(Ki(()=>e.each,typeof t=="function"?t:r=>r[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Bi(e){const[t,r]=n.createSignal(),o=e!=null&&e.throw?(f,m)=>{throw r(f instanceof Error?f:new Error(m)),f}:(f,m)=>{r(f instanceof Error?f:new Error(m))},i=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),a=e!=null&&e.prefix?`${e.prefix}.`:"",l=new Map,s=new Proxy({},{get(f,m){let d=l.get(m);d||(d=n.createSignal(void 0,{equals:!1}),l.set(m,d)),d[0]();const y=i.reduce((v,x)=>{if(v!==null||!x)return v;try{return x.getItem(`${a}${m}`)}catch(p){return o(p,`Error reading ${a}${m} from ${x.name}`),null}},null);return y!==null&&(e!=null&&e.deserializer)?e.deserializer(y,m,e.options):y}}),c=(f,m,d)=>{const y=e!=null&&e.serializer?e.serializer(m,f,d??e.options):m,v=`${a}${f}`;i.forEach(p=>{try{p.getItem(v)!==y&&p.setItem(v,y)}catch(b){o(b,`Error setting ${a}${f} to ${y} in ${p.name}`)}});const x=l.get(f);x&&x[1]()},u=f=>i.forEach(m=>{try{m.removeItem(`${a}${f}`)}catch(d){o(d,`Error removing ${a}${f} from ${m.name}`)}}),h=()=>i.forEach(f=>{try{f.clear()}catch(m){o(m,`Error clearing ${f.name}`)}}),g=()=>{const f={},m=(d,y)=>{if(!f.hasOwnProperty(d)){const v=y&&(e!=null&&e.deserializer)?e.deserializer(y,d,e.options):y;v&&(f[d]=v)}};return i.forEach(d=>{if(typeof d.getAll=="function"){let y;try{y=d.getAll()}catch(v){o(v,`Error getting all values from in ${d.name}`)}for(const v of y)m(v,y[v])}else{let y=0,v;try{for(;v=d.key(y++);)f.hasOwnProperty(v)||m(v,d.getItem(v))}catch(x){o(x,`Error getting all values from ${d.name}`)}}}),f};return(e==null?void 0:e.sync)!==!1&&n.onMount(()=>{const f=m=>{var y;let d=!1;i.forEach(v=>{try{v!==m.storageArea&&m.key&&m.newValue!==v.getItem(m.key)&&(m.newValue?v.setItem(m.key,m.newValue):v.removeItem(m.key),d=!0)}catch(x){o(x,`Error synching api ${v.name} from storage event (${m.key}=${m.newValue})`)}}),d&&m.key&&((y=l.get(m.key))==null||y[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),n.onCleanup(()=>globalThis.removeEventListener("storage",f))):(i.forEach(m=>{var d;return(d=m.addEventListener)==null?void 0:d.call(m,"storage",f)}),n.onCleanup(()=>i.forEach(m=>{var d;return(d=m.removeEventListener)==null?void 0:d.call(m,"storage",f)})))}),[s,c,{clear:h,error:t,remove:u,toJSON:g}]}var Ui=Bi,Gi=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),vr=e=>{if(!e)return"";let t="";for(const r in e){if(!e.hasOwnProperty(r))continue;const o=e[r];t+=o instanceof Date?`; ${r}=${o.toUTCString()}`:typeof o=="boolean"?`; ${r}`:`; ${r}=${o}`}return t},ye=Gi({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t;return((t=ye._cookies[0][ye._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())??null},setItem:(e,t,r)=>{const o=ye.getItem(e);ye._cookies[0][ye._cookies[1]]=`${e}=${t}${vr(r)}`;const i=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:ye});window.dispatchEvent(i)},removeItem:e=>{ye._cookies[0][ye._cookies[1]]=`${e}=deleted${vr({expires:new Date(0)})}`},key:e=>{let t=null,r=0;return ye._cookies[0][ye._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,i)=>(!t&&i&&r++===e&&(t=i),"")),t},get length(){let e=0;return ye._cookies[0][ye._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}});function Vi(e,t,r,o){return e.addEventListener(t,r,o),qi(e.removeEventListener.bind(e,t,r,o))}function ji(e,t,r,o){const i=()=>{vn(w(e)).forEach(a=>{a&&vn(w(t)).forEach(l=>Vi(a,l,r,o))})};typeof e=="function"?n.createEffect(i):n.createRenderEffect(i)}function Hi(e,t){const r=new ResizeObserver(e);return n.onCleanup(r.disconnect.bind(r)),{observe:o=>r.observe(o,t),unobserve:r.unobserve.bind(r)}}function Qi(e,t,r){const o=new WeakMap,{observe:i,unobserve:a}=Hi(l=>{for(const s of l){const{contentRect:c,target:u}=s,h=Math.round(c.width),g=Math.round(c.height),f=o.get(u);(!f||f.width!==h||f.height!==g)&&(t(c,u,s),o.set(u,{width:h,height:g}))}},r);n.createEffect(l=>{const s=Di(vn(w(e)));return Oi(s,l,i,a),s},[])}function Vt(){return!0}var Wi={get(e,t,r){return t===n.$PROXY?r:e.get(t)},has(e,t){return e.has(t)},set:Vt,deleteProperty:Vt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Vt,deleteProperty:Vt}},ownKeys(e){return e.keys()}},Yi=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function br(e){const t={};let r;for(;r=Yi.exec(e);)t[r[1]]=r[2];return t}function Xi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=br(e)}else typeof t=="string"&&(t=br(t));return{...e,...t}}var fn=(e,t,r)=>{let o;for(const i of e){const a=w(i)[t];o?a&&(o=r(o,a)):o=a}return o};function Zi(...e){var l;const t=Array.isArray(e[0]),r=t?e[0]:e;if(r.length===1)return r[0];const o=t&&((l=e[1])!=null&&l.reverseEventHandlers)?Ii:An,i={};for(const s of r){const c=w(s);for(const u in c)if(u[0]==="o"&&u[1]==="n"&&u[2]){const h=c[u],g=u.toLowerCase(),f=typeof h=="function"?h:Array.isArray(h)?h.length===1?h[0]:h[0].bind(void 0,h[1]):void 0;f?i[g]?i[g].push(f):i[g]=[f]:delete i[g]}}const a=n.mergeProps(...r);return new Proxy({get(s){if(typeof s!="string")return Reflect.get(a,s);if(s==="style")return fn(r,"style",Xi);if(s==="ref"){const c=[];for(const u of r){const h=w(u)[s];typeof h=="function"&&c.push(h)}return o(c)}if(s[0]==="o"&&s[1]==="n"&&s[2]){const c=i[s.toLowerCase()];return c?o(c):Reflect.get(a,s)}return s==="class"||s==="className"?fn(r,s,(c,u)=>`${c} ${u}`):s==="classList"?fn(r,s,(c,u)=>({...c,...u})):Reflect.get(a,s)},has(s){return Reflect.has(a,s)},keys(){return Object.keys(a)}},Wi)}function Ji(e,t,r=-1){return r in e?[...e.slice(0,r),t,...e.slice(r)]:[...e,t]}function pn(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function es(e){return typeof e=="number"}function ts(e){return Array.isArray(e)}function st(e){return Object.prototype.toString.call(e)==="[object String]"}function ns(e){return typeof e=="function"}function It(e){return t=>`${e()}-${t}`}function be(e,t){return e?e===t||e.contains(t):!1}function St(e,t=!1){const{activeElement:r}=Se(e);if(!(r!=null&&r.nodeName))return null;if(io(r)&&r.contentDocument)return St(r.contentDocument.body,t);if(t){const o=r.getAttribute("aria-activedescendant");if(o){const i=Se(r).getElementById(o);if(i)return i}}return r}function oo(e){return Se(e).defaultView||window}function Se(e){return e?e.ownerDocument||e:document}function io(e){return e.tagName==="IFRAME"}var Mn=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Mn||{});function Pn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function an(){return Pn(/^Mac/i)}function rs(){return Pn(/^iPhone/i)}function os(){return Pn(/^iPad/i)||an()&&navigator.maxTouchPoints>1}function so(){return rs()||os()}function is(){return an()||so()}function V(e,t){return t&&(ns(t)?t(e):t[0](t[1],e)),e==null?void 0:e.defaultPrevented}function te(e){return t=>{for(const r of e)V(t,r)}}function ss(e){return an()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function se(e){if(e)if(as())e.focus({preventScroll:!0});else{const t=ls(e);e.focus(),cs(t)}}var jt=null;function as(){if(jt==null){jt=!1;try{document.createElement("div").focus({get preventScroll(){return jt=!0,!0}})}catch{}}return jt}function ls(e){let t=e.parentNode;const r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function cs(e){for(const{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}var ao=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],us=[...ao,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Fn=ao.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",ds=us.join(':not([hidden]):not([tabindex="-1"]),');function lo(e,t){const o=Array.from(e.querySelectorAll(Fn)).filter(pr);return t&&pr(e)&&o.unshift(e),o.forEach((i,a)=>{if(io(i)&&i.contentDocument){const l=i.contentDocument.body,s=lo(l,!1);o.splice(a,1,...s)}}),o}function pr(e){return co(e)&&!fs(e)}function co(e){return e.matches(Fn)&&Dn(e)}function fs(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Dn(e,t){return e.nodeName!=="#comment"&&gs(e)&&ms(e,t)&&(!e.parentElement||Dn(e.parentElement,e))}function gs(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:r}=e.style;let o=t!=="none"&&r!=="hidden"&&r!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;const{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function ms(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function hs(e,t){return t.some(r=>r.contains(e))}function ys(e,t,r){const o=t!=null&&t.tabbable?ds:Fn,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return(l=t==null?void 0:t.from)!=null&&l.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&Dn(a)&&(!r||hs(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function vs(){}function bs(e,t){const[r,o]=e;let i=!1;const a=t.length;for(let l=a,s=0,c=l-1;s<l;c=s++){const[u,h]=t[s],[g,f]=t[c],[,m]=t[c===0?l-1:c-1]||[0,0],d=(h-f)*(r-u)-(u-g)*(o-h);if(f<h){if(o>=f&&o<h){if(d===0)return!0;d>0&&(o===f?o>m&&(i=!i):i=!i)}}else if(h<f){if(o>h&&o<=f){if(d===0)return!0;d<0&&(o===f?o<m&&(i=!i):i=!i)}}else if(o==h&&(r>=g&&r<=u||r>=u&&r<=g))return!0}return i}function R(e,t){return n.mergeProps(e,t)}var $t=new Map,xr=new Set;function $r(){if(typeof window>"u")return;const e=r=>{if(!r.target)return;let o=$t.get(r.target);o||(o=new Set,$t.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{if(!r.target)return;const o=$t.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),$t.delete(r.target)),$t.size===0)){for(const i of xr)i();xr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?$r():document.addEventListener("DOMContentLoaded",$r));function Cr(e,t){const r=wr(e,t,"left"),o=wr(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight;let l=e.scrollLeft,s=e.scrollTop;const c=l+e.offsetWidth,u=s+e.offsetHeight;r<=l?l=r:r+i>c&&(l+=r+i-c),o<=s?s=o:o+a>u&&(s+=o+a-u),e.scrollLeft=l,e.scrollTop=s}function wr(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[o];break}t=t.offsetParent}return i}var uo={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"},xn=Symbol("store-raw"),lt=Symbol("store-node"),Le=Symbol("store-has"),fo=Symbol("store-self");function go(e){let t=e[n.$PROXY];if(!t&&(Object.defineProperty(e,n.$PROXY,{value:t=new Proxy(e,$s)}),!Array.isArray(e))){const r=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let i=0,a=r.length;i<a;i++){const l=r[i];o[l].get&&Object.defineProperty(e,l,{enumerable:o[l].enumerable,get:o[l].get.bind(t)})}}return t}function Yt(e){let t;return e!=null&&typeof e=="object"&&(e[n.$PROXY]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function At(e,t=new Set){let r,o,i,a;if(r=e!=null&&e[xn])return r;if(!Yt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let l=0,s=e.length;l<s;l++)i=e[l],(o=At(i,t))!==i&&(e[l]=o)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const l=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let c=0,u=l.length;c<u;c++)a=l[c],!s[a].get&&(i=e[a],(o=At(i,t))!==i&&(e[a]=o))}return e}function Xt(e,t){let r=e[t];return r||Object.defineProperty(e,t,{value:r=Object.create(null)}),r}function Mt(e,t,r){if(e[t])return e[t];const[o,i]=n.createSignal(r,{equals:!1,internal:!0});return o.$=i,e[t]=o}function ps(e,t){const r=Reflect.getOwnPropertyDescriptor(e,t);return!r||r.get||!r.configurable||t===n.$PROXY||t===lt||(delete r.value,delete r.writable,r.get=()=>e[n.$PROXY][t]),r}function mo(e){n.getListener()&&Mt(Xt(e,lt),fo)()}function xs(e){return mo(e),Reflect.ownKeys(e)}var $s={get(e,t,r){if(t===xn)return e;if(t===n.$PROXY)return r;if(t===n.$TRACK)return mo(e),r;const o=Xt(e,lt),i=o[t];let a=i?i():e[t];if(t===lt||t===Le||t==="__proto__")return a;if(!i){const l=Object.getOwnPropertyDescriptor(e,t);n.getListener()&&(typeof a!="function"||e.hasOwnProperty(t))&&!(l&&l.get)&&(a=Mt(o,t,a)())}return Yt(a)?go(a):a},has(e,t){return t===xn||t===n.$PROXY||t===n.$TRACK||t===lt||t===Le||t==="__proto__"?!0:(n.getListener()&&Mt(Xt(e,Le),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:xs,getOwnPropertyDescriptor:ps};function Zt(e,t,r,o=!1){if(!o&&e[t]===r)return;const i=e[t],a=e.length;r===void 0?(delete e[t],e[Le]&&e[Le][t]&&i!==void 0&&e[Le][t].$()):(e[t]=r,e[Le]&&e[Le][t]&&i===void 0&&e[Le][t].$());let l=Xt(e,lt),s;if((s=Mt(l,t,i))&&s.$(()=>r),Array.isArray(e)&&e.length!==a){for(let c=e.length;c<a;c++)(s=l[c])&&s.$();(s=Mt(l,"length",a))&&s.$(e.length)}(s=l[fo])&&s.$()}function ho(e,t){const r=Object.keys(t);for(let o=0;o<r.length;o+=1){const i=r[o];Zt(e,i,t[i])}}function Cs(e,t){if(typeof t=="function"&&(t=t(e)),t=At(t),Array.isArray(t)){if(e===t)return;let r=0,o=t.length;for(;r<o;r++){const i=t[r];e[r]!==i&&Zt(e,r,i)}Zt(e,"length",o)}else ho(e,t)}function Et(e,t,r=[]){let o,i=e;if(t.length>1){o=t.shift();const l=typeof o,s=Array.isArray(e);if(Array.isArray(o)){for(let c=0;c<o.length;c++)Et(e,[o[c]].concat(t),r);return}else if(s&&l==="function"){for(let c=0;c<e.length;c++)o(e[c],c)&&Et(e,[c].concat(t),r);return}else if(s&&l==="object"){const{from:c=0,to:u=e.length-1,by:h=1}=o;for(let g=c;g<=u;g+=h)Et(e,[g].concat(t),r);return}else if(t.length>1){Et(e[o],t,[o].concat(r));return}i=e[o],r=[o].concat(r)}let a=t[0];typeof a=="function"&&(a=a(i,r),a===i)||o===void 0&&a==null||(a=At(a),o===void 0||Yt(i)&&Yt(a)&&!Array.isArray(a)?ho(i,a):Zt(e,o,a))}function ws(...[e,t]){const r=At(e||{}),o=Array.isArray(r),i=go(r);function a(...l){n.batch(()=>{o&&l.length===1?Cs(r,l[0]):Et(r,l)})}return[i,a]}var Ss=class{getStringForLocale(e,t){let r=this.messages[t];r||(r=Es(t,this.messages,this.defaultLocale),this.messages[t]=r);let o=r[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}};function Es(e,t,r="en-US"){if(t[e])return t[e];let o=ks(e);if(t[o])return t[o];for(let i in t)if(i.startsWith(o+"-"))return t[i];return t[r]}function ks(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var _s=["top","right","bottom","left"],He=Math.min,me=Math.max,Jt=Math.round,Ht=Math.floor,Qe=e=>({x:e,y:e}),As={left:"right",right:"left",bottom:"top",top:"bottom"},Ms={start:"end",end:"start"};function $n(e,t,r){return me(e,He(t,r))}function tt(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function dt(e){return e.split("-")[1]}function yo(e){return e==="x"?"y":"x"}function In(e){return e==="y"?"height":"width"}function Lt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Ln(e){return yo(Lt(e))}function Ps(e,t,r){r===void 0&&(r=!1);const o=dt(e),i=Ln(e),a=In(i);let l=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=en(l)),[l,en(l)]}function Fs(e){const t=en(e);return[Cn(e),t,Cn(t)]}function Cn(e){return e.replace(/start|end/g,t=>Ms[t])}function Ds(e,t,r){const o=["left","right"],i=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:o:t?o:i;case"left":case"right":return t?a:l;default:return[]}}function Is(e,t,r,o){const i=dt(e);let a=Ds(We(e),r==="start",o);return i&&(a=a.map(l=>l+"-"+i),t&&(a=a.concat(a.map(Cn)))),a}function en(e){return e.replace(/left|right|bottom|top/g,t=>As[t])}function Ls(e){return{top:0,right:0,bottom:0,left:0,...e}}function vo(e){return typeof e!="number"?Ls(e):{top:e,right:e,bottom:e,left:e}}function tn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Sr(e,t,r){let{reference:o,floating:i}=e;const a=Lt(t),l=Ln(t),s=In(l),c=We(t),u=a==="y",h=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;let m;switch(c){case"top":m={x:h,y:o.y-i.height};break;case"bottom":m={x:h,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:g};break;case"left":m={x:o.x-i.width,y:g};break;default:m={x:o.x,y:o.y}}switch(dt(t)){case"start":m[l]-=f*(r&&u?-1:1);break;case"end":m[l]+=f*(r&&u?-1:1);break}return m}var qs=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l}=r,s=a.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=Sr(u,o,c),f=o,m={},d=0;for(let y=0;y<s.length;y++){const{name:v,fn:x}=s[y],{x:p,y:b,data:C,reset:$}=await x({x:h,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});if(h=p??h,g=b??g,m={...m,[v]:{...m[v],...C}},$&&d<=50){d++,typeof $=="object"&&($.placement&&(f=$.placement),$.rects&&(u=$.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):$.rects),{x:h,y:g}=Sr(u,f,c)),y=-1;continue}}return{x:h,y:g,placement:f,strategy:i,middlewareData:m}};async function Pt(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:a,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:f=!1,padding:m=0}=tt(t,e),d=vo(m),v=s[f?g==="floating"?"reference":"floating":g],x=tn(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:h,strategy:c})),p=g==="floating"?{...l.floating,x:o,y:i}:l.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},$=tn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p,offsetParent:b,strategy:c}):p);return{top:(x.top-$.top+d.top)/C.y,bottom:($.bottom-x.bottom+d.bottom)/C.y,left:(x.left-$.left+d.left)/C.x,right:($.right-x.right+d.right)/C.x}}var Os=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:a,platform:l,elements:s,middlewareData:c}=t,{element:u,padding:h=0}=tt(e,t)||{};if(u==null)return{};const g=vo(h),f={x:r,y:o},m=Ln(i),d=In(m),y=await l.getDimensions(u),v=m==="y",x=v?"top":"left",p=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=a.reference[d]+a.reference[m]-f[m]-a.floating[d],$=f[m]-a.reference[m],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=A?A[b]:0;(!P||!await(l.isElement==null?void 0:l.isElement(A)))&&(P=s.floating[b]||a.floating[d]);const _=C/2-$/2,q=P/2-y[d]/2-1,I=He(g[x],q),L=He(g[p],q),z=I,Q=P-y[d]-L,D=P/2-y[d]/2+_,O=$n(z,D,Q),N=!c.arrow&&dt(i)!=null&&D!=O&&a.reference[d]/2-(D<z?I:L)-y[d]/2<0,B=N?D<z?D-z:D-Q:0;return{[m]:f[m]+B,data:{[m]:O,centerOffset:D-O-B,...N&&{alignmentOffset:B}},reset:N}}}),Ts=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:y=!0,...v}=tt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=We(i),p=We(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=f||(p||!y?[en(s)]:Fs(s));!f&&d!=="none"&&C.push(...Is(s,y,d,b));const $=[s,...C],A=await Pt(t,v),P=[];let _=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&P.push(A[x]),g){const z=Ps(i,l,b);P.push(A[z[0]],A[z[1]])}if(_=[..._,{placement:i,overflows:P}],!P.every(z=>z<=0)){var q,I;const z=(((q=a.flip)==null?void 0:q.index)||0)+1,Q=$[z];if(Q)return{data:{index:z,overflows:_},reset:{placement:Q}};let D=(I=_.filter(O=>O.overflows[0]<=0).sort((O,N)=>O.overflows[1]-N.overflows[1])[0])==null?void 0:I.placement;if(!D)switch(m){case"bestFit":{var L;const O=(L=_.map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,G)=>B+G,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:L[0];O&&(D=O);break}case"initialPlacement":D=s;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function Er(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kr(e){return _s.some(t=>e[t]>=0)}var Rs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=tt(e,t);switch(o){case"referenceHidden":{const a=await Pt(t,{...i,elementContext:"reference"}),l=Er(a,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kr(l)}}}case"escaped":{const a=await Pt(t,{...i,altBoundary:!0}),l=Er(a,r.floating);return{data:{escapedOffsets:l,escaped:kr(l)}}}default:return{}}}}};async function zs(e,t){const{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=We(r),s=dt(r),c=Lt(r)==="y",u=["left","top"].includes(l)?-1:1,h=a&&c?-1:1,g=tt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:d}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&typeof d=="number"&&(m=s==="end"?d*-1:d),c?{x:m*h,y:f*u}:{x:f*u,y:m*h}}var Ns=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:o}=t,i=await zs(t,e);return{x:r+i.x,y:o+i.y,data:i}}}},Ks=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:v=>{let{x,y:p}=v;return{x,y:p}}},...c}=tt(e,t),u={x:r,y:o},h=await Pt(t,c),g=Lt(We(i)),f=yo(g);let m=u[f],d=u[g];if(a){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",p=m+h[v],b=m-h[x];m=$n(p,m,b)}if(l){const v=g==="y"?"top":"left",x=g==="y"?"bottom":"right",p=d+h[v],b=d-h[x];d=$n(p,d,b)}const y=s.fn({...t,[f]:m,[g]:d});return{...y,data:{x:y.x-r,y:y.y-o}}}}},Bs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...s}=tt(e,t),c=await Pt(t,s),u=We(r),h=dt(r),g=Lt(r)==="y",{width:f,height:m}=o.floating;let d,y;u==="top"||u==="bottom"?(d=u,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,d=h==="end"?"top":"bottom");const v=m-c[d],x=f-c[y],p=!t.middlewareData.shift;let b=v,C=x;if(g){const A=f-c.left-c.right;C=h||p?He(x,A):A}else{const A=m-c.top-c.bottom;b=h||p?He(v,A):A}if(p&&!h){const A=me(c.left,0),P=me(c.right,0),_=me(c.top,0),q=me(c.bottom,0);g?C=f-2*(A!==0||P!==0?A+P:me(c.left,c.right)):b=m-2*(_!==0||q!==0?_+q:me(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:b});const $=await i.getDimensions(a.floating);return f!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function Ye(e){return bo(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(bo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bo(e){return e instanceof Node||e instanceof he(e).Node}function Te(e){return e instanceof Element||e instanceof he(e).Element}function ke(e){return e instanceof HTMLElement||e instanceof he(e).HTMLElement}function _r(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(i)}function Us(e){return["table","td","th"].includes(Ye(e))}function qn(e){const t=On(),r=xe(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Gs(e){let t=ut(e);for(;ke(t)&&!ln(t);){if(qn(t))return t;t=ut(t)}return null}function On(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ln(e){return["html","body","#document"].includes(Ye(e))}function xe(e){return he(e).getComputedStyle(e)}function cn(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(e){if(Ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_r(e)&&e.host||ze(e);return _r(t)?t.host:t}function po(e){const t=ut(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&qt(t)?t:po(t)}function Ft(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=po(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),l=he(i);return a?t.concat(l,l.visualViewport||[],qt(i)?i:[],l.frameElement&&r?Ft(l.frameElement):[]):t.concat(i,Ft(i,[],r))}function xo(e){const t=xe(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=ke(e),a=i?e.offsetWidth:r,l=i?e.offsetHeight:o,s=Jt(r)!==a||Jt(o)!==l;return s&&(r=a,o=l),{width:r,height:o,$:s}}function Tn(e){return Te(e)?e:e.contextElement}function ct(e){const t=Tn(e);if(!ke(t))return Qe(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:a}=xo(t);let l=(a?Jt(r.width):r.width)/o,s=(a?Jt(r.height):r.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}var Vs=Qe(0);function $o(e){const t=he(e);return!On()||!t.visualViewport?Vs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function js(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function et(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Tn(e);let l=Qe(1);t&&(o?Te(o)&&(l=ct(o)):l=ct(e));const s=js(a,r,o)?$o(a):Qe(0);let c=(i.left+s.x)/l.x,u=(i.top+s.y)/l.y,h=i.width/l.x,g=i.height/l.y;if(a){const f=he(a),m=o&&Te(o)?he(o):o;let d=f.frameElement;for(;d&&o&&m!==f;){const y=ct(d),v=d.getBoundingClientRect(),x=xe(d),p=v.left+(d.clientLeft+parseFloat(x.paddingLeft))*y.x,b=v.top+(d.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,h*=y.x,g*=y.y,c+=p,u+=b,d=he(d).frameElement}}return tn({width:h,height:g,x:c,y:u})}function Hs(e){let{rect:t,offsetParent:r,strategy:o}=e;const i=ke(r),a=ze(r);if(r===a)return t;let l={scrollLeft:0,scrollTop:0},s=Qe(1);const c=Qe(0);if((i||!i&&o!=="fixed")&&((Ye(r)!=="body"||qt(a))&&(l=cn(r)),ke(r))){const u=et(r);s=ct(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+c.x,y:t.y*s.y-l.scrollTop*s.y+c.y}}function Qs(e){return Array.from(e.getClientRects())}function Co(e){return et(ze(e)).left+cn(e).scrollLeft}function Ws(e){const t=ze(e),r=cn(e),o=e.ownerDocument.body,i=me(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=me(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-r.scrollLeft+Co(e);const s=-r.scrollTop;return xe(o).direction==="rtl"&&(l+=me(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:s}}function Ys(e,t){const r=he(e),o=ze(e),i=r.visualViewport;let a=o.clientWidth,l=o.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;const u=On();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s,y:c}}function Xs(e,t){const r=et(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=ke(e)?ct(e):Qe(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=o*a.y;return{width:l,height:s,x:c,y:u}}function Ar(e,t,r){let o;if(t==="viewport")o=Ys(e,r);else if(t==="document")o=Ws(ze(e));else if(Te(t))o=Xs(t,r);else{const i=$o(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return tn(o)}function wo(e,t){const r=ut(e);return r===t||!Te(r)||ln(r)?!1:xe(r).position==="fixed"||wo(r,t)}function Zs(e,t){const r=t.get(e);if(r)return r;let o=Ft(e,[],!1).filter(s=>Te(s)&&Ye(s)!=="body"),i=null;const a=xe(e).position==="fixed";let l=a?ut(e):e;for(;Te(l)&&!ln(l);){const s=xe(l),c=qn(l);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qt(l)&&!c&&wo(e,l))?o=o.filter(h=>h!==l):i=s,l=ut(l)}return t.set(e,o),o}function Js(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const l=[...r==="clippingAncestors"?Zs(t,this._c):[].concat(r),o],s=l[0],c=l.reduce((u,h)=>{const g=Ar(t,h,i);return u.top=me(g.top,u.top),u.right=He(g.right,u.right),u.bottom=He(g.bottom,u.bottom),u.left=me(g.left,u.left),u},Ar(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ea(e){return xo(e)}function ta(e,t,r){const o=ke(t),i=ze(t),a=r==="fixed",l=et(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Qe(0);if(o||!o&&!a)if((Ye(t)!=="body"||qt(i))&&(s=cn(t)),o){const u=et(t,!0,a,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=Co(i));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function Mr(e,t){return!ke(e)||xe(e).position==="fixed"?null:t?t(e):e.offsetParent}function So(e,t){const r=he(e);if(!ke(e))return r;let o=Mr(e,t);for(;o&&Us(o)&&xe(o).position==="static";)o=Mr(o,t);return o&&(Ye(o)==="html"||Ye(o)==="body"&&xe(o).position==="static"&&!qn(o))?r:o||Gs(e)||r}var na=async function(e){let{reference:t,floating:r,strategy:o}=e;const i=this.getOffsetParent||So,a=this.getDimensions;return{reference:ta(t,await i(r),o),floating:{x:0,y:0,...await a(r)}}};function ra(e){return xe(e).direction==="rtl"}var Eo={convertOffsetParentRelativeRectToViewportRelativeRect:Hs,getDocumentElement:ze,getClippingRect:Js,getOffsetParent:So,getElementRects:na,getClientRects:Qs,getDimensions:ea,getScale:ct,isElement:Te,isRTL:ra};function oa(e,t){let r=null,o;const i=ze(e);function a(){clearTimeout(o),r&&r.disconnect(),r=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:u,top:h,width:g,height:f}=e.getBoundingClientRect();if(s||t(),!g||!f)return;const m=Ht(h),d=Ht(i.clientWidth-(u+g)),y=Ht(i.clientHeight-(h+f)),v=Ht(u),p={rootMargin:-m+"px "+-d+"px "+-y+"px "+-v+"px",threshold:me(0,He(1,c))||1};let b=!0;function C($){const A=$[0].intersectionRatio;if(A!==c){if(!b)return l();A?l(!1,A):o=setTimeout(()=>{l(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(C,{...p,root:i.ownerDocument})}catch{r=new IntersectionObserver(C,p)}r.observe(e)}return l(!0),a}function ia(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Tn(e),h=i||a?[...u?Ft(u):[],...Ft(t)]:[];h.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const g=u&&s?oa(u,r):null;let f=-1,m=null;l&&(m=new ResizeObserver(x=>{let[p]=x;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let d,y=c?et(e):null;c&&v();function v(){const x=et(e);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,d=requestAnimationFrame(v)}return r(),()=>{h.forEach(x=>{i&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),g&&g(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(d)}}var sa=(e,t,r)=>{const o=new Map,i={platform:Eo,...r},a={...i.platform,_c:o};return qs(e,t,{...i,platform:a})};function wn(e){let t=e.startIndex??0;const r=e.startLevel??0,o=[],i=c=>{if(c==null)return"";const u=e.getKey??"key",h=st(u)?c[u]:u(c);return h!=null?String(h):""},a=c=>{if(c==null)return"";const u=e.getTextValue??"textValue",h=st(u)?c[u]:u(c);return h!=null?String(h):""},l=c=>{if(c==null)return!1;const u=e.getDisabled??"disabled";return(st(u)?c[u]:u(c))??!1},s=c=>{var u;if(c!=null)return st(e.getSectionChildren)?c[e.getSectionChildren]:(u=e.getSectionChildren)==null?void 0:u.call(e,c)};for(const c of e.dataSource){if(st(c)||es(c)){o.push({type:"item",rawValue:c,key:String(c),textValue:String(c),disabled:l(c),level:r,index:t}),t++;continue}if(s(c)!=null){o.push({type:"section",rawValue:c,key:"",textValue:"",disabled:!1,level:r,index:t}),t++;const u=s(c)??[];if(u.length>0){const h=wn({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:r+1});o.push(...h),t+=h.length}}else o.push({type:"item",rawValue:c,key:i(c),textValue:a(c),disabled:l(c),level:r,index:t}),t++}return o}function aa(e,t=[]){const r=wn({dataSource:w(e.dataSource),getKey:w(e.getKey),getTextValue:w(e.getTextValue),getDisabled:w(e.getDisabled),getSectionChildren:w(e.getSectionChildren)}),[o,i]=n.createSignal(e.factory(r));return n.createEffect(n.on([()=>w(e.dataSource),()=>w(e.getKey),()=>w(e.getTextValue),()=>w(e.getDisabled),()=>w(e.getSectionChildren),()=>e.factory,...t],([a,l,s,c,u,h])=>{const g=wn({dataSource:a,getKey:l,getTextValue:s,getDisabled:c,getSectionChildren:u});i(()=>h(g))},{defer:!0})),o}function Ot(e){var l;const[t,r]=n.createSignal((l=e.defaultValue)==null?void 0:l.call(e)),o=n.createMemo(()=>{var s;return((s=e.value)==null?void 0:s.call(e))!==void 0}),i=n.createMemo(()=>{var s;return o()?(s=e.value)==null?void 0:s.call(e):t()});return[i,s=>{n.untrack(()=>{var u;const c=Li(s,i());return Object.is(c,i())||(o()||r(c),(u=e.onChange)==null||u.call(e,c)),c})}]}function ko(e){const[t,r]=Ot(e);return[()=>t()??!1,r]}function la(e){const[t,r]=Ot(e);return[()=>t()??[],r]}function _o(e={}){const[t,r]=ko({value:()=>w(e.open),defaultValue:()=>!!w(e.defaultOpen),onChange:l=>{var s;return(s=e.onOpenChange)==null?void 0:s.call(e,l)}}),o=()=>{r(!0)},i=()=>{r(!1)};return{isOpen:t,setIsOpen:r,open:o,close:i,toggle:()=>{t()?i():o()}}}function ca(e){const t=r=>{var o;r.key===Mn.Escape&&((o=e.onEscapeKeyDown)==null||o.call(e,r))};n.createEffect(()=>{var o;if(w(e.isDisabled))return;const r=((o=e.ownerDocument)==null?void 0:o.call(e))??Se();r.addEventListener("keydown",t),n.onCleanup(()=>{r.removeEventListener("keydown",t)})})}var nn="data-kb-top-layer",Ao,Sn=!1,Re=[];function Dt(e){return Re.findIndex(t=>t.node===e)}function ua(e){return Re[Dt(e)]}function da(e){return Re[Re.length-1].node===e}function Mo(){return Re.filter(e=>e.isPointerBlocking)}function fa(){return[...Mo()].slice(-1)[0]}function Rn(){return Mo().length>0}function Po(e){var r;const t=Dt((r=fa())==null?void 0:r.node);return Dt(e)<t}function ga(e){Re.push(e)}function ma(e){const t=Dt(e);t<0||Re.splice(t,1)}function ha(){Re.forEach(({node:e})=>{e.style.pointerEvents=Po(e)?"none":"auto"})}function ya(e){if(Rn()&&!Sn){const t=Se(e);Ao=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Sn=!0}}function va(e){if(Rn())return;const t=Se(e);t.body.style.pointerEvents=Ao,t.body.style.length===0&&t.body.removeAttribute("style"),Sn=!1}var fe={layers:Re,isTopMostLayer:da,hasPointerBlockingLayer:Rn,isBelowPointerBlockingLayer:Po,addLayer:ga,removeLayer:ma,indexOf:Dt,find:ua,assignPointerEventToLayers:ha,disableBodyPointerEvents:ya,restoreBodyPointerEvents:va},gn="focusScope.autoFocusOnMount",mn="focusScope.autoFocusOnUnmount",Pr={bubbles:!1,cancelable:!0},Fr={stack:[],active(){return this.stack[0]},add(e){var t;e!==this.active()&&((t=this.active())==null||t.pause()),this.stack=pn(this.stack,e),this.stack.unshift(e)},remove(e){var t;this.stack=pn(this.stack,e),(t=this.active())==null||t.resume()}};function ba(e,t){const[r,o]=n.createSignal(!1),i={pause(){o(!0)},resume(){o(!1)}};let a=null;const l=d=>{var y;return(y=e.onMountAutoFocus)==null?void 0:y.call(e,d)},s=d=>{var y;return(y=e.onUnmountAutoFocus)==null?void 0:y.call(e,d)},c=()=>Se(t()),u=()=>{const d=c().createElement("span");return d.setAttribute("data-focus-trap",""),d.tabIndex=0,Object.assign(d.style,uo),d},h=()=>{const d=t();return d?lo(d,!0).filter(y=>!y.hasAttribute("data-focus-trap")):[]},g=()=>{const d=h();return d.length>0?d[0]:null},f=()=>{const d=h();return d.length>0?d[d.length-1]:null},m=()=>{const d=t();if(!d)return!1;const y=St(d);return!y||be(d,y)?!1:co(y)};n.createEffect(()=>{const d=t();if(!d)return;Fr.add(i);const y=St(d);if(!be(d,y)){const x=new CustomEvent(gn,Pr);d.addEventListener(gn,l),d.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{se(g()),St(d)===y&&se(d)},0)}n.onCleanup(()=>{d.removeEventListener(gn,l),setTimeout(()=>{const x=new CustomEvent(mn,Pr);m()&&x.preventDefault(),d.addEventListener(mn,s),d.dispatchEvent(x),x.defaultPrevented||se(y??c().body),d.removeEventListener(mn,s),Fr.remove(i)},0)})}),n.createEffect(()=>{const d=t();if(!d||!w(e.trapFocus)||r())return;const y=x=>{const p=x.target;p!=null&&p.closest(`[${nn}]`)||(be(d,p)?a=p:se(a))},v=x=>{const b=x.relatedTarget??St(d);b!=null&&b.closest(`[${nn}]`)||be(d,b)||se(a)};c().addEventListener("focusin",y),c().addEventListener("focusout",v),n.onCleanup(()=>{c().removeEventListener("focusin",y),c().removeEventListener("focusout",v)})}),n.createEffect(()=>{const d=t();if(!d||!w(e.trapFocus)||r())return;const y=u();d.insertAdjacentElement("afterbegin",y);const v=u();d.insertAdjacentElement("beforeend",v);function x(b){const C=g(),$=f();b.relatedTarget===C?se($):se(C)}y.addEventListener("focusin",x),v.addEventListener("focusin",x);const p=new MutationObserver(b=>{for(const C of b)C.previousSibling===v&&(v.remove(),d.insertAdjacentElement("beforeend",v)),C.nextSibling===y&&(y.remove(),d.insertAdjacentElement("afterbegin",y))});p.observe(d,{childList:!0,subtree:!1}),n.onCleanup(()=>{y.removeEventListener("focusin",x),v.removeEventListener("focusin",x),y.remove(),v.remove(),p.disconnect()})})}function pa(e,t){n.createEffect(n.on(e,r=>{if(r==null)return;const o=xa(r);o!=null&&(o.addEventListener("reset",t,{passive:!0}),n.onCleanup(()=>{o.removeEventListener("reset",t)}))}))}function xa(e){return $a(e)?e.form:e.closest("form")}function $a(e){return e.matches("textarea, input, select, button")}var Ca="data-live-announcer";function wa(e){n.createEffect(()=>{w(e.isDisabled)||n.onCleanup(Sa(w(e.targets),w(e.root)))})}var Ct=new WeakMap,ve=[];function Sa(e,t=document.body){const r=new Set(e),o=new Set,i=c=>{for(const f of c.querySelectorAll(`[${Ca}], [${nn}]`))r.add(f);const u=f=>{if(r.has(f)||f.parentElement&&o.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const m of r)if(f.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),g=u(c);if(g===NodeFilter.FILTER_ACCEPT&&a(c),g!==NodeFilter.FILTER_REJECT){let f=h.nextNode();for(;f!=null;)a(f),f=h.nextNode()}},a=c=>{const u=Ct.get(c)??0;c.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&c.setAttribute("aria-hidden","true"),o.add(c),Ct.set(c,u+1))};ve.length&&ve[ve.length-1].disconnect(),i(t);const l=new MutationObserver(c=>{for(const u of c)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...r,...o].some(h=>h.contains(u.target))){for(const h of u.removedNodes)h instanceof Element&&(r.delete(h),o.delete(h));for(const h of u.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?r.add(h):h instanceof Element&&i(h)}});l.observe(t,{childList:!0,subtree:!0});const s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return ve.push(s),()=>{l.disconnect();for(const c of o){const u=Ct.get(c);if(u==null)return;u===1?(c.removeAttribute("aria-hidden"),Ct.delete(c)):Ct.set(c,u-1)}s===ve[ve.length-1]?(ve.pop(),ve.length&&ve[ve.length-1].observe()):ve.splice(ve.indexOf(s),1)}}var Dr="interactOutside.pointerDownOutside",Ir="interactOutside.focusOutside";function Ea(e,t){let r,o=vs;const i=()=>Se(t()),a=g=>{var f;return(f=e.onPointerDownOutside)==null?void 0:f.call(e,g)},l=g=>{var f;return(f=e.onFocusOutside)==null?void 0:f.call(e,g)},s=g=>{var f;return(f=e.onInteractOutside)==null?void 0:f.call(e,g)},c=g=>{var m;const f=g.target;return!(f instanceof HTMLElement)||f.closest(`[${nn}]`)||!be(i(),f)||be(t(),f)?!1:!((m=e.shouldExcludeElement)!=null&&m.call(e,f))},u=g=>{function f(){const m=t(),d=g.target;if(!m||!d||!c(g))return;const y=te([a,s]);d.addEventListener(Dr,y,{once:!0});const v=new CustomEvent(Dr,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:g.button===2||ss(g)&&g.button===0}});d.dispatchEvent(v)}g.pointerType==="touch"?(i().removeEventListener("click",f),o=f,i().addEventListener("click",f,{once:!0})):f()},h=g=>{const f=t(),m=g.target;if(!f||!m||!c(g))return;const d=te([l,s]);m.addEventListener(Ir,d,{once:!0});const y=new CustomEvent(Ir,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:!1}});m.dispatchEvent(y)};n.createEffect(()=>{w(e.isDisabled)||(r=window.setTimeout(()=>{i().addEventListener("pointerdown",u,!0)},0),i().addEventListener("focusin",h,!0),n.onCleanup(()=>{window.clearTimeout(r),i().removeEventListener("click",o),i().removeEventListener("pointerdown",u,!0),i().removeEventListener("focusin",h,!0)}))})}function Fo(e){const[t,r]=n.createSignal();let o={},i=e(),a="none";const[l,s]=ka(e()?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.createEffect(n.on(l,c=>{const u=Qt(o);a=c==="mounted"?u:"none"})),n.createEffect(n.on(e,c=>{if(i===c)return;const u=Qt(o);c?s("MOUNT"):(o==null?void 0:o.display)==="none"?s("UNMOUNT"):s(i&&a!==u?"ANIMATION_OUT":"UNMOUNT"),i=c})),n.createEffect(n.on(t,c=>{if(c){const u=g=>{const m=Qt(o).includes(g.animationName);g.target===c&&m&&s("ANIMATION_END")},h=g=>{g.target===c&&(a=Qt(o))};c.addEventListener("animationstart",h),c.addEventListener("animationcancel",u),c.addEventListener("animationend",u),n.onCleanup(()=>{c.removeEventListener("animationstart",h),c.removeEventListener("animationcancel",u),c.removeEventListener("animationend",u)})}else s("ANIMATION_END")})),{isPresent:()=>["mounted","unmountSuspended"].includes(l()),setRef:c=>{c&&(o=getComputedStyle(c)),r(c)}}}function Qt(e){return(e==null?void 0:e.animationName)||"none"}function ka(e,t){const r=(l,s)=>t[l][s]??l,[o,i]=n.createSignal(e);return[o,l=>{i(s=>r(s,l))}]}var hn="data-kb-scroll-lock";function Lr(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function _a(e,t,r){if(!e)return()=>{};const o=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{o?e.style.setProperty(t,o):e.style.removeProperty(t)}}function Aa(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Ma(e){n.createEffect(()=>{if(!w(e.ownerRef)||w(e.isDisabled))return;const t=Se(w(e.ownerRef)),r=oo(w(e.ownerRef)),{documentElement:o,body:i}=t;if(i.hasAttribute(hn))return;i.setAttribute(hn,"");const l=r.innerWidth-o.clientWidth,s=()=>_a(o,"--scrollbar-width",`${l}px`),c=Aa(o),u=()=>Lr(i,{overflow:"hidden",[c]:`${l}px`}),h=()=>{const{scrollX:f,scrollY:m,visualViewport:d}=r,y=(d==null?void 0:d.offsetLeft)??0,v=(d==null?void 0:d.offsetTop)??0,x=Lr(i,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(v))}px`,left:`${-(f-Math.floor(y))}px`,right:"0",[c]:`${l}px`});return()=>{x(),r.scrollTo(f,m)}},g=An([s(),so()?h():u()]);n.onCleanup(()=>{g(),i.removeAttribute(hn)})})}function pe(e){return t=>(e(t),()=>e(void 0))}function zn(e,t){const[r,o]=n.createSignal(qr(t==null?void 0:t()));return n.createEffect(()=>{var i;o(((i=e())==null?void 0:i.tagName.toLowerCase())||qr(t==null?void 0:t()))}),r}function qr(e){return st(e)?e:void 0}function Pa(e={}){const[t,r]=ko({value:()=>w(e.isSelected),defaultValue:()=>!!w(e.defaultIsSelected),onChange:a=>{var l;return(l=e.onSelectedChange)==null?void 0:l.call(e,a)}});return{isSelected:t,setIsSelected:a=>{!w(e.isReadOnly)&&!w(e.isDisabled)&&r(a)},toggle:()=>{!w(e.isReadOnly)&&!w(e.isDisabled)&&r(!t())}}}var Fa=["id","name","validationState","required","disabled","readOnly"];function Da(e){const t=`form-control-${n.createUniqueId()}`;e=R({id:t},e);const[r,o]=n.createSignal(),[i,a]=n.createSignal(),[l,s]=n.createSignal(),[c,u]=n.createSignal(),h=(d,y,v)=>{const x=v!=null||r()!=null;return[v,r(),x&&y!=null?d:void 0].filter(Boolean).join(" ")||void 0},g=d=>[l(),c(),d].filter(Boolean).join(" ")||void 0,f=n.createMemo(()=>({"data-valid":w(e.validationState)==="valid"?"":void 0,"data-invalid":w(e.validationState)==="invalid"?"":void 0,"data-required":w(e.required)?"":void 0,"data-disabled":w(e.disabled)?"":void 0,"data-readonly":w(e.readOnly)?"":void 0}));return{formControlContext:{name:()=>w(e.name)??w(e.id),dataset:f,validationState:()=>w(e.validationState),isRequired:()=>w(e.required),isDisabled:()=>w(e.disabled),isReadOnly:()=>w(e.readOnly),labelId:r,fieldId:i,descriptionId:l,errorMessageId:c,getAriaLabelledBy:h,getAriaDescribedBy:g,generateId:It(()=>w(e.id)),registerLabel:pe(o),registerField:pe(a),registerDescription:pe(s),registerErrorMessage:pe(u)}}}var Do=n.createContext();function Tt(){const e=n.useContext(Do);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function H(e){var i;const[t,r]=n.splitProps(e,["asChild","as","children"]);if(!t.asChild)return n.createComponent(n.Dynamic,n.mergeProps({get component(){return t.as}},r,{get children(){return t.children}}));const o=n.children(()=>t.children);if(Or(o())){const a=Tr(r,((i=o())==null?void 0:i.props)??{});return n.createComponent(n.Dynamic,a)}if(ts(o())){const a=o().find(Or);if(a){const l=()=>n.createComponent(n.For,{get each(){return o()},children:c=>n.createComponent(n.Show,{when:c===a,fallback:c,get children(){return a.props.children}})}),s=Tr(r,(a==null?void 0:a.props)??{});return n.createComponent(n.Dynamic,n.mergeProps(s,{children:l}))}}throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}var Ia=Symbol("$$KobalteAsComponent");function Or(e){return(e==null?void 0:e[Ia])===!0}function Tr(e,t){return Zi([e,t],{reverseEventHandlers:!0})}function La(e){const t=Tt();return e=R({id:t.generateId("description")},e),n.createEffect(()=>n.onCleanup(t.registerDescription(e.id))),n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),e))}function qa(e){const t=Tt();e=R({id:t.generateId("error-message")},e);const[r,o]=n.splitProps(e,["forceMount"]),i=()=>t.validationState()==="invalid";return n.createEffect(()=>{i()&&n.onCleanup(t.registerErrorMessage(o.id))}),n.createComponent(n.Show,{get when(){return r.forceMount||i()},get children(){return n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),o))}})}function Oa(e){let t;const r=Tt();e=R({id:r.generateId("label")},e);const[o,i]=n.splitProps(e,["ref"]),a=zn(()=>t,()=>"label");return n.createEffect(()=>n.onCleanup(r.registerLabel(i.id))),n.createComponent(H,n.mergeProps({as:"label",ref(l){const s=ce(c=>t=c,o.ref);typeof s=="function"&&s(l)},get for(){return n.createMemo(()=>a()==="label")()?r.fieldId():void 0}},()=>r.dataset(),i))}var Ta=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ra=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function za(e){if(Intl.Locale){const r=new Intl.Locale(e).maximize().script??"";return Ta.has(r)}const t=e.split("-")[0];return Ra.has(t)}function Na(e){return za(e)?"rtl":"ltr"}function Io(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Na(e)}}var En=Io(),kt=new Set;function Rr(){En=Io();for(const e of kt)e(En)}function Ka(){const[e,t]=n.createSignal(En),r=n.createMemo(()=>e());return n.onMount(()=>{kt.size===0&&window.addEventListener("languagechange",Rr),kt.add(t),n.onCleanup(()=>{kt.delete(t),kt.size===0&&window.removeEventListener("languagechange",Rr)})}),{locale:()=>r().locale,direction:()=>r().direction}}var Ba=n.createContext();function ft(){const e=Ka();return n.useContext(Ba)||e}var yn=new Map;function Ua(e){const{locale:t}=ft(),r=n.createMemo(()=>t()+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():""));return n.createMemo(()=>{const o=r();let i;return yn.has(o)&&(i=yn.get(o)),i||(i=new Intl.Collator(t(),e),yn.set(o,i)),i})}var qe=class Lo extends Set{constructor(t,r,o){super(t),t instanceof Lo?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}};function Ga(e){const[t,r]=Ot(e);return[()=>t()??new qe,r]}function qo(e){return is()?e.altKey:e.ctrlKey}function at(e){return an()?e.metaKey:e.ctrlKey}function zr(e){return new qe(e)}function Va(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function ja(e){e=R({selectionMode:"none",selectionBehavior:"toggle"},e);const[t,r]=n.createSignal(!1),[o,i]=n.createSignal(),a=n.createMemo(()=>{const d=w(e.selectedKeys);return d!=null?zr(d):d}),l=n.createMemo(()=>{const d=w(e.defaultSelectedKeys);return d!=null?zr(d):new qe}),[s,c]=Ga({value:a,defaultValue:l,onChange:d=>{var y;return(y=e.onSelectionChange)==null?void 0:y.call(e,d)}}),[u,h]=n.createSignal(w(e.selectionBehavior)),g=()=>w(e.selectionMode),f=()=>w(e.disallowEmptySelection)??!1,m=d=>{(w(e.allowDuplicateSelectionEvents)||!Va(d,s()))&&c(d)};return n.createEffect(()=>{const d=s();w(e.selectionBehavior)==="replace"&&u()==="toggle"&&typeof d=="object"&&d.size===0&&h("replace")}),n.createEffect(()=>{h(w(e.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:u,setSelectionBehavior:h,isFocused:t,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:s,setSelectedKeys:m}}function Ha(e){const[t,r]=n.createSignal(""),[o,i]=n.createSignal(-1);return{typeSelectHandlers:{onKeyDown:l=>{var f;if(w(e.isDisabled))return;const s=w(e.keyboardDelegate),c=w(e.selectionManager);if(!s.getKeyForSearch)return;const u=Qa(l.key);if(!u||l.ctrlKey||l.metaKey)return;u===" "&&t().trim().length>0&&(l.preventDefault(),l.stopPropagation());let h=r(m=>m+=u),g=s.getKeyForSearch(h,c.focusedKey())??s.getKeyForSearch(h);g==null&&Wa(h)&&(h=h[0],g=s.getKeyForSearch(h,c.focusedKey())??s.getKeyForSearch(h)),g!=null&&(c.setFocusedKey(g),(f=e.onTypeSelect)==null||f.call(e,g)),clearTimeout(o()),i(window.setTimeout(()=>r(""),500))}}}}function Qa(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wa(e){return e.split("").every(t=>t===e[0])}function Ya(e,t,r){const o={selectOnFocus:()=>w(e.selectionManager).selectionBehavior()==="replace"};e=n.mergeProps(o,e);const i=()=>(r==null?void 0:r())??t(),{direction:a}=ft();let l={top:0,left:0};ji(()=>w(e.isVirtualized)?void 0:i(),"scroll",()=>{const d=i();d&&(l={top:d.scrollTop,left:d.scrollLeft})});const{typeSelectHandlers:s}=Ha({isDisabled:()=>w(e.disallowTypeAhead),keyboardDelegate:()=>w(e.keyboardDelegate),selectionManager:()=>w(e.selectionManager)}),c=d=>{var A,P,_,q,I,L,z,Q;V(d,s.onKeyDown),d.altKey&&d.key==="Tab"&&d.preventDefault();const y=t();if(!(y!=null&&y.contains(d.target)))return;const v=w(e.selectionManager),x=w(e.selectOnFocus),p=D=>{D!=null&&(v.setFocusedKey(D),d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&!qo(d)&&v.replaceSelection(D))},b=w(e.keyboardDelegate),C=w(e.shouldFocusWrap),$=v.focusedKey();switch(d.key){case"ArrowDown":{if(b.getKeyBelow){d.preventDefault();let D;$!=null?D=b.getKeyBelow($):D=(A=b.getFirstKey)==null?void 0:A.call(b),D==null&&C&&(D=(P=b.getFirstKey)==null?void 0:P.call(b,$)),p(D)}break}case"ArrowUp":{if(b.getKeyAbove){d.preventDefault();let D;$!=null?D=b.getKeyAbove($):D=(_=b.getLastKey)==null?void 0:_.call(b),D==null&&C&&(D=(q=b.getLastKey)==null?void 0:q.call(b,$)),p(D)}break}case"ArrowLeft":{if(b.getKeyLeftOf){d.preventDefault();const D=a()==="rtl";let O;$!=null?O=b.getKeyLeftOf($):O=D?(I=b.getFirstKey)==null?void 0:I.call(b):(L=b.getLastKey)==null?void 0:L.call(b),p(O)}break}case"ArrowRight":{if(b.getKeyRightOf){d.preventDefault();const D=a()==="rtl";let O;$!=null?O=b.getKeyRightOf($):O=D?(z=b.getLastKey)==null?void 0:z.call(b):(Q=b.getFirstKey)==null?void 0:Q.call(b),p(O)}break}case"Home":if(b.getFirstKey){d.preventDefault();const D=b.getFirstKey($,at(d));D!=null&&(v.setFocusedKey(D),at(d)&&d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&v.replaceSelection(D))}break;case"End":if(b.getLastKey){d.preventDefault();const D=b.getLastKey($,at(d));D!=null&&(v.setFocusedKey(D),at(d)&&d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&v.replaceSelection(D))}break;case"PageDown":if(b.getKeyPageBelow&&$!=null){d.preventDefault();const D=b.getKeyPageBelow($);p(D)}break;case"PageUp":if(b.getKeyPageAbove&&$!=null){d.preventDefault();const D=b.getKeyPageAbove($);p(D)}break;case"a":at(d)&&v.selectionMode()==="multiple"&&w(e.disallowSelectAll)!==!0&&(d.preventDefault(),v.selectAll());break;case"Escape":d.defaultPrevented||(d.preventDefault(),w(e.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!w(e.allowsTabNavigation)){if(d.shiftKey)y.focus();else{const D=ys(y,{tabbable:!0});let O,N;do N=D.lastChild(),N&&(O=N);while(N);O&&!O.contains(document.activeElement)&&se(O)}break}}},u=d=>{var p,b;const y=w(e.selectionManager),v=w(e.keyboardDelegate),x=w(e.selectOnFocus);if(y.isFocused()){d.currentTarget.contains(d.target)||y.setFocused(!1);return}if(d.currentTarget.contains(d.target)){if(y.setFocused(!0),y.focusedKey()==null){const C=A=>{A!=null&&(y.setFocusedKey(A),x&&y.replaceSelection(A))},$=d.relatedTarget;$&&d.currentTarget.compareDocumentPosition($)&Node.DOCUMENT_POSITION_FOLLOWING?C(y.lastSelectedKey()??((p=v.getLastKey)==null?void 0:p.call(v))):C(y.firstSelectedKey()??((b=v.getFirstKey)==null?void 0:b.call(v)))}else if(!w(e.isVirtualized)){const C=i();if(C){C.scrollTop=l.top,C.scrollLeft=l.left;const $=C.querySelector(`[data-key="${y.focusedKey()}"]`);$&&(se($),Cr(C,$))}}}},h=d=>{const y=w(e.selectionManager);d.currentTarget.contains(d.relatedTarget)||y.setFocused(!1)},g=d=>{i()===d.target&&d.preventDefault()},f=()=>{var C,$;const d=w(e.autoFocus);if(!d)return;const y=w(e.selectionManager),v=w(e.keyboardDelegate);let x;d==="first"&&(x=(C=v.getFirstKey)==null?void 0:C.call(v)),d==="last"&&(x=($=v.getLastKey)==null?void 0:$.call(v));const p=y.selectedKeys();p.size&&(x=p.values().next().value),y.setFocused(!0),y.setFocusedKey(x);const b=t();b&&x==null&&!w(e.shouldUseVirtualFocus)&&se(b)};return n.onMount(()=>{e.deferAutoFocus?setTimeout(f,0):f()}),n.createEffect(n.on([i,()=>w(e.isVirtualized),()=>w(e.selectionManager).focusedKey()],d=>{var p;const[y,v,x]=d;if(v)x&&((p=e.scrollToKey)==null||p.call(e,x));else if(x&&y){const b=y.querySelector(`[data-key="${x}"]`);b&&Cr(y,b)}})),{tabIndex:n.createMemo(()=>{if(!w(e.shouldUseVirtualFocus))return w(e.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:g,onFocusIn:u,onFocusOut:h}}function Oo(e,t){const r=()=>w(e.selectionManager),o=()=>w(e.key),i=()=>w(e.shouldUseVirtualFocus),a=p=>{r().selectionMode()!=="none"&&(r().selectionMode()==="single"?r().isSelected(o())&&!r().disallowEmptySelection()?r().toggleSelection(o()):r().replaceSelection(o()):p&&p.shiftKey?r().extendSelection(o()):r().selectionBehavior()==="toggle"||at(p)||"pointerType"in p&&p.pointerType==="touch"?r().toggleSelection(o()):r().replaceSelection(o()))},l=()=>r().isSelected(o()),s=()=>w(e.disabled)||r().isDisabled(o()),c=()=>!s()&&r().canSelectItem(o());let u=null;const h=p=>{c()&&(u=p.pointerType,p.pointerType==="mouse"&&p.button===0&&!w(e.shouldSelectOnPressUp)&&a(p))},g=p=>{c()&&p.pointerType==="mouse"&&p.button===0&&w(e.shouldSelectOnPressUp)&&w(e.allowsDifferentPressOrigin)&&a(p)},f=p=>{c()&&(w(e.shouldSelectOnPressUp)&&!w(e.allowsDifferentPressOrigin)||u!=="mouse")&&a(p)},m=p=>{!c()||!["Enter"," "].includes(p.key)||(qo(p)?r().toggleSelection(o()):a(p))},d=p=>{s()&&p.preventDefault()},y=p=>{const b=t();i()||s()||!b||p.target===b&&r().setFocusedKey(o())},v=n.createMemo(()=>{if(!(i()||s()))return o()===r().focusedKey()?0:-1}),x=n.createMemo(()=>w(e.virtualized)?void 0:o());return n.createEffect(n.on([t,o,i,()=>r().focusedKey(),()=>r().isFocused()],([p,b,C,$,A])=>{p&&b===$&&A&&!C&&document.activeElement!==p&&(e.focus?e.focus():se(p))})),{isSelected:l,isDisabled:s,allowsSelection:c,tabIndex:v,dataKey:x,onPointerDown:h,onPointerUp:g,onClick:f,onKeyDown:m,onMouseDown:d,onFocus:y}}var Xa=class{constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const r=this.collection().getItem(t),o=(r==null?void 0:r.index)!=null&&(e==null?void 0:e.index)!=null&&r.index<e.index;(!e||o)&&(e=r)}return e==null?void 0:e.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const r=this.collection().getItem(t),o=(r==null?void 0:r.index)!=null&&(e==null?void 0:e.index)!=null&&r.index>e.index;(!e||o)&&(e=r)}return e==null?void 0:e.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const r=this.state.selectedKeys(),o=r.anchorKey||t,i=new qe(r,o,t);for(const a of this.getKeyRange(o,r.currentKey||t))i.delete(a);for(const a of this.getKeyRange(t,o))this.canSelectItem(a)&&i.add(a);this.state.setSelectedKeys(i)}getKeyRange(e,t){const r=this.collection().getItem(e),o=this.collection().getItem(t);return r&&o?r.index!=null&&o.index!=null&&r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const r=[];let o=e;for(;o!=null;){const i=this.collection().getItem(o);if(i&&i.type==="item"&&r.push(o),o===t)return r;o=this.collection().getKeyAfter(o)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const r=new qe(this.state.selectedKeys());r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection()&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const r=this.canSelectItem(t)?new qe([t],t,t):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new qe;for(const r of e){const o=this.getKey(r);if(o!=null&&(t.add(o),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;for(const r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(r=>{for(;r!=null;){if(this.canSelectItem(r)){const o=this.collection().getItem(r);if(!o)continue;o.type==="item"&&e.push(r)}r=this.collection().getKeyAfter(r)}})(this.collection().getFirstKey()),e}},Nr=class{constructor(e){ar(this,"keyMap",new Map);this.iterable=e;for(const o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,r=0;for(const[o,i]of this.keyMap)t?(t.nextKey=o,i.prevKey=t.key):(this.firstKey=o,i.prevKey=void 0),i.type==="item"&&(i.index=r++),t=i,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.prevKey}getKeyAfter(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Za(e){const t=ja(e),o=aa({dataSource:()=>w(e.dataSource),getKey:()=>w(e.getKey),getTextValue:()=>w(e.getTextValue),getDisabled:()=>w(e.getDisabled),getSectionChildren:()=>w(e.getSectionChildren),factory:a=>e.filter?new Nr(e.filter(a)):new Nr(a)},[()=>e.filter]),i=new Xa(o,t);return n.createComputed(()=>{const a=t.focusedKey();a!=null&&!o().getItem(a)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>i}}var Ja=class{constructor(e,t,r){this.collection=e,this.ref=t,this.collator=r}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const r=this.collection().getItem(t);if(r&&r.type==="item"&&!r.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const r=this.collection().getItem(t);if(r&&r.type==="item"&&!r.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){var t,r;return((r=(t=this.ref)==null?void 0:t.call(this))==null?void 0:r.querySelector(`[data-key="${e}"]`))??null}getKeyPageAbove(e){var a;const t=(a=this.ref)==null?void 0:a.call(this);let r=this.getItem(e);if(!t||!r)return;const o=Math.max(0,r.offsetTop+r.offsetHeight-t.offsetHeight);let i=e;for(;i&&r&&r.offsetTop>o;)i=this.getKeyAbove(i),r=i!=null?this.getItem(i):null;return i}getKeyPageBelow(e){var a;const t=(a=this.ref)==null?void 0:a.call(this);let r=this.getItem(e);if(!t||!r)return;const o=Math.min(t.scrollHeight,r.offsetTop-r.offsetHeight+t.offsetHeight);let i=e;for(;i&&r&&r.offsetTop<o;)i=this.getKeyBelow(i),r=i!=null?this.getItem(i):null;return i}getKeyForSearch(e,t){var i;const r=(i=this.collator)==null?void 0:i.call(this);if(!r)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){const a=this.collection().getItem(o);if(a){const l=a.textValue.slice(0,e.length);if(a.textValue&&r.compare(l,e)===0)return o}o=this.getKeyBelow(o)}}};function el(e,t,r){const o=Ua({usage:"search",sensitivity:"base"}),i=n.createMemo(()=>{const a=w(e.keyboardDelegate);return a||new Ja(e.collection,t,o)});return Ya({selectionManager:()=>w(e.selectionManager),keyboardDelegate:i,autoFocus:()=>w(e.autoFocus),deferAutoFocus:()=>w(e.deferAutoFocus),shouldFocusWrap:()=>w(e.shouldFocusWrap),disallowEmptySelection:()=>w(e.disallowEmptySelection),selectOnFocus:()=>w(e.selectOnFocus),disallowTypeAhead:()=>w(e.disallowTypeAhead),shouldUseVirtualFocus:()=>w(e.shouldUseVirtualFocus),allowsTabNavigation:()=>w(e.allowsTabNavigation),isVirtualized:()=>w(e.isVirtualized),scrollToKey:a=>{var l;return(l=w(e.scrollToKey))==null?void 0:l(a)}},t,r)}ws({toasts:[]});var tl=["button","color","file","image","reset","submit"];function nl(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?tl.indexOf(e.type)!==-1:!1}function rl(e){let t;e=R({type:"button"},e);const[r,o]=n.splitProps(e,["ref","type","disabled"]),i=zn(()=>t,()=>"button"),a=n.createMemo(()=>{const c=i();return c==null?!1:nl({tagName:c,type:r.type})}),l=n.createMemo(()=>i()==="input"),s=n.createMemo(()=>i()==="a"&&(t==null?void 0:t.getAttribute("href"))!=null);return n.createComponent(H,n.mergeProps({as:"button",ref(c){const u=ce(h=>t=h,r.ref);typeof u=="function"&&u(c)},get type(){return a()||l()?r.type:void 0},get role(){return!a()&&!s()?"button":void 0},get tabIndex(){return!a()&&!s()&&!r.disabled?0:void 0},get disabled(){return a()||l()?r.disabled:void 0},get"aria-disabled"(){return!a()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var To=n.createContext();function Ro(){return n.useContext(To)}function ol(){const e=Ro();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function zo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function il(e,t){var i;const r=t.ref();if(!r)return-1;let o=e.length;if(!o)return-1;for(;o--;){const a=(i=e[o])==null?void 0:i.ref();if(a&&zo(a,r))return o+1}return 0}function sl(e){const t=e.map((o,i)=>[i,o]);let r=!1;return t.sort(([o,i],[a,l])=>{const s=i.ref(),c=l.ref();return s===c||!s||!c?0:zo(s,c)?(o>a&&(r=!0),-1):(o<a&&(r=!0),1)}),r?t.map(([o,i])=>i):e}function No(e,t){const r=sl(e);e!==r&&t(r)}function al(e){var i,a;const t=e[0],r=(i=e[e.length-1])==null?void 0:i.ref();let o=(a=t==null?void 0:t.ref())==null?void 0:a.parentElement;for(;o;){if(r&&o.contains(r))return o;o=o.parentElement}return Se(o).body}function ll(e,t){n.createEffect(()=>{const r=setTimeout(()=>{No(e(),t)});n.onCleanup(()=>clearTimeout(r))})}function cl(e,t){if(typeof IntersectionObserver!="function"){ll(e,t);return}let r=[];n.createEffect(()=>{const o=()=>{const l=!!r.length;r=e(),l&&No(e(),t)},i=al(e()),a=new IntersectionObserver(o,{root:i});e().forEach(l=>{const s=l.ref();s&&a.observe(s)}),n.onCleanup(()=>a.disconnect())})}function ul(e={}){const[t,r]=la({value:()=>w(e.items),onChange:a=>{var l;return(l=e.onItemsChange)==null?void 0:l.call(e,a)}});cl(t,r);const o=a=>(r(l=>{const s=il(l,a);return Ji(l,a,s)}),()=>{r(l=>{const s=l.filter(c=>c.ref()!==a.ref());return l.length===s.length?l:s})});return{DomCollectionProvider:a=>n.createComponent(To.Provider,{value:{registerItem:o},get children(){return a.children}})}}function dl(e){const t=ol();e=R({shouldRegisterItem:!0},e),n.createEffect(()=>{if(!e.shouldRegisterItem)return;const r=t.registerItem(e.getItem());n.onCleanup(r)})}var Ko=n.createContext();function fl(){return n.useContext(Ko)}function gl(e){let t;const r=fl(),[o,i]=n.splitProps(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),a=new Set([]),l=g=>{a.add(g);const f=r==null?void 0:r.registerNestedLayer(g);return()=>{a.delete(g),f==null||f()}};Ea({shouldExcludeElement:g=>{var f;return t?((f=o.excludedElements)==null?void 0:f.some(m=>be(m(),g)))||[...a].some(m=>be(m,g)):!1},onPointerDownOutside:g=>{var f,m,d;!t||fe.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!fe.isTopMostLayer(t)||((f=o.onPointerDownOutside)==null||f.call(o,g),(m=o.onInteractOutside)==null||m.call(o,g),g.defaultPrevented||(d=o.onDismiss)==null||d.call(o))},onFocusOutside:g=>{var f,m,d;(f=o.onFocusOutside)==null||f.call(o,g),(m=o.onInteractOutside)==null||m.call(o,g),g.defaultPrevented||(d=o.onDismiss)==null||d.call(o)}},()=>t),ca({ownerDocument:()=>Se(t),onEscapeKeyDown:g=>{var f;!t||!fe.isTopMostLayer(t)||((f=o.onEscapeKeyDown)==null||f.call(o,g),!g.defaultPrevented&&o.onDismiss&&(g.preventDefault(),o.onDismiss()))}}),n.onMount(()=>{if(!t)return;fe.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});const g=r==null?void 0:r.registerNestedLayer(t);fe.assignPointerEventToLayers(),fe.disableBodyPointerEvents(t),n.onCleanup(()=>{t&&(fe.removeLayer(t),g==null||g(),fe.assignPointerEventToLayers(),fe.restoreBodyPointerEvents(t))})}),n.createEffect(n.on([()=>t,()=>o.disableOutsidePointerEvents],([g,f])=>{if(!g)return;const m=fe.find(g);m&&m.isPointerBlocking!==f&&(m.isPointerBlocking=f,fe.assignPointerEventToLayers()),f&&fe.disableBodyPointerEvents(g),n.onCleanup(()=>{fe.restoreBodyPointerEvents(g)})},{defer:!0}));const h={registerNestedLayer:l};return n.createComponent(Ko.Provider,{value:h,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(g){const f=ce(m=>t=m,o.ref);typeof f=="function"&&f(g)}},i))}})}var Bo=n.createContext();function Uo(){const e=n.useContext(Bo);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var ml=n.template('<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),kn=30,Kr=kn/2,hl={top:180,right:-90,bottom:0,left:90};function yl(e){const t=Uo();e=R({size:kn},e);const[r,o]=n.splitProps(e,["ref","style","children","size"]),i=()=>t.currentPlacement().split("-")[0],a=vl(t.contentRef),l=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue("background-color"))||"none"},s=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue(`border-${i()}-color`))||"none"},c=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue(`border-${i()}-width`))||"0px"},u=()=>parseInt(c())*2*(kn/r.size),h=()=>`rotate(${hl[i()]} ${Kr} ${Kr})`;return n.createComponent(H,n.mergeProps({as:"div",ref(g){const f=ce(t.setArrowRef,r.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return{position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:s(),"stroke-width":u(),...r.style}}},o,{get children(){const g=ml(),f=g.firstChild;return f.firstChild.nextSibling,n.createRenderEffect(()=>n.setAttribute(f,"transform",h())),g}}))}function vl(e){const[t,r]=n.createSignal();return n.createEffect(()=>{const o=e();o&&r(oo(o).getComputedStyle(o))}),t}function bl(e){const t=Uo(),[r,o]=n.splitProps(e,["ref","style"]);return n.createComponent(H,n.mergeProps({as:"div",ref(i){const a=ce(t.setPositionerRef,r.ref);typeof a=="function"&&a(i)},"data-popper-positioner":"",get style(){return{position:"absolute",top:0,left:0,"min-width":"max-content",...r.style}}},o))}function Br(e){const{x:t=0,y:r=0,width:o=0,height:i=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,r,o,i);const a={x:t,y:r,width:o,height:i,top:r,right:t+o,bottom:r+i,left:t};return{...a,toJSON:()=>a}}function pl(e,t){return{contextElement:e,getBoundingClientRect:()=>{const o=t(e);return o?Br(o):e?e.getBoundingClientRect():Br()}}}function xl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var $l={top:"bottom",right:"left",bottom:"top",left:"right"};function Cl(e,t){const[r,o]=e.split("-"),i=$l[r];return o?r==="left"||r==="right"?`${i} ${o==="start"?"top":"bottom"}`:o==="start"?`${i} ${t==="rtl"?"right":"left"}`:`${i} ${t==="rtl"?"left":"right"}`:`${i} center`}function wl(e){e=R({getAnchorRect:g=>g==null?void 0:g.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e);const[t,r]=n.createSignal(),[o,i]=n.createSignal(),[a,l]=n.createSignal(e.placement),s=()=>pl(e.anchorRef(),e.getAnchorRect),{direction:c}=ft();async function u(){var $,A;const g=s(),f=t(),m=o();if(!g||!f)return;const d=((m==null?void 0:m.clientHeight)||0)/2,y=typeof e.gutter=="number"?e.gutter+d:e.gutter??d;f.style.setProperty("--kb-popper-content-overflow-padding",`${e.overflowPadding}px`),g.getBoundingClientRect();const v=[Ns(({placement:P})=>{const _=!!P.split("-")[1];return{mainAxis:y,crossAxis:_?void 0:e.shift,alignmentAxis:e.shift}})];if(e.flip!==!1){const P=typeof e.flip=="string"?e.flip.split(" "):void 0;if(P!==void 0&&!P.every(xl))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(Ts({padding:e.overflowPadding,fallbackPlacements:P}))}(e.slide||e.overlap)&&v.push(Ks({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})),v.push(Bs({padding:e.overflowPadding,apply({availableWidth:P,availableHeight:_,rects:q}){const I=Math.round(q.reference.width);P=Math.floor(P),_=Math.floor(_),f.style.setProperty("--kb-popper-anchor-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-width",`${P}px`),f.style.setProperty("--kb-popper-content-available-height",`${_}px`),e.sameWidth&&(f.style.width=`${I}px`),e.fitViewport&&(f.style.maxWidth=`${P}px`,f.style.maxHeight=`${_}px`)}})),e.hideWhenDetached&&v.push(Rs({padding:e.detachedPadding})),m&&v.push(Os({element:m,padding:e.arrowPadding}));const x=await sa(g,f,{placement:e.placement,strategy:"absolute",middleware:v,platform:{...Eo,isRTL:()=>c()==="rtl"}});if(l(x.placement),($=e.onCurrentPlacementChange)==null||$.call(e,x.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",Cl(x.placement,c()));const p=Math.round(x.x),b=Math.round(x.y);let C;if(e.hideWhenDetached&&(C=(A=x.middlewareData.hide)!=null&&A.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${p}px, ${b}px, 0)`,visibility:C}),m&&x.middlewareData.arrow){const{x:P,y:_}=x.middlewareData.arrow,q=x.placement.split("-")[0];Object.assign(m.style,{left:P!=null?`${P}px`:"",top:_!=null?`${_}px`:"",[q]:"100%"})}}n.createEffect(()=>{const g=s(),f=t();if(!g||!f)return;const m=ia(g,f,u,{elementResize:typeof ResizeObserver=="function"});n.onCleanup(m)}),n.createEffect(()=>{const g=t(),f=e.contentRef();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});const h={currentPlacement:a,contentRef:()=>e.contentRef(),setPositionerRef:r,setArrowRef:i};return n.createComponent(Bo.Provider,{value:h,get children(){return e.children}})}var Go=n.createContext();function Vo(){return n.useContext(Go)}function Ne(){const e=Vo();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var jo=n.createContext();function Ke(){const e=n.useContext(jo);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Sl(e,t,r){const o=e.split("-")[0],i=r.getBoundingClientRect(),a=[],l=t.clientX,s=t.clientY;switch(o){case"top":a.push([l,s+5]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]);break;case"right":a.push([l-5,s]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]);break;case"bottom":a.push([l,s-5]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]);break;case"left":a.push([l+5,s]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]);break}return a}function El(e,t){return t?bs([e.clientX,e.clientY],t):!1}function Ho(e){const t=Ke(),r=Ro(),o=Vo();e=R({placement:"bottom-start"},e);const[i,a]=n.splitProps(e,["open","defaultOpen","onOpenChange"]);let l=0,s=null,c="right";const[u,h]=n.createSignal(),[g,f]=n.createSignal(),[m,d]=n.createSignal(),[y,v]=n.createSignal(),[x,p]=n.createSignal(!0),[b,C]=n.createSignal(a.placement),[$,A]=n.createSignal([]),[P,_]=n.createSignal([]),{DomCollectionProvider:q}=ul({items:P,onItemsChange:_}),I=_o({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:S=>{var T;return(T=i.onOpenChange)==null?void 0:T.call(i,S)}}),L=Fo(()=>t.forceMount()||I.isOpen()),z=Za({selectionMode:"none",dataSource:P}),Q=S=>{p(S),I.open()},D=(S=!1)=>{I.close(),S&&o&&o.close(!0)},O=S=>{p(S),I.toggle()},N=()=>{const S=y();S&&(se(S),z.selectionManager().setFocused(!0),z.selectionManager().setFocusedKey(void 0))},B=S=>{A(K=>[...K,S]);const T=o==null?void 0:o.registerNestedMenu(S);return()=>{A(K=>pn(K,S)),T==null||T()}},G=S=>c===(s==null?void 0:s.side)&&El(S,s==null?void 0:s.area),Y=S=>{G(S)&&S.preventDefault()},ue=S=>{G(S)||N()},X=S=>{G(S)&&S.preventDefault()};wa({isDisabled:()=>!(o==null&&I.isOpen()&&t.isModal()),targets:()=>[y(),...$()].filter(Boolean)}),n.createEffect(()=>{const S=y();if(!S||!o)return;const T=o.registerNestedMenu(S);n.onCleanup(()=>{T()})});const oe={dataset:n.createMemo(()=>({"data-expanded":I.isOpen()?"":void 0,"data-closed":I.isOpen()?void 0:""})),isOpen:I.isOpen,contentPresence:L,currentPlacement:b,pointerGraceTimeoutId:()=>l,autoFocus:x,listState:()=>z,parentMenuContext:()=>o,triggerRef:m,contentRef:y,triggerId:u,contentId:g,setTriggerRef:d,setContentRef:v,open:Q,close:D,toggle:O,focusContent:N,onItemEnter:Y,onItemLeave:ue,onTriggerLeave:X,setPointerDir:S=>c=S,setPointerGraceTimeoutId:S=>l=S,setPointerGraceIntent:S=>s=S,registerNestedMenu:B,registerItemToParentDomCollection:r==null?void 0:r.registerItem,registerTriggerId:pe(h),registerContentId:pe(f)};return n.createComponent(q,{get children(){return n.createComponent(Go.Provider,{value:oe,get children(){return n.createComponent(wl,n.mergeProps({anchorRef:m,contentRef:y,onCurrentPlacementChange:C},a))}})}})}var Qo=n.createContext();function Nn(){const e=n.useContext(Qo);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Kn(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`item-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,s]=n.createSignal(),[c,u]=n.createSignal(),[h,g]=n.createSignal(),f=()=>o.listState().selectionManager(),m=()=>a.id,d=()=>f().focusedKey()===m(),y=()=>{var _;(_=i.onSelect)==null||_.call(i),i.closeOnSelect&&o.close(!0)};dl({getItem:()=>{var _;return{ref:()=>t,type:"item",key:m(),textValue:i.textValue??((_=h())==null?void 0:_.textContent)??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1}}});const v=Oo({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),x=_=>{V(_,i.onPointerMove),_.pointerType==="mouse"&&(i.disabled?o.onItemLeave(_):(o.onItemEnter(_),_.defaultPrevented||(se(_.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},p=_=>{V(_,i.onPointerLeave),_.pointerType==="mouse"&&o.onItemLeave(_)},b=_=>{V(_,i.onPointerUp),!i.disabled&&_.button===0&&y()},C=_=>{if(V(_,i.onKeyDown),!_.repeat&&!i.disabled)switch(_.key){case"Enter":case" ":y();break}},$=n.createMemo(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),A=n.createMemo(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":d()?"":void 0})),P={isChecked:()=>i.checked,dataset:A,setLabelRef:g,generateId:It(()=>a.id),registerLabel:pe(s),registerDescription:pe(u)};return n.createComponent(Qo.Provider,{value:P,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(_){const q=ce(I=>t=I,i.ref);typeof q=="function"&&q(_)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return $()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return te([i.onPointerDown,v.onPointerDown])},get onPointerUp(){return te([b,v.onPointerUp])},get onClick(){return te([i.onClick,v.onClick])},get onKeyDown(){return te([C,v.onKeyDown])},get onMouseDown(){return te([i.onMouseDown,v.onMouseDown])},get onFocus(){return te([i.onFocus,v.onFocus])},onPointerMove:x,onPointerLeave:p},A,a))}})}function kl(e){e=R({closeOnSelect:!1},e);const[t,r]=n.splitProps(e,["checked","defaultChecked","onChange","onSelect"]),o=Pa({isSelected:()=>t.checked,defaultIsSelected:()=>t.defaultChecked,onSelectedChange:a=>{var l;return(l=t.onChange)==null?void 0:l.call(t,a)},isDisabled:()=>r.disabled}),i=()=>{var a;(a=t.onSelect)==null||a.call(t),o.toggle()};return n.createComponent(Kn,n.mergeProps({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:i},r))}function Wo(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`content-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let l=0;const s=()=>o.parentMenuContext()==null&&r.isModal(),c=el({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused()},()=>t);ba({trapFocus:()=>s()&&o.isOpen(),onMountAutoFocus:i.onOpenAutoFocus,onUnmountAutoFocus:i.onCloseAutoFocus},()=>t);const u=d=>{be(d.currentTarget,d.target)&&d.key==="Tab"&&o.isOpen()&&d.preventDefault()},h=d=>{var y;(y=i.onEscapeKeyDown)==null||y.call(i,d),o.close(!0)},g=d=>{var y;(y=i.onFocusOutside)==null||y.call(i,d),r.isModal()&&d.preventDefault()},f=d=>{var y,v;V(d,i.onPointerEnter),o.isOpen()&&((y=o.parentMenuContext())==null||y.listState().selectionManager().setFocused(!1),(v=o.parentMenuContext())==null||v.listState().selectionManager().setFocusedKey(void 0))},m=d=>{if(V(d,i.onPointerMove),d.pointerType!=="mouse")return;const y=d.target,v=l!==d.clientX;be(d.currentTarget,y)&&v&&(o.setPointerDir(d.clientX>l?"right":"left"),l=d.clientX)};return n.createEffect(()=>n.onCleanup(o.registerContentId(i.id))),n.createComponent(n.Show,{get when(){return o.contentPresence.isPresent()},get children(){return n.createComponent(bl,{get children(){return n.createComponent(gl,n.mergeProps({ref(d){const y=ce(v=>{o.setContentRef(v),o.contentPresence.setRef(v),t=v},i.ref);typeof y=="function"&&y(d)},role:"menu",get id(){return i.id},get tabIndex(){return c.tabIndex()},get disableOutsidePointerEvents(){return n.createMemo(()=>!!s())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return{"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...i.style}},get"aria-labelledby"(){return o.triggerId()},onEscapeKeyDown:h,onFocusOutside:g,get onDismiss(){return o.close},get onKeyDown(){return te([i.onKeyDown,c.onKeyDown,u])},get onMouseDown(){return te([i.onMouseDown,c.onMouseDown])},get onFocusIn(){return te([i.onFocusIn,c.onFocusIn])},get onFocusOut(){return te([i.onFocusOut,c.onFocusOut])},onPointerEnter:f,onPointerMove:m},()=>o.dataset(),a))}})}})}function _l(e){let t;const r=Ke(),o=Ne(),[i,a]=n.splitProps(e,["ref"]);return Ma({ownerRef:()=>t,isDisabled:()=>!(o.isOpen()&&(r.isModal()||r.preventScroll()))}),n.createComponent(Wo,n.mergeProps({ref(l){const s=ce(c=>t=c,i.ref);typeof s=="function"&&s(l)}},a))}var Yo=n.createContext();function Al(){const e=n.useContext(Yo);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Xo(e){const t=Ke();e=R({id:t.generateId(`group-${n.createUniqueId()}`)},e);const[r,o]=n.createSignal(),i={generateId:It(()=>e.id),registerLabelId:pe(o)};return n.createComponent(Yo.Provider,{value:i,get children(){return n.createComponent(H,n.mergeProps({as:"div",role:"group",get"aria-labelledby"(){return r()}},e))}})}function Ml(e){const t=Al();e=R({id:t.generateId("label")},e);const[r,o]=n.splitProps(e,["id"]);return n.createEffect(()=>n.onCleanup(t.registerLabelId(r.id))),n.createComponent(H,n.mergeProps({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Pl(e){const t=Ne();return e=R({children:"▼"},e),n.createComponent(H,n.mergeProps({as:"span","aria-hidden":"true"},()=>t.dataset(),e))}function Fl(e){return n.createComponent(Kn,n.mergeProps({role:"menuitem",closeOnSelect:!0},e))}function Dl(e){const t=Nn();e=R({id:t.generateId("description")},e);const[r,o]=n.splitProps(e,["id"]);return n.createEffect(()=>n.onCleanup(t.registerDescription(r.id))),n.createComponent(H,n.mergeProps({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function Il(e){const t=Nn();e=R({id:t.generateId("indicator")},e);const[r,o]=n.splitProps(e,["forceMount"]);return n.createComponent(n.Show,{get when(){return r.forceMount||t.isChecked()},get children(){return n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),o))}})}function Ll(e){const t=Nn();e=R({id:t.generateId("label")},e);const[r,o]=n.splitProps(e,["ref","id"]);return n.createEffect(()=>n.onCleanup(t.registerLabel(r.id))),n.createComponent(H,n.mergeProps({as:"div",ref(i){const a=ce(t.setLabelRef,r.ref);typeof a=="function"&&a(i)},get id(){return r.id}},()=>t.dataset(),o))}function ql(e){const t=Ne();return n.createComponent(n.Show,{get when(){return t.contentPresence.isPresent()},get children(){return n.createComponent(n.Portal,e)}})}var Zo=n.createContext();function Ol(){const e=n.useContext(Zo);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Tl(e){const r=Ke().generateId(`radiogroup-${n.createUniqueId()}`);e=R({id:r},e);const[o,i]=n.splitProps(e,["value","defaultValue","onChange","disabled"]),[a,l]=Ot({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>{var u;return(u=o.onChange)==null?void 0:u.call(o,c)}}),s={isDisabled:()=>o.disabled,isSelectedValue:c=>c===a(),setSelectedValue:l};return n.createComponent(Zo.Provider,{value:s,get children(){return n.createComponent(Xo,i)}})}function Rl(e){const t=Ol();e=R({closeOnSelect:!1},e);const[r,o]=n.splitProps(e,["value","onSelect"]),i=()=>{var a;(a=r.onSelect)==null||a.call(r),t.setSelectedValue(r.value)};return n.createComponent(Kn,n.mergeProps({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:i},o))}function zl(e){const t=`menu-${n.createUniqueId()}`;e=R({id:t,modal:!0,preventScroll:!1},e);const[r,o]=n.splitProps(e,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange"]),i=_o({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>{var s;return(s=r.onOpenChange)==null?void 0:s.call(r,l)}}),a={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??!1,forceMount:()=>r.forceMount??!1,generateId:It(()=>r.id)};return n.createComponent(jo.Provider,{value:a,get children(){return n.createComponent(Ho,n.mergeProps({get open(){return i.isOpen()},get onOpenChange(){return i.setIsOpen}},o))}})}function Nl(e){const{direction:t}=ft();return n.createComponent(Ho,n.mergeProps({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Kl={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Bl(e){const t=Ne(),[r,o]=n.splitProps(e,["onFocusOutside","onKeyDown","onFocusOut"]),{direction:i}=ft(),a=u=>{u.preventDefault()},l=u=>{u.preventDefault()},s=u=>{var g;(g=r.onFocusOutside)==null||g.call(r,u);const h=u.target;be(t.triggerRef(),h)||t.close()},c=u=>{V(u,r.onKeyDown);const h=be(u.currentTarget,u.target),g=Kl[i()].includes(u.key),f=t.parentMenuContext()!=null;h&&g&&f&&(t.close(),se(t.triggerRef()))};return n.createComponent(Wo,n.mergeProps({onOpenAutoFocus:a,onCloseAutoFocus:l,onFocusOutside:s,onKeyDown:c},o))}var Ur=["Enter"," "],Ul={ltr:[...Ur,"ArrowRight"],rtl:[...Ur,"ArrowLeft"]};function Gl(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`sub-trigger-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let l=null;const s=()=>{l&&window.clearTimeout(l),l=null},{direction:c}=ft(),u=()=>i.id,h=()=>{const p=o.parentMenuContext();if(p==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return p.listState().selectionManager()},g=()=>o.listState().collection(),f=()=>h().focusedKey()===u(),m=Oo({key:u,selectionManager:h,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),d=p=>{V(p,i.onClick),!o.isOpen()&&!i.disabled&&o.open(!0)},y=p=>{var C;if(V(p,i.onPointerMove),p.pointerType!=="mouse")return;const b=o.parentMenuContext();if(b==null||b.onItemEnter(p),!p.defaultPrevented){if(i.disabled){b==null||b.onItemLeave(p);return}!o.isOpen()&&!l&&((C=o.parentMenuContext())==null||C.setPointerGraceIntent(null),l=window.setTimeout(()=>{o.open(!1),s()},100)),b==null||b.onItemEnter(p),p.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),se(p.currentTarget),b==null||b.listState().selectionManager().setFocused(!0),b==null||b.listState().selectionManager().setFocusedKey(u()))}},v=p=>{if(V(p,i.onPointerLeave),p.pointerType!=="mouse")return;s();const b=o.parentMenuContext(),C=o.contentRef();if(C){b==null||b.setPointerGraceIntent({area:Sl(o.currentPlacement(),p,C),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(b==null?void 0:b.pointerGraceTimeoutId());const $=window.setTimeout(()=>{b==null||b.setPointerGraceIntent(null)},300);b==null||b.setPointerGraceTimeoutId($)}else{if(b==null||b.onTriggerLeave(p),p.defaultPrevented)return;b==null||b.setPointerGraceIntent(null)}b==null||b.onItemLeave(p)},x=p=>{V(p,i.onKeyDown),!p.repeat&&(i.disabled||Ul[c()].includes(p.key)&&(p.stopPropagation(),p.preventDefault(),h().setFocused(!1),h().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(g().getFirstKey())))};return n.createEffect(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const p=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:u(),textValue:i.textValue??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1});n.onCleanup(p)}),n.createEffect(n.on(()=>{var p;return(p=o.parentMenuContext())==null?void 0:p.pointerGraceTimeoutId()},p=>{n.onCleanup(()=>{var b;window.clearTimeout(p),(b=o.parentMenuContext())==null||b.setPointerGraceIntent(null)})})),n.createEffect(()=>n.onCleanup(o.registerTriggerId(i.id))),n.onCleanup(()=>{s()}),n.createComponent(H,n.mergeProps({as:"div",ref(p){const b=ce(C=>{o.setTriggerRef(C),t=C},i.ref);typeof b=="function"&&b(p)},get id(){return i.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return n.createMemo(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return te([i.onPointerDown,m.onPointerDown])},get onPointerUp(){return te([i.onPointerUp,m.onPointerUp])},get onClick(){return te([d,m.onClick])},get onKeyDown(){return te([x,m.onKeyDown])},get onMouseDown(){return te([i.onMouseDown,m.onMouseDown])},get onFocus(){return te([i.onFocus,m.onFocus])},onPointerMove:y,onPointerLeave:v},()=>o.dataset(),a))}function Vl(e){const t=Ke(),r=Ne();e=R({id:t.generateId("trigger")},e);const[o,i]=n.splitProps(e,["ref","id","disabled","onPointerDown","onClick","onKeyDown"]),a=c=>{V(c,o.onPointerDown),c.currentTarget.dataset.pointerType=c.pointerType,!o.disabled&&c.pointerType!=="touch"&&c.button===0&&r.toggle(!0)},l=c=>{V(c,o.onClick),!o.disabled&&c.currentTarget.dataset.pointerType==="touch"&&r.toggle(!0)},s=c=>{if(V(c,o.onKeyDown),!o.disabled)switch(c.key){case"Enter":case" ":case"ArrowDown":c.stopPropagation(),c.preventDefault(),r.toggle("first");break;case"ArrowUp":c.stopPropagation(),c.preventDefault(),r.toggle("last");break}};return n.createEffect(()=>n.onCleanup(r.registerTriggerId(o.id))),n.createComponent(rl,n.mergeProps({ref(c){const u=ce(r.setTriggerRef,o.ref);typeof u=="function"&&u(c)},get id(){return o.id},get disabled(){return o.disabled},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return n.createMemo(()=>!!r.isOpen())()?r.contentId():void 0},onPointerDown:a,onClick:l,onKeyDown:s},()=>r.dataset(),i))}function jl(e){let t;e=R({orientation:"horizontal"},e);const[r,o]=n.splitProps(e,["ref","orientation"]),i=zn(()=>t,()=>"hr");return n.createComponent(H,n.mergeProps({as:"hr",ref(a){const l=ce(s=>t=s,r.ref);typeof l=="function"&&l(a)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}new Ss({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function Hl(e){const t=Ke(),r=Ne(),[o,i]=n.splitProps(e,["onCloseAutoFocus","onInteractOutside"]);let a=!1;const l=c=>{var u;(u=o.onCloseAutoFocus)==null||u.call(o,c),a||se(r.triggerRef()),a=!1,c.preventDefault()},s=c=>{var u;(u=o.onInteractOutside)==null||u.call(o,c),(!t.isModal()||c.detail.isContextMenu)&&(a=!0)};return n.createComponent(_l,n.mergeProps({onCloseAutoFocus:l,onInteractOutside:s},i))}function Ql(e){const t=`dropdownmenu-${n.createUniqueId()}`;return e=R({id:t},e),n.createComponent(zl,e)}var J=Object.freeze({__proto__:null,Arrow:yl,CheckboxItem:kl,Content:Hl,Group:Xo,GroupLabel:Ml,Icon:Pl,Item:Fl,ItemDescription:Dl,ItemIndicator:Il,ItemLabel:Ll,Portal:ql,RadioGroup:Tl,RadioItem:Rl,Root:Ql,Separator:jl,Sub:Nl,SubContent:Bl,SubTrigger:Gl,Trigger:Vl}),Jo=n.createContext();function ei(){const e=n.useContext(Jo);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var ti=n.createContext();function Rt(){const e=n.useContext(ti);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Wl(e){const t=Tt(),r=ei(),o=`${t.generateId("item")}-${n.createUniqueId()}`;e=R({id:o},e);const[i,a]=n.splitProps(e,["value","disabled","onPointerDown"]),[l,s]=n.createSignal(),[c,u]=n.createSignal(),[h,g]=n.createSignal(),[f,m]=n.createSignal(),[d,y]=n.createSignal(!1),v=n.createMemo(()=>r.isSelectedValue(i.value)),x=n.createMemo(()=>i.disabled||t.isDisabled()||!1),p=$=>{V($,i.onPointerDown),d()&&$.preventDefault()},b=n.createMemo(()=>({...t.dataset(),"data-disabled":x()?"":void 0,"data-checked":v()?"":void 0})),C={value:()=>i.value,dataset:b,isSelected:v,isDisabled:x,inputId:l,labelId:c,descriptionId:h,inputRef:f,select:()=>r.setSelectedValue(i.value),generateId:It(()=>a.id),registerInput:pe(s),registerLabel:pe(u),registerDescription:pe(g),setIsFocused:y,setInputRef:m};return n.createComponent(ti.Provider,{value:C,get children(){return n.createComponent(H,n.mergeProps({as:"div",role:"group",onPointerDown:p},b,a))}})}function Yl(e){const t=Rt();e=R({id:t.generateId("control")},e);const[r,o]=n.splitProps(e,["onClick","onKeyDown"]),i=l=>{var s;V(l,r.onClick),t.select(),(s=t.inputRef())==null||s.focus()},a=l=>{var s;V(l,r.onKeyDown),l.key===Mn.Space&&(t.select(),(s=t.inputRef())==null||s.focus())};return n.createComponent(H,n.mergeProps({as:"div",onClick:i,onKeyDown:a},()=>t.dataset(),o))}function Xl(e){const t=Rt();return e=R({id:t.generateId("description")},e),n.createEffect(()=>n.onCleanup(t.registerDescription(e.id))),n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),e))}function Zl(e){const t=Rt();e=R({id:t.generateId("indicator")},e);const[r,o]=n.splitProps(e,["ref","forceMount"]),i=Fo(()=>r.forceMount||t.isSelected());return n.createComponent(n.Show,{get when(){return i.isPresent()},get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(a){const l=ce(i.setRef,r.ref);typeof l=="function"&&l(a)}},()=>t.dataset(),o))}})}var Jl=n.template('<input type="radio">');function ec(e){const t=Tt(),r=ei(),o=Rt();e=R({id:o.generateId("input")},e);const[i,a]=n.splitProps(e,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[i["aria-labelledby"],o.labelId(),i["aria-labelledby"]!=null&&a["aria-label"]!=null?a.id:void 0].filter(Boolean).join(" ")||void 0,s=()=>[i["aria-describedby"],o.descriptionId(),r.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,c=g=>{V(g,i.onChange),g.stopPropagation(),r.setSelectedValue(o.value());const f=g.target;f.checked=o.isSelected()},u=g=>{V(g,i.onFocus),o.setIsFocused(!0)},h=g=>{V(g,i.onBlur),o.setIsFocused(!1)};return n.createEffect(()=>n.onCleanup(o.registerInput(a.id))),(()=>{const g=Jl();g.addEventListener("blur",h),g.addEventListener("focus",u),g.addEventListener("change",c);const f=ce(o.setInputRef,i.ref);return typeof f=="function"&&n.use(f,g),n.spread(g,n.mergeProps({get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return{...uo,...i.style}},get"aria-labelledby"(){return l()},get"aria-describedby"(){return s()}},()=>o.dataset(),a),!1,!1),g})()}var tc=n.template("<label>");function nc(e){const t=Rt();return e=R({id:t.generateId("label")},e),n.createEffect(()=>n.onCleanup(t.registerLabel(e.id))),(()=>{const r=tc();return n.spread(r,n.mergeProps({get for(){return t.inputId()}},()=>t.dataset(),e),!1,!1),r})()}function rc(e){return n.createComponent(Oa,n.mergeProps({as:"span"},e))}function oc(e){let t;const r=`radiogroup-${n.createUniqueId()}`;e=R({id:r,orientation:"vertical"},e);const[o,i,a]=n.splitProps(e,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Fa),[l,s]=Ot({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:m=>{var d;return(d=o.onChange)==null?void 0:d.call(o,m)}}),{formControlContext:c}=Da(i);pa(()=>t,()=>s(o.defaultValue??""));const u=()=>c.getAriaLabelledBy(w(i.id),a["aria-label"],o["aria-labelledby"]),h=()=>c.getAriaDescribedBy(o["aria-describedby"]),g=m=>m===l(),f={ariaDescribedBy:h,isSelectedValue:g,setSelectedValue:m=>{c.isReadOnly()||c.isDisabled()||(s(m),t==null||t.querySelectorAll("[type='radio']").forEach(d=>{const y=d;y.checked=g(y.value)}))}};return n.createComponent(Do.Provider,{value:c,get children(){return n.createComponent(Jo.Provider,{value:f,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(m){const d=ce(y=>t=y,o.ref);typeof d=="function"&&d(m)},role:"radiogroup",get id(){return w(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return u()},get"aria-describedby"(){return h()}},()=>c.dataset(),a))}})}})}var Ce=Object.freeze({__proto__:null,Description:La,ErrorMessage:qa,Item:Wl,ItemControl:Yl,ItemDescription:Xl,ItemIndicator:Zl,ItemInput:ec,ItemLabel:nc,Label:rc,Root:oc});n.delegateEvents(["focusin","focusout","pointermove"]);n.delegateEvents(["keydown","pointerdown","pointermove","pointerup"]);var E={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},ic=n.template('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),sc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),ac=n.template('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),lc=n.template('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Bn=n.template('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),cc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),uc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),dc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),fc=n.template('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),gc=n.template('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),mc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),hc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),ni=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),yc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),vc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),bc=n.template('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),pc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),xc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),$c=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Cc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),wc=n.template('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');function Sc(){return ic()}function ri(){return sc()}function _t(){return ac()}function Gr(){return lc()}function Vr(){return Bn()}function Ec(){return(()=>{const e=Bn();return e.style.setProperty("transform","rotate(90deg)"),e})()}function kc(){return(()=>{const e=Bn();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _c(){return cc()}function Ac(){return uc()}function Mc(){return dc()}function Pc(){return fc()}function Fc(){return gc()}function Dc(){return mc()}function Ic(){return hc()}function Lc(e){return(()=>{const t=ni(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function qc(){return yc()}function Oc(){return vc()}function Tc(e){return[n.createComponent(n.Show,{get when(){return e.checked},get children(){const t=ni(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),n.createComponent(n.Show,{get when(){return!e.checked},get children(){const t=bc(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Rc(){return pc()}function zc(){return xc()}function Nc(){return $c()}function Kc(){return Cc()}function jr(){const e=n.createUniqueId();return(()=>{const t=wc(),r=t.firstChild,o=r.nextSibling,i=o.nextSibling,a=i.firstChild,l=i.nextSibling,s=l.firstChild,c=l.nextSibling,u=c.nextSibling,h=u.firstChild,g=u.nextSibling,f=g.firstChild,m=g.nextSibling,d=m.nextSibling,y=d.firstChild,v=d.nextSibling,x=v.firstChild,p=v.nextSibling,b=p.nextSibling,C=b.firstChild,$=b.nextSibling,A=$.firstChild,P=$.nextSibling,_=P.nextSibling,q=_.firstChild,I=_.nextSibling,L=I.firstChild,z=I.nextSibling,Q=z.nextSibling,D=Q.firstChild,O=Q.nextSibling,N=O.firstChild,B=O.nextSibling,G=B.nextSibling,Y=G.firstChild,ue=G.nextSibling,X=ue.firstChild,re=ue.nextSibling,oe=re.firstChild,S=oe.nextSibling,T=S.nextSibling,K=T.nextSibling,Ee=K.nextSibling,Be=re.nextSibling,nt=Be.firstChild,Me=Be.nextSibling,Pe=Me.firstChild,Fe=Me.nextSibling,De=Fe.firstChild,F=De.nextSibling,Z=F.nextSibling,le=Z.firstChild,j=le.nextSibling,U=j.nextSibling,W=U.nextSibling,ie=W.nextSibling,$e=ie.nextSibling,Ue=$e.nextSibling,Ge=Ue.nextSibling,ht=Ge.nextSibling,yt=ht.nextSibling,vt=yt.nextSibling,zt=vt.nextSibling,bt=Fe.nextSibling,Nt=bt.firstChild,rt=bt.nextSibling,Kt=rt.firstChild,ot=rt.nextSibling,pt=ot.firstChild,Bt=pt.nextSibling,xt=ot.nextSibling,Ut=xt.firstChild,Xe=xt.nextSibling,Gt=Xe.firstChild,it=Xe.nextSibling,Gn=it.firstChild,Vn=Gn.nextSibling,jn=Vn.nextSibling,Hn=jn.nextSibling,Qn=Hn.nextSibling,Wn=Qn.nextSibling,Yn=Wn.nextSibling,Xn=Yn.nextSibling,Zn=Xn.nextSibling,Jn=Zn.nextSibling,er=Jn.nextSibling,tr=er.nextSibling,nr=tr.nextSibling,rr=nr.nextSibling,or=rr.nextSibling,ir=or.nextSibling,sr=ir.nextSibling,gi=sr.nextSibling;return n.setAttribute(r,"id",`a-${e}`),n.setAttribute(o,"fill",`url(#a-${e})`),n.setAttribute(a,"id",`am-${e}`),n.setAttribute(l,"id",`b-${e}`),n.setAttribute(s,"filter",`url(#am-${e})`),n.setAttribute(c,"mask",`url(#b-${e})`),n.setAttribute(h,"id",`ah-${e}`),n.setAttribute(g,"id",`k-${e}`),n.setAttribute(f,"filter",`url(#ah-${e})`),n.setAttribute(m,"mask",`url(#k-${e})`),n.setAttribute(y,"id",`ae-${e}`),n.setAttribute(v,"id",`j-${e}`),n.setAttribute(x,"filter",`url(#ae-${e})`),n.setAttribute(p,"mask",`url(#j-${e})`),n.setAttribute(C,"id",`ai-${e}`),n.setAttribute($,"id",`i-${e}`),n.setAttribute(A,"filter",`url(#ai-${e})`),n.setAttribute(P,"mask",`url(#i-${e})`),n.setAttribute(q,"id",`aj-${e}`),n.setAttribute(I,"id",`h-${e}`),n.setAttribute(L,"filter",`url(#aj-${e})`),n.setAttribute(z,"mask",`url(#h-${e})`),n.setAttribute(D,"id",`ag-${e}`),n.setAttribute(O,"id",`g-${e}`),n.setAttribute(N,"filter",`url(#ag-${e})`),n.setAttribute(B,"mask",`url(#g-${e})`),n.setAttribute(Y,"id",`af-${e}`),n.setAttribute(ue,"id",`f-${e}`),n.setAttribute(X,"filter",`url(#af-${e})`),n.setAttribute(re,"mask",`url(#f-${e})`),n.setAttribute(K,"id",`m-${e}`),n.setAttribute(Ee,"fill",`url(#m-${e})`),n.setAttribute(nt,"id",`ak-${e}`),n.setAttribute(Me,"id",`e-${e}`),n.setAttribute(Pe,"filter",`url(#ak-${e})`),n.setAttribute(Fe,"mask",`url(#e-${e})`),n.setAttribute(De,"id",`n-${e}`),n.setAttribute(F,"fill",`url(#n-${e})`),n.setAttribute(le,"id",`r-${e}`),n.setAttribute(j,"fill",`url(#r-${e})`),n.setAttribute(U,"id",`s-${e}`),n.setAttribute(W,"fill",`url(#s-${e})`),n.setAttribute(ie,"id",`q-${e}`),n.setAttribute($e,"fill",`url(#q-${e})`),n.setAttribute(Ue,"id",`p-${e}`),n.setAttribute(Ge,"fill",`url(#p-${e})`),n.setAttribute(ht,"id",`o-${e}`),n.setAttribute(yt,"fill",`url(#o-${e})`),n.setAttribute(vt,"id",`l-${e}`),n.setAttribute(zt,"fill",`url(#l-${e})`),n.setAttribute(Nt,"id",`al-${e}`),n.setAttribute(rt,"id",`d-${e}`),n.setAttribute(Kt,"filter",`url(#al-${e})`),n.setAttribute(ot,"mask",`url(#d-${e})`),n.setAttribute(pt,"id",`u-${e}`),n.setAttribute(Bt,"fill",`url(#u-${e})`),n.setAttribute(Ut,"id",`ad-${e}`),n.setAttribute(Xe,"id",`c-${e}`),n.setAttribute(Gt,"filter",`url(#ad-${e})`),n.setAttribute(it,"mask",`url(#c-${e})`),n.setAttribute(Gn,"id",`t-${e}`),n.setAttribute(Vn,"fill",`url(#t-${e})`),n.setAttribute(jn,"id",`v-${e}`),n.setAttribute(Hn,"stroke",`url(#v-${e})`),n.setAttribute(Qn,"id",`aa-${e}`),n.setAttribute(Wn,"stroke",`url(#aa-${e})`),n.setAttribute(Yn,"id",`w-${e}`),n.setAttribute(Xn,"stroke",`url(#w-${e})`),n.setAttribute(Zn,"id",`ac-${e}`),n.setAttribute(Jn,"stroke",`url(#ac-${e})`),n.setAttribute(er,"id",`ab-${e}`),n.setAttribute(tr,"stroke",`url(#ab-${e})`),n.setAttribute(nr,"id",`y-${e}`),n.setAttribute(rr,"stroke",`url(#y-${e})`),n.setAttribute(or,"id",`x-${e}`),n.setAttribute(ir,"stroke",`url(#x-${e})`),n.setAttribute(sr,"id",`z-${e}`),n.setAttribute(gi,"stroke",`url(#z-${e})`),t})()}var oi=n.createContext({client:void 0,onlineManager:void 0,queryFlavor:"",version:""});function ee(){return n.useContext(oi)}var ii=n.createContext(()=>"dark");function ae(){return n.useContext(ii)}var Bc=n.template('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Uc=n.template('<button title="Copy object to clipboard">'),Gc=n.template('<button title="Remove all items"aria-label="Remove all items">'),Vc=n.template('<button title="Delete item"aria-label="Delete item">'),jc=n.template('<button title="Toggle value"aria-label="Toggle value">'),wt=n.template("<div>"),Hc=n.template("<div><button> <span></span> <span> "),Qc=n.template("<input>"),Hr=n.template("<span>"),Wc=n.template("<div><span>:"),Yc=n.template("<div><div><button> [<!>...<!>]");function Xc(e,t){if(t<1)return[];let r=0;const o=[];for(;r<e.length;)o.push(e.slice(r,r+t)),r=r+t;return o}var Qr=e=>{const t=ae(),r=n.createMemo(()=>t()==="dark"?mt:gt);return(()=>{const o=Bc();return n.createRenderEffect(()=>n.className(o,M(r().expander,k`
1
+ "use strict";var mi=Object.defineProperty;var hi=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ar=(e,t,r)=>(hi(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-tGO1Iq1M.js");require("react");require("react-dom");var eo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},yi=Object.keys(eo).join("|"),vi=new RegExp(yi,"g");function bi(e){return e.replace(vi,t=>eo[t])}var de={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function lr(e,t,r){var o;if(r=r||{},r.threshold=(o=r.threshold)!=null?o:de.MATCHES,!r.accessors){const l=cr(e,t,r);return{rankedValue:e,rank:l,accessorIndex:-1,accessorThreshold:r.threshold,passed:l>=r.threshold}}const i=Ci(e,r.accessors),a={rankedValue:e,rank:de.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let l=0;l<i.length;l++){const s=i[l];let c=cr(s.itemValue,t,r);const{minRanking:u,maxRanking:h,threshold:g=r.threshold}=s.attributes;c<u&&c>=de.MATCHES?c=u:c>h&&(c=h),c=Math.min(c,h),c>=g&&c>a.rank&&(a.rank=c,a.passed=!0,a.accessorIndex=l,a.accessorThreshold=g,a.rankedValue=s.itemValue)}return a}function cr(e,t,r){return e=ur(e,r),t=ur(t,r),t.length>e.length?de.NO_MATCH:e===t?de.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?de.EQUAL:e.startsWith(t)?de.STARTS_WITH:e.includes(` ${t}`)?de.WORD_STARTS_WITH:e.includes(t)?de.CONTAINS:t.length===1?de.NO_MATCH:pi(e).includes(t)?de.ACRONYM:xi(e,t))}function pi(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function xi(e,t){let r=0,o=0;function i(c,u,h){for(let g=h,f=u.length;g<f;g++)if(u[g]===c)return r+=1,g+1;return-1}function a(c){const u=1/c,h=r/t.length;return de.MATCHES+h*u}const l=i(t[0],e,0);if(l<0)return de.NO_MATCH;o=l;for(let c=1,u=t.length;c<u;c++){const h=t[c];if(o=i(h,e,o),!(o>-1))return de.NO_MATCH}const s=o-l;return a(s)}function ur(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=bi(e)),e}function $i(e,t){let r=t;typeof t=="object"&&(r=t.accessor);const o=r(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function Ci(e,t){const r=[];for(let o=0,i=t.length;o<i;o++){const a=t[o],l=wi(a),s=$i(e,a);for(let c=0,u=s.length;c<u;c++)r.push({itemValue:s[c],attributes:l})}return r}var dr={maxRanking:1/0,minRanking:-1/0};function wi(e){return typeof e=="function"?dr:{...dr,...e}}var Si={data:""},Ei=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Si,ki=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_i=/\/\*[^]*?\*\/| +/g,fr=/\n+/g,Ze=(e,t)=>{let r="",o="",i="";for(let a in e){let l=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+l+";":o+=a[1]=="f"?Ze(l,a):a+"{"+Ze(l,a[1]=="k"?"":t)+"}":typeof l=="object"?o+=Ze(l,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):a):l!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ze.p?Ze.p(a,l):a+":"+l+";")}return r+(t&&i?t+"{"+i+"}":i)+o},Ie={},to=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+to(e[r]);return t}return e},Ai=(e,t,r,o,i)=>{let a=to(e),l=Ie[a]||(Ie[a]=(c=>{let u=0,h=11;for(;u<c.length;)h=101*h+c.charCodeAt(u++)>>>0;return"go"+h})(a));if(!Ie[l]){let c=a!==e?e:(u=>{let h,g,f=[{}];for(;h=ki.exec(u.replace(_i,""));)h[4]?f.shift():h[3]?(g=h[3].replace(fr," ").trim(),f.unshift(f[0][g]=f[0][g]||{})):f[0][h[1]]=h[2].replace(fr," ").trim();return f[0]})(e);Ie[l]=Ze(i?{["@keyframes "+l]:c}:c,r?"":"."+l)}let s=r&&Ie.g?Ie.g:null;return r&&(Ie.g=Ie[l]),((c,u,h,g)=>{g?u.data=u.data.replace(g,c):u.data.indexOf(c)===-1&&(u.data=h?c+u.data:u.data+c)})(Ie[l],t,o,s),l},Mi=(e,t,r)=>e.reduce((o,i,a)=>{let l=t[a];if(l&&l.call){let s=l(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;l=c?"."+c:s&&typeof s=="object"?s.props?"":Ze(s,""):s===!1?"":s}return o+i+(l??"")},"");function k(e){let t=this||{},r=e.call?e(t.p):e;return Ai(r.unshift?r.raw?Mi(r,[].slice.call(arguments,1),t.p):r.reduce((o,i)=>Object.assign(o,i&&i.call?i(t.p):i),{}):r,Ei(t.target),t.g,t.o,t.k)}k.bind({g:1});k.bind({k:1});function no(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=no(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function M(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=no(e))&&(o&&(o+=" "),o+=t);return o}var gr=()=>{};function Pi(e,t){const r=n.untrack(e),{onChange:o}=t;let i=new Set(t.appear?void 0:r);const a=new WeakSet,[l,s]=n.createSignal([],{equals:!1}),[c]=n.useTransition(),u=t.exitMethod==="remove"?gr:g=>{s(f=>(f.push.apply(f,g),f));for(const f of g)a.delete(f)},h=t.exitMethod==="remove"?gr:t.exitMethod==="keep-index"?(g,f,m)=>g.splice(m,0,f):(g,f)=>g.push(f);return n.createMemo(g=>{const f=l(),m=e();if(m[n.$TRACK],n.untrack(c))return c(),g;if(f.length){const d=g.filter(y=>!f.includes(y));return f.length=0,o({list:d,added:[],removed:[],unchanged:d,finishRemoved:u}),d}return n.untrack(()=>{const d=new Set(m),y=m.slice(),v=[],x=[],p=[];for(const C of m)(i.has(C)?p:v).push(C);let b=!v.length;for(let C=0;C<g.length;C++){const $=g[C];d.has($)||(a.has($)||(x.push($),a.add($)),h(y,$,C)),b&&$!==y[C]&&(b=!1)}return!x.length&&b?g:(o({list:y,added:v,removed:x,unchanged:p,finishRemoved:u}),i=d,y)})},t.appear?[]:r.slice())}var Fi=e=>e!=null,Di=e=>e.filter(Fi);function An(e){return(...t)=>{for(const r of e)r&&r(...t)}}function Ii(e){return(...t)=>{for(let r=e.length-1;r>=0;r--){const o=e[r];o&&o(...t)}}}var w=e=>typeof e=="function"&&!e.length?e():e,vn=e=>Array.isArray(e)?e:e?[e]:[];function Li(e,...t){return typeof e=="function"?e(...t):e}var qi=n.onCleanup;function Oi(e,t,r,o){const i=e.length,a=t.length;let l=0;if(!a){for(;l<i;l++)r(e[l]);return}if(!i){for(;l<a;l++)o(t[l]);return}for(;l<a&&t[l]===e[l];l++);let s,c;t=t.slice(l),e=e.slice(l);for(s of t)e.includes(s)||o(s);for(c of e)t.includes(c)||r(c)}function ce(...e){return An(e)}var mr=e=>e instanceof Element;function bn(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return bn(e(),t);if(Array.isArray(e)){const r=[];for(const o of e){const i=bn(o,t);i&&(Array.isArray(i)?r.push.apply(r,i):r.push(i))}return r.length?r:null}return null}function Ti(e,t=mr,r=mr){const o=n.createMemo(e),i=n.createMemo(()=>bn(o(),t));return i.toArray=()=>{const a=i();return Array.isArray(a)?a:a?[a]:[]},i}function Ri(e){return n.createMemo(()=>{const t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function ro(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function zi(e,t,r,o){const{onBeforeEnter:i,onEnter:a,onAfterEnter:l}=t;i==null||i(r),r.classList.add(...e.enter),r.classList.add(...e.enterActive),queueMicrotask(()=>{if(!r.parentNode)return o==null?void 0:o();a==null||a(r,()=>s())}),ro(()=>{r.classList.remove(...e.enter),r.classList.add(...e.enterTo),(!a||a.length<2)&&(r.addEventListener("transitionend",s),r.addEventListener("animationend",s))});function s(c){(!c||c.target===r)&&(o==null||o(),r.removeEventListener("transitionend",s),r.removeEventListener("animationend",s),r.classList.remove(...e.enterActive),r.classList.remove(...e.enterTo),l==null||l(r))}}function Ni(e,t,r,o){const{onBeforeExit:i,onExit:a,onAfterExit:l}=t;if(!r.parentNode)return o==null?void 0:o();i==null||i(r),r.classList.add(...e.exit),r.classList.add(...e.exitActive),a==null||a(r,()=>s()),ro(()=>{r.classList.remove(...e.exit),r.classList.add(...e.exitTo),(!a||a.length<2)&&(r.addEventListener("transitionend",s),r.addEventListener("animationend",s))});function s(c){(!c||c.target===r)&&(o==null||o(),r.removeEventListener("transitionend",s),r.removeEventListener("animationend",s),r.classList.remove(...e.exitActive),r.classList.remove(...e.exitTo),l==null||l(r))}}var hr=e=>{const t=Ri(e);return Pi(Ti(()=>e.children).toArray,{appear:e.appear,exitMethod:"keep-index",onChange({added:r,removed:o,finishRemoved:i,list:a}){const l=t();for(const c of r)zi(l,e,c);const s=[];for(const c of a)c.isConnected&&(c instanceof HTMLElement||c instanceof SVGElement)&&s.push({el:c,rect:c.getBoundingClientRect()});queueMicrotask(()=>{const c=[];for(const{el:u,rect:h}of s)if(u.isConnected){const g=u.getBoundingClientRect(),f=h.left-g.left,m=h.top-g.top;(f||m)&&(u.style.transform=`translate(${f}px, ${m}px)`,u.style.transitionDuration="0s",c.push(u))}document.body.offsetHeight;for(const u of c){let h=function(g){(g.target===u||/transform$/.test(g.propertyName))&&(u.removeEventListener("transitionend",h),u.classList.remove(...l.move))};u.classList.add(...l.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",h)}});for(const c of o)Ni(l,e,c,()=>i([c]))}})},dn=Symbol("fallback");function yr(e){for(const t of e)t.dispose()}function Ki(e,t,r,o={}){const i=new Map;return n.onCleanup(()=>yr(i.values())),()=>{const l=e()||[];return l[n.$TRACK],n.untrack(()=>{var h,g;if(!l.length)return yr(i.values()),i.clear(),o.fallback?[n.createRoot(m=>(i.set(dn,{dispose:m}),o.fallback()))]:[];const s=new Array(l.length),c=i.get(dn);if(!i.size||c){c==null||c.dispose(),i.delete(dn);for(let f=0;f<l.length;f++){const m=l[f],d=t(m,f);a(s,m,f,d)}return s}const u=new Set(i.keys());for(let f=0;f<l.length;f++){const m=l[f],d=t(m,f);u.delete(d);const y=i.get(d);y?(s[f]=y.mapped,(h=y.setIndex)==null||h.call(y,f),y.setItem(()=>m)):a(s,m,f,d)}for(const f of u)(g=i.get(f))==null||g.dispose(),i.delete(f);return s})};function a(l,s,c,u){n.createRoot(h=>{const[g,f]=n.createSignal(s),m={setItem:f,dispose:h};if(r.length>1){const[d,y]=n.createSignal(c);m.setIndex=y,m.mapped=r(g,d)}else m.mapped=r(g);i.set(u,m),l[c]=m.mapped})}}function Wt(e){const{by:t}=e;return n.createMemo(Ki(()=>e.each,typeof t=="function"?t:r=>r[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Bi(e){const[t,r]=n.createSignal(),o=e!=null&&e.throw?(f,m)=>{throw r(f instanceof Error?f:new Error(m)),f}:(f,m)=>{r(f instanceof Error?f:new Error(m))},i=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),a=e!=null&&e.prefix?`${e.prefix}.`:"",l=new Map,s=new Proxy({},{get(f,m){let d=l.get(m);d||(d=n.createSignal(void 0,{equals:!1}),l.set(m,d)),d[0]();const y=i.reduce((v,x)=>{if(v!==null||!x)return v;try{return x.getItem(`${a}${m}`)}catch(p){return o(p,`Error reading ${a}${m} from ${x.name}`),null}},null);return y!==null&&(e!=null&&e.deserializer)?e.deserializer(y,m,e.options):y}}),c=(f,m,d)=>{const y=e!=null&&e.serializer?e.serializer(m,f,d??e.options):m,v=`${a}${f}`;i.forEach(p=>{try{p.getItem(v)!==y&&p.setItem(v,y)}catch(b){o(b,`Error setting ${a}${f} to ${y} in ${p.name}`)}});const x=l.get(f);x&&x[1]()},u=f=>i.forEach(m=>{try{m.removeItem(`${a}${f}`)}catch(d){o(d,`Error removing ${a}${f} from ${m.name}`)}}),h=()=>i.forEach(f=>{try{f.clear()}catch(m){o(m,`Error clearing ${f.name}`)}}),g=()=>{const f={},m=(d,y)=>{if(!f.hasOwnProperty(d)){const v=y&&(e!=null&&e.deserializer)?e.deserializer(y,d,e.options):y;v&&(f[d]=v)}};return i.forEach(d=>{if(typeof d.getAll=="function"){let y;try{y=d.getAll()}catch(v){o(v,`Error getting all values from in ${d.name}`)}for(const v of y)m(v,y[v])}else{let y=0,v;try{for(;v=d.key(y++);)f.hasOwnProperty(v)||m(v,d.getItem(v))}catch(x){o(x,`Error getting all values from ${d.name}`)}}}),f};return(e==null?void 0:e.sync)!==!1&&n.onMount(()=>{const f=m=>{var y;let d=!1;i.forEach(v=>{try{v!==m.storageArea&&m.key&&m.newValue!==v.getItem(m.key)&&(m.newValue?v.setItem(m.key,m.newValue):v.removeItem(m.key),d=!0)}catch(x){o(x,`Error synching api ${v.name} from storage event (${m.key}=${m.newValue})`)}}),d&&m.key&&((y=l.get(m.key))==null||y[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),n.onCleanup(()=>globalThis.removeEventListener("storage",f))):(i.forEach(m=>{var d;return(d=m.addEventListener)==null?void 0:d.call(m,"storage",f)}),n.onCleanup(()=>i.forEach(m=>{var d;return(d=m.removeEventListener)==null?void 0:d.call(m,"storage",f)})))}),[s,c,{clear:h,error:t,remove:u,toJSON:g}]}var Ui=Bi,Gi=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),vr=e=>{if(!e)return"";let t="";for(const r in e){if(!e.hasOwnProperty(r))continue;const o=e[r];t+=o instanceof Date?`; ${r}=${o.toUTCString()}`:typeof o=="boolean"?`; ${r}`:`; ${r}=${o}`}return t},ye=Gi({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t;return((t=ye._cookies[0][ye._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())??null},setItem:(e,t,r)=>{const o=ye.getItem(e);ye._cookies[0][ye._cookies[1]]=`${e}=${t}${vr(r)}`;const i=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:ye});window.dispatchEvent(i)},removeItem:e=>{ye._cookies[0][ye._cookies[1]]=`${e}=deleted${vr({expires:new Date(0)})}`},key:e=>{let t=null,r=0;return ye._cookies[0][ye._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,i)=>(!t&&i&&r++===e&&(t=i),"")),t},get length(){let e=0;return ye._cookies[0][ye._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}});function Vi(e,t,r,o){return e.addEventListener(t,r,o),qi(e.removeEventListener.bind(e,t,r,o))}function ji(e,t,r,o){const i=()=>{vn(w(e)).forEach(a=>{a&&vn(w(t)).forEach(l=>Vi(a,l,r,o))})};typeof e=="function"?n.createEffect(i):n.createRenderEffect(i)}function Hi(e,t){const r=new ResizeObserver(e);return n.onCleanup(r.disconnect.bind(r)),{observe:o=>r.observe(o,t),unobserve:r.unobserve.bind(r)}}function Qi(e,t,r){const o=new WeakMap,{observe:i,unobserve:a}=Hi(l=>{for(const s of l){const{contentRect:c,target:u}=s,h=Math.round(c.width),g=Math.round(c.height),f=o.get(u);(!f||f.width!==h||f.height!==g)&&(t(c,u,s),o.set(u,{width:h,height:g}))}},r);n.createEffect(l=>{const s=Di(vn(w(e)));return Oi(s,l,i,a),s},[])}function Vt(){return!0}var Wi={get(e,t,r){return t===n.$PROXY?r:e.get(t)},has(e,t){return e.has(t)},set:Vt,deleteProperty:Vt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Vt,deleteProperty:Vt}},ownKeys(e){return e.keys()}},Yi=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function br(e){const t={};let r;for(;r=Yi.exec(e);)t[r[1]]=r[2];return t}function Xi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=br(e)}else typeof t=="string"&&(t=br(t));return{...e,...t}}var fn=(e,t,r)=>{let o;for(const i of e){const a=w(i)[t];o?a&&(o=r(o,a)):o=a}return o};function Zi(...e){var l;const t=Array.isArray(e[0]),r=t?e[0]:e;if(r.length===1)return r[0];const o=t&&((l=e[1])!=null&&l.reverseEventHandlers)?Ii:An,i={};for(const s of r){const c=w(s);for(const u in c)if(u[0]==="o"&&u[1]==="n"&&u[2]){const h=c[u],g=u.toLowerCase(),f=typeof h=="function"?h:Array.isArray(h)?h.length===1?h[0]:h[0].bind(void 0,h[1]):void 0;f?i[g]?i[g].push(f):i[g]=[f]:delete i[g]}}const a=n.mergeProps(...r);return new Proxy({get(s){if(typeof s!="string")return Reflect.get(a,s);if(s==="style")return fn(r,"style",Xi);if(s==="ref"){const c=[];for(const u of r){const h=w(u)[s];typeof h=="function"&&c.push(h)}return o(c)}if(s[0]==="o"&&s[1]==="n"&&s[2]){const c=i[s.toLowerCase()];return c?o(c):Reflect.get(a,s)}return s==="class"||s==="className"?fn(r,s,(c,u)=>`${c} ${u}`):s==="classList"?fn(r,s,(c,u)=>({...c,...u})):Reflect.get(a,s)},has(s){return Reflect.has(a,s)},keys(){return Object.keys(a)}},Wi)}function Ji(e,t,r=-1){return r in e?[...e.slice(0,r),t,...e.slice(r)]:[...e,t]}function pn(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function es(e){return typeof e=="number"}function ts(e){return Array.isArray(e)}function st(e){return Object.prototype.toString.call(e)==="[object String]"}function ns(e){return typeof e=="function"}function It(e){return t=>`${e()}-${t}`}function be(e,t){return e?e===t||e.contains(t):!1}function St(e,t=!1){const{activeElement:r}=Se(e);if(!(r!=null&&r.nodeName))return null;if(io(r)&&r.contentDocument)return St(r.contentDocument.body,t);if(t){const o=r.getAttribute("aria-activedescendant");if(o){const i=Se(r).getElementById(o);if(i)return i}}return r}function oo(e){return Se(e).defaultView||window}function Se(e){return e?e.ownerDocument||e:document}function io(e){return e.tagName==="IFRAME"}var Mn=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Mn||{});function Pn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function an(){return Pn(/^Mac/i)}function rs(){return Pn(/^iPhone/i)}function os(){return Pn(/^iPad/i)||an()&&navigator.maxTouchPoints>1}function so(){return rs()||os()}function is(){return an()||so()}function V(e,t){return t&&(ns(t)?t(e):t[0](t[1],e)),e==null?void 0:e.defaultPrevented}function te(e){return t=>{for(const r of e)V(t,r)}}function ss(e){return an()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function se(e){if(e)if(as())e.focus({preventScroll:!0});else{const t=ls(e);e.focus(),cs(t)}}var jt=null;function as(){if(jt==null){jt=!1;try{document.createElement("div").focus({get preventScroll(){return jt=!0,!0}})}catch{}}return jt}function ls(e){let t=e.parentNode;const r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function cs(e){for(const{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}var ao=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],us=[...ao,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Fn=ao.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",ds=us.join(':not([hidden]):not([tabindex="-1"]),');function lo(e,t){const o=Array.from(e.querySelectorAll(Fn)).filter(pr);return t&&pr(e)&&o.unshift(e),o.forEach((i,a)=>{if(io(i)&&i.contentDocument){const l=i.contentDocument.body,s=lo(l,!1);o.splice(a,1,...s)}}),o}function pr(e){return co(e)&&!fs(e)}function co(e){return e.matches(Fn)&&Dn(e)}function fs(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Dn(e,t){return e.nodeName!=="#comment"&&gs(e)&&ms(e,t)&&(!e.parentElement||Dn(e.parentElement,e))}function gs(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:r}=e.style;let o=t!=="none"&&r!=="hidden"&&r!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;const{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function ms(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function hs(e,t){return t.some(r=>r.contains(e))}function ys(e,t,r){const o=t!=null&&t.tabbable?ds:Fn,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return(l=t==null?void 0:t.from)!=null&&l.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&Dn(a)&&(!r||hs(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function vs(){}function bs(e,t){const[r,o]=e;let i=!1;const a=t.length;for(let l=a,s=0,c=l-1;s<l;c=s++){const[u,h]=t[s],[g,f]=t[c],[,m]=t[c===0?l-1:c-1]||[0,0],d=(h-f)*(r-u)-(u-g)*(o-h);if(f<h){if(o>=f&&o<h){if(d===0)return!0;d>0&&(o===f?o>m&&(i=!i):i=!i)}}else if(h<f){if(o>h&&o<=f){if(d===0)return!0;d<0&&(o===f?o<m&&(i=!i):i=!i)}}else if(o==h&&(r>=g&&r<=u||r>=u&&r<=g))return!0}return i}function R(e,t){return n.mergeProps(e,t)}var $t=new Map,xr=new Set;function $r(){if(typeof window>"u")return;const e=r=>{if(!r.target)return;let o=$t.get(r.target);o||(o=new Set,$t.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{if(!r.target)return;const o=$t.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),$t.delete(r.target)),$t.size===0)){for(const i of xr)i();xr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?$r():document.addEventListener("DOMContentLoaded",$r));function Cr(e,t){const r=wr(e,t,"left"),o=wr(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight;let l=e.scrollLeft,s=e.scrollTop;const c=l+e.offsetWidth,u=s+e.offsetHeight;r<=l?l=r:r+i>c&&(l+=r+i-c),o<=s?s=o:o+a>u&&(s+=o+a-u),e.scrollLeft=l,e.scrollTop=s}function wr(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[o];break}t=t.offsetParent}return i}var uo={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"},xn=Symbol("store-raw"),lt=Symbol("store-node"),Le=Symbol("store-has"),fo=Symbol("store-self");function go(e){let t=e[n.$PROXY];if(!t&&(Object.defineProperty(e,n.$PROXY,{value:t=new Proxy(e,$s)}),!Array.isArray(e))){const r=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let i=0,a=r.length;i<a;i++){const l=r[i];o[l].get&&Object.defineProperty(e,l,{enumerable:o[l].enumerable,get:o[l].get.bind(t)})}}return t}function Yt(e){let t;return e!=null&&typeof e=="object"&&(e[n.$PROXY]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function At(e,t=new Set){let r,o,i,a;if(r=e!=null&&e[xn])return r;if(!Yt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let l=0,s=e.length;l<s;l++)i=e[l],(o=At(i,t))!==i&&(e[l]=o)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const l=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let c=0,u=l.length;c<u;c++)a=l[c],!s[a].get&&(i=e[a],(o=At(i,t))!==i&&(e[a]=o))}return e}function Xt(e,t){let r=e[t];return r||Object.defineProperty(e,t,{value:r=Object.create(null)}),r}function Mt(e,t,r){if(e[t])return e[t];const[o,i]=n.createSignal(r,{equals:!1,internal:!0});return o.$=i,e[t]=o}function ps(e,t){const r=Reflect.getOwnPropertyDescriptor(e,t);return!r||r.get||!r.configurable||t===n.$PROXY||t===lt||(delete r.value,delete r.writable,r.get=()=>e[n.$PROXY][t]),r}function mo(e){n.getListener()&&Mt(Xt(e,lt),fo)()}function xs(e){return mo(e),Reflect.ownKeys(e)}var $s={get(e,t,r){if(t===xn)return e;if(t===n.$PROXY)return r;if(t===n.$TRACK)return mo(e),r;const o=Xt(e,lt),i=o[t];let a=i?i():e[t];if(t===lt||t===Le||t==="__proto__")return a;if(!i){const l=Object.getOwnPropertyDescriptor(e,t);n.getListener()&&(typeof a!="function"||e.hasOwnProperty(t))&&!(l&&l.get)&&(a=Mt(o,t,a)())}return Yt(a)?go(a):a},has(e,t){return t===xn||t===n.$PROXY||t===n.$TRACK||t===lt||t===Le||t==="__proto__"?!0:(n.getListener()&&Mt(Xt(e,Le),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:xs,getOwnPropertyDescriptor:ps};function Zt(e,t,r,o=!1){if(!o&&e[t]===r)return;const i=e[t],a=e.length;r===void 0?(delete e[t],e[Le]&&e[Le][t]&&i!==void 0&&e[Le][t].$()):(e[t]=r,e[Le]&&e[Le][t]&&i===void 0&&e[Le][t].$());let l=Xt(e,lt),s;if((s=Mt(l,t,i))&&s.$(()=>r),Array.isArray(e)&&e.length!==a){for(let c=e.length;c<a;c++)(s=l[c])&&s.$();(s=Mt(l,"length",a))&&s.$(e.length)}(s=l[fo])&&s.$()}function ho(e,t){const r=Object.keys(t);for(let o=0;o<r.length;o+=1){const i=r[o];Zt(e,i,t[i])}}function Cs(e,t){if(typeof t=="function"&&(t=t(e)),t=At(t),Array.isArray(t)){if(e===t)return;let r=0,o=t.length;for(;r<o;r++){const i=t[r];e[r]!==i&&Zt(e,r,i)}Zt(e,"length",o)}else ho(e,t)}function Et(e,t,r=[]){let o,i=e;if(t.length>1){o=t.shift();const l=typeof o,s=Array.isArray(e);if(Array.isArray(o)){for(let c=0;c<o.length;c++)Et(e,[o[c]].concat(t),r);return}else if(s&&l==="function"){for(let c=0;c<e.length;c++)o(e[c],c)&&Et(e,[c].concat(t),r);return}else if(s&&l==="object"){const{from:c=0,to:u=e.length-1,by:h=1}=o;for(let g=c;g<=u;g+=h)Et(e,[g].concat(t),r);return}else if(t.length>1){Et(e[o],t,[o].concat(r));return}i=e[o],r=[o].concat(r)}let a=t[0];typeof a=="function"&&(a=a(i,r),a===i)||o===void 0&&a==null||(a=At(a),o===void 0||Yt(i)&&Yt(a)&&!Array.isArray(a)?ho(i,a):Zt(e,o,a))}function ws(...[e,t]){const r=At(e||{}),o=Array.isArray(r),i=go(r);function a(...l){n.batch(()=>{o&&l.length===1?Cs(r,l[0]):Et(r,l)})}return[i,a]}var Ss=class{getStringForLocale(e,t){let r=this.messages[t];r||(r=Es(t,this.messages,this.defaultLocale),this.messages[t]=r);let o=r[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}};function Es(e,t,r="en-US"){if(t[e])return t[e];let o=ks(e);if(t[o])return t[o];for(let i in t)if(i.startsWith(o+"-"))return t[i];return t[r]}function ks(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var _s=["top","right","bottom","left"],He=Math.min,me=Math.max,Jt=Math.round,Ht=Math.floor,Qe=e=>({x:e,y:e}),As={left:"right",right:"left",bottom:"top",top:"bottom"},Ms={start:"end",end:"start"};function $n(e,t,r){return me(e,He(t,r))}function tt(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function dt(e){return e.split("-")[1]}function yo(e){return e==="x"?"y":"x"}function In(e){return e==="y"?"height":"width"}function Lt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Ln(e){return yo(Lt(e))}function Ps(e,t,r){r===void 0&&(r=!1);const o=dt(e),i=Ln(e),a=In(i);let l=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=en(l)),[l,en(l)]}function Fs(e){const t=en(e);return[Cn(e),t,Cn(t)]}function Cn(e){return e.replace(/start|end/g,t=>Ms[t])}function Ds(e,t,r){const o=["left","right"],i=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:o:t?o:i;case"left":case"right":return t?a:l;default:return[]}}function Is(e,t,r,o){const i=dt(e);let a=Ds(We(e),r==="start",o);return i&&(a=a.map(l=>l+"-"+i),t&&(a=a.concat(a.map(Cn)))),a}function en(e){return e.replace(/left|right|bottom|top/g,t=>As[t])}function Ls(e){return{top:0,right:0,bottom:0,left:0,...e}}function vo(e){return typeof e!="number"?Ls(e):{top:e,right:e,bottom:e,left:e}}function tn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Sr(e,t,r){let{reference:o,floating:i}=e;const a=Lt(t),l=Ln(t),s=In(l),c=We(t),u=a==="y",h=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;let m;switch(c){case"top":m={x:h,y:o.y-i.height};break;case"bottom":m={x:h,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:g};break;case"left":m={x:o.x-i.width,y:g};break;default:m={x:o.x,y:o.y}}switch(dt(t)){case"start":m[l]-=f*(r&&u?-1:1);break;case"end":m[l]+=f*(r&&u?-1:1);break}return m}var qs=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l}=r,s=a.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=Sr(u,o,c),f=o,m={},d=0;for(let y=0;y<s.length;y++){const{name:v,fn:x}=s[y],{x:p,y:b,data:C,reset:$}=await x({x:h,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});if(h=p??h,g=b??g,m={...m,[v]:{...m[v],...C}},$&&d<=50){d++,typeof $=="object"&&($.placement&&(f=$.placement),$.rects&&(u=$.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):$.rects),{x:h,y:g}=Sr(u,f,c)),y=-1;continue}}return{x:h,y:g,placement:f,strategy:i,middlewareData:m}};async function Pt(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:a,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:f=!1,padding:m=0}=tt(t,e),d=vo(m),v=s[f?g==="floating"?"reference":"floating":g],x=tn(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:h,strategy:c})),p=g==="floating"?{...l.floating,x:o,y:i}:l.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},$=tn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p,offsetParent:b,strategy:c}):p);return{top:(x.top-$.top+d.top)/C.y,bottom:($.bottom-x.bottom+d.bottom)/C.y,left:(x.left-$.left+d.left)/C.x,right:($.right-x.right+d.right)/C.x}}var Os=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:a,platform:l,elements:s,middlewareData:c}=t,{element:u,padding:h=0}=tt(e,t)||{};if(u==null)return{};const g=vo(h),f={x:r,y:o},m=Ln(i),d=In(m),y=await l.getDimensions(u),v=m==="y",x=v?"top":"left",p=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=a.reference[d]+a.reference[m]-f[m]-a.floating[d],$=f[m]-a.reference[m],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let P=A?A[b]:0;(!P||!await(l.isElement==null?void 0:l.isElement(A)))&&(P=s.floating[b]||a.floating[d]);const _=C/2-$/2,q=P/2-y[d]/2-1,I=He(g[x],q),L=He(g[p],q),z=I,Q=P-y[d]-L,D=P/2-y[d]/2+_,O=$n(z,D,Q),N=!c.arrow&&dt(i)!=null&&D!=O&&a.reference[d]/2-(D<z?I:L)-y[d]/2<0,B=N?D<z?D-z:D-Q:0;return{[m]:f[m]+B,data:{[m]:O,centerOffset:D-O-B,...N&&{alignmentOffset:B}},reset:N}}}),Ts=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:y=!0,...v}=tt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=We(i),p=We(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=f||(p||!y?[en(s)]:Fs(s));!f&&d!=="none"&&C.push(...Is(s,y,d,b));const $=[s,...C],A=await Pt(t,v),P=[];let _=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&P.push(A[x]),g){const z=Ps(i,l,b);P.push(A[z[0]],A[z[1]])}if(_=[..._,{placement:i,overflows:P}],!P.every(z=>z<=0)){var q,I;const z=(((q=a.flip)==null?void 0:q.index)||0)+1,Q=$[z];if(Q)return{data:{index:z,overflows:_},reset:{placement:Q}};let D=(I=_.filter(O=>O.overflows[0]<=0).sort((O,N)=>O.overflows[1]-N.overflows[1])[0])==null?void 0:I.placement;if(!D)switch(m){case"bestFit":{var L;const O=(L=_.map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,G)=>B+G,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:L[0];O&&(D=O);break}case"initialPlacement":D=s;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function Er(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kr(e){return _s.some(t=>e[t]>=0)}var Rs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=tt(e,t);switch(o){case"referenceHidden":{const a=await Pt(t,{...i,elementContext:"reference"}),l=Er(a,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kr(l)}}}case"escaped":{const a=await Pt(t,{...i,altBoundary:!0}),l=Er(a,r.floating);return{data:{escapedOffsets:l,escaped:kr(l)}}}default:return{}}}}};async function zs(e,t){const{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=We(r),s=dt(r),c=Lt(r)==="y",u=["left","top"].includes(l)?-1:1,h=a&&c?-1:1,g=tt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:d}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&typeof d=="number"&&(m=s==="end"?d*-1:d),c?{x:m*h,y:f*u}:{x:f*u,y:m*h}}var Ns=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:o}=t,i=await zs(t,e);return{x:r+i.x,y:o+i.y,data:i}}}},Ks=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:v=>{let{x,y:p}=v;return{x,y:p}}},...c}=tt(e,t),u={x:r,y:o},h=await Pt(t,c),g=Lt(We(i)),f=yo(g);let m=u[f],d=u[g];if(a){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",p=m+h[v],b=m-h[x];m=$n(p,m,b)}if(l){const v=g==="y"?"top":"left",x=g==="y"?"bottom":"right",p=d+h[v],b=d-h[x];d=$n(p,d,b)}const y=s.fn({...t,[f]:m,[g]:d});return{...y,data:{x:y.x-r,y:y.y-o}}}}},Bs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...s}=tt(e,t),c=await Pt(t,s),u=We(r),h=dt(r),g=Lt(r)==="y",{width:f,height:m}=o.floating;let d,y;u==="top"||u==="bottom"?(d=u,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,d=h==="end"?"top":"bottom");const v=m-c[d],x=f-c[y],p=!t.middlewareData.shift;let b=v,C=x;if(g){const A=f-c.left-c.right;C=h||p?He(x,A):A}else{const A=m-c.top-c.bottom;b=h||p?He(v,A):A}if(p&&!h){const A=me(c.left,0),P=me(c.right,0),_=me(c.top,0),q=me(c.bottom,0);g?C=f-2*(A!==0||P!==0?A+P:me(c.left,c.right)):b=m-2*(_!==0||q!==0?_+q:me(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:b});const $=await i.getDimensions(a.floating);return f!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function Ye(e){return bo(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(bo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bo(e){return e instanceof Node||e instanceof he(e).Node}function Te(e){return e instanceof Element||e instanceof he(e).Element}function ke(e){return e instanceof HTMLElement||e instanceof he(e).HTMLElement}function _r(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(i)}function Us(e){return["table","td","th"].includes(Ye(e))}function qn(e){const t=On(),r=xe(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Gs(e){let t=ut(e);for(;ke(t)&&!ln(t);){if(qn(t))return t;t=ut(t)}return null}function On(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ln(e){return["html","body","#document"].includes(Ye(e))}function xe(e){return he(e).getComputedStyle(e)}function cn(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ut(e){if(Ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_r(e)&&e.host||ze(e);return _r(t)?t.host:t}function po(e){const t=ut(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&qt(t)?t:po(t)}function Ft(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=po(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),l=he(i);return a?t.concat(l,l.visualViewport||[],qt(i)?i:[],l.frameElement&&r?Ft(l.frameElement):[]):t.concat(i,Ft(i,[],r))}function xo(e){const t=xe(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=ke(e),a=i?e.offsetWidth:r,l=i?e.offsetHeight:o,s=Jt(r)!==a||Jt(o)!==l;return s&&(r=a,o=l),{width:r,height:o,$:s}}function Tn(e){return Te(e)?e:e.contextElement}function ct(e){const t=Tn(e);if(!ke(t))return Qe(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:a}=xo(t);let l=(a?Jt(r.width):r.width)/o,s=(a?Jt(r.height):r.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}var Vs=Qe(0);function $o(e){const t=he(e);return!On()||!t.visualViewport?Vs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function js(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function et(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Tn(e);let l=Qe(1);t&&(o?Te(o)&&(l=ct(o)):l=ct(e));const s=js(a,r,o)?$o(a):Qe(0);let c=(i.left+s.x)/l.x,u=(i.top+s.y)/l.y,h=i.width/l.x,g=i.height/l.y;if(a){const f=he(a),m=o&&Te(o)?he(o):o;let d=f.frameElement;for(;d&&o&&m!==f;){const y=ct(d),v=d.getBoundingClientRect(),x=xe(d),p=v.left+(d.clientLeft+parseFloat(x.paddingLeft))*y.x,b=v.top+(d.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,h*=y.x,g*=y.y,c+=p,u+=b,d=he(d).frameElement}}return tn({width:h,height:g,x:c,y:u})}function Hs(e){let{rect:t,offsetParent:r,strategy:o}=e;const i=ke(r),a=ze(r);if(r===a)return t;let l={scrollLeft:0,scrollTop:0},s=Qe(1);const c=Qe(0);if((i||!i&&o!=="fixed")&&((Ye(r)!=="body"||qt(a))&&(l=cn(r)),ke(r))){const u=et(r);s=ct(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+c.x,y:t.y*s.y-l.scrollTop*s.y+c.y}}function Qs(e){return Array.from(e.getClientRects())}function Co(e){return et(ze(e)).left+cn(e).scrollLeft}function Ws(e){const t=ze(e),r=cn(e),o=e.ownerDocument.body,i=me(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=me(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-r.scrollLeft+Co(e);const s=-r.scrollTop;return xe(o).direction==="rtl"&&(l+=me(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:s}}function Ys(e,t){const r=he(e),o=ze(e),i=r.visualViewport;let a=o.clientWidth,l=o.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;const u=On();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s,y:c}}function Xs(e,t){const r=et(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=ke(e)?ct(e):Qe(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=o*a.y;return{width:l,height:s,x:c,y:u}}function Ar(e,t,r){let o;if(t==="viewport")o=Ys(e,r);else if(t==="document")o=Ws(ze(e));else if(Te(t))o=Xs(t,r);else{const i=$o(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return tn(o)}function wo(e,t){const r=ut(e);return r===t||!Te(r)||ln(r)?!1:xe(r).position==="fixed"||wo(r,t)}function Zs(e,t){const r=t.get(e);if(r)return r;let o=Ft(e,[],!1).filter(s=>Te(s)&&Ye(s)!=="body"),i=null;const a=xe(e).position==="fixed";let l=a?ut(e):e;for(;Te(l)&&!ln(l);){const s=xe(l),c=qn(l);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qt(l)&&!c&&wo(e,l))?o=o.filter(h=>h!==l):i=s,l=ut(l)}return t.set(e,o),o}function Js(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const l=[...r==="clippingAncestors"?Zs(t,this._c):[].concat(r),o],s=l[0],c=l.reduce((u,h)=>{const g=Ar(t,h,i);return u.top=me(g.top,u.top),u.right=He(g.right,u.right),u.bottom=He(g.bottom,u.bottom),u.left=me(g.left,u.left),u},Ar(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ea(e){return xo(e)}function ta(e,t,r){const o=ke(t),i=ze(t),a=r==="fixed",l=et(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Qe(0);if(o||!o&&!a)if((Ye(t)!=="body"||qt(i))&&(s=cn(t)),o){const u=et(t,!0,a,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=Co(i));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function Mr(e,t){return!ke(e)||xe(e).position==="fixed"?null:t?t(e):e.offsetParent}function So(e,t){const r=he(e);if(!ke(e))return r;let o=Mr(e,t);for(;o&&Us(o)&&xe(o).position==="static";)o=Mr(o,t);return o&&(Ye(o)==="html"||Ye(o)==="body"&&xe(o).position==="static"&&!qn(o))?r:o||Gs(e)||r}var na=async function(e){let{reference:t,floating:r,strategy:o}=e;const i=this.getOffsetParent||So,a=this.getDimensions;return{reference:ta(t,await i(r),o),floating:{x:0,y:0,...await a(r)}}};function ra(e){return xe(e).direction==="rtl"}var Eo={convertOffsetParentRelativeRectToViewportRelativeRect:Hs,getDocumentElement:ze,getClippingRect:Js,getOffsetParent:So,getElementRects:na,getClientRects:Qs,getDimensions:ea,getScale:ct,isElement:Te,isRTL:ra};function oa(e,t){let r=null,o;const i=ze(e);function a(){clearTimeout(o),r&&r.disconnect(),r=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:u,top:h,width:g,height:f}=e.getBoundingClientRect();if(s||t(),!g||!f)return;const m=Ht(h),d=Ht(i.clientWidth-(u+g)),y=Ht(i.clientHeight-(h+f)),v=Ht(u),p={rootMargin:-m+"px "+-d+"px "+-y+"px "+-v+"px",threshold:me(0,He(1,c))||1};let b=!0;function C($){const A=$[0].intersectionRatio;if(A!==c){if(!b)return l();A?l(!1,A):o=setTimeout(()=>{l(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(C,{...p,root:i.ownerDocument})}catch{r=new IntersectionObserver(C,p)}r.observe(e)}return l(!0),a}function ia(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Tn(e),h=i||a?[...u?Ft(u):[],...Ft(t)]:[];h.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const g=u&&s?oa(u,r):null;let f=-1,m=null;l&&(m=new ResizeObserver(x=>{let[p]=x;p&&p.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let d,y=c?et(e):null;c&&v();function v(){const x=et(e);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,d=requestAnimationFrame(v)}return r(),()=>{h.forEach(x=>{i&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),g&&g(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(d)}}var sa=(e,t,r)=>{const o=new Map,i={platform:Eo,...r},a={...i.platform,_c:o};return qs(e,t,{...i,platform:a})};function wn(e){let t=e.startIndex??0;const r=e.startLevel??0,o=[],i=c=>{if(c==null)return"";const u=e.getKey??"key",h=st(u)?c[u]:u(c);return h!=null?String(h):""},a=c=>{if(c==null)return"";const u=e.getTextValue??"textValue",h=st(u)?c[u]:u(c);return h!=null?String(h):""},l=c=>{if(c==null)return!1;const u=e.getDisabled??"disabled";return(st(u)?c[u]:u(c))??!1},s=c=>{var u;if(c!=null)return st(e.getSectionChildren)?c[e.getSectionChildren]:(u=e.getSectionChildren)==null?void 0:u.call(e,c)};for(const c of e.dataSource){if(st(c)||es(c)){o.push({type:"item",rawValue:c,key:String(c),textValue:String(c),disabled:l(c),level:r,index:t}),t++;continue}if(s(c)!=null){o.push({type:"section",rawValue:c,key:"",textValue:"",disabled:!1,level:r,index:t}),t++;const u=s(c)??[];if(u.length>0){const h=wn({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:r+1});o.push(...h),t+=h.length}}else o.push({type:"item",rawValue:c,key:i(c),textValue:a(c),disabled:l(c),level:r,index:t}),t++}return o}function aa(e,t=[]){const r=wn({dataSource:w(e.dataSource),getKey:w(e.getKey),getTextValue:w(e.getTextValue),getDisabled:w(e.getDisabled),getSectionChildren:w(e.getSectionChildren)}),[o,i]=n.createSignal(e.factory(r));return n.createEffect(n.on([()=>w(e.dataSource),()=>w(e.getKey),()=>w(e.getTextValue),()=>w(e.getDisabled),()=>w(e.getSectionChildren),()=>e.factory,...t],([a,l,s,c,u,h])=>{const g=wn({dataSource:a,getKey:l,getTextValue:s,getDisabled:c,getSectionChildren:u});i(()=>h(g))},{defer:!0})),o}function Ot(e){var l;const[t,r]=n.createSignal((l=e.defaultValue)==null?void 0:l.call(e)),o=n.createMemo(()=>{var s;return((s=e.value)==null?void 0:s.call(e))!==void 0}),i=n.createMemo(()=>{var s;return o()?(s=e.value)==null?void 0:s.call(e):t()});return[i,s=>{n.untrack(()=>{var u;const c=Li(s,i());return Object.is(c,i())||(o()||r(c),(u=e.onChange)==null||u.call(e,c)),c})}]}function ko(e){const[t,r]=Ot(e);return[()=>t()??!1,r]}function la(e){const[t,r]=Ot(e);return[()=>t()??[],r]}function _o(e={}){const[t,r]=ko({value:()=>w(e.open),defaultValue:()=>!!w(e.defaultOpen),onChange:l=>{var s;return(s=e.onOpenChange)==null?void 0:s.call(e,l)}}),o=()=>{r(!0)},i=()=>{r(!1)};return{isOpen:t,setIsOpen:r,open:o,close:i,toggle:()=>{t()?i():o()}}}function ca(e){const t=r=>{var o;r.key===Mn.Escape&&((o=e.onEscapeKeyDown)==null||o.call(e,r))};n.createEffect(()=>{var o;if(w(e.isDisabled))return;const r=((o=e.ownerDocument)==null?void 0:o.call(e))??Se();r.addEventListener("keydown",t),n.onCleanup(()=>{r.removeEventListener("keydown",t)})})}var nn="data-kb-top-layer",Ao,Sn=!1,Re=[];function Dt(e){return Re.findIndex(t=>t.node===e)}function ua(e){return Re[Dt(e)]}function da(e){return Re[Re.length-1].node===e}function Mo(){return Re.filter(e=>e.isPointerBlocking)}function fa(){return[...Mo()].slice(-1)[0]}function Rn(){return Mo().length>0}function Po(e){var r;const t=Dt((r=fa())==null?void 0:r.node);return Dt(e)<t}function ga(e){Re.push(e)}function ma(e){const t=Dt(e);t<0||Re.splice(t,1)}function ha(){Re.forEach(({node:e})=>{e.style.pointerEvents=Po(e)?"none":"auto"})}function ya(e){if(Rn()&&!Sn){const t=Se(e);Ao=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Sn=!0}}function va(e){if(Rn())return;const t=Se(e);t.body.style.pointerEvents=Ao,t.body.style.length===0&&t.body.removeAttribute("style"),Sn=!1}var fe={layers:Re,isTopMostLayer:da,hasPointerBlockingLayer:Rn,isBelowPointerBlockingLayer:Po,addLayer:ga,removeLayer:ma,indexOf:Dt,find:ua,assignPointerEventToLayers:ha,disableBodyPointerEvents:ya,restoreBodyPointerEvents:va},gn="focusScope.autoFocusOnMount",mn="focusScope.autoFocusOnUnmount",Pr={bubbles:!1,cancelable:!0},Fr={stack:[],active(){return this.stack[0]},add(e){var t;e!==this.active()&&((t=this.active())==null||t.pause()),this.stack=pn(this.stack,e),this.stack.unshift(e)},remove(e){var t;this.stack=pn(this.stack,e),(t=this.active())==null||t.resume()}};function ba(e,t){const[r,o]=n.createSignal(!1),i={pause(){o(!0)},resume(){o(!1)}};let a=null;const l=d=>{var y;return(y=e.onMountAutoFocus)==null?void 0:y.call(e,d)},s=d=>{var y;return(y=e.onUnmountAutoFocus)==null?void 0:y.call(e,d)},c=()=>Se(t()),u=()=>{const d=c().createElement("span");return d.setAttribute("data-focus-trap",""),d.tabIndex=0,Object.assign(d.style,uo),d},h=()=>{const d=t();return d?lo(d,!0).filter(y=>!y.hasAttribute("data-focus-trap")):[]},g=()=>{const d=h();return d.length>0?d[0]:null},f=()=>{const d=h();return d.length>0?d[d.length-1]:null},m=()=>{const d=t();if(!d)return!1;const y=St(d);return!y||be(d,y)?!1:co(y)};n.createEffect(()=>{const d=t();if(!d)return;Fr.add(i);const y=St(d);if(!be(d,y)){const x=new CustomEvent(gn,Pr);d.addEventListener(gn,l),d.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{se(g()),St(d)===y&&se(d)},0)}n.onCleanup(()=>{d.removeEventListener(gn,l),setTimeout(()=>{const x=new CustomEvent(mn,Pr);m()&&x.preventDefault(),d.addEventListener(mn,s),d.dispatchEvent(x),x.defaultPrevented||se(y??c().body),d.removeEventListener(mn,s),Fr.remove(i)},0)})}),n.createEffect(()=>{const d=t();if(!d||!w(e.trapFocus)||r())return;const y=x=>{const p=x.target;p!=null&&p.closest(`[${nn}]`)||(be(d,p)?a=p:se(a))},v=x=>{const b=x.relatedTarget??St(d);b!=null&&b.closest(`[${nn}]`)||be(d,b)||se(a)};c().addEventListener("focusin",y),c().addEventListener("focusout",v),n.onCleanup(()=>{c().removeEventListener("focusin",y),c().removeEventListener("focusout",v)})}),n.createEffect(()=>{const d=t();if(!d||!w(e.trapFocus)||r())return;const y=u();d.insertAdjacentElement("afterbegin",y);const v=u();d.insertAdjacentElement("beforeend",v);function x(b){const C=g(),$=f();b.relatedTarget===C?se($):se(C)}y.addEventListener("focusin",x),v.addEventListener("focusin",x);const p=new MutationObserver(b=>{for(const C of b)C.previousSibling===v&&(v.remove(),d.insertAdjacentElement("beforeend",v)),C.nextSibling===y&&(y.remove(),d.insertAdjacentElement("afterbegin",y))});p.observe(d,{childList:!0,subtree:!1}),n.onCleanup(()=>{y.removeEventListener("focusin",x),v.removeEventListener("focusin",x),y.remove(),v.remove(),p.disconnect()})})}function pa(e,t){n.createEffect(n.on(e,r=>{if(r==null)return;const o=xa(r);o!=null&&(o.addEventListener("reset",t,{passive:!0}),n.onCleanup(()=>{o.removeEventListener("reset",t)}))}))}function xa(e){return $a(e)?e.form:e.closest("form")}function $a(e){return e.matches("textarea, input, select, button")}var Ca="data-live-announcer";function wa(e){n.createEffect(()=>{w(e.isDisabled)||n.onCleanup(Sa(w(e.targets),w(e.root)))})}var Ct=new WeakMap,ve=[];function Sa(e,t=document.body){const r=new Set(e),o=new Set,i=c=>{for(const f of c.querySelectorAll(`[${Ca}], [${nn}]`))r.add(f);const u=f=>{if(r.has(f)||f.parentElement&&o.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const m of r)if(f.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),g=u(c);if(g===NodeFilter.FILTER_ACCEPT&&a(c),g!==NodeFilter.FILTER_REJECT){let f=h.nextNode();for(;f!=null;)a(f),f=h.nextNode()}},a=c=>{const u=Ct.get(c)??0;c.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&c.setAttribute("aria-hidden","true"),o.add(c),Ct.set(c,u+1))};ve.length&&ve[ve.length-1].disconnect(),i(t);const l=new MutationObserver(c=>{for(const u of c)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...r,...o].some(h=>h.contains(u.target))){for(const h of u.removedNodes)h instanceof Element&&(r.delete(h),o.delete(h));for(const h of u.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?r.add(h):h instanceof Element&&i(h)}});l.observe(t,{childList:!0,subtree:!0});const s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return ve.push(s),()=>{l.disconnect();for(const c of o){const u=Ct.get(c);if(u==null)return;u===1?(c.removeAttribute("aria-hidden"),Ct.delete(c)):Ct.set(c,u-1)}s===ve[ve.length-1]?(ve.pop(),ve.length&&ve[ve.length-1].observe()):ve.splice(ve.indexOf(s),1)}}var Dr="interactOutside.pointerDownOutside",Ir="interactOutside.focusOutside";function Ea(e,t){let r,o=vs;const i=()=>Se(t()),a=g=>{var f;return(f=e.onPointerDownOutside)==null?void 0:f.call(e,g)},l=g=>{var f;return(f=e.onFocusOutside)==null?void 0:f.call(e,g)},s=g=>{var f;return(f=e.onInteractOutside)==null?void 0:f.call(e,g)},c=g=>{var m;const f=g.target;return!(f instanceof HTMLElement)||f.closest(`[${nn}]`)||!be(i(),f)||be(t(),f)?!1:!((m=e.shouldExcludeElement)!=null&&m.call(e,f))},u=g=>{function f(){const m=t(),d=g.target;if(!m||!d||!c(g))return;const y=te([a,s]);d.addEventListener(Dr,y,{once:!0});const v=new CustomEvent(Dr,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:g.button===2||ss(g)&&g.button===0}});d.dispatchEvent(v)}g.pointerType==="touch"?(i().removeEventListener("click",f),o=f,i().addEventListener("click",f,{once:!0})):f()},h=g=>{const f=t(),m=g.target;if(!f||!m||!c(g))return;const d=te([l,s]);m.addEventListener(Ir,d,{once:!0});const y=new CustomEvent(Ir,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:!1}});m.dispatchEvent(y)};n.createEffect(()=>{w(e.isDisabled)||(r=window.setTimeout(()=>{i().addEventListener("pointerdown",u,!0)},0),i().addEventListener("focusin",h,!0),n.onCleanup(()=>{window.clearTimeout(r),i().removeEventListener("click",o),i().removeEventListener("pointerdown",u,!0),i().removeEventListener("focusin",h,!0)}))})}function Fo(e){const[t,r]=n.createSignal();let o={},i=e(),a="none";const[l,s]=ka(e()?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.createEffect(n.on(l,c=>{const u=Qt(o);a=c==="mounted"?u:"none"})),n.createEffect(n.on(e,c=>{if(i===c)return;const u=Qt(o);c?s("MOUNT"):(o==null?void 0:o.display)==="none"?s("UNMOUNT"):s(i&&a!==u?"ANIMATION_OUT":"UNMOUNT"),i=c})),n.createEffect(n.on(t,c=>{if(c){const u=g=>{const m=Qt(o).includes(g.animationName);g.target===c&&m&&s("ANIMATION_END")},h=g=>{g.target===c&&(a=Qt(o))};c.addEventListener("animationstart",h),c.addEventListener("animationcancel",u),c.addEventListener("animationend",u),n.onCleanup(()=>{c.removeEventListener("animationstart",h),c.removeEventListener("animationcancel",u),c.removeEventListener("animationend",u)})}else s("ANIMATION_END")})),{isPresent:()=>["mounted","unmountSuspended"].includes(l()),setRef:c=>{c&&(o=getComputedStyle(c)),r(c)}}}function Qt(e){return(e==null?void 0:e.animationName)||"none"}function ka(e,t){const r=(l,s)=>t[l][s]??l,[o,i]=n.createSignal(e);return[o,l=>{i(s=>r(s,l))}]}var hn="data-kb-scroll-lock";function Lr(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function _a(e,t,r){if(!e)return()=>{};const o=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{o?e.style.setProperty(t,o):e.style.removeProperty(t)}}function Aa(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Ma(e){n.createEffect(()=>{if(!w(e.ownerRef)||w(e.isDisabled))return;const t=Se(w(e.ownerRef)),r=oo(w(e.ownerRef)),{documentElement:o,body:i}=t;if(i.hasAttribute(hn))return;i.setAttribute(hn,"");const l=r.innerWidth-o.clientWidth,s=()=>_a(o,"--scrollbar-width",`${l}px`),c=Aa(o),u=()=>Lr(i,{overflow:"hidden",[c]:`${l}px`}),h=()=>{const{scrollX:f,scrollY:m,visualViewport:d}=r,y=(d==null?void 0:d.offsetLeft)??0,v=(d==null?void 0:d.offsetTop)??0,x=Lr(i,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(v))}px`,left:`${-(f-Math.floor(y))}px`,right:"0",[c]:`${l}px`});return()=>{x(),r.scrollTo(f,m)}},g=An([s(),so()?h():u()]);n.onCleanup(()=>{g(),i.removeAttribute(hn)})})}function pe(e){return t=>(e(t),()=>e(void 0))}function zn(e,t){const[r,o]=n.createSignal(qr(t==null?void 0:t()));return n.createEffect(()=>{var i;o(((i=e())==null?void 0:i.tagName.toLowerCase())||qr(t==null?void 0:t()))}),r}function qr(e){return st(e)?e:void 0}function Pa(e={}){const[t,r]=ko({value:()=>w(e.isSelected),defaultValue:()=>!!w(e.defaultIsSelected),onChange:a=>{var l;return(l=e.onSelectedChange)==null?void 0:l.call(e,a)}});return{isSelected:t,setIsSelected:a=>{!w(e.isReadOnly)&&!w(e.isDisabled)&&r(a)},toggle:()=>{!w(e.isReadOnly)&&!w(e.isDisabled)&&r(!t())}}}var Fa=["id","name","validationState","required","disabled","readOnly"];function Da(e){const t=`form-control-${n.createUniqueId()}`;e=R({id:t},e);const[r,o]=n.createSignal(),[i,a]=n.createSignal(),[l,s]=n.createSignal(),[c,u]=n.createSignal(),h=(d,y,v)=>{const x=v!=null||r()!=null;return[v,r(),x&&y!=null?d:void 0].filter(Boolean).join(" ")||void 0},g=d=>[l(),c(),d].filter(Boolean).join(" ")||void 0,f=n.createMemo(()=>({"data-valid":w(e.validationState)==="valid"?"":void 0,"data-invalid":w(e.validationState)==="invalid"?"":void 0,"data-required":w(e.required)?"":void 0,"data-disabled":w(e.disabled)?"":void 0,"data-readonly":w(e.readOnly)?"":void 0}));return{formControlContext:{name:()=>w(e.name)??w(e.id),dataset:f,validationState:()=>w(e.validationState),isRequired:()=>w(e.required),isDisabled:()=>w(e.disabled),isReadOnly:()=>w(e.readOnly),labelId:r,fieldId:i,descriptionId:l,errorMessageId:c,getAriaLabelledBy:h,getAriaDescribedBy:g,generateId:It(()=>w(e.id)),registerLabel:pe(o),registerField:pe(a),registerDescription:pe(s),registerErrorMessage:pe(u)}}}var Do=n.createContext();function Tt(){const e=n.useContext(Do);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function H(e){var i;const[t,r]=n.splitProps(e,["asChild","as","children"]);if(!t.asChild)return n.createComponent(n.Dynamic,n.mergeProps({get component(){return t.as}},r,{get children(){return t.children}}));const o=n.children(()=>t.children);if(Or(o())){const a=Tr(r,((i=o())==null?void 0:i.props)??{});return n.createComponent(n.Dynamic,a)}if(ts(o())){const a=o().find(Or);if(a){const l=()=>n.createComponent(n.For,{get each(){return o()},children:c=>n.createComponent(n.Show,{when:c===a,fallback:c,get children(){return a.props.children}})}),s=Tr(r,(a==null?void 0:a.props)??{});return n.createComponent(n.Dynamic,n.mergeProps(s,{children:l}))}}throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}var Ia=Symbol("$$KobalteAsComponent");function Or(e){return(e==null?void 0:e[Ia])===!0}function Tr(e,t){return Zi([e,t],{reverseEventHandlers:!0})}function La(e){const t=Tt();return e=R({id:t.generateId("description")},e),n.createEffect(()=>n.onCleanup(t.registerDescription(e.id))),n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),e))}function qa(e){const t=Tt();e=R({id:t.generateId("error-message")},e);const[r,o]=n.splitProps(e,["forceMount"]),i=()=>t.validationState()==="invalid";return n.createEffect(()=>{i()&&n.onCleanup(t.registerErrorMessage(o.id))}),n.createComponent(n.Show,{get when(){return r.forceMount||i()},get children(){return n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),o))}})}function Oa(e){let t;const r=Tt();e=R({id:r.generateId("label")},e);const[o,i]=n.splitProps(e,["ref"]),a=zn(()=>t,()=>"label");return n.createEffect(()=>n.onCleanup(r.registerLabel(i.id))),n.createComponent(H,n.mergeProps({as:"label",ref(l){const s=ce(c=>t=c,o.ref);typeof s=="function"&&s(l)},get for(){return n.createMemo(()=>a()==="label")()?r.fieldId():void 0}},()=>r.dataset(),i))}var Ta=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ra=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function za(e){if(Intl.Locale){const r=new Intl.Locale(e).maximize().script??"";return Ta.has(r)}const t=e.split("-")[0];return Ra.has(t)}function Na(e){return za(e)?"rtl":"ltr"}function Io(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Na(e)}}var En=Io(),kt=new Set;function Rr(){En=Io();for(const e of kt)e(En)}function Ka(){const[e,t]=n.createSignal(En),r=n.createMemo(()=>e());return n.onMount(()=>{kt.size===0&&window.addEventListener("languagechange",Rr),kt.add(t),n.onCleanup(()=>{kt.delete(t),kt.size===0&&window.removeEventListener("languagechange",Rr)})}),{locale:()=>r().locale,direction:()=>r().direction}}var Ba=n.createContext();function ft(){const e=Ka();return n.useContext(Ba)||e}var yn=new Map;function Ua(e){const{locale:t}=ft(),r=n.createMemo(()=>t()+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():""));return n.createMemo(()=>{const o=r();let i;return yn.has(o)&&(i=yn.get(o)),i||(i=new Intl.Collator(t(),e),yn.set(o,i)),i})}var qe=class Lo extends Set{constructor(t,r,o){super(t),t instanceof Lo?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}};function Ga(e){const[t,r]=Ot(e);return[()=>t()??new qe,r]}function qo(e){return is()?e.altKey:e.ctrlKey}function at(e){return an()?e.metaKey:e.ctrlKey}function zr(e){return new qe(e)}function Va(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function ja(e){e=R({selectionMode:"none",selectionBehavior:"toggle"},e);const[t,r]=n.createSignal(!1),[o,i]=n.createSignal(),a=n.createMemo(()=>{const d=w(e.selectedKeys);return d!=null?zr(d):d}),l=n.createMemo(()=>{const d=w(e.defaultSelectedKeys);return d!=null?zr(d):new qe}),[s,c]=Ga({value:a,defaultValue:l,onChange:d=>{var y;return(y=e.onSelectionChange)==null?void 0:y.call(e,d)}}),[u,h]=n.createSignal(w(e.selectionBehavior)),g=()=>w(e.selectionMode),f=()=>w(e.disallowEmptySelection)??!1,m=d=>{(w(e.allowDuplicateSelectionEvents)||!Va(d,s()))&&c(d)};return n.createEffect(()=>{const d=s();w(e.selectionBehavior)==="replace"&&u()==="toggle"&&typeof d=="object"&&d.size===0&&h("replace")}),n.createEffect(()=>{h(w(e.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:u,setSelectionBehavior:h,isFocused:t,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:s,setSelectedKeys:m}}function Ha(e){const[t,r]=n.createSignal(""),[o,i]=n.createSignal(-1);return{typeSelectHandlers:{onKeyDown:l=>{var f;if(w(e.isDisabled))return;const s=w(e.keyboardDelegate),c=w(e.selectionManager);if(!s.getKeyForSearch)return;const u=Qa(l.key);if(!u||l.ctrlKey||l.metaKey)return;u===" "&&t().trim().length>0&&(l.preventDefault(),l.stopPropagation());let h=r(m=>m+=u),g=s.getKeyForSearch(h,c.focusedKey())??s.getKeyForSearch(h);g==null&&Wa(h)&&(h=h[0],g=s.getKeyForSearch(h,c.focusedKey())??s.getKeyForSearch(h)),g!=null&&(c.setFocusedKey(g),(f=e.onTypeSelect)==null||f.call(e,g)),clearTimeout(o()),i(window.setTimeout(()=>r(""),500))}}}}function Qa(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wa(e){return e.split("").every(t=>t===e[0])}function Ya(e,t,r){const o={selectOnFocus:()=>w(e.selectionManager).selectionBehavior()==="replace"};e=n.mergeProps(o,e);const i=()=>(r==null?void 0:r())??t(),{direction:a}=ft();let l={top:0,left:0};ji(()=>w(e.isVirtualized)?void 0:i(),"scroll",()=>{const d=i();d&&(l={top:d.scrollTop,left:d.scrollLeft})});const{typeSelectHandlers:s}=Ha({isDisabled:()=>w(e.disallowTypeAhead),keyboardDelegate:()=>w(e.keyboardDelegate),selectionManager:()=>w(e.selectionManager)}),c=d=>{var A,P,_,q,I,L,z,Q;V(d,s.onKeyDown),d.altKey&&d.key==="Tab"&&d.preventDefault();const y=t();if(!(y!=null&&y.contains(d.target)))return;const v=w(e.selectionManager),x=w(e.selectOnFocus),p=D=>{D!=null&&(v.setFocusedKey(D),d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&!qo(d)&&v.replaceSelection(D))},b=w(e.keyboardDelegate),C=w(e.shouldFocusWrap),$=v.focusedKey();switch(d.key){case"ArrowDown":{if(b.getKeyBelow){d.preventDefault();let D;$!=null?D=b.getKeyBelow($):D=(A=b.getFirstKey)==null?void 0:A.call(b),D==null&&C&&(D=(P=b.getFirstKey)==null?void 0:P.call(b,$)),p(D)}break}case"ArrowUp":{if(b.getKeyAbove){d.preventDefault();let D;$!=null?D=b.getKeyAbove($):D=(_=b.getLastKey)==null?void 0:_.call(b),D==null&&C&&(D=(q=b.getLastKey)==null?void 0:q.call(b,$)),p(D)}break}case"ArrowLeft":{if(b.getKeyLeftOf){d.preventDefault();const D=a()==="rtl";let O;$!=null?O=b.getKeyLeftOf($):O=D?(I=b.getFirstKey)==null?void 0:I.call(b):(L=b.getLastKey)==null?void 0:L.call(b),p(O)}break}case"ArrowRight":{if(b.getKeyRightOf){d.preventDefault();const D=a()==="rtl";let O;$!=null?O=b.getKeyRightOf($):O=D?(z=b.getLastKey)==null?void 0:z.call(b):(Q=b.getFirstKey)==null?void 0:Q.call(b),p(O)}break}case"Home":if(b.getFirstKey){d.preventDefault();const D=b.getFirstKey($,at(d));D!=null&&(v.setFocusedKey(D),at(d)&&d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&v.replaceSelection(D))}break;case"End":if(b.getLastKey){d.preventDefault();const D=b.getLastKey($,at(d));D!=null&&(v.setFocusedKey(D),at(d)&&d.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(D):x&&v.replaceSelection(D))}break;case"PageDown":if(b.getKeyPageBelow&&$!=null){d.preventDefault();const D=b.getKeyPageBelow($);p(D)}break;case"PageUp":if(b.getKeyPageAbove&&$!=null){d.preventDefault();const D=b.getKeyPageAbove($);p(D)}break;case"a":at(d)&&v.selectionMode()==="multiple"&&w(e.disallowSelectAll)!==!0&&(d.preventDefault(),v.selectAll());break;case"Escape":d.defaultPrevented||(d.preventDefault(),w(e.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!w(e.allowsTabNavigation)){if(d.shiftKey)y.focus();else{const D=ys(y,{tabbable:!0});let O,N;do N=D.lastChild(),N&&(O=N);while(N);O&&!O.contains(document.activeElement)&&se(O)}break}}},u=d=>{var p,b;const y=w(e.selectionManager),v=w(e.keyboardDelegate),x=w(e.selectOnFocus);if(y.isFocused()){d.currentTarget.contains(d.target)||y.setFocused(!1);return}if(d.currentTarget.contains(d.target)){if(y.setFocused(!0),y.focusedKey()==null){const C=A=>{A!=null&&(y.setFocusedKey(A),x&&y.replaceSelection(A))},$=d.relatedTarget;$&&d.currentTarget.compareDocumentPosition($)&Node.DOCUMENT_POSITION_FOLLOWING?C(y.lastSelectedKey()??((p=v.getLastKey)==null?void 0:p.call(v))):C(y.firstSelectedKey()??((b=v.getFirstKey)==null?void 0:b.call(v)))}else if(!w(e.isVirtualized)){const C=i();if(C){C.scrollTop=l.top,C.scrollLeft=l.left;const $=C.querySelector(`[data-key="${y.focusedKey()}"]`);$&&(se($),Cr(C,$))}}}},h=d=>{const y=w(e.selectionManager);d.currentTarget.contains(d.relatedTarget)||y.setFocused(!1)},g=d=>{i()===d.target&&d.preventDefault()},f=()=>{var C,$;const d=w(e.autoFocus);if(!d)return;const y=w(e.selectionManager),v=w(e.keyboardDelegate);let x;d==="first"&&(x=(C=v.getFirstKey)==null?void 0:C.call(v)),d==="last"&&(x=($=v.getLastKey)==null?void 0:$.call(v));const p=y.selectedKeys();p.size&&(x=p.values().next().value),y.setFocused(!0),y.setFocusedKey(x);const b=t();b&&x==null&&!w(e.shouldUseVirtualFocus)&&se(b)};return n.onMount(()=>{e.deferAutoFocus?setTimeout(f,0):f()}),n.createEffect(n.on([i,()=>w(e.isVirtualized),()=>w(e.selectionManager).focusedKey()],d=>{var p;const[y,v,x]=d;if(v)x&&((p=e.scrollToKey)==null||p.call(e,x));else if(x&&y){const b=y.querySelector(`[data-key="${x}"]`);b&&Cr(y,b)}})),{tabIndex:n.createMemo(()=>{if(!w(e.shouldUseVirtualFocus))return w(e.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:g,onFocusIn:u,onFocusOut:h}}function Oo(e,t){const r=()=>w(e.selectionManager),o=()=>w(e.key),i=()=>w(e.shouldUseVirtualFocus),a=p=>{r().selectionMode()!=="none"&&(r().selectionMode()==="single"?r().isSelected(o())&&!r().disallowEmptySelection()?r().toggleSelection(o()):r().replaceSelection(o()):p&&p.shiftKey?r().extendSelection(o()):r().selectionBehavior()==="toggle"||at(p)||"pointerType"in p&&p.pointerType==="touch"?r().toggleSelection(o()):r().replaceSelection(o()))},l=()=>r().isSelected(o()),s=()=>w(e.disabled)||r().isDisabled(o()),c=()=>!s()&&r().canSelectItem(o());let u=null;const h=p=>{c()&&(u=p.pointerType,p.pointerType==="mouse"&&p.button===0&&!w(e.shouldSelectOnPressUp)&&a(p))},g=p=>{c()&&p.pointerType==="mouse"&&p.button===0&&w(e.shouldSelectOnPressUp)&&w(e.allowsDifferentPressOrigin)&&a(p)},f=p=>{c()&&(w(e.shouldSelectOnPressUp)&&!w(e.allowsDifferentPressOrigin)||u!=="mouse")&&a(p)},m=p=>{!c()||!["Enter"," "].includes(p.key)||(qo(p)?r().toggleSelection(o()):a(p))},d=p=>{s()&&p.preventDefault()},y=p=>{const b=t();i()||s()||!b||p.target===b&&r().setFocusedKey(o())},v=n.createMemo(()=>{if(!(i()||s()))return o()===r().focusedKey()?0:-1}),x=n.createMemo(()=>w(e.virtualized)?void 0:o());return n.createEffect(n.on([t,o,i,()=>r().focusedKey(),()=>r().isFocused()],([p,b,C,$,A])=>{p&&b===$&&A&&!C&&document.activeElement!==p&&(e.focus?e.focus():se(p))})),{isSelected:l,isDisabled:s,allowsSelection:c,tabIndex:v,dataKey:x,onPointerDown:h,onPointerUp:g,onClick:f,onKeyDown:m,onMouseDown:d,onFocus:y}}var Xa=class{constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const r=this.collection().getItem(t),o=(r==null?void 0:r.index)!=null&&(e==null?void 0:e.index)!=null&&r.index<e.index;(!e||o)&&(e=r)}return e==null?void 0:e.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const r=this.collection().getItem(t),o=(r==null?void 0:r.index)!=null&&(e==null?void 0:e.index)!=null&&r.index>e.index;(!e||o)&&(e=r)}return e==null?void 0:e.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const r=this.state.selectedKeys(),o=r.anchorKey||t,i=new qe(r,o,t);for(const a of this.getKeyRange(o,r.currentKey||t))i.delete(a);for(const a of this.getKeyRange(t,o))this.canSelectItem(a)&&i.add(a);this.state.setSelectedKeys(i)}getKeyRange(e,t){const r=this.collection().getItem(e),o=this.collection().getItem(t);return r&&o?r.index!=null&&o.index!=null&&r.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const r=[];let o=e;for(;o!=null;){const i=this.collection().getItem(o);if(i&&i.type==="item"&&r.push(o),o===t)return r;o=this.collection().getKeyAfter(o)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const r=new qe(this.state.selectedKeys());r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection()&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const r=this.canSelectItem(t)?new qe([t],t,t):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new qe;for(const r of e){const o=this.getKey(r);if(o!=null&&(t.add(o),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;for(const r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(r=>{for(;r!=null;){if(this.canSelectItem(r)){const o=this.collection().getItem(r);if(!o)continue;o.type==="item"&&e.push(r)}r=this.collection().getKeyAfter(r)}})(this.collection().getFirstKey()),e}},Nr=class{constructor(e){ar(this,"keyMap",new Map);this.iterable=e;for(const o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,r=0;for(const[o,i]of this.keyMap)t?(t.nextKey=o,i.prevKey=t.key):(this.firstKey=o,i.prevKey=void 0),i.type==="item"&&(i.index=r++),t=i,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.prevKey}getKeyAfter(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Za(e){const t=ja(e),o=aa({dataSource:()=>w(e.dataSource),getKey:()=>w(e.getKey),getTextValue:()=>w(e.getTextValue),getDisabled:()=>w(e.getDisabled),getSectionChildren:()=>w(e.getSectionChildren),factory:a=>e.filter?new Nr(e.filter(a)):new Nr(a)},[()=>e.filter]),i=new Xa(o,t);return n.createComputed(()=>{const a=t.focusedKey();a!=null&&!o().getItem(a)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>i}}var Ja=class{constructor(e,t,r){this.collection=e,this.ref=t,this.collator=r}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const r=this.collection().getItem(t);if(r&&r.type==="item"&&!r.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const r=this.collection().getItem(t);if(r&&r.type==="item"&&!r.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){var t,r;return((r=(t=this.ref)==null?void 0:t.call(this))==null?void 0:r.querySelector(`[data-key="${e}"]`))??null}getKeyPageAbove(e){var a;const t=(a=this.ref)==null?void 0:a.call(this);let r=this.getItem(e);if(!t||!r)return;const o=Math.max(0,r.offsetTop+r.offsetHeight-t.offsetHeight);let i=e;for(;i&&r&&r.offsetTop>o;)i=this.getKeyAbove(i),r=i!=null?this.getItem(i):null;return i}getKeyPageBelow(e){var a;const t=(a=this.ref)==null?void 0:a.call(this);let r=this.getItem(e);if(!t||!r)return;const o=Math.min(t.scrollHeight,r.offsetTop-r.offsetHeight+t.offsetHeight);let i=e;for(;i&&r&&r.offsetTop<o;)i=this.getKeyBelow(i),r=i!=null?this.getItem(i):null;return i}getKeyForSearch(e,t){var i;const r=(i=this.collator)==null?void 0:i.call(this);if(!r)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){const a=this.collection().getItem(o);if(a){const l=a.textValue.slice(0,e.length);if(a.textValue&&r.compare(l,e)===0)return o}o=this.getKeyBelow(o)}}};function el(e,t,r){const o=Ua({usage:"search",sensitivity:"base"}),i=n.createMemo(()=>{const a=w(e.keyboardDelegate);return a||new Ja(e.collection,t,o)});return Ya({selectionManager:()=>w(e.selectionManager),keyboardDelegate:i,autoFocus:()=>w(e.autoFocus),deferAutoFocus:()=>w(e.deferAutoFocus),shouldFocusWrap:()=>w(e.shouldFocusWrap),disallowEmptySelection:()=>w(e.disallowEmptySelection),selectOnFocus:()=>w(e.selectOnFocus),disallowTypeAhead:()=>w(e.disallowTypeAhead),shouldUseVirtualFocus:()=>w(e.shouldUseVirtualFocus),allowsTabNavigation:()=>w(e.allowsTabNavigation),isVirtualized:()=>w(e.isVirtualized),scrollToKey:a=>{var l;return(l=w(e.scrollToKey))==null?void 0:l(a)}},t,r)}ws({toasts:[]});var tl=["button","color","file","image","reset","submit"];function nl(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?tl.indexOf(e.type)!==-1:!1}function rl(e){let t;e=R({type:"button"},e);const[r,o]=n.splitProps(e,["ref","type","disabled"]),i=zn(()=>t,()=>"button"),a=n.createMemo(()=>{const c=i();return c==null?!1:nl({tagName:c,type:r.type})}),l=n.createMemo(()=>i()==="input"),s=n.createMemo(()=>i()==="a"&&(t==null?void 0:t.getAttribute("href"))!=null);return n.createComponent(H,n.mergeProps({as:"button",ref(c){const u=ce(h=>t=h,r.ref);typeof u=="function"&&u(c)},get type(){return a()||l()?r.type:void 0},get role(){return!a()&&!s()?"button":void 0},get tabIndex(){return!a()&&!s()&&!r.disabled?0:void 0},get disabled(){return a()||l()?r.disabled:void 0},get"aria-disabled"(){return!a()&&!l()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var To=n.createContext();function Ro(){return n.useContext(To)}function ol(){const e=Ro();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function zo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function il(e,t){var i;const r=t.ref();if(!r)return-1;let o=e.length;if(!o)return-1;for(;o--;){const a=(i=e[o])==null?void 0:i.ref();if(a&&zo(a,r))return o+1}return 0}function sl(e){const t=e.map((o,i)=>[i,o]);let r=!1;return t.sort(([o,i],[a,l])=>{const s=i.ref(),c=l.ref();return s===c||!s||!c?0:zo(s,c)?(o>a&&(r=!0),-1):(o<a&&(r=!0),1)}),r?t.map(([o,i])=>i):e}function No(e,t){const r=sl(e);e!==r&&t(r)}function al(e){var i,a;const t=e[0],r=(i=e[e.length-1])==null?void 0:i.ref();let o=(a=t==null?void 0:t.ref())==null?void 0:a.parentElement;for(;o;){if(r&&o.contains(r))return o;o=o.parentElement}return Se(o).body}function ll(e,t){n.createEffect(()=>{const r=setTimeout(()=>{No(e(),t)});n.onCleanup(()=>clearTimeout(r))})}function cl(e,t){if(typeof IntersectionObserver!="function"){ll(e,t);return}let r=[];n.createEffect(()=>{const o=()=>{const l=!!r.length;r=e(),l&&No(e(),t)},i=al(e()),a=new IntersectionObserver(o,{root:i});e().forEach(l=>{const s=l.ref();s&&a.observe(s)}),n.onCleanup(()=>a.disconnect())})}function ul(e={}){const[t,r]=la({value:()=>w(e.items),onChange:a=>{var l;return(l=e.onItemsChange)==null?void 0:l.call(e,a)}});cl(t,r);const o=a=>(r(l=>{const s=il(l,a);return Ji(l,a,s)}),()=>{r(l=>{const s=l.filter(c=>c.ref()!==a.ref());return l.length===s.length?l:s})});return{DomCollectionProvider:a=>n.createComponent(To.Provider,{value:{registerItem:o},get children(){return a.children}})}}function dl(e){const t=ol();e=R({shouldRegisterItem:!0},e),n.createEffect(()=>{if(!e.shouldRegisterItem)return;const r=t.registerItem(e.getItem());n.onCleanup(r)})}var Ko=n.createContext();function fl(){return n.useContext(Ko)}function gl(e){let t;const r=fl(),[o,i]=n.splitProps(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),a=new Set([]),l=g=>{a.add(g);const f=r==null?void 0:r.registerNestedLayer(g);return()=>{a.delete(g),f==null||f()}};Ea({shouldExcludeElement:g=>{var f;return t?((f=o.excludedElements)==null?void 0:f.some(m=>be(m(),g)))||[...a].some(m=>be(m,g)):!1},onPointerDownOutside:g=>{var f,m,d;!t||fe.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!fe.isTopMostLayer(t)||((f=o.onPointerDownOutside)==null||f.call(o,g),(m=o.onInteractOutside)==null||m.call(o,g),g.defaultPrevented||(d=o.onDismiss)==null||d.call(o))},onFocusOutside:g=>{var f,m,d;(f=o.onFocusOutside)==null||f.call(o,g),(m=o.onInteractOutside)==null||m.call(o,g),g.defaultPrevented||(d=o.onDismiss)==null||d.call(o)}},()=>t),ca({ownerDocument:()=>Se(t),onEscapeKeyDown:g=>{var f;!t||!fe.isTopMostLayer(t)||((f=o.onEscapeKeyDown)==null||f.call(o,g),!g.defaultPrevented&&o.onDismiss&&(g.preventDefault(),o.onDismiss()))}}),n.onMount(()=>{if(!t)return;fe.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});const g=r==null?void 0:r.registerNestedLayer(t);fe.assignPointerEventToLayers(),fe.disableBodyPointerEvents(t),n.onCleanup(()=>{t&&(fe.removeLayer(t),g==null||g(),fe.assignPointerEventToLayers(),fe.restoreBodyPointerEvents(t))})}),n.createEffect(n.on([()=>t,()=>o.disableOutsidePointerEvents],([g,f])=>{if(!g)return;const m=fe.find(g);m&&m.isPointerBlocking!==f&&(m.isPointerBlocking=f,fe.assignPointerEventToLayers()),f&&fe.disableBodyPointerEvents(g),n.onCleanup(()=>{fe.restoreBodyPointerEvents(g)})},{defer:!0}));const h={registerNestedLayer:l};return n.createComponent(Ko.Provider,{value:h,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(g){const f=ce(m=>t=m,o.ref);typeof f=="function"&&f(g)}},i))}})}var Bo=n.createContext();function Uo(){const e=n.useContext(Bo);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var ml=n.template('<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),kn=30,Kr=kn/2,hl={top:180,right:-90,bottom:0,left:90};function yl(e){const t=Uo();e=R({size:kn},e);const[r,o]=n.splitProps(e,["ref","style","children","size"]),i=()=>t.currentPlacement().split("-")[0],a=vl(t.contentRef),l=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue("background-color"))||"none"},s=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue(`border-${i()}-color`))||"none"},c=()=>{var g;return((g=a())==null?void 0:g.getPropertyValue(`border-${i()}-width`))||"0px"},u=()=>parseInt(c())*2*(kn/r.size),h=()=>`rotate(${hl[i()]} ${Kr} ${Kr})`;return n.createComponent(H,n.mergeProps({as:"div",ref(g){const f=ce(t.setArrowRef,r.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return{position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:l(),stroke:s(),"stroke-width":u(),...r.style}}},o,{get children(){const g=ml(),f=g.firstChild;return f.firstChild.nextSibling,n.createRenderEffect(()=>n.setAttribute(f,"transform",h())),g}}))}function vl(e){const[t,r]=n.createSignal();return n.createEffect(()=>{const o=e();o&&r(oo(o).getComputedStyle(o))}),t}function bl(e){const t=Uo(),[r,o]=n.splitProps(e,["ref","style"]);return n.createComponent(H,n.mergeProps({as:"div",ref(i){const a=ce(t.setPositionerRef,r.ref);typeof a=="function"&&a(i)},"data-popper-positioner":"",get style(){return{position:"absolute",top:0,left:0,"min-width":"max-content",...r.style}}},o))}function Br(e){const{x:t=0,y:r=0,width:o=0,height:i=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,r,o,i);const a={x:t,y:r,width:o,height:i,top:r,right:t+o,bottom:r+i,left:t};return{...a,toJSON:()=>a}}function pl(e,t){return{contextElement:e,getBoundingClientRect:()=>{const o=t(e);return o?Br(o):e?e.getBoundingClientRect():Br()}}}function xl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var $l={top:"bottom",right:"left",bottom:"top",left:"right"};function Cl(e,t){const[r,o]=e.split("-"),i=$l[r];return o?r==="left"||r==="right"?`${i} ${o==="start"?"top":"bottom"}`:o==="start"?`${i} ${t==="rtl"?"right":"left"}`:`${i} ${t==="rtl"?"left":"right"}`:`${i} center`}function wl(e){e=R({getAnchorRect:g=>g==null?void 0:g.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e);const[t,r]=n.createSignal(),[o,i]=n.createSignal(),[a,l]=n.createSignal(e.placement),s=()=>pl(e.anchorRef(),e.getAnchorRect),{direction:c}=ft();async function u(){var $,A;const g=s(),f=t(),m=o();if(!g||!f)return;const d=((m==null?void 0:m.clientHeight)||0)/2,y=typeof e.gutter=="number"?e.gutter+d:e.gutter??d;f.style.setProperty("--kb-popper-content-overflow-padding",`${e.overflowPadding}px`),g.getBoundingClientRect();const v=[Ns(({placement:P})=>{const _=!!P.split("-")[1];return{mainAxis:y,crossAxis:_?void 0:e.shift,alignmentAxis:e.shift}})];if(e.flip!==!1){const P=typeof e.flip=="string"?e.flip.split(" "):void 0;if(P!==void 0&&!P.every(xl))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(Ts({padding:e.overflowPadding,fallbackPlacements:P}))}(e.slide||e.overlap)&&v.push(Ks({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})),v.push(Bs({padding:e.overflowPadding,apply({availableWidth:P,availableHeight:_,rects:q}){const I=Math.round(q.reference.width);P=Math.floor(P),_=Math.floor(_),f.style.setProperty("--kb-popper-anchor-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-width",`${P}px`),f.style.setProperty("--kb-popper-content-available-height",`${_}px`),e.sameWidth&&(f.style.width=`${I}px`),e.fitViewport&&(f.style.maxWidth=`${P}px`,f.style.maxHeight=`${_}px`)}})),e.hideWhenDetached&&v.push(Rs({padding:e.detachedPadding})),m&&v.push(Os({element:m,padding:e.arrowPadding}));const x=await sa(g,f,{placement:e.placement,strategy:"absolute",middleware:v,platform:{...Eo,isRTL:()=>c()==="rtl"}});if(l(x.placement),($=e.onCurrentPlacementChange)==null||$.call(e,x.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",Cl(x.placement,c()));const p=Math.round(x.x),b=Math.round(x.y);let C;if(e.hideWhenDetached&&(C=(A=x.middlewareData.hide)!=null&&A.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${p}px, ${b}px, 0)`,visibility:C}),m&&x.middlewareData.arrow){const{x:P,y:_}=x.middlewareData.arrow,q=x.placement.split("-")[0];Object.assign(m.style,{left:P!=null?`${P}px`:"",top:_!=null?`${_}px`:"",[q]:"100%"})}}n.createEffect(()=>{const g=s(),f=t();if(!g||!f)return;const m=ia(g,f,u,{elementResize:typeof ResizeObserver=="function"});n.onCleanup(m)}),n.createEffect(()=>{const g=t(),f=e.contentRef();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});const h={currentPlacement:a,contentRef:()=>e.contentRef(),setPositionerRef:r,setArrowRef:i};return n.createComponent(Bo.Provider,{value:h,get children(){return e.children}})}var Go=n.createContext();function Vo(){return n.useContext(Go)}function Ne(){const e=Vo();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var jo=n.createContext();function Ke(){const e=n.useContext(jo);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Sl(e,t,r){const o=e.split("-")[0],i=r.getBoundingClientRect(),a=[],l=t.clientX,s=t.clientY;switch(o){case"top":a.push([l,s+5]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]);break;case"right":a.push([l-5,s]),a.push([i.left,i.top]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]);break;case"bottom":a.push([l,s-5]),a.push([i.right,i.top]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]);break;case"left":a.push([l+5,s]),a.push([i.right,i.bottom]),a.push([i.left,i.bottom]),a.push([i.left,i.top]),a.push([i.right,i.top]);break}return a}function El(e,t){return t?bs([e.clientX,e.clientY],t):!1}function Ho(e){const t=Ke(),r=Ro(),o=Vo();e=R({placement:"bottom-start"},e);const[i,a]=n.splitProps(e,["open","defaultOpen","onOpenChange"]);let l=0,s=null,c="right";const[u,h]=n.createSignal(),[g,f]=n.createSignal(),[m,d]=n.createSignal(),[y,v]=n.createSignal(),[x,p]=n.createSignal(!0),[b,C]=n.createSignal(a.placement),[$,A]=n.createSignal([]),[P,_]=n.createSignal([]),{DomCollectionProvider:q}=ul({items:P,onItemsChange:_}),I=_o({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:S=>{var T;return(T=i.onOpenChange)==null?void 0:T.call(i,S)}}),L=Fo(()=>t.forceMount()||I.isOpen()),z=Za({selectionMode:"none",dataSource:P}),Q=S=>{p(S),I.open()},D=(S=!1)=>{I.close(),S&&o&&o.close(!0)},O=S=>{p(S),I.toggle()},N=()=>{const S=y();S&&(se(S),z.selectionManager().setFocused(!0),z.selectionManager().setFocusedKey(void 0))},B=S=>{A(K=>[...K,S]);const T=o==null?void 0:o.registerNestedMenu(S);return()=>{A(K=>pn(K,S)),T==null||T()}},G=S=>c===(s==null?void 0:s.side)&&El(S,s==null?void 0:s.area),Y=S=>{G(S)&&S.preventDefault()},ue=S=>{G(S)||N()},X=S=>{G(S)&&S.preventDefault()};wa({isDisabled:()=>!(o==null&&I.isOpen()&&t.isModal()),targets:()=>[y(),...$()].filter(Boolean)}),n.createEffect(()=>{const S=y();if(!S||!o)return;const T=o.registerNestedMenu(S);n.onCleanup(()=>{T()})});const oe={dataset:n.createMemo(()=>({"data-expanded":I.isOpen()?"":void 0,"data-closed":I.isOpen()?void 0:""})),isOpen:I.isOpen,contentPresence:L,currentPlacement:b,pointerGraceTimeoutId:()=>l,autoFocus:x,listState:()=>z,parentMenuContext:()=>o,triggerRef:m,contentRef:y,triggerId:u,contentId:g,setTriggerRef:d,setContentRef:v,open:Q,close:D,toggle:O,focusContent:N,onItemEnter:Y,onItemLeave:ue,onTriggerLeave:X,setPointerDir:S=>c=S,setPointerGraceTimeoutId:S=>l=S,setPointerGraceIntent:S=>s=S,registerNestedMenu:B,registerItemToParentDomCollection:r==null?void 0:r.registerItem,registerTriggerId:pe(h),registerContentId:pe(f)};return n.createComponent(q,{get children(){return n.createComponent(Go.Provider,{value:oe,get children(){return n.createComponent(wl,n.mergeProps({anchorRef:m,contentRef:y,onCurrentPlacementChange:C},a))}})}})}var Qo=n.createContext();function Nn(){const e=n.useContext(Qo);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Kn(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`item-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[l,s]=n.createSignal(),[c,u]=n.createSignal(),[h,g]=n.createSignal(),f=()=>o.listState().selectionManager(),m=()=>a.id,d=()=>f().focusedKey()===m(),y=()=>{var _;(_=i.onSelect)==null||_.call(i),i.closeOnSelect&&o.close(!0)};dl({getItem:()=>{var _;return{ref:()=>t,type:"item",key:m(),textValue:i.textValue??((_=h())==null?void 0:_.textContent)??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1}}});const v=Oo({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),x=_=>{V(_,i.onPointerMove),_.pointerType==="mouse"&&(i.disabled?o.onItemLeave(_):(o.onItemEnter(_),_.defaultPrevented||(se(_.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},p=_=>{V(_,i.onPointerLeave),_.pointerType==="mouse"&&o.onItemLeave(_)},b=_=>{V(_,i.onPointerUp),!i.disabled&&_.button===0&&y()},C=_=>{if(V(_,i.onKeyDown),!_.repeat&&!i.disabled)switch(_.key){case"Enter":case" ":y();break}},$=n.createMemo(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),A=n.createMemo(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":d()?"":void 0})),P={isChecked:()=>i.checked,dataset:A,setLabelRef:g,generateId:It(()=>a.id),registerLabel:pe(s),registerDescription:pe(u)};return n.createComponent(Qo.Provider,{value:P,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(_){const q=ce(I=>t=I,i.ref);typeof q=="function"&&q(_)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return $()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return l()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return te([i.onPointerDown,v.onPointerDown])},get onPointerUp(){return te([b,v.onPointerUp])},get onClick(){return te([i.onClick,v.onClick])},get onKeyDown(){return te([C,v.onKeyDown])},get onMouseDown(){return te([i.onMouseDown,v.onMouseDown])},get onFocus(){return te([i.onFocus,v.onFocus])},onPointerMove:x,onPointerLeave:p},A,a))}})}function kl(e){e=R({closeOnSelect:!1},e);const[t,r]=n.splitProps(e,["checked","defaultChecked","onChange","onSelect"]),o=Pa({isSelected:()=>t.checked,defaultIsSelected:()=>t.defaultChecked,onSelectedChange:a=>{var l;return(l=t.onChange)==null?void 0:l.call(t,a)},isDisabled:()=>r.disabled}),i=()=>{var a;(a=t.onSelect)==null||a.call(t),o.toggle()};return n.createComponent(Kn,n.mergeProps({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:i},r))}function Wo(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`content-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let l=0;const s=()=>o.parentMenuContext()==null&&r.isModal(),c=el({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused()},()=>t);ba({trapFocus:()=>s()&&o.isOpen(),onMountAutoFocus:i.onOpenAutoFocus,onUnmountAutoFocus:i.onCloseAutoFocus},()=>t);const u=d=>{be(d.currentTarget,d.target)&&d.key==="Tab"&&o.isOpen()&&d.preventDefault()},h=d=>{var y;(y=i.onEscapeKeyDown)==null||y.call(i,d),o.close(!0)},g=d=>{var y;(y=i.onFocusOutside)==null||y.call(i,d),r.isModal()&&d.preventDefault()},f=d=>{var y,v;V(d,i.onPointerEnter),o.isOpen()&&((y=o.parentMenuContext())==null||y.listState().selectionManager().setFocused(!1),(v=o.parentMenuContext())==null||v.listState().selectionManager().setFocusedKey(void 0))},m=d=>{if(V(d,i.onPointerMove),d.pointerType!=="mouse")return;const y=d.target,v=l!==d.clientX;be(d.currentTarget,y)&&v&&(o.setPointerDir(d.clientX>l?"right":"left"),l=d.clientX)};return n.createEffect(()=>n.onCleanup(o.registerContentId(i.id))),n.createComponent(n.Show,{get when(){return o.contentPresence.isPresent()},get children(){return n.createComponent(bl,{get children(){return n.createComponent(gl,n.mergeProps({ref(d){const y=ce(v=>{o.setContentRef(v),o.contentPresence.setRef(v),t=v},i.ref);typeof y=="function"&&y(d)},role:"menu",get id(){return i.id},get tabIndex(){return c.tabIndex()},get disableOutsidePointerEvents(){return n.createMemo(()=>!!s())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return{"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...i.style}},get"aria-labelledby"(){return o.triggerId()},onEscapeKeyDown:h,onFocusOutside:g,get onDismiss(){return o.close},get onKeyDown(){return te([i.onKeyDown,c.onKeyDown,u])},get onMouseDown(){return te([i.onMouseDown,c.onMouseDown])},get onFocusIn(){return te([i.onFocusIn,c.onFocusIn])},get onFocusOut(){return te([i.onFocusOut,c.onFocusOut])},onPointerEnter:f,onPointerMove:m},()=>o.dataset(),a))}})}})}function _l(e){let t;const r=Ke(),o=Ne(),[i,a]=n.splitProps(e,["ref"]);return Ma({ownerRef:()=>t,isDisabled:()=>!(o.isOpen()&&(r.isModal()||r.preventScroll()))}),n.createComponent(Wo,n.mergeProps({ref(l){const s=ce(c=>t=c,i.ref);typeof s=="function"&&s(l)}},a))}var Yo=n.createContext();function Al(){const e=n.useContext(Yo);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Xo(e){const t=Ke();e=R({id:t.generateId(`group-${n.createUniqueId()}`)},e);const[r,o]=n.createSignal(),i={generateId:It(()=>e.id),registerLabelId:pe(o)};return n.createComponent(Yo.Provider,{value:i,get children(){return n.createComponent(H,n.mergeProps({as:"div",role:"group",get"aria-labelledby"(){return r()}},e))}})}function Ml(e){const t=Al();e=R({id:t.generateId("label")},e);const[r,o]=n.splitProps(e,["id"]);return n.createEffect(()=>n.onCleanup(t.registerLabelId(r.id))),n.createComponent(H,n.mergeProps({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Pl(e){const t=Ne();return e=R({children:"▼"},e),n.createComponent(H,n.mergeProps({as:"span","aria-hidden":"true"},()=>t.dataset(),e))}function Fl(e){return n.createComponent(Kn,n.mergeProps({role:"menuitem",closeOnSelect:!0},e))}function Dl(e){const t=Nn();e=R({id:t.generateId("description")},e);const[r,o]=n.splitProps(e,["id"]);return n.createEffect(()=>n.onCleanup(t.registerDescription(r.id))),n.createComponent(H,n.mergeProps({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function Il(e){const t=Nn();e=R({id:t.generateId("indicator")},e);const[r,o]=n.splitProps(e,["forceMount"]);return n.createComponent(n.Show,{get when(){return r.forceMount||t.isChecked()},get children(){return n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),o))}})}function Ll(e){const t=Nn();e=R({id:t.generateId("label")},e);const[r,o]=n.splitProps(e,["ref","id"]);return n.createEffect(()=>n.onCleanup(t.registerLabel(r.id))),n.createComponent(H,n.mergeProps({as:"div",ref(i){const a=ce(t.setLabelRef,r.ref);typeof a=="function"&&a(i)},get id(){return r.id}},()=>t.dataset(),o))}function ql(e){const t=Ne();return n.createComponent(n.Show,{get when(){return t.contentPresence.isPresent()},get children(){return n.createComponent(n.Portal,e)}})}var Zo=n.createContext();function Ol(){const e=n.useContext(Zo);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Tl(e){const r=Ke().generateId(`radiogroup-${n.createUniqueId()}`);e=R({id:r},e);const[o,i]=n.splitProps(e,["value","defaultValue","onChange","disabled"]),[a,l]=Ot({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>{var u;return(u=o.onChange)==null?void 0:u.call(o,c)}}),s={isDisabled:()=>o.disabled,isSelectedValue:c=>c===a(),setSelectedValue:l};return n.createComponent(Zo.Provider,{value:s,get children(){return n.createComponent(Xo,i)}})}function Rl(e){const t=Ol();e=R({closeOnSelect:!1},e);const[r,o]=n.splitProps(e,["value","onSelect"]),i=()=>{var a;(a=r.onSelect)==null||a.call(r),t.setSelectedValue(r.value)};return n.createComponent(Kn,n.mergeProps({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:i},o))}function zl(e){const t=`menu-${n.createUniqueId()}`;e=R({id:t,modal:!0,preventScroll:!1},e);const[r,o]=n.splitProps(e,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange"]),i=_o({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>{var s;return(s=r.onOpenChange)==null?void 0:s.call(r,l)}}),a={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??!1,forceMount:()=>r.forceMount??!1,generateId:It(()=>r.id)};return n.createComponent(jo.Provider,{value:a,get children(){return n.createComponent(Ho,n.mergeProps({get open(){return i.isOpen()},get onOpenChange(){return i.setIsOpen}},o))}})}function Nl(e){const{direction:t}=ft();return n.createComponent(Ho,n.mergeProps({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Kl={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Bl(e){const t=Ne(),[r,o]=n.splitProps(e,["onFocusOutside","onKeyDown","onFocusOut"]),{direction:i}=ft(),a=u=>{u.preventDefault()},l=u=>{u.preventDefault()},s=u=>{var g;(g=r.onFocusOutside)==null||g.call(r,u);const h=u.target;be(t.triggerRef(),h)||t.close()},c=u=>{V(u,r.onKeyDown);const h=be(u.currentTarget,u.target),g=Kl[i()].includes(u.key),f=t.parentMenuContext()!=null;h&&g&&f&&(t.close(),se(t.triggerRef()))};return n.createComponent(Wo,n.mergeProps({onOpenAutoFocus:a,onCloseAutoFocus:l,onFocusOutside:s,onKeyDown:c},o))}var Ur=["Enter"," "],Ul={ltr:[...Ur,"ArrowRight"],rtl:[...Ur,"ArrowLeft"]};function Gl(e){let t;const r=Ke(),o=Ne();e=R({id:r.generateId(`sub-trigger-${n.createUniqueId()}`)},e);const[i,a]=n.splitProps(e,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let l=null;const s=()=>{l&&window.clearTimeout(l),l=null},{direction:c}=ft(),u=()=>i.id,h=()=>{const p=o.parentMenuContext();if(p==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return p.listState().selectionManager()},g=()=>o.listState().collection(),f=()=>h().focusedKey()===u(),m=Oo({key:u,selectionManager:h,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),d=p=>{V(p,i.onClick),!o.isOpen()&&!i.disabled&&o.open(!0)},y=p=>{var C;if(V(p,i.onPointerMove),p.pointerType!=="mouse")return;const b=o.parentMenuContext();if(b==null||b.onItemEnter(p),!p.defaultPrevented){if(i.disabled){b==null||b.onItemLeave(p);return}!o.isOpen()&&!l&&((C=o.parentMenuContext())==null||C.setPointerGraceIntent(null),l=window.setTimeout(()=>{o.open(!1),s()},100)),b==null||b.onItemEnter(p),p.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),se(p.currentTarget),b==null||b.listState().selectionManager().setFocused(!0),b==null||b.listState().selectionManager().setFocusedKey(u()))}},v=p=>{if(V(p,i.onPointerLeave),p.pointerType!=="mouse")return;s();const b=o.parentMenuContext(),C=o.contentRef();if(C){b==null||b.setPointerGraceIntent({area:Sl(o.currentPlacement(),p,C),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(b==null?void 0:b.pointerGraceTimeoutId());const $=window.setTimeout(()=>{b==null||b.setPointerGraceIntent(null)},300);b==null||b.setPointerGraceTimeoutId($)}else{if(b==null||b.onTriggerLeave(p),p.defaultPrevented)return;b==null||b.setPointerGraceIntent(null)}b==null||b.onItemLeave(p)},x=p=>{V(p,i.onKeyDown),!p.repeat&&(i.disabled||Ul[c()].includes(p.key)&&(p.stopPropagation(),p.preventDefault(),h().setFocused(!1),h().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(g().getFirstKey())))};return n.createEffect(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const p=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:u(),textValue:i.textValue??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1});n.onCleanup(p)}),n.createEffect(n.on(()=>{var p;return(p=o.parentMenuContext())==null?void 0:p.pointerGraceTimeoutId()},p=>{n.onCleanup(()=>{var b;window.clearTimeout(p),(b=o.parentMenuContext())==null||b.setPointerGraceIntent(null)})})),n.createEffect(()=>n.onCleanup(o.registerTriggerId(i.id))),n.onCleanup(()=>{s()}),n.createComponent(H,n.mergeProps({as:"div",ref(p){const b=ce(C=>{o.setTriggerRef(C),t=C},i.ref);typeof b=="function"&&b(p)},get id(){return i.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return n.createMemo(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return te([i.onPointerDown,m.onPointerDown])},get onPointerUp(){return te([i.onPointerUp,m.onPointerUp])},get onClick(){return te([d,m.onClick])},get onKeyDown(){return te([x,m.onKeyDown])},get onMouseDown(){return te([i.onMouseDown,m.onMouseDown])},get onFocus(){return te([i.onFocus,m.onFocus])},onPointerMove:y,onPointerLeave:v},()=>o.dataset(),a))}function Vl(e){const t=Ke(),r=Ne();e=R({id:t.generateId("trigger")},e);const[o,i]=n.splitProps(e,["ref","id","disabled","onPointerDown","onClick","onKeyDown"]),a=c=>{V(c,o.onPointerDown),c.currentTarget.dataset.pointerType=c.pointerType,!o.disabled&&c.pointerType!=="touch"&&c.button===0&&r.toggle(!0)},l=c=>{V(c,o.onClick),!o.disabled&&c.currentTarget.dataset.pointerType==="touch"&&r.toggle(!0)},s=c=>{if(V(c,o.onKeyDown),!o.disabled)switch(c.key){case"Enter":case" ":case"ArrowDown":c.stopPropagation(),c.preventDefault(),r.toggle("first");break;case"ArrowUp":c.stopPropagation(),c.preventDefault(),r.toggle("last");break}};return n.createEffect(()=>n.onCleanup(r.registerTriggerId(o.id))),n.createComponent(rl,n.mergeProps({ref(c){const u=ce(r.setTriggerRef,o.ref);typeof u=="function"&&u(c)},get id(){return o.id},get disabled(){return o.disabled},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return n.createMemo(()=>!!r.isOpen())()?r.contentId():void 0},onPointerDown:a,onClick:l,onKeyDown:s},()=>r.dataset(),i))}function jl(e){let t;e=R({orientation:"horizontal"},e);const[r,o]=n.splitProps(e,["ref","orientation"]),i=zn(()=>t,()=>"hr");return n.createComponent(H,n.mergeProps({as:"hr",ref(a){const l=ce(s=>t=s,r.ref);typeof l=="function"&&l(a)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}new Ss({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function Hl(e){const t=Ke(),r=Ne(),[o,i]=n.splitProps(e,["onCloseAutoFocus","onInteractOutside"]);let a=!1;const l=c=>{var u;(u=o.onCloseAutoFocus)==null||u.call(o,c),a||se(r.triggerRef()),a=!1,c.preventDefault()},s=c=>{var u;(u=o.onInteractOutside)==null||u.call(o,c),(!t.isModal()||c.detail.isContextMenu)&&(a=!0)};return n.createComponent(_l,n.mergeProps({onCloseAutoFocus:l,onInteractOutside:s},i))}function Ql(e){const t=`dropdownmenu-${n.createUniqueId()}`;return e=R({id:t},e),n.createComponent(zl,e)}var J=Object.freeze({__proto__:null,Arrow:yl,CheckboxItem:kl,Content:Hl,Group:Xo,GroupLabel:Ml,Icon:Pl,Item:Fl,ItemDescription:Dl,ItemIndicator:Il,ItemLabel:Ll,Portal:ql,RadioGroup:Tl,RadioItem:Rl,Root:Ql,Separator:jl,Sub:Nl,SubContent:Bl,SubTrigger:Gl,Trigger:Vl}),Jo=n.createContext();function ei(){const e=n.useContext(Jo);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var ti=n.createContext();function Rt(){const e=n.useContext(ti);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Wl(e){const t=Tt(),r=ei(),o=`${t.generateId("item")}-${n.createUniqueId()}`;e=R({id:o},e);const[i,a]=n.splitProps(e,["value","disabled","onPointerDown"]),[l,s]=n.createSignal(),[c,u]=n.createSignal(),[h,g]=n.createSignal(),[f,m]=n.createSignal(),[d,y]=n.createSignal(!1),v=n.createMemo(()=>r.isSelectedValue(i.value)),x=n.createMemo(()=>i.disabled||t.isDisabled()||!1),p=$=>{V($,i.onPointerDown),d()&&$.preventDefault()},b=n.createMemo(()=>({...t.dataset(),"data-disabled":x()?"":void 0,"data-checked":v()?"":void 0})),C={value:()=>i.value,dataset:b,isSelected:v,isDisabled:x,inputId:l,labelId:c,descriptionId:h,inputRef:f,select:()=>r.setSelectedValue(i.value),generateId:It(()=>a.id),registerInput:pe(s),registerLabel:pe(u),registerDescription:pe(g),setIsFocused:y,setInputRef:m};return n.createComponent(ti.Provider,{value:C,get children(){return n.createComponent(H,n.mergeProps({as:"div",role:"group",onPointerDown:p},b,a))}})}function Yl(e){const t=Rt();e=R({id:t.generateId("control")},e);const[r,o]=n.splitProps(e,["onClick","onKeyDown"]),i=l=>{var s;V(l,r.onClick),t.select(),(s=t.inputRef())==null||s.focus()},a=l=>{var s;V(l,r.onKeyDown),l.key===Mn.Space&&(t.select(),(s=t.inputRef())==null||s.focus())};return n.createComponent(H,n.mergeProps({as:"div",onClick:i,onKeyDown:a},()=>t.dataset(),o))}function Xl(e){const t=Rt();return e=R({id:t.generateId("description")},e),n.createEffect(()=>n.onCleanup(t.registerDescription(e.id))),n.createComponent(H,n.mergeProps({as:"div"},()=>t.dataset(),e))}function Zl(e){const t=Rt();e=R({id:t.generateId("indicator")},e);const[r,o]=n.splitProps(e,["ref","forceMount"]),i=Fo(()=>r.forceMount||t.isSelected());return n.createComponent(n.Show,{get when(){return i.isPresent()},get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(a){const l=ce(i.setRef,r.ref);typeof l=="function"&&l(a)}},()=>t.dataset(),o))}})}var Jl=n.template('<input type="radio">');function ec(e){const t=Tt(),r=ei(),o=Rt();e=R({id:o.generateId("input")},e);const[i,a]=n.splitProps(e,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),l=()=>[i["aria-labelledby"],o.labelId(),i["aria-labelledby"]!=null&&a["aria-label"]!=null?a.id:void 0].filter(Boolean).join(" ")||void 0,s=()=>[i["aria-describedby"],o.descriptionId(),r.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,c=g=>{V(g,i.onChange),g.stopPropagation(),r.setSelectedValue(o.value());const f=g.target;f.checked=o.isSelected()},u=g=>{V(g,i.onFocus),o.setIsFocused(!0)},h=g=>{V(g,i.onBlur),o.setIsFocused(!1)};return n.createEffect(()=>n.onCleanup(o.registerInput(a.id))),(()=>{const g=Jl();g.addEventListener("blur",h),g.addEventListener("focus",u),g.addEventListener("change",c);const f=ce(o.setInputRef,i.ref);return typeof f=="function"&&n.use(f,g),n.spread(g,n.mergeProps({get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return{...uo,...i.style}},get"aria-labelledby"(){return l()},get"aria-describedby"(){return s()}},()=>o.dataset(),a),!1,!1),g})()}var tc=n.template("<label>");function nc(e){const t=Rt();return e=R({id:t.generateId("label")},e),n.createEffect(()=>n.onCleanup(t.registerLabel(e.id))),(()=>{const r=tc();return n.spread(r,n.mergeProps({get for(){return t.inputId()}},()=>t.dataset(),e),!1,!1),r})()}function rc(e){return n.createComponent(Oa,n.mergeProps({as:"span"},e))}function oc(e){let t;const r=`radiogroup-${n.createUniqueId()}`;e=R({id:r,orientation:"vertical"},e);const[o,i,a]=n.splitProps(e,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Fa),[l,s]=Ot({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:m=>{var d;return(d=o.onChange)==null?void 0:d.call(o,m)}}),{formControlContext:c}=Da(i);pa(()=>t,()=>s(o.defaultValue??""));const u=()=>c.getAriaLabelledBy(w(i.id),a["aria-label"],o["aria-labelledby"]),h=()=>c.getAriaDescribedBy(o["aria-describedby"]),g=m=>m===l(),f={ariaDescribedBy:h,isSelectedValue:g,setSelectedValue:m=>{c.isReadOnly()||c.isDisabled()||(s(m),t==null||t.querySelectorAll("[type='radio']").forEach(d=>{const y=d;y.checked=g(y.value)}))}};return n.createComponent(Do.Provider,{value:c,get children(){return n.createComponent(Jo.Provider,{value:f,get children(){return n.createComponent(H,n.mergeProps({as:"div",ref(m){const d=ce(y=>t=y,o.ref);typeof d=="function"&&d(m)},role:"radiogroup",get id(){return w(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return u()},get"aria-describedby"(){return h()}},()=>c.dataset(),a))}})}})}var Ce=Object.freeze({__proto__:null,Description:La,ErrorMessage:qa,Item:Wl,ItemControl:Yl,ItemDescription:Xl,ItemIndicator:Zl,ItemInput:ec,ItemLabel:nc,Label:rc,Root:oc});n.delegateEvents(["focusin","focusout","pointermove"]);n.delegateEvents(["keydown","pointerdown","pointermove","pointerup"]);var E={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},ic=n.template('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),sc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),ac=n.template('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),lc=n.template('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Bn=n.template('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),cc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),uc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),dc=n.template('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),fc=n.template('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),gc=n.template('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),mc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),hc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),ni=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),yc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),vc=n.template('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),bc=n.template('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),pc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),xc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),$c=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Cc=n.template('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),wc=n.template('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');function Sc(){return ic()}function ri(){return sc()}function _t(){return ac()}function Gr(){return lc()}function Vr(){return Bn()}function Ec(){return(()=>{const e=Bn();return e.style.setProperty("transform","rotate(90deg)"),e})()}function kc(){return(()=>{const e=Bn();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _c(){return cc()}function Ac(){return uc()}function Mc(){return dc()}function Pc(){return fc()}function Fc(){return gc()}function Dc(){return mc()}function Ic(){return hc()}function Lc(e){return(()=>{const t=ni(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function qc(){return yc()}function Oc(){return vc()}function Tc(e){return[n.createComponent(n.Show,{get when(){return e.checked},get children(){const t=ni(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),n.createComponent(n.Show,{get when(){return!e.checked},get children(){const t=bc(),r=t.firstChild;return n.createRenderEffect(()=>n.setAttribute(r,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Rc(){return pc()}function zc(){return xc()}function Nc(){return $c()}function Kc(){return Cc()}function jr(){const e=n.createUniqueId();return(()=>{const t=wc(),r=t.firstChild,o=r.nextSibling,i=o.nextSibling,a=i.firstChild,l=i.nextSibling,s=l.firstChild,c=l.nextSibling,u=c.nextSibling,h=u.firstChild,g=u.nextSibling,f=g.firstChild,m=g.nextSibling,d=m.nextSibling,y=d.firstChild,v=d.nextSibling,x=v.firstChild,p=v.nextSibling,b=p.nextSibling,C=b.firstChild,$=b.nextSibling,A=$.firstChild,P=$.nextSibling,_=P.nextSibling,q=_.firstChild,I=_.nextSibling,L=I.firstChild,z=I.nextSibling,Q=z.nextSibling,D=Q.firstChild,O=Q.nextSibling,N=O.firstChild,B=O.nextSibling,G=B.nextSibling,Y=G.firstChild,ue=G.nextSibling,X=ue.firstChild,re=ue.nextSibling,oe=re.firstChild,S=oe.nextSibling,T=S.nextSibling,K=T.nextSibling,Ee=K.nextSibling,Be=re.nextSibling,nt=Be.firstChild,Me=Be.nextSibling,Pe=Me.firstChild,Fe=Me.nextSibling,De=Fe.firstChild,F=De.nextSibling,Z=F.nextSibling,le=Z.firstChild,j=le.nextSibling,U=j.nextSibling,W=U.nextSibling,ie=W.nextSibling,$e=ie.nextSibling,Ue=$e.nextSibling,Ge=Ue.nextSibling,ht=Ge.nextSibling,yt=ht.nextSibling,vt=yt.nextSibling,zt=vt.nextSibling,bt=Fe.nextSibling,Nt=bt.firstChild,rt=bt.nextSibling,Kt=rt.firstChild,ot=rt.nextSibling,pt=ot.firstChild,Bt=pt.nextSibling,xt=ot.nextSibling,Ut=xt.firstChild,Xe=xt.nextSibling,Gt=Xe.firstChild,it=Xe.nextSibling,Gn=it.firstChild,Vn=Gn.nextSibling,jn=Vn.nextSibling,Hn=jn.nextSibling,Qn=Hn.nextSibling,Wn=Qn.nextSibling,Yn=Wn.nextSibling,Xn=Yn.nextSibling,Zn=Xn.nextSibling,Jn=Zn.nextSibling,er=Jn.nextSibling,tr=er.nextSibling,nr=tr.nextSibling,rr=nr.nextSibling,or=rr.nextSibling,ir=or.nextSibling,sr=ir.nextSibling,gi=sr.nextSibling;return n.setAttribute(r,"id",`a-${e}`),n.setAttribute(o,"fill",`url(#a-${e})`),n.setAttribute(a,"id",`am-${e}`),n.setAttribute(l,"id",`b-${e}`),n.setAttribute(s,"filter",`url(#am-${e})`),n.setAttribute(c,"mask",`url(#b-${e})`),n.setAttribute(h,"id",`ah-${e}`),n.setAttribute(g,"id",`k-${e}`),n.setAttribute(f,"filter",`url(#ah-${e})`),n.setAttribute(m,"mask",`url(#k-${e})`),n.setAttribute(y,"id",`ae-${e}`),n.setAttribute(v,"id",`j-${e}`),n.setAttribute(x,"filter",`url(#ae-${e})`),n.setAttribute(p,"mask",`url(#j-${e})`),n.setAttribute(C,"id",`ai-${e}`),n.setAttribute($,"id",`i-${e}`),n.setAttribute(A,"filter",`url(#ai-${e})`),n.setAttribute(P,"mask",`url(#i-${e})`),n.setAttribute(q,"id",`aj-${e}`),n.setAttribute(I,"id",`h-${e}`),n.setAttribute(L,"filter",`url(#aj-${e})`),n.setAttribute(z,"mask",`url(#h-${e})`),n.setAttribute(D,"id",`ag-${e}`),n.setAttribute(O,"id",`g-${e}`),n.setAttribute(N,"filter",`url(#ag-${e})`),n.setAttribute(B,"mask",`url(#g-${e})`),n.setAttribute(Y,"id",`af-${e}`),n.setAttribute(ue,"id",`f-${e}`),n.setAttribute(X,"filter",`url(#af-${e})`),n.setAttribute(re,"mask",`url(#f-${e})`),n.setAttribute(K,"id",`m-${e}`),n.setAttribute(Ee,"fill",`url(#m-${e})`),n.setAttribute(nt,"id",`ak-${e}`),n.setAttribute(Me,"id",`e-${e}`),n.setAttribute(Pe,"filter",`url(#ak-${e})`),n.setAttribute(Fe,"mask",`url(#e-${e})`),n.setAttribute(De,"id",`n-${e}`),n.setAttribute(F,"fill",`url(#n-${e})`),n.setAttribute(le,"id",`r-${e}`),n.setAttribute(j,"fill",`url(#r-${e})`),n.setAttribute(U,"id",`s-${e}`),n.setAttribute(W,"fill",`url(#s-${e})`),n.setAttribute(ie,"id",`q-${e}`),n.setAttribute($e,"fill",`url(#q-${e})`),n.setAttribute(Ue,"id",`p-${e}`),n.setAttribute(Ge,"fill",`url(#p-${e})`),n.setAttribute(ht,"id",`o-${e}`),n.setAttribute(yt,"fill",`url(#o-${e})`),n.setAttribute(vt,"id",`l-${e}`),n.setAttribute(zt,"fill",`url(#l-${e})`),n.setAttribute(Nt,"id",`al-${e}`),n.setAttribute(rt,"id",`d-${e}`),n.setAttribute(Kt,"filter",`url(#al-${e})`),n.setAttribute(ot,"mask",`url(#d-${e})`),n.setAttribute(pt,"id",`u-${e}`),n.setAttribute(Bt,"fill",`url(#u-${e})`),n.setAttribute(Ut,"id",`ad-${e}`),n.setAttribute(Xe,"id",`c-${e}`),n.setAttribute(Gt,"filter",`url(#ad-${e})`),n.setAttribute(it,"mask",`url(#c-${e})`),n.setAttribute(Gn,"id",`t-${e}`),n.setAttribute(Vn,"fill",`url(#t-${e})`),n.setAttribute(jn,"id",`v-${e}`),n.setAttribute(Hn,"stroke",`url(#v-${e})`),n.setAttribute(Qn,"id",`aa-${e}`),n.setAttribute(Wn,"stroke",`url(#aa-${e})`),n.setAttribute(Yn,"id",`w-${e}`),n.setAttribute(Xn,"stroke",`url(#w-${e})`),n.setAttribute(Zn,"id",`ac-${e}`),n.setAttribute(Jn,"stroke",`url(#ac-${e})`),n.setAttribute(er,"id",`ab-${e}`),n.setAttribute(tr,"stroke",`url(#ab-${e})`),n.setAttribute(nr,"id",`y-${e}`),n.setAttribute(rr,"stroke",`url(#y-${e})`),n.setAttribute(or,"id",`x-${e}`),n.setAttribute(ir,"stroke",`url(#x-${e})`),n.setAttribute(sr,"id",`z-${e}`),n.setAttribute(gi,"stroke",`url(#z-${e})`),t})()}var oi=n.createContext({client:void 0,onlineManager:void 0,queryFlavor:"",version:""});function ee(){return n.useContext(oi)}var ii=n.createContext(()=>"dark");function ae(){return n.useContext(ii)}var Bc=n.template('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Uc=n.template('<button title="Copy object to clipboard">'),Gc=n.template('<button title="Remove all items"aria-label="Remove all items">'),Vc=n.template('<button title="Delete item"aria-label="Delete item">'),jc=n.template('<button title="Toggle value"aria-label="Toggle value">'),wt=n.template("<div>"),Hc=n.template("<div><button> <span></span> <span> "),Qc=n.template("<input>"),Hr=n.template("<span>"),Wc=n.template("<div><span>:"),Yc=n.template("<div><div><button> [<!>...<!>]");function Xc(e,t){if(t<1)return[];let r=0;const o=[];for(;r<e.length;)o.push(e.slice(r,r+t)),r=r+t;return o}var Qr=e=>{const t=ae(),r=n.createMemo(()=>t()==="dark"?mt:gt);return(()=>{const o=Bc();return n.createRenderEffect(()=>n.className(o,M(r().expander,k`
2
2
  transform: rotate(${e.expanded?90:0}deg);
3
3
  `,e.expanded&&k`
4
4
  & svg {