bluetooth-buzzer/_app/immutable/nodes/2.beca72a0.js
[BOT] pages deployer 001c47c2ee Update pages 🚀
2024-01-20 10:19:44 +00:00

5 lines
78 KiB
JavaScript

var lt=Object.defineProperty;var st=(t,e,r)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Te=(t,e,r)=>(st(t,typeof e!="symbol"?e+"":e,r),r);import{s as he,e as H,i as A,d as _,A as Z,B as Sr,C as L,D as J,r as Q,f as D,g as G,h as F,E as tr,F as ct,G as U,u as $,v as ee,w as re,H as Wr,I as hr,J as O,p as Hr,K as dt,L as ut,M as ft,N as Zr,a as Be,c as Ue,O as ke,x as K,l as q,m as W,j,n as or,P as Ar,Q as Tr,R as bt,y as zr,z as Yr,o as gt,S as ht,k as Nr}from"../chunks/scheduler.2f27f277.js";import{S as xe,i as Ce,a as y,t as x,g as Me,c as Ie,b as ie,d as ne,m as ae,e as le,f as Or}from"../chunks/index.d9978d1c.js";import{w as Xr}from"../chunks/index.6e61dc83.js";function me(t,e){const r={},o={},i={$$scope:1};let n=t.length;for(;n--;){const a=t[n],l=e[n];if(l){for(const s in a)s in l||(o[s]=1);for(const s in l)i[s]||(r[s]=l[s],i[s]=1);t[n]=l}else for(const s in a)i[s]=1}for(const a in o)a in r||(r[a]=void 0);return r}function ir(t){return typeof t=="object"&&t!==null?t:{}}const mt=!1,pt=!1,mi=Object.freeze(Object.defineProperty({__proto__:null,prerender:mt,ssr:pt},Symbol.toStringTag,{value:"Module"})),Re=Xr("DISCONNECTED");let mr=Xr({});class wt{constructor(){Te(this,"__currentOffset");Te(this,"__currentFluctuation");Te(this,"__currentAcceptanceRate");Te(this,"__acceptedFluctuationFactor",4n);Te(this,"__latestOffsets",[]);Te(this,"__latestFluctuations",[]);Te(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,r,o){let i=r-e,n=o+i/2n-r;this.__handleNewOffset(n)}__handleNewOffset(e){const r=this.__isOffsetInMargin(e);this.__handleAcceptanceResult(r),r&&(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 r=this.__currentOffset-e;return r<0&&(r=-r),this.__currentFluctuation&&this.__latestFluctuations.length>5&&r>this.__currentFluctuation*this.__acceptedFluctuationFactor?!1:(this.__currentFluctuation=this.__pushValueAndCaluclateAverage(this.__latestFluctuations,r),this.__latestFluctuations.length<10?!0:r<this.__currentFluctuation*2n)}__pushValueAndCaluclateAverage(e,r){e.push(r),e.length>10&&e.shift();let o=0n;for(let i=0;i<e.length;i++)o+=e[i];return o/BigInt(e.length)}}const _t="deea3136-d728-4f23-823a-104290",ur=_t+"00",sr=ur+"0000";let Oe,rr,Fe={currentTime:void 0,lastTriggerTime:void 0},Pe,Kr,fr;function yt(){return navigator.bluetooth?(Re.set("DISCONNECTED"),!0):(Re.set("UNAVAILABLE"),!1)}async function kt(){Re.set("CONNECTING");try{Oe=await navigator.bluetooth.requestDevice({filters:[{services:[sr]}],optionalServices:[sr]})}catch(e){console.error(e),Re.set("DISCONNECTED");return}console.log("> Requested "+Oe.name+" ("+Oe.id+")");let t;try{t=await Oe.gatt.connect()}catch{console.log("> Error connecting to "+Oe.name+" ("+Oe.id+")"),Re.set("DISCONNECTED");return}Oe.addEventListener("gattserverdisconnected",vt),rr=await t.getPrimaryService(sr),Fe.currentTime=await rr.getCharacteristic(ur+"0001"),Fe.lastTriggerTime=await rr.getCharacteristic(ur+"0002"),await Fe.lastTriggerTime.startNotifications(),Fe.lastTriggerTime.addEventListener("characteristicvaluechanged",xt),Pe=new wt,fr=setInterval(Ct,1e3),Re.set("CONNECTED")}function vt(){console.log("> Bluetooth Device disconnected"),Oe=void 0,rr=void 0,Pe=void 0,Kr=void 0,fr!==void 0&&clearInterval(fr),Re.set("DISCONNECTED")}function xt(t){var r;if(!t.target)return;const e=t.target;e.uuid==((r=Fe.lastTriggerTime)==null?void 0:r.uuid)&&Et(new DataView(e.value.buffer,0).getBigUint64(0,!0))}async function Ct(){if(Pe===void 0||Fe.currentTime===void 0||Kr!==void 0)return!1;let t=performance.now(),r=(await Fe.currentTime.readValue()).getBigUint64(0,!0),o=performance.now();Pe.handleTimeSync(BigInt(Math.floor(t)),BigInt(Math.floor(o)),r),mr.update(i=>(i.offset=Pe.currentOffset(),i))}function Et(t){if(Pe===void 0)return;const e=Pe.currentOffset();e!==void 0&&mr.update(r=>(r.lastTriggerTime=t-e,r.connectionQuality=Pe.currentAcceptanceRate(),r))}const pr="-";function St(t){const e=Tt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=t;function i(a){const l=a.split(pr);return l[0]===""&&l.length!==1&&l.shift(),Jr(l,e)||At(a)}function n(a,l){const s=r[a]||[];return l&&o[a]?[...s,...o[a]]:s}return{getClassGroupId:i,getConflictingClassGroupIds:n}}function Jr(t,e){var a;if(t.length===0)return e.classGroupId;const r=t[0],o=e.nextPart.get(r),i=o?Jr(t.slice(1),o):void 0;if(i)return i;if(e.validators.length===0)return;const n=t.join(pr);return(a=e.validators.find(({validator:l})=>l(n)))==null?void 0:a.classGroupId}const Rr=/^\[(.+)\]$/;function At(t){if(Rr.test(t)){const e=Rr.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function Tt(t){const{theme:e,prefix:r}=t,o={nextPart:new Map,validators:[]};return Nt(Object.entries(t.classGroups),r).forEach(([n,a])=>{br(a,o,n,e)}),o}function br(t,e,r,o){t.forEach(i=>{if(typeof i=="string"){const n=i===""?e:Mr(e,i);n.classGroupId=r;return}if(typeof i=="function"){if(zt(i)){br(i(o),e,r,o);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([n,a])=>{br(a,Mr(e,n),r,o)})})}function Mr(t,e){let r=t;return e.split(pr).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function zt(t){return t.isThemeGetter}function Nt(t,e){return e?t.map(([r,o])=>{const i=o.map(n=>typeof n=="string"?e+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,l])=>[e+a,l])):n);return[r,i]}):t}function Ot(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;function i(n,a){r.set(n,a),e++,e>t&&(e=0,o=r,r=new Map)}return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return i(n,a),a},set(n,a){r.has(n)?r.set(n,a):i(n,a)}}}const Qr="!";function Rt(t){const e=t.separator,r=e.length===1,o=e[0],i=e.length;return function(a){const l=[];let s=0,c=0,u;for(let b=0;b<a.length;b++){let m=a[b];if(s===0){if(m===o&&(r||a.slice(b,b+i)===e)){l.push(a.slice(c,b)),c=b+i;continue}if(m==="/"){u=b;continue}}m==="["?s++:m==="]"&&s--}const h=l.length===0?a:a.substring(c),d=h.startsWith(Qr),f=d?h.substring(1):h,g=u&&u>c?u-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}}}function Mt(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e}function It(t){return{cache:Ot(t.cacheSize),splitModifiers:Rt(t),...St(t)}}const Pt=/\s+/;function Bt(t,e){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:i}=e,n=new Set;return t.trim().split(Pt).map(a=>{const{modifiers:l,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:u}=r(a);let h=o(u?c.substring(0,u):c),d=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:a};if(h=o(c),!h)return{isTailwindClass:!1,originalClassName:a};d=!1}const f=Mt(l).join(":");return{isTailwindClass:!0,modifierId:s?f+Qr:f,classGroupId:h,originalClassName:a,hasPostfixModifier:d}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:l,classGroupId:s,hasPostfixModifier:c}=a,u=l+s;return n.has(u)?!1:(n.add(u),i(s,c).forEach(h=>n.add(l+h)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function Ut(){let t=0,e,r,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=$r(e))&&(o&&(o+=" "),o+=r);return o}function $r(t){if(typeof t=="string")return t;let e,r="";for(let o=0;o<t.length;o++)t[o]&&(e=$r(t[o]))&&(r&&(r+=" "),r+=e);return r}function Lt(t,...e){let r,o,i,n=a;function a(s){const c=e.reduce((u,h)=>h(u),t());return r=It(c),o=r.cache.get,i=r.cache.set,n=l,l(s)}function l(s){const c=o(s);if(c)return c;const u=Bt(s,r);return i(s,u),u}return function(){return n(Ut.apply(null,arguments))}}function B(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const et=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ft=/^\d+\/\d+$/,Vt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gt=/\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$/,jt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ge(t){return Ve(t)||Vt.has(t)||Ft.test(t)}function ze(t){return We(t,"length",Qt)}function Ve(t){return!!t&&!Number.isNaN(Number(t))}function er(t){return We(t,"number",Ve)}function Xe(t){return!!t&&Number.isInteger(Number(t))}function Wt(t){return t.endsWith("%")&&Ve(t.slice(0,-1))}function S(t){return et.test(t)}function Ne(t){return Dt.test(t)}const Ht=new Set(["length","size","percentage"]);function Zt(t){return We(t,Ht,rt)}function Yt(t){return We(t,"position",rt)}const Xt=new Set(["image","url"]);function Kt(t){return We(t,Xt,eo)}function Jt(t){return We(t,"",$t)}function Ke(){return!0}function We(t,e,r){const o=et.exec(t);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1}function Qt(t){return Gt.test(t)}function rt(){return!1}function $t(t){return jt.test(t)}function eo(t){return qt.test(t)}function ro(){const t=B("colors"),e=B("spacing"),r=B("blur"),o=B("brightness"),i=B("borderColor"),n=B("borderRadius"),a=B("borderSpacing"),l=B("borderWidth"),s=B("contrast"),c=B("grayscale"),u=B("hueRotate"),h=B("invert"),d=B("gap"),f=B("gradientColorStops"),g=B("gradientColorStopPositions"),b=B("inset"),m=B("margin"),z=B("opacity"),T=B("padding"),k=B("saturate"),p=B("scale"),V=B("sepia"),Y=B("skew"),pe=B("space"),se=B("translate"),te=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",S,e],M=()=>[S,e],oe=()=>["",ge,ze],ce=()=>["auto",Ve,S],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Ee=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],Se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[Ve,er],fe=()=>[Ve,S];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[ge,ze],blur:["none","",Ne,S],brightness:we(),borderColor:[t],borderRadius:["none","","full",Ne,S],borderSpacing:M(),borderWidth:oe(),contrast:we(),grayscale:ue(),hueRotate:fe(),invert:ue(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[Wt,ze],inset:C(),margin:C(),opacity:we(),padding:M(),saturate:we(),scale:we(),sepia:ue(),skew:fe(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[Ne]}],"break-after":[{"break-after":Se()}],"break-before":[{"break-before":Se()}],"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:[...De(),S]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xe,S]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",Xe,S]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Xe,S]},S]}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Xe,S]},S]}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",S,e]}],"min-w":[{"min-w":["min","max","fit",S,ge]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ne]},Ne,S]}],h:[{h:[S,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ge,S]}],"max-h":[{"max-h":[S,e,"min","max","fit"]}],"font-size":[{text:["base",Ne,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",er]}],"font-family":[{font:[Ke]}],"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",S]}],"line-clamp":[{"line-clamp":["none",Ve,er]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,ze]}],"underline-offset":[{"underline-offset":["auto",ge,S]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),Yt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[ge,S]}],"outline-w":[{outline:[ge,ze]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[ge,ze]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ne,Jt]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":ve()}],"bg-blend":[{"bg-blend":ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Ne,S]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[k]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[p]}],"scale-x":[{"scale-x":[p]}],"scale-y":[{"scale-y":[p]}],rotate:[{rotate:[Xe,S]}],"translate-x":[{"translate-x":[se]}],"translate-y":[{"translate-y":[se]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",t]}],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",S]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",S]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ge,ze,er]}],stroke:[{stroke:[t,"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 Le=Lt(ro);function cr(t){let e,r,o,i,n;const a=t[12].default,l=Q(a,t,t[11],null);let s=[{role:t[4]},t[6],{class:t[5]}],c={};for(let u=0;u<s.length;u+=1)c=L(c,s[u]);return{c(){e=D(t[1]),l&&l.c(),this.h()},l(u){e=G(u,(t[1]||"null").toUpperCase(),{role:!0,class:!0});var h=F(e);l&&l.l(h),h.forEach(_),this.h()},h(){tr(t[1])(e,c)},m(u,h){A(u,e,h),l&&l.m(e,null),t[18](e),o=!0,i||(n=[ct(r=t[2].call(null,e,t[3])),U(e,"click",t[13]),U(e,"mouseenter",t[14]),U(e,"mouseleave",t[15]),U(e,"focusin",t[16]),U(e,"focusout",t[17])],i=!0)},p(u,h){l&&l.p&&(!o||h&2048)&&$(l,a,u,u[11],o?re(a,u[11],h,null):ee(u[11]),null),tr(u[1])(e,c=me(s,[(!o||h&16)&&{role:u[4]},h&64&&u[6],(!o||h&32)&&{class:u[5]}])),r&&Wr(r.update)&&h&8&&r.update.call(null,u[3])},i(u){o||(y(l,u),o=!0)},o(u){x(l,u),o=!1},d(u){u&&_(e),l&&l.d(u),t[18](null),i=!1,hr(n)}}}function to(t){let e=t[1],r,o,i=t[1]&&cr(t);return{c(){i&&i.c(),r=H()},l(n){i&&i.l(n),r=H()},m(n,a){i&&i.m(n,a),A(n,r,a),o=!0},p(n,[a]){n[1]?e?he(e,n[1])?(i.d(1),i=cr(n),e=n[1],i.c(),i.m(r.parentNode,r)):i.p(n,a):(i=cr(n),e=n[1],i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=n[1])},i(n){o||(y(i,n),o=!0)},o(n){x(i,n),o=!1},d(n){n&&_(r),i&&i.d(n)}}}function oo(t,e,r){const o=["tag","color","rounded","border","shadow","node","use","options","role"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=()=>{};Sr("background",!0);let{tag:s=i.href?"a":"div"}=e,{color:c="default"}=e,{rounded:u=!1}=e,{border:h=!1}=e,{shadow:d=!1}=e,{node:f=void 0}=e,{use:g=l}=e,{options:b={}}=e,{role:m=void 0}=e;const z={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:""},T={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:""},k={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 p;function V(C){O.call(this,t,C)}function Y(C){O.call(this,t,C)}function pe(C){O.call(this,t,C)}function se(C){O.call(this,t,C)}function te(C){O.call(this,t,C)}function X(C){Hr[C?"unshift":"push"](()=>{f=C,r(0,f)})}return t.$$set=C=>{r(23,e=L(L({},e),J(C))),r(6,i=Z(e,o)),"tag"in C&&r(1,s=C.tag),"color"in C&&r(7,c=C.color),"rounded"in C&&r(8,u=C.rounded),"border"in C&&r(9,h=C.border),"shadow"in C&&r(10,d=C.shadow),"node"in C&&r(0,f=C.node),"use"in C&&r(2,g=C.use),"options"in C&&r(3,b=C.options),"role"in C&&r(4,m=C.role),"$$scope"in C&&r(11,a=C.$$scope)},t.$$.update=()=>{t.$$.dirty&128&&r(7,c=c??"default"),t.$$.dirty&128&&Sr("color",c),r(5,p=Le(z[c],T[c],u&&"rounded-lg",h&&"border",k[c],d&&"shadow-md",e.class))},e=J(e),[f,s,g,b,m,p,i,c,u,h,d,a,n,V,Y,pe,se,te,X]}class tt extends xe{constructor(e){super(),Ce(this,e,oo,to,he,{tag:1,color:7,rounded:8,border:9,shadow:10,node:0,use:2,options:3,role:4})}}function io(t,{delay:e=0,duration:r=400,easing:o=dt}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:o,css:n=>`opacity: ${n*i}`}}const no=t=>({}),Ir=t=>({close:t[4]}),ao=t=>({}),Pr=t=>({close:t[4]});function lo(t){let e,r;const o=[t[5]];let i={$$slots:{default:[co]},$$scope:{ctx:t}};for(let n=0;n<o.length;n+=1)i=L(i,o[n]);return e=new tt({props:i}),{c(){ie(e.$$.fragment)},l(n){ne(e.$$.fragment,n)},m(n,a){ae(e,n,a),r=!0},p(n,a){const l=a&32?me(o,[ir(n[5])]):{};a&128&&(l.$$scope={dirty:a,ctx:n}),e.$set(l)},i(n){r||(y(e.$$.fragment,n),r=!0)},o(n){x(e.$$.fragment,n),r=!1},d(n){le(e,n)}}}function so(t){let e,r,o=t[0]&&Br(t);return{c(){o&&o.c(),e=H()},l(i){o&&o.l(i),e=H()},m(i,n){o&&o.m(i,n),A(i,e,n),r=!0},p(i,n){i[0]?o?(o.p(i,n),n&1&&y(o,1)):(o=Br(i),o.c(),y(o,1),o.m(e.parentNode,e)):o&&(Me(),x(o,1,1,()=>{o=null}),Ie())},i(i){r||(y(o),r=!0)},o(i){x(o),r=!1},d(i){i&&_(e),o&&o.d(i)}}}function co(t){let e;const r=t[6].default,o=Q(r,t,t[7],Ir);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&128)&&$(o,r,i,i[7],e?re(r,i[7],n,no):ee(i[7]),Ir)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function Br(t){let e,r,o,i;const n=[t[5]];let a={$$slots:{default:[uo]},$$scope:{ctx:t}};for(let l=0;l<n.length;l+=1)a=L(a,n[l]);return r=new tt({props:a}),{c(){e=D("div"),ie(r.$$.fragment)},l(l){e=G(l,"DIV",{});var s=F(e);ne(r.$$.fragment,s),s.forEach(_)},m(l,s){A(l,e,s),ae(r,e,null),i=!0},p(l,s){t=l;const c=s&32?me(n,[ir(t[5])]):{};s&128&&(c.$$scope={dirty:s,ctx:t}),r.$set(c)},i(l){i||(y(r.$$.fragment,l),l&&ft(()=>{i&&(o||(o=Or(e,t[1],t[2],!0)),o.run(1))}),i=!0)},o(l){x(r.$$.fragment,l),l&&(o||(o=Or(e,t[1],t[2],!1)),o.run(0)),i=!1},d(l){l&&_(e),le(r),l&&o&&o.end()}}}function uo(t){let e;const r=t[6].default,o=Q(r,t,t[7],Pr);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&128)&&$(o,r,i,i[7],e?re(r,i[7],n,ao):ee(i[7]),Pr)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function fo(t){let e,r,o,i;const n=[so,lo],a=[];function l(s,c){return s[3]?0:1}return e=l(t),r=a[e]=n[e](t),{c(){r.c(),o=H()},l(s){r.l(s),o=H()},m(s,c){a[e].m(s,c),A(s,o,c),i=!0},p(s,[c]){let u=e;e=l(s),e===u?a[e].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function bo(t,e,r){const o=["transition","params","open","dismissable"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e,{transition:l=io}=e,{params:s={}}=e,{open:c=!0}=e,{dismissable:u=!1}=e;const h=ut();function d(f){f!=null&&f.stopPropagation&&f.stopPropagation(),r(0,c=!1)}return t.$$set=f=>{e=L(L({},e),J(f)),r(5,i=Z(e,o)),"transition"in f&&r(1,l=f.transition),"params"in f&&r(2,s=f.params),"open"in f&&r(0,c=f.open),"dismissable"in f&&r(3,u=f.dismissable),"$$scope"in f&&r(7,a=f.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&h(c?"open":"close")},[c,l,s,u,d,i,n,a]}class go extends xe{constructor(e){super(),Ce(this,e,bo,fo,he,{transition:1,params:2,open:0,dismissable:3})}}const ho=t=>({svgSize:t&4}),Ur=t=>({svgSize:t[5][t[2]]}),mo=t=>({svgSize:t&4}),Lr=t=>({svgSize:t[5][t[2]]});function po(t){let e,r,o,i,n,a,l=t[0]&&Fr(t);const s=t[9].default,c=Q(s,t,t[8],Ur);let u=[{type:"button"},t[6],{class:t[4]},{"aria-label":o=t[1]??t[0]}],h={};for(let d=0;d<u.length;d+=1)h=L(h,u[d]);return{c(){e=D("button"),l&&l.c(),r=Be(),c&&c.c(),this.h()},l(d){e=G(d,"BUTTON",{type:!0,class:!0,"aria-label":!0});var f=F(e);l&&l.l(f),r=Ue(f),c&&c.l(f),f.forEach(_),this.h()},h(){ke(e,h)},m(d,f){A(d,e,f),l&&l.m(e,null),K(e,r),c&&c.m(e,null),e.autofocus&&e.focus(),i=!0,n||(a=U(e,"click",t[10]),n=!0)},p(d,f){d[0]?l?l.p(d,f):(l=Fr(d),l.c(),l.m(e,r)):l&&(l.d(1),l=null),c&&c.p&&(!i||f&260)&&$(c,s,d,d[8],i?re(s,d[8],f,ho):ee(d[8]),Ur),ke(e,h=me(u,[{type:"button"},f&64&&d[6],(!i||f&16)&&{class:d[4]},(!i||f&3&&o!==(o=d[1]??d[0]))&&{"aria-label":o}]))},i(d){i||(y(c,d),i=!0)},o(d){x(c,d),i=!1},d(d){d&&_(e),l&&l.d(),c&&c.d(d),n=!1,a()}}}function wo(t){let e,r,o,i,n=t[0]&&Vr(t);const a=t[9].default,l=Q(a,t,t[8],Lr);let s=[{href:t[3]},t[6],{class:t[4]},{"aria-label":o=t[1]??t[0]}],c={};for(let u=0;u<s.length;u+=1)c=L(c,s[u]);return{c(){e=D("a"),n&&n.c(),r=Be(),l&&l.c(),this.h()},l(u){e=G(u,"A",{href:!0,class:!0,"aria-label":!0});var h=F(e);n&&n.l(h),r=Ue(h),l&&l.l(h),h.forEach(_),this.h()},h(){ke(e,c)},m(u,h){A(u,e,h),n&&n.m(e,null),K(e,r),l&&l.m(e,null),i=!0},p(u,h){u[0]?n?n.p(u,h):(n=Vr(u),n.c(),n.m(e,r)):n&&(n.d(1),n=null),l&&l.p&&(!i||h&260)&&$(l,a,u,u[8],i?re(a,u[8],h,mo):ee(u[8]),Lr),ke(e,c=me(s,[(!i||h&8)&&{href:u[3]},h&64&&u[6],(!i||h&16)&&{class:u[4]},(!i||h&3&&o!==(o=u[1]??u[0]))&&{"aria-label":o}]))},i(u){i||(y(l,u),i=!0)},o(u){x(l,u),i=!1},d(u){u&&_(e),n&&n.d(),l&&l.d(u)}}}function Fr(t){let e,r;return{c(){e=D("span"),r=q(t[0]),this.h()},l(o){e=G(o,"SPAN",{class:!0});var i=F(e);r=W(i,t[0]),i.forEach(_),this.h()},h(){j(e,"class","sr-only")},m(o,i){A(o,e,i),K(e,r)},p(o,i){i&1&&or(r,o[0])},d(o){o&&_(e)}}}function Vr(t){let e,r;return{c(){e=D("span"),r=q(t[0]),this.h()},l(o){e=G(o,"SPAN",{class:!0});var i=F(e);r=W(i,t[0]),i.forEach(_),this.h()},h(){j(e,"class","sr-only")},m(o,i){A(o,e,i),K(e,r)},p(o,i){i&1&&or(r,o[0])},d(o){o&&_(e)}}}function _o(t){let e,r,o,i;const n=[wo,po],a=[];function l(s,c){return s[3]?0:1}return e=l(t),r=a[e]=n[e](t),{c(){r.c(),o=H()},l(s){r.l(s),o=H()},m(s,c){a[e].m(s,c),A(s,o,c),i=!0},p(s,[c]){let u=e;e=l(s),e===u?a[e].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function yo(t,e,r){const o=["color","name","ariaLabel","size","href"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=Zr("background");let{color:s="default"}=e,{name:c=void 0}=e,{ariaLabel:u=void 0}=e,{size:h="md"}=e,{href:d=void 0}=e;const f={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 b;const m={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-5 h-5",lg:"w-5 h-5"};function z(T){O.call(this,t,T)}return t.$$set=T=>{r(14,e=L(L({},e),J(T))),r(6,i=Z(e,o)),"color"in T&&r(7,s=T.color),"name"in T&&r(0,c=T.name),"ariaLabel"in T&&r(1,u=T.ariaLabel),"size"in T&&r(2,h=T.size),"href"in T&&r(3,d=T.href),"$$scope"in T&&r(8,a=T.$$scope)},t.$$.update=()=>{r(4,b=Le("focus:outline-none whitespace-normal",g[h],f[s],s==="default"&&(l?"hover:bg-gray-100 dark:hover:bg-gray-600":"hover:bg-gray-100 dark:hover:bg-gray-700"),e.class))},e=J(e),[c,u,h,d,b,m,i,s,a,n,z]}class ko extends xe{constructor(e){super(),Ce(this,e,yo,_o,he,{color:7,name:0,ariaLabel:1,size:2,href:3})}}function vo(t){let e,r,o;return{c(){e=Ar("svg"),r=Ar("path"),this.h()},l(i){e=Tr(i,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var n=F(e);r=Tr(n,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),F(r).forEach(_),n.forEach(_),this.h()},h(){j(r,"fill-rule","evenodd"),j(r,"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(r,"clip-rule","evenodd"),j(e,"class",o=t[4]),j(e,"fill","currentColor"),j(e,"viewBox","0 0 20 20"),j(e,"xmlns","http://www.w3.org/2000/svg")},m(i,n){A(i,e,n),K(e,r)},p(i,n){n&16&&o!==(o=i[4])&&j(e,"class",o)},d(i){i&&_(e)}}}function xo(t){let e,r;const o=[{name:t[0]},t[1],{class:Le("ml-auto",t[2].class)}];let i={$$slots:{default:[vo,({svgSize:n})=>({4:n}),({svgSize:n})=>n?16:0]},$$scope:{ctx:t}};for(let n=0;n<o.length;n+=1)i=L(i,o[n]);return e=new ko({props:i}),e.$on("click",t[3]),{c(){ie(e.$$.fragment)},l(n){ne(e.$$.fragment,n)},m(n,a){ae(e,n,a),r=!0},p(n,[a]){const l=a&7?me(o,[a&1&&{name:n[0]},a&2&&ir(n[1]),a&4&&{class:Le("ml-auto",n[2].class)}]):{};a&48&&(l.$$scope={dirty:a,ctx:n}),e.$set(l)},i(n){r||(y(e.$$.fragment,n),r=!0)},o(n){x(e.$$.fragment,n),r=!1},d(n){le(e,n)}}}function Co(t,e,r){const o=["name"];let i=Z(e,o),{name:n="Close"}=e;function a(l){O.call(this,t,l)}return t.$$set=l=>{r(2,e=L(L({},e),J(l))),r(1,i=Z(e,o)),"name"in l&&r(0,n=l.name)},e=J(e),[n,i,e,a]}class Eo extends xe{constructor(e){super(),Ce(this,e,Co,xo,he,{name:0})}}const So=t=>({close:t&131072}),Dr=t=>({close:t[17]}),Ao=t=>({}),Gr=t=>({});function jr(t){let e;const r=t[5].icon,o=Q(r,t,t[15],Gr);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&32768)&&$(o,r,i,i[15],e?re(r,i[15],n,Ao):ee(i[15]),Gr)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function To(t){let e;const r=t[5].default,o=Q(r,t,t[15],null);return{c(){o&&o.c()},l(i){o&&o.l(i)},m(i,n){o&&o.m(i,n),e=!0},p(i,n){o&&o.p&&(!e||n&32768)&&$(o,r,i,i[15],e?re(r,i[15],n,null):ee(i[15]),null)},i(i){e||(y(o,i),e=!0)},o(i){x(o,i),e=!1},d(i){o&&o.d(i)}}}function zo(t){let e,r;const o=t[5].default,i=Q(o,t,t[15],null);return{c(){e=D("div"),i&&i.c()},l(n){e=G(n,"DIV",{});var a=F(e);i&&i.l(a),a.forEach(_)},m(n,a){A(n,e,a),i&&i.m(e,null),r=!0},p(n,a){i&&i.p&&(!r||a&32768)&&$(i,o,n,n[15],r?re(o,n[15],a,null):ee(n[15]),null)},i(n){r||(y(i,n),r=!0)},o(n){x(i,n),r=!1},d(n){n&&_(e),i&&i.d(n)}}}function qr(t){let e;const r=t[5]["close-button"],o=Q(r,t,t[15],Dr),i=o||No(t);return{c(){i&&i.c()},l(n){i&&i.l(n)},m(n,a){i&&i.m(n,a),e=!0},p(n,a){o?o.p&&(!e||a&163840)&&$(o,r,n,n[15],e?re(r,n[15],a,So):ee(n[15]),Dr):i&&i.p&&(!e||a&131080)&&i.p(n,e?a:-1)},i(n){e||(y(i,n),e=!0)},o(n){x(i,n),e=!1},d(n){i&&i.d(n)}}}function No(t){let e,r;return e=new Eo({props:{class:"ml-auto -mr-1.5 -my-1.5 dark:hover:bg-gray-700",color:t[3].color}}),e.$on("click",function(){Wr(t[17])&&t[17].apply(this,arguments)}),e.$on("click",t[6]),e.$on("change",t[7]),e.$on("keydown",t[8]),e.$on("keyup",t[9]),e.$on("focus",t[10]),e.$on("blur",t[11]),e.$on("mouseenter",t[12]),e.$on("mouseleave",t[13]),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){t=o;const n={};i&8&&(n.color=t[3].color),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function Oo(t){let e,r,o,i,n,a,l=t[2].icon&&jr(t);const s=[zo,To],c=[];function u(d,f){return d[2].icon||d[0]?0:1}r=u(t),o=c[r]=s[r](t);let h=t[0]&&qr(t);return{c(){l&&l.c(),e=Be(),o.c(),i=Be(),h&&h.c(),n=H()},l(d){l&&l.l(d),e=Ue(d),o.l(d),i=Ue(d),h&&h.l(d),n=H()},m(d,f){l&&l.m(d,f),A(d,e,f),c[r].m(d,f),A(d,i,f),h&&h.m(d,f),A(d,n,f),a=!0},p(d,f){d[2].icon?l?(l.p(d,f),f&4&&y(l,1)):(l=jr(d),l.c(),y(l,1),l.m(e.parentNode,e)):l&&(Me(),x(l,1,1,()=>{l=null}),Ie());let g=r;r=u(d),r===g?c[r].p(d,f):(Me(),x(c[g],1,1,()=>{c[g]=null}),Ie(),o=c[r],o?o.p(d,f):(o=c[r]=s[r](d),o.c()),y(o,1),o.m(i.parentNode,i)),d[0]?h?(h.p(d,f),f&1&&y(h,1)):(h=qr(d),h.c(),y(h,1),h.m(n.parentNode,n)):h&&(Me(),x(h,1,1,()=>{h=null}),Ie())},i(d){a||(y(l),y(o),y(h),a=!0)},o(d){x(l),x(o),x(h),a=!1},d(d){d&&(_(e),_(i),_(n)),l&&l.d(d),c[r].d(d),h&&h.d(d)}}}function Ro(t){let e,r;const o=[{dismissable:t[0]},{color:"primary"},{role:"alert"},{rounded:!0},t[3],{class:t[1]}];let i={$$slots:{default:[Oo,({close:n})=>({17:n}),({close:n})=>n?131072:0]},$$scope:{ctx:t}};for(let n=0;n<o.length;n+=1)i=L(i,o[n]);return e=new go({props:i}),e.$on("close",t[14]),{c(){ie(e.$$.fragment)},l(n){ne(e.$$.fragment,n)},m(n,a){ae(e,n,a),r=!0},p(n,[a]){const l=a&11?me(o,[a&1&&{dismissable:n[0]},o[1],o[2],o[3],a&8&&ir(n[3]),a&2&&{class:n[1]}]):{};a&163853&&(l.$$scope={dirty:a,ctx:n}),e.$set(l)},i(n){r||(y(e.$$.fragment,n),r=!0)},o(n){x(e.$$.fragment,n),r=!1},d(n){le(e,n)}}}function Mo(t,e,r){const o=["dismissable","defaultClass"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=bt(n);let{dismissable:s=!1}=e,{defaultClass:c="p-4 gap-3 text-sm"}=e,u;function h(p){O.call(this,t,p)}function d(p){O.call(this,t,p)}function f(p){O.call(this,t,p)}function g(p){O.call(this,t,p)}function b(p){O.call(this,t,p)}function m(p){O.call(this,t,p)}function z(p){O.call(this,t,p)}function T(p){O.call(this,t,p)}function k(p){O.call(this,t,p)}return t.$$set=p=>{r(16,e=L(L({},e),J(p))),r(3,i=Z(e,o)),"dismissable"in p&&r(0,s=p.dismissable),"defaultClass"in p&&r(4,c=p.defaultClass),"$$scope"in p&&r(15,a=p.$$scope)},t.$$.update=()=>{r(1,u=Le(c,(l.icon||s)&&"flex items-center",e.class))},e=J(e),[s,u,l,i,c,n,h,d,f,g,b,m,z,T,k,a]}class Io extends xe{constructor(e){super(),Ce(this,e,Mo,Ro,he,{dismissable:0,defaultClass:4})}}function Po(t){let e=t[2],r,o,i=t[2]&&dr(t);return{c(){i&&i.c(),r=H()},l(n){i&&i.l(n),r=H()},m(n,a){i&&i.m(n,a),A(n,r,a),o=!0},p(n,a){n[2]?e?he(e,n[2])?(i.d(1),i=dr(n),e=n[2],i.c(),i.m(r.parentNode,r)):i.p(n,a):(i=dr(n),e=n[2],i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=n[2])},i(n){o||(y(i,n),o=!0)},o(n){x(i,n),o=!1},d(n){n&&_(r),i&&i.d(n)}}}function Bo(t){let e,r,o,i;const n=t[12].default,a=Q(n,t,t[11],null);let l=[{type:t[1]},t[4],{class:t[3]}],s={};for(let c=0;c<l.length;c+=1)s=L(s,l[c]);return{c(){e=D("button"),a&&a.c(),this.h()},l(c){e=G(c,"BUTTON",{type:!0,class:!0});var u=F(e);a&&a.l(u),u.forEach(_),this.h()},h(){ke(e,s)},m(c,u){A(c,e,u),a&&a.m(e,null),e.autofocus&&e.focus(),r=!0,o||(i=[U(e,"click",t[22]),U(e,"change",t[23]),U(e,"keydown",t[24]),U(e,"keyup",t[25]),U(e,"touchstart",t[26],{passive:!0}),U(e,"touchend",t[27]),U(e,"touchcancel",t[28]),U(e,"mouseenter",t[29]),U(e,"mouseleave",t[30])],o=!0)},p(c,u){a&&a.p&&(!r||u[0]&2048)&&$(a,n,c,c[11],r?re(n,c[11],u,null):ee(c[11]),null),ke(e,s=me(l,[(!r||u[0]&2)&&{type:c[1]},u[0]&16&&c[4],(!r||u[0]&8)&&{class:c[3]}]))},i(c){r||(y(a,c),r=!0)},o(c){x(a,c),r=!1},d(c){c&&_(e),a&&a.d(c),o=!1,hr(i)}}}function Uo(t){let e,r,o,i;const n=t[12].default,a=Q(n,t,t[11],null);let l=[{href:t[0]},t[4],{class:t[3]},{role:"button"}],s={};for(let c=0;c<l.length;c+=1)s=L(s,l[c]);return{c(){e=D("a"),a&&a.c(),this.h()},l(c){e=G(c,"A",{href:!0,class:!0,role:!0});var u=F(e);a&&a.l(u),u.forEach(_),this.h()},h(){ke(e,s)},m(c,u){A(c,e,u),a&&a.m(e,null),r=!0,o||(i=[U(e,"click",t[13]),U(e,"change",t[14]),U(e,"keydown",t[15]),U(e,"keyup",t[16]),U(e,"touchstart",t[17],{passive:!0}),U(e,"touchend",t[18]),U(e,"touchcancel",t[19]),U(e,"mouseenter",t[20]),U(e,"mouseleave",t[21])],o=!0)},p(c,u){a&&a.p&&(!r||u[0]&2048)&&$(a,n,c,c[11],r?re(n,c[11],u,null):ee(c[11]),null),ke(e,s=me(l,[(!r||u[0]&1)&&{href:c[0]},u[0]&16&&c[4],(!r||u[0]&8)&&{class:c[3]},{role:"button"}]))},i(c){r||(y(a,c),r=!0)},o(c){x(a,c),r=!1},d(c){c&&_(e),a&&a.d(c),o=!1,hr(i)}}}function dr(t){let e,r;const o=t[12].default,i=Q(o,t,t[11],null);let n=[t[4],{class:t[3]}],a={};for(let l=0;l<n.length;l+=1)a=L(a,n[l]);return{c(){e=D(t[2]),i&&i.c(),this.h()},l(l){e=G(l,(t[2]||"null").toUpperCase(),{class:!0});var s=F(e);i&&i.l(s),s.forEach(_),this.h()},h(){tr(t[2])(e,a)},m(l,s){A(l,e,s),i&&i.m(e,null),r=!0},p(l,s){i&&i.p&&(!r||s[0]&2048)&&$(i,o,l,l[11],r?re(o,l[11],s,null):ee(l[11]),null),tr(l[2])(e,a=me(n,[s[0]&16&&l[4],(!r||s[0]&8)&&{class:l[3]}]))},i(l){r||(y(i,l),r=!0)},o(l){x(i,l),r=!1},d(l){l&&_(e),i&&i.d(l)}}}function Lo(t){let e,r,o,i;const n=[Uo,Bo,Po],a=[];function l(s,c){return s[0]?0:s[2]==="button"?1:2}return e=l(t),r=a[e]=n[e](t),{c(){r.c(),o=H()},l(s){r.l(s),o=H()},m(s,c){a[e].m(s,c),A(s,o,c),i=!0},p(s,c){let u=e;e=l(s),e===u?a[e].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),r=a[e],r?r.p(s,c):(r=a[e]=n[e](s),r.c()),y(r,1),r.m(o.parentNode,o))},i(s){i||(y(r),i=!0)},o(s){x(r),i=!1},d(s){s&&_(o),a[e].d(s)}}}function Fo(t,e,r){const o=["pill","outline","size","href","type","color","shadow","tag","checked"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e;const l=Zr("group");let{pill:s=!1}=e,{outline:c=!1}=e,{size:u=l?"sm":"md"}=e,{href:h=void 0}=e,{type:d="button"}=e,{color:f=l?c?"dark":"alternative":"primary"}=e,{shadow:g=!1}=e,{tag:b="button"}=e,{checked:m=void 0}=e;const z={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:""},T={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:""},k={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:""},p={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:""},V={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:""},Y={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"},pe=()=>c||f==="alternative"||f==="light";let se;function te(w){O.call(this,t,w)}function X(w){O.call(this,t,w)}function C(w){O.call(this,t,w)}function M(w){O.call(this,t,w)}function oe(w){O.call(this,t,w)}function ce(w){O.call(this,t,w)}function De(w){O.call(this,t,w)}function de(w){O.call(this,t,w)}function ve(w){O.call(this,t,w)}function Ee(w){O.call(this,t,w)}function ue(w){O.call(this,t,w)}function Se(w){O.call(this,t,w)}function we(w){O.call(this,t,w)}function fe(w){O.call(this,t,w)}function Ge(w){O.call(this,t,w)}function Je(w){O.call(this,t,w)}function je(w){O.call(this,t,w)}function He(w){O.call(this,t,w)}return t.$$set=w=>{r(39,e=L(L({},e),J(w))),r(4,i=Z(e,o)),"pill"in w&&r(5,s=w.pill),"outline"in w&&r(6,c=w.outline),"size"in w&&r(7,u=w.size),"href"in w&&r(0,h=w.href),"type"in w&&r(1,d=w.type),"color"in w&&r(8,f=w.color),"shadow"in w&&r(9,g=w.shadow),"tag"in w&&r(2,b=w.tag),"checked"in w&&r(10,m=w.checked),"$$scope"in w&&r(11,a=w.$$scope)},t.$$.update=()=>{r(3,se=Le("text-center font-medium",l?"focus-within:ring-2":"focus-within:ring-4",l&&"focus-within:z-10",l||"focus-within:outline-none","inline-flex items-center justify-center "+Y[u],c&&m&&"border dark:border-gray-900",c&&m&&T[f],c&&!m&&V[f],!c&&m&&T[f],!c&&!m&&z[f],f==="alternative"&&(l&&!m?"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"),c&&f==="dark"&&(l?m?"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"),k[f],pe()&&l&&"border-l-0 first:border-l",l?s&&"first:rounded-l-full last:rounded-r-full"||"first:rounded-l-lg last:rounded-r-lg":s&&"rounded-full"||"rounded-lg",g&&"shadow-lg",g&&p[f],e.disabled&&"cursor-not-allowed opacity-50",e.class))},e=J(e),[h,d,b,se,i,s,c,u,f,g,m,a,n,te,X,C,M,oe,ce,De,de,ve,Ee,ue,Se,we,fe,Ge,Je,je,He]}class ot extends xe{constructor(e){super(),Ce(this,e,Fo,Lo,he,{pill:5,outline:6,size:7,href:0,type:1,color:8,shadow:9,tag:2,checked:10},null,[-1,-1])}}function Vo(t){let e,r,o,i,n;const a=t[6].default,l=Q(a,t,t[5],null);let s=[t[3],{href:t[0]},{class:r=Le(t[2],t[1],t[4].class)}],c={};for(let u=0;u<s.length;u+=1)c=L(c,s[u]);return{c(){e=D("a"),l&&l.c(),this.h()},l(u){e=G(u,"A",{href:!0,class:!0});var h=F(e);l&&l.l(h),h.forEach(_),this.h()},h(){ke(e,c)},m(u,h){A(u,e,h),l&&l.m(e,null),o=!0,i||(n=U(e,"click",t[7]),i=!0)},p(u,[h]){l&&l.p&&(!o||h&32)&&$(l,a,u,u[5],o?re(a,u[5],h,null):ee(u[5]),null),ke(e,c=me(s,[h&8&&u[3],(!o||h&1)&&{href:u[0]},(!o||h&22&&r!==(r=Le(u[2],u[1],u[4].class)))&&{class:r}]))},i(u){o||(y(l,u),o=!0)},o(u){x(l,u),o=!1},d(u){u&&_(e),l&&l.d(u),i=!1,n()}}}function Do(t,e,r){const o=["href","color","aClass"];let i=Z(e,o),{$$slots:n={},$$scope:a}=e,{href:l="#"}=e,{color:s="text-primary-600 dark:text-primary-500"}=e,{aClass:c="inline-flex items-center hover:underline"}=e;function u(h){O.call(this,t,h)}return t.$$set=h=>{r(4,e=L(L({},e),J(h))),r(3,i=Z(e,o)),"href"in h&&r(0,l=h.href),"color"in h&&r(1,s=h.color),"aClass"in h&&r(2,c=h.aClass),"$$scope"in h&&r(5,a=h.$$scope)},e=J(e),[l,s,c,i,e,a,n,u]}class wr extends xe{constructor(e){super(),Ce(this,e,Do,Vo,he,{href:0,color:1,aClass:2})}}var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gr={exports:{}};(function(t,e){(function(r,o){var i="1.0.37",n="",a="?",l="function",s="undefined",c="object",u="string",h="major",d="model",f="name",g="type",b="vendor",m="version",z="architecture",T="console",k="mobile",p="tablet",V="smarttv",Y="wearable",pe="embedded",se=500,te="Amazon",X="Apple",C="ASUS",M="BlackBerry",oe="Browser",ce="Chrome",De="Edge",de="Firefox",ve="Google",Ee="Huawei",ue="LG",Se="Microsoft",we="Motorola",fe="Opera",Ge="Samsung",Je="Sharp",je="Sony",He="Xiaomi",w="Zebra",_r="Facebook",yr="Chromium OS",kr="Mac OS",it=function(N,I){var E={};for(var P in N)I[P]&&I[P].length%2===0?E[P]=I[P].concat(N[P]):E[P]=N[P];return E},Qe=function(N){for(var I={},E=0;E<N.length;E++)I[N[E].toUpperCase()]=N[E];return I},vr=function(N,I){return typeof N===u?Ze(I).indexOf(Ze(N))!==-1:!1},Ze=function(N){return N.toLowerCase()},nt=function(N){return typeof N===u?N.replace(/[^\d\.]/g,n).split(".")[0]:o},nr=function(N,I){if(typeof N===u)return N=N.replace(/^\s\s*/,n),typeof I===s?N:N.substring(0,se)},Ye=function(N,I){for(var E=0,P,Ae,_e,R,v,ye;E<I.length&&!v;){var lr=I[E],Er=I[E+1];for(P=Ae=0;P<lr.length&&!v&&lr[P];)if(v=lr[P++].exec(N),v)for(_e=0;_e<Er.length;_e++)ye=v[++Ae],R=Er[_e],typeof R===c&&R.length>0?R.length===2?typeof R[1]==l?this[R[0]]=R[1].call(this,ye):this[R[0]]=R[1]:R.length===3?typeof R[1]===l&&!(R[1].exec&&R[1].test)?this[R[0]]=ye?R[1].call(this,ye,R[2]):o:this[R[0]]=ye?ye.replace(R[1],R[2]):o:R.length===4&&(this[R[0]]=ye?R[3].call(this,ye.replace(R[1],R[2])):o):this[R]=ye||o;E+=2}},ar=function(N,I){for(var E in I)if(typeof I[E]===c&&I[E].length>0){for(var P=0;P<I[E].length;P++)if(vr(I[E][P],N))return E===a?o:E}else if(vr(I[E],N))return E===a?o:E;return N},at={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},xr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Cr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,fe+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[f,fe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+oe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+oe]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+oe],m],[/\bfocus\/([\w\.]+)/i],[m,[f,de+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,fe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,fe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+oe]],[/fxios\/([-\w\.]+)/i],[m,[f,de]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+oe]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+oe],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,Ge+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,_r],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,ce+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,ce+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+oe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,ar,at]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,de+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[z,"amd64"]],[/(ia32(?=;))/i],[[z,Ze]],[/((?:i[346]|x)86)[;\)]/i],[[z,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[z,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[z,"armhf"]],[/windows (ce|mobile); ppc;/i],[[z,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[z,/ower/,n,Ze]],[/(sun4\w)[;\)]/i],[[z,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[z,Ze]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[b,Ge],[g,p]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[b,Ge],[g,k]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[b,X],[g,k]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[b,X],[g,p]],[/(macintosh);/i],[d,[b,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[b,Je],[g,k]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[b,Ee],[g,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[b,Ee],[g,k]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[b,He],[g,k]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[b,He],[g,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[b,"OPPO"],[g,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[b,"Vivo"],[g,k]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[b,"Realme"],[g,k]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[b,we],[g,k]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[b,we],[g,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[b,ue],[g,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[b,ue],[g,k]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[b,"Lenovo"],[g,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[b,"Nokia"],[g,k]],[/(pixel c)\b/i],[d,[b,ve],[g,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[b,ve],[g,k]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[b,je],[g,k]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[b,je],[g,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[b,"OnePlus"],[g,k]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[b,te],[g,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[b,te],[g,k]],[/(playbook);[-\w\),; ]+(rim)/i],[d,b,[g,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[b,M],[g,k]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[b,C],[g,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[b,C],[g,k]],[/(nexus 9)/i],[d,[b,"HTC"],[g,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[d,/_/g," "],[g,k]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[b,"Acer"],[g,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[b,"Meizu"],[g,k]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[b,"Ulefone"],[g,k]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,d,[g,k]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,d,[g,p]],[/(surface duo)/i],[d,[b,Se],[g,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[b,"Fairphone"],[g,k]],[/(u304aa)/i],[d,[b,"AT&T"],[g,k]],[/\bsie-(\w*)/i],[d,[b,"Siemens"],[g,k]],[/\b(rct\w+) b/i],[d,[b,"RCA"],[g,p]],[/\b(venue[\d ]{2,7}) b/i],[d,[b,"Dell"],[g,p]],[/\b(q(?:mv|ta)\w+) b/i],[d,[b,"Verizon"],[g,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[b,"Barnes & Noble"],[g,p]],[/\b(tm\d{3}\w+) b/i],[d,[b,"NuVision"],[g,p]],[/\b(k88) b/i],[d,[b,"ZTE"],[g,p]],[/\b(nx\d{3}j) b/i],[d,[b,"ZTE"],[g,k]],[/\b(gen\d{3}) b.+49h/i],[d,[b,"Swiss"],[g,k]],[/\b(zur\d{3}) b/i],[d,[b,"Swiss"],[g,p]],[/\b((zeki)?tb.*\b) b/i],[d,[b,"Zeki"],[g,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],d,[g,p]],[/\b(ns-?\w{0,9}) b/i],[d,[b,"Insignia"],[g,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[b,"NextBook"],[g,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],d,[g,k]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],d,[g,k]],[/\b(ph-1) /i],[d,[b,"Essential"],[g,k]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[b,"Envizen"],[g,p]],[/\b(trio[-\w\. ]+) b/i],[d,[b,"MachSpeed"],[g,p]],[/\btu_(1491) b/i],[d,[b,"Rotor"],[g,p]],[/(shield[\w ]+) b/i],[d,[b,"Nvidia"],[g,p]],[/(sprint) (\w+)/i],[b,d,[g,k]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[b,Se],[g,k]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[b,w],[g,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[b,w],[g,k]],[/smart-tv.+(samsung)/i],[b,[g,V]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[b,Ge],[g,V]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,ue],[g,V]],[/(apple) ?tv/i],[b,[d,X+" TV"],[g,V]],[/crkey/i],[[d,ce+"cast"],[b,ve],[g,V]],[/droid.+aft(\w+)( bui|\))/i],[d,[b,te],[g,V]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[b,Je],[g,V]],[/(bravia[\w ]+)( bui|\))/i],[d,[b,je],[g,V]],[/(mitv-\w{5}) bui/i],[d,[b,He],[g,V]],[/Hbbtv.*(technisat) (.*);/i],[b,d,[g,V]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,nr],[d,nr],[g,V]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,V]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,d,[g,T]],[/droid.+; (shield) bui/i],[d,[b,"Nvidia"],[g,T]],[/(playstation [345portablevi]+)/i],[d,[b,je],[g,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[b,Se],[g,T]],[/((pebble))app/i],[b,d,[g,Y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[b,X],[g,Y]],[/droid.+; (glass) \d/i],[d,[b,ve],[g,Y]],[/droid.+; (wt63?0{2,3})\)/i],[d,[b,w],[g,Y]],[/(quest( 2| pro)?)/i],[d,[b,_r],[g,Y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[g,pe]],[/(aeobc)\b/i],[d,[b,te],[g,pe]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[g,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[g,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,k]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,De+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,ar,xr]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ar,xr],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,kr],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,M]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,de+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,ce+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,yr],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},be=function(N,I){if(typeof N===c&&(I=N,N=o),!(this instanceof be))return new be(N,I).getResult();var E=typeof r!==s&&r.navigator?r.navigator:o,P=N||(E&&E.userAgent?E.userAgent:n),Ae=E&&E.userAgentData?E.userAgentData:o,_e=I?it(Cr,I):Cr,R=E&&E.userAgent==P;return this.getBrowser=function(){var v={};return v[f]=o,v[m]=o,Ye.call(v,P,_e.browser),v[h]=nt(v[m]),R&&E&&E.brave&&typeof E.brave.isBrave==l&&(v[f]="Brave"),v},this.getCPU=function(){var v={};return v[z]=o,Ye.call(v,P,_e.cpu),v},this.getDevice=function(){var v={};return v[b]=o,v[d]=o,v[g]=o,Ye.call(v,P,_e.device),R&&!v[g]&&Ae&&Ae.mobile&&(v[g]=k),R&&v[d]=="Macintosh"&&E&&typeof E.standalone!==s&&E.maxTouchPoints&&E.maxTouchPoints>2&&(v[d]="iPad",v[g]=p),v},this.getEngine=function(){var v={};return v[f]=o,v[m]=o,Ye.call(v,P,_e.engine),v},this.getOS=function(){var v={};return v[f]=o,v[m]=o,Ye.call(v,P,_e.os),R&&!v[f]&&Ae&&Ae.platform!="Unknown"&&(v[f]=Ae.platform.replace(/chrome os/i,yr).replace(/macos/i,kr)),v},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 P},this.setUA=function(v){return P=typeof v===u&&v.length>se?nr(v,se):v,this},this.setUA(P),this};be.VERSION=i,be.BROWSER=Qe([f,m,h]),be.CPU=Qe([z]),be.DEVICE=Qe([d,b,g,T,k,V,p,Y,pe]),be.ENGINE=be.OS=Qe([f,m]),t.exports&&(e=t.exports=be),e.UAParser=be;var qe=typeof r!==s&&(r.jQuery||r.Zepto);if(qe&&!qe.ua){var $e=new be;qe.ua=$e.getResult(),qe.ua.get=function(){return $e.getUA()},qe.ua.set=function(N){$e.setUA(N);var I=$e.getResult();for(var E in I)qe.ua[E]=I[E]}}})(typeof window=="object"?window:Go)})(gr,gr.exports);var jo=gr.exports;function qo(t){let e,r=(Number(t[3]??0)/1e3).toFixed(3)+"",o;return{c(){e=D("span"),o=q(r),this.h()},l(i){e=G(i,"SPAN",{class:!0,style:!0});var n=F(e);o=W(n,r),n.forEach(_),this.h()},h(){j(e,"class","text-9xl font-bold"),Nr(e,"color",t[4](t[1],t[2]))},m(i,n){A(i,e,n),K(e,o)},p(i,n){n&8&&r!==(r=(Number(i[3]??0)/1e3).toFixed(3)+"")&&or(o,r),n&6&&Nr(e,"color",i[4](i[1],i[2]))},d(i){i&&_(e)}}}function Wo(t){let e,r;return{c(){e=D("span"),r=q(t[0]),this.h()},l(o){e=G(o,"SPAN",{class:!0});var i=F(e);r=W(i,t[0]),i.forEach(_),this.h()},h(){j(e,"class","text-6xl font-bold text-white py-6 text-center")},m(o,i){A(o,e,i),K(e,r)},p(o,i){i&1&&or(r,o[0])},d(o){o&&_(e)}}}function Ho(t){let e,r,o;function i(l,s){return l[0].length>0?Wo:qo}let n=i(t),a=n(t);return{c(){e=D("div"),r=D("div"),o=D("div"),a.c(),this.h()},l(l){e=G(l,"DIV",{class:!0});var s=F(e);r=G(s,"DIV",{class:!0});var c=F(r);o=G(c,"DIV",{class:!0});var u=F(o);a.l(u),u.forEach(_),c.forEach(_),s.forEach(_),this.h()},h(){j(o,"class","flex flex-grow flex-col items-center"),j(r,"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(l,s){A(l,e,s),K(e,r),K(r,o),a.m(o,null)},p(l,[s]){n===(n=i(l))&&a?a.p(l,s):(a.d(1),a=n(l),a&&(a.c(),a.m(o,null)))},i:zr,o:zr,d(l){l&&_(e),a.d()}}}function Zo(t,e,r){let o;Yr(t,mr,d=>r(7,o=d));const i=(d=0n)=>{r(1,l=BigInt(Math.floor(performance.now()))-d),r(2,s=void 0)},n=()=>{r(1,l=void 0),r(2,s=void 0),r(3,c=void 0)};let{placeholder:a=""}=e,l,s,c,u;gt(()=>{u=setInterval(()=>{if(l){let d=BigInt(Math.floor(performance.now()));const f=(s??d)-l;r(3,c=s===void 0?f-f%100n:f)}},100)}),ht(()=>{clearInterval(u)});const h=(d,f)=>d===void 0?"white":d!==void 0&&f===void 0?"red":d!==void 0&&f!==void 0?"green":"white";return t.$$set=d=>{"placeholder"in d&&r(0,a=d.placeholder)},t.$$.update=()=>{if(t.$$.dirty&130)e:{if(!l||!o.lastTriggerTime)break e;o.lastTriggerTime>l&&r(2,s=o.lastTriggerTime)}},[a,l,s,c,h,i,n,o]}class Yo extends xe{constructor(e){super(),Ce(this,e,Zo,Ho,he,{start:5,reset:6,placeholder:0})}get start(){return this.$$.ctx[5]}get reset(){return this.$$.ctx[6]}}function Xo(t){let e,r;return e=new Io({props:{color:"yellow",$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){const n={};i&1024&&(n.$$scope={dirty:i,ctx:o}),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function Ko(t){let e,r,o,i,n={placeholder:t[5][t[1]]};return e=new Yo({props:n}),t[7](e),o=new ot({props:{disabled:t[1]=="wait"||t[1]=="ready",$$slots:{default:[oi]},$$scope:{ctx:t}}}),o.$on("click",t[8]),{c(){ie(e.$$.fragment),r=Be(),ie(o.$$.fragment)},l(a){ne(e.$$.fragment,a),r=Ue(a),ne(o.$$.fragment,a)},m(a,l){ae(e,a,l),A(a,r,l),ae(o,a,l),i=!0},p(a,l){const s={};l&2&&(s.placeholder=a[5][a[1]]),e.$set(s);const c={};l&2&&(c.disabled=a[1]=="wait"||a[1]=="ready"),l&1026&&(c.$$scope={dirty:l,ctx:a}),o.$set(c)},i(a){i||(y(e.$$.fragment,a),y(o.$$.fragment,a),i=!0)},o(a){x(e.$$.fragment,a),x(o.$$.fragment,a),i=!1},d(a){a&&_(r),t[7](null),le(e,a),le(o,a)}}}function Jo(t){let e,r,o,i,n,a,l,s,c,u,h;o=new wr({props:{class:"font-bold",href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility",$$slots:{default:[ii]},$$scope:{ctx:t}}});const d=[ai,ni],f=[];function g(b,m){return b[3].getOS().name==="iOS"?0:1}return s=g(t),c=f[s]=d[s](t),{c(){e=D("span"),r=q("Your Browser is not compatible with this website, as it does not support "),ie(o.$$.fragment),i=q("."),n=Be(),a=D("span"),l=q(`Please use a browser which supports web bluetooth, for example
`),c.c(),u=q("."),this.h()},l(b){e=G(b,"SPAN",{class:!0});var m=F(e);r=W(m,"Your Browser is not compatible with this website, as it does not support "),ne(o.$$.fragment,m),i=W(m,"."),m.forEach(_),n=Ue(b),a=G(b,"SPAN",{class:!0});var z=F(a);l=W(z,`Please use a browser which supports web bluetooth, for example
`),c.l(z),u=W(z,"."),z.forEach(_),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(a,"class","text-xl mt-3")},m(b,m){A(b,e,m),K(e,r),ae(o,e,null),K(e,i),A(b,n,m),A(b,a,m),K(a,l),f[s].m(a,null),K(a,u),h=!0},p(b,m){const z={};m&1024&&(z.$$scope={dirty:m,ctx:b}),o.$set(z)},i(b){h||(y(o.$$.fragment,b),y(c),h=!0)},o(b){x(o.$$.fragment,b),x(c),h=!1},d(b){b&&(_(e),_(n),_(a)),le(o),f[s].d()}}}function Qo(t){let e,r;return e=new ot({props:{$$slots:{default:[ci]},$$scope:{ctx:t}}}),e.$on("click",t[6]),{c(){ie(e.$$.fragment)},l(o){ne(e.$$.fragment,o)},m(o,i){ae(e,o,i),r=!0},p(o,i){const n={};i&1024&&(n.$$scope={dirty:i,ctx:o}),e.$set(n)},i(o){r||(y(e.$$.fragment,o),r=!0)},o(o){x(e.$$.fragment,o),r=!1},d(o){le(e,o)}}}function $o(t){let e;return{c(){e=q("Connecting...")},l(r){e=W(r,"Connecting...")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ei(t){let e;return{c(){e=q("Wait ...")},l(r){e=W(r,"Wait ...")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ri(t){let e;return{c(){e=q("Reset!")},l(r){e=W(r,"Reset!")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ti(t){let e;return{c(){e=q("Start!")},l(r){e=W(r,"Start!")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function oi(t){let e;function r(n,a){return n[1]=="idle"?ti:n[1]=="running"?ri:ei}let o=r(t),i=o(t);return{c(){i.c(),e=H()},l(n){i.l(n),e=H()},m(n,a){i.m(n,a),A(n,e,a)},p(n,a){o!==(o=r(n))&&(i.d(1),i=o(n),i&&(i.c(),i.m(e.parentNode,e)))},d(n){n&&_(e),i.d(n)}}}function ii(t){let e;return{c(){e=q(`web bluetooth
`)},l(r){e=W(r,`web bluetooth
`)},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ni(t){let e,r,o;return e=new wr({props:{href:"https://www.google.com/chrome/",$$slots:{default:[li]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment),r=Be()},l(i){ne(e.$$.fragment,i),r=Ue(i)},m(i,n){ae(e,i,n),A(i,r,n),o=!0},i(i){o||(y(e.$$.fragment,i),o=!0)},o(i){x(e.$$.fragment,i),o=!1},d(i){i&&_(r),le(e,i)}}}function ai(t){let e,r,o;return e=new wr({props:{href:"https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055",$$slots:{default:[si]},$$scope:{ctx:t}}}),{c(){ie(e.$$.fragment),r=Be()},l(i){ne(e.$$.fragment,i),r=Ue(i)},m(i,n){ae(e,i,n),A(i,r,n),o=!0},i(i){o||(y(e.$$.fragment,i),o=!0)},o(i){x(e.$$.fragment,i),o=!1},d(i){i&&_(r),le(e,i)}}}function li(t){let e;return{c(){e=q("Google Chrome")},l(r){e=W(r,"Google Chrome")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function si(t){let e;return{c(){e=q("Bluefy")},l(r){e=W(r,"Bluefy")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function ci(t){let e;return{c(){e=q("Connect")},l(r){e=W(r,"Connect")},m(r,o){A(r,e,o)},d(r){r&&_(e)}}}function di(t){let e,r,o,i;const n=[Qo,Jo,Ko,Xo],a=[];function l(s,c){return s[2]=="DISCONNECTED"?0:s[2]=="UNAVAILABLE"?1:s[2]=="CONNECTED"?2:3}return r=l(t),o=a[r]=n[r](t),{c(){e=D("div"),o.c(),this.h()},l(s){e=G(s,"DIV",{class:!0});var c=F(e);o.l(c),c.forEach(_),this.h()},h(){j(e,"class","p-8 flex flex-col")},m(s,c){A(s,e,c),a[r].m(e,null),i=!0},p(s,[c]){let u=r;r=l(s),r===u?a[r].p(s,c):(Me(),x(a[u],1,1,()=>{a[u]=null}),Ie(),o=a[r],o?o.p(s,c):(o=a[r]=n[r](s),o.c()),y(o,1),o.m(e,null))},i(s){i||(y(o),i=!0)},o(s){x(o),i=!1},d(s){s&&_(e),a[r].d()}}}function ui(t,e,r){let o;Yr(t,Re,f=>r(2,o=f));const i=new jo.UAParser;let n,a="idle";const l=f=>new Promise(g=>setTimeout(g,f)),s=async()=>{r(1,a="wait"),await l(3e3),r(1,a="ready");const f=new Audio("/sound/ok-ready-go.mp3"),g=new Promise(b=>{f.onended=()=>{b()}});await f.play(),await g,n.start(200n),r(1,a="running")},c={idle:"Press start!",wait:"At your marks!",ready:"Ready!",running:""},u=()=>{kt()};function h(f){Hr[f?"unshift":"push"](()=>{n=f,r(0,n)})}const d=()=>{a=="idle"?s():a=="running"&&(n.reset(),r(1,a="idle"))};return yt(),[n,a,o,i,s,c,u,h,d]}class pi extends xe{constructor(e){super(),Ce(this,e,ui,di,he,{})}}export{pi as component,mi as universal};