@gemafajarramadhan/dynamic-ui 1.2.21 → 1.2.22
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/dynamic-ui.css +1 -1
- package/dist/dynamic-ui.es.js +2537 -2546
- package/dist/dynamic-ui.umd.js +15 -15
- package/package.json +1 -1
package/dist/dynamic-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(oe,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("@vuepic/vue-datepicker"),require("@uppy/core"),require("@uppy/dashboard"),require("@uppy/image-editor"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@vuepic/vue-datepicker","@uppy/core","@uppy/dashboard","@uppy/image-editor","vue-router","vue-i18n"],a):(oe=typeof globalThis<"u"?globalThis:oe||self,a(oe.DynamicUI={},oe.Vue,oe.VueDatePicker,oe.Uppy,oe.UppyDashboard,oe.UppyImageEditor,oe.VueRouter,oe.VueI18n))})(this,(function(oe,a,it,oq,K_,rq,ms,KS){"use strict";var _ee=Object.defineProperty;var aq=oe=>{throw TypeError(oe)};var Aee=(oe,a,it)=>a in oe?_ee(oe,a,{enumerable:!0,configurable:!0,writable:!0,value:it}):oe[a]=it;var le=(oe,a,it)=>Aee(oe,typeof a!="symbol"?a+"":a,it),Bee=(oe,a,it)=>a.has(oe)||aq("Cannot "+it);var e1=(oe,a,it)=>(Bee(oe,a,"read from private field"),it?it.call(oe):a.get(oe)),nq=(oe,a,it)=>a.has(oe)?aq("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(oe):a.set(oe,it);var OS;function iq(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const t1=iq(a);let wt={};function X_(e){wt={...wt,...e}}function sq(){return wt}function lq(){return wt.apiBaseUrl?wt.apiBaseUrl:typeof window<"u"&&window.__MICRO_API_BASE_URL__?window.__MICRO_API_BASE_URL__:""}function cq(){const e={"Content-Type":"application/json",Accept:"application/json"};let t=null;if(wt.getAuthToken?t=wt.getAuthToken():typeof window<"u"&&window.__MICRO_AUTH_TOKEN__?t=window.__MICRO_AUTH_TOKEN__:typeof localStorage<"u"&&(t=localStorage.getItem("token")||sessionStorage.getItem("token")),t&&(e.Authorization=`Bearer ${t}`),wt.getHeaders){const n=wt.getHeaders();return{...e,...n}}return e}function dq(){wt.onUnauthorized&&wt.onUnauthorized()}async function Z_(e,t,n){const o=sq();if(o.apiClient)return o.apiClient(e,t||"GET",n);if(!e||!e.trim())throw new Error("[DynamicUI][useApi] URL tidak boleh kosong. Pastikan prop `endpoint.apiUrl` sudah diisi dengan benar.");const r=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],i=(t||"").trim().toUpperCase(),s=r.includes(i)?i:"GET";r.includes(i)||console.warn(`[DynamicUI][useApi] HTTP method '${t}' tidak valid, fallback ke 'GET'.`);const c=lq(),d=e.startsWith("http")?e:`${c}${e}`,h={method:s,headers:cq()};n&&!["GET","DELETE"].includes(s)&&(h.body=JSON.stringify(n));let u=d;if(n&&s==="GET"){const f=new URLSearchParams;Object.entries(n).forEach(([k,g])=>{g!=null&&f.append(k,String(g))});const m=f.toString();m&&(u=`${d}${d.includes("?")?"&":"?"}${m}`)}const p=await fetch(u,h);if(p.status===401&&dq(),!p.ok){const f=await p.text();throw new Error(`HTTP ${p.status}: ${f}`)}return(p.headers.get("content-type")||"").includes("application/json")?p.json():{status:!0,data:await p.text()}}function et(){return{apiUrl:(n,o,r)=>Z_(n,o,r),DCodeApi:(n,o,r,i)=>{let s=n,c=o,d=r;return i&&i._url?(s=i._url,c=i._method||c||"POST",i._data&&(d={...d||{},...i._data})):n&&o&&(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"].includes(o.toUpperCase())||(s=`${n.endsWith("/")?n.slice(0,-1):n}/${o}`,c="POST")),Z_(s,c,d)}}}const hq=["top","right","bottom","left"],fa=Math.min,st=Math.max,a1=Math.round,n1=Math.floor,zt=e=>({x:e,y:e}),uq={left:"right",right:"left",bottom:"top",top:"bottom"},pq={start:"end",end:"start"};function XS(e,t,n){return st(e,fa(t,n))}function ta(e,t){return typeof e=="function"?e(t):e}function aa(e){return e.split("-")[0]}function ks(e){return e.split("-")[1]}function ZS(e){return e==="x"?"y":"x"}function YS(e){return e==="y"?"height":"width"}const yq=new Set(["top","bottom"]);function Pt(e){return yq.has(aa(e))?"y":"x"}function QS(e){return ZS(Pt(e))}function fq(e,t,n){n===void 0&&(n=!1);const o=ks(e),r=QS(e),i=YS(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=o1(s)),[s,o1(s)]}function mq(e){const t=o1(e);return[JS(e),t,JS(t)]}function JS(e){return e.replace(/start|end/g,t=>pq[t])}const Y_=["left","right"],Q_=["right","left"],kq=["top","bottom"],gq=["bottom","top"];function bq(e,t,n){switch(e){case"top":case"bottom":return n?t?Q_:Y_:t?Y_:Q_;case"left":case"right":return t?kq:gq;default:return[]}}function Mq(e,t,n,o){const r=ks(e);let i=bq(aa(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(JS)))),i}function o1(e){return e.replace(/left|right|bottom|top/g,t=>uq[t])}function xq(e){return{top:0,right:0,bottom:0,left:0,...e}}function J_(e){return typeof e!="number"?xq(e):{top:e,right:e,bottom:e,left:e}}function r1(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function eA(e,t,n){let{reference:o,floating:r}=e;const i=Pt(t),s=QS(t),c=YS(s),d=aa(t),h=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;let f;switch(d){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:p};break;case"left":f={x:o.x-r.width,y:p};break;default:f={x:o.x,y:o.y}}switch(ks(t)){case"start":f[s]-=y*(n&&h?-1:1);break;case"end":f[s]+=y*(n&&h?-1:1);break}return f}async function wq(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=ta(t,e),m=J_(f),g=c[y?p==="floating"?"reference":"floating":p],x=r1(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:h,rootBoundary:u,strategy:d})),C=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),b=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},L=r1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:v,strategy:d}):C);return{top:(x.top-L.top+m.top)/b.y,bottom:(L.bottom-x.bottom+m.bottom)/b.y,left:(x.left-L.left+m.left)/b.x,right:(L.right-x.right+m.right)/b.x}}const vq=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=eA(h,o,d),y=o,f={},m=0;for(let g=0;g<c.length;g++){var k;const{name:x,fn:C}=c[g],{x:v,y:b,data:L,reset:S}=await C({x:u,y:p,initialPlacement:o,placement:y,strategy:r,middlewareData:f,rects:h,platform:{...s,detectOverflow:(k=s.detectOverflow)!=null?k:wq},elements:{reference:e,floating:t}});u=v??u,p=b??p,f={...f,[x]:{...f[x],...L}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(y=S.placement),S.rects&&(h=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:p}=eA(h,y,d)),g=-1)}return{x:u,y:p,placement:y,strategy:r,middlewareData:f}},Cq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:d}=t,{element:h,padding:u=0}=ta(e,t)||{};if(h==null)return{};const p=J_(u),y={x:n,y:o},f=QS(r),m=YS(f),k=await s.getDimensions(h),g=f==="y",x=g?"top":"left",C=g?"bottom":"right",v=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-y[f]-i.floating[m],L=y[f]-i.reference[f],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let M=S?S[v]:0;(!M||!await(s.isElement==null?void 0:s.isElement(S)))&&(M=c.floating[v]||i.floating[m]);const w=b/2-L/2,I=M/2-k[m]/2-1,z=fa(p[x],I),B=fa(p[C],I),A=z,V=M-k[m]-B,E=M/2-k[m]/2+w,W=XS(A,E,V),H=!d.arrow&&ks(r)!=null&&E!==W&&i.reference[m]/2-(E<A?z:B)-k[m]/2<0,O=H?E<A?E-A:E-V:0;return{[f]:y[f]+O,data:{[f]:W,centerOffset:E-W-O,...H&&{alignmentOffset:O}},reset:H}}}),Lq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:k=!0,...g}=ta(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=aa(r),C=Pt(c),v=aa(c)===c,b=await(d.isRTL==null?void 0:d.isRTL(h.floating)),L=y||(v||!k?[o1(c)]:mq(c)),S=m!=="none";!y&&S&&L.push(...Mq(c,k,m,b));const M=[c,...L],w=await d.detectOverflow(t,g),I=[];let z=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&I.push(w[x]),p){const E=fq(r,s,b);I.push(w[E[0]],w[E[1]])}if(z=[...z,{placement:r,overflows:I}],!I.every(E=>E<=0)){var B,A;const E=(((B=i.flip)==null?void 0:B.index)||0)+1,W=M[E];if(W&&(!(p==="alignment"?C!==Pt(W):!1)||z.every(U=>Pt(U.placement)===C?U.overflows[0]>0:!0)))return{data:{index:E,overflows:z},reset:{placement:W}};let H=(A=z.filter(O=>O.overflows[0]<=0).sort((O,U)=>O.overflows[1]-U.overflows[1])[0])==null?void 0:A.placement;if(!H)switch(f){case"bestFit":{var V;const O=(V=z.filter(U=>{if(S){const J=Pt(U.placement);return J===C||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,T)=>J+T,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:V[0];O&&(H=O);break}case"initialPlacement":H=c;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function tA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function aA(e){return hq.some(t=>e[t]>=0)}const Sq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=ta(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),c=tA(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:aA(c)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),c=tA(s,n.floating);return{data:{escapedOffsets:c,escaped:aA(c)}}}default:return{}}}}},nA=new Set(["left","top"]);async function Iq(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=aa(n),c=ks(n),d=Pt(n)==="y",h=nA.has(s)?-1:1,u=i&&d?-1:1,p=ta(t,e);let{mainAxis:y,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof m=="number"&&(f=c==="end"?m*-1:m),d?{x:f*u,y:y*h}:{x:y*h,y:f*u}}const _q=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,d=await Iq(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},Aq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:x=>{let{x:C,y:v}=x;return{x:C,y:v}}},...h}=ta(e,t),u={x:n,y:o},p=await i.detectOverflow(t,h),y=Pt(aa(r)),f=ZS(y);let m=u[f],k=u[y];if(s){const x=f==="y"?"top":"left",C=f==="y"?"bottom":"right",v=m+p[x],b=m-p[C];m=XS(v,m,b)}if(c){const x=y==="y"?"top":"left",C=y==="y"?"bottom":"right",v=k+p[x],b=k-p[C];k=XS(v,k,b)}const g=d.fn({...t,[f]:m,[y]:k});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:s,[y]:c}}}}}},Bq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=ta(e,t),u={x:n,y:o},p=Pt(r),y=ZS(p);let f=u[y],m=u[p];const k=ta(c,t),g=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(d){const v=y==="y"?"height":"width",b=i.reference[y]-i.floating[v]+g.mainAxis,L=i.reference[y]+i.reference[v]-g.mainAxis;f<b?f=b:f>L&&(f=L)}if(h){var x,C;const v=y==="y"?"width":"height",b=nA.has(aa(r)),L=i.reference[p]-i.floating[v]+(b&&((x=s.offset)==null?void 0:x[p])||0)+(b?0:g.crossAxis),S=i.reference[p]+i.reference[v]+(b?0:((C=s.offset)==null?void 0:C[p])||0)-(b?g.crossAxis:0);m<L?m=L:m>S&&(m=S)}return{[y]:f,[p]:m}}}},Vq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:c}=t,{apply:d=()=>{},...h}=ta(e,t),u=await s.detectOverflow(t,h),p=aa(r),y=ks(r),f=Pt(r)==="y",{width:m,height:k}=i.floating;let g,x;p==="top"||p==="bottom"?(g=p,x=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(x=p,g=y==="end"?"top":"bottom");const C=k-u.top-u.bottom,v=m-u.left-u.right,b=fa(k-u[g],C),L=fa(m-u[x],v),S=!t.middlewareData.shift;let M=b,w=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=v),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(M=C),S&&!y){const z=st(u.left,0),B=st(u.right,0),A=st(u.top,0),V=st(u.bottom,0);f?w=m-2*(z!==0||B!==0?z+B:st(u.left,u.right)):M=k-2*(A!==0||V!==0?A+V:st(u.top,u.bottom))}await d({...t,availableWidth:w,availableHeight:M});const I=await s.getDimensions(c.floating);return m!==I.width||k!==I.height?{reset:{rects:!0}}:{}}}};function i1(){return typeof window<"u"}function ja(e){return eI(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(eI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eI(e){return i1()?e instanceof Node||e instanceof lt(e).Node:!1}function vt(e){return i1()?e instanceof Element||e instanceof lt(e).Element:!1}function Dt(e){return i1()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function oA(e){return!i1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}const zq=new Set(["inline","contents"]);function Ks(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!zq.has(r)}const Pq=new Set(["table","td","th"]);function qq(e){return Pq.has(ja(e))}const Dq=[":popover-open",":modal"];function s1(e){return Dq.some(t=>{try{return e.matches(t)}catch{return!1}})}const Eq=["transform","translate","scale","rotate","perspective"],Tq=["transform","translate","scale","rotate","perspective","filter"],Hq=["paint","layout","strict","content"];function tI(e){const t=aI(),n=vt(e)?Ct(e):e;return Eq.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tq.some(o=>(n.willChange||"").includes(o))||Hq.some(o=>(n.contain||"").includes(o))}function Oq(e){let t=ma(e);for(;Dt(t)&&!gs(t);){if(tI(t))return t;if(s1(t))return null;t=ma(t)}return null}function aI(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jq=new Set(["html","body","#document"]);function gs(e){return jq.has(ja(e))}function Ct(e){return lt(e).getComputedStyle(e)}function l1(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(ja(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oA(e)&&e.host||qt(e);return oA(t)?t.host:t}function rA(e){const t=ma(e);return gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dt(t)&&Ks(t)?t:rA(t)}function Xs(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=rA(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=lt(r);if(i){const c=nI(s);return t.concat(s,s.visualViewport||[],Ks(r)?r:[],c&&n?Xs(c):[])}return t.concat(r,Xs(r,[],n))}function nI(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iA(e){const t=Ct(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Dt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=a1(n)!==i||a1(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function oI(e){return vt(e)?e:e.contextElement}function bs(e){const t=oI(e);if(!Dt(t))return zt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=iA(t);let s=(i?a1(n.width):n.width)/o,c=(i?a1(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Fq=zt(0);function sA(e){const t=lt(e);return!aI()||!t.visualViewport?Fq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Fa(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=oI(e);let s=zt(1);t&&(o?vt(o)&&(s=bs(o)):s=bs(e));const c=Nq(i,n,o)?sA(i):zt(0);let d=(r.left+c.x)/s.x,h=(r.top+c.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const y=lt(i),f=o&&vt(o)?lt(o):o;let m=y,k=nI(m);for(;k&&o&&f!==m;){const g=bs(k),x=k.getBoundingClientRect(),C=Ct(k),v=x.left+(k.clientLeft+parseFloat(C.paddingLeft))*g.x,b=x.top+(k.clientTop+parseFloat(C.paddingTop))*g.y;d*=g.x,h*=g.y,u*=g.x,p*=g.y,d+=v,h+=b,m=lt(k),k=nI(m)}}return r1({width:u,height:p,x:d,y:h})}function c1(e,t){const n=l1(e).scrollLeft;return t?t.left+n:Fa(qt(e)).left+n}function lA(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-c1(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Rq(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=qt(o),c=t?s1(t.floating):!1;if(o===s||c&&i)return n;let d={scrollLeft:0,scrollTop:0},h=zt(1);const u=zt(0),p=Dt(o);if((p||!p&&!i)&&((ja(o)!=="body"||Ks(s))&&(d=l1(o)),Dt(o))){const f=Fa(o);h=bs(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const y=s&&!p&&!i?lA(s,d):zt(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function $q(e){return Array.from(e.getClientRects())}function Uq(e){const t=qt(e),n=l1(e),o=e.ownerDocument.body,r=st(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=st(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+c1(e);const c=-n.scrollTop;return Ct(o).direction==="rtl"&&(s+=st(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const cA=25;function Wq(e,t){const n=lt(e),o=qt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,d=0;if(r){i=r.width,s=r.height;const u=aI();(!u||u&&t==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}const h=c1(o);if(h<=0){const u=o.ownerDocument,p=u.body,y=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,m=Math.abs(o.clientWidth-p.clientWidth-f);m<=cA&&(i-=m)}else h<=cA&&(i+=h);return{width:i,height:s,x:c,y:d}}const Gq=new Set(["absolute","fixed"]);function Kq(e,t){const n=Fa(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Dt(e)?bs(e):zt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,d=r*i.x,h=o*i.y;return{width:s,height:c,x:d,y:h}}function dA(e,t,n){let o;if(t==="viewport")o=Wq(e,n);else if(t==="document")o=Uq(qt(e));else if(vt(t))o=Kq(t,n);else{const r=sA(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return r1(o)}function hA(e,t){const n=ma(e);return n===t||!vt(n)||gs(n)?!1:Ct(n).position==="fixed"||hA(n,t)}function Xq(e,t){const n=t.get(e);if(n)return n;let o=Xs(e,[],!1).filter(c=>vt(c)&&ja(c)!=="body"),r=null;const i=Ct(e).position==="fixed";let s=i?ma(e):e;for(;vt(s)&&!gs(s);){const c=Ct(s),d=tI(s);!d&&c.position==="fixed"&&(r=null),(i?!d&&!r:!d&&c.position==="static"&&!!r&&Gq.has(r.position)||Ks(s)&&!d&&hA(e,s))?o=o.filter(u=>u!==s):r=c,s=ma(s)}return t.set(e,o),o}function Zq(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?s1(t)?[]:Xq(t,this._c):[].concat(n),o],c=s[0],d=s.reduce((h,u)=>{const p=dA(t,u,r);return h.top=st(p.top,h.top),h.right=fa(p.right,h.right),h.bottom=fa(p.bottom,h.bottom),h.left=st(p.left,h.left),h},dA(t,c,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yq(e){const{width:t,height:n}=iA(e);return{width:t,height:n}}function Qq(e,t,n){const o=Dt(t),r=qt(t),i=n==="fixed",s=Fa(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const d=zt(0);function h(){d.x=c1(r)}if(o||!o&&!i)if((ja(t)!=="body"||Ks(r))&&(c=l1(t)),o){const f=Fa(t,!0,i,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else r&&h();i&&!o&&r&&h();const u=r&&!o&&!i?lA(r,c):zt(0),p=s.left+c.scrollLeft-d.x-u.x,y=s.top+c.scrollTop-d.y-u.y;return{x:p,y,width:s.width,height:s.height}}function rI(e){return Ct(e).position==="static"}function uA(e,t){if(!Dt(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qt(e)===n&&(n=n.ownerDocument.body),n}function pA(e,t){const n=lt(e);if(s1(e))return n;if(!Dt(e)){let r=ma(e);for(;r&&!gs(r);){if(vt(r)&&!rI(r))return r;r=ma(r)}return n}let o=uA(e,t);for(;o&&qq(o)&&rI(o);)o=uA(o,t);return o&&gs(o)&&rI(o)&&!tI(o)?n:o||Oq(e)||n}const Jq=async function(e){const t=this.getOffsetParent||pA,n=this.getDimensions,o=await n(e.floating);return{reference:Qq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function eD(e){return Ct(e).direction==="rtl"}const tD={convertOffsetParentRelativeRectToViewportRelativeRect:Rq,getDocumentElement:qt,getClippingRect:Zq,getOffsetParent:pA,getElementRects:Jq,getClientRects:$q,getDimensions:Yq,getScale:bs,isElement:vt,isRTL:eD};function yA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aD(e,t){let n=null,o;const r=qt(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const h=e.getBoundingClientRect(),{left:u,top:p,width:y,height:f}=h;if(c||t(),!y||!f)return;const m=n1(p),k=n1(r.clientWidth-(u+y)),g=n1(r.clientHeight-(p+f)),x=n1(u),v={rootMargin:-m+"px "+-k+"px "+-g+"px "+-x+"px",threshold:st(0,fa(1,d))||1};let b=!0;function L(S){const M=S[0].intersectionRatio;if(M!==d){if(!b)return s();M?s(!1,M):o=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!yA(h,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(L,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(L,v)}n.observe(e)}return s(!0),i}function d1(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=oI(e),u=r||i?[...h?Xs(h):[],...Xs(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const p=h&&c?aD(h,n):null;let y=-1,f=null;s&&(f=new ResizeObserver(x=>{let[C]=x;C&&C.target===h&&f&&(f.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),h&&!d&&f.observe(h),f.observe(t));let m,k=d?Fa(e):null;d&&g();function g(){const x=Fa(e);k&&!yA(k,x)&&n(),k=x,m=requestAnimationFrame(g)}return n(),()=>{var x;u.forEach(C=>{r&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p==null||p(),(x=f)==null||x.disconnect(),f=null,d&&cancelAnimationFrame(m)}}const h1=_q,u1=Aq,Zs=Lq,p1=Vq,nD=Sq,oD=Cq,rD=Bq,iD=(e,t,n)=>{const o=new Map,r={platform:tD,...n},i={...r.platform,_c:o};return vq(e,t,{...r,platform:i})};function sD(e){return e!=null&&typeof e=="object"&&"$el"in e}function iI(e){if(sD(e)){const t=e.$el;return eI(t)&&ja(t)==="#comment"?null:t}return e}function Ms(e){return typeof e=="function"?e():a.unref(e)}function lD(e){return{name:"arrow",options:e,fn(t){const n=iI(Ms(e.element));return n==null?{}:oD({element:n,padding:e.padding}).fn(t)}}}function fA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mA(e,t){const n=fA(e);return Math.round(t*n)/n}function y1(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=a.computed(()=>{var M;return(M=Ms(n.open))!=null?M:!0}),i=a.computed(()=>Ms(n.middleware)),s=a.computed(()=>{var M;return(M=Ms(n.placement))!=null?M:"bottom"}),c=a.computed(()=>{var M;return(M=Ms(n.strategy))!=null?M:"absolute"}),d=a.computed(()=>{var M;return(M=Ms(n.transform))!=null?M:!0}),h=a.computed(()=>iI(e.value)),u=a.computed(()=>iI(t.value)),p=a.ref(0),y=a.ref(0),f=a.ref(c.value),m=a.ref(s.value),k=a.shallowRef({}),g=a.ref(!1),x=a.computed(()=>{const M={position:f.value,left:"0",top:"0"};if(!u.value)return M;const w=mA(u.value,p.value),I=mA(u.value,y.value);return d.value?{...M,transform:"translate("+w+"px, "+I+"px)",...fA(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:w+"px",top:I+"px"}});let C;function v(){if(h.value==null||u.value==null)return;const M=r.value;iD(h.value,u.value,{middleware:i.value,placement:s.value,strategy:c.value}).then(w=>{p.value=w.x,y.value=w.y,f.value=w.strategy,m.value=w.placement,k.value=w.middlewareData,g.value=M!==!1})}function b(){typeof C=="function"&&(C(),C=void 0)}function L(){if(b(),o===void 0){v();return}if(h.value!=null&&u.value!=null){C=o(h.value,u.value,v);return}}function S(){r.value||(g.value=!1)}return a.watch([i,s,c,r],v,{flush:"sync"}),a.watch([h,u],L,{flush:"sync"}),a.watch(r,S,{flush:"sync"}),a.getCurrentScope()&&a.onScopeDispose(b),{x:a.shallowReadonly(p),y:a.shallowReadonly(y),strategy:a.shallowReadonly(f),placement:a.shallowReadonly(m),middlewareData:a.shallowReadonly(k),isPositioned:a.shallowReadonly(g),floatingStyles:x,update:v}}/**
|
|
1
|
+
(function(oe,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("@vuepic/vue-datepicker"),require("@uppy/core"),require("@uppy/dashboard"),require("@uppy/image-editor"),require("vue-router"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@vuepic/vue-datepicker","@uppy/core","@uppy/dashboard","@uppy/image-editor","vue-router","vue-i18n"],a):(oe=typeof globalThis<"u"?globalThis:oe||self,a(oe.DynamicUI={},oe.Vue,oe.VueDatePicker,oe.Uppy,oe.UppyDashboard,oe.UppyImageEditor,oe.VueRouter,oe.VueI18n))})(this,(function(oe,a,it,oq,K_,rq,ms,KS){"use strict";var _ee=Object.defineProperty;var aq=oe=>{throw TypeError(oe)};var Aee=(oe,a,it)=>a in oe?_ee(oe,a,{enumerable:!0,configurable:!0,writable:!0,value:it}):oe[a]=it;var le=(oe,a,it)=>Aee(oe,typeof a!="symbol"?a+"":a,it),Bee=(oe,a,it)=>a.has(oe)||aq("Cannot "+it);var e1=(oe,a,it)=>(Bee(oe,a,"read from private field"),it?it.call(oe):a.get(oe)),nq=(oe,a,it)=>a.has(oe)?aq("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(oe):a.set(oe,it);var OS;function iq(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const t1=iq(a);let wt={};function X_(e){wt={...wt,...e}}function sq(){return wt}function lq(){return wt.apiBaseUrl?wt.apiBaseUrl:typeof window<"u"&&window.__MICRO_API_BASE_URL__?window.__MICRO_API_BASE_URL__:""}function cq(){const e={"Content-Type":"application/json",Accept:"application/json"};let t=null;if(wt.getAuthToken?t=wt.getAuthToken():typeof window<"u"&&window.__MICRO_AUTH_TOKEN__?t=window.__MICRO_AUTH_TOKEN__:typeof localStorage<"u"&&(t=localStorage.getItem("token")||sessionStorage.getItem("token")),t&&(e.Authorization=`Bearer ${t}`),wt.getHeaders){const n=wt.getHeaders();return{...e,...n}}return e}function dq(){wt.onUnauthorized&&wt.onUnauthorized()}async function Z_(e,t,n){const o=sq();if(o.apiClient)return o.apiClient(e,t||"GET",n);if(!e||!e.trim())throw new Error("[DynamicUI][useApi] URL tidak boleh kosong. Pastikan prop `endpoint.apiUrl` sudah diisi dengan benar.");const r=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],i=(t||"").trim().toUpperCase(),s=r.includes(i)?i:"GET";r.includes(i)||console.warn(`[DynamicUI][useApi] HTTP method '${t}' tidak valid, fallback ke 'GET'.`);const c=lq(),d=e.startsWith("http")?e:`${c}${e}`,h={method:s,headers:cq()};n&&!["GET","DELETE"].includes(s)&&(h.body=JSON.stringify(n));let u=d;if(n&&s==="GET"){const f=new URLSearchParams;Object.entries(n).forEach(([g,k])=>{k!=null&&f.append(g,String(k))});const m=f.toString();m&&(u=`${d}${d.includes("?")?"&":"?"}${m}`)}const p=await fetch(u,h);if(p.status===401&&dq(),!p.ok){const f=await p.text();throw new Error(`HTTP ${p.status}: ${f}`)}return(p.headers.get("content-type")||"").includes("application/json")?p.json():{status:!0,data:await p.text()}}function et(){return{apiUrl:(n,o,r)=>Z_(n,o,r),DCodeApi:(n,o,r,i)=>{let s=n,c=o,d=r;return i&&i._url?(s=i._url,c=i._method||c||"POST",i._data&&(d={...d||{},...i._data})):n&&o&&(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"].includes(o.toUpperCase())||(s=`${n.endsWith("/")?n.slice(0,-1):n}/${o}`,c="POST")),Z_(s,c,d)}}}const hq=["top","right","bottom","left"],fa=Math.min,st=Math.max,a1=Math.round,n1=Math.floor,zt=e=>({x:e,y:e}),uq={left:"right",right:"left",bottom:"top",top:"bottom"},pq={start:"end",end:"start"};function XS(e,t,n){return st(e,fa(t,n))}function ta(e,t){return typeof e=="function"?e(t):e}function aa(e){return e.split("-")[0]}function ks(e){return e.split("-")[1]}function ZS(e){return e==="x"?"y":"x"}function YS(e){return e==="y"?"height":"width"}const yq=new Set(["top","bottom"]);function Pt(e){return yq.has(aa(e))?"y":"x"}function QS(e){return ZS(Pt(e))}function fq(e,t,n){n===void 0&&(n=!1);const o=ks(e),r=QS(e),i=YS(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=o1(s)),[s,o1(s)]}function mq(e){const t=o1(e);return[JS(e),t,JS(t)]}function JS(e){return e.replace(/start|end/g,t=>pq[t])}const Y_=["left","right"],Q_=["right","left"],kq=["top","bottom"],gq=["bottom","top"];function bq(e,t,n){switch(e){case"top":case"bottom":return n?t?Q_:Y_:t?Y_:Q_;case"left":case"right":return t?kq:gq;default:return[]}}function Mq(e,t,n,o){const r=ks(e);let i=bq(aa(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(JS)))),i}function o1(e){return e.replace(/left|right|bottom|top/g,t=>uq[t])}function xq(e){return{top:0,right:0,bottom:0,left:0,...e}}function J_(e){return typeof e!="number"?xq(e):{top:e,right:e,bottom:e,left:e}}function r1(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function eA(e,t,n){let{reference:o,floating:r}=e;const i=Pt(t),s=QS(t),c=YS(s),d=aa(t),h=i==="y",u=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,y=o[c]/2-r[c]/2;let f;switch(d){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:p};break;case"left":f={x:o.x-r.width,y:p};break;default:f={x:o.x,y:o.y}}switch(ks(t)){case"start":f[s]-=y*(n&&h?-1:1);break;case"end":f[s]+=y*(n&&h?-1:1);break}return f}async function wq(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=ta(t,e),m=J_(f),k=c[y?p==="floating"?"reference":"floating":p],M=r1(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(k)))==null||n?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=r1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:d}):w);return{top:(M.top-C.top+m.top)/b.y,bottom:(C.bottom-M.bottom+m.bottom)/b.y,left:(M.left-C.left+m.left)/b.x,right:(C.right-M.right+m.right)/b.x}}const vq=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=eA(h,o,d),y=o,f={},m=0;for(let k=0;k<c.length;k++){var g;const{name:M,fn:w}=c[k],{x,y:b,data:C,reset:S}=await w({x:u,y:p,initialPlacement:o,placement:y,strategy:r,middlewareData:f,rects:h,platform:{...s,detectOverflow:(g=s.detectOverflow)!=null?g:wq},elements:{reference:e,floating:t}});u=x??u,p=b??p,f={...f,[M]:{...f[M],...C}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(y=S.placement),S.rects&&(h=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:p}=eA(h,y,d)),k=-1)}return{x:u,y:p,placement:y,strategy:r,middlewareData:f}},Cq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:d}=t,{element:h,padding:u=0}=ta(e,t)||{};if(h==null)return{};const p=J_(u),y={x:n,y:o},f=QS(r),m=YS(f),g=await s.getDimensions(h),k=f==="y",M=k?"top":"left",w=k?"bottom":"right",x=k?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-y[f]-i.floating[m],C=y[f]-i.reference[f],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let L=S?S[x]:0;(!L||!await(s.isElement==null?void 0:s.isElement(S)))&&(L=c.floating[x]||i.floating[m]);const v=b/2-C/2,I=L/2-g[m]/2-1,q=fa(p[M],I),B=fa(p[w],I),A=q,V=L-g[m]-B,T=L/2-g[m]/2+v,W=XS(A,T,V),H=!d.arrow&&ks(r)!=null&&T!==W&&i.reference[m]/2-(T<A?q:B)-g[m]/2<0,O=H?T<A?T-A:T-V:0;return{[f]:y[f]+O,data:{[f]:W,centerOffset:T-W-O,...H&&{alignmentOffset:O}},reset:H}}}),Lq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...k}=ta(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const M=aa(r),w=Pt(c),x=aa(c)===c,b=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=y||(x||!g?[o1(c)]:mq(c)),S=m!=="none";!y&&S&&C.push(...Mq(c,g,m,b));const L=[c,...C],v=await d.detectOverflow(t,k),I=[];let q=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&I.push(v[M]),p){const T=fq(r,s,b);I.push(v[T[0]],v[T[1]])}if(q=[...q,{placement:r,overflows:I}],!I.every(T=>T<=0)){var B,A;const T=(((B=i.flip)==null?void 0:B.index)||0)+1,W=L[T];if(W&&(!(p==="alignment"?w!==Pt(W):!1)||q.every(U=>Pt(U.placement)===w?U.overflows[0]>0:!0)))return{data:{index:T,overflows:q},reset:{placement:W}};let H=(A=q.filter(O=>O.overflows[0]<=0).sort((O,U)=>O.overflows[1]-U.overflows[1])[0])==null?void 0:A.placement;if(!H)switch(f){case"bestFit":{var V;const O=(V=q.filter(U=>{if(S){const J=Pt(U.placement);return J===w||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,D)=>J+D,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:V[0];O&&(H=O);break}case"initialPlacement":H=c;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function tA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function aA(e){return hq.some(t=>e[t]>=0)}const Sq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=ta(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),c=tA(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:aA(c)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),c=tA(s,n.floating);return{data:{escapedOffsets:c,escaped:aA(c)}}}default:return{}}}}},nA=new Set(["left","top"]);async function Iq(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=aa(n),c=ks(n),d=Pt(n)==="y",h=nA.has(s)?-1:1,u=i&&d?-1:1,p=ta(t,e);let{mainAxis:y,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof m=="number"&&(f=c==="end"?m*-1:m),d?{x:f*u,y:y*h}:{x:y*h,y:f*u}}const _q=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,d=await Iq(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},Aq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:M=>{let{x:w,y:x}=M;return{x:w,y:x}}},...h}=ta(e,t),u={x:n,y:o},p=await i.detectOverflow(t,h),y=Pt(aa(r)),f=ZS(y);let m=u[f],g=u[y];if(s){const M=f==="y"?"top":"left",w=f==="y"?"bottom":"right",x=m+p[M],b=m-p[w];m=XS(x,m,b)}if(c){const M=y==="y"?"top":"left",w=y==="y"?"bottom":"right",x=g+p[M],b=g-p[w];g=XS(x,g,b)}const k=d.fn({...t,[f]:m,[y]:g});return{...k,data:{x:k.x-n,y:k.y-o,enabled:{[f]:s,[y]:c}}}}}},Bq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=ta(e,t),u={x:n,y:o},p=Pt(r),y=ZS(p);let f=u[y],m=u[p];const g=ta(c,t),k=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const x=y==="y"?"height":"width",b=i.reference[y]-i.floating[x]+k.mainAxis,C=i.reference[y]+i.reference[x]-k.mainAxis;f<b?f=b:f>C&&(f=C)}if(h){var M,w;const x=y==="y"?"width":"height",b=nA.has(aa(r)),C=i.reference[p]-i.floating[x]+(b&&((M=s.offset)==null?void 0:M[p])||0)+(b?0:k.crossAxis),S=i.reference[p]+i.reference[x]+(b?0:((w=s.offset)==null?void 0:w[p])||0)-(b?k.crossAxis:0);m<C?m=C:m>S&&(m=S)}return{[y]:f,[p]:m}}}},Vq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:c}=t,{apply:d=()=>{},...h}=ta(e,t),u=await s.detectOverflow(t,h),p=aa(r),y=ks(r),f=Pt(r)==="y",{width:m,height:g}=i.floating;let k,M;p==="top"||p==="bottom"?(k=p,M=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,k=y==="end"?"top":"bottom");const w=g-u.top-u.bottom,x=m-u.left-u.right,b=fa(g-u[k],w),C=fa(m-u[M],x),S=!t.middlewareData.shift;let L=b,v=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(v=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(L=w),S&&!y){const q=st(u.left,0),B=st(u.right,0),A=st(u.top,0),V=st(u.bottom,0);f?v=m-2*(q!==0||B!==0?q+B:st(u.left,u.right)):L=g-2*(A!==0||V!==0?A+V:st(u.top,u.bottom))}await d({...t,availableWidth:v,availableHeight:L});const I=await s.getDimensions(c.floating);return m!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function i1(){return typeof window<"u"}function ja(e){return eI(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(eI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eI(e){return i1()?e instanceof Node||e instanceof lt(e).Node:!1}function vt(e){return i1()?e instanceof Element||e instanceof lt(e).Element:!1}function Dt(e){return i1()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function oA(e){return!i1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}const zq=new Set(["inline","contents"]);function Ks(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!zq.has(r)}const Pq=new Set(["table","td","th"]);function qq(e){return Pq.has(ja(e))}const Dq=[":popover-open",":modal"];function s1(e){return Dq.some(t=>{try{return e.matches(t)}catch{return!1}})}const Eq=["transform","translate","scale","rotate","perspective"],Tq=["transform","translate","scale","rotate","perspective","filter"],Hq=["paint","layout","strict","content"];function tI(e){const t=aI(),n=vt(e)?Ct(e):e;return Eq.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tq.some(o=>(n.willChange||"").includes(o))||Hq.some(o=>(n.contain||"").includes(o))}function Oq(e){let t=ma(e);for(;Dt(t)&&!gs(t);){if(tI(t))return t;if(s1(t))return null;t=ma(t)}return null}function aI(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jq=new Set(["html","body","#document"]);function gs(e){return jq.has(ja(e))}function Ct(e){return lt(e).getComputedStyle(e)}function l1(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(ja(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oA(e)&&e.host||qt(e);return oA(t)?t.host:t}function rA(e){const t=ma(e);return gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dt(t)&&Ks(t)?t:rA(t)}function Xs(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=rA(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=lt(r);if(i){const c=nI(s);return t.concat(s,s.visualViewport||[],Ks(r)?r:[],c&&n?Xs(c):[])}return t.concat(r,Xs(r,[],n))}function nI(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iA(e){const t=Ct(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Dt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=a1(n)!==i||a1(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function oI(e){return vt(e)?e:e.contextElement}function bs(e){const t=oI(e);if(!Dt(t))return zt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=iA(t);let s=(i?a1(n.width):n.width)/o,c=(i?a1(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Fq=zt(0);function sA(e){const t=lt(e);return!aI()||!t.visualViewport?Fq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Fa(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=oI(e);let s=zt(1);t&&(o?vt(o)&&(s=bs(o)):s=bs(e));const c=Nq(i,n,o)?sA(i):zt(0);let d=(r.left+c.x)/s.x,h=(r.top+c.y)/s.y,u=r.width/s.x,p=r.height/s.y;if(i){const y=lt(i),f=o&&vt(o)?lt(o):o;let m=y,g=nI(m);for(;g&&o&&f!==m;){const k=bs(g),M=g.getBoundingClientRect(),w=Ct(g),x=M.left+(g.clientLeft+parseFloat(w.paddingLeft))*k.x,b=M.top+(g.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,h*=k.y,u*=k.x,p*=k.y,d+=x,h+=b,m=lt(g),g=nI(m)}}return r1({width:u,height:p,x:d,y:h})}function c1(e,t){const n=l1(e).scrollLeft;return t?t.left+n:Fa(qt(e)).left+n}function lA(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-c1(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Rq(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=qt(o),c=t?s1(t.floating):!1;if(o===s||c&&i)return n;let d={scrollLeft:0,scrollTop:0},h=zt(1);const u=zt(0),p=Dt(o);if((p||!p&&!i)&&((ja(o)!=="body"||Ks(s))&&(d=l1(o)),Dt(o))){const f=Fa(o);h=bs(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const y=s&&!p&&!i?lA(s,d):zt(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:n.y*h.y-d.scrollTop*h.y+u.y+y.y}}function $q(e){return Array.from(e.getClientRects())}function Uq(e){const t=qt(e),n=l1(e),o=e.ownerDocument.body,r=st(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=st(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+c1(e);const c=-n.scrollTop;return Ct(o).direction==="rtl"&&(s+=st(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const cA=25;function Wq(e,t){const n=lt(e),o=qt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,d=0;if(r){i=r.width,s=r.height;const u=aI();(!u||u&&t==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}const h=c1(o);if(h<=0){const u=o.ownerDocument,p=u.body,y=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,m=Math.abs(o.clientWidth-p.clientWidth-f);m<=cA&&(i-=m)}else h<=cA&&(i+=h);return{width:i,height:s,x:c,y:d}}const Gq=new Set(["absolute","fixed"]);function Kq(e,t){const n=Fa(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Dt(e)?bs(e):zt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,d=r*i.x,h=o*i.y;return{width:s,height:c,x:d,y:h}}function dA(e,t,n){let o;if(t==="viewport")o=Wq(e,n);else if(t==="document")o=Uq(qt(e));else if(vt(t))o=Kq(t,n);else{const r=sA(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return r1(o)}function hA(e,t){const n=ma(e);return n===t||!vt(n)||gs(n)?!1:Ct(n).position==="fixed"||hA(n,t)}function Xq(e,t){const n=t.get(e);if(n)return n;let o=Xs(e,[],!1).filter(c=>vt(c)&&ja(c)!=="body"),r=null;const i=Ct(e).position==="fixed";let s=i?ma(e):e;for(;vt(s)&&!gs(s);){const c=Ct(s),d=tI(s);!d&&c.position==="fixed"&&(r=null),(i?!d&&!r:!d&&c.position==="static"&&!!r&&Gq.has(r.position)||Ks(s)&&!d&&hA(e,s))?o=o.filter(u=>u!==s):r=c,s=ma(s)}return t.set(e,o),o}function Zq(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?s1(t)?[]:Xq(t,this._c):[].concat(n),o],c=s[0],d=s.reduce((h,u)=>{const p=dA(t,u,r);return h.top=st(p.top,h.top),h.right=fa(p.right,h.right),h.bottom=fa(p.bottom,h.bottom),h.left=st(p.left,h.left),h},dA(t,c,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yq(e){const{width:t,height:n}=iA(e);return{width:t,height:n}}function Qq(e,t,n){const o=Dt(t),r=qt(t),i=n==="fixed",s=Fa(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const d=zt(0);function h(){d.x=c1(r)}if(o||!o&&!i)if((ja(t)!=="body"||Ks(r))&&(c=l1(t)),o){const f=Fa(t,!0,i,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else r&&h();i&&!o&&r&&h();const u=r&&!o&&!i?lA(r,c):zt(0),p=s.left+c.scrollLeft-d.x-u.x,y=s.top+c.scrollTop-d.y-u.y;return{x:p,y,width:s.width,height:s.height}}function rI(e){return Ct(e).position==="static"}function uA(e,t){if(!Dt(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qt(e)===n&&(n=n.ownerDocument.body),n}function pA(e,t){const n=lt(e);if(s1(e))return n;if(!Dt(e)){let r=ma(e);for(;r&&!gs(r);){if(vt(r)&&!rI(r))return r;r=ma(r)}return n}let o=uA(e,t);for(;o&&qq(o)&&rI(o);)o=uA(o,t);return o&&gs(o)&&rI(o)&&!tI(o)?n:o||Oq(e)||n}const Jq=async function(e){const t=this.getOffsetParent||pA,n=this.getDimensions,o=await n(e.floating);return{reference:Qq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function eD(e){return Ct(e).direction==="rtl"}const tD={convertOffsetParentRelativeRectToViewportRelativeRect:Rq,getDocumentElement:qt,getClippingRect:Zq,getOffsetParent:pA,getElementRects:Jq,getClientRects:$q,getDimensions:Yq,getScale:bs,isElement:vt,isRTL:eD};function yA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aD(e,t){let n=null,o;const r=qt(e);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const h=e.getBoundingClientRect(),{left:u,top:p,width:y,height:f}=h;if(c||t(),!y||!f)return;const m=n1(p),g=n1(r.clientWidth-(u+y)),k=n1(r.clientHeight-(p+f)),M=n1(u),x={rootMargin:-m+"px "+-g+"px "+-k+"px "+-M+"px",threshold:st(0,fa(1,d))||1};let b=!0;function C(S){const L=S[0].intersectionRatio;if(L!==d){if(!b)return s();L?s(!1,L):o=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!yA(h,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(C,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function d1(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=oI(e),u=r||i?[...h?Xs(h):[],...Xs(t)]:[];u.forEach(M=>{r&&M.addEventListener("scroll",n,{passive:!0}),i&&M.addEventListener("resize",n)});const p=h&&c?aD(h,n):null;let y=-1,f=null;s&&(f=new ResizeObserver(M=>{let[w]=M;w&&w.target===h&&f&&(f.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),h&&!d&&f.observe(h),f.observe(t));let m,g=d?Fa(e):null;d&&k();function k(){const M=Fa(e);g&&!yA(g,M)&&n(),g=M,m=requestAnimationFrame(k)}return n(),()=>{var M;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(M=f)==null||M.disconnect(),f=null,d&&cancelAnimationFrame(m)}}const h1=_q,u1=Aq,Zs=Lq,p1=Vq,nD=Sq,oD=Cq,rD=Bq,iD=(e,t,n)=>{const o=new Map,r={platform:tD,...n},i={...r.platform,_c:o};return vq(e,t,{...r,platform:i})};function sD(e){return e!=null&&typeof e=="object"&&"$el"in e}function iI(e){if(sD(e)){const t=e.$el;return eI(t)&&ja(t)==="#comment"?null:t}return e}function Ms(e){return typeof e=="function"?e():a.unref(e)}function lD(e){return{name:"arrow",options:e,fn(t){const n=iI(Ms(e.element));return n==null?{}:oD({element:n,padding:e.padding}).fn(t)}}}function fA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mA(e,t){const n=fA(e);return Math.round(t*n)/n}function y1(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=a.computed(()=>{var L;return(L=Ms(n.open))!=null?L:!0}),i=a.computed(()=>Ms(n.middleware)),s=a.computed(()=>{var L;return(L=Ms(n.placement))!=null?L:"bottom"}),c=a.computed(()=>{var L;return(L=Ms(n.strategy))!=null?L:"absolute"}),d=a.computed(()=>{var L;return(L=Ms(n.transform))!=null?L:!0}),h=a.computed(()=>iI(e.value)),u=a.computed(()=>iI(t.value)),p=a.ref(0),y=a.ref(0),f=a.ref(c.value),m=a.ref(s.value),g=a.shallowRef({}),k=a.ref(!1),M=a.computed(()=>{const L={position:f.value,left:"0",top:"0"};if(!u.value)return L;const v=mA(u.value,p.value),I=mA(u.value,y.value);return d.value?{...L,transform:"translate("+v+"px, "+I+"px)",...fA(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:v+"px",top:I+"px"}});let w;function x(){if(h.value==null||u.value==null)return;const L=r.value;iD(h.value,u.value,{middleware:i.value,placement:s.value,strategy:c.value}).then(v=>{p.value=v.x,y.value=v.y,f.value=v.strategy,m.value=v.placement,g.value=v.middlewareData,k.value=L!==!1})}function b(){typeof w=="function"&&(w(),w=void 0)}function C(){if(b(),o===void 0){x();return}if(h.value!=null&&u.value!=null){w=o(h.value,u.value,x);return}}function S(){r.value||(k.value=!1)}return a.watch([i,s,c,r],x,{flush:"sync"}),a.watch([h,u],C,{flush:"sync"}),a.watch(r,S,{flush:"sync"}),a.getCurrentScope()&&a.onScopeDispose(b),{x:a.shallowReadonly(p),y:a.shallowReadonly(y),strategy:a.shallowReadonly(f),placement:a.shallowReadonly(m),middlewareData:a.shallowReadonly(g),isPositioned:a.shallowReadonly(k),floatingStyles:M,update:x}}/**
|
|
2
2
|
* @license lucide-vue-next v0.575.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -8493,13 +8493,13 @@
|
|
|
8493
8493
|
*
|
|
8494
8494
|
* This source code is licensed under the ISC license.
|
|
8495
8495
|
* See the LICENSE file in the root directory of this source tree.
|
|
8496
|
-
*/const na=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:f1,AArrowDownIcon:f1,AArrowUp:m1,AArrowUpIcon:m1,ALargeSmall:k1,ALargeSmallIcon:k1,Accessibility:g1,AccessibilityIcon:g1,Activity:b1,ActivityIcon:b1,ActivitySquare:Ar,ActivitySquareIcon:Ar,AirVent:M1,AirVentIcon:M1,Airplay:x1,AirplayIcon:x1,AlarmCheck:Na,AlarmCheckIcon:Na,AlarmClock:v1,AlarmClockCheck:Na,AlarmClockCheckIcon:Na,AlarmClockIcon:v1,AlarmClockMinus:Ra,AlarmClockMinusIcon:Ra,AlarmClockOff:w1,AlarmClockOffIcon:w1,AlarmClockPlus:$a,AlarmClockPlusIcon:$a,AlarmMinus:Ra,AlarmMinusIcon:Ra,AlarmPlus:$a,AlarmPlusIcon:$a,AlarmSmoke:C1,AlarmSmokeIcon:C1,Album:S1,AlbumIcon:S1,AlertCircle:Tt,AlertCircleIcon:Tt,AlertOctagon:ar,AlertOctagonIcon:ar,AlertTriangle:Oi,AlertTriangleIcon:Oi,AlignCenter:zi,AlignCenterHorizontal:L1,AlignCenterHorizontalIcon:L1,AlignCenterIcon:zi,AlignCenterVertical:I1,AlignCenterVerticalIcon:I1,AlignEndHorizontal:_1,AlignEndHorizontalIcon:_1,AlignEndVertical:A1,AlignEndVerticalIcon:A1,AlignHorizontalDistributeCenter:B1,AlignHorizontalDistributeCenterIcon:B1,AlignHorizontalDistributeEnd:V1,AlignHorizontalDistributeEndIcon:V1,AlignHorizontalDistributeStart:z1,AlignHorizontalDistributeStartIcon:z1,AlignHorizontalJustifyCenter:P1,AlignHorizontalJustifyCenterIcon:P1,AlignHorizontalJustifyEnd:q1,AlignHorizontalJustifyEndIcon:q1,AlignHorizontalJustifyStart:D1,AlignHorizontalJustifyStartIcon:D1,AlignHorizontalSpaceAround:E1,AlignHorizontalSpaceAroundIcon:E1,AlignHorizontalSpaceBetween:T1,AlignHorizontalSpaceBetweenIcon:T1,AlignJustify:Vi,AlignJustifyIcon:Vi,AlignLeft:Ut,AlignLeftIcon:Ut,AlignRight:Bi,AlignRightIcon:Bi,AlignStartHorizontal:H1,AlignStartHorizontalIcon:H1,AlignStartVertical:O1,AlignStartVerticalIcon:O1,AlignVerticalDistributeCenter:j1,AlignVerticalDistributeCenterIcon:j1,AlignVerticalDistributeEnd:F1,AlignVerticalDistributeEndIcon:F1,AlignVerticalDistributeStart:N1,AlignVerticalDistributeStartIcon:N1,AlignVerticalJustifyCenter:R1,AlignVerticalJustifyCenterIcon:R1,AlignVerticalJustifyEnd:$1,AlignVerticalJustifyEndIcon:$1,AlignVerticalJustifyStart:U1,AlignVerticalJustifyStartIcon:U1,AlignVerticalSpaceAround:W1,AlignVerticalSpaceAroundIcon:W1,AlignVerticalSpaceBetween:G1,AlignVerticalSpaceBetweenIcon:G1,Ambulance:K1,AmbulanceIcon:K1,Ampersand:X1,AmpersandIcon:X1,Ampersands:Z1,AmpersandsIcon:Z1,Amphora:Q1,AmphoraIcon:Q1,Anchor:Y1,AnchorIcon:Y1,Angry:J1,AngryIcon:J1,Annoyed:ec,AnnoyedIcon:ec,Antenna:tc,AntennaIcon:tc,Anvil:ac,AnvilIcon:ac,Aperture:nc,ApertureIcon:nc,AppWindow:rc,AppWindowIcon:rc,AppWindowMac:oc,AppWindowMacIcon:oc,Apple:ic,AppleIcon:ic,Archive:cc,ArchiveIcon:cc,ArchiveRestore:sc,ArchiveRestoreIcon:sc,ArchiveX:lc,ArchiveXIcon:lc,AreaChart:rn,AreaChartIcon:rn,Armchair:dc,ArmchairIcon:dc,ArrowBigDown:uc,ArrowBigDownDash:hc,ArrowBigDownDashIcon:hc,ArrowBigDownIcon:uc,ArrowBigLeft:yc,ArrowBigLeftDash:pc,ArrowBigLeftDashIcon:pc,ArrowBigLeftIcon:yc,ArrowBigRight:mc,ArrowBigRightDash:fc,ArrowBigRightDashIcon:fc,ArrowBigRightIcon:mc,ArrowBigUp:kc,ArrowBigUpDash:gc,ArrowBigUpDashIcon:gc,ArrowBigUpIcon:kc,ArrowDown:_c,ArrowDown01:Mc,ArrowDown01Icon:Mc,ArrowDown10:bc,ArrowDown10Icon:bc,ArrowDownAZ:Ua,ArrowDownAZIcon:Ua,ArrowDownAz:Ua,ArrowDownAzIcon:Ua,ArrowDownCircle:wn,ArrowDownCircleIcon:wn,ArrowDownFromLine:xc,ArrowDownFromLineIcon:xc,ArrowDownIcon:_c,ArrowDownLeft:wc,ArrowDownLeftFromCircle:Cn,ArrowDownLeftFromCircleIcon:Cn,ArrowDownLeftFromSquare:qr,ArrowDownLeftFromSquareIcon:qr,ArrowDownLeftIcon:wc,ArrowDownLeftSquare:Br,ArrowDownLeftSquareIcon:Br,ArrowDownNarrowWide:Cc,ArrowDownNarrowWideIcon:Cc,ArrowDownRight:vc,ArrowDownRightFromCircle:Ln,ArrowDownRightFromCircleIcon:Ln,ArrowDownRightFromSquare:Dr,ArrowDownRightFromSquareIcon:Dr,ArrowDownRightIcon:vc,ArrowDownRightSquare:Vr,ArrowDownRightSquareIcon:Vr,ArrowDownSquare:zr,ArrowDownSquareIcon:zr,ArrowDownToDot:Lc,ArrowDownToDotIcon:Lc,ArrowDownToLine:Sc,ArrowDownToLineIcon:Sc,ArrowDownUp:Ic,ArrowDownUpIcon:Ic,ArrowDownWideNarrow:Wa,ArrowDownWideNarrowIcon:Wa,ArrowDownZA:Ga,ArrowDownZAIcon:Ga,ArrowDownZa:Ga,ArrowDownZaIcon:Ga,ArrowLeft:zc,ArrowLeftCircle:vn,ArrowLeftCircleIcon:vn,ArrowLeftFromLine:Ac,ArrowLeftFromLineIcon:Ac,ArrowLeftIcon:zc,ArrowLeftRight:Vc,ArrowLeftRightIcon:Vc,ArrowLeftSquare:Pr,ArrowLeftSquareIcon:Pr,ArrowLeftToLine:Bc,ArrowLeftToLineIcon:Bc,ArrowRight:Qs,ArrowRightCircle:_n,ArrowRightCircleIcon:_n,ArrowRightFromLine:Pc,ArrowRightFromLineIcon:Pc,ArrowRightIcon:Qs,ArrowRightLeft:qc,ArrowRightLeftIcon:qc,ArrowRightSquare:Hr,ArrowRightSquareIcon:Hr,ArrowRightToLine:Dc,ArrowRightToLineIcon:Dc,ArrowUp:Wc,ArrowUp01:Ec,ArrowUp01Icon:Ec,ArrowUp10:Tc,ArrowUp10Icon:Tc,ArrowUpAZ:Ka,ArrowUpAZIcon:Ka,ArrowUpAz:Ka,ArrowUpAzIcon:Ka,ArrowUpCircle:An,ArrowUpCircleIcon:An,ArrowUpDown:Hc,ArrowUpDownIcon:Hc,ArrowUpFromDot:Oc,ArrowUpFromDotIcon:Oc,ArrowUpFromLine:jc,ArrowUpFromLineIcon:jc,ArrowUpIcon:Wc,ArrowUpLeft:Fc,ArrowUpLeftFromCircle:Sn,ArrowUpLeftFromCircleIcon:Sn,ArrowUpLeftFromSquare:Er,ArrowUpLeftFromSquareIcon:Er,ArrowUpLeftIcon:Fc,ArrowUpLeftSquare:jr,ArrowUpLeftSquareIcon:jr,ArrowUpNarrowWide:Xa,ArrowUpNarrowWideIcon:Xa,ArrowUpRight:Nc,ArrowUpRightFromCircle:In,ArrowUpRightFromCircleIcon:In,ArrowUpRightFromSquare:Tr,ArrowUpRightFromSquareIcon:Tr,ArrowUpRightIcon:Nc,ArrowUpRightSquare:Or,ArrowUpRightSquareIcon:Or,ArrowUpSquare:Fr,ArrowUpSquareIcon:Fr,ArrowUpToLine:Rc,ArrowUpToLineIcon:Rc,ArrowUpWideNarrow:$c,ArrowUpWideNarrowIcon:$c,ArrowUpZA:Za,ArrowUpZAIcon:Za,ArrowUpZa:Za,ArrowUpZaIcon:Za,ArrowsUpFromLine:Uc,ArrowsUpFromLineIcon:Uc,Asterisk:Gc,AsteriskIcon:Gc,AsteriskSquare:Nr,AsteriskSquareIcon:Nr,AtSign:Kc,AtSignIcon:Kc,Atom:Xc,AtomIcon:Xc,AudioLines:Zc,AudioLinesIcon:Zc,AudioWaveform:Yc,AudioWaveformIcon:Yc,Award:Qc,AwardIcon:Qc,Axe:Jc,AxeIcon:Jc,Axis3D:Ya,Axis3DIcon:Ya,Axis3d:Ya,Axis3dIcon:Ya,Baby:td,BabyIcon:td,Backpack:ed,BackpackIcon:ed,Badge:kd,BadgeAlert:ad,BadgeAlertIcon:ad,BadgeCent:nd,BadgeCentIcon:nd,BadgeCheck:Qa,BadgeCheckIcon:Qa,BadgeDollarSign:od,BadgeDollarSignIcon:od,BadgeEuro:rd,BadgeEuroIcon:rd,BadgeHelp:Ja,BadgeHelpIcon:Ja,BadgeIcon:kd,BadgeIndianRupee:id,BadgeIndianRupeeIcon:id,BadgeInfo:sd,BadgeInfoIcon:sd,BadgeJapaneseYen:ld,BadgeJapaneseYenIcon:ld,BadgeMinus:cd,BadgeMinusIcon:cd,BadgePercent:dd,BadgePercentIcon:dd,BadgePlus:hd,BadgePlusIcon:hd,BadgePoundSterling:ud,BadgePoundSterlingIcon:ud,BadgeQuestionMark:Ja,BadgeQuestionMarkIcon:Ja,BadgeRussianRuble:pd,BadgeRussianRubleIcon:pd,BadgeSwissFranc:yd,BadgeSwissFrancIcon:yd,BadgeTurkishLira:fd,BadgeTurkishLiraIcon:fd,BadgeX:md,BadgeXIcon:md,BaggageClaim:gd,BaggageClaimIcon:gd,Balloon:bd,BalloonIcon:bd,Ban:xd,BanIcon:xd,Banana:Md,BananaIcon:Md,Bandage:wd,BandageIcon:wd,Banknote:_d,BanknoteArrowDown:vd,BanknoteArrowDownIcon:vd,BanknoteArrowUp:Cd,BanknoteArrowUpIcon:Cd,BanknoteIcon:_d,BanknoteX:Ld,BanknoteXIcon:Ld,BarChart:yn,BarChart2:fn,BarChart2Icon:fn,BarChart3:un,BarChart3Icon:un,BarChart4:hn,BarChart4Icon:hn,BarChartBig:dn,BarChartBigIcon:dn,BarChartHorizontal:cn,BarChartHorizontalBig:sn,BarChartHorizontalBigIcon:sn,BarChartHorizontalIcon:cn,BarChartIcon:yn,Barcode:Sd,BarcodeIcon:Sd,Barrel:Id,BarrelIcon:Id,Baseline:Ad,BaselineIcon:Ad,Bath:Bd,BathIcon:Bd,Battery:Td,BatteryCharging:Vd,BatteryChargingIcon:Vd,BatteryFull:zd,BatteryFullIcon:zd,BatteryIcon:Td,BatteryLow:Pd,BatteryLowIcon:Pd,BatteryMedium:Dd,BatteryMediumIcon:Dd,BatteryPlus:qd,BatteryPlusIcon:qd,BatteryWarning:Ed,BatteryWarningIcon:Ed,Beaker:Hd,BeakerIcon:Hd,Bean:jd,BeanIcon:jd,BeanOff:Od,BeanOffIcon:Od,Bed:Rd,BedDouble:Fd,BedDoubleIcon:Fd,BedIcon:Rd,BedSingle:Nd,BedSingleIcon:Nd,Beef:$d,BeefIcon:$d,Beer:Wd,BeerIcon:Wd,BeerOff:Ud,BeerOffIcon:Ud,Bell:Qd,BellDot:Gd,BellDotIcon:Gd,BellElectric:Kd,BellElectricIcon:Kd,BellIcon:Qd,BellMinus:Xd,BellMinusIcon:Xd,BellOff:Zd,BellOffIcon:Zd,BellPlus:Yd,BellPlusIcon:Yd,BellRing:Jd,BellRingIcon:Jd,BetweenHorizonalEnd:en,BetweenHorizonalEndIcon:en,BetweenHorizonalStart:tn,BetweenHorizonalStartIcon:tn,BetweenHorizontalEnd:en,BetweenHorizontalEndIcon:en,BetweenHorizontalStart:tn,BetweenHorizontalStartIcon:tn,BetweenVerticalEnd:e0,BetweenVerticalEndIcon:e0,BetweenVerticalStart:t0,BetweenVerticalStartIcon:t0,BicepsFlexed:a0,BicepsFlexedIcon:a0,Bike:n0,BikeIcon:n0,Binary:o0,BinaryIcon:o0,Binoculars:i0,BinocularsIcon:i0,Biohazard:r0,BiohazardIcon:r0,Bird:s0,BirdIcon:s0,Birdhouse:l0,BirdhouseIcon:l0,Bitcoin:c0,BitcoinIcon:c0,Blend:d0,BlendIcon:d0,Blinds:h0,BlindsIcon:h0,Blocks:p0,BlocksIcon:p0,Bluetooth:m0,BluetoothConnected:u0,BluetoothConnectedIcon:u0,BluetoothIcon:m0,BluetoothOff:y0,BluetoothOffIcon:y0,BluetoothSearching:f0,BluetoothSearchingIcon:f0,Bold:k0,BoldIcon:k0,Bolt:g0,BoltIcon:g0,Bomb:b0,BombIcon:b0,Bone:M0,BoneIcon:M0,Book:U0,BookA:x0,BookAIcon:x0,BookAlert:w0,BookAlertIcon:w0,BookAudio:v0,BookAudioIcon:v0,BookCheck:L0,BookCheckIcon:L0,BookCopy:C0,BookCopyIcon:C0,BookDashed:an,BookDashedIcon:an,BookDown:S0,BookDownIcon:S0,BookHeadphones:I0,BookHeadphonesIcon:I0,BookHeart:_0,BookHeartIcon:_0,BookIcon:U0,BookImage:A0,BookImageIcon:A0,BookKey:B0,BookKeyIcon:B0,BookLock:V0,BookLockIcon:V0,BookMarked:z0,BookMarkedIcon:z0,BookMinus:P0,BookMinusIcon:P0,BookOpen:E0,BookOpenCheck:q0,BookOpenCheckIcon:q0,BookOpenIcon:E0,BookOpenText:D0,BookOpenTextIcon:D0,BookPlus:T0,BookPlusIcon:T0,BookSearch:H0,BookSearchIcon:H0,BookTemplate:an,BookTemplateIcon:an,BookText:O0,BookTextIcon:O0,BookType:j0,BookTypeIcon:j0,BookUp:F0,BookUp2:N0,BookUp2Icon:N0,BookUpIcon:F0,BookUser:R0,BookUserIcon:R0,BookX:$0,BookXIcon:$0,Bookmark:Z0,BookmarkCheck:W0,BookmarkCheckIcon:W0,BookmarkIcon:Z0,BookmarkMinus:G0,BookmarkMinusIcon:G0,BookmarkPlus:K0,BookmarkPlusIcon:K0,BookmarkX:X0,BookmarkXIcon:X0,BoomBox:Q0,BoomBoxIcon:Q0,Bot:e2,BotIcon:e2,BotMessageSquare:Y0,BotMessageSquareIcon:Y0,BotOff:J0,BotOffIcon:J0,BottleWine:a2,BottleWineIcon:a2,BowArrow:t2,BowArrowIcon:t2,Box:n2,BoxIcon:n2,BoxSelect:ti,BoxSelectIcon:ti,Boxes:o2,BoxesIcon:o2,Braces:nn,BracesIcon:nn,Brackets:r2,BracketsIcon:r2,Brain:l2,BrainCircuit:s2,BrainCircuitIcon:s2,BrainCog:i2,BrainCogIcon:i2,BrainIcon:l2,BrickWall:d2,BrickWallFire:c2,BrickWallFireIcon:c2,BrickWallIcon:d2,BrickWallShield:h2,BrickWallShieldIcon:h2,Briefcase:y2,BriefcaseBusiness:u2,BriefcaseBusinessIcon:u2,BriefcaseConveyorBelt:p2,BriefcaseConveyorBeltIcon:p2,BriefcaseIcon:y2,BriefcaseMedical:f2,BriefcaseMedicalIcon:f2,BringToFront:m2,BringToFrontIcon:m2,Brush:g2,BrushCleaning:k2,BrushCleaningIcon:k2,BrushIcon:g2,Bubbles:b2,BubblesIcon:b2,Bug:w2,BugIcon:w2,BugOff:M2,BugOffIcon:M2,BugPlay:x2,BugPlayIcon:x2,Building:C2,Building2:v2,Building2Icon:v2,BuildingIcon:C2,Bus:S2,BusFront:L2,BusFrontIcon:L2,BusIcon:S2,Cable:_2,CableCar:I2,CableCarIcon:I2,CableIcon:_2,Cake:B2,CakeIcon:B2,CakeSlice:A2,CakeSliceIcon:A2,Calculator:V2,CalculatorIcon:V2,Calendar:Js,Calendar1:z2,Calendar1Icon:z2,CalendarArrowDown:D2,CalendarArrowDownIcon:D2,CalendarArrowUp:P2,CalendarArrowUpIcon:P2,CalendarCheck:E2,CalendarCheck2:q2,CalendarCheck2Icon:q2,CalendarCheckIcon:E2,CalendarClock:T2,CalendarClockIcon:T2,CalendarCog:O2,CalendarCogIcon:O2,CalendarDays:H2,CalendarDaysIcon:H2,CalendarFold:j2,CalendarFoldIcon:j2,CalendarHeart:F2,CalendarHeartIcon:F2,CalendarIcon:Js,CalendarMinus:R2,CalendarMinus2:N2,CalendarMinus2Icon:N2,CalendarMinusIcon:R2,CalendarOff:$2,CalendarOffIcon:$2,CalendarPlus:W2,CalendarPlus2:U2,CalendarPlus2Icon:U2,CalendarPlusIcon:W2,CalendarRange:G2,CalendarRangeIcon:G2,CalendarSearch:K2,CalendarSearchIcon:K2,CalendarSync:X2,CalendarSyncIcon:X2,CalendarX:Y2,CalendarX2:Z2,CalendarX2Icon:Z2,CalendarXIcon:Y2,Calendars:Q2,CalendarsIcon:Q2,Camera:eh,CameraIcon:eh,CameraOff:J2,CameraOffIcon:J2,CandlestickChart:ln,CandlestickChartIcon:ln,Candy:nh,CandyCane:th,CandyCaneIcon:th,CandyIcon:nh,CandyOff:ah,CandyOffIcon:ah,Cannabis:rh,CannabisIcon:rh,CannabisOff:oh,CannabisOffIcon:oh,Captions:on,CaptionsIcon:on,CaptionsOff:ih,CaptionsOffIcon:ih,Car:ch,CarFront:sh,CarFrontIcon:sh,CarIcon:ch,CarTaxiFront:lh,CarTaxiFrontIcon:lh,Caravan:dh,CaravanIcon:dh,CardSim:hh,CardSimIcon:hh,Carrot:uh,CarrotIcon:uh,CaseLower:ph,CaseLowerIcon:ph,CaseSensitive:yh,CaseSensitiveIcon:yh,CaseUpper:fh,CaseUpperIcon:fh,CassetteTape:mh,CassetteTapeIcon:mh,Cast:kh,CastIcon:kh,Castle:gh,CastleIcon:gh,Cat:bh,CatIcon:bh,Cctv:Mh,CctvIcon:Mh,ChartArea:rn,ChartAreaIcon:rn,ChartBar:cn,ChartBarBig:sn,ChartBarBigIcon:sn,ChartBarDecreasing:wh,ChartBarDecreasingIcon:wh,ChartBarIcon:cn,ChartBarIncreasing:xh,ChartBarIncreasingIcon:xh,ChartBarStacked:vh,ChartBarStackedIcon:vh,ChartCandlestick:ln,ChartCandlestickIcon:ln,ChartColumn:un,ChartColumnBig:dn,ChartColumnBigIcon:dn,ChartColumnDecreasing:Ch,ChartColumnDecreasingIcon:Ch,ChartColumnIcon:un,ChartColumnIncreasing:hn,ChartColumnIncreasingIcon:hn,ChartColumnStacked:Lh,ChartColumnStackedIcon:Lh,ChartGantt:Sh,ChartGanttIcon:Sh,ChartLine:pn,ChartLineIcon:pn,ChartNetwork:Ih,ChartNetworkIcon:Ih,ChartNoAxesColumn:fn,ChartNoAxesColumnDecreasing:_h,ChartNoAxesColumnDecreasingIcon:_h,ChartNoAxesColumnIcon:fn,ChartNoAxesColumnIncreasing:yn,ChartNoAxesColumnIncreasingIcon:yn,ChartNoAxesCombined:Ah,ChartNoAxesCombinedIcon:Ah,ChartNoAxesGantt:kn,ChartNoAxesGanttIcon:kn,ChartPie:mn,ChartPieIcon:mn,ChartScatter:gn,ChartScatterIcon:gn,ChartSpline:Vh,ChartSplineIcon:Vh,Check:ka,CheckCheck:Bh,CheckCheckIcon:Bh,CheckCircle:ga,CheckCircle2:Bn,CheckCircle2Icon:Bn,CheckCircleIcon:ga,CheckIcon:ka,CheckLine:zh,CheckLineIcon:zh,CheckSquare:Wr,CheckSquare2:Gr,CheckSquare2Icon:Gr,CheckSquareIcon:Wr,ChefHat:Ph,ChefHatIcon:Ph,Cherry:qh,CherryIcon:qh,ChessBishop:Dh,ChessBishopIcon:Dh,ChessKing:Eh,ChessKingIcon:Eh,ChessKnight:Th,ChessKnightIcon:Th,ChessPawn:Hh,ChessPawnIcon:Hh,ChessQueen:Oh,ChessQueenIcon:Oh,ChessRook:jh,ChessRookIcon:jh,ChevronDown:Et,ChevronDownCircle:zn,ChevronDownCircleIcon:zn,ChevronDownIcon:Et,ChevronDownSquare:Kr,ChevronDownSquareIcon:Kr,ChevronFirst:Fh,ChevronFirstIcon:Fh,ChevronLast:Nh,ChevronLastIcon:Nh,ChevronLeft:bn,ChevronLeftCircle:Pn,ChevronLeftCircleIcon:Pn,ChevronLeftIcon:bn,ChevronLeftSquare:Xr,ChevronLeftSquareIcon:Xr,ChevronRight:Mn,ChevronRightCircle:Vn,ChevronRightCircleIcon:Vn,ChevronRightIcon:Mn,ChevronRightSquare:Zr,ChevronRightSquareIcon:Zr,ChevronUp:el,ChevronUpCircle:qn,ChevronUpCircleIcon:qn,ChevronUpIcon:el,ChevronUpSquare:Yr,ChevronUpSquareIcon:Yr,ChevronsDown:$h,ChevronsDownIcon:$h,ChevronsDownUp:Rh,ChevronsDownUpIcon:Rh,ChevronsLeft:tl,ChevronsLeftIcon:tl,ChevronsLeftRight:Wh,ChevronsLeftRightEllipsis:Uh,ChevronsLeftRightEllipsisIcon:Uh,ChevronsLeftRightIcon:Wh,ChevronsRight:al,ChevronsRightIcon:al,ChevronsRightLeft:Gh,ChevronsRightLeftIcon:Gh,ChevronsUp:Xh,ChevronsUpDown:Kh,ChevronsUpDownIcon:Kh,ChevronsUpIcon:Xh,Chrome:xn,ChromeIcon:xn,Chromium:xn,ChromiumIcon:xn,Church:Yh,ChurchIcon:Yh,Cigarette:Qh,CigaretteIcon:Qh,CigaretteOff:Zh,CigaretteOffIcon:Zh,Circle:nl,CircleAlert:Tt,CircleAlertIcon:Tt,CircleArrowDown:wn,CircleArrowDownIcon:wn,CircleArrowLeft:vn,CircleArrowLeftIcon:vn,CircleArrowOutDownLeft:Cn,CircleArrowOutDownLeftIcon:Cn,CircleArrowOutDownRight:Ln,CircleArrowOutDownRightIcon:Ln,CircleArrowOutUpLeft:Sn,CircleArrowOutUpLeftIcon:Sn,CircleArrowOutUpRight:In,CircleArrowOutUpRightIcon:In,CircleArrowRight:_n,CircleArrowRightIcon:_n,CircleArrowUp:An,CircleArrowUpIcon:An,CircleCheck:Bn,CircleCheckBig:ga,CircleCheckBigIcon:ga,CircleCheckIcon:Bn,CircleChevronDown:zn,CircleChevronDownIcon:zn,CircleChevronLeft:Pn,CircleChevronLeftIcon:Pn,CircleChevronRight:Vn,CircleChevronRightIcon:Vn,CircleChevronUp:qn,CircleChevronUpIcon:qn,CircleDashed:Jh,CircleDashedIcon:Jh,CircleDivide:Dn,CircleDivideIcon:Dn,CircleDollarSign:eu,CircleDollarSignIcon:eu,CircleDot:au,CircleDotDashed:tu,CircleDotDashedIcon:tu,CircleDotIcon:au,CircleEllipsis:ou,CircleEllipsisIcon:ou,CircleEqual:nu,CircleEqualIcon:nu,CircleFadingArrowUp:ru,CircleFadingArrowUpIcon:ru,CircleFadingPlus:iu,CircleFadingPlusIcon:iu,CircleGauge:En,CircleGaugeIcon:En,CircleHelp:Ht,CircleHelpIcon:Ht,CircleIcon:nl,CircleMinus:Tn,CircleMinusIcon:Tn,CircleOff:su,CircleOffIcon:su,CircleParking:On,CircleParkingIcon:On,CircleParkingOff:Hn,CircleParkingOffIcon:Hn,CirclePause:jn,CirclePauseIcon:jn,CirclePercent:Fn,CirclePercentIcon:Fn,CirclePile:lu,CirclePileIcon:lu,CirclePlay:Nn,CirclePlayIcon:Nn,CirclePlus:Rn,CirclePlusIcon:Rn,CirclePoundSterling:cu,CirclePoundSterlingIcon:cu,CirclePower:$n,CirclePowerIcon:$n,CircleQuestionMark:Ht,CircleQuestionMarkIcon:Ht,CircleSlash:du,CircleSlash2:Un,CircleSlash2Icon:Un,CircleSlashIcon:du,CircleSlashed:Un,CircleSlashedIcon:Un,CircleSmall:hu,CircleSmallIcon:hu,CircleStar:uu,CircleStarIcon:uu,CircleStop:Wn,CircleStopIcon:Wn,CircleUser:Kn,CircleUserIcon:Kn,CircleUserRound:Gn,CircleUserRoundIcon:Gn,CircleX:Xn,CircleXIcon:Xn,CircuitBoard:pu,CircuitBoardIcon:pu,Citrus:yu,CitrusIcon:yu,Clapperboard:fu,ClapperboardIcon:fu,Clipboard:Lu,ClipboardCheck:ku,ClipboardCheckIcon:ku,ClipboardClock:mu,ClipboardClockIcon:mu,ClipboardCopy:gu,ClipboardCopyIcon:gu,ClipboardEdit:Yn,ClipboardEditIcon:Yn,ClipboardIcon:Lu,ClipboardList:bu,ClipboardListIcon:bu,ClipboardMinus:Mu,ClipboardMinusIcon:Mu,ClipboardPaste:xu,ClipboardPasteIcon:xu,ClipboardPen:Yn,ClipboardPenIcon:Yn,ClipboardPenLine:Zn,ClipboardPenLineIcon:Zn,ClipboardPlus:wu,ClipboardPlusIcon:wu,ClipboardSignature:Zn,ClipboardSignatureIcon:Zn,ClipboardType:vu,ClipboardTypeIcon:vu,ClipboardX:Cu,ClipboardXIcon:Cu,Clock:ol,Clock1:Su,Clock10:Iu,Clock10Icon:Iu,Clock11:_u,Clock11Icon:_u,Clock12:Au,Clock12Icon:Au,Clock1Icon:Su,Clock2:Bu,Clock2Icon:Bu,Clock3:Vu,Clock3Icon:Vu,Clock4:zu,Clock4Icon:zu,Clock5:Pu,Clock5Icon:Pu,Clock6:qu,Clock6Icon:qu,Clock7:Du,Clock7Icon:Du,Clock8:Eu,Clock8Icon:Eu,Clock9:Tu,Clock9Icon:Tu,ClockAlert:Hu,ClockAlertIcon:Hu,ClockArrowDown:Ou,ClockArrowDownIcon:Ou,ClockArrowUp:ju,ClockArrowUpIcon:ju,ClockCheck:Fu,ClockCheckIcon:Fu,ClockFading:Nu,ClockFadingIcon:Nu,ClockIcon:ol,ClockPlus:Ru,ClockPlusIcon:Ru,ClosedCaption:$u,ClosedCaptionIcon:$u,Cloud:lp,CloudAlert:Uu,CloudAlertIcon:Uu,CloudBackup:Wu,CloudBackupIcon:Wu,CloudCheck:Gu,CloudCheckIcon:Gu,CloudCog:Ku,CloudCogIcon:Ku,CloudDownload:Qn,CloudDownloadIcon:Qn,CloudDrizzle:Xu,CloudDrizzleIcon:Xu,CloudFog:Zu,CloudFogIcon:Zu,CloudHail:Yu,CloudHailIcon:Yu,CloudIcon:lp,CloudLightning:Qu,CloudLightningIcon:Qu,CloudMoon:ep,CloudMoonIcon:ep,CloudMoonRain:Ju,CloudMoonRainIcon:Ju,CloudOff:tp,CloudOffIcon:tp,CloudRain:np,CloudRainIcon:np,CloudRainWind:ap,CloudRainWindIcon:ap,CloudSnow:op,CloudSnowIcon:op,CloudSun:ip,CloudSunIcon:ip,CloudSunRain:rp,CloudSunRainIcon:rp,CloudSync:sp,CloudSyncIcon:sp,CloudUpload:ba,CloudUploadIcon:ba,Cloudy:cp,CloudyIcon:cp,Clover:dp,CloverIcon:dp,Club:hp,ClubIcon:hp,Code:up,Code2:Jn,Code2Icon:Jn,CodeIcon:up,CodeSquare:Qr,CodeSquareIcon:Qr,CodeXml:Jn,CodeXmlIcon:Jn,Codepen:pp,CodepenIcon:pp,Codesandbox:yp,CodesandboxIcon:yp,Coffee:fp,CoffeeIcon:fp,Cog:mp,CogIcon:mp,Coins:kp,CoinsIcon:kp,Columns:eo,Columns2:eo,Columns2Icon:eo,Columns3:to,Columns3Cog:Ot,Columns3CogIcon:Ot,Columns3Icon:to,Columns4:gp,Columns4Icon:gp,ColumnsIcon:eo,ColumnsSettings:Ot,ColumnsSettingsIcon:Ot,Combine:bp,CombineIcon:bp,Command:Mp,CommandIcon:Mp,Compass:xp,CompassIcon:xp,Component:wp,ComponentIcon:wp,Computer:vp,ComputerIcon:vp,ConciergeBell:Cp,ConciergeBellIcon:Cp,Cone:Lp,ConeIcon:Lp,Construction:Sp,ConstructionIcon:Sp,Contact:Ip,Contact2:ao,Contact2Icon:ao,ContactIcon:Ip,ContactRound:ao,ContactRoundIcon:ao,Container:_p,ContainerIcon:_p,Contrast:Ap,ContrastIcon:Ap,Cookie:Vp,CookieIcon:Vp,CookingPot:Bp,CookingPotIcon:Bp,Copy:Tp,CopyCheck:zp,CopyCheckIcon:zp,CopyIcon:Tp,CopyMinus:Pp,CopyMinusIcon:Pp,CopyPlus:qp,CopyPlusIcon:qp,CopySlash:Ep,CopySlashIcon:Ep,CopyX:Dp,CopyXIcon:Dp,Copyleft:Hp,CopyleftIcon:Hp,Copyright:Op,CopyrightIcon:Op,CornerDownLeft:jp,CornerDownLeftIcon:jp,CornerDownRight:Np,CornerDownRightIcon:Np,CornerLeftDown:Fp,CornerLeftDownIcon:Fp,CornerLeftUp:Rp,CornerLeftUpIcon:Rp,CornerRightDown:$p,CornerRightDownIcon:$p,CornerRightUp:Up,CornerRightUpIcon:Up,CornerUpLeft:Wp,CornerUpLeftIcon:Wp,CornerUpRight:Gp,CornerUpRightIcon:Gp,Cpu:xs,CpuIcon:xs,CreativeCommons:Kp,CreativeCommonsIcon:Kp,CreditCard:Xp,CreditCardIcon:Xp,Croissant:Zp,CroissantIcon:Zp,Crop:Yp,CropIcon:Yp,Cross:Qp,CrossIcon:Qp,Crosshair:ey,CrosshairIcon:ey,Crown:Jp,CrownIcon:Jp,Cuboid:ty,CuboidIcon:ty,CupSoda:ay,CupSodaIcon:ay,CurlyBraces:nn,CurlyBracesIcon:nn,Currency:ny,CurrencyIcon:ny,Cylinder:oy,CylinderIcon:oy,Dam:ry,DamIcon:ry,Database:cy,DatabaseBackup:iy,DatabaseBackupIcon:iy,DatabaseIcon:cy,DatabaseSearch:sy,DatabaseSearchIcon:sy,DatabaseZap:ly,DatabaseZapIcon:ly,DecimalsArrowLeft:dy,DecimalsArrowLeftIcon:dy,DecimalsArrowRight:hy,DecimalsArrowRightIcon:hy,Delete:uy,DeleteIcon:uy,Dessert:py,DessertIcon:py,Diameter:yy,DiameterIcon:yy,Diamond:ky,DiamondIcon:ky,DiamondMinus:fy,DiamondMinusIcon:fy,DiamondPercent:no,DiamondPercentIcon:no,DiamondPlus:my,DiamondPlusIcon:my,Dice1:gy,Dice1Icon:gy,Dice2:by,Dice2Icon:by,Dice3:My,Dice3Icon:My,Dice4:xy,Dice4Icon:xy,Dice5:wy,Dice5Icon:wy,Dice6:vy,Dice6Icon:vy,Dices:Cy,DicesIcon:Cy,Diff:Ly,DiffIcon:Ly,Disc:Ay,Disc2:Sy,Disc2Icon:Sy,Disc3:Iy,Disc3Icon:Iy,DiscAlbum:_y,DiscAlbumIcon:_y,DiscIcon:Ay,Divide:By,DivideCircle:Dn,DivideCircleIcon:Dn,DivideIcon:By,DivideSquare:ni,DivideSquareIcon:ni,Dna:zy,DnaIcon:zy,DnaOff:Vy,DnaOffIcon:Vy,Dock:Py,DockIcon:Py,Dog:Dy,DogIcon:Dy,DollarSign:qy,DollarSignIcon:qy,Donut:Ty,DonutIcon:Ty,DoorClosed:Hy,DoorClosedIcon:Hy,DoorClosedLocked:Ey,DoorClosedLockedIcon:Ey,DoorOpen:Oy,DoorOpenIcon:Oy,Dot:jy,DotIcon:jy,DotSquare:ai,DotSquareIcon:ai,Download:rl,DownloadCloud:Qn,DownloadCloudIcon:Qn,DownloadIcon:rl,DraftingCompass:Fy,DraftingCompassIcon:Fy,Drama:Ry,DramaIcon:Ry,Dribbble:Ny,DribbbleIcon:Ny,Drill:$y,DrillIcon:$y,Drone:Uy,DroneIcon:Uy,Droplet:Gy,DropletIcon:Gy,DropletOff:Wy,DropletOffIcon:Wy,Droplets:Ky,DropletsIcon:Ky,Drum:Xy,DrumIcon:Xy,Drumstick:Zy,DrumstickIcon:Zy,Dumbbell:Yy,DumbbellIcon:Yy,Ear:Jy,EarIcon:Jy,EarOff:Qy,EarOffIcon:Qy,Earth:oo,EarthIcon:oo,EarthLock:ef,EarthLockIcon:ef,Eclipse:tf,EclipseIcon:tf,Edit:at,Edit2:fr,Edit2Icon:fr,Edit3:yr,Edit3Icon:yr,EditIcon:at,Egg:nf,EggFried:af,EggFriedIcon:af,EggIcon:nf,EggOff:of,EggOffIcon:of,Ellipsis:Ma,EllipsisIcon:Ma,EllipsisVertical:ro,EllipsisVerticalIcon:ro,Equal:lf,EqualApproximately:sf,EqualApproximatelyIcon:sf,EqualIcon:lf,EqualNot:rf,EqualNotIcon:rf,EqualSquare:oi,EqualSquareIcon:oi,Eraser:cf,EraserIcon:cf,EthernetPort:df,EthernetPortIcon:df,Euro:hf,EuroIcon:hf,EvCharger:uf,EvChargerIcon:uf,Expand:pf,ExpandIcon:pf,ExternalLink:yf,ExternalLinkIcon:yf,Eye:ws,EyeClosed:ff,EyeClosedIcon:ff,EyeIcon:ws,EyeOff:il,EyeOffIcon:il,Facebook:mf,FacebookIcon:mf,Factory:kf,FactoryIcon:kf,Fan:gf,FanIcon:gf,FastForward:bf,FastForwardIcon:bf,Feather:Mf,FeatherIcon:Mf,Fence:xf,FenceIcon:xf,FerrisWheel:wf,FerrisWheelIcon:wf,Figma:vf,FigmaIcon:vf,File:Yf,FileArchive:Cf,FileArchiveIcon:Cf,FileAudio:jt,FileAudio2:jt,FileAudio2Icon:jt,FileAudioIcon:jt,FileAxis3D:io,FileAxis3DIcon:io,FileAxis3d:io,FileAxis3dIcon:io,FileBadge:so,FileBadge2:so,FileBadge2Icon:so,FileBadgeIcon:so,FileBarChart:ho,FileBarChart2:uo,FileBarChart2Icon:uo,FileBarChartIcon:ho,FileBox:Lf,FileBoxIcon:Lf,FileBraces:co,FileBracesCorner:lo,FileBracesCornerIcon:lo,FileBracesIcon:co,FileChartColumn:uo,FileChartColumnIcon:uo,FileChartColumnIncreasing:ho,FileChartColumnIncreasingIcon:ho,FileChartLine:po,FileChartLineIcon:po,FileChartPie:yo,FileChartPieIcon:yo,FileCheck:Sf,FileCheck2:fo,FileCheck2Icon:fo,FileCheckCorner:fo,FileCheckCornerIcon:fo,FileCheckIcon:Sf,FileClock:If,FileClockIcon:If,FileCode:_f,FileCode2:mo,FileCode2Icon:mo,FileCodeCorner:mo,FileCodeCornerIcon:mo,FileCodeIcon:_f,FileCog:ko,FileCog2:ko,FileCog2Icon:ko,FileCogIcon:ko,FileDiff:Af,FileDiffIcon:Af,FileDigit:Vf,FileDigitIcon:Vf,FileDown:Bf,FileDownIcon:Bf,FileEdit:Co,FileEditIcon:Co,FileExclamationPoint:go,FileExclamationPointIcon:go,FileHeadphone:jt,FileHeadphoneIcon:jt,FileHeart:zf,FileHeartIcon:zf,FileIcon:Yf,FileImage:Pf,FileImageIcon:Pf,FileInput:qf,FileInputIcon:qf,FileJson:co,FileJson2:lo,FileJson2Icon:lo,FileJsonIcon:co,FileKey:bo,FileKey2:bo,FileKey2Icon:bo,FileKeyIcon:bo,FileLineChart:po,FileLineChartIcon:po,FileLock:Mo,FileLock2:Mo,FileLock2Icon:Mo,FileLockIcon:Mo,FileMinus:Ef,FileMinus2:xo,FileMinus2Icon:xo,FileMinusCorner:xo,FileMinusCornerIcon:xo,FileMinusIcon:Ef,FileMusic:Df,FileMusicIcon:Df,FileOutput:Tf,FileOutputIcon:Tf,FilePen:Co,FilePenIcon:Co,FilePenLine:wo,FilePenLineIcon:wo,FilePieChart:yo,FilePieChartIcon:yo,FilePlay:vo,FilePlayIcon:vo,FilePlus:Hf,FilePlus2:Lo,FilePlus2Icon:Lo,FilePlusCorner:Lo,FilePlusCornerIcon:Lo,FilePlusIcon:Hf,FileQuestion:So,FileQuestionIcon:So,FileQuestionMark:So,FileQuestionMarkIcon:So,FileScan:Of,FileScanIcon:Of,FileSearch:jf,FileSearch2:Io,FileSearch2Icon:Io,FileSearchCorner:Io,FileSearchCornerIcon:Io,FileSearchIcon:jf,FileSignal:_o,FileSignalIcon:_o,FileSignature:wo,FileSignatureIcon:wo,FileSliders:Ff,FileSlidersIcon:Ff,FileSpreadsheet:Nf,FileSpreadsheetIcon:Nf,FileStack:Rf,FileStackIcon:Rf,FileSymlink:$f,FileSymlinkIcon:$f,FileTerminal:Uf,FileTerminalIcon:Uf,FileText:vs,FileTextIcon:vs,FileType:Wf,FileType2:Ao,FileType2Icon:Ao,FileTypeCorner:Ao,FileTypeCornerIcon:Ao,FileTypeIcon:Wf,FileUp:Gf,FileUpIcon:Gf,FileUser:Kf,FileUserIcon:Kf,FileVideo:vo,FileVideo2:Bo,FileVideo2Icon:Bo,FileVideoCamera:Bo,FileVideoCameraIcon:Bo,FileVideoIcon:vo,FileVolume:Xf,FileVolume2:_o,FileVolume2Icon:_o,FileVolumeIcon:Xf,FileWarning:go,FileWarningIcon:go,FileX:Zf,FileX2:Vo,FileX2Icon:Vo,FileXCorner:Vo,FileXCornerIcon:Vo,FileXIcon:Zf,Files:Jf,FilesIcon:Jf,Film:Qf,FilmIcon:Qf,Filter:Eo,FilterIcon:Eo,FilterX:Do,FilterXIcon:Do,Fingerprint:zo,FingerprintIcon:zo,FingerprintPattern:zo,FingerprintPatternIcon:zo,FireExtinguisher:em,FireExtinguisherIcon:em,Fish:nm,FishIcon:nm,FishOff:tm,FishOffIcon:tm,FishSymbol:am,FishSymbolIcon:am,FishingHook:om,FishingHookIcon:om,Flag:lm,FlagIcon:lm,FlagOff:rm,FlagOffIcon:rm,FlagTriangleLeft:im,FlagTriangleLeftIcon:im,FlagTriangleRight:sm,FlagTriangleRightIcon:sm,Flame:dm,FlameIcon:dm,FlameKindling:cm,FlameKindlingIcon:cm,Flashlight:um,FlashlightIcon:um,FlashlightOff:hm,FlashlightOffIcon:hm,FlaskConical:ym,FlaskConicalIcon:ym,FlaskConicalOff:pm,FlaskConicalOffIcon:pm,FlaskRound:fm,FlaskRoundIcon:fm,FlipHorizontal:$r,FlipHorizontal2:mm,FlipHorizontal2Icon:mm,FlipHorizontalIcon:$r,FlipVertical:Ur,FlipVertical2:km,FlipVertical2Icon:km,FlipVerticalIcon:Ur,Flower:bm,Flower2:gm,Flower2Icon:gm,FlowerIcon:bm,Focus:Mm,FocusIcon:Mm,FoldHorizontal:xm,FoldHorizontalIcon:xm,FoldVertical:wm,FoldVerticalIcon:wm,Folder:Zm,FolderArchive:vm,FolderArchiveIcon:vm,FolderCheck:Cm,FolderCheckIcon:Cm,FolderClock:Lm,FolderClockIcon:Lm,FolderClosed:Sm,FolderClosedIcon:Sm,FolderCode:Im,FolderCodeIcon:Im,FolderCog:Po,FolderCog2:Po,FolderCog2Icon:Po,FolderCogIcon:Po,FolderDot:_m,FolderDotIcon:_m,FolderDown:Am,FolderDownIcon:Am,FolderEdit:qo,FolderEditIcon:qo,FolderGit:Vm,FolderGit2:Bm,FolderGit2Icon:Bm,FolderGitIcon:Vm,FolderHeart:zm,FolderHeartIcon:zm,FolderIcon:Zm,FolderInput:Pm,FolderInputIcon:Pm,FolderKanban:Dm,FolderKanbanIcon:Dm,FolderKey:qm,FolderKeyIcon:qm,FolderLock:Em,FolderLockIcon:Em,FolderMinus:Om,FolderMinusIcon:Om,FolderOpen:Hm,FolderOpenDot:Tm,FolderOpenDotIcon:Tm,FolderOpenIcon:Hm,FolderOutput:jm,FolderOutputIcon:jm,FolderPen:qo,FolderPenIcon:qo,FolderPlus:Rm,FolderPlusIcon:Rm,FolderRoot:Fm,FolderRootIcon:Fm,FolderSearch:$m,FolderSearch2:Nm,FolderSearch2Icon:Nm,FolderSearchIcon:$m,FolderSymlink:Wm,FolderSymlinkIcon:Wm,FolderSync:Um,FolderSyncIcon:Um,FolderTree:Gm,FolderTreeIcon:Gm,FolderUp:Km,FolderUpIcon:Km,FolderX:Xm,FolderXIcon:Xm,Folders:Ym,FoldersIcon:Ym,Footprints:Qm,FootprintsIcon:Qm,ForkKnife:Zi,ForkKnifeCrossed:Xi,ForkKnifeCrossedIcon:Xi,ForkKnifeIcon:Zi,Forklift:Jm,ForkliftIcon:Jm,Form:ek,FormIcon:ek,FormInput:gr,FormInputIcon:gr,Forward:ak,ForwardIcon:ak,Frame:tk,FrameIcon:tk,Framer:nk,FramerIcon:nk,Frown:ok,FrownIcon:ok,Fuel:rk,FuelIcon:rk,Fullscreen:ik,FullscreenIcon:ik,FunctionSquare:ri,FunctionSquareIcon:ri,Funnel:Eo,FunnelIcon:Eo,FunnelPlus:sk,FunnelPlusIcon:sk,FunnelX:Do,FunnelXIcon:Do,GalleryHorizontal:ck,GalleryHorizontalEnd:lk,GalleryHorizontalEndIcon:lk,GalleryHorizontalIcon:ck,GalleryThumbnails:dk,GalleryThumbnailsIcon:dk,GalleryVertical:uk,GalleryVerticalEnd:hk,GalleryVerticalEndIcon:hk,GalleryVerticalIcon:uk,Gamepad:mk,Gamepad2:pk,Gamepad2Icon:pk,GamepadDirectional:yk,GamepadDirectionalIcon:yk,GamepadIcon:mk,GanttChart:kn,GanttChartIcon:kn,GanttChartSquare:$t,GanttChartSquareIcon:$t,Gauge:fk,GaugeCircle:En,GaugeCircleIcon:En,GaugeIcon:fk,Gavel:kk,GavelIcon:kk,Gem:gk,GemIcon:gk,GeorgianLari:bk,GeorgianLariIcon:bk,Ghost:Mk,GhostIcon:Mk,Gift:xk,GiftIcon:xk,GitBranch:Ck,GitBranchIcon:Ck,GitBranchMinus:wk,GitBranchMinusIcon:wk,GitBranchPlus:vk,GitBranchPlusIcon:vk,GitCommit:To,GitCommitHorizontal:To,GitCommitHorizontalIcon:To,GitCommitIcon:To,GitCommitVertical:Lk,GitCommitVerticalIcon:Lk,GitCompare:Ik,GitCompareArrows:Sk,GitCompareArrowsIcon:Sk,GitCompareIcon:Ik,GitFork:_k,GitForkIcon:_k,GitGraph:Ak,GitGraphIcon:Ak,GitMerge:Vk,GitMergeConflict:Bk,GitMergeConflictIcon:Bk,GitMergeIcon:Vk,GitPullRequest:Tk,GitPullRequestArrow:zk,GitPullRequestArrowIcon:zk,GitPullRequestClosed:Pk,GitPullRequestClosedIcon:Pk,GitPullRequestCreate:Dk,GitPullRequestCreateArrow:qk,GitPullRequestCreateArrowIcon:qk,GitPullRequestCreateIcon:Dk,GitPullRequestDraft:Ek,GitPullRequestDraftIcon:Ek,GitPullRequestIcon:Tk,Github:Hk,GithubIcon:Hk,Gitlab:Ok,GitlabIcon:Ok,GlassWater:jk,GlassWaterIcon:jk,Glasses:Fk,GlassesIcon:Fk,Globe:sl,Globe2:oo,Globe2Icon:oo,GlobeIcon:sl,GlobeLock:Nk,GlobeLockIcon:Nk,GlobeOff:Rk,GlobeOffIcon:Rk,GlobeX:$k,GlobeXIcon:$k,Goal:Uk,GoalIcon:Uk,Gpu:Gk,GpuIcon:Gk,Grab:No,GrabIcon:No,GraduationCap:Wk,GraduationCapIcon:Wk,Grape:Kk,GrapeIcon:Kk,Grid:Ft,Grid2X2:Fo,Grid2X2Check:Ho,Grid2X2CheckIcon:Ho,Grid2X2Icon:Fo,Grid2X2Plus:jo,Grid2X2PlusIcon:jo,Grid2X2X:Oo,Grid2X2XIcon:Oo,Grid2x2:Fo,Grid2x2Check:Ho,Grid2x2CheckIcon:Ho,Grid2x2Icon:Fo,Grid2x2Plus:jo,Grid2x2PlusIcon:jo,Grid2x2X:Oo,Grid2x2XIcon:Oo,Grid3X3:Ft,Grid3X3Icon:Ft,Grid3x2:Xk,Grid3x2Icon:Xk,Grid3x3:Ft,Grid3x3Icon:Ft,GridIcon:Ft,Grip:Qk,GripHorizontal:Zk,GripHorizontalIcon:Zk,GripIcon:Qk,GripVertical:Yk,GripVerticalIcon:Yk,Group:e4,GroupIcon:e4,Guitar:Jk,GuitarIcon:Jk,Ham:t4,HamIcon:t4,Hamburger:a4,HamburgerIcon:a4,Hammer:n4,HammerIcon:n4,Hand:c4,HandCoins:o4,HandCoinsIcon:o4,HandFist:r4,HandFistIcon:r4,HandGrab:No,HandGrabIcon:No,HandHeart:i4,HandHeartIcon:i4,HandHelping:Ro,HandHelpingIcon:Ro,HandIcon:c4,HandMetal:s4,HandMetalIcon:s4,HandPlatter:l4,HandPlatterIcon:l4,Handbag:d4,HandbagIcon:d4,Handshake:h4,HandshakeIcon:h4,HardDrive:y4,HardDriveDownload:u4,HardDriveDownloadIcon:u4,HardDriveIcon:y4,HardDriveUpload:p4,HardDriveUploadIcon:p4,HardHat:f4,HardHatIcon:f4,Hash:m4,HashIcon:m4,HatGlasses:k4,HatGlassesIcon:k4,Haze:g4,HazeIcon:g4,Hd:b4,HdIcon:b4,HdmiPort:M4,HdmiPortIcon:M4,Heading:I4,Heading1:x4,Heading1Icon:x4,Heading2:w4,Heading2Icon:w4,Heading3:v4,Heading3Icon:v4,Heading4:C4,Heading4Icon:C4,Heading5:L4,Heading5Icon:L4,Heading6:S4,Heading6Icon:S4,HeadingIcon:I4,HeadphoneOff:_4,HeadphoneOffIcon:_4,Headphones:A4,HeadphonesIcon:A4,Headset:B4,HeadsetIcon:B4,Heart:T4,HeartCrack:V4,HeartCrackIcon:V4,HeartHandshake:P4,HeartHandshakeIcon:P4,HeartIcon:T4,HeartMinus:z4,HeartMinusIcon:z4,HeartOff:q4,HeartOffIcon:q4,HeartPlus:D4,HeartPlusIcon:D4,HeartPulse:E4,HeartPulseIcon:E4,Heater:H4,HeaterIcon:H4,Helicopter:O4,HelicopterIcon:O4,HelpCircle:Ht,HelpCircleIcon:Ht,HelpingHand:Ro,HelpingHandIcon:Ro,Hexagon:j4,HexagonIcon:j4,Highlighter:F4,HighlighterIcon:F4,History:N4,HistoryIcon:N4,Home:$o,HomeIcon:$o,Hop:$4,HopIcon:$4,HopOff:R4,HopOffIcon:R4,Hospital:U4,HospitalIcon:U4,Hotel:W4,HotelIcon:W4,Hourglass:G4,HourglassIcon:G4,House:$o,HouseHeart:K4,HouseHeartIcon:K4,HouseIcon:$o,HousePlug:X4,HousePlugIcon:X4,HousePlus:Z4,HousePlusIcon:Z4,HouseWifi:Y4,HouseWifiIcon:Y4,IceCream:Wo,IceCream2:Uo,IceCream2Icon:Uo,IceCreamBowl:Uo,IceCreamBowlIcon:Uo,IceCreamCone:Wo,IceCreamConeIcon:Wo,IceCreamIcon:Wo,Icon:bA,IdCard:J4,IdCardIcon:J4,IdCardLanyard:Q4,IdCardLanyardIcon:Q4,Image:sg,ImageDown:eg,ImageDownIcon:eg,ImageIcon:sg,ImageMinus:tg,ImageMinusIcon:tg,ImageOff:ag,ImageOffIcon:ag,ImagePlay:ng,ImagePlayIcon:ng,ImagePlus:og,ImagePlusIcon:og,ImageUp:rg,ImageUpIcon:rg,ImageUpscale:ig,ImageUpscaleIcon:ig,Images:lg,ImagesIcon:lg,Import:dg,ImportIcon:dg,Inbox:cg,InboxIcon:cg,Indent:Rt,IndentDecrease:Nt,IndentDecreaseIcon:Nt,IndentIcon:Rt,IndentIncrease:Rt,IndentIncreaseIcon:Rt,IndianRupee:hg,IndianRupeeIcon:hg,Infinity:ug,InfinityIcon:ug,Info:pg,InfoIcon:pg,Inspect:hi,InspectIcon:hi,InspectionPanel:yg,InspectionPanelIcon:yg,Instagram:fg,InstagramIcon:fg,Italic:mg,ItalicIcon:mg,IterationCcw:kg,IterationCcwIcon:kg,IterationCw:gg,IterationCwIcon:gg,JapaneseYen:bg,JapaneseYenIcon:bg,Joystick:Mg,JoystickIcon:Mg,Kanban:xg,KanbanIcon:xg,KanbanSquare:ii,KanbanSquareDashed:Jr,KanbanSquareDashedIcon:Jr,KanbanSquareIcon:ii,Kayak:wg,KayakIcon:wg,Key:Sg,KeyIcon:Sg,KeyRound:vg,KeyRoundIcon:vg,KeySquare:Cg,KeySquareIcon:Cg,Keyboard:_g,KeyboardIcon:_g,KeyboardMusic:Lg,KeyboardMusicIcon:Lg,KeyboardOff:Ig,KeyboardOffIcon:Ig,Lamp:qg,LampCeiling:Ag,LampCeilingIcon:Ag,LampDesk:Bg,LampDeskIcon:Bg,LampFloor:zg,LampFloorIcon:zg,LampIcon:qg,LampWallDown:Vg,LampWallDownIcon:Vg,LampWallUp:Pg,LampWallUpIcon:Pg,LandPlot:Dg,LandPlotIcon:Dg,Landmark:Tg,LandmarkIcon:Tg,Languages:Eg,LanguagesIcon:Eg,Laptop:Og,Laptop2:Go,Laptop2Icon:Go,LaptopIcon:Og,LaptopMinimal:Go,LaptopMinimalCheck:Hg,LaptopMinimalCheckIcon:Hg,LaptopMinimalIcon:Go,Lasso:Fg,LassoIcon:Fg,LassoSelect:jg,LassoSelectIcon:jg,Laugh:Ng,LaughIcon:Ng,Layers:Ko,Layers2:Rg,Layers2Icon:Rg,Layers3:Ko,Layers3Icon:Ko,LayersIcon:Ko,LayersPlus:$g,LayersPlusIcon:$g,Layout:pr,LayoutDashboard:Ug,LayoutDashboardIcon:Ug,LayoutGrid:Wg,LayoutGridIcon:Wg,LayoutIcon:pr,LayoutList:Gg,LayoutListIcon:Gg,LayoutPanelLeft:Kg,LayoutPanelLeftIcon:Kg,LayoutPanelTop:Xg,LayoutPanelTopIcon:Xg,LayoutTemplate:Zg,LayoutTemplateIcon:Zg,Leaf:Yg,LeafIcon:Yg,LeafyGreen:Qg,LeafyGreenIcon:Qg,Lectern:Jg,LecternIcon:Jg,LensConcave:e5,LensConcaveIcon:e5,LensConvex:t5,LensConvexIcon:t5,LetterText:Pi,LetterTextIcon:Pi,Library:r5,LibraryBig:a5,LibraryBigIcon:a5,LibraryIcon:r5,LibrarySquare:si,LibrarySquareIcon:si,LifeBuoy:o5,LifeBuoyIcon:o5,Ligature:n5,LigatureIcon:n5,Lightbulb:s5,LightbulbIcon:s5,LightbulbOff:i5,LightbulbOffIcon:i5,LineChart:pn,LineChartIcon:pn,LineDotRightHorizontal:l5,LineDotRightHorizontalIcon:l5,LineSquiggle:c5,LineSquiggleIcon:c5,Link:ll,Link2:h5,Link2Icon:h5,Link2Off:d5,Link2OffIcon:d5,LinkIcon:ll,Linkedin:u5,LinkedinIcon:u5,List:V5,ListCheck:p5,ListCheckIcon:p5,ListChecks:y5,ListChecksIcon:y5,ListChevronsDownUp:m5,ListChevronsDownUpIcon:m5,ListChevronsUpDown:f5,ListChevronsUpDownIcon:f5,ListCollapse:k5,ListCollapseIcon:k5,ListEnd:g5,ListEndIcon:g5,ListFilter:b5,ListFilterIcon:b5,ListFilterPlus:M5,ListFilterPlusIcon:M5,ListIcon:V5,ListIndentDecrease:Nt,ListIndentDecreaseIcon:Nt,ListIndentIncrease:Rt,ListIndentIncreaseIcon:Rt,ListMinus:C5,ListMinusIcon:C5,ListMusic:x5,ListMusicIcon:x5,ListOrdered:w5,ListOrderedIcon:w5,ListPlus:v5,ListPlusIcon:v5,ListRestart:L5,ListRestartIcon:L5,ListStart:S5,ListStartIcon:S5,ListTodo:_5,ListTodoIcon:_5,ListTree:I5,ListTreeIcon:I5,ListVideo:A5,ListVideoIcon:A5,ListX:B5,ListXIcon:B5,Loader:P5,Loader2:Lt,Loader2Icon:Lt,LoaderCircle:Lt,LoaderCircleIcon:Lt,LoaderIcon:P5,LoaderPinwheel:z5,LoaderPinwheelIcon:z5,Locate:E5,LocateFixed:q5,LocateFixedIcon:q5,LocateIcon:E5,LocateOff:D5,LocateOffIcon:D5,LocationEdit:Qo,LocationEditIcon:Qo,Lock:H5,LockIcon:H5,LockKeyhole:T5,LockKeyholeIcon:T5,LockKeyholeOpen:Xo,LockKeyholeOpenIcon:Xo,LockOpen:Zo,LockOpenIcon:Zo,LogIn:O5,LogInIcon:O5,LogOut:j5,LogOutIcon:j5,Logs:F5,LogsIcon:F5,Lollipop:N5,LollipopIcon:N5,LucideAArrowDown:f1,LucideAArrowUp:m1,LucideALargeSmall:k1,LucideAccessibility:g1,LucideActivity:b1,LucideActivitySquare:Ar,LucideAirVent:M1,LucideAirplay:x1,LucideAlarmCheck:Na,LucideAlarmClock:v1,LucideAlarmClockCheck:Na,LucideAlarmClockMinus:Ra,LucideAlarmClockOff:w1,LucideAlarmClockPlus:$a,LucideAlarmMinus:Ra,LucideAlarmPlus:$a,LucideAlarmSmoke:C1,LucideAlbum:S1,LucideAlertCircle:Tt,LucideAlertOctagon:ar,LucideAlertTriangle:Oi,LucideAlignCenter:zi,LucideAlignCenterHorizontal:L1,LucideAlignCenterVertical:I1,LucideAlignEndHorizontal:_1,LucideAlignEndVertical:A1,LucideAlignHorizontalDistributeCenter:B1,LucideAlignHorizontalDistributeEnd:V1,LucideAlignHorizontalDistributeStart:z1,LucideAlignHorizontalJustifyCenter:P1,LucideAlignHorizontalJustifyEnd:q1,LucideAlignHorizontalJustifyStart:D1,LucideAlignHorizontalSpaceAround:E1,LucideAlignHorizontalSpaceBetween:T1,LucideAlignJustify:Vi,LucideAlignLeft:Ut,LucideAlignRight:Bi,LucideAlignStartHorizontal:H1,LucideAlignStartVertical:O1,LucideAlignVerticalDistributeCenter:j1,LucideAlignVerticalDistributeEnd:F1,LucideAlignVerticalDistributeStart:N1,LucideAlignVerticalJustifyCenter:R1,LucideAlignVerticalJustifyEnd:$1,LucideAlignVerticalJustifyStart:U1,LucideAlignVerticalSpaceAround:W1,LucideAlignVerticalSpaceBetween:G1,LucideAmbulance:K1,LucideAmpersand:X1,LucideAmpersands:Z1,LucideAmphora:Q1,LucideAnchor:Y1,LucideAngry:J1,LucideAnnoyed:ec,LucideAntenna:tc,LucideAnvil:ac,LucideAperture:nc,LucideAppWindow:rc,LucideAppWindowMac:oc,LucideApple:ic,LucideArchive:cc,LucideArchiveRestore:sc,LucideArchiveX:lc,LucideAreaChart:rn,LucideArmchair:dc,LucideArrowBigDown:uc,LucideArrowBigDownDash:hc,LucideArrowBigLeft:yc,LucideArrowBigLeftDash:pc,LucideArrowBigRight:mc,LucideArrowBigRightDash:fc,LucideArrowBigUp:kc,LucideArrowBigUpDash:gc,LucideArrowDown:_c,LucideArrowDown01:Mc,LucideArrowDown10:bc,LucideArrowDownAZ:Ua,LucideArrowDownAz:Ua,LucideArrowDownCircle:wn,LucideArrowDownFromLine:xc,LucideArrowDownLeft:wc,LucideArrowDownLeftFromCircle:Cn,LucideArrowDownLeftFromSquare:qr,LucideArrowDownLeftSquare:Br,LucideArrowDownNarrowWide:Cc,LucideArrowDownRight:vc,LucideArrowDownRightFromCircle:Ln,LucideArrowDownRightFromSquare:Dr,LucideArrowDownRightSquare:Vr,LucideArrowDownSquare:zr,LucideArrowDownToDot:Lc,LucideArrowDownToLine:Sc,LucideArrowDownUp:Ic,LucideArrowDownWideNarrow:Wa,LucideArrowDownZA:Ga,LucideArrowDownZa:Ga,LucideArrowLeft:zc,LucideArrowLeftCircle:vn,LucideArrowLeftFromLine:Ac,LucideArrowLeftRight:Vc,LucideArrowLeftSquare:Pr,LucideArrowLeftToLine:Bc,LucideArrowRight:Qs,LucideArrowRightCircle:_n,LucideArrowRightFromLine:Pc,LucideArrowRightLeft:qc,LucideArrowRightSquare:Hr,LucideArrowRightToLine:Dc,LucideArrowUp:Wc,LucideArrowUp01:Ec,LucideArrowUp10:Tc,LucideArrowUpAZ:Ka,LucideArrowUpAz:Ka,LucideArrowUpCircle:An,LucideArrowUpDown:Hc,LucideArrowUpFromDot:Oc,LucideArrowUpFromLine:jc,LucideArrowUpLeft:Fc,LucideArrowUpLeftFromCircle:Sn,LucideArrowUpLeftFromSquare:Er,LucideArrowUpLeftSquare:jr,LucideArrowUpNarrowWide:Xa,LucideArrowUpRight:Nc,LucideArrowUpRightFromCircle:In,LucideArrowUpRightFromSquare:Tr,LucideArrowUpRightSquare:Or,LucideArrowUpSquare:Fr,LucideArrowUpToLine:Rc,LucideArrowUpWideNarrow:$c,LucideArrowUpZA:Za,LucideArrowUpZa:Za,LucideArrowsUpFromLine:Uc,LucideAsterisk:Gc,LucideAsteriskSquare:Nr,LucideAtSign:Kc,LucideAtom:Xc,LucideAudioLines:Zc,LucideAudioWaveform:Yc,LucideAward:Qc,LucideAxe:Jc,LucideAxis3D:Ya,LucideAxis3d:Ya,LucideBaby:td,LucideBackpack:ed,LucideBadge:kd,LucideBadgeAlert:ad,LucideBadgeCent:nd,LucideBadgeCheck:Qa,LucideBadgeDollarSign:od,LucideBadgeEuro:rd,LucideBadgeHelp:Ja,LucideBadgeIndianRupee:id,LucideBadgeInfo:sd,LucideBadgeJapaneseYen:ld,LucideBadgeMinus:cd,LucideBadgePercent:dd,LucideBadgePlus:hd,LucideBadgePoundSterling:ud,LucideBadgeQuestionMark:Ja,LucideBadgeRussianRuble:pd,LucideBadgeSwissFranc:yd,LucideBadgeTurkishLira:fd,LucideBadgeX:md,LucideBaggageClaim:gd,LucideBalloon:bd,LucideBan:xd,LucideBanana:Md,LucideBandage:wd,LucideBanknote:_d,LucideBanknoteArrowDown:vd,LucideBanknoteArrowUp:Cd,LucideBanknoteX:Ld,LucideBarChart:yn,LucideBarChart2:fn,LucideBarChart3:un,LucideBarChart4:hn,LucideBarChartBig:dn,LucideBarChartHorizontal:cn,LucideBarChartHorizontalBig:sn,LucideBarcode:Sd,LucideBarrel:Id,LucideBaseline:Ad,LucideBath:Bd,LucideBattery:Td,LucideBatteryCharging:Vd,LucideBatteryFull:zd,LucideBatteryLow:Pd,LucideBatteryMedium:Dd,LucideBatteryPlus:qd,LucideBatteryWarning:Ed,LucideBeaker:Hd,LucideBean:jd,LucideBeanOff:Od,LucideBed:Rd,LucideBedDouble:Fd,LucideBedSingle:Nd,LucideBeef:$d,LucideBeer:Wd,LucideBeerOff:Ud,LucideBell:Qd,LucideBellDot:Gd,LucideBellElectric:Kd,LucideBellMinus:Xd,LucideBellOff:Zd,LucideBellPlus:Yd,LucideBellRing:Jd,LucideBetweenHorizonalEnd:en,LucideBetweenHorizonalStart:tn,LucideBetweenHorizontalEnd:en,LucideBetweenHorizontalStart:tn,LucideBetweenVerticalEnd:e0,LucideBetweenVerticalStart:t0,LucideBicepsFlexed:a0,LucideBike:n0,LucideBinary:o0,LucideBinoculars:i0,LucideBiohazard:r0,LucideBird:s0,LucideBirdhouse:l0,LucideBitcoin:c0,LucideBlend:d0,LucideBlinds:h0,LucideBlocks:p0,LucideBluetooth:m0,LucideBluetoothConnected:u0,LucideBluetoothOff:y0,LucideBluetoothSearching:f0,LucideBold:k0,LucideBolt:g0,LucideBomb:b0,LucideBone:M0,LucideBook:U0,LucideBookA:x0,LucideBookAlert:w0,LucideBookAudio:v0,LucideBookCheck:L0,LucideBookCopy:C0,LucideBookDashed:an,LucideBookDown:S0,LucideBookHeadphones:I0,LucideBookHeart:_0,LucideBookImage:A0,LucideBookKey:B0,LucideBookLock:V0,LucideBookMarked:z0,LucideBookMinus:P0,LucideBookOpen:E0,LucideBookOpenCheck:q0,LucideBookOpenText:D0,LucideBookPlus:T0,LucideBookSearch:H0,LucideBookTemplate:an,LucideBookText:O0,LucideBookType:j0,LucideBookUp:F0,LucideBookUp2:N0,LucideBookUser:R0,LucideBookX:$0,LucideBookmark:Z0,LucideBookmarkCheck:W0,LucideBookmarkMinus:G0,LucideBookmarkPlus:K0,LucideBookmarkX:X0,LucideBoomBox:Q0,LucideBot:e2,LucideBotMessageSquare:Y0,LucideBotOff:J0,LucideBottleWine:a2,LucideBowArrow:t2,LucideBox:n2,LucideBoxSelect:ti,LucideBoxes:o2,LucideBraces:nn,LucideBrackets:r2,LucideBrain:l2,LucideBrainCircuit:s2,LucideBrainCog:i2,LucideBrickWall:d2,LucideBrickWallFire:c2,LucideBrickWallShield:h2,LucideBriefcase:y2,LucideBriefcaseBusiness:u2,LucideBriefcaseConveyorBelt:p2,LucideBriefcaseMedical:f2,LucideBringToFront:m2,LucideBrush:g2,LucideBrushCleaning:k2,LucideBubbles:b2,LucideBug:w2,LucideBugOff:M2,LucideBugPlay:x2,LucideBuilding:C2,LucideBuilding2:v2,LucideBus:S2,LucideBusFront:L2,LucideCable:_2,LucideCableCar:I2,LucideCake:B2,LucideCakeSlice:A2,LucideCalculator:V2,LucideCalendar:Js,LucideCalendar1:z2,LucideCalendarArrowDown:D2,LucideCalendarArrowUp:P2,LucideCalendarCheck:E2,LucideCalendarCheck2:q2,LucideCalendarClock:T2,LucideCalendarCog:O2,LucideCalendarDays:H2,LucideCalendarFold:j2,LucideCalendarHeart:F2,LucideCalendarMinus:R2,LucideCalendarMinus2:N2,LucideCalendarOff:$2,LucideCalendarPlus:W2,LucideCalendarPlus2:U2,LucideCalendarRange:G2,LucideCalendarSearch:K2,LucideCalendarSync:X2,LucideCalendarX:Y2,LucideCalendarX2:Z2,LucideCalendars:Q2,LucideCamera:eh,LucideCameraOff:J2,LucideCandlestickChart:ln,LucideCandy:nh,LucideCandyCane:th,LucideCandyOff:ah,LucideCannabis:rh,LucideCannabisOff:oh,LucideCaptions:on,LucideCaptionsOff:ih,LucideCar:ch,LucideCarFront:sh,LucideCarTaxiFront:lh,LucideCaravan:dh,LucideCardSim:hh,LucideCarrot:uh,LucideCaseLower:ph,LucideCaseSensitive:yh,LucideCaseUpper:fh,LucideCassetteTape:mh,LucideCast:kh,LucideCastle:gh,LucideCat:bh,LucideCctv:Mh,LucideChartArea:rn,LucideChartBar:cn,LucideChartBarBig:sn,LucideChartBarDecreasing:wh,LucideChartBarIncreasing:xh,LucideChartBarStacked:vh,LucideChartCandlestick:ln,LucideChartColumn:un,LucideChartColumnBig:dn,LucideChartColumnDecreasing:Ch,LucideChartColumnIncreasing:hn,LucideChartColumnStacked:Lh,LucideChartGantt:Sh,LucideChartLine:pn,LucideChartNetwork:Ih,LucideChartNoAxesColumn:fn,LucideChartNoAxesColumnDecreasing:_h,LucideChartNoAxesColumnIncreasing:yn,LucideChartNoAxesCombined:Ah,LucideChartNoAxesGantt:kn,LucideChartPie:mn,LucideChartScatter:gn,LucideChartSpline:Vh,LucideCheck:ka,LucideCheckCheck:Bh,LucideCheckCircle:ga,LucideCheckCircle2:Bn,LucideCheckLine:zh,LucideCheckSquare:Wr,LucideCheckSquare2:Gr,LucideChefHat:Ph,LucideCherry:qh,LucideChessBishop:Dh,LucideChessKing:Eh,LucideChessKnight:Th,LucideChessPawn:Hh,LucideChessQueen:Oh,LucideChessRook:jh,LucideChevronDown:Et,LucideChevronDownCircle:zn,LucideChevronDownSquare:Kr,LucideChevronFirst:Fh,LucideChevronLast:Nh,LucideChevronLeft:bn,LucideChevronLeftCircle:Pn,LucideChevronLeftSquare:Xr,LucideChevronRight:Mn,LucideChevronRightCircle:Vn,LucideChevronRightSquare:Zr,LucideChevronUp:el,LucideChevronUpCircle:qn,LucideChevronUpSquare:Yr,LucideChevronsDown:$h,LucideChevronsDownUp:Rh,LucideChevronsLeft:tl,LucideChevronsLeftRight:Wh,LucideChevronsLeftRightEllipsis:Uh,LucideChevronsRight:al,LucideChevronsRightLeft:Gh,LucideChevronsUp:Xh,LucideChevronsUpDown:Kh,LucideChrome:xn,LucideChromium:xn,LucideChurch:Yh,LucideCigarette:Qh,LucideCigaretteOff:Zh,LucideCircle:nl,LucideCircleAlert:Tt,LucideCircleArrowDown:wn,LucideCircleArrowLeft:vn,LucideCircleArrowOutDownLeft:Cn,LucideCircleArrowOutDownRight:Ln,LucideCircleArrowOutUpLeft:Sn,LucideCircleArrowOutUpRight:In,LucideCircleArrowRight:_n,LucideCircleArrowUp:An,LucideCircleCheck:Bn,LucideCircleCheckBig:ga,LucideCircleChevronDown:zn,LucideCircleChevronLeft:Pn,LucideCircleChevronRight:Vn,LucideCircleChevronUp:qn,LucideCircleDashed:Jh,LucideCircleDivide:Dn,LucideCircleDollarSign:eu,LucideCircleDot:au,LucideCircleDotDashed:tu,LucideCircleEllipsis:ou,LucideCircleEqual:nu,LucideCircleFadingArrowUp:ru,LucideCircleFadingPlus:iu,LucideCircleGauge:En,LucideCircleHelp:Ht,LucideCircleMinus:Tn,LucideCircleOff:su,LucideCircleParking:On,LucideCircleParkingOff:Hn,LucideCirclePause:jn,LucideCirclePercent:Fn,LucideCirclePile:lu,LucideCirclePlay:Nn,LucideCirclePlus:Rn,LucideCirclePoundSterling:cu,LucideCirclePower:$n,LucideCircleQuestionMark:Ht,LucideCircleSlash:du,LucideCircleSlash2:Un,LucideCircleSlashed:Un,LucideCircleSmall:hu,LucideCircleStar:uu,LucideCircleStop:Wn,LucideCircleUser:Kn,LucideCircleUserRound:Gn,LucideCircleX:Xn,LucideCircuitBoard:pu,LucideCitrus:yu,LucideClapperboard:fu,LucideClipboard:Lu,LucideClipboardCheck:ku,LucideClipboardClock:mu,LucideClipboardCopy:gu,LucideClipboardEdit:Yn,LucideClipboardList:bu,LucideClipboardMinus:Mu,LucideClipboardPaste:xu,LucideClipboardPen:Yn,LucideClipboardPenLine:Zn,LucideClipboardPlus:wu,LucideClipboardSignature:Zn,LucideClipboardType:vu,LucideClipboardX:Cu,LucideClock:ol,LucideClock1:Su,LucideClock10:Iu,LucideClock11:_u,LucideClock12:Au,LucideClock2:Bu,LucideClock3:Vu,LucideClock4:zu,LucideClock5:Pu,LucideClock6:qu,LucideClock7:Du,LucideClock8:Eu,LucideClock9:Tu,LucideClockAlert:Hu,LucideClockArrowDown:Ou,LucideClockArrowUp:ju,LucideClockCheck:Fu,LucideClockFading:Nu,LucideClockPlus:Ru,LucideClosedCaption:$u,LucideCloud:lp,LucideCloudAlert:Uu,LucideCloudBackup:Wu,LucideCloudCheck:Gu,LucideCloudCog:Ku,LucideCloudDownload:Qn,LucideCloudDrizzle:Xu,LucideCloudFog:Zu,LucideCloudHail:Yu,LucideCloudLightning:Qu,LucideCloudMoon:ep,LucideCloudMoonRain:Ju,LucideCloudOff:tp,LucideCloudRain:np,LucideCloudRainWind:ap,LucideCloudSnow:op,LucideCloudSun:ip,LucideCloudSunRain:rp,LucideCloudSync:sp,LucideCloudUpload:ba,LucideCloudy:cp,LucideClover:dp,LucideClub:hp,LucideCode:up,LucideCode2:Jn,LucideCodeSquare:Qr,LucideCodeXml:Jn,LucideCodepen:pp,LucideCodesandbox:yp,LucideCoffee:fp,LucideCog:mp,LucideCoins:kp,LucideColumns:eo,LucideColumns2:eo,LucideColumns3:to,LucideColumns3Cog:Ot,LucideColumns4:gp,LucideColumnsSettings:Ot,LucideCombine:bp,LucideCommand:Mp,LucideCompass:xp,LucideComponent:wp,LucideComputer:vp,LucideConciergeBell:Cp,LucideCone:Lp,LucideConstruction:Sp,LucideContact:Ip,LucideContact2:ao,LucideContactRound:ao,LucideContainer:_p,LucideContrast:Ap,LucideCookie:Vp,LucideCookingPot:Bp,LucideCopy:Tp,LucideCopyCheck:zp,LucideCopyMinus:Pp,LucideCopyPlus:qp,LucideCopySlash:Ep,LucideCopyX:Dp,LucideCopyleft:Hp,LucideCopyright:Op,LucideCornerDownLeft:jp,LucideCornerDownRight:Np,LucideCornerLeftDown:Fp,LucideCornerLeftUp:Rp,LucideCornerRightDown:$p,LucideCornerRightUp:Up,LucideCornerUpLeft:Wp,LucideCornerUpRight:Gp,LucideCpu:xs,LucideCreativeCommons:Kp,LucideCreditCard:Xp,LucideCroissant:Zp,LucideCrop:Yp,LucideCross:Qp,LucideCrosshair:ey,LucideCrown:Jp,LucideCuboid:ty,LucideCupSoda:ay,LucideCurlyBraces:nn,LucideCurrency:ny,LucideCylinder:oy,LucideDam:ry,LucideDatabase:cy,LucideDatabaseBackup:iy,LucideDatabaseSearch:sy,LucideDatabaseZap:ly,LucideDecimalsArrowLeft:dy,LucideDecimalsArrowRight:hy,LucideDelete:uy,LucideDessert:py,LucideDiameter:yy,LucideDiamond:ky,LucideDiamondMinus:fy,LucideDiamondPercent:no,LucideDiamondPlus:my,LucideDice1:gy,LucideDice2:by,LucideDice3:My,LucideDice4:xy,LucideDice5:wy,LucideDice6:vy,LucideDices:Cy,LucideDiff:Ly,LucideDisc:Ay,LucideDisc2:Sy,LucideDisc3:Iy,LucideDiscAlbum:_y,LucideDivide:By,LucideDivideCircle:Dn,LucideDivideSquare:ni,LucideDna:zy,LucideDnaOff:Vy,LucideDock:Py,LucideDog:Dy,LucideDollarSign:qy,LucideDonut:Ty,LucideDoorClosed:Hy,LucideDoorClosedLocked:Ey,LucideDoorOpen:Oy,LucideDot:jy,LucideDotSquare:ai,LucideDownload:rl,LucideDownloadCloud:Qn,LucideDraftingCompass:Fy,LucideDrama:Ry,LucideDribbble:Ny,LucideDrill:$y,LucideDrone:Uy,LucideDroplet:Gy,LucideDropletOff:Wy,LucideDroplets:Ky,LucideDrum:Xy,LucideDrumstick:Zy,LucideDumbbell:Yy,LucideEar:Jy,LucideEarOff:Qy,LucideEarth:oo,LucideEarthLock:ef,LucideEclipse:tf,LucideEdit:at,LucideEdit2:fr,LucideEdit3:yr,LucideEgg:nf,LucideEggFried:af,LucideEggOff:of,LucideEllipsis:Ma,LucideEllipsisVertical:ro,LucideEqual:lf,LucideEqualApproximately:sf,LucideEqualNot:rf,LucideEqualSquare:oi,LucideEraser:cf,LucideEthernetPort:df,LucideEuro:hf,LucideEvCharger:uf,LucideExpand:pf,LucideExternalLink:yf,LucideEye:ws,LucideEyeClosed:ff,LucideEyeOff:il,LucideFacebook:mf,LucideFactory:kf,LucideFan:gf,LucideFastForward:bf,LucideFeather:Mf,LucideFence:xf,LucideFerrisWheel:wf,LucideFigma:vf,LucideFile:Yf,LucideFileArchive:Cf,LucideFileAudio:jt,LucideFileAudio2:jt,LucideFileAxis3D:io,LucideFileAxis3d:io,LucideFileBadge:so,LucideFileBadge2:so,LucideFileBarChart:ho,LucideFileBarChart2:uo,LucideFileBox:Lf,LucideFileBraces:co,LucideFileBracesCorner:lo,LucideFileChartColumn:uo,LucideFileChartColumnIncreasing:ho,LucideFileChartLine:po,LucideFileChartPie:yo,LucideFileCheck:Sf,LucideFileCheck2:fo,LucideFileCheckCorner:fo,LucideFileClock:If,LucideFileCode:_f,LucideFileCode2:mo,LucideFileCodeCorner:mo,LucideFileCog:ko,LucideFileCog2:ko,LucideFileDiff:Af,LucideFileDigit:Vf,LucideFileDown:Bf,LucideFileEdit:Co,LucideFileExclamationPoint:go,LucideFileHeadphone:jt,LucideFileHeart:zf,LucideFileImage:Pf,LucideFileInput:qf,LucideFileJson:co,LucideFileJson2:lo,LucideFileKey:bo,LucideFileKey2:bo,LucideFileLineChart:po,LucideFileLock:Mo,LucideFileLock2:Mo,LucideFileMinus:Ef,LucideFileMinus2:xo,LucideFileMinusCorner:xo,LucideFileMusic:Df,LucideFileOutput:Tf,LucideFilePen:Co,LucideFilePenLine:wo,LucideFilePieChart:yo,LucideFilePlay:vo,LucideFilePlus:Hf,LucideFilePlus2:Lo,LucideFilePlusCorner:Lo,LucideFileQuestion:So,LucideFileQuestionMark:So,LucideFileScan:Of,LucideFileSearch:jf,LucideFileSearch2:Io,LucideFileSearchCorner:Io,LucideFileSignal:_o,LucideFileSignature:wo,LucideFileSliders:Ff,LucideFileSpreadsheet:Nf,LucideFileStack:Rf,LucideFileSymlink:$f,LucideFileTerminal:Uf,LucideFileText:vs,LucideFileType:Wf,LucideFileType2:Ao,LucideFileTypeCorner:Ao,LucideFileUp:Gf,LucideFileUser:Kf,LucideFileVideo:vo,LucideFileVideo2:Bo,LucideFileVideoCamera:Bo,LucideFileVolume:Xf,LucideFileVolume2:_o,LucideFileWarning:go,LucideFileX:Zf,LucideFileX2:Vo,LucideFileXCorner:Vo,LucideFiles:Jf,LucideFilm:Qf,LucideFilter:Eo,LucideFilterX:Do,LucideFingerprint:zo,LucideFingerprintPattern:zo,LucideFireExtinguisher:em,LucideFish:nm,LucideFishOff:tm,LucideFishSymbol:am,LucideFishingHook:om,LucideFlag:lm,LucideFlagOff:rm,LucideFlagTriangleLeft:im,LucideFlagTriangleRight:sm,LucideFlame:dm,LucideFlameKindling:cm,LucideFlashlight:um,LucideFlashlightOff:hm,LucideFlaskConical:ym,LucideFlaskConicalOff:pm,LucideFlaskRound:fm,LucideFlipHorizontal:$r,LucideFlipHorizontal2:mm,LucideFlipVertical:Ur,LucideFlipVertical2:km,LucideFlower:bm,LucideFlower2:gm,LucideFocus:Mm,LucideFoldHorizontal:xm,LucideFoldVertical:wm,LucideFolder:Zm,LucideFolderArchive:vm,LucideFolderCheck:Cm,LucideFolderClock:Lm,LucideFolderClosed:Sm,LucideFolderCode:Im,LucideFolderCog:Po,LucideFolderCog2:Po,LucideFolderDot:_m,LucideFolderDown:Am,LucideFolderEdit:qo,LucideFolderGit:Vm,LucideFolderGit2:Bm,LucideFolderHeart:zm,LucideFolderInput:Pm,LucideFolderKanban:Dm,LucideFolderKey:qm,LucideFolderLock:Em,LucideFolderMinus:Om,LucideFolderOpen:Hm,LucideFolderOpenDot:Tm,LucideFolderOutput:jm,LucideFolderPen:qo,LucideFolderPlus:Rm,LucideFolderRoot:Fm,LucideFolderSearch:$m,LucideFolderSearch2:Nm,LucideFolderSymlink:Wm,LucideFolderSync:Um,LucideFolderTree:Gm,LucideFolderUp:Km,LucideFolderX:Xm,LucideFolders:Ym,LucideFootprints:Qm,LucideForkKnife:Zi,LucideForkKnifeCrossed:Xi,LucideForklift:Jm,LucideForm:ek,LucideFormInput:gr,LucideForward:ak,LucideFrame:tk,LucideFramer:nk,LucideFrown:ok,LucideFuel:rk,LucideFullscreen:ik,LucideFunctionSquare:ri,LucideFunnel:Eo,LucideFunnelPlus:sk,LucideFunnelX:Do,LucideGalleryHorizontal:ck,LucideGalleryHorizontalEnd:lk,LucideGalleryThumbnails:dk,LucideGalleryVertical:uk,LucideGalleryVerticalEnd:hk,LucideGamepad:mk,LucideGamepad2:pk,LucideGamepadDirectional:yk,LucideGanttChart:kn,LucideGanttChartSquare:$t,LucideGauge:fk,LucideGaugeCircle:En,LucideGavel:kk,LucideGem:gk,LucideGeorgianLari:bk,LucideGhost:Mk,LucideGift:xk,LucideGitBranch:Ck,LucideGitBranchMinus:wk,LucideGitBranchPlus:vk,LucideGitCommit:To,LucideGitCommitHorizontal:To,LucideGitCommitVertical:Lk,LucideGitCompare:Ik,LucideGitCompareArrows:Sk,LucideGitFork:_k,LucideGitGraph:Ak,LucideGitMerge:Vk,LucideGitMergeConflict:Bk,LucideGitPullRequest:Tk,LucideGitPullRequestArrow:zk,LucideGitPullRequestClosed:Pk,LucideGitPullRequestCreate:Dk,LucideGitPullRequestCreateArrow:qk,LucideGitPullRequestDraft:Ek,LucideGithub:Hk,LucideGitlab:Ok,LucideGlassWater:jk,LucideGlasses:Fk,LucideGlobe:sl,LucideGlobe2:oo,LucideGlobeLock:Nk,LucideGlobeOff:Rk,LucideGlobeX:$k,LucideGoal:Uk,LucideGpu:Gk,LucideGrab:No,LucideGraduationCap:Wk,LucideGrape:Kk,LucideGrid:Ft,LucideGrid2X2:Fo,LucideGrid2X2Check:Ho,LucideGrid2X2Plus:jo,LucideGrid2X2X:Oo,LucideGrid2x2:Fo,LucideGrid2x2Check:Ho,LucideGrid2x2Plus:jo,LucideGrid2x2X:Oo,LucideGrid3X3:Ft,LucideGrid3x2:Xk,LucideGrid3x3:Ft,LucideGrip:Qk,LucideGripHorizontal:Zk,LucideGripVertical:Yk,LucideGroup:e4,LucideGuitar:Jk,LucideHam:t4,LucideHamburger:a4,LucideHammer:n4,LucideHand:c4,LucideHandCoins:o4,LucideHandFist:r4,LucideHandGrab:No,LucideHandHeart:i4,LucideHandHelping:Ro,LucideHandMetal:s4,LucideHandPlatter:l4,LucideHandbag:d4,LucideHandshake:h4,LucideHardDrive:y4,LucideHardDriveDownload:u4,LucideHardDriveUpload:p4,LucideHardHat:f4,LucideHash:m4,LucideHatGlasses:k4,LucideHaze:g4,LucideHd:b4,LucideHdmiPort:M4,LucideHeading:I4,LucideHeading1:x4,LucideHeading2:w4,LucideHeading3:v4,LucideHeading4:C4,LucideHeading5:L4,LucideHeading6:S4,LucideHeadphoneOff:_4,LucideHeadphones:A4,LucideHeadset:B4,LucideHeart:T4,LucideHeartCrack:V4,LucideHeartHandshake:P4,LucideHeartMinus:z4,LucideHeartOff:q4,LucideHeartPlus:D4,LucideHeartPulse:E4,LucideHeater:H4,LucideHelicopter:O4,LucideHelpCircle:Ht,LucideHelpingHand:Ro,LucideHexagon:j4,LucideHighlighter:F4,LucideHistory:N4,LucideHome:$o,LucideHop:$4,LucideHopOff:R4,LucideHospital:U4,LucideHotel:W4,LucideHourglass:G4,LucideHouse:$o,LucideHouseHeart:K4,LucideHousePlug:X4,LucideHousePlus:Z4,LucideHouseWifi:Y4,LucideIceCream:Wo,LucideIceCream2:Uo,LucideIceCreamBowl:Uo,LucideIceCreamCone:Wo,LucideIdCard:J4,LucideIdCardLanyard:Q4,LucideImage:sg,LucideImageDown:eg,LucideImageMinus:tg,LucideImageOff:ag,LucideImagePlay:ng,LucideImagePlus:og,LucideImageUp:rg,LucideImageUpscale:ig,LucideImages:lg,LucideImport:dg,LucideInbox:cg,LucideIndent:Rt,LucideIndentDecrease:Nt,LucideIndentIncrease:Rt,LucideIndianRupee:hg,LucideInfinity:ug,LucideInfo:pg,LucideInspect:hi,LucideInspectionPanel:yg,LucideInstagram:fg,LucideItalic:mg,LucideIterationCcw:kg,LucideIterationCw:gg,LucideJapaneseYen:bg,LucideJoystick:Mg,LucideKanban:xg,LucideKanbanSquare:ii,LucideKanbanSquareDashed:Jr,LucideKayak:wg,LucideKey:Sg,LucideKeyRound:vg,LucideKeySquare:Cg,LucideKeyboard:_g,LucideKeyboardMusic:Lg,LucideKeyboardOff:Ig,LucideLamp:qg,LucideLampCeiling:Ag,LucideLampDesk:Bg,LucideLampFloor:zg,LucideLampWallDown:Vg,LucideLampWallUp:Pg,LucideLandPlot:Dg,LucideLandmark:Tg,LucideLanguages:Eg,LucideLaptop:Og,LucideLaptop2:Go,LucideLaptopMinimal:Go,LucideLaptopMinimalCheck:Hg,LucideLasso:Fg,LucideLassoSelect:jg,LucideLaugh:Ng,LucideLayers:Ko,LucideLayers2:Rg,LucideLayers3:Ko,LucideLayersPlus:$g,LucideLayout:pr,LucideLayoutDashboard:Ug,LucideLayoutGrid:Wg,LucideLayoutList:Gg,LucideLayoutPanelLeft:Kg,LucideLayoutPanelTop:Xg,LucideLayoutTemplate:Zg,LucideLeaf:Yg,LucideLeafyGreen:Qg,LucideLectern:Jg,LucideLensConcave:e5,LucideLensConvex:t5,LucideLetterText:Pi,LucideLibrary:r5,LucideLibraryBig:a5,LucideLibrarySquare:si,LucideLifeBuoy:o5,LucideLigature:n5,LucideLightbulb:s5,LucideLightbulbOff:i5,LucideLineChart:pn,LucideLineDotRightHorizontal:l5,LucideLineSquiggle:c5,LucideLink:ll,LucideLink2:h5,LucideLink2Off:d5,LucideLinkedin:u5,LucideList:V5,LucideListCheck:p5,LucideListChecks:y5,LucideListChevronsDownUp:m5,LucideListChevronsUpDown:f5,LucideListCollapse:k5,LucideListEnd:g5,LucideListFilter:b5,LucideListFilterPlus:M5,LucideListIndentDecrease:Nt,LucideListIndentIncrease:Rt,LucideListMinus:C5,LucideListMusic:x5,LucideListOrdered:w5,LucideListPlus:v5,LucideListRestart:L5,LucideListStart:S5,LucideListTodo:_5,LucideListTree:I5,LucideListVideo:A5,LucideListX:B5,LucideLoader:P5,LucideLoader2:Lt,LucideLoaderCircle:Lt,LucideLoaderPinwheel:z5,LucideLocate:E5,LucideLocateFixed:q5,LucideLocateOff:D5,LucideLocationEdit:Qo,LucideLock:H5,LucideLockKeyhole:T5,LucideLockKeyholeOpen:Xo,LucideLockOpen:Zo,LucideLogIn:O5,LucideLogOut:j5,LucideLogs:F5,LucideLollipop:N5,LucideLuggage:R5,LucideMSquare:li,LucideMagnet:$5,LucideMail:Q5,LucideMailCheck:U5,LucideMailMinus:G5,LucideMailOpen:W5,LucideMailPlus:K5,LucideMailQuestion:Yo,LucideMailQuestionMark:Yo,LucideMailSearch:X5,LucideMailWarning:Y5,LucideMailX:Z5,LucideMailbox:t3,LucideMails:J5,LucideMap:y3,LucideMapMinus:e3,LucideMapPin:cl,LucideMapPinCheck:a3,LucideMapPinCheckInside:n3,LucideMapPinHouse:o3,LucideMapPinMinus:i3,LucideMapPinMinusInside:r3,LucideMapPinOff:s3,LucideMapPinPen:Qo,LucideMapPinPlus:c3,LucideMapPinPlusInside:l3,LucideMapPinX:d3,LucideMapPinXInside:h3,LucideMapPinned:u3,LucideMapPlus:p3,LucideMars:k3,LucideMarsStroke:f3,LucideMartini:m3,LucideMaximize:b3,LucideMaximize2:g3,LucideMedal:M3,LucideMegaphone:w3,LucideMegaphoneOff:x3,LucideMeh:v3,LucideMemoryStick:C3,LucideMenu:L3,LucideMenuSquare:ci,LucideMerge:S3,LucideMessageCircle:T3,LucideMessageCircleCheck:I3,LucideMessageCircleCode:_3,LucideMessageCircleDashed:A3,LucideMessageCircleHeart:B3,LucideMessageCircleMore:z3,LucideMessageCircleOff:V3,LucideMessageCirclePlus:P3,LucideMessageCircleQuestion:Jo,LucideMessageCircleQuestionMark:Jo,LucideMessageCircleReply:q3,LucideMessageCircleWarning:D3,LucideMessageCircleX:E3,LucideMessageSquare:Cs,LucideMessageSquareCheck:H3,LucideMessageSquareCode:O3,LucideMessageSquareDashed:j3,LucideMessageSquareDiff:F3,LucideMessageSquareDot:N3,LucideMessageSquareHeart:R3,LucideMessageSquareLock:$3,LucideMessageSquareMore:U3,LucideMessageSquareOff:W3,LucideMessageSquarePlus:G3,LucideMessageSquareQuote:K3,LucideMessageSquareReply:X3,LucideMessageSquareShare:Z3,LucideMessageSquareText:Q3,LucideMessageSquareWarning:Y3,LucideMessageSquareX:J3,LucideMessagesSquare:e8,LucideMetronome:t8,LucideMic:n8,LucideMic2:er,LucideMicOff:a8,LucideMicVocal:er,LucideMicrochip:o8,LucideMicroscope:r8,LucideMicrowave:i8,LucideMilestone:s8,LucideMilk:c8,LucideMilkOff:l8,LucideMinimize:d8,LucideMinimize2:h8,LucideMinus:dl,LucideMinusCircle:Tn,LucideMinusSquare:di,LucideMirrorRectangular:u8,LucideMirrorRound:p8,LucideMonitor:I8,LucideMonitorCheck:y8,LucideMonitorCloud:f8,LucideMonitorCog:m8,LucideMonitorDot:k8,LucideMonitorDown:g8,LucideMonitorOff:b8,LucideMonitorPause:M8,LucideMonitorPlay:x8,LucideMonitorSmartphone:w8,LucideMonitorSpeaker:v8,LucideMonitorStop:C8,LucideMonitorUp:L8,LucideMonitorX:S8,LucideMoon:A8,LucideMoonStar:_8,LucideMoreHorizontal:Ma,LucideMoreVertical:ro,LucideMotorbike:B8,LucideMountain:z8,LucideMountainSnow:V8,LucideMouse:F8,LucideMouseLeft:P8,LucideMouseOff:q8,LucideMousePointer:O8,LucideMousePointer2:E8,LucideMousePointer2Off:D8,LucideMousePointerBan:T8,LucideMousePointerClick:H8,LucideMousePointerSquareDashed:ei,LucideMouseRight:j8,LucideMove:e6,LucideMove3D:tr,LucideMove3d:tr,LucideMoveDiagonal:R8,LucideMoveDiagonal2:N8,LucideMoveDown:W8,LucideMoveDownLeft:$8,LucideMoveDownRight:U8,LucideMoveHorizontal:G8,LucideMoveLeft:K8,LucideMoveRight:Z8,LucideMoveUp:Q8,LucideMoveUpLeft:X8,LucideMoveUpRight:Y8,LucideMoveVertical:J8,LucideMusic:o6,LucideMusic2:t6,LucideMusic3:a6,LucideMusic4:n6,LucideNavigation:l6,LucideNavigation2:i6,LucideNavigation2Off:r6,LucideNavigationOff:s6,LucideNetwork:c6,LucideNewspaper:d6,LucideNfc:h6,LucideNonBinary:u6,LucideNotebook:m6,LucideNotebookPen:y6,LucideNotebookTabs:p6,LucideNotebookText:f6,LucideNotepadText:g6,LucideNotepadTextDashed:k6,LucideNut:M6,LucideNutOff:b6,LucideOctagon:w6,LucideOctagonAlert:ar,LucideOctagonMinus:x6,LucideOctagonPause:nr,LucideOctagonX:or,LucideOmega:v6,LucideOption:C6,LucideOrbit:L6,LucideOrigami:S6,LucideOutdent:Nt,LucidePackage:q6,LucidePackage2:I6,LucidePackageCheck:A6,LucidePackageMinus:_6,LucidePackageOpen:B6,LucidePackagePlus:V6,LucidePackageSearch:z6,LucidePackageX:P6,LucidePaintBucket:D6,LucidePaintRoller:E6,LucidePaintbrush:T6,LucidePaintbrush2:rr,LucidePaintbrushVertical:rr,LucidePalette:H6,LucidePalmtree:Hi,LucidePanda:O6,LucidePanelBottom:N6,LucidePanelBottomClose:j6,LucidePanelBottomDashed:ir,LucidePanelBottomInactive:ir,LucidePanelBottomOpen:F6,LucidePanelLeft:dr,LucidePanelLeftClose:lr,LucidePanelLeftDashed:sr,LucidePanelLeftInactive:sr,LucidePanelLeftOpen:cr,LucidePanelLeftRightDashed:R6,LucidePanelRight:W6,LucidePanelRightClose:$6,LucidePanelRightDashed:hr,LucidePanelRightInactive:hr,LucidePanelRightOpen:U6,LucidePanelTop:Z6,LucidePanelTopBottomDashed:G6,LucidePanelTopClose:K6,LucidePanelTopDashed:ur,LucidePanelTopInactive:ur,LucidePanelTopOpen:X6,LucidePanelsLeftBottom:Y6,LucidePanelsLeftRight:to,LucidePanelsRightBottom:Q6,LucidePanelsTopBottom:xr,LucidePanelsTopLeft:pr,LucidePaperclip:J6,LucideParentheses:e7,LucideParkingCircle:On,LucideParkingCircleOff:Hn,LucideParkingMeter:t7,LucideParkingSquare:pi,LucideParkingSquareOff:ui,LucidePartyPopper:a7,LucidePause:n7,LucidePauseCircle:jn,LucidePauseOctagon:nr,LucidePawPrint:o7,LucidePcCase:r7,LucidePen:fr,LucidePenBox:at,LucidePenLine:yr,LucidePenOff:i7,LucidePenSquare:at,LucidePenTool:s7,LucidePencil:mr,LucidePencilLine:l7,LucidePencilOff:c7,LucidePencilRuler:d7,LucidePentagon:h7,LucidePercent:u7,LucidePercentCircle:Fn,LucidePercentDiamond:no,LucidePercentSquare:yi,LucidePersonStanding:p7,LucidePhilippinePeso:y7,LucidePhone:hl,LucidePhoneCall:f7,LucidePhoneForwarded:m7,LucidePhoneIncoming:k7,LucidePhoneMissed:b7,LucidePhoneOff:g7,LucidePhoneOutgoing:M7,LucidePi:x7,LucidePiSquare:fi,LucidePiano:w7,LucidePickaxe:v7,LucidePictureInPicture:L7,LucidePictureInPicture2:C7,LucidePieChart:mn,LucidePiggyBank:S7,LucidePilcrow:A7,LucidePilcrowLeft:I7,LucidePilcrowRight:_7,LucidePilcrowSquare:mi,LucidePill:q7,LucidePillBottle:B7,LucidePin:z7,LucidePinOff:V7,LucidePipette:P7,LucidePizza:D7,LucidePlane:ul,LucidePlaneLanding:E7,LucidePlaneTakeoff:T7,LucidePlay:H7,LucidePlayCircle:Nn,LucidePlaySquare:ki,LucidePlug:j7,LucidePlug2:O7,LucidePlugZap:kr,LucidePlugZap2:kr,LucidePlus:pl,LucidePlusCircle:Rn,LucidePlusSquare:gi,LucidePocket:N7,LucidePocketKnife:F7,LucidePodcast:R7,LucidePointer:U7,LucidePointerOff:$7,LucidePopcorn:W7,LucidePopsicle:G7,LucidePoundSterling:X7,LucidePower:Z7,LucidePowerCircle:$n,LucidePowerOff:K7,LucidePowerSquare:bi,LucidePresentation:Y7,LucidePrinter:eb,LucidePrinterCheck:Q7,LucidePrinterX:J7,LucideProjector:tb,LucideProportions:ob,LucidePuzzle:ab,LucidePyramid:nb,LucideQrCode:rb,LucideQuote:ib,LucideRabbit:lb,LucideRadar:sb,LucideRadiation:db,LucideRadical:cb,LucideRadio:pb,LucideRadioReceiver:hb,LucideRadioTower:ub,LucideRadius:yb,LucideRailSymbol:fb,LucideRainbow:mb,LucideRat:kb,LucideRatio:gb,LucideReceipt:_b,LucideReceiptCent:bb,LucideReceiptEuro:Mb,LucideReceiptIndianRupee:xb,LucideReceiptJapaneseYen:wb,LucideReceiptPoundSterling:vb,LucideReceiptRussianRuble:Cb,LucideReceiptSwissFranc:Lb,LucideReceiptText:Sb,LucideReceiptTurkishLira:Ib,LucideRectangleCircle:Ab,LucideRectangleEllipsis:gr,LucideRectangleGoggles:Bb,LucideRectangleHorizontal:Vb,LucideRectangleVertical:zb,LucideRecycle:Pb,LucideRedo:Db,LucideRedo2:qb,LucideRedoDot:Eb,LucideRefreshCcw:Hb,LucideRefreshCcwDot:Tb,LucideRefreshCw:Ls,LucideRefreshCwOff:Ob,LucideRefrigerator:Fb,LucideRegex:jb,LucideRemoveFormatting:Nb,LucideRepeat:$b,LucideRepeat1:Rb,LucideRepeat2:Wb,LucideReplace:Gb,LucideReplaceAll:Ub,LucideReply:Xb,LucideReplyAll:Kb,LucideRewind:Yb,LucideRibbon:Zb,LucideRocket:Qb,LucideRockingChair:Jb,LucideRollerCoaster:eM,LucideRose:tM,LucideRotate3D:br,LucideRotate3d:br,LucideRotateCcw:oM,LucideRotateCcwKey:aM,LucideRotateCcwSquare:nM,LucideRotateCw:iM,LucideRotateCwSquare:rM,LucideRoute:lM,LucideRouteOff:sM,LucideRouter:cM,LucideRows:Mr,LucideRows2:Mr,LucideRows3:xr,LucideRows4:dM,LucideRss:hM,LucideRuler:uM,LucideRulerDimensionLine:pM,LucideRussianRuble:yM,LucideSailboat:fM,LucideSalad:mM,LucideSandwich:gM,LucideSatellite:bM,LucideSatelliteDish:kM,LucideSaudiRiyal:MM,LucideSave:vM,LucideSaveAll:wM,LucideSaveOff:xM,LucideScale:CM,LucideScale3D:wr,LucideScale3d:wr,LucideScaling:LM,LucideScan:PM,LucideScanBarcode:SM,LucideScanEye:IM,LucideScanFace:_M,LucideScanHeart:AM,LucideScanLine:BM,LucideScanQrCode:zM,LucideScanSearch:VM,LucideScanText:qM,LucideScatterChart:gn,LucideSchool:DM,LucideSchool2:Fi,LucideScissors:HM,LucideScissorsLineDashed:EM,LucideScissorsSquare:Mi,LucideScissorsSquareDashedBottom:Rr,LucideScooter:TM,LucideScreenShare:jM,LucideScreenShareOff:OM,LucideScroll:NM,LucideScrollText:FM,LucideSearch:vr,LucideSearchAlert:RM,LucideSearchCheck:UM,LucideSearchCode:$M,LucideSearchSlash:WM,LucideSearchX:GM,LucideSection:KM,LucideSend:ZM,LucideSendHorizonal:Cr,LucideSendHorizontal:Cr,LucideSendToBack:XM,LucideSeparatorHorizontal:YM,LucideSeparatorVertical:QM,LucideServer:yl,LucideServerCog:JM,LucideServerCrash:ex,LucideServerOff:ax,LucideSettings:nx,LucideSettings2:tx,LucideShapes:ox,LucideShare:rx,LucideShare2:fl,LucideSheet:ix,LucideShell:sx,LucideShelvingUnit:lx,LucideShield:gx,LucideShieldAlert:cx,LucideShieldBan:dx,LucideShieldCheck:hx,LucideShieldClose:Sr,LucideShieldEllipsis:ux,LucideShieldHalf:px,LucideShieldMinus:mx,LucideShieldOff:yx,LucideShieldPlus:fx,LucideShieldQuestion:Lr,LucideShieldQuestionMark:Lr,LucideShieldUser:kx,LucideShieldX:Sr,LucideShip:Mx,LucideShipWheel:bx,LucideShirt:xx,LucideShoppingBag:wx,LucideShoppingBasket:vx,LucideShoppingCart:ml,LucideShovel:Lx,LucideShowerHead:Cx,LucideShredder:Sx,LucideShrimp:Ix,LucideShrink:_x,LucideShrub:Ax,LucideShuffle:Bx,LucideSidebar:dr,LucideSidebarClose:lr,LucideSidebarOpen:cr,LucideSigma:Vx,LucideSigmaSquare:xi,LucideSignal:Ex,LucideSignalHigh:zx,LucideSignalLow:Px,LucideSignalMedium:qx,LucideSignalZero:Dx,LucideSignature:Tx,LucideSignpost:Ox,LucideSignpostBig:Hx,LucideSiren:jx,LucideSkipBack:Nx,LucideSkipForward:Fx,LucideSkull:$x,LucideSlack:Rx,LucideSlash:Ux,LucideSlashSquare:wi,LucideSlice:Wx,LucideSliders:Ir,LucideSlidersHorizontal:kl,LucideSlidersVertical:Ir,LucideSmartphone:Xx,LucideSmartphoneCharging:Gx,LucideSmartphoneNfc:Kx,LucideSmile:Yx,LucideSmilePlus:Zx,LucideSnail:Qx,LucideSnowflake:Jx,LucideSoapDispenserDroplet:e9,LucideSofa:t9,LucideSolarPanel:a9,LucideSortAsc:Xa,LucideSortDesc:Wa,LucideSoup:n9,LucideSpace:o9,LucideSpade:r9,LucideSparkle:i9,LucideSparkles:_r,LucideSpeaker:s9,LucideSpeech:l9,LucideSpellCheck:h9,LucideSpellCheck2:c9,LucideSpline:u9,LucideSplinePointer:d9,LucideSplit:p9,LucideSplitSquareHorizontal:vi,LucideSplitSquareVertical:Ci,LucideSpool:y9,LucideSpotlight:f9,LucideSprayCan:m9,LucideSprout:k9,LucideSquare:V9,LucideSquareActivity:Ar,LucideSquareArrowDown:zr,LucideSquareArrowDownLeft:Br,LucideSquareArrowDownRight:Vr,LucideSquareArrowLeft:Pr,LucideSquareArrowOutDownLeft:qr,LucideSquareArrowOutDownRight:Dr,LucideSquareArrowOutUpLeft:Er,LucideSquareArrowOutUpRight:Tr,LucideSquareArrowRight:Hr,LucideSquareArrowRightEnter:g9,LucideSquareArrowRightExit:b9,LucideSquareArrowUp:Fr,LucideSquareArrowUpLeft:jr,LucideSquareArrowUpRight:Or,LucideSquareAsterisk:Nr,LucideSquareBottomDashedScissors:Rr,LucideSquareCenterlineDashedHorizontal:$r,LucideSquareCenterlineDashedVertical:Ur,LucideSquareChartGantt:$t,LucideSquareCheck:Gr,LucideSquareCheckBig:Wr,LucideSquareChevronDown:Kr,LucideSquareChevronLeft:Xr,LucideSquareChevronRight:Zr,LucideSquareChevronUp:Yr,LucideSquareCode:Qr,LucideSquareDashed:ti,LucideSquareDashedBottom:x9,LucideSquareDashedBottomCode:M9,LucideSquareDashedKanban:Jr,LucideSquareDashedMousePointer:ei,LucideSquareDashedTopSolid:w9,LucideSquareDivide:ni,LucideSquareDot:ai,LucideSquareEqual:oi,LucideSquareFunction:ri,LucideSquareGanttChart:$t,LucideSquareKanban:ii,LucideSquareLibrary:si,LucideSquareM:li,LucideSquareMenu:ci,LucideSquareMinus:di,LucideSquareMousePointer:hi,LucideSquareParking:pi,LucideSquareParkingOff:ui,LucideSquarePause:v9,LucideSquarePen:at,LucideSquarePercent:yi,LucideSquarePi:fi,LucideSquarePilcrow:mi,LucideSquarePlay:ki,LucideSquarePlus:gi,LucideSquarePower:bi,LucideSquareRadical:L9,LucideSquareRoundCorner:C9,LucideSquareScissors:Mi,LucideSquareSigma:xi,LucideSquareSlash:wi,LucideSquareSplitHorizontal:vi,LucideSquareSplitVertical:Ci,LucideSquareSquare:S9,LucideSquareStack:I9,LucideSquareStar:A9,LucideSquareStop:_9,LucideSquareTerminal:Li,LucideSquareUser:_i,LucideSquareUserRound:Si,LucideSquareX:Ii,LucideSquaresExclude:B9,LucideSquaresIntersect:z9,LucideSquaresSubtract:P9,LucideSquaresUnite:q9,LucideSquircle:E9,LucideSquircleDashed:D9,LucideSquirrel:T9,LucideStamp:H9,LucideStar:N9,LucideStarHalf:O9,LucideStarOff:j9,LucideStars:_r,LucideStepBack:F9,LucideStepForward:R9,LucideStethoscope:$9,LucideSticker:U9,LucideStickyNote:W9,LucideStone:G9,LucideStopCircle:Wn,LucideStore:K9,LucideStretchHorizontal:Z9,LucideStretchVertical:X9,LucideStrikethrough:Y9,LucideSubscript:Q9,LucideSubtitles:on,LucideSun:nw,LucideSunDim:J9,LucideSunMedium:ew,LucideSunMoon:aw,LucideSunSnow:tw,LucideSunrise:ow,LucideSunset:rw,LucideSuperscript:iw,LucideSwatchBook:sw,LucideSwissFranc:lw,LucideSwitchCamera:dw,LucideSword:cw,LucideSwords:hw,LucideSyringe:uw,LucideTable:xw,LucideTable2:pw,LucideTableCellsMerge:yw,LucideTableCellsSplit:fw,LucideTableColumnsSplit:mw,LucideTableConfig:Ot,LucideTableOfContents:kw,LucideTableProperties:gw,LucideTableRowsSplit:bw,LucideTablet:Mw,LucideTabletSmartphone:ww,LucideTablets:vw,LucideTag:Cw,LucideTags:Lw,LucideTally1:Sw,LucideTally2:Iw,LucideTally3:_w,LucideTally4:Aw,LucideTally5:Bw,LucideTangent:Vw,LucideTarget:zw,LucideTelescope:Pw,LucideTent:Dw,LucideTentTree:qw,LucideTerminal:Ew,LucideTerminalSquare:Li,LucideTestTube:Tw,LucideTestTube2:Ai,LucideTestTubeDiagonal:Ai,LucideTestTubes:Hw,LucideText:Ut,LucideTextAlignCenter:zi,LucideTextAlignEnd:Bi,LucideTextAlignJustify:Vi,LucideTextAlignStart:Ut,LucideTextCursor:jw,LucideTextCursorInput:Ow,LucideTextInitial:Pi,LucideTextQuote:Nw,LucideTextSearch:Fw,LucideTextSelect:Di,LucideTextSelection:Di,LucideTextWrap:qi,LucideTheater:Rw,LucideThermometer:Ww,LucideThermometerSnowflake:$w,LucideThermometerSun:Uw,LucideThumbsDown:Kw,LucideThumbsUp:Gw,LucideTicket:av,LucideTicketCheck:Xw,LucideTicketMinus:Zw,LucideTicketPercent:Yw,LucideTicketPlus:Qw,LucideTicketSlash:Jw,LucideTicketX:ev,LucideTickets:nv,LucideTicketsPlane:tv,LucideTimer:iv,LucideTimerOff:ov,LucideTimerReset:rv,LucideToggleLeft:gl,LucideToggleRight:sv,LucideToilet:lv,LucideToolCase:cv,LucideToolbox:dv,LucideTornado:hv,LucideTorus:uv,LucideTouchpad:yv,LucideTouchpadOff:pv,LucideTowelRack:fv,LucideTowerControl:mv,LucideToyBrick:kv,LucideTractor:gv,LucideTrafficCone:bv,LucideTrain:Ei,LucideTrainFront:vv,LucideTrainFrontTunnel:Mv,LucideTrainTrack:xv,LucideTramFront:Ei,LucideTransgender:wv,LucideTrash:Cv,LucideTrash2:Ti,LucideTreeDeciduous:Lv,LucideTreePalm:Hi,LucideTreePine:Sv,LucideTrees:Iv,LucideTrello:_v,LucideTrendingDown:Av,LucideTrendingUp:Vv,LucideTrendingUpDown:Bv,LucideTriangle:Dv,LucideTriangleAlert:Oi,LucideTriangleDashed:zv,LucideTriangleRight:qv,LucideTrophy:Pv,LucideTruck:Tv,LucideTruckElectric:Ev,LucideTurkishLira:Hv,LucideTurntable:Ov,LucideTurtle:jv,LucideTv:Nv,LucideTv2:ji,LucideTvMinimal:ji,LucideTvMinimalPlay:Fv,LucideTwitch:Rv,LucideTwitter:Uv,LucideType:Wv,LucideTypeOutline:$v,LucideUmbrella:Kv,LucideUmbrellaOff:Gv,LucideUnderline:Xv,LucideUndo:Yv,LucideUndo2:Zv,LucideUndoDot:Qv,LucideUnfoldHorizontal:Jv,LucideUnfoldVertical:eC,LucideUngroup:tC,LucideUniversity:Fi,LucideUnlink:nC,LucideUnlink2:aC,LucideUnlock:Zo,LucideUnlockKeyhole:Xo,LucideUnplug:oC,LucideUpload:rC,LucideUploadCloud:ba,LucideUsb:iC,LucideUser:bl,LucideUser2:Gi,LucideUserCheck:sC,LucideUserCheck2:Ni,LucideUserCircle:Kn,LucideUserCircle2:Gn,LucideUserCog:lC,LucideUserCog2:Ri,LucideUserKey:cC,LucideUserLock:dC,LucideUserMinus:hC,LucideUserMinus2:$i,LucideUserPen:uC,LucideUserPlus:pC,LucideUserPlus2:Ui,LucideUserRound:Gi,LucideUserRoundCheck:Ni,LucideUserRoundCog:Ri,LucideUserRoundKey:yC,LucideUserRoundMinus:$i,LucideUserRoundPen:fC,LucideUserRoundPlus:Ui,LucideUserRoundSearch:mC,LucideUserRoundX:Wi,LucideUserSearch:gC,LucideUserSquare:_i,LucideUserSquare2:Si,LucideUserStar:kC,LucideUserX:bC,LucideUserX2:Wi,LucideUsers:MC,LucideUsers2:Ki,LucideUsersRound:Ki,LucideUtensils:Zi,LucideUtensilsCrossed:Xi,LucideUtilityPole:xC,LucideVan:wC,LucideVariable:CC,LucideVault:vC,LucideVectorSquare:LC,LucideVegan:SC,LucideVenetianMask:IC,LucideVenus:_C,LucideVenusAndMars:AC,LucideVerified:Qa,LucideVibrate:VC,LucideVibrateOff:BC,LucideVideo:PC,LucideVideoOff:zC,LucideVideotape:qC,LucideView:DC,LucideVoicemail:EC,LucideVolleyball:OC,LucideVolume:FC,LucideVolume1:TC,LucideVolume2:HC,LucideVolumeOff:jC,LucideVolumeX:NC,LucideVote:RC,LucideWallet:UC,LucideWallet2:Yi,LucideWalletCards:$C,LucideWalletMinimal:Yi,LucideWallpaper:WC,LucideWand:GC,LucideWand2:Qi,LucideWandSparkles:Qi,LucideWarehouse:KC,LucideWashingMachine:XC,LucideWatch:ZC,LucideWaves:eL,LucideWavesArrowDown:YC,LucideWavesArrowUp:QC,LucideWavesLadder:JC,LucideWaypoints:tL,LucideWebcam:aL,LucideWebhook:oL,LucideWebhookOff:nL,LucideWeight:iL,LucideWeightTilde:rL,LucideWheat:lL,LucideWheatOff:sL,LucideWholeWord:cL,LucideWifi:kL,LucideWifiCog:dL,LucideWifiHigh:hL,LucideWifiLow:pL,LucideWifiOff:uL,LucideWifiPen:yL,LucideWifiSync:fL,LucideWifiZero:mL,LucideWind:gL,LucideWindArrowDown:bL,LucideWine:ML,LucideWineOff:xL,LucideWorkflow:wL,LucideWorm:vL,LucideWrapText:qi,LucideWrench:CL,LucideX:pt,LucideXCircle:Xn,LucideXLineTop:LL,LucideXOctagon:or,LucideXSquare:Ii,LucideYoutube:SL,LucideZap:AL,LucideZapOff:IL,LucideZoomIn:_L,LucideZoomOut:BL,Luggage:R5,LuggageIcon:R5,MSquare:li,MSquareIcon:li,Magnet:$5,MagnetIcon:$5,Mail:Q5,MailCheck:U5,MailCheckIcon:U5,MailIcon:Q5,MailMinus:G5,MailMinusIcon:G5,MailOpen:W5,MailOpenIcon:W5,MailPlus:K5,MailPlusIcon:K5,MailQuestion:Yo,MailQuestionIcon:Yo,MailQuestionMark:Yo,MailQuestionMarkIcon:Yo,MailSearch:X5,MailSearchIcon:X5,MailWarning:Y5,MailWarningIcon:Y5,MailX:Z5,MailXIcon:Z5,Mailbox:t3,MailboxIcon:t3,Mails:J5,MailsIcon:J5,Map:y3,MapIcon:y3,MapMinus:e3,MapMinusIcon:e3,MapPin:cl,MapPinCheck:a3,MapPinCheckIcon:a3,MapPinCheckInside:n3,MapPinCheckInsideIcon:n3,MapPinHouse:o3,MapPinHouseIcon:o3,MapPinIcon:cl,MapPinMinus:i3,MapPinMinusIcon:i3,MapPinMinusInside:r3,MapPinMinusInsideIcon:r3,MapPinOff:s3,MapPinOffIcon:s3,MapPinPen:Qo,MapPinPenIcon:Qo,MapPinPlus:c3,MapPinPlusIcon:c3,MapPinPlusInside:l3,MapPinPlusInsideIcon:l3,MapPinX:d3,MapPinXIcon:d3,MapPinXInside:h3,MapPinXInsideIcon:h3,MapPinned:u3,MapPinnedIcon:u3,MapPlus:p3,MapPlusIcon:p3,Mars:k3,MarsIcon:k3,MarsStroke:f3,MarsStrokeIcon:f3,Martini:m3,MartiniIcon:m3,Maximize:b3,Maximize2:g3,Maximize2Icon:g3,MaximizeIcon:b3,Medal:M3,MedalIcon:M3,Megaphone:w3,MegaphoneIcon:w3,MegaphoneOff:x3,MegaphoneOffIcon:x3,Meh:v3,MehIcon:v3,MemoryStick:C3,MemoryStickIcon:C3,Menu:L3,MenuIcon:L3,MenuSquare:ci,MenuSquareIcon:ci,Merge:S3,MergeIcon:S3,MessageCircle:T3,MessageCircleCheck:I3,MessageCircleCheckIcon:I3,MessageCircleCode:_3,MessageCircleCodeIcon:_3,MessageCircleDashed:A3,MessageCircleDashedIcon:A3,MessageCircleHeart:B3,MessageCircleHeartIcon:B3,MessageCircleIcon:T3,MessageCircleMore:z3,MessageCircleMoreIcon:z3,MessageCircleOff:V3,MessageCircleOffIcon:V3,MessageCirclePlus:P3,MessageCirclePlusIcon:P3,MessageCircleQuestion:Jo,MessageCircleQuestionIcon:Jo,MessageCircleQuestionMark:Jo,MessageCircleQuestionMarkIcon:Jo,MessageCircleReply:q3,MessageCircleReplyIcon:q3,MessageCircleWarning:D3,MessageCircleWarningIcon:D3,MessageCircleX:E3,MessageCircleXIcon:E3,MessageSquare:Cs,MessageSquareCheck:H3,MessageSquareCheckIcon:H3,MessageSquareCode:O3,MessageSquareCodeIcon:O3,MessageSquareDashed:j3,MessageSquareDashedIcon:j3,MessageSquareDiff:F3,MessageSquareDiffIcon:F3,MessageSquareDot:N3,MessageSquareDotIcon:N3,MessageSquareHeart:R3,MessageSquareHeartIcon:R3,MessageSquareIcon:Cs,MessageSquareLock:$3,MessageSquareLockIcon:$3,MessageSquareMore:U3,MessageSquareMoreIcon:U3,MessageSquareOff:W3,MessageSquareOffIcon:W3,MessageSquarePlus:G3,MessageSquarePlusIcon:G3,MessageSquareQuote:K3,MessageSquareQuoteIcon:K3,MessageSquareReply:X3,MessageSquareReplyIcon:X3,MessageSquareShare:Z3,MessageSquareShareIcon:Z3,MessageSquareText:Q3,MessageSquareTextIcon:Q3,MessageSquareWarning:Y3,MessageSquareWarningIcon:Y3,MessageSquareX:J3,MessageSquareXIcon:J3,MessagesSquare:e8,MessagesSquareIcon:e8,Metronome:t8,MetronomeIcon:t8,Mic:n8,Mic2:er,Mic2Icon:er,MicIcon:n8,MicOff:a8,MicOffIcon:a8,MicVocal:er,MicVocalIcon:er,Microchip:o8,MicrochipIcon:o8,Microscope:r8,MicroscopeIcon:r8,Microwave:i8,MicrowaveIcon:i8,Milestone:s8,MilestoneIcon:s8,Milk:c8,MilkIcon:c8,MilkOff:l8,MilkOffIcon:l8,Minimize:d8,Minimize2:h8,Minimize2Icon:h8,MinimizeIcon:d8,Minus:dl,MinusCircle:Tn,MinusCircleIcon:Tn,MinusIcon:dl,MinusSquare:di,MinusSquareIcon:di,MirrorRectangular:u8,MirrorRectangularIcon:u8,MirrorRound:p8,MirrorRoundIcon:p8,Monitor:I8,MonitorCheck:y8,MonitorCheckIcon:y8,MonitorCloud:f8,MonitorCloudIcon:f8,MonitorCog:m8,MonitorCogIcon:m8,MonitorDot:k8,MonitorDotIcon:k8,MonitorDown:g8,MonitorDownIcon:g8,MonitorIcon:I8,MonitorOff:b8,MonitorOffIcon:b8,MonitorPause:M8,MonitorPauseIcon:M8,MonitorPlay:x8,MonitorPlayIcon:x8,MonitorSmartphone:w8,MonitorSmartphoneIcon:w8,MonitorSpeaker:v8,MonitorSpeakerIcon:v8,MonitorStop:C8,MonitorStopIcon:C8,MonitorUp:L8,MonitorUpIcon:L8,MonitorX:S8,MonitorXIcon:S8,Moon:A8,MoonIcon:A8,MoonStar:_8,MoonStarIcon:_8,MoreHorizontal:Ma,MoreHorizontalIcon:Ma,MoreVertical:ro,MoreVerticalIcon:ro,Motorbike:B8,MotorbikeIcon:B8,Mountain:z8,MountainIcon:z8,MountainSnow:V8,MountainSnowIcon:V8,Mouse:F8,MouseIcon:F8,MouseLeft:P8,MouseLeftIcon:P8,MouseOff:q8,MouseOffIcon:q8,MousePointer:O8,MousePointer2:E8,MousePointer2Icon:E8,MousePointer2Off:D8,MousePointer2OffIcon:D8,MousePointerBan:T8,MousePointerBanIcon:T8,MousePointerClick:H8,MousePointerClickIcon:H8,MousePointerIcon:O8,MousePointerSquareDashed:ei,MousePointerSquareDashedIcon:ei,MouseRight:j8,MouseRightIcon:j8,Move:e6,Move3D:tr,Move3DIcon:tr,Move3d:tr,Move3dIcon:tr,MoveDiagonal:R8,MoveDiagonal2:N8,MoveDiagonal2Icon:N8,MoveDiagonalIcon:R8,MoveDown:W8,MoveDownIcon:W8,MoveDownLeft:$8,MoveDownLeftIcon:$8,MoveDownRight:U8,MoveDownRightIcon:U8,MoveHorizontal:G8,MoveHorizontalIcon:G8,MoveIcon:e6,MoveLeft:K8,MoveLeftIcon:K8,MoveRight:Z8,MoveRightIcon:Z8,MoveUp:Q8,MoveUpIcon:Q8,MoveUpLeft:X8,MoveUpLeftIcon:X8,MoveUpRight:Y8,MoveUpRightIcon:Y8,MoveVertical:J8,MoveVerticalIcon:J8,Music:o6,Music2:t6,Music2Icon:t6,Music3:a6,Music3Icon:a6,Music4:n6,Music4Icon:n6,MusicIcon:o6,Navigation:l6,Navigation2:i6,Navigation2Icon:i6,Navigation2Off:r6,Navigation2OffIcon:r6,NavigationIcon:l6,NavigationOff:s6,NavigationOffIcon:s6,Network:c6,NetworkIcon:c6,Newspaper:d6,NewspaperIcon:d6,Nfc:h6,NfcIcon:h6,NonBinary:u6,NonBinaryIcon:u6,Notebook:m6,NotebookIcon:m6,NotebookPen:y6,NotebookPenIcon:y6,NotebookTabs:p6,NotebookTabsIcon:p6,NotebookText:f6,NotebookTextIcon:f6,NotepadText:g6,NotepadTextDashed:k6,NotepadTextDashedIcon:k6,NotepadTextIcon:g6,Nut:M6,NutIcon:M6,NutOff:b6,NutOffIcon:b6,Octagon:w6,OctagonAlert:ar,OctagonAlertIcon:ar,OctagonIcon:w6,OctagonMinus:x6,OctagonMinusIcon:x6,OctagonPause:nr,OctagonPauseIcon:nr,OctagonX:or,OctagonXIcon:or,Omega:v6,OmegaIcon:v6,Option:C6,OptionIcon:C6,Orbit:L6,OrbitIcon:L6,Origami:S6,OrigamiIcon:S6,Outdent:Nt,OutdentIcon:Nt,Package:q6,Package2:I6,Package2Icon:I6,PackageCheck:A6,PackageCheckIcon:A6,PackageIcon:q6,PackageMinus:_6,PackageMinusIcon:_6,PackageOpen:B6,PackageOpenIcon:B6,PackagePlus:V6,PackagePlusIcon:V6,PackageSearch:z6,PackageSearchIcon:z6,PackageX:P6,PackageXIcon:P6,PaintBucket:D6,PaintBucketIcon:D6,PaintRoller:E6,PaintRollerIcon:E6,Paintbrush:T6,Paintbrush2:rr,Paintbrush2Icon:rr,PaintbrushIcon:T6,PaintbrushVertical:rr,PaintbrushVerticalIcon:rr,Palette:H6,PaletteIcon:H6,Palmtree:Hi,PalmtreeIcon:Hi,Panda:O6,PandaIcon:O6,PanelBottom:N6,PanelBottomClose:j6,PanelBottomCloseIcon:j6,PanelBottomDashed:ir,PanelBottomDashedIcon:ir,PanelBottomIcon:N6,PanelBottomInactive:ir,PanelBottomInactiveIcon:ir,PanelBottomOpen:F6,PanelBottomOpenIcon:F6,PanelLeft:dr,PanelLeftClose:lr,PanelLeftCloseIcon:lr,PanelLeftDashed:sr,PanelLeftDashedIcon:sr,PanelLeftIcon:dr,PanelLeftInactive:sr,PanelLeftInactiveIcon:sr,PanelLeftOpen:cr,PanelLeftOpenIcon:cr,PanelLeftRightDashed:R6,PanelLeftRightDashedIcon:R6,PanelRight:W6,PanelRightClose:$6,PanelRightCloseIcon:$6,PanelRightDashed:hr,PanelRightDashedIcon:hr,PanelRightIcon:W6,PanelRightInactive:hr,PanelRightInactiveIcon:hr,PanelRightOpen:U6,PanelRightOpenIcon:U6,PanelTop:Z6,PanelTopBottomDashed:G6,PanelTopBottomDashedIcon:G6,PanelTopClose:K6,PanelTopCloseIcon:K6,PanelTopDashed:ur,PanelTopDashedIcon:ur,PanelTopIcon:Z6,PanelTopInactive:ur,PanelTopInactiveIcon:ur,PanelTopOpen:X6,PanelTopOpenIcon:X6,PanelsLeftBottom:Y6,PanelsLeftBottomIcon:Y6,PanelsLeftRight:to,PanelsLeftRightIcon:to,PanelsRightBottom:Q6,PanelsRightBottomIcon:Q6,PanelsTopBottom:xr,PanelsTopBottomIcon:xr,PanelsTopLeft:pr,PanelsTopLeftIcon:pr,Paperclip:J6,PaperclipIcon:J6,Parentheses:e7,ParenthesesIcon:e7,ParkingCircle:On,ParkingCircleIcon:On,ParkingCircleOff:Hn,ParkingCircleOffIcon:Hn,ParkingMeter:t7,ParkingMeterIcon:t7,ParkingSquare:pi,ParkingSquareIcon:pi,ParkingSquareOff:ui,ParkingSquareOffIcon:ui,PartyPopper:a7,PartyPopperIcon:a7,Pause:n7,PauseCircle:jn,PauseCircleIcon:jn,PauseIcon:n7,PauseOctagon:nr,PauseOctagonIcon:nr,PawPrint:o7,PawPrintIcon:o7,PcCase:r7,PcCaseIcon:r7,Pen:fr,PenBox:at,PenBoxIcon:at,PenIcon:fr,PenLine:yr,PenLineIcon:yr,PenOff:i7,PenOffIcon:i7,PenSquare:at,PenSquareIcon:at,PenTool:s7,PenToolIcon:s7,Pencil:mr,PencilIcon:mr,PencilLine:l7,PencilLineIcon:l7,PencilOff:c7,PencilOffIcon:c7,PencilRuler:d7,PencilRulerIcon:d7,Pentagon:h7,PentagonIcon:h7,Percent:u7,PercentCircle:Fn,PercentCircleIcon:Fn,PercentDiamond:no,PercentDiamondIcon:no,PercentIcon:u7,PercentSquare:yi,PercentSquareIcon:yi,PersonStanding:p7,PersonStandingIcon:p7,PhilippinePeso:y7,PhilippinePesoIcon:y7,Phone:hl,PhoneCall:f7,PhoneCallIcon:f7,PhoneForwarded:m7,PhoneForwardedIcon:m7,PhoneIcon:hl,PhoneIncoming:k7,PhoneIncomingIcon:k7,PhoneMissed:b7,PhoneMissedIcon:b7,PhoneOff:g7,PhoneOffIcon:g7,PhoneOutgoing:M7,PhoneOutgoingIcon:M7,Pi:x7,PiIcon:x7,PiSquare:fi,PiSquareIcon:fi,Piano:w7,PianoIcon:w7,Pickaxe:v7,PickaxeIcon:v7,PictureInPicture:L7,PictureInPicture2:C7,PictureInPicture2Icon:C7,PictureInPictureIcon:L7,PieChart:mn,PieChartIcon:mn,PiggyBank:S7,PiggyBankIcon:S7,Pilcrow:A7,PilcrowIcon:A7,PilcrowLeft:I7,PilcrowLeftIcon:I7,PilcrowRight:_7,PilcrowRightIcon:_7,PilcrowSquare:mi,PilcrowSquareIcon:mi,Pill:q7,PillBottle:B7,PillBottleIcon:B7,PillIcon:q7,Pin:z7,PinIcon:z7,PinOff:V7,PinOffIcon:V7,Pipette:P7,PipetteIcon:P7,Pizza:D7,PizzaIcon:D7,Plane:ul,PlaneIcon:ul,PlaneLanding:E7,PlaneLandingIcon:E7,PlaneTakeoff:T7,PlaneTakeoffIcon:T7,Play:H7,PlayCircle:Nn,PlayCircleIcon:Nn,PlayIcon:H7,PlaySquare:ki,PlaySquareIcon:ki,Plug:j7,Plug2:O7,Plug2Icon:O7,PlugIcon:j7,PlugZap:kr,PlugZap2:kr,PlugZap2Icon:kr,PlugZapIcon:kr,Plus:pl,PlusCircle:Rn,PlusCircleIcon:Rn,PlusIcon:pl,PlusSquare:gi,PlusSquareIcon:gi,Pocket:N7,PocketIcon:N7,PocketKnife:F7,PocketKnifeIcon:F7,Podcast:R7,PodcastIcon:R7,Pointer:U7,PointerIcon:U7,PointerOff:$7,PointerOffIcon:$7,Popcorn:W7,PopcornIcon:W7,Popsicle:G7,PopsicleIcon:G7,PoundSterling:X7,PoundSterlingIcon:X7,Power:Z7,PowerCircle:$n,PowerCircleIcon:$n,PowerIcon:Z7,PowerOff:K7,PowerOffIcon:K7,PowerSquare:bi,PowerSquareIcon:bi,Presentation:Y7,PresentationIcon:Y7,Printer:eb,PrinterCheck:Q7,PrinterCheckIcon:Q7,PrinterIcon:eb,PrinterX:J7,PrinterXIcon:J7,Projector:tb,ProjectorIcon:tb,Proportions:ob,ProportionsIcon:ob,Puzzle:ab,PuzzleIcon:ab,Pyramid:nb,PyramidIcon:nb,QrCode:rb,QrCodeIcon:rb,Quote:ib,QuoteIcon:ib,Rabbit:lb,RabbitIcon:lb,Radar:sb,RadarIcon:sb,Radiation:db,RadiationIcon:db,Radical:cb,RadicalIcon:cb,Radio:pb,RadioIcon:pb,RadioReceiver:hb,RadioReceiverIcon:hb,RadioTower:ub,RadioTowerIcon:ub,Radius:yb,RadiusIcon:yb,RailSymbol:fb,RailSymbolIcon:fb,Rainbow:mb,RainbowIcon:mb,Rat:kb,RatIcon:kb,Ratio:gb,RatioIcon:gb,Receipt:_b,ReceiptCent:bb,ReceiptCentIcon:bb,ReceiptEuro:Mb,ReceiptEuroIcon:Mb,ReceiptIcon:_b,ReceiptIndianRupee:xb,ReceiptIndianRupeeIcon:xb,ReceiptJapaneseYen:wb,ReceiptJapaneseYenIcon:wb,ReceiptPoundSterling:vb,ReceiptPoundSterlingIcon:vb,ReceiptRussianRuble:Cb,ReceiptRussianRubleIcon:Cb,ReceiptSwissFranc:Lb,ReceiptSwissFrancIcon:Lb,ReceiptText:Sb,ReceiptTextIcon:Sb,ReceiptTurkishLira:Ib,ReceiptTurkishLiraIcon:Ib,RectangleCircle:Ab,RectangleCircleIcon:Ab,RectangleEllipsis:gr,RectangleEllipsisIcon:gr,RectangleGoggles:Bb,RectangleGogglesIcon:Bb,RectangleHorizontal:Vb,RectangleHorizontalIcon:Vb,RectangleVertical:zb,RectangleVerticalIcon:zb,Recycle:Pb,RecycleIcon:Pb,Redo:Db,Redo2:qb,Redo2Icon:qb,RedoDot:Eb,RedoDotIcon:Eb,RedoIcon:Db,RefreshCcw:Hb,RefreshCcwDot:Tb,RefreshCcwDotIcon:Tb,RefreshCcwIcon:Hb,RefreshCw:Ls,RefreshCwIcon:Ls,RefreshCwOff:Ob,RefreshCwOffIcon:Ob,Refrigerator:Fb,RefrigeratorIcon:Fb,Regex:jb,RegexIcon:jb,RemoveFormatting:Nb,RemoveFormattingIcon:Nb,Repeat:$b,Repeat1:Rb,Repeat1Icon:Rb,Repeat2:Wb,Repeat2Icon:Wb,RepeatIcon:$b,Replace:Gb,ReplaceAll:Ub,ReplaceAllIcon:Ub,ReplaceIcon:Gb,Reply:Xb,ReplyAll:Kb,ReplyAllIcon:Kb,ReplyIcon:Xb,Rewind:Yb,RewindIcon:Yb,Ribbon:Zb,RibbonIcon:Zb,Rocket:Qb,RocketIcon:Qb,RockingChair:Jb,RockingChairIcon:Jb,RollerCoaster:eM,RollerCoasterIcon:eM,Rose:tM,RoseIcon:tM,Rotate3D:br,Rotate3DIcon:br,Rotate3d:br,Rotate3dIcon:br,RotateCcw:oM,RotateCcwIcon:oM,RotateCcwKey:aM,RotateCcwKeyIcon:aM,RotateCcwSquare:nM,RotateCcwSquareIcon:nM,RotateCw:iM,RotateCwIcon:iM,RotateCwSquare:rM,RotateCwSquareIcon:rM,Route:lM,RouteIcon:lM,RouteOff:sM,RouteOffIcon:sM,Router:cM,RouterIcon:cM,Rows:Mr,Rows2:Mr,Rows2Icon:Mr,Rows3:xr,Rows3Icon:xr,Rows4:dM,Rows4Icon:dM,RowsIcon:Mr,Rss:hM,RssIcon:hM,Ruler:uM,RulerDimensionLine:pM,RulerDimensionLineIcon:pM,RulerIcon:uM,RussianRuble:yM,RussianRubleIcon:yM,Sailboat:fM,SailboatIcon:fM,Salad:mM,SaladIcon:mM,Sandwich:gM,SandwichIcon:gM,Satellite:bM,SatelliteDish:kM,SatelliteDishIcon:kM,SatelliteIcon:bM,SaudiRiyal:MM,SaudiRiyalIcon:MM,Save:vM,SaveAll:wM,SaveAllIcon:wM,SaveIcon:vM,SaveOff:xM,SaveOffIcon:xM,Scale:CM,Scale3D:wr,Scale3DIcon:wr,Scale3d:wr,Scale3dIcon:wr,ScaleIcon:CM,Scaling:LM,ScalingIcon:LM,Scan:PM,ScanBarcode:SM,ScanBarcodeIcon:SM,ScanEye:IM,ScanEyeIcon:IM,ScanFace:_M,ScanFaceIcon:_M,ScanHeart:AM,ScanHeartIcon:AM,ScanIcon:PM,ScanLine:BM,ScanLineIcon:BM,ScanQrCode:zM,ScanQrCodeIcon:zM,ScanSearch:VM,ScanSearchIcon:VM,ScanText:qM,ScanTextIcon:qM,ScatterChart:gn,ScatterChartIcon:gn,School:DM,School2:Fi,School2Icon:Fi,SchoolIcon:DM,Scissors:HM,ScissorsIcon:HM,ScissorsLineDashed:EM,ScissorsLineDashedIcon:EM,ScissorsSquare:Mi,ScissorsSquareDashedBottom:Rr,ScissorsSquareDashedBottomIcon:Rr,ScissorsSquareIcon:Mi,Scooter:TM,ScooterIcon:TM,ScreenShare:jM,ScreenShareIcon:jM,ScreenShareOff:OM,ScreenShareOffIcon:OM,Scroll:NM,ScrollIcon:NM,ScrollText:FM,ScrollTextIcon:FM,Search:vr,SearchAlert:RM,SearchAlertIcon:RM,SearchCheck:UM,SearchCheckIcon:UM,SearchCode:$M,SearchCodeIcon:$M,SearchIcon:vr,SearchSlash:WM,SearchSlashIcon:WM,SearchX:GM,SearchXIcon:GM,Section:KM,SectionIcon:KM,Send:ZM,SendHorizonal:Cr,SendHorizonalIcon:Cr,SendHorizontal:Cr,SendHorizontalIcon:Cr,SendIcon:ZM,SendToBack:XM,SendToBackIcon:XM,SeparatorHorizontal:YM,SeparatorHorizontalIcon:YM,SeparatorVertical:QM,SeparatorVerticalIcon:QM,Server:yl,ServerCog:JM,ServerCogIcon:JM,ServerCrash:ex,ServerCrashIcon:ex,ServerIcon:yl,ServerOff:ax,ServerOffIcon:ax,Settings:nx,Settings2:tx,Settings2Icon:tx,SettingsIcon:nx,Shapes:ox,ShapesIcon:ox,Share:rx,Share2:fl,Share2Icon:fl,ShareIcon:rx,Sheet:ix,SheetIcon:ix,Shell:sx,ShellIcon:sx,ShelvingUnit:lx,ShelvingUnitIcon:lx,Shield:gx,ShieldAlert:cx,ShieldAlertIcon:cx,ShieldBan:dx,ShieldBanIcon:dx,ShieldCheck:hx,ShieldCheckIcon:hx,ShieldClose:Sr,ShieldCloseIcon:Sr,ShieldEllipsis:ux,ShieldEllipsisIcon:ux,ShieldHalf:px,ShieldHalfIcon:px,ShieldIcon:gx,ShieldMinus:mx,ShieldMinusIcon:mx,ShieldOff:yx,ShieldOffIcon:yx,ShieldPlus:fx,ShieldPlusIcon:fx,ShieldQuestion:Lr,ShieldQuestionIcon:Lr,ShieldQuestionMark:Lr,ShieldQuestionMarkIcon:Lr,ShieldUser:kx,ShieldUserIcon:kx,ShieldX:Sr,ShieldXIcon:Sr,Ship:Mx,ShipIcon:Mx,ShipWheel:bx,ShipWheelIcon:bx,Shirt:xx,ShirtIcon:xx,ShoppingBag:wx,ShoppingBagIcon:wx,ShoppingBasket:vx,ShoppingBasketIcon:vx,ShoppingCart:ml,ShoppingCartIcon:ml,Shovel:Lx,ShovelIcon:Lx,ShowerHead:Cx,ShowerHeadIcon:Cx,Shredder:Sx,ShredderIcon:Sx,Shrimp:Ix,ShrimpIcon:Ix,Shrink:_x,ShrinkIcon:_x,Shrub:Ax,ShrubIcon:Ax,Shuffle:Bx,ShuffleIcon:Bx,Sidebar:dr,SidebarClose:lr,SidebarCloseIcon:lr,SidebarIcon:dr,SidebarOpen:cr,SidebarOpenIcon:cr,Sigma:Vx,SigmaIcon:Vx,SigmaSquare:xi,SigmaSquareIcon:xi,Signal:Ex,SignalHigh:zx,SignalHighIcon:zx,SignalIcon:Ex,SignalLow:Px,SignalLowIcon:Px,SignalMedium:qx,SignalMediumIcon:qx,SignalZero:Dx,SignalZeroIcon:Dx,Signature:Tx,SignatureIcon:Tx,Signpost:Ox,SignpostBig:Hx,SignpostBigIcon:Hx,SignpostIcon:Ox,Siren:jx,SirenIcon:jx,SkipBack:Nx,SkipBackIcon:Nx,SkipForward:Fx,SkipForwardIcon:Fx,Skull:$x,SkullIcon:$x,Slack:Rx,SlackIcon:Rx,Slash:Ux,SlashIcon:Ux,SlashSquare:wi,SlashSquareIcon:wi,Slice:Wx,SliceIcon:Wx,Sliders:Ir,SlidersHorizontal:kl,SlidersHorizontalIcon:kl,SlidersIcon:Ir,SlidersVertical:Ir,SlidersVerticalIcon:Ir,Smartphone:Xx,SmartphoneCharging:Gx,SmartphoneChargingIcon:Gx,SmartphoneIcon:Xx,SmartphoneNfc:Kx,SmartphoneNfcIcon:Kx,Smile:Yx,SmileIcon:Yx,SmilePlus:Zx,SmilePlusIcon:Zx,Snail:Qx,SnailIcon:Qx,Snowflake:Jx,SnowflakeIcon:Jx,SoapDispenserDroplet:e9,SoapDispenserDropletIcon:e9,Sofa:t9,SofaIcon:t9,SolarPanel:a9,SolarPanelIcon:a9,SortAsc:Xa,SortAscIcon:Xa,SortDesc:Wa,SortDescIcon:Wa,Soup:n9,SoupIcon:n9,Space:o9,SpaceIcon:o9,Spade:r9,SpadeIcon:r9,Sparkle:i9,SparkleIcon:i9,Sparkles:_r,SparklesIcon:_r,Speaker:s9,SpeakerIcon:s9,Speech:l9,SpeechIcon:l9,SpellCheck:h9,SpellCheck2:c9,SpellCheck2Icon:c9,SpellCheckIcon:h9,Spline:u9,SplineIcon:u9,SplinePointer:d9,SplinePointerIcon:d9,Split:p9,SplitIcon:p9,SplitSquareHorizontal:vi,SplitSquareHorizontalIcon:vi,SplitSquareVertical:Ci,SplitSquareVerticalIcon:Ci,Spool:y9,SpoolIcon:y9,Spotlight:f9,SpotlightIcon:f9,SprayCan:m9,SprayCanIcon:m9,Sprout:k9,SproutIcon:k9,Square:V9,SquareActivity:Ar,SquareActivityIcon:Ar,SquareArrowDown:zr,SquareArrowDownIcon:zr,SquareArrowDownLeft:Br,SquareArrowDownLeftIcon:Br,SquareArrowDownRight:Vr,SquareArrowDownRightIcon:Vr,SquareArrowLeft:Pr,SquareArrowLeftIcon:Pr,SquareArrowOutDownLeft:qr,SquareArrowOutDownLeftIcon:qr,SquareArrowOutDownRight:Dr,SquareArrowOutDownRightIcon:Dr,SquareArrowOutUpLeft:Er,SquareArrowOutUpLeftIcon:Er,SquareArrowOutUpRight:Tr,SquareArrowOutUpRightIcon:Tr,SquareArrowRight:Hr,SquareArrowRightEnter:g9,SquareArrowRightEnterIcon:g9,SquareArrowRightExit:b9,SquareArrowRightExitIcon:b9,SquareArrowRightIcon:Hr,SquareArrowUp:Fr,SquareArrowUpIcon:Fr,SquareArrowUpLeft:jr,SquareArrowUpLeftIcon:jr,SquareArrowUpRight:Or,SquareArrowUpRightIcon:Or,SquareAsterisk:Nr,SquareAsteriskIcon:Nr,SquareBottomDashedScissors:Rr,SquareBottomDashedScissorsIcon:Rr,SquareCenterlineDashedHorizontal:$r,SquareCenterlineDashedHorizontalIcon:$r,SquareCenterlineDashedVertical:Ur,SquareCenterlineDashedVerticalIcon:Ur,SquareChartGantt:$t,SquareChartGanttIcon:$t,SquareCheck:Gr,SquareCheckBig:Wr,SquareCheckBigIcon:Wr,SquareCheckIcon:Gr,SquareChevronDown:Kr,SquareChevronDownIcon:Kr,SquareChevronLeft:Xr,SquareChevronLeftIcon:Xr,SquareChevronRight:Zr,SquareChevronRightIcon:Zr,SquareChevronUp:Yr,SquareChevronUpIcon:Yr,SquareCode:Qr,SquareCodeIcon:Qr,SquareDashed:ti,SquareDashedBottom:x9,SquareDashedBottomCode:M9,SquareDashedBottomCodeIcon:M9,SquareDashedBottomIcon:x9,SquareDashedIcon:ti,SquareDashedKanban:Jr,SquareDashedKanbanIcon:Jr,SquareDashedMousePointer:ei,SquareDashedMousePointerIcon:ei,SquareDashedTopSolid:w9,SquareDashedTopSolidIcon:w9,SquareDivide:ni,SquareDivideIcon:ni,SquareDot:ai,SquareDotIcon:ai,SquareEqual:oi,SquareEqualIcon:oi,SquareFunction:ri,SquareFunctionIcon:ri,SquareGanttChart:$t,SquareGanttChartIcon:$t,SquareIcon:V9,SquareKanban:ii,SquareKanbanIcon:ii,SquareLibrary:si,SquareLibraryIcon:si,SquareM:li,SquareMIcon:li,SquareMenu:ci,SquareMenuIcon:ci,SquareMinus:di,SquareMinusIcon:di,SquareMousePointer:hi,SquareMousePointerIcon:hi,SquareParking:pi,SquareParkingIcon:pi,SquareParkingOff:ui,SquareParkingOffIcon:ui,SquarePause:v9,SquarePauseIcon:v9,SquarePen:at,SquarePenIcon:at,SquarePercent:yi,SquarePercentIcon:yi,SquarePi:fi,SquarePiIcon:fi,SquarePilcrow:mi,SquarePilcrowIcon:mi,SquarePlay:ki,SquarePlayIcon:ki,SquarePlus:gi,SquarePlusIcon:gi,SquarePower:bi,SquarePowerIcon:bi,SquareRadical:L9,SquareRadicalIcon:L9,SquareRoundCorner:C9,SquareRoundCornerIcon:C9,SquareScissors:Mi,SquareScissorsIcon:Mi,SquareSigma:xi,SquareSigmaIcon:xi,SquareSlash:wi,SquareSlashIcon:wi,SquareSplitHorizontal:vi,SquareSplitHorizontalIcon:vi,SquareSplitVertical:Ci,SquareSplitVerticalIcon:Ci,SquareSquare:S9,SquareSquareIcon:S9,SquareStack:I9,SquareStackIcon:I9,SquareStar:A9,SquareStarIcon:A9,SquareStop:_9,SquareStopIcon:_9,SquareTerminal:Li,SquareTerminalIcon:Li,SquareUser:_i,SquareUserIcon:_i,SquareUserRound:Si,SquareUserRoundIcon:Si,SquareX:Ii,SquareXIcon:Ii,SquaresExclude:B9,SquaresExcludeIcon:B9,SquaresIntersect:z9,SquaresIntersectIcon:z9,SquaresSubtract:P9,SquaresSubtractIcon:P9,SquaresUnite:q9,SquaresUniteIcon:q9,Squircle:E9,SquircleDashed:D9,SquircleDashedIcon:D9,SquircleIcon:E9,Squirrel:T9,SquirrelIcon:T9,Stamp:H9,StampIcon:H9,Star:N9,StarHalf:O9,StarHalfIcon:O9,StarIcon:N9,StarOff:j9,StarOffIcon:j9,Stars:_r,StarsIcon:_r,StepBack:F9,StepBackIcon:F9,StepForward:R9,StepForwardIcon:R9,Stethoscope:$9,StethoscopeIcon:$9,Sticker:U9,StickerIcon:U9,StickyNote:W9,StickyNoteIcon:W9,Stone:G9,StoneIcon:G9,StopCircle:Wn,StopCircleIcon:Wn,Store:K9,StoreIcon:K9,StretchHorizontal:Z9,StretchHorizontalIcon:Z9,StretchVertical:X9,StretchVerticalIcon:X9,Strikethrough:Y9,StrikethroughIcon:Y9,Subscript:Q9,SubscriptIcon:Q9,Subtitles:on,SubtitlesIcon:on,Sun:nw,SunDim:J9,SunDimIcon:J9,SunIcon:nw,SunMedium:ew,SunMediumIcon:ew,SunMoon:aw,SunMoonIcon:aw,SunSnow:tw,SunSnowIcon:tw,Sunrise:ow,SunriseIcon:ow,Sunset:rw,SunsetIcon:rw,Superscript:iw,SuperscriptIcon:iw,SwatchBook:sw,SwatchBookIcon:sw,SwissFranc:lw,SwissFrancIcon:lw,SwitchCamera:dw,SwitchCameraIcon:dw,Sword:cw,SwordIcon:cw,Swords:hw,SwordsIcon:hw,Syringe:uw,SyringeIcon:uw,Table:xw,Table2:pw,Table2Icon:pw,TableCellsMerge:yw,TableCellsMergeIcon:yw,TableCellsSplit:fw,TableCellsSplitIcon:fw,TableColumnsSplit:mw,TableColumnsSplitIcon:mw,TableConfig:Ot,TableConfigIcon:Ot,TableIcon:xw,TableOfContents:kw,TableOfContentsIcon:kw,TableProperties:gw,TablePropertiesIcon:gw,TableRowsSplit:bw,TableRowsSplitIcon:bw,Tablet:Mw,TabletIcon:Mw,TabletSmartphone:ww,TabletSmartphoneIcon:ww,Tablets:vw,TabletsIcon:vw,Tag:Cw,TagIcon:Cw,Tags:Lw,TagsIcon:Lw,Tally1:Sw,Tally1Icon:Sw,Tally2:Iw,Tally2Icon:Iw,Tally3:_w,Tally3Icon:_w,Tally4:Aw,Tally4Icon:Aw,Tally5:Bw,Tally5Icon:Bw,Tangent:Vw,TangentIcon:Vw,Target:zw,TargetIcon:zw,Telescope:Pw,TelescopeIcon:Pw,Tent:Dw,TentIcon:Dw,TentTree:qw,TentTreeIcon:qw,Terminal:Ew,TerminalIcon:Ew,TerminalSquare:Li,TerminalSquareIcon:Li,TestTube:Tw,TestTube2:Ai,TestTube2Icon:Ai,TestTubeDiagonal:Ai,TestTubeDiagonalIcon:Ai,TestTubeIcon:Tw,TestTubes:Hw,TestTubesIcon:Hw,Text:Ut,TextAlignCenter:zi,TextAlignCenterIcon:zi,TextAlignEnd:Bi,TextAlignEndIcon:Bi,TextAlignJustify:Vi,TextAlignJustifyIcon:Vi,TextAlignStart:Ut,TextAlignStartIcon:Ut,TextCursor:jw,TextCursorIcon:jw,TextCursorInput:Ow,TextCursorInputIcon:Ow,TextIcon:Ut,TextInitial:Pi,TextInitialIcon:Pi,TextQuote:Nw,TextQuoteIcon:Nw,TextSearch:Fw,TextSearchIcon:Fw,TextSelect:Di,TextSelectIcon:Di,TextSelection:Di,TextSelectionIcon:Di,TextWrap:qi,TextWrapIcon:qi,Theater:Rw,TheaterIcon:Rw,Thermometer:Ww,ThermometerIcon:Ww,ThermometerSnowflake:$w,ThermometerSnowflakeIcon:$w,ThermometerSun:Uw,ThermometerSunIcon:Uw,ThumbsDown:Kw,ThumbsDownIcon:Kw,ThumbsUp:Gw,ThumbsUpIcon:Gw,Ticket:av,TicketCheck:Xw,TicketCheckIcon:Xw,TicketIcon:av,TicketMinus:Zw,TicketMinusIcon:Zw,TicketPercent:Yw,TicketPercentIcon:Yw,TicketPlus:Qw,TicketPlusIcon:Qw,TicketSlash:Jw,TicketSlashIcon:Jw,TicketX:ev,TicketXIcon:ev,Tickets:nv,TicketsIcon:nv,TicketsPlane:tv,TicketsPlaneIcon:tv,Timer:iv,TimerIcon:iv,TimerOff:ov,TimerOffIcon:ov,TimerReset:rv,TimerResetIcon:rv,ToggleLeft:gl,ToggleLeftIcon:gl,ToggleRight:sv,ToggleRightIcon:sv,Toilet:lv,ToiletIcon:lv,ToolCase:cv,ToolCaseIcon:cv,Toolbox:dv,ToolboxIcon:dv,Tornado:hv,TornadoIcon:hv,Torus:uv,TorusIcon:uv,Touchpad:yv,TouchpadIcon:yv,TouchpadOff:pv,TouchpadOffIcon:pv,TowelRack:fv,TowelRackIcon:fv,TowerControl:mv,TowerControlIcon:mv,ToyBrick:kv,ToyBrickIcon:kv,Tractor:gv,TractorIcon:gv,TrafficCone:bv,TrafficConeIcon:bv,Train:Ei,TrainFront:vv,TrainFrontIcon:vv,TrainFrontTunnel:Mv,TrainFrontTunnelIcon:Mv,TrainIcon:Ei,TrainTrack:xv,TrainTrackIcon:xv,TramFront:Ei,TramFrontIcon:Ei,Transgender:wv,TransgenderIcon:wv,Trash:Cv,Trash2:Ti,Trash2Icon:Ti,TrashIcon:Cv,TreeDeciduous:Lv,TreeDeciduousIcon:Lv,TreePalm:Hi,TreePalmIcon:Hi,TreePine:Sv,TreePineIcon:Sv,Trees:Iv,TreesIcon:Iv,Trello:_v,TrelloIcon:_v,TrendingDown:Av,TrendingDownIcon:Av,TrendingUp:Vv,TrendingUpDown:Bv,TrendingUpDownIcon:Bv,TrendingUpIcon:Vv,Triangle:Dv,TriangleAlert:Oi,TriangleAlertIcon:Oi,TriangleDashed:zv,TriangleDashedIcon:zv,TriangleIcon:Dv,TriangleRight:qv,TriangleRightIcon:qv,Trophy:Pv,TrophyIcon:Pv,Truck:Tv,TruckElectric:Ev,TruckElectricIcon:Ev,TruckIcon:Tv,TurkishLira:Hv,TurkishLiraIcon:Hv,Turntable:Ov,TurntableIcon:Ov,Turtle:jv,TurtleIcon:jv,Tv:Nv,Tv2:ji,Tv2Icon:ji,TvIcon:Nv,TvMinimal:ji,TvMinimalIcon:ji,TvMinimalPlay:Fv,TvMinimalPlayIcon:Fv,Twitch:Rv,TwitchIcon:Rv,Twitter:Uv,TwitterIcon:Uv,Type:Wv,TypeIcon:Wv,TypeOutline:$v,TypeOutlineIcon:$v,Umbrella:Kv,UmbrellaIcon:Kv,UmbrellaOff:Gv,UmbrellaOffIcon:Gv,Underline:Xv,UnderlineIcon:Xv,Undo:Yv,Undo2:Zv,Undo2Icon:Zv,UndoDot:Qv,UndoDotIcon:Qv,UndoIcon:Yv,UnfoldHorizontal:Jv,UnfoldHorizontalIcon:Jv,UnfoldVertical:eC,UnfoldVerticalIcon:eC,Ungroup:tC,UngroupIcon:tC,University:Fi,UniversityIcon:Fi,Unlink:nC,Unlink2:aC,Unlink2Icon:aC,UnlinkIcon:nC,Unlock:Zo,UnlockIcon:Zo,UnlockKeyhole:Xo,UnlockKeyholeIcon:Xo,Unplug:oC,UnplugIcon:oC,Upload:rC,UploadCloud:ba,UploadCloudIcon:ba,UploadIcon:rC,Usb:iC,UsbIcon:iC,User:bl,User2:Gi,User2Icon:Gi,UserCheck:sC,UserCheck2:Ni,UserCheck2Icon:Ni,UserCheckIcon:sC,UserCircle:Kn,UserCircle2:Gn,UserCircle2Icon:Gn,UserCircleIcon:Kn,UserCog:lC,UserCog2:Ri,UserCog2Icon:Ri,UserCogIcon:lC,UserIcon:bl,UserKey:cC,UserKeyIcon:cC,UserLock:dC,UserLockIcon:dC,UserMinus:hC,UserMinus2:$i,UserMinus2Icon:$i,UserMinusIcon:hC,UserPen:uC,UserPenIcon:uC,UserPlus:pC,UserPlus2:Ui,UserPlus2Icon:Ui,UserPlusIcon:pC,UserRound:Gi,UserRoundCheck:Ni,UserRoundCheckIcon:Ni,UserRoundCog:Ri,UserRoundCogIcon:Ri,UserRoundIcon:Gi,UserRoundKey:yC,UserRoundKeyIcon:yC,UserRoundMinus:$i,UserRoundMinusIcon:$i,UserRoundPen:fC,UserRoundPenIcon:fC,UserRoundPlus:Ui,UserRoundPlusIcon:Ui,UserRoundSearch:mC,UserRoundSearchIcon:mC,UserRoundX:Wi,UserRoundXIcon:Wi,UserSearch:gC,UserSearchIcon:gC,UserSquare:_i,UserSquare2:Si,UserSquare2Icon:Si,UserSquareIcon:_i,UserStar:kC,UserStarIcon:kC,UserX:bC,UserX2:Wi,UserX2Icon:Wi,UserXIcon:bC,Users:MC,Users2:Ki,Users2Icon:Ki,UsersIcon:MC,UsersRound:Ki,UsersRoundIcon:Ki,Utensils:Zi,UtensilsCrossed:Xi,UtensilsCrossedIcon:Xi,UtensilsIcon:Zi,UtilityPole:xC,UtilityPoleIcon:xC,Van:wC,VanIcon:wC,Variable:CC,VariableIcon:CC,Vault:vC,VaultIcon:vC,VectorSquare:LC,VectorSquareIcon:LC,Vegan:SC,VeganIcon:SC,VenetianMask:IC,VenetianMaskIcon:IC,Venus:_C,VenusAndMars:AC,VenusAndMarsIcon:AC,VenusIcon:_C,Verified:Qa,VerifiedIcon:Qa,Vibrate:VC,VibrateIcon:VC,VibrateOff:BC,VibrateOffIcon:BC,Video:PC,VideoIcon:PC,VideoOff:zC,VideoOffIcon:zC,Videotape:qC,VideotapeIcon:qC,View:DC,ViewIcon:DC,Voicemail:EC,VoicemailIcon:EC,Volleyball:OC,VolleyballIcon:OC,Volume:FC,Volume1:TC,Volume1Icon:TC,Volume2:HC,Volume2Icon:HC,VolumeIcon:FC,VolumeOff:jC,VolumeOffIcon:jC,VolumeX:NC,VolumeXIcon:NC,Vote:RC,VoteIcon:RC,Wallet:UC,Wallet2:Yi,Wallet2Icon:Yi,WalletCards:$C,WalletCardsIcon:$C,WalletIcon:UC,WalletMinimal:Yi,WalletMinimalIcon:Yi,Wallpaper:WC,WallpaperIcon:WC,Wand:GC,Wand2:Qi,Wand2Icon:Qi,WandIcon:GC,WandSparkles:Qi,WandSparklesIcon:Qi,Warehouse:KC,WarehouseIcon:KC,WashingMachine:XC,WashingMachineIcon:XC,Watch:ZC,WatchIcon:ZC,Waves:eL,WavesArrowDown:YC,WavesArrowDownIcon:YC,WavesArrowUp:QC,WavesArrowUpIcon:QC,WavesIcon:eL,WavesLadder:JC,WavesLadderIcon:JC,Waypoints:tL,WaypointsIcon:tL,Webcam:aL,WebcamIcon:aL,Webhook:oL,WebhookIcon:oL,WebhookOff:nL,WebhookOffIcon:nL,Weight:iL,WeightIcon:iL,WeightTilde:rL,WeightTildeIcon:rL,Wheat:lL,WheatIcon:lL,WheatOff:sL,WheatOffIcon:sL,WholeWord:cL,WholeWordIcon:cL,Wifi:kL,WifiCog:dL,WifiCogIcon:dL,WifiHigh:hL,WifiHighIcon:hL,WifiIcon:kL,WifiLow:pL,WifiLowIcon:pL,WifiOff:uL,WifiOffIcon:uL,WifiPen:yL,WifiPenIcon:yL,WifiSync:fL,WifiSyncIcon:fL,WifiZero:mL,WifiZeroIcon:mL,Wind:gL,WindArrowDown:bL,WindArrowDownIcon:bL,WindIcon:gL,Wine:ML,WineIcon:ML,WineOff:xL,WineOffIcon:xL,Workflow:wL,WorkflowIcon:wL,Worm:vL,WormIcon:vL,WrapText:qi,WrapTextIcon:qi,Wrench:CL,WrenchIcon:CL,X:pt,XCircle:Xn,XCircleIcon:Xn,XIcon:pt,XLineTop:LL,XLineTopIcon:LL,XOctagon:or,XOctagonIcon:or,XSquare:Ii,XSquareIcon:Ii,Youtube:SL,YoutubeIcon:SL,Zap:AL,ZapIcon:AL,ZapOff:IL,ZapOffIcon:IL,ZoomIn:_L,ZoomInIcon:_L,ZoomOut:BL,ZoomOutIcon:BL,createLucideIcon:l,icons:pD},Symbol.toStringTag,{value:"Module"})),yD=["aria-busy"],fD={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},mD=["for"],kD={key:0,class:"ml-1 text-destructive"},gD={class:"relative"},bD={key:0,class:"flex items-center text-gray-500 gap-2"},MD=["id","placeholder","disabled","readonly","value"],xD={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},wD=["disabled"],vD={class:"overflow-y-auto overflow-x-hidden",style:{"max-height":"350px"}},CD=["onMouseenter","onClick"],LD={key:0},SD={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},ID={key:0},_D={key:1},AD={key:2},BD={key:1,class:"mt-1 text-xs text-red-600"},sI=a.defineComponent({name:"DCodeAutoComplete",inheritAttrs:!1,__name:"DCodeAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{default:()=>({})},fetchItems:{},icon:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.computed(()=>r.label??void 0),s=$=>{const ae=r[$];return ae===""||ae===!0||ae==="true"||ae===1||ae==="1"},c=a.ref(!1),d=a.computed(()=>n.itemTitle||r["item-title"]||r.itemTitle||"name"),h=a.computed(()=>n.itemValue||r["item-value"]||r.itemValue||"id"),u=a.computed(()=>n.disabled),p=a.computed(()=>s("required")),y=a.computed(()=>s("readonly")),f=a.computed(()=>n.returnObject||s("return-object")||s("returnObject")),m=a.computed(()=>p.value||s("aria-required")),k=a.computed(()=>n.error||n.errorMessage||r["error-message"]),g=a.computed(()=>r.placeholder??""),x=a.computed(()=>{const $=r.minChars??r["min-chars"];if($==null||$==="")return 0;const ae=typeof $=="number"?$:Number.parseInt(String($),10);return Number.isFinite(ae)&&ae>0?ae:0}),C=a.computed(()=>{const $=r.rules;return Array.isArray($)?$:[]}),v=a.computed(()=>{const $=r.id||r.label;return $?`app-autocomplete-${$}-${Math.random().toString(36).slice(2,7)}`:void 0}),b=a.ref(n.modelValue),L=a.ref([]),S=a.ref(!1),M=a.ref(!1),w=a.computed(()=>r.items),I=a.computed(()=>{const $=E.value;return $.apiModule&&$.apiAction||$.apiUrl||n.fetchItems?L.value:w.value??[]}),z=a.computed(()=>!!r.loading),B=a.computed(()=>z.value||S.value),A=a.computed(()=>{const{label:$,items:ae,loading:de,rules:xe,"item-title":De,"item-value":Z,itemTitle:te,itemValue:ne,minChars:fe,"min-chars":He,clearable:Vt,required:GP,"aria-required":FS,disabled:KP,readonly:Je,visible:XP,"return-object":NS,returnObject:ZP,class:RS,"fetch-items":YP,fetchItems:$_,error:QP,errorMessage:JP,"error-message":U_,...W_}=r||{};return W_}),V=()=>{if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions},E=a.computed(()=>{const $=n.endpoint||{};return{apiModule:n.apiModule||$.apiModule,apiAction:n.apiAction||$.apiAction,apiUrl:$.apiUrl,apiMethod:$.apiMethod||"GET"}}),W=a.ref(null),H=a.ref(null),O=a.ref(null),{floatingStyles:U}=y1(H,O,{placement:"bottom-start",whileElementsMounted:d1,middleware:[h1(4),Zs(),u1(),p1({apply({rects:$,elements:ae,availableHeight:de}){Object.assign(ae.floating.style,{width:`${$.reference.width}px`,maxHeight:`${de}px`})}})]}),J=a.ref(!1),T=a.ref(""),F=a.ref(-1),N=a.ref(null),Y=a.computed(()=>!x.value||(T.value||"").trim().length>=x.value?"":`Ketik minimal ${x.value} karakter`),Q=$=>{if($==null)return"";if(typeof $=="string"||typeof $=="number")return String($);const ae=d.value;return typeof ae=="function"?ae($):($==null?void 0:$[ae])??($==null?void 0:$.name)??($==null?void 0:$.nama)??($==null?void 0:$.label)??($==null?void 0:$.title)??"-"},ie=$=>{if($==null)return null;if(typeof $=="string"||typeof $=="number")return $;const ae=h.value;return typeof ae=="function"?ae($):($==null?void 0:$[ae])??($==null?void 0:$.id)??($==null?void 0:$.value)??($==null?void 0:$.code)??null},ue=a.computed(()=>{const $=b.value;if($==null||$==="")return"";if(Array.isArray($))return $.length?$.map(xe=>{if(f.value&&typeof xe=="object"||typeof xe=="object")return Q(xe);const De=I.value.find(Z=>ie(Z)==xe);return De?Q(De):String(xe)}).join(", "):"";if(typeof $=="object")return Q($);const ae=I.value.find(de=>ie(de)==$);return ae?Q(ae):String($)}),pe=a.computed(()=>{const $=I.value||[],ae=(T.value||"").trim().toLowerCase(),de=(ue.value||"").toLowerCase(),xe=!ae||ae===de;let De=$;if(xe||(De=$.filter(Z=>Q(Z).toLowerCase().includes(ae))),De.length>0){const Z=te=>{const ne=ie(te);return Array.isArray(b.value)?b.value.some(fe=>fe==ne):b.value==ne};De=[...De].sort((te,ne)=>{const fe=Z(te),He=Z(ne);return fe&&!He?-1:!fe&&He?1:0})}return De}),Ie=$=>Array.isArray($)?$.length===0:$==null||$==="",ce=$=>{if(N.value=null,p.value&&Ie($)&&!C.value.length)return N.value="This field is required",!1;for(const ae of C.value){const de=ae($);if(de===!1)return N.value="Invalid value",!1;if(typeof de=="string")return N.value=de,!1}return!0},X=async()=>{if(u.value||y.value)return;J.value=!0,F.value=pe.value.length?0:-1,T.value=ue.value||"";const $=E.value,ae=$.apiModule&&$.apiAction||$.apiUrl||n.fetchItems;n.autoFetchOnOpen&&ae&&!M.value&&(await At(),F.value=pe.value.length?0:-1)},P=()=>{J.value=!1,F.value=-1,T.value=ue.value||""},R=$=>{const ae=f.value?$:ie($);let de=ae;Array.isArray(b.value)&&(de=[ae]),b.value=de,o("update:modelValue",de),N.value=null,ce(de),T.value=Q($),P()},ee=()=>{L.value=[],M.value=!1,b.value=Array.isArray(b.value)?[]:null,o("update:modelValue",b.value),T.value="",N.value=null},ye=()=>{c.value=!0,ee(),P(),setTimeout(()=>{c.value=!1},0)},Ne=$=>{if(u.value||y.value)return;const ae=$.target.value;T.value=ae,N.value&&(N.value=null),J.value||(J.value=!0),F.value=pe.value.length?0:-1;const de=E.value.apiModule&&E.value.apiAction||E.value.apiUrl||n.fetchItems;n.autoFetchOnOpen&&de&&!B.value&&!M.value&&At()},ut=$=>{var de;if(u.value||y.value)return;const ae={ArrowDown:()=>{if($.preventDefault(),!J.value){X();return}pe.value.length&&(F.value=Math.min(F.value+1,pe.value.length-1))},ArrowUp:()=>{!J.value||!pe.value.length||($.preventDefault(),F.value=Math.max(F.value-1,0))},Enter:()=>{if(!J.value)return;$.preventDefault();const xe=pe.value[F.value];xe&&R(xe)},Escape:()=>{$.preventDefault(),P()},Tab:()=>{P()}};(de=ae[$.key])==null||de.call(ae)},At=async()=>{const $=E.value;if($.apiModule&&$.apiAction||$.apiUrl||n.fetchItems){S.value=!0;try{let de;if(n.fetchItems){const xe=V()||{},De={page:1,perPage:100,search:(T.value||"").trim(),...xe,...n.apiParams},Z=await n.fetchItems(De),te=(Z==null?void 0:Z.data)??Z;de=(te==null?void 0:te.data)??te}else{const De=et().DCodeApi;if(typeof De!="function"){console.error("[DCodeAutoComplete] useApi() must expose DCodeApi()");return}const te={page:1,perPage:100,...V()||{},...n.apiParams};let ne;$.apiUrl?ne=await De("","",te,{_url:$.apiUrl,_method:$.apiMethod||"POST"}):ne=await De($.apiModule,$.apiAction,te);const fe=(ne==null?void 0:ne.data)??ne;de=(fe==null?void 0:fe.data)??fe}L.value=Array.isArray(de)?de:[],M.value=!0}catch(de){console.error("[DCodeAutoComplete][fetchOptions] ERROR:",de),N.value=`[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(de==null?void 0:de.message)||(de==null?void 0:de.toString())||"Failed to load options"}`,L.value=[],M.value=!0}finally{S.value=!1}}},Bt=$=>{const ae=ie($);return f.value?b.value?Array.isArray(b.value)?b.value.some(de=>ie(de)==ae):ie(b.value)==ae:!1:Array.isArray(b.value)?b.value.some(de=>de==ae):b.value==ae};a.watch(()=>[V(),E.value,n.apiParams],([$,ae,de],[xe,De,Z])=>{const te=E.value;if(!(te.apiModule&&te.apiAction||te.apiUrl||n.fetchItems)){ee();return}const fe=JSON.stringify($??null)===JSON.stringify(xe??null),He=JSON.stringify(de??null)===JSON.stringify(Z??null);fe&&He||(ee(),He||At())},{deep:!0}),a.watch(()=>n.modelValue,($,ae)=>{b.value=$,!c.value&&($==null||$==="")&&ae!=null&&n.apiModule&&n.apiAction&&(L.value=[],M.value=!1),T.value=ue.value||""},{immediate:!0});const Ha=E.value;(Ha.apiModule&&Ha.apiAction||Ha.apiUrl||n.fetchItems)&&(n.autoFetchOnMount||!Ie(n.modelValue))&&At();const Gs=$=>{const ae=W.value,de=O.value,xe=$.target;ae&&ae.contains(xe)||de&&de.contains(xe)||J.value&&P()},Jl=a.computed(()=>{const $=n.modelValue;return $==null?!1:typeof $=="string"?$.trim().length>0:Array.isArray($)?$.length>0:typeof $=="object"?Object.keys($).length>0:!0}),xt=a.computed(()=>!!n.clearable&&Jl.value&&!n.disabled);return a.onMounted(()=>{document.addEventListener("mousedown",Gs)}),a.onBeforeUnmount(()=>{document.removeEventListener("mousedown",Gs)}),($,ae)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:W,class:a.normalizeClass(["w-full",a.unref(r).class]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",fD)):a.createCommentVNode("",!0),ae[6]||(ae[6]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createElementBlock("label",{key:0,for:v.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[a.createTextVNode(a.toDisplayString(i.value)+" ",1),m.value?(a.openBlock(),a.createElementBlock("span",kD,"*")):a.createCommentVNode("",!0)],8,mD)):a.createCommentVNode("",!0),a.createElementVNode("div",gD,[a.createElementVNode("div",{ref_key:"reference",ref:H,class:a.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[u.value||y.value?"opacity-60 cursor-not-allowed":"",N.value||k.value?"border-red-500 focus-within:ring-red-500":""]])},[n.icon||$.$slots["prepend-inner"]?(a.openBlock(),a.createElementBlock("div",bD,[a.renderSlot($.$slots,"prepend-inner",{},()=>[n.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),a.createElementVNode("input",a.mergeProps(A.value,{id:v.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",u.value||y.value?"cursor-not-allowed":"cursor-text"],placeholder:g.value,disabled:u.value,readonly:y.value,value:J.value?T.value:ue.value||T.value,onFocus:ae[0]||(ae[0]=()=>{J.value||X()}),onClick:ae[1]||(ae[1]=()=>{J.value||X()}),onInput:Ne,onKeydown:ut,onBlur:ae[2]||(ae[2]=()=>ce(b.value))}),null,16,MD),B.value?(a.openBlock(),a.createElementBlock("svg",xD,[...ae[7]||(ae[7]=[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):xt.value?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:ae[3]||(ae[3]=a.withModifiers(()=>{},["prevent"])),onClick:a.withModifiers(ye,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(a.openBlock(),a.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:u.value||y.value,onClick:ae[4]||(ae[4]=de=>J.value?P():X()),"aria-label":"Toggle"},[a.createVNode(a.unref(Et),{class:a.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":J.value}])},null,8,["class"])],8,wD))],2),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[J.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floating",ref:O,style:a.normalizeStyle(a.unref(U)),class:"z-[50] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[a.createElementVNode("div",vD,[pe.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(pe.value,(de,xe)=>(a.openBlock(),a.createElementBlock("button",{key:ie(de)??xe,type:"button",class:a.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",xe===F.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:De=>F.value=xe,onMousedown:ae[5]||(ae[5]=a.withModifiers(()=>{},["prevent"])),onClick:De=>R(de)},[a.createTextVNode(a.toDisplayString(Q(de))+" ",1),Bt(de)?(a.openBlock(),a.createElementBlock("span",LD," ✓ ")):a.createCommentVNode("",!0)],42,CD))),128)):a.renderSlot($.$slots,"no-data",{key:1},()=>[a.createElementVNode("div",SD,[B.value?(a.openBlock(),a.createElementBlock("span",ID,"Loading data…")):Y.value?(a.openBlock(),a.createElementBlock("span",_D,a.toDisplayString(Y.value),1)):(a.openBlock(),a.createElementBlock("span",AD,"No data available"))])])])],4)):a.createCommentVNode("",!0)]))]),N.value||k.value?(a.openBlock(),a.createElementBlock("p",BD,a.toDisplayString(N.value||k.value),1)):a.createCommentVNode("",!0)],64))],10,yD)),[[a.vShow,e.visible]])}}),VD=["aria-busy"],zD={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},PD=["for"],qD={key:0,class:"ml-1 text-destructive"},DD={class:"relative"},ED={key:0,class:"flex items-center text-gray-500 gap-2"},TD=["id","placeholder","disabled","value"],HD={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},OD=["disabled"],jD={key:0,class:"p-3 space-y-2"},FD=["onMouseenter","onClick"],ND={class:"flex items-center space-x-3"},RD={class:"flex-1"},$D={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},UD={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},WD={key:0},GD={key:2,class:"p-3 text-center"},KD={class:"inline-flex items-center space-x-2"},XD={class:"text-sm text-gray-500"},ZD={key:3,class:"p-3 text-center"},YD={class:"text-xs text-gray-400"},QD={key:4,class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},JD={key:1,class:"mt-1 text-xs text-red-600"},eE={key:2,class:"mt-1 text-xs text-gray-500"},MA=a.defineComponent({name:"DCodeInfiniteAutoComplete",inheritAttrs:!1,__name:"DCodeInfiniteAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},refreshOnOpen:{type:Boolean,default:!1},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},itemSubtitle:{},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{},fetchItems:{},icon:{},label:{},placeholder:{default:"Select an option"},required:{type:Boolean,default:!1},inputType:{default:"text"},helperText:{default:""},noResultsText:{default:"No results found"},loadingText:{default:"Loading more..."},endOfResultsText:{default:"End of results"},pageSize:{default:10},threshold:{default:100},debounceMs:{default:300}},emits:["update:modelValue","focus","blur","select","search","load-more","end-of-results","error"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.ref(),s=a.ref(),c=a.ref(),d=a.ref(),h=a.ref(),u=a.computed(()=>{const F=n.label||n.placeholder;return F?`app-infinite-autocomplete-${F}-${Math.random().toString(36).slice(2,7)}`:void 0}),p=a.ref(""),y=a.ref([]),f=a.ref(!1),m=a.ref(!1),k=a.ref(-1),g=a.ref(1),x=a.ref(!0),C=a.ref(0),v=a.ref(),{floatingStyles:b}=y1(d,h,{placement:"bottom-start",whileElementsMounted:d1,middleware:[h1(4),Zs(),u1(),p1({apply({rects:F,elements:N}){Object.assign(N.floating.style,{width:`${F.reference.width}px`})}})]});a.computed(()=>({"opacity-50 pointer-events-none":n.disabled,relative:!0}));const L=a.computed(()=>p.value?y.value.filter(F=>I(F).toLowerCase().includes(p.value.toLowerCase())):y.value),S=a.computed(()=>{if(m.value&&p.value)return p.value;if(n.modelValue){if(n.returnObject)return I(n.modelValue);{const F=y.value.find(N=>z(N)===n.modelValue);return F?I(F):String(n.modelValue)}}return""}),M=()=>{m.value=!0},w=()=>{m.value=!1},I=F=>typeof n.itemTitle=="function"?n.itemTitle(F):F[n.itemTitle]||"",z=F=>typeof n.itemValue=="function"?n.itemValue(F):F[n.itemValue]||F,B=F=>n.itemSubtitle?typeof n.itemSubtitle=="function"?n.itemSubtitle(F):F[n.itemSubtitle]||"":"",A=F=>n.modelValue?n.returnObject?z(F)===z(n.modelValue):z(F)===n.modelValue:!1,V=F=>{var Y;const N=n.returnObject?F:z(F);o("update:modelValue",N),o("select",F),m.value=!1,p.value="",(Y=i.value)==null||Y.blur()},E=()=>{var F;o("update:modelValue",null),p.value="",(F=i.value)==null||F.focus()},W=F=>{m.value=!0,o("focus",F),n.autoFetchOnOpen&&!f.value&&(n.refreshOnOpen||y.value.length===0)&&T(!0)},H=F=>{setTimeout(()=>{m.value=!1,o("blur",F)},200)},O=F=>{const N=F.target;p.value=N.value,v.value&&clearTimeout(v.value),v.value=setTimeout(()=>{o("search",p.value),g.value=1,x.value=!0,T(!0)},n.debounceMs)},U=F=>{if(m.value)switch(F.key){case"ArrowDown":F.preventDefault(),k.value=Math.min(k.value+1,L.value.length-1);break;case"ArrowUp":F.preventDefault(),k.value=Math.max(k.value-1,0);break;case"Enter":F.preventDefault(),k.value>=0&&L.value[k.value]&&V(L.value[k.value]);break;case"Escape":m.value=!1;break}},J=F=>{if(!x.value||f.value)return;const N=F.target,{scrollTop:Y,scrollHeight:Q,clientHeight:ie}=N;Y+ie>=Q-n.threshold&&T()},T=async(F=!1)=>{var N,Y;if(!f.value){f.value=!0;try{let Q=[];if(n.fetchItems)Q=await n.fetchItems();else{const ie=et(),ue=((N=n.endpoint)==null?void 0:N.apiModule)||n.apiModule,pe=((Y=n.endpoint)==null?void 0:Y.apiAction)||n.apiAction;if(!ue||!pe)throw new Error("API module and action are required");const Ie={page:F?1:g.value,pageSize:n.pageSize,search:p.value,...n.apiParams},ce=await ie.apiUrl(`/${ue}/${pe}`,"GET",Ie);Q=ce.data||ce.items||ce||[],C.value=ce.total||ce.totalItems||Q.length}F?(y.value=Q,g.value=1):(y.value.push(...Q),g.value++),x.value=Q.length>=n.pageSize,x.value||o("end-of-results"),o("load-more",{items:Q,page:g.value,hasMore:x.value,total:C.value})}catch(Q){console.error("Error fetching items:",Q),o("error",Q)}finally{f.value=!1}}};return a.onMounted(()=>{n.autoFetchOnMount&&T()}),a.onUnmounted(()=>{v.value&&clearTimeout(v.value)}),a.watch(()=>n.modelValue,F=>{F||(p.value="")}),(F,N)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:c,class:a.normalizeClass(["w-full",a.unref(r).class]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",zD)):a.createCommentVNode("",!0),N[3]||(N[3]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:u.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",qD,"*")):a.createCommentVNode("",!0)],8,PD)):a.createCommentVNode("",!0),a.createElementVNode("div",DD,[a.createElementVNode("div",{ref_key:"reference",ref:d,class:a.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[e.disabled?"opacity-60 cursor-not-allowed":"",e.error?"border-red-500 focus-within:ring-red-500":""]])},[n.icon?(a.openBlock(),a.createElementBlock("div",ED,[n.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("input",a.mergeProps({ref_key:"inputRef",ref:i},F.$attrs,{id:u.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",e.disabled?"cursor-not-allowed":"cursor-text"],placeholder:e.placeholder,disabled:e.disabled,value:S.value,onFocus:W,onBlur:H,onInput:O,onKeydown:U}),null,16,TD),f.value?(a.openBlock(),a.createElementBlock("svg",HD,[...N[4]||(N[4]=[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):e.clearable&&e.modelValue?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:N[0]||(N[0]=a.withModifiers(()=>{},["prevent"])),onClick:a.withModifiers(E,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(a.openBlock(),a.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:e.disabled,onClick:N[1]||(N[1]=Y=>m.value?w():M()),"aria-label":"Toggle"},[a.createVNode(a.unref(Et),{class:a.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":m.value}])},null,8,["class"])],8,OD))],2),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[m.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floating",ref:h,style:a.normalizeStyle(a.unref(b)),class:"z-[9999] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[a.createElementVNode("div",{ref_key:"scrollContainer",ref:s,class:"max-h-64 overflow-auto",onScroll:J},[f.value&&y.value.length===0?(a.openBlock(),a.createElementBlock("div",jD,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(5,Y=>a.createElementVNode("div",{key:Y,class:"flex items-center space-x-3"},[...N[5]||(N[5]=[a.createElementVNode("div",{class:"skeleton h-4 w-4 bg-gray-200 rounded"},null,-1),a.createElementVNode("div",{class:"skeleton h-4 flex-1 bg-gray-200 rounded"},null,-1)])])),64))])):L.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(L.value,(Y,Q)=>(a.openBlock(),a.createElementBlock("button",{key:z(Y)??Q,type:"button",class:a.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",Q===k.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:ie=>k.value=Q,onMousedown:N[2]||(N[2]=a.withModifiers(()=>{},["prevent"])),onClick:ie=>V(Y)},[a.renderSlot(F.$slots,"item",{item:Y,index:Q},()=>[a.createElementVNode("div",ND,[a.createElementVNode("div",RD,[a.createElementVNode("div",$D,a.toDisplayString(I(Y)),1),e.itemSubtitle?(a.openBlock(),a.createElementBlock("div",UD,a.toDisplayString(B(Y)),1)):a.createCommentVNode("",!0)])])]),A(Y)?(a.openBlock(),a.createElementBlock("span",WD," ✓ ")):a.createCommentVNode("",!0)],42,FD))),128)):a.createCommentVNode("",!0),f.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",GD,[a.createElementVNode("div",KD,[N[6]||(N[6]=a.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"},null,-1)),a.createElementVNode("span",XD,a.toDisplayString(e.loadingText),1)])])):a.createCommentVNode("",!0),!x.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",ZD,[a.createElementVNode("div",YD,a.toDisplayString(e.endOfResultsText),1)])):!f.value&&y.value.length===0?(a.openBlock(),a.createElementBlock("div",QD,a.toDisplayString(e.noResultsText),1)):a.createCommentVNode("",!0)],544)],4)):a.createCommentVNode("",!0)]))]),e.error?(a.openBlock(),a.createElementBlock("p",JD,a.toDisplayString(e.errorMessage||e.error),1)):e.helperText?(a.openBlock(),a.createElementBlock("p",eE,a.toDisplayString(e.helperText),1)):a.createCommentVNode("",!0)],64))],10,VD)),[[a.vShow,e.visible]])}});function xA(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xA(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function wA(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xA(e))&&(o&&(o+=" "),o+=t);return o}const tE=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},aE=(e,t)=>({classGroupId:e,validator:t}),vA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),VL="-",CA=[],nE="arbitrary..",oE=e=>{const t=iE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return rE(s);const c=s.split(VL),d=c[0]===""&&c.length>1?1:0;return LA(c,d,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const d=o[s],h=n[s];return d?h?tE(h,d):d:h||CA}return n[s]||CA}}},LA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const h=LA(e,t+1,i);if(h)return h}const s=n.validators;if(s===null)return;const c=t===0?e.join(VL):e.slice(t).join(VL),d=s.length;for(let h=0;h<d;h++){const u=s[h];if(u.validator(c))return u.classGroupId}},rE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?nE+o:void 0})(),iE=e=>{const{theme:t,classGroups:n}=e;return sE(n,t)},sE=(e,t)=>{const n=vA();for(const o in e){const r=e[o];lI(r,n,o,t)}return n},lI=(e,t,n,o)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];lE(s,t,n,o)}},lE=(e,t,n,o)=>{if(typeof e=="string"){cE(e,t,n);return}if(typeof e=="function"){dE(e,t,n,o);return}hE(e,t,n,o)},cE=(e,t,n)=>{const o=e===""?t:SA(t,e);o.classGroupId=n},dE=(e,t,n,o)=>{if(uE(e)){lI(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(aE(n,e))},hE=(e,t,n,o)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[c,d]=r[s];lI(d,SA(t,c),n,o)}},SA=(e,t)=>{let n=e;const o=t.split(VL),r=o.length;for(let i=0;i<r;i++){const s=o[i];let c=n.nextPart.get(s);c||(c=vA(),n.nextPart.set(s,c)),n=c}return n},uE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},cI="!",IA=":",yE=[],_A=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),fE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,c=0,d=0,h;const u=r.length;for(let k=0;k<u;k++){const g=r[k];if(s===0&&c===0){if(g===IA){i.push(r.slice(d,k)),d=k+1;continue}if(g==="/"){h=k;continue}}g==="["?s++:g==="]"?s--:g==="("?c++:g===")"&&c--}const p=i.length===0?r:r.slice(d);let y=p,f=!1;p.endsWith(cI)?(y=p.slice(0,-1),f=!0):p.startsWith(cI)&&(y=p.slice(1),f=!0);const m=h&&h>d?h-d:void 0;return _A(i,f,y,m)};if(t){const r=t+IA,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):_A(yE,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},mE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],c=s[0]==="[",d=t.has(s);c||d?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},kE=e=>({cache:pE(e.cacheSize),parseClassName:fE(e),sortModifiers:mE(e),...oE(e)}),gE=/\s+/,bE=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],c=e.trim().split(gE);let d="";for(let h=c.length-1;h>=0;h-=1){const u=c[h],{isExternal:p,modifiers:y,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:k}=n(u);if(p){d=u+(d.length>0?" "+d:d);continue}let g=!!k,x=o(g?m.substring(0,k):m);if(!x){if(!g){d=u+(d.length>0?" "+d:d);continue}if(x=o(m),!x){d=u+(d.length>0?" "+d:d);continue}g=!1}const C=y.length===0?"":y.length===1?y[0]:i(y).join(":"),v=f?C+cI:C,b=v+x;if(s.indexOf(b)>-1)continue;s.push(b);const L=r(x,g);for(let S=0;S<L.length;++S){const M=L[S];s.push(v+M)}d=u+(d.length>0?" "+d:d)}return d},ME=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=AA(n))&&(r&&(r+=" "),r+=o);return r},AA=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=AA(e[o]))&&(n&&(n+=" "),n+=t);return n},xE=(e,...t)=>{let n,o,r,i;const s=d=>{const h=t.reduce((u,p)=>p(u),e());return n=kE(h),o=n.cache.get,r=n.cache.set,i=c,c(d)},c=d=>{const h=o(d);if(h)return h;const u=bE(d,n);return r(d,u),u};return i=s,(...d)=>i(ME(...d))},wE=[],Ue=e=>{const t=n=>n[e]||wE;return t.isThemeGetter=!0,t},BA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,CE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,IE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=e=>vE.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),wa=e=>!!e&&Number.isInteger(Number(e)),dI=e=>e.endsWith("%")&&be(e.slice(0,-1)),oa=e=>CE.test(e),zA=()=>!0,AE=e=>LE.test(e)&&!SE.test(e),hI=()=>!1,BE=e=>IE.test(e),VE=e=>_E.test(e),zE=e=>!re(e)&&!se(e),PE=e=>va(e,HA,hI),re=e=>BA.test(e),Ji=e=>va(e,OA,AE),PA=e=>va(e,FE,be),qE=e=>va(e,FA,zA),DE=e=>va(e,jA,hI),qA=e=>va(e,EA,hI),EE=e=>va(e,TA,VE),zL=e=>va(e,NA,BE),se=e=>VA.test(e),Ml=e=>es(e,OA),TE=e=>es(e,jA),DA=e=>es(e,EA),HE=e=>es(e,HA),OE=e=>es(e,TA),PL=e=>es(e,NA,!0),jE=e=>es(e,FA,!0),va=(e,t,n)=>{const o=BA.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},es=(e,t,n=!1)=>{const o=VA.exec(e);return o?o[1]?t(o[1]):n:!1},EA=e=>e==="position"||e==="percentage",TA=e=>e==="image"||e==="url",HA=e=>e==="length"||e==="size"||e==="bg-size",OA=e=>e==="length",FE=e=>e==="number",jA=e=>e==="family-name",FA=e=>e==="number"||e==="weight",NA=e=>e==="shadow",NE=xE(()=>{const e=Ue("color"),t=Ue("font"),n=Ue("text"),o=Ue("font-weight"),r=Ue("tracking"),i=Ue("leading"),s=Ue("breakpoint"),c=Ue("container"),d=Ue("spacing"),h=Ue("radius"),u=Ue("shadow"),p=Ue("inset-shadow"),y=Ue("text-shadow"),f=Ue("drop-shadow"),m=Ue("blur"),k=Ue("perspective"),g=Ue("aspect"),x=Ue("ease"),C=Ue("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...b(),se,re],S=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],w=()=>[se,re,d],I=()=>[xa,"full","auto",...w()],z=()=>[wa,"none","subgrid",se,re],B=()=>["auto",{span:["full",wa,se,re]},wa,se,re],A=()=>[wa,"auto",se,re],V=()=>["auto","min","max","fr",se,re],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...w()],O=()=>[xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],U=()=>[xa,"screen","full","dvw","lvw","svw","min","max","fit",...w()],J=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],T=()=>[e,se,re],F=()=>[...b(),DA,qA,{position:[se,re]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",HE,PE,{size:[se,re]}],Q=()=>[dI,Ml,Ji],ie=()=>["","none","full",h,se,re],ue=()=>["",be,Ml,Ji],pe=()=>["solid","dashed","dotted","double"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[be,dI,DA,qA],X=()=>["","none",m,se,re],P=()=>["none",be,se,re],R=()=>["none",be,se,re],ee=()=>[be,se,re],ye=()=>[xa,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oa],breakpoint:[oa],color:[zA],container:[oa],"drop-shadow":[oa],ease:["in","out","in-out"],font:[zE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oa],shadow:[oa],spacing:["px",be],text:[oa],"text-shadow":[oa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,re,se,g]}],container:["container"],columns:[{columns:[be,re,se,c]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wa,"auto",se,re]}],basis:[{basis:[xa,"full","auto",c,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,xa,"auto","initial","none",re]}],grow:[{grow:["",be,se,re]}],shrink:[{shrink:["",be,se,re]}],order:[{order:[wa,"first","last","none",se,re]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[c,"screen",...O()]}],"min-w":[{"min-w":[c,"screen","none",...O()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,Ml,Ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,jE,qE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dI,re]}],"font-family":[{font:[TE,DE,t]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,se,re]}],"line-clamp":[{"line-clamp":[be,"none",se,PA]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",se,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",se,Ji]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[be,"auto",se,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wa,se,re],radial:["",se,re],conic:[wa,se,re]},OE,EE]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,se,re]}],"outline-w":[{outline:["",be,Ml,Ji]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,PL,zL]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",p,PL,zL]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[be,Ji]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",y,PL,zL]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[be,se,re]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[se,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,re]}],filter:[{filter:["","none",se,re]}],blur:[{blur:X()}],brightness:[{brightness:[be,se,re]}],contrast:[{contrast:[be,se,re]}],"drop-shadow":[{"drop-shadow":["","none",f,PL,zL]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",be,se,re]}],"hue-rotate":[{"hue-rotate":[be,se,re]}],invert:[{invert:["",be,se,re]}],saturate:[{saturate:[be,se,re]}],sepia:[{sepia:["",be,se,re]}],"backdrop-filter":[{"backdrop-filter":["","none",se,re]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[be,se,re]}],"backdrop-contrast":[{"backdrop-contrast":[be,se,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,se,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,se,re]}],"backdrop-invert":[{"backdrop-invert":["",be,se,re]}],"backdrop-opacity":[{"backdrop-opacity":[be,se,re]}],"backdrop-saturate":[{"backdrop-saturate":[be,se,re]}],"backdrop-sepia":[{"backdrop-sepia":["",be,se,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",se,re]}],ease:[{ease:["linear","initial",x,se,re]}],delay:[{delay:[be,se,re]}],animate:[{animate:["none",C,se,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,se,re]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[se,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,re]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[be,Ml,Ji,PA]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Me(...e){return NE(wA(e))}function RE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uI={},pI={},qL={exports:{}},RA;function $E(){if(RA)return qL.exports;RA=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return qL.exports=t(),qL.exports.createColors=t,qL.exports}var $A;function UE(){return $A||($A=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function n(h,u){for(var p in u)Object.defineProperty(h,p,{enumerable:!0,get:u[p]})}n(e,{dim:function(){return c},default:function(){return d}});const o=r($E());function r(h){return h&&h.__esModule?h:{default:h}}let i=new Set;function s(h,u,p){typeof process<"u"&&t.JEST_WORKER_ID||p&&i.has(p)||(p&&i.add(p),console.warn(""),u.forEach(y=>console.warn(h,"-",y)))}function c(h){return o.default.dim(h)}const d={info(h,u){s(o.default.bold(o.default.cyan("info")),...Array.isArray(h)?[h]:[u,h])},warn(h,u){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(h)?[h]:[u,h])},risk(h,u){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(h)?[h]:[u,h])}}})(pI)),pI}var UA;function WE(){return UA||(UA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const t=n(UE());function n(i){return i&&i.__esModule?i:{default:i}}function o({version:i,from:s,to:c}){t.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${i}, \`${s}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(uI)),uI}var yI,WA;function GE(){if(WA)return yI;WA=1;let e=WE();return yI=(e.__esModule?e:{default:e}).default,yI}var KE=GE();const XE=RE(KE),GA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KA=wA,xl=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return KA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=GA(u)||GA(p);return r[h][y]}),c=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((h,u)=>{let{class:p,className:y,...f}=u;return Object.entries(f).every(m=>{let[k,g]=m;return Array.isArray(g)?g.includes({...i,...c}[k]):{...i,...c}[k]===g})?[...h,p,y]:h},[]);return KA(e,s,d,n==null?void 0:n.class,n==null?void 0:n.className)};function XA(e){return typeof e=="string"?`'${e}'`:new ZE().serialize(e)}const ZE=(function(){var t;class e{constructor(){nq(this,t,new Map)}compare(o,r){const i=typeof o,s=typeof r;return i==="string"&&s==="string"?o.localeCompare(r):i==="number"&&s==="number"?o-r:String.prototype.localeCompare.call(this.serialize(o,!0),this.serialize(r,!0))}serialize(o,r){if(o===null)return"null";switch(typeof o){case"string":return r?o:`'${o}'`;case"bigint":return`${o}n`;case"object":return this.$object(o);case"function":return this.$function(o)}return String(o)}serializeObject(o){const r=Object.prototype.toString.call(o);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),o);const i=o.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,o);if(typeof o.toJSON=="function"){const c=o.toJSON();return s+(c!==null&&typeof c=="object"?this.$object(c):`(${this.serialize(c)})`)}return this.serializeObjectEntries(s,Object.entries(o))}serializeBuiltInType(o,r){const i=this["$"+o];if(i)return i.call(this,r);if(typeof(r==null?void 0:r.entries)=="function")return this.serializeObjectEntries(o,r.entries());throw new Error(`Cannot serialize ${o}`)}serializeObjectEntries(o,r){const i=Array.from(r).sort((c,d)=>this.compare(c[0],d[0]));let s=`${o}{`;for(let c=0;c<i.length;c++){const[d,h]=i[c];s+=`${this.serialize(d,!0)}:${this.serialize(h)}`,c<i.length-1&&(s+=",")}return s+"}"}$object(o){let r=e1(this,t).get(o);return r===void 0&&(e1(this,t).set(o,`#${e1(this,t).size}`),r=this.serializeObject(o),e1(this,t).set(o,r)),r}$function(o){const r=Function.prototype.toString.call(o);return r.slice(-15)==="[native code] }"?`${o.name||""}()[native]`:`${o.name}(${o.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(o){let r="[";for(let i=0;i<o.length;i++)r+=this.serialize(o[i]),i<o.length-1&&(r+=",");return r+"]"}$Date(o){try{return`Date(${o.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(o){return`ArrayBuffer[${new Uint8Array(o).join(",")}]`}$Set(o){return`Set${this.$Array(Array.from(o).sort((r,i)=>this.compare(r,i)))}`}$Map(o){return this.serializeObjectEntries("Map",o.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(o){return`${n}(${o})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(o){return`${n}[${o.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(o){return`${n}[${o.join("n,")}${o.length>0?"n":""}]`};return e})();function YE(e,t){return e===t||XA(e)===XA(t)}function ZA(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function yt(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[s=>{const c=a.inject(o,s);if(c||c===null)return c;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(a.provide(o,s),s)]}function ct(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function fI(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function mI(e){return e==null}function kI(e){return e?e.flatMap(t=>t.type===a.Fragment?kI(t.children):[t]):[]}const[DL]=yt("ConfigProvider");function QE(e,t){var n;const o=a.shallowRef();return a.watchEffect(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),a.readonly(o)}function Ss(e,t){return a.getCurrentScope()?(a.onScopeDispose(e,t),!0):!1}function JE(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const s=()=>t(i);return Ss(s),{off:s}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(s=>s(...i))),clear:()=>{e.clear()}}}function eT(e){let t=!1,n;const o=a.effectScope(!0);return((...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n))}const gI=new WeakMap,tT=(...e)=>{var t;const n=e[0],o=(t=a.getCurrentInstance())===null||t===void 0?void 0:t.proxy,r=o??a.getCurrentScope();if(r==null&&!a.hasInjectionContext())throw new Error("injectLocal must be called in setup");return r&&gI.has(r)&&n in gI.get(r)?gI.get(r)[n]:a.inject(...e)},ft=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const aT=e=>typeof e<"u",nT=Object.prototype.toString,oT=e=>nT.call(e)==="[object Object]",YA=rT();function rT(){var e,t,n;return ft&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function iT(e,t){var n;if(typeof e=="number")return e+t;const o=((n=e.match(/^-?\d+\.?\d*/))===null||n===void 0?void 0:n[0])||"",r=e.slice(o.length),i=Number.parseFloat(o)+t;return Number.isNaN(i)?e:i+r}function wl(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function bI(e){return Array.isArray(e)?e:[e]}function QA(e){return a.getCurrentInstance()}function sT(e){if(!ft)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(t+=1,o||(o=a.effectScope(!0),n=o.run(()=>e(...i))),Ss(r),n))}function lT(e){return a.isRef(e)?a.reactive(new Proxy({},{get(t,n,o){return a.unref(Reflect.get(e.value,n,o))},set(t,n,o){return a.isRef(e.value[n])&&!a.isRef(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):a.reactive(e)}function cT(e){return lT(a.computed(e))}function Oe(e,...t){const n=t.flat(),o=n[0];return cT(()=>Object.fromEntries(typeof o=="function"?Object.entries(a.toRefs(e)).filter(([r,i])=>!o(a.toValue(i),r)):Object.entries(a.toRefs(e)).filter(r=>!n.includes(r[0]))))}function JA(e,t=1e4){return a.customRef((n,o)=>{let r=a.toValue(e),i;const s=()=>setTimeout(()=>{r=a.toValue(e),o()},a.toValue(t));return Ss(()=>{clearTimeout(i)}),{get(){return n(),r},set(c){r=c,o(),clearTimeout(i),i=s()}}})}function dT(e,t){QA()&&a.onBeforeUnmount(e,t)}function hT(e,t=!0,n){QA()?a.onMounted(e,n):t?e():a.nextTick(e)}function eB(e,t,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n,i=a.shallowRef(!1);let s;function c(){s&&(clearTimeout(s),s=void 0)}function d(){i.value=!1,c()}function h(...u){r&&e(),c(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...u)},a.toValue(t))}return o&&(i.value=!0,ft&&h()),Ss(d),{isPending:a.shallowReadonly(i),start:h,stop:d}}function uT(e,t,n){return a.watch(e,t,{...n,immediate:!0})}const Is=ft?window:void 0;function Wt(e){var t;const n=a.toValue(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function vl(...e){const t=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=a.computed(()=>{const o=bI(a.toValue(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return uT(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>Wt(i)))!==null&&o!==void 0?o:[Is].filter(i=>i!=null),bI(a.toValue(n.value?e[1]:e[0])),bI(a.unref(n.value?e[2]:e[1])),a.toValue(n.value?e[3]:e[2])]},([o,r,i,s],c,d)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(i!=null&&i.length))return;const h=oT(s)?{...s}:s,u=o.flatMap(p=>r.flatMap(y=>i.map(f=>t(p,y,f,h))));d(()=>{u.forEach(p=>p())})},{flush:"post"})}function tB(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function aB(e){const t=tB();return a.computed(()=>(t.value,!!e()))}function pT(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function yT(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Is,eventName:i="keydown",passive:s=!1,dedupe:c=!1}=o,d=pT(t);return vl(r,i,u=>{u.repeat&&a.toValue(c)||d(u)&&n(u)},s)}const fT=Symbol("vueuse-ssr-width");function nB(){const e=a.hasInjectionContext()?tT(fT,null):null;return typeof e=="number"?e:void 0}function Cl(e,t={}){const{window:n=Is,ssrWidth:o=nB()}=t,r=aB(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=a.shallowRef(typeof o=="number"),s=a.shallowRef(),c=a.shallowRef(!1),d=h=>{c.value=h.matches};return a.watchEffect(()=>{if(i.value){i.value=!r.value,c.value=a.toValue(e).split(",").some(h=>{const u=h.includes("not all"),p=h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(p||y);return p&&f&&(f=o>=wl(p[1])),y&&f&&(f=o<=wl(y[1])),u?!f:f});return}r.value&&(s.value=n.matchMedia(a.toValue(e)),c.value=s.value.matches)}),vl(s,"change",d,{passive:!0}),a.computed(()=>c.value)}const mT={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function kT(e,t={}){function n(f,m){let k=a.toValue(e[a.toValue(f)]);return m!=null&&(k=iT(k,m)),typeof k=="number"&&(k=`${k}px`),k}const{window:o=Is,strategy:r="min-width",ssrWidth:i=nB()}=t,s=typeof i=="number",c=s?a.shallowRef(!1):{value:!0};s&&hT(()=>c.value=!!o);function d(f,m){return!c.value&&s?f==="min"?i>=wl(m):i<=wl(m):o?o.matchMedia(`(${f}-width: ${m})`).matches:!1}const h=f=>Cl(()=>`(min-width: ${n(f)})`,t),u=f=>Cl(()=>`(max-width: ${n(f)})`,t),p=Object.keys(e).reduce((f,m)=>(Object.defineProperty(f,m,{get:()=>r==="min-width"?h(m):u(m),enumerable:!0,configurable:!0}),f),{});function y(){const f=Object.keys(e).map(m=>[m,p[m],wl(n(m))]).sort((m,k)=>m[2]-k[2]);return a.computed(()=>f.filter(([,m])=>m.value).map(([m])=>m))}return Object.assign(p,{greaterOrEqual:h,smallerOrEqual:u,greater(f){return Cl(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Cl(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,m){return Cl(()=>`(min-width: ${n(f)}) and (max-width: ${n(m,-.1)})`,t)},isGreater(f){return d("min",n(f,.1))},isGreaterOrEqual(f){return d("min",n(f))},isSmaller(f){return d("max",n(f,-.1))},isSmallerOrEqual(f){return d("max",n(f))},isInBetween(f,m){return d("min",n(f))&&d("max",n(m,-.1))},current:y,active(){const f=y();return a.computed(()=>f.value.length===0?"":f.value.at(r==="min-width"?-1:0))}})}function gT(e){return JSON.parse(JSON.stringify(e))}function bT(e,t,n={}){const{window:o=Is,...r}=n;let i;const s=aB(()=>o&&"ResizeObserver"in o),c=()=>{i&&(i.disconnect(),i=void 0)},d=a.watch(a.computed(()=>{const u=a.toValue(e);return Array.isArray(u)?u.map(p=>Wt(p)):[Wt(u)]}),u=>{if(c(),s.value&&o){i=new ResizeObserver(t);for(const p of u)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),h=()=>{c(),d()};return Ss(h),{isSupported:s,stop:h}}function _s(e,t,n,o={}){var r,i;const{clone:s=!1,passive:c=!1,eventName:d,deep:h=!1,defaultValue:u,shouldEmit:p}=o,y=a.getCurrentInstance(),f=n||(y==null?void 0:y.emit)||(y==null||(r=y.$emit)===null||r===void 0?void 0:r.bind(y))||(y==null||(i=y.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(y==null?void 0:y.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const k=C=>s?typeof s=="function"?s(C):gT(C):C,g=()=>aT(e[t])?k(e[t]):u,x=C=>{p?p(C)&&f(m,C):f(m,C)};if(c){const C=a.ref(g());let v=!1;return a.watch(()=>e[t],b=>{v||(v=!0,C.value=k(b),a.nextTick(()=>v=!1))}),a.watch(C,b=>{!v&&(b!==e[t]||h)&&x(b)},{deep:h}),C}else return a.computed({get(){return g()},set(C){x(C)}})}function MI(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function xI(e,t,n=".",o){if(!MI(t))return xI(e,{},n,o);const r=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(o&&o(r,i,s,n)||(Array.isArray(s)&&Array.isArray(r[i])?r[i]=[...s,...r[i]]:MI(s)&&MI(r[i])?r[i]=xI(s,r[i],(n?`${n}.`:"")+i.toString(),o):r[i]=s))}return r}function MT(e){return(...t)=>t.reduce((n,o)=>xI(n,o,"",e),{})}const xT=MT(),wT=sT(()=>{const e=a.ref(new Map),t=a.ref(),n=a.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),o=DL({scrollBody:a.ref(!0)});let r=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",YA&&(r==null||r()),t.value=void 0};return a.watch(n,(s,c)=>{var p;if(!ft)return;if(!s){c&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,h={padding:d,margin:0},u=(p=o.scrollBody)!=null&&p.value?typeof o.scrollBody.value=="object"?xT({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},h):h:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),YA&&(r=vl(document,"touchmove",y=>vT(y),{passive:!1})),a.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function oB(e){const t=Math.random().toString(36).substring(2,7),n=wT();n.value.set(t,e??!1);const o=a.computed({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return dT(()=>{n.value.delete(t)}),o}function rB(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:rB(n)}}function vT(e){const t=e||window.event,n=t.target;return n instanceof Element&&rB(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function CT(e){const t=DL({dir:a.ref("ltr")});return a.computed(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function EL(e){const t=a.getCurrentInstance(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(r=>{o[a.toHandlerKey(a.camelize(r))]=(...i)=>e(r,...i)}),o}let wI=0;function LT(){a.watchEffect(e=>{if(!ft)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??iB()),document.body.insertAdjacentElement("beforeend",t[1]??iB()),wI++,e(()=>{wI===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),wI--})})}function iB(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function ST(e){return a.computed(()=>{var t;return a.toValue(e)?!!((t=Wt(e))!=null&&t.closest("form")):!0})}function ke(){const e=a.getCurrentInstance(),t=a.ref(),n=a.computed(()=>{var s,c;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(c=t.value)==null?void 0:c.$el.nextElementSibling:Wt(t)}),o=Object.assign({},e.exposed),r={};for(const s in e.props)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(o).length>0)for(const s in o)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>o[s]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function i(s){if(t.value=s,!!s&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.prototype.hasOwnProperty.call(s,"$el"))){const c=s.$.exposed,d=Object.assign({},r);for(const h in c)Object.defineProperty(d,h,{enumerable:!0,configurable:!0,get:()=>c[h]});e.exposed=d}}return{forwardRef:i,currentRef:t,currentElement:n}}function nt(e){const t=a.getCurrentInstance(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,i)=>{const s=(t==null?void 0:t.type.props[i]).default;return s!==void 0&&(r[i]=s),r},{}),o=a.toRef(e);return a.computed(()=>{const r={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{r[a.camelize(s)]=i[s]}),Object.keys({...n,...r}).reduce((s,c)=>(o.value[c]!==void 0&&(s[c]=o.value[c]),s),{})})}function St(e,t){const n=nt(e),o=t?EL(t):{};return a.computed(()=>({...n.value,...o}))}function IT(e,t){const n=JA(!1,300);Ss(()=>{n.value=!1});const o=a.ref(null),r=JE();function i(){o.value=null,n.value=!1}function s(c,d){const h=c.currentTarget,u={x:c.clientX,y:c.clientY},p=_T(u,h.getBoundingClientRect()),y=AT(u,p,1),f=BT(d.getBoundingClientRect()),m=zT([...y,...f]);o.value=m,n.value=!0}return a.watchEffect(c=>{if(e.value&&t.value){const d=u=>s(u,t.value),h=u=>s(u,e.value);e.value.addEventListener("pointerleave",d),t.value.addEventListener("pointerleave",h),c(()=>{var u,p;(u=e.value)==null||u.removeEventListener("pointerleave",d),(p=t.value)==null||p.removeEventListener("pointerleave",h)})}}),a.watchEffect(c=>{var d;if(o.value){const h=u=>{var g,x;if(!o.value||!(u.target instanceof Element))return;const p=u.target,y={x:u.clientX,y:u.clientY},f=((g=e.value)==null?void 0:g.contains(p))||((x=t.value)==null?void 0:x.contains(p)),m=!VT(y,o.value),k=!!p.closest("[data-grace-area-trigger]");f?i():(m||k)&&(i(),r.trigger())};(d=e.value)==null||d.ownerDocument.addEventListener("pointermove",h),c(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",h)})}}),{isPointerInTransit:n,onPointerExit:r.on}}function _T(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function AT(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function BT(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function VT(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i].x,d=t[i].y,h=t[s].x,u=t[s].y;d>o!=u>o&&n<(h-c)*(o-d)/(u-d)+c&&(r=!r)}return r}function zT(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),PT(t)}function PT(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},As=new WeakMap,TL=new WeakMap,HL={},vI=0,sB=function(e){return e&&(e.host||sB(e.parentNode))},DT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=sB(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ET=function(e,t,n,o){var r=DT(t,Array.isArray(e)?e:[e]);HL[n]||(HL[n]=new WeakMap);var i=HL[n],s=[],c=new Set,d=new Set(r),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};r.forEach(h);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))u(y);else try{var f=y.getAttribute(o),m=f!==null&&f!=="false",k=(As.get(y)||0)+1,g=(i.get(y)||0)+1;As.set(y,k),i.set(y,g),s.push(y),k===1&&m&&TL.set(y,!0),g===1&&y.setAttribute(n,"true"),m||y.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",y,x)}})};return u(t),c.clear(),vI++,function(){s.forEach(function(p){var y=As.get(p)-1,f=i.get(p)-1;As.set(p,y),i.set(p,f),y||(TL.has(p)||p.removeAttribute(o),TL.delete(p)),f||p.removeAttribute(n)}),vI--,vI||(As=new WeakMap,As=new WeakMap,TL=new WeakMap,HL={})}},TT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=qT(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ET(o,r,n,"aria-hidden")):function(){return null}};function lB(e){let t;a.watch(()=>Wt(e),n=>{n?t=TT(n):t&&t()}),a.onUnmounted(()=>{t&&t()})}let HT=0;function Bs(e,t="reka"){var o;if("useId"in t1)return`${t}-${(o=t1.useId)==null?void 0:o.call(t1)}`;const n=DL({useId:void 0});return n.useId?`${t}-${n.useId()}`:`${t}-${++HT}`}function OT(e){const t=a.ref(),n=a.computed(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=a.computed(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return a.onMounted(()=>{const r=Wt(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let d,h;if("borderBoxSize"in c){const u=c.borderBoxSize,p=Array.isArray(u)?u[0]:u;d=p.inlineSize,h=p.blockSize}else d=r.offsetWidth,h=r.offsetHeight;t.value={width:d,height:h}});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function jT(e,t){const n=a.ref(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function cB(e){const t=JA("",1e3);return{search:t,handleTypeaheadSearch:(r,i)=>{t.value=t.value+r;{const s=ct(),c=i.map(y=>{var f,m;return{...y,textValue:((f=y.value)==null?void 0:f.textValue)??((m=y.ref.textContent)==null?void 0:m.trim())??""}}),d=c.find(y=>y.ref===s),h=c.map(y=>y.textValue),u=NT(h,t.value,d==null?void 0:d.textValue),p=c.find(y=>y.textValue===u);return p&&p.ref.focus(),p==null?void 0:p.ref}},resetTypeahead:()=>{t.value=""}}}function FT(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function NT(e,t,n){const r=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=FT(e,Math.max(i,0));r.length===1&&(s=s.filter(h=>h!==n));const d=s.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function RT(e,t){var g;const n=a.ref({}),o=a.ref("none"),r=a.ref(e),i=e.value?"mounted":"unmounted";let s;const c=((g=t.value)==null?void 0:g.ownerDocument.defaultView)??Is,{state:d,dispatch:h}=jT(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=x=>{var C;if(ft){const v=new CustomEvent(x,{bubbles:!1,cancelable:!1});(C=t.value)==null||C.dispatchEvent(v)}};a.watch(e,async(x,C)=>{var b;const v=C!==x;if(await a.nextTick(),v){const L=o.value,S=OL(t.value);x?(h("MOUNT"),u("enter"),S==="none"&&u("after-enter")):S==="none"||S==="undefined"||((b=n.value)==null?void 0:b.display)==="none"?(h("UNMOUNT"),u("leave"),u("after-leave")):C&&L!==S?(h("ANIMATION_OUT"),u("leave")):(h("UNMOUNT"),u("after-leave"))}},{immediate:!0});const p=x=>{const C=OL(t.value),v=C.includes(CSS.escape(x.animationName)),b=d.value==="mounted"?"enter":"leave";if(x.target===t.value&&v&&(u(`after-${b}`),h("ANIMATION_END"),!r.value)){const L=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=c==null?void 0:c.setTimeout(()=>{var S;((S=t.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=L)})}x.target===t.value&&C==="none"&&h("ANIMATION_END")},y=x=>{x.target===t.value&&(o.value=OL(t.value))},f=a.watch(t,(x,C)=>{x?(n.value=getComputedStyle(x),x.addEventListener("animationstart",y),x.addEventListener("animationcancel",p),x.addEventListener("animationend",p)):(h("ANIMATION_END"),s!==void 0&&(c==null||c.clearTimeout(s)),C==null||C.removeEventListener("animationstart",y),C==null||C.removeEventListener("animationcancel",p),C==null||C.removeEventListener("animationend",p))},{immediate:!0}),m=a.watch(d,()=>{const x=OL(t.value);o.value=d.value==="mounted"?x:"none"});return a.onUnmounted(()=>{f(),m()}),{isPresent:a.computed(()=>["mounted","unmountSuspended"].includes(d.value))}}function OL(e){return e&&getComputedStyle(e).animationName||"none"}var jL=a.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var h;const{present:o,forceMount:r}=a.toRefs(e),i=a.ref(),{isPresent:s}=RT(o,i);n({present:s});let c=t.default({present:s.value});c=kI(c||[]);const d=a.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(h=d==null?void 0:d.parent)!=null&&h.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
8496
|
+
*/const na=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:f1,AArrowDownIcon:f1,AArrowUp:m1,AArrowUpIcon:m1,ALargeSmall:k1,ALargeSmallIcon:k1,Accessibility:g1,AccessibilityIcon:g1,Activity:b1,ActivityIcon:b1,ActivitySquare:Ar,ActivitySquareIcon:Ar,AirVent:M1,AirVentIcon:M1,Airplay:x1,AirplayIcon:x1,AlarmCheck:Na,AlarmCheckIcon:Na,AlarmClock:v1,AlarmClockCheck:Na,AlarmClockCheckIcon:Na,AlarmClockIcon:v1,AlarmClockMinus:Ra,AlarmClockMinusIcon:Ra,AlarmClockOff:w1,AlarmClockOffIcon:w1,AlarmClockPlus:$a,AlarmClockPlusIcon:$a,AlarmMinus:Ra,AlarmMinusIcon:Ra,AlarmPlus:$a,AlarmPlusIcon:$a,AlarmSmoke:C1,AlarmSmokeIcon:C1,Album:S1,AlbumIcon:S1,AlertCircle:Tt,AlertCircleIcon:Tt,AlertOctagon:ar,AlertOctagonIcon:ar,AlertTriangle:Oi,AlertTriangleIcon:Oi,AlignCenter:zi,AlignCenterHorizontal:L1,AlignCenterHorizontalIcon:L1,AlignCenterIcon:zi,AlignCenterVertical:I1,AlignCenterVerticalIcon:I1,AlignEndHorizontal:_1,AlignEndHorizontalIcon:_1,AlignEndVertical:A1,AlignEndVerticalIcon:A1,AlignHorizontalDistributeCenter:B1,AlignHorizontalDistributeCenterIcon:B1,AlignHorizontalDistributeEnd:V1,AlignHorizontalDistributeEndIcon:V1,AlignHorizontalDistributeStart:z1,AlignHorizontalDistributeStartIcon:z1,AlignHorizontalJustifyCenter:P1,AlignHorizontalJustifyCenterIcon:P1,AlignHorizontalJustifyEnd:q1,AlignHorizontalJustifyEndIcon:q1,AlignHorizontalJustifyStart:D1,AlignHorizontalJustifyStartIcon:D1,AlignHorizontalSpaceAround:E1,AlignHorizontalSpaceAroundIcon:E1,AlignHorizontalSpaceBetween:T1,AlignHorizontalSpaceBetweenIcon:T1,AlignJustify:Vi,AlignJustifyIcon:Vi,AlignLeft:Ut,AlignLeftIcon:Ut,AlignRight:Bi,AlignRightIcon:Bi,AlignStartHorizontal:H1,AlignStartHorizontalIcon:H1,AlignStartVertical:O1,AlignStartVerticalIcon:O1,AlignVerticalDistributeCenter:j1,AlignVerticalDistributeCenterIcon:j1,AlignVerticalDistributeEnd:F1,AlignVerticalDistributeEndIcon:F1,AlignVerticalDistributeStart:N1,AlignVerticalDistributeStartIcon:N1,AlignVerticalJustifyCenter:R1,AlignVerticalJustifyCenterIcon:R1,AlignVerticalJustifyEnd:$1,AlignVerticalJustifyEndIcon:$1,AlignVerticalJustifyStart:U1,AlignVerticalJustifyStartIcon:U1,AlignVerticalSpaceAround:W1,AlignVerticalSpaceAroundIcon:W1,AlignVerticalSpaceBetween:G1,AlignVerticalSpaceBetweenIcon:G1,Ambulance:K1,AmbulanceIcon:K1,Ampersand:X1,AmpersandIcon:X1,Ampersands:Z1,AmpersandsIcon:Z1,Amphora:Q1,AmphoraIcon:Q1,Anchor:Y1,AnchorIcon:Y1,Angry:J1,AngryIcon:J1,Annoyed:ec,AnnoyedIcon:ec,Antenna:tc,AntennaIcon:tc,Anvil:ac,AnvilIcon:ac,Aperture:nc,ApertureIcon:nc,AppWindow:rc,AppWindowIcon:rc,AppWindowMac:oc,AppWindowMacIcon:oc,Apple:ic,AppleIcon:ic,Archive:cc,ArchiveIcon:cc,ArchiveRestore:sc,ArchiveRestoreIcon:sc,ArchiveX:lc,ArchiveXIcon:lc,AreaChart:rn,AreaChartIcon:rn,Armchair:dc,ArmchairIcon:dc,ArrowBigDown:uc,ArrowBigDownDash:hc,ArrowBigDownDashIcon:hc,ArrowBigDownIcon:uc,ArrowBigLeft:yc,ArrowBigLeftDash:pc,ArrowBigLeftDashIcon:pc,ArrowBigLeftIcon:yc,ArrowBigRight:mc,ArrowBigRightDash:fc,ArrowBigRightDashIcon:fc,ArrowBigRightIcon:mc,ArrowBigUp:kc,ArrowBigUpDash:gc,ArrowBigUpDashIcon:gc,ArrowBigUpIcon:kc,ArrowDown:_c,ArrowDown01:Mc,ArrowDown01Icon:Mc,ArrowDown10:bc,ArrowDown10Icon:bc,ArrowDownAZ:Ua,ArrowDownAZIcon:Ua,ArrowDownAz:Ua,ArrowDownAzIcon:Ua,ArrowDownCircle:wn,ArrowDownCircleIcon:wn,ArrowDownFromLine:xc,ArrowDownFromLineIcon:xc,ArrowDownIcon:_c,ArrowDownLeft:wc,ArrowDownLeftFromCircle:Cn,ArrowDownLeftFromCircleIcon:Cn,ArrowDownLeftFromSquare:qr,ArrowDownLeftFromSquareIcon:qr,ArrowDownLeftIcon:wc,ArrowDownLeftSquare:Br,ArrowDownLeftSquareIcon:Br,ArrowDownNarrowWide:Cc,ArrowDownNarrowWideIcon:Cc,ArrowDownRight:vc,ArrowDownRightFromCircle:Ln,ArrowDownRightFromCircleIcon:Ln,ArrowDownRightFromSquare:Dr,ArrowDownRightFromSquareIcon:Dr,ArrowDownRightIcon:vc,ArrowDownRightSquare:Vr,ArrowDownRightSquareIcon:Vr,ArrowDownSquare:zr,ArrowDownSquareIcon:zr,ArrowDownToDot:Lc,ArrowDownToDotIcon:Lc,ArrowDownToLine:Sc,ArrowDownToLineIcon:Sc,ArrowDownUp:Ic,ArrowDownUpIcon:Ic,ArrowDownWideNarrow:Wa,ArrowDownWideNarrowIcon:Wa,ArrowDownZA:Ga,ArrowDownZAIcon:Ga,ArrowDownZa:Ga,ArrowDownZaIcon:Ga,ArrowLeft:zc,ArrowLeftCircle:vn,ArrowLeftCircleIcon:vn,ArrowLeftFromLine:Ac,ArrowLeftFromLineIcon:Ac,ArrowLeftIcon:zc,ArrowLeftRight:Vc,ArrowLeftRightIcon:Vc,ArrowLeftSquare:Pr,ArrowLeftSquareIcon:Pr,ArrowLeftToLine:Bc,ArrowLeftToLineIcon:Bc,ArrowRight:Qs,ArrowRightCircle:_n,ArrowRightCircleIcon:_n,ArrowRightFromLine:Pc,ArrowRightFromLineIcon:Pc,ArrowRightIcon:Qs,ArrowRightLeft:qc,ArrowRightLeftIcon:qc,ArrowRightSquare:Hr,ArrowRightSquareIcon:Hr,ArrowRightToLine:Dc,ArrowRightToLineIcon:Dc,ArrowUp:Wc,ArrowUp01:Ec,ArrowUp01Icon:Ec,ArrowUp10:Tc,ArrowUp10Icon:Tc,ArrowUpAZ:Ka,ArrowUpAZIcon:Ka,ArrowUpAz:Ka,ArrowUpAzIcon:Ka,ArrowUpCircle:An,ArrowUpCircleIcon:An,ArrowUpDown:Hc,ArrowUpDownIcon:Hc,ArrowUpFromDot:Oc,ArrowUpFromDotIcon:Oc,ArrowUpFromLine:jc,ArrowUpFromLineIcon:jc,ArrowUpIcon:Wc,ArrowUpLeft:Fc,ArrowUpLeftFromCircle:Sn,ArrowUpLeftFromCircleIcon:Sn,ArrowUpLeftFromSquare:Er,ArrowUpLeftFromSquareIcon:Er,ArrowUpLeftIcon:Fc,ArrowUpLeftSquare:jr,ArrowUpLeftSquareIcon:jr,ArrowUpNarrowWide:Xa,ArrowUpNarrowWideIcon:Xa,ArrowUpRight:Nc,ArrowUpRightFromCircle:In,ArrowUpRightFromCircleIcon:In,ArrowUpRightFromSquare:Tr,ArrowUpRightFromSquareIcon:Tr,ArrowUpRightIcon:Nc,ArrowUpRightSquare:Or,ArrowUpRightSquareIcon:Or,ArrowUpSquare:Fr,ArrowUpSquareIcon:Fr,ArrowUpToLine:Rc,ArrowUpToLineIcon:Rc,ArrowUpWideNarrow:$c,ArrowUpWideNarrowIcon:$c,ArrowUpZA:Za,ArrowUpZAIcon:Za,ArrowUpZa:Za,ArrowUpZaIcon:Za,ArrowsUpFromLine:Uc,ArrowsUpFromLineIcon:Uc,Asterisk:Gc,AsteriskIcon:Gc,AsteriskSquare:Nr,AsteriskSquareIcon:Nr,AtSign:Kc,AtSignIcon:Kc,Atom:Xc,AtomIcon:Xc,AudioLines:Zc,AudioLinesIcon:Zc,AudioWaveform:Yc,AudioWaveformIcon:Yc,Award:Qc,AwardIcon:Qc,Axe:Jc,AxeIcon:Jc,Axis3D:Ya,Axis3DIcon:Ya,Axis3d:Ya,Axis3dIcon:Ya,Baby:td,BabyIcon:td,Backpack:ed,BackpackIcon:ed,Badge:kd,BadgeAlert:ad,BadgeAlertIcon:ad,BadgeCent:nd,BadgeCentIcon:nd,BadgeCheck:Qa,BadgeCheckIcon:Qa,BadgeDollarSign:od,BadgeDollarSignIcon:od,BadgeEuro:rd,BadgeEuroIcon:rd,BadgeHelp:Ja,BadgeHelpIcon:Ja,BadgeIcon:kd,BadgeIndianRupee:id,BadgeIndianRupeeIcon:id,BadgeInfo:sd,BadgeInfoIcon:sd,BadgeJapaneseYen:ld,BadgeJapaneseYenIcon:ld,BadgeMinus:cd,BadgeMinusIcon:cd,BadgePercent:dd,BadgePercentIcon:dd,BadgePlus:hd,BadgePlusIcon:hd,BadgePoundSterling:ud,BadgePoundSterlingIcon:ud,BadgeQuestionMark:Ja,BadgeQuestionMarkIcon:Ja,BadgeRussianRuble:pd,BadgeRussianRubleIcon:pd,BadgeSwissFranc:yd,BadgeSwissFrancIcon:yd,BadgeTurkishLira:fd,BadgeTurkishLiraIcon:fd,BadgeX:md,BadgeXIcon:md,BaggageClaim:gd,BaggageClaimIcon:gd,Balloon:bd,BalloonIcon:bd,Ban:xd,BanIcon:xd,Banana:Md,BananaIcon:Md,Bandage:wd,BandageIcon:wd,Banknote:_d,BanknoteArrowDown:vd,BanknoteArrowDownIcon:vd,BanknoteArrowUp:Cd,BanknoteArrowUpIcon:Cd,BanknoteIcon:_d,BanknoteX:Ld,BanknoteXIcon:Ld,BarChart:yn,BarChart2:fn,BarChart2Icon:fn,BarChart3:un,BarChart3Icon:un,BarChart4:hn,BarChart4Icon:hn,BarChartBig:dn,BarChartBigIcon:dn,BarChartHorizontal:cn,BarChartHorizontalBig:sn,BarChartHorizontalBigIcon:sn,BarChartHorizontalIcon:cn,BarChartIcon:yn,Barcode:Sd,BarcodeIcon:Sd,Barrel:Id,BarrelIcon:Id,Baseline:Ad,BaselineIcon:Ad,Bath:Bd,BathIcon:Bd,Battery:Td,BatteryCharging:Vd,BatteryChargingIcon:Vd,BatteryFull:zd,BatteryFullIcon:zd,BatteryIcon:Td,BatteryLow:Pd,BatteryLowIcon:Pd,BatteryMedium:Dd,BatteryMediumIcon:Dd,BatteryPlus:qd,BatteryPlusIcon:qd,BatteryWarning:Ed,BatteryWarningIcon:Ed,Beaker:Hd,BeakerIcon:Hd,Bean:jd,BeanIcon:jd,BeanOff:Od,BeanOffIcon:Od,Bed:Rd,BedDouble:Fd,BedDoubleIcon:Fd,BedIcon:Rd,BedSingle:Nd,BedSingleIcon:Nd,Beef:$d,BeefIcon:$d,Beer:Wd,BeerIcon:Wd,BeerOff:Ud,BeerOffIcon:Ud,Bell:Qd,BellDot:Gd,BellDotIcon:Gd,BellElectric:Kd,BellElectricIcon:Kd,BellIcon:Qd,BellMinus:Xd,BellMinusIcon:Xd,BellOff:Zd,BellOffIcon:Zd,BellPlus:Yd,BellPlusIcon:Yd,BellRing:Jd,BellRingIcon:Jd,BetweenHorizonalEnd:en,BetweenHorizonalEndIcon:en,BetweenHorizonalStart:tn,BetweenHorizonalStartIcon:tn,BetweenHorizontalEnd:en,BetweenHorizontalEndIcon:en,BetweenHorizontalStart:tn,BetweenHorizontalStartIcon:tn,BetweenVerticalEnd:e0,BetweenVerticalEndIcon:e0,BetweenVerticalStart:t0,BetweenVerticalStartIcon:t0,BicepsFlexed:a0,BicepsFlexedIcon:a0,Bike:n0,BikeIcon:n0,Binary:o0,BinaryIcon:o0,Binoculars:i0,BinocularsIcon:i0,Biohazard:r0,BiohazardIcon:r0,Bird:s0,BirdIcon:s0,Birdhouse:l0,BirdhouseIcon:l0,Bitcoin:c0,BitcoinIcon:c0,Blend:d0,BlendIcon:d0,Blinds:h0,BlindsIcon:h0,Blocks:p0,BlocksIcon:p0,Bluetooth:m0,BluetoothConnected:u0,BluetoothConnectedIcon:u0,BluetoothIcon:m0,BluetoothOff:y0,BluetoothOffIcon:y0,BluetoothSearching:f0,BluetoothSearchingIcon:f0,Bold:k0,BoldIcon:k0,Bolt:g0,BoltIcon:g0,Bomb:b0,BombIcon:b0,Bone:M0,BoneIcon:M0,Book:U0,BookA:x0,BookAIcon:x0,BookAlert:w0,BookAlertIcon:w0,BookAudio:v0,BookAudioIcon:v0,BookCheck:L0,BookCheckIcon:L0,BookCopy:C0,BookCopyIcon:C0,BookDashed:an,BookDashedIcon:an,BookDown:S0,BookDownIcon:S0,BookHeadphones:I0,BookHeadphonesIcon:I0,BookHeart:_0,BookHeartIcon:_0,BookIcon:U0,BookImage:A0,BookImageIcon:A0,BookKey:B0,BookKeyIcon:B0,BookLock:V0,BookLockIcon:V0,BookMarked:z0,BookMarkedIcon:z0,BookMinus:P0,BookMinusIcon:P0,BookOpen:E0,BookOpenCheck:q0,BookOpenCheckIcon:q0,BookOpenIcon:E0,BookOpenText:D0,BookOpenTextIcon:D0,BookPlus:T0,BookPlusIcon:T0,BookSearch:H0,BookSearchIcon:H0,BookTemplate:an,BookTemplateIcon:an,BookText:O0,BookTextIcon:O0,BookType:j0,BookTypeIcon:j0,BookUp:F0,BookUp2:N0,BookUp2Icon:N0,BookUpIcon:F0,BookUser:R0,BookUserIcon:R0,BookX:$0,BookXIcon:$0,Bookmark:Z0,BookmarkCheck:W0,BookmarkCheckIcon:W0,BookmarkIcon:Z0,BookmarkMinus:G0,BookmarkMinusIcon:G0,BookmarkPlus:K0,BookmarkPlusIcon:K0,BookmarkX:X0,BookmarkXIcon:X0,BoomBox:Q0,BoomBoxIcon:Q0,Bot:e2,BotIcon:e2,BotMessageSquare:Y0,BotMessageSquareIcon:Y0,BotOff:J0,BotOffIcon:J0,BottleWine:a2,BottleWineIcon:a2,BowArrow:t2,BowArrowIcon:t2,Box:n2,BoxIcon:n2,BoxSelect:ti,BoxSelectIcon:ti,Boxes:o2,BoxesIcon:o2,Braces:nn,BracesIcon:nn,Brackets:r2,BracketsIcon:r2,Brain:l2,BrainCircuit:s2,BrainCircuitIcon:s2,BrainCog:i2,BrainCogIcon:i2,BrainIcon:l2,BrickWall:d2,BrickWallFire:c2,BrickWallFireIcon:c2,BrickWallIcon:d2,BrickWallShield:h2,BrickWallShieldIcon:h2,Briefcase:y2,BriefcaseBusiness:u2,BriefcaseBusinessIcon:u2,BriefcaseConveyorBelt:p2,BriefcaseConveyorBeltIcon:p2,BriefcaseIcon:y2,BriefcaseMedical:f2,BriefcaseMedicalIcon:f2,BringToFront:m2,BringToFrontIcon:m2,Brush:g2,BrushCleaning:k2,BrushCleaningIcon:k2,BrushIcon:g2,Bubbles:b2,BubblesIcon:b2,Bug:w2,BugIcon:w2,BugOff:M2,BugOffIcon:M2,BugPlay:x2,BugPlayIcon:x2,Building:C2,Building2:v2,Building2Icon:v2,BuildingIcon:C2,Bus:S2,BusFront:L2,BusFrontIcon:L2,BusIcon:S2,Cable:_2,CableCar:I2,CableCarIcon:I2,CableIcon:_2,Cake:B2,CakeIcon:B2,CakeSlice:A2,CakeSliceIcon:A2,Calculator:V2,CalculatorIcon:V2,Calendar:Js,Calendar1:z2,Calendar1Icon:z2,CalendarArrowDown:D2,CalendarArrowDownIcon:D2,CalendarArrowUp:P2,CalendarArrowUpIcon:P2,CalendarCheck:E2,CalendarCheck2:q2,CalendarCheck2Icon:q2,CalendarCheckIcon:E2,CalendarClock:T2,CalendarClockIcon:T2,CalendarCog:O2,CalendarCogIcon:O2,CalendarDays:H2,CalendarDaysIcon:H2,CalendarFold:j2,CalendarFoldIcon:j2,CalendarHeart:F2,CalendarHeartIcon:F2,CalendarIcon:Js,CalendarMinus:R2,CalendarMinus2:N2,CalendarMinus2Icon:N2,CalendarMinusIcon:R2,CalendarOff:$2,CalendarOffIcon:$2,CalendarPlus:W2,CalendarPlus2:U2,CalendarPlus2Icon:U2,CalendarPlusIcon:W2,CalendarRange:G2,CalendarRangeIcon:G2,CalendarSearch:K2,CalendarSearchIcon:K2,CalendarSync:X2,CalendarSyncIcon:X2,CalendarX:Y2,CalendarX2:Z2,CalendarX2Icon:Z2,CalendarXIcon:Y2,Calendars:Q2,CalendarsIcon:Q2,Camera:eh,CameraIcon:eh,CameraOff:J2,CameraOffIcon:J2,CandlestickChart:ln,CandlestickChartIcon:ln,Candy:nh,CandyCane:th,CandyCaneIcon:th,CandyIcon:nh,CandyOff:ah,CandyOffIcon:ah,Cannabis:rh,CannabisIcon:rh,CannabisOff:oh,CannabisOffIcon:oh,Captions:on,CaptionsIcon:on,CaptionsOff:ih,CaptionsOffIcon:ih,Car:ch,CarFront:sh,CarFrontIcon:sh,CarIcon:ch,CarTaxiFront:lh,CarTaxiFrontIcon:lh,Caravan:dh,CaravanIcon:dh,CardSim:hh,CardSimIcon:hh,Carrot:uh,CarrotIcon:uh,CaseLower:ph,CaseLowerIcon:ph,CaseSensitive:yh,CaseSensitiveIcon:yh,CaseUpper:fh,CaseUpperIcon:fh,CassetteTape:mh,CassetteTapeIcon:mh,Cast:kh,CastIcon:kh,Castle:gh,CastleIcon:gh,Cat:bh,CatIcon:bh,Cctv:Mh,CctvIcon:Mh,ChartArea:rn,ChartAreaIcon:rn,ChartBar:cn,ChartBarBig:sn,ChartBarBigIcon:sn,ChartBarDecreasing:wh,ChartBarDecreasingIcon:wh,ChartBarIcon:cn,ChartBarIncreasing:xh,ChartBarIncreasingIcon:xh,ChartBarStacked:vh,ChartBarStackedIcon:vh,ChartCandlestick:ln,ChartCandlestickIcon:ln,ChartColumn:un,ChartColumnBig:dn,ChartColumnBigIcon:dn,ChartColumnDecreasing:Ch,ChartColumnDecreasingIcon:Ch,ChartColumnIcon:un,ChartColumnIncreasing:hn,ChartColumnIncreasingIcon:hn,ChartColumnStacked:Lh,ChartColumnStackedIcon:Lh,ChartGantt:Sh,ChartGanttIcon:Sh,ChartLine:pn,ChartLineIcon:pn,ChartNetwork:Ih,ChartNetworkIcon:Ih,ChartNoAxesColumn:fn,ChartNoAxesColumnDecreasing:_h,ChartNoAxesColumnDecreasingIcon:_h,ChartNoAxesColumnIcon:fn,ChartNoAxesColumnIncreasing:yn,ChartNoAxesColumnIncreasingIcon:yn,ChartNoAxesCombined:Ah,ChartNoAxesCombinedIcon:Ah,ChartNoAxesGantt:kn,ChartNoAxesGanttIcon:kn,ChartPie:mn,ChartPieIcon:mn,ChartScatter:gn,ChartScatterIcon:gn,ChartSpline:Vh,ChartSplineIcon:Vh,Check:ka,CheckCheck:Bh,CheckCheckIcon:Bh,CheckCircle:ga,CheckCircle2:Bn,CheckCircle2Icon:Bn,CheckCircleIcon:ga,CheckIcon:ka,CheckLine:zh,CheckLineIcon:zh,CheckSquare:Wr,CheckSquare2:Gr,CheckSquare2Icon:Gr,CheckSquareIcon:Wr,ChefHat:Ph,ChefHatIcon:Ph,Cherry:qh,CherryIcon:qh,ChessBishop:Dh,ChessBishopIcon:Dh,ChessKing:Eh,ChessKingIcon:Eh,ChessKnight:Th,ChessKnightIcon:Th,ChessPawn:Hh,ChessPawnIcon:Hh,ChessQueen:Oh,ChessQueenIcon:Oh,ChessRook:jh,ChessRookIcon:jh,ChevronDown:Et,ChevronDownCircle:zn,ChevronDownCircleIcon:zn,ChevronDownIcon:Et,ChevronDownSquare:Kr,ChevronDownSquareIcon:Kr,ChevronFirst:Fh,ChevronFirstIcon:Fh,ChevronLast:Nh,ChevronLastIcon:Nh,ChevronLeft:bn,ChevronLeftCircle:Pn,ChevronLeftCircleIcon:Pn,ChevronLeftIcon:bn,ChevronLeftSquare:Xr,ChevronLeftSquareIcon:Xr,ChevronRight:Mn,ChevronRightCircle:Vn,ChevronRightCircleIcon:Vn,ChevronRightIcon:Mn,ChevronRightSquare:Zr,ChevronRightSquareIcon:Zr,ChevronUp:el,ChevronUpCircle:qn,ChevronUpCircleIcon:qn,ChevronUpIcon:el,ChevronUpSquare:Yr,ChevronUpSquareIcon:Yr,ChevronsDown:$h,ChevronsDownIcon:$h,ChevronsDownUp:Rh,ChevronsDownUpIcon:Rh,ChevronsLeft:tl,ChevronsLeftIcon:tl,ChevronsLeftRight:Wh,ChevronsLeftRightEllipsis:Uh,ChevronsLeftRightEllipsisIcon:Uh,ChevronsLeftRightIcon:Wh,ChevronsRight:al,ChevronsRightIcon:al,ChevronsRightLeft:Gh,ChevronsRightLeftIcon:Gh,ChevronsUp:Xh,ChevronsUpDown:Kh,ChevronsUpDownIcon:Kh,ChevronsUpIcon:Xh,Chrome:xn,ChromeIcon:xn,Chromium:xn,ChromiumIcon:xn,Church:Yh,ChurchIcon:Yh,Cigarette:Qh,CigaretteIcon:Qh,CigaretteOff:Zh,CigaretteOffIcon:Zh,Circle:nl,CircleAlert:Tt,CircleAlertIcon:Tt,CircleArrowDown:wn,CircleArrowDownIcon:wn,CircleArrowLeft:vn,CircleArrowLeftIcon:vn,CircleArrowOutDownLeft:Cn,CircleArrowOutDownLeftIcon:Cn,CircleArrowOutDownRight:Ln,CircleArrowOutDownRightIcon:Ln,CircleArrowOutUpLeft:Sn,CircleArrowOutUpLeftIcon:Sn,CircleArrowOutUpRight:In,CircleArrowOutUpRightIcon:In,CircleArrowRight:_n,CircleArrowRightIcon:_n,CircleArrowUp:An,CircleArrowUpIcon:An,CircleCheck:Bn,CircleCheckBig:ga,CircleCheckBigIcon:ga,CircleCheckIcon:Bn,CircleChevronDown:zn,CircleChevronDownIcon:zn,CircleChevronLeft:Pn,CircleChevronLeftIcon:Pn,CircleChevronRight:Vn,CircleChevronRightIcon:Vn,CircleChevronUp:qn,CircleChevronUpIcon:qn,CircleDashed:Jh,CircleDashedIcon:Jh,CircleDivide:Dn,CircleDivideIcon:Dn,CircleDollarSign:eu,CircleDollarSignIcon:eu,CircleDot:au,CircleDotDashed:tu,CircleDotDashedIcon:tu,CircleDotIcon:au,CircleEllipsis:ou,CircleEllipsisIcon:ou,CircleEqual:nu,CircleEqualIcon:nu,CircleFadingArrowUp:ru,CircleFadingArrowUpIcon:ru,CircleFadingPlus:iu,CircleFadingPlusIcon:iu,CircleGauge:En,CircleGaugeIcon:En,CircleHelp:Ht,CircleHelpIcon:Ht,CircleIcon:nl,CircleMinus:Tn,CircleMinusIcon:Tn,CircleOff:su,CircleOffIcon:su,CircleParking:On,CircleParkingIcon:On,CircleParkingOff:Hn,CircleParkingOffIcon:Hn,CirclePause:jn,CirclePauseIcon:jn,CirclePercent:Fn,CirclePercentIcon:Fn,CirclePile:lu,CirclePileIcon:lu,CirclePlay:Nn,CirclePlayIcon:Nn,CirclePlus:Rn,CirclePlusIcon:Rn,CirclePoundSterling:cu,CirclePoundSterlingIcon:cu,CirclePower:$n,CirclePowerIcon:$n,CircleQuestionMark:Ht,CircleQuestionMarkIcon:Ht,CircleSlash:du,CircleSlash2:Un,CircleSlash2Icon:Un,CircleSlashIcon:du,CircleSlashed:Un,CircleSlashedIcon:Un,CircleSmall:hu,CircleSmallIcon:hu,CircleStar:uu,CircleStarIcon:uu,CircleStop:Wn,CircleStopIcon:Wn,CircleUser:Kn,CircleUserIcon:Kn,CircleUserRound:Gn,CircleUserRoundIcon:Gn,CircleX:Xn,CircleXIcon:Xn,CircuitBoard:pu,CircuitBoardIcon:pu,Citrus:yu,CitrusIcon:yu,Clapperboard:fu,ClapperboardIcon:fu,Clipboard:Lu,ClipboardCheck:ku,ClipboardCheckIcon:ku,ClipboardClock:mu,ClipboardClockIcon:mu,ClipboardCopy:gu,ClipboardCopyIcon:gu,ClipboardEdit:Yn,ClipboardEditIcon:Yn,ClipboardIcon:Lu,ClipboardList:bu,ClipboardListIcon:bu,ClipboardMinus:Mu,ClipboardMinusIcon:Mu,ClipboardPaste:xu,ClipboardPasteIcon:xu,ClipboardPen:Yn,ClipboardPenIcon:Yn,ClipboardPenLine:Zn,ClipboardPenLineIcon:Zn,ClipboardPlus:wu,ClipboardPlusIcon:wu,ClipboardSignature:Zn,ClipboardSignatureIcon:Zn,ClipboardType:vu,ClipboardTypeIcon:vu,ClipboardX:Cu,ClipboardXIcon:Cu,Clock:ol,Clock1:Su,Clock10:Iu,Clock10Icon:Iu,Clock11:_u,Clock11Icon:_u,Clock12:Au,Clock12Icon:Au,Clock1Icon:Su,Clock2:Bu,Clock2Icon:Bu,Clock3:Vu,Clock3Icon:Vu,Clock4:zu,Clock4Icon:zu,Clock5:Pu,Clock5Icon:Pu,Clock6:qu,Clock6Icon:qu,Clock7:Du,Clock7Icon:Du,Clock8:Eu,Clock8Icon:Eu,Clock9:Tu,Clock9Icon:Tu,ClockAlert:Hu,ClockAlertIcon:Hu,ClockArrowDown:Ou,ClockArrowDownIcon:Ou,ClockArrowUp:ju,ClockArrowUpIcon:ju,ClockCheck:Fu,ClockCheckIcon:Fu,ClockFading:Nu,ClockFadingIcon:Nu,ClockIcon:ol,ClockPlus:Ru,ClockPlusIcon:Ru,ClosedCaption:$u,ClosedCaptionIcon:$u,Cloud:lp,CloudAlert:Uu,CloudAlertIcon:Uu,CloudBackup:Wu,CloudBackupIcon:Wu,CloudCheck:Gu,CloudCheckIcon:Gu,CloudCog:Ku,CloudCogIcon:Ku,CloudDownload:Qn,CloudDownloadIcon:Qn,CloudDrizzle:Xu,CloudDrizzleIcon:Xu,CloudFog:Zu,CloudFogIcon:Zu,CloudHail:Yu,CloudHailIcon:Yu,CloudIcon:lp,CloudLightning:Qu,CloudLightningIcon:Qu,CloudMoon:ep,CloudMoonIcon:ep,CloudMoonRain:Ju,CloudMoonRainIcon:Ju,CloudOff:tp,CloudOffIcon:tp,CloudRain:np,CloudRainIcon:np,CloudRainWind:ap,CloudRainWindIcon:ap,CloudSnow:op,CloudSnowIcon:op,CloudSun:ip,CloudSunIcon:ip,CloudSunRain:rp,CloudSunRainIcon:rp,CloudSync:sp,CloudSyncIcon:sp,CloudUpload:ba,CloudUploadIcon:ba,Cloudy:cp,CloudyIcon:cp,Clover:dp,CloverIcon:dp,Club:hp,ClubIcon:hp,Code:up,Code2:Jn,Code2Icon:Jn,CodeIcon:up,CodeSquare:Qr,CodeSquareIcon:Qr,CodeXml:Jn,CodeXmlIcon:Jn,Codepen:pp,CodepenIcon:pp,Codesandbox:yp,CodesandboxIcon:yp,Coffee:fp,CoffeeIcon:fp,Cog:mp,CogIcon:mp,Coins:kp,CoinsIcon:kp,Columns:eo,Columns2:eo,Columns2Icon:eo,Columns3:to,Columns3Cog:Ot,Columns3CogIcon:Ot,Columns3Icon:to,Columns4:gp,Columns4Icon:gp,ColumnsIcon:eo,ColumnsSettings:Ot,ColumnsSettingsIcon:Ot,Combine:bp,CombineIcon:bp,Command:Mp,CommandIcon:Mp,Compass:xp,CompassIcon:xp,Component:wp,ComponentIcon:wp,Computer:vp,ComputerIcon:vp,ConciergeBell:Cp,ConciergeBellIcon:Cp,Cone:Lp,ConeIcon:Lp,Construction:Sp,ConstructionIcon:Sp,Contact:Ip,Contact2:ao,Contact2Icon:ao,ContactIcon:Ip,ContactRound:ao,ContactRoundIcon:ao,Container:_p,ContainerIcon:_p,Contrast:Ap,ContrastIcon:Ap,Cookie:Vp,CookieIcon:Vp,CookingPot:Bp,CookingPotIcon:Bp,Copy:Tp,CopyCheck:zp,CopyCheckIcon:zp,CopyIcon:Tp,CopyMinus:Pp,CopyMinusIcon:Pp,CopyPlus:qp,CopyPlusIcon:qp,CopySlash:Ep,CopySlashIcon:Ep,CopyX:Dp,CopyXIcon:Dp,Copyleft:Hp,CopyleftIcon:Hp,Copyright:Op,CopyrightIcon:Op,CornerDownLeft:jp,CornerDownLeftIcon:jp,CornerDownRight:Np,CornerDownRightIcon:Np,CornerLeftDown:Fp,CornerLeftDownIcon:Fp,CornerLeftUp:Rp,CornerLeftUpIcon:Rp,CornerRightDown:$p,CornerRightDownIcon:$p,CornerRightUp:Up,CornerRightUpIcon:Up,CornerUpLeft:Wp,CornerUpLeftIcon:Wp,CornerUpRight:Gp,CornerUpRightIcon:Gp,Cpu:xs,CpuIcon:xs,CreativeCommons:Kp,CreativeCommonsIcon:Kp,CreditCard:Xp,CreditCardIcon:Xp,Croissant:Zp,CroissantIcon:Zp,Crop:Yp,CropIcon:Yp,Cross:Qp,CrossIcon:Qp,Crosshair:ey,CrosshairIcon:ey,Crown:Jp,CrownIcon:Jp,Cuboid:ty,CuboidIcon:ty,CupSoda:ay,CupSodaIcon:ay,CurlyBraces:nn,CurlyBracesIcon:nn,Currency:ny,CurrencyIcon:ny,Cylinder:oy,CylinderIcon:oy,Dam:ry,DamIcon:ry,Database:cy,DatabaseBackup:iy,DatabaseBackupIcon:iy,DatabaseIcon:cy,DatabaseSearch:sy,DatabaseSearchIcon:sy,DatabaseZap:ly,DatabaseZapIcon:ly,DecimalsArrowLeft:dy,DecimalsArrowLeftIcon:dy,DecimalsArrowRight:hy,DecimalsArrowRightIcon:hy,Delete:uy,DeleteIcon:uy,Dessert:py,DessertIcon:py,Diameter:yy,DiameterIcon:yy,Diamond:ky,DiamondIcon:ky,DiamondMinus:fy,DiamondMinusIcon:fy,DiamondPercent:no,DiamondPercentIcon:no,DiamondPlus:my,DiamondPlusIcon:my,Dice1:gy,Dice1Icon:gy,Dice2:by,Dice2Icon:by,Dice3:My,Dice3Icon:My,Dice4:xy,Dice4Icon:xy,Dice5:wy,Dice5Icon:wy,Dice6:vy,Dice6Icon:vy,Dices:Cy,DicesIcon:Cy,Diff:Ly,DiffIcon:Ly,Disc:Ay,Disc2:Sy,Disc2Icon:Sy,Disc3:Iy,Disc3Icon:Iy,DiscAlbum:_y,DiscAlbumIcon:_y,DiscIcon:Ay,Divide:By,DivideCircle:Dn,DivideCircleIcon:Dn,DivideIcon:By,DivideSquare:ni,DivideSquareIcon:ni,Dna:zy,DnaIcon:zy,DnaOff:Vy,DnaOffIcon:Vy,Dock:Py,DockIcon:Py,Dog:Dy,DogIcon:Dy,DollarSign:qy,DollarSignIcon:qy,Donut:Ty,DonutIcon:Ty,DoorClosed:Hy,DoorClosedIcon:Hy,DoorClosedLocked:Ey,DoorClosedLockedIcon:Ey,DoorOpen:Oy,DoorOpenIcon:Oy,Dot:jy,DotIcon:jy,DotSquare:ai,DotSquareIcon:ai,Download:rl,DownloadCloud:Qn,DownloadCloudIcon:Qn,DownloadIcon:rl,DraftingCompass:Fy,DraftingCompassIcon:Fy,Drama:Ry,DramaIcon:Ry,Dribbble:Ny,DribbbleIcon:Ny,Drill:$y,DrillIcon:$y,Drone:Uy,DroneIcon:Uy,Droplet:Gy,DropletIcon:Gy,DropletOff:Wy,DropletOffIcon:Wy,Droplets:Ky,DropletsIcon:Ky,Drum:Xy,DrumIcon:Xy,Drumstick:Zy,DrumstickIcon:Zy,Dumbbell:Yy,DumbbellIcon:Yy,Ear:Jy,EarIcon:Jy,EarOff:Qy,EarOffIcon:Qy,Earth:oo,EarthIcon:oo,EarthLock:ef,EarthLockIcon:ef,Eclipse:tf,EclipseIcon:tf,Edit:at,Edit2:fr,Edit2Icon:fr,Edit3:yr,Edit3Icon:yr,EditIcon:at,Egg:nf,EggFried:af,EggFriedIcon:af,EggIcon:nf,EggOff:of,EggOffIcon:of,Ellipsis:Ma,EllipsisIcon:Ma,EllipsisVertical:ro,EllipsisVerticalIcon:ro,Equal:lf,EqualApproximately:sf,EqualApproximatelyIcon:sf,EqualIcon:lf,EqualNot:rf,EqualNotIcon:rf,EqualSquare:oi,EqualSquareIcon:oi,Eraser:cf,EraserIcon:cf,EthernetPort:df,EthernetPortIcon:df,Euro:hf,EuroIcon:hf,EvCharger:uf,EvChargerIcon:uf,Expand:pf,ExpandIcon:pf,ExternalLink:yf,ExternalLinkIcon:yf,Eye:ws,EyeClosed:ff,EyeClosedIcon:ff,EyeIcon:ws,EyeOff:il,EyeOffIcon:il,Facebook:mf,FacebookIcon:mf,Factory:kf,FactoryIcon:kf,Fan:gf,FanIcon:gf,FastForward:bf,FastForwardIcon:bf,Feather:Mf,FeatherIcon:Mf,Fence:xf,FenceIcon:xf,FerrisWheel:wf,FerrisWheelIcon:wf,Figma:vf,FigmaIcon:vf,File:Yf,FileArchive:Cf,FileArchiveIcon:Cf,FileAudio:jt,FileAudio2:jt,FileAudio2Icon:jt,FileAudioIcon:jt,FileAxis3D:io,FileAxis3DIcon:io,FileAxis3d:io,FileAxis3dIcon:io,FileBadge:so,FileBadge2:so,FileBadge2Icon:so,FileBadgeIcon:so,FileBarChart:ho,FileBarChart2:uo,FileBarChart2Icon:uo,FileBarChartIcon:ho,FileBox:Lf,FileBoxIcon:Lf,FileBraces:co,FileBracesCorner:lo,FileBracesCornerIcon:lo,FileBracesIcon:co,FileChartColumn:uo,FileChartColumnIcon:uo,FileChartColumnIncreasing:ho,FileChartColumnIncreasingIcon:ho,FileChartLine:po,FileChartLineIcon:po,FileChartPie:yo,FileChartPieIcon:yo,FileCheck:Sf,FileCheck2:fo,FileCheck2Icon:fo,FileCheckCorner:fo,FileCheckCornerIcon:fo,FileCheckIcon:Sf,FileClock:If,FileClockIcon:If,FileCode:_f,FileCode2:mo,FileCode2Icon:mo,FileCodeCorner:mo,FileCodeCornerIcon:mo,FileCodeIcon:_f,FileCog:ko,FileCog2:ko,FileCog2Icon:ko,FileCogIcon:ko,FileDiff:Af,FileDiffIcon:Af,FileDigit:Vf,FileDigitIcon:Vf,FileDown:Bf,FileDownIcon:Bf,FileEdit:Co,FileEditIcon:Co,FileExclamationPoint:go,FileExclamationPointIcon:go,FileHeadphone:jt,FileHeadphoneIcon:jt,FileHeart:zf,FileHeartIcon:zf,FileIcon:Yf,FileImage:Pf,FileImageIcon:Pf,FileInput:qf,FileInputIcon:qf,FileJson:co,FileJson2:lo,FileJson2Icon:lo,FileJsonIcon:co,FileKey:bo,FileKey2:bo,FileKey2Icon:bo,FileKeyIcon:bo,FileLineChart:po,FileLineChartIcon:po,FileLock:Mo,FileLock2:Mo,FileLock2Icon:Mo,FileLockIcon:Mo,FileMinus:Ef,FileMinus2:xo,FileMinus2Icon:xo,FileMinusCorner:xo,FileMinusCornerIcon:xo,FileMinusIcon:Ef,FileMusic:Df,FileMusicIcon:Df,FileOutput:Tf,FileOutputIcon:Tf,FilePen:Co,FilePenIcon:Co,FilePenLine:wo,FilePenLineIcon:wo,FilePieChart:yo,FilePieChartIcon:yo,FilePlay:vo,FilePlayIcon:vo,FilePlus:Hf,FilePlus2:Lo,FilePlus2Icon:Lo,FilePlusCorner:Lo,FilePlusCornerIcon:Lo,FilePlusIcon:Hf,FileQuestion:So,FileQuestionIcon:So,FileQuestionMark:So,FileQuestionMarkIcon:So,FileScan:Of,FileScanIcon:Of,FileSearch:jf,FileSearch2:Io,FileSearch2Icon:Io,FileSearchCorner:Io,FileSearchCornerIcon:Io,FileSearchIcon:jf,FileSignal:_o,FileSignalIcon:_o,FileSignature:wo,FileSignatureIcon:wo,FileSliders:Ff,FileSlidersIcon:Ff,FileSpreadsheet:Nf,FileSpreadsheetIcon:Nf,FileStack:Rf,FileStackIcon:Rf,FileSymlink:$f,FileSymlinkIcon:$f,FileTerminal:Uf,FileTerminalIcon:Uf,FileText:vs,FileTextIcon:vs,FileType:Wf,FileType2:Ao,FileType2Icon:Ao,FileTypeCorner:Ao,FileTypeCornerIcon:Ao,FileTypeIcon:Wf,FileUp:Gf,FileUpIcon:Gf,FileUser:Kf,FileUserIcon:Kf,FileVideo:vo,FileVideo2:Bo,FileVideo2Icon:Bo,FileVideoCamera:Bo,FileVideoCameraIcon:Bo,FileVideoIcon:vo,FileVolume:Xf,FileVolume2:_o,FileVolume2Icon:_o,FileVolumeIcon:Xf,FileWarning:go,FileWarningIcon:go,FileX:Zf,FileX2:Vo,FileX2Icon:Vo,FileXCorner:Vo,FileXCornerIcon:Vo,FileXIcon:Zf,Files:Jf,FilesIcon:Jf,Film:Qf,FilmIcon:Qf,Filter:Eo,FilterIcon:Eo,FilterX:Do,FilterXIcon:Do,Fingerprint:zo,FingerprintIcon:zo,FingerprintPattern:zo,FingerprintPatternIcon:zo,FireExtinguisher:em,FireExtinguisherIcon:em,Fish:nm,FishIcon:nm,FishOff:tm,FishOffIcon:tm,FishSymbol:am,FishSymbolIcon:am,FishingHook:om,FishingHookIcon:om,Flag:lm,FlagIcon:lm,FlagOff:rm,FlagOffIcon:rm,FlagTriangleLeft:im,FlagTriangleLeftIcon:im,FlagTriangleRight:sm,FlagTriangleRightIcon:sm,Flame:dm,FlameIcon:dm,FlameKindling:cm,FlameKindlingIcon:cm,Flashlight:um,FlashlightIcon:um,FlashlightOff:hm,FlashlightOffIcon:hm,FlaskConical:ym,FlaskConicalIcon:ym,FlaskConicalOff:pm,FlaskConicalOffIcon:pm,FlaskRound:fm,FlaskRoundIcon:fm,FlipHorizontal:$r,FlipHorizontal2:mm,FlipHorizontal2Icon:mm,FlipHorizontalIcon:$r,FlipVertical:Ur,FlipVertical2:km,FlipVertical2Icon:km,FlipVerticalIcon:Ur,Flower:bm,Flower2:gm,Flower2Icon:gm,FlowerIcon:bm,Focus:Mm,FocusIcon:Mm,FoldHorizontal:xm,FoldHorizontalIcon:xm,FoldVertical:wm,FoldVerticalIcon:wm,Folder:Zm,FolderArchive:vm,FolderArchiveIcon:vm,FolderCheck:Cm,FolderCheckIcon:Cm,FolderClock:Lm,FolderClockIcon:Lm,FolderClosed:Sm,FolderClosedIcon:Sm,FolderCode:Im,FolderCodeIcon:Im,FolderCog:Po,FolderCog2:Po,FolderCog2Icon:Po,FolderCogIcon:Po,FolderDot:_m,FolderDotIcon:_m,FolderDown:Am,FolderDownIcon:Am,FolderEdit:qo,FolderEditIcon:qo,FolderGit:Vm,FolderGit2:Bm,FolderGit2Icon:Bm,FolderGitIcon:Vm,FolderHeart:zm,FolderHeartIcon:zm,FolderIcon:Zm,FolderInput:Pm,FolderInputIcon:Pm,FolderKanban:Dm,FolderKanbanIcon:Dm,FolderKey:qm,FolderKeyIcon:qm,FolderLock:Em,FolderLockIcon:Em,FolderMinus:Om,FolderMinusIcon:Om,FolderOpen:Hm,FolderOpenDot:Tm,FolderOpenDotIcon:Tm,FolderOpenIcon:Hm,FolderOutput:jm,FolderOutputIcon:jm,FolderPen:qo,FolderPenIcon:qo,FolderPlus:Rm,FolderPlusIcon:Rm,FolderRoot:Fm,FolderRootIcon:Fm,FolderSearch:$m,FolderSearch2:Nm,FolderSearch2Icon:Nm,FolderSearchIcon:$m,FolderSymlink:Wm,FolderSymlinkIcon:Wm,FolderSync:Um,FolderSyncIcon:Um,FolderTree:Gm,FolderTreeIcon:Gm,FolderUp:Km,FolderUpIcon:Km,FolderX:Xm,FolderXIcon:Xm,Folders:Ym,FoldersIcon:Ym,Footprints:Qm,FootprintsIcon:Qm,ForkKnife:Zi,ForkKnifeCrossed:Xi,ForkKnifeCrossedIcon:Xi,ForkKnifeIcon:Zi,Forklift:Jm,ForkliftIcon:Jm,Form:ek,FormIcon:ek,FormInput:gr,FormInputIcon:gr,Forward:ak,ForwardIcon:ak,Frame:tk,FrameIcon:tk,Framer:nk,FramerIcon:nk,Frown:ok,FrownIcon:ok,Fuel:rk,FuelIcon:rk,Fullscreen:ik,FullscreenIcon:ik,FunctionSquare:ri,FunctionSquareIcon:ri,Funnel:Eo,FunnelIcon:Eo,FunnelPlus:sk,FunnelPlusIcon:sk,FunnelX:Do,FunnelXIcon:Do,GalleryHorizontal:ck,GalleryHorizontalEnd:lk,GalleryHorizontalEndIcon:lk,GalleryHorizontalIcon:ck,GalleryThumbnails:dk,GalleryThumbnailsIcon:dk,GalleryVertical:uk,GalleryVerticalEnd:hk,GalleryVerticalEndIcon:hk,GalleryVerticalIcon:uk,Gamepad:mk,Gamepad2:pk,Gamepad2Icon:pk,GamepadDirectional:yk,GamepadDirectionalIcon:yk,GamepadIcon:mk,GanttChart:kn,GanttChartIcon:kn,GanttChartSquare:$t,GanttChartSquareIcon:$t,Gauge:fk,GaugeCircle:En,GaugeCircleIcon:En,GaugeIcon:fk,Gavel:kk,GavelIcon:kk,Gem:gk,GemIcon:gk,GeorgianLari:bk,GeorgianLariIcon:bk,Ghost:Mk,GhostIcon:Mk,Gift:xk,GiftIcon:xk,GitBranch:Ck,GitBranchIcon:Ck,GitBranchMinus:wk,GitBranchMinusIcon:wk,GitBranchPlus:vk,GitBranchPlusIcon:vk,GitCommit:To,GitCommitHorizontal:To,GitCommitHorizontalIcon:To,GitCommitIcon:To,GitCommitVertical:Lk,GitCommitVerticalIcon:Lk,GitCompare:Ik,GitCompareArrows:Sk,GitCompareArrowsIcon:Sk,GitCompareIcon:Ik,GitFork:_k,GitForkIcon:_k,GitGraph:Ak,GitGraphIcon:Ak,GitMerge:Vk,GitMergeConflict:Bk,GitMergeConflictIcon:Bk,GitMergeIcon:Vk,GitPullRequest:Tk,GitPullRequestArrow:zk,GitPullRequestArrowIcon:zk,GitPullRequestClosed:Pk,GitPullRequestClosedIcon:Pk,GitPullRequestCreate:Dk,GitPullRequestCreateArrow:qk,GitPullRequestCreateArrowIcon:qk,GitPullRequestCreateIcon:Dk,GitPullRequestDraft:Ek,GitPullRequestDraftIcon:Ek,GitPullRequestIcon:Tk,Github:Hk,GithubIcon:Hk,Gitlab:Ok,GitlabIcon:Ok,GlassWater:jk,GlassWaterIcon:jk,Glasses:Fk,GlassesIcon:Fk,Globe:sl,Globe2:oo,Globe2Icon:oo,GlobeIcon:sl,GlobeLock:Nk,GlobeLockIcon:Nk,GlobeOff:Rk,GlobeOffIcon:Rk,GlobeX:$k,GlobeXIcon:$k,Goal:Uk,GoalIcon:Uk,Gpu:Gk,GpuIcon:Gk,Grab:No,GrabIcon:No,GraduationCap:Wk,GraduationCapIcon:Wk,Grape:Kk,GrapeIcon:Kk,Grid:Ft,Grid2X2:Fo,Grid2X2Check:Ho,Grid2X2CheckIcon:Ho,Grid2X2Icon:Fo,Grid2X2Plus:jo,Grid2X2PlusIcon:jo,Grid2X2X:Oo,Grid2X2XIcon:Oo,Grid2x2:Fo,Grid2x2Check:Ho,Grid2x2CheckIcon:Ho,Grid2x2Icon:Fo,Grid2x2Plus:jo,Grid2x2PlusIcon:jo,Grid2x2X:Oo,Grid2x2XIcon:Oo,Grid3X3:Ft,Grid3X3Icon:Ft,Grid3x2:Xk,Grid3x2Icon:Xk,Grid3x3:Ft,Grid3x3Icon:Ft,GridIcon:Ft,Grip:Qk,GripHorizontal:Zk,GripHorizontalIcon:Zk,GripIcon:Qk,GripVertical:Yk,GripVerticalIcon:Yk,Group:e4,GroupIcon:e4,Guitar:Jk,GuitarIcon:Jk,Ham:t4,HamIcon:t4,Hamburger:a4,HamburgerIcon:a4,Hammer:n4,HammerIcon:n4,Hand:c4,HandCoins:o4,HandCoinsIcon:o4,HandFist:r4,HandFistIcon:r4,HandGrab:No,HandGrabIcon:No,HandHeart:i4,HandHeartIcon:i4,HandHelping:Ro,HandHelpingIcon:Ro,HandIcon:c4,HandMetal:s4,HandMetalIcon:s4,HandPlatter:l4,HandPlatterIcon:l4,Handbag:d4,HandbagIcon:d4,Handshake:h4,HandshakeIcon:h4,HardDrive:y4,HardDriveDownload:u4,HardDriveDownloadIcon:u4,HardDriveIcon:y4,HardDriveUpload:p4,HardDriveUploadIcon:p4,HardHat:f4,HardHatIcon:f4,Hash:m4,HashIcon:m4,HatGlasses:k4,HatGlassesIcon:k4,Haze:g4,HazeIcon:g4,Hd:b4,HdIcon:b4,HdmiPort:M4,HdmiPortIcon:M4,Heading:I4,Heading1:x4,Heading1Icon:x4,Heading2:w4,Heading2Icon:w4,Heading3:v4,Heading3Icon:v4,Heading4:C4,Heading4Icon:C4,Heading5:L4,Heading5Icon:L4,Heading6:S4,Heading6Icon:S4,HeadingIcon:I4,HeadphoneOff:_4,HeadphoneOffIcon:_4,Headphones:A4,HeadphonesIcon:A4,Headset:B4,HeadsetIcon:B4,Heart:T4,HeartCrack:V4,HeartCrackIcon:V4,HeartHandshake:P4,HeartHandshakeIcon:P4,HeartIcon:T4,HeartMinus:z4,HeartMinusIcon:z4,HeartOff:q4,HeartOffIcon:q4,HeartPlus:D4,HeartPlusIcon:D4,HeartPulse:E4,HeartPulseIcon:E4,Heater:H4,HeaterIcon:H4,Helicopter:O4,HelicopterIcon:O4,HelpCircle:Ht,HelpCircleIcon:Ht,HelpingHand:Ro,HelpingHandIcon:Ro,Hexagon:j4,HexagonIcon:j4,Highlighter:F4,HighlighterIcon:F4,History:N4,HistoryIcon:N4,Home:$o,HomeIcon:$o,Hop:$4,HopIcon:$4,HopOff:R4,HopOffIcon:R4,Hospital:U4,HospitalIcon:U4,Hotel:W4,HotelIcon:W4,Hourglass:G4,HourglassIcon:G4,House:$o,HouseHeart:K4,HouseHeartIcon:K4,HouseIcon:$o,HousePlug:X4,HousePlugIcon:X4,HousePlus:Z4,HousePlusIcon:Z4,HouseWifi:Y4,HouseWifiIcon:Y4,IceCream:Wo,IceCream2:Uo,IceCream2Icon:Uo,IceCreamBowl:Uo,IceCreamBowlIcon:Uo,IceCreamCone:Wo,IceCreamConeIcon:Wo,IceCreamIcon:Wo,Icon:bA,IdCard:J4,IdCardIcon:J4,IdCardLanyard:Q4,IdCardLanyardIcon:Q4,Image:sg,ImageDown:eg,ImageDownIcon:eg,ImageIcon:sg,ImageMinus:tg,ImageMinusIcon:tg,ImageOff:ag,ImageOffIcon:ag,ImagePlay:ng,ImagePlayIcon:ng,ImagePlus:og,ImagePlusIcon:og,ImageUp:rg,ImageUpIcon:rg,ImageUpscale:ig,ImageUpscaleIcon:ig,Images:lg,ImagesIcon:lg,Import:dg,ImportIcon:dg,Inbox:cg,InboxIcon:cg,Indent:Rt,IndentDecrease:Nt,IndentDecreaseIcon:Nt,IndentIcon:Rt,IndentIncrease:Rt,IndentIncreaseIcon:Rt,IndianRupee:hg,IndianRupeeIcon:hg,Infinity:ug,InfinityIcon:ug,Info:pg,InfoIcon:pg,Inspect:hi,InspectIcon:hi,InspectionPanel:yg,InspectionPanelIcon:yg,Instagram:fg,InstagramIcon:fg,Italic:mg,ItalicIcon:mg,IterationCcw:kg,IterationCcwIcon:kg,IterationCw:gg,IterationCwIcon:gg,JapaneseYen:bg,JapaneseYenIcon:bg,Joystick:Mg,JoystickIcon:Mg,Kanban:xg,KanbanIcon:xg,KanbanSquare:ii,KanbanSquareDashed:Jr,KanbanSquareDashedIcon:Jr,KanbanSquareIcon:ii,Kayak:wg,KayakIcon:wg,Key:Sg,KeyIcon:Sg,KeyRound:vg,KeyRoundIcon:vg,KeySquare:Cg,KeySquareIcon:Cg,Keyboard:_g,KeyboardIcon:_g,KeyboardMusic:Lg,KeyboardMusicIcon:Lg,KeyboardOff:Ig,KeyboardOffIcon:Ig,Lamp:qg,LampCeiling:Ag,LampCeilingIcon:Ag,LampDesk:Bg,LampDeskIcon:Bg,LampFloor:zg,LampFloorIcon:zg,LampIcon:qg,LampWallDown:Vg,LampWallDownIcon:Vg,LampWallUp:Pg,LampWallUpIcon:Pg,LandPlot:Dg,LandPlotIcon:Dg,Landmark:Tg,LandmarkIcon:Tg,Languages:Eg,LanguagesIcon:Eg,Laptop:Og,Laptop2:Go,Laptop2Icon:Go,LaptopIcon:Og,LaptopMinimal:Go,LaptopMinimalCheck:Hg,LaptopMinimalCheckIcon:Hg,LaptopMinimalIcon:Go,Lasso:Fg,LassoIcon:Fg,LassoSelect:jg,LassoSelectIcon:jg,Laugh:Ng,LaughIcon:Ng,Layers:Ko,Layers2:Rg,Layers2Icon:Rg,Layers3:Ko,Layers3Icon:Ko,LayersIcon:Ko,LayersPlus:$g,LayersPlusIcon:$g,Layout:pr,LayoutDashboard:Ug,LayoutDashboardIcon:Ug,LayoutGrid:Wg,LayoutGridIcon:Wg,LayoutIcon:pr,LayoutList:Gg,LayoutListIcon:Gg,LayoutPanelLeft:Kg,LayoutPanelLeftIcon:Kg,LayoutPanelTop:Xg,LayoutPanelTopIcon:Xg,LayoutTemplate:Zg,LayoutTemplateIcon:Zg,Leaf:Yg,LeafIcon:Yg,LeafyGreen:Qg,LeafyGreenIcon:Qg,Lectern:Jg,LecternIcon:Jg,LensConcave:e5,LensConcaveIcon:e5,LensConvex:t5,LensConvexIcon:t5,LetterText:Pi,LetterTextIcon:Pi,Library:r5,LibraryBig:a5,LibraryBigIcon:a5,LibraryIcon:r5,LibrarySquare:si,LibrarySquareIcon:si,LifeBuoy:o5,LifeBuoyIcon:o5,Ligature:n5,LigatureIcon:n5,Lightbulb:s5,LightbulbIcon:s5,LightbulbOff:i5,LightbulbOffIcon:i5,LineChart:pn,LineChartIcon:pn,LineDotRightHorizontal:l5,LineDotRightHorizontalIcon:l5,LineSquiggle:c5,LineSquiggleIcon:c5,Link:ll,Link2:h5,Link2Icon:h5,Link2Off:d5,Link2OffIcon:d5,LinkIcon:ll,Linkedin:u5,LinkedinIcon:u5,List:V5,ListCheck:p5,ListCheckIcon:p5,ListChecks:y5,ListChecksIcon:y5,ListChevronsDownUp:m5,ListChevronsDownUpIcon:m5,ListChevronsUpDown:f5,ListChevronsUpDownIcon:f5,ListCollapse:k5,ListCollapseIcon:k5,ListEnd:g5,ListEndIcon:g5,ListFilter:b5,ListFilterIcon:b5,ListFilterPlus:M5,ListFilterPlusIcon:M5,ListIcon:V5,ListIndentDecrease:Nt,ListIndentDecreaseIcon:Nt,ListIndentIncrease:Rt,ListIndentIncreaseIcon:Rt,ListMinus:C5,ListMinusIcon:C5,ListMusic:x5,ListMusicIcon:x5,ListOrdered:w5,ListOrderedIcon:w5,ListPlus:v5,ListPlusIcon:v5,ListRestart:L5,ListRestartIcon:L5,ListStart:S5,ListStartIcon:S5,ListTodo:_5,ListTodoIcon:_5,ListTree:I5,ListTreeIcon:I5,ListVideo:A5,ListVideoIcon:A5,ListX:B5,ListXIcon:B5,Loader:P5,Loader2:Lt,Loader2Icon:Lt,LoaderCircle:Lt,LoaderCircleIcon:Lt,LoaderIcon:P5,LoaderPinwheel:z5,LoaderPinwheelIcon:z5,Locate:E5,LocateFixed:q5,LocateFixedIcon:q5,LocateIcon:E5,LocateOff:D5,LocateOffIcon:D5,LocationEdit:Qo,LocationEditIcon:Qo,Lock:H5,LockIcon:H5,LockKeyhole:T5,LockKeyholeIcon:T5,LockKeyholeOpen:Xo,LockKeyholeOpenIcon:Xo,LockOpen:Zo,LockOpenIcon:Zo,LogIn:O5,LogInIcon:O5,LogOut:j5,LogOutIcon:j5,Logs:F5,LogsIcon:F5,Lollipop:N5,LollipopIcon:N5,LucideAArrowDown:f1,LucideAArrowUp:m1,LucideALargeSmall:k1,LucideAccessibility:g1,LucideActivity:b1,LucideActivitySquare:Ar,LucideAirVent:M1,LucideAirplay:x1,LucideAlarmCheck:Na,LucideAlarmClock:v1,LucideAlarmClockCheck:Na,LucideAlarmClockMinus:Ra,LucideAlarmClockOff:w1,LucideAlarmClockPlus:$a,LucideAlarmMinus:Ra,LucideAlarmPlus:$a,LucideAlarmSmoke:C1,LucideAlbum:S1,LucideAlertCircle:Tt,LucideAlertOctagon:ar,LucideAlertTriangle:Oi,LucideAlignCenter:zi,LucideAlignCenterHorizontal:L1,LucideAlignCenterVertical:I1,LucideAlignEndHorizontal:_1,LucideAlignEndVertical:A1,LucideAlignHorizontalDistributeCenter:B1,LucideAlignHorizontalDistributeEnd:V1,LucideAlignHorizontalDistributeStart:z1,LucideAlignHorizontalJustifyCenter:P1,LucideAlignHorizontalJustifyEnd:q1,LucideAlignHorizontalJustifyStart:D1,LucideAlignHorizontalSpaceAround:E1,LucideAlignHorizontalSpaceBetween:T1,LucideAlignJustify:Vi,LucideAlignLeft:Ut,LucideAlignRight:Bi,LucideAlignStartHorizontal:H1,LucideAlignStartVertical:O1,LucideAlignVerticalDistributeCenter:j1,LucideAlignVerticalDistributeEnd:F1,LucideAlignVerticalDistributeStart:N1,LucideAlignVerticalJustifyCenter:R1,LucideAlignVerticalJustifyEnd:$1,LucideAlignVerticalJustifyStart:U1,LucideAlignVerticalSpaceAround:W1,LucideAlignVerticalSpaceBetween:G1,LucideAmbulance:K1,LucideAmpersand:X1,LucideAmpersands:Z1,LucideAmphora:Q1,LucideAnchor:Y1,LucideAngry:J1,LucideAnnoyed:ec,LucideAntenna:tc,LucideAnvil:ac,LucideAperture:nc,LucideAppWindow:rc,LucideAppWindowMac:oc,LucideApple:ic,LucideArchive:cc,LucideArchiveRestore:sc,LucideArchiveX:lc,LucideAreaChart:rn,LucideArmchair:dc,LucideArrowBigDown:uc,LucideArrowBigDownDash:hc,LucideArrowBigLeft:yc,LucideArrowBigLeftDash:pc,LucideArrowBigRight:mc,LucideArrowBigRightDash:fc,LucideArrowBigUp:kc,LucideArrowBigUpDash:gc,LucideArrowDown:_c,LucideArrowDown01:Mc,LucideArrowDown10:bc,LucideArrowDownAZ:Ua,LucideArrowDownAz:Ua,LucideArrowDownCircle:wn,LucideArrowDownFromLine:xc,LucideArrowDownLeft:wc,LucideArrowDownLeftFromCircle:Cn,LucideArrowDownLeftFromSquare:qr,LucideArrowDownLeftSquare:Br,LucideArrowDownNarrowWide:Cc,LucideArrowDownRight:vc,LucideArrowDownRightFromCircle:Ln,LucideArrowDownRightFromSquare:Dr,LucideArrowDownRightSquare:Vr,LucideArrowDownSquare:zr,LucideArrowDownToDot:Lc,LucideArrowDownToLine:Sc,LucideArrowDownUp:Ic,LucideArrowDownWideNarrow:Wa,LucideArrowDownZA:Ga,LucideArrowDownZa:Ga,LucideArrowLeft:zc,LucideArrowLeftCircle:vn,LucideArrowLeftFromLine:Ac,LucideArrowLeftRight:Vc,LucideArrowLeftSquare:Pr,LucideArrowLeftToLine:Bc,LucideArrowRight:Qs,LucideArrowRightCircle:_n,LucideArrowRightFromLine:Pc,LucideArrowRightLeft:qc,LucideArrowRightSquare:Hr,LucideArrowRightToLine:Dc,LucideArrowUp:Wc,LucideArrowUp01:Ec,LucideArrowUp10:Tc,LucideArrowUpAZ:Ka,LucideArrowUpAz:Ka,LucideArrowUpCircle:An,LucideArrowUpDown:Hc,LucideArrowUpFromDot:Oc,LucideArrowUpFromLine:jc,LucideArrowUpLeft:Fc,LucideArrowUpLeftFromCircle:Sn,LucideArrowUpLeftFromSquare:Er,LucideArrowUpLeftSquare:jr,LucideArrowUpNarrowWide:Xa,LucideArrowUpRight:Nc,LucideArrowUpRightFromCircle:In,LucideArrowUpRightFromSquare:Tr,LucideArrowUpRightSquare:Or,LucideArrowUpSquare:Fr,LucideArrowUpToLine:Rc,LucideArrowUpWideNarrow:$c,LucideArrowUpZA:Za,LucideArrowUpZa:Za,LucideArrowsUpFromLine:Uc,LucideAsterisk:Gc,LucideAsteriskSquare:Nr,LucideAtSign:Kc,LucideAtom:Xc,LucideAudioLines:Zc,LucideAudioWaveform:Yc,LucideAward:Qc,LucideAxe:Jc,LucideAxis3D:Ya,LucideAxis3d:Ya,LucideBaby:td,LucideBackpack:ed,LucideBadge:kd,LucideBadgeAlert:ad,LucideBadgeCent:nd,LucideBadgeCheck:Qa,LucideBadgeDollarSign:od,LucideBadgeEuro:rd,LucideBadgeHelp:Ja,LucideBadgeIndianRupee:id,LucideBadgeInfo:sd,LucideBadgeJapaneseYen:ld,LucideBadgeMinus:cd,LucideBadgePercent:dd,LucideBadgePlus:hd,LucideBadgePoundSterling:ud,LucideBadgeQuestionMark:Ja,LucideBadgeRussianRuble:pd,LucideBadgeSwissFranc:yd,LucideBadgeTurkishLira:fd,LucideBadgeX:md,LucideBaggageClaim:gd,LucideBalloon:bd,LucideBan:xd,LucideBanana:Md,LucideBandage:wd,LucideBanknote:_d,LucideBanknoteArrowDown:vd,LucideBanknoteArrowUp:Cd,LucideBanknoteX:Ld,LucideBarChart:yn,LucideBarChart2:fn,LucideBarChart3:un,LucideBarChart4:hn,LucideBarChartBig:dn,LucideBarChartHorizontal:cn,LucideBarChartHorizontalBig:sn,LucideBarcode:Sd,LucideBarrel:Id,LucideBaseline:Ad,LucideBath:Bd,LucideBattery:Td,LucideBatteryCharging:Vd,LucideBatteryFull:zd,LucideBatteryLow:Pd,LucideBatteryMedium:Dd,LucideBatteryPlus:qd,LucideBatteryWarning:Ed,LucideBeaker:Hd,LucideBean:jd,LucideBeanOff:Od,LucideBed:Rd,LucideBedDouble:Fd,LucideBedSingle:Nd,LucideBeef:$d,LucideBeer:Wd,LucideBeerOff:Ud,LucideBell:Qd,LucideBellDot:Gd,LucideBellElectric:Kd,LucideBellMinus:Xd,LucideBellOff:Zd,LucideBellPlus:Yd,LucideBellRing:Jd,LucideBetweenHorizonalEnd:en,LucideBetweenHorizonalStart:tn,LucideBetweenHorizontalEnd:en,LucideBetweenHorizontalStart:tn,LucideBetweenVerticalEnd:e0,LucideBetweenVerticalStart:t0,LucideBicepsFlexed:a0,LucideBike:n0,LucideBinary:o0,LucideBinoculars:i0,LucideBiohazard:r0,LucideBird:s0,LucideBirdhouse:l0,LucideBitcoin:c0,LucideBlend:d0,LucideBlinds:h0,LucideBlocks:p0,LucideBluetooth:m0,LucideBluetoothConnected:u0,LucideBluetoothOff:y0,LucideBluetoothSearching:f0,LucideBold:k0,LucideBolt:g0,LucideBomb:b0,LucideBone:M0,LucideBook:U0,LucideBookA:x0,LucideBookAlert:w0,LucideBookAudio:v0,LucideBookCheck:L0,LucideBookCopy:C0,LucideBookDashed:an,LucideBookDown:S0,LucideBookHeadphones:I0,LucideBookHeart:_0,LucideBookImage:A0,LucideBookKey:B0,LucideBookLock:V0,LucideBookMarked:z0,LucideBookMinus:P0,LucideBookOpen:E0,LucideBookOpenCheck:q0,LucideBookOpenText:D0,LucideBookPlus:T0,LucideBookSearch:H0,LucideBookTemplate:an,LucideBookText:O0,LucideBookType:j0,LucideBookUp:F0,LucideBookUp2:N0,LucideBookUser:R0,LucideBookX:$0,LucideBookmark:Z0,LucideBookmarkCheck:W0,LucideBookmarkMinus:G0,LucideBookmarkPlus:K0,LucideBookmarkX:X0,LucideBoomBox:Q0,LucideBot:e2,LucideBotMessageSquare:Y0,LucideBotOff:J0,LucideBottleWine:a2,LucideBowArrow:t2,LucideBox:n2,LucideBoxSelect:ti,LucideBoxes:o2,LucideBraces:nn,LucideBrackets:r2,LucideBrain:l2,LucideBrainCircuit:s2,LucideBrainCog:i2,LucideBrickWall:d2,LucideBrickWallFire:c2,LucideBrickWallShield:h2,LucideBriefcase:y2,LucideBriefcaseBusiness:u2,LucideBriefcaseConveyorBelt:p2,LucideBriefcaseMedical:f2,LucideBringToFront:m2,LucideBrush:g2,LucideBrushCleaning:k2,LucideBubbles:b2,LucideBug:w2,LucideBugOff:M2,LucideBugPlay:x2,LucideBuilding:C2,LucideBuilding2:v2,LucideBus:S2,LucideBusFront:L2,LucideCable:_2,LucideCableCar:I2,LucideCake:B2,LucideCakeSlice:A2,LucideCalculator:V2,LucideCalendar:Js,LucideCalendar1:z2,LucideCalendarArrowDown:D2,LucideCalendarArrowUp:P2,LucideCalendarCheck:E2,LucideCalendarCheck2:q2,LucideCalendarClock:T2,LucideCalendarCog:O2,LucideCalendarDays:H2,LucideCalendarFold:j2,LucideCalendarHeart:F2,LucideCalendarMinus:R2,LucideCalendarMinus2:N2,LucideCalendarOff:$2,LucideCalendarPlus:W2,LucideCalendarPlus2:U2,LucideCalendarRange:G2,LucideCalendarSearch:K2,LucideCalendarSync:X2,LucideCalendarX:Y2,LucideCalendarX2:Z2,LucideCalendars:Q2,LucideCamera:eh,LucideCameraOff:J2,LucideCandlestickChart:ln,LucideCandy:nh,LucideCandyCane:th,LucideCandyOff:ah,LucideCannabis:rh,LucideCannabisOff:oh,LucideCaptions:on,LucideCaptionsOff:ih,LucideCar:ch,LucideCarFront:sh,LucideCarTaxiFront:lh,LucideCaravan:dh,LucideCardSim:hh,LucideCarrot:uh,LucideCaseLower:ph,LucideCaseSensitive:yh,LucideCaseUpper:fh,LucideCassetteTape:mh,LucideCast:kh,LucideCastle:gh,LucideCat:bh,LucideCctv:Mh,LucideChartArea:rn,LucideChartBar:cn,LucideChartBarBig:sn,LucideChartBarDecreasing:wh,LucideChartBarIncreasing:xh,LucideChartBarStacked:vh,LucideChartCandlestick:ln,LucideChartColumn:un,LucideChartColumnBig:dn,LucideChartColumnDecreasing:Ch,LucideChartColumnIncreasing:hn,LucideChartColumnStacked:Lh,LucideChartGantt:Sh,LucideChartLine:pn,LucideChartNetwork:Ih,LucideChartNoAxesColumn:fn,LucideChartNoAxesColumnDecreasing:_h,LucideChartNoAxesColumnIncreasing:yn,LucideChartNoAxesCombined:Ah,LucideChartNoAxesGantt:kn,LucideChartPie:mn,LucideChartScatter:gn,LucideChartSpline:Vh,LucideCheck:ka,LucideCheckCheck:Bh,LucideCheckCircle:ga,LucideCheckCircle2:Bn,LucideCheckLine:zh,LucideCheckSquare:Wr,LucideCheckSquare2:Gr,LucideChefHat:Ph,LucideCherry:qh,LucideChessBishop:Dh,LucideChessKing:Eh,LucideChessKnight:Th,LucideChessPawn:Hh,LucideChessQueen:Oh,LucideChessRook:jh,LucideChevronDown:Et,LucideChevronDownCircle:zn,LucideChevronDownSquare:Kr,LucideChevronFirst:Fh,LucideChevronLast:Nh,LucideChevronLeft:bn,LucideChevronLeftCircle:Pn,LucideChevronLeftSquare:Xr,LucideChevronRight:Mn,LucideChevronRightCircle:Vn,LucideChevronRightSquare:Zr,LucideChevronUp:el,LucideChevronUpCircle:qn,LucideChevronUpSquare:Yr,LucideChevronsDown:$h,LucideChevronsDownUp:Rh,LucideChevronsLeft:tl,LucideChevronsLeftRight:Wh,LucideChevronsLeftRightEllipsis:Uh,LucideChevronsRight:al,LucideChevronsRightLeft:Gh,LucideChevronsUp:Xh,LucideChevronsUpDown:Kh,LucideChrome:xn,LucideChromium:xn,LucideChurch:Yh,LucideCigarette:Qh,LucideCigaretteOff:Zh,LucideCircle:nl,LucideCircleAlert:Tt,LucideCircleArrowDown:wn,LucideCircleArrowLeft:vn,LucideCircleArrowOutDownLeft:Cn,LucideCircleArrowOutDownRight:Ln,LucideCircleArrowOutUpLeft:Sn,LucideCircleArrowOutUpRight:In,LucideCircleArrowRight:_n,LucideCircleArrowUp:An,LucideCircleCheck:Bn,LucideCircleCheckBig:ga,LucideCircleChevronDown:zn,LucideCircleChevronLeft:Pn,LucideCircleChevronRight:Vn,LucideCircleChevronUp:qn,LucideCircleDashed:Jh,LucideCircleDivide:Dn,LucideCircleDollarSign:eu,LucideCircleDot:au,LucideCircleDotDashed:tu,LucideCircleEllipsis:ou,LucideCircleEqual:nu,LucideCircleFadingArrowUp:ru,LucideCircleFadingPlus:iu,LucideCircleGauge:En,LucideCircleHelp:Ht,LucideCircleMinus:Tn,LucideCircleOff:su,LucideCircleParking:On,LucideCircleParkingOff:Hn,LucideCirclePause:jn,LucideCirclePercent:Fn,LucideCirclePile:lu,LucideCirclePlay:Nn,LucideCirclePlus:Rn,LucideCirclePoundSterling:cu,LucideCirclePower:$n,LucideCircleQuestionMark:Ht,LucideCircleSlash:du,LucideCircleSlash2:Un,LucideCircleSlashed:Un,LucideCircleSmall:hu,LucideCircleStar:uu,LucideCircleStop:Wn,LucideCircleUser:Kn,LucideCircleUserRound:Gn,LucideCircleX:Xn,LucideCircuitBoard:pu,LucideCitrus:yu,LucideClapperboard:fu,LucideClipboard:Lu,LucideClipboardCheck:ku,LucideClipboardClock:mu,LucideClipboardCopy:gu,LucideClipboardEdit:Yn,LucideClipboardList:bu,LucideClipboardMinus:Mu,LucideClipboardPaste:xu,LucideClipboardPen:Yn,LucideClipboardPenLine:Zn,LucideClipboardPlus:wu,LucideClipboardSignature:Zn,LucideClipboardType:vu,LucideClipboardX:Cu,LucideClock:ol,LucideClock1:Su,LucideClock10:Iu,LucideClock11:_u,LucideClock12:Au,LucideClock2:Bu,LucideClock3:Vu,LucideClock4:zu,LucideClock5:Pu,LucideClock6:qu,LucideClock7:Du,LucideClock8:Eu,LucideClock9:Tu,LucideClockAlert:Hu,LucideClockArrowDown:Ou,LucideClockArrowUp:ju,LucideClockCheck:Fu,LucideClockFading:Nu,LucideClockPlus:Ru,LucideClosedCaption:$u,LucideCloud:lp,LucideCloudAlert:Uu,LucideCloudBackup:Wu,LucideCloudCheck:Gu,LucideCloudCog:Ku,LucideCloudDownload:Qn,LucideCloudDrizzle:Xu,LucideCloudFog:Zu,LucideCloudHail:Yu,LucideCloudLightning:Qu,LucideCloudMoon:ep,LucideCloudMoonRain:Ju,LucideCloudOff:tp,LucideCloudRain:np,LucideCloudRainWind:ap,LucideCloudSnow:op,LucideCloudSun:ip,LucideCloudSunRain:rp,LucideCloudSync:sp,LucideCloudUpload:ba,LucideCloudy:cp,LucideClover:dp,LucideClub:hp,LucideCode:up,LucideCode2:Jn,LucideCodeSquare:Qr,LucideCodeXml:Jn,LucideCodepen:pp,LucideCodesandbox:yp,LucideCoffee:fp,LucideCog:mp,LucideCoins:kp,LucideColumns:eo,LucideColumns2:eo,LucideColumns3:to,LucideColumns3Cog:Ot,LucideColumns4:gp,LucideColumnsSettings:Ot,LucideCombine:bp,LucideCommand:Mp,LucideCompass:xp,LucideComponent:wp,LucideComputer:vp,LucideConciergeBell:Cp,LucideCone:Lp,LucideConstruction:Sp,LucideContact:Ip,LucideContact2:ao,LucideContactRound:ao,LucideContainer:_p,LucideContrast:Ap,LucideCookie:Vp,LucideCookingPot:Bp,LucideCopy:Tp,LucideCopyCheck:zp,LucideCopyMinus:Pp,LucideCopyPlus:qp,LucideCopySlash:Ep,LucideCopyX:Dp,LucideCopyleft:Hp,LucideCopyright:Op,LucideCornerDownLeft:jp,LucideCornerDownRight:Np,LucideCornerLeftDown:Fp,LucideCornerLeftUp:Rp,LucideCornerRightDown:$p,LucideCornerRightUp:Up,LucideCornerUpLeft:Wp,LucideCornerUpRight:Gp,LucideCpu:xs,LucideCreativeCommons:Kp,LucideCreditCard:Xp,LucideCroissant:Zp,LucideCrop:Yp,LucideCross:Qp,LucideCrosshair:ey,LucideCrown:Jp,LucideCuboid:ty,LucideCupSoda:ay,LucideCurlyBraces:nn,LucideCurrency:ny,LucideCylinder:oy,LucideDam:ry,LucideDatabase:cy,LucideDatabaseBackup:iy,LucideDatabaseSearch:sy,LucideDatabaseZap:ly,LucideDecimalsArrowLeft:dy,LucideDecimalsArrowRight:hy,LucideDelete:uy,LucideDessert:py,LucideDiameter:yy,LucideDiamond:ky,LucideDiamondMinus:fy,LucideDiamondPercent:no,LucideDiamondPlus:my,LucideDice1:gy,LucideDice2:by,LucideDice3:My,LucideDice4:xy,LucideDice5:wy,LucideDice6:vy,LucideDices:Cy,LucideDiff:Ly,LucideDisc:Ay,LucideDisc2:Sy,LucideDisc3:Iy,LucideDiscAlbum:_y,LucideDivide:By,LucideDivideCircle:Dn,LucideDivideSquare:ni,LucideDna:zy,LucideDnaOff:Vy,LucideDock:Py,LucideDog:Dy,LucideDollarSign:qy,LucideDonut:Ty,LucideDoorClosed:Hy,LucideDoorClosedLocked:Ey,LucideDoorOpen:Oy,LucideDot:jy,LucideDotSquare:ai,LucideDownload:rl,LucideDownloadCloud:Qn,LucideDraftingCompass:Fy,LucideDrama:Ry,LucideDribbble:Ny,LucideDrill:$y,LucideDrone:Uy,LucideDroplet:Gy,LucideDropletOff:Wy,LucideDroplets:Ky,LucideDrum:Xy,LucideDrumstick:Zy,LucideDumbbell:Yy,LucideEar:Jy,LucideEarOff:Qy,LucideEarth:oo,LucideEarthLock:ef,LucideEclipse:tf,LucideEdit:at,LucideEdit2:fr,LucideEdit3:yr,LucideEgg:nf,LucideEggFried:af,LucideEggOff:of,LucideEllipsis:Ma,LucideEllipsisVertical:ro,LucideEqual:lf,LucideEqualApproximately:sf,LucideEqualNot:rf,LucideEqualSquare:oi,LucideEraser:cf,LucideEthernetPort:df,LucideEuro:hf,LucideEvCharger:uf,LucideExpand:pf,LucideExternalLink:yf,LucideEye:ws,LucideEyeClosed:ff,LucideEyeOff:il,LucideFacebook:mf,LucideFactory:kf,LucideFan:gf,LucideFastForward:bf,LucideFeather:Mf,LucideFence:xf,LucideFerrisWheel:wf,LucideFigma:vf,LucideFile:Yf,LucideFileArchive:Cf,LucideFileAudio:jt,LucideFileAudio2:jt,LucideFileAxis3D:io,LucideFileAxis3d:io,LucideFileBadge:so,LucideFileBadge2:so,LucideFileBarChart:ho,LucideFileBarChart2:uo,LucideFileBox:Lf,LucideFileBraces:co,LucideFileBracesCorner:lo,LucideFileChartColumn:uo,LucideFileChartColumnIncreasing:ho,LucideFileChartLine:po,LucideFileChartPie:yo,LucideFileCheck:Sf,LucideFileCheck2:fo,LucideFileCheckCorner:fo,LucideFileClock:If,LucideFileCode:_f,LucideFileCode2:mo,LucideFileCodeCorner:mo,LucideFileCog:ko,LucideFileCog2:ko,LucideFileDiff:Af,LucideFileDigit:Vf,LucideFileDown:Bf,LucideFileEdit:Co,LucideFileExclamationPoint:go,LucideFileHeadphone:jt,LucideFileHeart:zf,LucideFileImage:Pf,LucideFileInput:qf,LucideFileJson:co,LucideFileJson2:lo,LucideFileKey:bo,LucideFileKey2:bo,LucideFileLineChart:po,LucideFileLock:Mo,LucideFileLock2:Mo,LucideFileMinus:Ef,LucideFileMinus2:xo,LucideFileMinusCorner:xo,LucideFileMusic:Df,LucideFileOutput:Tf,LucideFilePen:Co,LucideFilePenLine:wo,LucideFilePieChart:yo,LucideFilePlay:vo,LucideFilePlus:Hf,LucideFilePlus2:Lo,LucideFilePlusCorner:Lo,LucideFileQuestion:So,LucideFileQuestionMark:So,LucideFileScan:Of,LucideFileSearch:jf,LucideFileSearch2:Io,LucideFileSearchCorner:Io,LucideFileSignal:_o,LucideFileSignature:wo,LucideFileSliders:Ff,LucideFileSpreadsheet:Nf,LucideFileStack:Rf,LucideFileSymlink:$f,LucideFileTerminal:Uf,LucideFileText:vs,LucideFileType:Wf,LucideFileType2:Ao,LucideFileTypeCorner:Ao,LucideFileUp:Gf,LucideFileUser:Kf,LucideFileVideo:vo,LucideFileVideo2:Bo,LucideFileVideoCamera:Bo,LucideFileVolume:Xf,LucideFileVolume2:_o,LucideFileWarning:go,LucideFileX:Zf,LucideFileX2:Vo,LucideFileXCorner:Vo,LucideFiles:Jf,LucideFilm:Qf,LucideFilter:Eo,LucideFilterX:Do,LucideFingerprint:zo,LucideFingerprintPattern:zo,LucideFireExtinguisher:em,LucideFish:nm,LucideFishOff:tm,LucideFishSymbol:am,LucideFishingHook:om,LucideFlag:lm,LucideFlagOff:rm,LucideFlagTriangleLeft:im,LucideFlagTriangleRight:sm,LucideFlame:dm,LucideFlameKindling:cm,LucideFlashlight:um,LucideFlashlightOff:hm,LucideFlaskConical:ym,LucideFlaskConicalOff:pm,LucideFlaskRound:fm,LucideFlipHorizontal:$r,LucideFlipHorizontal2:mm,LucideFlipVertical:Ur,LucideFlipVertical2:km,LucideFlower:bm,LucideFlower2:gm,LucideFocus:Mm,LucideFoldHorizontal:xm,LucideFoldVertical:wm,LucideFolder:Zm,LucideFolderArchive:vm,LucideFolderCheck:Cm,LucideFolderClock:Lm,LucideFolderClosed:Sm,LucideFolderCode:Im,LucideFolderCog:Po,LucideFolderCog2:Po,LucideFolderDot:_m,LucideFolderDown:Am,LucideFolderEdit:qo,LucideFolderGit:Vm,LucideFolderGit2:Bm,LucideFolderHeart:zm,LucideFolderInput:Pm,LucideFolderKanban:Dm,LucideFolderKey:qm,LucideFolderLock:Em,LucideFolderMinus:Om,LucideFolderOpen:Hm,LucideFolderOpenDot:Tm,LucideFolderOutput:jm,LucideFolderPen:qo,LucideFolderPlus:Rm,LucideFolderRoot:Fm,LucideFolderSearch:$m,LucideFolderSearch2:Nm,LucideFolderSymlink:Wm,LucideFolderSync:Um,LucideFolderTree:Gm,LucideFolderUp:Km,LucideFolderX:Xm,LucideFolders:Ym,LucideFootprints:Qm,LucideForkKnife:Zi,LucideForkKnifeCrossed:Xi,LucideForklift:Jm,LucideForm:ek,LucideFormInput:gr,LucideForward:ak,LucideFrame:tk,LucideFramer:nk,LucideFrown:ok,LucideFuel:rk,LucideFullscreen:ik,LucideFunctionSquare:ri,LucideFunnel:Eo,LucideFunnelPlus:sk,LucideFunnelX:Do,LucideGalleryHorizontal:ck,LucideGalleryHorizontalEnd:lk,LucideGalleryThumbnails:dk,LucideGalleryVertical:uk,LucideGalleryVerticalEnd:hk,LucideGamepad:mk,LucideGamepad2:pk,LucideGamepadDirectional:yk,LucideGanttChart:kn,LucideGanttChartSquare:$t,LucideGauge:fk,LucideGaugeCircle:En,LucideGavel:kk,LucideGem:gk,LucideGeorgianLari:bk,LucideGhost:Mk,LucideGift:xk,LucideGitBranch:Ck,LucideGitBranchMinus:wk,LucideGitBranchPlus:vk,LucideGitCommit:To,LucideGitCommitHorizontal:To,LucideGitCommitVertical:Lk,LucideGitCompare:Ik,LucideGitCompareArrows:Sk,LucideGitFork:_k,LucideGitGraph:Ak,LucideGitMerge:Vk,LucideGitMergeConflict:Bk,LucideGitPullRequest:Tk,LucideGitPullRequestArrow:zk,LucideGitPullRequestClosed:Pk,LucideGitPullRequestCreate:Dk,LucideGitPullRequestCreateArrow:qk,LucideGitPullRequestDraft:Ek,LucideGithub:Hk,LucideGitlab:Ok,LucideGlassWater:jk,LucideGlasses:Fk,LucideGlobe:sl,LucideGlobe2:oo,LucideGlobeLock:Nk,LucideGlobeOff:Rk,LucideGlobeX:$k,LucideGoal:Uk,LucideGpu:Gk,LucideGrab:No,LucideGraduationCap:Wk,LucideGrape:Kk,LucideGrid:Ft,LucideGrid2X2:Fo,LucideGrid2X2Check:Ho,LucideGrid2X2Plus:jo,LucideGrid2X2X:Oo,LucideGrid2x2:Fo,LucideGrid2x2Check:Ho,LucideGrid2x2Plus:jo,LucideGrid2x2X:Oo,LucideGrid3X3:Ft,LucideGrid3x2:Xk,LucideGrid3x3:Ft,LucideGrip:Qk,LucideGripHorizontal:Zk,LucideGripVertical:Yk,LucideGroup:e4,LucideGuitar:Jk,LucideHam:t4,LucideHamburger:a4,LucideHammer:n4,LucideHand:c4,LucideHandCoins:o4,LucideHandFist:r4,LucideHandGrab:No,LucideHandHeart:i4,LucideHandHelping:Ro,LucideHandMetal:s4,LucideHandPlatter:l4,LucideHandbag:d4,LucideHandshake:h4,LucideHardDrive:y4,LucideHardDriveDownload:u4,LucideHardDriveUpload:p4,LucideHardHat:f4,LucideHash:m4,LucideHatGlasses:k4,LucideHaze:g4,LucideHd:b4,LucideHdmiPort:M4,LucideHeading:I4,LucideHeading1:x4,LucideHeading2:w4,LucideHeading3:v4,LucideHeading4:C4,LucideHeading5:L4,LucideHeading6:S4,LucideHeadphoneOff:_4,LucideHeadphones:A4,LucideHeadset:B4,LucideHeart:T4,LucideHeartCrack:V4,LucideHeartHandshake:P4,LucideHeartMinus:z4,LucideHeartOff:q4,LucideHeartPlus:D4,LucideHeartPulse:E4,LucideHeater:H4,LucideHelicopter:O4,LucideHelpCircle:Ht,LucideHelpingHand:Ro,LucideHexagon:j4,LucideHighlighter:F4,LucideHistory:N4,LucideHome:$o,LucideHop:$4,LucideHopOff:R4,LucideHospital:U4,LucideHotel:W4,LucideHourglass:G4,LucideHouse:$o,LucideHouseHeart:K4,LucideHousePlug:X4,LucideHousePlus:Z4,LucideHouseWifi:Y4,LucideIceCream:Wo,LucideIceCream2:Uo,LucideIceCreamBowl:Uo,LucideIceCreamCone:Wo,LucideIdCard:J4,LucideIdCardLanyard:Q4,LucideImage:sg,LucideImageDown:eg,LucideImageMinus:tg,LucideImageOff:ag,LucideImagePlay:ng,LucideImagePlus:og,LucideImageUp:rg,LucideImageUpscale:ig,LucideImages:lg,LucideImport:dg,LucideInbox:cg,LucideIndent:Rt,LucideIndentDecrease:Nt,LucideIndentIncrease:Rt,LucideIndianRupee:hg,LucideInfinity:ug,LucideInfo:pg,LucideInspect:hi,LucideInspectionPanel:yg,LucideInstagram:fg,LucideItalic:mg,LucideIterationCcw:kg,LucideIterationCw:gg,LucideJapaneseYen:bg,LucideJoystick:Mg,LucideKanban:xg,LucideKanbanSquare:ii,LucideKanbanSquareDashed:Jr,LucideKayak:wg,LucideKey:Sg,LucideKeyRound:vg,LucideKeySquare:Cg,LucideKeyboard:_g,LucideKeyboardMusic:Lg,LucideKeyboardOff:Ig,LucideLamp:qg,LucideLampCeiling:Ag,LucideLampDesk:Bg,LucideLampFloor:zg,LucideLampWallDown:Vg,LucideLampWallUp:Pg,LucideLandPlot:Dg,LucideLandmark:Tg,LucideLanguages:Eg,LucideLaptop:Og,LucideLaptop2:Go,LucideLaptopMinimal:Go,LucideLaptopMinimalCheck:Hg,LucideLasso:Fg,LucideLassoSelect:jg,LucideLaugh:Ng,LucideLayers:Ko,LucideLayers2:Rg,LucideLayers3:Ko,LucideLayersPlus:$g,LucideLayout:pr,LucideLayoutDashboard:Ug,LucideLayoutGrid:Wg,LucideLayoutList:Gg,LucideLayoutPanelLeft:Kg,LucideLayoutPanelTop:Xg,LucideLayoutTemplate:Zg,LucideLeaf:Yg,LucideLeafyGreen:Qg,LucideLectern:Jg,LucideLensConcave:e5,LucideLensConvex:t5,LucideLetterText:Pi,LucideLibrary:r5,LucideLibraryBig:a5,LucideLibrarySquare:si,LucideLifeBuoy:o5,LucideLigature:n5,LucideLightbulb:s5,LucideLightbulbOff:i5,LucideLineChart:pn,LucideLineDotRightHorizontal:l5,LucideLineSquiggle:c5,LucideLink:ll,LucideLink2:h5,LucideLink2Off:d5,LucideLinkedin:u5,LucideList:V5,LucideListCheck:p5,LucideListChecks:y5,LucideListChevronsDownUp:m5,LucideListChevronsUpDown:f5,LucideListCollapse:k5,LucideListEnd:g5,LucideListFilter:b5,LucideListFilterPlus:M5,LucideListIndentDecrease:Nt,LucideListIndentIncrease:Rt,LucideListMinus:C5,LucideListMusic:x5,LucideListOrdered:w5,LucideListPlus:v5,LucideListRestart:L5,LucideListStart:S5,LucideListTodo:_5,LucideListTree:I5,LucideListVideo:A5,LucideListX:B5,LucideLoader:P5,LucideLoader2:Lt,LucideLoaderCircle:Lt,LucideLoaderPinwheel:z5,LucideLocate:E5,LucideLocateFixed:q5,LucideLocateOff:D5,LucideLocationEdit:Qo,LucideLock:H5,LucideLockKeyhole:T5,LucideLockKeyholeOpen:Xo,LucideLockOpen:Zo,LucideLogIn:O5,LucideLogOut:j5,LucideLogs:F5,LucideLollipop:N5,LucideLuggage:R5,LucideMSquare:li,LucideMagnet:$5,LucideMail:Q5,LucideMailCheck:U5,LucideMailMinus:G5,LucideMailOpen:W5,LucideMailPlus:K5,LucideMailQuestion:Yo,LucideMailQuestionMark:Yo,LucideMailSearch:X5,LucideMailWarning:Y5,LucideMailX:Z5,LucideMailbox:t3,LucideMails:J5,LucideMap:y3,LucideMapMinus:e3,LucideMapPin:cl,LucideMapPinCheck:a3,LucideMapPinCheckInside:n3,LucideMapPinHouse:o3,LucideMapPinMinus:i3,LucideMapPinMinusInside:r3,LucideMapPinOff:s3,LucideMapPinPen:Qo,LucideMapPinPlus:c3,LucideMapPinPlusInside:l3,LucideMapPinX:d3,LucideMapPinXInside:h3,LucideMapPinned:u3,LucideMapPlus:p3,LucideMars:k3,LucideMarsStroke:f3,LucideMartini:m3,LucideMaximize:b3,LucideMaximize2:g3,LucideMedal:M3,LucideMegaphone:w3,LucideMegaphoneOff:x3,LucideMeh:v3,LucideMemoryStick:C3,LucideMenu:L3,LucideMenuSquare:ci,LucideMerge:S3,LucideMessageCircle:T3,LucideMessageCircleCheck:I3,LucideMessageCircleCode:_3,LucideMessageCircleDashed:A3,LucideMessageCircleHeart:B3,LucideMessageCircleMore:z3,LucideMessageCircleOff:V3,LucideMessageCirclePlus:P3,LucideMessageCircleQuestion:Jo,LucideMessageCircleQuestionMark:Jo,LucideMessageCircleReply:q3,LucideMessageCircleWarning:D3,LucideMessageCircleX:E3,LucideMessageSquare:Cs,LucideMessageSquareCheck:H3,LucideMessageSquareCode:O3,LucideMessageSquareDashed:j3,LucideMessageSquareDiff:F3,LucideMessageSquareDot:N3,LucideMessageSquareHeart:R3,LucideMessageSquareLock:$3,LucideMessageSquareMore:U3,LucideMessageSquareOff:W3,LucideMessageSquarePlus:G3,LucideMessageSquareQuote:K3,LucideMessageSquareReply:X3,LucideMessageSquareShare:Z3,LucideMessageSquareText:Q3,LucideMessageSquareWarning:Y3,LucideMessageSquareX:J3,LucideMessagesSquare:e8,LucideMetronome:t8,LucideMic:n8,LucideMic2:er,LucideMicOff:a8,LucideMicVocal:er,LucideMicrochip:o8,LucideMicroscope:r8,LucideMicrowave:i8,LucideMilestone:s8,LucideMilk:c8,LucideMilkOff:l8,LucideMinimize:d8,LucideMinimize2:h8,LucideMinus:dl,LucideMinusCircle:Tn,LucideMinusSquare:di,LucideMirrorRectangular:u8,LucideMirrorRound:p8,LucideMonitor:I8,LucideMonitorCheck:y8,LucideMonitorCloud:f8,LucideMonitorCog:m8,LucideMonitorDot:k8,LucideMonitorDown:g8,LucideMonitorOff:b8,LucideMonitorPause:M8,LucideMonitorPlay:x8,LucideMonitorSmartphone:w8,LucideMonitorSpeaker:v8,LucideMonitorStop:C8,LucideMonitorUp:L8,LucideMonitorX:S8,LucideMoon:A8,LucideMoonStar:_8,LucideMoreHorizontal:Ma,LucideMoreVertical:ro,LucideMotorbike:B8,LucideMountain:z8,LucideMountainSnow:V8,LucideMouse:F8,LucideMouseLeft:P8,LucideMouseOff:q8,LucideMousePointer:O8,LucideMousePointer2:E8,LucideMousePointer2Off:D8,LucideMousePointerBan:T8,LucideMousePointerClick:H8,LucideMousePointerSquareDashed:ei,LucideMouseRight:j8,LucideMove:e6,LucideMove3D:tr,LucideMove3d:tr,LucideMoveDiagonal:R8,LucideMoveDiagonal2:N8,LucideMoveDown:W8,LucideMoveDownLeft:$8,LucideMoveDownRight:U8,LucideMoveHorizontal:G8,LucideMoveLeft:K8,LucideMoveRight:Z8,LucideMoveUp:Q8,LucideMoveUpLeft:X8,LucideMoveUpRight:Y8,LucideMoveVertical:J8,LucideMusic:o6,LucideMusic2:t6,LucideMusic3:a6,LucideMusic4:n6,LucideNavigation:l6,LucideNavigation2:i6,LucideNavigation2Off:r6,LucideNavigationOff:s6,LucideNetwork:c6,LucideNewspaper:d6,LucideNfc:h6,LucideNonBinary:u6,LucideNotebook:m6,LucideNotebookPen:y6,LucideNotebookTabs:p6,LucideNotebookText:f6,LucideNotepadText:g6,LucideNotepadTextDashed:k6,LucideNut:M6,LucideNutOff:b6,LucideOctagon:w6,LucideOctagonAlert:ar,LucideOctagonMinus:x6,LucideOctagonPause:nr,LucideOctagonX:or,LucideOmega:v6,LucideOption:C6,LucideOrbit:L6,LucideOrigami:S6,LucideOutdent:Nt,LucidePackage:q6,LucidePackage2:I6,LucidePackageCheck:A6,LucidePackageMinus:_6,LucidePackageOpen:B6,LucidePackagePlus:V6,LucidePackageSearch:z6,LucidePackageX:P6,LucidePaintBucket:D6,LucidePaintRoller:E6,LucidePaintbrush:T6,LucidePaintbrush2:rr,LucidePaintbrushVertical:rr,LucidePalette:H6,LucidePalmtree:Hi,LucidePanda:O6,LucidePanelBottom:N6,LucidePanelBottomClose:j6,LucidePanelBottomDashed:ir,LucidePanelBottomInactive:ir,LucidePanelBottomOpen:F6,LucidePanelLeft:dr,LucidePanelLeftClose:lr,LucidePanelLeftDashed:sr,LucidePanelLeftInactive:sr,LucidePanelLeftOpen:cr,LucidePanelLeftRightDashed:R6,LucidePanelRight:W6,LucidePanelRightClose:$6,LucidePanelRightDashed:hr,LucidePanelRightInactive:hr,LucidePanelRightOpen:U6,LucidePanelTop:Z6,LucidePanelTopBottomDashed:G6,LucidePanelTopClose:K6,LucidePanelTopDashed:ur,LucidePanelTopInactive:ur,LucidePanelTopOpen:X6,LucidePanelsLeftBottom:Y6,LucidePanelsLeftRight:to,LucidePanelsRightBottom:Q6,LucidePanelsTopBottom:xr,LucidePanelsTopLeft:pr,LucidePaperclip:J6,LucideParentheses:e7,LucideParkingCircle:On,LucideParkingCircleOff:Hn,LucideParkingMeter:t7,LucideParkingSquare:pi,LucideParkingSquareOff:ui,LucidePartyPopper:a7,LucidePause:n7,LucidePauseCircle:jn,LucidePauseOctagon:nr,LucidePawPrint:o7,LucidePcCase:r7,LucidePen:fr,LucidePenBox:at,LucidePenLine:yr,LucidePenOff:i7,LucidePenSquare:at,LucidePenTool:s7,LucidePencil:mr,LucidePencilLine:l7,LucidePencilOff:c7,LucidePencilRuler:d7,LucidePentagon:h7,LucidePercent:u7,LucidePercentCircle:Fn,LucidePercentDiamond:no,LucidePercentSquare:yi,LucidePersonStanding:p7,LucidePhilippinePeso:y7,LucidePhone:hl,LucidePhoneCall:f7,LucidePhoneForwarded:m7,LucidePhoneIncoming:k7,LucidePhoneMissed:b7,LucidePhoneOff:g7,LucidePhoneOutgoing:M7,LucidePi:x7,LucidePiSquare:fi,LucidePiano:w7,LucidePickaxe:v7,LucidePictureInPicture:L7,LucidePictureInPicture2:C7,LucidePieChart:mn,LucidePiggyBank:S7,LucidePilcrow:A7,LucidePilcrowLeft:I7,LucidePilcrowRight:_7,LucidePilcrowSquare:mi,LucidePill:q7,LucidePillBottle:B7,LucidePin:z7,LucidePinOff:V7,LucidePipette:P7,LucidePizza:D7,LucidePlane:ul,LucidePlaneLanding:E7,LucidePlaneTakeoff:T7,LucidePlay:H7,LucidePlayCircle:Nn,LucidePlaySquare:ki,LucidePlug:j7,LucidePlug2:O7,LucidePlugZap:kr,LucidePlugZap2:kr,LucidePlus:pl,LucidePlusCircle:Rn,LucidePlusSquare:gi,LucidePocket:N7,LucidePocketKnife:F7,LucidePodcast:R7,LucidePointer:U7,LucidePointerOff:$7,LucidePopcorn:W7,LucidePopsicle:G7,LucidePoundSterling:X7,LucidePower:Z7,LucidePowerCircle:$n,LucidePowerOff:K7,LucidePowerSquare:bi,LucidePresentation:Y7,LucidePrinter:eb,LucidePrinterCheck:Q7,LucidePrinterX:J7,LucideProjector:tb,LucideProportions:ob,LucidePuzzle:ab,LucidePyramid:nb,LucideQrCode:rb,LucideQuote:ib,LucideRabbit:lb,LucideRadar:sb,LucideRadiation:db,LucideRadical:cb,LucideRadio:pb,LucideRadioReceiver:hb,LucideRadioTower:ub,LucideRadius:yb,LucideRailSymbol:fb,LucideRainbow:mb,LucideRat:kb,LucideRatio:gb,LucideReceipt:_b,LucideReceiptCent:bb,LucideReceiptEuro:Mb,LucideReceiptIndianRupee:xb,LucideReceiptJapaneseYen:wb,LucideReceiptPoundSterling:vb,LucideReceiptRussianRuble:Cb,LucideReceiptSwissFranc:Lb,LucideReceiptText:Sb,LucideReceiptTurkishLira:Ib,LucideRectangleCircle:Ab,LucideRectangleEllipsis:gr,LucideRectangleGoggles:Bb,LucideRectangleHorizontal:Vb,LucideRectangleVertical:zb,LucideRecycle:Pb,LucideRedo:Db,LucideRedo2:qb,LucideRedoDot:Eb,LucideRefreshCcw:Hb,LucideRefreshCcwDot:Tb,LucideRefreshCw:Ls,LucideRefreshCwOff:Ob,LucideRefrigerator:Fb,LucideRegex:jb,LucideRemoveFormatting:Nb,LucideRepeat:$b,LucideRepeat1:Rb,LucideRepeat2:Wb,LucideReplace:Gb,LucideReplaceAll:Ub,LucideReply:Xb,LucideReplyAll:Kb,LucideRewind:Yb,LucideRibbon:Zb,LucideRocket:Qb,LucideRockingChair:Jb,LucideRollerCoaster:eM,LucideRose:tM,LucideRotate3D:br,LucideRotate3d:br,LucideRotateCcw:oM,LucideRotateCcwKey:aM,LucideRotateCcwSquare:nM,LucideRotateCw:iM,LucideRotateCwSquare:rM,LucideRoute:lM,LucideRouteOff:sM,LucideRouter:cM,LucideRows:Mr,LucideRows2:Mr,LucideRows3:xr,LucideRows4:dM,LucideRss:hM,LucideRuler:uM,LucideRulerDimensionLine:pM,LucideRussianRuble:yM,LucideSailboat:fM,LucideSalad:mM,LucideSandwich:gM,LucideSatellite:bM,LucideSatelliteDish:kM,LucideSaudiRiyal:MM,LucideSave:vM,LucideSaveAll:wM,LucideSaveOff:xM,LucideScale:CM,LucideScale3D:wr,LucideScale3d:wr,LucideScaling:LM,LucideScan:PM,LucideScanBarcode:SM,LucideScanEye:IM,LucideScanFace:_M,LucideScanHeart:AM,LucideScanLine:BM,LucideScanQrCode:zM,LucideScanSearch:VM,LucideScanText:qM,LucideScatterChart:gn,LucideSchool:DM,LucideSchool2:Fi,LucideScissors:HM,LucideScissorsLineDashed:EM,LucideScissorsSquare:Mi,LucideScissorsSquareDashedBottom:Rr,LucideScooter:TM,LucideScreenShare:jM,LucideScreenShareOff:OM,LucideScroll:NM,LucideScrollText:FM,LucideSearch:vr,LucideSearchAlert:RM,LucideSearchCheck:UM,LucideSearchCode:$M,LucideSearchSlash:WM,LucideSearchX:GM,LucideSection:KM,LucideSend:ZM,LucideSendHorizonal:Cr,LucideSendHorizontal:Cr,LucideSendToBack:XM,LucideSeparatorHorizontal:YM,LucideSeparatorVertical:QM,LucideServer:yl,LucideServerCog:JM,LucideServerCrash:ex,LucideServerOff:ax,LucideSettings:nx,LucideSettings2:tx,LucideShapes:ox,LucideShare:rx,LucideShare2:fl,LucideSheet:ix,LucideShell:sx,LucideShelvingUnit:lx,LucideShield:gx,LucideShieldAlert:cx,LucideShieldBan:dx,LucideShieldCheck:hx,LucideShieldClose:Sr,LucideShieldEllipsis:ux,LucideShieldHalf:px,LucideShieldMinus:mx,LucideShieldOff:yx,LucideShieldPlus:fx,LucideShieldQuestion:Lr,LucideShieldQuestionMark:Lr,LucideShieldUser:kx,LucideShieldX:Sr,LucideShip:Mx,LucideShipWheel:bx,LucideShirt:xx,LucideShoppingBag:wx,LucideShoppingBasket:vx,LucideShoppingCart:ml,LucideShovel:Lx,LucideShowerHead:Cx,LucideShredder:Sx,LucideShrimp:Ix,LucideShrink:_x,LucideShrub:Ax,LucideShuffle:Bx,LucideSidebar:dr,LucideSidebarClose:lr,LucideSidebarOpen:cr,LucideSigma:Vx,LucideSigmaSquare:xi,LucideSignal:Ex,LucideSignalHigh:zx,LucideSignalLow:Px,LucideSignalMedium:qx,LucideSignalZero:Dx,LucideSignature:Tx,LucideSignpost:Ox,LucideSignpostBig:Hx,LucideSiren:jx,LucideSkipBack:Nx,LucideSkipForward:Fx,LucideSkull:$x,LucideSlack:Rx,LucideSlash:Ux,LucideSlashSquare:wi,LucideSlice:Wx,LucideSliders:Ir,LucideSlidersHorizontal:kl,LucideSlidersVertical:Ir,LucideSmartphone:Xx,LucideSmartphoneCharging:Gx,LucideSmartphoneNfc:Kx,LucideSmile:Yx,LucideSmilePlus:Zx,LucideSnail:Qx,LucideSnowflake:Jx,LucideSoapDispenserDroplet:e9,LucideSofa:t9,LucideSolarPanel:a9,LucideSortAsc:Xa,LucideSortDesc:Wa,LucideSoup:n9,LucideSpace:o9,LucideSpade:r9,LucideSparkle:i9,LucideSparkles:_r,LucideSpeaker:s9,LucideSpeech:l9,LucideSpellCheck:h9,LucideSpellCheck2:c9,LucideSpline:u9,LucideSplinePointer:d9,LucideSplit:p9,LucideSplitSquareHorizontal:vi,LucideSplitSquareVertical:Ci,LucideSpool:y9,LucideSpotlight:f9,LucideSprayCan:m9,LucideSprout:k9,LucideSquare:V9,LucideSquareActivity:Ar,LucideSquareArrowDown:zr,LucideSquareArrowDownLeft:Br,LucideSquareArrowDownRight:Vr,LucideSquareArrowLeft:Pr,LucideSquareArrowOutDownLeft:qr,LucideSquareArrowOutDownRight:Dr,LucideSquareArrowOutUpLeft:Er,LucideSquareArrowOutUpRight:Tr,LucideSquareArrowRight:Hr,LucideSquareArrowRightEnter:g9,LucideSquareArrowRightExit:b9,LucideSquareArrowUp:Fr,LucideSquareArrowUpLeft:jr,LucideSquareArrowUpRight:Or,LucideSquareAsterisk:Nr,LucideSquareBottomDashedScissors:Rr,LucideSquareCenterlineDashedHorizontal:$r,LucideSquareCenterlineDashedVertical:Ur,LucideSquareChartGantt:$t,LucideSquareCheck:Gr,LucideSquareCheckBig:Wr,LucideSquareChevronDown:Kr,LucideSquareChevronLeft:Xr,LucideSquareChevronRight:Zr,LucideSquareChevronUp:Yr,LucideSquareCode:Qr,LucideSquareDashed:ti,LucideSquareDashedBottom:x9,LucideSquareDashedBottomCode:M9,LucideSquareDashedKanban:Jr,LucideSquareDashedMousePointer:ei,LucideSquareDashedTopSolid:w9,LucideSquareDivide:ni,LucideSquareDot:ai,LucideSquareEqual:oi,LucideSquareFunction:ri,LucideSquareGanttChart:$t,LucideSquareKanban:ii,LucideSquareLibrary:si,LucideSquareM:li,LucideSquareMenu:ci,LucideSquareMinus:di,LucideSquareMousePointer:hi,LucideSquareParking:pi,LucideSquareParkingOff:ui,LucideSquarePause:v9,LucideSquarePen:at,LucideSquarePercent:yi,LucideSquarePi:fi,LucideSquarePilcrow:mi,LucideSquarePlay:ki,LucideSquarePlus:gi,LucideSquarePower:bi,LucideSquareRadical:L9,LucideSquareRoundCorner:C9,LucideSquareScissors:Mi,LucideSquareSigma:xi,LucideSquareSlash:wi,LucideSquareSplitHorizontal:vi,LucideSquareSplitVertical:Ci,LucideSquareSquare:S9,LucideSquareStack:I9,LucideSquareStar:A9,LucideSquareStop:_9,LucideSquareTerminal:Li,LucideSquareUser:_i,LucideSquareUserRound:Si,LucideSquareX:Ii,LucideSquaresExclude:B9,LucideSquaresIntersect:z9,LucideSquaresSubtract:P9,LucideSquaresUnite:q9,LucideSquircle:E9,LucideSquircleDashed:D9,LucideSquirrel:T9,LucideStamp:H9,LucideStar:N9,LucideStarHalf:O9,LucideStarOff:j9,LucideStars:_r,LucideStepBack:F9,LucideStepForward:R9,LucideStethoscope:$9,LucideSticker:U9,LucideStickyNote:W9,LucideStone:G9,LucideStopCircle:Wn,LucideStore:K9,LucideStretchHorizontal:Z9,LucideStretchVertical:X9,LucideStrikethrough:Y9,LucideSubscript:Q9,LucideSubtitles:on,LucideSun:nw,LucideSunDim:J9,LucideSunMedium:ew,LucideSunMoon:aw,LucideSunSnow:tw,LucideSunrise:ow,LucideSunset:rw,LucideSuperscript:iw,LucideSwatchBook:sw,LucideSwissFranc:lw,LucideSwitchCamera:dw,LucideSword:cw,LucideSwords:hw,LucideSyringe:uw,LucideTable:xw,LucideTable2:pw,LucideTableCellsMerge:yw,LucideTableCellsSplit:fw,LucideTableColumnsSplit:mw,LucideTableConfig:Ot,LucideTableOfContents:kw,LucideTableProperties:gw,LucideTableRowsSplit:bw,LucideTablet:Mw,LucideTabletSmartphone:ww,LucideTablets:vw,LucideTag:Cw,LucideTags:Lw,LucideTally1:Sw,LucideTally2:Iw,LucideTally3:_w,LucideTally4:Aw,LucideTally5:Bw,LucideTangent:Vw,LucideTarget:zw,LucideTelescope:Pw,LucideTent:Dw,LucideTentTree:qw,LucideTerminal:Ew,LucideTerminalSquare:Li,LucideTestTube:Tw,LucideTestTube2:Ai,LucideTestTubeDiagonal:Ai,LucideTestTubes:Hw,LucideText:Ut,LucideTextAlignCenter:zi,LucideTextAlignEnd:Bi,LucideTextAlignJustify:Vi,LucideTextAlignStart:Ut,LucideTextCursor:jw,LucideTextCursorInput:Ow,LucideTextInitial:Pi,LucideTextQuote:Nw,LucideTextSearch:Fw,LucideTextSelect:Di,LucideTextSelection:Di,LucideTextWrap:qi,LucideTheater:Rw,LucideThermometer:Ww,LucideThermometerSnowflake:$w,LucideThermometerSun:Uw,LucideThumbsDown:Kw,LucideThumbsUp:Gw,LucideTicket:av,LucideTicketCheck:Xw,LucideTicketMinus:Zw,LucideTicketPercent:Yw,LucideTicketPlus:Qw,LucideTicketSlash:Jw,LucideTicketX:ev,LucideTickets:nv,LucideTicketsPlane:tv,LucideTimer:iv,LucideTimerOff:ov,LucideTimerReset:rv,LucideToggleLeft:gl,LucideToggleRight:sv,LucideToilet:lv,LucideToolCase:cv,LucideToolbox:dv,LucideTornado:hv,LucideTorus:uv,LucideTouchpad:yv,LucideTouchpadOff:pv,LucideTowelRack:fv,LucideTowerControl:mv,LucideToyBrick:kv,LucideTractor:gv,LucideTrafficCone:bv,LucideTrain:Ei,LucideTrainFront:vv,LucideTrainFrontTunnel:Mv,LucideTrainTrack:xv,LucideTramFront:Ei,LucideTransgender:wv,LucideTrash:Cv,LucideTrash2:Ti,LucideTreeDeciduous:Lv,LucideTreePalm:Hi,LucideTreePine:Sv,LucideTrees:Iv,LucideTrello:_v,LucideTrendingDown:Av,LucideTrendingUp:Vv,LucideTrendingUpDown:Bv,LucideTriangle:Dv,LucideTriangleAlert:Oi,LucideTriangleDashed:zv,LucideTriangleRight:qv,LucideTrophy:Pv,LucideTruck:Tv,LucideTruckElectric:Ev,LucideTurkishLira:Hv,LucideTurntable:Ov,LucideTurtle:jv,LucideTv:Nv,LucideTv2:ji,LucideTvMinimal:ji,LucideTvMinimalPlay:Fv,LucideTwitch:Rv,LucideTwitter:Uv,LucideType:Wv,LucideTypeOutline:$v,LucideUmbrella:Kv,LucideUmbrellaOff:Gv,LucideUnderline:Xv,LucideUndo:Yv,LucideUndo2:Zv,LucideUndoDot:Qv,LucideUnfoldHorizontal:Jv,LucideUnfoldVertical:eC,LucideUngroup:tC,LucideUniversity:Fi,LucideUnlink:nC,LucideUnlink2:aC,LucideUnlock:Zo,LucideUnlockKeyhole:Xo,LucideUnplug:oC,LucideUpload:rC,LucideUploadCloud:ba,LucideUsb:iC,LucideUser:bl,LucideUser2:Gi,LucideUserCheck:sC,LucideUserCheck2:Ni,LucideUserCircle:Kn,LucideUserCircle2:Gn,LucideUserCog:lC,LucideUserCog2:Ri,LucideUserKey:cC,LucideUserLock:dC,LucideUserMinus:hC,LucideUserMinus2:$i,LucideUserPen:uC,LucideUserPlus:pC,LucideUserPlus2:Ui,LucideUserRound:Gi,LucideUserRoundCheck:Ni,LucideUserRoundCog:Ri,LucideUserRoundKey:yC,LucideUserRoundMinus:$i,LucideUserRoundPen:fC,LucideUserRoundPlus:Ui,LucideUserRoundSearch:mC,LucideUserRoundX:Wi,LucideUserSearch:gC,LucideUserSquare:_i,LucideUserSquare2:Si,LucideUserStar:kC,LucideUserX:bC,LucideUserX2:Wi,LucideUsers:MC,LucideUsers2:Ki,LucideUsersRound:Ki,LucideUtensils:Zi,LucideUtensilsCrossed:Xi,LucideUtilityPole:xC,LucideVan:wC,LucideVariable:CC,LucideVault:vC,LucideVectorSquare:LC,LucideVegan:SC,LucideVenetianMask:IC,LucideVenus:_C,LucideVenusAndMars:AC,LucideVerified:Qa,LucideVibrate:VC,LucideVibrateOff:BC,LucideVideo:PC,LucideVideoOff:zC,LucideVideotape:qC,LucideView:DC,LucideVoicemail:EC,LucideVolleyball:OC,LucideVolume:FC,LucideVolume1:TC,LucideVolume2:HC,LucideVolumeOff:jC,LucideVolumeX:NC,LucideVote:RC,LucideWallet:UC,LucideWallet2:Yi,LucideWalletCards:$C,LucideWalletMinimal:Yi,LucideWallpaper:WC,LucideWand:GC,LucideWand2:Qi,LucideWandSparkles:Qi,LucideWarehouse:KC,LucideWashingMachine:XC,LucideWatch:ZC,LucideWaves:eL,LucideWavesArrowDown:YC,LucideWavesArrowUp:QC,LucideWavesLadder:JC,LucideWaypoints:tL,LucideWebcam:aL,LucideWebhook:oL,LucideWebhookOff:nL,LucideWeight:iL,LucideWeightTilde:rL,LucideWheat:lL,LucideWheatOff:sL,LucideWholeWord:cL,LucideWifi:kL,LucideWifiCog:dL,LucideWifiHigh:hL,LucideWifiLow:pL,LucideWifiOff:uL,LucideWifiPen:yL,LucideWifiSync:fL,LucideWifiZero:mL,LucideWind:gL,LucideWindArrowDown:bL,LucideWine:ML,LucideWineOff:xL,LucideWorkflow:wL,LucideWorm:vL,LucideWrapText:qi,LucideWrench:CL,LucideX:pt,LucideXCircle:Xn,LucideXLineTop:LL,LucideXOctagon:or,LucideXSquare:Ii,LucideYoutube:SL,LucideZap:AL,LucideZapOff:IL,LucideZoomIn:_L,LucideZoomOut:BL,Luggage:R5,LuggageIcon:R5,MSquare:li,MSquareIcon:li,Magnet:$5,MagnetIcon:$5,Mail:Q5,MailCheck:U5,MailCheckIcon:U5,MailIcon:Q5,MailMinus:G5,MailMinusIcon:G5,MailOpen:W5,MailOpenIcon:W5,MailPlus:K5,MailPlusIcon:K5,MailQuestion:Yo,MailQuestionIcon:Yo,MailQuestionMark:Yo,MailQuestionMarkIcon:Yo,MailSearch:X5,MailSearchIcon:X5,MailWarning:Y5,MailWarningIcon:Y5,MailX:Z5,MailXIcon:Z5,Mailbox:t3,MailboxIcon:t3,Mails:J5,MailsIcon:J5,Map:y3,MapIcon:y3,MapMinus:e3,MapMinusIcon:e3,MapPin:cl,MapPinCheck:a3,MapPinCheckIcon:a3,MapPinCheckInside:n3,MapPinCheckInsideIcon:n3,MapPinHouse:o3,MapPinHouseIcon:o3,MapPinIcon:cl,MapPinMinus:i3,MapPinMinusIcon:i3,MapPinMinusInside:r3,MapPinMinusInsideIcon:r3,MapPinOff:s3,MapPinOffIcon:s3,MapPinPen:Qo,MapPinPenIcon:Qo,MapPinPlus:c3,MapPinPlusIcon:c3,MapPinPlusInside:l3,MapPinPlusInsideIcon:l3,MapPinX:d3,MapPinXIcon:d3,MapPinXInside:h3,MapPinXInsideIcon:h3,MapPinned:u3,MapPinnedIcon:u3,MapPlus:p3,MapPlusIcon:p3,Mars:k3,MarsIcon:k3,MarsStroke:f3,MarsStrokeIcon:f3,Martini:m3,MartiniIcon:m3,Maximize:b3,Maximize2:g3,Maximize2Icon:g3,MaximizeIcon:b3,Medal:M3,MedalIcon:M3,Megaphone:w3,MegaphoneIcon:w3,MegaphoneOff:x3,MegaphoneOffIcon:x3,Meh:v3,MehIcon:v3,MemoryStick:C3,MemoryStickIcon:C3,Menu:L3,MenuIcon:L3,MenuSquare:ci,MenuSquareIcon:ci,Merge:S3,MergeIcon:S3,MessageCircle:T3,MessageCircleCheck:I3,MessageCircleCheckIcon:I3,MessageCircleCode:_3,MessageCircleCodeIcon:_3,MessageCircleDashed:A3,MessageCircleDashedIcon:A3,MessageCircleHeart:B3,MessageCircleHeartIcon:B3,MessageCircleIcon:T3,MessageCircleMore:z3,MessageCircleMoreIcon:z3,MessageCircleOff:V3,MessageCircleOffIcon:V3,MessageCirclePlus:P3,MessageCirclePlusIcon:P3,MessageCircleQuestion:Jo,MessageCircleQuestionIcon:Jo,MessageCircleQuestionMark:Jo,MessageCircleQuestionMarkIcon:Jo,MessageCircleReply:q3,MessageCircleReplyIcon:q3,MessageCircleWarning:D3,MessageCircleWarningIcon:D3,MessageCircleX:E3,MessageCircleXIcon:E3,MessageSquare:Cs,MessageSquareCheck:H3,MessageSquareCheckIcon:H3,MessageSquareCode:O3,MessageSquareCodeIcon:O3,MessageSquareDashed:j3,MessageSquareDashedIcon:j3,MessageSquareDiff:F3,MessageSquareDiffIcon:F3,MessageSquareDot:N3,MessageSquareDotIcon:N3,MessageSquareHeart:R3,MessageSquareHeartIcon:R3,MessageSquareIcon:Cs,MessageSquareLock:$3,MessageSquareLockIcon:$3,MessageSquareMore:U3,MessageSquareMoreIcon:U3,MessageSquareOff:W3,MessageSquareOffIcon:W3,MessageSquarePlus:G3,MessageSquarePlusIcon:G3,MessageSquareQuote:K3,MessageSquareQuoteIcon:K3,MessageSquareReply:X3,MessageSquareReplyIcon:X3,MessageSquareShare:Z3,MessageSquareShareIcon:Z3,MessageSquareText:Q3,MessageSquareTextIcon:Q3,MessageSquareWarning:Y3,MessageSquareWarningIcon:Y3,MessageSquareX:J3,MessageSquareXIcon:J3,MessagesSquare:e8,MessagesSquareIcon:e8,Metronome:t8,MetronomeIcon:t8,Mic:n8,Mic2:er,Mic2Icon:er,MicIcon:n8,MicOff:a8,MicOffIcon:a8,MicVocal:er,MicVocalIcon:er,Microchip:o8,MicrochipIcon:o8,Microscope:r8,MicroscopeIcon:r8,Microwave:i8,MicrowaveIcon:i8,Milestone:s8,MilestoneIcon:s8,Milk:c8,MilkIcon:c8,MilkOff:l8,MilkOffIcon:l8,Minimize:d8,Minimize2:h8,Minimize2Icon:h8,MinimizeIcon:d8,Minus:dl,MinusCircle:Tn,MinusCircleIcon:Tn,MinusIcon:dl,MinusSquare:di,MinusSquareIcon:di,MirrorRectangular:u8,MirrorRectangularIcon:u8,MirrorRound:p8,MirrorRoundIcon:p8,Monitor:I8,MonitorCheck:y8,MonitorCheckIcon:y8,MonitorCloud:f8,MonitorCloudIcon:f8,MonitorCog:m8,MonitorCogIcon:m8,MonitorDot:k8,MonitorDotIcon:k8,MonitorDown:g8,MonitorDownIcon:g8,MonitorIcon:I8,MonitorOff:b8,MonitorOffIcon:b8,MonitorPause:M8,MonitorPauseIcon:M8,MonitorPlay:x8,MonitorPlayIcon:x8,MonitorSmartphone:w8,MonitorSmartphoneIcon:w8,MonitorSpeaker:v8,MonitorSpeakerIcon:v8,MonitorStop:C8,MonitorStopIcon:C8,MonitorUp:L8,MonitorUpIcon:L8,MonitorX:S8,MonitorXIcon:S8,Moon:A8,MoonIcon:A8,MoonStar:_8,MoonStarIcon:_8,MoreHorizontal:Ma,MoreHorizontalIcon:Ma,MoreVertical:ro,MoreVerticalIcon:ro,Motorbike:B8,MotorbikeIcon:B8,Mountain:z8,MountainIcon:z8,MountainSnow:V8,MountainSnowIcon:V8,Mouse:F8,MouseIcon:F8,MouseLeft:P8,MouseLeftIcon:P8,MouseOff:q8,MouseOffIcon:q8,MousePointer:O8,MousePointer2:E8,MousePointer2Icon:E8,MousePointer2Off:D8,MousePointer2OffIcon:D8,MousePointerBan:T8,MousePointerBanIcon:T8,MousePointerClick:H8,MousePointerClickIcon:H8,MousePointerIcon:O8,MousePointerSquareDashed:ei,MousePointerSquareDashedIcon:ei,MouseRight:j8,MouseRightIcon:j8,Move:e6,Move3D:tr,Move3DIcon:tr,Move3d:tr,Move3dIcon:tr,MoveDiagonal:R8,MoveDiagonal2:N8,MoveDiagonal2Icon:N8,MoveDiagonalIcon:R8,MoveDown:W8,MoveDownIcon:W8,MoveDownLeft:$8,MoveDownLeftIcon:$8,MoveDownRight:U8,MoveDownRightIcon:U8,MoveHorizontal:G8,MoveHorizontalIcon:G8,MoveIcon:e6,MoveLeft:K8,MoveLeftIcon:K8,MoveRight:Z8,MoveRightIcon:Z8,MoveUp:Q8,MoveUpIcon:Q8,MoveUpLeft:X8,MoveUpLeftIcon:X8,MoveUpRight:Y8,MoveUpRightIcon:Y8,MoveVertical:J8,MoveVerticalIcon:J8,Music:o6,Music2:t6,Music2Icon:t6,Music3:a6,Music3Icon:a6,Music4:n6,Music4Icon:n6,MusicIcon:o6,Navigation:l6,Navigation2:i6,Navigation2Icon:i6,Navigation2Off:r6,Navigation2OffIcon:r6,NavigationIcon:l6,NavigationOff:s6,NavigationOffIcon:s6,Network:c6,NetworkIcon:c6,Newspaper:d6,NewspaperIcon:d6,Nfc:h6,NfcIcon:h6,NonBinary:u6,NonBinaryIcon:u6,Notebook:m6,NotebookIcon:m6,NotebookPen:y6,NotebookPenIcon:y6,NotebookTabs:p6,NotebookTabsIcon:p6,NotebookText:f6,NotebookTextIcon:f6,NotepadText:g6,NotepadTextDashed:k6,NotepadTextDashedIcon:k6,NotepadTextIcon:g6,Nut:M6,NutIcon:M6,NutOff:b6,NutOffIcon:b6,Octagon:w6,OctagonAlert:ar,OctagonAlertIcon:ar,OctagonIcon:w6,OctagonMinus:x6,OctagonMinusIcon:x6,OctagonPause:nr,OctagonPauseIcon:nr,OctagonX:or,OctagonXIcon:or,Omega:v6,OmegaIcon:v6,Option:C6,OptionIcon:C6,Orbit:L6,OrbitIcon:L6,Origami:S6,OrigamiIcon:S6,Outdent:Nt,OutdentIcon:Nt,Package:q6,Package2:I6,Package2Icon:I6,PackageCheck:A6,PackageCheckIcon:A6,PackageIcon:q6,PackageMinus:_6,PackageMinusIcon:_6,PackageOpen:B6,PackageOpenIcon:B6,PackagePlus:V6,PackagePlusIcon:V6,PackageSearch:z6,PackageSearchIcon:z6,PackageX:P6,PackageXIcon:P6,PaintBucket:D6,PaintBucketIcon:D6,PaintRoller:E6,PaintRollerIcon:E6,Paintbrush:T6,Paintbrush2:rr,Paintbrush2Icon:rr,PaintbrushIcon:T6,PaintbrushVertical:rr,PaintbrushVerticalIcon:rr,Palette:H6,PaletteIcon:H6,Palmtree:Hi,PalmtreeIcon:Hi,Panda:O6,PandaIcon:O6,PanelBottom:N6,PanelBottomClose:j6,PanelBottomCloseIcon:j6,PanelBottomDashed:ir,PanelBottomDashedIcon:ir,PanelBottomIcon:N6,PanelBottomInactive:ir,PanelBottomInactiveIcon:ir,PanelBottomOpen:F6,PanelBottomOpenIcon:F6,PanelLeft:dr,PanelLeftClose:lr,PanelLeftCloseIcon:lr,PanelLeftDashed:sr,PanelLeftDashedIcon:sr,PanelLeftIcon:dr,PanelLeftInactive:sr,PanelLeftInactiveIcon:sr,PanelLeftOpen:cr,PanelLeftOpenIcon:cr,PanelLeftRightDashed:R6,PanelLeftRightDashedIcon:R6,PanelRight:W6,PanelRightClose:$6,PanelRightCloseIcon:$6,PanelRightDashed:hr,PanelRightDashedIcon:hr,PanelRightIcon:W6,PanelRightInactive:hr,PanelRightInactiveIcon:hr,PanelRightOpen:U6,PanelRightOpenIcon:U6,PanelTop:Z6,PanelTopBottomDashed:G6,PanelTopBottomDashedIcon:G6,PanelTopClose:K6,PanelTopCloseIcon:K6,PanelTopDashed:ur,PanelTopDashedIcon:ur,PanelTopIcon:Z6,PanelTopInactive:ur,PanelTopInactiveIcon:ur,PanelTopOpen:X6,PanelTopOpenIcon:X6,PanelsLeftBottom:Y6,PanelsLeftBottomIcon:Y6,PanelsLeftRight:to,PanelsLeftRightIcon:to,PanelsRightBottom:Q6,PanelsRightBottomIcon:Q6,PanelsTopBottom:xr,PanelsTopBottomIcon:xr,PanelsTopLeft:pr,PanelsTopLeftIcon:pr,Paperclip:J6,PaperclipIcon:J6,Parentheses:e7,ParenthesesIcon:e7,ParkingCircle:On,ParkingCircleIcon:On,ParkingCircleOff:Hn,ParkingCircleOffIcon:Hn,ParkingMeter:t7,ParkingMeterIcon:t7,ParkingSquare:pi,ParkingSquareIcon:pi,ParkingSquareOff:ui,ParkingSquareOffIcon:ui,PartyPopper:a7,PartyPopperIcon:a7,Pause:n7,PauseCircle:jn,PauseCircleIcon:jn,PauseIcon:n7,PauseOctagon:nr,PauseOctagonIcon:nr,PawPrint:o7,PawPrintIcon:o7,PcCase:r7,PcCaseIcon:r7,Pen:fr,PenBox:at,PenBoxIcon:at,PenIcon:fr,PenLine:yr,PenLineIcon:yr,PenOff:i7,PenOffIcon:i7,PenSquare:at,PenSquareIcon:at,PenTool:s7,PenToolIcon:s7,Pencil:mr,PencilIcon:mr,PencilLine:l7,PencilLineIcon:l7,PencilOff:c7,PencilOffIcon:c7,PencilRuler:d7,PencilRulerIcon:d7,Pentagon:h7,PentagonIcon:h7,Percent:u7,PercentCircle:Fn,PercentCircleIcon:Fn,PercentDiamond:no,PercentDiamondIcon:no,PercentIcon:u7,PercentSquare:yi,PercentSquareIcon:yi,PersonStanding:p7,PersonStandingIcon:p7,PhilippinePeso:y7,PhilippinePesoIcon:y7,Phone:hl,PhoneCall:f7,PhoneCallIcon:f7,PhoneForwarded:m7,PhoneForwardedIcon:m7,PhoneIcon:hl,PhoneIncoming:k7,PhoneIncomingIcon:k7,PhoneMissed:b7,PhoneMissedIcon:b7,PhoneOff:g7,PhoneOffIcon:g7,PhoneOutgoing:M7,PhoneOutgoingIcon:M7,Pi:x7,PiIcon:x7,PiSquare:fi,PiSquareIcon:fi,Piano:w7,PianoIcon:w7,Pickaxe:v7,PickaxeIcon:v7,PictureInPicture:L7,PictureInPicture2:C7,PictureInPicture2Icon:C7,PictureInPictureIcon:L7,PieChart:mn,PieChartIcon:mn,PiggyBank:S7,PiggyBankIcon:S7,Pilcrow:A7,PilcrowIcon:A7,PilcrowLeft:I7,PilcrowLeftIcon:I7,PilcrowRight:_7,PilcrowRightIcon:_7,PilcrowSquare:mi,PilcrowSquareIcon:mi,Pill:q7,PillBottle:B7,PillBottleIcon:B7,PillIcon:q7,Pin:z7,PinIcon:z7,PinOff:V7,PinOffIcon:V7,Pipette:P7,PipetteIcon:P7,Pizza:D7,PizzaIcon:D7,Plane:ul,PlaneIcon:ul,PlaneLanding:E7,PlaneLandingIcon:E7,PlaneTakeoff:T7,PlaneTakeoffIcon:T7,Play:H7,PlayCircle:Nn,PlayCircleIcon:Nn,PlayIcon:H7,PlaySquare:ki,PlaySquareIcon:ki,Plug:j7,Plug2:O7,Plug2Icon:O7,PlugIcon:j7,PlugZap:kr,PlugZap2:kr,PlugZap2Icon:kr,PlugZapIcon:kr,Plus:pl,PlusCircle:Rn,PlusCircleIcon:Rn,PlusIcon:pl,PlusSquare:gi,PlusSquareIcon:gi,Pocket:N7,PocketIcon:N7,PocketKnife:F7,PocketKnifeIcon:F7,Podcast:R7,PodcastIcon:R7,Pointer:U7,PointerIcon:U7,PointerOff:$7,PointerOffIcon:$7,Popcorn:W7,PopcornIcon:W7,Popsicle:G7,PopsicleIcon:G7,PoundSterling:X7,PoundSterlingIcon:X7,Power:Z7,PowerCircle:$n,PowerCircleIcon:$n,PowerIcon:Z7,PowerOff:K7,PowerOffIcon:K7,PowerSquare:bi,PowerSquareIcon:bi,Presentation:Y7,PresentationIcon:Y7,Printer:eb,PrinterCheck:Q7,PrinterCheckIcon:Q7,PrinterIcon:eb,PrinterX:J7,PrinterXIcon:J7,Projector:tb,ProjectorIcon:tb,Proportions:ob,ProportionsIcon:ob,Puzzle:ab,PuzzleIcon:ab,Pyramid:nb,PyramidIcon:nb,QrCode:rb,QrCodeIcon:rb,Quote:ib,QuoteIcon:ib,Rabbit:lb,RabbitIcon:lb,Radar:sb,RadarIcon:sb,Radiation:db,RadiationIcon:db,Radical:cb,RadicalIcon:cb,Radio:pb,RadioIcon:pb,RadioReceiver:hb,RadioReceiverIcon:hb,RadioTower:ub,RadioTowerIcon:ub,Radius:yb,RadiusIcon:yb,RailSymbol:fb,RailSymbolIcon:fb,Rainbow:mb,RainbowIcon:mb,Rat:kb,RatIcon:kb,Ratio:gb,RatioIcon:gb,Receipt:_b,ReceiptCent:bb,ReceiptCentIcon:bb,ReceiptEuro:Mb,ReceiptEuroIcon:Mb,ReceiptIcon:_b,ReceiptIndianRupee:xb,ReceiptIndianRupeeIcon:xb,ReceiptJapaneseYen:wb,ReceiptJapaneseYenIcon:wb,ReceiptPoundSterling:vb,ReceiptPoundSterlingIcon:vb,ReceiptRussianRuble:Cb,ReceiptRussianRubleIcon:Cb,ReceiptSwissFranc:Lb,ReceiptSwissFrancIcon:Lb,ReceiptText:Sb,ReceiptTextIcon:Sb,ReceiptTurkishLira:Ib,ReceiptTurkishLiraIcon:Ib,RectangleCircle:Ab,RectangleCircleIcon:Ab,RectangleEllipsis:gr,RectangleEllipsisIcon:gr,RectangleGoggles:Bb,RectangleGogglesIcon:Bb,RectangleHorizontal:Vb,RectangleHorizontalIcon:Vb,RectangleVertical:zb,RectangleVerticalIcon:zb,Recycle:Pb,RecycleIcon:Pb,Redo:Db,Redo2:qb,Redo2Icon:qb,RedoDot:Eb,RedoDotIcon:Eb,RedoIcon:Db,RefreshCcw:Hb,RefreshCcwDot:Tb,RefreshCcwDotIcon:Tb,RefreshCcwIcon:Hb,RefreshCw:Ls,RefreshCwIcon:Ls,RefreshCwOff:Ob,RefreshCwOffIcon:Ob,Refrigerator:Fb,RefrigeratorIcon:Fb,Regex:jb,RegexIcon:jb,RemoveFormatting:Nb,RemoveFormattingIcon:Nb,Repeat:$b,Repeat1:Rb,Repeat1Icon:Rb,Repeat2:Wb,Repeat2Icon:Wb,RepeatIcon:$b,Replace:Gb,ReplaceAll:Ub,ReplaceAllIcon:Ub,ReplaceIcon:Gb,Reply:Xb,ReplyAll:Kb,ReplyAllIcon:Kb,ReplyIcon:Xb,Rewind:Yb,RewindIcon:Yb,Ribbon:Zb,RibbonIcon:Zb,Rocket:Qb,RocketIcon:Qb,RockingChair:Jb,RockingChairIcon:Jb,RollerCoaster:eM,RollerCoasterIcon:eM,Rose:tM,RoseIcon:tM,Rotate3D:br,Rotate3DIcon:br,Rotate3d:br,Rotate3dIcon:br,RotateCcw:oM,RotateCcwIcon:oM,RotateCcwKey:aM,RotateCcwKeyIcon:aM,RotateCcwSquare:nM,RotateCcwSquareIcon:nM,RotateCw:iM,RotateCwIcon:iM,RotateCwSquare:rM,RotateCwSquareIcon:rM,Route:lM,RouteIcon:lM,RouteOff:sM,RouteOffIcon:sM,Router:cM,RouterIcon:cM,Rows:Mr,Rows2:Mr,Rows2Icon:Mr,Rows3:xr,Rows3Icon:xr,Rows4:dM,Rows4Icon:dM,RowsIcon:Mr,Rss:hM,RssIcon:hM,Ruler:uM,RulerDimensionLine:pM,RulerDimensionLineIcon:pM,RulerIcon:uM,RussianRuble:yM,RussianRubleIcon:yM,Sailboat:fM,SailboatIcon:fM,Salad:mM,SaladIcon:mM,Sandwich:gM,SandwichIcon:gM,Satellite:bM,SatelliteDish:kM,SatelliteDishIcon:kM,SatelliteIcon:bM,SaudiRiyal:MM,SaudiRiyalIcon:MM,Save:vM,SaveAll:wM,SaveAllIcon:wM,SaveIcon:vM,SaveOff:xM,SaveOffIcon:xM,Scale:CM,Scale3D:wr,Scale3DIcon:wr,Scale3d:wr,Scale3dIcon:wr,ScaleIcon:CM,Scaling:LM,ScalingIcon:LM,Scan:PM,ScanBarcode:SM,ScanBarcodeIcon:SM,ScanEye:IM,ScanEyeIcon:IM,ScanFace:_M,ScanFaceIcon:_M,ScanHeart:AM,ScanHeartIcon:AM,ScanIcon:PM,ScanLine:BM,ScanLineIcon:BM,ScanQrCode:zM,ScanQrCodeIcon:zM,ScanSearch:VM,ScanSearchIcon:VM,ScanText:qM,ScanTextIcon:qM,ScatterChart:gn,ScatterChartIcon:gn,School:DM,School2:Fi,School2Icon:Fi,SchoolIcon:DM,Scissors:HM,ScissorsIcon:HM,ScissorsLineDashed:EM,ScissorsLineDashedIcon:EM,ScissorsSquare:Mi,ScissorsSquareDashedBottom:Rr,ScissorsSquareDashedBottomIcon:Rr,ScissorsSquareIcon:Mi,Scooter:TM,ScooterIcon:TM,ScreenShare:jM,ScreenShareIcon:jM,ScreenShareOff:OM,ScreenShareOffIcon:OM,Scroll:NM,ScrollIcon:NM,ScrollText:FM,ScrollTextIcon:FM,Search:vr,SearchAlert:RM,SearchAlertIcon:RM,SearchCheck:UM,SearchCheckIcon:UM,SearchCode:$M,SearchCodeIcon:$M,SearchIcon:vr,SearchSlash:WM,SearchSlashIcon:WM,SearchX:GM,SearchXIcon:GM,Section:KM,SectionIcon:KM,Send:ZM,SendHorizonal:Cr,SendHorizonalIcon:Cr,SendHorizontal:Cr,SendHorizontalIcon:Cr,SendIcon:ZM,SendToBack:XM,SendToBackIcon:XM,SeparatorHorizontal:YM,SeparatorHorizontalIcon:YM,SeparatorVertical:QM,SeparatorVerticalIcon:QM,Server:yl,ServerCog:JM,ServerCogIcon:JM,ServerCrash:ex,ServerCrashIcon:ex,ServerIcon:yl,ServerOff:ax,ServerOffIcon:ax,Settings:nx,Settings2:tx,Settings2Icon:tx,SettingsIcon:nx,Shapes:ox,ShapesIcon:ox,Share:rx,Share2:fl,Share2Icon:fl,ShareIcon:rx,Sheet:ix,SheetIcon:ix,Shell:sx,ShellIcon:sx,ShelvingUnit:lx,ShelvingUnitIcon:lx,Shield:gx,ShieldAlert:cx,ShieldAlertIcon:cx,ShieldBan:dx,ShieldBanIcon:dx,ShieldCheck:hx,ShieldCheckIcon:hx,ShieldClose:Sr,ShieldCloseIcon:Sr,ShieldEllipsis:ux,ShieldEllipsisIcon:ux,ShieldHalf:px,ShieldHalfIcon:px,ShieldIcon:gx,ShieldMinus:mx,ShieldMinusIcon:mx,ShieldOff:yx,ShieldOffIcon:yx,ShieldPlus:fx,ShieldPlusIcon:fx,ShieldQuestion:Lr,ShieldQuestionIcon:Lr,ShieldQuestionMark:Lr,ShieldQuestionMarkIcon:Lr,ShieldUser:kx,ShieldUserIcon:kx,ShieldX:Sr,ShieldXIcon:Sr,Ship:Mx,ShipIcon:Mx,ShipWheel:bx,ShipWheelIcon:bx,Shirt:xx,ShirtIcon:xx,ShoppingBag:wx,ShoppingBagIcon:wx,ShoppingBasket:vx,ShoppingBasketIcon:vx,ShoppingCart:ml,ShoppingCartIcon:ml,Shovel:Lx,ShovelIcon:Lx,ShowerHead:Cx,ShowerHeadIcon:Cx,Shredder:Sx,ShredderIcon:Sx,Shrimp:Ix,ShrimpIcon:Ix,Shrink:_x,ShrinkIcon:_x,Shrub:Ax,ShrubIcon:Ax,Shuffle:Bx,ShuffleIcon:Bx,Sidebar:dr,SidebarClose:lr,SidebarCloseIcon:lr,SidebarIcon:dr,SidebarOpen:cr,SidebarOpenIcon:cr,Sigma:Vx,SigmaIcon:Vx,SigmaSquare:xi,SigmaSquareIcon:xi,Signal:Ex,SignalHigh:zx,SignalHighIcon:zx,SignalIcon:Ex,SignalLow:Px,SignalLowIcon:Px,SignalMedium:qx,SignalMediumIcon:qx,SignalZero:Dx,SignalZeroIcon:Dx,Signature:Tx,SignatureIcon:Tx,Signpost:Ox,SignpostBig:Hx,SignpostBigIcon:Hx,SignpostIcon:Ox,Siren:jx,SirenIcon:jx,SkipBack:Nx,SkipBackIcon:Nx,SkipForward:Fx,SkipForwardIcon:Fx,Skull:$x,SkullIcon:$x,Slack:Rx,SlackIcon:Rx,Slash:Ux,SlashIcon:Ux,SlashSquare:wi,SlashSquareIcon:wi,Slice:Wx,SliceIcon:Wx,Sliders:Ir,SlidersHorizontal:kl,SlidersHorizontalIcon:kl,SlidersIcon:Ir,SlidersVertical:Ir,SlidersVerticalIcon:Ir,Smartphone:Xx,SmartphoneCharging:Gx,SmartphoneChargingIcon:Gx,SmartphoneIcon:Xx,SmartphoneNfc:Kx,SmartphoneNfcIcon:Kx,Smile:Yx,SmileIcon:Yx,SmilePlus:Zx,SmilePlusIcon:Zx,Snail:Qx,SnailIcon:Qx,Snowflake:Jx,SnowflakeIcon:Jx,SoapDispenserDroplet:e9,SoapDispenserDropletIcon:e9,Sofa:t9,SofaIcon:t9,SolarPanel:a9,SolarPanelIcon:a9,SortAsc:Xa,SortAscIcon:Xa,SortDesc:Wa,SortDescIcon:Wa,Soup:n9,SoupIcon:n9,Space:o9,SpaceIcon:o9,Spade:r9,SpadeIcon:r9,Sparkle:i9,SparkleIcon:i9,Sparkles:_r,SparklesIcon:_r,Speaker:s9,SpeakerIcon:s9,Speech:l9,SpeechIcon:l9,SpellCheck:h9,SpellCheck2:c9,SpellCheck2Icon:c9,SpellCheckIcon:h9,Spline:u9,SplineIcon:u9,SplinePointer:d9,SplinePointerIcon:d9,Split:p9,SplitIcon:p9,SplitSquareHorizontal:vi,SplitSquareHorizontalIcon:vi,SplitSquareVertical:Ci,SplitSquareVerticalIcon:Ci,Spool:y9,SpoolIcon:y9,Spotlight:f9,SpotlightIcon:f9,SprayCan:m9,SprayCanIcon:m9,Sprout:k9,SproutIcon:k9,Square:V9,SquareActivity:Ar,SquareActivityIcon:Ar,SquareArrowDown:zr,SquareArrowDownIcon:zr,SquareArrowDownLeft:Br,SquareArrowDownLeftIcon:Br,SquareArrowDownRight:Vr,SquareArrowDownRightIcon:Vr,SquareArrowLeft:Pr,SquareArrowLeftIcon:Pr,SquareArrowOutDownLeft:qr,SquareArrowOutDownLeftIcon:qr,SquareArrowOutDownRight:Dr,SquareArrowOutDownRightIcon:Dr,SquareArrowOutUpLeft:Er,SquareArrowOutUpLeftIcon:Er,SquareArrowOutUpRight:Tr,SquareArrowOutUpRightIcon:Tr,SquareArrowRight:Hr,SquareArrowRightEnter:g9,SquareArrowRightEnterIcon:g9,SquareArrowRightExit:b9,SquareArrowRightExitIcon:b9,SquareArrowRightIcon:Hr,SquareArrowUp:Fr,SquareArrowUpIcon:Fr,SquareArrowUpLeft:jr,SquareArrowUpLeftIcon:jr,SquareArrowUpRight:Or,SquareArrowUpRightIcon:Or,SquareAsterisk:Nr,SquareAsteriskIcon:Nr,SquareBottomDashedScissors:Rr,SquareBottomDashedScissorsIcon:Rr,SquareCenterlineDashedHorizontal:$r,SquareCenterlineDashedHorizontalIcon:$r,SquareCenterlineDashedVertical:Ur,SquareCenterlineDashedVerticalIcon:Ur,SquareChartGantt:$t,SquareChartGanttIcon:$t,SquareCheck:Gr,SquareCheckBig:Wr,SquareCheckBigIcon:Wr,SquareCheckIcon:Gr,SquareChevronDown:Kr,SquareChevronDownIcon:Kr,SquareChevronLeft:Xr,SquareChevronLeftIcon:Xr,SquareChevronRight:Zr,SquareChevronRightIcon:Zr,SquareChevronUp:Yr,SquareChevronUpIcon:Yr,SquareCode:Qr,SquareCodeIcon:Qr,SquareDashed:ti,SquareDashedBottom:x9,SquareDashedBottomCode:M9,SquareDashedBottomCodeIcon:M9,SquareDashedBottomIcon:x9,SquareDashedIcon:ti,SquareDashedKanban:Jr,SquareDashedKanbanIcon:Jr,SquareDashedMousePointer:ei,SquareDashedMousePointerIcon:ei,SquareDashedTopSolid:w9,SquareDashedTopSolidIcon:w9,SquareDivide:ni,SquareDivideIcon:ni,SquareDot:ai,SquareDotIcon:ai,SquareEqual:oi,SquareEqualIcon:oi,SquareFunction:ri,SquareFunctionIcon:ri,SquareGanttChart:$t,SquareGanttChartIcon:$t,SquareIcon:V9,SquareKanban:ii,SquareKanbanIcon:ii,SquareLibrary:si,SquareLibraryIcon:si,SquareM:li,SquareMIcon:li,SquareMenu:ci,SquareMenuIcon:ci,SquareMinus:di,SquareMinusIcon:di,SquareMousePointer:hi,SquareMousePointerIcon:hi,SquareParking:pi,SquareParkingIcon:pi,SquareParkingOff:ui,SquareParkingOffIcon:ui,SquarePause:v9,SquarePauseIcon:v9,SquarePen:at,SquarePenIcon:at,SquarePercent:yi,SquarePercentIcon:yi,SquarePi:fi,SquarePiIcon:fi,SquarePilcrow:mi,SquarePilcrowIcon:mi,SquarePlay:ki,SquarePlayIcon:ki,SquarePlus:gi,SquarePlusIcon:gi,SquarePower:bi,SquarePowerIcon:bi,SquareRadical:L9,SquareRadicalIcon:L9,SquareRoundCorner:C9,SquareRoundCornerIcon:C9,SquareScissors:Mi,SquareScissorsIcon:Mi,SquareSigma:xi,SquareSigmaIcon:xi,SquareSlash:wi,SquareSlashIcon:wi,SquareSplitHorizontal:vi,SquareSplitHorizontalIcon:vi,SquareSplitVertical:Ci,SquareSplitVerticalIcon:Ci,SquareSquare:S9,SquareSquareIcon:S9,SquareStack:I9,SquareStackIcon:I9,SquareStar:A9,SquareStarIcon:A9,SquareStop:_9,SquareStopIcon:_9,SquareTerminal:Li,SquareTerminalIcon:Li,SquareUser:_i,SquareUserIcon:_i,SquareUserRound:Si,SquareUserRoundIcon:Si,SquareX:Ii,SquareXIcon:Ii,SquaresExclude:B9,SquaresExcludeIcon:B9,SquaresIntersect:z9,SquaresIntersectIcon:z9,SquaresSubtract:P9,SquaresSubtractIcon:P9,SquaresUnite:q9,SquaresUniteIcon:q9,Squircle:E9,SquircleDashed:D9,SquircleDashedIcon:D9,SquircleIcon:E9,Squirrel:T9,SquirrelIcon:T9,Stamp:H9,StampIcon:H9,Star:N9,StarHalf:O9,StarHalfIcon:O9,StarIcon:N9,StarOff:j9,StarOffIcon:j9,Stars:_r,StarsIcon:_r,StepBack:F9,StepBackIcon:F9,StepForward:R9,StepForwardIcon:R9,Stethoscope:$9,StethoscopeIcon:$9,Sticker:U9,StickerIcon:U9,StickyNote:W9,StickyNoteIcon:W9,Stone:G9,StoneIcon:G9,StopCircle:Wn,StopCircleIcon:Wn,Store:K9,StoreIcon:K9,StretchHorizontal:Z9,StretchHorizontalIcon:Z9,StretchVertical:X9,StretchVerticalIcon:X9,Strikethrough:Y9,StrikethroughIcon:Y9,Subscript:Q9,SubscriptIcon:Q9,Subtitles:on,SubtitlesIcon:on,Sun:nw,SunDim:J9,SunDimIcon:J9,SunIcon:nw,SunMedium:ew,SunMediumIcon:ew,SunMoon:aw,SunMoonIcon:aw,SunSnow:tw,SunSnowIcon:tw,Sunrise:ow,SunriseIcon:ow,Sunset:rw,SunsetIcon:rw,Superscript:iw,SuperscriptIcon:iw,SwatchBook:sw,SwatchBookIcon:sw,SwissFranc:lw,SwissFrancIcon:lw,SwitchCamera:dw,SwitchCameraIcon:dw,Sword:cw,SwordIcon:cw,Swords:hw,SwordsIcon:hw,Syringe:uw,SyringeIcon:uw,Table:xw,Table2:pw,Table2Icon:pw,TableCellsMerge:yw,TableCellsMergeIcon:yw,TableCellsSplit:fw,TableCellsSplitIcon:fw,TableColumnsSplit:mw,TableColumnsSplitIcon:mw,TableConfig:Ot,TableConfigIcon:Ot,TableIcon:xw,TableOfContents:kw,TableOfContentsIcon:kw,TableProperties:gw,TablePropertiesIcon:gw,TableRowsSplit:bw,TableRowsSplitIcon:bw,Tablet:Mw,TabletIcon:Mw,TabletSmartphone:ww,TabletSmartphoneIcon:ww,Tablets:vw,TabletsIcon:vw,Tag:Cw,TagIcon:Cw,Tags:Lw,TagsIcon:Lw,Tally1:Sw,Tally1Icon:Sw,Tally2:Iw,Tally2Icon:Iw,Tally3:_w,Tally3Icon:_w,Tally4:Aw,Tally4Icon:Aw,Tally5:Bw,Tally5Icon:Bw,Tangent:Vw,TangentIcon:Vw,Target:zw,TargetIcon:zw,Telescope:Pw,TelescopeIcon:Pw,Tent:Dw,TentIcon:Dw,TentTree:qw,TentTreeIcon:qw,Terminal:Ew,TerminalIcon:Ew,TerminalSquare:Li,TerminalSquareIcon:Li,TestTube:Tw,TestTube2:Ai,TestTube2Icon:Ai,TestTubeDiagonal:Ai,TestTubeDiagonalIcon:Ai,TestTubeIcon:Tw,TestTubes:Hw,TestTubesIcon:Hw,Text:Ut,TextAlignCenter:zi,TextAlignCenterIcon:zi,TextAlignEnd:Bi,TextAlignEndIcon:Bi,TextAlignJustify:Vi,TextAlignJustifyIcon:Vi,TextAlignStart:Ut,TextAlignStartIcon:Ut,TextCursor:jw,TextCursorIcon:jw,TextCursorInput:Ow,TextCursorInputIcon:Ow,TextIcon:Ut,TextInitial:Pi,TextInitialIcon:Pi,TextQuote:Nw,TextQuoteIcon:Nw,TextSearch:Fw,TextSearchIcon:Fw,TextSelect:Di,TextSelectIcon:Di,TextSelection:Di,TextSelectionIcon:Di,TextWrap:qi,TextWrapIcon:qi,Theater:Rw,TheaterIcon:Rw,Thermometer:Ww,ThermometerIcon:Ww,ThermometerSnowflake:$w,ThermometerSnowflakeIcon:$w,ThermometerSun:Uw,ThermometerSunIcon:Uw,ThumbsDown:Kw,ThumbsDownIcon:Kw,ThumbsUp:Gw,ThumbsUpIcon:Gw,Ticket:av,TicketCheck:Xw,TicketCheckIcon:Xw,TicketIcon:av,TicketMinus:Zw,TicketMinusIcon:Zw,TicketPercent:Yw,TicketPercentIcon:Yw,TicketPlus:Qw,TicketPlusIcon:Qw,TicketSlash:Jw,TicketSlashIcon:Jw,TicketX:ev,TicketXIcon:ev,Tickets:nv,TicketsIcon:nv,TicketsPlane:tv,TicketsPlaneIcon:tv,Timer:iv,TimerIcon:iv,TimerOff:ov,TimerOffIcon:ov,TimerReset:rv,TimerResetIcon:rv,ToggleLeft:gl,ToggleLeftIcon:gl,ToggleRight:sv,ToggleRightIcon:sv,Toilet:lv,ToiletIcon:lv,ToolCase:cv,ToolCaseIcon:cv,Toolbox:dv,ToolboxIcon:dv,Tornado:hv,TornadoIcon:hv,Torus:uv,TorusIcon:uv,Touchpad:yv,TouchpadIcon:yv,TouchpadOff:pv,TouchpadOffIcon:pv,TowelRack:fv,TowelRackIcon:fv,TowerControl:mv,TowerControlIcon:mv,ToyBrick:kv,ToyBrickIcon:kv,Tractor:gv,TractorIcon:gv,TrafficCone:bv,TrafficConeIcon:bv,Train:Ei,TrainFront:vv,TrainFrontIcon:vv,TrainFrontTunnel:Mv,TrainFrontTunnelIcon:Mv,TrainIcon:Ei,TrainTrack:xv,TrainTrackIcon:xv,TramFront:Ei,TramFrontIcon:Ei,Transgender:wv,TransgenderIcon:wv,Trash:Cv,Trash2:Ti,Trash2Icon:Ti,TrashIcon:Cv,TreeDeciduous:Lv,TreeDeciduousIcon:Lv,TreePalm:Hi,TreePalmIcon:Hi,TreePine:Sv,TreePineIcon:Sv,Trees:Iv,TreesIcon:Iv,Trello:_v,TrelloIcon:_v,TrendingDown:Av,TrendingDownIcon:Av,TrendingUp:Vv,TrendingUpDown:Bv,TrendingUpDownIcon:Bv,TrendingUpIcon:Vv,Triangle:Dv,TriangleAlert:Oi,TriangleAlertIcon:Oi,TriangleDashed:zv,TriangleDashedIcon:zv,TriangleIcon:Dv,TriangleRight:qv,TriangleRightIcon:qv,Trophy:Pv,TrophyIcon:Pv,Truck:Tv,TruckElectric:Ev,TruckElectricIcon:Ev,TruckIcon:Tv,TurkishLira:Hv,TurkishLiraIcon:Hv,Turntable:Ov,TurntableIcon:Ov,Turtle:jv,TurtleIcon:jv,Tv:Nv,Tv2:ji,Tv2Icon:ji,TvIcon:Nv,TvMinimal:ji,TvMinimalIcon:ji,TvMinimalPlay:Fv,TvMinimalPlayIcon:Fv,Twitch:Rv,TwitchIcon:Rv,Twitter:Uv,TwitterIcon:Uv,Type:Wv,TypeIcon:Wv,TypeOutline:$v,TypeOutlineIcon:$v,Umbrella:Kv,UmbrellaIcon:Kv,UmbrellaOff:Gv,UmbrellaOffIcon:Gv,Underline:Xv,UnderlineIcon:Xv,Undo:Yv,Undo2:Zv,Undo2Icon:Zv,UndoDot:Qv,UndoDotIcon:Qv,UndoIcon:Yv,UnfoldHorizontal:Jv,UnfoldHorizontalIcon:Jv,UnfoldVertical:eC,UnfoldVerticalIcon:eC,Ungroup:tC,UngroupIcon:tC,University:Fi,UniversityIcon:Fi,Unlink:nC,Unlink2:aC,Unlink2Icon:aC,UnlinkIcon:nC,Unlock:Zo,UnlockIcon:Zo,UnlockKeyhole:Xo,UnlockKeyholeIcon:Xo,Unplug:oC,UnplugIcon:oC,Upload:rC,UploadCloud:ba,UploadCloudIcon:ba,UploadIcon:rC,Usb:iC,UsbIcon:iC,User:bl,User2:Gi,User2Icon:Gi,UserCheck:sC,UserCheck2:Ni,UserCheck2Icon:Ni,UserCheckIcon:sC,UserCircle:Kn,UserCircle2:Gn,UserCircle2Icon:Gn,UserCircleIcon:Kn,UserCog:lC,UserCog2:Ri,UserCog2Icon:Ri,UserCogIcon:lC,UserIcon:bl,UserKey:cC,UserKeyIcon:cC,UserLock:dC,UserLockIcon:dC,UserMinus:hC,UserMinus2:$i,UserMinus2Icon:$i,UserMinusIcon:hC,UserPen:uC,UserPenIcon:uC,UserPlus:pC,UserPlus2:Ui,UserPlus2Icon:Ui,UserPlusIcon:pC,UserRound:Gi,UserRoundCheck:Ni,UserRoundCheckIcon:Ni,UserRoundCog:Ri,UserRoundCogIcon:Ri,UserRoundIcon:Gi,UserRoundKey:yC,UserRoundKeyIcon:yC,UserRoundMinus:$i,UserRoundMinusIcon:$i,UserRoundPen:fC,UserRoundPenIcon:fC,UserRoundPlus:Ui,UserRoundPlusIcon:Ui,UserRoundSearch:mC,UserRoundSearchIcon:mC,UserRoundX:Wi,UserRoundXIcon:Wi,UserSearch:gC,UserSearchIcon:gC,UserSquare:_i,UserSquare2:Si,UserSquare2Icon:Si,UserSquareIcon:_i,UserStar:kC,UserStarIcon:kC,UserX:bC,UserX2:Wi,UserX2Icon:Wi,UserXIcon:bC,Users:MC,Users2:Ki,Users2Icon:Ki,UsersIcon:MC,UsersRound:Ki,UsersRoundIcon:Ki,Utensils:Zi,UtensilsCrossed:Xi,UtensilsCrossedIcon:Xi,UtensilsIcon:Zi,UtilityPole:xC,UtilityPoleIcon:xC,Van:wC,VanIcon:wC,Variable:CC,VariableIcon:CC,Vault:vC,VaultIcon:vC,VectorSquare:LC,VectorSquareIcon:LC,Vegan:SC,VeganIcon:SC,VenetianMask:IC,VenetianMaskIcon:IC,Venus:_C,VenusAndMars:AC,VenusAndMarsIcon:AC,VenusIcon:_C,Verified:Qa,VerifiedIcon:Qa,Vibrate:VC,VibrateIcon:VC,VibrateOff:BC,VibrateOffIcon:BC,Video:PC,VideoIcon:PC,VideoOff:zC,VideoOffIcon:zC,Videotape:qC,VideotapeIcon:qC,View:DC,ViewIcon:DC,Voicemail:EC,VoicemailIcon:EC,Volleyball:OC,VolleyballIcon:OC,Volume:FC,Volume1:TC,Volume1Icon:TC,Volume2:HC,Volume2Icon:HC,VolumeIcon:FC,VolumeOff:jC,VolumeOffIcon:jC,VolumeX:NC,VolumeXIcon:NC,Vote:RC,VoteIcon:RC,Wallet:UC,Wallet2:Yi,Wallet2Icon:Yi,WalletCards:$C,WalletCardsIcon:$C,WalletIcon:UC,WalletMinimal:Yi,WalletMinimalIcon:Yi,Wallpaper:WC,WallpaperIcon:WC,Wand:GC,Wand2:Qi,Wand2Icon:Qi,WandIcon:GC,WandSparkles:Qi,WandSparklesIcon:Qi,Warehouse:KC,WarehouseIcon:KC,WashingMachine:XC,WashingMachineIcon:XC,Watch:ZC,WatchIcon:ZC,Waves:eL,WavesArrowDown:YC,WavesArrowDownIcon:YC,WavesArrowUp:QC,WavesArrowUpIcon:QC,WavesIcon:eL,WavesLadder:JC,WavesLadderIcon:JC,Waypoints:tL,WaypointsIcon:tL,Webcam:aL,WebcamIcon:aL,Webhook:oL,WebhookIcon:oL,WebhookOff:nL,WebhookOffIcon:nL,Weight:iL,WeightIcon:iL,WeightTilde:rL,WeightTildeIcon:rL,Wheat:lL,WheatIcon:lL,WheatOff:sL,WheatOffIcon:sL,WholeWord:cL,WholeWordIcon:cL,Wifi:kL,WifiCog:dL,WifiCogIcon:dL,WifiHigh:hL,WifiHighIcon:hL,WifiIcon:kL,WifiLow:pL,WifiLowIcon:pL,WifiOff:uL,WifiOffIcon:uL,WifiPen:yL,WifiPenIcon:yL,WifiSync:fL,WifiSyncIcon:fL,WifiZero:mL,WifiZeroIcon:mL,Wind:gL,WindArrowDown:bL,WindArrowDownIcon:bL,WindIcon:gL,Wine:ML,WineIcon:ML,WineOff:xL,WineOffIcon:xL,Workflow:wL,WorkflowIcon:wL,Worm:vL,WormIcon:vL,WrapText:qi,WrapTextIcon:qi,Wrench:CL,WrenchIcon:CL,X:pt,XCircle:Xn,XCircleIcon:Xn,XIcon:pt,XLineTop:LL,XLineTopIcon:LL,XOctagon:or,XOctagonIcon:or,XSquare:Ii,XSquareIcon:Ii,Youtube:SL,YoutubeIcon:SL,Zap:AL,ZapIcon:AL,ZapOff:IL,ZapOffIcon:IL,ZoomIn:_L,ZoomInIcon:_L,ZoomOut:BL,ZoomOutIcon:BL,createLucideIcon:l,icons:pD},Symbol.toStringTag,{value:"Module"})),yD=["aria-busy"],fD={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},mD=["for"],kD={key:0,class:"ml-1 text-destructive"},gD={class:"relative"},bD={key:0,class:"flex items-center text-gray-500 gap-2"},MD=["id","placeholder","disabled","readonly","value"],xD={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},wD=["disabled"],vD={class:"overflow-y-auto overflow-x-hidden",style:{"max-height":"350px"}},CD=["onMouseenter","onClick"],LD={key:0},SD={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},ID={key:0},_D={key:1},AD={key:2},BD={key:1,class:"mt-1 text-xs text-red-600"},sI=a.defineComponent({name:"DCodeAutoComplete",inheritAttrs:!1,__name:"DCodeAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{default:()=>({})},fetchItems:{},icon:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.computed(()=>r.label??void 0),s=$=>{const ae=r[$];return ae===""||ae===!0||ae==="true"||ae===1||ae==="1"},c=a.ref(!1),d=a.computed(()=>n.itemTitle||r["item-title"]||r.itemTitle||"name"),h=a.computed(()=>n.itemValue||r["item-value"]||r.itemValue||"id"),u=a.computed(()=>n.disabled),p=a.computed(()=>s("required")),y=a.computed(()=>s("readonly")),f=a.computed(()=>n.returnObject||s("return-object")||s("returnObject")),m=a.computed(()=>p.value||s("aria-required")),g=a.computed(()=>n.error||n.errorMessage||r["error-message"]),k=a.computed(()=>r.placeholder??""),M=a.computed(()=>{const $=r.minChars??r["min-chars"];if($==null||$==="")return 0;const ae=typeof $=="number"?$:Number.parseInt(String($),10);return Number.isFinite(ae)&&ae>0?ae:0}),w=a.computed(()=>{const $=r.rules;return Array.isArray($)?$:[]}),x=a.computed(()=>{const $=r.id||r.label;return $?`app-autocomplete-${$}-${Math.random().toString(36).slice(2,7)}`:void 0}),b=a.ref(n.modelValue),C=a.ref([]),S=a.ref(!1),L=a.ref(!1),v=a.computed(()=>r.items),I=a.computed(()=>{const $=T.value;return $.apiModule&&$.apiAction||$.apiUrl||n.fetchItems?C.value:v.value??[]}),q=a.computed(()=>!!r.loading),B=a.computed(()=>q.value||S.value),A=a.computed(()=>{const{label:$,items:ae,loading:de,rules:xe,"item-title":De,"item-value":Z,itemTitle:te,itemValue:ne,minChars:fe,"min-chars":He,clearable:Vt,required:GP,"aria-required":FS,disabled:KP,readonly:Je,visible:XP,"return-object":NS,returnObject:ZP,class:RS,"fetch-items":YP,fetchItems:$_,error:QP,errorMessage:JP,"error-message":U_,...W_}=r||{};return W_}),V=()=>{if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions},T=a.computed(()=>{const $=n.endpoint||{};return{apiModule:n.apiModule||$.apiModule,apiAction:n.apiAction||$.apiAction,apiUrl:$.apiUrl,apiMethod:$.apiMethod||"GET"}}),W=a.ref(null),H=a.ref(null),O=a.ref(null),{floatingStyles:U}=y1(H,O,{placement:"bottom-start",whileElementsMounted:d1,middleware:[h1(4),Zs(),u1(),p1({apply({rects:$,elements:ae,availableHeight:de}){Object.assign(ae.floating.style,{width:`${$.reference.width}px`,maxHeight:`${de}px`})}})]}),J=a.ref(!1),D=a.ref(""),F=a.ref(-1),N=a.ref(null),Y=a.computed(()=>!M.value||(D.value||"").trim().length>=M.value?"":`Ketik minimal ${M.value} karakter`),Q=$=>{if($==null)return"";if(typeof $=="string"||typeof $=="number")return String($);const ae=d.value;return typeof ae=="function"?ae($):($==null?void 0:$[ae])??($==null?void 0:$.name)??($==null?void 0:$.nama)??($==null?void 0:$.label)??($==null?void 0:$.title)??"-"},re=$=>{if($==null)return null;if(typeof $=="string"||typeof $=="number")return $;const ae=h.value;return typeof ae=="function"?ae($):($==null?void 0:$[ae])??($==null?void 0:$.id)??($==null?void 0:$.value)??($==null?void 0:$.code)??null},ue=a.computed(()=>{const $=b.value;if($==null||$==="")return"";if(Array.isArray($))return $.length?$.map(xe=>{if(f.value&&typeof xe=="object"||typeof xe=="object")return Q(xe);const De=I.value.find(Z=>re(Z)==xe);return De?Q(De):String(xe)}).join(", "):"";if(typeof $=="object")return Q($);const ae=I.value.find(de=>re(de)==$);return ae?Q(ae):String($)}),pe=a.computed(()=>{const $=I.value||[],ae=(D.value||"").trim().toLowerCase(),de=(ue.value||"").toLowerCase(),xe=!ae||ae===de;let De=$;if(xe||(De=$.filter(Z=>Q(Z).toLowerCase().includes(ae))),De.length>0){const Z=te=>{const ne=re(te);return Array.isArray(b.value)?b.value.some(fe=>fe==ne):b.value==ne};De=[...De].sort((te,ne)=>{const fe=Z(te),He=Z(ne);return fe&&!He?-1:!fe&&He?1:0})}return De}),Ie=$=>Array.isArray($)?$.length===0:$==null||$==="",ce=$=>{if(N.value=null,p.value&&Ie($)&&!w.value.length)return N.value="This field is required",!1;for(const ae of w.value){const de=ae($);if(de===!1)return N.value="Invalid value",!1;if(typeof de=="string")return N.value=de,!1}return!0},X=async()=>{if(u.value||y.value)return;J.value=!0,F.value=pe.value.length?0:-1,D.value=ue.value||"";const $=T.value,ae=$.apiModule&&$.apiAction||$.apiUrl||n.fetchItems;n.autoFetchOnOpen&&ae&&!L.value&&(await At(),F.value=pe.value.length?0:-1)},z=()=>{J.value=!1,F.value=-1,D.value=ue.value||""},R=$=>{const ae=f.value?$:re($);let de=ae;Array.isArray(b.value)&&(de=[ae]),b.value=de,o("update:modelValue",de),N.value=null,ce(de),D.value=Q($),z()},ee=()=>{C.value=[],L.value=!1,b.value=Array.isArray(b.value)?[]:null,o("update:modelValue",b.value),D.value="",N.value=null},ye=()=>{c.value=!0,ee(),z(),setTimeout(()=>{c.value=!1},0)},Ne=$=>{if(u.value||y.value)return;const ae=$.target.value;D.value=ae,N.value&&(N.value=null),J.value||(J.value=!0),F.value=pe.value.length?0:-1;const de=T.value.apiModule&&T.value.apiAction||T.value.apiUrl||n.fetchItems;n.autoFetchOnOpen&&de&&!B.value&&!L.value&&At()},ut=$=>{var de;if(u.value||y.value)return;const ae={ArrowDown:()=>{if($.preventDefault(),!J.value){X();return}pe.value.length&&(F.value=Math.min(F.value+1,pe.value.length-1))},ArrowUp:()=>{!J.value||!pe.value.length||($.preventDefault(),F.value=Math.max(F.value-1,0))},Enter:()=>{if(!J.value)return;$.preventDefault();const xe=pe.value[F.value];xe&&R(xe)},Escape:()=>{$.preventDefault(),z()},Tab:()=>{z()}};(de=ae[$.key])==null||de.call(ae)},At=async()=>{const $=T.value;if($.apiModule&&$.apiAction||$.apiUrl||n.fetchItems){S.value=!0;try{let de;if(n.fetchItems){const xe=V()||{},De={page:1,perPage:100,search:(D.value||"").trim(),...xe,...n.apiParams},Z=await n.fetchItems(De),te=(Z==null?void 0:Z.data)??Z;de=(te==null?void 0:te.data)??te}else{const De=et().DCodeApi;if(typeof De!="function"){console.error("[DCodeAutoComplete] useApi() must expose DCodeApi()");return}const te={page:1,perPage:100,...V()||{},...n.apiParams};let ne;$.apiUrl?ne=await De("","",te,{_url:$.apiUrl,_method:$.apiMethod||"POST"}):ne=await De($.apiModule,$.apiAction,te);const fe=(ne==null?void 0:ne.data)??ne;de=(fe==null?void 0:fe.data)??fe}C.value=Array.isArray(de)?de:[],L.value=!0}catch(de){console.error("[DCodeAutoComplete][fetchOptions] ERROR:",de),N.value=`[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(de==null?void 0:de.message)||(de==null?void 0:de.toString())||"Failed to load options"}`,C.value=[],L.value=!0}finally{S.value=!1}}},Bt=$=>{const ae=re($);return f.value?b.value?Array.isArray(b.value)?b.value.some(de=>re(de)==ae):re(b.value)==ae:!1:Array.isArray(b.value)?b.value.some(de=>de==ae):b.value==ae};a.watch(()=>[V(),T.value,n.apiParams],([$,ae,de],[xe,De,Z])=>{const te=T.value;if(!(te.apiModule&&te.apiAction||te.apiUrl||n.fetchItems)){ee();return}const fe=JSON.stringify($??null)===JSON.stringify(xe??null),He=JSON.stringify(de??null)===JSON.stringify(Z??null);fe&&He||(ee(),He||At())},{deep:!0}),a.watch(()=>n.modelValue,($,ae)=>{b.value=$,!c.value&&($==null||$==="")&&ae!=null&&n.apiModule&&n.apiAction&&(C.value=[],L.value=!1),D.value=ue.value||""},{immediate:!0});const Ha=T.value;(Ha.apiModule&&Ha.apiAction||Ha.apiUrl||n.fetchItems)&&(n.autoFetchOnMount||!Ie(n.modelValue))&&At();const Gs=$=>{const ae=W.value,de=O.value,xe=$.target;ae&&ae.contains(xe)||de&&de.contains(xe)||J.value&&z()},Jl=a.computed(()=>{const $=n.modelValue;return $==null?!1:typeof $=="string"?$.trim().length>0:Array.isArray($)?$.length>0:typeof $=="object"?Object.keys($).length>0:!0}),xt=a.computed(()=>!!n.clearable&&Jl.value&&!n.disabled);return a.onMounted(()=>{document.addEventListener("mousedown",Gs)}),a.onBeforeUnmount(()=>{document.removeEventListener("mousedown",Gs)}),($,ae)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:W,class:a.normalizeClass(["w-full",a.unref(r).class]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",fD)):a.createCommentVNode("",!0),ae[6]||(ae[6]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createElementBlock("label",{key:0,for:x.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[a.createTextVNode(a.toDisplayString(i.value)+" ",1),m.value?(a.openBlock(),a.createElementBlock("span",kD,"*")):a.createCommentVNode("",!0)],8,mD)):a.createCommentVNode("",!0),a.createElementVNode("div",gD,[a.createElementVNode("div",{ref_key:"reference",ref:H,class:a.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[u.value||y.value?"opacity-60 cursor-not-allowed":"",N.value||g.value?"border-red-500 focus-within:ring-red-500":""]])},[n.icon||$.$slots["prepend-inner"]?(a.openBlock(),a.createElementBlock("div",bD,[a.renderSlot($.$slots,"prepend-inner",{},()=>[n.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),a.createElementVNode("input",a.mergeProps(A.value,{id:x.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",u.value||y.value?"cursor-not-allowed":"cursor-text"],placeholder:k.value,disabled:u.value,readonly:y.value,value:J.value?D.value:ue.value||D.value,onFocus:ae[0]||(ae[0]=()=>{J.value||X()}),onClick:ae[1]||(ae[1]=()=>{J.value||X()}),onInput:Ne,onKeydown:ut,onBlur:ae[2]||(ae[2]=()=>ce(b.value))}),null,16,MD),B.value?(a.openBlock(),a.createElementBlock("svg",xD,[...ae[7]||(ae[7]=[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):xt.value?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:ae[3]||(ae[3]=a.withModifiers(()=>{},["prevent"])),onClick:a.withModifiers(ye,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(a.openBlock(),a.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:u.value||y.value,onClick:ae[4]||(ae[4]=de=>J.value?z():X()),"aria-label":"Toggle"},[a.createVNode(a.unref(Et),{class:a.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":J.value}])},null,8,["class"])],8,wD))],2),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[J.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floating",ref:O,style:a.normalizeStyle(a.unref(U)),class:"z-[50] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[a.createElementVNode("div",vD,[pe.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(pe.value,(de,xe)=>(a.openBlock(),a.createElementBlock("button",{key:re(de)??xe,type:"button",class:a.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",xe===F.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:De=>F.value=xe,onMousedown:ae[5]||(ae[5]=a.withModifiers(()=>{},["prevent"])),onClick:De=>R(de)},[a.createTextVNode(a.toDisplayString(Q(de))+" ",1),Bt(de)?(a.openBlock(),a.createElementBlock("span",LD," ✓ ")):a.createCommentVNode("",!0)],42,CD))),128)):a.renderSlot($.$slots,"no-data",{key:1},()=>[a.createElementVNode("div",SD,[B.value?(a.openBlock(),a.createElementBlock("span",ID,"Loading data…")):Y.value?(a.openBlock(),a.createElementBlock("span",_D,a.toDisplayString(Y.value),1)):(a.openBlock(),a.createElementBlock("span",AD,"No data available"))])])])],4)):a.createCommentVNode("",!0)]))]),N.value||g.value?(a.openBlock(),a.createElementBlock("p",BD,a.toDisplayString(N.value||g.value),1)):a.createCommentVNode("",!0)],64))],10,yD)),[[a.vShow,e.visible]])}}),VD=["aria-busy"],zD={key:0,class:"mb-1 h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},PD=["for"],qD={key:0,class:"ml-1 text-destructive"},DD={class:"relative"},ED={key:0,class:"flex items-center text-gray-500 gap-2"},TD=["id","placeholder","disabled","value"],HD={key:1,class:"h-6 w-6 animate-spin text-gray-500",viewBox:"0 0 24 24",fill:"none"},OD=["disabled"],jD={key:0,class:"p-3 space-y-2"},FD=["onMouseenter","onClick"],ND={class:"flex items-center space-x-3"},RD={class:"flex-1"},$D={class:"text-sm font-medium text-gray-900 dark:text-gray-100"},UD={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},WD={key:0},GD={key:2,class:"p-3 text-center"},KD={class:"inline-flex items-center space-x-2"},XD={class:"text-sm text-gray-500"},ZD={key:3,class:"p-3 text-center"},YD={class:"text-xs text-gray-400"},QD={key:4,class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400"},JD={key:1,class:"mt-1 text-xs text-red-600"},eE={key:2,class:"mt-1 text-xs text-gray-500"},MA=a.defineComponent({name:"DCodeInfiniteAutoComplete",inheritAttrs:!1,__name:"DCodeInfiniteAutoComplete",props:{modelValue:{},apiModule:{},apiAction:{},apiOptions:{},autoFetchOnOpen:{type:Boolean,default:!0},refreshOnOpen:{type:Boolean,default:!1},autoFetchOnMount:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean,default:!1},error:{default:null},errorMessage:{default:null},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},itemSubtitle:{},returnObject:{type:Boolean,default:!1},endpoint:{},apiParams:{},fetchItems:{},icon:{},label:{},placeholder:{default:"Select an option"},required:{type:Boolean,default:!1},inputType:{default:"text"},helperText:{default:""},noResultsText:{default:"No results found"},loadingText:{default:"Loading more..."},endOfResultsText:{default:"End of results"},pageSize:{default:10},threshold:{default:100},debounceMs:{default:300}},emits:["update:modelValue","focus","blur","select","search","load-more","end-of-results","error"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.ref(),s=a.ref(),c=a.ref(),d=a.ref(),h=a.ref(),u=a.computed(()=>{const F=n.label||n.placeholder;return F?`app-infinite-autocomplete-${F}-${Math.random().toString(36).slice(2,7)}`:void 0}),p=a.ref(""),y=a.ref([]),f=a.ref(!1),m=a.ref(!1),g=a.ref(-1),k=a.ref(1),M=a.ref(!0),w=a.ref(0),x=a.ref(),{floatingStyles:b}=y1(d,h,{placement:"bottom-start",whileElementsMounted:d1,middleware:[h1(4),Zs(),u1(),p1({apply({rects:F,elements:N}){Object.assign(N.floating.style,{width:`${F.reference.width}px`})}})]});a.computed(()=>({"opacity-50 pointer-events-none":n.disabled,relative:!0}));const C=a.computed(()=>p.value?y.value.filter(F=>I(F).toLowerCase().includes(p.value.toLowerCase())):y.value),S=a.computed(()=>{if(m.value&&p.value)return p.value;if(n.modelValue){if(n.returnObject)return I(n.modelValue);{const F=y.value.find(N=>q(N)===n.modelValue);return F?I(F):String(n.modelValue)}}return""}),L=()=>{m.value=!0},v=()=>{m.value=!1},I=F=>typeof n.itemTitle=="function"?n.itemTitle(F):F[n.itemTitle]||"",q=F=>typeof n.itemValue=="function"?n.itemValue(F):F[n.itemValue]||F,B=F=>n.itemSubtitle?typeof n.itemSubtitle=="function"?n.itemSubtitle(F):F[n.itemSubtitle]||"":"",A=F=>n.modelValue?n.returnObject?q(F)===q(n.modelValue):q(F)===n.modelValue:!1,V=F=>{var Y;const N=n.returnObject?F:q(F);o("update:modelValue",N),o("select",F),m.value=!1,p.value="",(Y=i.value)==null||Y.blur()},T=()=>{var F;o("update:modelValue",null),p.value="",(F=i.value)==null||F.focus()},W=F=>{m.value=!0,o("focus",F),n.autoFetchOnOpen&&!f.value&&(n.refreshOnOpen||y.value.length===0)&&D(!0)},H=F=>{setTimeout(()=>{m.value=!1,o("blur",F)},200)},O=F=>{const N=F.target;p.value=N.value,x.value&&clearTimeout(x.value),x.value=setTimeout(()=>{o("search",p.value),k.value=1,M.value=!0,D(!0)},n.debounceMs)},U=F=>{if(m.value)switch(F.key){case"ArrowDown":F.preventDefault(),g.value=Math.min(g.value+1,C.value.length-1);break;case"ArrowUp":F.preventDefault(),g.value=Math.max(g.value-1,0);break;case"Enter":F.preventDefault(),g.value>=0&&C.value[g.value]&&V(C.value[g.value]);break;case"Escape":m.value=!1;break}},J=F=>{if(!M.value||f.value)return;const N=F.target,{scrollTop:Y,scrollHeight:Q,clientHeight:re}=N;Y+re>=Q-n.threshold&&D()},D=async(F=!1)=>{var N,Y;if(!f.value){f.value=!0;try{let Q=[];if(n.fetchItems)Q=await n.fetchItems();else{const re=et(),ue=((N=n.endpoint)==null?void 0:N.apiModule)||n.apiModule,pe=((Y=n.endpoint)==null?void 0:Y.apiAction)||n.apiAction;if(!ue||!pe)throw new Error("API module and action are required");const Ie={page:F?1:k.value,pageSize:n.pageSize,search:p.value,...n.apiParams},ce=await re.apiUrl(`/${ue}/${pe}`,"GET",Ie);Q=ce.data||ce.items||ce||[],w.value=ce.total||ce.totalItems||Q.length}F?(y.value=Q,k.value=1):(y.value.push(...Q),k.value++),M.value=Q.length>=n.pageSize,M.value||o("end-of-results"),o("load-more",{items:Q,page:k.value,hasMore:M.value,total:w.value})}catch(Q){console.error("Error fetching items:",Q),o("error",Q)}finally{f.value=!1}}};return a.onMounted(()=>{n.autoFetchOnMount&&D()}),a.onUnmounted(()=>{x.value&&clearTimeout(x.value)}),a.watch(()=>n.modelValue,F=>{F||(p.value="")}),(F,N)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:c,class:a.normalizeClass(["w-full",a.unref(r).class]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",zD)):a.createCommentVNode("",!0),N[3]||(N[3]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:u.value,class:"mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",qD,"*")):a.createCommentVNode("",!0)],8,PD)):a.createCommentVNode("",!0),a.createElementVNode("div",DD,[a.createElementVNode("div",{ref_key:"reference",ref:d,class:a.normalizeClass(["flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 h-10 focus-within:ring-1 focus-within:ring-gray-700 dark:focus-within:ring-gray-300",[e.disabled?"opacity-60 cursor-not-allowed":"",e.error?"border-red-500 focus-within:ring-red-500":""]])},[n.icon?(a.openBlock(),a.createElementBlock("div",ED,[n.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.icon),{key:0,class:"h-4 w-4"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("input",a.mergeProps({ref_key:"inputRef",ref:i},F.$attrs,{id:u.value,type:"text",class:["w-full bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400",e.disabled?"cursor-not-allowed":"cursor-text"],placeholder:e.placeholder,disabled:e.disabled,value:S.value,onFocus:W,onBlur:H,onInput:O,onKeydown:U}),null,16,TD),f.value?(a.openBlock(),a.createElementBlock("svg",HD,[...N[4]||(N[4]=[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):e.clearable&&e.modelValue?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",onMousedown:N[0]||(N[0]=a.withModifiers(()=>{},["prevent"])),onClick:a.withModifiers(T,["stop"]),"aria-label":"Clear"}," ✕ ",32)):(a.openBlock(),a.createElementBlock("button",{key:3,type:"button",class:"shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",disabled:e.disabled,onClick:N[1]||(N[1]=Y=>m.value?v():L()),"aria-label":"Toggle"},[a.createVNode(a.unref(Et),{class:a.normalizeClass(["h-4 w-4 transition-transform duration-200 ease-in-out",{"rotate-180":m.value}])},null,8,["class"])],8,OD))],2),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[m.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floating",ref:h,style:a.normalizeStyle(a.unref(b)),class:"z-[9999] overflow-hidden rounded-lg border bg-white shadow-lg border-gray-200 dark:border-gray-700 dark:bg-neutral-900"},[a.createElementVNode("div",{ref_key:"scrollContainer",ref:s,class:"max-h-64 overflow-auto",onScroll:J},[f.value&&y.value.length===0?(a.openBlock(),a.createElementBlock("div",jD,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(5,Y=>a.createElementVNode("div",{key:Y,class:"flex items-center space-x-3"},[...N[5]||(N[5]=[a.createElementVNode("div",{class:"skeleton h-4 w-4 bg-gray-200 rounded"},null,-1),a.createElementVNode("div",{class:"skeleton h-4 flex-1 bg-gray-200 rounded"},null,-1)])])),64))])):C.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(C.value,(Y,Q)=>(a.openBlock(),a.createElementBlock("button",{key:q(Y)??Q,type:"button",class:a.normalizeClass(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",Q===g.value?"bg-neutral-100 dark:bg-neutral-800":""]),onMouseenter:re=>g.value=Q,onMousedown:N[2]||(N[2]=a.withModifiers(()=>{},["prevent"])),onClick:re=>V(Y)},[a.renderSlot(F.$slots,"item",{item:Y,index:Q},()=>[a.createElementVNode("div",ND,[a.createElementVNode("div",RD,[a.createElementVNode("div",$D,a.toDisplayString(I(Y)),1),e.itemSubtitle?(a.openBlock(),a.createElementBlock("div",UD,a.toDisplayString(B(Y)),1)):a.createCommentVNode("",!0)])])]),A(Y)?(a.openBlock(),a.createElementBlock("span",WD," ✓ ")):a.createCommentVNode("",!0)],42,FD))),128)):a.createCommentVNode("",!0),f.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",GD,[a.createElementVNode("div",KD,[N[6]||(N[6]=a.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"},null,-1)),a.createElementVNode("span",XD,a.toDisplayString(e.loadingText),1)])])):a.createCommentVNode("",!0),!M.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",ZD,[a.createElementVNode("div",YD,a.toDisplayString(e.endOfResultsText),1)])):!f.value&&y.value.length===0?(a.openBlock(),a.createElementBlock("div",QD,a.toDisplayString(e.noResultsText),1)):a.createCommentVNode("",!0)],544)],4)):a.createCommentVNode("",!0)]))]),e.error?(a.openBlock(),a.createElementBlock("p",JD,a.toDisplayString(e.errorMessage||e.error),1)):e.helperText?(a.openBlock(),a.createElementBlock("p",eE,a.toDisplayString(e.helperText),1)):a.createCommentVNode("",!0)],64))],10,VD)),[[a.vShow,e.visible]])}});function xA(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=xA(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function wA(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=xA(e))&&(o&&(o+=" "),o+=t);return o}const tE=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},aE=(e,t)=>({classGroupId:e,validator:t}),vA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),VL="-",CA=[],nE="arbitrary..",oE=e=>{const t=iE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return rE(s);const c=s.split(VL),d=c[0]===""&&c.length>1?1:0;return LA(c,d,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const d=o[s],h=n[s];return d?h?tE(h,d):d:h||CA}return n[s]||CA}}},LA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],i=n.nextPart.get(r);if(i){const h=LA(e,t+1,i);if(h)return h}const s=n.validators;if(s===null)return;const c=t===0?e.join(VL):e.slice(t).join(VL),d=s.length;for(let h=0;h<d;h++){const u=s[h];if(u.validator(c))return u.classGroupId}},rE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?nE+o:void 0})(),iE=e=>{const{theme:t,classGroups:n}=e;return sE(n,t)},sE=(e,t)=>{const n=vA();for(const o in e){const r=e[o];lI(r,n,o,t)}return n},lI=(e,t,n,o)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];lE(s,t,n,o)}},lE=(e,t,n,o)=>{if(typeof e=="string"){cE(e,t,n);return}if(typeof e=="function"){dE(e,t,n,o);return}hE(e,t,n,o)},cE=(e,t,n)=>{const o=e===""?t:SA(t,e);o.classGroupId=n},dE=(e,t,n,o)=>{if(uE(e)){lI(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(aE(n,e))},hE=(e,t,n,o)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[c,d]=r[s];lI(d,SA(t,c),n,o)}},SA=(e,t)=>{let n=e;const o=t.split(VL),r=o.length;for(let i=0;i<r;i++){const s=o[i];let c=n.nextPart.get(s);c||(c=vA(),n.nextPart.set(s,c)),n=c}return n},uE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(i,s)=>{n[i]=s,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=o[i])!==void 0)return r(i,s),s},set(i,s){i in n?n[i]=s:r(i,s)}}},cI="!",IA=":",yE=[],_A=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),fE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const i=[];let s=0,c=0,d=0,h;const u=r.length;for(let g=0;g<u;g++){const k=r[g];if(s===0&&c===0){if(k===IA){i.push(r.slice(d,g)),d=g+1;continue}if(k==="/"){h=g;continue}}k==="["?s++:k==="]"?s--:k==="("?c++:k===")"&&c--}const p=i.length===0?r:r.slice(d);let y=p,f=!1;p.endsWith(cI)?(y=p.slice(0,-1),f=!0):p.startsWith(cI)&&(y=p.slice(1),f=!0);const m=h&&h>d?h-d:void 0;return _A(i,f,y,m)};if(t){const r=t+IA,i=o;o=s=>s.startsWith(r)?i(s.slice(r.length)):_A(yE,!1,s,void 0,!0)}if(n){const r=o;o=i=>n({className:i,parseClassName:r})}return o},mE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let i=0;i<n.length;i++){const s=n[i],c=s[0]==="[",d=t.has(s);c||d?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},kE=e=>({cache:pE(e.cacheSize),parseClassName:fE(e),sortModifiers:mE(e),...oE(e)}),gE=/\s+/,bE=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],c=e.trim().split(gE);let d="";for(let h=c.length-1;h>=0;h-=1){const u=c[h],{isExternal:p,modifiers:y,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}=n(u);if(p){d=u+(d.length>0?" "+d:d);continue}let k=!!g,M=o(k?m.substring(0,g):m);if(!M){if(!k){d=u+(d.length>0?" "+d:d);continue}if(M=o(m),!M){d=u+(d.length>0?" "+d:d);continue}k=!1}const w=y.length===0?"":y.length===1?y[0]:i(y).join(":"),x=f?w+cI:w,b=x+M;if(s.indexOf(b)>-1)continue;s.push(b);const C=r(M,k);for(let S=0;S<C.length;++S){const L=C[S];s.push(x+L)}d=u+(d.length>0?" "+d:d)}return d},ME=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=AA(n))&&(r&&(r+=" "),r+=o);return r},AA=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=AA(e[o]))&&(n&&(n+=" "),n+=t);return n},xE=(e,...t)=>{let n,o,r,i;const s=d=>{const h=t.reduce((u,p)=>p(u),e());return n=kE(h),o=n.cache.get,r=n.cache.set,i=c,c(d)},c=d=>{const h=o(d);if(h)return h;const u=bE(d,n);return r(d,u),u};return i=s,(...d)=>i(ME(...d))},wE=[],Ue=e=>{const t=n=>n[e]||wE;return t.isThemeGetter=!0,t},BA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,CE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,SE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,IE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=e=>vE.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),wa=e=>!!e&&Number.isInteger(Number(e)),dI=e=>e.endsWith("%")&&be(e.slice(0,-1)),oa=e=>CE.test(e),zA=()=>!0,AE=e=>LE.test(e)&&!SE.test(e),hI=()=>!1,BE=e=>IE.test(e),VE=e=>_E.test(e),zE=e=>!ie(e)&&!se(e),PE=e=>va(e,HA,hI),ie=e=>BA.test(e),Ji=e=>va(e,OA,AE),PA=e=>va(e,FE,be),qE=e=>va(e,FA,zA),DE=e=>va(e,jA,hI),qA=e=>va(e,EA,hI),EE=e=>va(e,TA,VE),zL=e=>va(e,NA,BE),se=e=>VA.test(e),Ml=e=>es(e,OA),TE=e=>es(e,jA),DA=e=>es(e,EA),HE=e=>es(e,HA),OE=e=>es(e,TA),PL=e=>es(e,NA,!0),jE=e=>es(e,FA,!0),va=(e,t,n)=>{const o=BA.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},es=(e,t,n=!1)=>{const o=VA.exec(e);return o?o[1]?t(o[1]):n:!1},EA=e=>e==="position"||e==="percentage",TA=e=>e==="image"||e==="url",HA=e=>e==="length"||e==="size"||e==="bg-size",OA=e=>e==="length",FE=e=>e==="number",jA=e=>e==="family-name",FA=e=>e==="number"||e==="weight",NA=e=>e==="shadow",NE=xE(()=>{const e=Ue("color"),t=Ue("font"),n=Ue("text"),o=Ue("font-weight"),r=Ue("tracking"),i=Ue("leading"),s=Ue("breakpoint"),c=Ue("container"),d=Ue("spacing"),h=Ue("radius"),u=Ue("shadow"),p=Ue("inset-shadow"),y=Ue("text-shadow"),f=Ue("drop-shadow"),m=Ue("blur"),g=Ue("perspective"),k=Ue("aspect"),M=Ue("ease"),w=Ue("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...b(),se,ie],S=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],v=()=>[se,ie,d],I=()=>[xa,"full","auto",...v()],q=()=>[wa,"none","subgrid",se,ie],B=()=>["auto",{span:["full",wa,se,ie]},wa,se,ie],A=()=>[wa,"auto",se,ie],V=()=>["auto","min","max","fr",se,ie],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...v()],O=()=>[xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],U=()=>[xa,"screen","full","dvw","lvw","svw","min","max","fit",...v()],J=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],D=()=>[e,se,ie],F=()=>[...b(),DA,qA,{position:[se,ie]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",HE,PE,{size:[se,ie]}],Q=()=>[dI,Ml,Ji],re=()=>["","none","full",h,se,ie],ue=()=>["",be,Ml,Ji],pe=()=>["solid","dashed","dotted","double"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[be,dI,DA,qA],X=()=>["","none",m,se,ie],z=()=>["none",be,se,ie],R=()=>["none",be,se,ie],ee=()=>[be,se,ie],ye=()=>[xa,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oa],breakpoint:[oa],color:[zA],container:[oa],"drop-shadow":[oa],ease:["in","out","in-out"],font:[zE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oa],shadow:[oa],spacing:["px",be],text:[oa],"text-shadow":[oa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,ie,se,k]}],container:["container"],columns:[{columns:[be,ie,se,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wa,"auto",se,ie]}],basis:[{basis:[xa,"full","auto",c,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,xa,"auto","initial","none",ie]}],grow:[{grow:["",be,se,ie]}],shrink:[{shrink:["",be,se,ie]}],order:[{order:[wa,"first","last","none",se,ie]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[c,"screen",...O()]}],"min-w":[{"min-w":[c,"screen","none",...O()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,Ml,Ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,jE,qE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dI,ie]}],"font-family":[{font:[TE,DE,t]}],"font-features":[{"font-features":[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,se,ie]}],"line-clamp":[{"line-clamp":[be,"none",se,PA]}],leading:[{leading:[i,...v()]}],"list-image":[{"list-image":["none",se,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",se,Ji]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[be,"auto",se,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wa,se,ie],radial:["",se,ie],conic:[wa,se,ie]},OE,EE]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,se,ie]}],"outline-w":[{outline:["",be,Ml,Ji]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,PL,zL]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",p,PL,zL]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[be,Ji]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",y,PL,zL]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[be,se,ie]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[se,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,ie]}],filter:[{filter:["","none",se,ie]}],blur:[{blur:X()}],brightness:[{brightness:[be,se,ie]}],contrast:[{contrast:[be,se,ie]}],"drop-shadow":[{"drop-shadow":["","none",f,PL,zL]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",be,se,ie]}],"hue-rotate":[{"hue-rotate":[be,se,ie]}],invert:[{invert:["",be,se,ie]}],saturate:[{saturate:[be,se,ie]}],sepia:[{sepia:["",be,se,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",se,ie]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[be,se,ie]}],"backdrop-contrast":[{"backdrop-contrast":[be,se,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,se,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,se,ie]}],"backdrop-invert":[{"backdrop-invert":["",be,se,ie]}],"backdrop-opacity":[{"backdrop-opacity":[be,se,ie]}],"backdrop-saturate":[{"backdrop-saturate":[be,se,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",be,se,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",se,ie]}],ease:[{ease:["linear","initial",M,se,ie]}],delay:[{delay:[be,se,ie]}],animate:[{animate:["none",w,se,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,se,ie]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[se,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,ie]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[be,Ml,Ji,PA]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Me(...e){return NE(wA(e))}function RE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uI={},pI={},qL={exports:{}},RA;function $E(){if(RA)return qL.exports;RA=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return qL.exports=t(),qL.exports.createColors=t,qL.exports}var $A;function UE(){return $A||($A=1,(function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function n(h,u){for(var p in u)Object.defineProperty(h,p,{enumerable:!0,get:u[p]})}n(e,{dim:function(){return c},default:function(){return d}});const o=r($E());function r(h){return h&&h.__esModule?h:{default:h}}let i=new Set;function s(h,u,p){typeof process<"u"&&t.JEST_WORKER_ID||p&&i.has(p)||(p&&i.add(p),console.warn(""),u.forEach(y=>console.warn(h,"-",y)))}function c(h){return o.default.dim(h)}const d={info(h,u){s(o.default.bold(o.default.cyan("info")),...Array.isArray(h)?[h]:[u,h])},warn(h,u){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(h)?[h]:[u,h])},risk(h,u){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(h)?[h]:[u,h])}}})(pI)),pI}var UA;function WE(){return UA||(UA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const t=n(UE());function n(i){return i&&i.__esModule?i:{default:i}}function o({version:i,from:s,to:c}){t.default.warn(`${s}-color-renamed`,[`As of Tailwind CSS ${i}, \`${s}\` has been renamed to \`${c}\`.`,"Update your configuration file to silence this warning."])}const r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(uI)),uI}var yI,WA;function GE(){if(WA)return yI;WA=1;let e=WE();return yI=(e.__esModule?e:{default:e}).default,yI}var KE=GE();const XE=RE(KE),GA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KA=wA,xl=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return KA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(h=>{const u=n==null?void 0:n[h],p=i==null?void 0:i[h];if(u===null)return null;const y=GA(u)||GA(p);return r[h][y]}),c=n&&Object.entries(n).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((h,u)=>{let{class:p,className:y,...f}=u;return Object.entries(f).every(m=>{let[g,k]=m;return Array.isArray(k)?k.includes({...i,...c}[g]):{...i,...c}[g]===k})?[...h,p,y]:h},[]);return KA(e,s,d,n==null?void 0:n.class,n==null?void 0:n.className)};function XA(e){return typeof e=="string"?`'${e}'`:new ZE().serialize(e)}const ZE=(function(){var t;class e{constructor(){nq(this,t,new Map)}compare(o,r){const i=typeof o,s=typeof r;return i==="string"&&s==="string"?o.localeCompare(r):i==="number"&&s==="number"?o-r:String.prototype.localeCompare.call(this.serialize(o,!0),this.serialize(r,!0))}serialize(o,r){if(o===null)return"null";switch(typeof o){case"string":return r?o:`'${o}'`;case"bigint":return`${o}n`;case"object":return this.$object(o);case"function":return this.$function(o)}return String(o)}serializeObject(o){const r=Object.prototype.toString.call(o);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),o);const i=o.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,o);if(typeof o.toJSON=="function"){const c=o.toJSON();return s+(c!==null&&typeof c=="object"?this.$object(c):`(${this.serialize(c)})`)}return this.serializeObjectEntries(s,Object.entries(o))}serializeBuiltInType(o,r){const i=this["$"+o];if(i)return i.call(this,r);if(typeof(r==null?void 0:r.entries)=="function")return this.serializeObjectEntries(o,r.entries());throw new Error(`Cannot serialize ${o}`)}serializeObjectEntries(o,r){const i=Array.from(r).sort((c,d)=>this.compare(c[0],d[0]));let s=`${o}{`;for(let c=0;c<i.length;c++){const[d,h]=i[c];s+=`${this.serialize(d,!0)}:${this.serialize(h)}`,c<i.length-1&&(s+=",")}return s+"}"}$object(o){let r=e1(this,t).get(o);return r===void 0&&(e1(this,t).set(o,`#${e1(this,t).size}`),r=this.serializeObject(o),e1(this,t).set(o,r)),r}$function(o){const r=Function.prototype.toString.call(o);return r.slice(-15)==="[native code] }"?`${o.name||""}()[native]`:`${o.name}(${o.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(o){let r="[";for(let i=0;i<o.length;i++)r+=this.serialize(o[i]),i<o.length-1&&(r+=",");return r+"]"}$Date(o){try{return`Date(${o.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(o){return`ArrayBuffer[${new Uint8Array(o).join(",")}]`}$Set(o){return`Set${this.$Array(Array.from(o).sort((r,i)=>this.compare(r,i)))}`}$Map(o){return this.serializeObjectEntries("Map",o.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(o){return`${n}(${o})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(o){return`${n}[${o.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(o){return`${n}[${o.join("n,")}${o.length>0?"n":""}]`};return e})();function YE(e,t){return e===t||XA(e)===XA(t)}function ZA(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function yt(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[s=>{const c=a.inject(o,s);if(c||c===null)return c;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(a.provide(o,s),s)]}function ct(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function fI(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function mI(e){return e==null}function kI(e){return e?e.flatMap(t=>t.type===a.Fragment?kI(t.children):[t]):[]}const[DL]=yt("ConfigProvider");function QE(e,t){var n;const o=a.shallowRef();return a.watchEffect(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),a.readonly(o)}function Ss(e,t){return a.getCurrentScope()?(a.onScopeDispose(e,t),!0):!1}function JE(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const s=()=>t(i);return Ss(s),{off:s}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(s=>s(...i))),clear:()=>{e.clear()}}}function eT(e){let t=!1,n;const o=a.effectScope(!0);return((...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n))}const gI=new WeakMap,tT=(...e)=>{var t;const n=e[0],o=(t=a.getCurrentInstance())===null||t===void 0?void 0:t.proxy,r=o??a.getCurrentScope();if(r==null&&!a.hasInjectionContext())throw new Error("injectLocal must be called in setup");return r&&gI.has(r)&&n in gI.get(r)?gI.get(r)[n]:a.inject(...e)},ft=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const aT=e=>typeof e<"u",nT=Object.prototype.toString,oT=e=>nT.call(e)==="[object Object]",YA=rT();function rT(){var e,t,n;return ft&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function iT(e,t){var n;if(typeof e=="number")return e+t;const o=((n=e.match(/^-?\d+\.?\d*/))===null||n===void 0?void 0:n[0])||"",r=e.slice(o.length),i=Number.parseFloat(o)+t;return Number.isNaN(i)?e:i+r}function wl(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function bI(e){return Array.isArray(e)?e:[e]}function QA(e){return a.getCurrentInstance()}function sT(e){if(!ft)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(t+=1,o||(o=a.effectScope(!0),n=o.run(()=>e(...i))),Ss(r),n))}function lT(e){return a.isRef(e)?a.reactive(new Proxy({},{get(t,n,o){return a.unref(Reflect.get(e.value,n,o))},set(t,n,o){return a.isRef(e.value[n])&&!a.isRef(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):a.reactive(e)}function cT(e){return lT(a.computed(e))}function Oe(e,...t){const n=t.flat(),o=n[0];return cT(()=>Object.fromEntries(typeof o=="function"?Object.entries(a.toRefs(e)).filter(([r,i])=>!o(a.toValue(i),r)):Object.entries(a.toRefs(e)).filter(r=>!n.includes(r[0]))))}function JA(e,t=1e4){return a.customRef((n,o)=>{let r=a.toValue(e),i;const s=()=>setTimeout(()=>{r=a.toValue(e),o()},a.toValue(t));return Ss(()=>{clearTimeout(i)}),{get(){return n(),r},set(c){r=c,o(),clearTimeout(i),i=s()}}})}function dT(e,t){QA()&&a.onBeforeUnmount(e,t)}function hT(e,t=!0,n){QA()?a.onMounted(e,n):t?e():a.nextTick(e)}function eB(e,t,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n,i=a.shallowRef(!1);let s;function c(){s&&(clearTimeout(s),s=void 0)}function d(){i.value=!1,c()}function h(...u){r&&e(),c(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...u)},a.toValue(t))}return o&&(i.value=!0,ft&&h()),Ss(d),{isPending:a.shallowReadonly(i),start:h,stop:d}}function uT(e,t,n){return a.watch(e,t,{...n,immediate:!0})}const Is=ft?window:void 0;function Wt(e){var t;const n=a.toValue(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function vl(...e){const t=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=a.computed(()=>{const o=bI(a.toValue(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return uT(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>Wt(i)))!==null&&o!==void 0?o:[Is].filter(i=>i!=null),bI(a.toValue(n.value?e[1]:e[0])),bI(a.unref(n.value?e[2]:e[1])),a.toValue(n.value?e[3]:e[2])]},([o,r,i,s],c,d)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(i!=null&&i.length))return;const h=oT(s)?{...s}:s,u=o.flatMap(p=>r.flatMap(y=>i.map(f=>t(p,y,f,h))));d(()=>{u.forEach(p=>p())})},{flush:"post"})}function tB(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function aB(e){const t=tB();return a.computed(()=>(t.value,!!e()))}function pT(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function yT(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Is,eventName:i="keydown",passive:s=!1,dedupe:c=!1}=o,d=pT(t);return vl(r,i,u=>{u.repeat&&a.toValue(c)||d(u)&&n(u)},s)}const fT=Symbol("vueuse-ssr-width");function nB(){const e=a.hasInjectionContext()?tT(fT,null):null;return typeof e=="number"?e:void 0}function Cl(e,t={}){const{window:n=Is,ssrWidth:o=nB()}=t,r=aB(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=a.shallowRef(typeof o=="number"),s=a.shallowRef(),c=a.shallowRef(!1),d=h=>{c.value=h.matches};return a.watchEffect(()=>{if(i.value){i.value=!r.value,c.value=a.toValue(e).split(",").some(h=>{const u=h.includes("not all"),p=h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(p||y);return p&&f&&(f=o>=wl(p[1])),y&&f&&(f=o<=wl(y[1])),u?!f:f});return}r.value&&(s.value=n.matchMedia(a.toValue(e)),c.value=s.value.matches)}),vl(s,"change",d,{passive:!0}),a.computed(()=>c.value)}const mT={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function kT(e,t={}){function n(f,m){let g=a.toValue(e[a.toValue(f)]);return m!=null&&(g=iT(g,m)),typeof g=="number"&&(g=`${g}px`),g}const{window:o=Is,strategy:r="min-width",ssrWidth:i=nB()}=t,s=typeof i=="number",c=s?a.shallowRef(!1):{value:!0};s&&hT(()=>c.value=!!o);function d(f,m){return!c.value&&s?f==="min"?i>=wl(m):i<=wl(m):o?o.matchMedia(`(${f}-width: ${m})`).matches:!1}const h=f=>Cl(()=>`(min-width: ${n(f)})`,t),u=f=>Cl(()=>`(max-width: ${n(f)})`,t),p=Object.keys(e).reduce((f,m)=>(Object.defineProperty(f,m,{get:()=>r==="min-width"?h(m):u(m),enumerable:!0,configurable:!0}),f),{});function y(){const f=Object.keys(e).map(m=>[m,p[m],wl(n(m))]).sort((m,g)=>m[2]-g[2]);return a.computed(()=>f.filter(([,m])=>m.value).map(([m])=>m))}return Object.assign(p,{greaterOrEqual:h,smallerOrEqual:u,greater(f){return Cl(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Cl(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,m){return Cl(()=>`(min-width: ${n(f)}) and (max-width: ${n(m,-.1)})`,t)},isGreater(f){return d("min",n(f,.1))},isGreaterOrEqual(f){return d("min",n(f))},isSmaller(f){return d("max",n(f,-.1))},isSmallerOrEqual(f){return d("max",n(f))},isInBetween(f,m){return d("min",n(f))&&d("max",n(m,-.1))},current:y,active(){const f=y();return a.computed(()=>f.value.length===0?"":f.value.at(r==="min-width"?-1:0))}})}function gT(e){return JSON.parse(JSON.stringify(e))}function bT(e,t,n={}){const{window:o=Is,...r}=n;let i;const s=aB(()=>o&&"ResizeObserver"in o),c=()=>{i&&(i.disconnect(),i=void 0)},d=a.watch(a.computed(()=>{const u=a.toValue(e);return Array.isArray(u)?u.map(p=>Wt(p)):[Wt(u)]}),u=>{if(c(),s.value&&o){i=new ResizeObserver(t);for(const p of u)p&&i.observe(p,r)}},{immediate:!0,flush:"post"}),h=()=>{c(),d()};return Ss(h),{isSupported:s,stop:h}}function _s(e,t,n,o={}){var r,i;const{clone:s=!1,passive:c=!1,eventName:d,deep:h=!1,defaultValue:u,shouldEmit:p}=o,y=a.getCurrentInstance(),f=n||(y==null?void 0:y.emit)||(y==null||(r=y.$emit)===null||r===void 0?void 0:r.bind(y))||(y==null||(i=y.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(y==null?void 0:y.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const g=w=>s?typeof s=="function"?s(w):gT(w):w,k=()=>aT(e[t])?g(e[t]):u,M=w=>{p?p(w)&&f(m,w):f(m,w)};if(c){const w=a.ref(k());let x=!1;return a.watch(()=>e[t],b=>{x||(x=!0,w.value=g(b),a.nextTick(()=>x=!1))}),a.watch(w,b=>{!x&&(b!==e[t]||h)&&M(b)},{deep:h}),w}else return a.computed({get(){return k()},set(w){M(w)}})}function MI(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function xI(e,t,n=".",o){if(!MI(t))return xI(e,{},n,o);const r=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(o&&o(r,i,s,n)||(Array.isArray(s)&&Array.isArray(r[i])?r[i]=[...s,...r[i]]:MI(s)&&MI(r[i])?r[i]=xI(s,r[i],(n?`${n}.`:"")+i.toString(),o):r[i]=s))}return r}function MT(e){return(...t)=>t.reduce((n,o)=>xI(n,o,"",e),{})}const xT=MT(),wT=sT(()=>{const e=a.ref(new Map),t=a.ref(),n=a.computed(()=>{for(const s of e.value.values())if(s)return!0;return!1}),o=DL({scrollBody:a.ref(!0)});let r=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",YA&&(r==null||r()),t.value=void 0};return a.watch(n,(s,c)=>{var p;if(!ft)return;if(!s){c&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,h={padding:d,margin:0},u=(p=o.scrollBody)!=null&&p.value?typeof o.scrollBody.value=="object"?xT({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},h):h:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof u.padding=="number"?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin=="number"?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),YA&&(r=vl(document,"touchmove",y=>vT(y),{passive:!1})),a.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function oB(e){const t=Math.random().toString(36).substring(2,7),n=wT();n.value.set(t,e??!1);const o=a.computed({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return dT(()=>{n.value.delete(t)}),o}function rB(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:rB(n)}}function vT(e){const t=e||window.event,n=t.target;return n instanceof Element&&rB(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function CT(e){const t=DL({dir:a.ref("ltr")});return a.computed(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function EL(e){const t=a.getCurrentInstance(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(r=>{o[a.toHandlerKey(a.camelize(r))]=(...i)=>e(r,...i)}),o}let wI=0;function LT(){a.watchEffect(e=>{if(!ft)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??iB()),document.body.insertAdjacentElement("beforeend",t[1]??iB()),wI++,e(()=>{wI===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),wI--})})}function iB(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function ST(e){return a.computed(()=>{var t;return a.toValue(e)?!!((t=Wt(e))!=null&&t.closest("form")):!0})}function ke(){const e=a.getCurrentInstance(),t=a.ref(),n=a.computed(()=>{var s,c;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(c=t.value)==null?void 0:c.$el.nextElementSibling:Wt(t)}),o=Object.assign({},e.exposed),r={};for(const s in e.props)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(o).length>0)for(const s in o)Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>o[s]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function i(s){if(t.value=s,!!s&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),!(s instanceof Element)&&!Object.prototype.hasOwnProperty.call(s,"$el"))){const c=s.$.exposed,d=Object.assign({},r);for(const h in c)Object.defineProperty(d,h,{enumerable:!0,configurable:!0,get:()=>c[h]});e.exposed=d}}return{forwardRef:i,currentRef:t,currentElement:n}}function nt(e){const t=a.getCurrentInstance(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,i)=>{const s=(t==null?void 0:t.type.props[i]).default;return s!==void 0&&(r[i]=s),r},{}),o=a.toRef(e);return a.computed(()=>{const r={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{r[a.camelize(s)]=i[s]}),Object.keys({...n,...r}).reduce((s,c)=>(o.value[c]!==void 0&&(s[c]=o.value[c]),s),{})})}function St(e,t){const n=nt(e),o=t?EL(t):{};return a.computed(()=>({...n.value,...o}))}function IT(e,t){const n=JA(!1,300);Ss(()=>{n.value=!1});const o=a.ref(null),r=JE();function i(){o.value=null,n.value=!1}function s(c,d){const h=c.currentTarget,u={x:c.clientX,y:c.clientY},p=_T(u,h.getBoundingClientRect()),y=AT(u,p,1),f=BT(d.getBoundingClientRect()),m=zT([...y,...f]);o.value=m,n.value=!0}return a.watchEffect(c=>{if(e.value&&t.value){const d=u=>s(u,t.value),h=u=>s(u,e.value);e.value.addEventListener("pointerleave",d),t.value.addEventListener("pointerleave",h),c(()=>{var u,p;(u=e.value)==null||u.removeEventListener("pointerleave",d),(p=t.value)==null||p.removeEventListener("pointerleave",h)})}}),a.watchEffect(c=>{var d;if(o.value){const h=u=>{var k,M;if(!o.value||!(u.target instanceof Element))return;const p=u.target,y={x:u.clientX,y:u.clientY},f=((k=e.value)==null?void 0:k.contains(p))||((M=t.value)==null?void 0:M.contains(p)),m=!VT(y,o.value),g=!!p.closest("[data-grace-area-trigger]");f?i():(m||g)&&(i(),r.trigger())};(d=e.value)==null||d.ownerDocument.addEventListener("pointermove",h),c(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",h)})}}),{isPointerInTransit:n,onPointerExit:r.on}}function _T(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function AT(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function BT(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function VT(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i].x,d=t[i].y,h=t[s].x,u=t[s].y;d>o!=u>o&&n<(h-c)*(o-d)/(u-d)+c&&(r=!r)}return r}function zT(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),PT(t)}function PT(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},As=new WeakMap,TL=new WeakMap,HL={},vI=0,sB=function(e){return e&&(e.host||sB(e.parentNode))},DT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=sB(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ET=function(e,t,n,o){var r=DT(t,Array.isArray(e)?e:[e]);HL[n]||(HL[n]=new WeakMap);var i=HL[n],s=[],c=new Set,d=new Set(r),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};r.forEach(h);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))u(y);else try{var f=y.getAttribute(o),m=f!==null&&f!=="false",g=(As.get(y)||0)+1,k=(i.get(y)||0)+1;As.set(y,g),i.set(y,k),s.push(y),g===1&&m&&TL.set(y,!0),k===1&&y.setAttribute(n,"true"),m||y.setAttribute(o,"true")}catch(M){console.error("aria-hidden: cannot operate on ",y,M)}})};return u(t),c.clear(),vI++,function(){s.forEach(function(p){var y=As.get(p)-1,f=i.get(p)-1;As.set(p,y),i.set(p,f),y||(TL.has(p)||p.removeAttribute(o),TL.delete(p)),f||p.removeAttribute(n)}),vI--,vI||(As=new WeakMap,As=new WeakMap,TL=new WeakMap,HL={})}},TT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=qT(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ET(o,r,n,"aria-hidden")):function(){return null}};function lB(e){let t;a.watch(()=>Wt(e),n=>{n?t=TT(n):t&&t()}),a.onUnmounted(()=>{t&&t()})}let HT=0;function Bs(e,t="reka"){var o;if("useId"in t1)return`${t}-${(o=t1.useId)==null?void 0:o.call(t1)}`;const n=DL({useId:void 0});return n.useId?`${t}-${n.useId()}`:`${t}-${++HT}`}function OT(e){const t=a.ref(),n=a.computed(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=a.computed(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return a.onMounted(()=>{const r=Wt(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let d,h;if("borderBoxSize"in c){const u=c.borderBoxSize,p=Array.isArray(u)?u[0]:u;d=p.inlineSize,h=p.blockSize}else d=r.offsetWidth,h=r.offsetHeight;t.value={width:d,height:h}});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function jT(e,t){const n=a.ref(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}function cB(e){const t=JA("",1e3);return{search:t,handleTypeaheadSearch:(r,i)=>{t.value=t.value+r;{const s=ct(),c=i.map(y=>{var f,m;return{...y,textValue:((f=y.value)==null?void 0:f.textValue)??((m=y.ref.textContent)==null?void 0:m.trim())??""}}),d=c.find(y=>y.ref===s),h=c.map(y=>y.textValue),u=NT(h,t.value,d==null?void 0:d.textValue),p=c.find(y=>y.textValue===u);return p&&p.ref.focus(),p==null?void 0:p.ref}},resetTypeahead:()=>{t.value=""}}}function FT(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function NT(e,t,n){const r=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=FT(e,Math.max(i,0));r.length===1&&(s=s.filter(h=>h!==n));const d=s.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return d!==n?d:void 0}function RT(e,t){var k;const n=a.ref({}),o=a.ref("none"),r=a.ref(e),i=e.value?"mounted":"unmounted";let s;const c=((k=t.value)==null?void 0:k.ownerDocument.defaultView)??Is,{state:d,dispatch:h}=jT(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=M=>{var w;if(ft){const x=new CustomEvent(M,{bubbles:!1,cancelable:!1});(w=t.value)==null||w.dispatchEvent(x)}};a.watch(e,async(M,w)=>{var b;const x=w!==M;if(await a.nextTick(),x){const C=o.value,S=OL(t.value);M?(h("MOUNT"),u("enter"),S==="none"&&u("after-enter")):S==="none"||S==="undefined"||((b=n.value)==null?void 0:b.display)==="none"?(h("UNMOUNT"),u("leave"),u("after-leave")):w&&C!==S?(h("ANIMATION_OUT"),u("leave")):(h("UNMOUNT"),u("after-leave"))}},{immediate:!0});const p=M=>{const w=OL(t.value),x=w.includes(CSS.escape(M.animationName)),b=d.value==="mounted"?"enter":"leave";if(M.target===t.value&&x&&(u(`after-${b}`),h("ANIMATION_END"),!r.value)){const C=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=c==null?void 0:c.setTimeout(()=>{var S;((S=t.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=C)})}M.target===t.value&&w==="none"&&h("ANIMATION_END")},y=M=>{M.target===t.value&&(o.value=OL(t.value))},f=a.watch(t,(M,w)=>{M?(n.value=getComputedStyle(M),M.addEventListener("animationstart",y),M.addEventListener("animationcancel",p),M.addEventListener("animationend",p)):(h("ANIMATION_END"),s!==void 0&&(c==null||c.clearTimeout(s)),w==null||w.removeEventListener("animationstart",y),w==null||w.removeEventListener("animationcancel",p),w==null||w.removeEventListener("animationend",p))},{immediate:!0}),m=a.watch(d,()=>{const M=OL(t.value);o.value=d.value==="mounted"?M:"none"});return a.onUnmounted(()=>{f(),m()}),{isPresent:a.computed(()=>["mounted","unmountSuspended"].includes(d.value))}}function OL(e){return e&&getComputedStyle(e).animationName||"none"}var jL=a.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var h;const{present:o,forceMount:r}=a.toRefs(e),i=a.ref(),{isPresent:s}=RT(o,i);n({present:s});let c=t.default({present:s.value});c=kI(c||[]);const d=a.getCurrentInstance();if(c&&(c==null?void 0:c.length)>1){const u=(h=d==null?void 0:d.parent)!=null&&h.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
8497
8497
|
`)].join(`
|
|
8498
|
-
`))}return()=>r.value||o.value||s.value?a.h(t.default({present:s.value})[0],{ref:u=>{const p=Wt(u);return typeof(p==null?void 0:p.hasAttribute)>"u"||(p!=null&&p.hasAttribute("data-reka-popper-content-wrapper")?i.value=p.firstElementChild:i.value=p),p}}):null}});const CI=a.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var d;if(!n.default)return null;const o=kI(n.default()),r=o.findIndex(h=>h.type!==a.Comment);if(r===-1)return o;const i=o[r];(d=i.props)==null||delete d.ref;const s=i.props?a.mergeProps(t,i.props):t,c=a.cloneVNode({...i,props:{}},s);return o.length===1?c:(o[r]=c,o)}}}),$T=["area","img","input"],ve=a.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&$T.includes(o)?()=>a.h(o,t):o!=="template"?()=>a.h(e.as,t,{default:n.default}):()=>a.h(CI,t,{default:n.default})}});function dB(){const e=a.ref(),t=a.computed(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:Wt(e)});return{primitiveElement:e,currentElement:t}}const[Gt,UT]=yt("DialogRoot");var WT=a.defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=_s(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=a.ref(),s=a.ref(),{modal:c}=a.toRefs(n);return UT({open:r,modal:c,openModal:()=>{r.value=!0},onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:s}),(d,h)=>a.renderSlot(d.$slots,"default",{open:a.unref(r),close:()=>r.value=!1})}}),hB=WT,GT=a.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=Gt();return(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=i=>a.unref(n).onOpenChange(!1))}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["type"]))}}),uB=GT;const KT="dismissableLayer.pointerDownOutside",XT="dismissableLayer.focusOutside";function pB(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function ZT(e,t,n=!0){var s;const o=((s=t==null?void 0:t.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=a.ref(!1),i=a.ref(()=>{});return a.watchEffect(c=>{if(!ft||!a.toValue(n))return;const d=async u=>{const p=u.target;if(!(!(t!=null&&t.value)||!p)){if(pB(t.value,p)){r.value=!1;return}if(u.target&&!r.value){let f=function(){fI(KT,e,y)};const y={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",i.value),i.value=f,o.addEventListener("click",i.value,{once:!0})):f()}else o.removeEventListener("click",i.value);r.value=!1}},h=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);c(()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",d),o.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{a.toValue(n)&&(r.value=!0)}}}function YT(e,t,n=!0){var i;const o=((i=t==null?void 0:t.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=a.ref(!1);return a.watchEffect(s=>{if(!ft||!a.toValue(n))return;const c=async d=>{if(!(t!=null&&t.value))return;await a.nextTick(),await a.nextTick();const h=d.target;!t.value||!h||pB(t.value,h)||d.target&&!r.value&&fI(XT,e,{originalEvent:d})};o.addEventListener("focusin",c),s(()=>o.removeEventListener("focusin",c))}),{onFocusCapture:()=>{a.toValue(n)&&(r.value=!0)},onBlurCapture:()=>{a.toValue(n)&&(r.value=!1)}}}const mt=a.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var QT=a.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:i}=ke(),s=a.computed(()=>{var f;return((f=i.value)==null?void 0:f.ownerDocument)??globalThis.document}),c=a.computed(()=>mt.layersRoot),d=a.computed(()=>i.value?Array.from(c.value).indexOf(i.value):-1),h=a.computed(()=>mt.layersWithOutsidePointerEventsDisabled.size>0),u=a.computed(()=>{const f=Array.from(c.value),[m]=[...mt.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(m);return d.value>=k}),p=ZT(async f=>{const m=[...mt.branches].some(k=>k==null?void 0:k.contains(f.target));!u.value||m||(o("pointerDownOutside",f),o("interactOutside",f),await a.nextTick(),f.defaultPrevented||o("dismiss"))},i),y=YT(f=>{[...mt.branches].some(k=>k==null?void 0:k.contains(f.target))||(o("focusOutside",f),o("interactOutside",f),f.defaultPrevented||o("dismiss"))},i);return yT("Escape",f=>{d.value===c.value.size-1&&(o("escapeKeyDown",f),f.defaultPrevented||o("dismiss"))}),a.watchEffect(f=>{i.value&&(n.disableOutsidePointerEvents&&(mt.layersWithOutsidePointerEventsDisabled.size===0&&(mt.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),mt.layersWithOutsidePointerEventsDisabled.add(i.value)),c.value.add(i.value),f(()=>{n.disableOutsidePointerEvents&&mt.layersWithOutsidePointerEventsDisabled.size===1&&!mI(mt.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=mt.originalBodyPointerEvents)}))}),a.watchEffect(f=>{f(()=>{i.value&&(c.value.delete(i.value),mt.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(f,m)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(r),"as-child":f.asChild,as:f.as,"data-dismissable-layer":"",style:a.normalizeStyle({pointerEvents:h.value?u.value?"auto":"none":void 0}),onFocusCapture:a.unref(y).onFocusCapture,onBlurCapture:a.unref(y).onBlurCapture,onPointerdownCapture:a.unref(p).onPointerDownCapture},{default:a.withCtx(()=>[a.renderSlot(f.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),LI=QT;const JT=eT(()=>a.ref([]));function eH(){const e=JT();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=yB(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=yB(e.value,t),(n=e.value[0])==null||n.resume()}}}function yB(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const SI="focusScope.autoFocusOnMount",II="focusScope.autoFocusOnUnmount",fB={bubbles:!1,cancelable:!0};function tH(e,{select:t=!1}={}){const n=ct();for(const o of e)if(Ca(o,{select:t}),ct()!==n)return!0}function aH(e){const t=mB(e),n=kB(t,e),o=kB(t.reverse(),e);return[n,o]}function mB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kB(e,t){for(const n of e)if(!nH(n,{upTo:t}))return n}function nH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oH(e){return e instanceof HTMLInputElement&&"select"in e}function Ca(e,{select:t=!1}={}){if(e&&e.focus){const n=ct();e.focus({preventScroll:!0}),e!==n&&oH(e)&&t&&e.select()}}var rH=a.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:i}=ke(),s=a.ref(null),c=eH(),d=a.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});a.watchEffect(u=>{if(!ft)return;const p=i.value;if(!n.trapped)return;function y(g){if(d.paused||!p)return;const x=g.target;p.contains(x)?s.value=x:Ca(s.value,{select:!0})}function f(g){if(d.paused||!p)return;const x=g.relatedTarget;x!==null&&(p.contains(x)||Ca(s.value,{select:!0}))}function m(g){p.contains(s.value)||Ca(p)}document.addEventListener("focusin",y),document.addEventListener("focusout",f);const k=new MutationObserver(m);p&&k.observe(p,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",f),k.disconnect()})}),a.watchEffect(async u=>{const p=i.value;if(await a.nextTick(),!p)return;c.add(d);const y=ct();if(!p.contains(y)){const m=new CustomEvent(SI,fB);p.addEventListener(SI,k=>o("mountAutoFocus",k)),p.dispatchEvent(m),m.defaultPrevented||(tH(mB(p),{select:!0}),ct()===y&&Ca(p))}u(()=>{p.removeEventListener(SI,g=>o("mountAutoFocus",g));const m=new CustomEvent(II,fB),k=g=>{o("unmountAutoFocus",g)};p.addEventListener(II,k),p.dispatchEvent(m),setTimeout(()=>{m.defaultPrevented||Ca(y??document.body,{select:!0}),p.removeEventListener(II,k),c.remove(d)},0)})});function h(u){if(!n.loop&&!n.trapped||d.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=ct();if(p&&y){const f=u.currentTarget,[m,k]=aH(f);m&&k?!u.shiftKey&&y===k?(u.preventDefault(),n.loop&&Ca(m,{select:!0})):u.shiftKey&&y===m&&(u.preventDefault(),n.loop&&Ca(k,{select:!0})):y===f&&u.preventDefault()}}return(u,p)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:h},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),gB=rH;function iH(e){return e?"open":"closed"}function bB(e){const t=ct();for(const n of e)if(n===t||(n.focus(),ct()!==t))return}const sH="DialogTitle",lH="DialogContent";function cH({titleName:e=sH,contentName:t=lH,componentLink:n="dialog.html#title",titleId:o,descriptionId:r,contentElement:i}){const s=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
8498
|
+
`))}return()=>r.value||o.value||s.value?a.h(t.default({present:s.value})[0],{ref:u=>{const p=Wt(u);return typeof(p==null?void 0:p.hasAttribute)>"u"||(p!=null&&p.hasAttribute("data-reka-popper-content-wrapper")?i.value=p.firstElementChild:i.value=p),p}}):null}});const CI=a.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var d;if(!n.default)return null;const o=kI(n.default()),r=o.findIndex(h=>h.type!==a.Comment);if(r===-1)return o;const i=o[r];(d=i.props)==null||delete d.ref;const s=i.props?a.mergeProps(t,i.props):t,c=a.cloneVNode({...i,props:{}},s);return o.length===1?c:(o[r]=c,o)}}}),$T=["area","img","input"],ve=a.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&$T.includes(o)?()=>a.h(o,t):o!=="template"?()=>a.h(e.as,t,{default:n.default}):()=>a.h(CI,t,{default:n.default})}});function dB(){const e=a.ref(),t=a.computed(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:Wt(e)});return{primitiveElement:e,currentElement:t}}const[Gt,UT]=yt("DialogRoot");var WT=a.defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=_s(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=a.ref(),s=a.ref(),{modal:c}=a.toRefs(n);return UT({open:r,modal:c,openModal:()=>{r.value=!0},onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:s}),(d,h)=>a.renderSlot(d.$slots,"default",{open:a.unref(r),close:()=>r.value=!1})}}),hB=WT,GT=a.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=Gt();return(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=i=>a.unref(n).onOpenChange(!1))}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["type"]))}}),uB=GT;const KT="dismissableLayer.pointerDownOutside",XT="dismissableLayer.focusOutside";function pB(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(o===n||r.indexOf(o)<r.indexOf(n)))}function ZT(e,t,n=!0){var s;const o=((s=t==null?void 0:t.value)==null?void 0:s.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=a.ref(!1),i=a.ref(()=>{});return a.watchEffect(c=>{if(!ft||!a.toValue(n))return;const d=async u=>{const p=u.target;if(!(!(t!=null&&t.value)||!p)){if(pB(t.value,p)){r.value=!1;return}if(u.target&&!r.value){let f=function(){fI(KT,e,y)};const y={originalEvent:u};u.pointerType==="touch"?(o.removeEventListener("click",i.value),i.value=f,o.addEventListener("click",i.value,{once:!0})):f()}else o.removeEventListener("click",i.value);r.value=!1}},h=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);c(()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",d),o.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{a.toValue(n)&&(r.value=!0)}}}function YT(e,t,n=!0){var i;const o=((i=t==null?void 0:t.value)==null?void 0:i.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=a.ref(!1);return a.watchEffect(s=>{if(!ft||!a.toValue(n))return;const c=async d=>{if(!(t!=null&&t.value))return;await a.nextTick(),await a.nextTick();const h=d.target;!t.value||!h||pB(t.value,h)||d.target&&!r.value&&fI(XT,e,{originalEvent:d})};o.addEventListener("focusin",c),s(()=>o.removeEventListener("focusin",c))}),{onFocusCapture:()=>{a.toValue(n)&&(r.value=!0)},onBlurCapture:()=>{a.toValue(n)&&(r.value=!1)}}}const mt=a.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var QT=a.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:i}=ke(),s=a.computed(()=>{var f;return((f=i.value)==null?void 0:f.ownerDocument)??globalThis.document}),c=a.computed(()=>mt.layersRoot),d=a.computed(()=>i.value?Array.from(c.value).indexOf(i.value):-1),h=a.computed(()=>mt.layersWithOutsidePointerEventsDisabled.size>0),u=a.computed(()=>{const f=Array.from(c.value),[m]=[...mt.layersWithOutsidePointerEventsDisabled].slice(-1),g=f.indexOf(m);return d.value>=g}),p=ZT(async f=>{const m=[...mt.branches].some(g=>g==null?void 0:g.contains(f.target));!u.value||m||(o("pointerDownOutside",f),o("interactOutside",f),await a.nextTick(),f.defaultPrevented||o("dismiss"))},i),y=YT(f=>{[...mt.branches].some(g=>g==null?void 0:g.contains(f.target))||(o("focusOutside",f),o("interactOutside",f),f.defaultPrevented||o("dismiss"))},i);return yT("Escape",f=>{d.value===c.value.size-1&&(o("escapeKeyDown",f),f.defaultPrevented||o("dismiss"))}),a.watchEffect(f=>{i.value&&(n.disableOutsidePointerEvents&&(mt.layersWithOutsidePointerEventsDisabled.size===0&&(mt.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),mt.layersWithOutsidePointerEventsDisabled.add(i.value)),c.value.add(i.value),f(()=>{n.disableOutsidePointerEvents&&mt.layersWithOutsidePointerEventsDisabled.size===1&&!mI(mt.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=mt.originalBodyPointerEvents)}))}),a.watchEffect(f=>{f(()=>{i.value&&(c.value.delete(i.value),mt.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(f,m)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(r),"as-child":f.asChild,as:f.as,"data-dismissable-layer":"",style:a.normalizeStyle({pointerEvents:h.value?u.value?"auto":"none":void 0}),onFocusCapture:a.unref(y).onFocusCapture,onBlurCapture:a.unref(y).onBlurCapture,onPointerdownCapture:a.unref(p).onPointerDownCapture},{default:a.withCtx(()=>[a.renderSlot(f.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),LI=QT;const JT=eT(()=>a.ref([]));function eH(){const e=JT();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=yB(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=yB(e.value,t),(n=e.value[0])==null||n.resume()}}}function yB(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}const SI="focusScope.autoFocusOnMount",II="focusScope.autoFocusOnUnmount",fB={bubbles:!1,cancelable:!0};function tH(e,{select:t=!1}={}){const n=ct();for(const o of e)if(Ca(o,{select:t}),ct()!==n)return!0}function aH(e){const t=mB(e),n=kB(t,e),o=kB(t.reverse(),e);return[n,o]}function mB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kB(e,t){for(const n of e)if(!nH(n,{upTo:t}))return n}function nH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oH(e){return e instanceof HTMLInputElement&&"select"in e}function Ca(e,{select:t=!1}={}){if(e&&e.focus){const n=ct();e.focus({preventScroll:!0}),e!==n&&oH(e)&&t&&e.select()}}var rH=a.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:i}=ke(),s=a.ref(null),c=eH(),d=a.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});a.watchEffect(u=>{if(!ft)return;const p=i.value;if(!n.trapped)return;function y(k){if(d.paused||!p)return;const M=k.target;p.contains(M)?s.value=M:Ca(s.value,{select:!0})}function f(k){if(d.paused||!p)return;const M=k.relatedTarget;M!==null&&(p.contains(M)||Ca(s.value,{select:!0}))}function m(k){p.contains(s.value)||Ca(p)}document.addEventListener("focusin",y),document.addEventListener("focusout",f);const g=new MutationObserver(m);p&&g.observe(p,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",f),g.disconnect()})}),a.watchEffect(async u=>{const p=i.value;if(await a.nextTick(),!p)return;c.add(d);const y=ct();if(!p.contains(y)){const m=new CustomEvent(SI,fB);p.addEventListener(SI,g=>o("mountAutoFocus",g)),p.dispatchEvent(m),m.defaultPrevented||(tH(mB(p),{select:!0}),ct()===y&&Ca(p))}u(()=>{p.removeEventListener(SI,k=>o("mountAutoFocus",k));const m=new CustomEvent(II,fB),g=k=>{o("unmountAutoFocus",k)};p.addEventListener(II,g),p.dispatchEvent(m),setTimeout(()=>{m.defaultPrevented||Ca(y??document.body,{select:!0}),p.removeEventListener(II,g),c.remove(d)},0)})});function h(u){if(!n.loop&&!n.trapped||d.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,y=ct();if(p&&y){const f=u.currentTarget,[m,g]=aH(f);m&&g?!u.shiftKey&&y===g?(u.preventDefault(),n.loop&&Ca(m,{select:!0})):u.shiftKey&&y===m&&(u.preventDefault(),n.loop&&Ca(g,{select:!0})):y===f&&u.preventDefault()}}return(u,p)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:h},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),gB=rH;function iH(e){return e?"open":"closed"}function bB(e){const t=ct();for(const n of e)if(n===t||(n.focus(),ct()!==t))return}const sH="DialogTitle",lH="DialogContent";function cH({titleName:e=sH,contentName:t=lH,componentLink:n="dialog.html#title",titleId:o,descriptionId:r,contentElement:i}){const s=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
8499
8499
|
|
|
8500
8500
|
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
8501
8501
|
|
|
8502
|
-
For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;a.onMounted(()=>{var u;document.getElementById(o)||console.warn(s);const h=(u=i.value)==null?void 0:u.getAttribute("aria-describedby");r&&h&&(document.getElementById(r)||console.warn(c))})}var dH={},hH=a.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),{forwardRef:i,currentElement:s}=ke();return r.titleId||(r.titleId=Bs(void 0,"reka-dialog-title")),r.descriptionId||(r.descriptionId=Bs(void 0,"reka-dialog-description")),a.onMounted(()=>{r.contentElement=s,ct()!==document.body&&(r.triggerElement.value=ct())}),dH.NODE_ENV!=="production"&&cH({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:r.titleId,descriptionId:r.descriptionId,contentElement:s}),(c,d)=>(a.openBlock(),a.createBlock(a.unref(gB),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:d[5]||(d[5]=h=>o("openAutoFocus",h)),onUnmountAutoFocus:d[6]||(d[6]=h=>o("closeAutoFocus",h))},{default:a.withCtx(()=>[a.createVNode(a.unref(LI),a.mergeProps({id:a.unref(r).contentId,ref:a.unref(i),as:c.as,"as-child":c.asChild,"disable-outside-pointer-events":c.disableOutsidePointerEvents,role:"dialog","aria-describedby":a.unref(r).descriptionId,"aria-labelledby":a.unref(r).titleId,"data-state":a.unref(iH)(a.unref(r).open.value)},c.$attrs,{onDismiss:d[0]||(d[0]=h=>a.unref(r).onOpenChange(!1)),onEscapeKeyDown:d[1]||(d[1]=h=>o("escapeKeyDown",h)),onFocusOutside:d[2]||(d[2]=h=>o("focusOutside",h)),onInteractOutside:d[3]||(d[3]=h=>o("interactOutside",h)),onPointerDownOutside:d[4]||(d[4]=h=>o("pointerDownOutside",h))}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),MB=hH,uH=a.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),i=EL(o),{forwardRef:s,currentElement:c}=ke();return lB(c),(d,h)=>(a.openBlock(),a.createBlock(MB,a.mergeProps({...n,...a.unref(i)},{ref:a.unref(s),"trap-focus":a.unref(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(u.preventDefault(),(p=a.unref(r).triggerElement.value)==null||p.focus())}),onPointerDownOutside:h[1]||(h[1]=u=>{const p=u.detail.originalEvent,y=p.button===0&&p.ctrlKey===!0;(p.button===2||y)&&u.preventDefault()}),onFocusOutside:h[2]||(h[2]=u=>{u.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),pH=uH,yH=a.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=EL(t);ke();const i=Gt(),s=a.ref(!1),c=a.ref(!1);return(d,h)=>(a.openBlock(),a.createBlock(MB,a.mergeProps({...n,...a.unref(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(s.value||(p=a.unref(i).triggerElement.value)==null||p.focus(),u.preventDefault()),s.value=!1,c.value=!1}),onInteractOutside:h[1]||(h[1]=u=>{var f;u.defaultPrevented||(s.value=!0,u.detail.originalEvent.type==="pointerdown"&&(c.value=!0));const p=u.target;((f=a.unref(i).triggerElement.value)==null?void 0:f.contains(p))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.value&&u.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16))}}),fH=yH,mH=a.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),i=EL(o),{forwardRef:s}=ke();return(c,d)=>(a.openBlock(),a.createBlock(a.unref(jL),{present:c.forceMount||a.unref(r).open.value},{default:a.withCtx(()=>[a.unref(r).modal.value?(a.openBlock(),a.createBlock(pH,a.mergeProps({key:0,ref:a.unref(s)},{...n,...a.unref(i),...c.$attrs}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16)):(a.openBlock(),a.createBlock(fH,a.mergeProps({key:1,ref:a.unref(s)},{...n,...a.unref(i),...c.$attrs}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),xB=mH,kH=a.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;ke();const n=Gt();return(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{id:a.unref(n).descriptionId}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),wB=kH,gH=a.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gt();return oB(!0),ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:n.as,"as-child":n.asChild,"data-state":a.unref(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),bH=gH,MH=a.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gt(),{forwardRef:n}=ke();return(o,r)=>{var i;return(i=a.unref(t))!=null&&i.modal.value?(a.openBlock(),a.createBlock(a.unref(jL),{key:0,present:o.forceMount||a.unref(t).open.value},{default:a.withCtx(()=>[a.createVNode(bH,a.mergeProps(o.$attrs,{ref:a.unref(n),as:o.as,"as-child":o.asChild}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):a.createCommentVNode("v-if",!0)}}}),vB=MH,xH=a.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=tB();return(n,o)=>a.unref(t)||n.forceMount?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[a.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):a.createCommentVNode("v-if",!0)}}),_I=xH,wH=a.defineComponent({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),CB=wH,vH=a.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Gt();return ke(),(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{id:a.unref(n).titleId}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),LB=vH,CH=a.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Gt(),{forwardRef:o,currentElement:r}=ke();return n.contentId||(n.contentId=Bs(void 0,"reka-dialog-content")),a.onMounted(()=>{n.triggerElement.value=r.value}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{ref:a.unref(o),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a.unref(n).open.value||!1,"aria-controls":a.unref(n).open.value?a.unref(n).contentId:void 0,"data-state":a.unref(n).open.value?"open":"closed",onClick:a.unref(n).onOpenToggle}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),LH=CH;const[SB,SH]=yt("AvatarRoot");var IH=a.defineComponent({__name:"AvatarRoot",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return ke(),SH({imageLoadingStatus:a.ref("idle")}),(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{"as-child":t.asChild,as:t.as},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["as-child","as"]))}}),_H=IH,AH=a.defineComponent({__name:"AvatarFallback",props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=SB();ke();const o=a.ref(t.delayMs===void 0);return a.watchEffect(r=>{if(t.delayMs&&ft){const i=window.setTimeout(()=>{o.value=!0},t.delayMs);r(()=>{window.clearTimeout(i)})}}),(r,i)=>o.value&&a.unref(n).imageLoadingStatus.value!=="loaded"?(a.openBlock(),a.createBlock(a.unref(ve),{key:0,"as-child":r.asChild,as:r.as},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},8,["as-child","as"])):a.createCommentVNode("v-if",!0)}}),BH=AH;function IB(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function VH(e,{referrerPolicy:t,crossOrigin:n}={}){const o=a.ref(!1),r=a.ref(null),i=a.computed(()=>o.value?(!r.value&&ft&&(r.value=new window.Image),r.value):null),s=a.ref(IB(i.value,e.value)),c=d=>()=>{o.value&&(s.value=d)};return a.onMounted(()=>{o.value=!0,a.watchEffect(d=>{const h=i.value;if(!h)return;s.value=IB(h,e.value);const u=c("loaded"),p=c("error");h.addEventListener("load",u),h.addEventListener("error",p),t!=null&&t.value&&(h.referrerPolicy=t.value),typeof(n==null?void 0:n.value)=="string"&&(h.crossOrigin=n.value),d(()=>{h.removeEventListener("load",u),h.removeEventListener("error",p)})})}),a.onUnmounted(()=>{o.value=!1}),s}var zH=a.defineComponent({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const n=e,o=t,{src:r,referrerPolicy:i,crossOrigin:s}=a.toRefs(n);ke();const c=SB(),d=VH(r,{referrerPolicy:i,crossOrigin:s});return a.watch(d,h=>{o("loadingStatusChange",h),h!=="idle"&&(c.imageLoadingStatus.value=h)},{immediate:!0}),(h,u)=>a.withDirectives((a.openBlock(),a.createBlock(a.unref(ve),{role:"img","as-child":h.asChild,as:h.as,src:a.unref(r),referrerpolicy:a.unref(i),crossorigin:a.unref(s)},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[a.vShow,a.unref(d)==="loaded"]])}}),PH=zH;const _B="data-reka-collection-item";function Vs(e={}){const{key:t="",isProvider:n=!1}=e,o=`${t}CollectionProvider`;let r;if(n){const u=a.ref(new Map);r={collectionRef:a.ref(),itemMap:u},a.provide(o,r)}else r=a.inject(o);const i=(u=!1)=>{const p=r.collectionRef.value;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${_B}]`)),m=Array.from(r.itemMap.value.values()).sort((k,g)=>y.indexOf(k.ref)-y.indexOf(g.ref));return u?m:m.filter(k=>k.ref.dataset.disabled!=="")},s=a.defineComponent({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:m}=dB();return a.watch(m,()=>{r.collectionRef.value=m.value}),()=>a.h(CI,{ref:f,...y},p)}}),c=a.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:m}=dB();return a.watchEffect(k=>{if(m.value){const g=a.markRaw(m.value);r.itemMap.value.set(g,{ref:m.value,value:u.value}),k(()=>r.itemMap.value.delete(g))}}),()=>a.h(CI,{...y,[_B]:"",ref:f},p)}}),d=a.computed(()=>Array.from(r.itemMap.value.values())),h=a.computed(()=>r.itemMap.value.size);return{getItems:i,reactiveItems:d,itemMapSize:h,CollectionSlot:s,CollectionItem:c}}var qH=a.defineComponent({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),AB=qH;const[BB,DH]=yt("PopperRoot");var EH=a.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=a.ref();return DH({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>a.renderSlot(n.$slots,"default")}}),VB=EH,TH=a.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ke(),r=BB();return a.watchPostEffect(()=>{r.onAnchorChange(t.reference??o.value)}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(n),as:i.as,"as-child":i.asChild},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),zB=TH;function HH(e){return e!==null}function OH(e){return{name:"transformOrigin",options:e,fn(t){var g,x,C;const{placement:n,rects:o,middlewareData:r}=t,s=((g=r.arrow)==null?void 0:g.centerOffset)!==0,c=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[h,u]=AI(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((x=r.arrow)==null?void 0:x.x)??0)+c/2,f=(((C=r.arrow)==null?void 0:C.y)??0)+d/2;let m="",k="";return h==="bottom"?(m=s?p:`${y}px`,k=`${-d}px`):h==="top"?(m=s?p:`${y}px`,k=`${o.floating.height+d}px`):h==="right"?(m=`${-d}px`,k=s?p:`${f}px`):h==="left"&&(m=`${o.floating.width+d}px`,k=s?p:`${f}px`),{data:{x:m,y:k}}}}}function AI(e){const[t,n="center"]=e.split("-");return[t,n]}const jH={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[zee,FH]=yt("PopperContent");var NH=a.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:a.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...jH}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=BB(),{forwardRef:i,currentElement:s}=ke(),c=a.ref(),d=a.ref(),{width:h,height:u}=OT(d),p=a.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),y=a.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=a.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=a.computed(()=>({padding:y.value,boundary:f.value.filter(HH),altBoundary:f.value.length>0})),k=a.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=QE(()=>[h1({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Zs({...m.value,...k.value}),n.avoidCollisions&&u1({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?rD():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Zs({...m.value,...k.value}),p1({...m.value,apply:({elements:A,rects:V,availableWidth:E,availableHeight:W})=>{const{width:H,height:O}=V.reference,U=A.floating.style;U.setProperty("--reka-popper-available-width",`${E}px`),U.setProperty("--reka-popper-available-height",`${W}px`),U.setProperty("--reka-popper-anchor-width",`${H}px`),U.setProperty("--reka-popper-anchor-height",`${O}px`)}}),d.value&&lD({element:d.value,padding:n.arrowPadding}),OH({arrowWidth:h.value,arrowHeight:u.value}),n.hideWhenDetached&&nD({strategy:"referenceHidden",...m.value})]),x=a.computed(()=>n.reference??r.anchor.value),{floatingStyles:C,placement:v,isPositioned:b,middlewareData:L}=y1(x,c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...A)=>d1(...A,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),S=a.computed(()=>AI(v.value)[0]),M=a.computed(()=>AI(v.value)[1]);a.watchPostEffect(()=>{b.value&&o("placed")});const w=a.computed(()=>{var V;const A=((V=L.value.arrow)==null?void 0:V.centerOffset)!==0;return n.hideShiftedArrow&&A}),I=a.ref("");a.watchEffect(()=>{s.value&&(I.value=window.getComputedStyle(s.value).zIndex)});const z=a.computed(()=>{var A;return((A=L.value.arrow)==null?void 0:A.x)??0}),B=a.computed(()=>{var A;return((A=L.value.arrow)==null?void 0:A.y)??0});return FH({placedSide:S,onArrowChange:A=>d.value=A,arrowX:z,arrowY:B,shouldHideArrow:w}),(A,V)=>{var E,W,H;return a.openBlock(),a.createElementBlock("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:a.normalizeStyle({...a.unref(C),transform:a.unref(b)?a.unref(C).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I.value,"--reka-popper-transform-origin":[(E=a.unref(L).transformOrigin)==null?void 0:E.x,(W=a.unref(L).transformOrigin)==null?void 0:W.y].join(" "),...((H=a.unref(L).hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(i)},A.$attrs,{"as-child":n.asChild,as:A.as,"data-side":S.value,"data-align":M.value,style:{animation:a.unref(b)?void 0:"none"}}),{default:a.withCtx(()=>[a.renderSlot(A.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),PB=NH;function RH(e){const t=DL({nonce:a.ref()});return a.computed(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}var $H=a.defineComponent({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{onMousedown:o[0]||(o[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),UH=$H,WH=a.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"data-type":"ellipsis"}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default",{},()=>[o[0]||(o[0]=a.createTextVNode("…"))])]),_:3},16))}}),GH=WH;const[zs,KH]=yt("PaginationRoot");var XH=a.defineComponent({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(e,{emit:t}){const n=e,o=t,{siblingCount:r,disabled:i,showEdges:s}=a.toRefs(n);ke();const c=_s(n,"page",o,{defaultValue:n.defaultPage,passive:n.page===void 0}),d=a.computed(()=>Math.max(1,Math.ceil(n.total/(n.itemsPerPage||1))));return KH({page:c,onPageChange(h){c.value=h},pageCount:d,siblingCount:r,disabled:i,showEdges:s}),(h,u)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:h.as,"as-child":h.asChild},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default",{page:a.unref(c),pageCount:d.value})]),_:3},8,["as","as-child"]))}}),ZH=XH,YH=a.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zs();ke();const o=a.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"First Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("First page"))])]),_:3},16,["type","disabled"]))}}),QH=YH,JH=a.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zs();ke();const o=a.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Last Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).pageCount.value))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Last page"))])]),_:3},16,["type","disabled"]))}}),eO=JH;function La(e,t){const n=t-e+1;return Array.from({length:n},(o,r)=>r+e)}function tO(e){return e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"})}const FL="ellipsis";function aO(e,t,n,o){const i=t,s=Math.max(e-n,1),c=Math.min(e+n,i);if(o){const h=Math.min(2*n+5,t)-2,u=s>3&&Math.abs(i-h-1+1)>2&&Math.abs(s-1)>2,p=c<i-2&&Math.abs(i-h)>2&&Math.abs(i-c)>2;if(!u&&p)return[...La(1,h),FL,i];if(u&&!p){const f=La(i-h+1,i);return[1,FL,...f]}if(u&&p){const f=La(s,c);return[1,FL,...f,FL,i]}return La(1,i)}else{const d=n*2+1;return t<d?La(1,i):e<=n+1?La(1,d):t-e<=n?La(t-d+1,i):La(s,c)}}var nO=a.defineComponent({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>tO(aO(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{items:o.value})]),_:3},16))}}),oO=nO,rO=a.defineComponent({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===t.value),r=a.computed(()=>n.disabled.value);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"data-type":"page","aria-label":`Page ${i.value}`,"aria-current":o.value?"page":void 0,"data-selected":o.value?"true":void 0,disabled:r.value,type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=c=>!r.value&&a.unref(n).onPageChange(i.value))}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),iO=rO,sO=a.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Next Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).page.value+1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Next page"))])]),_:3},16,["type","disabled"]))}}),lO=sO,cO=a.defineComponent({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Previous Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).page.value-1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Prev page"))])]),_:3},16,["type","disabled"]))}}),dO=cO;const hO=[" ","Enter","ArrowUp","ArrowDown"],uO=[" ","Enter"],It=10;function Ll(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(o=>BI(o,t,n)):BI(e,t,n)}function BI(e,t,n){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof n=="function"?n(e,t):typeof n=="string"?(e==null?void 0:e[n])===(t==null?void 0:t[n]):YE(e,t)}function pO(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const yO={key:0,value:""},[Sa,qB]=yt("SelectRoot");var fO=a.defineComponent({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,o=t,{required:r,disabled:i,multiple:s,dir:c}=a.toRefs(n),d=_s(n,"modelValue",o,{defaultValue:n.defaultValue??(s.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),h=_s(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),u=a.ref(),p=a.ref(),y=a.ref({x:0,y:0}),f=a.computed(()=>{var b;return s.value&&Array.isArray(d.value)?((b=d.value)==null?void 0:b.length)===0:mI(d.value)});Vs({isProvider:!0});const m=CT(c),k=ST(u),g=a.ref(new Set),x=a.computed(()=>Array.from(g.value).map(b=>b.value).join(";"));function C(b){if(s.value){const L=Array.isArray(d.value)?[...d.value]:[],S=L.findIndex(M=>BI(M,b,n.by));S===-1?L.push(b):L.splice(S,1),d.value=[...L]}else d.value=b}function v(b){return Array.from(g.value).find(L=>Ll(b,L.value,n.by))}return qB({triggerElement:u,onTriggerChange:b=>{u.value=b},valueElement:p,onValueElementChange:b=>{p.value=b},contentId:"",modelValue:d,onValueChange:C,by:n.by,open:h,multiple:s,required:r,onOpenChange:b=>{h.value=b},dir:m,triggerPointerDownPosRef:y,disabled:i,isEmptyModelValue:f,optionsSet:g,onOptionAdd:b=>{const L=v(b.value);L&&g.value.delete(L),g.value.add(b)},onOptionRemove:b=>{const L=v(b.value);L&&g.value.delete(L)}}),(b,L)=>(a.openBlock(),a.createBlock(a.unref(VB),null,{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default",{modelValue:a.unref(d),open:a.unref(h)}),a.unref(k)?(a.openBlock(),a.createBlock(gO,{key:x.value,"aria-hidden":"true",tabindex:"-1",multiple:a.unref(s),required:a.unref(r),name:b.name,autocomplete:b.autocomplete,disabled:a.unref(i),value:a.unref(d)},{default:a.withCtx(()=>[a.unref(mI)(a.unref(d))?(a.openBlock(),a.createElementBlock("option",yO)):a.createCommentVNode("v-if",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Array.from(g.value),S=>(a.openBlock(),a.createElementBlock("option",a.mergeProps({key:S.value??""},{ref_for:!0},S),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):a.createCommentVNode("v-if",!0)]),_:3}))}}),mO=fO,kO=a.defineComponent({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,n=a.ref(),o=Sa();a.watch(()=>t.value,(i,s)=>{const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==s&&h&&n.value){const u=new Event("change",{bubbles:!0});h.call(n.value,i),n.value.dispatchEvent(u)}});function r(i){o.onValueChange(i.target.value)}return(i,s)=>(a.openBlock(),a.createBlock(a.unref(AB),{"as-child":""},{default:a.withCtx(()=>[a.createElementVNode("select",a.mergeProps({ref_key:"selectElement",ref:n},t,{onInput:r}),[a.renderSlot(i.$slots,"default")],16)]),_:3}))}}),gO=kO,bO=a.defineComponent({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:It},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=nt(e);return(o,r)=>(a.openBlock(),a.createBlock(a.unref(PB),a.mergeProps(a.unref(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16))}}),MO=bO;const xO={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ts,DB]=yt("SelectContent");var wO=a.defineComponent({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Sa();LT(),oB(n.bodyLock);const{CollectionSlot:i,getItems:s}=Vs(),c=a.ref();lB(c);const{search:d,handleTypeaheadSearch:h}=cB(),u=a.ref(),p=a.ref(),y=a.ref(),f=a.ref(!1),m=a.ref(!1),k=a.ref(!1);function g(){p.value&&c.value&&bB([p.value,c.value])}a.watch(f,()=>{g()});const{onOpenChange:x,triggerPointerDownPosRef:C}=r;a.watchEffect(S=>{if(!c.value)return;let M={x:0,y:0};const w=z=>{var B,A;M={x:Math.abs(Math.round(z.pageX)-(((B=C.value)==null?void 0:B.x)??0)),y:Math.abs(Math.round(z.pageY)-(((A=C.value)==null?void 0:A.y)??0))}},I=z=>{var B;z.pointerType!=="touch"&&(M.x<=10&&M.y<=10?z.preventDefault():(B=c.value)!=null&&B.contains(z.target)||x(!1),document.removeEventListener("pointermove",w),C.value=null)};C.value!==null&&(document.addEventListener("pointermove",w),document.addEventListener("pointerup",I,{capture:!0,once:!0})),S(()=>{document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",I,{capture:!0})})});function v(S){const M=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!M&&S.key.length===1&&h(S.key,s()),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let I=[...s().map(z=>z.ref)];if(["ArrowUp","End"].includes(S.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const z=S.target,B=I.indexOf(z);I=I.slice(B+1)}setTimeout(()=>bB(I)),S.preventDefault()}}const b=a.computed(()=>n.position==="popper"?n:{}),L=nt(b.value);return DB({content:c,viewport:u,onViewportChange:S=>{u.value=S},itemRefCallback:(S,M,w)=>{const I=!m.value&&!w,z=Ll(r.modelValue.value,M,r.by);if(r.multiple.value){if(k.value)return;(z||I)&&(p.value=S,z&&(k.value=!0))}else(z||I)&&(p.value=S);I&&(m.value=!0)},selectedItem:p,selectedItemText:y,onItemLeave:()=>{var S;(S=c.value)==null||S.focus()},itemTextRefCallback:(S,M,w)=>{const I=!m.value&&!w;(Ll(r.modelValue.value,M,r.by)||I)&&(y.value=S)},focusSelectedItem:g,position:n.position,isPositioned:f,searchRef:d}),(S,M)=>(a.openBlock(),a.createBlock(a.unref(i),null,{default:a.withCtx(()=>[a.createVNode(a.unref(gB),{"as-child":"",onMountAutoFocus:M[6]||(M[6]=a.withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:M[7]||(M[7]=w=>{var I;o("closeAutoFocus",w),!w.defaultPrevented&&((I=a.unref(r).triggerElement.value)==null||I.focus({preventScroll:!0}),w.preventDefault())})},{default:a.withCtx(()=>[a.createVNode(a.unref(LI),{"as-child":"","disable-outside-pointer-events":S.disableOutsidePointerEvents,onFocusOutside:M[2]||(M[2]=a.withModifiers(()=>{},["prevent"])),onDismiss:M[3]||(M[3]=w=>a.unref(r).onOpenChange(!1)),onEscapeKeyDown:M[4]||(M[4]=w=>o("escapeKeyDown",w)),onPointerDownOutside:M[5]||(M[5]=w=>o("pointerDownOutside",w))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(S.position==="popper"?MO:SO),a.mergeProps({...S.$attrs,...a.unref(L)},{id:a.unref(r).contentId,ref:w=>{const I=a.unref(Wt)(w);I!=null&&I.hasAttribute("data-reka-popper-content-wrapper")?c.value=I.firstElementChild:c.value=I},role:"listbox","data-state":a.unref(r).open.value?"open":"closed",dir:a.unref(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:M[0]||(M[0]=a.withModifiers(()=>{},["prevent"])),onPlaced:M[1]||(M[1]=w=>f.value=!0),onKeydown:v}),{default:a.withCtx(()=>[a.renderSlot(S.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),vO=wO;const[VI,CO]=yt("SelectItemAlignedPosition");var LO=a.defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const n=e,o=t,{getItems:r}=Vs(),i=Sa(),s=ts(),c=a.ref(!1),d=a.ref(!0),h=a.ref(),{forwardRef:u,currentElement:p}=ke(),{viewport:y,selectedItem:f,selectedItemText:m,focusSelectedItem:k}=s;function g(){if(i.triggerElement.value&&i.valueElement.value&&h.value&&p.value&&(y!=null&&y.value)&&(f!=null&&f.value)&&(m!=null&&m.value)){const v=i.triggerElement.value.getBoundingClientRect(),b=p.value.getBoundingClientRect(),L=i.valueElement.value.getBoundingClientRect(),S=m.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const pe=S.left-b.left,Ie=L.left-pe,ce=v.left-Ie,X=v.width+ce,P=Math.max(X,b.width),R=window.innerWidth-It,ee=ZA(Ie,It,Math.max(It,R-P));h.value.style.minWidth=`${X}px`,h.value.style.left=`${ee}px`}else{const pe=b.right-S.right,Ie=window.innerWidth-L.right-pe,ce=window.innerWidth-v.right-Ie,X=v.width+ce,P=Math.max(X,b.width),R=window.innerWidth-It,ee=ZA(Ie,It,Math.max(It,R-P));h.value.style.minWidth=`${X}px`,h.value.style.right=`${ee}px`}const M=r().map(pe=>pe.ref),w=window.innerHeight-It*2,I=y.value.scrollHeight,z=window.getComputedStyle(p.value),B=Number.parseInt(z.borderTopWidth,10),A=Number.parseInt(z.paddingTop,10),V=Number.parseInt(z.borderBottomWidth,10),E=Number.parseInt(z.paddingBottom,10),W=B+A+I+E+V,H=Math.min(f.value.offsetHeight*5,W),O=window.getComputedStyle(y.value),U=Number.parseInt(O.paddingTop,10),J=Number.parseInt(O.paddingBottom,10),T=v.top+v.height/2-It,F=w-T,N=f.value.offsetHeight/2,Y=f.value.offsetTop+N,Q=B+A+Y,ie=W-Q;if(Q<=T){const pe=f.value===M[M.length-1];h.value.style.bottom="0px";const Ie=p.value.clientHeight-y.value.offsetTop-y.value.offsetHeight,ce=Math.max(F,N+(pe?J:0)+Ie+V),X=Q+ce;h.value.style.height=`${X}px`}else{const pe=f.value===M[0];h.value.style.top="0px";const ce=Math.max(T,B+y.value.offsetTop+(pe?U:0)+N)+ie;h.value.style.height=`${ce}px`,y.value.scrollTop=Q-T+y.value.offsetTop}h.value.style.margin=`${It}px 0`,h.value.style.minHeight=`${H}px`,h.value.style.maxHeight=`${w}px`,o("placed"),requestAnimationFrame(()=>c.value=!0)}}const x=a.ref("");a.onMounted(async()=>{await a.nextTick(),g(),p.value&&(x.value=window.getComputedStyle(p.value).zIndex)});function C(v){v&&d.value===!0&&(g(),k==null||k(),d.value=!1)}return bT(i.triggerElement,()=>{g()}),CO({contentWrapper:h,shouldExpandOnScrollRef:c,onScrollButtonChange:C}),(v,b)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"contentWrapperElement",ref:h,style:a.normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:x.value})},[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...v.$attrs,...n}),{default:a.withCtx(()=>[a.renderSlot(v.$slots,"default")]),_:3},16)],4))}}),SO=LO,IO=a.defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return qB(e.context),DB(xO),(n,o)=>a.renderSlot(n.$slots,"default")}}),_O=IO;const AO={key:1};var BO=a.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=St(n,t),i=Sa(),s=a.ref();a.onMounted(()=>{s.value=new DocumentFragment});const c=a.ref(),d=a.computed(()=>n.forceMount||i.open.value),h=a.ref(d.value);return a.watch(d,()=>{setTimeout(()=>h.value=d.value)}),(u,p)=>{var y;return d.value||h.value||(y=c.value)!=null&&y.present?(a.openBlock(),a.createBlock(a.unref(jL),{key:0,ref_key:"presenceRef",ref:c,present:d.value},{default:a.withCtx(()=>[a.createVNode(vO,a.normalizeProps(a.guardReactiveProps({...a.unref(r),...u.$attrs})),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):s.value?(a.openBlock(),a.createElementBlock("div",AO,[(a.openBlock(),a.createBlock(a.Teleport,{to:s.value},[a.createVNode(_O,{context:a.unref(i)},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):a.createCommentVNode("v-if",!0)}}}),VO=BO,zO=a.defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=a.createTextVNode("▼"))])]),_:3},8,["as","as-child"]))}}),PO=zO;const[EB,qO]=yt("SelectItem");var DO=a.defineComponent({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=t,{disabled:r}=a.toRefs(n),i=Sa(),s=ts(),{forwardRef:c,currentElement:d}=ke(),{CollectionItem:h}=Vs(),u=a.computed(()=>{var b;return Ll((b=i.modelValue)==null?void 0:b.value,n.value,i.by)}),p=a.ref(!1),y=a.ref(n.textValue??""),f=Bs(void 0,"reka-select-item-text"),m="select.select";async function k(b){if(b.defaultPrevented)return;const L={originalEvent:b,value:n.value};fI(m,g,L)}async function g(b){await a.nextTick(),o("select",b),!b.defaultPrevented&&(r.value||(i.onValueChange(n.value),i.multiple.value||i.onOpenChange(!1)))}async function x(b){var L,S;await a.nextTick(),!b.defaultPrevented&&(r.value?(L=s.onItemLeave)==null||L.call(s):(S=b.currentTarget)==null||S.focus({preventScroll:!0}))}async function C(b){var L;await a.nextTick(),!b.defaultPrevented&&b.currentTarget===ct()&&((L=s.onItemLeave)==null||L.call(s))}async function v(b){var S;await a.nextTick(),!(b.defaultPrevented||((S=s.searchRef)==null?void 0:S.value)!==""&&b.key===" ")&&(uO.includes(b.key)&&k(b),b.key===" "&&b.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.onMounted(()=>{d.value&&s.itemRefCallback(d.value,n.value,n.disabled)}),qO({value:n.value,disabled:r,textId:f,isSelected:u,onItemTextChange:b=>{y.value=((y.value||(b==null?void 0:b.textContent))??"").trim()}}),(b,L)=>(a.openBlock(),a.createBlock(a.unref(h),{value:{textValue:y.value}},{default:a.withCtx(()=>[a.createVNode(a.unref(ve),{ref:a.unref(c),role:"option","aria-labelledby":a.unref(f),"data-highlighted":p.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":a.unref(r)||void 0,"data-disabled":a.unref(r)?"":void 0,tabindex:a.unref(r)?void 0:-1,as:b.as,"as-child":b.asChild,onFocus:L[0]||(L[0]=S=>p.value=!0),onBlur:L[1]||(L[1]=S=>p.value=!1),onPointerup:k,onPointerdown:L[2]||(L[2]=S=>{S.currentTarget.focus({preventScroll:!0})}),onTouchend:L[3]||(L[3]=a.withModifiers(()=>{},["prevent","stop"])),onPointermove:x,onPointerleave:C,onKeydown:v},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),EO=DO,TO=a.defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=EB();return(o,r)=>a.unref(n).isSelected.value?(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({key:0,"aria-hidden":"true"},t),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16)):a.createCommentVNode("v-if",!0)}}),HO=TO,OO=a.defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Sa(),o=ts(),r=EB(),{forwardRef:i,currentElement:s}=ke(),c=a.computed(()=>{var d,h;return{value:r.value,disabled:r.disabled.value,textContent:((d=s.value)==null?void 0:d.textContent)??((h=r.value)==null?void 0:h.toString())??""}});return a.onMounted(()=>{s.value&&(r.onItemTextChange(s.value),o.itemTextRefCallback(s.value,r.value,r.disabled.value),n.onOptionAdd(c.value))}),a.onUnmounted(()=>{n.onOptionRemove(c.value)}),(d,h)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({id:a.unref(r).textId,ref:a.unref(i)},{...t,...d.$attrs}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16,["id"]))}}),jO=OO,FO=a.defineComponent({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),NO=FO,RO=a.defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const n=t,{getItems:o}=Vs(),r=ts(),i=a.ref(null);function s(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}a.watchEffect(()=>{const h=o().map(u=>u.ref).find(u=>u===ct());h==null||h.scrollIntoView({block:"nearest"})});function c(){i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var h;(h=r.onItemLeave)==null||h.call(r),i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}return a.onBeforeUnmount(()=>s()),(h,u)=>{var p;return a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(p=h.$parent)==null?void 0:p.$props,{onPointerdown:c,onPointermove:d,onPointerleave:u[0]||(u[0]=()=>{s()})}),{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},16)}}}),TB=RO,$O=a.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ts(),n=t.position==="item-aligned"?VI():void 0,{forwardRef:o,currentElement:r}=ke(),i=a.ref(!1);return a.watchEffect(s=>{var c,d;if((c=t.viewport)!=null&&c.value&&((d=t.isPositioned)!=null&&d.value)){let u=function(){const p=h.scrollHeight-h.clientHeight;i.value=Math.ceil(h.scrollTop)<p};const h=t.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),a.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(a.openBlock(),a.createBlock(TB,{key:0,ref:a.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=a.unref(t);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop+h.value.offsetHeight)})},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},512)):a.createCommentVNode("v-if",!0)}}),UO=$O,WO=a.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ts(),n=t.position==="item-aligned"?VI():void 0,{forwardRef:o,currentElement:r}=ke(),i=a.ref(!1);return a.watchEffect(s=>{var c,d;if((c=t.viewport)!=null&&c.value&&((d=t.isPositioned)!=null&&d.value)){let u=function(){i.value=h.scrollTop>0};const h=t.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),a.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(a.openBlock(),a.createBlock(TB,{key:0,ref:a.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=a.unref(t);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop-h.value.offsetHeight)})},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},512)):a.createCommentVNode("v-if",!0)}}),GO=WO,KO=a.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Sa(),{forwardRef:o,currentElement:r}=ke(),i=a.computed(()=>{var y;return((y=n.disabled)==null?void 0:y.value)||t.disabled});n.contentId||(n.contentId=Bs(void 0,"reka-select-content")),a.onMounted(()=>{n.onTriggerChange(r.value)});const{getItems:s}=Vs(),{search:c,handleTypeaheadSearch:d,resetTypeahead:h}=cB();function u(){i.value||(n.onOpenChange(!0),h())}function p(y){u(),n.triggerPointerDownPosRef.value={x:Math.round(y.pageX),y:Math.round(y.pageY)}}return(y,f)=>(a.openBlock(),a.createBlock(a.unref(zB),{"as-child":"",reference:y.reference},{default:a.withCtx(()=>{var m,k,g,x;return[a.createVNode(a.unref(ve),{ref:a.unref(o),role:"combobox",type:y.as==="button"?"button":void 0,"aria-controls":a.unref(n).contentId,"aria-expanded":a.unref(n).open.value||!1,"aria-required":(m=a.unref(n).required)==null?void 0:m.value,"aria-autocomplete":"none",disabled:i.value,dir:(k=a.unref(n))==null?void 0:k.dir.value,"data-state":(g=a.unref(n))!=null&&g.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":a.unref(pO)((x=a.unref(n).modelValue)==null?void 0:x.value)?"":void 0,"as-child":y.asChild,as:y.as,onClick:f[0]||(f[0]=C=>{var v;(v=C==null?void 0:C.currentTarget)==null||v.focus()}),onPointerdown:f[1]||(f[1]=C=>{if(C.pointerType==="touch")return C.preventDefault();const v=C.target;v.hasPointerCapture(C.pointerId)&&v.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(p(C),C.preventDefault())}),onPointerup:f[2]||(f[2]=a.withModifiers(C=>{C.pointerType==="touch"&&p(C)},["prevent"])),onKeydown:f[3]||(f[3]=C=>{const v=a.unref(c)!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&v&&C.key===" "||(a.unref(d)(C.key,a.unref(s)()),a.unref(hO).includes(C.key)&&(u(),C.preventDefault()))})},{default:a.withCtx(()=>[a.renderSlot(y.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),XO=KO,ZO=a.defineComponent({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ke(),r=Sa();a.onMounted(()=>{r.valueElement=o});const i=a.computed(()=>{var u;let c=[];const d=Array.from(r.optionsSet.value),h=p=>d.find(y=>Ll(p,y.value,r.by));return Array.isArray(r.modelValue.value)?c=r.modelValue.value.map(p=>{var y;return((y=h(p))==null?void 0:y.textContent)??""}):c=[((u=h(r.modelValue.value))==null?void 0:u.textContent)??""],c.filter(Boolean)}),s=a.computed(()=>i.value.length?i.value.join(", "):t.placeholder);return(c,d)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(n),as:c.as,"as-child":c.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{selectedLabel:i.value,modelValue:a.unref(r).modelValue.value},()=>[a.createTextVNode(a.toDisplayString(s.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),YO=ZO,QO=a.defineComponent({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:n}=a.toRefs(t),o=RH(n),r=ts(),i=r.position==="item-aligned"?VI():void 0,{forwardRef:s,currentElement:c}=ke();a.onMounted(()=>{r==null||r.onViewportChange(c.value)});const d=a.ref(0);function h(u){const p=u.currentTarget,{shouldExpandOnScrollRef:y,contentWrapper:f}=i??{};if(y!=null&&y.value&&(f!=null&&f.value)){const m=Math.abs(d.value-p.scrollTop);if(m>0){const k=window.innerHeight-It*2,g=Number.parseFloat(f.value.style.minHeight),x=Number.parseFloat(f.value.style.height),C=Math.max(g,x);if(C<k){const v=C+m,b=Math.min(k,v),L=v-b;f.value.style.height=`${b}px`,f.value.style.bottom==="0px"&&(p.scrollTop=L>0?L:0,f.value.style.justifyContent="flex-end")}}}d.value=p.scrollTop}return(u,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(s),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:h}),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16),a.createVNode(a.unref(ve),{as:"style",nonce:a.unref(o)},{default:a.withCtx(()=>p[0]||(p[0]=[a.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),JO=QO,ej=a.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function o(c){return n.includes(c)}const r=a.computed(()=>o(t.orientation)?t.orientation:"horizontal"),i=a.computed(()=>r.value==="vertical"?t.orientation:void 0),s=a.computed(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(c,d)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({as:c.as,"as-child":c.asChild,"data-orientation":r.value},s.value),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),tj=ej,aj=a.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(tj,a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),nj=aj;const[zI,oj]=yt("TooltipProvider");var rj=a.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:s,disabled:c}=a.toRefs(t);ke();const d=a.ref(!0),h=a.ref(!1),{start:u,stop:p}=eB(()=>{d.value=!0},o,{immediate:!1});return oj({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){u()},isPointerInTransitRef:h,disableHoverableContent:r,disableClosingTrigger:i,disabled:c,ignoreNonKeyboardFocus:s}),(y,f)=>a.renderSlot(y.$slots,"default")}}),ij=rj;const HB="tooltip.open",[NL,sj]=yt("TooltipRoot");var lj=a.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;ke();const r=zI(),i=a.computed(()=>n.disableHoverableContent??r.disableHoverableContent.value),s=a.computed(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),c=a.computed(()=>n.disabled??r.disabled.value),d=a.computed(()=>n.delayDuration??r.delayDuration.value),h=a.computed(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=_s(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});a.watch(u,v=>{r.onClose&&(v?(r.onOpen(),document.dispatchEvent(new CustomEvent(HB))):r.onClose())});const p=a.ref(!1),y=a.ref(),f=a.computed(()=>u.value?p.value?"delayed-open":"instant-open":"closed"),{start:m,stop:k}=eB(()=>{p.value=!0,u.value=!0},d,{immediate:!1});function g(){k(),p.value=!1,u.value=!0}function x(){k(),u.value=!1}function C(){m()}return sj({contentId:"",open:u,stateAttribute:f,trigger:y,onTriggerChange(v){y.value=v},onTriggerEnter(){r.isOpenDelayed.value?C():g()},onTriggerLeave(){i.value?x():k()},onOpen:g,onClose:x,disableHoverableContent:i,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:h}),(v,b)=>(a.openBlock(),a.createBlock(a.unref(VB),null,{default:a.withCtx(()=>[a.renderSlot(v.$slots,"default",{open:a.unref(u)})]),_:3}))}}),cj=lj,dj=a.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=NL(),{forwardRef:i,currentElement:s}=ke(),c=a.computed(()=>{var h;return n.ariaLabel||((h=s.value)==null?void 0:h.textContent)}),d=a.computed(()=>{const{ariaLabel:h,...u}=n;return u});return a.onMounted(()=>{vl(window,"scroll",h=>{const u=h.target;u!=null&&u.contains(r.trigger.value)&&r.onClose()}),vl(window,HB,r.onClose)}),(h,u)=>(a.openBlock(),a.createBlock(a.unref(LI),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:u[1]||(u[1]=p=>{var y;a.unref(r).disableClosingTrigger.value&&((y=a.unref(r).trigger.value)!=null&&y.contains(p.target))&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:u[2]||(u[2]=a.withModifiers(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=p=>a.unref(r).onClose())},{default:a.withCtx(()=>[a.createVNode(a.unref(PB),a.mergeProps({ref:a.unref(i),"data-state":a.unref(r).stateAttribute.value},{...h.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default"),a.createVNode(a.unref(AB),{id:a.unref(r).contentId,role:"tooltip"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),OB=dj,hj=a.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=nt(e),{forwardRef:o,currentElement:r}=ke(),{trigger:i,onClose:s}=NL(),c=zI(),{isPointerInTransit:d,onPointerExit:h}=IT(i,r);return c.isPointerInTransitRef=d,h(()=>{s()}),(u,p)=>(a.openBlock(),a.createBlock(OB,a.mergeProps({ref:a.unref(o)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16))}}),uj=hj,pj=a.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=NL(),i=St(n,o),{forwardRef:s}=ke();return(c,d)=>(a.openBlock(),a.createBlock(a.unref(jL),{present:c.forceMount||a.unref(r).open.value},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r).disableHoverableContent.value?OB:uj),a.mergeProps({ref:a.unref(s)},a.unref(i)),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),yj=pj,fj=a.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),mj=fj,kj=a.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=NL(),o=zI();n.contentId||(n.contentId=Bs(void 0,"reka-tooltip-content"));const{forwardRef:r,currentElement:i}=ke(),s=a.ref(!1),c=a.ref(!1),d=a.computed(()=>n.disabled.value?{}:{click:k,focus:f,pointermove:p,pointerleave:y,pointerdown:u,blur:m});a.onMounted(()=>{n.onTriggerChange(i.value)});function h(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",h,{once:!0})}function p(g){g.pointerType!=="touch"&&!c.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function y(){n.onTriggerLeave(),c.value=!1}function f(g){var x,C;s.value||n.ignoreNonKeyboardFocus.value&&!((C=(x=g.target).matches)!=null&&C.call(x,":focus-visible"))||n.onOpen()}function m(){n.onClose()}function k(){n.disableClosingTrigger.value||n.onClose()}return(g,x)=>(a.openBlock(),a.createBlock(a.unref(zB),{"as-child":"",reference:g.reference},{default:a.withCtx(()=>[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(r),"aria-describedby":a.unref(n).open.value?a.unref(n).contentId:void 0,"data-state":a.unref(n).stateAttribute.value,as:g.as,"as-child":t.asChild,"data-grace-area-trigger":""},a.toHandlers(d.value)),{default:a.withCtx(()=>[a.renderSlot(g.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),gj=kj;const je=a.defineComponent({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:e.as,"as-child":e.asChild,class:a.normalizeClass(a.unref(Me)(a.unref(Ps)({variant:e.variant,size:e.size}),t.class))},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),Ps=xl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-8 w-8","icon-sm":"size-7","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),jB=a.defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(cj),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),FB=a.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(mj),null,{default:a.withCtx(()=>[a.createVNode(a.unref(yj),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),NB=a.defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(ij),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),RB=a.defineComponent({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(gj),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),bj={class:"relative z-10"},Mj="font-medium transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:scale-[1.02] active:translate-y-0 active:scale-[0.98] shadow-[0_3px_0_0_rgba(0,0,0,0.12),0_12px_22px_-10px_rgba(0,0,0,0.35)] hover:shadow-[0_6px_20px_-4px_rgba(0,0,0,0.3),0_10px_40px_-10px_rgba(0,0,0,0.2)] active:shadow-[0_1px_0_0_rgba(0,0,0,0.2),0_4px_8px_-4px_rgba(0,0,0,0.35)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed disabled:shadow-none disabled:translate-y-0 disabled:scale-100 relative overflow-hidden before:absolute before:inset-0 before:bg-white/20 before:translate-y-full before:transition-transform before:duration-300 hover:before:translate-y-0",xj=a.defineComponent({name:"DCodeButton",inheritAttrs:!1,__name:"DCodeButton",props:{icon:{},text:{default:""},variant:{default:"default"},size:{default:"default"},tooltip:{default:""},bgColor:{default:""},textColor:{default:""},borderColor:{default:""},rounded:{default:"lg"},borderStyle:{default:"solid"},disabled:{type:Boolean,default:!1},type:{default:"button"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1}},setup(e){const t=a.useAttrs(),n=e,o=a.computed(()=>n.icon&&na[n.icon]||null),r=a.computed(()=>!!n.tooltip),i=a.computed(()=>n.visible??!0),s=a.computed(()=>{const N=String(n.variant||"default").toLowerCase();return N==="tonal"?"secondary":N==="elevated"?"default":N}),c=a.computed(()=>String(n.bgColor||"").toLowerCase()),d=a.computed(()=>String(n.type||"button").toLowerCase()),h=a.computed(()=>{const{class:N,...Y}=t;return Y}),u=a.computed(()=>Me(t.class)),p=a.computed(()=>((u.value??"").match(/\b(?:w|h|min-w|min-h|max-w|max-h)-[^\s]+\b/g)??[]).join(" ")),y=a.computed(()=>n.size==="sm"?"h-9":n.size==="lg"?"h-11":n.size==="icon"?"h-10 w-10":"h-10"),f=a.computed(()=>n.size==="icon"?"":!n.text&&n.icon?"w-10":"w-28"),m=a.computed(()=>n.rounded?n.rounded.startsWith("rounded")?n.rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"}[n.rounded]||`rounded-${n.rounded}`:""),k=a.computed(()=>!n.borderStyle||n.borderStyle==="solid"?"":{dashed:"border-2 border-dashed",dotted:"border-2 border-dotted",double:"border-4 border-double",none:"border-0 border-none"}[n.borderStyle]||""),g=a.computed(()=>Me("inline-flex items-center justify-center bg-gray-200 dark:bg-gray-700 animate-pulse",m.value,y.value,f.value,p.value)),x=a.computed(()=>{const Y=(u.value??"").match(/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Y?Y[0]:null}),C=a.computed(()=>{const Y=(u.value??"").match(/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Y?Y[0]:null}),v=a.computed(()=>!!x.value),b=a.computed(()=>/\bborder-/.test(u.value??"")),L=a.computed(()=>/\bhover:/.test(u.value??"")),S=a.computed(()=>{const N=u.value??"";return s.value!=="outline"?N:N.replaceAll(/\bbg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\bhover:bg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\s+/gu," ").trim()}),M=a.ref(null),w=N=>{const Y=N.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)/u);return Y?{r:Number(Y[1]),g:Number(Y[2]),b:Number(Y[3]),a:Y[4]?Number(Y[4]):1}:null},I=(N,Y)=>{const Q=w(N);if(!Q)return N;const ie=ue=>Math.max(0,Math.min(255,Math.round(ue)));return`rgba(${ie(Q.r*(1-Y))}, ${ie(Q.g*(1-Y))}, ${ie(Q.b*(1-Y))}, ${Q.a})`},z=N=>{if(globalThis.window===void 0)return null;const Y=document.createElement("div");Y.className=N,Y.style.position="absolute",Y.style.visibility="hidden",Y.style.pointerEvents="none",Y.style.width="1px",Y.style.height="1px",document.body.appendChild(Y);const Q=globalThis.getComputedStyle(Y).backgroundColor;return Y.remove(),!Q||Q==="transparent"||Q==="rgba(0, 0, 0, 0)"?null:Q},B=[50,100,200,300,400,500,600,700,800,900,950],A=N=>{const Y=B.indexOf(N);return Y===-1?N:B[Math.min(B.length-1,Y+2)]},V=(N,Y)=>{const Q=XE[N];if(!Q)return null;if(typeof Q=="string")return Q;if(!Y)return null;const ie=Q[Y];return typeof ie=="string"?ie:null},E=(N,Y=!1)=>{if(!N)return null;const Q=Y?/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u:/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u,ie=N.match(Q);return ie?{colorName:ie[1],shade:ie[2]?Number.parseInt(ie[2],10):null}:null},W=()=>{const N=x.value;if(!N){M.value=null;return}const Y=E(N),Q=Y==null?void 0:Y.colorName,ie=(Y==null?void 0:Y.shade)??null,ue=(Q?V(Q,ie):null)??z(N);if(!ue){M.value=null;return}let pe;const Ie=E(C.value,!0),ce=Ie?V(Ie.colorName,Ie.shade??null):null;if(ce)pe=ce;else if(Q&&ie){const X=A(ie);pe=V(Q,X)??I(ue,.2)}else pe=I(ue,.2);M.value={"--btn-color":ue,"--btn-color-hover":pe}};a.onMounted(()=>{W()}),a.watch([x,C],async()=>{await a.nextTick(),W()});const H=a.computed(()=>{const N=/\bdark:bg-/.test(u.value??"");return!v.value||s.value==="outline"||N?"":M.value?"dcode-btn--fill dcode-btn--fill-hover":L.value?"":"hover:brightness-90"}),O=a.computed(()=>{if(!v.value||s.value!=="outline")return"";const N=["dcode-btn--outline","dcode-btn--outline-hover"];return b.value||N.push("border"),!M.value&&!L.value&&N.push("hover:brightness-90"),N.join(" ")}),U=a.computed(()=>M.value??void 0),J={primary:{bg:"bg-blue-600",text:"text-white",hover:"hover:bg-blue-700",border:"border-blue-900"},success:{bg:"bg-green-600",text:"text-white",hover:"hover:bg-green-700",border:"border-green-900"},warning:{bg:"bg-yellow-500",text:"text-white",hover:"hover:bg-yellow-600",border:"border-yellow-900"},danger:{bg:"bg-red-600",text:"text-white",hover:"hover:bg-red-700",border:"border-red-900"},info:{bg:"bg-cyan-600",text:"text-white",hover:"hover:bg-cyan-700",border:"border-cyan-900"},purple:{bg:"bg-purple-600",text:"text-white",hover:"hover:bg-purple-700",border:"border-purple-900"},pink:{bg:"bg-pink-600",text:"text-white",hover:"hover:bg-pink-700",border:"border-pink-900"},"gradient-blue":{bg:"bg-gradient-to-r from-blue-500 to-cyan-500",text:"text-white",hover:"hover:from-blue-600 hover:to-cyan-600"},"gradient-purple":{bg:"bg-gradient-to-r from-purple-500 to-pink-500",text:"text-white",hover:"hover:from-purple-600 hover:to-pink-600"},"gradient-sunset":{bg:"bg-gradient-to-r from-orange-500 to-red-500",text:"text-white",hover:"hover:from-orange-600 hover:to-red-600"},"gradient-emerald":{bg:"bg-gradient-to-r from-emerald-500 to-teal-500",text:"text-white",hover:"hover:from-emerald-600 hover:to-teal-600"},transparent:{bg:"bg-transparent",text:"text-inherit",hover:"hover:bg-gray-100/10 hover:text-inherit dark:hover:bg-gray-800/10 dark:hover:text-inherit",border:"border-current"}},T=a.computed(()=>{const N=[],Y=c.value?J[c.value]:null;if(Y)N.push(Y.bg,Y.hover),N.push(n.textColor||Y.text),n.borderColor?N.push(n.borderColor):Y.border&&N.push(Y.border);else if(c.value&&N.push(c.value),n.textColor&&N.push(n.textColor),n.borderColor)N.push(n.borderColor);else if(c.value&&c.value.startsWith("bg-")){const Q=c.value.replace(/^bg-/,"border-");Q!==c.value&&N.push(Q)}return N.join(" ")}),F=a.computed(()=>Me(Mj,m.value,k.value,S.value,H.value,O.value,T.value));return(N,Y)=>i.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.skeleton?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(g.value),"aria-hidden":"true"},null,2)):(a.openBlock(),a.createBlock(a.unref(NB),{key:1,"delay-duration":0},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createBlock(a.unref(jB),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(RB),{"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(je),a.mergeProps({variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:U.value},h.value),{default:a.withCtx(()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):a.createCommentVNode("",!0),n.text?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(o.value?"ml-1":"")},a.toDisplayString(n.text),3)):a.createCommentVNode("",!0)]),_:1},16,["variant","size","disabled","type","class","style"])]),_:1}),a.createVNode(a.unref(FB),{side:"top","side-offset":8,class:"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0"},{default:a.withCtx(()=>[a.createElementVNode("span",bj,a.toDisplayString(n.tooltip),1)]),_:1})]),_:1})):(a.openBlock(),a.createBlock(a.unref(je),a.mergeProps({key:1,variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:U.value},h.value),{default:a.withCtx(()=>[a.renderSlot(N.$slots,"default",{},()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):a.createCommentVNode("",!0),n.text?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(o.value?"ml-1":"")},a.toDisplayString(n.text),3)):a.createCommentVNode("",!0)],!0)]),_:3},16,["variant","size","disabled","type","class","style"]))]),_:3}))],64)):a.createCommentVNode("",!0)}}),ra=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},as=ra(xj,[["__scopeId","data-v-a866d2a3"]]),wj={key:0,class:"flex items-center justify-between mb-4"},vj={class:"flex flex-col gap-1"},Cj={key:0,class:"text-lg font-semibold text-neutral-900 dark:text-neutral-50 leading-tight"},Lj={key:1,class:"text-sm text-neutral-500 dark:text-neutral-400"},Sj={key:0,class:"flex items-center gap-2"},Ij={class:"relative z-10"},_j={key:1,class:"mt-6 pt-6 border-t border-neutral-200 dark:border-neutral-800"},Aj={name:"DCodeCard"},PI=a.defineComponent({...Aj,props:{level:{default:1},title:{},subtitle:{},shadow:{type:Boolean,default:!1},border:{type:Boolean,default:!0},padding:{default:"p-6"}},setup(e){const t=e,n=a.computed(()=>{switch(t.level){case 2:return"bg-neutral-50 dark:bg-neutral-800";case 3:return"bg-neutral-100 dark:bg-neutral-700";case 1:default:return"bg-white dark:bg-neutral-900"}});return(o,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["transition-shadow duration-300 dcode-card",[n.value,e.padding,{"shadow-md":e.shadow},{"border-transparent":!e.border},{"border-neutral-200 dark:border-neutral-800":e.border&&e.level===1},{"border-neutral-300 dark:border-neutral-700":e.border&&e.level!==1}]])},[e.title||o.$slots.header||o.$slots.actions?(a.openBlock(),a.createElementBlock("div",wj,[a.createElementVNode("div",vj,[a.renderSlot(o.$slots,"header",{},()=>[e.title?(a.openBlock(),a.createElementBlock("h3",Cj,a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.subtitle?(a.openBlock(),a.createElementBlock("p",Lj,a.toDisplayString(e.subtitle),1)):a.createCommentVNode("",!0)])]),o.$slots.actions?(a.openBlock(),a.createElementBlock("div",Sj,[a.renderSlot(o.$slots,"actions")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Ij,[a.renderSlot(o.$slots,"default")]),o.$slots.footer?(a.openBlock(),a.createElementBlock("div",_j,[a.renderSlot(o.$slots,"footer")])):a.createCommentVNode("",!0)],2))}});/*!
|
|
8502
|
+
For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;a.onMounted(()=>{var u;document.getElementById(o)||console.warn(s);const h=(u=i.value)==null?void 0:u.getAttribute("aria-describedby");r&&h&&(document.getElementById(r)||console.warn(c))})}var dH={},hH=a.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),{forwardRef:i,currentElement:s}=ke();return r.titleId||(r.titleId=Bs(void 0,"reka-dialog-title")),r.descriptionId||(r.descriptionId=Bs(void 0,"reka-dialog-description")),a.onMounted(()=>{r.contentElement=s,ct()!==document.body&&(r.triggerElement.value=ct())}),dH.NODE_ENV!=="production"&&cH({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:r.titleId,descriptionId:r.descriptionId,contentElement:s}),(c,d)=>(a.openBlock(),a.createBlock(a.unref(gB),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:d[5]||(d[5]=h=>o("openAutoFocus",h)),onUnmountAutoFocus:d[6]||(d[6]=h=>o("closeAutoFocus",h))},{default:a.withCtx(()=>[a.createVNode(a.unref(LI),a.mergeProps({id:a.unref(r).contentId,ref:a.unref(i),as:c.as,"as-child":c.asChild,"disable-outside-pointer-events":c.disableOutsidePointerEvents,role:"dialog","aria-describedby":a.unref(r).descriptionId,"aria-labelledby":a.unref(r).titleId,"data-state":a.unref(iH)(a.unref(r).open.value)},c.$attrs,{onDismiss:d[0]||(d[0]=h=>a.unref(r).onOpenChange(!1)),onEscapeKeyDown:d[1]||(d[1]=h=>o("escapeKeyDown",h)),onFocusOutside:d[2]||(d[2]=h=>o("focusOutside",h)),onInteractOutside:d[3]||(d[3]=h=>o("interactOutside",h)),onPointerDownOutside:d[4]||(d[4]=h=>o("pointerDownOutside",h))}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),MB=hH,uH=a.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),i=EL(o),{forwardRef:s,currentElement:c}=ke();return lB(c),(d,h)=>(a.openBlock(),a.createBlock(MB,a.mergeProps({...n,...a.unref(i)},{ref:a.unref(s),"trap-focus":a.unref(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(u.preventDefault(),(p=a.unref(r).triggerElement.value)==null||p.focus())}),onPointerDownOutside:h[1]||(h[1]=u=>{const p=u.detail.originalEvent,y=p.button===0&&p.ctrlKey===!0;(p.button===2||y)&&u.preventDefault()}),onFocusOutside:h[2]||(h[2]=u=>{u.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),pH=uH,yH=a.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=EL(t);ke();const i=Gt(),s=a.ref(!1),c=a.ref(!1);return(d,h)=>(a.openBlock(),a.createBlock(MB,a.mergeProps({...n,...a.unref(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:h[0]||(h[0]=u=>{var p;u.defaultPrevented||(s.value||(p=a.unref(i).triggerElement.value)==null||p.focus(),u.preventDefault()),s.value=!1,c.value=!1}),onInteractOutside:h[1]||(h[1]=u=>{var f;u.defaultPrevented||(s.value=!0,u.detail.originalEvent.type==="pointerdown"&&(c.value=!0));const p=u.target;((f=a.unref(i).triggerElement.value)==null?void 0:f.contains(p))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.value&&u.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16))}}),fH=yH,mH=a.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Gt(),i=EL(o),{forwardRef:s}=ke();return(c,d)=>(a.openBlock(),a.createBlock(a.unref(jL),{present:c.forceMount||a.unref(r).open.value},{default:a.withCtx(()=>[a.unref(r).modal.value?(a.openBlock(),a.createBlock(pH,a.mergeProps({key:0,ref:a.unref(s)},{...n,...a.unref(i),...c.$attrs}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16)):(a.openBlock(),a.createBlock(fH,a.mergeProps({key:1,ref:a.unref(s)},{...n,...a.unref(i),...c.$attrs}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),xB=mH,kH=a.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;ke();const n=Gt();return(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{id:a.unref(n).descriptionId}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),wB=kH,gH=a.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gt();return oB(!0),ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:n.as,"as-child":n.asChild,"data-state":a.unref(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),bH=gH,MH=a.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Gt(),{forwardRef:n}=ke();return(o,r)=>{var i;return(i=a.unref(t))!=null&&i.modal.value?(a.openBlock(),a.createBlock(a.unref(jL),{key:0,present:o.forceMount||a.unref(t).open.value},{default:a.withCtx(()=>[a.createVNode(bH,a.mergeProps(o.$attrs,{ref:a.unref(n),as:o.as,"as-child":o.asChild}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):a.createCommentVNode("v-if",!0)}}}),vB=MH,xH=a.defineComponent({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=tB();return(n,o)=>a.unref(t)||n.forceMount?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[a.renderSlot(n.$slots,"default")],8,["to","disabled","defer"])):a.createCommentVNode("v-if",!0)}}),_I=xH,wH=a.defineComponent({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),CB=wH,vH=a.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Gt();return ke(),(o,r)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{id:a.unref(n).titleId}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["id"]))}}),LB=vH,CH=a.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Gt(),{forwardRef:o,currentElement:r}=ke();return n.contentId||(n.contentId=Bs(void 0,"reka-dialog-content")),a.onMounted(()=>{n.triggerElement.value=r.value}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{ref:a.unref(o),type:i.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a.unref(n).open.value||!1,"aria-controls":a.unref(n).open.value?a.unref(n).contentId:void 0,"data-state":a.unref(n).open.value?"open":"closed",onClick:a.unref(n).onOpenToggle}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),LH=CH;const[SB,SH]=yt("AvatarRoot");var IH=a.defineComponent({__name:"AvatarRoot",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return ke(),SH({imageLoadingStatus:a.ref("idle")}),(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{"as-child":t.asChild,as:t.as},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["as-child","as"]))}}),_H=IH,AH=a.defineComponent({__name:"AvatarFallback",props:{delayMs:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=SB();ke();const o=a.ref(t.delayMs===void 0);return a.watchEffect(r=>{if(t.delayMs&&ft){const i=window.setTimeout(()=>{o.value=!0},t.delayMs);r(()=>{window.clearTimeout(i)})}}),(r,i)=>o.value&&a.unref(n).imageLoadingStatus.value!=="loaded"?(a.openBlock(),a.createBlock(a.unref(ve),{key:0,"as-child":r.asChild,as:r.as},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},8,["as-child","as"])):a.createCommentVNode("v-if",!0)}}),BH=AH;function IB(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function VH(e,{referrerPolicy:t,crossOrigin:n}={}){const o=a.ref(!1),r=a.ref(null),i=a.computed(()=>o.value?(!r.value&&ft&&(r.value=new window.Image),r.value):null),s=a.ref(IB(i.value,e.value)),c=d=>()=>{o.value&&(s.value=d)};return a.onMounted(()=>{o.value=!0,a.watchEffect(d=>{const h=i.value;if(!h)return;s.value=IB(h,e.value);const u=c("loaded"),p=c("error");h.addEventListener("load",u),h.addEventListener("error",p),t!=null&&t.value&&(h.referrerPolicy=t.value),typeof(n==null?void 0:n.value)=="string"&&(h.crossOrigin=n.value),d(()=>{h.removeEventListener("load",u),h.removeEventListener("error",p)})})}),a.onUnmounted(()=>{o.value=!1}),s}var zH=a.defineComponent({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const n=e,o=t,{src:r,referrerPolicy:i,crossOrigin:s}=a.toRefs(n);ke();const c=SB(),d=VH(r,{referrerPolicy:i,crossOrigin:s});return a.watch(d,h=>{o("loadingStatusChange",h),h!=="idle"&&(c.imageLoadingStatus.value=h)},{immediate:!0}),(h,u)=>a.withDirectives((a.openBlock(),a.createBlock(a.unref(ve),{role:"img","as-child":h.asChild,as:h.as,src:a.unref(r),referrerpolicy:a.unref(i),crossorigin:a.unref(s)},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[a.vShow,a.unref(d)==="loaded"]])}}),PH=zH;const _B="data-reka-collection-item";function Vs(e={}){const{key:t="",isProvider:n=!1}=e,o=`${t}CollectionProvider`;let r;if(n){const u=a.ref(new Map);r={collectionRef:a.ref(),itemMap:u},a.provide(o,r)}else r=a.inject(o);const i=(u=!1)=>{const p=r.collectionRef.value;if(!p)return[];const y=Array.from(p.querySelectorAll(`[${_B}]`)),m=Array.from(r.itemMap.value.values()).sort((g,k)=>y.indexOf(g.ref)-y.indexOf(k.ref));return u?m:m.filter(g=>g.ref.dataset.disabled!=="")},s=a.defineComponent({name:"CollectionSlot",inheritAttrs:!1,setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:m}=dB();return a.watch(m,()=>{r.collectionRef.value=m.value}),()=>a.h(CI,{ref:f,...y},p)}}),c=a.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:p,attrs:y}){const{primitiveElement:f,currentElement:m}=dB();return a.watchEffect(g=>{if(m.value){const k=a.markRaw(m.value);r.itemMap.value.set(k,{ref:m.value,value:u.value}),g(()=>r.itemMap.value.delete(k))}}),()=>a.h(CI,{...y,[_B]:"",ref:f},p)}}),d=a.computed(()=>Array.from(r.itemMap.value.values())),h=a.computed(()=>r.itemMap.value.size);return{getItems:i,reactiveItems:d,itemMapSize:h,CollectionSlot:s,CollectionItem:c}}var qH=a.defineComponent({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),AB=qH;const[BB,DH]=yt("PopperRoot");var EH=a.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=a.ref();return DH({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>a.renderSlot(n.$slots,"default")}}),VB=EH,TH=a.defineComponent({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ke(),r=BB();return a.watchPostEffect(()=>{r.onAnchorChange(t.reference??o.value)}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(n),as:i.as,"as-child":i.asChild},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),zB=TH;function HH(e){return e!==null}function OH(e){return{name:"transformOrigin",options:e,fn(t){var k,M,w;const{placement:n,rects:o,middlewareData:r}=t,s=((k=r.arrow)==null?void 0:k.centerOffset)!==0,c=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[h,u]=AI(n),p={start:"0%",center:"50%",end:"100%"}[u],y=(((M=r.arrow)==null?void 0:M.x)??0)+c/2,f=(((w=r.arrow)==null?void 0:w.y)??0)+d/2;let m="",g="";return h==="bottom"?(m=s?p:`${y}px`,g=`${-d}px`):h==="top"?(m=s?p:`${y}px`,g=`${o.floating.height+d}px`):h==="right"?(m=`${-d}px`,g=s?p:`${f}px`):h==="left"&&(m=`${o.floating.width+d}px`,g=s?p:`${f}px`),{data:{x:m,y:g}}}}}function AI(e){const[t,n="center"]=e.split("-");return[t,n]}const jH={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[zee,FH]=yt("PopperContent");var NH=a.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:a.mergeDefaults({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...jH}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=BB(),{forwardRef:i,currentElement:s}=ke(),c=a.ref(),d=a.ref(),{width:h,height:u}=OT(d),p=a.computed(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),y=a.computed(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=a.computed(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=a.computed(()=>({padding:y.value,boundary:f.value.filter(HH),altBoundary:f.value.length>0})),g=a.computed(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),k=QE(()=>[h1({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Zs({...m.value,...g.value}),n.avoidCollisions&&u1({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?rD():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&Zs({...m.value,...g.value}),p1({...m.value,apply:({elements:A,rects:V,availableWidth:T,availableHeight:W})=>{const{width:H,height:O}=V.reference,U=A.floating.style;U.setProperty("--reka-popper-available-width",`${T}px`),U.setProperty("--reka-popper-available-height",`${W}px`),U.setProperty("--reka-popper-anchor-width",`${H}px`),U.setProperty("--reka-popper-anchor-height",`${O}px`)}}),d.value&&lD({element:d.value,padding:n.arrowPadding}),OH({arrowWidth:h.value,arrowHeight:u.value}),n.hideWhenDetached&&nD({strategy:"referenceHidden",...m.value})]),M=a.computed(()=>n.reference??r.anchor.value),{floatingStyles:w,placement:x,isPositioned:b,middlewareData:C}=y1(M,c,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...A)=>d1(...A,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:k}),S=a.computed(()=>AI(x.value)[0]),L=a.computed(()=>AI(x.value)[1]);a.watchPostEffect(()=>{b.value&&o("placed")});const v=a.computed(()=>{var V;const A=((V=C.value.arrow)==null?void 0:V.centerOffset)!==0;return n.hideShiftedArrow&&A}),I=a.ref("");a.watchEffect(()=>{s.value&&(I.value=window.getComputedStyle(s.value).zIndex)});const q=a.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.x)??0}),B=a.computed(()=>{var A;return((A=C.value.arrow)==null?void 0:A.y)??0});return FH({placedSide:S,onArrowChange:A=>d.value=A,arrowX:q,arrowY:B,shouldHideArrow:v}),(A,V)=>{var T,W,H;return a.openBlock(),a.createElementBlock("div",{ref_key:"floatingRef",ref:c,"data-reka-popper-content-wrapper":"",style:a.normalizeStyle({...a.unref(w),transform:a.unref(b)?a.unref(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I.value,"--reka-popper-transform-origin":[(T=a.unref(C).transformOrigin)==null?void 0:T.x,(W=a.unref(C).transformOrigin)==null?void 0:W.y].join(" "),...((H=a.unref(C).hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(i)},A.$attrs,{"as-child":n.asChild,as:A.as,"data-side":S.value,"data-align":L.value,style:{animation:a.unref(b)?void 0:"none"}}),{default:a.withCtx(()=>[a.renderSlot(A.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),PB=NH;function RH(e){const t=DL({nonce:a.ref()});return a.computed(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}var $H=a.defineComponent({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{onMousedown:o[0]||(o[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),UH=$H,WH=a.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return ke(),(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"data-type":"ellipsis"}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default",{},()=>[o[0]||(o[0]=a.createTextVNode("…"))])]),_:3},16))}}),GH=WH;const[zs,KH]=yt("PaginationRoot");var XH=a.defineComponent({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(e,{emit:t}){const n=e,o=t,{siblingCount:r,disabled:i,showEdges:s}=a.toRefs(n);ke();const c=_s(n,"page",o,{defaultValue:n.defaultPage,passive:n.page===void 0}),d=a.computed(()=>Math.max(1,Math.ceil(n.total/(n.itemsPerPage||1))));return KH({page:c,onPageChange(h){c.value=h},pageCount:d,siblingCount:r,disabled:i,showEdges:s}),(h,u)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:h.as,"as-child":h.asChild},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default",{page:a.unref(c),pageCount:d.value})]),_:3},8,["as","as-child"]))}}),ZH=XH,YH=a.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zs();ke();const o=a.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"First Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("First page"))])]),_:3},16,["type","disabled"]))}}),QH=YH,JH=a.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=zs();ke();const o=a.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Last Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).pageCount.value))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Last page"))])]),_:3},16,["type","disabled"]))}}),eO=JH;function La(e,t){const n=t-e+1;return Array.from({length:n},(o,r)=>r+e)}function tO(e){return e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"})}const FL="ellipsis";function aO(e,t,n,o){const i=t,s=Math.max(e-n,1),c=Math.min(e+n,i);if(o){const h=Math.min(2*n+5,t)-2,u=s>3&&Math.abs(i-h-1+1)>2&&Math.abs(s-1)>2,p=c<i-2&&Math.abs(i-h)>2&&Math.abs(i-c)>2;if(!u&&p)return[...La(1,h),FL,i];if(u&&!p){const f=La(i-h+1,i);return[1,FL,...f]}if(u&&p){const f=La(s,c);return[1,FL,...f,FL,i]}return La(1,i)}else{const d=n*2+1;return t<d?La(1,i):e<=n+1?La(1,d):t-e<=n?La(t-d+1,i):La(s,c)}}var nO=a.defineComponent({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>tO(aO(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{items:o.value})]),_:3},16))}}),oO=nO,rO=a.defineComponent({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===t.value),r=a.computed(()=>n.disabled.value);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"data-type":"page","aria-label":`Page ${i.value}`,"aria-current":o.value?"page":void 0,"data-selected":o.value?"true":void 0,disabled:r.value,type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=c=>!r.value&&a.unref(n).onPageChange(i.value))}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),iO=rO,sO=a.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===n.pageCount.value||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Next Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).page.value+1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Next page"))])]),_:3},16,["type","disabled"]))}}),lO=sO,cO=a.defineComponent({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const n=zs(),o=a.computed(()=>n.page.value===1||n.disabled.value);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps(t,{"aria-label":"Previous Page",type:r.as==="button"?"button":void 0,disabled:o.value,onClick:i[0]||(i[0]=s=>!o.value&&a.unref(n).onPageChange(a.unref(n).page.value-1))}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[1]||(i[1]=a.createTextVNode("Prev page"))])]),_:3},16,["type","disabled"]))}}),dO=cO;const hO=[" ","Enter","ArrowUp","ArrowDown"],uO=[" ","Enter"],It=10;function Ll(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(o=>BI(o,t,n)):BI(e,t,n)}function BI(e,t,n){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof n=="function"?n(e,t):typeof n=="string"?(e==null?void 0:e[n])===(t==null?void 0:t[n]):YE(e,t)}function pO(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const yO={key:0,value:""},[Sa,qB]=yt("SelectRoot");var fO=a.defineComponent({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,o=t,{required:r,disabled:i,multiple:s,dir:c}=a.toRefs(n),d=_s(n,"modelValue",o,{defaultValue:n.defaultValue??(s.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),h=_s(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),u=a.ref(),p=a.ref(),y=a.ref({x:0,y:0}),f=a.computed(()=>{var b;return s.value&&Array.isArray(d.value)?((b=d.value)==null?void 0:b.length)===0:mI(d.value)});Vs({isProvider:!0});const m=CT(c),g=ST(u),k=a.ref(new Set),M=a.computed(()=>Array.from(k.value).map(b=>b.value).join(";"));function w(b){if(s.value){const C=Array.isArray(d.value)?[...d.value]:[],S=C.findIndex(L=>BI(L,b,n.by));S===-1?C.push(b):C.splice(S,1),d.value=[...C]}else d.value=b}function x(b){return Array.from(k.value).find(C=>Ll(b,C.value,n.by))}return qB({triggerElement:u,onTriggerChange:b=>{u.value=b},valueElement:p,onValueElementChange:b=>{p.value=b},contentId:"",modelValue:d,onValueChange:w,by:n.by,open:h,multiple:s,required:r,onOpenChange:b=>{h.value=b},dir:m,triggerPointerDownPosRef:y,disabled:i,isEmptyModelValue:f,optionsSet:k,onOptionAdd:b=>{const C=x(b.value);C&&k.value.delete(C),k.value.add(b)},onOptionRemove:b=>{const C=x(b.value);C&&k.value.delete(C)}}),(b,C)=>(a.openBlock(),a.createBlock(a.unref(VB),null,{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default",{modelValue:a.unref(d),open:a.unref(h)}),a.unref(g)?(a.openBlock(),a.createBlock(gO,{key:M.value,"aria-hidden":"true",tabindex:"-1",multiple:a.unref(s),required:a.unref(r),name:b.name,autocomplete:b.autocomplete,disabled:a.unref(i),value:a.unref(d)},{default:a.withCtx(()=>[a.unref(mI)(a.unref(d))?(a.openBlock(),a.createElementBlock("option",yO)):a.createCommentVNode("v-if",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Array.from(k.value),S=>(a.openBlock(),a.createElementBlock("option",a.mergeProps({key:S.value??""},{ref_for:!0},S),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):a.createCommentVNode("v-if",!0)]),_:3}))}}),mO=fO,kO=a.defineComponent({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,n=a.ref(),o=Sa();a.watch(()=>t.value,(i,s)=>{const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==s&&h&&n.value){const u=new Event("change",{bubbles:!0});h.call(n.value,i),n.value.dispatchEvent(u)}});function r(i){o.onValueChange(i.target.value)}return(i,s)=>(a.openBlock(),a.createBlock(a.unref(AB),{"as-child":""},{default:a.withCtx(()=>[a.createElementVNode("select",a.mergeProps({ref_key:"selectElement",ref:n},t,{onInput:r}),[a.renderSlot(i.$slots,"default")],16)]),_:3}))}}),gO=kO,bO=a.defineComponent({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:It},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=nt(e);return(o,r)=>(a.openBlock(),a.createBlock(a.unref(PB),a.mergeProps(a.unref(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16))}}),MO=bO;const xO={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ts,DB]=yt("SelectContent");var wO=a.defineComponent({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Sa();LT(),oB(n.bodyLock);const{CollectionSlot:i,getItems:s}=Vs(),c=a.ref();lB(c);const{search:d,handleTypeaheadSearch:h}=cB(),u=a.ref(),p=a.ref(),y=a.ref(),f=a.ref(!1),m=a.ref(!1),g=a.ref(!1);function k(){p.value&&c.value&&bB([p.value,c.value])}a.watch(f,()=>{k()});const{onOpenChange:M,triggerPointerDownPosRef:w}=r;a.watchEffect(S=>{if(!c.value)return;let L={x:0,y:0};const v=q=>{var B,A;L={x:Math.abs(Math.round(q.pageX)-(((B=w.value)==null?void 0:B.x)??0)),y:Math.abs(Math.round(q.pageY)-(((A=w.value)==null?void 0:A.y)??0))}},I=q=>{var B;q.pointerType!=="touch"&&(L.x<=10&&L.y<=10?q.preventDefault():(B=c.value)!=null&&B.contains(q.target)||M(!1),document.removeEventListener("pointermove",v),w.value=null)};w.value!==null&&(document.addEventListener("pointermove",v),document.addEventListener("pointerup",I,{capture:!0,once:!0})),S(()=>{document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",I,{capture:!0})})});function x(S){const L=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!L&&S.key.length===1&&h(S.key,s()),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let I=[...s().map(q=>q.ref)];if(["ArrowUp","End"].includes(S.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const q=S.target,B=I.indexOf(q);I=I.slice(B+1)}setTimeout(()=>bB(I)),S.preventDefault()}}const b=a.computed(()=>n.position==="popper"?n:{}),C=nt(b.value);return DB({content:c,viewport:u,onViewportChange:S=>{u.value=S},itemRefCallback:(S,L,v)=>{const I=!m.value&&!v,q=Ll(r.modelValue.value,L,r.by);if(r.multiple.value){if(g.value)return;(q||I)&&(p.value=S,q&&(g.value=!0))}else(q||I)&&(p.value=S);I&&(m.value=!0)},selectedItem:p,selectedItemText:y,onItemLeave:()=>{var S;(S=c.value)==null||S.focus()},itemTextRefCallback:(S,L,v)=>{const I=!m.value&&!v;(Ll(r.modelValue.value,L,r.by)||I)&&(y.value=S)},focusSelectedItem:k,position:n.position,isPositioned:f,searchRef:d}),(S,L)=>(a.openBlock(),a.createBlock(a.unref(i),null,{default:a.withCtx(()=>[a.createVNode(a.unref(gB),{"as-child":"",onMountAutoFocus:L[6]||(L[6]=a.withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:L[7]||(L[7]=v=>{var I;o("closeAutoFocus",v),!v.defaultPrevented&&((I=a.unref(r).triggerElement.value)==null||I.focus({preventScroll:!0}),v.preventDefault())})},{default:a.withCtx(()=>[a.createVNode(a.unref(LI),{"as-child":"","disable-outside-pointer-events":S.disableOutsidePointerEvents,onFocusOutside:L[2]||(L[2]=a.withModifiers(()=>{},["prevent"])),onDismiss:L[3]||(L[3]=v=>a.unref(r).onOpenChange(!1)),onEscapeKeyDown:L[4]||(L[4]=v=>o("escapeKeyDown",v)),onPointerDownOutside:L[5]||(L[5]=v=>o("pointerDownOutside",v))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(S.position==="popper"?MO:SO),a.mergeProps({...S.$attrs,...a.unref(C)},{id:a.unref(r).contentId,ref:v=>{const I=a.unref(Wt)(v);I!=null&&I.hasAttribute("data-reka-popper-content-wrapper")?c.value=I.firstElementChild:c.value=I},role:"listbox","data-state":a.unref(r).open.value?"open":"closed",dir:a.unref(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:L[0]||(L[0]=a.withModifiers(()=>{},["prevent"])),onPlaced:L[1]||(L[1]=v=>f.value=!0),onKeydown:x}),{default:a.withCtx(()=>[a.renderSlot(S.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),vO=wO;const[VI,CO]=yt("SelectItemAlignedPosition");var LO=a.defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const n=e,o=t,{getItems:r}=Vs(),i=Sa(),s=ts(),c=a.ref(!1),d=a.ref(!0),h=a.ref(),{forwardRef:u,currentElement:p}=ke(),{viewport:y,selectedItem:f,selectedItemText:m,focusSelectedItem:g}=s;function k(){if(i.triggerElement.value&&i.valueElement.value&&h.value&&p.value&&(y!=null&&y.value)&&(f!=null&&f.value)&&(m!=null&&m.value)){const x=i.triggerElement.value.getBoundingClientRect(),b=p.value.getBoundingClientRect(),C=i.valueElement.value.getBoundingClientRect(),S=m.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const pe=S.left-b.left,Ie=C.left-pe,ce=x.left-Ie,X=x.width+ce,z=Math.max(X,b.width),R=window.innerWidth-It,ee=ZA(Ie,It,Math.max(It,R-z));h.value.style.minWidth=`${X}px`,h.value.style.left=`${ee}px`}else{const pe=b.right-S.right,Ie=window.innerWidth-C.right-pe,ce=window.innerWidth-x.right-Ie,X=x.width+ce,z=Math.max(X,b.width),R=window.innerWidth-It,ee=ZA(Ie,It,Math.max(It,R-z));h.value.style.minWidth=`${X}px`,h.value.style.right=`${ee}px`}const L=r().map(pe=>pe.ref),v=window.innerHeight-It*2,I=y.value.scrollHeight,q=window.getComputedStyle(p.value),B=Number.parseInt(q.borderTopWidth,10),A=Number.parseInt(q.paddingTop,10),V=Number.parseInt(q.borderBottomWidth,10),T=Number.parseInt(q.paddingBottom,10),W=B+A+I+T+V,H=Math.min(f.value.offsetHeight*5,W),O=window.getComputedStyle(y.value),U=Number.parseInt(O.paddingTop,10),J=Number.parseInt(O.paddingBottom,10),D=x.top+x.height/2-It,F=v-D,N=f.value.offsetHeight/2,Y=f.value.offsetTop+N,Q=B+A+Y,re=W-Q;if(Q<=D){const pe=f.value===L[L.length-1];h.value.style.bottom="0px";const Ie=p.value.clientHeight-y.value.offsetTop-y.value.offsetHeight,ce=Math.max(F,N+(pe?J:0)+Ie+V),X=Q+ce;h.value.style.height=`${X}px`}else{const pe=f.value===L[0];h.value.style.top="0px";const ce=Math.max(D,B+y.value.offsetTop+(pe?U:0)+N)+re;h.value.style.height=`${ce}px`,y.value.scrollTop=Q-D+y.value.offsetTop}h.value.style.margin=`${It}px 0`,h.value.style.minHeight=`${H}px`,h.value.style.maxHeight=`${v}px`,o("placed"),requestAnimationFrame(()=>c.value=!0)}}const M=a.ref("");a.onMounted(async()=>{await a.nextTick(),k(),p.value&&(M.value=window.getComputedStyle(p.value).zIndex)});function w(x){x&&d.value===!0&&(k(),g==null||g(),d.value=!1)}return bT(i.triggerElement,()=>{k()}),CO({contentWrapper:h,shouldExpandOnScrollRef:c,onScrollButtonChange:w}),(x,b)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"contentWrapperElement",ref:h,style:a.normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:M.value})},[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(u),style:{boxSizing:"border-box",maxHeight:"100%"}},{...x.$attrs,...n}),{default:a.withCtx(()=>[a.renderSlot(x.$slots,"default")]),_:3},16)],4))}}),SO=LO,IO=a.defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return qB(e.context),DB(xO),(n,o)=>a.renderSlot(n.$slots,"default")}}),_O=IO;const AO={key:1};var BO=a.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=St(n,t),i=Sa(),s=a.ref();a.onMounted(()=>{s.value=new DocumentFragment});const c=a.ref(),d=a.computed(()=>n.forceMount||i.open.value),h=a.ref(d.value);return a.watch(d,()=>{setTimeout(()=>h.value=d.value)}),(u,p)=>{var y;return d.value||h.value||(y=c.value)!=null&&y.present?(a.openBlock(),a.createBlock(a.unref(jL),{key:0,ref_key:"presenceRef",ref:c,present:d.value},{default:a.withCtx(()=>[a.createVNode(vO,a.normalizeProps(a.guardReactiveProps({...a.unref(r),...u.$attrs})),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):s.value?(a.openBlock(),a.createElementBlock("div",AO,[(a.openBlock(),a.createBlock(a.Teleport,{to:s.value},[a.createVNode(_O,{context:a.unref(i)},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):a.createCommentVNode("v-if",!0)}}}),VO=BO,zO=a.defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ve),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=a.createTextVNode("▼"))])]),_:3},8,["as","as-child"]))}}),PO=zO;const[EB,qO]=yt("SelectItem");var DO=a.defineComponent({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=t,{disabled:r}=a.toRefs(n),i=Sa(),s=ts(),{forwardRef:c,currentElement:d}=ke(),{CollectionItem:h}=Vs(),u=a.computed(()=>{var b;return Ll((b=i.modelValue)==null?void 0:b.value,n.value,i.by)}),p=a.ref(!1),y=a.ref(n.textValue??""),f=Bs(void 0,"reka-select-item-text"),m="select.select";async function g(b){if(b.defaultPrevented)return;const C={originalEvent:b,value:n.value};fI(m,k,C)}async function k(b){await a.nextTick(),o("select",b),!b.defaultPrevented&&(r.value||(i.onValueChange(n.value),i.multiple.value||i.onOpenChange(!1)))}async function M(b){var C,S;await a.nextTick(),!b.defaultPrevented&&(r.value?(C=s.onItemLeave)==null||C.call(s):(S=b.currentTarget)==null||S.focus({preventScroll:!0}))}async function w(b){var C;await a.nextTick(),!b.defaultPrevented&&b.currentTarget===ct()&&((C=s.onItemLeave)==null||C.call(s))}async function x(b){var S;await a.nextTick(),!(b.defaultPrevented||((S=s.searchRef)==null?void 0:S.value)!==""&&b.key===" ")&&(uO.includes(b.key)&&g(b),b.key===" "&&b.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.onMounted(()=>{d.value&&s.itemRefCallback(d.value,n.value,n.disabled)}),qO({value:n.value,disabled:r,textId:f,isSelected:u,onItemTextChange:b=>{y.value=((y.value||(b==null?void 0:b.textContent))??"").trim()}}),(b,C)=>(a.openBlock(),a.createBlock(a.unref(h),{value:{textValue:y.value}},{default:a.withCtx(()=>[a.createVNode(a.unref(ve),{ref:a.unref(c),role:"option","aria-labelledby":a.unref(f),"data-highlighted":p.value?"":void 0,"aria-selected":u.value,"data-state":u.value?"checked":"unchecked","aria-disabled":a.unref(r)||void 0,"data-disabled":a.unref(r)?"":void 0,tabindex:a.unref(r)?void 0:-1,as:b.as,"as-child":b.asChild,onFocus:C[0]||(C[0]=S=>p.value=!0),onBlur:C[1]||(C[1]=S=>p.value=!1),onPointerup:g,onPointerdown:C[2]||(C[2]=S=>{S.currentTarget.focus({preventScroll:!0})}),onTouchend:C[3]||(C[3]=a.withModifiers(()=>{},["prevent","stop"])),onPointermove:M,onPointerleave:w,onKeydown:x},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),EO=DO,TO=a.defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=EB();return(o,r)=>a.unref(n).isSelected.value?(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({key:0,"aria-hidden":"true"},t),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16)):a.createCommentVNode("v-if",!0)}}),HO=TO,OO=a.defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Sa(),o=ts(),r=EB(),{forwardRef:i,currentElement:s}=ke(),c=a.computed(()=>{var d,h;return{value:r.value,disabled:r.disabled.value,textContent:((d=s.value)==null?void 0:d.textContent)??((h=r.value)==null?void 0:h.toString())??""}});return a.onMounted(()=>{s.value&&(r.onItemTextChange(s.value),o.itemTextRefCallback(s.value,r.value,r.disabled.value),n.onOptionAdd(c.value))}),a.onUnmounted(()=>{n.onOptionRemove(c.value)}),(d,h)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({id:a.unref(r).textId,ref:a.unref(i)},{...t,...d.$attrs}),{default:a.withCtx(()=>[a.renderSlot(d.$slots,"default")]),_:3},16,["id"]))}}),jO=OO,FO=a.defineComponent({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),NO=FO,RO=a.defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const n=t,{getItems:o}=Vs(),r=ts(),i=a.ref(null);function s(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}a.watchEffect(()=>{const h=o().map(u=>u.ref).find(u=>u===ct());h==null||h.scrollIntoView({block:"nearest"})});function c(){i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var h;(h=r.onItemLeave)==null||h.call(r),i.value===null&&(i.value=window.setInterval(()=>{n("autoScroll")},50))}return a.onBeforeUnmount(()=>s()),(h,u)=>{var p;return a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(p=h.$parent)==null?void 0:p.$props,{onPointerdown:c,onPointermove:d,onPointerleave:u[0]||(u[0]=()=>{s()})}),{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},16)}}}),TB=RO,$O=a.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ts(),n=t.position==="item-aligned"?VI():void 0,{forwardRef:o,currentElement:r}=ke(),i=a.ref(!1);return a.watchEffect(s=>{var c,d;if((c=t.viewport)!=null&&c.value&&((d=t.isPositioned)!=null&&d.value)){let u=function(){const p=h.scrollHeight-h.clientHeight;i.value=Math.ceil(h.scrollTop)<p};const h=t.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),a.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(a.openBlock(),a.createBlock(TB,{key:0,ref:a.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=a.unref(t);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop+h.value.offsetHeight)})},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},512)):a.createCommentVNode("v-if",!0)}}),UO=$O,WO=a.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ts(),n=t.position==="item-aligned"?VI():void 0,{forwardRef:o,currentElement:r}=ke(),i=a.ref(!1);return a.watchEffect(s=>{var c,d;if((c=t.viewport)!=null&&c.value&&((d=t.isPositioned)!=null&&d.value)){let u=function(){i.value=h.scrollTop>0};const h=t.viewport.value;u(),h.addEventListener("scroll",u),s(()=>h.removeEventListener("scroll",u))}}),a.watch(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(s,c)=>i.value?(a.openBlock(),a.createBlock(TB,{key:0,ref:a.unref(o),onAutoScroll:c[0]||(c[0]=()=>{const{viewport:d,selectedItem:h}=a.unref(t);d!=null&&d.value&&(h!=null&&h.value)&&(d.value.scrollTop=d.value.scrollTop-h.value.offsetHeight)})},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},512)):a.createCommentVNode("v-if",!0)}}),GO=WO,KO=a.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Sa(),{forwardRef:o,currentElement:r}=ke(),i=a.computed(()=>{var y;return((y=n.disabled)==null?void 0:y.value)||t.disabled});n.contentId||(n.contentId=Bs(void 0,"reka-select-content")),a.onMounted(()=>{n.onTriggerChange(r.value)});const{getItems:s}=Vs(),{search:c,handleTypeaheadSearch:d,resetTypeahead:h}=cB();function u(){i.value||(n.onOpenChange(!0),h())}function p(y){u(),n.triggerPointerDownPosRef.value={x:Math.round(y.pageX),y:Math.round(y.pageY)}}return(y,f)=>(a.openBlock(),a.createBlock(a.unref(zB),{"as-child":"",reference:y.reference},{default:a.withCtx(()=>{var m,g,k,M;return[a.createVNode(a.unref(ve),{ref:a.unref(o),role:"combobox",type:y.as==="button"?"button":void 0,"aria-controls":a.unref(n).contentId,"aria-expanded":a.unref(n).open.value||!1,"aria-required":(m=a.unref(n).required)==null?void 0:m.value,"aria-autocomplete":"none",disabled:i.value,dir:(g=a.unref(n))==null?void 0:g.dir.value,"data-state":(k=a.unref(n))!=null&&k.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":a.unref(pO)((M=a.unref(n).modelValue)==null?void 0:M.value)?"":void 0,"as-child":y.asChild,as:y.as,onClick:f[0]||(f[0]=w=>{var x;(x=w==null?void 0:w.currentTarget)==null||x.focus()}),onPointerdown:f[1]||(f[1]=w=>{if(w.pointerType==="touch")return w.preventDefault();const x=w.target;x.hasPointerCapture(w.pointerId)&&x.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&(p(w),w.preventDefault())}),onPointerup:f[2]||(f[2]=a.withModifiers(w=>{w.pointerType==="touch"&&p(w)},["prevent"])),onKeydown:f[3]||(f[3]=w=>{const x=a.unref(c)!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&x&&w.key===" "||(a.unref(d)(w.key,a.unref(s)()),a.unref(hO).includes(w.key)&&(u(),w.preventDefault()))})},{default:a.withCtx(()=>[a.renderSlot(y.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),XO=KO,ZO=a.defineComponent({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ke(),r=Sa();a.onMounted(()=>{r.valueElement=o});const i=a.computed(()=>{var u;let c=[];const d=Array.from(r.optionsSet.value),h=p=>d.find(y=>Ll(p,y.value,r.by));return Array.isArray(r.modelValue.value)?c=r.modelValue.value.map(p=>{var y;return((y=h(p))==null?void 0:y.textContent)??""}):c=[((u=h(r.modelValue.value))==null?void 0:u.textContent)??""],c.filter(Boolean)}),s=a.computed(()=>i.value.length?i.value.join(", "):t.placeholder);return(c,d)=>(a.openBlock(),a.createBlock(a.unref(ve),{ref:a.unref(n),as:c.as,"as-child":c.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{selectedLabel:i.value,modelValue:a.unref(r).modelValue.value},()=>[a.createTextVNode(a.toDisplayString(s.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),YO=ZO,QO=a.defineComponent({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:n}=a.toRefs(t),o=RH(n),r=ts(),i=r.position==="item-aligned"?VI():void 0,{forwardRef:s,currentElement:c}=ke();a.onMounted(()=>{r==null||r.onViewportChange(c.value)});const d=a.ref(0);function h(u){const p=u.currentTarget,{shouldExpandOnScrollRef:y,contentWrapper:f}=i??{};if(y!=null&&y.value&&(f!=null&&f.value)){const m=Math.abs(d.value-p.scrollTop);if(m>0){const g=window.innerHeight-It*2,k=Number.parseFloat(f.value.style.minHeight),M=Number.parseFloat(f.value.style.height),w=Math.max(k,M);if(w<g){const x=w+m,b=Math.min(g,x),C=x-b;f.value.style.height=`${b}px`,f.value.style.bottom==="0px"&&(p.scrollTop=C>0?C:0,f.value.style.justifyContent="flex-end")}}}d.value=p.scrollTop}return(u,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(s),"data-reka-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:h}),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16),a.createVNode(a.unref(ve),{as:"style",nonce:a.unref(o)},{default:a.withCtx(()=>p[0]||(p[0]=[a.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),JO=QO,ej=a.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function o(c){return n.includes(c)}const r=a.computed(()=>o(t.orientation)?t.orientation:"horizontal"),i=a.computed(()=>r.value==="vertical"?t.orientation:void 0),s=a.computed(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(c,d)=>(a.openBlock(),a.createBlock(a.unref(ve),a.mergeProps({as:c.as,"as-child":c.asChild,"data-orientation":r.value},s.value),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),tj=ej,aj=a.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(tj,a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),nj=aj;const[zI,oj]=yt("TooltipProvider");var rj=a.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:i,ignoreNonKeyboardFocus:s,disabled:c}=a.toRefs(t);ke();const d=a.ref(!0),h=a.ref(!1),{start:u,stop:p}=eB(()=>{d.value=!0},o,{immediate:!1});return oj({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){u()},isPointerInTransitRef:h,disableHoverableContent:r,disableClosingTrigger:i,disabled:c,ignoreNonKeyboardFocus:s}),(y,f)=>a.renderSlot(y.$slots,"default")}}),ij=rj;const HB="tooltip.open",[NL,sj]=yt("TooltipRoot");var lj=a.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;ke();const r=zI(),i=a.computed(()=>n.disableHoverableContent??r.disableHoverableContent.value),s=a.computed(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),c=a.computed(()=>n.disabled??r.disabled.value),d=a.computed(()=>n.delayDuration??r.delayDuration.value),h=a.computed(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=_s(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});a.watch(u,x=>{r.onClose&&(x?(r.onOpen(),document.dispatchEvent(new CustomEvent(HB))):r.onClose())});const p=a.ref(!1),y=a.ref(),f=a.computed(()=>u.value?p.value?"delayed-open":"instant-open":"closed"),{start:m,stop:g}=eB(()=>{p.value=!0,u.value=!0},d,{immediate:!1});function k(){g(),p.value=!1,u.value=!0}function M(){g(),u.value=!1}function w(){m()}return sj({contentId:"",open:u,stateAttribute:f,trigger:y,onTriggerChange(x){y.value=x},onTriggerEnter(){r.isOpenDelayed.value?w():k()},onTriggerLeave(){i.value?M():g()},onOpen:k,onClose:M,disableHoverableContent:i,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:h}),(x,b)=>(a.openBlock(),a.createBlock(a.unref(VB),null,{default:a.withCtx(()=>[a.renderSlot(x.$slots,"default",{open:a.unref(u)})]),_:3}))}}),cj=lj,dj=a.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=NL(),{forwardRef:i,currentElement:s}=ke(),c=a.computed(()=>{var h;return n.ariaLabel||((h=s.value)==null?void 0:h.textContent)}),d=a.computed(()=>{const{ariaLabel:h,...u}=n;return u});return a.onMounted(()=>{vl(window,"scroll",h=>{const u=h.target;u!=null&&u.contains(r.trigger.value)&&r.onClose()}),vl(window,HB,r.onClose)}),(h,u)=>(a.openBlock(),a.createBlock(a.unref(LI),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:u[1]||(u[1]=p=>{var y;a.unref(r).disableClosingTrigger.value&&((y=a.unref(r).trigger.value)!=null&&y.contains(p.target))&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:u[2]||(u[2]=a.withModifiers(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=p=>a.unref(r).onClose())},{default:a.withCtx(()=>[a.createVNode(a.unref(PB),a.mergeProps({ref:a.unref(i),"data-state":a.unref(r).stateAttribute.value},{...h.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default"),a.createVNode(a.unref(AB),{id:a.unref(r).contentId,role:"tooltip"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),OB=dj,hj=a.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=nt(e),{forwardRef:o,currentElement:r}=ke(),{trigger:i,onClose:s}=NL(),c=zI(),{isPointerInTransit:d,onPointerExit:h}=IT(i,r);return c.isPointerInTransitRef=d,h(()=>{s()}),(u,p)=>(a.openBlock(),a.createBlock(OB,a.mergeProps({ref:a.unref(o)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(u.$slots,"default")]),_:3},16))}}),uj=hj,pj=a.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=NL(),i=St(n,o),{forwardRef:s}=ke();return(c,d)=>(a.openBlock(),a.createBlock(a.unref(jL),{present:c.forceMount||a.unref(r).open.value},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r).disableHoverableContent.value?OB:uj),a.mergeProps({ref:a.unref(s)},a.unref(i)),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),yj=pj,fj=a.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_I),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),mj=fj,kj=a.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=NL(),o=zI();n.contentId||(n.contentId=Bs(void 0,"reka-tooltip-content"));const{forwardRef:r,currentElement:i}=ke(),s=a.ref(!1),c=a.ref(!1),d=a.computed(()=>n.disabled.value?{}:{click:g,focus:f,pointermove:p,pointerleave:y,pointerdown:u,blur:m});a.onMounted(()=>{n.onTriggerChange(i.value)});function h(){setTimeout(()=>{s.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",h,{once:!0})}function p(k){k.pointerType!=="touch"&&!c.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),c.value=!0)}function y(){n.onTriggerLeave(),c.value=!1}function f(k){var M,w;s.value||n.ignoreNonKeyboardFocus.value&&!((w=(M=k.target).matches)!=null&&w.call(M,":focus-visible"))||n.onOpen()}function m(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(k,M)=>(a.openBlock(),a.createBlock(a.unref(zB),{"as-child":"",reference:k.reference},{default:a.withCtx(()=>[a.createVNode(a.unref(ve),a.mergeProps({ref:a.unref(r),"aria-describedby":a.unref(n).open.value?a.unref(n).contentId:void 0,"data-state":a.unref(n).stateAttribute.value,as:k.as,"as-child":t.asChild,"data-grace-area-trigger":""},a.toHandlers(d.value)),{default:a.withCtx(()=>[a.renderSlot(k.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),gj=kj;const je=a.defineComponent({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(ve),{as:e.as,"as-child":e.asChild,class:a.normalizeClass(a.unref(Me)(a.unref(Ps)({variant:e.variant,size:e.size}),t.class))},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),Ps=xl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-8 w-8","icon-sm":"size-7","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),jB=a.defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(cj),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),FB=a.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(mj),null,{default:a.withCtx(()=>[a.createVNode(a.unref(yj),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),NB=a.defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(ij),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),RB=a.defineComponent({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(gj),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),bj={class:"relative z-10"},Mj="font-medium transition-all duration-300 ease-in-out hover:-translate-y-0.5 hover:scale-[1.02] active:translate-y-0 active:scale-[0.98] shadow-[0_3px_0_0_rgba(0,0,0,0.12),0_12px_22px_-10px_rgba(0,0,0,0.35)] hover:shadow-[0_6px_20px_-4px_rgba(0,0,0,0.3),0_10px_40px_-10px_rgba(0,0,0,0.2)] active:shadow-[0_1px_0_0_rgba(0,0,0,0.2),0_4px_8px_-4px_rgba(0,0,0,0.35)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed disabled:shadow-none disabled:translate-y-0 disabled:scale-100 relative overflow-hidden before:absolute before:inset-0 before:bg-white/20 before:translate-y-full before:transition-transform before:duration-300 hover:before:translate-y-0",xj=a.defineComponent({name:"DCodeButton",inheritAttrs:!1,__name:"DCodeButton",props:{icon:{},text:{default:""},variant:{default:"default"},size:{default:"default"},tooltip:{default:""},bgColor:{default:""},textColor:{default:""},borderColor:{default:""},rounded:{default:"lg"},borderStyle:{default:"solid"},disabled:{type:Boolean,default:!1},type:{default:"button"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1}},setup(e){const t=a.useAttrs(),n=e,o=a.computed(()=>n.icon&&na[n.icon]||null),r=a.computed(()=>!!n.tooltip),i=a.computed(()=>n.visible??!0),s=a.computed(()=>{const N=String(n.variant||"default").toLowerCase();return N==="tonal"?"secondary":N==="elevated"?"default":N}),c=a.computed(()=>String(n.bgColor||"").toLowerCase()),d=a.computed(()=>String(n.type||"button").toLowerCase()),h=a.computed(()=>{const{class:N,...Y}=t;return Y}),u=a.computed(()=>Me(t.class)),p=a.computed(()=>((u.value??"").match(/\b(?:w|h|min-w|min-h|max-w|max-h)-[^\s]+\b/g)??[]).join(" ")),y=a.computed(()=>n.size==="sm"?"h-9":n.size==="lg"?"h-11":n.size==="icon"?"h-10 w-10":"h-10"),f=a.computed(()=>n.size==="icon"?"":!n.text&&n.icon?"w-10":"w-28"),m=a.computed(()=>n.rounded?n.rounded.startsWith("rounded")?n.rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"}[n.rounded]||`rounded-${n.rounded}`:""),g=a.computed(()=>!n.borderStyle||n.borderStyle==="solid"?"":{dashed:"border-2 border-dashed",dotted:"border-2 border-dotted",double:"border-4 border-double",none:"border-0 border-none"}[n.borderStyle]||""),k=a.computed(()=>Me("inline-flex items-center justify-center bg-gray-200 dark:bg-gray-700 animate-pulse",m.value,y.value,f.value,p.value)),M=a.computed(()=>{const Y=(u.value??"").match(/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Y?Y[0]:null}),w=a.computed(()=>{const Y=(u.value??"").match(/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u);return Y?Y[0]:null}),x=a.computed(()=>!!M.value),b=a.computed(()=>/\bborder-/.test(u.value??"")),C=a.computed(()=>/\bhover:/.test(u.value??"")),S=a.computed(()=>{const N=u.value??"";return s.value!=="outline"?N:N.replaceAll(/\bbg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\bhover:bg-(?!gradient)[^\s]+\b/gu,"").replaceAll(/\s+/gu," ").trim()}),L=a.ref(null),v=N=>{const Y=N.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)/u);return Y?{r:Number(Y[1]),g:Number(Y[2]),b:Number(Y[3]),a:Y[4]?Number(Y[4]):1}:null},I=(N,Y)=>{const Q=v(N);if(!Q)return N;const re=ue=>Math.max(0,Math.min(255,Math.round(ue)));return`rgba(${re(Q.r*(1-Y))}, ${re(Q.g*(1-Y))}, ${re(Q.b*(1-Y))}, ${Q.a})`},q=N=>{if(globalThis.window===void 0)return null;const Y=document.createElement("div");Y.className=N,Y.style.position="absolute",Y.style.visibility="hidden",Y.style.pointerEvents="none",Y.style.width="1px",Y.style.height="1px",document.body.appendChild(Y);const Q=globalThis.getComputedStyle(Y).backgroundColor;return Y.remove(),!Q||Q==="transparent"||Q==="rgba(0, 0, 0, 0)"?null:Q},B=[50,100,200,300,400,500,600,700,800,900,950],A=N=>{const Y=B.indexOf(N);return Y===-1?N:B[Math.min(B.length-1,Y+2)]},V=(N,Y)=>{const Q=XE[N];if(!Q)return null;if(typeof Q=="string")return Q;if(!Y)return null;const re=Q[Y];return typeof re=="string"?re:null},T=(N,Y=!1)=>{if(!N)return null;const Q=Y?/\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u:/\bbg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u,re=N.match(Q);return re?{colorName:re[1],shade:re[2]?Number.parseInt(re[2],10):null}:null},W=()=>{const N=M.value;if(!N){L.value=null;return}const Y=T(N),Q=Y==null?void 0:Y.colorName,re=(Y==null?void 0:Y.shade)??null,ue=(Q?V(Q,re):null)??q(N);if(!ue){L.value=null;return}let pe;const Ie=T(w.value,!0),ce=Ie?V(Ie.colorName,Ie.shade??null):null;if(ce)pe=ce;else if(Q&&re){const X=A(re);pe=V(Q,X)??I(ue,.2)}else pe=I(ue,.2);L.value={"--btn-color":ue,"--btn-color-hover":pe}};a.onMounted(()=>{W()}),a.watch([M,w],async()=>{await a.nextTick(),W()});const H=a.computed(()=>{const N=/\bdark:bg-/.test(u.value??"");return!x.value||s.value==="outline"||N?"":L.value?"dcode-btn--fill dcode-btn--fill-hover":C.value?"":"hover:brightness-90"}),O=a.computed(()=>{if(!x.value||s.value!=="outline")return"";const N=["dcode-btn--outline","dcode-btn--outline-hover"];return b.value||N.push("border"),!L.value&&!C.value&&N.push("hover:brightness-90"),N.join(" ")}),U=a.computed(()=>L.value??void 0),J={primary:{bg:"bg-blue-600",text:"text-white",hover:"hover:bg-blue-700",border:"border-blue-900"},success:{bg:"bg-green-600",text:"text-white",hover:"hover:bg-green-700",border:"border-green-900"},warning:{bg:"bg-yellow-500",text:"text-white",hover:"hover:bg-yellow-600",border:"border-yellow-900"},danger:{bg:"bg-red-600",text:"text-white",hover:"hover:bg-red-700",border:"border-red-900"},info:{bg:"bg-cyan-600",text:"text-white",hover:"hover:bg-cyan-700",border:"border-cyan-900"},purple:{bg:"bg-purple-600",text:"text-white",hover:"hover:bg-purple-700",border:"border-purple-900"},pink:{bg:"bg-pink-600",text:"text-white",hover:"hover:bg-pink-700",border:"border-pink-900"},"gradient-blue":{bg:"bg-gradient-to-r from-blue-500 to-cyan-500",text:"text-white",hover:"hover:from-blue-600 hover:to-cyan-600"},"gradient-purple":{bg:"bg-gradient-to-r from-purple-500 to-pink-500",text:"text-white",hover:"hover:from-purple-600 hover:to-pink-600"},"gradient-sunset":{bg:"bg-gradient-to-r from-orange-500 to-red-500",text:"text-white",hover:"hover:from-orange-600 hover:to-red-600"},"gradient-emerald":{bg:"bg-gradient-to-r from-emerald-500 to-teal-500",text:"text-white",hover:"hover:from-emerald-600 hover:to-teal-600"},transparent:{bg:"bg-transparent",text:"text-inherit",hover:"hover:bg-gray-100/10 hover:text-inherit dark:hover:bg-gray-800/10 dark:hover:text-inherit",border:"border-current"}},D=a.computed(()=>{const N=[],Y=c.value?J[c.value]:null;if(Y)N.push(Y.bg,Y.hover),N.push(n.textColor||Y.text),n.borderColor?N.push(n.borderColor):Y.border&&N.push(Y.border);else if(c.value&&N.push(c.value),n.textColor&&N.push(n.textColor),n.borderColor)N.push(n.borderColor);else if(c.value&&c.value.startsWith("bg-")){const Q=c.value.replace(/^bg-/,"border-");Q!==c.value&&N.push(Q)}return N.join(" ")}),F=a.computed(()=>Me(Mj,m.value,g.value,S.value,H.value,O.value,D.value));return(N,Y)=>i.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.skeleton?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(k.value),"aria-hidden":"true"},null,2)):(a.openBlock(),a.createBlock(a.unref(NB),{key:1,"delay-duration":0},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createBlock(a.unref(jB),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(RB),{"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(je),a.mergeProps({variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:U.value},h.value),{default:a.withCtx(()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):a.createCommentVNode("",!0),n.text?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(o.value?"ml-1":"")},a.toDisplayString(n.text),3)):a.createCommentVNode("",!0)]),_:1},16,["variant","size","disabled","type","class","style"])]),_:1}),a.createVNode(a.unref(FB),{side:"top","side-offset":8,class:"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0"},{default:a.withCtx(()=>[a.createElementVNode("span",bj,a.toDisplayString(n.tooltip),1)]),_:1})]),_:1})):(a.openBlock(),a.createBlock(a.unref(je),a.mergeProps({key:1,variant:s.value,size:n.size,disabled:n.disabled,type:d.value,class:F.value,style:U.value},h.value),{default:a.withCtx(()=>[a.renderSlot(N.$slots,"default",{},()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:"h-[18px] w-[18px]"})):a.createCommentVNode("",!0),n.text?(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(o.value?"ml-1":"")},a.toDisplayString(n.text),3)):a.createCommentVNode("",!0)],!0)]),_:3},16,["variant","size","disabled","type","class","style"]))]),_:3}))],64)):a.createCommentVNode("",!0)}}),ra=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},as=ra(xj,[["__scopeId","data-v-a866d2a3"]]),wj={key:0,class:"flex items-center justify-between mb-4"},vj={class:"flex flex-col gap-1"},Cj={key:0,class:"text-lg font-semibold text-neutral-900 dark:text-neutral-50 leading-tight"},Lj={key:1,class:"text-sm text-neutral-500 dark:text-neutral-400"},Sj={key:0,class:"flex items-center gap-2"},Ij={class:"relative z-10"},_j={key:1,class:"mt-6 pt-6 border-t border-neutral-200 dark:border-neutral-800"},Aj={name:"DCodeCard"},PI=a.defineComponent({...Aj,props:{level:{default:1},title:{},subtitle:{},shadow:{type:Boolean,default:!1},border:{type:Boolean,default:!0},padding:{default:"p-6"}},setup(e){const t=e,n=a.computed(()=>{switch(t.level){case 2:return"bg-neutral-50 dark:bg-neutral-800";case 3:return"bg-neutral-100 dark:bg-neutral-700";case 1:default:return"bg-white dark:bg-neutral-900"}});return(o,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["transition-shadow duration-300 dcode-card",[n.value,e.padding,{"shadow-md":e.shadow},{"border-transparent":!e.border},{"border-neutral-200 dark:border-neutral-800":e.border&&e.level===1},{"border-neutral-300 dark:border-neutral-700":e.border&&e.level!==1}]])},[e.title||o.$slots.header||o.$slots.actions?(a.openBlock(),a.createElementBlock("div",wj,[a.createElementVNode("div",vj,[a.renderSlot(o.$slots,"header",{},()=>[e.title?(a.openBlock(),a.createElementBlock("h3",Cj,a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.subtitle?(a.openBlock(),a.createElementBlock("p",Lj,a.toDisplayString(e.subtitle),1)):a.createCommentVNode("",!0)])]),o.$slots.actions?(a.openBlock(),a.createElementBlock("div",Sj,[a.renderSlot(o.$slots,"actions")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Ij,[a.renderSlot(o.$slots,"default")]),o.$slots.footer?(a.openBlock(),a.createElementBlock("div",_j,[a.renderSlot(o.$slots,"footer")])):a.createCommentVNode("",!0)],2))}});/*!
|
|
8503
8503
|
* @kurkle/color v0.3.4
|
|
8504
8504
|
* https://github.com/kurkle/color#readme
|
|
8505
8505
|
* (c) 2024 Jukka Kurkela
|
|
@@ -8509,14 +8509,14 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warni
|
|
|
8509
8509
|
* https://www.chartjs.org
|
|
8510
8510
|
* (c) 2025 Chart.js Contributors
|
|
8511
8511
|
* Released under the MIT License
|
|
8512
|
-
*/function sa(){}const Qj=(()=>{let e=0;return()=>e++})();function Se(e){return e==null}function $e(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function we(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Xe(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Kt(e,t){return Xe(e)?e:t}function ge(e,t){return typeof e>"u"?t:e}const Jj=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,YB=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Pe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function _e(e,t,n,o){let r,i,s;if($e(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(we(e))for(s=Object.keys(e),i=s.length,r=0;r<i;r++)t.call(n,e[s[r]],s[r])}function WL(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function GL(e){if($e(e))return e.map(GL);if(we(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=GL(e[n[r]]);return t}return e}function QB(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function eF(e,t,n,o){if(!QB(e))return;const r=t[e],i=n[e];we(r)&&we(i)?Al(r,i,o):t[e]=GL(i)}function Al(e,t,n){const o=$e(t)?t:[t],r=o.length;if(!we(e))return e;n=n||{};const i=n.merger||eF;let s;for(let c=0;c<r;++c){if(s=o[c],!we(s))continue;const d=Object.keys(s);for(let h=0,u=d.length;h<u;++h)i(d[h],e,s,n)}return e}function Bl(e,t){return Al(e,t,{merger:tF})}function tF(e,t,n){if(!QB(e))return;const o=t[e],r=n[e];we(o)&&we(r)?Bl(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=GL(r))}const JB={"":e=>e,x:e=>e.x,y:e=>e.y};function aF(e){const t=e.split("."),n=[];let o="";for(const r of t)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function nF(e){const t=aF(e);return n=>{for(const o of t){if(o==="")break;n=n&&n[o]}return n}}function ns(e,t){return(JB[t]||(JB[t]=nF(t)))(e)}function OI(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vl=e=>typeof e<"u",Aa=e=>typeof e=="function",eV=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function oF(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ae=Math.PI,Te=2*Ae,rF=Te+Ae,KL=Number.POSITIVE_INFINITY,iF=Ae/180,We=Ae/2,os=Ae/4,tV=Ae*2/3,aV=Math.log10,Xt=Math.sign;function zl(e,t,n){return Math.abs(e-t)<n}function nV(e){const t=Math.round(e);e=zl(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(aV(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function sF(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(n|0)&&t.push(n),t.sort((r,i)=>r-i).pop(),t}function lF(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Pl(e){return!lF(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function cF(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function dF(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function la(e){return e*(Ae/180)}function hF(e){return e*(180/Ae)}function oV(e){if(!Xe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function rV(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*Ae&&(i+=Te),{angle:i,distance:r}}function jI(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function uF(e,t){return(e-t+rF)%Te-Ae}function dt(e){return(e%Te+Te)%Te}function ql(e,t,n,o){const r=dt(e),i=dt(t),s=dt(n),c=dt(i-r),d=dt(s-r),h=dt(r-i),u=dt(r-s);return r===i||r===s||o&&i===s||c>d&&h<u}function Ze(e,t,n){return Math.max(t,Math.min(n,e))}function pF(e){return Ze(e,-32768,32767)}function ca(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function FI(e,t,n){n=n||(s=>e[s]<t);let o=e.length-1,r=0,i;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const rs=(e,t,n,o)=>FI(e,n,o?r=>{const i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),yF=(e,t,n)=>FI(e,n,o=>e[o][t]>=n);function fF(e,t,n){let o=0,r=e.length;for(;o<r&&e[o]<t;)o++;for(;r>o&&e[r-1]>n;)r--;return o>0||r<e.length?e.slice(o,r):e}const iV=["push","pop","shift","splice","unshift"];function mF(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iV.forEach(n=>{const o="_onData"+OI(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return e._chartjs.listeners.forEach(c=>{typeof c[o]=="function"&&c[o](...i)}),s}})})}function sV(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);r!==-1&&o.splice(r,1),!(o.length>0)&&(iV.forEach(i=>{delete e[i]}),delete e._chartjs)}function lV(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const cV=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function dV(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,cV.call(window,()=>{o=!1,e.apply(t,n)}))}}function kF(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}const NI=e=>e==="start"?"left":e==="end"?"right":"center",Ye=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,gF=(e,t,n,o)=>e===(o?"left":"right")?n:e==="center"?(t+n)/2:t;function bF(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:s,vScale:c,_parsed:d}=e,h=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=s.axis,{min:p,max:y,minDefined:f,maxDefined:m}=s.getUserBounds();if(f){if(r=Math.min(rs(d,u,p).lo,n?o:rs(t,u,s.getPixelForValue(p)).lo),h){const k=d.slice(0,r+1).reverse().findIndex(g=>!Se(g[c.axis]));r-=Math.max(0,k)}r=Ze(r,0,o-1)}if(m){let k=Math.max(rs(d,s.axis,y,!0).hi+1,n?0:rs(t,u,s.getPixelForValue(y),!0).hi+1);if(h){const g=d.slice(k-1).findIndex(x=>!Se(x[c.axis]));k+=Math.max(0,g)}i=Ze(k,r,o)-r}else i=o-r}return{start:r,count:i}}function MF(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}const XL=e=>e===0||e===1,hV=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Te/n)),uV=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Te/n)+1,Dl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*We)+1,easeOutSine:e=>Math.sin(e*We),easeInOutSine:e=>-.5*(Math.cos(Ae*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>XL(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>XL(e)?e:hV(e,.075,.3),easeOutElastic:e=>XL(e)?e:uV(e,.075,.3),easeInOutElastic(e){return XL(e)?e:e<.5?.5*hV(e*2,.1125,.45):.5+.5*uV(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Dl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Dl.easeInBounce(e*2)*.5:Dl.easeOutBounce(e*2-1)*.5+.5};function RI(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function pV(e){return RI(e)?e:new _l(e)}function $I(e){return RI(e)?e:new _l(e).saturate(.5).darken(.1).hexString()}const xF=["x","y","borderWidth","radius","tension"],wF=["color","borderColor","backgroundColor"];function vF(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:wF},numbers:{type:"number",properties:xF}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function CF(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const yV=new Map;function LF(e,t){t=t||{};const n=e+JSON.stringify(t);let o=yV.get(n);return o||(o=new Intl.NumberFormat(e,t),yV.set(n,o)),o}function UI(e,t,n){return LF(t,n).format(e)}const SF={values(e){return $e(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),i=IF(e,n)}const s=aV(Math.abs(i)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),UI(e,o,d)}};function IF(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var fV={formatters:SF};function _F(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:fV.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const is=Object.create(null),WI=Object.create(null);function El(e,t){if(!t)return e;const n=t.split(".");for(let o=0,r=n.length;o<r;++o){const i=n[o];e=e[i]||(e[i]=Object.create(null))}return e}function GI(e,t,n){return typeof t=="string"?Al(El(e,t),n):Al(El(e,""),t)}class AF{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,r)=>$I(r.backgroundColor),this.hoverBorderColor=(o,r)=>$I(r.borderColor),this.hoverColor=(o,r)=>$I(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return GI(this,t,n)}get(t){return El(this,t)}describe(t,n){return GI(WI,t,n)}override(t,n){return GI(is,t,n)}route(t,n,o,r){const i=El(this,t),s=El(this,o),c="_"+n;Object.defineProperties(i,{[c]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=s[r];return we(d)?Object.assign({},h,d):ge(d,h)},set(d){this[c]=d}}})}apply(t){t.forEach(n=>n(this))}}var Fe=new AF({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vF,CF,_F]);function BF(e){return!e||Se(e.size)||Se(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function mV(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function ss(e,t,n){const o=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function kV(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function KI(e,t,n,o){gV(e,t,n,o,null)}function gV(e,t,n,o,r){let i,s,c,d,h,u,p,y;const f=t.pointStyle,m=t.rotation,k=t.radius;let g=(m||0)*iF;if(f&&typeof f=="object"&&(i=f.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,o),e.rotate(g),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(k)||k<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,o,r/2,k,0,0,Te):e.arc(n,o,k,0,Te),e.closePath();break;case"triangle":u=r?r/2:k,e.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*k),g+=tV,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*k),g+=tV,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*k),e.closePath();break;case"rectRounded":h=k*.516,d=k-h,s=Math.cos(g+os)*d,p=Math.cos(g+os)*(r?r/2-h:d),c=Math.sin(g+os)*d,y=Math.sin(g+os)*(r?r/2-h:d),e.arc(n-p,o-c,h,g-Ae,g-We),e.arc(n+y,o-s,h,g-We,g),e.arc(n+p,o+c,h,g,g+We),e.arc(n-y,o+s,h,g+We,g+Ae),e.closePath();break;case"rect":if(!m){d=Math.SQRT1_2*k,u=r?r/2:d,e.rect(n-u,o-d,2*u,2*d);break}g+=os;case"rectRot":p=Math.cos(g)*(r?r/2:k),s=Math.cos(g)*k,c=Math.sin(g)*k,y=Math.sin(g)*(r?r/2:k),e.moveTo(n-p,o-c),e.lineTo(n+y,o-s),e.lineTo(n+p,o+c),e.lineTo(n-y,o+s),e.closePath();break;case"crossRot":g+=os;case"cross":p=Math.cos(g)*(r?r/2:k),s=Math.cos(g)*k,c=Math.sin(g)*k,y=Math.sin(g)*(r?r/2:k),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s);break;case"star":p=Math.cos(g)*(r?r/2:k),s=Math.cos(g)*k,c=Math.sin(g)*k,y=Math.sin(g)*(r?r/2:k),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s),g+=os,p=Math.cos(g)*(r?r/2:k),s=Math.cos(g)*k,c=Math.sin(g)*k,y=Math.sin(g)*(r?r/2:k),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s);break;case"line":s=r?r/2:Math.cos(g)*k,c=Math.sin(g)*k,e.moveTo(n-s,o-c),e.lineTo(n+s,o+c);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(g)*(r?r/2:k),o+Math.sin(g)*k);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Tl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function ZL(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function YL(e){e.restore()}function VF(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else r==="after"!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function zF(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function PF(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Se(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function qF(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),s=t-i.actualBoundingBoxLeft,c=t+i.actualBoundingBoxRight,d=n-i.actualBoundingBoxAscent,h=n+i.actualBoundingBoxDescent,u=r.strikethrough?(d+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(s,u),e.lineTo(c,u),e.stroke()}}function DF(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Hl(e,t,n,o,r,i={}){const s=$e(t)?t:[t],c=i.strokeWidth>0&&i.strokeColor!=="";let d,h;for(e.save(),e.font=r.string,PF(e,i),d=0;d<s.length;++d)h=s[d],i.backdrop&&DF(e,i.backdrop),c&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Se(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(h,n,o,i.maxWidth)),e.fillText(h,n,o,i.maxWidth),qF(e,n,o,h,i),o+=Number(r.lineHeight);e.restore()}function QL(e,t){const{x:n,y:o,w:r,h:i,radius:s}=t;e.arc(n+s.topLeft,o+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),e.lineTo(n,o+i-s.bottomLeft),e.arc(n+s.bottomLeft,o+i-s.bottomLeft,s.bottomLeft,Ae,We,!0),e.lineTo(n+r-s.bottomRight,o+i),e.arc(n+r-s.bottomRight,o+i-s.bottomRight,s.bottomRight,We,0,!0),e.lineTo(n+r,o+s.topRight),e.arc(n+r-s.topRight,o+s.topRight,s.topRight,0,-We,!0),e.lineTo(n+s.topLeft,o)}const EF=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,TF=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function HF(e,t){const n=(""+e).match(EF);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const OF=e=>+e||0;function XI(e,t){const n={},o=we(t),r=o?Object.keys(t):t,i=we(e)?o?s=>ge(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)n[s]=OF(i(s));return n}function bV(e){return XI(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ds(e){return XI(e,["topLeft","topRight","bottomLeft","bottomRight"])}function gt(e){const t=bV(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Qe(e,t){e=e||{},t=t||Fe.font;let n=ge(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let o=ge(e.style,t.style);o&&!(""+o).match(TF)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:ge(e.family,t.family),lineHeight:HF(ge(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:ge(e.weight,t.weight),string:""};return r.string=BF(r),r}function JL(e,t,n,o){let r,i,s;for(r=0,i=e.length;r<i;++r)if(s=e[r],s!==void 0&&s!==void 0)return s}function jF(e,t,n){const{min:o,max:r}=e,i=YB(t,(r-o)/2),s=(c,d)=>n&&c===0?0:c+d;return{min:s(o,-Math.abs(i)),max:s(r,i)}}function ls(e,t){return Object.assign(Object.create(e),t)}function ZI(e,t=[""],n,o,r=()=>e[0]){const i=n||e;typeof o>"u"&&(o=CV("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:c=>ZI([c,...e],t,i,o)};return new Proxy(s,{deleteProperty(c,d){return delete c[d],delete c._keys,delete e[0][d],!0},get(c,d){return xV(c,d,()=>KF(d,t,e,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(c,d){return LV(c).includes(d)},ownKeys(c){return LV(c)},set(c,d,h){const u=c._storage||(c._storage=r());return c[d]=u[d]=h,delete c._keys,!0}})}function Es(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:MV(e,o),setContext:i=>Es(e,i,n,o),override:i=>Es(e.override(i),t,n,o)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,c){return xV(i,s,()=>NF(i,s,c))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,c){return e[s]=c,delete i[s],!0}})}function MV(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:Aa(n)?n:()=>n,isIndexable:Aa(o)?o:()=>o}}const FF=(e,t)=>e?e+OI(t):t,YI=(e,t)=>we(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function xV(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const o=n();return e[t]=o,o}function NF(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:s}=e;let c=o[t];return Aa(c)&&s.isScriptable(t)&&(c=RF(t,c,e,n)),$e(c)&&c.length&&(c=$F(t,c,e,s.isIndexable)),YI(t,c)&&(c=Es(c,r,i&&i[t],s)),c}function RF(e,t,n,o){const{_proxy:r,_context:i,_subProxy:s,_stack:c}=n;if(c.has(e))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+e);c.add(e);let d=t(i,s||o);return c.delete(e),YI(e,d)&&(d=QI(r._scopes,r,e,d)),d}function $F(e,t,n,o){const{_proxy:r,_context:i,_subProxy:s,_descriptors:c}=n;if(typeof i.index<"u"&&o(e))return t[i.index%t.length];if(we(t[0])){const d=t,h=r._scopes.filter(u=>u!==d);t=[];for(const u of d){const p=QI(h,r,e,u);t.push(Es(p,i,s&&s[e],c))}}return t}function wV(e,t,n){return Aa(e)?e(t,n):e}const UF=(e,t)=>e===!0?t:typeof e=="string"?ns(t,e):void 0;function WF(e,t,n,o,r){for(const i of t){const s=UF(n,i);if(s){e.add(s);const c=wV(s._fallback,n,r);if(typeof c<"u"&&c!==n&&c!==o)return c}else if(s===!1&&typeof o<"u"&&n!==o)return null}return!1}function QI(e,t,n,o){const r=t._rootScopes,i=wV(t._fallback,n,o),s=[...e,...r],c=new Set;c.add(o);let d=vV(c,s,n,i||n,o);return d===null||typeof i<"u"&&i!==n&&(d=vV(c,s,i,d,o),d===null)?!1:ZI(Array.from(c),[""],r,i,()=>GF(t,n,o))}function vV(e,t,n,o,r){for(;n;)n=WF(e,t,n,o,r);return n}function GF(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];return $e(r)&&we(n)?n:r||{}}function KF(e,t,n,o){let r;for(const i of t)if(r=CV(FF(i,e),n),typeof r<"u")return YI(e,r)?QI(n,o,e,r):r}function CV(e,t){for(const n of t){if(!n)continue;const o=n[e];if(typeof o<"u")return o}}function LV(e){let t=e._keys;return t||(t=e._keys=XF(e._scopes)),t}function XF(e){const t=new Set;for(const n of e)for(const o of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(o);return Array.from(t)}const ZF=Number.EPSILON||1e-14,Ts=(e,t)=>t<e.length&&!e[t].skip&&e[t],SV=e=>e==="x"?"y":"x";function YF(e,t,n,o){const r=e.skip?t:e,i=t,s=n.skip?t:n,c=jI(i,r),d=jI(s,i);let h=c/(c+d),u=d/(c+d);h=isNaN(h)?0:h,u=isNaN(u)?0:u;const p=o*h,y=o*u;return{previous:{x:i.x-p*(s.x-r.x),y:i.y-p*(s.y-r.y)},next:{x:i.x+y*(s.x-r.x),y:i.y+y*(s.y-r.y)}}}function QF(e,t,n){const o=e.length;let r,i,s,c,d,h=Ts(e,0);for(let u=0;u<o-1;++u)if(d=h,h=Ts(e,u+1),!(!d||!h)){if(zl(t[u],0,ZF)){n[u]=n[u+1]=0;continue}r=n[u]/t[u],i=n[u+1]/t[u],c=Math.pow(r,2)+Math.pow(i,2),!(c<=9)&&(s=3/Math.sqrt(c),n[u]=r*s*t[u],n[u+1]=i*s*t[u])}}function JF(e,t,n="x"){const o=SV(n),r=e.length;let i,s,c,d=Ts(e,0);for(let h=0;h<r;++h){if(s=c,c=d,d=Ts(e,h+1),!c)continue;const u=c[n],p=c[o];s&&(i=(u-s[n])/3,c[`cp1${n}`]=u-i,c[`cp1${o}`]=p-i*t[h]),d&&(i=(d[n]-u)/3,c[`cp2${n}`]=u+i,c[`cp2${o}`]=p+i*t[h])}}function eN(e,t="x"){const n=SV(t),o=e.length,r=Array(o).fill(0),i=Array(o);let s,c,d,h=Ts(e,0);for(s=0;s<o;++s)if(c=d,d=h,h=Ts(e,s+1),!!d){if(h){const u=h[t]-d[t];r[s]=u!==0?(h[n]-d[n])/u:0}i[s]=c?h?Xt(r[s-1])!==Xt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}QF(e,r,i),JF(e,i,t)}function eS(e,t,n){return Math.max(Math.min(e,n),t)}function tN(e,t){let n,o,r,i,s,c=Tl(e[0],t);for(n=0,o=e.length;n<o;++n)s=i,i=c,c=n<o-1&&Tl(e[n+1],t),i&&(r=e[n],s&&(r.cp1x=eS(r.cp1x,t.left,t.right),r.cp1y=eS(r.cp1y,t.top,t.bottom)),c&&(r.cp2x=eS(r.cp2x,t.left,t.right),r.cp2y=eS(r.cp2y,t.top,t.bottom)))}function aN(e,t,n,o,r){let i,s,c,d;if(t.spanGaps&&(e=e.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")eN(e,r);else{let h=o?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)c=e[i],d=YF(h,c,e[Math.min(i+1,s-(o?0:1))%s],t.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}t.capBezierPoints&&tN(e,n)}function JI(){return typeof window<"u"&&typeof document<"u"}function e_(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function tS(e,t,n){let o;return typeof e=="string"?(o=parseInt(e,10),e.indexOf("%")!==-1&&(o=o/100*t.parentNode[n])):o=e,o}const aS=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function nN(e,t){return aS(e).getPropertyValue(t)}const oN=["top","right","bottom","left"];function cs(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=oN[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const rN=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function iN(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let s=!1,c,d;if(rN(r,i,e.target))c=r,d=i;else{const h=t.getBoundingClientRect();c=o.clientX-h.left,d=o.clientY-h.top,s=!0}return{x:c,y:d,box:s}}function ds(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=aS(n),i=r.boxSizing==="border-box",s=cs(r,"padding"),c=cs(r,"border","width"),{x:d,y:h,box:u}=iN(e,n),p=s.left+(u&&c.left),y=s.top+(u&&c.top);let{width:f,height:m}=t;return i&&(f-=s.width+c.width,m-=s.height+c.height),{x:Math.round((d-p)/f*n.width/o),y:Math.round((h-y)/m*n.height/o)}}function sN(e,t,n){let o,r;if(t===void 0||n===void 0){const i=e&&e_(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const s=i.getBoundingClientRect(),c=aS(i),d=cs(c,"border","width"),h=cs(c,"padding");t=s.width-h.width-d.width,n=s.height-h.height-d.height,o=tS(c.maxWidth,i,"clientWidth"),r=tS(c.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:o||KL,maxHeight:r||KL}}const Ba=e=>Math.round(e*10)/10;function lN(e,t,n,o){const r=aS(e),i=cs(r,"margin"),s=tS(r.maxWidth,e,"clientWidth")||KL,c=tS(r.maxHeight,e,"clientHeight")||KL,d=sN(e,t,n);let{width:h,height:u}=d;if(r.boxSizing==="content-box"){const y=cs(r,"border","width"),f=cs(r,"padding");h-=f.width+y.width,u-=f.height+y.height}return h=Math.max(0,h-i.width),u=Math.max(0,o?h/o:u-i.height),h=Ba(Math.min(h,s,d.maxWidth)),u=Ba(Math.min(u,c,d.maxHeight)),h&&!u&&(u=Ba(h/2)),(t!==void 0||n!==void 0)&&o&&d.height&&u>d.height&&(u=d.height,h=Ba(Math.floor(u*o))),{width:h,height:u}}function IV(e,t,n){const o=t||1,r=Ba(e.height*o),i=Ba(e.width*o);e.height=Ba(e.height),e.width=Ba(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==o||s.height!==r||s.width!==i?(e.currentDevicePixelRatio=o,s.height=r,s.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0):!1}const cN=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};JI()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function _V(e,t){const n=nN(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function hs(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function dN(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:o==="middle"?n<.5?e.y:t.y:o==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function hN(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=hs(e,r,n),c=hs(r,i,n),d=hs(i,t,n),h=hs(s,c,n),u=hs(c,d,n);return hs(h,u,n)}const uN=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},pN=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Hs(e,t,n){return e?uN(t,n):pN()}function AV(e,t){let n,o;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function BV(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function VV(e){return e==="angle"?{between:ql,compare:uF,normalize:dt}:{between:ca,compare:(t,n)=>t-n,normalize:t=>t}}function zV({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n===0,style:r}}function yN(e,t,n){const{property:o,start:r,end:i}=n,{between:s,normalize:c}=VV(o),d=t.length;let{start:h,end:u,loop:p}=e,y,f;if(p){for(h+=d,u+=d,y=0,f=d;y<f&&s(c(t[h%d][o]),r,i);++y)h--,u--;h%=d,u%=d}return u<h&&(u+=d),{start:h,end:u,loop:p,style:e.style}}function PV(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,s=t.length,{compare:c,between:d,normalize:h}=VV(o),{start:u,end:p,loop:y,style:f}=yN(e,t,n),m=[];let k=!1,g=null,x,C,v;const b=()=>d(r,v,x)&&c(r,v)!==0,L=()=>c(i,x)===0||d(i,v,x),S=()=>k||b(),M=()=>!k||L();for(let w=u,I=u;w<=p;++w)C=t[w%s],!C.skip&&(x=h(C[o]),x!==v&&(k=d(x,r,i),g===null&&S()&&(g=c(x,r)===0?w:I),g!==null&&M()&&(m.push(zV({start:g,end:w,loop:y,count:s,style:f})),g=null),I=w,v=x));return g!==null&&m.push(zV({start:g,end:p,loop:y,count:s,style:f})),m}function qV(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=PV(o[r],e.points,t);i.length&&n.push(...i)}return n}function fN(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}function mN(e,t,n,o){const r=e.length,i=[];let s=t,c=e[t],d;for(d=t+1;d<=n;++d){const h=e[d%r];h.skip||h.stop?c.skip||(o=!1,i.push({start:t%r,end:(d-1)%r,loop:o}),t=s=h.stop?d:null):(s=d,c.skip&&(t=d)),c=h}return s!==null&&i.push({start:t%r,end:s%r,loop:o}),i}function kN(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:s,end:c}=fN(n,r,i,o);if(o===!0)return DV(e,[{start:s,end:c,loop:i}],n,t);const d=c<s?c+r:c,h=!!e._fullLoop&&s===0&&c===r-1;return DV(e,mN(n,s,d,h),n,t)}function DV(e,t,n,o){return!o||!o.setContext||!n?t:gN(e,t,n,o)}function gN(e,t,n,o){const r=e._chart.getContext(),i=EV(e.options),{_datasetIndex:s,options:{spanGaps:c}}=e,d=n.length,h=[];let u=i,p=t[0].start,y=p;function f(m,k,g,x){const C=c?-1:1;if(m!==k){for(m+=d;n[m%d].skip;)m-=C;for(;n[k%d].skip;)k+=C;m%d!==k%d&&(h.push({start:m%d,end:k%d,loop:g,style:x}),u=x,p=k%d)}}for(const m of t){p=c?p:m.start;let k=n[p%d],g;for(y=p+1;y<=m.end;y++){const x=n[y%d];g=EV(o.setContext(ls(r,{type:"segment",p0:k,p1:x,p0DataIndex:(y-1)%d,p1DataIndex:y%d,datasetIndex:s}))),bN(g,u)&&f(p,y-1,m.loop,u),k=x,u=g}p<y-1&&f(p,y-1,m.loop,u)}return h}function EV(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function bN(e,t){if(!t)return!1;const n=[],o=function(r,i){return RI(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,o)!==JSON.stringify(t,o)}function nS(e,t,n){return e.options.clip?e[n]:t[n]}function MN(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:nS(n,t,"left"),right:nS(n,t,"right"),top:nS(o,t,"top"),bottom:nS(o,t,"bottom")}:t}function TV(e,t){const n=t._clip;if(n.disabled)return!1;const o=MN(t,e.chartArea);return{left:n.left===!1?0:o.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:o.right+(n.right===!0?0:n.right),top:n.top===!1?0:o.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:o.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
8512
|
+
*/function sa(){}const Qj=(()=>{let e=0;return()=>e++})();function Se(e){return e==null}function $e(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function we(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Xe(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Kt(e,t){return Xe(e)?e:t}function ge(e,t){return typeof e>"u"?t:e}const Jj=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,YB=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Pe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function _e(e,t,n,o){let r,i,s;if($e(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(we(e))for(s=Object.keys(e),i=s.length,r=0;r<i;r++)t.call(n,e[s[r]],s[r])}function WL(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function GL(e){if($e(e))return e.map(GL);if(we(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=GL(e[n[r]]);return t}return e}function QB(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function eF(e,t,n,o){if(!QB(e))return;const r=t[e],i=n[e];we(r)&&we(i)?Al(r,i,o):t[e]=GL(i)}function Al(e,t,n){const o=$e(t)?t:[t],r=o.length;if(!we(e))return e;n=n||{};const i=n.merger||eF;let s;for(let c=0;c<r;++c){if(s=o[c],!we(s))continue;const d=Object.keys(s);for(let h=0,u=d.length;h<u;++h)i(d[h],e,s,n)}return e}function Bl(e,t){return Al(e,t,{merger:tF})}function tF(e,t,n){if(!QB(e))return;const o=t[e],r=n[e];we(o)&&we(r)?Bl(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=GL(r))}const JB={"":e=>e,x:e=>e.x,y:e=>e.y};function aF(e){const t=e.split("."),n=[];let o="";for(const r of t)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function nF(e){const t=aF(e);return n=>{for(const o of t){if(o==="")break;n=n&&n[o]}return n}}function ns(e,t){return(JB[t]||(JB[t]=nF(t)))(e)}function OI(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vl=e=>typeof e<"u",Aa=e=>typeof e=="function",eV=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function oF(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ae=Math.PI,Te=2*Ae,rF=Te+Ae,KL=Number.POSITIVE_INFINITY,iF=Ae/180,We=Ae/2,os=Ae/4,tV=Ae*2/3,aV=Math.log10,Xt=Math.sign;function zl(e,t,n){return Math.abs(e-t)<n}function nV(e){const t=Math.round(e);e=zl(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(aV(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function sF(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(n|0)&&t.push(n),t.sort((r,i)=>r-i).pop(),t}function lF(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Pl(e){return!lF(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function cF(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function dF(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function la(e){return e*(Ae/180)}function hF(e){return e*(180/Ae)}function oV(e){if(!Xe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function rV(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*Ae&&(i+=Te),{angle:i,distance:r}}function jI(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function uF(e,t){return(e-t+rF)%Te-Ae}function dt(e){return(e%Te+Te)%Te}function ql(e,t,n,o){const r=dt(e),i=dt(t),s=dt(n),c=dt(i-r),d=dt(s-r),h=dt(r-i),u=dt(r-s);return r===i||r===s||o&&i===s||c>d&&h<u}function Ze(e,t,n){return Math.max(t,Math.min(n,e))}function pF(e){return Ze(e,-32768,32767)}function ca(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function FI(e,t,n){n=n||(s=>e[s]<t);let o=e.length-1,r=0,i;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const rs=(e,t,n,o)=>FI(e,n,o?r=>{const i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),yF=(e,t,n)=>FI(e,n,o=>e[o][t]>=n);function fF(e,t,n){let o=0,r=e.length;for(;o<r&&e[o]<t;)o++;for(;r>o&&e[r-1]>n;)r--;return o>0||r<e.length?e.slice(o,r):e}const iV=["push","pop","shift","splice","unshift"];function mF(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iV.forEach(n=>{const o="_onData"+OI(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return e._chartjs.listeners.forEach(c=>{typeof c[o]=="function"&&c[o](...i)}),s}})})}function sV(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);r!==-1&&o.splice(r,1),!(o.length>0)&&(iV.forEach(i=>{delete e[i]}),delete e._chartjs)}function lV(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const cV=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function dV(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,cV.call(window,()=>{o=!1,e.apply(t,n)}))}}function kF(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}const NI=e=>e==="start"?"left":e==="end"?"right":"center",Ye=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,gF=(e,t,n,o)=>e===(o?"left":"right")?n:e==="center"?(t+n)/2:t;function bF(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:s,vScale:c,_parsed:d}=e,h=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=s.axis,{min:p,max:y,minDefined:f,maxDefined:m}=s.getUserBounds();if(f){if(r=Math.min(rs(d,u,p).lo,n?o:rs(t,u,s.getPixelForValue(p)).lo),h){const g=d.slice(0,r+1).reverse().findIndex(k=>!Se(k[c.axis]));r-=Math.max(0,g)}r=Ze(r,0,o-1)}if(m){let g=Math.max(rs(d,s.axis,y,!0).hi+1,n?0:rs(t,u,s.getPixelForValue(y),!0).hi+1);if(h){const k=d.slice(g-1).findIndex(M=>!Se(M[c.axis]));g+=Math.max(0,k)}i=Ze(g,r,o)-r}else i=o-r}return{start:r,count:i}}function MF(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}const XL=e=>e===0||e===1,hV=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Te/n)),uV=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Te/n)+1,Dl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*We)+1,easeOutSine:e=>Math.sin(e*We),easeInOutSine:e=>-.5*(Math.cos(Ae*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>XL(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>XL(e)?e:hV(e,.075,.3),easeOutElastic:e=>XL(e)?e:uV(e,.075,.3),easeInOutElastic(e){return XL(e)?e:e<.5?.5*hV(e*2,.1125,.45):.5+.5*uV(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Dl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Dl.easeInBounce(e*2)*.5:Dl.easeOutBounce(e*2-1)*.5+.5};function RI(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function pV(e){return RI(e)?e:new _l(e)}function $I(e){return RI(e)?e:new _l(e).saturate(.5).darken(.1).hexString()}const xF=["x","y","borderWidth","radius","tension"],wF=["color","borderColor","backgroundColor"];function vF(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:wF},numbers:{type:"number",properties:xF}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function CF(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const yV=new Map;function LF(e,t){t=t||{};const n=e+JSON.stringify(t);let o=yV.get(n);return o||(o=new Intl.NumberFormat(e,t),yV.set(n,o)),o}function UI(e,t,n){return LF(t,n).format(e)}const SF={values(e){return $e(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),i=IF(e,n)}const s=aV(Math.abs(i)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(d,this.options.ticks.format),UI(e,o,d)}};function IF(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var fV={formatters:SF};function _F(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:fV.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const is=Object.create(null),WI=Object.create(null);function El(e,t){if(!t)return e;const n=t.split(".");for(let o=0,r=n.length;o<r;++o){const i=n[o];e=e[i]||(e[i]=Object.create(null))}return e}function GI(e,t,n){return typeof t=="string"?Al(El(e,t),n):Al(El(e,""),t)}class AF{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,r)=>$I(r.backgroundColor),this.hoverBorderColor=(o,r)=>$I(r.borderColor),this.hoverColor=(o,r)=>$I(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return GI(this,t,n)}get(t){return El(this,t)}describe(t,n){return GI(WI,t,n)}override(t,n){return GI(is,t,n)}route(t,n,o,r){const i=El(this,t),s=El(this,o),c="_"+n;Object.defineProperties(i,{[c]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const d=this[c],h=s[r];return we(d)?Object.assign({},h,d):ge(d,h)},set(d){this[c]=d}}})}apply(t){t.forEach(n=>n(this))}}var Fe=new AF({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vF,CF,_F]);function BF(e){return!e||Se(e.size)||Se(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function mV(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function ss(e,t,n){const o=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function kV(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function KI(e,t,n,o){gV(e,t,n,o,null)}function gV(e,t,n,o,r){let i,s,c,d,h,u,p,y;const f=t.pointStyle,m=t.rotation,g=t.radius;let k=(m||0)*iF;if(f&&typeof f=="object"&&(i=f.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,o),e.rotate(k),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,o,r/2,g,0,0,Te):e.arc(n,o,g,0,Te),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(k)*u,o-Math.cos(k)*g),k+=tV,e.lineTo(n+Math.sin(k)*u,o-Math.cos(k)*g),k+=tV,e.lineTo(n+Math.sin(k)*u,o-Math.cos(k)*g),e.closePath();break;case"rectRounded":h=g*.516,d=g-h,s=Math.cos(k+os)*d,p=Math.cos(k+os)*(r?r/2-h:d),c=Math.sin(k+os)*d,y=Math.sin(k+os)*(r?r/2-h:d),e.arc(n-p,o-c,h,k-Ae,k-We),e.arc(n+y,o-s,h,k-We,k),e.arc(n+p,o+c,h,k,k+We),e.arc(n-y,o+s,h,k+We,k+Ae),e.closePath();break;case"rect":if(!m){d=Math.SQRT1_2*g,u=r?r/2:d,e.rect(n-u,o-d,2*u,2*d);break}k+=os;case"rectRot":p=Math.cos(k)*(r?r/2:g),s=Math.cos(k)*g,c=Math.sin(k)*g,y=Math.sin(k)*(r?r/2:g),e.moveTo(n-p,o-c),e.lineTo(n+y,o-s),e.lineTo(n+p,o+c),e.lineTo(n-y,o+s),e.closePath();break;case"crossRot":k+=os;case"cross":p=Math.cos(k)*(r?r/2:g),s=Math.cos(k)*g,c=Math.sin(k)*g,y=Math.sin(k)*(r?r/2:g),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s);break;case"star":p=Math.cos(k)*(r?r/2:g),s=Math.cos(k)*g,c=Math.sin(k)*g,y=Math.sin(k)*(r?r/2:g),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s),k+=os,p=Math.cos(k)*(r?r/2:g),s=Math.cos(k)*g,c=Math.sin(k)*g,y=Math.sin(k)*(r?r/2:g),e.moveTo(n-p,o-c),e.lineTo(n+p,o+c),e.moveTo(n+y,o-s),e.lineTo(n-y,o+s);break;case"line":s=r?r/2:Math.cos(k)*g,c=Math.sin(k)*g,e.moveTo(n-s,o-c),e.lineTo(n+s,o+c);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(k)*(r?r/2:g),o+Math.sin(k)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Tl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function ZL(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function YL(e){e.restore()}function VF(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if(r==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else r==="after"!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function zF(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function PF(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Se(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function qF(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),s=t-i.actualBoundingBoxLeft,c=t+i.actualBoundingBoxRight,d=n-i.actualBoundingBoxAscent,h=n+i.actualBoundingBoxDescent,u=r.strikethrough?(d+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(s,u),e.lineTo(c,u),e.stroke()}}function DF(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Hl(e,t,n,o,r,i={}){const s=$e(t)?t:[t],c=i.strokeWidth>0&&i.strokeColor!=="";let d,h;for(e.save(),e.font=r.string,PF(e,i),d=0;d<s.length;++d)h=s[d],i.backdrop&&DF(e,i.backdrop),c&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Se(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(h,n,o,i.maxWidth)),e.fillText(h,n,o,i.maxWidth),qF(e,n,o,h,i),o+=Number(r.lineHeight);e.restore()}function QL(e,t){const{x:n,y:o,w:r,h:i,radius:s}=t;e.arc(n+s.topLeft,o+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),e.lineTo(n,o+i-s.bottomLeft),e.arc(n+s.bottomLeft,o+i-s.bottomLeft,s.bottomLeft,Ae,We,!0),e.lineTo(n+r-s.bottomRight,o+i),e.arc(n+r-s.bottomRight,o+i-s.bottomRight,s.bottomRight,We,0,!0),e.lineTo(n+r,o+s.topRight),e.arc(n+r-s.topRight,o+s.topRight,s.topRight,0,-We,!0),e.lineTo(n+s.topLeft,o)}const EF=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,TF=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function HF(e,t){const n=(""+e).match(EF);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const OF=e=>+e||0;function XI(e,t){const n={},o=we(t),r=o?Object.keys(t):t,i=we(e)?o?s=>ge(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of r)n[s]=OF(i(s));return n}function bV(e){return XI(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ds(e){return XI(e,["topLeft","topRight","bottomLeft","bottomRight"])}function gt(e){const t=bV(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Qe(e,t){e=e||{},t=t||Fe.font;let n=ge(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let o=ge(e.style,t.style);o&&!(""+o).match(TF)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:ge(e.family,t.family),lineHeight:HF(ge(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:ge(e.weight,t.weight),string:""};return r.string=BF(r),r}function JL(e,t,n,o){let r,i,s;for(r=0,i=e.length;r<i;++r)if(s=e[r],s!==void 0&&s!==void 0)return s}function jF(e,t,n){const{min:o,max:r}=e,i=YB(t,(r-o)/2),s=(c,d)=>n&&c===0?0:c+d;return{min:s(o,-Math.abs(i)),max:s(r,i)}}function ls(e,t){return Object.assign(Object.create(e),t)}function ZI(e,t=[""],n,o,r=()=>e[0]){const i=n||e;typeof o>"u"&&(o=CV("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:c=>ZI([c,...e],t,i,o)};return new Proxy(s,{deleteProperty(c,d){return delete c[d],delete c._keys,delete e[0][d],!0},get(c,d){return xV(c,d,()=>KF(d,t,e,c))},getOwnPropertyDescriptor(c,d){return Reflect.getOwnPropertyDescriptor(c._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(c,d){return LV(c).includes(d)},ownKeys(c){return LV(c)},set(c,d,h){const u=c._storage||(c._storage=r());return c[d]=u[d]=h,delete c._keys,!0}})}function Es(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:MV(e,o),setContext:i=>Es(e,i,n,o),override:i=>Es(e.override(i),t,n,o)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,c){return xV(i,s,()=>NF(i,s,c))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,c){return e[s]=c,delete i[s],!0}})}function MV(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:Aa(n)?n:()=>n,isIndexable:Aa(o)?o:()=>o}}const FF=(e,t)=>e?e+OI(t):t,YI=(e,t)=>we(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function xV(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const o=n();return e[t]=o,o}function NF(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:s}=e;let c=o[t];return Aa(c)&&s.isScriptable(t)&&(c=RF(t,c,e,n)),$e(c)&&c.length&&(c=$F(t,c,e,s.isIndexable)),YI(t,c)&&(c=Es(c,r,i&&i[t],s)),c}function RF(e,t,n,o){const{_proxy:r,_context:i,_subProxy:s,_stack:c}=n;if(c.has(e))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+e);c.add(e);let d=t(i,s||o);return c.delete(e),YI(e,d)&&(d=QI(r._scopes,r,e,d)),d}function $F(e,t,n,o){const{_proxy:r,_context:i,_subProxy:s,_descriptors:c}=n;if(typeof i.index<"u"&&o(e))return t[i.index%t.length];if(we(t[0])){const d=t,h=r._scopes.filter(u=>u!==d);t=[];for(const u of d){const p=QI(h,r,e,u);t.push(Es(p,i,s&&s[e],c))}}return t}function wV(e,t,n){return Aa(e)?e(t,n):e}const UF=(e,t)=>e===!0?t:typeof e=="string"?ns(t,e):void 0;function WF(e,t,n,o,r){for(const i of t){const s=UF(n,i);if(s){e.add(s);const c=wV(s._fallback,n,r);if(typeof c<"u"&&c!==n&&c!==o)return c}else if(s===!1&&typeof o<"u"&&n!==o)return null}return!1}function QI(e,t,n,o){const r=t._rootScopes,i=wV(t._fallback,n,o),s=[...e,...r],c=new Set;c.add(o);let d=vV(c,s,n,i||n,o);return d===null||typeof i<"u"&&i!==n&&(d=vV(c,s,i,d,o),d===null)?!1:ZI(Array.from(c),[""],r,i,()=>GF(t,n,o))}function vV(e,t,n,o,r){for(;n;)n=WF(e,t,n,o,r);return n}function GF(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];return $e(r)&&we(n)?n:r||{}}function KF(e,t,n,o){let r;for(const i of t)if(r=CV(FF(i,e),n),typeof r<"u")return YI(e,r)?QI(n,o,e,r):r}function CV(e,t){for(const n of t){if(!n)continue;const o=n[e];if(typeof o<"u")return o}}function LV(e){let t=e._keys;return t||(t=e._keys=XF(e._scopes)),t}function XF(e){const t=new Set;for(const n of e)for(const o of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(o);return Array.from(t)}const ZF=Number.EPSILON||1e-14,Ts=(e,t)=>t<e.length&&!e[t].skip&&e[t],SV=e=>e==="x"?"y":"x";function YF(e,t,n,o){const r=e.skip?t:e,i=t,s=n.skip?t:n,c=jI(i,r),d=jI(s,i);let h=c/(c+d),u=d/(c+d);h=isNaN(h)?0:h,u=isNaN(u)?0:u;const p=o*h,y=o*u;return{previous:{x:i.x-p*(s.x-r.x),y:i.y-p*(s.y-r.y)},next:{x:i.x+y*(s.x-r.x),y:i.y+y*(s.y-r.y)}}}function QF(e,t,n){const o=e.length;let r,i,s,c,d,h=Ts(e,0);for(let u=0;u<o-1;++u)if(d=h,h=Ts(e,u+1),!(!d||!h)){if(zl(t[u],0,ZF)){n[u]=n[u+1]=0;continue}r=n[u]/t[u],i=n[u+1]/t[u],c=Math.pow(r,2)+Math.pow(i,2),!(c<=9)&&(s=3/Math.sqrt(c),n[u]=r*s*t[u],n[u+1]=i*s*t[u])}}function JF(e,t,n="x"){const o=SV(n),r=e.length;let i,s,c,d=Ts(e,0);for(let h=0;h<r;++h){if(s=c,c=d,d=Ts(e,h+1),!c)continue;const u=c[n],p=c[o];s&&(i=(u-s[n])/3,c[`cp1${n}`]=u-i,c[`cp1${o}`]=p-i*t[h]),d&&(i=(d[n]-u)/3,c[`cp2${n}`]=u+i,c[`cp2${o}`]=p+i*t[h])}}function eN(e,t="x"){const n=SV(t),o=e.length,r=Array(o).fill(0),i=Array(o);let s,c,d,h=Ts(e,0);for(s=0;s<o;++s)if(c=d,d=h,h=Ts(e,s+1),!!d){if(h){const u=h[t]-d[t];r[s]=u!==0?(h[n]-d[n])/u:0}i[s]=c?h?Xt(r[s-1])!==Xt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}QF(e,r,i),JF(e,i,t)}function eS(e,t,n){return Math.max(Math.min(e,n),t)}function tN(e,t){let n,o,r,i,s,c=Tl(e[0],t);for(n=0,o=e.length;n<o;++n)s=i,i=c,c=n<o-1&&Tl(e[n+1],t),i&&(r=e[n],s&&(r.cp1x=eS(r.cp1x,t.left,t.right),r.cp1y=eS(r.cp1y,t.top,t.bottom)),c&&(r.cp2x=eS(r.cp2x,t.left,t.right),r.cp2y=eS(r.cp2y,t.top,t.bottom)))}function aN(e,t,n,o,r){let i,s,c,d;if(t.spanGaps&&(e=e.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")eN(e,r);else{let h=o?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)c=e[i],d=YF(h,c,e[Math.min(i+1,s-(o?0:1))%s],t.tension),c.cp1x=d.previous.x,c.cp1y=d.previous.y,c.cp2x=d.next.x,c.cp2y=d.next.y,h=c}t.capBezierPoints&&tN(e,n)}function JI(){return typeof window<"u"&&typeof document<"u"}function e_(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function tS(e,t,n){let o;return typeof e=="string"?(o=parseInt(e,10),e.indexOf("%")!==-1&&(o=o/100*t.parentNode[n])):o=e,o}const aS=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function nN(e,t){return aS(e).getPropertyValue(t)}const oN=["top","right","bottom","left"];function cs(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=oN[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const rN=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function iN(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let s=!1,c,d;if(rN(r,i,e.target))c=r,d=i;else{const h=t.getBoundingClientRect();c=o.clientX-h.left,d=o.clientY-h.top,s=!0}return{x:c,y:d,box:s}}function ds(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=aS(n),i=r.boxSizing==="border-box",s=cs(r,"padding"),c=cs(r,"border","width"),{x:d,y:h,box:u}=iN(e,n),p=s.left+(u&&c.left),y=s.top+(u&&c.top);let{width:f,height:m}=t;return i&&(f-=s.width+c.width,m-=s.height+c.height),{x:Math.round((d-p)/f*n.width/o),y:Math.round((h-y)/m*n.height/o)}}function sN(e,t,n){let o,r;if(t===void 0||n===void 0){const i=e&&e_(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const s=i.getBoundingClientRect(),c=aS(i),d=cs(c,"border","width"),h=cs(c,"padding");t=s.width-h.width-d.width,n=s.height-h.height-d.height,o=tS(c.maxWidth,i,"clientWidth"),r=tS(c.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:o||KL,maxHeight:r||KL}}const Ba=e=>Math.round(e*10)/10;function lN(e,t,n,o){const r=aS(e),i=cs(r,"margin"),s=tS(r.maxWidth,e,"clientWidth")||KL,c=tS(r.maxHeight,e,"clientHeight")||KL,d=sN(e,t,n);let{width:h,height:u}=d;if(r.boxSizing==="content-box"){const y=cs(r,"border","width"),f=cs(r,"padding");h-=f.width+y.width,u-=f.height+y.height}return h=Math.max(0,h-i.width),u=Math.max(0,o?h/o:u-i.height),h=Ba(Math.min(h,s,d.maxWidth)),u=Ba(Math.min(u,c,d.maxHeight)),h&&!u&&(u=Ba(h/2)),(t!==void 0||n!==void 0)&&o&&d.height&&u>d.height&&(u=d.height,h=Ba(Math.floor(u*o))),{width:h,height:u}}function IV(e,t,n){const o=t||1,r=Ba(e.height*o),i=Ba(e.width*o);e.height=Ba(e.height),e.width=Ba(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==o||s.height!==r||s.width!==i?(e.currentDevicePixelRatio=o,s.height=r,s.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0):!1}const cN=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};JI()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function _V(e,t){const n=nN(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function hs(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function dN(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:o==="middle"?n<.5?e.y:t.y:o==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function hN(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=hs(e,r,n),c=hs(r,i,n),d=hs(i,t,n),h=hs(s,c,n),u=hs(c,d,n);return hs(h,u,n)}const uN=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},pN=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Hs(e,t,n){return e?uN(t,n):pN()}function AV(e,t){let n,o;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function BV(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function VV(e){return e==="angle"?{between:ql,compare:uF,normalize:dt}:{between:ca,compare:(t,n)=>t-n,normalize:t=>t}}function zV({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n===0,style:r}}function yN(e,t,n){const{property:o,start:r,end:i}=n,{between:s,normalize:c}=VV(o),d=t.length;let{start:h,end:u,loop:p}=e,y,f;if(p){for(h+=d,u+=d,y=0,f=d;y<f&&s(c(t[h%d][o]),r,i);++y)h--,u--;h%=d,u%=d}return u<h&&(u+=d),{start:h,end:u,loop:p,style:e.style}}function PV(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,s=t.length,{compare:c,between:d,normalize:h}=VV(o),{start:u,end:p,loop:y,style:f}=yN(e,t,n),m=[];let g=!1,k=null,M,w,x;const b=()=>d(r,x,M)&&c(r,x)!==0,C=()=>c(i,M)===0||d(i,x,M),S=()=>g||b(),L=()=>!g||C();for(let v=u,I=u;v<=p;++v)w=t[v%s],!w.skip&&(M=h(w[o]),M!==x&&(g=d(M,r,i),k===null&&S()&&(k=c(M,r)===0?v:I),k!==null&&L()&&(m.push(zV({start:k,end:v,loop:y,count:s,style:f})),k=null),I=v,x=M));return k!==null&&m.push(zV({start:k,end:p,loop:y,count:s,style:f})),m}function qV(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=PV(o[r],e.points,t);i.length&&n.push(...i)}return n}function fN(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}function mN(e,t,n,o){const r=e.length,i=[];let s=t,c=e[t],d;for(d=t+1;d<=n;++d){const h=e[d%r];h.skip||h.stop?c.skip||(o=!1,i.push({start:t%r,end:(d-1)%r,loop:o}),t=s=h.stop?d:null):(s=d,c.skip&&(t=d)),c=h}return s!==null&&i.push({start:t%r,end:s%r,loop:o}),i}function kN(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:s,end:c}=fN(n,r,i,o);if(o===!0)return DV(e,[{start:s,end:c,loop:i}],n,t);const d=c<s?c+r:c,h=!!e._fullLoop&&s===0&&c===r-1;return DV(e,mN(n,s,d,h),n,t)}function DV(e,t,n,o){return!o||!o.setContext||!n?t:gN(e,t,n,o)}function gN(e,t,n,o){const r=e._chart.getContext(),i=EV(e.options),{_datasetIndex:s,options:{spanGaps:c}}=e,d=n.length,h=[];let u=i,p=t[0].start,y=p;function f(m,g,k,M){const w=c?-1:1;if(m!==g){for(m+=d;n[m%d].skip;)m-=w;for(;n[g%d].skip;)g+=w;m%d!==g%d&&(h.push({start:m%d,end:g%d,loop:k,style:M}),u=M,p=g%d)}}for(const m of t){p=c?p:m.start;let g=n[p%d],k;for(y=p+1;y<=m.end;y++){const M=n[y%d];k=EV(o.setContext(ls(r,{type:"segment",p0:g,p1:M,p0DataIndex:(y-1)%d,p1DataIndex:y%d,datasetIndex:s}))),bN(k,u)&&f(p,y-1,m.loop,u),g=M,u=k}p<y-1&&f(p,y-1,m.loop,u)}return h}function EV(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function bN(e,t){if(!t)return!1;const n=[],o=function(r,i){return RI(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,o)!==JSON.stringify(t,o)}function nS(e,t,n){return e.options.clip?e[n]:t[n]}function MN(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:nS(n,t,"left"),right:nS(n,t,"right"),top:nS(o,t,"top"),bottom:nS(o,t,"bottom")}:t}function TV(e,t){const n=t._clip;if(n.disabled)return!1;const o=MN(t,e.chartArea);return{left:n.left===!1?0:o.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:o.right+(n.right===!0?0:n.right),top:n.top===!1?0:o.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:o.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
8513
8513
|
* Chart.js v4.5.1
|
|
8514
8514
|
* https://www.chartjs.org
|
|
8515
8515
|
* (c) 2025 Chart.js Contributors
|
|
8516
8516
|
* Released under the MIT License
|
|
8517
|
-
*/class xN{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,o,r){const i=n.listeners[r],s=n.duration;i.forEach(c=>c({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=cV.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((o,r)=>{if(!o.running||!o.items.length)return;const i=o.items;let s=i.length-1,c=!1,d;for(;s>=0;--s)d=i[s],d._active?(d._total>o.duration&&(o.duration=d._total),d.tick(t),c=!0):(i[s]=i[i.length-1],i.pop());c&&(r.draw(),this._notify(r,o,t,"progress")),i.length||(o.running=!1,this._notify(r,o,t,"complete"),o.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let o=n.get(t);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,o)),o}listen(t,n,o){this._getAnims(t).listeners[n].push(o)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,r)=>Math.max(o,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const o=n.items;let r=o.length-1;for(;r>=0;--r)o[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var da=new xN;const HV="transparent",wN={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const o=pV(e||HV),r=o.valid&&pV(t||HV);return r&&r.valid?r.mix(o,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class vN{constructor(t,n,o,r){const i=n[o];r=JL([t.to,r,i,t.from]);const s=JL([t.from,i,r]);this._active=!0,this._fn=t.fn||wN[t.type||typeof s],this._easing=Dl[t.easing]||Dl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=o,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,o){if(this._active){this._notify(!1);const r=this._target[this._prop],i=o-this._start,s=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=JL([t.to,n,r,t.from]),this._from=JL([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,o=this._duration,r=this._prop,i=this._from,s=this._loop,c=this._to;let d;if(this._active=i!==c&&(s||n<o),!this._active){this._target[r]=c,this._notify(!0);return}if(n<0){this._target[r]=i;return}d=n/o%2,d=s&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[r]=this._fn(i,c,d)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,o)=>{t.push({res:n,rej:o})})}_notify(t){const n=t?"res":"rej",o=this._promises||[];for(let r=0;r<o.length;r++)o[r][n]()}}class OV{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!we(t))return;const n=Object.keys(Fe.animation),o=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!we(i))return;const s={};for(const c of n)s[c]=i[c];($e(i.properties)&&i.properties||[r]).forEach(c=>{(c===r||!o.has(c))&&o.set(c,s)})})}_animateOptions(t,n){const o=n.options,r=LN(t,o);if(!r)return[];const i=this._createAnimations(r,o);return o.$shared&&CN(t.options.$animations,o).then(()=>{t.options=o},()=>{}),i}_createAnimations(t,n){const o=this._properties,r=[],i=t.$animations||(t.$animations={}),s=Object.keys(n),c=Date.now();let d;for(d=s.length-1;d>=0;--d){const h=s[d];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(t,n));continue}const u=n[h];let p=i[h];const y=o.get(h);if(p)if(y&&p.active()){p.update(y,u,c);continue}else p.cancel();if(!y||!y.duration){t[h]=u;continue}i[h]=p=new vN(y,t,h,u),r.push(p)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const o=this._createAnimations(t,n);if(o.length)return da.add(this._chart,o),!0}}function CN(e,t){const n=[],o=Object.keys(t);for(let r=0;r<o.length;r++){const i=e[o[r]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function LN(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function jV(e,t){const n=e&&e.options||{},o=n.reverse,r=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:o?i:r,end:o?r:i}}function SN(e,t,n){if(n===!1)return!1;const o=jV(e,n),r=jV(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}function IN(e){let t,n,o,r;return we(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:e===!1}}function FV(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function NV(e,t,n,o={}){const r=e.keys,i=o.mode==="single";let s,c,d,h;if(t===null)return;let u=!1;for(s=0,c=r.length;s<c;++s){if(d=+r[s],d===n){if(u=!0,o.all)continue;break}h=e.values[d],Xe(h)&&(i||t===0||Xt(t)===Xt(h))&&(t+=h)}return!u&&!o.all?0:t}function _N(e,t){const{iScale:n,vScale:o}=t,r=n.axis==="x"?"x":"y",i=o.axis==="x"?"x":"y",s=Object.keys(e),c=new Array(s.length);let d,h,u;for(d=0,h=s.length;d<h;++d)u=s[d],c[d]={[r]:u,[i]:e[u]};return c}function t_(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function AN(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function BN(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function VN(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function RV(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const i=e[r.index];if(n&&i>0||!n&&i<0)return r.index}return null}function $V(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:c}=o,d=i.axis,h=s.axis,u=AN(i,s,o),p=t.length;let y;for(let f=0;f<p;++f){const m=t[f],{[d]:k,[h]:g}=m,x=m._stacks||(m._stacks={});y=x[h]=VN(r,u,k),y[c]=g,y._top=RV(y,s,!0,o.type),y._bottom=RV(y,s,!1,o.type);const C=y._visualValues||(y._visualValues={});C[c]=g}}function a_(e,t){const n=e.scales;return Object.keys(n).filter(o=>n[o].axis===t).shift()}function zN(e,t){return ls(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function PN(e,t,n){return ls(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ol(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const r of t){const i=r._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const n_=e=>e==="reset"||e==="none",UV=(e,t)=>t?e:Object.assign({},e),qN=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:FV(n,!0),values:null};class us{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=t_(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ol(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,o=this.getDataset(),r=(p,y,f,m)=>p==="x"?y:p==="r"?m:f,i=n.xAxisID=ge(o.xAxisID,a_(t,"x")),s=n.yAxisID=ge(o.yAxisID,a_(t,"y")),c=n.rAxisID=ge(o.rAxisID,a_(t,"r")),d=n.indexAxis,h=n.iAxisID=r(d,i,s,c),u=n.vAxisID=r(d,s,i,c);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&sV(this._data,this),t._stacked&&Ol(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),o=this._data;if(we(n)){const r=this._cachedMeta;this._data=_N(n,r)}else if(o!==n){if(o){sV(o,this);const r=this._cachedMeta;Ol(r),r._parsed=[]}n&&Object.isExtensible(n)&&mF(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,o=this.getDataset();let r=!1;this._dataCheck();const i=n._stacked;n._stacked=t_(n.vScale,n),n.stack!==o.stack&&(r=!0,Ol(n),n.stack=o.stack),this._resyncElements(t),(r||i!==n._stacked)&&($V(this,n._parsed),n._stacked=t_(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),o=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:o,_data:r}=this,{iScale:i,_stacked:s}=o,c=i.axis;let d=t===0&&n===r.length?!0:o._sorted,h=t>0&&o._parsed[t-1],u,p,y;if(this._parsing===!1)o._parsed=r,o._sorted=!0,y=r;else{$e(r[t])?y=this.parseArrayData(o,r,t,n):we(r[t])?y=this.parseObjectData(o,r,t,n):y=this.parsePrimitiveData(o,r,t,n);const f=()=>p[c]===null||h&&p[c]<h[c];for(u=0;u<n;++u)o._parsed[u+t]=p=y[u],d&&(f()&&(d=!1),h=p);o._sorted=d}s&&$V(this,y)}parsePrimitiveData(t,n,o,r){const{iScale:i,vScale:s}=t,c=i.axis,d=s.axis,h=i.getLabels(),u=i===s,p=new Array(r);let y,f,m;for(y=0,f=r;y<f;++y)m=y+o,p[y]={[c]:u||i.parse(h[m],m),[d]:s.parse(n[m],m)};return p}parseArrayData(t,n,o,r){const{xScale:i,yScale:s}=t,c=new Array(r);let d,h,u,p;for(d=0,h=r;d<h;++d)u=d+o,p=n[u],c[d]={x:i.parse(p[0],u),y:s.parse(p[1],u)};return c}parseObjectData(t,n,o,r){const{xScale:i,yScale:s}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(r);let u,p,y,f;for(u=0,p=r;u<p;++u)y=u+o,f=n[y],h[u]={x:i.parse(ns(f,c),y),y:s.parse(ns(f,d),y)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,o){const r=this.chart,i=this._cachedMeta,s=n[t.axis],c={keys:FV(r,!0),values:n._stacks[t.axis]._visualValues};return NV(c,s,i.index,{mode:o})}updateRangeFromParsed(t,n,o,r){const i=o[n.axis];let s=i===null?NaN:i;const c=r&&o._stacks[n.axis];r&&c&&(r.values=c,s=NV(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const o=this._cachedMeta,r=o._parsed,i=o._sorted&&t===o.iScale,s=r.length,c=this._getOtherScale(t),d=qN(n,o,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:p}=BN(c);let y,f;function m(){f=r[y];const k=f[c.axis];return!Xe(f[t.axis])||u>k||p<k}for(y=0;y<s&&!(!m()&&(this.updateRangeFromParsed(h,t,f,d),i));++y);if(i){for(y=s-1;y>=0;--y)if(!m()){this.updateRangeFromParsed(h,t,f,d);break}}return h}getAllParsedValues(t){const n=this._cachedMeta._parsed,o=[];let r,i,s;for(r=0,i=n.length;r<i;++r)s=n[r][t.axis],Xe(s)&&o.push(s);return o}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,o=n.iScale,r=n.vScale,i=this.getParsed(t);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=IN(ge(this.options.clip,SN(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,o=this._cachedMeta,r=o.data||[],i=n.chartArea,s=[],c=this._drawStart||0,d=this._drawCount||r.length-c,h=this.options.drawActiveElementsOnTop;let u;for(o.dataset&&o.dataset.draw(t,i,c,d),u=c;u<c+d;++u){const p=r[u];p.hidden||(p.active&&h?s.push(p):p.draw(t,i))}for(u=0;u<s.length;++u)s[u].draw(t,i)}getStyle(t,n){const o=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(t||0,o)}getContext(t,n,o){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=PN(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=zN(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",o){const r=n==="active",i=this._cachedDataOpts,s=t+"-"+n,c=i[s],d=this.enableOptionSharing&&Vl(o);if(c)return UV(c,d);const h=this.chart.config,u=h.datasetElementScopeKeys(this._type,t),p=r?[`${t}Hover`,"hover",t,""]:[t,""],y=h.getOptionScopes(this.getDataset(),u),f=Object.keys(Fe.elements[t]),m=()=>this.getContext(o,r,n),k=h.resolveNamedOptions(y,f,m,p);return k.$shared&&(k.$shared=d,i[s]=Object.freeze(UV(k,d))),k}_resolveAnimations(t,n,o){const r=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,c=i[s];if(c)return c;let d;if(r.options.animation!==!1){const u=this.chart.config,p=u.datasetAnimationScopeKeys(this._type,n),y=u.getOptionScopes(this.getDataset(),p);d=u.createResolver(y,this.getContext(t,o,n))}const h=new OV(r,d&&d.animations);return d&&d._cacheable&&(i[s]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||n_(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const o=this.resolveDataElementOptions(t,n),r=this._sharedOptions,i=this.getSharedOptions(o),s=this.includeOptions(n,i)||i!==r;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:s}}updateElement(t,n,o,r){n_(r)?Object.assign(t,o):this._resolveAnimations(n,r).update(t,o)}updateSharedOptions(t,n,o){t&&!n_(n)&&this._resolveAnimations(void 0,n).update(t,o)}_setStyle(t,n,o,r){t.active=r;const i=this.getStyle(n,r);this._resolveAnimations(n,o,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,o){this._setStyle(t,o,"active",!1)}setHoverStyle(t,n,o){this._setStyle(t,o,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,o=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const r=o.length,i=n.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,n,o=!0){const r=this._cachedMeta,i=r.data,s=t+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=s;c--)h[c]=h[c-n]};for(d(i),c=t;c<s;++c)i[c]=new this.dataElementType;this._parsing&&d(r._parsed),this.parse(t,n),o&&this.updateElements(i,t,n,"reset")}updateElements(t,n,o,r){}_removeElements(t,n){const o=this._cachedMeta;if(this._parsing){const r=o._parsed.splice(t,n);o._stacked&&Ol(o,r)}o.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,o,r]=t;this[n](o,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",t,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}le(us,"defaults",{}),le(us,"datasetElementType",null),le(us,"dataElementType",null);function DN(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let r=0,i=n.length;r<i;r++)o=o.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=lV(o.sort((r,i)=>r-i))}return e._cache.$bar}function EN(e){const t=e.iScale,n=DN(t,e.type);let o=t._length,r,i,s,c;const d=()=>{s===32767||s===-32768||(Vl(c)&&(o=Math.min(o,Math.abs(s-c)||o)),c=s)};for(r=0,i=n.length;r<i;++r)s=t.getPixelForValue(n[r]),d();for(c=void 0,r=0,i=t.ticks.length;r<i;++r)s=t.getPixelForTick(r),d();return o}function TN(e,t,n,o){const r=n.barThickness;let i,s;return Se(r)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=r*o,s=1),{chunk:i/o,ratio:s,start:t.pixels[e]-i/2}}function HN(e,t,n,o){const r=t.pixels,i=r[e];let s=e>0?r[e-1]:null,c=e<r.length-1?r[e+1]:null;const d=n.categoryPercentage;s===null&&(s=i-(c===null?t.end-t.start:c-i)),c===null&&(c=i+i-s);const h=i-(i-Math.min(s,c))/2*d;return{chunk:Math.abs(c-s)/2*d/o,ratio:n.barPercentage,start:h}}function ON(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),s=Math.min(r,i),c=Math.max(r,i);let d=s,h=c;Math.abs(s)>Math.abs(c)&&(d=c,h=s),t[n.axis]=h,t._custom={barStart:d,barEnd:h,start:r,end:i,min:s,max:c}}function WV(e,t,n,o){return $e(e)?ON(e,t,n,o):t[n.axis]=n.parse(e,o),t}function GV(e,t,n,o){const r=e.iScale,i=e.vScale,s=r.getLabels(),c=r===i,d=[];let h,u,p,y;for(h=n,u=n+o;h<u;++h)y=t[h],p={},p[r.axis]=c||r.parse(s[h],h),d.push(WV(y,p,i,h));return d}function o_(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function jN(e,t,n){return e!==0?Xt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function FN(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}function NN(e,t,n,o){let r=t.borderSkipped;const i={};if(!r){e.borderSkipped=i;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:c,reverse:d,top:h,bottom:u}=FN(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=h:(n._bottom||0)===o?r=u:(i[KV(u,s,c,d)]=!0,r=h)),i[KV(r,s,c,d)]=!0,e.borderSkipped=i}function KV(e,t,n,o){return o?(e=RN(e,t,n),e=XV(e,n,t)):e=XV(e,t,n),e}function RN(e,t,n){return e===t?n:e===n?t:e}function XV(e,t,n){return e==="start"?t:e==="end"?n:e}function $N(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class oS extends us{parsePrimitiveData(t,n,o,r){return GV(t,n,o,r)}parseArrayData(t,n,o,r){return GV(t,n,o,r)}parseObjectData(t,n,o,r){const{iScale:i,vScale:s}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=i.axis==="x"?c:d,u=s.axis==="x"?c:d,p=[];let y,f,m,k;for(y=o,f=o+r;y<f;++y)k=n[y],m={},m[i.axis]=i.parse(ns(k,h),y),p.push(WV(ns(k,u),m,s,y));return p}updateRangeFromParsed(t,n,o,r){super.updateRangeFromParsed(t,n,o,r);const i=o._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:o,vScale:r}=n,i=this.getParsed(t),s=i._custom,c=o_(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,o,r){const i=r==="reset",{index:s,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),u=this._getRuler(),{sharedOptions:p,includeOptions:y}=this._getSharedOptions(n,r);for(let f=n;f<n+o;f++){const m=this.getParsed(f),k=i||Se(m[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,u),x=(m._stacks||{})[c.axis],C={horizontal:h,base:k.base,enableBorderRadius:!x||o_(m._custom)||s===x._top||s===x._bottom,x:h?k.head:g.center,y:h?g.center:k.head,height:h?g.size:Math.abs(k.size),width:h?Math.abs(k.size):g.size};y&&(C.options=p||this.resolveDataElementOptions(f,t[f].active?"active":r));const v=C.options||t[f].options;NN(C,v,x,s),$N(C,v,u.ratio),this.updateElement(t[f],f,C,r)}}_getStacks(t,n){const{iScale:o}=this._cachedMeta,r=o.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=o.options.stacked,s=[],c=this._cachedMeta.controller.getParsed(n),d=c&&c[o.axis],h=u=>{const p=u._parsed.find(f=>f[o.axis]===d),y=p&&p[u.vScale.axis];if(Se(y)||isNaN(y))return!0};for(const u of r)if(!(n!==void 0&&h(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(o=>t[o].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const o of this.chart.data.datasets)t[ge(this.chart.options.indexAxis==="x"?o.xAxisID:o.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,o){const r=this._getStacks(t,o),i=n!==void 0?r.indexOf(n):-1;return i===-1?r.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,o=n.iScale,r=[];let i,s;for(i=0,s=n.data.length;i<s;++i)r.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const c=t.barThickness;return{min:c||EN(n),pixels:r,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:t.grouped,ratio:c?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:o,index:r},options:{base:i,minBarLength:s}}=this,c=i||0,d=this.getParsed(t),h=d._custom,u=o_(h);let p=d[n.axis],y=0,f=o?this.applyStack(n,d,o):p,m,k;f!==p&&(y=f-p,f=p),u&&(p=h.barStart,f=h.barEnd-h.barStart,p!==0&&Xt(p)!==Xt(h.barEnd)&&(y=0),y+=p);const g=!Se(i)&&!u?i:y;let x=n.getPixelForValue(g);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(y+f):m=x,k=m-x,Math.abs(k)<s){k=jN(k,n,c)*s,p===c&&(x-=k/2);const C=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),b=Math.min(C,v),L=Math.max(C,v);x=Math.max(Math.min(x,L),b),m=x+k,o&&!u&&(d._stacks[n.axis]._visualValues[r]=n.getValueForPixel(m)-n.getValueForPixel(x))}if(x===n.getPixelForValue(c)){const C=Xt(k)*n.getLineWidthForValue(c)/2;x+=C,k-=C}return{size:k,base:x,head:m,center:m+k/2}}_calculateBarIndexPixels(t,n){const o=n.scale,r=this.options,i=r.skipNull,s=ge(r.maxBarThickness,1/0);let c,d;const h=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,p=r.barThickness==="flex"?HN(t,n,r,u*h):TN(t,n,r,u*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(ge(y,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0)+f;c=p.start+p.chunk*m+p.chunk/2,d=Math.min(s,p.chunk*p.ratio)}else c=o.getPixelForValue(this.getParsed(t)[o.axis],t),d=Math.min(s,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const t=this._cachedMeta,n=t.vScale,o=t.data,r=o.length;let i=0;for(;i<r;++i)this.getParsed(i)[n.axis]!==null&&!o[i].hidden&&o[i].draw(this._ctx)}}le(oS,"id","bar"),le(oS,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),le(oS,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function UN(e,t,n){let o=1,r=1,i=0,s=0;if(t<Te){const c=e,d=c+t,h=Math.cos(c),u=Math.sin(c),p=Math.cos(d),y=Math.sin(d),f=(v,b,L)=>ql(v,c,d,!0)?1:Math.max(b,b*n,L,L*n),m=(v,b,L)=>ql(v,c,d,!0)?-1:Math.min(b,b*n,L,L*n),k=f(0,h,p),g=f(We,u,y),x=m(Ae,h,p),C=m(Ae+We,u,y);o=(k-x)/2,r=(g-C)/2,i=-(k+x)/2,s=-(g+C)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:s}}class Os extends us{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const o=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=o;else{let i=d=>+o[d];if(we(o[t])){const{key:d="value"}=this._parsing;i=h=>+ns(o[h],d)}let s,c;for(s=t,c=t+n;s<c;++s)r._parsed[s]=i(s)}}_getRotation(){return la(this.options.rotation-90)}_getCircumference(){return la(this.options.circumference)}_getRotationExtents(){let t=Te,n=-Te;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const r=this.chart.getDatasetMeta(o).controller,i=r._getRotation(),s=r._getCircumference();t=Math.min(t,i),n=Math.max(n,i+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:o}=n,r=this._cachedMeta,i=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-s)/2,0),d=Math.min(Jj(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:y,ratioY:f,offsetX:m,offsetY:k}=UN(p,u,d),g=(o.width-s)/y,x=(o.height-s)/f,C=Math.max(Math.min(g,x)/2,0),v=YB(this.options.radius,C),b=Math.max(v*d,0),L=(v-b)/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=k*v,r.total=this.calculateTotal(),this.outerRadius=v-L*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-L*h,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const o=this.options,r=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/Te)}updateElements(t,n,o,r){const i=r==="reset",s=this.chart,c=s.chartArea,h=s.options.animation,u=(c.left+c.right)/2,p=(c.top+c.bottom)/2,y=i&&h.animateScale,f=y?0:this.innerRadius,m=y?0:this.outerRadius,{sharedOptions:k,includeOptions:g}=this._getSharedOptions(n,r);let x=this._getRotation(),C;for(C=0;C<n;++C)x+=this._circumference(C,i);for(C=n;C<n+o;++C){const v=this._circumference(C,i),b=t[C],L={x:u+this.offsetX,y:p+this.offsetY,startAngle:x,endAngle:x+v,circumference:v,outerRadius:m,innerRadius:f};g&&(L.options=k||this.resolveDataElementOptions(C,b.active?"active":r)),x+=v,this.updateElement(b,C,L,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let o=0,r;for(r=0;r<n.length;r++){const i=t._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,r=o.data.labels||[],i=UI(n._parsed[t],o.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const o=this.chart;let r,i,s,c,d;if(!t){for(r=0,i=o.data.datasets.length;r<i;++r)if(o.isDatasetVisible(r)){s=o.getDatasetMeta(r),t=s.data,c=s.controller;break}}if(!t)return 0;for(r=0,i=t.length;r<i;++r)d=c.resolveDataElementOptions(r),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let o=0,r=t.length;o<r;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let o=0;o<t;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(t){return Math.max(ge(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}le(Os,"id","doughnut"),le(Os,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),le(Os,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),le(Os,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((d,h)=>{const p=t.getDatasetMeta(0).controller.getStyle(h);return{text:d,fillStyle:p.backgroundColor,fontColor:i,hidden:!t.getDataVisibility(h),lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,textAlign:r,pointStyle:o,borderRadius:s&&(c||p.borderRadius),index:h}}):[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class rS extends us{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:o,data:r=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:c,count:d}=bF(n,r,s);this._drawStart=c,this._drawCount=d,MF(n)&&(c=0,d=r.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=r;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(o,void 0,{animated:!s,options:h},t),this.updateElements(r,c,d,t)}updateElements(t,n,o,r){const i=r==="reset",{iScale:s,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:u,includeOptions:p}=this._getSharedOptions(n,r),y=s.axis,f=c.axis,{spanGaps:m,segment:k}=this.options,g=Pl(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||r==="none",C=n+o,v=t.length;let b=n>0&&this.getParsed(n-1);for(let L=0;L<v;++L){const S=t[L],M=x?S:{};if(L<n||L>=C){M.skip=!0;continue}const w=this.getParsed(L),I=Se(w[f]),z=M[y]=s.getPixelForValue(w[y],L),B=M[f]=i||I?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,w,d):w[f],L);M.skip=isNaN(z)||isNaN(B)||I,M.stop=L>0&&Math.abs(w[y]-b[y])>g,k&&(M.parsed=w,M.raw=h.data[L]),p&&(M.options=u||this.resolveDataElementOptions(L,S.active?"active":r)),x||this.updateElement(S,L,M,r),b=w}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,o=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return o;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}le(rS,"id","line"),le(rS,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),le(rS,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class r_ extends Os{}le(r_,"id","pie"),le(r_,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function ps(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class i_{constructor(t){le(this,"options");this.options=t||{}}static override(t){Object.assign(i_.prototype,t)}init(){}formats(){return ps()}parse(){return ps()}format(){return ps()}add(){return ps()}diff(){return ps()}startOf(){return ps()}endOf(){return ps()}}var WN={_date:i_};function GN(e,t,n,o){const{controller:r,data:i,_sorted:s}=e,c=r._cachedMeta.iScale,d=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(c&&t===c.axis&&t!=="r"&&s&&i.length){const h=c._reversePixels?yF:rs;if(o){if(r._sharedOptions){const u=i[0],p=typeof u.getRange=="function"&&u.getRange(t);if(p){const y=h(i,t,n-p),f=h(i,t,n+p);return{lo:y.lo,hi:f.hi}}}}else{const u=h(i,t,n);if(d){const{vScale:p}=r._cachedMeta,{_parsed:y}=e,f=y.slice(0,u.lo+1).reverse().findIndex(k=>!Se(k[p.axis]));u.lo-=Math.max(0,f);const m=y.slice(u.hi).findIndex(k=>!Se(k[p.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:i.length-1}}function iS(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let c=0,d=i.length;c<d;++c){const{index:h,data:u}=i[c],{lo:p,hi:y}=GN(i[c],t,s,r);for(let f=p;f<=y;++f){const m=u[f];m.skip||o(m,h,f)}}}function KN(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(o,r){const i=t?Math.abs(o.x-r.x):0,s=n?Math.abs(o.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function s_(e,t,n,o,r){const i=[];return!r&&!e.isPointInArea(t)||iS(e,n,t,function(c,d,h){!r&&!Tl(c,e.chartArea,0)||c.inRange(t.x,t.y,o)&&i.push({element:c,datasetIndex:d,index:h})},!0),i}function XN(e,t,n,o){let r=[];function i(s,c,d){const{startAngle:h,endAngle:u}=s.getProps(["startAngle","endAngle"],o),{angle:p}=rV(s,{x:t.x,y:t.y});ql(p,h,u)&&r.push({element:s,datasetIndex:c,index:d})}return iS(e,n,t,i),r}function ZN(e,t,n,o,r,i){let s=[];const c=KN(n);let d=Number.POSITIVE_INFINITY;function h(u,p,y){const f=u.inRange(t.x,t.y,r);if(o&&!f)return;const m=u.getCenterPoint(r);if(!(!!i||e.isPointInArea(m))&&!f)return;const g=c(t,m);g<d?(s=[{element:u,datasetIndex:p,index:y}],d=g):g===d&&s.push({element:u,datasetIndex:p,index:y})}return iS(e,n,t,h),s}function l_(e,t,n,o,r,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!o?XN(e,t,n,r):ZN(e,t,n,o,r,i)}function ZV(e,t,n,o,r){const i=[],s=n==="x"?"inXRange":"inYRange";let c=!1;return iS(e,n,t,(d,h,u)=>{d[s]&&d[s](t[n],r)&&(i.push({element:d,datasetIndex:h,index:u}),c=c||d.inRange(t.x,t.y,r))}),o&&!c?[]:i}var YN={modes:{index(e,t,n,o){const r=ds(t,e),i=n.axis||"x",s=n.includeInvisible||!1,c=n.intersect?s_(e,r,i,o,s):l_(e,r,i,!1,o,s),d=[];return c.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const u=c[0].index,p=h.data[u];p&&!p.skip&&d.push({element:p,datasetIndex:h.index,index:u})}),d):[]},dataset(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let c=n.intersect?s_(e,r,i,o,s):l_(e,r,i,!1,o,s);if(c.length>0){const d=c[0].datasetIndex,h=e.getDatasetMeta(d).data;c=[];for(let u=0;u<h.length;++u)c.push({element:h[u],datasetIndex:d,index:u})}return c},point(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return s_(e,r,i,o,s)},nearest(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return l_(e,r,i,n.intersect,o,s)},x(e,t,n,o){const r=ds(t,e);return ZV(e,r,"x",n.intersect,o)},y(e,t,n,o){const r=ds(t,e);return ZV(e,r,"y",n.intersect,o)}}};const YV=["left","top","right","bottom"];function jl(e,t){return e.filter(n=>n.pos===t)}function QV(e,t){return e.filter(n=>YV.indexOf(n.pos)===-1&&n.box.axis===t)}function Fl(e,t){return e.sort((n,o)=>{const r=t?o:n,i=t?n:o;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function QN(e){const t=[];let n,o,r,i,s,c;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],{position:i,options:{stack:s,stackWeight:c=1}}=r,t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&i+s,stackWeight:c});return t}function JN(e){const t={};for(const n of e){const{stack:o,pos:r,stackWeight:i}=n;if(!o||!YV.includes(r))continue;const s=t[o]||(t[o]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function eR(e,t){const n=JN(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,s,c;for(i=0,s=e.length;i<s;++i){c=e[i];const{fullSize:d}=c.box,h=n[c.stack],u=h&&c.stackWeight/h.weight;c.horizontal?(c.width=u?u*o:d&&t.availableWidth,c.height=r):(c.width=o,c.height=u?u*r:d&&t.availableHeight)}return n}function tR(e){const t=QN(e),n=Fl(t.filter(h=>h.box.fullSize),!0),o=Fl(jl(t,"left"),!0),r=Fl(jl(t,"right")),i=Fl(jl(t,"top"),!0),s=Fl(jl(t,"bottom")),c=QV(t,"x"),d=QV(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(d).concat(s).concat(c),chartArea:jl(t,"chartArea"),vertical:o.concat(r).concat(d),horizontal:i.concat(s).concat(c)}}function JV(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function ez(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function aR(e,t,n,o){const{pos:r,box:i}=n,s=e.maxPadding;if(!we(r)){n.size&&(e[r]-=n.size);const p=o[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?i.height:i.width),n.size=p.size/p.count,e[r]+=n.size}i.getPadding&&ez(s,i.getPadding());const c=Math.max(0,t.outerWidth-JV(s,e,"left","right")),d=Math.max(0,t.outerHeight-JV(s,e,"top","bottom")),h=c!==e.w,u=d!==e.h;return e.w=c,e.h=d,n.horizontal?{same:h,other:u}:{same:u,other:h}}function nR(e){const t=e.maxPadding;function n(o){const r=Math.max(t[o]-e[o],0);return e[o]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function oR(e,t){const n=t.maxPadding;function o(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(t[s],n[s])}),i}return o(e?["left","right"]:["top","bottom"])}function Nl(e,t,n,o){const r=[];let i,s,c,d,h,u;for(i=0,s=e.length,h=0;i<s;++i){c=e[i],d=c.box,d.update(c.width||t.w,c.height||t.h,oR(c.horizontal,t));const{same:p,other:y}=aR(t,n,c,o);h|=p&&r.length,u=u||y,d.fullSize||r.push(c)}return h&&Nl(r,t,n,o)||u}function sS(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function tz(e,t,n,o){const r=n.padding;let{x:i,y:s}=t;for(const c of e){const d=c.box,h=o[c.stack]||{placed:0,weight:1},u=c.stackWeight/h.weight||1;if(c.horizontal){const p=t.w*u,y=h.size||d.height;Vl(h.start)&&(s=h.start),d.fullSize?sS(d,r.left,s,n.outerWidth-r.right-r.left,y):sS(d,t.left+h.placed,s,p,y),h.start=s,h.placed+=p,s=d.bottom}else{const p=t.h*u,y=h.size||d.width;Vl(h.start)&&(i=h.start),d.fullSize?sS(d,i,r.top,y,n.outerHeight-r.bottom-r.top):sS(d,i,t.top+h.placed,y,p),h.start=i,h.placed+=p,i=d.right}}t.x=i,t.y=s}var bt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=gt(e.options.layout.padding),i=Math.max(t-r.width,0),s=Math.max(n-r.height,0),c=tR(e.boxes),d=c.vertical,h=c.horizontal;_e(e.boxes,k=>{typeof k.beforeLayout=="function"&&k.beforeLayout()});const u=d.reduce((k,g)=>g.box.options&&g.box.options.display===!1?k:k+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),y=Object.assign({},r);ez(y,gt(o));const f=Object.assign({maxPadding:y,w:i,h:s,x:r.left,y:r.top},r),m=eR(d.concat(h),p);Nl(c.fullSize,f,p,m),Nl(d,f,p,m),Nl(h,f,p,m)&&Nl(d,f,p,m),nR(f),tz(c.leftAndTop,f,p,m),f.x+=f.w,f.y+=f.h,tz(c.rightAndBottom,f,p,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},_e(c.chartArea,k=>{const g=k.box;Object.assign(g,e.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class az{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,o){}removeEventListener(t,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,o,r){return n=Math.max(0,n||t.width),o=o||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):o)}}isAttached(t){return!0}updateConfig(t){}}class rR extends az{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const lS="$chartjs",iR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nz=e=>e===null||e==="";function sR(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[lS]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nz(r)){const i=_V(e,"width");i!==void 0&&(e.width=i)}if(nz(o))if(e.style.height==="")e.height=e.width/(t||2);else{const i=_V(e,"height");i!==void 0&&(e.height=i)}return e}const oz=cN?{passive:!0}:!1;function lR(e,t,n){e&&e.addEventListener(t,n,oz)}function cR(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,oz)}function dR(e,t){const n=iR[e.type]||e.type,{x:o,y:r}=ds(e,t);return{type:n,chart:t,native:e,x:o!==void 0?o:null,y:r!==void 0?r:null}}function cS(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function hR(e,t,n){const o=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||cS(c.addedNodes,o),s=s&&!cS(c.removedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function uR(e,t,n){const o=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||cS(c.removedNodes,o),s=s&&!cS(c.addedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const Rl=new Map;let rz=0;function iz(){const e=window.devicePixelRatio;e!==rz&&(rz=e,Rl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function pR(e,t){Rl.size||window.addEventListener("resize",iz),Rl.set(e,t)}function yR(e){Rl.delete(e),Rl.size||window.removeEventListener("resize",iz)}function fR(e,t,n){const o=e.canvas,r=o&&e_(o);if(!r)return;const i=dV((c,d)=>{const h=r.clientWidth;n(c,d),h<r.clientWidth&&n()},window),s=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,u=d.contentRect.height;h===0&&u===0||i(h,u)});return s.observe(r),pR(e,i),s}function c_(e,t,n){n&&n.disconnect(),t==="resize"&&yR(e)}function mR(e,t,n){const o=e.canvas,r=dV(i=>{e.ctx!==null&&n(dR(i,e))},e);return lR(o,t,r),r}class kR extends az{acquireContext(t,n){const o=t&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(sR(t,n),o):null}releaseContext(t){const n=t.canvas;if(!n[lS])return!1;const o=n[lS].initial;["height","width"].forEach(i=>{const s=o[i];Se(s)?n.removeAttribute(i):n.setAttribute(i,s)});const r=o.style||{};return Object.keys(r).forEach(i=>{n.style[i]=r[i]}),n.width=n.width,delete n[lS],!0}addEventListener(t,n,o){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),s={attach:hR,detach:uR,resize:fR}[n]||mR;r[n]=s(t,n,o)}removeEventListener(t,n){const o=t.$proxies||(t.$proxies={}),r=o[n];if(!r)return;({attach:c_,detach:c_,resize:c_}[n]||cR)(t,n,r),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,o,r){return lN(t,n,o,r)}isAttached(t){const n=t&&e_(t);return!!(n&&n.isConnected)}}function gR(e){return!JI()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?rR:kR}let ha=(OS=class{constructor(){le(this,"x");le(this,"y");le(this,"active",!1);le(this,"options");le(this,"$animations")}tooltipPosition(t){const{x:n,y:o}=this.getProps(["x","y"],t);return{x:n,y:o}}hasValue(){return Pl(this.x)&&Pl(this.y)}getProps(t,n){const o=this.$animations;if(!n||!o)return this;const r={};return t.forEach(i=>{r[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),r}},le(OS,"defaults",{}),le(OS,"defaultRoutes"),OS);function bR(e,t){const n=e.options.ticks,o=MR(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?wR(t):[],s=i.length,c=i[0],d=i[s-1],h=[];if(s>r)return vR(t,h,i,s/r),h;const u=xR(i,t,r);if(s>0){let p,y;const f=s>1?Math.round((d-c)/(s-1)):null;for(dS(t,h,u,Se(f)?0:c-f,c),p=0,y=s-1;p<y;p++)dS(t,h,u,i[p],i[p+1]);return dS(t,h,u,d,Se(f)?t.length:d+f),h}return dS(t,h,u),h}function MR(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}function xR(e,t,n){const o=CR(e),r=t.length/n;if(!o)return Math.max(r,1);const i=sF(o);for(let s=0,c=i.length-1;s<c;s++){const d=i[s];if(d>r)return d}return Math.max(r,1)}function wR(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}function vR(e,t,n,o){let r=0,i=n[0],s;for(o=Math.ceil(o),s=0;s<e.length;s++)s===i&&(t.push(e[s]),r++,i=n[r*o])}function dS(e,t,n,o,r){const i=ge(o,0),s=Math.min(ge(r,e.length),e.length);let c=0,d,h,u;for(n=Math.ceil(n),r&&(d=r-o,n=d/Math.floor(d/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(h=Math.max(i,0);h<s;h++)h===u&&(t.push(e[h]),c++,u=Math.round(i+c*n))}function CR(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}const LR=e=>e==="left"?"right":e==="right"?"left":e,sz=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,lz=(e,t)=>Math.min(t||e,e);function cz(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function SR(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,s=e._endPixel,c=1e-6;let d=e.getPixelForTick(r),h;if(!(n&&(o===1?h=Math.max(d-i,s-d):t===0?h=(e.getPixelForTick(1)-d)/2:h=(d-e.getPixelForTick(r-1))/2,d+=r<t?h:-h,d<i-c||d>s+c)))return d}function IR(e,t){_e(e,n=>{const o=n.gc,r=o.length/2;let i;if(r>t){for(i=0;i<r;++i)delete n.data[o[i]];o.splice(0,r)}})}function $l(e){return e.drawTicks?e.tickLength:0}function dz(e,t){if(!e.display)return 0;const n=Qe(e.font,t),o=gt(e.padding);return($e(e.text)?e.text.length:1)*n.lineHeight+o.height}function _R(e,t){return ls(e,{scale:t,type:"scale"})}function AR(e,t,n){return ls(e,{tick:n,index:t,type:"tick"})}function BR(e,t,n){let o=NI(e);return(n&&t!=="right"||!n&&t==="right")&&(o=LR(o)),o}function VR(e,t,n,o){const{top:r,left:i,bottom:s,right:c,chart:d}=e,{chartArea:h,scales:u}=d;let p=0,y,f,m;const k=s-r,g=c-i;if(e.isHorizontal()){if(f=Ye(o,i,c),we(n)){const x=Object.keys(n)[0],C=n[x];m=u[x].getPixelForValue(C)+k-t}else n==="center"?m=(h.bottom+h.top)/2+k-t:m=sz(e,n,t);y=c-i}else{if(we(n)){const x=Object.keys(n)[0],C=n[x];f=u[x].getPixelForValue(C)-g+t}else n==="center"?f=(h.left+h.right)/2-g+t:f=sz(e,n,t);m=Ye(o,s,r),p=n==="left"?-We:We}return{titleX:f,titleY:m,maxWidth:y,rotation:p}}class js extends ha{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:o,_suggestedMax:r}=this;return t=Kt(t,Number.POSITIVE_INFINITY),n=Kt(n,Number.NEGATIVE_INFINITY),o=Kt(o,Number.POSITIVE_INFINITY),r=Kt(r,Number.NEGATIVE_INFINITY),{min:Kt(t,o),max:Kt(n,r),minDefined:Xe(t),maxDefined:Xe(n)}}getMinMax(t){let{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds(),s;if(r&&i)return{min:n,max:o};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)s=c[d].controller.getMinMax(this,t),r||(n=Math.min(n,s.min)),i||(o=Math.max(o,s.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Kt(n,Kt(o,n)),max:Kt(o,Kt(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pe(this.options.beforeUpdate,[this])}update(t,n,o){const{beginAtZero:r,grace:i,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=jF(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?cz(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=bR(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,t=!t),this._startPixel=n,this._endPixel=o,this._reversePixels=t,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pe(this.options.afterUpdate,[this])}beforeSetDimensions(){Pe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Pe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let o,r,i;for(o=0,r=t.length;o<r;o++)i=t[o],i.label=Pe(n.callback,[i.value,o,t],this)}afterTickToLabelConversion(){Pe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,o=lz(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,i=n.maxRotation;let s=r,c,d,h;if(!this._isVisible()||!n.display||r>=i||o<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),p=u.widest.width,y=u.highest.height,f=Ze(this.chart.width-p,0,this.maxWidth);c=t.offset?this.maxWidth/o:f/(o-1),p+6>c&&(c=f/(o-(t.offset?.5:1)),d=this.maxHeight-$l(t.grid)-n.padding-dz(t.title,this.chart.options.font),h=Math.sqrt(p*p+y*y),s=hF(Math.min(Math.asin(Ze((u.highest.height+6)/c,-1,1)),Math.asin(Ze(d/h,-1,1))-Math.asin(Ze(y/h,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:o,title:r,grid:i}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){const d=dz(r,n.options.font);if(c?(t.width=this.maxWidth,t.height=$l(i)+d):(t.height=this.maxHeight,t.width=$l(i)+d),o.display&&this.ticks.length){const{first:h,last:u,widest:p,highest:y}=this._getLabelSizes(),f=o.padding*2,m=la(this.labelRotation),k=Math.cos(m),g=Math.sin(m);if(c){const x=o.mirror?0:g*p.width+k*y.height;t.height=Math.min(this.maxHeight,t.height+x+f)}else{const x=o.mirror?0:k*p.width+g*y.height;t.width=Math.min(this.maxWidth,t.width+x+f)}this._calculatePadding(h,u,g,k)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,o,r){const{ticks:{align:i,padding:s},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,f=0;d?h?(y=r*t.width,f=o*n.height):(y=o*t.height,f=r*n.width):i==="start"?f=n.width:i==="end"?y=t.width:i!=="inner"&&(y=t.width/2,f=n.width/2),this.paddingLeft=Math.max((y-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-p+s)*this.width/(this.width-p),0)}else{let u=n.height/2,p=t.height/2;i==="start"?(u=0,p=t.height):i==="end"&&(u=n.height,p=0),this.paddingTop=u+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,o;for(n=0,o=t.length;n<o;n++)Se(t[n].label)&&(t.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=cz(o,n)),this._labelSizes=t=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,o){const{ctx:r,_longestTextCache:i}=this,s=[],c=[],d=Math.floor(n/lz(n,o));let h=0,u=0,p,y,f,m,k,g,x,C,v,b,L;for(p=0;p<n;p+=d){if(m=t[p].label,k=this._resolveTickFontOptions(p),r.font=g=k.string,x=i[g]=i[g]||{data:{},gc:[]},C=k.lineHeight,v=b=0,!Se(m)&&!$e(m))v=mV(r,x.data,x.gc,v,m),b=C;else if($e(m))for(y=0,f=m.length;y<f;++y)L=m[y],!Se(L)&&!$e(L)&&(v=mV(r,x.data,x.gc,v,L),b+=C);s.push(v),c.push(b),h=Math.max(v,h),u=Math.max(b,u)}IR(i,n);const S=s.indexOf(h),M=c.indexOf(u),w=I=>({width:s[I]||0,height:c[I]||0});return{first:w(0),last:w(n-1),widest:w(S),highest:w(M),widths:s,heights:c}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return pF(this._alignToPixels?ss(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const o=n[t];return o.$context||(o.$context=AR(this.getContext(),t,o))}return this.$context||(this.$context=_R(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=la(this.labelRotation),o=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,c=i?i.widest.width+s:0,d=i?i.highest.height+s:0;return this.isHorizontal()?d*o>c*r?c/o:d/r:d*r<c*o?d/o:c/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,o=this.chart,r=this.options,{grid:i,position:s,border:c}=r,d=i.offset,h=this.isHorizontal(),p=this.ticks.length+(d?1:0),y=$l(i),f=[],m=c.setContext(this.getContext()),k=m.display?m.width:0,g=k/2,x=function(H){return ss(o,H,k)};let C,v,b,L,S,M,w,I,z,B,A,V;if(s==="top")C=x(this.bottom),M=this.bottom-y,I=C-g,B=x(t.top)+g,V=t.bottom;else if(s==="bottom")C=x(this.top),B=t.top,V=x(t.bottom)-g,M=C+g,I=this.top+y;else if(s==="left")C=x(this.right),S=this.right-y,w=C-g,z=x(t.left)+g,A=t.right;else if(s==="right")C=x(this.left),z=t.left,A=x(t.right)-g,S=C+g,w=this.left+y;else if(n==="x"){if(s==="center")C=x((t.top+t.bottom)/2+.5);else if(we(s)){const H=Object.keys(s)[0],O=s[H];C=x(this.chart.scales[H].getPixelForValue(O))}B=t.top,V=t.bottom,M=C+g,I=M+y}else if(n==="y"){if(s==="center")C=x((t.left+t.right)/2);else if(we(s)){const H=Object.keys(s)[0],O=s[H];C=x(this.chart.scales[H].getPixelForValue(O))}S=C-g,w=S-y,z=t.left,A=t.right}const E=ge(r.ticks.maxTicksLimit,p),W=Math.max(1,Math.ceil(p/E));for(v=0;v<p;v+=W){const H=this.getContext(v),O=i.setContext(H),U=c.setContext(H),J=O.lineWidth,T=O.color,F=U.dash||[],N=U.dashOffset,Y=O.tickWidth,Q=O.tickColor,ie=O.tickBorderDash||[],ue=O.tickBorderDashOffset;b=SR(this,v,d),b!==void 0&&(L=ss(o,b,J),h?S=w=z=A=L:M=I=B=V=L,f.push({tx1:S,ty1:M,tx2:w,ty2:I,x1:z,y1:B,x2:A,y2:V,width:J,color:T,borderDash:F,borderDashOffset:N,tickWidth:Y,tickColor:Q,tickBorderDash:ie,tickBorderDashOffset:ue}))}return this._ticksLength=p,this._borderValue=C,f}_computeLabelItems(t){const n=this.axis,o=this.options,{position:r,ticks:i}=o,s=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:u,mirror:p}=i,y=$l(o.grid),f=y+u,m=p?-u:f,k=-la(this.labelRotation),g=[];let x,C,v,b,L,S,M,w,I,z,B,A,V="middle";if(r==="top")S=this.bottom-m,M=this._getXAxisLabelAlignment();else if(r==="bottom")S=this.top+m,M=this._getXAxisLabelAlignment();else if(r==="left"){const W=this._getYAxisLabelAlignment(y);M=W.textAlign,L=W.x}else if(r==="right"){const W=this._getYAxisLabelAlignment(y);M=W.textAlign,L=W.x}else if(n==="x"){if(r==="center")S=(t.top+t.bottom)/2+f;else if(we(r)){const W=Object.keys(r)[0],H=r[W];S=this.chart.scales[W].getPixelForValue(H)+f}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")L=(t.left+t.right)/2-f;else if(we(r)){const W=Object.keys(r)[0],H=r[W];L=this.chart.scales[W].getPixelForValue(H)}M=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(d==="start"?V="top":d==="end"&&(V="bottom"));const E=this._getLabelSizes();for(x=0,C=c.length;x<C;++x){v=c[x],b=v.label;const W=i.setContext(this.getContext(x));w=this.getPixelForTick(x)+i.labelOffset,I=this._resolveTickFontOptions(x),z=I.lineHeight,B=$e(b)?b.length:1;const H=B/2,O=W.color,U=W.textStrokeColor,J=W.textStrokeWidth;let T=M;s?(L=w,M==="inner"&&(x===C-1?T=this.options.reverse?"left":"right":x===0?T=this.options.reverse?"right":"left":T="center"),r==="top"?h==="near"||k!==0?A=-B*z+z/2:h==="center"?A=-E.highest.height/2-H*z+z:A=-E.highest.height+z/2:h==="near"||k!==0?A=z/2:h==="center"?A=E.highest.height/2-H*z:A=E.highest.height-B*z,p&&(A*=-1),k!==0&&!W.showLabelBackdrop&&(L+=z/2*Math.sin(k))):(S=w,A=(1-B)*z/2);let F;if(W.showLabelBackdrop){const N=gt(W.backdropPadding),Y=E.heights[x],Q=E.widths[x];let ie=A-N.top,ue=0-N.left;switch(V){case"middle":ie-=Y/2;break;case"bottom":ie-=Y;break}switch(M){case"center":ue-=Q/2;break;case"right":ue-=Q;break;case"inner":x===C-1?ue-=Q:x>0&&(ue-=Q/2);break}F={left:ue,top:ie,width:Q+N.width,height:Y+N.height,color:W.backdropColor}}g.push({label:b,font:I,textOffset:A,options:{rotation:k,color:O,strokeColor:U,strokeWidth:J,textAlign:T,textBaseline:V,translation:[L,S],backdrop:F}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-la(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:o,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),c=t+i,d=s.widest.width;let h,u;return n==="left"?r?(u=this.right+i,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u+=d)):(u=this.right-c,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u=this.left)):n==="right"?r?(u=this.left+i,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u-=d)):(u=this.left+c,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u=this.right)):h="right",{textAlign:h,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:o,top:r,width:i,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(o,r,i,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,o=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const c=(d,h,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(d.x,d.y),o.lineTo(h.x,h.y),o.stroke(),o.restore())};if(n.display)for(i=0,s=r.length;i<s;++i){const d=r[i];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:o,grid:r}}=this,i=o.setContext(this.getContext()),s=o.display?i.width:0;if(!s)return;const c=r.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,u,p,y;this.isHorizontal()?(h=ss(t,this.left,s)-s/2,u=ss(t,this.right,c)+c/2,p=y=d):(p=ss(t,this.top,s)-s/2,y=ss(t,this.bottom,c)+c/2,h=u=d),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(h,p),n.lineTo(u,y),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const o=this.ctx,r=this._computeLabelArea();r&&ZL(o,r);const i=this.getLabelItems(t);for(const s of i){const c=s.options,d=s.font,h=s.label,u=s.textOffset;Hl(o,h,0,u,d,c)}r&&YL(o)}drawTitle(){const{ctx:t,options:{position:n,title:o,reverse:r}}=this;if(!o.display)return;const i=Qe(o.font),s=gt(o.padding),c=o.align;let d=i.lineHeight/2;n==="bottom"||n==="center"||we(n)?(d+=s.bottom,$e(o.text)&&(d+=i.lineHeight*(o.text.length-1))):d+=s.top;const{titleX:h,titleY:u,maxWidth:p,rotation:y}=VR(this,d,n,c);Hl(t,o.text,0,0,i,{color:o.color,maxWidth:p,rotation:y,textAlign:BR(c,n,r),textBaseline:"middle",translation:[h,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,o=ge(t.grid&&t.grid.z,-1),r=ge(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==js.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",r=[];let i,s;for(i=0,s=n.length;i<s;++i){const c=n[i];c[o]===this.id&&(!t||c.type===t)&&r.push(c)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Qe(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hS{constructor(t,n,o){this.type=t,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let o;qR(n)&&(o=this.register(n));const r=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,zR(t,s,o),this.override&&Fe.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,o=t.id,r=this.scope;o in n&&delete n[o],r&&o in Fe[r]&&(delete Fe[r][o],this.override&&delete is[o])}}function zR(e,t,n){const o=Al(Object.create(null),[n?Fe.get(n):{},Fe.get(t),e.defaults]);Fe.set(t,o),e.defaultRoutes&&PR(t,e.defaultRoutes),e.descriptors&&Fe.describe(t,e.descriptors)}function PR(e,t){Object.keys(t).forEach(n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),s=t[n].split("."),c=s.pop(),d=s.join(".");Fe.route(i,r,d,c)})}function qR(e){return"id"in e&&"defaults"in e}class DR{constructor(){this.controllers=new hS(us,"datasets",!0),this.elements=new hS(ha,"elements"),this.plugins=new hS(Object,"plugins"),this.scales=new hS(js,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,o){[...n].forEach(r=>{const i=o||this._getRegistryForType(r);o||i.isForType(r)||i===this.plugins&&r.id?this._exec(t,i,r):_e(r,s=>{const c=o||this._getRegistryForType(s);this._exec(t,c,s)})})}_exec(t,n,o){const r=OI(t);Pe(o["before"+r],[],o),n[t](o),Pe(o["after"+r],[],o)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(t))return o}return this.plugins}_get(t,n,o){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+o+".");return r}}var Zt=new DR;class ER{constructor(){this._init=void 0}notify(t,n,o,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const i=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(i,t,n,o);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,n,o,r){r=r||{};for(const i of t){const s=i.plugin,c=s[o],d=[n,r,i.options];if(Pe(c,d,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Se(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const o=t&&t.config,r=ge(o.options&&o.options.plugins,{}),i=TR(o);return r===!1&&!n?[]:OR(t,i,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],o=this._cache,r=(i,s)=>i.filter(c=>!s.some(d=>c.plugin.id===d.plugin.id));this._notify(r(n,o),t,"stop"),this._notify(r(o,n),t,"start")}}function TR(e){const t={},n=[],o=Object.keys(Zt.plugins.items);for(let i=0;i<o.length;i++)n.push(Zt.getPlugin(o[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const s=r[i];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function HR(e,t){return!t&&e===!1?null:e===!0?{}:e}function OR(e,{plugins:t,localIds:n},o,r){const i=[],s=e.getContext();for(const c of t){const d=c.id,h=HR(o[d],r);h!==null&&i.push({plugin:c,options:jR(e.config,{plugin:c,local:n[d]},h,s)})}return i}function jR(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(o,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function d_(e,t){const n=Fe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function FR(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function NR(e,t){return e===t?"_index_":"_value_"}function hz(e){if(e==="x"||e==="y"||e==="r")return e}function RR(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function h_(e,...t){if(hz(e))return e;for(const n of t){const o=n.axis||RR(n.position)||e.length>1&&hz(e[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function uz(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function $R(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(o=>o.xAxisID===e||o.yAxisID===e);if(n.length)return uz(e,"x",n[0])||uz(e,"y",n[0])}return{}}function UR(e,t){const n=is[e.type]||{scales:{}},o=t.scales||{},r=d_(e.type,t),i=Object.create(null);return Object.keys(o).forEach(s=>{const c=o[s];if(!we(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const d=h_(s,c,$R(s,e),Fe.scales[c.type]),h=NR(d,r),u=n.scales||{};i[s]=Bl(Object.create(null),[{axis:d},c,u[d],u[h]])}),e.data.datasets.forEach(s=>{const c=s.type||e.type,d=s.indexAxis||d_(c,t),u=(is[c]||{}).scales||{};Object.keys(u).forEach(p=>{const y=FR(p,d),f=s[y+"AxisID"]||y;i[f]=i[f]||Object.create(null),Bl(i[f],[{axis:y},o[f],u[p]])})}),Object.keys(i).forEach(s=>{const c=i[s];Bl(c,[Fe.scales[c.type],Fe.scale])}),i}function pz(e){const t=e.options||(e.options={});t.plugins=ge(t.plugins,{}),t.scales=UR(e,t)}function yz(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function WR(e){return e=e||{},e.data=yz(e.data),pz(e),e}const fz=new Map,mz=new Set;function uS(e,t){let n=fz.get(e);return n||(n=t(),fz.set(e,n),mz.add(n)),n}const Ul=(e,t,n)=>{const o=ns(t,n);o!==void 0&&e.add(o)};class GR{constructor(t){this._config=WR(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=yz(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),pz(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return uS(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return uS(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return uS(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,o=this.type;return uS(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const o=this._scopeCache;let r=o.get(t);return(!r||n)&&(r=new Map,o.set(t,r)),r}getOptionScopes(t,n,o){const{options:r,type:i}=this,s=this._cachedScopes(t,o),c=s.get(n);if(c)return c;const d=new Set;n.forEach(u=>{t&&(d.add(t),u.forEach(p=>Ul(d,t,p))),u.forEach(p=>Ul(d,r,p)),u.forEach(p=>Ul(d,is[i]||{},p)),u.forEach(p=>Ul(d,Fe,p)),u.forEach(p=>Ul(d,WI,p))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),mz.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:t,type:n}=this;return[t,is[n]||{},Fe.datasets[n]||{},{type:n},Fe,WI]}resolveNamedOptions(t,n,o,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:c}=kz(this._resolverCache,t,r);let d=s;if(XR(s,n)){i.$shared=!1,o=Aa(o)?o():o;const h=this.createResolver(t,o,c);d=Es(s,o,h)}for(const h of n)i[h]=d[h];return i}createResolver(t,n,o=[""],r){const{resolver:i}=kz(this._resolverCache,t,o);return we(n)?Es(i,n,void 0,r):i}}function kz(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);return i||(i={resolver:ZI(t,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},o.set(r,i)),i}const KR=e=>we(e)&&Object.getOwnPropertyNames(e).some(t=>Aa(e[t]));function XR(e,t){const{isScriptable:n,isIndexable:o}=MV(e);for(const r of t){const i=n(r),s=o(r),c=(s||i)&&e[r];if(i&&(Aa(c)||KR(c))||s&&$e(c))return!0}return!1}var ZR="4.5.1";const YR=["top","bottom","left","right","chartArea"];function gz(e,t){return e==="top"||e==="bottom"||YR.indexOf(e)===-1&&t==="x"}function bz(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function Mz(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Pe(n&&n.onComplete,[e],t)}function QR(e){const t=e.chart,n=t.options.animation;Pe(n&&n.onProgress,[e],t)}function xz(e){return JI()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const pS={},wz=e=>{const t=xz(e);return Object.values(pS).filter(n=>n.canvas===t).pop()};function JR(e,t,n){const o=Object.keys(e);for(const r of o){const i=+r;if(i>=t){const s=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=s)}}}function e$(e,t,n,o){return!n||e.type==="mouseout"?null:o?t:e}class ua{static register(...t){Zt.add(...t),vz()}static unregister(...t){Zt.remove(...t),vz()}constructor(t,n){const o=this.config=new GR(n),r=xz(t),i=wz(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||gR(r)),this.platform.updateConfig(o);const c=this.platform.acquireContext(r,s.aspectRatio),d=c&&c.canvas,h=d&&d.height,u=d&&d.width;if(this.id=Qj(),this.ctx=c,this.canvas=d,this.width=u,this.height=h,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ER,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=kF(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],pS[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}da.listen(this,"complete",Mz),da.listen(this,"progress",QR),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:o,height:r,_aspectRatio:i}=this;return Se(t)?n&&i?i:r?o/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Zt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():IV(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return kV(this.canvas,this.ctx),this}stop(){return da.stop(this),this}resize(t,n){da.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const o=this.options,r=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,n,i),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,IV(this,c,!0)&&(this.notifyPlugins("resize",{size:s}),Pe(o.onResize,[this,s],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};_e(n,(o,r)=>{o.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,o=this.scales,r=Object.keys(o).reduce((s,c)=>(s[c]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const c=n[s],d=h_(s,c),h=d==="r",u=d==="x";return{options:c,dposition:h?"chartArea":u?"bottom":"left",dtype:h?"radialLinear":u?"category":"linear"}}))),_e(i,s=>{const c=s.options,d=c.id,h=h_(d,c),u=ge(c.type,s.dtype);(c.position===void 0||gz(c.position,h)!==gz(s.dposition))&&(c.position=s.dposition),r[d]=!0;let p=null;if(d in o&&o[d].type===u)p=o[d];else{const y=Zt.getScale(u);p=new y({id:d,type:u,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(c,t)}),_e(r,(s,c)=>{s||delete o[c]}),_e(o,s=>{bt.configure(this,s,s.options),bt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,o=t.length;if(t.sort((r,i)=>r.index-i.index),o>n){for(let r=n;r<o;++r)this._destroyDatasetMeta(r);t.splice(n,o-n)}this._sortedMetasets=t.slice(0).sort(bz("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((o,r)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let o,r;for(this._removeUnreferencedMetasets(),o=0,r=n.length;o<r;o++){const i=n[o];let s=this.getDatasetMeta(o);const c=i.type||this.config.type;if(s.type&&s.type!==c&&(this._destroyDatasetMeta(o),s=this.getDatasetMeta(o)),s.type=c,s.indexAxis=i.indexAxis||d_(c,this.options),s.order=i.order||0,s.index=o,s.label=""+i.label,s.visible=this.isDatasetVisible(o),s.controller)s.controller.updateIndex(o),s.controller.linkScales();else{const d=Zt.getController(c),{datasetElementType:h,dataElementType:u}=Fe.datasets[c];Object.assign(d,{dataElementType:Zt.getElement(u),datasetElementType:h&&Zt.getElement(h)}),s.controller=new d(this,o),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){_e(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let h=0,u=this.data.datasets.length;h<u;h++){const{controller:p}=this.getDatasetMeta(h),y=!r&&i.indexOf(p)===-1;p.buildOrUpdateElements(y),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=o.layout.autoPadding?s:0,this._updateLayout(s),r||_e(i,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bz("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){_e(this.scales,t=>{bt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(t.events);(!eV(n,o)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:r,count:i}of n){const s=o==="_removeElements"?-i:i;JR(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(t.filter(s=>s[0]===i).map((s,c)=>c+","+s.splice(1).join(","))),r=o(0);for(let i=1;i<n;i++)if(!eV(r,o(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bt.update(this,this.width,this.height,t);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],_e(this.boxes,r=>{o&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,Aa(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const o=this.getDatasetMeta(t),r={meta:o,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(o.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(da.has(this)?this.attached&&!da.running(this)&&da.start(this):(this.draw(),Mz({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:o,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,o=[];let r,i;for(r=0,i=n.length;r<i;++r){const s=n[r];(!t||s.visible)&&o.push(s)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,o={meta:t,index:t.index,cancelable:!0},r=TV(this,t);this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&ZL(n,r),t.controller.draw(),r&&YL(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Tl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,o,r){const i=YN.modes[n];return typeof i=="function"?i(this,t,o,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],o=this._metasets;let r=o.filter(i=>i&&i._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},o.push(r)),r}getContext(){return this.$context||(this.$context=ls(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const o=this.getDatasetMeta(t);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(t,n){const o=this.getDatasetMeta(t);o.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,o){const r=o?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,r);Vl(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(t,o),s.update(i,{visible:o}),this.update(c=>c.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),da.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),kV(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete pS[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,o=(i,s)=>{n.addEventListener(this,i,s),t[i]=s},r=(i,s,c)=>{i.offsetX=s,i.offsetY=c,this._eventHandler(i)};_e(this.options.events,i=>o(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,o=(d,h)=>{n.addEventListener(this,d,h),t[d]=h},r=(d,h)=>{t[d]&&(n.removeEventListener(this,d,h),delete t[d])},i=(d,h)=>{this.canvas&&this.resize(d,h)};let s;const c=()=>{r("attach",c),this.attached=!0,this.resize(),o("resize",i),o("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),o("attach",c)},n.isAttached(this.canvas)?c():s()}unbindEvents(){_e(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},_e(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,o){const r=o?"set":"remove";let i,s,c,d;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),c=0,d=t.length;c<d;++c){s=t[c];const h=s&&this.getDatasetMeta(s.datasetIndex).controller;h&&h[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],o=t.map(({datasetIndex:i,index:s})=>{const c=this.getDatasetMeta(i);if(!c)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:c.data[s],index:s}});!WL(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(t,n,o){return this._plugins.notify(this,t,n,o)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,o){const r=this.options.hover,i=(d,h)=>d.filter(u=>!h.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),s=i(n,t),c=o?t:i(t,n);s.length&&this.updateHoverStyle(s,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(t,n){const o={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",o,r)===!1)return;const i=this._handleEvent(t,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,r),(i||o.changed)&&this.render(),this}_handleEvent(t,n,o){const{_active:r=[],options:i}=this,s=n,c=this._getActiveElements(t,r,o,s),d=oF(t),h=e$(t,this._lastEvent,o,d);o&&(this._lastEvent=null,Pe(i.onHover,[t,c,this],this),d&&Pe(i.onClick,[t,c,this],this));const u=!WL(c,r);return(u||n)&&(this._active=c,this._updateHoverStyles(c,r,n)),this._lastEvent=h,u}_getActiveElements(t,n,o,r){if(t.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}le(ua,"defaults",Fe),le(ua,"instances",pS),le(ua,"overrides",is),le(ua,"registry",Zt),le(ua,"version",ZR),le(ua,"getChart",wz);function vz(){return _e(ua.instances,e=>e._plugins.invalidate())}function t$(e,t,n){const{startAngle:o,x:r,y:i,outerRadius:s,innerRadius:c,options:d}=t,{borderWidth:h,borderJoinStyle:u}=d,p=Math.min(h/s,dt(o-n));if(e.beginPath(),e.arc(r,i,s-h/2,o+p/2,n-p/2),c>0){const y=Math.min(h/c,dt(o-n));e.arc(r,i,c+h/2,n-y/2,o+y/2,!0)}else{const y=Math.min(h/2,s*dt(o-n));if(u==="round")e.arc(r,i,y,n-Ae/2,o+Ae/2,!0);else if(u==="bevel"){const f=2*y*y,m=-f*Math.cos(n+Ae/2)+r,k=-f*Math.sin(n+Ae/2)+i,g=f*Math.cos(o+Ae/2)+r,x=f*Math.sin(o+Ae/2)+i;e.lineTo(m,k),e.lineTo(g,x)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function a$(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:s,outerRadius:c,innerRadius:d}=t;let h=r/c;e.beginPath(),e.arc(i,s,c,o-h,n+h),d>r?(h=r/d,e.arc(i,s,d,n+h,o-h,!0)):e.arc(i,s,r,n+We,o-We),e.closePath(),e.clip()}function n$(e){return XI(e,["outerStart","outerEnd","innerStart","innerEnd"])}function o$(e,t,n,o){const r=n$(e.options.borderRadius),i=(n-t)/2,s=Math.min(i,o*t/2),c=d=>{const h=(n-Math.min(i,d))*o/2;return Ze(d,0,Math.min(i,h))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:Ze(r.innerStart,0,s),innerEnd:Ze(r.innerEnd,0,s)}}function Fs(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function yS(e,t,n,o,r,i){const{x:s,y:c,startAngle:d,pixelMargin:h,innerRadius:u}=t,p=Math.max(t.outerRadius+o+n-h,0),y=u>0?u+o+n+h:0;let f=0;const m=r-d;if(o){const W=u>0?u-o:0,H=p>0?p-o:0,O=(W+H)/2,U=O!==0?m*O/(O+o):m;f=(m-U)/2}const k=Math.max(.001,m*p-n/Ae)/p,g=(m-k)/2,x=d+g+f,C=r-g-f,{outerStart:v,outerEnd:b,innerStart:L,innerEnd:S}=o$(t,y,p,C-x),M=p-v,w=p-b,I=x+v/M,z=C-b/w,B=y+L,A=y+S,V=x+L/B,E=C-S/A;if(e.beginPath(),i){const W=(I+z)/2;if(e.arc(s,c,p,I,W),e.arc(s,c,p,W,z),b>0){const J=Fs(w,z,s,c);e.arc(J.x,J.y,b,z,C+We)}const H=Fs(A,C,s,c);if(e.lineTo(H.x,H.y),S>0){const J=Fs(A,E,s,c);e.arc(J.x,J.y,S,C+We,E+Math.PI)}const O=(C-S/y+(x+L/y))/2;if(e.arc(s,c,y,C-S/y,O,!0),e.arc(s,c,y,O,x+L/y,!0),L>0){const J=Fs(B,V,s,c);e.arc(J.x,J.y,L,V+Math.PI,x-We)}const U=Fs(M,x,s,c);if(e.lineTo(U.x,U.y),v>0){const J=Fs(M,I,s,c);e.arc(J.x,J.y,v,x-We,I)}}else{e.moveTo(s,c);const W=Math.cos(I)*p+s,H=Math.sin(I)*p+c;e.lineTo(W,H);const O=Math.cos(z)*p+s,U=Math.sin(z)*p+c;e.lineTo(O,U)}e.closePath()}function r$(e,t,n,o,r){const{fullCircles:i,startAngle:s,circumference:c}=t;let d=t.endAngle;if(i){yS(e,t,n,o,d,r);for(let h=0;h<i;++h)e.fill();isNaN(c)||(d=s+(c%Te||Te))}return yS(e,t,n,o,d,r),e.fill(),d}function i$(e,t,n,o,r){const{fullCircles:i,startAngle:s,circumference:c,options:d}=t,{borderWidth:h,borderJoinStyle:u,borderDash:p,borderDashOffset:y,borderRadius:f}=d,m=d.borderAlign==="inner";if(!h)return;e.setLineDash(p||[]),e.lineDashOffset=y,m?(e.lineWidth=h*2,e.lineJoin=u||"round"):(e.lineWidth=h,e.lineJoin=u||"bevel");let k=t.endAngle;if(i){yS(e,t,n,o,k,r);for(let g=0;g<i;++g)e.stroke();isNaN(c)||(k=s+(c%Te||Te))}m&&a$(e,t,k),d.selfJoin&&k-s>=Ae&&f===0&&u!=="miter"&&t$(e,t,k),i||(yS(e,t,n,o,k,r),e.stroke())}class Wl extends ha{constructor(n){super();le(this,"circumference");le(this,"endAngle");le(this,"fullCircles");le(this,"innerRadius");le(this,"outerRadius");le(this,"pixelMargin");le(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.getProps(["x","y"],r),{angle:s,distance:c}=rV(i,{x:n,y:o}),{startAngle:d,endAngle:h,innerRadius:u,outerRadius:p,circumference:y}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,m=ge(y,h-d),k=ql(s,d,h)&&d!==h,g=m>=Te||k,x=ca(c,u+f,p+f);return g&&x}getCenterPoint(n){const{x:o,y:r,startAngle:i,endAngle:s,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:u}=this.options,p=(i+s)/2,y=(c+d+u+h)/2;return{x:o+Math.cos(p)*y,y:r+Math.sin(p)*y}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:r}=this,i=(o.offset||0)/4,s=(o.spacing||0)/2,c=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=r>Te?Math.floor(r/Te):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*i,Math.sin(d)*i);const h=1-Math.sin(Math.min(Ae,r||0)),u=i*h;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,r$(n,this,u,s,c),i$(n,this,u,s,c),n.restore()}}le(Wl,"id","arc"),le(Wl,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),le(Wl,"defaultRoutes",{backgroundColor:"backgroundColor"}),le(Wl,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Cz(e,t,n=t){e.lineCap=ge(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ge(n.borderDash,t.borderDash)),e.lineDashOffset=ge(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ge(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ge(n.borderWidth,t.borderWidth),e.strokeStyle=ge(n.borderColor,t.borderColor)}function s$(e,t,n){e.lineTo(n.x,n.y)}function l$(e){return e.stepped?VF:e.tension||e.cubicInterpolationMode==="monotone"?zF:s$}function Lz(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:s,end:c}=t,d=Math.max(r,s),h=Math.min(i,c),u=r<s&&i<s||r>c&&i>c;return{count:o,start:d,loop:t.loop,ilen:h<d&&!u?o+h-d:h-d}}function c$(e,t,n,o){const{points:r,options:i}=t,{count:s,start:c,loop:d,ilen:h}=Lz(r,n,o),u=l$(i);let{move:p=!0,reverse:y}=o||{},f,m,k;for(f=0;f<=h;++f)m=r[(c+(y?h-f:f))%s],!m.skip&&(p?(e.moveTo(m.x,m.y),p=!1):u(e,k,m,y,i.stepped),k=m);return d&&(m=r[(c+(y?h:0))%s],u(e,k,m,y,i.stepped)),!!d}function d$(e,t,n,o){const r=t.points,{count:i,start:s,ilen:c}=Lz(r,n,o),{move:d=!0,reverse:h}=o||{};let u=0,p=0,y,f,m,k,g,x;const C=b=>(s+(h?c-b:b))%i,v=()=>{k!==g&&(e.lineTo(u,g),e.lineTo(u,k),e.lineTo(u,x))};for(d&&(f=r[C(0)],e.moveTo(f.x,f.y)),y=0;y<=c;++y){if(f=r[C(y)],f.skip)continue;const b=f.x,L=f.y,S=b|0;S===m?(L<k?k=L:L>g&&(g=L),u=(p*u+b)/++p):(v(),e.lineTo(b,L),m=S,p=0,k=g=L),x=L}v()}function u_(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?d$:c$}function h$(e){return e.stepped?dN:e.tension||e.cubicInterpolationMode==="monotone"?hN:hs}function u$(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),Cz(e,t.options),e.stroke(r)}function p$(e,t,n,o){const{segments:r,options:i}=t,s=u_(t);for(const c of r)Cz(e,i,c.style),e.beginPath(),s(e,t,c,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}const y$=typeof Path2D=="function";function f$(e,t,n,o){y$&&!t.options.segment?u$(e,t,n,o):p$(e,t,n,o)}class Va extends ha{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const r=o.spanGaps?this._loop:this._fullLoop;aN(this._points,o,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=kN(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,o=t.length;return o&&n[t[o-1].end]}interpolate(t,n){const o=this.options,r=t[n],i=this.points,s=qV(this,{property:n,start:r,end:r});if(!s.length)return;const c=[],d=h$(o);let h,u;for(h=0,u=s.length;h<u;++h){const{start:p,end:y}=s[h],f=i[p],m=i[y];if(f===m){c.push(f);continue}const k=Math.abs((r-f[n])/(m[n]-f[n])),g=d(f,m,k,o.stepped);g[n]=t[n],c.push(g)}return c.length===1?c[0]:c}pathSegment(t,n,o){return u_(this)(t,this,n,o)}path(t,n,o){const r=this.segments,i=u_(this);let s=this._loop;n=n||0,o=o||this.points.length-n;for(const c of r)s&=i(t,this,c,{start:n,end:n+o-1});return!!s}draw(t,n,o,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),f$(t,this,o,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}le(Va,"id","line"),le(Va,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),le(Va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),le(Va,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Sz(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}class fS extends ha{constructor(n){super();le(this,"parsed");le(this,"skip");le(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.options,{x:s,y:c}=this.getProps(["x","y"],r);return Math.pow(n-s,2)+Math.pow(o-c,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return Sz(this,n,"x",o)}inYRange(n,o){return Sz(this,n,"y",o)}getCenterPoint(n){const{x:o,y:r}=this.getProps(["x","y"],n);return{x:o,y:r}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const r=o&&n.borderWidth||0;return(o+r)*2}draw(n,o){const r=this.options;this.skip||r.radius<.1||!Tl(this,o,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,KI(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}le(fS,"id","point"),le(fS,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),le(fS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Iz(e,t){const{x:n,y:o,base:r,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let c,d,h,u,p;return e.horizontal?(p=s/2,c=Math.min(n,r),d=Math.max(n,r),h=o-p,u=o+p):(p=i/2,c=n-p,d=n+p,h=Math.min(o,r),u=Math.max(o,r)),{left:c,top:h,right:d,bottom:u}}function za(e,t,n,o){return e?0:Ze(t,n,o)}function m$(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=bV(o);return{t:za(r.top,i.top,0,n),r:za(r.right,i.right,0,t),b:za(r.bottom,i.bottom,0,n),l:za(r.left,i.left,0,t)}}function k$(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Ds(r),s=Math.min(t,n),c=e.borderSkipped,d=o||we(r);return{topLeft:za(!d||c.top||c.left,i.topLeft,0,s),topRight:za(!d||c.top||c.right,i.topRight,0,s),bottomLeft:za(!d||c.bottom||c.left,i.bottomLeft,0,s),bottomRight:za(!d||c.bottom||c.right,i.bottomRight,0,s)}}function g$(e){const t=Iz(e),n=t.right-t.left,o=t.bottom-t.top,r=m$(e,n/2,o/2),i=k$(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function p_(e,t,n,o){const r=t===null,i=n===null,c=e&&!(r&&i)&&Iz(e,o);return c&&(r||ca(t,c.left,c.right))&&(i||ca(n,c.top,c.bottom))}function b$(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function M$(e,t){e.rect(t.x,t.y,t.w,t.h)}function y_(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,s=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+s,radius:e.radius}}class mS extends ha{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:o,backgroundColor:r}}=this,{inner:i,outer:s}=g$(this),c=b$(s.radius)?QL:M$;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),c(t,y_(s,n,i)),t.clip(),c(t,y_(i,-n,s)),t.fillStyle=o,t.fill("evenodd")),t.beginPath(),c(t,y_(i,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,o){return p_(this,t,n,o)}inXRange(t,n){return p_(this,t,null,n)}inYRange(t,n){return p_(this,null,t,n)}getCenterPoint(t){const{x:n,y:o,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+r)/2:n,y:i?o:(o+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}le(mS,"id","bar"),le(mS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),le(mS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function x$(e,t,n){const o=e.segments,r=e.points,i=t.points,s=[];for(const c of o){let{start:d,end:h}=c;h=kS(d,h,r);const u=f_(n,r[d],r[h],c.loop);if(!t.segments){s.push({source:c,target:u,start:r[d],end:r[h]});continue}const p=qV(t,u);for(const y of p){const f=f_(n,i[y.start],i[y.end],y.loop),m=PV(c,r,f);for(const k of m)s.push({source:k,target:y,start:{[n]:_z(u,f,"start",Math.max)},end:{[n]:_z(u,f,"end",Math.min)}})}}return s}function f_(e,t,n,o){if(o)return;let r=t[e],i=n[e];return e==="angle"&&(r=dt(r),i=dt(i)),{property:e,start:r,end:i}}function w$(e,t){const{x:n=null,y:o=null}=e||{},r=t.points,i=[];return t.segments.forEach(({start:s,end:c})=>{c=kS(s,c,r);const d=r[s],h=r[c];o!==null?(i.push({x:d.x,y:o}),i.push({x:h.x,y:o})):n!==null&&(i.push({x:n,y:d.y}),i.push({x:n,y:h.y}))}),i}function kS(e,t,n){for(;t>e;t--){const o=n[t];if(!isNaN(o.x)&&!isNaN(o.y))break}return t}function _z(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function Az(e,t){let n=[],o=!1;return $e(e)?(o=!0,n=e):n=w$(e,t),n.length?new Va({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function Bz(e){return e&&e.fill!==!1}function v$(e,t,n){let r=e[t].fill;const i=[t];let s;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!Xe(r))return r;if(s=e[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function C$(e,t,n){const o=_$(e);if(we(o))return isNaN(o.value)?!1:o;let r=parseFloat(o);return Xe(r)&&Math.floor(r)===r?L$(o[0],t,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function L$(e,t,n,o){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=o?!1:n}function S$(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:we(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function I$(e,t,n){let o;return e==="start"?o=n:e==="end"?o=t.options.reverse?t.min:t.max:we(e)?o=e.value:o=t.getBaseValue(),o}function _$(e){const t=e.options,n=t.fill;let o=ge(n&&n.target,n);return o===void 0&&(o=!!t.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function A$(e){const{scale:t,index:n,line:o}=e,r=[],i=o.segments,s=o.points,c=B$(t,n);c.push(Az({x:null,y:t.bottom},o));for(let d=0;d<i.length;d++){const h=i[d];for(let u=h.start;u<=h.end;u++)V$(r,s[u],c)}return new Va({points:r,options:{}})}function B$(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let r=0;r<o.length;r++){const i=o[r];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function V$(e,t,n){const o=[];for(let r=0;r<n.length;r++){const i=n[r],{first:s,last:c,point:d}=z$(i,t,"x");if(!(!d||s&&c)){if(s)o.unshift(d);else if(e.push(d),!c)break}}e.push(...o)}function z$(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const r=o[n],i=e.segments,s=e.points;let c=!1,d=!1;for(let h=0;h<i.length;h++){const u=i[h],p=s[u.start][n],y=s[u.end][n];if(ca(r,p,y)){c=r===p,d=r===y;break}}return{first:c,last:d,point:o}}class Vz{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,o){const{x:r,y:i,radius:s}=this;return n=n||{start:0,end:Te},t.arc(r,i,s,n.end,n.start,!0),!o.bounds}interpolate(t){const{x:n,y:o,radius:r}=this,i=t.angle;return{x:n+Math.cos(i)*r,y:o+Math.sin(i)*r,angle:i}}}function P$(e){const{chart:t,fill:n,line:o}=e;if(Xe(n))return q$(t,n);if(n==="stack")return A$(e);if(n==="shape")return!0;const r=D$(e);return r instanceof Vz?r:Az(r,o)}function q$(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function D$(e){return(e.scale||{}).getPointPositionForValue?T$(e):E$(e)}function E$(e){const{scale:t={},fill:n}=e,o=S$(n,t);if(Xe(o)){const r=t.isHorizontal();return{x:r?o:null,y:r?null:o}}return null}function T$(e){const{scale:t,fill:n}=e,o=t.options,r=t.getLabels().length,i=o.reverse?t.max:t.min,s=I$(n,t,i),c=[];if(o.grid.circular){const d=t.getPointPositionForValue(0,i);return new Vz({x:d.x,y:d.y,radius:t.getDistanceFromCenterForValue(s)})}for(let d=0;d<r;++d)c.push(t.getPointPositionForValue(d,s));return c}function m_(e,t,n){const o=P$(t),{chart:r,index:i,line:s,scale:c,axis:d}=t,h=s.options,u=h.fill,p=h.backgroundColor,{above:y=p,below:f=p}=u||{},m=r.getDatasetMeta(i),k=TV(r,m);o&&s.points.length&&(ZL(e,n),H$(e,{line:s,target:o,above:y,below:f,area:n,scale:c,axis:d,clip:k}),YL(e))}function H$(e,t){const{line:n,target:o,above:r,below:i,area:s,scale:c,clip:d}=t,h=n._loop?"angle":t.axis;e.save();let u=i;i!==r&&(h==="x"?(zz(e,o,s.top),k_(e,{line:n,target:o,color:r,scale:c,property:h,clip:d}),e.restore(),e.save(),zz(e,o,s.bottom)):h==="y"&&(Pz(e,o,s.left),k_(e,{line:n,target:o,color:i,scale:c,property:h,clip:d}),e.restore(),e.save(),Pz(e,o,s.right),u=r)),k_(e,{line:n,target:o,color:u,scale:c,property:h,clip:d}),e.restore()}function zz(e,t,n){const{segments:o,points:r}=t;let i=!0,s=!1;e.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[kS(d,h,r)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,c,{move:s}),s?e.closePath():e.lineTo(p.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Pz(e,t,n){const{segments:o,points:r}=t;let i=!0,s=!1;e.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[kS(d,h,r)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,c,{move:s}),s?e.closePath():e.lineTo(n,p.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function k_(e,t){const{line:n,target:o,property:r,color:i,scale:s,clip:c}=t,d=x$(n,o,r);for(const{source:h,target:u,start:p,end:y}of d){const{style:{backgroundColor:f=i}={}}=h,m=o!==!0;e.save(),e.fillStyle=f,O$(e,s,c,m&&f_(r,p,y)),e.beginPath();const k=!!n.pathSegment(e,h);let g;if(m){k?e.closePath():qz(e,o,y,r);const x=!!o.pathSegment(e,u,{move:k,reverse:!0});g=k&&x,g||qz(e,o,p,r)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function O$(e,t,n,o){const r=t.chart.chartArea,{property:i,start:s,end:c}=o||{};if(i==="x"||i==="y"){let d,h,u,p;i==="x"?(d=s,h=r.top,u=c,p=r.bottom):(d=r.left,h=s,u=r.right,p=c),e.beginPath(),n&&(d=Math.max(d,n.left),u=Math.min(u,n.right),h=Math.max(h,n.top),p=Math.min(p,n.bottom)),e.rect(d,h,u-d,p-h),e.clip()}}function qz(e,t,n,o){const r=t.interpolate(n,o);r&&e.lineTo(r.x,r.y)}var j$={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,r=[];let i,s,c,d;for(s=0;s<o;++s)i=e.getDatasetMeta(s),c=i.dataset,d=null,c&&c.options&&c instanceof Va&&(d={visible:e.isDatasetVisible(s),index:s,fill:C$(c,s,o),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:c}),i.$filler=d,r.push(d);for(s=0;s<o;++s)d=r[s],!(!d||d.fill===!1)&&(d.fill=v$(r,s,n.propagate))},beforeDraw(e,t,n){const o=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=r.length-1;s>=0;--s){const c=r[s].$filler;c&&(c.line.updateControlPoints(i,c.axis),o&&c.fill&&m_(e.ctx,c,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=e.getSortedVisibleDatasetMetas();for(let r=o.length-1;r>=0;--r){const i=o[r].$filler;Bz(i)&&m_(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;!Bz(o)||n.drawTime!=="beforeDatasetDraw"||m_(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Dz=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}},F$=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Ez extends ha{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,o){this.maxWidth=t,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Pe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(o=>t.filter(o,this.chart.data))),t.sort&&(n=n.sort((o,r)=>t.sort(o,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const o=t.labels,r=Qe(o.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=Dz(o,i);let h,u;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,u=this._fitRows(s,i,c,d)+10):(u=this.maxHeight,h=this._fitCols(s,r,c,d)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,o,r){const{ctx:i,maxWidth:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],u=r+c;let p=t;i.textAlign="left",i.textBaseline="middle";let y=-1,f=-u;return this.legendItems.forEach((m,k)=>{const g=o+n/2+i.measureText(m.text).width;(k===0||h[h.length-1]+g+2*c>s)&&(p+=u,h[h.length-(k>0?0:1)]=0,f+=u,y++),d[k]={left:0,top:f,row:y,width:g,height:r},h[h.length-1]+=g+c}),p}_fitCols(t,n,o,r){const{ctx:i,maxHeight:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],u=s-t;let p=c,y=0,f=0,m=0,k=0;return this.legendItems.forEach((g,x)=>{const{itemWidth:C,itemHeight:v}=N$(o,n,i,g,r);x>0&&f+v+2*c>u&&(p+=y+c,h.push({width:y,height:f}),m+=y+c,k++,y=f=0),d[x]={left:m,top:f,col:k,width:C,height:v},y=Math.max(y,C),f+=v+c}),p+=y,h.push({width:y,height:f}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:r},rtl:i}}=this,s=Hs(i,this.left,this.width);if(this.isHorizontal()){let c=0,d=Ye(o,this.left+r,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=Ye(o,this.left+r,this.right-this.lineWidths[c])),h.top+=this.top+t+r,h.left=s.leftForLtr(s.x(d),h.width),d+=h.width+r}else{let c=0,d=Ye(o,this.top+t+r,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=Ye(o,this.top+t+r,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+r,h.left=s.leftForLtr(s.x(h.left),h.width),d+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ZL(t,this),this._draw(),YL(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:o,ctx:r}=this,{align:i,labels:s}=t,c=Fe.color,d=Hs(t.rtl,this.left,this.width),h=Qe(s.font),{padding:u}=s,p=h.size,y=p/2;let f;this.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:m,boxHeight:k,itemHeight:g}=Dz(s,p),x=function(S,M,w){if(isNaN(m)||m<=0||isNaN(k)||k<0)return;r.save();const I=ge(w.lineWidth,1);if(r.fillStyle=ge(w.fillStyle,c),r.lineCap=ge(w.lineCap,"butt"),r.lineDashOffset=ge(w.lineDashOffset,0),r.lineJoin=ge(w.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=ge(w.strokeStyle,c),r.setLineDash(ge(w.lineDash,[])),s.usePointStyle){const z={radius:k*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:I},B=d.xPlus(S,m/2),A=M+y;gV(r,z,B,A,s.pointStyleWidth&&m)}else{const z=M+Math.max((p-k)/2,0),B=d.leftForLtr(S,m),A=Ds(w.borderRadius);r.beginPath(),Object.values(A).some(V=>V!==0)?QL(r,{x:B,y:z,w:m,h:k,radius:A}):r.rect(B,z,m,k),r.fill(),I!==0&&r.stroke()}r.restore()},C=function(S,M,w){Hl(r,w.text,S,M+g/2,h,{strikethrough:w.hidden,textAlign:d.textAlign(w.textAlign)})},v=this.isHorizontal(),b=this._computeTitleHeight();v?f={x:Ye(i,this.left+u,this.right-o[0]),y:this.top+u+b,line:0}:f={x:this.left+u,y:Ye(i,this.top+b+u,this.bottom-n[0].height),line:0},AV(this.ctx,t.textDirection);const L=g+u;this.legendItems.forEach((S,M)=>{r.strokeStyle=S.fontColor,r.fillStyle=S.fontColor;const w=r.measureText(S.text).width,I=d.textAlign(S.textAlign||(S.textAlign=s.textAlign)),z=m+y+w;let B=f.x,A=f.y;d.setWidth(this.width),v?M>0&&B+z+u>this.right&&(A=f.y+=L,f.line++,B=f.x=Ye(i,this.left+u,this.right-o[f.line])):M>0&&A+L>this.bottom&&(B=f.x=B+n[f.line].width+u,f.line++,A=f.y=Ye(i,this.top+b+u,this.bottom-n[f.line].height));const V=d.x(B);if(x(V,A,S),B=gF(I,B+m+y,v?B+z:this.right,t.rtl),C(d.x(B),A,S),v)f.x+=z+u;else if(typeof S.text!="string"){const E=h.lineHeight;f.y+=Tz(S,E)+u}else f.y+=L}),BV(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,o=Qe(n.font),r=gt(n.padding);if(!n.display)return;const i=Hs(t.rtl,this.left,this.width),s=this.ctx,c=n.position,d=o.size/2,h=r.top+d;let u,p=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),u=this.top+h,p=Ye(t.align,p,this.right-y);else{const m=this.columnSizes.reduce((k,g)=>Math.max(k,g.height),0);u=h+Ye(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=Ye(c,p,p+y);s.textAlign=i.textAlign(NI(c)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,Hl(s,n.text,f,u,o)}_computeTitleHeight(){const t=this.options.title,n=Qe(t.font),o=gt(t.padding);return t.display?n.lineHeight+o.height:0}_getLegendItemAt(t,n){let o,r,i;if(ca(t,this.left,this.right)&&ca(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(r=i[o],ca(t,r.left,r.left+r.width)&&ca(n,r.top,r.top+r.height))return this.legendItems[o]}return null}handleEvent(t){const n=this.options;if(!U$(t.type,n))return;const o=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,i=F$(r,o);r&&!i&&Pe(n.onLeave,[t,r,this],this),this._hoveredItem=o,o&&!i&&Pe(n.onHover,[t,o,this],this)}else o&&Pe(n.onClick,[t,o,this],this)}}function N$(e,t,n,o,r){const i=R$(o,e,t,n),s=$$(r,o,t.lineHeight);return{itemWidth:i,itemHeight:s}}function R$(e,t,n,o){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((i,s)=>i.length>s.length?i:s)),t+n.size/2+o.measureText(r).width}function $$(e,t,n){let o=e;return typeof t.text!="string"&&(o=Tz(t,n)),o}function Tz(e,t){const n=e.text?e.text.length:0;return t*n}function U$(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var W$={id:"legend",_element:Ez,start(e,t,n){const o=e.legend=new Ez({ctx:e.ctx,options:n,chart:e});bt.configure(e,o,n),bt.addBox(e,o)},stop(e){bt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;bt.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=e.legend.options;return e._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),u=gt(h.borderWidth);return{text:t[d.index].label,fillStyle:h.backgroundColor,fontColor:i,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:h.borderColor,pointStyle:o||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:s&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Hz extends ha{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=$e(o.text)?o.text.length:1;this._padding=gt(o.padding);const i=r*Qe(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:o,bottom:r,right:i,options:s}=this,c=s.align;let d=0,h,u,p;return this.isHorizontal()?(u=Ye(c,o,i),p=n+t,h=i-o):(s.position==="left"?(u=o+t,p=Ye(c,r,n),d=Ae*-.5):(u=i-t,p=Ye(c,n,r),d=Ae*.5),h=r-n),{titleX:u,titleY:p,maxWidth:h,rotation:d}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const o=Qe(n.font),i=o.lineHeight/2+this._padding.top,{titleX:s,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(i);Hl(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:NI(n.align),textBaseline:"middle",translation:[s,c]})}}function G$(e,t){const n=new Hz({ctx:e.ctx,options:t,chart:e});bt.configure(e,n,t),bt.addBox(e,n),e.titleBlock=n}var K$={id:"title",_element:Hz,start(e,t,n){G$(e,n)},stop(e){const t=e.titleBlock;bt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;bt.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Gl={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const c=e[t].element;if(c&&c.hasValue()){const d=c.tooltipPosition();o.add(d.x),r+=d.y,++i}}return i===0||o.size===0?!1:{x:[...o].reduce((c,d)=>c+d)/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,o=t.y,r=Number.POSITIVE_INFINITY,i,s,c;for(i=0,s=e.length;i<s;++i){const d=e[i].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),u=jI(t,h);u<r&&(r=u,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,o=d.y}return{x:n,y:o}}};function Yt(e,t){return t&&($e(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function pa(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
8517
|
+
*/class xN{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,o,r){const i=n.listeners[r],s=n.duration;i.forEach(c=>c({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=cV.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((o,r)=>{if(!o.running||!o.items.length)return;const i=o.items;let s=i.length-1,c=!1,d;for(;s>=0;--s)d=i[s],d._active?(d._total>o.duration&&(o.duration=d._total),d.tick(t),c=!0):(i[s]=i[i.length-1],i.pop());c&&(r.draw(),this._notify(r,o,t,"progress")),i.length||(o.running=!1,this._notify(r,o,t,"complete"),o.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let o=n.get(t);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,o)),o}listen(t,n,o){this._getAnims(t).listeners[n].push(o)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,r)=>Math.max(o,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const o=n.items;let r=o.length-1;for(;r>=0;--r)o[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var da=new xN;const HV="transparent",wN={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const o=pV(e||HV),r=o.valid&&pV(t||HV);return r&&r.valid?r.mix(o,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class vN{constructor(t,n,o,r){const i=n[o];r=JL([t.to,r,i,t.from]);const s=JL([t.from,i,r]);this._active=!0,this._fn=t.fn||wN[t.type||typeof s],this._easing=Dl[t.easing]||Dl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=o,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,o){if(this._active){this._notify(!1);const r=this._target[this._prop],i=o-this._start,s=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=JL([t.to,n,r,t.from]),this._from=JL([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,o=this._duration,r=this._prop,i=this._from,s=this._loop,c=this._to;let d;if(this._active=i!==c&&(s||n<o),!this._active){this._target[r]=c,this._notify(!0);return}if(n<0){this._target[r]=i;return}d=n/o%2,d=s&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[r]=this._fn(i,c,d)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,o)=>{t.push({res:n,rej:o})})}_notify(t){const n=t?"res":"rej",o=this._promises||[];for(let r=0;r<o.length;r++)o[r][n]()}}class OV{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!we(t))return;const n=Object.keys(Fe.animation),o=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!we(i))return;const s={};for(const c of n)s[c]=i[c];($e(i.properties)&&i.properties||[r]).forEach(c=>{(c===r||!o.has(c))&&o.set(c,s)})})}_animateOptions(t,n){const o=n.options,r=LN(t,o);if(!r)return[];const i=this._createAnimations(r,o);return o.$shared&&CN(t.options.$animations,o).then(()=>{t.options=o},()=>{}),i}_createAnimations(t,n){const o=this._properties,r=[],i=t.$animations||(t.$animations={}),s=Object.keys(n),c=Date.now();let d;for(d=s.length-1;d>=0;--d){const h=s[d];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(t,n));continue}const u=n[h];let p=i[h];const y=o.get(h);if(p)if(y&&p.active()){p.update(y,u,c);continue}else p.cancel();if(!y||!y.duration){t[h]=u;continue}i[h]=p=new vN(y,t,h,u),r.push(p)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const o=this._createAnimations(t,n);if(o.length)return da.add(this._chart,o),!0}}function CN(e,t){const n=[],o=Object.keys(t);for(let r=0;r<o.length;r++){const i=e[o[r]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function LN(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function jV(e,t){const n=e&&e.options||{},o=n.reverse,r=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:o?i:r,end:o?r:i}}function SN(e,t,n){if(n===!1)return!1;const o=jV(e,n),r=jV(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}function IN(e){let t,n,o,r;return we(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:e===!1}}function FV(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function NV(e,t,n,o={}){const r=e.keys,i=o.mode==="single";let s,c,d,h;if(t===null)return;let u=!1;for(s=0,c=r.length;s<c;++s){if(d=+r[s],d===n){if(u=!0,o.all)continue;break}h=e.values[d],Xe(h)&&(i||t===0||Xt(t)===Xt(h))&&(t+=h)}return!u&&!o.all?0:t}function _N(e,t){const{iScale:n,vScale:o}=t,r=n.axis==="x"?"x":"y",i=o.axis==="x"?"x":"y",s=Object.keys(e),c=new Array(s.length);let d,h,u;for(d=0,h=s.length;d<h;++d)u=s[d],c[d]={[r]:u,[i]:e[u]};return c}function t_(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function AN(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function BN(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function VN(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function RV(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const i=e[r.index];if(n&&i>0||!n&&i<0)return r.index}return null}function $V(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:c}=o,d=i.axis,h=s.axis,u=AN(i,s,o),p=t.length;let y;for(let f=0;f<p;++f){const m=t[f],{[d]:g,[h]:k}=m,M=m._stacks||(m._stacks={});y=M[h]=VN(r,u,g),y[c]=k,y._top=RV(y,s,!0,o.type),y._bottom=RV(y,s,!1,o.type);const w=y._visualValues||(y._visualValues={});w[c]=k}}function a_(e,t){const n=e.scales;return Object.keys(n).filter(o=>n[o].axis===t).shift()}function zN(e,t){return ls(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function PN(e,t,n){return ls(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ol(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const r of t){const i=r._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const n_=e=>e==="reset"||e==="none",UV=(e,t)=>t?e:Object.assign({},e),qN=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:FV(n,!0),values:null};class us{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=t_(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ol(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,o=this.getDataset(),r=(p,y,f,m)=>p==="x"?y:p==="r"?m:f,i=n.xAxisID=ge(o.xAxisID,a_(t,"x")),s=n.yAxisID=ge(o.yAxisID,a_(t,"y")),c=n.rAxisID=ge(o.rAxisID,a_(t,"r")),d=n.indexAxis,h=n.iAxisID=r(d,i,s,c),u=n.vAxisID=r(d,s,i,c);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&sV(this._data,this),t._stacked&&Ol(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),o=this._data;if(we(n)){const r=this._cachedMeta;this._data=_N(n,r)}else if(o!==n){if(o){sV(o,this);const r=this._cachedMeta;Ol(r),r._parsed=[]}n&&Object.isExtensible(n)&&mF(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,o=this.getDataset();let r=!1;this._dataCheck();const i=n._stacked;n._stacked=t_(n.vScale,n),n.stack!==o.stack&&(r=!0,Ol(n),n.stack=o.stack),this._resyncElements(t),(r||i!==n._stacked)&&($V(this,n._parsed),n._stacked=t_(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),o=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:o,_data:r}=this,{iScale:i,_stacked:s}=o,c=i.axis;let d=t===0&&n===r.length?!0:o._sorted,h=t>0&&o._parsed[t-1],u,p,y;if(this._parsing===!1)o._parsed=r,o._sorted=!0,y=r;else{$e(r[t])?y=this.parseArrayData(o,r,t,n):we(r[t])?y=this.parseObjectData(o,r,t,n):y=this.parsePrimitiveData(o,r,t,n);const f=()=>p[c]===null||h&&p[c]<h[c];for(u=0;u<n;++u)o._parsed[u+t]=p=y[u],d&&(f()&&(d=!1),h=p);o._sorted=d}s&&$V(this,y)}parsePrimitiveData(t,n,o,r){const{iScale:i,vScale:s}=t,c=i.axis,d=s.axis,h=i.getLabels(),u=i===s,p=new Array(r);let y,f,m;for(y=0,f=r;y<f;++y)m=y+o,p[y]={[c]:u||i.parse(h[m],m),[d]:s.parse(n[m],m)};return p}parseArrayData(t,n,o,r){const{xScale:i,yScale:s}=t,c=new Array(r);let d,h,u,p;for(d=0,h=r;d<h;++d)u=d+o,p=n[u],c[d]={x:i.parse(p[0],u),y:s.parse(p[1],u)};return c}parseObjectData(t,n,o,r){const{xScale:i,yScale:s}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=new Array(r);let u,p,y,f;for(u=0,p=r;u<p;++u)y=u+o,f=n[y],h[u]={x:i.parse(ns(f,c),y),y:s.parse(ns(f,d),y)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,o){const r=this.chart,i=this._cachedMeta,s=n[t.axis],c={keys:FV(r,!0),values:n._stacks[t.axis]._visualValues};return NV(c,s,i.index,{mode:o})}updateRangeFromParsed(t,n,o,r){const i=o[n.axis];let s=i===null?NaN:i;const c=r&&o._stacks[n.axis];r&&c&&(r.values=c,s=NV(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const o=this._cachedMeta,r=o._parsed,i=o._sorted&&t===o.iScale,s=r.length,c=this._getOtherScale(t),d=qN(n,o,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:p}=BN(c);let y,f;function m(){f=r[y];const g=f[c.axis];return!Xe(f[t.axis])||u>g||p<g}for(y=0;y<s&&!(!m()&&(this.updateRangeFromParsed(h,t,f,d),i));++y);if(i){for(y=s-1;y>=0;--y)if(!m()){this.updateRangeFromParsed(h,t,f,d);break}}return h}getAllParsedValues(t){const n=this._cachedMeta._parsed,o=[];let r,i,s;for(r=0,i=n.length;r<i;++r)s=n[r][t.axis],Xe(s)&&o.push(s);return o}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,o=n.iScale,r=n.vScale,i=this.getParsed(t);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=IN(ge(this.options.clip,SN(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,o=this._cachedMeta,r=o.data||[],i=n.chartArea,s=[],c=this._drawStart||0,d=this._drawCount||r.length-c,h=this.options.drawActiveElementsOnTop;let u;for(o.dataset&&o.dataset.draw(t,i,c,d),u=c;u<c+d;++u){const p=r[u];p.hidden||(p.active&&h?s.push(p):p.draw(t,i))}for(u=0;u<s.length;++u)s[u].draw(t,i)}getStyle(t,n){const o=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(t||0,o)}getContext(t,n,o){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=PN(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=zN(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",o){const r=n==="active",i=this._cachedDataOpts,s=t+"-"+n,c=i[s],d=this.enableOptionSharing&&Vl(o);if(c)return UV(c,d);const h=this.chart.config,u=h.datasetElementScopeKeys(this._type,t),p=r?[`${t}Hover`,"hover",t,""]:[t,""],y=h.getOptionScopes(this.getDataset(),u),f=Object.keys(Fe.elements[t]),m=()=>this.getContext(o,r,n),g=h.resolveNamedOptions(y,f,m,p);return g.$shared&&(g.$shared=d,i[s]=Object.freeze(UV(g,d))),g}_resolveAnimations(t,n,o){const r=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,c=i[s];if(c)return c;let d;if(r.options.animation!==!1){const u=this.chart.config,p=u.datasetAnimationScopeKeys(this._type,n),y=u.getOptionScopes(this.getDataset(),p);d=u.createResolver(y,this.getContext(t,o,n))}const h=new OV(r,d&&d.animations);return d&&d._cacheable&&(i[s]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||n_(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const o=this.resolveDataElementOptions(t,n),r=this._sharedOptions,i=this.getSharedOptions(o),s=this.includeOptions(n,i)||i!==r;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:s}}updateElement(t,n,o,r){n_(r)?Object.assign(t,o):this._resolveAnimations(n,r).update(t,o)}updateSharedOptions(t,n,o){t&&!n_(n)&&this._resolveAnimations(void 0,n).update(t,o)}_setStyle(t,n,o,r){t.active=r;const i=this.getStyle(n,r);this._resolveAnimations(n,o,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,o){this._setStyle(t,o,"active",!1)}setHoverStyle(t,n,o){this._setStyle(t,o,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,o=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const r=o.length,i=n.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,n,o=!0){const r=this._cachedMeta,i=r.data,s=t+n;let c;const d=h=>{for(h.length+=n,c=h.length-1;c>=s;c--)h[c]=h[c-n]};for(d(i),c=t;c<s;++c)i[c]=new this.dataElementType;this._parsing&&d(r._parsed),this.parse(t,n),o&&this.updateElements(i,t,n,"reset")}updateElements(t,n,o,r){}_removeElements(t,n){const o=this._cachedMeta;if(this._parsing){const r=o._parsed.splice(t,n);o._stacked&&Ol(o,r)}o.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,o,r]=t;this[n](o,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",t,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}le(us,"defaults",{}),le(us,"datasetElementType",null),le(us,"dataElementType",null);function DN(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let r=0,i=n.length;r<i;r++)o=o.concat(n[r].controller.getAllParsedValues(e));e._cache.$bar=lV(o.sort((r,i)=>r-i))}return e._cache.$bar}function EN(e){const t=e.iScale,n=DN(t,e.type);let o=t._length,r,i,s,c;const d=()=>{s===32767||s===-32768||(Vl(c)&&(o=Math.min(o,Math.abs(s-c)||o)),c=s)};for(r=0,i=n.length;r<i;++r)s=t.getPixelForValue(n[r]),d();for(c=void 0,r=0,i=t.ticks.length;r<i;++r)s=t.getPixelForTick(r),d();return o}function TN(e,t,n,o){const r=n.barThickness;let i,s;return Se(r)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=r*o,s=1),{chunk:i/o,ratio:s,start:t.pixels[e]-i/2}}function HN(e,t,n,o){const r=t.pixels,i=r[e];let s=e>0?r[e-1]:null,c=e<r.length-1?r[e+1]:null;const d=n.categoryPercentage;s===null&&(s=i-(c===null?t.end-t.start:c-i)),c===null&&(c=i+i-s);const h=i-(i-Math.min(s,c))/2*d;return{chunk:Math.abs(c-s)/2*d/o,ratio:n.barPercentage,start:h}}function ON(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),s=Math.min(r,i),c=Math.max(r,i);let d=s,h=c;Math.abs(s)>Math.abs(c)&&(d=c,h=s),t[n.axis]=h,t._custom={barStart:d,barEnd:h,start:r,end:i,min:s,max:c}}function WV(e,t,n,o){return $e(e)?ON(e,t,n,o):t[n.axis]=n.parse(e,o),t}function GV(e,t,n,o){const r=e.iScale,i=e.vScale,s=r.getLabels(),c=r===i,d=[];let h,u,p,y;for(h=n,u=n+o;h<u;++h)y=t[h],p={},p[r.axis]=c||r.parse(s[h],h),d.push(WV(y,p,i,h));return d}function o_(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function jN(e,t,n){return e!==0?Xt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function FN(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}function NN(e,t,n,o){let r=t.borderSkipped;const i={};if(!r){e.borderSkipped=i;return}if(r===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:c,reverse:d,top:h,bottom:u}=FN(e);r==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=h:(n._bottom||0)===o?r=u:(i[KV(u,s,c,d)]=!0,r=h)),i[KV(r,s,c,d)]=!0,e.borderSkipped=i}function KV(e,t,n,o){return o?(e=RN(e,t,n),e=XV(e,n,t)):e=XV(e,t,n),e}function RN(e,t,n){return e===t?n:e===n?t:e}function XV(e,t,n){return e==="start"?t:e==="end"?n:e}function $N(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class oS extends us{parsePrimitiveData(t,n,o,r){return GV(t,n,o,r)}parseArrayData(t,n,o,r){return GV(t,n,o,r)}parseObjectData(t,n,o,r){const{iScale:i,vScale:s}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h=i.axis==="x"?c:d,u=s.axis==="x"?c:d,p=[];let y,f,m,g;for(y=o,f=o+r;y<f;++y)g=n[y],m={},m[i.axis]=i.parse(ns(g,h),y),p.push(WV(ns(g,u),m,s,y));return p}updateRangeFromParsed(t,n,o,r){super.updateRangeFromParsed(t,n,o,r);const i=o._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:o,vScale:r}=n,i=this.getParsed(t),s=i._custom,c=o_(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,o,r){const i=r==="reset",{index:s,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),h=c.isHorizontal(),u=this._getRuler(),{sharedOptions:p,includeOptions:y}=this._getSharedOptions(n,r);for(let f=n;f<n+o;f++){const m=this.getParsed(f),g=i||Se(m[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(f),k=this._calculateBarIndexPixels(f,u),M=(m._stacks||{})[c.axis],w={horizontal:h,base:g.base,enableBorderRadius:!M||o_(m._custom)||s===M._top||s===M._bottom,x:h?g.head:k.center,y:h?k.center:g.head,height:h?k.size:Math.abs(g.size),width:h?Math.abs(g.size):k.size};y&&(w.options=p||this.resolveDataElementOptions(f,t[f].active?"active":r));const x=w.options||t[f].options;NN(w,x,M,s),$N(w,x,u.ratio),this.updateElement(t[f],f,w,r)}}_getStacks(t,n){const{iScale:o}=this._cachedMeta,r=o.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=o.options.stacked,s=[],c=this._cachedMeta.controller.getParsed(n),d=c&&c[o.axis],h=u=>{const p=u._parsed.find(f=>f[o.axis]===d),y=p&&p[u.vScale.axis];if(Se(y)||isNaN(y))return!0};for(const u of r)if(!(n!==void 0&&h(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(o=>t[o].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const o of this.chart.data.datasets)t[ge(this.chart.options.indexAxis==="x"?o.xAxisID:o.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,o){const r=this._getStacks(t,o),i=n!==void 0?r.indexOf(n):-1;return i===-1?r.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,o=n.iScale,r=[];let i,s;for(i=0,s=n.data.length;i<s;++i)r.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const c=t.barThickness;return{min:c||EN(n),pixels:r,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:t.grouped,ratio:c?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:o,index:r},options:{base:i,minBarLength:s}}=this,c=i||0,d=this.getParsed(t),h=d._custom,u=o_(h);let p=d[n.axis],y=0,f=o?this.applyStack(n,d,o):p,m,g;f!==p&&(y=f-p,f=p),u&&(p=h.barStart,f=h.barEnd-h.barStart,p!==0&&Xt(p)!==Xt(h.barEnd)&&(y=0),y+=p);const k=!Se(i)&&!u?i:y;let M=n.getPixelForValue(k);if(this.chart.getDataVisibility(t)?m=n.getPixelForValue(y+f):m=M,g=m-M,Math.abs(g)<s){g=jN(g,n,c)*s,p===c&&(M-=g/2);const w=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),b=Math.min(w,x),C=Math.max(w,x);M=Math.max(Math.min(M,C),b),m=M+g,o&&!u&&(d._stacks[n.axis]._visualValues[r]=n.getValueForPixel(m)-n.getValueForPixel(M))}if(M===n.getPixelForValue(c)){const w=Xt(g)*n.getLineWidthForValue(c)/2;M+=w,g-=w}return{size:g,base:M,head:m,center:m+g/2}}_calculateBarIndexPixels(t,n){const o=n.scale,r=this.options,i=r.skipNull,s=ge(r.maxBarThickness,1/0);let c,d;const h=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,p=r.barThickness==="flex"?HN(t,n,r,u*h):TN(t,n,r,u*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(ge(y,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0)+f;c=p.start+p.chunk*m+p.chunk/2,d=Math.min(s,p.chunk*p.ratio)}else c=o.getPixelForValue(this.getParsed(t)[o.axis],t),d=Math.min(s,n.min*n.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const t=this._cachedMeta,n=t.vScale,o=t.data,r=o.length;let i=0;for(;i<r;++i)this.getParsed(i)[n.axis]!==null&&!o[i].hidden&&o[i].draw(this._ctx)}}le(oS,"id","bar"),le(oS,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),le(oS,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function UN(e,t,n){let o=1,r=1,i=0,s=0;if(t<Te){const c=e,d=c+t,h=Math.cos(c),u=Math.sin(c),p=Math.cos(d),y=Math.sin(d),f=(x,b,C)=>ql(x,c,d,!0)?1:Math.max(b,b*n,C,C*n),m=(x,b,C)=>ql(x,c,d,!0)?-1:Math.min(b,b*n,C,C*n),g=f(0,h,p),k=f(We,u,y),M=m(Ae,h,p),w=m(Ae+We,u,y);o=(g-M)/2,r=(k-w)/2,i=-(g+M)/2,s=-(k+w)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:s}}class Os extends us{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const o=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=o;else{let i=d=>+o[d];if(we(o[t])){const{key:d="value"}=this._parsing;i=h=>+ns(o[h],d)}let s,c;for(s=t,c=t+n;s<c;++s)r._parsed[s]=i(s)}}_getRotation(){return la(this.options.rotation-90)}_getCircumference(){return la(this.options.circumference)}_getRotationExtents(){let t=Te,n=-Te;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const r=this.chart.getDatasetMeta(o).controller,i=r._getRotation(),s=r._getCircumference();t=Math.min(t,i),n=Math.max(n,i+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:o}=n,r=this._cachedMeta,i=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-s)/2,0),d=Math.min(Jj(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:y,ratioY:f,offsetX:m,offsetY:g}=UN(p,u,d),k=(o.width-s)/y,M=(o.height-s)/f,w=Math.max(Math.min(k,M)/2,0),x=YB(this.options.radius,w),b=Math.max(x*d,0),C=(x-b)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,r.total=this.calculateTotal(),this.outerRadius=x-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*h,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const o=this.options,r=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/Te)}updateElements(t,n,o,r){const i=r==="reset",s=this.chart,c=s.chartArea,h=s.options.animation,u=(c.left+c.right)/2,p=(c.top+c.bottom)/2,y=i&&h.animateScale,f=y?0:this.innerRadius,m=y?0:this.outerRadius,{sharedOptions:g,includeOptions:k}=this._getSharedOptions(n,r);let M=this._getRotation(),w;for(w=0;w<n;++w)M+=this._circumference(w,i);for(w=n;w<n+o;++w){const x=this._circumference(w,i),b=t[w],C={x:u+this.offsetX,y:p+this.offsetY,startAngle:M,endAngle:M+x,circumference:x,outerRadius:m,innerRadius:f};k&&(C.options=g||this.resolveDataElementOptions(w,b.active?"active":r)),M+=x,this.updateElement(b,w,C,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let o=0,r;for(r=0;r<n.length;r++){const i=t._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,r=o.data.labels||[],i=UI(n._parsed[t],o.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const o=this.chart;let r,i,s,c,d;if(!t){for(r=0,i=o.data.datasets.length;r<i;++r)if(o.isDatasetVisible(r)){s=o.getDatasetMeta(r),t=s.data,c=s.controller;break}}if(!t)return 0;for(r=0,i=t.length;r<i;++r)d=c.resolveDataElementOptions(r),d.borderAlign!=="inner"&&(n=Math.max(n,d.borderWidth||0,d.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let o=0,r=t.length;o<r;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let o=0;o<t;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(t){return Math.max(ge(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}le(Os,"id","doughnut"),le(Os,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),le(Os,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),le(Os,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((d,h)=>{const p=t.getDatasetMeta(0).controller.getStyle(h);return{text:d,fillStyle:p.backgroundColor,fontColor:i,hidden:!t.getDataVisibility(h),lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,textAlign:r,pointStyle:o,borderRadius:s&&(c||p.borderRadius),index:h}}):[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class rS extends us{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:o,data:r=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:c,count:d}=bF(n,r,s);this._drawStart=c,this._drawCount=d,MF(n)&&(c=0,d=r.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=r;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(o,void 0,{animated:!s,options:h},t),this.updateElements(r,c,d,t)}updateElements(t,n,o,r){const i=r==="reset",{iScale:s,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:u,includeOptions:p}=this._getSharedOptions(n,r),y=s.axis,f=c.axis,{spanGaps:m,segment:g}=this.options,k=Pl(m)?m:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||i||r==="none",w=n+o,x=t.length;let b=n>0&&this.getParsed(n-1);for(let C=0;C<x;++C){const S=t[C],L=M?S:{};if(C<n||C>=w){L.skip=!0;continue}const v=this.getParsed(C),I=Se(v[f]),q=L[y]=s.getPixelForValue(v[y],C),B=L[f]=i||I?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,v,d):v[f],C);L.skip=isNaN(q)||isNaN(B)||I,L.stop=C>0&&Math.abs(v[y]-b[y])>k,g&&(L.parsed=v,L.raw=h.data[C]),p&&(L.options=u||this.resolveDataElementOptions(C,S.active?"active":r)),M||this.updateElement(S,C,L,r),b=v}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,o=n.options&&n.options.borderWidth||0,r=t.data||[];if(!r.length)return o;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}le(rS,"id","line"),le(rS,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),le(rS,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class r_ extends Os{}le(r_,"id","pie"),le(r_,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function ps(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class i_{constructor(t){le(this,"options");this.options=t||{}}static override(t){Object.assign(i_.prototype,t)}init(){}formats(){return ps()}parse(){return ps()}format(){return ps()}add(){return ps()}diff(){return ps()}startOf(){return ps()}endOf(){return ps()}}var WN={_date:i_};function GN(e,t,n,o){const{controller:r,data:i,_sorted:s}=e,c=r._cachedMeta.iScale,d=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(c&&t===c.axis&&t!=="r"&&s&&i.length){const h=c._reversePixels?yF:rs;if(o){if(r._sharedOptions){const u=i[0],p=typeof u.getRange=="function"&&u.getRange(t);if(p){const y=h(i,t,n-p),f=h(i,t,n+p);return{lo:y.lo,hi:f.hi}}}}else{const u=h(i,t,n);if(d){const{vScale:p}=r._cachedMeta,{_parsed:y}=e,f=y.slice(0,u.lo+1).reverse().findIndex(g=>!Se(g[p.axis]));u.lo-=Math.max(0,f);const m=y.slice(u.hi).findIndex(g=>!Se(g[p.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:i.length-1}}function iS(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let c=0,d=i.length;c<d;++c){const{index:h,data:u}=i[c],{lo:p,hi:y}=GN(i[c],t,s,r);for(let f=p;f<=y;++f){const m=u[f];m.skip||o(m,h,f)}}}function KN(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(o,r){const i=t?Math.abs(o.x-r.x):0,s=n?Math.abs(o.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function s_(e,t,n,o,r){const i=[];return!r&&!e.isPointInArea(t)||iS(e,n,t,function(c,d,h){!r&&!Tl(c,e.chartArea,0)||c.inRange(t.x,t.y,o)&&i.push({element:c,datasetIndex:d,index:h})},!0),i}function XN(e,t,n,o){let r=[];function i(s,c,d){const{startAngle:h,endAngle:u}=s.getProps(["startAngle","endAngle"],o),{angle:p}=rV(s,{x:t.x,y:t.y});ql(p,h,u)&&r.push({element:s,datasetIndex:c,index:d})}return iS(e,n,t,i),r}function ZN(e,t,n,o,r,i){let s=[];const c=KN(n);let d=Number.POSITIVE_INFINITY;function h(u,p,y){const f=u.inRange(t.x,t.y,r);if(o&&!f)return;const m=u.getCenterPoint(r);if(!(!!i||e.isPointInArea(m))&&!f)return;const k=c(t,m);k<d?(s=[{element:u,datasetIndex:p,index:y}],d=k):k===d&&s.push({element:u,datasetIndex:p,index:y})}return iS(e,n,t,h),s}function l_(e,t,n,o,r,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!o?XN(e,t,n,r):ZN(e,t,n,o,r,i)}function ZV(e,t,n,o,r){const i=[],s=n==="x"?"inXRange":"inYRange";let c=!1;return iS(e,n,t,(d,h,u)=>{d[s]&&d[s](t[n],r)&&(i.push({element:d,datasetIndex:h,index:u}),c=c||d.inRange(t.x,t.y,r))}),o&&!c?[]:i}var YN={modes:{index(e,t,n,o){const r=ds(t,e),i=n.axis||"x",s=n.includeInvisible||!1,c=n.intersect?s_(e,r,i,o,s):l_(e,r,i,!1,o,s),d=[];return c.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const u=c[0].index,p=h.data[u];p&&!p.skip&&d.push({element:p,datasetIndex:h.index,index:u})}),d):[]},dataset(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let c=n.intersect?s_(e,r,i,o,s):l_(e,r,i,!1,o,s);if(c.length>0){const d=c[0].datasetIndex,h=e.getDatasetMeta(d).data;c=[];for(let u=0;u<h.length;++u)c.push({element:h[u],datasetIndex:d,index:u})}return c},point(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return s_(e,r,i,o,s)},nearest(e,t,n,o){const r=ds(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return l_(e,r,i,n.intersect,o,s)},x(e,t,n,o){const r=ds(t,e);return ZV(e,r,"x",n.intersect,o)},y(e,t,n,o){const r=ds(t,e);return ZV(e,r,"y",n.intersect,o)}}};const YV=["left","top","right","bottom"];function jl(e,t){return e.filter(n=>n.pos===t)}function QV(e,t){return e.filter(n=>YV.indexOf(n.pos)===-1&&n.box.axis===t)}function Fl(e,t){return e.sort((n,o)=>{const r=t?o:n,i=t?n:o;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function QN(e){const t=[];let n,o,r,i,s,c;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],{position:i,options:{stack:s,stackWeight:c=1}}=r,t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&i+s,stackWeight:c});return t}function JN(e){const t={};for(const n of e){const{stack:o,pos:r,stackWeight:i}=n;if(!o||!YV.includes(r))continue;const s=t[o]||(t[o]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function eR(e,t){const n=JN(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,s,c;for(i=0,s=e.length;i<s;++i){c=e[i];const{fullSize:d}=c.box,h=n[c.stack],u=h&&c.stackWeight/h.weight;c.horizontal?(c.width=u?u*o:d&&t.availableWidth,c.height=r):(c.width=o,c.height=u?u*r:d&&t.availableHeight)}return n}function tR(e){const t=QN(e),n=Fl(t.filter(h=>h.box.fullSize),!0),o=Fl(jl(t,"left"),!0),r=Fl(jl(t,"right")),i=Fl(jl(t,"top"),!0),s=Fl(jl(t,"bottom")),c=QV(t,"x"),d=QV(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(d).concat(s).concat(c),chartArea:jl(t,"chartArea"),vertical:o.concat(r).concat(d),horizontal:i.concat(s).concat(c)}}function JV(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function ez(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function aR(e,t,n,o){const{pos:r,box:i}=n,s=e.maxPadding;if(!we(r)){n.size&&(e[r]-=n.size);const p=o[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?i.height:i.width),n.size=p.size/p.count,e[r]+=n.size}i.getPadding&&ez(s,i.getPadding());const c=Math.max(0,t.outerWidth-JV(s,e,"left","right")),d=Math.max(0,t.outerHeight-JV(s,e,"top","bottom")),h=c!==e.w,u=d!==e.h;return e.w=c,e.h=d,n.horizontal?{same:h,other:u}:{same:u,other:h}}function nR(e){const t=e.maxPadding;function n(o){const r=Math.max(t[o]-e[o],0);return e[o]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function oR(e,t){const n=t.maxPadding;function o(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(t[s],n[s])}),i}return o(e?["left","right"]:["top","bottom"])}function Nl(e,t,n,o){const r=[];let i,s,c,d,h,u;for(i=0,s=e.length,h=0;i<s;++i){c=e[i],d=c.box,d.update(c.width||t.w,c.height||t.h,oR(c.horizontal,t));const{same:p,other:y}=aR(t,n,c,o);h|=p&&r.length,u=u||y,d.fullSize||r.push(c)}return h&&Nl(r,t,n,o)||u}function sS(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function tz(e,t,n,o){const r=n.padding;let{x:i,y:s}=t;for(const c of e){const d=c.box,h=o[c.stack]||{placed:0,weight:1},u=c.stackWeight/h.weight||1;if(c.horizontal){const p=t.w*u,y=h.size||d.height;Vl(h.start)&&(s=h.start),d.fullSize?sS(d,r.left,s,n.outerWidth-r.right-r.left,y):sS(d,t.left+h.placed,s,p,y),h.start=s,h.placed+=p,s=d.bottom}else{const p=t.h*u,y=h.size||d.width;Vl(h.start)&&(i=h.start),d.fullSize?sS(d,i,r.top,y,n.outerHeight-r.bottom-r.top):sS(d,i,t.top+h.placed,y,p),h.start=i,h.placed+=p,i=d.right}}t.x=i,t.y=s}var bt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=gt(e.options.layout.padding),i=Math.max(t-r.width,0),s=Math.max(n-r.height,0),c=tR(e.boxes),d=c.vertical,h=c.horizontal;_e(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=d.reduce((g,k)=>k.box.options&&k.box.options.display===!1?g:g+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),y=Object.assign({},r);ez(y,gt(o));const f=Object.assign({maxPadding:y,w:i,h:s,x:r.left,y:r.top},r),m=eR(d.concat(h),p);Nl(c.fullSize,f,p,m),Nl(d,f,p,m),Nl(h,f,p,m)&&Nl(d,f,p,m),nR(f),tz(c.leftAndTop,f,p,m),f.x+=f.w,f.y+=f.h,tz(c.rightAndBottom,f,p,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},_e(c.chartArea,g=>{const k=g.box;Object.assign(k,e.chartArea),k.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class az{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,o){}removeEventListener(t,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,o,r){return n=Math.max(0,n||t.width),o=o||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):o)}}isAttached(t){return!0}updateConfig(t){}}class rR extends az{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const lS="$chartjs",iR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nz=e=>e===null||e==="";function sR(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[lS]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nz(r)){const i=_V(e,"width");i!==void 0&&(e.width=i)}if(nz(o))if(e.style.height==="")e.height=e.width/(t||2);else{const i=_V(e,"height");i!==void 0&&(e.height=i)}return e}const oz=cN?{passive:!0}:!1;function lR(e,t,n){e&&e.addEventListener(t,n,oz)}function cR(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,oz)}function dR(e,t){const n=iR[e.type]||e.type,{x:o,y:r}=ds(e,t);return{type:n,chart:t,native:e,x:o!==void 0?o:null,y:r!==void 0?r:null}}function cS(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function hR(e,t,n){const o=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||cS(c.addedNodes,o),s=s&&!cS(c.removedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function uR(e,t,n){const o=e.canvas,r=new MutationObserver(i=>{let s=!1;for(const c of i)s=s||cS(c.removedNodes,o),s=s&&!cS(c.addedNodes,o);s&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const Rl=new Map;let rz=0;function iz(){const e=window.devicePixelRatio;e!==rz&&(rz=e,Rl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function pR(e,t){Rl.size||window.addEventListener("resize",iz),Rl.set(e,t)}function yR(e){Rl.delete(e),Rl.size||window.removeEventListener("resize",iz)}function fR(e,t,n){const o=e.canvas,r=o&&e_(o);if(!r)return;const i=dV((c,d)=>{const h=r.clientWidth;n(c,d),h<r.clientWidth&&n()},window),s=new ResizeObserver(c=>{const d=c[0],h=d.contentRect.width,u=d.contentRect.height;h===0&&u===0||i(h,u)});return s.observe(r),pR(e,i),s}function c_(e,t,n){n&&n.disconnect(),t==="resize"&&yR(e)}function mR(e,t,n){const o=e.canvas,r=dV(i=>{e.ctx!==null&&n(dR(i,e))},e);return lR(o,t,r),r}class kR extends az{acquireContext(t,n){const o=t&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(sR(t,n),o):null}releaseContext(t){const n=t.canvas;if(!n[lS])return!1;const o=n[lS].initial;["height","width"].forEach(i=>{const s=o[i];Se(s)?n.removeAttribute(i):n.setAttribute(i,s)});const r=o.style||{};return Object.keys(r).forEach(i=>{n.style[i]=r[i]}),n.width=n.width,delete n[lS],!0}addEventListener(t,n,o){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),s={attach:hR,detach:uR,resize:fR}[n]||mR;r[n]=s(t,n,o)}removeEventListener(t,n){const o=t.$proxies||(t.$proxies={}),r=o[n];if(!r)return;({attach:c_,detach:c_,resize:c_}[n]||cR)(t,n,r),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,o,r){return lN(t,n,o,r)}isAttached(t){const n=t&&e_(t);return!!(n&&n.isConnected)}}function gR(e){return!JI()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?rR:kR}let ha=(OS=class{constructor(){le(this,"x");le(this,"y");le(this,"active",!1);le(this,"options");le(this,"$animations")}tooltipPosition(t){const{x:n,y:o}=this.getProps(["x","y"],t);return{x:n,y:o}}hasValue(){return Pl(this.x)&&Pl(this.y)}getProps(t,n){const o=this.$animations;if(!n||!o)return this;const r={};return t.forEach(i=>{r[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),r}},le(OS,"defaults",{}),le(OS,"defaultRoutes"),OS);function bR(e,t){const n=e.options.ticks,o=MR(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?wR(t):[],s=i.length,c=i[0],d=i[s-1],h=[];if(s>r)return vR(t,h,i,s/r),h;const u=xR(i,t,r);if(s>0){let p,y;const f=s>1?Math.round((d-c)/(s-1)):null;for(dS(t,h,u,Se(f)?0:c-f,c),p=0,y=s-1;p<y;p++)dS(t,h,u,i[p],i[p+1]);return dS(t,h,u,d,Se(f)?t.length:d+f),h}return dS(t,h,u),h}function MR(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}function xR(e,t,n){const o=CR(e),r=t.length/n;if(!o)return Math.max(r,1);const i=sF(o);for(let s=0,c=i.length-1;s<c;s++){const d=i[s];if(d>r)return d}return Math.max(r,1)}function wR(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}function vR(e,t,n,o){let r=0,i=n[0],s;for(o=Math.ceil(o),s=0;s<e.length;s++)s===i&&(t.push(e[s]),r++,i=n[r*o])}function dS(e,t,n,o,r){const i=ge(o,0),s=Math.min(ge(r,e.length),e.length);let c=0,d,h,u;for(n=Math.ceil(n),r&&(d=r-o,n=d/Math.floor(d/n)),u=i;u<0;)c++,u=Math.round(i+c*n);for(h=Math.max(i,0);h<s;h++)h===u&&(t.push(e[h]),c++,u=Math.round(i+c*n))}function CR(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}const LR=e=>e==="left"?"right":e==="right"?"left":e,sz=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,lz=(e,t)=>Math.min(t||e,e);function cz(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function SR(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,s=e._endPixel,c=1e-6;let d=e.getPixelForTick(r),h;if(!(n&&(o===1?h=Math.max(d-i,s-d):t===0?h=(e.getPixelForTick(1)-d)/2:h=(d-e.getPixelForTick(r-1))/2,d+=r<t?h:-h,d<i-c||d>s+c)))return d}function IR(e,t){_e(e,n=>{const o=n.gc,r=o.length/2;let i;if(r>t){for(i=0;i<r;++i)delete n.data[o[i]];o.splice(0,r)}})}function $l(e){return e.drawTicks?e.tickLength:0}function dz(e,t){if(!e.display)return 0;const n=Qe(e.font,t),o=gt(e.padding);return($e(e.text)?e.text.length:1)*n.lineHeight+o.height}function _R(e,t){return ls(e,{scale:t,type:"scale"})}function AR(e,t,n){return ls(e,{tick:n,index:t,type:"tick"})}function BR(e,t,n){let o=NI(e);return(n&&t!=="right"||!n&&t==="right")&&(o=LR(o)),o}function VR(e,t,n,o){const{top:r,left:i,bottom:s,right:c,chart:d}=e,{chartArea:h,scales:u}=d;let p=0,y,f,m;const g=s-r,k=c-i;if(e.isHorizontal()){if(f=Ye(o,i,c),we(n)){const M=Object.keys(n)[0],w=n[M];m=u[M].getPixelForValue(w)+g-t}else n==="center"?m=(h.bottom+h.top)/2+g-t:m=sz(e,n,t);y=c-i}else{if(we(n)){const M=Object.keys(n)[0],w=n[M];f=u[M].getPixelForValue(w)-k+t}else n==="center"?f=(h.left+h.right)/2-k+t:f=sz(e,n,t);m=Ye(o,s,r),p=n==="left"?-We:We}return{titleX:f,titleY:m,maxWidth:y,rotation:p}}class js extends ha{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:o,_suggestedMax:r}=this;return t=Kt(t,Number.POSITIVE_INFINITY),n=Kt(n,Number.NEGATIVE_INFINITY),o=Kt(o,Number.POSITIVE_INFINITY),r=Kt(r,Number.NEGATIVE_INFINITY),{min:Kt(t,o),max:Kt(n,r),minDefined:Xe(t),maxDefined:Xe(n)}}getMinMax(t){let{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds(),s;if(r&&i)return{min:n,max:o};const c=this.getMatchingVisibleMetas();for(let d=0,h=c.length;d<h;++d)s=c[d].controller.getMinMax(this,t),r||(n=Math.min(n,s.min)),i||(o=Math.max(o,s.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Kt(n,Kt(o,n)),max:Kt(o,Kt(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pe(this.options.beforeUpdate,[this])}update(t,n,o){const{beginAtZero:r,grace:i,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=jF(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=c<this.ticks.length;this._convertTicksToLabels(d?cz(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=bR(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,t=!t),this._startPixel=n,this._endPixel=o,this._reversePixels=t,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pe(this.options.afterUpdate,[this])}beforeSetDimensions(){Pe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Pe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let o,r,i;for(o=0,r=t.length;o<r;o++)i=t[o],i.label=Pe(n.callback,[i.value,o,t],this)}afterTickToLabelConversion(){Pe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,o=lz(this.ticks.length,t.ticks.maxTicksLimit),r=n.minRotation||0,i=n.maxRotation;let s=r,c,d,h;if(!this._isVisible()||!n.display||r>=i||o<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),p=u.widest.width,y=u.highest.height,f=Ze(this.chart.width-p,0,this.maxWidth);c=t.offset?this.maxWidth/o:f/(o-1),p+6>c&&(c=f/(o-(t.offset?.5:1)),d=this.maxHeight-$l(t.grid)-n.padding-dz(t.title,this.chart.options.font),h=Math.sqrt(p*p+y*y),s=hF(Math.min(Math.asin(Ze((u.highest.height+6)/c,-1,1)),Math.asin(Ze(d/h,-1,1))-Math.asin(Ze(y/h,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:o,title:r,grid:i}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){const d=dz(r,n.options.font);if(c?(t.width=this.maxWidth,t.height=$l(i)+d):(t.height=this.maxHeight,t.width=$l(i)+d),o.display&&this.ticks.length){const{first:h,last:u,widest:p,highest:y}=this._getLabelSizes(),f=o.padding*2,m=la(this.labelRotation),g=Math.cos(m),k=Math.sin(m);if(c){const M=o.mirror?0:k*p.width+g*y.height;t.height=Math.min(this.maxHeight,t.height+M+f)}else{const M=o.mirror?0:g*p.width+k*y.height;t.width=Math.min(this.maxWidth,t.width+M+f)}this._calculatePadding(h,u,k,g)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,o,r){const{ticks:{align:i,padding:s},position:c}=this.options,d=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,f=0;d?h?(y=r*t.width,f=o*n.height):(y=o*t.height,f=r*n.width):i==="start"?f=n.width:i==="end"?y=t.width:i!=="inner"&&(y=t.width/2,f=n.width/2),this.paddingLeft=Math.max((y-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-p+s)*this.width/(this.width-p),0)}else{let u=n.height/2,p=t.height/2;i==="start"?(u=0,p=t.height):i==="end"&&(u=n.height,p=0),this.paddingTop=u+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,o;for(n=0,o=t.length;n<o;n++)Se(t[n].label)&&(t.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=cz(o,n)),this._labelSizes=t=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,o){const{ctx:r,_longestTextCache:i}=this,s=[],c=[],d=Math.floor(n/lz(n,o));let h=0,u=0,p,y,f,m,g,k,M,w,x,b,C;for(p=0;p<n;p+=d){if(m=t[p].label,g=this._resolveTickFontOptions(p),r.font=k=g.string,M=i[k]=i[k]||{data:{},gc:[]},w=g.lineHeight,x=b=0,!Se(m)&&!$e(m))x=mV(r,M.data,M.gc,x,m),b=w;else if($e(m))for(y=0,f=m.length;y<f;++y)C=m[y],!Se(C)&&!$e(C)&&(x=mV(r,M.data,M.gc,x,C),b+=w);s.push(x),c.push(b),h=Math.max(x,h),u=Math.max(b,u)}IR(i,n);const S=s.indexOf(h),L=c.indexOf(u),v=I=>({width:s[I]||0,height:c[I]||0});return{first:v(0),last:v(n-1),widest:v(S),highest:v(L),widths:s,heights:c}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return pF(this._alignToPixels?ss(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const o=n[t];return o.$context||(o.$context=AR(this.getContext(),t,o))}return this.$context||(this.$context=_R(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=la(this.labelRotation),o=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,c=i?i.widest.width+s:0,d=i?i.highest.height+s:0;return this.isHorizontal()?d*o>c*r?c/o:d/r:d*r<c*o?d/o:c/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,o=this.chart,r=this.options,{grid:i,position:s,border:c}=r,d=i.offset,h=this.isHorizontal(),p=this.ticks.length+(d?1:0),y=$l(i),f=[],m=c.setContext(this.getContext()),g=m.display?m.width:0,k=g/2,M=function(H){return ss(o,H,g)};let w,x,b,C,S,L,v,I,q,B,A,V;if(s==="top")w=M(this.bottom),L=this.bottom-y,I=w-k,B=M(t.top)+k,V=t.bottom;else if(s==="bottom")w=M(this.top),B=t.top,V=M(t.bottom)-k,L=w+k,I=this.top+y;else if(s==="left")w=M(this.right),S=this.right-y,v=w-k,q=M(t.left)+k,A=t.right;else if(s==="right")w=M(this.left),q=t.left,A=M(t.right)-k,S=w+k,v=this.left+y;else if(n==="x"){if(s==="center")w=M((t.top+t.bottom)/2+.5);else if(we(s)){const H=Object.keys(s)[0],O=s[H];w=M(this.chart.scales[H].getPixelForValue(O))}B=t.top,V=t.bottom,L=w+k,I=L+y}else if(n==="y"){if(s==="center")w=M((t.left+t.right)/2);else if(we(s)){const H=Object.keys(s)[0],O=s[H];w=M(this.chart.scales[H].getPixelForValue(O))}S=w-k,v=S-y,q=t.left,A=t.right}const T=ge(r.ticks.maxTicksLimit,p),W=Math.max(1,Math.ceil(p/T));for(x=0;x<p;x+=W){const H=this.getContext(x),O=i.setContext(H),U=c.setContext(H),J=O.lineWidth,D=O.color,F=U.dash||[],N=U.dashOffset,Y=O.tickWidth,Q=O.tickColor,re=O.tickBorderDash||[],ue=O.tickBorderDashOffset;b=SR(this,x,d),b!==void 0&&(C=ss(o,b,J),h?S=v=q=A=C:L=I=B=V=C,f.push({tx1:S,ty1:L,tx2:v,ty2:I,x1:q,y1:B,x2:A,y2:V,width:J,color:D,borderDash:F,borderDashOffset:N,tickWidth:Y,tickColor:Q,tickBorderDash:re,tickBorderDashOffset:ue}))}return this._ticksLength=p,this._borderValue=w,f}_computeLabelItems(t){const n=this.axis,o=this.options,{position:r,ticks:i}=o,s=this.isHorizontal(),c=this.ticks,{align:d,crossAlign:h,padding:u,mirror:p}=i,y=$l(o.grid),f=y+u,m=p?-u:f,g=-la(this.labelRotation),k=[];let M,w,x,b,C,S,L,v,I,q,B,A,V="middle";if(r==="top")S=this.bottom-m,L=this._getXAxisLabelAlignment();else if(r==="bottom")S=this.top+m,L=this._getXAxisLabelAlignment();else if(r==="left"){const W=this._getYAxisLabelAlignment(y);L=W.textAlign,C=W.x}else if(r==="right"){const W=this._getYAxisLabelAlignment(y);L=W.textAlign,C=W.x}else if(n==="x"){if(r==="center")S=(t.top+t.bottom)/2+f;else if(we(r)){const W=Object.keys(r)[0],H=r[W];S=this.chart.scales[W].getPixelForValue(H)+f}L=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")C=(t.left+t.right)/2-f;else if(we(r)){const W=Object.keys(r)[0],H=r[W];C=this.chart.scales[W].getPixelForValue(H)}L=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(d==="start"?V="top":d==="end"&&(V="bottom"));const T=this._getLabelSizes();for(M=0,w=c.length;M<w;++M){x=c[M],b=x.label;const W=i.setContext(this.getContext(M));v=this.getPixelForTick(M)+i.labelOffset,I=this._resolveTickFontOptions(M),q=I.lineHeight,B=$e(b)?b.length:1;const H=B/2,O=W.color,U=W.textStrokeColor,J=W.textStrokeWidth;let D=L;s?(C=v,L==="inner"&&(M===w-1?D=this.options.reverse?"left":"right":M===0?D=this.options.reverse?"right":"left":D="center"),r==="top"?h==="near"||g!==0?A=-B*q+q/2:h==="center"?A=-T.highest.height/2-H*q+q:A=-T.highest.height+q/2:h==="near"||g!==0?A=q/2:h==="center"?A=T.highest.height/2-H*q:A=T.highest.height-B*q,p&&(A*=-1),g!==0&&!W.showLabelBackdrop&&(C+=q/2*Math.sin(g))):(S=v,A=(1-B)*q/2);let F;if(W.showLabelBackdrop){const N=gt(W.backdropPadding),Y=T.heights[M],Q=T.widths[M];let re=A-N.top,ue=0-N.left;switch(V){case"middle":re-=Y/2;break;case"bottom":re-=Y;break}switch(L){case"center":ue-=Q/2;break;case"right":ue-=Q;break;case"inner":M===w-1?ue-=Q:M>0&&(ue-=Q/2);break}F={left:ue,top:re,width:Q+N.width,height:Y+N.height,color:W.backdropColor}}k.push({label:b,font:I,textOffset:A,options:{rotation:g,color:O,strokeColor:U,strokeWidth:J,textAlign:D,textBaseline:V,translation:[C,S],backdrop:F}})}return k}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-la(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:o,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),c=t+i,d=s.widest.width;let h,u;return n==="left"?r?(u=this.right+i,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u+=d)):(u=this.right-c,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u=this.left)):n==="right"?r?(u=this.left+i,o==="near"?h="right":o==="center"?(h="center",u-=d/2):(h="left",u-=d)):(u=this.left+c,o==="near"?h="left":o==="center"?(h="center",u+=d/2):(h="right",u=this.right)):h="right",{textAlign:h,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:o,top:r,width:i,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(o,r,i,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,o=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const c=(d,h,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(d.x,d.y),o.lineTo(h.x,h.y),o.stroke(),o.restore())};if(n.display)for(i=0,s=r.length;i<s;++i){const d=r[i];n.drawOnChartArea&&c({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),n.drawTicks&&c({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:o,grid:r}}=this,i=o.setContext(this.getContext()),s=o.display?i.width:0;if(!s)return;const c=r.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,u,p,y;this.isHorizontal()?(h=ss(t,this.left,s)-s/2,u=ss(t,this.right,c)+c/2,p=y=d):(p=ss(t,this.top,s)-s/2,y=ss(t,this.bottom,c)+c/2,h=u=d),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(h,p),n.lineTo(u,y),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const o=this.ctx,r=this._computeLabelArea();r&&ZL(o,r);const i=this.getLabelItems(t);for(const s of i){const c=s.options,d=s.font,h=s.label,u=s.textOffset;Hl(o,h,0,u,d,c)}r&&YL(o)}drawTitle(){const{ctx:t,options:{position:n,title:o,reverse:r}}=this;if(!o.display)return;const i=Qe(o.font),s=gt(o.padding),c=o.align;let d=i.lineHeight/2;n==="bottom"||n==="center"||we(n)?(d+=s.bottom,$e(o.text)&&(d+=i.lineHeight*(o.text.length-1))):d+=s.top;const{titleX:h,titleY:u,maxWidth:p,rotation:y}=VR(this,d,n,c);Hl(t,o.text,0,0,i,{color:o.color,maxWidth:p,rotation:y,textAlign:BR(c,n,r),textBaseline:"middle",translation:[h,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,o=ge(t.grid&&t.grid.z,-1),r=ge(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==js.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",r=[];let i,s;for(i=0,s=n.length;i<s;++i){const c=n[i];c[o]===this.id&&(!t||c.type===t)&&r.push(c)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Qe(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hS{constructor(t,n,o){this.type=t,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let o;qR(n)&&(o=this.register(n));const r=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,zR(t,s,o),this.override&&Fe.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,o=t.id,r=this.scope;o in n&&delete n[o],r&&o in Fe[r]&&(delete Fe[r][o],this.override&&delete is[o])}}function zR(e,t,n){const o=Al(Object.create(null),[n?Fe.get(n):{},Fe.get(t),e.defaults]);Fe.set(t,o),e.defaultRoutes&&PR(t,e.defaultRoutes),e.descriptors&&Fe.describe(t,e.descriptors)}function PR(e,t){Object.keys(t).forEach(n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),s=t[n].split("."),c=s.pop(),d=s.join(".");Fe.route(i,r,d,c)})}function qR(e){return"id"in e&&"defaults"in e}class DR{constructor(){this.controllers=new hS(us,"datasets",!0),this.elements=new hS(ha,"elements"),this.plugins=new hS(Object,"plugins"),this.scales=new hS(js,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,o){[...n].forEach(r=>{const i=o||this._getRegistryForType(r);o||i.isForType(r)||i===this.plugins&&r.id?this._exec(t,i,r):_e(r,s=>{const c=o||this._getRegistryForType(s);this._exec(t,c,s)})})}_exec(t,n,o){const r=OI(t);Pe(o["before"+r],[],o),n[t](o),Pe(o["after"+r],[],o)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(t))return o}return this.plugins}_get(t,n,o){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+o+".");return r}}var Zt=new DR;class ER{constructor(){this._init=void 0}notify(t,n,o,r){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const i=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(i,t,n,o);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,n,o,r){r=r||{};for(const i of t){const s=i.plugin,c=s[o],d=[n,r,i.options];if(Pe(c,d,s)===!1&&r.cancelable)return!1}return!0}invalidate(){Se(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const o=t&&t.config,r=ge(o.options&&o.options.plugins,{}),i=TR(o);return r===!1&&!n?[]:OR(t,i,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],o=this._cache,r=(i,s)=>i.filter(c=>!s.some(d=>c.plugin.id===d.plugin.id));this._notify(r(n,o),t,"stop"),this._notify(r(o,n),t,"start")}}function TR(e){const t={},n=[],o=Object.keys(Zt.plugins.items);for(let i=0;i<o.length;i++)n.push(Zt.getPlugin(o[i]));const r=e.plugins||[];for(let i=0;i<r.length;i++){const s=r[i];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function HR(e,t){return!t&&e===!1?null:e===!0?{}:e}function OR(e,{plugins:t,localIds:n},o,r){const i=[],s=e.getContext();for(const c of t){const d=c.id,h=HR(o[d],r);h!==null&&i.push({plugin:c,options:jR(e.config,{plugin:c,local:n[d]},h,s)})}return i}function jR(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(o,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function d_(e,t){const n=Fe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function FR(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function NR(e,t){return e===t?"_index_":"_value_"}function hz(e){if(e==="x"||e==="y"||e==="r")return e}function RR(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function h_(e,...t){if(hz(e))return e;for(const n of t){const o=n.axis||RR(n.position)||e.length>1&&hz(e[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function uz(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function $R(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(o=>o.xAxisID===e||o.yAxisID===e);if(n.length)return uz(e,"x",n[0])||uz(e,"y",n[0])}return{}}function UR(e,t){const n=is[e.type]||{scales:{}},o=t.scales||{},r=d_(e.type,t),i=Object.create(null);return Object.keys(o).forEach(s=>{const c=o[s];if(!we(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const d=h_(s,c,$R(s,e),Fe.scales[c.type]),h=NR(d,r),u=n.scales||{};i[s]=Bl(Object.create(null),[{axis:d},c,u[d],u[h]])}),e.data.datasets.forEach(s=>{const c=s.type||e.type,d=s.indexAxis||d_(c,t),u=(is[c]||{}).scales||{};Object.keys(u).forEach(p=>{const y=FR(p,d),f=s[y+"AxisID"]||y;i[f]=i[f]||Object.create(null),Bl(i[f],[{axis:y},o[f],u[p]])})}),Object.keys(i).forEach(s=>{const c=i[s];Bl(c,[Fe.scales[c.type],Fe.scale])}),i}function pz(e){const t=e.options||(e.options={});t.plugins=ge(t.plugins,{}),t.scales=UR(e,t)}function yz(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function WR(e){return e=e||{},e.data=yz(e.data),pz(e),e}const fz=new Map,mz=new Set;function uS(e,t){let n=fz.get(e);return n||(n=t(),fz.set(e,n),mz.add(n)),n}const Ul=(e,t,n)=>{const o=ns(t,n);o!==void 0&&e.add(o)};class GR{constructor(t){this._config=WR(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=yz(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),pz(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return uS(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return uS(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return uS(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,o=this.type;return uS(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const o=this._scopeCache;let r=o.get(t);return(!r||n)&&(r=new Map,o.set(t,r)),r}getOptionScopes(t,n,o){const{options:r,type:i}=this,s=this._cachedScopes(t,o),c=s.get(n);if(c)return c;const d=new Set;n.forEach(u=>{t&&(d.add(t),u.forEach(p=>Ul(d,t,p))),u.forEach(p=>Ul(d,r,p)),u.forEach(p=>Ul(d,is[i]||{},p)),u.forEach(p=>Ul(d,Fe,p)),u.forEach(p=>Ul(d,WI,p))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),mz.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:t,type:n}=this;return[t,is[n]||{},Fe.datasets[n]||{},{type:n},Fe,WI]}resolveNamedOptions(t,n,o,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:c}=kz(this._resolverCache,t,r);let d=s;if(XR(s,n)){i.$shared=!1,o=Aa(o)?o():o;const h=this.createResolver(t,o,c);d=Es(s,o,h)}for(const h of n)i[h]=d[h];return i}createResolver(t,n,o=[""],r){const{resolver:i}=kz(this._resolverCache,t,o);return we(n)?Es(i,n,void 0,r):i}}function kz(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);return i||(i={resolver:ZI(t,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},o.set(r,i)),i}const KR=e=>we(e)&&Object.getOwnPropertyNames(e).some(t=>Aa(e[t]));function XR(e,t){const{isScriptable:n,isIndexable:o}=MV(e);for(const r of t){const i=n(r),s=o(r),c=(s||i)&&e[r];if(i&&(Aa(c)||KR(c))||s&&$e(c))return!0}return!1}var ZR="4.5.1";const YR=["top","bottom","left","right","chartArea"];function gz(e,t){return e==="top"||e==="bottom"||YR.indexOf(e)===-1&&t==="x"}function bz(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function Mz(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Pe(n&&n.onComplete,[e],t)}function QR(e){const t=e.chart,n=t.options.animation;Pe(n&&n.onProgress,[e],t)}function xz(e){return JI()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const pS={},wz=e=>{const t=xz(e);return Object.values(pS).filter(n=>n.canvas===t).pop()};function JR(e,t,n){const o=Object.keys(e);for(const r of o){const i=+r;if(i>=t){const s=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=s)}}}function e$(e,t,n,o){return!n||e.type==="mouseout"?null:o?t:e}class ua{static register(...t){Zt.add(...t),vz()}static unregister(...t){Zt.remove(...t),vz()}constructor(t,n){const o=this.config=new GR(n),r=xz(t),i=wz(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||gR(r)),this.platform.updateConfig(o);const c=this.platform.acquireContext(r,s.aspectRatio),d=c&&c.canvas,h=d&&d.height,u=d&&d.width;if(this.id=Qj(),this.ctx=c,this.canvas=d,this.width=u,this.height=h,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ER,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=kF(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],pS[this.id]=this,!c||!d){console.error("Failed to create chart: can't acquire context from the given item");return}da.listen(this,"complete",Mz),da.listen(this,"progress",QR),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:o,height:r,_aspectRatio:i}=this;return Se(t)?n&&i?i:r?o/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Zt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():IV(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return kV(this.canvas,this.ctx),this}stop(){return da.stop(this),this}resize(t,n){da.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const o=this.options,r=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,n,i),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,IV(this,c,!0)&&(this.notifyPlugins("resize",{size:s}),Pe(o.onResize,[this,s],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};_e(n,(o,r)=>{o.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,o=this.scales,r=Object.keys(o).reduce((s,c)=>(s[c]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const c=n[s],d=h_(s,c),h=d==="r",u=d==="x";return{options:c,dposition:h?"chartArea":u?"bottom":"left",dtype:h?"radialLinear":u?"category":"linear"}}))),_e(i,s=>{const c=s.options,d=c.id,h=h_(d,c),u=ge(c.type,s.dtype);(c.position===void 0||gz(c.position,h)!==gz(s.dposition))&&(c.position=s.dposition),r[d]=!0;let p=null;if(d in o&&o[d].type===u)p=o[d];else{const y=Zt.getScale(u);p=new y({id:d,type:u,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(c,t)}),_e(r,(s,c)=>{s||delete o[c]}),_e(o,s=>{bt.configure(this,s,s.options),bt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,o=t.length;if(t.sort((r,i)=>r.index-i.index),o>n){for(let r=n;r<o;++r)this._destroyDatasetMeta(r);t.splice(n,o-n)}this._sortedMetasets=t.slice(0).sort(bz("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((o,r)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let o,r;for(this._removeUnreferencedMetasets(),o=0,r=n.length;o<r;o++){const i=n[o];let s=this.getDatasetMeta(o);const c=i.type||this.config.type;if(s.type&&s.type!==c&&(this._destroyDatasetMeta(o),s=this.getDatasetMeta(o)),s.type=c,s.indexAxis=i.indexAxis||d_(c,this.options),s.order=i.order||0,s.index=o,s.label=""+i.label,s.visible=this.isDatasetVisible(o),s.controller)s.controller.updateIndex(o),s.controller.linkScales();else{const d=Zt.getController(c),{datasetElementType:h,dataElementType:u}=Fe.datasets[c];Object.assign(d,{dataElementType:Zt.getElement(u),datasetElementType:h&&Zt.getElement(h)}),s.controller=new d(this,o),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){_e(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let h=0,u=this.data.datasets.length;h<u;h++){const{controller:p}=this.getDatasetMeta(h),y=!r&&i.indexOf(p)===-1;p.buildOrUpdateElements(y),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=o.layout.autoPadding?s:0,this._updateLayout(s),r||_e(i,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bz("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){_e(this.scales,t=>{bt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(t.events);(!eV(n,o)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:r,count:i}of n){const s=o==="_removeElements"?-i:i;JR(t,r,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(t.filter(s=>s[0]===i).map((s,c)=>c+","+s.splice(1).join(","))),r=o(0);for(let i=1;i<n;i++)if(!eV(r,o(i)))return;return Array.from(r).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bt.update(this,this.width,this.height,t);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],_e(this.boxes,r=>{o&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,Aa(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const o=this.getDatasetMeta(t),r={meta:o,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(o.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(da.has(this)?this.attached&&!da.running(this)&&da.start(this):(this.draw(),Mz({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:o,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,o=[];let r,i;for(r=0,i=n.length;r<i;++r){const s=n[r];(!t||s.visible)&&o.push(s)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,o={meta:t,index:t.index,cancelable:!0},r=TV(this,t);this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&ZL(n,r),t.controller.draw(),r&&YL(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Tl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,o,r){const i=YN.modes[n];return typeof i=="function"?i(this,t,o,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],o=this._metasets;let r=o.filter(i=>i&&i._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},o.push(r)),r}getContext(){return this.$context||(this.$context=ls(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const o=this.getDatasetMeta(t);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(t,n){const o=this.getDatasetMeta(t);o.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,o){const r=o?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,r);Vl(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(t,o),s.update(i,{visible:o}),this.update(c=>c.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),da.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),kV(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete pS[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,o=(i,s)=>{n.addEventListener(this,i,s),t[i]=s},r=(i,s,c)=>{i.offsetX=s,i.offsetY=c,this._eventHandler(i)};_e(this.options.events,i=>o(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,o=(d,h)=>{n.addEventListener(this,d,h),t[d]=h},r=(d,h)=>{t[d]&&(n.removeEventListener(this,d,h),delete t[d])},i=(d,h)=>{this.canvas&&this.resize(d,h)};let s;const c=()=>{r("attach",c),this.attached=!0,this.resize(),o("resize",i),o("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),o("attach",c)},n.isAttached(this.canvas)?c():s()}unbindEvents(){_e(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},_e(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,o){const r=o?"set":"remove";let i,s,c,d;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),c=0,d=t.length;c<d;++c){s=t[c];const h=s&&this.getDatasetMeta(s.datasetIndex).controller;h&&h[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],o=t.map(({datasetIndex:i,index:s})=>{const c=this.getDatasetMeta(i);if(!c)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:c.data[s],index:s}});!WL(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(t,n,o){return this._plugins.notify(this,t,n,o)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,o){const r=this.options.hover,i=(d,h)=>d.filter(u=>!h.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),s=i(n,t),c=o?t:i(t,n);s.length&&this.updateHoverStyle(s,r.mode,!1),c.length&&r.mode&&this.updateHoverStyle(c,r.mode,!0)}_eventHandler(t,n){const o={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",o,r)===!1)return;const i=this._handleEvent(t,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,r),(i||o.changed)&&this.render(),this}_handleEvent(t,n,o){const{_active:r=[],options:i}=this,s=n,c=this._getActiveElements(t,r,o,s),d=oF(t),h=e$(t,this._lastEvent,o,d);o&&(this._lastEvent=null,Pe(i.onHover,[t,c,this],this),d&&Pe(i.onClick,[t,c,this],this));const u=!WL(c,r);return(u||n)&&(this._active=c,this._updateHoverStyles(c,r,n)),this._lastEvent=h,u}_getActiveElements(t,n,o,r){if(t.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}le(ua,"defaults",Fe),le(ua,"instances",pS),le(ua,"overrides",is),le(ua,"registry",Zt),le(ua,"version",ZR),le(ua,"getChart",wz);function vz(){return _e(ua.instances,e=>e._plugins.invalidate())}function t$(e,t,n){const{startAngle:o,x:r,y:i,outerRadius:s,innerRadius:c,options:d}=t,{borderWidth:h,borderJoinStyle:u}=d,p=Math.min(h/s,dt(o-n));if(e.beginPath(),e.arc(r,i,s-h/2,o+p/2,n-p/2),c>0){const y=Math.min(h/c,dt(o-n));e.arc(r,i,c+h/2,n-y/2,o+y/2,!0)}else{const y=Math.min(h/2,s*dt(o-n));if(u==="round")e.arc(r,i,y,n-Ae/2,o+Ae/2,!0);else if(u==="bevel"){const f=2*y*y,m=-f*Math.cos(n+Ae/2)+r,g=-f*Math.sin(n+Ae/2)+i,k=f*Math.cos(o+Ae/2)+r,M=f*Math.sin(o+Ae/2)+i;e.lineTo(m,g),e.lineTo(k,M)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function a$(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:s,outerRadius:c,innerRadius:d}=t;let h=r/c;e.beginPath(),e.arc(i,s,c,o-h,n+h),d>r?(h=r/d,e.arc(i,s,d,n+h,o-h,!0)):e.arc(i,s,r,n+We,o-We),e.closePath(),e.clip()}function n$(e){return XI(e,["outerStart","outerEnd","innerStart","innerEnd"])}function o$(e,t,n,o){const r=n$(e.options.borderRadius),i=(n-t)/2,s=Math.min(i,o*t/2),c=d=>{const h=(n-Math.min(i,d))*o/2;return Ze(d,0,Math.min(i,h))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:Ze(r.innerStart,0,s),innerEnd:Ze(r.innerEnd,0,s)}}function Fs(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function yS(e,t,n,o,r,i){const{x:s,y:c,startAngle:d,pixelMargin:h,innerRadius:u}=t,p=Math.max(t.outerRadius+o+n-h,0),y=u>0?u+o+n+h:0;let f=0;const m=r-d;if(o){const W=u>0?u-o:0,H=p>0?p-o:0,O=(W+H)/2,U=O!==0?m*O/(O+o):m;f=(m-U)/2}const g=Math.max(.001,m*p-n/Ae)/p,k=(m-g)/2,M=d+k+f,w=r-k-f,{outerStart:x,outerEnd:b,innerStart:C,innerEnd:S}=o$(t,y,p,w-M),L=p-x,v=p-b,I=M+x/L,q=w-b/v,B=y+C,A=y+S,V=M+C/B,T=w-S/A;if(e.beginPath(),i){const W=(I+q)/2;if(e.arc(s,c,p,I,W),e.arc(s,c,p,W,q),b>0){const J=Fs(v,q,s,c);e.arc(J.x,J.y,b,q,w+We)}const H=Fs(A,w,s,c);if(e.lineTo(H.x,H.y),S>0){const J=Fs(A,T,s,c);e.arc(J.x,J.y,S,w+We,T+Math.PI)}const O=(w-S/y+(M+C/y))/2;if(e.arc(s,c,y,w-S/y,O,!0),e.arc(s,c,y,O,M+C/y,!0),C>0){const J=Fs(B,V,s,c);e.arc(J.x,J.y,C,V+Math.PI,M-We)}const U=Fs(L,M,s,c);if(e.lineTo(U.x,U.y),x>0){const J=Fs(L,I,s,c);e.arc(J.x,J.y,x,M-We,I)}}else{e.moveTo(s,c);const W=Math.cos(I)*p+s,H=Math.sin(I)*p+c;e.lineTo(W,H);const O=Math.cos(q)*p+s,U=Math.sin(q)*p+c;e.lineTo(O,U)}e.closePath()}function r$(e,t,n,o,r){const{fullCircles:i,startAngle:s,circumference:c}=t;let d=t.endAngle;if(i){yS(e,t,n,o,d,r);for(let h=0;h<i;++h)e.fill();isNaN(c)||(d=s+(c%Te||Te))}return yS(e,t,n,o,d,r),e.fill(),d}function i$(e,t,n,o,r){const{fullCircles:i,startAngle:s,circumference:c,options:d}=t,{borderWidth:h,borderJoinStyle:u,borderDash:p,borderDashOffset:y,borderRadius:f}=d,m=d.borderAlign==="inner";if(!h)return;e.setLineDash(p||[]),e.lineDashOffset=y,m?(e.lineWidth=h*2,e.lineJoin=u||"round"):(e.lineWidth=h,e.lineJoin=u||"bevel");let g=t.endAngle;if(i){yS(e,t,n,o,g,r);for(let k=0;k<i;++k)e.stroke();isNaN(c)||(g=s+(c%Te||Te))}m&&a$(e,t,g),d.selfJoin&&g-s>=Ae&&f===0&&u!=="miter"&&t$(e,t,g),i||(yS(e,t,n,o,g,r),e.stroke())}class Wl extends ha{constructor(n){super();le(this,"circumference");le(this,"endAngle");le(this,"fullCircles");le(this,"innerRadius");le(this,"outerRadius");le(this,"pixelMargin");le(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.getProps(["x","y"],r),{angle:s,distance:c}=rV(i,{x:n,y:o}),{startAngle:d,endAngle:h,innerRadius:u,outerRadius:p,circumference:y}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,m=ge(y,h-d),g=ql(s,d,h)&&d!==h,k=m>=Te||g,M=ca(c,u+f,p+f);return k&&M}getCenterPoint(n){const{x:o,y:r,startAngle:i,endAngle:s,innerRadius:c,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:u}=this.options,p=(i+s)/2,y=(c+d+u+h)/2;return{x:o+Math.cos(p)*y,y:r+Math.sin(p)*y}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:r}=this,i=(o.offset||0)/4,s=(o.spacing||0)/2,c=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=r>Te?Math.floor(r/Te):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const d=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(d)*i,Math.sin(d)*i);const h=1-Math.sin(Math.min(Ae,r||0)),u=i*h;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,r$(n,this,u,s,c),i$(n,this,u,s,c),n.restore()}}le(Wl,"id","arc"),le(Wl,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),le(Wl,"defaultRoutes",{backgroundColor:"backgroundColor"}),le(Wl,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Cz(e,t,n=t){e.lineCap=ge(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ge(n.borderDash,t.borderDash)),e.lineDashOffset=ge(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ge(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ge(n.borderWidth,t.borderWidth),e.strokeStyle=ge(n.borderColor,t.borderColor)}function s$(e,t,n){e.lineTo(n.x,n.y)}function l$(e){return e.stepped?VF:e.tension||e.cubicInterpolationMode==="monotone"?zF:s$}function Lz(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:s,end:c}=t,d=Math.max(r,s),h=Math.min(i,c),u=r<s&&i<s||r>c&&i>c;return{count:o,start:d,loop:t.loop,ilen:h<d&&!u?o+h-d:h-d}}function c$(e,t,n,o){const{points:r,options:i}=t,{count:s,start:c,loop:d,ilen:h}=Lz(r,n,o),u=l$(i);let{move:p=!0,reverse:y}=o||{},f,m,g;for(f=0;f<=h;++f)m=r[(c+(y?h-f:f))%s],!m.skip&&(p?(e.moveTo(m.x,m.y),p=!1):u(e,g,m,y,i.stepped),g=m);return d&&(m=r[(c+(y?h:0))%s],u(e,g,m,y,i.stepped)),!!d}function d$(e,t,n,o){const r=t.points,{count:i,start:s,ilen:c}=Lz(r,n,o),{move:d=!0,reverse:h}=o||{};let u=0,p=0,y,f,m,g,k,M;const w=b=>(s+(h?c-b:b))%i,x=()=>{g!==k&&(e.lineTo(u,k),e.lineTo(u,g),e.lineTo(u,M))};for(d&&(f=r[w(0)],e.moveTo(f.x,f.y)),y=0;y<=c;++y){if(f=r[w(y)],f.skip)continue;const b=f.x,C=f.y,S=b|0;S===m?(C<g?g=C:C>k&&(k=C),u=(p*u+b)/++p):(x(),e.lineTo(b,C),m=S,p=0,g=k=C),M=C}x()}function u_(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?d$:c$}function h$(e){return e.stepped?dN:e.tension||e.cubicInterpolationMode==="monotone"?hN:hs}function u$(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),Cz(e,t.options),e.stroke(r)}function p$(e,t,n,o){const{segments:r,options:i}=t,s=u_(t);for(const c of r)Cz(e,i,c.style),e.beginPath(),s(e,t,c,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}const y$=typeof Path2D=="function";function f$(e,t,n,o){y$&&!t.options.segment?u$(e,t,n,o):p$(e,t,n,o)}class Va extends ha{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const r=o.spanGaps?this._loop:this._fullLoop;aN(this._points,o,t,r,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=kN(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,o=t.length;return o&&n[t[o-1].end]}interpolate(t,n){const o=this.options,r=t[n],i=this.points,s=qV(this,{property:n,start:r,end:r});if(!s.length)return;const c=[],d=h$(o);let h,u;for(h=0,u=s.length;h<u;++h){const{start:p,end:y}=s[h],f=i[p],m=i[y];if(f===m){c.push(f);continue}const g=Math.abs((r-f[n])/(m[n]-f[n])),k=d(f,m,g,o.stepped);k[n]=t[n],c.push(k)}return c.length===1?c[0]:c}pathSegment(t,n,o){return u_(this)(t,this,n,o)}path(t,n,o){const r=this.segments,i=u_(this);let s=this._loop;n=n||0,o=o||this.points.length-n;for(const c of r)s&=i(t,this,c,{start:n,end:n+o-1});return!!s}draw(t,n,o,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),f$(t,this,o,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}le(Va,"id","line"),le(Va,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),le(Va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),le(Va,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Sz(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}class fS extends ha{constructor(n){super();le(this,"parsed");le(this,"skip");le(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,r){const i=this.options,{x:s,y:c}=this.getProps(["x","y"],r);return Math.pow(n-s,2)+Math.pow(o-c,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return Sz(this,n,"x",o)}inYRange(n,o){return Sz(this,n,"y",o)}getCenterPoint(n){const{x:o,y:r}=this.getProps(["x","y"],n);return{x:o,y:r}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const r=o&&n.borderWidth||0;return(o+r)*2}draw(n,o){const r=this.options;this.skip||r.radius<.1||!Tl(this,o,this.size(r)/2)||(n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.fillStyle=r.backgroundColor,KI(n,r,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}le(fS,"id","point"),le(fS,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),le(fS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Iz(e,t){const{x:n,y:o,base:r,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let c,d,h,u,p;return e.horizontal?(p=s/2,c=Math.min(n,r),d=Math.max(n,r),h=o-p,u=o+p):(p=i/2,c=n-p,d=n+p,h=Math.min(o,r),u=Math.max(o,r)),{left:c,top:h,right:d,bottom:u}}function za(e,t,n,o){return e?0:Ze(t,n,o)}function m$(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=bV(o);return{t:za(r.top,i.top,0,n),r:za(r.right,i.right,0,t),b:za(r.bottom,i.bottom,0,n),l:za(r.left,i.left,0,t)}}function k$(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Ds(r),s=Math.min(t,n),c=e.borderSkipped,d=o||we(r);return{topLeft:za(!d||c.top||c.left,i.topLeft,0,s),topRight:za(!d||c.top||c.right,i.topRight,0,s),bottomLeft:za(!d||c.bottom||c.left,i.bottomLeft,0,s),bottomRight:za(!d||c.bottom||c.right,i.bottomRight,0,s)}}function g$(e){const t=Iz(e),n=t.right-t.left,o=t.bottom-t.top,r=m$(e,n/2,o/2),i=k$(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function p_(e,t,n,o){const r=t===null,i=n===null,c=e&&!(r&&i)&&Iz(e,o);return c&&(r||ca(t,c.left,c.right))&&(i||ca(n,c.top,c.bottom))}function b$(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function M$(e,t){e.rect(t.x,t.y,t.w,t.h)}function y_(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,s=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+s,radius:e.radius}}class mS extends ha{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:o,backgroundColor:r}}=this,{inner:i,outer:s}=g$(this),c=b$(s.radius)?QL:M$;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),c(t,y_(s,n,i)),t.clip(),c(t,y_(i,-n,s)),t.fillStyle=o,t.fill("evenodd")),t.beginPath(),c(t,y_(i,n)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,n,o){return p_(this,t,n,o)}inXRange(t,n){return p_(this,t,null,n)}inYRange(t,n){return p_(this,null,t,n)}getCenterPoint(t){const{x:n,y:o,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+r)/2:n,y:i?o:(o+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}le(mS,"id","bar"),le(mS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),le(mS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function x$(e,t,n){const o=e.segments,r=e.points,i=t.points,s=[];for(const c of o){let{start:d,end:h}=c;h=kS(d,h,r);const u=f_(n,r[d],r[h],c.loop);if(!t.segments){s.push({source:c,target:u,start:r[d],end:r[h]});continue}const p=qV(t,u);for(const y of p){const f=f_(n,i[y.start],i[y.end],y.loop),m=PV(c,r,f);for(const g of m)s.push({source:g,target:y,start:{[n]:_z(u,f,"start",Math.max)},end:{[n]:_z(u,f,"end",Math.min)}})}}return s}function f_(e,t,n,o){if(o)return;let r=t[e],i=n[e];return e==="angle"&&(r=dt(r),i=dt(i)),{property:e,start:r,end:i}}function w$(e,t){const{x:n=null,y:o=null}=e||{},r=t.points,i=[];return t.segments.forEach(({start:s,end:c})=>{c=kS(s,c,r);const d=r[s],h=r[c];o!==null?(i.push({x:d.x,y:o}),i.push({x:h.x,y:o})):n!==null&&(i.push({x:n,y:d.y}),i.push({x:n,y:h.y}))}),i}function kS(e,t,n){for(;t>e;t--){const o=n[t];if(!isNaN(o.x)&&!isNaN(o.y))break}return t}function _z(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function Az(e,t){let n=[],o=!1;return $e(e)?(o=!0,n=e):n=w$(e,t),n.length?new Va({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function Bz(e){return e&&e.fill!==!1}function v$(e,t,n){let r=e[t].fill;const i=[t];let s;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!Xe(r))return r;if(s=e[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function C$(e,t,n){const o=_$(e);if(we(o))return isNaN(o.value)?!1:o;let r=parseFloat(o);return Xe(r)&&Math.floor(r)===r?L$(o[0],t,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function L$(e,t,n,o){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=o?!1:n}function S$(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:we(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function I$(e,t,n){let o;return e==="start"?o=n:e==="end"?o=t.options.reverse?t.min:t.max:we(e)?o=e.value:o=t.getBaseValue(),o}function _$(e){const t=e.options,n=t.fill;let o=ge(n&&n.target,n);return o===void 0&&(o=!!t.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function A$(e){const{scale:t,index:n,line:o}=e,r=[],i=o.segments,s=o.points,c=B$(t,n);c.push(Az({x:null,y:t.bottom},o));for(let d=0;d<i.length;d++){const h=i[d];for(let u=h.start;u<=h.end;u++)V$(r,s[u],c)}return new Va({points:r,options:{}})}function B$(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let r=0;r<o.length;r++){const i=o[r];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function V$(e,t,n){const o=[];for(let r=0;r<n.length;r++){const i=n[r],{first:s,last:c,point:d}=z$(i,t,"x");if(!(!d||s&&c)){if(s)o.unshift(d);else if(e.push(d),!c)break}}e.push(...o)}function z$(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const r=o[n],i=e.segments,s=e.points;let c=!1,d=!1;for(let h=0;h<i.length;h++){const u=i[h],p=s[u.start][n],y=s[u.end][n];if(ca(r,p,y)){c=r===p,d=r===y;break}}return{first:c,last:d,point:o}}class Vz{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,o){const{x:r,y:i,radius:s}=this;return n=n||{start:0,end:Te},t.arc(r,i,s,n.end,n.start,!0),!o.bounds}interpolate(t){const{x:n,y:o,radius:r}=this,i=t.angle;return{x:n+Math.cos(i)*r,y:o+Math.sin(i)*r,angle:i}}}function P$(e){const{chart:t,fill:n,line:o}=e;if(Xe(n))return q$(t,n);if(n==="stack")return A$(e);if(n==="shape")return!0;const r=D$(e);return r instanceof Vz?r:Az(r,o)}function q$(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function D$(e){return(e.scale||{}).getPointPositionForValue?T$(e):E$(e)}function E$(e){const{scale:t={},fill:n}=e,o=S$(n,t);if(Xe(o)){const r=t.isHorizontal();return{x:r?o:null,y:r?null:o}}return null}function T$(e){const{scale:t,fill:n}=e,o=t.options,r=t.getLabels().length,i=o.reverse?t.max:t.min,s=I$(n,t,i),c=[];if(o.grid.circular){const d=t.getPointPositionForValue(0,i);return new Vz({x:d.x,y:d.y,radius:t.getDistanceFromCenterForValue(s)})}for(let d=0;d<r;++d)c.push(t.getPointPositionForValue(d,s));return c}function m_(e,t,n){const o=P$(t),{chart:r,index:i,line:s,scale:c,axis:d}=t,h=s.options,u=h.fill,p=h.backgroundColor,{above:y=p,below:f=p}=u||{},m=r.getDatasetMeta(i),g=TV(r,m);o&&s.points.length&&(ZL(e,n),H$(e,{line:s,target:o,above:y,below:f,area:n,scale:c,axis:d,clip:g}),YL(e))}function H$(e,t){const{line:n,target:o,above:r,below:i,area:s,scale:c,clip:d}=t,h=n._loop?"angle":t.axis;e.save();let u=i;i!==r&&(h==="x"?(zz(e,o,s.top),k_(e,{line:n,target:o,color:r,scale:c,property:h,clip:d}),e.restore(),e.save(),zz(e,o,s.bottom)):h==="y"&&(Pz(e,o,s.left),k_(e,{line:n,target:o,color:i,scale:c,property:h,clip:d}),e.restore(),e.save(),Pz(e,o,s.right),u=r)),k_(e,{line:n,target:o,color:u,scale:c,property:h,clip:d}),e.restore()}function zz(e,t,n){const{segments:o,points:r}=t;let i=!0,s=!1;e.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[kS(d,h,r)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,c,{move:s}),s?e.closePath():e.lineTo(p.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Pz(e,t,n){const{segments:o,points:r}=t;let i=!0,s=!1;e.beginPath();for(const c of o){const{start:d,end:h}=c,u=r[d],p=r[kS(d,h,r)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,c,{move:s}),s?e.closePath():e.lineTo(n,p.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function k_(e,t){const{line:n,target:o,property:r,color:i,scale:s,clip:c}=t,d=x$(n,o,r);for(const{source:h,target:u,start:p,end:y}of d){const{style:{backgroundColor:f=i}={}}=h,m=o!==!0;e.save(),e.fillStyle=f,O$(e,s,c,m&&f_(r,p,y)),e.beginPath();const g=!!n.pathSegment(e,h);let k;if(m){g?e.closePath():qz(e,o,y,r);const M=!!o.pathSegment(e,u,{move:g,reverse:!0});k=g&&M,k||qz(e,o,p,r)}e.closePath(),e.fill(k?"evenodd":"nonzero"),e.restore()}}function O$(e,t,n,o){const r=t.chart.chartArea,{property:i,start:s,end:c}=o||{};if(i==="x"||i==="y"){let d,h,u,p;i==="x"?(d=s,h=r.top,u=c,p=r.bottom):(d=r.left,h=s,u=r.right,p=c),e.beginPath(),n&&(d=Math.max(d,n.left),u=Math.min(u,n.right),h=Math.max(h,n.top),p=Math.min(p,n.bottom)),e.rect(d,h,u-d,p-h),e.clip()}}function qz(e,t,n,o){const r=t.interpolate(n,o);r&&e.lineTo(r.x,r.y)}var j$={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,r=[];let i,s,c,d;for(s=0;s<o;++s)i=e.getDatasetMeta(s),c=i.dataset,d=null,c&&c.options&&c instanceof Va&&(d={visible:e.isDatasetVisible(s),index:s,fill:C$(c,s,o),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:c}),i.$filler=d,r.push(d);for(s=0;s<o;++s)d=r[s],!(!d||d.fill===!1)&&(d.fill=v$(r,s,n.propagate))},beforeDraw(e,t,n){const o=n.drawTime==="beforeDraw",r=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=r.length-1;s>=0;--s){const c=r[s].$filler;c&&(c.line.updateControlPoints(i,c.axis),o&&c.fill&&m_(e.ctx,c,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=e.getSortedVisibleDatasetMetas();for(let r=o.length-1;r>=0;--r){const i=o[r].$filler;Bz(i)&&m_(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;!Bz(o)||n.drawTime!=="beforeDatasetDraw"||m_(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Dz=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}},F$=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Ez extends ha{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,o){this.maxWidth=t,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Pe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(o=>t.filter(o,this.chart.data))),t.sort&&(n=n.sort((o,r)=>t.sort(o,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const o=t.labels,r=Qe(o.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:c,itemHeight:d}=Dz(o,i);let h,u;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,u=this._fitRows(s,i,c,d)+10):(u=this.maxHeight,h=this._fitCols(s,r,c,d)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,o,r){const{ctx:i,maxWidth:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],u=r+c;let p=t;i.textAlign="left",i.textBaseline="middle";let y=-1,f=-u;return this.legendItems.forEach((m,g)=>{const k=o+n/2+i.measureText(m.text).width;(g===0||h[h.length-1]+k+2*c>s)&&(p+=u,h[h.length-(g>0?0:1)]=0,f+=u,y++),d[g]={left:0,top:f,row:y,width:k,height:r},h[h.length-1]+=k+c}),p}_fitCols(t,n,o,r){const{ctx:i,maxHeight:s,options:{labels:{padding:c}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],u=s-t;let p=c,y=0,f=0,m=0,g=0;return this.legendItems.forEach((k,M)=>{const{itemWidth:w,itemHeight:x}=N$(o,n,i,k,r);M>0&&f+x+2*c>u&&(p+=y+c,h.push({width:y,height:f}),m+=y+c,g++,y=f=0),d[M]={left:m,top:f,col:g,width:w,height:x},y=Math.max(y,w),f+=x+c}),p+=y,h.push({width:y,height:f}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:r},rtl:i}}=this,s=Hs(i,this.left,this.width);if(this.isHorizontal()){let c=0,d=Ye(o,this.left+r,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,d=Ye(o,this.left+r,this.right-this.lineWidths[c])),h.top+=this.top+t+r,h.left=s.leftForLtr(s.x(d),h.width),d+=h.width+r}else{let c=0,d=Ye(o,this.top+t+r,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,d=Ye(o,this.top+t+r,this.bottom-this.columnSizes[c].height)),h.top=d,h.left+=this.left+r,h.left=s.leftForLtr(s.x(h.left),h.width),d+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ZL(t,this),this._draw(),YL(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:o,ctx:r}=this,{align:i,labels:s}=t,c=Fe.color,d=Hs(t.rtl,this.left,this.width),h=Qe(s.font),{padding:u}=s,p=h.size,y=p/2;let f;this.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:m,boxHeight:g,itemHeight:k}=Dz(s,p),M=function(S,L,v){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;r.save();const I=ge(v.lineWidth,1);if(r.fillStyle=ge(v.fillStyle,c),r.lineCap=ge(v.lineCap,"butt"),r.lineDashOffset=ge(v.lineDashOffset,0),r.lineJoin=ge(v.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=ge(v.strokeStyle,c),r.setLineDash(ge(v.lineDash,[])),s.usePointStyle){const q={radius:g*Math.SQRT2/2,pointStyle:v.pointStyle,rotation:v.rotation,borderWidth:I},B=d.xPlus(S,m/2),A=L+y;gV(r,q,B,A,s.pointStyleWidth&&m)}else{const q=L+Math.max((p-g)/2,0),B=d.leftForLtr(S,m),A=Ds(v.borderRadius);r.beginPath(),Object.values(A).some(V=>V!==0)?QL(r,{x:B,y:q,w:m,h:g,radius:A}):r.rect(B,q,m,g),r.fill(),I!==0&&r.stroke()}r.restore()},w=function(S,L,v){Hl(r,v.text,S,L+k/2,h,{strikethrough:v.hidden,textAlign:d.textAlign(v.textAlign)})},x=this.isHorizontal(),b=this._computeTitleHeight();x?f={x:Ye(i,this.left+u,this.right-o[0]),y:this.top+u+b,line:0}:f={x:this.left+u,y:Ye(i,this.top+b+u,this.bottom-n[0].height),line:0},AV(this.ctx,t.textDirection);const C=k+u;this.legendItems.forEach((S,L)=>{r.strokeStyle=S.fontColor,r.fillStyle=S.fontColor;const v=r.measureText(S.text).width,I=d.textAlign(S.textAlign||(S.textAlign=s.textAlign)),q=m+y+v;let B=f.x,A=f.y;d.setWidth(this.width),x?L>0&&B+q+u>this.right&&(A=f.y+=C,f.line++,B=f.x=Ye(i,this.left+u,this.right-o[f.line])):L>0&&A+C>this.bottom&&(B=f.x=B+n[f.line].width+u,f.line++,A=f.y=Ye(i,this.top+b+u,this.bottom-n[f.line].height));const V=d.x(B);if(M(V,A,S),B=gF(I,B+m+y,x?B+q:this.right,t.rtl),w(d.x(B),A,S),x)f.x+=q+u;else if(typeof S.text!="string"){const T=h.lineHeight;f.y+=Tz(S,T)+u}else f.y+=C}),BV(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,o=Qe(n.font),r=gt(n.padding);if(!n.display)return;const i=Hs(t.rtl,this.left,this.width),s=this.ctx,c=n.position,d=o.size/2,h=r.top+d;let u,p=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),u=this.top+h,p=Ye(t.align,p,this.right-y);else{const m=this.columnSizes.reduce((g,k)=>Math.max(g,k.height),0);u=h+Ye(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=Ye(c,p,p+y);s.textAlign=i.textAlign(NI(c)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,Hl(s,n.text,f,u,o)}_computeTitleHeight(){const t=this.options.title,n=Qe(t.font),o=gt(t.padding);return t.display?n.lineHeight+o.height:0}_getLegendItemAt(t,n){let o,r,i;if(ca(t,this.left,this.right)&&ca(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(r=i[o],ca(t,r.left,r.left+r.width)&&ca(n,r.top,r.top+r.height))return this.legendItems[o]}return null}handleEvent(t){const n=this.options;if(!U$(t.type,n))return;const o=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,i=F$(r,o);r&&!i&&Pe(n.onLeave,[t,r,this],this),this._hoveredItem=o,o&&!i&&Pe(n.onHover,[t,o,this],this)}else o&&Pe(n.onClick,[t,o,this],this)}}function N$(e,t,n,o,r){const i=R$(o,e,t,n),s=$$(r,o,t.lineHeight);return{itemWidth:i,itemHeight:s}}function R$(e,t,n,o){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((i,s)=>i.length>s.length?i:s)),t+n.size/2+o.measureText(r).width}function $$(e,t,n){let o=e;return typeof t.text!="string"&&(o=Tz(t,n)),o}function Tz(e,t){const n=e.text?e.text.length:0;return t*n}function U$(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var W$={id:"legend",_element:Ez,start(e,t,n){const o=e.legend=new Ez({ctx:e.ctx,options:n,chart:e});bt.configure(e,o,n),bt.addBox(e,o)},stop(e){bt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;bt.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:s,borderRadius:c}}=e.legend.options;return e._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(n?0:void 0),u=gt(h.borderWidth);return{text:t[d.index].label,fillStyle:h.backgroundColor,fontColor:i,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:h.borderColor,pointStyle:o||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:s&&(c||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Hz extends ha{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=$e(o.text)?o.text.length:1;this._padding=gt(o.padding);const i=r*Qe(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:o,bottom:r,right:i,options:s}=this,c=s.align;let d=0,h,u,p;return this.isHorizontal()?(u=Ye(c,o,i),p=n+t,h=i-o):(s.position==="left"?(u=o+t,p=Ye(c,r,n),d=Ae*-.5):(u=i-t,p=Ye(c,n,r),d=Ae*.5),h=r-n),{titleX:u,titleY:p,maxWidth:h,rotation:d}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const o=Qe(n.font),i=o.lineHeight/2+this._padding.top,{titleX:s,titleY:c,maxWidth:d,rotation:h}=this._drawArgs(i);Hl(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:NI(n.align),textBaseline:"middle",translation:[s,c]})}}function G$(e,t){const n=new Hz({ctx:e.ctx,options:t,chart:e});bt.configure(e,n,t),bt.addBox(e,n),e.titleBlock=n}var K$={id:"title",_element:Hz,start(e,t,n){G$(e,n)},stop(e){const t=e.titleBlock;bt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;bt.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Gl={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const c=e[t].element;if(c&&c.hasValue()){const d=c.tooltipPosition();o.add(d.x),r+=d.y,++i}}return i===0||o.size===0?!1:{x:[...o].reduce((c,d)=>c+d)/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,o=t.y,r=Number.POSITIVE_INFINITY,i,s,c;for(i=0,s=e.length;i<s;++i){const d=e[i].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),u=jI(t,h);u<r&&(r=u,c=d)}}if(c){const d=c.tooltipPosition();n=d.x,o=d.y}return{x:n,y:o}}};function Yt(e,t){return t&&($e(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function pa(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
8518
8518
|
`)>-1?e.split(`
|
|
8519
|
-
`):e}function X$(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:s,value:c}=i.getLabelAndValue(r);return{chart:e,label:s,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:c,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function Oz(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:s,boxHeight:c}=t,d=Qe(t.bodyFont),h=Qe(t.titleFont),u=Qe(t.footerFont),p=i.length,y=r.length,f=o.length,m=gt(t.padding);let k=m.height,g=0,x=o.reduce((b,L)=>b+L.before.length+L.lines.length+L.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,p&&(k+=p*h.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),x){const b=t.displayColors?Math.max(c,d.lineHeight):d.lineHeight;k+=f*b+(x-f)*d.lineHeight+(x-1)*t.bodySpacing}y&&(k+=t.footerMarginTop+y*u.lineHeight+(y-1)*t.footerSpacing);let C=0;const v=function(b){g=Math.max(g,n.measureText(b).width+C)};return n.save(),n.font=h.string,_e(e.title,v),n.font=d.string,_e(e.beforeBody.concat(e.afterBody),v),C=t.displayColors?s+2+t.boxPadding:0,_e(o,b=>{_e(b.before,v),_e(b.lines,v),_e(b.after,v)}),C=0,n.font=u.string,_e(e.footer,v),n.restore(),g+=m.width,{width:g,height:k}}function Z$(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}function Y$(e,t,n,o){const{x:r,width:i}=o,s=n.caretSize+n.caretPadding;if(e==="left"&&r+i+s>t.width||e==="right"&&r-i-s<0)return!0}function Q$(e,t,n,o){const{x:r,width:i}=n,{width:s,chartArea:{left:c,right:d}}=e;let h="center";return o==="center"?h=r<=(c+d)/2?"left":"right":r<=i/2?h="left":r>=s-i/2&&(h="right"),Y$(h,e,t,n)&&(h="center"),h}function jz(e,t,n){const o=n.yAlign||t.yAlign||Z$(e,n);return{xAlign:n.xAlign||t.xAlign||Q$(e,t,n,o),yAlign:o}}function J$(e,t){let{x:n,width:o}=e;return t==="right"?n-=o:t==="center"&&(n-=o/2),n}function eU(e,t,n){let{y:o,height:r}=e;return t==="top"?o+=n:t==="bottom"?o-=r+n:o-=r/2,o}function Fz(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:s}=e,{xAlign:c,yAlign:d}=n,h=r+i,{topLeft:u,topRight:p,bottomLeft:y,bottomRight:f}=Ds(s);let m=J$(t,c);const k=eU(t,d,h);return d==="center"?c==="left"?m+=h:c==="right"&&(m-=h):c==="left"?m-=Math.max(u,y)+r:c==="right"&&(m+=Math.max(p,f)+r),{x:Ze(m,0,o.width-t.width),y:Ze(k,0,o.height-t.height)}}function gS(e,t,n){const o=gt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-o.right:e.x+o.left}function Nz(e){return Yt([],pa(e))}function tU(e,t,n){return ls(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Rz(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const $z={beforeTitle:sa,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:sa,beforeBody:sa,beforeLabel:sa,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Se(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:sa,afterBody:sa,beforeFooter:sa,footer:sa,afterFooter:sa};function ot(e,t,n,o){const r=e[t].call(n,o);return typeof r>"u"?$z[t].call(n,o):r}class g_ extends ha{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,o=this.options.setContext(this.getContext()),r=o.enabled&&n.options.animation&&o.animations,i=new OV(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=tU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:o}=n,r=ot(o,"beforeTitle",this,t),i=ot(o,"title",this,t),s=ot(o,"afterTitle",this,t);let c=[];return c=Yt(c,pa(r)),c=Yt(c,pa(i)),c=Yt(c,pa(s)),c}getBeforeBody(t,n){return Nz(ot(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:o}=n,r=[];return _e(t,i=>{const s={before:[],lines:[],after:[]},c=Rz(o,i);Yt(s.before,pa(ot(c,"beforeLabel",this,i))),Yt(s.lines,ot(c,"label",this,i)),Yt(s.after,pa(ot(c,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(t,n){return Nz(ot(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:o}=n,r=ot(o,"beforeFooter",this,t),i=ot(o,"footer",this,t),s=ot(o,"afterFooter",this,t);let c=[];return c=Yt(c,pa(r)),c=Yt(c,pa(i)),c=Yt(c,pa(s)),c}_createItems(t){const n=this._active,o=this.chart.data,r=[],i=[],s=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(X$(this.chart,n[d]));return t.filter&&(c=c.filter((u,p,y)=>t.filter(u,p,y,o))),t.itemSort&&(c=c.sort((u,p)=>t.itemSort(u,p,o))),_e(c,u=>{const p=Rz(t.callbacks,u);r.push(ot(p,"labelColor",this,u)),i.push(ot(p,"labelPointStyle",this,u)),s.push(ot(p,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=c,c}update(t,n){const o=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const c=Gl[o.position].call(this,r,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const d=this._size=Oz(this,o),h=Object.assign({},c,d),u=jz(this.chart,o,h),p=Fz(o,h,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:p.x,y:p.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,o,r){const i=this.getCaretPosition(t,o,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,o){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:c}=o,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Ds(c),{x:y,y:f}=t,{width:m,height:k}=n;let g,x,C,v,b,L;return i==="center"?(b=f+k/2,r==="left"?(g=y,x=g-s,v=b+s,L=b-s):(g=y+m,x=g+s,v=b-s,L=b+s),C=g):(r==="left"?x=y+Math.max(d,u)+s:r==="right"?x=y+m-Math.max(h,p)-s:x=this.caretX,i==="top"?(v=f,b=v-s,g=x-s,C=x+s):(v=f+k,b=v+s,g=x+s,C=x-s),L=v),{x1:g,x2:x,x3:C,y1:v,y2:b,y3:L}}drawTitle(t,n,o){const r=this.title,i=r.length;let s,c,d;if(i){const h=Hs(o.rtl,this.x,this.width);for(t.x=gS(this,o.titleAlign,o),n.textAlign=h.textAlign(o.titleAlign),n.textBaseline="middle",s=Qe(o.titleFont),c=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,d=0;d<i;++d)n.fillText(r[d],h.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+c,d+1===i&&(t.y+=o.titleMarginBottom-c)}}_drawColorBox(t,n,o,r,i){const s=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:h}=i,u=Qe(i.bodyFont),p=gS(this,"left",i),y=r.x(p),f=d<u.lineHeight?(u.lineHeight-d)/2:0,m=n.y+f;if(i.usePointStyle){const k={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},g=r.leftForLtr(y,h)+h/2,x=m+d/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,KI(t,k,g,x),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,KI(t,k,g,x)}else{t.lineWidth=we(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const k=r.leftForLtr(y,h),g=r.leftForLtr(r.xPlus(y,1),h-2),x=Ds(s.borderRadius);Object.values(x).some(C=>C!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,QL(t,{x:k,y:m,w:h,h:d,radius:x}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),QL(t,{x:g,y:m+1,w:h-2,h:d-2,radius:x}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(k,m,h,d),t.strokeRect(k,m,h,d),t.fillStyle=s.backgroundColor,t.fillRect(g,m+1,h-2,d-2))}t.fillStyle=this.labelTextColors[o]}drawBody(t,n,o){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:u}=o,p=Qe(o.bodyFont);let y=p.lineHeight,f=0;const m=Hs(o.rtl,this.x,this.width),k=function(w){n.fillText(w,m.x(t.x+f),t.y+y/2),t.y+=y+i},g=m.textAlign(s);let x,C,v,b,L,S,M;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,t.x=gS(this,g,o),n.fillStyle=o.bodyColor,_e(this.beforeBody,k),f=c&&g!=="right"?s==="center"?h/2+u:h+2+u:0,b=0,S=r.length;b<S;++b){for(x=r[b],C=this.labelTextColors[b],n.fillStyle=C,_e(x.before,k),v=x.lines,c&&v.length&&(this._drawColorBox(n,t,b,m,o),y=Math.max(p.lineHeight,d)),L=0,M=v.length;L<M;++L)k(v[L]),y=p.lineHeight;_e(x.after,k)}f=0,y=p.lineHeight,_e(this.afterBody,k),t.y-=i}drawFooter(t,n,o){const r=this.footer,i=r.length;let s,c;if(i){const d=Hs(o.rtl,this.x,this.width);for(t.x=gS(this,o.footerAlign,o),t.y+=o.footerMarginTop,n.textAlign=d.textAlign(o.footerAlign),n.textBaseline="middle",s=Qe(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,c=0;c<i;++c)n.fillText(r[c],d.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o.footerSpacing}}drawBackground(t,n,o,r){const{xAlign:i,yAlign:s}=this,{x:c,y:d}=t,{width:h,height:u}=o,{topLeft:p,topRight:y,bottomLeft:f,bottomRight:m}=Ds(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(c+p,d),s==="top"&&this.drawCaret(t,n,o,r),n.lineTo(c+h-y,d),n.quadraticCurveTo(c+h,d,c+h,d+y),s==="center"&&i==="right"&&this.drawCaret(t,n,o,r),n.lineTo(c+h,d+u-m),n.quadraticCurveTo(c+h,d+u,c+h-m,d+u),s==="bottom"&&this.drawCaret(t,n,o,r),n.lineTo(c+f,d+u),n.quadraticCurveTo(c,d+u,c,d+u-f),s==="center"&&i==="left"&&this.drawCaret(t,n,o,r),n.lineTo(c,d+p),n.quadraticCurveTo(c,d,c+p,d),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,o=this.$animations,r=o&&o.x,i=o&&o.y;if(r||i){const s=Gl[t.position].call(this,this._active,this._eventPosition);if(!s)return;const c=this._size=Oz(this,t),d=Object.assign({},s,this._size),h=jz(n,t,d),u=Fz(t,d,h,n);(r._to!==u.x||i._to!==u.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=gt(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(t.save(),t.globalAlpha=o,this.drawBackground(i,t,r,n),AV(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),BV(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const o=this._active,r=t.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),i=!WL(o,r),s=this._positionChanged(r,n);(i||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,o),c=this._positionChanged(s,t),d=n||!WL(s,i)||c;return d&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),d}_getActiveElements(t,n,o,r){const i=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,i.mode,i,o);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:o,caretY:r,options:i}=this,s=Gl[i.position].call(this,t,n);return s!==!1&&(o!==s.x||r!==s.y)}}le(g_,"positioners",Gl);var aU={id:"tooltip",_element:g_,positioners:Gl,afterInit(e,t,n){n&&(e.tooltip=new g_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:$z},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const nU=(e,t,n,o)=>(typeof t=="string"?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function oU(e,t,n,o){const r=e.indexOf(t);if(r===-1)return nU(e,t,n,o);const i=e.lastIndexOf(t);return r!==i?n:r}const rU=(e,t)=>e===null?null:Ze(Math.round(e),0,t);function Uz(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class b_ extends js{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:r,label:i}of n)o[r]===i&&o.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Se(t))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===t?n:oU(o,t,ge(n,t),this._addedLabels),rU(n,o.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(o=0),n||(r=this.getLabels().length-1)),this.min=o,this.max=r}buildTicks(){const t=this.min,n=this.max,o=this.options.offset,r=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=t;s<=n;s++)r.push({value:s});return r}getLabelForValue(t){return Uz.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}le(b_,"id","category"),le(b_,"defaults",{ticks:{callback:Uz}});function iU(e,t){const n=[],{bounds:r,step:i,min:s,max:c,precision:d,count:h,maxTicks:u,maxDigits:p,includeBounds:y}=e,f=i||1,m=u-1,{min:k,max:g}=t,x=!Se(s),C=!Se(c),v=!Se(h),b=(g-k)/(p+1);let L=nV((g-k)/m/f)*f,S,M,w,I;if(L<1e-14&&!x&&!C)return[{value:k},{value:g}];I=Math.ceil(g/L)-Math.floor(k/L),I>m&&(L=nV(I*L/m/f)*f),Se(d)||(S=Math.pow(10,d),L=Math.ceil(L*S)/S),r==="ticks"?(M=Math.floor(k/L)*L,w=Math.ceil(g/L)*L):(M=k,w=g),x&&C&&i&&cF((c-s)/i,L/1e3)?(I=Math.round(Math.min((c-s)/L,u)),L=(c-s)/I,M=s,w=c):v?(M=x?s:M,w=C?c:w,I=h-1,L=(w-M)/I):(I=(w-M)/L,zl(I,Math.round(I),L/1e3)?I=Math.round(I):I=Math.ceil(I));const z=Math.max(oV(L),oV(M));S=Math.pow(10,Se(d)?z:d),M=Math.round(M*S)/S,w=Math.round(w*S)/S;let B=0;for(x&&(y&&M!==s?(n.push({value:s}),M<s&&B++,zl(Math.round((M+B*L)*S)/S,s,Wz(s,b,e))&&B++):M<s&&B++);B<I;++B){const A=Math.round((M+B*L)*S)/S;if(C&&A>c)break;n.push({value:A})}return C&&y&&w!==c?n.length&&zl(n[n.length-1].value,c,Wz(c,b,e))?n[n.length-1].value=c:n.push({value:c}):(!C||w===c)&&n.push({value:w}),n}function Wz(e,t,{horizontal:n,minRotation:o}){const r=la(o),i=(n?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class sU extends js{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Se(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:r,max:i}=this;const s=d=>r=n?r:d,c=d=>i=o?i:d;if(t){const d=Xt(r),h=Xt(i);d<0&&h<0?c(0):d>0&&h>0&&s(0)}if(r===i){let d=i===0?1:Math.abs(i*.05);c(i+d),t||s(r-d)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=t,r;return o?(r=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let o=this.getTickLimit();o=Math.max(2,o);const r={maxTicks:o,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=iU(r,i);return t.bounds==="ticks"&&dF(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&t.length){const r=(o-n)/Math.max(t.length-1,1)/2;n-=r,o+=r}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(t){return UI(t,this.chart.options.locale,this.options.ticks.format)}}class M_ extends sU{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Xe(t)?t:0,this.max=Xe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,o=la(this.options.ticks.minRotation),r=(t?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}le(M_,"id","linear"),le(M_,"defaults",{ticks:{callback:fV.formatters.numeric}});const bS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rt=Object.keys(bS);function Gz(e,t){return e-t}function Kz(e,t){if(Se(t))return null;const n=e._adapter,{parser:o,round:r,isoWeekday:i}=e._parseOpts;let s=t;return typeof o=="function"&&(s=o(s)),Xe(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(Pl(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,r)),+s)}function Xz(e,t,n,o){const r=rt.length;for(let i=rt.indexOf(e);i<r-1;++i){const s=bS[rt[i]],c=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(c*s.size))<=o)return rt[i]}return rt[r-1]}function lU(e,t,n,o,r){for(let i=rt.length-1;i>=rt.indexOf(n);i--){const s=rt[i];if(bS[s].common&&e._adapter.diff(r,o,s)>=t-1)return s}return rt[n?rt.indexOf(n):0]}function cU(e){for(let t=rt.indexOf(e)+1,n=rt.length;t<n;++t)if(bS[rt[t]].common)return rt[t]}function Zz(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:o,hi:r}=FI(n,t),i=n[o]>=t?n[o]:n[r];e[i]=!0}}function dU(e,t,n,o){const r=e._adapter,i=+r.startOf(t[0].value,o),s=t[t.length-1].value;let c,d;for(c=i;c<=s;c=+r.add(c,1,o))d=n[c],d>=0&&(t[d].major=!0);return t}function Yz(e,t,n){const o=[],r={},i=t.length;let s,c;for(s=0;s<i;++s)c=t[s],r[c]=s,o.push({value:c,major:!1});return i===0||!n?o:dU(e,o,r,n)}class MS extends js{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const o=t.time||(t.time={}),r=this._adapter=new WN._date(t.adapters.date);r.init(n),Bl(o.displayFormats,r.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Kz(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,o=t.time.unit||"day";let{min:r,max:i,minDefined:s,maxDefined:c}=this.getUserBounds();function d(h){!s&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!c&&!isNaN(h.max)&&(i=Math.max(i,h.max))}(!s||!c)&&(d(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&d(this.getMinMax(!1))),r=Xe(r)&&!isNaN(r)?r:+n.startOf(Date.now(),o),i=Xe(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],o=t[t.length-1]),{min:n,max:o}}buildTicks(){const t=this.options,n=t.time,o=t.ticks,r=o.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,s=this.max,c=fF(r,i,s);return this._unit=n.unit||(o.autoSkip?Xz(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):lU(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:cU(this._unit),this.initOffsets(r),t.reverse&&c.reverse(),Yz(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,o=0,r,i;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?o=i:o=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Ze(n,0,s),o=Ze(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const t=this._adapter,n=this.min,o=this.max,r=this.options,i=r.time,s=i.unit||Xz(i.minUnit,n,o,this._getLabelCapacity(n)),c=ge(r.ticks.stepSize,1),d=s==="week"?i.isoWeekday:!1,h=Pl(d)||d===!0,u={};let p=n,y,f;if(h&&(p=+t.startOf(p,"isoWeek",d)),p=+t.startOf(p,h?"day":s),t.diff(o,n,s)>1e5*c)throw new Error(n+" and "+o+" are too far apart with stepSize of "+c+" "+s);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(y=p,f=0;y<o;y=+t.add(y,c,s),f++)Zz(u,y,m);return(y===o||r.bounds==="ticks"||f===1)&&Zz(u,y,m),Object.keys(u).sort(Gz).map(k=>+k)}getLabelForValue(t){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(t,o.tooltipFormat):n.format(t,o.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,s=n||r[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,o,r){const i=this.options,s=i.ticks.callback;if(s)return Pe(s,[t,n,o],this);const c=i.time.displayFormats,d=this._unit,h=this._majorUnit,u=d&&c[d],p=h&&c[h],y=o[n],f=h&&p&&y&&y.major;return this._adapter.format(t,r||(f?p:u))}generateTickLabels(t){let n,o,r;for(n=0,o=t.length;n<o;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,o=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,o=this.ctx.measureText(t).width,r=la(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),s=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:o*i+c*s,h:o*s+c*i}}_getLabelCapacity(t){const n=this.options.time,o=n.displayFormats,r=o[n.unit]||o.millisecond,i=this._tickFormatFunction(t,0,Yz(this,[t],this._majorUnit),r),s=this._getLabelSize(i),c=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return c>0?c:1}getDataTimestamps(){let t=this._cache.data||[],n,o;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,o=r.length;n<o;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,o;if(t.length)return t;const r=this.getLabels();for(n=0,o=r.length;n<o;++n)t.push(Kz(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lV(t.sort(Gz))}}le(MS,"id","time"),le(MS,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function xS(e,t,n){let o=0,r=e.length-1,i,s,c,d;n?(t>=e[o].pos&&t<=e[r].pos&&({lo:o,hi:r}=rs(e,"pos",t)),{pos:i,time:c}=e[o],{pos:s,time:d}=e[r]):(t>=e[o].time&&t<=e[r].time&&({lo:o,hi:r}=rs(e,"time",t)),{time:i,pos:c}=e[o],{time:s,pos:d}=e[r]);const h=s-i;return h?c+(d-c)*(t-i)/h:c}class Qz extends MS{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=xS(n,this.min),this._tableRange=xS(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:o}=this,r=[],i=[];let s,c,d,h,u;for(s=0,c=t.length;s<c;++s)h=t[s],h>=n&&h<=o&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,c=r.length;s<c;++s)u=r[s+1],d=r[s-1],h=r[s],Math.round((u+d)/2)!==h&&i.push({time:h,pos:s/(c-1)});return i}_generate(){const t=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(t)||!o.length)&&o.splice(0,0,t),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((r,i)=>r-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?t=this.normalize(n.concat(o)):t=n.length?n:o,t=this._cache.all=t,t}getDecimalForValue(t){return(xS(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return xS(this._table,o*this._tableRange+this._minPos,!0)}}le(Qz,"id","timeseries"),le(Qz,"defaults",MS.defaults);const hU={key:0,class:"mb-2 text-sm font-medium text-gray-700"},uU={key:0,class:"text-red-500 ml-1"},pU={key:0,class:"absolute inset-0 flex items-center justify-center bg-white"},yU={key:1,class:"absolute inset-0 flex items-center justify-center bg-red-50 border border-red-200 rounded"},fU={class:"text-red-600 text-sm"},mU={key:1,class:"mt-2 text-xs text-gray-500"},kU={key:0},Jz=ra(a.defineComponent({name:"DCodeChart",__name:"DCodeChart",props:{type:{default:"line"},width:{default:400},height:{default:300},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},error:{default:null},showInfo:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},maintainAspectRatio:{type:Boolean,default:!1},theme:{default:"light"},colors:{default:()=>["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#14B8A6","#F97316","#6366F1","#84CC16"]},data:{},modelValue:{},options:{},onClick:{},onHover:{},label:{}},emits:["update:modelValue","click","hover","ready"],setup(e,{expose:t,emit:n}){ua.register(b_,M_,fS,Va,mS,Wl,K$,aU,W$,j$,rS,oS,r_,Os);const o=e,r=n,i=a.ref(null),s=a.shallowRef(null),c=a.ref(null),d=a.computed(()=>({"opacity-50 pointer-events-none":o.loading||o.error})),h=()=>{const y=o.theme==="dark";return{responsive:o.responsive,maintainAspectRatio:o.maintainAspectRatio,animation:{duration:1e3,easing:"easeInOutQuart",delay:f=>{let m=0;return f.type==="data"&&f.mode==="default"&&(m=f.dataIndex*100+f.datasetIndex*50),m},onComplete:()=>{}},plugins:{legend:{position:"top",labels:{color:y?"#E5E7EB":"#374151",font:{size:12}}},tooltip:{backgroundColor:y?"#1F2937":"#FFFFFF",titleColor:y?"#F3F4F6":"#111827",bodyColor:y?"#D1D5DB":"#4B5563",borderColor:y?"#374151":"#E5E7EB",borderWidth:1,animation:{duration:200,easing:"easeInOutQuad"}}},scales:o.type!=="pie"&&o.type!=="doughnut"&&o.type!=="polarArea"?{x:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}},y:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}}}:void 0}},u=y=>!y||!y.datasets?y:{...y,datasets:y.datasets.map((f,m)=>{const k=m%o.colors.length,g=o.colors[k];let x=f.backgroundColor,C=f.borderColor;return["pie","doughnut","polarArea"].includes(o.type)&&(!x||x.length===0)?f.data&&(x=f.data.map((v,b)=>o.colors[b%o.colors.length]+"80"),C=f.data.map((v,b)=>o.colors[b%o.colors.length])):(x=x||g+"40",C=C||g),{...f,borderColor:C,backgroundColor:x,pointBackgroundColor:f.pointBackgroundColor||g,pointBorderColor:f.pointBorderColor||g,hoverBackgroundColor:f.hoverBackgroundColor||g+"60",hoverBorderColor:f.hoverBorderColor||g}})},p=async()=>{if(!i.value)return;await a.nextTick(),s.value&&s.value.destroy();const y=o.data||o.modelValue;let f=y;if(Array.isArray(y))if(y.length>0&&typeof y[0]=="object"&&y[0]!==null){const k=Object.keys(y[0]),g=k.find(C=>["label","name","x","category","title"].includes(C.toLowerCase()))||k[0],x=k.find(C=>C!==g&&["value","y","count","amount","total","data"].includes(C.toLowerCase()))||k.find(C=>C!==g&&typeof y[0][C]=="number")||(k.length>1?k.find(C=>C!==g):k[0]);f={labels:y.map(C=>C[g||""]),datasets:[{label:o.label||"Data",data:y.map(C=>C[x||""])}]}}else y.length>0?f={labels:y.map((k,g)=>`Data ${g+1}`),datasets:[{label:o.label||"Data",data:y}]}:f={labels:[],datasets:[]};if(c.value=u(f),!c.value)return;const m={...h(),...o.options,onClick:(k,g)=>{r("click",k,g),o.onClick&&o.onClick(k,g)},onHover:(k,g)=>{r("hover",k,g),o.onHover&&o.onHover(k,g)}};s.value=new ua(i.value,{type:o.type,data:c.value,options:m}),r("ready",s.value)};return a.watch(()=>[o.data,o.modelValue,o.type,o.options,o.theme],()=>{p()},{deep:!0}),a.watch(()=>[o.width,o.height],()=>{s.value&&s.value.resize()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{s.value&&s.value.destroy()}),t({chart:s,updateChart:p}),(y,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-code-chart",d.value])},[e.label?(a.openBlock(),a.createElementBlock("div",hU,[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",uU,"*")):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"relative",style:a.normalizeStyle({height:e.height+"px"})},[a.createElementVNode("canvas",{ref_key:"chartCanvas",ref:i},null,512),e.loading?(a.openBlock(),a.createElementBlock("div",pU,[...f[0]||(f[0]=[a.createElementVNode("div",{class:"animate-pulse-slow rounded-full h-8 w-8 border-b-2 border-blue-600"},null,-1)])])):a.createCommentVNode("",!0),e.error?(a.openBlock(),a.createElementBlock("div",yU,[a.createElementVNode("div",fU,a.toDisplayString(e.error),1)])):a.createCommentVNode("",!0)],4),e.showInfo&&c.value?(a.openBlock(),a.createElementBlock("div",mU,[c.value.datasets?(a.openBlock(),a.createElementBlock("div",kU,a.toDisplayString(c.value.datasets.length)+" dataset(s) • "+a.toDisplayString(c.value.labels?c.value.labels.length:0)+" data points ",1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b1c7c58f"]]),Pa=a.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(UH),a.mergeProps(a.unref(n),{class:a.unref(Me)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),gU=["aria-busy"],bU={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},MU={key:1,class:"flex items-center gap-2.5"},xU=["id","checked","indeterminate","disabled","required"],wU={key:0,class:"ml-1 text-red-500 dark:text-red-400","aria-label":"required"},Kl=ra(a.defineComponent({name:"DCodeCheckbox",inheritAttrs:!1,__name:"DCodeCheckbox",props:{modelValue:{type:[Boolean,null]},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>n.label),s=a.computed(()=>n.placeholder),c=a.computed(()=>n.title),d=a.computed(()=>r.visible??!0),h=a.computed(()=>n.required===""||n.required===!0||n.required==="true"),u=Math.random().toString(36).slice(2,7),p=a.computed(()=>`dcode-checkbox-${n.id||i.value||"checkbox"}-${u}`),y=a.ref(!!r.modelValue);a.watch(()=>r.modelValue,k=>{y.value=!!k},{immediate:!0});const f=()=>{if(r.disabled)return;const k=!y.value;y.value=k,o("update:modelValue",k)},m=k=>{(k.key===" "||k.key==="Enter")&&(k.preventDefault(),f())};return(k,g)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["",[a.unref(n).class,{"opacity-60 cursor-not-allowed":e.disabled}]]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",bU)):a.createCommentVNode("",!0),g[0]||(g[0]=a.createElementVNode("div",{class:"flex items-center gap-2.5"},[a.createElementVNode("div",{class:"h-4 w-4 rounded bg-gray-200 dark:bg-gray-700 animate-pulse flex-shrink-0"}),a.createElementVNode("div",{class:"h-4 w-24 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1))],64)):(a.openBlock(),a.createElementBlock("div",MU,[a.createElementVNode("label",{class:a.normalizeClass(["flex items-start gap-2.5 group relative",{"cursor-pointer":!e.disabled,"opacity-50 cursor-not-allowed":e.disabled}])},[a.createElementVNode("input",{type:"checkbox",id:p.value,class:"sr-only",checked:y.value,indeterminate:e.indeterminate,disabled:e.disabled,required:h.value,onChange:f,onKeydown:m},null,40,xU),a.createElementVNode("div",{class:a.normalizeClass(["h-4 w-4 shrink-0 rounded-sm border shadow-sm transition-colors flex items-center justify-center mt-0.5",[y.value||e.indeterminate?"bg-primary border-primary text-primary-foreground":"border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-900",e.disabled?"cursor-not-allowed":"cursor-pointer"]]),"aria-hidden":"true"},[y.value&&!e.indeterminate?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:"h-3 w-3 text-white","stroke-width":"3"})):e.indeterminate?(a.openBlock(),a.createBlock(a.unref(dl),{key:1,class:"h-3 w-3 text-white","stroke-width":"3"})):a.createCommentVNode("",!0)],2),s.value||c.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["text-sm leading-relaxed select-none transition-colors",[e.disabled?"text-gray-400 dark:text-gray-500":"text-gray-700 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-100"]])},a.toDisplayString(s.value||c.value),3)):a.createCommentVNode("",!0)],2),i.value?(a.openBlock(),a.createBlock(Pa,{key:0,for:p.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300 select-none cursor-pointer"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",wU," * ")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0)]))],10,gU)),[[a.vShow,d.value]])}}),[["__scopeId","data-v-938d0f92"]]),vU=["aria-busy"],CU={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},LU={key:1,class:"flex justify-end"},SU=["for"],IU={key:0,class:"ml-1 text-destructive"},_U={class:"relative w-full group"},AU={class:"flex items-center self-stretch px-3 bg-gray-50 dark:bg-neutral-800 border-r border-gray-300 dark:border-gray-700"},BU={class:"text-sm font-semibold text-gray-500 dark:text-gray-400 whitespace-nowrap select-none"},VU=["id","disabled","readonly","placeholder","maxlength"],zU={key:0,class:"absolute top-full right-0 z-10 text-[11px] text-gray-400 dark:text-gray-500 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100 mt-0.5"},PU={key:1,class:"flex items-center gap-1 text-xs text-destructive"},eP=a.defineComponent({name:"DCodeCurrencyField",inheritAttrs:!1,__name:"DCodeCurrencyField",props:{modelValue:{},currency:{default:"IDR"},locale:{},label:{},placeholder:{},error:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},prependInner:{},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=Math.random().toString(36).slice(2,7),s=a.computed(()=>`app-currency-field-${n.id||r.label||"currency-field"}-${i}`),c=a.computed(()=>{const B=n.required,A=n["aria-required"];return B===""||B===!0||B==="true"||(A==="true"||A===!0)}),d=a.computed(()=>{const B=n.maxlength??n.maxLength;let A=Number.NaN;return typeof B=="number"?A=B:typeof B=="string"&&(A=Number.parseInt(B,10)),Number.isFinite(A)&&A>0?A:void 0}),h=a.computed(()=>r.locale?r.locale:"en-US"),u=a.computed(()=>r.prependInner?r.prependInner:r.currency==="USD"?"$":r.currency==="IDR"?"Rp":r.currency),p=a.computed(()=>new Intl.NumberFormat(h.value,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})),y=B=>{const A=B.replaceAll(/\D/g,"");return A?Number(A):null},f=B=>p.value.format(B),m=a.ref(""),k=a.ref(null);a.watch(()=>r.modelValue,B=>{B==null?m.value="":y(m.value)!==B&&(m.value=f(B))},{immediate:!0});const g=(B,A)=>{let V=0;for(let E=0;E<A;E++)/\d/.test(B[E])&&V++;return V},x=(B,A)=>{let V=0;for(let E=0;E<B.length;E++)if(/\d/.test(B[E])&&(V++,V===A))return E+1;return B.length},C=B=>{const A=B.target,V=A.value,E=A.selectionStart??V.length,W=y(V);if(W===null){m.value="",o("update:modelValue",null);return}const H=f(W);if(V!==H){const O=g(V,E);m.value=H,a.nextTick(()=>{if(k.value){const U=x(H,O);k.value.setSelectionRange(U,U)}})}o("update:modelValue",W)},v=()=>{m.value="",o("update:modelValue",null),o("clear")},b=a.computed(()=>!r.clearable||r.disabled||r.readonly?!1:r.hideClearWhenEmpty?m.value.length>0:!0),L=a.computed(()=>!!r.error),S=a.computed(()=>{const{class:B,maxlength:A,maxLength:V,...E}=n;return E}),M=a.computed(()=>m.value.length),w=a.computed(()=>r.showCharCount?(d.value??0)>0:!1),I=a.computed(()=>w.value&&M.value>0),z=a.computed(()=>`${M.value} / ${d.value}`);return(B,A)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1.5 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",CU)):a.createCommentVNode("",!0),A[2]||(A[2]=a.createElementVNode("div",{class:"relative w-full"},[a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),w.value?(a.openBlock(),a.createElementBlock("div",LU,[...A[1]||(A[1]=[a.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:s.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300"},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),c.value?(a.openBlock(),a.createElementBlock("span",IU,"*")):a.createCommentVNode("",!0)],8,SU)):a.createCommentVNode("",!0),a.createElementVNode("div",_U,[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full rounded-lg border overflow-hidden transition-all duration-200","bg-white dark:bg-neutral-900",L.value?"border-destructive ring-1 ring-destructive":"border-gray-300 dark:border-gray-700 focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 dark:focus-within:border-blue-400",r.disabled?"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-neutral-800":""])},[a.createElementVNode("div",AU,[a.createElementVNode("span",BU,a.toDisplayString(u.value),1)]),a.withDirectives(a.createElementVNode("input",a.mergeProps({id:s.value,ref_key:"inputRef",ref:k,"onUpdate:modelValue":A[0]||(A[0]=V=>m.value=V),onInput:C,type:"text",inputmode:"numeric"},S.value,{disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,maxlength:d.value,class:["flex-1 h-10 px-3 py-2 text-sm bg-transparent text-foreground dark:text-gray-300 outline-none placeholder:text-gray-400",b.value?"pr-8":""]}),null,16,VU),[[a.vModelText,m.value]]),b.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center w-8 h-10 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors flex-shrink-0","aria-label":"Clear input",onClick:v},[a.createVNode(a.unref(pt),{class:"w-3.5 h-3.5"})])):a.createCommentVNode("",!0)],2),I.value&&!L.value?(a.openBlock(),a.createElementBlock("p",zU,a.toDisplayString(z.value),1)):a.createCommentVNode("",!0)]),L.value?(a.openBlock(),a.createElementBlock("p",PU,[a.createVNode(a.unref(Tt),{class:"w-3.5 h-3.5 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(r.error),1)])):a.createCommentVNode("",!0)],64))],10,vU))}}),tP=6048e5,qU=864e5,aP=Symbol.for("constructDateFrom");function qa(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aP in e?e[aP](t):e instanceof Date?new e.constructor(t):new Date(t)}function _t(e,t){return qa(t||e,e)}let DU={};function wS(){return DU}function Xl(e,t){var c,d,h,u;const n=wS(),o=(t==null?void 0:t.weekStartsOn)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.weekStartsOn)??0,r=_t(e,t==null?void 0:t.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function vS(e,t){return Xl(e,{...t,weekStartsOn:1})}function nP(e,t){const n=_t(e,t==null?void 0:t.in),o=n.getFullYear(),r=qa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=vS(r),s=qa(n,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const c=vS(s);return n.getTime()>=i.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}function oP(e){const t=_t(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function EU(e,...t){const n=qa.bind(null,t.find(o=>typeof o=="object"));return t.map(n)}function rP(e,t){const n=_t(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function TU(e,t,n){const[o,r]=EU(n==null?void 0:n.in,e,t),i=rP(o),s=rP(r),c=+i-oP(i),d=+s-oP(s);return Math.round((c-d)/qU)}function HU(e,t){const n=nP(e,t),o=qa(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),vS(o)}function OU(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jU(e){return!(!OU(e)&&typeof e!="number"||isNaN(+_t(e)))}function FU(e,t){const n=_t(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const NU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RU=(e,t,n)=>{let o;const r=NU[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Ns(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $U={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GU={date:Ns({formats:$U,defaultWidth:"full"}),time:Ns({formats:UU,defaultWidth:"full"}),dateTime:Ns({formats:WU,defaultWidth:"full"})},KU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},XU=(e,t,n,o)=>KU[e];function Qt(e){return(t,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let r;if(o==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;r=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}const ZU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},YU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},JU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},aW={ordinalNumber:(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Qt({values:ZU,defaultWidth:"wide"}),quarter:Qt({values:YU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Qt({values:QU,defaultWidth:"wide"}),day:Qt({values:JU,defaultWidth:"wide"}),dayPeriod:Qt({values:eW,defaultWidth:"wide",formattingValues:tW,defaultFormattingWidth:"wide"})};function Jt(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const s=i[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?oW(c,p=>p.test(s)):nW(c,p=>p.test(s));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const u=t.slice(s.length);return{value:h,rest:u}}}function nW(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function oW(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function iP(e){return(t,n={})=>{const o=t.match(e.matchPattern);if(!o)return null;const r=o[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(r.length);return{value:s,rest:c}}}const rW=/^(\d+)(th|st|nd|rd)?/i,iW=/\d+/i,sW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lW={any:[/^b/i,/^(a|c)/i]},cW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dW={any:[/1/i,/2/i,/3/i,/4/i]},hW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pW={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kW={ordinalNumber:iP({matchPattern:rW,parsePattern:iW,valueCallback:e=>parseInt(e,10)}),era:Jt({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),quarter:Jt({matchPatterns:cW,defaultMatchWidth:"wide",parsePatterns:dW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Jt({matchPatterns:hW,defaultMatchWidth:"wide",parsePatterns:uW,defaultParseWidth:"any"}),day:Jt({matchPatterns:pW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any"}),dayPeriod:Jt({matchPatterns:fW,defaultMatchWidth:"any",parsePatterns:mW,defaultParseWidth:"any"})},sP={code:"en-US",formatDistance:RU,formatLong:GU,formatRelative:XU,localize:aW,match:kW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gW(e,t){const n=_t(e,t==null?void 0:t.in);return TU(n,FU(n))+1}function bW(e,t){const n=_t(e,t==null?void 0:t.in),o=+vS(n)-+HU(n);return Math.round(o/tP)+1}function lP(e,t){var u,p,y,f;const n=_t(e,t==null?void 0:t.in),o=n.getFullYear(),r=wS(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(y=r.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??1,s=qa((t==null?void 0:t.in)||e,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const c=Xl(s,t),d=qa((t==null?void 0:t.in)||e,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const h=Xl(d,t);return+n>=+c?o+1:+n>=+h?o:o-1}function MW(e,t){var c,d,h,u;const n=wS(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,r=lP(e,t),i=qa((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Xl(i,t)}function xW(e,t){const n=_t(e,t==null?void 0:t.in),o=+Xl(n,t)-+MW(n,t);return Math.round(o/tP)+1}function Be(e,t){const n=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return n+o}const Da={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return Be(t==="yy"?o%100:o,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,o=e.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return Be(r,t.length)}},Rs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cP={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const o=e.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Da.y(e,t)},Y:function(e,t,n,o){const r=lP(e,o),i=r>0?r:1-r;if(t==="YY"){const s=i%100;return Be(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Be(i,t.length)},R:function(e,t){const n=nP(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Be(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Be(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Da.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return Be(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=xW(e,o);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},I:function(e,t,n){const o=bW(e);return t==="Io"?n.ordinalNumber(o,{unit:"week"}):Be(o,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Da.d(e,t)},D:function(e,t,n){const o=gW(e);return t==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Be(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Be(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Be(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=o===0?7:o;switch(t){case"i":return String(r);case"ii":return Be(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(o===12?r=Rs.noon:o===0?r=Rs.midnight:r=o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(o>=17?r=Rs.evening:o>=12?r=Rs.afternoon:o>=4?r=Rs.morning:r=Rs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Da.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Da.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return t==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Be(o,t.length)},k:function(e,t,n){let o=e.getHours();return o===0&&(o=24),t==="ko"?n.ordinalNumber(o,{unit:"hour"}):Be(o,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Da.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Da.s(e,t)},S:function(e,t){return Da.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return hP(o);case"XXXX":case"XX":return ys(o);case"XXXXX":case"XXX":default:return ys(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return hP(o);case"xxxx":case"xx":return ys(o);case"xxxxx":case"xxx":default:return ys(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dP(o,":");case"OOOO":default:return"GMT"+ys(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dP(o,":");case"zzzz":default:return"GMT"+ys(o,":")}},t:function(e,t,n){const o=Math.trunc(+e/1e3);return Be(o,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function dP(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),i=o%60;return i===0?n+String(r):n+String(r)+t+Be(i,2)}function hP(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):ys(e,t)}function ys(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Be(Math.trunc(o/60),2),i=Be(o%60,2);return n+r+t+i}const uP=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pP=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wW={p:pP,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return uP(e,t);let i;switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",uP(o,t)).replace("{{time}}",pP(r,t))}},vW=/^D+$/,CW=/^Y+$/,LW=["D","DD","YY","YYYY"];function SW(e){return vW.test(e)}function IW(e){return CW.test(e)}function _W(e,t,n){const o=AW(e,t,n);if(console.warn(o),LW.includes(e))throw new RangeError(o)}function AW(e,t,n){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const BW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zW=/^'([^]*?)'?$/,PW=/''/g,qW=/[a-zA-Z]/;function yP(e,t,n){var u,p,y,f;const o=wS(),r=o.locale??sP,i=o.firstWeekContainsDate??((p=(u=o.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??1,s=o.weekStartsOn??((f=(y=o.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??0,c=_t(e,n==null?void 0:n.in);if(!jU(c))throw new RangeError("Invalid time value");let d=t.match(VW).map(m=>{const k=m[0];if(k==="p"||k==="P"){const g=wW[k];return g(m,r.formatLong)}return m}).join("").match(BW).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const k=m[0];if(k==="'")return{isToken:!1,value:DW(m)};if(cP[k])return{isToken:!0,value:m};if(k.match(qW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:m}});r.localize.preprocessor&&(d=r.localize.preprocessor(c,d));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(m=>{if(!m.isToken)return m.value;const k=m.value;(IW(k)||SW(k))&&_W(k,t,String(e));const g=cP[k[0]];return g(c,k,r.localize,h)}).join("")}function DW(e){const t=e.match(zW);return t?t[1].replace(PW,"'"):e}const EW={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},TW=(e,t,n)=>{let o;const r=EW[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+o:o+" yang lalu":o},HW={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},OW={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},jW={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FW={date:Ns({formats:HW,defaultWidth:"full"}),time:Ns({formats:OW,defaultWidth:"full"}),dateTime:Ns({formats:jW,defaultWidth:"full"})},NW={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},RW=(e,t,n,o)=>NW[e],$W={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},UW={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},WW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},GW={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},KW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},XW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},ZW={ordinalNumber:(e,t)=>"ke-"+Number(e),era:Qt({values:$W,defaultWidth:"wide"}),quarter:Qt({values:UW,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Qt({values:WW,defaultWidth:"wide"}),day:Qt({values:GW,defaultWidth:"wide"}),dayPeriod:Qt({values:KW,defaultWidth:"wide",formattingValues:XW,defaultFormattingWidth:"wide"})},YW=/^ke-(\d+)?/i,QW=/\d+/i,JW={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},eG={any:[/^s/i,/^(m|e)/i]},tG={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},aG={any:[/1/i,/2/i,/3/i,/4/i]},nG={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},oG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},rG={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},iG={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},sG={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},lG={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},cG={ordinalNumber:iP({matchPattern:YW,parsePattern:QW,valueCallback:e=>parseInt(e,10)}),era:Jt({matchPatterns:JW,defaultMatchWidth:"wide",parsePatterns:eG,defaultParseWidth:"any"}),quarter:Jt({matchPatterns:tG,defaultMatchWidth:"wide",parsePatterns:aG,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Jt({matchPatterns:nG,defaultMatchWidth:"wide",parsePatterns:oG,defaultParseWidth:"any"}),day:Jt({matchPatterns:rG,defaultMatchWidth:"wide",parsePatterns:iG,defaultParseWidth:"any"}),dayPeriod:Jt({matchPatterns:sG,defaultMatchWidth:"any",parsePatterns:lG,defaultParseWidth:"any"})},dG={code:"id",formatDistance:TW,formatLong:FW,formatRelative:RW,localize:ZW,match:cG,options:{weekStartsOn:1,firstWeekContainsDate:1}},fP={primary:{light:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"#bfdbfe"},dark:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"rgba(30, 58, 138, 0.3)"}},emerald:{light:{primary:"#16a34a",text:"#ffffff",hover:"#dcfce7",border:"#16a34a",range:"#ecfdf5"},dark:{primary:"#22c55e",text:"#0b1220",hover:"#14532d",border:"#22c55e",range:"rgba(6, 78, 59, 0.3)"}},amber:{light:{primary:"#d97706",text:"#ffffff",hover:"#fffbeb",border:"#d97706",range:"#fffbeb"},dark:{primary:"#f59e0b",text:"#0b1220",hover:"#78350f",border:"#f59e0b",range:"rgba(120, 53, 15, 0.3)"}},violet:{light:{primary:"#7c3aed",text:"#ffffff",hover:"#f5f3ff",border:"#7c3aed",range:"#f5f3ff"},dark:{primary:"#8b5cf6",text:"#0b1220",hover:"#2e1065",border:"#8b5cf6",range:"rgba(46, 16, 101, 0.3)"}},destructive:{light:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.10)",border:"hsl(var(--destructive))",range:"#fef2f2"},dark:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.18)",border:"hsl(var(--destructive))",range:"rgba(127, 29, 29, 0.3)"}}},mP="dcode-dp-theme-forced";function hG(e,t=mP){const n=fP[e]??fP.primary,o=`
|
|
8519
|
+
`):e}function X$(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:s,value:c}=i.getLabelAndValue(r);return{chart:e,label:s,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:c,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function Oz(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:s,boxHeight:c}=t,d=Qe(t.bodyFont),h=Qe(t.titleFont),u=Qe(t.footerFont),p=i.length,y=r.length,f=o.length,m=gt(t.padding);let g=m.height,k=0,M=o.reduce((b,C)=>b+C.before.length+C.lines.length+C.after.length,0);if(M+=e.beforeBody.length+e.afterBody.length,p&&(g+=p*h.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),M){const b=t.displayColors?Math.max(c,d.lineHeight):d.lineHeight;g+=f*b+(M-f)*d.lineHeight+(M-1)*t.bodySpacing}y&&(g+=t.footerMarginTop+y*u.lineHeight+(y-1)*t.footerSpacing);let w=0;const x=function(b){k=Math.max(k,n.measureText(b).width+w)};return n.save(),n.font=h.string,_e(e.title,x),n.font=d.string,_e(e.beforeBody.concat(e.afterBody),x),w=t.displayColors?s+2+t.boxPadding:0,_e(o,b=>{_e(b.before,x),_e(b.lines,x),_e(b.after,x)}),w=0,n.font=u.string,_e(e.footer,x),n.restore(),k+=m.width,{width:k,height:g}}function Z$(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}function Y$(e,t,n,o){const{x:r,width:i}=o,s=n.caretSize+n.caretPadding;if(e==="left"&&r+i+s>t.width||e==="right"&&r-i-s<0)return!0}function Q$(e,t,n,o){const{x:r,width:i}=n,{width:s,chartArea:{left:c,right:d}}=e;let h="center";return o==="center"?h=r<=(c+d)/2?"left":"right":r<=i/2?h="left":r>=s-i/2&&(h="right"),Y$(h,e,t,n)&&(h="center"),h}function jz(e,t,n){const o=n.yAlign||t.yAlign||Z$(e,n);return{xAlign:n.xAlign||t.xAlign||Q$(e,t,n,o),yAlign:o}}function J$(e,t){let{x:n,width:o}=e;return t==="right"?n-=o:t==="center"&&(n-=o/2),n}function eU(e,t,n){let{y:o,height:r}=e;return t==="top"?o+=n:t==="bottom"?o-=r+n:o-=r/2,o}function Fz(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:s}=e,{xAlign:c,yAlign:d}=n,h=r+i,{topLeft:u,topRight:p,bottomLeft:y,bottomRight:f}=Ds(s);let m=J$(t,c);const g=eU(t,d,h);return d==="center"?c==="left"?m+=h:c==="right"&&(m-=h):c==="left"?m-=Math.max(u,y)+r:c==="right"&&(m+=Math.max(p,f)+r),{x:Ze(m,0,o.width-t.width),y:Ze(g,0,o.height-t.height)}}function gS(e,t,n){const o=gt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-o.right:e.x+o.left}function Nz(e){return Yt([],pa(e))}function tU(e,t,n){return ls(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Rz(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const $z={beforeTitle:sa,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:sa,beforeBody:sa,beforeLabel:sa,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Se(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:sa,afterBody:sa,beforeFooter:sa,footer:sa,afterFooter:sa};function ot(e,t,n,o){const r=e[t].call(n,o);return typeof r>"u"?$z[t].call(n,o):r}class g_ extends ha{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,o=this.options.setContext(this.getContext()),r=o.enabled&&n.options.animation&&o.animations,i=new OV(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=tU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:o}=n,r=ot(o,"beforeTitle",this,t),i=ot(o,"title",this,t),s=ot(o,"afterTitle",this,t);let c=[];return c=Yt(c,pa(r)),c=Yt(c,pa(i)),c=Yt(c,pa(s)),c}getBeforeBody(t,n){return Nz(ot(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:o}=n,r=[];return _e(t,i=>{const s={before:[],lines:[],after:[]},c=Rz(o,i);Yt(s.before,pa(ot(c,"beforeLabel",this,i))),Yt(s.lines,ot(c,"label",this,i)),Yt(s.after,pa(ot(c,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(t,n){return Nz(ot(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:o}=n,r=ot(o,"beforeFooter",this,t),i=ot(o,"footer",this,t),s=ot(o,"afterFooter",this,t);let c=[];return c=Yt(c,pa(r)),c=Yt(c,pa(i)),c=Yt(c,pa(s)),c}_createItems(t){const n=this._active,o=this.chart.data,r=[],i=[],s=[];let c=[],d,h;for(d=0,h=n.length;d<h;++d)c.push(X$(this.chart,n[d]));return t.filter&&(c=c.filter((u,p,y)=>t.filter(u,p,y,o))),t.itemSort&&(c=c.sort((u,p)=>t.itemSort(u,p,o))),_e(c,u=>{const p=Rz(t.callbacks,u);r.push(ot(p,"labelColor",this,u)),i.push(ot(p,"labelPointStyle",this,u)),s.push(ot(p,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=c,c}update(t,n){const o=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const c=Gl[o.position].call(this,r,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const d=this._size=Oz(this,o),h=Object.assign({},c,d),u=jz(this.chart,o,h),p=Fz(o,h,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:p.x,y:p.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,o,r){const i=this.getCaretPosition(t,o,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,o){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:c}=o,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Ds(c),{x:y,y:f}=t,{width:m,height:g}=n;let k,M,w,x,b,C;return i==="center"?(b=f+g/2,r==="left"?(k=y,M=k-s,x=b+s,C=b-s):(k=y+m,M=k+s,x=b-s,C=b+s),w=k):(r==="left"?M=y+Math.max(d,u)+s:r==="right"?M=y+m-Math.max(h,p)-s:M=this.caretX,i==="top"?(x=f,b=x-s,k=M-s,w=M+s):(x=f+g,b=x+s,k=M+s,w=M-s),C=x),{x1:k,x2:M,x3:w,y1:x,y2:b,y3:C}}drawTitle(t,n,o){const r=this.title,i=r.length;let s,c,d;if(i){const h=Hs(o.rtl,this.x,this.width);for(t.x=gS(this,o.titleAlign,o),n.textAlign=h.textAlign(o.titleAlign),n.textBaseline="middle",s=Qe(o.titleFont),c=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,d=0;d<i;++d)n.fillText(r[d],h.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+c,d+1===i&&(t.y+=o.titleMarginBottom-c)}}_drawColorBox(t,n,o,r,i){const s=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:h}=i,u=Qe(i.bodyFont),p=gS(this,"left",i),y=r.x(p),f=d<u.lineHeight?(u.lineHeight-d)/2:0,m=n.y+f;if(i.usePointStyle){const g={radius:Math.min(h,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},k=r.leftForLtr(y,h)+h/2,M=m+d/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,KI(t,g,k,M),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,KI(t,g,k,M)}else{t.lineWidth=we(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=r.leftForLtr(y,h),k=r.leftForLtr(r.xPlus(y,1),h-2),M=Ds(s.borderRadius);Object.values(M).some(w=>w!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,QL(t,{x:g,y:m,w:h,h:d,radius:M}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),QL(t,{x:k,y:m+1,w:h-2,h:d-2,radius:M}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,m,h,d),t.strokeRect(g,m,h,d),t.fillStyle=s.backgroundColor,t.fillRect(k,m+1,h-2,d-2))}t.fillStyle=this.labelTextColors[o]}drawBody(t,n,o){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:c,boxHeight:d,boxWidth:h,boxPadding:u}=o,p=Qe(o.bodyFont);let y=p.lineHeight,f=0;const m=Hs(o.rtl,this.x,this.width),g=function(v){n.fillText(v,m.x(t.x+f),t.y+y/2),t.y+=y+i},k=m.textAlign(s);let M,w,x,b,C,S,L;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,t.x=gS(this,k,o),n.fillStyle=o.bodyColor,_e(this.beforeBody,g),f=c&&k!=="right"?s==="center"?h/2+u:h+2+u:0,b=0,S=r.length;b<S;++b){for(M=r[b],w=this.labelTextColors[b],n.fillStyle=w,_e(M.before,g),x=M.lines,c&&x.length&&(this._drawColorBox(n,t,b,m,o),y=Math.max(p.lineHeight,d)),C=0,L=x.length;C<L;++C)g(x[C]),y=p.lineHeight;_e(M.after,g)}f=0,y=p.lineHeight,_e(this.afterBody,g),t.y-=i}drawFooter(t,n,o){const r=this.footer,i=r.length;let s,c;if(i){const d=Hs(o.rtl,this.x,this.width);for(t.x=gS(this,o.footerAlign,o),t.y+=o.footerMarginTop,n.textAlign=d.textAlign(o.footerAlign),n.textBaseline="middle",s=Qe(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,c=0;c<i;++c)n.fillText(r[c],d.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o.footerSpacing}}drawBackground(t,n,o,r){const{xAlign:i,yAlign:s}=this,{x:c,y:d}=t,{width:h,height:u}=o,{topLeft:p,topRight:y,bottomLeft:f,bottomRight:m}=Ds(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(c+p,d),s==="top"&&this.drawCaret(t,n,o,r),n.lineTo(c+h-y,d),n.quadraticCurveTo(c+h,d,c+h,d+y),s==="center"&&i==="right"&&this.drawCaret(t,n,o,r),n.lineTo(c+h,d+u-m),n.quadraticCurveTo(c+h,d+u,c+h-m,d+u),s==="bottom"&&this.drawCaret(t,n,o,r),n.lineTo(c+f,d+u),n.quadraticCurveTo(c,d+u,c,d+u-f),s==="center"&&i==="left"&&this.drawCaret(t,n,o,r),n.lineTo(c,d+p),n.quadraticCurveTo(c,d,c+p,d),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,o=this.$animations,r=o&&o.x,i=o&&o.y;if(r||i){const s=Gl[t.position].call(this,this._active,this._eventPosition);if(!s)return;const c=this._size=Oz(this,t),d=Object.assign({},s,this._size),h=jz(n,t,d),u=Fz(t,d,h,n);(r._to!==u.x||i._to!==u.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=gt(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(t.save(),t.globalAlpha=o,this.drawBackground(i,t,r,n),AV(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),BV(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const o=this._active,r=t.map(({datasetIndex:c,index:d})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[d],index:d}}),i=!WL(o,r),s=this._positionChanged(r,n);(i||s)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,o),c=this._positionChanged(s,t),d=n||!WL(s,i)||c;return d&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),d}_getActiveElements(t,n,o,r){const i=this.options;if(t.type==="mouseout")return[];if(!r)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,i.mode,i,o);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:o,caretY:r,options:i}=this,s=Gl[i.position].call(this,t,n);return s!==!1&&(o!==s.x||r!==s.y)}}le(g_,"positioners",Gl);var aU={id:"tooltip",_element:g_,positioners:Gl,afterInit(e,t,n){n&&(e.tooltip=new g_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:$z},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const nU=(e,t,n,o)=>(typeof t=="string"?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function oU(e,t,n,o){const r=e.indexOf(t);if(r===-1)return nU(e,t,n,o);const i=e.lastIndexOf(t);return r!==i?n:r}const rU=(e,t)=>e===null?null:Ze(Math.round(e),0,t);function Uz(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class b_ extends js{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:r,label:i}of n)o[r]===i&&o.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Se(t))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===t?n:oU(o,t,ge(n,t),this._addedLabels),rU(n,o.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(o=0),n||(r=this.getLabels().length-1)),this.min=o,this.max=r}buildTicks(){const t=this.min,n=this.max,o=this.options.offset,r=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=t;s<=n;s++)r.push({value:s});return r}getLabelForValue(t){return Uz.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}le(b_,"id","category"),le(b_,"defaults",{ticks:{callback:Uz}});function iU(e,t){const n=[],{bounds:r,step:i,min:s,max:c,precision:d,count:h,maxTicks:u,maxDigits:p,includeBounds:y}=e,f=i||1,m=u-1,{min:g,max:k}=t,M=!Se(s),w=!Se(c),x=!Se(h),b=(k-g)/(p+1);let C=nV((k-g)/m/f)*f,S,L,v,I;if(C<1e-14&&!M&&!w)return[{value:g},{value:k}];I=Math.ceil(k/C)-Math.floor(g/C),I>m&&(C=nV(I*C/m/f)*f),Se(d)||(S=Math.pow(10,d),C=Math.ceil(C*S)/S),r==="ticks"?(L=Math.floor(g/C)*C,v=Math.ceil(k/C)*C):(L=g,v=k),M&&w&&i&&cF((c-s)/i,C/1e3)?(I=Math.round(Math.min((c-s)/C,u)),C=(c-s)/I,L=s,v=c):x?(L=M?s:L,v=w?c:v,I=h-1,C=(v-L)/I):(I=(v-L)/C,zl(I,Math.round(I),C/1e3)?I=Math.round(I):I=Math.ceil(I));const q=Math.max(oV(C),oV(L));S=Math.pow(10,Se(d)?q:d),L=Math.round(L*S)/S,v=Math.round(v*S)/S;let B=0;for(M&&(y&&L!==s?(n.push({value:s}),L<s&&B++,zl(Math.round((L+B*C)*S)/S,s,Wz(s,b,e))&&B++):L<s&&B++);B<I;++B){const A=Math.round((L+B*C)*S)/S;if(w&&A>c)break;n.push({value:A})}return w&&y&&v!==c?n.length&&zl(n[n.length-1].value,c,Wz(c,b,e))?n[n.length-1].value=c:n.push({value:c}):(!w||v===c)&&n.push({value:v}),n}function Wz(e,t,{horizontal:n,minRotation:o}){const r=la(o),i=(n?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class sU extends js{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Se(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:r,max:i}=this;const s=d=>r=n?r:d,c=d=>i=o?i:d;if(t){const d=Xt(r),h=Xt(i);d<0&&h<0?c(0):d>0&&h>0&&s(0)}if(r===i){let d=i===0?1:Math.abs(i*.05);c(i+d),t||s(r-d)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=t,r;return o?(r=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let o=this.getTickLimit();o=Math.max(2,o);const r={maxTicks:o,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=iU(r,i);return t.bounds==="ticks"&&dF(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&t.length){const r=(o-n)/Math.max(t.length-1,1)/2;n-=r,o+=r}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(t){return UI(t,this.chart.options.locale,this.options.ticks.format)}}class M_ extends sU{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Xe(t)?t:0,this.max=Xe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,o=la(this.options.ticks.minRotation),r=(t?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}le(M_,"id","linear"),le(M_,"defaults",{ticks:{callback:fV.formatters.numeric}});const bS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rt=Object.keys(bS);function Gz(e,t){return e-t}function Kz(e,t){if(Se(t))return null;const n=e._adapter,{parser:o,round:r,isoWeekday:i}=e._parseOpts;let s=t;return typeof o=="function"&&(s=o(s)),Xe(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(r&&(s=r==="week"&&(Pl(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,r)),+s)}function Xz(e,t,n,o){const r=rt.length;for(let i=rt.indexOf(e);i<r-1;++i){const s=bS[rt[i]],c=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(c*s.size))<=o)return rt[i]}return rt[r-1]}function lU(e,t,n,o,r){for(let i=rt.length-1;i>=rt.indexOf(n);i--){const s=rt[i];if(bS[s].common&&e._adapter.diff(r,o,s)>=t-1)return s}return rt[n?rt.indexOf(n):0]}function cU(e){for(let t=rt.indexOf(e)+1,n=rt.length;t<n;++t)if(bS[rt[t]].common)return rt[t]}function Zz(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:o,hi:r}=FI(n,t),i=n[o]>=t?n[o]:n[r];e[i]=!0}}function dU(e,t,n,o){const r=e._adapter,i=+r.startOf(t[0].value,o),s=t[t.length-1].value;let c,d;for(c=i;c<=s;c=+r.add(c,1,o))d=n[c],d>=0&&(t[d].major=!0);return t}function Yz(e,t,n){const o=[],r={},i=t.length;let s,c;for(s=0;s<i;++s)c=t[s],r[c]=s,o.push({value:c,major:!1});return i===0||!n?o:dU(e,o,r,n)}class MS extends js{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const o=t.time||(t.time={}),r=this._adapter=new WN._date(t.adapters.date);r.init(n),Bl(o.displayFormats,r.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Kz(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,o=t.time.unit||"day";let{min:r,max:i,minDefined:s,maxDefined:c}=this.getUserBounds();function d(h){!s&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!c&&!isNaN(h.max)&&(i=Math.max(i,h.max))}(!s||!c)&&(d(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&d(this.getMinMax(!1))),r=Xe(r)&&!isNaN(r)?r:+n.startOf(Date.now(),o),i=Xe(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],o=t[t.length-1]),{min:n,max:o}}buildTicks(){const t=this.options,n=t.time,o=t.ticks,r=o.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,s=this.max,c=fF(r,i,s);return this._unit=n.unit||(o.autoSkip?Xz(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):lU(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:cU(this._unit),this.initOffsets(r),t.reverse&&c.reverse(),Yz(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,o=0,r,i;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?o=i:o=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Ze(n,0,s),o=Ze(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const t=this._adapter,n=this.min,o=this.max,r=this.options,i=r.time,s=i.unit||Xz(i.minUnit,n,o,this._getLabelCapacity(n)),c=ge(r.ticks.stepSize,1),d=s==="week"?i.isoWeekday:!1,h=Pl(d)||d===!0,u={};let p=n,y,f;if(h&&(p=+t.startOf(p,"isoWeek",d)),p=+t.startOf(p,h?"day":s),t.diff(o,n,s)>1e5*c)throw new Error(n+" and "+o+" are too far apart with stepSize of "+c+" "+s);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(y=p,f=0;y<o;y=+t.add(y,c,s),f++)Zz(u,y,m);return(y===o||r.bounds==="ticks"||f===1)&&Zz(u,y,m),Object.keys(u).sort(Gz).map(g=>+g)}getLabelForValue(t){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(t,o.tooltipFormat):n.format(t,o.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,s=n||r[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,o,r){const i=this.options,s=i.ticks.callback;if(s)return Pe(s,[t,n,o],this);const c=i.time.displayFormats,d=this._unit,h=this._majorUnit,u=d&&c[d],p=h&&c[h],y=o[n],f=h&&p&&y&&y.major;return this._adapter.format(t,r||(f?p:u))}generateTickLabels(t){let n,o,r;for(n=0,o=t.length;n<o;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,o=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,o=this.ctx.measureText(t).width,r=la(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),s=Math.sin(r),c=this._resolveTickFontOptions(0).size;return{w:o*i+c*s,h:o*s+c*i}}_getLabelCapacity(t){const n=this.options.time,o=n.displayFormats,r=o[n.unit]||o.millisecond,i=this._tickFormatFunction(t,0,Yz(this,[t],this._majorUnit),r),s=this._getLabelSize(i),c=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return c>0?c:1}getDataTimestamps(){let t=this._cache.data||[],n,o;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,o=r.length;n<o;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,o;if(t.length)return t;const r=this.getLabels();for(n=0,o=r.length;n<o;++n)t.push(Kz(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lV(t.sort(Gz))}}le(MS,"id","time"),le(MS,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function xS(e,t,n){let o=0,r=e.length-1,i,s,c,d;n?(t>=e[o].pos&&t<=e[r].pos&&({lo:o,hi:r}=rs(e,"pos",t)),{pos:i,time:c}=e[o],{pos:s,time:d}=e[r]):(t>=e[o].time&&t<=e[r].time&&({lo:o,hi:r}=rs(e,"time",t)),{time:i,pos:c}=e[o],{time:s,pos:d}=e[r]);const h=s-i;return h?c+(d-c)*(t-i)/h:c}class Qz extends MS{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=xS(n,this.min),this._tableRange=xS(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:o}=this,r=[],i=[];let s,c,d,h,u;for(s=0,c=t.length;s<c;++s)h=t[s],h>=n&&h<=o&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,c=r.length;s<c;++s)u=r[s+1],d=r[s-1],h=r[s],Math.round((u+d)/2)!==h&&i.push({time:h,pos:s/(c-1)});return i}_generate(){const t=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(t)||!o.length)&&o.splice(0,0,t),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((r,i)=>r-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?t=this.normalize(n.concat(o)):t=n.length?n:o,t=this._cache.all=t,t}getDecimalForValue(t){return(xS(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return xS(this._table,o*this._tableRange+this._minPos,!0)}}le(Qz,"id","timeseries"),le(Qz,"defaults",MS.defaults);const hU={key:0,class:"mb-2 text-sm font-medium text-gray-700"},uU={key:0,class:"text-red-500 ml-1"},pU={key:0,class:"absolute inset-0 flex items-center justify-center bg-white"},yU={key:1,class:"absolute inset-0 flex items-center justify-center bg-red-50 border border-red-200 rounded"},fU={class:"text-red-600 text-sm"},mU={key:1,class:"mt-2 text-xs text-gray-500"},kU={key:0},Jz=ra(a.defineComponent({name:"DCodeChart",__name:"DCodeChart",props:{type:{default:"line"},width:{default:400},height:{default:300},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},error:{default:null},showInfo:{type:Boolean,default:!1},responsive:{type:Boolean,default:!0},maintainAspectRatio:{type:Boolean,default:!1},theme:{default:"light"},colors:{default:()=>["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#EC4899","#14B8A6","#F97316","#6366F1","#84CC16"]},data:{},modelValue:{},options:{},onClick:{},onHover:{},label:{}},emits:["update:modelValue","click","hover","ready"],setup(e,{expose:t,emit:n}){ua.register(b_,M_,fS,Va,mS,Wl,K$,aU,W$,j$,rS,oS,r_,Os);const o=e,r=n,i=a.ref(null),s=a.shallowRef(null),c=a.ref(null),d=a.computed(()=>({"opacity-50 pointer-events-none":o.loading||o.error})),h=()=>{const y=o.theme==="dark";return{responsive:o.responsive,maintainAspectRatio:o.maintainAspectRatio,animation:{duration:1e3,easing:"easeInOutQuart",delay:f=>{let m=0;return f.type==="data"&&f.mode==="default"&&(m=f.dataIndex*100+f.datasetIndex*50),m},onComplete:()=>{}},plugins:{legend:{position:"top",labels:{color:y?"#E5E7EB":"#374151",font:{size:12}}},tooltip:{backgroundColor:y?"#1F2937":"#FFFFFF",titleColor:y?"#F3F4F6":"#111827",bodyColor:y?"#D1D5DB":"#4B5563",borderColor:y?"#374151":"#E5E7EB",borderWidth:1,animation:{duration:200,easing:"easeInOutQuad"}}},scales:o.type!=="pie"&&o.type!=="doughnut"&&o.type!=="polarArea"?{x:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}},y:{grid:{color:y?"#374151":"#E5E7EB"},ticks:{color:y?"#D1D5DB":"#6B7280"}}}:void 0}},u=y=>!y||!y.datasets?y:{...y,datasets:y.datasets.map((f,m)=>{const g=m%o.colors.length,k=o.colors[g];let M=f.backgroundColor,w=f.borderColor;return["pie","doughnut","polarArea"].includes(o.type)&&(!M||M.length===0)?f.data&&(M=f.data.map((x,b)=>o.colors[b%o.colors.length]+"80"),w=f.data.map((x,b)=>o.colors[b%o.colors.length])):(M=M||k+"40",w=w||k),{...f,borderColor:w,backgroundColor:M,pointBackgroundColor:f.pointBackgroundColor||k,pointBorderColor:f.pointBorderColor||k,hoverBackgroundColor:f.hoverBackgroundColor||k+"60",hoverBorderColor:f.hoverBorderColor||k}})},p=async()=>{if(!i.value)return;await a.nextTick(),s.value&&s.value.destroy();const y=o.data||o.modelValue;let f=y;if(Array.isArray(y))if(y.length>0&&typeof y[0]=="object"&&y[0]!==null){const g=Object.keys(y[0]),k=g.find(w=>["label","name","x","category","title"].includes(w.toLowerCase()))||g[0],M=g.find(w=>w!==k&&["value","y","count","amount","total","data"].includes(w.toLowerCase()))||g.find(w=>w!==k&&typeof y[0][w]=="number")||(g.length>1?g.find(w=>w!==k):g[0]);f={labels:y.map(w=>w[k||""]),datasets:[{label:o.label||"Data",data:y.map(w=>w[M||""])}]}}else y.length>0?f={labels:y.map((g,k)=>`Data ${k+1}`),datasets:[{label:o.label||"Data",data:y}]}:f={labels:[],datasets:[]};if(c.value=u(f),!c.value)return;const m={...h(),...o.options,onClick:(g,k)=>{r("click",g,k),o.onClick&&o.onClick(g,k)},onHover:(g,k)=>{r("hover",g,k),o.onHover&&o.onHover(g,k)}};s.value=new ua(i.value,{type:o.type,data:c.value,options:m}),r("ready",s.value)};return a.watch(()=>[o.data,o.modelValue,o.type,o.options,o.theme],()=>{p()},{deep:!0}),a.watch(()=>[o.width,o.height],()=>{s.value&&s.value.resize()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{s.value&&s.value.destroy()}),t({chart:s,updateChart:p}),(y,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-code-chart",d.value])},[e.label?(a.openBlock(),a.createElementBlock("div",hU,[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",uU,"*")):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"relative",style:a.normalizeStyle({height:e.height+"px"})},[a.createElementVNode("canvas",{ref_key:"chartCanvas",ref:i},null,512),e.loading?(a.openBlock(),a.createElementBlock("div",pU,[...f[0]||(f[0]=[a.createElementVNode("div",{class:"animate-pulse-slow rounded-full h-8 w-8 border-b-2 border-blue-600"},null,-1)])])):a.createCommentVNode("",!0),e.error?(a.openBlock(),a.createElementBlock("div",yU,[a.createElementVNode("div",fU,a.toDisplayString(e.error),1)])):a.createCommentVNode("",!0)],4),e.showInfo&&c.value?(a.openBlock(),a.createElementBlock("div",mU,[c.value.datasets?(a.openBlock(),a.createElementBlock("div",kU,a.toDisplayString(c.value.datasets.length)+" dataset(s) • "+a.toDisplayString(c.value.labels?c.value.labels.length:0)+" data points ",1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b1c7c58f"]]),Pa=a.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(UH),a.mergeProps(a.unref(n),{class:a.unref(Me)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),gU=["aria-busy"],bU={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},MU={key:1,class:"flex items-center gap-2.5"},xU=["id","checked","indeterminate","disabled","required"],wU={key:0,class:"ml-1 text-red-500 dark:text-red-400","aria-label":"required"},Kl=ra(a.defineComponent({name:"DCodeCheckbox",inheritAttrs:!1,__name:"DCodeCheckbox",props:{modelValue:{type:[Boolean,null]},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>n.label),s=a.computed(()=>n.placeholder),c=a.computed(()=>n.title),d=a.computed(()=>r.visible??!0),h=a.computed(()=>n.required===""||n.required===!0||n.required==="true"),u=Math.random().toString(36).slice(2,7),p=a.computed(()=>`dcode-checkbox-${n.id||i.value||"checkbox"}-${u}`),y=a.ref(!!r.modelValue);a.watch(()=>r.modelValue,g=>{y.value=!!g},{immediate:!0});const f=()=>{if(r.disabled)return;const g=!y.value;y.value=g,o("update:modelValue",g)},m=g=>{(g.key===" "||g.key==="Enter")&&(g.preventDefault(),f())};return(g,k)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["",[a.unref(n).class,{"opacity-60 cursor-not-allowed":e.disabled}]]),"aria-busy":e.skeleton},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",bU)):a.createCommentVNode("",!0),k[0]||(k[0]=a.createElementVNode("div",{class:"flex items-center gap-2.5"},[a.createElementVNode("div",{class:"h-4 w-4 rounded bg-gray-200 dark:bg-gray-700 animate-pulse flex-shrink-0"}),a.createElementVNode("div",{class:"h-4 w-24 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1))],64)):(a.openBlock(),a.createElementBlock("div",MU,[a.createElementVNode("label",{class:a.normalizeClass(["flex items-start gap-2.5 group relative",{"cursor-pointer":!e.disabled,"opacity-50 cursor-not-allowed":e.disabled}])},[a.createElementVNode("input",{type:"checkbox",id:p.value,class:"sr-only",checked:y.value,indeterminate:e.indeterminate,disabled:e.disabled,required:h.value,onChange:f,onKeydown:m},null,40,xU),a.createElementVNode("div",{class:a.normalizeClass(["h-4 w-4 shrink-0 rounded-sm border shadow-sm transition-colors flex items-center justify-center mt-0.5",[y.value||e.indeterminate?"bg-primary border-primary text-primary-foreground":"border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-900",e.disabled?"cursor-not-allowed":"cursor-pointer"]]),"aria-hidden":"true"},[y.value&&!e.indeterminate?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:"h-3 w-3 text-white","stroke-width":"3"})):e.indeterminate?(a.openBlock(),a.createBlock(a.unref(dl),{key:1,class:"h-3 w-3 text-white","stroke-width":"3"})):a.createCommentVNode("",!0)],2),s.value||c.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["text-sm leading-relaxed select-none transition-colors",[e.disabled?"text-gray-400 dark:text-gray-500":"text-gray-700 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-100"]])},a.toDisplayString(s.value||c.value),3)):a.createCommentVNode("",!0)],2),i.value?(a.openBlock(),a.createBlock(Pa,{key:0,for:p.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300 select-none cursor-pointer"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",wU," * ")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0)]))],10,gU)),[[a.vShow,d.value]])}}),[["__scopeId","data-v-938d0f92"]]),vU=["aria-busy"],CU={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},LU={key:1,class:"flex justify-end"},SU=["for"],IU={key:0,class:"ml-1 text-destructive"},_U={class:"relative w-full group"},AU={class:"flex items-center self-stretch px-3 bg-gray-50 dark:bg-neutral-800 border-r border-gray-300 dark:border-gray-700"},BU={class:"text-sm font-semibold text-gray-500 dark:text-gray-400 whitespace-nowrap select-none"},VU=["id","disabled","readonly","placeholder","maxlength"],zU={key:0,class:"absolute top-full right-0 z-10 text-[11px] text-gray-400 dark:text-gray-500 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100 mt-0.5"},PU={key:1,class:"flex items-center gap-1 text-xs text-destructive"},eP=a.defineComponent({name:"DCodeCurrencyField",inheritAttrs:!1,__name:"DCodeCurrencyField",props:{modelValue:{},currency:{default:"IDR"},locale:{},label:{},placeholder:{},error:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},prependInner:{},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=Math.random().toString(36).slice(2,7),s=a.computed(()=>`app-currency-field-${n.id||r.label||"currency-field"}-${i}`),c=a.computed(()=>{const B=n.required,A=n["aria-required"];return B===""||B===!0||B==="true"||(A==="true"||A===!0)}),d=a.computed(()=>{const B=n.maxlength??n.maxLength;let A=Number.NaN;return typeof B=="number"?A=B:typeof B=="string"&&(A=Number.parseInt(B,10)),Number.isFinite(A)&&A>0?A:void 0}),h=a.computed(()=>r.locale?r.locale:"en-US"),u=a.computed(()=>r.prependInner?r.prependInner:r.currency==="USD"?"$":r.currency==="IDR"?"Rp":r.currency),p=a.computed(()=>new Intl.NumberFormat(h.value,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})),y=B=>{const A=B.replaceAll(/\D/g,"");return A?Number(A):null},f=B=>p.value.format(B),m=a.ref(""),g=a.ref(null);a.watch(()=>r.modelValue,B=>{B==null?m.value="":y(m.value)!==B&&(m.value=f(B))},{immediate:!0});const k=(B,A)=>{let V=0;for(let T=0;T<A;T++)/\d/.test(B[T])&&V++;return V},M=(B,A)=>{let V=0;for(let T=0;T<B.length;T++)if(/\d/.test(B[T])&&(V++,V===A))return T+1;return B.length},w=B=>{const A=B.target,V=A.value,T=A.selectionStart??V.length,W=y(V);if(W===null){m.value="",o("update:modelValue",null);return}const H=f(W);if(V!==H){const O=k(V,T);m.value=H,a.nextTick(()=>{if(g.value){const U=M(H,O);g.value.setSelectionRange(U,U)}})}o("update:modelValue",W)},x=()=>{m.value="",o("update:modelValue",null),o("clear")},b=a.computed(()=>!r.clearable||r.disabled||r.readonly?!1:r.hideClearWhenEmpty?m.value.length>0:!0),C=a.computed(()=>!!r.error),S=a.computed(()=>{const{class:B,maxlength:A,maxLength:V,...T}=n;return T}),L=a.computed(()=>m.value.length),v=a.computed(()=>r.showCharCount?(d.value??0)>0:!1),I=a.computed(()=>v.value&&L.value>0),q=a.computed(()=>`${L.value} / ${d.value}`);return(B,A)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1.5 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",CU)):a.createCommentVNode("",!0),A[2]||(A[2]=a.createElementVNode("div",{class:"relative w-full"},[a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),v.value?(a.openBlock(),a.createElementBlock("div",LU,[...A[1]||(A[1]=[a.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:s.value,class:"text-sm font-medium text-gray-700 dark:text-gray-300"},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),c.value?(a.openBlock(),a.createElementBlock("span",IU,"*")):a.createCommentVNode("",!0)],8,SU)):a.createCommentVNode("",!0),a.createElementVNode("div",_U,[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full rounded-lg border overflow-hidden transition-all duration-200","bg-white dark:bg-neutral-900",C.value?"border-destructive ring-1 ring-destructive":"border-gray-300 dark:border-gray-700 focus-within:border-blue-500 focus-within:ring-1 focus-within:ring-blue-500 dark:focus-within:border-blue-400",r.disabled?"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-neutral-800":""])},[a.createElementVNode("div",AU,[a.createElementVNode("span",BU,a.toDisplayString(u.value),1)]),a.withDirectives(a.createElementVNode("input",a.mergeProps({id:s.value,ref_key:"inputRef",ref:g,"onUpdate:modelValue":A[0]||(A[0]=V=>m.value=V),onInput:w,type:"text",inputmode:"numeric"},S.value,{disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,maxlength:d.value,class:["flex-1 h-10 px-3 py-2 text-sm bg-transparent text-foreground dark:text-gray-300 outline-none placeholder:text-gray-400",b.value?"pr-8":""]}),null,16,VU),[[a.vModelText,m.value]]),b.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center w-8 h-10 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors flex-shrink-0","aria-label":"Clear input",onClick:x},[a.createVNode(a.unref(pt),{class:"w-3.5 h-3.5"})])):a.createCommentVNode("",!0)],2),I.value&&!C.value?(a.openBlock(),a.createElementBlock("p",zU,a.toDisplayString(q.value),1)):a.createCommentVNode("",!0)]),C.value?(a.openBlock(),a.createElementBlock("p",PU,[a.createVNode(a.unref(Tt),{class:"w-3.5 h-3.5 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(r.error),1)])):a.createCommentVNode("",!0)],64))],10,vU))}}),tP=6048e5,qU=864e5,aP=Symbol.for("constructDateFrom");function qa(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aP in e?e[aP](t):e instanceof Date?new e.constructor(t):new Date(t)}function _t(e,t){return qa(t||e,e)}let DU={};function wS(){return DU}function Xl(e,t){var c,d,h,u;const n=wS(),o=(t==null?void 0:t.weekStartsOn)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.weekStartsOn)??0,r=_t(e,t==null?void 0:t.in),i=r.getDay(),s=(i<o?7:0)+i-o;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function vS(e,t){return Xl(e,{...t,weekStartsOn:1})}function nP(e,t){const n=_t(e,t==null?void 0:t.in),o=n.getFullYear(),r=qa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const i=vS(r),s=qa(n,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);const c=vS(s);return n.getTime()>=i.getTime()?o+1:n.getTime()>=c.getTime()?o:o-1}function oP(e){const t=_t(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function EU(e,...t){const n=qa.bind(null,t.find(o=>typeof o=="object"));return t.map(n)}function rP(e,t){const n=_t(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function TU(e,t,n){const[o,r]=EU(n==null?void 0:n.in,e,t),i=rP(o),s=rP(r),c=+i-oP(i),d=+s-oP(s);return Math.round((c-d)/qU)}function HU(e,t){const n=nP(e,t),o=qa(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),vS(o)}function OU(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jU(e){return!(!OU(e)&&typeof e!="number"||isNaN(+_t(e)))}function FU(e,t){const n=_t(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const NU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RU=(e,t,n)=>{let o;const r=NU[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Ns(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $U={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GU={date:Ns({formats:$U,defaultWidth:"full"}),time:Ns({formats:UU,defaultWidth:"full"}),dateTime:Ns({formats:WU,defaultWidth:"full"})},KU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},XU=(e,t,n,o)=>KU[e];function Qt(e){return(t,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let r;if(o==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;r=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}const ZU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},YU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},JU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},aW={ordinalNumber:(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Qt({values:ZU,defaultWidth:"wide"}),quarter:Qt({values:YU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Qt({values:QU,defaultWidth:"wide"}),day:Qt({values:JU,defaultWidth:"wide"}),dayPeriod:Qt({values:eW,defaultWidth:"wide",formattingValues:tW,defaultFormattingWidth:"wide"})};function Jt(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const s=i[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?oW(c,p=>p.test(s)):nW(c,p=>p.test(s));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const u=t.slice(s.length);return{value:h,rest:u}}}function nW(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function oW(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function iP(e){return(t,n={})=>{const o=t.match(e.matchPattern);if(!o)return null;const r=o[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(r.length);return{value:s,rest:c}}}const rW=/^(\d+)(th|st|nd|rd)?/i,iW=/\d+/i,sW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lW={any:[/^b/i,/^(a|c)/i]},cW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dW={any:[/1/i,/2/i,/3/i,/4/i]},hW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},uW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pW={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kW={ordinalNumber:iP({matchPattern:rW,parsePattern:iW,valueCallback:e=>parseInt(e,10)}),era:Jt({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),quarter:Jt({matchPatterns:cW,defaultMatchWidth:"wide",parsePatterns:dW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Jt({matchPatterns:hW,defaultMatchWidth:"wide",parsePatterns:uW,defaultParseWidth:"any"}),day:Jt({matchPatterns:pW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any"}),dayPeriod:Jt({matchPatterns:fW,defaultMatchWidth:"any",parsePatterns:mW,defaultParseWidth:"any"})},sP={code:"en-US",formatDistance:RU,formatLong:GU,formatRelative:XU,localize:aW,match:kW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gW(e,t){const n=_t(e,t==null?void 0:t.in);return TU(n,FU(n))+1}function bW(e,t){const n=_t(e,t==null?void 0:t.in),o=+vS(n)-+HU(n);return Math.round(o/tP)+1}function lP(e,t){var u,p,y,f;const n=_t(e,t==null?void 0:t.in),o=n.getFullYear(),r=wS(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(y=r.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??1,s=qa((t==null?void 0:t.in)||e,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);const c=Xl(s,t),d=qa((t==null?void 0:t.in)||e,0);d.setFullYear(o,0,i),d.setHours(0,0,0,0);const h=Xl(d,t);return+n>=+c?o+1:+n>=+h?o:o-1}function MW(e,t){var c,d,h,u;const n=wS(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(h=n.locale)==null?void 0:h.options)==null?void 0:u.firstWeekContainsDate)??1,r=lP(e,t),i=qa((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,o),i.setHours(0,0,0,0),Xl(i,t)}function xW(e,t){const n=_t(e,t==null?void 0:t.in),o=+Xl(n,t)-+MW(n,t);return Math.round(o/tP)+1}function Be(e,t){const n=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return n+o}const Da={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return Be(t==="yy"?o%100:o,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,o=e.getMilliseconds(),r=Math.trunc(o*Math.pow(10,n-3));return Be(r,t.length)}},Rs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cP={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const o=e.getFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return Da.y(e,t)},Y:function(e,t,n,o){const r=lP(e,o),i=r>0?r:1-r;if(t==="YY"){const s=i%100;return Be(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Be(i,t.length)},R:function(e,t){const n=nP(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Be(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Be(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Da.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return Be(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=xW(e,o);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},I:function(e,t,n){const o=bW(e);return t==="Io"?n.ordinalNumber(o,{unit:"week"}):Be(o,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Da.d(e,t)},D:function(e,t,n){const o=gW(e);return t==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Be(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Be(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Be(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=o===0?7:o;switch(t){case"i":return String(r);case"ii":return Be(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(o===12?r=Rs.noon:o===0?r=Rs.midnight:r=o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(o>=17?r=Rs.evening:o>=12?r=Rs.afternoon:o>=4?r=Rs.morning:r=Rs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Da.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Da.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return t==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Be(o,t.length)},k:function(e,t,n){let o=e.getHours();return o===0&&(o=24),t==="ko"?n.ordinalNumber(o,{unit:"hour"}):Be(o,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Da.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Da.s(e,t)},S:function(e,t){return Da.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return hP(o);case"XXXX":case"XX":return ys(o);case"XXXXX":case"XXX":default:return ys(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return hP(o);case"xxxx":case"xx":return ys(o);case"xxxxx":case"xxx":default:return ys(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dP(o,":");case"OOOO":default:return"GMT"+ys(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dP(o,":");case"zzzz":default:return"GMT"+ys(o,":")}},t:function(e,t,n){const o=Math.trunc(+e/1e3);return Be(o,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function dP(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),i=o%60;return i===0?n+String(r):n+String(r)+t+Be(i,2)}function hP(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):ys(e,t)}function ys(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Be(Math.trunc(o/60),2),i=Be(o%60,2);return n+r+t+i}const uP=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pP=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wW={p:pP,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return uP(e,t);let i;switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",uP(o,t)).replace("{{time}}",pP(r,t))}},vW=/^D+$/,CW=/^Y+$/,LW=["D","DD","YY","YYYY"];function SW(e){return vW.test(e)}function IW(e){return CW.test(e)}function _W(e,t,n){const o=AW(e,t,n);if(console.warn(o),LW.includes(e))throw new RangeError(o)}function AW(e,t,n){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const BW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zW=/^'([^]*?)'?$/,PW=/''/g,qW=/[a-zA-Z]/;function yP(e,t,n){var u,p,y,f;const o=wS(),r=o.locale??sP,i=o.firstWeekContainsDate??((p=(u=o.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??1,s=o.weekStartsOn??((f=(y=o.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??0,c=_t(e,n==null?void 0:n.in);if(!jU(c))throw new RangeError("Invalid time value");let d=t.match(VW).map(m=>{const g=m[0];if(g==="p"||g==="P"){const k=wW[g];return k(m,r.formatLong)}return m}).join("").match(BW).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const g=m[0];if(g==="'")return{isToken:!1,value:DW(m)};if(cP[g])return{isToken:!0,value:m};if(g.match(qW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:m}});r.localize.preprocessor&&(d=r.localize.preprocessor(c,d));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:r};return d.map(m=>{if(!m.isToken)return m.value;const g=m.value;(IW(g)||SW(g))&&_W(g,t,String(e));const k=cP[g[0]];return k(c,g,r.localize,h)}).join("")}function DW(e){const t=e.match(zW);return t?t[1].replace(PW,"'"):e}const EW={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},TW=(e,t,n)=>{let o;const r=EW[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dalam waktu "+o:o+" yang lalu":o},HW={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},OW={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},jW={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FW={date:Ns({formats:HW,defaultWidth:"full"}),time:Ns({formats:OW,defaultWidth:"full"}),dateTime:Ns({formats:jW,defaultWidth:"full"})},NW={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},RW=(e,t,n,o)=>NW[e],$W={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},UW={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},WW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},GW={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},KW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},XW={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},ZW={ordinalNumber:(e,t)=>"ke-"+Number(e),era:Qt({values:$W,defaultWidth:"wide"}),quarter:Qt({values:UW,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Qt({values:WW,defaultWidth:"wide"}),day:Qt({values:GW,defaultWidth:"wide"}),dayPeriod:Qt({values:KW,defaultWidth:"wide",formattingValues:XW,defaultFormattingWidth:"wide"})},YW=/^ke-(\d+)?/i,QW=/\d+/i,JW={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},eG={any:[/^s/i,/^(m|e)/i]},tG={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},aG={any:[/1/i,/2/i,/3/i,/4/i]},nG={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},oG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},rG={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},iG={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},sG={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},lG={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},cG={ordinalNumber:iP({matchPattern:YW,parsePattern:QW,valueCallback:e=>parseInt(e,10)}),era:Jt({matchPatterns:JW,defaultMatchWidth:"wide",parsePatterns:eG,defaultParseWidth:"any"}),quarter:Jt({matchPatterns:tG,defaultMatchWidth:"wide",parsePatterns:aG,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Jt({matchPatterns:nG,defaultMatchWidth:"wide",parsePatterns:oG,defaultParseWidth:"any"}),day:Jt({matchPatterns:rG,defaultMatchWidth:"wide",parsePatterns:iG,defaultParseWidth:"any"}),dayPeriod:Jt({matchPatterns:sG,defaultMatchWidth:"any",parsePatterns:lG,defaultParseWidth:"any"})},dG={code:"id",formatDistance:TW,formatLong:FW,formatRelative:RW,localize:ZW,match:cG,options:{weekStartsOn:1,firstWeekContainsDate:1}},fP={primary:{light:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"#bfdbfe"},dark:{primary:"hsl(var(--primary))",text:"hsl(var(--primary-foreground))",hover:"hsl(var(--accent))",border:"hsl(var(--border))",range:"rgba(30, 58, 138, 0.3)"}},emerald:{light:{primary:"#16a34a",text:"#ffffff",hover:"#dcfce7",border:"#16a34a",range:"#ecfdf5"},dark:{primary:"#22c55e",text:"#0b1220",hover:"#14532d",border:"#22c55e",range:"rgba(6, 78, 59, 0.3)"}},amber:{light:{primary:"#d97706",text:"#ffffff",hover:"#fffbeb",border:"#d97706",range:"#fffbeb"},dark:{primary:"#f59e0b",text:"#0b1220",hover:"#78350f",border:"#f59e0b",range:"rgba(120, 53, 15, 0.3)"}},violet:{light:{primary:"#7c3aed",text:"#ffffff",hover:"#f5f3ff",border:"#7c3aed",range:"#f5f3ff"},dark:{primary:"#8b5cf6",text:"#0b1220",hover:"#2e1065",border:"#8b5cf6",range:"rgba(46, 16, 101, 0.3)"}},destructive:{light:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.10)",border:"hsl(var(--destructive))",range:"#fef2f2"},dark:{primary:"hsl(var(--destructive))",text:"hsl(var(--destructive-foreground))",hover:"hsl(var(--destructive) / 0.18)",border:"hsl(var(--destructive))",range:"rgba(127, 29, 29, 0.3)"}}},mP="dcode-dp-theme-forced";function hG(e,t=mP){const n=fP[e]??fP.primary,o=`
|
|
8520
8520
|
.dp__theme_light {
|
|
8521
8521
|
--dp-primary-color: ${n.light.primary} !important;
|
|
8522
8522
|
--dp-primary-text-color: ${n.light.text} !important;
|
|
@@ -8564,17 +8564,17 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warni
|
|
|
8564
8564
|
.dcode-datepicker-menu .dp__menu_inner {
|
|
8565
8565
|
padding: 0 !important;
|
|
8566
8566
|
}
|
|
8567
|
-
`.trim();let r=document.getElementById(t);r||(r=document.createElement("style"),r.id=t,document.head.appendChild(r)),r.textContent=o}function uG(e,t=mP){a.watch(e,n=>hG(n,t),{immediate:!0})}const pG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},yG={key:0,class:"ml-1 text-destructive"},fG=["disabled","onClick"],mG={class:"flex-shrink-0 px-2 text-sm text-muted-foreground select-none whitespace-nowrap"},kG=["id","value","placeholder","disabled","onClick","onFocus","onBlur","onInput","onKeydown","onKeypress","onPaste"],gG={class:"h-full p-2 flex flex-col gap-3 w-32"},bG={class:"flex items-center justify-end gap-2 w-full p-2"},MG={key:1,class:"text-xs text-destructive"},x_=a.defineComponent({name:"DCodeDatePicker",inheritAttrs:!1,__name:"DCodeDatePicker",props:{modelValue:{},range:{type:Boolean,default:!1},autoRangeDays:{default:null},disablePast:{type:Boolean,default:!1},maxDaysAhead:{default:null},placeholder:{default:"Pilih tanggal"},label:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},displayFormat:{default:"dd/MM/yyyy"},modelType:{default:"yyyy-MM-dd"},locale:{default:"en"},placement:{default:"bottom-start"},prependInner:{default:void 0},error:{default:null},selectLabel:{default:"Select"},cancelLabel:{default:"Cancel"},tone:{default:"primary"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=e,r=t,i=Math.random().toString(36).slice(2,7),s=a.computed(()=>`dcode-datepicker-${n.id||o.label||"date-picker"}-${i}`),c=a.computed(()=>{const V=n.required,E=n["aria-required"];return V===""||V===!0||V==="true"||E==="true"||E===!0}),d=a.computed(()=>!!o.error),h=a.computed({get:()=>o.modelValue,set:V=>{r("update:modelValue",V),r("change",V)}}),u=a.computed(()=>o.locale==="en"?sP:dG),p=a.computed(()=>o.range?2:!1),y=a.computed(()=>{if(!o.range)return!1;const V={partialRange:!1};return o.autoRangeDays&&o.autoRangeDays>0&&(V.maxRange=o.autoRangeDays,V.autoRange=o.autoRangeDays),V}),f=V=>{const E=new Date(V);return E.setHours(0,0,0,0),E},m=V=>{const E=new Date(V);return E.setHours(23,59,59,999),E},k=(V,E)=>{const W=new Date(V);return W.setDate(W.getDate()+E),W},g=a.computed(()=>{if(o.disablePast)return f(new Date)}),x=a.computed(()=>{if(o.maxDaysAhead&&o.maxDaysAhead>0)return m(k(new Date,o.maxDaysAhead))}),C=a.ref(null),v=a.ref(null),b=V=>{v.value={month:V.month,year:V.year}},L=a.ref(!1);let S=null;a.onMounted(()=>{const V=document.documentElement,E=()=>L.value=V.classList.contains("dark");E(),S=new MutationObserver(E),S.observe(V,{attributes:!0,attributeFilter:["class"]})}),a.onBeforeUnmount(()=>{S==null||S.disconnect(),S=null}),uG(a.toRef(o,"tone"));const M=V=>{const E=new Date(V),W=E.getDay(),H=E.getDate()-W+(W===0?-6:1);return E.setDate(H),f(E)},w=V=>{const E=M(V);return E.setDate(E.getDate()+6),m(E)},I=V=>{const E=new Date(V);return E.setDate(1),f(E)},z=V=>{const E=new Date(V);return E.setMonth(E.getMonth()+1),E.setDate(0),m(E)},B=a.computed(()=>{if(!o.range)return[];const V=new Date,E=f(V),W=M(V),H=w(V),O=I(V),U=z(V),J=(T,F)=>{let N=T;o.disablePast&&N<E&&(N=E);let Y=F;if(o.autoRangeDays&&o.autoRangeDays>0){const Q=m(k(N,o.autoRangeDays-1));Y>Q&&(Y=Q)}return Y<N&&(Y=m(new Date(N))),[N,Y]};return[{label:o.locale==="id"?"Minggu Ini":"This Week",range:J(W,H)},{label:o.locale==="id"?"Bulan Ini":"This Month",range:J(O,U)}]}),A=async V=>{var F,N;const E=o.modelType||"yyyy-MM-dd";if(V.length===0){h.value=null;return}if(V.length<2)return;const W=yP(V[0],E),H=yP(V[1],E);h.value=[W,H],await a.nextTick();const O=V[0],U=O.getMonth(),J=O.getFullYear();v.value&&v.value.month===U&&v.value.year===J||(F=C.value)==null||F.setMonthYear({month:U,year:J}),(N=C.value)==null||N.openMenu()};return(V,E)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class])},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",pG)):a.createCommentVNode("",!0),E[2]||(E[2]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:s.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),c.value?(a.openBlock(),a.createElementBlock("span",yG,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createVNode(a.unref(it.VueDatePicker),{ref_key:"dpRef",ref:C,modelValue:h.value,"onUpdate:modelValue":E[1]||(E[1]=W=>h.value=W),dark:L.value,range:y.value,"multi-calendars":p.value,disabled:e.disabled,clearable:!1,"text-input":"","enable-time-picker":!1,"time-config":{enableTimePicker:!1},"auto-apply":!1,"action-row":{showPreview:!0,showNow:!1},locale:u.value,"model-type":e.modelType,formats:{input:e.displayFormat},"min-date":g.value,"max-date":x.value,"preset-ranges":B.value,floating:{placement:e.placement,offset:8,arrow:!1,flip:!1,shift:!0},teleport:!0,"menu-class-name":"dcode-datepicker-menu","calendar-class-name":"dcode-datepicker-calendar",onUpdateMonthYear:b},a.createSlots({"dp-input":a.withCtx(({value:W,onInput:H,onEnter:O,onTab:U,onBlur:J,onFocus:T,onKeypress:F,onPaste:N,toggleMenu:Y})=>[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full h-10 rounded-lg border bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 overflow-hidden shadow-none",[d.value?"border-destructive":"",e.disabled?"opacity-50 cursor-not-allowed":""]])},[a.createElementVNode("button",{type:"button",tabindex:"-1",disabled:e.disabled,class:"flex-shrink-0 flex items-center justify-center w-10 h-full text-muted-foreground hover:text-foreground transition-colors focus:outline-none",onClick:Q=>Y()},[a.createVNode(a.unref(Js),{class:"w-4 h-4 pointer-events-none"})],8,fG),E[4]||(E[4]=a.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1)),e.prependInner?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",mG,a.toDisplayString(e.prependInner),1),E[3]||(E[3]=a.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1))],64)):a.createCommentVNode("",!0),a.createElementVNode("input",{id:s.value,value:W,placeholder:e.placeholder,disabled:e.disabled,autocomplete:"off",readonly:"",class:a.normalizeClass(["flex-1 min-w-0 px-3 h-full bg-transparent text-sm text-foreground dark:text-gray-300 placeholder:text-muted-foreground outline-none",e.disabled?"cursor-not-allowed":"cursor-pointer"]),onClick:Q=>Y(),onFocus:Q=>T(),onBlur:Q=>J(),onInput:Q=>H(Q),onKeydown:[a.withKeys(Q=>O(Q),["enter"]),a.withKeys(Q=>U(Q),["tab"])],onKeypress:Q=>F(Q),onPaste:Q=>N()},null,42,kG)],2)]),"action-buttons":a.withCtx(({selectDate:W,selectionDisabled:H})=>[a.createElementVNode("div",bG,[a.createVNode(a.unref(je),{type:"button",variant:"outline",onClick:E[0]||(E[0]=O=>{var U;return(U=C.value)==null?void 0:U.closeMenu()})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.cancelLabel),1)]),_:1}),a.createVNode(a.unref(je),{type:"button",variant:"default",disabled:H,onClick:O=>W()},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.selectLabel),1)]),_:1},8,["disabled","onClick"])])]),_:2},[e.range?{name:"left-sidebar",fn:a.withCtx(()=>[a.createElementVNode("div",gG,[B.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(B.value,W=>(a.openBlock(),a.createBlock(a.unref(je),{key:W.label,type:"button",variant:"default",class:"w-full",onClick:H=>A(W.range)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(W.label),1)]),_:2},1032,["onClick"]))),128)):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["modelValue","dark","range","multi-calendars","disabled","locale","model-type","formats","min-date","max-date","preset-ranges","floating"]),d.value?(a.openBlock(),a.createElementBlock("p",MG,a.toDisplayString(o.error),1)):a.createCommentVNode("",!0)],64))],2))}}),xG=a.defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(hB),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),wG=a.defineComponent({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(CB),null,{default:a.withCtx(()=>[a.createVNode(a.unref(vB),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),a.createVNode(a.unref(xB),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default"),a.createVNode(a.unref(uB),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:a.withCtx(()=>[a.createVNode(a.unref(pt),{class:"w-4 h-4"}),c[0]||(c[0]=a.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),vG=a.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(wB),a.mergeProps(a.unref(o),{class:a.unref(Me)("text-sm text-muted-foreground",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),CG=a.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(LB),a.mergeProps(a.unref(o),{class:a.unref(Me)("text-lg font-medium leading-none tracking-tight",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),LG={class:"flex items-center gap-3"},SG={class:"flex justify-end gap-3"},CS=a.defineComponent({name:"DCodeDialog",inheritAttrs:!1,__name:"DCodeDialog",props:{modelValue:{type:Boolean,default:!1},title:{default:""},icon:{default:""},maxWidth:{default:500},persistent:{type:Boolean,default:!0},contentClass:{default:"p-5"},contentStyle:{default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.computed(()=>{const{style:h,...u}=r;return u}),s=a.computed(()=>({maxWidth:typeof n.maxWidth=="number"?`${n.maxWidth}px`:n.maxWidth,width:"100%"})),c=a.computed(()=>n.icon?na[n.icon]??null:null),d=h=>{o("update:modelValue",h)};return(h,u)=>(a.openBlock(),a.createBlock(a.unref(xG),{open:e.modelValue,"onUpdate:open":d},{default:a.withCtx(()=>[a.createVNode(a.unref(wG),a.mergeProps(i.value,{style:s.value,class:"p-0 overflow-hidden rounded-xl",onInteractOutside:u[0]||(u[0]=p=>e.persistent?p.preventDefault():null),onEscapeKeyDown:u[1]||(u[1]=p=>e.persistent?p.preventDefault():null)}),{default:a.withCtx(()=>[a.createVNode(PI,{padding:e.contentClass,border:"",shadow:"",class:"w-full !rounded-xl !border-0",level:1},a.createSlots({header:a.withCtx(()=>[a.createElementVNode("div",LG,[c.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{key:0,class:"h-5 w-5"})):a.createCommentVNode("",!0),a.createVNode(a.unref(CG),{class:"text-base font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),a.createVNode(a.unref(vG),{class:"hidden"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title||"Dialog Content"),1)]),_:1})])]),actions:a.withCtx(()=>[a.renderSlot(h.$slots,"header-append")]),default:a.withCtx(()=>[a.createElementVNode("div",{style:a.normalizeStyle(e.contentStyle)},[a.renderSlot(h.$slots,"default")],4)]),_:2},[h.$slots.actions?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",SG,[a.renderSlot(h.$slots,"actions")])]),key:"0"}:void 0]),1032,["padding"])]),_:3},16,["style"])]),_:3},8,["open"]))}}),kP=a.defineComponent({name:"DCodeDialogCloseBtn",__name:"DCodeDialogCloseBtn",props:{icon:{default:"X"},iconSize:{default:22}},setup(e){const t=e,n=a.computed(()=>na[t.icon]??pt);return(o,r)=>(a.openBlock(),a.createBlock(a.unref(je),{type:"button",variant:"secondary",size:"icon",class:"rounded-full shadow-sm"},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{size:Number(e.iconSize)},null,8,["size"]))]),_:1}))}}),IG=a.defineComponent({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)(a.unref(AG)({variant:e.variant}),t.class)),role:"alert"},[a.renderSlot(n.$slots,"default")],2))}}),_G=a.defineComponent({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("text-sm [&_p]:leading-relaxed",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),AG=xl("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ea=a.defineComponent({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)(a.unref(BG)({variant:e.variant}),t.class))},[a.renderSlot(n.$slots,"default")],2))}}),BG=xl("inline-flex gap-1 items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),w_=a.defineComponent({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),v_=a.defineComponent({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("p-6 pt-0",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),C_=a.defineComponent({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col gap-y-1.5 p-6",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),L_=a.defineComponent({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("h3",{class:a.normalizeClass(a.unref(Me)("font-medium leading-none tracking-tight",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),VG={class:"h-full w-full p-6 flex flex-col items-center justify-center text-center gap-2"},zG={class:"flex flex-wrap items-center justify-center gap-2"},PG=["accept","multiple"],LS=ra(a.defineComponent({name:"DCodeDropzone",__name:"DCodeDropzone",props:{label:{default:"Upload File"},hint:{default:"Drag & drop file di sini atau klik area ini"},accept:{default:"*/*"},maxSizeMb:{default:2},mode:{default:"single"},disabled:{type:Boolean,default:!1},showSelected:{type:Boolean,default:!0},error:{default:null}},emits:["picked","picked:multiple","error"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null),i=a.ref(!1),s=a.ref(null),c=a.ref(null),d=a.ref(null);a.computed(()=>n.accept||"file/*");const h=a.computed(()=>n.error??s.value);function u(){var M;n.disabled||(M=r.value)==null||M.click()}function p(M){const w=M/1024,I=w/1024;return I>=1?`${I.toFixed(2)} MB`:w>=1?`${w.toFixed(1)} KB`:`${M} B`}function y(M){var I;if(!M)return"File tidak valid";if((I=n.accept)!=null&&I.includes("image/")&&!M.type.startsWith("image/"))return"Hanya file gambar yang diizinkan";const w=(n.maxSizeMb??2)*1024*1024;return M.size>w?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null}function f(M){c.value=M.name,d.value=M.size}function m(M){if(s.value=null,!M.length)return;if(n.mode==="single"){const I=M[0],z=y(I);if(z){s.value=z,o("error",z);return}n.showSelected&&f(I),o("picked",I);return}const w=[];for(const I of M){const z=y(I);if(z){s.value=z,o("error",z);return}w.push(I)}w.length&&(n.showSelected&&f(w[0]),o("picked:multiple",w))}function k(M){const w=M.target,I=Array.from(w.files??[]);m(I),w.value=""}function g(){n.disabled||(i.value=!0)}function x(){n.disabled||(i.value=!0)}function C(){i.value=!1}function v(M){var z,B;if(n.disabled)return;i.value=!1;const w=Array.from(((z=M.dataTransfer)==null?void 0:z.files)??[]),I=(B=n.accept)!=null&&B.includes("image/")?w.filter(A=>A.type.startsWith("image/")):w;m(I)}const b=a.computed(()=>(n.accept||"file/*").split(",").map(M=>M.trim()).filter(Boolean).map(M=>M==="image/*"?"IMAGE":M.replace(/^image\//,"").replace(/^\./,"")).join(", "));a.computed(()=>`${n.maxSizeMb??0}MB`);const L=a.ref(!1),S=a.computed(()=>{if(n.disabled||!L.value)return{};const M=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark");return{borderColor:M?"hsl(var(--primary) / 0.5)":"hsl(var(--primary) / 0.6)",backgroundColor:M?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"}});return(M,w)=>(a.openBlock(),a.createBlock(a.unref(w_),{class:a.normalizeClass([e.disabled?"opacity-60":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(a.unref(C_),{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(a.unref(L_),{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label),1)]),_:1})]),_:1}),a.createVNode(a.unref(v_),{class:"pt-2"},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(["d-dropzone-area flex justify-center items-center rounded-xl border-2 border-dashed transition cursor-pointer select-none",[i.value?"is-dragging border-primary bg-primary/10 dark:bg-primary/20 -translate-y-[1px]":"border-border dark:border-neutral-700 bg-muted/30 dark:bg-neutral-800/50",e.disabled?"is-disabled":""]]),style:a.normalizeStyle([{minHeight:"190px"},S.value]),onClick:u,onDragenter:a.withModifiers(g,["prevent"]),onDragover:a.withModifiers(x,["prevent"]),onDragleave:a.withModifiers(C,["prevent"]),onDrop:a.withModifiers(v,["prevent"]),onMouseenter:w[0]||(w[0]=I=>L.value=!0),onMouseleave:w[1]||(w[1]=I=>L.value=!1)},[a.createElementVNode("div",VG,[w[2]||(w[2]=a.createElementVNode("div",{class:"text-sm font-medium dark:text-neutral-200"},"Drag & drop file di sini",-1)),w[3]||(w[3]=a.createElementVNode("div",{class:"text-xs text-muted-foreground dark:text-neutral-400"},"atau klik area ini untuk memilih file",-1)),a.createElementVNode("div",zG,[a.createVNode(a.unref(Ea),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(" Allowed: "+a.toDisplayString(b.value),1)]),_:1}),a.createVNode(a.unref(Ea),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(" Max: "+a.toDisplayString(n.maxSizeMb)+"MB ",1)]),_:1})]),e.showSelected&&c.value?(a.openBlock(),a.createBlock(a.unref(Ea),{key:0,variant:"secondary",class:"mt-2 dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.value)+" • "+a.toDisplayString(d.value?p(d.value):""),1)]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("input",{ref_key:"fileInputEl",ref:r,type:"file",class:"hidden",accept:e.accept,multiple:e.mode==="multiple",onChange:k},null,40,PG)],38),h.value?(a.openBlock(),a.createBlock(a.unref(IG),{key:0,variant:"destructive",class:"mt-3"},{default:a.withCtx(()=>[a.createVNode(a.unref(_G),{class:"text-sm"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),[["__scopeId","data-v-02ca61c0"]]),qG={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},DG=["src"],EG={key:1,class:"h-full w-full flex flex-col items-center justify-center text-muted-foreground dark:text-neutral-400 gap-2 p-4 text-center"},TG={class:"space-y-0.5"},HG={class:"text-sm font-medium truncate max-w-[180px] dark:text-neutral-200"},OG={class:"text-xs opacity-70"},jG=["disabled"],FG={key:1},NG=["disabled"],RG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},$G={class:"flex gap-2"},UG={class:"font-medium truncate"},WG={class:"flex gap-2"},GG={class:"font-medium"},KG={class:"flex gap-2"},XG={class:"font-medium truncate"},S_=ra(a.defineComponent({name:"DCodeFileResult",__name:"DCodeFileResult",props:{file:{},title:{default:"File Terpilih"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},forceFileIcon:{type:Boolean,default:!1}},emits:["edit","replace","remove"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null),i=a.computed(()=>n.forceFileIcon||!n.file?!1:(n.file.type||"").startsWith("image/"));a.watch(()=>n.file,f=>{r.value&&URL.revokeObjectURL(r.value),r.value=f?URL.createObjectURL(f):null},{immediate:!0}),a.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),u&&u.disconnect()});function s(f){const m=f/1024,k=m/1024;return k>=1?`${k.toFixed(2)} MB`:m>=1?`${m.toFixed(1)} KB`:`${f} B`}const c=a.computed(()=>n.file?{name:n.file.name,size:s(n.file.size),type:n.file.type||"unknown"}:null),d=a.ref(!1),h=a.ref(!1);let u=null;const p=()=>{typeof document<"u"&&(h.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{p(),typeof document<"u"&&(u=new MutationObserver(p),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),u.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const y=a.computed(()=>n.disabled||!d.value?{}:{borderColor:h.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:h.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(f,m)=>e.file?(a.openBlock(),a.createBlock(w_,{key:0,class:a.normalizeClass([e.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(C_,{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(L_,{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),e.description?(a.openBlock(),a.createElementBlock("div",qG,a.toDisplayString(e.description),1)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(v_,{class:"pt-2"},{default:a.withCtx(()=>{var k,g,x,C,v;return[a.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:a.normalizeStyle([{height:`${e.previewHeight}px`},y.value]),onMouseenter:m[2]||(m[2]=b=>d.value=!0),onMouseleave:m[3]||(m[3]=b=>d.value=!1)},[i.value&&r.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,DG)):(a.openBlock(),a.createElementBlock("div",EG,[a.createVNode(a.unref(vs),{class:"w-10 h-10"}),a.createElementVNode("div",TG,[a.createElementVNode("p",HG,a.toDisplayString((k=c.value)==null?void 0:k.name),1),a.createElementVNode("p",OG,a.toDisplayString((g=c.value)==null?void 0:g.size),1)])])),a.createElementVNode("div",{class:"d-action-buttons",style:a.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:d.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:d.value?"auto":"none"})},[e.showEdit&&i.value?(a.openBlock(),a.createElementBlock("button",{key:0,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:m[0]||(m[0]=b=>o("edit"))},[a.createVNode(a.unref(mr),{style:{width:"16px",height:"16px"}})],12,jG)):(a.openBlock(),a.createElementBlock("div",FG)),e.showRemove?(a.openBlock(),a.createElementBlock("button",{key:2,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:m[1]||(m[1]=b=>o("remove"))},[a.createVNode(a.unref(Ti),{style:{width:"16px",height:"16px"}})],12,NG)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",{class:"d-metadata-overlay",style:a.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:d.value?1:0,transform:d.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:h.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:h.value?"#e5e5e5":"#171717"})},[a.createElementVNode("div",RG,[a.createElementVNode("div",$G,[m[4]||(m[4]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),a.createElementVNode("span",UG,a.toDisplayString((x=c.value)==null?void 0:x.name),1)]),a.createElementVNode("div",WG,[m[5]||(m[5]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),a.createElementVNode("span",GG,a.toDisplayString((C=c.value)==null?void 0:C.size),1)]),a.createElementVNode("div",KG,[m[6]||(m[6]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),a.createElementVNode("span",XG,a.toDisplayString((v=c.value)==null?void 0:v.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-4f5c1d5e"]]);function I_(){const e=i=>{var d;const s={type:i.type||"info",title:i.title,message:i.message,duration:i.duration??3e3};typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:toast",{detail:s,bubbles:!0,composed:!0})),(s.type==="error"?console.error:s.type==="warning"?console.warn:console.log)(`[Toast][${(d=s.type)==null?void 0:d.toUpperCase()}]`,s.title||"",s.message)};return{show:e,success:(i,s)=>e({type:"success",message:i,title:s}),error:(i,s)=>e({type:"error",message:i,title:s}),warning:(i,s)=>e({type:"warning",message:i,title:s}),info:(i,s)=>e({type:"info",message:i,title:s})}}const ZG={class:"space-y-3"},YG={key:1,class:"flex items-center justify-center p-6 border rounded-lg bg-muted/30 dark:bg-neutral-800/20 dark:border-neutral-800"},gP=a.defineComponent({name:"DCodeFileField",inheritAttrs:!1,__name:"DCodeFileField",props:{modelValue:{default:null},label:{default:"Upload File"},hint:{},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:void 0},allowedTypes:{default:null},accept:{default:"*/*"},minSizeMb:{default:null},maxSizeMb:{default:1},endpoint:{},uploadFn:{}},emits:["update:modelValue","error","uploaded"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:S=>o("update:modelValue",S)}),i=a.ref(null),s=a.ref(null);function c(S){s.value=S,o("error",S)}function d(){s.value=null}const h=a.computed(()=>{const S=(n.allowedTypes??"").trim();return S?S.split(/[,\s;]+/g).map(w=>w.trim().toLowerCase()).filter(Boolean).map(w=>w.includes("/")||w.startsWith(".")?w:`.${w}`):[]});function u(S){const M=S.lastIndexOf(".");return M>=0?S.slice(M).toLowerCase():""}const p=a.computed(()=>{if(h.value.length){const S=h.value.filter(w=>w.startsWith("."));return[...h.value.filter(w=>w.includes("/")),...S].join(",")}return n.accept}),y=a.computed(()=>h.value.length?h.value.join(", "):n.accept||"Semua File");function f(S){if(h.value.length){const M=(S.type||"").toLowerCase(),w=u(S.name);return h.value.some(I=>I.includes("/")?M===I:I.startsWith(".")?w===I:w===`.${I}`)}if(n.accept){if(n.accept==="*/*")return!0;const M=n.accept.split(",").map(z=>z.trim().toLowerCase()),w=(S.type||"").toLowerCase(),I=u(S.name);return M.some(z=>{if(z.endsWith("/*")){const B=z.slice(0,-2);return w.startsWith(B)}return z.startsWith(".")?I===z:w===z})}return!0}function m(S){return S*1024*1024}async function k(S){return S?f(S)?n.minSizeMb!=null&&S.size<m(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&S.size>m(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null:`File Type not allowed. Allowed: ${y.value}`:"File tidak valid"}const{DCodeApi:g}=et(),x=I_(),C=a.ref(!1);async function v(S){var M;if(n.uploadFn){try{C.value=!0;const w=await n.uploadFn(S);r.value=S,o("uploaded",w)}catch(w){console.error("Upload Error",w),x.error("Upload Failed",(w==null?void 0:w.message)||"Unknown error"),c((w==null?void 0:w.message)||"Upload Failed")}finally{C.value=!1}return}if(!((M=n.endpoint)!=null&&M.apiUrl)){r.value=S;return}if(typeof g!="function"){c("useApi() must expose DCodeApi()");return}try{C.value=!0;const w=new FormData;w.append("doc",S);const I=(n.endpoint.apiMethod||"POST").toUpperCase(),z=n.endpoint.apiUrl,B=await g("","",w,{_url:z,_method:I,withCredentials:!0,transformRequest:[(V,E)=>(E&&(delete E["Content-Type"],delete E["content-type"]),V)]}),A=(B==null?void 0:B.data)??B;r.value=S,o("uploaded",A)}catch(w){console.error("Upload Error",w),x.error("Upload Failed",(w==null?void 0:w.message)||"Unknown error"),c((w==null?void 0:w.message)||"Upload Failed")}finally{C.value=!1}}async function b(S){var w;if(n.disabled)return;d();const M=await k(S);if(M){c(M);return}i.value=S,n.uploadFn||(w=n.endpoint)!=null&&w.apiUrl?await v(S):r.value=S}function L(){d(),r.value=null,i.value=null}return a.watch(()=>n.modelValue,S=>{S&&!i.value&&(i.value=S),S||(i.value=null)},{immediate:!0}),(S,M)=>(a.openBlock(),a.createElementBlock("div",ZG,[r.value?C.value?(a.openBlock(),a.createElementBlock("div",YG,[...M[1]||(M[1]=[a.createElementVNode("span",{class:"text-sm text-muted-foreground dark:text-neutral-400 animate-pulse"},"Uploading...",-1)])])):(a.openBlock(),a.createBlock(S_,{key:2,file:r.value,title:e.label,description:e.hint,disabled:e.disabled,"show-edit":!1,"show-replace":!1,"show-remove":!0,"force-file-icon":!0,"preview-height":e.previewHeight,"preview-width":e.previewWidth,onRemove:L},null,8,["file","title","description","disabled","preview-height","preview-width"])):(a.openBlock(),a.createBlock(LS,{key:0,label:e.label,hint:e.hint,accept:p.value,maxSizeMb:e.maxSizeMb,disabled:e.disabled||C.value,onPicked:b,error:s.value,onError:M[0]||(M[0]=w=>c(w))},null,8,["label","hint","accept","maxSizeMb","disabled","error"]))]))}}),QG=["for"],JG={key:0,class:"!ml-1 !text-destructive"},eK={class:"relative w-full block box-border"},tK={key:0,class:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none z-10"},aK=["id","readonly","disabled","placeholder"],nK={class:"absolute inset-y-0 right-4 flex items-center z-10"},oK={key:1,class:"absolute z-50 mt-1 w-full rounded-xl border bg-white dark:bg-neutral-900 shadow-lg box-border"},rK={key:0,class:"flex items-center justify-center py-10 text-muted-foreground gap-2"},iK={key:1,class:"text-sm text-muted-foreground text-center"},sK=["onClick","title"],lK={class:"flex flex-col items-center justify-between gap-2 py-1 min-h-[72px]"},cK={class:"flex items-center justify-center flex-1"},dK={class:"text-[10px] leading-tight text-muted-foreground truncate w-full text-center block flex-shrink-0"},hK={key:3,class:"pt-2 text-[11px] text-muted-foreground text-center"},bP=a.defineComponent({name:"DCodeIconDropdown",__name:"DCodeIconDropdown",props:{modelValue:{},label:{},placeholder:{default:"Pilih icon…"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},columns:{default:4},maxHeight:{default:"335px"},iconSize:{default:20},pageSize:{default:120}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=e,o=t,r=na,i=a.ref(null),s=a.ref(null),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`dcode-icon-dropdown-${n.label||"icon-dropdown"}-${c}`),h=a.ref(!1),u=a.computed(()=>(n.modelValue??"").trim()||""),p=a.ref(""),y=a.ref(!1),f=a.ref(!1),m=a.ref(!1),k=a.shallowRef([]),g=a.ref(n.pageSize),x=new Set(["default","createLucideIcon","LucideIcon","Icon","icons","toKebabCase","camelCase","children","IconNode"]),C=async()=>{if(f.value||m.value)return;m.value=!0,await new Promise(F=>setTimeout(F,0));const T=Object.keys(r).filter(F=>!x.has(F)).filter(F=>/^[A-Z]/.test(F)).filter(F=>typeof r[F]=="function"||typeof r[F]=="object"&&r[F]).sort((F,N)=>F.localeCompare(N));k.value=T,f.value=!0,m.value=!1},v=a.computed(()=>!f.value||!u.value||!k.value.includes(u.value)?null:r[u.value]),b=a.ref(u.value),L=a.computed(()=>!!u.value&&!h.value),S=a.computed(()=>{if(!f.value)return[];const T=(p.value??"").trim().toLowerCase();return T?k.value.filter(F=>F.toLowerCase().includes(T)):k.value}),M=a.computed(()=>S.value.slice(0,g.value)),w=a.computed(()=>{const T=n.columns;return T<=2?"grid-cols-2":T===3?"grid-cols-3":T===4?"grid-cols-4":T===5?"grid-cols-5":T>=8?"grid-cols-8":"grid-cols-6"});a.computed(()=>n.clearable?"!pr-10":"!pr-3"),a.computed(()=>v.value&&!h.value?"!pl-12":"!pl-3");const I=async()=>{var T;await a.nextTick(),(T=s.value)==null||T.focus()},z=async T=>{if(n.disabled)return;const F=T!==!1;if(y.value){y.value=!1;return}h.value=!0,await C(),F&&(p.value="",b.value=""),g.value=n.pageSize,await I()},B=()=>{h.value=!1,p.value="",b.value=u.value,g.value=n.pageSize},A=async()=>{n.disabled||(h.value?B():await z())};let V=null;const E=async T=>{if(n.disabled)return;o("update:modelValue",null),h.value||await z(!1),V&&clearTimeout(V);const F=b.value;V=setTimeout(()=>{p.value=F},300)},W=T=>{n.disabled||(o("update:modelValue",T),B(),queueMicrotask(()=>{var F;return(F=s.value)==null?void 0:F.blur()}))},H=()=>{n.disabled||(o("update:modelValue",null),o("clear"),y.value=!0,B(),queueMicrotask(()=>{var T;return(T=s.value)==null?void 0:T.focus()}))},O=T=>{if(T.key==="Escape"){T.preventDefault(),B();return}if(T.key==="Enter"&&h.value){const F=S.value[0];F&&(T.preventDefault(),W(F))}},U=T=>{if(!h.value)return;const F=T.target;i.value&&!i.value.contains(F)&&B()},J=T=>{const F=T.target;F.scrollTop+F.clientHeight>=F.scrollHeight-24&&g.value<S.value.length&&(g.value=Math.min(g.value+n.pageSize,S.value.length))};return a.onMounted(()=>{document.addEventListener("mousedown",U),queueMicrotask(()=>{var T;s.value=((T=i.value)==null?void 0:T.querySelector("input"))??null}),u.value&&C()}),a.onBeforeUnmount(()=>{document.removeEventListener("mousedown",U),V&&clearTimeout(V)}),a.watch(u,T=>{h.value||(b.value=T)}),a.watch(()=>p.value,()=>{g.value=n.pageSize}),(T,F)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:i,class:"!w-full !block !box-border"},[n.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:d.value,class:"!text-sm !font-medium !mb-1 !block"},[a.createTextVNode(a.toDisplayString(n.label)+" ",1),n.required?(a.openBlock(),a.createElementBlock("span",JG,"*")):a.createCommentVNode("",!0)],8,QG)):a.createCommentVNode("",!0),a.createElementVNode("div",eK,[v.value&&!h.value?(a.openBlock(),a.createElementBlock("div",tK,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.value),{size:18}))])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("input",{id:d.value,"onUpdate:modelValue":F[0]||(F[0]=N=>b.value=N),readonly:L.value,disabled:n.disabled,placeholder:n.placeholder,class:a.normalizeClass(["w-full h-10 m-0 py-0 rounded-lg border bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 pr-10 outline-none box-border truncate",[v.value&&!h.value?"pl-10":"pl-4",L.value?"cursor-pointer select-none":""]]),onClick:z,onFocus:z,onInput:E,onKeydown:O},null,42,aK),[[a.vModelText,b.value]]),a.createElementVNode("div",nK,[n.clearable&&u.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition cursor-pointer outline-none",onMousedown:F[1]||(F[1]=a.withModifiers(()=>{},["prevent"])),onClick:H,title:"Clear"},[a.createVNode(a.unref(pt),{class:"h-4 w-4"})],32)):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition-transform cursor-pointer outline-none",onMousedown:F[2]||(F[2]=a.withModifiers(()=>{},["prevent"])),onClick:A,title:"Open"},[a.createVNode(a.unref(Et),{class:"h-4 w-4"})],32))]),h.value?(a.openBlock(),a.createElementBlock("div",oK,[a.createElementVNode("div",{class:"p-2 overflow-auto",style:a.normalizeStyle({maxHeight:n.maxHeight}),onScroll:J},[m.value?(a.openBlock(),a.createElementBlock("div",rK,[a.createVNode(a.unref(Lt),{class:"h-4 w-4 animate-spin"}),F[3]||(F[3]=a.createElementVNode("span",{class:"text-sm"},"Loading icons…",-1))])):f.value&&S.value.length===0?(a.openBlock(),a.createElementBlock("div",iK," Icon tidak ditemukan ")):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["grid gap-2",w.value])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(M.value,N=>(a.openBlock(),a.createElementBlock("button",{key:N,type:"button",class:a.normalizeClass(["group rounded-lg border p-2 hover:bg-muted/40 transition",u.value===N?"ring-1 ring-primary":""]),onClick:Y=>W(N),title:N},[a.createElementVNode("div",lK,[a.createElementVNode("div",cK,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)[N]),{size:n.iconSize,class:"shrink-0"},null,8,["size"]))]),a.createElementVNode("span",dK,a.toDisplayString(N),1)])],10,sK))),128))],2)),f.value&&S.value.length>0?(a.openBlock(),a.createElementBlock("div",hK," Showing "+a.toDisplayString(M.value.length)+" / "+a.toDisplayString(S.value.length),1)):a.createCommentVNode("",!0)],36)])):a.createCommentVNode("",!0)])],512))}}),uK={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6"},pK={class:"flex items-center justify-between border-b dark:border-neutral-800 px-6 py-4"},yK={class:"relative overflow-auto p-0"},__=a.defineComponent({name:"DCodeImageCropperDialog",inheritAttrs:!1,__name:"DCodeImageCropperDialog",props:{modelValue:{type:Boolean},file:{},title:{default:"Resize & Crop Gambar"},description:{default:""},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!1}},emits:["update:modelValue","done","cancel"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:v=>o("update:modelValue",v)}),i=a.ref(null),s=a.ref(null);let c=null,d=!1,h=0,u=null;function p(){if(c){try{c.close()}catch{}c=null,u&&(u.disconnect(),u=null),i.value&&(i.value.innerHTML=""),s.value=null}}async function y(v,b,L,S,M){const w=await new Promise((B,A)=>{const V=URL.createObjectURL(v),E=new Image;E.onload=()=>{URL.revokeObjectURL(V),B(E)},E.onerror=W=>{URL.revokeObjectURL(V),A(W)},E.src=V}),I=document.createElement("canvas");I.width=b,I.height=L;const z=I.getContext("2d");return z?(z.drawImage(w,0,0,b,L),await new Promise(B=>{I.toBlob(A=>B(A||v),S,M)})):v}function f(){if(!c||!s.value)return;const v=c.getPlugin("Dashboard"),b=c.getFile(s.value);!v||!b||requestAnimationFrame(()=>{try{v.openFileEditor(b)}catch{try{v.openFileEditor(s.value)}catch{}}})}async function m(v){if(c){c.cancelAll(),s.value=null;try{const b=c.addFile({name:v.name,type:v.type,data:v,source:"Local",isRemote:!1});s.value=String(b)}catch{}}}function k(){if(!i.value)return;c&&p(),c=new oq({autoProceed:!1,restrictions:{maxNumberOfFiles:1,allowedFileTypes:["image/*"]}});const v=document.documentElement.classList.contains("dark");c.use(K_,{target:i.value,inline:!0,height:480,theme:v?"dark":"light",proudlyDisplayPoweredByUppy:!1,hideUploadButton:!0,hideRetryButton:!0,hidePauseResumeButton:!0,hideCancelButton:!0,showProgressDetails:!1}),u=new MutationObserver(()=>{if(!c)return;const b=document.documentElement.classList.contains("dark"),L=c.getPlugin("Dashboard");L&&L.setOptions({theme:b?"dark":"light"})}),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),c.use(rq,{target:K_,quality:n.quality,cropperOptions:{viewMode:1,dragMode:"move",autoCropArea:1,aspectRatio:n.aspectRatio==null?Number.NaN:n.aspectRatio}}),c.on("file-editor:cancel",()=>{r.value=!1}),c.on("file-added",b=>{s.value=(b==null?void 0:b.id)??null,n.autoOpenEditor&&setTimeout(()=>f(),80)}),c.on("file-editor:complete",async b=>{const L=++h;try{const S=b.data,M=S.type||b.type||"image/jpeg";let w=S;if(n.outputWidth&&n.outputHeight&&(w=await y(S,n.outputWidth,n.outputHeight,M,n.quality)),d||L!==h)return;const I=b.name||"edited-image.jpg",z=new File([w],I,{type:M});await g(z,"UPPY_EDITOR_COMPLETE"),o("done",z),r.value=!1}catch{}})}async function g(v,b="CROP_RESULT"){const L=URL.createObjectURL(v);try{const S=await new Promise((M,w)=>{const I=new Image;I.onload=()=>M(I),I.onerror=w,I.src=L});console.group(b),console.log("file:",v),console.table({name:v.name,type:v.type,sizeBytes:v.size,sizeMB:+(v.size/1024/1024).toFixed(3),width:S.naturalWidth,height:S.naturalHeight,ratio:+(S.naturalWidth/S.naturalHeight).toFixed(4)}),console.log("previewUrl:",L),console.groupEnd()}finally{URL.revokeObjectURL(L)}}a.watch(r,async v=>{d=!v,h++,v?(await a.nextTick(),k(),n.file&&await m(n.file)):p()},{flush:"post"}),a.watch(()=>n.file,async v=>{r.value&&v&&(await a.nextTick(),await m(v))}),a.onBeforeUnmount(()=>{d=!0,h++,p()});const x=v=>{v.key==="Escape"&&r.value&&(r.value=!1)};a.watch(r,v=>{v?globalThis.addEventListener("keydown",x):globalThis.removeEventListener("keydown",x)},{immediate:!0});const C=a.ref(!1);return(v,b)=>r.value?(a.openBlock(),a.createElementBlock("div",uK,[a.createVNode(a.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity",onClick:b[0]||(b[0]=L=>r.value=!1)})):a.createCommentVNode("",!0)]),_:1}),a.createVNode(a.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"relative flex w-fit max-w-4xl flex-col overflow-hidden rounded-xl border border-border dark:border-neutral-800 bg-background dark:bg-neutral-900 shadow-2xl transition-all",onClick:b[4]||(b[4]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",pK,[b[6]||(b[6]=a.createElementVNode("h3",{class:"text-lg font-semibold leading-none tracking-tight dark:text-neutral-100"}," Crop & Resize ",-1)),a.createElementVNode("button",{class:"d-close-btn rounded-sm dark:text-neutral-400 ring-offset-background transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",style:a.normalizeStyle({opacity:C.value?1:.7}),onClick:b[1]||(b[1]=L=>r.value=!1),onMouseenter:b[2]||(b[2]=L=>C.value=!0),onMouseleave:b[3]||(b[3]=L=>C.value=!1)},[a.createVNode(a.unref(pt),{class:"h-4 w-4"}),b[5]||(b[5]=a.createElementVNode("span",{class:"sr-only"},"Close",-1))],36)]),a.createElementVNode("div",yK,[a.createElementVNode("div",{ref_key:"dashboardEl",ref:i,class:"uppy-wrap"},null,512)])])):a.createCommentVNode("",!0)]),_:1})])):a.createCommentVNode("",!0)}}),fK={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},mK=["src"],kK=["disabled"],gK=["disabled"],bK={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},MK={class:"flex gap-2"},xK={class:"font-medium truncate"},wK={class:"flex gap-2"},vK={class:"font-medium"},CK={class:"flex gap-2"},LK={class:"font-medium truncate"},A_=ra(a.defineComponent({name:"DCodeImageResult",__name:"DCodeImageResult",props:{file:{},title:{default:"Hasil Gambar"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0}},emits:["edit","replace","remove"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null);a.watch(()=>n.file,y=>{r.value&&URL.revokeObjectURL(r.value),r.value=y?URL.createObjectURL(y):null},{immediate:!0}),a.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),h&&h.disconnect()});function i(y){const f=y/1024,m=f/1024;return m>=1?`${m.toFixed(2)} MB`:f>=1?`${f.toFixed(1)} KB`:`${y} B`}const s=a.computed(()=>n.file?{name:n.file.name,size:i(n.file.size),type:n.file.type||"unknown"}:null),c=a.ref(!1),d=a.ref(!1);let h=null;const u=()=>{typeof document<"u"&&(d.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{u(),typeof document<"u"&&(h=new MutationObserver(u),h.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),h.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const p=a.computed(()=>n.disabled||!c.value?{}:{borderColor:d.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:d.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(y,f)=>e.file?(a.openBlock(),a.createBlock(w_,{key:0,class:a.normalizeClass([e.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(C_,{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(L_,{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),e.description?(a.openBlock(),a.createElementBlock("div",fK,a.toDisplayString(e.description),1)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(v_,{class:"pt-2"},{default:a.withCtx(()=>{var m,k,g;return[a.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:a.normalizeStyle([{height:`${e.previewHeight}px`},p.value]),onMouseenter:f[2]||(f[2]=x=>c.value=!0),onMouseleave:f[3]||(f[3]=x=>c.value=!1)},[r.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,mK)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"d-action-buttons",style:a.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:c.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:c.value?"auto":"none"})},[e.showEdit?(a.openBlock(),a.createElementBlock("button",{key:0,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[0]||(f[0]=x=>o("edit"))},[a.createVNode(a.unref(mr),{style:{width:"16px",height:"16px"}})],12,kK)):a.createCommentVNode("",!0),e.showRemove?(a.openBlock(),a.createElementBlock("button",{key:1,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[1]||(f[1]=x=>o("remove"))},[a.createVNode(a.unref(Ti),{style:{width:"16px",height:"16px"}})],12,gK)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",{class:"d-metadata-overlay",style:a.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:c.value?1:0,transform:c.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:d.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:d.value?"#e5e5e5":"#171717"})},[a.createElementVNode("div",bK,[a.createElementVNode("div",MK,[f[4]||(f[4]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),a.createElementVNode("span",xK,a.toDisplayString((m=s.value)==null?void 0:m.name),1)]),a.createElementVNode("div",wK,[f[5]||(f[5]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),a.createElementVNode("span",vK,a.toDisplayString((k=s.value)==null?void 0:k.size),1)]),a.createElementVNode("div",CK,[f[6]||(f[6]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),a.createElementVNode("span",LK,a.toDisplayString((g=s.value)==null?void 0:g.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-72c623f7"]]),SK={class:"space-y-3"},B_=a.defineComponent({name:"DCodeImageField",inheritAttrs:!1,__name:"DCodeImageField",props:{modelValue:{default:null},label:{default:"Upload Gambar"},hint:{default:"Drag & drop atau klik area ini"},disabled:{type:Boolean,default:!1},allowedTypes:{default:null},accept:{default:"image/*"},minSizeMb:{default:null},maxSizeMb:{default:1},title:{default:"Hasil Gambar"},description:{default:""},previewWidth:{default:360},previewHeight:{default:220},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!0},minWidth:{default:null},minHeight:{default:null},maxWidth:{default:null},maxHeight:{default:null},endpoint:{},uploadFn:{},editUseOriginal:{type:Boolean,default:!1}},emits:["update:modelValue","error","uploaded"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:H=>o("update:modelValue",H)}),i=a.ref(!1),s=a.ref(null),c=a.ref(null),d=a.ref(null);function h(H){d.value=H,o("error",H)}function u(){d.value=null}const p=a.computed(()=>{const H=(n.allowedTypes??"").trim();return H?H.split(/[,\s;]+/g).map(U=>U.trim().toLowerCase()).filter(Boolean).map(U=>U.includes("/")||U.startsWith(".")?U:`.${U}`):[]});function y(H){const O=H.lastIndexOf(".");return O>=0?H.slice(O).toLowerCase():""}const f=a.computed(()=>{if(p.value.length){const H=p.value.filter(U=>U.startsWith("."));return[...p.value.filter(U=>U.includes("/")),...H].join(",")}return n.accept||"image/*"}),m=a.computed(()=>p.value.length?p.value.join(", "):n.accept||"image/*");function k(H){if(p.value.length){const U=(H.type||"").toLowerCase(),J=y(H.name);return p.value.some(T=>T.includes("/")?U===T:T.startsWith(".")?J===T:J===`.${T}`)}return(n.accept||"image/*").toLowerCase().includes("image/")?(H.type||"").toLowerCase().startsWith("image/"):!0}function g(H){return H*1024*1024}async function x(H){var O;return(O=H.type)!=null&&O.startsWith("image/")?await new Promise(U=>{const J=URL.createObjectURL(H),T=new Image;T.onload=()=>{URL.revokeObjectURL(J),U({w:T.naturalWidth,h:T.naturalHeight})},T.onerror=()=>{URL.revokeObjectURL(J),U(null)},T.src=J}):null}async function C(H){if(!(n.minWidth!=null||n.minHeight!=null||n.maxWidth!=null||n.maxHeight!=null))return null;const U=await x(H);return U?n.minWidth!=null&&U.w<n.minWidth?`Lebar gambar minimal ${n.minWidth}px`:n.minHeight!=null&&U.h<n.minHeight?`Tinggi gambar minimal ${n.minHeight}px`:n.maxWidth!=null&&U.w>n.maxWidth?`Lebar gambar maksimal ${n.maxWidth}px`:n.maxHeight!=null&&U.h>n.maxHeight?`Tinggi gambar maksimal ${n.maxHeight}px`:null:"Gagal membaca dimensi gambar"}async function v(H){return H?k(H)?n.minSizeMb!=null&&H.size<g(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&H.size>g(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:await C(H):`only Allowed: ${m.value}`:"File tidak valid"}function b(H){n.disabled||(s.value=H,i.value=!0)}async function L(H){if(n.disabled)return;u();const O=await v(H);if(O){h(O);return}c.value=H,b(H)}const{DCodeApi:S}=et(),M=I_(),w=a.ref(!1);a.ref(null);function I(H,O){return!H||!O?null:H.replace(/\/+$/,"")+"/"+O.replace(/^\/+/,"")}function z(H){var T;const O=(H==null?void 0:H.data)??H,U=(T=O==null?void 0:O.data)==null?void 0:T[0];if(!U)return null;const J=I(U.server,U.url);return{...U,fullUrl:J?encodeURI(J):null}}async function B(H){var O;if(n.uploadFn){try{w.value=!0;const U=await n.uploadFn(H);r.value=H,o("uploaded",U)}catch(U){console.error("Upload Error",U),M.error("Upload Failed",(U==null?void 0:U.message)||"Unknown error"),h((U==null?void 0:U.message)||"Upload Failed")}finally{w.value=!1}return}if(!((O=n.endpoint)!=null&&O.apiUrl)){r.value=H;return}if(typeof S!="function"){h("useApi() must expose DCodeApi()");return}try{w.value=!0;const U=new FormData;U.append("doc",H);const J=(n.endpoint.apiMethod||"POST").toUpperCase(),T=n.endpoint.apiUrl,F=await S("","",U,{_url:T,_method:J,withCredentials:!0,transformRequest:[(Y,Q)=>(Q&&(delete Q["Content-Type"],delete Q["content-type"]),Y)]}),N=(F==null?void 0:F.data)??F;z(N),r.value=H,o("uploaded",N)}catch(U){console.error("Upload Error",U),M.error("Upload Failed",(U==null?void 0:U.message)||"Unknown error"),h((U==null?void 0:U.message)||"Upload Failed")}finally{w.value=!1}}async function A(H){var O;u(),n.uploadFn||(O=n.endpoint)!=null&&O.apiUrl?await B(H):r.value=H,i.value=!1,s.value=null}function V(){i.value=!1,s.value=null}async function E(){if(!r.value)return;u();const H=n.editUseOriginal?c.value??r.value:r.value,O=await v(H);if(O){h(O);return}b(H)}function W(){u(),r.value=null,s.value=null,i.value=!1,c.value=null}return a.watch(()=>n.modelValue,H=>{H&&!c.value&&(c.value=H),H||(c.value=null)},{immediate:!0}),(H,O)=>(a.openBlock(),a.createElementBlock("div",SK,[r.value?(a.openBlock(),a.createBlock(A_,{key:1,file:r.value,title:e.label,description:e.description,"preview-width":e.previewWidth,disabled:e.disabled,"show-edit":!0,"show-remove":!0,"show-replace":!1,onEdit:E,onRemove:W,"aspect-ratio":16/9},null,8,["file","title","description","preview-width","disabled"])):(a.openBlock(),a.createBlock(LS,{key:0,label:e.label,hint:e.hint,accept:f.value,maxSizeMb:e.maxSizeMb,disabled:e.disabled,onPicked:L,error:d.value,onError:O[0]||(O[0]=U=>h(U))},null,8,["label","hint","accept","maxSizeMb","disabled","error"])),a.createVNode(__,{modelValue:i.value,"onUpdate:modelValue":O[1]||(O[1]=U=>i.value=U),file:s.value,title:e.title,description:e.description,"auto-open-editor":e.autoOpenEditor,"aspect-ratio":e.aspectRatio,"output-width":e.outputWidth,"output-height":e.outputHeight,quality:e.quality,onDone:A,onCancel:V},null,8,["modelValue","file","title","description","auto-open-editor","aspect-ratio","output-width","output-height","quality"])]))}}),V_=a.defineComponent({name:"DCodeLabel",inheritAttrs:!1,__name:"DCodeLabel",props:{label:{},text:{},textSize:{},textType:{},icon:{},iconClass:{}},setup(e){const t=a.useAttrs(),n=e,o=a.computed(()=>n.icon&&na[n.icon]||null),r=a.computed(()=>n.textSize?`text-${n.textSize}`:"text-xs"),i={xs:"w-3 h-3",sm:"w-3.5 h-3.5",base:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5","2xl":"w-6 h-6","3xl":"w-7 h-7","4xl":"w-8 h-8","5xl":"w-10 h-10","6xl":"w-12 h-12"},s=a.computed(()=>i[n.textSize??"xs"]??"w-3 h-3"),c=a.computed(()=>n.textType==="BOLD"?"font-bold":n.textType==="ITALIC"?"italic font-normal":"font-normal"),d=a.computed(()=>{const u=`${r.value} ${c.value} text-slate-600 ml-1 inline-flex items-center gap-1`,p=t.class??"";return[u,p].filter(Boolean).join(" ")}),h=a.computed(()=>{const{class:u,...p}=t;return p});return(u,p)=>(a.openBlock(),a.createElementBlock("span",a.mergeProps({class:d.value},h.value),[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:a.normalizeClass(["shrink-0",s.value,e.iconClass])},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(e.label||e.text),1)],16))}}),z_=a.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(i,s)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>a.isRef(r)?r.value=c:null),class:a.normalizeClass(a.unref(Me)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[a.vModelText,a.unref(r)]])}}),IK=["aria-busy"],_K={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},AK={key:0,class:"ml-1 text-destructive"},BK={class:"min-w-0 flex-1 text-left"},VK={key:0,class:"flex flex-wrap gap-1.5"},zK={class:"max-w-[220px] truncate"},PK=["onClick"],qK={key:1,class:"text-muted-foreground truncate"},DK={class:"flex items-center gap-2 shrink-0"},EK={key:0,class:"p-2 border-b border-gray-200 dark:border-gray-800"},TK={key:0,class:"h-full flex items-center justify-center px-3 text-sm text-muted-foreground"},HK=["disabled","onClick"],OK={class:"truncate"},jK={key:0,class:"text-primary-600 dark:text-primary-400"},FK={key:1,class:"h-full flex items-center justify-center text-sm text-muted-foreground"},NK={key:0},RK={key:1},$K={key:1,class:"text-xs text-destructive"},UK={name:"DCodeMultiSelect"},MP=a.defineComponent({...UK,name:"DCodeMultiSelect",inheritAttrs:!1,props:{modelValue:{},items:{default:()=>[]},endpoint:{default:void 0},fetchItems:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},refreshOnOpen:{type:Boolean,default:!1},label:{default:""},placeholder:{default:"Pilih data…"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Cari…"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},maxChips:{default:5},maxSelected:{default:5},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},virtual:{type:Boolean,default:!0},itemHeight:{default:40},maxRows:{default:5},overscan:{default:6},error:{default:null},required:{type:Boolean,default:!1}},emits:["update:modelValue","clear","max"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>(r.label||n.label)??void 0),s=a.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`app-multiselect-${n.id||i.value||"field"}-${c}`),h=a.computed(()=>{if(r.required)return!0;const Z=n.required,te=n["aria-required"];return Z===""||Z===!0||Z==="true"||(te==="true"||te===!0)}),u=a.computed(()=>!!r.error);function p(Z){return Z?typeof r.itemTitle=="function"?r.itemTitle(Z)??"":String((Z==null?void 0:Z[r.itemTitle])??""):""}function y(Z){return Z?typeof r.itemValue=="function"?r.itemValue(Z):Z==null?void 0:Z[r.itemValue]:null}function f(Z,te){return y(Z)??te}const m=a.computed(()=>Array.isArray(r.modelValue)?r.modelValue:[]),k=a.computed(()=>{var Z;return!!((Z=r.endpoint)!=null&&Z.apiUrl)||!!r.fetchItems}),g=a.ref([]),x=a.ref(!1),C=a.ref(!1),v=a.computed(()=>{var te;const Z=(te=r.endpoint)==null?void 0:te.apiOptions;if(Z)return typeof Z=="function"?Z():Z}),b=a.computed(()=>{var fe,He;const Z=((fe=r.endpoint)==null?void 0:fe.apiUrl)??"",te=(((He=r.endpoint)==null?void 0:He.apiMethod)??"GET").toUpperCase(),ne=JSON.stringify(v.value??null);return`${te} ${Z} :: ${ne}`}),L=a.computed(()=>k.value?g.value:r.items||[]);async function S(){var Z;if(k.value&&!(!((Z=r.endpoint)!=null&&Z.apiUrl)&&!r.fetchItems)&&!x.value){x.value=!0;try{let te;if(r.fetchItems){const ne=await r.fetchItems(),fe=(ne==null?void 0:ne.data)??ne;te=(fe==null?void 0:fe.data)??fe}else{const{DCodeApi:ne}=et();if(typeof ne!="function"){console.error("[DCodeMultiSelectChips] useApi() must expose DCodeApi()");return}const fe={page:1,perPage:100,...v.value||{}},He=await ne("","",fe,{_url:r.endpoint.apiUrl,_method:(r.endpoint.apiMethod||"GET").toUpperCase()}),Vt=(He==null?void 0:He.data)??He;te=(Vt==null?void 0:Vt.data)??Vt}g.value=Array.isArray(te)?te:[],C.value=!0}catch(te){console.error("[DCodeMultiSelectChips][fetchOptions] ERROR:",te),g.value=[]}finally{x.value=!1}}}a.watch(()=>b.value,()=>{g.value=[],C.value=!1}),a.onMounted(()=>{r.autoFetchOnMount&&k.value&&S()});const M=a.computed(()=>{const Z=m.value;if(r.returnObject)return Z;const te=new Map;for(const ne of L.value)te.set(y(ne),ne);return Z.map(ne=>te.get(ne)??{[r.itemValue]:ne,[r.itemTitle]:String(ne)})}),w=a.computed(()=>r.maxChips===null?M.value:M.value.slice(0,r.maxChips));function I(Z){const te=m.value;if(r.returnObject){const ne=y(Z);return te.some(fe=>y(fe)===ne)}return te.includes(y(Z))}const z=a.computed(()=>{if(r.maxSelected===null||r.maxSelected===void 0)return null;const Z=Number(r.maxSelected);return Number.isFinite(Z)&&Z>0?Z:null}),B=a.computed(()=>{const Z=z.value;return Z===null?!1:m.value.length>=Z});function A(Z){return!I(Z)&&B.value}const V=a.computed(()=>{const Z=m.value,te=new Set;if(r.returnObject)for(const ne of Z)te.add(y(ne));else for(const ne of Z)te.add(ne);return te}),E=a.computed(()=>{const Z=V.value;return(L.value||[]).filter(te=>!Z.has(y(te)))}),W=a.computed(()=>L.value.length===0?!1:E.value.length===0),H=a.ref(null),O=a.ref(null),U=a.ref(null),J=a.ref(!1),T=a.ref(""),F=a.ref(0),N=a.ref(0),{floatingStyles:Y}=y1(H,O,{whileElementsMounted:d1,placement:"bottom-start",middleware:[h1(8),Zs(),u1({padding:8}),p1({apply({rects:Z,elements:te}){Object.assign(te.floating.style,{width:`${Z.reference.width}px`,"--floating-width":`${Z.reference.width}px`})}})]}),Q=a.computed(()=>Y.value),ie=a.computed(()=>{const Z=Number(r.maxRows);return Number.isFinite(Z)&&Z>0?Z:5});async function ue(){r.disabled||(J.value=!0,N.value=0,requestAnimationFrame(()=>{U.value&&(U.value.scrollTop=0),F.value=0}),k.value&&r.autoFetchOnOpen&&(r.refreshOnOpen||!C.value)&&!x.value&&await S())}function pe(){J.value=!1}function Ie(){J.value?pe():ue()}function ce(Z){var ne,fe;if(!J.value)return;const te=Z.target;(ne=H.value)!=null&&ne.contains(te)||(fe=O.value)!=null&&fe.contains(te)||pe()}a.onMounted(()=>document.addEventListener("mousedown",ce)),a.onBeforeUnmount(()=>document.removeEventListener("mousedown",ce));function X(Z){if(r.disabled)return;if(A(Z)){o("max");return}const te=[...m.value];if(r.returnObject){const ne=y(Z);if(te.some(He=>y(He)===ne))return;o("update:modelValue",[...te,Z])}else{const ne=y(Z);if(te.includes(ne))return;o("update:modelValue",[...te,ne])}T.value="",N.value=0,requestAnimationFrame(()=>{U.value&&(U.value.scrollTop=0),F.value=0})}function P(Z){if(r.disabled)return;const te=[...m.value];if(r.returnObject){const ne=y(Z);o("update:modelValue",te.filter(fe=>y(fe)!==ne))}else{const ne=y(Z);o("update:modelValue",te.filter(fe=>fe!==ne))}}function R(){r.disabled||(o("update:modelValue",[]),o("clear"),pe())}const ee=a.computed(()=>{const Z=T.value.trim().toLowerCase(),te=E.value;return Z?te.filter(ne=>p(ne).toLowerCase().includes(Z)):te}),ye=a.computed(()=>ee.value.length);a.watch(J,Z=>{Z||(T.value="")});const Ne=a.computed(()=>{if(W.value)return r.itemHeight;const Z=ye.value;return(Z<=0?1:Math.min(Z,ie.value))*r.itemHeight}),ut=a.computed(()=>r.virtual?ye.value*r.itemHeight:0),At=a.computed(()=>r.virtual?Math.ceil(Ne.value/r.itemHeight)+r.overscan:ye.value),Bt=a.computed(()=>{if(!r.virtual)return 0;const Z=Math.floor(F.value/r.itemHeight)-Math.floor(r.overscan/2);return Math.max(0,Z)}),Ha=a.computed(()=>r.virtual?Math.min(ye.value,Bt.value+At.value):ye.value),jS=a.computed(()=>r.virtual?Bt.value*r.itemHeight:0),Gs=a.computed(()=>{const Z=ee.value;return r.virtual?Z.slice(Bt.value,Ha.value):Z});function Jl(Z){const te=Z.target;F.value=te.scrollTop}function xt(Z){return Z===N.value}function $(Z){const te=U.value;if(!te||!r.virtual)return;const ne=Z*r.itemHeight,fe=ne+r.itemHeight,He=te.scrollTop,Vt=te.scrollTop+te.clientHeight;ne<He?te.scrollTop=ne:fe>Vt&&(te.scrollTop=fe-te.clientHeight)}function ae(Z){const te=Math.max(0,ye.value-1);N.value=Math.min(te,Math.max(0,N.value+Z)),$(N.value)}function de(){const Z=ee.value[N.value];Z&&X(Z)}const xe=a.computed(()=>r.clearable&&!r.disabled&&M.value.length>0),De=a.computed(()=>u.value?"border-red-500 ring-[0.5px] ring-red-500":J.value?"border-gray-700 ring-[0.5px] ring-gray-700 dark:border-gray-300 dark:ring-gray-300":"");return(Z,te)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",_K)):a.createCommentVNode("",!0),te[3]||(te[3]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",AK,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"referenceEl",ref:H,class:"relative"},[a.createVNode(a.unref(je),{id:d.value,type:"button",variant:"outline",class:a.normalizeClass(["w-full justify-between h-auto min-h-10 px-3 py-2 transition border",["bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 text-foreground dark:text-gray-300",De.value]]),disabled:r.disabled,onClick:Ie},{default:a.withCtx(()=>[a.createElementVNode("div",BK,[M.value.length?(a.openBlock(),a.createElementBlock("div",VK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(ne,fe)=>(a.openBlock(),a.createBlock(a.unref(Ea),{key:`chip-${f(ne,fe)}`,variant:"secondary",class:"gap-1"},{default:a.withCtx(()=>[a.createElementVNode("span",zK,a.toDisplayString(p(ne)),1),r.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"ml-1 opacity-70 hover:opacity-100",onClick:a.withModifiers(He=>P(ne),["stop"]),"aria-label":"Remove"}," ✕ ",8,PK))]),_:2},1024))),128)),r.maxChips!==null&&M.value.length>r.maxChips?(a.openBlock(),a.createBlock(a.unref(Ea),{key:0,variant:"secondary"},{default:a.withCtx(()=>[a.createTextVNode(" +"+a.toDisplayString(M.value.length-(r.maxChips??0)),1)]),_:1})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",qK,a.toDisplayString(r.placeholder),1))]),a.createElementVNode("div",DK,[xe.value?(a.openBlock(),a.createElementBlock("button",{key:0,class:"text-muted-foreground hover:text-foreground",onClick:a.withModifiers(R,["stop"]),"aria-label":"Clear"}," ✕ ")):a.createCommentVNode("",!0),a.createVNode(a.unref(Et),{class:"h-4 w-4 text-muted-foreground"})])]),_:1},8,["id","disabled","class"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[J.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:O,class:"-mt-1 z-[9999] w-[var(--floating-width)] rounded-lg border shadow-lg overflow-hidden bg-white dark:bg-neutral-900 border-gray-200 dark:border-gray-800",style:a.normalizeStyle(Q.value)},[r.searchable&&!W.value?(a.openBlock(),a.createElementBlock("div",EK,[a.createVNode(a.unref(z_),{modelValue:T.value,"onUpdate:modelValue":te[0]||(te[0]=ne=>T.value=ne),placeholder:r.searchPlaceholder,class:"h-10",onKeydown:[te[1]||(te[1]=a.withKeys(a.withModifiers(ne=>ae(1),["prevent"]),["down"])),te[2]||(te[2]=a.withKeys(a.withModifiers(ne=>ae(-1),["prevent"]),["up"])),a.withKeys(a.withModifiers(de,["prevent"]),["enter"]),a.withKeys(a.withModifiers(pe,["prevent"]),["esc"])]},null,8,["modelValue","placeholder","onKeydown"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"listEl",ref:U,class:"relative overflow-auto",style:a.normalizeStyle({height:Ne.value+"px"}),onScroll:Jl},[W.value?(a.openBlock(),a.createElementBlock("div",TK," All items have been selected ")):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[r.virtual?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({height:ut.value+"px"})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(r.virtual?"absolute left-0 top-0 w-full":""),style:a.normalizeStyle(r.virtual?{transform:`translateY(${jS.value}px)`}:void 0)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Gs.value,(ne,fe)=>(a.openBlock(),a.createElementBlock("button",{key:String(f(ne,Bt.value+fe)),type:"button",class:a.normalizeClass(["w-full px-3 text-left text-sm flex items-center justify-between gap-3",[A(ne)?"cursor-not-allowed opacity-50":"hover:bg-neutral-50 dark:hover:bg-neutral-800/60",xt(Bt.value+fe)?"bg-neutral-50 dark:bg-neutral-800/60":"",I(ne)?"font-semibold":"font-normal"]]),style:a.normalizeStyle({height:r.itemHeight+"px"}),disabled:r.disabled||A(ne),onClick:He=>X(ne)},[a.createElementVNode("span",OK,a.toDisplayString(p(ne)),1),I(ne)?(a.openBlock(),a.createElementBlock("span",jK,"✓")):a.createCommentVNode("",!0)],14,HK))),128))],6),ye.value===0?(a.openBlock(),a.createElementBlock("div",FK,[x.value?(a.openBlock(),a.createElementBlock("span",NK,"Loading data…")):(a.openBlock(),a.createElementBlock("span",RK,"Tidak ada data"))])):a.createCommentVNode("",!0)],64))],36)],4)):a.createCommentVNode("",!0)]))],512),u.value?(a.openBlock(),a.createElementBlock("p",$K,a.toDisplayString(r.error),1)):a.createCommentVNode("",!0)],64))],10,IK)),[[a.vShow,s.value]])}}),WK={class:"space-y-4"},GK={key:0,class:"space-y-1"},KK={class:"text-base font-semibold text-gray-800"},XK={class:"text-sm text-gray-400"},ZK={class:"flex items-center gap-2 flex-nowrap"},YK=["value","disabled","onKeydown","onInput","onPaste"],P_=a.defineComponent({name:"DCodeOtpInput",__name:"DCodeOtpInput",props:{modelValue:{default:""},totalInput:{default:6},default:{default:""},label:{default:""},endpoint:{},submitFn:{}},emits:["updateOtp","update:modelValue","complete","loading","success","error"],setup(e,{emit:t}){const n=e,o=t,r=a.ref([]),i=a.ref([]),s=a.ref(!1),{DCodeApi:c}=et(),d=I_(),h=a.computed(()=>{const v=Number(n.totalInput);return v&&v>0?v:6}),u=()=>{i.value=Array.from({length:h.value},(v,b)=>{var L;return((L=n.default)==null?void 0:L[b])??""}),o("updateOtp",i.value.join(""))};u(),a.watch(()=>[n.totalInput,n.default],()=>u());const p=v=>{v<0||v>=h.value||a.nextTick(()=>{var b;return(b=r.value[v])==null?void 0:b.focus()})},y=v=>v.match(/[a-zA-Z0-9]/)?v.match(/[a-zA-Z0-9]/)[0]:"";async function f(v){var b;if(o("complete",v),n.submitFn){try{s.value=!0,o("loading",!0);const L=await n.submitFn(v);o("success",L)}catch(L){console.error("OTP Submit Error",L),d.error("Submit Failed",(L==null?void 0:L.message)||"Unknown error"),o("error",(L==null?void 0:L.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}return}if((b=n.endpoint)!=null&&b.apiUrl){if(typeof c!="function"){o("error","useApi() must expose DCodeApi()");return}try{s.value=!0,o("loading",!0);const L=(n.endpoint.apiMethod||"POST").toUpperCase(),S=n.endpoint.apiUrl,M=await c("","",{otp:v},{_url:S,_method:L,withCredentials:!0}),w=(M==null?void 0:M.data)??M;o("success",w)}catch(L){console.error("OTP Submit Error",L),d.error("Submit Failed",(L==null?void 0:L.message)||"Unknown error"),o("error",(L==null?void 0:L.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}}}const m=(v,b)=>{i.value[v]=y(b);const L=i.value.join("");o("updateOtp",L),o("update:modelValue",L),L.length===h.value&&f(L)},k=(v,b)=>{const L=v.key,S=/^\d$/.test(L),M=/^[a-zA-Z]$/.test(L);if(L==="Backspace"){if(v.preventDefault(),i.value[b]){m(b,"");return}b>0&&(m(b-1,""),p(b-1));return}if(L==="ArrowLeft"){v.preventDefault(),p(b-1);return}if(L==="ArrowRight"){v.preventDefault(),p(b+1);return}if(S||M){v.preventDefault(),m(b,L),b<h.value-1&&p(b+1);return}L.length===1&&v.preventDefault()},g=(v,b)=>{const L=v.target,S=L.value??"",M=y(S);L.value=M,m(b,M),M&&b<h.value-1&&p(b+1)},x=(v,b)=>{var I;v.preventDefault();const S=(((I=v.clipboardData)==null?void 0:I.getData("text"))??"").replaceAll(/[^a-zA-Z0-9]/g,"");if(!S)return;let M=b;for(const z of S){if(M>=h.value)break;i.value[M]=z,M++}const w=i.value.join("");o("updateOtp",w),o("update:modelValue",w),w.length===h.value&&f(w),p(Math.min(M,h.value-1))},C=v=>b=>{r.value[v]=(b==null?void 0:b.$el)??b};return(v,b)=>(a.openBlock(),a.createElementBlock("div",WK,[n.label||h.value?(a.openBlock(),a.createElementBlock("div",GK,[a.createElementVNode("h6",KK,a.toDisplayString(n.label||"Masukkan kode keamanan"),1),a.createElementVNode("p",XK," Ketik "+a.toDisplayString(h.value)+" digit kode verifikasi Anda ",1)])):a.createCommentVNode("",!0),a.createElementVNode("div",ZK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,L=>(a.openBlock(),a.createElementBlock("input",{key:L,ref_for:!0,ref:C(L-1),value:i.value[L-1]||"",type:"text",inputmode:"text",maxlength:"1",autocomplete:"one-time-code","aria-label":"`OTP digit ${i}`",placeholder:"*",disabled:s.value,class:a.normalizeClass(["w-12 h-12 flex-none text-center text-xl font-bold rounded-xl border-2 transition-all duration-200 box-border p-0","focus:outline-none focus:scale-105 disabled:opacity-50 disabled:cursor-not-allowed",i.value[L-1]?"border-blue-500 bg-blue-50 text-blue-700 shadow-sm shadow-blue-100":"border-gray-200 bg-gray-50 text-gray-400 focus:border-blue-400 focus:bg-white focus:shadow-md focus:shadow-blue-50"]),onKeydown:S=>k(S,L-1),onInput:S=>g(S,L-1),onPaste:S=>x(S,L-1)},null,42,YK))),128))])]))}}),QK={class:"w-full"},JK={key:0,class:"flex items-center justify-between mb-2"},eX={key:0,class:"text-sm font-medium text-gray-700"},tX={key:1,class:"text-sm text-gray-600"},aX={name:"DCodeProgress"},xP=a.defineComponent({...aX,name:"DCodeProgress",inheritAttrs:!1,props:{modelValue:{default:0},max:{default:100},label:{default:""},showValue:{type:Boolean,default:!1},color:{default:"blue"},size:{default:"md"},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=a.computed(()=>Math.min(n.modelValue/n.max*100,100)),r=a.computed(()=>["w-full rounded-full overflow-hidden",{sm:"h-1",md:"h-2",lg:"h-3"}[n.size],"bg-gray-200"].join(" ")),i=a.computed(()=>{const c={blue:"bg-blue-500",green:"bg-green-500",red:"bg-red-500",yellow:"bg-yellow-500",purple:"bg-purple-500",gray:"bg-gray-500"},d=["h-full transition-all duration-300 ease-out",c[n.color]||c.blue];return n.striped&&d.push("bg-gradient-to-r from-transparent via-white/20 to-transparent"),n.animated&&d.push("animate-pulse"),d.join(" ")}),s=a.computed(()=>`${Math.round(o.value)}%`);return(c,d)=>(a.openBlock(),a.createElementBlock("div",QK,[e.label||e.showValue?(a.openBlock(),a.createElementBlock("div",JK,[e.label?(a.openBlock(),a.createElementBlock("span",eX,a.toDisplayString(e.label),1)):a.createCommentVNode("",!0),e.showValue?(a.openBlock(),a.createElementBlock("span",tX,a.toDisplayString(s.value),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(r.value)},[a.createElementVNode("div",{class:a.normalizeClass(i.value),style:a.normalizeStyle({width:`${o.value}%`})},null,6)],2)]))}}),nX={key:0,class:"fixed top-0 left-0 right-0 z-[10000] h-[3px]"},wP=ra(a.defineComponent({name:"DCodeProgressBar",__name:"DCodeProgressBar",props:{isApiLoading:{type:Boolean,default:!1},apiProgress:{default:0}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.Transition,{name:"fade"},{default:a.withCtx(()=>[e.isApiLoading?(a.openBlock(),a.createElementBlock("div",nX,[a.createElementVNode("div",{class:"h-full bg-primary-600 shadow-[0_0_15px_rgba(37,99,235,0.8)] transition-all duration-300 ease-out",style:a.normalizeStyle({width:`${e.apiProgress}%`})},null,4)])):a.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-85c68054"]]),oX={class:"grid gap-3"},rX={key:0,class:"ml-1 text-destructive"},iX={class:"flex flex-col"},sX={key:0,class:"flex items-center gap-2 text-sm text-gray-500 mb-2"},lX={class:"relative flex-shrink-0 mt-0.5"},cX=["id","name","value","checked","disabled","required","onChange"],dX=["onClick"],hX=["for"],uX={key:0,class:"ml-1 text-red-500"},pX={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-1"},vP=a.defineComponent({name:"DCodeRadio",inheritAttrs:!1,__name:"DCodeRadio",props:{modelValue:{default:void 0},label:{default:""},itemTitle:{default:"name"},itemValue:{default:"id"},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(e,{emit:t}){a.useAttrs();const{apiUrl:n}=et(),o=t,r=e,i=a.ref([]),s=a.ref(!1),c=a.ref(null),d=async()=>{var b,L;const v=((b=r.endpoint)==null?void 0:b.apiUrl)||r.apiUrl;if(v){s.value=!0,c.value=null;try{const S={page:1,perPage:100},M=((L=r.endpoint)==null?void 0:L.apiMethod)||r.apiMethod,w=await n(v,M,S);let I=w;r.dataPath?I=r.dataPath.split(".").reduce((B,A)=>B&&B[A]!=="undefined"?B[A]:void 0,w):typeof w=="object"&&!Array.isArray(w)&&w.data&&(I=w.data),Array.isArray(I)?i.value=I:(console.warn("DCodeRadio: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),c.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(S){console.error("DCodeRadio fetch error:",S),c.value="Gagal memuat data dari endpoint."}finally{s.value=!1}}};a.onMounted(()=>{var v;((v=r.endpoint)!=null&&v.apiUrl||r.apiUrl)&&d()});const h=a.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(i.value.length>0)return i.value;const v=r.itemValue||r.model||"id",b=r.itemTitle||(r.label===""?"name":r.label);return b&&r.label!==""?[{[v]:v,[b]:b}]:[]}),u=v=>{if(typeof v!="object")return v;const b=r.itemValue||r.model||"id";return v[b]},p=v=>{if(typeof v!="object")return String(v);const b=r.itemTitle||"name";return v[b]},y=a.computed(()=>r.model||`radio-group-${Math.random().toString(36).substr(2,9)}`),f=a.computed(()=>!!r.error||!!c.value),m=a.computed(()=>r.error||c.value),k=v=>v==null?r.modelValue===v:String(r.modelValue)===String(v),g=a.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),x=(v,b)=>{b.target.checked&&(o("update:modelValue",v),o("change",v))},C=v=>{!r.disabled&&!k(v)&&(o("update:modelValue",v),o("change",v))};return(v,b)=>(a.openBlock(),a.createElementBlock("div",oX,[e.label?(a.openBlock(),a.createBlock(Pa,{key:0,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",rX,"*")):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",iX,[s.value?(a.openBlock(),a.createElementBlock("div",sX,[a.createVNode(a.unref(Lt),{class:"w-4 h-4 animate-spin"}),b[0]||(b[0]=a.createTextVNode(" Sedang memuat opsi... ",-1))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["flex",e.layout?"flex-row flex-wrap gap-4":"flex-col gap-3"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(L,S)=>(a.openBlock(),a.createElementBlock("div",{key:S,class:a.normalizeClass(["flex items-start",g.value.container,e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"])},[a.createElementVNode("div",lX,[a.createElementVNode("input",{id:e.id?`${e.id}-${S}`:`${y.value}-${S}`,name:y.value,type:"radio",value:u(L),checked:k(u(L)),disabled:e.disabled,required:e.required&&S===0,onChange:M=>x(u(L),M),class:"w-5 h-5 text-blue-600 focus:ring-blue-500 border-gray-300"},null,40,cX)]),a.createElementVNode("div",{class:"flex-1 min-w-0",onClick:M=>C(u(L))},[a.createElementVNode("label",{for:e.id?`${e.id}-${S}`:`${y.value}-${S}`,class:a.normalizeClass([g.value.label,"font-medium cursor-pointer select-none text-foreground dark:text-gray-300",e.disabled?"cursor-not-allowed opacity-50":""])},[a.createTextVNode(a.toDisplayString(p(L))+" ",1),e.required&&h.value.length===1&&e.label?(a.openBlock(),a.createElementBlock("span",uX,"*")):a.createCommentVNode("",!0)],10,hX)],8,dX)],2))),128))],2),f.value&&m.value?(a.openBlock(),a.createElementBlock("div",pX,[a.createVNode(a.unref(Tt),{class:"w-4 h-4 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(m.value),1)])):a.createCommentVNode("",!0)])]))}}),yX={class:"grid gap-3"},fX={key:0,class:"ml-1 text-destructive"},mX={class:"flex flex-col"},kX={key:0,class:"flex items-center gap-2 text-sm text-gray-500 dark:text-neutral-400 mb-2"},gX=["onClick"],bX=["id","name","value","checked","disabled","required","onChange"],MX={key:1,class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20"},xX=["for"],wX={key:0,class:"ml-1 text-red-500"},vX={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-2"},CP=a.defineComponent({name:"DCodeRadioCustom",inheritAttrs:!1,__name:"DCodeRadioCustom",props:{modelValue:{default:void 0},icon:{},itemTitle:{default:"name"},itemValue:{default:"id"},label:{default:""},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(e,{emit:t}){a.useAttrs();const{apiUrl:n}=et(),o=t,r=e,i=a.ref(r.modelValue??void 0);a.watch(()=>r.modelValue,I=>{i.value=I},{immediate:!0});const s=a.ref([]),c=a.ref(!1),d=a.ref(null),h=async()=>{var z,B;const I=((z=r.endpoint)==null?void 0:z.apiUrl)||r.apiUrl;if(I){c.value=!0,d.value=null;try{const A={page:1,perPage:100},V=((B=r.endpoint)==null?void 0:B.apiMethod)||r.apiMethod,E=await n(I,V,A);let W=E;r.dataPath?W=r.dataPath.split(".").reduce((O,U)=>O&&O[U]!=="undefined"?O[U]:void 0,E):typeof E=="object"&&!Array.isArray(E)&&E.data&&(W=E.data),Array.isArray(W)?s.value=W:(console.warn("DCodeRadioCustom: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),d.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(A){console.error("DCodeRadioCustom fetch error:",A),d.value="Gagal memuat data dari endpoint."}finally{c.value=!1}}},u=a.ref(!1);let p=null;const y=()=>{typeof document<"u"&&(u.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{var I;((I=r.endpoint)!=null&&I.apiUrl||r.apiUrl)&&h(),y(),typeof document<"u"&&(p=new MutationObserver(y),p.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),p.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}),a.onBeforeUnmount(()=>{p&&p.disconnect()});const f=a.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(s.value.length>0)return s.value;const I=r.itemValue||r.model||"id",z=r.itemTitle||(r.label===""?"name":r.label);return z&&r.label!==""?[{[I]:I,[z]:z}]:[]}),m=I=>{if(typeof I!="object")return I;const z=r.itemValue||r.model||"id";return I[z]},k=I=>{if(typeof I!="object")return String(I);const z=r.itemTitle||"name";return I[z]},g=Math.random().toString(36).slice(2,7),x=a.computed(()=>r.id?`radio-custom-${r.id}`:`radio-custom-${r.model}-${g}`),C=a.computed(()=>!!r.error||!!d.value),v=a.computed(()=>r.error||d.value),b=I=>{const z=i.value;return I==null?z===I:String(z)===String(I)},L=a.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),S=a.computed(()=>r.icon&&na[r.icon]||null),M=(I,z)=>{z.target.checked&&(i.value=I,o("update:modelValue",I),o("change",I))},w=I=>{r.disabled||b(I)||(i.value=I,o("update:modelValue",I),o("change",I))};return(I,z)=>(a.openBlock(),a.createElementBlock("div",yX,[e.label?(a.openBlock(),a.createBlock(Pa,{key:0,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",fX,"*")):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",mX,[c.value?(a.openBlock(),a.createElementBlock("div",kX,[a.createVNode(a.unref(Lt),{class:"w-4 h-4 animate-spin"}),z[0]||(z[0]=a.createTextVNode(" Sedang memuat opsi... ",-1))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["grid",e.layout?"grid-cols-2 sm:grid-cols-3":"grid-cols-1","gap-3"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(B,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(["relative flex flex-col items-center justify-center gap-2 p-4 rounded-xl border-2 transition-all duration-200",b(m(B))?u.value?"border-primary-500 bg-primary-500/10 shadow-none":"border-primary-500 bg-primary-50 shadow-md shadow-primary-100":u.value?"border-neutral-700 bg-neutral-800 hover:border-neutral-600":"border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm",e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),onClick:V=>!e.disabled&&w(m(B))},[a.createElementVNode("input",{id:e.id?`${e.id}-${A}`:`${x.value}-${A}`,name:x.value,type:"radio",value:m(B),checked:b(m(B)),disabled:e.disabled,required:e.required&&A===0,onChange:V=>M(m(B),V),class:"sr-only",tabindex:"-1"},null,40,bX),a.createElementVNode("div",{class:a.normalizeClass(["w-10 h-10 rounded-full flex items-center justify-center transition-all duration-200",b(m(B))?u.value?"bg-primary-500/25 text-primary-400":"bg-primary-100 text-primary-600":u.value?"bg-neutral-700 text-neutral-500":"bg-gray-100 text-gray-400"])},[S.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(S.value),{key:0,class:"w-6 h-6"})):(a.openBlock(),a.createElementBlock("svg",MX,[...z[1]||(z[1]=[a.createElementVNode("circle",{cx:"10",cy:"10",r:"6"},null,-1)])]))],2),a.createElementVNode("label",{for:e.id?`${e.id}-${A}`:`${x.value}-${A}`,class:a.normalizeClass([L.value.label,"font-medium text-center leading-tight select-none transition-colors duration-200",b(m(B))?u.value?"text-primary-400":"text-primary-700":u.value?"text-neutral-300":"text-gray-700",e.disabled?"cursor-not-allowed":"cursor-pointer"])},[a.createTextVNode(a.toDisplayString(k(B))+" ",1),e.required&&f.value.length===1&&e.label?(a.openBlock(),a.createElementBlock("span",wX,"*")):a.createCommentVNode("",!0)],10,xX)],10,gX))),128))],2),C.value&&v.value?(a.openBlock(),a.createElementBlock("div",vX,[a.createVNode(a.unref(Tt),{class:"w-4 h-4 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(v.value),1)])):a.createCommentVNode("",!0)])]))}}),CX={key:0,class:"ml-1 text-destructive"},LX={class:"relative w-full"},SX={key:0,class:"mb-2 flex items-center justify-between"},IX={class:"text-sm text-muted-foreground"},_X={class:"text-sm font-medium text-foreground"},AX={class:"text-sm text-muted-foreground"},BX={class:"relative"},VX=["id","value","min","max","step","disabled","placeholder"],zX={key:1,class:"relative mt-2"},PX={class:"text-xs text-muted-foreground mt-1"},qX={key:1,class:"flex items-center gap-1 text-sm text-destructive"},DX={name:"DCodeSlider"},q_=a.defineComponent({...DX,name:"DCodeSlider",inheritAttrs:!1,props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},label:{default:""},placeholder:{default:""},required:{type:Boolean,default:!1},error:{default:null},showValue:{type:Boolean,default:!0},valuePrefix:{default:""},valueSuffix:{default:""},marks:{default:()=>[]},color:{default:"blue"},size:{default:"md"}},emits:["update:modelValue","change","input"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.ref(),s=a.ref(!1),c=a.computed(()=>!!r.error),d=a.computed(()=>`slider-${Math.random().toString(36).substr(2,9)}`),h=a.computed(()=>(r.label||n.label)??void 0),u=a.computed(()=>!0),p=a.computed(()=>{const L={sm:"h-2",md:"h-2.5",lg:"h-3"},S={blue:"accent-blue-500",green:"accent-green-500",red:"accent-red-500",yellow:"accent-yellow-500",purple:"accent-purple-500",gray:"accent-gray-500"};return["w-full appearance-none bg-transparent rounded-lg outline-none transition-all cursor-pointer relative z-10","disabled:opacity-50 disabled:cursor-not-allowed",L[r.size],S[r.color]||S.blue,c.value?"accent-red-500":"",n.class].filter(Boolean).join(" ")}),y=a.computed(()=>["appearance-none bg-white border-2 border-current rounded-full cursor-pointer transition-all","hover:scale-110 focus:scale-110","shadow-md hover:shadow-lg focus:shadow-lg","focus:outline-none focus:ring-2 focus:ring-offset-2",{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r.size],r.color==="blue"?"focus:ring-blue-500":r.color==="green"?"focus:ring-green-500":r.color==="red"?"focus:ring-red-500":r.color==="yellow"?"focus:ring-yellow-500":r.color==="purple"?"focus:ring-purple-500":"focus:ring-gray-500"].join(" ")),f=a.computed(()=>`${r.valuePrefix}${r.modelValue}${r.valueSuffix}`),m=a.computed(()=>{const L=r.max-r.min;return(r.modelValue-r.min)/L*100}),k=L=>{const S=L.target,M=parseFloat(S.value);o("update:modelValue",M),o("input",M)},g=L=>{const S=L.target,M=parseFloat(S.value);o("change",M)},x=()=>{s.value=!0},C=()=>{s.value=!1},v=L=>{const S=r.max-r.min;return(L-r.min)/S*100},b=a.computed(()=>{const L={sm:16,md:20,lg:24};return`
|
|
8567
|
+
`.trim();let r=document.getElementById(t);r||(r=document.createElement("style"),r.id=t,document.head.appendChild(r)),r.textContent=o}function uG(e,t=mP){a.watch(e,n=>hG(n,t),{immediate:!0})}const pG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},yG={key:0,class:"ml-1 text-destructive"},fG=["disabled","onClick"],mG={class:"flex-shrink-0 px-2 text-sm text-muted-foreground select-none whitespace-nowrap"},kG=["id","value","placeholder","disabled","onClick","onFocus","onBlur","onInput","onKeydown","onKeypress","onPaste"],gG={class:"h-full p-2 flex flex-col gap-3 w-32"},bG={class:"flex items-center justify-end gap-2 w-full p-2"},MG={key:1,class:"text-xs text-destructive"},x_=a.defineComponent({name:"DCodeDatePicker",inheritAttrs:!1,__name:"DCodeDatePicker",props:{modelValue:{},range:{type:Boolean,default:!1},autoRangeDays:{default:null},disablePast:{type:Boolean,default:!1},maxDaysAhead:{default:null},placeholder:{default:"Pilih tanggal"},label:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},displayFormat:{default:"dd/MM/yyyy"},modelType:{default:"yyyy-MM-dd"},locale:{default:"en"},placement:{default:"bottom-start"},prependInner:{default:void 0},error:{default:null},selectLabel:{default:"Select"},cancelLabel:{default:"Cancel"},tone:{default:"primary"},skeleton:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=e,r=t,i=Math.random().toString(36).slice(2,7),s=a.computed(()=>`dcode-datepicker-${n.id||o.label||"date-picker"}-${i}`),c=a.computed(()=>{const V=n.required,T=n["aria-required"];return V===""||V===!0||V==="true"||T==="true"||T===!0}),d=a.computed(()=>!!o.error),h=a.computed({get:()=>o.modelValue,set:V=>{r("update:modelValue",V),r("change",V)}}),u=a.computed(()=>o.locale==="en"?sP:dG),p=a.computed(()=>o.range?2:!1),y=a.computed(()=>{if(!o.range)return!1;const V={partialRange:!1};return o.autoRangeDays&&o.autoRangeDays>0&&(V.maxRange=o.autoRangeDays,V.autoRange=o.autoRangeDays),V}),f=V=>{const T=new Date(V);return T.setHours(0,0,0,0),T},m=V=>{const T=new Date(V);return T.setHours(23,59,59,999),T},g=(V,T)=>{const W=new Date(V);return W.setDate(W.getDate()+T),W},k=a.computed(()=>{if(o.disablePast)return f(new Date)}),M=a.computed(()=>{if(o.maxDaysAhead&&o.maxDaysAhead>0)return m(g(new Date,o.maxDaysAhead))}),w=a.ref(null),x=a.ref(null),b=V=>{x.value={month:V.month,year:V.year}},C=a.ref(!1);let S=null;a.onMounted(()=>{const V=document.documentElement,T=()=>C.value=V.classList.contains("dark");T(),S=new MutationObserver(T),S.observe(V,{attributes:!0,attributeFilter:["class"]})}),a.onBeforeUnmount(()=>{S==null||S.disconnect(),S=null}),uG(a.toRef(o,"tone"));const L=V=>{const T=new Date(V),W=T.getDay(),H=T.getDate()-W+(W===0?-6:1);return T.setDate(H),f(T)},v=V=>{const T=L(V);return T.setDate(T.getDate()+6),m(T)},I=V=>{const T=new Date(V);return T.setDate(1),f(T)},q=V=>{const T=new Date(V);return T.setMonth(T.getMonth()+1),T.setDate(0),m(T)},B=a.computed(()=>{if(!o.range)return[];const V=new Date,T=f(V),W=L(V),H=v(V),O=I(V),U=q(V),J=(D,F)=>{let N=D;o.disablePast&&N<T&&(N=T);let Y=F;if(o.autoRangeDays&&o.autoRangeDays>0){const Q=m(g(N,o.autoRangeDays-1));Y>Q&&(Y=Q)}return Y<N&&(Y=m(new Date(N))),[N,Y]};return[{label:o.locale==="id"?"Minggu Ini":"This Week",range:J(W,H)},{label:o.locale==="id"?"Bulan Ini":"This Month",range:J(O,U)}]}),A=async V=>{var F,N;const T=o.modelType||"yyyy-MM-dd";if(V.length===0){h.value=null;return}if(V.length<2)return;const W=yP(V[0],T),H=yP(V[1],T);h.value=[W,H],await a.nextTick();const O=V[0],U=O.getMonth(),J=O.getFullYear();x.value&&x.value.month===U&&x.value.year===J||(F=w.value)==null||F.setMonthYear({month:U,year:J}),(N=w.value)==null||N.openMenu()};return(V,T)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class])},[e.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.label?(a.openBlock(),a.createElementBlock("div",pG)):a.createCommentVNode("",!0),T[2]||(T[2]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.label?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:s.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),c.value?(a.openBlock(),a.createElementBlock("span",yG,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createVNode(a.unref(it.VueDatePicker),{ref_key:"dpRef",ref:w,modelValue:h.value,"onUpdate:modelValue":T[1]||(T[1]=W=>h.value=W),dark:C.value,range:y.value,"multi-calendars":p.value,disabled:e.disabled,clearable:!1,"text-input":"","enable-time-picker":!1,"time-config":{enableTimePicker:!1},"auto-apply":!1,"action-row":{showPreview:!0,showNow:!1},locale:u.value,"model-type":e.modelType,formats:{input:e.displayFormat},"min-date":k.value,"max-date":M.value,"preset-ranges":B.value,floating:{placement:e.placement,offset:8,arrow:!1,flip:!1,shift:!0},teleport:!0,"menu-class-name":"dcode-datepicker-menu","calendar-class-name":"dcode-datepicker-calendar",onUpdateMonthYear:b},a.createSlots({"dp-input":a.withCtx(({value:W,onInput:H,onEnter:O,onTab:U,onBlur:J,onFocus:D,onKeypress:F,onPaste:N,toggleMenu:Y})=>[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center w-full h-10 rounded-lg border bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 overflow-hidden shadow-none",[d.value?"border-destructive":"",e.disabled?"opacity-50 cursor-not-allowed":""]])},[a.createElementVNode("button",{type:"button",tabindex:"-1",disabled:e.disabled,class:"flex-shrink-0 flex items-center justify-center w-10 h-full text-muted-foreground hover:text-foreground transition-colors focus:outline-none",onClick:Q=>Y()},[a.createVNode(a.unref(Js),{class:"w-4 h-4 pointer-events-none"})],8,fG),T[4]||(T[4]=a.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1)),e.prependInner?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("span",mG,a.toDisplayString(e.prependInner),1),T[3]||(T[3]=a.createElementVNode("span",{class:"w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0"},null,-1))],64)):a.createCommentVNode("",!0),a.createElementVNode("input",{id:s.value,value:W,placeholder:e.placeholder,disabled:e.disabled,autocomplete:"off",readonly:"",class:a.normalizeClass(["flex-1 min-w-0 px-3 h-full bg-transparent text-sm text-foreground dark:text-gray-300 placeholder:text-muted-foreground outline-none",e.disabled?"cursor-not-allowed":"cursor-pointer"]),onClick:Q=>Y(),onFocus:Q=>D(),onBlur:Q=>J(),onInput:Q=>H(Q),onKeydown:[a.withKeys(Q=>O(Q),["enter"]),a.withKeys(Q=>U(Q),["tab"])],onKeypress:Q=>F(Q),onPaste:Q=>N()},null,42,kG)],2)]),"action-buttons":a.withCtx(({selectDate:W,selectionDisabled:H})=>[a.createElementVNode("div",bG,[a.createVNode(a.unref(je),{type:"button",variant:"outline",onClick:T[0]||(T[0]=O=>{var U;return(U=w.value)==null?void 0:U.closeMenu()})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.cancelLabel),1)]),_:1}),a.createVNode(a.unref(je),{type:"button",variant:"default",disabled:H,onClick:O=>W()},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.selectLabel),1)]),_:1},8,["disabled","onClick"])])]),_:2},[e.range?{name:"left-sidebar",fn:a.withCtx(()=>[a.createElementVNode("div",gG,[B.value.length?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(B.value,W=>(a.openBlock(),a.createBlock(a.unref(je),{key:W.label,type:"button",variant:"default",class:"w-full",onClick:H=>A(W.range)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(W.label),1)]),_:2},1032,["onClick"]))),128)):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["modelValue","dark","range","multi-calendars","disabled","locale","model-type","formats","min-date","max-date","preset-ranges","floating"]),d.value?(a.openBlock(),a.createElementBlock("p",MG,a.toDisplayString(o.error),1)):a.createCommentVNode("",!0)],64))],2))}}),xG=a.defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(hB),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),wG=a.defineComponent({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(CB),null,{default:a.withCtx(()=>[a.createVNode(a.unref(vB),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),a.createVNode(a.unref(xB),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default"),a.createVNode(a.unref(uB),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:a.withCtx(()=>[a.createVNode(a.unref(pt),{class:"w-4 h-4"}),c[0]||(c[0]=a.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),vG=a.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(wB),a.mergeProps(a.unref(o),{class:a.unref(Me)("text-sm text-muted-foreground",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),CG=a.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(LB),a.mergeProps(a.unref(o),{class:a.unref(Me)("text-lg font-medium leading-none tracking-tight",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),LG={class:"flex items-center gap-3"},SG={class:"flex justify-end gap-3"},CS=a.defineComponent({name:"DCodeDialog",inheritAttrs:!1,__name:"DCodeDialog",props:{modelValue:{type:Boolean,default:!1},title:{default:""},icon:{default:""},maxWidth:{default:500},persistent:{type:Boolean,default:!0},contentClass:{default:"p-5"},contentStyle:{default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,r=a.useAttrs(),i=a.computed(()=>{const{style:h,...u}=r;return u}),s=a.computed(()=>({maxWidth:typeof n.maxWidth=="number"?`${n.maxWidth}px`:n.maxWidth,width:"100%"})),c=a.computed(()=>n.icon?na[n.icon]??null:null),d=h=>{o("update:modelValue",h)};return(h,u)=>(a.openBlock(),a.createBlock(a.unref(xG),{open:e.modelValue,"onUpdate:open":d},{default:a.withCtx(()=>[a.createVNode(a.unref(wG),a.mergeProps(i.value,{style:s.value,class:"p-0 overflow-hidden rounded-xl",onInteractOutside:u[0]||(u[0]=p=>e.persistent?p.preventDefault():null),onEscapeKeyDown:u[1]||(u[1]=p=>e.persistent?p.preventDefault():null)}),{default:a.withCtx(()=>[a.createVNode(PI,{padding:e.contentClass,border:"",shadow:"",class:"w-full !rounded-xl !border-0",level:1},a.createSlots({header:a.withCtx(()=>[a.createElementVNode("div",LG,[c.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{key:0,class:"h-5 w-5"})):a.createCommentVNode("",!0),a.createVNode(a.unref(CG),{class:"text-base font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),a.createVNode(a.unref(vG),{class:"hidden"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title||"Dialog Content"),1)]),_:1})])]),actions:a.withCtx(()=>[a.renderSlot(h.$slots,"header-append")]),default:a.withCtx(()=>[a.createElementVNode("div",{style:a.normalizeStyle(e.contentStyle)},[a.renderSlot(h.$slots,"default")],4)]),_:2},[h.$slots.actions?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",SG,[a.renderSlot(h.$slots,"actions")])]),key:"0"}:void 0]),1032,["padding"])]),_:3},16,["style"])]),_:3},8,["open"]))}}),kP=a.defineComponent({name:"DCodeDialogCloseBtn",__name:"DCodeDialogCloseBtn",props:{icon:{default:"X"},iconSize:{default:22}},setup(e){const t=e,n=a.computed(()=>na[t.icon]??pt);return(o,r)=>(a.openBlock(),a.createBlock(a.unref(je),{type:"button",variant:"secondary",size:"icon",class:"rounded-full shadow-sm"},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{size:Number(e.iconSize)},null,8,["size"]))]),_:1}))}}),IG=a.defineComponent({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)(a.unref(AG)({variant:e.variant}),t.class)),role:"alert"},[a.renderSlot(n.$slots,"default")],2))}}),_G=a.defineComponent({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("text-sm [&_p]:leading-relaxed",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),AG=xl("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ea=a.defineComponent({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)(a.unref(BG)({variant:e.variant}),t.class))},[a.renderSlot(n.$slots,"default")],2))}}),BG=xl("inline-flex gap-1 items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),w_=a.defineComponent({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),v_=a.defineComponent({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("p-6 pt-0",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),C_=a.defineComponent({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col gap-y-1.5 p-6",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),L_=a.defineComponent({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("h3",{class:a.normalizeClass(a.unref(Me)("font-medium leading-none tracking-tight",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),VG={class:"h-full w-full p-6 flex flex-col items-center justify-center text-center gap-2"},zG={class:"flex flex-wrap items-center justify-center gap-2"},PG=["accept","multiple"],LS=ra(a.defineComponent({name:"DCodeDropzone",__name:"DCodeDropzone",props:{label:{default:"Upload File"},hint:{default:"Drag & drop file di sini atau klik area ini"},accept:{default:"*/*"},maxSizeMb:{default:2},mode:{default:"single"},disabled:{type:Boolean,default:!1},showSelected:{type:Boolean,default:!0},error:{default:null}},emits:["picked","picked:multiple","error"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null),i=a.ref(!1),s=a.ref(null),c=a.ref(null),d=a.ref(null);a.computed(()=>n.accept||"file/*");const h=a.computed(()=>n.error??s.value);function u(){var L;n.disabled||(L=r.value)==null||L.click()}function p(L){const v=L/1024,I=v/1024;return I>=1?`${I.toFixed(2)} MB`:v>=1?`${v.toFixed(1)} KB`:`${L} B`}function y(L){var I;if(!L)return"File tidak valid";if((I=n.accept)!=null&&I.includes("image/")&&!L.type.startsWith("image/"))return"Hanya file gambar yang diizinkan";const v=(n.maxSizeMb??2)*1024*1024;return L.size>v?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null}function f(L){c.value=L.name,d.value=L.size}function m(L){if(s.value=null,!L.length)return;if(n.mode==="single"){const I=L[0],q=y(I);if(q){s.value=q,o("error",q);return}n.showSelected&&f(I),o("picked",I);return}const v=[];for(const I of L){const q=y(I);if(q){s.value=q,o("error",q);return}v.push(I)}v.length&&(n.showSelected&&f(v[0]),o("picked:multiple",v))}function g(L){const v=L.target,I=Array.from(v.files??[]);m(I),v.value=""}function k(){n.disabled||(i.value=!0)}function M(){n.disabled||(i.value=!0)}function w(){i.value=!1}function x(L){var q,B;if(n.disabled)return;i.value=!1;const v=Array.from(((q=L.dataTransfer)==null?void 0:q.files)??[]),I=(B=n.accept)!=null&&B.includes("image/")?v.filter(A=>A.type.startsWith("image/")):v;m(I)}const b=a.computed(()=>(n.accept||"file/*").split(",").map(L=>L.trim()).filter(Boolean).map(L=>L==="image/*"?"IMAGE":L.replace(/^image\//,"").replace(/^\./,"")).join(", "));a.computed(()=>`${n.maxSizeMb??0}MB`);const C=a.ref(!1),S=a.computed(()=>{if(n.disabled||!C.value)return{};const L=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark");return{borderColor:L?"hsl(var(--primary) / 0.5)":"hsl(var(--primary) / 0.6)",backgroundColor:L?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"}});return(L,v)=>(a.openBlock(),a.createBlock(a.unref(w_),{class:a.normalizeClass([e.disabled?"opacity-60":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(a.unref(C_),{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(a.unref(L_),{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label),1)]),_:1})]),_:1}),a.createVNode(a.unref(v_),{class:"pt-2"},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(["d-dropzone-area flex justify-center items-center rounded-xl border-2 border-dashed transition cursor-pointer select-none",[i.value?"is-dragging border-primary bg-primary/10 dark:bg-primary/20 -translate-y-[1px]":"border-border dark:border-neutral-700 bg-muted/30 dark:bg-neutral-800/50",e.disabled?"is-disabled":""]]),style:a.normalizeStyle([{minHeight:"190px"},S.value]),onClick:u,onDragenter:a.withModifiers(k,["prevent"]),onDragover:a.withModifiers(M,["prevent"]),onDragleave:a.withModifiers(w,["prevent"]),onDrop:a.withModifiers(x,["prevent"]),onMouseenter:v[0]||(v[0]=I=>C.value=!0),onMouseleave:v[1]||(v[1]=I=>C.value=!1)},[a.createElementVNode("div",VG,[v[2]||(v[2]=a.createElementVNode("div",{class:"text-sm font-medium dark:text-neutral-200"},"Drag & drop file di sini",-1)),v[3]||(v[3]=a.createElementVNode("div",{class:"text-xs text-muted-foreground dark:text-neutral-400"},"atau klik area ini untuk memilih file",-1)),a.createElementVNode("div",zG,[a.createVNode(a.unref(Ea),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(" Allowed: "+a.toDisplayString(b.value),1)]),_:1}),a.createVNode(a.unref(Ea),{variant:"secondary",class:"text-[11px] dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(" Max: "+a.toDisplayString(n.maxSizeMb)+"MB ",1)]),_:1})]),e.showSelected&&c.value?(a.openBlock(),a.createBlock(a.unref(Ea),{key:0,variant:"secondary",class:"mt-2 dark:bg-neutral-700 dark:text-neutral-300"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.value)+" • "+a.toDisplayString(d.value?p(d.value):""),1)]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("input",{ref_key:"fileInputEl",ref:r,type:"file",class:"hidden",accept:e.accept,multiple:e.mode==="multiple",onChange:g},null,40,PG)],38),h.value?(a.openBlock(),a.createBlock(a.unref(IG),{key:0,variant:"destructive",class:"mt-3"},{default:a.withCtx(()=>[a.createVNode(a.unref(_G),{class:"text-sm"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),[["__scopeId","data-v-02ca61c0"]]),qG={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},DG=["src"],EG={key:1,class:"h-full w-full flex flex-col items-center justify-center text-muted-foreground dark:text-neutral-400 gap-2 p-4 text-center"},TG={class:"space-y-0.5"},HG={class:"text-sm font-medium truncate max-w-[180px] dark:text-neutral-200"},OG={class:"text-xs opacity-70"},jG=["disabled"],FG={key:1},NG=["disabled"],RG={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},$G={class:"flex gap-2"},UG={class:"font-medium truncate"},WG={class:"flex gap-2"},GG={class:"font-medium"},KG={class:"flex gap-2"},XG={class:"font-medium truncate"},S_=ra(a.defineComponent({name:"DCodeFileResult",__name:"DCodeFileResult",props:{file:{},title:{default:"File Terpilih"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},forceFileIcon:{type:Boolean,default:!1}},emits:["edit","replace","remove"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null),i=a.computed(()=>n.forceFileIcon||!n.file?!1:(n.file.type||"").startsWith("image/"));a.watch(()=>n.file,f=>{r.value&&URL.revokeObjectURL(r.value),r.value=f?URL.createObjectURL(f):null},{immediate:!0}),a.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),u&&u.disconnect()});function s(f){const m=f/1024,g=m/1024;return g>=1?`${g.toFixed(2)} MB`:m>=1?`${m.toFixed(1)} KB`:`${f} B`}const c=a.computed(()=>n.file?{name:n.file.name,size:s(n.file.size),type:n.file.type||"unknown"}:null),d=a.ref(!1),h=a.ref(!1);let u=null;const p=()=>{typeof document<"u"&&(h.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{p(),typeof document<"u"&&(u=new MutationObserver(p),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),u.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const y=a.computed(()=>n.disabled||!d.value?{}:{borderColor:h.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:h.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(f,m)=>e.file?(a.openBlock(),a.createBlock(w_,{key:0,class:a.normalizeClass([e.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(C_,{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(L_,{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),e.description?(a.openBlock(),a.createElementBlock("div",qG,a.toDisplayString(e.description),1)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(v_,{class:"pt-2"},{default:a.withCtx(()=>{var g,k,M,w,x;return[a.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:a.normalizeStyle([{height:`${e.previewHeight}px`},y.value]),onMouseenter:m[2]||(m[2]=b=>d.value=!0),onMouseleave:m[3]||(m[3]=b=>d.value=!1)},[i.value&&r.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,DG)):(a.openBlock(),a.createElementBlock("div",EG,[a.createVNode(a.unref(vs),{class:"w-10 h-10"}),a.createElementVNode("div",TG,[a.createElementVNode("p",HG,a.toDisplayString((g=c.value)==null?void 0:g.name),1),a.createElementVNode("p",OG,a.toDisplayString((k=c.value)==null?void 0:k.size),1)])])),a.createElementVNode("div",{class:"d-action-buttons",style:a.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:d.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:d.value?"auto":"none"})},[e.showEdit&&i.value?(a.openBlock(),a.createElementBlock("button",{key:0,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:m[0]||(m[0]=b=>o("edit"))},[a.createVNode(a.unref(mr),{style:{width:"16px",height:"16px"}})],12,jG)):(a.openBlock(),a.createElementBlock("div",FG)),e.showRemove?(a.openBlock(),a.createElementBlock("button",{key:2,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s"}),onClick:m[1]||(m[1]=b=>o("remove"))},[a.createVNode(a.unref(Ti),{style:{width:"16px",height:"16px"}})],12,NG)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",{class:"d-metadata-overlay",style:a.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:d.value?1:0,transform:d.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:h.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:h.value?"#e5e5e5":"#171717"})},[a.createElementVNode("div",RG,[a.createElementVNode("div",$G,[m[4]||(m[4]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),a.createElementVNode("span",UG,a.toDisplayString((M=c.value)==null?void 0:M.name),1)]),a.createElementVNode("div",WG,[m[5]||(m[5]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),a.createElementVNode("span",GG,a.toDisplayString((w=c.value)==null?void 0:w.size),1)]),a.createElementVNode("div",KG,[m[6]||(m[6]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),a.createElementVNode("span",XG,a.toDisplayString((x=c.value)==null?void 0:x.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-4f5c1d5e"]]);function I_(){const e=i=>{var d;const s={type:i.type||"info",title:i.title,message:i.message,duration:i.duration??3e3};typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:toast",{detail:s,bubbles:!0,composed:!0})),(s.type==="error"?console.error:s.type==="warning"?console.warn:console.log)(`[Toast][${(d=s.type)==null?void 0:d.toUpperCase()}]`,s.title||"",s.message)};return{show:e,success:(i,s)=>e({type:"success",message:i,title:s}),error:(i,s)=>e({type:"error",message:i,title:s}),warning:(i,s)=>e({type:"warning",message:i,title:s}),info:(i,s)=>e({type:"info",message:i,title:s})}}const ZG={class:"space-y-3"},YG={key:1,class:"flex items-center justify-center p-6 border rounded-lg bg-muted/30 dark:bg-neutral-800/20 dark:border-neutral-800"},gP=a.defineComponent({name:"DCodeFileField",inheritAttrs:!1,__name:"DCodeFileField",props:{modelValue:{default:null},label:{default:"Upload File"},hint:{},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:void 0},allowedTypes:{default:null},accept:{default:"*/*"},minSizeMb:{default:null},maxSizeMb:{default:1},endpoint:{},uploadFn:{}},emits:["update:modelValue","error","uploaded"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:S=>o("update:modelValue",S)}),i=a.ref(null),s=a.ref(null);function c(S){s.value=S,o("error",S)}function d(){s.value=null}const h=a.computed(()=>{const S=(n.allowedTypes??"").trim();return S?S.split(/[,\s;]+/g).map(v=>v.trim().toLowerCase()).filter(Boolean).map(v=>v.includes("/")||v.startsWith(".")?v:`.${v}`):[]});function u(S){const L=S.lastIndexOf(".");return L>=0?S.slice(L).toLowerCase():""}const p=a.computed(()=>{if(h.value.length){const S=h.value.filter(v=>v.startsWith("."));return[...h.value.filter(v=>v.includes("/")),...S].join(",")}return n.accept}),y=a.computed(()=>h.value.length?h.value.join(", "):n.accept||"Semua File");function f(S){if(h.value.length){const L=(S.type||"").toLowerCase(),v=u(S.name);return h.value.some(I=>I.includes("/")?L===I:I.startsWith(".")?v===I:v===`.${I}`)}if(n.accept){if(n.accept==="*/*")return!0;const L=n.accept.split(",").map(q=>q.trim().toLowerCase()),v=(S.type||"").toLowerCase(),I=u(S.name);return L.some(q=>{if(q.endsWith("/*")){const B=q.slice(0,-2);return v.startsWith(B)}return q.startsWith(".")?I===q:v===q})}return!0}function m(S){return S*1024*1024}async function g(S){return S?f(S)?n.minSizeMb!=null&&S.size<m(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&S.size>m(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:null:`File Type not allowed. Allowed: ${y.value}`:"File tidak valid"}const{DCodeApi:k}=et(),M=I_(),w=a.ref(!1);async function x(S){var L;if(n.uploadFn){try{w.value=!0;const v=await n.uploadFn(S);r.value=S,o("uploaded",v)}catch(v){console.error("Upload Error",v),M.error("Upload Failed",(v==null?void 0:v.message)||"Unknown error"),c((v==null?void 0:v.message)||"Upload Failed")}finally{w.value=!1}return}if(!((L=n.endpoint)!=null&&L.apiUrl)){r.value=S;return}if(typeof k!="function"){c("useApi() must expose DCodeApi()");return}try{w.value=!0;const v=new FormData;v.append("doc",S);const I=(n.endpoint.apiMethod||"POST").toUpperCase(),q=n.endpoint.apiUrl,B=await k("","",v,{_url:q,_method:I,withCredentials:!0,transformRequest:[(V,T)=>(T&&(delete T["Content-Type"],delete T["content-type"]),V)]}),A=(B==null?void 0:B.data)??B;r.value=S,o("uploaded",A)}catch(v){console.error("Upload Error",v),M.error("Upload Failed",(v==null?void 0:v.message)||"Unknown error"),c((v==null?void 0:v.message)||"Upload Failed")}finally{w.value=!1}}async function b(S){var v;if(n.disabled)return;d();const L=await g(S);if(L){c(L);return}i.value=S,n.uploadFn||(v=n.endpoint)!=null&&v.apiUrl?await x(S):r.value=S}function C(){d(),r.value=null,i.value=null}return a.watch(()=>n.modelValue,S=>{S&&!i.value&&(i.value=S),S||(i.value=null)},{immediate:!0}),(S,L)=>(a.openBlock(),a.createElementBlock("div",ZG,[r.value?w.value?(a.openBlock(),a.createElementBlock("div",YG,[...L[1]||(L[1]=[a.createElementVNode("span",{class:"text-sm text-muted-foreground dark:text-neutral-400 animate-pulse"},"Uploading...",-1)])])):(a.openBlock(),a.createBlock(S_,{key:2,file:r.value,title:e.label,description:e.hint,disabled:e.disabled,"show-edit":!1,"show-replace":!1,"show-remove":!0,"force-file-icon":!0,"preview-height":e.previewHeight,"preview-width":e.previewWidth,onRemove:C},null,8,["file","title","description","disabled","preview-height","preview-width"])):(a.openBlock(),a.createBlock(LS,{key:0,label:e.label,hint:e.hint,accept:p.value,maxSizeMb:e.maxSizeMb,disabled:e.disabled||w.value,onPicked:b,error:s.value,onError:L[0]||(L[0]=v=>c(v))},null,8,["label","hint","accept","maxSizeMb","disabled","error"]))]))}}),QG=["for"],JG={key:0,class:"!ml-1 !text-destructive"},eK={class:"relative w-full block box-border"},tK={key:0,class:"absolute inset-y-0 left-3 flex items-center text-muted-foreground pointer-events-none z-10"},aK=["id","readonly","disabled","placeholder"],nK={class:"absolute inset-y-0 right-4 flex items-center z-10"},oK={key:1,class:"absolute z-50 mt-1 w-full rounded-xl border bg-white dark:bg-neutral-900 shadow-lg box-border"},rK={key:0,class:"flex items-center justify-center py-10 text-muted-foreground gap-2"},iK={key:1,class:"text-sm text-muted-foreground text-center"},sK=["onClick","title"],lK={class:"flex flex-col items-center justify-between gap-2 py-1 min-h-[72px]"},cK={class:"flex items-center justify-center flex-1"},dK={class:"text-[10px] leading-tight text-muted-foreground truncate w-full text-center block flex-shrink-0"},hK={key:3,class:"pt-2 text-[11px] text-muted-foreground text-center"},bP=a.defineComponent({name:"DCodeIconDropdown",__name:"DCodeIconDropdown",props:{modelValue:{},label:{},placeholder:{default:"Pilih icon…"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},columns:{default:4},maxHeight:{default:"335px"},iconSize:{default:20},pageSize:{default:120}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=e,o=t,r=na,i=a.ref(null),s=a.ref(null),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`dcode-icon-dropdown-${n.label||"icon-dropdown"}-${c}`),h=a.ref(!1),u=a.computed(()=>(n.modelValue??"").trim()||""),p=a.ref(""),y=a.ref(!1),f=a.ref(!1),m=a.ref(!1),g=a.shallowRef([]),k=a.ref(n.pageSize),M=new Set(["default","createLucideIcon","LucideIcon","Icon","icons","toKebabCase","camelCase","children","IconNode"]),w=async()=>{if(f.value||m.value)return;m.value=!0,await new Promise(F=>setTimeout(F,0));const D=Object.keys(r).filter(F=>!M.has(F)).filter(F=>/^[A-Z]/.test(F)).filter(F=>typeof r[F]=="function"||typeof r[F]=="object"&&r[F]).sort((F,N)=>F.localeCompare(N));g.value=D,f.value=!0,m.value=!1},x=a.computed(()=>!f.value||!u.value||!g.value.includes(u.value)?null:r[u.value]),b=a.ref(u.value),C=a.computed(()=>!!u.value&&!h.value),S=a.computed(()=>{if(!f.value)return[];const D=(p.value??"").trim().toLowerCase();return D?g.value.filter(F=>F.toLowerCase().includes(D)):g.value}),L=a.computed(()=>S.value.slice(0,k.value)),v=a.computed(()=>{const D=n.columns;return D<=2?"grid-cols-2":D===3?"grid-cols-3":D===4?"grid-cols-4":D===5?"grid-cols-5":D>=8?"grid-cols-8":"grid-cols-6"});a.computed(()=>n.clearable?"!pr-10":"!pr-3"),a.computed(()=>x.value&&!h.value?"!pl-12":"!pl-3");const I=async()=>{var D;await a.nextTick(),(D=s.value)==null||D.focus()},q=async D=>{if(n.disabled)return;const F=D!==!1;if(y.value){y.value=!1;return}h.value=!0,await w(),F&&(p.value="",b.value=""),k.value=n.pageSize,await I()},B=()=>{h.value=!1,p.value="",b.value=u.value,k.value=n.pageSize},A=async()=>{n.disabled||(h.value?B():await q())};let V=null;const T=async D=>{if(n.disabled)return;o("update:modelValue",null),h.value||await q(!1),V&&clearTimeout(V);const F=b.value;V=setTimeout(()=>{p.value=F},300)},W=D=>{n.disabled||(o("update:modelValue",D),B(),queueMicrotask(()=>{var F;return(F=s.value)==null?void 0:F.blur()}))},H=()=>{n.disabled||(o("update:modelValue",null),o("clear"),y.value=!0,B(),queueMicrotask(()=>{var D;return(D=s.value)==null?void 0:D.focus()}))},O=D=>{if(D.key==="Escape"){D.preventDefault(),B();return}if(D.key==="Enter"&&h.value){const F=S.value[0];F&&(D.preventDefault(),W(F))}},U=D=>{if(!h.value)return;const F=D.target;i.value&&!i.value.contains(F)&&B()},J=D=>{const F=D.target;F.scrollTop+F.clientHeight>=F.scrollHeight-24&&k.value<S.value.length&&(k.value=Math.min(k.value+n.pageSize,S.value.length))};return a.onMounted(()=>{document.addEventListener("mousedown",U),queueMicrotask(()=>{var D;s.value=((D=i.value)==null?void 0:D.querySelector("input"))??null}),u.value&&w()}),a.onBeforeUnmount(()=>{document.removeEventListener("mousedown",U),V&&clearTimeout(V)}),a.watch(u,D=>{h.value||(b.value=D)}),a.watch(()=>p.value,()=>{k.value=n.pageSize}),(D,F)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootEl",ref:i,class:"!w-full !block !box-border"},[n.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:d.value,class:"!text-sm !font-medium !mb-1 !block"},[a.createTextVNode(a.toDisplayString(n.label)+" ",1),n.required?(a.openBlock(),a.createElementBlock("span",JG,"*")):a.createCommentVNode("",!0)],8,QG)):a.createCommentVNode("",!0),a.createElementVNode("div",eK,[x.value&&!h.value?(a.openBlock(),a.createElementBlock("div",tK,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(x.value),{size:18}))])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("input",{id:d.value,"onUpdate:modelValue":F[0]||(F[0]=N=>b.value=N),readonly:C.value,disabled:n.disabled,placeholder:n.placeholder,class:a.normalizeClass(["w-full h-10 m-0 py-0 rounded-lg border bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 pr-10 outline-none box-border truncate",[x.value&&!h.value?"pl-10":"pl-4",C.value?"cursor-pointer select-none":""]]),onClick:q,onFocus:q,onInput:T,onKeydown:O},null,42,aK),[[a.vModelText,b.value]]),a.createElementVNode("div",nK,[n.clearable&&u.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition cursor-pointer outline-none",onMousedown:F[1]||(F[1]=a.withModifiers(()=>{},["prevent"])),onClick:H,title:"Clear"},[a.createVNode(a.unref(pt),{class:"h-4 w-4"})],32)):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"flex items-center justify-center p-1 m-0 bg-transparent border-0 text-muted-foreground hover:text-foreground transition-transform cursor-pointer outline-none",onMousedown:F[2]||(F[2]=a.withModifiers(()=>{},["prevent"])),onClick:A,title:"Open"},[a.createVNode(a.unref(Et),{class:"h-4 w-4"})],32))]),h.value?(a.openBlock(),a.createElementBlock("div",oK,[a.createElementVNode("div",{class:"p-2 overflow-auto",style:a.normalizeStyle({maxHeight:n.maxHeight}),onScroll:J},[m.value?(a.openBlock(),a.createElementBlock("div",rK,[a.createVNode(a.unref(Lt),{class:"h-4 w-4 animate-spin"}),F[3]||(F[3]=a.createElementVNode("span",{class:"text-sm"},"Loading icons…",-1))])):f.value&&S.value.length===0?(a.openBlock(),a.createElementBlock("div",iK," Icon tidak ditemukan ")):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["grid gap-2",v.value])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,N=>(a.openBlock(),a.createElementBlock("button",{key:N,type:"button",class:a.normalizeClass(["group rounded-lg border p-2 hover:bg-muted/40 transition",u.value===N?"ring-1 ring-primary":""]),onClick:Y=>W(N),title:N},[a.createElementVNode("div",lK,[a.createElementVNode("div",cK,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)[N]),{size:n.iconSize,class:"shrink-0"},null,8,["size"]))]),a.createElementVNode("span",dK,a.toDisplayString(N),1)])],10,sK))),128))],2)),f.value&&S.value.length>0?(a.openBlock(),a.createElementBlock("div",hK," Showing "+a.toDisplayString(L.value.length)+" / "+a.toDisplayString(S.value.length),1)):a.createCommentVNode("",!0)],36)])):a.createCommentVNode("",!0)])],512))}}),uK={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6"},pK={class:"flex items-center justify-between border-b dark:border-neutral-800 px-6 py-4"},yK={class:"relative overflow-auto p-0"},__=a.defineComponent({name:"DCodeImageCropperDialog",inheritAttrs:!1,__name:"DCodeImageCropperDialog",props:{modelValue:{type:Boolean},file:{},title:{default:"Resize & Crop Gambar"},description:{default:""},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!1}},emits:["update:modelValue","done","cancel"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:x=>o("update:modelValue",x)}),i=a.ref(null),s=a.ref(null);let c=null,d=!1,h=0,u=null;function p(){if(c){try{c.close()}catch{}c=null,u&&(u.disconnect(),u=null),i.value&&(i.value.innerHTML=""),s.value=null}}async function y(x,b,C,S,L){const v=await new Promise((B,A)=>{const V=URL.createObjectURL(x),T=new Image;T.onload=()=>{URL.revokeObjectURL(V),B(T)},T.onerror=W=>{URL.revokeObjectURL(V),A(W)},T.src=V}),I=document.createElement("canvas");I.width=b,I.height=C;const q=I.getContext("2d");return q?(q.drawImage(v,0,0,b,C),await new Promise(B=>{I.toBlob(A=>B(A||x),S,L)})):x}function f(){if(!c||!s.value)return;const x=c.getPlugin("Dashboard"),b=c.getFile(s.value);!x||!b||requestAnimationFrame(()=>{try{x.openFileEditor(b)}catch{try{x.openFileEditor(s.value)}catch{}}})}async function m(x){if(c){c.cancelAll(),s.value=null;try{const b=c.addFile({name:x.name,type:x.type,data:x,source:"Local",isRemote:!1});s.value=String(b)}catch{}}}function g(){if(!i.value)return;c&&p(),c=new oq({autoProceed:!1,restrictions:{maxNumberOfFiles:1,allowedFileTypes:["image/*"]}});const x=document.documentElement.classList.contains("dark");c.use(K_,{target:i.value,inline:!0,height:480,theme:x?"dark":"light",proudlyDisplayPoweredByUppy:!1,hideUploadButton:!0,hideRetryButton:!0,hidePauseResumeButton:!0,hideCancelButton:!0,showProgressDetails:!1}),u=new MutationObserver(()=>{if(!c)return;const b=document.documentElement.classList.contains("dark"),C=c.getPlugin("Dashboard");C&&C.setOptions({theme:b?"dark":"light"})}),u.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),c.use(rq,{target:K_,quality:n.quality,cropperOptions:{viewMode:1,dragMode:"move",autoCropArea:1,aspectRatio:n.aspectRatio==null?Number.NaN:n.aspectRatio}}),c.on("file-editor:cancel",()=>{r.value=!1}),c.on("file-added",b=>{s.value=(b==null?void 0:b.id)??null,n.autoOpenEditor&&setTimeout(()=>f(),80)}),c.on("file-editor:complete",async b=>{const C=++h;try{const S=b.data,L=S.type||b.type||"image/jpeg";let v=S;if(n.outputWidth&&n.outputHeight&&(v=await y(S,n.outputWidth,n.outputHeight,L,n.quality)),d||C!==h)return;const I=b.name||"edited-image.jpg",q=new File([v],I,{type:L});await k(q,"UPPY_EDITOR_COMPLETE"),o("done",q),r.value=!1}catch{}})}async function k(x,b="CROP_RESULT"){const C=URL.createObjectURL(x);try{const S=await new Promise((L,v)=>{const I=new Image;I.onload=()=>L(I),I.onerror=v,I.src=C});console.group(b),console.log("file:",x),console.table({name:x.name,type:x.type,sizeBytes:x.size,sizeMB:+(x.size/1024/1024).toFixed(3),width:S.naturalWidth,height:S.naturalHeight,ratio:+(S.naturalWidth/S.naturalHeight).toFixed(4)}),console.log("previewUrl:",C),console.groupEnd()}finally{URL.revokeObjectURL(C)}}a.watch(r,async x=>{d=!x,h++,x?(await a.nextTick(),g(),n.file&&await m(n.file)):p()},{flush:"post"}),a.watch(()=>n.file,async x=>{r.value&&x&&(await a.nextTick(),await m(x))}),a.onBeforeUnmount(()=>{d=!0,h++,p()});const M=x=>{x.key==="Escape"&&r.value&&(r.value=!1)};a.watch(r,x=>{x?globalThis.addEventListener("keydown",M):globalThis.removeEventListener("keydown",M)},{immediate:!0});const w=a.ref(!1);return(x,b)=>r.value?(a.openBlock(),a.createElementBlock("div",uK,[a.createVNode(a.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity",onClick:b[0]||(b[0]=C=>r.value=!1)})):a.createCommentVNode("",!0)]),_:1}),a.createVNode(a.Transition,{appear:"","enter-active-class":"duration-300 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-active-class":"duration-200 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 scale-95 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"relative flex w-fit max-w-4xl flex-col overflow-hidden rounded-xl border border-border dark:border-neutral-800 bg-background dark:bg-neutral-900 shadow-2xl transition-all",onClick:b[4]||(b[4]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",pK,[b[6]||(b[6]=a.createElementVNode("h3",{class:"text-lg font-semibold leading-none tracking-tight dark:text-neutral-100"}," Crop & Resize ",-1)),a.createElementVNode("button",{class:"d-close-btn rounded-sm dark:text-neutral-400 ring-offset-background transition-opacity focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",style:a.normalizeStyle({opacity:w.value?1:.7}),onClick:b[1]||(b[1]=C=>r.value=!1),onMouseenter:b[2]||(b[2]=C=>w.value=!0),onMouseleave:b[3]||(b[3]=C=>w.value=!1)},[a.createVNode(a.unref(pt),{class:"h-4 w-4"}),b[5]||(b[5]=a.createElementVNode("span",{class:"sr-only"},"Close",-1))],36)]),a.createElementVNode("div",yK,[a.createElementVNode("div",{ref_key:"dashboardEl",ref:i,class:"uppy-wrap"},null,512)])])):a.createCommentVNode("",!0)]),_:1})])):a.createCommentVNode("",!0)}}),fK={key:0,class:"text-xs text-muted-foreground dark:text-neutral-400"},mK=["src"],kK=["disabled"],gK=["disabled"],bK={class:"text-[11px] text-foreground/90 dark:text-neutral-200 space-y-1 whitespace-nowrap"},MK={class:"flex gap-2"},xK={class:"font-medium truncate"},wK={class:"flex gap-2"},vK={class:"font-medium"},CK={class:"flex gap-2"},LK={class:"font-medium truncate"},A_=ra(a.defineComponent({name:"DCodeImageResult",__name:"DCodeImageResult",props:{file:{},title:{default:"Hasil Gambar"},description:{default:""},disabled:{type:Boolean,default:!1},previewHeight:{default:190},previewWidth:{default:220},showEdit:{type:Boolean,default:!0},showReplace:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0}},emits:["edit","replace","remove"],setup(e,{emit:t}){const n=e,o=t,r=a.ref(null);a.watch(()=>n.file,y=>{r.value&&URL.revokeObjectURL(r.value),r.value=y?URL.createObjectURL(y):null},{immediate:!0}),a.onBeforeUnmount(()=>{r.value&&URL.revokeObjectURL(r.value),h&&h.disconnect()});function i(y){const f=y/1024,m=f/1024;return m>=1?`${m.toFixed(2)} MB`:f>=1?`${f.toFixed(1)} KB`:`${y} B`}const s=a.computed(()=>n.file?{name:n.file.name,size:i(n.file.size),type:n.file.type||"unknown"}:null),c=a.ref(!1),d=a.ref(!1);let h=null;const u=()=>{typeof document<"u"&&(d.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{u(),typeof document<"u"&&(h=new MutationObserver(u),h.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),h.observe(document.body,{attributes:!0,attributeFilter:["class"]}))});const p=a.computed(()=>n.disabled||!c.value?{}:{borderColor:d.value?"hsl(var(--primary) / 0.4)":"hsl(var(--primary) / 0.5)",backgroundColor:d.value?"hsl(var(--primary) / 0.1)":"hsl(var(--primary) / 0.05)"});return(y,f)=>e.file?(a.openBlock(),a.createBlock(w_,{key:0,class:a.normalizeClass([e.disabled?"opacity-60 pointer-events-none":"","dark:bg-neutral-900 dark:border-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(C_,{class:"pb-2"},{default:a.withCtx(()=>[a.createVNode(L_,{class:"text-sm font-semibold dark:text-neutral-100"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),e.description?(a.openBlock(),a.createElementBlock("div",fK,a.toDisplayString(e.description),1)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(v_,{class:"pt-2"},{default:a.withCtx(()=>{var m,g,k;return[a.createElementVNode("div",{class:"d-result-preview-wrap relative rounded-xl overflow-hidden border-2 border-dashed transition-colors duration-200 bg-muted dark:bg-neutral-800/50 border-border dark:border-neutral-700 w-full",style:a.normalizeStyle([{height:`${e.previewHeight}px`},p.value]),onMouseenter:f[2]||(f[2]=M=>c.value=!0),onMouseleave:f[3]||(f[3]=M=>c.value=!1)},[r.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:r.value,alt:"Preview",class:"h-full w-full object-contain"},null,8,mK)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"d-action-buttons",style:a.normalizeStyle({position:"absolute",top:"8px",left:"8px",right:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",zIndex:50,opacity:c.value?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:c.value?"auto":"none"})},[e.showEdit?(a.openBlock(),a.createElementBlock("button",{key:0,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#eab308",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[0]||(f[0]=M=>o("edit"))},[a.createVNode(a.unref(mr),{style:{width:"16px",height:"16px"}})],12,kK)):a.createCommentVNode("",!0),e.showRemove?(a.openBlock(),a.createElementBlock("button",{key:1,disabled:e.disabled,class:"d-action-btn shadow-md",style:a.normalizeStyle({height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ef4444",color:"white",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.4)",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.2s",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"}),onClick:f[1]||(f[1]=M=>o("remove"))},[a.createVNode(a.unref(Ti),{style:{width:"16px",height:"16px"}})],12,gK)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",{class:"d-metadata-overlay",style:a.normalizeStyle({position:"absolute",left:"8px",bottom:"8px",zIndex:10,display:"inline-block",maxWidth:"calc(100% - 16px)",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.1)",padding:"8px 12px",boxShadow:"0 10px 15px -3px rgba(0,0,0,0.1)",backdropFilter:"blur(8px)",transition:"all 0.2s ease-in-out",opacity:c.value?1:0,transform:c.value?"translateY(0) scale(1)":"translateY(4px) scale(0.99)",backgroundColor:d.value?"rgba(38, 38, 38, 0.8)":"rgba(255, 255, 255, 0.8)",color:d.value?"#e5e5e5":"#171717"})},[a.createElementVNode("div",bK,[a.createElementVNode("div",MK,[f[4]||(f[4]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Nama",-1)),a.createElementVNode("span",xK,a.toDisplayString((m=s.value)==null?void 0:m.name),1)]),a.createElementVNode("div",wK,[f[5]||(f[5]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Ukuran",-1)),a.createElementVNode("span",vK,a.toDisplayString((g=s.value)==null?void 0:g.size),1)]),a.createElementVNode("div",CK,[f[6]||(f[6]=a.createElementVNode("span",{class:"w-14 shrink-0 text-muted-foreground dark:text-neutral-400"},"Tipe",-1)),a.createElementVNode("span",LK,a.toDisplayString((k=s.value)==null?void 0:k.type),1)])])],4)],36)]}),_:1})]),_:1},8,["class"])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-72c623f7"]]),SK={class:"space-y-3"},B_=a.defineComponent({name:"DCodeImageField",inheritAttrs:!1,__name:"DCodeImageField",props:{modelValue:{default:null},label:{default:"Upload Gambar"},hint:{default:"Drag & drop atau klik area ini"},disabled:{type:Boolean,default:!1},allowedTypes:{default:null},accept:{default:"image/*"},minSizeMb:{default:null},maxSizeMb:{default:1},title:{default:"Hasil Gambar"},description:{default:""},previewWidth:{default:360},previewHeight:{default:220},aspectRatio:{default:null},outputWidth:{default:null},outputHeight:{default:null},quality:{default:.92},autoOpenEditor:{type:Boolean,default:!0},minWidth:{default:null},minHeight:{default:null},maxWidth:{default:null},maxHeight:{default:null},endpoint:{},uploadFn:{},editUseOriginal:{type:Boolean,default:!1}},emits:["update:modelValue","error","uploaded"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:H=>o("update:modelValue",H)}),i=a.ref(!1),s=a.ref(null),c=a.ref(null),d=a.ref(null);function h(H){d.value=H,o("error",H)}function u(){d.value=null}const p=a.computed(()=>{const H=(n.allowedTypes??"").trim();return H?H.split(/[,\s;]+/g).map(U=>U.trim().toLowerCase()).filter(Boolean).map(U=>U.includes("/")||U.startsWith(".")?U:`.${U}`):[]});function y(H){const O=H.lastIndexOf(".");return O>=0?H.slice(O).toLowerCase():""}const f=a.computed(()=>{if(p.value.length){const H=p.value.filter(U=>U.startsWith("."));return[...p.value.filter(U=>U.includes("/")),...H].join(",")}return n.accept||"image/*"}),m=a.computed(()=>p.value.length?p.value.join(", "):n.accept||"image/*");function g(H){if(p.value.length){const U=(H.type||"").toLowerCase(),J=y(H.name);return p.value.some(D=>D.includes("/")?U===D:D.startsWith(".")?J===D:J===`.${D}`)}return(n.accept||"image/*").toLowerCase().includes("image/")?(H.type||"").toLowerCase().startsWith("image/"):!0}function k(H){return H*1024*1024}async function M(H){var O;return(O=H.type)!=null&&O.startsWith("image/")?await new Promise(U=>{const J=URL.createObjectURL(H),D=new Image;D.onload=()=>{URL.revokeObjectURL(J),U({w:D.naturalWidth,h:D.naturalHeight})},D.onerror=()=>{URL.revokeObjectURL(J),U(null)},D.src=J}):null}async function w(H){if(!(n.minWidth!=null||n.minHeight!=null||n.maxWidth!=null||n.maxHeight!=null))return null;const U=await M(H);return U?n.minWidth!=null&&U.w<n.minWidth?`Lebar gambar minimal ${n.minWidth}px`:n.minHeight!=null&&U.h<n.minHeight?`Tinggi gambar minimal ${n.minHeight}px`:n.maxWidth!=null&&U.w>n.maxWidth?`Lebar gambar maksimal ${n.maxWidth}px`:n.maxHeight!=null&&U.h>n.maxHeight?`Tinggi gambar maksimal ${n.maxHeight}px`:null:"Gagal membaca dimensi gambar"}async function x(H){return H?g(H)?n.minSizeMb!=null&&H.size<k(n.minSizeMb)?`Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB`:n.maxSizeMb!=null&&H.size>k(n.maxSizeMb)?`Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB`:await w(H):`only Allowed: ${m.value}`:"File tidak valid"}function b(H){n.disabled||(s.value=H,i.value=!0)}async function C(H){if(n.disabled)return;u();const O=await x(H);if(O){h(O);return}c.value=H,b(H)}const{DCodeApi:S}=et(),L=I_(),v=a.ref(!1);a.ref(null);function I(H,O){return!H||!O?null:H.replace(/\/+$/,"")+"/"+O.replace(/^\/+/,"")}function q(H){var D;const O=(H==null?void 0:H.data)??H,U=(D=O==null?void 0:O.data)==null?void 0:D[0];if(!U)return null;const J=I(U.server,U.url);return{...U,fullUrl:J?encodeURI(J):null}}async function B(H){var O;if(n.uploadFn){try{v.value=!0;const U=await n.uploadFn(H);r.value=H,o("uploaded",U)}catch(U){console.error("Upload Error",U),L.error("Upload Failed",(U==null?void 0:U.message)||"Unknown error"),h((U==null?void 0:U.message)||"Upload Failed")}finally{v.value=!1}return}if(!((O=n.endpoint)!=null&&O.apiUrl)){r.value=H;return}if(typeof S!="function"){h("useApi() must expose DCodeApi()");return}try{v.value=!0;const U=new FormData;U.append("doc",H);const J=(n.endpoint.apiMethod||"POST").toUpperCase(),D=n.endpoint.apiUrl,F=await S("","",U,{_url:D,_method:J,withCredentials:!0,transformRequest:[(Y,Q)=>(Q&&(delete Q["Content-Type"],delete Q["content-type"]),Y)]}),N=(F==null?void 0:F.data)??F;q(N),r.value=H,o("uploaded",N)}catch(U){console.error("Upload Error",U),L.error("Upload Failed",(U==null?void 0:U.message)||"Unknown error"),h((U==null?void 0:U.message)||"Upload Failed")}finally{v.value=!1}}async function A(H){var O;u(),n.uploadFn||(O=n.endpoint)!=null&&O.apiUrl?await B(H):r.value=H,i.value=!1,s.value=null}function V(){i.value=!1,s.value=null}async function T(){if(!r.value)return;u();const H=n.editUseOriginal?c.value??r.value:r.value,O=await x(H);if(O){h(O);return}b(H)}function W(){u(),r.value=null,s.value=null,i.value=!1,c.value=null}return a.watch(()=>n.modelValue,H=>{H&&!c.value&&(c.value=H),H||(c.value=null)},{immediate:!0}),(H,O)=>(a.openBlock(),a.createElementBlock("div",SK,[r.value?(a.openBlock(),a.createBlock(A_,{key:1,file:r.value,title:e.label,description:e.description,"preview-width":e.previewWidth,disabled:e.disabled,"show-edit":!0,"show-remove":!0,"show-replace":!1,onEdit:T,onRemove:W,"aspect-ratio":16/9},null,8,["file","title","description","preview-width","disabled"])):(a.openBlock(),a.createBlock(LS,{key:0,label:e.label,hint:e.hint,accept:f.value,maxSizeMb:e.maxSizeMb,disabled:e.disabled,onPicked:C,error:d.value,onError:O[0]||(O[0]=U=>h(U))},null,8,["label","hint","accept","maxSizeMb","disabled","error"])),a.createVNode(__,{modelValue:i.value,"onUpdate:modelValue":O[1]||(O[1]=U=>i.value=U),file:s.value,title:e.title,description:e.description,"auto-open-editor":e.autoOpenEditor,"aspect-ratio":e.aspectRatio,"output-width":e.outputWidth,"output-height":e.outputHeight,quality:e.quality,onDone:A,onCancel:V},null,8,["modelValue","file","title","description","auto-open-editor","aspect-ratio","output-width","output-height","quality"])]))}}),V_=a.defineComponent({name:"DCodeLabel",inheritAttrs:!1,__name:"DCodeLabel",props:{label:{},text:{},textSize:{},textType:{},icon:{},iconClass:{}},setup(e){const t=a.useAttrs(),n=e,o=a.computed(()=>n.icon&&na[n.icon]||null),r=a.computed(()=>n.textSize?`text-${n.textSize}`:"text-xs"),i={xs:"w-3 h-3",sm:"w-3.5 h-3.5",base:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5","2xl":"w-6 h-6","3xl":"w-7 h-7","4xl":"w-8 h-8","5xl":"w-10 h-10","6xl":"w-12 h-12"},s=a.computed(()=>i[n.textSize??"xs"]??"w-3 h-3"),c=a.computed(()=>n.textType==="BOLD"?"font-bold":n.textType==="ITALIC"?"italic font-normal":"font-normal"),d=a.computed(()=>{const u=`${r.value} ${c.value} text-slate-600 ml-1 inline-flex items-center gap-1`,p=t.class??"";return[u,p].filter(Boolean).join(" ")}),h=a.computed(()=>{const{class:u,...p}=t;return p});return(u,p)=>(a.openBlock(),a.createElementBlock("span",a.mergeProps({class:d.value},h.value),[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:0,class:a.normalizeClass(["shrink-0",s.value,e.iconClass])},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(e.label||e.text),1)],16))}}),z_=a.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(i,s)=>a.withDirectives((a.openBlock(),a.createElementBlock("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>a.isRef(r)?r.value=c:null),class:a.normalizeClass(a.unref(Me)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[a.vModelText,a.unref(r)]])}}),IK=["aria-busy"],_K={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},AK={key:0,class:"ml-1 text-destructive"},BK={class:"min-w-0 flex-1 text-left"},VK={key:0,class:"flex flex-wrap gap-1.5"},zK={class:"max-w-[220px] truncate"},PK=["onClick"],qK={key:1,class:"text-muted-foreground truncate"},DK={class:"flex items-center gap-2 shrink-0"},EK={key:0,class:"p-2 border-b border-gray-200 dark:border-gray-800"},TK={key:0,class:"h-full flex items-center justify-center px-3 text-sm text-muted-foreground"},HK=["disabled","onClick"],OK={class:"truncate"},jK={key:0,class:"text-primary-600 dark:text-primary-400"},FK={key:1,class:"h-full flex items-center justify-center text-sm text-muted-foreground"},NK={key:0},RK={key:1},$K={key:1,class:"text-xs text-destructive"},UK={name:"DCodeMultiSelect"},MP=a.defineComponent({...UK,name:"DCodeMultiSelect",inheritAttrs:!1,props:{modelValue:{},items:{default:()=>[]},endpoint:{default:void 0},fetchItems:{},autoFetchOnOpen:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!1},refreshOnOpen:{type:Boolean,default:!1},label:{default:""},placeholder:{default:"Pilih data…"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Cari…"},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},maxChips:{default:5},maxSelected:{default:5},itemTitle:{type:[String,Function],default:"name"},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},virtual:{type:Boolean,default:!0},itemHeight:{default:40},maxRows:{default:5},overscan:{default:6},error:{default:null},required:{type:Boolean,default:!1}},emits:["update:modelValue","clear","max"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>(r.label||n.label)??void 0),s=a.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`app-multiselect-${n.id||i.value||"field"}-${c}`),h=a.computed(()=>{if(r.required)return!0;const Z=n.required,te=n["aria-required"];return Z===""||Z===!0||Z==="true"||(te==="true"||te===!0)}),u=a.computed(()=>!!r.error);function p(Z){return Z?typeof r.itemTitle=="function"?r.itemTitle(Z)??"":String((Z==null?void 0:Z[r.itemTitle])??""):""}function y(Z){return Z?typeof r.itemValue=="function"?r.itemValue(Z):Z==null?void 0:Z[r.itemValue]:null}function f(Z,te){return y(Z)??te}const m=a.computed(()=>Array.isArray(r.modelValue)?r.modelValue:[]),g=a.computed(()=>{var Z;return!!((Z=r.endpoint)!=null&&Z.apiUrl)||!!r.fetchItems}),k=a.ref([]),M=a.ref(!1),w=a.ref(!1),x=a.computed(()=>{var te;const Z=(te=r.endpoint)==null?void 0:te.apiOptions;if(Z)return typeof Z=="function"?Z():Z}),b=a.computed(()=>{var fe,He;const Z=((fe=r.endpoint)==null?void 0:fe.apiUrl)??"",te=(((He=r.endpoint)==null?void 0:He.apiMethod)??"GET").toUpperCase(),ne=JSON.stringify(x.value??null);return`${te} ${Z} :: ${ne}`}),C=a.computed(()=>g.value?k.value:r.items||[]);async function S(){var Z;if(g.value&&!(!((Z=r.endpoint)!=null&&Z.apiUrl)&&!r.fetchItems)&&!M.value){M.value=!0;try{let te;if(r.fetchItems){const ne=await r.fetchItems(),fe=(ne==null?void 0:ne.data)??ne;te=(fe==null?void 0:fe.data)??fe}else{const{DCodeApi:ne}=et();if(typeof ne!="function"){console.error("[DCodeMultiSelectChips] useApi() must expose DCodeApi()");return}const fe={page:1,perPage:100,...x.value||{}},He=await ne("","",fe,{_url:r.endpoint.apiUrl,_method:(r.endpoint.apiMethod||"GET").toUpperCase()}),Vt=(He==null?void 0:He.data)??He;te=(Vt==null?void 0:Vt.data)??Vt}k.value=Array.isArray(te)?te:[],w.value=!0}catch(te){console.error("[DCodeMultiSelectChips][fetchOptions] ERROR:",te),k.value=[]}finally{M.value=!1}}}a.watch(()=>b.value,()=>{k.value=[],w.value=!1}),a.onMounted(()=>{r.autoFetchOnMount&&g.value&&S()});const L=a.computed(()=>{const Z=m.value;if(r.returnObject)return Z;const te=new Map;for(const ne of C.value)te.set(y(ne),ne);return Z.map(ne=>te.get(ne)??{[r.itemValue]:ne,[r.itemTitle]:String(ne)})}),v=a.computed(()=>r.maxChips===null?L.value:L.value.slice(0,r.maxChips));function I(Z){const te=m.value;if(r.returnObject){const ne=y(Z);return te.some(fe=>y(fe)===ne)}return te.includes(y(Z))}const q=a.computed(()=>{if(r.maxSelected===null||r.maxSelected===void 0)return null;const Z=Number(r.maxSelected);return Number.isFinite(Z)&&Z>0?Z:null}),B=a.computed(()=>{const Z=q.value;return Z===null?!1:m.value.length>=Z});function A(Z){return!I(Z)&&B.value}const V=a.computed(()=>{const Z=m.value,te=new Set;if(r.returnObject)for(const ne of Z)te.add(y(ne));else for(const ne of Z)te.add(ne);return te}),T=a.computed(()=>{const Z=V.value;return(C.value||[]).filter(te=>!Z.has(y(te)))}),W=a.computed(()=>C.value.length===0?!1:T.value.length===0),H=a.ref(null),O=a.ref(null),U=a.ref(null),J=a.ref(!1),D=a.ref(""),F=a.ref(0),N=a.ref(0),{floatingStyles:Y}=y1(H,O,{whileElementsMounted:d1,placement:"bottom-start",middleware:[h1(8),Zs(),u1({padding:8}),p1({apply({rects:Z,elements:te}){Object.assign(te.floating.style,{width:`${Z.reference.width}px`,"--floating-width":`${Z.reference.width}px`})}})]}),Q=a.computed(()=>Y.value),re=a.computed(()=>{const Z=Number(r.maxRows);return Number.isFinite(Z)&&Z>0?Z:5});async function ue(){r.disabled||(J.value=!0,N.value=0,requestAnimationFrame(()=>{U.value&&(U.value.scrollTop=0),F.value=0}),g.value&&r.autoFetchOnOpen&&(r.refreshOnOpen||!w.value)&&!M.value&&await S())}function pe(){J.value=!1}function Ie(){J.value?pe():ue()}function ce(Z){var ne,fe;if(!J.value)return;const te=Z.target;(ne=H.value)!=null&&ne.contains(te)||(fe=O.value)!=null&&fe.contains(te)||pe()}a.onMounted(()=>document.addEventListener("mousedown",ce)),a.onBeforeUnmount(()=>document.removeEventListener("mousedown",ce));function X(Z){if(r.disabled)return;if(A(Z)){o("max");return}const te=[...m.value];if(r.returnObject){const ne=y(Z);if(te.some(He=>y(He)===ne))return;o("update:modelValue",[...te,Z])}else{const ne=y(Z);if(te.includes(ne))return;o("update:modelValue",[...te,ne])}D.value="",N.value=0,requestAnimationFrame(()=>{U.value&&(U.value.scrollTop=0),F.value=0})}function z(Z){if(r.disabled)return;const te=[...m.value];if(r.returnObject){const ne=y(Z);o("update:modelValue",te.filter(fe=>y(fe)!==ne))}else{const ne=y(Z);o("update:modelValue",te.filter(fe=>fe!==ne))}}function R(){r.disabled||(o("update:modelValue",[]),o("clear"),pe())}const ee=a.computed(()=>{const Z=D.value.trim().toLowerCase(),te=T.value;return Z?te.filter(ne=>p(ne).toLowerCase().includes(Z)):te}),ye=a.computed(()=>ee.value.length);a.watch(J,Z=>{Z||(D.value="")});const Ne=a.computed(()=>{if(W.value)return r.itemHeight;const Z=ye.value;return(Z<=0?1:Math.min(Z,re.value))*r.itemHeight}),ut=a.computed(()=>r.virtual?ye.value*r.itemHeight:0),At=a.computed(()=>r.virtual?Math.ceil(Ne.value/r.itemHeight)+r.overscan:ye.value),Bt=a.computed(()=>{if(!r.virtual)return 0;const Z=Math.floor(F.value/r.itemHeight)-Math.floor(r.overscan/2);return Math.max(0,Z)}),Ha=a.computed(()=>r.virtual?Math.min(ye.value,Bt.value+At.value):ye.value),jS=a.computed(()=>r.virtual?Bt.value*r.itemHeight:0),Gs=a.computed(()=>{const Z=ee.value;return r.virtual?Z.slice(Bt.value,Ha.value):Z});function Jl(Z){const te=Z.target;F.value=te.scrollTop}function xt(Z){return Z===N.value}function $(Z){const te=U.value;if(!te||!r.virtual)return;const ne=Z*r.itemHeight,fe=ne+r.itemHeight,He=te.scrollTop,Vt=te.scrollTop+te.clientHeight;ne<He?te.scrollTop=ne:fe>Vt&&(te.scrollTop=fe-te.clientHeight)}function ae(Z){const te=Math.max(0,ye.value-1);N.value=Math.min(te,Math.max(0,N.value+Z)),$(N.value)}function de(){const Z=ee.value[N.value];Z&&X(Z)}const xe=a.computed(()=>r.clearable&&!r.disabled&&L.value.length>0),De=a.computed(()=>u.value?"border-red-500 ring-[0.5px] ring-red-500":J.value?"border-gray-700 ring-[0.5px] ring-gray-700 dark:border-gray-300 dark:ring-gray-300":"");return(Z,te)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",_K)):a.createCommentVNode("",!0),te[3]||(te[3]=a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",AK,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"referenceEl",ref:H,class:"relative"},[a.createVNode(a.unref(je),{id:d.value,type:"button",variant:"outline",class:a.normalizeClass(["w-full justify-between h-auto min-h-10 px-3 py-2 transition border",["bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 text-foreground dark:text-gray-300",De.value]]),disabled:r.disabled,onClick:Ie},{default:a.withCtx(()=>[a.createElementVNode("div",BK,[L.value.length?(a.openBlock(),a.createElementBlock("div",VK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(ne,fe)=>(a.openBlock(),a.createBlock(a.unref(Ea),{key:`chip-${f(ne,fe)}`,variant:"secondary",class:"gap-1"},{default:a.withCtx(()=>[a.createElementVNode("span",zK,a.toDisplayString(p(ne)),1),r.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"ml-1 opacity-70 hover:opacity-100",onClick:a.withModifiers(He=>z(ne),["stop"]),"aria-label":"Remove"}," ✕ ",8,PK))]),_:2},1024))),128)),r.maxChips!==null&&L.value.length>r.maxChips?(a.openBlock(),a.createBlock(a.unref(Ea),{key:0,variant:"secondary"},{default:a.withCtx(()=>[a.createTextVNode(" +"+a.toDisplayString(L.value.length-(r.maxChips??0)),1)]),_:1})):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",qK,a.toDisplayString(r.placeholder),1))]),a.createElementVNode("div",DK,[xe.value?(a.openBlock(),a.createElementBlock("button",{key:0,class:"text-muted-foreground hover:text-foreground",onClick:a.withModifiers(R,["stop"]),"aria-label":"Clear"}," ✕ ")):a.createCommentVNode("",!0),a.createVNode(a.unref(Et),{class:"h-4 w-4 text-muted-foreground"})])]),_:1},8,["id","disabled","class"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[J.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:O,class:"-mt-1 z-[9999] w-[var(--floating-width)] rounded-lg border shadow-lg overflow-hidden bg-white dark:bg-neutral-900 border-gray-200 dark:border-gray-800",style:a.normalizeStyle(Q.value)},[r.searchable&&!W.value?(a.openBlock(),a.createElementBlock("div",EK,[a.createVNode(a.unref(z_),{modelValue:D.value,"onUpdate:modelValue":te[0]||(te[0]=ne=>D.value=ne),placeholder:r.searchPlaceholder,class:"h-10",onKeydown:[te[1]||(te[1]=a.withKeys(a.withModifiers(ne=>ae(1),["prevent"]),["down"])),te[2]||(te[2]=a.withKeys(a.withModifiers(ne=>ae(-1),["prevent"]),["up"])),a.withKeys(a.withModifiers(de,["prevent"]),["enter"]),a.withKeys(a.withModifiers(pe,["prevent"]),["esc"])]},null,8,["modelValue","placeholder","onKeydown"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"listEl",ref:U,class:"relative overflow-auto",style:a.normalizeStyle({height:Ne.value+"px"}),onScroll:Jl},[W.value?(a.openBlock(),a.createElementBlock("div",TK," All items have been selected ")):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[r.virtual?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({height:ut.value+"px"})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(r.virtual?"absolute left-0 top-0 w-full":""),style:a.normalizeStyle(r.virtual?{transform:`translateY(${jS.value}px)`}:void 0)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Gs.value,(ne,fe)=>(a.openBlock(),a.createElementBlock("button",{key:String(f(ne,Bt.value+fe)),type:"button",class:a.normalizeClass(["w-full px-3 text-left text-sm flex items-center justify-between gap-3",[A(ne)?"cursor-not-allowed opacity-50":"hover:bg-neutral-50 dark:hover:bg-neutral-800/60",xt(Bt.value+fe)?"bg-neutral-50 dark:bg-neutral-800/60":"",I(ne)?"font-semibold":"font-normal"]]),style:a.normalizeStyle({height:r.itemHeight+"px"}),disabled:r.disabled||A(ne),onClick:He=>X(ne)},[a.createElementVNode("span",OK,a.toDisplayString(p(ne)),1),I(ne)?(a.openBlock(),a.createElementBlock("span",jK,"✓")):a.createCommentVNode("",!0)],14,HK))),128))],6),ye.value===0?(a.openBlock(),a.createElementBlock("div",FK,[M.value?(a.openBlock(),a.createElementBlock("span",NK,"Loading data…")):(a.openBlock(),a.createElementBlock("span",RK,"Tidak ada data"))])):a.createCommentVNode("",!0)],64))],36)],4)):a.createCommentVNode("",!0)]))],512),u.value?(a.openBlock(),a.createElementBlock("p",$K,a.toDisplayString(r.error),1)):a.createCommentVNode("",!0)],64))],10,IK)),[[a.vShow,s.value]])}}),WK={class:"space-y-4"},GK={key:0,class:"space-y-1"},KK={class:"text-base font-semibold text-gray-800"},XK={class:"text-sm text-gray-400"},ZK={class:"flex items-center gap-2 flex-nowrap"},YK=["value","disabled","onKeydown","onInput","onPaste"],P_=a.defineComponent({name:"DCodeOtpInput",__name:"DCodeOtpInput",props:{modelValue:{default:""},totalInput:{default:6},default:{default:""},label:{default:""},endpoint:{},submitFn:{}},emits:["updateOtp","update:modelValue","complete","loading","success","error"],setup(e,{emit:t}){const n=e,o=t,r=a.ref([]),i=a.ref([]),s=a.ref(!1),{DCodeApi:c}=et(),d=I_(),h=a.computed(()=>{const x=Number(n.totalInput);return x&&x>0?x:6}),u=()=>{i.value=Array.from({length:h.value},(x,b)=>{var C;return((C=n.default)==null?void 0:C[b])??""}),o("updateOtp",i.value.join(""))};u(),a.watch(()=>[n.totalInput,n.default],()=>u());const p=x=>{x<0||x>=h.value||a.nextTick(()=>{var b;return(b=r.value[x])==null?void 0:b.focus()})},y=x=>x.match(/[a-zA-Z0-9]/)?x.match(/[a-zA-Z0-9]/)[0]:"";async function f(x){var b;if(o("complete",x),n.submitFn){try{s.value=!0,o("loading",!0);const C=await n.submitFn(x);o("success",C)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}return}if((b=n.endpoint)!=null&&b.apiUrl){if(typeof c!="function"){o("error","useApi() must expose DCodeApi()");return}try{s.value=!0,o("loading",!0);const C=(n.endpoint.apiMethod||"POST").toUpperCase(),S=n.endpoint.apiUrl,L=await c("","",{otp:x},{_url:S,_method:C,withCredentials:!0}),v=(L==null?void 0:L.data)??L;o("success",v)}catch(C){console.error("OTP Submit Error",C),d.error("Submit Failed",(C==null?void 0:C.message)||"Unknown error"),o("error",(C==null?void 0:C.message)||"Submit Failed")}finally{s.value=!1,o("loading",!1)}}}const m=(x,b)=>{i.value[x]=y(b);const C=i.value.join("");o("updateOtp",C),o("update:modelValue",C),C.length===h.value&&f(C)},g=(x,b)=>{const C=x.key,S=/^\d$/.test(C),L=/^[a-zA-Z]$/.test(C);if(C==="Backspace"){if(x.preventDefault(),i.value[b]){m(b,"");return}b>0&&(m(b-1,""),p(b-1));return}if(C==="ArrowLeft"){x.preventDefault(),p(b-1);return}if(C==="ArrowRight"){x.preventDefault(),p(b+1);return}if(S||L){x.preventDefault(),m(b,C),b<h.value-1&&p(b+1);return}C.length===1&&x.preventDefault()},k=(x,b)=>{const C=x.target,S=C.value??"",L=y(S);C.value=L,m(b,L),L&&b<h.value-1&&p(b+1)},M=(x,b)=>{var I;x.preventDefault();const S=(((I=x.clipboardData)==null?void 0:I.getData("text"))??"").replaceAll(/[^a-zA-Z0-9]/g,"");if(!S)return;let L=b;for(const q of S){if(L>=h.value)break;i.value[L]=q,L++}const v=i.value.join("");o("updateOtp",v),o("update:modelValue",v),v.length===h.value&&f(v),p(Math.min(L,h.value-1))},w=x=>b=>{r.value[x]=(b==null?void 0:b.$el)??b};return(x,b)=>(a.openBlock(),a.createElementBlock("div",WK,[n.label||h.value?(a.openBlock(),a.createElementBlock("div",GK,[a.createElementVNode("h6",KK,a.toDisplayString(n.label||"Masukkan kode keamanan"),1),a.createElementVNode("p",XK," Ketik "+a.toDisplayString(h.value)+" digit kode verifikasi Anda ",1)])):a.createCommentVNode("",!0),a.createElementVNode("div",ZK,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,C=>(a.openBlock(),a.createElementBlock("input",{key:C,ref_for:!0,ref:w(C-1),value:i.value[C-1]||"",type:"text",inputmode:"text",maxlength:"1",autocomplete:"one-time-code","aria-label":"`OTP digit ${i}`",placeholder:"*",disabled:s.value,class:a.normalizeClass(["w-12 h-12 flex-none text-center text-xl font-bold rounded-xl border-2 transition-all duration-200 box-border p-0","focus:outline-none focus:scale-105 disabled:opacity-50 disabled:cursor-not-allowed",i.value[C-1]?"border-blue-500 bg-blue-50 text-blue-700 shadow-sm shadow-blue-100":"border-gray-200 bg-gray-50 text-gray-400 focus:border-blue-400 focus:bg-white focus:shadow-md focus:shadow-blue-50"]),onKeydown:S=>g(S,C-1),onInput:S=>k(S,C-1),onPaste:S=>M(S,C-1)},null,42,YK))),128))])]))}}),QK={class:"w-full"},JK={key:0,class:"flex items-center justify-between mb-2"},eX={key:0,class:"text-sm font-medium text-gray-700"},tX={key:1,class:"text-sm text-gray-600"},aX={name:"DCodeProgress"},xP=a.defineComponent({...aX,name:"DCodeProgress",inheritAttrs:!1,props:{modelValue:{default:0},max:{default:100},label:{default:""},showValue:{type:Boolean,default:!1},color:{default:"blue"},size:{default:"md"},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=a.computed(()=>Math.min(n.modelValue/n.max*100,100)),r=a.computed(()=>["w-full rounded-full overflow-hidden",{sm:"h-1",md:"h-2",lg:"h-3"}[n.size],"bg-gray-200"].join(" ")),i=a.computed(()=>{const c={blue:"bg-blue-500",green:"bg-green-500",red:"bg-red-500",yellow:"bg-yellow-500",purple:"bg-purple-500",gray:"bg-gray-500"},d=["h-full transition-all duration-300 ease-out",c[n.color]||c.blue];return n.striped&&d.push("bg-gradient-to-r from-transparent via-white/20 to-transparent"),n.animated&&d.push("animate-pulse"),d.join(" ")}),s=a.computed(()=>`${Math.round(o.value)}%`);return(c,d)=>(a.openBlock(),a.createElementBlock("div",QK,[e.label||e.showValue?(a.openBlock(),a.createElementBlock("div",JK,[e.label?(a.openBlock(),a.createElementBlock("span",eX,a.toDisplayString(e.label),1)):a.createCommentVNode("",!0),e.showValue?(a.openBlock(),a.createElementBlock("span",tX,a.toDisplayString(s.value),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(r.value)},[a.createElementVNode("div",{class:a.normalizeClass(i.value),style:a.normalizeStyle({width:`${o.value}%`})},null,6)],2)]))}}),nX={key:0,class:"fixed top-0 left-0 right-0 z-[10000] h-[3px]"},wP=ra(a.defineComponent({name:"DCodeProgressBar",__name:"DCodeProgressBar",props:{isApiLoading:{type:Boolean,default:!1},apiProgress:{default:0}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.Transition,{name:"fade"},{default:a.withCtx(()=>[e.isApiLoading?(a.openBlock(),a.createElementBlock("div",nX,[a.createElementVNode("div",{class:"h-full bg-primary-600 shadow-[0_0_15px_rgba(37,99,235,0.8)] transition-all duration-300 ease-out",style:a.normalizeStyle({width:`${e.apiProgress}%`})},null,4)])):a.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-85c68054"]]),oX={class:"grid gap-3"},rX={key:0,class:"ml-1 text-destructive"},iX={class:"flex flex-col"},sX={key:0,class:"flex items-center gap-2 text-sm text-gray-500 mb-2"},lX={class:"relative flex-shrink-0 mt-0.5"},cX=["id","name","value","checked","disabled","required","onChange"],dX=["onClick"],hX=["for"],uX={key:0,class:"ml-1 text-red-500"},pX={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-1"},vP=a.defineComponent({name:"DCodeRadio",inheritAttrs:!1,__name:"DCodeRadio",props:{modelValue:{default:void 0},label:{default:""},itemTitle:{default:"name"},itemValue:{default:"id"},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(e,{emit:t}){a.useAttrs();const{apiUrl:n}=et(),o=t,r=e,i=a.ref([]),s=a.ref(!1),c=a.ref(null),d=async()=>{var b,C;const x=((b=r.endpoint)==null?void 0:b.apiUrl)||r.apiUrl;if(x){s.value=!0,c.value=null;try{const S={page:1,perPage:100},L=((C=r.endpoint)==null?void 0:C.apiMethod)||r.apiMethod,v=await n(x,L,S);let I=v;r.dataPath?I=r.dataPath.split(".").reduce((B,A)=>B&&B[A]!=="undefined"?B[A]:void 0,v):typeof v=="object"&&!Array.isArray(v)&&v.data&&(I=v.data),Array.isArray(I)?i.value=I:(console.warn("DCodeRadio: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),c.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(S){console.error("DCodeRadio fetch error:",S),c.value="Gagal memuat data dari endpoint."}finally{s.value=!1}}};a.onMounted(()=>{var x;((x=r.endpoint)!=null&&x.apiUrl||r.apiUrl)&&d()});const h=a.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(i.value.length>0)return i.value;const x=r.itemValue||r.model||"id",b=r.itemTitle||(r.label===""?"name":r.label);return b&&r.label!==""?[{[x]:x,[b]:b}]:[]}),u=x=>{if(typeof x!="object")return x;const b=r.itemValue||r.model||"id";return x[b]},p=x=>{if(typeof x!="object")return String(x);const b=r.itemTitle||"name";return x[b]},y=a.computed(()=>r.model||`radio-group-${Math.random().toString(36).substr(2,9)}`),f=a.computed(()=>!!r.error||!!c.value),m=a.computed(()=>r.error||c.value),g=x=>x==null?r.modelValue===x:String(r.modelValue)===String(x),k=a.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),M=(x,b)=>{b.target.checked&&(o("update:modelValue",x),o("change",x))},w=x=>{!r.disabled&&!g(x)&&(o("update:modelValue",x),o("change",x))};return(x,b)=>(a.openBlock(),a.createElementBlock("div",oX,[e.label?(a.openBlock(),a.createBlock(Pa,{key:0,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",rX,"*")):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",iX,[s.value?(a.openBlock(),a.createElementBlock("div",sX,[a.createVNode(a.unref(Lt),{class:"w-4 h-4 animate-spin"}),b[0]||(b[0]=a.createTextVNode(" Sedang memuat opsi... ",-1))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["flex",e.layout?"flex-row flex-wrap gap-4":"flex-col gap-3"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(C,S)=>(a.openBlock(),a.createElementBlock("div",{key:S,class:a.normalizeClass(["flex items-start",k.value.container,e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"])},[a.createElementVNode("div",lX,[a.createElementVNode("input",{id:e.id?`${e.id}-${S}`:`${y.value}-${S}`,name:y.value,type:"radio",value:u(C),checked:g(u(C)),disabled:e.disabled,required:e.required&&S===0,onChange:L=>M(u(C),L),class:"w-5 h-5 text-blue-600 focus:ring-blue-500 border-gray-300"},null,40,cX)]),a.createElementVNode("div",{class:"flex-1 min-w-0",onClick:L=>w(u(C))},[a.createElementVNode("label",{for:e.id?`${e.id}-${S}`:`${y.value}-${S}`,class:a.normalizeClass([k.value.label,"font-medium cursor-pointer select-none text-foreground dark:text-gray-300",e.disabled?"cursor-not-allowed opacity-50":""])},[a.createTextVNode(a.toDisplayString(p(C))+" ",1),e.required&&h.value.length===1&&e.label?(a.openBlock(),a.createElementBlock("span",uX,"*")):a.createCommentVNode("",!0)],10,hX)],8,dX)],2))),128))],2),f.value&&m.value?(a.openBlock(),a.createElementBlock("div",pX,[a.createVNode(a.unref(Tt),{class:"w-4 h-4 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(m.value),1)])):a.createCommentVNode("",!0)])]))}}),yX={class:"grid gap-3"},fX={key:0,class:"ml-1 text-destructive"},mX={class:"flex flex-col"},kX={key:0,class:"flex items-center gap-2 text-sm text-gray-500 dark:text-neutral-400 mb-2"},gX=["onClick"],bX=["id","name","value","checked","disabled","required","onChange"],MX={key:1,class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20"},xX=["for"],wX={key:0,class:"ml-1 text-red-500"},vX={key:1,class:"flex items-center gap-1 text-sm text-red-500 mt-2"},CP=a.defineComponent({name:"DCodeRadioCustom",inheritAttrs:!1,__name:"DCodeRadioCustom",props:{modelValue:{default:void 0},icon:{},itemTitle:{default:"name"},itemValue:{default:"id"},label:{default:""},options:{default:()=>[]},apiUrl:{default:""},apiMethod:{default:"GET"},endpoint:{},dataPath:{default:""},layout:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{default:null},size:{default:"md"},color:{default:"blue"},model:{default:"id"},id:{default:""}},emits:["update:modelValue","change"],setup(e,{emit:t}){a.useAttrs();const{apiUrl:n}=et(),o=t,r=e,i=a.ref(r.modelValue??void 0);a.watch(()=>r.modelValue,I=>{i.value=I},{immediate:!0});const s=a.ref([]),c=a.ref(!1),d=a.ref(null),h=async()=>{var q,B;const I=((q=r.endpoint)==null?void 0:q.apiUrl)||r.apiUrl;if(I){c.value=!0,d.value=null;try{const A={page:1,perPage:100},V=((B=r.endpoint)==null?void 0:B.apiMethod)||r.apiMethod,T=await n(I,V,A);let W=T;r.dataPath?W=r.dataPath.split(".").reduce((O,U)=>O&&O[U]!=="undefined"?O[U]:void 0,T):typeof T=="object"&&!Array.isArray(T)&&T.data&&(W=T.data),Array.isArray(W)?s.value=W:(console.warn("DCodeRadioCustom: Format response tidak terdeteksi sebagai Array. Gunakan prop 'dataPath'."),d.value="Format respons data tidak valid. Array tidak ditemukan.")}catch(A){console.error("DCodeRadioCustom fetch error:",A),d.value="Gagal memuat data dari endpoint."}finally{c.value=!1}}},u=a.ref(!1);let p=null;const y=()=>{typeof document<"u"&&(u.value=document.documentElement.classList.contains("dark")||document.body.classList.contains("dark"))};a.onMounted(()=>{var I;((I=r.endpoint)!=null&&I.apiUrl||r.apiUrl)&&h(),y(),typeof document<"u"&&(p=new MutationObserver(y),p.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),p.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}),a.onBeforeUnmount(()=>{p&&p.disconnect()});const f=a.computed(()=>{if(r.options&&r.options.length>0)return r.options;if(s.value.length>0)return s.value;const I=r.itemValue||r.model||"id",q=r.itemTitle||(r.label===""?"name":r.label);return q&&r.label!==""?[{[I]:I,[q]:q}]:[]}),m=I=>{if(typeof I!="object")return I;const q=r.itemValue||r.model||"id";return I[q]},g=I=>{if(typeof I!="object")return String(I);const q=r.itemTitle||"name";return I[q]},k=Math.random().toString(36).slice(2,7),M=a.computed(()=>r.id?`radio-custom-${r.id}`:`radio-custom-${r.model}-${k}`),w=a.computed(()=>!!r.error||!!d.value),x=a.computed(()=>r.error||d.value),b=I=>{const q=i.value;return I==null?q===I:String(q)===String(I)},C=a.computed(()=>({sm:{radio:"w-3 h-3",label:"text-sm",container:"gap-2"},md:{radio:"w-4 h-4",label:"text-base",container:"gap-2"},lg:{radio:"w-5 h-5",label:"text-lg",container:"gap-3"}})[r.size]),S=a.computed(()=>r.icon&&na[r.icon]||null),L=(I,q)=>{q.target.checked&&(i.value=I,o("update:modelValue",I),o("change",I))},v=I=>{r.disabled||b(I)||(i.value=I,o("update:modelValue",I),o("change",I))};return(I,q)=>(a.openBlock(),a.createElementBlock("div",yX,[e.label?(a.openBlock(),a.createBlock(Pa,{key:0,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",fX,"*")):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",mX,[c.value?(a.openBlock(),a.createElementBlock("div",kX,[a.createVNode(a.unref(Lt),{class:"w-4 h-4 animate-spin"}),q[0]||(q[0]=a.createTextVNode(" Sedang memuat opsi... ",-1))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["grid",e.layout?"grid-cols-2 sm:grid-cols-3":"grid-cols-1","gap-3"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(B,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(["relative flex flex-col items-center justify-center gap-2 p-4 rounded-xl border-2 transition-all duration-200",b(m(B))?u.value?"border-primary-500 bg-primary-500/10 shadow-none":"border-primary-500 bg-primary-50 shadow-md shadow-primary-100":u.value?"border-neutral-700 bg-neutral-800 hover:border-neutral-600":"border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm",e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),onClick:V=>!e.disabled&&v(m(B))},[a.createElementVNode("input",{id:e.id?`${e.id}-${A}`:`${M.value}-${A}`,name:M.value,type:"radio",value:m(B),checked:b(m(B)),disabled:e.disabled,required:e.required&&A===0,onChange:V=>L(m(B),V),class:"sr-only",tabindex:"-1"},null,40,bX),a.createElementVNode("div",{class:a.normalizeClass(["w-10 h-10 rounded-full flex items-center justify-center transition-all duration-200",b(m(B))?u.value?"bg-primary-500/25 text-primary-400":"bg-primary-100 text-primary-600":u.value?"bg-neutral-700 text-neutral-500":"bg-gray-100 text-gray-400"])},[S.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(S.value),{key:0,class:"w-6 h-6"})):(a.openBlock(),a.createElementBlock("svg",MX,[...q[1]||(q[1]=[a.createElementVNode("circle",{cx:"10",cy:"10",r:"6"},null,-1)])]))],2),a.createElementVNode("label",{for:e.id?`${e.id}-${A}`:`${M.value}-${A}`,class:a.normalizeClass([C.value.label,"font-medium text-center leading-tight select-none transition-colors duration-200",b(m(B))?u.value?"text-primary-400":"text-primary-700":u.value?"text-neutral-300":"text-gray-700",e.disabled?"cursor-not-allowed":"cursor-pointer"])},[a.createTextVNode(a.toDisplayString(g(B))+" ",1),e.required&&f.value.length===1&&e.label?(a.openBlock(),a.createElementBlock("span",wX,"*")):a.createCommentVNode("",!0)],10,xX)],10,gX))),128))],2),w.value&&x.value?(a.openBlock(),a.createElementBlock("div",vX,[a.createVNode(a.unref(Tt),{class:"w-4 h-4 flex-shrink-0"}),a.createTextVNode(" "+a.toDisplayString(x.value),1)])):a.createCommentVNode("",!0)])]))}}),CX={key:0,class:"ml-1 text-destructive"},LX={class:"relative w-full"},SX={key:0,class:"mb-2 flex items-center justify-between"},IX={class:"text-sm text-muted-foreground"},_X={class:"text-sm font-medium text-foreground"},AX={class:"text-sm text-muted-foreground"},BX={class:"relative"},VX=["id","value","min","max","step","disabled","placeholder"],zX={key:1,class:"relative mt-2"},PX={class:"text-xs text-muted-foreground mt-1"},qX={key:1,class:"flex items-center gap-1 text-sm text-destructive"},DX={name:"DCodeSlider"},q_=a.defineComponent({...DX,name:"DCodeSlider",inheritAttrs:!1,props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},label:{default:""},placeholder:{default:""},required:{type:Boolean,default:!1},error:{default:null},showValue:{type:Boolean,default:!0},valuePrefix:{default:""},valueSuffix:{default:""},marks:{default:()=>[]},color:{default:"blue"},size:{default:"md"}},emits:["update:modelValue","change","input"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.ref(),s=a.ref(!1),c=a.computed(()=>!!r.error),d=a.computed(()=>`slider-${Math.random().toString(36).substr(2,9)}`),h=a.computed(()=>(r.label||n.label)??void 0),u=a.computed(()=>!0),p=a.computed(()=>{const C={sm:"h-2",md:"h-2.5",lg:"h-3"},S={blue:"accent-blue-500",green:"accent-green-500",red:"accent-red-500",yellow:"accent-yellow-500",purple:"accent-purple-500",gray:"accent-gray-500"};return["w-full appearance-none bg-transparent rounded-lg outline-none transition-all cursor-pointer relative z-10","disabled:opacity-50 disabled:cursor-not-allowed",C[r.size],S[r.color]||S.blue,c.value?"accent-red-500":"",n.class].filter(Boolean).join(" ")}),y=a.computed(()=>["appearance-none bg-white border-2 border-current rounded-full cursor-pointer transition-all","hover:scale-110 focus:scale-110","shadow-md hover:shadow-lg focus:shadow-lg","focus:outline-none focus:ring-2 focus:ring-offset-2",{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[r.size],r.color==="blue"?"focus:ring-blue-500":r.color==="green"?"focus:ring-green-500":r.color==="red"?"focus:ring-red-500":r.color==="yellow"?"focus:ring-yellow-500":r.color==="purple"?"focus:ring-purple-500":"focus:ring-gray-500"].join(" ")),f=a.computed(()=>`${r.valuePrefix}${r.modelValue}${r.valueSuffix}`),m=a.computed(()=>{const C=r.max-r.min;return(r.modelValue-r.min)/C*100}),g=C=>{const S=C.target,L=parseFloat(S.value);o("update:modelValue",L),o("input",L)},k=C=>{const S=C.target,L=parseFloat(S.value);o("change",L)},M=()=>{s.value=!0},w=()=>{s.value=!1},x=C=>{const S=r.max-r.min;return(C-r.min)/S*100},b=a.computed(()=>{const C={sm:16,md:20,lg:24};return`
|
|
8568
8568
|
input[type="range"]::-webkit-slider-thumb {
|
|
8569
8569
|
${y.value}
|
|
8570
|
-
width: ${
|
|
8571
|
-
height: ${
|
|
8570
|
+
width: ${C[r.size]}px;
|
|
8571
|
+
height: ${C[r.size]}px;
|
|
8572
8572
|
}
|
|
8573
8573
|
|
|
8574
8574
|
input[type="range"]::-moz-range-thumb {
|
|
8575
8575
|
${y.value}
|
|
8576
|
-
width: ${
|
|
8577
|
-
height: ${
|
|
8576
|
+
width: ${C[r.size]}px;
|
|
8577
|
+
height: ${C[r.size]}px;
|
|
8578
8578
|
border-width: 2px;
|
|
8579
8579
|
}
|
|
8580
8580
|
|
|
@@ -8593,6 +8593,6 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,c=`Warni
|
|
|
8593
8593
|
input[type="range"]:focus::-moz-range-thumb {
|
|
8594
8594
|
transform: scale(1.1);
|
|
8595
8595
|
}
|
|
8596
|
-
`});return(L,S)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-2 w-full",a.unref(n).class]),"aria-busy":!1},[h.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",CX,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",LX,[e.showValue?(a.openBlock(),a.createElementBlock("div",SX,[a.createElementVNode("span",IX,a.toDisplayString(r.valuePrefix)+a.toDisplayString(e.min)+a.toDisplayString(r.valueSuffix),1),a.createElementVNode("span",_X,a.toDisplayString(f.value),1),a.createElementVNode("span",AX,a.toDisplayString(r.valuePrefix)+a.toDisplayString(e.max)+a.toDisplayString(r.valueSuffix),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",BX,[a.createElementVNode("div",{class:a.normalizeClass(["absolute top-1/2 -translate-y-1/2 w-full h-full bg-gray-200 rounded-lg pointer-events-none",[e.size==="sm"?"h-2":e.size==="md"?"h-2.5":"h-3"]])},[a.createElementVNode("div",{class:a.normalizeClass(["absolute top-0 left-0 h-full rounded-lg transition-all",[e.color==="blue"?"bg-blue-500":e.color==="green"?"bg-green-500":e.color==="red"?"bg-red-500":e.color==="yellow"?"bg-yellow-500":e.color==="purple"?"bg-purple-500":"bg-gray-500"]]),style:a.normalizeStyle({width:`${m.value}%`})},null,6)],2),a.createElementVNode("input",{id:d.value,ref_key:"sliderRef",ref:i,type:"range",value:e.modelValue,min:e.min,max:e.max,step:e.step,disabled:e.disabled,placeholder:e.placeholder,class:a.normalizeClass(p.value),onInput:k,onChange:g,onMousedown:x,onMouseup:C,onTouchstart:x,onTouchend:C},null,42,VX)]),e.marks.length>0?(a.openBlock(),a.createElementBlock("div",zX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.marks,M=>(a.openBlock(),a.createElementBlock("div",{key:M.value,class:"absolute flex flex-col items-center",style:a.normalizeStyle({left:`${v(M.value)}%`,transform:"translateX(-50%)"})},[S[0]||(S[0]=a.createElementVNode("div",{class:"w-1 h-2 bg-gray-400 rounded-full"},null,-1)),a.createElementVNode("span",PX,a.toDisplayString(M.label),1)],4))),128))])):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createElementBlock("div",qX,[S[1]||(S[1]=a.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),a.createTextVNode(" "+a.toDisplayString(e.error),1)])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent("style"),{key:2},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.value),1)]),_:1})):a.createCommentVNode("",!0)],2)),[[a.vShow,u.value]])}}),EX={class:"inline-flex items-center gap-3"},TX=["for"],HX={key:0,class:"text-red-500 ml-1"},OX=["id","name","aria-checked","aria-label","disabled"],jX={key:0,class:"absolute inset-0 flex items-center justify-center"},FX={class:"relative z-10 flex items-center gap-2"},NX=["id","name","aria-checked","aria-label","disabled"],RX={key:0,class:"absolute inset-0 flex items-center justify-center"},$X=["for"],UX={key:0,class:"text-red-500 ml-1"},WX={name:"DCodeSwitch"},D_=a.defineComponent({...WX,props:{modelValue:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!1},labelPosition:{default:"right"},id:{},name:{},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1},tooltipActiveText:{default:"Aktif"},tooltipInactiveText:{default:"Tidak Aktif"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:p=>{!n.disabled&&!n.loading&&(o("update:modelValue",p),o("change",p))}}),i=a.computed(()=>{switch(n.size){case"small":return"w-9 h-5";case"large":return"w-14 h-7";default:return"w-11 h-6"}}),s=a.computed(()=>{switch(n.size){case"small":return"w-4 h-4";case"large":return"w-6 h-6";default:return"w-5 h-5"}}),c=a.computed(()=>{switch(n.size){case"small":return"translate-x-4";case"large":return"translate-x-7";default:return"translate-x-5"}}),d=a.computed(()=>{if(n.disabled)return"bg-gray-300";if(!r.value)return"bg-gray-200";switch(n.color){case"success":return"bg-green-500";case"warning":return"bg-yellow-500";case"danger":return"bg-red-500";default:return"bg-blue-500"}}),h=()=>{r.value=!r.value},u=a.computed(()=>r.value?n.tooltipActiveText:n.tooltipInactiveText);return(p,y)=>(a.openBlock(),a.createElementBlock("div",EX,[e.label&&e.labelPosition==="left"?(a.openBlock(),a.createElementBlock("label",{key:0,for:e.id,class:a.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":e.disabled}])},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",HX,"*")):a.createCommentVNode("",!0)],10,TX)):a.createCommentVNode("",!0),a.createVNode(a.unref(NB),null,{default:a.withCtx(()=>[e.showTooltip?(a.openBlock(),a.createBlock(a.unref(jB),{key:0,"delay-duration":200},{default:a.withCtx(()=>[a.createVNode(a.unref(RB),{"as-child":""},{default:a.withCtx(()=>[a.createElementVNode("button",{type:"button",id:e.id,name:e.name,"aria-checked":r.value?"true":"false","aria-label":e.label||"Toggle switch",disabled:e.disabled||e.loading,class:a.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":e.disabled,"cursor-wait":e.loading,"cursor-pointer":!e.disabled&&!e.loading}]),onClick:h},[a.createElementVNode("span",{class:a.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[e.loading?(a.openBlock(),a.createElementBlock("span",jX,[...y[0]||(y[0]=[a.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):a.createCommentVNode("",!0),a.createVNode(a.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:a.withCtx(()=>[r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(pt),{key:1,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):a.createCommentVNode("",!0)]),_:1})],2)],10,OX)]),_:1}),a.createVNode(a.unref(FB),{side:"top","side-offset":8,class:a.normalizeClass(["animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0",[r.value?"bg-green-600 dark:bg-green-500 text-white":"bg-gray-700 dark:bg-gray-600 text-white"]])},{default:a.withCtx(()=>[a.createElementVNode("span",FX,[a.createElementVNode("span",{class:a.normalizeClass(["inline-block w-2 h-2 rounded-full animate-pulse",r.value?"bg-green-200":"bg-gray-300"])},null,2),a.createTextVNode(" "+a.toDisplayString(u.value),1)])]),_:1},8,["class"])]),_:1})):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:e.id,name:e.name,"aria-checked":r.value?"true":"false","aria-label":e.label||"Toggle switch",disabled:e.disabled||e.loading,class:a.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":e.disabled,"cursor-wait":e.loading,"cursor-pointer":!e.disabled&&!e.loading}]),onClick:h},[a.createElementVNode("span",{class:a.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[e.loading?(a.openBlock(),a.createElementBlock("span",RX,[...y[1]||(y[1]=[a.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):a.createCommentVNode("",!0),a.createVNode(a.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:a.withCtx(()=>[r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(pt),{key:1,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):a.createCommentVNode("",!0)]),_:1})],2)],10,NX))]),_:1}),e.label&&e.labelPosition==="right"?(a.openBlock(),a.createElementBlock("label",{key:1,for:e.id,class:a.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":e.disabled}])},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",UX,"*")):a.createCommentVNode("",!0)],10,$X)):a.createCommentVNode("",!0)]))}}),GX=["aria-busy"],KX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},XX={key:1,class:"flex justify-end"},ZX={key:0,class:"ml-1 text-destructive"},YX={class:"relative w-full group"},QX={key:0,class:"absolute inset-y-0 left-4 flex items-center text-muted-foreground"},JX={key:1},eZ={key:1,class:"absolute inset-y-0 right-4 flex items-center"},tZ={key:2,class:"absolute inset-y-0 right-4 flex items-center"},aZ={key:3,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},nZ={key:1,class:"text-xs text-destructive"},E_=a.defineComponent({name:"DCodeTextField",inheritAttrs:!1,__name:"DCodeTextField",props:{modelValue:{},prependInner:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null},placeholder:{default:""},icon:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=a.computed(()=>{var P;return((P=c.valueType)==null?void 0:P.toLowerCase())==="password"||n.type==="password"}),r=a.ref(!1),i=()=>{r.value=!r.value},s=t,c=e,d=a.computed(()=>n.label);a.computed(()=>c.visible??!0);const h=Math.random().toString(36).slice(2,7),u=a.computed(()=>`app-text-field-${n.id||d.value||"field"}-${h}`),p=a.computed(()=>{const P=n.required,R=n["aria-required"];return P===""||P===!0||P==="true"||(R==="true"||R===!0)}),y=a.computed(()=>{const{label:P,class:R,id:ee,required:ye,"aria-required":Ne,...ut}=n;return ut}),f=a.computed(()=>{var R,ee;const P={...y.value};return((R=c.valueType)==null?void 0:R.toLowerCase())==="number"&&(P.type="text",P.inputmode="numeric",P.pattern="[0-9]*"),((ee=c.valueType)==null?void 0:ee.toLowerCase())==="email"&&(P.type="email",P.inputmode="email"),o.value&&(P.type=r.value?"text":"password"),c.disabled&&(P.disabled=!0),P}),m=a.computed(()=>{const P=c.modelValue;return P==null||String(P).length===0}),k=a.computed(()=>c.clearable?c.hideClearWhenEmpty?!m.value:!0:!1),g=a.computed(()=>{switch(c.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),x=a.ref(String(c.modelValue??""));a.watch(()=>c.modelValue,P=>{const R=String(P??"");R!==x.value&&(x.value=R)});const C=a.ref(!1),v=a.ref(!1),b=P=>P.split(/(\s+)/).map(R=>{if(R.trim()==="")return R;const ee=R.toLowerCase();return ee.charAt(0).toUpperCase()+ee.slice(1)}).join(""),L=P=>{const R=P.toLowerCase(),ee=R.search(new RegExp("\\p{L}","u"));return ee<0?R:R.slice(0,ee)+R.charAt(ee).toUpperCase()+R.slice(ee+1)},S=P=>{switch(c.textCase){case"uppercase":return P.toUpperCase();case"lowercase":return P.toLowerCase();case"titlecase":return b(P);case"sentencecase":return L(P);case"none":default:return P}},M=P=>{if(!P)return null;const R=Array.isArray(P)?P.join(""):P;return R?new Set(R):null},w=a.computed(()=>M(c.allowChars)),I=(P,R)=>(P.lastIndex=0,P.test(R)),z=P=>{var At;const R=(At=c.valueType)==null?void 0:At.toLowerCase();if(R==="free"||R==="email"||R==="password")return!0;const ee=P===" ",ye=/\d/.test(P),Ne=new RegExp("\\p{L}","u").test(P),ut=new RegExp("\\p{N}","u").test(P);return R==="number"?ye:R==="letter"?Ne||c.allowSpaces&&ee:R==="letternumber"?Ne||ut||c.allowSpaces&&ee:!0},B=P=>{let R="";for(const ee of P){const ye=!!w.value&&w.value.has(ee);c.pattern&&!ye&&!I(c.pattern,ee)||!ye&&!z(ee)||(R+=ee)}return R},A=a.computed(()=>{const P=n.maxlength??n.maxLength;let R=Number.NaN;return typeof P=="number"?R=P:typeof P=="string"&&(R=Number.parseInt(P,10)),Number.isFinite(R)&&R>0?R:-1}),V=a.computed(()=>x.value.length),E=a.computed(()=>c.showCharCount?A.value>0:!1),W=P=>A.value>0?P.slice(0,A.value):P,H=P=>{const R=B(P),ee=c.applyTextCaseToValue?S(R):R;return W(ee)};let O=null;const U=P=>{var R;if(P==="")return null;if(((R=c.valueType)==null?void 0:R.toLowerCase())==="number"&&c.returnNumber){const ee=Number(P);return Number.isFinite(ee)?ee:null}return P},J=P=>{x.value=P,s("update:modelValue",U(P))},T=(P,R)=>{const ee=W(R);v.value=!0,P.value=ee,J(ee),queueMicrotask(()=>v.value=!1)},F=(P,R)=>{const ee=P.selectionStart??P.value.length,ye=P.selectionEnd??P.value.length;if(A.value>0){const Ne=P.value.length-(ye-ee),ut=A.value-Ne;if(ut<=0)return;R=R.slice(0,ut)}P.setRangeText(R,ee,ye,"end"),T(P,H(P.value))},N=P=>{var ye;if(!O||C.value||v.value||!((ye=P.inputType)!=null&&ye.startsWith("insert")))return;const R=P.data;if(R==null)return;const ee=H(R);ee!==R&&(P.preventDefault(),ee.length>0&&F(O,ee))},Y=P=>{var ye;if(!O||C.value||v.value)return;const R=((ye=P.clipboardData)==null?void 0:ye.getData("text"))??"",ee=H(R);ee!==R&&(P.preventDefault(),ee.length>0&&F(O,ee))},Q=P=>{if(!O||C.value||v.value)return;const R=P.target,ee=R.value??"",ye=H(ee);ye===ee?J(ye):T(R,ye)},ie=()=>C.value=!0,ue=()=>{if(C.value=!1,!O)return;const P=O.value??"",R=H(P);R===P?J(R):T(O,R)};a.onMounted(()=>{if(O=document.getElementById(u.value),!O)return;O.addEventListener("beforeinput",N),O.addEventListener("paste",Y),O.addEventListener("input",Q),O.addEventListener("compositionstart",ie),O.addEventListener("compositionend",ue);const P=O.value??"",R=H(P);R===P?J(R):T(O,R)}),a.onBeforeUnmount(()=>{O&&(O.removeEventListener("beforeinput",N),O.removeEventListener("paste",Y),O.removeEventListener("input",Q),O.removeEventListener("compositionstart",ie),O.removeEventListener("compositionend",ue),O=null)});const pe=()=>{x.value="",O&&(O.value=""),s("update:modelValue",null),s("clear")},Ie=a.computed(()=>E.value&&V.value>0),ce=a.computed(()=>`${V.value} / ${A.value}`),X=a.computed(()=>!!c.error);return(P,R)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":c.skeleton},[c.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[d.value?(a.openBlock(),a.createElementBlock("div",KX)):a.createCommentVNode("",!0),R[1]||(R[1]=a.createElementVNode("div",{class:"relative w-full"},[a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),E.value?(a.openBlock(),a.createElementBlock("div",XX,[...R[0]||(R[0]=[a.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[d.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:u.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.value)+" ",1),p.value?(a.openBlock(),a.createElementBlock("span",ZX,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",YX,[c.icon||c.prependInner||P.$slots["prepend-inner"]?(a.openBlock(),a.createElementBlock("div",QX,[a.renderSlot(P.$slots,"prepend-inner",{},()=>[c.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.icon),{key:0,class:"h-4 w-4"})):c.prependInner?(a.openBlock(),a.createElementBlock("span",JX,a.toDisplayString(c.prependInner),1)):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),a.createVNode(a.unref(z_),a.mergeProps({id:u.value,modelValue:x.value},f.value,{placeholder:c.placeholder,style:`text-transform: ${g.value}; padding-left: ${c.icon||c.prependInner||P.$slots["prepend-inner"]?"2.5rem":"0.75rem"} !important; padding-right: ${k.value||o.value?"2.5rem":"0.75rem"} !important;`,class:["w-full h-10 flex items-center gap-2 rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-within:ring-1 focus-within:ring-white",X.value?"border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px]":""]}),null,16,["id","modelValue","placeholder","style","class"]),o.value?(a.openBlock(),a.createElementBlock("div",eZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground",tabindex:"-1",onClick:i},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.value?a.unref(ws):a.unref(il)),{class:"w-4 h-4"}))])])):a.createCommentVNode("",!0),k.value&&!o.value?(a.openBlock(),a.createElementBlock("div",tZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-lg leading-none","aria-label":"Clear input",onClick:pe}," ✕ ")])):a.createCommentVNode("",!0),Ie.value&&!X.value?(a.openBlock(),a.createElementBlock("p",aZ,a.toDisplayString(ce.value),1)):a.createCommentVNode("",!0)]),X.value?(a.openBlock(),a.createElementBlock("p",nZ,a.toDisplayString(c.error),1)):a.createCommentVNode("",!0)],64))],10,GX)),[[a.vShow,e.visible]])}}),oZ=["aria-busy"],rZ={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},iZ={key:0,class:"ml-1 text-destructive"},sZ={class:"relative w-full group"},lZ=["id","value"],cZ={key:0,class:"absolute top-1 right-2"},dZ={key:1,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},hZ={key:1,class:"text-xs text-destructive"},SS=a.defineComponent({name:"DCodeTextarea",inheritAttrs:!1,__name:"DCodeTextarea",props:{modelValue:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>n.label),s=a.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`app-textarea-${n.id||i.value||"field"}-${c}`),h=a.computed(()=>{const X=n.required,P=n["aria-required"];return X===""||X===!0||X==="true"||(P==="true"||P===!0)}),u=a.computed(()=>{const{label:X,class:P,id:R,required:ee,"aria-required":ye,...Ne}=n;return Ne}),p=a.computed(()=>{const X=n.maxlength;let P=Number.NaN;return typeof X=="number"?P=X:typeof X=="string"&&(P=Number.parseInt(X,10)),Number.isFinite(P)&&P>0?P:-1}),y=X=>p.value>0?X.slice(0,p.value):X,f=a.computed(()=>{const X=r.modelValue;return X==null||String(X).length===0}),m=a.computed(()=>r.clearable?r.hideClearWhenEmpty?!f.value:!0:!1),k=a.ref(String(r.modelValue??""));a.watch(()=>r.modelValue,X=>{const P=String(X??"");P!==k.value&&(k.value=P)});const g=a.ref(!1),x=a.ref(!1),C=X=>X.split(/(\s+)/).map(P=>{if(P.trim()==="")return P;const R=P.toLowerCase();return R.charAt(0).toUpperCase()+R.slice(1)}).join(""),v=X=>{const P=X.toLowerCase(),R=P.search(new RegExp("\\p{L}","u"));return R<0?P:P.slice(0,R)+P.charAt(R).toUpperCase()+P.slice(R+1)},b=X=>{switch(r.textCase){case"uppercase":return X.toUpperCase();case"lowercase":return X.toLowerCase();case"titlecase":return C(X);case"sentencecase":return v(X);case"none":default:return X}},L=a.computed(()=>{switch(r.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),S=X=>{if(!X)return null;const P=Array.isArray(X)?X.join(""):X;return P?new Set(P):null},M=a.computed(()=>S(r.allowChars)),w=(X,P)=>(X.lastIndex=0,X.test(P)),I=X=>{if(X===`
|
|
8597
|
-
`)return r.valueType!=="number";if(r.valueType==="free")return!0;const
|
|
8598
|
-
`,""),R=Number(P);return Number.isFinite(R)?R:null}return X},E=X=>{k.value=X,o("update:modelValue",V(X))},W=(X,P)=>{const R=y(P);x.value=!0,X.value=R,E(R),queueMicrotask(()=>x.value=!1)},H=(X,P)=>{const R=X.selectionStart??X.value.length,ee=X.selectionEnd??X.value.length;if(p.value>0){const ye=X.value.length-(ee-R),Ne=p.value-ye;if(Ne<=0)return;P=P.slice(0,Ne)}X.setRangeText(P,R,ee,"end"),W(X,B(X.value))},O=X=>{var ee;if(!A||g.value||x.value||!((ee=X.inputType)!=null&&ee.startsWith("insert")))return;const P=X.data;if(P==null)return;const R=B(P);R!==P&&(X.preventDefault(),R.length>0&&H(A,R))},U=X=>{var ee;if(!A||g.value||x.value)return;const P=((ee=X.clipboardData)==null?void 0:ee.getData("text"))??"",R=B(P);R!==P&&(X.preventDefault(),R.length>0&&H(A,R))},J=async X=>{if(!A||g.value||x.value)return;const P=X.target,R=P.value??"",ee=B(R);if(ee===R){const ye=P.selectionStart??ee.length,Ne=P.selectionEnd??ee.length;W(P,ee),await a.nextTick();try{P.setSelectionRange(ye,Ne)}catch{}E(ee)}else{const ye=P.selectionStart??ee.length,Ne=P.selectionEnd??ee.length;W(P,ee),await a.nextTick();try{P.setSelectionRange(ye,Ne)}catch{}}},T=()=>g.value=!0,F=()=>{if(g.value=!1,!A)return;const X=A.value??"",P=B(X);P===X?E(P):W(A,P)};a.onMounted(()=>{if(A=document.getElementById(d.value),!A)return;A.addEventListener("beforeinput",O),A.addEventListener("paste",U),A.addEventListener("input",J),A.addEventListener("compositionstart",T),A.addEventListener("compositionend",F);const X=A.value??"",P=B(X);P===X?E(P):W(A,P)}),a.onBeforeUnmount(()=>{A&&(A.removeEventListener("beforeinput",O),A.removeEventListener("paste",U),A.removeEventListener("input",J),A.removeEventListener("compositionstart",T),A.removeEventListener("compositionend",F),A=null)});const N=()=>{k.value="",A&&(A.value=""),o("update:modelValue",null),o("clear")},Y=a.computed(()=>k.value.length),Q=a.computed(()=>r.showCharCount?p.value>0:!1),ie=a.computed(()=>Q.value&&Y.value>0),ue=a.computed(()=>`${Y.value} / ${p.value}`),pe=a.computed(()=>!!r.error),Ie=a.computed(()=>{const X=n.rows,P=typeof X=="number"?X:Number.parseInt(String(X??""),10);return Number.isFinite(P)&&P>0?P:3}),ce=a.computed(()=>({height:`${Ie.value*24+16}px`}));return(X,P)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",rZ)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse",style:a.normalizeStyle(ce.value)},null,4)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",iZ,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",sZ,[a.createElementVNode("textarea",a.mergeProps({id:d.value,value:k.value},u.value,{style:`text-transform: ${L.value}; padding-right: ${m.value?"2.5rem":"0.75rem"} !important; padding-left: 0.75rem !important;`,class:["flex min-h-[120px] w-full rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",pe.value?"border-destructive focus-visible:ring-destructive":""]}),null,16,lZ),m.value?(a.openBlock(),a.createElementBlock("div",cZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-sm leading-none","aria-label":"Clear textarea",onClick:N}," ✕ ")])):a.createCommentVNode("",!0),ie.value&&!pe.value?(a.openBlock(),a.createElementBlock("p",dZ,a.toDisplayString(ue.value),1)):a.createCommentVNode("",!0)]),pe.value?(a.openBlock(),a.createElementBlock("p",hZ,a.toDisplayString(r.error),1)):a.createCommentVNode("",!0)],64))],10,oZ)),[[a.vShow,s.value]])}}),LP=a.defineComponent({__name:"Avatar",props:{class:{type:[Boolean,null,String,Object,Array]},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_H),{class:a.normalizeClass(a.unref(Me)(a.unref(uZ)({size:e.size,shape:e.shape}),t.class))},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),SP=a.defineComponent({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(BH),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),IP=a.defineComponent({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(PH),a.mergeProps(t,{class:"h-full w-full object-cover"}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),uZ=xl("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),IS=a.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(nj),a.mergeProps(a.unref(n),{class:a.unref(Me)("shrink-0 bg-border",t.orientation==="horizontal"?"h-px w-full":"w-px h-full",t.class)}),null,16,["class"]))}}),pZ={class:"bg-card text-card-foreground"},yZ={class:"pb-6 px-3"},fZ={key:0,class:"flex justify-center p-8"},mZ={key:1,class:"p-8 text-center text-red-500"},kZ={key:2,class:"relative"},gZ={class:"space-y-6"},bZ={class:"rounded-xl border bg-card text-card-foreground shadow"},MZ={class:"p-4"},xZ={class:"flex items-center justify-between gap-3"},wZ={class:"font-medium"},vZ={class:"text-xs text-muted-foreground"},CZ={class:"mt-1 text-sm text-muted-foreground"},LZ={class:"text-foreground"},SZ={class:"text-foreground"},IZ={class:"mt-1 text-xs text-muted-foreground"},_Z={key:0,class:"mt-3 flex items-center gap-2 text-sm"},AZ={class:"flex items-center justify-between gap-3"},BZ={class:"font-medium"},VZ={class:"text-xs text-muted-foreground"},zZ={class:"mt-2 text-sm text-muted-foreground"},PZ={class:"flex flex-wrap items-center justify-between gap-3"},qZ={class:"flex items-center gap-3"},DZ={class:"leading-tight"},EZ={class:"text-sm font-medium"},TZ={class:"text-xs text-muted-foreground"},HZ={class:"flex items-center gap-2"},OZ={key:2,class:"flex flex-col gap-3 sm:flex-row sm:items-start"},jZ={class:"h-16 w-16 shrink-0 rounded-lg bg-muted flex items-center justify-center"},FZ=["src"],NZ={class:"flex-1"},RZ={class:"flex items-center justify-between gap-3"},$Z={class:"font-medium"},UZ={class:"text-xs text-muted-foreground"},WZ={class:"mt-1 text-sm text-muted-foreground"},GZ={class:"text-left sm:text-center"},KZ={class:"text-xs text-muted-foreground"},XZ={class:"text-left sm:text-center"},ZZ={class:"text-xs text-muted-foreground"},YZ={class:"text-left sm:text-center"},QZ={class:"text-xs text-muted-foreground"},JZ={class:"flex items-center justify-between gap-3"},eY={class:"font-medium"},tY={class:"text-xs text-muted-foreground"},aY={class:"mt-2 text-sm text-muted-foreground"},nY={class:"mt-3 flex items-center gap-3"},oY={class:"text-sm font-medium"},rY={class:"flex items-start justify-between gap-3"},iY={class:"font-medium"},sY={class:"mt-3 grid gap-2 text-sm"},lY={class:"flex items-center justify-between gap-3"},cY={class:"flex items-center gap-2 text-muted-foreground"},dY={class:"font-medium"},hY={class:"flex items-center justify-between gap-3"},uY={class:"flex items-center gap-2 text-muted-foreground"},pY={class:"font-medium"},yY={class:"flex items-center justify-between gap-3"},fY={class:"flex items-center gap-2 text-muted-foreground"},mY={class:"font-medium"},kY={class:"flex items-center justify-between"},gY={class:"flex items-center gap-2"},bY={class:"flex items-start justify-between gap-3"},MY={class:"flex items-center gap-2"},xY={class:"font-medium"},wY={class:"mt-2 text-sm text-muted-foreground"},vY={key:0,class:"mt-1 text-sm text-muted-foreground"},CY={class:"flex flex-wrap items-center justify-between gap-3"},LY={class:"flex items-center gap-2"},SY={class:"text-xs text-muted-foreground"},_P=a.defineComponent({name:"DCodeTimelineWithIcons",__name:"DCodeTimelineWithIcons",props:{items:{},apiUrl:{},apiMethod:{}},setup(e){const n=kT(mT).smaller("md");a.ref(!1);const o=e,r=a.ref(!1),i=a.ref(null),s=a.ref([]),c=a.computed(()=>s.value.length>0?s.value:o.items&&o.items.length>0?o.items:[]),d=async()=>{if(o.apiUrl){r.value=!0,i.value=null;try{const p=await fetch(o.apiUrl,{method:o.apiMethod||"GET",headers:{"Content-Type":"application/json"}});if(!p.ok)throw new Error(`Error: ${p.status} ${p.statusText}`);const y=await p.json();Array.isArray(y)?s.value=y:y.data&&Array.isArray(y.data)?s.value=y.data:y.items&&Array.isArray(y.items)?s.value=y.items:s.value=[]}catch(p){console.error("Failed to fetch timeline items:",p),i.value=p.message||"Failed to fetch data"}finally{r.value=!1}}};a.onMounted(()=>{o.apiUrl&&d()}),a.watch(()=>o.apiUrl,()=>{o.apiUrl?d():s.value=[]});const h=p=>{switch(p){case"flight":return{Icon:ul,Circle:"bg-primary/10 text-primary border-primary/30"};case"interview":return{Icon:ol,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};case"product":return{Icon:ml,Circle:"bg-amber-500/10 text-amber-600 border-amber-500/30"};case"design":return{Icon:mr,Circle:"bg-sky-500/10 text-sky-600 border-sky-500/30"};case"server":return{Icon:yl,Circle:"bg-rose-500/10 text-rose-600 border-rose-500/30"};case"location":return{Icon:cl,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};default:return{Icon:nl,Circle:"bg-primary/10 text-primary border-primary/30"}}},u=p=>p.split(" ").filter(Boolean).slice(0,2).map(y=>{var f;return(f=y[0])==null?void 0:f.toUpperCase()}).join("");return(p,y)=>{const f=a.resolveComponent("ShoppingCart"),m=a.resolveComponent("RefreshCcw"),k=a.resolveComponent("MapPin");return a.openBlock(),a.createElementBlock("div",pZ,[y[8]||(y[8]=a.createElementVNode("div",{class:"flex flex-col space-y-1.5 py-6 px-3"},[a.createElementVNode("h3",{class:"leading-none tracking-tight text-lg font-medium"},"Timeline With Icons")],-1)),a.createElementVNode("div",yZ,[r.value?(a.openBlock(),a.createElementBlock("div",fZ,[...y[0]||(y[0]=[a.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):i.value?(a.openBlock(),a.createElementBlock("div",mZ,a.toDisplayString(i.value),1)):(a.openBlock(),a.createElementBlock("div",kZ,[y[7]||(y[7]=a.createElementVNode("div",{class:"absolute left-4 top-0 h-full w-px bg-border"},null,-1)),a.createElementVNode("div",gZ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(g,x)=>(a.openBlock(),a.createElementBlock("div",{key:x,class:"relative pl-14"},[a.createElementVNode("div",{class:a.normalizeClass(["absolute left-0 top-2 flex h-8 w-8 items-center justify-center rounded-full border",h(g.type).Circle])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(g.type).Icon),{class:"h-4 w-4"}))],2),a.createElementVNode("div",bZ,[a.createElementVNode("div",MZ,[g.type==="flight"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",xZ,[a.createElementVNode("p",wZ,a.toDisplayString(g.title),1),a.createElementVNode("p",vZ,a.toDisplayString(g.meta),1)]),a.createElementVNode("p",CZ,[a.createElementVNode("span",LZ,a.toDisplayString(g.from),1),a.createVNode(a.unref(Qs),{class:"mx-2 inline h-4 w-4"}),a.createElementVNode("span",SZ,a.toDisplayString(g.to),1)]),a.createElementVNode("p",IZ,a.toDisplayString(g.time),1),g.fileName?(a.openBlock(),a.createElementBlock("div",_Z,[a.createVNode(a.unref(vs),{class:"h-4 w-4 text-muted-foreground"}),a.createElementVNode("span",null,a.toDisplayString(g.fileName),1)])):a.createCommentVNode("",!0)],64)):g.type==="interview"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",AZ,[a.createElementVNode("p",BZ,a.toDisplayString(g.title),1),a.createElementVNode("p",VZ,a.toDisplayString(g.meta),1)]),a.createElementVNode("p",zZ,a.toDisplayString(g.desc),1),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",PZ,[a.createElementVNode("div",qZ,[a.createVNode(a.unref(LP),{class:"h-10 w-10"},{default:a.withCtx(()=>[g.avatarUrl?(a.openBlock(),a.createBlock(a.unref(IP),{key:0,src:g.avatarUrl},null,8,["src"])):a.createCommentVNode("",!0),a.createVNode(a.unref(SP),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),a.createElementVNode("div",DZ,[a.createElementVNode("p",EZ,a.toDisplayString(g.personName),1),a.createElementVNode("p",TZ,a.toDisplayString(g.personRole),1)])]),a.createElementVNode("div",HZ,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(Cs),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(hl),{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="product"?(a.openBlock(),a.createElementBlock("div",OZ,[a.createElementVNode("div",jZ,[g.imgUrl?(a.openBlock(),a.createElementBlock("img",{key:0,src:g.imgUrl,class:"h-full w-full rounded-lg object-cover",alt:"product"},null,8,FZ)):(a.openBlock(),a.createBlock(f,{key:1,class:"h-5 w-5 text-muted-foreground"}))]),a.createElementVNode("div",NZ,[a.createElementVNode("div",RZ,[a.createElementVNode("p",$Z,a.toDisplayString(g.title),1),a.createElementVNode("p",UZ,a.toDisplayString(g.meta),1)]),a.createElementVNode("p",WZ,a.toDisplayString(g.desc),1),a.createElementVNode("div",{class:a.normalizeClass(["mt-4 grid gap-3",a.unref(n)?"grid-cols-1":"grid-cols-3"])},[a.createElementVNode("div",GZ,[y[1]||(y[1]=a.createElementVNode("p",{class:"text-sm font-medium"},"Customer",-1)),a.createElementVNode("p",KZ,a.toDisplayString(g.customer),1)]),a.createElementVNode("div",XZ,[y[2]||(y[2]=a.createElementVNode("p",{class:"text-sm font-medium"},"Price",-1)),a.createElementVNode("p",ZZ,a.toDisplayString(g.price),1)]),a.createElementVNode("div",YZ,[y[3]||(y[3]=a.createElementVNode("p",{class:"text-sm font-medium"},"Quantity",-1)),a.createElementVNode("p",QZ,a.toDisplayString(g.qty),1)])],2)])])):g.type==="design"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createElementVNode("div",JZ,[a.createElementVNode("p",eY,a.toDisplayString(g.title),1),a.createElementVNode("p",tY,a.toDisplayString(g.meta),1)]),a.createElementVNode("p",aY,a.toDisplayString(g.desc),1),a.createElementVNode("div",nY,[a.createVNode(a.unref(LP),{class:"h-10 w-10"},{default:a.withCtx(()=>[g.avatarUrl?(a.openBlock(),a.createBlock(a.unref(IP),{key:0,src:g.avatarUrl},null,8,["src"])):a.createCommentVNode("",!0),a.createVNode(a.unref(SP),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u(g.personName??"")),1)]),_:2},1024)]),_:2},1024),a.createElementVNode("p",oY,a.toDisplayString(g.personName),1)])],64)):g.type==="server"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createElementVNode("div",rY,[a.createElementVNode("p",iY,a.toDisplayString(g.title),1),a.createVNode(a.unref(Ea),{variant:"destructive",class:"h-6"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(g.chipText??""),1)]),_:2},1024)]),a.createElementVNode("div",sY,[a.createElementVNode("div",lY,[a.createElementVNode("div",cY,[a.createVNode(a.unref(sl),{class:"h-4 w-4"}),y[4]||(y[4]=a.createElementVNode("span",null,"IP Address",-1))]),a.createElementVNode("span",dY,a.toDisplayString(g.ip),1)]),a.createElementVNode("div",hY,[a.createElementVNode("div",uY,[a.createVNode(a.unref(xs),{class:"h-4 w-4"}),y[5]||(y[5]=a.createElementVNode("span",null,"CPU",-1))]),a.createElementVNode("span",pY,a.toDisplayString(g.cpu),1)]),a.createElementVNode("div",yY,[a.createElementVNode("div",fY,[a.createVNode(a.unref(xs),{class:"h-4 w-4"}),y[6]||(y[6]=a.createElementVNode("span",null,"Memory",-1))]),a.createElementVNode("span",mY,a.toDisplayString(g.memory),1)])]),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",kY,[a.createElementVNode("div",gY,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(fl),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(m,{class:"h-4 w-4"})]),_:1})])])],64)):g.type==="location"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createElementVNode("div",bY,[a.createElementVNode("div",MY,[a.createVNode(k,{class:"h-4 w-4 text-muted-foreground"}),a.createElementVNode("p",xY,a.toDisplayString(g.title),1)]),a.createVNode(a.unref(Ea),{variant:"destructive",class:"h-6"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(g.chipText),1)]),_:2},1024)]),a.createElementVNode("p",wY,a.toDisplayString(g.desc1),1),g.desc2?(a.openBlock(),a.createElementBlock("p",vY,a.toDisplayString(g.desc2),1)):a.createCommentVNode("",!0),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",CY,[a.createElementVNode("div",LY,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(Cs),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(bl),{class:"h-4 w-4"})]),_:1})]),a.createElementVNode("p",SY,"Due date: "+a.toDisplayString(g.due),1)])],64)):a.createCommentVNode("",!0)])])]))),128))])]))])])}}}),IY={class:"dcode-upload-file"},_Y={class:"border-2 border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-6 flex flex-col items-center justify-center text-center hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer"},AY={key:0,class:"text-xs text-gray-500 mt-1"},BY=["accept"],VY={key:1,class:"text-xs text-red-600 mt-1"},AP=a.defineComponent({name:"DCodeUploadFile",__name:"DCodeUploadFile",props:{label:{},accept:{},errorMessage:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r=>{var s;const i=(s=r.target.files)==null?void 0:s[0];i&&n("update:modelValue",i)};return(r,i)=>(a.openBlock(),a.createElementBlock("div",IY,[e.label?(a.openBlock(),a.createBlock(V_,{key:0,label:e.label},null,8,["label"])):a.createCommentVNode("",!0),a.createElementVNode("div",_Y,[a.createVNode(a.unref(ba),{class:"w-8 h-8 text-gray-400 mb-2"}),i[0]||(i[0]=a.createElementVNode("p",{class:"text-sm text-gray-600 dark:text-gray-400"},[a.createElementVNode("span",{class:"font-medium text-primary-600"},"Click to upload"),a.createTextVNode(" or drag and drop ")],-1)),e.accept?(a.openBlock(),a.createElementBlock("p",AY,a.toDisplayString(e.accept),1)):a.createCommentVNode("",!0),a.createElementVNode("input",{type:"file",class:"hidden",onChange:o,accept:e.accept},null,40,BY)]),e.errorMessage?(a.openBlock(),a.createElementBlock("p",VY,a.toDisplayString(e.errorMessage),1)):a.createCommentVNode("",!0)]))}}),zY=["onClick"],PY={key:1,class:"mr-2 text-xs font-bold shrink-0 opacity-50"},qY={class:"font-semibold text-sm whitespace-normal text-center leading-tight"},DY={key:1},EY={key:0,class:"text-white"},TY={key:1},HY={key:2},OY=["disabled","onClick"],jY={key:1,class:"mr-2 text-sm font-bold opacity-70"},FY={class:"whitespace-normal text-sm text-center leading-tight"},NY={class:"flex flex-col flex-1 min-w-0"},RY={class:"text-sm text-muted-foreground"},$Y={class:"px-1"},UY=["disabled"],WY=["type"],GY=["disabled"],BP=ra(a.defineComponent({name:"DCodeWizard",__name:"DCodeWizard",props:{tabs:{},modelValue:{},defaultTab:{default:0},allowTabClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},cache:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!0},apiOptions:{type:[Object,Function],default:void 0},isVertical:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},typeWizard:{default:"icon"},showNavigation:{type:Boolean,default:!0},submitText:{default:"Simpan"},loading:{type:Boolean,default:!1},isSubmit:{type:Boolean,default:!1}},emits:["update:modelValue","change","loaded","error"],setup(e,{emit:t}){const n=e,o=t,r=et(),i=r==null?void 0:r.DCodeApi;typeof i!="function"&&console.error("[DCodeWizardTabs] useApi() must expose DCodeApi()");const s=a.ref(n.defaultTab),c=a.computed({get(){var M;if(typeof n.modelValue=="string"){const w=(M=n.tabs)==null?void 0:M.findIndex(I=>I.key===n.modelValue);if(w!==void 0&&w>=0)return w}return(typeof n.modelValue=="number"?n.modelValue:void 0)??s.value},set(M){var w;if(s.value=M,typeof n.modelValue=="string"){const I=(w=n.tabs)==null?void 0:w[M];I?o("update:modelValue",I.key):o("update:modelValue",M)}else o("update:modelValue",M)}}),d=a.computed(()=>{var M;return((M=n.tabs)==null?void 0:M.length)??0}),h=a.computed(()=>{var M;return(M=n.tabs)==null?void 0:M[c.value]});function u(M){return d.value<=0?0:Math.min(Math.max(M,0),d.value-1)}function p(M){return M?typeof M=="string"?na[M]||null:M:null}const y=a.reactive({});function f(M){return y[M.key]||(y[M.key]={loaded:!1,loading:!1,data:null,error:null}),y[M.key]}function m(){if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions}function k(M){const w=M.endpoint||{};return{apiModule:M.apiModule||w.apiModule,apiAction:M.apiAction||w.apiAction,apiUrl:w.apiUrl,apiMethod:w.apiMethod||"GET",apiParams:M.apiParams}}function g(M){if(n.isWizard||!n.allowTabClick||n.disabled)return!1;const w=n.tabs[M];return!(!w||w.disabled)}async function x(M){if(typeof M.tab.fetchData=="function"){const E=await M.tab.fetchData(),W=(E==null?void 0:E.data)??E;return(W==null?void 0:W.data)??W}const w=k(M.tab);if(!(w.apiModule&&w.apiAction||w.apiUrl))return null;if(typeof i!="function")throw new Error("DCodeApi is not available");const z=m();let B;if(w.apiUrl)B=await i("","",z,{_url:w.apiUrl,_method:w.apiMethod,_data:w.apiParams??void 0});else{const E={...z,...w.apiParams};B=await i(w.apiModule,w.apiAction,E)}const A=(B==null?void 0:B.data)??B;return(A==null?void 0:A.data)??A}async function C(M,{force:w=!1}={}){const I=u(M),z=n.tabs[I];if(!z)return;const B=f(z);if(!(n.cache&&B.loaded&&!w)&&!B.loading){B.loading=!0,B.error=null;try{const A=await x({tabIndex:I,tab:z});B.data=A,B.loaded=!0,o("loaded",{tabIndex:I,tab:z,data:A})}catch(A){const V=typeof(A==null?void 0:A.message)=="string"&&A.message||typeof A=="string"&&A||"Failed to load tab data.";B.error=V,o("error",{tabIndex:I,tab:z,message:V})}finally{B.loading=!1}}}function v(M){const w=u(M);g(w)&&w!==c.value&&(c.value=w)}function b(M=c.value){return C(M,{force:!0})}function L(){const M=u(c.value-1);M!==c.value&&(c.value=M)}function S(){const M=u(c.value+1);M!==c.value&&(c.value=M)}return a.watch(()=>n.tabs,M=>{for(const w of M??[])f(w)},{immediate:!0}),a.watch(()=>c.value,async M=>{var I;const w=(I=n.tabs)==null?void 0:I[M];w&&o("change",{tabIndex:M,tab:w}),await C(M)},{immediate:!0}),a.watch(()=>n.autoFetchOnMount,async M=>{M&&await C(c.value)},{immediate:!0}),(M,w)=>{var I,z,B;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-full rounded-lg border bg-card text-card-foreground shadow-sm",{"flex flex-row":e.isVertical}])},[a.createElementVNode("div",{class:a.normalizeClass(["flex flex-col space-y-1.5 p-6",{"w-64 border-r pr-0":e.isVertical,"pb-2":e.isWizard&&!e.isVertical}])},[a.createElementVNode("div",{class:a.normalizeClass({"mt-4":!e.isVertical||e.isWizard})},[e.isWizard?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["w-full relative flex overflow-visible rounded-lg",e.isVertical?"flex-col gap-2":""])},[e.isVertical?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("div",{key:A.key,class:"relative z-10 box-border flex items-center gap-3 w-full pb-6 last:pb-0"},[a.createElementVNode("div",{class:a.normalizeClass(["w-8 h-8 rounded-full flex shrink-0 items-center justify-center font-bold text-sm border-2 transition-all bg-card",[V<c.value?"wizard-num-done":"",V===c.value?"wizard-num-active":V>c.value?"wizard-num-pending":""]])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4"})):e.typeWizard==="number"||!A.icon&&e.typeWizard!=="none"?(a.openBlock(),a.createElementBlock("span",DY,[V<c.value?(a.openBlock(),a.createElementBlock("span",EY,"✓")):(a.openBlock(),a.createElementBlock("span",TY,a.toDisplayString(V+1),1))])):(a.openBlock(),a.createElementBlock("span",HY))],2),a.createElementVNode("span",{class:a.normalizeClass(["text-xs font-semibold whitespace-normal px-2 py-1 rounded transition-colors text-left",V===c.value?"wizard-text-active":"wizard-text-pending"])},a.toDisplayString(A.title),3)]))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("div",{key:A.key,onClick:E=>v(V),style:a.normalizeStyle({zIndex:e.tabs.length-V}),class:"relative flex-1 group"},[a.createElementVNode("div",{class:a.normalizeClass(["relative flex items-center justify-center min-h-[3rem] h-auto py-2 px-2 cursor-pointer transition-colors w-full",[V>0?"pl-8":"",V===c.value?"wizard-step-active":V<c.value?"wizard-step-done":"wizard-step-pending"]])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4 mr-2 shrink-0"})):e.typeWizard==="number"?(a.openBlock(),a.createElementBlock("span",PY,a.toDisplayString(V+1),1)):a.createCommentVNode("",!0),a.createElementVNode("span",qY,a.toDisplayString(A.title),1)],2),V<e.tabs.length-1?(a.openBlock(),a.createElementBlock("svg",{key:0,class:a.normalizeClass(["absolute top-0 -right-[15.5px] w-[16px] h-full transition-colors block z-10",[V===c.value?"wizard-svg-active":V<c.value?"wizard-svg-done":"wizard-svg-pending"]]),preserveAspectRatio:"none",viewBox:"0 0 16 48"},[...w[0]||(w[0]=[a.createElementVNode("polygon",{points:"0,0 16,24 0,48"},null,-1)])],2)):a.createCommentVNode("",!0)],12,zY))),128))],2)):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex w-full",e.isVertical?"flex-col gap-1":"flex-wrap border-b border-separate"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("button",{key:A.key,type:"button",disabled:!g(V),onClick:E=>v(V),class:a.normalizeClass(["relative min-h-[3rem] h-auto py-2 flex items-center justify-center gap-2 px-4 transition-all rounded-none focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 wizard-btn-common",a.unref(Me)("border-b border-r",!e.isVertical&&V===e.tabs.length-1&&"border-r-0",V===c.value?"wizard-btn-active":"wizard-btn-pending",!g(V)&&"opacity-60 cursor-not-allowed",e.isVertical?"w-full justify-start border-r-0":"flex-1")])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"h-4 w-4 shrink-0"})):e.typeWizard==="number"?(a.openBlock(),a.createElementBlock("span",jY,a.toDisplayString(V+1),1)):a.createCommentVNode("",!0),a.createElementVNode("span",FY,a.toDisplayString(A.title),1)],10,OY))),128))],2))],2)],2),e.isVertical?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(IS),{key:0})),a.createElementVNode("div",NY,[a.createElementVNode("div",{class:a.normalizeClass(["p-6 flex-1 min-w-0",{"pl-6":e.isVertical}])},[h.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[(I=y[h.value.key])!=null&&I.loading?a.renderSlot(M.$slots,"loading",{key:0,tab:h.value,tabIndex:c.value},()=>[w[1]||(w[1]=a.createElementVNode("div",{class:"rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground"},"Loading...",-1))],!0):a.renderSlot(M.$slots,`tab-${h.value.key}`,{key:1,tab:h.value,tabIndex:c.value,data:(z=y[h.value.key])==null?void 0:z.data,loaded:(B=y[h.value.key])==null?void 0:B.loaded,reload:b},()=>[a.createElementVNode("div",RY,[w[2]||(w[2]=a.createTextVNode(" Slot ",-1)),a.createElementVNode("code",$Y,"tab-"+a.toDisplayString(h.value.key),1),w[3]||(w[3]=a.createTextVNode(" belum dibuat. ",-1))])],!0)],64)):a.createCommentVNode("",!0)],2),e.isWizard||e.showNavigation?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["flex items-center justify-between p-6 pt-0",{"pl-6":e.isVertical}])},[a.createElementVNode("button",{type:"button",onClick:L,disabled:c.value<=0,class:"relative inline-flex items-center justify-center gap-2 px-5 py-2.5 text-sm font-medium transition-all duration-300 rounded-lg bg-[#ffffff] border border-[#e2e8f0] text-[#334155] shadow-sm hover:bg-[#f8fafc] hover:text-[#0f172a] hover:-translate-y-0.5 hover:shadow disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#ffffff] disabled:hover:text-[#334155] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#18181b] dark:border-[#27272a] dark:text-[#d4d4d8] dark:hover:bg-[#27272a] dark:hover:border-[#3f3f46] dark:disabled:hover:bg-[#18181b] dark:disabled:hover:text-[#d4d4d8] focus:outline-none focus:ring-2 focus:ring-[#e2e8f0] focus:ring-offset-2 active:scale-95"}," Sebelumnya ",8,UY),c.value<d.value-1?(a.openBlock(),a.createElementBlock("button",{key:0,type:e.isSubmit?"submit":"button",onClick:S,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"}," Selanjutnya ",8,WY)):(a.openBlock(),a.createElementBlock("button",{key:1,type:"submit",disabled:e.loading,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#3b82f6] dark:hover:bg-[#2563eb] focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"},[e.loading?(a.openBlock(),a.createBlock(a.unref(Lt),{key:0,class:"w-4 h-4 mr-2 animate-spin"})):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(e.submitText),1)],8,GY))],2)):a.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-9379f062"]]);function KY(){return{setPageTitle:n=>{typeof document<"u"&&(document.title=n||document.title),typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:page-title",{detail:{title:n},bubbles:!0,composed:!0}))},setBreadcrumb:n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:breadcrumb",{detail:{items:n},bubbles:!0,composed:!0}))}}}const XY={class:"w-full"},ZY={class:"relative mx-auto min-h-[37.5rem]"},YY={key:"content",class:"w-full"},QY={class:"mb-6"},JY={class:"text-neutral-500 dark:text-neutral-400"},eQ={key:"skeleton",class:"w-full"},tQ={key:"error",class:"flex items-center justify-center p-20 text-red-500 w-full"},VP=ra(a.defineComponent({__name:"AutoLayoutForm",props:{layoutCode:{}},setup(e){var L,S;const t=e,n=(S=(L=a.getCurrentInstance())==null?void 0:L.appContext)==null?void 0:S.app;n&&!n._context.provides[Symbol.for("vue-router-route-location")]&&n.provide(Symbol.for("vue-router-route-location"),{query:{},params:{},path:""});let o={query:{},params:{},path:""};try{const M=ms.useRoute();M&&(o=M)}catch{console.warn("useRoute not available, using fallback")}let r={back:()=>console.warn("Router back() not available"),push:()=>console.warn("Router push() not available")};try{const M=ms.useRouter();M&&(r=M)}catch{console.warn("useRouter not available, using fallback")}const{apiUrl:i,DCodeApi:s}=et();let c;try{c=KS.useI18n().locale}catch{c=a.ref("en")}const{setPageTitle:d}=KY(),h=a.computed(()=>o.params&&"id"in o.params?!0:o.path?/\/edit\/[^\/]+$/.test(o.path):!1),u=a.computed(()=>{if(o.params&&"id"in o.params)return o.params.id;if(!o.path)return null;const M=o.path.match(/\/edit\/([^\/]+)$/);return M?M[1]:null}),p=a.ref({}),y=a.ref(null),f=a.ref(!0),m=a.ref(!1),k=a.ref(t.layoutCode),g=a.computed(()=>{var I;if(!y.value)return"";const M=((I=c==null?void 0:c.value)==null?void 0:I.toLowerCase())||"en";return(M==="en"||M.startsWith("en-")?y.value.titleEN:y.value.titleID)||y.value.title||t.layoutCode});a.watch(g,M=>{M&&d(M)},{immediate:!0});const x=async()=>{var M,w,I;f.value=!0;try{let z=t.layoutCode;o&&o.query&&typeof o.query=="object"&&"code"in o.query&&(z=o.query.code||t.layoutCode);let B=await i(`/api/auto-layout/form/form-dynamic?code=${z}`,"GET");if(!B.status||!B.data||Array.isArray(B.data)&&B.data.length===0)try{const A=await i(`/api/auto-layout/datatable/form-dynamic?code=${z}`,"GET");if(A.status){const V=Array.isArray(A.data)?A.data[0]:A.data;V&&V.code&&(z=V.code,k.value=z,B=await i(`/api/auto-layout/form/form-dynamic?code=${z}`,"GET"))}}catch(A){console.warn("Failed to resolve layout code via datatable",A)}if(B.status){y.value=Array.isArray(B.data)?B.data[0]:B.data;const A={};if((M=y.value)!=null&&M.sections&&y.value.sections.forEach(V=>{((V.propsForm||V.props||{}).fields||V.fields||[]).forEach(H=>{var U;const O=H.model||((U=H.props)==null?void 0:U.model)||H.key;O&&(A[O]=null)})}),p.value=A,f.value=!1,h.value&&u.value){m.value=!0;try{if((w=y.value.endpointGlobal)!=null&&w.apiUrl){const V=y.value.endpointGlobal.apiUrl,E=y.value.endpointGlobal.apiMethod||"GET",W={id:u.value},H=await s(V,E,W);if(H.status){const O=Array.isArray(H.data)?H.data[0]:H.data;p.value={...p.value,...O}}}else{const V=((I=y.value.endpoint)==null?void 0:I.detailUrl)||`/api/${k.value}/detail/${u.value}`,E=await i(V,"GET");if(E.status){let W=Array.isArray(E.data)?E.data[0]:E.data;if(E.payload){const O={...E.payload};if(Object.keys(O).forEach(U=>{W[U]!==void 0&&W[U]!==null&&(O[U]=W[U])}),!("id"in O)&&W.id){const U=Object.keys(O).find(J=>J.startsWith("id")&&J.length>2&&!O[J]);U&&(O[U]=W.id)}W=O}const H={...W};Object.keys(p.value).forEach(O=>{if(H[O]===void 0||H[O]===null){if(O.toLowerCase().startsWith("id")&&O.length>2){const J=O.substring(2).toLowerCase(),T=Array.isArray(E.data)?E.data[0]:E.data,F=Object.keys(T).find(N=>N.toLowerCase()===J);F&&T[F]&&typeof T[F]=="object"&&"id"in T[F]&&(H[O]=T[F].id)}if(O==="idSupervisor"){const J=Array.isArray(E.data)?E.data[0]:E.data;J.supervisorId&&(H[O]=J.supervisorId)}}}),p.value={...p.value,...H}}}}catch(V){console.error("Failed to fetch record data:",V)}finally{m.value=!1}}}}catch(z){console.error("Failed to load form layout:",z),f.value=!1}},C=async M=>{var w,I,z;try{const B=(z=(I=(w=y.value.sections)==null?void 0:w[0])==null?void 0:I.propsForm)==null?void 0:z.endpointForm,A=y.value.endpointGlobal||y.value.endpoint,V=(B==null?void 0:B.submitUrl)||(A==null?void 0:A.submitUrl)||`/api/generic/${t.layoutCode}`,E=(B==null?void 0:B.submitMethod)||(A==null?void 0:A.submitMethod)||(h.value?"PUT":"POST"),W={...M};h.value&&u.value&&!W.id&&(W.id=u.value),await i(V,E,W),r.back()}catch(B){console.error("Submit failed:",B)}},v=async(M,w)=>{if(M==="cancel"){b();return}const I=w.endpointPropAction||w.propsActionGlobal&&w.propsActionGlobal.endpointPropAction;if(I)try{f.value=!0;const z={...p.value};h.value&&w.model&&u.value&&(z[w.model]=u.value);const B=I.apiUrl,A=I.apiMethod||"POST";(await s(B,A,z)).status&&r.back()}catch(z){console.error("Action failed:",z)}finally{f.value=!1}},b=()=>{r.back()};return a.onMounted(()=>{x()}),a.onUnmounted(()=>{d("")}),(M,w)=>{const I=a.resolveComponent("DynamicForm"),z=a.resolveComponent("AutoLayoutSkeleton");return a.openBlock(),a.createElementBlock("div",XY,[a.createElementVNode("div",ZY,[a.createVNode(a.Transition,{name:"fade",mode:"out-in"},{default:a.withCtx(()=>[!f.value&&y.value?(a.openBlock(),a.createElementBlock("div",YY,[a.createElementVNode("div",QY,[a.createElementVNode("p",JY,a.toDisplayString(y.value.description),1)]),a.createVNode(I,{schema:y.value,model:p.value,"is-edit-mode":h.value,loading:m.value,onSubmit:C,onCancel:b,onAction:v,class:"w-full"},null,8,["schema","model","is-edit-mode","loading"])])):f.value?(a.openBlock(),a.createElementBlock("div",eQ,[a.createVNode(z)])):(a.openBlock(),a.createElementBlock("div",tQ," Failed to load form configuration for "+a.toDisplayString(t.layoutCode),1))]),_:1})])])}}}),[["__scopeId","data-v-fd9d71a6"]]),aQ=(e,t="short",n="id-ID")=>{const o=typeof e=="string"?new Date(e):e,r=d=>String(d).padStart(2,"0"),i=d=>`${r(d.getHours())}:${r(d.getMinutes())}:${r(d.getSeconds())}`,c={id:"id-ID",en:"en-GB"}[n]||n;return t==="time"?i(o):t==="datetime"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(o):t==="long"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(o):new Intl.DateTimeFormat(c,{day:"2-digit",month:"short",year:"numeric"}).format(o)},nQ=e=>new Promise((t,n)=>{const o=document.createElement("textarea");o.value=e,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t():n(new Error("Copy command was unsuccessful"))}catch(r){n(r)}finally{document.body.removeChild(o)}}),oQ=async e=>navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e):nQ(e),rQ=a.defineComponent({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(hB),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),iQ=a.defineComponent({inheritAttrs:!1,__name:"SheetContent",props:{class:{type:[Boolean,null,String,Object,Array]},side:{},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class","side"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(CB),null,{default:a.withCtx(()=>[a.createVNode(a.unref(vB),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),a.createVNode(a.unref(xB),a.mergeProps({class:a.unref(Me)(a.unref(uQ)({side:e.side}),n.class)},{...a.unref(i),...s.$attrs}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default"),a.createVNode(a.unref(uB),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},{default:a.withCtx(()=>[a.createVNode(a.unref(pt),{class:"w-4 h-4"})]),_:1})]),_:3},16,["class"])]),_:3}))}}),sQ=a.defineComponent({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(wB),a.mergeProps({class:a.unref(Me)("text-sm text-muted-foreground",t.class)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),lQ=a.defineComponent({__name:"SheetFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),cQ=a.defineComponent({__name:"SheetHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col gap-y-2 text-center sm:text-left",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),dQ=a.defineComponent({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(LB),a.mergeProps({class:a.unref(Me)("text-lg font-medium text-foreground",t.class)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),hQ=a.defineComponent({__name:"SheetTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(LH),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),uQ=xl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),pQ={class:"flex-1 overflow-hidden"},yQ=a.defineComponent({__name:"DataFilterSheet",props:{title:{default:"Filter Data"},description:{default:"Masukan parameter pencarian untuk memfilter data."}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(rQ),null,{default:a.withCtx(()=>[a.createVNode(a.unref(hQ),{"as-child":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"trigger",{},()=>[a.createVNode(a.unref(je),{variant:"outline",class:"gap-2"},{default:a.withCtx(()=>[a.createVNode(a.unref(vr),{class:"w-4 h-4"}),n[0]||(n[0]=a.createElementVNode("span",null,"Pencarian",-1))]),_:1})])]),_:3}),a.createVNode(a.unref(iQ),{class:"flex flex-col h-full"},{default:a.withCtx(()=>[a.createVNode(a.unref(cQ),{class:"flex-shrink-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(dQ),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),a.createVNode(a.unref(sQ),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.description),1)]),_:1})]),_:1}),a.createElementVNode("div",pQ,[a.renderSlot(t.$slots,"default")]),a.createVNode(a.unref(lQ),{class:"flex-shrink-0"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"footer")]),_:3})]),_:3})]),_:3}))}}),fQ={key:0},mQ=["value","name"],zP=a.defineComponent({__name:"DynamicFilterField",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const{locale:n}=KS.useI18n(),o=e,r=t,i=a.ref(o.modelValue);a.watch(()=>o.modelValue,u=>{i.value=u});const s={DCodeTextField:E_,DCodeAutoComplete:sI,DCodeDatePicker:x_,DCodeTextarea:SS,DCodeTextArea:SS,DCodeCheckbox:Kl,DCodeSwitch:D_,DCodeOtpInput:P_,DCodeImageField:B_,DCodeSlider:q_},c=a.computed(()=>{const u=o.field.component;return s[u]||null}),d=a.computed(()=>{const u=o.field.props,p={};return(u.labelID||u.labelEN)&&(p.label=n.value==="id"?u.labelID:u.labelEN),(u.placeholderID||u.placeholderEN)&&(p.placeholder=n.value==="id"?u.placeholderID:u.placeholderEN),u.required!==void 0&&(p.required=u.required),u.disabled!==void 0&&(p.disabled=u.disabled),u.readonly!==void 0&&(p.readonly=u.readonly),u.valueType&&(p.type=u.valueType),u.minLength!==void 0&&(p.minlength=u.minLength),u.maxLength!==void 0&&(p.maxlength=u.maxLength),u.min!==void 0&&(p.min=u.min),u.max!==void 0&&(p.max=u.max),u.options&&(p.options=u.options),u.endpoint&&(p.endpoint=u.endpoint),u.itemTitle&&(p.itemTitle=u.itemTitle),u.itemValue&&(p.itemValue=u.itemValue),u.returnObject!==void 0&&(p.returnObject=u.returnObject),u.clearable!==void 0&&(p.clearable=u.clearable),Object.keys(u).forEach(y=>{!["labelID","labelEN","placeholderID","placeholderEN"].includes(y)&&!p.hasOwnProperty(y)&&(p[y]=u[y])}),p}),h=u=>{i.value=u,r("update:modelValue",u)};return(u,p)=>e.field.isHidden?(a.openBlock(),a.createElementBlock("div",fQ,[a.createElementVNode("input",{type:"hidden",value:i.value,name:e.field.model},null,8,mQ)])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),a.mergeProps({key:1},d.value,{modelValue:i.value,"onUpdate:modelValue":[p[0]||(p[0]=y=>i.value=y),h]}),null,16,["modelValue"]))}}),kQ=a.defineComponent({__name:"Pagination",props:{page:{},defaultPage:{},itemsPerPage:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:page"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(ZH),a.mergeProps({"data-slot":"pagination"},a.unref(i),{class:n.class}),{default:a.withCtx(d=>[a.renderSlot(s.$slots,"default",a.normalizeProps(a.guardReactiveProps(d)))]),_:3},16,["class"]))}}),gQ=a.defineComponent({__name:"PaginationContent",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(oO),a.mergeProps({"data-slot":"pagination-content"},a.unref(n),{class:a.unref(Me)("flex flex-row items-center gap-1",t.class)}),{default:a.withCtx(i=>[a.renderSlot(o.$slots,"default",a.normalizeProps(a.guardReactiveProps(i)))]),_:3},16,["class"]))}}),bQ=a.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(GH),a.mergeProps({"data-slot":"pagination-ellipsis"},a.unref(n),{class:a.unref(Me)("flex size-9 items-center justify-center",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createVNode(a.unref(Ma),{class:"size-4"}),r[0]||(r[0]=a.createElementVNode("span",{class:"sr-only"},"More pages",-1))])]),_:3},16,["class"]))}}),MQ=a.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(QH),a.mergeProps({"data-slot":"pagination-first",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(bn)),i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"First",-1))])]),_:3},16,["class"]))}}),xQ=a.defineComponent({__name:"PaginationItem",props:{value:{},asChild:{type:Boolean},as:{},size:{default:"icon"},class:{type:[Boolean,null,String,Object,Array]},isActive:{type:Boolean}},setup(e){const t=e,n=Oe(t,"class","size","isActive");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(iO),a.mergeProps({"data-slot":"pagination-item"},a.unref(n),{class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),e.isActive?"bg-[#0056a1] dark:bg-[#003d75] text-white hover:bg-[#0056a1]/90 dark:hover:bg-[#003d75]/90 hover:text-white":"",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),wQ=a.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(eO),a.mergeProps({"data-slot":"pagination-last",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Last",-1)),a.createVNode(a.unref(Mn))])]),_:3},16,["class"]))}}),vQ=a.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(lO),a.mergeProps({"data-slot":"pagination-next",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Next",-1)),a.createVNode(a.unref(Mn))])]),_:3},16,["class"]))}}),CQ=a.defineComponent({__name:"PaginationPrevious",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(dO),a.mergeProps({"data-slot":"pagination-previous",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(bn)),i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Previous",-1))])]),_:3},16,["class"]))}}),LQ=a.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(mO),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),SQ=a.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(NO),null,{default:a.withCtx(()=>[a.createVNode(a.unref(VO),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:a.withCtx(()=>[a.createVNode(a.unref(BQ)),a.createVNode(a.unref(JO),{class:a.normalizeClass(a.unref(Me)("p-1",e.position==="popper"&&"h-[--reka-select-trigger-height] w-full min-w-[--reka-select-trigger-width]"))},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},8,["class"]),a.createVNode(a.unref(AQ))]),_:3},16,["class"])]),_:3}))}}),IQ={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},_Q=a.defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(EO),a.mergeProps(a.unref(o),{class:a.unref(Me)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:a.withCtx(()=>[a.createElementVNode("span",IQ,[a.createVNode(a.unref(HO),null,{default:a.withCtx(()=>[a.createVNode(a.unref(ka),{class:"h-4 w-4"})]),_:1})]),a.createVNode(a.unref(jO),null,{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),AQ=a.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(UO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex cursor-default items-center justify-center py-1",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(Et))])]),_:3},16,["class"]))}}),BQ=a.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(GO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex cursor-default items-center justify-center py-1",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(el))])]),_:3},16,["class"]))}}),VQ=a.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(XO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default"),a.createVNode(a.unref(PO),{"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(Et),{class:"w-4 h-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),zQ=a.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(YO),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),Zl={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$s={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},tt={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},PQ={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},qQ={dangerouslyHTMLString:!1,multiple:!0,position:Zl.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},DQ={rtl:!1,newestOnTop:!1,toastClassName:""},PP={...qQ,...DQ};tt.DEFAULT;var Le=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(Le||{}),T_=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(T_||{});const EQ={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},TQ={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},HQ={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},OQ={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qP="Toastify--animate Toastify__none-enter";function DP(e,t=!1){var n;let o=EQ;if(!e||typeof e=="string")switch(e){case"flip":o=OQ;break;case"zoom":o=HQ;break;case"slide":o=TQ;break}else o=e;if(t)o.enter=qP;else if(o.enter===qP){const r=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${r}-enter`}return o}function jQ(e){return e.containerId||String(e.position)}const _S="will-unmount";function FQ(e=Zl.TOP_RIGHT){return!!document.querySelector(`.${Le.CSS_NAMESPACE}__toast-container--${e}`)}function NQ(e=Zl.TOP_RIGHT){return`${Le.CSS_NAMESPACE}__toast-container--${e}`}function RQ(e,t,n=!1){const o=[`${Le.CSS_NAMESPACE}__toast-container`,`${Le.CSS_NAMESPACE}__toast-container--${e}`,n?`${Le.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Ws(t)?t({position:e,rtl:n,defaultClassName:o}):`${o} ${t||""}`}function $Q(e){var t;const{position:n,containerClassName:o,rtl:r=!1,style:i={}}=e,s=Le.CSS_NAMESPACE,c=NQ(n),d=document.querySelector(`.${s}`),h=document.querySelector(`.${c}`),u=!!h&&!((t=h.className)!=null&&t.includes(_S)),p=d||document.createElement("div"),y=document.createElement("div");y.className=RQ(n,o,r),y.dataset.testid=`${Le.CSS_NAMESPACE}__toast-container--${n}`,y.id=jQ(e);for(const f in i)if(Object.prototype.hasOwnProperty.call(i,f)){const m=i[f];y.style[f]=m}return d||(p.className=Le.CSS_NAMESPACE,document.body.appendChild(p)),u||p.appendChild(y),y}function H_(e){var t,n,o;const r=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),i=document.getElementById(r);i&&i.removeEventListener("animationend",H_,!1);try{Yl[r].unmount(),(o=document.getElementById(r))==null||o.remove(),delete Yl[r],delete Ke[r]}catch{}}const Yl=a.reactive({});function UQ(e,t){const n=document.getElementById(String(t));n&&(Yl[n.id]=e)}function O_(e,t=!0){const n=String(e);if(!Yl[n])return;const o=document.getElementById(n);o&&o.classList.add(_S),t?(GQ(e),o&&o.addEventListener("animationend",H_,!1)):H_(n),Mt.items=Mt.items.filter(r=>r.containerId!==e)}function WQ(e){for(const t in Yl)O_(t,e);Mt.items=[]}function EP(e,t){const n=document.getElementById(e.toastId);if(n){let o=e;o={...o,...DP(o.transition)};const r=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${r}`,t&&t(n)}}function GQ(e){for(const t in Ke)if(t===e)for(const n of Ke[t]||[])EP(n)}function KQ(e){const t=Us().find(n=>n.toastId===e);return t==null?void 0:t.containerId}function j_(e){return document.getElementById(e)}function XQ(e){const t=j_(e.containerId);return t&&t.classList.contains(_S)}function TP(e){var t;const n=a.isVNode(e.content)?a.toRaw(e.content.props):null;return n??a.toRaw((t=e.data)!=null?t:{})}function ZQ(e){return e?Mt.items.filter(t=>t.containerId===e).length>0:Mt.items.length>0}function YQ(){if(Mt.items.length>0){const e=Mt.items.shift();AS(e==null?void 0:e.toastContent,e==null?void 0:e.toastProps)}}const Ke=a.reactive({}),Mt=a.reactive({items:[]});function Us(){const e=a.toRaw(Ke);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function QQ(e){return Us().find(t=>t.toastId===e)}function AS(e,t={}){if(XQ(t)){const n=j_(t.containerId);n&&n.addEventListener("animationend",F_.bind(null,e,t),!1)}else F_(e,t)}function F_(e,t={}){const n=j_(t.containerId);n&&n.removeEventListener("animationend",F_.bind(null,e,t),!1);const o=Ke[t.containerId]||[],r=o.length>0;if(!r&&!FQ(t.position)){const i=$Q(t),s=a.createApp(wJ,t);t.useHandler&&t.useHandler(s),s.mount(i),UQ(s,i.id)}r&&!t.updateId&&(t.position=o[0].position),a.nextTick(()=>{t.updateId?ht.update(t):ht.add(e,t)})}const ht={add(e,t){const{containerId:n=""}=t;n&&(Ke[n]=Ke[n]||[],Ke[n].find(o=>o.toastId===t.toastId)||setTimeout(()=>{var o,r;t.newestOnTop?(o=Ke[n])==null||o.unshift(t):(r=Ke[n])==null||r.push(t),t.onOpen&&t.onOpen(TP(t))},t.delay||0))},remove(e){if(e){const t=KQ(e);if(t){const n=Ke[t];let o=n.find(r=>r.toastId===e);Ke[t]=n.filter(r=>r.toastId!==e),!Ke[t].length&&!ZQ(t)&&O_(t,!1),YQ(),a.nextTick(()=>{o!=null&&o.onClose&&(o.onClose(TP(o)),o=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){Ke[t]=Ke[t]||[];const n=Ke[t].find(i=>i.toastId===e.toastId),o=(n==null?void 0:n.position)!==e.position||(n==null?void 0:n.transition)!==e.transition,r={...e,disabledEnterTransition:!o,updateId:void 0};ht.dismissForce(e==null?void 0:e.toastId),setTimeout(()=>{ze(r.content,r)},e.delay||0)}},clear(e,t=!0){e?O_(e,t):WQ(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",ht.dismissCallback,!1),setTimeout(()=>{ht.remove(n)}))},dismiss(e){if(e){const t=Us();for(const n of t)if(n.toastId===e){EP(n,o=>{o.addEventListener("animationend",ht.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=Us();for(const n of t)if(n.toastId===e){const o=document.getElementById(e);o&&(o.remove(),o.removeEventListener("animationend",ht.dismissCallback,!1),ht.remove(e));break}}}},JQ=a.reactive({useHandler:void 0}),HP=a.reactive({}),BS=a.reactive({});function OP(){return Math.random().toString(36).substring(2,9)}function eJ(e){return typeof e=="number"&&!isNaN(e)}function N_(e){return typeof e=="string"}function Ws(e){return typeof e=="function"}function VS(...e){return a.mergeProps(...e)}function zS(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof(e==null?void 0:e.type)=="object")}function tJ(e={}){HP[`${Le.CSS_NAMESPACE}-default-options`]=e}function jP(){return HP[`${Le.CSS_NAMESPACE}-default-options`]||PP}function aJ(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||e?"dark":"light"}var PS=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(PS||{});const FP={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Zl.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:$s.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:tt.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},nJ={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:tt.DEFAULT},theme:{type:String,required:!1,default:$s.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},oJ=a.defineComponent({name:"ProgressBar",props:nJ,setup(e,{attrs:t}){const n=a.ref(),o=a.computed(()=>e.hide?"true":"false"),r=a.computed(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),i=a.computed(()=>[`${Le.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${Le.CSS_NAMESPACE}__progress-bar--controlled`:`${Le.CSS_NAMESPACE}__progress-bar--animated`,`${Le.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${Le.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${Le.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),s=a.computed(()=>`${i.value} ${(t==null?void 0:t.class)||""}`),c=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},d=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),c())},h=a.computed(()=>e.controlledProgress?null:d),u=a.computed(()=>e.controlledProgress?d:null);return a.watchEffect(()=>{n.value&&(c(),n.value.onanimationend=h.value,n.value.ontransitionend=u.value)}),()=>a.createVNode("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:s.value,style:r.value},null)}}),rJ=a.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:$s.AUTO},type:{type:String,required:!1,default:$s.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>a.createVNode("button",{class:`${Le.CSS_NAMESPACE}__close-button ${Le.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[a.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[a.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),qS=({theme:e,type:t,path:n,...o})=>a.createVNode("svg",a.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",style:{fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`}},o),[a.createVNode("path",{d:n},null)]);function iJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function sJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function lJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function cJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function dJ(){return a.createVNode("div",{class:`${Le.CSS_NAMESPACE}__spinner`},null)}const DS={info:sJ,warning:iJ,success:lJ,error:cJ,spinner:dJ},hJ=e=>e in DS;function uJ({theme:e,type:t,isLoading:n,icon:o}){let r;const i=!!n||t==="loading",s={theme:e,type:t};if(i&&(o===void 0||typeof o=="boolean"))return DS.spinner();if(o!==!1){if(zS(o))r=a.toRaw(o);else if(Ws(o)){const c=o;s.type=i?"loading":t,r=c(s),r=!r&&i?DS.spinner():r}else a.isVNode(o)?r=a.cloneVNode(o,s):N_(o)||eJ(o)?r=o:hJ(t)&&(r=DS[t](s));return r}}const pJ=()=>{};function yJ(e,t,n=Le.COLLAPSE_DURATION){const{scrollHeight:o,style:r}=e,i=n;requestAnimationFrame(()=>{r.minHeight="initial",r.height=o+"px",r.transition=`all ${i}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,i)})})}function fJ(e){const t=a.ref(!1),n=a.ref(!1),o=a.ref(!1),r=a.ref(PS.Enter),i=a.reactive({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||Le.COLLAPSE_DURATION}),s=i.done||pJ,c=a.computed(()=>i.appendPosition?`${i.enter}--${i.position}`:i.enter),d=a.computed(()=>i.appendPosition?`${i.exit}--${i.position}`:i.exit),h=a.computed(()=>e.pauseOnHover?{onMouseenter:g,onMouseleave:k}:{});function u(){const C=c.value.split(" ");y().addEventListener(T_.ENTRANCE_ANIMATION_END,k,{once:!0});const v=L=>{const S=y();L.target===S&&(S.dispatchEvent(new Event(T_.ENTRANCE_ANIMATION_END)),S.removeEventListener("animationend",v),S.removeEventListener("animationcancel",v),r.value===PS.Enter&&L.type!=="animationcancel"&&S.classList.remove(...C))},b=()=>{const L=y();L.classList.add(...C),L.addEventListener("animationend",v),L.addEventListener("animationcancel",v)};e.pauseOnFocusLoss&&f(),b()}function p(){if(!y())return;const C=()=>{const b=y();b.removeEventListener("animationend",C),i.collapse?yJ(b,s,i.collapseDuration):s()},v=()=>{const b=y();r.value=PS.Exit,b&&(b.className+=` ${d.value}`,b.addEventListener("animationend",C))};n.value||(o.value?C():setTimeout(v))}function y(){return e.toastRef.value}function f(){document.hasFocus()||g(),window.addEventListener("focus",k),window.addEventListener("blur",g)}function m(){window.removeEventListener("focus",k),window.removeEventListener("blur",g)}function k(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function g(){t.value=!1}function x(C){C&&(C.stopPropagation(),C.preventDefault()),n.value=!1}return a.watchEffect(p),a.watchEffect(()=>{const C=Us();n.value=C.findIndex(v=>v.toastId===i.toastId)>-1}),a.watchEffect(()=>{e.isLoading!==void 0&&(e.loading.value?g():k())}),a.onMounted(u),a.onUnmounted(()=>{e.pauseOnFocusLoss&&m()}),{isIn:n,isRunning:t,hideToast:x,eventHandlers:h}}function mJ(e){if(!e||typeof e!="object"||Array.isArray(e)||e.__v_isVNode)return!1;const t=e;return["title","content"].some(n=>n in t)}const kJ=a.defineComponent({name:"ToastItem",inheritAttrs:!1,props:FP,setup(e){const t=a.ref(),n=a.computed(()=>!!e.isLoading),o=a.computed(()=>e.progress!==void 0&&e.progress!==null),r=a.computed(()=>uJ(e)),i=a.computed(()=>[`${Le.CSS_NAMESPACE}__toast`,`${Le.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${Le.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${Le.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:c,hideToast:d,eventHandlers:h}=fJ({toastRef:t,loading:n,done:()=>{ht.remove(e.toastId)},...DP(e.transition,e.disabledEnterTransition),...e});function u(){const p=e.content;if(mJ(p)){const y=[];return p.title!==void 0&&y.push(a.createVNode("div",{"data-testid":"toast-text-title",class:`${Le.CSS_NAMESPACE}__toast-text-title`},[p.title])),p.content!==void 0&&y.push(a.createVNode("div",{"data-testid":"toast-text-content",class:`${Le.CSS_NAMESPACE}__toast-text-content`},[p.content])),a.createVNode("div",{"data-testid":"toast-text-content-wrapper",class:`${Le.CSS_NAMESPACE}__toast-text`},[y])}return zS(p)?a.h(a.toRaw(p),{toastProps:a.toRaw(e),closeToast:d,data:e.data,...e.expandCustomProps?e.contentProps:{contentProps:e.contentProps||{}}}):Ws(p)?p({toastProps:a.toRaw(e),closeToast:d,data:e.data}):e.dangerouslyHTMLString?a.h("div",{innerHTML:p}):p}return()=>a.createVNode("div",a.mergeProps({id:e.toastId,class:i.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:p=>{e.closeOnClick&&d(),e.onClick&&e.onClick(p)}},h.value),[a.createVNode("div",{role:e.role,"data-testid":"toast-body",class:`${Le.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[r.value!=null&&a.createVNode("div",{"data-testid":`toast-icon-${e.type}`,class:[`${Le.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${Le.CSS_NAMESPACE}--animate-icon ${Le.CSS_NAMESPACE}__zoom-enter`].join(" ")},[zS(r.value)?a.h(a.toRaw(r.value),{theme:e.theme,type:e.type}):Ws(r.value)?r.value({theme:e.theme,type:e.type}):r.value]),a.createVNode("div",{"data-testid":"toast-content"},[u()])]),(e.closeButton===void 0||e.closeButton===!0)&&a.createVNode(rJ,{theme:e.theme,closeToast:p=>{p.stopPropagation(),p.preventDefault(),d()}},null),zS(e.closeButton)?a.h(a.toRaw(e.closeButton),{closeToast:d,type:e.type,theme:e.theme}):Ws(e.closeButton)?e.closeButton({closeToast:d,type:e.type,theme:e.theme}):null,a.createVNode(oJ,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:c.value,type:e.type,hide:e.hideProgressBar,isRunning:s.value,autoClose:e.autoClose,controlledProgress:o.value,progress:e.progress,closeToast:e.isLoading?void 0:d},null)])}}),ES="vue3-toastify:url-change";let TS=0,Ql;function gJ(){if(!(typeof window>"u")&&BS.lastUrl!==window.location.href){BS.lastUrl=window.location.href;const e=n=>typeof n.clearOnUrlChange=="boolean"?n.clearOnUrlChange:jP().clearOnUrlChange!==!1,t=Object.values(Ke).reduce((n,o)=>(Array.isArray(o)&&n.push(...o),n),[]);for(const n of t)n.toastId&&e(n)&&ht.dismiss(n.toastId);Mt.items=Mt.items.filter(n=>!e(n.toastProps))}}function bJ(){const{history:e}=window,t=e.pushState,n=e.replaceState;return e.pushState=function(...o){const r=t.apply(this,o);return window.dispatchEvent(new Event(ES)),r},e.replaceState=function(...o){const r=n.apply(this,o);return window.dispatchEvent(new Event(ES)),r},()=>{e.pushState=t,e.replaceState=n}}function MJ(){if(typeof window>"u"||Ql)return;const e=bJ(),t=()=>gJ();window.addEventListener(ES,t),window.addEventListener("popstate",t),window.addEventListener("hashchange",t),Ql=()=>{e(),window.removeEventListener(ES,t),window.removeEventListener("popstate",t),window.removeEventListener("hashchange",t),Ql=void 0}}function xJ(){Ql&&(Ql(),BS.lastUrl="")}const wJ=a.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:FP,setup(e){const t=a.computed(()=>e.containerId),n=a.computed(()=>Ke[t.value]||[]),o=a.computed(()=>n.value.filter(r=>r.position===e.position));return a.onMounted(()=>{typeof window<"u"&&(TS+=1,MJ())}),a.onUnmounted(()=>{typeof window<"u"&&TS>0&&(TS-=1,TS===0&&xJ())}),()=>a.createVNode(a.Fragment,null,[o.value.map(r=>{const{toastId:i=""}=r;return a.createVNode(kJ,a.mergeProps({key:i},r),null)})])}});let R_=!1;const NP={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function RP(){const e=[];return Us().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(_S)&&e.push(t)}),e}function vJ(e){const t=RP().length,n=e??0;return n>0&&t+Mt.items.length>=n}function CJ(e){vJ(e.limit)&&!e.updateId&&Mt.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function Ta(e,t,n={}){if(R_)return;n=VS(jP(),{type:t},a.toRaw(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=OP()),n={...n,...n.type==="loading"?NP:{},content:e,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return!isNaN(o)&&o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=aJ()),CJ(n),BS.lastUrl=window.location.href,n.multiple?Mt.items.length?n.updateId&&AS(e,n):AS(e,n):(R_=!0,ze.clearAll(void 0,!1),setTimeout(()=>{AS(e,n)},0),setTimeout(()=>{R_=!1},390)),n.toastId}const ze=(e,t)=>Ta(e,tt.DEFAULT,t);ze.info=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.INFO}),ze.error=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.ERROR}),ze.warning=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.WARNING}),ze.warn=ze.warning,ze.success=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.SUCCESS}),ze.loading=(e,t)=>Ta(e,tt.DEFAULT,VS(t,NP)),ze.dark=(e,t)=>Ta(e,tt.DEFAULT,VS(t,{theme:$s.DARK})),ze.remove=e=>{e?ht.dismiss(e):ht.clear()},ze.clearAll=(e,t)=>{a.nextTick(()=>{ht.clear(e,t)})},ze.isActive=e=>{let t=!1;return t=RP().findIndex(n=>n.toastId===e)>-1,t},ze.update=(e,t={})=>{setTimeout(()=>{const n=QQ(e);if(n){const o=a.toRaw(n),{content:r}=o,i={...o,...t,toastId:t.toastId||e,updateId:OP()},s=i.render||r;delete i.render,Ta(s,i.type,i)}},0)},ze.done=e=>{ze.update(e,{isLoading:!1,progress:1})},ze.promise=LJ;function LJ(e,{pending:t,error:n,success:o},r){var i,s,c;let d;const h={...r||{},autoClose:!1};t&&(d=N_(t)?ze.loading(t,h):ze.loading(t.render,{...h,...t}));const u={autoClose:(i=r==null?void 0:r.autoClose)!=null?i:!0,closeOnClick:(s=r==null?void 0:r.closeOnClick)!=null?s:!0,closeButton:(c=r==null?void 0:r.autoClose)!=null?c:null,isLoading:void 0,draggable:null,delay:100},p=(f,m,k)=>{if(m==null){ze.remove(d);return}const g={type:f,...u,...r,data:k},x=N_(m)?{render:m}:m;return d?ze.update(d,{...g,...x,isLoading:!1}):ze(x.render,{...g,...x,isLoading:!1}),k},y=Ws(e)?e():e;return y.then(f=>{p("success",o,f)}).catch(f=>{p("error",n,f)}),y}ze.POSITION=Zl,ze.THEME=$s,ze.TYPE=tt,ze.TRANSITIONS=PQ;const SJ={install(e,t={}){JQ.useHandler=t.useHandler||(()=>{}),IJ(t)}};typeof window<"u"&&(window.Vue3Toastify=SJ);function IJ(e={}){const t=VS(PP,e);tJ(t)}const _J={class:"dcode-card animate-slide-up"},AJ={class:"px-4 py-2 bg-primary-700 dark:bg-primary-900 border-b border-primary-500/30 dark:border-primary-900/50 rounded-t-xl relative z-30"},BJ={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},VJ={key:0,class:"flex flex-col sm:flex-row items-start sm:items-center gap-2 flex-1 max-w-2xl"},zJ={class:"relative w-full sm:w-64"},PJ={key:0,class:"relative"},qJ={class:"flex flex-col h-full"},DJ={key:0,class:"flex-1 overflow-y-auto py-4"},EJ={class:"grid grid-cols-1 md:grid-cols-2 gap-4 px-1"},TJ={key:0,class:"sticky bottom-0 left-0 right-0 bg-white dark:bg-zinc-900 border-t border-neutral-200 dark:border-neutral-700 p-4 flex gap-2"},HJ={class:"flex justify-end gap-2 w-full"},OJ={key:0,class:"font-medium text-sm text-neutral-600 dark:text-neutral-400"},jJ={class:"overflow-auto custom-scrollbar relative max-h-[calc(100vh-17rem)]"},FJ={class:"dcode-table w-full"},NJ={class:"bg-primary-700 dark:bg-primary-900 sticky top-0 z-20 shadow-sm"},RJ=["onClick"],$J={key:0,class:"flex items-center justify-center w-full"},UJ={key:0,class:"px-3 py-2 text-xs font-medium text-white dark:text-neutral-100 uppercase tracking-wider"},WJ={class:"bg-white dark:bg-zinc-900 divide-y divide-neutral-200 dark:divide-neutral-700"},GJ={key:0,class:"px-3 py-0.5"},KJ={key:1},XJ=["colspan"],ZJ={class:"flex flex-col items-center gap-4"},YJ={class:"text-base font-medium text-neutral-700 dark:text-neutral-300"},QJ={class:"text-sm text-neutral-500 dark:text-neutral-400 mt-1"},JJ={class:"hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-colors duration-150"},eee={key:0,class:"flex items-center justify-center"},tee={key:0,class:"px-3 py-0.5 !text-center"},aee={key:0,class:"flex items-center justify-center gap-1.5"},nee={key:0,class:"bg-zinc-50/50 dark:bg-zinc-800/30"},oee=["colspan"],ree={key:0,class:"px-4 py-3 bg-zinc-50/50 dark:bg-zinc-800/30 border-t border-neutral-200 dark:border-neutral-700 flex flex-col sm:flex-row items-center justify-between gap-4 w-full"},iee={class:"flex items-center gap-4"},see={class:"text-xs text-neutral-500 dark:text-neutral-400 font-medium"},lee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},cee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},dee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},hee={class:"flex-shrink-0"},uee={class:"space-y-4"},pee={class:"text-gray-600 dark:text-gray-400"},yee={class:"grid grid-cols-1 md:grid-cols-2 gap-4 py-4 px-1"},fee={class:"flex items-end gap-2"},HS=a.defineComponent({name:"DataTable",__name:"DataTable",props:{columns:{default:()=>[]},data:{default:()=>[]},perPage:{default:10},loading:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},apiModule:{},apiAction:{default:"list"},apiMethod:{},apiUrl:{},permissionBase:{},apiParams:{default:()=>({})},configKey:{},tableConfig:{},dynamicColumns:{type:Boolean,default:!1},searchApiEndpoint:{},enableQuickSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},ignorePermissions:{type:Boolean,default:!1},userPermissions:{default:null},permissionChecker:{type:Function,default:void 0},permissions:{default:void 0},checkPermission:{type:Function,default:void 0},menuPermissions:{default:()=>[]}},emits:["update:search","update:sort","update:page","create","export","action","update:selection","navigate"],setup(e,{expose:t,emit:n}){const o=e,r=n,{apiUrl:i}=et(),{locale:s}=KS.useI18n(),c=ms.useRoute(),d=ms.useRouter(),h=a.ref(""),u=a.ref(1),p=a.ref(o.perPage),y=a.ref({key:"",direction:"asc"}),f=a.ref([]),m=a.ref(!1),k=a.ref(0),g=a.ref({}),x=a.ref([]),C=a.ref(null),v=a.ref(!0),b=a.ref([]),L=a.ref([]),S=a.ref([]),M=a.ref(!1),w=a.ref(!1),I=a.ref({}),z=a.ref(null),B=a.ref(null),A=a.ref(null),V=a.ref([]),E=a.computed(()=>{if(xt.value.length===0)return!1;const _=xt.value.map(D=>{const G=ce.value.find(j=>j.type==="CHECKBOX"),q=(G==null?void 0:G.keyCheckbox)||"id";return D[q]}).filter(D=>D!=null);return _.length===0?!1:_.every(D=>V.value.includes(D))}),W=a.computed(()=>{if(xt.value.length===0)return!1;const _=ce.value.find(j=>j.type==="CHECKBOX"),D=(_==null?void 0:_.keyCheckbox)||"id",G=xt.value.map(j=>j[D]).filter(j=>j!=null),q=G.filter(j=>V.value.includes(j)).length;return q>0&&q<G.length}),H=_=>{const D=ce.value.find(j=>j.type==="CHECKBOX"),G=(D==null?void 0:D.keyCheckbox)||"id",q=_[G];return q!==void 0&&V.value.includes(q)},O=_=>{const D=ce.value.find(j=>j.type==="CHECKBOX"),G=(D==null?void 0:D.keyCheckbox)||"id",q=xt.value.map(j=>j[G]).filter(j=>j!=null);if(_){const j=new Set([...V.value,...q]);V.value=Array.from(j)}else V.value=V.value.filter(j=>!q.includes(j))},U=(_,D)=>{const G=ce.value.find(K=>K.type==="CHECKBOX"),q=(G==null?void 0:G.keyCheckbox)||"id",j=_[q];j!=null&&(D?V.value.includes(j)||V.value.push(j):V.value=V.value.filter(K=>K!==j))};a.watch(V,_=>{var G;r("update:selection",_);const D=E.value||_.length>1;(G=L.value)!=null&&G.length&&L.value.forEach(q=>{var j;(j=q.fieldActionGlobal)!=null&&j.length&&q.fieldActionGlobal.forEach(K=>{var Ce,Re;const he=q.endpoint||((Ce=q.propsActionGlobal)==null?void 0:Ce.endpointPropAction)||q.propsActionGlobal,Ve=(Re=he==null?void 0:he.keyParam)==null?void 0:Re[0];(Ve&&K.model===Ve||!Ve&&/^(id|ids|idAuditTrail)/i.test(K.model))&&D&&K.model&&(I.value[K.model]=_)})})},{deep:!0});const J=_=>Array.from({length:_}).map((D,G)=>{const q={id:G+1,no:G+1};return ce.value.forEach(j=>{j.key!=="no"&&j.key!=="action"&&j.type!=="ACTION"&&j.type!=="action"&&(j.type==="CHECKBOX"?q[j.keyCheckbox||"id"]=G+1:j.type==="BADGE"||j.type==="badge"||j.condition?q[j.key]=j.condition&&j.condition.length>0?j.condition[0].value:"Active":q[j.key]=`Data ${j.label} ${G+1}`)}),q}),T=_=>_&&typeof _=="string"&&_.trim()?_:void 0,F=a.computed(()=>{var _,D,G,q;return T((D=(_=C.value)==null?void 0:_.endpoint)==null?void 0:D.apiModule)||T((q=(G=C.value)==null?void 0:G.endpointGlobal)==null?void 0:q.apiModule)||o.apiModule}),N=a.computed(()=>{var _,D,G,q;return T((D=(_=C.value)==null?void 0:_.endpoint)==null?void 0:D.apiAction)||T((q=(G=C.value)==null?void 0:G.endpointGlobal)==null?void 0:q.apiAction)||o.apiAction}),Y=a.computed(()=>{var _,D,G,q;return T((D=(_=C.value)==null?void 0:_.endpoint)==null?void 0:D.apiMethod)||T((q=(G=C.value)==null?void 0:G.endpointGlobal)==null?void 0:q.apiMethod)||o.apiMethod||"POST"}),Q=a.computed(()=>{var _,D,G,q;return T((D=(_=C.value)==null?void 0:_.endpoint)==null?void 0:D.apiUrl)||T((q=(G=C.value)==null?void 0:G.endpointGlobal)==null?void 0:q.apiUrl)||o.apiUrl}),ie=a.computed(()=>o.permissionBase||""),ue=a.computed(()=>!S.value||S.value.length===0?[]:[...S.value].sort((_,D)=>(_.seq||0)-(D.seq||0))),pe=_=>{if(!_)return"col-span-1";const D=_.toLowerCase();return{full:"col-span-1 md:col-span-2",half:"col-span-1",third:"col-span-1","two-thirds":"col-span-1 md:col-span-2",two_thirds:"col-span-1 md:col-span-2"}[D]||"col-span-1"},Ie=()=>{let _=null;if(o.tableConfig&&(_=o.tableConfig),_){C.value=_,_.headers&&(x.value=_.headers.map(q=>{var he,Ve,me,Ce,Re,Ee,qe,ea,fs,US;if(q.key==="action"||((he=q.custom)==null?void 0:he.type)==="ACTION"||((Ve=q.custom)==null?void 0:Ve.type)==="action"){const Oa=((me=q.custom)==null?void 0:me.actionCustom)||((Ce=q.custom)==null?void 0:Ce.action);return Oa&&(b.value=Oa.map(ya=>{const Ge=ya.propsActionCustom||ya.props||{},WS=ya.propCustomMessage||{};return{permission:ya.permission,label:s.value==="id"?Ge.labelID:Ge.labelEN,tooltip:s.value==="id"?Ge.tooltipID||Ge.labelID:Ge.tooltipEN||Ge.labelEN,icon:Ge.icon,variant:Ge.variant||"ghost",bgColor:Ge.bgColor,action:Ge.actionType||Ge.key,route:Ge.route,path:Ge.path,endpoint:Ge.endpointPropAction,requiredCondition:ya.requiredCondition||!1,propCustomCondition:ya.propCustomCondition||[],openDialog:ya.openDialog||!1,fieldActionCustom:(ya.fieldActionCustom||[]).map(GS=>{const G_=GS.propsFieldCustom||GS.propsFieldGlobal||GS.props||{};return{...GS,props:{...G_,endpoint:G_.endpointComponent||G_.endpoint}}}),requireConfirm:ya.requireConfirm||Ge.requireConfirm||!1,confirmTitle:s.value==="id"?WS.titleID||Ge.confirmTitleID||"Konfirmasi":WS.titleEN||Ge.confirmTitleEN||"Confirm",confirmMessage:s.value==="id"?WS.messageID||Ge.confirmMessageID||"Apakah Anda yakin?":WS.messageEN||Ge.confirmMessageEN||"Are you sure?"}})),null}let j;const K=((Re=q.custom)==null?void 0:Re.conditionBadge)||((Ee=q.custom)==null?void 0:Ee.condition);return(((qe=q.custom)==null?void 0:qe.type)==="BADGE"||((ea=q.custom)==null?void 0:ea.type)==="badge")&&K&&(j=K.map(Oa=>({value:Oa.value,label:s.value==="id"?Oa.labelID:Oa.labelEN,color:Oa.color,variant:Oa.variant}))),{key:q.key,label:s.value==="id"?q.labelID:q.labelEN,width:q.width,align:q.align,sortable:!0,type:(fs=q.custom)==null?void 0:fs.type,condition:j,keyCheckbox:(US=q.custom)==null?void 0:US.keyCheckbox}}).filter(q=>q!==null));const D=_.filters||_.filter;D&&Array.isArray(D)&&(S.value=D.map(q=>({...q,props:q.propsFilters||q.props||{}})),S.value.forEach(q=>{g.value[q.model]=""}));const G=_.actionGlobal||_.action;console.log("[DEBUG] loadConfig rawActions:",G),G&&Array.isArray(G)?(L.value=G.map(q=>{const j=q.propsActionGlobal||q.props||{};return{key:j.key,permission:q.permission,label:s.value==="id"?j.labelID||"Action":j.labelEN||"Action",tooltip:s.value==="id"?j.tooltipID||j.labelID:j.tooltipEN||j.labelEN,icon:j.icon,variant:j.variant||"default",bgColor:j.bgColor,textColor:j.textColor,route:j.route,path:j.path,endpoint:j.endpointPropAction||q.endpoint,openDialog:q.openDialog||!1,fieldActionGlobal:(q.fieldActionGlobal||q.field||[]).map(K=>{const he=K.propsFieldGlobal||K.props||{};return{...K,props:{...he,endpoint:he.endpointComponent||he.endpoint}}})}}),console.log("[DEBUG] loadConfig headerActions set:",L.value)):console.log("[DEBUG] loadConfig no rawActions found"),_.pagination!==void 0&&(v.value=_.pagination)}};a.watch(()=>o.tableConfig,()=>{Ie()},{deep:!0,immediate:!0});const ce=a.computed(()=>o.dynamicColumns||o.configKey||o.tableConfig?x.value:o.columns||[]),X=a.computed(()=>o.hasActions||b.value.length>0),P=a.computed(()=>F.value||Q.value?m.value:o.loading),R=a.computed(()=>!!F.value||!!Q.value),ee=a.computed(()=>[]),ye=_=>{if(console.log("[DEBUG] hasAction called:",{actionCode:_,permissionChecker:!!o.permissionChecker,effectivePath:ie.value}),o.menuPermissions&&o.menuPermissions.length>0){const D=c.path,G=o.menuPermissions.find(q=>D.startsWith(q.path));if(G&&G.actions){const q=G.actions.find(j=>j.code===_.toUpperCase());return q?q.checked:!1}return!1}if(o.permissionChecker){const D=o.permissionChecker(ie.value,_);return console.log("[DEBUG] permissionChecker result:",D),D}return ee.value.some(D=>D.code===_)},Ne=(_,D)=>{if(!_.visibilityCondition)return!0;const{field:G,operator:q,value:j}=_.visibilityCondition,K=xe(D,G);switch(q){case"equals":return K===j;case"notEquals":return K!==j;case"in":return Array.isArray(j)&&j.includes(K);case"notIn":return Array.isArray(j)&&!j.includes(K);case"greaterThan":return K>j;case"lessThan":return K<j;case"contains":return String(K).includes(String(j));default:return!0}},ut=a.computed(()=>{if(console.log("[DEBUG] visibleHeaderActions:",{headerActions:L.value,ignorePermissions:o.ignorePermissions}),L.value.length===0)return L.value;const _=L.value.filter(D=>{if(o.ignorePermissions)return!0;if(!D.permission)return console.log("[DEBUG] Action no permission, showing:",D.label),!0;if(o.checkPermission){const q=o.checkPermission(D.permission);return console.log("[DEBUG] Parent checkPermission result:",q),q}if(o.permissions){const q=o.permissions.includes(D.permission);return console.log("[DEBUG] Parent permissions check result:",q),q}const G=ye(D.permission);return console.log("[DEBUG] Internal permission check:",{label:D.label,permission:D.permission,hasPerm:G}),G});return console.log("[DEBUG] Filtered header actions:",_.length),_}),At=a.computed(()=>b.value.length===0?b.value:b.value.filter(_=>o.ignorePermissions||!_.permission?!0:o.checkPermission?o.checkPermission(_.permission):o.permissions?o.permissions.includes(_.permission):ye(_.permission))),Bt=_=>At.value.filter(D=>Ne(D,_)),Ha=(_,D)=>{var j,K;if(_.requiredCondition&&((j=_.propCustomCondition)==null?void 0:j.length)>0){const he=xe(D,"status"),Ve=_.propCustomCondition.find(me=>me.value===he);if(Ve)return Ve.bgColor||_.bgColor||"primary"}if(!_.dynamicColor||!_.colorCondition)return _.bgColor||"primary";const G=xe(D,_.colorCondition.field),q=(K=_.colorCondition.conditions)==null?void 0:K.find(he=>he.value===G);return(q==null?void 0:q.bgColor)||_.bgColor||"primary"},jS=_=>{const D=(_||"left").toLowerCase();return D==="center"?"justify-center":D==="right"?"justify-end":"justify-start"},Gs={ToggleLeft:gl,SquarePen:at,Trash2:Ti,Eye:ws,CheckCircle:ga,Plus:pl,Download:rl,RefreshCw:Ls,Search:vr,SlidersHorizontal:kl},Jl=_=>_?na[_]?na[_]:Gs[_]||null:null,xt=a.computed(()=>ce.value.length>0&&f.value.length===0&&te.value.length===0?J(5):R.value?f.value.map((_,D)=>({..._,no:(u.value-1)*p.value+D+1})):te.value),$=a.computed(()=>R.value?k.value:De.value.length),ae=a.computed(()=>$.value===0?0:(u.value-1)*p.value+1),de=a.computed(()=>{const _=u.value*p.value;return _>$.value?$.value:_}),xe=(_,D)=>{if(!(!_||!D))return D in _?_[D]:D.split(".").reduce((G,q)=>G&&G[q],_)},De=a.computed(()=>{if(R.value)return[];if(!h.value)return o.data;const _=h.value.toLowerCase();return o.data.filter(D=>ce.value.some(G=>{const q=xe(D,G.key);return q==null?!1:String(q).toLowerCase().includes(_)}))}),Z=a.computed(()=>R.value?[]:y.value.key?[...De.value].sort((D,G)=>{const q=xe(D,y.value.key),j=xe(G,y.value.key);if(q===j)return 0;let K=0;return typeof q=="number"&&typeof j=="number"?K=q-j:K=String(q).localeCompare(String(j)),y.value.direction==="asc"?K:-K}):De.value),te=a.computed(()=>{if(R.value)return[];const _=(u.value-1)*p.value,D=_+p.value;return Z.value.slice(_,D).map((G,q)=>({...G,no:_+q+1}))}),ne=a.computed(()=>R.value?Object.values(g.value).some(_=>!!_):!!h.value),fe=[10,25,50,100],He=()=>{R.value&&(g.value={...g.value,keyword:h.value},u.value=1,Je())};let Vt;const GP=()=>{o.enableQuickSearch&&(clearTimeout(Vt),Vt=setTimeout(()=>{He()},500))};let FS;const KP=()=>{clearTimeout(FS),FS=setTimeout(()=>{R.value&&Je()},1e3)};a.watch(h,()=>{o.enableQuickSearch&&R.value&&GP()});const Je=async()=>{if(R.value&&!(!F.value&&!Q.value))try{m.value=!0;const _={page:u.value,perPage:p.value,...g.value,...o.apiParams};h.value&&(_.keyword=h.value),Object.keys(_).forEach(G=>{(_[G]===""||_[G]===null||_[G]===void 0)&&delete _[G]});let D;F.value?D=await i(F.value,N.value,_):Q.value&&(D=await i(Q.value,Y.value,_)),XP(D)}catch(_){console.error("DataTable fetch error",_),m.value=!1}},XP=_=>{console.log("DataTable handleResponseData:",_),_&&(o.dynamicColumns&&_.columns&&Array.isArray(_.columns)&&(x.value=_.columns.map(D=>({key:D.key||D.field||D.name,label:D.label||D.header||D.name,width:D.width,align:D.align||"LEFT",sortable:D.sortable!==!1,type:D.type,condition:D.condition,format:D.format}))),_.data&&Array.isArray(_.data)?(f.value=_.data,_.totalData?k.value=_.totalData:_.maxPage?k.value=_.maxPage*p.value:k.value=_.data.length*(_.maxPage||1)):Array.isArray(_)?(f.value=_,k.value=_.length):_.users?(f.value=_.users,k.value=_.users.length):_.items&&Array.isArray(_.items)?(f.value=_.items,k.value=_.total||_.totalItems||_.items.length):_.list&&Array.isArray(_.list)?(f.value=_.list,k.value=_.total||_.list.length):_.rows&&Array.isArray(_.rows)?(f.value=_.rows,k.value=_.count||_.total||_.rows.length):_.result&&Array.isArray(_.result)?(f.value=_.result,k.value=_.total||_.count||_.result.length):(console.warn("DataTable: Unknown response format",_),f.value=[],k.value=0)),m.value=!1};a.onUnmounted(()=>{clearTimeout(Vt),clearTimeout(FS)});const NS=()=>{Object.keys(g.value).forEach(_=>{g.value[_]=""}),h.value="",u.value=1,Je()},ZP=()=>{u.value=1,Je()},RS=(_,D)=>{const G=xe(_,D.key);let q={variant:"secondary",class:"",label:G};if(D.condition){const j=D.condition.find(K=>{const he=(Ve,me)=>typeof Ve=="string"&&typeof me=="string"?Ve.toLowerCase().trim()===me.toLowerCase().trim():Ve==me;return typeof G=="object"&&G!==null?he(K.value,G.code)||he(K.value,G.id):he(K.value,G)});if(j){if(j.variant&&(q.variant=j.variant),q.label=j.label||(typeof G=="object"?G.name||G.code:G),j.color){const K=j.color.toLowerCase(),he=q.variant==="outline",Ve={success:"bg-green-500 hover:bg-green-600 border-transparent text-white shadow",warning:"bg-yellow-500 hover:bg-yellow-600 border-transparent text-white shadow",info:"bg-blue-500 hover:bg-blue-600 border-transparent text-white shadow"},me={success:"text-green-600 border-green-600 hover:bg-green-50",warning:"text-yellow-600 border-yellow-600 hover:bg-yellow-50",info:"text-blue-600 border-blue-600 hover:bg-blue-50",danger:"text-red-600 border-red-600 hover:bg-red-50",destructive:"text-red-600 border-red-600 hover:bg-red-50",primary:"text-primary-600 border-primary-600 hover:bg-primary-50",secondary:"text-neutral-600 border-neutral-600 hover:bg-zinc-50"},Ce={danger:"destructive",secondary:"secondary",primary:"default"};he?me[K]&&(q.class=me[K]):Ce[K]?q.variant=Ce[K]:Ve[K]&&(q.class=Ve[K])}}else q.label=typeof G=="object"?(G==null?void 0:G.name)||(G==null?void 0:G.code)||"-":G}else q.label=typeof G=="object"?(G==null?void 0:G.name)||(G==null?void 0:G.code)||"-":G;return q},YP=_=>{y.value.key===_?y.value.direction=y.value.direction==="asc"?"desc":"asc":(y.value.key=_,y.value.direction="asc"),r("update:sort",y.value)},$_=_=>{_!==u.value&&(u.value=_,R.value&&Je(),r("update:page",_))},QP=_=>{p.value=_,u.value=1,R.value&&Je()},JP=_=>{const D=Math.random()*15+75;if(_.width){const G=parseInt(String(_.width));return G<100?`${Math.floor(G*(Math.random()*.2+.7))}px`:`${D}%`}return`${D}%`},U_=()=>{h.value="",g.value={},u.value=1,Je()},W_=_=>{var D;if(console.log("[DEBUG] handleHeaderAction called:",_),_.route){if(_.path){const G=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${G}`,_.path)}d.push(_.route)}else if(_.openDialog){B.value=_,A.value=null,I.value={};const G=_.fieldActionGlobal||_.field||[];G.length&&G.forEach(q=>{var he;const j=_.endpoint||((he=_.propsActionGlobal)==null?void 0:he.endpointPropAction)||_.propsActionGlobal,K=j!=null&&j.keyParam&&j.keyParam.length>0?j.keyParam[0]:null;K&&q.model===K||!K&&/^(id|ids|idAuditTrail)/i.test(q.model)?I.value[q.model]=V.value:I.value[q.model]||(I.value[q.model]="")}),w.value=!0}else r("action",{action:((D=_.propsActionCustom)==null?void 0:D.key)||_.key||"create",row:null,selection:V.value})},xee=async(_,D)=>{var G,q,j,K;if(_.requireConfirm){z.value={button:_,row:D},M.value=!0;return}if(_.openDialog){B.value=_,A.value=D,I.value={};const he=ce.value.find(Ce=>Ce.type==="CHECKBOX"),Ve=(he==null?void 0:he.keyCheckbox)||"id";_.fieldActionCustom&&_.fieldActionCustom.forEach(Ce=>{/^(id|ids|idAuditTrail)/i.test(Ce.model)?I.value[Ce.model]=[D[Ve]]:_.action==="showToken"&&Ce.model==="token"?I.value[Ce.model]=D.token!==void 0?D.token:"":D[Ce.model]!==void 0?I.value[Ce.model]=D[Ce.model]:I.value[Ce.model]=""});const me=_.endpoint||((G=_.propsActionGlobal)==null?void 0:G.endpointPropAction)||((q=_.propsActionCustom)==null?void 0:q.endpointPropAction)||((j=_.props)==null?void 0:j.endpointPropAction);if(((K=me==null?void 0:me.apiMethod)==null?void 0:K.toUpperCase())==="GET"&&me.apiUrl){m.value=!0;const{apiUrl:Ce}=et(),Re={};me.keyParam&&Array.isArray(me.keyParam)&&me.keyParam.forEach((Ee,qe)=>{const ea=me.model&&qe===0?me.model:Ee;D[Ee]!==void 0&&(Re[ea]=D[Ee])}),Object.keys(Re).length===0&&D.id&&(Re.id=D.id),Ce(me.apiUrl,"GET",Re).then(Ee=>{let qe=Ee;if(Ee&&Ee.data!==void 0?qe=Ee.data:Ee&&Ee.result!==void 0&&(qe=Ee.result),qe!=null){if(typeof qe=="string")I.value.hasOwnProperty("token")&&(I.value.token=qe);else if(typeof qe=="object"&&(qe.item&&(qe=qe.item),Array.isArray(qe)&&(qe=qe[0]||{}),Object.keys(qe).forEach(ea=>{I.value[ea]=qe[ea]}),!I.value.token)){const ea=Object.keys(qe).find(fs=>fs.toLowerCase().includes("token"));if(ea)I.value.token=qe[ea];else{const fs=Object.values(qe).filter(US=>typeof US=="string");fs.length===1&&(I.value.token=fs[0])}}}w.value=!0}).catch(Ee=>{console.error("Fetch Data Failed",Ee)}).finally(()=>{m.value=!1});return}w.value=!0;return}eq(_,D)},eq=(_,D)=>{if(_.route){if(_.path){const j=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${j}`,_.path)}let G=_.route;G.includes(":")?G=G.replaceAll(/:([a-zA-Z0-9_]+)/g,(j,K)=>D[K]||D.id||K):D.id&&(G=`${G.replace(/\/$/,"")}/${D.id}`);const q={};_.path&&(q.code=_.path),d.push({path:G,query:q})}else if(_.endpoint&&_.endpoint.apiUrl){m.value=!0;const{apiUrl:G}=et(),q=_.endpoint.apiUrl,j=_.endpoint.apiMethod||"POST",K={};_.endpoint.keyParam&&Array.isArray(_.endpoint.keyParam)&&_.endpoint.keyParam.forEach((he,Ve)=>{const me=_.endpoint.model&&Ve===0?_.endpoint.model:he;D[he]!==void 0&&(K[me]=D[he])}),Object.keys(K).length===0&&D.id&&(K.id=D.id),G(q,j,K).then(()=>{Je(),r("action",{action:_.action||"success",row:D})}).catch(he=>{console.error("Action Failed",he)}).finally(()=>{m.value=!1})}else r("action",{action:_.action,row:D})},wee=()=>{z.value&&(eq(z.value.button,z.value.row),tq())},vee=()=>{var _,D,G;if(B.value){const q=B.value,j=q.endpoint||((_=q.propsActionGlobal)==null?void 0:_.endpointPropAction)||q.propsActionGlobal;let K=(j==null?void 0:j.model)||(j!=null&&j.keyParam&&j.keyParam.length>0?j.keyParam[0]:null);if(!K){const Ce=(q.fieldActionGlobal||q.fieldActionCustom||q.field||[]).find(Re=>/^(id|ids|idAuditTrail)/i.test(Re.model));K=Ce?Ce.model:"ids"}let he=null,Ve=!1;if(A.value){const me=ce.value.find(Ee=>Ee.type==="CHECKBOX"),Ce=(me==null?void 0:me.keyCheckbox)||"id",Re=A.value[Ce];j!=null&&j.apiUrl&&(he={...I.value},he[K]||(he[K]=[Re]),Ve=!0)}else j!=null&&j.apiUrl&&(he={...I.value},he[K]||(he[K]=V.value||[]),Ve=!0);if(Ve&&he&&(j!=null&&j.apiUrl)){if(((D=j==null?void 0:j.apiMethod)==null?void 0:D.toUpperCase())==="GET"){w.value=!1,A.value||(V.value=[]);return}const{apiUrl:me}=et(),Ce=j.apiUrl,Re=j.apiMethod||"POST";me(Ce,Re,he).then(()=>{w.value=!1,A.value||(V.value=[]),Je(),r("action",{action:"success",row:null})}).catch(Ee=>{console.error("Action Failed",Ee)})}else if(A.value){const me=ce.value.find(qe=>qe.type==="CHECKBOX"),Ce=(me==null?void 0:me.keyCheckbox)||"id",Re=A.value[Ce],Ee={...I.value};Ee[K]||(Ee[K]=[Re]),r("action",{action:B.value.action,row:Ee}),w.value=!1}else{const me={...I.value};me[K]||(me[K]=V.value);const Ce={action:((G=B.value.propsActionGlobal)==null?void 0:G.key)||B.value.key,row:me,selection:V.value};r("action",Ce),w.value=!1}}},Cee=_=>{const D=I.value[_];D&&oQ(String(D)).then(()=>{ze.success("Berhasil disalin!",{autoClose:2e3,theme:"dark",pauseOnHover:!1})}).catch(G=>{console.error("Failed to copy",G)})},tq=()=>{M.value=!1,z.value=null},Lee=a.computed(()=>z.value?z.value.button.confirmTitle||"Confirm":""),See=a.computed(()=>z.value?z.value.button.confirmMessage||"Confirm":"");t({fetchData:Je,filters:g,resetFilters:NS,handleRefresh:U_});const $S=a.ref(""),Iee=_=>{if(!_)return"";const D=_.endpoint||_.endpointGlobal||{};return JSON.stringify({url:D.apiUrl||_.apiUrl,module:D.apiModule||_.apiModule,action:D.apiAction||_.apiAction,method:D.apiMethod||_.apiMethod,params:_.apiParams,socket:D.socket||_.socketEndpoint,socketParams:_.socketParams})};return a.watch(()=>o.tableConfig,()=>{if(o.tableConfig){Ie();const _=Iee(o.tableConfig);_!==$S.value&&(!$S.value&&R.value?($S.value=_,Je()):($S.value=_,R.value&&KP()))}},{deep:!0,immediate:!0}),a.watch(()=>o.apiModule,()=>{R.value&&Je()}),a.watch(()=>o.apiParams,()=>{R.value&&Je()},{deep:!0}),a.watch(()=>L.value,_=>{console.log("[DEBUG] headerActions changed:",_.length,"items");const D=ut.value;console.log("[DEBUG] visibleHeaderActions evaluated:",D.length,"items")},{deep:!0}),a.onMounted(()=>{Ie(),R.value&&(o.tableConfig||(m.value=!0,Je()))}),(_,D)=>{var G;return a.openBlock(),a.createElementBlock("div",_J,[a.createElementVNode("div",AJ,[a.createElementVNode("div",BJ,[e.nested?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",VJ,[a.createElementVNode("div",zJ,[a.createVNode(a.unref(vr),{class:"absolute left-2.5 top-2.5 h-4 w-4 text-neutral-500 dark:text-neutral-400"}),a.createVNode(a.unref(z_),{modelValue:h.value,"onUpdate:modelValue":D[0]||(D[0]=q=>h.value=q),placeholder:"Search...",style:{"padding-left":"2.25rem !important"},class:"h-9 bg-white/95 dark:bg-zinc-800/95 border-white/30 dark:border-neutral-700/50 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-500 dark:placeholder:text-neutral-400",onKeyup:a.withKeys(He,["enter"])},null,8,["modelValue"])]),S.value.length>0?(a.openBlock(),a.createElementBlock("div",PJ,[a.createVNode(yQ,null,{trigger:a.withCtx(()=>[a.createVNode(as,{variant:"secondary",icon:"SlidersHorizontal",tooltip:"Advance Search",class:"gap-2 h-9 w-full sm:w-auto justify-center bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium"})]),footer:a.withCtx(()=>[a.createElementVNode("div",HJ,[a.renderSlot(_.$slots,"filter-footer",{fetch:Je,reset:NS})])]),default:a.withCtx(()=>[a.createElementVNode("div",qJ,[a.renderSlot(_.$slots,"filter-form",{filters:g.value},()=>[S.value.length>0?(a.openBlock(),a.createElementBlock("div",DJ,[a.createElementVNode("div",EJ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ue.value,(q,j)=>(a.openBlock(),a.createElementBlock("div",{key:j,class:a.normalizeClass(pe(q.column))},[a.createVNode(zP,{field:q,modelValue:g.value[q.model],"onUpdate:modelValue":K=>g.value[q.model]=K},null,8,["field","modelValue","onUpdate:modelValue"])],2))),128))])])):a.createCommentVNode("",!0)]),S.value.length>0?(a.openBlock(),a.createElementBlock("div",TJ,[a.createVNode(a.unref(je),{variant:"outline",onClick:NS,disabled:P.value,class:"flex-1 w-full"},{default:a.withCtx(()=>[...D[8]||(D[8]=[a.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"]),a.createVNode(a.unref(je),{onClick:ZP,disabled:P.value,class:"flex-1 w-full"},{default:a.withCtx(()=>[...D[9]||(D[9]=[a.createTextVNode(" Search ",-1)])]),_:1},8,["disabled"])])):a.createCommentVNode("",!0)])]),_:3})])):a.createCommentVNode("",!0)])),a.createElementVNode("div",{class:a.normalizeClass(["flex items-center gap-2 flex-wrap",{"w-full justify-between":e.nested}])},[e.nested?(a.openBlock(),a.createElementBlock("span",OJ)):a.createCommentVNode("",!0),e.nested?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(as,{key:1,variant:"secondary",icon:"RefreshCw",text:"Refresh",tooltip:"Refresh",class:"gap-2 h-9 bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-white dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium",onClick:U_,disabled:P.value},{icon:a.withCtx(()=>[a.createVNode(a.unref(Ls),{class:a.normalizeClass(["w-3.5 h-3.5",{"animate-spin":P.value}])},null,8,["class"])]),_:1},8,["disabled"])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ut.value,(q,j)=>(a.openBlock(),a.createBlock(as,{key:j,icon:q.icon,text:q.label,tooltip:q.tooltip,variant:q.variant,"bg-color":q.bgColor,"text-color":q.textColor,class:"gap-2 h-9 shadow-lg shadow-primary-500/20 border-none text-xs font-medium",onClick:K=>W_(q)},null,8,["icon","text","tooltip","variant","bg-color","text-color","onClick"]))),128)),a.renderSlot(_.$slots,"header-actions")],2)])]),a.createElementVNode("div",jJ,[a.createElementVNode("table",FJ,[a.createElementVNode("thead",NJ,[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,q=>(a.openBlock(),a.createElementBlock("th",{key:q.key,class:a.normalizeClass([q.align?`text-${q.align.toLowerCase()}`:"",q.sortable?"cursor-pointer select-none":"","px-3 py-2 text-xs font-black text-white dark:text-neutral-100 uppercase tracking-wider transition-colors duration-150"]),style:a.normalizeStyle(q.width?{width:q.width}:{}),onClick:j=>q.sortable&&YP(q.key)},[q.type==="CHECKBOX"?(a.openBlock(),a.createElementBlock("div",$J,[a.createVNode(Kl,{"model-value":E.value,indeterminate:W.value,"onUpdate:modelValue":D[1]||(D[1]=j=>O(!!j)),onClick:D[2]||(D[2]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate"])])):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex items-center gap-2 w-full",jS(q.align)])},[a.createElementVNode("span",null,a.toDisplayString(q.label),1)],2))],14,RJ))),128)),X.value?(a.openBlock(),a.createElementBlock("th",UJ,[...D[10]||(D[10]=[a.createElementVNode("div",{class:"flex items-center justify-center w-full"}," Actions ",-1)])])):a.createCommentVNode("",!0)])]),a.createElementVNode("tbody",WJ,[P.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(p.value,q=>(a.openBlock(),a.createElementBlock("tr",{key:`skeleton-${q}`},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,j=>{var K,he;return a.openBlock(),a.createElementBlock("td",{key:j.key,class:a.normalizeClass([j.align?`text-${j.align.toLowerCase()}`:"text-left","px-3 py-0.5"])},[a.createElementVNode("div",{class:a.normalizeClass(["bg-gradient-to-r from-neutral-200 via-neutral-300 to-neutral-200 dark:from-neutral-700 dark:via-neutral-600 dark:to-neutral-700 animate-shimmer",[["badge","BADGE"].includes(j.type??"")||j.condition?"h-5 rounded-full w-20":"h-4 rounded-md",((K=j.align)==null?void 0:K.toLowerCase())==="center"?"mx-auto":"",((he=j.align)==null?void 0:he.toLowerCase())==="right"?"ml-auto":""]]),style:a.normalizeStyle({width:["badge","BADGE"].includes(j.type??"")||j.condition?void 0:JP(j),backgroundSize:"200% 100%"})},null,6)],2)}),128)),e.hasActions?(a.openBlock(),a.createElementBlock("td",GJ,[...D[11]||(D[11]=[a.createElementVNode("div",{class:"flex items-center justify-center gap-1.5"},[a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse"}),a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-75"}),a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-150"})],-1)])])):a.createCommentVNode("",!0)]))),128)):xt.value.length===0?(a.openBlock(),a.createElementBlock("tr",KJ,[a.createElementVNode("td",{colspan:ce.value.length+(X.value?1:0),class:"text-center py-16"},[a.createElementVNode("div",ZJ,[a.createElementVNode("div",null,[a.createElementVNode("p",YJ,a.toDisplayString(ne.value?"No search results":"No data"),1),a.createElementVNode("p",QJ,a.toDisplayString(ne.value?"Try changing keywords":"No data added"),1)])])],8,XJ)])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:2},a.renderList(xt.value,(q,j)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:j},[a.createElementVNode("tr",JJ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,K=>(a.openBlock(),a.createElementBlock("td",{key:K.key,class:a.normalizeClass([K.align?`text-${K.align}`:"text-left","px-3 py-0.5 text-sm text-neutral-900 dark:text-neutral-100"])},[a.renderSlot(_.$slots,`cell-${K.key}`,{row:q,value:xe(q,K.key)},()=>[K.type==="CHECKBOX"?(a.openBlock(),a.createElementBlock("div",eee,[a.createVNode(Kl,{"model-value":H(q),"onUpdate:modelValue":he=>U(q,!!he),onClick:D[3]||(D[3]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])])):K.type==="badge"||K.type==="BADGE"||K.condition?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex items-center gap-1.5 flex-wrap md:flex-nowrap",[K.align?`justify-${K.align}`:"justify-start"]])},[a.createVNode(a.unref(Ea),{variant:RS(q,K).variant,class:a.normalizeClass([RS(q,K).class,"whitespace-nowrap truncate max-w-[150px] inline-block"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(RS(q,K).label),1)]),_:2},1032,["variant","class"])],2)):K.key==="no"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString((u.value-1)*p.value+j+1),1)],64)):K.type==="date"||K.type==="DATE"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createTextVNode(a.toDisplayString(xe(q,K.key)?a.unref(aQ)(xe(q,K.key),"long"):"-"),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createTextVNode(a.toDisplayString(K.format?K.format(xe(q,K.key)):xe(q,K.key)),1)],64))])],2))),128)),X.value?(a.openBlock(),a.createElementBlock("td",tee,[a.renderSlot(_.$slots,"actions",{row:q,buttons:Bt(q),getButtonColor:Ha,getIconComponent:Jl},()=>[Bt(q).length>0?(a.openBlock(),a.createElementBlock("div",aee,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Bt(q),(K,he)=>(a.openBlock(),a.createElementBlock("div",{key:he,class:"group relative"},[a.createVNode(as,{tooltip:K.tooltip||K.label,icon:K.icon,size:"icon",rounded:K.rounded||"sm",borderStyle:K.borderStyle||"none",variant:K.variant||"ghost","bg-color":Ha(K,q),onClick:Ve=>xee(K,q)},null,8,["tooltip","icon","rounded","borderStyle","variant","bg-color","onClick"])]))),128))])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]),_.$slots["expanded-row"]?(a.openBlock(),a.createElementBlock("tr",nee,[a.createElementVNode("td",{colspan:ce.value.length+(X.value?1:0),class:"px-0 py-0"},[a.renderSlot(_.$slots,"expanded-row",{row:q,index:j})],8,oee)])):a.createCommentVNode("",!0)],64))),128))])])]),!P.value&&xt.value.length>0&&e.showPagination&&v.value?(a.openBlock(),a.createElementBlock("div",ree,[a.createElementVNode("div",iee,[a.createVNode(a.unref(LQ),{"model-value":String(p.value),"onUpdate:modelValue":D[4]||(D[4]=q=>QP(Number(q)))},{default:a.withCtx(()=>[a.createVNode(a.unref(VQ),{class:"h-8 w-[70px] bg-white dark:bg-zinc-800 border-neutral-200 dark:border-neutral-700"},{default:a.withCtx(()=>[a.createVNode(a.unref(zQ),{placeholder:String(p.value)},null,8,["placeholder"])]),_:1}),a.createVNode(a.unref(SQ),null,{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(fe,q=>a.createVNode(a.unref(_Q),{key:q,value:String(q)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(q),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),D[16]||(D[16]=a.createElementVNode("div",{class:"h-5 w-px bg-zinc-300 dark:bg-zinc-600"},null,-1)),a.createElementVNode("span",see,[D[12]||(D[12]=a.createTextVNode(" Showing ",-1)),a.createElementVNode("span",lee,a.toDisplayString(ae.value),1),D[13]||(D[13]=a.createTextVNode(" to ",-1)),a.createElementVNode("span",cee,a.toDisplayString(de.value),1),D[14]||(D[14]=a.createTextVNode(" of ",-1)),a.createElementVNode("span",dee,a.toDisplayString($.value),1),D[15]||(D[15]=a.createTextVNode(" items ",-1))])]),a.createElementVNode("div",hee,[a.createVNode(a.unref(kQ),{total:$.value,"items-per-page":p.value,"sibling-count":1,"show-edges":"",page:u.value,"onUpdate:page":$_,class:"scale-90 origin-right"},{default:a.withCtx(()=>[a.createVNode(a.unref(gQ),{class:"flex items-center gap-1"},{default:a.withCtx(({items:q})=>[a.createVNode(a.unref(MQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-50 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(tl),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(CQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(bn),{class:"h-4 w-4"})]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q,(j,K)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[j.type==="page"?(a.openBlock(),a.createBlock(a.unref(xQ),{key:K,value:j.value,"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(je),{class:"w-8 h-8 p-0 text-sm",variant:j.value===u.value?"default":"outline",disabled:j.value===u.value,onClick:he=>$_(j.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(j.value),1)]),_:2},1032,["variant","disabled","onClick"])]),_:2},1032,["value"])):(a.openBlock(),a.createBlock(a.unref(bQ),{key:j.type,index:K},null,8,["index"]))],64))),256)),a.createVNode(a.unref(vQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(Mn),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(wQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(al),{class:"h-4 w-4"})]),_:1})]),_:1})]),_:1},8,["total","items-per-page","page"])])])):a.createCommentVNode("",!0),a.createVNode(CS,{modelValue:M.value,"onUpdate:modelValue":D[5]||(D[5]=q=>M.value=q),title:Lee.value,icon:"AlertCircle","max-width":450,persistent:!1},{actions:a.withCtx(()=>[a.createVNode(a.unref(je),{variant:"outline",onClick:tq},{default:a.withCtx(()=>[...D[17]||(D[17]=[a.createTextVNode(" Cancel ",-1)])]),_:1}),a.createVNode(a.unref(je),{onClick:wee},{default:a.withCtx(()=>[...D[18]||(D[18]=[a.createTextVNode(" Yes ",-1)])]),_:1})]),default:a.withCtx(()=>[a.createElementVNode("div",uee,[a.createElementVNode("p",pee,a.toDisplayString(See.value),1)])]),_:1},8,["modelValue","title"]),a.createVNode(CS,{modelValue:w.value,"onUpdate:modelValue":D[7]||(D[7]=q=>w.value=q),title:((G=B.value)==null?void 0:G.label)||"Action",icon:"AlertCircle","max-width":450},{actions:a.withCtx(()=>[a.createVNode(a.unref(je),{variant:"outline",onClick:D[6]||(D[6]=q=>w.value=!1)},{default:a.withCtx(()=>[...D[19]||(D[19]=[a.createTextVNode(" Cancel ",-1)])]),_:1}),a.createVNode(a.unref(je),{onClick:vee},{default:a.withCtx(()=>[...D[20]||(D[20]=[a.createTextVNode(" Save ",-1)])]),_:1})]),default:a.withCtx(()=>{var q,j;return[a.createElementVNode("div",yee,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((q=B.value)==null?void 0:q.fieldActionCustom)||((j=B.value)==null?void 0:j.fieldActionGlobal)||[],(K,he)=>{var Ve,me,Ce;return a.openBlock(),a.createElementBlock(a.Fragment,{key:he},[K.isHidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(pe(K.column))},[a.createElementVNode("div",fee,[a.createVNode(zP,{class:"flex-1 w-full",field:K,modelValue:I.value[K.model],"onUpdate:modelValue":Re=>I.value[K.model]=Re},null,8,["field","modelValue","onUpdate:modelValue"]),K.isCopyable||(Ve=K.props)!=null&&Ve.isCopyable||((me=B.value)==null?void 0:me.action)==="showToken"||((Ce=B.value)==null?void 0:Ce.action)==="copyToken"?(a.openBlock(),a.createBlock(as,{key:0,icon:"Copy",variant:"outline",class:"h-10 w-10 p-0 flex-shrink-0",tooltip:"Salin",onClick:Re=>Cee(K.model)},null,8,["onClick"])):a.createCommentVNode("",!0)])],2))],64)}),128))])]}),_:1},8,["modelValue","title"])])}}}),mee={class:"h-full flex flex-col"},kee={key:1,class:"flex-1 flex items-center justify-center"},gee={key:2,class:"flex-1 flex items-center justify-center text-red-500"},$P=a.defineComponent({__name:"AutoLayoutDatatable",props:{layoutCode:{},userPermissions:{},permissionBase:{}},emits:["action","navigate"],setup(e,{emit:t}){const n=e,o=t,r=ms.useRoute();ms.useRouter();const{apiUrl:i}=et(),s=a.inject("hasActionAccess",()=>!1),c=a.inject("userPermissions",null),d=a.ref(null),h=a.ref(!0),u=a.ref(null),p=async()=>{var m;h.value=!0;try{const k=await i(`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"GET");k.status&&(d.value=Array.isArray(k.data)?k.data[0]:k.data,console.log("[DEBUG] AutoLayoutDatatable config loaded:",d.value),console.log("[DEBUG] actionGlobal in config:",(m=d.value)==null?void 0:m.actionGlobal))}catch(k){console.error("Gagal Menampilkan Datatable:",k)}finally{h.value=!1}},y=m=>{m.action==="add"&&console.log("[AutoLayoutDatatable] Add action triggered"),console.log("Aksi:",m.action,m)},f=m=>{console.log("[DEBUG] AutoLayoutDatatable handleNavigate:",m);let k=m.route;if(k||(k=`/${((r==null?void 0:r.path)||"").split("/")[1]||"product"}/create`),k){const g=m.path?{code:m.path}:{};console.log("[DEBUG] Emitting navigate to parent:",{path:k,query:g}),o("navigate",{route:k,query:g})}else console.warn("[DEBUG] No route or path provided for navigation")};return a.onMounted(()=>{p()}),(m,k)=>(a.openBlock(),a.createElementBlock("div",mee,[!h.value&&d.value?(a.openBlock(),a.createBlock(HS,{key:0,ref_key:"dtRef",ref:u,"api-url":`/api/auto-layout/datatable/form-dynamic?code=${n.layoutCode}`,"api-method":"GET","table-config":d.value,"permission-base":n.permissionBase||"","user-permissions":n.userPermissions||a.unref(c),"permission-checker":a.unref(s),onAction:y,onNavigate:f},{"header-actions":a.withCtx(()=>[...k[0]||(k[0]=[])]),_:1},8,["api-url","table-config","permission-base","user-permissions","permission-checker"])):h.value?(a.openBlock(),a.createElementBlock("div",kee,[...k[1]||(k[1]=[a.createElementVNode("i",{class:"mdi mdi-loading mdi-spin text-4xl text-primary-600"},null,-1)])])):(a.openBlock(),a.createElementBlock("div",gee," Failed to load configuration for "+a.toDisplayString(n.layoutCode),1))]))}}),UP=a.defineCustomElement(VP),WP=a.defineCustomElement($P);typeof customElements<"u"&&(customElements.get("micro-dynamic-form")||customElements.define("micro-dynamic-form",UP),customElements.get("micro-dynamic-datatable")||customElements.define("micro-dynamic-datatable",WP));const bee=[sI,MA,as,PI,Jz,Kl,eP,x_,CS,kP,LS,gP,S_,bP,__,B_,A_,V_,MP,P_,xP,wP,vP,CP,q_,D_,E_,SS,_P,AP,BP,HS],Mee={install(e,t={}){t&&Object.keys(t).length>0&&X_(t),bee.forEach(n=>{n.name&&e.component(n.name,n)})}};oe.AutoLayoutDatatable=$P,oe.AutoLayoutForm=VP,oe.DCodeAutoComplete=sI,oe.DCodeButton=as,oe.DCodeCard=PI,oe.DCodeChart=Jz,oe.DCodeCheckbox=Kl,oe.DCodeCurrencyField=eP,oe.DCodeDatePicker=x_,oe.DCodeDialog=CS,oe.DCodeDialogCloseBtn=kP,oe.DCodeDropzone=LS,oe.DCodeFileField=gP,oe.DCodeFileResult=S_,oe.DCodeIconDropdown=bP,oe.DCodeImageCropperDialog=__,oe.DCodeImageField=B_,oe.DCodeImageResult=A_,oe.DCodeInfiniteAutoComplete=MA,oe.DCodeLabel=V_,oe.DCodeMultiSelect=MP,oe.DCodeOtpInput=P_,oe.DCodeProgress=xP,oe.DCodeProgressBar=wP,oe.DCodeRadio=vP,oe.DCodeRadioCustom=CP,oe.DCodeSlider=q_,oe.DCodeSwitch=D_,oe.DCodeTextField=E_,oe.DCodeTextarea=SS,oe.DCodeTimelineWithIcons=_P,oe.DCodeUploadFile=AP,oe.DCodeWizard=BP,oe.DataTable=HS,oe.DataTableComponent=HS,oe.MicroDynamicDatatable=WP,oe.MicroDynamicForm=UP,oe.cn=Me,oe.default=Mee,oe.setApiConfig=X_,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
8596
|
+
`});return(C,S)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-2 w-full",a.unref(n).class]),"aria-busy":!1},[h.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",CX,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",LX,[e.showValue?(a.openBlock(),a.createElementBlock("div",SX,[a.createElementVNode("span",IX,a.toDisplayString(r.valuePrefix)+a.toDisplayString(e.min)+a.toDisplayString(r.valueSuffix),1),a.createElementVNode("span",_X,a.toDisplayString(f.value),1),a.createElementVNode("span",AX,a.toDisplayString(r.valuePrefix)+a.toDisplayString(e.max)+a.toDisplayString(r.valueSuffix),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",BX,[a.createElementVNode("div",{class:a.normalizeClass(["absolute top-1/2 -translate-y-1/2 w-full h-full bg-gray-200 rounded-lg pointer-events-none",[e.size==="sm"?"h-2":e.size==="md"?"h-2.5":"h-3"]])},[a.createElementVNode("div",{class:a.normalizeClass(["absolute top-0 left-0 h-full rounded-lg transition-all",[e.color==="blue"?"bg-blue-500":e.color==="green"?"bg-green-500":e.color==="red"?"bg-red-500":e.color==="yellow"?"bg-yellow-500":e.color==="purple"?"bg-purple-500":"bg-gray-500"]]),style:a.normalizeStyle({width:`${m.value}%`})},null,6)],2),a.createElementVNode("input",{id:d.value,ref_key:"sliderRef",ref:i,type:"range",value:e.modelValue,min:e.min,max:e.max,step:e.step,disabled:e.disabled,placeholder:e.placeholder,class:a.normalizeClass(p.value),onInput:g,onChange:k,onMousedown:M,onMouseup:w,onTouchstart:M,onTouchend:w},null,42,VX)]),e.marks.length>0?(a.openBlock(),a.createElementBlock("div",zX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.marks,L=>(a.openBlock(),a.createElementBlock("div",{key:L.value,class:"absolute flex flex-col items-center",style:a.normalizeStyle({left:`${x(L.value)}%`,transform:"translateX(-50%)"})},[S[0]||(S[0]=a.createElementVNode("div",{class:"w-1 h-2 bg-gray-400 rounded-full"},null,-1)),a.createElementVNode("span",PX,a.toDisplayString(L.label),1)],4))),128))])):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createElementBlock("div",qX,[S[1]||(S[1]=a.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),a.createTextVNode(" "+a.toDisplayString(e.error),1)])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent("style"),{key:2},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.value),1)]),_:1})):a.createCommentVNode("",!0)],2)),[[a.vShow,u.value]])}}),EX={class:"inline-flex items-center gap-3"},TX=["for"],HX={key:0,class:"text-red-500 ml-1"},OX=["id","name","aria-checked","aria-label","disabled"],jX={key:0,class:"absolute inset-0 flex items-center justify-center"},FX={class:"relative z-10 flex items-center gap-2"},NX=["id","name","aria-checked","aria-label","disabled"],RX={key:0,class:"absolute inset-0 flex items-center justify-center"},$X=["for"],UX={key:0,class:"text-red-500 ml-1"},WX={name:"DCodeSwitch"},D_=a.defineComponent({...WX,props:{modelValue:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!1},labelPosition:{default:"right"},id:{},name:{},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1},tooltipActiveText:{default:"Aktif"},tooltipInactiveText:{default:"Tidak Aktif"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,o=t,r=a.computed({get:()=>n.modelValue,set:p=>{!n.disabled&&!n.loading&&(o("update:modelValue",p),o("change",p))}}),i=a.computed(()=>{switch(n.size){case"small":return"w-9 h-5";case"large":return"w-14 h-7";default:return"w-11 h-6"}}),s=a.computed(()=>{switch(n.size){case"small":return"w-4 h-4";case"large":return"w-6 h-6";default:return"w-5 h-5"}}),c=a.computed(()=>{switch(n.size){case"small":return"translate-x-4";case"large":return"translate-x-7";default:return"translate-x-5"}}),d=a.computed(()=>{if(n.disabled)return"bg-gray-300";if(!r.value)return"bg-gray-200";switch(n.color){case"success":return"bg-green-500";case"warning":return"bg-yellow-500";case"danger":return"bg-red-500";default:return"bg-blue-500"}}),h=()=>{r.value=!r.value},u=a.computed(()=>r.value?n.tooltipActiveText:n.tooltipInactiveText);return(p,y)=>(a.openBlock(),a.createElementBlock("div",EX,[e.label&&e.labelPosition==="left"?(a.openBlock(),a.createElementBlock("label",{key:0,for:e.id,class:a.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":e.disabled}])},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",HX,"*")):a.createCommentVNode("",!0)],10,TX)):a.createCommentVNode("",!0),a.createVNode(a.unref(NB),null,{default:a.withCtx(()=>[e.showTooltip?(a.openBlock(),a.createBlock(a.unref(jB),{key:0,"delay-duration":200},{default:a.withCtx(()=>[a.createVNode(a.unref(RB),{"as-child":""},{default:a.withCtx(()=>[a.createElementVNode("button",{type:"button",id:e.id,name:e.name,"aria-checked":r.value?"true":"false","aria-label":e.label||"Toggle switch",disabled:e.disabled||e.loading,class:a.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":e.disabled,"cursor-wait":e.loading,"cursor-pointer":!e.disabled&&!e.loading}]),onClick:h},[a.createElementVNode("span",{class:a.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[e.loading?(a.openBlock(),a.createElementBlock("span",jX,[...y[0]||(y[0]=[a.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):a.createCommentVNode("",!0),a.createVNode(a.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:a.withCtx(()=>[r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(pt),{key:1,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):a.createCommentVNode("",!0)]),_:1})],2)],10,OX)]),_:1}),a.createVNode(a.unref(FB),{side:"top","side-offset":8,class:a.normalizeClass(["animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0",[r.value?"bg-green-600 dark:bg-green-500 text-white":"bg-gray-700 dark:bg-gray-600 text-white"]])},{default:a.withCtx(()=>[a.createElementVNode("span",FX,[a.createElementVNode("span",{class:a.normalizeClass(["inline-block w-2 h-2 rounded-full animate-pulse",r.value?"bg-green-200":"bg-gray-300"])},null,2),a.createTextVNode(" "+a.toDisplayString(u.value),1)])]),_:1},8,["class"])]),_:1})):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:e.id,name:e.name,"aria-checked":r.value?"true":"false","aria-label":e.label||"Toggle switch",disabled:e.disabled||e.loading,class:a.normalizeClass([i.value,d.value,"relative inline-flex items-center rounded-full transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","hover:scale-105 active:scale-95",{"cursor-not-allowed opacity-50":e.disabled,"cursor-wait":e.loading,"cursor-pointer":!e.disabled&&!e.loading}]),onClick:h},[a.createElementVNode("span",{class:a.normalizeClass([s.value,r.value?c.value:"translate-x-0.5","inline-block transform rounded-full bg-white shadow-lg transition-all duration-300 ease-in-out","hover:shadow-xl flex items-center justify-center"])},[e.loading?(a.openBlock(),a.createElementBlock("span",RX,[...y[1]||(y[1]=[a.createElementVNode("svg",{class:"animate-spin h-3 w-3 text-gray-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[a.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])])):a.createCommentVNode("",!0),a.createVNode(a.Transition,{"enter-active-class":"transition-all duration-200 ease-out","enter-from-class":"scale-0 rotate-90 opacity-0","enter-to-class":"scale-100 rotate-0 opacity-100","leave-active-class":"transition-all duration-150 ease-in","leave-from-class":"scale-100 rotate-0 opacity-100","leave-to-class":"scale-0 -rotate-90 opacity-0"},{default:a.withCtx(()=>[r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(ka),{key:0,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-green-600 stroke-[3]"])},null,8,["class"])):!r.value&&!e.loading?(a.openBlock(),a.createBlock(a.unref(pt),{key:1,class:a.normalizeClass([e.size==="small"?"w-2.5 h-2.5":e.size==="large"?"w-4 h-4":"w-3 h-3","text-gray-400 stroke-[3]"])},null,8,["class"])):a.createCommentVNode("",!0)]),_:1})],2)],10,NX))]),_:1}),e.label&&e.labelPosition==="right"?(a.openBlock(),a.createElementBlock("label",{key:1,for:e.id,class:a.normalizeClass(["text-sm font-medium text-gray-700 cursor-pointer",{"opacity-50":e.disabled}])},[a.createTextVNode(a.toDisplayString(e.label)+" ",1),e.required?(a.openBlock(),a.createElementBlock("span",UX,"*")):a.createCommentVNode("",!0)],10,$X)):a.createCommentVNode("",!0)]))}}),GX=["aria-busy"],KX={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},XX={key:1,class:"flex justify-end"},ZX={key:0,class:"ml-1 text-destructive"},YX={class:"relative w-full group"},QX={key:0,class:"absolute inset-y-0 left-4 flex items-center text-muted-foreground"},JX={key:1},eZ={key:1,class:"absolute inset-y-0 right-4 flex items-center"},tZ={key:2,class:"absolute inset-y-0 right-4 flex items-center"},aZ={key:3,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},nZ={key:1,class:"text-xs text-destructive"},E_=a.defineComponent({name:"DCodeTextField",inheritAttrs:!1,__name:"DCodeTextField",props:{modelValue:{},prependInner:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null},placeholder:{default:""},icon:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=a.computed(()=>{var z;return((z=c.valueType)==null?void 0:z.toLowerCase())==="password"||n.type==="password"}),r=a.ref(!1),i=()=>{r.value=!r.value},s=t,c=e,d=a.computed(()=>n.label);a.computed(()=>c.visible??!0);const h=Math.random().toString(36).slice(2,7),u=a.computed(()=>`app-text-field-${n.id||d.value||"field"}-${h}`),p=a.computed(()=>{const z=n.required,R=n["aria-required"];return z===""||z===!0||z==="true"||(R==="true"||R===!0)}),y=a.computed(()=>{const{label:z,class:R,id:ee,required:ye,"aria-required":Ne,...ut}=n;return ut}),f=a.computed(()=>{var R,ee;const z={...y.value};return((R=c.valueType)==null?void 0:R.toLowerCase())==="number"&&(z.type="text",z.inputmode="numeric",z.pattern="[0-9]*"),((ee=c.valueType)==null?void 0:ee.toLowerCase())==="email"&&(z.type="email",z.inputmode="email"),o.value&&(z.type=r.value?"text":"password"),c.disabled&&(z.disabled=!0),z}),m=a.computed(()=>{const z=c.modelValue;return z==null||String(z).length===0}),g=a.computed(()=>c.clearable?c.hideClearWhenEmpty?!m.value:!0:!1),k=a.computed(()=>{switch(c.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),M=a.ref(String(c.modelValue??""));a.watch(()=>c.modelValue,z=>{const R=String(z??"");R!==M.value&&(M.value=R)});const w=a.ref(!1),x=a.ref(!1),b=z=>z.split(/(\s+)/).map(R=>{if(R.trim()==="")return R;const ee=R.toLowerCase();return ee.charAt(0).toUpperCase()+ee.slice(1)}).join(""),C=z=>{const R=z.toLowerCase(),ee=R.search(new RegExp("\\p{L}","u"));return ee<0?R:R.slice(0,ee)+R.charAt(ee).toUpperCase()+R.slice(ee+1)},S=z=>{switch(c.textCase){case"uppercase":return z.toUpperCase();case"lowercase":return z.toLowerCase();case"titlecase":return b(z);case"sentencecase":return C(z);case"none":default:return z}},L=z=>{if(!z)return null;const R=Array.isArray(z)?z.join(""):z;return R?new Set(R):null},v=a.computed(()=>L(c.allowChars)),I=(z,R)=>(z.lastIndex=0,z.test(R)),q=z=>{var At;const R=(At=c.valueType)==null?void 0:At.toLowerCase();if(R==="free"||R==="email"||R==="password")return!0;const ee=z===" ",ye=/\d/.test(z),Ne=new RegExp("\\p{L}","u").test(z),ut=new RegExp("\\p{N}","u").test(z);return R==="number"?ye:R==="letter"?Ne||c.allowSpaces&&ee:R==="letternumber"?Ne||ut||c.allowSpaces&&ee:!0},B=z=>{let R="";for(const ee of z){const ye=!!v.value&&v.value.has(ee);c.pattern&&!ye&&!I(c.pattern,ee)||!ye&&!q(ee)||(R+=ee)}return R},A=a.computed(()=>{const z=n.maxlength??n.maxLength;let R=Number.NaN;return typeof z=="number"?R=z:typeof z=="string"&&(R=Number.parseInt(z,10)),Number.isFinite(R)&&R>0?R:-1}),V=a.computed(()=>M.value.length),T=a.computed(()=>c.showCharCount?A.value>0:!1),W=z=>A.value>0?z.slice(0,A.value):z,H=z=>{const R=B(z),ee=c.applyTextCaseToValue?S(R):R;return W(ee)};let O=null;const U=z=>{var R;if(z==="")return null;if(((R=c.valueType)==null?void 0:R.toLowerCase())==="number"&&c.returnNumber){const ee=Number(z);return Number.isFinite(ee)?ee:null}return z},J=z=>{M.value=z,s("update:modelValue",U(z))},D=(z,R)=>{const ee=W(R);x.value=!0,z.value=ee,J(ee),queueMicrotask(()=>x.value=!1)},F=(z,R)=>{const ee=z.selectionStart??z.value.length,ye=z.selectionEnd??z.value.length;if(A.value>0){const Ne=z.value.length-(ye-ee),ut=A.value-Ne;if(ut<=0)return;R=R.slice(0,ut)}z.setRangeText(R,ee,ye,"end"),D(z,H(z.value))},N=z=>{var ye;if(!O||w.value||x.value||!((ye=z.inputType)!=null&&ye.startsWith("insert")))return;const R=z.data;if(R==null)return;const ee=H(R);ee!==R&&(z.preventDefault(),ee.length>0&&F(O,ee))},Y=z=>{var ye;if(!O||w.value||x.value)return;const R=((ye=z.clipboardData)==null?void 0:ye.getData("text"))??"",ee=H(R);ee!==R&&(z.preventDefault(),ee.length>0&&F(O,ee))},Q=z=>{if(!O||w.value||x.value)return;const R=z.target,ee=R.value??"",ye=H(ee);ye===ee?J(ye):D(R,ye)},re=()=>w.value=!0,ue=()=>{if(w.value=!1,!O)return;const z=O.value??"",R=H(z);R===z?J(R):D(O,R)};a.onMounted(()=>{if(O=document.getElementById(u.value),!O)return;O.addEventListener("beforeinput",N),O.addEventListener("paste",Y),O.addEventListener("input",Q),O.addEventListener("compositionstart",re),O.addEventListener("compositionend",ue);const z=O.value??"",R=H(z);R===z?J(R):D(O,R)}),a.onBeforeUnmount(()=>{O&&(O.removeEventListener("beforeinput",N),O.removeEventListener("paste",Y),O.removeEventListener("input",Q),O.removeEventListener("compositionstart",re),O.removeEventListener("compositionend",ue),O=null)});const pe=()=>{M.value="",O&&(O.value=""),s("update:modelValue",null),s("clear")},Ie=a.computed(()=>T.value&&V.value>0),ce=a.computed(()=>`${V.value} / ${A.value}`),X=a.computed(()=>!!c.error);return(z,R)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":c.skeleton},[c.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[d.value?(a.openBlock(),a.createElementBlock("div",KX)):a.createCommentVNode("",!0),R[1]||(R[1]=a.createElementVNode("div",{class:"relative w-full"},[a.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse"})],-1)),T.value?(a.openBlock(),a.createElementBlock("div",XX,[...R[0]||(R[0]=[a.createElementVNode("div",{class:"h-3 w-14 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},null,-1)])])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[d.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:u.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.value)+" ",1),p.value?(a.openBlock(),a.createElementBlock("span",ZX,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",YX,[c.icon||c.prependInner||z.$slots["prepend-inner"]?(a.openBlock(),a.createElementBlock("div",QX,[a.renderSlot(z.$slots,"prepend-inner",{},()=>[c.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.icon),{key:0,class:"h-4 w-4"})):c.prependInner?(a.openBlock(),a.createElementBlock("span",JX,a.toDisplayString(c.prependInner),1)):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),a.createVNode(a.unref(z_),a.mergeProps({id:u.value,modelValue:M.value},f.value,{placeholder:c.placeholder,style:`text-transform: ${k.value}; padding-left: ${c.icon||c.prependInner||z.$slots["prepend-inner"]?"2.5rem":"0.75rem"} !important; padding-right: ${g.value||o.value?"2.5rem":"0.75rem"} !important;`,class:["w-full h-10 flex items-center gap-2 rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-within:ring-1 focus-within:ring-white",X.value?"border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px]":""]}),null,16,["id","modelValue","placeholder","style","class"]),o.value?(a.openBlock(),a.createElementBlock("div",eZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground",tabindex:"-1",onClick:i},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.value?a.unref(ws):a.unref(il)),{class:"w-4 h-4"}))])])):a.createCommentVNode("",!0),g.value&&!o.value?(a.openBlock(),a.createElementBlock("div",tZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-lg leading-none","aria-label":"Clear input",onClick:pe}," ✕ ")])):a.createCommentVNode("",!0),Ie.value&&!X.value?(a.openBlock(),a.createElementBlock("p",aZ,a.toDisplayString(ce.value),1)):a.createCommentVNode("",!0)]),X.value?(a.openBlock(),a.createElementBlock("p",nZ,a.toDisplayString(c.error),1)):a.createCommentVNode("",!0)],64))],10,GX)),[[a.vShow,e.visible]])}}),oZ=["aria-busy"],rZ={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"},iZ={key:0,class:"ml-1 text-destructive"},sZ={class:"relative w-full group"},lZ=["id","value"],cZ={key:0,class:"absolute top-1 right-2"},dZ={key:1,class:"absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"},hZ={key:1,class:"text-xs text-destructive"},SS=a.defineComponent({name:"DCodeTextarea",inheritAttrs:!1,__name:"DCodeTextarea",props:{modelValue:{},clearable:{type:Boolean},hideClearWhenEmpty:{type:Boolean,default:!0},textCase:{default:"none"},applyTextCaseToValue:{type:Boolean,default:!0},valueType:{default:"free"},allowSpaces:{type:Boolean,default:!0},allowChars:{},pattern:{},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},showCharCount:{type:Boolean,default:!0},returnNumber:{type:Boolean,default:!1},error:{default:null}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const n=a.useAttrs(),o=t,r=e,i=a.computed(()=>n.label),s=a.computed(()=>r.visible??!0),c=Math.random().toString(36).slice(2,7),d=a.computed(()=>`app-textarea-${n.id||i.value||"field"}-${c}`),h=a.computed(()=>{const X=n.required,z=n["aria-required"];return X===""||X===!0||X==="true"||(z==="true"||z===!0)}),u=a.computed(()=>{const{label:X,class:z,id:R,required:ee,"aria-required":ye,...Ne}=n;return Ne}),p=a.computed(()=>{const X=n.maxlength;let z=Number.NaN;return typeof X=="number"?z=X:typeof X=="string"&&(z=Number.parseInt(X,10)),Number.isFinite(z)&&z>0?z:-1}),y=X=>p.value>0?X.slice(0,p.value):X,f=a.computed(()=>{const X=r.modelValue;return X==null||String(X).length===0}),m=a.computed(()=>r.clearable?r.hideClearWhenEmpty?!f.value:!0:!1),g=a.ref(String(r.modelValue??""));a.watch(()=>r.modelValue,X=>{const z=String(X??"");z!==g.value&&(g.value=z)});const k=a.ref(!1),M=a.ref(!1),w=X=>X.split(/(\s+)/).map(z=>{if(z.trim()==="")return z;const R=z.toLowerCase();return R.charAt(0).toUpperCase()+R.slice(1)}).join(""),x=X=>{const z=X.toLowerCase(),R=z.search(new RegExp("\\p{L}","u"));return R<0?z:z.slice(0,R)+z.charAt(R).toUpperCase()+z.slice(R+1)},b=X=>{switch(r.textCase){case"uppercase":return X.toUpperCase();case"lowercase":return X.toLowerCase();case"titlecase":return w(X);case"sentencecase":return x(X);case"none":default:return X}},C=a.computed(()=>{switch(r.textCase){case"uppercase":return"uppercase";case"lowercase":return"lowercase";default:return"none"}}),S=X=>{if(!X)return null;const z=Array.isArray(X)?X.join(""):X;return z?new Set(z):null},L=a.computed(()=>S(r.allowChars)),v=(X,z)=>(X.lastIndex=0,X.test(z)),I=X=>{if(X===`
|
|
8597
|
+
`)return r.valueType!=="number";if(r.valueType==="free")return!0;const z=X===" ",R=/\d/.test(X),ee=new RegExp("\\p{L}","u").test(X),ye=new RegExp("\\p{N}","u").test(X);return r.valueType==="number"?R:r.valueType==="letter"?ee||r.allowSpaces&&z:r.valueType==="letternumber"?ee||ye||r.allowSpaces&&z:!0},q=X=>{let z="";for(const R of X){const ee=!!L.value&&L.value.has(R);r.pattern&&!ee&&!v(r.pattern,R)||!ee&&!I(R)||(z+=R)}return z},B=X=>{const z=q(X),R=r.applyTextCaseToValue?b(z):z;return y(R)};let A=null;const V=X=>{if(X==="")return null;if(r.valueType==="number"&&r.returnNumber){const z=X.replaceAll(`
|
|
8598
|
+
`,""),R=Number(z);return Number.isFinite(R)?R:null}return X},T=X=>{g.value=X,o("update:modelValue",V(X))},W=(X,z)=>{const R=y(z);M.value=!0,X.value=R,T(R),queueMicrotask(()=>M.value=!1)},H=(X,z)=>{const R=X.selectionStart??X.value.length,ee=X.selectionEnd??X.value.length;if(p.value>0){const ye=X.value.length-(ee-R),Ne=p.value-ye;if(Ne<=0)return;z=z.slice(0,Ne)}X.setRangeText(z,R,ee,"end"),W(X,B(X.value))},O=X=>{var ee;if(!A||k.value||M.value||!((ee=X.inputType)!=null&&ee.startsWith("insert")))return;const z=X.data;if(z==null)return;const R=B(z);R!==z&&(X.preventDefault(),R.length>0&&H(A,R))},U=X=>{var ee;if(!A||k.value||M.value)return;const z=((ee=X.clipboardData)==null?void 0:ee.getData("text"))??"",R=B(z);R!==z&&(X.preventDefault(),R.length>0&&H(A,R))},J=async X=>{if(!A||k.value||M.value)return;const z=X.target,R=z.value??"",ee=B(R);if(ee===R){const ye=z.selectionStart??ee.length,Ne=z.selectionEnd??ee.length;W(z,ee),await a.nextTick();try{z.setSelectionRange(ye,Ne)}catch{}T(ee)}else{const ye=z.selectionStart??ee.length,Ne=z.selectionEnd??ee.length;W(z,ee),await a.nextTick();try{z.setSelectionRange(ye,Ne)}catch{}}},D=()=>k.value=!0,F=()=>{if(k.value=!1,!A)return;const X=A.value??"",z=B(X);z===X?T(z):W(A,z)};a.onMounted(()=>{if(A=document.getElementById(d.value),!A)return;A.addEventListener("beforeinput",O),A.addEventListener("paste",U),A.addEventListener("input",J),A.addEventListener("compositionstart",D),A.addEventListener("compositionend",F);const X=A.value??"",z=B(X);z===X?T(z):W(A,z)}),a.onBeforeUnmount(()=>{A&&(A.removeEventListener("beforeinput",O),A.removeEventListener("paste",U),A.removeEventListener("input",J),A.removeEventListener("compositionstart",D),A.removeEventListener("compositionend",F),A=null)});const N=()=>{g.value="",A&&(A.value=""),o("update:modelValue",null),o("clear")},Y=a.computed(()=>g.value.length),Q=a.computed(()=>r.showCharCount?p.value>0:!1),re=a.computed(()=>Q.value&&Y.value>0),ue=a.computed(()=>`${Y.value} / ${p.value}`),pe=a.computed(()=>!!r.error),Ie=a.computed(()=>{const X=n.rows,z=typeof X=="number"?X:Number.parseInt(String(X??""),10);return Number.isFinite(z)&&z>0?z:3}),ce=a.computed(()=>({height:`${Ie.value*24+16}px`}));return(X,z)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex flex-col gap-1 w-full",a.unref(n).class]),"aria-busy":r.skeleton},[r.skeleton?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[i.value?(a.openBlock(),a.createElementBlock("div",rZ)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse",style:a.normalizeStyle(ce.value)},null,4)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[i.value?(a.openBlock(),a.createBlock(a.unref(Pa),{key:0,for:d.value,class:"text-sm font-medium"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value)+" ",1),h.value?(a.openBlock(),a.createElementBlock("span",iZ,"*")):a.createCommentVNode("",!0)]),_:1},8,["for"])):a.createCommentVNode("",!0),a.createElementVNode("div",sZ,[a.createElementVNode("textarea",a.mergeProps({id:d.value,value:g.value},u.value,{style:`text-transform: ${C.value}; padding-right: ${m.value?"2.5rem":"0.75rem"} !important; padding-left: 0.75rem !important;`,class:["flex min-h-[120px] w-full rounded-lg border py-2 bg-white dark:bg-neutral-900 text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",pe.value?"border-destructive focus-visible:ring-destructive":""]}),null,16,lZ),m.value?(a.openBlock(),a.createElementBlock("div",cZ,[a.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-sm leading-none","aria-label":"Clear textarea",onClick:N}," ✕ ")])):a.createCommentVNode("",!0),re.value&&!pe.value?(a.openBlock(),a.createElementBlock("p",dZ,a.toDisplayString(ue.value),1)):a.createCommentVNode("",!0)]),pe.value?(a.openBlock(),a.createElementBlock("p",hZ,a.toDisplayString(r.error),1)):a.createCommentVNode("",!0)],64))],10,oZ)),[[a.vShow,s.value]])}}),LP=a.defineComponent({__name:"Avatar",props:{class:{type:[Boolean,null,String,Object,Array]},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(_H),{class:a.normalizeClass(a.unref(Me)(a.unref(uZ)({size:e.size,shape:e.shape}),t.class))},{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),SP=a.defineComponent({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(BH),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),IP=a.defineComponent({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(PH),a.mergeProps(t,{class:"h-full w-full object-cover"}),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),uZ=xl("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),IS=a.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(nj),a.mergeProps(a.unref(n),{class:a.unref(Me)("shrink-0 bg-border",t.orientation==="horizontal"?"h-px w-full":"w-px h-full",t.class)}),null,16,["class"]))}}),pZ={class:"bg-card text-card-foreground"},yZ={class:"pb-6 px-3"},fZ={key:0,class:"flex justify-center p-8"},mZ={key:1,class:"p-8 text-center text-red-500"},kZ={key:2,class:"relative"},gZ={class:"space-y-6"},bZ={class:"rounded-xl border bg-card text-card-foreground shadow"},MZ={class:"p-4"},xZ={class:"flex items-center justify-between gap-3"},wZ={class:"font-medium"},vZ={class:"text-xs text-muted-foreground"},CZ={class:"mt-1 text-sm text-muted-foreground"},LZ={class:"text-foreground"},SZ={class:"text-foreground"},IZ={class:"mt-1 text-xs text-muted-foreground"},_Z={key:0,class:"mt-3 flex items-center gap-2 text-sm"},AZ={class:"flex items-center justify-between gap-3"},BZ={class:"font-medium"},VZ={class:"text-xs text-muted-foreground"},zZ={class:"mt-2 text-sm text-muted-foreground"},PZ={class:"flex flex-wrap items-center justify-between gap-3"},qZ={class:"flex items-center gap-3"},DZ={class:"leading-tight"},EZ={class:"text-sm font-medium"},TZ={class:"text-xs text-muted-foreground"},HZ={class:"flex items-center gap-2"},OZ={key:2,class:"flex flex-col gap-3 sm:flex-row sm:items-start"},jZ={class:"h-16 w-16 shrink-0 rounded-lg bg-muted flex items-center justify-center"},FZ=["src"],NZ={class:"flex-1"},RZ={class:"flex items-center justify-between gap-3"},$Z={class:"font-medium"},UZ={class:"text-xs text-muted-foreground"},WZ={class:"mt-1 text-sm text-muted-foreground"},GZ={class:"text-left sm:text-center"},KZ={class:"text-xs text-muted-foreground"},XZ={class:"text-left sm:text-center"},ZZ={class:"text-xs text-muted-foreground"},YZ={class:"text-left sm:text-center"},QZ={class:"text-xs text-muted-foreground"},JZ={class:"flex items-center justify-between gap-3"},eY={class:"font-medium"},tY={class:"text-xs text-muted-foreground"},aY={class:"mt-2 text-sm text-muted-foreground"},nY={class:"mt-3 flex items-center gap-3"},oY={class:"text-sm font-medium"},rY={class:"flex items-start justify-between gap-3"},iY={class:"font-medium"},sY={class:"mt-3 grid gap-2 text-sm"},lY={class:"flex items-center justify-between gap-3"},cY={class:"flex items-center gap-2 text-muted-foreground"},dY={class:"font-medium"},hY={class:"flex items-center justify-between gap-3"},uY={class:"flex items-center gap-2 text-muted-foreground"},pY={class:"font-medium"},yY={class:"flex items-center justify-between gap-3"},fY={class:"flex items-center gap-2 text-muted-foreground"},mY={class:"font-medium"},kY={class:"flex items-center justify-between"},gY={class:"flex items-center gap-2"},bY={class:"flex items-start justify-between gap-3"},MY={class:"flex items-center gap-2"},xY={class:"font-medium"},wY={class:"mt-2 text-sm text-muted-foreground"},vY={key:0,class:"mt-1 text-sm text-muted-foreground"},CY={class:"flex flex-wrap items-center justify-between gap-3"},LY={class:"flex items-center gap-2"},SY={class:"text-xs text-muted-foreground"},_P=a.defineComponent({name:"DCodeTimelineWithIcons",__name:"DCodeTimelineWithIcons",props:{items:{},apiUrl:{},apiMethod:{}},setup(e){const n=kT(mT).smaller("md");a.ref(!1);const o=e,r=a.ref(!1),i=a.ref(null),s=a.ref([]),c=a.computed(()=>s.value.length>0?s.value:o.items&&o.items.length>0?o.items:[]),d=async()=>{if(o.apiUrl){r.value=!0,i.value=null;try{const p=await fetch(o.apiUrl,{method:o.apiMethod||"GET",headers:{"Content-Type":"application/json"}});if(!p.ok)throw new Error(`Error: ${p.status} ${p.statusText}`);const y=await p.json();Array.isArray(y)?s.value=y:y.data&&Array.isArray(y.data)?s.value=y.data:y.items&&Array.isArray(y.items)?s.value=y.items:s.value=[]}catch(p){console.error("Failed to fetch timeline items:",p),i.value=p.message||"Failed to fetch data"}finally{r.value=!1}}};a.onMounted(()=>{o.apiUrl&&d()}),a.watch(()=>o.apiUrl,()=>{o.apiUrl?d():s.value=[]});const h=p=>{switch(p){case"flight":return{Icon:ul,Circle:"bg-primary/10 text-primary border-primary/30"};case"interview":return{Icon:ol,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};case"product":return{Icon:ml,Circle:"bg-amber-500/10 text-amber-600 border-amber-500/30"};case"design":return{Icon:mr,Circle:"bg-sky-500/10 text-sky-600 border-sky-500/30"};case"server":return{Icon:yl,Circle:"bg-rose-500/10 text-rose-600 border-rose-500/30"};case"location":return{Icon:cl,Circle:"bg-emerald-500/10 text-emerald-600 border-emerald-500/30"};default:return{Icon:nl,Circle:"bg-primary/10 text-primary border-primary/30"}}},u=p=>p.split(" ").filter(Boolean).slice(0,2).map(y=>{var f;return(f=y[0])==null?void 0:f.toUpperCase()}).join("");return(p,y)=>{const f=a.resolveComponent("ShoppingCart"),m=a.resolveComponent("RefreshCcw"),g=a.resolveComponent("MapPin");return a.openBlock(),a.createElementBlock("div",pZ,[y[8]||(y[8]=a.createElementVNode("div",{class:"flex flex-col space-y-1.5 py-6 px-3"},[a.createElementVNode("h3",{class:"leading-none tracking-tight text-lg font-medium"},"Timeline With Icons")],-1)),a.createElementVNode("div",yZ,[r.value?(a.openBlock(),a.createElementBlock("div",fZ,[...y[0]||(y[0]=[a.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):i.value?(a.openBlock(),a.createElementBlock("div",mZ,a.toDisplayString(i.value),1)):(a.openBlock(),a.createElementBlock("div",kZ,[y[7]||(y[7]=a.createElementVNode("div",{class:"absolute left-4 top-0 h-full w-px bg-border"},null,-1)),a.createElementVNode("div",gZ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(k,M)=>(a.openBlock(),a.createElementBlock("div",{key:M,class:"relative pl-14"},[a.createElementVNode("div",{class:a.normalizeClass(["absolute left-0 top-2 flex h-8 w-8 items-center justify-center rounded-full border",h(k.type).Circle])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(k.type).Icon),{class:"h-4 w-4"}))],2),a.createElementVNode("div",bZ,[a.createElementVNode("div",MZ,[k.type==="flight"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",xZ,[a.createElementVNode("p",wZ,a.toDisplayString(k.title),1),a.createElementVNode("p",vZ,a.toDisplayString(k.meta),1)]),a.createElementVNode("p",CZ,[a.createElementVNode("span",LZ,a.toDisplayString(k.from),1),a.createVNode(a.unref(Qs),{class:"mx-2 inline h-4 w-4"}),a.createElementVNode("span",SZ,a.toDisplayString(k.to),1)]),a.createElementVNode("p",IZ,a.toDisplayString(k.time),1),k.fileName?(a.openBlock(),a.createElementBlock("div",_Z,[a.createVNode(a.unref(vs),{class:"h-4 w-4 text-muted-foreground"}),a.createElementVNode("span",null,a.toDisplayString(k.fileName),1)])):a.createCommentVNode("",!0)],64)):k.type==="interview"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",AZ,[a.createElementVNode("p",BZ,a.toDisplayString(k.title),1),a.createElementVNode("p",VZ,a.toDisplayString(k.meta),1)]),a.createElementVNode("p",zZ,a.toDisplayString(k.desc),1),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",PZ,[a.createElementVNode("div",qZ,[a.createVNode(a.unref(LP),{class:"h-10 w-10"},{default:a.withCtx(()=>[k.avatarUrl?(a.openBlock(),a.createBlock(a.unref(IP),{key:0,src:k.avatarUrl},null,8,["src"])):a.createCommentVNode("",!0),a.createVNode(a.unref(SP),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u(k.personName??"")),1)]),_:2},1024)]),_:2},1024),a.createElementVNode("div",DZ,[a.createElementVNode("p",EZ,a.toDisplayString(k.personName),1),a.createElementVNode("p",TZ,a.toDisplayString(k.personRole),1)])]),a.createElementVNode("div",HZ,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(Cs),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(hl),{class:"h-4 w-4"})]),_:1})])])],64)):k.type==="product"?(a.openBlock(),a.createElementBlock("div",OZ,[a.createElementVNode("div",jZ,[k.imgUrl?(a.openBlock(),a.createElementBlock("img",{key:0,src:k.imgUrl,class:"h-full w-full rounded-lg object-cover",alt:"product"},null,8,FZ)):(a.openBlock(),a.createBlock(f,{key:1,class:"h-5 w-5 text-muted-foreground"}))]),a.createElementVNode("div",NZ,[a.createElementVNode("div",RZ,[a.createElementVNode("p",$Z,a.toDisplayString(k.title),1),a.createElementVNode("p",UZ,a.toDisplayString(k.meta),1)]),a.createElementVNode("p",WZ,a.toDisplayString(k.desc),1),a.createElementVNode("div",{class:a.normalizeClass(["mt-4 grid gap-3",a.unref(n)?"grid-cols-1":"grid-cols-3"])},[a.createElementVNode("div",GZ,[y[1]||(y[1]=a.createElementVNode("p",{class:"text-sm font-medium"},"Customer",-1)),a.createElementVNode("p",KZ,a.toDisplayString(k.customer),1)]),a.createElementVNode("div",XZ,[y[2]||(y[2]=a.createElementVNode("p",{class:"text-sm font-medium"},"Price",-1)),a.createElementVNode("p",ZZ,a.toDisplayString(k.price),1)]),a.createElementVNode("div",YZ,[y[3]||(y[3]=a.createElementVNode("p",{class:"text-sm font-medium"},"Quantity",-1)),a.createElementVNode("p",QZ,a.toDisplayString(k.qty),1)])],2)])])):k.type==="design"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createElementVNode("div",JZ,[a.createElementVNode("p",eY,a.toDisplayString(k.title),1),a.createElementVNode("p",tY,a.toDisplayString(k.meta),1)]),a.createElementVNode("p",aY,a.toDisplayString(k.desc),1),a.createElementVNode("div",nY,[a.createVNode(a.unref(LP),{class:"h-10 w-10"},{default:a.withCtx(()=>[k.avatarUrl?(a.openBlock(),a.createBlock(a.unref(IP),{key:0,src:k.avatarUrl},null,8,["src"])):a.createCommentVNode("",!0),a.createVNode(a.unref(SP),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u(k.personName??"")),1)]),_:2},1024)]),_:2},1024),a.createElementVNode("p",oY,a.toDisplayString(k.personName),1)])],64)):k.type==="server"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createElementVNode("div",rY,[a.createElementVNode("p",iY,a.toDisplayString(k.title),1),a.createVNode(a.unref(Ea),{variant:"destructive",class:"h-6"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.chipText??""),1)]),_:2},1024)]),a.createElementVNode("div",sY,[a.createElementVNode("div",lY,[a.createElementVNode("div",cY,[a.createVNode(a.unref(sl),{class:"h-4 w-4"}),y[4]||(y[4]=a.createElementVNode("span",null,"IP Address",-1))]),a.createElementVNode("span",dY,a.toDisplayString(k.ip),1)]),a.createElementVNode("div",hY,[a.createElementVNode("div",uY,[a.createVNode(a.unref(xs),{class:"h-4 w-4"}),y[5]||(y[5]=a.createElementVNode("span",null,"CPU",-1))]),a.createElementVNode("span",pY,a.toDisplayString(k.cpu),1)]),a.createElementVNode("div",yY,[a.createElementVNode("div",fY,[a.createVNode(a.unref(xs),{class:"h-4 w-4"}),y[6]||(y[6]=a.createElementVNode("span",null,"Memory",-1))]),a.createElementVNode("span",mY,a.toDisplayString(k.memory),1)])]),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",kY,[a.createElementVNode("div",gY,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(fl),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(m,{class:"h-4 w-4"})]),_:1})])])],64)):k.type==="location"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createElementVNode("div",bY,[a.createElementVNode("div",MY,[a.createVNode(g,{class:"h-4 w-4 text-muted-foreground"}),a.createElementVNode("p",xY,a.toDisplayString(k.title),1)]),a.createVNode(a.unref(Ea),{variant:"destructive",class:"h-6"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(k.chipText),1)]),_:2},1024)]),a.createElementVNode("p",wY,a.toDisplayString(k.desc1),1),k.desc2?(a.openBlock(),a.createElementBlock("p",vY,a.toDisplayString(k.desc2),1)):a.createCommentVNode("",!0),a.createVNode(a.unref(IS),{class:"my-4"}),a.createElementVNode("div",CY,[a.createElementVNode("div",LY,[a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(Cs),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(je),{size:"icon",variant:"ghost"},{default:a.withCtx(()=>[a.createVNode(a.unref(bl),{class:"h-4 w-4"})]),_:1})]),a.createElementVNode("p",SY,"Due date: "+a.toDisplayString(k.due),1)])],64)):a.createCommentVNode("",!0)])])]))),128))])]))])])}}}),IY={class:"dcode-upload-file"},_Y={class:"border-2 border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-6 flex flex-col items-center justify-center text-center hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer"},AY={key:0,class:"text-xs text-gray-500 mt-1"},BY=["accept"],VY={key:1,class:"text-xs text-red-600 mt-1"},AP=a.defineComponent({name:"DCodeUploadFile",__name:"DCodeUploadFile",props:{label:{},accept:{},errorMessage:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=r=>{var s;const i=(s=r.target.files)==null?void 0:s[0];i&&n("update:modelValue",i)};return(r,i)=>(a.openBlock(),a.createElementBlock("div",IY,[e.label?(a.openBlock(),a.createBlock(V_,{key:0,label:e.label},null,8,["label"])):a.createCommentVNode("",!0),a.createElementVNode("div",_Y,[a.createVNode(a.unref(ba),{class:"w-8 h-8 text-gray-400 mb-2"}),i[0]||(i[0]=a.createElementVNode("p",{class:"text-sm text-gray-600 dark:text-gray-400"},[a.createElementVNode("span",{class:"font-medium text-primary-600"},"Click to upload"),a.createTextVNode(" or drag and drop ")],-1)),e.accept?(a.openBlock(),a.createElementBlock("p",AY,a.toDisplayString(e.accept),1)):a.createCommentVNode("",!0),a.createElementVNode("input",{type:"file",class:"hidden",onChange:o,accept:e.accept},null,40,BY)]),e.errorMessage?(a.openBlock(),a.createElementBlock("p",VY,a.toDisplayString(e.errorMessage),1)):a.createCommentVNode("",!0)]))}}),zY=["onClick"],PY={key:1,class:"mr-2 text-xs font-bold shrink-0 opacity-50"},qY={class:"font-semibold text-sm whitespace-normal text-center leading-tight"},DY={key:1},EY={key:0,class:"text-white"},TY={key:1},HY={key:2},OY=["disabled","onClick"],jY={key:1,class:"mr-2 text-sm font-bold opacity-70"},FY={class:"whitespace-normal text-sm text-center leading-tight"},NY={class:"flex flex-col flex-1 min-w-0"},RY={class:"text-sm text-muted-foreground"},$Y={class:"px-1"},UY=["disabled"],WY=["type"],GY=["disabled"],BP=ra(a.defineComponent({name:"DCodeWizard",__name:"DCodeWizard",props:{tabs:{},modelValue:{},defaultTab:{default:0},allowTabClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},cache:{type:Boolean,default:!0},autoFetchOnMount:{type:Boolean,default:!0},apiOptions:{type:[Object,Function],default:void 0},isVertical:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},typeWizard:{default:"icon"},showNavigation:{type:Boolean,default:!0},submitText:{default:"Simpan"},loading:{type:Boolean,default:!1},isSubmit:{type:Boolean,default:!1}},emits:["update:modelValue","change","loaded","error"],setup(e,{emit:t}){const n=e,o=t,r=et(),i=r==null?void 0:r.DCodeApi;typeof i!="function"&&console.error("[DCodeWizardTabs] useApi() must expose DCodeApi()");const s=a.ref(n.defaultTab),c=a.computed({get(){var L;if(typeof n.modelValue=="string"){const v=(L=n.tabs)==null?void 0:L.findIndex(I=>I.key===n.modelValue);if(v!==void 0&&v>=0)return v}return(typeof n.modelValue=="number"?n.modelValue:void 0)??s.value},set(L){var v;if(s.value=L,typeof n.modelValue=="string"){const I=(v=n.tabs)==null?void 0:v[L];I?o("update:modelValue",I.key):o("update:modelValue",L)}else o("update:modelValue",L)}}),d=a.computed(()=>{var L;return((L=n.tabs)==null?void 0:L.length)??0}),h=a.computed(()=>{var L;return(L=n.tabs)==null?void 0:L[c.value]});function u(L){return d.value<=0?0:Math.min(Math.max(L,0),d.value-1)}function p(L){return L?typeof L=="string"?na[L]||null:L:null}const y=a.reactive({});function f(L){return y[L.key]||(y[L.key]={loaded:!1,loading:!1,data:null,error:null}),y[L.key]}function m(){if(n.apiOptions)return typeof n.apiOptions=="function"?n.apiOptions():n.apiOptions}function g(L){const v=L.endpoint||{};return{apiModule:L.apiModule||v.apiModule,apiAction:L.apiAction||v.apiAction,apiUrl:v.apiUrl,apiMethod:v.apiMethod||"GET",apiParams:L.apiParams}}function k(L){if(n.isWizard||!n.allowTabClick||n.disabled)return!1;const v=n.tabs[L];return!(!v||v.disabled)}async function M(L){if(typeof L.tab.fetchData=="function"){const T=await L.tab.fetchData(),W=(T==null?void 0:T.data)??T;return(W==null?void 0:W.data)??W}const v=g(L.tab);if(!(v.apiModule&&v.apiAction||v.apiUrl))return null;if(typeof i!="function")throw new Error("DCodeApi is not available");const q=m();let B;if(v.apiUrl)B=await i("","",q,{_url:v.apiUrl,_method:v.apiMethod,_data:v.apiParams??void 0});else{const T={...q,...v.apiParams};B=await i(v.apiModule,v.apiAction,T)}const A=(B==null?void 0:B.data)??B;return(A==null?void 0:A.data)??A}async function w(L,{force:v=!1}={}){const I=u(L),q=n.tabs[I];if(!q)return;const B=f(q);if(!(n.cache&&B.loaded&&!v)&&!B.loading){B.loading=!0,B.error=null;try{const A=await M({tabIndex:I,tab:q});B.data=A,B.loaded=!0,o("loaded",{tabIndex:I,tab:q,data:A})}catch(A){const V=typeof(A==null?void 0:A.message)=="string"&&A.message||typeof A=="string"&&A||"Failed to load tab data.";B.error=V,o("error",{tabIndex:I,tab:q,message:V})}finally{B.loading=!1}}}function x(L){const v=u(L);k(v)&&v!==c.value&&(c.value=v)}function b(L=c.value){return w(L,{force:!0})}function C(){const L=u(c.value-1);L!==c.value&&(c.value=L)}function S(){const L=u(c.value+1);L!==c.value&&(c.value=L)}return a.watch(()=>n.tabs,L=>{for(const v of L??[])f(v)},{immediate:!0}),a.watch(()=>c.value,async L=>{var I;const v=(I=n.tabs)==null?void 0:I[L];v&&o("change",{tabIndex:L,tab:v}),await w(L)},{immediate:!0}),a.watch(()=>n.autoFetchOnMount,async L=>{L&&await w(c.value)},{immediate:!0}),(L,v)=>{var I,q,B;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-full rounded-lg border bg-card text-card-foreground shadow-sm",{"flex flex-row":e.isVertical}])},[a.createElementVNode("div",{class:a.normalizeClass(["flex flex-col space-y-1.5 p-6",{"w-64 border-r pr-0":e.isVertical,"pb-2":e.isWizard&&!e.isVertical}])},[a.createElementVNode("div",{class:a.normalizeClass({"mt-4":!e.isVertical||e.isWizard})},[e.isWizard?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["w-full relative flex overflow-visible rounded-lg",e.isVertical?"flex-col gap-2":""])},[e.isVertical?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("div",{key:A.key,class:"relative z-10 box-border flex items-center gap-3 w-full pb-6 last:pb-0"},[a.createElementVNode("div",{class:a.normalizeClass(["w-8 h-8 rounded-full flex shrink-0 items-center justify-center font-bold text-sm border-2 transition-all bg-card",[V<c.value?"wizard-num-done":"",V===c.value?"wizard-num-active":V>c.value?"wizard-num-pending":""]])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4"})):e.typeWizard==="number"||!A.icon&&e.typeWizard!=="none"?(a.openBlock(),a.createElementBlock("span",DY,[V<c.value?(a.openBlock(),a.createElementBlock("span",EY,"✓")):(a.openBlock(),a.createElementBlock("span",TY,a.toDisplayString(V+1),1))])):(a.openBlock(),a.createElementBlock("span",HY))],2),a.createElementVNode("span",{class:a.normalizeClass(["text-xs font-semibold whitespace-normal px-2 py-1 rounded transition-colors text-left",V===c.value?"wizard-text-active":"wizard-text-pending"])},a.toDisplayString(A.title),3)]))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("div",{key:A.key,onClick:T=>x(V),style:a.normalizeStyle({zIndex:e.tabs.length-V}),class:"relative flex-1 group"},[a.createElementVNode("div",{class:a.normalizeClass(["relative flex items-center justify-center min-h-[3rem] h-auto py-2 px-2 cursor-pointer transition-colors w-full",[V>0?"pl-8":"",V===c.value?"wizard-step-active":V<c.value?"wizard-step-done":"wizard-step-pending"]])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"w-4 h-4 mr-2 shrink-0"})):e.typeWizard==="number"?(a.openBlock(),a.createElementBlock("span",PY,a.toDisplayString(V+1),1)):a.createCommentVNode("",!0),a.createElementVNode("span",qY,a.toDisplayString(A.title),1)],2),V<e.tabs.length-1?(a.openBlock(),a.createElementBlock("svg",{key:0,class:a.normalizeClass(["absolute top-0 -right-[15.5px] w-[16px] h-full transition-colors block z-10",[V===c.value?"wizard-svg-active":V<c.value?"wizard-svg-done":"wizard-svg-pending"]]),preserveAspectRatio:"none",viewBox:"0 0 16 48"},[...v[0]||(v[0]=[a.createElementVNode("polygon",{points:"0,0 16,24 0,48"},null,-1)])],2)):a.createCommentVNode("",!0)],12,zY))),128))],2)):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex w-full",e.isVertical?"flex-col gap-1":"flex-wrap border-b border-separate"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tabs,(A,V)=>(a.openBlock(),a.createElementBlock("button",{key:A.key,type:"button",disabled:!k(V),onClick:T=>x(V),class:a.normalizeClass(["relative min-h-[3rem] h-auto py-2 flex items-center justify-center gap-2 px-4 transition-all rounded-none focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 wizard-btn-common",a.unref(Me)("border-b border-r",!e.isVertical&&V===e.tabs.length-1&&"border-r-0",V===c.value?"wizard-btn-active":"wizard-btn-pending",!k(V)&&"opacity-60 cursor-not-allowed",e.isVertical?"w-full justify-start border-r-0":"flex-1")])},[e.typeWizard==="icon"&&A.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(A.icon)),{key:0,class:"h-4 w-4 shrink-0"})):e.typeWizard==="number"?(a.openBlock(),a.createElementBlock("span",jY,a.toDisplayString(V+1),1)):a.createCommentVNode("",!0),a.createElementVNode("span",FY,a.toDisplayString(A.title),1)],10,OY))),128))],2))],2)],2),e.isVertical?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(IS),{key:0})),a.createElementVNode("div",NY,[a.createElementVNode("div",{class:a.normalizeClass(["p-6 flex-1 min-w-0",{"pl-6":e.isVertical}])},[h.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[(I=y[h.value.key])!=null&&I.loading?a.renderSlot(L.$slots,"loading",{key:0,tab:h.value,tabIndex:c.value},()=>[v[1]||(v[1]=a.createElementVNode("div",{class:"rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground"},"Loading...",-1))],!0):a.renderSlot(L.$slots,`tab-${h.value.key}`,{key:1,tab:h.value,tabIndex:c.value,data:(q=y[h.value.key])==null?void 0:q.data,loaded:(B=y[h.value.key])==null?void 0:B.loaded,reload:b},()=>[a.createElementVNode("div",RY,[v[2]||(v[2]=a.createTextVNode(" Slot ",-1)),a.createElementVNode("code",$Y,"tab-"+a.toDisplayString(h.value.key),1),v[3]||(v[3]=a.createTextVNode(" belum dibuat. ",-1))])],!0)],64)):a.createCommentVNode("",!0)],2),e.isWizard||e.showNavigation?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["flex items-center justify-between p-6 pt-0",{"pl-6":e.isVertical}])},[a.createElementVNode("button",{type:"button",onClick:C,disabled:c.value<=0,class:"relative inline-flex items-center justify-center gap-2 px-5 py-2.5 text-sm font-medium transition-all duration-300 rounded-lg bg-[#ffffff] border border-[#e2e8f0] text-[#334155] shadow-sm hover:bg-[#f8fafc] hover:text-[#0f172a] hover:-translate-y-0.5 hover:shadow disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#ffffff] disabled:hover:text-[#334155] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#18181b] dark:border-[#27272a] dark:text-[#d4d4d8] dark:hover:bg-[#27272a] dark:hover:border-[#3f3f46] dark:disabled:hover:bg-[#18181b] dark:disabled:hover:text-[#d4d4d8] focus:outline-none focus:ring-2 focus:ring-[#e2e8f0] focus:ring-offset-2 active:scale-95"}," Sebelumnya ",8,UY),c.value<d.value-1?(a.openBlock(),a.createElementBlock("button",{key:0,type:e.isSubmit?"submit":"button",onClick:S,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"}," Selanjutnya ",8,WY)):(a.openBlock(),a.createElementBlock("button",{key:1,type:"submit",disabled:e.loading,class:"relative inline-flex items-center justify-center gap-2 px-6 py-2.5 text-sm font-medium text-[#ffffff] transition-all duration-300 rounded-lg shadow-md bg-[#2563eb] hover:bg-[#1d4ed8] hover:shadow-lg hover:-translate-y-0.5 disabled:opacity-50 disabled:cursor-not-allowed disabled:shadow-none disabled:hover:bg-[#2563eb] disabled:hover:translate-y-0 disabled:active:scale-100 dark:bg-[#3b82f6] dark:hover:bg-[#2563eb] focus:outline-none focus:ring-2 focus:ring-[#2563eb] focus:ring-offset-2 active:scale-95"},[e.loading?(a.openBlock(),a.createBlock(a.unref(Lt),{key:0,class:"w-4 h-4 mr-2 animate-spin"})):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(e.submitText),1)],8,GY))],2)):a.createCommentVNode("",!0)])],2)}}}),[["__scopeId","data-v-9379f062"]]);function KY(){return{setPageTitle:n=>{typeof document<"u"&&(document.title=n||document.title),typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:page-title",{detail:{title:n},bubbles:!0,composed:!0}))},setBreadcrumb:n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("micro:breadcrumb",{detail:{items:n},bubbles:!0,composed:!0}))}}}const XY={class:"w-full"},ZY={class:"relative mx-auto min-h-[37.5rem]"},YY={key:"content",class:"w-full"},QY={class:"mb-6"},JY={class:"text-neutral-500 dark:text-neutral-400"},eQ={key:"skeleton",class:"w-full"},tQ={key:"error",class:"flex items-center justify-center p-20 text-red-500 w-full"},VP=ra(a.defineComponent({__name:"AutoLayoutForm",props:{layoutCode:{}},setup(e){var L,v;const t=e,n=(v=(L=a.getCurrentInstance())==null?void 0:L.appContext)==null?void 0:v.app;n&&!n._context.provides[Symbol.for("vue-router-route-location")]&&n.provide(Symbol.for("vue-router-route-location"),{query:{},params:{},path:""});let o={query:{},params:{},path:""};try{const I=ms.useRoute();I&&(o=I)}catch{console.warn("useRoute not available, using fallback")}let r={back:()=>console.warn("Router back() not available"),push:()=>console.warn("Router push() not available")};try{const I=ms.useRouter();I&&(r=I)}catch{console.warn("useRouter not available, using fallback")}const{apiUrl:i,DCodeApi:s}=et();let c;try{c=KS.useI18n().locale}catch{c=a.ref("en")}const{setPageTitle:d}=KY(),h=a.computed(()=>o.params&&"id"in o.params?!0:o.path?/\/edit\/[^\/]+$/.test(o.path):!1),u=a.computed(()=>{if(o.params&&"id"in o.params)return o.params.id;if(!o.path)return null;const I=o.path.match(/\/edit\/([^\/]+)$/);return I?I[1]:null}),p=a.ref({}),y=a.ref(null),f=a.ref(!0),m=a.ref(!1),g="/api/auto-layout/form/form-dynamic?code=",k="/api/auto-layout/datatable/form-dynamic?code=",M=a.ref(t.layoutCode),w=a.computed(()=>{var B;if(!y.value)return"";const I=((B=c==null?void 0:c.value)==null?void 0:B.toLowerCase())||"en";return(I==="en"||I.startsWith("en-")?y.value.titleEN:y.value.titleID)||y.value.title||t.layoutCode});a.watch(w,I=>{I&&d(I)},{immediate:!0});const x=async()=>{var I,q,B;f.value=!0;try{let A=t.layoutCode;o&&o.query&&typeof o.query=="object"&&"code"in o.query&&(A=o.query.code||t.layoutCode);const V=`${g}${A}`;let T=await i(V,"GET");if(!T.status||!T.data||Array.isArray(T.data)&&T.data.length===0)try{const W=`${k}${A}`,H=await i(W,"GET");if(H.status){const O=Array.isArray(H.data)?H.data[0]:H.data;O&&O.code&&(A=O.code,M.value=A,T=await i(`${g}${A}`,"GET"))}}catch(W){console.warn("Failed to resolve layout code via datatable",W)}if(T.status){y.value=Array.isArray(T.data)?T.data[0]:T.data;const W={};if((I=y.value)!=null&&I.sections&&y.value.sections.forEach(H=>{((H.propsForm||H.props||{}).fields||H.fields||[]).forEach(J=>{var F;const D=J.model||((F=J.props)==null?void 0:F.model)||J.key;D&&(W[D]=null)})}),p.value=W,f.value=!1,h.value&&u.value){m.value=!0;try{if((q=y.value.endpointGlobal)!=null&&q.apiUrl){const H=y.value.endpointGlobal.apiUrl,O=y.value.endpointGlobal.apiMethod||"GET",U={id:u.value},J=await s(H,O,U);if(J.status){const D=Array.isArray(J.data)?J.data[0]:J.data;p.value={...p.value,...D}}}else{const H=((B=y.value.endpoint)==null?void 0:B.detailUrl)||`/api/${M.value}/detail/${u.value}`,O=await i(H,"GET");if(O.status){let U=Array.isArray(O.data)?O.data[0]:O.data;if(O.payload){const D={...O.payload};if(Object.keys(D).forEach(F=>{U[F]!==void 0&&U[F]!==null&&(D[F]=U[F])}),!("id"in D)&&U.id){const F=Object.keys(D).find(N=>N.startsWith("id")&&N.length>2&&!D[N]);F&&(D[F]=U.id)}U=D}const J={...U};Object.keys(p.value).forEach(D=>{if(J[D]===void 0||J[D]===null){if(D.toLowerCase().startsWith("id")&&D.length>2){const N=D.substring(2).toLowerCase(),Y=Array.isArray(O.data)?O.data[0]:O.data,Q=Object.keys(Y).find(re=>re.toLowerCase()===N);Q&&Y[Q]&&typeof Y[Q]=="object"&&"id"in Y[Q]&&(J[D]=Y[Q].id)}if(D==="idSupervisor"){const N=Array.isArray(O.data)?O.data[0]:O.data;N.supervisorId&&(J[D]=N.supervisorId)}}}),p.value={...p.value,...J}}}}catch(H){console.error("Failed to fetch record data:",H)}finally{m.value=!1}}}}catch(A){console.error("Failed to load form layout:",A),f.value=!1}},b=async I=>{var q,B,A;try{const V=(A=(B=(q=y.value.sections)==null?void 0:q[0])==null?void 0:B.propsForm)==null?void 0:A.endpointForm,T=y.value.endpointGlobal||y.value.endpoint,W=(V==null?void 0:V.submitUrl)||(T==null?void 0:T.submitUrl)||`/api/generic/${t.layoutCode}`,H=(V==null?void 0:V.submitMethod)||(T==null?void 0:T.submitMethod)||(h.value?"PUT":"POST"),O={...I};h.value&&u.value&&!O.id&&(O.id=u.value),await i(W,H,O),r.back()}catch(V){console.error("Submit failed:",V)}},C=async(I,q)=>{if(I==="cancel"){S();return}const B=q.endpointPropAction||q.propsActionGlobal&&q.propsActionGlobal.endpointPropAction;if(B)try{f.value=!0;const A={...p.value};h.value&&q.model&&u.value&&(A[q.model]=u.value);const V=B.apiUrl,T=B.apiMethod||"POST";(await s(V,T,A)).status&&r.back()}catch(A){console.error("Action failed:",A)}finally{f.value=!1}},S=()=>{r.back()};return a.onMounted(()=>{x()}),a.onUnmounted(()=>{d("")}),(I,q)=>{const B=a.resolveComponent("DynamicForm"),A=a.resolveComponent("AutoLayoutSkeleton");return a.openBlock(),a.createElementBlock("div",XY,[a.createElementVNode("div",ZY,[a.createVNode(a.Transition,{name:"fade",mode:"out-in"},{default:a.withCtx(()=>[!f.value&&y.value?(a.openBlock(),a.createElementBlock("div",YY,[a.createElementVNode("div",QY,[a.createElementVNode("p",JY,a.toDisplayString(y.value.description),1)]),a.createVNode(B,{schema:y.value,model:p.value,"is-edit-mode":h.value,loading:m.value,onSubmit:b,onCancel:S,onAction:C,class:"w-full"},null,8,["schema","model","is-edit-mode","loading"])])):f.value?(a.openBlock(),a.createElementBlock("div",eQ,[a.createVNode(A)])):(a.openBlock(),a.createElementBlock("div",tQ," Failed to load form configuration for "+a.toDisplayString(t.layoutCode),1))]),_:1})])])}}}),[["__scopeId","data-v-cbc77e6b"]]),aQ=(e,t="short",n="id-ID")=>{const o=typeof e=="string"?new Date(e):e,r=d=>String(d).padStart(2,"0"),i=d=>`${r(d.getHours())}:${r(d.getMinutes())}:${r(d.getSeconds())}`,c={id:"id-ID",en:"en-GB"}[n]||n;return t==="time"?i(o):t==="datetime"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(o):t==="long"?new Intl.DateTimeFormat(c,{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(o):new Intl.DateTimeFormat(c,{day:"2-digit",month:"short",year:"numeric"}).format(o)},nQ=e=>new Promise((t,n)=>{const o=document.createElement("textarea");o.value=e,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t():n(new Error("Copy command was unsuccessful"))}catch(r){n(r)}finally{document.body.removeChild(o)}}),oQ=async e=>navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e):nQ(e),rQ=a.defineComponent({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(hB),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),iQ=a.defineComponent({inheritAttrs:!1,__name:"SheetContent",props:{class:{type:[Boolean,null,String,Object,Array]},side:{},forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class","side"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(CB),null,{default:a.withCtx(()=>[a.createVNode(a.unref(vB),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),a.createVNode(a.unref(xB),a.mergeProps({class:a.unref(Me)(a.unref(uQ)({side:e.side}),n.class)},{...a.unref(i),...s.$attrs}),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default"),a.createVNode(a.unref(uB),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},{default:a.withCtx(()=>[a.createVNode(a.unref(pt),{class:"w-4 h-4"})]),_:1})]),_:3},16,["class"])]),_:3}))}}),sQ=a.defineComponent({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(wB),a.mergeProps({class:a.unref(Me)("text-sm text-muted-foreground",t.class)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),lQ=a.defineComponent({__name:"SheetFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),cQ=a.defineComponent({__name:"SheetHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(Me)("flex flex-col gap-y-2 text-center sm:text-left",t.class))},[a.renderSlot(n.$slots,"default")],2))}}),dQ=a.defineComponent({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(LB),a.mergeProps({class:a.unref(Me)("text-lg font-medium text-foreground",t.class)},a.unref(n)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),hQ=a.defineComponent({__name:"SheetTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(LH),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),uQ=xl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),pQ={class:"flex-1 overflow-hidden"},yQ=a.defineComponent({__name:"DataFilterSheet",props:{title:{default:"Filter Data"},description:{default:"Masukan parameter pencarian untuk memfilter data."}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(rQ),null,{default:a.withCtx(()=>[a.createVNode(a.unref(hQ),{"as-child":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"trigger",{},()=>[a.createVNode(a.unref(je),{variant:"outline",class:"gap-2"},{default:a.withCtx(()=>[a.createVNode(a.unref(vr),{class:"w-4 h-4"}),n[0]||(n[0]=a.createElementVNode("span",null,"Pencarian",-1))]),_:1})])]),_:3}),a.createVNode(a.unref(iQ),{class:"flex flex-col h-full"},{default:a.withCtx(()=>[a.createVNode(a.unref(cQ),{class:"flex-shrink-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(dQ),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1}),a.createVNode(a.unref(sQ),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.description),1)]),_:1})]),_:1}),a.createElementVNode("div",pQ,[a.renderSlot(t.$slots,"default")]),a.createVNode(a.unref(lQ),{class:"flex-shrink-0"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"footer")]),_:3})]),_:3})]),_:3}))}}),fQ={key:0},mQ=["value","name"],zP=a.defineComponent({__name:"DynamicFilterField",props:{field:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const{locale:n}=KS.useI18n(),o=e,r=t,i=a.ref(o.modelValue);a.watch(()=>o.modelValue,u=>{i.value=u});const s={DCodeTextField:E_,DCodeAutoComplete:sI,DCodeDatePicker:x_,DCodeTextarea:SS,DCodeTextArea:SS,DCodeCheckbox:Kl,DCodeSwitch:D_,DCodeOtpInput:P_,DCodeImageField:B_,DCodeSlider:q_},c=a.computed(()=>{const u=o.field.component;return s[u]||null}),d=a.computed(()=>{const u=o.field.props,p={};return(u.labelID||u.labelEN)&&(p.label=n.value==="id"?u.labelID:u.labelEN),(u.placeholderID||u.placeholderEN)&&(p.placeholder=n.value==="id"?u.placeholderID:u.placeholderEN),u.required!==void 0&&(p.required=u.required),u.disabled!==void 0&&(p.disabled=u.disabled),u.readonly!==void 0&&(p.readonly=u.readonly),u.valueType&&(p.type=u.valueType),u.minLength!==void 0&&(p.minlength=u.minLength),u.maxLength!==void 0&&(p.maxlength=u.maxLength),u.min!==void 0&&(p.min=u.min),u.max!==void 0&&(p.max=u.max),u.options&&(p.options=u.options),u.endpoint&&(p.endpoint=u.endpoint),u.itemTitle&&(p.itemTitle=u.itemTitle),u.itemValue&&(p.itemValue=u.itemValue),u.returnObject!==void 0&&(p.returnObject=u.returnObject),u.clearable!==void 0&&(p.clearable=u.clearable),Object.keys(u).forEach(y=>{!["labelID","labelEN","placeholderID","placeholderEN"].includes(y)&&!p.hasOwnProperty(y)&&(p[y]=u[y])}),p}),h=u=>{i.value=u,r("update:modelValue",u)};return(u,p)=>e.field.isHidden?(a.openBlock(),a.createElementBlock("div",fQ,[a.createElementVNode("input",{type:"hidden",value:i.value,name:e.field.model},null,8,mQ)])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),a.mergeProps({key:1},d.value,{modelValue:i.value,"onUpdate:modelValue":[p[0]||(p[0]=y=>i.value=y),h]}),null,16,["modelValue"]))}}),kQ=a.defineComponent({__name:"Pagination",props:{page:{},defaultPage:{},itemsPerPage:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:page"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(ZH),a.mergeProps({"data-slot":"pagination"},a.unref(i),{class:n.class}),{default:a.withCtx(d=>[a.renderSlot(s.$slots,"default",a.normalizeProps(a.guardReactiveProps(d)))]),_:3},16,["class"]))}}),gQ=a.defineComponent({__name:"PaginationContent",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(oO),a.mergeProps({"data-slot":"pagination-content"},a.unref(n),{class:a.unref(Me)("flex flex-row items-center gap-1",t.class)}),{default:a.withCtx(i=>[a.renderSlot(o.$slots,"default",a.normalizeProps(a.guardReactiveProps(i)))]),_:3},16,["class"]))}}),bQ=a.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(GH),a.mergeProps({"data-slot":"pagination-ellipsis"},a.unref(n),{class:a.unref(Me)("flex size-9 items-center justify-center",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createVNode(a.unref(Ma),{class:"size-4"}),r[0]||(r[0]=a.createElementVNode("span",{class:"sr-only"},"More pages",-1))])]),_:3},16,["class"]))}}),MQ=a.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(QH),a.mergeProps({"data-slot":"pagination-first",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(bn)),i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"First",-1))])]),_:3},16,["class"]))}}),xQ=a.defineComponent({__name:"PaginationItem",props:{value:{},asChild:{type:Boolean},as:{},size:{default:"icon"},class:{type:[Boolean,null,String,Object,Array]},isActive:{type:Boolean}},setup(e){const t=e,n=Oe(t,"class","size","isActive");return(o,r)=>(a.openBlock(),a.createBlock(a.unref(iO),a.mergeProps({"data-slot":"pagination-item"},a.unref(n),{class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),e.isActive?"bg-[#0056a1] dark:bg-[#003d75] text-white hover:bg-[#0056a1]/90 dark:hover:bg-[#003d75]/90 hover:text-white":"",t.class)}),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),wQ=a.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(eO),a.mergeProps({"data-slot":"pagination-last",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Last",-1)),a.createVNode(a.unref(Mn))])]),_:3},16,["class"]))}}),vQ=a.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(lO),a.mergeProps({"data-slot":"pagination-next",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Next",-1)),a.createVNode(a.unref(Mn))])]),_:3},16,["class"]))}}),CQ=a.defineComponent({__name:"PaginationPrevious",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class","size"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(dO),a.mergeProps({"data-slot":"pagination-previous",class:a.unref(Me)(a.unref(Ps)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},a.unref(o)),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(bn)),i[0]||(i[0]=a.createElementVNode("span",{class:"hidden sm:block"},"Previous",-1))])]),_:3},16,["class"]))}}),LQ=a.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=St(e,t);return(i,s)=>(a.openBlock(),a.createBlock(a.unref(mO),a.normalizeProps(a.guardReactiveProps(a.unref(r))),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3},16))}}),SQ=a.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Oe(n,"class"),i=St(r,o);return(s,c)=>(a.openBlock(),a.createBlock(a.unref(NO),null,{default:a.withCtx(()=>[a.createVNode(a.unref(VO),a.mergeProps({...a.unref(i),...s.$attrs},{class:a.unref(Me)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:a.withCtx(()=>[a.createVNode(a.unref(BQ)),a.createVNode(a.unref(JO),{class:a.normalizeClass(a.unref(Me)("p-1",e.position==="popper"&&"h-[--reka-select-trigger-height] w-full min-w-[--reka-select-trigger-width]"))},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},8,["class"]),a.createVNode(a.unref(AQ))]),_:3},16,["class"])]),_:3}))}}),IQ={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},_Q=a.defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(EO),a.mergeProps(a.unref(o),{class:a.unref(Me)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:a.withCtx(()=>[a.createElementVNode("span",IQ,[a.createVNode(a.unref(HO),null,{default:a.withCtx(()=>[a.createVNode(a.unref(ka),{class:"h-4 w-4"})]),_:1})]),a.createVNode(a.unref(jO),null,{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),AQ=a.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(UO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex cursor-default items-center justify-center py-1",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(Et))])]),_:3},16,["class"]))}}),BQ=a.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(GO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex cursor-default items-center justify-center py-1",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default",{},()=>[a.createVNode(a.unref(el))])]),_:3},16,["class"]))}}),VQ=a.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=Oe(t,"class"),o=nt(n);return(r,i)=>(a.openBlock(),a.createBlock(a.unref(XO),a.mergeProps(a.unref(o),{class:a.unref(Me)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",t.class)}),{default:a.withCtx(()=>[a.renderSlot(r.$slots,"default"),a.createVNode(a.unref(PO),{"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(Et),{class:"w-4 h-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),zQ=a.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(a.openBlock(),a.createBlock(a.unref(YO),a.normalizeProps(a.guardReactiveProps(t)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}}),Zl={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$s={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},tt={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},PQ={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},qQ={dangerouslyHTMLString:!1,multiple:!0,position:Zl.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},DQ={rtl:!1,newestOnTop:!1,toastClassName:""},PP={...qQ,...DQ};tt.DEFAULT;var Le=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(Le||{}),T_=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(T_||{});const EQ={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},TQ={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},HQ={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},OQ={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qP="Toastify--animate Toastify__none-enter";function DP(e,t=!1){var n;let o=EQ;if(!e||typeof e=="string")switch(e){case"flip":o=OQ;break;case"zoom":o=HQ;break;case"slide":o=TQ;break}else o=e;if(t)o.enter=qP;else if(o.enter===qP){const r=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${r}-enter`}return o}function jQ(e){return e.containerId||String(e.position)}const _S="will-unmount";function FQ(e=Zl.TOP_RIGHT){return!!document.querySelector(`.${Le.CSS_NAMESPACE}__toast-container--${e}`)}function NQ(e=Zl.TOP_RIGHT){return`${Le.CSS_NAMESPACE}__toast-container--${e}`}function RQ(e,t,n=!1){const o=[`${Le.CSS_NAMESPACE}__toast-container`,`${Le.CSS_NAMESPACE}__toast-container--${e}`,n?`${Le.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Ws(t)?t({position:e,rtl:n,defaultClassName:o}):`${o} ${t||""}`}function $Q(e){var t;const{position:n,containerClassName:o,rtl:r=!1,style:i={}}=e,s=Le.CSS_NAMESPACE,c=NQ(n),d=document.querySelector(`.${s}`),h=document.querySelector(`.${c}`),u=!!h&&!((t=h.className)!=null&&t.includes(_S)),p=d||document.createElement("div"),y=document.createElement("div");y.className=RQ(n,o,r),y.dataset.testid=`${Le.CSS_NAMESPACE}__toast-container--${n}`,y.id=jQ(e);for(const f in i)if(Object.prototype.hasOwnProperty.call(i,f)){const m=i[f];y.style[f]=m}return d||(p.className=Le.CSS_NAMESPACE,document.body.appendChild(p)),u||p.appendChild(y),y}function H_(e){var t,n,o;const r=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),i=document.getElementById(r);i&&i.removeEventListener("animationend",H_,!1);try{Yl[r].unmount(),(o=document.getElementById(r))==null||o.remove(),delete Yl[r],delete Ke[r]}catch{}}const Yl=a.reactive({});function UQ(e,t){const n=document.getElementById(String(t));n&&(Yl[n.id]=e)}function O_(e,t=!0){const n=String(e);if(!Yl[n])return;const o=document.getElementById(n);o&&o.classList.add(_S),t?(GQ(e),o&&o.addEventListener("animationend",H_,!1)):H_(n),Mt.items=Mt.items.filter(r=>r.containerId!==e)}function WQ(e){for(const t in Yl)O_(t,e);Mt.items=[]}function EP(e,t){const n=document.getElementById(e.toastId);if(n){let o=e;o={...o,...DP(o.transition)};const r=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${r}`,t&&t(n)}}function GQ(e){for(const t in Ke)if(t===e)for(const n of Ke[t]||[])EP(n)}function KQ(e){const t=Us().find(n=>n.toastId===e);return t==null?void 0:t.containerId}function j_(e){return document.getElementById(e)}function XQ(e){const t=j_(e.containerId);return t&&t.classList.contains(_S)}function TP(e){var t;const n=a.isVNode(e.content)?a.toRaw(e.content.props):null;return n??a.toRaw((t=e.data)!=null?t:{})}function ZQ(e){return e?Mt.items.filter(t=>t.containerId===e).length>0:Mt.items.length>0}function YQ(){if(Mt.items.length>0){const e=Mt.items.shift();AS(e==null?void 0:e.toastContent,e==null?void 0:e.toastProps)}}const Ke=a.reactive({}),Mt=a.reactive({items:[]});function Us(){const e=a.toRaw(Ke);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function QQ(e){return Us().find(t=>t.toastId===e)}function AS(e,t={}){if(XQ(t)){const n=j_(t.containerId);n&&n.addEventListener("animationend",F_.bind(null,e,t),!1)}else F_(e,t)}function F_(e,t={}){const n=j_(t.containerId);n&&n.removeEventListener("animationend",F_.bind(null,e,t),!1);const o=Ke[t.containerId]||[],r=o.length>0;if(!r&&!FQ(t.position)){const i=$Q(t),s=a.createApp(wJ,t);t.useHandler&&t.useHandler(s),s.mount(i),UQ(s,i.id)}r&&!t.updateId&&(t.position=o[0].position),a.nextTick(()=>{t.updateId?ht.update(t):ht.add(e,t)})}const ht={add(e,t){const{containerId:n=""}=t;n&&(Ke[n]=Ke[n]||[],Ke[n].find(o=>o.toastId===t.toastId)||setTimeout(()=>{var o,r;t.newestOnTop?(o=Ke[n])==null||o.unshift(t):(r=Ke[n])==null||r.push(t),t.onOpen&&t.onOpen(TP(t))},t.delay||0))},remove(e){if(e){const t=KQ(e);if(t){const n=Ke[t];let o=n.find(r=>r.toastId===e);Ke[t]=n.filter(r=>r.toastId!==e),!Ke[t].length&&!ZQ(t)&&O_(t,!1),YQ(),a.nextTick(()=>{o!=null&&o.onClose&&(o.onClose(TP(o)),o=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){Ke[t]=Ke[t]||[];const n=Ke[t].find(i=>i.toastId===e.toastId),o=(n==null?void 0:n.position)!==e.position||(n==null?void 0:n.transition)!==e.transition,r={...e,disabledEnterTransition:!o,updateId:void 0};ht.dismissForce(e==null?void 0:e.toastId),setTimeout(()=>{ze(r.content,r)},e.delay||0)}},clear(e,t=!0){e?O_(e,t):WQ(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",ht.dismissCallback,!1),setTimeout(()=>{ht.remove(n)}))},dismiss(e){if(e){const t=Us();for(const n of t)if(n.toastId===e){EP(n,o=>{o.addEventListener("animationend",ht.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=Us();for(const n of t)if(n.toastId===e){const o=document.getElementById(e);o&&(o.remove(),o.removeEventListener("animationend",ht.dismissCallback,!1),ht.remove(e));break}}}},JQ=a.reactive({useHandler:void 0}),HP=a.reactive({}),BS=a.reactive({});function OP(){return Math.random().toString(36).substring(2,9)}function eJ(e){return typeof e=="number"&&!isNaN(e)}function N_(e){return typeof e=="string"}function Ws(e){return typeof e=="function"}function VS(...e){return a.mergeProps(...e)}function zS(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof(e==null?void 0:e.type)=="object")}function tJ(e={}){HP[`${Le.CSS_NAMESPACE}-default-options`]=e}function jP(){return HP[`${Le.CSS_NAMESPACE}-default-options`]||PP}function aJ(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||e?"dark":"light"}var PS=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(PS||{});const FP={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Zl.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:$s.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:tt.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},nJ={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:tt.DEFAULT},theme:{type:String,required:!1,default:$s.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},oJ=a.defineComponent({name:"ProgressBar",props:nJ,setup(e,{attrs:t}){const n=a.ref(),o=a.computed(()=>e.hide?"true":"false"),r=a.computed(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),i=a.computed(()=>[`${Le.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${Le.CSS_NAMESPACE}__progress-bar--controlled`:`${Le.CSS_NAMESPACE}__progress-bar--animated`,`${Le.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${Le.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${Le.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),s=a.computed(()=>`${i.value} ${(t==null?void 0:t.class)||""}`),c=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},d=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),c())},h=a.computed(()=>e.controlledProgress?null:d),u=a.computed(()=>e.controlledProgress?d:null);return a.watchEffect(()=>{n.value&&(c(),n.value.onanimationend=h.value,n.value.ontransitionend=u.value)}),()=>a.createVNode("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:s.value,style:r.value},null)}}),rJ=a.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:$s.AUTO},type:{type:String,required:!1,default:$s.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>a.createVNode("button",{class:`${Le.CSS_NAMESPACE}__close-button ${Le.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[a.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[a.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),qS=({theme:e,type:t,path:n,...o})=>a.createVNode("svg",a.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",style:{fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`}},o),[a.createVNode("path",{d:n},null)]);function iJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function sJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function lJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function cJ(e){return a.createVNode(qS,a.mergeProps(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function dJ(){return a.createVNode("div",{class:`${Le.CSS_NAMESPACE}__spinner`},null)}const DS={info:sJ,warning:iJ,success:lJ,error:cJ,spinner:dJ},hJ=e=>e in DS;function uJ({theme:e,type:t,isLoading:n,icon:o}){let r;const i=!!n||t==="loading",s={theme:e,type:t};if(i&&(o===void 0||typeof o=="boolean"))return DS.spinner();if(o!==!1){if(zS(o))r=a.toRaw(o);else if(Ws(o)){const c=o;s.type=i?"loading":t,r=c(s),r=!r&&i?DS.spinner():r}else a.isVNode(o)?r=a.cloneVNode(o,s):N_(o)||eJ(o)?r=o:hJ(t)&&(r=DS[t](s));return r}}const pJ=()=>{};function yJ(e,t,n=Le.COLLAPSE_DURATION){const{scrollHeight:o,style:r}=e,i=n;requestAnimationFrame(()=>{r.minHeight="initial",r.height=o+"px",r.transition=`all ${i}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,i)})})}function fJ(e){const t=a.ref(!1),n=a.ref(!1),o=a.ref(!1),r=a.ref(PS.Enter),i=a.reactive({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||Le.COLLAPSE_DURATION}),s=i.done||pJ,c=a.computed(()=>i.appendPosition?`${i.enter}--${i.position}`:i.enter),d=a.computed(()=>i.appendPosition?`${i.exit}--${i.position}`:i.exit),h=a.computed(()=>e.pauseOnHover?{onMouseenter:k,onMouseleave:g}:{});function u(){const w=c.value.split(" ");y().addEventListener(T_.ENTRANCE_ANIMATION_END,g,{once:!0});const x=C=>{const S=y();C.target===S&&(S.dispatchEvent(new Event(T_.ENTRANCE_ANIMATION_END)),S.removeEventListener("animationend",x),S.removeEventListener("animationcancel",x),r.value===PS.Enter&&C.type!=="animationcancel"&&S.classList.remove(...w))},b=()=>{const C=y();C.classList.add(...w),C.addEventListener("animationend",x),C.addEventListener("animationcancel",x)};e.pauseOnFocusLoss&&f(),b()}function p(){if(!y())return;const w=()=>{const b=y();b.removeEventListener("animationend",w),i.collapse?yJ(b,s,i.collapseDuration):s()},x=()=>{const b=y();r.value=PS.Exit,b&&(b.className+=` ${d.value}`,b.addEventListener("animationend",w))};n.value||(o.value?w():setTimeout(x))}function y(){return e.toastRef.value}function f(){document.hasFocus()||k(),window.addEventListener("focus",g),window.addEventListener("blur",k)}function m(){window.removeEventListener("focus",g),window.removeEventListener("blur",k)}function g(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function k(){t.value=!1}function M(w){w&&(w.stopPropagation(),w.preventDefault()),n.value=!1}return a.watchEffect(p),a.watchEffect(()=>{const w=Us();n.value=w.findIndex(x=>x.toastId===i.toastId)>-1}),a.watchEffect(()=>{e.isLoading!==void 0&&(e.loading.value?k():g())}),a.onMounted(u),a.onUnmounted(()=>{e.pauseOnFocusLoss&&m()}),{isIn:n,isRunning:t,hideToast:M,eventHandlers:h}}function mJ(e){if(!e||typeof e!="object"||Array.isArray(e)||e.__v_isVNode)return!1;const t=e;return["title","content"].some(n=>n in t)}const kJ=a.defineComponent({name:"ToastItem",inheritAttrs:!1,props:FP,setup(e){const t=a.ref(),n=a.computed(()=>!!e.isLoading),o=a.computed(()=>e.progress!==void 0&&e.progress!==null),r=a.computed(()=>uJ(e)),i=a.computed(()=>[`${Le.CSS_NAMESPACE}__toast`,`${Le.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${Le.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${Le.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:s,isIn:c,hideToast:d,eventHandlers:h}=fJ({toastRef:t,loading:n,done:()=>{ht.remove(e.toastId)},...DP(e.transition,e.disabledEnterTransition),...e});function u(){const p=e.content;if(mJ(p)){const y=[];return p.title!==void 0&&y.push(a.createVNode("div",{"data-testid":"toast-text-title",class:`${Le.CSS_NAMESPACE}__toast-text-title`},[p.title])),p.content!==void 0&&y.push(a.createVNode("div",{"data-testid":"toast-text-content",class:`${Le.CSS_NAMESPACE}__toast-text-content`},[p.content])),a.createVNode("div",{"data-testid":"toast-text-content-wrapper",class:`${Le.CSS_NAMESPACE}__toast-text`},[y])}return zS(p)?a.h(a.toRaw(p),{toastProps:a.toRaw(e),closeToast:d,data:e.data,...e.expandCustomProps?e.contentProps:{contentProps:e.contentProps||{}}}):Ws(p)?p({toastProps:a.toRaw(e),closeToast:d,data:e.data}):e.dangerouslyHTMLString?a.h("div",{innerHTML:p}):p}return()=>a.createVNode("div",a.mergeProps({id:e.toastId,class:i.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:p=>{e.closeOnClick&&d(),e.onClick&&e.onClick(p)}},h.value),[a.createVNode("div",{role:e.role,"data-testid":"toast-body",class:`${Le.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[r.value!=null&&a.createVNode("div",{"data-testid":`toast-icon-${e.type}`,class:[`${Le.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${Le.CSS_NAMESPACE}--animate-icon ${Le.CSS_NAMESPACE}__zoom-enter`].join(" ")},[zS(r.value)?a.h(a.toRaw(r.value),{theme:e.theme,type:e.type}):Ws(r.value)?r.value({theme:e.theme,type:e.type}):r.value]),a.createVNode("div",{"data-testid":"toast-content"},[u()])]),(e.closeButton===void 0||e.closeButton===!0)&&a.createVNode(rJ,{theme:e.theme,closeToast:p=>{p.stopPropagation(),p.preventDefault(),d()}},null),zS(e.closeButton)?a.h(a.toRaw(e.closeButton),{closeToast:d,type:e.type,theme:e.theme}):Ws(e.closeButton)?e.closeButton({closeToast:d,type:e.type,theme:e.theme}):null,a.createVNode(oJ,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:c.value,type:e.type,hide:e.hideProgressBar,isRunning:s.value,autoClose:e.autoClose,controlledProgress:o.value,progress:e.progress,closeToast:e.isLoading?void 0:d},null)])}}),ES="vue3-toastify:url-change";let TS=0,Ql;function gJ(){if(!(typeof window>"u")&&BS.lastUrl!==window.location.href){BS.lastUrl=window.location.href;const e=n=>typeof n.clearOnUrlChange=="boolean"?n.clearOnUrlChange:jP().clearOnUrlChange!==!1,t=Object.values(Ke).reduce((n,o)=>(Array.isArray(o)&&n.push(...o),n),[]);for(const n of t)n.toastId&&e(n)&&ht.dismiss(n.toastId);Mt.items=Mt.items.filter(n=>!e(n.toastProps))}}function bJ(){const{history:e}=window,t=e.pushState,n=e.replaceState;return e.pushState=function(...o){const r=t.apply(this,o);return window.dispatchEvent(new Event(ES)),r},e.replaceState=function(...o){const r=n.apply(this,o);return window.dispatchEvent(new Event(ES)),r},()=>{e.pushState=t,e.replaceState=n}}function MJ(){if(typeof window>"u"||Ql)return;const e=bJ(),t=()=>gJ();window.addEventListener(ES,t),window.addEventListener("popstate",t),window.addEventListener("hashchange",t),Ql=()=>{e(),window.removeEventListener(ES,t),window.removeEventListener("popstate",t),window.removeEventListener("hashchange",t),Ql=void 0}}function xJ(){Ql&&(Ql(),BS.lastUrl="")}const wJ=a.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:FP,setup(e){const t=a.computed(()=>e.containerId),n=a.computed(()=>Ke[t.value]||[]),o=a.computed(()=>n.value.filter(r=>r.position===e.position));return a.onMounted(()=>{typeof window<"u"&&(TS+=1,MJ())}),a.onUnmounted(()=>{typeof window<"u"&&TS>0&&(TS-=1,TS===0&&xJ())}),()=>a.createVNode(a.Fragment,null,[o.value.map(r=>{const{toastId:i=""}=r;return a.createVNode(kJ,a.mergeProps({key:i},r),null)})])}});let R_=!1;const NP={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function RP(){const e=[];return Us().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(_S)&&e.push(t)}),e}function vJ(e){const t=RP().length,n=e??0;return n>0&&t+Mt.items.length>=n}function CJ(e){vJ(e.limit)&&!e.updateId&&Mt.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function Ta(e,t,n={}){if(R_)return;n=VS(jP(),{type:t},a.toRaw(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=OP()),n={...n,...n.type==="loading"?NP:{},content:e,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return!isNaN(o)&&o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=aJ()),CJ(n),BS.lastUrl=window.location.href,n.multiple?Mt.items.length?n.updateId&&AS(e,n):AS(e,n):(R_=!0,ze.clearAll(void 0,!1),setTimeout(()=>{AS(e,n)},0),setTimeout(()=>{R_=!1},390)),n.toastId}const ze=(e,t)=>Ta(e,tt.DEFAULT,t);ze.info=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.INFO}),ze.error=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.ERROR}),ze.warning=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.WARNING}),ze.warn=ze.warning,ze.success=(e,t)=>Ta(e,tt.DEFAULT,{...t,type:tt.SUCCESS}),ze.loading=(e,t)=>Ta(e,tt.DEFAULT,VS(t,NP)),ze.dark=(e,t)=>Ta(e,tt.DEFAULT,VS(t,{theme:$s.DARK})),ze.remove=e=>{e?ht.dismiss(e):ht.clear()},ze.clearAll=(e,t)=>{a.nextTick(()=>{ht.clear(e,t)})},ze.isActive=e=>{let t=!1;return t=RP().findIndex(n=>n.toastId===e)>-1,t},ze.update=(e,t={})=>{setTimeout(()=>{const n=QQ(e);if(n){const o=a.toRaw(n),{content:r}=o,i={...o,...t,toastId:t.toastId||e,updateId:OP()},s=i.render||r;delete i.render,Ta(s,i.type,i)}},0)},ze.done=e=>{ze.update(e,{isLoading:!1,progress:1})},ze.promise=LJ;function LJ(e,{pending:t,error:n,success:o},r){var i,s,c;let d;const h={...r||{},autoClose:!1};t&&(d=N_(t)?ze.loading(t,h):ze.loading(t.render,{...h,...t}));const u={autoClose:(i=r==null?void 0:r.autoClose)!=null?i:!0,closeOnClick:(s=r==null?void 0:r.closeOnClick)!=null?s:!0,closeButton:(c=r==null?void 0:r.autoClose)!=null?c:null,isLoading:void 0,draggable:null,delay:100},p=(f,m,g)=>{if(m==null){ze.remove(d);return}const k={type:f,...u,...r,data:g},M=N_(m)?{render:m}:m;return d?ze.update(d,{...k,...M,isLoading:!1}):ze(M.render,{...k,...M,isLoading:!1}),g},y=Ws(e)?e():e;return y.then(f=>{p("success",o,f)}).catch(f=>{p("error",n,f)}),y}ze.POSITION=Zl,ze.THEME=$s,ze.TYPE=tt,ze.TRANSITIONS=PQ;const SJ={install(e,t={}){JQ.useHandler=t.useHandler||(()=>{}),IJ(t)}};typeof window<"u"&&(window.Vue3Toastify=SJ);function IJ(e={}){const t=VS(PP,e);tJ(t)}const _J={class:"dcode-card animate-slide-up"},AJ={class:"px-4 py-2 bg-primary-700 dark:bg-primary-900 border-b border-primary-500/30 dark:border-primary-900/50 rounded-t-xl relative z-30"},BJ={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},VJ={key:0,class:"flex flex-col sm:flex-row items-start sm:items-center gap-2 flex-1 max-w-2xl"},zJ={class:"relative w-full sm:w-64"},PJ={key:0,class:"relative"},qJ={class:"flex flex-col h-full"},DJ={key:0,class:"flex-1 overflow-y-auto py-4"},EJ={class:"grid grid-cols-1 md:grid-cols-2 gap-4 px-1"},TJ={key:0,class:"sticky bottom-0 left-0 right-0 bg-white dark:bg-zinc-900 border-t border-neutral-200 dark:border-neutral-700 p-4 flex gap-2"},HJ={class:"flex justify-end gap-2 w-full"},OJ={key:0,class:"font-medium text-sm text-neutral-600 dark:text-neutral-400"},jJ={class:"overflow-auto custom-scrollbar relative max-h-[calc(100vh-17rem)]"},FJ={class:"dcode-table w-full"},NJ={class:"bg-primary-700 dark:bg-primary-900 sticky top-0 z-20 shadow-sm"},RJ=["onClick"],$J={key:0,class:"flex items-center justify-center w-full"},UJ={key:0,class:"px-3 py-2 text-xs font-medium text-white dark:text-neutral-100 uppercase tracking-wider"},WJ={class:"bg-white dark:bg-zinc-900 divide-y divide-neutral-200 dark:divide-neutral-700"},GJ={key:0,class:"px-3 py-0.5"},KJ={key:1},XJ=["colspan"],ZJ={class:"flex flex-col items-center gap-4"},YJ={class:"text-base font-medium text-neutral-700 dark:text-neutral-300"},QJ={class:"text-sm text-neutral-500 dark:text-neutral-400 mt-1"},JJ={class:"hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-colors duration-150"},eee={key:0,class:"flex items-center justify-center"},tee={key:0,class:"px-3 py-0.5 !text-center"},aee={key:0,class:"flex items-center justify-center gap-1.5"},nee={key:0,class:"bg-zinc-50/50 dark:bg-zinc-800/30"},oee=["colspan"],ree={key:0,class:"px-4 py-3 bg-zinc-50/50 dark:bg-zinc-800/30 border-t border-neutral-200 dark:border-neutral-700 flex flex-col sm:flex-row items-center justify-between gap-4 w-full"},iee={class:"flex items-center gap-4"},see={class:"text-xs text-neutral-500 dark:text-neutral-400 font-medium"},lee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},cee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},dee={class:"text-neutral-900 dark:text-neutral-100 font-medium"},hee={class:"flex-shrink-0"},uee={class:"space-y-4"},pee={class:"text-gray-600 dark:text-gray-400"},yee={class:"grid grid-cols-1 md:grid-cols-2 gap-4 py-4 px-1"},fee={class:"flex items-end gap-2"},HS=a.defineComponent({name:"DataTable",__name:"DataTable",props:{columns:{default:()=>[]},data:{default:()=>[]},perPage:{default:10},loading:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},apiModule:{},apiAction:{default:"list"},apiMethod:{},apiUrl:{},permissionBase:{},apiParams:{default:()=>({})},configKey:{},tableConfig:{},dynamicColumns:{type:Boolean,default:!1},searchApiEndpoint:{},enableQuickSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},ignorePermissions:{type:Boolean,default:!1},userPermissions:{default:null},permissionChecker:{type:Function,default:void 0},permissions:{default:void 0},checkPermission:{type:Function,default:void 0},menuPermissions:{default:()=>[]},dummyMode:{type:Boolean,default:!1}},emits:["update:search","update:sort","update:page","create","export","action","update:selection","navigate"],setup(e,{expose:t,emit:n}){const o=e,r=n,{apiUrl:i}=et(),{locale:s}=KS.useI18n(),c=ms.useRoute(),d=ms.useRouter(),h=a.ref(""),u=a.ref(1),p=a.ref(o.perPage),y=a.ref({key:"",direction:"asc"}),f=a.ref([]),m=a.ref(!1),g=a.ref(0),k=a.ref({}),M=a.ref([]),w=a.ref(null),x=a.ref(!0),b=a.ref([]),C=a.ref([]),S=a.ref([]),L=a.ref(!1),v=a.ref(!1),I=a.ref({}),q=a.ref(null),B=a.ref(null),A=a.ref(null),V=a.ref([]),T=a.computed(()=>{if(xt.value.length===0)return!1;const _=xt.value.map(E=>{const G=ce.value.find(j=>j.type==="CHECKBOX"),P=(G==null?void 0:G.keyCheckbox)||"id";return E[P]}).filter(E=>E!=null);return _.length===0?!1:_.every(E=>V.value.includes(E))}),W=a.computed(()=>{if(xt.value.length===0)return!1;const _=ce.value.find(j=>j.type==="CHECKBOX"),E=(_==null?void 0:_.keyCheckbox)||"id",G=xt.value.map(j=>j[E]).filter(j=>j!=null),P=G.filter(j=>V.value.includes(j)).length;return P>0&&P<G.length}),H=_=>{const E=ce.value.find(j=>j.type==="CHECKBOX"),G=(E==null?void 0:E.keyCheckbox)||"id",P=_[G];return P!==void 0&&V.value.includes(P)},O=_=>{const E=ce.value.find(j=>j.type==="CHECKBOX"),G=(E==null?void 0:E.keyCheckbox)||"id",P=xt.value.map(j=>j[G]).filter(j=>j!=null);if(_){const j=new Set([...V.value,...P]);V.value=Array.from(j)}else V.value=V.value.filter(j=>!P.includes(j))},U=(_,E)=>{const G=ce.value.find(K=>K.type==="CHECKBOX"),P=(G==null?void 0:G.keyCheckbox)||"id",j=_[P];j!=null&&(E?V.value.includes(j)||V.value.push(j):V.value=V.value.filter(K=>K!==j))};a.watch(V,_=>{var G;r("update:selection",_);const E=T.value||_.length>1;(G=C.value)!=null&&G.length&&C.value.forEach(P=>{var j;(j=P.fieldActionGlobal)!=null&&j.length&&P.fieldActionGlobal.forEach(K=>{var Ce,Re;const he=P.endpoint||((Ce=P.propsActionGlobal)==null?void 0:Ce.endpointPropAction)||P.propsActionGlobal,Ve=(Re=he==null?void 0:he.keyParam)==null?void 0:Re[0];(Ve&&K.model===Ve||!Ve&&/^(id|ids|idAuditTrail)/i.test(K.model))&&E&&K.model&&(I.value[K.model]=_)})})},{deep:!0});const J=_=>Array.from({length:_}).map((E,G)=>{const P={id:G+1,no:G+1};return ce.value.forEach(j=>{j.key!=="no"&&j.key!=="action"&&j.type!=="ACTION"&&j.type!=="action"&&(j.type==="CHECKBOX"?P[j.keyCheckbox||"id"]=G+1:j.type==="BADGE"||j.type==="badge"||j.condition?P[j.key]=j.condition&&j.condition.length>0?j.condition[0].value:"Active":P[j.key]=`Data ${j.label} ${G+1}`)}),P}),D=_=>_&&typeof _=="string"&&_.trim()?_:void 0,F=a.computed(()=>{var _,E,G,P;return D((E=(_=w.value)==null?void 0:_.endpoint)==null?void 0:E.apiModule)||D((P=(G=w.value)==null?void 0:G.endpointGlobal)==null?void 0:P.apiModule)||o.apiModule}),N=a.computed(()=>{var _,E,G,P;return D((E=(_=w.value)==null?void 0:_.endpoint)==null?void 0:E.apiAction)||D((P=(G=w.value)==null?void 0:G.endpointGlobal)==null?void 0:P.apiAction)||o.apiAction}),Y=a.computed(()=>{var _,E,G,P;return D((E=(_=w.value)==null?void 0:_.endpoint)==null?void 0:E.apiMethod)||D((P=(G=w.value)==null?void 0:G.endpointGlobal)==null?void 0:P.apiMethod)||o.apiMethod||"POST"}),Q=a.computed(()=>{var _,E,G,P;return D((E=(_=w.value)==null?void 0:_.endpoint)==null?void 0:E.apiUrl)||D((P=(G=w.value)==null?void 0:G.endpointGlobal)==null?void 0:P.apiUrl)||o.apiUrl}),re=a.computed(()=>o.permissionBase||""),ue=a.computed(()=>!S.value||S.value.length===0?[]:[...S.value].sort((_,E)=>(_.seq||0)-(E.seq||0))),pe=_=>{if(!_)return"col-span-1";const E=_.toLowerCase();return{full:"col-span-1 md:col-span-2",half:"col-span-1",third:"col-span-1","two-thirds":"col-span-1 md:col-span-2",two_thirds:"col-span-1 md:col-span-2"}[E]||"col-span-1"},Ie=()=>{let _=null;if(o.tableConfig&&(_=o.tableConfig),_){w.value=_,_.headers&&(M.value=_.headers.map(P=>{var he,Ve,me,Ce,Re,Ee,qe,ea,fs,US;if(P.key==="action"||((he=P.custom)==null?void 0:he.type)==="ACTION"||((Ve=P.custom)==null?void 0:Ve.type)==="action"){const Oa=((me=P.custom)==null?void 0:me.actionCustom)||((Ce=P.custom)==null?void 0:Ce.action);return Oa&&(b.value=Oa.map(ya=>{const Ge=ya.propsActionCustom||ya.props||{},WS=ya.propCustomMessage||{};return{permission:ya.permission,label:s.value==="id"?Ge.labelID:Ge.labelEN,tooltip:s.value==="id"?Ge.tooltipID||Ge.labelID:Ge.tooltipEN||Ge.labelEN,icon:Ge.icon,variant:Ge.variant||"ghost",bgColor:Ge.bgColor,action:Ge.actionType||Ge.key,route:Ge.route,path:Ge.path,endpoint:Ge.endpointPropAction,requiredCondition:ya.requiredCondition||!1,propCustomCondition:ya.propCustomCondition||[],openDialog:ya.openDialog||!1,fieldActionCustom:(ya.fieldActionCustom||[]).map(GS=>{const G_=GS.propsFieldCustom||GS.propsFieldGlobal||GS.props||{};return{...GS,props:{...G_,endpoint:G_.endpointComponent||G_.endpoint}}}),requireConfirm:ya.requireConfirm||Ge.requireConfirm||!1,confirmTitle:s.value==="id"?WS.titleID||Ge.confirmTitleID||"Konfirmasi":WS.titleEN||Ge.confirmTitleEN||"Confirm",confirmMessage:s.value==="id"?WS.messageID||Ge.confirmMessageID||"Apakah Anda yakin?":WS.messageEN||Ge.confirmMessageEN||"Are you sure?"}})),null}let j;const K=((Re=P.custom)==null?void 0:Re.conditionBadge)||((Ee=P.custom)==null?void 0:Ee.condition);return(((qe=P.custom)==null?void 0:qe.type)==="BADGE"||((ea=P.custom)==null?void 0:ea.type)==="badge")&&K&&(j=K.map(Oa=>({value:Oa.value,label:s.value==="id"?Oa.labelID:Oa.labelEN,color:Oa.color,variant:Oa.variant}))),{key:P.key,label:s.value==="id"?P.labelID:P.labelEN,width:P.width,align:P.align,sortable:!0,type:(fs=P.custom)==null?void 0:fs.type,condition:j,keyCheckbox:(US=P.custom)==null?void 0:US.keyCheckbox}}).filter(P=>P!==null));const E=_.filters||_.filter;E&&Array.isArray(E)&&(S.value=E.map(P=>({...P,props:P.propsFilters||P.props||{}})),S.value.forEach(P=>{k.value[P.model]=""}));const G=_.actionGlobal||_.action;console.log("[DEBUG] loadConfig rawActions:",G),G&&Array.isArray(G)?(C.value=G.map(P=>{const j=P.propsActionGlobal||P.props||{};return{key:j.key,permission:P.permission,label:s.value==="id"?j.labelID||"Action":j.labelEN||"Action",tooltip:s.value==="id"?j.tooltipID||j.labelID:j.tooltipEN||j.labelEN,icon:j.icon,variant:j.variant||"default",bgColor:j.bgColor,textColor:j.textColor,route:j.route,path:j.path,endpoint:j.endpointPropAction||P.endpoint,openDialog:P.openDialog||!1,fieldActionGlobal:(P.fieldActionGlobal||P.field||[]).map(K=>{const he=K.propsFieldGlobal||K.props||{};return{...K,props:{...he,endpoint:he.endpointComponent||he.endpoint}}})}}),console.log("[DEBUG] loadConfig headerActions set:",C.value)):console.log("[DEBUG] loadConfig no rawActions found"),_.pagination!==void 0&&(x.value=_.pagination)}};a.watch(()=>o.tableConfig,()=>{Ie()},{deep:!0,immediate:!0});const ce=a.computed(()=>o.dynamicColumns||o.configKey||o.tableConfig?M.value:o.columns||[]),X=a.computed(()=>o.hasActions||b.value.length>0),z=a.computed(()=>F.value||Q.value?m.value:o.loading),R=a.computed(()=>!!F.value||!!Q.value),ee=a.computed(()=>[]),ye=_=>{if(console.log("[DEBUG] hasAction called:",{actionCode:_,permissionChecker:!!o.permissionChecker,effectivePath:re.value}),o.menuPermissions&&o.menuPermissions.length>0){const E=c.path,G=o.menuPermissions.find(P=>E.startsWith(P.path));if(G&&G.actions){const P=G.actions.find(j=>j.code===_.toUpperCase());return P?P.checked:!1}return!1}if(o.permissionChecker){const E=o.permissionChecker(re.value,_);return console.log("[DEBUG] permissionChecker result:",E),E}return ee.value.some(E=>E.code===_)},Ne=(_,E)=>{if(!_.visibilityCondition)return!0;const{field:G,operator:P,value:j}=_.visibilityCondition,K=xe(E,G);switch(P){case"equals":return K===j;case"notEquals":return K!==j;case"in":return Array.isArray(j)&&j.includes(K);case"notIn":return Array.isArray(j)&&!j.includes(K);case"greaterThan":return K>j;case"lessThan":return K<j;case"contains":return String(K).includes(String(j));default:return!0}},ut=a.computed(()=>{if(console.log("[DEBUG] visibleHeaderActions:",{headerActions:C.value,ignorePermissions:o.ignorePermissions}),C.value.length===0)return C.value;const _=C.value.filter(E=>{if(o.ignorePermissions)return!0;if(!E.permission)return console.log("[DEBUG] Action no permission, showing:",E.label),!0;if(o.checkPermission){const P=o.checkPermission(E.permission);return console.log("[DEBUG] Parent checkPermission result:",P),P}if(o.permissions){const P=o.permissions.includes(E.permission);return console.log("[DEBUG] Parent permissions check result:",P),P}const G=ye(E.permission);return console.log("[DEBUG] Internal permission check:",{label:E.label,permission:E.permission,hasPerm:G}),G});return console.log("[DEBUG] Filtered header actions:",_.length),_}),At=a.computed(()=>b.value.length===0?b.value:b.value.filter(_=>o.ignorePermissions||!_.permission?!0:o.checkPermission?o.checkPermission(_.permission):o.permissions?o.permissions.includes(_.permission):ye(_.permission))),Bt=_=>At.value.filter(E=>Ne(E,_)),Ha=(_,E)=>{var j,K;if(_.requiredCondition&&((j=_.propCustomCondition)==null?void 0:j.length)>0){const he=xe(E,"status"),Ve=_.propCustomCondition.find(me=>me.value===he);if(Ve)return Ve.bgColor||_.bgColor||"primary"}if(!_.dynamicColor||!_.colorCondition)return _.bgColor||"primary";const G=xe(E,_.colorCondition.field),P=(K=_.colorCondition.conditions)==null?void 0:K.find(he=>he.value===G);return(P==null?void 0:P.bgColor)||_.bgColor||"primary"},jS=_=>{const E=(_||"left").toLowerCase();return E==="center"?"justify-center":E==="right"?"justify-end":"justify-start"},Gs={ToggleLeft:gl,SquarePen:at,Trash2:Ti,Eye:ws,CheckCircle:ga,Plus:pl,Download:rl,RefreshCw:Ls,Search:vr,SlidersHorizontal:kl},Jl=_=>_?na[_]?na[_]:Gs[_]||null:null,xt=a.computed(()=>o.dummyMode&&ce.value.length>0&&f.value.length===0&&te.value.length===0?J(5):R.value?f.value.map((_,E)=>({..._,no:(u.value-1)*p.value+E+1})):te.value),$=a.computed(()=>R.value?g.value:De.value.length),ae=a.computed(()=>$.value===0?0:(u.value-1)*p.value+1),de=a.computed(()=>{const _=u.value*p.value;return _>$.value?$.value:_}),xe=(_,E)=>{if(!(!_||!E))return E in _?_[E]:E.split(".").reduce((G,P)=>G&&G[P],_)},De=a.computed(()=>{if(R.value)return[];if(!h.value)return o.data;const _=h.value.toLowerCase();return o.data.filter(E=>ce.value.some(G=>{const P=xe(E,G.key);return P==null?!1:String(P).toLowerCase().includes(_)}))}),Z=a.computed(()=>R.value?[]:y.value.key?[...De.value].sort((E,G)=>{const P=xe(E,y.value.key),j=xe(G,y.value.key);if(P===j)return 0;let K=0;return typeof P=="number"&&typeof j=="number"?K=P-j:K=String(P).localeCompare(String(j)),y.value.direction==="asc"?K:-K}):De.value),te=a.computed(()=>{if(R.value)return[];const _=(u.value-1)*p.value,E=_+p.value;return Z.value.slice(_,E).map((G,P)=>({...G,no:_+P+1}))}),ne=a.computed(()=>R.value?Object.values(k.value).some(_=>!!_):!!h.value),fe=[10,25,50,100],He=()=>{R.value&&(k.value={...k.value,keyword:h.value},u.value=1,Je())};let Vt;const GP=()=>{o.enableQuickSearch&&(clearTimeout(Vt),Vt=setTimeout(()=>{He()},500))};let FS;const KP=()=>{clearTimeout(FS),FS=setTimeout(()=>{R.value&&Je()},1e3)};a.watch(h,()=>{o.enableQuickSearch&&R.value&&GP()});const Je=async()=>{if(R.value&&!(!F.value&&!Q.value))try{m.value=!0;const _={page:u.value,perPage:p.value,...k.value,...o.apiParams};h.value&&(_.keyword=h.value),Object.keys(_).forEach(G=>{(_[G]===""||_[G]===null||_[G]===void 0)&&delete _[G]});let E;F.value?E=await i(F.value,N.value,_):Q.value&&(E=await i(Q.value,Y.value,_)),XP(E)}catch(_){console.error("DataTable fetch error",_),m.value=!1}},XP=_=>{console.log("DataTable handleResponseData:",_),_&&(o.dynamicColumns&&_.columns&&Array.isArray(_.columns)&&(M.value=_.columns.map(E=>({key:E.key||E.field||E.name,label:E.label||E.header||E.name,width:E.width,align:E.align||"LEFT",sortable:E.sortable!==!1,type:E.type,condition:E.condition,format:E.format}))),_.data&&Array.isArray(_.data)?(f.value=_.data,_.totalData?g.value=_.totalData:_.maxPage?g.value=_.maxPage*p.value:g.value=_.data.length*(_.maxPage||1)):Array.isArray(_)?(f.value=_,g.value=_.length):_.users?(f.value=_.users,g.value=_.users.length):_.items&&Array.isArray(_.items)?(f.value=_.items,g.value=_.total||_.totalItems||_.items.length):_.list&&Array.isArray(_.list)?(f.value=_.list,g.value=_.total||_.list.length):_.rows&&Array.isArray(_.rows)?(f.value=_.rows,g.value=_.count||_.total||_.rows.length):_.result&&Array.isArray(_.result)?(f.value=_.result,g.value=_.total||_.count||_.result.length):(console.warn("DataTable: Unknown response format",_),f.value=[],g.value=0)),m.value=!1};a.onUnmounted(()=>{clearTimeout(Vt),clearTimeout(FS)});const NS=()=>{Object.keys(k.value).forEach(_=>{k.value[_]=""}),h.value="",u.value=1,Je()},ZP=()=>{u.value=1,Je()},RS=(_,E)=>{const G=xe(_,E.key);let P={variant:"secondary",class:"",label:G};if(E.condition){const j=E.condition.find(K=>{const he=(Ve,me)=>typeof Ve=="string"&&typeof me=="string"?Ve.toLowerCase().trim()===me.toLowerCase().trim():Ve==me;return typeof G=="object"&&G!==null?he(K.value,G.code)||he(K.value,G.id):he(K.value,G)});if(j){if(j.variant&&(P.variant=j.variant),P.label=j.label||(typeof G=="object"?G.name||G.code:G),j.color){const K=j.color.toLowerCase(),he=P.variant==="outline",Ve={success:"bg-green-500 hover:bg-green-600 border-transparent text-white shadow",warning:"bg-yellow-500 hover:bg-yellow-600 border-transparent text-white shadow",info:"bg-blue-500 hover:bg-blue-600 border-transparent text-white shadow"},me={success:"text-green-600 border-green-600 hover:bg-green-50",warning:"text-yellow-600 border-yellow-600 hover:bg-yellow-50",info:"text-blue-600 border-blue-600 hover:bg-blue-50",danger:"text-red-600 border-red-600 hover:bg-red-50",destructive:"text-red-600 border-red-600 hover:bg-red-50",primary:"text-primary-600 border-primary-600 hover:bg-primary-50",secondary:"text-neutral-600 border-neutral-600 hover:bg-zinc-50"},Ce={danger:"destructive",secondary:"secondary",primary:"default"};he?me[K]&&(P.class=me[K]):Ce[K]?P.variant=Ce[K]:Ve[K]&&(P.class=Ve[K])}}else P.label=typeof G=="object"?(G==null?void 0:G.name)||(G==null?void 0:G.code)||"-":G}else P.label=typeof G=="object"?(G==null?void 0:G.name)||(G==null?void 0:G.code)||"-":G;return P},YP=_=>{y.value.key===_?y.value.direction=y.value.direction==="asc"?"desc":"asc":(y.value.key=_,y.value.direction="asc"),r("update:sort",y.value)},$_=_=>{_!==u.value&&(u.value=_,R.value&&Je(),r("update:page",_))},QP=_=>{p.value=_,u.value=1,R.value&&Je()},JP=_=>{const E=Math.random()*15+75;if(_.width){const G=parseInt(String(_.width));return G<100?`${Math.floor(G*(Math.random()*.2+.7))}px`:`${E}%`}return`${E}%`},U_=()=>{h.value="",k.value={},u.value=1,Je()},W_=_=>{var E;if(console.log("[DEBUG] handleHeaderAction called:",_),_.route){if(_.path){const G=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${G}`,_.path)}d.push(_.route)}else if(_.openDialog){B.value=_,A.value=null,I.value={};const G=_.fieldActionGlobal||_.field||[];G.length&&G.forEach(P=>{var he;const j=_.endpoint||((he=_.propsActionGlobal)==null?void 0:he.endpointPropAction)||_.propsActionGlobal,K=j!=null&&j.keyParam&&j.keyParam.length>0?j.keyParam[0]:null;K&&P.model===K||!K&&/^(id|ids|idAuditTrail)/i.test(P.model)?I.value[P.model]=V.value:I.value[P.model]||(I.value[P.model]="")}),v.value=!0}else r("action",{action:((E=_.propsActionCustom)==null?void 0:E.key)||_.key||"create",row:null,selection:V.value})},xee=async(_,E)=>{var G,P,j,K;if(_.requireConfirm){q.value={button:_,row:E},L.value=!0;return}if(_.openDialog){B.value=_,A.value=E,I.value={};const he=ce.value.find(Ce=>Ce.type==="CHECKBOX"),Ve=(he==null?void 0:he.keyCheckbox)||"id";_.fieldActionCustom&&_.fieldActionCustom.forEach(Ce=>{/^(id|ids|idAuditTrail)/i.test(Ce.model)?I.value[Ce.model]=[E[Ve]]:_.action==="showToken"&&Ce.model==="token"?I.value[Ce.model]=E.token!==void 0?E.token:"":E[Ce.model]!==void 0?I.value[Ce.model]=E[Ce.model]:I.value[Ce.model]=""});const me=_.endpoint||((G=_.propsActionGlobal)==null?void 0:G.endpointPropAction)||((P=_.propsActionCustom)==null?void 0:P.endpointPropAction)||((j=_.props)==null?void 0:j.endpointPropAction);if(((K=me==null?void 0:me.apiMethod)==null?void 0:K.toUpperCase())==="GET"&&me.apiUrl){m.value=!0;const{apiUrl:Ce}=et(),Re={};me.keyParam&&Array.isArray(me.keyParam)&&me.keyParam.forEach((Ee,qe)=>{const ea=me.model&&qe===0?me.model:Ee;E[Ee]!==void 0&&(Re[ea]=E[Ee])}),Object.keys(Re).length===0&&E.id&&(Re.id=E.id),Ce(me.apiUrl,"GET",Re).then(Ee=>{let qe=Ee;if(Ee&&Ee.data!==void 0?qe=Ee.data:Ee&&Ee.result!==void 0&&(qe=Ee.result),qe!=null){if(typeof qe=="string")I.value.hasOwnProperty("token")&&(I.value.token=qe);else if(typeof qe=="object"&&(qe.item&&(qe=qe.item),Array.isArray(qe)&&(qe=qe[0]||{}),Object.keys(qe).forEach(ea=>{I.value[ea]=qe[ea]}),!I.value.token)){const ea=Object.keys(qe).find(fs=>fs.toLowerCase().includes("token"));if(ea)I.value.token=qe[ea];else{const fs=Object.values(qe).filter(US=>typeof US=="string");fs.length===1&&(I.value.token=fs[0])}}}v.value=!0}).catch(Ee=>{console.error("Fetch Data Failed",Ee)}).finally(()=>{m.value=!1});return}v.value=!0;return}eq(_,E)},eq=(_,E)=>{if(_.route){if(_.path){const j=_.route.startsWith("/")?_.route:"/"+_.route;sessionStorage.setItem(`layout_${j}`,_.path)}let G=_.route;G.includes(":")?G=G.replaceAll(/:([a-zA-Z0-9_]+)/g,(j,K)=>E[K]||E.id||K):E.id&&(G=`${G.replace(/\/$/,"")}/${E.id}`);const P={};_.path&&(P.code=_.path),d.push({path:G,query:P})}else if(_.endpoint&&_.endpoint.apiUrl){m.value=!0;const{apiUrl:G}=et(),P=_.endpoint.apiUrl,j=_.endpoint.apiMethod||"POST",K={};_.endpoint.keyParam&&Array.isArray(_.endpoint.keyParam)&&_.endpoint.keyParam.forEach((he,Ve)=>{const me=_.endpoint.model&&Ve===0?_.endpoint.model:he;E[he]!==void 0&&(K[me]=E[he])}),Object.keys(K).length===0&&E.id&&(K.id=E.id),G(P,j,K).then(()=>{Je(),r("action",{action:_.action||"success",row:E})}).catch(he=>{console.error("Action Failed",he)}).finally(()=>{m.value=!1})}else r("action",{action:_.action,row:E})},wee=()=>{q.value&&(eq(q.value.button,q.value.row),tq())},vee=()=>{var _,E,G;if(B.value){const P=B.value,j=P.endpoint||((_=P.propsActionGlobal)==null?void 0:_.endpointPropAction)||P.propsActionGlobal;let K=(j==null?void 0:j.model)||(j!=null&&j.keyParam&&j.keyParam.length>0?j.keyParam[0]:null);if(!K){const Ce=(P.fieldActionGlobal||P.fieldActionCustom||P.field||[]).find(Re=>/^(id|ids|idAuditTrail)/i.test(Re.model));K=Ce?Ce.model:"ids"}let he=null,Ve=!1;if(A.value){const me=ce.value.find(Ee=>Ee.type==="CHECKBOX"),Ce=(me==null?void 0:me.keyCheckbox)||"id",Re=A.value[Ce];j!=null&&j.apiUrl&&(he={...I.value},he[K]||(he[K]=[Re]),Ve=!0)}else j!=null&&j.apiUrl&&(he={...I.value},he[K]||(he[K]=V.value||[]),Ve=!0);if(Ve&&he&&(j!=null&&j.apiUrl)){if(((E=j==null?void 0:j.apiMethod)==null?void 0:E.toUpperCase())==="GET"){v.value=!1,A.value||(V.value=[]);return}const{apiUrl:me}=et(),Ce=j.apiUrl,Re=j.apiMethod||"POST";me(Ce,Re,he).then(()=>{v.value=!1,A.value||(V.value=[]),Je(),r("action",{action:"success",row:null})}).catch(Ee=>{console.error("Action Failed",Ee)})}else if(A.value){const me=ce.value.find(qe=>qe.type==="CHECKBOX"),Ce=(me==null?void 0:me.keyCheckbox)||"id",Re=A.value[Ce],Ee={...I.value};Ee[K]||(Ee[K]=[Re]),r("action",{action:B.value.action,row:Ee}),v.value=!1}else{const me={...I.value};me[K]||(me[K]=V.value);const Ce={action:((G=B.value.propsActionGlobal)==null?void 0:G.key)||B.value.key,row:me,selection:V.value};r("action",Ce),v.value=!1}}},Cee=_=>{const E=I.value[_];E&&oQ(String(E)).then(()=>{ze.success("Berhasil disalin!",{autoClose:2e3,theme:"dark",pauseOnHover:!1})}).catch(G=>{console.error("Failed to copy",G)})},tq=()=>{L.value=!1,q.value=null},Lee=a.computed(()=>q.value?q.value.button.confirmTitle||"Confirm":""),See=a.computed(()=>q.value?q.value.button.confirmMessage||"Confirm":"");t({fetchData:Je,filters:k,resetFilters:NS,handleRefresh:U_});const $S=a.ref(""),Iee=_=>{if(!_)return"";const E=_.endpoint||_.endpointGlobal||{};return JSON.stringify({url:E.apiUrl||_.apiUrl,module:E.apiModule||_.apiModule,action:E.apiAction||_.apiAction,method:E.apiMethod||_.apiMethod,params:_.apiParams,socket:E.socket||_.socketEndpoint,socketParams:_.socketParams})};return a.watch(()=>o.tableConfig,()=>{if(o.tableConfig){Ie();const _=Iee(o.tableConfig);_!==$S.value&&(!$S.value&&R.value?($S.value=_,Je()):($S.value=_,R.value&&KP()))}},{deep:!0,immediate:!0}),a.watch(()=>o.apiModule,()=>{R.value&&Je()}),a.watch(()=>o.apiParams,()=>{R.value&&Je()},{deep:!0}),a.watch(()=>C.value,_=>{console.log("[DEBUG] headerActions changed:",_.length,"items");const E=ut.value;console.log("[DEBUG] visibleHeaderActions evaluated:",E.length,"items")},{deep:!0}),a.onMounted(()=>{Ie(),R.value&&(o.tableConfig||(m.value=!0,Je()))}),(_,E)=>{var G;return a.openBlock(),a.createElementBlock("div",_J,[a.createElementVNode("div",AJ,[a.createElementVNode("div",BJ,[e.nested?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",VJ,[a.createElementVNode("div",zJ,[a.createVNode(a.unref(vr),{class:"absolute left-2.5 top-2.5 h-4 w-4 text-neutral-500 dark:text-neutral-400"}),a.createVNode(a.unref(z_),{modelValue:h.value,"onUpdate:modelValue":E[0]||(E[0]=P=>h.value=P),placeholder:"Search...",style:{"padding-left":"2.25rem !important"},class:"h-9 bg-white/95 dark:bg-zinc-800/95 border-white/30 dark:border-neutral-700/50 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-500 dark:placeholder:text-neutral-400",onKeyup:a.withKeys(He,["enter"])},null,8,["modelValue"])]),S.value.length>0?(a.openBlock(),a.createElementBlock("div",PJ,[a.createVNode(yQ,null,{trigger:a.withCtx(()=>[a.createVNode(as,{variant:"secondary",icon:"SlidersHorizontal",tooltip:"Advance Search",class:"gap-2 h-9 w-full sm:w-auto justify-center bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium"})]),footer:a.withCtx(()=>[a.createElementVNode("div",HJ,[a.renderSlot(_.$slots,"filter-footer",{fetch:Je,reset:NS})])]),default:a.withCtx(()=>[a.createElementVNode("div",qJ,[a.renderSlot(_.$slots,"filter-form",{filters:k.value},()=>[S.value.length>0?(a.openBlock(),a.createElementBlock("div",DJ,[a.createElementVNode("div",EJ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ue.value,(P,j)=>(a.openBlock(),a.createElementBlock("div",{key:j,class:a.normalizeClass(pe(P.column))},[a.createVNode(zP,{field:P,modelValue:k.value[P.model],"onUpdate:modelValue":K=>k.value[P.model]=K},null,8,["field","modelValue","onUpdate:modelValue"])],2))),128))])])):a.createCommentVNode("",!0)]),S.value.length>0?(a.openBlock(),a.createElementBlock("div",TJ,[a.createVNode(a.unref(je),{variant:"outline",onClick:NS,disabled:z.value,class:"flex-1 w-full"},{default:a.withCtx(()=>[...E[8]||(E[8]=[a.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"]),a.createVNode(a.unref(je),{onClick:ZP,disabled:z.value,class:"flex-1 w-full"},{default:a.withCtx(()=>[...E[9]||(E[9]=[a.createTextVNode(" Search ",-1)])]),_:1},8,["disabled"])])):a.createCommentVNode("",!0)])]),_:3})])):a.createCommentVNode("",!0)])),a.createElementVNode("div",{class:a.normalizeClass(["flex items-center gap-2 flex-wrap",{"w-full justify-between":e.nested}])},[e.nested?(a.openBlock(),a.createElementBlock("span",OJ)):a.createCommentVNode("",!0),e.nested?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(as,{key:1,variant:"secondary",icon:"RefreshCw",text:"Refresh",tooltip:"Refresh",class:"gap-2 h-9 bg-white/95 dark:bg-zinc-800/95 text-neutral-700 dark:text-neutral-300 hover:bg-white dark:hover:bg-zinc-800 border border-white/30 dark:border-neutral-700/50 shadow-sm backdrop-blur-sm text-xs font-medium",onClick:U_,disabled:z.value},{icon:a.withCtx(()=>[a.createVNode(a.unref(Ls),{class:a.normalizeClass(["w-3.5 h-3.5",{"animate-spin":z.value}])},null,8,["class"])]),_:1},8,["disabled"])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ut.value,(P,j)=>(a.openBlock(),a.createBlock(as,{key:j,icon:P.icon,text:P.label,tooltip:P.tooltip,variant:P.variant,"bg-color":P.bgColor,"text-color":P.textColor,class:"gap-2 h-9 shadow-lg shadow-primary-500/20 border-none text-xs font-medium",onClick:K=>W_(P)},null,8,["icon","text","tooltip","variant","bg-color","text-color","onClick"]))),128)),a.renderSlot(_.$slots,"header-actions")],2)])]),a.createElementVNode("div",jJ,[a.createElementVNode("table",FJ,[a.createElementVNode("thead",NJ,[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,P=>(a.openBlock(),a.createElementBlock("th",{key:P.key,class:a.normalizeClass([P.align?`text-${P.align.toLowerCase()}`:"",P.sortable?"cursor-pointer select-none":"","px-3 py-2 text-xs font-black text-white dark:text-neutral-100 uppercase tracking-wider transition-colors duration-150"]),style:a.normalizeStyle(P.width?{width:P.width}:{}),onClick:j=>P.sortable&&YP(P.key)},[P.type==="CHECKBOX"?(a.openBlock(),a.createElementBlock("div",$J,[a.createVNode(Kl,{"model-value":T.value,indeterminate:W.value,"onUpdate:modelValue":E[1]||(E[1]=j=>O(!!j)),onClick:E[2]||(E[2]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate"])])):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex items-center gap-2 w-full",jS(P.align)])},[a.createElementVNode("span",null,a.toDisplayString(P.label),1)],2))],14,RJ))),128)),X.value?(a.openBlock(),a.createElementBlock("th",UJ,[...E[10]||(E[10]=[a.createElementVNode("div",{class:"flex items-center justify-center w-full"}," Actions ",-1)])])):a.createCommentVNode("",!0)])]),a.createElementVNode("tbody",WJ,[z.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(p.value,P=>(a.openBlock(),a.createElementBlock("tr",{key:`skeleton-${P}`},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,j=>{var K,he;return a.openBlock(),a.createElementBlock("td",{key:j.key,class:a.normalizeClass([j.align?`text-${j.align.toLowerCase()}`:"text-left","px-3 py-0.5"])},[a.createElementVNode("div",{class:a.normalizeClass(["bg-gradient-to-r from-neutral-200 via-neutral-300 to-neutral-200 dark:from-neutral-700 dark:via-neutral-600 dark:to-neutral-700 animate-shimmer",[["badge","BADGE"].includes(j.type??"")||j.condition?"h-5 rounded-full w-20":"h-4 rounded-md",((K=j.align)==null?void 0:K.toLowerCase())==="center"?"mx-auto":"",((he=j.align)==null?void 0:he.toLowerCase())==="right"?"ml-auto":""]]),style:a.normalizeStyle({width:["badge","BADGE"].includes(j.type??"")||j.condition?void 0:JP(j),backgroundSize:"200% 100%"})},null,6)],2)}),128)),e.hasActions?(a.openBlock(),a.createElementBlock("td",GJ,[...E[11]||(E[11]=[a.createElementVNode("div",{class:"flex items-center justify-center gap-1.5"},[a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse"}),a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-75"}),a.createElementVNode("div",{class:"w-9 h-9 bg-zinc-200 dark:bg-zinc-700 rounded-xl animate-pulse delay-150"})],-1)])])):a.createCommentVNode("",!0)]))),128)):xt.value.length===0?(a.openBlock(),a.createElementBlock("tr",KJ,[a.createElementVNode("td",{colspan:ce.value.length+(X.value?1:0),class:"text-center py-16"},[a.createElementVNode("div",ZJ,[a.createElementVNode("div",null,[a.createElementVNode("p",YJ,a.toDisplayString(ne.value?"No search results":"No data"),1),a.createElementVNode("p",QJ,a.toDisplayString(ne.value?"Try changing keywords":"No data added"),1)])])],8,XJ)])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:2},a.renderList(xt.value,(P,j)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:j},[a.createElementVNode("tr",JJ,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ce.value,K=>(a.openBlock(),a.createElementBlock("td",{key:K.key,class:a.normalizeClass([K.align?`text-${K.align}`:"text-left","px-3 py-0.5 text-sm text-neutral-900 dark:text-neutral-100"])},[a.renderSlot(_.$slots,`cell-${K.key}`,{row:P,value:xe(P,K.key)},()=>[K.type==="CHECKBOX"?(a.openBlock(),a.createElementBlock("div",eee,[a.createVNode(Kl,{"model-value":H(P),"onUpdate:modelValue":he=>U(P,!!he),onClick:E[3]||(E[3]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onUpdate:modelValue"])])):K.type==="badge"||K.type==="BADGE"||K.condition?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["flex items-center gap-1.5 flex-wrap md:flex-nowrap",[K.align?`justify-${K.align}`:"justify-start"]])},[a.createVNode(a.unref(Ea),{variant:RS(P,K).variant,class:a.normalizeClass([RS(P,K).class,"whitespace-nowrap truncate max-w-[150px] inline-block"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(RS(P,K).label),1)]),_:2},1032,["variant","class"])],2)):K.key==="no"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString((u.value-1)*p.value+j+1),1)],64)):K.type==="date"||K.type==="DATE"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[a.createTextVNode(a.toDisplayString(xe(P,K.key)?a.unref(aQ)(xe(P,K.key),"long"):"-"),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createTextVNode(a.toDisplayString(K.format?K.format(xe(P,K.key)):xe(P,K.key)),1)],64))])],2))),128)),X.value?(a.openBlock(),a.createElementBlock("td",tee,[a.renderSlot(_.$slots,"actions",{row:P,buttons:Bt(P),getButtonColor:Ha,getIconComponent:Jl},()=>[Bt(P).length>0?(a.openBlock(),a.createElementBlock("div",aee,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Bt(P),(K,he)=>(a.openBlock(),a.createElementBlock("div",{key:he,class:"group relative"},[a.createVNode(as,{tooltip:K.tooltip||K.label,icon:K.icon,size:"icon",rounded:K.rounded||"sm",borderStyle:K.borderStyle||"none",variant:K.variant||"ghost","bg-color":Ha(K,P),onClick:Ve=>xee(K,P)},null,8,["tooltip","icon","rounded","borderStyle","variant","bg-color","onClick"])]))),128))])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]),_.$slots["expanded-row"]?(a.openBlock(),a.createElementBlock("tr",nee,[a.createElementVNode("td",{colspan:ce.value.length+(X.value?1:0),class:"px-0 py-0"},[a.renderSlot(_.$slots,"expanded-row",{row:P,index:j})],8,oee)])):a.createCommentVNode("",!0)],64))),128))])])]),!z.value&&xt.value.length>0&&e.showPagination&&x.value?(a.openBlock(),a.createElementBlock("div",ree,[a.createElementVNode("div",iee,[a.createVNode(a.unref(LQ),{"model-value":String(p.value),"onUpdate:modelValue":E[4]||(E[4]=P=>QP(Number(P)))},{default:a.withCtx(()=>[a.createVNode(a.unref(VQ),{class:"h-8 w-[70px] bg-white dark:bg-zinc-800 border-neutral-200 dark:border-neutral-700"},{default:a.withCtx(()=>[a.createVNode(a.unref(zQ),{placeholder:String(p.value)},null,8,["placeholder"])]),_:1}),a.createVNode(a.unref(SQ),null,{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(fe,P=>a.createVNode(a.unref(_Q),{key:P,value:String(P)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),E[16]||(E[16]=a.createElementVNode("div",{class:"h-5 w-px bg-zinc-300 dark:bg-zinc-600"},null,-1)),a.createElementVNode("span",see,[E[12]||(E[12]=a.createTextVNode(" Showing ",-1)),a.createElementVNode("span",lee,a.toDisplayString(ae.value),1),E[13]||(E[13]=a.createTextVNode(" to ",-1)),a.createElementVNode("span",cee,a.toDisplayString(de.value),1),E[14]||(E[14]=a.createTextVNode(" of ",-1)),a.createElementVNode("span",dee,a.toDisplayString($.value),1),E[15]||(E[15]=a.createTextVNode(" items ",-1))])]),a.createElementVNode("div",hee,[a.createVNode(a.unref(kQ),{total:$.value,"items-per-page":p.value,"sibling-count":1,"show-edges":"",page:u.value,"onUpdate:page":$_,class:"scale-90 origin-right"},{default:a.withCtx(()=>[a.createVNode(a.unref(gQ),{class:"flex items-center gap-1"},{default:a.withCtx(({items:P})=>[a.createVNode(a.unref(MQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-50 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(tl),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(CQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(bn),{class:"h-4 w-4"})]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(P,(j,K)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[j.type==="page"?(a.openBlock(),a.createBlock(a.unref(xQ),{key:K,value:j.value,"as-child":""},{default:a.withCtx(()=>[a.createVNode(a.unref(je),{class:"w-8 h-8 p-0 text-sm",variant:j.value===u.value?"default":"outline",disabled:j.value===u.value,onClick:he=>$_(j.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(j.value),1)]),_:2},1032,["variant","disabled","onClick"])]),_:2},1032,["value"])):(a.openBlock(),a.createBlock(a.unref(bQ),{key:j.type,index:K},null,8,["index"]))],64))),256)),a.createVNode(a.unref(vQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(Mn),{class:"h-4 w-4"})]),_:1}),a.createVNode(a.unref(wQ),{class:"w-8 h-8 p-0 flex items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-md bg-white dark:bg-zinc-800 text-neutral-900 dark:text-neutral-100 hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:cursor-not-allowed"},{default:a.withCtx(()=>[a.createVNode(a.unref(al),{class:"h-4 w-4"})]),_:1})]),_:1})]),_:1},8,["total","items-per-page","page"])])])):a.createCommentVNode("",!0),a.createVNode(CS,{modelValue:L.value,"onUpdate:modelValue":E[5]||(E[5]=P=>L.value=P),title:Lee.value,icon:"AlertCircle","max-width":450,persistent:!1},{actions:a.withCtx(()=>[a.createVNode(a.unref(je),{variant:"outline",onClick:tq},{default:a.withCtx(()=>[...E[17]||(E[17]=[a.createTextVNode(" Cancel ",-1)])]),_:1}),a.createVNode(a.unref(je),{onClick:wee},{default:a.withCtx(()=>[...E[18]||(E[18]=[a.createTextVNode(" Yes ",-1)])]),_:1})]),default:a.withCtx(()=>[a.createElementVNode("div",uee,[a.createElementVNode("p",pee,a.toDisplayString(See.value),1)])]),_:1},8,["modelValue","title"]),a.createVNode(CS,{modelValue:v.value,"onUpdate:modelValue":E[7]||(E[7]=P=>v.value=P),title:((G=B.value)==null?void 0:G.label)||"Action",icon:"AlertCircle","max-width":450},{actions:a.withCtx(()=>[a.createVNode(a.unref(je),{variant:"outline",onClick:E[6]||(E[6]=P=>v.value=!1)},{default:a.withCtx(()=>[...E[19]||(E[19]=[a.createTextVNode(" Cancel ",-1)])]),_:1}),a.createVNode(a.unref(je),{onClick:vee},{default:a.withCtx(()=>[...E[20]||(E[20]=[a.createTextVNode(" Save ",-1)])]),_:1})]),default:a.withCtx(()=>{var P,j;return[a.createElementVNode("div",yee,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(((P=B.value)==null?void 0:P.fieldActionCustom)||((j=B.value)==null?void 0:j.fieldActionGlobal)||[],(K,he)=>{var Ve,me,Ce;return a.openBlock(),a.createElementBlock(a.Fragment,{key:he},[K.isHidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(pe(K.column))},[a.createElementVNode("div",fee,[a.createVNode(zP,{class:"flex-1 w-full",field:K,modelValue:I.value[K.model],"onUpdate:modelValue":Re=>I.value[K.model]=Re},null,8,["field","modelValue","onUpdate:modelValue"]),K.isCopyable||(Ve=K.props)!=null&&Ve.isCopyable||((me=B.value)==null?void 0:me.action)==="showToken"||((Ce=B.value)==null?void 0:Ce.action)==="copyToken"?(a.openBlock(),a.createBlock(as,{key:0,icon:"Copy",variant:"outline",class:"h-10 w-10 p-0 flex-shrink-0",tooltip:"Salin",onClick:Re=>Cee(K.model)},null,8,["onClick"])):a.createCommentVNode("",!0)])],2))],64)}),128))])]}),_:1},8,["modelValue","title"])])}}}),mee={class:"h-full flex flex-col"},kee={key:1,class:"flex-1 flex items-center justify-center"},gee={key:2,class:"flex-1 flex items-center justify-center text-red-500"},$P=a.defineComponent({__name:"AutoLayoutDatatable",props:{layoutCode:{},userPermissions:{},permissionBase:{}},emits:["action","navigate"],setup(e,{emit:t}){const n=e,o=t,r=ms.useRoute();ms.useRouter();const{apiUrl:i}=et(),s=a.inject("hasActionAccess",()=>!1),c=a.inject("userPermissions",null),d=a.ref(null),h=a.ref(!0),u=a.ref(null),p="/api/auto-layout/datatable/form-dynamic?code=",y=a.computed(()=>`${p}${n.layoutCode}`),f=async()=>{var k;h.value=!0;try{const M=await i(y.value,"GET");M.status&&(d.value=Array.isArray(M.data)?M.data[0]:M.data,console.log("[DEBUG] AutoLayoutDatatable config loaded:",d.value),console.log("[DEBUG] actionGlobal in config:",(k=d.value)==null?void 0:k.actionGlobal))}catch(M){console.error("Gagal Menampilkan Datatable:",M)}finally{h.value=!1}},m=k=>{k.action==="add"&&console.log("[AutoLayoutDatatable] Add action triggered"),console.log("Aksi:",k.action,k)},g=k=>{console.log("[DEBUG] AutoLayoutDatatable handleNavigate:",k);let M=k.route;if(M||(M=`/${((r==null?void 0:r.path)||"").split("/")[1]||"product"}/create`),M){const w=k.path?{code:k.path}:{};console.log("[DEBUG] Emitting navigate to parent:",{path:M,query:w}),o("navigate",{route:M,query:w})}else console.warn("[DEBUG] No route or path provided for navigation")};return a.onMounted(()=>{f()}),(k,M)=>(a.openBlock(),a.createElementBlock("div",mee,[!h.value&&d.value?(a.openBlock(),a.createBlock(HS,{key:0,ref_key:"dtRef",ref:u,"api-url":y.value,"api-method":"GET","table-config":d.value,"permission-base":n.permissionBase||"","dummy-mode":["form-add","form-edit","datatable-create","datatable-edit"].includes(n.layoutCode),"user-permissions":n.userPermissions||a.unref(c),"permission-checker":a.unref(s),onAction:m,onNavigate:g},{"header-actions":a.withCtx(()=>[...M[0]||(M[0]=[])]),_:1},8,["api-url","table-config","permission-base","dummy-mode","user-permissions","permission-checker"])):h.value?(a.openBlock(),a.createElementBlock("div",kee,[...M[1]||(M[1]=[a.createElementVNode("i",{class:"mdi mdi-loading mdi-spin text-4xl text-primary-600"},null,-1)])])):(a.openBlock(),a.createElementBlock("div",gee," Failed to load configuration for "+a.toDisplayString(n.layoutCode),1))]))}}),UP=a.defineCustomElement(VP),WP=a.defineCustomElement($P);typeof customElements<"u"&&(customElements.get("micro-dynamic-form")||customElements.define("micro-dynamic-form",UP),customElements.get("micro-dynamic-datatable")||customElements.define("micro-dynamic-datatable",WP));const bee=[sI,MA,as,PI,Jz,Kl,eP,x_,CS,kP,LS,gP,S_,bP,__,B_,A_,V_,MP,P_,xP,wP,vP,CP,q_,D_,E_,SS,_P,AP,BP,HS],Mee={install(e,t={}){t&&Object.keys(t).length>0&&X_(t),bee.forEach(n=>{n.name&&e.component(n.name,n)})}};oe.AutoLayoutDatatable=$P,oe.AutoLayoutForm=VP,oe.DCodeAutoComplete=sI,oe.DCodeButton=as,oe.DCodeCard=PI,oe.DCodeChart=Jz,oe.DCodeCheckbox=Kl,oe.DCodeCurrencyField=eP,oe.DCodeDatePicker=x_,oe.DCodeDialog=CS,oe.DCodeDialogCloseBtn=kP,oe.DCodeDropzone=LS,oe.DCodeFileField=gP,oe.DCodeFileResult=S_,oe.DCodeIconDropdown=bP,oe.DCodeImageCropperDialog=__,oe.DCodeImageField=B_,oe.DCodeImageResult=A_,oe.DCodeInfiniteAutoComplete=MA,oe.DCodeLabel=V_,oe.DCodeMultiSelect=MP,oe.DCodeOtpInput=P_,oe.DCodeProgress=xP,oe.DCodeProgressBar=wP,oe.DCodeRadio=vP,oe.DCodeRadioCustom=CP,oe.DCodeSlider=q_,oe.DCodeSwitch=D_,oe.DCodeTextField=E_,oe.DCodeTextarea=SS,oe.DCodeTimelineWithIcons=_P,oe.DCodeUploadFile=AP,oe.DCodeWizard=BP,oe.DataTable=HS,oe.DataTableComponent=HS,oe.MicroDynamicDatatable=WP,oe.MicroDynamicForm=UP,oe.cn=Me,oe.default=Mee,oe.setApiConfig=X_,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|