@ienlab/react-library 0.17.0-beta.26 โ 0.17.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './use-screen-lifecycle';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-screen-lifecycle.d.ts","sourceRoot":"","sources":["../../src/hooks/use-screen-lifecycle.tsx"],"names":[],"mappings":"AAGA,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAWD,wBAAgB,sBAAsB,CAAC,EACE,IAAI,EACJ,OAAO,EACP,UAAU,GACX,EAAE,MAAM,QAiB/C"}
|
package/dist/my-library.cjs.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("react");l=c(l,1);let u=require("motion/react"),d=require("react/jsx-runtime"),f=require("react-i18next"),p=require("@tanstack/react-table"),m=require("firebase/firestore"),h=require("zustand/react"),g=require("i18next");g=c(g,1);let _=require("firebase/storage");function v({placeholder:e,src:t,onLoadError:n,...r}){let[i,a]=(0,l.useState)(()=>{if(typeof window>`u`||!t)return!1;let e=new Image;return e.src=t,e.complete&&e.naturalWidth>0}),[o,s]=(0,l.useState)(t);return o!==t&&(s(t),a(!1)),(0,l.useEffect)(()=>{if(!t)return;let e=new Image;return e.src=t,e.onload=()=>a(!0),e.onerror=e=>{n?n(e):console.error(`CrossfadeImage: Failed to load image`,t)},e.complete&&e.naturalWidth>0&&e.onload(new Event(`load`)),()=>{e.onload=null,e.onerror=null}},[t,n]),(0,d.jsx)(u.AnimatePresence,{children:i&&t?(0,d.jsx)(u.motion.img,{src:t,...r,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{...r.style}},`loaded-image`):(0,d.jsx)(u.motion.div,{initial:{opacity:1},transition:{duration:.3},style:{...r.style},children:e??(0,d.jsx)(`div`,{className:`w-full h-full bg-sidebar`})},`placeholder`)})}var y=({children:e})=>(0,d.jsx)(`div`,{children:e}),b=e=>(0,d.jsx)(`label`,{...e}),x=({children:e})=>(0,d.jsx)(`p`,{children:e}),S=e=>(0,d.jsx)(`input`,{...e}),C=({children:e,...t})=>(0,d.jsx)(`div`,{...t,children:e}),w=e=>null,T=({children:e,...t})=>(0,d.jsx)(`div`,{...t,children:e}),E=({children:e,type:t=`button`,...n})=>(0,d.jsx)(`button`,{type:t,...n,children:e}),ee=({className:e})=>(0,d.jsx)(`span`,{className:e,children:`ร`}),D=[`ko`,`en`],O=null;function te(e){O=e}var k={get(e,t=`ko`){let n=O?.();return e[D.includes(n)?n:t]??e[t]},ko(e){return e.ko}},A=class{url=``;file=null;constructor(e={}){Object.assign(this,e)}isBlobUrl(){return this.url.startsWith(`blob:`)}revokeIfNeeded(){this.file&&this.isBlobUrl()&&URL.revokeObjectURL(this.url)}get isEmpty(){return!this.file&&!this.url}},j=e=>(0,d.jsx)(`table`,{...e}),M=e=>(0,d.jsx)(`thead`,{...e}),N=e=>(0,d.jsx)(`tbody`,{...e}),P=e=>(0,d.jsx)(`tr`,{...e}),ne=e=>(0,d.jsx)(`th`,{...e}),re=e=>(0,d.jsx)(`td`,{...e}),ie=({open:e,children:t})=>e?(0,d.jsx)(`div`,{children:t}):null,ae=e=>(0,d.jsx)(`div`,{...e}),F=e=>(0,d.jsx)(`div`,{...e}),I=e=>(0,d.jsx)(`h2`,{...e}),L=e=>(0,d.jsx)(`p`,{...e}),oe=e=>(0,d.jsx)(`div`,{...e}),R=e=>(0,d.jsx)(`div`,{children:`Calendar`}),se=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),z=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),B=e=>(0,d.jsx)(`input`,{...e}),ce=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),V=({className:e})=>(0,d.jsx)(`span`,{className:e,children:`๐`}),H={wrapper:{display:`flex`,flexDirection:`column`,gap:`1rem`},trigger:{display:`block`,cursor:`pointer`,borderRadius:`1.5rem`},card:{position:`relative`,overflow:`hidden`,borderRadius:`1.5rem`,border:`1px solid var(--border)`,backgroundColor:`var(--card)`,transition:`background-color 160ms ease, box-shadow 160ms ease`},frame:{position:`relative`,width:`100%`,aspectRatio:`16 / 9`},imageLayer:{position:`absolute`,inset:0,padding:`1.5rem`},imageBox:{margin:`0 auto`,maxWidth:`100%`,maxHeight:`100%`},image:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`},empty:{display:`flex`,width:`100%`,height:`100%`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`1rem`,color:`var(--muted-foreground)`,textAlign:`center`,padding:`1rem`,boxSizing:`border-box`},badge:{borderRadius:`1rem`,backgroundColor:`var(--secondary)`,padding:`0.75rem 1rem`,fontSize:`0.875rem`,lineHeight:1.2,color:`var(--secondary-foreground)`},hint:{margin:0,fontSize:`0.875rem`,lineHeight:1.4},overlay:{pointerEvents:`none`,position:`absolute`,inset:0,borderRadius:`inherit`,boxShadow:`inset 0 0 0 0 rgba(59, 130, 246, 0)`,transition:`box-shadow 160ms ease`}};function le({id:e,label:t,uploadHintText:n,descriptionText:r,value:i,onChange:a,aspectRatio:o=`1 / 1`,accept:s=`image/*`,components:c}){let{t:u}=(0,f.useTranslation)(),p=c?.Field??y,m=c?.FieldLabel??b,h=c?.FieldDescription??x,g=c?.Input??S,_={...H.imageBox,aspectRatio:o},[C,w]=(0,l.useState)(!1);return(0,d.jsxs)(p,{children:[(0,d.jsx)(m,{htmlFor:e,children:t}),(0,d.jsxs)(`div`,{style:H.wrapper,children:[(0,d.jsx)(`label`,{htmlFor:e,style:{...H.trigger,backgroundColor:C?`var(--accent)`:`var(--card)`},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:(0,d.jsxs)(`div`,{style:H.card,children:[(0,d.jsx)(`div`,{style:H.frame,children:i.url?(0,d.jsx)(`div`,{style:H.imageLayer,children:(0,d.jsx)(`div`,{style:_,children:(0,d.jsx)(v,{src:i.url,className:``,alt:t,style:H.image})})}):(0,d.jsxs)(`div`,{style:H.empty,children:[(0,d.jsx)(`div`,{style:H.badge,children:u(`libs:add_assets`)}),(0,d.jsx)(`p`,{style:H.hint,children:n})]})}),(0,d.jsx)(`div`,{style:{...H.overlay,boxShadow:C?`inset 0 0 0 2px rgba(59, 130, 246, 0.16)`:`inset 0 0 0 0 rgba(59, 130, 246, 0)`}})]})}),(0,d.jsx)(g,{id:e,type:`file`,accept:s,onChange:e=>{let t=e.target.files?.[0];t&&(i.revokeIfNeeded(),a(new A({file:t,url:URL.createObjectURL(t)})),e.currentTarget.value=``)},style:{display:`none`}}),(0,d.jsx)(h,{children:r})]})]})}var U={wrapper:{display:`flex`,flexDirection:`column`,gap:`0.75rem`},outerBox:{borderRadius:`1.5rem`,border:`1px solid var(--border)`,backgroundColor:`var(--card)`,overflow:`hidden`},scrollArea:{width:`100%`,overflowX:`auto`,overflowY:`hidden`,whiteSpace:`nowrap`},list:{display:`flex`,width:`max-content`,gap:`1rem`,padding:`1rem`},item:{position:`relative`,flexShrink:0},card:{position:`relative`,width:`15rem`,overflow:`hidden`,borderRadius:`0.75rem`,padding:0,backgroundColor:`var(--card)`,border:`1px solid var(--border)`,boxSizing:`border-box`},cardInner:{position:`relative`,width:`100%`,height:`100%`},image:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`},removeButton:{position:`absolute`,right:`1rem`,bottom:`1rem`,borderRadius:`9999px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.12)`},uploadLabel:{display:`block`,flexShrink:0,cursor:`pointer`},uploadCard:{width:`15rem`,overflow:`hidden`,borderRadius:`0.75rem`,padding:0,border:`1px dashed var(--border)`,backgroundColor:`var(--card)`,boxSizing:`border-box`,transition:`background-color 160ms ease`},uploadCardInner:{display:`flex`,width:`100%`,height:`100%`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`1rem`,color:`var(--muted-foreground)`,textAlign:`center`,padding:`1rem`,boxSizing:`border-box`},badge:{borderRadius:`1rem`,backgroundColor:`var(--secondary)`,padding:`0.75rem 1rem`,fontSize:`0.875rem`,lineHeight:1.2,color:`var(--secondary-foreground)`},hint:{margin:0,fontSize:`0.875rem`,lineHeight:1.4},description:{marginTop:`0.25rem`},hiddenInput:{display:`none`},scrollBar:{marginLeft:`1rem`,marginRight:`1rem`}};function ue({id:e,label:t,descriptionText:n,uploadHintText:r,items:i,onChange:a,aspectRatio:o=`1 / 1`,accept:s=`image/*`,components:c}){let{t:l}=(0,f.useTranslation)(),p=c?.Field??y,m=c?.FieldLabel??b,h=c?.FieldDescription??x,g=c?.Input??S,_=c?.ScrollArea??C,D=c?.ScrollBar??w,O=c?.Card??T,te=c?.Button??E,k=c?.CloseIcon??ee,j=e=>{e.revokeIfNeeded(),a(i.filter(t=>t!==e))},M=e=>{!e||e.length===0||a([...i,...Array.from(e).map(e=>new A({file:e,url:URL.createObjectURL(e)}))])},N={...U.card,aspectRatio:o},P={...U.uploadCard,aspectRatio:o};return(0,d.jsxs)(p,{children:[(0,d.jsx)(m,{htmlFor:e,children:t}),(0,d.jsxs)(`div`,{style:U.wrapper,children:[(0,d.jsxs)(`div`,{style:U.outerBox,children:[(0,d.jsxs)(_,{style:U.scrollArea,children:[(0,d.jsxs)(u.Reorder.Group,{axis:`x`,values:i,onReorder:a,layoutScroll:!0,style:U.list,children:[i.map(e=>(0,d.jsx)(u.Reorder.Item,{value:e,style:U.item,children:(0,d.jsx)(O,{style:N,children:(0,d.jsxs)(`div`,{style:U.cardInner,children:[(0,d.jsx)(v,{src:e.url,className:``,alt:t,style:U.image,draggable:!1}),(0,d.jsx)(te,{type:`button`,style:U.removeButton,onClick:()=>j(e),children:(0,d.jsx)(k,{})})]})})},e.url)),(0,d.jsx)(`label`,{htmlFor:e,style:U.uploadLabel,children:(0,d.jsx)(O,{style:P,onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`var(--accent)`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`var(--card)`},children:(0,d.jsxs)(`div`,{style:U.uploadCardInner,children:[(0,d.jsx)(`div`,{style:U.badge,children:l(`libs:add_assets`)}),(0,d.jsx)(`p`,{style:U.hint,children:r})]})})})]}),(0,d.jsx)(D,{orientation:`horizontal`,style:U.scrollBar})]}),(0,d.jsx)(g,{id:e,type:`file`,accept:s,multiple:!0,onChange:e=>{M(e.target.files),e.currentTarget.value=``},style:U.hiddenInput})]}),(0,d.jsx)(`div`,{style:U.description,children:(0,d.jsx)(h,{children:n})})]})]})}function de(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=de(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function fe(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=de(e))&&(r&&(r+=` `),r+=t);return r}var pe=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},me=(e,t)=>({classGroupId:e,validator:t}),he=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ge=`-`,_e=[],ve=`arbitrary..`,ye=e=>{let t=Se(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return xe(e);let n=e.split(ge);return be(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?pe(i,t):t:i||_e}return n[e]||_e}}},be=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=be(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ge):e.slice(t).join(ge),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},xe=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ve+r:void 0})(),Se=e=>{let{theme:t,classGroups:n}=e;return Ce(n,t)},Ce=(e,t)=>{let n=he();for(let r in e){let i=e[r];we(i,n,r,t)}return n},we=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Te(i,t,n,r)}},Te=(e,t,n,r)=>{if(typeof e==`string`){Ee(e,t,n);return}if(typeof e==`function`){De(e,t,n,r);return}Oe(e,t,n,r)},Ee=(e,t,n)=>{let r=e===``?t:ke(t,e);r.classGroupId=n},De=(e,t,n,r)=>{if(Ae(e)){we(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(me(n,e))},Oe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];we(o,ke(t,a),n,r)}},ke=(e,t)=>{let n=e,r=t.split(ge),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=he(),n.nextPart.set(t,i)),n=i}return n},Ae=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,je=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Me=`!`,Ne=`:`,Pe=[],Fe=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ie=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ne){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Me)?(c=s.slice(0,-1),l=!0):s.startsWith(Me)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Fe(t,l,c,u)};if(t){let e=t+Ne,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Fe(Pe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Le=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Re=e=>({cache:je(e.cacheSize),parseClassName:Ie(e),sortModifiers:Le(e),postfixLookupClassGroupIds:ze(e),...ye(e)}),ze=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Be=/\s+/,Ve=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Be),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Me:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},He=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ue(n))&&(i&&(i+=` `),i+=r);return i},Ue=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ue(e[r]))&&(n&&(n+=` `),n+=t);return n},We=(e,...t)=>{let n,r,i,a,o=o=>(n=Re(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ve(e,n);return i(e,a),a};return a=o,(...e)=>a(He(...e))},Ge=[],W=e=>{let t=t=>t[e]||Ge;return t.isThemeGetter=!0,t},Ke=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Je=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ye=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Je.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),et=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),J=e=>Ye.test(e),tt=()=>!0,nt=e=>Xe.test(e)&&!Ze.test(e),rt=()=>!1,it=e=>Qe.test(e),at=e=>$e.test(e),ot=e=>!Y(e)&&!Z(e),st=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),ct=e=>Q(e,wt,rt),Y=e=>Ke.test(e),X=e=>Q(e,Tt,nt),lt=e=>Q(e,Et,K),ut=e=>Q(e,Ot,tt),dt=e=>Q(e,Dt,rt),ft=e=>Q(e,St,rt),pt=e=>Q(e,Ct,at),mt=e=>Q(e,kt,it),Z=e=>qe.test(e),ht=e=>$(e,Tt),gt=e=>$(e,Dt),_t=e=>$(e,St),vt=e=>$(e,wt),yt=e=>$(e,Ct),bt=e=>$(e,kt,!0),xt=e=>$(e,Ot,!0),Q=(e,t,n)=>{let r=Ke.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=qe.exec(e);return r?r[1]?t(r[1]):n:!1},St=e=>e===`position`||e===`percentage`,Ct=e=>e===`image`||e===`url`,wt=e=>e===`length`||e===`size`||e===`bg-size`,Tt=e=>e===`length`,Et=e=>e===`number`,Dt=e=>e===`family-name`,Ot=e=>e===`number`||e===`weight`,kt=e=>e===`shadow`,At=We(()=>{let e=W(`color`),t=W(`font`),n=W(`text`),r=W(`font-weight`),i=W(`tracking`),a=W(`leading`),o=W(`breakpoint`),s=W(`container`),c=W(`spacing`),l=W(`radius`),u=W(`shadow`),d=W(`inset-shadow`),f=W(`text-shadow`),p=W(`drop-shadow`),m=W(`blur`),h=W(`perspective`),g=W(`aspect`),_=W(`ease`),v=W(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Z,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Z,Y,c],T=()=>[G,`full`,`auto`,...w()],E=()=>[q,`none`,`subgrid`,Z,Y],ee=()=>[`auto`,{span:[`full`,q,Z,Y]},q,Z,Y],D=()=>[q,`auto`,Z,Y],O=()=>[`auto`,`min`,`max`,`fr`,Z,Y],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[G,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[G,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[G,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,Z,Y],ne=()=>[...b(),_t,ft,{position:[Z,Y]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,vt,ct,{size:[Z,Y]}],ae=()=>[et,ht,X],F=()=>[``,`none`,`full`,l,Z,Y],I=()=>[``,K,ht,X],L=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[K,et,_t,ft],se=()=>[``,`none`,m,Z,Y],z=()=>[`none`,K,Z,Y],B=()=>[`none`,K,Z,Y],ce=()=>[K,Z,Y],V=()=>[G,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[J],breakpoint:[J],color:[tt],container:[J],"drop-shadow":[J],ease:[`in`,`out`,`in-out`],font:[ot],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[J],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[J],shadow:[J],spacing:[`px`,K],text:[J],"text-shadow":[J],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,G,Y,Z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Z,Y]}],"container-named":[st],columns:[{columns:[K,Y,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[q,`auto`,Z,Y]}],basis:[{basis:[G,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,G,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,K,Z,Y]}],shrink:[{shrink:[``,K,Z,Y]}],order:[{order:[q,`first`,`last`,`none`,Z,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,ht,X]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,xt,ut]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,et,Y]}],"font-family":[{font:[gt,dt,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Z,Y]}],"line-clamp":[{"line-clamp":[K,`none`,Z,lt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Z,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...L(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,Z,X]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[K,`auto`,Z,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[q,Z,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,Y]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},q,Z,Y],radial:[``,Z,Y],conic:[q,Z,Y]},yt,pt]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":I()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...L(),`hidden`,`none`]}],"divide-style":[{divide:[...L(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...L(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,Z,Y]}],"outline-w":[{outline:[``,K,ht,X]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,bt,mt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,bt,mt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:I()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[K,X]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,bt,mt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[K,Z,Y]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Z,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,Y]}],filter:[{filter:[``,`none`,Z,Y]}],blur:[{blur:se()}],brightness:[{brightness:[K,Z,Y]}],contrast:[{contrast:[K,Z,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,bt,mt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,K,Z,Y]}],"hue-rotate":[{"hue-rotate":[K,Z,Y]}],invert:[{invert:[``,K,Z,Y]}],saturate:[{saturate:[K,Z,Y]}],sepia:[{sepia:[``,K,Z,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,Y]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[K,Z,Y]}],"backdrop-contrast":[{"backdrop-contrast":[K,Z,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,Z,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,Z,Y]}],"backdrop-invert":[{"backdrop-invert":[``,K,Z,Y]}],"backdrop-opacity":[{"backdrop-opacity":[K,Z,Y]}],"backdrop-saturate":[{"backdrop-saturate":[K,Z,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,Z,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,Z,Y]}],ease:[{ease:[`linear`,`initial`,_,Z,Y]}],delay:[{delay:[K,Z,Y]}],animate:[{animate:[`none`,v,Z,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[Z,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":[`translate-none`],zoom:[{zoom:[q,Z,Y]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z,Y]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[K,ht,X,lt]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function jt(...e){return At(fe(e))}function Mt({columns:e,data:t,getRowId:n,selectionState:r,onClick:i,components:a}){let[o,s]=r,c=(0,p.useReactTable)({data:t,columns:e,state:{rowSelection:o},getRowId:n,enableRowSelection:!0,onRowSelectionChange:s,getCoreRowModel:(0,p.getCoreRowModel)()}),{t:l}=(0,f.useTranslation)(),u=a?.Table??j,m=a?.TableHeader??M,h=a?.TableBody??N,g=a?.TableRow??P,_=a?.TableHead??ne,v=a?.TableCell??re;return(0,d.jsxs)(u,{children:[(0,d.jsx)(m,{children:c.getHeaderGroups().map(e=>(0,d.jsx)(g,{children:e.headers.map(e=>(0,d.jsx)(_,{className:jt(e.column.columnDef.meta?.className),children:e.isPlaceholder?null:(0,p.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,d.jsx)(h,{children:c.getRowModel().rows?.length?c.getRowModel().rows.map(e=>(0,d.jsx)(g,{"data-state":e.getIsSelected()&&`selected`,onClick:()=>i(e.original),children:e.getVisibleCells().map(e=>(0,d.jsx)(v,{className:jt(e.column.columnDef.meta?.className),children:(0,p.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,d.jsx)(g,{children:(0,d.jsx)(v,{colSpan:e.length,className:`h-24 text-center`,children:l(`libs:no_results`)})})})]})}function Nt({columns:e,data:t,getRowId:n,selectionState:r,onClick:i,components:a,indentSize:o=24}){let[s,c]=r,l=(0,p.useReactTable)({data:t,columns:e,state:{rowSelection:s,expanded:!0},getRowId:n,enableRowSelection:!0,onRowSelectionChange:c,getSubRows:e=>e.subRows,getCoreRowModel:(0,p.getCoreRowModel)(),getExpandedRowModel:(0,p.getExpandedRowModel)()}),{t:u}=(0,f.useTranslation)(),m=a?.Table??j,h=a?.TableHeader??M,g=a?.TableBody??N,_=a?.TableRow??P,v=a?.TableHead??ne,y=a?.TableCell??re;return(0,d.jsxs)(m,{style:{width:`100%`},children:[(0,d.jsx)(h,{children:l.getHeaderGroups().map(e=>(0,d.jsx)(_,{children:e.headers.map(e=>(0,d.jsx)(v,{className:jt(e.column.columnDef.meta?.className),children:e.isPlaceholder?null:(0,p.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,d.jsx)(g,{children:l.getRowModel().rows?.length?l.getRowModel().rows.map(e=>(0,d.jsx)(_,{id:e.id,"data-state":e.getIsSelected()&&`selected`,onClick:()=>i(e.original),children:e.getVisibleCells().map((t,n)=>{let r=n===0?e.depth*o:0;return(0,d.jsxs)(y,{className:jt(t.column.columnDef.meta?.className),style:{paddingLeft:r?`${r}px`:void 0},children:[n===0&&e.depth>0&&(0,d.jsx)(`span`,{className:`mr-2 text-muted-foreground`,children:`โณ`}),(0,p.flexRender)(t.column.columnDef.cell,t.getContext())]},t.id)})},e.id)):(0,d.jsx)(_,{children:(0,d.jsx)(y,{colSpan:e.length,className:`h-24 text-center`,children:u(`libs:no_results`)})})})]})}var Pt={initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15,ease:`easeOut`}};function Ft({loading:e,loadingNode:t,idleNode:n,className:r=`w-6 h-6 flex flex-row items-center justify-center`,motionProps:i}){return(0,d.jsx)(`div`,{className:r,children:(0,d.jsx)(u.AnimatePresence,{mode:`popLayout`,initial:!1,children:(0,l.createElement)(u.motion.div,{...Pt,...i,key:e?`loading`:`idle`},e?t:n)})})}function It(e){let{t}=(0,f.useTranslation)(),n=e.date?[String(e.date.getHours()).padStart(2,`0`),String(e.date.getMinutes()).padStart(2,`0`),String(e.date.getSeconds()).padStart(2,`0`)].join(`:`):`10:30:00`,r=t=>{if(!t){e.setDate(void 0);return}if(!e.date){e.setDate(t);return}let n=new Date(t);n.setHours(e.date.getHours(),e.date.getMinutes(),e.date.getSeconds(),e.date.getMilliseconds()),e.setDate(n)},i=t=>{let[n=`0`,r=`0`,i=`0`]=t.split(`:`),a=e.date?new Date(e.date):new Date;a.setHours(Number(n),Number(r),Number(i),0),e.setDate(a)},a=e.components?.Calendar??R,o=e.components?.Field??y,s=e.components?.FieldLabel??b,c=e.components?.FieldGroup??se,l=e.components?.InputGroup??z,u=e.components?.InputGroupInput??B,p=e.components?.InputGroupAddon??ce,m=e.components?.TimeIcon??V;return(0,d.jsxs)(`div`,{children:[(0,d.jsx)(a,{mode:`single`,captionLayout:`dropdown`,defaultMonth:e.date,selected:e.date,onSelect:r}),(0,d.jsx)(c,{className:`border-t p-4`,children:(0,d.jsxs)(o,{children:[(0,d.jsx)(s,{htmlFor:`time`,children:t(`libs:time`)}),(0,d.jsxs)(l,{children:[(0,d.jsx)(u,{id:`time`,type:`time`,step:`1`,value:n,onChange:e=>i(e.target.value),className:`appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none`}),(0,d.jsx)(p,{children:(0,d.jsx)(m,{className:`text-muted-foreground`})})]})]})})]})}function Lt(e){let{t}=(0,f.useTranslation)(),n=e.components?.AlertDialog??ie,r=e.components?.AlertDialogContent??ae,i=e.components?.AlertDialogHeader??F,a=e.components?.AlertDialogTitle??I,o=e.components?.AlertDialogDescription??L,s=e.components?.AlertDialogFooter??oe,c=e.components?.Button??E;return(0,d.jsx)(n,{open:e.visible,onOpenChange:e.onVisibleChange,children:(0,d.jsxs)(r,{role:`alertdialog`,"aria-modal":`true`,children:[(0,d.jsxs)(i,{children:[(0,d.jsx)(a,{children:t(`libs:delete_dialog_title`)}),(0,d.jsx)(o,{children:t(`libs:delete_dialog_desc`)})]}),(0,d.jsxs)(s,{children:[(0,d.jsx)(c,{variant:`outline`,onClick:()=>e.onVisibleChange(!1),children:t(`libs:cancel`)}),(0,d.jsx)(c,{variant:`destructive`,onClick:e.onConfirm,children:t(`libs:confirm`)})]})]})})}function Rt(e){let{t}=(0,f.useTranslation)(),n=e.components?.AlertDialog??ie,r=e.components?.AlertDialogContent??ae,i=e.components?.AlertDialogHeader??F,a=e.components?.AlertDialogTitle??I,o=e.components?.AlertDialogDescription??L,s=e.components?.AlertDialogFooter??oe,c=e.components?.Button??E;return(0,d.jsx)(n,{open:e.visible,onOpenChange:e.onVisibleChange,children:(0,d.jsxs)(r,{children:[(0,d.jsxs)(i,{children:[(0,d.jsx)(a,{children:t(`libs:quit_warning_title`)}),(0,d.jsx)(o,{children:t(`libs:quite_warning_desc`)})]}),(0,d.jsxs)(s,{children:[(0,d.jsx)(c,{variant:`outline`,onClick:()=>e.onVisibleChange(!1),children:t(`libs:cancel`)}),(0,d.jsx)(c,{variant:`destructive`,onClick:e.onConfirm,children:t(`libs:confirm`)})]})]})})}function zt(e){return{...e.data(),id:e.id}}async function Bt(e,t,n,r){let i=r.filter(e=>!!(e&&!n.has(e.path)));for(let r=0;r<i.length;r+=30){let a=i.slice(r,r+30);(await(0,m.getDocs)((0,m.query)(e,(0,m.where)((0,m.documentId)(),`in`,a.map(e=>e.id))))).forEach(e=>{let r=t(e);n.set(e.ref.path,r)})}}async function Vt(e,t,n){let r=n.filter(e=>!!(e&&!t.has(e.path)));await Promise.all(r.map(async n=>{let r=e(await(0,m.getDoc)(n));t.set(n.path,r)}))}function Ht(e={}){let{cache:t=!0,includeMetadataChanges:n}=e;return{listenOptions:{includeMetadataChanges:n??!t},cache:t}}function Ut(e,t){return t!==!1||!e}function Wt(e,t,n={}){let{listenOptions:r,cache:i}=Ht(n),{onError:a}=n;return e.type,(0,m.onSnapshot)(e,r,e=>{Ut(e.metadata.fromCache,i)&&t(e)},a)}function Gt(e,t){return e.flatMap((e,n)=>{let r=t(e,n);return r==null?[]:[r]})}function Kt(){if(typeof window>`u`)return`pc`;let e=navigator.userAgent,t=navigator.platform,n=/Android/i.test(e),r=/iPhone|iPad|iPod/i.test(e)||t===`MacIntel`&&navigator.maxTouchPoints>1;return n?`android`:r?`ios`:`pc`}function qt(e){let t=(0,l.createContext)(null);function n({children:n,...r}){let[i]=(0,l.useState)(()=>e(r));return(0,d.jsx)(t.Provider,{value:i,children:n})}function r(e){let n=(0,l.useContext)(t);if(!n)throw Error(`Provider๊ฐ ํ์ํฉ๋๋ค.`);return(0,h.useStore)(n,e)}let i=new Map;return{Provider:n,useStore:r,use:new Proxy({},{get:(e,t)=>(i.has(t)||i.set(t,()=>r(e=>e[t])),i.get(t))})}}var Jt=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Yt=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Jt()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ko=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ko`,weekdays:`์ผ์์ผ_์์์ผ_ํ์์ผ_์์์ผ_๋ชฉ์์ผ_๊ธ์์ผ_ํ ์์ผ`.split(`_`),weekdaysShort:`์ผ_์_ํ_์_๋ชฉ_๊ธ_ํ `.split(`_`),weekdaysMin:`์ผ_์_ํ_์_๋ชฉ_๊ธ_ํ `.split(`_`),months:`1์_2์_3์_4์_5์_6์_7์_8์_9์_10์_11์_12์`.split(`_`),monthsShort:`1์_2์_3์_4์_5์_6์_7์_8์_9์_10์_11์_12์`.split(`_`),ordinal:function(e){return e+`์ผ`},formats:{LT:`A h:mm`,LTS:`A h:mm:ss`,L:`YYYY.MM.DD.`,LL:`YYYY๋
MMMM D์ผ`,LLL:`YYYY๋
MMMM D์ผ A h:mm`,LLLL:`YYYY๋
MMMM D์ผ dddd A h:mm`,l:`YYYY.MM.DD.`,ll:`YYYY๋
MMMM D์ผ`,lll:`YYYY๋
MMMM D์ผ A h:mm`,llll:`YYYY๋
MMMM D์ผ dddd A h:mm`},meridiem:function(e){return e<12?`์ค์ `:`์คํ`},relativeTime:{future:`%s ํ`,past:`%s ์ `,s:`๋ช ์ด`,m:`1๋ถ`,mm:`%d๋ถ`,h:`ํ ์๊ฐ`,hh:`%d์๊ฐ`,d:`ํ๋ฃจ`,dd:`%d์ผ`,M:`ํ ๋ฌ`,MM:`%d๋ฌ`,y:`์ผ ๋
`,yy:`%d๋
`}};return n.default.locale(r,null,!0),r}))})),Xt=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),Zt=c(Jt(),1);Yt(),Xt();function Qt(e,t,n){let r=(0,Zt.default)(e);return!e||!r.isValid()?``:r.format(n(t))}function $t(){let{t:e}=(0,f.useTranslation)();return(0,l.useMemo)(()=>({basicDateTimeFormat:(t,n)=>Qt(t,n,e),dateTimeFormat:t=>Qt(t,`libs:datetime.date_time_format`,e),dateFormat:t=>Qt(t,`libs:datetime.date_format`,e),timeFormat:t=>Qt(t,`libs:datetime.time_format`,e)}),[e])}function en(e){let t=(0,Zt.default)(e);return t.isValid()?t.format(`YYYYMMDD`):``}function tn(e){let t=(0,Zt.default)(e);return t.isValid()?t.format(`HH:mm`):``}var nn=e=>{let t=e?.split(`-`)[0]===`ko`?`ko`:`en`;Zt.default.locale(t)};g.default.isInitialized&&nn(g.default.resolvedLanguage||g.default.language),g.default.on(`languageChanged`,nn);function rn(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.substring(t+1)}async function an(e,t,n){if(!n.file)return n.url;try{let r=rn(n.file.name);return await(0,_.getDownloadURL)((await(0,_.uploadBytes)((0,_.ref)(e,r?t+`.`+r:t),n.file,{contentType:n.file.type})).ref)}catch(e){throw console.error(`Firebase image upload failed:`,e),e}}function on(e,t,n,r){let i=new Map,a=[];for(let n of e)i.set(t(n),{...n,subRows:[]});for(let o of e){let e=i.get(t(o)),s=n(o);if(r?.(o)||s==null||s===t(o)){a.push(e);continue}let c=i.get(s);c?c.subRows.push(e):a.push(e)}return a}var sn=(0,l.createContext)({theme:`system`,resolvedTheme:`light`,setTheme:()=>null}),cn=e=>e===`light`||e===`dark`||e===`system`,ln=(e,t,n)=>{let r=localStorage.getItem(e);if(!r)return t;try{let i=JSON.parse(r);if(cn(i))return i;if(i&&typeof i==`object`&&`theme`in i&&`time`in i){let r=i;if(!cn(r.theme)||typeof r.time!=`number`)return t;let a=Date.now(),o=n*60*60*1e3;return a-r.time<o?r.theme:(localStorage.removeItem(e),t)}}catch{if(cn(r))return r}return t};function un({children:e,defaultTheme:t=`system`,storageKey:n=`vite-ui-theme`,themeExpiryHours:r=24}){let[i,a]=(0,l.useState)(()=>ln(n,t,r)),[o,s]=(0,l.useState)(()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),c=i===`system`?o:i;(0,l.useEffect)(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>{s(e.matches?`dark`:`light`)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,l.useEffect)(()=>{let e=window.document.documentElement,t=c===`dark`?`dark`:`light`;e.classList.remove(`light`,`dark`),e.classList.add(t)},[c]);let u=(0,l.useMemo)(()=>({theme:i,resolvedTheme:c,setTheme:e=>{let t={theme:e,time:Date.now()};localStorage.setItem(n,JSON.stringify(t)),a(e)}}),[i,c,n]);return(0,d.jsx)(sn.Provider,{value:u,children:e})}var dn=()=>(0,l.useContext)(sn);function fn(e){let t=e.trimEnd(),n=t.length===0?null:t[t.length-1];return!n||n.charCodeAt(0)<44032||n.charCodeAt(0)>55203?!1:(n.charCodeAt(0)-44032)%28!=0}function pn(e,t,n){return e+(fn(e)?t:n)}var mn=()=>({updateAt:(0,m.serverTimestamp)(),delete:!0}),hn=()=>({updateAt:(0,m.serverTimestamp)(),delete:!1}),gn=()=>({updateAt:(0,m.serverTimestamp)(),deletedAt:(0,m.serverTimestamp)()}),_n=()=>({updateAt:(0,m.serverTimestamp)(),deletedAt:null});function vn(e){switch(e){case`auth/user-not-found`:return`libs:auth.errors.user_not_found`;case`auth/wrong-password`:return`libs:auth.errors.wrong_password`;case`auth/invalid-credential`:return`libs:auth.errors.invalid_credential`;case`auth/invalid-email`:return`libs:auth.errors.invalid_email`;case`auth/user-disabled`:return`libs:auth.errors.user_disabled`;case`auth/too-many-requests`:return`libs:auth.errors.too_many_requests`;case`auth/network-request-failed`:return`libs:auth.errors.network_request_failed`;case`auth/timeout`:return`libs:auth.errors.timeout`;case`auth/email-already-in-use`:return`libs:auth.errors.email_already_in_use`;case`auth/weak-password`:return`libs:auth.errors.weak_password`;case`auth/requires-recent-login`:return`libs:auth.errors.requires_recent_login`;case`auth/user-token-expired`:return`libs:auth.errors.user_token_expired`;case`auth/popup-blocked`:return`libs:auth.errors.popup_blocked`;case`auth/popup-closed-by-user`:return`libs:auth.errors.popup_closed_by_user`;case`auth/operation-not-allowed`:return`libs:auth.errors.operation_not_allowed`;case`auth/web-storage-unsupported`:return`libs:auth.errors.web_storage_unsupported`;case`auth/unauthorized-domain`:return`libs:auth.errors.unauthorized_domain`;default:return`libs:auth.errors.default`}}var yn={add_assets:`์ ์
์ถ๊ฐ`,auth:{errors:{account_exists_with_different_credential:`์ด๋ฏธ ๋ค๋ฅธ ๋ก๊ทธ์ธ ๋ฐฉ์์ผ๋ก ๊ฐ์
๋ ์ด๋ฉ์ผ์ด์์. ๊ธฐ์กด ๋ฐฉ์์ผ๋ก ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,default:`๋ก๊ทธ์ธ ์ค ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,email_already_in_use:`์ด๋ฏธ ๊ฐ์
๋ ์ด๋ฉ์ผ์ด์์. ๋ก๊ทธ์ธํ๊ฑฐ๋ ๋ค๋ฅธ ์ด๋ฉ์ผ์ ์ฌ์ฉํด ์ฃผ์ธ์.`,internal_error:`๋ฌธ์ ๊ฐ ๋ฐ์ํ์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,invalid_credential:`์ด๋ฉ์ผ ๋๋ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด ์ฃผ์ธ์.`,invalid_email:`์ด๋ฉ์ผ ํ์์ ํ์ธํด ์ฃผ์ธ์.`,network_request_failed:`์ธํฐ๋ท ์ฐ๊ฒฐ์ ํ์ธํ ๋ค ๋ค์ ์๋ํด ์ฃผ์ธ์.`,operation_not_allowed:`ํ์ฌ ์ฌ์ฉํ ์ ์๋ ๋ก๊ทธ์ธ ๋ฐฉ์์ด์์.`,popup_blocked:`๋ก๊ทธ์ธ ์ฐฝ์ด ์ฐจ๋จ๋์์ด์. ํ์
ํ์ฉ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,popup_closed_by_user:`๋ก๊ทธ์ธ ์ฐฝ์ด ๋ซํ์ ๋ก๊ทธ์ธ์ด ์๋ฃ๋์ง ์์์ด์.`,requires_recent_login:`๋ณด์์ ์ํด ๋ค์ ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,timeout:`์๋ต์ด ์ง์ฐ๋๊ณ ์์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,too_many_requests:`์๋๊ฐ ๋๋ฌด ๋ง์์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,unauthorized_domain:`ํ์ฌ ์ ์ํ ๋๋ฉ์ธ์์๋ ๋ก๊ทธ์ธ์ ์ฌ์ฉํ ์ ์์ด์.`,user_disabled:`์ด ๊ณ์ ์ ํ์ฌ ์ฌ์ฉํ ์ ์์ด์. ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ํด ์ฃผ์ธ์.`,user_not_found:`์
๋ ฅํ ์ ๋ณด์ ์ผ์นํ๋ ๊ณ์ ์ ์ฐพ์ ์ ์์ด์.`,user_token_expired:`๋ก๊ทธ์ธ ์๊ฐ์ด ๋ง๋ฃ๋์์ด์. ๋ค์ ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,weak_password:`๋น๋ฐ๋ฒํธ๋ 6์ ์ด์์ผ๋ก ์
๋ ฅํด ์ฃผ์ธ์.`,web_storage_unsupported:`ํ์ฌ ๋ธ๋ผ์ฐ์ ์ค์ ์์๋ ๋ก๊ทธ์ธ์ ์งํํ ์ ์์ด์.`,wrong_password:`์ด๋ฉ์ผ ๋๋ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด ์ฃผ์ธ์.`}},cancel:`์ทจ์`,confirm:`ํ์ธ`,datetime:{date_format:`YYYY๋
M์ D์ผ`,date_time_format:`YYYY๋
M์ D์ผ A h:mm:ss`,time_format:`A h:mm:ss`},delete_dialog_desc:`์ด ํญ๋ชฉ์ ์ญ์ ํฉ๋๋ค.`,delete_dialog_title:`์ญ์ ํ ๊น์?`,no_results:`๊ฒฐ๊ณผ ์์`,quit_warning_title:`๋ชจ๋ ๋ณ๊ฒฝ ์ฌํญ์ ์ทจ์ํ ๊น์?`,quite_warning_desc:`๋ณ๊ฒฝ๋ ๋ชจ๋ ์ฌํญ์ ์ทจ์ํ๊ณ ์ด์ ํ๋ฉด์ผ๋ก ๋์๊ฐ๋๋ค.`,time:`์๊ฐ`,unknown_error_occurred:`์ ์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.`},bn={add_assets:`Add Assets`,auth:{errors:{account_exists_with_different_credential:`This email is already linked to another sign-in method. Please use that method to sign in.`,default:`We couldnโt complete the sign-in. Please try again later.`,email_already_in_use:`This email is already registered. Sign in or use a different email.`,internal_error:`Something went wrong. Please try again later.`,invalid_credential:`Please check your email or password.`,invalid_email:`Please check your email format.`,network_request_failed:`Check your internet connection and try again.`,operation_not_allowed:`This sign-in method is currently unavailable.`,popup_blocked:`The sign-in window was blocked. Please allow pop-ups and try again.`,popup_closed_by_user:`The sign-in window was closed before completion.`,requires_recent_login:`For security reasons, please sign in again.`,timeout:`The request is taking too long. Please try again.`,too_many_requests:`Too many attempts. Please try again later.`,unauthorized_domain:`Sign-in is not available on this domain.`,user_disabled:`This account is currently unavailable. Please contact support.`,user_not_found:`We couldnโt find an account matching that information.`,user_token_expired:`Your session has expired. Please sign in again.`,weak_password:`Your password must be at least 6 characters long.`,web_storage_unsupported:`Sign-in is not available with your current browser settings.`,wrong_password:`Please check your email or password.`}},cancel:`Cancel`,confirm:`Confirm`,datetime:{date_format:`MMMM D, YYYY`,date_time_format:`MMMM D, YYYY h:mm:ss A`,time_format:`h:mm:ss A`},delete_dialog_desc:`This item will be deleted.`,delete_dialog_title:`Delete?`,no_results:`No results`,quit_warning_title:`Discard all changes?`,quite_warning_desc:`All changes will be canceled and you will go back to the previous screen.`,time:`Time`,unknown_error_occurred:`Unknown error occurred.`};function xn(e){e.hasResourceBundle(`ko`,`libs`)||e.addResourceBundle(`ko`,`libs`,yn,!0,!1),e.hasResourceBundle(`en`,`libs`)||e.addResourceBundle(`en`,`libs`,bn,!0,!1)}var Sn={Info:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`},Solid:{"--normal-bg":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`}},Success:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-green-600), var(--color-green-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`},Solid:{"--normal-bg":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`}},Warning:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-amber-600), var(--color-amber-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`},Solid:{"--normal-bg":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`}},Destructive:{Soft:{"--normal-bg":`color-mix(in oklab, var(--destructive) 10%, var(--background))`,"--normal-text":`var(--destructive)`,"--normal-border":`var(--destructive)`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`var(--destructive)`,"--normal-border":`var(--destructive)`},Solid:{"--normal-bg":`light-dark(var(--destructive), color-mix(in oklab, var(--destructive) 60%, var(--background)))`,"--normal-text":`var(--color-white)`,"--normal-border":`transparent`}}},Cn={initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}},wn={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}};exports.AnimatedSwapIcon=Ft,exports.BaseDateTimeSelector=It,exports.BaseDeleteAlertDialog=Lt,exports.BaseRouterPromptAlertDialog=Rt,exports.CrossfadeImage=v,exports.DataTable=Mt,exports.DefaultCalendar=R,exports.DefaultDialogContent=ae,exports.DefaultDialogDescription=L,exports.DefaultDialogFooter=oe,exports.DefaultDialogHeader=F,exports.DefaultDialogRoot=ie,exports.DefaultDialogTitle=I,exports.DefaultFieldGroup=se,exports.DefaultInputGroup=z,exports.DefaultInputGroupAddon=ce,exports.DefaultInputGroupInput=B,exports.DefaultTable=j,exports.DefaultTableBody=N,exports.DefaultTableCell=re,exports.DefaultTableHead=ne,exports.DefaultTableHeader=M,exports.DefaultTableRow=P,exports.DefaultTimeIcon=V,exports.GroupedDataTable=Nt,exports.ImageUploadField=le,exports.ImageUploadItem=A,exports.ImageUploadSortableField=ue,exports.Localized=k,exports.SUPPORTED_LOCALES=D,exports.ThemeProvider=un,exports.ToastCSS=Sn,exports.buildTreeWithSubRows=on,exports.createZustandContext=qt,exports.dateIdFormat=en,exports.delItem=gn,exports.delItemLegacy=mn,exports.fadeProps=wn,exports.fetchItems=Bt,exports.fetchItemsByOne=Vt,exports.getAuthErrorKey=vn,exports.getFileExtension=rn,exports.getPlatformType=Kt,exports.getSnapshots=Wt,exports.hasLastConsonant=fn,exports.initIenlabI18n=xn,exports.mapNotNull=Gt,exports.setLocalizedLocaleResolver=te,exports.slideFadeProps=Cn,exports.snapshotToData=zt,exports.time24Format=tn,exports.undelItem=_n,exports.undelItemLegacy=hn,exports.uploadImage=an,exports.useDateTimeFormatters=$t,exports.useTheme=dn,exports.withLetterParticle=pn;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("react");l=c(l,1);let u=require("motion/react"),d=require("react/jsx-runtime"),f=require("react-i18next"),p=require("@tanstack/react-table"),m=require("firebase/firestore"),h=require("zustand/react"),g=require("i18next");g=c(g,1);let _=require("firebase/storage");function v({placeholder:e,src:t,onLoadError:n,...r}){let[i,a]=(0,l.useState)(()=>{if(typeof window>`u`||!t)return!1;let e=new Image;return e.src=t,e.complete&&e.naturalWidth>0}),[o,s]=(0,l.useState)(t);return o!==t&&(s(t),a(!1)),(0,l.useEffect)(()=>{if(!t)return;let e=new Image;return e.src=t,e.onload=()=>a(!0),e.onerror=e=>{n?n(e):console.error(`CrossfadeImage: Failed to load image`,t)},e.complete&&e.naturalWidth>0&&e.onload(new Event(`load`)),()=>{e.onload=null,e.onerror=null}},[t,n]),(0,d.jsx)(u.AnimatePresence,{children:i&&t?(0,d.jsx)(u.motion.img,{src:t,...r,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{...r.style}},`loaded-image`):(0,d.jsx)(u.motion.div,{initial:{opacity:1},transition:{duration:.3},style:{...r.style},children:e??(0,d.jsx)(`div`,{className:`w-full h-full bg-sidebar`})},`placeholder`)})}var y=({children:e})=>(0,d.jsx)(`div`,{children:e}),b=e=>(0,d.jsx)(`label`,{...e}),x=({children:e})=>(0,d.jsx)(`p`,{children:e}),S=e=>(0,d.jsx)(`input`,{...e}),C=({children:e,...t})=>(0,d.jsx)(`div`,{...t,children:e}),w=e=>null,T=({children:e,...t})=>(0,d.jsx)(`div`,{...t,children:e}),E=({children:e,type:t=`button`,...n})=>(0,d.jsx)(`button`,{type:t,...n,children:e}),ee=({className:e})=>(0,d.jsx)(`span`,{className:e,children:`ร`}),D=[`ko`,`en`],O=null;function te(e){O=e}var k={get(e,t=`ko`){let n=O?.();return e[D.includes(n)?n:t]??e[t]},ko(e){return e.ko}},A=class{url=``;file=null;constructor(e={}){Object.assign(this,e)}isBlobUrl(){return this.url.startsWith(`blob:`)}revokeIfNeeded(){this.file&&this.isBlobUrl()&&URL.revokeObjectURL(this.url)}get isEmpty(){return!this.file&&!this.url}},j=e=>(0,d.jsx)(`table`,{...e}),M=e=>(0,d.jsx)(`thead`,{...e}),ne=e=>(0,d.jsx)(`tbody`,{...e}),N=e=>(0,d.jsx)(`tr`,{...e}),re=e=>(0,d.jsx)(`th`,{...e}),ie=e=>(0,d.jsx)(`td`,{...e}),ae=({open:e,children:t})=>e?(0,d.jsx)(`div`,{children:t}):null,oe=e=>(0,d.jsx)(`div`,{...e}),P=e=>(0,d.jsx)(`div`,{...e}),F=e=>(0,d.jsx)(`h2`,{...e}),se=e=>(0,d.jsx)(`p`,{...e}),ce=e=>(0,d.jsx)(`div`,{...e}),I=e=>(0,d.jsx)(`div`,{children:`Calendar`}),le=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),ue=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),de=e=>(0,d.jsx)(`input`,{...e}),fe=e=>(0,d.jsx)(`div`,{className:e.className,children:e.children}),pe=({className:e})=>(0,d.jsx)(`span`,{className:e,children:`๐`}),L={wrapper:{display:`flex`,flexDirection:`column`,gap:`1rem`},trigger:{display:`block`,cursor:`pointer`,borderRadius:`1.5rem`},card:{position:`relative`,overflow:`hidden`,borderRadius:`1.5rem`,border:`1px solid var(--border)`,backgroundColor:`var(--card)`,transition:`background-color 160ms ease, box-shadow 160ms ease`},frame:{position:`relative`,width:`100%`,aspectRatio:`16 / 9`},imageLayer:{position:`absolute`,inset:0,padding:`1.5rem`},imageBox:{margin:`0 auto`,maxWidth:`100%`,maxHeight:`100%`},image:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`},empty:{display:`flex`,width:`100%`,height:`100%`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`1rem`,color:`var(--muted-foreground)`,textAlign:`center`,padding:`1rem`,boxSizing:`border-box`},badge:{borderRadius:`1rem`,backgroundColor:`var(--secondary)`,padding:`0.75rem 1rem`,fontSize:`0.875rem`,lineHeight:1.2,color:`var(--secondary-foreground)`},hint:{margin:0,fontSize:`0.875rem`,lineHeight:1.4},overlay:{pointerEvents:`none`,position:`absolute`,inset:0,borderRadius:`inherit`,boxShadow:`inset 0 0 0 0 rgba(59, 130, 246, 0)`,transition:`box-shadow 160ms ease`}};function me({id:e,label:t,uploadHintText:n,descriptionText:r,value:i,onChange:a,aspectRatio:o=`1 / 1`,accept:s=`image/*`,components:c}){let{t:u}=(0,f.useTranslation)(),p=c?.Field??y,m=c?.FieldLabel??b,h=c?.FieldDescription??x,g=c?.Input??S,_={...L.imageBox,aspectRatio:o},[C,w]=(0,l.useState)(!1);return(0,d.jsxs)(p,{children:[(0,d.jsx)(m,{htmlFor:e,children:t}),(0,d.jsxs)(`div`,{style:L.wrapper,children:[(0,d.jsx)(`label`,{htmlFor:e,style:{...L.trigger,backgroundColor:C?`var(--accent)`:`var(--card)`},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:(0,d.jsxs)(`div`,{style:L.card,children:[(0,d.jsx)(`div`,{style:L.frame,children:i.url?(0,d.jsx)(`div`,{style:L.imageLayer,children:(0,d.jsx)(`div`,{style:_,children:(0,d.jsx)(v,{src:i.url,className:``,alt:t,style:L.image})})}):(0,d.jsxs)(`div`,{style:L.empty,children:[(0,d.jsx)(`div`,{style:L.badge,children:u(`libs:add_assets`)}),(0,d.jsx)(`p`,{style:L.hint,children:n})]})}),(0,d.jsx)(`div`,{style:{...L.overlay,boxShadow:C?`inset 0 0 0 2px rgba(59, 130, 246, 0.16)`:`inset 0 0 0 0 rgba(59, 130, 246, 0)`}})]})}),(0,d.jsx)(g,{id:e,type:`file`,accept:s,onChange:e=>{let t=e.target.files?.[0];t&&(i.revokeIfNeeded(),a(new A({file:t,url:URL.createObjectURL(t)})),e.currentTarget.value=``)},style:{display:`none`}}),(0,d.jsx)(h,{children:r})]})]})}var R={wrapper:{display:`flex`,flexDirection:`column`,gap:`0.75rem`},outerBox:{borderRadius:`1.5rem`,border:`1px solid var(--border)`,backgroundColor:`var(--card)`,overflow:`hidden`},scrollArea:{width:`100%`,overflowX:`auto`,overflowY:`hidden`,whiteSpace:`nowrap`},list:{display:`flex`,width:`max-content`,gap:`1rem`,padding:`1rem`},item:{position:`relative`,flexShrink:0},card:{position:`relative`,width:`15rem`,overflow:`hidden`,borderRadius:`0.75rem`,padding:0,backgroundColor:`var(--card)`,border:`1px solid var(--border)`,boxSizing:`border-box`},cardInner:{position:`relative`,width:`100%`,height:`100%`},image:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`},removeButton:{position:`absolute`,right:`1rem`,bottom:`1rem`,borderRadius:`9999px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.12)`},uploadLabel:{display:`block`,flexShrink:0,cursor:`pointer`},uploadCard:{width:`15rem`,overflow:`hidden`,borderRadius:`0.75rem`,padding:0,border:`1px dashed var(--border)`,backgroundColor:`var(--card)`,boxSizing:`border-box`,transition:`background-color 160ms ease`},uploadCardInner:{display:`flex`,width:`100%`,height:`100%`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`1rem`,color:`var(--muted-foreground)`,textAlign:`center`,padding:`1rem`,boxSizing:`border-box`},badge:{borderRadius:`1rem`,backgroundColor:`var(--secondary)`,padding:`0.75rem 1rem`,fontSize:`0.875rem`,lineHeight:1.2,color:`var(--secondary-foreground)`},hint:{margin:0,fontSize:`0.875rem`,lineHeight:1.4},description:{marginTop:`0.25rem`},hiddenInput:{display:`none`},scrollBar:{marginLeft:`1rem`,marginRight:`1rem`}};function he({id:e,label:t,descriptionText:n,uploadHintText:r,items:i,onChange:a,aspectRatio:o=`1 / 1`,accept:s=`image/*`,components:c}){let{t:l}=(0,f.useTranslation)(),p=c?.Field??y,m=c?.FieldLabel??b,h=c?.FieldDescription??x,g=c?.Input??S,_=c?.ScrollArea??C,D=c?.ScrollBar??w,O=c?.Card??T,te=c?.Button??E,k=c?.CloseIcon??ee,j=e=>{e.revokeIfNeeded(),a(i.filter(t=>t!==e))},M=e=>{!e||e.length===0||a([...i,...Array.from(e).map(e=>new A({file:e,url:URL.createObjectURL(e)}))])},ne={...R.card,aspectRatio:o},N={...R.uploadCard,aspectRatio:o};return(0,d.jsxs)(p,{children:[(0,d.jsx)(m,{htmlFor:e,children:t}),(0,d.jsxs)(`div`,{style:R.wrapper,children:[(0,d.jsxs)(`div`,{style:R.outerBox,children:[(0,d.jsxs)(_,{style:R.scrollArea,children:[(0,d.jsxs)(u.Reorder.Group,{axis:`x`,values:i,onReorder:a,layoutScroll:!0,style:R.list,children:[i.map(e=>(0,d.jsx)(u.Reorder.Item,{value:e,style:R.item,children:(0,d.jsx)(O,{style:ne,children:(0,d.jsxs)(`div`,{style:R.cardInner,children:[(0,d.jsx)(v,{src:e.url,className:``,alt:t,style:R.image,draggable:!1}),(0,d.jsx)(te,{type:`button`,style:R.removeButton,onClick:()=>j(e),children:(0,d.jsx)(k,{})})]})})},e.url)),(0,d.jsx)(`label`,{htmlFor:e,style:R.uploadLabel,children:(0,d.jsx)(O,{style:N,onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`var(--accent)`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`var(--card)`},children:(0,d.jsxs)(`div`,{style:R.uploadCardInner,children:[(0,d.jsx)(`div`,{style:R.badge,children:l(`libs:add_assets`)}),(0,d.jsx)(`p`,{style:R.hint,children:r})]})})})]}),(0,d.jsx)(D,{orientation:`horizontal`,style:R.scrollBar})]}),(0,d.jsx)(g,{id:e,type:`file`,accept:s,multiple:!0,onChange:e=>{M(e.target.files),e.currentTarget.value=``},style:R.hiddenInput})]}),(0,d.jsx)(`div`,{style:R.description,children:(0,d.jsx)(h,{children:n})})]})]})}function ge(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ge(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function _e(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ge(e))&&(r&&(r+=` `),r+=t);return r}var ve=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ye=(e,t)=>({classGroupId:e,validator:t}),be=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),xe=`-`,Se=[],Ce=`arbitrary..`,we=e=>{let t=De(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ee(e);let n=e.split(xe);return Te(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ve(i,t):t:i||Se}return n[e]||Se}}},Te=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Te(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(xe):e.slice(t).join(xe),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ee=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ce+r:void 0})(),De=e=>{let{theme:t,classGroups:n}=e;return Oe(n,t)},Oe=(e,t)=>{let n=be();for(let r in e){let i=e[r];ke(i,n,r,t)}return n},ke=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ae(i,t,n,r)}},Ae=(e,t,n,r)=>{if(typeof e==`string`){je(e,t,n);return}if(typeof e==`function`){Me(e,t,n,r);return}Ne(e,t,n,r)},je=(e,t,n)=>{let r=e===``?t:Pe(t,e);r.classGroupId=n},Me=(e,t,n,r)=>{if(Fe(e)){ke(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ye(n,e))},Ne=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ke(o,Pe(t,a),n,r)}},Pe=(e,t)=>{let n=e,r=t.split(xe),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=be(),n.nextPart.set(t,i)),n=i}return n},Fe=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ie=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Le=`!`,Re=`:`,ze=[],Be=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ve=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Re){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Le)?(c=s.slice(0,-1),l=!0):s.startsWith(Le)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Be(t,l,c,u)};if(t){let e=t+Re,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Be(ze,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},He=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ue=e=>({cache:Ie(e.cacheSize),parseClassName:Ve(e),sortModifiers:He(e),postfixLookupClassGroupIds:We(e),...we(e)}),We=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ge=/\s+/,Ke=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ge),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Le:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},qe=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Je(n))&&(i&&(i+=` `),i+=r);return i},Je=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Je(e[r]))&&(n&&(n+=` `),n+=t);return n},Ye=(e,...t)=>{let n,r,i,a,o=o=>(n=Ue(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ke(e,n);return i(e,a),a};return a=o,(...e)=>a(qe(...e))},Xe=[],z=e=>{let t=t=>t[e]||Xe;return t.isThemeGetter=!0,t},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,et=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,it=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>$e.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),at=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>et.test(e),ot=()=>!0,st=e=>tt.test(e)&&!nt.test(e),ct=()=>!1,lt=e=>rt.test(e),ut=e=>it.test(e),dt=e=>!W(e)&&!G(e),ft=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),pt=e=>K(e,jt,ct),W=e=>Ze.test(e),mt=e=>K(e,Mt,st),ht=e=>K(e,Nt,V),gt=e=>K(e,Ft,ot),_t=e=>K(e,Pt,ct),vt=e=>K(e,kt,ct),yt=e=>K(e,At,ut),bt=e=>K(e,It,lt),G=e=>Qe.test(e),xt=e=>Ot(e,Mt),St=e=>Ot(e,Pt),Ct=e=>Ot(e,kt),wt=e=>Ot(e,jt),Tt=e=>Ot(e,At),Et=e=>Ot(e,It,!0),Dt=e=>Ot(e,Ft,!0),K=(e,t,n)=>{let r=Ze.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ot=(e,t,n=!1)=>{let r=Qe.exec(e);return r?r[1]?t(r[1]):n:!1},kt=e=>e===`position`||e===`percentage`,At=e=>e===`image`||e===`url`,jt=e=>e===`length`||e===`size`||e===`bg-size`,Mt=e=>e===`length`,Nt=e=>e===`number`,Pt=e=>e===`family-name`,Ft=e=>e===`number`||e===`weight`,It=e=>e===`shadow`,Lt=Ye(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[B,`full`,`auto`,...w()],E=()=>[H,`none`,`subgrid`,G,W],ee=()=>[`auto`,{span:[`full`,H,G,W]},H,G,W],D=()=>[H,`auto`,G,W],O=()=>[`auto`,`min`,`max`,`fr`,G,W],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ne=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[e,G,W],re=()=>[...b(),Ct,vt,{position:[G,W]}],ie=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,wt,pt,{size:[G,W]}],oe=()=>[at,xt,mt],P=()=>[``,`none`,`full`,l,G,W],F=()=>[``,V,xt,mt],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[V,at,Ct,vt],le=()=>[``,`none`,m,G,W],ue=()=>[`none`,V,G,W],de=()=>[`none`,V,G,W],fe=()=>[V,G,W],pe=()=>[B,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[ot],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[dt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[ft],columns:[{columns:[V,W,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,G,W]}],basis:[{basis:[B,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,G,W]}],shrink:[{shrink:[``,V,G,W]}],order:[{order:[H,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...ne()]}],"min-block-size":[{"min-block":[`auto`,...ne()]}],"max-block-size":[{"max-block":[`none`,...ne()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,xt,mt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Dt,gt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,at,W]}],"font-family":[{font:[St,_t,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[V,`none`,G,ht]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,G,mt]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[V,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[H,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,G,W],radial:[``,G,W],conic:[H,G,W]},Tt,yt]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,G,W]}],"outline-w":[{outline:[``,V,xt,mt]}],"outline-color":[{outline:N()}],shadow:[{shadow:[``,`none`,u,Et,bt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":[`none`,d,Et,bt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[V,mt]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":[`none`,f,Et,bt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[V,G,W]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:le()}],brightness:[{brightness:[V,G,W]}],contrast:[{contrast:[V,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Et,bt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:[``,V,G,W]}],"hue-rotate":[{"hue-rotate":[V,G,W]}],invert:[{invert:[``,V,G,W]}],saturate:[{saturate:[V,G,W]}],sepia:[{sepia:[``,V,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[V,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[V,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,G,W]}],accent:[{accent:N()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...N()]}],"stroke-w":[{stroke:[V,xt,mt,ht]}],stroke:[{stroke:[`none`,...N()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Rt(...e){return Lt(_e(e))}function zt({columns:e,data:t,getRowId:n,selectionState:r,onClick:i,components:a}){let[o,s]=r,c=(0,p.useReactTable)({data:t,columns:e,state:{rowSelection:o},getRowId:n,enableRowSelection:!0,onRowSelectionChange:s,getCoreRowModel:(0,p.getCoreRowModel)()}),{t:l}=(0,f.useTranslation)(),u=a?.Table??j,m=a?.TableHeader??M,h=a?.TableBody??ne,g=a?.TableRow??N,_=a?.TableHead??re,v=a?.TableCell??ie;return(0,d.jsxs)(u,{children:[(0,d.jsx)(m,{children:c.getHeaderGroups().map(e=>(0,d.jsx)(g,{children:e.headers.map(e=>(0,d.jsx)(_,{className:Rt(e.column.columnDef.meta?.className),children:e.isPlaceholder?null:(0,p.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,d.jsx)(h,{children:c.getRowModel().rows?.length?c.getRowModel().rows.map(e=>(0,d.jsx)(g,{"data-state":e.getIsSelected()&&`selected`,onClick:()=>i(e.original),children:e.getVisibleCells().map(e=>(0,d.jsx)(v,{className:Rt(e.column.columnDef.meta?.className),children:(0,p.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,d.jsx)(g,{children:(0,d.jsx)(v,{colSpan:e.length,className:`h-24 text-center`,children:l(`libs:no_results`)})})})]})}function Bt({columns:e,data:t,getRowId:n,selectionState:r,onClick:i,components:a,indentSize:o=24}){let[s,c]=r,l=(0,p.useReactTable)({data:t,columns:e,state:{rowSelection:s,expanded:!0},getRowId:n,enableRowSelection:!0,onRowSelectionChange:c,getSubRows:e=>e.subRows,getCoreRowModel:(0,p.getCoreRowModel)(),getExpandedRowModel:(0,p.getExpandedRowModel)()}),{t:u}=(0,f.useTranslation)(),m=a?.Table??j,h=a?.TableHeader??M,g=a?.TableBody??ne,_=a?.TableRow??N,v=a?.TableHead??re,y=a?.TableCell??ie;return(0,d.jsxs)(m,{style:{width:`100%`},children:[(0,d.jsx)(h,{children:l.getHeaderGroups().map(e=>(0,d.jsx)(_,{children:e.headers.map(e=>(0,d.jsx)(v,{className:Rt(e.column.columnDef.meta?.className),children:e.isPlaceholder?null:(0,p.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,d.jsx)(g,{children:l.getRowModel().rows?.length?l.getRowModel().rows.map(e=>(0,d.jsx)(_,{id:e.id,"data-state":e.getIsSelected()&&`selected`,onClick:()=>i(e.original),children:e.getVisibleCells().map((t,n)=>{let r=n===0?e.depth*o:0;return(0,d.jsxs)(y,{className:Rt(t.column.columnDef.meta?.className),style:{paddingLeft:r?`${r}px`:void 0},children:[n===0&&e.depth>0&&(0,d.jsx)(`span`,{className:`mr-2 text-muted-foreground`,children:`โณ`}),(0,p.flexRender)(t.column.columnDef.cell,t.getContext())]},t.id)})},e.id)):(0,d.jsx)(_,{children:(0,d.jsx)(y,{colSpan:e.length,className:`h-24 text-center`,children:u(`libs:no_results`)})})})]})}var Vt={initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15,ease:`easeOut`}};function Ht({loading:e,loadingNode:t,idleNode:n,className:r=`w-6 h-6 flex flex-row items-center justify-center`,motionProps:i}){return(0,d.jsx)(`div`,{className:r,children:(0,d.jsx)(u.AnimatePresence,{mode:`popLayout`,initial:!1,children:(0,l.createElement)(u.motion.div,{...Vt,...i,key:e?`loading`:`idle`},e?t:n)})})}function Ut(e){let{t}=(0,f.useTranslation)(),n=e.date?[String(e.date.getHours()).padStart(2,`0`),String(e.date.getMinutes()).padStart(2,`0`),String(e.date.getSeconds()).padStart(2,`0`)].join(`:`):`10:30:00`,r=t=>{if(!t){e.setDate(void 0);return}if(!e.date){e.setDate(t);return}let n=new Date(t);n.setHours(e.date.getHours(),e.date.getMinutes(),e.date.getSeconds(),e.date.getMilliseconds()),e.setDate(n)},i=t=>{let[n=`0`,r=`0`,i=`0`]=t.split(`:`),a=e.date?new Date(e.date):new Date;a.setHours(Number(n),Number(r),Number(i),0),e.setDate(a)},a=e.components?.Calendar??I,o=e.components?.Field??y,s=e.components?.FieldLabel??b,c=e.components?.FieldGroup??le,l=e.components?.InputGroup??ue,u=e.components?.InputGroupInput??de,p=e.components?.InputGroupAddon??fe,m=e.components?.TimeIcon??pe;return(0,d.jsxs)(`div`,{children:[(0,d.jsx)(a,{mode:`single`,captionLayout:`dropdown`,defaultMonth:e.date,selected:e.date,onSelect:r}),(0,d.jsx)(c,{className:`border-t p-4`,children:(0,d.jsxs)(o,{children:[(0,d.jsx)(s,{htmlFor:`time`,children:t(`libs:time`)}),(0,d.jsxs)(l,{children:[(0,d.jsx)(u,{id:`time`,type:`time`,step:`1`,value:n,onChange:e=>i(e.target.value),className:`appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none`}),(0,d.jsx)(p,{children:(0,d.jsx)(m,{className:`text-muted-foreground`})})]})]})})]})}function Wt(e){let{t}=(0,f.useTranslation)(),n=e.components?.AlertDialog??ae,r=e.components?.AlertDialogContent??oe,i=e.components?.AlertDialogHeader??P,a=e.components?.AlertDialogTitle??F,o=e.components?.AlertDialogDescription??se,s=e.components?.AlertDialogFooter??ce,c=e.components?.Button??E;return(0,d.jsx)(n,{open:e.visible,onOpenChange:e.onVisibleChange,children:(0,d.jsxs)(r,{role:`alertdialog`,"aria-modal":`true`,children:[(0,d.jsxs)(i,{children:[(0,d.jsx)(a,{children:t(`libs:delete_dialog_title`)}),(0,d.jsx)(o,{children:t(`libs:delete_dialog_desc`)})]}),(0,d.jsxs)(s,{children:[(0,d.jsx)(c,{variant:`outline`,onClick:()=>e.onVisibleChange(!1),children:t(`libs:cancel`)}),(0,d.jsx)(c,{variant:`destructive`,onClick:e.onConfirm,children:t(`libs:confirm`)})]})]})})}function Gt(e){let{t}=(0,f.useTranslation)(),n=e.components?.AlertDialog??ae,r=e.components?.AlertDialogContent??oe,i=e.components?.AlertDialogHeader??P,a=e.components?.AlertDialogTitle??F,o=e.components?.AlertDialogDescription??se,s=e.components?.AlertDialogFooter??ce,c=e.components?.Button??E;return(0,d.jsx)(n,{open:e.visible,onOpenChange:e.onVisibleChange,children:(0,d.jsxs)(r,{children:[(0,d.jsxs)(i,{children:[(0,d.jsx)(a,{children:t(`libs:quit_warning_title`)}),(0,d.jsx)(o,{children:t(`libs:quite_warning_desc`)})]}),(0,d.jsxs)(s,{children:[(0,d.jsx)(c,{variant:`outline`,onClick:()=>e.onVisibleChange(!1),children:t(`libs:cancel`)}),(0,d.jsx)(c,{variant:`destructive`,onClick:e.onConfirm,children:t(`libs:confirm`)})]})]})})}function q(e,t){if(e===!1||e==null)throw Error(t)}function J(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Kt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function qt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Jt(e,t,n=`/`){return Yt(e,t,n,!1)}function Yt(e,t,n,r,i){let a=Y((typeof t==`string`?qt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Zt(e),s=null,c=mn(a);for(let e=0;s==null&&e<o.length;++e)s=dn(o[e],c,r);return s}function Xt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Zt(e){let t=Qt(e);return en(t),t}function Qt(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;q(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=X([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(q(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Qt(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:ln(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of $t(e.path))a(e,t,!0,n)}),t}function $t(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=$t(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function en(e){e.sort((e,t)=>e.score===t.score?un(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var tn=/^:[\w-]+$/,nn=3,rn=2,an=1,on=10,sn=-2,cn=e=>e===`*`;function ln(e,t){let n=e.split(`/`),r=n.length;return n.some(cn)&&(r+=sn),t&&(r+=rn),n.filter(e=>!cn(e)).reduce((e,t)=>e+(tn.test(t)?nn:t===``?an:on),r)}function un(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function dn(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=fn({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=fn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:X([a,u.pathname]),pathnameBase:wn(X([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=X([a,u.pathnameBase]))}return o}function fn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function pn(e,t=!1,n=!0){J(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function mn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return J(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Y(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var hn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function gn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?qt(e):e,a;return n?(n=Sn(n),a=n.startsWith(`/`)?_n(n.substring(1),`/`):_n(n,t)):a=t,{pathname:a,search:Tn(r),hash:En(i)}}function _n(e,t){let n=Cn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function vn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function yn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function bn(e){let t=yn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function xn(e,t,n,r=!1){let i;typeof e==`string`?i=qt(e):(i={...e},q(!i.pathname||!i.pathname.includes(`?`),vn(`?`,`pathname`,`search`,i)),q(!i.pathname||!i.pathname.includes(`#`),vn(`#`,`pathname`,`hash`,i)),q(!i.search||!i.search.includes(`#`),vn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=gn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Sn=e=>e.replace(/\/\/+/g,`/`),X=e=>Sn(e.join(`/`)),Cn=e=>e.replace(/\/+$/,``),wn=e=>Cn(e).replace(/^\/*/,`/`),Tn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,En=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Dn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function On(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function kn(e){return X(e.map(e=>e.route.path).filter(Boolean))||`/`}var An=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function jn(e,t){let n=e;if(typeof n!=`string`||!hn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(An)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Y(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{J(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Mn=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Mn);var Nn=[`GET`,...Mn];new Set(Nn);var Pn=l.createContext(null);Pn.displayName=`DataRouter`;var Fn=l.createContext(null);Fn.displayName=`DataRouterState`;var In=l.createContext(!1);function Ln(){return l.useContext(In)}var Rn=l.createContext({isTransitioning:!1});Rn.displayName=`ViewTransition`;var zn=l.createContext(new Map);zn.displayName=`Fetchers`;var Bn=l.createContext(null);Bn.displayName=`Await`;var Z=l.createContext(null);Z.displayName=`Navigation`;var Vn=l.createContext(null);Vn.displayName=`Location`;var Q=l.createContext({outlet:null,matches:[],isDataRoute:!1});Q.displayName=`Route`;var Hn=l.createContext(null);Hn.displayName=`RouteError`;var Un=`REACT_ROUTER_ERROR`,Wn=`REDIRECT`,Gn=`ROUTE_ERROR_RESPONSE`;function Kn(e){if(e.startsWith(`${Un}:${Wn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function qn(e){if(e.startsWith(`${Un}:${Gn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Dn(t.status,t.statusText,t.data)}catch{}}function Jn(e,{relative:t}={}){q(Yn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=l.useContext(Z),{hash:i,pathname:a,search:o}=er(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:X([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Yn(){return l.useContext(Vn)!=null}function $(){return q(Yn(),`useLocation() may be used only in the context of a <Router> component.`),l.useContext(Vn).location}var Xn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Zn(e){l.useContext(Z).static||l.useLayoutEffect(e)}function Qn(){let{isDataRoute:e}=l.useContext(Q);return e?vr():$n()}function $n(){q(Yn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=l.useContext(Pn),{basename:t,navigator:n}=l.useContext(Z),{matches:r}=l.useContext(Q),{pathname:i}=$(),a=JSON.stringify(bn(r)),o=l.useRef(!1);return Zn(()=>{o.current=!0}),l.useCallback((r,s={})=>{if(J(o.current,Xn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=xn(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:X([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}l.createContext(null);function er(e,{relative:t}={}){let{matches:n}=l.useContext(Q),{pathname:r}=$(),i=JSON.stringify(bn(n));return l.useMemo(()=>xn(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function tr(e,t,n){q(Yn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=l.useContext(Z),{matches:i}=l.useContext(Q),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,u=a&&a.route;{let e=u&&u.path||``;br(s,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
+
|
|
3
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=$(),f;if(t){let e=typeof t==`string`?qt(t):t;q(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let p=f.pathname||`/`,m=p;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Jt(e,{pathname:m});J(u||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),J(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=cr(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:X([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:X([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?l.createElement(Vn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...f},navigationType:`POP`}},g):g}function nr(){let e=_r(),t=On(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=l.createElement(l.Fragment,null,l.createElement(`p`,null,`๐ฟ Hey developer ๐`),l.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,l.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,l.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),l.createElement(l.Fragment,null,l.createElement(`h2`,null,`Unexpected Application Error!`),l.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?l.createElement(`pre`,{style:i},n):null,o)}var rr=l.createElement(nr,null),ir=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=qn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:l.createElement(Q.Provider,{value:this.props.routeContext},l.createElement(Hn.Provider,{value:e,children:this.props.component}));return this.context?l.createElement(or,{error:e},t):t}};ir.contextType=In;var ar=new WeakMap;function or({children:e,error:t}){let{basename:n}=l.useContext(Z);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Kn(t.digest);if(e){let r=ar.get(t);if(r)throw r;let i=jn(e.location,n);if(An&&!ar.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw ar.set(t,n),n}return l.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function sr({routeContext:e,match:t,children:n}){let r=l.useContext(Pn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(Q.Provider,{value:e},n)}function cr(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);q(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,u=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:kn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let d,f=!1,p=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||rr,o&&(s<0&&c===0?(br(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):s===c&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(sr,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?l.createElement(ir,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function lr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ur(e){let t=l.useContext(Pn);return q(t,lr(e)),t}function dr(e){let t=l.useContext(Fn);return q(t,lr(e)),t}function fr(e){let t=l.useContext(Q);return q(t,lr(e)),t}function pr(e){let t=fr(e),n=t.matches[t.matches.length-1];return q(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function mr(){return pr(`useRouteId`)}function hr(){let e=dr(`useNavigation`);return l.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function gr(){let{matches:e,loaderData:t}=dr(`useMatches`);return l.useMemo(()=>e.map(e=>Xt(e,t)),[e,t])}function _r(){let e=l.useContext(Hn),t=dr(`useRouteError`),n=pr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function vr(){let{router:e}=ur(`useNavigate`),t=pr(`useNavigate`),n=l.useRef(!1);return Zn(()=>{n.current=!0}),l.useCallback(async(r,i={})=>{J(n.current,Xn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var yr={};function br(e,t,n){!t&&!yr[e]&&(yr[e]=!0,J(!1,n))}l.memo(xr);function xr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return tr(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Sr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){q(!Yn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=l.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=qt(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:h}=n,g=l.useMemo(()=>{let e=Y(u,s);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:h},navigationType:r}},[s,u,d,f,p,m,r,h]);return J(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:l.createElement(Z.Provider,{value:c},l.createElement(Vn.Provider,{children:t,value:g}))}l.Component;var Cr=`get`,wr=`application/x-www-form-urlencoded`;function Tr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Er(e){return Tr(e)&&e.tagName.toLowerCase()===`button`}function Dr(e){return Tr(e)&&e.tagName.toLowerCase()===`form`}function Or(e){return Tr(e)&&e.tagName.toLowerCase()===`input`}function kr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ar(e,t){return e.button===0&&(!t||t===`_self`)&&!kr(e)}var jr=null;function Mr(){if(jr===null)try{new FormData(document.createElement(`form`),0),jr=!1}catch{jr=!0}return jr}var Nr=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Pr(e){return e!=null&&!Nr.has(e)?(J(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wr}"`),null):e}function Fr(e,t){let n,r,i,a,o;if(Dr(e)){let o=e.getAttribute(`action`);r=o?Y(o,t):null,n=e.getAttribute(`method`)||Cr,i=Pr(e.getAttribute(`enctype`))||wr,a=new FormData(e)}else if(Er(e)||Or(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Y(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Cr,i=Pr(e.getAttribute(`formenctype`))||Pr(o.getAttribute(`enctype`))||wr,a=new FormData(o,e),!Mr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Tr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Cr,r=null,i=wr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ir={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Lr=/[&><\u2028\u2029]/g;function Rr(e){return e.replace(Lr,e=>Ir[e])}function zr(e,t){if(e===!1||e==null)throw Error(t)}function Br(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Y(i.pathname,t)===`/`?i.pathname=`${Cn(t)}/_root.${r}`:i.pathname=`${Cn(i.pathname)}.${r}`,i}async function Vr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hr(e){return e!=null&&typeof e.page==`string`}function Ur(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Wr(e,t,n){return Yr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Vr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ur).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Gr(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Kr(e,t,{includeHydrateFallback:n}={}){return qr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function qr(e){return[...new Set(e)]}function Jr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Yr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Hr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Jr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Xr(){let e=l.useContext(Pn);return zr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Zr(){let e=l.useContext(Fn);return zr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Qr=l.createContext(void 0);Qr.displayName=`FrameworkContext`;function $r(){let e=l.useContext(Qr);return zr(e,`You must render this element inside a <HydratedRouter> element`),e}function ei(e,t){let n=l.useContext(Qr),[r,i]=l.useState(!1),[a,o]=l.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=l.useRef(null);l.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),l.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:ti(s,m),onBlur:ti(c,h),onMouseEnter:ti(u,m),onMouseLeave:ti(d,h),onTouchStart:ti(f,m)}]:[a,p,{}]:[!1,p,{}]}function ti(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ni({page:e,...t}){let n=Ln(),{router:r}=Xr(),i=l.useMemo(()=>Jt(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?l.createElement(ii,{page:e,matches:i,...t}):l.createElement(ai,{page:e,matches:i,...t}):null}function ri(e){let{manifest:t,routeModules:n}=$r(),[r,i]=l.useState([]);return l.useEffect(()=>{let r=!1;return Wr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function ii({page:e,matches:t,...n}){let r=$(),{future:i}=$r(),{basename:a}=Xr(),o=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Br(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return l.createElement(l.Fragment,null,o.map(e=>l.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ai({page:e,matches:t,...n}){let r=$(),{future:i,manifest:a,routeModules:o}=$r(),{basename:s}=Xr(),{loaderData:c,matches:u}=Zr(),d=l.useMemo(()=>Gr(e,t,u,a,r,`data`),[e,t,u,a,r]),f=l.useMemo(()=>Gr(e,t,u,a,r,`assets`),[e,t,u,a,r]),p=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let u=Br(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,d,t,e,o]),m=l.useMemo(()=>Kr(f,a),[f,a]),h=ri(f);return l.createElement(l.Fragment,null,p.map(e=>l.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>l.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>l.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function oi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}l.Component;var si=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{si&&(window.__reactRouterVersion=`7.16.0`)}catch{}function ci({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=l.useState({action:n.action,location:n.location}),o=l.useCallback(e=>{r===!1?a(e):l.startTransition(()=>a(e))},[r]);return l.useLayoutEffect(()=>n.listen(o),[n,o]),l.createElement(Sr,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}ci.displayName=`unstable_HistoryRouter`;var li=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ui=l.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:v}=l.useContext(Z),y=typeof u==`string`&&li.test(u),b=jn(u,g);u=b.to;let x=Jn(u,{relative:r}),S=$(),C=null;if(o){let e=xn(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:X([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=ei(n,m),ee=_i(u,{replace:a,mask:o,state:s,target:c,preventScrollReset:d,relative:r,viewTransition:f,defaultShouldRevalidate:p,useTransitions:v});function D(t){e&&e(t),t.defaultPrevented||ee(t)}let O=!(b.isExternal||i),te=l.createElement(`a`,{...m,...E,href:(O?C:void 0)||b.absoluteURL||x,onClick:O?D:e,ref:oi(h,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?l.createElement(l.Fragment,null,te,l.createElement(ni,{page:x})):te});ui.displayName=`Link`;var di=l.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},u){let d=er(a,{relative:c.relative}),f=$(),p=l.useContext(Fn),{navigator:m,basename:h}=l.useContext(Z),g=p!=null&&Di(d)&&o===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Y(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return l.createElement(ui,{...c,"aria-current":w,className:T,ref:u,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});di.displayName=`NavLink`;var fi=l.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Cr,action:s,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=l.useContext(Z),_=bi(),v=xi(s,{relative:u}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&li.test(s);return l.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?l.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});fi.displayName=`Form`;function pi({getKey:e,storageKey:t,...n}){let r=l.useContext(Qr),{basename:i}=l.useContext(Z),a=$(),o=gr();Ti({getKey:e,storageKey:t});let s=l.useMemo(()=>{if(!r||!e)return null;let t=wi(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return l.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Rr(JSON.stringify(t||Si))}, ${Rr(JSON.stringify(s))})`}})}pi.displayName=`ScrollRestoration`;function mi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hi(e){let t=l.useContext(Pn);return q(t,mi(e)),t}function gi(e){let t=l.useContext(Fn);return q(t,mi(e)),t}function _i(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:u}={}){let d=Qn(),f=$(),p=er(e,{relative:o});return l.useCallback(m=>{if(Ar(m,t)){m.preventDefault();let t=n===void 0?Kt(f)===Kt(p):n,h=()=>d(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});u?l.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,o,s,c,u])}var vi=0,yi=()=>`__${String(++vi)}__`;function bi(){let{router:e}=hi(`useSubmit`),{basename:t}=l.useContext(Z),n=mr(),r=e.fetch,i=e.navigate;return l.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Fr(e,t);a.navigate===!1?await r(a.fetcherKey||yi(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function xi(e,{relative:t}={}){let{basename:n}=l.useContext(Z),r=l.useContext(Q);q(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...er(e||`.`,{relative:t})},o=$();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:X([n,a.pathname])),Kt(a)}var Si=`react-router-scroll-positions`,Ci={};function wi(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Y(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Ti({getKey:e,storageKey:t}={}){let{router:n}=hi(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=gi(`useScrollRestoration`),{basename:a}=l.useContext(Z),o=$(),s=gr(),c=hr();l.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Ei(l.useCallback(()=>{if(c.state===`idle`){let t=wi(o,s,a,e);Ci[t]=window.scrollY}try{sessionStorage.setItem(t||Si,JSON.stringify(Ci))}catch(e){J(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Si);e&&(Ci=JSON.parse(e))}catch{}},[t]),l.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Ci,()=>window.scrollY,e?(t,n)=>wi(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),l.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{J(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Ei(e,t){let{capture:n}=t||{};l.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Di(e,{relative:t}={}){let n=l.useContext(Rn);q(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hi(`useViewTransitionState`),i=er(e,{relative:t});if(!n.isTransitioning)return!1;let a=Y(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Y(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fn(i.pathname,o)!=null||fn(i.pathname,a)!=null}function Oi(e){return typeof e==`object`&&!!e&&`shouldRefresh`in e&&!!e.shouldRefresh}function ki({init:e,refresh:t,onDisposed:n}){let r=$(),i=Qn();(0,l.useEffect)(()=>{if(Oi(r.state)){t(),i(r.pathname,{replace:!0,state:{}});return}e()},[r.key,r.pathname,r.state,i,e,t]),(0,l.useEffect)(()=>()=>n(),[n])}function Ai(e){return{...e.data(),id:e.id}}async function ji(e,t,n,r){let i=r.filter(e=>!!(e&&!n.has(e.path)));for(let r=0;r<i.length;r+=30){let a=i.slice(r,r+30);(await(0,m.getDocs)((0,m.query)(e,(0,m.where)((0,m.documentId)(),`in`,a.map(e=>e.id))))).forEach(e=>{let r=t(e);n.set(e.ref.path,r)})}}async function Mi(e,t,n){let r=n.filter(e=>!!(e&&!t.has(e.path)));await Promise.all(r.map(async n=>{let r=e(await(0,m.getDoc)(n));t.set(n.path,r)}))}function Ni(e={}){let{cache:t=!0,includeMetadataChanges:n}=e;return{listenOptions:{includeMetadataChanges:n??!t},cache:t}}function Pi(e,t){return t!==!1||!e}function Fi(e,t,n={}){let{listenOptions:r,cache:i}=Ni(n),{onError:a}=n;return e.type,(0,m.onSnapshot)(e,r,e=>{Pi(e.metadata.fromCache,i)&&t(e)},a)}function Ii(e,t){return e.flatMap((e,n)=>{let r=t(e,n);return r==null?[]:[r]})}function Li(){if(typeof window>`u`)return`pc`;let e=navigator.userAgent,t=navigator.platform,n=/Android/i.test(e),r=/iPhone|iPad|iPod/i.test(e)||t===`MacIntel`&&navigator.maxTouchPoints>1;return n?`android`:r?`ios`:`pc`}function Ri(e){let t=(0,l.createContext)(null);function n({children:n,...r}){let[i]=(0,l.useState)(()=>e(r));return(0,d.jsx)(t.Provider,{value:i,children:n})}function r(e){let n=(0,l.useContext)(t);if(!n)throw Error(`Provider๊ฐ ํ์ํฉ๋๋ค.`);return(0,h.useStore)(n,e)}let i=new Map;return{Provider:n,useStore:r,use:new Proxy({},{get:(e,t)=>(i.has(t)||i.set(t,()=>r(e=>e[t])),i.get(t))})}}var zi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Bi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(zi()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ko=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ko`,weekdays:`์ผ์์ผ_์์์ผ_ํ์์ผ_์์์ผ_๋ชฉ์์ผ_๊ธ์์ผ_ํ ์์ผ`.split(`_`),weekdaysShort:`์ผ_์_ํ_์_๋ชฉ_๊ธ_ํ `.split(`_`),weekdaysMin:`์ผ_์_ํ_์_๋ชฉ_๊ธ_ํ `.split(`_`),months:`1์_2์_3์_4์_5์_6์_7์_8์_9์_10์_11์_12์`.split(`_`),monthsShort:`1์_2์_3์_4์_5์_6์_7์_8์_9์_10์_11์_12์`.split(`_`),ordinal:function(e){return e+`์ผ`},formats:{LT:`A h:mm`,LTS:`A h:mm:ss`,L:`YYYY.MM.DD.`,LL:`YYYY๋
MMMM D์ผ`,LLL:`YYYY๋
MMMM D์ผ A h:mm`,LLLL:`YYYY๋
MMMM D์ผ dddd A h:mm`,l:`YYYY.MM.DD.`,ll:`YYYY๋
MMMM D์ผ`,lll:`YYYY๋
MMMM D์ผ A h:mm`,llll:`YYYY๋
MMMM D์ผ dddd A h:mm`},meridiem:function(e){return e<12?`์ค์ `:`์คํ`},relativeTime:{future:`%s ํ`,past:`%s ์ `,s:`๋ช ์ด`,m:`1๋ถ`,mm:`%d๋ถ`,h:`ํ ์๊ฐ`,hh:`%d์๊ฐ`,d:`ํ๋ฃจ`,dd:`%d์ผ`,M:`ํ ๋ฌ`,MM:`%d๋ฌ`,y:`์ผ ๋
`,yy:`%d๋
`}};return n.default.locale(r,null,!0),r}))})),Vi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),Hi=c(zi(),1);Bi(),Vi();function Ui(e,t,n){let r=(0,Hi.default)(e);return!e||!r.isValid()?``:r.format(n(t))}function Wi(){let{t:e}=(0,f.useTranslation)();return(0,l.useMemo)(()=>({basicDateTimeFormat:(t,n)=>Ui(t,n,e),dateTimeFormat:t=>Ui(t,`libs:datetime.date_time_format`,e),dateFormat:t=>Ui(t,`libs:datetime.date_format`,e),timeFormat:t=>Ui(t,`libs:datetime.time_format`,e)}),[e])}function Gi(e){let t=(0,Hi.default)(e);return t.isValid()?t.format(`YYYYMMDD`):``}function Ki(e){let t=(0,Hi.default)(e);return t.isValid()?t.format(`HH:mm`):``}var qi=e=>{let t=e?.split(`-`)[0]===`ko`?`ko`:`en`;Hi.default.locale(t)};g.default.isInitialized&&qi(g.default.resolvedLanguage||g.default.language),g.default.on(`languageChanged`,qi);function Ji(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.substring(t+1)}async function Yi(e,t,n){if(!n.file)return n.url;try{let r=Ji(n.file.name);return await(0,_.getDownloadURL)((await(0,_.uploadBytes)((0,_.ref)(e,r?t+`.`+r:t),n.file,{contentType:n.file.type})).ref)}catch(e){throw console.error(`Firebase image upload failed:`,e),e}}function Xi(e,t,n,r){let i=new Map,a=[];for(let n of e)i.set(t(n),{...n,subRows:[]});for(let o of e){let e=i.get(t(o)),s=n(o);if(r?.(o)||s==null||s===t(o)){a.push(e);continue}let c=i.get(s);c?c.subRows.push(e):a.push(e)}return a}var Zi=(0,l.createContext)({theme:`system`,resolvedTheme:`light`,setTheme:()=>null}),Qi=e=>e===`light`||e===`dark`||e===`system`,$i=(e,t,n)=>{let r=localStorage.getItem(e);if(!r)return t;try{let i=JSON.parse(r);if(Qi(i))return i;if(i&&typeof i==`object`&&`theme`in i&&`time`in i){let r=i;if(!Qi(r.theme)||typeof r.time!=`number`)return t;let a=Date.now(),o=n*60*60*1e3;return a-r.time<o?r.theme:(localStorage.removeItem(e),t)}}catch{if(Qi(r))return r}return t};function ea({children:e,defaultTheme:t=`system`,storageKey:n=`vite-ui-theme`,themeExpiryHours:r=24}){let[i,a]=(0,l.useState)(()=>$i(n,t,r)),[o,s]=(0,l.useState)(()=>window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),c=i===`system`?o:i;(0,l.useEffect)(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>{s(e.matches?`dark`:`light`)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,l.useEffect)(()=>{let e=window.document.documentElement,t=c===`dark`?`dark`:`light`;e.classList.remove(`light`,`dark`),e.classList.add(t)},[c]);let u=(0,l.useMemo)(()=>({theme:i,resolvedTheme:c,setTheme:e=>{let t={theme:e,time:Date.now()};localStorage.setItem(n,JSON.stringify(t)),a(e)}}),[i,c,n]);return(0,d.jsx)(Zi.Provider,{value:u,children:e})}var ta=()=>(0,l.useContext)(Zi);function na(e){let t=e.trimEnd(),n=t.length===0?null:t[t.length-1];return!n||n.charCodeAt(0)<44032||n.charCodeAt(0)>55203?!1:(n.charCodeAt(0)-44032)%28!=0}function ra(e,t,n){return e+(na(e)?t:n)}var ia=()=>({updateAt:(0,m.serverTimestamp)(),delete:!0}),aa=()=>({updateAt:(0,m.serverTimestamp)(),delete:!1}),oa=()=>({updateAt:(0,m.serverTimestamp)(),deletedAt:(0,m.serverTimestamp)()}),sa=()=>({updateAt:(0,m.serverTimestamp)(),deletedAt:null});function ca(e){switch(e){case`auth/user-not-found`:return`libs:auth.errors.user_not_found`;case`auth/wrong-password`:return`libs:auth.errors.wrong_password`;case`auth/invalid-credential`:return`libs:auth.errors.invalid_credential`;case`auth/invalid-email`:return`libs:auth.errors.invalid_email`;case`auth/user-disabled`:return`libs:auth.errors.user_disabled`;case`auth/too-many-requests`:return`libs:auth.errors.too_many_requests`;case`auth/network-request-failed`:return`libs:auth.errors.network_request_failed`;case`auth/timeout`:return`libs:auth.errors.timeout`;case`auth/email-already-in-use`:return`libs:auth.errors.email_already_in_use`;case`auth/weak-password`:return`libs:auth.errors.weak_password`;case`auth/requires-recent-login`:return`libs:auth.errors.requires_recent_login`;case`auth/user-token-expired`:return`libs:auth.errors.user_token_expired`;case`auth/popup-blocked`:return`libs:auth.errors.popup_blocked`;case`auth/popup-closed-by-user`:return`libs:auth.errors.popup_closed_by_user`;case`auth/operation-not-allowed`:return`libs:auth.errors.operation_not_allowed`;case`auth/web-storage-unsupported`:return`libs:auth.errors.web_storage_unsupported`;case`auth/unauthorized-domain`:return`libs:auth.errors.unauthorized_domain`;default:return`libs:auth.errors.default`}}var la={add_assets:`์ ์
์ถ๊ฐ`,auth:{errors:{account_exists_with_different_credential:`์ด๋ฏธ ๋ค๋ฅธ ๋ก๊ทธ์ธ ๋ฐฉ์์ผ๋ก ๊ฐ์
๋ ์ด๋ฉ์ผ์ด์์. ๊ธฐ์กด ๋ฐฉ์์ผ๋ก ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,default:`๋ก๊ทธ์ธ ์ค ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,email_already_in_use:`์ด๋ฏธ ๊ฐ์
๋ ์ด๋ฉ์ผ์ด์์. ๋ก๊ทธ์ธํ๊ฑฐ๋ ๋ค๋ฅธ ์ด๋ฉ์ผ์ ์ฌ์ฉํด ์ฃผ์ธ์.`,internal_error:`๋ฌธ์ ๊ฐ ๋ฐ์ํ์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,invalid_credential:`์ด๋ฉ์ผ ๋๋ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด ์ฃผ์ธ์.`,invalid_email:`์ด๋ฉ์ผ ํ์์ ํ์ธํด ์ฃผ์ธ์.`,network_request_failed:`์ธํฐ๋ท ์ฐ๊ฒฐ์ ํ์ธํ ๋ค ๋ค์ ์๋ํด ์ฃผ์ธ์.`,operation_not_allowed:`ํ์ฌ ์ฌ์ฉํ ์ ์๋ ๋ก๊ทธ์ธ ๋ฐฉ์์ด์์.`,popup_blocked:`๋ก๊ทธ์ธ ์ฐฝ์ด ์ฐจ๋จ๋์์ด์. ํ์
ํ์ฉ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,popup_closed_by_user:`๋ก๊ทธ์ธ ์ฐฝ์ด ๋ซํ์ ๋ก๊ทธ์ธ์ด ์๋ฃ๋์ง ์์์ด์.`,requires_recent_login:`๋ณด์์ ์ํด ๋ค์ ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,timeout:`์๋ต์ด ์ง์ฐ๋๊ณ ์์ด์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,too_many_requests:`์๋๊ฐ ๋๋ฌด ๋ง์์. ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์.`,unauthorized_domain:`ํ์ฌ ์ ์ํ ๋๋ฉ์ธ์์๋ ๋ก๊ทธ์ธ์ ์ฌ์ฉํ ์ ์์ด์.`,user_disabled:`์ด ๊ณ์ ์ ํ์ฌ ์ฌ์ฉํ ์ ์์ด์. ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ํด ์ฃผ์ธ์.`,user_not_found:`์
๋ ฅํ ์ ๋ณด์ ์ผ์นํ๋ ๊ณ์ ์ ์ฐพ์ ์ ์์ด์.`,user_token_expired:`๋ก๊ทธ์ธ ์๊ฐ์ด ๋ง๋ฃ๋์์ด์. ๋ค์ ๋ก๊ทธ์ธํด ์ฃผ์ธ์.`,weak_password:`๋น๋ฐ๋ฒํธ๋ 6์ ์ด์์ผ๋ก ์
๋ ฅํด ์ฃผ์ธ์.`,web_storage_unsupported:`ํ์ฌ ๋ธ๋ผ์ฐ์ ์ค์ ์์๋ ๋ก๊ทธ์ธ์ ์งํํ ์ ์์ด์.`,wrong_password:`์ด๋ฉ์ผ ๋๋ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด ์ฃผ์ธ์.`}},cancel:`์ทจ์`,confirm:`ํ์ธ`,datetime:{date_format:`YYYY๋
M์ D์ผ`,date_time_format:`YYYY๋
M์ D์ผ A h:mm:ss`,time_format:`A h:mm:ss`},delete_dialog_desc:`์ด ํญ๋ชฉ์ ์ญ์ ํฉ๋๋ค.`,delete_dialog_title:`์ญ์ ํ ๊น์?`,no_results:`๊ฒฐ๊ณผ ์์`,quit_warning_title:`๋ชจ๋ ๋ณ๊ฒฝ ์ฌํญ์ ์ทจ์ํ ๊น์?`,quite_warning_desc:`๋ณ๊ฒฝ๋ ๋ชจ๋ ์ฌํญ์ ์ทจ์ํ๊ณ ์ด์ ํ๋ฉด์ผ๋ก ๋์๊ฐ๋๋ค.`,time:`์๊ฐ`,unknown_error_occurred:`์ ์ ์๋ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.`},ua={add_assets:`Add Assets`,auth:{errors:{account_exists_with_different_credential:`This email is already linked to another sign-in method. Please use that method to sign in.`,default:`We couldnโt complete the sign-in. Please try again later.`,email_already_in_use:`This email is already registered. Sign in or use a different email.`,internal_error:`Something went wrong. Please try again later.`,invalid_credential:`Please check your email or password.`,invalid_email:`Please check your email format.`,network_request_failed:`Check your internet connection and try again.`,operation_not_allowed:`This sign-in method is currently unavailable.`,popup_blocked:`The sign-in window was blocked. Please allow pop-ups and try again.`,popup_closed_by_user:`The sign-in window was closed before completion.`,requires_recent_login:`For security reasons, please sign in again.`,timeout:`The request is taking too long. Please try again.`,too_many_requests:`Too many attempts. Please try again later.`,unauthorized_domain:`Sign-in is not available on this domain.`,user_disabled:`This account is currently unavailable. Please contact support.`,user_not_found:`We couldnโt find an account matching that information.`,user_token_expired:`Your session has expired. Please sign in again.`,weak_password:`Your password must be at least 6 characters long.`,web_storage_unsupported:`Sign-in is not available with your current browser settings.`,wrong_password:`Please check your email or password.`}},cancel:`Cancel`,confirm:`Confirm`,datetime:{date_format:`MMMM D, YYYY`,date_time_format:`MMMM D, YYYY h:mm:ss A`,time_format:`h:mm:ss A`},delete_dialog_desc:`This item will be deleted.`,delete_dialog_title:`Delete?`,no_results:`No results`,quit_warning_title:`Discard all changes?`,quite_warning_desc:`All changes will be canceled and you will go back to the previous screen.`,time:`Time`,unknown_error_occurred:`Unknown error occurred.`};function da(e){e.hasResourceBundle(`ko`,`libs`)||e.addResourceBundle(`ko`,`libs`,la,!0,!1),e.hasResourceBundle(`en`,`libs`)||e.addResourceBundle(`en`,`libs`,ua,!0,!1)}var fa={Info:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`},Solid:{"--normal-bg":`light-dark(var(--color-sky-600), var(--color-sky-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-sky-600), var(--color-sky-400))`}},Success:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-green-600), var(--color-green-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`},Solid:{"--normal-bg":`light-dark(var(--color-green-600), var(--color-green-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-green-600), var(--color-green-400))`}},Warning:{Soft:{"--normal-bg":`color-mix(in oklab, light-dark(var(--color-amber-600), var(--color-amber-400)) 10%, var(--background))`,"--normal-text":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`},Solid:{"--normal-bg":`light-dark(var(--color-amber-600), var(--color-amber-400))`,"--normal-text":`var(--color-white)`,"--normal-border":`light-dark(var(--color-amber-600), var(--color-amber-400))`}},Destructive:{Soft:{"--normal-bg":`color-mix(in oklab, var(--destructive) 10%, var(--background))`,"--normal-text":`var(--destructive)`,"--normal-border":`var(--destructive)`},Outline:{"--normal-bg":`var(--background)`,"--normal-text":`var(--destructive)`,"--normal-border":`var(--destructive)`},Solid:{"--normal-bg":`light-dark(var(--destructive), color-mix(in oklab, var(--destructive) 60%, var(--background)))`,"--normal-text":`var(--color-white)`,"--normal-border":`transparent`}}},pa={initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}},ma={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}};exports.AnimatedSwapIcon=Ht,exports.BaseDateTimeSelector=Ut,exports.BaseDeleteAlertDialog=Wt,exports.BaseRouterPromptAlertDialog=Gt,exports.CrossfadeImage=v,exports.DataTable=zt,exports.DefaultCalendar=I,exports.DefaultDialogContent=oe,exports.DefaultDialogDescription=se,exports.DefaultDialogFooter=ce,exports.DefaultDialogHeader=P,exports.DefaultDialogRoot=ae,exports.DefaultDialogTitle=F,exports.DefaultFieldGroup=le,exports.DefaultInputGroup=ue,exports.DefaultInputGroupAddon=fe,exports.DefaultInputGroupInput=de,exports.DefaultTable=j,exports.DefaultTableBody=ne,exports.DefaultTableCell=ie,exports.DefaultTableHead=re,exports.DefaultTableHeader=M,exports.DefaultTableRow=N,exports.DefaultTimeIcon=pe,exports.GroupedDataTable=Bt,exports.ImageUploadField=me,exports.ImageUploadItem=A,exports.ImageUploadSortableField=he,exports.Localized=k,exports.SUPPORTED_LOCALES=D,exports.ThemeProvider=ea,exports.ToastCSS=fa,exports.buildTreeWithSubRows=Xi,exports.createZustandContext=Ri,exports.dateIdFormat=Gi,exports.delItem=oa,exports.delItemLegacy=ia,exports.fadeProps=ma,exports.fetchItems=ji,exports.fetchItemsByOne=Mi,exports.getAuthErrorKey=ca,exports.getFileExtension=Ji,exports.getPlatformType=Li,exports.getSnapshots=Fi,exports.hasLastConsonant=na,exports.initIenlabI18n=da,exports.mapNotNull=Ii,exports.setLocalizedLocaleResolver=te,exports.slideFadeProps=pa,exports.snapshotToData=Ai,exports.time24Format=Ki,exports.undelItem=sa,exports.undelItemLegacy=aa,exports.uploadImage=Yi,exports.useDateTimeFormatters=Wi,exports.useListScreenLifecycle=ki,exports.useTheme=ta,exports.withLetterParticle=ra;
|