@js-smart/react-kit 5.1.0 → 5.1.2-rc.1

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -226,4 +226,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
226
226
  * LICENSE.md file in the root directory of this source tree.
227
227
  *
228
228
  * @license MIT
229
- */function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Li(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const kr="get",Mr="application/x-www-form-urlencoded";function so(e){return e!=null&&typeof e.tagName=="string"}function fy(e){return so(e)&&e.tagName.toLowerCase()==="button"}function py(e){return so(e)&&e.tagName.toLowerCase()==="form"}function my(e){return so(e)&&e.tagName.toLowerCase()==="input"}function hy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gy(e,t){return e.button===0&&(!t||t==="_self")&&!hy(e)}let wr=null;function yy(){if(wr===null)try{new FormData(document.createElement("form"),0),wr=!1}catch{wr=!0}return wr}const by=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oo(e){return e!=null&&!by.has(e)?(process.env.NODE_ENV!=="production"&&lr(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Mr+'"')),null):e}function vy(e,t){let n,r,o,i,s;if(py(e)){let c=e.getAttribute("action");r=c?vn(c,t):null,n=e.getAttribute("method")||kr,o=Oo(e.getAttribute("enctype"))||Mr,i=new FormData(e)}else if(fy(e)||my(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?vn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||kr,o=Oo(e.getAttribute("formenctype"))||Oo(c.getAttribute("enctype"))||Mr,i=new FormData(c,e),!yy()){let{name:u,type:d,value:p}=e;if(d==="image"){let g=u?u+".":"";i.append(g+"x","0"),i.append(g+"y","0")}else u&&i.append(u,p)}}else{if(so(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kr,r=null,o=Mr,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}const xy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ey=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],wy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Sy="6";try{window.__reactRouterVersion=Sy}catch{}const Yc=w.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Yc.displayName="ViewTransition");const Ty=w.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ty.displayName="Fetchers");process.env.NODE_ENV;const Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=Li(t,xy),{basename:v}=w.useContext(Ct),y,h=!1;if(typeof u=="string"&&Oy.test(u)&&(y=u,Cy))try{let E=new URL(window.location.href),x=u.startsWith("//")?new URL(E.protocol+u):new URL(u),m=vn(x.pathname,v);x.origin===E.origin&&m!=null?u=m+x.search+x.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&lr(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=iy(u,{relative:o}),S=My(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:p});function T(E){r&&r(E),E.defaultPrevented||S(E)}return w.createElement("a",xn({},g,{href:y||b,onClick:h||i?r:T,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Bi.displayName="Link");const Ry=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:c,to:l,viewTransition:u,children:d}=t,p=Li(t,Ey),g=dr(l,{relative:p.relative}),v=ur(),y=w.useContext(Bc),{navigator:h,basename:b}=w.useContext(Ct),S=y!=null&&jy(g)&&u===!0,T=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,E=v.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(E=E.toLowerCase(),x=x?x.toLowerCase():null,T=T.toLowerCase()),x&&b&&(x=vn(x,b)||x);const m=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=E===T||!s&&E.startsWith(T)&&E.charAt(m)==="/",R=x!=null&&(x===T||!s&&x.startsWith(T)&&x.charAt(T.length)==="/"),_={isActive:P,isPending:R,isTransitioning:S},N=P?r:void 0,f;typeof i=="function"?f=i(_):f=[i,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(_):c;return w.createElement(Bi,xn({},p,{"aria-current":N,className:f,ref:n,style:$,to:l,viewTransition:u}),typeof d=="function"?d(_):d)});process.env.NODE_ENV!=="production"&&(Ry.displayName="NavLink");const Py=w.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:c=kr,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:g}=e,v=Li(e,wy),y=Dy(),h=Iy(l,{relative:d}),b=c.toLowerCase()==="get"?"get":"post",S=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let E=T.nativeEvent.submitter,x=(E==null?void 0:E.getAttribute("formmethod"))||c;y(E||T.currentTarget,{fetcherKey:n,method:x,navigate:r,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g})};return w.createElement("form",xn({ref:t,method:b,action:h,onSubmit:o?u:S},v))});process.env.NODE_ENV!=="production"&&(Py.displayName="Form");process.env.NODE_ENV;var Vr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vr||(Vr={}));var us;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(us||(us={}));function ky(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Hc(e){let t=w.useContext(ao);return t||(process.env.NODE_ENV!=="production"?Ce(!1,ky(e)):Ce(!1)),t}function My(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:c}=t===void 0?{}:t,l=ay(),u=ur(),d=dr(e,{relative:s});return w.useCallback(p=>{if(gy(p,n)){p.preventDefault();let g=r!==void 0?r:Ko(u)===Ko(d);l(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:c})}},[u,l,d,r,o,n,e,i,s,c])}function $y(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ny=0,Ay=()=>"__"+String(++Ny)+"__";function Dy(){let{router:e}=Hc(Vr.UseSubmit),{basename:t}=w.useContext(Ct),n=uy();return w.useCallback(function(r,o){o===void 0&&(o={}),$y();let{action:i,method:s,encType:c,formData:l,body:u}=vy(r,t);if(o.navigate===!1){let d=o.fetcherKey||Ay();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Iy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=w.useContext(Ct),o=w.useContext(wn);o||(process.env.NODE_ENV!=="production"?Ce(!1,"useFormAction must be used inside a RouteContext"):Ce(!1));let[i]=o.matches.slice(-1),s=xn({},dr(e||".",{relative:n})),c=ur();if(e==null){s.search=c.search;let l=new URLSearchParams(s.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(g=>g).forEach(g=>l.append("index",g));let p=l.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Di([r,s.pathname])),Ko(s)}function jy(e,t){t===void 0&&(t={});let n=w.useContext(Yc);n==null&&(process.env.NODE_ENV!=="production"?Ce(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ce(!1));let{basename:r}=Hc(Vr.useViewTransitionState),o=dr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=vn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=vn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ls(o.pathname,s)!=null||ls(o.pathname,i)!=null}function _y(e){return C.jsx(Ac,{component:Bi,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ly(){return C.jsx("div",{style:{margin:"1.5rem"},className:"custom-flex-justify-center",children:C.jsx(Pi,{})})}function By(e){const{onClose:t,title:n,message:r,open:o,...i}=e;return C.jsxs(Pc,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[C.jsx($c,{children:n??"Confirm"}),C.jsx(Mc,{dividers:!0,children:r}),C.jsxs(kc,{children:[C.jsx(Et,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),C.jsx(Et,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Fy(e){const[t,n]=he.useState(!0),[r]=he.useState(e.dismissible??!0),[o]=he.useState(e.dismissOnTimeOut??!0),[i]=he.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},i),C.jsx("div",{children:t&&C.jsx(pn,{action:r?C.jsx(it,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:C.jsx(Ai,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const Wy=$e(C.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Vy(e){return C.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,C.jsx(Wr,{sx:{fontSize:"1.1rem",mx:.75},component:Wy}),e.children]})}function zy(e){return e.condition===void 0||!e.condition?null:e.children}function Uy(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}const qc=6048e5,Yy=864e5,Gc=6e4,Kc=36e5,ds=Symbol.for("constructDateFrom");function wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function ze(e,t){return wt(t||e,e)}let Hy={};function co(){return Hy}function er(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=ze(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function zr(e,t){return er(e,{...t,weekStartsOn:1})}function Xc(e,t){const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=zr(o),s=wt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=zr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fs(e){const t=ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function qy(e,...t){const n=wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ps(e,t){const n=ze(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Gy(e,t,n){const[r,o]=qy(n==null?void 0:n.in,e,t),i=ps(r),s=ps(o),c=+i-fs(i),l=+s-fs(s);return Math.round((c-l)/Yy)}function Ky(e,t){const n=Xc(e,t),r=wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zr(r)}function Xy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qy(e){return!(!Xy(e)&&typeof e!="number"||isNaN(+ze(e)))}function Jy(e,t){const n=ze(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Zy={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"}},eb=(e,t,n)=>{let r;const o=Zy[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ro(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const tb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ob={date:Ro({formats:tb,defaultWidth:"full"}),time:Ro({formats:nb,defaultWidth:"full"}),dateTime:Ro({formats:rb,defaultWidth:"full"})},ib={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ab=(e,t,n,r)=>ib[e];function Mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const sb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lb={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"]},ub={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"]},db={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"}},fb={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"}},pb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mb={ordinalNumber:pb,era:Mn({values:sb,defaultWidth:"wide"}),quarter:Mn({values:cb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mn({values:lb,defaultWidth:"wide"}),day:Mn({values:ub,defaultWidth:"wide"}),dayPeriod:Mn({values:db,defaultWidth:"wide",formattingValues:fb,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?gb(c,p=>p.test(s)):hb(c,p=>p.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function hb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function gb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const bb=/^(\d+)(th|st|nd|rd)?/i,vb=/\d+/i,xb={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},Eb={any:[/^b/i,/^(a|c)/i]},wb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Sb={any:[/1/i,/2/i,/3/i,/4/i]},Tb={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},Cb={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]},Ob={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},Rb={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]},Pb={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},kb={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}},Mb={ordinalNumber:yb({matchPattern:bb,parsePattern:vb,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:xb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:$n({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:Sb,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Cb,defaultParseWidth:"any"}),day:$n({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Rb,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:Pb,defaultMatchWidth:"any",parsePatterns:kb,defaultParseWidth:"any"})},$b={code:"en-US",formatDistance:eb,formatLong:ob,formatRelative:ab,localize:mb,match:Mb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nb(e,t){const n=ze(e,t==null?void 0:t.in);return Gy(n,Jy(n))+1}function Ab(e,t){const n=ze(e,t==null?void 0:t.in),r=+zr(n)-+Ky(n);return Math.round(r/qc)+1}function Qc(e,t){var d,p,g,v;const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=co(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(g=o.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,s=wt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=er(s,t),l=wt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return+n>=+c?r+1:+n>=+u?r:r-1}function Db(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=Qc(e,t),i=wt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),er(i,t)}function Ib(e,t){const n=ze(e,t==null?void 0:t.in),r=+er(n,t)-+Db(n,t);return Math.round(r/qc)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Pt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},tn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ms={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,n,r){const o=Qc(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return me(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):me(i,t.length)},R:function(e,t){const n=Xc(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ib(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=Ab(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,n){const r=Nb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return me(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return me(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=tn.noon:r===0?o=tn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=tn.evening:r>=12?o=tn.afternoon:r>=4?o=tn.morning:o=tn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gs(r);case"XXXX":case"XX":return Bt(r);case"XXXXX":case"XXX":default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gs(r);case"xxxx":case"xx":return Bt(r);case"xxxxx":case"xxx":default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hs(r,":");case"OOOO":default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hs(r,":");case"zzzz":default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function hs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+me(i,2)}function gs(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),i=me(r%60,2);return n+o+t+i}const ys=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ys(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ys(r,t)).replace("{{time}}",Jc(o,t))},_b={p:Jc,P:jb},Lb=/^D+$/,Bb=/^Y+$/,Fb=["D","DD","YY","YYYY"];function Wb(e){return Lb.test(e)}function Vb(e){return Bb.test(e)}function zb(e,t,n){const r=Ub(e,t,n);if(console.warn(r),Fb.includes(e))throw new RangeError(r)}function Ub(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qb=/^'([^]*?)'?$/,Gb=/''/g,Kb=/[a-zA-Z]/;function Zc(e,t,n){var d,p,g,v;const r=co(),o=r.locale??$b,i=r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((v=(g=r.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,c=ze(e,n==null?void 0:n.in);if(!Qy(c))throw new RangeError("Invalid time value");let l=t.match(Hb).map(y=>{const h=y[0];if(h==="p"||h==="P"){const b=_b[h];return b(y,o.formatLong)}return y}).join("").match(Yb).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const h=y[0];if(h==="'")return{isToken:!1,value:Xb(y)};if(ms[h])return{isToken:!0,value:y};if(h.match(Kb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const h=y.value;(Vb(h)||Wb(h))&&zb(h,t,String(e));const b=ms[h[0]];return b(c,h,o.localize,u)}).join("")}function Xb(e){const t=e.match(qb);return t?t[1].replace(Gb,"'"):e}function Qb(e,t){const n=()=>wt(t==null?void 0:t.in,NaN),o=tv(e);let i;if(o.date){const u=nv(o.date,2);i=rv(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const s=+i;let c=0,l;if(o.time&&(c=ov(o.time),isNaN(c)))return n();if(o.timezone){if(l=iv(o.timezone),isNaN(l))return n()}else{const u=new Date(s+c),d=ze(0,t==null?void 0:t.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return ze(s+c+l,t==null?void 0:t.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ev=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tv(e){const t={},n=e.split(Sr.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sr.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sr.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function nv(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function rv(e,t){if(t===null)return new Date(NaN);const n=e.match(Jb);if(!n)return new Date(NaN);const r=!!n[4],o=Nn(n[1]),i=Nn(n[2])-1,s=Nn(n[3]),c=Nn(n[4]),l=Nn(n[5])-1;if(r)return uv(t,c,l)?av(t,c,l):new Date(NaN);{const u=new Date(0);return!cv(t,i,s)||!lv(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function Nn(e){return e?parseInt(e):1}function ov(e){const t=e.match(Zb);if(!t)return NaN;const n=Po(t[1]),r=Po(t[2]),o=Po(t[3]);return dv(n,r,o)?n*Kc+r*Gc+o*1e3:NaN}function Po(e){return e&&parseFloat(e.replace(",","."))||0}function iv(e){if(e==="Z")return 0;const t=e.match(ev);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return fv(r,o)?n*(r*Kc+o*Gc):NaN}function av(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const sv=[31,null,31,30,31,30,31,31,30,31,30,31];function el(e){return e%400===0||e%4===0&&e%100!==0}function cv(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sv[t]||(el(e)?29:28))}function lv(e,t){return t>=1&&t<=(el(e)?366:365)}function uv(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function dv(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fv(e,t){return t>=0&&t<=59}var Fi=(e=>(e.SYSTEM_TIME_ZONE="America/New_York",e.SYSTEM_LOCALE="en-US",e.SYSTEM_DATE_FORMAT="MM/dd/yyyy",e.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",e.ISO_DATE_FORMAT="yyyy-MM-dd",e[e.SYSTEM_COOKIE_TIMEOUT_HOURS=24]="SYSTEM_COOKIE_TIMEOUT_HOURS",e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",e))(Fi||{});const pv=()=>{const e=+new Date;return new Date(e+Fi.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},mv=e=>Zc(new Date(e),Fi.ISO_DATE_FORMAT),hv=(e,t)=>e?Zc(Qb(e),t):"";function gv(e){if(typeof e=="string")return Number.parseInt(e,10)}const yv=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),bv=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),vv=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),xv=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Ev(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const wv=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class Sv extends Error{constructor(n,{status:r,statusText:o,redirected:i,type:s}){super(n);gt(this,"status");gt(this,"statusText");gt(this,"redirected");gt(this,"type");this.status=r,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function Tv(e,t={}){const n=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),n.set("Content-Type","application/json"));const r={...t,headers:n};r.body&&typeof r.body=="object"&&(r.body=JSON.stringify(r.body));const o=await fetch(e,r);if(o.type==="error"){const i=await o.text();throw new Sv(i,o)}return await o.json()}function Cv(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Yg;exports.CancelButton=Tg;exports.CenteredCircularProgress=Ly;exports.ConfirmDialog=By;exports.DeleteButton=$g;exports.DismissibleAlert=Fy;exports.EditIconButton=Ug;exports.ExcelButton=Vg;exports.GoBackButton=Ag;exports.HistoryButton=Ig;exports.LoadingSuccessButton=Lg;exports.ManageButton=Fg;exports.NextLink=_y;exports.OpenInNewIconLink=Vy;exports.QuerySnackBar=Hg;exports.ReactIf=zy;exports.SuccessButton=Wg;exports.TabPanel=Gg;exports.TablePaginationActions=qg;exports.a11yProps=Kg;exports.convertToIsoDate=mv;exports.fetchClient=Tv;exports.formatDate=hv;exports.getCssVariable=Cv;exports.initializeState=yv;exports.isBlankOrEmpty=Ev;exports.isEncoded=wv;exports.markError=xv;exports.markLoading=bv;exports.markSuccess=vv;exports.parseBoolean=Uy;exports.parseNumber=gv;exports.setCookieExpirationDate=pv;
229
+ */function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Li(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const kr="get",Mr="application/x-www-form-urlencoded";function so(e){return e!=null&&typeof e.tagName=="string"}function fy(e){return so(e)&&e.tagName.toLowerCase()==="button"}function py(e){return so(e)&&e.tagName.toLowerCase()==="form"}function my(e){return so(e)&&e.tagName.toLowerCase()==="input"}function hy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gy(e,t){return e.button===0&&(!t||t==="_self")&&!hy(e)}let wr=null;function yy(){if(wr===null)try{new FormData(document.createElement("form"),0),wr=!1}catch{wr=!0}return wr}const by=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oo(e){return e!=null&&!by.has(e)?(process.env.NODE_ENV!=="production"&&lr(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Mr+'"')),null):e}function vy(e,t){let n,r,o,i,s;if(py(e)){let c=e.getAttribute("action");r=c?vn(c,t):null,n=e.getAttribute("method")||kr,o=Oo(e.getAttribute("enctype"))||Mr,i=new FormData(e)}else if(fy(e)||my(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?vn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||kr,o=Oo(e.getAttribute("formenctype"))||Oo(c.getAttribute("enctype"))||Mr,i=new FormData(c,e),!yy()){let{name:u,type:d,value:p}=e;if(d==="image"){let g=u?u+".":"";i.append(g+"x","0"),i.append(g+"y","0")}else u&&i.append(u,p)}}else{if(so(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kr,r=null,o=Mr,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}const xy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ey=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],wy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Sy="6";try{window.__reactRouterVersion=Sy}catch{}const Yc=w.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Yc.displayName="ViewTransition");const Ty=w.createContext(new Map);process.env.NODE_ENV!=="production"&&(Ty.displayName="Fetchers");process.env.NODE_ENV;const Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=w.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=Li(t,xy),{basename:v}=w.useContext(Ct),y,h=!1;if(typeof u=="string"&&Oy.test(u)&&(y=u,Cy))try{let E=new URL(window.location.href),x=u.startsWith("//")?new URL(E.protocol+u):new URL(u),m=vn(x.pathname,v);x.origin===E.origin&&m!=null?u=m+x.search+x.hash:h=!0}catch{process.env.NODE_ENV!=="production"&&lr(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let b=iy(u,{relative:o}),S=My(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:p});function T(E){r&&r(E),E.defaultPrevented||S(E)}return w.createElement("a",xn({},g,{href:y||b,onClick:h||i?r:T,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Bi.displayName="Link");const Ry=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:c,to:l,viewTransition:u,children:d}=t,p=Li(t,Ey),g=dr(l,{relative:p.relative}),v=ur(),y=w.useContext(Bc),{navigator:h,basename:b}=w.useContext(Ct),S=y!=null&&jy(g)&&u===!0,T=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,E=v.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(E=E.toLowerCase(),x=x?x.toLowerCase():null,T=T.toLowerCase()),x&&b&&(x=vn(x,b)||x);const m=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=E===T||!s&&E.startsWith(T)&&E.charAt(m)==="/",R=x!=null&&(x===T||!s&&x.startsWith(T)&&x.charAt(T.length)==="/"),_={isActive:P,isPending:R,isTransitioning:S},N=P?r:void 0,f;typeof i=="function"?f=i(_):f=[i,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(_):c;return w.createElement(Bi,xn({},p,{"aria-current":N,className:f,ref:n,style:$,to:l,viewTransition:u}),typeof d=="function"?d(_):d)});process.env.NODE_ENV!=="production"&&(Ry.displayName="NavLink");const Py=w.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:c=kr,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:g}=e,v=Li(e,wy),y=Dy(),h=Iy(l,{relative:d}),b=c.toLowerCase()==="get"?"get":"post",S=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let E=T.nativeEvent.submitter,x=(E==null?void 0:E.getAttribute("formmethod"))||c;y(E||T.currentTarget,{fetcherKey:n,method:x,navigate:r,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g})};return w.createElement("form",xn({ref:t,method:b,action:h,onSubmit:o?u:S},v))});process.env.NODE_ENV!=="production"&&(Py.displayName="Form");process.env.NODE_ENV;var Vr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vr||(Vr={}));var us;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(us||(us={}));function ky(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Hc(e){let t=w.useContext(ao);return t||(process.env.NODE_ENV!=="production"?Ce(!1,ky(e)):Ce(!1)),t}function My(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:c}=t===void 0?{}:t,l=ay(),u=ur(),d=dr(e,{relative:s});return w.useCallback(p=>{if(gy(p,n)){p.preventDefault();let g=r!==void 0?r:Ko(u)===Ko(d);l(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:c})}},[u,l,d,r,o,n,e,i,s,c])}function $y(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ny=0,Ay=()=>"__"+String(++Ny)+"__";function Dy(){let{router:e}=Hc(Vr.UseSubmit),{basename:t}=w.useContext(Ct),n=uy();return w.useCallback(function(r,o){o===void 0&&(o={}),$y();let{action:i,method:s,encType:c,formData:l,body:u}=vy(r,t);if(o.navigate===!1){let d=o.fetcherKey||Ay();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Iy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=w.useContext(Ct),o=w.useContext(wn);o||(process.env.NODE_ENV!=="production"?Ce(!1,"useFormAction must be used inside a RouteContext"):Ce(!1));let[i]=o.matches.slice(-1),s=xn({},dr(e||".",{relative:n})),c=ur();if(e==null){s.search=c.search;let l=new URLSearchParams(s.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(g=>g).forEach(g=>l.append("index",g));let p=l.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Di([r,s.pathname])),Ko(s)}function jy(e,t){t===void 0&&(t={});let n=w.useContext(Yc);n==null&&(process.env.NODE_ENV!=="production"?Ce(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ce(!1));let{basename:r}=Hc(Vr.useViewTransitionState),o=dr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=vn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=vn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ls(o.pathname,s)!=null||ls(o.pathname,i)!=null}function _y(e){return C.jsx(Ac,{component:Bi,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Ly(){return C.jsx("div",{style:{margin:"1.5rem"},className:"custom-flex-justify-center",children:C.jsx(Pi,{})})}function By(e){const{onClose:t,title:n,message:r,open:o,...i}=e;return C.jsxs(Pc,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[C.jsx($c,{children:n??"Confirm"}),C.jsx(Mc,{dividers:!0,children:r}),C.jsxs(kc,{children:[C.jsx(Et,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),C.jsx(Et,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Fy(e){const[t,n]=he.useState(!0),[r]=he.useState(e.dismissible??!0),[o]=he.useState(e.dismissOnTimeOut??!0),[i]=he.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},i),C.jsx("span",{children:t&&C.jsx(pn,{action:r?C.jsx(it,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:C.jsx(Ai,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}const Wy=$e(C.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Vy(e){return C.jsxs("a",{href:e.href,target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center"},children:[e.linkText,C.jsx(Wr,{sx:{fontSize:"1.1rem",mx:.75},component:Wy}),e.children]})}function zy(e){return e.condition===void 0||!e.condition?null:e.children}function Uy(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}const qc=6048e5,Yy=864e5,Gc=6e4,Kc=36e5,ds=Symbol.for("constructDateFrom");function wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function ze(e,t){return wt(t||e,e)}let Hy={};function co(){return Hy}function er(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=ze(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function zr(e,t){return er(e,{...t,weekStartsOn:1})}function Xc(e,t){const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=zr(o),s=wt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=zr(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fs(e){const t=ze(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function qy(e,...t){const n=wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ps(e,t){const n=ze(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Gy(e,t,n){const[r,o]=qy(n==null?void 0:n.in,e,t),i=ps(r),s=ps(o),c=+i-fs(i),l=+s-fs(s);return Math.round((c-l)/Yy)}function Ky(e,t){const n=Xc(e,t),r=wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zr(r)}function Xy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qy(e){return!(!Xy(e)&&typeof e!="number"||isNaN(+ze(e)))}function Jy(e,t){const n=ze(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Zy={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"}},eb=(e,t,n)=>{let r;const o=Zy[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ro(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const tb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ob={date:Ro({formats:tb,defaultWidth:"full"}),time:Ro({formats:nb,defaultWidth:"full"}),dateTime:Ro({formats:rb,defaultWidth:"full"})},ib={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ab=(e,t,n,r)=>ib[e];function Mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const sb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lb={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"]},ub={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"]},db={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"}},fb={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"}},pb=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mb={ordinalNumber:pb,era:Mn({values:sb,defaultWidth:"wide"}),quarter:Mn({values:cb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mn({values:lb,defaultWidth:"wide"}),day:Mn({values:ub,defaultWidth:"wide"}),dayPeriod:Mn({values:db,defaultWidth:"wide",formattingValues:fb,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?gb(c,p=>p.test(s)):hb(c,p=>p.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function hb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function gb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const bb=/^(\d+)(th|st|nd|rd)?/i,vb=/\d+/i,xb={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},Eb={any:[/^b/i,/^(a|c)/i]},wb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Sb={any:[/1/i,/2/i,/3/i,/4/i]},Tb={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},Cb={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]},Ob={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},Rb={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]},Pb={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},kb={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}},Mb={ordinalNumber:yb({matchPattern:bb,parsePattern:vb,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:xb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:$n({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:Sb,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Cb,defaultParseWidth:"any"}),day:$n({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Rb,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:Pb,defaultMatchWidth:"any",parsePatterns:kb,defaultParseWidth:"any"})},$b={code:"en-US",formatDistance:eb,formatLong:ob,formatRelative:ab,localize:mb,match:Mb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nb(e,t){const n=ze(e,t==null?void 0:t.in);return Gy(n,Jy(n))+1}function Ab(e,t){const n=ze(e,t==null?void 0:t.in),r=+zr(n)-+Ky(n);return Math.round(r/qc)+1}function Qc(e,t){var d,p,g,v;const n=ze(e,t==null?void 0:t.in),r=n.getFullYear(),o=co(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(g=o.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,s=wt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=er(s,t),l=wt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=er(l,t);return+n>=+c?r+1:+n>=+u?r:r-1}function Db(e,t){var c,l,u,d;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=Qc(e,t),i=wt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),er(i,t)}function Ib(e,t){const n=ze(e,t==null?void 0:t.in),r=+er(n,t)-+Db(n,t);return Math.round(r/qc)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Pt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},tn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ms={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Pt.y(e,t)},Y:function(e,t,n,r){const o=Qc(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return me(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):me(i,t.length)},R:function(e,t){const n=Xc(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Pt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ib(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=Ab(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Pt.d(e,t)},D:function(e,t,n){const r=Nb(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return me(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return me(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=tn.noon:r===0?o=tn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=tn.evening:r>=12?o=tn.afternoon:r>=4?o=tn.morning:o=tn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pt.s(e,t)},S:function(e,t){return Pt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gs(r);case"XXXX":case"XX":return Bt(r);case"XXXXX":case"XXX":default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gs(r);case"xxxx":case"xx":return Bt(r);case"xxxxx":case"xxx":default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hs(r,":");case"OOOO":default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hs(r,":");case"zzzz":default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function hs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+me(i,2)}function gs(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),i=me(r%60,2);return n+o+t+i}const ys=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Jc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jb=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ys(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ys(r,t)).replace("{{time}}",Jc(o,t))},_b={p:Jc,P:jb},Lb=/^D+$/,Bb=/^Y+$/,Fb=["D","DD","YY","YYYY"];function Wb(e){return Lb.test(e)}function Vb(e){return Bb.test(e)}function zb(e,t,n){const r=Ub(e,t,n);if(console.warn(r),Fb.includes(e))throw new RangeError(r)}function Ub(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qb=/^'([^]*?)'?$/,Gb=/''/g,Kb=/[a-zA-Z]/;function Zc(e,t,n){var d,p,g,v;const r=co(),o=r.locale??$b,i=r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((v=(g=r.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,c=ze(e,n==null?void 0:n.in);if(!Qy(c))throw new RangeError("Invalid time value");let l=t.match(Hb).map(y=>{const h=y[0];if(h==="p"||h==="P"){const b=_b[h];return b(y,o.formatLong)}return y}).join("").match(Yb).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const h=y[0];if(h==="'")return{isToken:!1,value:Xb(y)};if(ms[h])return{isToken:!0,value:y};if(h.match(Kb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const h=y.value;(Vb(h)||Wb(h))&&zb(h,t,String(e));const b=ms[h[0]];return b(c,h,o.localize,u)}).join("")}function Xb(e){const t=e.match(qb);return t?t[1].replace(Gb,"'"):e}function Qb(e,t){const n=()=>wt(t==null?void 0:t.in,NaN),o=tv(e);let i;if(o.date){const u=nv(o.date,2);i=rv(u.restDateString,u.year)}if(!i||isNaN(+i))return n();const s=+i;let c=0,l;if(o.time&&(c=ov(o.time),isNaN(c)))return n();if(o.timezone){if(l=iv(o.timezone),isNaN(l))return n()}else{const u=new Date(s+c),d=ze(0,t==null?void 0:t.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return ze(s+c+l,t==null?void 0:t.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ev=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tv(e){const t={},n=e.split(Sr.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sr.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sr.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function nv(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function rv(e,t){if(t===null)return new Date(NaN);const n=e.match(Jb);if(!n)return new Date(NaN);const r=!!n[4],o=Nn(n[1]),i=Nn(n[2])-1,s=Nn(n[3]),c=Nn(n[4]),l=Nn(n[5])-1;if(r)return uv(t,c,l)?av(t,c,l):new Date(NaN);{const u=new Date(0);return!cv(t,i,s)||!lv(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function Nn(e){return e?parseInt(e):1}function ov(e){const t=e.match(Zb);if(!t)return NaN;const n=Po(t[1]),r=Po(t[2]),o=Po(t[3]);return dv(n,r,o)?n*Kc+r*Gc+o*1e3:NaN}function Po(e){return e&&parseFloat(e.replace(",","."))||0}function iv(e){if(e==="Z")return 0;const t=e.match(ev);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return fv(r,o)?n*(r*Kc+o*Gc):NaN}function av(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const sv=[31,null,31,30,31,30,31,31,30,31,30,31];function el(e){return e%400===0||e%4===0&&e%100!==0}function cv(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sv[t]||(el(e)?29:28))}function lv(e,t){return t>=1&&t<=(el(e)?366:365)}function uv(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function dv(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fv(e,t){return t>=0&&t<=59}var Fi=(e=>(e.SYSTEM_TIME_ZONE="America/New_York",e.SYSTEM_LOCALE="en-US",e.SYSTEM_DATE_FORMAT="MM/dd/yyyy",e.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",e.ISO_DATE_FORMAT="yyyy-MM-dd",e[e.SYSTEM_COOKIE_TIMEOUT_HOURS=24]="SYSTEM_COOKIE_TIMEOUT_HOURS",e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",e))(Fi||{});const pv=()=>{const e=+new Date;return new Date(e+Fi.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},mv=e=>Zc(new Date(e),Fi.ISO_DATE_FORMAT),hv=(e,t)=>e?Zc(Qb(e),t):"";function gv(e){if(typeof e=="string")return Number.parseInt(e,10)}const yv=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),bv=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),vv=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),xv=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Ev(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const wv=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class Sv extends Error{constructor(n,{status:r,statusText:o,redirected:i,type:s}){super(n);gt(this,"status");gt(this,"statusText");gt(this,"redirected");gt(this,"type");this.status=r,this.statusText=o,this.statusText=s,this.redirected=i,this.name="HttpError"}}async function Tv(e,t={}){const n=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),n.set("Content-Type","application/json"));const r={...t,headers:n};r.body&&typeof r.body=="object"&&(r.body=JSON.stringify(r.body));const o=await fetch(e,r);if(o.type==="error"){const i=await o.text();throw new Sv(i,o)}return await o.json()}function Cv(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Yg;exports.CancelButton=Tg;exports.CenteredCircularProgress=Ly;exports.ConfirmDialog=By;exports.DeleteButton=$g;exports.DismissibleAlert=Fy;exports.EditIconButton=Ug;exports.ExcelButton=Vg;exports.GoBackButton=Ag;exports.HistoryButton=Ig;exports.LoadingSuccessButton=Lg;exports.ManageButton=Fg;exports.NextLink=_y;exports.OpenInNewIconLink=Vy;exports.QuerySnackBar=Hg;exports.ReactIf=zy;exports.SuccessButton=Wg;exports.TabPanel=Gg;exports.TablePaginationActions=qg;exports.a11yProps=Kg;exports.convertToIsoDate=mv;exports.fetchClient=Tv;exports.formatDate=hv;exports.getCssVariable=Cv;exports.initializeState=yv;exports.isBlankOrEmpty=Ev;exports.isEncoded=wv;exports.markError=xv;exports.markLoading=bv;exports.markSuccess=vv;exports.parseBoolean=Uy;exports.parseNumber=gv;exports.setCookieExpirationDate=pv;
package/index.mjs CHANGED
@@ -14539,7 +14539,7 @@ function wv(e) {
14539
14539
  const [t, n] = on(!0), [r] = on(e.dismissible ?? !0), [o] = on(e.dismissOnTimeOut ?? !0), [i] = on(e.dismissTimeOut ?? 5e3);
14540
14540
  return setTimeout(() => {
14541
14541
  n(o ? !1 : t);
14542
- }, i), /* @__PURE__ */ P("div", { children: t && /* @__PURE__ */ P(
14542
+ }, i), /* @__PURE__ */ P("span", { children: t && /* @__PURE__ */ P(
14543
14543
  hn,
14544
14544
  {
14545
14545
  action: r ? /* @__PURE__ */ P(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@js-smart/react-kit",
3
3
  "private": false,
4
- "version": "5.1.0",
4
+ "version": "5.1.2-rc.1",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "publishConfig": {