@ihabdevteam/core 0.477.0 → 0.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var xt=require("i18next"),Ae=require("react-i18next"),s=require("react"),a=require("react/jsx-runtime"),Do=require("react-dom"),Oo=typeof document<"u"?document.currentScript:null;function My(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if(o!=="default"){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var km=My(s);function ue(e,t){t===void 0&&(t={});var o=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",o==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var $y=':where(.ihabdevteam-core-scope){--side-nav-width:220px;--brand-main:#499cdf;--brand-sub:#4dcdc0;--color-lightMain:var(--brand-lightMain,#d2e2ef);--color-softMain:var(--brand-softMain,#8bbce4);--color-main:var(--brand-main);--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-deepMain:var(--brand-deepMain,#418ecd);--color-darkMain:var(--brand-darkMain,#1e5a8f);--color-lightSub:var(--brand-lightSub,#d5ecea);--color-softSub:var(--brand-softSub,#92ddd5);--color-sub:var(--brand-sub);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-deepSub:var(--brand-deepSub,#45bbaf);--color-darkSub:var(--brand-darkSub,#257e76);--color-text-main:var(--color-darkMain);--color-text-sub:var(--color-darkSub);--color-infoLink:#2f7fd1;--color-uiAccent:#32bbae;--color-success:#2fae9e;--color-warn:#e6b94e;--color-warn-a10:#e6b94e1a;--color-error:#d9534f;--color-error-a10:#d9534f1a;--color-like:#e06b68;--color-disabled:#bfc7d1;--color-pureWhite:#fff;--color-white:#fbfdff;--color-white-a10:#fbfdff1a;--color-white-a30:#fbfdff4d;--color-white-a60:#fbfdff99;--color-white-a80:#fbfdffcc;--color-deepWhite:#f8fafc;--color-darkWhite:#eef2f6;--color-whiteLine:#dde3ec;--color-lightGray:#96a4b8;--color-lightGray-a10:#96a4b81a;--color-lightGray-a80:#96a4b8cc;--color-softGray:#7b8ca3;--color-gray:#64748b;--color-gray-a10:#64748b1a;--color-gray-a60:#64748b99;--color-gray-a80:#64748bcc;--color-deepGray:#546170;--color-darkGray:#434d56;--color-darkGray-a10:#434d561a;--color-lightBlack:#32393f;--color-softBlack:#222528;--color-black:#111;--color-pureBlack:#000;--color-popupBlock:rgba(16,24,32,.6);--color-onDark-title:#fff;--color-onDark-text:hsla(0,0%,100%,.58);--color-onDark-muted:hsla(0,0%,100%,.5);--color-onDark-surface:hsla(0,0%,100%,.04);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-on-brand-fill:#fff;--color-on-gray-fill:#fff;--color-card-edge:rgba(0,0,0,.06);--color-control-edge:transparent;--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine);--color-overlay:var(--color-popupBlock);--shadow-popup:20px 20px 20px rgba(0,0,0,.05);--shadow-tooltip:8px 8px 8px rgba(0,0,0,.05);--shadow-button:4px 4px 4px rgba(0,0,0,.05);--shadow-menu:20px 20px 20px rgba(0,0,0,.05);--shadow-card:2px 2px 8px rgba(0,0,0,.06);--shadow-dropdown:8px 8px 24px rgba(0,0,0,.06);--shadow-panel:4px 4px 20px rgba(0,0,0,.06);--font-family:"Pretendard Variable","Pretendard",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,"Roboto Mono","Courier New",monospace;--text-display-0-size:clamp(44px,7.2vw,92px);--text-display-0-line:1.05;--text-display-0-spacing:-0.04em;--text-display-0-weight:800;--text-display-0-weight-bold:900;--text-display-1-size:clamp(44px,6.6vw,72px);--text-display-1-line:1.05;--text-display-1-spacing:-0.04em;--text-display-1-weight:800;--text-display-1-weight-bold:900;--text-display-2-size:clamp(38px,5.2vw,56px);--text-display-2-line:1.12;--text-display-2-spacing:-0.03em;--text-display-2-weight:700;--text-display-2-weight-bold:800;--text-display-3-size:clamp(34px,4.1vw,44px);--text-display-3-line:1.2;--text-display-3-spacing:-0.02em;--text-display-3-weight:700;--text-display-3-weight-bold:800;--text-h0-size:40px;--text-h0-line:52px;--text-h0-spacing:-1px;--text-h0-weight:700;--text-h0-weight-bold:800;--text-h1-size:32px;--text-h1-line:44px;--text-h1-spacing:-0.5px;--text-h1-weight:700;--text-h1-weight-bold:800;--text-h2-size:24px;--text-h2-line:34px;--text-h2-spacing:-0.25px;--text-h2-weight:500;--text-h2-weight-bold:600;--text-h3-size:20px;--text-h3-line:30px;--text-h3-spacing:normal;--text-h3-weight:500;--text-h3-weight-bold:600;--text-h4-size:17px;--text-h4-line:26px;--text-h4-spacing:normal;--text-h4-weight:500;--text-h4-weight-bold:600;--text-h5-size:15px;--text-h5-line:23px;--text-h5-spacing:normal;--text-h5-weight:500;--text-h5-weight-bold:600;--text-body-1-size:18px;--text-body-1-line:28px;--text-body-1-weight:400;--text-body-1-weight-bold:600;--text-body-2-size:16px;--text-body-2-line:26px;--text-body-2-weight:400;--text-body-2-weight-bold:600;--text-body-3-size:14px;--text-body-3-line:22px;--text-body-3-weight:400;--text-body-3-weight-bold:600;--text-button-1-size:14px;--text-button-1-line:20px;--text-button-1-weight:500;--text-button-2-size:13px;--text-button-2-line:18px;--text-button-2-weight:400;--text-caption-1-size:12px;--text-caption-1-line:17px;--text-caption-1-weight:400;--text-caption-1-weight-bold:600;--text-caption-2-size:11px;--text-caption-2-line:15px;--text-caption-2-weight:400;--text-caption-2-weight-bold:600;--spacing-xs:8px;--spacing-s:12px;--spacing-m:16px;--spacing-l:20px;--spacing-xl:24px;--spacing-page:60px;--spacing-content:20px;--container-page:1920px;--margin-page:var(--spacing-page);--margin-content:var(--spacing-content);--duration-fast:120ms;--duration-base:200ms;--duration-slow:320ms;--ease-out:cubic-bezier(0.22,0.9,0.3,1);--ease-in-out:cubic-bezier(0.4,0,0.2,1);--bp-tablet:768px;--bp-desktop:1024px;--radius-xs:4px;--radius-sm:8px;--radius-s:10px;--radius-card:12px;--radius-m:20px;--radius-l:40px;--radius-full:999px;--scrollbar-size:6px;--popup-wide-gap:40px;--count-tile-size:72px;--training-card-tile-gap:6px;--training-card-padding:18px;--training-card-width:calc(var(--count-tile-size)*4 + var(--training-card-tile-gap)*3 + var(--training-card-padding)*2 + 2px);--radius-dialog:var(--radius-m);--z-base:0;--z-content:1;--z-dropdown:200;--z-sticky:500;--z-bulk-bar:600;--z-nav:1000;--z-sidebar:1100;--z-menu:1500;--z-overlay:2000;--z-page-popup:2100;--z-fab:2150;--z-modal:2200;--focus-ring:var(--color-main);--z-popover:2300;--z-tooltip:3000;--z-alert:3100;--z-toast:3200;color-scheme:light}@media (min-width:768px) and (max-width:1023px){:where(.ihabdevteam-core-scope){--spacing-page:40px;--spacing-content:15px;--text-h0-size:32px;--text-h0-line:44px;--text-h0-spacing:-0.75px;--text-h1-size:28px;--text-h1-line:40px;--text-h1-spacing:-0.4px;--text-h2-size:22px;--text-h2-line:32px;--text-h2-spacing:-0.2px;--text-h4-size:16px;--text-h4-line:24px;--text-h5-size:14px;--text-h5-line:21px;--text-body-1-size:17px;--text-body-1-line:27px;--text-body-2-size:15px;--text-body-2-line:24px;--text-body-3-size:14px;--text-body-3-line:22px}}@media (max-width:767px){:where(.ihabdevteam-core-scope){--spacing-page:20px;--spacing-content:10px;--text-h0-size:28px;--text-h0-line:38px;--text-h0-spacing:-0.5px;--text-h1-size:24px;--text-h1-line:34px;--text-h1-spacing:-0.3px;--text-h2-size:20px;--text-h2-line:29px;--text-h2-spacing:-0.2px;--text-h3-size:17px;--text-h3-line:26px;--text-h4-size:15px;--text-h4-line:23px;--text-h5-size:13px;--text-h5-line:20px;--text-body-1-size:17px;--text-body-1-line:27px;--text-body-2-size:15px;--text-body-2-line:23px;--text-body-3-size:13px;--text-body-3-line:21px}}.ihabdevteam-core-scope [data-font-scale=large1],.ihabdevteam-core-scope[data-font-scale=large1],[data-font-scale=large1] .ihabdevteam-core-scope{--side-nav-width:232px;--text-h4-size:19px;--text-h4-line:29px;--text-h5-size:17px;--text-h5-line:26px;--text-body-1-size:20px;--text-body-1-line:31px;--text-body-2-size:18px;--text-body-2-line:28px;--text-body-3-size:16px;--text-body-3-line:25px;--text-button-1-size:16px;--text-button-1-line:23px;--text-button-2-size:15px;--text-button-2-line:21px;--text-caption-1-size:14px;--text-caption-1-line:20px;--text-caption-2-size:12px;--text-caption-2-line:17px}.ihabdevteam-core-scope [data-font-scale=large2],.ihabdevteam-core-scope[data-font-scale=large2],[data-font-scale=large2] .ihabdevteam-core-scope{--side-nav-width:236px;--text-h4-size:21px;--text-h4-line:32px;--text-h5-size:19px;--text-h5-line:29px;--text-body-1-size:23px;--text-body-1-line:36px;--text-body-2-size:20px;--text-body-2-line:31px;--text-body-3-size:18px;--text-body-3-line:28px;--text-button-1-size:18px;--text-button-1-line:26px;--text-button-2-size:16px;--text-button-2-line:23px;--text-caption-1-size:15px;--text-caption-1-line:21px;--text-caption-2-size:14px;--text-caption-2-line:19px}.ihabdevteam-core-scope [data-font-scale=large3],.ihabdevteam-core-scope[data-font-scale=large3],[data-font-scale=large3] .ihabdevteam-core-scope{--side-nav-width:260px;--text-h4-size:23px;--text-h4-line:35px;--text-h5-size:21px;--text-h5-line:32px;--text-body-1-size:27px;--text-body-1-line:42px;--text-body-2-size:24px;--text-body-2-line:37px;--text-body-3-size:21px;--text-body-3-line:33px;--text-button-1-size:21px;--text-button-1-line:30px;--text-button-2-size:20px;--text-button-2-line:29px;--text-caption-1-size:18px;--text-caption-1-line:25px;--text-caption-2-size:17px;--text-caption-2-line:24px}.ihabdevteam-core-scope [data-contrast=more],.ihabdevteam-core-scope[data-contrast=more],[data-contrast=more] .ihabdevteam-core-scope{--color-main:#2a6db0;--color-deepMain:#1e5a8f;--color-darkMain:#164a78;--color-sub:#257e76;--color-deepSub:#1f6b64;--color-darkSub:#185a54;--color-text-main:var(--color-darkMain);--color-text-sub:var(--color-darkSub);--color-lightGray:#5f6b7a;--color-softGray:#56616f;--color-gray:#434d56;--color-deepGray:#36404a;--color-darkGray:#2a3138;--color-whiteLine:#7b8798;--color-error:#b52f2b;--color-success:#1d7a6e;--color-infoLink:#1f62a8;--color-on-brand-fill:#fff;--color-black:#000;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}.ihabdevteam-core-scope [data-theme=dark],.ihabdevteam-core-scope[data-theme=dark],[data-theme=dark] .ihabdevteam-core-scope{--color-white:#2a3037;--color-deepWhite:#1b1f24;--color-darkWhite:#353c44;--color-whiteLine:hsla(0,0%,100%,.08);--color-black:#f0f2f5;--color-softBlack:#dde1e7;--color-lightBlack:#d4d9e0;--color-darkGray:#cbd1da;--color-deepGray:#c3cad4;--color-gray:#b8c0cc;--color-softGray:#aeb7c3;--color-lightGray:#a1aab7;--color-main-ink:var(--color-softMain);--color-error-ink:#ef9490;--color-like-ink:#ee8f8c;--color-on-gray-fill:#0f1215;--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine);--color-pureWhite:#0f1215;--color-pureBlack:#f0f2f5;--color-disabled:#4a525d;color-scheme:dark}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]),.ihabdevteam-core-scope [data-theme=auto],.ihabdevteam-core-scope[data-theme=auto],[data-theme=auto] .ihabdevteam-core-scope{--color-white:#2a3037;--color-deepWhite:#1b1f24;--color-darkWhite:#353c44;--color-whiteLine:hsla(0,0%,100%,.08);--color-black:#f0f2f5;--color-softBlack:#dde1e7;--color-lightBlack:#d4d9e0;--color-darkGray:#cbd1da;--color-deepGray:#c3cad4;--color-gray:#b8c0cc;--color-softGray:#aeb7c3;--color-lightGray:#a1aab7;--color-main-ink:var(--color-softMain);--color-error-ink:#ef9490;--color-like-ink:#ee8f8c;--color-on-gray-fill:#0f1215;--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine);--color-pureWhite:#0f1215;--color-pureBlack:#f0f2f5;--color-disabled:#4a525d;color-scheme:dark}}.ihabdevteam-core-scope [data-theme=dark][data-contrast=more],.ihabdevteam-core-scope[data-theme=dark][data-contrast=more],[data-theme=dark][data-contrast=more] .ihabdevteam-core-scope{--color-main:#78b2ee;--color-deepMain:#6aa8ea;--color-darkMain:#5b9be0;--color-sub:#4dcdc0;--color-deepSub:#45bbaf;--color-darkSub:#3aa89c;--color-on-brand-fill:#0f1215;--color-black:#fff;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-lightGray:#b0b8c4;--color-softGray:#bec5cf;--color-gray:#cbd1da;--color-deepGray:#d6dbe2;--color-darkGray:#e2e6eb;--color-whiteLine:hsla(0,0%,100%,.52);--color-error:#f09a96;--color-success:#2fae9e;--color-infoLink:#6aa8ea;--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark])[data-contrast=more],.ihabdevteam-core-scope [data-theme=auto][data-contrast=more],.ihabdevteam-core-scope[data-theme=auto][data-contrast=more],[data-theme=auto][data-contrast=more] .ihabdevteam-core-scope{--color-main:#78b2ee;--color-deepMain:#6aa8ea;--color-darkMain:#5b9be0;--color-sub:#4dcdc0;--color-deepSub:#45bbaf;--color-darkSub:#3aa89c;--color-on-brand-fill:#0f1215;--color-black:#fff;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-lightGray:#b0b8c4;--color-softGray:#bec5cf;--color-gray:#cbd1da;--color-deepGray:#d6dbe2;--color-darkGray:#e2e6eb;--color-whiteLine:hsla(0,0%,100%,.52);--color-error:#f09a96;--color-success:#2fae9e;--color-infoLink:#6aa8ea;--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}}@media (prefers-contrast:more){.ihabdevteam-core-scope :root:not([data-contrast]),.ihabdevteam-core-scope:not([data-contrast] *):not([data-contrast]){--color-main:#2a6db0;--color-deepMain:#1e5a8f;--color-darkMain:#164a78;--color-sub:#257e76;--color-deepSub:#1f6b64;--color-darkSub:#185a54;--color-text-main:var(--color-darkMain);--color-text-sub:var(--color-darkSub);--color-lightGray:#5f6b7a;--color-softGray:#56616f;--color-gray:#434d56;--color-deepGray:#36404a;--color-darkGray:#2a3138;--color-whiteLine:#7b8798;--color-error:#b52f2b;--color-success:#1d7a6e;--color-infoLink:#1f62a8;--color-on-brand-fill:#fff;--color-black:#000;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}.ihabdevteam-core-scope [data-theme=dark]:not([data-contrast]),.ihabdevteam-core-scope[data-theme=dark]:not([data-contrast]),[data-theme=dark]:not([data-contrast]) .ihabdevteam-core-scope{--color-main:#78b2ee;--color-deepMain:#6aa8ea;--color-darkMain:#5b9be0;--color-sub:#4dcdc0;--color-deepSub:#45bbaf;--color-darkSub:#3aa89c;--color-on-brand-fill:#0f1215;--color-black:#fff;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-lightGray:#b0b8c4;--color-softGray:#bec5cf;--color-gray:#cbd1da;--color-deepGray:#d6dbe2;--color-darkGray:#e2e6eb;--color-whiteLine:hsla(0,0%,100%,.52);--color-error:#f09a96;--color-success:#2fae9e;--color-infoLink:#6aa8ea;--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]):not([data-contrast]),.ihabdevteam-core-scope [data-theme=auto]:not([data-contrast]),.ihabdevteam-core-scope[data-theme=auto]:not([data-contrast]),[data-theme=auto]:not([data-contrast]) .ihabdevteam-core-scope{--color-main:#78b2ee;--color-deepMain:#6aa8ea;--color-darkMain:#5b9be0;--color-sub:#4dcdc0;--color-deepSub:#45bbaf;--color-darkSub:#3aa89c;--color-on-brand-fill:#0f1215;--color-black:#fff;--color-hc-edge:var(--color-whiteLine);--color-card-edge:var(--color-whiteLine);--color-control-edge:var(--color-whiteLine);--color-text-main:var(--color-softMain);--color-text-sub:var(--color-softSub);--color-lightGray:#b0b8c4;--color-softGray:#bec5cf;--color-gray:#cbd1da;--color-deepGray:#d6dbe2;--color-darkGray:#e2e6eb;--color-whiteLine:hsla(0,0%,100%,.52);--color-error:#f09a96;--color-success:#2fae9e;--color-infoLink:#6aa8ea;--color-main-a10:color-mix(in srgb,var(--color-main) 10%,transparent);--color-main-a20:color-mix(in srgb,var(--color-main) 20%,transparent);--color-sub-a10:color-mix(in srgb,var(--color-sub) 10%,transparent);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine)}}.force-light-scheme .ihabdevteam-core-scope,.ihabdevteam-core-scope .force-light-scheme,.ihabdevteam-core-scope.force-light-scheme{--color-pureWhite:#fff;--color-white:#fbfdff;--color-deepWhite:#f8fafc;--color-darkWhite:#eef2f6;--color-whiteLine:#dde3ec;--color-lightGray:#96a4b8;--color-softGray:#7b8ca3;--color-gray:#64748b;--color-deepGray:#546170;--color-darkGray:#434d56;--color-lightBlack:#32393f;--color-softBlack:#222528;--color-black:#111;--color-pureBlack:#000;--color-disabled:#bfc7d1;--color-text-main:var(--color-darkMain);--color-text-sub:var(--color-darkSub);--color-text-primary:var(--color-black);--color-text-secondary:var(--color-gray);--color-text-muted:var(--color-lightGray);--color-text-on-brand:var(--color-pureWhite);--color-surface:var(--color-white);--color-surface-raised:var(--color-deepWhite);--color-surface-sunken:var(--color-darkWhite);--color-border:var(--color-whiteLine);--color-main-ink:initial;--color-error-ink:initial;--color-on-gray-fill:#fff;--color-like-ink:initial;color-scheme:light}.ihabdevteam-core-scope .game-overlay{align-items:center;background:rgba(0,0,0,.5);background:var(--game-overlay-bg,rgba(0,0,0,.5));display:flex;inset:0;justify-content:center;position:fixed;z-index:2200;z-index:var(--z-modal)}@media (max-width:767px){.ihabdevteam-core-scope .game-overlay:has(.game-sheet--play){padding:0}.ihabdevteam-core-scope .game-sheet.game-sheet--play{border:none;border-radius:0;box-shadow:none;height:100%;justify-content:center;max-height:none;max-width:none;padding:calc(28px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));width:100%}}@media (max-height:500px){.ihabdevteam-core-scope .game-sheet.game-sheet--play{gap:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom));padding-top:calc(10px + env(safe-area-inset-top))}.ihabdevteam-core-scope .game-sheet--play .game-play-header{gap:8px}.ihabdevteam-core-scope .game-sheet--play .game-play-header__icon{font-size:18px;height:32px;width:32px}}.ihabdevteam-core-scope .game-play-header,.ihabdevteam-core-scope .game-timer{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .game-timer__label{min-width:30px;text-align:right;transition:color .3s}.ihabdevteam-core-scope .game-timer-slider-wrap{display:flex;flex:1}.ihabdevteam-core-scope .game-rounds{align-items:center;display:flex;gap:7px}.ihabdevteam-core-scope .game-rounds__dot{background:hsla(0,0%,100%,.14);background:var(--game-dot,var(--game-dot-bg,hsla(0,0%,100%,.14)));border-radius:50%;height:8px;transition:background .25s,transform .25s,box-shadow .25s;width:8px}.ihabdevteam-core-scope .game-rounds__dot--correct{--game-dot:var(--game-dot-correct,#34d399)}.ihabdevteam-core-scope .game-rounds__dot--wrong{--game-dot:var(--game-dot-wrong,#f87171)}.ihabdevteam-core-scope .game-rounds__label{color:hsla(0,0%,100%,.45);color:var(--game-muted,hsla(0,0%,100%,.45));margin-left:auto}.ihabdevteam-core-scope .game-feedback{align-items:center;border-radius:10px;border-radius:var(--radius-s);display:flex;justify-content:center;padding:12px 16px;text-align:center}.ihabdevteam-core-scope .game-feedback--hidden{visibility:hidden}.ihabdevteam-core-scope .game-result{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs)}.ihabdevteam-core-scope .game-result__emoji{font-size:42px}.ihabdevteam-core-scope .game-result__item{align-items:center;border-radius:8px;border-radius:var(--radius-sm);box-sizing:border-box;display:flex;gap:10px;padding:8px 12px;width:100%}.ihabdevteam-core-scope .game-result__status{flex-shrink:0;width:18px}.ihabdevteam-core-scope .game-result__pct-row{align-items:center;display:flex;flex-direction:column;gap:6px;margin-bottom:8px;margin-bottom:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .game-result__footer{display:flex;gap:10px;margin-top:4px;width:100%}@media (max-height:700px){.ihabdevteam-core-scope .game-result{gap:10px}.ihabdevteam-core-scope .game-result__emoji-ring{font-size:30px;height:64px;width:64px}}@media (max-height:500px) and (min-width:520px){.ihabdevteam-core-scope .game-result{grid-column-gap:20px;grid-column-gap:var(--spacing-l);grid-row-gap:4px;align-content:center;align-items:center;-moz-column-gap:20px;column-gap:20px;-moz-column-gap:var(--spacing-l);column-gap:var(--spacing-l);display:grid;grid-template-columns:auto minmax(190px,1fr);height:100%;min-height:0;padding-right:44px;row-gap:4px;width:100%}.ihabdevteam-core-scope .game-result__emoji-ring{font-size:24px;height:52px;width:52px}.ihabdevteam-core-scope .game-result__list{align-self:stretch;grid-column:2;grid-row:1/span 5;max-height:100%;min-height:0}.ihabdevteam-core-scope .game-result__footer{background:none;grid-column:2;grid-row:6;margin-top:0;padding-top:0;position:static}}@media (hover:none){.ihabdevteam-core-scope [role=button]:hover,.ihabdevteam-core-scope a:hover,.ihabdevteam-core-scope button:hover{opacity:1}}.ihabdevteam-core-scope *,.ihabdevteam-core-scope :after,.ihabdevteam-core-scope :before{box-sizing:border-box}.ihabdevteam-core-scope{margin:0}.ihabdevteam-core-scope button,.ihabdevteam-core-scope input,.ihabdevteam-core-scope select,.ihabdevteam-core-scope textarea{font-family:inherit}:where(.ihabdevteam-core-scope) :where(.display-0),:where(.ihabdevteam-core-scope) :where(.display-0b){font-size:clamp(44px,7.2vw,92px);font-size:var(--text-display-0-size);letter-spacing:-.04em;letter-spacing:var(--text-display-0-spacing);line-height:1.05;line-height:var(--text-display-0-line);margin:0}:where(.ihabdevteam-core-scope) :where(.display-1),:where(.ihabdevteam-core-scope) :where(.display-1b){font-size:clamp(44px,6.6vw,72px);font-size:var(--text-display-1-size);letter-spacing:-.04em;letter-spacing:var(--text-display-1-spacing);line-height:1.05;line-height:var(--text-display-1-line);margin:0}:where(.ihabdevteam-core-scope) :where(.display-2),:where(.ihabdevteam-core-scope) :where(.display-2b){font-size:clamp(38px,5.2vw,56px);font-size:var(--text-display-2-size);letter-spacing:-.03em;letter-spacing:var(--text-display-2-spacing);line-height:1.12;line-height:var(--text-display-2-line);margin:0}:where(.ihabdevteam-core-scope) :where(.display-3),:where(.ihabdevteam-core-scope) :where(.display-3b){font-size:clamp(34px,4.1vw,44px);font-size:var(--text-display-3-size);letter-spacing:-.02em;letter-spacing:var(--text-display-3-spacing);line-height:1.2;line-height:var(--text-display-3-line);margin:0}:where(.ihabdevteam-core-scope) :where(.display-0){font-weight:800;font-weight:var(--text-display-0-weight)}:where(.ihabdevteam-core-scope) :where(.display-1){font-weight:800;font-weight:var(--text-display-1-weight)}:where(.ihabdevteam-core-scope) :where(.display-2){font-weight:700;font-weight:var(--text-display-2-weight)}:where(.ihabdevteam-core-scope) :where(.display-3){font-weight:700;font-weight:var(--text-display-3-weight)}:where(.ihabdevteam-core-scope) :where(.display-0b){font-weight:900;font-weight:var(--text-display-0-weight-bold)}:where(.ihabdevteam-core-scope) :where(.display-1b){font-weight:900;font-weight:var(--text-display-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(.display-2b){font-weight:800;font-weight:var(--text-display-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(.display-3b){font-weight:800;font-weight:var(--text-display-3-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h0),:where(.ihabdevteam-core-scope) :where(.h0b){font-size:40px;font-size:var(--text-h0-size);letter-spacing:-1px;letter-spacing:var(--text-h0-spacing);line-height:52px;line-height:var(--text-h0-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h1),:where(.ihabdevteam-core-scope) :where(.h1b){font-size:32px;font-size:var(--text-h1-size);letter-spacing:-.5px;letter-spacing:var(--text-h1-spacing);line-height:44px;line-height:var(--text-h1-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h2),:where(.ihabdevteam-core-scope) :where(.h2b){font-size:24px;font-size:var(--text-h2-size);letter-spacing:-.25px;letter-spacing:var(--text-h2-spacing);line-height:34px;line-height:var(--text-h2-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h3),:where(.ihabdevteam-core-scope) :where(.h3b){font-size:20px;font-size:var(--text-h3-size);letter-spacing:normal;letter-spacing:var(--text-h3-spacing);line-height:30px;line-height:var(--text-h3-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h4),:where(.ihabdevteam-core-scope) :where(.h4b){font-size:17px;font-size:var(--text-h4-size);letter-spacing:normal;letter-spacing:var(--text-h4-spacing);line-height:26px;line-height:var(--text-h4-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h5),:where(.ihabdevteam-core-scope) :where(.h5b){font-size:15px;font-size:var(--text-h5-size);letter-spacing:normal;letter-spacing:var(--text-h5-spacing);line-height:23px;line-height:var(--text-h5-line);margin:0}:where(.ihabdevteam-core-scope) :where(.h0){font-weight:700;font-weight:var(--text-h0-weight)}:where(.ihabdevteam-core-scope) :where(.h1){font-weight:700;font-weight:var(--text-h1-weight)}:where(.ihabdevteam-core-scope) :where(.h2){font-weight:500;font-weight:var(--text-h2-weight)}:where(.ihabdevteam-core-scope) :where(.h3){font-weight:500;font-weight:var(--text-h3-weight)}:where(.ihabdevteam-core-scope) :where(.h4){font-weight:500;font-weight:var(--text-h4-weight)}:where(.ihabdevteam-core-scope) :where(.h5){font-weight:500;font-weight:var(--text-h5-weight)}:where(.ihabdevteam-core-scope) :where(.h0b){font-weight:800;font-weight:var(--text-h0-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h1b){font-weight:800;font-weight:var(--text-h1-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h2b){font-weight:600;font-weight:var(--text-h2-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h3b){font-weight:600;font-weight:var(--text-h3-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h4b){font-weight:600;font-weight:var(--text-h4-weight-bold)}:where(.ihabdevteam-core-scope) :where(.h5b){font-weight:600;font-weight:var(--text-h5-weight-bold)}:where(.ihabdevteam-core-scope) :where(.body-1),:where(.ihabdevteam-core-scope) :where(.body-1b){font-size:18px;font-size:var(--text-body-1-size);font-weight:400;font-weight:var(--text-body-1-weight);line-height:28px;line-height:var(--text-body-1-line);margin:0}:where(.ihabdevteam-core-scope) :where(.body-2),:where(.ihabdevteam-core-scope) :where(.body-2b){font-size:16px;font-size:var(--text-body-2-size);font-weight:400;font-weight:var(--text-body-2-weight);line-height:26px;line-height:var(--text-body-2-line);margin:0}:where(.ihabdevteam-core-scope) :where(.body-3),:where(.ihabdevteam-core-scope) :where(.body-3b){font-size:14px;font-size:var(--text-body-3-size);font-weight:400;font-weight:var(--text-body-3-weight);line-height:22px;line-height:var(--text-body-3-line);margin:0}:where(.ihabdevteam-core-scope) :where(.body-1b){font-weight:600;font-weight:var(--text-body-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(.body-2b){font-weight:600;font-weight:var(--text-body-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(.body-3b){font-weight:600;font-weight:var(--text-body-3-weight-bold)}:where(.ihabdevteam-core-scope) :where(.button-1){font-size:14px;font-size:var(--text-button-1-size);font-weight:500;font-weight:var(--text-button-1-weight);line-height:20px;line-height:var(--text-button-1-line);margin:0}:where(.ihabdevteam-core-scope) :where(.button-2){font-size:13px;font-size:var(--text-button-2-size);font-weight:400;font-weight:var(--text-button-2-weight);line-height:18px;line-height:var(--text-button-2-line);margin:0}:where(.ihabdevteam-core-scope) :where(.caption-1),:where(.ihabdevteam-core-scope) :where(.caption-1b){font-size:12px;font-size:var(--text-caption-1-size);font-weight:400;font-weight:var(--text-caption-1-weight);line-height:17px;line-height:var(--text-caption-1-line);margin:0}:where(.ihabdevteam-core-scope) :where(.caption-2),:where(.ihabdevteam-core-scope) :where(.caption-2b){font-size:11px;font-size:var(--text-caption-2-size);font-weight:400;font-weight:var(--text-caption-2-weight);line-height:15px;line-height:var(--text-caption-2-line);margin:0}:where(.ihabdevteam-core-scope) :where(.caption-1b){font-weight:600;font-weight:var(--text-caption-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(.caption-2b){font-weight:600;font-weight:var(--text-caption-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-0{font-size:clamp(44px,7.2vw,92px);font-size:var(--text-display-0-size);font-weight:800;font-weight:var(--text-display-0-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-0b{font-size:clamp(44px,7.2vw,92px);font-size:var(--text-display-0-size);font-weight:900;font-weight:var(--text-display-0-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-1{font-size:clamp(44px,6.6vw,72px);font-size:var(--text-display-1-size);font-weight:800;font-weight:var(--text-display-1-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-1b{font-size:clamp(44px,6.6vw,72px);font-size:var(--text-display-1-size);font-weight:900;font-weight:var(--text-display-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-2{font-size:clamp(38px,5.2vw,56px);font-size:var(--text-display-2-size);font-weight:700;font-weight:var(--text-display-2-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-2b{font-size:clamp(38px,5.2vw,56px);font-size:var(--text-display-2-size);font-weight:800;font-weight:var(--text-display-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-3{font-size:clamp(34px,4.1vw,44px);font-size:var(--text-display-3-size);font-weight:700;font-weight:var(--text-display-3-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).display-3b{font-size:clamp(34px,4.1vw,44px);font-size:var(--text-display-3-size);font-weight:800;font-weight:var(--text-display-3-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h0{font-size:40px;font-size:var(--text-h0-size);font-weight:700;font-weight:var(--text-h0-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h0b{font-size:40px;font-size:var(--text-h0-size);font-weight:800;font-weight:var(--text-h0-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h1{font-size:32px;font-size:var(--text-h1-size);font-weight:700;font-weight:var(--text-h1-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h1b{font-size:32px;font-size:var(--text-h1-size);font-weight:800;font-weight:var(--text-h1-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h2{font-size:24px;font-size:var(--text-h2-size);font-weight:500;font-weight:var(--text-h2-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h2b{font-size:24px;font-size:var(--text-h2-size);font-weight:600;font-weight:var(--text-h2-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h3{font-size:20px;font-size:var(--text-h3-size);font-weight:500;font-weight:var(--text-h3-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h3b{font-size:20px;font-size:var(--text-h3-size);font-weight:600;font-weight:var(--text-h3-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h4{font-size:17px;font-size:var(--text-h4-size);font-weight:500;font-weight:var(--text-h4-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h4b{font-size:17px;font-size:var(--text-h4-size);font-weight:600;font-weight:var(--text-h4-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h5{font-size:15px;font-size:var(--text-h5-size);font-weight:500;font-weight:var(--text-h5-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).h5b{font-size:15px;font-size:var(--text-h5-size);font-weight:600;font-weight:var(--text-h5-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-1{font-size:18px;font-size:var(--text-body-1-size);font-weight:400;font-weight:var(--text-body-1-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-1b{font-size:18px;font-size:var(--text-body-1-size);font-weight:600;font-weight:var(--text-body-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-2{font-size:16px;font-size:var(--text-body-2-size);font-weight:400;font-weight:var(--text-body-2-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-2b{font-size:16px;font-size:var(--text-body-2-size);font-weight:600;font-weight:var(--text-body-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-3{font-size:14px;font-size:var(--text-body-3-size);font-weight:400;font-weight:var(--text-body-3-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).body-3b{font-size:14px;font-size:var(--text-body-3-size);font-weight:600;font-weight:var(--text-body-3-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).caption-1{font-size:12px;font-size:var(--text-caption-1-size);font-weight:400;font-weight:var(--text-caption-1-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).caption-1b{font-size:12px;font-size:var(--text-caption-1-size);font-weight:600;font-weight:var(--text-caption-1-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).caption-2{font-size:11px;font-size:var(--text-caption-2-size);font-weight:400;font-weight:var(--text-caption-2-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).caption-2b{font-size:11px;font-size:var(--text-caption-2-size);font-weight:600;font-weight:var(--text-caption-2-weight-bold)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).button-1{font-size:14px;font-size:var(--text-button-1-size);font-weight:500;font-weight:var(--text-button-1-weight)}:where(.ihabdevteam-core-scope) :where(h1,h2,h3,h4,h5,h6).button-2{font-size:13px;font-size:var(--text-button-2-size);font-weight:400;font-weight:var(--text-button-2-weight)}.ihabdevteam-core-scope ::-webkit-scrollbar{height:6px;height:var(--scrollbar-size);width:6px;width:var(--scrollbar-size)}.ihabdevteam-core-scope ::-webkit-scrollbar-corner,.ihabdevteam-core-scope ::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope ::-webkit-scrollbar-thumb{background:#96a4b8;background:var(--color-scrollbar-thumb,var(--color-lightGray));border-radius:3px;border-radius:calc(var(--scrollbar-size)/2)}.ihabdevteam-core-scope ::-webkit-scrollbar-thumb:hover{background:#64748b;background:var(--color-scrollbar-thumb-hover,var(--color-gray))}@supports not selector(::-webkit-scrollbar){.ihabdevteam-core-scope *{scrollbar-color:#96a4b8 transparent;scrollbar-color:var(--color-scrollbar-thumb,var(--color-lightGray)) transparent;scrollbar-width:thin}}@media (hover:hover){.ihabdevteam-core-scope ::-webkit-scrollbar-thumb{background:transparent}.ihabdevteam-core-scope :focus-within::-webkit-scrollbar-thumb,.ihabdevteam-core-scope :hover::-webkit-scrollbar-thumb{background:#96a4b8;background:var(--color-scrollbar-thumb,var(--color-lightGray))}.ihabdevteam-core-scope ::-webkit-scrollbar-thumb:hover{background:#64748b;background:var(--color-scrollbar-thumb-hover,var(--color-gray))}@supports not selector(::-webkit-scrollbar){.ihabdevteam-core-scope *{scrollbar-color:transparent transparent}.ihabdevteam-core-scope :focus-within,.ihabdevteam-core-scope :hover{scrollbar-color:#96a4b8 transparent;scrollbar-color:var(--color-scrollbar-thumb,var(--color-lightGray)) transparent}}}@keyframes sub-to-main{0%{background-color:#4dcdc0;background-color:var(--color-sub)}to{background-color:#499cdf;background-color:var(--color-main)}}.ihabdevteam-core-scope .safearea{margin:0 auto;max-width:1920px;max-width:var(--container-page);width:100%}.ihabdevteam-core-scope{color:#111;color:var(--color-black);font-family:Pretendard Variable,Pretendard,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-family:var(--font-family);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope :focus-visible{outline:2px solid #499cdf;outline:2px solid var(--focus-ring);outline-offset:2px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope *,.ihabdevteam-core-scope :after,.ihabdevteam-core-scope :before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}';ue($y);var Ry={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",loading:"\uBD88\uB7EC\uC624\uB294 \uC911",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",add:"\uCD94\uAC00"},Py={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],yearMonthCompact:"{{year}}.{{month}}",weekLabel:"{{ord}}\uC8FC",weekLabelCompact:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},zy={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Oy={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Iy={selected:"\uC120\uD0DD\uB428"},Fy={placeholder:"\uC120\uD0DD"},Wy={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Gy={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},Hy={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Vy={cache:{cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"}}}},Uy={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},qy={security:{password:{currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}}},Yy={settings:"\uC124\uC815",filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB09C\uC774\uB3C4",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playSoundFor:"{{name}} \uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",preparing:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},Ky={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addButton:"\uAE30\uAE30 \uCD94\uAC00",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D"},visitHistory:{empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"},consent:{record:"\uB3D9\uC758 \uBC1B\uAE30",kinds:"\uBC1B\uC740 \uAC08\uB798",methodTitle:"\uBC1B\uC740 \uBC29\uBC95",sourceTitle:"\uC218\uC9D1 \uCD9C\uCC98",day:"\uBC1B\uC740 \uB0A0",note:"\uBA54\uBAA8",notePlaceholder:"\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",submit:"\uC800\uC7A5\uD558\uAE30",allTaken:"\uC138 \uAC08\uB798\uB97C \uC774\uBBF8 \uB2E4 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBC1B\uC73C\uB824\uBA74 \uBA3C\uC800 \uCCA0\uD68C\uD558\uC138\uC694.",kind:{personal:"\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4",sensitive:"\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)",marketing:"\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0"},method:{paper:"\uC11C\uBA74",verbal:"\uAD6C\uB450",electronic:"\uC804\uC790"},source:{self:"\uBCF8\uC778",guardian:"\uBCF4\uD638\uC790",referral:"\uC758\uB8B0\uAE30\uAD00"}}},Xy={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},Zy={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},Jy={showN:"{{n}}\uAC1C\uC529"},Qy={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},ew={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},tw={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},ow={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",caption:"\uC720\uD615",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",copyItem:"\uD55C \uCE78 \uB354",copyItemAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uD55C \uCE78 \uB354",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"},thumbMore:"+{{count}}",replaceItem:"\uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePair:"\uB2E4\uB978 \uC30D\uC73C\uB85C",replaceItemAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePairAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uC30D\uC73C\uB85C",thumbMoreAria:"\uADF8 \uBC16 {{count}}\uCE78: {{words}}",pickForm:"\uB2E4\uB978 \uAF34\uB85C",pickFormAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C",pickFormBaseAria:"\uAE30\uBCF8\uD615 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"},aw={filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB09C\uC774\uB3C4",grade:"{{n}}\uB4F1\uAE09",age:"{{n}}\uC138",agePlus:"{{n}}\uC138 \uC774\uC0C1",ageRange:"{{from}}\uC138~{{to}}\uC138",difficultyInfoAge:"3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoGrade:"2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",difficultyInfoNone:"\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAge:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoAgeFloor:"{{n}}\uC138: {{n}}\uC138\uBCF4\uB2E4 \uC5B4\uB9B0 \uB0B1\uB9D0\uB3C4 \uD568\uAED8 \uB4ED\uB2C8\uB2E4.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandGrade:"{{grade}}: {{ages}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAgeNamed:"{{ages}}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",gradeNone:"\uC5C6\uC74C",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30"},rw={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removePairFor:"{{name}} \uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30",removeWordFor:"{{name}} \uBE7C\uAE30"},nw={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},iw={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0",other:"\uAE30\uD0C0"}},lw={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"}},sw={phonemeSelect:{vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlyHighUsage:"\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},cw={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
2
2
  \uC2E0\uB8B0\uB97C \uC313\uACE0
3
- \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638",bizNoValue:"526-81-02926"},uw={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},dw={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},pw={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},hw={ariaLabel:"\uC120\uD0DD \uD0ED"},mw={ariaLabel:"\uD0ED"},bw={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},gw={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},fw={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},vw={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},xw={time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"}},Cw={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},_w={skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",runs:"{{count}}\uD310"},yw={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},ww={viewWords:"\uB0B1\uB9D0"},kw={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Bw={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Aw={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Sw={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ew={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Dw={clearSelection:"\uC120\uD0DD \uD574\uC81C"},jw={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Nw={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Tw={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Lw={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Mw={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},$w={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",up:"\uC704\uB85C",upTo:"\uD55C \uCE35 \uC704\uB85C \u2014 {{name}}",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},Rw={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Pw={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},zw={common:Ry,calendar:Py,passCard:zy,rating:Oy,colorPicker:Iy,dropdown:Fy,accordion:Wy,header:Gy,nav:Hy,settings:Vy,usage:Uy,account:qy,training:Yy,customers:Ky,payment:Xy,coupons:Zy,visits:Jy,trainingType:Qy,myWordTable:ew,keyWords:tw,wordTable:ow,wordSearch:aw,wordPrint:rw,topic:nw,device:iw,manager:lw,wordPairs:sw,footer:cw,date:uw,wordData:dw,textField:pw,segmentedControl:hw,tabs:mw,fileUpload:bw,avatar:gw,myHomework:fw,trainingStatus:vw,store:xw,progress:Cw,trainingMiss:_w,table:yw,wordScore:ww,topBanner:kw,datePicker:Bw,report:Aw,tooltip:Sw,phonemeProfile:Ew,bulkBar:Dw,debug:jw,badge:Nw,loader:Tw,soundCompass:Lw,breadcrumb:Mw,folder:$w,board:Rw,promoBannerBg:Pw},Ow={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoAgeFloor:"Age {{n}}: also includes words for younger ages.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"}},Iw={filter:{onlyHighUsage:"High-use words only"}},Fw={wordSearch:Ow,wordPairs:Iw};const Bi="0.477.0";var Bm;const gn=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Ka="ko",Ps="ihab_display_language",zs={en:()=>Promise.resolve().then(function(){return d9})},Ai=new Set(["ko"]),Os={},fn=e=>e.split("-")[0];function Is(e){const t=fn(e),o=zs[t];return!o||Ai.has(t)?Promise.resolve():Os[t]??(Os[t]=o().then(r=>{const n=r.default??r;xt.addResourceBundle(t,"translation",n,!0,!1),Ai.add(t)},r=>{throw Os[t]=void 0,r}))}function Am(){if(typeof window>"u")return Ka;try{const e=localStorage.getItem(Ps);if(e&&gn.some(t=>t.code===e))return e}catch{}return Ka}function Ww(e){try{localStorage.setItem(Ps,e)}catch{}}function Sm(e){try{document.documentElement.lang=e}catch{}}xt.on("languageChanged",Sm),Sm(Am());const Em=(Bm=xt).__ihabRawChangeLanguage??(Bm.__ihabRawChangeLanguage=xt.changeLanguage);xt.changeLanguage=Em,xt.use(Ae.initReactI18next).init({resources:{ko:{translation:zw},en:{translation:Fw}},lng:Am(),fallbackLng:Ka,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Fs=Em.bind(xt);let Ws;xt.changeLanguage=((e,t)=>{if(Ws=e,!e||Ai.has(fn(e))||!zs[fn(e)])return Fs(e,t);const o=()=>Ws===e?Fs(e,t):Promise.resolve(xt.t);return Is(e).then(o,r=>(console.error(r),o()))});{const e=xt.language;e&&!Ai.has(fn(e))&&zs[fn(e)]&&Is(e).then(()=>{xt.language===e&&(Ws??e)===e&&Fs(e)},t=>console.error(t))}const Dm=s.createContext({locale:Ka,supportedLocales:gn});function Gw(){return s.useContext(Dm)}function Hw(e){const t=r=>gn.some(n=>n.code===r);if(t(e))return e;const o=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(o)?o:Ka}function Vw({locale:e=Ka,children:t}){const o=Hw(e);s.useEffect(()=>{xt.language!==o&&xt.changeLanguage(o)},[o]);const r=s.useMemo(()=>({locale:o,supportedLocales:gn}),[o]);return a.jsx(Dm.Provider,{value:r,children:t})}function Se(...e){return e.filter(Boolean).join(" ")}var Uw=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";ue(Uw);const jm=new Set,Da=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function jt(e,...t){!Da||jm.has(e)||(jm.add(e),console.warn(...t))}/**
3
+ \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638",bizNoValue:"526-81-02926"},uw={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},dw={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},pw={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},hw={ariaLabel:"\uC120\uD0DD \uD0ED"},mw={ariaLabel:"\uD0ED"},bw={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},gw={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},fw={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},vw={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},xw={time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"}},Cw={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},_w={skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",runs:"{{count}}\uD310"},yw={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},ww={viewWords:"\uB0B1\uB9D0"},kw={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Bw={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Aw={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Sw={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ew={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Dw={clearSelection:"\uC120\uD0DD \uD574\uC81C"},jw={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Nw={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Tw={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Lw={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Mw={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},$w={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",up:"\uC704\uB85C",upTo:"\uD55C \uCE35 \uC704\uB85C \u2014 {{name}}",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},Rw={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Pw={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},zw={common:Ry,calendar:Py,passCard:zy,rating:Oy,colorPicker:Iy,dropdown:Fy,accordion:Wy,header:Gy,nav:Hy,settings:Vy,usage:Uy,account:qy,training:Yy,customers:Ky,payment:Xy,coupons:Zy,visits:Jy,trainingType:Qy,myWordTable:ew,keyWords:tw,wordTable:ow,wordSearch:aw,wordPrint:rw,topic:nw,device:iw,manager:lw,wordPairs:sw,footer:cw,date:uw,wordData:dw,textField:pw,segmentedControl:hw,tabs:mw,fileUpload:bw,avatar:gw,myHomework:fw,trainingStatus:vw,store:xw,progress:Cw,trainingMiss:_w,table:yw,wordScore:ww,topBanner:kw,datePicker:Bw,report:Aw,tooltip:Sw,phonemeProfile:Ew,bulkBar:Dw,debug:jw,badge:Nw,loader:Tw,soundCompass:Lw,breadcrumb:Mw,folder:$w,board:Rw,promoBannerBg:Pw},Ow={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoAgeFloor:"Age {{n}}: also includes words for younger ages.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"}},Iw={filter:{onlyHighUsage:"High-use words only"}},Fw={wordSearch:Ow,wordPairs:Iw};const Bi="0.478.0";var Bm;const gn=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Ka="ko",Ps="ihab_display_language",zs={en:()=>Promise.resolve().then(function(){return d9})},Ai=new Set(["ko"]),Os={},fn=e=>e.split("-")[0];function Is(e){const t=fn(e),o=zs[t];return!o||Ai.has(t)?Promise.resolve():Os[t]??(Os[t]=o().then(r=>{const n=r.default??r;xt.addResourceBundle(t,"translation",n,!0,!1),Ai.add(t)},r=>{throw Os[t]=void 0,r}))}function Am(){if(typeof window>"u")return Ka;try{const e=localStorage.getItem(Ps);if(e&&gn.some(t=>t.code===e))return e}catch{}return Ka}function Ww(e){try{localStorage.setItem(Ps,e)}catch{}}function Sm(e){try{document.documentElement.lang=e}catch{}}xt.on("languageChanged",Sm),Sm(Am());const Em=(Bm=xt).__ihabRawChangeLanguage??(Bm.__ihabRawChangeLanguage=xt.changeLanguage);xt.changeLanguage=Em,xt.use(Ae.initReactI18next).init({resources:{ko:{translation:zw},en:{translation:Fw}},lng:Am(),fallbackLng:Ka,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Fs=Em.bind(xt);let Ws;xt.changeLanguage=((e,t)=>{if(Ws=e,!e||Ai.has(fn(e))||!zs[fn(e)])return Fs(e,t);const o=()=>Ws===e?Fs(e,t):Promise.resolve(xt.t);return Is(e).then(o,r=>(console.error(r),o()))});{const e=xt.language;e&&!Ai.has(fn(e))&&zs[fn(e)]&&Is(e).then(()=>{xt.language===e&&(Ws??e)===e&&Fs(e)},t=>console.error(t))}const Dm=s.createContext({locale:Ka,supportedLocales:gn});function Gw(){return s.useContext(Dm)}function Hw(e){const t=r=>gn.some(n=>n.code===r);if(t(e))return e;const o=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(o)?o:Ka}function Vw({locale:e=Ka,children:t}){const o=Hw(e);s.useEffect(()=>{xt.language!==o&&xt.changeLanguage(o)},[o]);const r=s.useMemo(()=>({locale:o,supportedLocales:gn}),[o]);return a.jsx(Dm.Provider,{value:r,children:t})}function Se(...e){return e.filter(Boolean).join(" ")}var Uw=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";ue(Uw);const jm=new Set,Da=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function jt(e,...t){!Da||jm.has(e)||(jm.add(e),console.warn(...t))}/**
4
4
  * @license lucide-react v1.38.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
@@ -845,7 +845,7 @@ ${y.badge}`:y.badge:void 0;if(B&&h(y.code))return null;if(!y.badge&&!m)return b(
845
845
  `).map(i=>i.replace(/\t/g," ")),r=o.filter(i=>i.trim().length>0),n=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return o.map(i=>i.slice(n)).join(`
846
846
  `)}const kD=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),BD=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function AD(e,t){let o=e;const r=[],n=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});for(;o.length>0;){const l=o.match(/^\s+/);if(l){i("whitespace",l[0]),o=o.slice(l[0].length);continue}if(!n&&o.startsWith("//")){const v=o.indexOf(`
847
847
  `),x=v===-1?o:o.slice(0,v);i("comment",x),o=o.slice(x.length);continue}if(n&&o.startsWith("#")){const v=o.indexOf(`
848
- `),x=v===-1?o:o.slice(0,v);i("comment",x),o=o.slice(x.length);continue}const c=o.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),o=o.slice(c[0].length);continue}const u=o.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),o=o.slice(u[0].length);continue}const d=o.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),o=o.slice(d[0].length);continue}const h=o.match(BD);if(h){i("keyword",h[0]),o=o.slice(h[0].length);continue}const p=o.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];i(n&&kD.has(v)?"command":"identifier",v),o=o.slice(v.length);continue}const m=o.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){i("operator",m[0]),o=o.slice(m[0].length);continue}const b=o.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),o=o.slice(1);continue}i("other",o[0]),o=o.slice(1)}return r}function Y1({children:e,language:t="bash",title:o="",showCopy:r=!0,size:n="default",className:i=""}){const{t:l}=Ae.useTranslation(),[c,u]=s.useState(!1),d=wD(q1(e)),h=s.useRef(null);s.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const p=async()=>{try{if(!await Tu(d))return;u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>u(!1),2e3)}catch{}},m=AD(d,t),b=n==="small"?"caption-1":"body-3";return a.jsxs("div",{className:Se("code-box",n==="small"?"code-box--small":"",i),children:[(o||r)&&a.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[a.jsx("div",{className:"code-box__title caption-1",children:o}),r&&a.jsx(ve,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),a.jsx("pre",{className:"code-box__inner","data-lang":t,children:a.jsx("code",{children:m.map((v,x)=>a.jsx("span",{className:`code-token ${v.type} ${b}`,children:v.content},x))})})]})}var SD=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:var(--color-black);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease;z-index:600;z-index:var(--z-bulk-bar,600)}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:var(--color-black);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ue(SD);function K1({count:e,actions:t,onClear:o,clearLabel:r,visible:n,content:i,max:l}){const c=Fo()??Eo,{t:u}=Ae.useTranslation(),d=n!==void 0?n:e>0,h=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),m=s.useRef(null),b=s.useRef(null),v=s.useRef(d);s.useLayoutEffect(()=>{const g=m.current,w=v.current;if(v.current=d,d&&!w){const S=typeof document<"u"?document.activeElement:null;b.current=S&&S!==document.body&&!g?.contains(S)?S:null}else!d&&w&&g&&g.contains(document.activeElement)&&kl(g,b.current)},[d]);const[x,_]=s.useState(!1),f=s.useRef(!1),C=s.useRef(null);return s.useEffect(()=>{const g=p.current;if(!g)return;const w=A=>{f.current=A,_(A)},S=()=>{const A=g.firstElementChild??g,j=Array.from(A.children);if(j.length<2){w(!1);return}const D=j[0].offsetTop,N=j.some(W=>W.offsetTop!==D);if(!f.current){C.current=g.clientWidth,N&&w(!0);return}if(N)return;const z=j[0],O=j[j.length-1],U=O.offsetLeft+O.offsetWidth-z.offsetLeft,T=C.current;(T==null||U<=T)&&w(!1)};if(S(),typeof ResizeObserver>"u")return;const y=new ResizeObserver(S);y.observe(g);const k=g.parentElement;let B=k?.clientWidth??0;const E=new ResizeObserver(()=>{const A=k?.clientWidth??0;A!==B&&(B=A,C.current=null,S())});return k&&E.observe(k),()=>{y.disconnect(),E.disconnect()}},[i,e]),a.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[a.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??a.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&a.jsx(co,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),a.jsxs("div",{className:`bulk-bar__actions${x?" bulk-bar__actions--stacked":""}`,children:[a.jsx(ve,{htmlType:"button",size:c,label:h,onClick:o}),t.map((g,w)=>a.jsx(ve,{htmlType:"button",size:c,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},w))]})]})}var ED=".ihabdevteam-core-scope .item-actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}";ue(ED);const DD=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function X1(e){const{onClose:t,className:o}=e;return a.jsx("div",{className:Se("item-actions",o),children:DD.map(({key:r,icon:n,closeFirst:i})=>{const l=e[r];if(!l)return null;const c=r==="publish"?l.published?l.unpublish:l.publish:l;return a.jsx(ve,{htmlType:"button",size:40,type:"dot",icon:n,ariaLabel:c.label,showTooltipInfo:c.label,onClick:()=>{i&&t(),c.onClick()}},r)})})}var jD=".ihabdevteam-core-scope .notify-text-preview{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .notify-text-preview__item{border:1px solid var(--color-darkWhite);border-radius:12px;display:flex;flex-direction:column;gap:10px;padding:var(--spacing-m)}.ihabdevteam-core-scope .notify-text-preview__head{display:flex;flex-direction:column}.ihabdevteam-core-scope .notify-text-preview__name{margin:0 0 6px}.ihabdevteam-core-scope .notify-text-preview__meta{grid-gap:2px 12px;color:var(--color-gray);display:grid;gap:2px 12px;grid-template-columns:auto 1fr;margin:0}.ihabdevteam-core-scope .notify-text-preview__meta-row{display:contents}.ihabdevteam-core-scope .notify-text-preview__meta dt{margin:0;white-space:nowrap}.ihabdevteam-core-scope .notify-text-preview__meta dd{margin:0;min-width:0;overflow-wrap:anywhere}.ihabdevteam-core-scope .notify-text-preview__body{grid-gap:10px;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.ihabdevteam-core-scope .notify-text-preview__col{display:flex;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .notify-text-preview__col-head{align-items:baseline;border-bottom:1px solid var(--color-darkWhite);color:var(--color-gray);display:flex;gap:8px;justify-content:space-between;padding-bottom:4px}.ihabdevteam-core-scope .notify-text-preview__bytes{white-space:nowrap}.ihabdevteam-core-scope .notify-text-preview__bytes.is-over{color:var(--color-error-ink,var(--color-error));font-weight:600}.ihabdevteam-core-scope .notify-text-preview__bytes.is-over-target{background:var(--color-warn-a10);border:1px solid var(--color-warn);border-radius:999px;color:var(--color-deepGray);font-weight:600;padding:0 6px}.ihabdevteam-core-scope .notify-text-preview__text{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:8px;font:inherit;margin:0;overflow-wrap:anywhere;padding:10px;white-space:pre-wrap;word-break:keep-all}";ue(jD);function Z1({items:e,className:t,ariaLabel:o="\uC54C\uB9BC \uAE00",titleLevel:r=4,targetBytes:n}){const i=r?`h${r}`:"div";return a.jsx("div",{className:`notify-text-preview${t?` ${t}`:""}`,role:"group","aria-label":o,children:e.map(l=>{const c=n===void 0?zi(l.sms):zi(l.sms,n),u=c.type==="LMS";return a.jsxs("section",{className:"notify-text-preview__item",children:[a.jsxs("header",{className:"notify-text-preview__head",children:[a.jsx(i,{className:"notify-text-preview__name h5b",children:l.name}),l.meta&&Object.keys(l.meta).length>0?a.jsx("dl",{className:"notify-text-preview__meta caption-1",children:Object.entries(l.meta).map(([d,h])=>a.jsxs("div",{className:"notify-text-preview__meta-row",children:[a.jsx("dt",{children:d}),a.jsx("dd",{children:h})]},d))}):null]}),a.jsxs("div",{className:"notify-text-preview__body",children:[a.jsxs("div",{className:"notify-text-preview__col",children:[a.jsxs("div",{className:"notify-text-preview__col-head caption-1",children:[a.jsx("span",{children:"\uBB38\uC790"}),a.jsxs("span",{className:`notify-text-preview__bytes${u?" is-over":c.overTarget?" is-over-target":""}`,title:c.over?`${c.limit}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uBCF4\uB0BC \uB54C \uC798\uB9B0\uB2E4`:u?`${Ri}\uBC14\uC774\uD2B8\uB97C \uB118\uC5B4 \uC7A5\uBB38\uC774\uB2E4 \u2014 \uD55C \uD1B5 \uAC12\uC774 \uB2E8\uBB38\uC758 \uB450 \uBC30 \uBC18\uC774\uB2E4`:c.overTarget?`\uACA8\uB204\uB294 ${c.target}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uD55C \uAE00\uC790\uB9CC \uB298\uC5B4\uB3C4 ${Ri}\uC744 \uB118\uC5B4 \uC7A5\uBB38\uC774 \uB41C\uB2E4`:void 0,children:[c.bytes,c.target!==null?` / \uBAA9\uD45C ${c.target}`:"","\uBC14\uC774\uD2B8 \xB7 ",u?"\uC7A5\uBB38":"\uB2E8\uBB38",c.over?" \xB7 \uD55C\uACC4 \uB118\uC74C":u?" \xB7 \uAC12\uC774 \uB450 \uBC30 \uBC18":c.overTarget?" \xB7 \uBAA9\uD45C \uB118\uC74C":""]})]}),a.jsx("pre",{className:"notify-text-preview__text",children:l.sms})]}),l.ata?a.jsxs("div",{className:"notify-text-preview__col",children:[a.jsx("div",{className:"notify-text-preview__col-head caption-1",children:a.jsx("span",{children:"\uC54C\uB9BC\uD1A1"})}),a.jsx("pre",{className:"notify-text-preview__text",children:l.ata})]}):null]})]},l.name)})})}var ND=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:none;min-width:150px;width:auto}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto}.ihabdevteam-core-scope .bar-chart__wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .chart-section--fit .bar-chart__wrap{flex:1;min-height:0}.ihabdevteam-core-scope .bar-chart__gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .bar-chart__gridline__label{color:var(--color-deepGray);font-size:11px;left:0;line-height:17px;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .bar-chart__inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .bar-chart__scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .bar-chart__scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .bar-chart__area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .bar-chart__area svg{display:block}.ihabdevteam-core-scope .bar-chart__x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .bar-chart__x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .bar-chart__x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .bar-chart__x-axis__main{position:relative}.ihabdevteam-core-scope .bar-chart__x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .bar-chart__plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .bar-chart__col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .bar-chart__bar,.ihabdevteam-core-scope .bar-chart__stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .bar-chart__stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .bar-chart__bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .bar-chart__stack-segment{width:100%}.ihabdevteam-core-scope .bar-chart__detail-btn{margin-left:auto}.ihabdevteam-core-scope .bar-chart__slot{display:flex;flex:0 1 var(--bar-width);flex-direction:column;height:100%;min-width:0}.ihabdevteam-core-scope .bar-chart__slot__half{display:flex;height:50%;justify-content:center}.ihabdevteam-core-scope .bar-chart__slot__half--up{align-items:flex-end}.ihabdevteam-core-scope .bar-chart__slot__half--down{align-items:flex-start}.ihabdevteam-core-scope .bar-chart__bar--full{flex:1 1 auto;width:100%}.ihabdevteam-core-scope .bar-chart__bar--down{border-radius:0 0 6px 6px}.ihabdevteam-core-scope .bar-chart__gridline--baseline{opacity:1}.ihabdevteam-core-scope .bar-chart__col--group{gap:1px;gap:var(--bar-group-gap,1px);padding:0 4px}@media (forced-colors:active){.ihabdevteam-core-scope .bar-chart__bar{forced-color-adjust:none}}";ue(ND);var TD=".ihabdevteam-core-scope .chart-section,.ihabdevteam-core-scope .manager-section{--card-pad:19px;--head-gap:var(--spacing-xs);--legend-offset:4px;background:var(--color-white);border:1px solid var(--color-hc-edge,var(--color-darkWhite));border-radius:var(--radius-m);box-shadow:none;margin-bottom:20px;min-width:320px;padding:19px;padding:var(--card-pad);position:relative}.ihabdevteam-core-scope .chart-section--clickable{cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .chart-section--clickable:hover:not(:has(:is(button,a,[role=button]):hover)){border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .chart-section__head,.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--head-gap);min-height:32px}.ihabdevteam-core-scope .chart-section__disc,.ihabdevteam-core-scope .chart-section__title-row,.ihabdevteam-core-scope .manager-section__title-row{padding-right:0;padding-right:calc(var(--section-head-float-w, -12px) + 12px)}.ihabdevteam-core-scope .chart-section__title,.ihabdevteam-core-scope .manager-section__title{color:var(--color-darkGray);min-width:0}.ihabdevteam-core-scope .chart-section__title-row,.ihabdevteam-core-scope .manager-section__title-row{align-items:center;display:flex;flex:1 1 auto;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .chart-section__icon,.ihabdevteam-core-scope .manager-section__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .chart-section__disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.ihabdevteam-core-scope .chart-section__head-right{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .chart-section__head-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section__head-icon-inner{color:var(--color-darkGray);height:18px;width:18px}.ihabdevteam-core-scope .chart-section__head-icon-inner>svg{height:100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .chart-section__head,.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;flex-wrap:nowrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .chart-section__head:has(>.chart-section__head-icon),.ihabdevteam-core-scope .chart-section__head:has(>.chart-section__head-right>.chart-section__head-icon:only-child),.ihabdevteam-core-scope .manager-section__head:has(>.chart-section__head-icon),.ihabdevteam-core-scope .manager-section__head:has(>.chart-section__head-right>.chart-section__head-icon:only-child){align-items:center;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__controls{flex-wrap:wrap}.ihabdevteam-core-scope .chart-section__controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .chart-section,.ihabdevteam-core-scope .manager-section{--card-pad:17px;min-width:0;padding:17px;padding:var(--card-pad)}}.ihabdevteam-core-scope .chart-section__controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .bar-chart__plot--loading,.ihabdevteam-core-scope .ring-chart--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .bar-chart__area--loading .bar-chart__x-axis{justify-content:center}.ihabdevteam-core-scope .chart-section__sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__sub-row--center{align-items:center}.ihabdevteam-core-scope .chart-section__sub-row--end{align-items:flex-end}.ihabdevteam-core-scope .chart-section__total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .chart-section__total--stacked{align-items:flex-start;flex-direction:column;gap:2px}.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__label,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__num,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__unit,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .chart-section__total__label{color:var(--color-gray)}.ihabdevteam-core-scope .chart-section__total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .chart-section__total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .chart-section__legend,.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:2px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__sub-row:has(+.chart-section__legend-slot){min-height:auto;min-height:var(--legend-h,auto)}.ihabdevteam-core-scope .chart-section__legend-slot{max-width:55%;position:absolute;right:var(--card-pad);top:calc(var(--card-pad) + 32px + var(--head-gap) + var(--legend-offset))}.ihabdevteam-core-scope .chart-section__legend-item,.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .chart-section__legend-dot,.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .chart-section--compact{--head-gap:2px;--card-pad:19px;min-width:160px;padding:19px;padding:var(--card-pad)}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend{margin-top:3px}.ihabdevteam-core-scope .chart-section--compact .chart-section__total{flex-shrink:0}.ihabdevteam-core-scope .chart-section--compact .chart-section__sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend-item,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .chart-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .chart-section--compact{min-width:0}}.ihabdevteam-core-scope .chart-section--grid,.ihabdevteam-core-scope .manager-section--grid{--head-gap:2px;display:flex;flex-direction:column;margin-bottom:0;min-width:0}.ihabdevteam-core-scope .chart-section--grid>.bar-chart__loading,.ihabdevteam-core-scope .chart-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .chart-section--grid>.ring-chart-section-body,.ihabdevteam-core-scope .manager-section--grid>.bar-chart__loading,.ihabdevteam-core-scope .manager-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .manager-section--grid>.ring-chart-section-body{margin-top:auto}.ihabdevteam-core-scope .chart-section--compact.chart-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .chart-section--compact.chart-section--grid>.ring-chart-section-body,.ihabdevteam-core-scope .chart-section--compact.manager-section--grid>.ring-chart-section-body{align-items:center;flex:1}.ihabdevteam-core-scope .chart-section--stat{container-type:inline-size;display:flex;flex-direction:column;gap:2px;justify-content:flex-start;margin-bottom:0;min-width:160px}.ihabdevteam-core-scope .chart-section--stat .chart-section__head{margin-bottom:0}.ihabdevteam-core-scope .chart-section--stat .chart-section__sub-row{flex:1;gap:8px;justify-content:flex-start;margin-bottom:0;text-align:left}.ihabdevteam-core-scope .chart-section--grid .chart-section__sub-row{margin-bottom:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section--grid .chart-section__sub-row:last-child{margin-bottom:0}.ihabdevteam-core-scope .chart-section--stat{--head-gap:2px;justify-content:space-between}.ihabdevteam-core-scope .chart-section--body-center>.chart-section__sub-row{flex:0 0 auto}.ihabdevteam-core-scope .chart-section--body-center>.chart-section__body{--body-lift:21px;margin-block:auto;padding-bottom:42px;padding-bottom:calc(var(--body-lift)*2)}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center{gap:0}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center>.chart-section__head{margin-bottom:2px}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center>.chart-section__sub-row{margin-bottom:0}.ihabdevteam-core-scope .chart-section__body{align-items:stretch;display:flex;flex-direction:column;gap:4px;text-align:left;width:100%}.ihabdevteam-core-scope .chart-section__total__num{color:var(--color-black);flex-shrink:0;margin-top:-3px;white-space:nowrap}.ihabdevteam-core-scope .chart-section__total__num--muted{color:var(--color-lightGray)}.ihabdevteam-core-scope .chart-section__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .chart-section__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .chart-section__change--down{color:var(--color-error-ink,var(--color-error))}.ihabdevteam-core-scope .chart-section__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .chart-section--stat{padding:12px 14px 16px}}.ihabdevteam-core-scope .chart-section--xsmall{min-width:0}.ihabdevteam-core-scope .chart-section__title--probe{left:0;max-width:none;pointer-events:none;position:absolute;top:0;visibility:hidden;white-space:nowrap;width:-moz-max-content;width:max-content}.ihabdevteam-core-scope .chart-section--span-two{grid-column:span 2}@media (forced-colors:active){.ihabdevteam-core-scope .manager-bar-chart-legend-dot{forced-color-adjust:none}}";ue(TD);var LD=".ihabdevteam-core-scope .section-head-float{align-items:center;display:flex;gap:var(--spacing-m);justify-content:flex-end;max-width:50%;position:absolute;right:19px;right:var(--card-pad,19px);top:19px;top:var(--card-pad,19px);z-index:1}@media (max-width:600px){.ihabdevteam-core-scope .section-head-float{flex-wrap:wrap;margin-top:var(--spacing-m);max-width:none;position:static}}";ue(LD);function gh({children:e,className:t}){const o=s.useRef(null),[r,n]=s.useState(null);return s.useEffect(()=>{n(o.current?.parentElement??null)},[]),s.useEffect(()=>{const i=o.current;if(!i||!r)return;const l=()=>{const u=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;u>0?r.style.setProperty("--section-head-float-w",`${u}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const c=new ResizeObserver(()=>l());return c.observe(i),c.observe(r),()=>{c.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),a.jsx("div",{ref:o,className:Se("section-head-float",t),children:e})}function rs({items:e,className:t}){return a.jsx("div",{className:me(t?`chart-section__legend ${t}`:"chart-section__legend"),children:e.map((o,r)=>a.jsxs("span",{className:me("chart-section__legend-item"),children:[a.jsx("span",{className:me("chart-section__legend-dot"),style:{background:o.color}}),o.label]},r))})}const Ga=e=>`chart-section__total__num ${e?"h1":"h0"}`;function Cr({label:e,children:t}){return e?a.jsxs("div",{className:me("chart-section__total chart-section__total--stacked"),children:[a.jsx("span",{className:me("chart-section__total__label body-3"),children:e}),a.jsx("span",{className:me("chart-section__total__value"),children:t})]}):a.jsx("div",{className:me("chart-section__total"),children:t})}const J1=20,ns=120,MD=120,$D={xSmall:ns,small:ns,medium:ns*2+J1,large:ns*2+J1},Q1={xSmall:"chart-section--compact chart-section--xsmall",small:"chart-section--compact",medium:"chart-section--compact",xLarge:"chart-section--full"},fi=e=>{const t=parseFloat(e);return Number.isFinite(t)?t:0};function RD(e){if(!e)return 0;const t=Array.from(e.children);if(!t.length)return 0;const o=fi(getComputedStyle(e).columnGap);return t.reduce((r,n)=>r+n.getBoundingClientRect().width,0)+o*(t.length-1)}function vi({type:e="chart",title:t,titleClassName:o,titleLevel:r,icon:n,disc:i,headRight:l,headFloat:c,headSegment:u,headMenuItems:d,collapseBelow:h=420,onClick:p,ariaLabel:m,tooltip:b,totalNum:v,totalUnit:x,totalMuted:_=!1,totalLabel:f,change:C,changeType:g,size:w,bodyAlign:S="bottom",subRow:y,legend:k,subRowAlign:B="start",className:E,inGrid:A=!1,fitBody:j=!1,children:D}){const N=e==="stat",z=w??(N?"small":"large"),O=z==="xSmall"&&N,[U,T]=s.useState(!0),W=z==="xSmall"?O&&U?"xSmall":"small":z,G=O&&!U,X=W==="xSmall",q=W==="xSmall"||W==="small"||W==="medium",L=o??"h5",H=r??(N?0:3),{t:Z}=Ae.useTranslation(),oe=s.useRef(null),{anchorRect:P,openAt:$,close:R}=rn(),Y=s.useCallback(()=>{b&&oe.current&&$(oe.current)},[b,$]),[Q,ae]=s.useState(!1);ui(()=>{const Fe=oe.current;if(!Fe||!u)return;const Ue=Ge=>ae(Ge>0&&Ge<h);if(Ue(Fe.clientWidth),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ge=>Ue(Ge[0].contentRect.width));return rt.observe(Fe),()=>rt.disconnect()},[u,h]);const[te,J]=s.useState(null),Be=s.useCallback(()=>J(null),[]),de=s.useCallback(Fe=>{const Ue=Fe.currentTarget.getBoundingClientRect();J(rt=>rt?null:{left:Ue.left,right:Ue.right,top:Ue.top,bottom:Ue.bottom,width:Ue.width,height:Ue.height,x:Ue.x,y:Ue.y})},[]),re=!!u&&Q;s.useEffect(()=>{re||J(null)},[re]);const I=u?[...u.options.map((Fe,Ue)=>({label:Fe.label,shortcut:ri(Ue),icon:Fe.icon,selected:Fe.key===u.value,disabled:Fe.disabled,onClick:()=>u.onChange(Fe.key),closeOnSelect:!0})),...(d??[]).map((Fe,Ue)=>Ue===0?{...Fe,separatorBefore:!0}:Fe)]:[],ne=s.useCallback(Fe=>{if(!p)return;const Ue=Fe.target;Ue&&typeof Ue.closest=="function"&&Ue.closest('button, a, input, select, textarea, [role="radiogroup"]')||p()},[p]),V=s.useCallback(Fe=>{p&&Fe.target===Fe.currentTarget&&(Fe.key==="Enter"||Fe.key===" ")&&(Fe.preventDefault(),p())},[p]),se=typeof l=="function"?l({collapsed:re}):l,F=v!=null||f?a.jsxs(Cr,{label:f,children:[v!=null&&a.jsx("span",{className:me(Ga(q)),children:v}),x&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:x})]}):null,le=se||u?a.jsxs("div",{className:me("chart-section__head-right"),children:[u&&(re?a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??Z("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??Z("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!te,onClick:de}):a.jsx(Mo,{size:vr,ariaLabel:u.ariaLabel,options:u.options.map(Fe=>({key:Fe.key,label:Fe.label,disabled:Fe.disabled})),value:u.value,onChange:u.onChange})),se]}):null,pe=s.useRef(null),[be,_e]=s.useState(null);s.useLayoutEffect(()=>{const Fe=pe.current;if(!Fe){_e(null);return}const Ue=()=>{const Ge=Fe.getBoundingClientRect().height;_e(Je=>Je!=null&&Math.abs(Je-Ge)<1?Je:Ge)};if(Ue(),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ue);return rt.observe(Fe),()=>rt.disconnect()},[k]);const Re=s.useId(),ke=H?`h${H}`:"div",Ee=typeof W=="number"?W:$D[W],De=g??(C===void 0?void 0:C>0?"up":C<0?"down":"neutral"),Ie=C===void 0?void 0:C>0?`+${C}`:`${C}`,je=s.useRef(null),at=s.useRef(null);ui(()=>{if(!O)return;const Fe=oe.current;if(!Fe||typeof getComputedStyle!="function")return;const Ue=()=>{const Ge=getComputedStyle(Fe),Je=fi(Ge.paddingLeft)+fi(Ge.paddingRight)+fi(Ge.borderLeftWidth)+fi(Ge.borderRightWidth),st=MD-Je,_t=Math.max(je.current?.getBoundingClientRect().width??0,RD(at.current));!(st>0)||!(_t>0)||T(_t<=st+.5)};if(Ue(),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ue);return je.current&&rt.observe(je.current),at.current&&rt.observe(at.current),()=>rt.disconnect()},[O,t,v,x,Ie]);const Ct=b&&P?a.jsx(Jo,{anchorRect:{left:P.left,top:P.top+21,right:P.right,bottom:P.bottom,width:P.width,height:P.height},text:b}):null;return N?a.jsxs("div",{ref:oe,className:me(["chart-section","chart-section--stat",A&&"chart-section--grid",S==="center"&&"chart-section--body-center",typeof W=="string"&&Q1[W],G&&"chart-section--span-two",p&&"chart-section--clickable",E].filter(Boolean).join(" ")),style:Ee===void 0?void 0:{minHeight:Ee},onClick:p?ne:void 0,onKeyDown:p?V:void 0,onPointerEnter:b?Y:void 0,onPointerLeave:b?R:void 0,onFocus:b?Y:void 0,onBlur:b?R:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??[typeof t=="string"?t:void 0,v,Ie].filter(Fe=>Fe!=null&&Fe!=="").join(" "):void 0,"aria-labelledby":!p&&t!=null?Re:void 0,children:[Ct,a.jsxs("div",{className:me("chart-section__head"),children:[a.jsx(ke,{id:Re,className:me(["chart-section__title",L].filter(Boolean).join(" ")),children:t}),O&&a.jsx("div",{ref:je,"aria-hidden":"true",className:me(["chart-section__title",L,"chart-section__title--probe"].filter(Boolean).join(" ")),children:t}),n&&!X&&a.jsx("span",{className:me("chart-section__head-icon"),children:a.jsx(nt,{icon:n,className:me("chart-section__head-icon-inner")})})]}),a.jsxs(a.Fragment,{children:[a.jsxs("div",{ref:at,className:me("chart-section__sub-row"),children:[a.jsxs(Cr,{children:[a.jsx("span",{className:me([Ga(!0),_&&"chart-section__total__num--muted"].filter(Boolean).join(" ")),children:v}),x&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:x})]}),Ie&&a.jsx("div",{className:me(`chart-section__change chart-section__change--${De??"neutral"} caption-1`),children:Ie})]}),D&&a.jsx("div",{className:me("chart-section__body"),children:D})]})]}):a.jsxs("section",{ref:oe,className:me(["chart-section",A&&"chart-section--grid",j&&"chart-section--fit",typeof W=="string"&&Q1[W],p&&"chart-section--clickable",E].filter(Boolean).join(" ")),style:{...Ee===void 0?null:j?{minHeight:Ee,height:Ee}:{minHeight:Ee},...be==null?null:{"--legend-h":`${be}px`}},onClick:p?ne:void 0,onKeyDown:p?V:void 0,onPointerEnter:b?Y:void 0,onPointerLeave:b?R:void 0,onFocus:b?Y:void 0,onBlur:b?R:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??(typeof t=="string"?t:void 0):void 0,"aria-labelledby":!p&&t!=null?Re:void 0,children:[b&&P&&a.jsx(Jo,{anchorRect:{left:P.left,top:P.top+21,right:P.right,bottom:P.bottom,width:P.width,height:P.height},text:b}),c&&a.jsx(gh,{children:c}),a.jsxs("div",{className:me("chart-section__head"),children:[a.jsxs("div",{className:me("chart-section__title-row"),children:[n&&a.jsx(nt,{icon:n,label:typeof t=="string"?t:void 0,className:me("chart-section__icon")}),a.jsx(ke,{id:Re,className:me(["chart-section__title",L].filter(Boolean).join(" ")),children:t})]}),le,i&&a.jsx("div",{className:me("chart-section__disc body-3"),children:i})]}),(F||y)&&a.jsxs("div",{className:me(["chart-section__sub-row",B!=="start"&&`chart-section__sub-row--${B}`].filter(Boolean).join(" ")),children:[F,y]}),k&&a.jsx("div",{ref:pe,className:me("chart-section__legend-slot"),children:k}),D,te&&a.jsx(fo,{anchorRect:te,onClose:Be,ariaLabel:u?.ariaLabel??Z("tooltip.menu","\uBA54\uB274"),children:a.jsx(Ba,{columns:[{items:I}],onClose:Be,size:"small"})})]})}const cn=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,is=e=>cn(e.getFullYear(),e.getMonth()+1);function _r(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const o=Number(t[2]);return o>=1&&o<=12?{year:Number(t[1]),month1:o}:null}const ls=(e,t)=>`${e}#${t}`;function ha(e,t){const o=new Date(e,t,1).getDay();return 1+(8-(o===0?7:o))%7}function PD(){const e=Ma();let t=e.getFullYear(),o=e.getMonth(),r=e.getDate();if(r<ha(t,o)){const l=new Date(t,o,0);t=l.getFullYear(),o=l.getMonth(),r=l.getDate()}const n=Math.floor((r-ha(t,o))/7),i=cn(t,o+1);return{monthKey:i,value:ls(i,n)}}function ex(e){const t=Ma(),o=is(t),r=(u,d)=>cn(u,d+1),n=new Map;n.set(o,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());n.has(d)||n.set(d,[]),n.get(d).push(u)}for(const[u,d]of[...n.entries()]){const h=_r(u);if(!h)continue;const p=h.year,m=h.month1-1,b=ha(p,m);if(!(u===o&&t.getDate()<b)&&!d.some(_=>_.date.getDate()<b))continue;const v=new Date(p,m,0),x=r(v.getFullYear(),v.getMonth());n.has(x)||n.set(x,[])}const i=new Map;for(const[u,d]of n){const h=_r(u);if(!h)continue;const p=h.year,m=h.month1-1,b=new Date(p,m+1,0).getDate(),v=d.reduce((w,S)=>Math.max(w,S.parts?.length??0,S.partsB?.length??0),0),x=d.some(w=>w.partsB),_=new Array(b+1).fill(0),f=new Array(b+1).fill(0),C=Array.from({length:b+1},()=>new Array(v).fill(0)),g=Array.from({length:b+1},()=>new Array(v).fill(0));for(const w of d){const S=w.date.getDate();if(_[S]+=w.a,f[S]+=w.b,w.parts)for(let y=0;y<v;y++)C[S][y]+=w.parts[y]??0;if(w.partsB)for(let y=0;y<v;y++)g[S][y]+=w.partsB[y]??0}i.set(u,{year:p,month:m,daysInMonth:b,partsLen:v,hasPartsB:x,dayA:_,dayB:f,dayParts:C,dayPartsB:g})}const l=(u,d,h)=>new Date(u,d,h).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[u,d]of i){const{year:h,month:p,daysInMonth:m,dayA:b,dayB:v,dayParts:x,dayPartsB:_}=d,f=h===t.getFullYear()&&p===t.getMonth(),C=t.getDate(),g=i.get(r(p===11?h+1:h,(p+1)%12)),w=d.partsLen,S=[];for(let k=1;k<=m;k++){const B=f&&k>C;S.push({label:String(k),...B&&b[k]===0&&v[k]===0?{future:!0}:{},a:B&&b[k]===0&&v[k]===0?-1:b[k],b:v[k],...w?{parts:x[k]}:{},...w&&d.hasPartsB?{partsB:_[k]}:{}})}const y=[];for(let k=ha(h,p);k<=m;k+=7){const B=Math.max(0,k+6-m),E=B&&g?Math.max(w,g.partsLen):w,A=d.hasPartsB||!!(B&&g?.hasPartsB);let j=0,D=0;const N=new Array(E).fill(0),z=new Array(E).fill(0);for(let U=k;U<=Math.min(k+6,m);U++){j+=b[U],D+=v[U];for(let T=0;T<w;T++)N[T]+=x[U][T],z[T]+=_[U][T]}if(B&&g)for(let U=1;U<=B&&!l(g.year,g.month,U);U++){j+=g.dayA[U],D+=g.dayB[U];for(let T=0;T<g.partsLen;T++)N[T]+=g.dayParts[U][T],z[T]+=g.dayPartsB[U][T]}const O=B?`${(p+1)%12+1}/${B}`:`${k+6}`;y.push({label:`${y.length+1}\uC8FC`,sublabel:`[${k}\uC77C~${O}\uC77C]`,a:j,b:D,...E?{parts:N}:{},...E&&A?{partsB:z}:{}})}c[u]={weekly:y,daily:S}}return c}function tx(){const e=Ma(),t=e.getFullYear(),o=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?o:12;for(let l=1;l<=i;l++)r.push({value:cn(n,l),year:n,month:l})}return r.reverse()}tx();function zD(){return tx()}function ox(e,t){const o=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(o)&&typeof o[t]=="string"?o[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function OD(e,t){const o=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=(Array.isArray(o)&&typeof o[t]=="string"?o[t]:null)??String(t+1);return e("calendar.weekLabelCompact",{ord:r,defaultValue:""})||ox(e,t)}function fh(e){const{t,i18n:o}=Ae.useTranslation(),[r,n]=s.useState("week"),i=s.useMemo(()=>zD().filter(A=>A.value in e),[e]),l=s.useMemo(()=>{const A=[];for(const j of i){const D=new Date(j.year,j.month,0).getDate(),N=ha(j.year,j.month-1),z=Math.ceil((D-N+1)/7);for(let O=z-1;O>=0;O--)A.push({value:ls(j.value,O),monthKey:j.value,year:j.year,month:j.month,week:O})}return A},[i]),c=s.useCallback((A,j)=>t("calendar.yearMonthCompact",{year:A,month:j,full:Wg(t,o.language,A,j),short:m7(A,j,o.language),defaultValue:"{{full}}"}),[t,o.language]),u=s.useCallback(A=>`${c(A.year,A.month)} ${OD(t,A.week)}`,[t,c]),d=s.useMemo(()=>i.map(A=>({value:A.value,label:c(A.year,A.month)})),[c,i]),h=s.useMemo(()=>l.map(A=>({value:A.value,label:u(A)})),[l,u]),p=s.useMemo(()=>PD(),[e]),m=s.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),b=s.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[v,x]=s.useState(""),[_,f]=s.useState("");s.useEffect(()=>{i.find(A=>A.value===v)||x(m)},[i,v,m]),s.useEffect(()=>{l.find(A=>A.value===_)||f(b)},[l,_,b]);const C=r==="month"?d:h,g=r==="month"?v:_,w=r==="month"?x:f,S=s.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),y=C.findIndex(A=>A.value===g),k=s.useCallback(()=>{const A=C.findIndex(j=>j.value===g);A<C.length-1&&w(C[A+1].value)},[C,g,w]),B=s.useCallback(()=>{const A=C.findIndex(j=>j.value===g);A>0&&w(C[A-1].value)},[C,g,w]),E=s.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:g,setRange:w,activeOptions:C,activeIdx:y,handlePrev:k,handleNext:B,periodOptions:E,monthRange:v,weekRange:_,weekRanges:l,DOW:S}}const Gt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Aa(e,t=!0){return e.future===!0||t&&e.a===-1}function ID({data:e,colorA:t,colorB:o,labelA:r,labelB:n,barWidth:i=10,barGap:l=1,height:c=140,fitHeight:u=!1,maxOverride:d,tightMax:h,seriesColors:p,seriesLabels:m,rateLabels:b,grouped:v=!1,baseline:x,focusableBars:_=!1}){const f=!o,C=!!(p&&p.length>0),g=x,w=s.useMemo(()=>C?Math.max(0,...e.filter($=>!Aa($,g==null)).map($=>v?Math.max(0,...($.parts??[]).map(Gt)):($.parts??[]).reduce((R,Y)=>R+Math.max(0,Gt(Y)),0))):Math.max(0,...e.filter($=>!Aa($,g==null)).flatMap($=>f?[Gt($.a)]:[Gt($.a),Gt($.b)])),[e,f,C,v]),S=s.useMemo(()=>{if(g==null)return 0;const $=e.filter(R=>!Aa(R,g==null)).flatMap(R=>C?(R.parts??[]).map(Gt):f?[Gt(R.a)]:[Gt(R.a),Gt(R.b)]);return Math.max(0,...$.map(R=>Math.abs(R-g)))},[e,g,C,f]),y=s.useMemo(()=>{const $=g!=null?S:w;return d??(h?$>0?$:10:Math.ceil($/10)*10||10)},[w,S,g,d,h]),k=s.useRef(null),B=s.useRef(null),[E,A]=s.useState(null);s.useLayoutEffect(()=>{if(!u){A(null);return}const $=k.current;if(!$)return;const R=()=>{const Q=B.current,ae=$.clientHeight-(Q?Q.getBoundingClientRect().height:0);ae<=0||A(te=>te!=null&&Math.abs(te-ae)<1?te:ae)};if(R(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(R);return Y.observe($),B.current&&Y.observe(B.current),()=>Y.disconnect()},[u]);const j=E??c,D=C?v?Math.max(1,p.length):1:f?1:2,N={"--bar-width":`${s.useMemo(()=>{const $=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/($*D)+6)))},[e.length,D,i])}px`},z={"--bar-group-gap":`${Math.max(0,l)}px`},O=s.useMemo(()=>{const $=Math.round(y/2);return g!=null?[g+y,...$!==y?[g+$]:[],g,...$!==y?[g-$]:[],g-y]:$!==y?[y,$,0]:[y,0]},[y,g]),U=$=>g!=null?1-($-(g-y))/(2*y):1-$/y,T=14,W=s.useMemo(()=>{const $=new Set;let R=Number.NEGATIVE_INFINITY;for(const Y of O.slice(0,-1)){const Q=(g!=null?1-(Y-(g-y))/(2*y):1-Y/y)*j;Q-R>=T&&($.add(Y),R=Q)}return $},[O,g,y,j]),[G,X]=s.useState(null),q=s.useCallback(()=>X(null),[]),L=s.useCallback(($,R)=>{const Y=[$.label,$.sublabel].filter(Boolean).join(" ");let Q;if(C&&v&&$.rawPartsB)Q=(m??[]).map((ae,te)=>{const J=$.rawPartsB[te]??0;return{text:J>0?`${ae}: ${R[te]??0}% (${$.rawParts?.[te]??0}/${J})`:`${ae}: -`,color:(p??[])[te]}});else if(C&&v)Q=(m??[]).map((ae,te)=>({text:`${ae}: ${oe(R[te]??0)}`,color:(p??[])[te]}));else if(C){const ae=(m??[]).map((J,Be)=>({text:`${J}: ${R[Be]??0}`,color:(p??[])[Be]})),te=ae.filter((J,Be)=>(R[Be]??0)>0);Q=te.length?te:ae}else b&&!f?Q=[{text:`${r} ${Gt($.a)}%`,color:t},{text:`${n} ${Gt($.b)}%`,color:o}]:b&&$.rawB!==void 0?Q=[{text:`${b.total} ${$.rawB}`},{text:`${b.done} ${$.rawA??0}`,color:t}]:f?Q=[{text:`${r}: ${Gt($.a)}`,color:t}]:Q=[{text:`${r}: ${Gt($.a)}`,color:t},{text:`${n}: ${Gt($.b)}`,color:o}];return{title:Y,items:Q}},[C,v,m,p,b,f,r,n,t,o,g]),H=s.useCallback(($,R,Y)=>{const Q=$.getBoundingClientRect(),{title:ae,items:te}=L(R,Y);X({rect:{left:Q.left,top:Q.top,right:Q.right,bottom:Q.bottom,width:Q.width,height:Q.height},title:ae,items:te})},[L]),Z=s.useCallback(($,R)=>{const{title:Y,items:Q}=L($,R);return[Y,...Q.map(ae=>ae.text)].filter(Boolean).join(", ")},[L]),oe=$=>g!=null&&$>g?`+${$}`:`${$}`,P=G!=null;return s.useEffect(()=>{if(!P)return;const $=()=>X(null),R=Y=>{const Q=Y.target;Q&&typeof Q.closest=="function"&&Q.closest(".bar-chart__col")||X(null)};return window.addEventListener("scroll",$,!0),document.addEventListener("pointerdown",R,!0),()=>{window.removeEventListener("scroll",$,!0),document.removeEventListener("pointerdown",R,!0)}},[P]),a.jsxs("div",{ref:k,className:me("bar-chart__wrap"),style:z,children:[a.jsx("div",{className:me("bar-chart__inner"),children:a.jsx("div",{className:me("bar-chart__scroll"),children:a.jsxs("div",{className:me("bar-chart__area"),children:[a.jsxs("div",{className:me("bar-chart__plot"),style:{height:j},children:[O.slice(0,-1).map(($,R)=>a.jsx("div",{className:me(`bar-chart__gridline${g!=null&&$===g?" bar-chart__gridline--baseline":""}`),style:{top:U($)*j},children:W.has($)&&a.jsx("span",{className:me("bar-chart__gridline__label caption-1"),children:$})},R)),e.map(($,R)=>{const Y=Aa($,g==null),Q=j/2,ae=de=>g!=null?Math.min(Q,Math.abs(Gt(de)-g)/y*Q):Math.min(j,Math.max(0,Gt(de)/y*j)),te=Y?0:ae($.a),J=Y?0:ae($.b),Be=($.parts??[]).map(Gt);return a.jsx("div",{className:me(`bar-chart__col${v&&C?" bar-chart__col--group":""}`),style:{cursor:Y?"default":"pointer"},tabIndex:_&&!Y?0:void 0,role:_&&!Y?"img":void 0,"aria-label":_&&!Y?Z($,Be):void 0,onMouseEnter:Y?void 0:de=>H(de.currentTarget,$,Be),onFocus:Y||!_?void 0:de=>H(de.currentTarget,$,Be),onBlur:_?q:void 0,onMouseLeave:q,children:!Y&&(C&&v?(p??[]).map((de,re)=>{const I=Be[re]??0;if(g==null)return a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:ae(I),background:de}},re);const ne=Gt(I)<g;return a.jsxs("div",{className:me("bar-chart__slot"),style:N,children:[a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--up"),children:!ne&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full"),style:{height:ae(I),background:de}})}),a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--down"),children:ne&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"),style:{height:ae(I),background:de}})})]},re)}):C?a.jsx("div",{className:me("bar-chart__stack"),style:N,children:(()=>{const de=Be.reduce((I,ne,V)=>ne>0?V:I,-1);let re=j;return Be.map((I,ne)=>{if(I<=0)return null;const V=Math.min(re,I/y*j);return re-=V,a.jsx("div",{className:me("bar-chart__stack-segment"),style:{height:V,background:(p??[])[ne],borderRadius:ne===de?"6px 6px 0 0":void 0}},ne)})})()}):g!=null?a.jsx(a.Fragment,{children:[{v:Gt($.a),c:t},...f?[]:[{v:Gt($.b),c:o}]].map(({v:de,c:re},I)=>a.jsxs("div",{className:me("bar-chart__slot"),style:N,children:[a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--up"),children:de>=g&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full"),style:{height:ae(de),background:re}})}),a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--down"),children:de<g&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"),style:{height:ae(de),background:re}})})]},I))}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:te,background:t}}),!f&&a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:J,background:o}})]}))},R)})]}),a.jsx("div",{ref:B,className:me("bar-chart__x-axis"),children:e.map(($,R)=>{const Y=Aa($,g==null);return a.jsxs("span",{className:me(`bar-chart__x-axis__label${Y?" bar-chart__x-axis__label--future":""}`),children:[a.jsxs("span",{className:me("caption-1 bar-chart__x-axis__main"),children:[$.isToday&&a.jsx("span",{className:me("bar-chart__x-axis__today-dot"),style:{background:t}}),$.label]}),$.sublabel&&a.jsx("span",{className:"caption-1",children:$.sublabel})]},R)})})]})})}),G&&a.jsx(wa,{anchorRect:G.rect,title:G.title,items:G.items,showIndex:!1,closeOnOutsideClick:!1})]})}function vh({control:e}){const{t}=Ae.useTranslation(),{activeOptions:o,activeIdx:r,range:n,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:h}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return a.jsxs("div",{className:me("chart-section__controls"),children:[a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===o.length-1,onClick:l}),a.jsx($o,{value:n,onChange:i,options:o,size:vr,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),a.jsx(Mo,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:b=>h(b),size:vr})]})}function xh(e,t,o,r=!0){const n=new Date(o.getFullYear(),o.getMonth(),o.getDate());return Array.from({length:7},(i,l)=>{const c=new Date(t);c.setDate(t.getDate()+l);const u=(e[is(c)]?.daily??[])[c.getDate()-1],d=u!=null&&Aa(u,r)||c>n;return{dt:c,entry:u,isFuture:d}})}function FD(e,t,o,r=!0){const{period:n,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=t,d=Ma(),h=d.getFullYear(),p=d.getMonth()+1,m=d.getDate();if(n==="month"){const x=e[i]??{weekly:[],daily:[]},_=_r(i),f=_?_.year:null,C=_?_.month1:null,g=f&&C?ha(f,C-1):1;return x.weekly.map((w,S)=>{const y=S+1;let k=w.label,B=!1,E=!1;if(f&&C){const A=g+S*7,j=new Date(f,C-1,A+6),D=j.getMonth()+1,N=j.getDate(),z=D===C?`${N}`:`${D}/${N}`;k=o("manager.chart.weekRange",{start:A,end:z});const O=new Date(h,p-1,m).getTime();B=O>=new Date(f,C-1,A).getTime()&&O<=j.getTime(),E=f>h||f===h&&(C>p||C===p&&A>m)}return{...w,label:k,sublabel:ox(o,y-1),isToday:B,future:w.future===!0||E||void 0,a:E?-1:w.a,b:E?0:w.b}})}const b=c.find(x=>x.value===l);if(!b)return[];const v=new Date(b.year,b.month-1,ha(b.year,b.month-1)+b.week*7);return xh(e,v,d,r).map(({dt:x,entry:_,isFuture:f})=>{const C=x.getMonth()+1,g=x.getDate(),w=x.getFullYear();return{label:C===b.month&&w===b.year?`${g}`:`${C}/${g}`,sublabel:u[x.getDay()]??"",future:f||void 0,a:f?-1:_&&_.a>0?_.a:0,b:f?0:_&&_.b>0?_.b:0,isToday:w===h&&C===p&&g===m,..._?.parts?{parts:f?_.parts.map(()=>0):_.parts}:{},..._?.partsB?{partsB:f?_.partsB.map(()=>0):_.partsB}:{}}})}const WD={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function ax({canvasHeight:e,fitHeight:t,focusableBars:o,size:r="medium",barWidth:n,titleKey:i,titleLevel:l,data:c,colorA:u,colorB:d,labelAKey:h,labelBKey:p,showTotal:m=!1,totalUnitKey:b,totalLabelKey:v,control:x,hideControls:_=!1,rate:f=!1,rateAgg:C="dayMean",tightMax:g=!1,avgMode:w=!1,totalFormat:S,series:y,seriesMode:k="stack",loading:B=!1,onDetail:E,headExtra:A,headSegment:j,icon:D,disc:N,onClick:z,cardAriaLabel:O,cardTooltip:U,detailSize:T=vr,barGap:W,baseline:G,className:X,inGrid:q=!1}){const{t:L}=Ae.useTranslation(),H={...WD[r],...e===void 0?null:{height:e}},Z=fh(c),oe=x??Z,P=s.useMemo(()=>FD(c,oe,L,G==null),[c,oe,L,G]),$=k==="group"&&!!y&&y.length>0;W!=null&&!$&&jt("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const R=s.useMemo(()=>{if(!f)return P;const I=oe.period==="month"?_r(oe.monthRange):null,ne=Ma(),V=y?.length??0,se=F=>{const le=[],pe=[],be=[];for(let _e=0;_e<V;_e++){let Re=0,ke=0,Ee=0;for(const De of F){const Ie=Gt(De.a[_e]),je=Gt(De.b[_e]);je<=0||(Re+=Ie,ke+=je,Ee+=Ie/je*100)}le.push(C==="weighted"?ke>0?Math.round(Re/ke*100):0:F.length?Math.round(Ee/F.length):0),pe.push(Re),be.push(ke)}return{pct:le,ra:pe,rb:be}};return P.map((F,le)=>{let pe=F.a===-1?-1:F.b>0?Math.round(F.a/F.b*100):0;if(I&&!Aa(F)){const _e=I.year,Re=I.month1-1,ke=xh(c,new Date(_e,Re,ha(_e,Re)+le*7),ne).filter(Ee=>!Ee.isFuture);if(C==="weighted"){let Ee=0,De=0;for(const{entry:Ie}of ke)Ie&&Ie.b>0&&(Ee+=Ie.a,De+=Ie.b);pe=De>0?Math.round(Ee/De*100):0}else pe=ke.length?Math.round(ke.reduce((Ee,{entry:De})=>Ee+(De&&De.b>0?De.a/De.b*100:0),0)/ke.length):0}let be=null;if($&&!Aa(F)){let _e;if(I){const ke=I.year,Ee=I.month1-1;_e=xh(c,new Date(ke,Ee,ha(ke,Ee)+le*7),ne).filter(De=>!De.isFuture).map(({entry:De})=>({a:De?.parts??[],b:De?.partsB??[]}))}else _e=[{a:F.parts??[],b:F.partsB??[]}];const Re=se(_e);be={parts:Re.pct,rawParts:Re.ra,rawPartsB:Re.rb}}return{...F,a:pe,b:F.a===-1?0:p&&F.parts&&F.parts[1]>0?Math.round(F.parts[0]/F.parts[1]*100):0,rawA:F.a===-1?-1:F.a,rawB:F.b,...be??{}}})},[P,f,C,p,oe.period,oe.monthRange,c,$,y?.length]),Y=s.useMemo(()=>{if(f||w){const ne=(oe.period==="week"?P:c[oe.monthRange]?.daily??[]).filter(se=>se.a!==-1);if(ne.length===0)return 0;if(f&&C==="weighted"){let se=0,F=0;for(const le of ne)le.b>0&&(se+=le.a,F+=le.b);return F>0?Math.round(se/F*100):0}const V=f?ne.reduce((se,F)=>se+(F.b>0?F.a/F.b*100:0),0):ne.reduce((se,F)=>se+(F.a>0?F.a:0),0);return Math.round(V/ne.length)}const I=oe.period==="month"?c[oe.monthRange]?.daily??[]:R;return G!=null?I.reduce((ne,V)=>ne+(Aa(V,!1)?0:Gt(V.a)+(p?Gt(V.b):0)),0):I.reduce((ne,V)=>ne+(V.a>0?V.a:0)+(p&&V.b>0?V.b:0),0)},[R,P,f,C,w,G,p,oe.period,oe.monthRange,c]),Q=y&&y.length>0?y.map(I=>({color:I.color,label:I.label})):[{color:u,label:L(h)},...p?[{color:d,label:L(p)}]:[]],ae=r==="small",te=r==="large",J=ae?"medium":te?"xLarge":"large",Be=X||void 0,de=i?L(i):"",re=de?L("trainingStatus.detailFor",{name:de,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):L("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return a.jsx(vi,{className:Be,size:J,inGrid:q,icon:D,disc:N,onClick:z,ariaLabel:O,tooltip:U,headSegment:j,headMenuItems:E?[{label:re,icon:"list",shortcut:"D",onClick:E,closeOnSelect:!0}]:void 0,title:L(i),titleLevel:l,headRight:ae?A??void 0:({collapsed:I})=>a.jsxs(a.Fragment,{children:[!_&&a.jsx(vh,{control:oe}),A,E&&!I&&a.jsx("span",{className:me("bar-chart__detail-btn"),children:a.jsx(ve,{htmlType:"button",size:T,type:"dot",icon:"list",ariaLabel:re,showTooltipInfo:re,onClick:E})})]}),legend:a.jsx(rs,{items:Q,className:"caption-1"}),fitBody:t,subRow:m&&a.jsx(a.Fragment,{children:f||w||v&&S?a.jsx(Cr,{label:ae?void 0:`${L(oe.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${L(v??h)}`,children:S?(S(Y).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((I,ne)=>/\d/.test(I)?a.jsx("span",{className:me(Ga(!te)),children:I},ne):a.jsx("span",{className:me("chart-section__total__unit body-3"),children:I},ne)):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:me(Ga(!te)),children:Y}),b&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(b)})]})}):a.jsxs(Cr,{children:[a.jsx("span",{className:me(Ga(!te)),children:Y}),a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(h)}),b&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(b)})]})}),children:B?a.jsx("div",{className:me("bar-chart__wrap bar-chart__loading"),"aria-busy":"true",children:a.jsx("div",{className:me("bar-chart__inner"),children:a.jsxs("div",{className:me("bar-chart__area bar-chart__area--loading"),children:[a.jsx("div",{className:me("bar-chart__plot bar-chart__plot--loading"),style:{height:H.height},children:a.jsx(sr,{size:32})}),a.jsx("div",{className:me("bar-chart__x-axis"),"aria-hidden":"true",children:a.jsxs("span",{className:me("bar-chart__x-axis__label"),children:[a.jsx("span",{className:me("caption-1 bar-chart__x-axis__main"),children:"\xA0"}),R.some(I=>!!I.sublabel)&&a.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):a.jsx(ID,{focusableBars:o,data:R,colorA:u,colorB:p?d:void 0,labelA:L(h),labelB:p?L(p):void 0,barWidth:n??H.barWidth,barGap:W,baseline:G,height:H.height,fitHeight:t,maxOverride:f?100:void 0,tightMax:g,seriesColors:y?.map(I=>I.color),seriesLabels:y?.map(I=>I.label),rateLabels:f?{total:L("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:L("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:$})})}var GD=".ihabdevteam-core-scope .line-chart{display:block;height:auto;overflow:visible;width:100%}.ihabdevteam-core-scope .line-chart__axis-title,.ihabdevteam-core-scope .line-chart__tick{fill:var(--color-gray);font-size:12px}.ihabdevteam-core-scope .line-chart__grid{stroke:var(--color-whiteLine);stroke-width:1}.ihabdevteam-core-scope .line-chart__line{stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ihabdevteam-core-scope .line-chart__dot-hit{fill:transparent}.ihabdevteam-core-scope .line-chart__dot-main{stroke-width:1.5}.ihabdevteam-core-scope .line-chart__dot-main.is-hollow{fill:var(--color-white)}.ihabdevteam-core-scope .line-chart__tip{max-width:220px;white-space:normal}.ihabdevteam-core-scope .line-chart__dot{cursor:default}";ue(GD);const Ch=120,HD={left:38,right:16,top:26,bottom:24};function rx({points:e=[],range:t,ticks:o=[],axisTitle:r,color:n,height:i=156,fallbackWidth:l=320,insets:c,overlay:u,ariaLabel:d,className:h}){const[p,m]=s.useState(null),[b,v]=s.useState(null);s.useEffect(()=>{if(!b)return;const T=G=>m(Math.round(G)||null);if(T(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const W=new ResizeObserver(([G])=>T(G.contentRect.width));return W.observe(b),()=>{W.disconnect()}},[b]);const{payload:x,anchorRect:_,openAfterDelay:f,close:C}=_p(Ch),g=s.useCallback((T,W)=>{T&&f(T,W.getBoundingClientRect())},[f]),w=p??l,S=i,{left:y,right:k,top:B,bottom:E}={...HD,...c},[A,j]=t,D=T=>j===A?y:y+(w-y-k)*(T-A)/(j-A),N=T=>B+(S-B-E)*(100-T)/100,z={x:D,y:N,plot:{left:y,right:w-k,top:B,bottom:S-E,width:Math.max(0,w-y-k),height:Math.max(0,S-B-E)}},O=e.filter(T=>!T.hollow),U=n??"var(--color-main)";return a.jsxs(a.Fragment,{children:[a.jsxs("svg",{ref:v,className:Se("line-chart",h),viewBox:`0 0 ${w} ${S}`,role:"img","aria-label":d??e.map(T=>T.description).filter(Boolean).join(", "),children:[r&&a.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(T=>a.jsxs("g",{children:[a.jsx("line",{className:"line-chart__grid",x1:y,x2:w-k,y1:N(T),y2:N(T)}),a.jsxs("text",{className:"line-chart__tick",x:y-6,y:N(T)+4,textAnchor:"end",children:[T,"%"]})]},T)),u?.(z),o.map(T=>a.jsx("text",{className:"line-chart__tick",x:D(T.x),y:S-5,textAnchor:"middle",children:T.label},T.x)),O.length>1&&a.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:U,points:O.map(T=>`${D(T.x)},${N(T.pct)}`).join(" ")}),e.map(T=>a.jsxs("g",{className:"line-chart__dot",onPointerEnter:W=>g(T.description,W.currentTarget),onPointerLeave:C,children:[a.jsx("circle",{className:"line-chart__dot-hit",cx:D(T.x),cy:N(T.pct),r:12}),a.jsx("circle",{className:Se("line-chart__dot-main",T.hollow&&"is-hollow"),cx:D(T.x),cy:N(T.pct),r:4,stroke:U,fill:T.hollow?void 0:U})]},T.x))]}),x!=null&&a.jsx(fo,{anchorRect:_,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:x,children:x})]})}var VD=".ihabdevteam-core-scope .game-intro{align-items:center;display:flex;flex-direction:column;gap:14px;padding:0;text-align:center}.ihabdevteam-core-scope .game-intro__icon{font-size:56px;font-size:var(--game-intro-icon,56px)}.ihabdevteam-core-scope .game-intro__title{color:var(--color-onDark-title);margin:0}.ihabdevteam-core-scope .game-intro__description{color:var(--color-onDark-text);line-height:1.75;margin:0}.ihabdevteam-core-scope .game-intro__tips{background:var(--color-onDark-surface);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-onDark-text);display:flex;flex-direction:column;gap:4px;padding:var(--spacing-l);text-align:left;width:100%}.ihabdevteam-core-scope .game-intro__tips-title{color:var(--color-onDark-muted);letter-spacing:.06em;margin-bottom:4px}.ihabdevteam-core-scope .game-intro__tip{align-items:flex-start;display:flex;gap:var(--spacing-xs)}";ue(VD);function nx({icon:e,iconSize:t=56,title:o,titleClass:r="h2",description:n,tipGroups:i,start:l,className:c}){return a.jsxs("div",{className:Se("game-intro",c),children:[e!=null&&a.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),a.jsx("h2",{className:Se("game-intro__title",r),children:o}),n!=null&&a.jsx("p",{className:"game-intro__description body-3",children:n}),i?.map((u,d)=>a.jsxs("div",{className:"game-intro__tips",children:[u.title!=null&&a.jsx("span",{className:"game-intro__tips-title body-3",children:u.title}),u.tips.map((h,p)=>a.jsxs("span",{className:"game-intro__tip body-3",children:[h.icon!=null&&a.jsx("span",{"aria-hidden":"true",children:h.icon}),a.jsx("span",{children:h.text})]},p))]},d)),l&&a.jsx(ve,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const ix=(e,t,o)=>{const r=new Date(Date.UTC(e,t,o));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},lx=(e,t,o,r)=>({from:rl(e,t,o),to:new Date(rl(e,t,o+r).getTime()-1),fromYmd:ix(e,t,o),toYmd:ix(e,t,o+r-1)});function sx(e,t=0){if(e.period==="month"){const n=_r(e.monthRange),i=Ma(),l=n?n.year:i.getFullYear(),c=(n?n.month1:i.getMonth()+1)-1+t,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return lx(l,c,1,u)}const o=e.weekRanges.find(n=>n.value===e.weekRange);if(!o){const n=new Date,i=Io();return{from:n,to:n,fromYmd:i,toYmd:i}}const r=ha(o.year,o.month-1);return lx(o.year,o.month-1,r+(o.week+t)*7,7)}var UD=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ue(UD);const _h={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function cx(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function ux({done:e,total:t,segments:o,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof n=="number"?n:_h[n].diameter,h=i??(typeof n=="number"?12:_h[n].strokeWidth),p=d/2,m=(d-h)/2,b=2*Math.PI*m;if(o&&o.length>0){const f=o.reduce((C,g)=>{const w=C.length>0?C[C.length-1].acc:0,S=Number.isFinite(g.ratio)?g.ratio:0,y=Math.max(0,Math.min(S,1-w));return C.push({color:g.color,rotate:-90+w*360,dash:b*y,acc:w+y}),C},[]);return a.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:a.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),f.map((C,g)=>C.dash>0&&a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:C.color,strokeWidth:h,strokeDasharray:`${C.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},g))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,x=b*v,_=b-x;return a.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[a.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),v>0&&a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:r,strokeWidth:h,strokeDasharray:`${x} ${_}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&a.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[a.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:cx(v)}),!u&&a.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||n==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function dx({titleKey:e,titleLevel:t,headRight:o,icon:r,showTotal:n,totalLabelKey:i,legend:l,loading:c,className:u,inGrid:d=!1,onClick:h,ariaLabel:p,tooltip:m,...b}){const{t:v}=Ae.useTranslation();if(!e)return a.jsx(ux,{...b});const x=(b.total??0)>0?cx(Math.min((b.done??0)/b.total,1)):0,_=b.size==="small",f=typeof b.size=="number"?b.size:_h[b.size??"medium"].diameter,C=b.size==="large",g=_?"medium":C?"xLarge":"large",w=u||void 0,S=r&&a.jsx("span",{className:me("chart-section__head-icon"),children:a.jsx(nt,{icon:r,className:me("chart-section__head-icon-inner")})});return a.jsx(vi,{className:w,size:g,inGrid:d,onClick:h,ariaLabel:p,tooltip:m,title:v(e),titleLevel:t,headRight:S||(_?void 0:o),legend:l&&a.jsx(rs,{items:l}),subRow:n&&a.jsxs(Cr,{label:!_&&i?v(i):void 0,children:[a.jsx("span",{className:me(Ga(_)),children:x}),a.jsx("span",{className:me("chart-section__total__unit body-3"),children:"%"})]}),children:c?a.jsx("div",{className:me("ring-chart-section-body ring-chart-section-body--offset"),children:a.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:f,height:f},"aria-busy":"true",children:a.jsx(sr,{size:32})})}):a.jsx("div",{className:me("ring-chart-section-body ring-chart-section-body--offset"),children:a.jsx(ux,{...b,hideCenter:b.hideCenter??_})})})}function px({label:e,value:t,change:o,changeType:r,icon:n,tooltip:i,onClick:l,size:c="small",bodyAlign:u="bottom",children:d}){return a.jsx(vi,{type:"stat",title:e,totalNum:t,change:o,changeType:r,icon:n,tooltip:i,onClick:l,size:c,bodyAlign:u,children:d})}var qD='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}@media (forced-colors:active){.ihabdevteam-core-scope .slider{border:1px solid CanvasText}}';ue(qD);function yh({value:e,onChange:t,min:o=0,max:r=100,step:n=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:h,label:p,formatValue:m,labelPos:b,labelAlign:v="right",showMinMax:x=!1,minLabel:_,maxLabel:f,showBgTick:C=!1,showFillTick:g=!1,tickStep:w,tickShape:S="dot"}){t&&!u&&jt("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const y=Math.min(r,Math.max(o,e)),k=r>o?(y-o)/(r-o):0,B=i==="vertical",E=!t,A=Z=>t?.(Number(Z.target.value)),j=typeof d=="number"?`${d}px`:d,D={"--slider-ratio":String(k),"--slider-thumb":`${l}px`,...j?B?{height:j}:{width:j}:{}},N=w??n,z=(C||g)&&N>0&&r>o?Math.floor((r-o)/N+1e-6):0;if(z>0&&z<=100){const Z=S!=="dash",oe=Q=>Z?`radial-gradient(circle, ${Q} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`,P=Z?"2px":"4px",$=[],R=[],Y=[];for(let Q=0;Q<=z;Q++){const ae=Q*N/(r-o);if(ae>1+1e-6)break;const te=`${((B?1-ae:ae)*100).toFixed(4)}%`,J=ae<=k+1e-6;if(J?!g:!C)continue;const Be=J?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";$.push(oe(Be)),R.push(B?`${P} var(--slider-thumb)`:`var(--slider-thumb) ${P}`),Y.push(B?`center ${te}`:`${te} center`)}$.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),R.push("100% 100%"),Y.push("0 0"),D.backgroundImage=$.join(", "),D.backgroundSize=R.join(", "),D.backgroundPosition=Y.join(", "),D.backgroundRepeat="no-repeat"}const O=m?m(y):p==="percent"?`${Math.round(r>o?(y-o)/(r-o)*100:0)}%`:p==="count"?`${y} / ${r}`:y===o&&_?_:y===r&&f?f:void 0,U=a.jsx("input",{type:"range",className:Se("slider",`slider--${i}`,E&&"slider--static",!p&&!x&&h),min:o,max:r,step:n,value:y,disabled:c,readOnly:E,tabIndex:E?-1:void 0,"aria-label":u,"aria-valuetext":O,"aria-orientation":i,onChange:A,style:D});if(!p&&!x)return U;const T=a.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??o}),W=a.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??r}),G=x?a.jsxs("div",{className:Se("slider-track-group",`slider-track-group--${i}`,!p&&h),children:[B?W:T,U,B?T:W]}):U;if(!p)return G;const X=b??(B?"bottom":"right"),q=`${Math.round(r>o?(y-o)/(r-o)*100:0)}%`,L=m?m(y):p==="percent"?q:p==="count"?`${y} / ${r}`:String(y),H=a.jsx("span",{className:"slider-wrap__value body-3b",children:L});return a.jsxs("div",{className:Se("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${X}`,`slider-wrap--align-${v}`,h),children:[G,H]})}var YD='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ue(YD);const KD=.86,XD=250,wh=(e,t,o,r)=>Math.round(Math.min(r,Math.max(o,e-t))),kh=(e,t,o,r)=>{const n=wh(e,t,o,r);return`${n<0?"-":"+"}${Math.abs(n)} dB`};function ss({analyser:e,audioElement:t,orientation:o="horizontal",length:r,label:n,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:h=25,className:p,ariaLabel:m}){const b=s.useRef(null),v=s.useRef(null),x=s.useRef(null),_=s.useRef(null),[f,C]=s.useState(null);s.useEffect(()=>{const y=U=>{const T=kh(U,u,d,h);x.current&&(x.current.textContent=T);const W=b.current;W&&(W.setAttribute("aria-valuenow",String(wh(U,u,d,h))),W.setAttribute("aria-valuetext",T))},k=e??mc(t)??(f&&f.el===t?f.node:null),B=v.current;if(!k||!B){B?.style.setProperty("--meter-level","0"),y(c);let U=!1;return!e&&t&&Lr(t).then(T=>{!U&&T&&C({el:t,node:T})}),()=>{U=!0}}An();const E=new Float32Array(k.fftSize);let A=0,j=0,D=0,N=0,z=null;const O=U=>{const T=bc(k,E);A=T>A?T:A*KD;const W=A>1e-5?20*Math.log10(A):-1/0,G=Math.max(c,W),X=G-u,q=Math.min(1,Math.max(0,(X-d)/(h-d)));if(B.style.setProperty("--meter-level",q.toFixed(3)),j+=G,D+=1,U-N>=XD){const L=j/D;z=z==null?L:z*.6+L*.4,y(z),j=0,D=0,N=U}_.current=requestAnimationFrame(O)};return _.current=requestAnimationFrame(O),()=>{_.current!=null&&cancelAnimationFrame(_.current),_.current=null}},[e,t,f,c,u,d,h]);const g=typeof r=="number"?`${r}px`:r,w=a.jsx("div",{className:"audio-meter__track",style:g?o==="vertical"?{height:g}:{width:g}:{},children:a.jsx("div",{ref:v,className:"audio-meter__fill"})}),S=i??(o==="vertical"?"bottom":"right");return a.jsxs("div",{ref:b,className:Se("audio-meter",`audio-meter--${o}`,n&&`audio-meter--label-${S}`,n&&`audio-meter--align-${l}`,p),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":h,"aria-valuenow":wh(c,u,d,h),"aria-valuetext":kh(c,u,d,h),children:[w,n&&a.jsx("span",{ref:x,className:"audio-meter__value caption-2",children:kh(c,u,d,h)})]})}const hx=260;function Bh({message:e,position:t,duration:o,onClose:r}){const[n,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(n);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=n},[n]);const h=s.useRef(null),p=s.useRef(""),m=s.useRef(r);s.useEffect(()=>{m.current=r});const b=o,v=s.useRef(null),x=s.useRef(0),_=s.useRef(0),f=s.useRef(!1),C=s.useRef(null),g=s.useRef(null),w=s.useRef(null),S=s.useRef(null),y=s.useRef(()=>{});y.current=E=>{E<0||(x.current=Date.now(),_.current=E,v.current=setTimeout(()=>{v.current=null,i(!1),C.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},hx)},E))};const k=s.useCallback(()=>{f.current||!v.current||(f.current=!0,clearTimeout(v.current),v.current=null,_.current=Math.max(0,_.current-(Date.now()-x.current)))},[]),B=s.useCallback(()=>{f.current&&(f.current=!1,y.current(_.current))},[]);return s.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(d.current)return b>0&&!v.current&&(f.current?_.current=b:y.current(b)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),C.current&&(clearTimeout(C.current),C.current=null)};const E=()=>{const A=h.current;if(A)try{A.classList.remove("is-visible"),A.style.transition="none",t==="top"?A.style.transform="translateX(-50%) translateY(-16px)":A.style.transform="translateX(-50%) translateY(16px)",A.style.opacity="0",A.offsetWidth,A.style.transition="",A.classList.add("is-visible"),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{S.current=null;try{A.style.opacity="",A.style.transform="",A.style.transition=""}catch{}},60)}catch{}};u.current?(E(),i(!0)):(c(!0),g.current=requestAnimationFrame(()=>{w.current=requestAnimationFrame(()=>{E(),i(!0)})})),b>0&&(f.current=!1,y.current(b))}else i(!1),C.current=setTimeout(()=>c(!1),hx);return p.current=e,()=>{v.current&&clearTimeout(v.current),C.current&&clearTimeout(C.current),g.current&&cancelAnimationFrame(g.current),w.current&&cancelAnimationFrame(w.current),S.current&&clearTimeout(S.current),v.current=null,C.current=null,g.current=null,w.current=null,S.current=null}},[e,b,t]),{mounted:l,showing:n,popupRef:h,pause:k,resume:B}}var ZD=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;color:var(--color-on-brand-fill,#fff);display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;white-space:pre-line}.ihabdevteam-core-scope .toast__text{-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff;color:var(--color-on-brand-fill,#fff)}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast:not(.is-visible) .toast__inner{pointer-events:none}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ue(ZD);function yr({message:e="",position:t="top",type:o="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Bh({message:e,position:t,duration:n,onClose:r}),h=s.useRef(null),[p,m]=s.useState(!1);if(s.useEffect(()=>{l?m(!0):i||m(!1)},[l,i]),!i)return null;const b=o==="notice"||o==="warning"?o:"normal",v=a.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:x=>{h.current=x.pointerType},onMouseEnter:()=>{h.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:a.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":p||l?void 0:!0,children:a.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?Do.createPortal(v,document.body):v}var JD='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ue(JD);const QD=24;function mx({value:e,max:t=100,size:o=8,color:r,trackColor:n,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:h}){const p=Number.isFinite(t)&&t>0?t:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),b=m/p*100,v=Number.isFinite(t)&&t>0?t:0,x=c??(o>=QD?"inside":"bottom"),_=x==="center"?"inside":x,f=_==="inside"&&(u==="left"?b>=15:u==="center"?b>=50:b>=85),C={};return r&&(C["--progress-bar-fill"]=r),n&&(C["--progress-bar-track"]=n),a.jsxs("div",{className:Se("progress-bar",`progress-bar--${o}`,`progress-bar--label-${_}`,i&&`progress-bar--align-${u}`,i&&f&&"progress-bar--label-on-fill",h),style:C,children:[a.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(m):i==="percent"?void 0:i==="raw"?String(m):`${m} / ${v}`:void 0,"aria-label":d,children:a.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&a.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(m):`${m} / ${v}`})]})}var ej=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff;color:var(--color-on-brand-fill,#fff)}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff;color:var(--color-on-brand-fill,#fff)}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{flex-wrap:wrap;gap:var(--spacing-xs);max-width:100%;min-width:0}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}@media (forced-colors:active){.ihabdevteam-core-scope .progress-indicator-dot{background:Canvas;border:1px solid CanvasText;color:CanvasText;forced-color-adjust:none}.ihabdevteam-core-scope .progress-indicator-dot.done{background:CanvasText;color:Canvas}.ihabdevteam-core-scope .progress-indicator-dot.active{background:Highlight;border-color:Highlight;color:HighlightText}}";ue(ej);const bx={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},tj="rgba(255, 255, 255, 0.16)";function Ah({max:e,index:t,inactiveBg:o,inactiveColor:r,transparent:n,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=Ae.useTranslation(),d=go("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const h=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=c??u("progress.steps",{current:h+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};if(o&&(m["--pi-inactive-bg"]=o),r&&(m["--pi-inactive-color"]=r),n&&(o||(m["--pi-inactive-bg"]=tj),r||(m["--pi-inactive-color"]="var(--color-white)")),i==="dot")return a.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&a.jsx("span",{style:bx,children:p}),Array.from({length:e}).map((v,x)=>a.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${x<h?" done":x===h?" active":""}`},x))]});const b=l?a.jsx("span",{role:"status",style:bx,children:p}):null;return d?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":p,children:a.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[h+1," / ",e]})}),b]}):a.jsxs(a.Fragment,{children:[b,a.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":p,children:Array.from({length:e}).map((v,x)=>a.jsx("span",{role:"listitem","aria-current":x===h?"step":void 0,className:`progress-indicator-dot ${x<h?" done":x===h?" active":""} body-3`,children:x+1},x))})]})}function oj(e){if(!e)return[];const t=[];let o=0,r="";for(const n of e.trim()){if(n==="("?o++:n===")"&&o--,/\s/.test(n)&&o===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var aj=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header--clickable{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{align-items:stretch;display:flex;position:relative}.ihabdevteam-core-scope .table-fields-strip>.table-fields{flex:1 0 auto}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px;padding-right:var(--table-reset-gutter,40px)}.ihabdevteam-core-scope .table-wrap .table-row.table-row--empty,.ihabdevteam-core-scope .table-wrap .table-row.table-row--loading{justify-content:flex-start;padding:0}.ihabdevteam-core-scope .table-row--empty>.table-row__full-cell,.ihabdevteam-core-scope .table-row--loading>.table-row__full-cell{align-items:center;box-sizing:border-box;display:flex;justify-content:center;left:0;position:sticky;width:100%;width:var(--table-visible-w,100%)}.ihabdevteam-core-scope .table-row--empty>.table-row__full-cell{padding:0 20px;text-align:center}.ihabdevteam-core-scope .table-fields__reset-dock{align-self:center;flex:0 0 0;overflow:visible;position:sticky;right:0;width:0}.ihabdevteam-core-scope .table-fields__reset{background:var(--color-white);border-radius:var(--radius-card);position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols-override,var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr))))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols-override,var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr))))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-row-expand__cell,.ihabdevteam-core-scope .table-row__full-cell{display:contents}.ihabdevteam-core-scope .table-row-hint{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .table-wrap .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap .table-fields,.ihabdevteam-core-scope .table-wrap .table-header{min-height:57px}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{min-height:56px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap .table-row--empty,.ihabdevteam-core-scope .table-wrap .table-row--loading{min-height:56px}";ue(aj);var rj=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}.ihabdevteam-core-scope .table-cell__row-button{align-items:center;align-self:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:inherit;cursor:pointer;display:flex;font:inherit;margin:0;min-width:0;overflow:hidden;overflow-wrap:inherit;padding:0;text-align:inherit;width:100%;word-break:inherit}";ue(rj);function nj(e,t,o=0){const r=Array.from({length:Math.max(0,t)},()=>0);for(const n of e){let i=0;for(const l of n){if(i>=r.length)break;const c=gx(l.span),u=Math.min(c,r.length-i);if(u===1)r[i]=Math.max(r[i],l.width);else{const d=Math.max(0,(l.width-o*(u-1))/u);for(let h=i;h<i+u;h++)r[h]=Math.max(r[h],d)}i+=u}}return r}function gx(e){const t=typeof e=="number"?e:parseInt(String(e??""),10);return Number.isFinite(t)&&t>=1?Math.floor(t):1}function ij(e,t){const o=/span\s+(\d+)/.exec(`${e??""} ${t??""}`);return o?gx(parseInt(o[1],10)):1}function lj(e,t){const{isFixed:o,floorOf:r,containerWidth:n}=t;if(!(n>0))return!1;const i=e.reduce((l,c,u)=>l+(o(u)?c:0),0);return e.reduce((l,c,u)=>l+(o(u)?0:r(u)),0)>n-i}function sj(e,t){const{isFixed:o,floorOf:r,containerWidth:n}=t,i=e.reduce((p,m,b)=>p+(o(b)?m:0),0),l=e.reduce((p,m,b)=>p+(o(b)?0:m),0),c=n-i;if(!(n>0&&l>0&&c>0))return[...e];const u=c/l,d=e.map((p,m)=>o(m)?p:Math.max(r(m),Math.round(p*u))),h=Math.round(c-d.reduce((p,m,b)=>p+(o(b)?0:m),0));if(h!==0){let p=-1;d.forEach((m,b)=>{!o(b)&&(p<0||m>d[p])&&(p=b)}),p>=0&&(d[p]=Math.max(r(p),d[p]+h))}return d}const cj=16;function uj(e,t=cj){return e.map(o=>{const r=o.sortable&&!o.sorted;return Math.max(o.declaredMin,Math.ceil(o.headWidth+(r?t:0)))})}var dj='.ihabdevteam-core-scope .table-field{color:var(--color-gray);padding:0 16px}.ihabdevteam-core-scope .table-field,.ihabdevteam-core-scope .table-field__button{align-items:center;display:flex;gap:0;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field__button{align-self:stretch;background:none;border:0;color:inherit;cursor:pointer;flex:1 1 auto;font:inherit;margin:0;padding:0}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}.ihabdevteam-core-scope .table-field.table-col--right{justify-content:flex-end;text-align:right}.ihabdevteam-core-scope .table-field.table-col--center{justify-content:center;text-align:center}.ihabdevteam-core-scope .table-cell.table-col--right{justify-content:flex-end;text-align:right}.ihabdevteam-core-scope .table-cell.table-col--center{justify-content:center;text-align:center}';ue(dj);const fx="declared";function pj({children:e,className:t,style:o,span:r,rowLabel:n,onRowClick:i}){const l=r&&r>1?{gridColumn:`span ${r}`,...o}:o;return a.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:l,"aria-colspan":r&&r>1?r:void 0,children:n&&i?a.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":n,children:e}):e})}function Sh({variant:e="default",children:t,className:o,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d,colSpan:h,describedBy:p,rowHasButton:m}){const b=s.useCallback(v=>{n&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),n())},[n]);return e==="loading"?a.jsx("div",{role:"presentation",className:"table-row-wrap",children:a.jsx("div",{role:"row",className:"table-row table-row--loading",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row__full-cell",children:a.jsx(sr,{size:28})})})}):e==="empty"?a.jsx("div",{role:"presentation",className:"table-row-wrap",children:a.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row__full-cell",children:t})})}):a.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[a.jsx("div",{className:o?`table-row ${o}`:"table-row",draggable:r,onClick:n,onKeyDown:n?b:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:"row",tabIndex:n&&!m?0:void 0,"aria-describedby":n&&!m?p:void 0,children:t}),d&&a.jsx("div",{role:"row",className:"table-row-expand",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row-expand__cell",children:d})})]})}function hj({dir:e}){return a.jsx(e==="asc"?qm:Um,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function mj({children:e,onClick:t,className:o,sortDir:r,ariaSort:n,onResizeStart:i}){const l=a.jsxs(a.Fragment,{children:[e,r&&a.jsx(hj,{dir:r})]});return a.jsxs("div",{onClick:t,role:"columnheader","aria-sort":n,className:Se("table-field body-3",o,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?a.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&a.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:c=>c.stopPropagation(),"aria-hidden":"true"})]})}function vx(e){return e&&e!=="left"?`table-col--${e}`:void 0}function cs({fields:e=[],sort:t,sortable:o=!0,headerGroups:r,items:n=[],renderRow:i,onRowClick:l,isRowClickable:c,onRowMouseEnter:u,onRowMouseLeave:d,onRowDragStart:h,onRowDragEnd:p,draggingId:m,gridTemplateColumns:b,mobileGridTemplateColumns:v,resizable:x=!0,resizeMode:_="grow",resizeStorageKey:f,refitOn:C,title:g,icon:w,count:S,collapsed:y=!1,onToggleCollapse:k,headerActions:B,empty:E,loading:A,dragOver:j=!1,onDragOver:D,onDragLeave:N,onDrop:z,renderExpandedRow:O,expandedId:U}){const T=Eo,{t:W}=Ae.useTranslation(),G=s.useId(),X=`table-title-${G}`,q=`table-row-hint-${G}`,[L,H]=s.useState(null),Z=s.useCallback((ee,xe=0)=>{if(!(ee==null||typeof ee=="boolean")){if(typeof ee=="string"||typeof ee=="number")return String(ee);if(!(xe>6)){if(Array.isArray(ee)){const He=ee.map(Xe=>Z(Xe,xe+1)).filter(Boolean);return He.length?He.join(""):void 0}if(s.isValidElement(ee))return Z(ee.props.children,xe+1)}}},[]),oe=s.useCallback((ee,xe)=>{const He=e[xe];if(!He)return;if(He.sortValue)return He.sortValue(ee);if(He.sortKey)return ee[He.sortKey];const Xe=i(ee)[xe]?.content;return typeof Xe=="string"||typeof Xe=="number"?Xe:Z(Xe)},[e,i,Z]),P=!t&&o&&!e.some(ee=>ee.sortDir!==void 0||ee.onClick),$=s.useCallback(ee=>{const xe=e[ee];if(!xe||xe.sortable===!1)return!1;if(xe.sortValue||xe.sortKey)return!0;const He=n[0];return He!==void 0&&oe(He,ee)!==void 0},[e,n,oe]);s.useEffect(()=>{if(!P||n.length===0)return;const ee=e.filter((xe,He)=>xe.sortable!==!1&&!$(He));ee.length!==0&&jt(`Table/sort-mute/${ee.map(xe=>String(xe.label??"?")).join(",")}`,`[ihab/Table] \uC815\uB82C\uC5D0\uC11C \uBE60\uC9C4 \uC5F4\uC774 \uC788\uC2B5\uB2C8\uB2E4: ${ee.map(xe=>`'${String(xe.label??"?")}'`).join(" \xB7 ")}`,`
848
+ `),x=v===-1?o:o.slice(0,v);i("comment",x),o=o.slice(x.length);continue}const c=o.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),o=o.slice(c[0].length);continue}const u=o.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),o=o.slice(u[0].length);continue}const d=o.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),o=o.slice(d[0].length);continue}const h=o.match(BD);if(h){i("keyword",h[0]),o=o.slice(h[0].length);continue}const p=o.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];i(n&&kD.has(v)?"command":"identifier",v),o=o.slice(v.length);continue}const m=o.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){i("operator",m[0]),o=o.slice(m[0].length);continue}const b=o.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),o=o.slice(1);continue}i("other",o[0]),o=o.slice(1)}return r}function Y1({children:e,language:t="bash",title:o="",showCopy:r=!0,size:n="default",className:i=""}){const{t:l}=Ae.useTranslation(),[c,u]=s.useState(!1),d=wD(q1(e)),h=s.useRef(null);s.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const p=async()=>{try{if(!await Tu(d))return;u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>u(!1),2e3)}catch{}},m=AD(d,t),b=n==="small"?"caption-1":"body-3";return a.jsxs("div",{className:Se("code-box",n==="small"?"code-box--small":"",i),children:[(o||r)&&a.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[a.jsx("div",{className:"code-box__title caption-1",children:o}),r&&a.jsx(ve,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),a.jsx("pre",{className:"code-box__inner","data-lang":t,children:a.jsx("code",{children:m.map((v,x)=>a.jsx("span",{className:`code-token ${v.type} ${b}`,children:v.content},x))})})]})}var SD=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:var(--color-black);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease;z-index:600;z-index:var(--z-bulk-bar,600)}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:var(--color-black);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ue(SD);function K1({count:e,actions:t,onClear:o,clearLabel:r,visible:n,content:i,max:l}){const c=Fo()??Eo,{t:u}=Ae.useTranslation(),d=n!==void 0?n:e>0,h=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),m=s.useRef(null),b=s.useRef(null),v=s.useRef(d);s.useLayoutEffect(()=>{const g=m.current,w=v.current;if(v.current=d,d&&!w){const S=typeof document<"u"?document.activeElement:null;b.current=S&&S!==document.body&&!g?.contains(S)?S:null}else!d&&w&&g&&g.contains(document.activeElement)&&kl(g,b.current)},[d]);const[x,_]=s.useState(!1),f=s.useRef(!1),C=s.useRef(null);return s.useEffect(()=>{const g=p.current;if(!g)return;const w=A=>{f.current=A,_(A)},S=()=>{const A=g.firstElementChild??g,j=Array.from(A.children);if(j.length<2){w(!1);return}const D=j[0].offsetTop,N=j.some(W=>W.offsetTop!==D);if(!f.current){C.current=g.clientWidth,N&&w(!0);return}if(N)return;const z=j[0],O=j[j.length-1],U=O.offsetLeft+O.offsetWidth-z.offsetLeft,T=C.current;(T==null||U<=T)&&w(!1)};if(S(),typeof ResizeObserver>"u")return;const y=new ResizeObserver(S);y.observe(g);const k=g.parentElement;let B=k?.clientWidth??0;const E=new ResizeObserver(()=>{const A=k?.clientWidth??0;A!==B&&(B=A,C.current=null,S())});return k&&E.observe(k),()=>{y.disconnect(),E.disconnect()}},[i,e]),a.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[a.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??a.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&a.jsx(co,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),a.jsxs("div",{className:`bulk-bar__actions${x?" bulk-bar__actions--stacked":""}`,children:[a.jsx(ve,{htmlType:"button",size:c,label:h,onClick:o}),t.map((g,w)=>a.jsx(ve,{htmlType:"button",size:c,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},w))]})]})}var ED=".ihabdevteam-core-scope .item-actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}";ue(ED);const DD=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function X1(e){const{onClose:t,className:o}=e;return a.jsx("div",{className:Se("item-actions",o),children:DD.map(({key:r,icon:n,closeFirst:i})=>{const l=e[r];if(!l)return null;const c=r==="publish"?l.published?l.unpublish:l.publish:l;return a.jsx(ve,{htmlType:"button",size:40,type:"dot",icon:n,ariaLabel:c.label,showTooltipInfo:c.label,onClick:()=>{i&&t(),c.onClick()}},r)})})}var jD=".ihabdevteam-core-scope .notify-text-preview{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .notify-text-preview__item{border:1px solid var(--color-darkWhite);border-radius:12px;display:flex;flex-direction:column;gap:10px;padding:var(--spacing-m)}.ihabdevteam-core-scope .notify-text-preview__head{display:flex;flex-direction:column}.ihabdevteam-core-scope .notify-text-preview__name{margin:0 0 6px}.ihabdevteam-core-scope .notify-text-preview__meta{grid-gap:2px 12px;color:var(--color-gray);display:grid;gap:2px 12px;grid-template-columns:auto 1fr;margin:0}.ihabdevteam-core-scope .notify-text-preview__meta-row{display:contents}.ihabdevteam-core-scope .notify-text-preview__meta dt{margin:0;white-space:nowrap}.ihabdevteam-core-scope .notify-text-preview__meta dd{margin:0;min-width:0;overflow-wrap:anywhere}.ihabdevteam-core-scope .notify-text-preview__body{grid-gap:10px;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.ihabdevteam-core-scope .notify-text-preview__col{display:flex;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .notify-text-preview__col-head{align-items:baseline;border-bottom:1px solid var(--color-darkWhite);color:var(--color-gray);display:flex;gap:8px;justify-content:space-between;padding-bottom:4px}.ihabdevteam-core-scope .notify-text-preview__bytes{white-space:nowrap}.ihabdevteam-core-scope .notify-text-preview__bytes.is-over{color:var(--color-error-ink,var(--color-error));font-weight:600}.ihabdevteam-core-scope .notify-text-preview__bytes.is-over-target{background:var(--color-warn-a10);border:1px solid var(--color-warn);border-radius:999px;color:var(--color-deepGray);font-weight:600;padding:0 6px}.ihabdevteam-core-scope .notify-text-preview__text{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:8px;font:inherit;margin:0;overflow-wrap:anywhere;padding:10px;white-space:pre-wrap;word-break:keep-all}";ue(jD);function Z1({items:e,className:t,ariaLabel:o="\uC54C\uB9BC \uAE00",titleLevel:r=4,targetBytes:n}){const i=r?`h${r}`:"div";return a.jsx("div",{className:`notify-text-preview${t?` ${t}`:""}`,role:"group","aria-label":o,children:e.map(l=>{const c=n===void 0?zi(l.sms):zi(l.sms,n),u=c.type==="LMS";return a.jsxs("section",{className:"notify-text-preview__item",children:[a.jsxs("header",{className:"notify-text-preview__head",children:[a.jsx(i,{className:"notify-text-preview__name h5b",children:l.name}),l.meta&&Object.keys(l.meta).length>0?a.jsx("dl",{className:"notify-text-preview__meta caption-1",children:Object.entries(l.meta).map(([d,h])=>a.jsxs("div",{className:"notify-text-preview__meta-row",children:[a.jsx("dt",{children:d}),a.jsx("dd",{children:h})]},d))}):null]}),a.jsxs("div",{className:"notify-text-preview__body",children:[a.jsxs("div",{className:"notify-text-preview__col",children:[a.jsxs("div",{className:"notify-text-preview__col-head caption-1",children:[a.jsx("span",{children:"\uBB38\uC790"}),a.jsxs("span",{className:`notify-text-preview__bytes${u?" is-over":c.overTarget?" is-over-target":""}`,title:c.over?`${c.limit}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uBCF4\uB0BC \uB54C \uC798\uB9B0\uB2E4`:u?`${Ri}\uBC14\uC774\uD2B8\uB97C \uB118\uC5B4 \uC7A5\uBB38\uC774\uB2E4 \u2014 \uD55C \uD1B5 \uAC12\uC774 \uB2E8\uBB38\uC758 \uB450 \uBC30 \uBC18\uC774\uB2E4`:c.overTarget?`\uACA8\uB204\uB294 ${c.target}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uD55C \uAE00\uC790\uB9CC \uB298\uC5B4\uB3C4 ${Ri}\uC744 \uB118\uC5B4 \uC7A5\uBB38\uC774 \uB41C\uB2E4`:void 0,children:[c.bytes,c.target!==null?` / \uBAA9\uD45C ${c.target}`:"","\uBC14\uC774\uD2B8 \xB7 ",u?"\uC7A5\uBB38":"\uB2E8\uBB38",c.over?" \xB7 \uD55C\uACC4 \uB118\uC74C":u?" \xB7 \uAC12\uC774 \uB450 \uBC30 \uBC18":c.overTarget?" \xB7 \uBAA9\uD45C \uB118\uC74C":""]})]}),a.jsx("pre",{className:"notify-text-preview__text",children:l.sms})]}),l.ata?a.jsxs("div",{className:"notify-text-preview__col",children:[a.jsx("div",{className:"notify-text-preview__col-head caption-1",children:a.jsx("span",{children:"\uC54C\uB9BC\uD1A1"})}),a.jsx("pre",{className:"notify-text-preview__text",children:l.ata})]}):null]})]},l.name)})})}var ND=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:none;min-width:150px;width:auto}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto}.ihabdevteam-core-scope .bar-chart__wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .chart-section--fit .bar-chart__wrap{flex:1;min-height:0}.ihabdevteam-core-scope .bar-chart__gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .bar-chart__gridline__label{color:var(--color-deepGray);font-size:11px;left:0;line-height:17px;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .bar-chart__inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .bar-chart__scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .bar-chart__scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .bar-chart__area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .bar-chart__area svg{display:block}.ihabdevteam-core-scope .bar-chart__x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .bar-chart__x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .bar-chart__x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .bar-chart__x-axis__main{position:relative}.ihabdevteam-core-scope .bar-chart__x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .bar-chart__plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .bar-chart__col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .bar-chart__bar,.ihabdevteam-core-scope .bar-chart__stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .bar-chart__stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .bar-chart__bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .bar-chart__stack-segment{width:100%}.ihabdevteam-core-scope .bar-chart__detail-btn{margin-left:auto}.ihabdevteam-core-scope .bar-chart__slot{display:flex;flex:0 1 var(--bar-width);flex-direction:column;height:100%;min-width:0}.ihabdevteam-core-scope .bar-chart__slot__half{display:flex;height:50%;justify-content:center}.ihabdevteam-core-scope .bar-chart__slot__half--up{align-items:flex-end}.ihabdevteam-core-scope .bar-chart__slot__half--down{align-items:flex-start}.ihabdevteam-core-scope .bar-chart__bar--full{flex:1 1 auto;width:100%}.ihabdevteam-core-scope .bar-chart__bar--down{border-radius:0 0 6px 6px}.ihabdevteam-core-scope .bar-chart__gridline--baseline{opacity:1}.ihabdevteam-core-scope .bar-chart__col--group{gap:1px;gap:var(--bar-group-gap,1px);padding:0 4px}@media (forced-colors:active){.ihabdevteam-core-scope .bar-chart__bar{forced-color-adjust:none}}";ue(ND);var TD=".ihabdevteam-core-scope .chart-section,.ihabdevteam-core-scope .manager-section{--card-pad:19px;--head-gap:var(--spacing-xs);--legend-offset:4px;background:var(--color-white);border:1px solid var(--color-hc-edge,var(--color-darkWhite));border-radius:var(--radius-m);box-shadow:none;margin-bottom:20px;min-width:320px;padding:19px;padding:var(--card-pad);position:relative}.ihabdevteam-core-scope .chart-section--clickable{cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .chart-section--clickable:hover:not(:has(:is(button,a,[role=button]):hover)){border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .chart-section__head,.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--head-gap);min-height:32px}.ihabdevteam-core-scope .chart-section__disc,.ihabdevteam-core-scope .chart-section__title-row,.ihabdevteam-core-scope .manager-section__title-row{padding-right:0;padding-right:calc(var(--section-head-float-w, -12px) + 12px)}.ihabdevteam-core-scope .chart-section__title,.ihabdevteam-core-scope .manager-section__title{color:var(--color-darkGray);min-width:0}.ihabdevteam-core-scope .chart-section__title-row,.ihabdevteam-core-scope .manager-section__title-row{align-items:center;display:flex;flex:1 1 auto;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .chart-section__icon,.ihabdevteam-core-scope .manager-section__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .chart-section__disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.ihabdevteam-core-scope .chart-section__head-right{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .chart-section__head-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section__head-icon-inner{color:var(--color-darkGray);height:18px;width:18px}.ihabdevteam-core-scope .chart-section__head-icon-inner>svg{height:100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .chart-section__head,.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;flex-wrap:nowrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .chart-section__head:has(>.chart-section__head-icon),.ihabdevteam-core-scope .chart-section__head:has(>.chart-section__head-right>.chart-section__head-icon:only-child),.ihabdevteam-core-scope .manager-section__head:has(>.chart-section__head-icon),.ihabdevteam-core-scope .manager-section__head:has(>.chart-section__head-right>.chart-section__head-icon:only-child){align-items:center;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__controls{flex-wrap:wrap}.ihabdevteam-core-scope .chart-section__controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .chart-section,.ihabdevteam-core-scope .manager-section{--card-pad:17px;min-width:0;padding:17px;padding:var(--card-pad)}}.ihabdevteam-core-scope .chart-section__controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .bar-chart__plot--loading,.ihabdevteam-core-scope .ring-chart--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .bar-chart__area--loading .bar-chart__x-axis{justify-content:center}.ihabdevteam-core-scope .chart-section__sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__sub-row--center{align-items:center}.ihabdevteam-core-scope .chart-section__sub-row--end{align-items:flex-end}.ihabdevteam-core-scope .chart-section__total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .chart-section__total--stacked{align-items:flex-start;flex-direction:column;gap:2px}.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__label,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__num,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__unit,.ihabdevteam-core-scope .chart-section__total--stacked .chart-section__total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .chart-section__total__label{color:var(--color-gray)}.ihabdevteam-core-scope .chart-section__total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .chart-section__total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .chart-section__legend,.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:2px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section__sub-row:has(+.chart-section__legend-slot){min-height:auto;min-height:var(--legend-h,auto)}.ihabdevteam-core-scope .chart-section__legend-slot{max-width:55%;position:absolute;right:var(--card-pad);top:calc(var(--card-pad) + 32px + var(--head-gap) + var(--legend-offset))}.ihabdevteam-core-scope .chart-section__legend-item,.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .chart-section__legend-dot,.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .chart-section--compact{--head-gap:2px;--card-pad:19px;min-width:160px;padding:19px;padding:var(--card-pad)}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend{margin-top:3px}.ihabdevteam-core-scope .chart-section--compact .chart-section__total{flex-shrink:0}.ihabdevteam-core-scope .chart-section--compact .chart-section__sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .chart-section--compact .chart-section__legend-item,.ihabdevteam-core-scope .chart-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .chart-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .chart-section--compact{min-width:0}}.ihabdevteam-core-scope .chart-section--grid,.ihabdevteam-core-scope .manager-section--grid{--head-gap:2px;display:flex;flex-direction:column;margin-bottom:0;min-width:0}.ihabdevteam-core-scope .chart-section--grid>.bar-chart__loading,.ihabdevteam-core-scope .chart-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .chart-section--grid>.ring-chart-section-body,.ihabdevteam-core-scope .manager-section--grid>.bar-chart__loading,.ihabdevteam-core-scope .manager-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .manager-section--grid>.ring-chart-section-body{margin-top:auto}.ihabdevteam-core-scope .chart-section--compact.chart-section--grid>.bar-chart__wrap,.ihabdevteam-core-scope .chart-section--compact.chart-section--grid>.ring-chart-section-body,.ihabdevteam-core-scope .chart-section--compact.manager-section--grid>.ring-chart-section-body{align-items:center;flex:1}.ihabdevteam-core-scope .chart-section--stat{container-type:inline-size;display:flex;flex-direction:column;gap:2px;justify-content:flex-start;margin-bottom:0;min-width:160px}.ihabdevteam-core-scope .chart-section--stat .chart-section__head{margin-bottom:0}.ihabdevteam-core-scope .chart-section--stat .chart-section__sub-row{flex:1;gap:8px;justify-content:flex-start;margin-bottom:0;text-align:left}.ihabdevteam-core-scope .chart-section--grid .chart-section__sub-row{margin-bottom:var(--spacing-xs)}.ihabdevteam-core-scope .chart-section--grid .chart-section__sub-row:last-child{margin-bottom:0}.ihabdevteam-core-scope .chart-section--stat{--head-gap:2px;justify-content:space-between}.ihabdevteam-core-scope .chart-section--body-center>.chart-section__sub-row{flex:0 0 auto}.ihabdevteam-core-scope .chart-section--body-center>.chart-section__body{--body-lift:21px;margin-block:auto;padding-bottom:42px;padding-bottom:calc(var(--body-lift)*2)}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center{gap:0}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center>.chart-section__head{margin-bottom:2px}.ihabdevteam-core-scope .chart-section--stat.chart-section--body-center>.chart-section__sub-row{margin-bottom:0}.ihabdevteam-core-scope .chart-section__body{align-items:stretch;display:flex;flex-direction:column;gap:4px;text-align:left;width:100%}.ihabdevteam-core-scope .chart-section__total__num{color:var(--color-black);flex-shrink:0;margin-top:-3px;white-space:nowrap}.ihabdevteam-core-scope .chart-section__total__num--muted{color:var(--color-lightGray)}.ihabdevteam-core-scope .chart-section__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .chart-section__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .chart-section__change--down{color:var(--color-error-ink,var(--color-error))}.ihabdevteam-core-scope .chart-section__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .chart-section--stat{padding:12px 14px 16px}}.ihabdevteam-core-scope .chart-section--xsmall{min-width:0}.ihabdevteam-core-scope .chart-section__title--probe{left:0;max-width:none;pointer-events:none;position:absolute;top:0;visibility:hidden;white-space:nowrap;width:-moz-max-content;width:max-content}.ihabdevteam-core-scope .chart-section--span-two{grid-column:span 2}@media (forced-colors:active){.ihabdevteam-core-scope .manager-bar-chart-legend-dot{forced-color-adjust:none}}";ue(TD);var LD=".ihabdevteam-core-scope .section-head-float{align-items:center;display:flex;gap:var(--spacing-m);justify-content:flex-end;max-width:50%;position:absolute;right:19px;right:var(--card-pad,19px);top:19px;top:var(--card-pad,19px);z-index:1}@media (max-width:600px){.ihabdevteam-core-scope .section-head-float{flex-wrap:wrap;margin-top:var(--spacing-m);max-width:none;position:static}}";ue(LD);function gh({children:e,className:t}){const o=s.useRef(null),[r,n]=s.useState(null);return s.useEffect(()=>{n(o.current?.parentElement??null)},[]),s.useEffect(()=>{const i=o.current;if(!i||!r)return;const l=()=>{const u=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;u>0?r.style.setProperty("--section-head-float-w",`${u}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const c=new ResizeObserver(()=>l());return c.observe(i),c.observe(r),()=>{c.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),a.jsx("div",{ref:o,className:Se("section-head-float",t),children:e})}function rs({items:e,className:t}){return a.jsx("div",{className:me(t?`chart-section__legend ${t}`:"chart-section__legend"),children:e.map((o,r)=>a.jsxs("span",{className:me("chart-section__legend-item"),children:[a.jsx("span",{className:me("chart-section__legend-dot"),style:{background:o.color}}),o.label]},r))})}const Ga=e=>`chart-section__total__num ${e?"h1":"h0"}`;function Cr({label:e,children:t}){return e?a.jsxs("div",{className:me("chart-section__total chart-section__total--stacked"),children:[a.jsx("span",{className:me("chart-section__total__label body-3"),children:e}),a.jsx("span",{className:me("chart-section__total__value"),children:t})]}):a.jsx("div",{className:me("chart-section__total"),children:t})}const J1=20,ns=120,MD=120,$D={xSmall:ns,small:ns,medium:ns*2+J1,large:ns*2+J1},Q1={xSmall:"chart-section--compact chart-section--xsmall",small:"chart-section--compact",medium:"chart-section--compact",xLarge:"chart-section--full"},fi=e=>{const t=parseFloat(e);return Number.isFinite(t)?t:0};function RD(e){if(!e)return 0;const t=Array.from(e.children);if(!t.length)return 0;const o=fi(getComputedStyle(e).columnGap);return t.reduce((r,n)=>r+n.getBoundingClientRect().width,0)+o*(t.length-1)}function vi({type:e="chart",title:t,titleClassName:o,titleLevel:r,icon:n,disc:i,headRight:l,headFloat:c,headSegment:u,headMenuItems:d,collapseBelow:h=420,onClick:p,ariaLabel:m,tooltip:b,totalNum:v,totalUnit:x,totalMuted:_=!1,totalLabel:f,change:C,changeType:g,size:w,bodyAlign:S="bottom",subRow:y,legend:k,subRowAlign:B="start",className:E,inGrid:A=!1,fitBody:j=!1,children:D}){const N=e==="stat",z=w??(N?"small":"large"),O=z==="xSmall"&&N,[U,T]=s.useState(!0),W=z==="xSmall"?O&&U?"xSmall":"small":z,G=O&&!U,X=W==="xSmall",q=W==="xSmall"||W==="small"||W==="medium",L=o??"h5",H=r??(N?0:3),{t:Z}=Ae.useTranslation(),oe=s.useRef(null),{anchorRect:P,openAt:$,close:R}=rn(),Y=s.useCallback(()=>{b&&oe.current&&$(oe.current)},[b,$]),[Q,ae]=s.useState(!1);ui(()=>{const Fe=oe.current;if(!Fe||!u)return;const Ue=Ge=>ae(Ge>0&&Ge<h);if(Ue(Fe.clientWidth),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ge=>Ue(Ge[0].contentRect.width));return rt.observe(Fe),()=>rt.disconnect()},[u,h]);const[te,J]=s.useState(null),Be=s.useCallback(()=>J(null),[]),de=s.useCallback(Fe=>{const Ue=Fe.currentTarget.getBoundingClientRect();J(rt=>rt?null:{left:Ue.left,right:Ue.right,top:Ue.top,bottom:Ue.bottom,width:Ue.width,height:Ue.height,x:Ue.x,y:Ue.y})},[]),re=!!u&&Q;s.useEffect(()=>{re||J(null)},[re]);const I=u?[...u.options.map((Fe,Ue)=>({label:Fe.label,shortcut:ri(Ue),icon:Fe.icon,selected:Fe.key===u.value,disabled:Fe.disabled,onClick:()=>u.onChange(Fe.key),closeOnSelect:!0})),...(d??[]).map((Fe,Ue)=>Ue===0?{...Fe,separatorBefore:!0}:Fe)]:[],ne=s.useCallback(Fe=>{if(!p)return;const Ue=Fe.target;Ue&&typeof Ue.closest=="function"&&Ue.closest('button, a, input, select, textarea, [role="radiogroup"]')||p()},[p]),V=s.useCallback(Fe=>{p&&Fe.target===Fe.currentTarget&&(Fe.key==="Enter"||Fe.key===" ")&&(Fe.preventDefault(),p())},[p]),se=typeof l=="function"?l({collapsed:re}):l,F=v!=null||f?a.jsxs(Cr,{label:f,children:[v!=null&&a.jsx("span",{className:me(Ga(q)),children:v}),x&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:x})]}):null,le=se||u?a.jsxs("div",{className:me("chart-section__head-right"),children:[u&&(re?a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??Z("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??Z("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!te,onClick:de}):a.jsx(Mo,{size:vr,ariaLabel:u.ariaLabel,options:u.options.map(Fe=>({key:Fe.key,label:Fe.label,disabled:Fe.disabled})),value:u.value,onChange:u.onChange})),se]}):null,pe=s.useRef(null),[be,_e]=s.useState(null);s.useLayoutEffect(()=>{const Fe=pe.current;if(!Fe){_e(null);return}const Ue=()=>{const Ge=Fe.getBoundingClientRect().height;_e(Je=>Je!=null&&Math.abs(Je-Ge)<1?Je:Ge)};if(Ue(),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ue);return rt.observe(Fe),()=>rt.disconnect()},[k]);const Re=s.useId(),ke=H?`h${H}`:"div",Ee=typeof W=="number"?W:$D[W],De=g??(C===void 0?void 0:C>0?"up":C<0?"down":"neutral"),Ie=C===void 0?void 0:C>0?`+${C}`:`${C}`,je=s.useRef(null),at=s.useRef(null);ui(()=>{if(!O)return;const Fe=oe.current;if(!Fe||typeof getComputedStyle!="function")return;const Ue=()=>{const Ge=getComputedStyle(Fe),Je=fi(Ge.paddingLeft)+fi(Ge.paddingRight)+fi(Ge.borderLeftWidth)+fi(Ge.borderRightWidth),st=MD-Je,_t=Math.max(je.current?.getBoundingClientRect().width??0,RD(at.current));!(st>0)||!(_t>0)||T(_t<=st+.5)};if(Ue(),typeof ResizeObserver>"u")return;const rt=new ResizeObserver(Ue);return je.current&&rt.observe(je.current),at.current&&rt.observe(at.current),()=>rt.disconnect()},[O,t,v,x,Ie]);const Ct=b&&P?a.jsx(Jo,{anchorRect:{left:P.left,top:P.top+21,right:P.right,bottom:P.bottom,width:P.width,height:P.height},text:b}):null;return N?a.jsxs("div",{ref:oe,className:me(["chart-section","chart-section--stat",A&&"chart-section--grid",S==="center"&&"chart-section--body-center",typeof W=="string"&&Q1[W],G&&"chart-section--span-two",p&&"chart-section--clickable",E].filter(Boolean).join(" ")),style:Ee===void 0?void 0:{minHeight:Ee},onClick:p?ne:void 0,onKeyDown:p?V:void 0,onPointerEnter:b?Y:void 0,onPointerLeave:b?R:void 0,onFocus:b?Y:void 0,onBlur:b?R:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??[typeof t=="string"?t:void 0,v,Ie].filter(Fe=>Fe!=null&&Fe!=="").join(" "):void 0,"aria-labelledby":!p&&t!=null?Re:void 0,children:[Ct,a.jsxs("div",{className:me("chart-section__head"),children:[a.jsx(ke,{id:Re,className:me(["chart-section__title",L].filter(Boolean).join(" ")),children:t}),O&&a.jsx("div",{ref:je,"aria-hidden":"true",className:me(["chart-section__title",L,"chart-section__title--probe"].filter(Boolean).join(" ")),children:t}),n&&!X&&a.jsx("span",{className:me("chart-section__head-icon"),children:a.jsx(nt,{icon:n,className:me("chart-section__head-icon-inner")})})]}),a.jsxs(a.Fragment,{children:[a.jsxs("div",{ref:at,className:me("chart-section__sub-row"),children:[a.jsxs(Cr,{children:[a.jsx("span",{className:me([Ga(!0),_&&"chart-section__total__num--muted"].filter(Boolean).join(" ")),children:v}),x&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:x})]}),Ie&&a.jsx("div",{className:me(`chart-section__change chart-section__change--${De??"neutral"} caption-1`),children:Ie})]}),D&&a.jsx("div",{className:me("chart-section__body"),children:D})]})]}):a.jsxs("section",{ref:oe,className:me(["chart-section",A&&"chart-section--grid",j&&"chart-section--fit",typeof W=="string"&&Q1[W],p&&"chart-section--clickable",E].filter(Boolean).join(" ")),style:{...Ee===void 0?null:j?{minHeight:Ee,height:Ee}:{minHeight:Ee},...be==null?null:{"--legend-h":`${be}px`}},onClick:p?ne:void 0,onKeyDown:p?V:void 0,onPointerEnter:b?Y:void 0,onPointerLeave:b?R:void 0,onFocus:b?Y:void 0,onBlur:b?R:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??(typeof t=="string"?t:void 0):void 0,"aria-labelledby":!p&&t!=null?Re:void 0,children:[b&&P&&a.jsx(Jo,{anchorRect:{left:P.left,top:P.top+21,right:P.right,bottom:P.bottom,width:P.width,height:P.height},text:b}),c&&a.jsx(gh,{children:c}),a.jsxs("div",{className:me("chart-section__head"),children:[a.jsxs("div",{className:me("chart-section__title-row"),children:[n&&a.jsx(nt,{icon:n,label:typeof t=="string"?t:void 0,className:me("chart-section__icon")}),a.jsx(ke,{id:Re,className:me(["chart-section__title",L].filter(Boolean).join(" ")),children:t})]}),le,i&&a.jsx("div",{className:me("chart-section__disc body-3"),children:i})]}),(F||y)&&a.jsxs("div",{className:me(["chart-section__sub-row",B!=="start"&&`chart-section__sub-row--${B}`].filter(Boolean).join(" ")),children:[F,y]}),k&&a.jsx("div",{ref:pe,className:me("chart-section__legend-slot"),children:k}),D,te&&a.jsx(fo,{anchorRect:te,onClose:Be,ariaLabel:u?.ariaLabel??Z("tooltip.menu","\uBA54\uB274"),children:a.jsx(Ba,{columns:[{items:I}],onClose:Be,size:"small"})})]})}const cn=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,is=e=>cn(e.getFullYear(),e.getMonth()+1);function _r(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const o=Number(t[2]);return o>=1&&o<=12?{year:Number(t[1]),month1:o}:null}const ls=(e,t)=>`${e}#${t}`;function ha(e,t){const o=new Date(e,t,1).getDay();return 1+(8-(o===0?7:o))%7}function PD(){const e=Ma();let t=e.getFullYear(),o=e.getMonth(),r=e.getDate();if(r<ha(t,o)){const l=new Date(t,o,0);t=l.getFullYear(),o=l.getMonth(),r=l.getDate()}const n=Math.floor((r-ha(t,o))/7),i=cn(t,o+1);return{monthKey:i,value:ls(i,n)}}function ex(e){const t=Ma(),o=is(t),r=(u,d)=>cn(u,d+1),n=new Map;n.set(o,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());n.has(d)||n.set(d,[]),n.get(d).push(u)}for(const[u,d]of[...n.entries()]){const h=_r(u);if(!h)continue;const p=h.year,m=h.month1-1,b=ha(p,m);if(!(u===o&&t.getDate()<b)&&!d.some(_=>_.date.getDate()<b))continue;const v=new Date(p,m,0),x=r(v.getFullYear(),v.getMonth());n.has(x)||n.set(x,[])}const i=new Map;for(const[u,d]of n){const h=_r(u);if(!h)continue;const p=h.year,m=h.month1-1,b=new Date(p,m+1,0).getDate(),v=d.reduce((w,S)=>Math.max(w,S.parts?.length??0,S.partsB?.length??0),0),x=d.some(w=>w.partsB),_=new Array(b+1).fill(0),f=new Array(b+1).fill(0),C=Array.from({length:b+1},()=>new Array(v).fill(0)),g=Array.from({length:b+1},()=>new Array(v).fill(0));for(const w of d){const S=w.date.getDate();if(_[S]+=w.a,f[S]+=w.b,w.parts)for(let y=0;y<v;y++)C[S][y]+=w.parts[y]??0;if(w.partsB)for(let y=0;y<v;y++)g[S][y]+=w.partsB[y]??0}i.set(u,{year:p,month:m,daysInMonth:b,partsLen:v,hasPartsB:x,dayA:_,dayB:f,dayParts:C,dayPartsB:g})}const l=(u,d,h)=>new Date(u,d,h).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[u,d]of i){const{year:h,month:p,daysInMonth:m,dayA:b,dayB:v,dayParts:x,dayPartsB:_}=d,f=h===t.getFullYear()&&p===t.getMonth(),C=t.getDate(),g=i.get(r(p===11?h+1:h,(p+1)%12)),w=d.partsLen,S=[];for(let k=1;k<=m;k++){const B=f&&k>C;S.push({label:String(k),...B&&b[k]===0&&v[k]===0?{future:!0}:{},a:B&&b[k]===0&&v[k]===0?-1:b[k],b:v[k],...w?{parts:x[k]}:{},...w&&d.hasPartsB?{partsB:_[k]}:{}})}const y=[];for(let k=ha(h,p);k<=m;k+=7){const B=Math.max(0,k+6-m),E=B&&g?Math.max(w,g.partsLen):w,A=d.hasPartsB||!!(B&&g?.hasPartsB);let j=0,D=0;const N=new Array(E).fill(0),z=new Array(E).fill(0);for(let U=k;U<=Math.min(k+6,m);U++){j+=b[U],D+=v[U];for(let T=0;T<w;T++)N[T]+=x[U][T],z[T]+=_[U][T]}if(B&&g)for(let U=1;U<=B&&!l(g.year,g.month,U);U++){j+=g.dayA[U],D+=g.dayB[U];for(let T=0;T<g.partsLen;T++)N[T]+=g.dayParts[U][T],z[T]+=g.dayPartsB[U][T]}const O=B?`${(p+1)%12+1}/${B}`:`${k+6}`;y.push({label:`${y.length+1}\uC8FC`,sublabel:`[${k}\uC77C~${O}\uC77C]`,a:j,b:D,...E?{parts:N}:{},...E&&A?{partsB:z}:{}})}c[u]={weekly:y,daily:S}}return c}function tx(){const e=Ma(),t=e.getFullYear(),o=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?o:12;for(let l=1;l<=i;l++)r.push({value:cn(n,l),year:n,month:l})}return r.reverse()}tx();function zD(){return tx()}function ox(e,t){const o=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(o)&&typeof o[t]=="string"?o[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function OD(e,t){const o=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=(Array.isArray(o)&&typeof o[t]=="string"?o[t]:null)??String(t+1);return e("calendar.weekLabelCompact",{ord:r,defaultValue:""})||ox(e,t)}function fh(e){const{t,i18n:o}=Ae.useTranslation(),[r,n]=s.useState("week"),i=s.useMemo(()=>zD().filter(A=>A.value in e),[e]),l=s.useMemo(()=>{const A=[];for(const j of i){const D=new Date(j.year,j.month,0).getDate(),N=ha(j.year,j.month-1),z=Math.ceil((D-N+1)/7);for(let O=z-1;O>=0;O--)A.push({value:ls(j.value,O),monthKey:j.value,year:j.year,month:j.month,week:O})}return A},[i]),c=s.useCallback((A,j)=>t("calendar.yearMonthCompact",{year:A,month:j,full:Wg(t,o.language,A,j),short:m7(A,j,o.language),defaultValue:"{{full}}"}),[t,o.language]),u=s.useCallback(A=>`${c(A.year,A.month)} ${OD(t,A.week)}`,[t,c]),d=s.useMemo(()=>i.map(A=>({value:A.value,label:c(A.year,A.month)})),[c,i]),h=s.useMemo(()=>l.map(A=>({value:A.value,label:u(A)})),[l,u]),p=s.useMemo(()=>PD(),[e]),m=s.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),b=s.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[v,x]=s.useState(""),[_,f]=s.useState("");s.useEffect(()=>{i.find(A=>A.value===v)||x(m)},[i,v,m]),s.useEffect(()=>{l.find(A=>A.value===_)||f(b)},[l,_,b]);const C=r==="month"?d:h,g=r==="month"?v:_,w=r==="month"?x:f,S=s.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),y=C.findIndex(A=>A.value===g),k=s.useCallback(()=>{const A=C.findIndex(j=>j.value===g);A<C.length-1&&w(C[A+1].value)},[C,g,w]),B=s.useCallback(()=>{const A=C.findIndex(j=>j.value===g);A>0&&w(C[A-1].value)},[C,g,w]),E=s.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:g,setRange:w,activeOptions:C,activeIdx:y,handlePrev:k,handleNext:B,periodOptions:E,monthRange:v,weekRange:_,weekRanges:l,DOW:S}}const Gt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Aa(e,t=!0){return e.future===!0||t&&e.a===-1}function ID({data:e,colorA:t,colorB:o,labelA:r,labelB:n,barWidth:i=10,barGap:l=1,height:c=140,fitHeight:u=!1,maxOverride:d,tightMax:h,seriesColors:p,seriesLabels:m,rateLabels:b,grouped:v=!1,baseline:x,focusableBars:_=!1}){const f=!o,C=!!(p&&p.length>0),g=x,w=s.useMemo(()=>C?Math.max(0,...e.filter($=>!Aa($,g==null)).map($=>v?Math.max(0,...($.parts??[]).map(Gt)):($.parts??[]).reduce((R,Y)=>R+Math.max(0,Gt(Y)),0))):Math.max(0,...e.filter($=>!Aa($,g==null)).flatMap($=>f?[Gt($.a)]:[Gt($.a),Gt($.b)])),[e,f,C,v]),S=s.useMemo(()=>{if(g==null)return 0;const $=e.filter(R=>!Aa(R,g==null)).flatMap(R=>C?(R.parts??[]).map(Gt):f?[Gt(R.a)]:[Gt(R.a),Gt(R.b)]);return Math.max(0,...$.map(R=>Math.abs(R-g)))},[e,g,C,f]),y=s.useMemo(()=>{const $=g!=null?S:w;return d??(h?$>0?$:10:Math.ceil($/10)*10||10)},[w,S,g,d,h]),k=s.useRef(null),B=s.useRef(null),[E,A]=s.useState(null);s.useLayoutEffect(()=>{if(!u){A(null);return}const $=k.current;if(!$)return;const R=()=>{const Q=B.current,ae=$.clientHeight-(Q?Q.getBoundingClientRect().height:0);ae<=0||A(te=>te!=null&&Math.abs(te-ae)<1?te:ae)};if(R(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(R);return Y.observe($),B.current&&Y.observe(B.current),()=>Y.disconnect()},[u]);const j=E??c,D=C?v?Math.max(1,p.length):1:f?1:2,N={"--bar-width":`${s.useMemo(()=>{const $=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/($*D)+6)))},[e.length,D,i])}px`},z={"--bar-group-gap":`${Math.max(0,l)}px`},O=s.useMemo(()=>{const $=Math.round(y/2);return g!=null?[g+y,...$!==y?[g+$]:[],g,...$!==y?[g-$]:[],g-y]:$!==y?[y,$,0]:[y,0]},[y,g]),U=$=>g!=null?1-($-(g-y))/(2*y):1-$/y,T=14,W=s.useMemo(()=>{const $=new Set;let R=Number.NEGATIVE_INFINITY;for(const Y of O.slice(0,-1)){const Q=(g!=null?1-(Y-(g-y))/(2*y):1-Y/y)*j;Q-R>=T&&($.add(Y),R=Q)}return $},[O,g,y,j]),[G,X]=s.useState(null),q=s.useCallback(()=>X(null),[]),L=s.useCallback(($,R)=>{const Y=[$.label,$.sublabel].filter(Boolean).join(" ");let Q;if(C&&v&&$.rawPartsB)Q=(m??[]).map((ae,te)=>{const J=$.rawPartsB[te]??0;return{text:J>0?`${ae}: ${R[te]??0}% (${$.rawParts?.[te]??0}/${J})`:`${ae}: -`,color:(p??[])[te]}});else if(C&&v)Q=(m??[]).map((ae,te)=>({text:`${ae}: ${oe(R[te]??0)}`,color:(p??[])[te]}));else if(C){const ae=(m??[]).map((J,Be)=>({text:`${J}: ${R[Be]??0}`,color:(p??[])[Be]})),te=ae.filter((J,Be)=>(R[Be]??0)>0);Q=te.length?te:ae}else b&&!f?Q=[{text:`${r} ${Gt($.a)}%`,color:t},{text:`${n} ${Gt($.b)}%`,color:o}]:b&&$.rawB!==void 0?Q=[{text:`${b.total} ${$.rawB}`},{text:`${b.done} ${$.rawA??0}`,color:t}]:f?Q=[{text:`${r}: ${Gt($.a)}`,color:t}]:Q=[{text:`${r}: ${Gt($.a)}`,color:t},{text:`${n}: ${Gt($.b)}`,color:o}];return{title:Y,items:Q}},[C,v,m,p,b,f,r,n,t,o,g]),H=s.useCallback(($,R,Y)=>{const Q=$.getBoundingClientRect(),{title:ae,items:te}=L(R,Y);X({rect:{left:Q.left,top:Q.top,right:Q.right,bottom:Q.bottom,width:Q.width,height:Q.height},title:ae,items:te})},[L]),Z=s.useCallback(($,R)=>{const{title:Y,items:Q}=L($,R);return[Y,...Q.map(ae=>ae.text)].filter(Boolean).join(", ")},[L]),oe=$=>g!=null&&$>g?`+${$}`:`${$}`,P=G!=null;return s.useEffect(()=>{if(!P)return;const $=()=>X(null),R=Y=>{const Q=Y.target;Q&&typeof Q.closest=="function"&&Q.closest(".bar-chart__col")||X(null)};return window.addEventListener("scroll",$,!0),document.addEventListener("pointerdown",R,!0),()=>{window.removeEventListener("scroll",$,!0),document.removeEventListener("pointerdown",R,!0)}},[P]),a.jsxs("div",{ref:k,className:me("bar-chart__wrap"),style:z,children:[a.jsx("div",{className:me("bar-chart__inner"),children:a.jsx("div",{className:me("bar-chart__scroll"),children:a.jsxs("div",{className:me("bar-chart__area"),children:[a.jsxs("div",{className:me("bar-chart__plot"),style:{height:j},children:[O.slice(0,-1).map(($,R)=>a.jsx("div",{className:me(`bar-chart__gridline${g!=null&&$===g?" bar-chart__gridline--baseline":""}`),style:{top:U($)*j},children:W.has($)&&a.jsx("span",{className:me("bar-chart__gridline__label caption-1"),children:$})},R)),e.map(($,R)=>{const Y=Aa($,g==null),Q=j/2,ae=de=>g!=null?Math.min(Q,Math.abs(Gt(de)-g)/y*Q):Math.min(j,Math.max(0,Gt(de)/y*j)),te=Y?0:ae($.a),J=Y?0:ae($.b),Be=($.parts??[]).map(Gt);return a.jsx("div",{className:me(`bar-chart__col${v&&C?" bar-chart__col--group":""}`),style:{cursor:Y?"default":"pointer"},tabIndex:_&&!Y?0:void 0,role:_&&!Y?"img":void 0,"aria-label":_&&!Y?Z($,Be):void 0,onMouseEnter:Y?void 0:de=>H(de.currentTarget,$,Be),onFocus:Y||!_?void 0:de=>H(de.currentTarget,$,Be),onBlur:_?q:void 0,onMouseLeave:q,children:!Y&&(C&&v?(p??[]).map((de,re)=>{const I=Be[re]??0;if(g==null)return a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:ae(I),background:de}},re);const ne=Gt(I)<g;return a.jsxs("div",{className:me("bar-chart__slot"),style:N,children:[a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--up"),children:!ne&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full"),style:{height:ae(I),background:de}})}),a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--down"),children:ne&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"),style:{height:ae(I),background:de}})})]},re)}):C?a.jsx("div",{className:me("bar-chart__stack"),style:N,children:(()=>{const de=Be.reduce((I,ne,V)=>ne>0?V:I,-1);let re=j;return Be.map((I,ne)=>{if(I<=0)return null;const V=Math.min(re,I/y*j);return re-=V,a.jsx("div",{className:me("bar-chart__stack-segment"),style:{height:V,background:(p??[])[ne],borderRadius:ne===de?"6px 6px 0 0":void 0}},ne)})})()}):g!=null?a.jsx(a.Fragment,{children:[{v:Gt($.a),c:t},...f?[]:[{v:Gt($.b),c:o}]].map(({v:de,c:re},I)=>a.jsxs("div",{className:me("bar-chart__slot"),style:N,children:[a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--up"),children:de>=g&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full"),style:{height:ae(de),background:re}})}),a.jsx("div",{className:me("bar-chart__slot__half bar-chart__slot__half--down"),children:de<g&&a.jsx("div",{className:me("bar-chart__bar bar-chart__bar--full bar-chart__bar--down"),style:{height:ae(de),background:re}})})]},I))}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:te,background:t}}),!f&&a.jsx("div",{className:me("bar-chart__bar"),style:{...N,height:J,background:o}})]}))},R)})]}),a.jsx("div",{ref:B,className:me("bar-chart__x-axis"),children:e.map(($,R)=>{const Y=Aa($,g==null);return a.jsxs("span",{className:me(`bar-chart__x-axis__label${Y?" bar-chart__x-axis__label--future":""}`),children:[a.jsxs("span",{className:me("caption-1 bar-chart__x-axis__main"),children:[$.isToday&&a.jsx("span",{className:me("bar-chart__x-axis__today-dot"),style:{background:t}}),$.label]}),$.sublabel&&a.jsx("span",{className:"caption-1",children:$.sublabel})]},R)})})]})})}),G&&a.jsx(wa,{anchorRect:G.rect,title:G.title,items:G.items,showIndex:!1,closeOnOutsideClick:!1})]})}function vh({control:e}){const{t}=Ae.useTranslation(),{activeOptions:o,activeIdx:r,range:n,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:h}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return a.jsxs("div",{className:me("chart-section__controls"),children:[a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===o.length-1,onClick:l}),a.jsx($o,{value:n,onChange:i,options:o,size:vr,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),a.jsx(ve,{htmlType:"button",size:vr,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),a.jsx(Mo,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:b=>h(b),size:vr})]})}function xh(e,t,o,r=!0){const n=new Date(o.getFullYear(),o.getMonth(),o.getDate());return Array.from({length:7},(i,l)=>{const c=new Date(t);c.setDate(t.getDate()+l);const u=(e[is(c)]?.daily??[])[c.getDate()-1],d=u!=null&&Aa(u,r)||c>n;return{dt:c,entry:u,isFuture:d}})}function FD(e,t,o,r=!0){const{period:n,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=t,d=Ma(),h=d.getFullYear(),p=d.getMonth()+1,m=d.getDate();if(n==="month"){const x=e[i]??{weekly:[],daily:[]},_=_r(i),f=_?_.year:null,C=_?_.month1:null,g=f&&C?ha(f,C-1):1;return x.weekly.map((w,S)=>{const y=S+1;let k=w.label,B=!1,E=!1;if(f&&C){const A=g+S*7,j=new Date(f,C-1,A+6),D=j.getMonth()+1,N=j.getDate(),z=D===C?`${N}`:`${D}/${N}`;k=o("manager.chart.weekRange",{start:A,end:z});const O=new Date(h,p-1,m).getTime();B=O>=new Date(f,C-1,A).getTime()&&O<=j.getTime(),E=f>h||f===h&&(C>p||C===p&&A>m)}return{...w,label:k,sublabel:ox(o,y-1),isToday:B,future:w.future===!0||E||void 0,a:E?-1:w.a,b:E?0:w.b}})}const b=c.find(x=>x.value===l);if(!b)return[];const v=new Date(b.year,b.month-1,ha(b.year,b.month-1)+b.week*7);return xh(e,v,d,r).map(({dt:x,entry:_,isFuture:f})=>{const C=x.getMonth()+1,g=x.getDate(),w=x.getFullYear();return{label:C===b.month&&w===b.year?`${g}`:`${C}/${g}`,sublabel:u[x.getDay()]??"",future:f||void 0,a:f?-1:_&&_.a>0?_.a:0,b:f?0:_&&_.b>0?_.b:0,isToday:w===h&&C===p&&g===m,..._?.parts?{parts:f?_.parts.map(()=>0):_.parts}:{},..._?.partsB?{partsB:f?_.partsB.map(()=>0):_.partsB}:{}}})}const WD={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function ax({canvasHeight:e,fitHeight:t,focusableBars:o,size:r="medium",barWidth:n,titleKey:i,titleLevel:l,data:c,colorA:u,colorB:d,labelAKey:h,labelBKey:p,showTotal:m=!1,totalUnitKey:b,totalLabelKey:v,control:x,hideControls:_=!1,rate:f=!1,rateAgg:C="dayMean",tightMax:g=!1,avgMode:w=!1,totalFormat:S,series:y,seriesMode:k="stack",loading:B=!1,onDetail:E,headExtra:A,headSegment:j,icon:D,disc:N,onClick:z,cardAriaLabel:O,cardTooltip:U,detailSize:T=vr,barGap:W,baseline:G,className:X,inGrid:q=!1}){const{t:L}=Ae.useTranslation(),H={...WD[r],...e===void 0?null:{height:e}},Z=fh(c),oe=x??Z,P=s.useMemo(()=>FD(c,oe,L,G==null),[c,oe,L,G]),$=k==="group"&&!!y&&y.length>0;W!=null&&!$&&jt("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const R=s.useMemo(()=>{if(!f)return P;const I=oe.period==="month"?_r(oe.monthRange):null,ne=Ma(),V=y?.length??0,se=F=>{const le=[],pe=[],be=[];for(let _e=0;_e<V;_e++){let Re=0,ke=0,Ee=0;for(const De of F){const Ie=Gt(De.a[_e]),je=Gt(De.b[_e]);je<=0||(Re+=Ie,ke+=je,Ee+=Ie/je*100)}le.push(C==="weighted"?ke>0?Math.round(Re/ke*100):0:F.length?Math.round(Ee/F.length):0),pe.push(Re),be.push(ke)}return{pct:le,ra:pe,rb:be}};return P.map((F,le)=>{let pe=F.a===-1?-1:F.b>0?Math.round(F.a/F.b*100):0;if(I&&!Aa(F)){const _e=I.year,Re=I.month1-1,ke=xh(c,new Date(_e,Re,ha(_e,Re)+le*7),ne).filter(Ee=>!Ee.isFuture);if(C==="weighted"){let Ee=0,De=0;for(const{entry:Ie}of ke)Ie&&Ie.b>0&&(Ee+=Ie.a,De+=Ie.b);pe=De>0?Math.round(Ee/De*100):0}else pe=ke.length?Math.round(ke.reduce((Ee,{entry:De})=>Ee+(De&&De.b>0?De.a/De.b*100:0),0)/ke.length):0}let be=null;if($&&!Aa(F)){let _e;if(I){const ke=I.year,Ee=I.month1-1;_e=xh(c,new Date(ke,Ee,ha(ke,Ee)+le*7),ne).filter(De=>!De.isFuture).map(({entry:De})=>({a:De?.parts??[],b:De?.partsB??[]}))}else _e=[{a:F.parts??[],b:F.partsB??[]}];const Re=se(_e);be={parts:Re.pct,rawParts:Re.ra,rawPartsB:Re.rb}}return{...F,a:pe,b:F.a===-1?0:p&&F.parts&&F.parts[1]>0?Math.round(F.parts[0]/F.parts[1]*100):0,rawA:F.a===-1?-1:F.a,rawB:F.b,...be??{}}})},[P,f,C,p,oe.period,oe.monthRange,c,$,y?.length]),Y=s.useMemo(()=>{if(f||w){const ne=(oe.period==="week"?P:c[oe.monthRange]?.daily??[]).filter(se=>se.a!==-1);if(ne.length===0)return 0;if(f&&C==="weighted"){let se=0,F=0;for(const le of ne)le.b>0&&(se+=le.a,F+=le.b);return F>0?Math.round(se/F*100):0}const V=f?ne.reduce((se,F)=>se+(F.b>0?F.a/F.b*100:0),0):ne.reduce((se,F)=>se+(F.a>0?F.a:0),0);return Math.round(V/ne.length)}const I=oe.period==="month"?c[oe.monthRange]?.daily??[]:R;return G!=null?I.reduce((ne,V)=>ne+(Aa(V,!1)?0:Gt(V.a)+(p?Gt(V.b):0)),0):I.reduce((ne,V)=>ne+(V.a>0?V.a:0)+(p&&V.b>0?V.b:0),0)},[R,P,f,C,w,G,p,oe.period,oe.monthRange,c]),Q=y&&y.length>0?y.map(I=>({color:I.color,label:I.label})):[{color:u,label:L(h)},...p?[{color:d,label:L(p)}]:[]],ae=r==="small",te=r==="large",J=ae?"medium":te?"xLarge":"large",Be=X||void 0,de=i?L(i):"",re=de?L("trainingStatus.detailFor",{name:de,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):L("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return a.jsx(vi,{className:Be,size:J,inGrid:q,icon:D,disc:N,onClick:z,ariaLabel:O,tooltip:U,headSegment:j,headMenuItems:E?[{label:re,icon:"list",shortcut:"D",onClick:E,closeOnSelect:!0}]:void 0,title:L(i),titleLevel:l,headRight:ae?A??void 0:({collapsed:I})=>a.jsxs(a.Fragment,{children:[!_&&a.jsx(vh,{control:oe}),A,E&&!I&&a.jsx("span",{className:me("bar-chart__detail-btn"),children:a.jsx(ve,{htmlType:"button",size:T,type:"dot",icon:"list",ariaLabel:re,showTooltipInfo:re,onClick:E})})]}),legend:a.jsx(rs,{items:Q,className:"caption-1"}),fitBody:t,subRow:m&&a.jsx(a.Fragment,{children:f||w||v&&S?a.jsx(Cr,{label:ae?void 0:`${L(oe.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${L(v??h)}`,children:S?(S(Y).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((I,ne)=>/\d/.test(I)?a.jsx("span",{className:me(Ga(!te)),children:I},ne):a.jsx("span",{className:me("chart-section__total__unit body-3"),children:I},ne)):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:me(Ga(!te)),children:Y}),b&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(b)})]})}):a.jsxs(Cr,{children:[a.jsx("span",{className:me(Ga(!te)),children:Y}),a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(h)}),b&&a.jsx("span",{className:me("chart-section__total__unit body-3"),children:L(b)})]})}),children:B?a.jsx("div",{className:me("bar-chart__wrap bar-chart__loading"),"aria-busy":"true",children:a.jsx("div",{className:me("bar-chart__inner"),children:a.jsxs("div",{className:me("bar-chart__area bar-chart__area--loading"),children:[a.jsx("div",{className:me("bar-chart__plot bar-chart__plot--loading"),style:{height:H.height},children:a.jsx(sr,{size:32})}),a.jsx("div",{className:me("bar-chart__x-axis"),"aria-hidden":"true",children:a.jsxs("span",{className:me("bar-chart__x-axis__label"),children:[a.jsx("span",{className:me("caption-1 bar-chart__x-axis__main"),children:"\xA0"}),R.some(I=>!!I.sublabel)&&a.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):a.jsx(ID,{focusableBars:o,data:R,colorA:u,colorB:p?d:void 0,labelA:L(h),labelB:p?L(p):void 0,barWidth:n??H.barWidth,barGap:W,baseline:G,height:H.height,fitHeight:t,maxOverride:f?100:void 0,tightMax:g,seriesColors:y?.map(I=>I.color),seriesLabels:y?.map(I=>I.label),rateLabels:f?{total:L("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:L("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:$})})}var GD=".ihabdevteam-core-scope .line-chart{display:block;height:auto;overflow:visible;width:100%}.ihabdevteam-core-scope .line-chart__axis-title,.ihabdevteam-core-scope .line-chart__tick{fill:var(--color-gray);font-size:12px}.ihabdevteam-core-scope .line-chart__grid{stroke:var(--color-whiteLine);stroke-width:1}.ihabdevteam-core-scope .line-chart__line{stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ihabdevteam-core-scope .line-chart__dot-hit{fill:transparent}.ihabdevteam-core-scope .line-chart__dot-main{stroke-width:1.5}.ihabdevteam-core-scope .line-chart__dot-main.is-hollow{fill:var(--color-white)}.ihabdevteam-core-scope .line-chart__tip{max-width:220px;white-space:normal}.ihabdevteam-core-scope .line-chart__dot{cursor:default}";ue(GD);const Ch=120,HD={left:38,right:16,top:26,bottom:24};function rx({points:e=[],range:t,ticks:o=[],axisTitle:r,color:n,height:i=156,fallbackWidth:l=320,insets:c,overlay:u,ariaLabel:d,className:h}){const[p,m]=s.useState(null),[b,v]=s.useState(null);s.useEffect(()=>{if(!b)return;const T=G=>m(Math.round(G)||null);if(T(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const W=new ResizeObserver(([G])=>T(G.contentRect.width));return W.observe(b),()=>{W.disconnect()}},[b]);const{payload:x,anchorRect:_,openAfterDelay:f,close:C}=_p(Ch),g=s.useCallback((T,W)=>{T&&f(T,W.getBoundingClientRect())},[f]),w=p??l,S=i,{left:y,right:k,top:B,bottom:E}={...HD,...c},[A,j]=t,D=T=>j===A?y:y+(w-y-k)*(T-A)/(j-A),N=T=>B+(S-B-E)*(100-T)/100,z={x:D,y:N,plot:{left:y,right:w-k,top:B,bottom:S-E,width:Math.max(0,w-y-k),height:Math.max(0,S-B-E)}},O=e.filter(T=>!T.hollow),U=n??"var(--color-main)";return a.jsxs(a.Fragment,{children:[a.jsxs("svg",{ref:v,className:Se("line-chart",h),viewBox:`0 0 ${w} ${S}`,role:"img","aria-label":d??e.map(T=>T.description).filter(Boolean).join(", "),children:[r&&a.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(T=>a.jsxs("g",{children:[a.jsx("line",{className:"line-chart__grid",x1:y,x2:w-k,y1:N(T),y2:N(T)}),a.jsxs("text",{className:"line-chart__tick",x:y-6,y:N(T)+4,textAnchor:"end",children:[T,"%"]})]},T)),u?.(z),o.map(T=>a.jsx("text",{className:"line-chart__tick",x:D(T.x),y:S-5,textAnchor:"middle",children:T.label},T.x)),O.length>1&&a.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:U,points:O.map(T=>`${D(T.x)},${N(T.pct)}`).join(" ")}),e.map(T=>a.jsxs("g",{className:"line-chart__dot",onPointerEnter:W=>g(T.description,W.currentTarget),onPointerLeave:C,children:[a.jsx("circle",{className:"line-chart__dot-hit",cx:D(T.x),cy:N(T.pct),r:12}),a.jsx("circle",{className:Se("line-chart__dot-main",T.hollow&&"is-hollow"),cx:D(T.x),cy:N(T.pct),r:4,stroke:U,fill:T.hollow?void 0:U})]},T.x))]}),x!=null&&a.jsx(fo,{anchorRect:_,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:x,children:x})]})}var VD=".ihabdevteam-core-scope .game-intro{align-items:center;display:flex;flex-direction:column;gap:14px;padding:0;text-align:center}.ihabdevteam-core-scope .game-intro__icon{font-size:56px;font-size:var(--game-intro-icon,56px)}.ihabdevteam-core-scope .game-intro__title{color:var(--color-onDark-title);margin:0}.ihabdevteam-core-scope .game-intro__description{color:var(--color-onDark-text);line-height:1.75;margin:0}.ihabdevteam-core-scope .game-intro__tips{background:var(--color-onDark-surface);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-onDark-text);display:flex;flex-direction:column;gap:4px;padding:var(--spacing-l);text-align:left;width:100%}.ihabdevteam-core-scope .game-intro__tips-title{color:var(--color-onDark-muted);letter-spacing:.06em;margin-bottom:4px}.ihabdevteam-core-scope .game-intro__tip{align-items:flex-start;display:flex;gap:var(--spacing-xs)}";ue(VD);function nx({icon:e,iconSize:t=56,title:o,titleClass:r="h2",description:n,tipGroups:i,start:l,className:c}){return a.jsxs("div",{className:Se("game-intro",c),children:[e!=null&&a.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),a.jsx("h2",{className:Se("game-intro__title",r),children:o}),n!=null&&a.jsx("p",{className:"game-intro__description body-3",children:n}),i?.map((u,d)=>a.jsxs("div",{className:"game-intro__tips",children:[u.title!=null&&a.jsx("span",{className:"game-intro__tips-title body-3",children:u.title}),u.tips.map((h,p)=>a.jsxs("span",{className:"game-intro__tip body-3",children:[h.icon!=null&&a.jsx("span",{"aria-hidden":"true",children:h.icon}),a.jsx("span",{children:h.text})]},p))]},d)),l&&a.jsx(ve,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const ix=(e,t,o)=>{const r=new Date(Date.UTC(e,t,o));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},lx=(e,t,o,r)=>({from:rl(e,t,o),to:new Date(rl(e,t,o+r).getTime()-1),fromYmd:ix(e,t,o),toYmd:ix(e,t,o+r-1)});function sx(e,t=0){if(e.period==="month"){const n=_r(e.monthRange),i=Ma(),l=n?n.year:i.getFullYear(),c=(n?n.month1:i.getMonth()+1)-1+t,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return lx(l,c,1,u)}const o=e.weekRanges.find(n=>n.value===e.weekRange);if(!o){const n=new Date,i=Io();return{from:n,to:n,fromYmd:i,toYmd:i}}const r=ha(o.year,o.month-1);return lx(o.year,o.month-1,r+(o.week+t)*7,7)}var UD=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ue(UD);const _h={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function cx(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function ux({done:e,total:t,segments:o,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof n=="number"?n:_h[n].diameter,h=i??(typeof n=="number"?12:_h[n].strokeWidth),p=d/2,m=(d-h)/2,b=2*Math.PI*m;if(o&&o.length>0){const f=o.reduce((C,g)=>{const w=C.length>0?C[C.length-1].acc:0,S=Number.isFinite(g.ratio)?g.ratio:0,y=Math.max(0,Math.min(S,1-w));return C.push({color:g.color,rotate:-90+w*360,dash:b*y,acc:w+y}),C},[]);return a.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:a.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),f.map((C,g)=>C.dash>0&&a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:C.color,strokeWidth:h,strokeDasharray:`${C.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},g))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,x=b*v,_=b-x;return a.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[a.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),v>0&&a.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:r,strokeWidth:h,strokeDasharray:`${x} ${_}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&a.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[a.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:cx(v)}),!u&&a.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||n==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function dx({titleKey:e,titleLevel:t,headRight:o,icon:r,showTotal:n,totalLabelKey:i,legend:l,loading:c,className:u,inGrid:d=!1,onClick:h,ariaLabel:p,tooltip:m,...b}){const{t:v}=Ae.useTranslation();if(!e)return a.jsx(ux,{...b});const x=(b.total??0)>0?cx(Math.min((b.done??0)/b.total,1)):0,_=b.size==="small",f=typeof b.size=="number"?b.size:_h[b.size??"medium"].diameter,C=b.size==="large",g=_?"medium":C?"xLarge":"large",w=u||void 0,S=r&&a.jsx("span",{className:me("chart-section__head-icon"),children:a.jsx(nt,{icon:r,className:me("chart-section__head-icon-inner")})});return a.jsx(vi,{className:w,size:g,inGrid:d,onClick:h,ariaLabel:p,tooltip:m,title:v(e),titleLevel:t,headRight:S||(_?void 0:o),legend:l&&a.jsx(rs,{items:l}),subRow:n&&a.jsxs(Cr,{label:!_&&i?v(i):void 0,children:[a.jsx("span",{className:me(Ga(_)),children:x}),a.jsx("span",{className:me("chart-section__total__unit body-3"),children:"%"})]}),children:c?a.jsx("div",{className:me("ring-chart-section-body ring-chart-section-body--offset"),children:a.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:f,height:f},"aria-busy":"true",children:a.jsx(sr,{size:32})})}):a.jsx("div",{className:me("ring-chart-section-body ring-chart-section-body--offset"),children:a.jsx(ux,{...b,hideCenter:b.hideCenter??_})})})}function px({label:e,value:t,change:o,changeType:r,icon:n,tooltip:i,onClick:l,size:c="small",bodyAlign:u="bottom",children:d}){return a.jsx(vi,{type:"stat",title:e,totalNum:t,change:o,changeType:r,icon:n,tooltip:i,onClick:l,size:c,bodyAlign:u,children:d})}var qD='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}@media (forced-colors:active){.ihabdevteam-core-scope .slider{border:1px solid CanvasText}}';ue(qD);function yh({value:e,onChange:t,min:o=0,max:r=100,step:n=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:h,label:p,formatValue:m,labelPos:b,labelAlign:v="right",showMinMax:x=!1,minLabel:_,maxLabel:f,showBgTick:C=!1,showFillTick:g=!1,tickStep:w,tickShape:S="dot"}){t&&!u&&jt("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const y=Math.min(r,Math.max(o,e)),k=r>o?(y-o)/(r-o):0,B=i==="vertical",E=!t,A=Z=>t?.(Number(Z.target.value)),j=typeof d=="number"?`${d}px`:d,D={"--slider-ratio":String(k),"--slider-thumb":`${l}px`,...j?B?{height:j}:{width:j}:{}},N=w??n,z=(C||g)&&N>0&&r>o?Math.floor((r-o)/N+1e-6):0;if(z>0&&z<=100){const Z=S!=="dash",oe=Q=>Z?`radial-gradient(circle, ${Q} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`,P=Z?"2px":"4px",$=[],R=[],Y=[];for(let Q=0;Q<=z;Q++){const ae=Q*N/(r-o);if(ae>1+1e-6)break;const te=`${((B?1-ae:ae)*100).toFixed(4)}%`,J=ae<=k+1e-6;if(J?!g:!C)continue;const Be=J?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";$.push(oe(Be)),R.push(B?`${P} var(--slider-thumb)`:`var(--slider-thumb) ${P}`),Y.push(B?`center ${te}`:`${te} center`)}$.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),R.push("100% 100%"),Y.push("0 0"),D.backgroundImage=$.join(", "),D.backgroundSize=R.join(", "),D.backgroundPosition=Y.join(", "),D.backgroundRepeat="no-repeat"}const O=m?m(y):p==="percent"?`${Math.round(r>o?(y-o)/(r-o)*100:0)}%`:p==="count"?`${y} / ${r}`:y===o&&_?_:y===r&&f?f:void 0,U=a.jsx("input",{type:"range",className:Se("slider",`slider--${i}`,E&&"slider--static",!p&&!x&&h),min:o,max:r,step:n,value:y,disabled:c,readOnly:E,tabIndex:E?-1:void 0,"aria-label":u,"aria-valuetext":O,"aria-orientation":i,onChange:A,style:D});if(!p&&!x)return U;const T=a.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??o}),W=a.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??r}),G=x?a.jsxs("div",{className:Se("slider-track-group",`slider-track-group--${i}`,!p&&h),children:[B?W:T,U,B?T:W]}):U;if(!p)return G;const X=b??(B?"bottom":"right"),q=`${Math.round(r>o?(y-o)/(r-o)*100:0)}%`,L=m?m(y):p==="percent"?q:p==="count"?`${y} / ${r}`:String(y),H=a.jsx("span",{className:"slider-wrap__value body-3b",children:L});return a.jsxs("div",{className:Se("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${X}`,`slider-wrap--align-${v}`,h),children:[G,H]})}var YD='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ue(YD);const KD=.86,XD=250,wh=(e,t,o,r)=>Math.round(Math.min(r,Math.max(o,e-t))),kh=(e,t,o,r)=>{const n=wh(e,t,o,r);return`${n<0?"-":"+"}${Math.abs(n)} dB`};function ss({analyser:e,audioElement:t,orientation:o="horizontal",length:r,label:n,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:h=25,className:p,ariaLabel:m}){const b=s.useRef(null),v=s.useRef(null),x=s.useRef(null),_=s.useRef(null),[f,C]=s.useState(null);s.useEffect(()=>{const y=U=>{const T=kh(U,u,d,h);x.current&&(x.current.textContent=T);const W=b.current;W&&(W.setAttribute("aria-valuenow",String(wh(U,u,d,h))),W.setAttribute("aria-valuetext",T))},k=e??mc(t)??(f&&f.el===t?f.node:null),B=v.current;if(!k||!B){B?.style.setProperty("--meter-level","0"),y(c);let U=!1;return!e&&t&&Lr(t).then(T=>{!U&&T&&C({el:t,node:T})}),()=>{U=!0}}An();const E=new Float32Array(k.fftSize);let A=0,j=0,D=0,N=0,z=null;const O=U=>{const T=bc(k,E);A=T>A?T:A*KD;const W=A>1e-5?20*Math.log10(A):-1/0,G=Math.max(c,W),X=G-u,q=Math.min(1,Math.max(0,(X-d)/(h-d)));if(B.style.setProperty("--meter-level",q.toFixed(3)),j+=G,D+=1,U-N>=XD){const L=j/D;z=z==null?L:z*.6+L*.4,y(z),j=0,D=0,N=U}_.current=requestAnimationFrame(O)};return _.current=requestAnimationFrame(O),()=>{_.current!=null&&cancelAnimationFrame(_.current),_.current=null}},[e,t,f,c,u,d,h]);const g=typeof r=="number"?`${r}px`:r,w=a.jsx("div",{className:"audio-meter__track",style:g?o==="vertical"?{height:g}:{width:g}:{},children:a.jsx("div",{ref:v,className:"audio-meter__fill"})}),S=i??(o==="vertical"?"bottom":"right");return a.jsxs("div",{ref:b,className:Se("audio-meter",`audio-meter--${o}`,n&&`audio-meter--label-${S}`,n&&`audio-meter--align-${l}`,p),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":h,"aria-valuenow":wh(c,u,d,h),"aria-valuetext":kh(c,u,d,h),children:[w,n&&a.jsx("span",{ref:x,className:"audio-meter__value caption-2",children:kh(c,u,d,h)})]})}const hx=260;function Bh({message:e,position:t,duration:o,onClose:r}){const[n,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(n);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=n},[n]);const h=s.useRef(null),p=s.useRef(""),m=s.useRef(r);s.useEffect(()=>{m.current=r});const b=o,v=s.useRef(null),x=s.useRef(0),_=s.useRef(0),f=s.useRef(!1),C=s.useRef(null),g=s.useRef(null),w=s.useRef(null),S=s.useRef(null),y=s.useRef(()=>{});y.current=E=>{E<0||(x.current=Date.now(),_.current=E,v.current=setTimeout(()=>{v.current=null,i(!1),C.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},hx)},E))};const k=s.useCallback(()=>{f.current||!v.current||(f.current=!0,clearTimeout(v.current),v.current=null,_.current=Math.max(0,_.current-(Date.now()-x.current)))},[]),B=s.useCallback(()=>{f.current&&(f.current=!1,y.current(_.current))},[]);return s.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(d.current)return b>0&&!v.current&&(f.current?_.current=b:y.current(b)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),C.current&&(clearTimeout(C.current),C.current=null)};const E=()=>{const A=h.current;if(A)try{A.classList.remove("is-visible"),A.style.transition="none",t==="top"?A.style.transform="translateX(-50%) translateY(-16px)":A.style.transform="translateX(-50%) translateY(16px)",A.style.opacity="0",A.offsetWidth,A.style.transition="",A.classList.add("is-visible"),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{S.current=null;try{A.style.opacity="",A.style.transform="",A.style.transition=""}catch{}},60)}catch{}};u.current?(E(),i(!0)):(c(!0),g.current=requestAnimationFrame(()=>{w.current=requestAnimationFrame(()=>{E(),i(!0)})})),b>0&&(f.current=!1,y.current(b))}else i(!1),C.current=setTimeout(()=>c(!1),hx);return p.current=e,()=>{v.current&&clearTimeout(v.current),C.current&&clearTimeout(C.current),g.current&&cancelAnimationFrame(g.current),w.current&&cancelAnimationFrame(w.current),S.current&&clearTimeout(S.current),v.current=null,C.current=null,g.current=null,w.current=null,S.current=null}},[e,b,t]),{mounted:l,showing:n,popupRef:h,pause:k,resume:B}}var ZD=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;color:var(--color-on-brand-fill,#fff);display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;white-space:pre-line}.ihabdevteam-core-scope .toast__text{-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff;color:var(--color-on-brand-fill,#fff)}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast:not(.is-visible) .toast__inner{pointer-events:none}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ue(ZD);function yr({message:e="",position:t="top",type:o="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Bh({message:e,position:t,duration:n,onClose:r}),h=s.useRef(null),[p,m]=s.useState(!1);if(s.useEffect(()=>{l?m(!0):i||m(!1)},[l,i]),!i)return null;const b=o==="notice"||o==="warning"?o:"normal",v=a.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:x=>{h.current=x.pointerType},onMouseEnter:()=>{h.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:a.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":p||l?void 0:!0,children:a.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?Do.createPortal(v,document.body):v}var JD='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ue(JD);const QD=24;function mx({value:e,max:t=100,size:o=8,color:r,trackColor:n,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:h}){const p=Number.isFinite(t)&&t>0?t:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),b=m/p*100,v=Number.isFinite(t)&&t>0?t:0,x=c??(o>=QD?"inside":"bottom"),_=x==="center"?"inside":x,f=_==="inside"&&(u==="left"?b>=15:u==="center"?b>=50:b>=85),C={};return r&&(C["--progress-bar-fill"]=r),n&&(C["--progress-bar-track"]=n),a.jsxs("div",{className:Se("progress-bar",`progress-bar--${o}`,`progress-bar--label-${_}`,i&&`progress-bar--align-${u}`,i&&f&&"progress-bar--label-on-fill",h),style:C,children:[a.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(m):i==="percent"?void 0:i==="raw"?String(m):`${m} / ${v}`:void 0,"aria-label":d,children:a.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&a.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(m):`${m} / ${v}`})]})}var ej=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff;color:var(--color-on-brand-fill,#fff)}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff;color:var(--color-on-brand-fill,#fff)}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{flex-wrap:wrap;gap:var(--spacing-xs);max-width:100%;min-width:0}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}@media (forced-colors:active){.ihabdevteam-core-scope .progress-indicator-dot{background:Canvas;border:1px solid CanvasText;color:CanvasText;forced-color-adjust:none}.ihabdevteam-core-scope .progress-indicator-dot.done{background:CanvasText;color:Canvas}.ihabdevteam-core-scope .progress-indicator-dot.active{background:Highlight;border-color:Highlight;color:HighlightText}}";ue(ej);const bx={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},tj="rgba(255, 255, 255, 0.16)";function Ah({max:e,index:t,inactiveBg:o,inactiveColor:r,transparent:n,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=Ae.useTranslation(),d=go("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const h=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=c??u("progress.steps",{current:h+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};if(o&&(m["--pi-inactive-bg"]=o),r&&(m["--pi-inactive-color"]=r),n&&(o||(m["--pi-inactive-bg"]=tj),r||(m["--pi-inactive-color"]="var(--color-white)")),i==="dot")return a.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&a.jsx("span",{style:bx,children:p}),Array.from({length:e}).map((v,x)=>a.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${x<h?" done":x===h?" active":""}`},x))]});const b=l?a.jsx("span",{role:"status",style:bx,children:p}):null;return d?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":p,children:a.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[h+1," / ",e]})}),b]}):a.jsxs(a.Fragment,{children:[b,a.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":p,children:Array.from({length:e}).map((v,x)=>a.jsx("span",{role:"listitem","aria-current":x===h?"step":void 0,className:`progress-indicator-dot ${x<h?" done":x===h?" active":""} body-3`,children:x+1},x))})]})}function oj(e){if(!e)return[];const t=[];let o=0,r="";for(const n of e.trim()){if(n==="("?o++:n===")"&&o--,/\s/.test(n)&&o===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var aj=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header--clickable{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__chevron[aria-expanded=true]:not(:hover):not(:focus-visible){background:transparent}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{align-items:stretch;display:flex;position:relative}.ihabdevteam-core-scope .table-fields-strip>.table-fields{flex:1 0 auto}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px;padding-right:var(--table-reset-gutter,40px)}.ihabdevteam-core-scope .table-wrap .table-row.table-row--empty,.ihabdevteam-core-scope .table-wrap .table-row.table-row--loading{justify-content:flex-start;padding:0}.ihabdevteam-core-scope .table-row--empty>.table-row__full-cell,.ihabdevteam-core-scope .table-row--loading>.table-row__full-cell{align-items:center;box-sizing:border-box;display:flex;justify-content:center;left:0;position:sticky;width:100%;width:var(--table-visible-w,100%)}.ihabdevteam-core-scope .table-row--empty>.table-row__full-cell{padding:0 20px;text-align:center}.ihabdevteam-core-scope .table-fields__reset-dock{align-self:center;flex:0 0 0;overflow:visible;position:sticky;right:0;width:0}.ihabdevteam-core-scope .table-fields__reset{background:var(--color-white);border-radius:var(--radius-card);position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols-override,var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr))))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols-override,var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr))))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-row-expand__cell,.ihabdevteam-core-scope .table-row__full-cell{display:contents}.ihabdevteam-core-scope .table-row-hint{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .table-wrap .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap .table-fields,.ihabdevteam-core-scope .table-wrap .table-header{min-height:57px}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{min-height:56px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap .table-row--empty,.ihabdevteam-core-scope .table-wrap .table-row--loading{min-height:56px}";ue(aj);var rj=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}.ihabdevteam-core-scope .table-cell__row-button{align-items:center;align-self:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:inherit;cursor:pointer;display:flex;font:inherit;margin:0;min-width:0;overflow:hidden;overflow-wrap:inherit;padding:0;text-align:inherit;width:100%;word-break:inherit}";ue(rj);function nj(e,t,o=0){const r=Array.from({length:Math.max(0,t)},()=>0);for(const n of e){let i=0;for(const l of n){if(i>=r.length)break;const c=gx(l.span),u=Math.min(c,r.length-i);if(u===1)r[i]=Math.max(r[i],l.width);else{const d=Math.max(0,(l.width-o*(u-1))/u);for(let h=i;h<i+u;h++)r[h]=Math.max(r[h],d)}i+=u}}return r}function gx(e){const t=typeof e=="number"?e:parseInt(String(e??""),10);return Number.isFinite(t)&&t>=1?Math.floor(t):1}function ij(e,t){const o=/span\s+(\d+)/.exec(`${e??""} ${t??""}`);return o?gx(parseInt(o[1],10)):1}function lj(e,t){const{isFixed:o,floorOf:r,containerWidth:n}=t;if(!(n>0))return!1;const i=e.reduce((l,c,u)=>l+(o(u)?c:0),0);return e.reduce((l,c,u)=>l+(o(u)?0:r(u)),0)>n-i}function sj(e,t){const{isFixed:o,floorOf:r,containerWidth:n}=t,i=e.reduce((p,m,b)=>p+(o(b)?m:0),0),l=e.reduce((p,m,b)=>p+(o(b)?0:m),0),c=n-i;if(!(n>0&&l>0&&c>0))return[...e];const u=c/l,d=e.map((p,m)=>o(m)?p:Math.max(r(m),Math.round(p*u))),h=Math.round(c-d.reduce((p,m,b)=>p+(o(b)?0:m),0));if(h!==0){let p=-1;d.forEach((m,b)=>{!o(b)&&(p<0||m>d[p])&&(p=b)}),p>=0&&(d[p]=Math.max(r(p),d[p]+h))}return d}const cj=16;function uj(e,t=cj){return e.map(o=>{const r=o.sortable&&!o.sorted;return Math.max(o.declaredMin,Math.ceil(o.headWidth+(r?t:0)))})}var dj='.ihabdevteam-core-scope .table-field{color:var(--color-gray);padding:0 16px}.ihabdevteam-core-scope .table-field,.ihabdevteam-core-scope .table-field__button{align-items:center;display:flex;gap:0;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field__button{align-self:stretch;background:none;border:0;color:inherit;cursor:pointer;flex:1 1 auto;font:inherit;margin:0;padding:0}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}.ihabdevteam-core-scope .table-field.table-col--right{justify-content:flex-end;text-align:right}.ihabdevteam-core-scope .table-field.table-col--center{justify-content:center;text-align:center}.ihabdevteam-core-scope .table-cell.table-col--right{justify-content:flex-end;text-align:right}.ihabdevteam-core-scope .table-cell.table-col--center{justify-content:center;text-align:center}';ue(dj);const fx="declared";function pj({children:e,className:t,style:o,span:r,rowLabel:n,onRowClick:i}){const l=r&&r>1?{gridColumn:`span ${r}`,...o}:o;return a.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:l,"aria-colspan":r&&r>1?r:void 0,children:n&&i?a.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":n,children:e}):e})}function Sh({variant:e="default",children:t,className:o,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d,colSpan:h,describedBy:p,rowHasButton:m}){const b=s.useCallback(v=>{n&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),n())},[n]);return e==="loading"?a.jsx("div",{role:"presentation",className:"table-row-wrap",children:a.jsx("div",{role:"row",className:"table-row table-row--loading",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row__full-cell",children:a.jsx(sr,{size:28})})})}):e==="empty"?a.jsx("div",{role:"presentation",className:"table-row-wrap",children:a.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row__full-cell",children:t})})}):a.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[a.jsx("div",{className:o?`table-row ${o}`:"table-row",draggable:r,onClick:n,onKeyDown:n?b:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:"row",tabIndex:n&&!m?0:void 0,"aria-describedby":n&&!m?p:void 0,children:t}),d&&a.jsx("div",{role:"row",className:"table-row-expand",children:a.jsx("div",{role:"cell","aria-colspan":h,className:"table-row-expand__cell",children:d})})]})}function hj({dir:e}){return a.jsx(e==="asc"?qm:Um,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function mj({children:e,onClick:t,className:o,sortDir:r,ariaSort:n,onResizeStart:i}){const l=a.jsxs(a.Fragment,{children:[e,r&&a.jsx(hj,{dir:r})]});return a.jsxs("div",{onClick:t,role:"columnheader","aria-sort":n,className:Se("table-field body-3",o,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?a.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&a.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:c=>c.stopPropagation(),"aria-hidden":"true"})]})}function vx(e){return e&&e!=="left"?`table-col--${e}`:void 0}function cs({fields:e=[],sort:t,sortable:o=!0,headerGroups:r,items:n=[],renderRow:i,onRowClick:l,isRowClickable:c,onRowMouseEnter:u,onRowMouseLeave:d,onRowDragStart:h,onRowDragEnd:p,draggingId:m,gridTemplateColumns:b,mobileGridTemplateColumns:v,resizable:x=!0,resizeMode:_="grow",resizeStorageKey:f,refitOn:C,title:g,icon:w,count:S,collapsed:y=!1,onToggleCollapse:k,headerActions:B,empty:E,loading:A,dragOver:j=!1,onDragOver:D,onDragLeave:N,onDrop:z,renderExpandedRow:O,expandedId:U}){const T=Eo,{t:W}=Ae.useTranslation(),G=s.useId(),X=`table-title-${G}`,q=`table-row-hint-${G}`,[L,H]=s.useState(null),Z=s.useCallback((ee,xe=0)=>{if(!(ee==null||typeof ee=="boolean")){if(typeof ee=="string"||typeof ee=="number")return String(ee);if(!(xe>6)){if(Array.isArray(ee)){const He=ee.map(Xe=>Z(Xe,xe+1)).filter(Boolean);return He.length?He.join(""):void 0}if(s.isValidElement(ee))return Z(ee.props.children,xe+1)}}},[]),oe=s.useCallback((ee,xe)=>{const He=e[xe];if(!He)return;if(He.sortValue)return He.sortValue(ee);if(He.sortKey)return ee[He.sortKey];const Xe=i(ee)[xe]?.content;return typeof Xe=="string"||typeof Xe=="number"?Xe:Z(Xe)},[e,i,Z]),P=!t&&o&&!e.some(ee=>ee.sortDir!==void 0||ee.onClick),$=s.useCallback(ee=>{const xe=e[ee];if(!xe||xe.sortable===!1)return!1;if(xe.sortValue||xe.sortKey)return!0;const He=n[0];return He!==void 0&&oe(He,ee)!==void 0},[e,n,oe]);s.useEffect(()=>{if(!P||n.length===0)return;const ee=e.filter((xe,He)=>xe.sortable!==!1&&!$(He));ee.length!==0&&jt(`Table/sort-mute/${ee.map(xe=>String(xe.label??"?")).join(",")}`,`[ihab/Table] \uC815\uB82C\uC5D0\uC11C \uBE60\uC9C4 \uC5F4\uC774 \uC788\uC2B5\uB2C8\uB2E4: ${ee.map(xe=>`'${String(xe.label??"?")}'`).join(" \xB7 ")}`,`
849
849
  \uCE78\uC5D0 \uAE00\uC790\uAC00 \uC5C6\uC5B4(\uB124\uBAA8\xB7\uADF8\uB9BC\xB7\uB2E8\uCD94 \uAC19\uC740 \uB9C8\uB514) \uBB34\uC5C7\uC73C\uB85C \uC138\uC6B8\uC9C0 \uC54C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`,"\n\uADF8 \uC5F4\uC758 `sortValue` \uB97C \uC8FC\uC138\uC694 \u2014 \uC608: `sortValue: (w) => !!w.image`.","\n\uC77C\uBD80\uB7EC \uC548 \uC138\uC6B0\uB294 \uC5F4\uC774\uBA74 `sortable: false` \uB97C \uC801\uC73C\uBA74 \uC774 \uC54C\uB9BC\uC774 \uBA4E\uC2B5\uB2C8\uB2E4.")},[P,e,n,$]);const R=s.useMemo(()=>t?e.map(ee=>{if(!ee.sortKey||ee.sortDir!==void 0)return ee;const xe=t.field(String(ee.label??""),ee.sortKey);return{...ee,sortDir:xe.sortDir,onClick:ee.onClick??xe.onClick}}):P?e.map((ee,xe)=>$(xe)?{...ee,sortDir:L?.index===xe?L.asc?"asc":"desc":null,onClick:()=>H(He=>He?.index===xe?{index:xe,asc:!He.asc}:{index:xe,asc:!0})}:ee):e,[e,t,P,L,$]),Y=s.useMemo(()=>{if(!P||!L)return n;const{index:ee,asc:xe}=L;return[...n].sort((He,Xe)=>Tl(oe(He,ee),oe(Xe,ee),xe))},[n,P,L,oe]),Q=go("(max-width: 767px)"),ae=v&&Q?v:null,te=x&&!Q,J=s.useRef(te);J.current=te;const Be=48,de=40,re=s.useRef(()=>Be),I=s.useRef(null),ne=f?`table-cols:${f}`:null,V=s.useRef(null),se=s.useRef(null),F=s.useRef(null),le=s.useRef(null),[pe,be]=s.useState(!1),[_e,Re]=s.useState(0),ke=s.useCallback(()=>{const ee=F.current;if(!ee)return;const xe=le.current,He=V.current;if(xe&&(xe.style.minWidth="",He)){const Xe=He.scrollWidth,lt=J.current?de:0;xe.style.minWidth=Xe>ee.clientWidth+1?`${Xe+lt}px`:""}be(ee.scrollWidth>ee.clientWidth+1),Re(ee.clientWidth),ee.scrollWidth>ee.clientWidth+1?ee.style.setProperty("--table-visible-w",`${ee.clientWidth}px`):ee.style.removeProperty("--table-visible-w")},[]),Ee=s.useCallback((ee,xe)=>{const He=ee.current;He&&se.current&&se.current.unobserve(He),ee.current=xe,xe?(!se.current&&typeof ResizeObserver<"u"&&(se.current=new ResizeObserver(()=>ke())),se.current?.observe(xe)):!F.current&&!le.current&&(se.current?.disconnect(),se.current=null),ke()},[ke]),De=s.useCallback(ee=>Ee(F,ee),[Ee]),Ie=s.useCallback(ee=>Ee(le,ee),[Ee]);s.useEffect(()=>{ke()}),s.useEffect(()=>{if(typeof window>"u")return;const ee=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>ke()):null;return window.addEventListener("resize",ke),()=>{ee!=null&&cancelAnimationFrame(ee),window.removeEventListener("resize",ke)}},[ke]);const je=s.useRef(()=>!1),at=s.useRef([]),Ct=s.useRef(null),Fe=ee=>{if(!ee||typeof window>"u")return null;try{const xe=JSON.parse(window.localStorage.getItem(ee)??"null");return Array.isArray(xe)&&xe.length>0&&xe.every(He=>typeof He=="number"&&Number.isFinite(He)&&He>0)?xe:null}catch{return null}},[Ue,rt]=s.useState(()=>Fe(ne)),[Ge,Je]=s.useState(ne),[st,_t]=s.useState(()=>Fe(ne)!==null);if(Ge!==ne){Je(ne);const ee=Fe(ne);rt(ee),_t(ee!==null)}const bt=s.useRef(Ue);s.useEffect(()=>{bt.current=Ue},[Ue]);const At=s.useCallback(ee=>{const xe=Ct.current;if(!xe)return;const He=bt.current;if(He){const Xe=[...He],lt=()=>Be;if(xe.next!=null&&xe.startWNext!=null){const ht=ee.clientX-xe.startX,Mt=Math.max(lt()-xe.startW,Math.min(xe.startWNext-lt(),ht));Xe[xe.index]=xe.startW+Mt,Xe[xe.next]=xe.startWNext-Mt}else Xe[xe.index]=Math.max(lt(),xe.startW+(ee.clientX-xe.startX));bt.current=Xe,rt(Xe)}},[]),dt=s.useCallback(()=>{if(Ct.current=null,window.removeEventListener("pointermove",At),window.removeEventListener("pointerup",dt),window.removeEventListener("pointercancel",dt),document.body.style.cursor="",document.body.style.userSelect="",ne&&bt.current)try{window.localStorage.setItem(ne,JSON.stringify(bt.current))}catch{}},[At,ne]),Qt=s.useCallback((ee,xe)=>{xe.preventDefault(),xe.stopPropagation();const He=V.current;if(!He)return;const Xe=Array.from(He.children).map(ht=>ht.getBoundingClientRect().width),lt=_==="fit"?R.findIndex((ht,Mt)=>Mt>ee&&ht.resizable!==!1):-1;Ct.current=lt>=0?{index:ee,startX:xe.clientX,startW:Xe[ee],next:lt,startWNext:Xe[lt]}:{index:ee,startX:xe.clientX,startW:Xe[ee]},bt.current=Xe,rt(Xe),_t(!0),window.addEventListener("pointermove",At),window.addEventListener("pointerup",dt),window.addEventListener("pointercancel",dt),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[At,dt,_,R]),St=s.useCallback(()=>{const ee=V.current,xe=ee?.closest(".table-wrap");if(!ee||!xe)return null;const He=xe.style.getPropertyValue("--table-grid-cols");xe.style.setProperty("--table-grid-cols",R.map(()=>"max-content").join(" "));const Xe=Array.from(xe.querySelectorAll(".table-row")).filter(It=>!It.classList.contains("table-row--loading")&&!It.classList.contains("table-row--empty")),lt=It=>Array.from(It.children).map($t=>{const qt=window.getComputedStyle($t);return{width:$t.getBoundingClientRect().width,span:ij(qt.gridColumnStart,qt.gridColumnEnd)}}),ht=parseFloat(window.getComputedStyle(ee).columnGap)||0,Mt=Xe.map(lt),Ut=lt(ee),Po=nj([Ut,...Mt],R.length,ht),_o=uj(R.map((It,$t)=>({declaredMin:re.current($t),headWidth:Ut[$t]?.width??0,sortable:It.sortDir!==void 0||!!It.onClick,sorted:!!It.sortDir}))),zo=It=>_o[It]??re.current(It);I.current=_o;const wo=R.map((It,$t)=>{const qt=Po[$t],Ft=je.current($t)?parseFloat(at.current[$t]):NaN;return Number.isFinite(Ft)&&Math.ceil(qt)>Ft&&jt(`table-fixed-col-overflow:${$t}:${Ft}`,`[ihabdevteam-core] Table \uC758 ${$t+1}\uBC88\uC9F8 \uC5F4\uC744 ${Ft}px \uB85C \uC815\uD574 \uB450\uC5C8\uB294\uB370 \uC548\uC758 \uB0B4\uC6A9\uC740 ${Math.ceil(qt)}px \uAC00 \uD544\uC694\uD569\uB2C8\uB2E4 \u2014 \uADF8\uB9CC\uD07C \uC798\uB824 \uB098\uAC11\uB2C8\uB2E4. gridTemplateColumns(\uB610\uB294 fields[].width)\uC758 \uADF8 \uC5F4\uC744 ${Math.ceil(qt)}px \uC774\uC0C1\uC73C\uB85C \uB298\uB9AC\uC138\uC694.`),Number.isFinite(Ft)?Ft:Math.max(re.current($t),Math.ceil(qt))}),no=window.getComputedStyle(ee),yo=(parseFloat(no.paddingLeft)||0)+(parseFloat(no.paddingRight)||0),ko=xe.clientWidth-yo;He?xe.style.setProperty("--table-grid-cols",He):xe.style.removeProperty("--table-grid-cols");const uo={isFixed:It=>je.current(It),floorOf:zo,containerWidth:ko};return lj(wo,uo)?fx:sj(wo,uo)},[R,_]),Wt=(ee,xe)=>ee!==null&&ee.length===xe.length&&ee.every((He,Xe)=>He===xe[Xe]),tt=s.useRef(St);s.useEffect(()=>{tt.current=St});const[Ne,it]=s.useState(0),ut=Y.length>0,yt=`${ne??""}|${Ne}|${R.length}|${_e}|${C??""}`,Tt=!st&&te&&ne!==null&&!A?`${yt}|${ut?1:0}`:null,Ht=s.useRef(null);s.useEffect(()=>{if(Tt===null||!ut||Ht.current===yt)return;const ee=tt.current();if(ee!==null){if(Ht.current=yt,ee===fx){rt(null);return}rt(xe=>Wt(xe,ee)?xe:ee)}},[Tt]);const vt=s.useCallback(()=>{if(ne)try{window.localStorage.removeItem(ne)}catch{}_t(!1);const ee=tt.current(),xe=Array.isArray(ee)?ee:null;rt(xe),bt.current=xe,it(He=>He+1)},[ne]);s.useEffect(()=>()=>{Ct.current&&(window.removeEventListener("pointermove",At),window.removeEventListener("pointerup",dt),window.removeEventListener("pointercancel",dt),document.body.style.cursor="",document.body.style.userSelect="")},[At,dt]);const gt=R.length>0&&R.every(ee=>ee.width!=null)?R.map(ee=>typeof ee.width=="number"?`${ee.width}px`:String(ee.width)).join(" "):null;R.some(ee=>ee.width!=null)&&!gt&&jt(`table-field-width:${R.map(ee=>ee.width==null?"-":"w").join("")}`,"[ihabdevteam-core] Table \uC758 fields \uC911 \uC77C\uBD80\uC5D0\uB9CC width \uAC00 \uC788\uC2B5\uB2C8\uB2E4. **\uBAA8\uB4E0 \uC5F4\uC5D0 \uC801\uC5B4\uC57C** \uC4F0\uC785\uB2C8\uB2E4 \u2014 \uC9C0\uAE08\uC740 gridTemplateColumns \uB97C \uC501\uB2C8\uB2E4. \uD55C \uC5F4\uB9CC \uACE0\uC815\uD558\uACE0 \uC2F6\uC73C\uBA74 \uB098\uBA38\uC9C0\uC5D0 `minmax(0, 1fr)` \uCC98\uB7FC \uC801\uC5B4 \uC8FC\uC138\uC694."),gt&&b&&jt("table-field-width-conflict","[ihabdevteam-core] Table \uC5D0 fields[].width \uC640 gridTemplateColumns \uAC00 \uB458 \uB2E4 \uC788\uC2B5\uB2C8\uB2E4. gridTemplateColumns \uAC00 \uC774\uAE41\uB2C8\uB2E4 \u2014 \uD55C\uCABD\uB9CC \uB450\uC138\uC694.");const Nt=b??gt??void 0,Lt=oj(Nt),et=Lt.filter(ee=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ee));et.length>0&&jt(`table-content-track:${b}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${et.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${b})`);const Et=R.findIndex(ee=>!!ee.sortDir);R.filter(ee=>!!ee.sortDir).length>1&&jt("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const he=ee=>ee===Et?R[ee].sortDir==="asc"?"ascending":"descending":R[ee].onClick?"none":void 0,Te=ee=>/^\d+(\.\d+)?px$/.test(Lt[ee]??""),ze=ee=>{const xe=Lt[ee]??"",He=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(xe)??/^(\d+(?:\.\d+)?)px$/.exec(xe);return He?parseFloat(He[1]):Be};je.current=Te,re.current=ze,at.current=Lt;const Ye=ee=>_==="fit"&&!Te(ee)?"fr":"px",ct=Ue&&Ue.length===R.length&&!Q,Vt=_==="fit"&&!st,pt=(ee,xe)=>{if(ee.resizable===!1&&Lt[xe])return Lt[xe];const He=Ue[xe];if(Ye(xe)!=="fr"||!Vt)return`${He}${Ye(xe)}`;const Xe=Math.min(Math.max(ze(xe),I.current?.[xe]??0),He);return Xe>0?`minmax(${Xe}px, ${He}fr)`:`${He}fr`},ao=ae??(ct?R.map(pt).join(" "):Nt),Ot=ao?{"--table-grid-cols":ao}:void 0,Ke=g!==void 0;return a.jsx(bd.Provider,{value:Eo,children:a.jsxs("div",{ref:De,className:`table-wrap${te?" table-wrap--resizable":""}${j?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:Ot,onDragOver:D,onDragLeave:N,onDrop:z,tabIndex:pe?0:void 0,role:pe?"region":void 0,"aria-label":pe?typeof g=="string"?g:W("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!l&&a.jsx("span",{id:q,className:"table-row-hint",children:W("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),a.jsxs("div",{ref:Ie,role:"table","aria-labelledby":Ke&&typeof g=="string"?X:void 0,className:"table body-2",children:[Ke&&a.jsxs("div",{className:Se("table-header",k&&"table-header--clickable"),onClick:k,role:"caption",children:[k&&a.jsx(ve,{htmlType:"button",size:T,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?W("common.expand","\uD3BC\uCE58\uAE30"):W("common.collapse","\uC811\uAE30"),ariaExpanded:!y,className:"table-header__chevron"}),w&&a.jsx(nt,{icon:w,label:typeof g=="string"?g:void 0,className:"table-header__icon"}),a.jsx("span",{id:X,className:"table-header__title h5b",children:g}),S!==void 0&&a.jsx("span",{className:"table-header__count body-3b",children:S}),B&&a.jsx("span",{className:"table-header__actions",onClick:ee=>ee.stopPropagation(),children:B})]}),!y&&a.jsxs(a.Fragment,{children:[r&&r.length>0&&a.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:r.map((ee,xe)=>a.jsx("div",{role:"columnheader","aria-colspan":ee.span,className:Se("table-field body-3",ee.className),style:{gridColumn:`span ${ee.span}`},children:ee.label},xe))}),a.jsxs("div",{role:"presentation",className:Se("table-fields-strip",te&&"table-fields-strip--resizable"),children:[a.jsx("div",{role:"row",className:"table-fields",ref:V,children:R.map((ee,xe)=>a.jsx(mj,{onClick:ee.onClick,className:Se(ee.className,vx(ee.align)),sortDir:ee.sortDir,ariaSort:he(xe),onResizeStart:te&&xe<R.length-1&&ee.resizable!==!1&&(_!=="fit"||R.some((He,Xe)=>Xe>xe&&He.resizable!==!1))?He=>Qt(xe,He):void 0,children:ee.label},xe))}),te&&a.jsx("div",{className:"table-fields__reset-dock",children:a.jsx(ve,{htmlType:"button",size:T,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:W("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:W("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:vt})})]}),a.jsx("div",{role:"rowgroup",className:"table-body",children:A?a.jsx(Sh,{variant:"loading",colSpan:R.length||void 0}):Y.length===0&&E?a.jsx(Sh,{variant:"empty",colSpan:R.length||void 0,children:E}):Y.map((ee,xe)=>{const He=m!=null&&ee.id===m,Xe=!!l&&(c?c(ee):!0),lt=U!=null&&ee.id!=null&&(U instanceof Set?U.has(ee.id)||[...U].some(ht=>String(ht)===String(ee.id)):String(ee.id)===String(U));return a.jsx(Sh,{className:`${Xe?" table-row--clickable":""}${h?" table-row--draggable":""}${He?" table-row--dragging":""}`.trim(),draggable:!!h,onClick:Xe?()=>l(ee):void 0,colSpan:R.length||void 0,rowHasButton:i(ee).some(ht=>!!ht.rowLabel),describedBy:q,onMouseEnter:u?ht=>u(ee,ht):void 0,onMouseLeave:d?ht=>d(ee,ht):void 0,onDragStart:h?ht=>h(ee,ht):void 0,onDragEnd:p?ht=>p(ee,ht):void 0,expandedContent:lt&&O?O(ee):void 0,children:i(ee).map((ht,Mt)=>a.jsx(pj,{className:Se(ht.className,vx(R[Mt]?.align)),style:ht.style,span:ht.span,rowLabel:Xe?ht.rowLabel:void 0,onRowClick:Xe?()=>l(ee):void 0,children:ht.content},Mt))},ee.id!=null?`${typeof ee.id}:${ee.id}`:`__idx:${xe}`)})})]})]})]})})}var bj=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";ue(bj);function xx(e,t){return t!=="wornAt"?String(e[t]??""):N6(e.wornYear,e.wornMonth,e.wornDay)}function Cx({rows:e,loading:t,onSelect:o,onDelete:r,onWear:n,onRelease:i,onAdd:l}){const{t:c,i18n:u}=Ae.useTranslation(),d=_=>_==="left"?c("device.direction.left","\uC88C"):c("device.direction.right","\uC6B0"),{sort:h,field:p}=Qd(),m=s.useMemo(()=>{if(!h)return e;const{key:_,asc:f}=h;return[...e].sort((C,g)=>{if(_==="worn"){const w=Number(g.worn)-Number(C.worn);return f?w:-w}return Tl(xx(C,_),xx(g,_),f)})},[e,h]),{pageRows:b,pageSizeProps:v,paginationProps:x}=Jd(m,h);return a.jsxs("div",{className:"dlp-side-table",children:[a.jsx(as,{count:{value:e.length,unit:c("customers.device.unit","\uAC1C")},pageSize:v,pagination:x,actions:l&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:c("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),a.jsx(cs,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(c("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(c("device.direction.label","\uBC29\uD5A5"),"side"),p(c("device.deviceType","\uC885\uB958"),"device"),p(c("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(c("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(c("device.productName","\uC81C\uD488\uBA85"),"productName"),p(c("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:b.map((_,f)=>({id:_.id??`${_.side}-${f}`,row:_})),gridTemplateColumns:`72px 110px 120px minmax(120px, 1fr) 100px minmax(120px, 1fr) 156px${r?" 108px":""}`,renderRow:({row:_})=>[{content:a.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:a.jsx(es,{checked:_.worn,disabled:_.worn?!i:!n,ariaLabel:_.worn?c("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):c("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?n?.(_):i?.(_)}})})},{content:a.jsx("span",{children:d(_.side)})},{content:_.device?a.jsx(co,{size:"small",variant:h1(_.device),fill:"soft",label:m1(_.device,c)}):a.jsx("span",{})},{content:a.jsx("span",{children:_.brand})},{content:a.jsx("span",{children:_.fitType||"-"})},{content:a.jsx("span",{children:_.productName||"-"})},{content:a.jsx("span",{className:"dlp-date",children:rh(_.wornYear,_.wornMonth,_.wornDay,u.language)||"-"})},...r?[{content:a.jsx("span",{className:"dlp-row-actions",children:a.jsx(ve,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:c("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),r(_)}})})}]:[]],onRowClick:({row:_})=>o(_),empty:c("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var gj=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error-ink,var(--color-error))}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;container-type:inline-size;cursor:default;min-height:118px;min-width:0;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
850
850
 
851
851
  /* !important \uD544\uC694 \u2014 \uC624\uB298\uC774 \uC77C\uC694\uC77C/\uD1A0\uC694\uC77C\uACFC \uACB9\uCE58\uBA74 \uC544\uB798 nth-child \uC8FC\uB9D0 \uC0C9\uC0C1 \uADDC\uCE59\uACFC
@@ -854,7 +854,7 @@ ${y.badge}`:y.badge:void 0;if(B&&h(y.code))return null;if(!y.badge&&!m)return b(
854
854
 
855
855
  /* !important \uD544\uC694: WordTable.tsx\uAC00 \uD654\uBA74 \uD45C\uC2DC\uC6A9 scale/marginLeft\uB97C \uC778\uB77C\uC778 style\uB85C
856
856
  \uC9C1\uC811 \uC801\uC6A9\uD558\uBBC0\uB85C(\uC2A4\uD06C\uB9B0 \uCD95\uC18C \uB80C\uB354), \uC778\uC1C4 \uC2DC \uC774\uB97C \uBB34\uD6A8\uD654\uD558\uB824\uBA74 \uD074\uB798\uC2A4 \uADDC\uCE59\uC5D0
857
- !important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fff;background:var(--color-pureWhite,#fff);border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-cell__form-button,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner,.ihabdevteam-core-scope .word-table__card-actions,.ihabdevteam-core-scope .word-table__card-add,.ihabdevteam-core-scope .word-table__card-close,.ihabdevteam-core-scope .word-table__card-handle{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__card:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__edit-cell:hover .word-table-cell__score-slot{clip-path:none;display:inline-flex;height:auto;overflow:visible;position:static;width:auto}@media (hover:none){.ihabdevteam-core-scope .word-table-cell__score-slot{clip-path:none;display:inline-flex;height:auto;overflow:visible;position:static;width:auto}}.ihabdevteam-core-scope .word-table-cell__score-slot svg{stroke-width:3.5;stroke-width:var(--word-table-mark-stroke,3.5)}.ihabdevteam-core-scope .word-table--score-readonly .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}.ihabdevteam-core-scope .word-table--score-readonly .word-table-cell__score-slot .button{cursor:default}.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__form-button,.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__play-button{display:none}@media print{.ihabdevteam-core-scope .word-table__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}.ihabdevteam-core-scope .word-table-cell__score-slot svg{stroke-width:2}}.ihabdevteam-core-scope .paper-wrap .word-table-cell__score-slot svg{stroke-width:2}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}.ihabdevteam-core-scope .word-table__frame{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .word-table__card--base{align-items:stretch}`;ue(Aj);const Ha={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Sx(e="landscape"){jt("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:o,printH:r}=Ha[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${o} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Sj(e,t){if(e.length===0)return[[]];const o=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=o)r.push(e.slice(n,n+o));return r}const Ej={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3},13:{cols:5,rows:3},14:{cols:5,rows:3},15:{cols:5,rows:3},16:{cols:6,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4},13:{cols:4,rows:4},14:{cols:4,rows:4},15:{cols:4,rows:4},16:{cols:4,rows:4}}};function Ex(e,t){const o=Ej[e][t];if(o)return o;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=n,i=Math.ceil(r/l)):(i=n,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}function Dj(e,t){const o=Ex(e==="landscape"?"portrait":"landscape",t),r=Math.max(1,Math.ceil(t));if(r<=1)return o;const n=Ha[e],i=e==="landscape"?n.width/2:n.width,l=e==="landscape"?n.height:n.height/2,c=(m,b)=>Math.min(i/m/jx,l/b/Nx),u=Math.max(0,o.cols*o.rows-r),d=c(o.cols,o.rows);let h=o,p=d;for(let m=1;m<=r;m++){const b=Math.ceil(r/m);if(m*b-r>u)continue;const v=c(m,b);v>p&&(h={cols:m,rows:b},p=v)}return p>d*1.05?h:o}const jj={show:"word-table__content--cut-show",dashed:"",corner:"word-table__content--cut-corner",hide:""},jh={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Nh={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},Th={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Lh={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Mh(e){return Object.fromEntries(Object.entries(jh).map(([t,o])=>[t,Th[t]?e(`wordTable.pos.${Th[t]}`,{defaultValue:o}):o]))}function $h(e){return Object.fromEntries(Object.entries(Nh).map(([t,o])=>[t,Lh[t]?e(`wordSearch.filter.type.${Lh[t]}`,{defaultValue:o}):o]))}const Dx={pos:Th,wordType:Lh};function hs(e,t){return e?e.split("/").map(o=>t[o]??o).join("/"):""}function Rh(e,t,o,r){if(r!=="dashed")return{};const n=e%t,i=Math.floor(e/t),l=n<t-1,c=i<o-1;if(!l&&!c)return{};const u="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,h=[],p=[],m=[];return l&&(h.push(d("bottom")),p.push("1px 100%"),m.push("right center")),c&&(h.push(d("right")),p.push("100% 1px"),m.push("center bottom")),{backgroundImage:h.join(", "),backgroundSize:p.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const jx=280,Nj=240,Tj=280,Nx=400,Lj=120,Mj=280;function Ph(e,t){const o=s.useRef(null),[r,n]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{if(!(u>0))return;const h=u/e,p=t&&d>0?d/t:1/0,m=Math.min(1,h,p);n(m),l(Math.max(0,(u-e*m)/2))},[e,t]);return s.useEffect(()=>{const u=o.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const h=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return h.observe(d),()=>h.disconnect()},[c,t]),{scalerRef:o,scale:r,offset:i}}const $j=24,Rj={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Pj=400,Tx=8;function zj(e){return e<=1?"100%":`repeat(${e}, calc((100% - ${e-1} * var(--wt-cell-gap, 0px)) / ${e}))`}function zh({label:e,subLabel:t,colloquialLabel:o,captionLabel:r,captionBadge:n,imageLabel:i,pickForm:l,homonum:c,showWord:u=!0,showImage:d=!0,showPronunciation:h=!0,showColloquial:p=!0,showCaption:m=!0,buttonSize:b=40,wordInfo:v,outerScale:x=1}){const{t:_}=Ae.useTranslation(),f=s.useRef(null),C=s.useRef(null),g=s.useRef(null),[w,S]=s.useState(1),[y,k]=s.useState(!1),[B,E]=s.useState(!1),[A,j]=s.useState({for:"",url:""}),[D,N]=s.useState(null),z=t&&t.length>0?t:uc()?.(e,c)??"",O=Ta()?.(i||e,c)??"",{imgRef:U,loading:T,failed:W,onLoad:G,onError:X}=Dh(O),q=s.useCallback(()=>N(C.current?.getBoundingClientRect()??null),[]),L=s.useCallback(()=>N(null),[]),H=El(!!D,de=>{de?q():L()},C),Z=s.useMemo(()=>{if(!v)return null;const de=[];return v.grade&&de.push(_("wordTable.info.grade",{n:v.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),v.syllables&&de.push(_("wordTable.info.syllables",{n:v.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),v.pos&&de.push(_("wordTable.info.pos",{v:hs(v.pos,Mh(_)),defaultValue:"\uD488\uC0AC: {{v}}"})),v.wordType&&de.push(_("wordTable.info.wordType",{v:hs(v.wordType,$h(_)),defaultValue:"\uC720\uD615: {{v}}"})),de.length?de:null},[v,_]),oe=z||e,P=A.for===oe?A.url:"";s.useEffect(()=>{const de=Ja(),re=z||e;if(!de||!re)return;let I=!1;return Promise.resolve().then(()=>de(re)).catch(()=>"").then(ne=>{!I&&ne&&j({for:re,url:ne})}),()=>{I=!0}},[z,e]);const $=s.useRef(null),R=s.useRef(null);s.useEffect(()=>()=>{g.current?.pause(),R.current?.()},[]);const Y=s.useRef(null);s.useEffect(()=>()=>{Y.current&&(Y.current.cancelled=!0)},[]);const Q=s.useCallback(de=>{if(de.stopPropagation(),y||B){$.current?.();return}if(!P){const I=Tr(),ne=z||e;if(!I||!ne)return;const V={cancelled:!1,stop:null};Y.current=V;const se=()=>{V.cancelled=!0,V.stop?.(),E(!1),k(!1),R.current?.()};$.current=se,R.current=mi(se),E(!0),Promise.resolve().then(()=>I(ne)).then(F=>{if(V.cancelled)return;if(!F){se();return}j({for:ne,url:F});const le=bi(F,()=>{k(!1),R.current?.()});g.current=le.el,V.stop=le.stop,E(!1),k(!0)}).catch(()=>{se()});return}k(!0);const re=bi(P,()=>{k(!1),R.current?.()});g.current=re.el,$.current=re.stop,R.current=mi(re.stop)},[y,B,P,z,e]),ae=d&&!!O&&!W,te=ae&&u?jx:ae?Tj:Nj,J=ae&&u?Nx:ae?Mj:Lj;s.useEffect(()=>{const de=f.current;if(!de||typeof ResizeObserver>"u")return;const re=new ResizeObserver(([I])=>{const{width:ne,height:V}=I.contentRect;S(Math.min(ne/te,V/J))});return re.observe(de),()=>re.disconnect()},[te,J]);const Be=b*x<$j;return a.jsxs("div",{ref:f,className:Se("word-table-cell",Be&&"word-table-cell--tap-too-small",ae?"word-table-cell--with-image":""),"data-ref-w":te,"data-ref-h":J,children:[a.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${w})`},children:[ae&&a.jsxs("div",{className:"word-table-cell__image-wrap",children:[T&&a.jsx("div",{className:"word-table-cell__spinner"}),a.jsx("img",{ref:U,className:"word-table-cell__image",src:O,alt:e,draggable:!1,style:{opacity:T?0:1},onLoad:G,onError:X})]}),m&&(n||r)&&a.jsxs("span",{className:"word-table-cell__caption",children:[n&&a.jsx(co,{fill:"soft",size:"small",label:n}),r&&a.jsx("span",{className:"word-table-cell__caption-tail h5",children:r})]}),u&&a.jsx("span",{className:"word-table-cell__word h0",children:e}),h&&z&&a.jsxs("span",{className:"word-table-cell__sub h3",children:["[",z,"]"]}),p&&o&&a.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",o,"]"]})]}),a.jsxs("div",{className:"word-table-cell__side",children:[a.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":P,children:[a.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,loading:B,showTooltipInfo:B?_("common.loading","\uBD88\uB7EC\uC624\uB294 \uC911"):_("common.play","\uC7AC\uC0DD"),ariaLabel:e?_("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):_("common.play","\uC7AC\uC0DD"),onClick:Q})}),a.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:_("common.pause","\uBA48\uCDA4"),ariaLabel:e?_("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):_("common.pause","\uBA48\uCDA4"),onClick:Q})})]}),v&&a.jsxs("div",{ref:C,className:"word-table-cell__info-button",onPointerEnter:de=>{Ia(de)||q()},onPointerLeave:de=>{Ia(de)||L()},onFocus:()=>{dr()||q()},onBlur:L,children:[a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:_("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:de=>{de.stopPropagation(),H.touchPress()}}),D&&Z&&a.jsx(wa,{anchorRect:D,items:Z,showIndex:!1})]}),l&&a.jsx("div",{className:"word-table-cell__form-button",children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"replace",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:_("wordTable.pickForm","\uB2E4\uB978 \uAF34\uB85C"),ariaLabel:l.n===null?_("wordTable.pickFormBaseAria","\uAE30\uBCF8\uD615 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"):_("wordTable.pickFormAria",{n:l.n,defaultValue:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"}),onClick:de=>{de.stopPropagation(),l.onPick(de.currentTarget.getBoundingClientRect())}})})]})]})}function kr({title:e,titleIcon:t,disc:o,className:r,orientation:n="landscape",contentTypes:i=["image","word","standardPron"],baseItem:l,baseContentTypes:c,cutLine:u="show",showOutline:d=!0,showDivLine:h=!0,items:p,editCells:m,count:b,activeCell:v=null,onActivateCell:x,onRemoveCell:_,onRemoveItem:f,onReorder:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,indexOffset:y=0,totalCount:k,renderCellAction:B,showFillerAdd:E=!1,fillerAdd:A="first",addableCount:j,contentRef:D,buttonSize:N=40,brand:z,code:O,pageNumber:U,pageNumberPosition:T="right",fitHeight:W=!1,scoring:G=!1,marks:X,onMarkClick:q,scoreIndexOffset:L=0}){const H=s.useCallback((he,Te)=>{q?.(L+he,Te)},[q,L]),Z=(he,Te)=>{const ze=he.filter(Boolean).join(" / ");return ze?Te?P("wordPrint.removePairFor",{name:ze,defaultValue:`${ze} \uB300\uB9BD\uC30D \uBE7C\uAE30`}):P("wordPrint.removeWordFor",{name:ze,defaultValue:`${ze} \uBE7C\uAE30`}):Te?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30")},oe=(he,Te)=>{const ze=X?.[pi(L+he)]??null;return a.jsx("div",{className:Se("word-table-cell__score",ze?"word-table-cell__score--marked":""),style:gt>1?{transform:`translateX(-50%) scale(${gt})`,transformOrigin:"bottom center"}:void 0,children:hi.map(Ye=>a.jsx("span",{className:Se("word-table-cell__score-slot",ze===Ye?"word-table-cell__score-slot--on":""),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",shape:"pill",icon:Kl[Ye],variant:ze===Ye?Xl[Ye]:"default",selected:ze===Ye,useBorder:!1,...vt?{}:{tabIndex:-1,role:"img"},showTooltipInfo:P(`wordTable.scoring.markName.${Ye}`,{defaultValue:Ye}),ariaLabel:P(`wordTable.scoring.${Ye}`,{word:Te,defaultValue:`${Te} ${Ye}`}),onClick:vt?ct=>{ct.stopPropagation(),H(he,Ye)}:void 0})},Ye))})},{t:P}=Ae.useTranslation(),$=m!==void 0,R=e!=null||!!t||!!o,Y=go("(max-width: 767px)"),Q=s.useRef(null),[ae,te]=s.useState(null),J=p?.length??0,Be=k??J,[de,re]=s.useState(null),[I,ne]=s.useState(""),V=s.useRef(null),se=s.useRef(null),F=s.useRef(null),le=s.useRef(null),pe=s.useCallback(he=>{se.current=he,typeof D=="function"?D(he):D&&(D.current=he)},[D]),be=s.useCallback((he,Te)=>{V.current=y+Te,C?.(he,Te),ne(P("wordTable.reorder.moved",{n:y+Te+1,total:Be,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[C,P,Be,y]);s.useEffect(()=>{const he=V.current;he!=null&&(V.current=null,(se.current?.closest(".word-table-block__pages")??se.current)?.querySelector(`[data-wordtable-index="${he}"] .word-table__card-handle button`)?.focus())}),s.useEffect(()=>()=>{le.current?.()},[]);const _e=s.useCallback((he,Te)=>{if(!C||!he.altKey||he.ctrlKey||he.metaKey)return;const ze=he.key==="ArrowRight";if(!ze&&he.key!=="ArrowLeft")return;he.preventDefault();const Ye=Te+(ze?1:-1),ct=y+Ye;ct<0||ct>=Be||be(Te,Ye)},[C,Be,y,be]),Re=s.useCallback((he,Te)=>{if(!C||he.pointerType==="mouse")return;const ze=he.target.closest?.("button");if(ze&&!ze.closest(".word-table__card-handle"))return;le.current?.();const Ye={x:he.clientX,y:he.clientY};let ct=!1;const Vt=Xe=>{ct&&Xe.cancelable&&Xe.preventDefault()};let pt=null,ao=null;const Ot=()=>{const Xe=ao;if(!Xe)return;const lt=document.elementFromPoint?.(Xe.x,Xe.y)?.closest?.("[data-wordtable-cell]"),ht=lt?Number(lt.dataset.wordtableCell):NaN,Mt=Number.isInteger(ht)?ht:null;F.current=Mt,te(Ut=>Ut===Mt?Ut:Mt)},Ke=Xe=>{if(!ct){(Math.abs(Xe.clientX-Ye.x)>Tx||Math.abs(Xe.clientY-Ye.y)>Tx)&&He();return}if(ao={x:Xe.clientX,y:Xe.clientY},typeof requestAnimationFrame>"u"){Ot();return}pt===null&&(pt=requestAnimationFrame(()=>{pt=null,Ot()}))},ee=()=>{pt!==null&&(cancelAnimationFrame(pt),pt=null,Ot());const Xe=F.current,lt=ct;He(),lt&&Xe!=null&&Xe!==Te&&be(Te,Xe)},xe=setTimeout(()=>{ct=!0,re(Te),F.current=Te,te(Te),window.addEventListener("touchmove",Vt,{passive:!1})},Pj);function He(){clearTimeout(xe),window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",ee),window.removeEventListener("pointercancel",ee),window.removeEventListener("touchmove",Vt),ct=!1,pt!==null&&(cancelAnimationFrame(pt),pt=null),F.current=null,le.current=null,re(null),te(null)}le.current=He,window.addEventListener("pointermove",Ke),window.addEventListener("pointerup",ee),window.addEventListener("pointercancel",ee)},[C,be]),{width:ke,height:Ee}=Ha[n],De=typeof W=="number"?W:W&&typeof W=="object"?Y?W.narrow:W.wide:null,{scalerRef:Ie,scale:je,offset:at}=Ph(ke,W?Ee:void 0),Ct=$?m?.length??0:p?.length??0,Fe=Math.max(b??Ct,1),Ue=!$&&!!l,rt=Dj(n,Fe),Ge=Ex(n,Fe),Je=Ue?rt.cols:Ge.cols,st=Ue?rt.rows:Ge.rows,_t=Ue&&n==="landscape"?rt.cols*2:Je,bt=Ue&&n==="portrait"?rt.rows*2:st,At=he=>({word:he.length===0||he.includes("word"),image:he.length===0||he.includes("image"),pron:he.length===0||he.includes("standardPron"),colloq:he.length===0||he.includes("colloquialPron"),caption:he.length===0||he.includes("caption")}),dt=At(i),Qt=s.useMemo(()=>{const he=(p??[]).map(ze=>ze.id),Te=he.every(ze=>typeof ze=="string"&&ze.length>0)&&new Set(he).size===he.length;return!Te&&he.length>0&&jt("wordTable.cellKeyFallback","[ihab/core] WordTable: items \uC758 id \uAC00 \uACB9\uCE58\uAC70\uB098 \uBE44\uC5B4 \uC788\uC5B4 \uCE78\uC744 \uC790\uB9AC \uBC88\uD638\uB85C \uC13C\uB2E4. \uCE78\uC744 \uBE7C\uAC70\uB098 \uB354\uD560 \uB54C \uB4A4 \uCE78\uB4E4\uC774 \uD1B5\uC9F8\uB85C \uB2E4\uC2DC \uADF8\uB824\uC9C4\uB2E4(\uC18C\uB9AC \uC8FC\uC18C\uB97C \uB2E4\uC2DC \uBC1B\uC544 \uC628\uB2E4). id \uB97C \uD45C \uC548\uC5D0\uC11C \uD558\uB098\uBFD0\uC778 \uAC12\uC73C\uB85C \uC9C0\uC5B4 \uC8FC\uBA74 \uADF8 \uAC12\uC774 \uC0AC\uB77C\uC9C4\uB2E4."),Te?he:null},[p]),St=At(c??i),Wt=$?(m??[]).some(he=>he!==null&&he.length>1):(p??[]).some(he=>(he.words??[]).length>1),tt=!!z?.show,Ne=!!z?.show&&z?.top!==!1,it=!!z?.show&&z?.bottom!==!1,ut=z?.copyright??"\xA9 IHAB, Inc. All rights reserved.",yt=me(Se("word-table__content",jj[u],d&&"word-table__content--outline",h&&Wt&&"word-table__content--div-line",!tt&&U&&T!=="none"&&"word-table__content--page-number",Ne&&"word-table__content--brand-top",it&&"word-table__content--brand-bottom")),Tt={transform:`scale(${1/je})`,transformOrigin:"center center"},Ht=N*hi.length+4*(hi.length-1),vt=!!q,gt=vt?Math.max(1,Math.min(1/je,ke/_t/Ht)):1,[Nt,Lt]=s.useState(sh);ui(()=>{if(!G)return;const he=se.current?.querySelector(".word-table-cell__score-slot .button__icon");if(!he)return;const Te=he.getBoundingClientRect().width;Te>0&&Lt(O6(Te))},[G,je,gt,N,J]);const et=a.jsxs("div",{ref:Ie,className:"word-table__scaler",style:{height:Ee*je,"--word-table-mark-stroke":Nt},children:[a.jsx("div",{className:Se("word-table",G&&!vt&&"word-table--score-readonly",!R&&r),style:{width:ke,height:Ee,transform:`scale(${je})`,transformOrigin:"top left",marginLeft:at},children:a.jsxs("div",{ref:pe,className:yt,style:{gridTemplateColumns:`repeat(${_t}, 1fr)`,gridTemplateRows:zj(bt)},children:[$?a.jsx(a.Fragment,{children:(m??[]).map((he,Te)=>a.jsx("div",{className:me(Se("word-table__edit-cell",he?"word-table__edit-cell--filled":"word-table__edit-cell--empty",v===Te?"word-table__edit-cell--active":"")),style:Rh(Te,_t,bt,u),children:he?a.jsxs(a.Fragment,{children:[he.map((ze,Ye)=>a.jsxs(s.Fragment,{children:[Ye>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:ze.word,subLabel:ze.pronunciation,colloquialLabel:ze.colloquialPronunciation,homonum:ze.homonum,showWord:dt.word,showImage:dt.image,showPronunciation:dt.pron,showColloquial:dt.colloq,showCaption:dt.caption,buttonSize:N})]},Ye)),G&&oe(Te,he.map(ze=>ze.word).join(" / ")),_&&a.jsx("div",{className:me("word-table__card-close"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:he.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Z(he.map(ze=>ze.word),he.length>1),onClick:()=>_(Te)})})]}):x&&a.jsx("div",{className:me("word-table__card-add"),style:Tt,children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"plus",variant:"default",ariaLabel:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),showTooltipInfo:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>x(Te)})})},Te))}):a.jsxs(a.Fragment,{children:[Ue&&l&&a.jsx("div",{className:me("word-table__card word-table__card--base"),style:{gridColumn:`1 / span ${rt.cols}`,gridRow:`1 / span ${rt.rows}`,...Rh(0,n==="landscape"?2:1,n==="landscape"?1:2,u)},children:(l.words??[]).map((he,Te)=>a.jsxs(s.Fragment,{children:[Te>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:he.label,subLabel:he.subLabel,colloquialLabel:he.colloquialLabel,captionLabel:he.captionLabel,captionBadge:he.captionBadge,imageLabel:he.imageLabel,pickForm:S&&he.canPickForm?{n:null,onPick:ze=>S(l.id,-1,ze)}:void 0,homonum:he.homonum,showWord:St.word,showImage:St.image,showPronunciation:St.pron,showColloquial:St.colloq,showCaption:St.caption,buttonSize:N,wordInfo:he.grade||he.syllables!=null||he.pos||he.wordType?{grade:he.grade,syllables:he.syllables,pos:he.pos,wordType:he.wordType}:void 0})]},Te))}),(p??[]).map((he,Te)=>a.jsxs("div",{"data-wordtable-cell":C?Te:void 0,"data-wordtable-index":C?y+Te:void 0,className:me(`word-table__card${C?" word-table__card--draggable":""}${ae===Te?" word-table__card--drag-over":""}${de===Te?" word-table__card--dragging":""}`),style:Rh(Te,Je,st,u),draggable:!!C,onPointerDown:C?ze=>Re(ze,Te):void 0,onKeyDown:C?ze=>_e(ze,Te):void 0,onDragStart:C?()=>{Q.current=Te}:void 0,onDragOver:C?ze=>{ze.preventDefault(),te(Te)}:void 0,onDragLeave:C?()=>te(null):void 0,onDrop:C?ze=>{ze.preventDefault(),Q.current!==null&&Q.current!==Te&&C(Q.current,Te),Q.current=null,te(null)}:void 0,onDragEnd:C?()=>{Q.current=null,te(null)}:void 0,children:[(he.words??[]).map((ze,Ye)=>a.jsxs(s.Fragment,{children:[Ye>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:ze.label,subLabel:ze.subLabel,colloquialLabel:ze.colloquialLabel,captionLabel:ze.captionLabel,captionBadge:ze.captionBadge,imageLabel:ze.imageLabel,pickForm:S&&ze.canPickForm?{n:y+Te+1,onPick:ct=>S(he.id,y+Te,ct)}:void 0,homonum:ze.homonum,showWord:dt.word,showImage:dt.image,showPronunciation:dt.pron,showColloquial:dt.colloq,showCaption:dt.caption,buttonSize:N,wordInfo:ze.grade||ze.syllables!=null||ze.pos||ze.wordType?{grade:ze.grade,syllables:ze.syllables,pos:ze.pos,wordType:ze.wordType}:void 0})]},Ye)),G&&oe(Te,(he.words??[]).map(ze=>ze.label).join(" / ")),(B||f||g||w||C)&&a.jsxs("div",{className:me("word-table__card-actions"),children:[f&&a.jsx("div",{className:me("word-table__card-close"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(he.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Z((he.words??[]).map(ze=>ze.label),(he.words??[]).length>1),onClick:()=>f(he.id)})}),g&&a.jsx("div",{className:me("word-table__card-copy"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"copy",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:P("wordTable.copyItem","\uD55C \uCE78 \uB354"),ariaLabel:P("wordTable.copyItemAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uD55C \uCE78 \uB354"}),onClick:()=>g(he.id,y+Te)})}),w&&a.jsx("div",{className:me("word-table__card-replace"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"refresh-cw",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(he.words??[]).length>1?P("wordTable.replacePair","\uB2E4\uB978 \uC30D\uC73C\uB85C"):P("wordTable.replaceItem","\uB2E4\uB978 \uB2E8\uC5B4\uB85C"),ariaLabel:(he.words??[]).length>1?P("wordTable.replacePairAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uC30D\uC73C\uB85C"}):P("wordTable.replaceItemAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uB2E8\uC5B4\uB85C"}),onClick:()=>w(he.id,y+Te)})}),B?.(Te,he),C&&a.jsx("div",{className:me("word-table__card-handle"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:P("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:P("wordTable.reorder.handle",{word:(he.words??[]).map(ze=>ze.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})})]})]},Qt?Qt[Te]:Te)),Array.from({length:Math.max(0,Je*st-(p?.length??0))}).map((he,Te)=>{const ze=Je*st,Ye=j??ze,ct=(p?.length??0)+Te<Ye;return a.jsx("div",{className:me("word-table__card word-table__card--filler"),children:E&&x&&ct&&(A==="every"||Te===0)&&a.jsx("div",{className:me("word-table__card-add"),style:Tt,children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"plus",variant:"default",ariaLabel:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),showTooltipInfo:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>x((p?.length??0)+Te)})})},`filler-${Te}`)})]}),Ne&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"word-table__band word-table__band--top",children:[a.jsx("img",{className:"word-table__brand-logo",src:z?.topLogo?.src??ql,alt:z?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const he=[z?.title&&a.jsx("span",{className:"word-table__paper-title",children:z.title},"t"),z?.owner&&a.jsx("span",{className:"word-table__owner",children:z.owner},"o"),O&&a.jsx("span",{className:"word-table__code",children:O},"c")].filter(Boolean);return he.length===0?null:a.jsx("span",{className:"word-table__ident",children:he.map((Te,ze)=>a.jsxs(s.Fragment,{children:[ze>0&&a.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),Te]},ze))})})()]})}),it&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[a.jsxs("span",{className:"word-table__brand-by",children:[z?.bottomLogo?a.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:z.bottomLogo.src,alt:z.bottomLogo.alt}):a.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),a.jsx("span",{className:"word-table__copyright",children:ut})]}),a.jsxs("span",{className:"word-table__band-end",children:[z?.link&&a.jsx("span",{className:"word-table__link",children:z.link}),U&&T!=="none"&&a.jsx("span",{className:"word-table__page-count",children:P("wordTable.filter.pageIndicator",{current:U.current,total:U.total})})]})]})}),!tt&&U&&T!=="none"&&a.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${T}`,children:P("wordTable.filter.pageIndicator",{current:U.current,total:U.total})})]})}),C&&a.jsx("span",{role:"status",style:Rj,children:I})]}),Et=De==null?et:a.jsx("div",{className:"word-table__frame",style:{height:De},children:et});return R?a.jsx(wr,{type:"page",icon:t,title:e,disc:o,className:Se(me("word-table__section"),r),children:Et}):Et}var Oj=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;gap:var(--spacing-s);justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{cursor:pointer;flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel__collapse-toggle,.ihabdevteam-core-scope .filter-panel__collapse-toggle:active,.ihabdevteam-core-scope .filter-panel__collapse-toggle:hover{background:transparent;border:none;box-shadow:none}.ihabdevteam-core-scope .filter-panel--collapsible.filter-panel--collapsed:has(>.filter-panel__header:hover){border-color:var(--color-main)}.ihabdevteam-core-scope .filter-panel--collapsible:not(.filter-panel--collapsed)>.filter-panel__header:hover .filter-panel__collapse-toggle{background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs);max-width:50%;min-width:0}.ihabdevteam-core-scope .filter-panel__header-summary{color:var(--color-gray);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto;min-width:0}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ue(Oj);function Ij(e,t,o){const r=[];for(const n of e??[]){if(n.type==="note"||n.type==="input")continue;const i=n.displayLabel??n.label,l=Fj(n,t?.[n.label],o);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function Fj(e,t,o){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(n=>n!==Kt);return r.length===0?e.allOption?e.allLabel??o:null:r.map(n=>Wj(e,n)).join(", ")}function Wj(e,t){const o=[...e.items??[],...(e.groups??[]).flat()];for(const r of o)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function ma({title:e,titleLevel:t=2,headerAction:o,headerSummary:r,collapsible:n=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:c,footer:u,sections:d,selected:h={},onSelect:p,align:m,sectionAlign:b,className:v}){const x=Fo()??Eo,_=(m??(b==="vertical"?"newline":"inline"))==="inline",{t:f}=Ae.useTranslation(),[C,g]=s.useState(i),w=l??C,S=()=>{const D=!w;g(D),c?.(D)},y=D=>{if(!n)return;const N=D.target;!N||typeof N.closest!="function"||N.closest(".filter-panel__collapse-toggle")||N.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||S()},k=s.useMemo(()=>r!==void 0||!w?"":Ij(d,h,f("common.all","\uC804\uCCB4")),[r,w,d,h,f]),B=r??(k?a.jsx("span",{className:"filter-panel__header-summary body-3",children:k}):null),E=e||o||r||n,A=s.useId(),j=t?`h${t}`:"span";return a.jsxs("div",{className:Se("filter-panel",n?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?A:void 0,children:[E&&a.jsxs("div",{className:"filter-panel__header",onClick:n?y:void 0,children:[a.jsx("div",{className:"filter-panel__title-row",children:e&&a.jsx(j,{id:A,className:"filter-panel__title h4",children:e})}),a.jsxs("div",{className:"filter-panel__header-actions",children:[w?B:o,n&&a.jsx(ve,{htmlType:"button",size:x,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),showTooltipInfo:w?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:S})]})]}),!w&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:Se("filter-panel__sections",_?"filter-panel__sections--row":""),children:d.map(D=>{const N=h[D.label],z=N===void 0||(Array.isArray(N)?N.length===0:!1),O=(D.items??[]).filter(T=>T!=null);D.allOption&&O.some(T=>(typeof T=="string"?T:T.value)===Kt)&&jt(`filter-panel-all-value:${D.label}`,`[FilterPanel] '${D.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Kt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const U=T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"&&!!T.disabled,X=typeof T!="string"?T.labels:void 0,q=typeof T!="string"?T.displayLabel:void 0,L=typeof T!="string"?T.tooltip:void 0,H=typeof T!="string"?T.descriptionTooltip:void 0,Z=typeof T!="string"?T.shape:void 0,oe=Array.isArray(N)?N.includes(W):N===W;return a.jsx(ve,{htmlType:"button",size:"keyboard",label:X??q??W,type:D.itemType??(X?"bar":W.length===1?"dot":void 0),selected:oe,disabled:G,shape:Z,showTooltipInfo:!!L,tooltipInfoText:L,tooltipDescription:H,onClick:()=>p?.(W,D.label)},W)};return a.jsxs(s.Fragment,{children:[D.groupLabel&&a.jsxs("div",{className:"filter-panel__group-label-row",children:[a.jsx("div",{className:"filter-panel__group-label body-2",children:D.groupLabel}),D.groupAction]}),a.jsxs("div",{className:Se("filter-panel__section",D.layout==="row"?"filter-panel__section--row":"",D.block?"filter-panel__section--block":""),children:[a.jsxs("div",{className:"filter-panel__section-label-row",children:[a.jsx("span",{className:"filter-panel__section-label body-3",children:D.displayLabel??D.label}),D.labelAction??(D.labelInfo?a.jsx(ln,{...D.labelInfo}):null)]}),D.type==="note"?a.jsx("div",{className:"filter-panel__note body-3",children:D.content}):D.type==="input"?a.jsx(pa,{className:"filter-panel__textfield",placeholder:D.placeholder,ariaLabel:D.displayLabel??D.label,value:h[D.label]??"",onChange:T=>p?.(T,D.label),error:D.error}):!D.multiple&&D.display==="segmented"?a.jsx(Mo,{ariaLabel:D.displayLabel??D.label,options:[...D.allOption?[{key:Kt,label:D.allLabel??f("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...O.map(T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"?T.displayLabel:void 0,X=typeof T!="string"?T.disabled:void 0;return{key:W,label:G??W,disabled:X}})],value:z&&D.allOption?Kt:h[D.label]??"",onChange:T=>p?.(T,D.label),size:32}):!D.multiple&&D.display==="dropdown"?a.jsx($o,{className:"filter-panel__dropdown",ariaLabel:typeof D.label=="string"?D.label:void 0,size:x,options:[...D.allOption?[{value:Kt,label:D.allLabel??f("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...O.map(T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"?T.displayLabel:void 0,X=typeof T!="string"?T.disabled:void 0;return{value:W,label:G??W,disabled:X}})],value:z&&D.allOption?Kt:h[D.label],onChange:T=>p?.(T,D.label)}):a.jsxs("div",{className:D.groups?"filter-panel__item-groups":"filter-panel__items",children:[D.allOption&&!D.groups&&a.jsx(ve,{htmlType:"button",size:"keyboard",label:D.allLabel??f("common.all","\uC804\uCCB4"),selected:z,disabled:D.allOptionDisabled,onClick:()=>p?.(Kt,D.label)}),D.groups?D.groups.map((T,W)=>a.jsxs("div",{className:"filter-panel__item-group",children:[W===0&&D.allOption&&a.jsx(ve,{htmlType:"button",size:"keyboard",label:D.allLabel??f("common.all","\uC804\uCCB4"),selected:z,disabled:D.allOptionDisabled,onClick:()=>p?.(Kt,D.label)}),T.filter(G=>G!=null).map(U)]},W)):O.map(U)]})]})]},D.label)})}),u!=null&&u!==!1&&a.jsx("div",{className:"filter-panel__footer body-3",children:u})]})]})}const Gj=[1,2,3,4,5,6,7,8,9,10,11,12],Hj=[8,6,4,2,1],Ro="show",ba="hide",Lx=["image","word","caption","standardPron"];function Mx(e){return e.some(t=>(t.words??[]).some(o=>!!o.captionBadge||!!o.captionLabel))}function $x(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"caption",disabled:!t.hasCaption,displayLabel:e("wordTable.filter.caption","\uC720\uD615")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Rx(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Px(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function zx(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ox(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ix(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Fx(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wx(e,t){const o=Math.max(1,Math.min(t.itemCount,t.max??t.itemCount));return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[o,...Hj.filter(r=>r<o)].map(r=>({value:`${r}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:r})})),display:"segmented"}}function Gx(e,t){return e>=t?Number.POSITIVE_INFINITY:e}function Vj(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Hx(e){return e==="left"||e==="center"||e==="right"?e:"none"}function Vx(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?Ro:ba,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?Ro:ba,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?Ro:ba}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?Ro:ba}:{}}}function Ux(e,t,o,r){return o===e("wordTable.filter.composition","\uAD6C\uC131")?t===Kt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):o===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):o===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===Ro),!0):o===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):o===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===Ro),!0):o===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===Ro),!0):o===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===Ro),!0):!1}function Uj(e){return"sections"in e}function ms(e){const{t}=Ae.useTranslation(),{title:o,className:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u}=e,d={collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u};if(Uj(e))return a.jsx(ma,{className:r,title:o??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:h,hasColloquial:p,hasCaption:m,contentTypes:b,orientation:v,showOutline:x,cutLine:_,showDivLine:f,setters:C,showCutLine:g=!1,showDivLine2:w=!1,middleSections:S=[],extraSelected:y={},onExtraSelect:k,showPaperBands:B=!1,showTopInfo:E=!0,showBottomInfo:A=!0}=e,j=[$x(t,{hasImage:h,hasColloquial:p,hasCaption:m??!1}),Rx(t),...S,Px(t),...g?[Ix(t)]:[],...w?[Fx(t)]:[],...B?[zx(t),Ox(t)]:[]],D={...Vx(t,{contentTypes:b,orientation:v,showOutline:x,cutLine:_,showDivLine:f,showTopInfo:E,showBottomInfo:A}),...y},N=(z,O)=>{Ux(t,z,O,C)||k?.(z,O)};return a.jsx(ma,{className:r,title:o??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:j,selected:D,onSelect:N,...d,sectionAlign:"horizontal"})}function Oh(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qj(e){return Oh(e).replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ih(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let bs=null,un=null;function Yj(e,t,o,r="",n=""){if(e.length===0||un&&un.iframe.isConnected&&Date.now()-un.at<1e4)return;const i=r?Ih(r):"";bs?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),bs===l&&(bs=null)},bs=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const u=c.contentDocument;if(!u){c.remove();return}un={iframe:c,at:Date.now()},u.open(),u.write(Fh(e,t,o,!0,i,n)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),un?.iframe===c&&(un=null)},0)})}function Fh(e,t,o,r=!1,n="",i=""){n=n?Ih(n):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
857
+ !important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fff;background:var(--color-pureWhite,#fff);border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-cell__form-button,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner,.ihabdevteam-core-scope .word-table__card-actions,.ihabdevteam-core-scope .word-table__card-add,.ihabdevteam-core-scope .word-table__card-close,.ihabdevteam-core-scope .word-table__card-handle{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__card:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table__edit-cell:hover .word-table-cell__score-slot{clip-path:none;display:inline-flex;height:auto;overflow:visible;position:static;width:auto}@media (hover:none){.ihabdevteam-core-scope .word-table-cell__score-slot{clip-path:none;display:inline-flex;height:auto;overflow:visible;position:static;width:auto}}.ihabdevteam-core-scope .word-table-cell__score-slot svg{stroke-width:3.5;stroke-width:var(--word-table-mark-stroke,3.5)}.ihabdevteam-core-scope .word-table--score-readonly .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}.ihabdevteam-core-scope .word-table--score-readonly .word-table-cell__score-slot .button{cursor:default}.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__form-button,.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell--tap-too-small .word-table-cell__play-button{display:none}@media print{.ihabdevteam-core-scope .word-table__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}.ihabdevteam-core-scope .word-table-cell__score-slot svg{stroke-width:2}}.ihabdevteam-core-scope .paper-wrap .word-table-cell__score-slot svg{stroke-width:2}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}.ihabdevteam-core-scope .word-table__frame{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .word-table__card--base{align-items:stretch}`;ue(Aj);const Ha={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Sx(e="landscape"){jt("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:o,printH:r}=Ha[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${o} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Sj(e,t){if(e.length===0)return[[]];const o=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=o)r.push(e.slice(n,n+o));return r}const Ej={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3},13:{cols:5,rows:3},14:{cols:5,rows:3},15:{cols:5,rows:3},16:{cols:6,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4},13:{cols:4,rows:4},14:{cols:4,rows:4},15:{cols:4,rows:4},16:{cols:4,rows:4}}};function Ex(e,t){const o=Ej[e][t];if(o)return o;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=n,i=Math.ceil(r/l)):(i=n,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}function Dj(e,t){const o=Ex(e==="landscape"?"portrait":"landscape",t),r=Math.max(1,Math.ceil(t));if(r<=1)return o;const n=Ha[e],i=e==="landscape"?n.width/2:n.width,l=e==="landscape"?n.height:n.height/2,c=(m,b)=>Math.min(i/m/jx,l/b/Nx),u=Math.max(0,o.cols*o.rows-r),d=c(o.cols,o.rows);let h=o,p=d;for(let m=1;m<=r;m++){const b=Math.ceil(r/m);if(m*b-r>u)continue;const v=c(m,b);v>p&&(h={cols:m,rows:b},p=v)}return p>d*1.05?h:o}const jj={show:"word-table__content--cut-show",dashed:"",corner:"word-table__content--cut-corner",hide:""},jh={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Nh={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},Th={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Lh={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Mh(e){return Object.fromEntries(Object.entries(jh).map(([t,o])=>[t,Th[t]?e(`wordTable.pos.${Th[t]}`,{defaultValue:o}):o]))}function $h(e){return Object.fromEntries(Object.entries(Nh).map(([t,o])=>[t,Lh[t]?e(`wordSearch.filter.type.${Lh[t]}`,{defaultValue:o}):o]))}const Dx={pos:Th,wordType:Lh};function hs(e,t){return e?e.split("/").map(o=>t[o]??o).join("/"):""}function Rh(e,t,o,r){if(r!=="dashed")return{};const n=e%t,i=Math.floor(e/t),l=n<t-1,c=i<o-1;if(!l&&!c)return{};const u="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,h=[],p=[],m=[];return l&&(h.push(d("bottom")),p.push("1px 100%"),m.push("right center")),c&&(h.push(d("right")),p.push("100% 1px"),m.push("center bottom")),{backgroundImage:h.join(", "),backgroundSize:p.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const jx=280,Nj=240,Tj=280,Nx=400,Lj=120,Mj=280;function Ph(e,t){const o=s.useRef(null),[r,n]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{if(!(u>0))return;const h=u/e,p=t&&d>0?d/t:1/0,m=Math.min(1,h,p);n(m),l(Math.max(0,(u-e*m)/2))},[e,t]);return s.useEffect(()=>{const u=o.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const h=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return h.observe(d),()=>h.disconnect()},[c,t]),{scalerRef:o,scale:r,offset:i}}const $j=24,Rj={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Pj=400,Tx=8;function zj(e){return e<=1?"100%":`repeat(${e}, calc((100% - ${e-1} * var(--wt-cell-gap, 0px)) / ${e}))`}function zh({label:e,subLabel:t,colloquialLabel:o,captionLabel:r,captionBadge:n,imageLabel:i,pickForm:l,homonum:c,showWord:u=!0,showImage:d=!0,showPronunciation:h=!0,showColloquial:p=!0,showCaption:m=!0,buttonSize:b=40,wordInfo:v,outerScale:x=1}){const{t:_}=Ae.useTranslation(),f=s.useRef(null),C=s.useRef(null),g=s.useRef(null),[w,S]=s.useState(1),[y,k]=s.useState(!1),[B,E]=s.useState(!1),[A,j]=s.useState({for:"",url:""}),[D,N]=s.useState(null),z=t&&t.length>0?t:uc()?.(e,c)??"",O=Ta()?.(i||e,c)??"",{imgRef:U,loading:T,failed:W,onLoad:G,onError:X}=Dh(O),q=s.useCallback(()=>N(C.current?.getBoundingClientRect()??null),[]),L=s.useCallback(()=>N(null),[]),H=El(!!D,de=>{de?q():L()},C),Z=s.useMemo(()=>{if(!v)return null;const de=[];return v.grade&&de.push(_("wordTable.info.grade",{n:v.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),v.syllables&&de.push(_("wordTable.info.syllables",{n:v.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),v.pos&&de.push(_("wordTable.info.pos",{v:hs(v.pos,Mh(_)),defaultValue:"\uD488\uC0AC: {{v}}"})),v.wordType&&de.push(_("wordTable.info.wordType",{v:hs(v.wordType,$h(_)),defaultValue:"\uC720\uD615: {{v}}"})),de.length?de:null},[v,_]),oe=z||e,P=A.for===oe?A.url:"";s.useEffect(()=>{const de=Ja(),re=z||e;if(!de||!re)return;let I=!1;return Promise.resolve().then(()=>de(re)).catch(()=>"").then(ne=>{!I&&ne&&j({for:re,url:ne})}),()=>{I=!0}},[z,e]);const $=s.useRef(null),R=s.useRef(null);s.useEffect(()=>()=>{g.current?.pause(),R.current?.()},[]);const Y=s.useRef(null);s.useEffect(()=>()=>{Y.current&&(Y.current.cancelled=!0)},[]);const Q=s.useCallback(de=>{if(de.stopPropagation(),y||B){$.current?.();return}if(!P){const I=Tr(),ne=z||e;if(!I||!ne)return;const V={cancelled:!1,stop:null};Y.current=V;const se=()=>{V.cancelled=!0,V.stop?.(),E(!1),k(!1),R.current?.()};$.current=se,R.current=mi(se),E(!0),Promise.resolve().then(()=>I(ne)).then(F=>{if(V.cancelled)return;if(!F){se();return}j({for:ne,url:F});const le=bi(F,()=>{k(!1),R.current?.()});g.current=le.el,V.stop=le.stop,E(!1),k(!0)}).catch(()=>{se()});return}k(!0);const re=bi(P,()=>{k(!1),R.current?.()});g.current=re.el,$.current=re.stop,R.current=mi(re.stop)},[y,B,P,z,e]),ae=d&&!!O&&!W,te=ae&&u?jx:ae?Tj:Nj,J=ae&&u?Nx:ae?Mj:Lj;s.useEffect(()=>{const de=f.current;if(!de||typeof ResizeObserver>"u")return;const re=new ResizeObserver(([I])=>{const{width:ne,height:V}=I.contentRect;S(Math.min(ne/te,V/J))});return re.observe(de),()=>re.disconnect()},[te,J]);const Be=b*x<$j;return a.jsxs("div",{ref:f,className:Se("word-table-cell",Be&&"word-table-cell--tap-too-small",ae?"word-table-cell--with-image":""),"data-ref-w":te,"data-ref-h":J,children:[a.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${w})`},children:[ae&&a.jsxs("div",{className:"word-table-cell__image-wrap",children:[T&&a.jsx("div",{className:"word-table-cell__spinner"}),a.jsx("img",{ref:U,className:"word-table-cell__image",src:O,alt:e,draggable:!1,style:{opacity:T?0:1},onLoad:G,onError:X})]}),m&&(n||r)&&a.jsxs("span",{className:"word-table-cell__caption",children:[n&&a.jsx(co,{fill:"soft",size:"small",label:n}),r&&a.jsx("span",{className:"word-table-cell__caption-tail h5",children:r})]}),u&&a.jsx("span",{className:"word-table-cell__word h0",children:e}),h&&z&&a.jsxs("span",{className:"word-table-cell__sub h3",children:["[",z,"]"]}),p&&o&&a.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",o,"]"]})]}),a.jsxs("div",{className:"word-table-cell__side",children:[a.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":P,children:[a.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,loading:B,showTooltipInfo:B?_("common.loading","\uBD88\uB7EC\uC624\uB294 \uC911"):_("common.play","\uC7AC\uC0DD"),ariaLabel:e?_("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):_("common.play","\uC7AC\uC0DD"),onClick:Q})}),a.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:_("common.pause","\uBA48\uCDA4"),ariaLabel:e?_("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):_("common.pause","\uBA48\uCDA4"),onClick:Q})})]}),v&&a.jsxs("div",{ref:C,className:"word-table-cell__info-button",onPointerEnter:de=>{Ia(de)||q()},onPointerLeave:de=>{Ia(de)||L()},onFocus:()=>{dr()||q()},onBlur:L,children:[a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:_("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:de=>{de.stopPropagation(),H.touchPress()}}),D&&Z&&a.jsx(wa,{anchorRect:D,items:Z,showIndex:!1})]}),l&&a.jsx("div",{className:"word-table-cell__form-button",children:a.jsx(ve,{htmlType:"button",size:b,type:"dot",icon:"replace",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:_("wordTable.pickForm","\uB2E4\uB978 \uAF34\uB85C"),ariaLabel:l.n===null?_("wordTable.pickFormBaseAria","\uAE30\uBCF8\uD615 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"):_("wordTable.pickFormAria",{n:l.n,defaultValue:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"}),onClick:de=>{de.stopPropagation(),l.onPick(de.currentTarget.getBoundingClientRect())}})})]})]})}function kr({title:e,titleIcon:t,disc:o,className:r,orientation:n="landscape",contentTypes:i=["image","word","standardPron"],baseItem:l,baseContentTypes:c,cutLine:u="show",showOutline:d=!0,showDivLine:h=!0,items:p,editCells:m,count:b,activeCell:v=null,onActivateCell:x,onRemoveCell:_,onRemoveItem:f,onReorder:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,indexOffset:y=0,totalCount:k,renderCellAction:B,showFillerAdd:E=!1,fillerAdd:A="first",addableCount:j,contentRef:D,buttonSize:N=40,brand:z,code:O,pageNumber:U,pageNumberPosition:T="right",fitHeight:W=!1,scoring:G=!1,marks:X,onMarkClick:q,scoreIndexOffset:L=0}){const H=s.useCallback((he,Te)=>{q?.(L+he,Te)},[q,L]),Z=(he,Te)=>{const ze=he.filter(Boolean).join(" / ");return ze?Te?P("wordPrint.removePairFor",{name:ze,defaultValue:`${ze} \uB300\uB9BD\uC30D \uBE7C\uAE30`}):P("wordPrint.removeWordFor",{name:ze,defaultValue:`${ze} \uBE7C\uAE30`}):Te?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30")},oe=(he,Te)=>{const ze=X?.[pi(L+he)]??null;return a.jsx("div",{className:Se("word-table-cell__score",ze?"word-table-cell__score--marked":""),style:gt>1?{transform:`translateX(-50%) scale(${gt})`,transformOrigin:"bottom center"}:void 0,children:hi.map(Ye=>a.jsx("span",{className:Se("word-table-cell__score-slot",ze===Ye?"word-table-cell__score-slot--on":""),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",shape:"pill",icon:Kl[Ye],variant:ze===Ye?Xl[Ye]:"default",selected:ze===Ye,useBorder:!1,...vt?{}:{tabIndex:-1,role:"img"},showTooltipInfo:P(`wordTable.scoring.markName.${Ye}`,{defaultValue:Ye}),ariaLabel:P(`wordTable.scoring.${Ye}`,{word:Te,defaultValue:`${Te} ${Ye}`}),onClick:vt?ct=>{ct.stopPropagation(),H(he,Ye)}:void 0})},Ye))})},{t:P}=Ae.useTranslation(),$=m!==void 0,R=e!=null||!!t||!!o,Y=go("(max-width: 767px)"),Q=s.useRef(null),[ae,te]=s.useState(null),J=p?.length??0,Be=k??J,[de,re]=s.useState(null),[I,ne]=s.useState(""),V=s.useRef(null),se=s.useRef(null),F=s.useRef(null),le=s.useRef(null),pe=s.useCallback(he=>{se.current=he,typeof D=="function"?D(he):D&&(D.current=he)},[D]),be=s.useCallback((he,Te)=>{V.current=y+Te,C?.(he,Te),ne(P("wordTable.reorder.moved",{n:y+Te+1,total:Be,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[C,P,Be,y]);s.useEffect(()=>{const he=V.current;he!=null&&(V.current=null,(se.current?.closest(".word-table-block__pages")??se.current)?.querySelector(`[data-wordtable-index="${he}"] .word-table__card-handle button`)?.focus())}),s.useEffect(()=>()=>{le.current?.()},[]);const _e=s.useCallback((he,Te)=>{if(!C||!he.altKey||he.ctrlKey||he.metaKey)return;const ze=he.key==="ArrowRight";if(!ze&&he.key!=="ArrowLeft")return;he.preventDefault();const Ye=Te+(ze?1:-1),ct=y+Ye;ct<0||ct>=Be||be(Te,Ye)},[C,Be,y,be]),Re=s.useCallback((he,Te)=>{if(!C||he.pointerType==="mouse")return;const ze=he.target.closest?.("button");if(ze&&!ze.closest(".word-table__card-handle"))return;le.current?.();const Ye={x:he.clientX,y:he.clientY};let ct=!1;const Vt=Xe=>{ct&&Xe.cancelable&&Xe.preventDefault()};let pt=null,ao=null;const Ot=()=>{const Xe=ao;if(!Xe)return;const lt=document.elementFromPoint?.(Xe.x,Xe.y)?.closest?.("[data-wordtable-cell]"),ht=lt?Number(lt.dataset.wordtableCell):NaN,Mt=Number.isInteger(ht)?ht:null;F.current=Mt,te(Ut=>Ut===Mt?Ut:Mt)},Ke=Xe=>{if(!ct){(Math.abs(Xe.clientX-Ye.x)>Tx||Math.abs(Xe.clientY-Ye.y)>Tx)&&He();return}if(ao={x:Xe.clientX,y:Xe.clientY},typeof requestAnimationFrame>"u"){Ot();return}pt===null&&(pt=requestAnimationFrame(()=>{pt=null,Ot()}))},ee=()=>{pt!==null&&(cancelAnimationFrame(pt),pt=null,Ot());const Xe=F.current,lt=ct;He(),lt&&Xe!=null&&Xe!==Te&&be(Te,Xe)},xe=setTimeout(()=>{ct=!0,re(Te),F.current=Te,te(Te),window.addEventListener("touchmove",Vt,{passive:!1})},Pj);function He(){clearTimeout(xe),window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",ee),window.removeEventListener("pointercancel",ee),window.removeEventListener("touchmove",Vt),ct=!1,pt!==null&&(cancelAnimationFrame(pt),pt=null),F.current=null,le.current=null,re(null),te(null)}le.current=He,window.addEventListener("pointermove",Ke),window.addEventListener("pointerup",ee),window.addEventListener("pointercancel",ee)},[C,be]),{width:ke,height:Ee}=Ha[n],De=typeof W=="number"?W:W&&typeof W=="object"?Y?W.narrow:W.wide:null,{scalerRef:Ie,scale:je,offset:at}=Ph(ke,W?Ee:void 0),Ct=$?m?.length??0:p?.length??0,Fe=Math.max(b??Ct,1),Ue=!$&&!!l,rt=Dj(n,Fe),Ge=Ex(n,Fe),Je=Ue?rt.cols:Ge.cols,st=Ue?rt.rows:Ge.rows,_t=Ue&&n==="landscape"?rt.cols*2:Je,bt=Ue&&n==="portrait"?rt.rows*2:st,At=he=>({word:he.length===0||he.includes("word"),image:he.length===0||he.includes("image"),pron:he.length===0||he.includes("standardPron"),colloq:he.length===0||he.includes("colloquialPron"),caption:he.length===0||he.includes("caption")}),dt=At(i),Qt=s.useMemo(()=>{const he=(p??[]).map(ze=>ze.id),Te=he.every(ze=>typeof ze=="string"&&ze.length>0)&&new Set(he).size===he.length;return!Te&&he.length>0&&jt("wordTable.cellKeyFallback","[ihab/core] WordTable: items \uC758 id \uAC00 \uACB9\uCE58\uAC70\uB098 \uBE44\uC5B4 \uC788\uC5B4 \uCE78\uC744 \uC790\uB9AC \uBC88\uD638\uB85C \uC13C\uB2E4. \uCE78\uC744 \uBE7C\uAC70\uB098 \uB354\uD560 \uB54C \uB4A4 \uCE78\uB4E4\uC774 \uD1B5\uC9F8\uB85C \uB2E4\uC2DC \uADF8\uB824\uC9C4\uB2E4(\uC18C\uB9AC \uC8FC\uC18C\uB97C \uB2E4\uC2DC \uBC1B\uC544 \uC628\uB2E4). id \uB97C \uD45C \uC548\uC5D0\uC11C \uD558\uB098\uBFD0\uC778 \uAC12\uC73C\uB85C \uC9C0\uC5B4 \uC8FC\uBA74 \uADF8 \uAC12\uC774 \uC0AC\uB77C\uC9C4\uB2E4."),Te?he:null},[p]),St=At(c??i),Wt=$?(m??[]).some(he=>he!==null&&he.length>1):(p??[]).some(he=>(he.words??[]).length>1),tt=!!z?.show,Ne=!!z?.show&&z?.top!==!1,it=!!z?.show&&z?.bottom!==!1,ut=z?.copyright??"\xA9 IHAB, Inc. All rights reserved.",yt=me(Se("word-table__content",jj[u],d&&"word-table__content--outline",h&&Wt&&"word-table__content--div-line",!tt&&U&&T!=="none"&&"word-table__content--page-number",Ne&&"word-table__content--brand-top",it&&"word-table__content--brand-bottom")),Tt={transform:`scale(${1/je})`,transformOrigin:"center center"},Ht=N*hi.length+4*(hi.length-1),vt=!!q,gt=vt?Math.max(1,Math.min(1/je,ke/_t/Ht)):1,[Nt,Lt]=s.useState(sh);ui(()=>{if(!G)return;const he=se.current?.querySelector(".word-table-cell__score-slot .button__icon");if(!he)return;const Te=he.getBoundingClientRect().width;Te>0&&Lt(O6(Te))},[G,je,gt,N,J]);const et=a.jsxs("div",{ref:Ie,className:"word-table__scaler",style:{height:Ee*je,"--word-table-mark-stroke":Nt},children:[a.jsx("div",{className:Se("word-table",G&&!vt&&"word-table--score-readonly",!R&&r),style:{width:ke,height:Ee,transform:`scale(${je})`,transformOrigin:"top left",marginLeft:at},children:a.jsxs("div",{ref:pe,className:yt,style:{gridTemplateColumns:`repeat(${_t}, 1fr)`,gridTemplateRows:zj(bt)},children:[$?a.jsx(a.Fragment,{children:(m??[]).map((he,Te)=>a.jsx("div",{className:me(Se("word-table__edit-cell",he?"word-table__edit-cell--filled":"word-table__edit-cell--empty",v===Te?"word-table__edit-cell--active":"")),style:Rh(Te,_t,bt,u),children:he?a.jsxs(a.Fragment,{children:[he.map((ze,Ye)=>a.jsxs(s.Fragment,{children:[Ye>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:ze.word,subLabel:ze.pronunciation,colloquialLabel:ze.colloquialPronunciation,homonum:ze.homonum,showWord:dt.word,showImage:dt.image,showPronunciation:dt.pron,showColloquial:dt.colloq,showCaption:dt.caption,buttonSize:N})]},Ye)),G&&oe(Te,he.map(ze=>ze.word).join(" / ")),_&&a.jsx("div",{className:me("word-table__card-close"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:he.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Z(he.map(ze=>ze.word),he.length>1),onClick:()=>_(Te)})})]}):x&&a.jsx("div",{className:me("word-table__card-add"),style:Tt,children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"plus",variant:"default",ariaLabel:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),showTooltipInfo:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>x(Te)})})},Te))}):a.jsxs(a.Fragment,{children:[Ue&&l&&a.jsx("div",{className:me("word-table__card word-table__card--base"),style:{gridColumn:`1 / span ${rt.cols}`,gridRow:`1 / span ${rt.rows}`,...Rh(0,n==="landscape"?2:1,n==="landscape"?1:2,u)},children:(l.words??[]).map((he,Te)=>a.jsxs(s.Fragment,{children:[Te>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:he.label,subLabel:he.subLabel,colloquialLabel:he.colloquialLabel,captionLabel:he.captionLabel,captionBadge:he.captionBadge,imageLabel:he.imageLabel,pickForm:S&&he.canPickForm?{n:null,onPick:ze=>S(l.id,-1,ze)}:void 0,homonum:he.homonum,showWord:St.word,showImage:St.image,showPronunciation:St.pron,showColloquial:St.colloq,showCaption:St.caption,buttonSize:N,wordInfo:he.grade||he.syllables!=null||he.pos||he.wordType?{grade:he.grade,syllables:he.syllables,pos:he.pos,wordType:he.wordType}:void 0})]},Te))}),(p??[]).map((he,Te)=>a.jsxs("div",{"data-wordtable-cell":C?Te:void 0,"data-wordtable-index":C?y+Te:void 0,className:me(`word-table__card${C?" word-table__card--draggable":""}${ae===Te?" word-table__card--drag-over":""}${de===Te?" word-table__card--dragging":""}`),style:Rh(Te,Je,st,u),draggable:!!C,onPointerDown:C?ze=>Re(ze,Te):void 0,onKeyDown:C?ze=>_e(ze,Te):void 0,onDragStart:C?()=>{Q.current=Te}:void 0,onDragOver:C?ze=>{ze.preventDefault(),te(Te)}:void 0,onDragLeave:C?()=>te(null):void 0,onDrop:C?ze=>{ze.preventDefault(),Q.current!==null&&Q.current!==Te&&C(Q.current,Te),Q.current=null,te(null)}:void 0,onDragEnd:C?()=>{Q.current=null,te(null)}:void 0,children:[(he.words??[]).map((ze,Ye)=>a.jsxs(s.Fragment,{children:[Ye>0&&a.jsx("div",{className:me("word-table__pair-divider")}),a.jsx(zh,{outerScale:je,label:ze.label,subLabel:ze.subLabel,colloquialLabel:ze.colloquialLabel,captionLabel:ze.captionLabel,captionBadge:ze.captionBadge,imageLabel:ze.imageLabel,pickForm:S&&ze.canPickForm?{n:y+Te+1,onPick:ct=>S(he.id,y+Te,ct)}:void 0,homonum:ze.homonum,showWord:dt.word,showImage:dt.image,showPronunciation:dt.pron,showColloquial:dt.colloq,showCaption:dt.caption,buttonSize:N,wordInfo:ze.grade||ze.syllables!=null||ze.pos||ze.wordType?{grade:ze.grade,syllables:ze.syllables,pos:ze.pos,wordType:ze.wordType}:void 0})]},Ye)),G&&oe(Te,(he.words??[]).map(ze=>ze.label).join(" / ")),(B||f||g||w||C)&&a.jsxs("div",{className:me("word-table__card-actions"),children:[f&&a.jsx("div",{className:me("word-table__card-close"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(he.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Z((he.words??[]).map(ze=>ze.label),(he.words??[]).length>1),onClick:()=>f(he.id)})}),g&&a.jsx("div",{className:me("word-table__card-copy"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"copy",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:P("wordTable.copyItem","\uD55C \uCE78 \uB354"),ariaLabel:P("wordTable.copyItemAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uD55C \uCE78 \uB354"}),onClick:()=>g(he.id,y+Te)})}),w&&a.jsx("div",{className:me("word-table__card-replace"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"refresh-cw",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(he.words??[]).length>1?P("wordTable.replacePair","\uB2E4\uB978 \uC30D\uC73C\uB85C"):P("wordTable.replaceItem","\uB2E4\uB978 \uB2E8\uC5B4\uB85C"),ariaLabel:(he.words??[]).length>1?P("wordTable.replacePairAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uC30D\uC73C\uB85C"}):P("wordTable.replaceItemAria",{n:y+Te+1,defaultValue:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uB2E8\uC5B4\uB85C"}),onClick:()=>w(he.id,y+Te)})}),B?.(Te,he),C&&a.jsx("div",{className:me("word-table__card-handle"),children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:P("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:P("wordTable.reorder.handle",{word:(he.words??[]).map(ze=>ze.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})})]})]},Qt?Qt[Te]:Te)),Array.from({length:Math.max(0,Je*st-(p?.length??0))}).map((he,Te)=>{const ze=Je*st,Ye=j??ze,ct=(p?.length??0)+Te<Ye;return a.jsx("div",{className:me("word-table__card word-table__card--filler"),children:E&&x&&ct&&(A==="every"||Te===0)&&a.jsx("div",{className:me("word-table__card-add"),style:Tt,children:a.jsx(ve,{htmlType:"button",size:N,type:"dot",icon:"plus",variant:"default",ariaLabel:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),showTooltipInfo:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>x((p?.length??0)+Te)})})},`filler-${Te}`)})]}),Ne&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"word-table__band word-table__band--top",children:[a.jsx("img",{className:"word-table__brand-logo",src:z?.topLogo?.src??ql,alt:z?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const he=[z?.title&&a.jsx("span",{className:"word-table__paper-title",children:z.title},"t"),z?.owner&&a.jsx("span",{className:"word-table__owner",children:z.owner},"o"),O&&a.jsx("span",{className:"word-table__code",children:O},"c")].filter(Boolean);return he.length===0?null:a.jsx("span",{className:"word-table__ident",children:he.map((Te,ze)=>a.jsxs(s.Fragment,{children:[ze>0&&a.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),Te]},ze))})})()]})}),it&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[a.jsxs("span",{className:"word-table__brand-by",children:[z?.bottomLogo?a.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:z.bottomLogo.src,alt:z.bottomLogo.alt}):a.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),a.jsx("span",{className:"word-table__copyright",children:ut})]}),a.jsxs("span",{className:"word-table__band-end",children:[z?.link&&a.jsx("span",{className:"word-table__link",children:z.link}),U&&T!=="none"&&a.jsx("span",{className:"word-table__page-count",children:P("wordTable.filter.pageIndicator",{current:U.current,total:U.total})})]})]})}),!tt&&U&&T!=="none"&&a.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${T}`,children:P("wordTable.filter.pageIndicator",{current:U.current,total:U.total})})]})}),C&&a.jsx("span",{role:"status",style:Rj,children:I})]}),Et=De==null?et:a.jsx("div",{className:"word-table__frame",style:{height:De},children:et});return R?a.jsx(wr,{type:"page",icon:t,title:e,disc:o,className:Se(me("word-table__section"),r),children:Et}):Et}var Oj=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;gap:var(--spacing-s);justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{cursor:pointer;flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel__collapse-toggle,.ihabdevteam-core-scope .filter-panel__collapse-toggle:active,.ihabdevteam-core-scope .filter-panel__collapse-toggle:hover{background:transparent;border:none;box-shadow:none}.ihabdevteam-core-scope .filter-panel .filter-panel__collapse-toggle[aria-expanded=true]{background:transparent;color:var(--color-gray-a80)}.ihabdevteam-core-scope .filter-panel--collapsible.filter-panel--collapsed:has(>.filter-panel__header:hover){border-color:var(--color-main)}.ihabdevteam-core-scope .filter-panel--collapsible:not(.filter-panel--collapsed)>.filter-panel__header:hover .filter-panel__collapse-toggle{background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs);max-width:50%;min-width:0}.ihabdevteam-core-scope .filter-panel__header-summary{color:var(--color-gray);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto;min-width:0}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ue(Oj);function Ij(e,t,o){const r=[];for(const n of e??[]){if(n.type==="note"||n.type==="input")continue;const i=n.displayLabel??n.label,l=Fj(n,t?.[n.label],o);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function Fj(e,t,o){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(n=>n!==Kt);return r.length===0?e.allOption?e.allLabel??o:null:r.map(n=>Wj(e,n)).join(", ")}function Wj(e,t){const o=[...e.items??[],...(e.groups??[]).flat()];for(const r of o)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function ma({title:e,titleLevel:t=2,headerAction:o,headerSummary:r,collapsible:n=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:c,footer:u,sections:d,selected:h={},onSelect:p,align:m,sectionAlign:b,className:v}){const x=Fo()??Eo,_=(m??(b==="vertical"?"newline":"inline"))==="inline",{t:f}=Ae.useTranslation(),[C,g]=s.useState(i),w=l??C,S=()=>{const D=!w;g(D),c?.(D)},y=D=>{if(!n)return;const N=D.target;!N||typeof N.closest!="function"||N.closest(".filter-panel__collapse-toggle")||N.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||S()},k=s.useMemo(()=>r!==void 0||!w?"":Ij(d,h,f("common.all","\uC804\uCCB4")),[r,w,d,h,f]),B=r??(k?a.jsx("span",{className:"filter-panel__header-summary body-3",children:k}):null),E=e||o||r||n,A=s.useId(),j=t?`h${t}`:"span";return a.jsxs("div",{className:Se("filter-panel",n?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?A:void 0,children:[E&&a.jsxs("div",{className:"filter-panel__header",onClick:n?y:void 0,children:[a.jsx("div",{className:"filter-panel__title-row",children:e&&a.jsx(j,{id:A,className:"filter-panel__title h4",children:e})}),a.jsxs("div",{className:"filter-panel__header-actions",children:[w?B:o,n&&a.jsx(ve,{htmlType:"button",size:x,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),showTooltipInfo:w?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:S})]})]}),!w&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:Se("filter-panel__sections",_?"filter-panel__sections--row":""),children:d.map(D=>{const N=h[D.label],z=N===void 0||(Array.isArray(N)?N.length===0:!1),O=(D.items??[]).filter(T=>T!=null);D.allOption&&O.some(T=>(typeof T=="string"?T:T.value)===Kt)&&jt(`filter-panel-all-value:${D.label}`,`[FilterPanel] '${D.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Kt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const U=T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"&&!!T.disabled,X=typeof T!="string"?T.labels:void 0,q=typeof T!="string"?T.displayLabel:void 0,L=typeof T!="string"?T.tooltip:void 0,H=typeof T!="string"?T.descriptionTooltip:void 0,Z=typeof T!="string"?T.shape:void 0,oe=Array.isArray(N)?N.includes(W):N===W;return a.jsx(ve,{htmlType:"button",size:"keyboard",label:X??q??W,type:D.itemType??(X?"bar":W.length===1?"dot":void 0),selected:oe,disabled:G,shape:Z,showTooltipInfo:!!L,tooltipInfoText:L,tooltipDescription:H,onClick:()=>p?.(W,D.label)},W)};return a.jsxs(s.Fragment,{children:[D.groupLabel&&a.jsxs("div",{className:"filter-panel__group-label-row",children:[a.jsx("div",{className:"filter-panel__group-label body-2",children:D.groupLabel}),D.groupAction]}),a.jsxs("div",{className:Se("filter-panel__section",D.layout==="row"?"filter-panel__section--row":"",D.block?"filter-panel__section--block":""),children:[a.jsxs("div",{className:"filter-panel__section-label-row",children:[a.jsx("span",{className:"filter-panel__section-label body-3",children:D.displayLabel??D.label}),D.labelAction??(D.labelInfo?a.jsx(ln,{...D.labelInfo}):null)]}),D.type==="note"?a.jsx("div",{className:"filter-panel__note body-3",children:D.content}):D.type==="input"?a.jsx(pa,{className:"filter-panel__textfield",placeholder:D.placeholder,ariaLabel:D.displayLabel??D.label,value:h[D.label]??"",onChange:T=>p?.(T,D.label),error:D.error}):!D.multiple&&D.display==="segmented"?a.jsx(Mo,{ariaLabel:D.displayLabel??D.label,options:[...D.allOption?[{key:Kt,label:D.allLabel??f("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...O.map(T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"?T.displayLabel:void 0,X=typeof T!="string"?T.disabled:void 0;return{key:W,label:G??W,disabled:X}})],value:z&&D.allOption?Kt:h[D.label]??"",onChange:T=>p?.(T,D.label),size:32}):!D.multiple&&D.display==="dropdown"?a.jsx($o,{className:"filter-panel__dropdown",ariaLabel:typeof D.label=="string"?D.label:void 0,size:x,options:[...D.allOption?[{value:Kt,label:D.allLabel??f("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...O.map(T=>{const W=typeof T=="string"?T:T.value,G=typeof T!="string"?T.displayLabel:void 0,X=typeof T!="string"?T.disabled:void 0;return{value:W,label:G??W,disabled:X}})],value:z&&D.allOption?Kt:h[D.label],onChange:T=>p?.(T,D.label)}):a.jsxs("div",{className:D.groups?"filter-panel__item-groups":"filter-panel__items",children:[D.allOption&&!D.groups&&a.jsx(ve,{htmlType:"button",size:"keyboard",label:D.allLabel??f("common.all","\uC804\uCCB4"),selected:z,disabled:D.allOptionDisabled,onClick:()=>p?.(Kt,D.label)}),D.groups?D.groups.map((T,W)=>a.jsxs("div",{className:"filter-panel__item-group",children:[W===0&&D.allOption&&a.jsx(ve,{htmlType:"button",size:"keyboard",label:D.allLabel??f("common.all","\uC804\uCCB4"),selected:z,disabled:D.allOptionDisabled,onClick:()=>p?.(Kt,D.label)}),T.filter(G=>G!=null).map(U)]},W)):O.map(U)]})]})]},D.label)})}),u!=null&&u!==!1&&a.jsx("div",{className:"filter-panel__footer body-3",children:u})]})]})}const Gj=[1,2,3,4,5,6,7,8,9,10,11,12],Hj=[8,6,4,2,1],Ro="show",ba="hide",Lx=["image","word","caption","standardPron"];function Mx(e){return e.some(t=>(t.words??[]).some(o=>!!o.captionBadge||!!o.captionLabel))}function $x(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"caption",disabled:!t.hasCaption,displayLabel:e("wordTable.filter.caption","\uC720\uD615")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Rx(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Px(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function zx(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ox(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ix(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Fx(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:Ro,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wx(e,t){const o=Math.max(1,Math.min(t.itemCount,t.max??t.itemCount));return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[o,...Hj.filter(r=>r<o)].map(r=>({value:`${r}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:r})})),display:"segmented"}}function Gx(e,t){return e>=t?Number.POSITIVE_INFINITY:e}function Vj(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:ba,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Hx(e){return e==="left"||e==="center"||e==="right"?e:"none"}function Vx(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?Ro:ba,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?Ro:ba,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?Ro:ba}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?Ro:ba}:{}}}function Ux(e,t,o,r){return o===e("wordTable.filter.composition","\uAD6C\uC131")?t===Kt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):o===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):o===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===Ro),!0):o===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):o===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===Ro),!0):o===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===Ro),!0):o===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===Ro),!0):!1}function Uj(e){return"sections"in e}function ms(e){const{t}=Ae.useTranslation(),{title:o,className:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u}=e,d={collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u};if(Uj(e))return a.jsx(ma,{className:r,title:o??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:h,hasColloquial:p,hasCaption:m,contentTypes:b,orientation:v,showOutline:x,cutLine:_,showDivLine:f,setters:C,showCutLine:g=!1,showDivLine2:w=!1,middleSections:S=[],extraSelected:y={},onExtraSelect:k,showPaperBands:B=!1,showTopInfo:E=!0,showBottomInfo:A=!0}=e,j=[$x(t,{hasImage:h,hasColloquial:p,hasCaption:m??!1}),Rx(t),...S,Px(t),...g?[Ix(t)]:[],...w?[Fx(t)]:[],...B?[zx(t),Ox(t)]:[]],D={...Vx(t,{contentTypes:b,orientation:v,showOutline:x,cutLine:_,showDivLine:f,showTopInfo:E,showBottomInfo:A}),...y},N=(z,O)=>{Ux(t,z,O,C)||k?.(z,O)};return a.jsx(ma,{className:r,title:o??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:j,selected:D,onSelect:N,...d,sectionAlign:"horizontal"})}function Oh(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qj(e){return Oh(e).replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ih(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let bs=null,un=null;function Yj(e,t,o,r="",n=""){if(e.length===0||un&&un.iframe.isConnected&&Date.now()-un.at<1e4)return;const i=r?Ih(r):"";bs?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),bs===l&&(bs=null)},bs=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const u=c.contentDocument;if(!u){c.remove();return}un={iframe:c,at:Date.now()},u.open(),u.write(Fh(e,t,o,!0,i,n)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),un?.iframe===c&&(un=null)},0)})}function Fh(e,t,o,r=!1,n="",i=""){n=n?Ih(n):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
858
858
  `),c="light",u=(()=>{try{return document.documentElement.lang||""}catch{return""}})(),d=i?`<div class="paper-head">${Oh(i)}</div>`:"",h=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(b=>b.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(b=>b.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(b=>b.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(b=>b.remove()),m.querySelectorAll("img").forEach(b=>{b.style.opacity==="0"&&(b.setAttribute("onload","this.style.opacity=''"),b.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${m.outerHTML}</div>`}).join(`
859
859
  `);return`<!DOCTYPE html>
860
860
  <html${u?` lang="${qj(u)}"`:""} data-theme="${c}">
@@ -1073,7 +1073,7 @@ ${y.badge}`:y.badge:void 0;if(B&&h(y.code))return null;if(!y.badge&&!m)return b(
1073
1073
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1074
1074
  `).map((l,c,u)=>a.jsxs(s.Fragment,{children:[l,c<u.length-1&&a.jsx("br",{})]},c))})}),a.jsxs("div",{className:"site-footer__links",children:[a.jsxs("div",{className:"site-footer__column",children:[a.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),a.jsxs("div",{className:"site-footer__column",children:[a.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),a.jsxs("div",{className:"site-footer__column",children:[a.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),a.jsxs("ul",{children:[a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),a.jsx("li",{children:a.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),a.jsx("hr",{className:"site-footer__rule"}),a.jsxs("div",{className:"site-footer__bottom",children:[a.jsx("div",{className:"site-footer__brand",children:a.jsx("img",{src:Up,alt:"IHAB",className:"site-footer__logo"})}),a.jsxs("div",{className:"site-footer__meta",children:[a.jsxs("div",{children:[a.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")})," ",a.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),a.jsxs("div",{children:[a.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")})," ",a.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),a.jsxs("div",{children:[a.jsx("span",{className:"footer-title",children:i("footer.bizNo","\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638")})," ",a.jsx("span",{className:"footer-meta caption-1",children:i("footer.bizNoValue","526-81-02926")})]}),a.jsxs("div",{children:[a.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")})," ",a.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),a.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var rN=".ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{--landing-menu-link-hover:var(--landing-header-link-hover,var(--color-main));align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}";ue(rN);function yC({logo:e,logoAlt:t="",logoHref:o,links:r=[],actions:n,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=Ae.useTranslation(),h=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,m]=s.useState(!1),b=s.useId(),v=s.useRef(null);s.useEffect(()=>{if(!p)return;const C=cr(()=>{const S=document.getElementById(b);S&&S.contains(document.activeElement)&&v.current?.focus(),m(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,w=S=>{S.matches&&m(!1)};return g&&(g.matches&&m(!1),g.addEventListener?.("change",w)),()=>{C(),g?.removeEventListener?.("change",w)}},[p,b]);const x=l?`${l} landing-header__inner`:"landing-header__inner",_=(C,g)=>c?c(C,{onClick:g}):a.jsx("a",{href:C.href,onClick:g,"aria-current":C.current?"page":void 0,children:C.label}),f=C=>c?c(C,{}):a.jsx(Xp,{href:C.href,current:C.current,children:C.label});return a.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[a.jsxs("div",{className:x,children:[e!=null&&(()=>{const C=typeof e=="string"?a.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return o?a.jsx("a",{href:o,className:"landing-header__brand",children:C}):a.jsx("div",{className:"landing-header__brand",children:C})})(),r.length>0&&a.jsx("nav",{className:"landing-header__links",children:r.map((C,g)=>a.jsx("span",{children:f(C)},`${g}:${C.href}`))}),a.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&a.jsx("button",{ref:v,type:"button",onClick:()=>m(C=>!C),"aria-expanded":p,"aria-controls":b,"aria-label":p?h.close:h.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:a.jsxs("span",{className:"landing-header__burger",children:[a.jsx("span",{}),a.jsx("span",{}),a.jsx("span",{})]})})]})]}),r.length>0&&a.jsx("nav",{id:b,hidden:!p,className:"landing-header__drawer",children:a.jsx("div",{className:l??void 0,children:r.map((C,g)=>a.jsx("span",{className:"landing-header__drawer-item",children:_(C,()=>m(!1))},`${g}:${C.href}`))})})]})}var nN=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ue(nN);function wC({children:e,action:t,onClick:o,className:r}){const n=o?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return a.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:a.jsxs("div",{className:n,onClick:o,..._x(o),children:[a.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function iN({mountedRef:e}){const t=s.useRef({phase:"sound",at:0}),o=s.useRef(0),r=s.useRef(null),n=s.useRef(null),i=s.useCallback(()=>{const x=t.current,_=x.phase!=="sound"&&x.at>0;n.current=_?{phase:x.phase,elapsed:Math.max(0,Date.now()-x.at)}:null},[]),l=s.useCallback(()=>{const x=n.current;return n.current=null,x},[]),c=s.useCallback(()=>{o.current+=1,t.current={phase:"sound",at:0}},[]),u=s.useCallback((x,_,f=0)=>{if(!(x>0))return Promise.resolve(!0);const C=o.current;return t.current={phase:_,at:Date.now()-Math.max(0,f)},new Promise(g=>{const w=setTimeout(()=>{r.current===w&&(r.current=null),g(!!e.current&&C===o.current)},x);r.current=w})},[e]),d=s.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),h=s.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=s.useCallback(()=>{const x=t.current;return x.phase!=="sound"&&x.at>0},[]),m=s.useCallback(()=>o.current,[]),b=s.useCallback(x=>x===o.current,[]),v=s.useCallback(()=>{o.current+=1},[]);return s.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),s.useMemo(()=>({positionRef:t,isRunning:p,generation:m,isCurrent:b,abort:c,waitPad:u,enterSound:d,leave:h,pause:i,resume:l,__bumpGenerationForTest:v}),[p,m,b,c,u,d,h,i,l,v])}const Br=9,kC=e=>Math.round(Math.min(Br,Math.max(0,e))/Br*100),BC=e=>e/100*Br,dn=2,Vh=.1,lN=e=>Math.min(dn,Math.max(0,e)),sN=.1,cN=e=>Math.round(e*1e6)/1e6;function pn(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return lN(t);const o=Math.min(Br,Math.max(0,Number(e.level)||0))/Br,r=Number(e.mainVolume);return r>0?o>0?cN(Math.min(dn,Math.max(sN,o/r))):0:1}const AC=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Uh(e){return AC(e)}function vs(e){return AC(e)*pn(e)}function xs(e,t=sc()){const o=Number.isFinite(t)&&t>0?t:1;return Math.min(1,vs(e)/o)}function Va(e,t){const o={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(o.noiseRatio=pn({level:o.level,mainVolume:o.mainVolume})),o}const Ua={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Cs=s.createContext(null);function xi(){return s.useContext(Cs)}const qh=e=>`${lc()}/${e}`,SC=e=>Array.from({length:10},(t,o)=>qh(`${e}-${String(o+1).padStart(2,"0")}.mp3`)),_s={get defaultNoise(){return qh("noise1.mp3")},get street(){return SC("noise2")},get restaurant(){return SC("noise3")},get buzz(){return qh("noise4.mp3")}};function uN(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return _s.defaultNoise;case"street":return _s.street[t];case"restaurant":return _s.restaurant[t];case"buzz":return _s.buzz;default:return null}}function dN({noisePlayer:e,audioRef:t,playbackStateRef:o,sequencer:r}){const n=s.useRef(e?.registerAnalyser);n.current=e?.registerAnalyser;const i=s.useRef(null),[l,c]=s.useState(null),u=s.useRef(null),d=s.useRef(null),h=s.useRef(null),p=s.useRef(null),m=s.useRef(0),b=s.useRef(null),v=s.useCallback(()=>!!r?.isRunning(),[r]),x=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),b.current!==null&&(clearTimeout(b.current),b.current=null)},[]),_=s.useCallback((S,y=250)=>{const k=i.current;if(!k)return;const B=d.current;if(B){d.current=null;try{k.pause()}catch{}k.src=B,k.load()}if(!k.src)return;m.current+=1,x();try{An(),Lr(k).then(D=>{if(i.current===k)try{n.current?.("noise",D)}catch{}})}catch{}const E=k.paused?0:Mr(k);k.paused&&oa(k,0),k.play().catch(()=>{});const A=performance.now(),j=()=>{const D=Math.min(1,(performance.now()-A)/y);try{oa(k,E+(S-E)*D)}catch{}D<1?p.current=requestAnimationFrame(j):p.current=null};p.current=requestAnimationFrame(j)},[x]),f=s.useCallback((S=250,y)=>{const k=i.current;if(!k||k.paused){y?.();return}const B=++m.current;x();const E=performance.now(),A=Mr(k),j=()=>{const D=Math.min(1,(performance.now()-E)/S);try{oa(k,A*(1-D))}catch{}if(D<1)p.current=requestAnimationFrame(j);else{p.current=null,b.current!==null&&(clearTimeout(b.current),b.current=null);try{k.pause()}catch{}y?.()}};p.current=requestAnimationFrame(j),b.current=setTimeout(()=>{if(b.current=null,m.current===B){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(oa(k,0),k.pause(),y?.())}catch{}}},S+150)},[x]);s.useEffect(()=>{const S=document.createElement("audio");return S.loop=!0,S.crossOrigin="anonymous",i.current=S,()=>{x();try{S.pause(),S.removeAttribute("src"),S.load()}catch{}i.current=null,u.current=null,d.current=null}},[x]);const C=e?xs(e.settings):0,g=!!e?.settings.enabled&&C>0;s.useEffect(()=>{if(!g)return;let S=0;const y=setInterval(()=>{const k=i.current;if(!k||k.paused){S=0;return}const B=t.current;if(B&&!B.paused&&!B.ended||v()||o.current==="playing"){S=0;return}S+=1,S>=2&&(S=0,f())},400);return()=>clearInterval(y)},[f,g,t,o,v]),s.useEffect(()=>{const S=()=>{const y=i.current;if(document.hidden){if(y&&!y.paused){x();try{y.pause()}catch{}}return}if(!y||!y.paused)return;const k=t.current,B=!!k&&!k.paused&&!k.ended||v()||o.current==="playing",E=h.current;B&&E?.enabled&&E.volume>0&&_(E.volume)};return document.addEventListener("visibilitychange",S),()=>document.removeEventListener("visibilitychange",S)},[x,_,t,o,v]),s.useEffect(()=>{h.current=e?{enabled:e.settings.enabled,volume:C,type:e.settings.type}:null},[e,e?.settings.enabled,C,e?.settings.type]);const w=s.useRef(null);return s.useEffect(()=>()=>{w.current?.(),w.current=null},[]),s.useEffect(()=>{const S=e?.settings,y=i.current;if(!y)return;const k=S?xs(S):0;if(!S||!S.enabled||k===0){f();return}if(u.current!==S.type){const B=uN(S.type);B&&(u.current=S.type,c(B),d.current=B,f(150,()=>{if(d.current!==B)return;d.current=null,y.src=B,y.load();const E=t.current;if(E&&!E.paused||v()){w.current?.();const A=()=>{y.removeEventListener("canplay",A),w.current===j&&(w.current=null);const D=t.current,N=h.current;(D&&!D.paused&&!D.ended||v())&&N?.enabled&&N.volume>0&&_(N.volume)},j=()=>y.removeEventListener("canplay",A);w.current=j,y.addEventListener("canplay",A)}}))}else{const B=t.current,E=!!B&&!B.paused&&!B.ended||v()||o.current==="playing";if(E&&d.current)_(k);else if(E&&y.paused&&y.src)_(k);else if(!y.paused)if(!E)f();else{x();const A=Mr(y),j=performance.now(),D=()=>{const N=Math.min(1,(performance.now()-j)/150);try{oa(y,A+(k-A)*N)}catch{}N<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)}}},[e?.settings,e?.settings.enabled,C,e?.settings.type,x,_,f,t,o,h,v]),s.useEffect(()=>{const S=i.current;if(S)try{S.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:i,activeNoiseUrl:l,noiseSettingsRef:h,cancelNoiseFade:x,fadeInNoise:_,fadeOutNoise:f}}function pN({ttsText:e,playbackRate:t,mainVolume:o,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:h,onDoneRef:p,handleEndRef:m}){const b=s.useRef(null),v=s.useRef(0),x=s.useRef(null),_=s.useRef(0),f=s.useRef(!1);s.useEffect(()=>()=>{_.current++;try{if(x.current&&(cancelAnimationFrame(x.current),x.current=null),f.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}f.current=!1}}catch{}},[]);const C=(S,y=1)=>{try{const k=(S||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(S||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,y)))}catch{return 1200}},g=s.useCallback(S=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const y=window.speechSynthesis,k=++_.current;try{try{y.cancel()}catch{}const B=S??e,E=Array.isArray(B)?B.filter(O=>!!O):[B||""];E.length===0&&E.push("");const A=Math.max(.3,Math.min(3,t));v.current=E.reduce((O,U)=>O+C(U,A||1),0),b.current=performance.now(),i(0),l("playing"),c("playMode");const j=h.current;j?.enabled&&(j?.volume??0)>0&&u(j.volume);const D=()=>{try{const O=b.current||performance.now(),U=performance.now()-O,T=v.current||1200,W=Math.min(1,U/T);try{r.current&&(r.current.style.left=`${W*100}%`),n.current&&n.current.style.setProperty("--progress",String(W))}catch{}W<1&&(x.current=requestAnimationFrame(D))}catch{}},N=()=>{if(k===_.current)try{x.current&&(cancelAnimationFrame(x.current),x.current=null),i(1),l("stopped");try{m.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},z=O=>{const U=new SpeechSynthesisUtterance(E[O]);try{U.rate=A}catch{}try{U.volume=Math.max(0,Math.min(1,o))}catch{}U.onend=()=>{if(k===_.current){if(O<E.length-1){try{z(O+1)}catch{N()}return}N()}},U.onerror=()=>{N()},U.onstart=()=>{if(!(O>0))try{x.current&&(cancelAnimationFrame(x.current),x.current=null),x.current=requestAnimationFrame(D)}catch{}},f.current=!0,y.speak(U)};try{z(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,o,u,r,n,i,l,c,h,p,m]),w=s.useCallback(()=>{_.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}x.current&&(cancelAnimationFrame(x.current),x.current=null),d(),b.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:g,stopTTS:w}}var hN='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;height:var(--wave-h,90%);position:absolute;transition:height .35s cubic-bezier(.22,.9,.3,1)}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) backwards;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;height:var(--wave-h1,100%);left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;transition:transform .35s cubic-bezier(.22,.9,.3,1);z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;height:var(--wave-h1,100%);left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;transition:transform .35s cubic-bezier(.22,.9,.3,1);z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;height:var(--wave-h1,100%);left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;transition:transform .35s cubic-bezier(.22,.9,.3,1);z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) backwards;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .audio-player__buttons>.button--variant-transparent-white[aria-pressed=true]:not(:hover):not(:focus-visible){background:transparent;color:#fbfdff}.ihabdevteam-core-scope .audio-player__source-buttons .button--variant-transparent-white[aria-pressed=true]{background:var(--color-white);color:var(--color-darkGray)}';ue(hN);const mN=.01,bN=.3;async function gN(e,t,o,r=!1){let n=null;try{const i=window.AudioContext||window.webkitAudioContext;n=new i;const l=await n.decodeAudioData(e.slice(0)),c=l.numberOfChannels>0?l.getChannelData(0):null;if(!c)return null;let u=0;if(r){const b=Math.floor(bN*l.sampleRate),v=Math.min(c.length,b);for(;u<v&&Math.abs(c[u])<=mN;)u++;u>=v&&(u=0)}const d=c.length-u,h=o&&o>0?Math.min(d,Math.floor(o*l.sampleRate)):d,p=Math.max(t,h),m=Math.floor(p/t)||1;return new Array(t).fill(0).map((b,v)=>{const x=u+v*m,_=Math.min(x+m,u+p,c.length);let f=0;for(let C=x;C<_;C++){const g=Math.abs(c[C]);g>f&&(f=g)}return f})}catch{return null}finally{try{n?.close?.()}catch{}}}async function EC(e,t,o,r=!1){try{const n=await fetch(e);if(n.ok===!1)return null;const i=await n.arrayBuffer();return await gN(i,t,o,r)}catch(n){try{const i=Gr(n)}catch{}return null}}const ys=45,DC=74,jC=2;function Ci(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function _i(e){return Ci(e)/45}const fN=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),NC=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function TC({durationsSec:e,leadInMs:t=0,tailMs:o=0}){const r=NC(t),n=NC(o),i=[];let l=0;return e.forEach((c,u)=>{for(const[d,h]of[["lead",r],["sound",fN(c)],["tail",n]])i.push({kind:d,track:u,startMs:l,durMs:h}),l+=h}),{segments:i,totalMs:l,trackCount:e.length}}function LC(e,t){const o=(t|0)*3;if(t<0||o+2>=e.segments.length)return null;const[r,n,i]=[e.segments[o],e.segments[o+1],e.segments[o+2]];return{lead:r,sound:n,tail:i,totalMs:r.durMs+n.durMs+i.durMs}}function vN(e,t){const o=LC(e,t.track);if(!o||!(o.totalMs>0))return 0;const r=o[t.kind],n=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-o.lead.startMs+n)/o.totalMs))}function xN(e,t,o){const r=Math.max(0,Math.floor(o)),n=LC(e,t);if(!n||r===0||!(n.totalMs>0)||n.lead.durMs===0&&n.tail.durMs===0||!(n.sound.durMs>0))return{lead:0,sound:r,tail:0};const i=Math.round(n.lead.durMs/n.totalMs*r),l=Math.round(n.tail.durMs/n.totalMs*r),c=Math.max(1,r-i-l),u=i+c+l-r;return{lead:Math.max(0,i-Math.ceil(u/2)),sound:c,tail:Math.max(0,l-Math.floor(u/2))}}function CN({currentTime:e,sources:t,index:o,audioDuration:r}){const n=o||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function _N({phase:e,phaseElapsedMs:t,currentTime:o,trackDurationSec:r,leadInMs:n,tailMs:i}){const l=TC({durationsSec:[r],leadInMs:n,tailMs:i});return vN(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(o)?o:0)*1e3:t})}function yN({bars:e,trackDurationSec:t,leadInMs:o,tailMs:r}){return xN(TC({durationsSec:[t],leadInMs:o,tailMs:r}),0,e)}function wN(e,t){if(!Array.isArray(e))return null;const o=t||0;return o<e.length-1?o+1:null}function kN({ended:e,completedByEnd:t}){return!!e||!!t}function BN(e){return e.map((t,o)=>({src:t.src,label:String(o+1),color:void 0,duration:t.duration||0}))}function AN(e){return e.reduce((t,o)=>t+(o.duration||0),0)}function SN(e,t,o){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;n.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=o(l,t);c&&n.push({code:l,resolvedPath:c})}}return n}function EN(e,t){if(!t||e.readyState<1)return!0;const o=e.currentSrc||e.src;return o?MC(o)!==MC(t):!0}function MC(e){try{return new URL(e,typeof location>"u"?"http://localhost/":location.href).href}catch{return e}}const $C=4,DN=_i($C/ys);function jN(e){const{src:t,segments:o,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:h,showSoundWaveForm:p=!0,leadInMs:m=0,tailMs:b=0,trackDurationSec:v=0}=e,x=s.useRef(null),_=s.useRef(null),[f,C]=s.useState(null),[g,w]=s.useState(!1),[S,y]=s.useState(null),[k,B]=s.useState(2),[E,A]=s.useState(0),[j,D]=s.useState(null),[N,z]=s.useState(!1),[O,U]=s.useState(!1),T=3,W=3,G=1,X=300,q=s.useRef(0),L=s.useCallback(()=>{const se=x.current,F=_&&_.current?_.current:se?se.closest(".audio-player__wave"):null,le=F?F.getBoundingClientRect():se?se.getBoundingClientRect():null,pe=le?le.width:0,be=le?Math.max(100,le.width):320,_e=le?le.height:0,Re=Math.max(G,Math.min(X,Math.floor((be+W)/(T+W)))),ke=Re*T,Ee=Math.max(0,Re-1),De=Math.max(0,Ee>0?(be-ke)/Ee:W);return{bars:Re,gap:De,height:_e,width:pe}},[]),H=s.useRef(void 0),Z=s.useRef(null),oe=s.useCallback(async(se,F,{quiet:le=!1}={})=>{const pe=++q.current,be=()=>q.current===pe;try{if(le||w(!1),H.current=se,!se){be()&&C(null);return}let _e=F;if(!_e)try{for(let Ee=0;Ee<4&&!(x.current||_.current);Ee++)await new Promise(De=>requestAnimationFrame(De));await new Promise(Ee=>requestAnimationFrame(Ee));const ke=L();ke.height>0&&A(ke.height),_e=ke.bars,B(ke.gap)}catch{_e=120}Z.current=_e;const Re=await EC(se,_e);if(!be())return;if(!Re){C(null),w(!1);return}C(Re),y(_e),w(!0)}catch{if(!be())return;C(null),w(!1)}},[w,C,A,B,y,L]);s.useEffect(()=>{const se=_.current;if(!se||typeof ResizeObserver>"u")return;let F=null;const le=new ResizeObserver(()=>{F!==null&&cancelAnimationFrame(F),F=requestAnimationFrame(()=>{F=null;try{const pe=L();if(pe.width<=0||(pe.height>0&&A(pe.height),Z.current===null||pe.bars===Z.current))return;const be=H.current;B(pe.gap),be?oe(be,pe.bars,{quiet:!0}).catch(()=>{}):Z.current=pe.bars}catch{}})});return le.observe(se),()=>{le.disconnect(),F!==null&&cancelAnimationFrame(F)}},[L,oe]),s.useEffect(()=>{const se=o&&o[0]&&o[0].src||t||o&&o.length===1&&o[0]&&o[0].src;oe(typeof se=="string"?se:void 0).catch(()=>{}),U(!1)},[t,o,oe]),s.useEffect(()=>{let se=!1;if(z(!1),D(null),!i||!S)return;const F=u>0?u*(c||1):void 0;return EC(i,S,F,!0).then(le=>{se||(D(le),le||z(!0))}).catch(()=>{se||(D(null),z(!0))}),()=>{se=!0}},[i,S,u,c]);const P=Math.max(0,Math.min(1,d)),$=s.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),R=S||40,Y=s.useMemo(()=>yN({bars:R,trackDurationSec:v,leadInMs:m,tailMs:b}),[R,v,m,b]),Q=s.useMemo(()=>Array.from({length:R}).map((se,F)=>{const le=F>=Y.lead&&F<Y.lead+Y.sound,pe=Y.sound>0&&le?Math.min(R-1,Math.round((F-Y.lead)/Y.sound*R)):-1,be=le?f&&f[pe]!=null?f[pe]:null:f?0:null,_e=be==null?null:Math.min(1,be/$*P),Re=_e!=null&&E>0&&Ci(_e)<=$C,ke=_e==null?.15:Re?0:_i(_e),Ee=Re,De=R>1?F/(R-1):0;return a.jsx("div",{className:Ee?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ke,"--i":F,"--mix":De}},F)}),[R,f,$,P,E,Y]),ae={"--progress":String(Math.max(0,Math.min(1,r)))},te=s.useMemo(()=>j&&j.length&&Math.max(...j.map(se=>Number.isFinite(se)?Math.abs(se):0))||1,[j]),J=P*Math.max(0,l),Be=!i||!j||!j.length?1:Math.max(1,J),de={"--bar-gap":`${k}px`,"--wave-h":`${Ci(Be)}px`,"--wave-h1":`${ys}px`},re=g&&(i?!!j||N:!0);s.useEffect(()=>{re&&U(!0)},[re]);const I=O?g:re;s.useEffect(()=>{h?.(I)},[I,h]);const ne=S||40,V=s.useMemo(()=>Array.from({length:ne}).map((se,F)=>{const le=j&&j[F]!=null?j[F]:null,pe=le==null?0:Math.abs(le)/te*J,be=Math.max(DN,_i(pe)),_e=ne>1?F/(ne-1):0;return a.jsx("div",{className:"audio-player__bar",style:{"--val":be,"--i":F,"--mix":_e}},F)}),[ne,j,te,J,E]);return a.jsxs("div",{className:"audio-player__wave",ref:_,style:de,children:[i&&a.jsx("div",{className:`audio-player__wave-noise ${re?"is-ready":""}`,"aria-hidden":"true",children:V}),p&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${I?"is-ready":""}`,ref:x,children:Q}),a.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${I?"is-ready":""}`,ref:n,style:ae,children:Q})]})]})}const RC={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function Yh(e,t){return new Promise((o,r)=>{const n=document.createElement("audio");let i=!1;const l=()=>{try{n.removeAttribute("src"),n.load()}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(n.duration)&&n.duration||0;l(),o(d)},u=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):o(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),n.src=e})}const NN=2e3;function PC(e,t=NN){return new Promise(o=>{let r=!1;const n=()=>{r||(r=!0,o())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function TN({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:o=2500}){const r=s.useRef(!1),n=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!n.current.length)return;const d=n.current;n.current=[];for(const h of d)h(!0)},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(u=>{const d=p=>{clearTimeout(h),n.current=n.current.filter(m=>m!==d),u(p)},h=setTimeout(()=>d(!0),o);n.current.push(d)}),[e,t,o]);return s.useEffect(()=>()=>{const u=n.current;n.current=[];for(const d of u)d(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function LN(){const e=s.useRef([]),t=s.useCallback(n=>(e.current.push(n),n),[]),o=s.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{o([])},[o]);return s.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:o,revokeAll:r}}function MN({offsetY:e=8}={}){const t=s.useRef(null),[o,r]=s.useState(null),n=s.useCallback(()=>r(null),[]),i=s.useCallback(()=>{try{const l=t.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return s.useEffect(()=>{if(o)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[o,n]),{ref:t,rect:o,show:i,hide:n}}function $N(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const o=e.seekable;if(o&&o.length>0){const r=o.end(o.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const RN=400,PN=2e3,zC=5;function zN({audioRef:e,fillRef:t,waveProgressRef:o,sourcesRef:r,currentIndexRef:n,sequencer:i,leadInMs:l=0,tailMs:c=0}){const u=s.useRef(null),d=s.useRef(0),h=s.useRef(null),p=s.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null)},[]),m=s.useCallback(()=>{if(u.current!==null)return;let v=0;const x=()=>{if(Da){const _=typeof performance<"u"&&performance.now?performance.now():Date.now();if(v>0&&_-v>RN){const f=h.current===null||_-h.current>PN;if(h.current=_,f&&d.current<zC){d.current+=1;const C=d.current;let g=null;try{g=typeof document<"u"?document.visibilityState:null}catch{}jt(`progress-ticker-slow-frames#${C}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(_-v)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,g==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",C>=zC?`(${C}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${C}\uBC88\uC9F8)`)}}v=_}try{const _=e.current,f=Array.isArray(r.current)?r.current[n.current||0]:void 0,C=!!f&&Number.isFinite(f.duration)&&(f.duration??0)>0,g=C?0:$N(_),w=t.current,S=(l||0)>0||(c||0)>0,y=S&&(i?.positionRef.current?.phase??"sound")!=="sound";if(g===null&&!y)try{w&&w.style.visibility!=="hidden"&&(w.style.visibility="hidden")}catch{}else{const k=C?f.duration:g||0;Da&&y&&!(k>0)&&jt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const B=S?_N({phase:i?.positionRef.current?.phase??"sound",phaseElapsedMs:i?.positionRef.current?Math.max(0,Date.now()-i.positionRef.current.at):0,currentTime:_&&typeof _.currentTime=="number"?_.currentTime:0,trackDurationSec:k,leadInMs:l||0,tailMs:c||0}):CN({currentTime:_&&typeof _.currentTime=="number"?_.currentTime:0,sources:r.current,index:n.current,audioDuration:g??0});try{w&&(w.style.visibility&&(w.style.visibility=""),w.style.left=`${B*100}%`)}catch{}try{o.current?.style.setProperty("--progress",String(B))}catch{}}}catch{}u.current=requestAnimationFrame(x)};u.current=requestAnimationFrame(x)},[e,t,o,r,n,i,l,c]),b=s.useCallback(v=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${v*100}%`)}catch{}try{o.current?.style.setProperty("--progress",String(v))}catch{}},[p,t,o]);return s.useEffect(()=>p,[p]),{start:m,stop:p,settleTo:b}}function yi({btnLabel:e,soundSrc:t,bucketPath:o,onDone:r,disabled:n=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0,leadInMs:d=0,tailMs:h=0}){const{t:p}=Ae.useTranslation(),m=e,b=xi(),v=s.useRef(b?.registerAnalyser);s.useEffect(()=>{v.current=b?.registerAnalyser});const x=s.useRef(null),_=s.useRef(null),f=s.useRef(null),C=LN(),g=s.useRef(null),w=s.useRef(!1),S=s.useRef(null),{ref:y,rect:k,show:B,hide:E}=MN();s.useEffect(()=>()=>{v.current?.("main",null),v.current?.("noise",null)},[]);const[A,j]=s.useState(!1),[D,N]=s.useState("idle"),[z,O]=s.useState("stopped"),U=s.useRef("stopped");s.useEffect(()=>{U.current=z},[z]);const[T,W]=s.useState(0),[G,X]=s.useState("active"),q=s.useRef(!1);s.useEffect(()=>{if(G!=="playMode"||!q.current)return;q.current=!1;const K=typeof document<"u"?document.activeElement:null;if(K&&K!==document.body)return;const ge=f.current?.querySelectorAll("button")[1];try{ge?.focus()}catch{}},[G]);const[L,H]=s.useState(null),[Z,oe]=s.useState(null),[P,$]=s.useState(0),[R,Y]=s.useState(!1),[Q,ae]=s.useState(0),te=b?.playbackRate??1,J=b?.mainVolume??1,Be=b?vs(b.settings):0,de=b?Uh(b.settings):J,[re,I]=s.useState("idle"),[ne,V]=s.useState(""),[se]=s.useState("top"),F=s.useRef(null),le=s.useRef(0),pe=s.useRef(null),be=s.useRef(!0),_e=iN({mountedRef:be}),Re=s.useRef(null),ke=s.useRef(d),Ee=s.useRef(h);s.useEffect(()=>{ke.current=Math.max(0,d||0)},[d]),s.useEffect(()=>{Ee.current=Math.max(0,h||0)},[h]);const{start:De,stop:Ie,settleTo:je}=zN({audioRef:x,fillRef:_,waveProgressRef:pe,sourcesRef:F,currentIndexRef:le,sequencer:_e,leadInMs:d,tailMs:h}),{onReadyChange:at,waitForReady:Ct,markNotReady:Fe}=TN({showSoundWaveForm:c,showNoiseWaveForm:u}),Ue=s.useRef(null),rt=s.useRef(n),Ge=s.useRef(r),Je=s.useRef(null),st=s.useRef(!1),[_t,bt]=s.useState(!1),At=s.useCallback(K=>{st.current=K,bt(K)},[]),dt=s.useRef(null),{activeNoiseUrl:Qt,noiseSettingsRef:St,fadeInNoise:Wt,fadeOutNoise:tt}=dN({noisePlayer:b,audioRef:x,playbackStateRef:U,sequencer:_e}),{startTTS:Ne,stopTTS:it}=pN({ttsText:i,playbackRate:te,mainVolume:de,fillRef:_,waveProgressRef:pe,setProgress:W,setPlaybackState:O,setStateLocal:X,fadeInNoise:Wt,fadeOutNoise:tt,noiseSettingsRef:St,onDoneRef:Ge,handleEndRef:dt});s.useEffect(()=>{Nt.current=it});const ut=K=>{if(typeof window>"u"||!window.speechSynthesis){try{V(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Ne(K);return}he("tts"),Ne(K)},yt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Tt=(!yt||yt.length===0)&&!!i,Ht=Array.isArray(L)&&L.length>0?L:Array.isArray(Z)&&Z.length>0?Z:null,vt=Math.max(Array.isArray(Ht)?Ht.length:0,yt.length);s.useEffect(()=>(be.current=!0,()=>{be.current=!1}),[]);const gt=()=>{_e.abort()},Nt=s.useRef(null),Lt=s.useRef(null),et=s.useRef(null),Et=s.useRef(null);Et.current||(Et.current=()=>{et.current=null;const K=x.current;if(Lt.current==="audio"&&K&&(!K.paused||_e.isRunning())){gt();try{K.pause()}catch{}be.current&&(O("paused"),Ie(),tt())}else if(Lt.current==="tts")try{Nt.current?.()}catch{}});const he=K=>{Lt.current=K,et.current=mi(Et.current)},Te=()=>{et.current?.(),et.current=null};s.useEffect(()=>()=>{Et.current&&Jl(Et.current)},[]);const ze=s.useRef(te);s.useEffect(()=>{ze.current=te||1},[te]);const Ye=s.useCallback(K=>{const ge=ze.current||1;try{K.defaultPlaybackRate=ge}catch{}try{K.playbackRate=ge}catch{}},[]),ct=s.useCallback((K,ge)=>{if(!EN(K,ge)){try{K.currentTime=0}catch{}Ye(K);return}K.src=ge,Ye(K),K.load(),Ye(K)},[Ye]),Vt=s.useCallback(()=>{Je.current&&(clearTimeout(Je.current),Je.current=null),I("idle")},[]),pt=s.useCallback(async(K,ge=3,Ce=50,Me=0)=>{Vt();const Pe=_e.generation(),Ve=!!K&&K.currentTime>0&&!K.ended,mt=Math.max(0,ke.current-Math.max(0,Me));if(mt>0&&!Ve){he("audio"),De(),O("playing");const wt=St.current;if(wt?.enabled&&(wt.volume??0)>0)try{Wt(wt.volume)}catch{}if(!await _e.waitPad(mt,"lead",Me)||!be.current||!_e.isCurrent(Pe))return!1}_e.enterSound();for(let wt=0;wt<ge;wt++){if(!be.current||!_e.isCurrent(Pe))return!1;try{return he("audio"),await K.play(),!0}catch(we){if((we instanceof Error||typeof we=="object"&&we&&"name"in we?we.name:void 0)==="AbortError"){if(!_e.isCurrent(Pe))return!1;await new Promise(M=>setTimeout(M,Ce));continue}try{V(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{V(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,De,_e,Wt,St,Vt]),ao=s.useCallback(K=>{const ge=_e.generation(),Ce=Math.max(0,Ee.current-Math.max(0,K));De();const Me=St.current;if(Me?.enabled&&(Me.volume??0)>0)try{Wt(Me.volume)}catch{}const Pe=()=>{try{Re.current?.()}catch{}};if(Ce<=0){_e.leave(),Pe();return}_e.waitPad(Ce,"tail",K).then(Ve=>{_e.leave(),Ve&&_e.isCurrent(ge)&&Pe()}).catch(()=>{})},[_e,De,Wt,St]),Ot=s.useCallback(()=>{const K=x.current;if(!K)return;const ge=()=>{O("playing"),X("playMode"),Y(!0),De();try{An(),Lr(K).then(Ve=>{if(be.current)try{v.current?.("main",Ve)}catch{}})}catch{}const Pe=St.current;Pe?.enabled&&(Pe?.volume??0)>0&&Wt(Pe.volume)},Ce=()=>{kN({ended:!!K?.ended,completedByEnd:st.current})||(O("paused"),Ie(),tt())},Me=()=>{const Pe=()=>{try{const Ve=F.current,mt=wN(Ve,le.current);if(mt!==null){le.current=mt,$(mt),Y(!0);const wt=Ve?.[mt]&&Ve[mt].src;if(wt&&K){ct(K,wt),pt(K).catch(()=>{});return}}}catch{}O("stopped"),W(1);try{if(K)try{K.currentTime=0}catch{}}catch{}Ie(),Y(!1),tt();try{!rt.current&&dt.current&&dt.current()}catch{}};if(Re.current=Pe,Ee.current>0){De(),_e.waitPad(Ee.current,"tail").then(Ve=>{_e.leave(),Ve&&Pe()}).catch(()=>{});return}Pe()};return K.addEventListener("play",ge),K.addEventListener("pause",Ce),K.addEventListener("ended",Me),()=>{try{K.removeEventListener("play",ge),K.removeEventListener("pause",Ce),K.removeEventListener("ended",Me),Ie()}catch{}}},[Wt,tt,pt,St,De,Ie,_e]);s.useEffect(()=>Ot(),[Ot]),s.useEffect(()=>{rt.current=n},[n]),s.useEffect(()=>{Ge.current=r},[r]),s.useEffect(()=>{if(n||G!=="active")return;const K=S.current;if(!K)return;let ge=null;const Ce=requestAnimationFrame(()=>{try{const Me=K.getTotalLength();if(!Me)return;const Pe=Me*.2;K.style.strokeDasharray=`${Me-Pe} ${Pe}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);ge=document.createElement("style"),ge.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Me}}}`,document.head.appendChild(ge),K.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ce),ge?.remove()}},[G,n]),s.useEffect(()=>{F.current=L},[L]),s.useEffect(()=>{le.current=P},[P]),s.useEffect(()=>{const K=f.current,ge=g.current;if(!K||!ge)return;let Ce=null;const Me=32,Pe=60,Ve=()=>{try{const wt=Array.from(K.querySelectorAll(":scope > .button"));let we=0;wt.forEach(qe=>{if(qe===ge)return;const ot=qe.getBoundingClientRect();we+=ot.width});const M=K.getBoundingClientRect().width,ie=Math.max(0,Math.floor(M-we-8)),ye=vt;if(!ye||ie<=0){Array.from(ge.children).forEach(qe=>{try{qe.style.width=""}catch{}});return}let Oe=Math.floor(ie/ye);Oe>Pe&&(Oe=Pe),Oe<Me&&(Oe=Math.max(Me,Math.floor(ie/ye))),Array.from(ge.querySelectorAll(".button")).forEach(qe=>{try{qe.style.width=`${Oe}px`}catch{}})}catch{}},mt=requestAnimationFrame(Ve);try{Ce=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Ce.observe(K),Ce.observe(ge),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(mt)}catch{}try{Ce&&(Ce.disconnect(),Ce=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[L,Z,vt]),s.useEffect(()=>()=>{try{Ue.current&&(clearTimeout(Ue.current),Ue.current=null),Je.current&&(clearTimeout(Je.current),Je.current=null)}catch{}},[]);const Ke=(K,ge)=>{H(K),ae(ge),Fe(),oe(BN(K)),F.current=K},ee=()=>{X("playMode"),$(0),Y(!0)},xe=async(K,ge)=>{At(!1),w.current=!1,ct(K,ge),await PC(K),await Ct()!==!1&&(j(!1),ee(),await pt(K))},He=async(K,ge=!1)=>{const Ce=x.current;j(!0),N("measuring_duration");try{const Me=await Yh(K,{timeoutMs:1e4,rejectOnError:!0});Ke([{src:K,objectUrl:null,duration:Me}],Me),N("ready"),ge&&Ce&&await xe(Ce,K)}finally{w.current=!1,j(!1)}},Xe=async(K,ge=!1)=>{const Ce=x.current;j(!0),N("measuring_duration");try{const Me=await Promise.all(K.map(Ve=>Yh(Ve,{timeoutMs:1e4})));if(!be.current)return;const Pe=K.map((Ve,mt)=>({src:Ve,objectUrl:null,duration:Me[mt]||0}));Ke(Pe,AN(Pe)),N("ready"),ge&&Ce&&Pe.length>0&&await xe(Ce,Pe[0].src)}finally{w.current=!1,j(!1)}},lt=async(K=!1,ge=!0)=>{const Ce=x.current,Me=t?Array.isArray(t)?t:[t]:[];if(!Me||Me.length===0||!Me.some(Boolean))return!1;if(w.current)return null;w.current=!0,ge&&j(!0),N("resolving");try{const Pe=SN(t,o,Ei),Ve=[];let mt=0;for(const wt of Pe){let we=wt.src??null,M=null;if(!we&&wt.resolvedPath){try{N("getting_signed_url"),we=await kn(wt.resolvedPath)}catch{we=null}if(!be.current)return!1;if(!we)try{N("downloading");const ye=await Di(wt.resolvedPath);if(!be.current)return!1;if(ye){const Oe=ye instanceof Blob?ye:new Blob([ye]);M=C.track(URL.createObjectURL(Oe)),we=M}}catch{N("error");try{V(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),X("active")}catch{}}}if(!we)continue;let ie=0;try{N("measuring_duration"),ie=await Yh(we,{timeoutMs:3e3})}catch{ie=0}if(!be.current){if(M)try{URL.revokeObjectURL(M)}catch{}for(const ye of Ve)if(ye.objectUrl)try{URL.revokeObjectURL(ye.objectUrl)}catch{}return!1}mt+=ie||0,Ve.push({...wt,src:we,objectUrl:M,duration:ie})}if(Ke(Ve,mt),Ve.length>0&&K&&Ce){const wt=Ve[0];At(!1);try{C.keepOnly(Ve.map(we=>we.objectUrl))}catch{}if(N("ready"),w.current=!1,wt.src&&Ce)try{if(ct(Ce,wt.src),await PC(Ce),await Ct()===!1)return!1;ge&&j(!1),ee(),Ce&&await pt(Ce)}catch{ge&&j(!1)}else ge&&j(!1);X("playMode"),$(0),Y(!0)}return Ve.length>0}finally{w.current=!1,ge&&j(!1),N(Pe=>Pe==="ready"?"ready":"idle")}},ht=async K=>{const ge=_e.isRunning();if(K.paused&&!ge){if(st.current){await Ut();return}const Ce=_e.resume();if(Ce){if(O("playing"),Ce.phase==="tail"){ao(Ce.elapsed);return}await pt(K,3,50,Ce.elapsed);return}await pt(K),O("playing")}else _e.pause(),gt(),K.pause(),O("paused"),ge&&(Ie(),tt())},Mt=async()=>{const K=x.current;if(!(!K&&!Tt)){if(Tt){const ge=window.speechSynthesis;if(G==="active"){const Ce=Ja(),Me=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ce&&Me.length>0){if(w.current)return;X("load"),j(!0),N("synthesizing"),w.current=!0;try{const Pe=await Promise.all(Me.map(Ve=>Promise.resolve(Ce(Ve))));Pe.length>1?await Xe(Pe,!0):await He(Pe[0],!0)}catch{w.current=!1,j(!1),X("active"),ut(Me.length>0?Me:void 0)}return}ut(Me.length>0?Me:void 0);return}if(G==="playMode"){const Ce=!!ge&&(ge.speaking||ge.paused)&&!(K&&(K.currentSrc||K.getAttribute("src")));if(K&&!Ce){await ht(K);return}try{if(ge&&ge.paused)try{he("tts"),ge.resume(),O("playing")}catch{}else try{ge.pause(),O("paused")}catch{}}catch{}}return}if(G==="active"){if(n&&Array.isArray(F.current)&&F.current.length>0){const Ce=F.current[0];try{if(Ce.src&&K)try{ct(K,Ce.src),ee(),K&&await pt(K)}catch{}ee();return}catch{}}X("load");let ge;try{ge=await lt(!0)}catch{ge=!1}if(ge===!1&&be.current){try{V(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}X("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{K&&await ht(K)}catch(ge){(ge instanceof Error||typeof ge=="object"&&ge&&"name"in ge)&&ge.name}}},Ut=async()=>{const K=x.current;if(K)try{const ge=F.current;if(Array.isArray(ge)&&ge.length>1){await ko(0);return}At(!1);try{K.currentTime=0}catch{}K&&await pt(K),O("playing"),X("playMode")}catch{}},Po=()=>{gt(),Te(),Nt.current?.();const K=x.current;try{if(K){try{K.pause()}catch{}try{K.currentTime=0}catch{}}}catch{}tt(),O("stopped"),X("active"),W(0),Y(!1)},_o=async(K,{sameSegment:ge=!1}={})=>{gt();const Ce=_e.generation(),Me=x.current,Pe=F.current?.[K]?.src;try{if(At(!1),$(K),Y(!0),le.current=K,!Pe||!Me||(ge||Fe(),ct(Me,Pe),!ge&&await Ct()===!1)||!_e.isCurrent(Ce)||(await pt(Me),!_e.isCurrent(Ce)))return;O("playing"),X("playMode")}catch{}},zo=async()=>{const K=F.current,ge=le.current||0;if(!K||ge<=0){await Ut();return}await _o(ge-1)},wo=async()=>{const K=F.current,ge=le.current||0;if(!K||ge>=K.length-1){Po();return}await _o(ge+1)},no=()=>{if(st.current)return;const K=200,ge=340;At(!0),gt(),Te();try{W(1)}catch{}je(1);try{I("hold")}catch{}try{const Ce=x.current,Me=Tt&&!!Ce?.src;if(!Tt||Me){if(Ce){Ce.pause();try{Ce.currentTime=0}catch{}}}else it();tt()}catch{}try{O("stopped")}catch{}if(Y(!1),!rt.current)try{Je.current&&(clearTimeout(Je.current),Je.current=null),Je.current=setTimeout(()=>{try{I("out")}catch{}Je.current=setTimeout(()=>{try{typeof Ge.current=="function"&&Ge.current(!0)}catch{}try{I("idle")}catch{}Je.current=null},ge)},K)}catch{}};s.useEffect(()=>{dt.current=no});const yo=s.useCallback(()=>V(""),[]),ko=async K=>{(F.current||[])[K]&&await _o(K,{sameSegment:K===le.current})},uo=z==="playing",It=s.useMemo(()=>{if(!Z||Z.length<=1)return Z;const K=Z[P];return K?[K]:Z},[Z,P]),$t=n===!0;s.useEffect(()=>{try{const K=x.current;K&&typeof K.playbackRate=="number"&&Ye(K)}catch{}},[te,Ye]);const qt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const K=x.current;if(!K)return;const ge=Math.max(0,Math.min(1,de)),Ce=qt.current,Me=()=>{Ce.raf!==null&&(cancelAnimationFrame(Ce.raf),Ce.raf=null),Ce.timer!==null&&(clearTimeout(Ce.timer),Ce.timer=null)};Me();const Pe=Mr(K);if(K.paused||Math.abs(Pe-ge)<.001||typeof requestAnimationFrame!="function"){try{oa(K,ge)}catch{}return}const Ve=performance.now(),mt=()=>{const wt=Math.min(1,(performance.now()-Ve)/150);try{oa(K,Pe+(ge-Pe)*wt)}catch{}Ce.raf=wt<1?requestAnimationFrame(mt):null};return Ce.raf=requestAnimationFrame(mt),Ce.timer=setTimeout(()=>{Me();try{oa(K,ge)}catch{}},200),Me},[de]);const Ft=re==="hold",ga=re==="out",Go=G==="playMode"&&!A&&!_t||Ft||ga,Ya=z!=="stopped"||Ft||ga,ta=z==="paused",fe=Math.max(0,Math.min(100,(T||0)*100)),Le=Se("audio-player__fill",Go?"is-visible":"",Ya?"is-expanded":"",ta?"is-paused":"",ga?"is-out":"");return a.jsxs("div",{className:`audio-player ${$t?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[a.jsxs("div",{className:`audio-player__panel ${uo?"is-playing":""} ${A?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[A?a.jsxs("div",{className:"audio-player__loading",role:RC[D]?"status":void 0,"aria-live":RC[D]?"polite":"off",children:[a.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),a.jsx("span",{className:"audio-player__loading-text",children:p("training.audioStatus.preparing",{defaultValue:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"})})]}):null,G==="active"?a.jsx("button",{className:"audio-player__button",type:"button",disabled:$t,onClick:()=>{q.current=us(),E(),Mt()},"aria-label":typeof m=="string"?m:p("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:E,onFocus:B,onBlur:E,children:a.jsx("span",{ref:y,className:"audio-player__button-triangle-wrap",children:a.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:a.jsx("path",{ref:S,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,k&&a.jsx(Jo,{anchorRect:k,text:typeof m=="string"&&m?m:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),a.jsxs("div",{className:`audio-player__play ${G==="playMode"||uo?"is-visible":""}`,inert:!(G==="playMode"||uo)||void 0,children:[a.jsxs("div",{ref:f,className:"audio-player__buttons",children:[a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:zo,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:uo?"pause":"play",onClick:Mt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":uo,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Po,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),vt>1?a.jsx("div",{ref:g,className:"audio-player__source-buttons",children:Array.from({length:vt}).map((K,ge)=>a.jsx(ve,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ge+1),onClick:()=>{try{ko(ge)}catch{}},ariaLabel:p("training.sourcePlay",{n:ge+1}),variant:"transparent-white",selected:R&&P===ge,disabled:G!=="playMode"||!(Array.isArray(L)&&L[ge]),showTooltipInfo:!0},ge))}):null,!Array.isArray(L)||L.length<=1?a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ut,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:wo,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:no,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),a.jsxs("div",{className:"audio-player__slider",children:[a.jsx("div",{className:Le,ref:_,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||u)&&a.jsx(jN,{segments:It,progress:T,totalDuration:Q,waveProgressRef:pe,showSoundWaveForm:c,leadInMs:d,tailMs:h,trackDurationSec:L?.[P]?.duration??0,noiseSrc:u&&b?.settings.enabled&&Be>0?Qt:null,noiseRatio:b?pn(b.settings):0,noiseSpeed:b?.settings.speed??1,mainVolume:J,onReadyChange:at})]})]}),a.jsx("audio",{ref:x,crossOrigin:"anonymous",preload:"auto"})]}),!c&&a.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[a.jsx(nt,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),a.jsx(yr,{message:ne,position:se,onClose:yo})]})}var ON=".ihabdevteam-core-scope .text-box-tooltip{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .text-box-tooltip__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-box-tooltip__box{background:transparent}.ihabdevteam-core-scope .text-box-tooltip__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .text-box-tooltip__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .text-box-tooltip__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .text-box-tooltip__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .text-box-tooltip__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .text-box-tooltip.is-dark .text-box-tooltip__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .text-box-tooltip__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;color:var(--color-on-brand-fill,#fff);display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .text-box-tooltip__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .text-box-tooltip__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .text-box-tooltip__line-text{flex:1 1 auto}.ihabdevteam-core-scope .text-box-tooltip__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .text-box-tooltip.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .text-box-tooltip.is-dark .text-box-tooltip__text{color:var(--color-deepWhite)}";ue(ON);function hn(e){const{t}=Ae.useTranslation(),{text:o,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:h,decrease:p,canIncrease:m,canDecrease:b,fontSize:v,lineHeight:x}=jl({storageKey:"tooltip-fontScale"}),_=s.useCallback(()=>d(S=>S==="dark"?"light":"dark"),[]),f=s.useCallback(S=>{try{S.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(o)?o:typeof o>"u"||o===null?[]:[o],g={fontSize:`${v}px`,lineHeight:`${x}px`,"--tt-line-height":`${x}px`,"--tt-marker-size":"28px"},w=a.jsxs("div",{className:me(`text-box-tooltip__root ${u==="dark"?"is-dark":""}`),children:[a.jsxs("div",{className:me("text-box-tooltip__box"),children:[r&&a.jsx("div",{className:me("text-box-tooltip__label body-2b"),children:r}),a.jsx("div",{className:me("text-box-tooltip__text body-1"),style:g,children:C.map((S,y)=>a.jsxs("div",{className:me("text-box-tooltip__line"),children:[C.length>1?a.jsx("div",{className:me("text-box-tooltip__marker"),children:a.jsx("span",{className:me("text-box-tooltip__line-number button-1"),children:y+1})}):null,a.jsx("span",{className:me("text-box-tooltip__line-text"),children:S})]},y))})]}),a.jsxs("div",{className:me("text-box-tooltip__buttons"),children:[a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!b}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:h,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:_,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:f,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return n?a.jsx(fo,{anchorRect:n,className:me(`text-box-tooltip ${u==="dark"?"is-dark":""}`),onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:w}):a.jsx("div",{className:me(`text-box-tooltip ${u==="dark"?"is-dark":""}`),children:w})}var IN=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;height:56px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .pp-bottom__meters--floating{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-trigger{display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__locked-hint{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,minmax(0,200px));justify-content:center}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ue(IN);var FN='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}@media (forced-colors:active){.ihabdevteam-core-scope .bullet__dot{forced-color-adjust:none}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:Highlight;border-color:Highlight}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:HighlightText}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{display:none}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:3px solid CanvasText}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border-color:GrayText}.ihabdevteam-core-scope .ts-bullet__line{background:GrayText;forced-color-adjust:none}.ihabdevteam-core-scope .ts-bullet--done .ts-bullet__line{background:CanvasText}}';ue(FN);function Kh({state:e="disabled"}){const{t}=Ae.useTranslation();return a.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[a.jsx("div",{className:"bullet__dot",children:a.jsx(nt,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),a.jsx("div",{className:"ts-bullet__line"})]})}function OC(e,t,o){const r=s.useRef(t),n=s.useRef(o);s.useEffect(()=>{r.current=t,n.current=o}),s.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const c=()=>{i=null;const u=r.current(),d=u?Array.from(u.querySelectorAll(Zo)).find(h=>!h.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const u=document.activeElement;if(!u||u===document.body||!document.contains(u)||u.closest(".tooltip__content")){const d=n.current();if(d)try{d.focus()}catch{}}}},[e])}var WN=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ue(WN);function Xh({title:e,children:t,className:o="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:h=!1}){const{t:p}=Ae.useTranslation(),m=go("(max-width: 767px)"),b=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${o}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),x=s.useRef(null),[_,f]=s.useState(!1),[C,g]=s.useState(null),[w,S]=s.useState(null);OC(_&&!!C,()=>{if(typeof document>"u")return null;const A=Array.from(document.querySelectorAll(".tooltip__content"));for(let j=A.length-1;j>=0;j--)if(A[j].querySelector(".text-box-tooltip__root"))return A[j];return null},()=>x.current?.querySelector("button")??null);const y=s.useRef(i);s.useEffect(()=>{y.current=i});const k=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(A=>typeof A=="string"||typeof A=="number")?l.join(""):"",[l]),B=s.useCallback(()=>{f(!1),g(null),S(null)},[]);s.useEffect(()=>{if(!_)return;let A;try{typeof y.current=="function"&&(A=y.current())}catch{}if(A===!1){B();return}S(typeof A<"u"&&A!==null?A:null)},[k]);const E=s.useCallback(()=>{let A;try{typeof i=="function"&&(A=i())}catch{}if(A!==!1){if(S(typeof A<"u"&&A!==null?A:l),!x.current){f(j=>!j);return}if(_)f(!1),g(null),S(null);else{const j=x.current.getBoundingClientRect();g(j),f(!0)}}},[i,l,_]);return a.jsxs("div",{className:v,children:[a.jsx("p",{className:b,children:a.jsx("span",{className:"training-step__title-text",children:e??t})}),n||u?a.jsxs("div",{className:"title-controls",children:[a.jsxs("div",{className:"title-buttons",children:[u&&a.jsx(ve,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:h,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||h,onDisabledClick:h&&r!=="disabled"?()=>{}:void 0}),n&&a.jsx("div",{ref:x,children:a.jsx(ve,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:E,className:_?"is-selected":void 0,"aria-expanded":_,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),_&&a.jsx(hn,{text:w??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Zh(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function qa({index:e,stepIndex:t,isLast:o=!1,title:r="",titleProps:n={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0,lockedHint:d}){const{t:h}=Ae.useTranslation(),[p,m]=s.useState(()=>Zh(e,t));s.useEffect(()=>{const y=Zh(e,t);if(y!==p){const k=setTimeout(()=>m(y),0);return()=>clearTimeout(k)}},[e,t,p]);const b=s.useCallback((...y)=>{Zh(e,t)==="done"||p==="done"||typeof c=="function"&&c(...y)},[e,t,p,c]),[v,x]=s.useState(!1),[_,f]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),C=s.useCallback(y=>{if(!y)return null;try{const k=y;if(typeof y=="object"&&(k.currentTarget||k.target)&&(k.nativeEvent||k.type)){const A=k.currentTarget??k.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(y instanceof DOMRect)return y;const B=y;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const E=y?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),g=s.useCallback((y,{text:k="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:A="center",alignY:j="top"}={})=>{const D=C(y);f({text:k,label:B,anchorRect:D,backdrop:E,alignX:A,alignY:j}),x(!0)},[C]),w=s.useCallback(()=>{x(!1),f(y=>({...y,anchorRect:null}))},[]),S=s.Children.map(i,y=>{if(s.isValidElement(y)){const k=y;if(typeof k.type=="string")return k;const B=k.props??{},E=typeof B.onDone=="function"?B.onDone:b,A=typeof B.disabled=="boolean";let j=p==="disabled";return A&&(j=!!B.disabled),s.cloneElement(k,{onDone:E,disabled:j,showTooltip:g,hideTooltip:w})}return y});return a.jsxs("div",{className:`training-step training-step--${p} ${o?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[a.jsx(Kh,{state:p}),a.jsxs("div",{className:"training-step__content",children:[a.jsx(Xh,{state:p,title:r,...n,useFaded:u}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&a.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),S]}),v?a.jsx(fo,{anchorRect:_.anchorRect,backdrop:_.backdrop,onClose:w,ariaLabel:h("tooltip.textbox","\uBCF8\uBB38"),children:a.jsx(hn,{text:_.text,onClose:w})}):null]})}var GN='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .text-box-tooltip__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ue(GN);function Jh({context:e,state:t="disabled",theme:o="light"}){const{t:r}=Ae.useTranslation(),[n,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||o}catch{return o}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(N=>N==="dark"?"light":"dark"),{increase:d,decrease:h,canIncrease:p,canDecrease:m,fontSize:b,lineHeight:v}=jl({storageKey:"textbox_fontScale"}),[x,_]=s.useState(""),f=s.useRef(null),C=s.useRef(!1),g=s.useCallback(()=>{C.current=us()&&!!f.current&&f.current.contains(document.activeElement),i("active")},[]),w=s.useCallback(()=>_(""),[]),S=N=>{try{_(N)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(t!=="disabled"){const N=setTimeout(()=>i(t),0);return()=>clearTimeout(N)}},[t]);const k=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,E]=s.useState(k);B!==k&&(E(k),i("disabled"));const A=t==="disabled"?n:t,j=A==="disabled"?"training-text-box--disabled":A==="active"?"training-text-box--active":A==="done"?"training-text-box--done":"",D=s.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${v}px`}),[b,v]);return s.useEffect(()=>{if(A==="disabled"||!C.current)return;C.current=!1;const N=document.activeElement;N&&N!==document.body||f.current?.querySelector(".training-text-box__buttons button")?.focus()},[A]),a.jsxs("div",{ref:f,className:`training-text-box ${j} ${A!=="disabled"&&l==="dark"?"is-dark":""}`,children:[A==="disabled"&&a.jsx("div",{className:"training-text-box__preview",children:a.jsx(ve,{htmlType:"button",size:48,type:"bar",onClick:g,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),a.jsx("div",{className:"training-text-box__area","aria-hidden":A==="disabled",children:a.jsx("span",{className:"training-text-box__inner h3",style:D,children:k})}),A!=="disabled"&&a.jsxs("div",{className:"training-text-box__buttons","aria-hidden":A==="disabled",children:[a.jsx(ve,{htmlType:"button",size:32,type:"dot",onClick:h,onDisabledClick:()=>S(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),a.jsx(ve,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>S(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),a.jsx(ve,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),a.jsx(yr,{message:x,position:"top",onClose:w})]})}function Ar(e){return e==="active"||e==="done"}function ws({index:e,stepIndex:t,isLast:o=!1,lockedHint:r,title:n,useTitleFaded:i,onDone:l,onChange:c,answer:u,wrongAnswers:d,choices:h,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:b=!1,choiceIcons:v,shuffleChoices:x=!0}){const{t:_}=Ae.useTranslation(),f=n??_("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),C=typeof e=="number"?e:-1,g=typeof t!="number"?"disabled":C<t?"done":C===t?"active":"disabled",w=Array.isArray(h)&&h.length?h:typeof u<"u"?[u].concat(Array.isArray(d)?d:[]):void 0,S=d?d.join("||"):"",y=h?h.join("||"):"",[k,B]=s.useState(()=>Array.isArray(w)?x?ft(w):w.slice():void 0);s.useEffect(()=>{Array.isArray(w)&&w.length?B(x?ft(w):w.slice()):B(void 0)},[u,S,y,x]);const[E,A]=s.useState(null),[j,D]=s.useState(()=>new Set);s.useEffect(()=>{A(null),D(new Set)},[y,u,S]);const N=s.useRef(void 0);s.useEffect(()=>{const U=N.current;typeof U=="number"&&typeof t=="number"&&typeof e=="number"&&U>=e&&t<e&&(A(null),D(new Set)),N.current=t},[t,e]);const z=s.useCallback(U=>{if(!Ar(g))return;const T=k?.[U];if(T==null)return;const W=T;if(p){const G=new Set(j);G.has(W)?G.delete(W):G.add(W),D(G),typeof c=="function"&&c({selectedValues:[...G],__ts:Date.now()}),typeof l=="function"&&l({selectedValues:[...G],__ts:Date.now()})}else A(W),typeof c=="function"&&c({selectedIndex:U,selectedValue:W,__ts:Date.now()}),typeof l=="function"&&l({selectedIndex:U,selectedValue:W,__ts:Date.now()})},[k,g,p,c,j]),O=`training-step__buttons${Array.isArray(k)&&k.length>3?" training-step__buttons--wrap-3":""}`;return a.jsx(qa,{index:e,stepIndex:t,isLast:o,lockedHint:r,title:f,useTitleFaded:i,children:a.jsx("div",{className:O,children:Array.isArray(k)&&k.length>0?k.map((U,T)=>a.jsx(ve,{htmlType:"button",size:56,type:"bar",onClick:()=>z(T),ariaLabel:String(U),label:U,useLabel:!0,icon:v?v[String(U)]:void 0,variant:"default",disabled:g==="disabled",selected:p?j.has(U):E===U,useDisabledCovered:b,minWidth:0},String(U))):null})})}function ks({index:e,stepIndex:t,isLast:o=!1,lockedHint:r,title:n,onDone:i,onChange:l,context:c,demoSelected:u}){const{t:d}=Ae.useTranslation(),h=n??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",b=c&&typeof c=="object"?c.sentence||"":typeof c=="string"?c:"",v=c&&typeof c=="object"?c.choices:void 0,[x,_]=s.useState(u??null),f=`${String(b)}\0${JSON.stringify(v??null)}`,[C,g]=s.useState(f);C!==f&&(g(f),u==null&&_(null));const[w,S]=s.useState(u);Object.is(w,u)||(S(u),_(u??null));const y=s.useRef(void 0);s.useEffect(()=>{const A=y.current;typeof A=="number"&&typeof t=="number"&&typeof e=="number"&&A>=e&&t<e&&u==null&&_(null),y.current=t},[t,e,u]);const k=s.useCallback(A=>{const j=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof l=="function"&&l(j),Ar(m)&&typeof i=="function"&&i(j)},[l,m,i]),B=s.useCallback(()=>{Ar(m)&&(_(!1),k(!1))},[k,m]),E=s.useCallback(()=>{Ar(m)&&(_(!0),k(!0))},[k,m]);return a.jsxs(qa,{index:e,stepIndex:t,isLast:o,lockedHint:r,title:h,onDone:i,useTitleFaded:!1,children:[a.jsx(Jh,{context:c,state:m}),a.jsx("div",{className:"training-step__buttons",children:Array.isArray(v)&&v.length>0?v.slice(0,6).map((A,j)=>a.jsx(ve,{htmlType:"button",size:56,type:"bar",onClick:()=>{Ar(m)&&(_(j),k&&k(j))},disabled:m==="disabled",ariaLabel:String(A),label:A,variant:m,selected:x===j},j)):a.jsxs(a.Fragment,{children:[a.jsx(ve,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:x===!1}),a.jsx(ve,{htmlType:"button",size:56,type:"bar",onClick:E,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:x===!0})]})})]})}function Bs({index:e,stepIndex:t,isLast:o=!1,title:r,onDone:n,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:h,disabled:p,_pageIndex:m,showSoundWaveForm:b,showNoiseWaveForm:v,leadInMs:x,tailMs:_}){const{t:f}=Ae.useTranslation(),C=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),g=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return a.jsx(qa,{index:e,stepIndex:t,isLast:o,title:C,onDone:n,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:h},children:a.jsx(yi,{soundSrc:l,ttsText:l?null:d??C,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:g,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:v,leadInMs:x,tailMs:_},`audio-p${m??0}-s${e}`)})}var HN=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;color:var(--color-on-brand-fill,#fff);display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ue(HN);const VN=[];function As({index:e,stepIndex:t,isLast:o=!1,lockedHint:r,title:n,onDone:i,onChange:l,context:c=VN}){const{t:u}=Ae.useTranslation(),d=n??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),h=oe=>typeof oe=="string"?oe:oe&&(oe.context||oe.sentence||oe.question||"")||"",[p,m]=s.useState(Array.isArray(c)?c:[]),[b,v]=s.useState(()=>(p||[]).map((oe,P)=>({id:P,text:h(oe)}))),x=s.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),_=x!=="disabled",f=s.useRef(void 0),C=s.useRef(void 0);s.useEffect(()=>{if(f.current===c)return;f.current=c;const oe=Array.isArray(c)?c:[];m(oe);const P=($=>{const R=($||[]).map((te,J)=>({id:J,text:h(te)}));if(R.length<=1)return R;const Y=(te,J)=>{if(te.length!==J.length)return!1;for(let Be=0;Be<te.length;Be++)if(te[Be].text!==J[Be].text)return!1;return!0};let Q=ft(R),ae=0;for(;Y(Q,R)&&ae<20;)Q=ft(R),ae+=1;return Q})(oe);v(P);try{if(typeof l=="function"){const $=P.filter((R,Y)=>R.text===h(oe[Y])).length;l({shuffled:P,score:$,total:(oe||[]).length,initial:!0,__ts:Date.now()})}if(typeof i=="function"&&x==="active"){const $=P.filter((R,Y)=>R.text===h(oe[Y])).length;C.current=c,i({shuffled:P,score:$,total:(oe||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[c]),s.useEffect(()=>{if(x!=="active"||C.current===c||(C.current=c,typeof i!="function"))return;const oe=Array.isArray(c)?c:[],P=b.filter(($,R)=>$.text===h(oe[R])).length;i({shuffled:b,score:P,total:oe.length,initial:!0,__ts:Date.now()})},[x,c]);const g=(oe,P)=>{const $=[...b],R=oe+P;if(R<0||R>=$.length)return;const Y=$[R];$[R]=$[oe],$[oe]=Y,W($);try{if(typeof i=="function"&&x==="active"){const Q=$.filter((ae,te)=>ae.text===h(p[te])).length;i({shuffled:$,score:Q,total:(p||[]).length,__ts:Date.now()})}}catch{}},[w,S]=s.useState(null),y=s.useRef(null),k=s.useRef(null),B=s.useRef(null),E=s.useRef(null),A=s.useRef(null),j=s.useRef({x:0,y:0}),D=s.useRef(null),N=s.useRef({dx:0,dy:0}),z=()=>{if(D.current!==null)return;const oe=()=>{if(!y.current){D.current=null;return}D.current=requestAnimationFrame(oe);const P=j.current,$=N.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${P.x-$.dx}px, ${P.y-$.dy}px, 0)`)};D.current=requestAnimationFrame(oe)},O=s.useRef(new Map),U=s.useRef(new Map),T=()=>{const oe=new Map;return O.current.forEach((P,$)=>{P&&P.getBoundingClientRect&&oe.set($,P.getBoundingClientRect())}),oe},W=oe=>{const P=T();v(oe);try{if(typeof l=="function"){const $=oe.filter((R,Y)=>R.text===h(p[Y])).length;l({shuffled:oe,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const $=T();oe.forEach(R=>{const Y=P.get(R.id),Q=$.get(R.id),ae=O.current.get(R.id);if(!ae||!Y||!Q)return;const te=Y.top-Q.top;te&&(ae.style.transition="none",ae.style.transform=`translateY(${te}px)`,requestAnimationFrame(()=>{ae.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ae.style.transform="";const J=()=>{ae.style.transition="",ae.removeEventListener("transitionend",J)};ae.addEventListener("transitionend",J)}))})})},G=(oe,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(oe))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const $=document.createElement("div");$.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild($),P.dataTransfer?.setDragImage($,0,0),requestAnimationFrame(()=>{try{document.body.removeChild($)}catch{}})}catch{}}catch{}S(oe);try{const $=b[oe],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=$&&$.text?$.text:"",document.body.appendChild(R),y.current=R;const Y=O.current.get($.id);let Q=P.clientX||0,ae=P.clientY||0;try{if(Y&&Y.getBoundingClientRect){const I=Y.getBoundingClientRect();Q=I.left+I.width/2,ae=I.top+I.height/2}}catch{}const te=R.getBoundingClientRect(),J=te.width/2,Be=te.height/2;N.current={dx:J,dy:Be},R.style.transition="none",j.current={x:Q,y:ae},R.style.transform=`translate3d(${Q-J}px, ${ae-Be}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}z()});const de=I=>{const ne=I;j.current={x:ne.clientX,y:ne.clientY},z()};B.current=de,document.addEventListener("mousemove",de);const re=I=>{const ne=I;j.current={x:ne.clientX,y:ne.clientY},z()};k.current=re,document.addEventListener("dragover",re);try{P.dataTransfer?.setData("text/plain",String(oe));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:oe}))}catch{}}catch{}}catch{}},X=(oe,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{A.current!==null&&(clearTimeout(A.current),A.current=null);const $=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if($&&E.current!==$){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{$.classList.add("drag-over")}catch{}E.current=$}}catch{}},q=(oe,P)=>{P.preventDefault();const $=P.dataTransfer?.getData("text/plain")||"",R=$?parseInt($,10):w,Y=oe;if(typeof R!="number"||isNaN(R)||R===Y){S(null),Z(),L();return}const Q=ru(b,R,Y);W(Q),S(null),L();try{if(typeof i=="function"&&x==="active"){const ae=Q.filter((te,J)=>te.text===h(p[J])).length;i({shuffled:Q,score:ae,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ae=document.querySelectorAll(".order-list .order-list__item")[Y];if(!ae)return;const te=ae.querySelector(".order-list__slot")||ae;try{te.classList.add("pulse"),te.offsetHeight,te.classList.add("to-dark");const J=()=>{te.classList.remove("pulse","to-dark"),te.removeEventListener("transitionend",J)};te.addEventListener("transitionend",J)}catch{}})}catch{}Z()},L=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),B.current&&(document.removeEventListener("mousemove",B.current),B.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},H=()=>{S(null),Z(),L()};s.useEffect(()=>()=>L(),[]);const Z=()=>{try{if(A.current!==null&&(clearTimeout(A.current),A.current=null),E.current){try{E.current.classList.remove("drag-over")}catch{}E.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(oe=>oe.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const oe=Math.max(1,(b||[]).length);b.forEach((P,$)=>{const R=U.current.get(P.id);if(!R)return;let Y=50;oe>1&&(Y=Math.round($/(oe-1)*100));try{R.style.setProperty("--marker-pos",Y+"%")}catch{}})}catch{}},[b]),s.useEffect(()=>()=>{L(),A.current!==null&&(clearTimeout(A.current),A.current=null)},[]),a.jsx(qa,{index:e,stepIndex:t,isLast:o,lockedHint:r,title:d,children:a.jsx("div",{className:"order-list",children:b.map((oe,P)=>{const $=Math.max(1,(b||[]).length),R=$>1?Math.round(P/($-1)*100):50;return a.jsx("div",{className:"order-list__item",children:a.jsxs("div",{className:"order-list__slot","data-disabled":x==="disabled","aria-disabled":x==="disabled",children:[x!=="disabled"?a.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:Y=>{const Q=U.current;Y?Q.set(oe.id,Y):Q.delete(oe.id)},children:a.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,a.jsxs("div",{ref:Y=>{const Q=O.current;Y?Q.set(oe.id,Y):Q.delete(oe.id)},className:`order-list__draggable ${w===P?"dragging":""}`,"data-disabled":x==="disabled","aria-disabled":x==="disabled",tabIndex:x==="disabled"?-1:0,draggable:_,onDragStart:_?Y=>G(P,Y):void 0,onDragEnter:_?Y=>X(P,Y):void 0,onDragOver:_?Y=>X(P,Y):void 0,onDragLeave:_?()=>{try{A.current!==null&&clearTimeout(A.current),A.current=setTimeout(()=>{try{const Y=document.querySelectorAll(".order-list .order-list__item");Y&&Y[P]&&(Y[P].classList.remove("drag-over"),E.current===Y[P]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:_?Y=>q(P,Y):void 0,onDragEnd:_?H:void 0,children:[a.jsx("span",{className:"order-list__item-text body-2",children:oe.text}),_?a.jsxs("span",{className:"order-list__item-buttons",children:[a.jsx(ve,{htmlType:"button",size:32,type:"dot",onClick:()=>g(P,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),a.jsx(ve,{htmlType:"button",size:32,type:"dot",onClick:()=>g(P,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===b.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},oe.id)})})})}var UN="";ue(UN);const qN=8e3;function YN(e,t){return new Promise(o=>{let r=!1;const n=()=>{r||(r=!0,o())};e.then(n,n),setTimeout(n,t)})}function Qh({index:e,stepIndex:t,isLast:o=!1,lockedHint:r,title:n,onDone:i,onChange:l,context:c=[],selectable:u=!1,hideLabel:d=!1,hideAudio:h=!1,maxCards:p,playAllGapMs:m=0}){const{t:b}=Ae.useTranslation(),v=n??b("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),x=s.useMemo(()=>Array.isArray(c)?c:c&&c.items||[],[c]),_=p??3,f=(x||[]).slice(0,_);(x||[]).length>_&&console.warn(`TrainingStepCard: ${x.length} items passed but only ${_} shown`);const C=typeof e=="number"?e:-1,g=typeof t!="number"?"disabled":C<t?"done":C===t?"active":"disabled",[w,S]=s.useState(null),y=s.useRef([]),[k,B]=s.useState(!1),E=s.useRef(null),A=s.useRef(!0);s.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const j=s.useMemo(()=>x.map(T=>T?.id??T?.word??"").join("|"),[x]);s.useEffect(()=>{S(null)},[j]);const D=s.useRef(void 0);s.useEffect(()=>{const T=D.current;typeof T=="number"&&typeof t=="number"&&typeof e=="number"&&T>=e&&t<e&&S(null),D.current=t},[t,e]);const N=s.useCallback((T,W)=>{if(u)return;const G={item:T,index:W,__ts:Date.now()};try{typeof l=="function"&&l(G)}catch{}if(g==="active"&&typeof i=="function")try{i(G)}catch{}},[u,l,g,i]),z=s.useRef(m);s.useEffect(()=>{z.current=Math.max(0,m||0)},[m]);const O=s.useCallback(async()=>{if(k||g==="disabled")return;B(!0);let T=!1;const W=new Promise(G=>{E.current=()=>{T=!0,G()}});try{for(let G=0;G<f.length&&!(!A.current||T);G++){const X=y.current[G];if(!X)continue;await Promise.race([YN(X.play(),qN),W]);const q=Math.max(0,z.current||0);q>0&&G<f.length-1&&!T&&A.current&&await Promise.race([new Promise(L=>{setTimeout(L,q)}),W])}}finally{E.current=null,B(!1)}},[k,g,f.length]),U=s.useCallback((T,W)=>{if(!Ar(g))return;S(W);const G={selectedValue:T.word||T.title||"",selectedIndex:W,item:T,__ts:Date.now()};try{typeof l=="function"&&l(G)}catch{}if(typeof i=="function")try{i(G)}catch{}},[l,g,i]);return a.jsx(qa,{index:e,stepIndex:t,isLast:o,lockedHint:r,title:v,onDone:i,titleProps:{usePlayAllBtn:!h&&f.length>0,onPlayAll:O,playAllActive:k},children:a.jsx("div",{className:"training-step__cards",onClickCapture:T=>{const W=E.current;if(!W)return;const G=T.target;G&&typeof G.closest=="function"&&G.closest(".training-word-card__bottom")&&W()},children:f.length===0?a.jsx("div",{className:"training-step__empty",children:b("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((T,W)=>a.jsx(ps,{ref:G=>{y.current[W]=G},item:T,disabled:g==="disabled",onPlayDone:()=>N(T,W),selectable:u,selected:u&&w===W,onSelect:u?()=>U(T,W):void 0,flipDelay:W*120,hideLabel:d,hideAudio:h},T&&T.id||W))})})}function KN(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function IC(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}KN(xt.t.bind(xt)),IC(xt.t.bind(xt));var XN='.ihabdevteam-core-scope .noise-settings-tooltip{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:0 20px 20px}.ihabdevteam-core-scope .tooltip__content:has(.noise-settings-tooltip__header) .tooltip__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings-tooltip__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings-tooltip__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings-tooltip__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings-tooltip__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}.ihabdevteam-core-scope .noise-settings-tooltip__value--disabled{opacity:.4}.ihabdevteam-core-scope .noise-settings-tooltip__width-ghost{height:0;overflow:hidden;pointer-events:none;visibility:hidden}.ihabdevteam-core-scope .noise-settings-tooltip__width-ghost .panel-row{border:0;margin:0;min-height:0;padding-bottom:0;padding-top:0}';ue(XN);const Ss="none",ZN=.5,JN=1.5,QN=.25;function em({title:e,valueLabel:t,value:o,min:r,max:n,step:i,tickStep:l,size:c,disabled:u,onChange:d}){return a.jsxs(Co,{variant:"custom",label:e,useFullWidth:!0,children:[a.jsx(yh,{value:o,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,disabled:u,className:me("noise-settings-tooltip__slider-input")}),a.jsx("div",{className:me(Se("noise-settings-tooltip__value","button-1",u?"noise-settings-tooltip__value--disabled":"")),children:t})]})}function tm({anchorRect:e,onClose:t,hideNoiseRows:o=!1}){const{t:r}=Ae.useTranslation(),n=go("(max-width: 767px)")?40:24,i=xi(),l=pn(i?.settings??Ua),c=i?.settings.type??"defaultNoise",u=i?.settings.enabled??!0,d=i?.playbackRate??1,h=i?.mainVolume??1,p=Math.round(h*100),m=s.useCallback(f=>{try{i?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[i]),b=s.useCallback(f=>{try{i?.setPlaybackRate(f)}catch{}},[i]),v=s.useCallback(f=>{const C=Math.min(dn,Math.max(0,Math.round(f*10)/10));try{i?.setSettings({noiseRatio:C})}catch{}},[i]),x=s.useCallback(f=>{try{f===Ss?i?.setSettings({enabled:!1}):i?.setSettings({type:f,enabled:!0})}catch{}},[i]),_=[{key:Ss,label:r("training.noise.type.none","\uC5C6\uC74C")},...IC(r).map(f=>({key:f.value,label:f.label}))];return a.jsx(fo,{anchorRect:e,offset:12,onClose:t,ariaLabel:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:a.jsxs("div",{className:me("noise-settings-tooltip__header"),children:[a.jsx("span",{children:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),a.jsx(ve,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:r("common.close","\uB2EB\uAE30"),onClick:t})]}),children:a.jsxs(xr,{className:me("noise-settings-tooltip"),useBorder:!1,labelWidth:72,children:[a.jsx(em,{title:r("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:n,onChange:m}),a.jsx(em,{title:r("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:ZN,max:JN,step:QN,size:n,onChange:b}),!o&&a.jsxs(a.Fragment,{children:[a.jsx(Co,{variant:"custom",label:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:a.jsx(Mo,{ariaLabel:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:_,value:u?c:Ss,onChange:x})}),a.jsx(em,{title:r("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:r("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:l.toFixed(1)}),value:l,min:0,max:dn,step:Vh,size:n,disabled:!u,onChange:v})]}),o&&a.jsx("div",{className:me("noise-settings-tooltip__width-ghost"),"aria-hidden":"true",inert:!0,children:a.jsx(Co,{variant:"custom",label:"\xA0",useFullWidth:!0,children:a.jsx(Mo,{ariaLabel:"width-ghost",size:40,shape:"rounded",options:_,value:Ss,onChange:()=>{}})})})]})})}var eT=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;height:56px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .pp-bottom__meters--floating{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-trigger{display:inline-flex;flex-shrink:0}";ue(eT);function om({useNoiseSettingBtn:e=!1,onSettings:t,onNext:o,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1,resultOpen:u=!1,hideNoiseRows:d=!1}){const{t:h}=Ae.useTranslation(),[p,m]=s.useState(!1),[b,v]=s.useState(null),[x,_]=s.useState(!1),f=s.useRef(null),C=s.useRef(null),g=xi(),w=c>0,S=w&&l<c-1,y=!w||l>=c-1,k=n===Math.max(0,i);s.useEffect(()=>{e||(m(!1),v(null))},[e]);const B=s.useCallback(()=>{m(!1),v(null)},[]),E=s.useCallback(()=>{if(p){m(!1),v(null);return}const W=f?.current?.getBoundingClientRect();W&&v(W),t?.(),m(!0)},[p,t]),A=s.useCallback(()=>{if(p){m(!1),v(null);return}const W=C?.current?.getBoundingClientRect();W&&v(W),t?.(),m(!0)},[p,t]),j=go("(max-width: 767px)"),D=s.useRef(null),[N,z]=s.useState(null),O=s.useCallback(()=>{_(W=>{const G=!W;return z(G?D.current?.getBoundingClientRect()??null:null),G})},[]),U=s.useCallback(()=>{_(!1),z(null)},[]);s.useEffect(()=>{u&&(_(!1),z(null))},[u]);const T=a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"pp-bottom__meter",children:[a.jsx("span",{className:"pp-bottom__meter-label caption-1",children:h("training.meter.sentence","\uC7AC\uC0DD")}),a.jsx(ss,{analyser:g?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:h("training.meter.sentence","\uC7AC\uC0DD")})]}),a.jsxs("div",{className:"pp-bottom__meter",children:[a.jsx("span",{className:"pp-bottom__meter-label caption-1",children:h("training.meter.noise","\uC18C\uC74C")}),a.jsx(ss,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:h("training.meter.noise","\uC18C\uC74C")})]})]});return OC(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings-tooltip__header")?.closest(".tooltip__content")??null:null,()=>[f.current,C.current].map(W=>W?.querySelector("button")??null).find(W=>!!W&&W.getClientRects().length>0)??f.current?.querySelector("button")??null),a.jsxs("div",{className:"pp-bottom",children:[a.jsxs("div",{className:"pp-bottom__left",children:[e?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"pp-bottom__settings--desktop",children:a.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:a.jsx(ve,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:E,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:h("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:h("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),a.jsx("div",{className:"pp-bottom__settings--mobile",children:a.jsx("div",{ref:C,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:a.jsx(ve,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:A,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:h("training.settings","\uC124\uC815")})})})]}):null,e&&a.jsx("div",{ref:D,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:a.jsx(ve,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:O,selected:x,"aria-expanded":j?x:void 0,ariaLabel:h("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&x&&!j&&a.jsx("div",{className:"pp-bottom__meters",children:T})]}),e&&x&&j&&N&&a.jsx(fo,{anchorRect:N,onClose:U,ariaLabel:h("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:a.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:T})}),a.jsxs("div",{className:"pp-bottom__right",children:[y&&a.jsx(ve,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:o,ariaLabel:h("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:h("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!k}),S&&a.jsx(ve,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:o,ariaLabel:h("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:h("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!k})]}),e&&p&&a.jsx(tm,{anchorRect:b,onClose:B,hideNoiseRows:d})]})}var tT=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ue(tT);function am({title:e,subtitle:t,desc:o,depth:r,icon:n,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:h,onBack:p,onClose:m}){const{t:b}=Ae.useTranslation(),v=go("(max-width: 767px)"),x=Number.isInteger(h)?h:c||0,_=Number.isInteger(d)?d:u||0,f=p||m,C=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,g=typeof e=="string"?e.trim():e,w=typeof t=="string"?t.trim():t,S=!!(g||w),y=S?g||w:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=C||(g?t:void 0),B=v&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,E=s.useMemo(()=>{const A=i&&typeof i=="object"?{...i}:{};return!("width"in A)&&!("height"in A)&&(A.width="40px",A.height="40px"),A},[i]);return a.jsxs("header",{className:"pp-title training-popup-title",children:[a.jsxs("div",{className:"pp-title__left",children:[f?a.jsx(ve,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:f,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,a.jsx("div",{children:n?a.jsx(M1,{icon:n,label:e,tooltip:l,wrapperStyle:E}):null}),a.jsxs("div",{className:"pp-title__text",children:[B?a.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,a.jsx("span",{className:`pp-title__title h2${S?"":" pp-title__title--empty"}`,children:y}),o?a.jsx("span",{className:"pp-title__description caption-1",children:o}):null]})]}),a.jsx(Ah,{max:Math.max(0,_??0),index:Math.max(0,x??0)})]})}function FC(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function WC(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(o=>o.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const GC=(e,t)=>{if(!t)return t;const o=typeof xt?.t=="function"?xt.t(e,{defaultValue:t}):void 0;return typeof o=="string"&&o?o:t};function rm(e,t,o){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||o||"\uD6C8\uB828",i=dl().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?GC(`topic.${i.key}`,i.label):void 0,l?GC(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Es(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function nm(e,t,o){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,n=typeof o=="number"&&o>0?o:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(n).toISOString()}:{}}}function HC(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function VC({idPrefix:e,trainingData:t,depth:o,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=rm(t,o,r),d=typeof c=="function"?c(u)||{}:c||{},h=t?.id||t?.title||n.length;return{id:`${e}:${h}`,meta:{...u,...d},pages:n,emptyMessage:i,buildResults:l}}function UC(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function qC(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function YC(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function im(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function KC(e,t,o,r){return im(e,t*o+r)}function XC({payload:e,selected:t,choices:o=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(o)&&o.length)return r.some(n=>String(n)===String(o[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function ZC(e){return e?Array.isArray(e.items)?e.items.map(t=>{const o=t;return typeof t=="string"?{sentence:t}:{sentence:o.context||o.sentence||"",contextCode:o.contextCode||o.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const o=t;return typeof t=="string"?{sentence:t}:{sentence:o.sentence||o.context||"",contextCode:o.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const JC=s.createContext(null);function oT(){const e=s.useContext(JC);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function aT({index:e,stepIndex:t,isLast:o=!1,lockedHint:r,title:n,choices:i=[],onDone:l,onChange:c}){const{t:u}=Ae.useTranslation(),d=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,m]=s.useState(()=>i.map(()=>null)),b=JSON.stringify(i),v=i.length;s.useEffect(()=>{m(Array.from({length:v},()=>null))},[b]);const x=s.useRef(void 0);s.useEffect(()=>{const g=x.current;typeof g=="number"&&typeof t=="number"&&typeof e=="number"&&g>=e&&t<e&&m(Array.from({length:v},()=>null)),x.current=t},[t,e,v]);const _=s.useMemo(()=>p.filter(g=>g!==null).length+1,[p]),f=s.useCallback(g=>{if(!Ar(h))return;const w=p;let S;if(w[g]!=null){const k=w[g];S=w.map(B=>B!==null&&B>=k?null:B)}else S=[...w],S[g]=_;m(S);const y={selectedOrder:S,words:i,__ts:Date.now()};try{typeof c=="function"&&c(y)}catch{}if(w[g]==null&&S.length>0&&S.every(k=>k!==null))try{typeof l=="function"&&l(y)}catch{}},[h,p,_,c,l,i]),C=n??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return a.jsx(qa,{index:e,stepIndex:t,isLast:o,lockedHint:r,title:C,onDone:l,children:a.jsx("div",{className:"training-step__cards",children:i.map((g,w)=>a.jsx(ps,{item:{word:g},disabled:h==="disabled",selectable:!0,selected:p[w]!==null,orderRank:p[w],onSelect:()=>f(w),flipDelay:w*120,hideLabel:!1,hideAudio:!0},`${g}-${w}`))})})}function wi(e){return null}wi.__isTrainingPage=!0;function mn(e,t){const o=oT();return{ctx:o,index:e,stepIndex:o.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>o.handleStepDone(r,e),onChange:r=>o.handleStepChange(r,e)}}function lm({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l}=mn(e,t);return a.jsx(Bs,{...o,index:r,stepIndex:n,isLast:i,onDone:l})}function sm({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l,onChange:c}=mn(e,t);return a.jsx(ws,{...o,index:r,stepIndex:n,isLast:i,onDone:l,onChange:c})}function cm({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l,onChange:c}=mn(e,t);return a.jsx(ks,{...o,index:r,stepIndex:n,isLast:i,onDone:l,onChange:c})}function um({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l,onChange:c}=mn(e,t);return a.jsx(As,{...o,index:r,stepIndex:n,isLast:i,onDone:l,onChange:c})}function dm({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l,onChange:c}=mn(e,t);return a.jsx(Qh,{...o,index:r,stepIndex:n,isLast:i,onDone:l,onChange:c})}function rT({_stepIndex:e,_totalSteps:t,...o}){const{index:r,stepIndex:n,isLast:i,onDone:l,onChange:c}=mn(e,t);return a.jsx(aT,{...o,index:r,stepIndex:n,isLast:i,onDone:l,onChange:c})}const QC=3e4,nT=/^(https?:|blob:|data:audio|\/|\.\/)/;function e_(e){return typeof e=="string"&&nT.test(e)?e:null}const iT=e=>typeof e=="string"&&e.trim()!==""?e:null,pm=Symbol("timed-out");function lT(e,t){if(t<=0)return Promise.resolve(pm);let o;return Promise.race([Promise.resolve(e),new Promise(r=>{o=setTimeout(()=>r(pm),t)})]).finally(()=>clearTimeout(o))}function sT(e){return e?Ja()||Tr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function cT(e,t){const o=[],r=e_(t);r&&o.push({kind:"raw",resolve:async()=>r});const n=(e??"").trim();if(!n)return o;for(const[i,l]of[["urlResolver",Ja()],["fallbackUrlResolver",Tr()]])l&&o.push({kind:i,resolve:async c=>{let u;try{u=await lT(l(n),c)}catch(h){return jt(`question-sound-threw-${i}`,`[core] configureTTS \uC758 ${i} \uAC00 \uB358\uC84C\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`,h),null}return u===pm?(jt(`question-sound-slow-${i}`,`[core] configureTTS \uC758 ${i} \uAC00 ${QC}ms \uBC14\uD034 \uC548\uC5D0 \uC548 \uD480\uB838\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB97C \uBC84\uB9AC\uACE0 \uB2E4\uC74C\uC73C\uB85C \uAC04\uB2E4. \uC11C\uBC84 \uD569\uC131\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB9AC\uC878\uBC84\uB77C\uBA74 \uC774 \uC790\uB9AC\uAC00 \uAE38\uC5B4\uC9C4\uB2E4. \uC18C\uB9AC\uAC00 \uC544\uC608 \uC548 \uB098\uBA74 \uC5EC\uAE30\uBD80\uD130 \uBCF4\uB77C.`),null):iT(u)||(jt(`question-sound-empty-${i}`,`[core] configureTTS \uC758 ${i} \uAC00 \uC8FC\uC18C\uB97C \uC548 \uC92C\uB2E4(\uBC1B\uC740 \uAC83: ${JSON.stringify(u)}) \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`),null)}});return o}function uT(){return Date.now()+QC}const dT=(e,t)=>Math.max(0,e-Date.now())/Math.max(1,t);function pT(e){jt("question-sound-none",`[core] "${e}" \uC758 \uC18C\uB9AC \uC8FC\uC18C\uB97C \uD55C \uC790\uB9AC\uC5D0\uC11C\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uBE0C\uB77C\uC6B0\uC800 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4. configureTTS \uAC00 \uAC78\uB824 \uC788\uB294\uC9C0, \uB9AC\uC878\uBC84\uAC00 \uC8FC\uC18C\uB97C \uC8FC\uB294\uC9C0 \uC704 \uC904\uB4E4\uC744 \uBCF4\uB77C.`)}var hT=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .popup--training-result .popup-content{padding-top:var(--spacing-l)}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__replay{flex-shrink:0}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error-ink,var(--color-error))}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error-ink,var(--color-error))}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{flex-wrap:wrap}.ihabdevteam-core-scope .trp-actions__reason{flex-basis:100%;margin:0;text-align:center}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
1075
1075
  /* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
1076
- \uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ue(hT);function Ds(...e){for(const t of e)if(typeof t=="string"){const o=t.trim();if(o.length)return o}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const o=t,r=[o.text,o.label,o.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function mT(e){return Ds(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function bT(e){return e_(Ds(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function t_(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Ds(e?.status,e?.result,e?.judge,e?.note);if(t){const o=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>o.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>o.includes(r)))return!1}}function hm(e){const{score:t,contextsLength:o,results:r=[],subtitle:n,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=Ae.useTranslation(),h=s.useId(),p=s.useCallback(()=>!u,[u]);s.useEffect(()=>{const A=o??0;if(t!=null&&A>0&&t/A>.5){const j=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(j)}},[t,o]);const m=s.useCallback(A=>{const j=t_(A),D=Ds(A?.wording,A?.label);return j===!0?{variant:"main",label:D??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:j===!1?{variant:"danger",label:D??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:D??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),b=o??0,v=t??0,x=s.useMemo(()=>Array.isArray(r)?r:[],[r]),_=s.useRef(null),[f,C]=s.useState(null),g=s.useCallback(()=>{_.current?.(),_.current=null,C(null)},[]);s.useEffect(()=>g,[g]);const w=s.useRef(0),S=(A,j)=>{if(!Da)return;const D=Math.round(performance.now()-w.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${D}ms ${A}`,j??"")},y=s.useRef(0),k=s.useCallback((A,j,D)=>{g();const N=++y.current,z=()=>y.current===N;w.current=Da?performance.now():0,S(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${A}`,{text:j,rawUrl:D}),C(A),_.current=()=>{S("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),y.current++,yn()};const O=G=>{S("\uD2BC\uB2E4",G);const X=bi(G,q=>{S(`\uB05D\uB0AC\uB2E4 \u2014 ${q?"\uB05D\uAE4C\uC9C0 \uB4E4\uC5C8\uB2E4":"\uBABB \uD2C0\uC5C8\uAC70\uB098 \uBA48\uCDC4\uB2E4"}`,{mine:z()}),q&&z()&&(_.current=null,C(null))});return _.current=()=>{S("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uD2B8\uB294 \uC911)"),y.current++,X.stop(),yn()},X.done},U=cT(j,D);S("\uCC28\uB840",U.map(G=>G.kind));const T=U[0]?.kind==="raw",W=T?O(D):Promise.resolve(!1);(async()=>{if(await W||!z())return;const G=uT(),X=T?U.slice(1):U;for(let q=0;q<X.length;q++){if(!z())return;S(`${X[q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const L=await X[q].resolve(dT(G,X.length-q));if(S(`${X[q].kind} \uAC00 \uB2F5\uD588\uB2E4`,L),!z()||L&&(await O(L)||!z()))return}z()&&(S("\uC8FC\uC18C\uB97C \uD558\uB098\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4"),pT(j),_.current=()=>{y.current++,yn()},S("\uB0AD\uB3C5\uD55C\uB2E4"),oc(j,{onEnd:()=>{z()&&(_.current=null,C(null))}}))})()},[g]),B=s.useMemo(()=>x.map(A=>{const j=A??{},D=mT(j)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:N,label:z}=m(j),O=Array.isArray(j.corrects)?j.corrects:[],U=O.length?O.join(", "):j.answer!=null&&j.answer!==""?String(j.answer):null,T=typeof j.selectedText=="string"?j.selectedText:null,W=t_(j)===!0,G=bT(j),X=!!G||sT(D);return{problem:D,variant:N,label:z,answer:U,selectedText:T,isCorrect:W,sound:G,canHear:X}}),[x,m,d]),E=s.useMemo(()=>B.some(A=>A.answer!==null||A.selectedText!==null),[B]);return a.jsx(da,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:A,closeWithAnimation:j})=>a.jsxs(a.Fragment,{children:[u&&a.jsx("p",{id:h,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),a.jsxs("div",{className:"trp-actions",children:[a.jsx(ve,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>A(i)}),a.jsx(ve,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:j,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?h:void 0})]})]}),children:()=>a.jsxs("div",{className:"trp-result is-on",children:[a.jsxs("header",{className:"trp-result__head",children:[a.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),a.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&a.jsx("p",{className:"trp-result__subtitle body-3",children:n}),a.jsx("div",{className:"trp-score",children:a.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:b}),children:[a.jsx("span",{className:"trp-score__big",children:v}),a.jsx("span",{className:"trp-score__sep",children:"/"}),a.jsx("span",{className:"trp-score__total",children:b})]})})]}),B.length>0&&a.jsx("section",{className:"trp-result__body",children:a.jsxs("div",{className:`result-table${E?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[a.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[a.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),E&&a.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),a.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),B.map((A,j)=>a.jsxs("div",{className:"result-table__row",role:"row",children:[a.jsxs("div",{className:"trp-row__problem",children:[a.jsx("span",{className:"trp-row__no caption-1",children:String(j+1).padStart(2,"0")}),a.jsx("div",{className:"trp-row__q body-2",children:A.problem}),A.canHear&&a.jsx(ve,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:f===j?"square":"volume-2",className:"trp-row__replay",ariaLabel:f===j?d("training.result.replaySoundStop",{no:j+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:j+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>f===j?g():k(j,A.problem,A.sound)})]}),E&&a.jsxs("div",{className:"trp-row__answers",children:[A.answer!==null&&a.jsxs("div",{className:"trp-row__answer-line",children:[a.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),a.jsx("span",{className:"trp-row__answer-value body-2",children:A.answer})]}),a.jsxs("div",{className:"trp-row__answer-line",children:[a.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${A.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),a.jsx("span",{className:`trp-row__answer-value body-2 ${A.isCorrect?"is-correct":"is-wrong"}`,children:A.selectedText??"\u2014"})]})]}),a.jsx("div",{className:"trp-row__judge",children:a.jsx(co,{variant:A.variant,label:A.label,fill:"soft",minWidth:80})})]},j))]})})]})})}const mm=new Set;function gT(e){s.useEffect(()=>{if(!e||mm.has(e))return;mm.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let o=null,r=null,n=0,i=0;const l=()=>{const h=Date.now();o==null&&(o=h),r==null&&(r=h)},c=()=>{r!=null&&(n+=Date.now()-r,r=null)};t()&&l();const u=()=>{if(c(),o==null)return;const h=n-i;if(h<1e3||i===0&&n<5e3)return;const p=Date.now(),m=p-h;i=n,Au({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(p).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u(),mm.delete(e)}},[e])}function js(e,t){return e&&e.id||`page-${t??0}`}function Ns(e,t){return e&&e.key||`step-${t??0}`}function Ts(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function fT(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const vT=300,xT=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Sa=Object.freeze({}),o_=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bm(e){const t=e,o=t?.results||t?.answers||[],r=Array.isArray(o)&&o.length>0?o.length:null,n=Array.isArray(o)?o.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:o,correct:r!=null?n:null,total:r}}const CT=e=>a.jsx(hm,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function _T(e){const{scenario:t,title:o,subTitle:r,depth:n,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:h,stepCount:p,onBack:m,onComplete:b,onRoundFinished:v,onNext:x,onSettings:_,useNoiseSetting:f=!0,children:C,ariaLabel:g,label:w,buildResults:S,onResult:y,typeKey:k,entryPoint:B,dailyTotal:E,itemRef:A,renderResultPopup:j,noiseOverride:D,hideNoiseRows:N=!1,inline:z=!1,height:O}=e;gT(k&&!o_.has(k)?k:"");const U=s.useRef(0);s.useEffect(()=>{U.current=Date.now()},[]);const{t:T}=Ae.useTranslation(),W=y,G=!!t,X=t?.id||null,q=t?.meta||{},L=Array.isArray(t?.pages)?t.pages:[],H=Array.isArray(C)||s.isValidElement(C)&&typeof C!="function"?s.Children.toArray(C).filter(s.isValidElement):[],Z=H.length>0,oe=fe=>fe===wi||fe?.__isTrainingPage===!0,P=Z&&H.some(fe=>oe(fe.type)),$=P?H.filter(fe=>oe(fe.type)).map((fe,Le)=>{const K=fe.props||{};return{id:`children-page-${Le}`,steps:s.Children.toArray(K.children).filter(s.isValidElement),pageTop:K.pageTop||K.top||null,pageBottom:K.pageBottom||K.bottom||null}}):[{id:"children-page-0",steps:H}],R=Z&&!G&&typeof C!="function",Y=R?Math.max(1,$.length):0;s.useEffect(()=>{if(!z&&!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),s.useEffect(()=>{if(z||typeof document>"u"||!document.body)return;const fe=document.body;return fe.dataset.ihabTrainingPopupCount=String(Number(fe.dataset.ihabTrainingPopupCount||"0")+1),fe.classList.add("ihab-training-popup-open"),()=>{const Le=Number(fe.dataset.ihabTrainingPopupCount||"1")-1;Le>0?fe.dataset.ihabTrainingPopupCount=String(Le):(delete fe.dataset.ihabTrainingPopupCount,fe.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!z&&!(typeof document>"u"||!document.body))return u1()},[]);const[Q,ae]=s.useState({...Ua,enabled:!1}),te=s.useRef(Q);s.useEffect(()=>{te.current=Q},[Q]);const J=s.useRef(D),Be=s.useRef(!1),de=s.useRef(null),re=s.useRef(!1);s.useEffect(()=>{let fe=!1;const Le=K=>{if(fe)return;Be.current=!0;const ge=K?Va({...Ua,enabled:!1},K):{...Ua},Ce=de.current;de.current=null;const Me=Ce?Va(ge,Ce):ge;te.current=Me,ae(Me),Ce&&!J.current&&!re.current&&In(Me),Kr(Me);const Pe=J.current;if(Pe){const Ve=typeof Pe=="function"?Pe(Me):Pe,mt=Va(Me,Ve);te.current=mt,ae(mt),Kr(mt)}};return cl().then(({settings:K,failed:ge})=>{if(ge&&(re.current=!0),fe){const Ce=de.current;if(de.current=null,Ce&&!J.current&&!ge){const Me=K?Va({...Ua,enabled:!1},K):{...Ua};In(Va(Me,Ce))}return}Le(K)}),()=>{fe=!0}},[]);const[I,ne]=s.useState(null),[V,se]=s.useState(null),F=s.useCallback((fe,Le)=>{fe==="main"?ne(Le):se(Le)},[]),le=s.useRef(null),pe=s.useRef(null),be=s.useCallback(()=>{pe.current!==null&&(clearTimeout(pe.current),pe.current=null);const fe=le.current;le.current=null,fe&&!re.current&&In(fe)},[]);s.useEffect(()=>{if(typeof window>"u")return;const fe=()=>{document.visibilityState==="hidden"&&be()};return window.addEventListener("pagehide",be),document.addEventListener("visibilitychange",fe),()=>{window.removeEventListener("pagehide",be),document.removeEventListener("visibilitychange",fe),be()}},[be]);const _e=s.useCallback(fe=>{const Le=Va(te.current,fe);if(te.current=Le,ae(Le),!Be.current){de.current={...de.current??{},...fe},Kr(Le);return}!J.current&&!re.current&&(le.current=Le,pe.current!==null&&clearTimeout(pe.current),pe.current=setTimeout(be,vT)),Kr(Le)},[be]),Re=Q.mainSpeed,ke=Q.mainVolume,Ee=s.useCallback(fe=>_e({mainSpeed:fe}),[_e]),De=s.useCallback(fe=>_e({mainVolume:fe}),[_e]),Ie=s.useMemo(()=>({settings:Q,setSettings:_e,registerAnalyser:F,mainAnalyser:I,noiseAnalyser:V,playbackRate:Re,setPlaybackRate:Ee,mainVolume:ke,setMainVolume:De}),[Q,_e,F,I,V,Re,Ee,ke,De]),je=s.useRef(null),[at,Ct]=s.useState(0),Fe=s.useRef([]),[Ue,rt]=s.useState("center"),[Ge,Je]=s.useState(!1),st=s.useRef(!1),_t=s.useRef(null),bt=s.useCallback(fe=>{st.current||(st.current=!0,Je(!0),_t.current=setTimeout(()=>{try{fe()}catch{st.current=!1,Je(!1)}},xT()?0:w1))},[]);s.useEffect(()=>()=>{_t.current&&clearTimeout(_t.current)},[]);const At=s.useRef(m);s.useEffect(()=>{At.current=m});const dt=s.useRef(typeof document>"u"?null:document.activeElement);s.useEffect(()=>{if(z)return;const fe=je.current,Le=dt.current;if(hd(fe,Le),fe){const K=Array.from(fe.querySelectorAll(Zo)).filter(ge=>!ge.closest('[aria-hidden="true"]'))[0];if(K)try{K.focus()}catch{}}return()=>{const K=document.activeElement;if(!K||K===document.body||fe&&fe.contains(K))try{md(Le)?.focus?.()}catch{}}},[]),s.useEffect(()=>{if(!z)return cr(()=>bt(()=>{const fe=At.current;typeof fe=="function"&&fe()}))},[bt,z]),wl(je,!z);const[Qt,St]=s.useState(!1),Wt=s.useRef(!1),[tt,Ne]=s.useState(null),it=s.useRef(0),ut=s.useRef(0),yt=()=>{it.current+=1,ut.current+=1,Ne(null)},[Tt,Ht]=s.useState(""),[vt,gt]=s.useState(()=>Ts()),Nt=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!G&&!R||(gt(Ts()),yt())},[G,X,R]),s.useEffect(()=>{R&&gt(fe=>{const Le=Math.max(0,Math.min(fe.pageIndex,Math.max(0,Y-1)));return Le!==fe.pageIndex?{...fe,pageIndex:Le,stepIndex:0}:fe})},[R,Y]);const Lt=R?Math.max(0,Math.min(vt.pageIndex,Y-1)):0,et=R?$[Lt]:null,Et=R&&et&&Array.isArray(et.steps)?et.steps:[],he=G?vt.pageIndex:R?Lt:typeof u=="number"?u:0,Te=G?L[Math.max(0,Math.min(vt.pageIndex,Math.max(0,L.length-1)))]:null,ze=G&&Te&&Array.isArray(Te.steps)?Te.steps:[],Ye=G?ze.length:R?Et.length:typeof p=="number"?p:0,ct=G||R?Math.max(0,Math.min(vt.stepIndex,Math.max(0,Ye))):typeof h=="number"?h:0,Vt=G?L.length:R?Y:typeof d=="number"?d:0;s.useEffect(()=>{if(!G&&!R)return;const fe=G?js(Te,he):et?.id||`children-page-${he??0}`,Le=new Date().toISOString();for(let K=0;K<=ct;K+=1){const ge=G?Ns(ze[K],K):`step-${K}`,Ce=Ke(fe,ge);Ot.current.has(Ce)||Ot.current.set(Ce,Le)}},[G,R,he,ct,et?.id]),s.useLayoutEffect(()=>{const fe=Nt.current;if(typeof he=="number"&&fe!==null&&he!==fe&&he>fe)try{Ht(T("training.problemNotice",{n:he+1}))}catch{}Nt.current=typeof he=="number"?he:Nt.current},[he,u,T]),s.useLayoutEffect(()=>{const fe=je.current;if(!fe)return;const Le=()=>fe.querySelector(".page-popup__scroll");let K=null,ge=null,Ce=null;const Me=we=>{const M=Le();if(!M)return;const ie=M.scrollHeight<=M.clientHeight;if(rt(ie?"center":"top"),we&&!Wt.current){Wt.current=!0;try{St(!0)}catch{}try{mt.disconnect()}catch{}}},Pe=()=>{K!==null&&cancelAnimationFrame(K),K=requestAnimationFrame(()=>{ge!==null&&clearTimeout(ge),ge=setTimeout(()=>Me(!0),60)})},Ve=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>Me(!1))};Pe(),window.addEventListener("resize",Ve);const mt=new MutationObserver(Pe);mt.observe(fe,{childList:!0,subtree:!0,attributes:!0});const wt=setTimeout(()=>{Wt.current||Me(!0)},400);return()=>{window.removeEventListener("resize",Ve),K!==null&&cancelAnimationFrame(K),ge!==null&&clearTimeout(ge),Ce!==null&&cancelAnimationFrame(Ce),clearTimeout(wt);try{mt.disconnect()}catch{}}},[je]);const pt=s.useCallback(fe=>{je.current&&(je.current._childOnNext=fe)},[]),ao=s.useCallback(fe=>{je.current&&(je.current._childOnResult=fe)},[]),Ot=s.useRef(new Map),Ke=(fe,Le)=>`${fe}\0${Le}`,ee=s.useCallback((fe,Le,K)=>{gt(ge=>{const Ce=ge.answersByPage[fe]||{},Me=Ce[Le],Pe=Es(K),Ve=Es(Me);if(Me&&Ve>Pe)return ge;const mt=nm(K,Ot.current.get(Ke(fe,Le)),Pe);return{...ge,answersByPage:{...ge.answersByPage,[fe]:{...Ce,[Le]:mt}}}})},[gt]),xe=s.useCallback((fe,Le,K)=>{const ge=js(Te,he),Ce=Ns(fe,Le);ee(ge,Ce,K)},[Te,he,ee]),He=s.useCallback((fe,Le,K)=>{const ge=js(Te,he),Ce=Ns(fe,Le);ee(ge,Ce,K),!K?.allowChange&&fe?.autoAdvance!==!1&&gt(Me=>({...Me,stepIndex:Math.max(Me.stepIndex,Le+1)}))},[Te,he,ee,gt]),Xe=s.useCallback((fe,Le)=>{const K=et?.id||`children-page-${he??0}`,ge=typeof Le=="number"?Le:ct??0,Ce=`step-${ge}`;ee(K,Ce,fe),fe?.allowChange||gt(Me=>({...Me,stepIndex:Math.max(Me.stepIndex,ge+1)}))},[et,he,ct,ee,gt]),lt=s.useCallback((fe,Le)=>{const K=et?.id||`children-page-${he??0}`,ge=`step-${typeof Le=="number"?Le:ct??0}`;ee(K,ge,fe)},[et,he,ct,ee]),ht=R?{currentPageIndex:he??0,currentStepIndex:ct??0,totalStepsInPage:Et.length,handleStepDone:Xe,handleStepChange:lt}:null,Mt=async()=>{const fe=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:L,flowState:vt,answersByPage:vt.answersByPage})):null;return typeof W=="function"&&await Promise.resolve(W(fe))||fe},Ut=async()=>{const fe=et?.id||`children-page-${vt.pageIndex}`,Le=vt.answersByPage[fe]||{},K=P?(()=>{const Me={};let Pe=0;return $.forEach(Ve=>{const mt=vt.answersByPage[Ve.id]||{},wt=Array.isArray(Ve.steps)?Ve.steps.length:0;for(let we=0;we<wt;we+=1){const M=mt[`step-${we}`];typeof M<"u"&&(Me[`step-${Pe+we}`]=M)}Pe+=wt}),Me})():Le;if(typeof S=="function"){const Me=await Promise.resolve(S(K,{pageAnswers:Le,answersByPage:vt.answersByPage,pages:$,currentPageId:fe}));return typeof W=="function"&&await Promise.resolve(W(Me))||Me}const ge=Object.entries(Le).map(([Me,Pe],Ve)=>({index:Ve,key:Me,payload:Pe})),Ce={results:ge,answers:ge,score:0};return typeof W=="function"&&await Promise.resolve(W(Ce))||Ce},Po=()=>{const fe=++it.current,Le=()=>fe!==it.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(G){const Ce=Mt();Ne(Sa);const Me=Ce;Promise.resolve(Me).then(Pe=>{Le()||Ne(Pe||{isEmpty:!0})}).catch(Pe=>{!Le()&&Ne({isEmpty:!0})});return}if(R){const Ce=Ut();Ne(Sa);const Me=Ce;Promise.resolve(Me).then(Pe=>{Le()||Ne(Pe||{isEmpty:!0})}).catch(Pe=>{!Le()&&Ne({isEmpty:!0})});return}const K=je.current&&je.current._childOnResult,ge=Ce=>{try{return Ce?Ce():void 0}catch{return}};if(typeof K=="function"){const Ce=ge(K);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?Ne(Ce):Ne(Ce&&typeof Ce.then=="function"?Sa:{});const Me=()=>{Le()||Ne(Pe=>Pe===Sa?{}:Pe)};Promise.resolve(Ce).then(Pe=>{Pe&&!Le()?Ne(Pe):Me()}).catch(Pe=>{Me()});return}if(typeof W=="function"){const Ce=ge(W);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?Ne(Ce):Ne(Ce&&typeof Ce.then=="function"?Sa:{});const Me=()=>{Le()||Ne(Pe=>Pe===Sa?{}:Pe)};Promise.resolve(Ce).then(Pe=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Pe&&!Le()?Ne(Pe):Me()}).catch(Pe=>{console.error("viewResults external handler failed",Pe),Me()});return}},_o=()=>{if(G){if(typeof he=="number"&&typeof Vt=="number"&&he<Vt-1){gt(Le=>({...Le,pageIndex:Le.pageIndex+1,stepIndex:0}));return}return Po()}if(R){const Le=Et.length;if(typeof ct=="number"&&ct<Le-1){gt(K=>({...K,stepIndex:K.stepIndex+1}));return}if(typeof he=="number"&&typeof Vt=="number"&&he<Vt-1){gt(K=>({...K,pageIndex:K.pageIndex+1,stepIndex:0}));return}return Po()}if(typeof x=="function"){try{x()}catch{}return}const fe=je.current&&je.current._childOnNext;if(typeof fe=="function"){try{fe()}catch{}return}},zo=G?q.title||q.label||g||T("common.popup","\uD31D\uC5C5"):o||w||(Array.isArray(n)?n[n.length-1]:void 0)||g||T("common.popup","\uD31D\uC5C5"),wo=g||zo,no=G?q.title??q.label??zo:o??w??zo,yo=(fe,Le)=>{const K=js(Te,he),ge=Ns(fe,Le),Ce=vt.answersByPage[K]?.[ge],Me=fT(fe,{page:Te,pageIndex:he,step:fe,stepIndex:Le,storedPayload:Ce,answersByPage:vt.answersByPage,flowState:vt}),Pe={key:ge,index:Le,stepIndex:ct,isLast:Le===ze.length-1};switch(fe?.type){case"listen":return a.jsx(Bs,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve)});case"confirm":return a.jsx(ws,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});case"confirmWithText":return a.jsx(ks,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});case"orderList":return a.jsx(As,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});default:return null}},ko=s.useRef(void 0);s.useEffect(()=>{const fe=ko.current;if(ko.current=he,fe===void 0||fe===he||!us())return;const Le=je.current;if(!Le)return;const K=document.activeElement;if(!(!K||K===document.body||!Le.contains(K)||K.disabled===!0))return;const ge=Le.querySelector(`.training-steps ${Zo.split(", ").join(", .training-steps ")}`)??Array.from(Le.querySelectorAll(Zo)).find(Ce=>!Ce.closest('[aria-hidden="true"]'));try{ge?.focus()}catch{}},[he]);const uo=G?L.length>0?a.jsx("div",{className:"training-steps",children:ze.map((fe,Le)=>yo(fe,Le))},`replay-${at}`):a.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:a.jsx("div",{className:"pp-empty",children:t?.emptyMessage||T("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,It=R?a.jsxs(JC.Provider,{value:ht,children:[et?.pageTop?a.jsx("div",{className:"training-page-top",children:et.pageTop}):null,a.jsx("div",{className:"training-steps",children:Et.map((fe,Le)=>{const K=fe;return s.cloneElement(K,{...K.props,_stepIndex:Le,_totalSteps:Et.length,_stepKey:`step-${Le}`,_pageIndex:he})})},`replay-${at}`),et?.pageBottom?a.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,$t=s.useRef(-1),qt=s.useCallback(()=>{if(!k)return;const fe=tt,{results:Le,correct:K,total:ge}=bm(tt),Ce={correct:K,total:ge,attempt:Fe.current.length+1,previousAttempts:[...Fe.current]};if($t.current===ut.current)return Ce;$t.current=ut.current,Su({items:Nu(Le),category:o_.has(k)?"sentence":"word",trainingType:k,entryPoint:B??"sentence",itemRef:A??null,correct:K,total:ge,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-U.current)/1e3)),dailyTotal:E??null});try{v?.(Ce)}catch{}return Ce},[k,B,E,A,tt,v]);s.useEffect(()=>{!tt||tt===Sa||tt?.isEmpty||(bm(tt).total??0)>0&&qt()},[tt,qt]);const Ft=s.useCallback(()=>{const fe=qt();yt(),bt(()=>{typeof b=="function"&&b(fe),typeof m=="function"&&m()})},[b,m,qt,Ne,bt]),ga=s.useCallback(()=>Ht(""),[Ht]),Go=s.useCallback(()=>{bt(()=>{typeof m=="function"&&m()})},[m,bt]),Ya=a.jsxs("div",{className:`page-popup${Ge?" page-popup--closing":""}${z?" page-popup--inline":""}${z&&O!=null?" page-popup--has-height":""}`,role:z?"region":"dialog","aria-modal":z?void 0:"true","aria-label":wo,style:z&&O!=null?{"--page-popup-inline-height":typeof O=="number"?`${O}px`:O}:void 0,children:[a.jsxs("div",{ref:je,className:`page-popup__panel ${Qt?"":"page-popup__panel--measuring"} ${Ue==="center"?"page-popup__panel--center":Ue==="top"?"page-popup__panel--top":""}`,children:[a.jsx(am,{title:no,subtitle:G?q.subtitle||q.label:Array.isArray(n)?n.join(" / "):void 0,desc:G?void 0:r,depth:G?q.depth:n,icon:G?q.icon:i,wrapperStyle:G?q.wrapperStyle:l,iconTooltip:G?q.iconTooltip:c,progressMax:Vt,progressIndex:he,pageIndex:he,pageCount:Vt,onBack:z?void 0:Go,onClose:z?void 0:Go}),a.jsx("div",{className:"page-popup__scroll",children:a.jsx("div",{className:`page-popup__content ${Ue==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:R?It:G?uo:typeof C=="function"?C({registerOnNext:pt,registerOnResult:ao,panelRef:je,setResultOverlay:Ne}):C})}),a.jsx(om,{onSettings:_,onNext:_o,onResult:Po,useNoiseSettingBtn:!!(G?q.useNoiseSetting??!0:f),stepIndex:ct,stepCount:Ye,pageIndex:he,pageCount:Vt,resultOpen:!!(tt&&!tt.isEmpty),hideNoiseRows:N})]}),tt&&!tt.isEmpty&&(j??CT)({score:tt.score,results:tt.results||tt.answers||[],contextsLength:tt.results?tt.results.length:tt.answers?tt.answers.length:0,onReplay:()=>{if(U.current=Date.now(),tt!==Sa){const{correct:fe,total:Le}=bm(tt);Fe.current.push({correct:fe,total:Le})}if(yt(),Ct(fe=>fe+1),G){if(gt(Ts()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(R){gt(Ts());return}try{const fe=je.current&&je.current._childOnResult;typeof fe=="function"&&fe({replay:!0})}catch{}},onClose:Ft,pending:tt===Sa}),tt?.isEmpty&&a.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":T("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:a.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[a.jsx("div",{className:"page-popup__scroll",children:a.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:a.jsx("div",{className:"page-popup__empty",children:T("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),a.jsx("div",{className:"page-popup__bottom",children:a.jsx(ve,{htmlType:"button",variant:"main",size:48,onClick:Ft,label:T("training.result.done","\uC644\uB8CC")})})]})}),a.jsx(yr,{message:Tt,position:"top",onClose:ga})]}),ta=a.jsx(Cs.Provider,{value:Ie,children:Ya});return z?ta:typeof document<"u"&&document.body?Do.createPortal(ta,document.body):ta}const Ea=_T;Ea.Page=wi,Ea.ListenStep=lm,Ea.ConfirmStep=sm,Ea.ConfirmWithTextStep=cm,Ea.OrderListStep=um,Ea.CardStep=dm,Ea.CardOrderStep=rT;function yT(e=[]){const t=s.useRef(null),o=s.useCallback(n=>{const i=getComputedStyle(n),l=i.gridTemplateColumns.split(" ").filter(Boolean),c=parseFloat(l[0]??"0"),u=parseFloat(i.columnGap||"0")||0;if(!c||l.length<2){for(const d of n.children)d.style.gridColumn="";return}for(const d of n.children){const h=d;h.style.gridColumn="",h.removeAttribute("data-wide");const p=h.querySelector("button"),m=p?p.getBoundingClientRect().width:0;if(m<=c+.5)continue;const b=Math.min(l.length,Math.ceil((m+u)/(c+u)));b<=1||(h.style.gridColumn=`span ${b}`,h.setAttribute("data-wide",""))}},[]),r=s.useCallback(()=>{const n=t.current;if(n)for(const i of n.querySelectorAll(".word-search-result-block__items"))o(i)},[o]);return s.useLayoutEffect(()=>{r();const n=t.current;if(!n||typeof ResizeObserver>"u")return;const i=new ResizeObserver(()=>r());return i.observe(n),()=>i.disconnect()},[r,...e]),t}var wT=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);padding:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__head{align-items:center;-moz-column-gap:var(--spacing-xs);column-gap:var(--spacing-xs);display:flex;flex-wrap:wrap;row-gap:0}.ihabdevteam-core-scope .word-search-result-block__head-main{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .word-search-result-block__head-icon{color:var(--color-gray);flex-shrink:0}.ihabdevteam-core-scope .word-search-result-block__title{min-width:0;text-align:left}.ihabdevteam-core-scope .word-search-result-block__head-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .word-search-result-block__head-disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items>[data-wide]>button{width:100%}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group-label{color:var(--color-gray)}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__inner--head-only{gap:0;padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .word-search-result-block__inner--head-only .word-search-result-block__head{min-height:60px}";ue(wT);var kT='.ihabdevteam-core-scope .word-image-tooltip{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .word-image-tooltip__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .word-image-tooltip__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .word-image-tooltip__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-image-tooltip__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-image-tooltip__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .word-image-tooltip__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ue(kT);function BT({label:e,homonum:t}){const o=Ta()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:l,onError:c}=Dh(o);return i?a.jsxs("div",{className:me("word-image-tooltip__cell"),children:[n&&a.jsx("div",{className:me("word-image-tooltip__spinner")}),a.jsx("img",{ref:r,src:o,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:l,onError:c})]}):a.jsx("div",{className:me("word-image-tooltip__cell word-image-tooltip__cell--text h3"),children:a.jsx("span",{children:e})})}function gm({words:e,anchorRect:t}){const o=s.useRef(null),[r,n]=s.useState(null);return s.useLayoutEffect(()=>{if(!t||!o.current)return;const{offsetWidth:i,offsetHeight:l}=o.current,c=window.innerWidth,u=window.innerHeight,d=8,h=t.top,p=u-t.bottom,m=h>=l+d*2||h>p,b=(_,f)=>Math.min(Math.max(d,_),Math.max(d,f)),v=b(t.left+t.width/2-i/2,c-i-d),x=b(m?t.top-l-d:t.bottom+d,u-l-d);n({left:v,top:x})},[t]),!t||e.length===0?null:Do.createPortal(a.jsx("div",{ref:o,className:me("word-image-tooltip"),style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:a.jsx("div",{className:me("word-image-tooltip__cells"),children:e.map(i=>a.jsx(BT,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function a_({titleIcon:e,resultCount:t,resultUnit:o,searchQuery:r,items:n,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:h,onPrintEmpty:p,className:m,emptyHint:b,showEmptyText:v=!0,sectionType:x="page",disc:_}){const f=Fo()??Eo,{t:C,i18n:g}=Ae.useTranslation(),w=g.language?.startsWith("ko")??!1,{anchorRect:S,openAt:y,close:k}=rn(),[B,E]=s.useState(null),A=s.useCallback(()=>{k(),E(null)},[k]);vp(A,!!B);const j=(r??"").trim(),D=/^[^,[\]\s]+$/.test(j)?j:"",N=D.length>0,z=r===void 0&&t===void 0,O=N?"match":z?"original":"ganada",[U,T]=s.useState(()=>O),[W,G]=s.useState("50"),[X,q]=s.useState(1),[L,H]=s.useState(N);L!==N&&(H(N),T(O));const Z=U==="match"&&!N||U==="original"&&!z?O:U,oe=s.useMemo(()=>[...N?[{value:"match",label:C("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...z?[{value:"original",label:C("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:C("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:C("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:C("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:C("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:C("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:C("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[C,N,z]),P=s.useMemo(()=>["10","25","50","100"].map(ke=>({value:ke,label:C("wordSearch.pageSize",{count:Number(ke),defaultValue:`${ke}\uAC1C\uC529 \uBCF4\uAE30`})})),[C]),$=ke=>ke.words?.[0],R=s.useMemo(()=>{const ke=[...D].length,Ee=Ec(D),De=new Map;return Ie=>{let je=De.get(Ie);return je===void 0&&(je=Ee((Ie.words?.[0]?.label??"").slice(0,ke))?0:1,De.set(Ie,je)),je}},[D]),Y=s.useCallback((ke,Ee)=>{const De=at=>$(at)?.label??"",Ie=at=>$(at)?.syllables??[...De(at)].length,je=at=>(at.words??[]).reduce((Ct,Fe)=>{const Ue=parseInt(Fe.grade??"",10);return Number.isFinite(Ue)&&Ue<Ct?Ue:Ct},999);switch(Z){case"match":return R(ke)-R(Ee)||Lo(De(ke),De(Ee));case"ganada":return Lo(De(ke),De(Ee));case"ganada_desc":return Lo(De(Ee),De(ke));case"syllable":return Ie(ke)-Ie(Ee)||Lo(De(ke),De(Ee));case"syllable_desc":return Ie(Ee)-Ie(ke)||Lo(De(ke),De(Ee));case"grade":return je(ke)-je(Ee)||Lo(De(ke),De(Ee));case"grade_desc":return je(Ee)-je(ke)||Lo(De(ke),De(Ee));default:return 0}},[Z,R]),Q=s.useMemo(()=>n.slice().sort(Y),[n,Y]),ae=Number(W)||10,te=s.useMemo(()=>(i??[]).flatMap(ke=>ke.items.slice().sort(Y).map(Ee=>({item:Ee,label:ke.label}))),[i,Y]),J=i?te.length:Q.length,Be=Math.max(1,Math.ceil(J/ae)),de=Math.min(X,Be),re=s.useMemo(()=>Q.slice((de-1)*ae,de*ae),[Q,de,ae]),I=s.useId(),ne=s.useMemo(()=>{if(!i)return null;const ke=te.slice((de-1)*ae,de*ae),Ee=new Map;for(const{item:De,label:Ie}of ke)Ee.has(Ie)||Ee.set(Ie,[]),Ee.get(Ie).push(De);return[...Ee.entries()].map(([De,Ie])=>({label:De,items:Ie}))},[i,te,de,ae]);s.useEffect(()=>{q(1)},[U,W,J,r]);const V=J>0?a.jsxs("div",{className:"word-search-result-block__toolbar",children:[a.jsx($o,{size:f,options:oe,value:Z,onChange:T,ariaLabel:C("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),a.jsx($o,{size:f,options:P,value:W,onChange:G,ariaLabel:C("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),a.jsx(os,{page:de,totalPages:Be,onChange:q})]}):void 0,se=ke=>{c&&c(ke)},F=t!==void 0&&o?a.jsxs(a.Fragment,{children:[C("wordSearch.resultTitlePrefix","\uCD1D "),a.jsx("span",{style:{color:"var(--color-main)"},children:t}),C("wordSearch.resultTitleSuffix",{unit:w?Jc(o):o})]}):void 0,le=t!==void 0&&t>0&&u!==void 0&&o?C("wordSearch.resultDisc",{unit:w?eu(o):o,max:u,selected:l.length}):void 0,pe=_??le,be=i?i.length===0:n.length===0,_e=yT([i,re,U,ae,X]),Re=be&&!v&&!b;return a.jsxs(wr,{type:x,className:Se("word-search-result-block",m),children:[a.jsxs("div",{ref:_e,className:Se("word-search-result-block__inner",Re&&"word-search-result-block__inner--head-only"),children:[(F||V||pe)&&a.jsxs("div",{className:"word-search-result-block__head",children:[a.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&a.jsx(nt,{icon:e,className:"word-search-result-block__head-icon"}),F&&a.jsx("span",{className:"word-search-result-block__title h3",children:F})]}),V&&a.jsx("div",{className:"word-search-result-block__head-actions",children:V}),pe&&a.jsx("div",{className:"word-search-result-block__head-disc body-3",children:pe})]}),be&&(v||b)&&a.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[v&&a.jsx("p",{className:"word-search-result-block__empty body-3",children:C("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&a.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(ne??[]).map(ke=>a.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${I}-${ke.label}`,children:[a.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${I}-${ke.label}`,children:ke.label}),a.jsx("div",{className:"word-search-result-block__items",children:ke.items.map(Ee=>{const De=l.includes(Ee.id);return a.jsx("div",{onMouseEnter:Ie=>{y(Ie.currentTarget),E(Ee.words??[])},onMouseLeave:A,children:a.jsx(ve,{htmlType:"button",size:"word",align:"grid",label:(Ee.words??[]).map(Ie=>Ie.label),subLabel:(Ee.words??[]).some(Ie=>Ie.subLabel)?(Ee.words??[]).map(Ie=>Ie.subLabel):void 0,selected:De,onClick:()=>se(Ee.id),minWidth:200})},Ee.id)})})]},ke.label)):a.jsx("div",{className:"word-search-result-block__items",children:re.map(ke=>{const Ee=l.includes(ke.id);return a.jsx("div",{onMouseEnter:De=>{y(De.currentTarget),E(ke.words??[])},onMouseLeave:A,children:a.jsx(ve,{htmlType:"button",size:"word",align:"grid",label:(ke.words??[]).map(De=>De.label),subLabel:(ke.words??[]).some(De=>De.subLabel)?(ke.words??[]).map(De=>De.subLabel):void 0,selected:Ee,onClick:()=>se(ke.id),minWidth:200})},ke.id)})}),B&&S&&a.jsx(gm,{words:B,anchorRect:S})]}),(d||h)&&a.jsxs("div",{className:"word-search-result-block__actions",children:[d&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:C("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),h&&a.jsx("div",{onClick:l.length===0?p:void 0,children:a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",label:C("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:h})})]})]})}var AT='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-group{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-group>.phoneme-select-block__cell{flex:1 1 auto;min-width:0;width:auto}.ihabdevteam-core-scope .phoneme-select-block__cell{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ue(AT);function ST(e,t){return t.map(o=>{const r=typeof o=="string"?o:o.label,n=typeof o=="string"?void 0:o.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function r_({sections:e,selectedList:t,count:o,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:h,title:p,titleIcon:m,disc:b,showInfoButton:v=!0,onClearPhoneme:x,onSearch:_,onSearchEmpty:f,searchDisabled:C=!1,searchLabel:g,searchChecking:w=!1,pairMode:S=!1,sectionType:y="page",beforeSearchContent:k,beforeContent:B,afterContent:E,hideCountControl:A=!1,ordinal:j=!1}){const{t:D}=Ae.useTranslation(),N=s.useMemo(()=>D("wordPairs.infoNotes",{returnObjects:!0}),[D]),z=s.useMemo(()=>Array.from({length:n-i+1},(P,$)=>{const R=i+$;return{key:String(R),label:D("wordPairs.count",{n:R})}}),[D,n,i]),O=s.useMemo(()=>D("wordPairs.ordinals",{returnObjects:!0}),[D]),U=s.useCallback(P=>j?D("wordPairs.phonemeOrdinalLabel",{ordinal:O[P-1]??P}):o===1?D("wordPairs.phonemeSingleLabel","\uC74C\uC808"):D("wordPairs.phonemeN",{n:P}),[j,O,o,D]),T=s.useCallback(P=>j?D("wordPairs.phonemeContrastOrdinalLabel",{ordinal:O[P-1]??P}):o===1?D("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):D("wordPairs.phonemeContrast",{n:P}),[j,O,o,D]),W=s.useCallback((P,$)=>$?a.jsxs(a.Fragment,{children:[P,a.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:G,toggleAt:X,close:q}=rn(),L=s.useCallback(P=>r(Number(P)),[r]),H=go("(max-width: 767px)"),Z=s.useCallback(P=>ST(P,e).map(({label:$,value:R,displayLabel:Y})=>{const Q=!!R&&R!=="\uC5C6\uC74C";return a.jsxs("span",{className:Se("phoneme-select-block__cell-jamo-part",R?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[a.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${R==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:R==="\uC5C6\uC74C"?"x":R||d}),Q&&a.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??$})]},$)}),[e,d]),oe=a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-tooltip-ignore":!0,children:a.jsx(ve,{htmlType:"button",size:40,type:H?"dot":void 0,icon:"info",label:H?void 0:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:G?"is-selected":void 0,"aria-expanded":!!G,"aria-haspopup":"dialog",onClick:P=>X(P.currentTarget)})}),G&&a.jsx(wa,{title:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:N,anchorRect:G,onClose:q})]});return a.jsxs(wr,{type:y,title:p,icon:m,disc:b,action:v?oe:void 0,className:Se("phoneme-select-block",h),children:[B,!A&&a.jsx("div",{className:"phoneme-select-block__controls",children:a.jsx(Mo,{options:z,value:String(o),onChange:L,size:40,ariaLabel:D("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),a.jsx("div",{className:"phoneme-select-block__cells",children:S?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2]??{};return a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(R)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:U($+1)})]},$)})}),a.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:D("wordPairs.phonemeSelect.vs","\uB300")}),a.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2+1]??{};return a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(R)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T($+1)})]},$)})})]}):t.map((P,$)=>a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(P)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:U($+1)})]},$))}),(l||c)&&a.jsx("div",{className:"phoneme-select-block__panels",children:a.jsx("div",{className:"phoneme-select-block__detail",children:S?a.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[a.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2]??{};return a.jsx(ma,{title:W(U($+1),$===0),sections:c?c(R,$*2):l,selected:R,onSelect:u?.($*2),align:"newline"},$)})}),a.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2+1]??{};return a.jsx(ma,{title:T($+1),sections:c?c(R,$*2+1):l,selected:R,onSelect:u?.($*2+1),align:"newline"},$)})})]}):t.map((P,$)=>a.jsx(ma,{title:W(U($+1),$===0),sections:c?c(P,$):l,selected:P,onSelect:u?.($),align:"newline"},$))})}),k&&a.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(x||_||w)&&(()=>{const P=t.every($=>{const R=k3($);return Object.entries(R).every(([Y,Q])=>!Q||Y==="coda"&&Q===Fb)});return a.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?f:void 0,children:[x&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:D("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:x}),_?a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:w?a.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:g??D("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||C||w,onDisabledClick:w?()=>{}:void 0,"aria-busy":w||void 0,onClick:_}):w?a.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[a.jsx("div",{className:"phoneme-select-block__spinner"}),a.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:g??D("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),E]})}function n_({title:e,sections:t,selected:o,onSelect:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,headerAction:d,className:h}){const{t:p}=Ae.useTranslation();return a.jsx(ma,{className:h,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:o,onSelect:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,headerAction:d,align:"inline"})}function i_({title:e,headerAction:t,sections:o,selected:r,onSelect:n,collapsible:i,defaultCollapsed:l,collapsed:c,onCollapsedChange:u,headerSummary:d,className:h}){const{t:p}=Ae.useTranslation();return o.length===0?null:a.jsx(ma,{className:h,title:e??p("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:o,selected:r,onSelect:n,collapsible:i,defaultCollapsed:l,collapsed:c,onCollapsedChange:u,headerSummary:d,align:"newline"})}function l_({title:e,mode:t,onModeChange:o,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:h}=Ae.useTranslation(),p={searchMode:h("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:h("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:h("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:h("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:h("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:h("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:h("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:h("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:h("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:h("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:h("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=_=>h("wordPairs.count",{n:_}),b=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:a.jsx(ln,{title:h("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[h("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),h("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),h("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:a.jsx(ln,{items:h("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[m(1),m(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:a.jsx(ln,{title:h("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[h("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),h("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],v={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:m(i),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},x=(_,f)=>{f===p.searchMode?o(_===p.explicit?"explicit":_===p.pick?"pick":"include"):f===p.phonemeOrder?n(_===p.orderMatch?"ordered":"unordered"):f===p.count?l(_===m(2)?2:1):f===p.inputMode&&u(_===p.pronInput?"phoneme":"word")};return a.jsx(ma,{className:d,title:e??h("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:v,onSelect:x,align:"inline"})}var ET=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ue(ET);function s_(e){const{title:t,items:o,columns:r,resizeStorageKey:n,gridTemplateColumns:i,mobileGridTemplateColumns:l,searchPlaceholder:c,searchFn:u,defaultSortKey:d,defaultSortAsc:h=!0,selectedId:p,selectedIds:m,onSelect:b,onClose:v,pageSizeOptions:x=[10,25,50,100],initialPageSize:_,emptyText:f,noMatchText:C,countLabel:g,topContent:w,className:S=""}=e,{t:y}=Ae.useTranslation(),k=c??y("common.search","\uAC80\uC0C9"),B=f??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=C??y("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[A,j]=s.useState(""),[D,N]=s.useState(d??r[0]?.key??""),[z,O]=s.useState(h),[U,T]=s.useState(String(_??x[0]??10)),[W,G]=s.useState(1);s.useEffect(()=>{G(1)},[A,U]);const X=u!==null,q=s.useCallback((ae,te)=>{if(!te)return!0;const J=te.toLowerCase();return r.some(Be=>{const de=ae[Be.key];return de==null?!1:String(de).toLowerCase().includes(J)})},[r]),L=u??q,H=s.useMemo(()=>{const ae=X?o.filter(te=>L(te,A)):o;return D?[...ae].sort((te,J)=>{const Be=te[D],de=J[D];return Be===de?0:Tl(Be,de,z)}):ae},[o,A,D,z,X,L]),Z=Math.max(1,Math.ceil(H.length/Number(U)));W>Z&&G(Z);const oe=Math.min(W,Z),P=H.slice((oe-1)*Number(U),oe*Number(U)),$=s.useCallback(ae=>{D===ae?O(te=>!te):(N(ae),O(!0)),G(1)},[D]),R=s.useMemo(()=>{if(typeof g=="function"){const ae=H.length,te=g(ae);if(typeof te=="string"){const J=te.lastIndexOf(String(ae));if(J>=0)return{prefix:te.slice(0,J),suffix:te.slice(J+String(ae).length)}}return{label:te}}if(typeof g=="string"&&g.includes("{n}")){const[ae,te]=g.split("{n}");return{prefix:ae,suffix:te}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[g,H.length,y]),Y=s.useMemo(()=>r.map(ae=>({label:ae.label,onClick:ae.sortable!==!1?()=>$(ae.key):void 0,className:ae.className,sortDir:ae.sortable!==!1&&D===ae.key?z?"asc":"desc":null})),[r,D,z,$]),Q=Dp(x);return a.jsxs(da,{className:`popup-list ${S}`,title:t,onClose:v,children:[w,"label"in R&&a.jsx("p",{className:"toolbar__count body-1",children:R.label}),a.jsx(as,{count:"label"in R?void 0:{value:H.length,prefix:R.prefix,suffix:R.suffix},search:X?{value:A,onChange:j,placeholder:k}:void 0,pageSize:{options:Q,value:U,onChange:T},pagination:{page:oe,total:Z,onChange:G}}),a.jsx(cs,{gridTemplateColumns:i,mobileGridTemplateColumns:l,resizable:!0,resizeStorageKey:n,fields:Y,items:P,onRowClick:b,renderRow:ae=>{const te=m!=null?ae.id!=null&&m.has(ae.id):p!=null&&ae.id===p;return r.map(J=>({content:J.render?J.render(ae):ae[J.key]??"",className:Se(J.className,te&&"popup-list__row--selected")}))},empty:X&&A!==""&&o.length>0?E:B})]})}function fm(e,t,o={}){const{t:r}=Ae.useTranslation(),[n,i]=s.useState(!1),l=s.useRef(!1),c=s.useCallback(()=>{l.current=!0},[]),u=s.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=n?a.jsx(di,{title:o.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:o.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:o.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:u,discardPopup:d,allowClose:c}}function c_(e,t,o={}){const r=JSON.stringify(e),[n,i]=s.useState(r),l=r!==n,c=fm(l,t,o),u=s.useRef(r);u.current=r;const d=s.useCallback(()=>i(u.current),[]);return{...c,isDirty:l,rebase:d}}var DT=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ue(DT);function u_({onApply:e,onCancel:t}){const{t:o}=Ae.useTranslation(),[r,n]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null),h=s.useId();s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async v=>{const x=r.trim();if(x){l(!0),u(null);try{await e(x),v()}catch(_){u(Gr(_)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((v,x)=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&p(x)},[p]),b=v=>{n(v.target.value),u(null)};return a.jsx(da,{className:"coupon-input-popup",title:o("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),width:"small",onClose:t,closeDisabled:i,buttons:[{label:o("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:v})=>v()},{label:o("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:v})=>{p(v)}}],children:({closeWithAnimation:v})=>a.jsxs(a.Fragment,{children:[a.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":o("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),"aria-invalid":c?!0:void 0,"aria-errormessage":c?h:void 0,"aria-describedby":c?h:void 0,placeholder:o("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:b,onKeyDown:x=>m(x,v),disabled:i,autoComplete:"off",spellCheck:!1}),c&&a.jsx("p",{id:h,className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var jT=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ue(jT);const d_=["var(--color-main)","var(--color-sub)"],NT=2e3;function TT(e,t){if(!t.startsWith("var("))return t;try{const o=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(o).trim()||null}catch{return null}}function Ls({active:e=!1,count:t=40,duration:o=2e3,strength:r=1,onComplete:n,trigger:i=0}){const l=s.useMemo(()=>{const x=Math.floor(t/2),_=t-x,f=(C,g)=>Array.from({length:C}).map((w,S)=>{const y=6+Math.random()*12,k=Math.round(Math.min(18,y*Math.min(1.5,1+r*.4))),B=d_[Math.floor(Math.random()*d_.length)],E=Math.random()*300,A=(360+Math.random()*260)*r*1.2,j=(g==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,D=Math.cos(j)*A,N=Math.sin(j)*A*1.35,z=Math.random()*720-360,O=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),U=Math.random()>.7?"50%":"3px";return{id:`${g}-${S}`,side:g,size:k,color:B,delay:E,vx:D,vy:N,angularVel:z,life:O,borderRadius:U}});return[...f(x,"left"),...f(_,"right")]},[t,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),h=s.useRef(n);s.useEffect(()=>{h.current=n},[n]);const p=s.useRef(null),m=s.useRef(null),b=()=>{if(typeof document>"u")return null;let x=document.querySelector("[data-ihab-effect-root]");return x||(x=document.createElement("div"),x.className="app-effect",x.dataset.ihabEffectRoot="",x.style.position="fixed",x.style.inset="0",x.style.pointerEvents="none",x.style.zIndex="99998",document.body.appendChild(x)),x};if(typeof document<"u"&&m.current==null&&(m.current=b()),s.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>h.current?.(),0);return()=>clearTimeout(q)}const x=1200,_=performance.now(),f=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),g=q=>Math.max(40,(q||window.innerWidth)*.02),w=f?.width||window.innerWidth||375,S=f?.height||window.innerHeight||812,y=q=>{const L=[...q].sort((H,Z)=>H-Z);return L[Math.floor(L.length/2)]||1},k=y(l.map(q=>Math.abs(q.vy))),B=y(l.map(q=>Math.abs(q.vx))),E=Math.sqrt(2*x*(S*.72+C))/k,A=k*E/x,j=w*.5/(B*A),D=(q,L,H)=>Math.min(H,Math.max(L,q)),N=D(E,.8,2.4),z=D(j,.7,2.2),O=o>0?o/NT:1,U=l.map(q=>({...q,life:q.life*O,vx:q.vx*z,vy:q.vy*N,startTime:_+q.delay,ended:!1})),T=f?{x:f.left-g(f.width),y:f.top+f.height+C}:{x:-g(window.innerWidth),y:window.innerHeight+C},W=f?{x:f.left+f.width+g(f.width),y:f.top+f.height+C}:{x:window.innerWidth+g(window.innerWidth),y:window.innerHeight+C},G=q=>{let L=!1;for(const H of U){const Z=u.current[H.id];if(!Z||!Z)continue;if(q<H.startTime){Z.style.display="none",L=!0;continue}if(!H._inited){const Be=H.side==="left"?T.x:W.x,de=H.side==="left"?T.y:W.y;Z.style.left=`${Be}px`,Z.style.top=`${de}px`,Z.style.transform="translate3d(0px, 0px, 0)",Z.style.display="block",Z.style.zIndex="100000",typeof H.color=="string"&&H.color.startsWith("var(")&&(Z.style.background=TT(Z,H.color)??"#FF0060"),H._inited=!0}const oe=(q-H.startTime)/1e3;if(oe<0)continue;const P=H.life/1e3;if(oe>=P){Z.style.opacity="0",Z.style.display="none",H.ended=!0;continue}L=!0;const $=H.side==="left"?T.x:W.x,R=H.side==="left"?T.y:W.y,Y=$+H.vx*oe,Q=R+H.vy*oe+.5*x*oe*oe,ae=(H.angularVel||0)*oe,te=Y-$,J=Q-R;Z.style.transform=`translate3d(${te}px, ${J}px, 0) rotate(${ae}deg)`,Z.style.opacity=`${Math.max(0,1-oe/P)}`}L?d.current=requestAnimationFrame(G):h.current?.()};d.current=requestAnimationFrame(G);const X=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const L of l){const H=document.createElement("span");H.className=`confetti confetti--${L.side}`,H.setAttribute("aria-hidden","true"),H.style.display="none",H.style.position="fixed",H.style.left="0px",H.style.top="0px",H.style.width=`${L.size}px`,H.style.height=`${Math.max(4,L.size*.6)}px`,H.style.background=L.color,H.style.borderRadius=L.borderRadius,H.style.transform="translate3d(0,0,0)",H.style.opacity="0",q.appendChild(H),u.current[L.id]=H}(document.body||m.current).appendChild(q),p.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(X),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,o,i,l]),!e)return null;const v=a.jsx("div",{className:"party-container",ref:c,children:l.map(x=>a.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[x.id]=_},className:`confetti confetti--${x.side}`,style:{width:`${x.size}px`,height:`${Math.max(4,x.size*.6)}px`,background:x.color,borderRadius:x.borderRadius}},`${x.id}-${i}`))});return typeof document<"u"?Do.createPortal(v,m.current||document.body):v}const vm=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function p_({trigger:e=0,active:t=!1}){const[o,r]=s.useState(null);s.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(u=>({n:(u?.n??0)+1,count:vm(c.count),strength:vm(c.strength),duration:vm(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const n=s.useCallback(()=>r(null),[]);return a.jsxs(a.Fragment,{children:[a.jsx(Ls,{active:t,trigger:e}),o&&a.jsx(Ls,{active:!0,trigger:o.n,count:o.count,strength:o.strength,duration:o.duration,onComplete:n})]})}var LT=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:center;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}.ihabdevteam-core-scope .page-title--wrap{flex-wrap:wrap}.ihabdevteam-core-scope .page-title--wrap .page-title__main{min-width:min(320px,100%)}";ue(LT);function h_({title:e,sub:t,rightAction:o,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:h}=Ae.useTranslation();Kd(typeof e=="string"?e:l??null);const p=u??h("common.back","\uB4A4\uB85C");return a.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[a.jsxs("div",{className:"page-title__main",children:[a.jsxs("div",{className:"page-title__title-row",children:[c&&a.jsx(ve,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),a.jsx("h1",{className:"page-title__title h1",children:e}),n&&a.jsx("div",{className:"page-title__badge",children:a.jsx(co,{label:n,size:"small",variant:i,fill:"outline"})}),r?a.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&a.jsx("p",{className:"page-title__sub body-2",children:t})]}),o?a.jsx("div",{className:"page-title__action",children:o}):null]})}function m_(e){return e??""}const b_=s.createContext({words:[],loading:!1});function g_(){return s.useContext(b_)}function f_({words:e,loading:t,error:o,statusMessage:r,localVersion:n,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){const h=s.useMemo(()=>({words:e,loading:t,error:o,statusMessage:r,localVersion:n,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u}),[e,t,o,r,n,i,l,c,u]);return a.jsx(b_.Provider,{value:h,children:d})}var MT=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ue(MT);function v_({items:e,actions:t,columns:o,flat:r=!1,className:n,style:i}){const l=o??e.length;return a.jsx("section",{className:Se("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(l),...i},children:a.jsxs("div",{className:"summary-strip__row",children:[a.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>a.jsxs("div",{className:"summary-strip__item",children:[a.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),a.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},u))}),t&&a.jsx("div",{className:"summary-strip__actions",children:t})]})})}var $T='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media screen{.ihabdevteam-core-scope .report-doc__page--off-screen{display:none}.ihabdevteam-core-scope .report-doc__page{zoom:1;zoom:var(--report-zoom,1)}.ihabdevteam-core-scope .report-doc--spread .report-doc__pages{align-items:flex-start;flex-direction:row;flex-wrap:wrap;justify-content:center}}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}.ihabdevteam-core-scope .report-doc__measure{height:0;overflow:hidden}.ihabdevteam-core-scope .report-doc__measure>*{flex-shrink:0}}';ue($T);const RT=(e,t)=>`${e} / ${t}`;function x_({blocks:e,sectionTitles:t,logo:o,footer:r,pageLabel:n=RT,pageWidth:i,pageHeight:l,margin:c,className:u,style:d,page:h,zoom:p,layout:m="stack",onPageCountChange:b}){const{t:v}=Ae.useTranslation(),x=s.useRef(null),_=s.useRef(null),f=s.useRef(null),C=s.useRef(null),[g,w]=s.useState(null),[S,y]=s.useState(!1);s.useEffect(()=>{const L=x.current;if(!L)return;const H=()=>y(L.scrollWidth>L.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(H);return Z.observe(L),()=>Z.disconnect()},[g]);const k=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),B=g&&g.shape===k?g.pages:null,E=B?B.length:0,A=s.useRef(b);A.current=b,s.useEffect(()=>{E>0&&A.current?.(E)},[E]);const j=h!=null&&E>0?Math.min(E,Math.max(1,Math.floor(h)))-1:null,[D,N]=s.useState(0);s.useEffect(()=>{const L=C.current;if(!L||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>N(L.offsetHeight));return H.observe(L),()=>H.disconnect()},[]);const[z,O]=s.useState(0);s.useEffect(()=>{const L=_.current;if(!L||typeof ResizeObserver>"u")return;let H=null;const Z=typeof requestAnimationFrame=="function"?$=>requestAnimationFrame($):$=>setTimeout($,16),oe=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:$=>clearTimeout($),P=new ResizeObserver(()=>{H==null&&(H=Z(()=>{H=null,O($=>$+1)}))});return Array.from(L.children).forEach($=>P.observe($)),()=>{P.disconnect(),H!=null&&oe(H)}},[k]),s.useLayoutEffect(()=>{const L=_.current,H=C.current;if(!L||!H)return;const Z=J=>J.getBoundingClientRect().height||J.offsetHeight,oe=new Map;f.current?.querySelectorAll("[data-chrome-section]").forEach(J=>{oe.set(J.dataset.chromeSection??"",Z(J))});const P=J=>Z(H)-(oe.get(J??"")??0),$=Array.from(L.children).map(J=>Z(J)),R=[];e.forEach((J,Be)=>{const de=R[R.length-1],re=de?e[de[0]]:void 0;re&&J.group!=null&&re.group===J.group&&re.section===J.section?de.push(Be):R.push([Be])});const Y=[];let Q=[],ae=0;const te=()=>{Q.length&&Y.push(Q),Q=[],ae=0};R.forEach(J=>{const Be=J.reduce((re,I)=>re+$[I],0),de=P(e[J[0]].section);Q.length&&e[Q[0]].section!==e[J[0]].section&&te(),Be>de?J.forEach(re=>{Q.length&&ae+$[re]>de+.01&&te(),Q.push(re),ae+=$[re]}):(Q.length&&ae+Be>de+.01&&te(),J.forEach(re=>Q.push(re)),ae+=Be)}),te(),w(J=>J&&J.shape===k&&JSON.stringify(J.pages)===JSON.stringify(Y)?J:{shape:k,pages:Y})},[k,D,i,l,c,z]);const U=Up,T=U,W=r??a.jsxs(a.Fragment,{children:[a.jsx("img",{src:T,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),G=(L,H,Z)=>({header:a.jsxs("div",{className:"report-doc__header",children:[a.jsx("h2",{className:"report-doc__title h3b",children:Z!=null&&t?.[Z]||null}),o]}),footer:a.jsxs("div",{className:"report-doc__footer caption-1",children:[a.jsx("span",{className:"report-doc__footer-left",children:W}),a.jsx("span",{className:"report-doc__page-no",children:n(L,H)})]})}),X=Array.from(new Set(e.map(L=>L.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...p!=null&&p>0&&p!==1?{"--report-zoom":String(p)}:null,...d};return a.jsxs("div",{ref:x,className:Se("report-doc",m==="spread"&&"report-doc--spread",u),style:q,tabIndex:S?0:void 0,role:S?"group":void 0,"aria-label":S?v("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[a.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[a.jsx("div",{ref:C,className:"report-doc__ruler"}),a.jsx("div",{ref:f,children:X.map(L=>{const H=G(1,1,L||void 0);return a.jsxs("div",{"data-chrome-section":L,children:[H.header,H.footer]},L)})}),a.jsx("div",{ref:_,className:"report-doc__measure-blocks",children:e.map(L=>a.jsx("div",{children:L.content},L.id))})]}),B&&a.jsx("div",{className:"report-doc__pages",children:B.map((L,H)=>{const{header:Z,footer:oe}=G(H+1,B.length,e[L[0]].section);return a.jsxs("section",{className:Se("report-doc__page",j!=null&&j!==H&&"report-doc__page--off-screen"),children:[Z,L.map(P=>a.jsx("div",{children:e[P].content},e[P].id)),oe]},H)})})]})}var PT=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);min-width:0;overflow-wrap:anywhere}";ue(PT);function C_({title:e,fields:t,columns:o=4,className:r,style:n}){return a.jsxs("div",{className:Se("report-info",r),style:{"--report-info-cols":String(o),...n},children:[e&&a.jsx("p",{className:"report-info__title h5b",children:e}),a.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>a.jsxs("div",{className:"report-info__field body-2",children:[a.jsx("span",{className:"report-info__label body-3",children:i.label}),a.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Sr=new Map;let Ms=null;const zT=12;function OT(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const o=window.getComputedStyle(t);if(o.transform&&o.transform!=="none"||o.filter&&o.filter!=="none"||o.perspective&&o.perspective!=="none"||/paint|layout|strict|content/.test(o.contain||""))return t}return document}function $s(){const e=new Map;for(const t of Sr.keys()){if(!t.isConnected)continue;const o=OT(t),r=e.get(o)??[];r.push(t),e.set(o,r)}for(const t of e.values()){t.sort((r,n)=>r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let o=0;for(const r of t){o>0?r.style.setProperty("--update-alert-stack-offset",`${o}px`):r.style.removeProperty("--update-alert-stack-offset");const n=r.getBoundingClientRect().height;n>0&&(o+=n+zT)}}}function IT(e){return typeof window>"u"?()=>{}:(Sr.set(e,(Sr.get(e)??0)+1),Sr.get(e)===1&&typeof ResizeObserver<"u"&&(Ms??(Ms=new ResizeObserver(()=>$s())),Ms.observe(e)),$s(),()=>{const t=(Sr.get(e)??1)-1;if(t>0){Sr.set(e,t),$s();return}Sr.delete(e),Ms?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),$s()})}var FT=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:color-mix(in srgb,var(--color-white) 92%,transparent);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;top:calc(16px + var(--update-alert-stack-offset, 0px));z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;top:auto;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:var(--color-gray);cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:var(--color-text-primary)}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:var(--color-text-primary);text-align:left}.ihabdevteam-core-scope .update-alert__message{color:var(--color-darkGray);margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ue(FT);function __({title:e,message:t,actionLabel:o,onAction:r,icon:n,onClose:i,className:l=""}){const{t:c}=Ae.useTranslation(),u=o??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=s.useRef(null),h=s.useRef(!1);return s.useLayoutEffect(()=>{const p=d.current,m=p?.parentElement?.closest(".update-alert-stack")??p,b=m?IT(m):null;return()=>{b?.(),h.current&&p&&p.contains(document.activeElement)&&kl(p)}},[]),a.jsxs("div",{ref:d,className:Se("update-alert",l),role:"alert",children:[i&&a.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{h.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),a.jsxs("div",{className:"update-alert__top",children:[a.jsx("div",{className:"update-alert__icon",children:n??a.jsx(zm,{size:20,strokeWidth:2})}),a.jsxs("div",{className:"update-alert__body",children:[a.jsx("div",{className:"update-alert__title h4",children:e}),a.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&a.jsx(ve,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}var WT=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex:none;flex-direction:column;gap:10px;max-width:100%;padding:18px;padding:var(--training-card-padding,18px);position:relative;transition:border-color .15s,box-shadow .15s;width:344px;width:var(--training-card-width,344px)}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:0;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;row-gap:0}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__header>.training-card__category{grid-area:1/1;margin-bottom:2px;min-width:0}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:2/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:3/1;margin-top:2px}.ihabdevteam-core-scope .training-card__category{color:var(--color-main-ink,var(--color-main));font-weight:600;margin:0;min-height:1lh;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__category--sub{color:var(--color-sub)}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/4}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;margin-block:-6px;max-width:120px;min-height:24px;overflow:hidden;padding:0;padding-block:6px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-lightGray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{align-items:center;display:flex;flex:1;flex-direction:column;gap:8px;justify-content:center;min-height:72px}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__body--empty,.ihabdevteam-core-scope .training-card__footer--empty{pointer-events:none}.ihabdevteam-core-scope .training-card__menu-host{display:contents}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;gap:var(--training-card-tile-gap,6px);justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;min-height:28px;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .training-card__publisher--static{cursor:default}.ihabdevteam-core-scope .training-card__publisher--static:hover{color:var(--color-gray);text-decoration:none}";ue(WT);function y_({title:e,titleLevel:t=3,category:o,categoryVariant:r="main",description:n,topActions:i,actions:l,children:c,footerLeft:u,footerRight:d,ariaLabel:h,onClick:p,draggable:m,onDragStart:b,onDragEnd:v,className:x}){const _=t?`h${t}`:"div",{t:f}=Ae.useTranslation(),[C,g]=s.useState(null),w=s.useCallback(()=>g(null),[]),S=s.useCallback(j=>{const D=j.currentTarget.getBoundingClientRect();g(N=>N?null:{left:D.left,right:D.right,top:D.top,bottom:D.bottom,width:D.width,height:D.height,x:D.x,y:D.y})},[]),y=(l??[]).filter(Boolean),k=(y.length===1?a.jsx(ve,{htmlType:"button",type:"dot",size:40,icon:y[0].icon,ariaLabel:y[0].label,showTooltipInfo:y[0].label,selected:y[0].selected,disabled:y[0].disabled,variant:y[0].variant??"default",onClick:y[0].onClick}):y.length>1?a.jsx(ve,{htmlType:"button",type:"dot",size:40,icon:"ellipsis",ariaLabel:f("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:f("common.more","\uB354\uBCF4\uAE30"),variant:"transparent-lightGray",useBorder:!1,"aria-haspopup":"menu","aria-expanded":!!C,onClick:S}):null)??i,B=u!=null||d!=null,E=c!=null&&c!==!1,A=s.useCallback(j=>{p&&j.target===j.currentTarget&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),p())},[p]);return a.jsxs("div",{className:Se("training-card",p?"training-card--clickable":"",x),onClick:p,onKeyDown:p?A:void 0,role:p?"button":void 0,"aria-label":p?h??(typeof e=="string"?e:void 0):void 0,tabIndex:p?0:void 0,draggable:m,onDragStart:b,onDragEnd:v,children:[a.jsxs("div",{className:"training-card__header",children:[o!=null?a.jsx("p",{className:Se("training-card__category","caption-1",r==="sub"&&"training-card__category--sub"),children:o}):a.jsx("p",{className:"training-card__category caption-1","aria-hidden":"true",children:" "}),a.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?a.jsx(_,{className:"training-card__title h4",children:e}):e,k!=null&&a.jsx("div",{className:"training-card__top-actions",onClick:j=>j.stopPropagation(),children:k})]}),n!=null?typeof n=="string"?a.jsx("p",{className:"training-card__description body-3",children:n}):n:a.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),E?a.jsx("div",{className:"training-card__body",children:c}):a.jsx("div",{className:"training-card__body training-card__body--empty","aria-hidden":"true"}),B?a.jsxs("div",{className:"training-card__footer",children:[u!=null&&a.jsx("div",{className:"training-card__footer-left",children:u}),d!=null&&a.jsx("div",{className:"training-card__meta",children:d})]}):a.jsx("div",{className:"training-card__footer training-card__footer--empty","aria-hidden":"true"}),C&&y.length>1&&a.jsx("div",{className:"training-card__menu-host",onClick:j=>j.stopPropagation(),children:a.jsx(fo,{anchorRect:C,onClose:w,ariaLabel:f("tooltip.menu","\uBA54\uB274"),children:a.jsx(Ba,{columns:[{items:Vl(y.map(j=>({label:j.label,icon:j.icon,selected:j.selected,disabled:j.disabled,onClick:j.onClick,shortcut:j.shortcut})))}],onClose:w,size:"small"})})})]})}var GT=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;flex-wrap:wrap;gap:8px;min-height:60px;min-width:0;padding:10px 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main-ink,var(--color-main));flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ue(GT);function w_({title:e,titleLevel:t=3,count:o,collapsed:r=!1,onToggle:n,beforeSort:i,sort:l,actions:c,empty:u=!1,emptyContent:d,dragOver:h=!1,onDragOver:p,onDragLeave:m,onDrop:b,children:v,className:x}){const{t:_}=Ae.useTranslation(),f=s.useId(),C=t?`h${t}`:"span",g=n!=null,w=Se("training-card-group",h&&"training-card-group--dragover",r&&"training-card-group--collapsed",g&&"training-card-group--collapsible",x);return a.jsxs("div",{className:w,onDragOver:p,onDragLeave:m,onDrop:b,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?f:void 0,children:[a.jsxs("header",{className:"training-card-group__header",children:[g&&a.jsx(ve,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?_("common.expandFor",{name:e}):_("common.collapseFor",{name:e}):r?_("common.expand","\uD3BC\uCE58\uAE30"):_("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:n}),typeof e=="string"?a.jsx(C,{id:f,className:"training-card-group__title h5b",children:e}):e,o!==void 0&&a.jsx("span",{className:"training-card-group__count body-3b",children:o}),(i!=null||l||c!=null)&&a.jsxs("span",{className:"training-card-group__actions",onClick:S=>S.stopPropagation(),children:[i,l&&a.jsx($o,{size:40,options:l.options,value:l.value,placeholder:l.placeholder,onChange:l.onChange,ariaLabel:typeof e=="string"&&e?_("common.sortFor",{name:e}):void 0}),c]})]}),!r&&(u?a.jsx("div",{className:"training-card-group__empty body-3",children:d}):a.jsx("div",{className:"training-card-group__grid",children:v}))]})}var HT=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__table-actions{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:auto}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:0}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}.ihabdevteam-core-scope .word-table-block__table-actions{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__table-actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ue(HT);const VT="speechear:saved_word_tables";function UT(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function qT(){try{const e=localStorage.getItem(VT);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(UT):[]}catch{return[]}}function k_(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function xm(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function YT(e){const t=new Set;return e.map(o=>{let r=o.id;for(let n=2;t.has(r);n++)r=`${o.id}~${n}`;return t.add(r),r===o.id?o:{...o,id:r}})}function B_({title:e,titleIcon:t,disc:o,filterTitle:r,filterCollapsible:n,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:c,filterHeaderSummary:u,brand:d,code:h,baseItem:p,baseContentTypes:m,cellCapacity:b,maxItemsPerPage:v,items:x,onSaveComplete:_,onLoad:f,onRemoveItem:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,onReset:y,resetLabel:k,saveButtonLabel:B,secondarySaveButtonLabel:E,onReorder:A,showCellCount:j,onAddItem:D,fillerAdd:N,className:z,renderSavePopup:O,renderWordSearch:U,hideControls:T,saveOnly:W,tableName:G,nameValue:X,onNameChange:q,descriptionValue:L,onDescriptionChange:H,namePlaceholder:Z,descriptionPlaceholder:oe,existingNames:P,editingName:$,onCancel:R,initialItemsPerPage:Y,onItemsPerPageChange:Q,renderCellAction:ae,actionsLeftExtra:te}){const{t:J}=Ae.useTranslation(),Be=k??J("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),de=x===void 0,re=!!q,[I,ne]=s.useState([]),V=(X??"").trim(),se=V||(Z??"").trim(),F=(L??"").trim()||(oe??"").trim(),le=(P??[]).map($e=>$e.trim().toLowerCase()),pe=[$?.trim().toLowerCase(),...I].filter($e=>!!$e),be=[...le];for(const $e of pe){const Qe=be.indexOf($e);Qe!==-1&&be.splice(Qe,1)}const _e=V!==""&&be.includes(V.toLowerCase()),[Re,ke]=s.useState(Array(4).fill(null)),[Ee,De]=s.useState(4),[Ie,je]=s.useState(null),at=Re.slice(0,Ee),Ct=!!d?.show,[Fe,Ue]=s.useState(!0),[rt,Ge]=s.useState(!0),Je=d&&{...d,top:Fe,bottom:rt},[st,_t]=s.useState("landscape"),[bt,At]=s.useState([...Lx]),[dt,Qt]=s.useState("show"),[St,Wt]=s.useState(!0),[tt,Ne]=s.useState(!0),it=s.useRef(null),ut=s.useRef([]),[yt,Tt]=s.useState(Y==="all"?Number.POSITIVE_INFINITY:Y??8),[Ht,vt]=s.useState("right"),[gt,Nt]=s.useState(!1),[Lt,et]=s.useState(!1),{toastMessage:Et,toastType:he,showWarning:Te,clearToast:ze}=Ol("warning"),Ye=s.useCallback(()=>je(null),[je]);p&&de&&jt("word-table-block-base-item-in-edit","[WordTableBlock] baseItem \uC740 \uD45C\uC2DC \uBAA8\uB4DC(items \uB97C \uC8FC\uB294 \uAF34)\uC5D0\uC11C\uB9CC \uAC78\uB9B0\uB2E4 \u2014 \uD3B8\uC9D1 \uACA9\uC790\uC5D0\uB294 \uC11C\uC9C0 \uC54A\uB294\uB2E4.");const[ct,Vt]=s.useState(()=>Math.max(x?.length??1,1)),pt=Math.max(b??0,x?.length??0,1),ao=b!=null||!!j,Ot=de?Ee:j?Math.max(ct,x?.length??1,1):pt,{width:Ke,height:ee}=Ha[st],xe=!de&&!j,He=Math.max(1,Math.min(pt,v??pt)),Xe=Math.min(yt,He),lt=xe?Xe:Ot,ht=v!=null&&b!=null,Mt=ht?Math.max(1,Math.min(yt,v)):Xe,Ut=s.useRef(Q);s.useEffect(()=>{Ut.current=Q}),s.useEffect(()=>{xe&&Ut.current?.(Mt)},[xe,Mt]);const Po=Math.ceil((x?.length??0)/Math.max(1,lt)),_o=(x?.length??0)<pt?Math.floor((x?.length??0)/Math.max(1,lt))+1:0,zo=xe?Math.max(1,Po,_o):0,wo=xe?Array.from({length:zo},($e,Qe)=>(x??[]).slice(Qe*lt,(Qe+1)*lt)):null,no=!!wo&&wo.length>1,yo=de?at.some($e=>$e!==null&&$e.length>1):(x??[]).some($e=>($e.words??[]).length>1),ko=G?.trim()||`${il(Io())} ${yo?J("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):J("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,uo=s.useCallback(()=>no?ut.current.filter($e=>$e!==null):it.current?[it.current]:[],[no]),{print:It,openNewWindow:$t,downloadHtml:qt}=gs({getElements:uo,paperW:Ke,paperH:ee,fileName:ko,onPopupBlocked:()=>{Te(J("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ft=$e=>{De($e),ke(Qe=>Qe.length>=$e?Qe:[...Qe,...Array($e-Qe.length).fill(null)]),je(null)},ga=$e=>{ke(Qe=>{const Pt=[...Qe];return Pt[$e]=null,Pt}),Ie===$e&&je(null)},Go=$e=>{if(Ie===null)return;const Qe=Ie;ke(Ho=>{const fa=[...Ho];return fa[Qe]=$e.length>0?$e:null,fa});const Pt=at.findIndex((Ho,fa)=>fa>Qe&&Ho===null);je(Pt!==-1?Pt:null)},Ya=de?at.some($e=>$e?.some(Qe=>!!Qe.colloquialPronunciation)):(x??[]).some($e=>($e.words??[]).some(Qe=>!!Qe.colloquialLabel)),ta=!de&&Mx([...p?[p]:[],...x??[]]),fe=s.useMemo(()=>Ta()?de?Re.slice(0,Ee).flatMap($e=>($e??[]).map(Qe=>[Qe.word,Qe.homonum])):($e=>$e.flatMap(Qe=>(Qe.words??[]).map(Pt=>[Pt.label,Pt.homonum])))([...p?[p]:[],...x??[]]):[],[de,Re,Ee,x,p]),[Le,K]=s.useState(!1);s.useEffect(()=>{if(fe.length===0)return;let $e=!1;return Promise.all(fe.map(([Qe,Pt])=>Ti(Qe,Pt))).then(Qe=>{$e||K(Qe.some(Boolean))},()=>{}),()=>{$e=!0}},[fe]);const ge=fe.length>0&&Le,Ce=s.useMemo(()=>[...de||j?[{label:J("wordTable.filter.columns","\uCE78 \uC218"),items:Gj.map($e=>({value:`${$e}\uCE78`,displayLabel:J("wordTable.filter.column",{count:$e})})),display:"segmented"}]:[],...xe&&(x?.length??0)>0?[Wx(J,{hasPairs:yo,itemCount:ht?v:pt,max:v})]:[],...no?[Vj(J)]:[]],[J,de,j,xe,x?.length,yo,pt,v,no]),Me={...de||j?{[J("wordTable.filter.columns","\uCE78 \uC218")]:`${Ot}\uCE78`}:{},...xe&&(x?.length??0)>0?{[J(yo?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Mt}\uAC1C`}:{},...no?{[J("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ht}:{}},Pe=($e,Qe)=>{if(Qe===J("wordTable.filter.columns","\uCE78 \uC218"))de?Ft(parseInt($e)):Vt(parseInt($e));else if(Qe===J(yo?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const Pt=parseInt($e);Tt(ht?Pt:Gx(Pt,pt))}else Qe===J("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&vt(Hx($e))},Ve=de?YT(at.filter($e=>$e!==null&&$e.length>0).map($e=>({id:xm($e),words:$e.map(k_)}))):x??[],mt=()=>{de&&ke($e=>$e.length>Ee?$e.slice(0,Ee):$e)},wt=($e=!1)=>{if(et($e),re&&_){const Qe=se.trim().toLowerCase();Qe&&ne(Pt=>Pt.includes(Qe)?Pt:[...Pt,Qe]),_(se,Ve,F||void 0,$e),mt();return}if(W&&_){_("",Ve,void 0,$e),mt();return}if(_){Nt(!0);return}qt()},[we,M]=s.useState(!1),[ie,ye]=s.useState(""),Oe=ie.trim(),qe=Oe!==""&&le.includes(Oe.toLowerCase()),ot=()=>{ye(se?J("wordTable.save.copyName",{name:se,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),M(!0)},Dt=()=>{!Oe||qe||!_||(_(Oe,Ve,F||void 0,!0),mt(),M(!1))},Rt=Ve.length===0,po=Rt||re&&(se===""||_e),ho=()=>{if(Rt){Te(J("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(re&&se===""){Te(J("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}re&&_e&&Te(J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},bn=a.jsx(kr,{items:Ve,orientation:st,contentTypes:bt,baseItem:p,baseContentTypes:m,cutLine:dt,showOutline:St,showDivLine:tt,count:Ot});return a.jsxs(a.Fragment,{children:[a.jsxs(wr,{type:"page",icon:t,title:e,disc:o,className:Se("word-table-block",z),children:[we&&a.jsx(da,{width:"small",title:E??J("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>M(!1),footer:({closeWithAnimation:$e})=>a.jsxs(a.Fragment,{children:[a.jsx(ve,{htmlType:"button",size:48,type:"bar",label:J("common.cancel","\uCDE8\uC18C"),onClick:$e}),a.jsx(ve,{htmlType:"button",size:48,type:"bar",variant:"main",label:J("common.save","\uC800\uC7A5"),disabled:!Oe||qe,onClick:Dt})]}),children:a.jsx(pa,{label:J("wordTable.save.nameLabel","\uC774\uB984"),value:ie,onChange:ye,placeholder:J("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Dt,error:qe?J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),gt&&_&&O?.({defaultName:typeof e=="string"?e:J("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:bn,previewW:Ke,previewH:ee,items:Ve,existingNames:qT().map($e=>$e.name),saveAsNew:Lt,onSave:($e,Qe)=>{_($e,Ve,Qe,Lt),mt(),Nt(!1)},onCancel:()=>Nt(!1)}),(de||D)&&Ie!==null&&U?.({cellIndex:Ie,onConfirm:de?Go:$e=>{if(D){const Qe=$e[0];if(Qe){const Pt=new Set((x??[]).map(fa=>fa.id));let Ho=xm([Qe]);for(let fa=2;Pt.has(Ho);fa++)Ho=`${xm([Qe])}~${fa}`;D({id:Ho,words:[k_(Qe)]})}}je(null)},onClose:Ye}),!T&&a.jsx(ms,{title:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,hasImage:ge,hasColloquial:Ya,hasCaption:ta,contentTypes:bt,orientation:st,showOutline:St,cutLine:dt,showDivLine:tt,setters:{setContentTypes:At,setOrientation:_t,setShowOutline:Wt,setCutLine:Qt,setShowDivLine:Ne,setShowTopInfo:Ue,setShowBottomInfo:Ge},showCutLine:(xe?lt:Ot)>1,showDivLine2:yo,middleSections:Ce,extraSelected:Me,onExtraSelect:Pe,showPaperBands:Ct,showTopInfo:Fe,showBottomInfo:rt}),no&&wo?a.jsx("div",{className:"word-table-block__pages",children:wo.map(($e,Qe)=>a.jsx(kr,{orientation:st,contentTypes:bt,cutLine:dt,showOutline:St,showDivLine:tt,count:lt,items:$e,baseItem:p,baseContentTypes:m,onRemoveItem:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,onReorder:A&&((Pt,Ho)=>A(Pt+Qe*lt,Ho+Qe*lt)),indexOffset:Qe*lt,totalCount:x?.length??0,renderCellAction:ae&&((Pt,Ho)=>ae(Pt+Qe*lt,Ho)),showFillerAdd:!!D,fillerAdd:N,onActivateCell:D?(Pt=>je(Pt+Qe*lt)):void 0,addableCount:ao?Math.max(0,Math.min(lt,pt-Qe*lt)):void 0,brand:Je,code:h,contentRef:Pt=>{ut.current[Qe]=Pt},pageNumber:{current:Qe+1,total:wo.length},pageNumberPosition:Ht},Qe))}):a.jsx(kr,{orientation:st,contentTypes:bt,cutLine:dt,showOutline:St,showDivLine:tt,count:lt,items:de?void 0:x??[],baseItem:de?void 0:p,baseContentTypes:m,editCells:de?at:void 0,activeCell:Ie,onActivateCell:de||D?je:void 0,onRemoveCell:de?ga:void 0,onRemoveItem:de?void 0:C,onCopyItem:de?void 0:g,onReplaceItem:de?void 0:w,onPickForm:de?void 0:S,onReorder:de?void 0:A,addableCount:ao?xe?Math.min(lt,pt):Ot:void 0,renderCellAction:de?void 0:ae,brand:Je,code:h,showFillerAdd:!!D,fillerAdd:N,contentRef:it}),!T&&!W&&te!=null&&a.jsx("div",{className:"word-table-block__table-actions",children:te}),re&&!T&&a.jsxs(xr,{labelWidth:64,useBorder:!1,className:"word-table-block__meta",children:[a.jsx(Co,{variant:"custom",label:J("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:a.jsx(pa,{required:!0,value:X??"",onChange:q,placeholder:Z?Z+J("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):J("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:J("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:_e?J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:$e=>{($e.key==="Tab"&&!$e.shiftKey||$e.key===" ")&&!(X??"").trim()&&(Z??"").trim()&&($e.preventDefault(),q?.(Z??""))}})}),a.jsx(Co,{variant:"custom",label:J("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:a.jsx(pa,{value:L??"",onChange:H,placeholder:oe?oe+J("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):J("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:J("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:$e=>{($e.key==="Tab"&&!$e.shiftKey||$e.key===" ")&&!(L??"").trim()&&(oe??"").trim()&&($e.preventDefault(),H?.(oe??""))}})})]})]}),!T&&a.jsxs("div",{className:"word-table-block__actions",children:[a.jsxs("div",{className:"word-table-block__actions-left",children:[!W&&f&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:J("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:f}),!W&&y&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:Be,onClick:y}),!W&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:J("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:$t})]}),a.jsxs("div",{className:"word-table-block__actions-right",children:[R&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:J("common.cancel","\uCDE8\uC18C"),onClick:R}),!W&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:J("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:It}),E&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:E,onClick:()=>re?ot():wt(!0),disabled:Rt,onDisabledClick:()=>{Te(J("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",label:B??J("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>wt(!1),disabled:po,onDisabledClick:ho})]})]}),a.jsx(yr,{message:Et,type:he,onClose:ze})]})}var KT=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-darkGray)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}.ihabdevteam-core-scope .word-table-thumb__cell--more{justify-content:center;outline-offset:-2px}.ihabdevteam-core-scope .word-table-thumb__cell--more:focus-visible{outline:2px solid var(--color-main)}.ihabdevteam-core-scope .word-table-thumb__more{color:var(--color-gray)}";ue(KT);const XT=8;function Cm({items:e,className:t,columns:o}){const{t:r}=Ae.useTranslation(),n=s.useRef(null),[i,l]=s.useState(null),c=s.useCallback(()=>l(n.current?.getBoundingClientRect()??null),[]),u=s.useCallback(()=>l(null),[]),d=El(!!i,w=>{w?c():u()},n),h=e.length,p=o&&o>0?Math.floor(o):h<=3?1:2,m=XT,b=h>m,v=e.slice(0,b?m-1:m),x=h-v.length,_=e.slice(v.length).map(w=>w.words?.length?w.words.map(S=>S.label).join(" / "):w.id),f=Math.min(5,Math.ceil(_.length/25)),C=Math.ceil(Math.min(h,m)/p)||1,g=p*C;return a.jsx("div",{className:Se("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${p}, 1fr)`},children:Array.from({length:g},(w,S)=>{if(b&&S===m-1)return a.jsxs("div",{ref:n,className:"word-table-thumb__cell word-table-thumb__cell--more",tabIndex:0,"aria-label":r("wordTable.thumbMoreAria",{count:x,words:_.join(", "),defaultValue:"\uADF8 \uBC16 {{count}}\uCE78: {{words}}"}),onPointerEnter:k=>{Ia(k)||c()},onPointerLeave:k=>{Ia(k)||u()},onFocus:()=>{dr()||c()},onBlur:u,onClick:k=>{k.stopPropagation(),d.touchPress()},children:[a.jsx("span",{className:"word-table-thumb__more body-3",children:r("wordTable.thumbMore",{count:x,defaultValue:"+{{count}}"})}),i&&_.length>0&&a.jsx(wa,{anchorRect:i,items:_,showIndex:!1,closeOnOutsideClick:!1,columns:f})]},S);const y=v[S];return y?a.jsx("div",{className:"word-table-thumb__cell",children:(y.words?.length?y.words:[{label:y.id}]).map((k,B)=>a.jsxs(s.Fragment,{children:[B>0&&a.jsx("span",{className:"word-table-thumb__divider"}),a.jsx("span",{className:"word-table-thumb__word body-3",children:k.label})]},B))},S):a.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},S)})})}var ZT=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:280px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-lightGray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table-button__meta-right{align-items:center;display:flex;flex-shrink:0;gap:8px;min-width:0}.ihabdevteam-core-scope .word-table-button__code{color:var(--color-gray);flex-shrink:0;white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-left .word-table-button__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ue(ZT);function A_({items:e,name:t,description:o,createdAt:r,code:n,published:i,publishedLabel:l,shared:c,sharedLabel:u,isNew:d,publisherName:h,publishedAt:p,likeCount:m,downloadCount:b,onPublisherClick:v,selected:x,onClick:_,onMore:f,titleNode:C,className:g}){const{t:w}=Ae.useTranslation(),S=C!=null,y=h!=null||p!=null||m!=null||b!=null,k=B=>{B.target===B.currentTarget&&!S&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_?.())};return a.jsxs("div",{className:Se("word-table-button",x?"word-table-button--selected":"",y?"":"word-table-button--no-footer",g),role:"button",tabIndex:0,"aria-label":n?`${t} (${n})`:t,onClick:S?void 0:_,onKeyDown:k,children:[d&&a.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),a.jsx(Cm,{items:e,className:"word-table-button__thumb"}),a.jsxs("div",{className:"word-table-button__info",children:[a.jsxs("div",{className:"word-table-button__info-text",children:[C??a.jsx("div",{className:"word-table-button__title h4",children:t}),o&&a.jsx("div",{className:"word-table-button__desc body-3",children:o})]}),f&&!S&&a.jsx(ve,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),f(B)}})]}),(n||r||i||c)&&a.jsxs("div",{className:"word-table-button__meta-row",children:[a.jsx("span",{className:"word-table-button__meta-left",children:a.jsx("span",{className:"word-table-button__meta caption-1",children:r?nl(r,w):""})}),a.jsxs("span",{className:"word-table-button__meta-right",children:[(i||c)&&a.jsxs("span",{className:"word-table-button__badges",children:[i&&a.jsx(co,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??w("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),c&&a.jsx(co,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:u??w("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),n&&a.jsx("span",{className:"word-table-button__code caption-1",children:n})]})]}),y&&a.jsxs("div",{className:"word-table-button__footer",children:[a.jsxs("span",{className:"word-table-button__store-by",children:[h&&(v?a.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":w("wordTable.publisherFilter",{name:h,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:B=>{B.stopPropagation(),v()},children:h}):a.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:h})),p&&a.jsx("span",{className:"training-card__date body-4",children:nl(p,w)})]}),a.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&a.jsx(co,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m),"aria-label":w("common.likeCount",{count:m,defaultValue:`\uC88B\uC544\uC694 ${m}`})}),b!=null&&a.jsx(co,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b),"aria-label":w("common.downloadCount",{count:b,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${b}`})})]})]})]})}/**
1076
+ \uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ue(hT);function Ds(...e){for(const t of e)if(typeof t=="string"){const o=t.trim();if(o.length)return o}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const o=t,r=[o.text,o.label,o.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function mT(e){return Ds(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function bT(e){return e_(Ds(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function t_(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Ds(e?.status,e?.result,e?.judge,e?.note);if(t){const o=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>o.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>o.includes(r)))return!1}}function hm(e){const{score:t,contextsLength:o,results:r=[],subtitle:n,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=Ae.useTranslation(),h=s.useId(),p=s.useCallback(()=>!u,[u]);s.useEffect(()=>{const A=o??0;if(t!=null&&A>0&&t/A>.5){const j=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(j)}},[t,o]);const m=s.useCallback(A=>{const j=t_(A),D=Ds(A?.wording,A?.label);return j===!0?{variant:"main",label:D??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:j===!1?{variant:"danger",label:D??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:D??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),b=o??0,v=t??0,x=s.useMemo(()=>Array.isArray(r)?r:[],[r]),_=s.useRef(null),[f,C]=s.useState(null),g=s.useCallback(()=>{_.current?.(),_.current=null,C(null)},[]);s.useEffect(()=>g,[g]);const w=s.useRef(0),S=(A,j)=>{if(!Da)return;const D=Math.round(performance.now()-w.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${D}ms ${A}`,j??"")},y=s.useRef(0),k=s.useCallback((A,j,D)=>{g();const N=++y.current,z=()=>y.current===N;w.current=Da?performance.now():0,S(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${A}`,{text:j,rawUrl:D}),C(A),_.current=()=>{S("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),y.current++,yn()};const O=G=>{S("\uD2BC\uB2E4",G);const X=bi(G,q=>{S(`\uB05D\uB0AC\uB2E4 \u2014 ${q?"\uB05D\uAE4C\uC9C0 \uB4E4\uC5C8\uB2E4":"\uBABB \uD2C0\uC5C8\uAC70\uB098 \uBA48\uCDC4\uB2E4"}`,{mine:z()}),q&&z()&&(_.current=null,C(null))});return _.current=()=>{S("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uD2B8\uB294 \uC911)"),y.current++,X.stop(),yn()},X.done},U=cT(j,D);S("\uCC28\uB840",U.map(G=>G.kind));const T=U[0]?.kind==="raw",W=T?O(D):Promise.resolve(!1);(async()=>{if(await W||!z())return;const G=uT(),X=T?U.slice(1):U;for(let q=0;q<X.length;q++){if(!z())return;S(`${X[q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const L=await X[q].resolve(dT(G,X.length-q));if(S(`${X[q].kind} \uAC00 \uB2F5\uD588\uB2E4`,L),!z()||L&&(await O(L)||!z()))return}z()&&(S("\uC8FC\uC18C\uB97C \uD558\uB098\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4"),pT(j),_.current=()=>{y.current++,yn()},S("\uB0AD\uB3C5\uD55C\uB2E4"),oc(j,{onEnd:()=>{z()&&(_.current=null,C(null))}}))})()},[g]),B=s.useMemo(()=>x.map(A=>{const j=A??{},D=mT(j)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:N,label:z}=m(j),O=Array.isArray(j.corrects)?j.corrects:[],U=O.length?O.join(", "):j.answer!=null&&j.answer!==""?String(j.answer):null,T=typeof j.selectedText=="string"?j.selectedText:null,W=t_(j)===!0,G=bT(j),X=!!G||sT(D);return{problem:D,variant:N,label:z,answer:U,selectedText:T,isCorrect:W,sound:G,canHear:X}}),[x,m,d]),E=s.useMemo(()=>B.some(A=>A.answer!==null||A.selectedText!==null),[B]);return a.jsx(da,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:A,closeWithAnimation:j})=>a.jsxs(a.Fragment,{children:[u&&a.jsx("p",{id:h,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),a.jsxs("div",{className:"trp-actions",children:[a.jsx(ve,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>A(i)}),a.jsx(ve,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:j,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?h:void 0})]})]}),children:()=>a.jsxs("div",{className:"trp-result is-on",children:[a.jsxs("header",{className:"trp-result__head",children:[a.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),a.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&a.jsx("p",{className:"trp-result__subtitle body-3",children:n}),a.jsx("div",{className:"trp-score",children:a.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:b}),children:[a.jsx("span",{className:"trp-score__big",children:v}),a.jsx("span",{className:"trp-score__sep",children:"/"}),a.jsx("span",{className:"trp-score__total",children:b})]})})]}),B.length>0&&a.jsx("section",{className:"trp-result__body",children:a.jsxs("div",{className:`result-table${E?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[a.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[a.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),E&&a.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),a.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),B.map((A,j)=>a.jsxs("div",{className:"result-table__row",role:"row",children:[a.jsxs("div",{className:"trp-row__problem",children:[a.jsx("span",{className:"trp-row__no caption-1",children:String(j+1).padStart(2,"0")}),a.jsx("div",{className:"trp-row__q body-2",children:A.problem}),A.canHear&&a.jsx(ve,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:f===j?"square":"volume-2",className:"trp-row__replay",ariaLabel:f===j?d("training.result.replaySoundStop",{no:j+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:j+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>f===j?g():k(j,A.problem,A.sound)})]}),E&&a.jsxs("div",{className:"trp-row__answers",children:[A.answer!==null&&a.jsxs("div",{className:"trp-row__answer-line",children:[a.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),a.jsx("span",{className:"trp-row__answer-value body-2",children:A.answer})]}),a.jsxs("div",{className:"trp-row__answer-line",children:[a.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${A.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),a.jsx("span",{className:`trp-row__answer-value body-2 ${A.isCorrect?"is-correct":"is-wrong"}`,children:A.selectedText??"\u2014"})]})]}),a.jsx("div",{className:"trp-row__judge",children:a.jsx(co,{variant:A.variant,label:A.label,fill:"soft",minWidth:80})})]},j))]})})]})})}const mm=new Set;function gT(e){s.useEffect(()=>{if(!e||mm.has(e))return;mm.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let o=null,r=null,n=0,i=0;const l=()=>{const h=Date.now();o==null&&(o=h),r==null&&(r=h)},c=()=>{r!=null&&(n+=Date.now()-r,r=null)};t()&&l();const u=()=>{if(c(),o==null)return;const h=n-i;if(h<1e3||i===0&&n<5e3)return;const p=Date.now(),m=p-h;i=n,Au({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(p).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u(),mm.delete(e)}},[e])}function js(e,t){return e&&e.id||`page-${t??0}`}function Ns(e,t){return e&&e.key||`step-${t??0}`}function Ts(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function fT(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const vT=300,xT=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Sa=Object.freeze({}),o_=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bm(e){const t=e,o=t?.results||t?.answers||[],r=Array.isArray(o)&&o.length>0?o.length:null,n=Array.isArray(o)?o.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:o,correct:r!=null?n:null,total:r}}const CT=e=>a.jsx(hm,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function _T(e){const{scenario:t,title:o,subTitle:r,depth:n,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:h,stepCount:p,onBack:m,onComplete:b,onRoundFinished:v,onNext:x,onSettings:_,useNoiseSetting:f=!0,children:C,ariaLabel:g,label:w,buildResults:S,onResult:y,typeKey:k,entryPoint:B,dailyTotal:E,itemRef:A,renderResultPopup:j,noiseOverride:D,hideNoiseRows:N=!1,inline:z=!1,height:O}=e;gT(k&&!o_.has(k)?k:"");const U=s.useRef(0);s.useEffect(()=>{U.current=Date.now()},[]);const{t:T}=Ae.useTranslation(),W=y,G=!!t,X=t?.id||null,q=t?.meta||{},L=Array.isArray(t?.pages)?t.pages:[],H=Array.isArray(C)||s.isValidElement(C)&&typeof C!="function"?s.Children.toArray(C).filter(s.isValidElement):[],Z=H.length>0,oe=fe=>fe===wi||fe?.__isTrainingPage===!0,P=Z&&H.some(fe=>oe(fe.type)),$=P?H.filter(fe=>oe(fe.type)).map((fe,Le)=>{const K=fe.props||{};return{id:`children-page-${Le}`,steps:s.Children.toArray(K.children).filter(s.isValidElement),pageTop:K.pageTop||K.top||null,pageBottom:K.pageBottom||K.bottom||null}}):[{id:"children-page-0",steps:H}],R=Z&&!G&&typeof C!="function",Y=R?Math.max(1,$.length):0;s.useEffect(()=>{if(!z&&!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),s.useEffect(()=>{if(z||typeof document>"u"||!document.body)return;const fe=document.body;return fe.dataset.ihabTrainingPopupCount=String(Number(fe.dataset.ihabTrainingPopupCount||"0")+1),fe.classList.add("ihab-training-popup-open"),()=>{const Le=Number(fe.dataset.ihabTrainingPopupCount||"1")-1;Le>0?fe.dataset.ihabTrainingPopupCount=String(Le):(delete fe.dataset.ihabTrainingPopupCount,fe.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!z&&!(typeof document>"u"||!document.body))return u1()},[]);const[Q,ae]=s.useState({...Ua,enabled:!1}),te=s.useRef(Q);s.useEffect(()=>{te.current=Q},[Q]);const J=s.useRef(D),Be=s.useRef(!1),de=s.useRef(null),re=s.useRef(!1);s.useEffect(()=>{let fe=!1;const Le=K=>{if(fe)return;Be.current=!0;const ge=K?Va({...Ua,enabled:!1},K):{...Ua},Ce=de.current;de.current=null;const Me=Ce?Va(ge,Ce):ge;te.current=Me,ae(Me),Ce&&!J.current&&!re.current&&In(Me),Kr(Me);const Pe=J.current;if(Pe){const Ve=typeof Pe=="function"?Pe(Me):Pe,mt=Va(Me,Ve);te.current=mt,ae(mt),Kr(mt)}};return cl().then(({settings:K,failed:ge})=>{if(ge&&(re.current=!0),fe){const Ce=de.current;if(de.current=null,Ce&&!J.current&&!ge){const Me=K?Va({...Ua,enabled:!1},K):{...Ua};In(Va(Me,Ce))}return}Le(K)}),()=>{fe=!0}},[]);const[I,ne]=s.useState(null),[V,se]=s.useState(null),F=s.useCallback((fe,Le)=>{fe==="main"?ne(Le):se(Le)},[]),le=s.useRef(null),pe=s.useRef(null),be=s.useCallback(()=>{pe.current!==null&&(clearTimeout(pe.current),pe.current=null);const fe=le.current;le.current=null,fe&&!re.current&&In(fe)},[]);s.useEffect(()=>{if(typeof window>"u")return;const fe=()=>{document.visibilityState==="hidden"&&be()};return window.addEventListener("pagehide",be),document.addEventListener("visibilitychange",fe),()=>{window.removeEventListener("pagehide",be),document.removeEventListener("visibilitychange",fe),be()}},[be]);const _e=s.useCallback(fe=>{const Le=Va(te.current,fe);if(te.current=Le,ae(Le),!Be.current){de.current={...de.current??{},...fe},Kr(Le);return}!J.current&&!re.current&&(le.current=Le,pe.current!==null&&clearTimeout(pe.current),pe.current=setTimeout(be,vT)),Kr(Le)},[be]),Re=Q.mainSpeed,ke=Q.mainVolume,Ee=s.useCallback(fe=>_e({mainSpeed:fe}),[_e]),De=s.useCallback(fe=>_e({mainVolume:fe}),[_e]),Ie=s.useMemo(()=>({settings:Q,setSettings:_e,registerAnalyser:F,mainAnalyser:I,noiseAnalyser:V,playbackRate:Re,setPlaybackRate:Ee,mainVolume:ke,setMainVolume:De}),[Q,_e,F,I,V,Re,Ee,ke,De]),je=s.useRef(null),[at,Ct]=s.useState(0),Fe=s.useRef([]),[Ue,rt]=s.useState("center"),[Ge,Je]=s.useState(!1),st=s.useRef(!1),_t=s.useRef(null),bt=s.useCallback(fe=>{st.current||(st.current=!0,Je(!0),_t.current=setTimeout(()=>{try{fe()}catch{st.current=!1,Je(!1)}},xT()?0:w1))},[]);s.useEffect(()=>()=>{_t.current&&clearTimeout(_t.current)},[]);const At=s.useRef(m);s.useEffect(()=>{At.current=m});const dt=s.useRef(typeof document>"u"?null:document.activeElement);s.useEffect(()=>{if(z)return;const fe=je.current,Le=dt.current;if(hd(fe,Le),fe){const K=Array.from(fe.querySelectorAll(Zo)).filter(ge=>!ge.closest('[aria-hidden="true"]'))[0];if(K)try{K.focus()}catch{}}return()=>{const K=document.activeElement;if(!K||K===document.body||fe&&fe.contains(K))try{md(Le)?.focus?.()}catch{}}},[]),s.useEffect(()=>{if(!z)return cr(()=>bt(()=>{const fe=At.current;typeof fe=="function"&&fe()}))},[bt,z]),wl(je,!z);const[Qt,St]=s.useState(!1),Wt=s.useRef(!1),[tt,Ne]=s.useState(null),it=s.useRef(0),ut=s.useRef(0),yt=()=>{it.current+=1,ut.current+=1,Ne(null)},[Tt,Ht]=s.useState(""),[vt,gt]=s.useState(()=>Ts()),Nt=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!G&&!R||(gt(Ts()),yt())},[G,X,R]),s.useEffect(()=>{R&&gt(fe=>{const Le=Math.max(0,Math.min(fe.pageIndex,Math.max(0,Y-1)));return Le!==fe.pageIndex?{...fe,pageIndex:Le,stepIndex:0}:fe})},[R,Y]);const Lt=R?Math.max(0,Math.min(vt.pageIndex,Y-1)):0,et=R?$[Lt]:null,Et=R&&et&&Array.isArray(et.steps)?et.steps:[],he=G?vt.pageIndex:R?Lt:typeof u=="number"?u:0,Te=G?L[Math.max(0,Math.min(vt.pageIndex,Math.max(0,L.length-1)))]:null,ze=G&&Te&&Array.isArray(Te.steps)?Te.steps:[],Ye=G?ze.length:R?Et.length:typeof p=="number"?p:0,ct=G||R?Math.max(0,Math.min(vt.stepIndex,Math.max(0,Ye))):typeof h=="number"?h:0,Vt=G?L.length:R?Y:typeof d=="number"?d:0;s.useEffect(()=>{if(!G&&!R)return;const fe=G?js(Te,he):et?.id||`children-page-${he??0}`,Le=new Date().toISOString();for(let K=0;K<=ct;K+=1){const ge=G?Ns(ze[K],K):`step-${K}`,Ce=Ke(fe,ge);Ot.current.has(Ce)||Ot.current.set(Ce,Le)}},[G,R,he,ct,et?.id]),s.useLayoutEffect(()=>{const fe=Nt.current;if(typeof he=="number"&&fe!==null&&he!==fe&&he>fe)try{Ht(T("training.problemNotice",{n:he+1}))}catch{}Nt.current=typeof he=="number"?he:Nt.current},[he,u,T]),s.useLayoutEffect(()=>{const fe=je.current;if(!fe)return;const Le=()=>fe.querySelector(".page-popup__scroll");let K=null,ge=null,Ce=null;const Me=we=>{const M=Le();if(!M)return;const ie=M.scrollHeight<=M.clientHeight;if(rt(ie?"center":"top"),we&&!Wt.current){Wt.current=!0;try{St(!0)}catch{}try{mt.disconnect()}catch{}}},Pe=()=>{K!==null&&cancelAnimationFrame(K),K=requestAnimationFrame(()=>{ge!==null&&clearTimeout(ge),ge=setTimeout(()=>Me(!0),60)})},Ve=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>Me(!1))};Pe(),window.addEventListener("resize",Ve);const mt=new MutationObserver(Pe);mt.observe(fe,{childList:!0,subtree:!0,attributes:!0});const wt=setTimeout(()=>{Wt.current||Me(!0)},400);return()=>{window.removeEventListener("resize",Ve),K!==null&&cancelAnimationFrame(K),ge!==null&&clearTimeout(ge),Ce!==null&&cancelAnimationFrame(Ce),clearTimeout(wt);try{mt.disconnect()}catch{}}},[je]);const pt=s.useCallback(fe=>{je.current&&(je.current._childOnNext=fe)},[]),ao=s.useCallback(fe=>{je.current&&(je.current._childOnResult=fe)},[]),Ot=s.useRef(new Map),Ke=(fe,Le)=>`${fe}\0${Le}`,ee=s.useCallback((fe,Le,K)=>{gt(ge=>{const Ce=ge.answersByPage[fe]||{},Me=Ce[Le],Pe=Es(K),Ve=Es(Me);if(Me&&Ve>Pe)return ge;const mt=nm(K,Ot.current.get(Ke(fe,Le)),Pe);return{...ge,answersByPage:{...ge.answersByPage,[fe]:{...Ce,[Le]:mt}}}})},[gt]),xe=s.useCallback((fe,Le,K)=>{const ge=js(Te,he),Ce=Ns(fe,Le);ee(ge,Ce,K)},[Te,he,ee]),He=s.useCallback((fe,Le,K)=>{const ge=js(Te,he),Ce=Ns(fe,Le);ee(ge,Ce,K),!K?.allowChange&&fe?.autoAdvance!==!1&&gt(Me=>({...Me,stepIndex:Math.max(Me.stepIndex,Le+1)}))},[Te,he,ee,gt]),Xe=s.useCallback((fe,Le)=>{const K=et?.id||`children-page-${he??0}`,ge=typeof Le=="number"?Le:ct??0,Ce=`step-${ge}`;ee(K,Ce,fe),fe?.allowChange||gt(Me=>({...Me,stepIndex:Math.max(Me.stepIndex,ge+1)}))},[et,he,ct,ee,gt]),lt=s.useCallback((fe,Le)=>{const K=et?.id||`children-page-${he??0}`,ge=`step-${typeof Le=="number"?Le:ct??0}`;ee(K,ge,fe)},[et,he,ct,ee]),ht=R?{currentPageIndex:he??0,currentStepIndex:ct??0,totalStepsInPage:Et.length,handleStepDone:Xe,handleStepChange:lt}:null,Mt=async()=>{const fe=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:L,flowState:vt,answersByPage:vt.answersByPage})):null;return typeof W=="function"&&await Promise.resolve(W(fe))||fe},Ut=async()=>{const fe=et?.id||`children-page-${vt.pageIndex}`,Le=vt.answersByPage[fe]||{},K=P?(()=>{const Me={};let Pe=0;return $.forEach(Ve=>{const mt=vt.answersByPage[Ve.id]||{},wt=Array.isArray(Ve.steps)?Ve.steps.length:0;for(let we=0;we<wt;we+=1){const M=mt[`step-${we}`];typeof M<"u"&&(Me[`step-${Pe+we}`]=M)}Pe+=wt}),Me})():Le;if(typeof S=="function"){const Me=await Promise.resolve(S(K,{pageAnswers:Le,answersByPage:vt.answersByPage,pages:$,currentPageId:fe}));return typeof W=="function"&&await Promise.resolve(W(Me))||Me}const ge=Object.entries(Le).map(([Me,Pe],Ve)=>({index:Ve,key:Me,payload:Pe})),Ce={results:ge,answers:ge,score:0};return typeof W=="function"&&await Promise.resolve(W(Ce))||Ce},Po=()=>{const fe=++it.current,Le=()=>fe!==it.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(G){const Ce=Mt();Ne(Sa);const Me=Ce;Promise.resolve(Me).then(Pe=>{Le()||Ne(Pe||{isEmpty:!0})}).catch(Pe=>{!Le()&&Ne({isEmpty:!0})});return}if(R){const Ce=Ut();Ne(Sa);const Me=Ce;Promise.resolve(Me).then(Pe=>{Le()||Ne(Pe||{isEmpty:!0})}).catch(Pe=>{!Le()&&Ne({isEmpty:!0})});return}const K=je.current&&je.current._childOnResult,ge=Ce=>{try{return Ce?Ce():void 0}catch{return}};if(typeof K=="function"){const Ce=ge(K);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?Ne(Ce):Ne(Ce&&typeof Ce.then=="function"?Sa:{});const Me=()=>{Le()||Ne(Pe=>Pe===Sa?{}:Pe)};Promise.resolve(Ce).then(Pe=>{Pe&&!Le()?Ne(Pe):Me()}).catch(Pe=>{Me()});return}if(typeof W=="function"){const Ce=ge(W);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?Ne(Ce):Ne(Ce&&typeof Ce.then=="function"?Sa:{});const Me=()=>{Le()||Ne(Pe=>Pe===Sa?{}:Pe)};Promise.resolve(Ce).then(Pe=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Oo&&Oo.tagName.toUpperCase()==="SCRIPT"&&Oo.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Pe&&!Le()?Ne(Pe):Me()}).catch(Pe=>{console.error("viewResults external handler failed",Pe),Me()});return}},_o=()=>{if(G){if(typeof he=="number"&&typeof Vt=="number"&&he<Vt-1){gt(Le=>({...Le,pageIndex:Le.pageIndex+1,stepIndex:0}));return}return Po()}if(R){const Le=Et.length;if(typeof ct=="number"&&ct<Le-1){gt(K=>({...K,stepIndex:K.stepIndex+1}));return}if(typeof he=="number"&&typeof Vt=="number"&&he<Vt-1){gt(K=>({...K,pageIndex:K.pageIndex+1,stepIndex:0}));return}return Po()}if(typeof x=="function"){try{x()}catch{}return}const fe=je.current&&je.current._childOnNext;if(typeof fe=="function"){try{fe()}catch{}return}},zo=G?q.title||q.label||g||T("common.popup","\uD31D\uC5C5"):o||w||(Array.isArray(n)?n[n.length-1]:void 0)||g||T("common.popup","\uD31D\uC5C5"),wo=g||zo,no=G?q.title??q.label??zo:o??w??zo,yo=(fe,Le)=>{const K=js(Te,he),ge=Ns(fe,Le),Ce=vt.answersByPage[K]?.[ge],Me=fT(fe,{page:Te,pageIndex:he,step:fe,stepIndex:Le,storedPayload:Ce,answersByPage:vt.answersByPage,flowState:vt}),Pe={key:ge,index:Le,stepIndex:ct,isLast:Le===ze.length-1};switch(fe?.type){case"listen":return a.jsx(Bs,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve)});case"confirm":return a.jsx(ws,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});case"confirmWithText":return a.jsx(ks,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});case"orderList":return a.jsx(As,{...Pe,...Me,onDone:Ve=>He(fe,Le,Ve),onChange:Ve=>xe(fe,Le,Ve)});default:return null}},ko=s.useRef(void 0);s.useEffect(()=>{const fe=ko.current;if(ko.current=he,fe===void 0||fe===he||!us())return;const Le=je.current;if(!Le)return;const K=document.activeElement;if(!(!K||K===document.body||!Le.contains(K)||K.disabled===!0))return;const ge=Le.querySelector(`.training-steps ${Zo.split(", ").join(", .training-steps ")}`)??Array.from(Le.querySelectorAll(Zo)).find(Ce=>!Ce.closest('[aria-hidden="true"]'));try{ge?.focus()}catch{}},[he]);const uo=G?L.length>0?a.jsx("div",{className:"training-steps",children:ze.map((fe,Le)=>yo(fe,Le))},`replay-${at}`):a.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:a.jsx("div",{className:"pp-empty",children:t?.emptyMessage||T("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,It=R?a.jsxs(JC.Provider,{value:ht,children:[et?.pageTop?a.jsx("div",{className:"training-page-top",children:et.pageTop}):null,a.jsx("div",{className:"training-steps",children:Et.map((fe,Le)=>{const K=fe;return s.cloneElement(K,{...K.props,_stepIndex:Le,_totalSteps:Et.length,_stepKey:`step-${Le}`,_pageIndex:he})})},`replay-${at}`),et?.pageBottom?a.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,$t=s.useRef(-1),qt=s.useCallback(()=>{if(!k)return;const fe=tt,{results:Le,correct:K,total:ge}=bm(tt),Ce={correct:K,total:ge,attempt:Fe.current.length+1,previousAttempts:[...Fe.current]};if($t.current===ut.current)return Ce;$t.current=ut.current,Su({items:Nu(Le),category:o_.has(k)?"sentence":"word",trainingType:k,entryPoint:B??"sentence",itemRef:A??null,correct:K,total:ge,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-U.current)/1e3)),dailyTotal:E??null});try{v?.(Ce)}catch{}return Ce},[k,B,E,A,tt,v]);s.useEffect(()=>{!tt||tt===Sa||tt?.isEmpty||(bm(tt).total??0)>0&&qt()},[tt,qt]);const Ft=s.useCallback(()=>{const fe=qt();yt(),bt(()=>{typeof b=="function"&&b(fe),typeof m=="function"&&m()})},[b,m,qt,Ne,bt]),ga=s.useCallback(()=>Ht(""),[Ht]),Go=s.useCallback(()=>{bt(()=>{typeof m=="function"&&m()})},[m,bt]),Ya=a.jsxs("div",{className:`page-popup${Ge?" page-popup--closing":""}${z?" page-popup--inline":""}${z&&O!=null?" page-popup--has-height":""}`,role:z?"region":"dialog","aria-modal":z?void 0:"true","aria-label":wo,style:z&&O!=null?{"--page-popup-inline-height":typeof O=="number"?`${O}px`:O}:void 0,children:[a.jsxs("div",{ref:je,className:`page-popup__panel ${Qt?"":"page-popup__panel--measuring"} ${Ue==="center"?"page-popup__panel--center":Ue==="top"?"page-popup__panel--top":""}`,children:[a.jsx(am,{title:no,subtitle:G?q.subtitle||q.label:Array.isArray(n)?n.join(" / "):void 0,desc:G?void 0:r,depth:G?q.depth:n,icon:G?q.icon:i,wrapperStyle:G?q.wrapperStyle:l,iconTooltip:G?q.iconTooltip:c,progressMax:Vt,progressIndex:he,pageIndex:he,pageCount:Vt,onBack:z?void 0:Go,onClose:z?void 0:Go}),a.jsx("div",{className:"page-popup__scroll",children:a.jsx("div",{className:`page-popup__content ${Ue==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:R?It:G?uo:typeof C=="function"?C({registerOnNext:pt,registerOnResult:ao,panelRef:je,setResultOverlay:Ne}):C})}),a.jsx(om,{onSettings:_,onNext:_o,onResult:Po,useNoiseSettingBtn:!!(G?q.useNoiseSetting??!0:f),stepIndex:ct,stepCount:Ye,pageIndex:he,pageCount:Vt,resultOpen:!!(tt&&!tt.isEmpty),hideNoiseRows:N})]}),tt&&!tt.isEmpty&&(j??CT)({score:tt.score,results:tt.results||tt.answers||[],contextsLength:tt.results?tt.results.length:tt.answers?tt.answers.length:0,onReplay:()=>{if(U.current=Date.now(),tt!==Sa){const{correct:fe,total:Le}=bm(tt);Fe.current.push({correct:fe,total:Le})}if(yt(),Ct(fe=>fe+1),G){if(gt(Ts()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(R){gt(Ts());return}try{const fe=je.current&&je.current._childOnResult;typeof fe=="function"&&fe({replay:!0})}catch{}},onClose:Ft,pending:tt===Sa}),tt?.isEmpty&&a.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":T("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:a.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[a.jsx("div",{className:"page-popup__scroll",children:a.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:a.jsx("div",{className:"page-popup__empty",children:T("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),a.jsx("div",{className:"page-popup__bottom",children:a.jsx(ve,{htmlType:"button",variant:"main",size:48,onClick:Ft,label:T("training.result.done","\uC644\uB8CC")})})]})}),a.jsx(yr,{message:Tt,position:"top",onClose:ga})]}),ta=a.jsx(Cs.Provider,{value:Ie,children:Ya});return z?ta:typeof document<"u"&&document.body?Do.createPortal(ta,document.body):ta}const Ea=_T;Ea.Page=wi,Ea.ListenStep=lm,Ea.ConfirmStep=sm,Ea.ConfirmWithTextStep=cm,Ea.OrderListStep=um,Ea.CardStep=dm,Ea.CardOrderStep=rT;function yT(e=[]){const t=s.useRef(null),o=s.useCallback(n=>{const i=getComputedStyle(n),l=i.gridTemplateColumns.split(" ").filter(Boolean),c=parseFloat(l[0]??"0"),u=parseFloat(i.columnGap||"0")||0;if(!c||l.length<2){for(const d of n.children)d.style.gridColumn="";return}for(const d of n.children){const h=d;h.style.gridColumn="",h.removeAttribute("data-wide");const p=h.querySelector("button"),m=p?p.getBoundingClientRect().width:0;if(m<=c+.5)continue;const b=Math.min(l.length,Math.ceil((m+u)/(c+u)));b<=1||(h.style.gridColumn=`span ${b}`,h.setAttribute("data-wide",""))}},[]),r=s.useCallback(()=>{const n=t.current;if(n)for(const i of n.querySelectorAll(".word-search-result-block__items"))o(i)},[o]);return s.useLayoutEffect(()=>{r();const n=t.current;if(!n||typeof ResizeObserver>"u")return;const i=new ResizeObserver(()=>r());return i.observe(n),()=>i.disconnect()},[r,...e]),t}var wT=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);padding:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__head{align-items:center;-moz-column-gap:var(--spacing-xs);column-gap:var(--spacing-xs);display:flex;flex-wrap:wrap;row-gap:0}.ihabdevteam-core-scope .word-search-result-block__head-main{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .word-search-result-block__head-icon{color:var(--color-gray);flex-shrink:0}.ihabdevteam-core-scope .word-search-result-block__title{min-width:0;text-align:left}.ihabdevteam-core-scope .word-search-result-block__head-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .word-search-result-block__head-disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items>[data-wide]>button{width:100%}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group-label{color:var(--color-gray)}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__inner--head-only{gap:0;padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .word-search-result-block__inner--head-only .word-search-result-block__head{min-height:60px}";ue(wT);var kT='.ihabdevteam-core-scope .word-image-tooltip{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .word-image-tooltip__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .word-image-tooltip__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .word-image-tooltip__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-image-tooltip__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-image-tooltip__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .word-image-tooltip__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ue(kT);function BT({label:e,homonum:t}){const o=Ta()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:l,onError:c}=Dh(o);return i?a.jsxs("div",{className:me("word-image-tooltip__cell"),children:[n&&a.jsx("div",{className:me("word-image-tooltip__spinner")}),a.jsx("img",{ref:r,src:o,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:l,onError:c})]}):a.jsx("div",{className:me("word-image-tooltip__cell word-image-tooltip__cell--text h3"),children:a.jsx("span",{children:e})})}function gm({words:e,anchorRect:t}){const o=s.useRef(null),[r,n]=s.useState(null);return s.useLayoutEffect(()=>{if(!t||!o.current)return;const{offsetWidth:i,offsetHeight:l}=o.current,c=window.innerWidth,u=window.innerHeight,d=8,h=t.top,p=u-t.bottom,m=h>=l+d*2||h>p,b=(_,f)=>Math.min(Math.max(d,_),Math.max(d,f)),v=b(t.left+t.width/2-i/2,c-i-d),x=b(m?t.top-l-d:t.bottom+d,u-l-d);n({left:v,top:x})},[t]),!t||e.length===0?null:Do.createPortal(a.jsx("div",{ref:o,className:me("word-image-tooltip"),style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:a.jsx("div",{className:me("word-image-tooltip__cells"),children:e.map(i=>a.jsx(BT,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function a_({titleIcon:e,resultCount:t,resultUnit:o,searchQuery:r,items:n,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:h,onPrintEmpty:p,className:m,emptyHint:b,showEmptyText:v=!0,sectionType:x="page",disc:_}){const f=Fo()??Eo,{t:C,i18n:g}=Ae.useTranslation(),w=g.language?.startsWith("ko")??!1,{anchorRect:S,openAt:y,close:k}=rn(),[B,E]=s.useState(null),A=s.useCallback(()=>{k(),E(null)},[k]);vp(A,!!B);const j=(r??"").trim(),D=/^[^,[\]\s]+$/.test(j)?j:"",N=D.length>0,z=r===void 0&&t===void 0,O=N?"match":z?"original":"ganada",[U,T]=s.useState(()=>O),[W,G]=s.useState("50"),[X,q]=s.useState(1),[L,H]=s.useState(N);L!==N&&(H(N),T(O));const Z=U==="match"&&!N||U==="original"&&!z?O:U,oe=s.useMemo(()=>[...N?[{value:"match",label:C("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...z?[{value:"original",label:C("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:C("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:C("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:C("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:C("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:C("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:C("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[C,N,z]),P=s.useMemo(()=>["10","25","50","100"].map(ke=>({value:ke,label:C("wordSearch.pageSize",{count:Number(ke),defaultValue:`${ke}\uAC1C\uC529 \uBCF4\uAE30`})})),[C]),$=ke=>ke.words?.[0],R=s.useMemo(()=>{const ke=[...D].length,Ee=Ec(D),De=new Map;return Ie=>{let je=De.get(Ie);return je===void 0&&(je=Ee((Ie.words?.[0]?.label??"").slice(0,ke))?0:1,De.set(Ie,je)),je}},[D]),Y=s.useCallback((ke,Ee)=>{const De=at=>$(at)?.label??"",Ie=at=>$(at)?.syllables??[...De(at)].length,je=at=>(at.words??[]).reduce((Ct,Fe)=>{const Ue=parseInt(Fe.grade??"",10);return Number.isFinite(Ue)&&Ue<Ct?Ue:Ct},999);switch(Z){case"match":return R(ke)-R(Ee)||Lo(De(ke),De(Ee));case"ganada":return Lo(De(ke),De(Ee));case"ganada_desc":return Lo(De(Ee),De(ke));case"syllable":return Ie(ke)-Ie(Ee)||Lo(De(ke),De(Ee));case"syllable_desc":return Ie(Ee)-Ie(ke)||Lo(De(ke),De(Ee));case"grade":return je(ke)-je(Ee)||Lo(De(ke),De(Ee));case"grade_desc":return je(Ee)-je(ke)||Lo(De(ke),De(Ee));default:return 0}},[Z,R]),Q=s.useMemo(()=>n.slice().sort(Y),[n,Y]),ae=Number(W)||10,te=s.useMemo(()=>(i??[]).flatMap(ke=>ke.items.slice().sort(Y).map(Ee=>({item:Ee,label:ke.label}))),[i,Y]),J=i?te.length:Q.length,Be=Math.max(1,Math.ceil(J/ae)),de=Math.min(X,Be),re=s.useMemo(()=>Q.slice((de-1)*ae,de*ae),[Q,de,ae]),I=s.useId(),ne=s.useMemo(()=>{if(!i)return null;const ke=te.slice((de-1)*ae,de*ae),Ee=new Map;for(const{item:De,label:Ie}of ke)Ee.has(Ie)||Ee.set(Ie,[]),Ee.get(Ie).push(De);return[...Ee.entries()].map(([De,Ie])=>({label:De,items:Ie}))},[i,te,de,ae]);s.useEffect(()=>{q(1)},[U,W,J,r]);const V=J>0?a.jsxs("div",{className:"word-search-result-block__toolbar",children:[a.jsx($o,{size:f,options:oe,value:Z,onChange:T,ariaLabel:C("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),a.jsx($o,{size:f,options:P,value:W,onChange:G,ariaLabel:C("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),a.jsx(os,{page:de,totalPages:Be,onChange:q})]}):void 0,se=ke=>{c&&c(ke)},F=t!==void 0&&o?a.jsxs(a.Fragment,{children:[C("wordSearch.resultTitlePrefix","\uCD1D "),a.jsx("span",{style:{color:"var(--color-main)"},children:t}),C("wordSearch.resultTitleSuffix",{unit:w?Jc(o):o})]}):void 0,le=t!==void 0&&t>0&&u!==void 0&&o?C("wordSearch.resultDisc",{unit:w?eu(o):o,max:u,selected:l.length}):void 0,pe=_??le,be=i?i.length===0:n.length===0,_e=yT([i,re,U,ae,X]),Re=be&&!v&&!b;return a.jsxs(wr,{type:x,className:Se("word-search-result-block",m),children:[a.jsxs("div",{ref:_e,className:Se("word-search-result-block__inner",Re&&"word-search-result-block__inner--head-only"),children:[(F||V||pe)&&a.jsxs("div",{className:"word-search-result-block__head",children:[a.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&a.jsx(nt,{icon:e,className:"word-search-result-block__head-icon"}),F&&a.jsx("span",{className:"word-search-result-block__title h3",children:F})]}),V&&a.jsx("div",{className:"word-search-result-block__head-actions",children:V}),pe&&a.jsx("div",{className:"word-search-result-block__head-disc body-3",children:pe})]}),be&&(v||b)&&a.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[v&&a.jsx("p",{className:"word-search-result-block__empty body-3",children:C("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&a.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(ne??[]).map(ke=>a.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${I}-${ke.label}`,children:[a.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${I}-${ke.label}`,children:ke.label}),a.jsx("div",{className:"word-search-result-block__items",children:ke.items.map(Ee=>{const De=l.includes(Ee.id);return a.jsx("div",{onMouseEnter:Ie=>{y(Ie.currentTarget),E(Ee.words??[])},onMouseLeave:A,children:a.jsx(ve,{htmlType:"button",size:"word",align:"grid",label:(Ee.words??[]).map(Ie=>Ie.label),subLabel:(Ee.words??[]).some(Ie=>Ie.subLabel)?(Ee.words??[]).map(Ie=>Ie.subLabel):void 0,selected:De,onClick:()=>se(Ee.id),minWidth:200})},Ee.id)})})]},ke.label)):a.jsx("div",{className:"word-search-result-block__items",children:re.map(ke=>{const Ee=l.includes(ke.id);return a.jsx("div",{onMouseEnter:De=>{y(De.currentTarget),E(ke.words??[])},onMouseLeave:A,children:a.jsx(ve,{htmlType:"button",size:"word",align:"grid",label:(ke.words??[]).map(De=>De.label),subLabel:(ke.words??[]).some(De=>De.subLabel)?(ke.words??[]).map(De=>De.subLabel):void 0,selected:Ee,onClick:()=>se(ke.id),minWidth:200})},ke.id)})}),B&&S&&a.jsx(gm,{words:B,anchorRect:S})]}),(d||h)&&a.jsxs("div",{className:"word-search-result-block__actions",children:[d&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:C("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),h&&a.jsx("div",{onClick:l.length===0?p:void 0,children:a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",label:C("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:h})})]})]})}var AT='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-group{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-group>.phoneme-select-block__cell{flex:1 1 auto;min-width:0;width:auto}.ihabdevteam-core-scope .phoneme-select-block__cell{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ue(AT);function ST(e,t){return t.map(o=>{const r=typeof o=="string"?o:o.label,n=typeof o=="string"?void 0:o.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function r_({sections:e,selectedList:t,count:o,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:h,title:p,titleIcon:m,disc:b,showInfoButton:v=!0,onClearPhoneme:x,onSearch:_,onSearchEmpty:f,searchDisabled:C=!1,searchLabel:g,searchChecking:w=!1,pairMode:S=!1,sectionType:y="page",beforeSearchContent:k,beforeContent:B,afterContent:E,hideCountControl:A=!1,ordinal:j=!1}){const{t:D}=Ae.useTranslation(),N=s.useMemo(()=>D("wordPairs.infoNotes",{returnObjects:!0}),[D]),z=s.useMemo(()=>Array.from({length:n-i+1},(P,$)=>{const R=i+$;return{key:String(R),label:D("wordPairs.count",{n:R})}}),[D,n,i]),O=s.useMemo(()=>D("wordPairs.ordinals",{returnObjects:!0}),[D]),U=s.useCallback(P=>j?D("wordPairs.phonemeOrdinalLabel",{ordinal:O[P-1]??P}):o===1?D("wordPairs.phonemeSingleLabel","\uC74C\uC808"):D("wordPairs.phonemeN",{n:P}),[j,O,o,D]),T=s.useCallback(P=>j?D("wordPairs.phonemeContrastOrdinalLabel",{ordinal:O[P-1]??P}):o===1?D("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):D("wordPairs.phonemeContrast",{n:P}),[j,O,o,D]),W=s.useCallback((P,$)=>$?a.jsxs(a.Fragment,{children:[P,a.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:G,toggleAt:X,close:q}=rn(),L=s.useCallback(P=>r(Number(P)),[r]),H=go("(max-width: 767px)"),Z=s.useCallback(P=>ST(P,e).map(({label:$,value:R,displayLabel:Y})=>{const Q=!!R&&R!=="\uC5C6\uC74C";return a.jsxs("span",{className:Se("phoneme-select-block__cell-jamo-part",R?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[a.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${R==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:R==="\uC5C6\uC74C"?"x":R||d}),Q&&a.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??$})]},$)}),[e,d]),oe=a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-tooltip-ignore":!0,children:a.jsx(ve,{htmlType:"button",size:40,type:H?"dot":void 0,icon:"info",label:H?void 0:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:G?"is-selected":void 0,"aria-expanded":!!G,"aria-haspopup":"dialog",onClick:P=>X(P.currentTarget)})}),G&&a.jsx(wa,{title:D("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:N,anchorRect:G,onClose:q})]});return a.jsxs(wr,{type:y,title:p,icon:m,disc:b,action:v?oe:void 0,className:Se("phoneme-select-block",h),children:[B,!A&&a.jsx("div",{className:"phoneme-select-block__controls",children:a.jsx(Mo,{options:z,value:String(o),onChange:L,size:40,ariaLabel:D("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),a.jsx("div",{className:"phoneme-select-block__cells",children:S?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2]??{};return a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(R)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:U($+1)})]},$)})}),a.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:D("wordPairs.phonemeSelect.vs","\uB300")}),a.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2+1]??{};return a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(R)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T($+1)})]},$)})})]}):t.map((P,$)=>a.jsxs("div",{className:"phoneme-select-block__cell",children:[a.jsx("div",{className:"phoneme-select-block__cell-circle",children:a.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(P)})}),a.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:U($+1)})]},$))}),(l||c)&&a.jsx("div",{className:"phoneme-select-block__panels",children:a.jsx("div",{className:"phoneme-select-block__detail",children:S?a.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[a.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2]??{};return a.jsx(ma,{title:W(U($+1),$===0),sections:c?c(R,$*2):l,selected:R,onSelect:u?.($*2),align:"newline"},$)})}),a.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:o}).map((P,$)=>{const R=t[$*2+1]??{};return a.jsx(ma,{title:T($+1),sections:c?c(R,$*2+1):l,selected:R,onSelect:u?.($*2+1),align:"newline"},$)})})]}):t.map((P,$)=>a.jsx(ma,{title:W(U($+1),$===0),sections:c?c(P,$):l,selected:P,onSelect:u?.($),align:"newline"},$))})}),k&&a.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(x||_||w)&&(()=>{const P=t.every($=>{const R=k3($);return Object.entries(R).every(([Y,Q])=>!Q||Y==="coda"&&Q===Fb)});return a.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?f:void 0,children:[x&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:D("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:x}),_?a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:w?a.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:g??D("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||C||w,onDisabledClick:w?()=>{}:void 0,"aria-busy":w||void 0,onClick:_}):w?a.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[a.jsx("div",{className:"phoneme-select-block__spinner"}),a.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:g??D("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),E]})}function n_({title:e,sections:t,selected:o,onSelect:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,headerAction:d,className:h}){const{t:p}=Ae.useTranslation();return a.jsx(ma,{className:h,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:o,onSelect:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,headerAction:d,align:"inline"})}function i_({title:e,headerAction:t,sections:o,selected:r,onSelect:n,collapsible:i,defaultCollapsed:l,collapsed:c,onCollapsedChange:u,headerSummary:d,className:h}){const{t:p}=Ae.useTranslation();return o.length===0?null:a.jsx(ma,{className:h,title:e??p("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:o,selected:r,onSelect:n,collapsible:i,defaultCollapsed:l,collapsed:c,onCollapsedChange:u,headerSummary:d,align:"newline"})}function l_({title:e,mode:t,onModeChange:o,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:h}=Ae.useTranslation(),p={searchMode:h("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:h("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:h("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:h("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:h("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:h("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:h("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:h("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:h("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:h("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:h("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=_=>h("wordPairs.count",{n:_}),b=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:a.jsx(ln,{title:h("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[h("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),h("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),h("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:a.jsx(ln,{items:h("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[m(1),m(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:a.jsx(ln,{title:h("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[h("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),h("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],v={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:m(i),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},x=(_,f)=>{f===p.searchMode?o(_===p.explicit?"explicit":_===p.pick?"pick":"include"):f===p.phonemeOrder?n(_===p.orderMatch?"ordered":"unordered"):f===p.count?l(_===m(2)?2:1):f===p.inputMode&&u(_===p.pronInput?"phoneme":"word")};return a.jsx(ma,{className:d,title:e??h("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:v,onSelect:x,align:"inline"})}var ET=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ue(ET);function s_(e){const{title:t,items:o,columns:r,resizeStorageKey:n,gridTemplateColumns:i,mobileGridTemplateColumns:l,searchPlaceholder:c,searchFn:u,defaultSortKey:d,defaultSortAsc:h=!0,selectedId:p,selectedIds:m,onSelect:b,onClose:v,pageSizeOptions:x=[10,25,50,100],initialPageSize:_,emptyText:f,noMatchText:C,countLabel:g,topContent:w,className:S=""}=e,{t:y}=Ae.useTranslation(),k=c??y("common.search","\uAC80\uC0C9"),B=f??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=C??y("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[A,j]=s.useState(""),[D,N]=s.useState(d??r[0]?.key??""),[z,O]=s.useState(h),[U,T]=s.useState(String(_??x[0]??10)),[W,G]=s.useState(1);s.useEffect(()=>{G(1)},[A,U]);const X=u!==null,q=s.useCallback((ae,te)=>{if(!te)return!0;const J=te.toLowerCase();return r.some(Be=>{const de=ae[Be.key];return de==null?!1:String(de).toLowerCase().includes(J)})},[r]),L=u??q,H=s.useMemo(()=>{const ae=X?o.filter(te=>L(te,A)):o;return D?[...ae].sort((te,J)=>{const Be=te[D],de=J[D];return Be===de?0:Tl(Be,de,z)}):ae},[o,A,D,z,X,L]),Z=Math.max(1,Math.ceil(H.length/Number(U)));W>Z&&G(Z);const oe=Math.min(W,Z),P=H.slice((oe-1)*Number(U),oe*Number(U)),$=s.useCallback(ae=>{D===ae?O(te=>!te):(N(ae),O(!0)),G(1)},[D]),R=s.useMemo(()=>{if(typeof g=="function"){const ae=H.length,te=g(ae);if(typeof te=="string"){const J=te.lastIndexOf(String(ae));if(J>=0)return{prefix:te.slice(0,J),suffix:te.slice(J+String(ae).length)}}return{label:te}}if(typeof g=="string"&&g.includes("{n}")){const[ae,te]=g.split("{n}");return{prefix:ae,suffix:te}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[g,H.length,y]),Y=s.useMemo(()=>r.map(ae=>({label:ae.label,onClick:ae.sortable!==!1?()=>$(ae.key):void 0,className:ae.className,sortDir:ae.sortable!==!1&&D===ae.key?z?"asc":"desc":null})),[r,D,z,$]),Q=Dp(x);return a.jsxs(da,{className:`popup-list ${S}`,title:t,onClose:v,children:[w,"label"in R&&a.jsx("p",{className:"toolbar__count body-1",children:R.label}),a.jsx(as,{count:"label"in R?void 0:{value:H.length,prefix:R.prefix,suffix:R.suffix},search:X?{value:A,onChange:j,placeholder:k}:void 0,pageSize:{options:Q,value:U,onChange:T},pagination:{page:oe,total:Z,onChange:G}}),a.jsx(cs,{gridTemplateColumns:i,mobileGridTemplateColumns:l,resizable:!0,resizeStorageKey:n,fields:Y,items:P,onRowClick:b,renderRow:ae=>{const te=m!=null?ae.id!=null&&m.has(ae.id):p!=null&&ae.id===p;return r.map(J=>({content:J.render?J.render(ae):ae[J.key]??"",className:Se(J.className,te&&"popup-list__row--selected")}))},empty:X&&A!==""&&o.length>0?E:B})]})}function fm(e,t,o={}){const{t:r}=Ae.useTranslation(),[n,i]=s.useState(!1),l=s.useRef(!1),c=s.useCallback(()=>{l.current=!0},[]),u=s.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=n?a.jsx(di,{title:o.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:o.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:o.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:u,discardPopup:d,allowClose:c}}function c_(e,t,o={}){const r=JSON.stringify(e),[n,i]=s.useState(r),l=r!==n,c=fm(l,t,o),u=s.useRef(r);u.current=r;const d=s.useCallback(()=>i(u.current),[]);return{...c,isDirty:l,rebase:d}}var DT=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ue(DT);function u_({onApply:e,onCancel:t}){const{t:o}=Ae.useTranslation(),[r,n]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null),h=s.useId();s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async v=>{const x=r.trim();if(x){l(!0),u(null);try{await e(x),v()}catch(_){u(Gr(_)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((v,x)=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&p(x)},[p]),b=v=>{n(v.target.value),u(null)};return a.jsx(da,{className:"coupon-input-popup",title:o("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),width:"small",onClose:t,closeDisabled:i,buttons:[{label:o("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:v})=>v()},{label:o("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:v})=>{p(v)}}],children:({closeWithAnimation:v})=>a.jsxs(a.Fragment,{children:[a.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":o("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),"aria-invalid":c?!0:void 0,"aria-errormessage":c?h:void 0,"aria-describedby":c?h:void 0,placeholder:o("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:b,onKeyDown:x=>m(x,v),disabled:i,autoComplete:"off",spellCheck:!1}),c&&a.jsx("p",{id:h,className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var jT=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ue(jT);const d_=["var(--color-main)","var(--color-sub)"],NT=2e3;function TT(e,t){if(!t.startsWith("var("))return t;try{const o=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(o).trim()||null}catch{return null}}function Ls({active:e=!1,count:t=40,duration:o=2e3,strength:r=1,onComplete:n,trigger:i=0}){const l=s.useMemo(()=>{const x=Math.floor(t/2),_=t-x,f=(C,g)=>Array.from({length:C}).map((w,S)=>{const y=6+Math.random()*12,k=Math.round(Math.min(18,y*Math.min(1.5,1+r*.4))),B=d_[Math.floor(Math.random()*d_.length)],E=Math.random()*300,A=(360+Math.random()*260)*r*1.2,j=(g==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,D=Math.cos(j)*A,N=Math.sin(j)*A*1.35,z=Math.random()*720-360,O=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),U=Math.random()>.7?"50%":"3px";return{id:`${g}-${S}`,side:g,size:k,color:B,delay:E,vx:D,vy:N,angularVel:z,life:O,borderRadius:U}});return[...f(x,"left"),...f(_,"right")]},[t,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),h=s.useRef(n);s.useEffect(()=>{h.current=n},[n]);const p=s.useRef(null),m=s.useRef(null),b=()=>{if(typeof document>"u")return null;let x=document.querySelector("[data-ihab-effect-root]");return x||(x=document.createElement("div"),x.className="app-effect",x.dataset.ihabEffectRoot="",x.style.position="fixed",x.style.inset="0",x.style.pointerEvents="none",x.style.zIndex="99998",document.body.appendChild(x)),x};if(typeof document<"u"&&m.current==null&&(m.current=b()),s.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>h.current?.(),0);return()=>clearTimeout(q)}const x=1200,_=performance.now(),f=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),g=q=>Math.max(40,(q||window.innerWidth)*.02),w=f?.width||window.innerWidth||375,S=f?.height||window.innerHeight||812,y=q=>{const L=[...q].sort((H,Z)=>H-Z);return L[Math.floor(L.length/2)]||1},k=y(l.map(q=>Math.abs(q.vy))),B=y(l.map(q=>Math.abs(q.vx))),E=Math.sqrt(2*x*(S*.72+C))/k,A=k*E/x,j=w*.5/(B*A),D=(q,L,H)=>Math.min(H,Math.max(L,q)),N=D(E,.8,2.4),z=D(j,.7,2.2),O=o>0?o/NT:1,U=l.map(q=>({...q,life:q.life*O,vx:q.vx*z,vy:q.vy*N,startTime:_+q.delay,ended:!1})),T=f?{x:f.left-g(f.width),y:f.top+f.height+C}:{x:-g(window.innerWidth),y:window.innerHeight+C},W=f?{x:f.left+f.width+g(f.width),y:f.top+f.height+C}:{x:window.innerWidth+g(window.innerWidth),y:window.innerHeight+C},G=q=>{let L=!1;for(const H of U){const Z=u.current[H.id];if(!Z||!Z)continue;if(q<H.startTime){Z.style.display="none",L=!0;continue}if(!H._inited){const Be=H.side==="left"?T.x:W.x,de=H.side==="left"?T.y:W.y;Z.style.left=`${Be}px`,Z.style.top=`${de}px`,Z.style.transform="translate3d(0px, 0px, 0)",Z.style.display="block",Z.style.zIndex="100000",typeof H.color=="string"&&H.color.startsWith("var(")&&(Z.style.background=TT(Z,H.color)??"#FF0060"),H._inited=!0}const oe=(q-H.startTime)/1e3;if(oe<0)continue;const P=H.life/1e3;if(oe>=P){Z.style.opacity="0",Z.style.display="none",H.ended=!0;continue}L=!0;const $=H.side==="left"?T.x:W.x,R=H.side==="left"?T.y:W.y,Y=$+H.vx*oe,Q=R+H.vy*oe+.5*x*oe*oe,ae=(H.angularVel||0)*oe,te=Y-$,J=Q-R;Z.style.transform=`translate3d(${te}px, ${J}px, 0) rotate(${ae}deg)`,Z.style.opacity=`${Math.max(0,1-oe/P)}`}L?d.current=requestAnimationFrame(G):h.current?.()};d.current=requestAnimationFrame(G);const X=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const L of l){const H=document.createElement("span");H.className=`confetti confetti--${L.side}`,H.setAttribute("aria-hidden","true"),H.style.display="none",H.style.position="fixed",H.style.left="0px",H.style.top="0px",H.style.width=`${L.size}px`,H.style.height=`${Math.max(4,L.size*.6)}px`,H.style.background=L.color,H.style.borderRadius=L.borderRadius,H.style.transform="translate3d(0,0,0)",H.style.opacity="0",q.appendChild(H),u.current[L.id]=H}(document.body||m.current).appendChild(q),p.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(X),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,o,i,l]),!e)return null;const v=a.jsx("div",{className:"party-container",ref:c,children:l.map(x=>a.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[x.id]=_},className:`confetti confetti--${x.side}`,style:{width:`${x.size}px`,height:`${Math.max(4,x.size*.6)}px`,background:x.color,borderRadius:x.borderRadius}},`${x.id}-${i}`))});return typeof document<"u"?Do.createPortal(v,m.current||document.body):v}const vm=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function p_({trigger:e=0,active:t=!1}){const[o,r]=s.useState(null);s.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(u=>({n:(u?.n??0)+1,count:vm(c.count),strength:vm(c.strength),duration:vm(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const n=s.useCallback(()=>r(null),[]);return a.jsxs(a.Fragment,{children:[a.jsx(Ls,{active:t,trigger:e}),o&&a.jsx(Ls,{active:!0,trigger:o.n,count:o.count,strength:o.strength,duration:o.duration,onComplete:n})]})}var LT=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:center;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}.ihabdevteam-core-scope .page-title--wrap{flex-wrap:wrap}.ihabdevteam-core-scope .page-title--wrap .page-title__main{min-width:min(320px,100%)}";ue(LT);function h_({title:e,sub:t,rightAction:o,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:h}=Ae.useTranslation();Kd(typeof e=="string"?e:l??null);const p=u??h("common.back","\uB4A4\uB85C");return a.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[a.jsxs("div",{className:"page-title__main",children:[a.jsxs("div",{className:"page-title__title-row",children:[c&&a.jsx(ve,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),a.jsx("h1",{className:"page-title__title h1",children:e}),n&&a.jsx("div",{className:"page-title__badge",children:a.jsx(co,{label:n,size:"small",variant:i,fill:"outline"})}),r?a.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&a.jsx("p",{className:"page-title__sub body-2",children:t})]}),o?a.jsx("div",{className:"page-title__action",children:o}):null]})}function m_(e){return e??""}const b_=s.createContext({words:[],loading:!1});function g_(){return s.useContext(b_)}function f_({words:e,loading:t,error:o,statusMessage:r,localVersion:n,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){const h=s.useMemo(()=>({words:e,loading:t,error:o,statusMessage:r,localVersion:n,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u}),[e,t,o,r,n,i,l,c,u]);return a.jsx(b_.Provider,{value:h,children:d})}var MT=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ue(MT);function v_({items:e,actions:t,columns:o,flat:r=!1,className:n,style:i}){const l=o??e.length;return a.jsx("section",{className:Se("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(l),...i},children:a.jsxs("div",{className:"summary-strip__row",children:[a.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>a.jsxs("div",{className:"summary-strip__item",children:[a.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),a.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},u))}),t&&a.jsx("div",{className:"summary-strip__actions",children:t})]})})}var $T='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media screen{.ihabdevteam-core-scope .report-doc__page--off-screen{display:none}.ihabdevteam-core-scope .report-doc__page{zoom:1;zoom:var(--report-zoom,1)}.ihabdevteam-core-scope .report-doc--spread .report-doc__pages{align-items:flex-start;flex-direction:row;flex-wrap:wrap;justify-content:center}}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}.ihabdevteam-core-scope .report-doc__measure{height:0;overflow:hidden}.ihabdevteam-core-scope .report-doc__measure>*{flex-shrink:0}}';ue($T);const RT=(e,t)=>`${e} / ${t}`;function x_({blocks:e,sectionTitles:t,logo:o,footer:r,pageLabel:n=RT,pageWidth:i,pageHeight:l,margin:c,className:u,style:d,page:h,zoom:p,layout:m="stack",onPageCountChange:b}){const{t:v}=Ae.useTranslation(),x=s.useRef(null),_=s.useRef(null),f=s.useRef(null),C=s.useRef(null),[g,w]=s.useState(null),[S,y]=s.useState(!1);s.useEffect(()=>{const L=x.current;if(!L)return;const H=()=>y(L.scrollWidth>L.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(H);return Z.observe(L),()=>Z.disconnect()},[g]);const k=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),B=g&&g.shape===k?g.pages:null,E=B?B.length:0,A=s.useRef(b);A.current=b,s.useEffect(()=>{E>0&&A.current?.(E)},[E]);const j=h!=null&&E>0?Math.min(E,Math.max(1,Math.floor(h)))-1:null,[D,N]=s.useState(0);s.useEffect(()=>{const L=C.current;if(!L||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>N(L.offsetHeight));return H.observe(L),()=>H.disconnect()},[]);const[z,O]=s.useState(0);s.useEffect(()=>{const L=_.current;if(!L||typeof ResizeObserver>"u")return;let H=null;const Z=typeof requestAnimationFrame=="function"?$=>requestAnimationFrame($):$=>setTimeout($,16),oe=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:$=>clearTimeout($),P=new ResizeObserver(()=>{H==null&&(H=Z(()=>{H=null,O($=>$+1)}))});return Array.from(L.children).forEach($=>P.observe($)),()=>{P.disconnect(),H!=null&&oe(H)}},[k]),s.useLayoutEffect(()=>{const L=_.current,H=C.current;if(!L||!H)return;const Z=J=>J.getBoundingClientRect().height||J.offsetHeight,oe=new Map;f.current?.querySelectorAll("[data-chrome-section]").forEach(J=>{oe.set(J.dataset.chromeSection??"",Z(J))});const P=J=>Z(H)-(oe.get(J??"")??0),$=Array.from(L.children).map(J=>Z(J)),R=[];e.forEach((J,Be)=>{const de=R[R.length-1],re=de?e[de[0]]:void 0;re&&J.group!=null&&re.group===J.group&&re.section===J.section?de.push(Be):R.push([Be])});const Y=[];let Q=[],ae=0;const te=()=>{Q.length&&Y.push(Q),Q=[],ae=0};R.forEach(J=>{const Be=J.reduce((re,I)=>re+$[I],0),de=P(e[J[0]].section);Q.length&&e[Q[0]].section!==e[J[0]].section&&te(),Be>de?J.forEach(re=>{Q.length&&ae+$[re]>de+.01&&te(),Q.push(re),ae+=$[re]}):(Q.length&&ae+Be>de+.01&&te(),J.forEach(re=>Q.push(re)),ae+=Be)}),te(),w(J=>J&&J.shape===k&&JSON.stringify(J.pages)===JSON.stringify(Y)?J:{shape:k,pages:Y})},[k,D,i,l,c,z]);const U=Up,T=U,W=r??a.jsxs(a.Fragment,{children:[a.jsx("img",{src:T,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),G=(L,H,Z)=>({header:a.jsxs("div",{className:"report-doc__header",children:[a.jsx("h2",{className:"report-doc__title h3b",children:Z!=null&&t?.[Z]||null}),o]}),footer:a.jsxs("div",{className:"report-doc__footer caption-1",children:[a.jsx("span",{className:"report-doc__footer-left",children:W}),a.jsx("span",{className:"report-doc__page-no",children:n(L,H)})]})}),X=Array.from(new Set(e.map(L=>L.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...p!=null&&p>0&&p!==1?{"--report-zoom":String(p)}:null,...d};return a.jsxs("div",{ref:x,className:Se("report-doc",m==="spread"&&"report-doc--spread",u),style:q,tabIndex:S?0:void 0,role:S?"group":void 0,"aria-label":S?v("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[a.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[a.jsx("div",{ref:C,className:"report-doc__ruler"}),a.jsx("div",{ref:f,children:X.map(L=>{const H=G(1,1,L||void 0);return a.jsxs("div",{"data-chrome-section":L,children:[H.header,H.footer]},L)})}),a.jsx("div",{ref:_,className:"report-doc__measure-blocks",children:e.map(L=>a.jsx("div",{children:L.content},L.id))})]}),B&&a.jsx("div",{className:"report-doc__pages",children:B.map((L,H)=>{const{header:Z,footer:oe}=G(H+1,B.length,e[L[0]].section);return a.jsxs("section",{className:Se("report-doc__page",j!=null&&j!==H&&"report-doc__page--off-screen"),children:[Z,L.map(P=>a.jsx("div",{children:e[P].content},e[P].id)),oe]},H)})})]})}var PT=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);min-width:0;overflow-wrap:anywhere}";ue(PT);function C_({title:e,fields:t,columns:o=4,className:r,style:n}){return a.jsxs("div",{className:Se("report-info",r),style:{"--report-info-cols":String(o),...n},children:[e&&a.jsx("p",{className:"report-info__title h5b",children:e}),a.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>a.jsxs("div",{className:"report-info__field body-2",children:[a.jsx("span",{className:"report-info__label body-3",children:i.label}),a.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Sr=new Map;let Ms=null;const zT=12;function OT(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const o=window.getComputedStyle(t);if(o.transform&&o.transform!=="none"||o.filter&&o.filter!=="none"||o.perspective&&o.perspective!=="none"||/paint|layout|strict|content/.test(o.contain||""))return t}return document}function $s(){const e=new Map;for(const t of Sr.keys()){if(!t.isConnected)continue;const o=OT(t),r=e.get(o)??[];r.push(t),e.set(o,r)}for(const t of e.values()){t.sort((r,n)=>r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let o=0;for(const r of t){o>0?r.style.setProperty("--update-alert-stack-offset",`${o}px`):r.style.removeProperty("--update-alert-stack-offset");const n=r.getBoundingClientRect().height;n>0&&(o+=n+zT)}}}function IT(e){return typeof window>"u"?()=>{}:(Sr.set(e,(Sr.get(e)??0)+1),Sr.get(e)===1&&typeof ResizeObserver<"u"&&(Ms??(Ms=new ResizeObserver(()=>$s())),Ms.observe(e)),$s(),()=>{const t=(Sr.get(e)??1)-1;if(t>0){Sr.set(e,t),$s();return}Sr.delete(e),Ms?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),$s()})}var FT=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:color-mix(in srgb,var(--color-white) 92%,transparent);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;top:calc(16px + var(--update-alert-stack-offset, 0px));z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;top:auto;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:var(--color-gray);cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:var(--color-text-primary)}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:var(--color-text-primary);text-align:left}.ihabdevteam-core-scope .update-alert__message{color:var(--color-darkGray);margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ue(FT);function __({title:e,message:t,actionLabel:o,onAction:r,icon:n,onClose:i,className:l=""}){const{t:c}=Ae.useTranslation(),u=o??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=s.useRef(null),h=s.useRef(!1);return s.useLayoutEffect(()=>{const p=d.current,m=p?.parentElement?.closest(".update-alert-stack")??p,b=m?IT(m):null;return()=>{b?.(),h.current&&p&&p.contains(document.activeElement)&&kl(p)}},[]),a.jsxs("div",{ref:d,className:Se("update-alert",l),role:"alert",children:[i&&a.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{h.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),a.jsxs("div",{className:"update-alert__top",children:[a.jsx("div",{className:"update-alert__icon",children:n??a.jsx(zm,{size:20,strokeWidth:2})}),a.jsxs("div",{className:"update-alert__body",children:[a.jsx("div",{className:"update-alert__title h4",children:e}),a.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&a.jsx(ve,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}var WT=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex:none;flex-direction:column;gap:10px;max-width:100%;padding:18px;padding:var(--training-card-padding,18px);position:relative;transition:border-color .15s,box-shadow .15s;width:344px;width:var(--training-card-width,344px)}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:0;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;row-gap:0}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__header>.training-card__category{grid-area:1/1;margin-bottom:2px;min-width:0}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:2/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:3/1;margin-top:2px}.ihabdevteam-core-scope .training-card__category{color:var(--color-main-ink,var(--color-main));font-weight:600;margin:0;min-height:1lh;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__category--sub{color:var(--color-sub)}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/4}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;margin-block:-6px;max-width:120px;min-height:24px;overflow:hidden;padding:0;padding-block:6px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-lightGray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{align-items:center;display:flex;flex:1;flex-direction:column;gap:8px;justify-content:center;min-height:72px}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__body--empty,.ihabdevteam-core-scope .training-card__footer--empty{pointer-events:none}.ihabdevteam-core-scope .training-card__menu-host{display:contents}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;gap:var(--training-card-tile-gap,6px);justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;min-height:28px;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .training-card__publisher--static{cursor:default}.ihabdevteam-core-scope .training-card__publisher--static:hover{color:var(--color-gray);text-decoration:none}";ue(WT);function y_({title:e,titleLevel:t=3,category:o,categoryVariant:r="main",description:n,topActions:i,actions:l,children:c,footerLeft:u,footerRight:d,ariaLabel:h,onClick:p,draggable:m,onDragStart:b,onDragEnd:v,className:x}){const _=t?`h${t}`:"div",{t:f}=Ae.useTranslation(),[C,g]=s.useState(null),w=s.useCallback(()=>g(null),[]),S=s.useCallback(j=>{const D=j.currentTarget.getBoundingClientRect();g(N=>N?null:{left:D.left,right:D.right,top:D.top,bottom:D.bottom,width:D.width,height:D.height,x:D.x,y:D.y})},[]),y=(l??[]).filter(Boolean),k=(y.length===1?a.jsx(ve,{htmlType:"button",type:"dot",size:40,icon:y[0].icon,ariaLabel:y[0].label,showTooltipInfo:y[0].label,selected:y[0].selected,disabled:y[0].disabled,variant:y[0].variant??"default",onClick:y[0].onClick}):y.length>1?a.jsx(ve,{htmlType:"button",type:"dot",size:40,icon:"ellipsis",ariaLabel:f("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:f("common.more","\uB354\uBCF4\uAE30"),variant:"transparent-lightGray",useBorder:!1,"aria-haspopup":"menu","aria-expanded":!!C,onClick:S}):null)??i,B=u!=null||d!=null,E=c!=null&&c!==!1,A=s.useCallback(j=>{p&&j.target===j.currentTarget&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),p())},[p]);return a.jsxs("div",{className:Se("training-card",p?"training-card--clickable":"",x),onClick:p,onKeyDown:p?A:void 0,role:p?"button":void 0,"aria-label":p?h??(typeof e=="string"?e:void 0):void 0,tabIndex:p?0:void 0,draggable:m,onDragStart:b,onDragEnd:v,children:[a.jsxs("div",{className:"training-card__header",children:[o!=null?a.jsx("p",{className:Se("training-card__category","caption-1",r==="sub"&&"training-card__category--sub"),children:o}):a.jsx("p",{className:"training-card__category caption-1","aria-hidden":"true",children:" "}),a.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?a.jsx(_,{className:"training-card__title h4",children:e}):e,k!=null&&a.jsx("div",{className:"training-card__top-actions",onClick:j=>j.stopPropagation(),children:k})]}),n!=null?typeof n=="string"?a.jsx("p",{className:"training-card__description body-3",children:n}):n:a.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),E?a.jsx("div",{className:"training-card__body",children:c}):a.jsx("div",{className:"training-card__body training-card__body--empty","aria-hidden":"true"}),B?a.jsxs("div",{className:"training-card__footer",children:[u!=null&&a.jsx("div",{className:"training-card__footer-left",children:u}),d!=null&&a.jsx("div",{className:"training-card__meta",children:d})]}):a.jsx("div",{className:"training-card__footer training-card__footer--empty","aria-hidden":"true"}),C&&y.length>1&&a.jsx("div",{className:"training-card__menu-host",onClick:j=>j.stopPropagation(),children:a.jsx(fo,{anchorRect:C,onClose:w,ariaLabel:f("tooltip.menu","\uBA54\uB274"),children:a.jsx(Ba,{columns:[{items:Vl(y.map(j=>({label:j.label,icon:j.icon,selected:j.selected,disabled:j.disabled,onClick:j.onClick,shortcut:j.shortcut})))}],onClose:w,size:"small"})})})]})}var GT=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;flex-wrap:wrap;gap:8px;min-height:60px;min-width:0;padding:10px 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__chevron[aria-expanded=true]:not(:hover):not(:focus-visible){background:transparent;color:var(--color-gray-a80)}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main-ink,var(--color-main));flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ue(GT);function w_({title:e,titleLevel:t=3,count:o,collapsed:r=!1,onToggle:n,beforeSort:i,sort:l,actions:c,empty:u=!1,emptyContent:d,dragOver:h=!1,onDragOver:p,onDragLeave:m,onDrop:b,children:v,className:x}){const{t:_}=Ae.useTranslation(),f=s.useId(),C=t?`h${t}`:"span",g=n!=null,w=Se("training-card-group",h&&"training-card-group--dragover",r&&"training-card-group--collapsed",g&&"training-card-group--collapsible",x);return a.jsxs("div",{className:w,onDragOver:p,onDragLeave:m,onDrop:b,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?f:void 0,children:[a.jsxs("header",{className:"training-card-group__header",children:[g&&a.jsx(ve,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?_("common.expandFor",{name:e}):_("common.collapseFor",{name:e}):r?_("common.expand","\uD3BC\uCE58\uAE30"):_("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:n}),typeof e=="string"?a.jsx(C,{id:f,className:"training-card-group__title h5b",children:e}):e,o!==void 0&&a.jsx("span",{className:"training-card-group__count body-3b",children:o}),(i!=null||l||c!=null)&&a.jsxs("span",{className:"training-card-group__actions",onClick:S=>S.stopPropagation(),children:[i,l&&a.jsx($o,{size:40,options:l.options,value:l.value,placeholder:l.placeholder,onChange:l.onChange,ariaLabel:typeof e=="string"&&e?_("common.sortFor",{name:e}):void 0}),c]})]}),!r&&(u?a.jsx("div",{className:"training-card-group__empty body-3",children:d}):a.jsx("div",{className:"training-card-group__grid",children:v}))]})}var HT=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__table-actions{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:auto}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:0}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}.ihabdevteam-core-scope .word-table-block__table-actions{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__table-actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ue(HT);const VT="speechear:saved_word_tables";function UT(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function qT(){try{const e=localStorage.getItem(VT);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(UT):[]}catch{return[]}}function k_(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function xm(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function YT(e){const t=new Set;return e.map(o=>{let r=o.id;for(let n=2;t.has(r);n++)r=`${o.id}~${n}`;return t.add(r),r===o.id?o:{...o,id:r}})}function B_({title:e,titleIcon:t,disc:o,filterTitle:r,filterCollapsible:n,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:c,filterHeaderSummary:u,brand:d,code:h,baseItem:p,baseContentTypes:m,cellCapacity:b,maxItemsPerPage:v,items:x,onSaveComplete:_,onLoad:f,onRemoveItem:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,onReset:y,resetLabel:k,saveButtonLabel:B,secondarySaveButtonLabel:E,onReorder:A,showCellCount:j,onAddItem:D,fillerAdd:N,className:z,renderSavePopup:O,renderWordSearch:U,hideControls:T,saveOnly:W,tableName:G,nameValue:X,onNameChange:q,descriptionValue:L,onDescriptionChange:H,namePlaceholder:Z,descriptionPlaceholder:oe,existingNames:P,editingName:$,onCancel:R,initialItemsPerPage:Y,onItemsPerPageChange:Q,renderCellAction:ae,actionsLeftExtra:te}){const{t:J}=Ae.useTranslation(),Be=k??J("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),de=x===void 0,re=!!q,[I,ne]=s.useState([]),V=(X??"").trim(),se=V||(Z??"").trim(),F=(L??"").trim()||(oe??"").trim(),le=(P??[]).map($e=>$e.trim().toLowerCase()),pe=[$?.trim().toLowerCase(),...I].filter($e=>!!$e),be=[...le];for(const $e of pe){const Qe=be.indexOf($e);Qe!==-1&&be.splice(Qe,1)}const _e=V!==""&&be.includes(V.toLowerCase()),[Re,ke]=s.useState(Array(4).fill(null)),[Ee,De]=s.useState(4),[Ie,je]=s.useState(null),at=Re.slice(0,Ee),Ct=!!d?.show,[Fe,Ue]=s.useState(!0),[rt,Ge]=s.useState(!0),Je=d&&{...d,top:Fe,bottom:rt},[st,_t]=s.useState("landscape"),[bt,At]=s.useState([...Lx]),[dt,Qt]=s.useState("show"),[St,Wt]=s.useState(!0),[tt,Ne]=s.useState(!0),it=s.useRef(null),ut=s.useRef([]),[yt,Tt]=s.useState(Y==="all"?Number.POSITIVE_INFINITY:Y??8),[Ht,vt]=s.useState("right"),[gt,Nt]=s.useState(!1),[Lt,et]=s.useState(!1),{toastMessage:Et,toastType:he,showWarning:Te,clearToast:ze}=Ol("warning"),Ye=s.useCallback(()=>je(null),[je]);p&&de&&jt("word-table-block-base-item-in-edit","[WordTableBlock] baseItem \uC740 \uD45C\uC2DC \uBAA8\uB4DC(items \uB97C \uC8FC\uB294 \uAF34)\uC5D0\uC11C\uB9CC \uAC78\uB9B0\uB2E4 \u2014 \uD3B8\uC9D1 \uACA9\uC790\uC5D0\uB294 \uC11C\uC9C0 \uC54A\uB294\uB2E4.");const[ct,Vt]=s.useState(()=>Math.max(x?.length??1,1)),pt=Math.max(b??0,x?.length??0,1),ao=b!=null||!!j,Ot=de?Ee:j?Math.max(ct,x?.length??1,1):pt,{width:Ke,height:ee}=Ha[st],xe=!de&&!j,He=Math.max(1,Math.min(pt,v??pt)),Xe=Math.min(yt,He),lt=xe?Xe:Ot,ht=v!=null&&b!=null,Mt=ht?Math.max(1,Math.min(yt,v)):Xe,Ut=s.useRef(Q);s.useEffect(()=>{Ut.current=Q}),s.useEffect(()=>{xe&&Ut.current?.(Mt)},[xe,Mt]);const Po=Math.ceil((x?.length??0)/Math.max(1,lt)),_o=(x?.length??0)<pt?Math.floor((x?.length??0)/Math.max(1,lt))+1:0,zo=xe?Math.max(1,Po,_o):0,wo=xe?Array.from({length:zo},($e,Qe)=>(x??[]).slice(Qe*lt,(Qe+1)*lt)):null,no=!!wo&&wo.length>1,yo=de?at.some($e=>$e!==null&&$e.length>1):(x??[]).some($e=>($e.words??[]).length>1),ko=G?.trim()||`${il(Io())} ${yo?J("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):J("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,uo=s.useCallback(()=>no?ut.current.filter($e=>$e!==null):it.current?[it.current]:[],[no]),{print:It,openNewWindow:$t,downloadHtml:qt}=gs({getElements:uo,paperW:Ke,paperH:ee,fileName:ko,onPopupBlocked:()=>{Te(J("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ft=$e=>{De($e),ke(Qe=>Qe.length>=$e?Qe:[...Qe,...Array($e-Qe.length).fill(null)]),je(null)},ga=$e=>{ke(Qe=>{const Pt=[...Qe];return Pt[$e]=null,Pt}),Ie===$e&&je(null)},Go=$e=>{if(Ie===null)return;const Qe=Ie;ke(Ho=>{const fa=[...Ho];return fa[Qe]=$e.length>0?$e:null,fa});const Pt=at.findIndex((Ho,fa)=>fa>Qe&&Ho===null);je(Pt!==-1?Pt:null)},Ya=de?at.some($e=>$e?.some(Qe=>!!Qe.colloquialPronunciation)):(x??[]).some($e=>($e.words??[]).some(Qe=>!!Qe.colloquialLabel)),ta=!de&&Mx([...p?[p]:[],...x??[]]),fe=s.useMemo(()=>Ta()?de?Re.slice(0,Ee).flatMap($e=>($e??[]).map(Qe=>[Qe.word,Qe.homonum])):($e=>$e.flatMap(Qe=>(Qe.words??[]).map(Pt=>[Pt.label,Pt.homonum])))([...p?[p]:[],...x??[]]):[],[de,Re,Ee,x,p]),[Le,K]=s.useState(!1);s.useEffect(()=>{if(fe.length===0)return;let $e=!1;return Promise.all(fe.map(([Qe,Pt])=>Ti(Qe,Pt))).then(Qe=>{$e||K(Qe.some(Boolean))},()=>{}),()=>{$e=!0}},[fe]);const ge=fe.length>0&&Le,Ce=s.useMemo(()=>[...de||j?[{label:J("wordTable.filter.columns","\uCE78 \uC218"),items:Gj.map($e=>({value:`${$e}\uCE78`,displayLabel:J("wordTable.filter.column",{count:$e})})),display:"segmented"}]:[],...xe&&(x?.length??0)>0?[Wx(J,{hasPairs:yo,itemCount:ht?v:pt,max:v})]:[],...no?[Vj(J)]:[]],[J,de,j,xe,x?.length,yo,pt,v,no]),Me={...de||j?{[J("wordTable.filter.columns","\uCE78 \uC218")]:`${Ot}\uCE78`}:{},...xe&&(x?.length??0)>0?{[J(yo?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Mt}\uAC1C`}:{},...no?{[J("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ht}:{}},Pe=($e,Qe)=>{if(Qe===J("wordTable.filter.columns","\uCE78 \uC218"))de?Ft(parseInt($e)):Vt(parseInt($e));else if(Qe===J(yo?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const Pt=parseInt($e);Tt(ht?Pt:Gx(Pt,pt))}else Qe===J("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&vt(Hx($e))},Ve=de?YT(at.filter($e=>$e!==null&&$e.length>0).map($e=>({id:xm($e),words:$e.map(k_)}))):x??[],mt=()=>{de&&ke($e=>$e.length>Ee?$e.slice(0,Ee):$e)},wt=($e=!1)=>{if(et($e),re&&_){const Qe=se.trim().toLowerCase();Qe&&ne(Pt=>Pt.includes(Qe)?Pt:[...Pt,Qe]),_(se,Ve,F||void 0,$e),mt();return}if(W&&_){_("",Ve,void 0,$e),mt();return}if(_){Nt(!0);return}qt()},[we,M]=s.useState(!1),[ie,ye]=s.useState(""),Oe=ie.trim(),qe=Oe!==""&&le.includes(Oe.toLowerCase()),ot=()=>{ye(se?J("wordTable.save.copyName",{name:se,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),M(!0)},Dt=()=>{!Oe||qe||!_||(_(Oe,Ve,F||void 0,!0),mt(),M(!1))},Rt=Ve.length===0,po=Rt||re&&(se===""||_e),ho=()=>{if(Rt){Te(J("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(re&&se===""){Te(J("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}re&&_e&&Te(J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},bn=a.jsx(kr,{items:Ve,orientation:st,contentTypes:bt,baseItem:p,baseContentTypes:m,cutLine:dt,showOutline:St,showDivLine:tt,count:Ot});return a.jsxs(a.Fragment,{children:[a.jsxs(wr,{type:"page",icon:t,title:e,disc:o,className:Se("word-table-block",z),children:[we&&a.jsx(da,{width:"small",title:E??J("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>M(!1),footer:({closeWithAnimation:$e})=>a.jsxs(a.Fragment,{children:[a.jsx(ve,{htmlType:"button",size:48,type:"bar",label:J("common.cancel","\uCDE8\uC18C"),onClick:$e}),a.jsx(ve,{htmlType:"button",size:48,type:"bar",variant:"main",label:J("common.save","\uC800\uC7A5"),disabled:!Oe||qe,onClick:Dt})]}),children:a.jsx(pa,{label:J("wordTable.save.nameLabel","\uC774\uB984"),value:ie,onChange:ye,placeholder:J("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Dt,error:qe?J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),gt&&_&&O?.({defaultName:typeof e=="string"?e:J("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:bn,previewW:Ke,previewH:ee,items:Ve,existingNames:qT().map($e=>$e.name),saveAsNew:Lt,onSave:($e,Qe)=>{_($e,Ve,Qe,Lt),mt(),Nt(!1)},onCancel:()=>Nt(!1)}),(de||D)&&Ie!==null&&U?.({cellIndex:Ie,onConfirm:de?Go:$e=>{if(D){const Qe=$e[0];if(Qe){const Pt=new Set((x??[]).map(fa=>fa.id));let Ho=xm([Qe]);for(let fa=2;Pt.has(Ho);fa++)Ho=`${xm([Qe])}~${fa}`;D({id:Ho,words:[k_(Qe)]})}}je(null)},onClose:Ye}),!T&&a.jsx(ms,{title:r,collapsible:n,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:u,hasImage:ge,hasColloquial:Ya,hasCaption:ta,contentTypes:bt,orientation:st,showOutline:St,cutLine:dt,showDivLine:tt,setters:{setContentTypes:At,setOrientation:_t,setShowOutline:Wt,setCutLine:Qt,setShowDivLine:Ne,setShowTopInfo:Ue,setShowBottomInfo:Ge},showCutLine:(xe?lt:Ot)>1,showDivLine2:yo,middleSections:Ce,extraSelected:Me,onExtraSelect:Pe,showPaperBands:Ct,showTopInfo:Fe,showBottomInfo:rt}),no&&wo?a.jsx("div",{className:"word-table-block__pages",children:wo.map(($e,Qe)=>a.jsx(kr,{orientation:st,contentTypes:bt,cutLine:dt,showOutline:St,showDivLine:tt,count:lt,items:$e,baseItem:p,baseContentTypes:m,onRemoveItem:C,onCopyItem:g,onReplaceItem:w,onPickForm:S,onReorder:A&&((Pt,Ho)=>A(Pt+Qe*lt,Ho+Qe*lt)),indexOffset:Qe*lt,totalCount:x?.length??0,renderCellAction:ae&&((Pt,Ho)=>ae(Pt+Qe*lt,Ho)),showFillerAdd:!!D,fillerAdd:N,onActivateCell:D?(Pt=>je(Pt+Qe*lt)):void 0,addableCount:ao?Math.max(0,Math.min(lt,pt-Qe*lt)):void 0,brand:Je,code:h,contentRef:Pt=>{ut.current[Qe]=Pt},pageNumber:{current:Qe+1,total:wo.length},pageNumberPosition:Ht},Qe))}):a.jsx(kr,{orientation:st,contentTypes:bt,cutLine:dt,showOutline:St,showDivLine:tt,count:lt,items:de?void 0:x??[],baseItem:de?void 0:p,baseContentTypes:m,editCells:de?at:void 0,activeCell:Ie,onActivateCell:de||D?je:void 0,onRemoveCell:de?ga:void 0,onRemoveItem:de?void 0:C,onCopyItem:de?void 0:g,onReplaceItem:de?void 0:w,onPickForm:de?void 0:S,onReorder:de?void 0:A,addableCount:ao?xe?Math.min(lt,pt):Ot:void 0,renderCellAction:de?void 0:ae,brand:Je,code:h,showFillerAdd:!!D,fillerAdd:N,contentRef:it}),!T&&!W&&te!=null&&a.jsx("div",{className:"word-table-block__table-actions",children:te}),re&&!T&&a.jsxs(xr,{labelWidth:64,useBorder:!1,className:"word-table-block__meta",children:[a.jsx(Co,{variant:"custom",label:J("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:a.jsx(pa,{required:!0,value:X??"",onChange:q,placeholder:Z?Z+J("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):J("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:J("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:_e?J("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:$e=>{($e.key==="Tab"&&!$e.shiftKey||$e.key===" ")&&!(X??"").trim()&&(Z??"").trim()&&($e.preventDefault(),q?.(Z??""))}})}),a.jsx(Co,{variant:"custom",label:J("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:a.jsx(pa,{value:L??"",onChange:H,placeholder:oe?oe+J("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):J("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:J("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:$e=>{($e.key==="Tab"&&!$e.shiftKey||$e.key===" ")&&!(L??"").trim()&&(oe??"").trim()&&($e.preventDefault(),H?.(oe??""))}})})]})]}),!T&&a.jsxs("div",{className:"word-table-block__actions",children:[a.jsxs("div",{className:"word-table-block__actions-left",children:[!W&&f&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:J("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:f}),!W&&y&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:Be,onClick:y}),!W&&a.jsx(ve,{htmlType:"button",size:40,type:"bar",label:J("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:$t})]}),a.jsxs("div",{className:"word-table-block__actions-right",children:[R&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:J("common.cancel","\uCDE8\uC18C"),onClick:R}),!W&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:J("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:It}),E&&a.jsx(ve,{htmlType:"button",size:"56",type:"bar",label:E,onClick:()=>re?ot():wt(!0),disabled:Rt,onDisabledClick:()=>{Te(J("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),a.jsx(ve,{htmlType:"button",size:"56",type:"bar",variant:"main",label:B??J("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>wt(!1),disabled:po,onDisabledClick:ho})]})]}),a.jsx(yr,{message:Et,type:he,onClose:ze})]})}var KT=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-darkGray)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}.ihabdevteam-core-scope .word-table-thumb__cell--more{justify-content:center;outline-offset:-2px}.ihabdevteam-core-scope .word-table-thumb__cell--more:focus-visible{outline:2px solid var(--color-main)}.ihabdevteam-core-scope .word-table-thumb__more{color:var(--color-gray)}";ue(KT);const XT=8;function Cm({items:e,className:t,columns:o}){const{t:r}=Ae.useTranslation(),n=s.useRef(null),[i,l]=s.useState(null),c=s.useCallback(()=>l(n.current?.getBoundingClientRect()??null),[]),u=s.useCallback(()=>l(null),[]),d=El(!!i,w=>{w?c():u()},n),h=e.length,p=o&&o>0?Math.floor(o):h<=3?1:2,m=XT,b=h>m,v=e.slice(0,b?m-1:m),x=h-v.length,_=e.slice(v.length).map(w=>w.words?.length?w.words.map(S=>S.label).join(" / "):w.id),f=Math.min(5,Math.ceil(_.length/25)),C=Math.ceil(Math.min(h,m)/p)||1,g=p*C;return a.jsx("div",{className:Se("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${p}, 1fr)`},children:Array.from({length:g},(w,S)=>{if(b&&S===m-1)return a.jsxs("div",{ref:n,className:"word-table-thumb__cell word-table-thumb__cell--more",tabIndex:0,"aria-label":r("wordTable.thumbMoreAria",{count:x,words:_.join(", "),defaultValue:"\uADF8 \uBC16 {{count}}\uCE78: {{words}}"}),onPointerEnter:k=>{Ia(k)||c()},onPointerLeave:k=>{Ia(k)||u()},onFocus:()=>{dr()||c()},onBlur:u,onClick:k=>{k.stopPropagation(),d.touchPress()},children:[a.jsx("span",{className:"word-table-thumb__more body-3",children:r("wordTable.thumbMore",{count:x,defaultValue:"+{{count}}"})}),i&&_.length>0&&a.jsx(wa,{anchorRect:i,items:_,showIndex:!1,closeOnOutsideClick:!1,columns:f})]},S);const y=v[S];return y?a.jsx("div",{className:"word-table-thumb__cell",children:(y.words?.length?y.words:[{label:y.id}]).map((k,B)=>a.jsxs(s.Fragment,{children:[B>0&&a.jsx("span",{className:"word-table-thumb__divider"}),a.jsx("span",{className:"word-table-thumb__word body-3",children:k.label})]},B))},S):a.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},S)})})}var ZT=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:280px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-lightGray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table-button__meta-right{align-items:center;display:flex;flex-shrink:0;gap:8px;min-width:0}.ihabdevteam-core-scope .word-table-button__code{color:var(--color-gray);flex-shrink:0;white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-left .word-table-button__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ue(ZT);function A_({items:e,name:t,description:o,createdAt:r,code:n,published:i,publishedLabel:l,shared:c,sharedLabel:u,isNew:d,publisherName:h,publishedAt:p,likeCount:m,downloadCount:b,onPublisherClick:v,selected:x,onClick:_,onMore:f,titleNode:C,className:g}){const{t:w}=Ae.useTranslation(),S=C!=null,y=h!=null||p!=null||m!=null||b!=null,k=B=>{B.target===B.currentTarget&&!S&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_?.())};return a.jsxs("div",{className:Se("word-table-button",x?"word-table-button--selected":"",y?"":"word-table-button--no-footer",g),role:"button",tabIndex:0,"aria-label":n?`${t} (${n})`:t,onClick:S?void 0:_,onKeyDown:k,children:[d&&a.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),a.jsx(Cm,{items:e,className:"word-table-button__thumb"}),a.jsxs("div",{className:"word-table-button__info",children:[a.jsxs("div",{className:"word-table-button__info-text",children:[C??a.jsx("div",{className:"word-table-button__title h4",children:t}),o&&a.jsx("div",{className:"word-table-button__desc body-3",children:o})]}),f&&!S&&a.jsx(ve,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),f(B)}})]}),(n||r||i||c)&&a.jsxs("div",{className:"word-table-button__meta-row",children:[a.jsx("span",{className:"word-table-button__meta-left",children:a.jsx("span",{className:"word-table-button__meta caption-1",children:r?nl(r,w):""})}),a.jsxs("span",{className:"word-table-button__meta-right",children:[(i||c)&&a.jsxs("span",{className:"word-table-button__badges",children:[i&&a.jsx(co,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??w("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),c&&a.jsx(co,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:u??w("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),n&&a.jsx("span",{className:"word-table-button__code caption-1",children:n})]})]}),y&&a.jsxs("div",{className:"word-table-button__footer",children:[a.jsxs("span",{className:"word-table-button__store-by",children:[h&&(v?a.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":w("wordTable.publisherFilter",{name:h,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:B=>{B.stopPropagation(),v()},children:h}):a.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:h})),p&&a.jsx("span",{className:"training-card__date body-4",children:nl(p,w)})]}),a.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&a.jsx(co,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m),"aria-label":w("common.likeCount",{count:m,defaultValue:`\uC88B\uC544\uC694 ${m}`})}),b!=null&&a.jsx(co,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b),"aria-label":w("common.downloadCount",{count:b,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${b}`})})]})]})]})}/**
1077
1077
  * @license lucide-react v1.38.0 - ISC
1078
1078
  *
1079
1079
  * This source code is licensed under the ISC license.