@sigtes/ui 0.2.12 → 0.3.0

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.
@@ -0,0 +1,11 @@
1
+ "use client";"use strict";const U=require("react"),ne=require("@radix-ui/react-slot"),ae=require("class-variance-authority"),oe=require("tailwind-merge");require("next-themes");var ft={exports:{}},K={};var St;function ie(){if(St)return K;St=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var u=null;if(i!==void 0&&(u=""+i),a.key!==void 0&&(u=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:u,ref:a!==void 0?a:null,props:i}}return K.Fragment=r,K.jsx=n,K.jsxs=n,K}var tt={};var Mt;function se(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Z?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case x:return"Fragment";case H:return"Profiler";case N:return"StrictMode";case pt:return"Suspense";case yt:return"SuspenseList";case bt:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case E:return"Portal";case mt:return o.displayName||"Context";case C:return(o._context.displayName||"Context")+".Consumer";case gt:var c=o.render;return o=o.displayName,o||(o=c.displayName||c.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case lt:return c=o.displayName||null,c!==null?c:e(o.type)||"Memo";case q:c=o._payload,o=o._init;try{return e(o(c))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var c=!1}catch{c=!0}if(c){c=console;var d=c.error,p=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return d.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",p),r(o)}}function t(o){if(o===x)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===q)return"<...>";try{var c=e(o);return c?"<"+c+">":"<...>"}catch{return"<...>"}}function a(){var o=F.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function u(o){if(dt.call(o,"key")){var c=Object.getOwnPropertyDescriptor(o,"key").get;if(c&&c.isReactWarning)return!1}return o.key!==void 0}function l(o,c){function d(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",c))}d.isReactWarning=!0,Object.defineProperty(o,"key",{get:d,configurable:!0})}function h(){var o=e(this.type);return X[o]||(X[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function k(o,c,d,p,M,Y){var b=d.ref;return o={$$typeof:R,type:o,key:c,props:d,_owner:p},(b!==void 0?b:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:h}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function y(o,c,d,p,M,Y){var b=c.children;if(b!==void 0)if(p)if(B(b)){for(p=0;p<b.length;p++)m(b[p]);Object.freeze&&Object.freeze(b)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(b);if(dt.call(c,"key")){b=e(o);var v=Object.keys(c).filter(function(V){return V!=="key"});p=0<v.length?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}",s[b+p]||(v=0<v.length?"{"+v.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,p,b,v,b),s[b+p]=!0)}if(b=null,d!==void 0&&(n(d),b=""+d),u(c)&&(n(c.key),b=""+c.key),"key"in c){d={};for(var O in c)O!=="key"&&(d[O]=c[O])}else d=c;return b&&l(d,typeof o=="function"?o.displayName||o.name||"Unknown":o),k(o,b,d,a(),M,Y)}function m(o){S(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===q&&(o._payload.status==="fulfilled"?S(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function S(o){return typeof o=="object"&&o!==null&&o.$$typeof===R}var T=U,R=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),mt=Symbol.for("react.context"),gt=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),bt=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),F=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt=Object.prototype.hasOwnProperty,B=Array.isArray,A=console.createTask?console.createTask:function(){return null};T={react_stack_bottom_frame:function(o){return o()}};var G,X={},Q=T.react_stack_bottom_frame.bind(T,i)(),J=A(t(i)),s={};tt.Fragment=x,tt.jsx=function(o,c,d){var p=1e4>F.recentlyCreatedOwnerStacks++;return y(o,c,d,!1,p?Error("react-stack-top-frame"):Q,p?A(t(o)):J)},tt.jsxs=function(o,c,d){var p=1e4>F.recentlyCreatedOwnerStacks++;return y(o,c,d,!0,p?Error("react-stack-top-frame"):Q,p?A(t(o)):J)}})()),tt}var Tt;function ue(){return Tt||(Tt=1,process.env.NODE_ENV==="production"?ft.exports=ie():ft.exports=se()),ft.exports}var Ft=ue();const At=ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function $t(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=$t(e[r]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function ce(){for(var e,r,n=0,t="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=$t(e))&&(t&&(t+=" "),t+=r);return t}function Lt(...e){return oe.twMerge(ce(e))}function le({className:e,variant:r,size:n,asChild:t=!1,...a}){const i=t?ne.Slot:"button";return Ft.jsx(i,{"data-slot":"button",className:Lt(At({variant:r,size:n,className:e})),...a})}var vt={exports:{}},et={};var Ot;function de(){if(Ot)return et;Ot=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var u=null;if(i!==void 0&&(u=""+i),a.key!==void 0&&(u=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:u,ref:a!==void 0?a:null,props:i}}return et.Fragment=r,et.jsx=n,et.jsxs=n,et}var ht={};var Dt;function fe(){return Dt||(Dt=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===bt?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case E:return"Fragment";case N:return"Profiler";case x:return"StrictMode";case gt:return"Suspense";case pt:return"SuspenseList";case q:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case R:return"Portal";case C:return(s.displayName||"Context")+".Provider";case H:return(s._context.displayName||"Context")+".Consumer";case mt:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case yt:return o=s.displayName||null,o!==null?o:e(s.type)||"Memo";case lt:o=s._payload,s=s._init;try{return e(s(o))}catch{}}return null}function r(s){return""+s}function n(s){try{r(s);var o=!1}catch{o=!0}if(o){o=console;var c=o.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return c.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),r(s)}}function t(s){if(s===E)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===lt)return"<...>";try{var o=e(s);return o?"<"+o+">":"<...>"}catch{return"<...>"}}function a(){var s=Z.A;return s===null?null:s.getOwner()}function i(){return Error("react-stack-top-frame")}function u(s){if(F.call(s,"key")){var o=Object.getOwnPropertyDescriptor(s,"key").get;if(o&&o.isReactWarning)return!1}return s.key!==void 0}function l(s,o){function c(){A||(A=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}c.isReactWarning=!0,Object.defineProperty(s,"key",{get:c,configurable:!0})}function h(){var s=e(this.type);return G[s]||(G[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function k(s,o,c,d,p,M,Y,b){return c=M.ref,s={$$typeof:T,type:s,key:o,props:M,_owner:p},(c!==void 0?c:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:h}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function y(s,o,c,d,p,M,Y,b){var v=o.children;if(v!==void 0)if(d)if(dt(v)){for(d=0;d<v.length;d++)m(v[d]);Object.freeze&&Object.freeze(v)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(v);if(F.call(o,"key")){v=e(s);var O=Object.keys(o).filter(function(re){return re!=="key"});d=0<O.length?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}",J[v+d]||(O=0<O.length?"{"+O.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
7
+ let props = %s;
8
+ <%s {...props} />
9
+ React keys must be passed directly to JSX without using spread:
10
+ let props = %s;
11
+ <%s key={someKey} {...props} />`,d,v,O,v),J[v+d]=!0)}if(v=null,c!==void 0&&(n(c),v=""+c),u(o)&&(n(o.key),v=""+o.key),"key"in o){c={};for(var V in o)V!=="key"&&(c[V]=o[V])}else c=o;return v&&l(c,typeof s=="function"?s.displayName||s.name||"Unknown":s),k(s,v,M,p,a(),c,Y,b)}function m(s){typeof s=="object"&&s!==null&&s.$$typeof===T&&s._store&&(s._store.validated=1)}var S=U,T=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),C=Symbol.for("react.context"),mt=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),yt=Symbol.for("react.memo"),lt=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),bt=Symbol.for("react.client.reference"),Z=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,dt=Array.isArray,B=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(s){return s()}};var A,G={},X=S.react_stack_bottom_frame.bind(S,i)(),Q=B(t(i)),J={};ht.Fragment=E,ht.jsx=function(s,o,c,d,p){var M=1e4>Z.recentlyCreatedOwnerStacks++;return y(s,o,c,!1,d,p,M?Error("react-stack-top-frame"):X,M?B(t(s)):Q)},ht.jsxs=function(s,o,c,d,p){var M=1e4>Z.recentlyCreatedOwnerStacks++;return y(s,o,c,!0,d,p,M?Error("react-stack-top-frame"):X,M?B(t(s)):Q)}})()),ht}var xt;function he(){return xt||(xt=1,process.env.NODE_ENV==="production"?vt.exports=de():vt.exports=fe()),vt.exports}he();const me={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]},ge=U.createContext({user:me,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});function pe(){return U.useContext(ge)}function wt(e){return(r={})=>{const n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function rt(e){return(r,n)=>{const t=n?.context?String(n.context):"standalone";let a;if(t==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):u;a=e.formattingValues[l]||e.formattingValues[u]}else{const u=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[u]}const i=e.argumentCallback?e.argumentCallback(r):r;return a[i]}}function nt(e){return(r,n={})=>{const t=n.width,a=t&&e.matchPatterns[t]||e.matchPatterns[e.defaultMatchWidth],i=r.match(a);if(!i)return null;const u=i[0],l=t&&e.parsePatterns[t]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(l)?be(l,m=>m.test(u)):ye(l,m=>m.test(u));let k;k=e.valueCallback?e.valueCallback(h):h,k=n.valueCallback?n.valueCallback(k):k;const y=r.slice(u.length);return{value:k,rest:y}}}function ye(e,r){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r(e[n]))return n}function be(e,r){for(let n=0;n<e.length;n++)if(r(e[n]))return n}function ve(e){return(r,n={})=>{const t=r.match(e.matchPattern);if(!t)return null;const a=t[0],i=r.match(e.parsePattern);if(!i)return null;let u=e.valueCallback?e.valueCallback(i[0]):i[0];u=n.valueCallback?n.valueCallback(u):u;const l=r.slice(a.length);return{value:u,rest:l}}}const zt=6048e5,we=864e5,Pt=Symbol.for("constructDateFrom");function w(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Pt in e?e[Pt](r):e instanceof Date?new e.constructor(r):new Date(r)}function I(e,...r){const n=w.bind(null,r.find(t=>typeof t=="object"));return r.map(n)}let ke={};function ct(){return ke}function g(e,r){return w(r||e,e)}function z(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=g(e,r?.in),i=a.getDay(),u=(i<t?7:0)+i-t;return a.setDate(a.getDate()-u),a.setHours(0,0,0,0),a}const Se={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"}},Me=(e,r,n)=>{let t;const a=Se[e];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",r.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+t:t+" ago":t},Te={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oe=(e,r,n,t)=>Te[e],De={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pe={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"]},Ee={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"]},Ne={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"}},Ce={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"}},Ye=(e,r)=>{const n=Number(e),t=n%100;if(t>20||t<10)switch(t%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_e={ordinalNumber:Ye,era:rt({values:De,defaultWidth:"wide"}),quarter:rt({values:xe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:rt({values:Pe,defaultWidth:"wide"}),day:rt({values:Ee,defaultWidth:"wide"}),dayPeriod:rt({values:Ne,defaultWidth:"wide",formattingValues:Ce,defaultFormattingWidth:"wide"})},je=/^(\d+)(th|st|nd|rd)?/i,We=/\d+/i,Re={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},Fe={any:[/^b/i,/^(a|c)/i]},Ae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$e={any:[/1/i,/2/i,/3/i,/4/i]},Le={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},ze={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]},Ue={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},Ie={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]},He={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},qe={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}},Ze={ordinalNumber:ve({matchPattern:je,parsePattern:We,valueCallback:e=>parseInt(e,10)}),era:nt({matchPatterns:Re,defaultMatchWidth:"wide",parsePatterns:Fe,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Ae,defaultMatchWidth:"wide",parsePatterns:$e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:nt({matchPatterns:Le,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),day:nt({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Ie,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:He,defaultMatchWidth:"any",parsePatterns:qe,defaultParseWidth:"any"})},Be={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qe={date:wt({formats:Be,defaultWidth:"full"}),time:wt({formats:Ge,defaultWidth:"full"}),dateTime:wt({formats:Xe,defaultWidth:"full"})},L={code:"en-US",formatDistance:Me,formatLong:Qe,formatRelative:Oe,localize:_e,match:Ze,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Je(e,r,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(r).split(/\s/g).slice(2).join(" ")}const Ve={},at={};function j(e,r){try{const n=(Ve[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];return n in at?at[n]:Et(n,n.split(":"))}catch{if(e in at)return at[e];const n=e?.match(Ke);return n?Et(e,n.slice(1)):NaN}}const Ke=/([+-]\d\d):?(\d\d)?/;function Et(e,r){const n=+(r[0]||0),t=+(r[1]||0),a=+(r[2]||0)/60;return at[e]=n*60+t>0?n*60+t+a:n*60-t-a}class D extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(j(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),Ut(this),kt(this)):this.setTime(Date.now())}static tz(r,...n){return n.length?new D(...n,r):new D(Date.now(),r)}withTimeZone(r){return new D(+this,r)}getTimezoneOffset(){const r=-j(this.timeZone,this);return r>0?Math.floor(r):Math.ceil(r)}setTime(r){return Date.prototype.setTime.apply(this,arguments),kt(this),+this}[Symbol.for("constructDateFrom")](r){return new D(+new Date(r),this.timeZone)}}const Nt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Nt.test(e))return;const r=e.replace(Nt,"$1UTC");D.prototype[r]&&(e.startsWith("get")?D.prototype[e]=function(){return this.internal[r]()}:(D.prototype[e]=function(){return Date.prototype[r].apply(this.internal,arguments),tr(this),+this},D.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),kt(this),+this}))});function kt(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-j(e.timeZone,e)*60))}function tr(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ut(e)}function Ut(e){const r=j(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),t=new Date(+e);t.setUTCHours(t.getUTCHours()-1);const a=-new Date(+e).getTimezoneOffset(),i=-new Date(+t).getTimezoneOffset(),u=a-i,l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();u&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+u);const h=a-n;h&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const k=new Date(+e);k.setUTCSeconds(0);const y=a>0?k.getSeconds():(k.getSeconds()-60)%60,m=Math.round(-(j(e.timeZone,e)*60))%60;(m||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+y));const S=j(e.timeZone,e),T=S>0?Math.floor(S):Math.ceil(S),R=-new Date(+e).getTimezoneOffset()-T,E=T!==n,x=R-h;if(E&&x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);const N=j(e.timeZone,e),H=N>0?Math.floor(N):Math.ceil(N),C=T-H;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class W extends D{static tz(r,...n){return n.length?new W(...n,r):new W(Date.now(),r)}toISOString(){const[r,n,t]=this.tzComponents(),a=`${r}${n}:${t}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[r,n,t,a]=this.internal.toUTCString().split(" ");return`${r?.slice(0,-1)} ${t} ${n} ${a}`}toTimeString(){const r=this.internal.toUTCString().split(" ")[4],[n,t,a]=this.tzComponents();return`${r} GMT${n}${t}${a} (${Je(this.timeZone,this)})`}toLocaleString(r,n){return Date.prototype.toLocaleString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(r,n){return Date.prototype.toLocaleDateString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(r,n){return Date.prototype.toLocaleTimeString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const r=this.getTimezoneOffset(),n=r>0?"-":"+",t=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),a=String(Math.abs(r)%60).padStart(2,"0");return[n,t,a]}withTimeZone(r){return new W(+this,r)}[Symbol.for("constructDateFrom")](r){return new W(+new Date(r),this.timeZone)}}function It(e,r,n){const t=g(e,n?.in);return isNaN(r)?w(e,NaN):(r&&t.setDate(t.getDate()+r),t)}function Ht(e,r,n){const t=g(e,n?.in);if(isNaN(r))return w(e,NaN);if(!r)return t;const a=t.getDate(),i=w(e,t.getTime());i.setMonth(t.getMonth()+r+1,0);const u=i.getDate();return a>=u?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function it(e,r){return z(e,{...r,weekStartsOn:1})}function qt(e,r){const n=g(e,r?.in),t=n.getFullYear(),a=w(n,0);a.setFullYear(t+1,0,4),a.setHours(0,0,0,0);const i=it(a),u=w(n,0);u.setFullYear(t,0,4),u.setHours(0,0,0,0);const l=it(u);return n.getTime()>=i.getTime()?t+1:n.getTime()>=l.getTime()?t:t-1}function Ct(e){const r=g(e),n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),+e-+n}function st(e,r){const n=g(e,r?.in);return n.setHours(0,0,0,0),n}function Zt(e,r,n){const[t,a]=I(n?.in,e,r),i=st(t),u=st(a),l=+i-Ct(i),h=+u-Ct(u);return Math.round((l-h)/we)}function er(e,r){const n=qt(e,r),t=w(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),it(t)}function rr(e,r,n){return It(e,r*7,n)}function nr(e,r,n){return Ht(e,r*12,n)}function ar(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=w.bind(null,a));const i=g(a,t);(!n||n<i||isNaN(+i))&&(n=i)}),w(t,n||NaN)}function or(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=w.bind(null,a));const i=g(a,t);(!n||n>i||isNaN(+i))&&(n=i)}),w(t,n||NaN)}function ir(e,r,n){const[t,a]=I(n?.in,e,r);return+st(t)==+st(a)}function Bt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sr(e){return!(!Bt(e)&&typeof e!="number"||isNaN(+g(e)))}function ur(e,r,n){const[t,a]=I(n?.in,e,r),i=t.getFullYear()-a.getFullYear(),u=t.getMonth()-a.getMonth();return i*12+u}function cr(e,r){const n=g(e,r?.in),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function Gt(e,r){const[n,t]=I(e,r.start,r.end);return{start:n,end:t}}function lr(e,r){const{start:n,end:t}=Gt(r?.in,e);let a=+n>+t;const i=a?+n:+t,u=a?t:n;u.setHours(0,0,0,0),u.setDate(1);let l=1;const h=[];for(;+u<=i;)h.push(w(n,u)),u.setMonth(u.getMonth()+l);return a?h.reverse():h}function dr(e,r){const n=g(e,r?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function fr(e,r){const n=g(e,r?.in),t=n.getFullYear();return n.setFullYear(t+1,0,0),n.setHours(23,59,59,999),n}function Xt(e,r){const n=g(e,r?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hr(e,r){const{start:n,end:t}=Gt(r?.in,e);let a=+n>+t;const i=a?+n:+t,u=a?t:n;u.setHours(0,0,0,0),u.setMonth(0,1);let l=1;const h=[];for(;+u<=i;)h.push(w(n,u)),u.setFullYear(u.getFullYear()+l);return a?h.reverse():h}function Qt(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=g(e,r?.in),i=a.getDay(),u=(i<t?-7:0)+6-(i-t);return a.setDate(a.getDate()+u),a.setHours(23,59,59,999),a}function mr(e,r){return Qt(e,{...r,weekStartsOn:1})}function gr(e,r){const n=g(e,r?.in);return Zt(n,Xt(n))+1}function Jt(e,r){const n=g(e,r?.in),t=+it(n)-+er(n);return Math.round(t/zt)+1}function Vt(e,r){const n=g(e,r?.in),t=n.getFullYear(),a=ct(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=w(r?.in||e,0);u.setFullYear(t+1,0,i),u.setHours(0,0,0,0);const l=z(u,r),h=w(r?.in||e,0);h.setFullYear(t,0,i),h.setHours(0,0,0,0);const k=z(h,r);return+n>=+l?t+1:+n>=+k?t:t-1}function pr(e,r){const n=ct(),t=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Vt(e,r),i=w(r?.in||e,0);return i.setFullYear(a,0,t),i.setHours(0,0,0,0),z(i,r)}function Kt(e,r){const n=g(e,r?.in),t=+z(n,r)-+pr(n,r);return Math.round(t/zt)+1}function f(e,r){const n=e<0?"-":"",t=Math.abs(e).toString().padStart(r,"0");return n+t}const P={y(e,r){const n=e.getFullYear(),t=n>0?n:1-n;return f(r==="yy"?t%100:t,r.length)},M(e,r){const n=e.getMonth();return r==="M"?String(n+1):f(n+1,2)},d(e,r){return f(e.getDate(),r.length)},a(e,r){const n=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,r){return f(e.getHours()%12||12,r.length)},H(e,r){return f(e.getHours(),r.length)},m(e,r){return f(e.getMinutes(),r.length)},s(e,r){return f(e.getSeconds(),r.length)},S(e,r){const n=r.length,t=e.getMilliseconds(),a=Math.trunc(t*Math.pow(10,n-3));return f(a,r.length)}},$={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yt={G:function(e,r,n){const t=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return P.y(e,r)},Y:function(e,r,n,t){const a=Vt(e,t),i=a>0?a:1-a;if(r==="YY"){const u=i%100;return f(u,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):f(i,r.length)},R:function(e,r){const n=qt(e);return f(n,r.length)},u:function(e,r){const n=e.getFullYear();return f(n,r.length)},Q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return f(t,2);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})}},q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return f(t,2);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})}},M:function(e,r,n){const t=e.getMonth();switch(r){case"M":case"MM":return P.M(e,r);case"Mo":return n.ordinalNumber(t+1,{unit:"month"});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})}},L:function(e,r,n){const t=e.getMonth();switch(r){case"L":return String(t+1);case"LL":return f(t+1,2);case"Lo":return n.ordinalNumber(t+1,{unit:"month"});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})}},w:function(e,r,n,t){const a=Kt(e,t);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):f(a,r.length)},I:function(e,r,n){const t=Jt(e);return r==="Io"?n.ordinalNumber(t,{unit:"week"}):f(t,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,r)},D:function(e,r,n){const t=gr(e);return r==="Do"?n.ordinalNumber(t,{unit:"dayOfYear"}):f(t,r.length)},E:function(e,r,n){const t=e.getDay();switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})}},e:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return f(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,n){const t=e.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return f(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(t,{width:"short",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})}},a:function(e,r,n){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},b:function(e,r,n){const t=e.getHours();let a;switch(t===12?a=$.noon:t===0?a=$.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,n){const t=e.getHours();let a;switch(t>=17?a=$.evening:t>=12?a=$.afternoon:t>=4?a=$.morning:a=$.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return P.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,r)},K:function(e,r,n){const t=e.getHours()%12;return r==="Ko"?n.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},k:function(e,r,n){let t=e.getHours();return t===0&&(t=24),r==="ko"?n.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,r)},S:function(e,r){return P.S(e,r)},X:function(e,r,n){const t=e.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return jt(t);case"XXXX":case"XX":return _(t);default:return _(t,":")}},x:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"x":return jt(t);case"xxxx":case"xx":return _(t);default:return _(t,":")}},O:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+_t(t,":");default:return"GMT"+_(t,":")}},z:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+_t(t,":");default:return"GMT"+_(t,":")}},t:function(e,r,n){const t=Math.trunc(+e/1e3);return f(t,r.length)},T:function(e,r,n){return f(+e,r.length)}};function _t(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=Math.trunc(t/60),i=t%60;return i===0?n+String(a):n+String(a)+r+f(i,2)}function jt(e,r){return e%60===0?(e>0?"-":"+")+f(Math.abs(e)/60,2):_(e,r)}function _(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=f(Math.trunc(t/60),2),i=f(t%60,2);return n+a+r+i}const Wt=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});default:return r.date({width:"full"})}},te=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});default:return r.time({width:"full"})}},yr=(e,r)=>{const n=e.match(/(P+)(p+)?/)||[],t=n[1],a=n[2];if(!a)return Wt(e,r);let i;switch(t){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Wt(t,r)).replace("{{time}}",te(a,r))},br={p:te,P:yr},vr=/^D+$/,wr=/^Y+$/,kr=["D","DD","YY","YYYY"];function Sr(e){return vr.test(e)}function Mr(e){return wr.test(e)}function Tr(e,r,n){const t=Or(e,r,n);if(console.warn(t),kr.includes(e))throw new RangeError(t)}function Or(e,r,n){const t=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Dr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pr=/^'([^]*?)'?$/,Er=/''/g,Nr=/[a-zA-Z]/;function ot(e,r,n){const t=ct(),a=n?.locale??t.locale??L,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,l=g(e,n?.in);if(!sr(l))throw new RangeError("Invalid time value");let h=r.match(xr).map(y=>{const m=y[0];if(m==="p"||m==="P"){const S=br[m];return S(y,a.formatLong)}return y}).join("").match(Dr).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const m=y[0];if(m==="'")return{isToken:!1,value:Cr(y)};if(Yt[m])return{isToken:!0,value:y};if(m.match(Nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:y}});a.localize.preprocessor&&(h=a.localize.preprocessor(l,h));const k={firstWeekContainsDate:i,weekStartsOn:u,locale:a};return h.map(y=>{if(!y.isToken)return y.value;const m=y.value;(!n?.useAdditionalWeekYearTokens&&Mr(m)||!n?.useAdditionalDayOfYearTokens&&Sr(m))&&Tr(m,r,String(e));const S=Yt[m[0]];return S(l,m,a.localize,k)}).join("")}function Cr(e){const r=e.match(Pr);return r?r[1].replace(Er,"'"):e}function Yr(e,r){const n=g(e,r?.in),t=n.getFullYear(),a=n.getMonth(),i=w(n,0);return i.setFullYear(t,a+1,0),i.setHours(0,0,0,0),i.getDate()}function _r(e,r){return g(e,r?.in).getMonth()}function jr(e,r){return g(e,r?.in).getFullYear()}function Wr(e,r){return+g(e)>+g(r)}function Rr(e,r){return+g(e)<+g(r)}function Fr(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()&&t.getMonth()===a.getMonth()}function Ar(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()}function $r(e,r,n){const t=g(e,n?.in),a=t.getFullYear(),i=t.getDate(),u=w(e,0);u.setFullYear(a,r,15),u.setHours(0,0,0,0);const l=Yr(u);return t.setMonth(r,Math.min(i,l)),t}function Lr(e,r,n){const t=g(e,n?.in);return isNaN(+t)?w(e,NaN):(t.setFullYear(r),t)}const Rt=5,zr=4;function Ur(e,r){const n=r.startOfMonth(e),t=n.getDay()>0?n.getDay():7,a=r.addDays(e,-t+1),i=r.addDays(a,Rt*7-1);return r.getMonth(e)===r.getMonth(i)?Rt:zr}function ee(e,r){const n=r.startOfMonth(e),t=n.getDay();return t===1?n:t===0?r.addDays(n,-6):r.addDays(n,-1*(t-1))}function Ir(e,r){const n=ee(e,r),t=Ur(e,r);return r.addDays(n,t*7-1)}const Hr={...L,labels:{labelDayButton:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(u,l)=>ot(u,l,{locale:L,...n});let i=a(e,"PPPP");return r.today&&(i=`Today, ${i}`),r.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"LLLL yyyy")},labelGridcell:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(u,l)=>ot(u,l,{locale:L,...n});let i=a(e,"PPPP");return r?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"cccc")}}};class ut{constructor(r,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?W.tz(this.options.timeZone):new this.Date,this.newDate=(t,a,i)=>this.overrides?.newDate?this.overrides.newDate(t,a,i):this.options.timeZone?new W(t,a,i,this.options.timeZone):new Date(t,a,i),this.addDays=(t,a)=>this.overrides?.addDays?this.overrides.addDays(t,a):It(t,a),this.addMonths=(t,a)=>this.overrides?.addMonths?this.overrides.addMonths(t,a):Ht(t,a),this.addWeeks=(t,a)=>this.overrides?.addWeeks?this.overrides.addWeeks(t,a):rr(t,a),this.addYears=(t,a)=>this.overrides?.addYears?this.overrides.addYears(t,a):nr(t,a),this.differenceInCalendarDays=(t,a)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(t,a):Zt(t,a),this.differenceInCalendarMonths=(t,a)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(t,a):ur(t,a),this.eachMonthOfInterval=t=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(t):lr(t),this.eachYearOfInterval=t=>{const a=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(t):hr(t),i=new Set(a.map(l=>this.getYear(l)));if(i.size===a.length)return a;const u=[];return i.forEach(l=>{u.push(new Date(l,0,1))}),u},this.endOfBroadcastWeek=t=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(t):Ir(t,this),this.endOfISOWeek=t=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(t):mr(t),this.endOfMonth=t=>this.overrides?.endOfMonth?this.overrides.endOfMonth(t):cr(t),this.endOfWeek=(t,a)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(t,a):Qt(t,this.options),this.endOfYear=t=>this.overrides?.endOfYear?this.overrides.endOfYear(t):fr(t),this.format=(t,a,i)=>{const u=this.overrides?.format?this.overrides.format(t,a,this.options):ot(t,a,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(u):u},this.getISOWeek=t=>this.overrides?.getISOWeek?this.overrides.getISOWeek(t):Jt(t),this.getMonth=(t,a)=>this.overrides?.getMonth?this.overrides.getMonth(t,this.options):_r(t,this.options),this.getYear=(t,a)=>this.overrides?.getYear?this.overrides.getYear(t,this.options):jr(t,this.options),this.getWeek=(t,a)=>this.overrides?.getWeek?this.overrides.getWeek(t,this.options):Kt(t,this.options),this.isAfter=(t,a)=>this.overrides?.isAfter?this.overrides.isAfter(t,a):Wr(t,a),this.isBefore=(t,a)=>this.overrides?.isBefore?this.overrides.isBefore(t,a):Rr(t,a),this.isDate=t=>this.overrides?.isDate?this.overrides.isDate(t):Bt(t),this.isSameDay=(t,a)=>this.overrides?.isSameDay?this.overrides.isSameDay(t,a):ir(t,a),this.isSameMonth=(t,a)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(t,a):Fr(t,a),this.isSameYear=(t,a)=>this.overrides?.isSameYear?this.overrides.isSameYear(t,a):Ar(t,a),this.max=t=>this.overrides?.max?this.overrides.max(t):ar(t),this.min=t=>this.overrides?.min?this.overrides.min(t):or(t),this.setMonth=(t,a)=>this.overrides?.setMonth?this.overrides.setMonth(t,a):$r(t,a),this.setYear=(t,a)=>this.overrides?.setYear?this.overrides.setYear(t,a):Lr(t,a),this.startOfBroadcastWeek=(t,a)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(t,this):ee(t,this),this.startOfDay=t=>this.overrides?.startOfDay?this.overrides.startOfDay(t):st(t),this.startOfISOWeek=t=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(t):it(t),this.startOfMonth=t=>this.overrides?.startOfMonth?this.overrides.startOfMonth(t):dr(t),this.startOfWeek=(t,a)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(t,this.options):z(t,this.options),this.startOfYear=t=>this.overrides?.startOfYear?this.overrides.startOfYear(t):Xt(t),this.options={locale:Hr,...r},this.overrides=n}getDigitMap(){const{numerals:r="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:r}),t={};for(let a=0;a<10;a++)t[a.toString()]=n.format(a);return t}replaceDigits(r){const n=this.getDigitMap();return r.replace(/\d/g,t=>n[t]||t)}formatNumber(r){return this.replaceDigits(r.toString())}getMonthYearOrder(){const r=this.options.locale?.code;return r&&ut.yearFirstLocales.has(r)?"year-first":"month-first"}formatMonthYear(r){const{locale:n,timeZone:t,numerals:a}=this.options,i=n?.code;if(i&&ut.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:t,numberingSystem:a}).format(r)}catch{}const u=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(r,u)}}ut.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new ut;const qr=U.createContext({locale:void 0});function Zr(){return U.useContext(qr)}exports.Button=le;exports._e=pe;exports.buttonVariants=At;exports.cn=Lt;exports.jsxRuntimeExports=Ft;exports.xn=Zr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigtes/ui",
3
- "version": "0.2.12",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -31,7 +31,6 @@
31
31
  "prepublishOnly": "npm run build"
32
32
  },
33
33
  "peerDependencies": {
34
- "@sigtes/hooks": "0.0.1",
35
34
  "@dnd-kit/core": "^6.3.1",
36
35
  "@dnd-kit/modifiers": "^9.0.0",
37
36
  "@dnd-kit/sortable": "^10.0.0",
@@ -47,6 +46,7 @@
47
46
  "@radix-ui/react-separator": "^1.1.7",
48
47
  "@radix-ui/react-slot": "^1.2.3",
49
48
  "@radix-ui/react-tabs": "^1.1.13",
49
+ "@sigtes/hooks": "0.0.1",
50
50
  "@tabler/icons-react": "^3.35.0",
51
51
  "@tailwindcss/vite": "^4.1.13",
52
52
  "@tanstack/react-query": "^5.90.2",
@@ -66,32 +66,33 @@
66
66
  "tailwind-merge": "^3.3.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@chromatic-com/storybook": "^4.1.1",
70
- "@eslint/js": "^9.36.0",
71
- "@storybook/addon-a11y": "^9.1.10",
72
- "@storybook/addon-docs": "^9.1.10",
73
- "@storybook/addon-onboarding": "^9.1.10",
74
- "@storybook/addon-vitest": "^9.1.10",
75
- "@storybook/react-vite": "^9.1.10",
76
- "@types/node": "^24.6.1",
77
- "@types/react": "^19.1.13",
78
- "@types/react-dom": "^19.1.9",
79
- "@vitejs/plugin-react": "^5.0.3",
80
- "@vitest/browser": "^3.2.4",
81
- "@vitest/coverage-v8": "^3.2.4",
82
- "eslint": "^9.36.0",
83
- "eslint-plugin-react-hooks": "^5.2.0",
84
- "eslint-plugin-react-refresh": "^0.4.20",
85
- "eslint-plugin-storybook": "^9.1.10",
86
- "globals": "^16.4.0",
87
- "playwright": "^1.55.1",
69
+ "@chromatic-com/storybook": "^5.0.1",
70
+ "@eslint/js": "^9.39.4",
71
+ "@storybook/addon-a11y": "^10.1.0",
72
+ "@storybook/addon-docs": "^10.1.0",
73
+ "@storybook/addon-onboarding": "^10.1.0",
74
+ "@storybook/addon-vitest": "^10.1.0",
75
+ "@storybook/react-vite": "^10.1.0",
76
+ "@types/node": "^25.3.5",
77
+ "@types/react": "^19.2.14",
78
+ "@types/react-dom": "^19.2.3",
79
+ "@vitejs/plugin-react": "^5.1.4",
80
+ "@vitest/browser": "^4.0.18",
81
+ "@vitest/coverage-v8": "^4.0.18",
82
+ "eslint": "^9.39.4",
83
+ "eslint-plugin-react-hooks": "^7.0.1",
84
+ "eslint-plugin-react-refresh": "^0.5.2",
85
+ "eslint-plugin-storybook": "^10.1.0",
86
+ "globals": "^17.4.0",
87
+ "playwright": "^1.58.2",
88
88
  "rollup-preserve-directives": "^1.1.3",
89
- "storybook": "^9.1.10",
89
+ "storybook": "^10.1.0",
90
90
  "tw-animate-css": "^1.4.0",
91
- "typescript": "~5.8.3",
92
- "typescript-eslint": "^8.44.0",
93
- "vite": "^7.1.7",
91
+ "typescript": "~5.9.3",
92
+ "typescript-eslint": "^8.56.1",
93
+ "vite": "^7.3.1",
94
94
  "vite-plugin-dts": "^4.5.4",
95
- "vitest": "^3.2.4"
95
+ "vitest": "^4.0.18",
96
+ "npm-check-updates": "^19.6.3"
96
97
  }
97
98
  }
@@ -1,43 +0,0 @@
1
- "use client";"use strict";const U=require("react"),ne=require("@radix-ui/react-slot"),ae=require("class-variance-authority"),oe=require("tailwind-merge");require("next-themes");var lt={exports:{}},K={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Mt;function ie(){if(Mt)return K;Mt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:s,ref:a!==void 0?a:null,props:i}}return K.Fragment=r,K.jsx=n,K.jsxs=n,K}var tt={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Tt;function se(){return Tt||(Tt=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===yt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case D:return"Fragment";case P:return"Profiler";case A:return"StrictMode";case ht:return"Suspense";case mt:return"SuspenseList";case pt:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case H:return"Portal";case E:return(o.displayName||"Context")+".Provider";case q:return(o._context.displayName||"Context")+".Consumer";case ft:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case gt:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case Z:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var l=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return l.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),r(o)}}function t(o){if(o===D)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Z)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function a(){var o=N.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(B.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function c(o,u){function l(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}l.isReactWarning=!0,Object.defineProperty(o,"key",{get:l,configurable:!0})}function m(){var o=e(this.type);return X[o]||(X[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function w(o,u,l,d,S,b,Y,j){return l=b.ref,o={$$typeof:O,type:o,key:u,props:b,_owner:S},(l!==void 0?l:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:m}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function y(o,u,l,d,S,b,Y,j){var f=u.children;if(f!==void 0)if(d)if(bt(f)){for(d=0;d<f.length;d++)g(f[d]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(f);if(B.call(u,"key")){f=e(o);var M=Object.keys(u).filter(function(vt){return vt!=="key"});d=0<M.length?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}",V[f+d]||(M=0<M.length?"{"+M.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,d,f,M,f),V[f+d]=!0)}if(f=null,l!==void 0&&(n(l),f=""+l),s(u)&&(n(u.key),f=""+u.key),"key"in u){l={};for(var _ in u)_!=="key"&&(l[_]=u[_])}else l=u;return f&&c(l,typeof o=="function"?o.displayName||o.name||"Unknown":o),w(o,f,b,S,a(),l,Y,j)}function g(o){typeof o=="object"&&o!==null&&o.$$typeof===O&&o._store&&(o._store.validated=1)}var k=U,O=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),E=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),yt=Symbol.for("react.client.reference"),N=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,bt=Array.isArray,C=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(o){return o()}};var G,X={},Q=k.react_stack_bottom_frame.bind(k,i)(),J=C(t(i)),V={};tt.Fragment=D,tt.jsx=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!1,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)},tt.jsxs=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!0,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)}})()),tt}var Ot;function ue(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?lt.exports=ie():lt.exports=se()),lt.exports}var At=ue();const $t=ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Lt(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=Lt(e[r]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function ce(){for(var e,r,n=0,t="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=Lt(e))&&(t&&(t+=" "),t+=r);return t}function zt(...e){return oe.twMerge(ce(e))}function le({className:e,variant:r,size:n,asChild:t=!1,...a}){const i=t?ne.Slot:"button";return At.jsx(i,{"data-slot":"button",className:zt($t({variant:r,size:n,className:e})),...a})}var wt={exports:{}},et={};/**
23
- * @license React
24
- * react-jsx-runtime.production.js
25
- *
26
- * Copyright (c) Meta Platforms, Inc. and affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */var Dt;function de(){if(Dt)return et;Dt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:s,ref:a!==void 0?a:null,props:i}}return et.Fragment=r,et.jsx=n,et.jsxs=n,et}var dt={};/**
31
- * @license React
32
- * react-jsx-runtime.development.js
33
- *
34
- * Copyright (c) Meta Platforms, Inc. and affiliates.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE file in the root directory of this source tree.
38
- */var xt;function fe(){return xt||(xt=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===yt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case D:return"Fragment";case P:return"Profiler";case A:return"StrictMode";case ht:return"Suspense";case mt:return"SuspenseList";case pt:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case H:return"Portal";case E:return(o.displayName||"Context")+".Provider";case q:return(o._context.displayName||"Context")+".Consumer";case ft:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case gt:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case Z:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var l=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return l.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),r(o)}}function t(o){if(o===D)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Z)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function a(){var o=N.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(B.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function c(o,u){function l(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}l.isReactWarning=!0,Object.defineProperty(o,"key",{get:l,configurable:!0})}function m(){var o=e(this.type);return X[o]||(X[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function w(o,u,l,d,S,b,Y,j){return l=b.ref,o={$$typeof:O,type:o,key:u,props:b,_owner:S},(l!==void 0?l:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:m}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function y(o,u,l,d,S,b,Y,j){var f=u.children;if(f!==void 0)if(d)if(bt(f)){for(d=0;d<f.length;d++)g(f[d]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(f);if(B.call(u,"key")){f=e(o);var M=Object.keys(u).filter(function(vt){return vt!=="key"});d=0<M.length?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}",V[f+d]||(M=0<M.length?"{"+M.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
39
- let props = %s;
40
- <%s {...props} />
41
- React keys must be passed directly to JSX without using spread:
42
- let props = %s;
43
- <%s key={someKey} {...props} />`,d,f,M,f),V[f+d]=!0)}if(f=null,l!==void 0&&(n(l),f=""+l),s(u)&&(n(u.key),f=""+u.key),"key"in u){l={};for(var _ in u)_!=="key"&&(l[_]=u[_])}else l=u;return f&&c(l,typeof o=="function"?o.displayName||o.name||"Unknown":o),w(o,f,b,S,a(),l,Y,j)}function g(o){typeof o=="object"&&o!==null&&o.$$typeof===O&&o._store&&(o._store.validated=1)}var k=U,O=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),E=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),yt=Symbol.for("react.client.reference"),N=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,bt=Array.isArray,C=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(o){return o()}};var G,X={},Q=k.react_stack_bottom_frame.bind(k,i)(),J=C(t(i)),V={};dt.Fragment=D,dt.jsx=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!1,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)},dt.jsxs=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!0,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)}})()),dt}var Pt;function he(){return Pt||(Pt=1,process.env.NODE_ENV==="production"?wt.exports=de():wt.exports=fe()),wt.exports}he();const me={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]},ge=U.createContext({user:me,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});function pe(){return U.useContext(ge)}function kt(e){return(r={})=>{const n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function rt(e){return(r,n)=>{const t=n?.context?String(n.context):"standalone";let a;if(t==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):s;a=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(r):r;return a[i]}}function nt(e){return(r,n={})=>{const t=n.width,a=t&&e.matchPatterns[t]||e.matchPatterns[e.defaultMatchWidth],i=r.match(a);if(!i)return null;const s=i[0],c=t&&e.parsePatterns[t]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(c)?be(c,g=>g.test(s)):ye(c,g=>g.test(s));let w;w=e.valueCallback?e.valueCallback(m):m,w=n.valueCallback?n.valueCallback(w):w;const y=r.slice(s.length);return{value:w,rest:y}}}function ye(e,r){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r(e[n]))return n}function be(e,r){for(let n=0;n<e.length;n++)if(r(e[n]))return n}function ve(e){return(r,n={})=>{const t=r.match(e.matchPattern);if(!t)return null;const a=t[0],i=r.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=r.slice(a.length);return{value:s,rest:c}}}const Ut=6048e5,we=864e5,Et=Symbol.for("constructDateFrom");function v(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Et in e?e[Et](r):e instanceof Date?new e.constructor(r):new Date(r)}function I(e,...r){const n=v.bind(null,r.find(t=>typeof t=="object"));return r.map(n)}let ke={};function ct(){return ke}function p(e,r){return v(r||e,e)}function z(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=p(e,r?.in),i=a.getDay(),s=(i<t?7:0)+i-t;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}const Se={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"}},Me=(e,r,n)=>{let t;const a=Se[e];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",r.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+t:t+" ago":t},Te={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oe=(e,r,n,t)=>Te[e],De={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pe={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"]},Ee={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"]},Ne={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"}},Ce={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"}},Ye=(e,r)=>{const n=Number(e),t=n%100;if(t>20||t<10)switch(t%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},je={ordinalNumber:Ye,era:rt({values:De,defaultWidth:"wide"}),quarter:rt({values:xe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:rt({values:Pe,defaultWidth:"wide"}),day:rt({values:Ee,defaultWidth:"wide"}),dayPeriod:rt({values:Ne,defaultWidth:"wide",formattingValues:Ce,defaultFormattingWidth:"wide"})},_e=/^(\d+)(th|st|nd|rd)?/i,We=/\d+/i,Re={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},Fe={any:[/^b/i,/^(a|c)/i]},Ae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$e={any:[/1/i,/2/i,/3/i,/4/i]},Le={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},ze={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]},Ue={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},Ie={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]},He={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},qe={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}},Ze={ordinalNumber:ve({matchPattern:_e,parsePattern:We,valueCallback:e=>parseInt(e,10)}),era:nt({matchPatterns:Re,defaultMatchWidth:"wide",parsePatterns:Fe,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Ae,defaultMatchWidth:"wide",parsePatterns:$e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:nt({matchPatterns:Le,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),day:nt({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Ie,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:He,defaultMatchWidth:"any",parsePatterns:qe,defaultParseWidth:"any"})},Be={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qe={date:kt({formats:Be,defaultWidth:"full"}),time:kt({formats:Ge,defaultWidth:"full"}),dateTime:kt({formats:Xe,defaultWidth:"full"})},L={code:"en-US",formatDistance:Me,formatLong:Qe,formatRelative:Oe,localize:je,match:Ze,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Je(e,r,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(r).split(/\s/g).slice(2).join(" ")}const Ve={},at={};function R(e,r){try{const n=(Ve[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];return n in at?at[n]:Nt(n,n.split(":"))}catch{if(e in at)return at[e];const n=e?.match(Ke);return n?Nt(e,n.slice(1)):NaN}}const Ke=/([+-]\d\d):?(\d\d)?/;function Nt(e,r){const n=+(r[0]||0),t=+(r[1]||0),a=+(r[2]||0)/60;return at[e]=n*60+t>0?n*60+t+a:n*60-t-a}class T extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(R(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),It(this),St(this)):this.setTime(Date.now())}static tz(r,...n){return n.length?new T(...n,r):new T(Date.now(),r)}withTimeZone(r){return new T(+this,r)}getTimezoneOffset(){const r=-R(this.timeZone,this);return r>0?Math.floor(r):Math.ceil(r)}setTime(r){return Date.prototype.setTime.apply(this,arguments),St(this),+this}[Symbol.for("constructDateFrom")](r){return new T(+new Date(r),this.timeZone)}}const Ct=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Ct.test(e))return;const r=e.replace(Ct,"$1UTC");T.prototype[r]&&(e.startsWith("get")?T.prototype[e]=function(){return this.internal[r]()}:(T.prototype[e]=function(){return Date.prototype[r].apply(this.internal,arguments),tr(this),+this},T.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),St(this),+this}))});function St(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-R(e.timeZone,e)*60))}function tr(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),It(e)}function It(e){const r=R(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),t=new Date(+e);t.setUTCHours(t.getUTCHours()-1);const a=-new Date(+e).getTimezoneOffset(),i=-new Date(+t).getTimezoneOffset(),s=a-i,c=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&c&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const m=a-n;m&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const w=new Date(+e);w.setUTCSeconds(0);const y=a>0?w.getSeconds():(w.getSeconds()-60)%60,g=Math.round(-(R(e.timeZone,e)*60))%60;(g||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+g),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+y));const k=R(e.timeZone,e),O=k>0?Math.floor(k):Math.ceil(k),H=-new Date(+e).getTimezoneOffset()-O,D=O!==n,A=H-m;if(D&&A){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+A);const P=R(e.timeZone,e),q=P>0?Math.floor(P):Math.ceil(P),E=O-q;E&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+E),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+E))}}class F extends T{static tz(r,...n){return n.length?new F(...n,r):new F(Date.now(),r)}toISOString(){const[r,n,t]=this.tzComponents(),a=`${r}${n}:${t}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[r,n,t,a]=this.internal.toUTCString().split(" ");return`${r?.slice(0,-1)} ${t} ${n} ${a}`}toTimeString(){const r=this.internal.toUTCString().split(" ")[4],[n,t,a]=this.tzComponents();return`${r} GMT${n}${t}${a} (${Je(this.timeZone,this)})`}toLocaleString(r,n){return Date.prototype.toLocaleString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(r,n){return Date.prototype.toLocaleDateString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(r,n){return Date.prototype.toLocaleTimeString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const r=this.getTimezoneOffset(),n=r>0?"-":"+",t=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),a=String(Math.abs(r)%60).padStart(2,"0");return[n,t,a]}withTimeZone(r){return new F(+this,r)}[Symbol.for("constructDateFrom")](r){return new F(+new Date(r),this.timeZone)}}function Ht(e,r,n){const t=p(e,n?.in);return isNaN(r)?v(e,NaN):(r&&t.setDate(t.getDate()+r),t)}function qt(e,r,n){const t=p(e,n?.in);if(isNaN(r))return v(e,NaN);if(!r)return t;const a=t.getDate(),i=v(e,t.getTime());i.setMonth(t.getMonth()+r+1,0);const s=i.getDate();return a>=s?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function it(e,r){return z(e,{...r,weekStartsOn:1})}function Zt(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=v(n,0);a.setFullYear(t+1,0,4),a.setHours(0,0,0,0);const i=it(a),s=v(n,0);s.setFullYear(t,0,4),s.setHours(0,0,0,0);const c=it(s);return n.getTime()>=i.getTime()?t+1:n.getTime()>=c.getTime()?t:t-1}function Yt(e){const r=p(e),n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),+e-+n}function st(e,r){const n=p(e,r?.in);return n.setHours(0,0,0,0),n}function Bt(e,r,n){const[t,a]=I(n?.in,e,r),i=st(t),s=st(a),c=+i-Yt(i),m=+s-Yt(s);return Math.round((c-m)/we)}function er(e,r){const n=Zt(e,r),t=v(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),it(t)}function rr(e,r,n){return Ht(e,r*7,n)}function nr(e,r,n){return qt(e,r*12,n)}function ar(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=v.bind(null,a));const i=p(a,t);(!n||n<i||isNaN(+i))&&(n=i)}),v(t,n||NaN)}function or(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=v.bind(null,a));const i=p(a,t);(!n||n>i||isNaN(+i))&&(n=i)}),v(t,n||NaN)}function ir(e,r,n){const[t,a]=I(n?.in,e,r);return+st(t)==+st(a)}function Gt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sr(e){return!(!Gt(e)&&typeof e!="number"||isNaN(+p(e)))}function ur(e,r,n){const[t,a]=I(n?.in,e,r),i=t.getFullYear()-a.getFullYear(),s=t.getMonth()-a.getMonth();return i*12+s}function cr(e,r){const n=p(e,r?.in),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function Xt(e,r){const[n,t]=I(e,r.start,r.end);return{start:n,end:t}}function lr(e,r){const{start:n,end:t}=Xt(r?.in,e);let a=+n>+t;const i=a?+n:+t,s=a?t:n;s.setHours(0,0,0,0),s.setDate(1);let c=1;const m=[];for(;+s<=i;)m.push(v(n,s)),s.setMonth(s.getMonth()+c);return a?m.reverse():m}function dr(e,r){const n=p(e,r?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function fr(e,r){const n=p(e,r?.in),t=n.getFullYear();return n.setFullYear(t+1,0,0),n.setHours(23,59,59,999),n}function Qt(e,r){const n=p(e,r?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hr(e,r){const{start:n,end:t}=Xt(r?.in,e);let a=+n>+t;const i=a?+n:+t,s=a?t:n;s.setHours(0,0,0,0),s.setMonth(0,1);let c=1;const m=[];for(;+s<=i;)m.push(v(n,s)),s.setFullYear(s.getFullYear()+c);return a?m.reverse():m}function Jt(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=p(e,r?.in),i=a.getDay(),s=(i<t?-7:0)+6-(i-t);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function mr(e,r){return Jt(e,{...r,weekStartsOn:1})}function gr(e,r){const n=p(e,r?.in);return Bt(n,Qt(n))+1}function Vt(e,r){const n=p(e,r?.in),t=+it(n)-+er(n);return Math.round(t/Ut)+1}function Kt(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=ct(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=v(r?.in||e,0);s.setFullYear(t+1,0,i),s.setHours(0,0,0,0);const c=z(s,r),m=v(r?.in||e,0);m.setFullYear(t,0,i),m.setHours(0,0,0,0);const w=z(m,r);return+n>=+c?t+1:+n>=+w?t:t-1}function pr(e,r){const n=ct(),t=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Kt(e,r),i=v(r?.in||e,0);return i.setFullYear(a,0,t),i.setHours(0,0,0,0),z(i,r)}function te(e,r){const n=p(e,r?.in),t=+z(n,r)-+pr(n,r);return Math.round(t/Ut)+1}function h(e,r){const n=e<0?"-":"",t=Math.abs(e).toString().padStart(r,"0");return n+t}const x={y(e,r){const n=e.getFullYear(),t=n>0?n:1-n;return h(r==="yy"?t%100:t,r.length)},M(e,r){const n=e.getMonth();return r==="M"?String(n+1):h(n+1,2)},d(e,r){return h(e.getDate(),r.length)},a(e,r){const n=e.getHours()/12>=1?"pm":"am";switch(r){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,r){return h(e.getHours()%12||12,r.length)},H(e,r){return h(e.getHours(),r.length)},m(e,r){return h(e.getMinutes(),r.length)},s(e,r){return h(e.getSeconds(),r.length)},S(e,r){const n=r.length,t=e.getMilliseconds(),a=Math.trunc(t*Math.pow(10,n-3));return h(a,r.length)}},$={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jt={G:function(e,r,n){const t=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return x.y(e,r)},Y:function(e,r,n,t){const a=Kt(e,t),i=a>0?a:1-a;if(r==="YY"){const s=i%100;return h(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):h(i,r.length)},R:function(e,r){const n=Zt(e);return h(n,r.length)},u:function(e,r){const n=e.getFullYear();return h(n,r.length)},Q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return h(t,2);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})}},q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return h(t,2);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})}},M:function(e,r,n){const t=e.getMonth();switch(r){case"M":case"MM":return x.M(e,r);case"Mo":return n.ordinalNumber(t+1,{unit:"month"});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})}},L:function(e,r,n){const t=e.getMonth();switch(r){case"L":return String(t+1);case"LL":return h(t+1,2);case"Lo":return n.ordinalNumber(t+1,{unit:"month"});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})}},w:function(e,r,n,t){const a=te(e,t);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):h(a,r.length)},I:function(e,r,n){const t=Vt(e);return r==="Io"?n.ordinalNumber(t,{unit:"week"}):h(t,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):x.d(e,r)},D:function(e,r,n){const t=gr(e);return r==="Do"?n.ordinalNumber(t,{unit:"dayOfYear"}):h(t,r.length)},E:function(e,r,n){const t=e.getDay();switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})}},e:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return h(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return h(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,n){const t=e.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return h(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(t,{width:"short",context:"formatting"});case"iiii":default:return n.day(t,{width:"wide",context:"formatting"})}},a:function(e,r,n){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},b:function(e,r,n){const t=e.getHours();let a;switch(t===12?a=$.noon:t===0?a=$.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,n){const t=e.getHours();let a;switch(t>=17?a=$.evening:t>=12?a=$.afternoon:t>=4?a=$.morning:a=$.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return x.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):x.H(e,r)},K:function(e,r,n){const t=e.getHours()%12;return r==="Ko"?n.ordinalNumber(t,{unit:"hour"}):h(t,r.length)},k:function(e,r,n){let t=e.getHours();return t===0&&(t=24),r==="ko"?n.ordinalNumber(t,{unit:"hour"}):h(t,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):x.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):x.s(e,r)},S:function(e,r){return x.S(e,r)},X:function(e,r,n){const t=e.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return Wt(t);case"XXXX":case"XX":return W(t);case"XXXXX":case"XXX":default:return W(t,":")}},x:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"x":return Wt(t);case"xxxx":case"xx":return W(t);case"xxxxx":case"xxx":default:return W(t,":")}},O:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+_t(t,":");case"OOOO":default:return"GMT"+W(t,":")}},z:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+_t(t,":");case"zzzz":default:return"GMT"+W(t,":")}},t:function(e,r,n){const t=Math.trunc(+e/1e3);return h(t,r.length)},T:function(e,r,n){return h(+e,r.length)}};function _t(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=Math.trunc(t/60),i=t%60;return i===0?n+String(a):n+String(a)+r+h(i,2)}function Wt(e,r){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):W(e,r)}function W(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=h(Math.trunc(t/60),2),i=h(t%60,2);return n+a+r+i}const Rt=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},ee=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},yr=(e,r)=>{const n=e.match(/(P+)(p+)?/)||[],t=n[1],a=n[2];if(!a)return Rt(e,r);let i;switch(t){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Rt(t,r)).replace("{{time}}",ee(a,r))},br={p:ee,P:yr},vr=/^D+$/,wr=/^Y+$/,kr=["D","DD","YY","YYYY"];function Sr(e){return vr.test(e)}function Mr(e){return wr.test(e)}function Tr(e,r,n){const t=Or(e,r,n);if(console.warn(t),kr.includes(e))throw new RangeError(t)}function Or(e,r,n){const t=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Dr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pr=/^'([^]*?)'?$/,Er=/''/g,Nr=/[a-zA-Z]/;function ot(e,r,n){const t=ct(),a=n?.locale??t.locale??L,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,c=p(e,n?.in);if(!sr(c))throw new RangeError("Invalid time value");let m=r.match(xr).map(y=>{const g=y[0];if(g==="p"||g==="P"){const k=br[g];return k(y,a.formatLong)}return y}).join("").match(Dr).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const g=y[0];if(g==="'")return{isToken:!1,value:Cr(y)};if(jt[g])return{isToken:!0,value:y};if(g.match(Nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:y}});a.localize.preprocessor&&(m=a.localize.preprocessor(c,m));const w={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return m.map(y=>{if(!y.isToken)return y.value;const g=y.value;(!n?.useAdditionalWeekYearTokens&&Mr(g)||!n?.useAdditionalDayOfYearTokens&&Sr(g))&&Tr(g,r,String(e));const k=jt[g[0]];return k(c,g,a.localize,w)}).join("")}function Cr(e){const r=e.match(Pr);return r?r[1].replace(Er,"'"):e}function Yr(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=n.getMonth(),i=v(n,0);return i.setFullYear(t,a+1,0),i.setHours(0,0,0,0),i.getDate()}function jr(e,r){return p(e,r?.in).getMonth()}function _r(e,r){return p(e,r?.in).getFullYear()}function Wr(e,r){return+p(e)>+p(r)}function Rr(e,r){return+p(e)<+p(r)}function Fr(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()&&t.getMonth()===a.getMonth()}function Ar(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()}function $r(e,r,n){const t=p(e,n?.in),a=t.getFullYear(),i=t.getDate(),s=v(e,0);s.setFullYear(a,r,15),s.setHours(0,0,0,0);const c=Yr(s);return t.setMonth(r,Math.min(i,c)),t}function Lr(e,r,n){const t=p(e,n?.in);return isNaN(+t)?v(e,NaN):(t.setFullYear(r),t)}const Ft=5,zr=4;function Ur(e,r){const n=r.startOfMonth(e),t=n.getDay()>0?n.getDay():7,a=r.addDays(e,-t+1),i=r.addDays(a,Ft*7-1);return r.getMonth(e)===r.getMonth(i)?Ft:zr}function re(e,r){const n=r.startOfMonth(e),t=n.getDay();return t===1?n:t===0?r.addDays(n,-6):r.addDays(n,-1*(t-1))}function Ir(e,r){const n=re(e,r),t=Ur(e,r);return r.addDays(n,t*7-1)}const Hr={...L,labels:{labelDayButton:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(s,c)=>ot(s,c,{locale:L,...n});let i=a(e,"PPPP");return r.today&&(i=`Today, ${i}`),r.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"LLLL yyyy")},labelGridcell:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(s,c)=>ot(s,c,{locale:L,...n});let i=a(e,"PPPP");return r?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"cccc")}}};class ut{constructor(r,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?F.tz(this.options.timeZone):new this.Date,this.newDate=(t,a,i)=>this.overrides?.newDate?this.overrides.newDate(t,a,i):this.options.timeZone?new F(t,a,i,this.options.timeZone):new Date(t,a,i),this.addDays=(t,a)=>this.overrides?.addDays?this.overrides.addDays(t,a):Ht(t,a),this.addMonths=(t,a)=>this.overrides?.addMonths?this.overrides.addMonths(t,a):qt(t,a),this.addWeeks=(t,a)=>this.overrides?.addWeeks?this.overrides.addWeeks(t,a):rr(t,a),this.addYears=(t,a)=>this.overrides?.addYears?this.overrides.addYears(t,a):nr(t,a),this.differenceInCalendarDays=(t,a)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(t,a):Bt(t,a),this.differenceInCalendarMonths=(t,a)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(t,a):ur(t,a),this.eachMonthOfInterval=t=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(t):lr(t),this.eachYearOfInterval=t=>{const a=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(t):hr(t),i=new Set(a.map(c=>this.getYear(c)));if(i.size===a.length)return a;const s=[];return i.forEach(c=>{s.push(new Date(c,0,1))}),s},this.endOfBroadcastWeek=t=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(t):Ir(t,this),this.endOfISOWeek=t=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(t):mr(t),this.endOfMonth=t=>this.overrides?.endOfMonth?this.overrides.endOfMonth(t):cr(t),this.endOfWeek=(t,a)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(t,a):Jt(t,this.options),this.endOfYear=t=>this.overrides?.endOfYear?this.overrides.endOfYear(t):fr(t),this.format=(t,a,i)=>{const s=this.overrides?.format?this.overrides.format(t,a,this.options):ot(t,a,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=t=>this.overrides?.getISOWeek?this.overrides.getISOWeek(t):Vt(t),this.getMonth=(t,a)=>this.overrides?.getMonth?this.overrides.getMonth(t,this.options):jr(t,this.options),this.getYear=(t,a)=>this.overrides?.getYear?this.overrides.getYear(t,this.options):_r(t,this.options),this.getWeek=(t,a)=>this.overrides?.getWeek?this.overrides.getWeek(t,this.options):te(t,this.options),this.isAfter=(t,a)=>this.overrides?.isAfter?this.overrides.isAfter(t,a):Wr(t,a),this.isBefore=(t,a)=>this.overrides?.isBefore?this.overrides.isBefore(t,a):Rr(t,a),this.isDate=t=>this.overrides?.isDate?this.overrides.isDate(t):Gt(t),this.isSameDay=(t,a)=>this.overrides?.isSameDay?this.overrides.isSameDay(t,a):ir(t,a),this.isSameMonth=(t,a)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(t,a):Fr(t,a),this.isSameYear=(t,a)=>this.overrides?.isSameYear?this.overrides.isSameYear(t,a):Ar(t,a),this.max=t=>this.overrides?.max?this.overrides.max(t):ar(t),this.min=t=>this.overrides?.min?this.overrides.min(t):or(t),this.setMonth=(t,a)=>this.overrides?.setMonth?this.overrides.setMonth(t,a):$r(t,a),this.setYear=(t,a)=>this.overrides?.setYear?this.overrides.setYear(t,a):Lr(t,a),this.startOfBroadcastWeek=(t,a)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(t,this):re(t,this),this.startOfDay=t=>this.overrides?.startOfDay?this.overrides.startOfDay(t):st(t),this.startOfISOWeek=t=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(t):it(t),this.startOfMonth=t=>this.overrides?.startOfMonth?this.overrides.startOfMonth(t):dr(t),this.startOfWeek=(t,a)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(t,this.options):z(t,this.options),this.startOfYear=t=>this.overrides?.startOfYear?this.overrides.startOfYear(t):Qt(t),this.options={locale:Hr,...r},this.overrides=n}getDigitMap(){const{numerals:r="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:r}),t={};for(let a=0;a<10;a++)t[a.toString()]=n.format(a);return t}replaceDigits(r){const n=this.getDigitMap();return r.replace(/\d/g,t=>n[t]||t)}formatNumber(r){return this.replaceDigits(r.toString())}getMonthYearOrder(){const r=this.options.locale?.code;return r&&ut.yearFirstLocales.has(r)?"year-first":"month-first"}formatMonthYear(r){const{locale:n,timeZone:t,numerals:a}=this.options,i=n?.code;if(i&&ut.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:t,numberingSystem:a}).format(r)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(r,s)}}ut.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new ut;const qr=U.createContext({locale:void 0});function Zr(){return U.useContext(qr)}exports.Button=le;exports._e=pe;exports.buttonVariants=$t;exports.cn=zt;exports.jsxRuntimeExports=At;exports.xn=Zr;