var sr=Object.defineProperty;var cr=(r,e,A)=>e in r?sr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):r[e]=A;var Qe=(r,e,A)=>(cr(r,typeof e!="symbol"?e+"":e,A),A);import{s as be,e as U,i as I,d as w,A as q,B as QA,C as G,D as H,r as K,f as z,g as N,h as F,E as rA,F as dr,G as D,u as $,v as ee,w as Ae,H as qA,I as mA,J as M,p as LA,K as ur,L as fr,M as gr,N as jA,a as Ze,c as De,O as ye,x as P,l as X,m as W,j as J,n as tA,P as SA,Q as xA,R as br,y as MA,z as PA,o as hr,S as mr,k as OA}from"../chunks/scheduler.2f27f277.js";import{S as ve,i as Ee,a as k,t as v,g as Ve,c as Te,b as oe,d as ie,m as ne,e as ae,f as VA}from"../chunks/index.d9978d1c.js";import{w as HA}from"../chunks/index.6e61dc83.js";function he(r,e){const A={},t={},o={$$scope:1};let i=r.length;for(;i--;){const n=r[i],a=e[i];if(a){for(const l in n)l in a||(t[l]=1);for(const l in a)o[l]||(A[l]=a[l],o[l]=1);r[i]=a}else for(const l in n)o[l]=1}for(const n in t)n in A||(A[n]=void 0);return A}function oA(r){return typeof r=="object"&&r!==null?r:{}}const pr=!1,wr=!1,Co=Object.freeze(Object.defineProperty({__proto__:null,prerender:pr,ssr:wr},Symbol.toStringTag,{value:"Module"})),Oe=HA("DISCONNECTED");let pA=HA({});class kr{constructor(){Qe(this,"__currentOffset");Qe(this,"__currentFluctuation");Qe(this,"__currentAcceptanceRate");Qe(this,"__acceptedFluctuationFactor",4n);Qe(this,"__latestOffsets",[]);Qe(this,"__latestFluctuations",[]);Qe(this,"__latestAcceptanceResults",[]);this.__currentOffset=void 0,this.__currentFluctuation=void 0,this.__latestOffsets=[],this.__latestFluctuations=[],this.__latestAcceptanceResults=[]}currentOffset(){return this.__currentOffset}currentAcceptanceRate(){return this.__currentAcceptanceRate}handleTimeSync(e,A,t){let o=A-e,i=t+o/2n-A;this.__handleNewOffset(i)}__handleNewOffset(e){const A=this.__isOffsetInMargin(e);this.__handleAcceptanceResult(A),A&&(this.__currentOffset=this.__pushValueAndCaluclateAverage(this.__latestOffsets,e))}__handleAcceptanceResult(e){this.__currentAcceptanceRate=this.__pushValueAndCaluclateAverage(this.__latestAcceptanceResults,e?100n:0n),this.__currentAcceptanceRate>90n?this.__acceptedFluctuationFactor=4n:this.__currentAcceptanceRate>80n?this.__acceptedFluctuationFactor=6n:this.__currentAcceptanceRate>50n?this.__acceptedFluctuationFactor=10n:this.__acceptedFluctuationFactor=100n}__isOffsetInMargin(e){if(!this.__currentOffset)return!0;let A=this.__currentOffset-e;return A<0&&(A=-A),this.__currentFluctuation&&this.__latestFluctuations.length>5&&A>this.__currentFluctuation*this.__acceptedFluctuationFactor?!1:(this.__currentFluctuation=this.__pushValueAndCaluclateAverage(this.__latestFluctuations,A),this.__latestFluctuations.length<10?!0:A10&&e.shift();let t=0n;for(let o=0;o Requested "+Me.name+" ("+Me.id+")");let r;try{r=await Me.gatt.connect()}catch{console.log("> Error connecting to "+Me.name+" ("+Me.id+")"),Oe.set("DISCONNECTED");return}Me.addEventListener("gattserverdisconnected",Er),AA=await r.getPrimaryService(lA),Fe.currentTime=await AA.getCharacteristic(fA+"0001"),Fe.lastTriggerTime=await AA.getCharacteristic(fA+"0002"),await Fe.lastTriggerTime.startNotifications(),Fe.lastTriggerTime.addEventListener("characteristicvaluechanged",Cr),Re=new kr,gA=setInterval(Br,1e3),Oe.set("CONNECTED")}function Er(){console.log("> Bluetooth Device disconnected"),Me=void 0,AA=void 0,Re=void 0,KA=void 0,gA!==void 0&&clearInterval(gA),Oe.set("DISCONNECTED")}function Cr(r){var A;if(!r.target)return;const e=r.target;e.uuid==((A=Fe.lastTriggerTime)==null?void 0:A.uuid)&&Ir(new DataView(e.value.buffer,0).getBigUint64(0,!0))}async function Br(){if(Re===void 0||Fe.currentTime===void 0||KA!==void 0)return!1;let r=performance.now(),A=(await Fe.currentTime.readValue()).getBigUint64(0,!0),t=performance.now();Re.handleTimeSync(BigInt(Math.floor(r)),BigInt(Math.floor(t)),A),pA.update(o=>(o.offset=Re.currentOffset(),o))}function Ir(r){if(Re===void 0)return;const e=Re.currentOffset();e!==void 0&&pA.update(A=>(A.lastTriggerTime=r-e,A.connectionQuality=Re.currentAcceptanceRate(),A))}const wA="-";function Qr(r){const e=xr(r),{conflictingClassGroups:A,conflictingClassGroupModifiers:t}=r;function o(n){const a=n.split(wA);return a[0]===""&&a.length!==1&&a.shift(),$A(a,e)||Sr(n)}function i(n,a){const l=A[n]||[];return a&&t[n]?[...l,...t[n]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function $A(r,e){var n;if(r.length===0)return e.classGroupId;const A=r[0],t=e.nextPart.get(A),o=t?$A(r.slice(1),t):void 0;if(o)return o;if(e.validators.length===0)return;const i=r.join(wA);return(n=e.validators.find(({validator:a})=>a(i)))==null?void 0:n.classGroupId}const TA=/^\[(.+)\]$/;function Sr(r){if(TA.test(r)){const e=TA.exec(r)[1],A=e==null?void 0:e.substring(0,e.indexOf(":"));if(A)return"arbitrary.."+A}}function xr(r){const{theme:e,prefix:A}=r,t={nextPart:new Map,validators:[]};return Or(Object.entries(r.classGroups),A).forEach(([i,n])=>{bA(n,t,i,e)}),t}function bA(r,e,A,t){r.forEach(o=>{if(typeof o=="string"){const i=o===""?e:RA(e,o);i.classGroupId=A;return}if(typeof o=="function"){if(Mr(o)){bA(o(t),e,A,t);return}e.validators.push({validator:o,classGroupId:A});return}Object.entries(o).forEach(([i,n])=>{bA(n,RA(e,i),A,t)})})}function RA(r,e){let A=r;return e.split(wA).forEach(t=>{A.nextPart.has(t)||A.nextPart.set(t,{nextPart:new Map,validators:[]}),A=A.nextPart.get(t)}),A}function Mr(r){return r.isThemeGetter}function Or(r,e){return e?r.map(([A,t])=>{const o=t.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,a])=>[e+n,a])):i);return[A,o]}):r}function Vr(r){if(r<1)return{get:()=>{},set:()=>{}};let e=0,A=new Map,t=new Map;function o(i,n){A.set(i,n),e++,e>r&&(e=0,t=A,A=new Map)}return{get(i){let n=A.get(i);if(n!==void 0)return n;if((n=t.get(i))!==void 0)return o(i,n),n},set(i,n){A.has(i)?A.set(i,n):o(i,n)}}}const er="!";function Tr(r){const e=r.separator,A=e.length===1,t=e[0],o=e.length;return function(n){const a=[];let l=0,s=0,d;for(let f=0;fs?d-s:void 0;return{modifiers:a,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:g}}}function Rr(r){if(r.length<=1)return r;const e=[];let A=[];return r.forEach(t=>{t[0]==="["?(e.push(...A.sort(),t),A=[]):A.push(t)}),e.push(...A.sort()),e}function Zr(r){return{cache:Vr(r.cacheSize),splitModifiers:Tr(r),...Qr(r)}}const Dr=/\s+/;function Gr(r,e){const{splitModifiers:A,getClassGroupId:t,getConflictingClassGroupIds:o}=e,i=new Set;return r.trim().split(Dr).map(n=>{const{modifiers:a,hasImportantModifier:l,baseClassName:s,maybePostfixModifierPosition:d}=A(n);let b=t(d?s.substring(0,d):s),c=!!d;if(!b){if(!d)return{isTailwindClass:!1,originalClassName:n};if(b=t(s),!b)return{isTailwindClass:!1,originalClassName:n};c=!1}const u=Rr(a).join(":");return{isTailwindClass:!0,modifierId:l?u+er:u,classGroupId:b,originalClassName:n,hasPostfixModifier:c}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:s}=n,d=a+l;return i.has(d)?!1:(i.add(d),o(l,s).forEach(b=>i.add(a+b)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function Fr(){let r=0,e,A,t="";for(;rb(d),r());return A=Zr(s),t=A.cache.get,o=A.cache.set,i=a,a(l)}function a(l){const s=t(l);if(s)return s;const d=Gr(l,A);return o(l,d),d}return function(){return i(Fr.apply(null,arguments))}}function Z(r){const e=A=>A[r]||[];return e.isThemeGetter=!0,e}const rr=/^\[(?:([a-z-]+):)?(.+)\]$/i,zr=/^\d+\/\d+$/,Nr=new Set(["px","full","screen"]),Jr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ur=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ge(r){return Ye(r)||Nr.has(r)||zr.test(r)}function Se(r){return We(r,"length",et)}function Ye(r){return!!r&&!Number.isNaN(Number(r))}function eA(r){return We(r,"number",Ye)}function je(r){return!!r&&Number.isInteger(Number(r))}function qr(r){return r.endsWith("%")&&Ye(r.slice(0,-1))}function B(r){return rr.test(r)}function xe(r){return Jr.test(r)}const Lr=new Set(["length","size","percentage"]);function jr(r){return We(r,Lr,tr)}function Pr(r){return We(r,"position",tr)}const Hr=new Set(["image","url"]);function Kr(r){return We(r,Hr,rt)}function $r(r){return We(r,"",At)}function Pe(){return!0}function We(r,e,A){const t=rr.exec(r);return t?t[1]?typeof e=="string"?t[1]===e:e.has(t[1]):A(t[2]):!1}function et(r){return Xr.test(r)}function tr(){return!1}function At(r){return Wr.test(r)}function rt(r){return Ur.test(r)}function tt(){const r=Z("colors"),e=Z("spacing"),A=Z("blur"),t=Z("brightness"),o=Z("borderColor"),i=Z("borderRadius"),n=Z("borderSpacing"),a=Z("borderWidth"),l=Z("contrast"),s=Z("grayscale"),d=Z("hueRotate"),b=Z("invert"),c=Z("gap"),u=Z("gradientColorStops"),g=Z("gradientColorStopPositions"),f=Z("inset"),h=Z("margin"),S=Z("opacity"),Q=Z("padding"),y=Z("saturate"),m=Z("scale"),Y=Z("sepia"),L=Z("skew"),me=Z("space"),le=Z("translate"),re=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",B,e],V=()=>[B,e],te=()=>["",ge,Se],se=()=>["auto",Ye,B],ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Ce=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",B],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[Ye,eA],ue=()=>[Ye,B];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[ge,Se],blur:["none","",xe,B],brightness:pe(),borderColor:[r],borderRadius:["none","","full",xe,B],borderSpacing:V(),borderWidth:te(),contrast:pe(),grayscale:de(),hueRotate:ue(),invert:de(),gap:V(),gradientColorStops:[r],gradientColorStopPositions:[qr,Se],inset:E(),margin:E(),opacity:pe(),padding:V(),saturate:pe(),scale:pe(),sepia:de(),skew:ue(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ze(),B]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",je,B]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",je,B]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",je,B]},B]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[je,B]},B]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...Ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",B,e]}],"min-w":[{"min-w":["min","max","fit",B,ge]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[xe]},xe,B]}],h:[{h:[B,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ge,B]}],"max-h":[{"max-h":[B,e,"min","max","fit"]}],"font-size":[{text:["base",xe,Se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",eA]}],"font-family":[{font:[Pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",Ye,eA]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,Se]}],"underline-offset":[{"underline-offset":["auto",ge,B]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ze(),Pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kr]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:ce()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[ge,B]}],"outline-w":[{outline:[ge,Se]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[ge,Se]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",xe,$r]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":_e()}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[A]}],brightness:[{brightness:[t]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xe,B]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[b]}],saturate:[{saturate:[y]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[A]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[m]}],"scale-x":[{"scale-x":[m]}],"scale-y":[{"scale-y":[m]}],rotate:[{rotate:[je,B]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[ge,Se,eA]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ge=Yr(tt);function sA(r){let e,A,t,o,i;const n=r[12].default,a=K(n,r,r[11],null);let l=[{role:r[4]},r[6],{class:r[5]}],s={};for(let d=0;d{};QA("background",!0);let{tag:l=o.href?"a":"div"}=e,{color:s="default"}=e,{rounded:d=!1}=e,{border:b=!1}=e,{shadow:c=!1}=e,{node:u=void 0}=e,{use:g=a}=e,{options:f={}}=e,{role:h=void 0}=e;const S={gray:"bg-gray-50 dark:bg-gray-800",red:"bg-red-50 dark:bg-gray-800",yellow:"bg-yellow-50 dark:bg-gray-800 ",green:"bg-green-50 dark:bg-gray-800 ",indigo:"bg-indigo-50 dark:bg-gray-800 ",purple:"bg-purple-50 dark:bg-gray-800 ",pink:"bg-pink-50 dark:bg-gray-800 ",blue:"bg-blue-50 dark:bg-gray-800 ",light:"bg-gray-50 dark:bg-gray-700",dark:"bg-gray-50 dark:bg-gray-800",default:"bg-white dark:bg-gray-800",dropdown:"bg-white dark:bg-gray-700",navbar:"bg-white dark:bg-gray-900",navbarUl:"bg-gray-50 dark:bg-gray-800",form:"bg-gray-50 dark:bg-gray-700",primary:"bg-primary-50 dark:bg-gray-800 ",orange:"bg-orange-50 dark:bg-orange-800",none:""},Q={gray:"text-gray-800 dark:text-gray-300",red:"text-red-800 dark:text-red-400",yellow:"text-yellow-800 dark:text-yellow-300",green:"text-green-800 dark:text-green-400",indigo:"text-indigo-800 dark:text-indigo-400",purple:"text-purple-800 dark:text-purple-400",pink:"text-pink-800 dark:text-pink-400",blue:"text-blue-800 dark:text-blue-400",light:"text-gray-700 dark:text-gray-300",dark:"text-gray-700 dark:text-gray-300",default:"text-gray-500 dark:text-gray-400",dropdown:"text-gray-700 dark:text-gray-200",navbar:"text-gray-700 dark:text-gray-200",navbarUl:"text-gray-700 dark:text-gray-400",form:"text-gray-900 dark:text-white",primary:"text-primary-800 dark:text-primary-400",orange:"text-orange-800 dark:text-orange-400",none:""},y={gray:"border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800",red:"border-red-300 dark:border-red-800 divide-red-300 dark:divide-red-800",yellow:"border-yellow-300 dark:border-yellow-800 divide-yellow-300 dark:divide-yellow-800",green:"border-green-300 dark:border-green-800 divide-green-300 dark:divide-green-800",indigo:"border-indigo-300 dark:border-indigo-800 divide-indigo-300 dark:divide-indigo-800",purple:"border-purple-300 dark:border-purple-800 divide-purple-300 dark:divide-purple-800",pink:"border-pink-300 dark:border-pink-800 divide-pink-300 dark:divide-pink-800",blue:"border-blue-300 dark:border-blue-800 divide-blue-300 dark:divide-blue-800",light:"border-gray-500 divide-gray-500",dark:"border-gray-500 divide-gray-500",default:"border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700",dropdown:"border-gray-100 dark:border-gray-600 divide-gray-100 dark:divide-gray-600",navbar:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",navbarUl:"border-gray-100 dark:border-gray-700 divide-gray-100 dark:divide-gray-700",form:"border-gray-300 dark:border-gray-700 divide-gray-300 dark:divide-gray-700",primary:"border-primary-500 dark:border-primary-200 divide-primary-500 dark:divide-primary-200 ",orange:"border-orange-300 dark:border-orange-800 divide-orange-300 dark:divide-orange-800",none:""};let m;function Y(E){M.call(this,r,E)}function L(E){M.call(this,r,E)}function me(E){M.call(this,r,E)}function le(E){M.call(this,r,E)}function re(E){M.call(this,r,E)}function j(E){LA[E?"unshift":"push"](()=>{u=E,A(0,u)})}return r.$$set=E=>{A(23,e=G(G({},e),H(E))),A(6,o=q(e,t)),"tag"in E&&A(1,l=E.tag),"color"in E&&A(7,s=E.color),"rounded"in E&&A(8,d=E.rounded),"border"in E&&A(9,b=E.border),"shadow"in E&&A(10,c=E.shadow),"node"in E&&A(0,u=E.node),"use"in E&&A(2,g=E.use),"options"in E&&A(3,f=E.options),"role"in E&&A(4,h=E.role),"$$scope"in E&&A(11,n=E.$$scope)},r.$$.update=()=>{r.$$.dirty&128&&A(7,s=s??"default"),r.$$.dirty&128&&QA("color",s),A(5,m=Ge(S[s],Q[s],d&&"rounded-lg",b&&"border",y[s],c&&"shadow-md",e.class))},e=H(e),[u,l,g,f,h,m,o,s,d,b,c,n,i,Y,L,me,le,re,j]}class or extends ve{constructor(e){super(),Ee(this,e,it,ot,be,{tag:1,color:7,rounded:8,border:9,shadow:10,node:0,use:2,options:3,role:4})}}function nt(r,{delay:e=0,duration:A=400,easing:t=ur}={}){const o=+getComputedStyle(r).opacity;return{delay:e,duration:A,easing:t,css:i=>`opacity: ${i*o}`}}const at=r=>({}),ZA=r=>({close:r[4]}),lt=r=>({}),DA=r=>({close:r[4]});function st(r){let e,A;const t=[r[5]];let o={$$slots:{default:[dt]},$$scope:{ctx:r}};for(let i=0;i{t=null}),Te())},i(o){A||(k(t),A=!0)},o(o){v(t),A=!1},d(o){o&&w(e),t&&t.d(o)}}}function dt(r){let e;const A=r[6].default,t=K(A,r,r[7],ZA);return{c(){t&&t.c()},l(o){t&&t.l(o)},m(o,i){t&&t.m(o,i),e=!0},p(o,i){t&&t.p&&(!e||i&128)&&$(t,A,o,o[7],e?Ae(A,o[7],i,at):ee(o[7]),ZA)},i(o){e||(k(t,o),e=!0)},o(o){v(t,o),e=!1},d(o){t&&t.d(o)}}}function GA(r){let e,A,t,o;const i=[r[5]];let n={$$slots:{default:[ut]},$$scope:{ctx:r}};for(let a=0;a{o&&(t||(t=VA(e,r[1],r[2],!0)),t.run(1))}),o=!0)},o(a){v(A.$$.fragment,a),a&&(t||(t=VA(e,r[1],r[2],!1)),t.run(0)),o=!1},d(a){a&&w(e),ae(A),a&&t&&t.end()}}}function ut(r){let e;const A=r[6].default,t=K(A,r,r[7],DA);return{c(){t&&t.c()},l(o){t&&t.l(o)},m(o,i){t&&t.m(o,i),e=!0},p(o,i){t&&t.p&&(!e||i&128)&&$(t,A,o,o[7],e?Ae(A,o[7],i,lt):ee(o[7]),DA)},i(o){e||(k(t,o),e=!0)},o(o){v(t,o),e=!1},d(o){t&&t.d(o)}}}function ft(r){let e,A,t,o;const i=[ct,st],n=[];function a(l,s){return l[3]?0:1}return e=a(r),A=n[e]=i[e](r),{c(){A.c(),t=U()},l(l){A.l(l),t=U()},m(l,s){n[e].m(l,s),I(l,t,s),o=!0},p(l,[s]){let d=e;e=a(l),e===d?n[e].p(l,s):(Ve(),v(n[d],1,1,()=>{n[d]=null}),Te(),A=n[e],A?A.p(l,s):(A=n[e]=i[e](l),A.c()),k(A,1),A.m(t.parentNode,t))},i(l){o||(k(A),o=!0)},o(l){v(A),o=!1},d(l){l&&w(t),n[e].d(l)}}}function gt(r,e,A){const t=["transition","params","open","dismissable"];let o=q(e,t),{$$slots:i={},$$scope:n}=e,{transition:a=nt}=e,{params:l={}}=e,{open:s=!0}=e,{dismissable:d=!1}=e;const b=fr();function c(u){u!=null&&u.stopPropagation&&u.stopPropagation(),A(0,s=!1)}return r.$$set=u=>{e=G(G({},e),H(u)),A(5,o=q(e,t)),"transition"in u&&A(1,a=u.transition),"params"in u&&A(2,l=u.params),"open"in u&&A(0,s=u.open),"dismissable"in u&&A(3,d=u.dismissable),"$$scope"in u&&A(7,n=u.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&b(s?"open":"close")},[s,a,l,d,c,o,i,n]}class bt extends ve{constructor(e){super(),Ee(this,e,gt,ft,be,{transition:1,params:2,open:0,dismissable:3})}}const ht=r=>({svgSize:r&4}),FA=r=>({svgSize:r[5][r[2]]}),mt=r=>({svgSize:r&4}),YA=r=>({svgSize:r[5][r[2]]});function pt(r){let e,A,t,o,i,n,a=r[0]&&zA(r);const l=r[9].default,s=K(l,r,r[8],FA);let d=[{type:"button"},r[6],{class:r[4]},{"aria-label":t=r[1]??r[0]}],b={};for(let c=0;c{n[d]=null}),Te(),A=n[e],A?A.p(l,s):(A=n[e]=i[e](l),A.c()),k(A,1),A.m(t.parentNode,t))},i(l){o||(k(A),o=!0)},o(l){v(A),o=!1},d(l){l&&w(t),n[e].d(l)}}}function yt(r,e,A){const t=["color","name","ariaLabel","size","href"];let o=q(e,t),{$$slots:i={},$$scope:n}=e;const a=jA("background");let{color:l="default"}=e,{name:s=void 0}=e,{ariaLabel:d=void 0}=e,{size:b="md"}=e,{href:c=void 0}=e;const u={dark:"text-gray-500 hover:text-gray-900 hover:bg-gray-200 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600",gray:"text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-gray-300",red:"text-red-500 focus:ring-red-400 hover:bg-red-200 dark:hover:bg-red-800 dark:hover:text-red-300",yellow:"text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:hover:bg-yellow-800 dark:hover:text-yellow-300",green:"text-green-500 focus:ring-green-400 hover:bg-green-200 dark:hover:bg-green-800 dark:hover:text-green-300",indigo:"text-indigo-500 focus:ring-indigo-400 hover:bg-indigo-200 dark:hover:bg-indigo-800 dark:hover:text-indigo-300",purple:"text-purple-500 focus:ring-purple-400 hover:bg-purple-200 dark:hover:bg-purple-800 dark:hover:text-purple-300",pink:"text-pink-500 focus:ring-pink-400 hover:bg-pink-200 dark:hover:bg-pink-800 dark:hover:text-pink-300",blue:"text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800 dark:hover:text-blue-300",primary:"text-primary-500 focus:ring-primary-400 hover:bg-primary-200 dark:hover:bg-primary-800 dark:hover:text-primary-300",default:"focus:ring-gray-400"},g={xs:"m-0.5 rounded-sm focus:ring-1 p-0.5",sm:"m-0.5 rounded focus:ring-1 p-0.5",md:"m-0.5 rounded-lg focus:ring-2 p-1.5",lg:"m-0.5 rounded-lg focus:ring-2 p-2.5"};let f;const h={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-5 h-5"};function S(Q){M.call(this,r,Q)}return r.$$set=Q=>{A(14,e=G(G({},e),H(Q))),A(6,o=q(e,t)),"color"in Q&&A(7,l=Q.color),"name"in Q&&A(0,s=Q.name),"ariaLabel"in Q&&A(1,d=Q.ariaLabel),"size"in Q&&A(2,b=Q.size),"href"in Q&&A(3,c=Q.href),"$$scope"in Q&&A(8,n=Q.$$scope)},r.$$.update=()=>{A(4,f=Ge("focus:outline-none whitespace-normal",g[b],u[l],l==="default"&&(a?"hover:bg-gray-100 dark:hover:bg-gray-600":"hover:bg-gray-100 dark:hover:bg-gray-700"),e.class))},e=H(e),[s,d,b,c,f,h,o,l,n,i,S]}class _t extends ve{constructor(e){super(),Ee(this,e,yt,kt,be,{color:7,name:0,ariaLabel:1,size:2,href:3})}}function vt(r){let e,A,t;return{c(){e=SA("svg"),A=SA("path"),this.h()},l(o){e=xA(o,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var i=F(e);A=xA(i,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),F(A).forEach(w),i.forEach(w),this.h()},h(){J(A,"fill-rule","evenodd"),J(A,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),J(A,"clip-rule","evenodd"),J(e,"class",t=r[4]),J(e,"fill","currentColor"),J(e,"viewBox","0 0 20 20"),J(e,"xmlns","http://www.w3.org/2000/svg")},m(o,i){I(o,e,i),P(e,A)},p(o,i){i&16&&t!==(t=o[4])&&J(e,"class",t)},d(o){o&&w(e)}}}function Et(r){let e,A;const t=[{name:r[0]},r[1],{class:Ge("ml-auto",r[2].class)}];let o={$$slots:{default:[vt,({svgSize:i})=>({4:i}),({svgSize:i})=>i?16:0]},$$scope:{ctx:r}};for(let i=0;i{A(2,e=G(G({},e),H(a))),A(1,o=q(e,t)),"name"in a&&A(0,i=a.name)},e=H(e),[i,o,e,n]}class Bt extends ve{constructor(e){super(),Ee(this,e,Ct,Et,be,{name:0})}}const It=r=>({close:r&131072}),JA=r=>({close:r[17]}),Qt=r=>({}),XA=r=>({});function WA(r){let e;const A=r[5].icon,t=K(A,r,r[15],XA);return{c(){t&&t.c()},l(o){t&&t.l(o)},m(o,i){t&&t.m(o,i),e=!0},p(o,i){t&&t.p&&(!e||i&32768)&&$(t,A,o,o[15],e?Ae(A,o[15],i,Qt):ee(o[15]),XA)},i(o){e||(k(t,o),e=!0)},o(o){v(t,o),e=!1},d(o){t&&t.d(o)}}}function St(r){let e;const A=r[5].default,t=K(A,r,r[15],null);return{c(){t&&t.c()},l(o){t&&t.l(o)},m(o,i){t&&t.m(o,i),e=!0},p(o,i){t&&t.p&&(!e||i&32768)&&$(t,A,o,o[15],e?Ae(A,o[15],i,null):ee(o[15]),null)},i(o){e||(k(t,o),e=!0)},o(o){v(t,o),e=!1},d(o){t&&t.d(o)}}}function xt(r){let e,A;const t=r[5].default,o=K(t,r,r[15],null);return{c(){e=z("div"),o&&o.c()},l(i){e=N(i,"DIV",{});var n=F(e);o&&o.l(n),n.forEach(w)},m(i,n){I(i,e,n),o&&o.m(e,null),A=!0},p(i,n){o&&o.p&&(!A||n&32768)&&$(o,t,i,i[15],A?Ae(t,i[15],n,null):ee(i[15]),null)},i(i){A||(k(o,i),A=!0)},o(i){v(o,i),A=!1},d(i){i&&w(e),o&&o.d(i)}}}function UA(r){let e;const A=r[5]["close-button"],t=K(A,r,r[15],JA),o=t||Mt(r);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){t?t.p&&(!e||n&163840)&&$(t,A,i,i[15],e?Ae(A,i[15],n,It):ee(i[15]),JA):o&&o.p&&(!e||n&131080)&&o.p(i,e?n:-1)},i(i){e||(k(o,i),e=!0)},o(i){v(o,i),e=!1},d(i){o&&o.d(i)}}}function Mt(r){let e,A;return e=new Bt({props:{class:"ml-auto -mr-1.5 -my-1.5 dark:hover:bg-gray-700",color:r[3].color}}),e.$on("click",function(){qA(r[17])&&r[17].apply(this,arguments)}),e.$on("click",r[6]),e.$on("change",r[7]),e.$on("keydown",r[8]),e.$on("keyup",r[9]),e.$on("focus",r[10]),e.$on("blur",r[11]),e.$on("mouseenter",r[12]),e.$on("mouseleave",r[13]),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,o){ne(e,t,o),A=!0},p(t,o){r=t;const i={};o&8&&(i.color=r[3].color),e.$set(i)},i(t){A||(k(e.$$.fragment,t),A=!0)},o(t){v(e.$$.fragment,t),A=!1},d(t){ae(e,t)}}}function Ot(r){let e,A,t,o,i,n,a=r[2].icon&&WA(r);const l=[xt,St],s=[];function d(c,u){return c[2].icon||c[0]?0:1}A=d(r),t=s[A]=l[A](r);let b=r[0]&&UA(r);return{c(){a&&a.c(),e=Ze(),t.c(),o=Ze(),b&&b.c(),i=U()},l(c){a&&a.l(c),e=De(c),t.l(c),o=De(c),b&&b.l(c),i=U()},m(c,u){a&&a.m(c,u),I(c,e,u),s[A].m(c,u),I(c,o,u),b&&b.m(c,u),I(c,i,u),n=!0},p(c,u){c[2].icon?a?(a.p(c,u),u&4&&k(a,1)):(a=WA(c),a.c(),k(a,1),a.m(e.parentNode,e)):a&&(Ve(),v(a,1,1,()=>{a=null}),Te());let g=A;A=d(c),A===g?s[A].p(c,u):(Ve(),v(s[g],1,1,()=>{s[g]=null}),Te(),t=s[A],t?t.p(c,u):(t=s[A]=l[A](c),t.c()),k(t,1),t.m(o.parentNode,o)),c[0]?b?(b.p(c,u),u&1&&k(b,1)):(b=UA(c),b.c(),k(b,1),b.m(i.parentNode,i)):b&&(Ve(),v(b,1,1,()=>{b=null}),Te())},i(c){n||(k(a),k(t),k(b),n=!0)},o(c){v(a),v(t),v(b),n=!1},d(c){c&&(w(e),w(o),w(i)),a&&a.d(c),s[A].d(c),b&&b.d(c)}}}function Vt(r){let e,A;const t=[{dismissable:r[0]},{color:"primary"},{role:"alert"},{rounded:!0},r[3],{class:r[1]}];let o={$$slots:{default:[Ot,({close:i})=>({17:i}),({close:i})=>i?131072:0]},$$scope:{ctx:r}};for(let i=0;i{A(16,e=G(G({},e),H(m))),A(3,o=q(e,t)),"dismissable"in m&&A(0,l=m.dismissable),"defaultClass"in m&&A(4,s=m.defaultClass),"$$scope"in m&&A(15,n=m.$$scope)},r.$$.update=()=>{A(1,d=Ge(s,(a.icon||l)&&"flex items-center",e.class))},e=H(e),[l,d,a,o,s,i,b,c,u,g,f,h,S,Q,y,n]}class Rt extends ve{constructor(e){super(),Ee(this,e,Tt,Vt,be,{dismissable:0,defaultClass:4})}}function Zt(r){let e=r[2],A,t,o=r[2]&&cA(r);return{c(){o&&o.c(),A=U()},l(i){o&&o.l(i),A=U()},m(i,n){o&&o.m(i,n),I(i,A,n),t=!0},p(i,n){i[2]?e?be(e,i[2])?(o.d(1),o=cA(i),e=i[2],o.c(),o.m(A.parentNode,A)):o.p(i,n):(o=cA(i),e=i[2],o.c(),o.m(A.parentNode,A)):e&&(o.d(1),o=null,e=i[2])},i(i){t||(k(o,i),t=!0)},o(i){v(o,i),t=!1},d(i){i&&w(A),o&&o.d(i)}}}function Dt(r){let e,A,t,o;const i=r[12].default,n=K(i,r,r[11],null);let a=[{type:r[1]},r[4],{class:r[3]}],l={};for(let s=0;s{n[d]=null}),Te(),A=n[e],A?A.p(l,s):(A=n[e]=i[e](l),A.c()),k(A,1),A.m(t.parentNode,t))},i(l){o||(k(A),o=!0)},o(l){v(A),o=!1},d(l){l&&w(t),n[e].d(l)}}}function Yt(r,e,A){const t=["pill","outline","size","href","type","color","shadow","tag","checked"];let o=q(e,t),{$$slots:i={},$$scope:n}=e;const a=jA("group");let{pill:l=!1}=e,{outline:s=!1}=e,{size:d=a?"sm":"md"}=e,{href:b=void 0}=e,{type:c="button"}=e,{color:u=a?s?"dark":"alternative":"primary"}=e,{shadow:g=!1}=e,{tag:f="button"}=e,{checked:h=void 0}=e;const S={alternative:"text-gray-900 bg-white border border-gray-200 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400 hover:text-primary-700 focus-within:text-primary-700 dark:focus-within:text-white dark:hover:text-white",blue:"text-white bg-blue-700 hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700",dark:"text-white bg-gray-800 hover:bg-gray-900 dark:bg-gray-800 dark:hover:bg-gray-700",green:"text-white bg-green-700 hover:bg-green-800 dark:bg-green-600 dark:hover:bg-green-700",light:"text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600",primary:"text-white bg-primary-700 hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700",purple:"text-white bg-purple-700 hover:bg-purple-800 dark:bg-purple-600 dark:hover:bg-purple-700",red:"text-white bg-red-700 hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700",yellow:"text-white bg-yellow-400 hover:bg-yellow-500 ",none:""},Q={alternative:"text-primary-700 border dark:text-primary-500 bg-gray-100 dark:bg-gray-700 border-gray-300 shadow-gray-300 dark:shadow-gray-800 shadow-inner",blue:"text-blue-900 bg-blue-400 dark:bg-blue-500 shadow-blue-700 dark:shadow-blue-800 shadow-inner",dark:"text-white bg-gray-500 dark:bg-gray-600 shadow-gray-800 dark:shadow-gray-900 shadow-inner",green:"text-green-900 bg-green-400 dark:bg-green-500 shadow-green-700 dark:shadow-green-800 shadow-inner",light:"text-gray-900 bg-gray-100 border border-gray-300 dark:bg-gray-500 dark:text-gray-900 dark:border-gray-700 shadow-gray-300 dark:shadow-gray-700 shadow-inner",primary:"text-primary-900 bg-primary-400 dark:bg-primary-500 shadow-primary-700 dark:shadow-primary-800 shadow-inner",purple:"text-purple-900 bg-purple-400 dark:bg-purple-500 shadow-purple-700 dark:shadow-purple-800 shadow-inner",red:"text-red-900 bg-red-400 dark:bg-red-500 shadow-red-700 dark:shadow-red-800 shadow-inner",yellow:"text-yellow-900 bg-yellow-300 dark:bg-yellow-400 shadow-yellow-500 dark:shadow-yellow-700 shadow-inner",none:""},y={alternative:"focus-within:ring-gray-200 dark:focus-within:ring-gray-700",blue:"focus-within:ring-blue-300 dark:focus-within:ring-blue-800",dark:"focus-within:ring-gray-300 dark:focus-within:ring-gray-700",green:"focus-within:ring-green-300 dark:focus-within:ring-green-800",light:"focus-within:ring-gray-200 dark:focus-within:ring-gray-700",primary:"focus-within:ring-primary-300 dark:focus-within:ring-primary-800",purple:"focus-within:ring-purple-300 dark:focus-within:ring-purple-900",red:"focus-within:ring-red-300 dark:focus-within:ring-red-900",yellow:"focus-within:ring-yellow-300 dark:focus-within:ring-yellow-900",none:""},m={alternative:"shadow-gray-500/50 dark:shadow-gray-800/80",blue:"shadow-blue-500/50 dark:shadow-blue-800/80",dark:"shadow-gray-500/50 dark:shadow-gray-800/80",green:"shadow-green-500/50 dark:shadow-green-800/80",light:"shadow-gray-500/50 dark:shadow-gray-800/80",primary:"shadow-primary-500/50 dark:shadow-primary-800/80",purple:"shadow-purple-500/50 dark:shadow-purple-800/80",red:"shadow-red-500/50 dark:shadow-red-800/80 ",yellow:"shadow-yellow-500/50 dark:shadow-yellow-800/80 ",none:""},Y={alternative:"text-gray-900 dark:text-gray-400 hover:text-white border border-gray-800 hover:bg-gray-900 focus-within:bg-gray-900 focus-within:text-white focus-within:ring-gray-300 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600 dark:focus-within:ring-gray-800",blue:"text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-600",dark:"text-gray-900 hover:text-white border border-gray-800 hover:bg-gray-900 focus-within:bg-gray-900 focus-within:text-white dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600",green:"text-green-700 hover:text-white border border-green-700 hover:bg-green-800 dark:border-green-500 dark:text-green-500 dark:hover:text-white dark:hover:bg-green-600",light:"text-gray-500 hover:text-gray-900 bg-white border border-gray-200 dark:border-gray-600 dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600",primary:"text-primary-700 hover:text-white border border-primary-700 hover:bg-primary-700 dark:border-primary-500 dark:text-primary-500 dark:hover:text-white dark:hover:bg-primary-600",purple:"text-purple-700 hover:text-white border border-purple-700 hover:bg-purple-800 dark:border-purple-400 dark:text-purple-400 dark:hover:text-white dark:hover:bg-purple-500",red:"text-red-700 hover:text-white border border-red-700 hover:bg-red-800 dark:border-red-500 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600",yellow:"text-yellow-400 hover:text-white border border-yellow-400 hover:bg-yellow-500 dark:border-yellow-300 dark:text-yellow-300 dark:hover:text-white dark:hover:bg-yellow-400",none:""},L={xs:"px-3 py-2 text-xs",sm:"px-4 py-2 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-3.5 text-base"},me=()=>s||u==="alternative"||u==="light";let le;function re(p){M.call(this,r,p)}function j(p){M.call(this,r,p)}function E(p){M.call(this,r,p)}function V(p){M.call(this,r,p)}function te(p){M.call(this,r,p)}function se(p){M.call(this,r,p)}function ze(p){M.call(this,r,p)}function ce(p){M.call(this,r,p)}function _e(p){M.call(this,r,p)}function Ce(p){M.call(this,r,p)}function de(p){M.call(this,r,p)}function Be(p){M.call(this,r,p)}function pe(p){M.call(this,r,p)}function ue(p){M.call(this,r,p)}function Ne(p){M.call(this,r,p)}function He(p){M.call(this,r,p)}function Je(p){M.call(this,r,p)}function Ue(p){M.call(this,r,p)}return r.$$set=p=>{A(39,e=G(G({},e),H(p))),A(4,o=q(e,t)),"pill"in p&&A(5,l=p.pill),"outline"in p&&A(6,s=p.outline),"size"in p&&A(7,d=p.size),"href"in p&&A(0,b=p.href),"type"in p&&A(1,c=p.type),"color"in p&&A(8,u=p.color),"shadow"in p&&A(9,g=p.shadow),"tag"in p&&A(2,f=p.tag),"checked"in p&&A(10,h=p.checked),"$$scope"in p&&A(11,n=p.$$scope)},r.$$.update=()=>{A(3,le=Ge("text-center font-medium",a?"focus-within:ring-2":"focus-within:ring-4",a&&"focus-within:z-10",a||"focus-within:outline-none","inline-flex items-center justify-center "+L[d],s&&h&&"border dark:border-gray-900",s&&h&&Q[u],s&&!h&&Y[u],!s&&h&&Q[u],!s&&!h&&S[u],u==="alternative"&&(a&&!h?"dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600":"dark:bg-transparent dark:border-gray-600 dark:hover:border-gray-700"),s&&u==="dark"&&(a?h?"bg-gray-900 border-gray-800 dark:border-white dark:bg-gray-600":"dark:text-white border-gray-800 dark:border-white":"dark:text-gray-400 dark:border-gray-700"),y[u],me()&&a&&"border-l-0 first:border-l",a?l&&"first:rounded-l-full last:rounded-r-full"||"first:rounded-l-lg last:rounded-r-lg":l&&"rounded-full"||"rounded-lg",g&&"shadow-lg",g&&m[u],e.disabled&&"cursor-not-allowed opacity-50",e.class))},e=H(e),[b,c,f,le,o,l,s,d,u,g,h,n,i,re,j,E,V,te,se,ze,ce,_e,Ce,de,Be,pe,ue,Ne,He,Je,Ue]}class ir extends ve{constructor(e){super(),Ee(this,e,Yt,Ft,be,{pill:5,outline:6,size:7,href:0,type:1,color:8,shadow:9,tag:2,checked:10},null,[-1,-1])}}function zt(r){let e,A,t,o,i;const n=r[6].default,a=K(n,r,r[5],null);let l=[r[3],{href:r[0]},{class:A=Ge(r[2],r[1],r[4].class)}],s={};for(let d=0;d{A(4,e=G(G({},e),H(b))),A(3,o=q(e,t)),"href"in b&&A(0,a=b.href),"color"in b&&A(1,l=b.color),"aClass"in b&&A(2,s=b.aClass),"$$scope"in b&&A(5,n=b.$$scope)},e=H(e),[a,l,s,o,e,n,i,d]}class kA extends ve{constructor(e){super(),Ee(this,e,Nt,zt,be,{href:0,color:1,aClass:2})}}var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hA={exports:{}};(function(r,e){(function(A,t){var o="1.0.37",i="",n="?",a="function",l="undefined",s="object",d="string",b="major",c="model",u="name",g="type",f="vendor",h="version",S="architecture",Q="console",y="mobile",m="tablet",Y="smarttv",L="wearable",me="embedded",le=500,re="Amazon",j="Apple",E="ASUS",V="BlackBerry",te="Browser",se="Chrome",ze="Edge",ce="Firefox",_e="Google",Ce="Huawei",de="LG",Be="Microsoft",pe="Motorola",ue="Opera",Ne="Samsung",He="Sharp",Je="Sony",Ue="Xiaomi",p="Zebra",yA="Facebook",_A="Chromium OS",vA="Mac OS",nr=function(x,T){var C={};for(var R in x)T[R]&&T[R].length%2===0?C[R]=T[R].concat(x[R]):C[R]=x[R];return C},Ke=function(x){for(var T={},C=0;C0?O.length===2?typeof O[1]==a?this[O[0]]=O[1].call(this,ke):this[O[0]]=O[1]:O.length===3?typeof O[1]===a&&!(O[1].exec&&O[1].test)?this[O[0]]=ke?O[1].call(this,ke,O[2]):t:this[O[0]]=ke?ke.replace(O[1],O[2]):t:O.length===4&&(this[O[0]]=ke?O[3].call(this,ke.replace(O[1],O[2])):t):this[O]=ke||t;C+=2}},nA=function(x,T){for(var C in T)if(typeof T[C]===s&&T[C].length>0){for(var R=0;R2&&(_[c]="iPad",_[g]=m),_},this.getEngine=function(){var _={};return _[u]=t,_[h]=t,Le.call(_,R,we.engine),_},this.getOS=function(){var _={};return _[u]=t,_[h]=t,Le.call(_,R,we.os),O&&!_[u]&&Ie&&Ie.platform!="Unknown"&&(_[u]=Ie.platform.replace(/chrome os/i,_A).replace(/macos/i,vA)),_},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return R},this.setUA=function(_){return R=typeof _===d&&_.length>le?iA(_,le):_,this},this.setUA(R),this};fe.VERSION=o,fe.BROWSER=Ke([u,h,b]),fe.CPU=Ke([S]),fe.DEVICE=Ke([c,f,g,Q,y,Y,m,L,me]),fe.ENGINE=fe.OS=Ke([u,h]),r.exports&&(e=r.exports=fe),e.UAParser=fe;var Xe=typeof A!==l&&(A.jQuery||A.Zepto);if(Xe&&!Xe.ua){var $e=new fe;Xe.ua=$e.getResult(),Xe.ua.get=function(){return $e.getUA()},Xe.ua.set=function(x){$e.setUA(x);var T=$e.getResult();for(var C in T)Xe.ua[C]=T[C]}}})(typeof window=="object"?window:Jt)})(hA,hA.exports);var Wt=hA.exports;function Ut(r){let e,A=(Number(r[3]??0)/1e3).toFixed(3)+"",t;return{c(){e=z("span"),t=X(A),this.h()},l(o){e=N(o,"SPAN",{class:!0,style:!0});var i=F(e);t=W(i,A),i.forEach(w),this.h()},h(){J(e,"class","text-9xl font-bold"),OA(e,"color",r[4](r[1],r[2]))},m(o,i){I(o,e,i),P(e,t)},p(o,i){i&8&&A!==(A=(Number(o[3]??0)/1e3).toFixed(3)+"")&&tA(t,A),i&6&&OA(e,"color",o[4](o[1],o[2]))},d(o){o&&w(e)}}}function qt(r){let e,A;return{c(){e=z("span"),A=X(r[0]),this.h()},l(t){e=N(t,"SPAN",{class:!0});var o=F(e);A=W(o,r[0]),o.forEach(w),this.h()},h(){J(e,"class","text-6xl font-bold text-white py-6 text-center")},m(t,o){I(t,e,o),P(e,A)},p(t,o){o&1&&tA(A,t[0])},d(t){t&&w(e)}}}function Lt(r){let e,A,t;function o(a,l){return a[0].length>0?qt:Ut}let i=o(r),n=i(r);return{c(){e=z("div"),A=z("div"),t=z("div"),n.c(),this.h()},l(a){e=N(a,"DIV",{class:!0});var l=F(e);A=N(l,"DIV",{class:!0});var s=F(A);t=N(s,"DIV",{class:!0});var d=F(t);n.l(d),d.forEach(w),s.forEach(w),l.forEach(w),this.h()},h(){J(t,"class","flex flex-grow flex-col items-center"),J(A,"class","w-full flex flex-row flex-wrap gap-3 justify-center"),J(e,"class","flex flex-col items-center gap-3 pb-6")},m(a,l){I(a,e,l),P(e,A),P(A,t),n.m(t,null)},p(a,[l]){i===(i=o(a))&&n?n.p(a,l):(n.d(1),n=i(a),n&&(n.c(),n.m(t,null)))},i:MA,o:MA,d(a){a&&w(e),n.d()}}}function jt(r,e,A){let t;PA(r,pA,c=>A(7,t=c));const o=(c=0n)=>{A(1,a=BigInt(Math.floor(performance.now()))-c),A(2,l=void 0)},i=()=>{A(1,a=void 0),A(2,l=void 0),A(3,s=void 0)};let{placeholder:n=""}=e,a,l,s,d;hr(()=>{d=setInterval(()=>{if(a){let c=BigInt(Math.floor(performance.now()));const u=(l??c)-a;A(3,s=l===void 0?u-u%100n:u)}},100)}),mr(()=>{clearInterval(d)});const b=(c,u)=>c===void 0?"white":c!==void 0&&u===void 0?"red":c!==void 0&&u!==void 0?"green":"white";return r.$$set=c=>{"placeholder"in c&&A(0,n=c.placeholder)},r.$$.update=()=>{if(r.$$.dirty&130)e:{if(!a||!t.lastTriggerTime)break e;t.lastTriggerTime>a&&A(2,l=t.lastTriggerTime)}},[n,a,l,s,b,o,i,t]}class Pt extends ve{constructor(e){super(),Ee(this,e,jt,Lt,be,{start:5,reset:6,placeholder:0})}get start(){return this.$$.ctx[5]}get reset(){return this.$$.ctx[6]}}var Ht={webm:"data:video/webm;base64,GkXf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AkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"};const{webm:Kt,mp4:$t}=Ht,dA=()=>typeof navigator<"u"&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream,uA=()=>"wakeLock"in navigator;class eo{constructor(){if(this.enabled=!1,uA()){this._wakeLock=null;const e=()=>{this._wakeLock!==null&&document.visibilityState==="visible"&&this.enable()};document.addEventListener("visibilitychange",e),document.addEventListener("fullscreenchange",e)}else dA()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",Kt),this._addSourceToVideo(this.noSleepVideo,"mp4",$t),this.noSleepVideo.addEventListener("loadedmetadata",()=>{this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",()=>{this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})}))}_addSourceToVideo(e,A,t){var o=document.createElement("source");o.src=t,o.type=`video/${A}`,e.appendChild(o)}get isEnabled(){return this.enabled}enable(){return uA()?navigator.wakeLock.request("screen").then(e=>{this._wakeLock=e,this.enabled=!0,console.log("Wake Lock active."),this._wakeLock.addEventListener("release",()=>{console.log("Wake Lock released.")})}).catch(e=>{throw this.enabled=!1,console.error(`${e.name}, ${e.message}`),e}):dA()?(this.disable(),console.warn(` NoSleep enabled for older iOS devices. This can interrupt active or long-running network requests from completing successfully. See https://github.com/richtr/NoSleep.js/issues/15 for more details. `),this.noSleepTimer=window.setInterval(()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then(A=>(this.enabled=!0,A)).catch(A=>{throw this.enabled=!1,A})}disable(){uA()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):dA()?this.noSleepTimer&&(console.warn(` NoSleep now disabled for older iOS devices. `),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}}var Ao=eo;const ro=Xt(Ao);function to(r){let e,A;return e=new Rt({props:{color:"yellow",$$slots:{default:[ao]},$$scope:{ctx:r}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,o){ne(e,t,o),A=!0},p(t,o){const i={};o&2048&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){A||(k(e.$$.fragment,t),A=!0)},o(t){v(e.$$.fragment,t),A=!1},d(t){ae(e,t)}}}function oo(r){let e,A,t,o,i={placeholder:r[5][r[1]]};return e=new Pt({props:i}),r[7](e),t=new ir({props:{disabled:r[1]=="wait"||r[1]=="ready",$$slots:{default:[uo]},$$scope:{ctx:r}}}),t.$on("click",r[8]),{c(){oe(e.$$.fragment),A=Ze(),oe(t.$$.fragment)},l(n){ie(e.$$.fragment,n),A=De(n),ie(t.$$.fragment,n)},m(n,a){ne(e,n,a),I(n,A,a),ne(t,n,a),o=!0},p(n,a){const l={};a&2&&(l.placeholder=n[5][n[1]]),e.$set(l);const s={};a&2&&(s.disabled=n[1]=="wait"||n[1]=="ready"),a&2050&&(s.$$scope={dirty:a,ctx:n}),t.$set(s)},i(n){o||(k(e.$$.fragment,n),k(t.$$.fragment,n),o=!0)},o(n){v(e.$$.fragment,n),v(t.$$.fragment,n),o=!1},d(n){n&&w(A),r[7](null),ae(e,n),ae(t,n)}}}function io(r){let e,A,t,o,i,n,a,l,s,d,b;t=new kA({props:{class:"font-bold",href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility",$$slots:{default:[fo]},$$scope:{ctx:r}}});const c=[bo,go],u=[];function g(f,h){return f[3].getOS().name==="iOS"?0:1}return l=g(r),s=u[l]=c[l](r),{c(){e=z("span"),A=X("Your Browser is not compatible with this website, as it does not support "),oe(t.$$.fragment),o=X("."),i=Ze(),n=z("span"),a=X(`Please use a browser which supports web bluetooth, for example `),s.c(),d=X("."),this.h()},l(f){e=N(f,"SPAN",{class:!0});var h=F(e);A=W(h,"Your Browser is not compatible with this website, as it does not support "),ie(t.$$.fragment,h),o=W(h,"."),h.forEach(w),i=De(f),n=N(f,"SPAN",{class:!0});var S=F(n);a=W(S,`Please use a browser which supports web bluetooth, for example `),s.l(S),d=W(S,"."),S.forEach(w),this.h()},h(){J(e,"class","text-xl text-white rounded-md font-bold border-primary-600 border-4 border-r-4 p-3"),J(n,"class","text-xl mt-3")},m(f,h){I(f,e,h),P(e,A),ne(t,e,null),P(e,o),I(f,i,h),I(f,n,h),P(n,a),u[l].m(n,null),P(n,d),b=!0},p(f,h){const S={};h&2048&&(S.$$scope={dirty:h,ctx:f}),t.$set(S)},i(f){b||(k(t.$$.fragment,f),k(s),b=!0)},o(f){v(t.$$.fragment,f),v(s),b=!1},d(f){f&&(w(e),w(i),w(n)),ae(t),u[l].d()}}}function no(r){let e,A;return e=new ir({props:{$$slots:{default:[po]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,o){ne(e,t,o),A=!0},p(t,o){const i={};o&2048&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){A||(k(e.$$.fragment,t),A=!0)},o(t){v(e.$$.fragment,t),A=!1},d(t){ae(e,t)}}}function ao(r){let e;return{c(){e=X("Connecting...")},l(A){e=W(A,"Connecting...")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function lo(r){let e;return{c(){e=X("Wait ...")},l(A){e=W(A,"Wait ...")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function so(r){let e;return{c(){e=X("Reset!")},l(A){e=W(A,"Reset!")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function co(r){let e;return{c(){e=X("Start!")},l(A){e=W(A,"Start!")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function uo(r){let e;function A(i,n){return i[1]=="idle"?co:i[1]=="running"?so:lo}let t=A(r),o=t(r);return{c(){o.c(),e=U()},l(i){o.l(i),e=U()},m(i,n){o.m(i,n),I(i,e,n)},p(i,n){t!==(t=A(i))&&(o.d(1),o=t(i),o&&(o.c(),o.m(e.parentNode,e)))},d(i){i&&w(e),o.d(i)}}}function fo(r){let e;return{c(){e=X(`web bluetooth `)},l(A){e=W(A,`web bluetooth `)},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function go(r){let e,A,t;return e=new kA({props:{href:"https://www.google.com/chrome/",$$slots:{default:[ho]},$$scope:{ctx:r}}}),{c(){oe(e.$$.fragment),A=Ze()},l(o){ie(e.$$.fragment,o),A=De(o)},m(o,i){ne(e,o,i),I(o,A,i),t=!0},i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){v(e.$$.fragment,o),t=!1},d(o){o&&w(A),ae(e,o)}}}function bo(r){let e,A,t;return e=new kA({props:{href:"https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055",$$slots:{default:[mo]},$$scope:{ctx:r}}}),{c(){oe(e.$$.fragment),A=Ze()},l(o){ie(e.$$.fragment,o),A=De(o)},m(o,i){ne(e,o,i),I(o,A,i),t=!0},i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){v(e.$$.fragment,o),t=!1},d(o){o&&w(A),ae(e,o)}}}function ho(r){let e;return{c(){e=X("Google Chrome")},l(A){e=W(A,"Google Chrome")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function mo(r){let e;return{c(){e=X("Bluefy")},l(A){e=W(A,"Bluefy")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function po(r){let e;return{c(){e=X("Connect")},l(A){e=W(A,"Connect")},m(A,t){I(A,e,t)},d(A){A&&w(e)}}}function wo(r){let e,A,t,o;const i=[no,io,oo,to],n=[];function a(l,s){return l[2]=="DISCONNECTED"?0:l[2]=="UNAVAILABLE"?1:l[2]=="CONNECTED"?2:3}return A=a(r),t=n[A]=i[A](r),{c(){e=z("div"),t.c(),this.h()},l(l){e=N(l,"DIV",{class:!0});var s=F(e);t.l(s),s.forEach(w),this.h()},h(){J(e,"class","p-8 flex flex-col")},m(l,s){I(l,e,s),n[A].m(e,null),o=!0},p(l,[s]){let d=A;A=a(l),A===d?n[A].p(l,s):(Ve(),v(n[d],1,1,()=>{n[d]=null}),Te(),t=n[A],t?t.p(l,s):(t=n[A]=i[A](l),t.c()),k(t,1),t.m(e,null))},i(l){o||(k(t),o=!0)},o(l){v(t),o=!1},d(l){l&&w(e),n[A].d()}}}function ko(r,e,A){let t;PA(r,Oe,g=>A(2,t=g));const o=new Wt.UAParser,i=new ro;let n,a="idle";const l=g=>new Promise(f=>setTimeout(f,g)),s=async()=>{i.isEnabled||i.enable(),A(1,a="wait"),await l(3e3),A(1,a="ready");const g=new Audio("/sound/ok-ready-go.mp3"),f=new Promise(h=>{g.onended=()=>{h()}});await g.play(),await f,n.start(200n),A(1,a="running")},d={idle:"Press start!",wait:"At your marks!",ready:"Ready!",running:""},b=()=>{vr()};function c(g){LA[g?"unshift":"push"](()=>{n=g,A(0,n)})}const u=()=>{a=="idle"?s():a=="running"&&(n.reset(),A(1,a="idle"))};return _r(),[n,a,t,o,s,d,b,c,u]}class Bo extends ve{constructor(e){super(),Ee(this,e,ko,wo,be,{})}}export{Bo as component,Co as universal};