@quoreadmin/ui 0.27.12 → 0.27.13
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.
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(J,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(J=typeof globalThis<"u"?globalThis:J||self,l(J.QuoreUI={},J.Vue))})(this,function(J,l){"use strict";var Ife=Object.defineProperty;var Ofe=(J,l,dt)=>l in J?Ife(J,l,{enumerable:!0,configurable:!0,writable:!0,value:dt}):J[l]=dt;var pe=(J,l,dt)=>(Ofe(J,typeof l!="symbol"?l+"":l,dt),dt),av=(J,l,dt)=>{if(!l.has(J))throw TypeError("Cannot "+dt)};var g=(J,l,dt)=>(av(J,l,"read from private field"),dt?dt.call(J):l.get(J)),M=(J,l,dt)=>{if(l.has(J))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(J):l.set(J,dt)},E=(J,l,dt,me)=>(av(J,l,"write to private field"),me?me.call(J,dt):l.set(J,dt),dt);var Kn=(J,l,dt,me)=>({set _(M5){E(J,l,M5,dt)},get _(){return g(J,l,me)}}),x=(J,l,dt)=>(av(J,l,"access private method"),dt);var jc,Qy,Ff,lv,jf,Sl,Ml,Qr,El,zf,Hf,h3,JD,p3,eN,m3,tN,zc,Xy,g3,nN,Uf,cv,Zf,Al,Tl,y3,rN,b3,iN,w3,oN,v3,Wf,C3,Dr,qf,uv,jt,qs,Kf,zt,GD,k3,sN,Hc,sr,Ot,en,Uc,Eo,Zc,Xr,Ks,Wc,xl,Oi,Jr,Il,Gf,Yf,qc,Qf,Di,Gs,Kc,Ys,Ni,M3,Qs,Xf,Xs,Ol,Jf,eh,Ht,He,Ao,Dl,th,nh,Js,Pi,To,rh,Gc,Jy,ih,dv,E3,aN,A3,lN,Yc,e5,T3,cN,x3,uN,I3,dN,oh,fv,O3,fN,sh,hv,ah,pv,D3,hN,tn,In,_i,Ia,N3,pN,P3,mN,lh,mv,_3,gN,Nl,K1,ch,gv,Ut,Li,ei,Bi,ar,Xc,Ri,Zn,xo,Pl,$i,Jc,t5,eu,n5,_l,ti,lt,tu,Ll,nn,Bl,ea,uh,Rl,ta,dh,$l,Io,Vi,nu,ru,Pr,fh,L3,hh,yv,ph,bv,mh,wv,B3,yN,R3,bN,gh,vv,yh,Cv,bh,kv,$3,wN,wh,Sv,V3,vN,F3,CN,j3,kN,vh,Mv,Vl,G1,Fl,jl,Zt,z3,SN,Ch,iu,kh,Ev,Sh,Av,Mh,Eh,U3,MN,Z3,EN,ou,r5,zl,Ah,Th,xh,Ih,su,na,Ke,au,lu,Oh,Tv,YD,ra,Wn,Dh,Nh,Hl,Oo,Ph,_h,Ul,cu,uu,ia,du,Lh,fu,Zl,Bh,Rh,Wl,ql,oa,hu,W3,AN,q3,TN,$h,xv,pu,i5,K3,xN,G3,IN,Kl,Gl,Fi,Do,hn,Y3,Yl,qt,mn,sa,ud,aa,dd,mu,o5,la,fd,Q3,ON,Vh,Iv,ca,hd,Ql,Y1,Xl,Q1,Fh,Ov,Jl,X1,QD,X3,ua,No,da,pd,gu,s5,e0,ey,ty,t0,n0,yu,a5,bu,l5,Po,ji,wu,vu,zi,r0,J1,ni,jh,Dv,fa,ha,i0,s0,Cu,ku,zh,Nv,_o,B0,ny,DN,ry,NN,Su,iy,oy,Mu,a0,pt,Lo,Eu,Hh,Uh,Au,Bo,ri,Ro,Zh,$o,Wh,l0,c0,Tu,c5,qh,Pv,sy,PN,ay,_N,ly,LN,cy,BN,xu,u5,Iu,d5,Kh,_v,Gh,Yh,Qh,Xh,Jh,e1,t1,Lv,n1,u0,d0,uy,RN,r1,Bv,ii,lr,i1,f0,cr,Ou,dy,$N,fy,VN,hy,FN,Du,f5,Nu,h5,Pu,p5,py,jN,o1,Rv,my,zN,s1,pa,oi,gy,HN,_u,m5,yy,UN,by,ZN,a1,$v,l1,Lu,Hi,Vo,Bu,Ru,Ui,xe,h0,p0,c1,u1,$u,Vu,ma,d1,wy,vy,f1,Vv,Fu,m0,jo,h1,ur,p1,wt,g0,ep,y0,tp,Cy,WN,m1,g1,si,b0,ju,Dt,y1,zu,b1,w1,ai,Hu,v1,Fv,C1,jv,ky,qN,zo,R0,Sy,KN,Zi,Oa,Uu,k1,ga,w0,Zu,_r,S1,M1,v0,li,En,dr,Wu,C0,Nt,qu,Wi,E1,A1,zv,T1,Hv,My,GN,Ey,YN,Ay,QN,x1,Uv,k0,np,ya,md,Ty,XN,Ku,g5,S0,rp,xy,JN,Iy,eP,Oy,tP,Dy,nP,M0,E0,qi,Uo,Lr,A0,T0,x0,Zo,Gu,I0,O0,ba,Ny,rP,Py,iP,_y,oP,Ly,sP,I1,Zv,By,aP,O1,Wv,Ry,lP,$y,cP,Vy,uP,Fy,dP,jy,fP,Wo,$0,D1,qv,N1,Kv,P1,Gv,Yu,y5,Qu,b5,wa,gd,_1,Yv,Xu,w5,zy,hP,L1,Qv,Hy,pP,Uy,mP,B1,Xv,Ju,v5,D0,ip,vt,rn,va,qo,Ca,ed,Ki,Ko,Gi,Br,R1,N0,op,P0,sp,td,C5,$1,Jv,Zy,gP,V1,e8,F1,t8,nd,k5,Wy,yP,_0,rd,Yi,ka,Go,fr,Sa,id,od,An,Yo,ue,Ma,qy,bP,z1,n8,H1,r8,U1,i8,sd,S5,Qi,Z1,Pt,Ea,W1,o8,q1,s8,Ky,wP;const dt=l.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:"md"}},emits:["update:modelValue"],setup(n,{emit:e,slots:t}){const r=l.computed({get:()=>!!n.modelValue,set:d=>e("update:modelValue",d)}),i=l.computed(()=>!!t.text),o=l.computed(()=>{const d=r.value?"Hide":"Show";return s.value?d:n.triggerText}),s=l.computed(()=>n.variant==="bubble"),a=l.computed(()=>["leading-normal font-bold",{"text-md":n.variant==="white"},{"text-base":n.variant==="gray"},{"flex-grow":n.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":n.variant==="bubble"}]),c=l.computed(()=>n.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:a,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),me=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},M5=["value"],CP={key:0,class:"flex-grow border-t border-gray-20"},kP={key:1,class:"flex-grow border-t border-gray-20"};function SP(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{value:n.modelValue,class:l.normalizeClass(["accordion","accordion-"+n.variant,{"is-open":!!n.modelValue}])},[l.renderSlot(n.$slots,"toggle",l.normalizeProps(l.guardReactiveProps({onToggle:n.onToggle})),()=>[l.createElementVNode("div",{class:l.normalizeClass(["accordion-trigger",n.triggerClass,{"py-5":n.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...a)=>n.onToggle&&n.onToggle(...a))},[n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",CP)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"w-full":!n.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":n.isBubbleAccordion}])},[n.hasTextSlot?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.triggerTextClasses)},[l.renderSlot(n.$slots,"text",{},void 0,!0)],2)):(l.openBlock(),l.createElementBlock("h4",{key:1,class:l.normalizeClass(n.triggerTextClasses)},l.toDisplayString(n.triggerTextValue),3)),l.renderSlot(n.$slots,"additionalInfo",{},void 0,!0),l.createVNode(s,{icon:"chevron-down",color:"gray-40",size:n.triggerIconSize,type:"",class:l.normalizeClass(["shrink-0 mr-4",n.chevronClass,{open:!!n.show}])},null,8,["size","class"])],2),n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",kP)):l.createCommentVNode("",!0)],2)],!0),l.createVNode(l.Transition,{name:"slide-down"},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["accordion-content",n.contentClass,{"p-0":n.variant==="custom"}])},[l.renderSlot(n.$slots,"content",{},void 0,!0)],2)):l.createCommentVNode("",!0)]),_:3})],10,M5)}const MP=me(dt,[["render",SP],["__scopeId","data-v-c7b4341d"]]),EP=l.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const n=l.ref(!0),e=l.ref(!1);return{validSrc:n,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{n.value=!1}}}}),AP={class:"avatar-text"},TP=["src"];function xP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["avatar flex justify-center items-center",[`avatar-${n.size}`,`bg-${n.bgColor}`]])},[l.createElementVNode("span",AP,l.toDisplayString(n.text),1),n.src&&n.validSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"avatar-image",src:n.src,onLoad:e[0]||(e[0]=(...s)=>n.onImageLoad&&n.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>n.onImageError&&n.onImageError(...s))},null,40,TP)):l.createCommentVNode("",!0)],2)}const d8=me(EP,[["render",xP],["__scopeId","data-v-ebde1d6f"]]),IP=l.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),OP={class:"banner-text mb-0"};function DP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-banner flex","bg-"+n.backgroundColor,"text-"+n.textColor]),onClick:e[0]||(e[0]=s=>n.$emit("bannerClick"))},[l.createElementVNode("p",OP,[l.renderSlot(n.$slots,"default",{},void 0,!0)])],2)}const NP=me(IP,[["render",DP],["__scopeId","data-v-8edf76be"]]),PP=l.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(n,e){const t=l.computed(function(){return n.color?`bg-${n.color}`:""}),r=l.computed(function(){return!!e.slots.icon});return{bgColor:t,hasIcon:r}}}),_P={key:1,class:"badge-text"};function LP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["badge",n.shape,n.bgColor])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock("p",_P,[l.renderSlot(n.$slots,"text",{},void 0,!0)]))],2)}const Da=me(PP,[["render",LP],["__scopeId","data-v-c8e6730f"]]);function BP(){try{return"constructor"in GestureEvent}catch{return!1}}function f8(){return typeof window<"u"&&"ontouchstart"in window}function h8(n){return"pointerId"in n?null:n.type==="touchend"?n.changedTouches:n.targetTouches}function p8(n){return Array.from(h8(n)).map(e=>e.identifier)}function m8(n){const e="buttons"in n?n.buttons:0,{shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}=n;return{buttons:e,shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}}const RP=n=>n;function g8(n,e=RP){const t=h8(n),{clientX:r,clientY:i}=t?t[0]:n;return e([r,i])}function y8(){}function b8(...n){return n.length===0?y8:n.length===1?n[0]:function(){var e;for(let t of n)e=t.apply(this,arguments)||e;return e}}function Jo(n,e){if(n===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");n=e}return Array.isArray(n)?n:[n,n]}function w8(n,...e){return typeof n=="function"?n(...e):n}function yd(n){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:y8,canceled:!1,memo:void 0,args:void 0,...n}}function E5(){const n={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=yd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),t=yd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:n,drag:e,pinch:t,wheel:r,move:i,scroll:o}}var $P=Object.defineProperty,VP=(n,e,t)=>e in n?$P(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,On=(n,e,t)=>(VP(n,typeof e!="symbol"?e+"":e,t),t);class FP{constructor(e){this.classes=e,On(this,"nativeRefs"),On(this,"config"),On(this,"handlers"),On(this,"state"),On(this,"timeouts"),On(this,"domListeners"),On(this,"windowListeners"),On(this,"pointerIds",new Set),On(this,"touchIds",new Set),On(this,"supportsTouchEvents",f8()),On(this,"supportsGestureEvents",BP()),On(this,"bind",(...t)=>{const r={};for(let i of this.classes)new i(this,t).addBindings(r);for(let i in this.nativeRefs)fi(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:t}));return this.config.domTarget?WP(this,r):qP(this,r)}),On(this,"clean",()=>{const{eventOptions:t,domTarget:r}=this.config,i=l.unref(r);i&&bd(i,v8(this.domListeners),t),Object.values(this.timeouts).forEach(clearTimeout),HP(this)}),On(this,"reset",()=>{this.state=E5()}),this.classes=e,this.state=E5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function jP(n,e){"pointerId"in e?n.pointerIds.add(e.pointerId):n.touchIds=new Set(p8(e))}function zP(n,e){"pointerId"in e?n.pointerIds.delete(e.pointerId):p8(e).forEach(t=>n.touchIds.delete(t))}function HP(n){const{config:{window:e,eventOptions:t},windowListeners:r}=n,i=l.unref(e);if(i){for(let o in r){const s=r[o];bd(i,s,t)}n.windowListeners={}}}function UP({config:n,windowListeners:e},t,r=n.eventOptions){const i=l.unref(n.window);i&&(bd(i,e[t],r),delete e[t])}function ZP({config:n,windowListeners:e},t,r=[],i=n.eventOptions){const o=l.unref(n.window);o&&(bd(o,e[t],i),C8(o,e[t]=r,i))}function WP({config:n,domListeners:e},t){const{eventOptions:r,domTarget:i}=n,o=l.unref(i);if(!o)throw new Error("domTarget must be defined");bd(o,v8(e),r);for(let[s,a]of Object.entries(t)){const c=s.slice(2).toLowerCase();e.push([c,b8(...a)])}C8(o,e,r)}function qP({config:n},e){const t={},r=n.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],a=i+r;t[a]=b8(...s)}return t}function v8(n=[]){return n.splice(0,n.length)}function fi(n,e,t){n[e]||(n[e]=[]),n[e].push(t)}function C8(n,e=[],t={}){if(n)for(let[r,i]of e)n.addEventListener(r,i,t)}function bd(n,e=[],t={}){if(n)for(let[r,i]of e)n.removeEventListener(r,i,t)}function A5(n,e){return n.map((t,r)=>t+e[r])}function k8(n,e){return n.map((t,r)=>t-e[r])}function T5(n){return Math.hypot(...n)}function KP(n,e,t){const r=T5(e),i=r===0?0:1/r,o=t===0?0:1/t,s=o*r,a=e.map(d=>o*d),c=e.map(d=>i*d),u=T5(n);return{velocities:a,velocity:s,distance:u,direction:c}}function x5(n){return Math.sign?Math.sign(n):+(n>0)-+(n<0)||+n}function GP(n,e,t){return Math.max(e,Math.min(n,t))}function YP(n,e){return Math.pow(n,e*5)}function S8(n,e,t){return e===0||Math.abs(e)===1/0?YP(n,t):n*e*t/(e+t*n)}function M8(n,e,t,r=.15){return r===0?GP(n,e,t):n<e?-S8(e-n,t-e,r)+e:n>t?+S8(n-t,t-e,r)+t:n}var QP=Object.defineProperty,XP=(n,e,t)=>e in n?QP(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ap=(n,e,t)=>(XP(n,typeof e!="symbol"?e+"":e,t),t);const Na=new Map,JP=n=>n;class e_{constructor(e,t=[]){this.controller=e,this.args=t,ap(this,"debounced",!0),ap(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),ap(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),ap(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,u=this.state._active;this.state.active=u,this.state.first=u&&!c,this.state.last=c&&!u,this.controller.state.shared[this.ingKey]=u}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},a=this.handler(s);return this.state.memo=a!==void 0?a:this.state.memo,s}),this.controller=e,this.args=t}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||JP}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,t){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:t,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:a,lastOffset:c,movement:u}=this.state,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=a[0]===!1?E8(d[0],f[0]):a[0],p=a[1]===!1?E8(d[1],f[1]):a[1],m=this.checkIntentionality([h,p],d);if(m._blocked)return{...m,_movement:d,delta:[0,0]};const y=m._intentional,b=d;let w=[y[0]!==!1?d[0]-y[0]:0,y[1]!==!1?d[1]-y[1]:0];const v=A5(w,c),k=s?t:[0,0];return w=A8(i,A5(w,o),k),{...m,intentional:y[0]!==!1||y[1]!==!1,_initial:o,_movement:b,movement:w,values:e,offset:A8(i,v,k),delta:k8(w,u)}}clean(){this.clearTimeout()}}function E8(n,e){return Math.abs(n)>=e?x5(n)*e:!1}function A8(n,[e,t],[r,i]){const[[o,s],[a,c]]=n;return[M8(e,o,s,r),M8(t,a,c,i)]}function I5({state:n},e,t){const{timeStamp:r,type:i}=e,o=n.values,s=t?0:r-n.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function t_({state:n,config:e,stateKey:t,args:r},i,o){const s=n.offset,a=o.timeStamp,{initial:c,bounds:u}=e,d={...E5()[t],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:a};return{...d,_initial:w8(c,d),_bounds:w8(u,d)}}class n_ extends e_{getInternalMovement(e,t){return k8(e,t.initial)}checkIntentionality(e,t){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=t.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,t){const r=this.getMovement(e);if(!r._blocked){const i=t.timeStamp-this.state.timeStamp;Object.assign(r,KP(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var r_=Object.defineProperty,i_=(n,e,t)=>e in n?r_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Kt=(n,e,t)=>(i_(n,typeof e!="symbol"?e+"":e,t),t);const o_=3;function T8(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}class s_ extends n_{constructor(){super(...arguments),Kt(this,"ingKey","dragging"),Kt(this,"stateKey","drag"),Kt(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:t,pointerId:r}=e;t&&"setPointerCapture"in t&&t.setPointerCapture(r),this.updateGestureState({_dragTarget:t,_dragPointerId:r})}),Kt(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:t}=this.state;if(t&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(t)))try{e.releasePointerCapture(t)}catch{}}),Kt(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),Kt(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),Kt(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),Kt(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),Kt(this,"setUpWindowScrollDetection",e=>{T8(e),ZP(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),Kt(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,T8(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),Kt(this,"setStartState",e=>{const t=g8(e,this.transform);this.updateSharedState(m8(e)),this.updateGestureState({...t_(this,t,e),...I5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(t))}),Kt(this,"onDragStart",e=>{jP(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),Kt(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let t;if(document.pointerLockElement){const{movementX:c,movementY:u}=e;t=A5(this.transform([c,u]),this.state.values)}else t=g8(e,this.transform);const r=this.getKinematics(t,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=m8(e);this.updateSharedState(i);const o=I5(this,e),s=T5(r._movement);let{_dragIsTap:a}=this.state;a&&s>=o_&&(a=!1),this.updateGestureState({...o,...r,_dragIsTap:a}),this.fireGestureHandler()}),Kt(this,"onDragEnd",e=>{if(zP(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const t=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[a,c]=this.state._intentional,[u,d]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,m={...I5(this,e),...this.getMovement(this.state.values)},y=[0,0];m.elapsedTime<p&&(a!==!1&&Math.abs(r)>u&&Math.abs(o)>f&&(y[0]=x5(r)),c!==!1&&Math.abs(i)>d&&Math.abs(s)>h&&(y[1]=x5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...m,tap:t,swipe:y}),this.fireGestureHandler(this.config.filterTaps&&t===!0)}),Kt(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),UP(this.controller,this.stateKey)}),Kt(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),l.nextTick(this.fireGestureHandler))}),Kt(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,t=!1){!this.state._active||this.state._dragStarted||(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(fi(e,"onTouchStart",this.onDragStart),fi(e,"onTouchMove",this.onDragChange),fi(e,"onTouchEnd",this.onDragEnd),fi(e,"onTouchCancel",this.onDragEnd)):(fi(e,"onPointerDown",this.onDragStart),fi(e,"onPointerMove",this.onDragChange),fi(e,"onPointerUp",this.onDragEnd),fi(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const t=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";fi(e,t,this.onClick)}}}function a_(n,e){let t,r=[],i,o=!1;function s(...a){return o&&t===this&&e(a,r)||(i=n.apply(this,a),o=!0,t=this,r=a),i}return s}function lp(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;let t,r,i;if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!lp(n[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=n.entries();!(r=o.next()).done;)if(!lp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&n instanceof Element)return!1;for(r=t;r--!==0;)if(!(i[r]==="_owner"&&n.$$typeof)&&!lp(n[i[r]],e[i[r]]))return!1;return!0}return n!==n&&e!==e}function l_(n,e){try{return lp(n,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}function O5(n={},e){const t={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":t[r]=i.call(t,n[r],r,n);break;case"object":t[r]=O5(n[r],i);break;case"boolean":i&&(t[r]=n[r]);break}return t}const c_=180,u_=.15,d_=.5,f_=50,h_=250,x8={...{threshold(n=0){return Jo(n)},rubberband(n=0){switch(n){case!0:return Jo(u_);case!1:return Jo(0);default:return Jo(n)}},enabled(n=!0){return n},triggerAllEvents(n=!1){return n},initial(n=0){return typeof n=="function"?n:Jo(n)},transform:!0},axis:!0,lockDirection(n=!1){return n},bounds(n={}){if(typeof n=="function")return o=>x8.bounds(n(o));const{left:e=-1/0,right:t=1/0,top:r=-1/0,bottom:i=1/0}=n;return[[e,t],[r,i]]}},p_=typeof window<"u"&&window.document&&window.document.createElement,m_={enabled(n=!0){return n},domTarget:!0,window(n=p_?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform:!0},g_={...x8,useTouch(n=!0){return n&&f8()},preventWindowScrollY(n=!1){return n},threshold(n,e,{filterTaps:t=!1,lockDirection:r=!1,axis:i=void 0}){const o=Jo(n,t?3:r||i?1:0);return this.filterTaps=t,o},swipeVelocity(n=d_){return Jo(n)},swipeDistance(n=f_){return Jo(n)},swipeDuration(n=h_){return n},delay(n=0){switch(n){case!0:return c_;case!1:return 0;default:return n}}};function y_(n){return O5(n,m_)}function b_(n={}){return O5(n,g_)}function w_({domTarget:n,eventOptions:e,window:t,enabled:r,...i}){const o=y_({domTarget:n,eventOptions:e,window:t,enabled:r});return o.drag=b_(i),o}function v_(n,e,t={}){const r=C_(n),i=new FP(r);return i.config=e,i.handlers=n,i.nativeRefs=t,l.getCurrentInstance()&&!e.manual&&(l.onMounted(i.bind),l.onUnmounted(i.clean)),i}function C_(n){const e=new Set;return n.drag&&e.add(Na.get("drag")),n.wheel&&e.add(Na.get("wheel")),n.scroll&&e.add(Na.get("scroll")),n.move&&e.add(Na.get("move")),n.pinch&&e.add(Na.get("pinch")),n.hover&&e.add(Na.get("hover")),e}function I8(n,e={}){Na.set("drag",s_);const t=l.ref();return t.value||(t.value=a_(w_,l_)),v_({drag:n},t.value(e))}let k_=Symbol("headlessui.useid"),S_=0;function M_(){return l.inject(k_,()=>`${++S_}`)()}function O8(n){var e;if(n==null||n.value==null)return null;let t=(e=n.value.$el)!=null?e:n.value;return t instanceof Node?t:null}function wd(n,e,...t){if(n in e){let i=e[n];return typeof i=="function"?i(...t):i}let r=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wd),r}var E_=Object.defineProperty,A_=(n,e,t)=>e in n?E_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,D8=(n,e,t)=>(A_(n,typeof e!="symbol"?e+"":e,t),t);let T_=class{constructor(){D8(this,"current",this.detect()),D8(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},x_=new T_;var N8=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(N8||{}),es=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(es||{});function P8({visible:n=!0,features:e=0,ourProps:t,theirProps:r,...i}){var o;let s=L8(r,t),a=Object.assign(i,{props:s});if(n||e&2&&s.static)return D5(a);if(e&1){let c=(o=s.unmount)==null||o?0:1;return wd(c,{0(){return null},1(){return D5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return D5(a)}function D5({props:n,attrs:e,slots:t,slot:r,name:i}){var o,s;let{as:a,...c}=B8(n,["unmount","static"]),u=(o=t.default)==null?void 0:o.call(t,r),d={};if(r){let f=!1,h=[];for(let[p,m]of Object.entries(r))typeof m=="boolean"&&(f=!0),m===!0&&h.push(p);f&&(d["data-headlessui-state"]=h.join(" "))}if(a==="template"){if(u=_8(u??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=u??[];if(!I_(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(y=>y.trim()).filter((y,b,w)=>w.indexOf(y)===b).sort((y,b)=>y.localeCompare(b)).map(y=>` - ${y}`).join(`
|
|
1
|
+
(function(J,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(J=typeof globalThis<"u"?globalThis:J||self,l(J.QuoreUI={},J.Vue))})(this,function(J,l){"use strict";var Ife=Object.defineProperty;var Ofe=(J,l,dt)=>l in J?Ife(J,l,{enumerable:!0,configurable:!0,writable:!0,value:dt}):J[l]=dt;var pe=(J,l,dt)=>(Ofe(J,typeof l!="symbol"?l+"":l,dt),dt),av=(J,l,dt)=>{if(!l.has(J))throw TypeError("Cannot "+dt)};var g=(J,l,dt)=>(av(J,l,"read from private field"),dt?dt.call(J):l.get(J)),M=(J,l,dt)=>{if(l.has(J))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(J):l.set(J,dt)},E=(J,l,dt,me)=>(av(J,l,"write to private field"),me?me.call(J,dt):l.set(J,dt),dt);var Kn=(J,l,dt,me)=>({set _(M5){E(J,l,M5,dt)},get _(){return g(J,l,me)}}),x=(J,l,dt)=>(av(J,l,"access private method"),dt);var jc,Qy,Ff,lv,jf,Sl,Ml,Qr,El,zf,Hf,h3,JD,p3,eN,m3,tN,zc,Xy,g3,nN,Uf,cv,Zf,Al,Tl,y3,rN,b3,iN,w3,oN,v3,Wf,C3,Dr,qf,uv,jt,qs,Kf,zt,GD,k3,sN,Hc,sr,Ot,en,Uc,Eo,Zc,Xr,Ks,Wc,xl,Oi,Jr,Il,Gf,Yf,qc,Qf,Di,Gs,Kc,Ys,Ni,M3,Qs,Xf,Xs,Ol,Jf,eh,Ht,He,Ao,Dl,th,nh,Js,Pi,To,rh,Gc,Jy,ih,dv,E3,aN,A3,lN,Yc,e5,T3,cN,x3,uN,I3,dN,oh,fv,O3,fN,sh,hv,ah,pv,D3,hN,tn,In,_i,Ia,N3,pN,P3,mN,lh,mv,_3,gN,Nl,K1,ch,gv,Ut,Li,ei,Bi,ar,Xc,Ri,Zn,xo,Pl,$i,Jc,t5,eu,n5,_l,ti,lt,tu,Ll,nn,Bl,ea,uh,Rl,ta,dh,$l,Io,Vi,nu,ru,Pr,fh,L3,hh,yv,ph,bv,mh,wv,B3,yN,R3,bN,gh,vv,yh,Cv,bh,kv,$3,wN,wh,Sv,V3,vN,F3,CN,j3,kN,vh,Mv,Vl,G1,Fl,jl,Zt,z3,SN,Ch,iu,kh,Ev,Sh,Av,Mh,Eh,U3,MN,Z3,EN,ou,r5,zl,Ah,Th,xh,Ih,su,na,Ke,au,lu,Oh,Tv,YD,ra,Wn,Dh,Nh,Hl,Oo,Ph,_h,Ul,cu,uu,ia,du,Lh,fu,Zl,Bh,Rh,Wl,ql,oa,hu,W3,AN,q3,TN,$h,xv,pu,i5,K3,xN,G3,IN,Kl,Gl,Fi,Do,hn,Y3,Yl,qt,mn,sa,ud,aa,dd,mu,o5,la,fd,Q3,ON,Vh,Iv,ca,hd,Ql,Y1,Xl,Q1,Fh,Ov,Jl,X1,QD,X3,ua,No,da,pd,gu,s5,e0,ey,ty,t0,n0,yu,a5,bu,l5,Po,ji,wu,vu,zi,r0,J1,ni,jh,Dv,fa,ha,i0,s0,Cu,ku,zh,Nv,_o,B0,ny,DN,ry,NN,Su,iy,oy,Mu,a0,pt,Lo,Eu,Hh,Uh,Au,Bo,ri,Ro,Zh,$o,Wh,l0,c0,Tu,c5,qh,Pv,sy,PN,ay,_N,ly,LN,cy,BN,xu,u5,Iu,d5,Kh,_v,Gh,Yh,Qh,Xh,Jh,e1,t1,Lv,n1,u0,d0,uy,RN,r1,Bv,ii,lr,i1,f0,cr,Ou,dy,$N,fy,VN,hy,FN,Du,f5,Nu,h5,Pu,p5,py,jN,o1,Rv,my,zN,s1,pa,oi,gy,HN,_u,m5,yy,UN,by,ZN,a1,$v,l1,Lu,Hi,Vo,Bu,Ru,Ui,xe,h0,p0,c1,u1,$u,Vu,ma,d1,wy,vy,f1,Vv,Fu,m0,jo,h1,ur,p1,wt,g0,ep,y0,tp,Cy,WN,m1,g1,si,b0,ju,Dt,y1,zu,b1,w1,ai,Hu,v1,Fv,C1,jv,ky,qN,zo,R0,Sy,KN,Zi,Oa,Uu,k1,ga,w0,Zu,_r,S1,M1,v0,li,En,dr,Wu,C0,Nt,qu,Wi,E1,A1,zv,T1,Hv,My,GN,Ey,YN,Ay,QN,x1,Uv,k0,np,ya,md,Ty,XN,Ku,g5,S0,rp,xy,JN,Iy,eP,Oy,tP,Dy,nP,M0,E0,qi,Uo,Lr,A0,T0,x0,Zo,Gu,I0,O0,ba,Ny,rP,Py,iP,_y,oP,Ly,sP,I1,Zv,By,aP,O1,Wv,Ry,lP,$y,cP,Vy,uP,Fy,dP,jy,fP,Wo,$0,D1,qv,N1,Kv,P1,Gv,Yu,y5,Qu,b5,wa,gd,_1,Yv,Xu,w5,zy,hP,L1,Qv,Hy,pP,Uy,mP,B1,Xv,Ju,v5,D0,ip,vt,rn,va,qo,Ca,ed,Ki,Ko,Gi,Br,R1,N0,op,P0,sp,td,C5,$1,Jv,Zy,gP,V1,e8,F1,t8,nd,k5,Wy,yP,_0,rd,Yi,ka,Go,fr,Sa,id,od,An,Yo,ue,Ma,qy,bP,z1,n8,H1,r8,U1,i8,sd,S5,Qi,Z1,Pt,Ea,W1,o8,q1,s8,Ky,wP;const dt=l.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e,slots:t}){const r=l.computed({get:()=>!!n.modelValue,set:d=>e("update:modelValue",d)}),i=l.computed(()=>!!t.text),o=l.computed(()=>{const d=r.value?"Hide":"Show";return s.value?d:n.triggerText}),s=l.computed(()=>n.variant==="bubble"),a=l.computed(()=>["leading-normal font-bold",{"text-md":n.variant==="white"},{"text-base":n.variant==="gray"},{"flex-grow":n.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":n.variant==="bubble"}]),c=l.computed(()=>n.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:a,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),me=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},M5=["value"],CP={key:0,class:"flex-grow border-t border-gray-20"},kP={key:1,class:"flex-grow border-t border-gray-20"};function SP(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{value:n.modelValue,class:l.normalizeClass(["accordion","accordion-"+n.variant,{"is-open":!!n.modelValue}])},[l.renderSlot(n.$slots,"toggle",l.normalizeProps(l.guardReactiveProps({onToggle:n.onToggle})),()=>[l.createElementVNode("div",{class:l.normalizeClass(["accordion-trigger",n.triggerClass,{"py-5":n.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...a)=>n.onToggle&&n.onToggle(...a))},[n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",CP)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"w-full":!n.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":n.isBubbleAccordion}])},[n.hasTextSlot?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.triggerTextClasses)},[l.renderSlot(n.$slots,"text",{},void 0,!0)],2)):(l.openBlock(),l.createElementBlock("h4",{key:1,class:l.normalizeClass(n.triggerTextClasses)},l.toDisplayString(n.triggerTextValue),3)),l.renderSlot(n.$slots,"additionalInfo",{},void 0,!0),l.createVNode(s,{icon:"chevron-down",color:"gray-40",size:n.triggerIconSize,type:"",class:l.normalizeClass(["shrink-0 mr-4",n.chevronClass,{open:!!n.show}])},null,8,["size","class"])],2),n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",kP)):l.createCommentVNode("",!0)],2)],!0),l.createVNode(l.Transition,{name:"slide-down"},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["accordion-content",n.contentClass,{"p-0":n.variant==="custom"}])},[l.renderSlot(n.$slots,"content",{},void 0,!0)],2)):l.createCommentVNode("",!0)]),_:3})],10,M5)}const MP=me(dt,[["render",SP],["__scopeId","data-v-c7b4341d"]]),EP=l.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const n=l.ref(!0),e=l.ref(!1);return{validSrc:n,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{n.value=!1}}}}),AP={class:"avatar-text"},TP=["src"];function xP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["avatar flex justify-center items-center",[`avatar-${n.size}`,`bg-${n.bgColor}`]])},[l.createElementVNode("span",AP,l.toDisplayString(n.text),1),n.src&&n.validSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"avatar-image",src:n.src,onLoad:e[0]||(e[0]=(...s)=>n.onImageLoad&&n.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>n.onImageError&&n.onImageError(...s))},null,40,TP)):l.createCommentVNode("",!0)],2)}const d8=me(EP,[["render",xP],["__scopeId","data-v-ebde1d6f"]]),IP=l.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),OP={class:"banner-text mb-0"};function DP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-banner flex","bg-"+n.backgroundColor,"text-"+n.textColor]),onClick:e[0]||(e[0]=s=>n.$emit("bannerClick"))},[l.createElementVNode("p",OP,[l.renderSlot(n.$slots,"default",{},void 0,!0)])],2)}const NP=me(IP,[["render",DP],["__scopeId","data-v-8edf76be"]]),PP=l.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(n,e){const t=l.computed(function(){return n.color?`bg-${n.color}`:""}),r=l.computed(function(){return!!e.slots.icon});return{bgColor:t,hasIcon:r}}}),_P={key:1,class:"badge-text"};function LP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["badge",n.shape,n.bgColor])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock("p",_P,[l.renderSlot(n.$slots,"text",{},void 0,!0)]))],2)}const Da=me(PP,[["render",LP],["__scopeId","data-v-c8e6730f"]]);function BP(){try{return"constructor"in GestureEvent}catch{return!1}}function f8(){return typeof window<"u"&&"ontouchstart"in window}function h8(n){return"pointerId"in n?null:n.type==="touchend"?n.changedTouches:n.targetTouches}function p8(n){return Array.from(h8(n)).map(e=>e.identifier)}function m8(n){const e="buttons"in n?n.buttons:0,{shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}=n;return{buttons:e,shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}}const RP=n=>n;function g8(n,e=RP){const t=h8(n),{clientX:r,clientY:i}=t?t[0]:n;return e([r,i])}function y8(){}function b8(...n){return n.length===0?y8:n.length===1?n[0]:function(){var e;for(let t of n)e=t.apply(this,arguments)||e;return e}}function Jo(n,e){if(n===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");n=e}return Array.isArray(n)?n:[n,n]}function w8(n,...e){return typeof n=="function"?n(...e):n}function yd(n){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:y8,canceled:!1,memo:void 0,args:void 0,...n}}function E5(){const n={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=yd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),t=yd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:n,drag:e,pinch:t,wheel:r,move:i,scroll:o}}var $P=Object.defineProperty,VP=(n,e,t)=>e in n?$P(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,On=(n,e,t)=>(VP(n,typeof e!="symbol"?e+"":e,t),t);class FP{constructor(e){this.classes=e,On(this,"nativeRefs"),On(this,"config"),On(this,"handlers"),On(this,"state"),On(this,"timeouts"),On(this,"domListeners"),On(this,"windowListeners"),On(this,"pointerIds",new Set),On(this,"touchIds",new Set),On(this,"supportsTouchEvents",f8()),On(this,"supportsGestureEvents",BP()),On(this,"bind",(...t)=>{const r={};for(let i of this.classes)new i(this,t).addBindings(r);for(let i in this.nativeRefs)fi(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:t}));return this.config.domTarget?WP(this,r):qP(this,r)}),On(this,"clean",()=>{const{eventOptions:t,domTarget:r}=this.config,i=l.unref(r);i&&bd(i,v8(this.domListeners),t),Object.values(this.timeouts).forEach(clearTimeout),HP(this)}),On(this,"reset",()=>{this.state=E5()}),this.classes=e,this.state=E5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function jP(n,e){"pointerId"in e?n.pointerIds.add(e.pointerId):n.touchIds=new Set(p8(e))}function zP(n,e){"pointerId"in e?n.pointerIds.delete(e.pointerId):p8(e).forEach(t=>n.touchIds.delete(t))}function HP(n){const{config:{window:e,eventOptions:t},windowListeners:r}=n,i=l.unref(e);if(i){for(let o in r){const s=r[o];bd(i,s,t)}n.windowListeners={}}}function UP({config:n,windowListeners:e},t,r=n.eventOptions){const i=l.unref(n.window);i&&(bd(i,e[t],r),delete e[t])}function ZP({config:n,windowListeners:e},t,r=[],i=n.eventOptions){const o=l.unref(n.window);o&&(bd(o,e[t],i),C8(o,e[t]=r,i))}function WP({config:n,domListeners:e},t){const{eventOptions:r,domTarget:i}=n,o=l.unref(i);if(!o)throw new Error("domTarget must be defined");bd(o,v8(e),r);for(let[s,a]of Object.entries(t)){const c=s.slice(2).toLowerCase();e.push([c,b8(...a)])}C8(o,e,r)}function qP({config:n},e){const t={},r=n.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],a=i+r;t[a]=b8(...s)}return t}function v8(n=[]){return n.splice(0,n.length)}function fi(n,e,t){n[e]||(n[e]=[]),n[e].push(t)}function C8(n,e=[],t={}){if(n)for(let[r,i]of e)n.addEventListener(r,i,t)}function bd(n,e=[],t={}){if(n)for(let[r,i]of e)n.removeEventListener(r,i,t)}function A5(n,e){return n.map((t,r)=>t+e[r])}function k8(n,e){return n.map((t,r)=>t-e[r])}function T5(n){return Math.hypot(...n)}function KP(n,e,t){const r=T5(e),i=r===0?0:1/r,o=t===0?0:1/t,s=o*r,a=e.map(d=>o*d),c=e.map(d=>i*d),u=T5(n);return{velocities:a,velocity:s,distance:u,direction:c}}function x5(n){return Math.sign?Math.sign(n):+(n>0)-+(n<0)||+n}function GP(n,e,t){return Math.max(e,Math.min(n,t))}function YP(n,e){return Math.pow(n,e*5)}function S8(n,e,t){return e===0||Math.abs(e)===1/0?YP(n,t):n*e*t/(e+t*n)}function M8(n,e,t,r=.15){return r===0?GP(n,e,t):n<e?-S8(e-n,t-e,r)+e:n>t?+S8(n-t,t-e,r)+t:n}var QP=Object.defineProperty,XP=(n,e,t)=>e in n?QP(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ap=(n,e,t)=>(XP(n,typeof e!="symbol"?e+"":e,t),t);const Na=new Map,JP=n=>n;class e_{constructor(e,t=[]){this.controller=e,this.args=t,ap(this,"debounced",!0),ap(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),ap(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),ap(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,u=this.state._active;this.state.active=u,this.state.first=u&&!c,this.state.last=c&&!u,this.controller.state.shared[this.ingKey]=u}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},a=this.handler(s);return this.state.memo=a!==void 0?a:this.state.memo,s}),this.controller=e,this.args=t}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||JP}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,t){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:t,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:a,lastOffset:c,movement:u}=this.state,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=a[0]===!1?E8(d[0],f[0]):a[0],p=a[1]===!1?E8(d[1],f[1]):a[1],m=this.checkIntentionality([h,p],d);if(m._blocked)return{...m,_movement:d,delta:[0,0]};const y=m._intentional,b=d;let w=[y[0]!==!1?d[0]-y[0]:0,y[1]!==!1?d[1]-y[1]:0];const v=A5(w,c),k=s?t:[0,0];return w=A8(i,A5(w,o),k),{...m,intentional:y[0]!==!1||y[1]!==!1,_initial:o,_movement:b,movement:w,values:e,offset:A8(i,v,k),delta:k8(w,u)}}clean(){this.clearTimeout()}}function E8(n,e){return Math.abs(n)>=e?x5(n)*e:!1}function A8(n,[e,t],[r,i]){const[[o,s],[a,c]]=n;return[M8(e,o,s,r),M8(t,a,c,i)]}function I5({state:n},e,t){const{timeStamp:r,type:i}=e,o=n.values,s=t?0:r-n.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function t_({state:n,config:e,stateKey:t,args:r},i,o){const s=n.offset,a=o.timeStamp,{initial:c,bounds:u}=e,d={...E5()[t],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:a};return{...d,_initial:w8(c,d),_bounds:w8(u,d)}}class n_ extends e_{getInternalMovement(e,t){return k8(e,t.initial)}checkIntentionality(e,t){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=t.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,t){const r=this.getMovement(e);if(!r._blocked){const i=t.timeStamp-this.state.timeStamp;Object.assign(r,KP(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var r_=Object.defineProperty,i_=(n,e,t)=>e in n?r_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Kt=(n,e,t)=>(i_(n,typeof e!="symbol"?e+"":e,t),t);const o_=3;function T8(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}class s_ extends n_{constructor(){super(...arguments),Kt(this,"ingKey","dragging"),Kt(this,"stateKey","drag"),Kt(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:t,pointerId:r}=e;t&&"setPointerCapture"in t&&t.setPointerCapture(r),this.updateGestureState({_dragTarget:t,_dragPointerId:r})}),Kt(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:t}=this.state;if(t&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(t)))try{e.releasePointerCapture(t)}catch{}}),Kt(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),Kt(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),Kt(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),Kt(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),Kt(this,"setUpWindowScrollDetection",e=>{T8(e),ZP(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),Kt(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,T8(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),Kt(this,"setStartState",e=>{const t=g8(e,this.transform);this.updateSharedState(m8(e)),this.updateGestureState({...t_(this,t,e),...I5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(t))}),Kt(this,"onDragStart",e=>{jP(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),Kt(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let t;if(document.pointerLockElement){const{movementX:c,movementY:u}=e;t=A5(this.transform([c,u]),this.state.values)}else t=g8(e,this.transform);const r=this.getKinematics(t,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=m8(e);this.updateSharedState(i);const o=I5(this,e),s=T5(r._movement);let{_dragIsTap:a}=this.state;a&&s>=o_&&(a=!1),this.updateGestureState({...o,...r,_dragIsTap:a}),this.fireGestureHandler()}),Kt(this,"onDragEnd",e=>{if(zP(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const t=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[a,c]=this.state._intentional,[u,d]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,m={...I5(this,e),...this.getMovement(this.state.values)},y=[0,0];m.elapsedTime<p&&(a!==!1&&Math.abs(r)>u&&Math.abs(o)>f&&(y[0]=x5(r)),c!==!1&&Math.abs(i)>d&&Math.abs(s)>h&&(y[1]=x5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...m,tap:t,swipe:y}),this.fireGestureHandler(this.config.filterTaps&&t===!0)}),Kt(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),UP(this.controller,this.stateKey)}),Kt(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),l.nextTick(this.fireGestureHandler))}),Kt(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,t=!1){!this.state._active||this.state._dragStarted||(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(fi(e,"onTouchStart",this.onDragStart),fi(e,"onTouchMove",this.onDragChange),fi(e,"onTouchEnd",this.onDragEnd),fi(e,"onTouchCancel",this.onDragEnd)):(fi(e,"onPointerDown",this.onDragStart),fi(e,"onPointerMove",this.onDragChange),fi(e,"onPointerUp",this.onDragEnd),fi(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const t=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";fi(e,t,this.onClick)}}}function a_(n,e){let t,r=[],i,o=!1;function s(...a){return o&&t===this&&e(a,r)||(i=n.apply(this,a),o=!0,t=this,r=a),i}return s}function lp(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;let t,r,i;if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!lp(n[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=n.entries();!(r=o.next()).done;)if(!lp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&n instanceof Element)return!1;for(r=t;r--!==0;)if(!(i[r]==="_owner"&&n.$$typeof)&&!lp(n[i[r]],e[i[r]]))return!1;return!0}return n!==n&&e!==e}function l_(n,e){try{return lp(n,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}function O5(n={},e){const t={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":t[r]=i.call(t,n[r],r,n);break;case"object":t[r]=O5(n[r],i);break;case"boolean":i&&(t[r]=n[r]);break}return t}const c_=180,u_=.15,d_=.5,f_=50,h_=250,x8={...{threshold(n=0){return Jo(n)},rubberband(n=0){switch(n){case!0:return Jo(u_);case!1:return Jo(0);default:return Jo(n)}},enabled(n=!0){return n},triggerAllEvents(n=!1){return n},initial(n=0){return typeof n=="function"?n:Jo(n)},transform:!0},axis:!0,lockDirection(n=!1){return n},bounds(n={}){if(typeof n=="function")return o=>x8.bounds(n(o));const{left:e=-1/0,right:t=1/0,top:r=-1/0,bottom:i=1/0}=n;return[[e,t],[r,i]]}},p_=typeof window<"u"&&window.document&&window.document.createElement,m_={enabled(n=!0){return n},domTarget:!0,window(n=p_?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform:!0},g_={...x8,useTouch(n=!0){return n&&f8()},preventWindowScrollY(n=!1){return n},threshold(n,e,{filterTaps:t=!1,lockDirection:r=!1,axis:i=void 0}){const o=Jo(n,t?3:r||i?1:0);return this.filterTaps=t,o},swipeVelocity(n=d_){return Jo(n)},swipeDistance(n=f_){return Jo(n)},swipeDuration(n=h_){return n},delay(n=0){switch(n){case!0:return c_;case!1:return 0;default:return n}}};function y_(n){return O5(n,m_)}function b_(n={}){return O5(n,g_)}function w_({domTarget:n,eventOptions:e,window:t,enabled:r,...i}){const o=y_({domTarget:n,eventOptions:e,window:t,enabled:r});return o.drag=b_(i),o}function v_(n,e,t={}){const r=C_(n),i=new FP(r);return i.config=e,i.handlers=n,i.nativeRefs=t,l.getCurrentInstance()&&!e.manual&&(l.onMounted(i.bind),l.onUnmounted(i.clean)),i}function C_(n){const e=new Set;return n.drag&&e.add(Na.get("drag")),n.wheel&&e.add(Na.get("wheel")),n.scroll&&e.add(Na.get("scroll")),n.move&&e.add(Na.get("move")),n.pinch&&e.add(Na.get("pinch")),n.hover&&e.add(Na.get("hover")),e}function I8(n,e={}){Na.set("drag",s_);const t=l.ref();return t.value||(t.value=a_(w_,l_)),v_({drag:n},t.value(e))}let k_=Symbol("headlessui.useid"),S_=0;function M_(){return l.inject(k_,()=>`${++S_}`)()}function O8(n){var e;if(n==null||n.value==null)return null;let t=(e=n.value.$el)!=null?e:n.value;return t instanceof Node?t:null}function wd(n,e,...t){if(n in e){let i=e[n];return typeof i=="function"?i(...t):i}let r=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wd),r}var E_=Object.defineProperty,A_=(n,e,t)=>e in n?E_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,D8=(n,e,t)=>(A_(n,typeof e!="symbol"?e+"":e,t),t);let T_=class{constructor(){D8(this,"current",this.detect()),D8(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},x_=new T_;var N8=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(N8||{}),es=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(es||{});function P8({visible:n=!0,features:e=0,ourProps:t,theirProps:r,...i}){var o;let s=L8(r,t),a=Object.assign(i,{props:s});if(n||e&2&&s.static)return D5(a);if(e&1){let c=(o=s.unmount)==null||o?0:1;return wd(c,{0(){return null},1(){return D5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return D5(a)}function D5({props:n,attrs:e,slots:t,slot:r,name:i}){var o,s;let{as:a,...c}=B8(n,["unmount","static"]),u=(o=t.default)==null?void 0:o.call(t,r),d={};if(r){let f=!1,h=[];for(let[p,m]of Object.entries(r))typeof m=="boolean"&&(f=!0),m===!0&&h.push(p);f&&(d["data-headlessui-state"]=h.join(" "))}if(a==="template"){if(u=_8(u??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=u??[];if(!I_(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(y=>y.trim()).filter((y,b,w)=>w.indexOf(y)===b).sort((y,b)=>y.localeCompare(b)).map(y=>` - ${y}`).join(`
|
|
2
2
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(`
|
|
3
3
|
`)].join(`
|
|
4
4
|
`));let p=L8((s=f.props)!=null?s:{},c,d),m=l.cloneVNode(f,p,!0);for(let y in p)y.startsWith("on")&&(m.props||(m.props={}),m.props[y]=p[y]);return m}return Array.isArray(u)&&u.length===1?u[0]:u}return l.h(a,Object.assign({},c,d),{default:()=>u})}function _8(n){return n.flatMap(e=>e.type===l.Fragment?_8(e.children):[e])}function L8(...n){if(n.length===0)return{};if(n.length===1)return n[0];let e={},t={};for(let r of n)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(t[i]!=null||(t[i]=[]),t[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(e,{[r](i,...o){let s=t[r];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return e}function B8(n,e=[]){let t=Object.assign({},n);for(let r of e)r in t&&delete t[r];return t}function I_(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}let R8=Symbol("Context");var to=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(to||{});function O_(){return $8()!==null}function $8(){return l.inject(R8,null)}function D_(n){l.provide(R8,n)}function N_(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e}))}function N5(){let n=[],e={addEventListener(t,r,i,o){return t.addEventListener(r,i,o),e.add(()=>t.removeEventListener(r,i,o))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);e.add(()=>cancelAnimationFrame(r))},nextFrame(...t){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);e.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return N_(()=>{r.current&&t[0]()}),e.add(()=>{r.current=!1})},style(t,r,i){let o=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:i}),this.add(()=>{Object.assign(t.style,{[r]:o})})},group(t){let r=N5();return t(r),this.add(()=>r.dispose())},add(t){return n.push(t),()=>{let r=n.indexOf(t);if(r>=0)for(let i of n.splice(r,1))i()}},dispose(){for(let t of n.splice(0))t()}};return e}function P_(n){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,n(...t)}}function P5(n,...e){n&&e.length>0&&n.classList.add(...e)}function cp(n,...e){n&&e.length>0&&n.classList.remove(...e)}var _5=(n=>(n.Finished="finished",n.Cancelled="cancelled",n))(_5||{});function __(n,e){let t=N5();if(!n)return t.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(n),[o,s]=[r,i].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c});return o!==0?t.setTimeout(()=>e("finished"),o+s):e("finished"),t.add(()=>e("cancelled")),t.dispose}function V8(n,e,t,r,i,o){let s=N5(),a=o!==void 0?P_(o):()=>{};return cp(n,...i),P5(n,...e,...t),s.nextFrame(()=>{cp(n,...t),P5(n,...r),s.add(__(n,c=>(cp(n,...r,...e),P5(n,...i),a(c))))}),s.add(()=>cp(n,...e,...t,...r,...i)),s.add(()=>a("cancelled")),s.dispose}function Pa(n=""){return n.split(/\s+/).filter(e=>e.length>1)}let L5=Symbol("TransitionContext");var L_=(n=>(n.Visible="visible",n.Hidden="hidden",n))(L_||{});function B_(){return l.inject(L5,null)!==null}function R_(){let n=l.inject(L5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function $_(){let n=l.inject(B5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}let B5=Symbol("NestingContext");function up(n){return"children"in n?up(n.children):n.value.filter(({state:e})=>e==="visible").length>0}function F8(n){let e=l.ref([]),t=l.ref(!1);l.onMounted(()=>t.value=!0),l.onUnmounted(()=>t.value=!1);function r(o,s=es.Hidden){let a=e.value.findIndex(({id:c})=>c===o);a!==-1&&(wd(s,{[es.Unmount](){e.value.splice(a,1)},[es.Hidden](){e.value[a].state="hidden"}}),!up(e)&&t.value&&(n==null||n()))}function i(o){let s=e.value.find(({id:a})=>a===o);return s?s.state!=="visible"&&(s.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,es.Unmount)}return{children:e,register:i,unregister:r}}let j8=N8.RenderStrategy,V_=l.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r,expose:i}){let o=l.ref(0);function s(){o.value|=to.Opening,e("beforeEnter")}function a(){o.value&=~to.Opening,e("afterEnter")}function c(){o.value|=to.Closing,e("beforeLeave")}function u(){o.value&=~to.Closing,e("afterLeave")}if(!B_()&&O_())return()=>l.h(z8,{...n,onBeforeEnter:s,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:u},r);let d=l.ref(null),f=l.computed(()=>n.unmount?es.Unmount:es.Hidden);i({el:d,$el:d});let{show:h,appear:p}=R_(),{register:m,unregister:y}=$_(),b=l.ref(h.value?"visible":"hidden"),w={value:!0},v=M_(),k={value:!1},C=F8(()=>{!k.value&&b.value!=="hidden"&&(b.value="hidden",y(v),u())});l.onMounted(()=>{let $=m(v);l.onUnmounted($)}),l.watchEffect(()=>{if(f.value===es.Hidden&&v){if(h.value&&b.value!=="visible"){b.value="visible";return}wd(b.value,{hidden:()=>y(v),visible:()=>m(v)})}});let T=Pa(n.enter),S=Pa(n.enterFrom),A=Pa(n.enterTo),O=Pa(n.entered),I=Pa(n.leave),P=Pa(n.leaveFrom),D=Pa(n.leaveTo);l.onMounted(()=>{l.watchEffect(()=>{if(b.value==="visible"){let $=O8(d);if($ instanceof Comment&&$.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function _($){let R=w.value&&!p.value,B=O8(d);!B||!(B instanceof HTMLElement)||R||(k.value=!0,h.value&&s(),h.value||c(),$(h.value?V8(B,T,S,A,O,N=>{k.value=!1,N===_5.Finished&&a()}):V8(B,I,P,D,O,N=>{k.value=!1,N===_5.Finished&&(up(C)||(b.value="hidden",y(v),u()))})))}return l.onMounted(()=>{l.watch([h],($,R,B)=>{_(B),w.value=!1},{immediate:!0})}),l.provide(B5,C),D_(l.computed(()=>wd(b.value,{visible:to.Open,hidden:to.Closed})|o.value)),()=>{let{appear:$,show:R,enter:B,enterFrom:N,enterTo:K,entered:H,leave:Q,leaveFrom:te,leaveTo:le,...W}=n,Z={ref:d},F={...W,...p.value&&h.value&&x_.isServer?{class:l.normalizeClass([t.class,W.class,...T,...S])}:{}};return P8({theirProps:F,ourProps:Z,slot:{},slots:r,attrs:t,features:j8,visible:b.value==="visible",name:"TransitionChild"})}}}),F_=V_,z8=l.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r}){let i=$8(),o=l.computed(()=>n.show===null&&i!==null?(i.value&to.Open)===to.Open:n.show);l.watchEffect(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=l.ref(o.value?"visible":"hidden"),a=F8(()=>{s.value="hidden"}),c=l.ref(!0),u={show:o,appear:l.computed(()=>n.appear||!c.value)};return l.onMounted(()=>{l.watchEffect(()=>{c.value=!1,o.value?s.value="visible":up(a)||(s.value="hidden")})}),l.provide(B5,a),l.provide(L5,u),()=>{let d=B8(n,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:n.unmount};return P8({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[l.h(F_,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...t,...f,...d},r.default)]},attrs:{},features:j8,visible:s.value==="visible",name:"Transition"})}}});function R5(n){return l.getCurrentScope()?(l.onScopeDispose(n),!0):!1}function gn(n){return typeof n=="function"?n():l.unref(n)}const $5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H8=n=>n!=null,j_=Object.prototype.toString,U8=n=>j_.call(n)==="[object Object]",yn=()=>{},z_=H_();function H_(){var n,e;return $5&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Z8(n,e){function t(...r){return new Promise((i,o)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return t}function U_(n,e={}){let t,r,i=yn;const o=a=>{clearTimeout(a),i(),i=yn};return a=>{const c=gn(n),u=gn(e.maxWait);return t&&o(t),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{t&&o(t),r=null,d(a())},u)),t=setTimeout(()=>{r&&o(r),r=null,d(a())},c)})}}function Z_(...n){let e=0,t,r=!0,i=yn,o,s,a,c,u;!l.isRef(n[0])&&typeof n[0]=="object"?{delay:s,trailing:a=!0,leading:c=!0,rejectOnCancel:u=!1}=n[0]:[s,a=!0,c=!0,u=!1]=n;const d=()=>{t&&(clearTimeout(t),t=void 0,i(),i=yn)};return h=>{const p=gn(s),m=Date.now()-e,y=()=>o=h();return d(),p<=0?(e=Date.now(),y()):(m>p&&(c||!r)?(e=Date.now(),y()):a&&(o=new Promise((b,w)=>{i=u?w:b,t=setTimeout(()=>{e=Date.now(),r=!0,b(y()),d()},Math.max(0,p-m))})),!c&&!t&&(t=setTimeout(()=>r=!0,p)),r=!1,o)}}function W_(n,e){var t;if(typeof n=="number")return n+e;const r=((t=n.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:t[0])||"",i=n.slice(r.length),o=Number.parseFloat(r)+e;return Number.isNaN(o)?n:o+i}function W8(n){return n||l.getCurrentInstance()}function q8(n,e=200,t={}){return Z8(U_(e,t),n)}function q_(n,e=200,t=!1,r=!0,i=!1){return Z8(Z_(e,t,r,i),n)}function K_(n,e=!0,t){W8()?l.onMounted(n,t):e?n():l.nextTick(n)}function G_(n,e){W8(e)&&l.onUnmounted(n,e)}function Vr(n){var e;const t=gn(n);return(e=t==null?void 0:t.$el)!=null?e:t}const ts=$5?window:void 0;function Ye(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=ts):[e,t,r,i]=n,!e)return yn;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},a=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=l.watch(()=>[Vr(e),gn(i)],([d,f])=>{if(s(),!d)return;const h=U8(f)?{...f}:f;o.push(...t.flatMap(p=>r.map(m=>a(d,p,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return R5(u),u}let K8=!1;function V5(n,e,t={}){const{window:r=ts,ignore:i=[],capture:o=!0,detectIframe:s=!1}=t;if(!r)return yn;z_&&!K8&&(K8=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",yn)),r.document.documentElement.addEventListener("click",yn));let a=!0;const c=h=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(m=>m===h.target||h.composedPath().includes(m));{const m=Vr(p);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[Ye(r,"click",h=>{const p=Vr(n);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(a=!c(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),Ye(r,"pointerdown",h=>{const p=Vr(n);a=!c(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),s&&Ye(r,"blur",h=>{setTimeout(()=>{var p;const m=Vr(n);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>d.forEach(h=>h())}const Y_=500,Q_=10;function X_(n,e,t){var r,i;const o=l.computed(()=>Vr(n));let s,a;function c(){s&&(clearTimeout(s),s=void 0),a=void 0}function u(m){var y,b,w,v;(y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||(c(),(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation(),a={x:m.x,y:m.y},s=setTimeout(()=>e(m),(v=t==null?void 0:t.delay)!=null?v:Y_))}function d(m){var y,b,w,v;if((y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||!a||(t==null?void 0:t.distanceThreshold)===!1)return;(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation();const k=m.x-a.x,C=m.y-a.y;Math.sqrt(k*k+C*C)>=((v=t==null?void 0:t.distanceThreshold)!=null?v:Q_)&&c()}const f={capture:(r=t==null?void 0:t.modifiers)==null?void 0:r.capture,once:(i=t==null?void 0:t.modifiers)==null?void 0:i.once},h=[Ye(o,"pointerdown",u,f),Ye(o,"pointermove",d,f),Ye(o,["pointerup","pointerleave"],c,f)];return()=>h.forEach(m=>m())}function J_(){const n=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{n.value=!0},e),n}function G8(n){const e=J_();return l.computed(()=>(e.value,!!n()))}function vd(n,e={}){const{window:t=ts}=e,r=G8(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const o=l.ref(!1),s=u=>{o.value=u.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=l.watchEffect(()=>{r.value&&(a(),i=t.matchMedia(gn(n)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return R5(()=>{c(),a(),i=void 0}),o}const eL={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Y8(n,e={}){function t(d,f){let h=gn(n[gn(d)]);return f!=null&&(h=W_(h,f)),typeof h=="number"&&(h=`${h}px`),h}const{window:r=ts,strategy:i="min-width"}=e;function o(d){return r?r.matchMedia(d).matches:!1}const s=d=>vd(()=>`(min-width: ${t(d)})`,e),a=d=>vd(()=>`(max-width: ${t(d)})`,e),c=Object.keys(n).reduce((d,f)=>(Object.defineProperty(d,f,{get:()=>i==="min-width"?s(f):a(f),enumerable:!0,configurable:!0}),d),{});function u(){const d=Object.keys(n).map(f=>[f,s(f)]);return l.computed(()=>d.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(c,{greaterOrEqual:s,smallerOrEqual:a,greater(d){return vd(()=>`(min-width: ${t(d,.1)})`,e)},smaller(d){return vd(()=>`(max-width: ${t(d,-.1)})`,e)},between(d,f){return vd(()=>`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`,e)},isGreater(d){return o(`(min-width: ${t(d,.1)})`)},isGreaterOrEqual(d){return o(`(min-width: ${t(d)})`)},isSmaller(d){return o(`(max-width: ${t(d,-.1)})`)},isSmallerOrEqual(d){return o(`(max-width: ${t(d)})`)},isInBetween(d,f){return o(`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`)},current:u,active(){const d=u();return l.computed(()=>d.value.length===0?"":d.value.at(-1))}})}function tL(n,e={}){const t=l.ref(!1),r=l.shallowRef(null);let i=0,o=!0;if($5){const s=typeof e=="function"?{onDrop:e}:e,a=c=>{var u,d;const f=Array.from((d=(u=c.dataTransfer)==null?void 0:u.files)!=null?d:[]);return r.value=f.length===0?null:f};Ye(n,"dragenter",c=>{var u,d;const f=Array.from(((u=c==null?void 0:c.dataTransfer)==null?void 0:u.items)||[]).map(h=>h.kind==="file"?h.type:null).filter(H8);if(s.dataTypes&&c.dataTransfer){const h=l.unref(s.dataTypes);if(o=typeof h=="function"?h(f):h?h.some(p=>f.includes(p)):!0,!o)return}c.preventDefault(),i+=1,t.value=!0,(d=s.onEnter)==null||d.call(s,a(c),c)}),Ye(n,"dragover",c=>{var u;o&&(c.preventDefault(),(u=s.onOver)==null||u.call(s,a(c),c))}),Ye(n,"dragleave",c=>{var u;o&&(c.preventDefault(),i-=1,i===0&&(t.value=!1),(u=s.onLeave)==null||u.call(s,a(c),c))}),Ye(n,"drop",c=>{var u;c.preventDefault(),i=0,t.value=!1,(u=s.onDrop)==null||u.call(s,a(c),c)})}return{files:r,isOverDropZone:t}}function nL(n,e,t={}){const{root:r,rootMargin:i="0px",threshold:o=.1,window:s=ts,immediate:a=!0}=t,c=G8(()=>s&&"IntersectionObserver"in s),u=l.computed(()=>{const m=gn(n);return(Array.isArray(m)?m:[m]).map(Vr).filter(H8)});let d=yn;const f=l.ref(a),h=c.value?l.watch(()=>[u.value,Vr(r),f.value],([m,y])=>{if(d(),!f.value||!m.length)return;const b=new IntersectionObserver(e,{root:Vr(y),rootMargin:i,threshold:o});m.forEach(w=>w&&b.observe(w)),d=()=>{b.disconnect(),d=yn}},{immediate:a,flush:"post"}):yn,p=()=>{d(),h(),f.value=!1};return R5(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}const Q8=1;function rL(n,e={}){const{throttle:t=0,idle:r=200,onStop:i=yn,onScroll:o=yn,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:u=ts,onError:d=A=>{console.error(A)}}=e,f=l.ref(0),h=l.ref(0),p=l.computed({get(){return f.value},set(A){y(A,void 0)}}),m=l.computed({get(){return h.value},set(A){y(void 0,A)}});function y(A,O){var I,P,D;if(!u)return;const _=gn(n);_&&((D=_ instanceof Document?u.document.body:_)==null||D.scrollTo({top:(I=gn(O))!=null?I:m.value,left:(P=gn(A))!=null?P:p.value,behavior:gn(c)}))}const b=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),k=A=>{b.value&&(b.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(A))},C=q8(k,t+r),T=A=>{var O;if(!u)return;const I=((O=A==null?void 0:A.document)==null?void 0:O.documentElement)||(A==null?void 0:A.documentElement)||Vr(A),{display:P,flexDirection:D}=getComputedStyle(I),_=I.scrollLeft;v.left=_<f.value,v.right=_>f.value;const $=Math.abs(_)<=(s.left||0),R=Math.abs(_)+I.clientWidth>=I.scrollWidth-(s.right||0)-Q8;P==="flex"&&D==="row-reverse"?(w.left=R,w.right=$):(w.left=$,w.right=R),f.value=_;let B=I.scrollTop;A===u.document&&!B&&(B=u.document.body.scrollTop),v.top=B<h.value,v.bottom=B>h.value;const N=Math.abs(B)<=(s.top||0),K=Math.abs(B)+I.clientHeight>=I.scrollHeight-(s.bottom||0)-Q8;P==="flex"&&D==="column-reverse"?(w.top=K,w.bottom=N):(w.top=N,w.bottom=K),h.value=B},S=A=>{var O;if(!u)return;const I=(O=A.target.documentElement)!=null?O:A.target;T(I),b.value=!0,C(A),o(A)};return Ye(n,"scroll",t?q_(S,t,!0,!1):S,a),K_(()=>{try{const A=gn(n);if(!A)return;T(A)}catch(A){d(A)}}),Ye(n,"scrollend",k,a),{x:p,y:m,isScrolling:b,arrivedState:w,directions:v,measure(){const A=gn(n);u&&A&&T(A)}}}function iL(n,e={}){const{threshold:t=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:s=!0,window:a=ts}=e,c=l.reactive({x:0,y:0}),u=l.reactive({x:0,y:0}),d=l.computed(()=>c.x-u.x),f=l.computed(()=>c.y-u.y),{max:h,abs:p}=Math,m=l.computed(()=>h(p(d.value),p(f.value))>=t),y=l.ref(!1),b=l.computed(()=>m.value?p(d.value)>p(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none"),w=I=>[I.touches[0].clientX,I.touches[0].clientY],v=(I,P)=>{c.x=I,c.y=P},k=(I,P)=>{u.x=I,u.y=P};let C;const T=oL(a==null?void 0:a.document);s?C=T?{passive:!0}:{capture:!1}:C=T?{passive:!1,capture:!0}:{capture:!0};const S=I=>{y.value&&(i==null||i(I,b.value)),y.value=!1},A=[Ye(n,"touchstart",I=>{if(I.touches.length!==1)return;C.capture&&!C.passive&&I.preventDefault();const[P,D]=w(I);v(P,D),k(P,D),o==null||o(I)},C),Ye(n,"touchmove",I=>{if(I.touches.length!==1)return;const[P,D]=w(I);k(P,D),!y.value&&m.value&&(y.value=!0),y.value&&(r==null||r(I))},C),Ye(n,["touchend","touchcancel"],S,C)];return{isPassiveEventSupported:T,isSwiping:y,direction:b,coordsStart:c,coordsEnd:u,lengthX:d,lengthY:f,stop:()=>A.forEach(I=>I())}}function oL(n){if(!n)return!1;let e=!1;const t={get passive(){return e=!0,!1}};return n.addEventListener("x",yn,t),n.removeEventListener("x",yn),e}function sL(n={}){const{window:e=ts,behavior:t="auto"}=n;if(!e)return{x:l.ref(0),y:l.ref(0)};const r=l.ref(e.scrollX),i=l.ref(e.scrollY),o=l.computed({get(){return r.value},set(a){scrollTo({left:a,behavior:t})}}),s=l.computed({get(){return i.value},set(a){scrollTo({top:a,behavior:t})}});return Ye(e,"scroll",()=>{r.value=e.scrollX,i.value=e.scrollY},{capture:!1,passive:!0}),{x:o,y:s}}const X8=1/60*1e3,aL=typeof performance<"u"?()=>performance.now():()=>Date.now(),J8=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(aL()),X8);function lL(n){let e=[],t=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(c,u=!1,d=!1)=>{const f=d&&i,h=f?e:t;return u&&s.add(c),h.indexOf(c)===-1&&(h.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=t.indexOf(c);u!==-1&&t.splice(u,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[e,t]=[t,e],t.length=0,r=e.length,r)for(let u=0;u<r;u++){const d=e[u];d(c),s.has(d)&&(a.schedule(d),n())}i=!1,o&&(o=!1,a.process(c))}};return a}const cL=40;let F5=!0,Cd=!1,j5=!1;const V0={delta:0,timestamp:0},kd=["read","update","preRender","render","postRender"],dp=kd.reduce((n,e)=>(n[e]=lL(()=>Cd=!0),n),{}),z5=kd.reduce((n,e)=>{const t=dp[e];return n[e]=(r,i=!1,o=!1)=>(Cd||fL(),t.schedule(r,i,o)),n},{}),uL=kd.reduce((n,e)=>(n[e]=dp[e].cancel,n),{});kd.reduce((n,e)=>(n[e]=()=>dp[e].process(V0),n),{});const dL=n=>dp[n].process(V0),e9=n=>{Cd=!1,V0.delta=F5?X8:Math.max(Math.min(n-V0.timestamp,cL),1),V0.timestamp=n,j5=!0,kd.forEach(dL),j5=!1,Cd&&(F5=!1,J8(e9))},fL=()=>{Cd=!0,F5=!0,j5||J8(e9)},t9=()=>V0;function n9(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}var H5=function(){},Sd=function(){};process.env.NODE_ENV!=="production"&&(H5=function(n,e){!n&&typeof console<"u"&&console.warn(e)},Sd=function(n,e){if(!n)throw new Error(e)});const U5=(n,e,t)=>Math.min(Math.max(t,n),e),Z5=.001,hL=.01,r9=10,pL=.05,mL=1;function gL({duration:n=800,bounce:e=.25,velocity:t=0,mass:r=1}){let i,o;H5(n<=r9*1e3,"Spring duration must be 10 seconds or less");let s=1-e;s=U5(pL,mL,s),n=U5(hL,r9,n/1e3),s<1?(i=u=>{const d=u*s,f=d*n,h=d-t,p=W5(u,s),m=Math.exp(-f);return Z5-h/p*m},o=u=>{const f=u*s*n,h=f*t+t,p=Math.pow(s,2)*Math.pow(u,2)*n,m=Math.exp(-f),y=W5(Math.pow(u,2),s);return(-i(u)+Z5>0?-1:1)*((h-p)*m)/y}):(i=u=>{const d=Math.exp(-u*n),f=(u-t)*n+1;return-Z5+d*f},o=u=>{const d=Math.exp(-u*n),f=(t-u)*(n*n);return d*f});const a=5/n,c=bL(i,o,a);if(n=n*1e3,isNaN(c))return{stiffness:100,damping:10,duration:n};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:n}}}const yL=12;function bL(n,e,t){let r=t;for(let i=1;i<yL;i++)r=r-n(r)/e(r);return r}function W5(n,e){return n*Math.sqrt(1-e*e)}const wL=["duration","bounce"],vL=["stiffness","damping","mass"];function i9(n,e){return e.some(t=>n[t]!==void 0)}function CL(n){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!i9(n,vL)&&i9(n,wL)){const t=gL(n);e=Object.assign(Object.assign(Object.assign({},e),t),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function q5(n){var{from:e=0,to:t=1,restSpeed:r=2,restDelta:i}=n,o=n9(n,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:c,mass:u,velocity:d,duration:f,isResolvedFromDuration:h}=CL(o),p=o9,m=o9;function y(){const b=d?-(d/1e3):0,w=t-e,v=c/(2*Math.sqrt(a*u)),k=Math.sqrt(a/u)/1e3;if(i===void 0&&(i=Math.min(Math.abs(t-e)/100,.4)),v<1){const C=W5(k,v);p=T=>{const S=Math.exp(-v*k*T);return t-S*((b+v*k*w)/C*Math.sin(C*T)+w*Math.cos(C*T))},m=T=>{const S=Math.exp(-v*k*T);return v*k*S*(Math.sin(C*T)*(b+v*k*w)/C+w*Math.cos(C*T))-S*(Math.cos(C*T)*(b+v*k*w)-C*w*Math.sin(C*T))}}else if(v===1)p=C=>t-Math.exp(-k*C)*(w+(b+k*w)*C);else{const C=k*Math.sqrt(v*v-1);p=T=>{const S=Math.exp(-v*k*T),A=Math.min(C*T,300);return t-S*((b+v*k*w)*Math.sinh(A)+C*w*Math.cosh(A))/C}}}return y(),{next:b=>{const w=p(b);if(h)s.done=b>=f;else{const v=m(b)*1e3,k=Math.abs(v)<=r,C=Math.abs(t-w)<=i;s.done=k&&C}return s.value=s.done?t:w,s},flipTarget:()=>{d=-d,[e,t]=[t,e],y()}}}q5.needsInterpolation=(n,e)=>typeof n=="string"||typeof e=="string";const o9=n=>0,s9=(n,e,t)=>{const r=e-n;return r===0?1:(t-n)/r},K5=(n,e,t)=>-t*n+t*e+n,a9=(n,e)=>t=>Math.max(Math.min(t,e),n),Md=n=>n%1?Number(n.toFixed(5)):n,Ed=/(-)?([\d]*\.?[\d])+/g,G5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kL=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ad(n){return typeof n=="string"}const Td={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xd=Object.assign(Object.assign({},Td),{transform:a9(0,1)}),fp=Object.assign(Object.assign({},Td),{default:1}),Y5=n=>({test:e=>Ad(e)&&e.endsWith(n)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${n}`}),_a=Y5("deg"),Id=Y5("%"),ve=Y5("px"),l9=Object.assign(Object.assign({},Id),{parse:n=>Id.parse(n)/100,transform:n=>Id.transform(n*100)}),Q5=(n,e)=>t=>!!(Ad(t)&&kL.test(t)&&t.startsWith(n)||e&&Object.prototype.hasOwnProperty.call(t,e)),c9=(n,e,t)=>r=>{if(!Ad(r))return r;const[i,o,s,a]=r.match(Ed);return{[n]:parseFloat(i),[e]:parseFloat(o),[t]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},La={test:Q5("hsl","hue"),parse:c9("hue","saturation","lightness"),transform:({hue:n,saturation:e,lightness:t,alpha:r=1})=>"hsla("+Math.round(n)+", "+Id.transform(Md(e))+", "+Id.transform(Md(t))+", "+Md(xd.transform(r))+")"},SL=a9(0,255),X5=Object.assign(Object.assign({},Td),{transform:n=>Math.round(SL(n))}),ns={test:Q5("rgb","red"),parse:c9("red","green","blue"),transform:({red:n,green:e,blue:t,alpha:r=1})=>"rgba("+X5.transform(n)+", "+X5.transform(e)+", "+X5.transform(t)+", "+Md(xd.transform(r))+")"};function ML(n){let e="",t="",r="",i="";return n.length>5?(e=n.substr(1,2),t=n.substr(3,2),r=n.substr(5,2),i=n.substr(7,2)):(e=n.substr(1,1),t=n.substr(2,1),r=n.substr(3,1),i=n.substr(4,1),e+=e,t+=t,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const J5={test:Q5("#"),parse:ML,transform:ns.transform},Dn={test:n=>ns.test(n)||J5.test(n)||La.test(n),parse:n=>ns.test(n)?ns.parse(n):La.test(n)?La.parse(n):J5.parse(n),transform:n=>Ad(n)?n:n.hasOwnProperty("red")?ns.transform(n):La.transform(n)},u9="${c}",d9="${n}";function EL(n){var e,t,r,i;return isNaN(n)&&Ad(n)&&((t=(e=n.match(Ed))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+((i=(r=n.match(G5))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function f9(n){typeof n=="number"&&(n=`${n}`);const e=[];let t=0;const r=n.match(G5);r&&(t=r.length,n=n.replace(G5,u9),e.push(...r.map(Dn.parse)));const i=n.match(Ed);return i&&(n=n.replace(Ed,d9),e.push(...i.map(Td.parse))),{values:e,numColors:t,tokenised:n}}function h9(n){return f9(n).values}function p9(n){const{values:e,numColors:t,tokenised:r}=f9(n),i=e.length;return o=>{let s=r;for(let a=0;a<i;a++)s=s.replace(a<t?u9:d9,a<t?Dn.transform(o[a]):Md(o[a]));return s}}const AL=n=>typeof n=="number"?0:n;function TL(n){const e=h9(n);return p9(n)(e.map(AL))}const Od={test:EL,parse:h9,createTransformer:p9,getAnimatableNone:TL},xL=new Set(["brightness","contrast","saturate","opacity"]);function IL(n){let[e,t]=n.slice(0,-1).split("(");if(e==="drop-shadow")return n;const[r]=t.match(Ed)||[];if(!r)return n;const i=t.replace(r,"");let o=xL.has(e)?1:0;return r!==t&&(o*=100),e+"("+o+i+")"}const OL=/([a-z-]*)\(.*?\)/g,eb=Object.assign(Object.assign({},Od),{getAnimatableNone:n=>{const e=n.match(OL);return e?e.map(IL).join(" "):n}});function tb(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function m9({hue:n,saturation:e,lightness:t,alpha:r}){n/=360,e/=100,t/=100;let i=0,o=0,s=0;if(!e)i=o=s=t;else{const a=t<.5?t*(1+e):t+e-t*e,c=2*t-a;i=tb(c,a,n+1/3),o=tb(c,a,n),s=tb(c,a,n-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const DL=(n,e,t)=>{const r=n*n,i=e*e;return Math.sqrt(Math.max(0,t*(i-r)+r))},NL=[J5,ns,La],g9=n=>NL.find(e=>e.test(n)),y9=n=>`'${n}' is not an animatable color. Use the equivalent color code instead.`,b9=(n,e)=>{let t=g9(n),r=g9(e);Sd(!!t,y9(n)),Sd(!!r,y9(e));let i=t.parse(n),o=r.parse(e);t===La&&(i=m9(i),t=ns),r===La&&(o=m9(o),r=ns);const s=Object.assign({},i);return a=>{for(const c in s)c!=="alpha"&&(s[c]=DL(i[c],o[c],a));return s.alpha=K5(i.alpha,o.alpha,a),t.transform(s)}},PL=n=>typeof n=="number",_L=(n,e)=>t=>e(n(t)),w9=(...n)=>n.reduce(_L);function v9(n,e){return PL(n)?t=>K5(n,e,t):Dn.test(n)?b9(n,e):S9(n,e)}const C9=(n,e)=>{const t=[...n],r=t.length,i=n.map((o,s)=>v9(o,e[s]));return o=>{for(let s=0;s<r;s++)t[s]=i[s](o);return t}},LL=(n,e)=>{const t=Object.assign(Object.assign({},n),e),r={};for(const i in t)n[i]!==void 0&&e[i]!==void 0&&(r[i]=v9(n[i],e[i]));return i=>{for(const o in r)t[o]=r[o](i);return t}};function k9(n){const e=Od.parse(n),t=e.length;let r=0,i=0,o=0;for(let s=0;s<t;s++)r||typeof e[s]=="number"?r++:e[s].hue!==void 0?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const S9=(n,e)=>{const t=Od.createTransformer(e),r=k9(n),i=k9(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?w9(C9(r.parsed,i.parsed),t):(H5(!0,`Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?e:n}`)},BL=(n,e)=>t=>K5(n,e,t);function RL(n){if(typeof n=="number")return BL;if(typeof n=="string")return Dn.test(n)?b9:S9;if(Array.isArray(n))return C9;if(typeof n=="object")return LL}function $L(n,e,t){const r=[],i=t||RL(n[0]),o=n.length-1;for(let s=0;s<o;s++){let a=i(n[s],n[s+1]);if(e){const c=Array.isArray(e)?e[s]:e;a=w9(c,a)}r.push(a)}return r}function VL([n,e],[t]){return r=>t(s9(n,e,r))}function FL(n,e){const t=n.length,r=t-1;return i=>{let o=0,s=!1;if(i<=n[0]?s=!0:i>=n[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<t&&!(n[c]>i||c===r);c++);o=c-1}const a=s9(n[o],n[o+1],i);return e[o](a)}}function M9(n,e,{clamp:t=!0,ease:r,mixer:i}={}){const o=n.length;Sd(o===e.length,"Both input and output ranges must be the same length"),Sd(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),n[0]>n[o-1]&&(n=[].concat(n),e=[].concat(e),n.reverse(),e.reverse());const s=$L(e,r,i),a=o===2?VL(n,s):FL(n,s);return t?c=>a(U5(n[0],n[o-1],c)):a}const hp=n=>e=>1-n(1-e),nb=n=>e=>e<=.5?n(2*e)/2:(2-n(2*(1-e)))/2,jL=n=>e=>Math.pow(e,n),E9=n=>e=>e*e*((n+1)*e-n),zL=n=>{const e=E9(n);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},A9=1.525,HL=4/11,UL=8/11,ZL=9/10,T9=n=>n,rb=jL(2),WL=hp(rb),x9=nb(rb),I9=n=>1-Math.sin(Math.acos(n)),O9=hp(I9),qL=nb(O9),ib=E9(A9),KL=hp(ib),GL=nb(ib),YL=zL(A9),QL=4356/361,XL=35442/1805,JL=16061/1805,pp=n=>{if(n===1||n===0)return n;const e=n*n;return n<HL?7.5625*e:n<UL?9.075*e-9.9*n+3.4:n<ZL?QL*e-XL*n+JL:10.8*n*n-20.52*n+10.72},eB=hp(pp),tB=n=>n<.5?.5*(1-pp(1-n*2)):.5*pp(n*2-1)+.5;function nB(n,e){return n.map(()=>e||x9).splice(0,n.length-1)}function rB(n){const e=n.length;return n.map((t,r)=>r!==0?r/(e-1):0)}function iB(n,e){return n.map(t=>t*e)}function mp({from:n=0,to:e=1,ease:t,offset:r,duration:i=300}){const o={done:!1,value:n},s=Array.isArray(e)?e:[n,e],a=iB(r&&r.length===s.length?r:rB(s),i);function c(){return M9(a,s,{ease:Array.isArray(t)?t:nB(s,t)})}let u=c();return{next:d=>(o.value=u(d),o.done=d>=i,o),flipTarget:()=>{s.reverse(),u=c()}}}function oB({velocity:n=0,from:e=0,power:t=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:e};let a=t*n;const c=e+a,u=o===void 0?c:o(c);return u!==c&&(a=u-e),{next:d=>{const f=-a*Math.exp(-d/r);return s.done=!(f>i||f<-i),s.value=s.done?u:u+f,s},flipTarget:()=>{}}}const D9={keyframes:mp,spring:q5,decay:oB};function sB(n){if(Array.isArray(n.to))return mp;if(D9[n.type])return D9[n.type];const e=new Set(Object.keys(n));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?mp:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?q5:mp}function N9(n,e,t=0){return n-e-t}function aB(n,e,t=0,r=!0){return r?N9(e+-n,e,t):e-(n-e)+t}function lB(n,e,t,r){return r?n>=e+t:n<=-t}const cB=n=>{const e=({delta:t})=>n(t);return{start:()=>z5.update(e,!0),stop:()=>uL.update(e)}};function P9(n){var e,t,{from:r,autoplay:i=!0,driver:o=cB,elapsed:s=0,repeat:a=0,repeatType:c="loop",repeatDelay:u=0,onPlay:d,onStop:f,onComplete:h,onRepeat:p,onUpdate:m}=n,y=n9(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,w,v=0,k=y.duration,C,T=!1,S=!0,A;const O=sB(y);!((t=(e=O).needsInterpolation)===null||t===void 0)&&t.call(e,r,b)&&(A=M9([0,100],[r,b],{clamp:!1}),r=0,b=100);const I=O(Object.assign(Object.assign({},y),{from:r,to:b}));function P(){v++,c==="reverse"?(S=v%2===0,s=aB(s,k,u,S)):(s=N9(s,k,u),c==="mirror"&&I.flipTarget()),T=!1,p&&p()}function D(){w.stop(),h&&h()}function _(R){if(S||(R=-R),s+=R,!T){const B=I.next(Math.max(0,s));C=B.value,A&&(C=A(C)),T=S?B.done:s<=0}m==null||m(C),T&&(v===0&&(k??(k=s)),v<a?lB(s,k,u,S)&&P():D())}function $(){d==null||d(),w=o(_),w.start()}return i&&$(),{stop:()=>{f==null||f(),w.stop()}}}function _9(n,e){return e?n*(1e3/e):0}function uB({from:n=0,velocity:e=0,min:t,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:d,onUpdate:f,onComplete:h,onStop:p}){let m;function y(k){return t!==void 0&&k<t||r!==void 0&&k>r}function b(k){return t===void 0?r:r===void 0||Math.abs(t-k)<Math.abs(r-k)?t:r}function w(k){m==null||m.stop(),m=P9(Object.assign(Object.assign({},k),{driver:d,onUpdate:C=>{var T;f==null||f(C),(T=k.onUpdate)===null||T===void 0||T.call(k,C)},onComplete:h,onStop:p}))}function v(k){w(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:c},k))}if(y(n))v({from:n,velocity:e,to:b(n)});else{let k=i*e+n;typeof u<"u"&&(k=u(k));const C=b(k),T=C===t?-1:1;let S,A;const O=I=>{S=A,A=I,e=_9(I-S,t9().delta),(T===1&&I>C||T===-1&&I<C)&&v({from:I,to:C,velocity:e})};w({type:"decay",from:n,velocity:e,timeConstant:o,power:i,restDelta:c,modifyTarget:u,onUpdate:y(k)?O:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const L9=(n,e)=>1-3*e+3*n,B9=(n,e)=>3*e-6*n,R9=n=>3*n,gp=(n,e,t)=>((L9(e,t)*n+B9(e,t))*n+R9(e))*n,$9=(n,e,t)=>3*L9(e,t)*n*n+2*B9(e,t)*n+R9(e),dB=1e-7,fB=10;function hB(n,e,t,r,i){let o,s,a=0;do s=e+(t-e)/2,o=gp(s,r,i)-n,o>0?t=s:e=s;while(Math.abs(o)>dB&&++a<fB);return s}const pB=8,mB=.001;function gB(n,e,t,r){for(let i=0;i<pB;++i){const o=$9(e,t,r);if(o===0)return e;const s=gp(e,t,r)-n;e-=s/o}return e}const yp=11,bp=1/(yp-1);function yB(n,e,t,r){if(n===e&&t===r)return T9;const i=new Float32Array(yp);for(let s=0;s<yp;++s)i[s]=gp(s*bp,n,t);function o(s){let a=0,c=1;const u=yp-1;for(;c!==u&&i[c]<=s;++c)a+=bp;--c;const d=(s-i[c])/(i[c+1]-i[c]),f=a+d*bp,h=$9(f,n,t);return h>=mB?gB(s,f,n,t):h===0?f:hB(s,a,a+bp,n,t)}return s=>s===0||s===1?s:gp(o(s),e,r)}/**
|