chesai-ui 0.13.0 → 0.13.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,4 +1,4 @@
1
- import { A as o, dg as r, a as n, f as i, c as d, e as u, b as l, d as c, h as b, E as p, i as S, j as m, B as C, F as T, cz as I, l as D, m as g, n as h, v as P, q as B, r as F, p as A, s as M, o as w, t as R, x as G, y as v, dy as x, ag as y, C as L, bC as V, bD as k, G as E, bA as N, dh as H, H as f, bQ as O, I as z, J as Q, M as K, N as _, O as j, S as W, Y as q, T as J, Q as U, U as X, R as Y, V as Z, X as $, Z as aa, cD as sa, _ as ea, a5 as ta, $ as oa, a4 as ra, a2 as na, a0 as ia, a1 as da, ae as ua, ab as la, a9 as ca, aa as ba, ah as pa, D as Sa, aj as ma, ak as Ca, al as Ta, am as Ia, an as Da, ao as ga, ap as ha, dj as Pa, aq as Ba, ar as Fa, bl as Aa, as as Ma, at as wa, au as Ra, av as Ga, aw as va, ax as xa, ay as ya, az as La, aA as Va, aB as ka, aC as Ea, aD as Na, aE as Ha, aF as fa, aG as Oa, aH as za, aI as Qa, aJ as Ka, aK as _a, aL as ja, aN as Wa, aQ as qa, aS as Ja, aT as Ua, aP as Xa, aR as Ya, bq as Za, bp as $a, aV as as, cY as ss, aZ as es, aY as ts, bs as os, br as rs, a$ as ns, b0 as is, ai as ds, b1 as us, b2 as ls, b4 as cs, b5 as bs, b8 as ps, b6 as Ss, b7 as ms, bM as Cs, bN as Ts, bO as Is, bP as Ds, b9 as gs, ba as hs, bb as Ps, bc as Bs, bd as Fs, be as As, bf as Ms, bg as ws, bh as Rs, bi as Gs, bj as vs, k as xs, K as ys, bk as Ls, bo as Vs, dl as ks, bn as Es, bx as Ns, L as Hs, bR as fs, by as Os, bz as zs, bA as Qs, bt as Ks, bE as _s, bF as js, bG as Ws, bI as qs, bK as Js, bL as Us, dw as Xs, P as Ys, aW as Zs, aX as $s, bS as ae, bW as se, bT as ee, bU as te, bV as oe, bX as re, bY as ne, bZ as ie, b_ as de, ce as ue, dd as le, b$ as ce, c1 as be, c5 as pe, c2 as Se, c3 as me, c4 as Ce, c6 as Te, cb as Ie, ca as De, c9 as ge, cc as he, cd as Pe, cj as Be, ck as Fe, cg as Ae, cf as Me, ci as we, ch as Re, cl as Ge, co as ve, cn as xe, cq as ye, cs as Le, ct as Ve, cr as ke, cp as Ee, cm as Ne, cw as He, cv as fe, cx as Oe, cy as ze, cA as Qe, cH as Ke, cI as _e, cT as je, cQ as We, cP as qe, cS as Je, cR as Ue, cV as Xe, cW as Ye, cX as Ze, dm as $e, af as at, cZ as st, c$ as et, d0 as tt, d4 as ot, d2 as rt, d3 as nt, d7 as it, d5 as dt, d6 as ut, bu as lt, bv as ct, da as bt, bw as pt, db as St, a3 as mt, dz as Ct, w as Tt, z as It, dB as Dt, dA as gt, cF as ht, a7 as Pt, a6 as Bt, dc as Ft, a8 as At, a_ as Mt, b3 as wt, dx as Rt, bH as Gt, a3 as vt, cK as xt, cL as yt, cO as Lt, cM as Vt, c_ as kt, cN as Et, df as Nt, ds as Ht, u as ft, dq as Ot, dt as zt, ac as Qt, di as Kt, cE as _t, aM as jt, aO as Wt, aU as qt, du as Jt, d9 as Ut, dk as Xt, bm as Yt, bB as Zt, cB as $t, bJ as ao, cC as so, c7 as eo, c8 as to, c0 as oo, cu as ro, de as no, cJ as io, cU as uo, cG as lo, dn as co, dp as bo, ad as po, dr as So, d1 as mo, d8 as Co, dv as To } from "./index-Dw5G0OQW.mjs";
1
+ import { A as o, dg as r, a as n, f as i, c as d, e as u, b as l, d as c, h as b, E as p, i as S, j as m, B as C, F as T, cz as I, l as D, m as g, n as h, v as P, q as B, r as F, p as A, s as M, o as w, t as R, x as G, y as v, dy as x, ag as y, C as L, bC as V, bD as k, G as E, bA as N, dh as H, H as f, bQ as O, I as z, J as Q, M as K, N as _, O as j, S as W, Y as q, T as J, Q as U, U as X, R as Y, V as Z, X as $, Z as aa, cD as sa, _ as ea, a5 as ta, $ as oa, a4 as ra, a2 as na, a0 as ia, a1 as da, ae as ua, ab as la, a9 as ca, aa as ba, ah as pa, D as Sa, aj as ma, ak as Ca, al as Ta, am as Ia, an as Da, ao as ga, ap as ha, dj as Pa, aq as Ba, ar as Fa, bl as Aa, as as Ma, at as wa, au as Ra, av as Ga, aw as va, ax as xa, ay as ya, az as La, aA as Va, aB as ka, aC as Ea, aD as Na, aE as Ha, aF as fa, aG as Oa, aH as za, aI as Qa, aJ as Ka, aK as _a, aL as ja, aN as Wa, aQ as qa, aS as Ja, aT as Ua, aP as Xa, aR as Ya, bq as Za, bp as $a, aV as as, cY as ss, aZ as es, aY as ts, bs as os, br as rs, a$ as ns, b0 as is, ai as ds, b1 as us, b2 as ls, b4 as cs, b5 as bs, b8 as ps, b6 as Ss, b7 as ms, bM as Cs, bN as Ts, bO as Is, bP as Ds, b9 as gs, ba as hs, bb as Ps, bc as Bs, bd as Fs, be as As, bf as Ms, bg as ws, bh as Rs, bi as Gs, bj as vs, k as xs, K as ys, bk as Ls, bo as Vs, dl as ks, bn as Es, bx as Ns, L as Hs, bR as fs, by as Os, bz as zs, bA as Qs, bt as Ks, bE as _s, bF as js, bG as Ws, bI as qs, bK as Js, bL as Us, dw as Xs, P as Ys, aW as Zs, aX as $s, bS as ae, bW as se, bT as ee, bU as te, bV as oe, bX as re, bY as ne, bZ as ie, b_ as de, ce as ue, dd as le, b$ as ce, c1 as be, c5 as pe, c2 as Se, c3 as me, c4 as Ce, c6 as Te, cb as Ie, ca as De, c9 as ge, cc as he, cd as Pe, cj as Be, ck as Fe, cg as Ae, cf as Me, ci as we, ch as Re, cl as Ge, co as ve, cn as xe, cq as ye, cs as Le, ct as Ve, cr as ke, cp as Ee, cm as Ne, cw as He, cv as fe, cx as Oe, cy as ze, cA as Qe, cH as Ke, cI as _e, cT as je, cQ as We, cP as qe, cS as Je, cR as Ue, cV as Xe, cW as Ye, cX as Ze, dm as $e, af as at, cZ as st, c$ as et, d0 as tt, d4 as ot, d2 as rt, d3 as nt, d7 as it, d5 as dt, d6 as ut, bu as lt, bv as ct, da as bt, bw as pt, db as St, a3 as mt, dz as Ct, w as Tt, z as It, dB as Dt, dA as gt, cF as ht, a7 as Pt, a6 as Bt, dc as Ft, a8 as At, a_ as Mt, b3 as wt, dx as Rt, bH as Gt, a3 as vt, cK as xt, cL as yt, cO as Lt, cM as Vt, c_ as kt, cN as Et, df as Nt, ds as Ht, u as ft, dq as Ot, dt as zt, ac as Qt, di as Kt, cE as _t, aM as jt, aO as Wt, aU as qt, du as Jt, d9 as Ut, dk as Xt, bm as Yt, bB as Zt, cB as $t, bJ as ao, cC as so, c7 as eo, c8 as to, c0 as oo, cu as ro, de as no, cJ as io, cU as uo, cG as lo, dn as co, dp as bo, ad as po, dr as So, d1 as mo, d8 as Co, dv as To } from "./index-3i0I0qop.mjs";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -298,7 +298,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
298
298
  --nojs-bg: black !important;
299
299
  --nojs-fg: white !important;
300
300
  }
301
- }`;const UGt=mn("relative flex items-center justify-center transition-all duration-200 ease-in-out text-sm font-semibold select-none group",{variants:{variant:{filled:"bg-surface-container-highest/60 text-on-surface border-b-2 border-transparent","filled-inverted":"bg-surface-container-low text-on-surface border-b-2 border-transparent",outlined:"bg-transparent border border-outline-variant text-on-surface first:border-l first:border-l-outline-variant","outlined-inverted":"bg-transparent border border-primary/50 text-on-surface",faded:"bg-surface-container/30 border-y border-r border-surface-container-highest/50 text-on-surface first:border-l first:border-l-surface-container-highest/50",underlined:"bg-transparent border-b-2 border-outline-variant text-on-surface rounded-none! px-1","underlined-inverted":"bg-surface-container-highest/30 border-b-2 border-primary/50 text-on-surface rounded-t-lg rounded-b-none",ghost:"bg-transparent border border-transparent text-on-surface hover:bg-surface-container-highest/30","ghost-inverted":"bg-transparent border border-transparent text-primary hover:bg-primary/10"},size:{sm:"h-10 w-8 text-xs",md:"h-12 w-10 text-sm",lg:"h-14 w-12 text-base"},shape:{full:"first:rounded-l-full last:rounded-r-full",minimal:"first:rounded-l-2xl last:rounded-r-2xl",sharp:"rounded-none"},isInvalid:{true:"",false:""},isActive:{true:"z-10",false:""}},compoundVariants:[{variant:"filled",isActive:!0,className:"bg-surface-container-highest border-primary"},{variant:"filled-inverted",isActive:!0,className:"bg-surface-container border-primary"},{variant:"outlined",isActive:!0,className:"border-primary ring-1 ring-primary z-10"},{variant:"outlined-inverted",isActive:!0,className:"border-primary ring-2 ring-primary/20"},{variant:["underlined","underlined-inverted"],isActive:!0,className:"border-primary"},{variant:"ghost",isActive:!0,className:"bg-surface-container-highest/50"},{variant:"ghost-inverted",isActive:!0,className:"bg-primary/10"},{variant:["filled","filled-inverted"],isInvalid:!0,className:"bg-error-container/20 text-error ring-inset ring-2 ring-error border-transparent"},{variant:["outlined","outlined-inverted","underlined","underlined-inverted","ghost","ghost-inverted","faded"],isInvalid:!0,className:"border-error text-error z-10"}],defaultVariants:{variant:"filled",size:"md",shape:"minimal"}}),FY=$.createContext({variant:"filled",size:"md",shape:"minimal",isInvalid:!1}),LLe=$.forwardRef(({className:t,containerClassName:e,variant:n="filled",size:r="md",shape:i="minimal",isInvalid:o=!1,...a},s)=>v.jsx(FY.Provider,{value:{variant:n,size:r,shape:i,isInvalid:o},children:v.jsx(NLe,{ref:s,containerClassName:he("flex items-center gap-2 has-[:disabled]:opacity-50",e),className:he("disabled:cursor-not-allowed",t),...a})}));LLe.displayName="InputOTP";const OLe=$.forwardRef(({className:t,...e},n)=>{const{variant:r}=$.useContext(FY),i=r?.includes("underlined")||r?.includes("ghost");return v.jsx("div",{ref:n,className:he("flex items-center",i?"gap-2":"gap-0",t),...e})});OLe.displayName="InputOTPGroup";const $Le=$.forwardRef(({index:t,className:e,...n},r)=>{const i=$.useContext(DLe),{variant:o,size:a,shape:s,isInvalid:l}=$.useContext(FY),{char:c,hasFakeCaret:u,isActive:d}=i.slots[t];return v.jsxs("div",{ref:r,className:he(UGt({variant:o,size:a,shape:s,isInvalid:l,isActive:d}),e),...n,children:[c,u&&v.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:v.jsx("div",{className:"h-4 w-px animate-caret-blink bg-current duration-1000"})})]})});$Le.displayName="InputOTPSlot";const FLe=$.forwardRef(({...t},e)=>v.jsx("div",{ref:e,role:"separator",...t,children:v.jsx(FUe,{className:"text-on-surface-variant"})}));FLe.displayName="InputOTPSeparator";const HGt=mn("relative inline-flex items-center justify-center",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24"}},defaultVariants:{size:"md"}}),BLe=(t,e,n,r,i)=>{const o=[];for(let s=0;s<=180;s++){const l=s/180*2*Math.PI,c=n+r*Math.sin(i*l),u=t+c*Math.cos(l),d=e+c*Math.sin(l);o.push(`${s===0?"M":"L"} ${u.toFixed(3)} ${d.toFixed(3)}`)}return o.join(" ")},RLe=A.forwardRef(({size:t,value:e=0,max:n=100,indeterminate:r,thickness:i=4,gap:o=7,variant:a="standard",amplitude:s=1.5,frequency:l=10,className:c,children:u,...d},p)=>{const g=Math.min(100,Math.max(0,e/n*100)),b=44,w=b/2,_=a==="wavy"?b/2-s-i/2-.5:(b-i)/2,E=2*Math.PI*_,P=a0(g,{stiffness:80,damping:20});A.useEffect(()=>{P.set(g)},[g,P]);const T=ur(P,G=>{let W=s;if(G>80){const Q=(100-G)/20;W=s*Math.max(0,Q)}return BLe(w,w,_,W,l)}),I=ur(P,G=>`${G} 100`),L=g>0&&g<100,B=L?o:0,F=ur(P,G=>{if(r)return`${E} ${E}`;const W=G/100*E;return`${L?Math.max(0,E-W-2*B):E} ${E}`}),z=ur(P,G=>r?0:-(G/100*E+B)),j={animate:{rotate:360,transition:{duration:1.4,ease:"linear",repeat:1/0}}};return v.jsxs("div",{ref:p,className:he(HGt({size:t}),"relative",c),role:"progressbar","aria-valuenow":r?void 0:e,"aria-valuemax":n,...d,children:[v.jsxs(gt.svg,{viewBox:`0 0 ${b} ${b}`,className:he("w-full h-full",!r&&"-rotate-90"),variants:r?j:void 0,animate:r?"animate":void 0,children:[v.jsx(gt.circle,{className:"text-secondary-container",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",cx:w,cy:w,r:_,initial:!1,animate:{strokeDasharray:r?`${E} ${E}`:void 0,strokeDashoffset:r?0:void 0},style:{strokeDasharray:r?void 0:F,strokeDashoffset:r?void 0:z},transition:{type:"spring",stiffness:60,damping:20}}),a==="wavy"?r?v.jsx(gt.path,{d:BLe(w,w,_,s,l),className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",pathLength:100,animate:{strokeDasharray:"25 100",strokeDashoffset:[0,-100]},transition:{strokeDashoffset:{repeat:1/0,duration:2,ease:"linear"}}}):v.jsx(gt.path,{className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",pathLength:100,style:{d:T,strokeDasharray:I}}):v.jsx(gt.circle,{className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",cx:w,cy:w,r:_,initial:{strokeDasharray:`0 ${E}`},animate:{strokeDasharray:r?`${E*.25} ${E}`:`${g/100*E} ${E}`,strokeDashoffset:0},transition:{type:"spring",stiffness:60,damping:20}})]}),u&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",children:u})]})});RLe.displayName="CircularProgress";const zLe=(t,e,n,r)=>{const i=[],a=e/2;for(let s=0;s<=100;s++){const l=s/100*t,c=a+n*Math.sin(l/t*r*2*Math.PI);i.push(`${s===0?"M":"L"} ${l.toFixed(3)} ${c.toFixed(3)}`)}return i.join(" ")},VLe=A.forwardRef(({value:t=0,max:e=100,indeterminate:n,gap:r=7,variant:i="standard",amplitude:o=1.8,frequency:a=6.5,className:s,...l},c)=>{const u=Math.min(100,Math.max(0,t/e*100)),d=a0(u,{stiffness:80,damping:20});A.useEffect(()=>{d.set(u)},[u,d]);const p=ur(d,P=>{let T=o;if(P>80){const I=(100-P)/20;T=o*Math.max(0,I)}return zLe(100,12,T,a)}),g=ur(d,P=>`${P} 100`),w=u>0&&u<100?r*.8:0,_=ur(d,P=>{if(n)return"100 100";const T=P+w;return`${Math.max(0,100-T)} 100`}),E=ur(d,P=>n?0:-(P+w));return i==="wavy"?v.jsx("div",{ref:c,className:he("relative h-4 w-full flex items-center text-primary",s),role:"progressbar","aria-valuenow":n?void 0:t,"aria-valuemax":e,...l,children:v.jsxs("svg",{viewBox:"0 0 100 12",className:"w-full h-full overflow-visible",preserveAspectRatio:"none",children:[v.jsx("title",{children:"Linear progress bar"}),v.jsx(gt.path,{d:"M 0 6 L 100 6",className:"text-secondary-container",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",fill:"none",pathLength:100,initial:!1,style:{strokeDasharray:_,strokeDashoffset:E},transition:{type:"spring",stiffness:80,damping:20}}),n?v.jsx(gt.path,{d:zLe(100,12,o,a),className:"text-primary",stroke:"currentColor",strokeWidth:3.5,strokeLinecap:"round",fill:"none",pathLength:100,animate:{strokeDasharray:"40 100",strokeDashoffset:[0,-100]},transition:{strokeDashoffset:{repeat:1/0,duration:1.5,ease:"linear"}}}):v.jsx(gt.path,{className:"text-primary",stroke:"currentColor",strokeWidth:3.5,strokeLinecap:"round",fill:"none",pathLength:100,style:{d:p,strokeDasharray:g}})]})}):n?v.jsxs("div",{ref:c,className:he("relative h-1.5 w-full flex items-center bg-secondary-container rounded-full overflow-hidden",s),role:"progressbar",...l,children:[v.jsx("div",{className:"absolute top-0 bottom-0 left-0 w-full bg-primary origin-left animate-progress-indeterminate-1 rounded-full"}),v.jsx("div",{className:"absolute top-0 bottom-0 left-0 w-full bg-primary origin-left animate-progress-indeterminate-2 rounded-full"})]}):v.jsxs("div",{ref:c,className:he("relative h-1.5 w-full flex items-center",s),role:"progressbar","aria-valuenow":t,"aria-valuemax":e,...l,children:[v.jsx(gt.div,{className:"h-full bg-primary rounded-full",initial:{width:0},animate:{width:`${u}%`},transition:{type:"spring",stiffness:80,damping:20},style:{marginRight:u<100&&u>0?r:0}}),v.jsx("div",{className:"h-full flex-1 bg-secondary-container rounded-full min-w-0 transition-all duration-300"})]})});VLe.displayName="LinearProgress";const jLe=100,ULe=160,GGt=({pullProgress:t,isRefreshing:e})=>{const n=ur(t,[0,jLe],[0,180]);return e?v.jsx(dte,{className:"h-6 w-6 animate-spin text-primary"}):v.jsx(gt.div,{style:{rotate:n},children:v.jsx(UO,{className:"h-6 w-6 text-primary"})})},WGt=({children:t,onRefresh:e,IndicatorComponent:n=GGt,pullThreshold:r=jLe,className:i})=>{const[o,a]=A.useState(!1),s=A.useRef(null),l=A.useRef(!1),c=A.useRef(0),u=zr(0),d=ur(u,L=>L>0?L:0),p=ur(d,L=>L*.4),g=ur(d,[0,r*.75],[0,1]),b=ur(d,[r*.5,r],[.5,1]),w=L=>{if(o)return;const B=s.current;B&&B.scrollTop===0&&L.touches.length===1&&(c.current=L.touches[0].clientY,l.current=!0)},_=L=>{if(!l.current||o)return;const B=L.touches[0];if(!B)return;const z=B.clientY-c.current;if(z>0){L.preventDefault();const j=Math.min(z*.6,r*1.2);u.set(j)}else l.current=!1,u.set(0)},E=async()=>{if(!l.current||o)return;if(l.current=!1,u.get()>=r){a(!0),jr(u,ULe,{type:"spring",stiffness:300,damping:30});try{await e()}finally{a(!1),jr(u,0,{type:"spring",stiffness:300,damping:30})}}else jr(u,0,{type:"spring",stiffness:300,damping:30})},P=L=>{if(o)return;const B=s.current;B&&B.scrollTop===0&&(c.current=L.clientY,l.current=!0)},T=L=>{if(!l.current||o)return;const F=L.clientY-c.current;if(F>0){L.preventDefault();const z=Math.min(F*.6,r*1.2);u.set(z)}else l.current=!1,u.set(0)},I=async()=>{if(!l.current||o)return;if(l.current=!1,u.get()>=r){a(!0),jr(u,ULe,{type:"spring",stiffness:300,damping:30});try{await e()}finally{a(!1),jr(u,0,{type:"spring",stiffness:300,damping:30})}}else jr(u,0,{type:"spring",stiffness:300,damping:30})};return A.useEffect(()=>{const L=s.current;if(!L)return;L.addEventListener("touchstart",w,{passive:!1}),L.addEventListener("touchmove",_,{passive:!1}),L.addEventListener("touchend",E,{passive:!0}),L.addEventListener("mousedown",P);const B=z=>T(z),F=()=>I();return document.addEventListener("mousemove",B),document.addEventListener("mouseup",F),()=>{L.removeEventListener("touchstart",w),L.removeEventListener("touchmove",_),L.removeEventListener("touchend",E),L.removeEventListener("mousedown",P),document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",F)}},[o]),v.jsxs("div",{className:he("relative w-full h-full overflow-hidden bg-surface",i),children:[v.jsx(gt.div,{className:"absolute inset-x-0 top-[-50px] z-10 flex justify-center pt-4",style:{opacity:g,scale:b,y:p},children:v.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-surface-container-high shadow-md",children:v.jsx(n,{pullProgress:d,isRefreshing:o})})}),v.jsx(gt.div,{ref:s,style:{y:p},className:"absolute inset-0 z-0 h-full overflow-y-auto",children:t})]})};var kx={},BY,HLe;function KGt(){return HLe||(HLe=1,BY=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),BY}var RY={},im={},GLe;function Vy(){if(GLe)return im;GLe=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return im.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},im.getSymbolTotalCodewords=function(r){return e[r]},im.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},im.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},im.isKanjiModeEnabled=function(){return typeof t<"u"},im.toSJIS=function(r){return t(r)},im}var zY={},WLe;function VY(){return WLe||(WLe=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(zY)),zY}var jY,KLe;function qGt(){if(KLe)return jY;KLe=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},jY=t,jY}var UY,qLe;function YGt(){if(qLe)return UY;qLe=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},UY=t,UY}var HY={},YLe;function ZGt(){return YLe||(YLe=1,(function(t){const e=Vy().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),a=o===145?26:Math.ceil((o-13)/(2*i-2))*2,s=[o-7];for(let l=1;l<i-1;l++)s[l]=s[l-1]-a;return s.push(6),s.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),a=o.length;for(let s=0;s<a;s++)for(let l=0;l<a;l++)s===0&&l===0||s===0&&l===a-1||s===a-1&&l===0||i.push([o[s],o[l]]);return i}})(HY)),HY}var GY={},ZLe;function XGt(){if(ZLe)return GY;ZLe=1;const t=Vy().getSymbolSize,e=7;return GY.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},GY}var WY={},XLe;function QGt(){return XLe||(XLe=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let a=0,s=0,l=0,c=null,u=null;for(let d=0;d<o;d++){s=l=0,c=u=null;for(let p=0;p<o;p++){let g=i.get(d,p);g===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=g,s=1),g=i.get(p,d),g===u?l++:(l>=5&&(a+=e.N1+(l-5)),u=g,l=1)}s>=5&&(a+=e.N1+(s-5)),l>=5&&(a+=e.N1+(l-5))}return a},t.getPenaltyN2=function(i){const o=i.size;let a=0;for(let s=0;s<o-1;s++)for(let l=0;l<o-1;l++){const c=i.get(s,l)+i.get(s,l+1)+i.get(s+1,l)+i.get(s+1,l+1);(c===4||c===0)&&a++}return a*e.N2},t.getPenaltyN3=function(i){const o=i.size;let a=0,s=0,l=0;for(let c=0;c<o;c++){s=l=0;for(let u=0;u<o;u++)s=s<<1&2047|i.get(c,u),u>=10&&(s===1488||s===93)&&a++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&a++}return a*e.N3},t.getPenaltyN4=function(i){let o=0;const a=i.data.length;for(let l=0;l<a;l++)o+=i.data[l];return Math.abs(Math.ceil(o*100/a/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const a=o.size;for(let s=0;s<a;s++)for(let l=0;l<a;l++)o.isReserved(l,s)||o.xor(l,s,n(i,l,s))},t.getBestMask=function(i,o){const a=Object.keys(t.Patterns).length;let s=0,l=1/0;for(let c=0;c<a;c++){o(c),t.applyMask(c,i);const u=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(c,i),u<l&&(l=u,s=c)}return s}})(WY)),WY}var h6={},QLe;function JLe(){if(QLe)return h6;QLe=1;const t=VY(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return h6.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},h6.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},h6}var KY={},gC={},eOe;function JGt(){if(eOe)return gC;eOe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),gC.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},gC.exp=function(r){return t[r]},gC.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},gC}var tOe;function eWt(){return tOe||(tOe=1,(function(t){const e=JGt();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let a=0;a<r.length;a++)for(let s=0;s<i.length;s++)o[a+s]^=e.mul(r[a],i[s]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const a=o[0];for(let l=0;l<i.length;l++)o[l]^=e.mul(i[l],a);let s=0;for(;s<o.length&&o[s]===0;)s++;o=o.slice(s)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(KY)),KY}var qY,nOe;function tWt(){if(nOe)return qY;nOe=1;const t=eWt();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),a=this.degree-o.length;if(a>0){const s=new Uint8Array(this.degree);return s.set(o,a),s}return o},qY=e,qY}var YY={},ZY={},XY={},rOe;function iOe(){return rOe||(rOe=1,XY.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),XY}var nf={},oOe;function sOe(){if(oOe)return nf;oOe=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
301
+ }`;const UGt=mn("relative flex items-center justify-center transition-all duration-200 ease-out text-sm font-semibold select-none group border-box outline-none",{variants:{variant:{filled:"bg-surface-container-highest/60 text-on-surface border-b-2 border-transparent hover:bg-surface-container-highest","filled-inverted":"bg-surface-container-low text-on-surface border-b-2 border-transparent hover:bg-surface-container",outlined:"bg-transparent border-2 border-outline-variant text-on-surface hover:border-on-surface-variant","outlined-inverted":"bg-transparent border-2 border-primary/50 text-on-surface hover:border-primary",underlined:"bg-transparent border-b-2 border-outline-variant text-on-surface rounded-none! px-1","underlined-inverted":"bg-surface-container-highest/30 border-b-2 border-primary/50 text-on-surface rounded-t-lg rounded-b-none hover:bg-surface-container-highest/50",ghost:"bg-transparent border-2 border-transparent text-on-surface hover:bg-surface-container-highest/30","ghost-inverted":"bg-transparent border-2 border-transparent text-primary hover:bg-primary/10"},size:{sm:"h-12 w-10 text-sm",md:"h-14 w-12 text-base",lg:"h-16 w-14 text-lg"},shape:{full:"",minimal:"",sharp:"rounded-none!"},isInvalid:{true:"",false:""},isActive:{true:"z-10",false:""}},compoundVariants:[{variant:"filled",isActive:!0,className:"bg-surface-container-highest border-primary"},{variant:"filled-inverted",isActive:!0,className:"bg-surface-container border-primary"},{variant:"outlined",isActive:!0,className:"border-primary ring-1 ring-primary"},{variant:"outlined-inverted",isActive:!0,className:"border-primary ring-2 ring-primary/20"},{variant:["underlined","underlined-inverted"],isActive:!0,className:"border-primary"},{variant:"ghost",isActive:!0,className:"bg-surface-container-highest/50"},{variant:"ghost-inverted",isActive:!0,className:"bg-primary/10"},{variant:["filled","filled-inverted"],isInvalid:!0,className:"bg-error-container/20 text-error ring-inset ring-2 ring-error border-transparent"},{variant:["outlined","outlined-inverted","underlined","underlined-inverted","ghost","ghost-inverted"],isInvalid:!0,className:"!border-error text-error"},{shape:"full",variant:["filled","filled-inverted","outlined","outlined-inverted"],className:"first:rounded-l-full last:rounded-r-full"},{shape:"minimal",variant:["filled","filled-inverted","outlined","outlined-inverted"],className:"first:rounded-l-2xl last:rounded-r-2xl"},{shape:"full",variant:["ghost","ghost-inverted"],className:"rounded-full"},{shape:"minimal",variant:["ghost","ghost-inverted"],className:"rounded-2xl"}],defaultVariants:{variant:"filled",size:"md",shape:"minimal"}}),FY=$.createContext({variant:"filled",size:"md",shape:"minimal",isInvalid:!1}),LLe=$.forwardRef(({className:t,containerClassName:e,variant:n="filled",size:r="md",shape:i="minimal",isInvalid:o=!1,...a},s)=>v.jsx(FY.Provider,{value:{variant:n,size:r,shape:i,isInvalid:o},children:v.jsx(NLe,{ref:s,containerClassName:he("flex items-center gap-2 has-[:disabled]:opacity-50",e),className:he("disabled:cursor-not-allowed",t),...a})}));LLe.displayName="InputOTP";const OLe=$.forwardRef(({className:t,...e},n)=>{const{variant:r}=$.useContext(FY),i=r?.includes("underlined")||r?.includes("ghost");return v.jsx("div",{ref:n,className:he("flex items-center",i?"gap-2":"gap-0 [&>div:not(:first-child)]:-ml-[2px]",t),...e})});OLe.displayName="InputOTPGroup";const $Le=$.forwardRef(({index:t,className:e,...n},r)=>{const i=$.useContext(DLe),{variant:o,size:a,shape:s,isInvalid:l}=$.useContext(FY),{char:c,hasFakeCaret:u,isActive:d}=i.slots[t];return v.jsxs("div",{ref:r,className:he(UGt({variant:o,size:a,shape:s,isInvalid:l,isActive:d}),e),...n,children:[c,u&&v.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:v.jsx("div",{className:"h-4 w-px animate-caret-blink bg-current duration-1000"})})]})});$Le.displayName="InputOTPSlot";const FLe=$.forwardRef(({...t},e)=>v.jsx("div",{ref:e,role:"separator",...t,children:v.jsx(FUe,{className:"text-on-surface-variant"})}));FLe.displayName="InputOTPSeparator";const HGt=mn("relative inline-flex items-center justify-center",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24"}},defaultVariants:{size:"md"}}),BLe=(t,e,n,r,i)=>{const o=[];for(let s=0;s<=180;s++){const l=s/180*2*Math.PI,c=n+r*Math.sin(i*l),u=t+c*Math.cos(l),d=e+c*Math.sin(l);o.push(`${s===0?"M":"L"} ${u.toFixed(3)} ${d.toFixed(3)}`)}return o.join(" ")},RLe=A.forwardRef(({size:t,value:e=0,max:n=100,indeterminate:r,thickness:i=4,gap:o=7,variant:a="standard",amplitude:s=1.5,frequency:l=10,className:c,children:u,...d},p)=>{const g=Math.min(100,Math.max(0,e/n*100)),b=44,w=b/2,_=a==="wavy"?b/2-s-i/2-.5:(b-i)/2,E=2*Math.PI*_,P=a0(g,{stiffness:80,damping:20});A.useEffect(()=>{P.set(g)},[g,P]);const T=ur(P,G=>{let W=s;if(G>80){const Q=(100-G)/20;W=s*Math.max(0,Q)}return BLe(w,w,_,W,l)}),I=ur(P,G=>`${G} 100`),L=g>0&&g<100,B=L?o:0,F=ur(P,G=>{if(r)return`${E} ${E}`;const W=G/100*E;return`${L?Math.max(0,E-W-2*B):E} ${E}`}),z=ur(P,G=>r?0:-(G/100*E+B)),j={animate:{rotate:360,transition:{duration:1.4,ease:"linear",repeat:1/0}}};return v.jsxs("div",{ref:p,className:he(HGt({size:t}),"relative",c),role:"progressbar","aria-valuenow":r?void 0:e,"aria-valuemax":n,...d,children:[v.jsxs(gt.svg,{viewBox:`0 0 ${b} ${b}`,className:he("w-full h-full",!r&&"-rotate-90"),variants:r?j:void 0,animate:r?"animate":void 0,children:[v.jsx(gt.circle,{className:"text-secondary-container",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",cx:w,cy:w,r:_,initial:!1,animate:{strokeDasharray:r?`${E} ${E}`:void 0,strokeDashoffset:r?0:void 0},style:{strokeDasharray:r?void 0:F,strokeDashoffset:r?void 0:z},transition:{type:"spring",stiffness:60,damping:20}}),a==="wavy"?r?v.jsx(gt.path,{d:BLe(w,w,_,s,l),className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",pathLength:100,animate:{strokeDasharray:"25 100",strokeDashoffset:[0,-100]},transition:{strokeDashoffset:{repeat:1/0,duration:2,ease:"linear"}}}):v.jsx(gt.path,{className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",pathLength:100,style:{d:T,strokeDasharray:I}}):v.jsx(gt.circle,{className:"text-primary",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",fill:"none",cx:w,cy:w,r:_,initial:{strokeDasharray:`0 ${E}`},animate:{strokeDasharray:r?`${E*.25} ${E}`:`${g/100*E} ${E}`,strokeDashoffset:0},transition:{type:"spring",stiffness:60,damping:20}})]}),u&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",children:u})]})});RLe.displayName="CircularProgress";const zLe=(t,e,n,r)=>{const i=[],a=e/2;for(let s=0;s<=100;s++){const l=s/100*t,c=a+n*Math.sin(l/t*r*2*Math.PI);i.push(`${s===0?"M":"L"} ${l.toFixed(3)} ${c.toFixed(3)}`)}return i.join(" ")},VLe=A.forwardRef(({value:t=0,max:e=100,indeterminate:n,gap:r=7,variant:i="standard",amplitude:o=1.8,frequency:a=6.5,className:s,...l},c)=>{const u=Math.min(100,Math.max(0,t/e*100)),d=a0(u,{stiffness:80,damping:20});A.useEffect(()=>{d.set(u)},[u,d]);const p=ur(d,P=>{let T=o;if(P>80){const I=(100-P)/20;T=o*Math.max(0,I)}return zLe(100,12,T,a)}),g=ur(d,P=>`${P} 100`),w=u>0&&u<100?r*.8:0,_=ur(d,P=>{if(n)return"100 100";const T=P+w;return`${Math.max(0,100-T)} 100`}),E=ur(d,P=>n?0:-(P+w));return i==="wavy"?v.jsx("div",{ref:c,className:he("relative h-4 w-full flex items-center text-primary",s),role:"progressbar","aria-valuenow":n?void 0:t,"aria-valuemax":e,...l,children:v.jsxs("svg",{viewBox:"0 0 100 12",className:"w-full h-full overflow-visible",preserveAspectRatio:"none",children:[v.jsx("title",{children:"Linear progress bar"}),v.jsx(gt.path,{d:"M 0 6 L 100 6",className:"text-secondary-container",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",fill:"none",pathLength:100,initial:!1,style:{strokeDasharray:_,strokeDashoffset:E},transition:{type:"spring",stiffness:80,damping:20}}),n?v.jsx(gt.path,{d:zLe(100,12,o,a),className:"text-primary",stroke:"currentColor",strokeWidth:3.5,strokeLinecap:"round",fill:"none",pathLength:100,animate:{strokeDasharray:"40 100",strokeDashoffset:[0,-100]},transition:{strokeDashoffset:{repeat:1/0,duration:1.5,ease:"linear"}}}):v.jsx(gt.path,{className:"text-primary",stroke:"currentColor",strokeWidth:3.5,strokeLinecap:"round",fill:"none",pathLength:100,style:{d:p,strokeDasharray:g}})]})}):n?v.jsxs("div",{ref:c,className:he("relative h-1.5 w-full flex items-center bg-secondary-container rounded-full overflow-hidden",s),role:"progressbar",...l,children:[v.jsx("div",{className:"absolute top-0 bottom-0 left-0 w-full bg-primary origin-left animate-progress-indeterminate-1 rounded-full"}),v.jsx("div",{className:"absolute top-0 bottom-0 left-0 w-full bg-primary origin-left animate-progress-indeterminate-2 rounded-full"})]}):v.jsxs("div",{ref:c,className:he("relative h-1.5 w-full flex items-center",s),role:"progressbar","aria-valuenow":t,"aria-valuemax":e,...l,children:[v.jsx(gt.div,{className:"h-full bg-primary rounded-full",initial:{width:0},animate:{width:`${u}%`},transition:{type:"spring",stiffness:80,damping:20},style:{marginRight:u<100&&u>0?r:0}}),v.jsx("div",{className:"h-full flex-1 bg-secondary-container rounded-full min-w-0 transition-all duration-300"})]})});VLe.displayName="LinearProgress";const jLe=100,ULe=160,GGt=({pullProgress:t,isRefreshing:e})=>{const n=ur(t,[0,jLe],[0,180]);return e?v.jsx(dte,{className:"h-6 w-6 animate-spin text-primary"}):v.jsx(gt.div,{style:{rotate:n},children:v.jsx(UO,{className:"h-6 w-6 text-primary"})})},WGt=({children:t,onRefresh:e,IndicatorComponent:n=GGt,pullThreshold:r=jLe,className:i})=>{const[o,a]=A.useState(!1),s=A.useRef(null),l=A.useRef(!1),c=A.useRef(0),u=zr(0),d=ur(u,L=>L>0?L:0),p=ur(d,L=>L*.4),g=ur(d,[0,r*.75],[0,1]),b=ur(d,[r*.5,r],[.5,1]),w=L=>{if(o)return;const B=s.current;B&&B.scrollTop===0&&L.touches.length===1&&(c.current=L.touches[0].clientY,l.current=!0)},_=L=>{if(!l.current||o)return;const B=L.touches[0];if(!B)return;const z=B.clientY-c.current;if(z>0){L.preventDefault();const j=Math.min(z*.6,r*1.2);u.set(j)}else l.current=!1,u.set(0)},E=async()=>{if(!l.current||o)return;if(l.current=!1,u.get()>=r){a(!0),jr(u,ULe,{type:"spring",stiffness:300,damping:30});try{await e()}finally{a(!1),jr(u,0,{type:"spring",stiffness:300,damping:30})}}else jr(u,0,{type:"spring",stiffness:300,damping:30})},P=L=>{if(o)return;const B=s.current;B&&B.scrollTop===0&&(c.current=L.clientY,l.current=!0)},T=L=>{if(!l.current||o)return;const F=L.clientY-c.current;if(F>0){L.preventDefault();const z=Math.min(F*.6,r*1.2);u.set(z)}else l.current=!1,u.set(0)},I=async()=>{if(!l.current||o)return;if(l.current=!1,u.get()>=r){a(!0),jr(u,ULe,{type:"spring",stiffness:300,damping:30});try{await e()}finally{a(!1),jr(u,0,{type:"spring",stiffness:300,damping:30})}}else jr(u,0,{type:"spring",stiffness:300,damping:30})};return A.useEffect(()=>{const L=s.current;if(!L)return;L.addEventListener("touchstart",w,{passive:!1}),L.addEventListener("touchmove",_,{passive:!1}),L.addEventListener("touchend",E,{passive:!0}),L.addEventListener("mousedown",P);const B=z=>T(z),F=()=>I();return document.addEventListener("mousemove",B),document.addEventListener("mouseup",F),()=>{L.removeEventListener("touchstart",w),L.removeEventListener("touchmove",_),L.removeEventListener("touchend",E),L.removeEventListener("mousedown",P),document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",F)}},[o]),v.jsxs("div",{className:he("relative w-full h-full overflow-hidden bg-surface",i),children:[v.jsx(gt.div,{className:"absolute inset-x-0 top-[-50px] z-10 flex justify-center pt-4",style:{opacity:g,scale:b,y:p},children:v.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-surface-container-high shadow-md",children:v.jsx(n,{pullProgress:d,isRefreshing:o})})}),v.jsx(gt.div,{ref:s,style:{y:p},className:"absolute inset-0 z-0 h-full overflow-y-auto",children:t})]})};var kx={},BY,HLe;function KGt(){return HLe||(HLe=1,BY=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),BY}var RY={},im={},GLe;function Vy(){if(GLe)return im;GLe=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return im.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},im.getSymbolTotalCodewords=function(r){return e[r]},im.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},im.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},im.isKanjiModeEnabled=function(){return typeof t<"u"},im.toSJIS=function(r){return t(r)},im}var zY={},WLe;function VY(){return WLe||(WLe=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(zY)),zY}var jY,KLe;function qGt(){if(KLe)return jY;KLe=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},jY=t,jY}var UY,qLe;function YGt(){if(qLe)return UY;qLe=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},UY=t,UY}var HY={},YLe;function ZGt(){return YLe||(YLe=1,(function(t){const e=Vy().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),a=o===145?26:Math.ceil((o-13)/(2*i-2))*2,s=[o-7];for(let l=1;l<i-1;l++)s[l]=s[l-1]-a;return s.push(6),s.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),a=o.length;for(let s=0;s<a;s++)for(let l=0;l<a;l++)s===0&&l===0||s===0&&l===a-1||s===a-1&&l===0||i.push([o[s],o[l]]);return i}})(HY)),HY}var GY={},ZLe;function XGt(){if(ZLe)return GY;ZLe=1;const t=Vy().getSymbolSize,e=7;return GY.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},GY}var WY={},XLe;function QGt(){return XLe||(XLe=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let a=0,s=0,l=0,c=null,u=null;for(let d=0;d<o;d++){s=l=0,c=u=null;for(let p=0;p<o;p++){let g=i.get(d,p);g===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=g,s=1),g=i.get(p,d),g===u?l++:(l>=5&&(a+=e.N1+(l-5)),u=g,l=1)}s>=5&&(a+=e.N1+(s-5)),l>=5&&(a+=e.N1+(l-5))}return a},t.getPenaltyN2=function(i){const o=i.size;let a=0;for(let s=0;s<o-1;s++)for(let l=0;l<o-1;l++){const c=i.get(s,l)+i.get(s,l+1)+i.get(s+1,l)+i.get(s+1,l+1);(c===4||c===0)&&a++}return a*e.N2},t.getPenaltyN3=function(i){const o=i.size;let a=0,s=0,l=0;for(let c=0;c<o;c++){s=l=0;for(let u=0;u<o;u++)s=s<<1&2047|i.get(c,u),u>=10&&(s===1488||s===93)&&a++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&a++}return a*e.N3},t.getPenaltyN4=function(i){let o=0;const a=i.data.length;for(let l=0;l<a;l++)o+=i.data[l];return Math.abs(Math.ceil(o*100/a/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const a=o.size;for(let s=0;s<a;s++)for(let l=0;l<a;l++)o.isReserved(l,s)||o.xor(l,s,n(i,l,s))},t.getBestMask=function(i,o){const a=Object.keys(t.Patterns).length;let s=0,l=1/0;for(let c=0;c<a;c++){o(c),t.applyMask(c,i);const u=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(c,i),u<l&&(l=u,s=c)}return s}})(WY)),WY}var h6={},QLe;function JLe(){if(QLe)return h6;QLe=1;const t=VY(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return h6.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},h6.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},h6}var KY={},gC={},eOe;function JGt(){if(eOe)return gC;eOe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),gC.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},gC.exp=function(r){return t[r]},gC.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},gC}var tOe;function eWt(){return tOe||(tOe=1,(function(t){const e=JGt();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let a=0;a<r.length;a++)for(let s=0;s<i.length;s++)o[a+s]^=e.mul(r[a],i[s]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const a=o[0];for(let l=0;l<i.length;l++)o[l]^=e.mul(i[l],a);let s=0;for(;s<o.length&&o[s]===0;)s++;o=o.slice(s)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(KY)),KY}var qY,nOe;function tWt(){if(nOe)return qY;nOe=1;const t=eWt();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),a=this.degree-o.length;if(a>0){const s=new Uint8Array(this.degree);return s.set(o,a),s}return o},qY=e,qY}var YY={},ZY={},XY={},rOe;function iOe(){return rOe||(rOe=1,XY.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),XY}var nf={},oOe;function sOe(){if(oOe)return nf;oOe=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
302
302
  ]))+`;nf.KANJI=new RegExp(n,"g"),nf.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),nf.BYTE=new RegExp(r,"g"),nf.NUMERIC=new RegExp(t,"g"),nf.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),o=new RegExp("^"+t+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return nf.testKanji=function(l){return i.test(l)},nf.testNumeric=function(l){return o.test(l)},nf.testAlphanumeric=function(l){return a.test(l)},nf}var aOe;function jy(){return aOe||(aOe=1,(function(t){const e=iOe(),n=sOe();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,a){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?o.ccBits[0]:a<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,a){if(t.isValid(o))return o;try{return r(o)}catch{return a}}})(ZY)),ZY}var lOe;function nWt(){return lOe||(lOe=1,(function(t){const e=Vy(),n=JLe(),r=VY(),i=jy(),o=iOe(),a=7973,s=e.getBCHDigit(a);function l(p,g,b){for(let w=1;w<=40;w++)if(g<=t.getCapacity(w,b,p))return w}function c(p,g){return i.getCharCountIndicator(p,g)+4}function u(p,g){let b=0;return p.forEach(function(w){const _=c(w.mode,g);b+=_+w.getBitsLength()}),b}function d(p,g){for(let b=1;b<=40;b++)if(u(p,b)<=t.getCapacity(b,g,i.MIXED))return b}t.from=function(g,b){return o.isValid(g)?parseInt(g,10):b},t.getCapacity=function(g,b,w){if(!o.isValid(g))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=i.BYTE);const _=e.getSymbolTotalCodewords(g),E=n.getTotalCodewordsCount(g,b),P=(_-E)*8;if(w===i.MIXED)return P;const T=P-c(w,g);switch(w){case i.NUMERIC:return Math.floor(T/10*3);case i.ALPHANUMERIC:return Math.floor(T/11*2);case i.KANJI:return Math.floor(T/13);case i.BYTE:default:return Math.floor(T/8)}},t.getBestVersionForData=function(g,b){let w;const _=r.from(b,r.M);if(Array.isArray(g)){if(g.length>1)return d(g,_);if(g.length===0)return 1;w=g[0]}else w=g;return l(w.mode,w.getLength(),_)},t.getEncodedBits=function(g){if(!o.isValid(g)||g<7)throw new Error("Invalid QR Code version");let b=g<<12;for(;e.getBCHDigit(b)-s>=0;)b^=a<<e.getBCHDigit(b)-s;return g<<12|b}})(YY)),YY}var QY={},cOe;function rWt(){if(cOe)return QY;cOe=1;const t=Vy(),e=1335,n=21522,r=t.getBCHDigit(e);return QY.getEncodedBits=function(o,a){const s=o.bit<<3|a;let l=s<<10;for(;t.getBCHDigit(l)-r>=0;)l^=e<<t.getBCHDigit(l)-r;return(s<<10|l)^n},QY}var JY={},eZ,uOe;function iWt(){if(uOe)return eZ;uOe=1;const t=jy();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(r){let i,o,a;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),a=parseInt(o,10),r.put(a,10);const s=this.data.length-i;s>0&&(o=this.data.substr(i),a=parseInt(o,10),r.put(a,s*3+1))},eZ=e,eZ}var tZ,dOe;function oWt(){if(dOe)return tZ;dOe=1;const t=jy(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=t.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let a=e.indexOf(this.data[o])*45;a+=e.indexOf(this.data[o+1]),i.put(a,11)}this.data.length%2&&i.put(e.indexOf(this.data[o]),6)},tZ=n,tZ}var nZ,fOe;function sWt(){if(fOe)return nZ;fOe=1;const t=jy();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(r){return r*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},nZ=e,nZ}var rZ,hOe;function aWt(){if(hOe)return rZ;hOe=1;const t=jy(),e=Vy();function n(r){this.mode=t.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let o=e.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
303
303
  Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},rZ=n,rZ}var iZ={exports:{}},pOe;function lWt(){return pOe||(pOe=1,(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},a={};a[r]=0;var s=e.PriorityQueue.make();s.push(r,0);for(var l,c,u,d,p,g,b,w,_;!s.empty();){l=s.pop(),c=l.value,d=l.cost,p=n[c]||{};for(u in p)p.hasOwnProperty(u)&&(g=p[u],b=d+g,w=a[u],_=typeof a[u]>"u",(_||w>b)&&(a[u]=b,s.push(u,b),o[u]=c))}if(typeof i<"u"&&typeof a[i]>"u"){var E=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(E)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(iZ)),iZ.exports}var gOe;function cWt(){return gOe||(gOe=1,(function(t){const e=jy(),n=iWt(),r=oWt(),i=sWt(),o=aWt(),a=sOe(),s=Vy(),l=lWt();function c(E){return unescape(encodeURIComponent(E)).length}function u(E,P,T){const I=[];let L;for(;(L=E.exec(T))!==null;)I.push({data:L[0],index:L.index,mode:P,length:L[0].length});return I}function d(E){const P=u(a.NUMERIC,e.NUMERIC,E),T=u(a.ALPHANUMERIC,e.ALPHANUMERIC,E);let I,L;return s.isKanjiModeEnabled()?(I=u(a.BYTE,e.BYTE,E),L=u(a.KANJI,e.KANJI,E)):(I=u(a.BYTE_KANJI,e.BYTE,E),L=[]),P.concat(T,I,L).sort(function(F,z){return F.index-z.index}).map(function(F){return{data:F.data,mode:F.mode,length:F.length}})}function p(E,P){switch(P){case e.NUMERIC:return n.getBitsLength(E);case e.ALPHANUMERIC:return r.getBitsLength(E);case e.KANJI:return o.getBitsLength(E);case e.BYTE:return i.getBitsLength(E)}}function g(E){return E.reduce(function(P,T){const I=P.length-1>=0?P[P.length-1]:null;return I&&I.mode===T.mode?(P[P.length-1].data+=T.data,P):(P.push(T),P)},[])}function b(E){const P=[];for(let T=0;T<E.length;T++){const I=E[T];switch(I.mode){case e.NUMERIC:P.push([I,{data:I.data,mode:e.ALPHANUMERIC,length:I.length},{data:I.data,mode:e.BYTE,length:I.length}]);break;case e.ALPHANUMERIC:P.push([I,{data:I.data,mode:e.BYTE,length:I.length}]);break;case e.KANJI:P.push([I,{data:I.data,mode:e.BYTE,length:c(I.data)}]);break;case e.BYTE:P.push([{data:I.data,mode:e.BYTE,length:c(I.data)}])}}return P}function w(E,P){const T={},I={start:{}};let L=["start"];for(let B=0;B<E.length;B++){const F=E[B],z=[];for(let j=0;j<F.length;j++){const G=F[j],W=""+B+j;z.push(W),T[W]={node:G,lastCount:0},I[W]={};for(let Q=0;Q<L.length;Q++){const se=L[Q];T[se]&&T[se].node.mode===G.mode?(I[se][W]=p(T[se].lastCount+G.length,G.mode)-p(T[se].lastCount,G.mode),T[se].lastCount+=G.length):(T[se]&&(T[se].lastCount=G.length),I[se][W]=p(G.length,G.mode)+4+e.getCharCountIndicator(G.mode,P))}}L=z}for(let B=0;B<L.length;B++)I[L[B]].end=0;return{map:I,table:T}}function _(E,P){let T;const I=e.getBestModeForData(E);if(T=e.from(P,I),T!==e.BYTE&&T.bit<I.bit)throw new Error('"'+E+'" cannot be encoded with mode '+e.toString(T)+`.
304
304
  Suggested mode is: `+e.toString(I));switch(T===e.KANJI&&!s.isKanjiModeEnabled()&&(T=e.BYTE),T){case e.NUMERIC:return new n(E);case e.ALPHANUMERIC:return new r(E);case e.KANJI:return new o(E);case e.BYTE:return new i(E)}}t.fromArray=function(P){return P.reduce(function(T,I){return typeof I=="string"?T.push(_(I,null)):I.data&&T.push(_(I.data,I.mode)),T},[])},t.fromString=function(P,T){const I=d(P,s.isKanjiModeEnabled()),L=b(I),B=w(L,T),F=l.find_path(B.map,"start","end"),z=[];for(let j=1;j<F.length-1;j++)z.push(B.table[F[j]].node);return t.fromArray(g(z))},t.rawSplit=function(P){return t.fromArray(d(P,s.isKanjiModeEnabled()))}})(JY)),JY}var mOe;function uWt(){if(mOe)return RY;mOe=1;const t=Vy(),e=VY(),n=qGt(),r=YGt(),i=ZGt(),o=XGt(),a=QGt(),s=JLe(),l=tWt(),c=nWt(),u=rWt(),d=jy(),p=cWt();function g(B,F){const z=B.size,j=o.getPositions(F);for(let G=0;G<j.length;G++){const W=j[G][0],Q=j[G][1];for(let se=-1;se<=7;se++)if(!(W+se<=-1||z<=W+se))for(let ne=-1;ne<=7;ne++)Q+ne<=-1||z<=Q+ne||(se>=0&&se<=6&&(ne===0||ne===6)||ne>=0&&ne<=6&&(se===0||se===6)||se>=2&&se<=4&&ne>=2&&ne<=4?B.set(W+se,Q+ne,!0,!0):B.set(W+se,Q+ne,!1,!0))}}function b(B){const F=B.size;for(let z=8;z<F-8;z++){const j=z%2===0;B.set(z,6,j,!0),B.set(6,z,j,!0)}}function w(B,F){const z=i.getPositions(F);for(let j=0;j<z.length;j++){const G=z[j][0],W=z[j][1];for(let Q=-2;Q<=2;Q++)for(let se=-2;se<=2;se++)Q===-2||Q===2||se===-2||se===2||Q===0&&se===0?B.set(G+Q,W+se,!0,!0):B.set(G+Q,W+se,!1,!0)}}function _(B,F){const z=B.size,j=c.getEncodedBits(F);let G,W,Q;for(let se=0;se<18;se++)G=Math.floor(se/3),W=se%3+z-8-3,Q=(j>>se&1)===1,B.set(G,W,Q,!0),B.set(W,G,Q,!0)}function E(B,F,z){const j=B.size,G=u.getEncodedBits(F,z);let W,Q;for(W=0;W<15;W++)Q=(G>>W&1)===1,W<6?B.set(W,8,Q,!0):W<8?B.set(W+1,8,Q,!0):B.set(j-15+W,8,Q,!0),W<8?B.set(8,j-W-1,Q,!0):W<9?B.set(8,15-W-1+1,Q,!0):B.set(8,15-W-1,Q,!0);B.set(j-8,8,1,!0)}function P(B,F){const z=B.size;let j=-1,G=z-1,W=7,Q=0;for(let se=z-1;se>0;se-=2)for(se===6&&se--;;){for(let ne=0;ne<2;ne++)if(!B.isReserved(G,se-ne)){let oe=!1;Q<F.length&&(oe=(F[Q]>>>W&1)===1),B.set(G,se-ne,oe),W--,W===-1&&(Q++,W=7)}if(G+=j,G<0||z<=G){G-=j,j=-j;break}}}function T(B,F,z){const j=new n;z.forEach(function(ne){j.put(ne.mode.bit,4),j.put(ne.getLength(),d.getCharCountIndicator(ne.mode,B)),ne.write(j)});const G=t.getSymbolTotalCodewords(B),W=s.getTotalCodewordsCount(B,F),Q=(G-W)*8;for(j.getLengthInBits()+4<=Q&&j.put(0,4);j.getLengthInBits()%8!==0;)j.putBit(0);const se=(Q-j.getLengthInBits())/8;for(let ne=0;ne<se;ne++)j.put(ne%2?17:236,8);return I(j,B,F)}function I(B,F,z){const j=t.getSymbolTotalCodewords(F),G=s.getTotalCodewordsCount(F,z),W=j-G,Q=s.getBlocksCount(F,z),se=j%Q,ne=Q-se,oe=Math.floor(j/Q),Z=Math.floor(W/Q),X=Z+1,Y=oe-Z,te=new l(Y);let J=0;const ce=new Array(Q),re=new Array(Q);let de=0;const ye=new Uint8Array(B.buffer);for(let Me=0;Me<Q;Me++){const Ne=Me<ne?Z:X;ce[Me]=ye.slice(J,J+Ne),re[Me]=te.encode(ce[Me]),J+=Ne,de=Math.max(de,Ne)}const ve=new Uint8Array(j);let Ae=0,ke,Ce;for(ke=0;ke<de;ke++)for(Ce=0;Ce<Q;Ce++)ke<ce[Ce].length&&(ve[Ae++]=ce[Ce][ke]);for(ke=0;ke<Y;ke++)for(Ce=0;Ce<Q;Ce++)ve[Ae++]=re[Ce][ke];return ve}function L(B,F,z,j){let G;if(Array.isArray(B))G=p.fromArray(B);else if(typeof B=="string"){let oe=F;if(!oe){const Z=p.rawSplit(B);oe=c.getBestVersionForData(Z,z)}G=p.fromString(B,oe||40)}else throw new Error("Invalid data");const W=c.getBestVersionForData(G,z);if(!W)throw new Error("The amount of data is too big to be stored in a QR Code");if(!F)F=W;else if(F<W)throw new Error(`
@@ -1,18 +1,20 @@
1
- import { OTPInput } from 'input-otp';
1
+ import { OTPInputProps } from 'input-otp';
2
2
  import * as React from "react";
3
3
  interface InputOTPContextValue {
4
- variant?: "filled" | "filled-inverted" | "outlined" | "outlined-inverted" | "underlined" | "underlined-inverted" | "ghost" | "ghost-inverted" | "faded";
4
+ variant?: "filled" | "filled-inverted" | "outlined" | "outlined-inverted" | "underlined" | "underlined-inverted" | "ghost" | "ghost-inverted";
5
5
  size?: "sm" | "md" | "lg";
6
6
  shape?: "full" | "minimal" | "sharp";
7
7
  isInvalid?: boolean;
8
8
  }
9
- export type InputOTPProps = React.ComponentPropsWithoutRef<typeof OTPInput> & InputOTPContextValue & {
9
+ export type InputOTPProps = Omit<OTPInputProps, "size" | "render"> & InputOTPContextValue & {
10
10
  containerClassName?: string;
11
11
  };
12
- declare const InputOTP: React.ForwardRefExoticComponent<InputOTPProps & React.RefAttributes<HTMLInputElement>>;
13
- declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
+ declare const InputOTP: React.ForwardRefExoticComponent<Omit<OTPInputProps, "size" | "render"> & InputOTPContextValue & {
13
+ containerClassName?: string;
14
+ } & React.RefAttributes<HTMLInputElement>>;
15
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
15
17
  index: number;
16
18
  } & React.RefAttributes<HTMLDivElement>>;
17
- declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
18
20
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
@@ -92240,7 +92240,7 @@ function MIt(t, e) {
92240
92240
  ie(() => {
92241
92241
  const c = t.mapLib;
92242
92242
  let u = !0, d;
92243
- return Promise.resolve(c || import("./maplibre-gl-CDicV8Fi.mjs").then((f) => f.m)).then((f) => {
92243
+ return Promise.resolve(c || import("./maplibre-gl-Bm4bjv6l.mjs").then((f) => f.m)).then((f) => {
92244
92244
  if (!u)
92245
92245
  return;
92246
92246
  if (!f)
@@ -110929,29 +110929,28 @@ var SLt = `
110929
110929
  }
110930
110930
  }`;
110931
110931
  const CLt = We(
110932
- "relative flex items-center justify-center transition-all duration-200 ease-in-out text-sm font-semibold select-none group",
110932
+ "relative flex items-center justify-center transition-all duration-200 ease-out text-sm font-semibold select-none group border-box outline-none",
110933
110933
  {
110934
110934
  variants: {
110935
110935
  variant: {
110936
- filled: "bg-surface-container-highest/60 text-on-surface border-b-2 border-transparent",
110937
- "filled-inverted": "bg-surface-container-low text-on-surface border-b-2 border-transparent",
110938
- outlined: "bg-transparent border border-outline-variant text-on-surface first:border-l first:border-l-outline-variant",
110939
- "outlined-inverted": "bg-transparent border border-primary/50 text-on-surface",
110940
- faded: "bg-surface-container/30 border-y border-r border-surface-container-highest/50 text-on-surface first:border-l first:border-l-surface-container-highest/50",
110936
+ filled: "bg-surface-container-highest/60 text-on-surface border-b-2 border-transparent hover:bg-surface-container-highest",
110937
+ "filled-inverted": "bg-surface-container-low text-on-surface border-b-2 border-transparent hover:bg-surface-container",
110938
+ outlined: "bg-transparent border-2 border-outline-variant text-on-surface hover:border-on-surface-variant",
110939
+ "outlined-inverted": "bg-transparent border-2 border-primary/50 text-on-surface hover:border-primary",
110941
110940
  underlined: "bg-transparent border-b-2 border-outline-variant text-on-surface rounded-none! px-1",
110942
- "underlined-inverted": "bg-surface-container-highest/30 border-b-2 border-primary/50 text-on-surface rounded-t-lg rounded-b-none",
110943
- ghost: "bg-transparent border border-transparent text-on-surface hover:bg-surface-container-highest/30",
110944
- "ghost-inverted": "bg-transparent border border-transparent text-primary hover:bg-primary/10"
110941
+ "underlined-inverted": "bg-surface-container-highest/30 border-b-2 border-primary/50 text-on-surface rounded-t-lg rounded-b-none hover:bg-surface-container-highest/50",
110942
+ ghost: "bg-transparent border-2 border-transparent text-on-surface hover:bg-surface-container-highest/30",
110943
+ "ghost-inverted": "bg-transparent border-2 border-transparent text-primary hover:bg-primary/10"
110945
110944
  },
110946
110945
  size: {
110947
- sm: "h-10 w-8 text-xs",
110948
- md: "h-12 w-10 text-sm",
110949
- lg: "h-14 w-12 text-base"
110946
+ sm: "h-12 w-10 text-sm",
110947
+ md: "h-14 w-12 text-base",
110948
+ lg: "h-16 w-14 text-lg"
110950
110949
  },
110951
110950
  shape: {
110952
- full: "first:rounded-l-full last:rounded-r-full",
110953
- minimal: "first:rounded-l-2xl last:rounded-r-2xl",
110954
- sharp: "rounded-none"
110951
+ full: "",
110952
+ minimal: "",
110953
+ sharp: "rounded-none!"
110955
110954
  },
110956
110955
  isInvalid: {
110957
110956
  true: "",
@@ -110977,7 +110976,7 @@ const CLt = We(
110977
110976
  {
110978
110977
  variant: "outlined",
110979
110978
  isActive: !0,
110980
- className: "border-primary ring-1 ring-primary z-10"
110979
+ className: "border-primary ring-1 ring-primary"
110981
110980
  },
110982
110981
  {
110983
110982
  variant: "outlined-inverted",
@@ -110994,15 +110993,17 @@ const CLt = We(
110994
110993
  isActive: !0,
110995
110994
  className: "bg-surface-container-highest/50"
110996
110995
  },
110997
- { variant: "ghost-inverted", isActive: !0, className: "bg-primary/10" },
110998
- // --- ERROR STATES UPDATED ---
110999
- // For filled types, use a ring-inset to create a border inside the background
110996
+ {
110997
+ variant: "ghost-inverted",
110998
+ isActive: !0,
110999
+ className: "bg-primary/10"
111000
+ },
111001
+ // Error States
111000
111002
  {
111001
111003
  variant: ["filled", "filled-inverted"],
111002
111004
  isInvalid: !0,
111003
111005
  className: "bg-error-container/20 text-error ring-inset ring-2 ring-error border-transparent"
111004
111006
  },
111005
- // For outlined types, explicitly color the border
111006
111007
  {
111007
111008
  variant: [
111008
111009
  "outlined",
@@ -111010,11 +111011,32 @@ const CLt = We(
111010
111011
  "underlined",
111011
111012
  "underlined-inverted",
111012
111013
  "ghost",
111013
- "ghost-inverted",
111014
- "faded"
111014
+ "ghost-inverted"
111015
111015
  ],
111016
111016
  isInvalid: !0,
111017
- className: "border-error text-error z-10"
111017
+ className: "!border-error text-error"
111018
+ },
111019
+ // --- Grouped Rounding (Adjacent Slots) ---
111020
+ {
111021
+ shape: "full",
111022
+ variant: ["filled", "filled-inverted", "outlined", "outlined-inverted"],
111023
+ className: "first:rounded-l-full last:rounded-r-full"
111024
+ },
111025
+ {
111026
+ shape: "minimal",
111027
+ variant: ["filled", "filled-inverted", "outlined", "outlined-inverted"],
111028
+ className: "first:rounded-l-2xl last:rounded-r-2xl"
111029
+ },
111030
+ // --- Separated Rounding (Gapped/Individual Slots) ---
111031
+ {
111032
+ shape: "full",
111033
+ variant: ["ghost", "ghost-inverted"],
111034
+ className: "rounded-full"
111035
+ },
111036
+ {
111037
+ shape: "minimal",
111038
+ variant: ["ghost", "ghost-inverted"],
111039
+ className: "rounded-2xl"
111018
111040
  }
111019
111041
  ],
111020
111042
  defaultVariants: {
@@ -111037,21 +111059,18 @@ const CLt = We(
111037
111059
  shape: i = "minimal",
111038
111060
  isInvalid: o = !1,
111039
111061
  ...s
111040
- }, a) => (
111041
- // @ts-ignore
111042
- /* @__PURE__ */ v(Bz.Provider, { value: { variant: n, size: r, shape: i, isInvalid: o }, children: /* @__PURE__ */ v(
111043
- APe,
111044
- {
111045
- ref: a,
111046
- containerClassName: U(
111047
- "flex items-center gap-2 has-[:disabled]:opacity-50",
111048
- e
111049
- ),
111050
- className: U("disabled:cursor-not-allowed", t),
111051
- ...s
111052
- }
111053
- ) })
111054
- )
111062
+ }, a) => /* @__PURE__ */ v(Bz.Provider, { value: { variant: n, size: r, shape: i, isInvalid: o }, children: /* @__PURE__ */ v(
111063
+ APe,
111064
+ {
111065
+ ref: a,
111066
+ containerClassName: U(
111067
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
111068
+ e
111069
+ ),
111070
+ className: U("disabled:cursor-not-allowed", t),
111071
+ ...s
111072
+ }
111073
+ ) })
111055
111074
  );
111056
111075
  TLt.displayName = "InputOTP";
111057
111076
  const kLt = S.forwardRef(({ className: t, ...e }, n) => {
@@ -111062,7 +111081,8 @@ const kLt = S.forwardRef(({ className: t, ...e }, n) => {
111062
111081
  ref: n,
111063
111082
  className: U(
111064
111083
  "flex items-center",
111065
- i ? "gap-2" : "gap-0",
111084
+ // Overlap adjacent 2px borders by applying negative margin to non-first children
111085
+ i ? "gap-2" : "gap-0 [&>div:not(:first-child)]:-ml-[2px]",
111066
111086
  t
111067
111087
  ),
111068
111088
  ...e
@@ -152703,7 +152723,7 @@ Ok("SystemBars", {
152703
152723
  web: () => new PXt()
152704
152724
  });
152705
152725
  const kse = Ok("App", {
152706
- web: () => import("./web-DnHdBBXG.mjs").then((t) => new t.AppWeb())
152726
+ web: () => import("./web-DDa3bCEG.mjs").then((t) => new t.AppWeb())
152707
152727
  }), LQt = () => {
152708
152728
  ie(() => {
152709
152729
  let t = null;
@@ -1,4 +1,4 @@
1
- import { g as Dg } from "./index-Dw5G0OQW.mjs";
1
+ import { g as Dg } from "./index-3i0I0qop.mjs";
2
2
  function zg(Eo, bu) {
3
3
  for (var Yr = 0; Yr < bu.length; Yr++) {
4
4
  const Xi = bu[Yr];
@@ -1,4 +1,4 @@
1
- import { W as t } from "./index-Dw5G0OQW.mjs";
1
+ import { W as t } from "./index-3i0I0qop.mjs";
2
2
  class s extends t {
3
3
  constructor() {
4
4
  super(), this.handleVisibilityChange = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chesai-ui",
3
3
  "private": false,
4
- "version": "0.13.0",
4
+ "version": "0.13.2",
5
5
  "packageManager": "pnpm@10.12.1",
6
6
  "repository": {
7
7
  "type": "git",