1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,631171,e=>{"use strict";e.s(["default",()=>t]);let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},664659,e=>{"use strict";e.s(["ChevronDown",()=>t.default]);var t=e.i(631171)},555436,e=>{"use strict";e.s(["Search",()=>t],555436);let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},595468,e=>{"use strict";e.s(["CheckCircle2",()=>t],595468);let t=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},879002,e=>{"use strict";e.s(["UserPlus",()=>t],879002);let t=(0,e.i(475254).default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},337822,e=>{"use strict";e.s(["Popover",()=>X,"PopoverAnchor",()=>et,"PopoverContent",()=>ee,"PopoverDescription",()=>en,"PopoverHeader",()=>er,"PopoverTitle",()=>ea,"PopoverTrigger",()=>Q],337822);var t=e.i(843476);e.s(["Anchor",()=>q,"Arrow",()=>$,"Close",()=>Z,"Content",()=>Y,"Popover",()=>C,"PopoverAnchor",()=>D,"PopoverArrow",()=>B,"PopoverClose",()=>H,"PopoverContent",()=>E,"PopoverPortal",()=>M,"PopoverTrigger",()=>S,"Portal",()=>K,"Root",()=>V,"Trigger",()=>W,"createPopoverScope",()=>b],178761);var r=e.i(271645),a=e.i(981140),n=e.i(820783),o=e.i(30030),i=e.i(726330),s=e.i(303536),l=e.i(765491),c=e.i(610772),d=e.i(853660),u=e.i(774606),f=e.i(296626),p=e.i(248425),h=e.i(991918),g=e.i(369340),m=e.i(186312),v=e.i(985369),x="Popover",[y,b]=(0,o.createContextScope)(x,[d.createPopperScope]),w=(0,d.createPopperScope)(),[j,k]=y(x),C=e=>{let{__scopePopover:a,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,u=w(a),f=r.useRef(null),[p,h]=r.useState(!1),[m,v]=(0,g.useControllableState)({prop:o,defaultProp:null!=i&&i,onChange:s,caller:x});return(0,t.jsx)(d.Root,{...u,children:(0,t.jsx)(j,{scope:a,contentId:(0,c.useId)(),triggerRef:f,open:m,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>h(!0),[]),onCustomAnchorRemove:r.useCallback(()=>h(!1),[]),modal:l,children:n})})};C.displayName=x;var N="PopoverAnchor",D=r.forwardRef((e,a)=>{let{__scopePopover:n,...o}=e,i=k(N,n),s=w(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return r.useEffect(()=>(l(),()=>c()),[l,c]),(0,t.jsx)(d.Anchor,{...s,...o,ref:a})});D.displayName=N;var A="PopoverTrigger",S=r.forwardRef((e,r)=>{let{__scopePopover:o,...i}=e,s=k(A,o),l=w(o),c=(0,n.useComposedRefs)(r,s.triggerRef),u=(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":U(s.open),...i,ref:c,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,t.jsx)(d.Anchor,{asChild:!0,...l,children:u})});S.displayName=A;var P="PopoverPortal",[T,R]=y(P,{forceMount:void 0}),M=e=>{let{__scopePopover:r,forceMount:a,children:n,container:o}=e,i=k(P,r);return(0,t.jsx)(T,{scope:r,forceMount:a,children:(0,t.jsx)(f.Presence,{present:a||i.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:o,children:n})})})};M.displayName=P;var I="PopoverContent",E=r.forwardRef((e,r)=>{let a=R(I,e.__scopePopover),{forceMount:n=a.forceMount,...o}=e,i=k(I,e.__scopePopover);return(0,t.jsx)(f.Presence,{present:n||i.open,children:i.modal?(0,t.jsx)(O,{...o,ref:r}):(0,t.jsx)(F,{...o,ref:r})})});E.displayName=I;var _=(0,h.createSlot)("PopoverContent.RemoveScroll"),O=r.forwardRef((e,o)=>{let i=k(I,e.__scopePopover),s=r.useRef(null),l=(0,n.useComposedRefs)(o,s),c=r.useRef(!1);return r.useEffect(()=>{let e=s.current;if(e)return(0,m.hideOthers)(e)},[]),(0,t.jsx)(v.RemoveScroll,{as:_,allowPinchZoom:!0,children:(0,t.jsx)(L,{...e,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),c.current||null==(t=i.triggerRef.current)||t.focu
1s()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),F=r.forwardRef((e,a)=>{let n=k(I,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(L,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),L=r.forwardRef((e,r)=>{let{__scopePopover:a,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:g,...m}=e,v=k(I,a),x=w(a);return(0,s.useFocusGuards)(),(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:c,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:h,onDismiss:()=>v.onOpenChange(!1),children:(0,t.jsx)(d.Content,{"data-state":U(v.open),role:"dialog",id:v.contentId,...x,...m,ref:r,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),z="PopoverClose",H=r.forwardRef((e,r)=>{let{__scopePopover:n,...o}=e,i=k(z,n);return(0,t.jsx)(p.Primitive.button,{type:"button",...o,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});H.displayName=z;var B=r.forwardRef((e,r)=>{let{__scopePopover:a,...n}=e,o=w(a);return(0,t.jsx)(d.Arrow,{...o,...n,ref:r})});function U(e){return e?"open":"closed"}B.displayName="PopoverArrow";var V=C,q=D,W=S,K=M,Y=E,Z=H,$=B,G=e.i(178761),G=G,J=e.i(975157);function X(e){let{...r}=e;return(0,t.jsx)(G.Root,{"data-slot":"popover",...r})}function Q(e){let{...r}=e;return(0,t.jsx)(G.Trigger,{"data-slot":"popover-trigger",...r})}function ee(e){let{className:r,align:a="center",sideOffset:n=4,...o}=e;return(0,t.jsx)(G.Portal,{children:(0,t.jsx)(G.Content,{"data-slot":"popover-content",align:a,sideOffset:n,className:(0,J.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[70] w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",r),...o})})}function et(e){let{...r}=e;return(0,t.jsx)(G.Anchor,{"data-slot":"popover-anchor",...r})}function er(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"popover-header",className:(0,J.cn)("flex flex-col gap-1 text-sm",r),...a})}function ea(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"popover-title",className:(0,J.cn)("font-medium",r),...a})}function en(e){let{className:r,...a}=e;return(0,t.jsx)("p",{"data-slot":"popover-description",className:(0,J.cn)("text-muted-foreground",r),...a})}},453901,e=>{"use strict";e.s(["Shapes",()=>t],453901);let t=(0,e.i(475254).default)("shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]])},1767,e=>{"use strict";e.s(["TeamIcon",()=>o]);var t=e.i(843476),r=e.i(453901),a=e.i(975157),n=e.i(338280);function o(e){let{logoUrl:o,name:i,iconColorHex:s,className:l,textClassName:c="text-sm",fallback:d}=e;return o?(0,t.jsx)("img",{src:o,alt:null!=i?i:"",className:(0,a.cn)("object-cover bg-muted",l)}):(0,n.isPaletteColor)(s)?(0,t.jsx)("div",{className:(0,a.cn)("flex items-center justify-center font-bold text-white select-none",c,l),style:{backgroundColor:s.trim().toUpperCase()},"aria-label":null!=i?i:"",children:(0,n.avatarInitial)(i)}):void 0!==d?(0,t.jsx)(t.Fragment,{children:d}):(0,t.jsx)("div",{className:(0,a.cn)("flex items-center justify-center bg-muted text-muted-foreground",l),"aria-label":null!=i?i:"",children:(0,t.jsx)(r.Shapes,{className:"h-1/2 w-1/2"})})}},642929,e=>{"use strict";e.s(["UNSAVED_COPY",()=>d,"useHasUnsaved",()=>l,"useHoldUnsaved",()=>c]);var t=e.i(271645);let r=new Set,a=new Set,n=!1;function o(e){return a.add(e),()=>{a.delete(e)}}function i(e,t){t?r.add(e):r.delete(e);let o=r.size>0;if(o!==n)for(let e of(n=o,a))e()}function s(){return n}function l(){return(0,t.useSyncExternalStore)(o,s,()=>!1)}function c(e){let r=(0,t.useId)();(0,t.useEffect)(()=>(i(r,e),()=>i(r,!1)),[r,e])}let d={ko:{title:"ìì± ì¤ì¸ ë´ì©ì ëê³ ëê°ê¹ì?",description:"ì§ê¸ ëê°ë©´ ì°ë ë´ì©ì´ ì¬ë¼ì ¸ì. ë¨ìì ë§ì ì¸ ìë ìì´ì.",confirmLabel:"ëê°ê¸°"},en:{title:"Leave without posting?",description:"What you've written will be lost. You can stay and finish it instead.",confirmLabel:"Leave"}}},975558,e=>{"use strict";e.s(["ArrowUp",()=>t],975558);let t=(0,e.i(475254).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},793479,e=>{"use strict";e.s(["Input",()=>a]);var t=e.i(843476),r=e.i(975157);function a(e){let{className:a,type:n,...o}=e;return(0,t.jsx)("input",{type:n,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...o})}},326999,e=>{"use strict";e.s(["Close",()=>ea,"Content",()=>ee,"Description",()=>er,"Dialog",()=>j,"DialogClose",()=>V,"DialogContent",()=>E,"DialogDescription",()=>B,"DialogOverlay",()=>T,"DialogPortal",()=>S,"DialogTitle",()=>z,"DialogTrigger",()=>C,"Overlay",()=>Q,"Portal",()=>X,"Root",()=>G,"Title",()=>et,"Trigger",()=>J,"WarningProvider",()=>K,"createDialogScope",()=>y]);var t=e.i(271645),r=e.i(981140),a=e.i(820783),n=e.i(30030),o=e.i(610772),i=e.i(369340),s=e.i(726330),l=e.i(765491),c=e.i(774606),d=e.i(296626),u=e.i(248425),f=e.i(303536),p=e.i(985369),h=e.i(186312),g=e.i(991918),m=e.i(843476),v="Dialog",[x,y]=(0,n.createContextScope)(v),[b,w]=x(v),j=e=>{let{__scopeDialog:r,children:a,open:n,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=t.useRef(null),u=t.useRef(null),[f,p]=(0,i.useControllableState)({prop:n,defaultProp:null!=s&&s,onChange:l,caller:v});return(0,m.jsx)(b,{scope:r,triggerRef:d,contentRef:u,contentId:(0,o.useId)(),titleId:(0,o.useId)(),descriptionId:(0,o.useId)(),open:f,onOpenChange:p,onOpenToggle:t.useCallback(()=>p(e=>!e),[p]),modal:c,children:a})};j.displayName=v;var k="DialogTrigger",C=t.forwardRef((e,t)=>
1{let{__scopeDialog:n,...o}=e,i=w(k,n),s=(0,a.useComposedRefs)(t,i.triggerRef);return(0,m.jsx)(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":q(i.open),...o,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)})});C.displayName=k;var N="DialogPortal",[D,A]=x(N,{forceMount:void 0}),S=e=>{let{__scopeDialog:r,forceMount:a,children:n,container:o}=e,i=w(N,r);return(0,m.jsx)(D,{scope:r,forceMount:a,children:t.Children.map(n,e=>(0,m.jsx)(d.Presence,{present:a||i.open,children:(0,m.jsx)(c.Portal,{asChild:!0,container:o,children:e})}))})};S.displayName=N;var P="DialogOverlay",T=t.forwardRef((e,t)=>{let r=A(P,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=w(P,e.__scopeDialog);return o.modal?(0,m.jsx)(d.Presence,{present:a||o.open,children:(0,m.jsx)(M,{...n,ref:t})}):null});T.displayName=P;var R=(0,g.createSlot)("DialogOverlay.RemoveScroll"),M=t.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=w(P,r);return(0,m.jsx)(p.RemoveScroll,{as:R,allowPinchZoom:!0,shards:[n.contentRef],children:(0,m.jsx)(u.Primitive.div,{"data-state":q(n.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),I="DialogContent",E=t.forwardRef((e,t)=>{let r=A(I,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=w(I,e.__scopeDialog);return(0,m.jsx)(d.Presence,{present:a||o.open,children:o.modal?(0,m.jsx)(_,{...n,ref:t}):(0,m.jsx)(O,{...n,ref:t})})});E.displayName=I;var _=t.forwardRef((e,n)=>{let o=w(I,e.__scopeDialog),i=t.useRef(null),s=(0,a.useComposedRefs)(n,o.contentRef,i);return t.useEffect(()=>{let e=i.current;if(e)return(0,h.hideOthers)(e)},[]),(0,m.jsx)(F,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=o.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),O=t.forwardRef((e,r)=>{let a=w(I,e.__scopeDialog),n=t.useRef(!1),o=t.useRef(!1);return(0,m.jsx)(F,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(n.current||null==(i=a.triggerRef.current)||i.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var r,i;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(i=a.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=t.forwardRef((e,r)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:c,...d}=e,u=w(I,n),p=t.useRef(null),h=(0,a.useComposedRefs)(r,p);return(0,f.useFocusGuards)(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:c,children:(0,m.jsx)(s.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":q(u.open),...d,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Z,{titleId:u.titleId}),(0,m.jsx)($,{contentRef:p,descriptionId:u.descriptionId})]})]})}),L="DialogTitle",z=t.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=w(L,r);return(0,m.jsx)(u.Primitive.h2,{id:n.titleId,...a,ref:t})});z.displayName=L;var H="DialogDescription",B=t.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=w(H,r);return(0,m.jsx)(u.Primitive.p,{id:n.descriptionId,...a,ref:t})});B.displayName=H;var U="DialogClose",V=t.forwardRef((e,t)=>{let{__scopeDialog:a,...n}=e,o=w(U,a);return(0,m.jsx)(u.Primitive.button,{type:"button",...n,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})});function q(e){return e?"open":"closed"}V.displayName=U;var W="DialogTitleWarning",[K,Y]=(0,n.createContext)(W,{contentName:I,titleName:L,docsSlug:"dialog"}),Z=e=>{let{titleId:r}=e,a=Y(W),n="`".concat(a.contentName,"` requires a `").concat(a.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(a.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(a.docsSlug);return t.useEffect(()=>{r&&(document.getElementById(r)||console.error(n))},[n,r]),null},$=e=>{let{contentRef:r,descriptionId:a}=e,n=Y("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return t.useEffect(()=>{var e;let t=null==(e=r.current)?void 0:e.getAttribute("aria-describedby");a&&t&&(document.getElementById(a)||console.warn(o))},[o,r,a]),null},G=j,J=C,X=S,Q=T,ee=E,et=z,er=B,ea=V},868499,e=>{"use strict";e.s(["AlertDialog",()=>B,"AlertDialogAction",()=>G,"AlertDialogCancel",()=>J,"AlertDialogContent",()=>W,"AlertDialogDescription",()=>$,"AlertDialogFooter",()=>Y,"AlertDialogHeader",()=>K,"AlertDialogTitle",()=>Z,"AlertDialogTrigger",()=>U],868499);var t=e.i(843476);e.s(["Action",()=>E,"AlertDialog",()=>f,"AlertDialogAction",()=>N,"AlertDialogCancel",()=>A,"AlertDialogContent",()=>b,"AlertDialogDescription",()=>C,"AlertDialogOverlay",()=>g,"AlertDialogPortal",()=>h,"AlertDialogTitle",()=>j,"AlertDialogTrigger",()=>p,"Cancel",()=>_,"Content",()=>I,"Description",()=>F,"Overlay",()=>M,"Portal",()=>R,"Root",()=>P,"Title",()=>O,"Trigger",()=>T,"createAlertDialogScope",()=>d],691162);var r=e.i(271645),a=e.i(30030),n=e.i(820783),o=e.i(326999),i=e.i(981140),s=e.i(991918),l="AlertDialog",[c,d]=(0,a.createContextScope)(l,[o.createDialogScope]),u=(0,o.createDialogScope)(),f=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Root,{...n,...a,modal:!0})};f.displayName=l;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=u(a);return(0,t.jsx)(o.Trigger,{...i,...n,ref:r})});p.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Portal,{...n,...a}
1)};h.displayName="AlertDialogPortal";var g=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=u(a);return(0,t.jsx)(o.Overlay,{...i,...n,ref:r})});g.displayName="AlertDialogOverlay";var m="AlertDialogContent",[v,x]=c(m),y=(0,s.createSlottable)("AlertDialogContent"),b=r.forwardRef((e,a)=>{let{__scopeAlertDialog:s,children:l,...c}=e,d=u(s),f=r.useRef(null),p=(0,n.useComposedRefs)(a,f),h=r.useRef(null);return(0,t.jsx)(o.WarningProvider,{contentName:m,titleName:w,docsSlug:"alert-dialog",children:(0,t.jsx)(v,{scope:s,cancelRef:h,children:(0,t.jsxs)(o.Content,{role:"alertdialog",...d,...c,ref:p,onOpenAutoFocus:(0,i.composeEventHandlers)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=h.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(y,{children:l}),(0,t.jsx)(S,{contentRef:f})]})})})});b.displayName=m;var w="AlertDialogTitle",j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=u(a);return(0,t.jsx)(o.Title,{...i,...n,ref:r})});j.displayName=w;var k="AlertDialogDescription",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=u(a);return(0,t.jsx)(o.Description,{...i,...n,ref:r})});C.displayName=k;var N=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=u(a);return(0,t.jsx)(o.Close,{...i,...n,ref:r})});N.displayName="AlertDialogAction";var D="AlertDialogCancel",A=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...i}=e,{cancelRef:s}=x(D,a),l=u(a),c=(0,n.useComposedRefs)(r,s);return(0,t.jsx)(o.Close,{...l,...i,ref:c})});A.displayName=D;var S=e=>{let{contentRef:t}=e,a="`".concat(m,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(m,"` by passing a `").concat(k,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(m,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},P=f,T=p,R=h,M=g,I=b,E=N,_=A,O=j,F=C,L=e.i(691162),L=L,z=e.i(975157),H=e.i(519455);function B(e){let{...r}=e;return(0,t.jsx)(L.Root,{"data-slot":"alert-dialog",...r})}function U(e){let{...r}=e;return(0,t.jsx)(L.Trigger,{"data-slot":"alert-dialog-trigger",...r})}function V(e){let{...r}=e;return(0,t.jsx)(L.Portal,{"data-slot":"alert-dialog-portal",...r})}function q(e){let{className:r,...a}=e;return(0,t.jsx)(L.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,z.cn)("fixed inset-0 z-[65] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",r),...a})}function W(e){let{className:r,size:a="default",...n}=e;return(0,t.jsxs)(V,{children:[(0,t.jsx)(q,{}),(0,t.jsx)(L.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,z.cn)("group/alert-dialog-content fixed top-[50%] left-[50%] z-[65] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",r),...n})]})}function K(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,z.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",r),...a})}function Y(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,z.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",r),...a})}function Z(e){let{className:r,...a}=e;return(0,t.jsx)(L.Title,{"data-slot":"alert-dialog-title",className:(0,z.cn)("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",r),...a})}function $(e){let{className:r,...a}=e;return(0,t.jsx)(L.Description,{"data-slot":"alert-dialog-description",className:(0,z.cn)("text-sm text-muted-foreground",r),...a})}function G(e){let{className:r,variant:a="default",size:n="default",...o}=e;return(0,t.jsx)(H.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(L.Action,{"data-slot":"alert-dialog-action",className:(0,z.cn)(r),...o})})}function J(e){let{className:r,variant:a="outline",size:n="default",...o}=e;return(0,t.jsx)(H.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(L.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,z.cn)(r),...o})})}},54078,e=>{"use strict";e.s(["ConfirmProvider",()=>s,"useConfirm",()=>l]);var t=e.i(843476),r=e.i(271645),a=e.i(4007),n=e.i(868499);let o=r.createContext(void 0),i={ko:{confirm:"íì¸",cancel:"ì·¨ì"},en:{confirm:"Confirm",cancel:"Cancel"}};function s(e){var s,l,c,d,u;let{children:f}=e,{lang:p}=(0,a.useLanguage)(),[h,g]=r.useState(!1),[m,v]=r.useState(null),x=r.useRef(null),y=r.useCallback(e=>{let t=x.current;x.current=null,g(!1),null==t||t(e)},[]),b=r.useCallback(e=>{var t;return null==(t=x.current)||t.call(x,!1),x.current=null,v(e),g(!0),new Promise(e=>{x.current=e})},[]),w=null!=(s=i[p])?s:i.ko,[j,...k]=(null!=(l=null==m?void 0:m.title)?l:"").split("\n"),C=j.trim(),N=k.join("\n").trim(),D=null!=(c=null==m?void 0:m.description)?c:N||void 0;return(0,t.jsxs)(o.Provider,{value:b,children:[f,(0,t.jsx)(n.AlertDialog,{open:h,onOpenChange:e=>{e||y(!1)},children:(0,t.jsxs)(n.AlertDialogContent,{children:[(0,t.jsxs)(n.AlertDialogHeader,{children:[(0,t.jsx)(n.AlertDialogTitle,{children:C}),D?(0,t.jsx)(n.AlertDialogDescription,{asChild:!0,children:(0,t.jsx)("div",{className:"whitespace-pre-line",children:D})}):null]}),(0,t.jsxs)(n.AlertDialogFooter,{children:[(0,t.jsx)(n.AlertDialogCancel,{onClick:()=>y(!1),children:null!=(d=null==m?void 0:m.cancelLabel)?d:w.cancel}),(0,t.jsx)(n.AlertDialogAction,{variant:(null==m?void 0:m.destructive)?"destructive":"default",onClick:()=>y(!0),children:null!=(u=null==m?void 0:m.confirmLabel)?u:w.confirm})]})]})})]})}function l(){let e=r.useContext(o);if(void 0===e)throw Error("useConfirm must be used within a ConfirmProvider");return e}},995926,964053,e=>{"use strict";e.s(["XIcon",()=>t.default],995926);var t=e.i(841947);e.s(["Dialog",()=>r],964053);var r=e.i(326999)},776639,e=>{"use strict";e.s(["Dialog",()=>i,"DialogContent",()=>d,"DialogDescription",()=>h,"DialogFooter",()=>f,"DialogHeader",()=>u,"DialogTitle",()=>p,"DialogTrigger",()=>s]);var t=e.i(843476),r=e.i(995926),a=e.i(964053),n=e.i(975157),o=e.i(519455);function i(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...r})}function s(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...r})}function l(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...r})}function c(e){let{className:r,...o}=e;return(0,t.jsx)(a.Dialog.Overlay,{"data-slot":"dialog-overlay",className:(0,n.cn)("fixed inset-0 z-[60] bg-black/60 backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",r),...o})}function d(e){let{className:o,children:i,showCloseButton:s=!0,...d}=e;return(0,t.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,t.jsx)(c,{}),(0,t.jsxs)(a.Dialog.Content,{"data-slot":"dialog-content",className:(0,n.cn)("fixed top-[50%] left-[50%] z-[60] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
1ded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",o),...d,children:[i,s&&(0,t.jsxs)(a.Dialog.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",r),...a})}function f(e){let{className:r,showCloseButton:i=!1,children:s,...l}=e;return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",r),...l,children:[s,i&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(o.Button,{variant:"outline",children:"Close"})})]})}function p(e){let{className:r,...o}=e;return(0,t.jsx)(a.Dialog.Title,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",r),...o})}function h(e){let{className:r,...o}=e;return(0,t.jsx)(a.Dialog.Description,{"data-slot":"dialog-description",className:(0,n.cn)("text-sm text-muted-foreground",r),...o})}},683528,e=>{"use strict";e.s(["PromptProvider",()=>c,"usePrompt",()=>d]);var t=e.i(843476),r=e.i(271645),a=e.i(4007),n=e.i(519455),o=e.i(776639),i=e.i(793479);let s=r.createContext(void 0),l={ko:{confirm:"íì¸",cancel:"ì·¨ì"},en:{confirm:"OK",cancel:"Cancel"}};function c(e){var c,d,u;let{children:f}=e,{lang:p}=(0,a.useLanguage)(),[h,g]=r.useState(!1),[m,v]=r.useState(null),[x,y]=r.useState(""),b=r.useRef(null),w=r.useCallback(e=>{let t=b.current;b.current=null,g(!1),null==t||t(e)},[]),j=r.useCallback(e=>{var t,r;return null==(t=b.current)||t.call(b,null),b.current=null,v(e),y(null!=(r=e.defaultValue)?r:""),g(!0),new Promise(e=>{b.current=e})},[]),k=null!=(c=l[p])?c:l.ko,C=!(null==m?void 0:m.required)||x.trim().length>0;return(0,t.jsxs)(s.Provider,{value:j,children:[f,(0,t.jsx)(o.Dialog,{open:h,onOpenChange:e=>{e||w(null)},children:(0,t.jsxs)(o.DialogContent,{children:[(0,t.jsxs)(o.DialogHeader,{children:[(0,t.jsx)(o.DialogTitle,{children:null==m?void 0:m.title}),(null==m?void 0:m.description)?(0,t.jsx)(o.DialogDescription,{asChild:!0,children:(0,t.jsx)("div",{className:"whitespace-pre-line",children:m.description})}):null]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),C&&w(x)},children:[(0,t.jsx)(i.Input,{autoFocus:!0,value:x,placeholder:null==m?void 0:m.placeholder,onChange:e=>y(e.target.value)}),(0,t.jsxs)(o.DialogFooter,{className:"mt-4",children:[(0,t.jsx)(n.Button,{type:"button",variant:"outline",onClick:()=>w(null),children:null!=(d=null==m?void 0:m.cancelLabel)?d:k.cancel}),(0,t.jsx)(n.Button,{type:"submit",disabled:!C,children:null!=(u=null==m?void 0:m.confirmLabel)?u:k.confirm})]})]})]})})]})}function d(){let e=r.useContext(s);if(void 0===e)throw Error("usePrompt must be used within a PromptProvider");return e}},581418,e=>{"use strict";e.s(["ShieldCheck",()=>t],581418);let t=(0,e.i(475254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},561659,e=>{"use strict";e.s(["CreditCard",()=>t],561659);let t=(0,e.i(475254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},239616,e=>{"use strict";e.s(["Settings",()=>t],239616);let t=(0,e.i(475254).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},245423,e=>{"use strict";e.s(["Bell",()=>t],245423);let t=(0,e.i(475254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},188345,e=>{"use strict";function t(e){return"en"===e?"en":"ko"}e.s(["myStudioName",()=>n,"openStudioName",()=>o,"ownerStudioName",()=>i,"studioName",()=>
1a]);let r={ko:"ìì
ì¤",en:"Studio"};function a(e){return r[e in r?e:"ko"]}function n(e){return"en"===t(e)?"My Studio":"ë´ ìì
ì¤"}function o(e){return"en"===t(e)?"Open Studio":"ê³µê° ìì
ì¤"}function i(e,r){let a=null==e?void 0:e.trim();return a?"en"===t(r)?"".concat(a,"'s Open Studio"):"".concat(a,"ì ê³µê° ìì
ì¤"):o(r)}},248256,e=>{"use strict";e.s(["Globe",()=>t],248256);let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},278716,e=>{"use strict";e.s(["Video",()=>t],278716);let t=(0,e.i(475254).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},191741,e=>{"use strict";e.s(["ClipboardList",()=>t],191741);let t=(0,e.i(475254).default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},686311,e=>{"use strict";e.s(["MessageSquare",()=>t],686311);let t=(0,e.i(475254).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},107233,e=>{"use strict";e.s(["Plus",()=>t],107233);let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},869870,e=>{"use strict";e.s(["decodeArchiveItemId",()=>E,"decodeArchiveSpaceId",()=>M,"decodeId",()=>k,"decodeSyncVideoId",()=>O,"decodeTeamBoardId",()=>L,"decodeTeamBoardPostId",()=>H,"decodeTeamChatroomId",()=>T,"decodeTeamId",()=>N,"decodeTeamProjectId",()=>A,"encodeArchiveItemId",()=>I,"encodeArchiveSpaceId",()=>R,"encodeId",()=>j,"encodeSyncVideoId",()=>_,"encodeTeamBoardId",()=>F,"encodeTeamBoardPostId",()=>z,"encodeTeamChatroomId",()=>P,"encodeTeamGroupId",()=>S,"encodeTeamId",()=>C,"encodeTeamProjectId",()=>D],869870);let t=e=>"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e,r=e=>"bigint"==typeof e||e>=0&&Number.isSafeInteger(e);function a(e,t){let r;if(0===t.length)return e;let a=[...e];for(let e=a.length-1,n=0,o=0;e>0;e--,n++){n%=t.length,o+=r=t[n].codePointAt(0);let i=(r+n+o)%e,s=a[e],l=a[i];a[i]=s,a[e]=l}return a}let n=(e,t)=>e.reduce((r,a)=>{let n=t.indexOf(a);if(-1===n)throw Error("The provided ID (".concat(e.join(""),") is invalid, as it contains characters that do not exist in the alphabet (").concat(t.join(""),")"));if("bigint"==typeof r)return r*BigInt(t.length)+BigInt(n);let o=r*t.length+n;return Number.isSafeInteger(o)?o:(l("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment"),BigInt(r)*BigInt(t.length)+BigInt(n))},0),o=/^\+?\d+$/,i=e=>new RegExp(e.map(e=>s(e)).sort((e,t)=>t.length-e.length).join("|")),s=e=>e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&"),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BigInt is not available in this environment";if("function"!=typeof BigInt)throw TypeError(e)};class c{encode(e){for(var a=arguments.length,n=Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];let s=Array.isArray(e)?e:[...null!=e?[e]:[],...n];return 0===s.length?"":(s.every(t)||(s=s.map(e=>"bigint"==typeof e||"number"==typeof e?e:(e=>{if(!o.test(e))return NaN;let t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(l("Unable to encode the provided BigInt string without loss of information due to lack of support for BigInt type in the current environment"),BigInt(e))})(String(e)))),s.every(r))?this._encode(s).join(""):""}decode(e){return e&&"string"==typeof e&&0!==e.length?this._decode(e):[]}encodeHex(e){let t,r,a=e;switch(typeof a){case"bigint":a=a.toString(16);break;case"string":if(!/^[\dA-Fa-f]+$/.test(a))return"";break;default:throw Error("Hashids: The provided value is neither a string, nor a BigInt (got: ".concat(typeof a,")"))}let n=(t=a,r=e=>Number.parseInt("1".concat(e),16),Array.from({length:Math.ceil(t.length/12)},(e,a)=>r(t.slice(12*a,(a+1)*12))));return this.encode(n)}decodeHex(e){return this.decode(e).map(e=>e.toString(16).slice(1)).join("")}isValidId(e){return this.allowedCharsRegExp.test(e)}_encode(e){let{alphabet:t}=this,r=e.reduce((e,t,r)=>e+("bigint"==typeof t?Number(t%BigInt(r+100)):t%(r+100)),0),n=[t[r%t.length]],o=[...n],{seps:i}=this,{guards:s}=this;if(e.forEach((r,s)=>{let l=o.concat(this.salt,t),c=((e,t)=>{let r=[],a=e;if("bigint"==typeof a){let e=BigInt(t.length);do r.unshift(t[Number(a%e)]),a/=e;while(a>BigInt(0))}else do r.unshift(t[a%t.length]),a=Math.floor(a/t.length);while(a>0)return r})(r,t=a(t,l));if(n.push(...c),s+1<e.length){let e=c[0].codePointAt(0)+s,t="bigint"==typeof r?Number(r%BigInt(e)):r%e;n.push(i[t%i.length])}}),n.length<this.minLength){let e=(r+n[0].codePointAt(0))%s.length;if(n.unshift(s[e]),n.length<this.minLength){let e=(r+n[2].codePointAt(0))%s.length;n.push(s[e])}}let l=Math.floor(t.length/2);for(;n.length<this.minLength;){t=a(t,t),n.unshift(...t.slice(l)),n.push(...t.slice(0,l));let e=n.length-this.minLength;if(e>0){let t=e/2;n=n.slice(t,t+this.minLength)}}return n}_decode(e){if(!this.isValidId(e))throw Error("The provided ID (".concat(e,") is invali
1d, as it contains characters that do not exist in the alphabet (").concat(this.guards.join("")).concat(this.seps.join("")).concat(this.alphabet.join(""),")"));let t=e.split(this.guardsRegExp),r=+(3===t.length||2===t.length),o=t[r];if(0===o.length)return[];let i=o[Symbol.iterator]().next().value,s=o.slice(i.length).split(this.sepsRegExp),l=this.alphabet,c=[];for(let e of s){let t=[i,...this.salt,...l],r=a(l,t.slice(0,l.length));c.push(n(Array.from(e),r)),l=r}return this._encode(c).join("")!==e?[]:c}constructor(e="",t=0,r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n="cfhistuCFHISTU"){let o,l,c;if(this.minLength=t,"number"!=typeof t)throw TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(typeof t,")"));if("string"!=typeof e)throw TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(typeof e,")"));if("string"!=typeof r)throw TypeError("Hashids: Provided alphabet has to be a string (is ".concat(typeof r,")"));let d=Array.from(e),u=Array.from(r),f=Array.from(n);this.salt=d;let p=[...new Set(u)];if(p.length<16)throw Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(p.join("")));this.alphabet=p.filter(e=>!f.includes(e));let h=f.filter(e=>p.includes(e));this.seps=a(h,d),(0===this.seps.length||this.alphabet.length/this.seps.length>3.5)&&(o=Math.ceil(this.alphabet.length/3.5))>this.seps.length&&(l=o-this.seps.length,this.seps.push(...this.alphabet.slice(0,l)),this.alphabet=this.alphabet.slice(l)),this.alphabet=a(this.alphabet,d);let g=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.slice(0,g),this.seps=this.seps.slice(g)):(this.guards=this.alphabet.slice(0,g),this.alphabet=this.alphabet.slice(g)),this.guardsRegExp=i(this.guards),this.sepsRegExp=i(this.seps),this.allowedCharsRegExp=(c=[...this.alphabet,...this.guards,...this.seps],new RegExp("^[".concat(c.map(e=>s(e)).sort((e,t)=>t.length-e.length).join(""),"]+$")))}}let d=new c("perplz_salt_2024",6),u=new c("perplz_team_salt_2026",6),f=new c("perplz_team_project_salt_2026",8),p=new c("perplz_team_group_salt_2026",6),h=new c("perplz_team_chatroom_salt_2026",8),g=new c("perplz_team_archive_space_salt_2026",6),m=new c("perplz_team_archive_item_salt_2026",8),v=new c("perplz_team_sync_video_salt_2026",8),x=new c("perplz_team_board_salt_2026",6),y=new c("perplz_team_board_post_salt_2026",8);function b(e,t){let r="string"==typeof t?parseInt(t,10):t;return isNaN(r)?String(t):e.encode(r)}function w(e,t){try{let r=e.decode(t);if(0===r.length)return null;return Number(r[0])}catch(e){return null}}function j(e){return b(d,e)}function k(e){return w(d,e)}function C(e){return b(u,e)}function N(e){return w(u,e)}function D(e){return b(f,e)}function A(e){return w(f,e)}function S(e){return b(p,e)}function P(e){return b(h,e)}function T(e){return w(h,e)}function R(e){return b(g,e)}function M(e){return w(g,e)}function I(e){return b(m,e)}function E(e){return w(m,e)}function _(e){return b(v,e)}function O(e){return w(v,e)}function F(e){return b(x,e)}function L(e){return w(x,e)}function z(e){return b(y,e)}function H(e){return w(y,e)}},246349,e=>{"use strict";e.s(["default",()=>t]);let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},761911,e=>{"use strict";e.s(["Users",()=>t],761911);let t=(0,e.i(475254).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},531278,e=>{"use strict";e.s(["Loader2",()=>t],531278);let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},841947,e=>{"use strict";e.s(["default",()=>t]);let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},37727,e=>{"use strict";e.s(["X",()=>t.default]);var t=e.i(841947)},931091,e=>{"use strict";e.s(["Megaphone",()=>t],931091);let t=(0,e.i(475254).default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]])},751737,e=>{"use strict";e.s(["ShieldAlert",()=>t],751737);let t=(0,e.i(475254).default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},257995,e=>{"use strict";e.s(["AtSign",()=>t],257995);let t=(0,e.i(475254).default)("at-sign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]])},23737,e=>{"use strict";e.s(["default",()=>t]);let t=(0,e.i(475254).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},959208,e=>{"use strict";e.s(["CalendarClock",()=>t],959208);let t=(0,e.i(475254).default)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},980376,e=>{"use strict";e.s(["Sheet",()=>o,"SheetClose",()=>s,"SheetContent",()=>d,"SheetHeader",()=>u,"SheetTitle",()=>f,"SheetTrigger",()=>i]);var t=e.i(843476),r=e.i(995926),a=e.i(964053),n=e.i(975157);function o(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...r})}function i(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...r})}function s(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...r})}function l(e){let{...r}=e;return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"sheet-portal",...r})}function c(e){let{className:r,...o}=e;return(0,t.jsx)(a.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,n.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",r),...o})}function d(e){let{className:o,children:i,side:s="right",showCloseButton:d=!0,...u}=e;return(0,t.jsxs)(l,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(a.Dialog.Content,{"data-slot":"sheet-content",className:(0,n.cn)("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500","right"===s&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===s&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm","top"===s&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top","bottom"===s&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",o),...u,children:[i,d&&(0,t.jsxs)(a.Dialog.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,t.jsx)(r.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1.5 p-4",r),...a})}function f(e){let{className:r,...o}=e;return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,n.cn)("font-semibold text-foreground",r),...o})}},981997,e=>{"use strict";e.s(["MessagesSquare",()=>t],981997);let t=(0,e.i(475254).default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]])},14127,e=>{"use strict";e.s(["formatChatBubbleTime",()=>i,"formatChatListTime",()=>o,"formatMessageTime",()=>a,"formatRelativeTime",()=>r]);let t={ko:{now:"ë°©ê¸ ì ",min:"ë¶ ì ",hour:"ìê° ì ",day:"ì¼ ì ",week:"주 ì ",month:"ê°ì ì ",year:"ë
ì "},en:{now:"just now",min:"m ago",hour:"h ago",day:"d ago",week:"w ago",month:"mo ago",year:"y ago"}};function r(e){var r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ko",n=null!=(r=t[a])?r:t.ko,o=new Date,i=new Date(e),s=Math.floor((o.getTime()-i.getTime())/6e4);if(s<1)return n.now;if(s<60)return"".concat(s).concat(n.min);let l=Math.floor(s/60);if(l<24)return"".concat(l).concat(n.hour);let c=Math.floor(l/24);if(c<7)return"".concat(c).concat(n.day);let d=Math.floor(c/7);if(d<5)return"".concat(d).concat(n.week);let u=Math.floor(c/30);
1return u<12?"".concat(u).concat(n.month):"".concat(Math.floor(u/12)).concat(n.year)}function a(e){if(!e)return"";let t=new Date(e),r=Math.floor((new Date().getTime()-t.getTime())/864e5);return 0===r?t.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"}):1===r?"ì´ì ":r<7?["ì¼","ì","í","ì","목","ê¸","í "][t.getDay()]+"ìì¼":"".concat(t.getMonth()+1,"/").concat(t.getDate())}let n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ko";if(!e)return"";let a=new Date(e);return Number.isNaN(a.getTime())?"":a.getFullYear()===t.getFullYear()&&a.getMonth()===t.getMonth()&&a.getDate()===t.getDate()?"".concat(String(a.getHours()).padStart(2,"0"),":").concat(String(a.getMinutes()).padStart(2,"0")):"en"===r?"".concat(n[a.getMonth()]," ").concat(a.getDate()):"".concat(a.getMonth()+1,"ì ").concat(a.getDate(),"ì¼")}function i(e,t){return new Date(e).toLocaleTimeString("ko"===t?"ko-KR":"en-US",{hour:"2-digit",minute:"2-digit"})}},696592,e=>{"use strict";function t(e){if("string"!=typeof e||!e.startsWith("/"))return e;let[t,r=""]=function(e){let t=e.search(/[?#]/);return -1===t?[e,""]:[e.slice(0,t),e.slice(t)]}(e),a=r?e.slice(t.length):"",n=/^\/studio\/sync\/([^/]+)$/.exec(t);if(n)return"/desktop/sync/".concat(n[1]).concat(a);if(n=/^\/studio\/note\/([^/]+)$/.exec(t))return"/desktop/note/".concat(n[1]).concat(a);if("/studio/library"===t||"/studio"===t)return"/desktop/library".concat(a);if(n=/^\/chat(?:\/([^/]+))?$/.exec(t))return n[1]?"/desktop/chat/".concat(n[1]).concat(a):"/desktop/chat".concat(a);if(n=/^\/workspace\/([^/]+)\/chat(?:\/([^/]+))?$/.exec(t)){let e="/desktop/team/".concat(n[1],"/chat");return(n[2]?"".concat(e,"/").concat(n[2]):e)+a}return e}function r(e){return t(e).startsWith("/desktop")}e.s(["isShellContainedPath",()=>r,"toDesktopPath",()=>t])},636248,e=>{"use strict";e.s(["ChatIcon",()=>r]);var t=e.i(843476);function r(e){let{className:r,...a}=e;return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,...a,children:(0,t.jsx)("path",{d:"M20.9958 8.58913C21.8798 8.87313 22.4958 9.71713 22.4958 10.6861V14.9721C22.4958 16.1081 21.6489 17.0721 20.5159 17.1651C20.1759 17.1921 19.8358 17.2171 19.4958 17.2371V20.3281L16.4958 17.3281C15.1418 17.3281 13.8018 17.2731 12.4758 17.1651C12.1872 17.1418 11.9064 17.0594 11.6508 16.9231M20.9958 8.58913C20.8413 8.53939 20.6816 8.50752 20.5198 8.49413C17.8418 8.27181 15.1499 8.27181 12.4718 8.49413C11.3408 8.58813 10.4958 9.55113 10.4958 10.6861V14.9721C10.4958 15.8091 10.9558 16.5521 11.6508 16.9231M20.9958 8.58913V6.71513C20.9958 5.09413 19.8438 3.68913 18.2358 3.48013C16.1667 3.21192 14.0823 3.07764 11.9958 3.07813C9.88085 3.07813 7.79785 3.21513 5.75585 3.48013C4.14785 3.68913 2.99585 5.09413 2.99585 6.71513V12.9411C2.99585 14.5621 4.14785 15.9671 5.75585 16.1761C6.33285 16.2511 6.91285 16.3161 7.49585 16.3701V21.0781L11.6508 16.9231",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},828392,e=>{"use strict";e.s(["getMyTeamsAction",()=>r]);var t=e.i(95187),r=(0,t.createServerReference)("000bf0861f50320e59286f7ed3cd8b7f97f45ab47b",t.callServer,void 0,t.findSourceMapURL,"getMyTeamsAction")},842009,e=>{"use strict";e.s(["Award",()=>t],842009);let t=(0,e.i(475254).default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},622555,e=>{"use strict";e.s(["MessageCircleHeart",()=>t],622555);let t=(0,e.i(475254).default)("message-circle-heart",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z",key:"hoo97p"}]])},363178,e=>{"use strict";e.s(["ThemeProvider",()=>c,"useTheme",()=>l]);var t=e.i(271645),r=(e,t,r,a,n,o,i,s)=>
1{let l=document.documentElement,c=["light","dark"];function d(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&o?n.map(e=>o[e]||e):n;r?(l.classList.remove(...a),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),r=t,s&&c.includes(r)&&(l.style.colorScheme=r)}if(a)d(a);else try{let e=localStorage.getItem(t)||r,a=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(a)}catch(e){}},a=["light","dark"],n="(prefers-color-scheme: dark)",o="undefined"==typeof window,i=t.createContext(void 0),s={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=t.useContext(i))?e:s},c=e=>t.useContext(i)?t.createElement(t.Fragment,null,e.children):t.createElement(u,{...e}),d=["light","dark"],u=e=>{let{forcedTheme:r,disableTransitionOnChange:o=!1,enableSystem:s=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:u=d,defaultTheme:m=s?"system":"light",attribute:v="data-theme",value:x,children:y,nonce:b,scriptProps:w}=e,[j,k]=t.useState(()=>p(c,m)),[C,N]=t.useState(()=>"system"===j?g():j),D=x?Object.values(x):u,A=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=g());let r=x?x[t]:t,n=o?h(b):null,i=document.documentElement,c=e=>{"class"===e?(i.classList.remove(...D),r&&i.classList.add(r)):e.startsWith("data-")&&(r?i.setAttribute(e,r):i.removeAttribute(e))};if(Array.isArray(v)?v.forEach(c):c(v),l){let e=a.includes(m)?m:null,r=a.includes(t)?t:e;i.style.colorScheme=r}null==n||n()},[b]),S=t.useCallback(e=>{let t="function"==typeof e?e(j):e;k(t);try{localStorage.setItem(c,t)}catch(e){}},[j]),P=t.useCallback(e=>
1{N(g(e)),"system"===j&&s&&!r&&A("system")},[j,r]);t.useEffect(()=>{let e=window.matchMedia(n);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),t.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?k(e.newValue):S(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),t.useEffect(()=>{A(null!=r?r:j)},[r,j]);let T=t.useMemo(()=>({theme:j,setTheme:S,forcedTheme:r,resolvedTheme:"system"===j?C:j,themes:s?[...u,"system"]:u,systemTheme:s?C:void 0}),[j,S,r,C,s,u]);return t.createElement(i.Provider,{value:T},t.createElement(f,{forcedTheme:r,storageKey:c,attribute:v,enableSystem:s,enableColorScheme:l,defaultTheme:m,value:x,themes:u,nonce:b,scriptProps:w}),y)},f=t.memo(e=>{let{forcedTheme:a,storageKey:n,attribute:o,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:d,nonce:u,scriptProps:f}=e,p=JSON.stringify([o,n,l,a,d,c,i,s]).slice(1,-1);return t.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(r.toString(),")(").concat(p,")")}})}),p=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},h=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>(e||(e=window.matchMedia(n)),e.matches?"dark":"light")},104948,e=>{"use strict";e.s(["FLOATING_TOOLBAR_CHAT_SLOT_ID",()=>u,"FloatingToolbar",()=>f]);var t=e.i(843476),r=e.i(271645),a=e.i(975558),n=e.i(239616),o=e.i(595468),i=e.i(363178),s=e.i(519455),l=e.i(337822),c=e.i(975157),d=e.i(4007);let u="floating-toolbar-chat-slot";function f(){let{theme:e,setTheme:f}=(0,i.useTheme)(),{lang:p}=(0,d.useLanguage)(),[h,g]=r.useState(!1);r.useEffect(()=>g(!0),[]);let[m,v]=r.useState(!1);return r.useEffect(()=>{let e=document.documentElement,t=()=>
1{v(e.scrollHeight-e.clientHeight>1)};t();let r=new ResizeObserver(t);return r.observe(e),r.observe(document.body),window.addEventListener("resize",t),()=>{r.disconnect(),window.removeEventListener("resize",t)}},[]),(0,t.jsxs)("div",{"data-chrome":!0,className:"fixed bottom-20 right-6 sm:bottom-6 z-50 flex flex-col items-center gap-3",children:[m&&(0,t.jsxs)(s.Button,{variant:"outline",size:"icon",className:"h-[3.25rem] w-[3.25rem] rounded-full shadow-lg bg-background hover:bg-accent/50 border-border",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:[(0,t.jsx)(a.ArrowUp,{className:"h-6 w-6 text-foreground"}),(0,t.jsx)("span",{className:"sr-only",children:"Scroll to top"})]}),(0,t.jsx)("div",{id:u,className:"contents"}),(0,t.jsxs)(l.Popover,{children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{variant:"outline",size:"icon",className:"h-[3.25rem] w-[3.25rem] rounded-full shadow-lg bg-background hover:bg-accent/50 border-border",children:[(0,t.jsx)(n.Settings,{className:"h-6 w-6 text-foreground"}),(0,t.jsx)("span",{className:"sr-only",children:"Settings"})]})}),(0,t.jsx)(l.PopoverContent,{className:"w-[22rem] p-5 border rounded-2xl shadow-xl mb-4 mr-2",align:"end",side:"top",sideOffset:8,children:(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-bold text-base mb-4",children:"ko"===p?"íë©´ ì¤íì¼":"Screen Style"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>f("light"),className:"flex flex-col items-center gap-2 group",children:[(0,t.jsxs)("div",{className:(0,c.cn)("relative h-[5.5rem] w-full rounded-[10px] border-2 p-1 transition-all","light"===e?"border-secondary":"border-muted-foreground/20 hover:border-muted-foreground/40"),children:[(0,t.jsxs)("div",{className:"bg-[#FFFFFF] w-full h-full rounded-md border border-[#E5E5E5] flex flex-col gap-[6px] p-2.5 shadow-sm",children:[(0,t.jsx)("div",{className:"w-full h-[6px] bg-[#3B82F6] rounded-sm"}),(0,t.jsx)("div",{className:"w-10/12 h-[4px] bg-[#E5E5E5] rounded-sm mt-1"}),(0,t.jsx)("div",{className:"w-full h-[4px] bg-[#E5E5E5] rounded-sm"})]}),"light"===e&&(0,t.jsx)("div",{className:"absolute -top-2 -right-2 bg-card rounded-full",children:(0,t.jsx)(o.CheckCircle2,{className:"h-5 w-5 fill-secondary text-white"})})]}),(0,t.jsx)("span",{className:(0,c.cn)("text-sm font-bold tracking-tight","light"===e?"text-secondary":"text-muted-foreground"),children:"ko"===p?"ë¼ì´í¸ 모ë":"Light Mode"})]}),(0,t.jsxs)("button",{onClick:()=>f("dark"),className:"flex flex-col items-center gap-2 group",children:[(0,t.jsxs)("div",{className:(0,c.cn)("relative h-[5.5rem] w-full rounded-[10px] border-2 p-1 transition-all","dark"===e?"border-secondary":"border-muted-foreground/20 hover:border-muted-foreground/40"),children:[(0,t.jsxs)("div",{className:"bg-[#1C1C1E] w-full h-full rounded-md flex flex-col gap-[6px] p-2.5 shadow-sm",children:[(0,t.jsx)("div",{className:"w-full h-[6px] bg-[#3B82F6] rounded-sm"}),(0,t.jsx)("div",{className:"w-10/12 h-[4px] bg-gray-600 rounded-sm mt-1"}),(0,t.jsx)("div",{className:"w-full h-[4px] bg-gray-600 rounded-sm"})]}),"dark"===e&&(0,t.jsx)("div",{className:"absolute -top-2 -right-2 bg-card rounded-full",children:(0,t.jsx)(o.CheckCircle2,{className:"h-5 w-5 fill-secondary text-white"})})]}),(0,t.jsx)("span",{className:(0,c.cn)("text-sm font-medium tracking-tight","dark"===e?"text-secondary":"text-muted-foreground"),children:"ko"===p?"ë¤í¬ 모ë":"Dark Mode"})]}),(0,t.jsxs)("button",{onClick:()=>f("system"),className:"flex flex-col items-center gap-2 group",children:[(0,t.jsxs)("div",{className:(0,c.cn)("relative h-[5.5rem] w-full rounded-[10px] border-2 p-1 transition-all","system"===e?"border-secondary":"border-muted-foreground/20 hover:border-muted-foreground/40"),children:[(0,t.jsxs)("div",{className:"w-full h-full rounded-md border border-[#E5E5E5] flex overflow-hidden shadow-sm",children:[(0,t.jsxs)("div",{className:"w-1/2 h-full bg-[#FFFFFF] flex flex-col p-1.5 gap-[4px]",children:[(0,t.jsx)("div",{className:"w-full h-[4px] bg-[#3B82F6] rounded-sm mt-0.5"}),(0,t.jsx)("div",{className:"w-10/12 h-[3px] bg-[#E5E5E5] rounded-sm mt-0.5"}),(0,t.jsx)("div",{className:"w-full h-[3px] bg-[#E5E5E5] rounded-sm"})]}),(0,t.jsxs)("div",{className:"w-1/2 h-full bg-[#1C1C1E] flex flex-col p-1.5 gap-[4px] border-l border-neutral-800",children:[(0,t.jsx)("div",{className:"w-full h-[4px] bg-[#3B82F6] rounded-sm mt-0.5"}),(0,t.jsx)("div",{className:"w-10/12 h-[3px] bg-gray-600 rounded-sm mt-0.5"}),(0,t.jsx)("div",{className:"w-full h-[3px] bg-gray-600 rounded-sm"})]})]}),"system"===e&&(0,t.jsx)("div",{className:"absolute -top-2 -right-2 bg-card rounded-full",children:(0,t.jsx)(o.CheckCircle2,{className:"h-5 w-5 fill-secondary text-white"})})]}
1),(0,t.jsx)("span",{className:(0,c.cn)("text-sm font-medium tracking-tight","system"===e?"text-secondary":"text-muted-foreground"),children:"ko"===p?"기기 ì¤ì ":"System"})]})]})})]})})})]})]})}},23375,e=>{"use strict";e.s(["revokeWebPushForLogout",()=>p,"useWebPushToggle",()=>h],23375);var t=e.i(271645);e.i(514560);var r=e.i(18546),a=e.i(901921),n=e.i(959141),o=e.i(95187),i=(0,o.createServerReference)("406ac3d468d761ed2f96b347a14a6c7b2afc57a671",o.callServer,void 0,o.findSourceMapURL,"deleteWebPushTokenAction"),s=(0,o.createServerReference)("40a5e4062f99961db9c1675490aa5058b9cec59cfd",o.callServer,void 0,o.findSourceMapURL,"isWebPushTokenRegisteredAction"),l=(0,o.createServerReference)("6064fce96ceb79ff76e4df8f11edaea04449c386d9",o.callServer,void 0,o.findSourceMapURL,"saveWebPushTokenAction");let c="perplz.webpush.optin";function d(e){try{e?localStorage.setItem(c,"1"):localStorage.removeItem(c)}catch(e){}}async function u(){return"serviceWorker"in navigator&&"Notification"in window&&await (0,n.getFirebaseMessaging)()!=null}async function f(){let e=await (0,n.getFirebaseMessaging)();if(!e)return null;let t=await navigator.serviceWorker.register("/firebase-messaging-sw.js"),a=await (0,r.getToken)(e,{vapidKey:"BLdx9Bl4mOsoWZsZx8ajoRZJ3somQeBAL-OnQDe0T1Hna_7HxViYV0vWd340qfUknnQgBNe1UZOThRLIXleZRrA",serviceWorkerRegistration:t});return null!=a?a:null}async function p(){try{if(!await u()||"granted"!==Notification.permission)return;let e=await f();e&&await i(e);let t=await (0,n.getFirebaseMessaging)();t&&await (0,r.deleteToken)(t).catch(()=>{}),d(!1)}catch(e){}}function h(e){let[o,p]=(0,t.useState)("checking"),[h,g]=(0,t.useState)(!1),m=(0,t.useRef)(null),v=(0,t.useRef)(!1),x=(0,t.useCallback)(async()=>{let e=await f();return m.current=e,e},[]);(0,t.useEffect)(()=>{let t=!1,r=e=>{t||v.current||p(e)};return(async()=>{if((0,a.parseDesktopUA)(navigator.userAgent).isDesktop)return r("desktop-native");if(!e)return r("off");if(!await u())return r("unsupported");if("denied"===Notification.permission)return r("denied");if("granted"!==Notification.permission)return r("off");try{let e=await x();if(t)return;if(!e)return r("off");let a=await s(e);if(t)return;if(a.success&&a.registered)return r("on");if(!function(){try{return"1"===localStorage.getItem(c)}catch(e){return!1}}())return r("off");let n=await l(e,navigator.userAgent);if(t)return;r(n.success?"on":"off")}catch(e){r("off")}})(),()=>{t=!0}},[e,x]);let y=(0,t.useCallback)(async()=>{if(h)return{ok:!1,error:"busy"};v.current=!0,g(!0);try{if((0,a.parseDesktopUA)(navigator.userAgent).isDesktop)return p("desktop-native"),{ok:!1,error:"desktop-native"};if(!await u())return p("unsupported"),{ok:!1,error:"unsupported"};let t=await Notification.requestPermission();if("denied"===t)return p("denied"),{ok:!1,error:"denied"};if("granted"!==t)return p("off"),{ok:!1,error:"dismissed"};let r=await x();if(!r)return p("off"),{ok:!1,error:"token"};let n=await l(r,navigator.userAgent);if(!n.success){var e;return p("off"),{ok:!1,error:null!=(e=n.error)?e:"save"}}return d(!0),p("on"),{ok:!0}}catch(e){return p("off"),{ok:!1,error:e instanceof Error?e.message:"unknown"}}finally{g(!1)}},[h,x]),b=(0,t.useCallback)(async()=>{if(h)return{ok:!1,error:"busy"};v.current=!0,g(!0);try{var e,t;let a=null!=(e=m.current)?e:await x();if(a){let e=await i(a);if(!e.success)return{ok:!1,error:null!=(t=e.error)?t:"delete"};let o=await (0,n.getFirebaseMessaging)();o&&await (0,r.deleteToken)(o).catch(()=>{}),m.current=null}return d(!1),p("off"),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"unknown"}}finally{g(!1)}},[h,x]);return{state:o,busy:h,enable:y,disable:b}}},298649,e=>{"use strict";e.s(["useSignOut",()=>s],298649);var t=e.i(271645),r=e.i(95187),a=(0,r.createServerReference)("0098eb0752ad9cd32cd322f3a1d1aff75cb46e961c",r.callServer,void 0,r.findSourceMapURL,"signOutAction"),n=e.i(23375),o=e.i(901921),i=e.i(511795);function s(){return(0,t.useCallback)(async()=>{(0,o.parseDesktopUA)(navigator.userAgent).isDesktop||await (0,n.revokeWebPushForLogout)();try{await (0,i.createClient)().auth.signOut()}catch(e){}await a()},[])}},939951,e=>{"use strict";e.s(["ListTodo",()=>t],939951);let t=(0,e.i(475254).default)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]])},300771,840785,472891,623054,e=>{"use strict";e.s(["getNotificationsAction",()=>r],300771);var t=e.i(95187),r=(0,t.createServerReference)("40d23cb23cbf6cb16a8f68595c7f01981605d26920",t.callServer,void 0,t.findSourceMapURL,"getNotificationsAction");e.s(["markNotificationReadAction",()=>a],840785);var a=(0,t.createServerReference)("40558a08ac3f242f3853ce5e13cc76a18a570a2256",t.callServer,void 0,t.findSourceMapURL,"markNotificationReadAction");e.s(["markAllNotificationsReadAction",()=>n],472891);var n=(0,t.createServerReference)("00895e0bde459e65160e8721b895d766c3b79724f6",t.callServer,void 0,t.findSourceMapURL,"markAllNotificationsReadAction");e.s(["NotificationItem",()=>M],623054);var o=e.i(843476),i=e.i(271645),s=e.i(618566),l=e.i(257995),c=e.i(842009),d=e.i(245423),u=e.i(959208),f=e.i(664659),p=e.i(191741),h=e.i(561659),g=e.i(939951),m=e.i(622555),v=e.i(686311),x=e.i(981997),y=e.i(751737);let b=(0,e.i(475254).default)("stamp",[["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13",key:"i9gjdv"}],["path",{d:"M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z",key:"1vzg3v"}],["path",{d:"M5 22h14",key:"ehvnwv"}]]);var w=e.i(879002),j=e.i(761911),k=e.i(636248),C=e.i(913060);function N(e){let t={};for(let[r,a]of Object.entries(C.NOTIFICATION_TYPES))a.domain===e&&"string"==typeof a.displayCategory&&(t[r]=a.displayCategory);return t}N("team"),N("personal");var D=e.i(699204),A=e.i(14127),S=e.i(4007);let P={ko:{project:"íë¡ì í¸",feed:"í¼ë",feed_comment:"ëê¸",colleague:"ëë£",chat:"ì±í
",community:"커뮤ëí°",mention:"ë©ì
",reminder:"리ë§ì¸ë",team:"í",subscription:"구ë
",default:"ì림"},en:{project:"Project",feed:"Feed",feed_comment:"Comment",colleague:"Colleague",chat:"Chat",community:"Community",mention:"Mention",reminder:"Reminder",team:"Team",subscription:"Subscription",default:"Notification"}},T={feed:(0,o.jsx)(v.MessageSquare,{className:"w-5 h-5 text-blue-500"}),community:(0,o.jsx)(x.MessagesSquare,{className:"w-5 h-5 text-purple-500"}),board:(0,o.jsx)(p.ClipboardList,{className:"w-5 h-5 text-teal-500"}),chat:(0,o.jsx)(k.ChatIcon,{className:"w-5 h-5 text-orange-500"}),mention:(0,o.jsx)(l.AtSign,{className:"w-5 h-5 text-violet-500"}),feedback:(0,o.jsx)(m.MessageCircleHeart,{className:"w-5 h-5 text-rose-500"}),project:(0,o.jsx)(g.ListTodo,{className:"w-5 h-5 text-primary"}),attendance:(0,o.jsx)(u.CalendarClock,{className:"w-5 h-5 text-sky-500"}),colleague:(0,o.jsx)(j.Users,{className:"w-5 h-5 text-green-500"}),membership:(0,o.jsx)(w.UserPlus,{className:"w-5 h-5 text-emerald-500"}),management:(0,o.jsx)(b,{className:"w-5 h-5 text-indigo-500"}),billing:(0,o.jsx)(h.CreditCard,{className:"w-5 h-5 text-amber-500"}),moderation:(0,o.jsx)(y.ShieldAlert,{className:"w-5 h-5 text-red-500"}),reminder:(0,o.jsx)(d.Bell,{className:"w-5 h-5 text-yellow-500"}),badge:(0,o.jsx)(c.Award,{className:"w-5 h-5 text-yellow-500"}),unknown:(0,o.jsx)(d.Bell,{className:"w-5 h-5 text-muted-foreground"})};function R(e){var t;return null!=(t=T[e])?t:T.unknown}function M(e){var t,r;let{notification:a,onRead:n,onNavigate:l,compact:c=!1}=e,d=(0,s.useRouter)(),{lang:u}=(0,S.useLanguage)(),[p,h]=(0,i.useState)(!1),g=(null!=(t=a.groupCount)?t:1)>1,m=(0,D.resolveNotificationHref)(a.data,a.type),v=c?"px-4 py-3":"px-5 py-4",x=()=>
1{if(!a.is_read){var e;null==n||n(null!=(e=a.groupIds)?e:[a.id])}null==l||l(),d.push(m)},y=(0,o.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-1",children:[(0,o.jsx)("span",{className:"text-xs font-medium text-muted-foreground truncate min-w-0",children:function(e,t){var r,a;let n="string"==typeof(null==(r=e.data)?void 0:r.inapp_title)?e.data.inapp_title.trim():"";if(n)return n;let o=null==(a=e.title)?void 0:a.trim();if(o)return o;let i=function(e,t){var r,a;let n=null!=(a=P[t])?a:P.ko;if("feed"===e.type&&(null==(r=e.data)?void 0:r.comment_id))return n.feed_comment;switch(e.type){case"project":return n.project;case"feed":return n.feed;case"colleague":return n.colleague;case"chat":return n.chat;case"community":return n.community;case"mention":return n.mention;case"reminder":return n.reminder;case"team":return n.team;case"subscription":return n.subscription;default:return n.default}}(e,t);return e.contextLabel?"".concat(i," - ").concat(e.contextLabel):i}(a,u)}),(0,o.jsx)("span",{className:"text-xs text-muted-foreground/60 flex-shrink-0",children:(0,A.formatRelativeTime)(a.created_at,u)})]});if(g){let e=[...null!=(r=a.groupItems)?r:[]].reverse();return(0,o.jsxs)("div",{className:a.is_read?"opacity-50":"",children:[(0,o.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),className:"w-full flex gap-3 text-left hover:bg-muted/30 transition-colors ".concat(v),"aria-expanded":p,children:[(0,o.jsx)("div",{className:"w-10 h-10 rounded-full bg-muted/50 flex items-center justify-center flex-shrink-0 mt-0.5",children:R("chat")}),(0,o.jsxs)("div",{className:"flex-1 min-w-0",children:[y,(0,o.jsxs)("p",{className:"text-sm leading-relaxed flex items-center gap-1",children:[(0,o.jsx)("span",{className:"text-muted-foreground",children:"ko"===u?"".concat(a.groupCount,"ê°ì ").concat(a.is_read?"":"ì ","ë©ìì§"):"".concat(a.groupCount," ").concat(a.is_read?"":"new ","messages")}),(0,o.jsx)(f.ChevronDown,{className:"w-3.5 h-3.5 text-muted-foreground/70 transition-transform ".concat(p?"rotate-180":"")})]})]}),!a.is_read&&(0,o.jsx)("div",{className:"w-2 h-2 rounded-full bg-primary flex-shrink-0 mt-2"})]}),p&&(0,o.jsx)("div",{className:"".concat(c?"pl-[64px] pr-4 pb-2":"pl-[72px] pr-5 pb-3"),children:e.map(e=>(0,o.jsxs)("a",{href:m,onClick:e=>{e.preventDefault(),x()},className:"flex items-start justify-between gap-2 -mx-2 px-2 py-1.5 rounded-md hover:bg-muted/40 transition-colors cursor-pointer",children:[(0,o.jsxs)("span",{className:"text-sm text-foreground leading-snug line-clamp-2 min-w-0",children:[e.senderNick?(0,o.jsxs)("span",{className:"font-semibold",children:[e.senderNick,": "]}):null,e.body]}),(0,o.jsx)("span",{className:"text-xs text-muted-foreground/60 flex-shrink-0 mt-0.5",children:(0,A.formatRelativeTime)(e.created_at,u)})]},e.id))})]})}return(0,o.jsxs)("a",{href:m,onClick:e=>{e.preventDefault(),x()},className:"flex gap-3 hover:bg-muted/30 transition-colors cursor-pointer ".concat(v," ").concat(a.is_read?"opacity-50":""),children:[(0,o.jsx)("div",{className:"w-10 h-10 rounded-full bg-muted/50 flex items-center justify-center flex-shrink-0 mt-0.5",children:R(function(e){let t="string"==typeof(null==e?void 0:e.type)?e.type:null;if(!t)return"unknown";let r=C.NOTIFICATION_TYPES[t];return r&&null!=r.displayCategory?"function"==typeof r.displayCategory?r.displayCategory(null!=e?e:{}):r.displayCategory:"unknown"}(a.data))}),(0,o.jsxs)("div",{className:"flex-1 min-w-0",children:[y,(0,o.jsxs)("p",{className:"text-sm text-foreground leading-relaxed line-clamp-2",children:[a.senderNick?(0,o.jsxs)("span",{className:"font-semibold",children:[a.senderNick,": "]}):null,function(e){var t;let r=null==(t=e.data)?void 0:t.inapp_body;return"string"==typeof r&&r.trim()?r:e.body}(a)]})]}),!a.is_read&&(0,o.jsx)("div",{className:"w-2 h-2 rounded-full bg-primary flex-shrink-0 mt-2"})]})}},476207,e=>{e.v(e=>Promise.resolve().then(()=>e(959141)))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.