@roku-ui/vue 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["roku-ui"]={},S.Vue))})(this,function(S,e){"use strict";const Kt=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":n.ratio,width:n.width,"max-width":n.maxWidth,height:n.height,"max-height":n.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[e.renderSlot(n.$slots,"default")],4))}});function Me(t){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Me(t)}var Jt=/^\s+/,Zt=/\s+$/;function $(t,n){if(t=t||"",n=n||{},t instanceof $)return t;if(!(this instanceof $))return new $(t,n);var r=Qt(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}$.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,o,l,a,c,s;return r=n.r/255,o=n.g/255,l=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*a+.7152*c+.0722*s},setAlpha:function(n){return this._a=dt(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=st(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=st(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+o+"%, "+l+"%)":"hsva("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHsl:function(){var n=at(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=at(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+o+"%, "+l+"%)":"hsla("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHex:function(n){return it(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return nr(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hr[it(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+ct(this._r,this._g,this._b,this._a),o=r,l=this._gradientType?"GradientType = 1, ":"";if(n){var a=$(n);o="#"+ct(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+r+",endColorstr="+o+")"},toString:function(n){var r=!!n;n=n||this._format;var o=!1,l=this._a<1&&this._a>=0,a=!r&&l&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(o=this.toRgbString()),n==="prgb"&&(o=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(o=this.toHexString()),n==="hex3"&&(o=this.toHexString(!0)),n==="hex4"&&(o=this.toHex8String(!0)),n==="hex8"&&(o=this.toHex8String()),n==="name"&&(o=this.toName()),n==="hsl"&&(o=this.toHslString()),n==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return $(this.toString())},_applyModification:function(n,r){var o=n.apply(null,[this].concat([].slice.call(r)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(sr,arguments)},brighten:function(){return this._applyModification(ir,arguments)},darken:function(){return this._applyModification(cr,arguments)},desaturate:function(){return this._applyModification(or,arguments)},saturate:function(){return this._applyModification(lr,arguments)},greyscale:function(){return this._applyModification(ar,arguments)},spin:function(){return this._applyModification(ur,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(pr,arguments)},complement:function(){return this._applyCombination(dr,arguments)},monochromatic:function(){return this._applyCombination(mr,arguments)},splitcomplement:function(){return this._applyCombination(fr,arguments)},triad:function(){return this._applyCombination(ut,[3])},tetrad:function(){return this._applyCombination(ut,[4])}},$.fromRatio=function(t,n){if(Me(t)=="object"){var r={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?r[o]=t[o]:r[o]=_e(t[o]));t=r}return $(t,n)};function Qt(t){var n={r:0,g:0,b:0},r=1,o=null,l=null,a=null,c=!1,s=!1;return typeof t=="string"&&(t=wr(t)),Me(t)=="object"&&(te(t.r)&&te(t.g)&&te(t.b)?(n=er(t.r,t.g,t.b),c=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):te(t.h)&&te(t.s)&&te(t.v)?(o=_e(t.s),l=_e(t.v),n=rr(t.h,o,l),c=!0,s="hsv"):te(t.h)&&te(t.s)&&te(t.l)&&(o=_e(t.s),a=_e(t.l),n=tr(t.h,o,a),c=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=dt(r),{ok:c,format:t.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function er(t,n,r){return{r:I(t,255)*255,g:I(n,255)*255,b:I(r,255)*255}}function at(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=(o+l)/2;if(o==l)a=c=0;else{var i=o-l;switch(c=s>.5?i/(2-o-l):i/(o+l),o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,l:s}}function tr(t,n,r){var o,l,a;t=I(t,360),n=I(n,100),r=I(r,100);function c(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(n===0)o=l=a=r;else{var s=r<.5?r*(1+n):r+n-r*n,i=2*r-s;o=c(i,s,t+1/3),l=c(i,s,t),a=c(i,s,t-1/3)}return{r:o*255,g:l*255,b:a*255}}function st(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=o,i=o-l;if(c=o===0?0:i/o,o==l)a=0;else{switch(o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,v:s}}function rr(t,n,r){t=I(t,360)*6,n=I(n,100),r=I(r,100);var o=Math.floor(t),l=t-o,a=r*(1-n),c=r*(1-l*n),s=r*(1-(1-l)*n),i=o%6,u=[r,c,a,a,s,r][i],d=[s,r,r,c,a,a][i],f=[a,a,s,r,r,c][i];return{r:u*255,g:d*255,b:f*255}}function it(t,n,r,o){var l=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function nr(t,n,r,o,l){var a=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16)),q(ft(o))];return l&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ct(t,n,r,o){var l=[q(ft(o)),q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];return l.join("")}$.equals=function(t,n){return!t||!n?!1:$(t).toRgbString()==$(n).toRgbString()},$.random=function(){return $.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function or(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s-=n/100,r.s=ze(r.s),$(r)}function lr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s+=n/100,r.s=ze(r.s),$(r)}function ar(t){return $(t).desaturate(100)}function sr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l+=n/100,r.l=ze(r.l),$(r)}function ir(t,n){n=n===0?0:n||10;var r=$(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),$(r)}function cr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l-=n/100,r.l=ze(r.l),$(r)}function ur(t,n){var r=$(t).toHsl(),o=(r.h+n)%360;return r.h=o<0?360+o:o,$(r)}function dr(t){var n=$(t).toHsl();return n.h=(n.h+180)%360,$(n)}function ut(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=$(t).toHsl(),o=[$(t)],l=360/n,a=1;a<n;a++)o.push($({h:(r.h+a*l)%360,s:r.s,l:r.l}));return o}function fr(t){var n=$(t).toHsl(),r=n.h;return[$(t),$({h:(r+72)%360,s:n.s,l:n.l}),$({h:(r+216)%360,s:n.s,l:n.l})]}function pr(t,n,r){n=n||6,r=r||30;var o=$(t).toHsl(),l=360/r,a=[$(t)];for(o.h=(o.h-(l*n>>1)+720)%360;--n;)o.h=(o.h+l)%360,a.push($(o));return a}function mr(t,n){n=n||6;for(var r=$(t).toHsv(),o=r.h,l=r.s,a=r.v,c=[],s=1/n;n--;)c.push($({h:o,s:l,v:a})),a=(a+s)%1;return c}$.mix=function(t,n,r){r=r===0?0:r||50;var o=$(t).toRgb(),l=$(n).toRgb(),a=r/100,c={r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a};return $(c)},$.readability=function(t,n){var r=$(t),o=$(n);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)},$.isReadable=function(t,n,r){var o=$.readability(t,n),l,a;switch(a=!1,l=Sr(r),l.level+l.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},$.mostReadable=function(t,n,r){var o=null,l=0,a,c,s,i;r=r||{},c=r.includeFallbackColors,s=r.level,i=r.size;for(var u=0;u<n.length;u++)a=$.readability(t,n[u]),a>l&&(l=a,o=$(n[u]));return $.isReadable(t,o,{level:s,size:i})||!c?o:(r.includeFallbackColors=!1,$.mostReadable(t,["#fff","#000"],r))};var Pe=$.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hr=$.hexNames=gr(Pe);function gr(t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);return n}function dt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(t,n){yr(t)&&(t="100%");var r=br(t);return t=Math.min(n,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ze(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function yr(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function br(t){return typeof t=="string"&&t.indexOf("%")!=-1}function q(t){return t.length==1?"0"+t:""+t}function _e(t){return t<=1&&(t=t*100+"%"),t}function ft(t){return Math.round(parseFloat(t)*255).toString(16)}function pt(t){return L(t)/255}var K=function(){var t="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+t+")",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",l="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(t){return!!K.CSS_UNIT.exec(t)}function wr(t){t=t.replace(Jt,"").replace(Zt,"").toLowerCase();var n=!1;if(Pe[t])t=Pe[t],n=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=K.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=K.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=K.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=K.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=K.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=K.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=K.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:pt(r[4]),format:n?"name":"hex8"}:(r=K.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:n?"name":"hex"}:(r=K.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:pt(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=K.hex3.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Sr(t){var n,r;return t=t||{level:"AA",size:"small"},n=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function W(t){return e.computed(()=>({style:kr(t.rounded),class:"rounded-[--r-rounded]"}))}function kr(t){const n=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&n.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const Oe=e.ref([]);function mt(){return Oe}class vr{static show(n){n.hash=Math.random().toString(36),Oe.value=[n,...Oe.value]}}const Fe=Symbol("tabCurrent"),Le=Symbol("direction"),xr=Symbol("tabValueList"),We=Symbol("childrenElementMapSymbol");function Cr(t){const n=$(t).toHsl().l;return X.reduce((r,o)=>Math.abs(o-n)<Math.abs(r-n)?o:r)}function ht(t,n=X){const r=J(t,n);return{...r,colors:r.colors.map(o=>o.toHexString())}}function J(t,n=X){const r=$(t),o=Cr(r),l=n.findIndex(c=>c===o),a=n.map(c=>{const s=$({h:r.toHsl().h,s:r.toHsl().s,l:c}),i=0;return r.toHsl().h>=20&&r.toHsl().h<=200&&s.darken(2),s.saturate(i*100),s});return{baseColorIndex:l,colors:a.map(c=>c)}}function he(t,n=X){return ht(t,n).colors}function _r(t,n){let r,o,l;const a=e.ref(!0),c=()=>{a.value=!0,l()};e.watch(t,c,{flush:"sync"});const s=typeof n=="function"?n:n.get,i=typeof n=="function"?void 0:n.set,u=e.customRef((d,f)=>(o=d,l=f,{get(){return a.value&&(r=s(r),a.value=!1),o(),r},set(p){i==null||i(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function Be(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function gt(){const t=new Set,n=l=>{t.delete(l)};return{on:l=>{t.add(l);const a=()=>n(l);return Be(a),{off:a}},off:n,trigger:(...l)=>Promise.all(Array.from(t).map(a=>a(...l)))}}function P(t){return typeof t=="function"?t():e.unref(t)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Br=t=>t!=null,Er=Object.prototype.toString,$r=t=>Er.call(t)==="[object Object]",Z=()=>{},Mr=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),zr=Ar();function Ar(){var t,n;return re&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function je(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}const yt=t=>t();function Vr(t,n={}){let r,o,l=Z;const a=s=>{clearTimeout(s),l(),l=Z};return s=>{const i=P(t),u=P(n.maxWait);return r&&a(r),i<=0||u!==void 0&&u<=0?(o&&(a(o),o=null),Promise.resolve(s())):new Promise((d,f)=>{l=n.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,d(s())},u)),r=setTimeout(()=>{o&&a(o),o=null,d(s())},i)})}}function Hr(...t){let n=0,r,o=!0,l=Z,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Z)};return p=>{const m=P(c),g=Date.now()-n,h=()=>a=p();return d(),m<=0?(n=Date.now(),h()):(g>m&&(i||!o)?(n=Date.now(),h()):s&&(a=new Promise((w,v)=>{l=u?v:w,r=setTimeout(()=>{n=Date.now(),o=!0,w(h()),d()},Math.max(0,m-g))})),!i&&!r&&(r=setTimeout(()=>o=!0,m)),o=!1,a)}}function Tr(t=yt){const n=e.ref(!0);function r(){n.value=!1}function o(){n.value=!0}const l=(...a)=>{n.value&&t(...a)};return{isActive:e.readonly(n),pause:r,resume:o,eventFilter:l}}function Nr(t){return e.getCurrentInstance()}function bt(t,n=200,r={}){return je(Vr(n,r),t)}function Rr(t,n=200,r={}){const o=e.ref(t.value),l=bt(()=>{o.value=t.value},n,r);return e.watch(t,()=>l()),o}function Ir(t,n=200,r=!1,o=!0,l=!1){return je(Hr(n,r,o,l),t)}function Dr(t,n,r={}){const{eventFilter:o=yt,...l}=r;return e.watch(t,je(o,n),l)}function Pr(t,n,r={}){const{eventFilter:o,...l}=r,{eventFilter:a,pause:c,resume:s,isActive:i}=Tr(o);return{stop:Dr(t,n,{...l,eventFilter:a}),pause:c,resume:s,isActive:i}}function ge(t,n=!0,r){Nr()?e.onMounted(t,r):n?t():e.nextTick(t)}const j=re?window:void 0,Or=re?window.document:void 0;function F(t){var n;const r=P(t);return(n=r==null?void 0:r.$el)!=null?n:r}function T(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=j):[n,r,o,l]=t,!n)return Z;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[F(n),P(l)],([d,f])=>{if(c(),!d)return;const p=$r(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Be(u),u}let wt=!1;function St(t,n,r={}){const{window:o=j,ignore:l=[],capture:a=!0,detectIframe:c=!1}=r;if(!o)return Z;zr&&!wt&&(wt=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Z)),o.document.documentElement.addEventListener("click",Z));let s=!0;const i=m=>P(l).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=F(g);return h&&(m.target===h||m.composedPath().includes(h))}}),u=m=>{const g=F(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(s=!i(m)),!s){s=!0;return}n(m)}};let d=!1;const f=[T(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),u(m))},{passive:!0,capture:a}),T(o,"pointerdown",m=>{const g=F(t);s=!i(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),c&&T(o,"blur",m=>{setTimeout(()=>{var g;const h=F(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}function Fr(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ae(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:l=j,eventName:a="keydown",passive:c=!1,dedupe:s=!1}=o,i=Fr(n);return T(l,a,d=>{d.repeat&&P(s)||i(d)&&r(d)},c)}function Lr(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function Xe(t){const n=Lr();return e.computed(()=>(n.value,!!t()))}function Ge(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"MutationObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const p=P(t),m=(Array.isArray(p)?p:[p]).map(F).filter(Br);return new Set(m)}),u=e.watch(()=>i.value,p=>{s(),c.value&&p.size&&(a=new MutationObserver(n),p.forEach(m=>a.observe(m,l)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Be(f),{isSupported:c,stop:f,takeRecords:d}}function Wr(t,n={}){const{window:r=j}=n,o=Xe(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let l;const a=e.ref(!1),c=u=>{a.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",c):l.removeListener(c))},i=e.watchEffect(()=>{o.value&&(s(),l=r.matchMedia(P(t)),"addEventListener"in l?l.addEventListener("change",c):l.addListener(c),a.value=l.matches)});return Be(()=>{i(),s(),l=void 0}),a}const Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ve="__vueuse_ssr_handlers__",jr=Xr();function Xr(){return Ve in Ae||(Ae[Ve]=Ae[Ve]||{}),Ae[Ve]}function Gr(t,n){return jr[t]||n}function Ur(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Yr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},kt="vueuse-storage";function qr(t,n,r,o={}){var l;const{flush:a="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=j,eventFilter:p,onError:m=k=>{console.error(k)},initOnMounted:g}=o,h=(d?e.shallowRef:e.ref)(n);if(!r)try{r=Gr("getDefaultStorage",()=>{var k;return(k=j)==null?void 0:k.localStorage})()}catch(k){m(k)}if(!r)return h;const w=P(n),v=Ur(w),y=(l=o.serializer)!=null?l:Yr[v],{pause:C,resume:E}=Pr(h,()=>_(h.value),{flush:a,deep:c,eventFilter:p});f&&s&&ge(()=>{r instanceof Storage?T(f,"storage",B):T(f,kt,A),g&&B()}),g||B();function x(k,z){if(f){const H={key:t,oldValue:k,newValue:z,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",H):new CustomEvent(kt,{detail:H}))}}function _(k){try{const z=r.getItem(t);if(k==null)x(z,null),r.removeItem(t);else{const H=y.write(k);z!==H&&(r.setItem(t,H),x(z,H))}}catch(z){m(z)}}function b(k){const z=k?k.newValue:r.getItem(t);if(z==null)return i&&w!=null&&r.setItem(t,y.write(w)),w;if(!k&&u){const H=y.read(z);return typeof u=="function"?u(H,w):v==="object"&&!Array.isArray(H)?{...w,...H}:H}else return typeof z!="string"?z:y.read(z)}function B(k){if(!(k&&k.storageArea!==r)){if(k&&k.key==null){h.value=w;return}if(!(k&&k.key!==t)){C();try{(k==null?void 0:k.newValue)!==y.write(h.value)&&(h.value=b(k))}catch(z){m(z)}finally{k?e.nextTick(E):E()}}}}function A(k){B(k.detail)}return h}function Kr(t){const n=e.getCurrentInstance(),r=_r(()=>null,()=>n.proxy.$el);return e.onUpdated(r.trigger),e.onMounted(r.trigger),r}function Jr(t,n={}){var r,o;const l=e.ref(!1),a=e.shallowRef(null);let c=0,s=!0;if(re){const i=typeof n=="function"?{onDrop:n}:n,u=(r=i.multiple)!=null?r:!0,d=(o=i.preventDefaultForUnhandled)!=null?o:!1,f=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.files)!=null?v:[]);return y.length===0?null:u?y:[y[0]]},p=h=>{if(i.dataTypes){const w=e.unref(i.dataTypes);return typeof w=="function"?w(h):w?w.some(v=>h.includes(v)):!0}return!0},m=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.items)!=null?v:[]),C=y.filter(_=>_.kind==="file").map(_=>_.type),E=p(C),x=u||y.filter(_=>_.kind==="file").length<=1;return E&&x},g=(h,w)=>{var v,y,C,E;if(s=m(h),!s){d&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const x=f(h);switch(w){case"enter":c+=1,l.value=!0,(v=i.onEnter)==null||v.call(i,null,h);break;case"over":(y=i.onOver)==null||y.call(i,null,h);break;case"leave":c-=1,c===0&&(l.value=!1),(C=i.onLeave)==null||C.call(i,null,h);break;case"drop":c=0,l.value=!1,s&&(a.value=x,(E=i.onDrop)==null||E.call(i,x,h));break}};T(t,"dragenter",h=>g(h,"enter")),T(t,"dragover",h=>g(h,"over")),T(t,"dragleave",h=>g(h,"leave")),T(t,"drop",h=>g(h,"drop"))}return{files:a,isOverDropZone:l}}function Ue(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=P(t);return Array.isArray(f)?f.map(p=>F(p)):[F(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Be(d),{isSupported:c,stop:d}}function ne(t,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0,updateTiming:c="sync"}=n,s=e.ref(0),i=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),p=e.ref(0),m=e.ref(0),g=e.ref(0);function h(){const v=F(t);if(!v){r&&(s.value=0,i.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,g.value=0);return}const y=v.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,d.value=y.right,f.value=y.top,p.value=y.width,m.value=y.x,g.value=y.y}function w(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ue(t,w),e.watch(()=>F(t),v=>!v&&w()),Ge(t,w,{attributeFilter:["style","class"]}),l&&T("scroll",w,{capture:!0,passive:!0}),o&&T("resize",w,{passive:!0}),ge(()=>{a&&w()}),{height:s,bottom:i,left:u,right:d,top:f,width:p,x:m,y:g,update:w}}function ye(t,n={}){const{delayEnter:r=0,delayLeave:o=0,window:l=j}=n,a=e.ref(!1);let c;const s=i=>{const u=i?r:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>a.value=i,u):a.value=i};return l&&(T(t,"mouseenter",()=>s(!0),{passive:!0}),T(t,"mouseleave",()=>s(!1),{passive:!0})),a}const Zr={multiple:!0,accept:"*",reset:!1,directory:!1};function Qr(t={}){const{document:n=Or}=t,r=e.ref(null),{on:o,trigger:l}=gt(),{on:a,trigger:c}=gt();let s;n&&(s=n.createElement("input"),s.type="file",s.onchange=d=>{const f=d.target;r.value=f.files,l(r.value)},s.oncancel=()=>{c()});const i=()=>{r.value=null,s&&s.value&&(s.value="",l(null))},u=d=>{if(!s)return;const f={...Zr,...t,...d};s.multiple=f.multiple,s.accept=f.accept,s.webkitdirectory=f.directory,Mr(f,"capture")&&(s.capture=f.capture),f.reset&&i(),s.click()};return{files:e.readonly(r),open:u,reset:i,onCancel:a,onChange:o}}const vt=1;function en(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=Z,onScroll:a=Z,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=j,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=P(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=P(B))!=null?A:g.value,left:(k=P(b))!=null?k:m.value,behavior:P(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=bt(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-vt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-vt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return T(t,"scroll",r?Ir(_,r,!0,!1):_,s),ge(()=>{try{const b=P(t);if(!b)return;x(b)}catch(b){d(b)}}),T(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=P(t);u&&b&&x(b)}}}function xt(t,n,r={}){const{window:o=j}=r;return qr(t,n,o==null?void 0:o.localStorage,r)}const tn={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function rn(t={}){const{reactive:n=!1,target:r=j,aliasMap:o=tn,passive:l=!0,onEventFired:a=Z}=t,c=e.reactive(new Set),s={toJSON(){return{}},current:c},i=n?e.reactive(s):s,u=new Set,d=new Set;function f(h,w){h in i&&(n?i[h]=w:i[h].value=w)}function p(){c.clear();for(const h of d)f(h,!1)}function m(h,w){var v,y;const C=(v=h.key)==null?void 0:v.toLowerCase(),x=[(y=h.code)==null?void 0:y.toLowerCase(),C].filter(Boolean);C&&(w?c.add(C):c.delete(C));for(const _ of x)d.add(_),f(_,w);C==="meta"&&!w?(u.forEach(_=>{c.delete(_),f(_,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&w&&[...c,...x].forEach(_=>u.add(_))}T(r,"keydown",h=>(m(h,!0),a(h)),{passive:l}),T(r,"keyup",h=>(m(h,!1),a(h)),{passive:l}),T("blur",p,{passive:!0}),T("focus",p,{passive:!0});const g=new Proxy(i,{get(h,w,v){if(typeof w!="string")return Reflect.get(h,w,v);if(w=w.toLowerCase(),w in o&&(w=o[w]),!(w in i))if(/[+_-]/.test(w)){const C=w.split(/[+_-]/g).map(E=>E.trim());i[w]=e.computed(()=>C.every(E=>P(g[E])))}else i[w]=e.ref(!1);const y=Reflect.get(h,w,v);return n?P(y):y}});return g}const nn={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function He(t={}){const{type:n="page",touch:r=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:a=j,target:c=a,scroll:s=!0,eventFilter:i}=t;let u=null;const d=e.ref(l.x),f=e.ref(l.y),p=e.ref(null),m=typeof n=="function"?n:nn[n],g=x=>{const _=m(x);u=x,_&&([d.value,f.value]=_,p.value="mouse")},h=x=>{if(x.touches.length>0){const _=m(x.touches[0]);_&&([d.value,f.value]=_,p.value="touch")}},w=()=>{if(!u||!a)return;const x=m(u);u instanceof MouseEvent&&x&&(d.value=x[0]+a.scrollX,f.value=x[1]+a.scrollY)},v=()=>{d.value=l.x,f.value=l.y},y=i?x=>i(()=>g(x),{}):x=>g(x),C=i?x=>i(()=>h(x),{}):x=>h(x),E=i?()=>i(()=>w(),{}):()=>w();if(c){const x={passive:!0};T(c,["mousemove","dragover"],y,x),r&&n!=="movement"&&(T(c,["touchstart","touchmove"],C,x),o&&T(c,"touchend",v,x)),s&&n==="page"&&T(a,"scroll",E,{passive:!0})}return{x:d,y:f,sourceType:p}}function Ct(t=Kr()){const n=e.shallowRef(),r=()=>{const o=F(t);o&&(n.value=o.parentElement)};return ge(r),e.watch(()=>P(t),r),n}function _t(t){const n=e.ref(0),r=e.computed(()=>F(t)),o=()=>{r.value&&(n.value=r.value.scrollHeight)};return o(),ge(o),Ue(()=>r.value,o),Ge(()=>r.value,o,{childList:!0,subtree:!0,attributes:!0}),n}function Bt(t,n={}){const{initialWidth:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=n,l=e.ref(r),a=e.computed(()=>F(t)),c=()=>{a.value&&(l.value=a.value.clientHeight)};if(c(),ge(c),T("resize",c,{passive:!0}),Ue(()=>a.value,c),Ge(()=>a.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const s=Wr("(orientation: portrait)");e.watch(s,()=>c())}return l}const X=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],se=[1,.99,.95,.9,.7,.5,.4,.2,.1,.075,.05];function on(){if(!re)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(r=>{r.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function ln(){return e.inject("currentThemeScheme",null)}function Et(){return e.inject("currentThemeData",e.ref(tt))}function an(){return e.inject("currentThemeName",e.ref("default"))}function $t(t,n,r={}){const o=X,l=se;return r.primary===void 0&&(r.primary=o),r.secondary===void 0&&(r.secondary=o),r.tertiary===void 0&&(r.tertiary=o),r.error===void 0&&(r.error=o),r.surface===void 0&&(r.surface=l),e.computed(()=>({name:t,colors:{primary:he(e.unref(n.primary),r.primary),secondary:he(e.unref(n.secondary),r.secondary),tertiary:he(e.unref(n.tertiary),r.tertiary),error:he(e.unref(n.error),r.error),surface:he(e.unref(n.surface),r.surface)}}))}function sn(t,n=X){return e.computed(()=>{const r=e.unref(t);return typeof r=="string"?oe(r,n).value.map(o=>o.toHexString()):r})}function Ye(t){const n=e.ref(t);return{...{...Object.keys(n.value.colors).map(a=>{const c=a,s=n.value.colors[c];return sn(s,c==="surface"?se:X).value.reduce((d,f,p)=>{const m=$(f).toRgb();return d[`--r-color-${c}-${p}`]=`${m.r} ${m.g} ${m.b}`,d},{})}).reduce((a,c)=>({...a,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)"}}}function Te(t){const n=e.ref("");return e.onMounted(()=>{t.id?n.value=t.id:n.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),n}const Mt=Symbol("scheme");function zt(){const t=xt("scheme","light");return re&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const qe=9,cn=7,Ke=7,un=7,be=3,dn=6,ie=5,At=6,Je=3,fn=4,Ze=.25,pn=.3,Qe=1,mn=2,we=6,hn=5,Se=4,Vt=5,et=.08,gn=.15,ce=e.ref("#0067cc"),ue=e.ref("#5999A6"),de=e.ref("#F76C22"),fe=e.ref("#F95858"),ee=e.ref("#121212"),Ht=e.computed(()=>O({color:"surface",type:"border",index:{dark:Ke,light:Je}}).value);function yn(t){return $e(t,"text",{dark:be,light:we})}const bn=e.computed(()=>J(e.unref(ce),X).colors),wn=e.computed(()=>J(e.unref(ue),X).colors),Sn=e.computed(()=>J(e.unref(de),X).colors),kn=e.computed(()=>J(e.unref(fe),X).colors),vn=e.computed(()=>J(e.unref(ee),se).colors),tt=$t("default",{primary:ce,secondary:ue,tertiary:de,error:fe,surface:ee});function ke(t,n){return e.computed(()=>{switch(e.unref(t)){case"filled":return xe(n).value;case"light":return Rt(n).value;default:return Ne().value}})}function xn(t){return e.computed(()=>{const n=e.unref(t);switch(n){case"surface":return $(e.unref(ee));case"primary":return $(e.unref(ce));case"secondary":return $(e.unref(ue));case"tertiary":return $(e.unref(de));case"error":return $(e.unref(fe));default:return $(n)}})}const rt=new Map;function oe(t,n=X){return e.computed(()=>{const o=xn(t).value.toHexString();if(rt.has(o))return rt.get(o);function l(){const a=J(o,n).colors;return rt.set(o,a),a}return l()})}function Tt(){return e.computed(()=>J(e.unref(ee),se).colors)}function Ne(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:8,light:1}}),n=O({color:"surface",type:"border",index:{dark:7,light:3}}),r=ve(t,n);return r.value.class=[...r.value.class,"border"],r.value})}function nt(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:7,light:2}}),n=O({color:"surface",type:"border",index:{dark:6,light:4}});return ve(t,n).value})}function ve(...t){return e.computed(()=>({style:t.reduce((n,r)=>({...n,...r.value.style}),{}),class:t.reduce((n,r)=>[...n,...r.value.class],[])}))}function Nt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:5,light:4}}),r=O({color:"surface",type:"border",index:{dark:qe,light:Qe}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function xe(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se}}),r=O({color:t,type:"border",index:{dark:ie,light:Se}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function Rt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se},alpha:.15}),r=O({color:t,type:"text",index:{dark:be,light:we}}),o=O({color:t,type:"border",index:{dark:5,light:4},alpha:0});return ve(n,r,o).value})}function Ee(t,n,r,o,l=1){switch(n){case"outline":return{style:{"--d-outline":t[r].clone().setAlpha(l).toHex8String(),"--l-outline":t[o].clone().setAlpha(l).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[r].clone().setAlpha(l).toHex8String(),"--l-bg":t[o].clone().setAlpha(l).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[r].clone().setAlpha(l).toHex8String(),"--l-border":t[o].clone().setAlpha(l).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[r].clone().setAlpha(l).toHex8String(),"--l-text":t[o].clone().setAlpha(l).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[r].clone().setAlpha(l).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(l).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[r].clone().setAlpha(l).toHexString(),"--l-bg-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[r].clone().setAlpha(l).toHexString(),"--l-border-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[r].clone().setAlpha(l).toHexString(),"--l-text-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function O(t){return t.color==="surface"?Ce(t.type,t.index):$e(t.color,t.type,t.index,t.alpha)}function $e(t,n,r,o=1){return e.computed(()=>{const l=oe(t);return typeof r=="number"?Ee(e.unref(l),n,r,r,o):Ee(e.unref(l),n,r.dark,r.light,o)})}function Ce(t,n,r=1){return e.computed(()=>{const{colors:o}=J(e.unref(ee),se);return typeof n=="number"?Ee(o,t,n,n,r):Ee(o,t,n.dark,n.light,r)})}function Re(t="default",n="primary"){return e.computed(()=>{const r=oe(n).value,o=J(e.unref(ee),se).colors;return{style:{default:()=>Cn(o),filled:()=>_n(r),light:()=>Bn(r),outline:()=>En(r),transparent:()=>$n(r),subtle:()=>Mn(r),contrast:()=>zn(r),white:()=>An(r)}[e.unref(t)](),class:"custom-colors"}})}function Cn(t){return{"--d-bg":t[qe].toHexString(),"--d-bg-h":t[cn].toHexString(),"--d-border":t[un].toHexString(),"--l-bg":t[Qe].toHexString(),"--l-bg-h":t[mn].toHexString(),"--l-border":t[fn].toHexString()}}function _n(t){return{"--d-border":"transparent","--d-bg":t[ie].toHexString(),"--d-bg-h":t[At].toHexString(),"--d-text":"white","--l-bg":t[Se].toHexString(),"--l-bg-h":t[Vt].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Bn(t){return{"--d-border":"transparent","--d-bg":t[ie].clone().setAlpha(Ze).toHex8String(),"--d-bg-h":t[ie].clone().setAlpha(pn).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--l-bg":t[Se].clone().setAlpha(et).toHex8String(),"--l-bg-h":t[Se].clone().setAlpha(gn).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":"transparent"}}function En(t){return{"--d-bg":"transparent","--d-bg-h":t[At].clone().setAlpha(Ze).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--d-border":t[Ke].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Vt].clone().setAlpha(et).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":t[Je].toHexString()}}function $n(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function Mn(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(Ze).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(et).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function zn(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function An(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function ot(t,n="default"){return e.computed(()=>{const r=oe(t).value,o=Tt().value;switch(e.unref(n)){case"default":return{"--d-bg":o[qe].toHexString(),"--d-border-f":r[ie].toHexString(),"--d-border":o[Ke].toHexString(),"--d-placeholder":o[dn].toHexString(),"--d-text":"white","--l-bg":o[Qe].toHexString(),"--l-border-f":r[3].toHexString(),"--l-border":o[Je].toHexString(),"--l-placeholder":o[hn].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":r[5].toHexString(),"--d-bg-h":r[6].toHexString(),"--d-border":"transparent","--l-bg":r[5].toHexString(),"--l-bg-h":r[6].toHexString(),"--l-border":"transparent"}}})}const Vn={key:2,class:"i-fluent-person-24-filled"},It=e.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"},skeleton:{type:Boolean}},setup(t){const n=t,r=W(n),o=e.computed(()=>n.name||""),l=e.computed(()=>{switch(n.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof n.size=="number"&&!Number.isNaN(Number(n.size))?`--size: ${n.size}rem; --font-size: ${n.size/2}rem;`:"--size: 4rem;"}}),a=e.ref(!1),c=e.ref(null);function s(){a.value=!0}e.onMounted(()=>{var f;(f=c.value)!=null&&f.complete&&s()});function i(f){return f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>n.color),d=ke(n.variant,u);return(f,p)=>f.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant",style:e.normalizeStyle([e.unref(r).style,l.value])},null,4)):f.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.is),e.mergeProps({key:1,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(r).class,e.unref(d).class,{hidden:!a.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(r).style,e.unref(d).style,l.value],src:f.src},f.$attrs,{onLoad:s}),null,16,["alt","class","style","src"])):!a.value||!f.src?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[e.unref(r).class,e.unref(d).class]],style:[e.unref(r).style,e.unref(d).style,l.value]},f.$attrs),[f.$slots.default?e.renderSlot(f.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Vn))],16)):e.createCommentVNode("",!0)}}),Ie=e.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),l=e.ref(null),a=ye(l),c=e.computed(()=>n.hoverVariant&&a.value?n.hoverVariant:n.variant??"default"),s=e.computed(()=>n.color??"primary"),i=Re(c,s);return(u,d)=>u.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([e.unref(i).style,e.unref(r).style]),class:e.normalizeClass([o.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant"])},null,6)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.is),e.mergeProps({key:1,ref_key:"btn",ref:l,"data-size":u.size,type:u.type,class:["flex items-center justify-center gap-1 decoration-none",[e.unref(i).class,e.unref(r).class,u.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":u.disabled,"active:translate-y-0.25":u.pressEffect==="translate"}]],style:[e.unref(i).style,e.unref(r).style],disabled:u.disabled},u.$attrs),{default:e.withCtx(()=>[u.$slots.leftSection?e.renderSlot(u.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),u.$slots.rightSection?e.renderSlot(u.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Hn=e.defineComponent({__name:"BtnGroup",props:e.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.computed(()=>n.unselectable===void 0?n.selections.length===1:n.unselectable);function o(d){return typeof d=="string"?d:d.label??d.value}function l(d){return typeof d=="string"?d:d.value}function a(d){return typeof d=="string"?void 0:d.icon}const c=e.useModel(t,"modelValue");function s(d){l(d)===c.value&&r.value?c.value=void 0:c.value=l(d)}const i=e.computed(()=>n.selections.length===1),u=e.computed(()=>i.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(d,f)=>{const p=Ie;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-auto inline-flex container",[u.value]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selections,(m,g)=>(e.openBlock(),e.createBlock(p,{key:l(m),model:c.value,variant:l(m)===c.value?"filled":void 0,color:n.color,class:e.normalizeClass({"border-x-none":g!==0&&g!==n.selections.length-1}),onClick:h=>s(m)},{default:e.withCtx(()=>[a(m)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(a(m))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(m)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Tn=(t,n)=>{const r=t.__vccOpts||t;for(const[o,l]of n)r[o]=l;return r},Nn={},Rn={class:"flex flex-col gap-4 container"};function In(t,n){return e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(t.$slots,"default")])}const Dn=Tn(Nn,[["render",In]]),Pn=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>{const s=It;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":a.position==="right","flex-row":a.position==="left"}]])},[a.$slots.avatar?e.renderSlot(a.$slots,"avatar",{key:0}):a.avatar?(e.openBlock(),e.createBlock(s,{key:1,size:"xs",src:a.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":a.position==="right","rounded-tl":a.position==="left",border:a.withBorder},e.unref(l).class]]),style:e.normalizeStyle([e.unref(l).style])},[e.renderSlot(a.$slots,"default")],6)],2)}}}),On={class:"w-full flex self-center gap-2 text-center"},Fn=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>(e.openBlock(),e.createElementBlock("div",On,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},[e.renderSlot(a.$slots,"default")],6)]))}}),Ln=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),l=e.computed(()=>n.variant),a=e.computed(()=>n.color),c=ke(l,a);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(r).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(r).style,e.unref(c).style])},[s.$slots.leftSection?e.renderSlot(s.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.rightSection?e.renderSlot(s.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Dt=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:n.withBorder}]]},e.unref(Ht),{style:{backgroundColor:n.color}}),null,16,["class","style"]))}}),Wn=["id","alt"],jn=["for"],Xn={key:0},Gn=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),r=e.useAttrs(),o=Te(r),l=e.ref(null);return(a,c)=>{const s=Dt;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:l,"onUpdate:modelValue":c[0]||(c[0]=i=>n.value=i),alt:n.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Wn),[[e.vModelText,n.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(s,{"with-border":a.withBorder,class:"cursor-pointer",color:n.value??"#222"},null,8,["with-border","color"]),a.label?(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0)],8,jn)])}}}),Pt=Symbol("rokuProvider");function Un(){return e.inject(Pt,e.ref(null))}function Yn(t){return e.provide(Pt,t)}const lt=e.defineComponent({__name:"FullscreenOverlay",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref(null);function l(i){n.persistent||i.target===o.value&&(r.value=!1)}const a=e.computed(()=>{switch(n.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),c=e.ref(0);e.watchEffect(()=>{r.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${c.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body);const s=Un();return(i,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(s)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/10 transition-all duration-100 md:items-center",[a.value,i.wrapperClass,{"op0 pointer-events-none":!r.value,op100:r.value}]]),onClick:l},[e.renderSlot(i.$slots,"default")],2)],8,["to"]))}}),qn={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},Kn={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},Jn=e.defineComponent({__name:"Drawer",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=Ie,c=lt;return e.openBlock(),e.createBlock(c,{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=s=>r.value=s),blur:n.blur,persistent:n.persistent},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(o.position==="left","translate-x-0"),"leave-from-class":(o.position==="left","translate-x-0"),"leave-to-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",o.position==="left"?"left-0":"right-0"])},[e.createElementVNode("div",qn,[e.createVNode(a,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:l[0]||(l[0]=s=>r.value=!1)},{default:e.withCtx(()=>l[2]||(l[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",Kn,[e.renderSlot(o.$slots,"default")])],2)):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),Zn=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:n}){const r=t,o=n,l=e.ref(),{onChange:a,open:c}=Qr({accept:r.accept});a(d=>{d?o("drop",Array.from(d)):o("drop",null)});const{isOverDropZone:s}=Jr(l,{onDrop:d=>{o("drop",d)}}),i=Re("default"),u=nt();return(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:e.normalizeClass([[e.unref(i).class,e.unref(s)&&e.unref(u).class,{"bg-surface-low":!e.unref(s),"border-dashed":d.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(i).style,e.unref(s)&&e.unref(u).style]),onPointerup:f[0]||(f[0]=()=>e.unref(c)())},[e.renderSlot(d.$slots,"default")],38))}}),Qn=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const n=t,r=e.ref(!1),o=e.ref(null);function l(){r.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&l()});const a=W(n);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:c.height,width:c.width,maxHeight:c.maxHeight,maxWidth:c.maxWidth})},[c.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),e.mergeProps({key:0,ref_key:"img",ref:o,style:[c.style,e.unref(a).style],src:c.src,class:["h-full w-full object-cover",[n.class,e.unref(a).class,{hidden:!r.value}]]},c.$attrs,{onLoad:l}),null,16,["style","src","class"])):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[n.class,e.unref(a).class]]),style:e.normalizeStyle([c.style,e.unref(a).style])},null,6))],4))}}),eo={class:"relative"},to=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof n.size=="number"||!Number.isNaN(Number(n.size))?`w-${n.size} h-${n.size}`:n.size}}),o=e.useSlots(),l=e.computed(()=>{if(!o.label)return"";switch(n.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),a=e.computed(()=>{switch(n.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),c=e.computed(()=>n.color),s=Nt(c);return(i,u)=>(e.openBlock(),e.createElementBlock("div",eo,[e.createElementVNode("div",{class:e.normalizeClass([[a.value,l.value],"absolute z-1"])},[n.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle([e.unref(s).style])},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle(e.unref(s).style)},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(i.$slots,"default")]))}}),ro=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=lt;return e.openBlock(),e.createBlock(a,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),blur:n.blur,persistent:n.persistent,"wrapper-class":"flex items-end justify-center"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:e.withCtx(()=>[r.value?e.renderSlot(o.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),no={key:0,class:"text-[var(--l-text)] leading-0 dark:text-[var(--d-text)]"},oo={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},lo={key:1},ao={class:"grow-1"},so={key:1,class:"i-fluent-dismiss-12-filled"},Ot=e.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"}},emits:["close"],setup(t){const n=t,r=W(n),o=e.computed(()=>n.color),l=xe(o),a=Ne(),c=e.computed(()=>{switch(n.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(s,i)=>{const u=Ie;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["container-low relative min-w-80 w-full flex items-center gap-2 pl-4",[{"border-0":!s.withBorder},e.unref(r).class,c.value,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(r).style]},e.unref(a)),[s.icon?(e.openBlock(),e.createElementBlock("div",no,[s.loading?(e.openBlock(),e.createElementBlock("i",oo)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))])):(e.openBlock(),e.createElementBlock("div",lo,[e.createElementVNode("div",e.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":s.loading}]]},e.unref(l)),null,16)])),e.createElementVNode("div",ao,[s.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",{"text-xs":s.size==="sm","text-sm":s.size==="md","text-base":s.size==="lg"}])},e.toDisplayString(s.title),3)):e.createCommentVNode("",!0),s.$slots.message?e.renderSlot(s.$slots,"message",{key:1}):s.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["text-surface-on-low op-50",{"text-xs":s.size==="sm","text-sm":s.size==="md"||s.size==="lg"}])},e.toDisplayString(s.message),3)):e.createCommentVNode("",!0)]),s.closeable?(e.openBlock(),e.createBlock(u,{key:2,icon:"",variant:"transparent",onClick:i[0]||(i[0]=d=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",so))]),_:3})):e.createCommentVNode("",!0)],16)}}}),io={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},co=e.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},gap:{default:8},pt:{default:16},pl:{default:8},pr:{default:8},pb:{default:16}},setup(t){const n=t,r=mt(),o=e.ref([]),l=e.computed(()=>o.value.map(i=>i.getBoundingClientRect())),a=e.computed(()=>{let i=0,u=0,d=0,f=0,p=0,m=0;const g=[];for(let h=0;h<l.value.length;h++){const w=r.value[h];w&&(w.position||(w.position=n.position),w.position==="top-left"?(g.push(i),i+=l.value[h].height+n.gap):w.position==="top-right"?(g.push(u),u+=l.value[h].height+n.gap):w.position==="top"?(g.push(d),d+=l.value[h].height+n.gap):w.position==="bottom-left"?(g.push(f),f+=l.value[h].height+n.gap):w.position==="bottom-right"?(g.push(p),p+=l.value[h].height+n.gap):w.position==="bottom"&&(g.push(m),m+=l.value[h].height+n.gap))}return g});function c(i,u){if(u||(u=n.position),u==="top-left")return{top:`${i+n.pt}px`,left:`${n.pl}px`};if(u==="top-right")return{top:`${i+n.pt}px`,right:`${n.pr}px`};if(u==="top")return{top:`${i+n.pt}px`,left:"50%",transform:"translateX(-50%)"};if(u==="bottom-left")return{bottom:`${i+n.pb}px`,left:`${n.pl}px`};if(u==="bottom-right")return{bottom:`${i+n.pb}px`,right:`${n.pr}px`};if(u==="bottom")return{bottom:`${i+n.pb}px`,left:"50%",transform:"translateX(-50%)"}}const s=e.ref({});return e.watchEffect(()=>{r.value.forEach(i=>{if(i.durationMS&&i.durationMS>0){if(s.value[i.hash])return;s.value[i.hash]=setTimeout(()=>{r.value.splice(r.value.indexOf(i),1)},i.durationMS)}})}),(i,u)=>{const d=Ot;return e.openBlock(),e.createElementBlock("div",io,[e.createVNode(e.TransitionGroup,{"enter-from-class":"op0","enter-to-class":"op100","leave-from-class":"op100","leave-to-class":"op0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.hash,ref_for:!0,ref_key:"notificationRefs",ref:o,class:"absolute transition-top,bottom,opacity",style:e.normalizeStyle(c(a.value[p],f.position))},[e.createVNode(d,{"with-border":"",closeable:"",title:f.title,message:f.message,icon:f.icon,loading:f.loading,color:f.color,onClose:m=>e.unref(r).splice(e.unref(r).indexOf(f),1)},null,8,["title","message","icon","loading","color","onClose"])],4))),128))]),_:1})])}}}),uo={class:"relative"},Ft=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const n=t,r=e.computed(()=>{switch(n.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=W(n),l=e.ref(null),a=$(n.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${a.r}, ${a.g}, ${a.b}, ${n.opacity/100})`}));return(s,i)=>(e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",e.mergeProps(s.$attrs,{ref_key:"wrapperRef",ref:l,class:[[r.value,e.unref(o).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[e.unref(o).style,c.value]}),[e.renderSlot(s.$slots,"content")],16)]))}}),Lt=e.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.color),o=e.computed(()=>n.loading),l=W(n),{x:a,y:c}=He({type:"client"}),s=e.ref(null),{width:i,height:u,top:d,left:f}=ne(s),p=e.computed(()=>Math.min(i.value,u.value)),m=e.computed(()=>!i.value||!u.value?[]:o.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let g;const h=e.computed(()=>oe(r.value).value[5]),w=e.computed(()=>{var y;return n.loading?(g?g.play():g=(y=s.value)==null?void 0:y.animate(m.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":h.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(g&&g.pause(),{background:"var(--r-surface-background-color)"})}),v=e.computed(()=>{if(n.traceAnimate){const y=e.computed(()=>({x:f.value+i.value/2,y:d.value+u.value/2})),C=e.computed(()=>{if(a.value<f.value||a.value>f.value+i.value||c.value<d.value||c.value>d.value+u.value)return{x:a.value,y:c.value};const E=y.value.x,x=y.value.y;let _,b;const B=(c.value-x)/(a.value-E);return a.value<E?(_=f.value,b=x+B*(f.value-E)):(_=f.value+i.value,b=x+B*(_-E)),b<d.value?(b=d.value,_=E+(b-x)/B):b>d.value+u.value&&(b=d.value+u.value,_=E+(b-x)/B),{x:_,y:b}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${C.value.x-f.value}px ${C.value.y-d.value}px, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(y,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.is),e.mergeProps({ref_key:"paperRef",ref:s,class:["relative border",[{"p-4":!y.noPadding},e.unref(l).class]],style:[e.unref(l).style,w.value,v.value]},y.withBorder&&!y.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16,["class","style"]))}}),fo=["for"],po={key:1},mo=["id","placeholder","type"],Wt=e.defineComponent({__name:"TextField",props:e.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=t,o=e.useModel(t,"modelValue"),l=e.computed(()=>{switch(r.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),a=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>r.color),s=ot(c),i=e.computed(()=>r.disabled?"pointer-events-none select-none filter opacity-60":""),u=W(r),d=e.ref(null);n({el:d});const f=e.useAttrs(),p=Te(f);return(m,g)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(s)])},[m.$slots.label||m.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[a.value]])},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(m.label),1))],10,fo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},m.$attrs,{ref_key:"input",ref:d,"onUpdate:modelValue":g[0]||(g[0]=h=>o.value=h),class:["w-full border px-2 py-1 outline-none custom-input-colors",[i.value,e.unref(u).class,l.value.base]],style:[e.unref(u).style],placeholder:m.placeholder,type:r.password?"password":"text"}),null,16,mo),[[e.vModelDynamic,o.value]])],4))}}),ho={class:"flex gap-2"},go=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const n=t,r=e.ref([]);function o(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(d=>d.el===s.target),u=s.target.value??"";s.target.value="",Array.from(u).forEach((d,f)=>{i+f>=r.value.length||(r.value[i+f].el.value=d,i+f+1<r.value.length?(r.value[i+f+1].el.focus(),r.value[i+f+1].el.select()):r.value[i+f].el.blur())})}function l(s){s.preventDefault(),s.stopPropagation();const i=s.target.value!=="";s.target.value="";const u=r.value.findIndex(d=>d.el===s.target);u!==0&&(r.value[u-1].el.focus(),r.value[u-1].el.select(),i||(r.value[u-1].el.value=""))}function a(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i>0&&(r.value[i-1].el.focus(),r.value[i-1].el.select())}function c(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i<r.value.length-1&&(r.value[i+1].el.focus(),r.value[i+1].el.select())}return(s,i)=>(e.openBlock(),e.createElementBlock("div",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.length,u=>(e.openBlock(),e.createBlock(Wt,{ref_for:!0,ref_key:"inputs",ref:r,key:u,class:"w-8 text-center",style:{padding:"0"},password:n.password,onPointerup:i[0]||(i[0]=d=>d.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(l,["backspace"]),e.withKeys(a,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),yo=e.defineComponent({__name:"Popover",props:e.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.ref(null),o=e.ref(null),l=ne(r),a=ne(o),c=e.computed(()=>{switch(n.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),s=e.computed(()=>{switch(n.position){case"top-start":case"top-end":return{top:`${-a.height.value-n.offset}px`};case"top":return{top:`${-a.height.value-n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${n.offset}px`};case"bottom":return{top:`${l.height.value+n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"left-start":return{left:`${-a.width.value-n.offset}px`,top:0};case"left-end":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value+l.height.value}px`};case"left":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};case"right-start":return{left:`${n.offset+l.width.value}px`,top:0};case"right-end":return{left:`${n.offset+l.width.value}px`,top:`${-a.height.value+l.height.value}px`};case"right":return{left:`${l.width.value+n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};default:return{}}}),i=ye(r),u=e.useModel(t,"modelValue"),d=e.computed(()=>n.trigger==="hover"?i.value:u.value);function f(p){var m;!((m=r.value)!=null&&m.contains(p.target))||p.target===r.value||(u.value=!u.value)}return St(o,p=>{var m;(m=r.value)!=null&&m.contains(p.target)?u.value=!0:u.value=!1}),(p,m)=>{const g=Ft;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative"},[e.createElementVNode("div",{onPointerup:f},[e.renderSlot(p.$slots,"default")],32),d.value&&p.overlay?(e.openBlock(),e.createBlock(g,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:m[0]||(m[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:o,class:e.normalizeClass([c.value,"absolute children:w-max"]),style:e.normalizeStyle([s.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),bo=e.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),o=e.computed(()=>n.color),l=xe(o),a=Ce("bg",{dark:7,light:3}),c=W(n);return(s,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[r.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(a)),[s.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(l)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(l),{style:[{width:`${(Number(s.value)-Number(s.min))/(Number(s.max)-Number(s.min))*100}%`}]}),null,16))],16))}}),wo=["onMouseover","onPointerdown"],So="#ffeb91",ko="text-[var(--d-text)]",vo="text-surface-on-low",xo="text-[var(--d-text-h)]",Co="i-fluent-star-12-filled",_o="i-fluent-star-12-filled",Bo=e.defineComponent({__name:"Rating",props:e.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:n}){const r=t,o=n,l=e.computed(()=>r.count??5),a=e.useModel(t,"modelValue"),c=e.computed(()=>r.highlightSelectedOnly??!1),s=e.computed(()=>r.unselectable??!1),i=e.ref(-1),u=e.computed(()=>d(r.icons,l.value,Co,_o));function d(y,C,E,x){function _(B){return typeof B=="string"?{active:B,normal:B}:B===void 0?{active:x,normal:E}:{active:B.active||x,normal:B.normal||E}}if(y===void 0)return Array.from({length:C},()=>({active:x,normal:E}));let b;if(typeof y=="string")b={active:y,normal:y};else if(Array.isArray(y)){const B=y.map(A=>_(A));return B.length===1?(b=B[0],Array.from({length:C},()=>({...b}))):B.slice(0,C).concat(Array.from({length:Math.max(0,C-B.length)},()=>({active:x,normal:E})))}else b={active:y.active||x,normal:y.normal||E};return Array.from({length:C},()=>({...b}))}function f(y){return c.value?i.value!==-1?i.value===y+1:a.value===y+1:i.value!==-1?i.value>y:a.value>=y+1}function p(y){const C=u.value[y].normal,E=u.value[y].active;return f(y)?[c.value?xo:ko,E]:[vo,C]}const g=e.computed(()=>{if(typeof r.color=="string")return Array.from({length:l.value}).map(()=>r.color);const y=Array.from({length:l.value}).map(()=>So);return r.color.forEach((C,E)=>{C&&(y[E]=C)}),y}).value.map(y=>ke("filled",y)),h=O({color:"surface",type:"text",index:{dark:6,light:4}});function w(y){a.value===y&&s.value?(o("select",0),a.value=0):(o("select",y+1),a.value=y+1)}const v=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(y,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",v.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"pr-1",onMouseover:_=>i.value=x+1,onMouseleave:C[0]||(C[0]=_=>i.value=-1),onPointerdown:_=>w(x)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},f(x)?e.unref(g)[x].value:e.unref(h),{class:["active:translate-y-1px",[p(x)]]}),null,16)],40,wo))),128))],2))}}),Eo=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:tt.value})}},setup(t){const n=t,r=zt(),o=e.computed(()=>n.themes[n.theme]);e.watchEffect(()=>{ee.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:ee.value,ce.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ce.value,ue.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:ue.value,de.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:de.value,fe.value=typeof o.value.colors.error=="string"?o.value.colors.error:fe.value});const l=e.ref(null),a=e.computed(()=>Ye({colors:{surface:ee.value,primary:ce.value,secondary:ue.value,tertiary:de.value,error:fe.value},name:o.value.name}));return e.provide(Mt,r),e.provide("currentThemeData",e.computed(()=>o.value)),Yn(l),(c,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:l,style:e.normalizeStyle([a.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),$o=["id"],Mo=["for"],zo=["for"],jt=e.defineComponent({inheritAttrs:!1,__name:"Switch",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");n.value&&(r.value=n.value);const o=e.ref(null),l=e.ref(!1),a=e.computed(()=>{switch(n.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:l.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:l.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:l.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:l.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>n.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),s=Te(n),i=Ce("bg",{dark:7,light:3}),u=$e(n.color,"bg",5),d=$e(n.color,"text",5),f=e.computed(()=>({wrapper:r.value?[u.value.class]:[i.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:r.value?u.value.style:i.value.style,indicator:r.value?{}:""})),m=W(n);return(g,h)=>(e.openBlock(),e.createElementBlock("div",{role:"switch",class:e.normalizeClass(["relative flex items-center gap-2",{"pointer-events-none filter-grayscale op-60":n.disabled}])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(s),"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w)},g.$attrs,{class:"hidden",type:"checkbox"}),null,16,$o),[[e.vModelCheckbox,r.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(s)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[a.value.wrapper,...f.value.wrapper,e.unref(m).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(m).style,p.value.wrapper]),onPointerdown:h[1]||(h[1]=w=>l.value=!0),onPointerup:h[2]||(h[2]=w=>l.value=!1),onPointerleave:h[3]||(h[3]=w=>l.value=!1),onPointerenter:h[4]||(h[4]=w=>w.buttons===1&&(l.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[a.value.indicator,f.value.indicator,c.value.indicator,r.value?a.value.active:a.value.inactive,e.unref(m).class]]),style:e.normalizeStyle([e.unref(m).style,p.value.indicator])},[e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 ","enter-to-class":"scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100","leave-to-class":"scale-0"},{default:e.withCtx(()=>[n.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[n.indicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):r.value&&n.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[n.onIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):!r.value&&n.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[n.offIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):e.createCommentVNode("",!0)]),_:1})],6),e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 rotate-50","enter-to-class":"scale-100 rotate-0","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100 rotate-0","leave-to-class":"scale-0 rotate-50 "},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{[`left-0 text-${g.color}-on-container-low`]:r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{"right-0":!r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2))]),_:1})],38)],8,Mo),g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(s)},e.toDisplayString(g.label),9,zo)):e.createCommentVNode("",!0)],2))}}),Ao={class:"scheme-switch inline-block"},Vo={class:"dark:hidden"},Ho={class:"light:hidden"},To=e.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(!1);let o;addEventListener("click",c=>o=c),e.watch([r],()=>{if(re){const c=(o==null?void 0:o.clientX)??innerWidth/2,s=(o==null?void 0:o.clientY)??innerHeight/2,i=Math.hypot(Math.max(c,innerWidth-c),Math.max(s,innerHeight-s));if(n.disableViewTranslation)document.documentElement.setAttribute("data-scheme",r.value?"dark":"light"),localStorage.setItem("scheme",r.value?"dark":"light");else{const u=document.startViewTransition(()=>{r.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});n.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${c}px ${s}px)`,`circle(${i}px at ${c}px ${s}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const l=e.ref(!0),a=e.ref(!1);return e.onMounted(()=>{re&&(r.value=localStorage.getItem("scheme")==="dark"),l.value=!1}),e.nextTick(()=>{a.value=!0}),(c,s)=>{const i=jt;return e.openBlock(),e.createElementBlock("div",Ao,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!l.value})},[e.createElementVNode("div",Vo,[e.createVNode(i,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Ho,[e.createVNode(i,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),e.createElementVNode("div",{class:e.normalizeClass({hidden:l.value})},[e.createVNode(i,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),animate:a.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)])}}}),No=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:n}){const r=t,o=Ct(),l=ne(o),a=e.ref(),c=ne(()=>a.value),s=e.computed(()=>{if(r.height)return typeof r.height=="number"?`${r.height}px`:r.height;const M=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,N=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return`${l.height.value-M-N}px`}),i=e.ref(),u=Bt(()=>i.value),{x:d,y:f}=en(()=>i.value),p=e.computed(()=>{var M;return(((M=i.value)==null?void 0:M.scrollHeight)??0)-(u.value??0)}),m=_t(()=>i.value),g=e.computed(()=>f.value/p.value||0),h=e.computed(()=>i.value?u.value/m.value*u.value:0),w=e.computed(()=>u.value-h.value),v=e.computed(()=>{if(!i.value)return null;const M=g.value*w.value;return{x:d.value,y:f.value,barHeight:h.value,barTop:M}}),y=e.ref(!1),C=e.ref(0),E=e.ref(""),x=e.ref(0),_=He({type:"client"});T(()=>a.value,"pointerdown",M=>{y.value=!0,C.value=M.clientY,x.value=f.value,E.value=document.body.style.userSelect,document.body.style.userSelect="none"}),T(()=>document,"pointermove",()=>{if(!y.value)return;if(r.threshold<c.left.value-_.x.value||_.x.value-c.right.value>r.threshold){f.value=x.value;return}const N=(_.y.value-C.value)/w.value;f.value=x.value+N*p.value}),T(()=>document,"pointerup",()=>{y.value=!1,document.body.style.userSelect=E.value}),n({$el:i});const b=e.ref(),B=ye(b),A=ye(()=>a.value),k=Ce("bg",{dark:2,light:7},.5),z=Ce("bg",{dark:2,light:7},.75);function H(M){var me;const{clientY:N}=M,{top:R,height:Y}=c,V=R.value,D=Y.value,G=V+D/2,Q=N-G;(me=i.value)==null||me.scrollBy({top:Q/D*u.value,behavior:"smooth"})}return(M,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:b,style:e.normalizeStyle({height:s.value}),class:"relative max-h-fit overflow-hidden"},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${M.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:H},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:a,class:e.normalizeClass([[e.unref(k).class,{"op-0":!e.unref(B)&&M.autoHide,"op-100":e.unref(B)&&M.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:e.normalizeStyle([{right:"0px",width:`${M.barWidth}px`,top:`${v.value.barTop}px`,height:`${v.value.barHeight}px`},!e.unref(A)&&!y.value&&e.unref(k).style,(e.unref(A)||y.value)&&e.unref(z).style])},null,6),[[e.vShow,v.value.barHeight<e.unref(u)]])],36)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:i,style:e.normalizeStyle({paddingRight:`${M.floating?0:M.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot(M.$slots,"default")],4)],4))}}),Ro={class:"w-full flex items-center"},Io=["placeholder","readonly","value","aria-label"],Do={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Po=["onPointerdown","onMousemove"],Oo={key:0},Fo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Lo=e.defineComponent({__name:"Select",props:e.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,n)=>t.includes(n)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:n}){const r=t,o=n,l=W(r),a=e.useModel(t,"modelValue"),c=e.ref(null),s=e.ref(null),i=e.ref(!1);St(s,()=>{i.value=!1});const u=e.ref(-1),d=e.ref(-1);e.watchEffect(()=>{i.value||(d.value=-1)}),e.watch(a,()=>{o("change",a.value)});const f=e.computed(()=>a.value),p=e.computed(()=>h(f.value)),m=e.computed(()=>r.options.findIndex(V=>z(V,f.value))),g=e.ref(p.value);e.watch(p,()=>{g.value=p.value});function h(V){return V?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?String(V):V.label?V.label:V.id:""}function w(V){if(V)return typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V:V.id}function v(V){i.value=!0;const D=V.target;g.value=D.value,o("input",g.value)}const y=e.computed(()=>r.searchable&&g.value!==p.value?r.options.filter(V=>r.filter(h(V),g.value)):r.options);ae("ArrowDown",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value+1)%r.options.length)}),ae("ArrowUp",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value-1+r.options.length)%r.options.length)}),ae("Enter",()=>{i.value&&d.value!==-1&&(a.value=y.value[d.value],c.value.focus(),i.value=!1)});function C(V){if(c.value.focus(),!i.value){i.value=!0;return}a.value=V,i.value=!1}const E=e.computed(()=>r.color),x=ot(E,"default"),_=e.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),b=e.ref(null),{height:B}=ne(b),{bottom:A}=ne(c);e.watch([i],()=>{d.value=-1,u.value=-1});const k=e.computed(()=>i.value&&re?B.value===0?!1:document.documentElement.clientHeight-A.value>B.value:!1);function z(V,D){return D?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V===D:typeof D=="string"||typeof D=="symbol"||typeof D=="number"?!1:V.id===D.id:!1}const H=e.computed(()=>r.searchable?"cursor-text":"cursor-pointer"),M=Ne(),N=nt(),R=xe(E);function Y(V){u.value=V,d.value=-1}return(V,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative",style:e.normalizeStyle(e.unref(x))},[e.createElementVNode("div",Ro,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[_.value.wrapper,e.unref(l).class,H.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:V.placeholder,style:e.normalizeStyle([e.unref(l).style,e.unref(x)]),readonly:!V.searchable,value:g.value,"aria-label":V.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:v,onClick:D[0]||(D[0]=G=>i.value=!0)},null,46,Io),D[2]||(D[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),i.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:b,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref(M).class,_.value.dropdown,{"bottom-10":!k.value}]]),style:e.normalizeStyle([e.unref(M).style])},[V.options.length===0?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(V.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(V.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(G,Q)=>(e.openBlock(),e.createElementBlock("div",{key:w(G),class:e.normalizeClass([[d.value===Q&&e.unref(R).class,u.value===Q&&d.value===-1&&e.unref(N).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([d.value===Q&&e.unref(R).style,u.value===Q&&d.value===-1&&e.unref(N).style]),onPointerdown:me=>C(G),onMousemove:me=>Y(Q),onMouseleave:D[1]||(D[1]=me=>u.value=-1)},[e.renderSlot(V.$slots,"item",{data:G,selected:z(G,f.value)},()=>[e.createTextVNode(e.toDisplayString(h(G)),1)]),z(G,f.value)?(e.openBlock(),e.createElementBlock("div",Oo,D[3]||(D[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,Po))),128)),V.searchable&&y.value.length===0?(e.openBlock(),e.createElementBlock("div",Fo,[e.renderSlot(V.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(V.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Wo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:n}){const r=t,o=n,l=e.computed(()=>r.color),a=oe(l),c=e.computed(()=>{const v=a.value[5].setAlpha(.5).toHex8String(),y=a.value[5].setAlpha(.1).toHex8String();return{"--border-color":v,"--fill-color":y}}),{shift:s,control:i}=rn(),u=Ct(),d=e.computed(()=>r.target??u.value),f=He(),p=e.ref({x:0,y:0}),m=e.ref({x:0,y:0}),g=e.ref(!1),h=ne(d);T(d,"pointerdown",v=>{if(v.button!==0)return;const y=v.pageX-h.left.value,C=v.pageY-h.top.value;p.value={x:y,y:C},m.value={x:y,y:C},g.value=!0,o("selectStart",{target:v.target,shift:s.value,ctrl:i.value})},{capture:!0}),T(window,"pointerup",v=>{g.value=!1,o("selectEnd",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value})}),T(d,"pointermove",v=>{const y=v.pageX-h.left.value,C=v.pageY-h.top.value;g.value&&(m.value={x:y,y:C},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))});const w=e.computed(()=>d.value?d.value.parentElement:null);return T(w,"scroll",v=>{g.value&&(m.value={x:f.x.value-h.left.value,y:f.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))}),T(window,"dragend",()=>{g.value=!1}),(v,y)=>d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.value},[g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:e.normalizeStyle([{left:`${Math.min(p.value.x,m.value.x)}px`,top:`${Math.min(p.value.y,m.value.y)}px`,width:`${Math.abs(p.value.x-m.value.x)}px`,height:`${Math.abs(p.value.y-m.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),jo={class:"relative w-full"},Xo="dark:bg-white bg-[var(--i-bg)]",Go="dark:bg-[var(--i-bg)] bg-white",Uo=e.defineComponent({__name:"Slider",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;function r(_,b,B){const A=[];for(let k=_;k<=b;k+=B)A.push(k);return A[A.length-1]!==b&&A.push(b),A}function o(_,b){const B=[];if(_===0)return B;B.push(b[0]);const A=(b.length-1)/(_-1);for(let k=1;k<_-1;k++)B.push(b[Math.round(k*A)]);return B.push(b[b.length-1]),B}const l=e.computed(()=>n.options?n.options.length:n.tickNum??0),a=e.computed(()=>n.options===void 0?r(n.min,n.max,n.step):n.options),c=e.computed(()=>o(l.value,a.value)),s=e.useModel(t,"modelValue"),i=e.computed(()=>a.value.length??0),u=e.ref(a.value.includes(s.value)?a.value.indexOf(s.value):0);function d(_){let b=a.value.indexOf(_);if(b===-1)if(typeof _=="number"){let B=1/0;for(let A=0;A<a.value.length;A++){const k=Math.abs(a.value[A]-_);k<B&&(B=k,b=A)}}else b=0;return b}const f=e.computed(()=>n.color),p=oe(f.value),m=e.computed(()=>p.value[4]),g=xe(f);e.watchEffect(()=>{u.value<0||(s.value=a.value[u.value])}),e.watchEffect(()=>{u.value=d(s.value)});const h=e.ref(),w=e.ref(),v=e.ref(!1);function y(_){if(!v.value)return;if(!(_.buttons===1)){v.value=!1;return}_.preventDefault(),_.stopPropagation();const B=ne(h),{clientX:A}=_,k=B.left.value,H=B.right.value-k,M=Math.round((A-k)/H*(i.value-1));if(M<0){u.value=0;return}if(M>i.value-1){u.value=i.value-1;return}u.value=M}e.watchEffect(()=>{u.value=d(s.value)});function C(_){_.preventDefault(),_.stopPropagation(),v.value=!0,y(_)}T(h,"pointerdown",C),e.onMounted(()=>{T(document,"pointermove",y),u.value=Math.max(0,d(s.value))});const E=e.computed(()=>{switch(n.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),x=e.computed(()=>n.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(_,b)=>(e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",E.value.wrapper]),onTouchmove:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",E.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",E.value.content]),style:e.normalizeStyle({width:`${n.width}rem`,minWidth:`${n.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",E.value.tick])},null,6))),128)),u.value!==-1?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"indicator",ref:w,class:e.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[E.value.indicator,x.value.indicator,Xo]]),style:e.normalizeStyle([`--i-bg: ${m.value}`,{left:`${u.value/(i.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[E.value.indicatorInner,Go]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(g).class,E.value.progress,x.value.progress]]),style:e.normalizeStyle([e.unref(g).style,{width:`${u.value/(i.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-surface-on-low relative mx-1 h-1em text-xs",style:e.normalizeStyle({width:`${n.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",E.value.tick])},e.toDisplayString(B),7))),128))],4)):e.createCommentVNode("",!0)]))}}),Yo={class:"h-full py-2"},qo=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const n=t,r=e.computed(()=>n.color),o=e.inject(Fe,e.ref("")),l=e.ref(null),a=e.computed(()=>o.value===n.value);function c(){o.value=n.value}const s=e.inject(We,new Map);e.onMounted(()=>{s.set(n.value,l)});const i=e.inject(Le,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(i.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),d=e.computed(()=>{switch(i.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),f=O({color:r.value,type:"bg",index:5}),p=O({color:r.value,type:"outline",index:5});return(m,g)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:l,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},e.unref(p),{onClick:c}),[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).class,d.value]),style:e.normalizeStyle([e.unref(f).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([d.value])},null,2)),e.createElementVNode("div",Yo,[e.renderSlot(m.$slots,"default")])],16))}}),Ko=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useSlots(),o=e.computed(()=>{var f;const u=(f=r.default)==null?void 0:f.call(r);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var m;return((m=p==null?void 0:p.props)==null?void 0:m.value)!==void 0}).map(p=>p.props.value))??[]}),l=e.useModel(t,"modelValue");!l.value&&o.value.length>0&&(l.value=o.value[0]);const a=e.ref(null);e.onMounted(()=>{n.defaultValue&&(l.value=n.defaultValue)}),e.provide(Fe,l);const c=e.computed(()=>n.direction);e.provide(Le,c);const s=new Map;e.provide(We,s),ae("ArrowLeft",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowRight",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?l.value=o.value[d+1]:l.value=o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowUp",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowDown",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?o.value[d+1]:o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}});const i=e.computed(()=>{switch(n.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:a,class:e.normalizeClass(["flex",[i.value]])},[e.renderSlot(u.$slots,"default")],2))}}),Jo=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),o=W(n),l=e.computed(()=>n.color??"primary"),a=e.computed(()=>n.variant),c=Re(a,l);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{tabindex:-1,style:e.normalizeStyle([e.unref(c).style,e.unref(o).style]),class:e.normalizeClass([[e.unref(c).class,e.unref(o).class,r.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[n.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([n.leftIcon,"shrink-0"])},null,2)):s.$slots.leftIcon?e.renderSlot(s.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),n.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([n.rightIcon,"h-container w-container shrink-0"])},null,2)):s.$slots.rightIcon?e.renderSlot(s.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),Zo=["data-scheme","data-theme"],Qo=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const n=t,r=Et(),o=e.computed(()=>Ye(n.theme?n.theme:r.value)),l=xt("scheme","light"),a=e.computed(()=>n.scheme?n.scheme:l.value);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":a.value,"data-theme":e.unref(r).name},[e.renderSlot(c.$slots,"default")],12,Zo))}}),el=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const n=t,r=He(),o=e.ref(null),l=ye(o),a=Rr(l,n.timeout),c=e.ref(0),s=e.ref(0),i=e.ref(null),u=ye(i);return e.watch(a,(d,f)=>{a.value&&d!==f&&(c.value=r.x.value,s.value=r.y.value)}),(d,f)=>{const p=Lt;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(d.$slots,"default")],512),c.value&&s.value&&(e.unref(a)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:i,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${s.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}});function Xt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function U(t){return typeof t=="function"?t():e.unref(t)}const tl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rl=Object.prototype.toString,nl=t=>rl.call(t)==="[object Object]",pe=()=>{};function Gt(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}function ol(t,n={}){let r,o,l=pe;const a=c=>{clearTimeout(c),l(),l=pe};return c=>{const s=U(t),i=U(n.maxWait);return r&&a(r),s<=0||i!==void 0&&i<=0?(o&&(a(o),o=null),Promise.resolve(c())):new Promise((u,d)=>{l=n.rejectOnCancel?d:u,i&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,u(c())},i)),r=setTimeout(()=>{o&&a(o),o=null,u(c())},s)})}}function ll(...t){let n=0,r,o=!0,l=pe,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=pe)};return f=>{const p=U(c),m=Date.now()-n,g=()=>a=f();return d(),p<=0?(n=Date.now(),g()):(m>p&&(i||!o)?(n=Date.now(),g()):s&&(a=new Promise((h,w)=>{l=u?w:h,r=setTimeout(()=>{n=Date.now(),o=!0,h(g()),d()},Math.max(0,p-m))})),!i&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,a)}}function al(t){return e.getCurrentInstance()}function sl(t,n=200,r={}){return Gt(ol(n,r),t)}function il(t,n=200,r=!1,o=!0,l=!1){return Gt(ll(n,r,o,l),t)}function Ut(t,n=!0,r){al()?e.onMounted(t,r):n?t():e.nextTick(t)}function le(t){var n;const r=U(t);return(n=r==null?void 0:r.$el)!=null?n:r}const De=tl?window:void 0;function Yt(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=De):[n,r,o,l]=t,!n)return pe;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[le(n),U(l)],([d,f])=>{if(c(),!d)return;const p=nl(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Xt(u),u}function cl(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ul(t){const n=cl();return e.computed(()=>(n.value,!!t()))}function dl(t,n,r={}){const{window:o=De,...l}=r;let a;const c=ul(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=U(t);return Array.isArray(f)?f.map(p=>le(p)):[le(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Xt(d),{isSupported:c,stop:d}}function fl(t,n={width:0,height:0},r={}){const{window:o=De,box:l="content-box"}=r,a=e.computed(()=>{var f,p;return(p=(f=le(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(n.width),s=e.ref(n.height),{stop:i}=dl(t,([f])=>{const p=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=le(t);if(m){const g=m.getBoundingClientRect();c.value=g.width,s.value=g.height}}else if(p){const m=Array.isArray(p)?p:[p];c.value=m.reduce((g,{inlineSize:h})=>g+h,0),s.value=m.reduce((g,{blockSize:h})=>g+h,0)}else c.value=f.contentRect.width,s.value=f.contentRect.height},r);Ut(()=>{const f=le(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:n.width,s.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=e.watch(()=>le(t),f=>{c.value=f?n.width:0,s.value=f?n.height:0});function d(){i(),u()}return{width:c,height:s,stop:d}}const qt=1;function pl(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=pe,onScroll:a=pe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=De,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=U(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=U(B))!=null?A:g.value,left:(k=U(b))!=null?k:m.value,behavior:U(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=sl(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||le(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-qt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-qt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return Yt(t,"scroll",r?il(_,r,!0,!1):_,s),Ut(()=>{try{const b=U(t);if(!b)return;x(b)}catch(b){d(b)}}),Yt(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=U(t);u&&b&&x(b)}}}const ml=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:n}){const r=t,o=e.useSlots(),l=e.computed(()=>e.unref(r.gap)??16),a=e.computed(()=>e.unref(r.rowCount)??3),c=e.computed(()=>e.unref(r.paddingX)??0),s=e.ref();function i(C){return Array.isArray(C)}const u=e.ref([]),d=e.computed(()=>{const C=u.value;return Array.from(C).map(E=>fl(E))}),f=e.computed(()=>{var C,E;return r.itemWidth?e.unref(r.itemWidth)*a.value+l.value*(a.value-1)+c.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((E=(C=s.value)==null?void 0:C.parentElement)==null?void 0:E.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-c.value*2-l.value*(a.value-1))/a.value);function m(C,E,x,_){const b=e.unref(C),B=Array.from({length:e.unref(E)}).fill(0),A=[],k=Math.max(0,f.value-e.unref(_)*2-p.value*b.length-e.unref(x)*b.length)/2;for(let z=0;z<b.length;z++){const H=b[z],M=B.indexOf(Math.min(...B)),N=M*(p.value+e.unref(x))+e.unref(_)+k,R=B[M];A.push({x:N,y:R,width:H.width.value,height:H.height.value}),B[M]+=H.height.value+e.unref(x)}return A}const g=e.computed(()=>m(d,a,l,c)),h=e.computed(()=>i(g.value)?Math.max(...g.value.map(C=>C.y+C.height)):0),w=e.computed(()=>{var C;return((C=o.default)==null?void 0:C.call(o))??[]}),v=e.computed(()=>{const C=[];return w.value.forEach(E=>{i(E.children)?E.children.forEach(x=>{C.push(x)}):C.push(E)}),C});function y(C){if(!i(g.value))return{};const E=g.value[C];return E?{left:`${E.x??0}px`,top:`${E.y??0}px`,maxWidth:`${p.value}px`}:{}}return n({width:p}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:s,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${f.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(x,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([y(_),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),hl=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:n}){const r=t,o=e.computed(()=>e.unref(r.rangeExpand)??0),l=e.useSlots(),a=e.computed(()=>e.unref(r.gap)??16),c=e.computed(()=>e.unref(r.rowCount)??3),s=e.computed(()=>e.unref(r.paddingX)??0),i=e.ref(),u=e.computed(()=>i.value&&i.value.$el?i.value.$el:i.value);function d(k){return Array.isArray(k)}const f=e.computed(()=>{var k,z;return r.itemWidth?e.unref(r.itemWidth)*c.value+a.value*(c.value-1)+s.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((z=(k=u.value)==null?void 0:k.parentElement)==null?void 0:z.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-s.value*2-a.value*(c.value-1))/c.value),m=e.computed(()=>e.unref(r.items).map(k=>{const z=p.value/k.width;return{width:p.value,height:k.height*z}}));function g(k,z,H,M){const N=e.unref(k),R=Array.from({length:e.unref(z)}).fill(0),Y=[],V=Math.max(0,f.value-e.unref(M)*2-p.value*N.length-e.unref(H)*N.length)/2;for(let D=0;D<N.length;D++){const G=N[D],Q=R.indexOf(Math.min(...R)),me=Q*(p.value+e.unref(H))+e.unref(M)+V,gl=R[Q];Y.push({x:me,y:gl,width:G.width,height:G.height}),R[Q]+=G.height+e.unref(H)}return Y}const h=e.computed(()=>g(m,c,a,s)),w=e.computed(()=>d(h.value)?Math.max(...h.value.map(k=>k.y+k.height)):0),v=e.computed(()=>{var k;return((k=l.default)==null?void 0:k.call(l))??[]});function y(k){if(!d(h.value))return{};const z=h.value[k];return z?{left:`${z.x??0}px`,top:`${z.y??0}px`,maxWidth:`${p.value}px`}:{}}const C=e.ref(!1),E=e.computed(()=>C.value?"smooth":"auto"),x=pl(u,{behavior:E}),_=e.computed(()=>{var k;return[x.y.value-o.value,x.y.value+(((k=u.value)==null?void 0:k.clientHeight)??0)+o.value]}),b=e.computed(()=>h.value.map(k=>{const z=k.y,H=k.y+k.height;return z>=_.value[0]&&z<=_.value[1]||H>=_.value[0]&&H<=_.value[1]||z<=_.value[0]&&H>=_.value[1]})),B=e.computed(()=>{const k=[];return v.value.forEach((z,H)=>{if(d(z.children))z.children.forEach((M,N)=>{b.value[N]&&k.push([M,N])});else{if(!b.value[H])return;k.push([z,H])}}),k});n({scroll:x,scrollTo:(k,z=!1)=>{const H=C.value;C.value=z,x.y.value=k,C.value=H}});const A=e.computed(()=>r.is??"div");return(k,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.value),{ref_key:"wrapper",ref:i,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${w.value}px`,width:`${f.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,([H,M])=>(e.openBlock(),e.createElementBlock("div",{key:H,style:e.normalizeStyle([y(M),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});S.AspectRatio=Kt,S.Avatar=It,S.Btn=Ie,S.BtnGroup=Hn,S.COLOR_LIGHTNESS_MAP=X,S.ChatContainer=Dn,S.ChatMessage=Pn,S.ChatSystem=Fn,S.Chip=Ln,S.ColorInput=Gn,S.ColorSwatch=Dt,S.Drawer=Jn,S.Dropzone=Zn,S.FullscreenOverlay=lt,S.Image=Qn,S.Indicator=to,S.Modal=ro,S.Notification=Ot,S.NotificationSystem=co,S.Notifications=vr,S.Overlay=Ft,S.Paper=Lt,S.PinInput=go,S.Popover=yo,S.Progress=bo,S.Rating=Bo,S.RokuProvider=Eo,S.SURFACE_LIGHTNESS_MAP=se,S.SchemeSwitch=To,S.ScrollArea=No,S.Select=Lo,S.SelectArea=Wo,S.Slider=Uo,S.Switch=jt,S.TabItem=qo,S.Tabs=Ko,S.Tag=Jo,S.TextField=Wt,S.ThemeProvider=Qo,S.Tooltip=el,S.VirtualWaterfall=hl,S.Waterfall=ml,S.borderCS=Ht,S.childrenElementMapSymbol=We,S.defaultTheme=tt,S.directionSymbol=Le,S.errorColor=fe,S.errorColors=kn,S.generateColors=he,S.generateColorsMap=ht,S.generateColorsObjMap=J,S.getCSInner=Ee,S.primaryColor=ce,S.primaryColors=bn,S.schemeSymbol=Mt,S.secondaryColor=ue,S.secondaryColors=wn,S.surfaceColor=ee,S.surfaceColors=vn,S.tabCurrentSymbol=Fe,S.tabValueListSymbol=xr,S.tertiaryColor=de,S.tertiaryColors=Sn,S.useButtonCS=Re,S.useCS=O,S.useClientHeight=Bt,S.useColorCS=$e,S.useColors=oe,S.useContainerCS=ke,S.useContainerDefaultCS=Ne,S.useContainerDefaultVariantCS=nt,S.useContainerFilledCS=xe,S.useContainerLightCS=Rt,S.useCurrentThemeData=Et,S.useCurrentThemeName=an,S.useCurrentThemeScheme=ln,S.useId=Te,S.useIndicatorFilledCS=Nt,S.useInputColorStyle=ot,S.useMergedCS=ve,S.useNotifications=mt,S.useRootTheme=on,S.useRounded=W,S.useSchemeString=zt,S.useScrollHeight=_t,S.useSurfaceCS=Ce,S.useSurfaceColors=Tt,S.useTextCS=yn,S.useThemeData=$t,S.useThemeStyles=Ye,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
1
+ (function(x,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(x=typeof globalThis<"u"?globalThis:x||self,e(x["roku-ui"]={},x.Vue))})(this,function(x,e){"use strict";const tn=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":r.ratio,width:r.width,"max-width":r.maxWidth,height:r.height,"max-height":r.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[e.renderSlot(r.$slots,"default")],4))}});function Ae(t){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(t)}var nn=/^\s+/,rn=/\s+$/;function M(t,r){if(t=t||"",r=r||{},t instanceof M)return t;if(!(this instanceof M))return new M(t,r);var n=on(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||n.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}M.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),n,o,a,l,c,i;return n=r.r/255,o=r.g/255,a=r.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*l+.7152*c+.0722*i},setAlpha:function(r){return this._a=gt(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=ft(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=ft(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),a=Math.round(r.v*100);return this._a==1?"hsv("+n+", "+o+"%, "+a+"%)":"hsva("+n+", "+o+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var r=dt(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=dt(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),a=Math.round(r.l*100);return this._a==1?"hsl("+n+", "+o+"%, "+a+"%)":"hsla("+n+", "+o+"%, "+a+"%, "+this._roundA+")"},toHex:function(r){return mt(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return cn(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Sn[mt(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var n="#"+pt(this._r,this._g,this._b,this._a),o=n,a=this._gradientType?"GradientType = 1, ":"";if(r){var l=M(r);o="#"+pt(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+o+")"},toString:function(r){var n=!!r;r=r||this._format;var o=!1,a=this._a<1&&this._a>=0,l=!n&&a&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return l?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(o=this.toRgbString()),r==="prgb"&&(o=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(o=this.toHexString()),r==="hex3"&&(o=this.toHexString(!0)),r==="hex4"&&(o=this.toHex8String(!0)),r==="hex8"&&(o=this.toHex8String()),r==="name"&&(o=this.toName()),r==="hsl"&&(o=this.toHslString()),r==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return M(this.toString())},_applyModification:function(r,n){var o=r.apply(null,[this].concat([].slice.call(n)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(mn,arguments)},brighten:function(){return this._applyModification(pn,arguments)},darken:function(){return this._applyModification(hn,arguments)},desaturate:function(){return this._applyModification(un,arguments)},saturate:function(){return this._applyModification(dn,arguments)},greyscale:function(){return this._applyModification(fn,arguments)},spin:function(){return this._applyModification(gn,arguments)},_applyCombination:function(r,n){return r.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(kn,arguments)},complement:function(){return this._applyCombination(yn,arguments)},monochromatic:function(){return this._applyCombination(wn,arguments)},splitcomplement:function(){return this._applyCombination(bn,arguments)},triad:function(){return this._applyCombination(ht,[3])},tetrad:function(){return this._applyCombination(ht,[4])}},M.fromRatio=function(t,r){if(Ae(t)=="object"){var n={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?n[o]=t[o]:n[o]=Ee(t[o]));t=n}return M(t,r)};function on(t){var r={r:0,g:0,b:0},n=1,o=null,a=null,l=null,c=!1,i=!1;return typeof t=="string"&&(t=Bn(t)),Ae(t)=="object"&&(ne(t.r)&&ne(t.g)&&ne(t.b)?(r=ln(t.r,t.g,t.b),c=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ne(t.h)&&ne(t.s)&&ne(t.v)?(o=Ee(t.s),a=Ee(t.v),r=sn(t.h,o,a),c=!0,i="hsv"):ne(t.h)&&ne(t.s)&&ne(t.l)&&(o=Ee(t.s),l=Ee(t.l),r=an(t.h,o,l),c=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=gt(n),{ok:c,format:t.format||i,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}function ln(t,r,n){return{r:R(t,255)*255,g:R(r,255)*255,b:R(n,255)*255}}function dt(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),a=Math.min(t,r,n),l,c,i=(o+a)/2;if(o==a)l=c=0;else{var s=o-a;switch(c=i>.5?s/(2-o-a):s/(o+a),o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return{h:l,s:c,l:i}}function an(t,r,n){var o,a,l;t=R(t,360),r=R(r,100),n=R(n,100);function c(u,f,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(f-u)*6*d:d<1/2?f:d<2/3?u+(f-u)*(2/3-d)*6:u}if(r===0)o=a=l=n;else{var i=n<.5?n*(1+r):n+r-n*r,s=2*n-i;o=c(s,i,t+1/3),a=c(s,i,t),l=c(s,i,t-1/3)}return{r:o*255,g:a*255,b:l*255}}function ft(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),a=Math.min(t,r,n),l,c,i=o,s=o-a;if(c=o===0?0:s/o,o==a)l=0;else{switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return{h:l,s:c,v:i}}function sn(t,r,n){t=R(t,360)*6,r=R(r,100),n=R(n,100);var o=Math.floor(t),a=t-o,l=n*(1-r),c=n*(1-a*r),i=n*(1-(1-a)*r),s=o%6,u=[n,c,l,l,i,n][s],f=[i,n,n,c,l,l][s],d=[l,l,i,n,n,c][s];return{r:u*255,g:f*255,b:d*255}}function mt(t,r,n,o){var a=[K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function cn(t,r,n,o,a){var l=[K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16)),K(yt(o))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function pt(t,r,n,o){var a=[K(yt(o)),K(Math.round(t).toString(16)),K(Math.round(r).toString(16)),K(Math.round(n).toString(16))];return a.join("")}M.equals=function(t,r){return!t||!r?!1:M(t).toRgbString()==M(r).toRgbString()},M.random=function(){return M.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function un(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s-=r/100,n.s=Te(n.s),M(n)}function dn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s+=r/100,n.s=Te(n.s),M(n)}function fn(t){return M(t).desaturate(100)}function mn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l+=r/100,n.l=Te(n.l),M(n)}function pn(t,r){r=r===0?0:r||10;var n=M(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(r/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(r/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(r/100)))),M(n)}function hn(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l-=r/100,n.l=Te(n.l),M(n)}function gn(t,r){var n=M(t).toHsl(),o=(n.h+r)%360;return n.h=o<0?360+o:o,M(n)}function yn(t){var r=M(t).toHsl();return r.h=(r.h+180)%360,M(r)}function ht(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var n=M(t).toHsl(),o=[M(t)],a=360/r,l=1;l<r;l++)o.push(M({h:(n.h+l*a)%360,s:n.s,l:n.l}));return o}function bn(t){var r=M(t).toHsl(),n=r.h;return[M(t),M({h:(n+72)%360,s:r.s,l:r.l}),M({h:(n+216)%360,s:r.s,l:r.l})]}function kn(t,r,n){r=r||6,n=n||30;var o=M(t).toHsl(),a=360/n,l=[M(t)];for(o.h=(o.h-(a*r>>1)+720)%360;--r;)o.h=(o.h+a)%360,l.push(M(o));return l}function wn(t,r){r=r||6;for(var n=M(t).toHsv(),o=n.h,a=n.s,l=n.v,c=[],i=1/r;r--;)c.push(M({h:o,s:a,v:l})),l=(l+i)%1;return c}M.mix=function(t,r,n){n=n===0?0:n||50;var o=M(t).toRgb(),a=M(r).toRgb(),l=n/100,c={r:(a.r-o.r)*l+o.r,g:(a.g-o.g)*l+o.g,b:(a.b-o.b)*l+o.b,a:(a.a-o.a)*l+o.a};return M(c)},M.readability=function(t,r){var n=M(t),o=M(r);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},M.isReadable=function(t,r,n){var o=M.readability(t,r),a,l;switch(l=!1,a=_n(n),a.level+a.size){case"AAsmall":case"AAAlarge":l=o>=4.5;break;case"AAlarge":l=o>=3;break;case"AAAsmall":l=o>=7;break}return l},M.mostReadable=function(t,r,n){var o=null,a=0,l,c,i,s;n=n||{},c=n.includeFallbackColors,i=n.level,s=n.size;for(var u=0;u<r.length;u++)l=M.readability(t,r[u]),l>a&&(a=l,o=M(r[u]));return M.isReadable(t,o,{level:i,size:s})||!c?o:(n.includeFallbackColors=!1,M.mostReadable(t,["#fff","#000"],n))};var We=M.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Sn=M.hexNames=vn(We);function vn(t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);return r}function gt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function R(t,r){xn(t)&&(t="100%");var n=Cn(t);return t=Math.min(r,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Te(t){return Math.min(1,Math.max(0,t))}function j(t){return parseInt(t,16)}function xn(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Cn(t){return typeof t=="string"&&t.indexOf("%")!=-1}function K(t){return t.length==1?"0"+t:""+t}function Ee(t){return t<=1&&(t=t*100+"%"),t}function yt(t){return Math.round(parseFloat(t)*255).toString(16)}function bt(t){return j(t)/255}var J=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",n="(?:"+r+")|(?:"+t+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ne(t){return!!J.CSS_UNIT.exec(t)}function Bn(t){t=t.replace(nn,"").replace(rn,"").toLowerCase();var r=!1;if(We[t])t=We[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=J.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.hex8.exec(t))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),a:bt(n[4]),format:r?"name":"hex8"}:(n=J.hex6.exec(t))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:r?"name":"hex"}:(n=J.hex4.exec(t))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),a:bt(n[4]+""+n[4]),format:r?"name":"hex8"}:(n=J.hex3.exec(t))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:r?"name":"hex"}:!1}function _n(t){var r,n;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:r,size:n}}function O(t){return e.computed(()=>({style:En(t.rounded),class:"rounded-[--r-rounded]"}))}function En(t){const r=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&r.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const ge=e.shallowRef([]);function je(t){return e.computed({get:()=>{if(typeof t!="number"||t<=0)return ge.value;const r=ge.value.reduce((o,a)=>{const{position:l}=a;return o[l]||(o[l]=[]),o[l].push(a),o},{}),n=[];for(const o in r)n.push(...r[o].slice(-t));return ge.value.filter(o=>n.includes(o))},set:r=>{ge.value=r}})}class Mn{static show(r){r.hash=Math.random().toString(36),r.initialDurationMS=r.durationMS,ge.value=[r,...ge.value]}}const Xe=Symbol("tabCurrent"),Ue=Symbol("direction"),$n=Symbol("tabValueList"),Ye=Symbol("childrenElementMapSymbol");function zn(t){const r=M(t).toHsl().l;return X.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function kt(t,r=X){const n=Z(t,r);return{...n,colors:n.colors.map(o=>o.toHexString())}}function Z(t,r=X){const n=M(t),o=zn(n),a=r.findIndex(c=>c===o),l=r.map(c=>{const i=M({h:n.toHsl().h,s:n.toHsl().s,l:c}),s=0;return n.toHsl().h>=20&&n.toHsl().h<=200&&i.darken(2),i.saturate(s*100),i});return{baseColorIndex:a,colors:l.map(c=>c)}}function ye(t,r=X){return kt(t,r).colors}function Vn(t,r){let n,o,a;const l=e.ref(!0),c=()=>{l.value=!0,a()};e.watch(t,c,{flush:"sync"});const i=typeof r=="function"?r:r.get,s=typeof r=="function"?void 0:r.set,u=e.customRef((f,d)=>(o=f,a=d,{get(){return l.value&&(n=i(n),l.value=!1),o(),n},set(p){s==null||s(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function be(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function wt(){const t=new Set,r=a=>{t.delete(a)};return{on:a=>{t.add(a);const l=()=>r(a);return be(l),{off:l}},off:r,trigger:(...a)=>Promise.all(Array.from(t).map(l=>l(...a)))}}function D(t){return typeof t=="function"?t():e.unref(t)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const An=t=>t!=null,Tn=Object.prototype.toString,Nn=t=>Tn.call(t)==="[object Object]",Q=()=>{},Hn=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),In=Rn();function Rn(){var t,r;return re&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window==null?void 0:window.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ge(t,r){function n(...o){return new Promise((a,l)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(a).catch(l)})}return n}const St=t=>t();function Dn(t,r={}){let n,o,a=Q;const l=i=>{clearTimeout(i),a(),a=Q};return i=>{const s=D(t),u=D(r.maxWait);return n&&l(n),s<=0||u!==void 0&&u<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((f,d)=>{a=r.rejectOnCancel?d:f,u&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,f(i())},u)),n=setTimeout(()=>{o&&l(o),o=null,f(i())},s)})}}function Pn(...t){let r=0,n,o=!0,a=Q,l,c,i,s,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:i=!0,leading:s=!0,rejectOnCancel:u=!1}=t[0]:[c,i=!0,s=!0,u=!1]=t;const f=()=>{n&&(clearTimeout(n),n=void 0,a(),a=Q)};return p=>{const g=D(c),v=Date.now()-r,h=()=>l=p();return f(),g<=0?(r=Date.now(),h()):(v>g&&(s||!o)?(r=Date.now(),h()):i&&(l=new Promise((w,y)=>{a=u?y:w,n=setTimeout(()=>{r=Date.now(),o=!0,w(h()),f()},Math.max(0,g-v))})),!s&&!n&&(n=setTimeout(()=>o=!0,g)),o=!1,l)}}function Ln(t=St){const r=e.ref(!0);function n(){r.value=!1}function o(){r.value=!0}const a=(...l)=>{r.value&&t(...l)};return{isActive:e.readonly(r),pause:n,resume:o,eventFilter:a}}function On(t){return e.getCurrentInstance()}function vt(t,r=200,n={}){return Ge(Dn(r,n),t)}function Fn(t,r=200,n={}){const o=e.ref(t.value),a=vt(()=>{o.value=t.value},r,n);return e.watch(t,()=>a()),o}function Wn(t,r=200,n=!1,o=!0,a=!1){return Ge(Pn(r,n,o,a),t)}function jn(t,r,n={}){const{eventFilter:o=St,...a}=n;return e.watch(t,Ge(o,r),a)}function Xn(t,r,n={}){const{eventFilter:o,...a}=n,{eventFilter:l,pause:c,resume:i,isActive:s}=Ln(o);return{stop:jn(t,r,{...a,eventFilter:l}),pause:c,resume:i,isActive:s}}function ke(t,r=!0,n){On()?e.onMounted(t,n):r?t():e.nextTick(t)}function Un(t=!1,r={}){const{truthyValue:n=!0,falsyValue:o=!1}=r,a=e.isRef(t),l=e.ref(t);function c(i){if(arguments.length)return l.value=i,l.value;{const s=D(n);return l.value=l.value===s?D(o):s,l.value}}return a?c:[l,c]}const F=re?window:void 0,Yn=re?window.document:void 0;function W(t){var r;const n=D(t);return(r=n==null?void 0:n.$el)!=null?r:n}function N(...t){let r,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,r=F):[r,n,o,a]=t,!r)return Q;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],c=()=>{l.forEach(f=>f()),l.length=0},i=(f,d,p,g)=>(f.addEventListener(d,p,g),()=>f.removeEventListener(d,p,g)),s=e.watch(()=>[W(r),D(a)],([f,d])=>{if(c(),!f)return;const p=Nn(d)?{...d}:d;l.push(...n.flatMap(g=>o.map(v=>i(f,g,v,p))))},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return be(u),u}let xt=!1;function qe(t,r,n={}){const{window:o=F,ignore:a=[],capture:l=!0,detectIframe:c=!1}=n;if(!o)return Q;In&&!xt&&(xt=!0,Array.from(o.document.body.children).forEach(h=>h.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let i=!0;const s=h=>D(a).some(w=>{if(typeof w=="string")return Array.from(o.document.querySelectorAll(w)).some(y=>y===h.target||h.composedPath().includes(y));{const y=W(w);return y&&(h.target===y||h.composedPath().includes(y))}});function u(h){const w=D(h);return w&&w.$.subTree.shapeFlag===16}function f(h,w){const y=D(h),m=y.$.subTree&&y.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(b=>b.el===w.target||w.composedPath().includes(b.el))}const d=h=>{const w=W(t);if(h.target!=null&&!(!(w instanceof Element)&&u(t)&&f(t,h))&&!(!w||w===h.target||h.composedPath().includes(w))){if(h.detail===0&&(i=!s(h)),!i){i=!0;return}r(h)}};let p=!1;const g=[N(o,"click",h=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(h))},{passive:!0,capture:l}),N(o,"pointerdown",h=>{const w=W(t);i=!s(h)&&!!(w&&!h.composedPath().includes(w))},{passive:!0}),c&&N(o,"blur",h=>{setTimeout(()=>{var w;const y=W(t);((w=o.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(y!=null&&y.contains(o.document.activeElement))&&r(h)},0)})].filter(Boolean);return()=>g.forEach(h=>h())}function Gn(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function Y(...t){let r,n,o={};t.length===3?(r=t[0],n=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,n=t[0],o=t[1]):(r=t[0],n=t[1]):(r=!0,n=t[0]);const{target:a=F,eventName:l="keydown",passive:c=!1,dedupe:i=!1}=o,s=Gn(r);return N(a,l,f=>{f.repeat&&D(i)||s(f)&&n(f)},c)}function qn(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function Ke(t){const r=qn();return e.computed(()=>(r.value,!!t()))}function Je(t,r,n={}){const{window:o=F,...a}=n;let l;const c=Ke(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const p=D(t),g=(Array.isArray(p)?p:[p]).map(W).filter(An);return new Set(g)}),u=e.watch(()=>s.value,p=>{i(),c.value&&p.size&&(l=new MutationObserver(r),p.forEach(g=>l.observe(g,a)))},{immediate:!0,flush:"post"}),f=()=>l==null?void 0:l.takeRecords(),d=()=>{u(),i()};return be(d),{isSupported:c,stop:d,takeRecords:f}}function Kn(t,r={}){const{immediate:n=!0,fpsLimit:o=void 0,window:a=F}=r,l=e.ref(!1),c=o?1e3/o:null;let i=0,s=null;function u(p){if(!l.value||!a)return;i||(i=p);const g=p-i;if(c&&g<c){s=a.requestAnimationFrame(u);return}i=p,t({delta:g,timestamp:p}),s=a.requestAnimationFrame(u)}function f(){!l.value&&a&&(l.value=!0,i=0,s=a.requestAnimationFrame(u))}function d(){l.value=!1,s!=null&&a&&(a.cancelAnimationFrame(s),s=null)}return n&&f(),be(d),{isActive:e.readonly(l),pause:d,resume:f}}function Jn(t,r={}){const{window:n=F}=r,o=Ke(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=e.ref(!1),c=u=>{l.value=u.matches},i=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},s=e.watchEffect(()=>{o.value&&(i(),a=n.matchMedia(D(t)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),l.value=a.matches)});return be(()=>{s(),i(),a=void 0}),l}const Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},He="__vueuse_ssr_handlers__",Zn=Qn();function Qn(){return He in Ne||(Ne[He]=Ne[He]||{}),Ne[He]}function er(t,r){return Zn[t]||r}function tr(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const nr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},Ct="vueuse-storage";function rr(t,r,n,o={}){var a;const{flush:l="pre",deep:c=!0,listenToStorageChanges:i=!0,writeDefaults:s=!0,mergeDefaults:u=!1,shallow:f,window:d=F,eventFilter:p,onError:g=C=>{console.error(C)},initOnMounted:v}=o,h=(f?e.shallowRef:e.ref)(r);if(!n)try{n=er("getDefaultStorage",()=>{var C;return(C=F)==null?void 0:C.localStorage})()}catch(C){g(C)}if(!n)return h;const w=D(r),y=tr(w),m=(a=o.serializer)!=null?a:nr[y],{pause:b,resume:S}=Xn(h,()=>B(h.value),{flush:l,deep:c,eventFilter:p});d&&i&&ke(()=>{n instanceof Storage?N(d,"storage",E):N(d,Ct,V),v&&E()}),v||E();function _(C,z){if(d){const T={key:t,oldValue:C,newValue:z,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",T):new CustomEvent(Ct,{detail:T}))}}function B(C){try{const z=n.getItem(t);if(C==null)_(z,null),n.removeItem(t);else{const T=m.write(C);z!==T&&(n.setItem(t,T),_(z,T))}}catch(z){g(z)}}function k(C){const z=C?C.newValue:n.getItem(t);if(z==null)return s&&w!=null&&n.setItem(t,m.write(w)),w;if(!C&&u){const T=m.read(z);return typeof u=="function"?u(T,w):y==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof z!="string"?z:m.read(z)}function E(C){if(!(C&&C.storageArea!==n)){if(C&&C.key==null){h.value=w;return}if(!(C&&C.key!==t)){b();try{(C==null?void 0:C.newValue)!==m.write(h.value)&&(h.value=k(C))}catch(z){g(z)}finally{C?e.nextTick(S):S()}}}}function V(C){E(C.detail)}return h}function or(t){const r=e.getCurrentInstance(),n=Vn(()=>null,()=>r.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}function lr(t,r={}){var n,o;const a=e.ref(!1),l=e.shallowRef(null);let c=0,i=!0;if(re){const s=typeof r=="function"?{onDrop:r}:r,u=(n=s.multiple)!=null?n:!0,f=(o=s.preventDefaultForUnhandled)!=null?o:!1,d=h=>{var w,y;const m=Array.from((y=(w=h.dataTransfer)==null?void 0:w.files)!=null?y:[]);return m.length===0?null:u?m:[m[0]]},p=h=>{if(s.dataTypes){const w=e.unref(s.dataTypes);return typeof w=="function"?w(h):w?w.some(y=>h.includes(y)):!0}return!0},g=h=>{var w,y;const m=Array.from((y=(w=h.dataTransfer)==null?void 0:w.items)!=null?y:[]),b=m.map(B=>B.type),S=p(b),_=u||m.length<=1;return S&&_},v=(h,w)=>{var y,m,b,S;if(i=g(h),!i){f&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const _=d(h);switch(w){case"enter":c+=1,a.value=!0,(y=s.onEnter)==null||y.call(s,null,h);break;case"over":(m=s.onOver)==null||m.call(s,null,h);break;case"leave":c-=1,c===0&&(a.value=!1),(b=s.onLeave)==null||b.call(s,null,h);break;case"drop":c=0,a.value=!1,i&&(l.value=_,(S=s.onDrop)==null||S.call(s,_,h));break}};N(t,"dragenter",h=>v(h,"enter")),N(t,"dragover",h=>v(h,"over")),N(t,"dragleave",h=>v(h,"leave")),N(t,"drop",h=>v(h,"drop"))}return{files:l,isOverDropZone:a}}function Ze(t,r,n={}){const{window:o=F,...a}=n;let l;const c=Ke(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const d=D(t);return Array.isArray(d)?d.map(p=>W(p)):[W(d)]}),u=e.watch(s,d=>{if(i(),c.value&&o){l=new ResizeObserver(r);for(const p of d)p&&l.observe(p,a)}},{immediate:!0,flush:"post"}),f=()=>{i(),u()};return be(f),{isSupported:c,stop:f}}function oe(t,r={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0,updateTiming:c="sync"}=r,i=e.ref(0),s=e.ref(0),u=e.ref(0),f=e.ref(0),d=e.ref(0),p=e.ref(0),g=e.ref(0),v=e.ref(0);function h(){const y=W(t);if(!y){n&&(i.value=0,s.value=0,u.value=0,f.value=0,d.value=0,p.value=0,g.value=0,v.value=0);return}const m=y.getBoundingClientRect();i.value=m.height,s.value=m.bottom,u.value=m.left,f.value=m.right,d.value=m.top,p.value=m.width,g.value=m.x,v.value=m.y}function w(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ze(t,w),e.watch(()=>W(t),y=>!y&&w()),Je(t,w,{attributeFilter:["style","class"]}),a&&N("scroll",w,{capture:!0,passive:!0}),o&&N("resize",w,{passive:!0}),ke(()=>{l&&w()}),{height:i,bottom:s,left:u,right:f,top:d,width:p,x:g,y:v,update:w}}function le(t,r={}){const{delayEnter:n=0,delayLeave:o=0,window:a=F}=r,l=e.ref(!1);let c;const i=s=>{const u=s?n:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>l.value=s,u):l.value=s};return a&&(N(t,"mouseenter",()=>i(!0),{passive:!0}),N(t,"mouseleave",()=>i(!1),{passive:!0})),l}const ar={multiple:!0,accept:"*",reset:!1,directory:!1};function sr(t={}){const{document:r=Yn}=t,n=e.ref(null),{on:o,trigger:a}=wt(),{on:l,trigger:c}=wt();let i;r&&(i=r.createElement("input"),i.type="file",i.onchange=f=>{const d=f.target;n.value=d.files,a(n.value)},i.oncancel=()=>{c()});const s=()=>{n.value=null,i&&i.value&&(i.value="",a(null))},u=f=>{if(!i)return;const d={...ar,...t,...f};i.multiple=d.multiple,i.accept=d.accept,i.webkitdirectory=d.directory,Hn(d,"capture")&&(i.capture=d.capture),d.reset&&s(),i.click()};return{files:e.readonly(n),open:u,reset:s,onCancel:l,onChange:o}}const Bt=1;function ir(t,r={}){const{throttle:n=0,idle:o=200,onStop:a=Q,onScroll:l=Q,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:s="auto",window:u=F,onError:f=k=>{console.error(k)}}=r,d=e.ref(0),p=e.ref(0),g=e.computed({get(){return d.value},set(k){h(k,void 0)}}),v=e.computed({get(){return p.value},set(k){h(void 0,k)}});function h(k,E){var V,C,z,T;if(!u)return;const $=D(t);if(!$)return;(z=$ instanceof Document?u.document.body:$)==null||z.scrollTo({top:(V=D(E))!=null?V:v.value,left:(C=D(k))!=null?C:g.value,behavior:D(s)});const H=((T=$==null?void 0:$.document)==null?void 0:T.documentElement)||($==null?void 0:$.documentElement)||$;g!=null&&(d.value=H.scrollLeft),v!=null&&(p.value=H.scrollTop)}const w=e.ref(!1),y=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),m=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=k=>{w.value&&(w.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,a(k))},S=vt(b,n+o),_=k=>{var E;if(!u)return;const V=((E=k==null?void 0:k.document)==null?void 0:E.documentElement)||(k==null?void 0:k.documentElement)||W(k),{display:C,flexDirection:z}=getComputedStyle(V),T=V.scrollLeft;m.left=T<d.value,m.right=T>d.value;const $=Math.abs(T)<=(c.left||0),H=Math.abs(T)+V.clientWidth>=V.scrollWidth-(c.right||0)-Bt;C==="flex"&&z==="row-reverse"?(y.left=H,y.right=$):(y.left=$,y.right=H),d.value=T;let I=V.scrollTop;k===u.document&&!I&&(I=u.document.body.scrollTop),m.top=I<p.value,m.bottom=I>p.value;const q=Math.abs(I)<=(c.top||0),A=Math.abs(I)+V.clientHeight>=V.scrollHeight-(c.bottom||0)-Bt;C==="flex"&&z==="column-reverse"?(y.top=A,y.bottom=q):(y.top=q,y.bottom=A),p.value=I},B=k=>{var E;if(!u)return;const V=(E=k.target.documentElement)!=null?E:k.target;_(V),w.value=!0,S(k),l(k)};return N(t,"scroll",n?Wn(B,n,!0,!1):B,i),ke(()=>{try{const k=D(t);if(!k)return;_(k)}catch(k){f(k)}}),N(t,"scrollend",b,i),{x:g,y:v,isScrolling:w,arrivedState:y,directions:m,measure(){const k=D(t);u&&k&&_(k)}}}function _t(t,r,n={}){const{window:o=F}=n;return rr(t,r,o==null?void 0:o.localStorage,n)}const cr={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function ur(t={}){const{reactive:r=!1,target:n=F,aliasMap:o=cr,passive:a=!0,onEventFired:l=Q}=t,c=e.reactive(new Set),i={toJSON(){return{}},current:c},s=r?e.reactive(i):i,u=new Set,f=new Set;function d(h,w){h in s&&(r?s[h]=w:s[h].value=w)}function p(){c.clear();for(const h of f)d(h,!1)}function g(h,w){var y,m;const b=(y=h.key)==null?void 0:y.toLowerCase(),_=[(m=h.code)==null?void 0:m.toLowerCase(),b].filter(Boolean);b&&(w?c.add(b):c.delete(b));for(const B of _)f.add(B),d(B,w);b==="meta"&&!w?(u.forEach(B=>{c.delete(B),d(B,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&w&&[...c,..._].forEach(B=>u.add(B))}N(n,"keydown",h=>(g(h,!0),l(h)),{passive:a}),N(n,"keyup",h=>(g(h,!1),l(h)),{passive:a}),N("blur",p,{passive:!0}),N("focus",p,{passive:!0});const v=new Proxy(s,{get(h,w,y){if(typeof w!="string")return Reflect.get(h,w,y);if(w=w.toLowerCase(),w in o&&(w=o[w]),!(w in s))if(/[+_-]/.test(w)){const b=w.split(/[+_-]/g).map(S=>S.trim());s[w]=e.computed(()=>b.every(S=>D(v[S])))}else s[w]=e.ref(!1);const m=Reflect.get(h,w,y);return r?D(m):m}});return v}const dr={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function Ie(t={}){const{type:r="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:a={x:0,y:0},window:l=F,target:c=l,scroll:i=!0,eventFilter:s}=t;let u=null,f=0,d=0;const p=e.ref(a.x),g=e.ref(a.y),v=e.ref(null),h=typeof r=="function"?r:dr[r],w=k=>{const E=h(k);u=k,E&&([p.value,g.value]=E,v.value="mouse"),l&&(f=l.scrollX,d=l.scrollY)},y=k=>{if(k.touches.length>0){const E=h(k.touches[0]);E&&([p.value,g.value]=E,v.value="touch")}},m=()=>{if(!u||!l)return;const k=h(u);u instanceof MouseEvent&&k&&(p.value=k[0]+l.scrollX-f,g.value=k[1]+l.scrollY-d)},b=()=>{p.value=a.x,g.value=a.y},S=s?k=>s(()=>w(k),{}):k=>w(k),_=s?k=>s(()=>y(k),{}):k=>y(k),B=s?()=>s(()=>m(),{}):()=>m();if(c){const k={passive:!0};N(c,["mousemove","dragover"],S,k),n&&r!=="movement"&&(N(c,["touchstart","touchmove"],_,k),o&&N(c,"touchend",b,k)),i&&r==="page"&&N(l,"scroll",B,{passive:!0})}return{x:p,y:g,sourceType:v}}function Et(t=or()){const r=e.shallowRef(),n=()=>{const o=W(t);o&&(r.value=o.parentElement)};return ke(n),e.watch(()=>D(t),n),r}function Mt(t){const r=e.ref(0),n=e.computed(()=>W(t)),o=()=>{n.value&&(r.value=n.value.scrollHeight)};return o(),ke(o),Ze(()=>n.value,o),Je(()=>n.value,o,{childList:!0,subtree:!0,attributes:!0}),r}function $t(t,r={}){const{initialWidth:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=r,a=e.ref(n),l=e.computed(()=>W(t)),c=()=>{l.value&&(a.value=l.value.clientHeight)};if(c(),ke(c),N("resize",c,{passive:!0}),Ze(()=>l.value,c),Je(()=>l.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const i=Jn("(orientation: portrait)");e.watch(i,()=>c())}return a}const X=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],ie=[1,.99,.95,.9,.7,.5,.4,.16,.1,.075,.05];function fr(){if(!re)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(n=>{n.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function mr(){return e.inject("currentThemeScheme",null)}function zt(){return e.inject("currentThemeData",e.ref(rt))}function pr(){return e.inject("currentThemeName",e.ref("default"))}function Vt(t,r,n={}){const o=X,a=ie;return n.primary===void 0&&(n.primary=o),n.secondary===void 0&&(n.secondary=o),n.tertiary===void 0&&(n.tertiary=o),n.error===void 0&&(n.error=o),n.surface===void 0&&(n.surface=a),e.computed(()=>({name:t,colors:{primary:ye(e.unref(r.primary),n.primary),secondary:ye(e.unref(r.secondary),n.secondary),tertiary:ye(e.unref(r.tertiary),n.tertiary),error:ye(e.unref(r.error),n.error),surface:ye(e.unref(r.surface),n.surface)}}))}function hr(t,r=X){return e.computed(()=>{const n=e.unref(t);return typeof n=="string"?ae(n,r).value.map(o=>o.toHexString()):n})}function Qe(t){const r=e.ref(t);return{...{...Object.keys(r.value.colors).map(l=>{const c=l,i=r.value.colors[c];return hr(i,c==="surface"?ie:X).value.reduce((f,d,p)=>{const g=M(d).toRgb();return f[`--r-color-${c}-${p}`]=`${g.r} ${g.g} ${g.b}`,f},{})}).reduce((l,c)=>({...l,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)","--un-default-border-color":"var(--r-surface-border-color)"}}}function Re(t){const r=e.ref("");return e.onMounted(()=>{t.id?r.value=t.id:r.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),r}const At=Symbol("scheme");function Tt(){const t=_t("scheme","light");return re&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const et=9,gr=8,yr=7,Me=7,br=7,we=3,kr=6,ce=5,Nt=6,$e=3,wr=4,tt=.25,Sr=.3,De=1,vr=2,Se=6,xr=5,ve=4,Ht=5,nt=.08,Cr=.15,ue=e.ref("#0067cc"),de=e.ref("#5999A6"),fe=e.ref("#F76C22"),me=e.ref("#F95858"),te=e.ref("#121212"),It=e.computed(()=>L({color:"surface",type:"border",index:{dark:Me,light:$e}}).value);function Rt(t){return Ve(t,"text",{dark:we,light:Se})}const Br=e.computed(()=>Z(e.unref(ue),X).colors),_r=e.computed(()=>Z(e.unref(de),X).colors),Er=e.computed(()=>Z(e.unref(fe),X).colors),Mr=e.computed(()=>Z(e.unref(me),X).colors),$r=e.computed(()=>Z(e.unref(te),ie).colors),rt=Vt("default",{primary:ue,secondary:de,tertiary:fe,error:me,surface:te});function xe(t,r){return e.computed(()=>{switch(e.unref(t)){case"filled":return Be(r).value;case"light":return Lt(r).value;default:return Pe().value}})}function zr(t){return e.computed(()=>{const r=e.unref(t);switch(r){case"surface":return M(e.unref(te));case"primary":return M(e.unref(ue));case"secondary":return M(e.unref(de));case"tertiary":return M(e.unref(fe));case"error":return M(e.unref(me));default:return M(r)}})}const ot=new Map;function ae(t,r=X){return e.computed(()=>{const o=zr(t).value.toHexString();if(ot.has(o))return ot.get(o);function a(){const l=Z(o,r).colors;return ot.set(o,l),l}return a()})}function Dt(){return e.computed(()=>Z(e.unref(te),ie).colors)}function Pe(){return e.computed(()=>{const t=L({color:"surface",type:"bg",index:{dark:et,light:De}}),r=L({color:"surface",type:"border",index:{dark:Me,light:$e}}),n=Ce(t,r);return n.value.class=[...n.value.class,"border"],n.value})}function lt(){return e.computed(()=>{const t=L({color:"surface",type:"bg",index:{dark:7,light:2}}),r=L({color:"surface",type:"border",index:{dark:6,light:4}});return Ce(t,r).value})}function Ce(...t){return e.computed(()=>({style:t.reduce((r,n)=>({...r,...n.value.style}),{}),class:t.reduce((r,n)=>[...r,...n.value.class],[])}))}function Pt(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:5,light:4}}),n=L({color:"surface",type:"border",index:{dark:et,light:De}}),o=L({color:t,type:"text",index:0});return Ce(r,n,o).value})}function Be(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:ce,light:ve}}),n=L({color:t,type:"border",index:{dark:ce,light:ve}}),o=L({color:t,type:"text",index:0});return Ce(r,n,o).value})}function Lt(t){return e.computed(()=>{const r=L({color:t,type:"bg",index:{dark:ce,light:ve},alpha:.15}),n=L({color:t,type:"text",index:{dark:we,light:Se}}),o=L({color:t,type:"border",index:{dark:5,light:4},alpha:0});return Ce(r,n,o).value})}function ze(t,r,n,o,a=1){switch(r){case"outline":return{style:{"--d-outline":t[n].clone().setAlpha(a).toHex8String(),"--l-outline":t[o].clone().setAlpha(a).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[n].clone().setAlpha(a).toHex8String(),"--l-bg":t[o].clone().setAlpha(a).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[n].clone().setAlpha(a).toHex8String(),"--l-border":t[o].clone().setAlpha(a).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[n].clone().setAlpha(a).toHex8String(),"--l-text":t[o].clone().setAlpha(a).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[n].clone().setAlpha(a).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(a).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[n].clone().setAlpha(a).toHexString(),"--l-bg-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[n].clone().setAlpha(a).toHexString(),"--l-border-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[n].clone().setAlpha(a).toHexString(),"--l-text-h":t[o].clone().setAlpha(a).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function L(t){return t.color==="surface"?_e(t.type,t.index):Ve(t.color,t.type,t.index,t.alpha)}function Ve(t,r,n,o=1){return e.computed(()=>{const a=ae(t);return typeof n=="number"?ze(e.unref(a),r,n,n,o):ze(e.unref(a),r,n.dark,n.light,o)})}function _e(t,r,n=1){return e.computed(()=>{const{colors:o}=Z(e.unref(te),ie);return typeof r=="number"?ze(o,t,r,r,n):ze(o,t,r.dark,r.light,n)})}function at(t){return L({color:t,type:"outline",index:{dark:Me,light:$e}})}function Le(t="default",r="primary"){return e.computed(()=>{const n=ae(r).value,o=Z(e.unref(te),ie).colors;return{style:{default:()=>Vr(o),filled:()=>Ar(n),light:()=>Tr(n),outline:()=>Nr(n),transparent:()=>Hr(n),subtle:()=>Ir(n),contrast:()=>Rr(n),white:()=>Dr(n)}[e.unref(t)](),class:"custom-colors"}})}function Vr(t){return{"--d-bg":t[gr].toHexString(),"--d-bg-h":t[yr].toHexString(),"--d-border":t[br].toHexString(),"--l-bg":t[De].toHexString(),"--l-bg-h":t[vr].toHexString(),"--l-border":t[wr].toHexString()}}function Ar(t){return{"--d-border":"transparent","--d-bg":t[ce].toHexString(),"--d-bg-h":t[Nt].toHexString(),"--d-text":"white","--l-bg":t[ve].toHexString(),"--l-bg-h":t[Ht].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Tr(t){return{"--d-border":"transparent","--d-bg":t[ce].clone().setAlpha(tt).toHex8String(),"--d-bg-h":t[ce].clone().setAlpha(Sr).toHex8String(),"--d-text":t[we].toHexString(),"--d-text-h":t[we].toHexString(),"--l-bg":t[ve].clone().setAlpha(nt).toHex8String(),"--l-bg-h":t[ve].clone().setAlpha(Cr).toHex8String(),"--l-text":t[Se].toHexString(),"--l-text-h":t[Se].toHexString(),"--l-border":"transparent"}}function Nr(t){return{"--d-bg":"transparent","--d-bg-h":t[Nt].clone().setAlpha(tt).toHex8String(),"--d-text":t[we].toHexString(),"--d-text-h":t[we].toHexString(),"--d-border":t[Me].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Ht].clone().setAlpha(nt).toHex8String(),"--l-text":t[Se].toHexString(),"--l-text-h":t[Se].toHexString(),"--l-border":t[$e].toHexString()}}function Hr(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function Ir(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(tt).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(nt).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function Rr(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function Dr(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function st(t,r="default"){return e.computed(()=>{const n=ae(t).value,o=Dt().value;switch(e.unref(r)){case"default":return{"--d-bg":o[et].toHexString(),"--d-border-f":n[ce].toHexString(),"--d-border":o[Me].toHexString(),"--d-placeholder":o[kr].toHexString(),"--d-text":"white","--l-bg":o[De].toHexString(),"--l-border-f":n[3].toHexString(),"--l-border":o[$e].toHexString(),"--l-placeholder":o[xr].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":n[5].toHexString(),"--d-bg-h":n[6].toHexString(),"--d-border":"transparent","--l-bg":n[5].toHexString(),"--l-bg-h":n[6].toHexString(),"--l-border":"transparent"}}})}const Pr={key:2,class:"i-fluent-person-24-filled"},Ot=e.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"},skeleton:{type:Boolean}},setup(t){const r=t,n=O(r),o=e.computed(()=>r.name||""),a=e.computed(()=>{switch(r.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof r.size=="number"&&!Number.isNaN(Number(r.size))?`--size: ${r.size}rem; --font-size: ${r.size/2}rem;`:"--size: 4rem;"}}),l=e.ref(!1),c=e.ref(null);function i(){l.value=!0}e.onMounted(()=>{var d;(d=c.value)!=null&&d.complete&&i()});function s(d){return d.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>r.color),f=xe(r.variant,u);return(d,p)=>d.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant-1",style:e.normalizeStyle([e.unref(n).style,a.value])},null,4)):d.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.is),e.mergeProps({key:1,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(n).class,e.unref(f).class,{hidden:!l.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(n).style,e.unref(f).style,a.value],src:d.src},d.$attrs,{onLoad:i}),null,16,["alt","class","style","src"])):!l.value||!d.src?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[e.unref(n).class,e.unref(f).class]],style:[e.unref(n).style,e.unref(f).style,a.value]},d.$attrs),[d.$slots.default?e.renderSlot(d.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Pr))],16)):e.createCommentVNode("",!0)}}),Oe=e.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean},outlineColor:{}},setup(t){const r=t,n=O(r),o=e.computed(()=>{switch(r.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),a=e.ref(null),l=le(a),c=e.computed(()=>r.hoverVariant&&l.value?r.hoverVariant:r.variant??"default"),i=e.computed(()=>r.color??"primary"),s=Le(c,i),u=e.computed(()=>r.outlineColor??i.value),f=at(u);return(d,p)=>d.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([e.unref(n).style]),class:e.normalizeClass([o.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant-1"])},null,6)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.is),e.mergeProps({key:1,ref_key:"btn",ref:a,"data-size":d.size,type:d.type,class:["flex items-center justify-center gap-1 decoration-none outline-none",[e.unref(s).class,e.unref(n).class,e.unref(f).class,d.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":d.disabled,"active:translate-y-0.25":d.pressEffect==="translate"}]],style:[e.unref(s).style,e.unref(n).style,e.unref(f).style],disabled:d.disabled},d.$attrs),{default:e.withCtx(()=>[d.$slots.leftSection?e.renderSlot(d.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default"),d.$slots.rightSection?e.renderSlot(d.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Lr=e.defineComponent({__name:"BtnGroup",props:e.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.computed(()=>r.unselectable===void 0?r.selections.length===1:r.unselectable);function o(f){return typeof f=="string"?f:f.label??f.value}function a(f){return typeof f=="string"?f:f.value}function l(f){return typeof f=="string"?void 0:f.icon}const c=e.useModel(t,"modelValue");function i(f){a(f)===c.value&&n.value?c.value=void 0:c.value=a(f)}const s=e.computed(()=>r.selections.length===1),u=e.computed(()=>s.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(f,d)=>{const p=Oe;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-auto inline-flex container",[u.value]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.selections,(g,v)=>(e.openBlock(),e.createBlock(p,{key:a(g),model:c.value,variant:a(g)===c.value?"filled":void 0,color:r.color,class:e.normalizeClass({"border-x-none":v!==0&&v!==r.selections.length-1}),onClick:h=>i(g)},{default:e.withCtx(()=>[l(g)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(l(g))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(g)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Or=(t,r)=>{const n=t.__vccOpts||t;for(const[o,a]of r)n[o]=a;return n},Fr={},Wr={class:"flex flex-col gap-4 container"};function jr(t,r){return e.openBlock(),e.createElementBlock("div",Wr,[e.renderSlot(t.$slots,"default")])}const Xr=Or(Fr,[["render",jr]]),Ur=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),a=xe(n,o);return(l,c)=>{const i=Ot;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":l.position==="right","flex-row":l.position==="left"}]])},[l.$slots.avatar?e.renderSlot(l.$slots,"avatar",{key:0}):l.avatar?(e.openBlock(),e.createBlock(i,{key:1,size:"xs",src:l.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":l.position==="right","rounded-tl":l.position==="left",border:l.withBorder},e.unref(a).class]]),style:e.normalizeStyle([e.unref(a).style])},[e.renderSlot(l.$slots,"default")],6)],2)}}}),Yr={class:"w-full flex self-center gap-2 text-center"},Gr=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),a=xe(n,o);return(l,c)=>(e.openBlock(),e.createElementBlock("div",Yr,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(a).class]]),style:e.normalizeStyle(e.unref(a).style)},[e.renderSlot(l.$slots,"default")],6)]))}}),qr=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const r=t,n=O(r),o=e.computed(()=>{switch(r.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),a=e.computed(()=>r.variant),l=e.computed(()=>r.color),c=xe(a,l);return(i,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(n).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(n).style,e.unref(c).style])},[i.$slots.leftSection?e.renderSlot(i.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),i.$slots.rightSection?e.renderSlot(i.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Ft=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(r,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:r.withBorder}]]},e.unref(It),{style:{backgroundColor:r.color}}),null,16,["class","style"]))}}),Kr=["id","alt"],Jr=["for"],Zr={key:0},Qr=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=e.useModel(t,"modelValue"),n=e.useAttrs(),o=Re(n),a=e.ref(null);return(l,c)=>{const i=Ft;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:a,"onUpdate:modelValue":c[0]||(c[0]=s=>r.value=s),alt:r.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Kr),[[e.vModelText,r.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(i,{"with-border":l.withBorder,class:"cursor-pointer",color:r.value??"#222"},null,8,["with-border","color"]),l.label?(e.openBlock(),e.createElementBlock("span",Zr,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0)],8,Jr)])}}}),Wt=Symbol("rokuProvider");function eo(){return e.inject(Wt,e.ref(null))}function to(t){return e.provide(Wt,t)}const it=e.defineComponent({__name:"FullscreenOverlay",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue"),o=e.ref(null);function a(s){r.persistent||s.target===o.value&&(n.value=!1)}const l=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),c=e.ref(0);e.watchEffect(()=>{n.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${c.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),e.watchEffect(()=>{typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body)});const i=eo();return(s,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(i)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["fixed left-0 top-0 z-100 h-full w-full bg-surface-10/50 p-2 transition-all duration-100",[l.value,s.wrapperClass,{"op-0 pointer-events-none":!n.value,"op-100":n.value}]]),onClick:a},[e.renderSlot(s.$slots,"default")],2)],8,["to"]))}}),no={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},ro={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},oo=e.defineComponent({__name:"Drawer",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,a)=>{const l=Oe,c=it;return e.openBlock(),e.createBlock(c,{modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=i=>n.value=i),blur:r.blur,persistent:r.persistent},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(o.position==="left","translate-x-0"),"leave-from-class":(o.position==="left","translate-x-0"),"leave-to-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",o.position==="left"?"left-0":"right-0"])},[e.createElementVNode("div",no,[e.createVNode(l,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:a[0]||(a[0]=i=>n.value=!1)},{default:e.withCtx(()=>a[2]||(a[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",ro,[e.renderSlot(o.$slots,"default")])],2)):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),lo=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:r}){const n=t,o=r,a=e.ref(),{onChange:l,open:c}=sr({accept:n.accept});l(f=>{f?o("drop",Array.from(f)):o("drop",null)});const{isOverDropZone:i}=lr(a,{onDrop:f=>{o("drop",f)}}),s=Le("default"),u=lt();return(f,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:a,class:e.normalizeClass([[e.unref(s).class,e.unref(i)&&e.unref(u).class,{"bg-surface-low":!e.unref(i),"border-dashed":f.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(s).style,e.unref(i)&&e.unref(u).style]),onPointerup:d[0]||(d[0]=()=>e.unref(c)())},[e.renderSlot(f.$slots,"default")],38))}}),ao=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const r=t,n=e.ref(!1),o=e.ref(null);function a(){n.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&a()});const l=O(r);return(c,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:c.height,width:c.width,maxHeight:c.maxHeight,maxWidth:c.maxWidth})},[c.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),e.mergeProps({key:0,ref_key:"img",ref:o,style:[c.style,e.unref(l).style],src:c.src,class:["h-full w-full object-cover",[r.class,e.unref(l).class,{hidden:!n.value}]]},c.$attrs,{onLoad:a}),null,16,["style","src","class"])):e.createCommentVNode("",!0),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[r.class,e.unref(l).class]]),style:e.normalizeStyle([c.style,e.unref(l).style])},null,6))],4))}}),so={class:"relative"},io=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof r.size=="number"||!Number.isNaN(Number(r.size))?`w-${r.size} h-${r.size}`:r.size}}),o=e.useSlots(),a=e.computed(()=>{if(!o.label)return"";switch(r.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),l=e.computed(()=>{switch(r.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),c=e.computed(()=>r.color),i=Pt(c);return(s,u)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("div",{class:e.normalizeClass([[l.value,a.value],"absolute z-1"])},[r.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[n.value]:!s.$slots.label},e.unref(i).class]]),style:e.normalizeStyle([e.unref(i).style])},[s.$slots.label?e.renderSlot(s.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[n.value]:!s.$slots.label},e.unref(i).class]]),style:e.normalizeStyle(e.unref(i).style)},[s.$slots.label?e.renderSlot(s.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(s.$slots,"default")]))}}),jt=e.defineComponent({__name:"MenuItem",props:{data:{},idx:{},rounded:{default:"md"},items:{}},setup(t){const r=t,n=e.ref(null),o=le(n,{delayLeave:100}),a=O({rounded:r.rounded}),l=e.inject("menuCurrentIdx",e.ref([]));N(n,"pointermove",()=>{l.value=r.idx},{capture:!0});const c=e.computed(()=>l.value.join()===r.idx.join()),i=e.computed(()=>l.value.length>r.idx.length&&l.value.slice(0,r.idx.length).join()===r.idx.join()),s=e.inject("selectMenuItem",()=>{console.error("selectMenuItem is not provided")});return(u,f)=>{const d=e.resolveComponent("MenuItem",!0);return e.openBlock(),e.createElementBlock("button",{ref_key:"menuItemRef",ref:n,tabindex:-1,class:e.normalizeClass(["relative inline-block h-8 w-full flex cursor-pointer items-center gap-2 px-2 outline-none",[e.unref(a).class,{"bg-surface-variant-2":c.value}]]),style:e.normalizeStyle([e.unref(a).style]),onPointerdown:f[0]||(f[0]=()=>u.data.value?e.unref(s)(u.data.value):void 0)},[u.data.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(u.data.icon)},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(u.data.label),1),u.data.children&&(e.unref(o)||i.value)?(e.openBlock(),e.createElementBlock("menu",{key:1,class:e.normalizeClass(["absolute left-100% top-0 ml-2 w-64 border border bg-surface bg-surface p-2",e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.data.children,(p,g)=>(e.openBlock(),e.createBlock(d,{key:g,data:p,idx:[...u.idx,g]},null,8,["data","idx"]))),128))],6)):e.createCommentVNode("",!0)],38)}}}),co={key:0,class:"relative flex justify-center"},uo=e.defineComponent({__name:"Menu",props:e.mergeModels({rounded:{default:"md"},enterActiveClass:{default:"animate-keyframes-zoom-in animate-duration-0.1s"},leaveActiveClass:{default:"animate-keyframes-zoom-out animate-duration-0.1s"},items:{}},{modelValue:{type:Boolean,default:void 0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=e.useModel(t,"modelValue"),l=e.computed(()=>a.value),[c,i]=Un(),s=e.computed(()=>l.value===void 0?c.value:l.value),u=O(n),f=e.ref(null),d=e.ref(null),p=e.ref(null);N(d,"pointerup",y=>{y.stopPropagation(),y.preventDefault(),i()}),qe(p,()=>{i(!1)});const g=e.ref([-1]);e.watchEffect(()=>{s.value||(g.value=[-1])}),e.provide("menuCurrentIdx",g);function v(y,m){if(m.length<=1)return y.length;const b=y[m[0]].children;return b===void 0?0:v(b,m.slice(1))}const h=e.computed(()=>n.items===void 0?0:v(n.items,g.value));Y("ArrowDown",y=>{var _;if(!s.value)return;y.preventDefault();const m=g.value;let S=(m[m.length-1]+1)%h.value;for(;(_=w(n.items,[...m.slice(0,m.length-1),S]))!=null&&_.render;)S=(S+1)%h.value;g.value=[...m.slice(0,m.length-1),S]}),Y("ArrowUp",y=>{var _;if(!s.value)return;y.preventDefault();const m=g.value,b=m[m.length-1];if(b===-1&&m.length===1){g.value=[h.value-1];return}let S=(b-1+h.value)%h.value;for(;(_=w(n.items,[...m.slice(0,m.length-1),S]))!=null&&_.render;)S=(S-1+h.value)%h.value;g.value=[...m.slice(0,m.length-1),S]}),Y("ArrowRight",y=>{if(s.value&&(y.preventDefault(),g.value[g.value.length-1]!==-1)){let m=n.items;for(let b=0;b<g.value.length;b++){if(m===void 0)return;m=m[g.value[b]].children}m!==void 0&&(g.value=[...g.value,0])}}),Y("ArrowLeft",y=>{s.value&&(y.preventDefault(),g.value.length>0&&(g.value=g.value.slice(0,g.value.length-1)))});function w(y,m){if(m.length===0)return;let b=y;for(let S=0;S<m.length-1;S++){if(b===void 0)return;b=b[m[S]].children}if(b!==void 0)return b[m[m.length-1]]}return e.provide("selectMenuItem",y=>{o("select",y),i(!1)}),Y("Enter",y=>{var b;if(!s.value)return;y.preventDefault();const m=(b=w(n.items,g.value))==null?void 0:b.value;m&&(o("select",m),i(!1))}),(y,m)=>{const b=jt;return e.openBlock(),e.createElementBlock("div",{ref_key:"menuWrapperRef",ref:f,class:"relative inline-block"},[e.createElementVNode("div",{ref_key:"menuTriggerRef",ref:d,class:"inline-block"},[e.renderSlot(y.$slots,"default",{ref_key:"menuTriggerRef",ref:d})],512),e.createVNode(e.Transition,{"enter-active-class":n.enterActiveClass,"leave-active-class":n.leaveActiveClass},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("menu",co,[e.createElementVNode("div",{ref_key:"menuDropdownRef",ref:p,class:e.normalizeClass([[e.unref(u).class],"absolute mt-2 w-64 border bg-surface p-2"]),style:e.normalizeStyle([e.unref(u).style])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(S,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[S.render?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.render),{key:0})):(e.openBlock(),e.createBlock(b,e.mergeProps({key:1,data:S,ref_for:!0},n,{idx:[_]}),null,16,["data","idx"]))],64))),128))],6)])):e.createCommentVNode("",!0)]),_:1},8,["enter-active-class","leave-active-class"])],512)}}}),ct=e.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.computed(()=>r.loading),a=O(r),{x:l,y:c}=Ie({type:"client"}),i=e.ref(null),{width:s,height:u,top:f,left:d}=oe(i),p=e.computed(()=>Math.min(s.value,u.value)),g=e.computed(()=>!s.value||!u.value?[]:o.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let v;const h=e.computed(()=>ae(n.value).value[5]),w=e.computed(()=>{var m;return r.loading?(v?v.play():v=(m=i.value)==null?void 0:m.animate(g.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":h.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(v&&v.pause(),{background:"var(--r-surface-background-color)"})}),y=e.computed(()=>{if(r.traceAnimate){const m=e.computed(()=>({x:d.value+s.value/2,y:f.value+u.value/2})),b=e.computed(()=>{if(l.value<d.value||l.value>d.value+s.value||c.value<f.value||c.value>f.value+u.value)return{x:l.value,y:c.value};const S=m.value.x,_=m.value.y;let B,k;const E=(c.value-_)/(l.value-S);return l.value<S?(B=d.value,k=_+E*(d.value-S)):(B=d.value+s.value,k=_+E*(B-S)),k<f.value?(k=f.value,B=S+(k-_)/E):k>f.value+u.value&&(k=f.value+u.value,B=S+(k-_)/E),{x:B,y:k}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${b.value.x-d.value}px ${b.value.y-f.value}px, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(m,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.is),e.mergeProps({ref_key:"paperRef",ref:i,class:["relative border",[{"p-4":!m.noPadding},e.unref(a).class]],style:[e.unref(a).style,w.value,y.value]},m.withBorder&&!m.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},16,["class","style"]))}}),fo={key:0,class:"text-lg"},mo={key:0},po=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},title:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,a)=>{const l=ct,c=it;return e.openBlock(),e.createBlock(c,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=i=>n.value=i),blur:r.blur,persistent:r.persistent,"wrapper-class":"flex justify-center items-end md:items-start md:pt-5%"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.$slots.default?e.renderSlot(o.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(l,{key:1,"with-border":"",class:"w-full flex flex flex-col gap-2 md:w-md"},{default:e.withCtx(()=>[o.title||o.$slots.title?(e.openBlock(),e.createElementBlock("div",fo,[o.title?(e.openBlock(),e.createElementBlock("div",mo,e.toDisplayString(o.title),1)):e.renderSlot(o.$slots,"title",{key:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"body")]),e.renderSlot(o.$slots,"footer")]),_:3}))],64)):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),Xt=e.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),o=e.computed(()=>r.color),a=Be(o),l=_e("bg",{dark:7,light:3}),c=O(r);return(i,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[n.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(l)),[i.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(a)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(a),{style:[{width:`${(Number(i.value)-Number(i.min))/(Number(i.max)-Number(i.min))*100}%`}]}),null,16))],16))}}),ho={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},go={key:1},yo={class:"grow-1"},bo={key:1,class:"i-fluent-dismiss-12-filled"},Ut=e.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"},complete:{},total:{default:100}},emits:["close"],setup(t){const r=t,n=O(r),o=e.computed(()=>r.color),a=Be(o),l=Rt(o),c=Pe(),i=e.computed(()=>{switch(r.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(s,u)=>{const f=Oe,d=Xt;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["overflow-hidden",[{"border-0":!s.withBorder},e.unref(n).class,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(n).style]},e.unref(c)),[e.createElementVNode("div",{class:e.normalizeClass(["relative min-w-80 w-full flex items-center gap-2 pl-4",[i.value,e.unref(l).class]])},[s.icon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([[e.unref(l).class],"leading-0"]),style:e.normalizeStyle(e.unref(l).style)},[s.loading?(e.openBlock(),e.createElementBlock("i",ho)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))],6)):(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",e.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":s.loading}]]},e.unref(a)),null,16)])),e.createElementVNode("div",yo,[s.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",[{"text-xs":s.size==="sm","text-sm":s.size==="md","text-base":s.size==="lg"},e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},e.toDisplayString(s.title),7)):e.createCommentVNode("",!0),s.$slots.message?e.renderSlot(s.$slots,"message",{key:1}):s.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["text-surface-dimmed",{"text-xs":s.size==="sm","text-sm":s.size==="md"||s.size==="lg"}])},e.toDisplayString(s.message),3)):e.createCommentVNode("",!0)]),s.closeable?(e.openBlock(),e.createBlock(f,{key:2,icon:"",variant:"transparent",color:"white",onClick:u[0]||(u[0]=p=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",bo))]),_:3})):e.createCommentVNode("",!0)],2),s.complete?(e.openBlock(),e.createBlock(d,{key:0,value:s.complete,max:s.total},null,8,["value","max"])):e.createCommentVNode("",!0)],16)}}}),ko={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},wo=["data-hash"],So=e.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},progress:{type:Boolean,default:!0},topN:{default:3},gap:{default:8},pt:{default:8},pl:{default:8},pr:{default:8},pb:{default:8}},setup(t){const r=t,n=je(r.topN),o=e.ref([]),a=e.computed(()=>o.value.map(m=>m.getBoundingClientRect())),l=je(),c=e.shallowRef({});e.watch([o.value],()=>{for(const m of o.value){const b=m.dataset.hash;if(b&&!c.value[b]){const S=le(m,{});c.value[b]=S}}}),r.progress&&Kn(({delta:m})=>{l.value=l.value.map(b=>c.value[b.hash]&&c.value[b.hash].value||!n.value.includes(b)?b:{...b,durationMS:b.durationMS-m}).filter(b=>b.durationMS>0)},{});const i=e.computed(()=>{const m={"top-left":0,"top-right":0,top:0,"bottom-left":0,"bottom-right":0,bottom:0};return n.value.map((b,S)=>{const _=b.position||r.position,B=m[_];return a.value[S]&&(m[_]+=a.value[S].height+r.gap),B})});function s(m){return["top-left","top-right","top"].includes(m)}function u(m=0,b){return b||(b=r.position),s(b)?{top:`${m+r.pt}px`}:{bottom:`${m+r.pb}px`}}function f(m){return m.includes("right")?{transform:"translateX(-100%)"}:m.includes("left")?{}:{transform:"translateX(-50%)"}}function d(m){return m.includes("right")?{right:`${r.pr}px`}:m.includes("left")?{left:`${r.pl}px`}:{left:"50%"}}function p(m){return m.includes("top")?{top:`${r.pt}px`}:{bottom:`${r.pb}px`}}const g=function(m){return s(m)?"animate-keyframes-fade-in-down animate-duration-0.3s":"animate-keyframes-fade-in-up animate-duration-0.3s"},v=function(m){return s(m)?"animate-keyframes-fade-out-down animate-duration-0.3s":"animate-keyframes-fade-out-up animate-duration-0.3s"};function h(m){n.value.indexOf(m)!==-1&&(l.value=l.value.filter(S=>S.hash!==m.hash))}function w(m){if(!m.durationMS||m.durationMS<=0)return 0;const b=m.durationMS,S=m.initialDurationMS;return(S-b)/S}const y=["top-left","top-right","top","bottom-left","bottom-right","bottom"];return(m,b)=>{const S=Ut;return e.openBlock(),e.createElementBlock("div",ko,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,_=>e.createElementVNode("div",{key:_,style:e.normalizeStyle([p(_),d(_)]),class:"absolute"},[e.createVNode(e.TransitionGroup,{"enter-active-class":g(_),"leave-active-class":v(_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(B,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:B.hash},[B.position===_?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute transition-top,bottom,transform duration-0.3s",style:e.normalizeStyle([u(i.value[k],B.position)])},[e.createElementVNode("div",{ref_for:!0,ref_key:"notificationRefs",ref:o,"data-hash":B.hash,style:e.normalizeStyle([f(_),u(i.value[k],B.position)])},[e.createVNode(S,{"with-border":"",closeable:"",title:B.title,message:B.message,icon:B.icon,loading:B.loading,color:B.color,complete:m.progress?w(B)*100:void 0,onClose:E=>h(B)},null,8,["title","message","icon","loading","color","complete","onClose"])],12,wo)],4)):e.createCommentVNode("",!0)],64))),128))]),_:2},1032,["enter-active-class","leave-active-class"])],4)),64))])}}}),vo={class:"relative"},Yt=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const r=t,n=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=O(r),a=e.ref(null),l=M(r.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${l.r}, ${l.g}, ${l.b}, ${r.opacity/100})`}));return(i,s)=>(e.openBlock(),e.createElementBlock("div",vo,[e.renderSlot(i.$slots,"default"),e.createElementVNode("div",e.mergeProps(i.$attrs,{ref_key:"wrapperRef",ref:a,class:[[n.value,e.unref(o).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[e.unref(o).style,c.value]}),[e.renderSlot(i.$slots,"content")],16)]))}}),xo=["for"],Co={key:1},Bo=["id","disabled","placeholder","type"],Gt=e.defineComponent({__name:"TextField",props:e.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:r}){const n=t,o=e.useModel(t,"modelValue"),a=e.computed(()=>{switch(n.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),l=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>n.color),i=st(c),s=e.computed(()=>n.disabled?"pointer-events-none select-none filter opacity-60":""),u=O(n),f=e.ref(null);r({el:f});const d=e.useAttrs(),p=Re(d);return(g,v)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(i)])},[g.$slots.label||g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[l.value]])},[g.$slots.label?e.renderSlot(g.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",Co,e.toDisplayString(g.label),1))],10,xo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},g.$attrs,{ref_key:"input",ref:f,"onUpdate:modelValue":v[0]||(v[0]=h=>o.value=h),disabled:g.disabled,class:["w-full border px-2 py-1 outline-none custom-input-colors",[s.value,e.unref(u).class,a.value.base]],style:[e.unref(u).style],placeholder:g.placeholder,type:n.password?"password":"text"}),null,16,Bo),[[e.vModelDynamic,o.value]])],4))}}),_o={class:"flex gap-2"},Eo=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const r=t,n=e.ref([]);function o(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(f=>f.el===i.target),u=i.target.value??"";i.target.value="",Array.from(u).forEach((f,d)=>{s+d>=n.value.length||(n.value[s+d].el.value=f,s+d+1<n.value.length?(n.value[s+d+1].el.focus(),n.value[s+d+1].el.select()):n.value[s+d].el.blur())})}function a(i){i.preventDefault(),i.stopPropagation();const s=i.target.value!=="";i.target.value="";const u=n.value.findIndex(f=>f.el===i.target);u!==0&&(n.value[u-1].el.focus(),n.value[u-1].el.select(),s||(n.value[u-1].el.value=""))}function l(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(u=>u.el===i.target);s>0&&(n.value[s-1].el.focus(),n.value[s-1].el.select())}function c(i){i.preventDefault(),i.stopPropagation();const s=n.value.findIndex(u=>u.el===i.target);s<n.value.length-1&&(n.value[s+1].el.focus(),n.value[s+1].el.select())}return(i,s)=>(e.openBlock(),e.createElementBlock("div",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.length,u=>(e.openBlock(),e.createBlock(Gt,{ref_for:!0,ref_key:"inputs",ref:n,key:u,class:"w-8 text-center",style:{padding:"0"},password:r.password,onPointerup:s[0]||(s[0]=f=>f.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(a,["backspace"]),e.withKeys(l,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),Mo=e.defineComponent({__name:"Popover",props:e.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.ref(null),o=e.ref(null),a=oe(n),l=oe(o),c=e.computed(()=>{switch(r.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),i=e.computed(()=>{switch(r.position){case"top-start":case"top-end":return{top:`${-l.height.value-r.offset}px`};case"top":return{top:`${-l.height.value-r.offset}px`,left:`${-l.width.value/2+a.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${r.offset}px`};case"bottom":return{top:`${a.height.value+r.offset}px`,left:`${-l.width.value/2+a.width.value/2}px`};case"left-start":return{left:`${-l.width.value-r.offset}px`,top:0};case"left-end":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value+a.height.value}px`};case"left":return{left:`${-l.width.value-r.offset}px`,top:`${-l.height.value/2+a.height.value/2}px`};case"right-start":return{left:`${r.offset+a.width.value}px`,top:0};case"right-end":return{left:`${r.offset+a.width.value}px`,top:`${-l.height.value+a.height.value}px`};case"right":return{left:`${a.width.value+r.offset}px`,top:`${-l.height.value/2+a.height.value/2}px`};default:return{}}}),s=le(n),u=e.useModel(t,"modelValue"),f=e.computed(()=>r.trigger==="hover"?s.value:u.value);function d(p){var g;!((g=n.value)!=null&&g.contains(p.target))||p.target===n.value||(u.value=!u.value)}return qe(o,p=>{var g;(g=n.value)!=null&&g.contains(p.target)?u.value=!0:u.value=!1}),(p,g)=>{const v=Yt;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:n,class:"relative"},[e.createElementVNode("div",{onPointerup:d},[e.renderSlot(p.$slots,"default")],32),f.value&&p.overlay?(e.openBlock(),e.createBlock(v,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:g[0]||(g[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:o,class:e.normalizeClass([c.value,"absolute children:w-max"]),style:e.normalizeStyle([i.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),$o=["onMouseover","onPointerdown"],zo="#ffeb91",Vo="text-[var(--d-text)]",Ao="text-surface-dimmed",To="text-[var(--d-text-h)]",No="i-fluent-star-12-filled",Ho="i-fluent-star-12-filled",Io=e.defineComponent({__name:"Rating",props:e.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=e.computed(()=>n.count??5),l=e.useModel(t,"modelValue"),c=e.computed(()=>n.highlightSelectedOnly??!1),i=e.computed(()=>n.unselectable??!1),s=e.ref(-1),u=e.computed(()=>f(n.icons,a.value,No,Ho));function f(m,b,S,_){function B(E){return typeof E=="string"?{active:E,normal:E}:E===void 0?{active:_,normal:S}:{active:E.active||_,normal:E.normal||S}}if(m===void 0)return Array.from({length:b},()=>({active:_,normal:S}));let k;if(typeof m=="string")k={active:m,normal:m};else if(Array.isArray(m)){const E=m.map(V=>B(V));return E.length===1?(k=E[0],Array.from({length:b},()=>({...k}))):E.slice(0,b).concat(Array.from({length:Math.max(0,b-E.length)},()=>({active:_,normal:S})))}else k={active:m.active||_,normal:m.normal||S};return Array.from({length:b},()=>({...k}))}function d(m){return c.value?s.value!==-1?s.value===m+1:l.value===m+1:s.value!==-1?s.value>m:l.value>=m+1}function p(m){const b=u.value[m].normal,S=u.value[m].active;return d(m)?[c.value?To:Vo,S]:[Ao,b]}const v=e.computed(()=>{if(typeof n.color=="string")return Array.from({length:a.value}).map(()=>n.color);const m=Array.from({length:a.value}).map(()=>zo);return n.color.forEach((b,S)=>{b&&(m[S]=b)}),m}).value.map(m=>xe("filled",m)),h=L({color:"surface",type:"text",index:{dark:6,light:4}});function w(m){l.value===m&&i.value?(o("select",0),l.value=0):(o("select",m+1),l.value=m+1)}const y=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(m,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",y.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"pr-1",onMouseover:B=>s.value=_+1,onMouseleave:b[0]||(b[0]=B=>s.value=-1),onPointerdown:B=>w(_)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},d(_)?e.unref(v)[_].value:e.unref(h),{class:["active:translate-y-1px",[p(_)]]}),null,16)],40,$o))),128))],2))}}),Ro=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:rt.value})}},setup(t){const r=t,n=Tt(),o=e.computed(()=>r.themes[r.theme]);e.watchEffect(()=>{te.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:te.value,ue.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ue.value,de.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:de.value,fe.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:fe.value,me.value=typeof o.value.colors.error=="string"?o.value.colors.error:me.value});const a=e.ref(null),l=e.computed(()=>Qe({colors:{surface:te.value,primary:ue.value,secondary:de.value,tertiary:fe.value,error:me.value},name:o.value.name}));return e.provide(At,n),e.provide("currentThemeData",e.computed(()=>o.value)),to(a),(c,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:a,style:e.normalizeStyle([l.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),Do=["id"],Po=["for"],Lo=["for"],qt=e.defineComponent({inheritAttrs:!1,__name:"Switch",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");r.value&&(n.value=r.value);const o=e.ref(null),a=e.ref(!1),l=e.computed(()=>{switch(r.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:a.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:a.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:a.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:a.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:a.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:a.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>r.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),i=Re(r),s=_e("bg",{dark:7,light:3}),u=Ve(r.color,"bg",5),f=Ve(r.color,"text",5),d=e.computed(()=>({wrapper:n.value?[u.value.class]:[s.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:n.value?u.value.style:s.value.style,indicator:n.value?{}:""})),g=O(r),v=e.computed(()=>r.color),h=at(v),w=e.ref(null);return N(w,"keydown",y=>{(y.key==="Enter"||y.key===" ")&&(n.value=!n.value)}),(y,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,role:"switch",tabindex:"0",class:e.normalizeClass(["relative flex items-center gap-2 outline-none",[e.unref(h).class,e.unref(g).class,{"pointer-events-none filter-grayscale op-60":r.disabled}]]),style:e.normalizeStyle([e.unref(h).style,e.unref(g).style])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(i),"onUpdate:modelValue":m[0]||(m[0]=b=>n.value=b)},y.$attrs,{class:"hidden",type:"checkbox"}),null,16,Do),[[e.vModelCheckbox,n.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(i)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[l.value.wrapper,...d.value.wrapper,e.unref(g).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(g).style,p.value.wrapper]),onPointerdown:m[1]||(m[1]=b=>a.value=!0),onPointerup:m[2]||(m[2]=b=>a.value=!1),onPointerleave:m[3]||(m[3]=b=>a.value=!1),onPointerenter:m[4]||(m[4]=b=>b.buttons===1&&(a.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[l.value.indicator,d.value.indicator,c.value.indicator,n.value?l.value.active:l.value.inactive,e.unref(g).class]]),style:e.normalizeStyle([e.unref(g).style,p.value.indicator])},[e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 ","enter-to-class":"scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100","leave-to-class":"scale-0"},{default:e.withCtx(()=>[r.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[r.indicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):n.value&&r.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[r.onIndicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):!n.value&&r.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[r.offIndicatorIcon,n.value?e.unref(f).class:"text-black"]]),style:e.normalizeStyle(e.unref(f).style)},null,6)):e.createCommentVNode("",!0)]),_:1})],6),e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 rotate-50","enter-to-class":"scale-100 rotate-0","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100 rotate-0","leave-to-class":"scale-0 rotate-50 "},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{[`left-0 text-${y.color}-on-container-low`]:n.value,[y.onIcon??""]:n.value&&y.onIcon,[y.offIcon??""]:!n.value&&y.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[l.value.icon,{"right-0":!n.value,[y.onIcon??""]:n.value&&y.onIcon,[y.offIcon??""]:!n.value&&y.offIcon}]])},null,2))]),_:1})],38)],8,Po),y.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(i)},e.toDisplayString(y.label),9,Lo)):e.createCommentVNode("",!0)],6))}}),Oo={class:"scheme-switch inline-block"},Fo={class:"dark:hidden"},Wo={class:"light:hidden"},jo=e.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const r=t,n=e.ref(!1);let o;N("click",c=>o=c),e.watch([n],()=>{if(re){const c=(o==null?void 0:o.clientX)??innerWidth/2,i=(o==null?void 0:o.clientY)??innerHeight/2,s=Math.hypot(Math.max(c,innerWidth-c),Math.max(i,innerHeight-i));if(r.disableViewTranslation)document.documentElement.setAttribute("data-scheme",n.value?"dark":"light"),localStorage.setItem("scheme",n.value?"dark":"light");else{const u=document.startViewTransition(()=>{n.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});r.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${c}px ${i}px)`,`circle(${s}px at ${c}px ${i}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const a=e.ref(!0),l=e.ref(!1);return e.onMounted(()=>{re&&(n.value=localStorage.getItem("scheme")==="dark"),a.value=!1}),e.nextTick(()=>{l.value=!0}),(c,i)=>{const s=qt;return e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!a.value})},[e.createElementVNode("div",Fo,[e.createVNode(s,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Wo,[e.createVNode(s,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),e.createElementVNode("div",{class:e.normalizeClass({hidden:a.value})},[e.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=u=>n.value=u),animate:l.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)])}}}),Xo=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:r}){const n=t,o=Et(),a=oe(o),l=e.ref(),c=oe(()=>l.value),i=e.computed(()=>{if(n.height)return typeof n.height=="number"?`${n.height}px`:n.height;const $=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,H=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return`${a.height.value-$-H}px`}),s=e.ref(),u=$t(()=>s.value),{x:f,y:d}=ir(()=>s.value),p=e.computed(()=>{var $;return((($=s.value)==null?void 0:$.scrollHeight)??0)-(u.value??0)}),g=Mt(()=>s.value),v=e.computed(()=>d.value/p.value||0),h=e.computed(()=>s.value?u.value/g.value*u.value:0),w=e.computed(()=>u.value-h.value),y=e.computed(()=>{if(!s.value)return null;const $=v.value*w.value;return{x:f.value,y:d.value,barHeight:h.value,barTop:$}}),m=e.ref(!1),b=e.ref(0),S=e.ref(""),_=e.ref(0),B=Ie({type:"client"});N(()=>l.value,"pointerdown",$=>{m.value=!0,b.value=$.clientY,_.value=d.value,S.value=document.body.style.userSelect,document.body.style.userSelect="none"}),N(()=>document,"pointermove",()=>{if(!m.value)return;if(n.threshold<c.left.value-B.x.value||B.x.value-c.right.value>n.threshold){d.value=_.value;return}const H=(B.y.value-b.value)/w.value;d.value=_.value+H*p.value}),N(()=>document,"pointerup",()=>{m.value=!1,document.body.style.userSelect=S.value}),r({$el:s});const k=e.ref(),E=le(k),V=le(()=>l.value),C=_e("bg",{dark:2,light:7},.5),z=_e("bg",{dark:2,light:7},.75);function T($){var he;const{clientY:H}=$,{top:I,height:q}=c,A=I.value,P=q.value,U=A+P/2,ee=H-U;(he=s.value)==null||he.scrollBy({top:ee/P*u.value,behavior:"smooth"})}return($,H)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:k,style:e.normalizeStyle({height:i.value}),class:"relative max-h-fit overflow-hidden"},[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${$.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:T},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:l,class:e.normalizeClass([[e.unref(C).class,{"op-0":!e.unref(E)&&$.autoHide,"op-100":e.unref(E)&&$.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:e.normalizeStyle([{right:"0px",width:`${$.barWidth}px`,top:`${y.value.barTop}px`,height:`${y.value.barHeight}px`},!e.unref(V)&&!m.value&&e.unref(C).style,(e.unref(V)||m.value)&&e.unref(z).style])},null,6),[[e.vShow,y.value.barHeight<e.unref(u)]])],36)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:s,style:e.normalizeStyle({paddingRight:`${$.floating?0:$.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot($.$slots,"default")],4)],4))}}),Uo={class:"w-full flex items-center"},Yo=["placeholder","readonly","value","aria-label"],Go={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},qo=["onPointerdown","onMousemove"],Ko={key:0},Jo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Zo=e.defineComponent({__name:"Select",props:e.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,r)=>t.includes(r)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,a=O(n),l=e.useModel(t,"modelValue"),c=e.ref(null),i=e.ref(null),s=e.ref(!1);qe(i,()=>{s.value=!1});const u=e.ref(-1),f=e.ref(-1);e.watchEffect(()=>{s.value||(f.value=-1)}),e.watch(l,()=>{o("change",l.value)});const d=e.computed(()=>l.value),p=e.computed(()=>h(d.value)),g=e.computed(()=>n.options.findIndex(A=>z(A,d.value))),v=e.ref(p.value);e.watch(p,()=>{v.value=p.value});function h(A){return A?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?String(A):A.label?A.label:A.id:""}function w(A){if(A)return typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A:A.id}function y(A){s.value=!0;const P=A.target;v.value=P.value,o("input",v.value)}const m=e.computed(()=>n.searchable&&v.value!==p.value?n.options.filter(A=>n.filter(h(A),v.value)):n.options);Y("ArrowDown",A=>{s.value&&(A.preventDefault(),f.value===-1&&u.value!==-1?f.value=u.value:f.value===-1&&u.value===-1&&g.value!==-1&&(f.value=g.value),f.value=(f.value+1)%n.options.length)}),Y("ArrowUp",A=>{s.value&&(A.preventDefault(),f.value===-1&&u.value!==-1?f.value=u.value:f.value===-1&&u.value===-1&&g.value!==-1&&(f.value=g.value),f.value=(f.value-1+n.options.length)%n.options.length)}),Y("Enter",()=>{s.value&&f.value!==-1&&(l.value=m.value[f.value],c.value.focus(),s.value=!1)});function b(A){if(c.value.focus(),!s.value){s.value=!0;return}l.value=A,s.value=!1}const S=e.computed(()=>n.color),_=st(S,"default"),B=e.computed(()=>{switch(n.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),k=e.ref(null),{height:E}=oe(k),{bottom:V}=oe(c);e.watch([s],()=>{f.value=-1,u.value=-1});const C=e.computed(()=>s.value&&re?E.value===0?!1:document.documentElement.clientHeight-V.value>E.value:!1);function z(A,P){return P?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A===P:typeof P=="string"||typeof P=="symbol"||typeof P=="number"?!1:A.id===P.id:!1}const T=e.computed(()=>n.searchable?"cursor-text":"cursor-pointer"),$=Pe(),H=lt(),I=Be(S);function q(A){u.value=A,f.value=-1}return(A,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:i,class:"relative",style:e.normalizeStyle(e.unref(_))},[e.createElementVNode("div",Uo,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[B.value.wrapper,e.unref(a).class,T.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:A.placeholder,style:e.normalizeStyle([e.unref(a).style,e.unref(_)]),readonly:!A.searchable,value:v.value,"aria-label":A.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:y,onClick:P[0]||(P[0]=U=>s.value=!0)},null,46,Yo),P[2]||(P[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:k,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref($).class,B.value.dropdown,{"bottom-10":!C.value}]]),style:e.normalizeStyle([e.unref($).style])},[A.options.length===0?(e.openBlock(),e.createElementBlock("div",Go,[e.renderSlot(A.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(A.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(U,ee)=>(e.openBlock(),e.createElementBlock("div",{key:w(U),class:e.normalizeClass([[f.value===ee&&e.unref(I).class,u.value===ee&&f.value===-1&&e.unref(H).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([f.value===ee&&e.unref(I).style,u.value===ee&&f.value===-1&&e.unref(H).style]),onPointerdown:he=>b(U),onMousemove:he=>q(ee),onMouseleave:P[1]||(P[1]=he=>u.value=-1)},[e.renderSlot(A.$slots,"item",{data:U,selected:z(U,d.value)},()=>[e.createTextVNode(e.toDisplayString(h(U)),1)]),z(U,d.value)?(e.openBlock(),e.createElementBlock("div",Ko,P[3]||(P[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,qo))),128)),A.searchable&&m.value.length===0?(e.openBlock(),e.createElementBlock("div",Jo,[e.renderSlot(A.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(A.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Qo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:r}){const n=t,o=r,a=e.computed(()=>n.color),l=ae(a),c=e.computed(()=>{const y=l.value[5].setAlpha(.5).toHex8String(),m=l.value[5].setAlpha(.1).toHex8String();return{"--border-color":y,"--fill-color":m}}),{shift:i,control:s}=ur(),u=Et(),f=e.computed(()=>n.target??u.value),d=Ie(),p=e.ref({x:0,y:0}),g=e.ref({x:0,y:0}),v=e.ref(!1),h=oe(f);N(f,"pointerdown",y=>{if(y.button!==0)return;const m=y.pageX-h.left.value,b=y.pageY-h.top.value;p.value={x:m,y:b},g.value={x:m,y:b},v.value=!0,o("selectStart",{target:y.target,shift:i.value,ctrl:s.value})},{capture:!0}),N(window,"pointerup",y=>{v.value=!1,o("selectEnd",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value})}),N(f,"pointermove",y=>{const m=y.pageX-h.left.value,b=y.pageY-h.top.value;v.value&&(g.value={x:m,y:b},o("selectChange",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value}))});const w=e.computed(()=>f.value?f.value.parentElement:null);return N(w,"scroll",y=>{v.value&&(g.value={x:d.x.value-h.left.value,y:d.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,g.value.x),top:Math.min(p.value.y,g.value.y),right:Math.max(p.value.x,g.value.x),bottom:Math.max(p.value.y,g.value.y)},{target:y.target,shift:i.value,ctrl:s.value}))}),N(window,"dragend",()=>{v.value=!1}),(y,m)=>f.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:f.value},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:e.normalizeStyle([{left:`${Math.min(p.value.x,g.value.x)}px`,top:`${Math.min(p.value.y,g.value.y)}px`,width:`${Math.abs(p.value.x-g.value.x)}px`,height:`${Math.abs(p.value.y-g.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),el={class:"relative w-full"},tl="dark:bg-white bg-[var(--i-bg)]",nl="dark:bg-[var(--i-bg)] bg-white",rl=e.defineComponent({__name:"Slider",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t;function n(B,k,E){const V=[];for(let C=B;C<=k;C+=E)V.push(C);return V[V.length-1]!==k&&V.push(k),V}function o(B,k){const E=[];if(B===0)return E;E.push(k[0]);const V=(k.length-1)/(B-1);for(let C=1;C<B-1;C++)E.push(k[Math.round(C*V)]);return E.push(k[k.length-1]),E}const a=e.computed(()=>r.options?r.options.length:r.tickNum??0),l=e.computed(()=>r.options===void 0?n(r.min,r.max,r.step):r.options),c=e.computed(()=>o(a.value,l.value)),i=e.useModel(t,"modelValue"),s=e.computed(()=>l.value.length??0),u=e.ref(l.value.includes(i.value)?l.value.indexOf(i.value):0);function f(B){let k=l.value.indexOf(B);if(k===-1)if(typeof B=="number"){let E=1/0;for(let V=0;V<l.value.length;V++){const C=Math.abs(l.value[V]-B);C<E&&(E=C,k=V)}}else k=0;return k}const d=e.computed(()=>r.color),p=ae(d.value),g=e.computed(()=>p.value[4]),v=Be(d);e.watchEffect(()=>{u.value<0||(i.value=l.value[u.value])}),e.watchEffect(()=>{u.value=f(i.value)});const h=e.ref(),w=e.ref(),y=e.ref(!1);function m(B){if(!y.value)return;if(!(B.buttons===1)){y.value=!1;return}B.preventDefault(),B.stopPropagation();const E=oe(h),{clientX:V}=B,C=E.left.value,T=E.right.value-C,$=Math.round((V-C)/T*(s.value-1));if($<0){u.value=0;return}if($>s.value-1){u.value=s.value-1;return}u.value=$}e.watchEffect(()=>{u.value=f(i.value)});function b(B){B.preventDefault(),B.stopPropagation(),y.value=!0,m(B)}N(h,"pointerdown",b),e.onMounted(()=>{N(document,"pointermove",m),u.value=Math.max(0,f(i.value))});const S=e.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),_=e.computed(()=>r.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(B,k)=>(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",S.value.wrapper]),onTouchmove:k[0]||(k[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",S.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",S.value.content]),style:e.normalizeStyle({width:`${r.width}rem`,minWidth:`${r.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E,style:e.normalizeStyle({left:`${f(E)/(s.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",S.value.tick])},null,6))),128)),u.value!==-1?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"indicator",ref:w,class:e.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[S.value.indicator,_.value.indicator,tl]]),style:e.normalizeStyle([`--i-bg: ${g.value}`,{left:`${u.value/(s.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[S.value.indicatorInner,nl]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(v).class,S.value.progress,_.value.progress]]),style:e.normalizeStyle([e.unref(v).style,{width:`${u.value/(s.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"relative mx-1 h-1em text-xs text-surface-dimmed",style:e.normalizeStyle({width:`${r.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(E,V)=>(e.openBlock(),e.createElementBlock("div",{key:V,style:e.normalizeStyle({left:`${f(E)/(s.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",S.value.tick])},e.toDisplayString(E),7))),128))],4)):e.createCommentVNode("",!0)]))}}),ol={class:"h-full py-2"},ll=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.inject(Xe,e.ref("")),a=e.ref(null),l=e.computed(()=>o.value===r.value);function c(){o.value=r.value}const i=e.inject(Ye,new Map);e.onMounted(()=>{i.set(r.value,a)});const s=e.inject(Ue,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(s.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),f=e.computed(()=>{switch(s.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),d=L({color:n.value,type:"bg",index:5}),p=L({color:n.value,type:"outline",index:5});return(g,v)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:a,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},e.unref(p),{onClick:c}),[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(d).class,f.value]),style:e.normalizeStyle([e.unref(d).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([f.value])},null,2)),e.createElementVNode("div",ol,[e.renderSlot(g.$slots,"default")])],16))}}),al=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useSlots(),o=e.computed(()=>{var d;const u=(d=n.default)==null?void 0:d.call(n);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g.value)!==void 0}).map(p=>p.props.value))??[]}),a=e.useModel(t,"modelValue");!a.value&&o.value.length>0&&(a.value=o.value[0]);const l=e.ref(null);e.onMounted(()=>{r.defaultValue&&(a.value=r.defaultValue)}),e.provide(Xe,a);const c=e.computed(()=>r.direction);e.provide(Ue,c);const i=new Map;e.provide(Ye,i),Y("ArrowLeft",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const f=a.value?o.value.indexOf(a.value):0,d=f>0?o.value[f-1]:o.value[o.value.length-1];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowRight",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const f=a.value?o.value.indexOf(a.value):0,d=f<o.value.length-1?a.value=o.value[f+1]:a.value=o.value[0];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowUp",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const f=a.value?o.value.indexOf(a.value):0,d=f>0?o.value[f-1]:o.value[o.value.length-1];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}}),Y("ArrowDown",u=>{var g;if(!((g=l.value)!=null&&g.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const f=a.value?o.value.indexOf(a.value):0,d=f<o.value.length-1?o.value[f+1]:o.value[0];a.value=d;const p=i.get(d);if(p){const v=p.value;v&&v.focus()}});const s=e.computed(()=>{switch(r.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:l,class:e.normalizeClass(["flex",[s.value]])},[e.renderSlot(u.$slots,"default")],2))}}),sl=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),o=O(r),a=e.computed(()=>r.color??"primary"),l=e.computed(()=>r.variant),c=Le(l,a);return(i,s)=>(e.openBlock(),e.createElementBlock("span",{tabindex:-1,style:e.normalizeStyle([e.unref(c).style,e.unref(o).style]),class:e.normalizeClass([[e.unref(c).class,e.unref(o).class,n.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[r.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([r.leftIcon,"shrink-0"])},null,2)):i.$slots.leftIcon?e.renderSlot(i.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default"),r.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([r.rightIcon,"h-container w-container shrink-0"])},null,2)):i.$slots.rightIcon?e.renderSlot(i.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),il=["data-scheme","data-theme"],cl=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const r=t,n=zt(),o=e.computed(()=>Qe(r.theme?r.theme:n.value)),a=_t("scheme","light"),l=e.computed(()=>r.scheme?r.scheme:a.value);return(c,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":l.value,"data-theme":e.unref(n).name},[e.renderSlot(c.$slots,"default")],12,il))}}),ul=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const r=t,n=Ie(),o=e.ref(null),a=le(o),l=Fn(a,r.timeout),c=e.ref(0),i=e.ref(0),s=e.ref(null),u=le(s);return e.watch(l,(f,d)=>{l.value&&f!==d&&(c.value=n.x.value,i.value=n.y.value)}),(f,d)=>{const p=ct;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(f.$slots,"default")],512),c.value&&i.value&&(e.unref(l)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:s,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${i.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}}),dl='before:absolute before:left-4 before:h-full before:border-r before:content-[""]',ut="relative h-8 py-1 w-full flex items-center gap-2 cursor-pointer focus-visible:outline-none focus-visible:bg-surface-variant-1",fl=e.defineComponent({__name:"TreeList",props:e.mergeModels({items:{},rounded:{default:"md"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=O(r),o=e.useModel(t,"modelValue");function a(h){return"children"in h}function l(h){return"value"in h}const c=e.computed(()=>`${ut} hover:bg-surface-variant-1 hover:text-surface text-surface-dimmed`),i=e.computed(()=>`${ut} text-primary before:border-primary bg-surface-variant-1`),s=e.computed(()=>[ut,"text-surface font-bold hover:bg-surface-variant-1"]),u=e.ref(null),f=e.ref(new Map);function d(h,w){a(h)&&(f.value.set(h,h.open??!1),h.children.forEach(y=>{d(y)}))}e.watchEffect(()=>{r.items.forEach(h=>{a(h)&&d(h)})});function p({data:h,level:w}){const y=m=>h.is?e.h(h.is,m,{default:()=>h.title}):e.h("a",m,h.title);return e.createVNode("li",null,[e.createVNode(y,e.mergeProps({tabindex:0,class:[n.value.class,dl,{[c.value]:o.value!==h.value,[i.value]:o.value===h.value}],style:[{paddingLeft:`${32+w*4}px`},n.value.style],onClick:()=>o.value=h.value,onKeyup:m=>{m.key==="Enter"&&(o.value=h.value)}},h.attrs),{default:()=>[h.title]})])}function g({data:h,level:w}){return e.createVNode("li",{class:["flex items-center relative py-2 text-surface-dimmed font-bold tracking-widest text-xs"],style:[{paddingLeft:`${32+w*4}px`},n.value.style]},[e.createVNode("div",{class:"absolute left-4 h-1/2 translate-y-1/2 border-r"},null),e.createVNode("div",{class:"absolute left-[calc(1rem+0.6px)] h-2 w-2 border rounded-sm bg-surface-variant-1 -translate-x-1/2"},null),h.title])}function v({data:h,level:w}){const y=e.computed(()=>f.value.get(h)),m=e.ref(null),b=e.ref(null);return e.createVNode("li",{class:"transition-height",ref:m},[e.createVNode("button",{ref:b,onClick:()=>f.value.set(h,!f.value.get(h)),class:[n.value.class,s.value],style:[{paddingLeft:`${32+w*4}px`},n.value.style]},[e.createVNode("i",{class:["i-tabler-chevron-down absolute left-2 h-4 w-4 py-1 transition-transform",y.value?"rotate-0":"-rotate-90"]},null),h.title]),e.createVNode(e.Transition,{onBeforeEnter:S=>{S instanceof HTMLElement&&(S.style.height="0px")},onEnter:S=>{S instanceof HTMLElement&&(S.style.height=`${S.scrollHeight}px`)},onAfterEnter:S=>{S instanceof HTMLElement&&(S.style.height="auto")},onBeforeLeave:S=>{S instanceof HTMLElement&&(S.style.height=`${S.scrollHeight}px`)},onLeave:S=>{S instanceof HTMLElement&&(S.style.height="0px")},css:!0,mode:"out-in"},{default:()=>[f.value.get(h)&&e.createVNode("ul",{class:"overflow-hidden transition-height"},[h.children.map(S=>l(S)?e.createVNode(p,{data:S,level:w+1},null):a(S)?e.createVNode(v,{data:S,level:w+1},null):e.createVNode(g,{data:S,level:w+1},null))])]})])}return(h,w)=>(e.openBlock(),e.createElementBlock("ul",{ref_key:"treeListRef",ref:u,class:"flex flex-col text-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.items,(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[l(y)?(e.openBlock(),e.createBlock(p,{key:0,data:y,level:0},null,8,["data"])):a(y)?(e.openBlock(),e.createBlock(v,{key:1,data:y,level:0},null,8,["data"])):e.createCommentVNode("",!0)],64))),128))],512))}});function Kt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function G(t){return typeof t=="function"?t():e.unref(t)}const ml=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pl=Object.prototype.toString,hl=t=>pl.call(t)==="[object Object]",pe=()=>{};function Jt(t,r){function n(...o){return new Promise((a,l)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(a).catch(l)})}return n}function gl(t,r={}){let n,o,a=pe;const l=c=>{clearTimeout(c),a(),a=pe};return c=>{const i=G(t),s=G(r.maxWait);return n&&l(n),i<=0||s!==void 0&&s<=0?(o&&(l(o),o=null),Promise.resolve(c())):new Promise((u,f)=>{a=r.rejectOnCancel?f:u,s&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,u(c())},s)),n=setTimeout(()=>{o&&l(o),o=null,u(c())},i)})}}function yl(...t){let r=0,n,o=!0,a=pe,l,c,i,s,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:i=!0,leading:s=!0,rejectOnCancel:u=!1}=t[0]:[c,i=!0,s=!0,u=!1]=t;const f=()=>{n&&(clearTimeout(n),n=void 0,a(),a=pe)};return d=>{const p=G(c),g=Date.now()-r,v=()=>l=d();return f(),p<=0?(r=Date.now(),v()):(g>p&&(s||!o)?(r=Date.now(),v()):i&&(l=new Promise((h,w)=>{a=u?w:h,n=setTimeout(()=>{r=Date.now(),o=!0,h(v()),f()},Math.max(0,p-g))})),!s&&!n&&(n=setTimeout(()=>o=!0,p)),o=!1,l)}}function bl(t){return e.getCurrentInstance()}function kl(t,r=200,n={}){return Jt(gl(r,n),t)}function wl(t,r=200,n=!1,o=!0,a=!1){return Jt(yl(r,n,o,a),t)}function Zt(t,r=!0,n){bl()?e.onMounted(t,n):r?t():e.nextTick(t)}function se(t){var r;const n=G(t);return(r=n==null?void 0:n.$el)!=null?r:n}const Fe=ml?window:void 0;function Qt(...t){let r,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,r=Fe):[r,n,o,a]=t,!r)return pe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],c=()=>{l.forEach(f=>f()),l.length=0},i=(f,d,p,g)=>(f.addEventListener(d,p,g),()=>f.removeEventListener(d,p,g)),s=e.watch(()=>[se(r),G(a)],([f,d])=>{if(c(),!f)return;const p=hl(d)?{...d}:d;l.push(...n.flatMap(g=>o.map(v=>i(f,g,v,p))))},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Kt(u),u}function Sl(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function vl(t){const r=Sl();return e.computed(()=>(r.value,!!t()))}function xl(t,r,n={}){const{window:o=Fe,...a}=n;let l;const c=vl(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},s=e.computed(()=>{const d=G(t);return Array.isArray(d)?d.map(p=>se(p)):[se(d)]}),u=e.watch(s,d=>{if(i(),c.value&&o){l=new ResizeObserver(r);for(const p of d)p&&l.observe(p,a)}},{immediate:!0,flush:"post"}),f=()=>{i(),u()};return Kt(f),{isSupported:c,stop:f}}function Cl(t,r={width:0,height:0},n={}){const{window:o=Fe,box:a="content-box"}=n,l=e.computed(()=>{var d,p;return(p=(d=se(t))==null?void 0:d.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(r.width),i=e.ref(r.height),{stop:s}=xl(t,([d])=>{const p=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&l.value){const g=se(t);if(g){const v=g.getBoundingClientRect();c.value=v.width,i.value=v.height}}else if(p){const g=Array.isArray(p)?p:[p];c.value=g.reduce((v,{inlineSize:h})=>v+h,0),i.value=g.reduce((v,{blockSize:h})=>v+h,0)}else c.value=d.contentRect.width,i.value=d.contentRect.height},n);Zt(()=>{const d=se(t);d&&(c.value="offsetWidth"in d?d.offsetWidth:r.width,i.value="offsetHeight"in d?d.offsetHeight:r.height)});const u=e.watch(()=>se(t),d=>{c.value=d?r.width:0,i.value=d?r.height:0});function f(){s(),u()}return{width:c,height:i,stop:f}}const en=1;function Bl(t,r={}){const{throttle:n=0,idle:o=200,onStop:a=pe,onScroll:l=pe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:s="auto",window:u=Fe,onError:f=k=>{console.error(k)}}=r,d=e.ref(0),p=e.ref(0),g=e.computed({get(){return d.value},set(k){h(k,void 0)}}),v=e.computed({get(){return p.value},set(k){h(void 0,k)}});function h(k,E){var V,C,z,T;if(!u)return;const $=G(t);if(!$)return;(z=$ instanceof Document?u.document.body:$)==null||z.scrollTo({top:(V=G(E))!=null?V:v.value,left:(C=G(k))!=null?C:g.value,behavior:G(s)});const H=((T=$==null?void 0:$.document)==null?void 0:T.documentElement)||($==null?void 0:$.documentElement)||$;g!=null&&(d.value=H.scrollLeft),v!=null&&(p.value=H.scrollTop)}const w=e.ref(!1),y=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),m=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=k=>{w.value&&(w.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,a(k))},S=kl(b,n+o),_=k=>{var E;if(!u)return;const V=((E=k==null?void 0:k.document)==null?void 0:E.documentElement)||(k==null?void 0:k.documentElement)||se(k),{display:C,flexDirection:z}=getComputedStyle(V),T=V.scrollLeft;m.left=T<d.value,m.right=T>d.value;const $=Math.abs(T)<=(c.left||0),H=Math.abs(T)+V.clientWidth>=V.scrollWidth-(c.right||0)-en;C==="flex"&&z==="row-reverse"?(y.left=H,y.right=$):(y.left=$,y.right=H),d.value=T;let I=V.scrollTop;k===u.document&&!I&&(I=u.document.body.scrollTop),m.top=I<p.value,m.bottom=I>p.value;const q=Math.abs(I)<=(c.top||0),A=Math.abs(I)+V.clientHeight>=V.scrollHeight-(c.bottom||0)-en;C==="flex"&&z==="column-reverse"?(y.top=A,y.bottom=q):(y.top=q,y.bottom=A),p.value=I},B=k=>{var E;if(!u)return;const V=(E=k.target.documentElement)!=null?E:k.target;_(V),w.value=!0,S(k),l(k)};return Qt(t,"scroll",n?wl(B,n,!0,!1):B,i),Zt(()=>{try{const k=G(t);if(!k)return;_(k)}catch(k){f(k)}}),Qt(t,"scrollend",b,i),{x:g,y:v,isScrolling:w,arrivedState:y,directions:m,measure(){const k=G(t);u&&k&&_(k)}}}const _l=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:r}){const n=t,o=e.useSlots(),a=e.computed(()=>e.unref(n.gap)??16),l=e.computed(()=>e.unref(n.rowCount)??3),c=e.computed(()=>e.unref(n.paddingX)??0),i=e.ref();function s(b){return Array.isArray(b)}const u=e.ref([]),f=e.computed(()=>{const b=u.value;return Array.from(b).map(S=>Cl(S))}),d=e.computed(()=>{var b,S;return n.itemWidth?e.unref(n.itemWidth)*l.value+a.value*(l.value-1)+c.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):((S=(b=i.value)==null?void 0:b.parentElement)==null?void 0:S.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(d.value-c.value*2-a.value*(l.value-1))/l.value);function g(b,S,_,B){const k=e.unref(b),E=Array.from({length:e.unref(S)}).fill(0),V=[],C=Math.max(0,d.value-e.unref(B)*2-p.value*k.length-e.unref(_)*k.length)/2;for(let z=0;z<k.length;z++){const T=k[z],$=E.indexOf(Math.min(...E)),H=$*(p.value+e.unref(_))+e.unref(B)+C,I=E[$];V.push({x:H,y:I,width:T.width.value,height:T.height.value}),E[$]+=T.height.value+e.unref(_)}return V}const v=e.computed(()=>g(f,l,a,c)),h=e.computed(()=>s(v.value)?Math.max(...v.value.map(b=>b.y+b.height)):0),w=e.computed(()=>{var b;return((b=o.default)==null?void 0:b.call(o))??[]}),y=e.computed(()=>{const b=[];return w.value.forEach(S=>{s(S.children)?S.children.forEach(_=>{b.push(_)}):b.push(S)}),b});function m(b){if(!s(v.value))return{};const S=v.value[b];return S?{left:`${S.x??0}px`,top:`${S.y??0}px`,maxWidth:`${p.value}px`}:{}}return r({width:p}),(b,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:i,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${d.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(_,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([m(B),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),El=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:r}){const n=t,o=e.computed(()=>e.unref(n.rangeExpand)??0),a=e.useSlots(),l=e.computed(()=>e.unref(n.gap)??16),c=e.computed(()=>e.unref(n.rowCount)??3),i=e.computed(()=>e.unref(n.paddingX)??0),s=e.ref(),u=e.computed(()=>s.value&&s.value.$el?s.value.$el:s.value);function f(C){return Array.isArray(C)}const d=e.computed(()=>{var C,z;return n.itemWidth?e.unref(n.itemWidth)*c.value+l.value*(c.value-1)+i.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):((z=(C=u.value)==null?void 0:C.parentElement)==null?void 0:z.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(d.value-i.value*2-l.value*(c.value-1))/c.value),g=e.computed(()=>e.unref(n.items).map(C=>{const z=p.value/C.width;return{width:p.value,height:C.height*z}}));function v(C,z,T,$){const H=e.unref(C),I=Array.from({length:e.unref(z)}).fill(0),q=[],A=Math.max(0,d.value-e.unref($)*2-p.value*H.length-e.unref(T)*H.length)/2;for(let P=0;P<H.length;P++){const U=H[P],ee=I.indexOf(Math.min(...I)),he=ee*(p.value+e.unref(T))+e.unref($)+A,Ml=I[ee];q.push({x:he,y:Ml,width:U.width,height:U.height}),I[ee]+=U.height+e.unref(T)}return q}const h=e.computed(()=>v(g,c,l,i)),w=e.computed(()=>f(h.value)?Math.max(...h.value.map(C=>C.y+C.height)):0),y=e.computed(()=>{var C;return((C=a.default)==null?void 0:C.call(a))??[]});function m(C){if(!f(h.value))return{};const z=h.value[C];return z?{left:`${z.x??0}px`,top:`${z.y??0}px`,maxWidth:`${p.value}px`}:{}}const b=e.ref(!1),S=e.computed(()=>b.value?"smooth":"auto"),_=Bl(u,{behavior:S}),B=e.computed(()=>{var C;return[_.y.value-o.value,_.y.value+(((C=u.value)==null?void 0:C.clientHeight)??0)+o.value]}),k=e.computed(()=>h.value.map(C=>{const z=C.y,T=C.y+C.height;return z>=B.value[0]&&z<=B.value[1]||T>=B.value[0]&&T<=B.value[1]||z<=B.value[0]&&T>=B.value[1]})),E=e.computed(()=>{const C=[];return y.value.forEach((z,T)=>{if(f(z.children))z.children.forEach(($,H)=>{k.value[H]&&C.push([$,H])});else{if(!k.value[T])return;C.push([z,T])}}),C});r({scroll:_,scrollTo:(C,z=!1)=>{const T=b.value;b.value=z,_.y.value=C,b.value=T}});const V=e.computed(()=>n.is??"div");return(C,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V.value),{ref_key:"wrapper",ref:s,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${w.value}px`,width:`${d.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,([T,$])=>(e.openBlock(),e.createElementBlock("div",{key:T,style:e.normalizeStyle([m($),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});x.AspectRatio=tn,x.Avatar=Ot,x.Btn=Oe,x.BtnGroup=Lr,x.COLOR_LIGHTNESS_MAP=X,x.ChatContainer=Xr,x.ChatMessage=Ur,x.ChatSystem=Gr,x.Chip=qr,x.ColorInput=Qr,x.ColorSwatch=Ft,x.Drawer=oo,x.Dropzone=lo,x.FullscreenOverlay=it,x.Image=ao,x.Indicator=io,x.Menu=uo,x.MenuItem=jt,x.Modal=po,x.Notification=Ut,x.NotificationSystem=So,x.Notifications=Mn,x.Overlay=Yt,x.Paper=ct,x.PinInput=Eo,x.Popover=Mo,x.Progress=Xt,x.Rating=Io,x.RokuProvider=Ro,x.SURFACE_LIGHTNESS_MAP=ie,x.SchemeSwitch=jo,x.ScrollArea=Xo,x.Select=Zo,x.SelectArea=Qo,x.Slider=rl,x.Switch=qt,x.TabItem=ll,x.Tabs=al,x.Tag=sl,x.TextField=Gt,x.ThemeProvider=cl,x.Tooltip=ul,x.TreeList=fl,x.VirtualWaterfall=El,x.Waterfall=_l,x.borderCS=It,x.childrenElementMapSymbol=Ye,x.defaultTheme=rt,x.directionSymbol=Ue,x.errorColor=me,x.errorColors=Mr,x.generateColors=ye,x.generateColorsMap=kt,x.generateColorsObjMap=Z,x.getCSInner=ze,x.primaryColor=ue,x.primaryColors=Br,x.schemeSymbol=At,x.secondaryColor=de,x.secondaryColors=_r,x.surfaceColor=te,x.surfaceColors=$r,x.tabCurrentSymbol=Xe,x.tabValueListSymbol=$n,x.tertiaryColor=fe,x.tertiaryColors=Er,x.useButtonCS=Le,x.useCS=L,x.useClientHeight=$t,x.useColorCS=Ve,x.useColors=ae,x.useContainerCS=xe,x.useContainerDefaultCS=Pe,x.useContainerDefaultVariantCS=lt,x.useContainerFilledCS=Be,x.useContainerLightCS=Lt,x.useCurrentThemeData=zt,x.useCurrentThemeName=pr,x.useCurrentThemeScheme=mr,x.useId=Re,x.useIndicatorFilledCS=Pt,x.useInputColorStyle=st,x.useMergedCS=Ce,x.useNotifications=je,x.useOutlineColor=at,x.useRootTheme=fr,x.useRounded=O,x.useSchemeString=Tt,x.useScrollHeight=Mt,x.useSurfaceCS=_e,x.useSurfaceColors=Dt,x.useTextCS=Rt,x.useThemeData=Vt,x.useThemeStyles=Qe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});