@sigtes/ui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +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 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;