@ihabdevteam/core 0.429.0 → 0.430.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.
- package/CHANGELOG.md +8 -0
- package/dist/components.cjs.js +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +1 -1
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
- /package/dist/logo/{Logo_SL_ko.svg → old/Logo_SL_ko.svg} +0 -0
- /package/dist/logo/{Logo_SL_ko_mono.svg → old/Logo_SL_ko_mono.svg} +0 -0
- /package/dist/packages/core/src/logo/{Logo_SL_ko.svg → old/Logo_SL_ko.svg} +0 -0
- /package/dist/packages/core/src/logo/{Logo_SL_ko_mono.svg → old/Logo_SL_ko_mono.svg} +0 -0
package/dist/components.cjs.js
CHANGED
|
@@ -824,7 +824,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
824
824
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
825
825
|
\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"},Kg={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Yg={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"},Zg={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Xg={ariaLabel:"\uC120\uD0DD \uD0ED"},Jg={ariaLabel:"\uD0ED"},Qg={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},eb={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},tb={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},nb={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"},ab={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"}},rb={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},ob={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"},sb={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"},lb={viewWords:"\uB0B1\uB9D0"},ib={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},ub={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},cb={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},db={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},pb={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},hb={clearSelection:"\uC120\uD0DD \uD574\uC81C"},mb={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Cb={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},fb={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},gb={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},bb={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},yb={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},vb={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"},xb={common:vg,calendar:xg,passCard:_g,rating:wg,colorPicker:Bg,dropdown:kg,accordion:Ag,header:Ng,nav:Eg,settings:jg,usage:Dg,account:Sg,training:Tg,customers:Mg,payment:$g,coupons:Lg,visits:Rg,trainingType:Pg,myWordTable:Fg,keyWords:Ig,wordTable:Og,wordSearch:zg,wordPrint:Wg,topic:Hg,device:Vg,manager:qg,wordPairs:Ug,footer:Gg,date:Kg,wordData:Yg,textField:Zg,segmentedControl:Xg,tabs:Jg,fileUpload:Qg,avatar:eb,myHomework:tb,trainingStatus:nb,store:ab,progress:rb,trainingMiss:ob,table:sb,wordScore:lb,topBanner:ib,datePicker:ub,report:cb,tooltip:db,phonemeProfile:pb,bulkBar:hb,debug:mb,badge:Cb,loader:fb,soundCompass:gb,breadcrumb:bb,board:yb,promoBannerBg:vb},_b={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},wb={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonthCompact:"{{short}}",weekLabel:"Week {{ord}}",weekLabelCompact:"W{{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},Bb={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},kb={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Ab={selected:"selected"},Nb={placeholder:"Select"},Eb={collapse:"Collapse",expand:"Expand"},jb={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Db={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},Sb={cache:{cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"}}}},Tb={couponButton:"Enter Coupon"},Mb={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},$b={settings:"Settings",filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Difficulty",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playSoundFor:"Play {{name}}",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},Lb={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"},consent:{record:"Record consent",kinds:"Kinds given",methodTitle:"How it was given",sourceTitle:"Who gave it",day:"Date given",note:"Note",notePlaceholder:"Referring clinic and the like \u2014 do not write anything sensitive",submit:"Save",allTaken:"All three kinds are already on record. Revoke one first to record it again.",kind:{personal:"General personal data",sensitive:"Sensitive data (hearing, diagnosis)",marketing:"Marketing messages"},method:{paper:"On paper",verbal:"Spoken",electronic:"Electronic"},source:{self:"The customer",guardian:"A guardian",referral:"A referring body"}}},Rb={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Pb={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},Fb={showN:"Show {{n}}"},Ib={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},Ob={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},zb={title:"Key Words",empty:"No key words available."},Wb={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",caption:"Form",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",copyItem:"Duplicate",copyItemAria:"Duplicate the word in cell {{n}}",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"},thumbMore:"+{{count}}",replaceItem:"Other words",replacePair:"Other pairs",replaceItemAria:"Swap cell {{n}} only",replacePairAria:"Swap pair {{n}} only",thumbMoreAria_one:"1 more cell: {{words}}",thumbMoreAria_other:"{{count}} more cells: {{words}}",pickForm:"Other forms",pickFormAria:"Change the form in cell {{n}}",pickFormBaseAria:"Change the form of the base word"},Hb={filterTitle:"Word Search Settings",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.",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"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size"},Vb={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removePairFor:"Remove the pair {{name}}",removeWord:"Remove word",removeWordFor:"Remove {{name}}"},qb={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},Ub={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Gb={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},Kb={phonemeSelect:{vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlyHighUsage:"High-use words only",onlySameStructure:"Only same phoneme structure"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},Yb={lead:`IHAB builds trust
|
|
826
826
|
through sound
|
|
827
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Zb={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Xb={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Jb={clearAriaLabel:"Clear input"},Qb={ariaLabel:"Select tab"},ey={ariaLabel:"Tabs"},ty={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},ny={ariaLabel:"User avatar"},ay={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},ry={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},oy={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},sy={steps:"Step {{current}} of {{total}}"},ly={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},iy={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},uy={viewWords:"Words"},cy={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},dy={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},py={previewRegion:"Report preview \u2014 scrollable sideways"},hy={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},my={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Cy={clearSelection:"Clear selection"},fy={showResult:"Show {{type}} result"},gy={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},by={loading:"Loading"},yy={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},vy={ariaLabel:"Breadcrumb"},xy={empty:"No items yet."},_y={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},wy={common:_b,calendar:wb,passCard:Bb,rating:kb,colorPicker:Ab,dropdown:Nb,accordion:Eb,header:jb,nav:Db,settings:Sb,usage:Tb,account:Mb,training:$b,customers:Lb,payment:Rb,coupons:Pb,visits:Fb,trainingType:Ib,myWordTable:Ob,keyWords:zb,wordTable:Wb,wordSearch:Hb,wordPrint:Vb,topic:qb,device:Ub,manager:Gb,wordPairs:Kb,footer:Yb,date:Zb,wordData:Xb,textField:Jb,segmentedControl:Qb,tabs:ey,fileUpload:ty,avatar:ny,myHomework:ay,trainingStatus:ry,store:oy,progress:sy,trainingMiss:ly,table:iy,wordScore:uy,topBanner:cy,datePicker:dy,report:py,tooltip:hy,phonemeProfile:my,bulkBar:Cy,debug:fy,badge:gy,loader:by,soundCompass:yy,breadcrumb:vy,board:xy,promoBannerBg:_y};const By="0.429.0",ky=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Eo="ko",Ay="ihab_display_language";function di(){if(typeof window>"u")return Eo;try{const e=localStorage.getItem(Ay);if(e&&ky.some(n=>n.code===e))return e}catch{}return Eo}function pi(e){try{document.documentElement.lang=e}catch{}}nn.on("languageChanged",pi),pi(di()),nn.use(Ee.initReactI18next).init({resources:{ko:{translation:xb},en:{translation:wy}},lng:di(),fallbackLng:Eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Ny=99,Ey=new Map;try{nn.store?.on?.("added",()=>Ey.clear())}catch{}Array.from({length:Ny},(e,n)=>n+1);let xr=null,hi=null,mi=null;function jy(){const e=ei();if(e&&e.entries.length>0){const n=If();if(xr&&hi===e&&mi===n)return xr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return xr=r,hi=e,mi=n,xr}return[]}new Proxy([],{get(e,n){const a=jy(),r=a[n];return typeof r=="function"?r.bind(a):r}});function Dy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function Sy(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&Dy(r.attrValue)&&(r.keepAttr=!1)};ga.addHook("uponSanitizeAttribute",n);try{return ga.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{ga.removeHook("uponSanitizeAttribute",n)}}function Ty(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[p,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Co(e):/^(Logo|Symbol)/i.test(d)?m=Co(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let d=!1;async function m(){try{let b=await fetch(r);b.ok||(b=await fetch(r));const x=b.headers.get("content-type")||"";if(d)return;if(x.includes("svg")){i("mask");return}if(x.startsWith("image/")){i("img");return}const f=await fetch(r);if(!f.ok)throw new Error("not ok");const C=await f.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const y=Sy(C);if(!y){i("none");return}c(y),i("inline");return}i("none")}catch{d||i("none")}}return m(),()=>{d=!0}},[r]),o.useEffect(()=>{let d=!1,m=null;return l==="mask"&&r&&fetch(r).then(b=>{if(!b.ok)throw new Error("fetch failed");return b.blob()}).then(b=>{d||(m=URL.createObjectURL(b),h(m))}).catch(()=>{d||i("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),n===e?{iconToUse:r,mode:l,svgText:u,blobUrl:p}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function ut(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},p=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",d=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",b=typeof n=="string"?n:null,x=bC(b),{iconToUse:f,mode:C,svgText:y,blobUrl:v}=Ty(b),w=(B,j={})=>t.jsx("span",{className:p,style:u,...j,children:B}),_=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,E=(B,j={})=>t.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...j,style:_?{...j.style,..._}:j.style});if(!n)return null;if(typeof n!="string")return w(n);if(n==="none")return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(x)try{return w(o.createElement(x,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(C==="mask"){const B={"--icon-url":v?`url(${v})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(t.jsx("span",{className:d,style:B}),{"aria-hidden":"true"})}return C==="img"?w(E(f,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):C==="inline"?w(t.jsx("span",{className:m,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return E(Co(n),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const g=typeof c=="number"?c:20,A=`<svg width="${g}" height="${g}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function Ci(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:n,press:l}}function My({icon:e,title:n,message:a,action:r,className:s}){const{pending:l,press:i}=Ci(r?.onClick);return t.jsxs("div",{className:ke("empty-state",s),children:[e&&t.jsx(ut,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&t.jsx(ut,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function $y({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=Ee.useTranslation(),{pending:u,press:c}=Ci(r);return t.jsxs("div",{className:ke("empty-state","error-state",l),role:"alert",children:[t.jsx(ut,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"error-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[t.jsx(ut,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function Ly({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),p=`${c}-title`,h=`${c}-desc`,d=`${c}-cta`,m=()=>{l||i?.()};return t.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":p,"aria-describedby":`${h} ${d}`,onClick:m,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},className:ke("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(ut,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:p,className:"action-card__title",children:n}),t.jsx("p",{id:h,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:d,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(ut,{icon:"arrow-right",size:18})})]})]})})}function Ry({as:e="div",className:n="",children:a,storage:r,...s}){r&&of({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const l=ke("ihabdevteam-core-scope",n);return t.jsx(e,{className:l,...s,children:a})}function Py(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let n=e;n;n=n.parentElement){const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function jo(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(Tn)).filter(Py);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,p=c===a;s.shiftKey&&(c===i||p)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Tn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Do=new WeakMap;function So(e,n){e&&Do.set(e,n)}function To(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Do.has(r);)r=r.parentElement;if(!r)return n;n=Do.get(r)??null}return n}function fi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function _r(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(fi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(Tn)).filter(c=>!(e&&e.contains(c))&&fi(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function Fy({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=Ee.useTranslation(),[c,p]=o.useState(!1),h=o.useRef(null),d=o.useCallback(()=>{const f=h.current;f&&f.contains(document.activeElement)&&_r(f),p(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),b=l&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:d,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:m,role:"note",children:[a.map((f,C)=>t.jsxs("div",{className:"notice-box__inner",children:[f.title?t.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,t.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?t.jsx("div",{children:f.lines.map((y,v)=>t.jsx("span",{className:"notice-box__line body-3",children:y},v))}):f.children??null})]},C)),b]});const x=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((f,C)=>t.jsx("li",{className:"notice-box__line",children:f},C))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:h,className:m,role:"note",children:[x,b]})}const Iy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function xa(e){const{t:n}=Ee.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||n("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),p=c?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:p,"aria-label":i,children:t.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${p}%`}})})}const u=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[t.jsx("span",{style:Iy,children:i}),t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const _a=[];let wr=!1;function gi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=_a[_a.length-1];n&&(e.stopPropagation(),n())}function aa(e){return _a.push(e),!wr&&typeof document<"u"&&(document.addEventListener("keydown",gi),wr=!0),()=>{const n=_a.lastIndexOf(e);n>=0&&_a.splice(n,1),_a.length===0&&wr&&typeof document<"u"&&(document.removeEventListener("keydown",gi),wr=!1)}}const bi=o.createContext(null);function Oy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const yi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function zy(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ys.useSyncExternalStore(n,()=>yi(e),()=>!1)}function Wy(e){const[n,a]=o.useState(yi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),n}const Hy=typeof Ys.useSyncExternalStore=="function"?zy:Wy;function wn(e){const n=o.useContext(bi),a=Hy(e);return n&&typeof n.mobile=="boolean"&&Oy(e)?n.mobile:a}const Vy="(prefers-reduced-motion: reduce)";function Br(){return wn(Vy)}const vi={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar"};function qy(e,n){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!n.startsWith(r))continue;const s=n.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function Uy(e){return qy(vi,e)}function le(e){if(!e||Object.keys(vi).length===0)return e;const n=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=Uy(a);r&&n.push(r)}return n.length?`${e} ${n.join(" ")}`:e}function En(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:p="",children:h,backdrop:d=!1,isMobilePopup:m=!1,useBorder:b=!0,header:x,focusOnOpen:f}=e||{},C=o.useRef(null),[y,v]=o.useState({position:"fixed",left:0,top:-9999}),[w,_]=o.useState(!1),[E,g]=o.useState("bottom"),[A,B]=o.useState(!1),[j,N]=o.useState(!1),k=!n&&!a,O=o.useRef(null),L=o.useCallback((P=!1,J=!1)=>{if(j&&m)return;const ee=a?a.getBoundingClientRect():n,W=J&&O.current?O.current:ee;if(!W||!C.current)return;const $=C.current,{offsetWidth:D,offsetHeight:S}=$,H=window.innerWidth,ne=window.innerHeight,re=H-W.right,K=W.left,ie=W.top,Y=ne-W.bottom;let de=0,z=0,F="top";if(ie>=S+r)F="top",z=W.top-r-S,de=W.left+W.width/2-D/2;else if(Y>=S+r)F="bottom",z=W.bottom+r,de=W.left+W.width/2-D/2;else if(re>=D+r)F="right",de=W.right+r,z=W.top+W.height/2-S/2;else if(K>=D+r)F="left",de=W.left-r-D,z=W.top+W.height/2-S/2;else{const ae=Math.max(ie,Y,re,K);ae===ie?(F="top",z=W.top-r-S,de=W.left+W.width/2-D/2):ae===Y?(F="bottom",z=W.bottom+r,de=W.left+W.width/2-D/2):ae===re?(F="right",de=W.right+r,z=W.top+W.height/2-S/2):(F="left",de=W.left-r-D,z=W.top+W.height/2-S/2)}const G=Number.isFinite(Number(s))?Number(s):8;de=Math.min(Math.max(de,G),H-D-G),z=Math.min(Math.max(z,G),ne-S-G);const ce=Math.round(de),me=Math.round(z);P&&C.current?(C.current.style.left=`${ce}px`,C.current.style.top=`${me}px`,C.current.dataset.placement=F):(g(F||E),v({position:"fixed",left:ce,top:me}),B(!0))},[j,m,a,n,r,s,E]);o.useEffect(()=>()=>{O.current=null},[a,n]),o.useLayoutEffect(()=>{if(k)return;if(j&&m){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}O.current===null&&(O.current=a?a.getBoundingClientRect():n??null),L(!1,!0);const P=requestAnimationFrame(()=>L(!1,!0));return()=>cancelAnimationFrame(P)},[n,a,r,h,s,k,j,m,L]),o.useEffect(()=>{if(k||j&&m||!C.current||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{n&&L()});return P.observe(C.current),()=>P.disconnect()},[n,h,s,k,j,m,L]),o.useEffect(()=>{if(k||j&&m)return;let P=null;const J=()=>{if(a&&(O.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){L(!0);return}P===null&&(P=requestAnimationFrame(()=>{P=null,L(!0)}))},ee=W=>{if(!a&&l){const $=W.target;if($&&C.current&&C.current.contains($))return;try{if($&&$.closest&&$.closest("[data-tooltip-ignore]"))return}catch{}q.current(!0);return}J()};return window.addEventListener("resize",J),document.addEventListener("scroll",ee,{passive:!0,capture:!0}),()=>{P!==null&&cancelAnimationFrame(P),window.removeEventListener("resize",J),document.removeEventListener("scroll",ee,{capture:!0})}},[n,a,l,r,h,s,k,j,m,L]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(max-width: 768px)"),J=()=>N(!!P.matches);J();try{P.addEventListener?P.addEventListener("change",J):P.addListener(J)}catch{try{P.addListener(J)}catch{}}return()=>{try{P.removeEventListener?P.removeEventListener("change",J):P.removeListener(J)}catch{}}},[]);const V=o.useRef(!1),M=o.useRef(null),I=Br(),R=o.useCallback((P=!1)=>{if(l&&!(w||V.current)){if(V.current=!0,P){_(!0);try{l&&l()}catch{V.current=!1,_(!1)}return}_(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{V.current=!1,_(!1)}},I?0:200)}},[w,l,_,I]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(k)return;const P=W=>{const $=C.current;if(!$)return;const D=W.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}i&&R(!0)}},J=W=>{const $=C.current;if(!$)return;const D=W.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}i&&R(!0)}},ee=W=>{if(W.key==="Tab"){const $=C.current;if(!$)return;const D=$.querySelectorAll(Tn);if(!D||D.length===0)return;const S=D[0],H=D[D.length-1],ne=document.activeElement;W.shiftKey?ne===S&&(W.preventDefault(),H.focus()):ne===H&&(W.preventDefault(),S.focus())}};return document.addEventListener("pointerdown",P,!0),document.addEventListener("click",J,!0),document.addEventListener("keydown",ee),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("click",J,!0),document.removeEventListener("keydown",ee)}},[l,i,R,k]);const q=o.useRef(R);o.useEffect(()=>{q.current=R});const U=!!l;o.useEffect(()=>{if(!(k||!U))return aa(()=>q.current())},[k,U]),o.useEffect(()=>{const P=()=>{R(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",P),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",P)}},[R]);const se=o.useRef(null);o.useEffect(()=>{if(k||f===!1||!A)return;const P=C.current;if(!P)return;const J=P.querySelector(Tn);if(J)return se.current=document.activeElement,J.focus({preventScroll:!0}),()=>{const ee=se.current;se.current=null,ee&&document.contains(ee)&&ee.focus({preventScroll:!0})}},[k,f,A]),o.useEffect(()=>{c==="dialog"&&!p&&jt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,p]);const te=t.jsxs("div",{ref:C,className:le(`tooltip__content ${k?"tooltip__content--inline":""} ${b?"tooltip__content--bordered":""} ${w?"is-closing":""} ${u} ${j&&m?"is-mobile":""}`),role:c,"aria-label":p||void 0,style:k?{}:{...y,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":E,"data-left":k?"":y.left,"data-top":k?"":y.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[x!=null&&t.jsx("div",{className:le("tooltip__header h5"),children:x}),h]});if(k||typeof document>"u")return te;if(d||j&&m){const P=t.jsxs("div",{className:le("tooltip__portal"),children:[t.jsx("div",{className:le("tooltip__backdrop"),onClick:()=>{i&&R(!0)}}),te]});return gn.createPortal(P,document.body)}return gn.createPortal(te,document.body)}function Pn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?t.jsx(En,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:le(`info-tooltip ${l}`),ariaLabel:i||a,children:t.jsx("div",{className:le("info-tooltip__content body-3"),children:a})}):null}function Yn(e){const{t:n}=Ee.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:p=!0,columns:h}=e||{},d=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!d.length&&!r?null:t.jsx(En,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:p,useBorder:!1,className:le("description-tooltip"),ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:le("description-tooltip__box"),children:[r&&t.jsx("span",{className:le("description-tooltip__title body-2"),children:r}),t.jsx("ol",{className:le(`description-tooltip__items${h&&h>1?" description-tooltip__items--columns":""}`),style:h&&h>1?{columnCount:h}:void 0,children:d.map((m,b)=>t.jsxs("li",{className:le(`description-tooltip__item body-3${b===l?" description-tooltip__item--active":""}`),children:[i&&d.length>1&&t.jsxs("span",{className:le("description-tooltip__index button-1"),children:[b+1,"."]}),m.color&&t.jsx("span",{className:le("description-tooltip__dot"),style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},b))})]})})}function Ua(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let Mo=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Mo=Date.now())},!0),document.addEventListener("touchstart",()=>{Mo=Date.now()},{capture:!0,passive:!0}))}_i();function Zn(e){return!!e&&e.pointerType==="touch"}function ra(e=1e3){return _i(),Date.now()-Mo<e}function kr(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ua(e),i=Ua(n),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=d=>{const m=d,b=d.target,x=a.current,f=!!(b&&x&&x.contains(b));if(m.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=l.current;return}u.current=null,l.current&&!(b&&b.closest?.(".tooltip__content"))&&i.current(!1,x)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const p=o.useCallback(h=>{const d=u.current;return d===null?!1:(u.current=null,c.current=Date.now(),i.current(!d,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,d=h?.parentElement;if(!h||!d)return;let m=null;const b=C=>{const y=C.changedTouches?.[0];if(!y)return!1;const v=h.getBoundingClientRect();return y.clientX>=v.left&&y.clientX<=v.right&&y.clientY>=v.top&&y.clientY<=v.bottom},x=C=>{m=b(C)?l.current:null},f=C=>{const y=m;m=null,!(y===null||Date.now()-c.current<700||!b(C))&&(u.current=null,c.current=Date.now(),i.current(!y,h))};return d.addEventListener("touchstart",x,{passive:!0}),d.addEventListener("touchend",f),()=>{d.removeEventListener("touchstart",x),d.removeEventListener("touchend",f)}},[r,s,a,l,i]),{touchPress:p}}function Gy(e,n){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:p,label:h,count:d,subLabel:m,children:b,ariaLabel:x,variant:f="default",align:C="center",nowrap:y=!1,ellipsis:v=!1,selected:w,toggleable:_=!1,ariaExpanded:E,ariaControls:g,disabled:A=!1,loading:B=!1,useLabel:j=!0,useBorder:N=!0,useBG:k=!0,useDisabledCovered:O=!1,useDisabledInvisible:L=!1,useDisabledFilled:V=!1,width:M,minWidth:I,onClick:R,onDisabledClick:q,showTooltipInfo:U=!1,tooltipInfoText:se=null,tooltipDescription:te=null,tooltipOnly:P=!1,iconSize:J="medium",iconColor:ee,shape:W="rounded",color:$,className:D,...S}=e,H=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),ne=H.match(/^\d+$/)?`button${H}`:`button-${H}`,re=Number(a),K=!isNaN(re)&&re<40?"button-2":"button-1",ie=h??b,Y=A||!!S.disabled,de=Y?O?"disabled-covered":L?"disabled-invisibled":V?"disabled-filled":"disabled":f,z=de?`button--variant-${de}`:"",F=C?`button--align-${C}`:"",G=y?"button--nowrap":"",ce=v?"button--ellipsis":"",me=W?`button--shape-${W}`:"",ae=typeof ee=="string"&&ee.startsWith("--")?`var(${ee})`:ee,_e={...M?{width:typeof M=="number"?`${M}px`:M}:{},...I?{minWidth:typeof I=="number"?`${I}px`:I}:{},...N?{}:{"--button-border":Y?"0":"1px solid transparent"},...ae?{"--button-icon-color":ae}:{},...$?{"--color-main":$}:{}},$e=j===!1?"":ie,Le=Array.isArray($e)?$e.length>0:!!$e,je=!!p,ve=r??(Le||c||je?"bar":"dot"),we=`${ne}--${ve}`,he=o.useRef(null);o.useEffect(()=>{!qn||s!==void 0||he.current?.closest("form")&&jt(`button-in-form:${typeof ie=="string"?ie:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof ie=="string"&&ie?` \uB2E8\uCD94: ${ie}`:""))},[s,ie]);const Ae=o.useRef(n);Ae.current=n;const Ge=o.useCallback(Ve=>{he.current=Ve;const st=Ae.current;typeof st=="function"?st(Ve):st&&(st.current=Ve)},[]),We=o.useRef(Y),[dt,ht]=o.useState(!!w),[Pe,Ce]=o.useState(!1),[ze,Be]=o.useState(null),He=o.useCallback(()=>Ce(!1),[]),[tt,lt]=o.useState(!1),gt=o.useId();o.useEffect(()=>{typeof w=="boolean"&&ht(w)},[w]),o.useEffect(()=>{if(We.current&&!Y&&he.current){const Ve=he.current;let st=!1;try{st=Ve.matches(":focus:not(:focus-visible)")}catch{st=!1}st&&Ve.blur(),Ve.style.pointerEvents="none";const wt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{he.current&&(he.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(wt)}We.current=Y},[Y]);const bt=typeof w=="boolean"?!!w:dt,mt=typeof E=="boolean"?void 0:_||typeof w=="boolean"?bt?"true":"false":S["aria-pressed"],it=ke("button",ne,we,z,F,G,ce,me,bt?"is-selected":null,k?null:"button--no-bg",P?"button--tooltip-only":null,D),ot=`button__icon button__icon--${J}`,Dt=Array.isArray(m)?m:m!==void 0?[m]:[],At=()=>{if(Array.isArray($e))return $e.map((st,wt)=>{const Ht=Dt[wt];return t.jsxs("span",{className:`button__label-text${Ht!==void 0?" button__label-text--has-sub":""}`,children:[st,Ht!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ht})]},wt)});const Ve=m!==void 0;return t.jsxs("span",{className:`button__label-text${Ve?" button__label-text--has-sub":""}`,children:[$e,d!=null&&t.jsx("span",{className:"button__count",children:d}),Ve&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},Ot=Ve=>{typeof w!="boolean"&&!_&&ht(!1),Ve.currentTarget.blur()},Jt=Ve=>{Y||(typeof S.onMouseLeave=="function"&&S.onMouseLeave(Ve),Ot(Ve))},Tt=Ve=>{if(P&&zt&&Wt.touchPress(Ve.currentTarget),Y){zt&&Wt.touchPress(Ve.currentTarget),Ve.preventDefault(),q?.(Ve);return}typeof w!="boolean"&&_&&ht(st=>!st),R?.(Ve)},ft=o.useCallback(()=>{(U||te)&&(Ce(!0),Be(he.current?.getBoundingClientRect()??null))},[U,te]),yt=o.useCallback(()=>{(U||te)&&(Ce(!1),Be(null))},[U,te]),zt=!!(U||te),Wt=kr(Pe,Ve=>{Ve?ft():yt()},he,{enabled:zt&&(Y||P),fallbackOnParent:zt&&Y}),Qe={...S};delete Qe.disabled,delete Qe.className,delete Qe.faded,delete Qe.useFaded,delete Qe.loading,delete Qe.onMouseLeave,delete Qe.onPointerEnter,delete Qe.onPointerLeave,delete Qe.onPointerUp,delete Qe.onFocus,delete Qe.onBlur,Y&&(Object.keys(Qe).forEach(Ve=>{/^on[A-Z]/.test(Ve)&&typeof Qe[Ve]=="function"&&delete Qe[Ve]}),Qe["aria-disabled"]="true"),B&&(Qe["aria-busy"]="true");const Nt=(typeof U=="string"?U:null)??(typeof se=="string"?se:null)??(typeof x=="string"?x:null)??(typeof ie=="string"?ie:null)??void 0,Je=typeof x=="string"?x:typeof ie=="string"?ie:Nt,kt=te?[te.title,...te.items??[]].filter(Boolean).join(". "):U&&Nt&&Nt!==Je?Nt:"",Gt=[typeof S["aria-describedby"]=="string"?S["aria-describedby"]:void 0,kt?gt:null].filter(Boolean).join(" ")||void 0,ge=()=>t.jsx("span",{className:`${ot} button__spinner`,"aria-hidden":"true",children:t.jsx(xa,{variant:"spinner",size:"100%"})}),Se=(Ve,st)=>t.jsx(ut,{icon:Ve,label:st??Je,className:ot,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Me=Ve=>B?ge():Se(c,Ve),Ye=()=>ve==="dot"?t.jsxs(t.Fragment,{children:[Me(),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()})]}):C==="center"&&(c||B)?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Me()}),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()})]}),je&&t.jsx("span",{className:"button__right",children:Se(p)})]}):t.jsxs(t.Fragment,{children:[(c||B)&&t.jsx("span",{className:"button__left",children:Me(x??ie)}),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()}),je&&t.jsx("span",{className:"button__right",children:Se(p)})]}),Ct=!!l&&!Y;return t.jsxs(t.Fragment,{children:[t.jsxs(Ct?"a":"button",{...Qe,ref:Ge,...Ct?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:Y&&!q&&!tt},className:it,"aria-pressed":mt,"aria-expanded":typeof E=="boolean"?E:S["aria-expanded"],"aria-controls":g??S["aria-controls"],"aria-label":Je,"aria-disabled":Y&&(Ct||q||tt)?!0:void 0,"aria-describedby":Gt,style:_e,onClick:Tt,onMouseLeave:Jt,onPointerEnter:Ve=>{Zn(Ve)||ft(),!Y&&typeof S.onPointerEnter=="function"&&S.onPointerEnter(Ve)},onPointerLeave:Ve=>{Zn(Ve)||yt(),!Y&&typeof S.onPointerLeave=="function"&&S.onPointerLeave(Ve)},onPointerUp:Ve=>{Y&&zt&&Wt.touchPress(Ve.currentTarget),!Y&&typeof S.onPointerUp=="function"&&S.onPointerUp(Ve)},onFocus:Ve=>{lt(!0),ra()||ft(),!Y&&typeof S.onFocus=="function"&&S.onFocus(Ve)},onBlur:Ve=>{lt(!1),Y||Ot(Ve),yt(),!Y&&typeof S.onBlur=="function"&&S.onBlur(Ve)},children:[Ye(),kt?t.jsx("span",{id:gt,hidden:!0,"aria-label":kt}):null]}),Pe&&te?t.jsx(Yn,{anchorRect:ze,title:te.title,items:te.items,onClose:He}):Pe&&Nt?t.jsx(Pn,{anchorRect:ze,text:Nt,onClose:He}):null]})}const be=o.forwardRef(Gy);be.displayName="Button";function Vt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const Ga={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},$o=new WeakMap;function Lo(e){if(e)return $o.get(e)}function ln(e,n){e&&(e.style.setProperty(Ga.title,n.title),e.style.setProperty(Ga.description,n.description),$o.set(e,n))}function un(e){e&&(e.style.removeProperty(Ga.title),e.style.removeProperty(Ga.description),$o.delete(e))}const wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Bi(){const e=Vt(wi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const ki={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ai(){const e=Vt(ki,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ni={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ei(){const e=Vt(Ni,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=Vt(ji,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Si={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ti(){const e=Vt(Si,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Mi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $i(){const e=Vt(Mi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Li={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ri(){const e=Vt(Li,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fi(){const e=Vt(Pi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ii={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Oi(){const e=Vt(Ii,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const zi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=Vt(zi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Hi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=Vt(Hi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const qi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ui(){const e=Vt(qi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Gi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ki(){const e=Vt(Gi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Zi(){const e=Vt(Yi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const mn=(e,n,a)=>({key:e,get label(){return nn.t(`promoBannerBg.${e}`,n)},textTone:a}),Ky=[mn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("soft","\uC18C\uD504\uD2B8","dark"),mn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),mn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),mn("warm","\uC6DC(\uAC15\uC870)","dark"),mn("dark","\uB2E4\uD06C","light"),mn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),mn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),mn("outline","\uC544\uC6C3\uB77C\uC778","dark"),mn("success","\uC131\uACF5/\uC644\uB8CC","light"),mn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),mn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Xi={main:Bi,soft:Ai,sub:Ei,deep:Di,softSub:Ti,warm:$i,dark:Ri,radial:Fi,diagonal:Oi,dots:Wi,outline:Vi,success:Ui,naver:Ki,instagram:Zi};function Ji({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const _=localStorage.getItem(w),E=_?Number(_):1;return Number.isFinite(E)?i(E):i(1)}catch{return i(1)}},[c,p]=o.useState(()=>u(e)),[h,d]=o.useState(e);h!==e&&(d(e),p(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=w=>{p(typeof w=="function"?_=>i(w(_)):i(w))},b=()=>m(w=>+(w+s).toFixed(6)),x=()=>m(w=>+(w-s).toFixed(6)),f=c<r-Number.EPSILON,C=c>a+Number.EPSILON,y=Math.round(n*c),v=Math.round(y*l);return{scale:c,setScale:m,increase:b,decrease:x,canIncrease:f,canDecrease:C,fontSize:y,lineHeight:v}}function Qi(e,n){const a=Ua(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Ro=" \xB7 ",eu=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Ro)?e.split(Ro).pop()??e:e})(),Yy=o.createContext(!1),oa=[];let tu=null;function Zy(e){const n=o.useContext(Yy);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;oa.length===0&&(tu=document.title);const a={text:eu?`${e}${Ro}${eu}`:e};return oa.push(a),document.title=a.text,()=>{const r=oa.lastIndexOf(a);r>=0&&oa.splice(r,1),document.title=oa.length?oa[oa.length-1].text:tu??document.title}},[e,n])}const Po=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],Xy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function vn(e,n){return Xy().compare(e,n)}const Ar=new Map;function Jy(e){const n=Ar.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),Ar.size>5e3&&Ar.clear(),Ar.set(e,a),a}function Qy(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function e2(e,n){const a=p=>p==null||typeof p=="number"&&Number.isNaN(p)?"":String(p).trim(),r=a(e),s=a(n);if(r===s)return 0;const l=(p,h)=>{if(typeof p=="number"&&!Number.isNaN(p))return[p];const d=Qy(h);return d!==null?[d]:Jy(h)},i=l(e,r),u=l(n,s),c=Math.min(i.length,u.length);for(let p=0;p<c;p++){const h=i[p],d=u[p];if(typeof h=="number"&&typeof d=="number"){if(h!==d)return h-d;continue}if(typeof h=="number")return-1;if(typeof d=="number")return 1;const m=vn(h,d);if(m!==0)return m}return i.length!==u.length?i.length-u.length:vn(r,s)}const nu=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Nr(e,n,a){const r=nu(e),s=nu(n);if(r||s)return r===s?0:r?1:-1;const l=e2(e,n);return a?l:-l}function t2(e,n,a){const{t:r}=Ee.useTranslation(),[s,l]=o.useState(()=>{const x=a?.initialPageSize;return x&&Po.some(f=>f.value===x)?x:"25"}),[i,u]=o.useState(1),[c,p]=o.useState(n);Object.is(c,n)||(p(n),i!==1&&u(1));const h=o.useMemo(()=>Po.map(x=>({...x,label:r("visits.showN",{n:x.value})})),[r]),d=o.useCallback(x=>{Po.some(f=>f.value===x)&&(l(x),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),b=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==b&&u(b),{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:h,value:s,onChange:d},paginationProps:{page:b,total:m,onChange:u},setPage:u}}function n2(e){const[n,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const p=r.current,h=p?.key===c?{key:c,asc:!p.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,p)=>({label:c,sortDir:n?.key===p?n.asc?"asc":"desc":null,onClick:()=>l(p)}),[n,l]),u=o.useCallback((c,p)=>{if(!n)return c;const{key:h,asc:d}=n;return[...c].sort((m,b)=>Nr(p(m,h),p(b,h),d))},[n]);return{sort:n,field:i,sortRows:u}}const jn="\uC804\uCCB4",a2={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},r2={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},o2={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function s2(e,n){if("place"in n)return a2[n.place](e);const a=r2[n.vowel](e);return n.glide?`${a} \xB7 ${o2[n.glide](e)}`:a}const l2=(e,{defaultValue:n})=>n,au=(e,n)=>({jamos:e,phonetic:n,tooltip:s2(l2,n)}),Fn=(e,n)=>n.map(a=>au([a],{place:e})),an=(e,n,a)=>au([...e],a?{vowel:n,glide:a}:{vowel:n}),Fo={cho:[Fn("labial",["\u3142","\u3143","\u314D","\u3141"]),Fn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Fn("alveolar",["\u3145","\u3146"]),Fn("palatal",["\u3148","\u3149","\u314A"]),Fn("velar",["\u3131","\u3132","\u314B"]),Fn("glottal",["\u314E"])],jung:[[an("\u3163","frontHigh"),an("\u315F","frontHigh","w"),an("\u3162","frontHigh","velar")],[an("\u3161","backHighUnrounded")],[an("\u315C","backHighRounded"),an("\u3160","backHighRounded","j")],[an("\u3154\u3150","frontMid"),an("\u3156\u3152","frontMid","j"),an("\u3159\u315A\u315E","frontMid","w")],[an("\u3153","backMidUnrounded"),an("\u3155","backMidUnrounded","j"),an("\u315D","backMidUnrounded","w")],[an("\u3157","backMidRounded"),an("\u315B","backMidRounded","j")],[an("\u314F","low"),an("\u3151","low","j"),an("\u3158","low","w")]],jong:[Fn("labial",["\u3142","\u3141"]),Fn("alveolar",["\u3137","\u3134","\u3139"]),Fn("velar",["\u3131","\u3147"])]},i2=e=>e===u2?[]:Array.from(e),u2="__NO_CODA__",Io=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ru={cho:Io(Fo.cho),jung:Io(Fo.jung),jong:Io(Fo.jong)};ru.jung.flat().forEach(({v:e})=>{for(const n of i2(e));}),new Set(ru.cho.flat().map(e=>e.v)),Object.fromEntries(Object.entries(Df).map(([e,{nucleus:n}])=>[e,n]));function c2(e,n=!0){const a=Ua(e);o.useEffect(()=>{if(n)return aa(()=>{a.current?.()})},[n,a])}function Er(){const[e,n]=o.useState(null),a=o.useCallback(l=>n(l.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();n(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function d2(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,p)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(p)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:i,close:u}}function ou(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((d,m)=>{s(m),a(d),i(b=>b+1)},[]),c=o.useCallback(d=>u(d,"warning"),[u]),p=o.useCallback(d=>u(d,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:p,clearToast:h}}function Ka(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function Ya({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),p=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let b=p.current?.offsetHeight??0;b>0&&h();let x=0,f=null;typeof ResizeObserver<"u"&&p.current&&(f=new ResizeObserver(()=>{const A=p.current?.offsetHeight??0;if(A!==b){if(b=A,++x>4){f?.disconnect(),f=null;return}h()}}),f.observe(p.current));const C=A=>{const B=A.target;r&&B.closest?.(r)||c.current?.contains(B)||p.current?.contains(B)||l(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);let y=null;const v=()=>{if(typeof requestAnimationFrame>"u"){h();return}y===null&&(y=requestAnimationFrame(()=>{y=null,h()}))},w=A=>{p.current?.contains(A.target)||(n==="reposition"?v():n==="close"&&l(!1))};n!=="ignore"&&window.addEventListener("scroll",w,!0);const _=()=>{a==="reposition"?v():a==="close"&&l(!1)};let E=null;const g=()=>{_(),E&&clearTimeout(E),E=setTimeout(()=>{E=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",_),window.addEventListener("orientationchange",g)),()=>{y!==null&&cancelAnimationFrame(y),f?.disconnect(),document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",_),window.removeEventListener("orientationchange",g)),E&&clearTimeout(E)}},[s,h,n,a,r]),o.useEffect(()=>{if(s)return aa(()=>l(!1))},[s]);const d=o.useCallback(()=>l(b=>!b),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:d,close:m,style:i,triggerRef:c,menuRef:p}}function p2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[p,h]=o.useState(0),[d,m]=o.useState("idle"),[b,x]=o.useState(null),[f,C]=o.useState([]),[y,v]=o.useState(null),[w,_]=o.useState(0),E=o.useRef(0),g=o.useCallback(P=>{E.current=typeof P=="function"?P(E.current):P,_(E.current)},[]),A=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{A.current=r,B.current=s},[r,s]);const j=o.useRef([]),N=()=>{j.current.forEach(clearTimeout),j.current=[]},k=(P,J)=>{j.current.push(setTimeout(J,P))};o.useEffect(()=>()=>N(),[]);const O=u[p]?.id??null,L=o.useRef(null),V=o.useCallback(()=>{N(),m("playing"),C([]),v(null),g(0);let P=0;e.forEach((J,ee)=>{k(P,()=>{h(ee),x(J.id),A.current?.(J)}),k(P+1e3,()=>{x(null),C(W=>[...W,J.id])}),P+=1300}),k(P,()=>{m("done"),B.current?.({score:0,total:e.length})})},[e,g]),M=o.useCallback((P,J)=>{if(J>=P.length){m("done"),B.current?.({score:E.current,total:P.length});return}L.current=null,h(J),v(null),m("playing"),x(P[J].id),A.current?.(P[J]),k(l,()=>{x(null),m("waiting")})},[l]),I=o.useCallback(()=>{N();const P=Ha(e);c(P),g(0),C([]),M(P,0)},[e,M,g]),R=o.useCallback(()=>{n==="playback"?(c(e),V()):I()},[n,e,V,I]),q=o.useCallback(()=>{N(),m("idle"),x(null),C([]),v(null),h(0),g(0),c([])},[g]),U=JSON.stringify(e.map(P=>[P.id,P.label,P.angleDeg,P.deg,P.row,P.shortcut]));o.useEffect(()=>(a?R():q(),()=>N()),[n,U,a]);const se=o.useCallback(P=>{d!=="waiting"||n==="playback"||L.current===p||(L.current=p,v(P),P===u[p]?.id&&g(J=>J+1),n==="exam"?(m("playing"),k(400,()=>M(u,p+1))):(m("feedback"),k(i,()=>M(u,p+1))))},[d,n,u,p,M,i,g]),te=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:f,selectedId:y,answerId:O,showFeedback:d==="feedback",clickable:d==="waiting",onSelectSpeaker:se},index:p,total:te,score:w,phase:d,done:d==="done",start:R,reset:q}}const Oo=new Map,zo=new Map,h2=()=>()=>{},m2=()=>!0,C2=()=>!1;function su(e){const n=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!n)return null;try{if(!n[1])return decodeURIComponent(n[2]);const a=Uint8Array.from(atob(n[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function f2(e){if(typeof window>"u")return"";const n=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};ga.addHook("uponSanitizeAttribute",n);try{return ga.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{ga.removeHook("uponSanitizeAttribute",n)}}function g2(e,n){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${n}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(p,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function b2(e){const n=zo.get(e);if(n)return n;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Oo.set(e,r),r)).catch(()=>null).finally(()=>{zo.delete(e)});return zo.set(e,a),a}function y2(e,n=!0){const a=o.useSyncExternalStore(h2,m2,C2)&&n&&e?su(e)??Oo.get(e)??null:null,[r,s]=o.useState({src:e,enabled:n,svg:a});return o.useEffect(()=>{if(!n||!e){s({src:e,enabled:n,svg:null});return}const l=su(e)??Oo.get(e)??null;if(l!==null){s({src:e,enabled:n,svg:l});return}let i=!0;return b2(e).then(u=>{i&&s({src:e,enabled:n,svg:u})}),()=>{i=!1}},[e,n]),r.src===e&&r.enabled===n?r.svg:a}function v2({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:p,className:h=""}){const d=s??l??"main",m=o.useRef(null),[b,x]=o.useState("main"),f=wn("(max-width: 767px)"),C=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const _=Lo(w),E=(g,A,B)=>{if(B!==void 0)w.style.setProperty(A,B),C.current[g]=!0;else if(C.current[g]){const j=_?.[g];j?w.style.setProperty(A,j):w.style.removeProperty(A),C.current[g]=!1}};E("title","--promo-banner-bg-title",c),E("description","--promo-banner-bg-description",p)},[c,p,d]),o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const _=Lo(w);x(_?.actionVariant??"main")},[d]);const y=ke("promo-banner",`promo-banner--${i}`,h),v=Xi[d];return t.jsxs("div",{ref:m,className:y,role:"note",children:[t.jsx(v,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(be,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function x2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=Ee.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[p,h]=o.useState(0),[d,m]=o.useState(!1),[b,x]=o.useState(!1),[f,C]=o.useState(!1),y=o.useRef(null),v=o.useRef(null),w=o.useRef(null),_=Br(),E=d||b||f,g=c>0?Math.min(p,c-1):0;o.useEffect(()=>{if(c<2||n<=0||E||_)return;const B=window.setInterval(()=>h(j=>(Math.min(j,c-1)+1)%c),n);return()=>window.clearInterval(B)},[c,n,E,_]);const A=B=>{v.current!=null&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{v.current=null,C(!1)},B)};return o.useEffect(()=>()=>{v.current!=null&&window.clearTimeout(v.current)},[]),o.useEffect(()=>{if(!f)return;const B=j=>{j.pointerType==="touch"&&(w.current&&w.current.contains(j.target)||(v.current!=null&&(window.clearTimeout(v.current),v.current=null),C(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[f]),c===0?null:t.jsxs("section",{ref:w,className:ke("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{y.current=B.pointerType},onPointerDown:B=>{y.current=B.pointerType,B.pointerType==="touch"&&(v.current!=null&&(window.clearTimeout(v.current),v.current=null),C(!0))},onPointerUp:B=>{B.pointerType==="touch"&&A(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{y.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:B=>{let j=!0;try{j=B.target.matches(":focus-visible")}catch{j=!0}x(j)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||x(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:u.map((B,j)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":j!==g,...j!==g?{inert:!0}:{},children:B},j))})}),c>1&&t.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,j)=>t.jsx("button",{type:"button",className:`top-banner__dot${j===g?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:j+1,defaultValue:`${c}\uAC1C \uC911 ${j+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":j===g,onClick:()=>h(j)},j))})]})}function _2({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=Ee.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:p=>{if(p.key==="Enter"||p.key===" ")p.preventDefault(),r?.();else if(p.key==="ArrowDown"||p.key==="ArrowUp"){p.preventDefault();const h=p.currentTarget.closest('[role="list"]');if(!h)return;const d=Array.from(h.querySelectorAll("[data-accordion-header]")),m=d.indexOf(p.currentTarget);(p.key==="ArrowDown"?d[m+1]:d[m-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${l}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(ut,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${i}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function w2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:n}),u=(c,p)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&p===l.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,p)=>t.jsx(_2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,p),onToggle:()=>i(u(c,p)?{index:-1}:{index:p,id:c.id}),bodyClassName:s},c.id??p))})}function B2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function k2(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function A2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function Mn({children:e,icon:n,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:p=""}){const{t:h}=Ee.useTranslation(),d=n??"check",m=a!==void 0,b=e!==void 0||m?"number":d,x=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[d],f=c?void 0:u??x;return t.jsxs("span",{className:ke("circle-badge",`circle-badge--${b}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",p),onClick:i,onKeyDown:i?C=>{C.key!=="Enter"&&C.key!==" "||(C.preventDefault(),C.currentTarget.click())}:void 0,"aria-label":f,"aria-hidden":c||void 0,role:i?"button":f?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&d==="check"&&t.jsx(B2,{}),e===void 0&&!m&&d==="remove"&&t.jsx(k2,{}),e===void 0&&!m&&d==="minus"&&t.jsx(A2,{})]})}function Za({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=Ee.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const C=[{title:null,columns:e}];let y=e;for(const v of i){const w=y?.[v.ci]?.items?.[v.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;y=[{title:null,items:w.children}],C.push({title:w.label||null,columns:y})}return C},[e,i]),p=c[c.length-1],h=c.length-1,d=o.useCallback(()=>u(C=>C.slice(0,Math.max(0,Math.min(C.length,h)-1))),[h]),m=o.useRef(null),b=o.useRef(null),x=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let C=0,y=0;const v=()=>{const w=m.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}y++<20&&(C=requestAnimationFrame(v))};return C=requestAnimationFrame(v),()=>cancelAnimationFrame(C)},[x]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const f=o.useCallback((C,y,v)=>{if(C){if(Array.isArray(C.children)&&C.children.length){u(w=>[...w.slice(0,h),{ci:y,ii:v}]);return}try{typeof C.onClick=="function"&&C.onClick()}catch{}try{C&&C.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,h]);return t.jsxs("div",{className:le(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||p.title)&&t.jsxs("div",{className:le("menu-tooltip__header"),children:[c.length>1?t.jsx(be,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:le("menu-tooltip__title button-1"),children:p.title})]}),t.jsx("div",{className:le("menu-tooltip__columns"),ref:m,children:p.columns&&p.columns.map((C,y)=>{const v=(C.items||[]).some(w=>!!w.icon||w.selected!==void 0);return t.jsxs("div",{className:le("menu-tooltip__column"),children:[C.title?t.jsx("div",{className:le("menu-tooltip__column-title body-3"),children:C.title}):null,t.jsx("div",{className:le("menu-tooltip__items"),children:(C.items||[]).map((w,_)=>t.jsxs(o.Fragment,{children:[w.separatorBefore&&_>0&&t.jsx("div",{className:le("menu-tooltip__separator"),role:"separator"}),t.jsx(be,{htmlType:"button",className:le("menu-tooltip__item"),size:l,type:w.label?"bar":"dot",icon:w.selected?"check":w.icon||(v||!w.label?"none":void 0),rightIcon:Array.isArray(w.children)&&w.children.length?"chevron-right":w.badgeCount?t.jsx(Mn,{position:"inline",number:Math.min(w.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:w.label,ariaLabel:w.label&&w.badgeCount&&w.badgeCount>0?s("nav.badgeLabel",{label:w.label,count:w.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):w.label,onClick:()=>f(w,y,_),selected:w.selected,disabled:w.disabled,showTooltipInfo:w.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},y)})})]})}const lu=".content-area";function Wo(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(lu);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&jt("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${lu}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const Ho=52,jr=10,iu=e=>e&&e>0?e:0;function uu({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=Ee.useTranslation(),c=r==="manager"?"malgwi":"manager",p=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),d=o.useRef(null),[m,b]=o.useState(0),x=e.length;o.useEffect(()=>{const P=d.current;if(!P)return;const J=()=>{const $=typeof getComputedStyle=="function"?getComputedStyle(P):null,D=P.clientWidth-(parseFloat($?.paddingLeft??"")||0)-(parseFloat($?.paddingRight??"")||0),S=P.querySelector(".bottom-nav__left"),H=S?.nextElementSibling,ne=(S?.offsetWidth??0)+(S&&H?.classList.contains("bottom-nav__divider")?H.offsetWidth:0);b(Math.max(0,D-ne))};if(J(),typeof ResizeObserver>"u")return;const ee=new ResizeObserver(J);ee.observe(P);const W=P.querySelector(".bottom-nav__left");return W&&ee.observe(W),()=>ee.disconnect()},[s]);const f=Ho+1,C=P=>Math.max(0,Math.floor((P+jr)/(Ho+jr))),y=x*(Ho+jr)-jr<=m,v=m<=0||l.length===0&&y?x:Math.min(x,C(m-f)),w=m>0&&v<x,_=w?v:x,E=e.slice(0,_),g=e.slice(_),A=w||l.length>0,B=o.useCallback((P,J)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Ka(J)}),[]),j=o.useId(),{open:N,toggle:k,close:O,style:L,triggerRef:V,menuRef:M}=Ya({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),I=o.useCallback((P,J)=>J>0?u("nav.badgeLabel",{label:P,count:J,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),R=o.useCallback((P,J)=>J>0?u("nav.badgeInsideLabel",{label:P,count:J,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),q=o.useCallback(()=>s?.(c),[s,c]),U=o.useMemo(()=>g.find(P=>!!P.key&&P.key===n)??l.find(P=>P.selected||P.key&&P.key===n),[g,n,l]),se=o.useMemo(()=>[{items:[...g.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),Wo(i,"BottomNav")),O())}})),...l.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),O()}}))]}],[g,l,n,a,O]),te=[...g,...l].reduce((P,J)=>P+iu(J.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:d,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:p,ariaLabel:h,className:"bottom-nav-item",onClick:q})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:E.map((P,J)=>{const ee=iu(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:I(P.label,ee),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),Wo(i,"BottomNav"))}}),ee>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(Mn,{position:"top-right",number:Math.min(ee,99),size:24})})]},P.key??`__slot-${J}`)})}),A&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:V,className:"bottom-nav__slot",children:[t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:U?.icon??"ellipsis",ariaLabel:R(U?.label??u("nav.more","\uB354\uBCF4\uAE30"),te),selected:!!U,className:"bottom-nav-item",onClick:k,"aria-expanded":N,"aria-controls":N?j:void 0}),te>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(Mn,{position:"top-right",number:Math.min(te,99),size:24})}),N&&gn.createPortal(t.jsx("div",{id:j,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:le("tooltip__content"),style:L,ref:M,children:t.jsx(Za,{columns:se,onClose:O})}),document.body)]})})]})]})}function cu(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function du(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function N2(e){const{t:n}=Ee.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:p}=e||{},h="default";return s||l||i||u||c||p?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),u&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),l&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:du(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&t.jsx(Mn,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),c&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),p&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:p,selected:a==="account"})]}):null}function pu(e){const{t:n}=Ee.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:p,labelStyle:h}=e||{},d=a?.key??r??"",m=a?.label??s??"",b=a?.icon??l??"",x=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(ut,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),C=p==="disabled",y=`side-nav__item ${i?"active":""} ${p||""} ${C?"disabled":""} ${a?.child?"side-nav__item--child":""}`,v=o.useCallback(w=>{if(C)return;const _=w.detail>0;if(_)try{w.currentTarget.blur()}catch{}u?.(d,w.currentTarget,_)},[C,d,u]);return t.jsxs("button",{type:"button",className:y,onClick:v,"aria-label":typeof m=="string"?du(n,m,x):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":C,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),x>0&&t.jsx(Mn,{position:"inline",number:Math.min(x,99),size:24,"aria-hidden":!0}),p==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function hu(e){const{t:n}=Ee.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b,scrollContainer:x}=e||{},f=m==="manager",C=o.useCallback(()=>b?.(f?"malgwi":"manager"),[b,f]),y=o.useRef(null),[v,w]=o.useState(null);o.useEffect(()=>{const B=y.current;if(!B)return;let j=null;const N=()=>{const{scrollHeight:L,clientHeight:V,scrollTop:M}=B;if(L<=V+1){w(se=>se===null?se:null);return}const I=Math.max(24,V/L*V),R=V-I,q=L-V,U={top:Math.round(M/q*R),height:Math.round(I)};w(se=>se&&se.top===U.top&&se.height===U.height?se:U)},k=()=>{if(typeof requestAnimationFrame>"u"){N();return}j===null&&(j=requestAnimationFrame(()=>{j=null,N()}))};N(),B.addEventListener("scroll",k,{passive:!0});const O=typeof ResizeObserver<"u"?new ResizeObserver(k):null;O?.observe(B);for(const L of Array.from(B.children))O?.observe(L);return()=>{j!==null&&cancelAnimationFrame(j),B.removeEventListener("scroll",k),O?.disconnect()}},[a]);const _=o.useRef(null),E=o.useCallback(B=>{const j=y.current;j&&(B.preventDefault(),_.current={y:B.clientY,top:j.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),g=o.useCallback(B=>{const j=y.current,N=_.current;!j||!N||(j.scrollTop=N.top+(B.clientY-N.y)*(j.scrollHeight/j.clientHeight))},[]),A=o.useCallback(B=>{_.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{ref:y,className:"side-nav__menu-list",children:[v&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:v.top,height:v.height},onPointerDown:E,onPointerMove:g,onPointerUp:A,onPointerCancel:A})}),(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,j)=>t.jsxs(o.Fragment,{children:[B.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(pu,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(N,k,O)=>{if(B.disabled)return;if(B.href){if(cu(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),O)try{k?.blur()}catch{}return}if(s?.(B.key),Wo(x,"SideNav"),!O)return;try{k?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const L=document.querySelector(".header");if(L){const V=typeof L.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&V&&L.matches(":hover"))){L.classList.add("header--force-collapsed");const M=()=>{L.classList.remove("header--force-collapsed"),L.removeEventListener("mouseenter",M)};L.addEventListener("mouseenter",M)}}}})]},B.key??`side-nav__item-${j}`)),b&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&t.jsx(pu,{item:{key:"__mode-switch__",label:f?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:f?"arrow-left":"arrow-right"},onClick:C})]}),t.jsx(N2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d})]})}var Dr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Vo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',E2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function mu({src:e,alt:n,className:a,style:r,tone:s,textColor:l}){const i=!s&&!!l,u=y2(e,i),c="bl"+o.useId().replace(/[^a-zA-Z0-9]/g,"");return s?t.jsx("span",{className:ke("brand-logo","brand-logo--tone",a),role:n?"img":void 0,"aria-label":n||void 0,"aria-hidden":n?void 0:!0,style:{...r,"--brand-logo-src":`url("${e}")`,"--brand-logo-tone":s},children:t.jsx("img",{src:e,alt:"","aria-hidden":"true",className:"brand-logo__sizer",draggable:!1})}):i&&u?t.jsx("span",{className:ke("brand-logo","brand-logo--inline",a),role:n?"img":void 0,"aria-label":n||void 0,"aria-hidden":n?void 0:!0,style:{...r,"--brand-logo-text-color":l},dangerouslySetInnerHTML:{__html:g2(f2(u),c)}}):t.jsx("img",{src:e,alt:n,className:ke("brand-logo",a),style:r,draggable:!1})}function Cu({appMode:e}){const{t:n}=Ee.useTranslation(),a=e==="manager",r=a?Vo:Dr,s=E2;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),a?t.jsx("img",{src:r,alt:n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"}):t.jsx(mu,{src:r,alt:n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),textColor:"var(--color-text-primary)",className:"brand-identity__image brand-identity__image--logo"})]})}function fu({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b,scrollContainer:x}){const{t:f}=Ee.useTranslation(),C=wn("(max-width: 767px)"),y=o.useMemo(()=>(a??[]).filter(L=>!L.section&&(L.key||L.label)).map(L=>({key:L.key,label:typeof L.label=="string"?L.label:void 0,icon:L.icon,state:L.disabled?"disabled":void 0,badgeCount:L.badge})),[a]),v=o.useCallback(L=>{const V=a?.find(M=>M.key===L);if(!V?.disabled){if(V?.href){cu(V.href)&&window.open(V.href,"_blank","noopener,noreferrer");return}n?.(L)}},[a,n]),w=o.useMemo(()=>{const L=[];return i&&L.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),h&&L.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),u&&L.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),p&&L.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:p}),d&&L.push({key:"feedback",icon:"bug",label:f("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d}),c&&L.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:c}),L},[f,i,u,p,h,d,c,l]),_=o.useCallback((L,V)=>({position:"fixed",top:L.bottom+8,right:Math.max(8,window.innerWidth-L.right),zIndex:Ka(V)}),[]),E=o.useId(),{open:g,toggle:A,close:B,style:j,triggerRef:N,menuRef:k}=Ya({computeStyle:_,onScroll:"ignore",onResize:"reposition"}),O=o.useMemo(()=>[{items:w.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===e),closeOnSelect:!0,onClick:()=>{L.onClick?.(),B()}}))}],[w,e,B]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Cu,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:N,children:[t.jsx(be,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?f("nav.badgeInsideLabel",{label:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":g,"aria-controls":g?E:void 0}),!!u&&!!l&&l>0&&t.jsx(Mn,{number:Math.min(l,99),size:24,"aria-hidden":!0}),g&&gn.createPortal(t.jsx("div",{id:E,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:le("tooltip__content"),style:j,ref:k,children:t.jsx(Za,{columns:O,onClose:B})}),document.body)]})]}),t.jsx(hu,{scrollContainer:x,items:a,activeKey:e??void 0,onChange:n,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b}),C&&t.jsx(uu,{items:y,activeKey:e??void 0,onChange:v,scrollContainer:x,appMode:m,onAppModeChange:b})]})}const j2=fu;function cn(e){const{type:n="dot",size:a,className:r="","aria-label":s,"aria-hidden":l,role:i}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&jt("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694."),i&&l&&jt("badge-role-with-hidden",`[ihab/core] Badge \uAC00 role="${i}" \uACFC aria-hidden \uC744 \uD568\uAED8 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC228\uAE34 \uAC83\uC740 \uB0AD\uB3C5\uAE30\uC5D0 \uB07C\uC5B4\uB4E4 \uC218 \uC5C6\uC5B4 \uC544\uBB34\uAC83\uB3C4 \uC548 \uC77D\uD799\uB2C8\uB2E4 \u2014 \uB458 \uC911 \uD558\uB098\uB9CC \uC8FC\uC138\uC694.`);const{label:u,children:c,variant:p="default",fill:h="filled",minWidth:d,iconLeft:m,iconRight:b,color:x}=e,f=n==="bar",C=typeof a=="number"?"medium":a??"medium",y=(f?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[C]??(f?"body-2":"body-2b"),v={small:12,medium:14,large:16}[C]??14,w=ke("badge",f?"badge--bar":"",`badge--${p}`,`badge--${C}`,h!=="filled"?`badge--${h}`:"",y,r),_=x?.startsWith("--")?`var(${x})`:x,E=d!==void 0||_?{...d!==void 0?{minWidth:typeof d=="number"?`${d}px`:d}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:w,style:E,"aria-label":l?void 0:s,role:i??(s&&!l?"img":void 0),"aria-hidden":l||void 0,children:[m&&t.jsx(ut,{icon:m,size:v,className:"badge__icon"}),u??c,b&&t.jsx(ut,{icon:b,size:v,className:"badge__icon"})]})}const D2=()=>nn.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function gu(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return va(`${n.toLocaleString("ko-KR")}\uC6D0`)}return va(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function S2(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function T2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||D2()}function M2(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function bu(e){return{type:e.type??S2(e),plan:T2(e),label:e.label,price:gu(e.price),originalPrice:gu(e.originalPrice),discountLabel:e.discountLabel}}var $2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',L2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',yu='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const sa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},qo=new WeakMap;function R2(e){if(e)return qo.get(e)}function In(e,n){e&&(e.style.setProperty(sa.text,n.text),e.style.setProperty(sa.sub,n.sub),n.copyrightColor&&e.style.setProperty(sa.copyright,n.copyrightColor),qo.set(e,n))}function On(e){e&&(e.style.removeProperty(sa.text),e.style.removeProperty(sa.sub),e.style.removeProperty(sa.copyright),qo.delete(e))}const vu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-text-primary)"};function xu(e={}){const n=Vt(vu,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${yu}")`}})]})}const _u="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",wa=240;var Xa='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const P2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},F2=100,I2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function wu(e={}){const n=Vt(P2,In,On),a="var(--color-main)",r=270,s=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:I2.map(({scale:l,opacity:i},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${l*F2/wa}) translate(${-wa/2} ${-wa/2})`,opacity:i,children:t.jsx("path",{d:_u,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const O2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},z2=100,W2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function H2(e={}){const n=Vt(O2,In,On),a="#ffffff",r=270,s=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:W2.map(({scale:l,opacity:i},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${l*z2/wa}) translate(${-wa/2} ${-wa/2})`,opacity:i,children:t.jsx("path",{d:_u,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${yu}")`}})]})}const V2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function q2(e={}){const n=Vt(V2,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const U2={Logo_SpeechEar_ko:{"":Dr,_mono:$2},Logo_SpeechEarManager_ko:{"":Vo,_mono:L2}};function G2(e,n){if(e)return U2[e]?.[n??""]??void 0}const K2={speechear:Dr,manager:Vo},Y2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},Bu=10;function Z2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function ku(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function X2(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===nn.t("passCard.specialLabel");return r?t.jsx(q2,{}):s?t.jsx(H2,{}):t.jsx(wu,{})}return t.jsx(xu,{})}function Au({ariaLabel:e,product:n,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:p,bgOnly:h=!1,textColor:d,subColor:m,copyrightColor:b,logoSrc:x,label:f,price:C,originalPrice:y,discountLabel:v,onUse:w,onRefund:_,onDelete:E}){const{t:g}=Ee.useTranslation(),A=n?bu(n):void 0,B=s??A?.type??"speechear",j=r??A?.plan??g("passCard.planSuffix","\uC774\uC6A9\uAD8C"),N=f??A?.label,k=C??(a?A?.price:void 0),O=y??(a?A?.originalPrice:void 0),L=v??A?.discountLabel,V=o.useMemo(()=>{if(k)return null;const z=n?.durationDays??M2(n?.code);if(!z||z<=0)return i!=null?{percent:null,remainingLabel:ku(i,g)}:null;const F=z*86400;let G;if(i!=null)G=i;else if((c==="active"||c==="expired")&&l){const ae=new Date(l).getTime();if(Number.isNaN(ae))return null;const _e=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),$e=/^(\d{4})-(\d{2})-(\d{2})/.exec(qa()),Le=Math.round(_e&&$e?(Date.UTC(+_e[1],+_e[2]-1,+_e[3])-Date.UTC(+$e[1],+$e[2]-1,+$e[3]))/864e5:(ae-Date.now())/864e5);G=Math.max(0,u?Le+1:Le)*86400}else c==="expired"?G=0:G=F;const ce=Z2(G),me=Math.max(0,Math.min(100,Math.floor(Math.min(ce,F)/F*100)));return c==="pending"&&me>=100?null:{percent:me,remainingLabel:c==="expired"?g("passCard.expired","\uB9CC\uB8CC\uB428"):ku(G,g)}},[k,c,l,i,u,n?.durationDays,n?.code,g]),M=o.useRef(null),[I,R]=o.useState({}),[q,U]=o.useState(null),se=!!(w||_||E),te=o.useRef(!1),P=o.useRef(void 0),[J,ee]=o.useState(x);o.useLayoutEffect(()=>{ee(x)},[x]),o.useLayoutEffect(()=>{const z=M.current;z&&(d!==void 0&&z.style.setProperty("--pass-card-text",d),m!==void 0&&z.style.setProperty("--pass-card-sub",m),b!==void 0&&z.style.setProperty("--pass-card-copyright",b))},[d,m,b]),o.useLayoutEffect(()=>{const z=M.current;if(!z)return;const F=R2(z);if(!x){const G=Y2[B],ce=c==="expired"?"_mono":F?.logoColor??"",me=G2(G,ce);ee(me)}},[p,x,B,c]);const W=z=>{const F=M.current;if(!F)return null;const{left:G,top:ce,width:me,height:ae}=F.getBoundingClientRect(),_e=(z.clientX-G)/me-.5;return{rotateX:-((z.clientY-ce)/ae-.5)*Bu,rotateY:_e*Bu}},$=(z,F)=>{const G=F*-.7,ce=z*.7+10,me=20+(Math.abs(z)+Math.abs(F))*.4;return`${G}px ${ce}px ${me}px rgba(0, 0, 0, 0.18)`},D=o.useCallback(z=>{if(ra())return;te.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{te.current=!1},200);const F=W(z);F&&R({transform:`perspective(800px) rotateX(${F.rotateX}deg) rotateY(${F.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(F.rotateX,F.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),S=o.useCallback(z=>{if(ra())return;const F=W(z);if(!F)return;const G=te.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";R({transform:`perspective(800px) rotateX(${F.rotateX}deg) rotateY(${F.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(F.rotateX,F.rotateY),transition:G})},[]),H=o.useCallback(()=>{clearTimeout(P.current),te.current=!1,R({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),ne=o.useCallback(()=>U(null),[]),re=o.useMemo(()=>{const z=g("passCard.planSuffix","\uC774\uC6A9\uAD8C"),F=j.replace("\uC774\uC6A9\uAD8C","").replace(z==="\uC774\uC6A9\uAD8C"?"":z,"").trim(),G=F.match(/^(.*?)(일|년)$/);return G?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:G[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:G[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:F})},[j,g]),K=o.useMemo(()=>{const z=va(k);if(!z)return null;const F=z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!F)return t.jsx("span",{className:"h1",children:z});const[,G,ce,me]=F;return t.jsxs(t.Fragment,{children:[G&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:G}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ce}),me.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:me.trim()})]})},[k]),ie=o.useCallback(()=>{se&&U(z=>{if(z)return null;const F=M.current?.getBoundingClientRect();if(!F)return null;const G=50;return{left:F.left,right:F.right,width:F.width,height:F.height,x:F.x,y:F.y+G,top:F.top+G,bottom:F.bottom+G}})},[se]),Y=o.useCallback(z=>{se&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),ie())},[se,ie]),de=[{items:[...w?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),U(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),U(null)},closeOnSelect:!0}]:[],...E?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{E(),U(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${se?" pass-card--clickable":""}`,style:I,onMouseEnter:D,onMouseMove:S,onMouseLeave:H,onPointerUp:z=>{z.pointerType==="touch"&&H()},onPointerCancel:z=>{z.pointerType==="touch"&&H()},onClick:ie,onKeyDown:se?Y:void 0,role:se?"button":void 0,tabIndex:se?0:void 0,"aria-label":e,"aria-haspopup":se?"menu":void 0,"aria-expanded":se?!!q:void 0,children:[p??X2(B,j,N),!h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:J??K2[B],className:"pass-card__logo",alt:B==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:re}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?g("passCard.labeledPlan",{label:N}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[L&&t.jsx("span",{className:"pass-card__discount body-3",children:L}),t.jsxs("div",{className:"pass-card__price",children:[O&&t.jsx("span",{className:"pass-card__price-original body-3",children:va(O)}),K]})]}):V?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:V.remainingLabel}),V.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:V.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),q&&t.jsx(En,{anchorRect:q,onClose:ne,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Za,{columns:de,onClose:ne,size:"small"})})]})}const J2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-text-primary)"};function Q2(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=Vt(J2,In,On);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const ev={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function tv(e={}){const n=Vt(ev,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}function nv(e,n){if(e){if(n==="manager_pro")return t.jsx(tv,{});if(n==="manager_standard")return t.jsx(Q2,{});if(n==="manager_lite")return t.jsx(wu,{})}}function av(e){const n=va(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,l]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function rv(e){const{t:n}=Ee.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u,titleLevel:c=3}=e||{},p=c?`h${c}`:"div",h=g=>!!g&&!!u?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),m=(s.tiers||[]).some(g=>d(g)&&h(g.code)),b=g=>{const A=g.prices?g.prices[i]:g.price;return A?(s.tiers||[]).some(B=>!!B.badge&&B.originals?.[i]===A):!1},x=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",f=n("payment.plan.freePrice","\uBB34\uB8CC"),C=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),y=g=>g.prices?g.prices[i]:g.price,v=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const A=y(g);return A==="\uBB34\uB8CC"||A===f||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),w=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const A=y(g);return A==="\uBB38\uC758"||A===C}),_=s.group==="org",E=_?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:x,"--plan-color":x},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(cn,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:x},children:s.quote||"\xA0"}),t.jsx(p,{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(ut,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:x}}),g]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(ut,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:x}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:w?t.jsx(be,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(g=>{const A=g.label||a,B=d(g),j=B||g.openPromo===!0,N=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[i]:g.price,O=g.badge?j?`${r}
|
|
827
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Zb={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Xb={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Jb={clearAriaLabel:"Clear input"},Qb={ariaLabel:"Select tab"},ey={ariaLabel:"Tabs"},ty={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},ny={ariaLabel:"User avatar"},ay={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},ry={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},oy={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},sy={steps:"Step {{current}} of {{total}}"},ly={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},iy={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},uy={viewWords:"Words"},cy={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},dy={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},py={previewRegion:"Report preview \u2014 scrollable sideways"},hy={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},my={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Cy={clearSelection:"Clear selection"},fy={showResult:"Show {{type}} result"},gy={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},by={loading:"Loading"},yy={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},vy={ariaLabel:"Breadcrumb"},xy={empty:"No items yet."},_y={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},wy={common:_b,calendar:wb,passCard:Bb,rating:kb,colorPicker:Ab,dropdown:Nb,accordion:Eb,header:jb,nav:Db,settings:Sb,usage:Tb,account:Mb,training:$b,customers:Lb,payment:Rb,coupons:Pb,visits:Fb,trainingType:Ib,myWordTable:Ob,keyWords:zb,wordTable:Wb,wordSearch:Hb,wordPrint:Vb,topic:qb,device:Ub,manager:Gb,wordPairs:Kb,footer:Yb,date:Zb,wordData:Xb,textField:Jb,segmentedControl:Qb,tabs:ey,fileUpload:ty,avatar:ny,myHomework:ay,trainingStatus:ry,store:oy,progress:sy,trainingMiss:ly,table:iy,wordScore:uy,topBanner:cy,datePicker:dy,report:py,tooltip:hy,phonemeProfile:my,bulkBar:Cy,debug:fy,badge:gy,loader:by,soundCompass:yy,breadcrumb:vy,board:xy,promoBannerBg:_y};const By="0.430.0",ky=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Eo="ko",Ay="ihab_display_language";function di(){if(typeof window>"u")return Eo;try{const e=localStorage.getItem(Ay);if(e&&ky.some(n=>n.code===e))return e}catch{}return Eo}function pi(e){try{document.documentElement.lang=e}catch{}}nn.on("languageChanged",pi),pi(di()),nn.use(Ee.initReactI18next).init({resources:{ko:{translation:xb},en:{translation:wy}},lng:di(),fallbackLng:Eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Ny=99,Ey=new Map;try{nn.store?.on?.("added",()=>Ey.clear())}catch{}Array.from({length:Ny},(e,n)=>n+1);let xr=null,hi=null,mi=null;function jy(){const e=ei();if(e&&e.entries.length>0){const n=If();if(xr&&hi===e&&mi===n)return xr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return xr=r,hi=e,mi=n,xr}return[]}new Proxy([],{get(e,n){const a=jy(),r=a[n];return typeof r=="function"?r.bind(a):r}});function Dy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function Sy(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&Dy(r.attrValue)&&(r.keepAttr=!1)};ga.addHook("uponSanitizeAttribute",n);try{return ga.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{ga.removeHook("uponSanitizeAttribute",n)}}function Ty(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[p,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Co(e):/^(Logo|Symbol)/i.test(d)?m=Co(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let d=!1;async function m(){try{let b=await fetch(r);b.ok||(b=await fetch(r));const x=b.headers.get("content-type")||"";if(d)return;if(x.includes("svg")){i("mask");return}if(x.startsWith("image/")){i("img");return}const f=await fetch(r);if(!f.ok)throw new Error("not ok");const C=await f.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const y=Sy(C);if(!y){i("none");return}c(y),i("inline");return}i("none")}catch{d||i("none")}}return m(),()=>{d=!0}},[r]),o.useEffect(()=>{let d=!1,m=null;return l==="mask"&&r&&fetch(r).then(b=>{if(!b.ok)throw new Error("fetch failed");return b.blob()}).then(b=>{d||(m=URL.createObjectURL(b),h(m))}).catch(()=>{d||i("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),n===e?{iconToUse:r,mode:l,svgText:u,blobUrl:p}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function ut(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},p=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",d=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",b=typeof n=="string"?n:null,x=bC(b),{iconToUse:f,mode:C,svgText:y,blobUrl:v}=Ty(b),w=(B,j={})=>t.jsx("span",{className:p,style:u,...j,children:B}),_=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,E=(B,j={})=>t.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...j,style:_?{...j.style,..._}:j.style});if(!n)return null;if(typeof n!="string")return w(n);if(n==="none")return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(x)try{return w(o.createElement(x,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(C==="mask"){const B={"--icon-url":v?`url(${v})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(t.jsx("span",{className:d,style:B}),{"aria-hidden":"true"})}return C==="img"?w(E(f,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):C==="inline"?w(t.jsx("span",{className:m,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return E(Co(n),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const g=typeof c=="number"?c:20,A=`<svg width="${g}" height="${g}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function Ci(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:n,press:l}}function My({icon:e,title:n,message:a,action:r,className:s}){const{pending:l,press:i}=Ci(r?.onClick);return t.jsxs("div",{className:ke("empty-state",s),children:[e&&t.jsx(ut,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&t.jsx(ut,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function $y({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=Ee.useTranslation(),{pending:u,press:c}=Ci(r);return t.jsxs("div",{className:ke("empty-state","error-state",l),role:"alert",children:[t.jsx(ut,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"error-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[t.jsx(ut,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function Ly({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),p=`${c}-title`,h=`${c}-desc`,d=`${c}-cta`,m=()=>{l||i?.()};return t.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":p,"aria-describedby":`${h} ${d}`,onClick:m,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},className:ke("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(ut,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:p,className:"action-card__title",children:n}),t.jsx("p",{id:h,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:d,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(ut,{icon:"arrow-right",size:18})})]})]})})}function Ry({as:e="div",className:n="",children:a,storage:r,...s}){r&&of({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const l=ke("ihabdevteam-core-scope",n);return t.jsx(e,{className:l,...s,children:a})}function Py(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let n=e;n;n=n.parentElement){const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function jo(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(Tn)).filter(Py);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,p=c===a;s.shiftKey&&(c===i||p)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Tn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Do=new WeakMap;function So(e,n){e&&Do.set(e,n)}function To(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Do.has(r);)r=r.parentElement;if(!r)return n;n=Do.get(r)??null}return n}function fi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function _r(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(fi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(Tn)).filter(c=>!(e&&e.contains(c))&&fi(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function Fy({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=Ee.useTranslation(),[c,p]=o.useState(!1),h=o.useRef(null),d=o.useCallback(()=>{const f=h.current;f&&f.contains(document.activeElement)&&_r(f),p(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),b=l&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:d,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:m,role:"note",children:[a.map((f,C)=>t.jsxs("div",{className:"notice-box__inner",children:[f.title?t.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,t.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?t.jsx("div",{children:f.lines.map((y,v)=>t.jsx("span",{className:"notice-box__line body-3",children:y},v))}):f.children??null})]},C)),b]});const x=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((f,C)=>t.jsx("li",{className:"notice-box__line",children:f},C))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:h,className:m,role:"note",children:[x,b]})}const Iy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function xa(e){const{t:n}=Ee.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||n("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),p=c?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:p,"aria-label":i,children:t.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${p}%`}})})}const u=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[t.jsx("span",{style:Iy,children:i}),t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const _a=[];let wr=!1;function gi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=_a[_a.length-1];n&&(e.stopPropagation(),n())}function aa(e){return _a.push(e),!wr&&typeof document<"u"&&(document.addEventListener("keydown",gi),wr=!0),()=>{const n=_a.lastIndexOf(e);n>=0&&_a.splice(n,1),_a.length===0&&wr&&typeof document<"u"&&(document.removeEventListener("keydown",gi),wr=!1)}}const bi=o.createContext(null);function Oy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const yi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function zy(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ys.useSyncExternalStore(n,()=>yi(e),()=>!1)}function Wy(e){const[n,a]=o.useState(yi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),n}const Hy=typeof Ys.useSyncExternalStore=="function"?zy:Wy;function wn(e){const n=o.useContext(bi),a=Hy(e);return n&&typeof n.mobile=="boolean"&&Oy(e)?n.mobile:a}const Vy="(prefers-reduced-motion: reduce)";function Br(){return wn(Vy)}const vi={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar"};function qy(e,n){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!n.startsWith(r))continue;const s=n.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function Uy(e){return qy(vi,e)}function le(e){if(!e||Object.keys(vi).length===0)return e;const n=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=Uy(a);r&&n.push(r)}return n.length?`${e} ${n.join(" ")}`:e}function En(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:p="",children:h,backdrop:d=!1,isMobilePopup:m=!1,useBorder:b=!0,header:x,focusOnOpen:f}=e||{},C=o.useRef(null),[y,v]=o.useState({position:"fixed",left:0,top:-9999}),[w,_]=o.useState(!1),[E,g]=o.useState("bottom"),[A,B]=o.useState(!1),[j,N]=o.useState(!1),k=!n&&!a,O=o.useRef(null),L=o.useCallback((P=!1,J=!1)=>{if(j&&m)return;const ee=a?a.getBoundingClientRect():n,W=J&&O.current?O.current:ee;if(!W||!C.current)return;const $=C.current,{offsetWidth:D,offsetHeight:S}=$,H=window.innerWidth,ne=window.innerHeight,re=H-W.right,K=W.left,ie=W.top,Y=ne-W.bottom;let de=0,z=0,F="top";if(ie>=S+r)F="top",z=W.top-r-S,de=W.left+W.width/2-D/2;else if(Y>=S+r)F="bottom",z=W.bottom+r,de=W.left+W.width/2-D/2;else if(re>=D+r)F="right",de=W.right+r,z=W.top+W.height/2-S/2;else if(K>=D+r)F="left",de=W.left-r-D,z=W.top+W.height/2-S/2;else{const ae=Math.max(ie,Y,re,K);ae===ie?(F="top",z=W.top-r-S,de=W.left+W.width/2-D/2):ae===Y?(F="bottom",z=W.bottom+r,de=W.left+W.width/2-D/2):ae===re?(F="right",de=W.right+r,z=W.top+W.height/2-S/2):(F="left",de=W.left-r-D,z=W.top+W.height/2-S/2)}const G=Number.isFinite(Number(s))?Number(s):8;de=Math.min(Math.max(de,G),H-D-G),z=Math.min(Math.max(z,G),ne-S-G);const ce=Math.round(de),me=Math.round(z);P&&C.current?(C.current.style.left=`${ce}px`,C.current.style.top=`${me}px`,C.current.dataset.placement=F):(g(F||E),v({position:"fixed",left:ce,top:me}),B(!0))},[j,m,a,n,r,s,E]);o.useEffect(()=>()=>{O.current=null},[a,n]),o.useLayoutEffect(()=>{if(k)return;if(j&&m){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}O.current===null&&(O.current=a?a.getBoundingClientRect():n??null),L(!1,!0);const P=requestAnimationFrame(()=>L(!1,!0));return()=>cancelAnimationFrame(P)},[n,a,r,h,s,k,j,m,L]),o.useEffect(()=>{if(k||j&&m||!C.current||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{n&&L()});return P.observe(C.current),()=>P.disconnect()},[n,h,s,k,j,m,L]),o.useEffect(()=>{if(k||j&&m)return;let P=null;const J=()=>{if(a&&(O.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){L(!0);return}P===null&&(P=requestAnimationFrame(()=>{P=null,L(!0)}))},ee=W=>{if(!a&&l){const $=W.target;if($&&C.current&&C.current.contains($))return;try{if($&&$.closest&&$.closest("[data-tooltip-ignore]"))return}catch{}q.current(!0);return}J()};return window.addEventListener("resize",J),document.addEventListener("scroll",ee,{passive:!0,capture:!0}),()=>{P!==null&&cancelAnimationFrame(P),window.removeEventListener("resize",J),document.removeEventListener("scroll",ee,{capture:!0})}},[n,a,l,r,h,s,k,j,m,L]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(max-width: 768px)"),J=()=>N(!!P.matches);J();try{P.addEventListener?P.addEventListener("change",J):P.addListener(J)}catch{try{P.addListener(J)}catch{}}return()=>{try{P.removeEventListener?P.removeEventListener("change",J):P.removeListener(J)}catch{}}},[]);const V=o.useRef(!1),M=o.useRef(null),I=Br(),R=o.useCallback((P=!1)=>{if(l&&!(w||V.current)){if(V.current=!0,P){_(!0);try{l&&l()}catch{V.current=!1,_(!1)}return}_(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{V.current=!1,_(!1)}},I?0:200)}},[w,l,_,I]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(k)return;const P=W=>{const $=C.current;if(!$)return;const D=W.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}i&&R(!0)}},J=W=>{const $=C.current;if(!$)return;const D=W.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}i&&R(!0)}},ee=W=>{if(W.key==="Tab"){const $=C.current;if(!$)return;const D=$.querySelectorAll(Tn);if(!D||D.length===0)return;const S=D[0],H=D[D.length-1],ne=document.activeElement;W.shiftKey?ne===S&&(W.preventDefault(),H.focus()):ne===H&&(W.preventDefault(),S.focus())}};return document.addEventListener("pointerdown",P,!0),document.addEventListener("click",J,!0),document.addEventListener("keydown",ee),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("click",J,!0),document.removeEventListener("keydown",ee)}},[l,i,R,k]);const q=o.useRef(R);o.useEffect(()=>{q.current=R});const U=!!l;o.useEffect(()=>{if(!(k||!U))return aa(()=>q.current())},[k,U]),o.useEffect(()=>{const P=()=>{R(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",P),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",P)}},[R]);const se=o.useRef(null);o.useEffect(()=>{if(k||f===!1||!A)return;const P=C.current;if(!P)return;const J=P.querySelector(Tn);if(J)return se.current=document.activeElement,J.focus({preventScroll:!0}),()=>{const ee=se.current;se.current=null,ee&&document.contains(ee)&&ee.focus({preventScroll:!0})}},[k,f,A]),o.useEffect(()=>{c==="dialog"&&!p&&jt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,p]);const te=t.jsxs("div",{ref:C,className:le(`tooltip__content ${k?"tooltip__content--inline":""} ${b?"tooltip__content--bordered":""} ${w?"is-closing":""} ${u} ${j&&m?"is-mobile":""}`),role:c,"aria-label":p||void 0,style:k?{}:{...y,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":E,"data-left":k?"":y.left,"data-top":k?"":y.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[x!=null&&t.jsx("div",{className:le("tooltip__header h5"),children:x}),h]});if(k||typeof document>"u")return te;if(d||j&&m){const P=t.jsxs("div",{className:le("tooltip__portal"),children:[t.jsx("div",{className:le("tooltip__backdrop"),onClick:()=>{i&&R(!0)}}),te]});return gn.createPortal(P,document.body)}return gn.createPortal(te,document.body)}function Pn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?t.jsx(En,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:le(`info-tooltip ${l}`),ariaLabel:i||a,children:t.jsx("div",{className:le("info-tooltip__content body-3"),children:a})}):null}function Yn(e){const{t:n}=Ee.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:p=!0,columns:h}=e||{},d=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!d.length&&!r?null:t.jsx(En,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:p,useBorder:!1,className:le("description-tooltip"),ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:le("description-tooltip__box"),children:[r&&t.jsx("span",{className:le("description-tooltip__title body-2"),children:r}),t.jsx("ol",{className:le(`description-tooltip__items${h&&h>1?" description-tooltip__items--columns":""}`),style:h&&h>1?{columnCount:h}:void 0,children:d.map((m,b)=>t.jsxs("li",{className:le(`description-tooltip__item body-3${b===l?" description-tooltip__item--active":""}`),children:[i&&d.length>1&&t.jsxs("span",{className:le("description-tooltip__index button-1"),children:[b+1,"."]}),m.color&&t.jsx("span",{className:le("description-tooltip__dot"),style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},b))})]})})}function Ua(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let Mo=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Mo=Date.now())},!0),document.addEventListener("touchstart",()=>{Mo=Date.now()},{capture:!0,passive:!0}))}_i();function Zn(e){return!!e&&e.pointerType==="touch"}function ra(e=1e3){return _i(),Date.now()-Mo<e}function kr(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ua(e),i=Ua(n),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=d=>{const m=d,b=d.target,x=a.current,f=!!(b&&x&&x.contains(b));if(m.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=l.current;return}u.current=null,l.current&&!(b&&b.closest?.(".tooltip__content"))&&i.current(!1,x)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const p=o.useCallback(h=>{const d=u.current;return d===null?!1:(u.current=null,c.current=Date.now(),i.current(!d,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,d=h?.parentElement;if(!h||!d)return;let m=null;const b=C=>{const y=C.changedTouches?.[0];if(!y)return!1;const v=h.getBoundingClientRect();return y.clientX>=v.left&&y.clientX<=v.right&&y.clientY>=v.top&&y.clientY<=v.bottom},x=C=>{m=b(C)?l.current:null},f=C=>{const y=m;m=null,!(y===null||Date.now()-c.current<700||!b(C))&&(u.current=null,c.current=Date.now(),i.current(!y,h))};return d.addEventListener("touchstart",x,{passive:!0}),d.addEventListener("touchend",f),()=>{d.removeEventListener("touchstart",x),d.removeEventListener("touchend",f)}},[r,s,a,l,i]),{touchPress:p}}function Gy(e,n){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:p,label:h,count:d,subLabel:m,children:b,ariaLabel:x,variant:f="default",align:C="center",nowrap:y=!1,ellipsis:v=!1,selected:w,toggleable:_=!1,ariaExpanded:E,ariaControls:g,disabled:A=!1,loading:B=!1,useLabel:j=!0,useBorder:N=!0,useBG:k=!0,useDisabledCovered:O=!1,useDisabledInvisible:L=!1,useDisabledFilled:V=!1,width:M,minWidth:I,onClick:R,onDisabledClick:q,showTooltipInfo:U=!1,tooltipInfoText:se=null,tooltipDescription:te=null,tooltipOnly:P=!1,iconSize:J="medium",iconColor:ee,shape:W="rounded",color:$,className:D,...S}=e,H=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),ne=H.match(/^\d+$/)?`button${H}`:`button-${H}`,re=Number(a),K=!isNaN(re)&&re<40?"button-2":"button-1",ie=h??b,Y=A||!!S.disabled,de=Y?O?"disabled-covered":L?"disabled-invisibled":V?"disabled-filled":"disabled":f,z=de?`button--variant-${de}`:"",F=C?`button--align-${C}`:"",G=y?"button--nowrap":"",ce=v?"button--ellipsis":"",me=W?`button--shape-${W}`:"",ae=typeof ee=="string"&&ee.startsWith("--")?`var(${ee})`:ee,_e={...M?{width:typeof M=="number"?`${M}px`:M}:{},...I?{minWidth:typeof I=="number"?`${I}px`:I}:{},...N?{}:{"--button-border":Y?"0":"1px solid transparent"},...ae?{"--button-icon-color":ae}:{},...$?{"--color-main":$}:{}},$e=j===!1?"":ie,Le=Array.isArray($e)?$e.length>0:!!$e,je=!!p,ve=r??(Le||c||je?"bar":"dot"),we=`${ne}--${ve}`,he=o.useRef(null);o.useEffect(()=>{!qn||s!==void 0||he.current?.closest("form")&&jt(`button-in-form:${typeof ie=="string"?ie:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof ie=="string"&&ie?` \uB2E8\uCD94: ${ie}`:""))},[s,ie]);const Ae=o.useRef(n);Ae.current=n;const Ge=o.useCallback(Ve=>{he.current=Ve;const st=Ae.current;typeof st=="function"?st(Ve):st&&(st.current=Ve)},[]),We=o.useRef(Y),[dt,ht]=o.useState(!!w),[Pe,Ce]=o.useState(!1),[ze,Be]=o.useState(null),He=o.useCallback(()=>Ce(!1),[]),[tt,lt]=o.useState(!1),gt=o.useId();o.useEffect(()=>{typeof w=="boolean"&&ht(w)},[w]),o.useEffect(()=>{if(We.current&&!Y&&he.current){const Ve=he.current;let st=!1;try{st=Ve.matches(":focus:not(:focus-visible)")}catch{st=!1}st&&Ve.blur(),Ve.style.pointerEvents="none";const wt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{he.current&&(he.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(wt)}We.current=Y},[Y]);const bt=typeof w=="boolean"?!!w:dt,mt=typeof E=="boolean"?void 0:_||typeof w=="boolean"?bt?"true":"false":S["aria-pressed"],it=ke("button",ne,we,z,F,G,ce,me,bt?"is-selected":null,k?null:"button--no-bg",P?"button--tooltip-only":null,D),ot=`button__icon button__icon--${J}`,Dt=Array.isArray(m)?m:m!==void 0?[m]:[],At=()=>{if(Array.isArray($e))return $e.map((st,wt)=>{const Ht=Dt[wt];return t.jsxs("span",{className:`button__label-text${Ht!==void 0?" button__label-text--has-sub":""}`,children:[st,Ht!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ht})]},wt)});const Ve=m!==void 0;return t.jsxs("span",{className:`button__label-text${Ve?" button__label-text--has-sub":""}`,children:[$e,d!=null&&t.jsx("span",{className:"button__count",children:d}),Ve&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},Ot=Ve=>{typeof w!="boolean"&&!_&&ht(!1),Ve.currentTarget.blur()},Jt=Ve=>{Y||(typeof S.onMouseLeave=="function"&&S.onMouseLeave(Ve),Ot(Ve))},Tt=Ve=>{if(P&&zt&&Wt.touchPress(Ve.currentTarget),Y){zt&&Wt.touchPress(Ve.currentTarget),Ve.preventDefault(),q?.(Ve);return}typeof w!="boolean"&&_&&ht(st=>!st),R?.(Ve)},ft=o.useCallback(()=>{(U||te)&&(Ce(!0),Be(he.current?.getBoundingClientRect()??null))},[U,te]),yt=o.useCallback(()=>{(U||te)&&(Ce(!1),Be(null))},[U,te]),zt=!!(U||te),Wt=kr(Pe,Ve=>{Ve?ft():yt()},he,{enabled:zt&&(Y||P),fallbackOnParent:zt&&Y}),Qe={...S};delete Qe.disabled,delete Qe.className,delete Qe.faded,delete Qe.useFaded,delete Qe.loading,delete Qe.onMouseLeave,delete Qe.onPointerEnter,delete Qe.onPointerLeave,delete Qe.onPointerUp,delete Qe.onFocus,delete Qe.onBlur,Y&&(Object.keys(Qe).forEach(Ve=>{/^on[A-Z]/.test(Ve)&&typeof Qe[Ve]=="function"&&delete Qe[Ve]}),Qe["aria-disabled"]="true"),B&&(Qe["aria-busy"]="true");const Nt=(typeof U=="string"?U:null)??(typeof se=="string"?se:null)??(typeof x=="string"?x:null)??(typeof ie=="string"?ie:null)??void 0,Je=typeof x=="string"?x:typeof ie=="string"?ie:Nt,kt=te?[te.title,...te.items??[]].filter(Boolean).join(". "):U&&Nt&&Nt!==Je?Nt:"",Gt=[typeof S["aria-describedby"]=="string"?S["aria-describedby"]:void 0,kt?gt:null].filter(Boolean).join(" ")||void 0,ge=()=>t.jsx("span",{className:`${ot} button__spinner`,"aria-hidden":"true",children:t.jsx(xa,{variant:"spinner",size:"100%"})}),Se=(Ve,st)=>t.jsx(ut,{icon:Ve,label:st??Je,className:ot,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Me=Ve=>B?ge():Se(c,Ve),Ye=()=>ve==="dot"?t.jsxs(t.Fragment,{children:[Me(),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()})]}):C==="center"&&(c||B)?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Me()}),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()})]}),je&&t.jsx("span",{className:"button__right",children:Se(p)})]}):t.jsxs(t.Fragment,{children:[(c||B)&&t.jsx("span",{className:"button__left",children:Me(x??ie)}),Le&&t.jsx("span",{className:`button__label ${K}`,children:At()}),je&&t.jsx("span",{className:"button__right",children:Se(p)})]}),Ct=!!l&&!Y;return t.jsxs(t.Fragment,{children:[t.jsxs(Ct?"a":"button",{...Qe,ref:Ge,...Ct?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:Y&&!q&&!tt},className:it,"aria-pressed":mt,"aria-expanded":typeof E=="boolean"?E:S["aria-expanded"],"aria-controls":g??S["aria-controls"],"aria-label":Je,"aria-disabled":Y&&(Ct||q||tt)?!0:void 0,"aria-describedby":Gt,style:_e,onClick:Tt,onMouseLeave:Jt,onPointerEnter:Ve=>{Zn(Ve)||ft(),!Y&&typeof S.onPointerEnter=="function"&&S.onPointerEnter(Ve)},onPointerLeave:Ve=>{Zn(Ve)||yt(),!Y&&typeof S.onPointerLeave=="function"&&S.onPointerLeave(Ve)},onPointerUp:Ve=>{Y&&zt&&Wt.touchPress(Ve.currentTarget),!Y&&typeof S.onPointerUp=="function"&&S.onPointerUp(Ve)},onFocus:Ve=>{lt(!0),ra()||ft(),!Y&&typeof S.onFocus=="function"&&S.onFocus(Ve)},onBlur:Ve=>{lt(!1),Y||Ot(Ve),yt(),!Y&&typeof S.onBlur=="function"&&S.onBlur(Ve)},children:[Ye(),kt?t.jsx("span",{id:gt,hidden:!0,"aria-label":kt}):null]}),Pe&&te?t.jsx(Yn,{anchorRect:ze,title:te.title,items:te.items,onClose:He}):Pe&&Nt?t.jsx(Pn,{anchorRect:ze,text:Nt,onClose:He}):null]})}const be=o.forwardRef(Gy);be.displayName="Button";function Vt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const Ga={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},$o=new WeakMap;function Lo(e){if(e)return $o.get(e)}function ln(e,n){e&&(e.style.setProperty(Ga.title,n.title),e.style.setProperty(Ga.description,n.description),$o.set(e,n))}function un(e){e&&(e.style.removeProperty(Ga.title),e.style.removeProperty(Ga.description),$o.delete(e))}const wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Bi(){const e=Vt(wi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const ki={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ai(){const e=Vt(ki,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ni={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ei(){const e=Vt(Ni,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=Vt(ji,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Si={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ti(){const e=Vt(Si,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Mi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $i(){const e=Vt(Mi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Li={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ri(){const e=Vt(Li,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fi(){const e=Vt(Pi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ii={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Oi(){const e=Vt(Ii,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const zi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=Vt(zi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Hi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=Vt(Hi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const qi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ui(){const e=Vt(qi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Gi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ki(){const e=Vt(Gi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Zi(){const e=Vt(Yi,ln,un);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const mn=(e,n,a)=>({key:e,get label(){return nn.t(`promoBannerBg.${e}`,n)},textTone:a}),Ky=[mn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("soft","\uC18C\uD504\uD2B8","dark"),mn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),mn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),mn("warm","\uC6DC(\uAC15\uC870)","dark"),mn("dark","\uB2E4\uD06C","light"),mn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),mn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),mn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),mn("outline","\uC544\uC6C3\uB77C\uC778","dark"),mn("success","\uC131\uACF5/\uC644\uB8CC","light"),mn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),mn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Xi={main:Bi,soft:Ai,sub:Ei,deep:Di,softSub:Ti,warm:$i,dark:Ri,radial:Fi,diagonal:Oi,dots:Wi,outline:Vi,success:Ui,naver:Ki,instagram:Zi};function Ji({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const _=localStorage.getItem(w),E=_?Number(_):1;return Number.isFinite(E)?i(E):i(1)}catch{return i(1)}},[c,p]=o.useState(()=>u(e)),[h,d]=o.useState(e);h!==e&&(d(e),p(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=w=>{p(typeof w=="function"?_=>i(w(_)):i(w))},b=()=>m(w=>+(w+s).toFixed(6)),x=()=>m(w=>+(w-s).toFixed(6)),f=c<r-Number.EPSILON,C=c>a+Number.EPSILON,y=Math.round(n*c),v=Math.round(y*l);return{scale:c,setScale:m,increase:b,decrease:x,canIncrease:f,canDecrease:C,fontSize:y,lineHeight:v}}function Qi(e,n){const a=Ua(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Ro=" \xB7 ",eu=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Ro)?e.split(Ro).pop()??e:e})(),Yy=o.createContext(!1),oa=[];let tu=null;function Zy(e){const n=o.useContext(Yy);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;oa.length===0&&(tu=document.title);const a={text:eu?`${e}${Ro}${eu}`:e};return oa.push(a),document.title=a.text,()=>{const r=oa.lastIndexOf(a);r>=0&&oa.splice(r,1),document.title=oa.length?oa[oa.length-1].text:tu??document.title}},[e,n])}const Po=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],Xy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function vn(e,n){return Xy().compare(e,n)}const Ar=new Map;function Jy(e){const n=Ar.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),Ar.size>5e3&&Ar.clear(),Ar.set(e,a),a}function Qy(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function e2(e,n){const a=p=>p==null||typeof p=="number"&&Number.isNaN(p)?"":String(p).trim(),r=a(e),s=a(n);if(r===s)return 0;const l=(p,h)=>{if(typeof p=="number"&&!Number.isNaN(p))return[p];const d=Qy(h);return d!==null?[d]:Jy(h)},i=l(e,r),u=l(n,s),c=Math.min(i.length,u.length);for(let p=0;p<c;p++){const h=i[p],d=u[p];if(typeof h=="number"&&typeof d=="number"){if(h!==d)return h-d;continue}if(typeof h=="number")return-1;if(typeof d=="number")return 1;const m=vn(h,d);if(m!==0)return m}return i.length!==u.length?i.length-u.length:vn(r,s)}const nu=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Nr(e,n,a){const r=nu(e),s=nu(n);if(r||s)return r===s?0:r?1:-1;const l=e2(e,n);return a?l:-l}function t2(e,n,a){const{t:r}=Ee.useTranslation(),[s,l]=o.useState(()=>{const x=a?.initialPageSize;return x&&Po.some(f=>f.value===x)?x:"25"}),[i,u]=o.useState(1),[c,p]=o.useState(n);Object.is(c,n)||(p(n),i!==1&&u(1));const h=o.useMemo(()=>Po.map(x=>({...x,label:r("visits.showN",{n:x.value})})),[r]),d=o.useCallback(x=>{Po.some(f=>f.value===x)&&(l(x),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),b=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==b&&u(b),{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:h,value:s,onChange:d},paginationProps:{page:b,total:m,onChange:u},setPage:u}}function n2(e){const[n,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const p=r.current,h=p?.key===c?{key:c,asc:!p.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,p)=>({label:c,sortDir:n?.key===p?n.asc?"asc":"desc":null,onClick:()=>l(p)}),[n,l]),u=o.useCallback((c,p)=>{if(!n)return c;const{key:h,asc:d}=n;return[...c].sort((m,b)=>Nr(p(m,h),p(b,h),d))},[n]);return{sort:n,field:i,sortRows:u}}const jn="\uC804\uCCB4",a2={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},r2={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},o2={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function s2(e,n){if("place"in n)return a2[n.place](e);const a=r2[n.vowel](e);return n.glide?`${a} \xB7 ${o2[n.glide](e)}`:a}const l2=(e,{defaultValue:n})=>n,au=(e,n)=>({jamos:e,phonetic:n,tooltip:s2(l2,n)}),Fn=(e,n)=>n.map(a=>au([a],{place:e})),an=(e,n,a)=>au([...e],a?{vowel:n,glide:a}:{vowel:n}),Fo={cho:[Fn("labial",["\u3142","\u3143","\u314D","\u3141"]),Fn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Fn("alveolar",["\u3145","\u3146"]),Fn("palatal",["\u3148","\u3149","\u314A"]),Fn("velar",["\u3131","\u3132","\u314B"]),Fn("glottal",["\u314E"])],jung:[[an("\u3163","frontHigh"),an("\u315F","frontHigh","w"),an("\u3162","frontHigh","velar")],[an("\u3161","backHighUnrounded")],[an("\u315C","backHighRounded"),an("\u3160","backHighRounded","j")],[an("\u3154\u3150","frontMid"),an("\u3156\u3152","frontMid","j"),an("\u3159\u315A\u315E","frontMid","w")],[an("\u3153","backMidUnrounded"),an("\u3155","backMidUnrounded","j"),an("\u315D","backMidUnrounded","w")],[an("\u3157","backMidRounded"),an("\u315B","backMidRounded","j")],[an("\u314F","low"),an("\u3151","low","j"),an("\u3158","low","w")]],jong:[Fn("labial",["\u3142","\u3141"]),Fn("alveolar",["\u3137","\u3134","\u3139"]),Fn("velar",["\u3131","\u3147"])]},i2=e=>e===u2?[]:Array.from(e),u2="__NO_CODA__",Io=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ru={cho:Io(Fo.cho),jung:Io(Fo.jung),jong:Io(Fo.jong)};ru.jung.flat().forEach(({v:e})=>{for(const n of i2(e));}),new Set(ru.cho.flat().map(e=>e.v)),Object.fromEntries(Object.entries(Df).map(([e,{nucleus:n}])=>[e,n]));function c2(e,n=!0){const a=Ua(e);o.useEffect(()=>{if(n)return aa(()=>{a.current?.()})},[n,a])}function Er(){const[e,n]=o.useState(null),a=o.useCallback(l=>n(l.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();n(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function d2(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,p)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(p)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:i,close:u}}function ou(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((d,m)=>{s(m),a(d),i(b=>b+1)},[]),c=o.useCallback(d=>u(d,"warning"),[u]),p=o.useCallback(d=>u(d,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:p,clearToast:h}}function Ka(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function Ya({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),p=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let b=p.current?.offsetHeight??0;b>0&&h();let x=0,f=null;typeof ResizeObserver<"u"&&p.current&&(f=new ResizeObserver(()=>{const A=p.current?.offsetHeight??0;if(A!==b){if(b=A,++x>4){f?.disconnect(),f=null;return}h()}}),f.observe(p.current));const C=A=>{const B=A.target;r&&B.closest?.(r)||c.current?.contains(B)||p.current?.contains(B)||l(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);let y=null;const v=()=>{if(typeof requestAnimationFrame>"u"){h();return}y===null&&(y=requestAnimationFrame(()=>{y=null,h()}))},w=A=>{p.current?.contains(A.target)||(n==="reposition"?v():n==="close"&&l(!1))};n!=="ignore"&&window.addEventListener("scroll",w,!0);const _=()=>{a==="reposition"?v():a==="close"&&l(!1)};let E=null;const g=()=>{_(),E&&clearTimeout(E),E=setTimeout(()=>{E=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",_),window.addEventListener("orientationchange",g)),()=>{y!==null&&cancelAnimationFrame(y),f?.disconnect(),document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",_),window.removeEventListener("orientationchange",g)),E&&clearTimeout(E)}},[s,h,n,a,r]),o.useEffect(()=>{if(s)return aa(()=>l(!1))},[s]);const d=o.useCallback(()=>l(b=>!b),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:d,close:m,style:i,triggerRef:c,menuRef:p}}function p2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[p,h]=o.useState(0),[d,m]=o.useState("idle"),[b,x]=o.useState(null),[f,C]=o.useState([]),[y,v]=o.useState(null),[w,_]=o.useState(0),E=o.useRef(0),g=o.useCallback(P=>{E.current=typeof P=="function"?P(E.current):P,_(E.current)},[]),A=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{A.current=r,B.current=s},[r,s]);const j=o.useRef([]),N=()=>{j.current.forEach(clearTimeout),j.current=[]},k=(P,J)=>{j.current.push(setTimeout(J,P))};o.useEffect(()=>()=>N(),[]);const O=u[p]?.id??null,L=o.useRef(null),V=o.useCallback(()=>{N(),m("playing"),C([]),v(null),g(0);let P=0;e.forEach((J,ee)=>{k(P,()=>{h(ee),x(J.id),A.current?.(J)}),k(P+1e3,()=>{x(null),C(W=>[...W,J.id])}),P+=1300}),k(P,()=>{m("done"),B.current?.({score:0,total:e.length})})},[e,g]),M=o.useCallback((P,J)=>{if(J>=P.length){m("done"),B.current?.({score:E.current,total:P.length});return}L.current=null,h(J),v(null),m("playing"),x(P[J].id),A.current?.(P[J]),k(l,()=>{x(null),m("waiting")})},[l]),I=o.useCallback(()=>{N();const P=Ha(e);c(P),g(0),C([]),M(P,0)},[e,M,g]),R=o.useCallback(()=>{n==="playback"?(c(e),V()):I()},[n,e,V,I]),q=o.useCallback(()=>{N(),m("idle"),x(null),C([]),v(null),h(0),g(0),c([])},[g]),U=JSON.stringify(e.map(P=>[P.id,P.label,P.angleDeg,P.deg,P.row,P.shortcut]));o.useEffect(()=>(a?R():q(),()=>N()),[n,U,a]);const se=o.useCallback(P=>{d!=="waiting"||n==="playback"||L.current===p||(L.current=p,v(P),P===u[p]?.id&&g(J=>J+1),n==="exam"?(m("playing"),k(400,()=>M(u,p+1))):(m("feedback"),k(i,()=>M(u,p+1))))},[d,n,u,p,M,i,g]),te=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:f,selectedId:y,answerId:O,showFeedback:d==="feedback",clickable:d==="waiting",onSelectSpeaker:se},index:p,total:te,score:w,phase:d,done:d==="done",start:R,reset:q}}const Oo=new Map,zo=new Map,h2=()=>()=>{},m2=()=>!0,C2=()=>!1;function su(e){const n=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!n)return null;try{if(!n[1])return decodeURIComponent(n[2]);const a=Uint8Array.from(atob(n[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function f2(e){if(typeof window>"u")return"";const n=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};ga.addHook("uponSanitizeAttribute",n);try{return ga.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{ga.removeHook("uponSanitizeAttribute",n)}}function g2(e,n){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${n}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(p,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function b2(e){const n=zo.get(e);if(n)return n;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Oo.set(e,r),r)).catch(()=>null).finally(()=>{zo.delete(e)});return zo.set(e,a),a}function y2(e,n=!0){const a=o.useSyncExternalStore(h2,m2,C2)&&n&&e?su(e)??Oo.get(e)??null:null,[r,s]=o.useState({src:e,enabled:n,svg:a});return o.useEffect(()=>{if(!n||!e){s({src:e,enabled:n,svg:null});return}const l=su(e)??Oo.get(e)??null;if(l!==null){s({src:e,enabled:n,svg:l});return}let i=!0;return b2(e).then(u=>{i&&s({src:e,enabled:n,svg:u})}),()=>{i=!1}},[e,n]),r.src===e&&r.enabled===n?r.svg:a}function v2({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:p,className:h=""}){const d=s??l??"main",m=o.useRef(null),[b,x]=o.useState("main"),f=wn("(max-width: 767px)"),C=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const _=Lo(w),E=(g,A,B)=>{if(B!==void 0)w.style.setProperty(A,B),C.current[g]=!0;else if(C.current[g]){const j=_?.[g];j?w.style.setProperty(A,j):w.style.removeProperty(A),C.current[g]=!1}};E("title","--promo-banner-bg-title",c),E("description","--promo-banner-bg-description",p)},[c,p,d]),o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const _=Lo(w);x(_?.actionVariant??"main")},[d]);const y=ke("promo-banner",`promo-banner--${i}`,h),v=Xi[d];return t.jsxs("div",{ref:m,className:y,role:"note",children:[t.jsx(v,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(be,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function x2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=Ee.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[p,h]=o.useState(0),[d,m]=o.useState(!1),[b,x]=o.useState(!1),[f,C]=o.useState(!1),y=o.useRef(null),v=o.useRef(null),w=o.useRef(null),_=Br(),E=d||b||f,g=c>0?Math.min(p,c-1):0;o.useEffect(()=>{if(c<2||n<=0||E||_)return;const B=window.setInterval(()=>h(j=>(Math.min(j,c-1)+1)%c),n);return()=>window.clearInterval(B)},[c,n,E,_]);const A=B=>{v.current!=null&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{v.current=null,C(!1)},B)};return o.useEffect(()=>()=>{v.current!=null&&window.clearTimeout(v.current)},[]),o.useEffect(()=>{if(!f)return;const B=j=>{j.pointerType==="touch"&&(w.current&&w.current.contains(j.target)||(v.current!=null&&(window.clearTimeout(v.current),v.current=null),C(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[f]),c===0?null:t.jsxs("section",{ref:w,className:ke("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{y.current=B.pointerType},onPointerDown:B=>{y.current=B.pointerType,B.pointerType==="touch"&&(v.current!=null&&(window.clearTimeout(v.current),v.current=null),C(!0))},onPointerUp:B=>{B.pointerType==="touch"&&A(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{y.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:B=>{let j=!0;try{j=B.target.matches(":focus-visible")}catch{j=!0}x(j)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||x(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:u.map((B,j)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":j!==g,...j!==g?{inert:!0}:{},children:B},j))})}),c>1&&t.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,j)=>t.jsx("button",{type:"button",className:`top-banner__dot${j===g?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:j+1,defaultValue:`${c}\uAC1C \uC911 ${j+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":j===g,onClick:()=>h(j)},j))})]})}function _2({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=Ee.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:p=>{if(p.key==="Enter"||p.key===" ")p.preventDefault(),r?.();else if(p.key==="ArrowDown"||p.key==="ArrowUp"){p.preventDefault();const h=p.currentTarget.closest('[role="list"]');if(!h)return;const d=Array.from(h.querySelectorAll("[data-accordion-header]")),m=d.indexOf(p.currentTarget);(p.key==="ArrowDown"?d[m+1]:d[m-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${l}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(ut,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${i}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function w2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:n}),u=(c,p)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&p===l.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,p)=>t.jsx(_2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,p),onToggle:()=>i(u(c,p)?{index:-1}:{index:p,id:c.id}),bodyClassName:s},c.id??p))})}function B2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function k2(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function A2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function Mn({children:e,icon:n,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:p=""}){const{t:h}=Ee.useTranslation(),d=n??"check",m=a!==void 0,b=e!==void 0||m?"number":d,x=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[d],f=c?void 0:u??x;return t.jsxs("span",{className:ke("circle-badge",`circle-badge--${b}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",p),onClick:i,onKeyDown:i?C=>{C.key!=="Enter"&&C.key!==" "||(C.preventDefault(),C.currentTarget.click())}:void 0,"aria-label":f,"aria-hidden":c||void 0,role:i?"button":f?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&d==="check"&&t.jsx(B2,{}),e===void 0&&!m&&d==="remove"&&t.jsx(k2,{}),e===void 0&&!m&&d==="minus"&&t.jsx(A2,{})]})}function Za({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=Ee.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const C=[{title:null,columns:e}];let y=e;for(const v of i){const w=y?.[v.ci]?.items?.[v.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;y=[{title:null,items:w.children}],C.push({title:w.label||null,columns:y})}return C},[e,i]),p=c[c.length-1],h=c.length-1,d=o.useCallback(()=>u(C=>C.slice(0,Math.max(0,Math.min(C.length,h)-1))),[h]),m=o.useRef(null),b=o.useRef(null),x=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let C=0,y=0;const v=()=>{const w=m.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}y++<20&&(C=requestAnimationFrame(v))};return C=requestAnimationFrame(v),()=>cancelAnimationFrame(C)},[x]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const f=o.useCallback((C,y,v)=>{if(C){if(Array.isArray(C.children)&&C.children.length){u(w=>[...w.slice(0,h),{ci:y,ii:v}]);return}try{typeof C.onClick=="function"&&C.onClick()}catch{}try{C&&C.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,h]);return t.jsxs("div",{className:le(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||p.title)&&t.jsxs("div",{className:le("menu-tooltip__header"),children:[c.length>1?t.jsx(be,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:le("menu-tooltip__title button-1"),children:p.title})]}),t.jsx("div",{className:le("menu-tooltip__columns"),ref:m,children:p.columns&&p.columns.map((C,y)=>{const v=(C.items||[]).some(w=>!!w.icon||w.selected!==void 0);return t.jsxs("div",{className:le("menu-tooltip__column"),children:[C.title?t.jsx("div",{className:le("menu-tooltip__column-title body-3"),children:C.title}):null,t.jsx("div",{className:le("menu-tooltip__items"),children:(C.items||[]).map((w,_)=>t.jsxs(o.Fragment,{children:[w.separatorBefore&&_>0&&t.jsx("div",{className:le("menu-tooltip__separator"),role:"separator"}),t.jsx(be,{htmlType:"button",className:le("menu-tooltip__item"),size:l,type:w.label?"bar":"dot",icon:w.selected?"check":w.icon||(v||!w.label?"none":void 0),rightIcon:Array.isArray(w.children)&&w.children.length?"chevron-right":w.badgeCount?t.jsx(Mn,{position:"inline",number:Math.min(w.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:w.label,ariaLabel:w.label&&w.badgeCount&&w.badgeCount>0?s("nav.badgeLabel",{label:w.label,count:w.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):w.label,onClick:()=>f(w,y,_),selected:w.selected,disabled:w.disabled,showTooltipInfo:w.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},y)})})]})}const lu=".content-area";function Wo(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(lu);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&jt("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${lu}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const Ho=52,jr=10,iu=e=>e&&e>0?e:0;function uu({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=Ee.useTranslation(),c=r==="manager"?"malgwi":"manager",p=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),d=o.useRef(null),[m,b]=o.useState(0),x=e.length;o.useEffect(()=>{const P=d.current;if(!P)return;const J=()=>{const $=typeof getComputedStyle=="function"?getComputedStyle(P):null,D=P.clientWidth-(parseFloat($?.paddingLeft??"")||0)-(parseFloat($?.paddingRight??"")||0),S=P.querySelector(".bottom-nav__left"),H=S?.nextElementSibling,ne=(S?.offsetWidth??0)+(S&&H?.classList.contains("bottom-nav__divider")?H.offsetWidth:0);b(Math.max(0,D-ne))};if(J(),typeof ResizeObserver>"u")return;const ee=new ResizeObserver(J);ee.observe(P);const W=P.querySelector(".bottom-nav__left");return W&&ee.observe(W),()=>ee.disconnect()},[s]);const f=Ho+1,C=P=>Math.max(0,Math.floor((P+jr)/(Ho+jr))),y=x*(Ho+jr)-jr<=m,v=m<=0||l.length===0&&y?x:Math.min(x,C(m-f)),w=m>0&&v<x,_=w?v:x,E=e.slice(0,_),g=e.slice(_),A=w||l.length>0,B=o.useCallback((P,J)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Ka(J)}),[]),j=o.useId(),{open:N,toggle:k,close:O,style:L,triggerRef:V,menuRef:M}=Ya({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),I=o.useCallback((P,J)=>J>0?u("nav.badgeLabel",{label:P,count:J,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),R=o.useCallback((P,J)=>J>0?u("nav.badgeInsideLabel",{label:P,count:J,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),q=o.useCallback(()=>s?.(c),[s,c]),U=o.useMemo(()=>g.find(P=>!!P.key&&P.key===n)??l.find(P=>P.selected||P.key&&P.key===n),[g,n,l]),se=o.useMemo(()=>[{items:[...g.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),Wo(i,"BottomNav")),O())}})),...l.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),O()}}))]}],[g,l,n,a,O]),te=[...g,...l].reduce((P,J)=>P+iu(J.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:d,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:p,ariaLabel:h,className:"bottom-nav-item",onClick:q})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:E.map((P,J)=>{const ee=iu(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:I(P.label,ee),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),Wo(i,"BottomNav"))}}),ee>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(Mn,{position:"top-right",number:Math.min(ee,99),size:24})})]},P.key??`__slot-${J}`)})}),A&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:V,className:"bottom-nav__slot",children:[t.jsx(be,{htmlType:"button",size:52,type:"dot",icon:U?.icon??"ellipsis",ariaLabel:R(U?.label??u("nav.more","\uB354\uBCF4\uAE30"),te),selected:!!U,className:"bottom-nav-item",onClick:k,"aria-expanded":N,"aria-controls":N?j:void 0}),te>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(Mn,{position:"top-right",number:Math.min(te,99),size:24})}),N&&gn.createPortal(t.jsx("div",{id:j,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:le("tooltip__content"),style:L,ref:M,children:t.jsx(Za,{columns:se,onClose:O})}),document.body)]})})]})]})}function cu(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function du(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function N2(e){const{t:n}=Ee.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:p}=e||{},h="default";return s||l||i||u||c||p?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),u&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),l&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:du(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&t.jsx(Mn,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),c&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),p&&t.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:p,selected:a==="account"})]}):null}function pu(e){const{t:n}=Ee.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:p,labelStyle:h}=e||{},d=a?.key??r??"",m=a?.label??s??"",b=a?.icon??l??"",x=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(ut,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),C=p==="disabled",y=`side-nav__item ${i?"active":""} ${p||""} ${C?"disabled":""} ${a?.child?"side-nav__item--child":""}`,v=o.useCallback(w=>{if(C)return;const _=w.detail>0;if(_)try{w.currentTarget.blur()}catch{}u?.(d,w.currentTarget,_)},[C,d,u]);return t.jsxs("button",{type:"button",className:y,onClick:v,"aria-label":typeof m=="string"?du(n,m,x):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":C,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),x>0&&t.jsx(Mn,{position:"inline",number:Math.min(x,99),size:24,"aria-hidden":!0}),p==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function hu(e){const{t:n}=Ee.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b,scrollContainer:x}=e||{},f=m==="manager",C=o.useCallback(()=>b?.(f?"malgwi":"manager"),[b,f]),y=o.useRef(null),[v,w]=o.useState(null);o.useEffect(()=>{const B=y.current;if(!B)return;let j=null;const N=()=>{const{scrollHeight:L,clientHeight:V,scrollTop:M}=B;if(L<=V+1){w(se=>se===null?se:null);return}const I=Math.max(24,V/L*V),R=V-I,q=L-V,U={top:Math.round(M/q*R),height:Math.round(I)};w(se=>se&&se.top===U.top&&se.height===U.height?se:U)},k=()=>{if(typeof requestAnimationFrame>"u"){N();return}j===null&&(j=requestAnimationFrame(()=>{j=null,N()}))};N(),B.addEventListener("scroll",k,{passive:!0});const O=typeof ResizeObserver<"u"?new ResizeObserver(k):null;O?.observe(B);for(const L of Array.from(B.children))O?.observe(L);return()=>{j!==null&&cancelAnimationFrame(j),B.removeEventListener("scroll",k),O?.disconnect()}},[a]);const _=o.useRef(null),E=o.useCallback(B=>{const j=y.current;j&&(B.preventDefault(),_.current={y:B.clientY,top:j.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),g=o.useCallback(B=>{const j=y.current,N=_.current;!j||!N||(j.scrollTop=N.top+(B.clientY-N.y)*(j.scrollHeight/j.clientHeight))},[]),A=o.useCallback(B=>{_.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{ref:y,className:"side-nav__menu-list",children:[v&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:v.top,height:v.height},onPointerDown:E,onPointerMove:g,onPointerUp:A,onPointerCancel:A})}),(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,j)=>t.jsxs(o.Fragment,{children:[B.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(pu,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(N,k,O)=>{if(B.disabled)return;if(B.href){if(cu(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),O)try{k?.blur()}catch{}return}if(s?.(B.key),Wo(x,"SideNav"),!O)return;try{k?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const L=document.querySelector(".header");if(L){const V=typeof L.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&V&&L.matches(":hover"))){L.classList.add("header--force-collapsed");const M=()=>{L.classList.remove("header--force-collapsed"),L.removeEventListener("mouseenter",M)};L.addEventListener("mouseenter",M)}}}})]},B.key??`side-nav__item-${j}`)),b&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&t.jsx(pu,{item:{key:"__mode-switch__",label:f?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:f?"arrow-left":"arrow-right"},onClick:C})]}),t.jsx(N2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d})]})}var Dr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Vo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',E2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function mu({src:e,alt:n,className:a,style:r,tone:s,textColor:l}){const i=!s&&!!l,u=y2(e,i),c="bl"+o.useId().replace(/[^a-zA-Z0-9]/g,"");return s?t.jsx("span",{className:ke("brand-logo","brand-logo--tone",a),role:n?"img":void 0,"aria-label":n||void 0,"aria-hidden":n?void 0:!0,style:{...r,"--brand-logo-src":`url("${e}")`,"--brand-logo-tone":s},children:t.jsx("img",{src:e,alt:"","aria-hidden":"true",className:"brand-logo__sizer",draggable:!1})}):i&&u?t.jsx("span",{className:ke("brand-logo","brand-logo--inline",a),role:n?"img":void 0,"aria-label":n||void 0,"aria-hidden":n?void 0:!0,style:{...r,"--brand-logo-text-color":l},dangerouslySetInnerHTML:{__html:g2(f2(u),c)}}):t.jsx("img",{src:e,alt:n,className:ke("brand-logo",a),style:r,draggable:!1})}function Cu({appMode:e}){const{t:n}=Ee.useTranslation(),a=e==="manager",r=a?Vo:Dr,s=E2;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),a?t.jsx("img",{src:r,alt:n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"}):t.jsx(mu,{src:r,alt:n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),textColor:"var(--color-text-primary)",className:"brand-identity__image brand-identity__image--logo"})]})}function fu({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b,scrollContainer:x}){const{t:f}=Ee.useTranslation(),C=wn("(max-width: 767px)"),y=o.useMemo(()=>(a??[]).filter(L=>!L.section&&(L.key||L.label)).map(L=>({key:L.key,label:typeof L.label=="string"?L.label:void 0,icon:L.icon,state:L.disabled?"disabled":void 0,badgeCount:L.badge})),[a]),v=o.useCallback(L=>{const V=a?.find(M=>M.key===L);if(!V?.disabled){if(V?.href){cu(V.href)&&window.open(V.href,"_blank","noopener,noreferrer");return}n?.(L)}},[a,n]),w=o.useMemo(()=>{const L=[];return i&&L.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),h&&L.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),u&&L.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),p&&L.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:p}),d&&L.push({key:"feedback",icon:"bug",label:f("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d}),c&&L.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:c}),L},[f,i,u,p,h,d,c,l]),_=o.useCallback((L,V)=>({position:"fixed",top:L.bottom+8,right:Math.max(8,window.innerWidth-L.right),zIndex:Ka(V)}),[]),E=o.useId(),{open:g,toggle:A,close:B,style:j,triggerRef:N,menuRef:k}=Ya({computeStyle:_,onScroll:"ignore",onResize:"reposition"}),O=o.useMemo(()=>[{items:w.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===e),closeOnSelect:!0,onClick:()=>{L.onClick?.(),B()}}))}],[w,e,B]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Cu,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:N,children:[t.jsx(be,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?f("nav.badgeInsideLabel",{label:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":g,"aria-controls":g?E:void 0}),!!u&&!!l&&l>0&&t.jsx(Mn,{number:Math.min(l,99),size:24,"aria-hidden":!0}),g&&gn.createPortal(t.jsx("div",{id:E,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:le("tooltip__content"),style:j,ref:k,children:t.jsx(Za,{columns:O,onClose:B})}),document.body)]})]}),t.jsx(hu,{scrollContainer:x,items:a,activeKey:e??void 0,onChange:n,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:p,onHelp:h,onFeedback:d,appMode:m,onAppModeChange:b}),C&&t.jsx(uu,{items:y,activeKey:e??void 0,onChange:v,scrollContainer:x,appMode:m,onAppModeChange:b})]})}const j2=fu;function cn(e){const{type:n="dot",size:a,className:r="","aria-label":s,"aria-hidden":l,role:i}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&jt("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694."),i&&l&&jt("badge-role-with-hidden",`[ihab/core] Badge \uAC00 role="${i}" \uACFC aria-hidden \uC744 \uD568\uAED8 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC228\uAE34 \uAC83\uC740 \uB0AD\uB3C5\uAE30\uC5D0 \uB07C\uC5B4\uB4E4 \uC218 \uC5C6\uC5B4 \uC544\uBB34\uAC83\uB3C4 \uC548 \uC77D\uD799\uB2C8\uB2E4 \u2014 \uB458 \uC911 \uD558\uB098\uB9CC \uC8FC\uC138\uC694.`);const{label:u,children:c,variant:p="default",fill:h="filled",minWidth:d,iconLeft:m,iconRight:b,color:x}=e,f=n==="bar",C=typeof a=="number"?"medium":a??"medium",y=(f?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[C]??(f?"body-2":"body-2b"),v={small:12,medium:14,large:16}[C]??14,w=ke("badge",f?"badge--bar":"",`badge--${p}`,`badge--${C}`,h!=="filled"?`badge--${h}`:"",y,r),_=x?.startsWith("--")?`var(${x})`:x,E=d!==void 0||_?{...d!==void 0?{minWidth:typeof d=="number"?`${d}px`:d}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:w,style:E,"aria-label":l?void 0:s,role:i??(s&&!l?"img":void 0),"aria-hidden":l||void 0,children:[m&&t.jsx(ut,{icon:m,size:v,className:"badge__icon"}),u??c,b&&t.jsx(ut,{icon:b,size:v,className:"badge__icon"})]})}const D2=()=>nn.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function gu(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return va(`${n.toLocaleString("ko-KR")}\uC6D0`)}return va(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function S2(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function T2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||D2()}function M2(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function bu(e){return{type:e.type??S2(e),plan:T2(e),label:e.label,price:gu(e.price),originalPrice:gu(e.originalPrice),discountLabel:e.discountLabel}}var $2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',L2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',yu='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const sa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},qo=new WeakMap;function R2(e){if(e)return qo.get(e)}function In(e,n){e&&(e.style.setProperty(sa.text,n.text),e.style.setProperty(sa.sub,n.sub),n.copyrightColor&&e.style.setProperty(sa.copyright,n.copyrightColor),qo.set(e,n))}function On(e){e&&(e.style.removeProperty(sa.text),e.style.removeProperty(sa.sub),e.style.removeProperty(sa.copyright),qo.delete(e))}const vu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-text-primary)"};function xu(e={}){const n=Vt(vu,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${yu}")`}})]})}const _u="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",wa=240;var Xa='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const P2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},F2=100,I2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function wu(e={}){const n=Vt(P2,In,On),a="var(--color-main)",r=270,s=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:I2.map(({scale:l,opacity:i},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${l*F2/wa}) translate(${-wa/2} ${-wa/2})`,opacity:i,children:t.jsx("path",{d:_u,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const O2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},z2=100,W2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function H2(e={}){const n=Vt(O2,In,On),a="#ffffff",r=270,s=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:W2.map(({scale:l,opacity:i},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${l*z2/wa}) translate(${-wa/2} ${-wa/2})`,opacity:i,children:t.jsx("path",{d:_u,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${yu}")`}})]})}const V2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function q2(e={}){const n=Vt(V2,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const U2={Logo_SpeechEar_ko:{"":Dr,_mono:$2},Logo_SpeechEarManager_ko:{"":Vo,_mono:L2}};function G2(e,n){if(e)return U2[e]?.[n??""]??void 0}const K2={speechear:Dr,manager:Vo},Y2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},Bu=10;function Z2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function ku(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function X2(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===nn.t("passCard.specialLabel");return r?t.jsx(q2,{}):s?t.jsx(H2,{}):t.jsx(wu,{})}return t.jsx(xu,{})}function Au({ariaLabel:e,product:n,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:p,bgOnly:h=!1,textColor:d,subColor:m,copyrightColor:b,logoSrc:x,label:f,price:C,originalPrice:y,discountLabel:v,onUse:w,onRefund:_,onDelete:E}){const{t:g}=Ee.useTranslation(),A=n?bu(n):void 0,B=s??A?.type??"speechear",j=r??A?.plan??g("passCard.planSuffix","\uC774\uC6A9\uAD8C"),N=f??A?.label,k=C??(a?A?.price:void 0),O=y??(a?A?.originalPrice:void 0),L=v??A?.discountLabel,V=o.useMemo(()=>{if(k)return null;const z=n?.durationDays??M2(n?.code);if(!z||z<=0)return i!=null?{percent:null,remainingLabel:ku(i,g)}:null;const F=z*86400;let G;if(i!=null)G=i;else if((c==="active"||c==="expired")&&l){const ae=new Date(l).getTime();if(Number.isNaN(ae))return null;const _e=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),$e=/^(\d{4})-(\d{2})-(\d{2})/.exec(qa()),Le=Math.round(_e&&$e?(Date.UTC(+_e[1],+_e[2]-1,+_e[3])-Date.UTC(+$e[1],+$e[2]-1,+$e[3]))/864e5:(ae-Date.now())/864e5);G=Math.max(0,u?Le+1:Le)*86400}else c==="expired"?G=0:G=F;const ce=Z2(G),me=Math.max(0,Math.min(100,Math.floor(Math.min(ce,F)/F*100)));return c==="pending"&&me>=100?null:{percent:me,remainingLabel:c==="expired"?g("passCard.expired","\uB9CC\uB8CC\uB428"):ku(G,g)}},[k,c,l,i,u,n?.durationDays,n?.code,g]),M=o.useRef(null),[I,R]=o.useState({}),[q,U]=o.useState(null),se=!!(w||_||E),te=o.useRef(!1),P=o.useRef(void 0),[J,ee]=o.useState(x);o.useLayoutEffect(()=>{ee(x)},[x]),o.useLayoutEffect(()=>{const z=M.current;z&&(d!==void 0&&z.style.setProperty("--pass-card-text",d),m!==void 0&&z.style.setProperty("--pass-card-sub",m),b!==void 0&&z.style.setProperty("--pass-card-copyright",b))},[d,m,b]),o.useLayoutEffect(()=>{const z=M.current;if(!z)return;const F=R2(z);if(!x){const G=Y2[B],ce=c==="expired"?"_mono":F?.logoColor??"",me=G2(G,ce);ee(me)}},[p,x,B,c]);const W=z=>{const F=M.current;if(!F)return null;const{left:G,top:ce,width:me,height:ae}=F.getBoundingClientRect(),_e=(z.clientX-G)/me-.5;return{rotateX:-((z.clientY-ce)/ae-.5)*Bu,rotateY:_e*Bu}},$=(z,F)=>{const G=F*-.7,ce=z*.7+10,me=20+(Math.abs(z)+Math.abs(F))*.4;return`${G}px ${ce}px ${me}px rgba(0, 0, 0, 0.18)`},D=o.useCallback(z=>{if(ra())return;te.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{te.current=!1},200);const F=W(z);F&&R({transform:`perspective(800px) rotateX(${F.rotateX}deg) rotateY(${F.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(F.rotateX,F.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),S=o.useCallback(z=>{if(ra())return;const F=W(z);if(!F)return;const G=te.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";R({transform:`perspective(800px) rotateX(${F.rotateX}deg) rotateY(${F.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(F.rotateX,F.rotateY),transition:G})},[]),H=o.useCallback(()=>{clearTimeout(P.current),te.current=!1,R({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),ne=o.useCallback(()=>U(null),[]),re=o.useMemo(()=>{const z=g("passCard.planSuffix","\uC774\uC6A9\uAD8C"),F=j.replace("\uC774\uC6A9\uAD8C","").replace(z==="\uC774\uC6A9\uAD8C"?"":z,"").trim(),G=F.match(/^(.*?)(일|년)$/);return G?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:G[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:G[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:F})},[j,g]),K=o.useMemo(()=>{const z=va(k);if(!z)return null;const F=z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!F)return t.jsx("span",{className:"h1",children:z});const[,G,ce,me]=F;return t.jsxs(t.Fragment,{children:[G&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:G}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ce}),me.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:me.trim()})]})},[k]),ie=o.useCallback(()=>{se&&U(z=>{if(z)return null;const F=M.current?.getBoundingClientRect();if(!F)return null;const G=50;return{left:F.left,right:F.right,width:F.width,height:F.height,x:F.x,y:F.y+G,top:F.top+G,bottom:F.bottom+G}})},[se]),Y=o.useCallback(z=>{se&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),ie())},[se,ie]),de=[{items:[...w?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),U(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),U(null)},closeOnSelect:!0}]:[],...E?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{E(),U(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${se?" pass-card--clickable":""}`,style:I,onMouseEnter:D,onMouseMove:S,onMouseLeave:H,onPointerUp:z=>{z.pointerType==="touch"&&H()},onPointerCancel:z=>{z.pointerType==="touch"&&H()},onClick:ie,onKeyDown:se?Y:void 0,role:se?"button":void 0,tabIndex:se?0:void 0,"aria-label":e,"aria-haspopup":se?"menu":void 0,"aria-expanded":se?!!q:void 0,children:[p??X2(B,j,N),!h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:J??K2[B],className:"pass-card__logo",alt:B==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:re}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?g("passCard.labeledPlan",{label:N}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[L&&t.jsx("span",{className:"pass-card__discount body-3",children:L}),t.jsxs("div",{className:"pass-card__price",children:[O&&t.jsx("span",{className:"pass-card__price-original body-3",children:va(O)}),K]})]}):V?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:V.remainingLabel}),V.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:V.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),q&&t.jsx(En,{anchorRect:q,onClose:ne,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Za,{columns:de,onClose:ne,size:"small"})})]})}const J2={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-text-primary)"};function Q2(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=Vt(J2,In,On);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}const ev={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function tv(e={}){const n=Vt(ev,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}function nv(e,n){if(e){if(n==="manager_pro")return t.jsx(tv,{});if(n==="manager_standard")return t.jsx(Q2,{});if(n==="manager_lite")return t.jsx(wu,{})}}function av(e){const n=va(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,l]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function rv(e){const{t:n}=Ee.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u,titleLevel:c=3}=e||{},p=c?`h${c}`:"div",h=g=>!!g&&!!u?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),m=(s.tiers||[]).some(g=>d(g)&&h(g.code)),b=g=>{const A=g.prices?g.prices[i]:g.price;return A?(s.tiers||[]).some(B=>!!B.badge&&B.originals?.[i]===A):!1},x=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",f=n("payment.plan.freePrice","\uBB34\uB8CC"),C=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),y=g=>g.prices?g.prices[i]:g.price,v=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const A=y(g);return A==="\uBB34\uB8CC"||A===f||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),w=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const A=y(g);return A==="\uBB38\uC758"||A===C}),_=s.group==="org",E=_?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:x,"--plan-color":x},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(cn,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:x},children:s.quote||"\xA0"}),t.jsx(p,{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(ut,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:x}}),g]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(ut,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:x}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:w?t.jsx(be,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(g=>{const A=g.label||a,B=d(g),j=B||g.openPromo===!0,N=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[i]:g.price,O=g.badge?j?`${r}
|
|
828
828
|
${g.badge}`:g.badge:void 0;if(B&&h(g.code))return null;if(!g.badge&&!m)return b(g)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:g.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:av(k)})})]},g.id);const L=s.tier??(_?s.title:void 0),V=t.jsx(Au,{showPrice:!0,product:{type:E,code:g.code,name:N,label:L,price:k,originalPrice:g.originals?.[i]??void 0,discountLabel:O},bg:nv(_,s.id)}),M=()=>l?.({...g,productId:s.id,productTitle:s.title,preview:V});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:M,onKeyDown:l?I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),M())}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:V},g.id)})})})})]})}function ov({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Uo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_IHAB_en" xmlns="http://www.w3.org/2000/svg" width="765.08" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 765.08 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/><g id="text"><path d="M316.21,190.6h-36.74V50.61h36.74v139.99Z"/><path d="M335.16,50.61h36.74v55.11h51.63v-55.11h36.93v139.99h-36.93v-55.11h-51.63v55.11h-36.74V50.61Z"/><path d="M473.99,190.6l46.6-139.99h50.08l46.41,139.99h-39.64l-8.31-27.46h-46.99l-8.31,27.46h-39.83ZM560.62,135.3l-14.5-46.99h-1.16l-14.31,46.99h29.97Z"/><path d="M631,50.61h59.94c31.9,0,48.73,13.73,48.73,35.19,0,15.47-11.02,27.26-26.88,30.55v1.35c17.6.58,32.29,13.54,32.29,33.45,0,22.82-18.56,39.45-49.11,39.45h-64.97V50.61ZM701.77,93.53c0-8.89-6.96-13.92-17.02-13.92h-17.02v27.84h16.44c10.25,0,17.6-5.03,17.6-13.92ZM706.22,146.51c0-10.25-7.35-16.05-19.14-16.05h-19.34v30.55h18.76c13.15,0,19.72-5.03,19.72-14.5Z"/></g></svg>';const Nu={text:"var(--color-text-primary)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-text-muted)"};function sv(){const e=Vt(Nu,In,On);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Uo}")`}})})}const Eu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function lv(e={}){const n=Vt(Eu,In,On);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Xa}")`}})]})}function ju({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:ke("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((l,i)=>t.jsxs("span",{className:"shortcut-badge__group",children:[i>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:l})]},`${l}-${i}`))})}const Ja=(e,n,a)=>e+(n-e)*a;function iv({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:l=null,answerId:i=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:p,pulseScale:h,clickable:d=!1,onSelectSpeaker:m,buttonSize:b=40,showIcon:x=!0,onCenterClick:f,centerLabel:C,centerDisabled:y=!1,centerAttention:v=!1,shortcutAnchor:w="top-right",shortcutScale:_,scaleShortcut:E=!1}){const{t:g}=Ee.useTranslation(),A=Math.max(0,Math.min(1,a)),B=n/2,j=110/300,N=.18,k=F=>n*(j+(F-1)*N),O=F=>{const G=k(F.row??1),ce=F.angleDeg*Math.PI/180;return{x:B+G*Math.cos(ce),y:B+G*Math.sin(ce)}},L=Math.max(...e.map(F=>F.row??1),1),V=n*.08,M=n*.1,I=n*.24,R=n-2*V,q=n-M-I,U=n-I/2,se=o.useMemo(()=>[...new Set(e.map(F=>F.deg))].sort((F,G)=>F-G),[e]),te=se.length,P=Math.max(68,te>1?R/(te-1):0),J=o.useMemo(()=>new Map(se.map((F,G)=>[F,G])),[se]),ee=F=>{const G=J.get(F.deg)??0,ce=B+(G-(te-1)/2)*P,me=L>1?Math.min(68,q/(L-1)):0,ae=me*(L-1),_e=M+(q-ae)/2,$e=L===1?M+q*.4:_e+(L-(F.row??1))*me;return{x:ce,y:$e}},W=F=>{const G=O(F),ce=ee(F);return{x:Ja(G.x,ce.x,A),y:Ja(G.y,ce.y,A)}},$={x:B,y:Ja(B,U,A)},D=Math.round(b*1.2),S=Math.round(Math.max(16,Math.min(80,b*.7))),H=[],ne=new Map;for(const F of e){const G=F.row??1;ne.has(G)||ne.set(G,[]),ne.get(G).push(F)}for(const[F,G]of ne.entries()){if(G.length<2)continue;const ce=[...G].sort((We,dt)=>We.deg-dt.deg),me=ce.map(We=>W(We)),ae=ce.map(We=>We.deg),_e=ae[ae.length-1]-ae[0],$e=_e/(ae.length-1),Le=360-_e,je=ce.length>=3&&$e>0&&Le<=$e*1.5,ve=Math.round(k(F)*1e3)/1e3,we=(We,dt,ht,Pe)=>{const Ce=(dt.angleDeg-We.angleDeg+540)%360-180;if(Ce===0)return`L ${Pe.x} ${Pe.y}`;if(A===0)return`A ${ve} ${ve} 0 0 ${Ce>0?1:0} ${Pe.x} ${Pe.y}`;const ze=(We.angleDeg+Ce/2)*Math.PI/180,Be={x:B+ve*Math.cos(ze),y:B+ve*Math.sin(ze)},He={x:(ht.x+Pe.x)/2,y:(ht.y+Pe.y)/2},tt={x:Ja(Be.x,He.x,A),y:Ja(Be.y,He.y,A)},lt={x:2*tt.x-He.x,y:2*tt.y-He.y};return`Q ${lt.x} ${lt.y} ${Pe.x} ${Pe.y}`},he=je?[...ce,ce[0]]:ce,Ae=je?[...me,me[0]]:me;let Ge=`M ${Ae[0].x} ${Ae[0].y}`;for(let We=1;We<Ae.length;We++)Ge+=" "+we(he[We-1],he[We],Ae[We-1],Ae[We]);H.push({key:`arc-${F}`,d:Ge})}const re=o.useMemo(()=>new Set(s??[]),[s]),K=F=>({idle:"",active:g("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:g("soundCompass.state.played","\uB4E4\uC74C"),correct:g("soundCompass.state.correct","\uC815\uB2F5"),wrong:g("soundCompass.state.wrong","\uC624\uB2F5")})[F],ie=(F,G,ce,me)=>{const ae=F+1,_e=new RegExp(`(^|[^0-9])${ae}([^0-9]|$)`).test(G),$e=!me||_e?G:`${ae}, ${G}`;return K(ce)?`${$e}, ${K(ce)}`:$e},Y=F=>{if(r===F.id)return"active";if(u){if(F.id===i)return"correct";if(F.id===l&&l!==i)return"wrong"}return re.has(F.id)?"played":"idle"},de=F=>r===F.id?"loop":u?F.id===i?"loop":null:c&&F.id===l?"once":null,z=(F,G)=>{switch(F){case"played":case"correct":return t.jsx(el,{size:G});case"wrong":return t.jsx(cl,{size:G});default:return t.jsx(ul,{size:G})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[A===0&&e.map(F=>{const{x:G,y:ce}=W(F);return t.jsx("line",{x1:$.x,y1:$.y,x2:G,y2:ce,stroke:"#dde3ec",strokeWidth:"1"},F.id)}),H.map(F=>t.jsx("path",{d:F.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},F.key))]}),v&&!y&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:D,height:D,left:$.x-D/2,top:$.y-D/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:D,height:D,left:$.x,top:$.y},"aria-label":C,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:f,children:t.jsx(to,{size:S,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:D,height:D,left:$.x,top:$.y},children:t.jsx(to,{size:S,color:"currentColor",strokeWidth:1.5})}),e.map((F,G)=>{const{x:ce,y:me}=W(F),ae=Y(F),_e=de(F),$e={..._!==void 0||E?{"--shortcut-badge-scale":String(_??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:d?"auto":"none",cursor:d?"pointer":"default",zIndex:ae!=="idle"?10:1},Le=b,je=Math.round(Math.max(10,Math.min(56,Le*.38))),ve=Math.round(Math.max(7,Math.min(18,Le*.2))),we=Math.round(Math.max(10,Math.min(56,Le*.4))),he=x==="answered"&&(ae==="played"||ae==="correct"||ae==="wrong"),Ae=x===!0||he,Ge=!he;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...$e,left:ce-Le/2,top:me-Le/2},children:[_e&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ae}`+(_e==="once"?" sound-compass__pulse--once":""),style:{width:Le,height:Le,..._e==="once"&&p!==void 0?{"--sc-pulse-duration-once":`${p}ms`}:null,...h!==void 0?{"--sc-pulse-scale":String(h)}:null}}),t.jsxs("button",{type:"button",tabIndex:d?0:-1,"aria-disabled":d?void 0:!0,onClick:d?()=>m?.(F.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ae}`,style:{width:Le,height:Le},"aria-label":ie(G,F.label,ae,Ge),"aria-pressed":l!=null?F.id===l:void 0,children:[Ae&&z(ae,je),Ge&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:x===!0?ve:we},children:G+1})]}),F.shortcut&&t.jsx(ju,{keys:F.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},F.id)})]})})}function uv({id:e,tone:n="plain",bare:a=!1,className:r,style:s,children:l}){return t.jsx("section",{id:e,className:ke("landing-section",n==="line"&&"landing-section--line",r),style:s,children:a?l:t.jsx("div",{className:"landing-section__inner",children:l})})}function cv({badge:e,badgeVariant:n="white",title:a,sub:r,maxWidth:s,subMaxWidth:l,gap:i="m",noGap:u=!1,onBand:c=!1,align:p="left"}){const h={...u?null:{"--landing-title-gap":`var(--spacing-${i})`},...s?{maxWidth:`${s}px`}:null},d=l?{maxWidth:`${l}px`}:{},m=p==="center";return t.jsxs(t.Fragment,{children:[e?t.jsx("p",{className:ke(m&&"landing-title__badge--center"),style:{margin:0},children:t.jsx(cn,{size:"large",fill:n==="white"?"filled":"soft",variant:n,children:e})}):null,t.jsx("h2",{className:ke("landing-title__text",u&&"landing-title__text--no-gap",m&&"landing-title__text--center"),style:h,children:a}),r?t.jsx("p",{className:ke("landing-title__sub",c&&"landing-title__sub--on-band",m&&"landing-title__sub--center"),style:d,children:r}):null]})}function dv({icon:e,title:n,desc:a,children:r,layout:s="stack",leadWidth:l=300,titleStyle:i,tight:u=!1,align:c="left",className:p,style:h}){const d=u?"landing-card--pad-tight":"landing-card--pad",m=t.jsxs(t.Fragment,{children:[e,n?t.jsx("h3",{className:"landing-card__title",style:i,children:n}):null,a?t.jsx("p",{className:"landing-card__desc",children:a}):null]});return s==="row"?t.jsxs("div",{className:ke("landing-card","landing-card--row",d,p),style:h,children:[t.jsx("div",{className:"landing-card__lead",style:{"--landing-card-lead-w":`${l}px`},children:m}),t.jsx("div",{className:"landing-card__panel",children:r})]}):t.jsxs("div",{className:ke("landing-card",d,c==="center"&&"landing-card--center",p),style:h,children:[m,r]})}function pv({href:e,tone:n="dark",arrow:a=!1,className:r,children:s}){return t.jsxs("a",{className:ke("landing-button",n!=="dark"&&`landing-button--${n}`,r),href:e,children:[s,a?t.jsx("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flex:"none"},children:t.jsx("path",{d:"m9 18 6-6-6-6"})}):null]})}const hv=1200,mv=.3;function Cv(e){if(typeof e!="string")return null;const n=/^(\D*)(\d[\d,]*)(\D*)$/.exec(e.trim());if(!n)return null;const a=Number(n[2].replace(/,/g,""));return Number.isFinite(a)?{prefix:n[1],suffix:n[3],target:a,grouped:n[2].includes(",")}:null}function fv(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,",")}function gv(e){const n=o.useRef(null),[a,r]=o.useState(1);return o.useEffect(()=>{const s=n.current;if(e||!s||typeof IntersectionObserver!="function"){r(1);return}r(0);let l=0;const i=new IntersectionObserver(u=>{if(!u.some(h=>h.isIntersecting))return;i.disconnect();const c=performance.now(),p=h=>{const d=Math.min(1,(h-c)/hv);r(1-(1-d)**3),d<1&&(l=requestAnimationFrame(p))};l=requestAnimationFrame(p)},{threshold:mv});return i.observe(s),()=>{i.disconnect(),cancelAnimationFrame(l)}},[e]),[n,a]}function bv({stats:e,className:n}){const a=Br(),[r,s]=gv(a);return t.jsx("div",{className:"landing-stat-band-wrap",children:t.jsx("div",{ref:r,className:ke("landing-stat-band",n),style:{gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`},children:e.map((l,i)=>{const u=Cv(l.value),c=u?`${u.prefix}${u.grouped?fv(Math.round(u.target*s)):Math.round(u.target*s)}${u.suffix}`:null;return t.jsxs("div",{children:[t.jsx("p",{className:"landing-stat-band__value",children:c===null?l.value:t.jsxs(t.Fragment,{children:[t.jsx("span",{"aria-hidden":"true",children:c}),t.jsx("span",{className:"landing-stat-band__sr",children:l.value})]})}),t.jsx("p",{className:"landing-stat-band__label",children:l.label})]},i)})})})}function yv({orientation:e="horizontal",label:n,className:a=""}){const r=ke("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Du({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:l,className:i=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${i}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>n?.(c.target.checked)}),t.jsx("span",{className:"radio__dot"}),l&&t.jsx("span",{className:"radio__label body-2",children:l})]})}function vv({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:l="vertical",className:i="",ariaLabel:u}){const c=o.useId(),p=r??`radio-group-${c}`;return t.jsx("div",{className:`radio-group radio-group--${l} ${i}`.trim(),role:"radiogroup","aria-label":u,children:e.map(h=>t.jsx(Du,{name:p,value:h.value,checked:n===h.value,disabled:s||h.disabled,label:h.label,onChange:d=>{d&&a?.(h.value)}},h.value))})}const xv={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function _v({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:l,live:i,className:u=""}){const{t:c}=Ee.useTranslation(),[p,h]=o.useState(!1),d=o.useRef(null),m=o.useCallback(()=>{const v=d.current;v&&v.contains(document.activeElement)&&_r(v),h(!0),l?.()},[l]);if(p)return null;const b=ke("alert",`alert--${e}`,u),x=i??(e==="danger"||e==="warning"?"assertive":"polite"),f=x==="assertive"?"alert":x==="polite"?"status":void 0,C=!!n,y=!!(a||r);return t.jsxs("div",{ref:d,className:b,role:f,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(ut,{icon:xv[e],size:20,className:"alert__icon"}),C&&t.jsx("span",{className:"alert__title body-2",children:n}),!C&&y&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),C&&y&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const wv={ready:"search",guide:"info",error:"circle-alert"};function Bv(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,l=0;for(const i of a){const u=e.indexOf(i,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:i},l++)),s=u+i.length)}return s<e.length&&r.push(e.slice(s)),r}function kv({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:l=""}){const i=s===!1?null:s??wv[e],u=ke("search-summary",`search-summary--${e}`,l),c=n??a,p=typeof c=="string"&&r&&r.length>0?Bv(c,r):c;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[i!=null&&t.jsx(ut,{icon:i,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:p})]})}function Qa({title:e,items:n}){const{t:a}=Ee.useTranslation(),{anchorRect:r,openAt:s,close:l}=Er(),i=o.useRef(null),u=kr(!!r,(c,p)=>{c&&p?s(i.current?.querySelector("button")??p):l()},i);return t.jsxs("span",{ref:i,style:{display:"contents"},children:[t.jsx(be,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{Zn(c)||s(c.currentTarget)},onPointerLeave:c=>{Zn(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ra()||s(c.currentTarget)},onBlur:l}),r&&t.jsx(Yn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:l})]})}const Ft=40,la=32;function Av({items:e=[],value:n,onChange:a,className:r="",size:s=Ft}){const l=o.useId(),{t:i}=Ee.useTranslation(),u=o.useRef(null),c=e.find(f=>!f.disabled)?.key,p=e.some(f=>f.key===n)?n:c??e[0]?.key,h=e.find(f=>f.key===p&&!f.disabled)?.key??c,d=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(f,C=d())=>{if(C.length===0)return;const y=(f%C.length+C.length)%C.length;C[y]?.focus(),C[y]?.click()},b=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const C=d(),y=C.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?m(y+1,C):f.key==="ArrowLeft"||f.key==="ArrowUp"?m(y-1,C):f.key==="Home"?m(0,C):m(C.length-1,C)},x=e.find(f=>f.key===p);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":i("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${l}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===p,"aria-controls":f.key===p?`tabs__panel-${l}-${f.key}`:void 0,disabled:f.disabled,tabIndex:f.key===h?0:-1,className:`tabs__tab body-2${f.key===p?" tabs__tab--active":""}`,onClick:()=>{f.key!==n&&a?.(f.key)},onKeyDown:b,children:f.label},f.key))}),x&&t.jsx("div",{id:`tabs__panel-${l}-${x.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${x.key}`,tabIndex:0,className:"tabs__panel",children:x.panel},x.key)]})}const Nv={xs:12,sm:16,md:20,lg:28,xl:36};function Ev(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function jv({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:l}=Ee.useTranslation(),[i,u]=o.useState(null),c=!!e&&i===e,p=n?Ev(n):"",h=!!e&&!c,d=!h&&!!p,m=n||l("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":m,children:[h&&t.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>u(e??null)}),!h&&d&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:p}),!h&&!d&&t.jsx(ut,{icon:"user-round",size:Nv[a],className:"avatar__icon"})]})}function Dv(e,n){if(!n)return!0;const a=n.split(",").map(l=>l.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(l=>{const i=l.toLowerCase();return i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i})}function Sv({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:l,onRemove:i,className:u=""}){const{t:c}=Ee.useTranslation(),p=o.useRef(null),[h,d]=o.useState(!1),[m,b]=o.useState([]),x=l??m,f=g=>{if(!g||g.length===0)return;const A=Array.from(g).filter(j=>Dv(j,n));if(A.length===0)return;const B=a?A:A.slice(0,1);if(l===void 0){const j=a?[...x,...B]:B;b(j),e?.(j)}else e?.(B)},C=g=>{g.preventDefault(),!r&&d(!0)},y=g=>{g.preventDefault(),d(!1)},v=g=>{g.preventDefault(),d(!1),!r&&f(g.dataTransfer.files)},w=g=>{const A=g.target;try{f(A.files)}finally{A.value=""}},_=()=>{r||p.current?.click()},E=g=>{if(!r&&(i?.(g),l===void 0)){const A=x.filter((B,j)=>j!==g);b(A),i||e?.(A)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:ke("file-upload__dropzone",h&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:_,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),_())},onDragOver:C,onDragLeave:y,onDrop:v,children:[t.jsx(ut,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:g=>{g.stopPropagation(),_()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:p,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:w,tabIndex:-1,"aria-hidden":"true"})]}),s&&x.length>0&&t.jsx("ul",{className:"file-upload__list",children:x.map((g,A)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:g.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:g.name}),disabled:r,onClick:()=>E(A),children:t.jsx(ut,{icon:"x",size:14})})]},`${g.name}-${A}`))})]})}function Tv({items:e,className:n=""}){const{t:a}=Ee.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const l=s===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[l?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!l&&t.jsx(ut,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const Mv={small:14,medium:20,large:28};function $v({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:l,className:i=""}){const{t:u}=Ee.useTranslation(),c=r||!n,[p,h]=o.useState(null),d=c?e:Number.isFinite(e)?Math.round(e):0,m=p??d,b=Mv[s],x=g=>{g!==e&&n?.(g)},f=g=>{c||x(g)},C=g=>{c||ra()||h(g)},y=o.useRef(null),v=g=>{const A=Math.min(a,Math.max(1,g));x(A),Array.from(y.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(A))?.focus()},w=g=>{if(!c){switch(g.key){case"ArrowRight":case"ArrowUp":v((d||0)+1);break;case"ArrowLeft":case"ArrowDown":v((d||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}g.preventDefault()}},_=d>=1&&d<=a?Math.round(d):1,E=()=>{c||h(null)};return t.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${i}`.trim(),ref:y,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):l??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:E,onPointerUp:g=>{g.pointerType==="touch"&&E()},onPointerCancel:g=>{g.pointerType==="touch"&&E()},children:Array.from({length:a},(g,A)=>{const B=A+1,j=Math.max(0,Math.min(1,m-A)),N=j>0&&j<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(ut,{icon:"star",size:b,className:"rating__star rating__star--empty"}),j>0&&t.jsx("span",{className:`rating__star-fill${N?" rating__star-fill--half":""}`,style:N?{width:`${j*100}%`}:void 0,children:t.jsx(ut,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return c?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},B):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":d===B,"aria-label":u("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===_?0:-1,onClick:()=>f(B),onMouseEnter:()=>C(B),children:k},B)})})}const Lv=20,Rv=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Pv({value:e,onChange:n,palette:a=Rv,size:r=Ft,className:s="",ariaLabel:l}){const{t:i}=Ee.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":l,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":c,"aria-label":c?`${u} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&t.jsx(ut,{icon:"check",size:Lv,className:"color-picker__check"})},u)})})}function Su({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:l,useHover:i=!0,iconSize:u="medium"}){const{t:c}=Ee.useTranslation(),p=u==="small",h=ke("category-icon",p?"category-icon--small":""),d=p?16:20,m=o.useRef(null),[b,x]=o.useState(!1),f=o.useMemo(()=>{const B=r&&typeof r=="object"?{...r}:{};return!s&&!l?B:{...B,...s?{color:s,"--t-item-fg":s}:{},...l?{"--t-item-bg":l}:{}}},[r,s,l]),C=a||n,y=i&&!!C,[v,w]=o.useState(null);o.useLayoutEffect(()=>{b&&w(m.current?.getBoundingClientRect()??null)},[b]),o.useEffect(()=>{if(!i&&b)try{x(!1)}catch{}},[i,b]),o.useEffect(()=>{if(!b)return;const B=j=>{const N=m.current;if(!N)return;const k=j.target;k&&!N.contains(k)&&x(!1)};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[b]);const _=o.useCallback(()=>{i&&x(!0)},[i]),E=o.useCallback(()=>{i&&x(!1)},[i]),g=o.useCallback(()=>x(!1),[]),A=o.useCallback(B=>{if(B.key==="Escape"){x(!1);return}(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),x(j=>!j))},[]);return t.jsxs("span",{ref:m,className:ke("category-icon__wrap",y&&"category-icon__wrap--interactive"),onPointerEnter:_,onPointerLeave:E,onFocus:_,onBlur:E,onKeyDown:A,role:C?"button":void 0,tabIndex:C?0:void 0,"aria-label":typeof C=="string"?c("common.descriptionFor",{name:C,defaultValue:`${C} \uC124\uBA85`}):void 0,"aria-haspopup":!!C,"aria-expanded":b,"data-tooltip-ignore":!0,children:[t.jsx(ut,{icon:e,label:n,className:h,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:d}),b&&C&&t.jsx(Pn,{anchorRect:v,text:typeof C=="string"?C:void 0,offset:8,onClose:g,className:"category-icon__tooltip",ariaLabel:typeof C=="string"?C:void 0})]})}let Xn=null;function er(e){if(Xn&&Xn!==e)try{Xn()}catch{}return Xn=e,()=>{Xn===e&&(Xn=null)}}function Sr(e){if(Xn===e){Xn=null;try{e()}catch{}}}function tr(e,n){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){jt("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{n?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let s=!1;const l=u=>{if(!s){s=!0;try{n?.(u)}catch{}a(u)}};let i;try{i=new Audio(e)}catch{return l(!1),{el:{},stop:()=>{},done:r}}i.onended=()=>l(!0),i.onerror=()=>l(!1);try{i.play().catch(()=>l(!1))}catch{l(!1)}return{el:i,stop:()=>{try{i.pause()}catch{}l(!1)},done:r}}function Fv(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=i=>i.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],l=r(Array.isArray(s)?s:[]);return l.length===0&&(a.contextCode||a.context_code)&&l.push(String(a.contextCode||a.context_code)),{previewCodes:l,previewBucket:null}}function Iv(e,n){const[a,r]=o.useState(!1),[s,l]=o.useState(-1),[i,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),p=o.useRef(!1),h=o.useRef(null),d=o.useRef(null),[m,b]=o.useState(!1),x=o.useRef([]),{previewCodes:f,previewBucket:C}=Fv(e,n),y=`${f.join(",")}|${C??""}`,v=o.useMemo(()=>i.key===y?i.urls:[],[i,y]);o.useEffect(()=>{if(!f.length)return;let _=!1;return(async()=>{const E=[],g=[];for(const A of f)try{const B=Pl(A,C);if(!B){E.push("");continue}let j=null;try{j=await Fl(B)}catch{}if(!j)try{const N=await Il(B);N&&(j=URL.createObjectURL(N),g.push(j))}catch{}E.push(j??"")}catch{E.push("")}_?g.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}):(x.current.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}),x.current=g,u({key:y,urls:E}))})(),()=>{_=!0}},[f.join(","),C]),o.useEffect(()=>()=>{x.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),x.current=[]},[]);const w=o.useCallback(async _=>{if(_.stopPropagation(),_.preventDefault(),p.current){h.current&&Sr(h.current),p.current=!1;try{c.current?.pause()}catch{}r(!1),l(-1);return}if(!v.filter(Boolean).length)return;let E=null;const g=()=>{p.current=!1,E?.stop()};h.current=g;const A=er(g);p.current=!0,r(!0);for(let B=0;B<v.length&&p.current;B++){const j=v[B];if(j&&(l(B),E=tr(j),c.current=E.el,!await E.done))break}A(),h.current===g&&(h.current=null,p.current=!1,r(!1),l(-1))},[v]);return o.useEffect(()=>()=>{h.current&&Sr(h.current),p.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:v,previewHover:m,setPreviewHover:b,previewBtnRef:d,handlePreview:w}}const Ov=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Go(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:l,renderPopup:i,completed:u,completedIds:c,selectedIds:p,tooltipText:h,useDescriptionTooltip:d=!1,onRemove:m,hideCheckBadge:b=!1,showTypeLabel:x=!1,onComplete:f,onSelect:C,onMore:y,countLabelOverride:v,size:w="square"}=e||{},{t:_}=Ee.useTranslation(),[E,g]=o.useState(!1),A=o.useRef(null),[B,j]=o.useState(!1);o.useEffect(()=>{A.current?.matches(":hover")&&j(!0)},[]);const{playing:N,playingIndex:k,previewUrls:O,previewHover:L,setPreviewHover:V,previewBtnRef:M,handlePreview:I}=Iv(r,a?.key),R=o.useCallback(()=>{C?C():g(!0)},[C]),q=o.useCallback(()=>g(!1),[]),U=o.useCallback(()=>j(!0),[]),se=o.useCallback(()=>j(!1),[]),te=o.useCallback(()=>V(!0),[V]),P=o.useCallback(()=>V(!1),[V]),[J,ee]=o.useState(null);o.useLayoutEffect(()=>{L&&ee(M.current?.getBoundingClientRect()??null)},[L,M]);const[W,$]=o.useState(null);o.useLayoutEffect(()=>{B&&!E&&d&&$(A.current?.getBoundingClientRect()??null)},[B,E,d]);const D=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),R())},[R]),S=r||null,H=o.useMemo(()=>{if(!d)return null;const Be=h?(Array.isArray(h)?h:[h]).filter(Boolean):null,He=Be&&Be.length>0?Be:Ov(S);return He&&He.length>0?He:null},[d,h,S]),ne=o.useCallback(Be=>{Be.stopPropagation(),m?.()},[m]),re=o.useCallback(Be=>Be.stopPropagation(),[]),K=o.useCallback(Be=>{typeof f=="function"&&f(Be)},[f]),ie=u||(c&&r?.id!=null?c.has(String(r.id)):!1),Y=!ie&&(p!=null&&r?.id!=null?p.has(String(r.id)):!1);Qi("speechear.popup.close",q);const de=ui(),z=`${a?.label||""} ${n+1}`,F=S?.title||S?.name||z;let G=a?.icon,ce,me="",ae="";try{const Be=S?.category_0||S?.category_main_code||S?.category_main,He=S?.category_1||S?.category_sub_code||S?.category_sub,tt=de.find(lt=>lt.key===Be);tt?.icon&&(G=tt.icon),!ce&&tt?.color&&(ce={"--t-item-fg":tt.color}),!ce&&S?.iconColor&&(ce={"--t-item-fg":S.iconColor}),me=tt?_(`topic.${tt.key}`,{defaultValue:tt.label||""}):"";try{const lt=tt?.subs?.find(gt=>gt.key===He);ae=lt?_(`topic.sub.${lt.key}`,{defaultValue:lt.label||""}):""}catch{}}catch{}const _e=ae?`${me} / ${ae}`:me||a?.label||F,$e=Be=>_("training.countQuestions",{n:Be,count:Be}),Le=Be=>_("training.countSentences",{n:Be,count:Be});let je="";try{if(S)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(S.items)&&S.items.length>0?Be=S.items.length:Array.isArray(S.sentences)&&S.sentences.length>0?Be=S.sentences.length:S.sentences&&(Be=1),je=Le(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(S?.questions)?Be=S.questions.length:Array.isArray(S?.sentences)&&(Be=S.sentences.length),je=$e(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(S.items)&&S.items.length>0){const He=S.items.reduce((tt,lt)=>{const gt=lt.questionItems;return Array.isArray(gt)?tt+gt.length:Array.isArray(lt.questions)?tt+lt.questions.length:tt},0);Be=He>0?He:S.items.length}else Array.isArray(S.questions)&&S.questions.length>0?Be=S.questions.length:Array.isArray(S.sentences)&&S.sentences.length>0&&(Be=S.sentences.length);je=$e(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(S.items)&&S.items.length>0?Be=S.items.length:Array.isArray(S.sentences)&&S.sentences.length>0&&(Be=S.sentences.length),je=Le(Be)}else Array.isArray(S.items)&&(je=S.items.length>0?$e(S.items.length):"")}catch{}const ve=w==="row",we=w==="list"||ve,he=w==="compact",Ae=w==="small",Ge=Ae&&a?.key?pg().find(Be=>Be.key===a.key):void 0,We=Ge?ci[Ge.key]:void 0,dt=Ge?We?_(`trainingType.${We}.title`,{defaultValue:Ge.label}):Ge.label??"":"",ht=x&&a?.label&&a.label!==String(F)?String(a.label):Ae&&dt&&dt!==String(F)?dt:"",Pe=!!ht,Ce=v!==void 0?v:je,ze=[ht,typeof F=="string"?F:"",Ce].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:A,className:`training-block-button${we?" training-block-button--list":""}${ve?" training-block-button--row":""}${he?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${ie?" training-block-button--completed":""}${Y?" training-block-button--selected":""}${Pe&&!Ae?" training-block-button--withType":""}${Ae&&!Pe?" training-block-button--no-type-label":""}`,onClick:R,onPointerEnter:U,onPointerLeave:se,role:"button",tabIndex:0,onKeyDown:D,"aria-label":typeof s=="string"?s:ze||void 0,title:!d&&h&&(Array.isArray(h)?h.filter(Boolean).join(`
|
|
829
829
|
`):h)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[x&&a?.label&&a.label!==String(F)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&dt&&dt!==String(F)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:dt}),t.jsx(Su,{icon:G,label:F,tooltip:_e,wrapperStyle:ce,iconSize:Ae||he?"small":"medium"}),!b&&(ie||Y)&&!(m&&B)&&t.jsx(Mn,{className:m?"training-block-button__check--removable":void 0,icon:"check",position:"top-left",size:32,"aria-label":ie?_("training.completed","\uD6C8\uB828 \uC644\uB8CC"):_("training.selected","\uC120\uD0DD\uB428")}),m&&t.jsx(Mn,{className:`training-block-button__remove${B?" is-hover":""}`,icon:"remove",position:"top-left",size:32,"aria-label":_("common.remove","\uC81C\uAC70"),onClick:ne}),t.jsx("div",{className:`training-block-button__title ${he?"body-3":Ae?"body-3b":"h3"}`,children:String(F)}),t.jsxs("div",{className:"training-block-button__description",children:[Ce?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:Ce}):null,t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(ut,{icon:"chevron-right",label:_("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(we&&!ve||Ae)&&O.length>0&&t.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:re,onPointerEnter:te,onPointerLeave:P,children:t.jsx(be,{htmlType:"button",size:Ae?28:32,type:"dot",icon:N?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:String(F).trim()?N?_("training.stopFor",{name:F,defaultValue:`${F} \uC815\uC9C0`}):_("training.previewFor",{name:F,defaultValue:`${F} \uBBF8\uB9AC \uB4E3\uAE30`}):N?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:I})})]}),y&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),y(Be)},children:t.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(F).trim()?_("common.moreFor",{name:F}):_("common.more","\uB354\uBCF4\uAE30")})})]}),L&&t.jsx(Pn,{anchorRect:J,text:N?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),B&&!E&&d&&(H?t.jsx(Yn,{anchorRect:W,items:H,activeIndex:k,onClose:se}):S?.subTitle?t.jsx(Pn,{anchorRect:W,text:S.subTitle,offset:8,onClose:se}):null),E&&i&&i({trainingData:S,typeKey:a?.key??"",onClose:q,onComplete:K,popupTitle:String(F),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:G,popupIconTooltip:String(_e),popupWrapperStyle:ce})]})}const Tu=200;function zv(e){return e.itemId?(gg()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function Mu({plan:e,groups:n,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=Ee.useTranslation(),i=o.useMemo(()=>n?n.map((c,p)=>({key:c.key??c.type?.key??String(p),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):yg(l).map(c=>{const p=(e?.items??[]).filter(h=>h.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:p.length,data:p.map(zv).filter(h=>h!=null)}}).filter(c=>c.pickedCount>0),[n,e?.items,l]);if(i.length===0)return null;const u=t.jsx("div",{className:le("training-tooltip__box"),children:t.jsx("div",{className:le("training-tooltip__groups"),children:i.flatMap(({key:c,label:p,type:h,data:d},m)=>[m>0?t.jsx("div",{className:le("training-tooltip__divider")},`div-${c}`):null,t.jsxs("div",{className:le("training-tooltip__section"),children:[t.jsx("div",{className:le("training-tooltip__section-header"),children:t.jsx("span",{className:le("training-tooltip__type-label body-3b"),children:p})}),t.jsx("div",{className:le("training-tooltip__items"),children:d.map((b,x)=>t.jsx(Go,{index:x,type:h,trainingData:b,size:"compact",hideCheckBadge:!0},String(b.id??x)))})]},c)])})});return a?t.jsx(En,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:le("training-tooltip"),ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const Wv=200;function Hv({icon:e,count:n,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:p}){const h=!!u||!!c||s&&!!r,d=ke("count-tile",h&&"count-tile--interactive",h&&l&&"count-tile--accent",u&&"count-tile--clickable",i),m=o.useRef(null),[b,x]=o.useState(null),f=o.useRef(null),C=o.useRef(null),y=!!(b&&r&&s),v=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),C.current&&(clearTimeout(C.current),C.current=null)},[]),w=o.useCallback(()=>{v(),x(null)},[v]),_=o.useCallback(()=>{!s||!r||(v(),f.current=setTimeout(()=>{f.current=null,x(m.current?.getBoundingClientRect()??null)},Tu))},[s,r,v]),E=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),!C.current&&(C.current=setTimeout(()=>{C.current=null,x(null)},Wv))},[]);return o.useEffect(()=>()=>{v()},[v]),o.useEffect(()=>{(!s||!r)&&w()},[s,r,w]),o.useEffect(()=>{if(!y)return;const g=B=>B instanceof Element&&(m.current?.contains(B)||!!B.closest(".training-tooltip")),A=B=>{g(B.target)?v():E()};return document.addEventListener("pointerover",A,!0),()=>document.removeEventListener("pointerover",A,!0)},[y,v,E]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:m,className:d,onClick:u?g=>{w(),u(g)}:void 0,onKeyDown:u?g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.currentTarget.click())}:void 0,onPointerEnter:g=>{g.pointerType==="touch"||g.pointerType==="pen"?w():_()},onMouseEnter:c,onMouseLeave:g=>{E(),p?.(g)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(ut,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),b&&r&&t.jsx(Mu,{plan:r,anchorRect:b,onClose:w})]})}let nr=0,$u="",Ko="",ar=0;function Lu(){return Ru(!1)}function Vv(){return Ru(!0)}function Ru(e){const n=typeof document<"u";nr===0&&n&&($u=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ar===0&&(Ko=document.body.style.paddingRight),ar++,document.body.style.paddingRight="0px"),nr++;let a=!1;return()=>{a||(a=!0,nr=Math.max(0,nr-1),e&&n&&(ar=Math.max(0,ar-1),ar===0&&(Ko?document.body.style.paddingRight=Ko:document.body.style.removeProperty("padding-right"))),nr===0&&n&&(document.body.style.overflow=$u))}}function qv(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Uv({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:p,contentClassName:h}){const{t:d}=Ee.useTranslation(),m=o.useId(),b=o.useRef(null),x=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const v=document.activeElement,w=Lu(),_=b.current;return So(_,v),_?.focus(),()=>{w();const E=document.activeElement;(!E||E===document.body||_&&_.contains(E))&&To(v)?.focus?.()}},[e]);const f=o.useRef(x),C=o.useRef(u);o.useEffect(()=>{f.current=x,C.current=u}),o.useEffect(()=>{if(e)return aa(()=>{C.current&&f.current()})},[e]);const y=o.useRef(!1);return jo(b,e),!e||typeof document>"u"?null:gn.createPortal(t.jsx("div",{className:ke("dialog",p),onPointerDown:i?v=>{y.current=v.target===v.currentTarget}:void 0,onMouseDown:v=>{v.target===v.currentTarget&&v.preventDefault()},onClick:i?v=>{const w=y.current;y.current=!1,w&&v.target===v.currentTarget&&x()}:void 0,children:t.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ke("dialog__surface",`dialog__surface--${l}`,h),onClick:v=>v.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,c?t.jsx("button",{type:"button",className:"dialog__close","aria-label":d("common.close","\uB2EB\uAE30"),onClick:x,children:t.jsx(qv,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function Gv({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:p}=Ee.useTranslation(),h=!i&&n.length===0;return t.jsxs("div",{className:ke("board",c),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):null]}):null,t.jsxs("table",{className:"board__table",children:[u?t.jsx("caption",{className:"board__caption",children:u}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(d=>t.jsx("th",{scope:"col",className:ke("board__th",`board__cell--${d.headerAlign??d.align??"left"}`),style:d.width?{width:d.width}:void 0,children:d.header},d.key))})}),t.jsx("tbody",{children:i?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):h?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l??p("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((d,m)=>t.jsx("tr",{className:"board__row",children:e.map(b=>t.jsx("td",{className:ke("board__td",`board__cell--${b.align??"left"}`),children:b.render(d,m)},b.key))},a(d,m)))})]})]})}function Kv({name:e,role:n,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return t.jsxs("div",{className:ke("person-card",i),children:[t.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(u=>t.jsx("li",{children:u},u))}):null]})}function Yv({groups:e,className:n=""}){return t.jsx("div",{className:ke("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>t.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function Zv({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:ke("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),l?t.jsx("div",{className:"publication-card__footer",children:l}):null]})}function Xv({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=Ua(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function Jv({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return t.jsxs("div",{className:ke("section-header",`section-header--${l}`,i),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(u,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function Qv({items:e,className:n=""}){return t.jsx("ul",{className:ke("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}const rr=new Map;function Bn(e){const{t:n}=Ee.useTranslation(),{options:a=[],value:r=a.find(_=>!_.disabled)?.key??a[0]?.key,onChange:s=_=>{},className:l="",size:i=Ft,shape:u="pill",useBG:c=!0,fullWidth:p=!1,minButtonWidth:h,ariaLabel:d}=e||{},m=o.useRef(null),b=a.filter(_=>!_.disabled),x=o.useId(),f=a.map(_=>_.key).join("\xB7");o.useEffect(()=>{if(!(!qn||d!=null&&d!=="")){if(rr.set(x,f||"(\uBCF4\uAE30 \uC5C6\uC74C)"),rr.size>1){const _=[...rr.values()].sort();jt(`segmented-control-unnamed:${_.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${rr.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${_.join(" / ")}`)}return()=>{rr.delete(x)}}},[d,f,x]);const C=_=>{if(!b.length)return;const E=Math.max(0,b.findIndex(A=>A.key===r)),g=_==="first"?b[0]:_==="last"?b[b.length-1]:b[(E+_+b.length)%b.length];g&&(s(g.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===g.key)?.focus())},y=_=>{switch(_.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}_.preventDefault()},v=_=>{const E=g=>typeof g=="string"||typeof g=="number";if(!(!E(_.label)||_.count==null||_.count===!1||!E(_.count)))return`${_.label}, ${_.count}`},w=b.some(_=>_.key===r)?r:b[0]?.key;return t.jsx("div",{ref:m,onKeyDown:y,className:ke("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,p&&"segmented-control--full",!c&&"segmented-control--no-bg",h!=null&&"segmented-control--min",l),style:h!=null?{"--segmented-min-button-w":`${h}px`}:void 0,role:"radiogroup","aria-label":d??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(_=>t.jsx(be,{htmlType:"button",role:"radio","aria-checked":_.key===r,"data-segkey":_.key,tabIndex:_.key===w?0:-1,label:_.label,count:_.count,ariaLabel:v(_),disabled:_.disabled,className:_.key===r?"is-selected":"",onClick:()=>{_.disabled||s(_.key)},size:i,shape:u,useBorder:!1,useBG:!1},_.key))})}const ex=260;function zn(e){const{t:n}=Ee.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:p,footerEnd:h,footerNote:d,footerNoteDivider:m=!1,footerClassName:b="",footerLayout:x="center",onClose:f,closeDisabled:C=!1,beforeClose:y,closeOnBackdrop:v=!0,className:w="",ariaLabel:_,useTitle:E=!0,inline:g=!1,size:A,layer:B="modal",height:j,fillBody:N=!1,resetScrollKey:k}=e||{},[O,L]=o.useState(!1),V=o.useRef(!1),M=o.useRef(null),I=o.useId(),R=o.useRef(null);o.useEffect(()=>{},[g,a,_,w]),o.useEffect(()=>{k!==void 0&&R.current&&(R.current.scrollTop=0)},[k]);const[q,U]=o.useState(!1);o.useEffect(()=>{const Y=R.current;if(!Y)return;const de=()=>U(Y.scrollHeight>Y.clientHeight+1);if(de(),typeof ResizeObserver>"u")return;const z=new ResizeObserver(de);z.observe(Y);const F=Y.firstElementChild;return F&&z.observe(F),()=>z.disconnect()},[i,k]),o.useEffect(()=>{if(!g)return Lu()},[g]);const se=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(g)return;const Y=se.current,de=M.current;return So(de,Y),de&&!de.contains(document.activeElement)&&(de.querySelector(Tn)??de).focus(),()=>{const z=document.activeElement;(!z||z===document.body||de&&de.contains(z))&&To(Y)?.focus?.()}},[g]),jo(M,!g);const te=o.useRef(!0),P=Br(),J=o.useRef(null);o.useEffect(()=>(te.current=!0,()=>{te.current=!1,J.current&&(clearTimeout(J.current),J.current=null)}),[]);const ee=o.useCallback(()=>{!te.current||!V.current||(V.current=!1,L(!1))},[]),W=o.useCallback((Y,de=!1)=>{if(de&&!te.current||V.current)return;V.current=!0,L(!0);const z=setTimeout(()=>{J.current===z&&(J.current=null);let F;try{F=Y?Y():void 0}catch{ee();return}F&&typeof F.then=="function"&&F.then(()=>{setTimeout(ee,120)},ee)},P?0:ex);de&&(J.current=z)},[ee,P]),$=o.useCallback(()=>{C||y&&y()===!1||W(f,!0)},[W,f,C,y]),D=o.useRef($);o.useEffect(()=>{D.current=$});const S=!g&&!!f;o.useEffect(()=>{if(S)return aa(()=>D.current())},[S]);const H=S&&v,ne=o.useRef(!1),re=Y=>{ne.current=Y.target===Y.currentTarget},K=Y=>{const de=ne.current;ne.current=!1,de&&Y.target===Y.currentTarget&&$()},ie=t.jsx("div",{className:`popup ${g?"popup--inline":""} ${B==="belowPagePopup"?"popup--below-page-popup":""} ${O?"popup--closing":""} ${w}`,onPointerDown:H?re:void 0,onClick:H?K:void 0,onMouseDown:g?void 0:Y=>{Y.target===Y.currentTarget&&Y.preventDefault()},children:t.jsxs("div",{ref:M,className:`popup-panel${A?` popup-panel--${A}`:""}${j!=null?" popup-panel--has-height":""}${N?" popup-panel--fill-body":""}`,style:j!=null?{"--popup-height":typeof j=="number"?`${j}px`:j}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&E&&a?I:void 0,"aria-label":!g&&!(E&&a)?_??(typeof a=="string"?a:void 0):void 0,children:[!E&&(s||f)?t.jsxs("div",{className:"popup-close-float",children:[s,f&&t.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:$,disabled:C,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||s||f?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[a?t.jsx("h2",{id:I,className:"popup-title popup-title--left h2",children:a}):t.jsx("span",{id:I,className:"popup-title popup-title--left h2"}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-aside",children:[l&&t.jsx("div",{className:"popup-header-segment",children:t.jsx(Bn,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(Y=>({key:Y.key,label:Y.label,disabled:Y.disabled})),value:l.value,onChange:l.onChange})}),t.jsxs("div",{className:"popup-header-actions",children:[s,f&&t.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:$,disabled:C,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]})]}):null,t.jsx("div",{className:"popup-content",ref:R,tabIndex:q?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:W,closeWithAnimation:$}):i})}),d!=null&&d!==!1&&t.jsx("div",{className:`popup-footer-note caption-1${m?" popup-footer-note--divider":""}`,role:"note",children:d}),p||h?t.jsxs("div",{className:`popup-footer popup-footer--bar${b?` ${b}`:""}`,children:[t.jsx("div",{className:"popup-footer__start",children:typeof p=="function"?p({animateThen:W,closeWithAnimation:$}):p}),t.jsx("div",{className:"popup-footer__end",children:typeof h=="function"?h({animateThen:W,closeWithAnimation:$}):h})]}):u?.length?t.jsx("div",{className:`popup-footer popup-footer--buttons${x!=="center"?` popup-footer--${x}`:""}`,children:u.map((Y,de)=>t.jsx(be,{htmlType:"button",size:48,variant:Y.variant??"default",label:Y.label,disabled:Y.disabled,onClick:()=>Y.onClick?.({animateThen:W,closeWithAnimation:$})},de))}):c?t.jsx("div",{className:`popup-footer${x!=="center"?` popup-footer--${x}`:""}${b?` ${b}`:""}`,children:typeof c=="function"?c({animateThen:W,closeWithAnimation:$}):c}):null]})});return g||typeof document>"u"?ie:gn.createPortal(ie,document.body)}function Pu({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,t.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:p=>n?.(p.target.checked),"aria-label":!r&&s?s:void 0}),t.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}function kn({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=Ft,error:u=!1,className:c="",ariaLabel:p,ariaDescribedBy:h}){const{t:d}=Ee.useTranslation(),m=r??d("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),x=o.useId(),f=o.useRef(null),C=o.useCallback((M,I)=>{const R=window.innerHeight,q=window.innerWidth,U=typeof document<"u"?document.getElementById(b):null,se=260,te=Math.min(se,Math.max(U?.offsetHeight||0,U?.scrollHeight||0)||se),P=Math.max(M.width,U?.offsetWidth||0),J=R-M.bottom,ee=M.top,W=J<te&&ee>J,$=8,D=(S,H)=>Math.min(Math.max($,S),Math.max($,H));return{position:"fixed",left:D(M.left,q-P-$),minWidth:M.width,maxWidth:Math.max(M.width,q-$*2),...W?{top:"auto",bottom:D(R-M.top+6,R-te-$)}:{bottom:"auto",top:D(M.bottom+6,R-te-$)},zIndex:Ka(I)}},[b]),{open:y,setOpen:v,toggle:w,style:_,triggerRef:E,menuRef:g}=Ya({computeStyle:C}),[A,B]=o.useState(-1),j=o.useCallback(()=>B(-1),[]),N=e.find(M=>M.value===n);o.useEffect(()=>{if(y){const M=e.findIndex(I=>I.value===n);B(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const I=g.current;if(!I)return;const R=I.querySelectorAll(".dropdown__option")[M];R&&(I.scrollTop=Math.max(0,R.offsetTop-I.clientHeight/2+R.clientHeight/2))})}},[y]),o.useEffect(()=>{y&&B(M=>{if(M>=0&&M<e.length)return M;const I=e.findIndex(R=>R.value===n);return I>=0?I:e.length?0:-1})},[y,e.length]);const k=o.useCallback(()=>{s||w()},[s,w]),O=o.useCallback(M=>{M.disabled||s||(M.value!==n&&a?.(M.value),v(!1))},[a,v,s,n]);o.useEffect(()=>{s&&v(!1)},[s,v]);const L=o.useCallback(M=>{if(!s){if(!y){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),v(!0));return}if(M.key==="Escape"){M.preventDefault(),v(!1);return}M.key==="ArrowDown"?(M.preventDefault(),B(I=>{let R=I+1;for(;R<e.length&&e[R].disabled;)R++;return R<e.length?R:I})):M.key==="ArrowUp"?(M.preventDefault(),B(I=>{let R=I-1;for(;R>=0&&e[R].disabled;)R--;return R>=0?R:I})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[A]?O(e[A]):v(!1))}},[s,y,e,A,O,v]),V=y?t.jsx("div",{ref:g,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:_,onMouseLeave:j,onMouseDown:M=>M.preventDefault(),children:e.map((M,I)=>t.jsxs("button",{id:`${b}-option-${I}`,type:"button",role:"option","aria-selected":M.value===n,className:ke("dropdown__option body-2",M.value===n?"dropdown__option--active":"",I===A?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:R=>R.preventDefault(),onClick:()=>O(M),onMouseEnter:()=>B(I),disabled:M.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:M.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),M.label]},M.value))}):null;return t.jsxs("div",{ref:f,className:ke("dropdown",`dropdown--s${i}`,y?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:L,children:[t.jsxs("button",{ref:E,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":y,"aria-controls":y?b:void 0,"aria-activedescendant":y&&A>=0?`${b}-option-${A}`:void 0,"aria-label":p,"aria-describedby":[p&&N?x:"",h??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:k,onBlur:M=>{y&&!g.current?.contains(M.relatedTarget)&&v(!1)},children:[t.jsx("span",{id:x,className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.label:m}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&gn.createPortal(V,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}const tx={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Fu(e){return e?tx[e]??null:null}function Iu(e){switch(Fu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Ou(e,n){const a=Fu(e);return a?n(`device.type.${a}`,{defaultValue:e??""}):e??""}const Ba=e=>e==null?"":String(e).trim();function Yo(e,n,a,r){const s=Ba(e),l=Ba(n),i=Ba(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,p=new Date(c);if(!Number.isNaN(p.getTime())&&p.toISOString().slice(0,10)===c){const h=ai(c,r);if(h)return h}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function nx(e,n,a){const r=Ba(e);return r?`${r}-${Ba(n).padStart(2,"0")}-${Ba(a).padStart(2,"0")}`:""}function zu(e){return typeof e=="string"?e:e.label}function Wu({value:e,onChange:n,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,p]=o.useState(!1),[h,d]=o.useState(-1),m=o.useRef(null),b=o.useMemo(()=>{if(!a.length)return[];const k=e??"";return s===!1?a:k?typeof s=="function"?s(a,k):a.filter(O=>zu(O).toLowerCase().includes(k.toLowerCase())):r?a:[]},[a,e,r,s]),[x,f]=o.useState(!1),C=o.useRef([]),y=x&&b.length===0?C.current:b;o.useEffect(()=>{y.length&&(C.current=y)},[y]);const v=o.useCallback(()=>f(!0),[]),w=o.useCallback(()=>f(!1),[]),_=i?0:-1;o.useEffect(()=>{c||d(_)},[c,_]),o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const E=h<y.length?h:_<y.length?_:-1,g=o.useCallback(k=>{l?l(k):n?.(zu(k)),p(!1)},[n,l]),A=o.useCallback(()=>p(!0),[]),B=o.useCallback(()=>{p(!0),d(_)},[_]),j=o.useCallback(()=>{m.current=setTimeout(()=>p(!1),120)},[]),N=o.useCallback(k=>{k.nativeEvent.isComposing||k.keyCode===229||(k.key==="ArrowDown"?(k.preventDefault(),p(!0),d(O=>Math.min(y.length-1,(O<y.length?O:_)+1))):k.key==="ArrowUp"?(k.preventDefault(),d(O=>Math.max(_,(O<y.length?O:y.length)-1))):k.key==="Enter"?E>=0&&g(y[E]):k.key==="Escape"&&c&&(k.preventDefault(),p(!1)))},[y,E,c,g,_]);return{listId:u,open:c,activeIdx:E,filtered:y,handleFocus:A,handleBlur:j,handleInput:B,handleKeyDown:N,handleSelect:g,handleCompositionStart:v,handleCompositionEnd:w}}const or=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Jn(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:p,placeholder:h,ghostText:d,ghostHint:m,type:b="text",disabled:x=!1,readOnly:f=!1,error:C,helperText:y,maxLength:v,size:w=Ft,variant:_="input",fullWidth:E=!1,newline:g=!1,multiline:A=!1,rows:B=3,leftIcon:j,rightIcon:N,clearable:k=!1,list:O,showCount:L=!0,className:V="",onFocus:M,onBlur:I,onKeyDown:R,onEnter:q,inputMode:U,autoComplete:se,autoFocus:te,suggestions:P,filterSuggestions:J,onSelectSuggestion:ee,autoActiveFirst:W,openOnFocus:$=!1}=e,D=f||x?void 0:P,{t:S}=Ee.useTranslation(),H=o.useId();!i&&!u&&jt(`TextField:unnamed:${H}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const ne=`tf-${H}`,re=`tf-helper-${H}`,K=o.useRef(null),ie=Wu({value:n??"",onChange:l,suggestions:D??[],openOnFocus:$,filterSuggestions:J,onSelectSuggestion:ee,autoActiveFirst:W}),Y=!!D&&ie.open&&ie.filtered.length>0,de=o.useRef(null),[z,F]=o.useState(null),G=o.useCallback(()=>{const Ce=de.current;if(!Ce||typeof window>"u")return;const ze=Ce.getBoundingClientRect(),Be=window.innerHeight,He=8,tt=230,lt=typeof document<"u"?document.getElementById(ie.listId):null,gt=Math.min(tt,Math.max(lt?.offsetHeight||0,lt?.scrollHeight||0)||tt),bt=Be-ze.bottom,mt=ze.top,it=bt<gt+He&&mt>bt,ot=(Dt,At)=>Math.min(Math.max(He,Dt),Math.max(He,At));F({position:"fixed",left:ze.left,width:ze.width,...it?{bottom:ot(Be-ze.top+He,Be-gt-He)}:{top:ot(ze.bottom+He,Be-gt-He)},zIndex:Ka(Ce)})},[ie.listId]);or(()=>{if(!Y)return;G();let Ce=null;const ze=()=>{if(typeof requestAnimationFrame>"u"){G();return}Ce===null&&(Ce=requestAnimationFrame(()=>{Ce=null,G()}))},Be=He=>{const tt=He.target;tt&&tt.nodeType===1&&tt.closest?.(".text-field__suggestions")||ze()};return window.addEventListener("scroll",Be,!0),window.addEventListener("resize",ze),()=>{Ce!==null&&cancelAnimationFrame(Ce),window.removeEventListener("scroll",Be,!0),window.removeEventListener("resize",ze)}},[Y,G,ie.filtered.length]);const ce=o.useCallback(Ce=>{K.current=Ce,typeof s=="function"?s(Ce):s&&(s.current=Ce)},[s]),me=d?`${d}${m??S("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:h,ae=n!==void 0,_e=ae&&b==="password",[$e,Le]=o.useState((a??"").length),je=ae?(n??"").length:$e,ve=o.useRef(n);or(()=>{ve.current=n}),o.useEffect(()=>{const Ce=K.current;if(!_e||!Ce)return;const ze=n??"";Ce.value!==ze&&(Ce.value=ze)},[_e,n]),o.useEffect(()=>{if(!g||!K.current)return;const Ce=K.current;Ce.style.height="",Ce.scrollHeight>Ce.clientHeight&&(Ce.style.height=`${Ce.scrollHeight}px`)},[n,$e,g]);const we=v!=null&&je>v,he=w===32?16:20,Ae=ke("text-field",`text-field--s${w}`,_==="display"?"text-field--display":"",E?"text-field--full-width":"",x?"text-field--disabled":"",f?"text-field--readonly":"",C?"text-field--error":"",j?"text-field--has-left-icon":"",N||k?"text-field--has-right-icon":"",V),Ge={id:ne,..._e?{}:ae?{value:n}:{defaultValue:a},ref:ce,placeholder:me,name:r,disabled:x,readOnly:f,autoFocus:te,maxLength:v,list:O,inputMode:U,autoComplete:se,"aria-label":!i&&u?u:void 0,"aria-required":p,"aria-invalid":!!C,"aria-describedby":[y||C?re:null,c].filter(Boolean).join(" ")||void 0,role:D?"combobox":void 0,"aria-autocomplete":D?"list":void 0,"aria-haspopup":D?"listbox":void 0,"aria-expanded":D?Y:void 0,"aria-controls":Y?ie.listId:void 0,"aria-activedescendant":Y&&ie.activeIdx>=0?`${ie.listId}-option-${ie.activeIdx}`:void 0,onChange:Ce=>{const ze=Ce.target;ae||Le(ze.value.length),l?.(ze.value),D&&ie.handleInput(),_e&&queueMicrotask(()=>{const Be=ve.current??"";ze.value!==Be&&(ze.value=Be)})},onCompositionStart:D?ie.handleCompositionStart:void 0,onCompositionEnd:D?ie.handleCompositionEnd:void 0,onFocus:(Ce=>{M?.(Ce),D&&ie.handleFocus()}),onBlur:(Ce=>{I?.(Ce),D&&ie.handleBlur()}),onKeyDown:(Ce=>{const ze=(Ce.key==="Tab"&&!Ce.shiftKey||Ce.key===" ")&&!Ce.nativeEvent.isComposing;if(d&&ze&&!f&&!x&&!(Ce.currentTarget.value??"").trim()){Ce.preventDefault();const Be=Ce.currentTarget;ae||(Be.value=d,Le(d.length)),l?.(d);return}D&&Ce.key==="Enter"&&!Ce.nativeEvent.isComposing&&ie.activeIdx>=0?Ce.preventDefault():q&&Ce.key==="Enter"&&!Ce.nativeEvent.isComposing&&(Ce.preventDefault(),q()),R?.(Ce),D&&ie.handleKeyDown(Ce)})},We=k&&!x&&!f&&je>0,dt=()=>g?t.jsx("textarea",{...Ge,className:"text-field__input text-field__input--auto body-2",rows:1}):A?t.jsx("textarea",{...Ge,className:"text-field__input text-field__input--textarea body-2",rows:B}):t.jsx("input",{...Ge,type:b,className:"text-field__input body-2"}),ht=_==="display"&&!g&&!A&&!!me,Pe=()=>t.jsxs(t.Fragment,{children:[dt(),ht&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:me})]});return t.jsxs("div",{ref:de,className:Ae,children:[i&&t.jsxs("label",{htmlFor:ne,className:"text-field__label caption-1",children:[i,p&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[j&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(ut,{icon:j,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})}),Pe(),v!=null&&L&&t.jsxs("span",{className:`text-field__count caption-2${we?" text-field__count--over":""}`,children:[je,"/",v]}),We&&t.jsx(be,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:S("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ce=>{Ce.preventDefault()},onClick:()=>{!ae&&K.current&&(K.current.value="",Le(0)),l?.("")},tabIndex:-1}),N&&!We&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(ut,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})})]}),!!D&&t.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ie.open&&(n??"").length>0&&ie.filtered.length===0?S("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),Y&&(typeof document>"u"?null:gn.createPortal(t.jsx("ul",{id:ie.listId,className:"text-field__suggestions",role:"listbox",style:z??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ie.filtered.map((Ce,ze)=>t.jsx("li",{id:`${ie.listId}-option-${ze}`,role:"option","aria-selected":ze===ie.activeIdx,className:`text-field__suggestion body-2${ze===ie.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{ie.handleSelect(Ce),K.current?.focus()},children:typeof Ce=="string"?Ce:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-field__suggestion-label",children:Ce.label}),Ce.hint&&t.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ce.hint})]})},typeof Ce=="string"?`${Ce}-${ze}`:Ce.id))}),document.body)),(y||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:re,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||y})})]})}const Hu=()=>{};function Cn(e){const n=o.useId();if(!("variant"in e)){const{label:v,sub:w,onClick:_,children:E,align:g="horizontal",icon:A,useFullWidth:B=!1,required:j=!1}=e,N=k=>{_&&k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),_())};return t.jsxs("div",{className:ke("panel-row",g==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?N:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[A!=null&&t.jsx("div",{className:"panel-row__icon",children:A}),v!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsxs("div",{className:"panel-row__label body-3",children:[v,j&&t.jsx("span",{className:"required-mark",children:"*"})]}),w&&t.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),t.jsx("div",{className:"panel-row__right",children:E})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(xa,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:p=!1,icon:h}=e,d=a==="button"?void 0:l;let m=null;const b=a==="toggle"?`panel-toggle-${n}`:void 0,x=u?`panel-error-${n}`:void 0,f=`panel-helper-${n}`;if(a==="toggle"){const v=e;m=t.jsx(Pu,{checked:v.checked,onChange:v.onChange,id:b})}else if(a==="segmented"){const v=e;m=t.jsx(Bn,{options:v.options,value:v.value,onChange:v.onChange,size:v.size??Ft,ariaLabel:r})}else if(a==="dropdown"){const v=e,w=v.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${p?" panel-row__dropdown-group--full":""}`,children:v.dropdowns.map((_,E)=>t.jsx("div",{className:p?"panel-row__dropdown-item--full":void 0,children:t.jsx(kn,{options:_.options,value:_.value,onChange:_.onChange,size:Ft,placeholder:_.placeholder,block:p,error:!!u,ariaDescribedBy:x,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},E))}):t.jsx(kn,{options:v.options??[],value:v.value??"",onChange:v.onChange??Hu,size:Ft,block:p,error:!!u,ariaLabel:r,ariaDescribedBy:x});m=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${p?" panel-row__dropdown-error-wrap--full":""}`,children:[w,t.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const v=e;v.buttons?.length?m=t.jsx("div",{className:"panel-row__button-group",children:v.buttons.map((w,_)=>t.jsx(be,{htmlType:"button",size:w.btnSize??Ft,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},_))}):m=t.jsx(be,{htmlType:"button",size:v.btnSize??Ft,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.buttonLabel})}else if(a==="text"){const v=e;m=t.jsx("span",{className:`panel-row__text body-2${p?" panel-row__text--full":""}`,style:v.valueColor?{color:v.valueColor}:void 0,children:v.value})}else if(a==="input"){const v=e;m=t.jsxs("div",{className:`panel-row__input-wrap${p?" panel-row__input-wrap--full":""}`,children:[t.jsx(Jn,{size:Ft,value:v.value,onChange:v.onChange??Hu,onKeyDown:v.onKeyDown,onEnter:v.onEnter,placeholder:v.placeholder,ghostText:v.ghostText,inputMode:v.inputMode,readOnly:v.readOnly,disabled:v.disabled,type:v.type,autoComplete:v.autoComplete,maxLength:v.maxLength,showCount:v.showCount,multiline:v.multiline,rows:v.rows,fullWidth:p,error:u,ariaLabel:r,required:i,ariaDescribedBy:v.helperText?f:void 0}),v.helperText&&t.jsx("div",{id:f,className:"panel-row__helper caption-1",children:v.helperText})]})}else a==="custom"&&(m=e.children);u&&a!=="input"&&a!=="dropdown"&&(m=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${p?" panel-row__dropdown-error-wrap--full":""}`,children:[m,t.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&p,y=v=>{d&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),d())};return t.jsxs("div",{className:ke("panel-row",c==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",d?"panel-row--clickable":""),onClick:d,onKeyDown:d?y:void 0,role:d?"button":void 0,tabIndex:d?0:void 0,children:[h!=null&&t.jsx("div",{className:"panel-row__icon",children:h}),t.jsxs("div",{className:"panel-row__left",children:[b?t.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,i&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&t.jsx("span",{className:"required-mark",children:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:m})]})}function Vu(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function ax({devices:e,onRelease:n,emptyLabel:a}){const{t:r,i18n:s}=Ee.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&n&&t.jsx(be,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(l)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(cn,{size:"small",variant:Iu(i.device),fill:"soft",label:Ou(i.device,r)}),Vu(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:Vu(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function sr({title:e,titleLevel:n=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:p,scrollbarGutter:h="auto",compactRows:d=!1,useBorder:m=!0,useBg:b=!0,useRowBorder:x=!0,labelWidth:f,form:C=!1,loading:y,empty:v,children:w}){const _=ke("panel",`panel--${l}`,C?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",b?"":"panel--no-bg",x?"":"panel--no-row-border",d?"panel--compact-rows":"",c),E={};i!==void 0&&(E.minHeight=i),u!==void 0&&(E.maxWidth=typeof u=="number"?`${u}px`:u),f!==void 0&&(E["--panel-label-width"]=typeof f=="number"?`${f}px`:f);const g=n?`h${n}`:"div";return t.jsxs("div",{className:_,style:Object.keys(E).length?E:void 0,children:[(!!e||r!=null)&&t.jsxs("div",{className:ke("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&t.jsx(ut,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[!!e&&t.jsx(g,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&t.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&t.jsx("div",{className:"panel__actions",children:s})]}),y?t.jsx(Cn,{variant:"loading"}):v!=null&&o.Children.toArray(w).length===0?t.jsx(Cn,{variant:"empty",children:v}):p?t.jsx("div",{className:ke("panel__body--scroll",h==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function rx({cols:e=2,layout:n="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,p]=o.useState();o.useEffect(()=>{const d=u.current;if(r===void 0||!d||(p(d.clientWidth),typeof ResizeObserver>"u"))return;const m=new ResizeObserver(([b])=>p(b.contentRect.width));return m.observe(d),()=>m.disconnect()},[r]);const h=r!==void 0&&c!==void 0&&c<=r;return t.jsx("div",{ref:u,className:ke("panel-grid",n==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":h?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function Zo({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const p=o.useRef(null),h=o.useId(),d=o.useRef(!!r);return d.current=!!r,o.useEffect(()=>{p.current&&(p.current.indeterminate=!!r)}),t.jsxs("label",{className:ke("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:h,title:u,children:[t.jsx("input",{ref:p,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>{n?.(m.target.checked),p.current&&(p.current.indeterminate=d.current)},disabled:a,"aria-label":!s&&c?c:void 0}),t.jsx("span",{className:"checkbox__box"}),s&&t.jsx("span",{className:"checkbox__label body-3",children:s})]})}function qu(e,n){const a=()=>{if(e){const[f,C]=e.split("-");return{y:+f,m:+C-1}}const[b,x]=br(n).split("-");return{y:+b,m:+x-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const b=a();s(b.y),i(b.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const p=o.useCallback(b=>{const x=c.current.y*12+c.current.m+b,f=Math.floor(x/12),C=x-f*12;c.current={y:f,m:C},s(f),i(C)},[]),h=o.useCallback(()=>p(-1),[p]),d=o.useCallback(()=>p(1),[p]),m=o.useCallback((b,x)=>{c.current={y:b,m:x},s(b),i(x)},[]);return{viewY:r,viewM:l,prevMonth:h,nextMonth:d,setViewYM:m}}function Tr(e,n){return new Date(e,n+1,0).getDate()}function ox(e,n){return new Date(e,n,1).getDay()}function lr(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function sx(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function lx(e){const n=e.replace(/\D/g,"");if(n.length!==8)return null;const a=+n.slice(0,4),r=+n.slice(4,6),s=+n.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:lr(a,r-1,s)}const ix=1900;function ux(e,n,a,r,s){const l=r?+r.split("-")[0]:Math.min(ix,e),i=s?+s.split("-")[0]:Math.max(n+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function Uu(e,n,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:n(e,l)})}return s}function Gu({value:e,onChange:n,size:a=Ft,min:r,max:s,disabled:l,placeholder:i,className:u,today:c,ariaLabel:p,ariaLabelledBy:h}){!p&&!h&&jt("DatePicker:unnamed","[ihab/DatePicker] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC774\uB098 ariaLabelledBy \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const{t:d,i18n:m}=Ee.useTranslation(),b=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),x=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=br(c),{viewY:C,viewM:y,prevMonth:v,nextMonth:w,setViewYM:_}=qu(e,c),E=o.useId(),g=o.useCallback((z,F)=>{const G=window.innerHeight,ce=window.innerWidth,me=typeof document<"u"?document.getElementById(E):null,ae=Math.max(me?.offsetHeight||0,me?.scrollHeight||0)||300,_e=Math.max(z.width,me?.offsetWidth||0,260),$e=G-z.bottom,Le=z.top,je=$e<ae&&Le>$e,ve=8,we=(he,Ae)=>Math.min(Math.max(ve,he),Math.max(ve,Ae));return{position:"fixed",left:we(z.left,ce-_e-ve),width:z.width,minWidth:260,...je?{top:"auto",bottom:we(G-z.top+6,G-ae-ve)}:{bottom:"auto",top:we(z.bottom+6,G-ae-ve)},zIndex:Ka(F)}},[E]),{open:A,setOpen:B,toggle:j,style:N,triggerRef:k,menuRef:O}=Ya({computeStyle:g,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!A)return;const z=O.current;return(z?.querySelector(".date-picker__day--selected:not(:disabled)")??z?.querySelector(".date-picker__day--today:not(:disabled)")??z?.querySelector(".date-picker__day:not(:disabled)")??z?.querySelector(Tn)??z)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&k.current?.focus?.()}},[A,O,k]);const[L,V]=o.useState(1),M=o.useRef(null),I=o.useRef(null);o.useEffect(()=>{if(!A)return;const z=e&&e.slice(0,7)===`${C}-${String(y+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${C}-${String(y+1).padStart(2,"0")}`?+f.slice(8):1;V(z)},[A]),o.useEffect(()=>{if(I.current==null)return;const z=I.current;I.current=null,M.current?.querySelector(`[data-day="${z}"]`)?.focus()}),o.useEffect(()=>{V(z=>Math.min(z,Tr(C,y)))},[C,y]);const R=o.useCallback(z=>{let F=lr(z.getFullYear(),z.getMonth(),z.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[G,ce,me]=F.split("-").map(Number);(G!==C||ce-1!==y)&&_(G,ce-1),V(me),I.current=me},[r,s,C,y,_]),q=o.useCallback(z=>{const F=new Date(C,y,L),G=me=>{F.setDate(F.getDate()+me),R(F)},ce=me=>{const ae=F.getFullYear()*12+F.getMonth()+me,_e=Math.floor(ae/12),$e=ae-_e*12;R(new Date(_e,$e,Math.min(F.getDate(),Tr(_e,$e))))};switch(z.key){case"ArrowLeft":G(-1);break;case"ArrowRight":G(1);break;case"ArrowUp":G(-7);break;case"ArrowDown":G(7);break;case"Home":G(-F.getDay());break;case"End":G(6-F.getDay());break;case"PageUp":z.shiftKey?ce(-12):ce(-1);break;case"PageDown":z.shiftKey?ce(12):ce(1);break;default:return}z.preventDefault()},[C,y,L,R]),U=o.useCallback(z=>{l||(n(lr(C,y,z)),B(!1))},[C,y,n,B,l]);o.useEffect(()=>{l&&B(!1)},[l,B]);const se=z=>{const F=lr(C,y,z);return!!(r&&F<r||s&&F>s)},te=(()=>{const z=Tr(C,y);if(L>=1&&L<=z&&!se(L))return L;for(let F=1;F<=z;F++)if(!se(F))return F;return-1})(),P=[];for(let z=0;z<ox(C,y);z++)P.push(null);for(let z=1;z<=Tr(C,y);z++)P.push(z);const J=a===64?20:a===32?14:a===40?16:18,ee=wo(m.language),W=z=>new Intl.DateTimeFormat(ee,{year:"numeric"}).format(new Date(z,0,1)),$=(z,F)=>new Intl.DateTimeFormat(ee,{month:"long"}).format(new Date(z,F-1,1)),D=ux(C,+f.slice(0,4),W,r,s),S=Uu(C,$,r,s),H=z=>{const F=Uu(z,$,r,s);if(F.length===0)return;const G=F.some(ce=>+ce.value===y+1);_(z,G?y:+F[0].value-1)},[ne,re]=o.useState(null);o.useEffect(()=>{re(null)},[e]);const K=o.useCallback(z=>{re(z);const F=lx(z);if(!F||r&&F<r||s&&F>s)return;n(F);const[G,ce]=F.split("-");_(+G,+ce-1)},[r,s,n,_]),ie=o.useCallback(()=>{re(null)},[]),Y=o.useCallback(z=>{z.key==="Enter"?(z.preventDefault(),ie(),B(!1)):z.key==="Escape"?(ie(),B(!1)):z.key==="ArrowDown"&&!A&&(z.preventDefault(),B(!0))},[ie,B,A]),de=A?gn.createPortal(t.jsxs("div",{ref:O,id:E,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:v,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(tl,{size:16,strokeWidth:2})}),t.jsxs("div",{className:"date-picker__nav-ym",children:[t.jsx(kn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:D,value:String(C),onChange:z=>H(+z),size:40}),t.jsx(kn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:S,value:String(y+1),onChange:z=>_(C,+z-1),size:40})]}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:w,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(nl,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:M,onKeyDown:q,children:[x.map(z=>t.jsx("div",{className:"date-picker__dow caption-1",children:z},z)),P.map((z,F)=>{if(z===null)return t.jsx("div",{},`e${F}`);const G=lr(C,y,z),ce=G===e,me=G===f,ae=se(z),_e=F%7;return t.jsx("button",{type:"button",disabled:ae,"data-day":z,tabIndex:z===te?0:-1,"aria-current":me?"date":void 0,onClick:()=>!ae&&U(z),className:ke("date-picker__day caption-1",ce&&"date-picker__day--selected",me&&!ce&&"date-picker__day--today",ae&&"date-picker__day--disabled",_e===0&&"date-picker__day--sun",_e===6&&"date-picker__day--sat"),children:z},z)})]})]}),document.body):null;return t.jsxs("div",{className:ke("date-picker",`date-picker--s${a}`,A&&"date-picker--open",u),children:[t.jsxs("div",{className:"date-picker__field",children:[t.jsx("input",{ref:k,type:"text",className:"date-picker__trigger body-2",value:ne??sx(e),placeholder:b,onChange:z=>K(z.target.value),onClick:()=>!l&&!A&&j(),onKeyDown:Y,onBlur:ie,disabled:l,"aria-haspopup":"dialog","aria-expanded":A,"aria-label":p,"aria-labelledby":h,inputMode:"numeric",autoComplete:"off"}),t.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&j(),disabled:l,tabIndex:-1,"aria-label":b,"aria-haspopup":"dialog","aria-expanded":A,children:t.jsx(dl,{size:J,className:"date-picker__icon",strokeWidth:1.5})})]}),de]})}const Ku=["personal","sensitive","marketing"];function cx({takenKinds:e,busy:n,today:a,onClose:r,onSubmit:s,className:l}){const{t:i}=Ee.useTranslation(),[u]=o.useState(()=>br(a)),[c,p]=o.useState([]),[h,d]=o.useState("paper"),[m,b]=o.useState("self"),[x,f]=o.useState(u),[C,y]=o.useState(""),v=Ku.filter(_=>!e.includes(_)),w={personal:i("customers.consent.kind.personal","\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4"),sensitive:i("customers.consent.kind.sensitive","\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)"),marketing:i("customers.consent.kind.marketing","\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0")};return t.jsx(zn,{title:i("customers.consent.record","\uB3D9\uC758 \uBC1B\uAE30"),closeDisabled:n,onClose:r,className:l,footer:()=>t.jsx(be,{htmlType:"button",size:48,variant:"main",disabled:n||c.length===0,label:i("customers.consent.submit","\uC800\uC7A5\uD558\uAE30"),onClick:()=>s({kinds:c,method:h,source:m,consentedAt:x||null,note:C.trim()||null})}),children:t.jsxs(sr,{useBorder:!1,useRowBorder:!1,labelWidth:96,children:[t.jsx(Cn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.kinds","\uBC1B\uC740 \uAC08\uB798"),children:t.jsxs("div",{className:"consent-record-popup__kinds",children:[v.map(_=>t.jsx(Zo,{checked:c.includes(_),disabled:n,label:w[_],onChange:E=>p(g=>E?[...g,_]:g.filter(A=>A!==_))},_)),v.length===0&&t.jsx("p",{className:"body-3 consent-record-popup__none",children:i("customers.consent.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.")})]})}),t.jsx(Cn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),children:t.jsx(Bn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),options:[{key:"paper",label:i("customers.consent.method.paper","\uC11C\uBA74")},{key:"verbal",label:i("customers.consent.method.verbal","\uAD6C\uB450")},{key:"electronic",label:i("customers.consent.method.electronic","\uC804\uC790")}],value:h,onChange:_=>d(String(_))})}),t.jsx(Cn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),children:t.jsx(Bn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),options:[{key:"self",label:i("customers.consent.source.self","\uBCF8\uC778")},{key:"guardian",label:i("customers.consent.source.guardian","\uBCF4\uD638\uC790")},{key:"referral",label:i("customers.consent.source.referral","\uC758\uB8B0\uAE30\uAD00")}],value:m,onChange:_=>b(String(_))})}),t.jsx(Cn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.day","\uBC1B\uC740 \uB0A0"),children:t.jsx(Gu,{size:48,value:x,max:u,today:a,onChange:_=>f(_??"")})}),t.jsx(Cn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.note","\uBA54\uBAA8"),children:t.jsx(Jn,{size:48,fullWidth:!0,value:C,onChange:y,disabled:n,ariaLabel:i("customers.consent.note","\uBA54\uBAA8"),placeholder:i("customers.consent.notePlaceholder","\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4")})})]})})}function Xo({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=Ee.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),p=Math.max(1,n),h=()=>a(Math.max(1,Math.min(p,e-1))),d=()=>a(Math.min(p,e+1));return t.jsxs("div",{className:ke("pagination",l),children:[t.jsx(be,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:h}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),p)," / ",p]}),t.jsx(be,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=n,onClick:d})]})}function Jo({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=Ee.useTranslation(),p=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(n||r?.length||s||l||i);return t.jsxs("div",{className:ke("toolbar",u),children:[t.jsxs("div",{className:"toolbar__row",children:[p,a&&(Array.isArray(a)?a:[a]).map((d,m)=>t.jsx(Bn,{size:Ft,...d},d.ariaLabel??m))]}),h&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Jn,{className:"toolbar__search",size:Ft,value:n.value,onChange:n.onChange,placeholder:n.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((d,m)=>t.jsx(kn,{size:Ft,options:d.options,value:d.value,onChange:d.onChange,ariaLabel:d.ariaLabel},m)),(s||l)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(kn,{size:Ft,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&t.jsx(Xo,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function Yu(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Yu).join(""):""}function dx(e){let n=e.replace(/\r\n/g,`
|
|
830
830
|
`).replace(/\r/g,`
|